/* Рабочее пространство терминала. Экранный профиль; печатный отчет сохраняет свою верстку. */
@media screen {
:root { --workspace-side: 218px; --workspace-top: 68px; --workspace-pad: clamp(22px,3vw,48px); }
body.terminal { font-size: 14px; line-height: 1.55; background: #FAFAFA; }
body.terminal:has(#shell) { padding-left: var(--workspace-side); }
body.terminal .page { width: 100%; max-width: 1600px; padding: calc(var(--workspace-top) + 34px) var(--workspace-pad) 72px; margin: 0 auto; }
body.terminal .page::before { display: none !important; }
body.terminal .page h1 { font-size: clamp(30px,3vw,44px); letter-spacing: -.025em; text-transform: none; margin-bottom: 12px; }
body.terminal .lead { max-width: 76ch; font-size: 14px; margin-bottom: 28px; }
body.terminal [hidden] { display: none !important; }
body.terminal button, body.terminal input, body.terminal select { font-family: var(--font-body); }
body.terminal a, body.terminal button { -webkit-tap-highlight-color: transparent; }
body.terminal :focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
body.terminal .btn { justify-content: center; min-height: 44px; padding: 10px 18px; font-size: 12px; font-weight: 700; border-radius: 3px; transition: background-color .18s,color .18s,transform .18s; }
body.terminal .btn:hover { background: #520D20; transform: translateY(-1px); }
body.terminal .btn.ghost { color: var(--accent); background: transparent; }
body.terminal .btn.ghost:hover { background: #F8F0F2; }
body.terminal .row-sub { font-size: 12px; }
body.terminal .lbl { font-size: 10px; letter-spacing: .09em; font-weight: 700; }
body.terminal .workspace-shell { position: fixed; inset: 0 auto 0 0; width: var(--workspace-side); max-width: none; margin: 0; padding: 32px 18px 20px; background: #FFFFFF; display: flex; flex-direction: column; align-items: stretch; gap: 0; z-index: 40; }
.workspace-shell .brand { align-items: flex-start; flex-direction: column; gap: 12px; padding: 0 14px 40px; text-decoration: none; }
.workspace-shell .brand img { height: 23px; width: auto; }
.workspace-shell .brand > span { color: var(--label); font-size: 10px; letter-spacing: .02em; }
.nav-label { display: block; padding: 0 14px; color: var(--label); font-size: 9px; text-transform: uppercase; letter-spacing: .13em; font-weight: 700; }
.workspace-shell > nav { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 4px; margin: 12px 0 32px; }
.workspace-shell nav a { min-height: 44px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; letter-spacing: 0; color: var(--label); border-radius: 3px; transition: color .18s,background .18s; }
.workspace-shell nav a:hover { color: var(--text); background: #FAFAFA; }
.workspace-shell nav a[aria-current] { color: var(--accent); background: #F8F0F2; font-weight: 700; }
.nav-tag { font-size: 8px; font-weight: 600; color: var(--label); text-transform: uppercase; letter-spacing: .08em; }
.workspace-shell .who { margin: auto 0 0; display: flex; flex-direction: column; align-items: stretch; gap: 8px; font-size: 11px; min-width: 0; }
.workspace-shell .who > strong, .workspace-shell .who-name { padding: 0 14px; overflow-wrap: anywhere; }
.workspace-shell .who > strong { color: var(--head); font-size: 12px; }
.workspace-shell .who-name { color: var(--label); line-height: 1.5; }
.workspace-shell .who-links { display: flex; flex-direction: column; gap: 0; margin: 6px 0 0; }
.workspace-shell .who-links a { font-size: 11px; padding: 10px 14px; min-height: 40px; }
.workspace-shell .who button { text-align: left; padding: 8px 14px; min-height: 40px; font-size: 11px; color: var(--label); }
.workspace-shell .workspace-bar { position: fixed; inset: 0 0 auto var(--workspace-side); height: var(--workspace-top); background: #FFFFFF; display: flex; align-items: center; padding: 0 var(--workspace-pad); gap: 24px; }
.workspace-location { font-size: 11px; color: var(--label); white-space: nowrap; }
.workspace-location > span { color: #A5A5A5; padding: 0 12px; }
.workspace-location b { color: var(--text); font-weight: 600; }
.command-open { margin-left: auto; display: flex; align-items: center; justify-content: space-between; gap: 48px; min-height: 36px; border: 0; padding: 8px 12px; background: #FAFAFA; color: var(--label); font-size: 11px; cursor: pointer; }
.command-open kbd { font: inherit; color: var(--label); font-size: 10px; }
.session-state { font-size: 10px; color: var(--label); white-space: nowrap; }
.session-state::before { content: ''; width: 5px; height: 5px; display: inline-block; background: var(--accent); margin-right: 8px; }
.menu-toggle { display: none; }
.workspace-bar::after { content: ''; position: absolute; bottom: 0; left: 0; height: 2px; width: 0; background: var(--accent); }
.request-pending .workspace-bar::after { width: 35%; animation: request-progress 1s ease-in-out infinite; }
@keyframes request-progress { from { transform: translateX(-100%); } to { transform: translateX(380%); } }
.skip-link { position: fixed; top: -80px; left: 16px; background: var(--accent); color: white; padding: 12px 20px; z-index: 100; }
.skip-link:focus { top: 10px; }
.shell-block { margin: 0 0 24px; padding: 16px 24px; background: #F8F0F2; color: var(--accent); }
.page-actions { display: flex; gap: 12px; align-items: center; margin: 0 0 28px; flex-wrap: wrap; }
.eyebrow-label { font-size: 9px; text-transform: uppercase; font-weight: 700; letter-spacing: .14em; color: var(--label); margin: 0 0 18px; }
/* Портфель: главный показатель, распределение и рабочий реестр. */
body.terminal .pf-kpis:not([hidden]) { grid-template-columns: 1.5fr 1fr 1fr; gap: 24px; margin: 24px 0; padding: 28px 24px; background: #FFFFFF; }
body.terminal .pf-kpis .lbl { font-size: 10px; color: var(--label); }
body.terminal .pf-kpis .num.big { display: block; font: 500 clamp(26px,3vw,44px)/1.2 var(--font-body); font-variant-numeric: tabular-nums; letter-spacing: -.05em; margin: 12px 0 8px; }
body.terminal #pf-total { color: var(--accent); }
.portfolio-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.portfolio-overview section { padding: 24px; background: #FFFFFF; min-width: 0; }
.portfolio-overview h2 { font-size: 12px; font-weight: 700; margin: 0 0 20px; }
.allocation-row { display: grid; grid-template-columns: minmax(90px,1fr) minmax(40px,1.3fr) auto; gap: 16px; align-items: center; font-size: 11px; margin: 12px 0; }
.allocation-track { height: 6px; background: #F0F0F0; overflow: hidden; }
.allocation-track > span { display: block; height: 100%; background: var(--accent); transform-origin: left; animation: bar-reveal .5s ease both; }
.allocation-row strong { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
@keyframes bar-reveal { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.health-heading { font: 500 30px/1.2 var(--font-body); letter-spacing: -.04em; margin: 8px 0; }
.health-meter { display: flex; height: 8px; background: #F0F0F0; gap: 3px; margin: 20px 0; }
.health-meter > span { display: block; background: #29292B; }
.health-meter > span.risk { background: var(--accent); }
.health-meter > span.unknown { background: #D9D9DC; }
.health-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--label); font-size: 10px; }
body.terminal .pf-filters:not([hidden]) { gap: 10px; margin: 24px 0 14px; }
body.terminal .pf-filters select { min-width: 0; max-width: 100%; flex: 1; min-height: 42px; background-color: #FFFFFF; border: 0; font-size: 11px; }
body.terminal .pf-export { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 20px; }
body.terminal .pf-export > .row-sub { display: none; }
body.terminal .rows { gap: 4px; }
body.terminal .rows-head { font-size: 9px; letter-spacing: .09em; padding: 12px 18px; }
body.terminal .row { padding: 18px; background: #FFFFFF; gap: 14px; font-size: 11px; transition: background .18s; align-items: center; }
body.terminal .row:hover { background: #F8F0F2; }
body.terminal .row-name { font-size: 12px; }
body.terminal .row .num { font: 600 17px/1.4 var(--font-body); letter-spacing: -.025em; }
body.terminal .row .row-sub { font-size: 10px; }
body.terminal .row .btn { font-size: 10px; padding: 8px 10px; }
body.terminal .empty { max-width: 720px; padding: 48px 32px; background: #FFFFFF; }
body.terminal .empty h2 { font: 400 30px var(--font-display); margin-top: 0; }
.project-tools { display: flex; gap: 12px; margin: 0 0 24px; }
.project-tools input, .project-tools select { min-height: 44px; border: 0; background: #FFFFFF; font-size: 12px; padding: 10px 14px; width: auto; }
.project-tools input { flex: 1; min-width: 0; }
.project-tools select { max-width: 240px; }
/* Калькулятор: параметры слева, решение и аналитика справа. */
body.terminal #calcRoot { font-size: 12px; margin-bottom: 32px; }
body.terminal .calc-meta { font-size: 10px; margin-bottom: 16px; max-width: 95ch; }
body.terminal .layout { grid-template-columns: minmax(230px,280px) minmax(0,1fr); gap: 24px; padding-top: 0; }
body.terminal .col-form { padding: 22px; background: #FFFFFF; position: sticky; top: 88px; max-height: calc(100vh - 112px); overflow-y: auto; scrollbar-width: thin; }
body.terminal .step { padding: 0 0 24px; }
body.terminal .step + .step { padding-top: 0; }
body.terminal .step-h { font: 700 11px var(--font-body); letter-spacing: .02em; text-transform: none; margin: 0 0 18px; }
body.terminal .step-n { color: var(--accent); font-size: 9px; }
body.terminal .form .lbl { font-size: 9px; margin-top: 14px; }
body.terminal .form input, body.terminal .form select { min-height: 40px; font-size: 11px; background-color: #FAFAFA; border: 0; }
body.terminal .seg { gap: 4px; }
body.terminal .seg button { font-size: 10px; min-height: 36px; padding: 9px 11px; background: #FAFAFA; border: 0; }
body.terminal .seg button.on { color: #FFFFFF; background: #29292B; }
body.terminal .btabs { gap: 4px; flex-wrap: wrap; }
body.terminal .btabs button { min-height: 38px; font-size: 10px; padding: 8px 10px; }
body.terminal .dash { min-width: 0; }
body.terminal .hero { padding: 24px; background: #FFFFFF; }
body.terminal .hero::before { display: none; }
body.terminal .hero-k { font: 700 10px/1.6 var(--font-body); letter-spacing: .05em; }
body.terminal .hero-k .unit { display: block; font-size: 9px; }
body.terminal .printbtn { min-height: 36px; padding: 8px 10px; font-size: 9px; }
body.terminal .ruler { padding-top: 30px; }
body.terminal .ruler-heads .rh .v { font-family: var(--font-body); font-size: clamp(14px,1.5vw,22px); letter-spacing: -.04em; }
body.terminal .ruler-heads .rh.mid .v { font-size: clamp(22px,2.8vw,38px); font-weight: 600; }
body.terminal .ruler-heads .k { font-size: 8px; }
body.terminal .ruler-heads .cur { font-size: .55em; }
body.terminal .hero-read { font-size: 10px; }
body.terminal .hero-vat { font-size: 9px; }
.calculation-state { font-size: 9px; color: var(--label); margin: 0 0 12px; }
[data-calculation-state="pending"] .calculation-state, [data-calculation-state="invalid"] .calculation-state { color: var(--accent); }
[data-calculation-state="invalid"] .hero .ruler, [data-calculation-state="invalid"] .hero .kpis { opacity: .35; }
body.terminal .hero .obj-notice { font-size: 11px; margin: 0 0 12px; padding: 12px 16px; background: #F8F0F2; color: var(--accent); }
body.terminal .btn:disabled { cursor: not-allowed; transform: none; }
body.terminal .kpis { gap: 16px; }
body.terminal .kpi .v { font: 600 17px var(--font-body); letter-spacing: -.04em; }
body.terminal .kpi .l { font-size: 9px; }
body.terminal .block { padding-top: 28px; }
body.terminal .block-h h2 { font: 700 12px var(--font-body); text-transform: none; letter-spacing: 0; }
body.terminal .block-h .sub { font-size: 10px; }
body.terminal .tablewrap { background: #FFFFFF; padding: 12px; }
body.terminal table { font-size: 10px; }
body.terminal th { font-size: 8px; }
body.terminal th, body.terminal td { border: 0; }
body.terminal .cost-allocation { background: #FFFFFF; padding: 20px; margin-bottom: 12px; }
body.terminal .cost-allocation .allocation-row { grid-template-columns: minmax(90px,1.25fr) minmax(25px,1fr) auto; font-size: 10px; gap: 10px; }
body.terminal .cost-allocation .allocation-row strong { font-size: 10px; }
.workspace-disclosure { margin-top: 24px; }
.workspace-disclosure > summary, .summary-disclosure > summary { cursor: pointer; padding: 16px 0; font-size: 12px; font-weight: 700; color: var(--text); }
.workspace-disclosure .block { padding-top: 8px; }
body.terminal .an-grid { gap: 18px; }
body.terminal .an-card { padding: 18px; background: #FFFFFF; }
body.terminal .an-card h3 { font: 700 10px/1.5 var(--font-body); letter-spacing: .02em; }
body.terminal .an-card .note { font-size: 9px; }
body.terminal .card-facts { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; padding: 24px; background: #FFFFFF; }
body.terminal .card-facts .lbl { font-size: 9px; }
body.terminal .card-facts input, body.terminal .card-facts select { font-size: 12px; background-color: #FAFAFA; border: 0; padding: 10px; }
body.terminal .card-facts .num { font: 500 28px var(--font-body); letter-spacing: -.04em; }
body.terminal .calc-h, body.terminal #versions h2, body.terminal #compare h2, body.terminal .sec-h { font: 700 15px var(--font-body); text-transform: none; letter-spacing: -.01em; }
body.terminal .v-row { grid-template-columns: 1.5fr 1fr 1fr; }
body.terminal .save-as { padding: 22px 24px; margin-top: 16px; background: #FFFFFF; }
body.terminal .save-as .calc-h { margin: 0 0 10px; font-size: 12px; }
body.terminal .save-as .save-row { margin: 12px 0 0; gap: 10px; }
body.terminal .save-as .save-row input { flex: 1 1 180px; min-width: 0; font-size: 11px; }
body.terminal .save-as .save-row select { min-width: 0; flex: 1 1 140px; font-size: 11px; }
body.terminal .save-as .save-row .btn { font-size: 11px; }
.project-jumps { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; }
.project-jumps a { padding: 10px 14px; background: #FFFFFF; color: var(--text); font-size: 11px; font-weight: 600; text-decoration: none; min-height: 40px; }
body.terminal section[id] { scroll-margin-top: 92px; }
/* Разделы с незавершенными данными не маскируются под живую биржу. */
.development-banner { max-width: 860px; padding: clamp(28px,5vw,72px); background: #FFFFFF; margin-top: 24px; }
.development-status { display: inline-block; padding: 7px 12px; color: var(--accent); background: #F8F0F2; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 32px; }
.development-banner h1 { max-width: 12ch; font-size: clamp(40px,5vw,66px) !important; }
.development-banner > p { max-width: 54ch; color: var(--label); margin-top: 24px; }
.development-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 32px 0; }
.development-banner .development-footnote { font-size: 11px; margin-top: 48px; }
/* Доступ и рабочие состояния. */
body.terminal .ac-sec { margin-top: 32px; }
body.terminal .ac-facts { padding: 24px; background: #FFFFFF; }
body.terminal .ac-val { font: 500 24px var(--font-body); letter-spacing: -.03em; }
body.terminal .ac-row { grid-template-columns: minmax(130px,1.5fr) minmax(120px,1fr) 90px minmax(120px,1fr); }
.ac-act { display: flex; flex-direction: column; align-items: flex-start; }
.access-badge { display: block; width: fit-content; font-size: 9px; padding: 3px 7px; background: #F0F0F0; margin-top: 7px; font-weight: 600; }
.access-badge.off { background: #F8F0F2; color: var(--accent); }
.user-disabled .ac-name { color: var(--label); }
body.terminal .ac-users-note { font-size: 11px; }
body.terminal .ac-plan { padding: 24px; background: #FFFFFF; }
body.terminal .ac-form { max-width: 680px; }
body.terminal .field input, body.terminal .field select { border: 0; background: #FFFFFF; }
body.terminal .man-body { background: #FFFFFF; padding: 28px; }
body.terminal .man-nav { font-size: 11px; }
/* Быстрый поиск: нативный dialog удерживает фокус и закрывается Escape. */
.command-dialog { width: min(600px,calc(100vw - 32px)); max-height: min(720px,85vh); overflow: auto; padding: 24px; border: 0; color: var(--text); background: #FFFFFF; font: 13px var(--font-body); }
.command-dialog::backdrop { background: rgb(30 30 30 / .3); }
.command-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.command-head h2 { margin: 0; font: 600 16px var(--font-body); }
.command-dialog input { width: 100%; padding: 14px; font: inherit; border: 0; background: #FAFAFA; }
.command-label { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--label); margin: 24px 0 8px; }
.command-dialog a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 8px; text-decoration: none; color: var(--text); font-size: 12px; }
.command-dialog a:hover, .command-dialog a:focus { background: #F8F0F2; }
.command-dialog a span { font-size: 10px; color: var(--label); }
/* Вход: фирменный контраст, доступ без лишних шагов. */
body.terminal .login { min-height: 100vh; grid-template-columns: 1.1fr 1fr; }
body.terminal .login .side { background: #1E1E1E; color: #FFFFFF; padding: clamp(40px,6vw,96px); display: flex; flex-direction: column; }
.login .side > img { width: 130px; height: auto !important; align-self: flex-start; }
body.terminal .login .side h1 { color: #FFFFFF; font-size: clamp(36px,4.2vw,64px); line-height: 1.05; font-weight: 400; text-transform: none; letter-spacing: -.02em; margin: auto 0 28px; padding-top: 80px; }
body.terminal .login .side .lead { color: #C9C9C9; max-width: 38ch; font-size: 13px; line-height: 1.8; }
.login-process { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; font-size: 10px; color: #C9C9C9; letter-spacing: .05em; }
.login-process span { padding: 8px 0; }
body.terminal .login form { width: min(440px,100%); padding: 40px; }
body.terminal .login form h2 { font: 400 38px var(--font-display) !important; }
.login-intro { font-size: 12px; color: var(--label); margin-bottom: 30px; }
body.terminal .login .field { margin-bottom: 20px; }
body.terminal .login .field label { font-size: 11px; }
body.terminal .login input { min-height: 48px; font-size: 13px; }
.login-submit { width: 100%; margin-top: 8px; }
.password-wrap { display: flex; background: #FFFFFF; }
.password-wrap input { width: 100%; min-width: 0; }
.password-toggle { border: 0; background: transparent; font-size: 10px; padding: 10px 14px; color: var(--label); cursor: pointer; }
.login-notice { color: var(--accent); background: #F8F0F2; padding: 16px; font-size: 12px; }
@media(min-width:1600px) { :root { --workspace-side: 236px; } body.terminal .layout { grid-template-columns: 300px minmax(0,1fr); gap: 32px; } }
@media(max-width:1150px) { :root { --workspace-side: 184px; --workspace-pad: 24px; } .session-state { display: none; } .command-open { gap: 20px; } body.terminal .layout { grid-template-columns: minmax(210px,240px) minmax(0,1fr); gap: 20px; } body.terminal .ruler-heads .rh.mid .v { font-size: 26px; } body.terminal .ruler-heads .rh .v { font-size: 15px; } .workspace-shell .brand { padding-left: 10px; padding-right: 10px; } }
@media(max-width:960px) { body.terminal .layout { grid-template-columns: 1fr; } body.terminal .col-form { position: static; max-height: none; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; } body.terminal .hero-k { font-size: 11px; } body.terminal .pf-kpis:not([hidden]) { grid-template-columns: 1.4fr 1fr; } body.terminal .pf-kpis > :last-child { grid-column: 1/-1; } .portfolio-overview { grid-template-columns: 1fr; } body.terminal .ac-row { grid-template-columns: 1.5fr 1fr; } .ac-act { grid-column: 2; } body.terminal .rows-head:not(.ac-head) { display: none; } body.terminal .row:not(.ac-row) { grid-template-columns: 1fr 1fr; } body.terminal .row:not(.ac-row) > span:first-child { grid-column: 1/-1; } }
@media(max-width:720px) {
:root { --workspace-side: 0px; --workspace-top: 60px; --workspace-pad: 18px; }
body.terminal .workspace-shell { width: 230px; transform: translateX(-100%); padding-top: 28px; padding-bottom: 18px; transition: transform .2s; }
body.terminal.menu-open .workspace-shell { transform: translateX(0); padding-top: 84px; box-shadow: 0 0 0 100vmax rgb(30 30 30 / .22); }
body.terminal .workspace-shell .workspace-bar { left: 0; width: 100vw; transform: translateX(230px); gap: 12px; }
body.terminal.menu-open .workspace-shell .workspace-bar { transform: none; }
body.terminal .workspace-location { font-size: 10px; } .workspace-location > span { padding: 0 6px; }
body.terminal .workspace-location { display: none; }
.menu-toggle { display: block; background: transparent; border: 0; color: var(--text); padding: 10px 0; min-height: 44px; font-size: 12px; font-weight: 700; }
.command-open { gap: 12px; padding: 10px 12px; min-height: 40px; }
.command-open kbd { display: none; }
body.terminal .page { padding-top: 86px; padding-bottom: 40px; }
body.terminal .page h1 { font-size: 34px; }
body.terminal .pf-kpis:not([hidden]) { grid-template-columns: 1fr 1fr; padding: 24px 20px; gap: 24px 12px; }
body.terminal .pf-kpis > :first-child { grid-column: 1/-1; }
body.terminal .pf-kpis > :last-child { grid-column: auto; }
body.terminal .pf-kpis .num.big { font-size: 30px; }
body.terminal .pf-kpis .lbl { font-size: 9px; }
body.terminal .pf-filters select { flex: 1 1 100%; }
body.terminal .row, body.terminal .ac-row { grid-template-columns: 1fr 1fr; padding: 18px; gap: 14px; }
body.terminal .ac-row > span:first-child { grid-column: 1/-1; }
body.terminal .ac-act { grid-column: 1/-1; flex-direction: row; flex-wrap: wrap; gap: 8px; }
body.terminal .ac-row .btn { min-height: 44px; }
body.terminal .col-form { grid-template-columns: 1fr; padding: 22px; gap: 0; }
body.terminal .seg button { min-height: 44px; }
body.terminal .hero { padding: 22px 18px; }
body.terminal .ruler-heads .rh .v { font-size: 14px; }
body.terminal .ruler-heads .rh.mid .v { font-size: 25px; }
body.terminal .hero-k { gap: 12px; }
body.terminal .kpis { grid-template-columns: 1fr; gap: 18px; }
body.terminal .kpi .v { font-size: 22px; }
body.terminal .kpi .l { font-size: 10px; }
body.terminal .card-facts { grid-template-columns: 1fr 1fr; padding: 20px; }
body.terminal .card-facts .num { font-size: 24px; }
.project-tools { flex-direction: column; }
.project-tools select { max-width: none; width: 100%; }
body.terminal .login { grid-template-columns: 1fr; }
body.terminal .login .side { padding: 32px; }
body.terminal .login .side h1 { font-size: 40px; padding-top: 40px; margin-top: 0; }
body.terminal .login .side .lead { font-size: 12px; margin-bottom: 0; }
body.terminal .login form { padding: 36px 28px; }
.login-process { margin-top: 12px; gap: 12px; }
.development-banner { padding: 32px 24px; }
.development-banner h1 { font-size: 44px !important; }
body.terminal .man-body { padding: 20px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
}
@media print { .workspace-bar, .command-dialog, .skip-link { display: none !important; } }

@media screen {
/* Клиентский путь: сначала предмет оценки, затем решение и сохраненный проект. */
.onboarding-welcome { max-width: 1060px; padding: clamp(28px,5vw,64px); background: #FFFFFF; }
.onboarding-welcome h2 { font: 400 clamp(34px,4vw,56px)/1.08 var(--font-display); letter-spacing: -.025em; margin: 20px 0; }
.onboarding-welcome > p { max-width: 62ch; color: var(--label); font-size: 14px; }
.onboarding-route { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin: 38px 0; }
.onboarding-route li { display: flex; gap: 14px; }
.onboarding-route li > b { color: var(--accent); font-size: 10px; padding-top: 2px; }
.onboarding-route li > span { display: block; font-size: 13px; font-weight: 700; }
.onboarding-route small { display: block; font-size: 11px; font-weight: 400; color: var(--label); line-height: 1.7; margin-top: 8px; }
.journey-steps { display: flex; align-items: center; flex-wrap: wrap; gap: 32px; padding: 0; margin: 26px 0 30px; list-style: none; }
.journey-steps li { color: var(--label); font-size: 12px; font-weight: 500; }
.journey-steps li > span { font-size: 10px; margin-right: 8px; }
.journey-steps li[aria-current] { color: var(--accent); font-weight: 700; }
.journey-steps li[data-complete] { color: var(--text); }
.calculation-starter { padding: clamp(24px,4vw,48px); max-width: 1100px; background: #FFFFFF; }
.starter-heading { margin-bottom: 28px; }
.starter-heading h2 { margin: 0 0 12px; font: 400 34px/1.15 var(--font-display); letter-spacing: -.02em; }
.starter-heading p { max-width: 74ch; font-size: 13px; color: var(--label); }
.starter-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.starter-wide { grid-column: 1/-1; max-width: 680px; }
body.terminal .calculation-starter .field { margin: 0; gap: 10px; }
body.terminal .calculation-starter .field label { font-size: 11px; color: var(--text); font-weight: 600; }
body.terminal .calculation-starter input, body.terminal .calculation-starter select { background-color: #FAFAFA; border: 0; min-height: 48px; font-size: 13px; min-width: 0; width: 100%; }
body.terminal .calculation-starter #startName { font-size: 18px; min-height: 56px; }
.optional { display: block; font-size: 10px; font-weight: 400; color: var(--label); }
.starter-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 20px; }
.starter-actions > span { max-width: 42ch; font-size: 11px; color: var(--label); }
.resume-draft { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #F8F0F2; padding: 20px 24px; margin-bottom: 28px; }
.resume-draft b { font-size: 12px; }
.resume-draft p { font-size: 11px; margin: 6px 0 0; }
.calculation-context { display: flex; gap: 20px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.calculation-context h2 { font: 400 28px var(--font-display); margin: 8px 0; }
.calculation-context p { font-size: 12px; color: var(--label); }
.project-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0; }
.project-tabs button { border: 0; background: transparent; color: var(--label); font: 600 12px var(--font-body); min-height: 44px; padding: 12px 18px; cursor: pointer; }
.project-tabs button[aria-selected="true"] { background: var(--text); color: #FFFFFF; }
.project-tabs button:hover:not([aria-selected="true"]) { background: #FFFFFF; color: var(--text); }
body.terminal [role="tabpanel"] { outline-offset: 8px; }
.project-success { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 24px; padding: 20px 24px; background: #F8F0F2; margin-bottom: 24px; }
.project-success b { color: var(--accent); font-size: 13px; }
.project-success span { font-size: 12px; }
.project-verdict { background: #FFFFFF; padding: clamp(24px,3vw,40px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.verdict-value { font: 500 clamp(30px,4vw,52px)/1.2 var(--font-body); letter-spacing: -.05em; color: var(--accent); margin: 16px 0; }
.project-verdict p { font-size: 12px; color: var(--label); margin: 12px 0 0; }
.verdict-budget strong { display: block; font-size: 18px; font-weight: 500; margin-top: 18px; max-width: 27ch; }
.project-next { margin-top: 32px; }
.project-next h2 { font-size: 13px; margin: 0 0 18px; }
.next-actions { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.next-actions > a, .next-actions > button { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; background: #FFFFFF; padding: 24px; color: var(--text); border: 0; text-align: left; text-decoration: none; cursor: pointer; font: inherit; }
.next-actions > :hover { background: #F8F0F2; }
.next-actions span { font-size: 10px; color: var(--label); }
.next-actions b { font-size: 13px; color: var(--accent); font-weight: 600; }
.next-actions small { font-size: 11px; color: var(--label); line-height: 1.7; }
.project-boundary { color: var(--label); font-size: 11px; max-width: 100ch; margin-top: 28px; }
.project-draft-state { font-size: 12px; padding: 16px 20px; background: #F8F0F2; margin: 0 0 20px; }
.comparison-picker { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; background: #FFFFFF; padding: 24px; margin: 0 0 24px; }
.comparison-picker label { font-size: 11px; flex: 1 1 200px; min-width: 0; }
.comparison-picker select { display: block; margin-top: 10px; min-height: 44px; width: 100%; background: #FAFAFA; border: 0; font-size: 12px; }
.comparison-picker p { width: 100%; color: var(--accent); font-size: 12px; margin: 0; }
body.terminal .workspace-shell .workspace-bar .workspace-location b { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
@media(max-width:1000px) { .starter-fields { grid-template-columns: 1fr 1fr; } .project-verdict { grid-template-columns: 1fr; gap: 24px; } .next-actions { grid-template-columns: 1fr; } .onboarding-route { grid-template-columns: 1fr; gap: 20px; } }
@media(max-width:720px) {
  .starter-fields { grid-template-columns: 1fr; }
  .journey-steps { gap: 10px 18px; }
  .journey-steps li { font-size: 10px; }
  .journey-steps li > span { font-size: 9px; margin-right: 4px; }
  .calculation-context { align-items: flex-start; flex-direction: column; gap: 4px; }
  .resume-draft { flex-direction: column; align-items: flex-start; padding: 20px; }
  .project-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .project-tabs button { padding: 12px; font-size: 11px; background: #FFFFFF; }
  .onboarding-welcome h2 { font-size: 38px; }
  .onboarding-route { margin: 28px 0; }
  .workspace-shell .workspace-bar .workspace-location { display: flex; overflow: hidden; min-width: 0; flex: 1; color: transparent; font-size: 0; }
  .workspace-shell .workspace-bar .workspace-location > span { display: none; }
  .workspace-shell .workspace-bar .workspace-location > b { font-size: 10px; white-space: nowrap; }
  .workspace-bar .command-open { margin-left: 0; gap: 0; white-space: nowrap; font-size: 10px; }
}
}
@media screen {
body.terminal .card-head { margin-bottom: 0; }
.project-passport { margin: 18px 0 0; }
.project-passport > summary { cursor: pointer; font-size: 12px; font-weight: 600; padding: 14px 18px; background: #FFFFFF; min-height: 44px; }
.project-passport > summary span { font-size: 11px; font-weight: 400; color: var(--label); margin-left: 20px; }
.project-passport .card-facts { margin-top: 0; }
.project-passport .card-status { padding: 0 24px; }
.project-passport + .project-tabs { margin-top: 18px; }
.budget-range-note { color: var(--accent) !important; }
.verdict-budget .btn { padding: 8px 0; min-height: 36px; }
@media(max-width:720px){.project-passport > summary span { display: block; margin: 6px 0 0 14px; }.project-verdict { padding: 24px; }.verdict-value { font-size: 36px; }}
}
@media screen {
.quick-budget-note { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; background: #F8F0F2; margin-top: 20px; }
.quick-budget-note b { font-size: 12px; font-weight: 600; color: var(--accent); }
.quick-budget-note span { font-size: 11px; color: var(--text); }
}

/* ASSETA Calc: оригинальный фирменный логотип. */
.workspace-shell .brand img { height: 38px; width: auto; max-width: 100%; }
