.project-row{display:flex;align-items:stretch;gap:2px;margin-bottom:5px;min-width:0}
.project-row .project-item{flex:1;width:auto;min-width:0;margin:0}
.project-row.active .project-item{background:#d5e5ed}
.project-row-actions{display:flex;align-items:stretch;gap:2px;flex:0 0 auto}
.project-edit,.project-delete,.project-rename-save,.project-rename-cancel{display:grid;place-items:center;width:38px;min-width:38px;min-height:44px;padding:8px;border:1px solid transparent;border-radius:8px;background:transparent;color:#526b7a}
.project-edit svg,.project-delete svg,.project-rename-save svg,.project-rename-cancel svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.project-edit:hover{border-color:#c8dce8;background:#f2f8fc;color:#17658f}
.project-delete{color:#9d3131}
.project-delete:hover{background:#fff0f0;border-color:#f1c6c6}
.project-delete:disabled{color:#9aa4ab;cursor:not-allowed}
.project-edit:focus-visible,.project-delete:focus-visible,.project-rename-save:focus-visible,.project-rename-cancel:focus-visible{outline:3px solid #70b9df;outline-offset:2px}
.project-rename-form{display:flex;align-items:center;gap:4px;width:100%;min-width:0;padding:4px}
.project-rename-form input{min-width:0;height:42px;margin:0!important;padding:8px 9px!important;border-radius:8px!important;font-size:16px!important}
.project-rename-save{color:#176b45}.project-rename-save:hover{border-color:#b9dbc9;background:#edf8f2}
.project-rename-cancel:hover{border-color:#ccd8df;background:#f3f6f8}
.project-row.is-renaming>.project-item,.project-row.is-renaming>.project-row-actions{display:none}
.delivery-ready{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;background:#e7f2eb;border:1px solid #b9d9c3;border-radius:9px;margin-bottom:22px}
.delivery-ready strong,.delivery-ready span{display:block}
.delivery-ready span{font-size:.82rem;color:#3e6048;margin-top:3px}
.delivery-ready .primary{white-space:nowrap;text-decoration:none}
.delivery-actions{display:flex;align-items:center;gap:12px}.delivery-actions>a:not(.primary){padding:10px 2px;font-size:.85rem;font-weight:650;white-space:nowrap}
@media(max-width:700px){.delivery-ready{align-items:flex-start;flex-direction:column}.project-edit,.project-delete{padding-inline:8px}}

.delivery-overview{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:28px 30px;margin:0 0 28px;border:1px solid #c8def0;border-radius:18px;background:linear-gradient(118deg,#f7fbff,#eef7ff)}
.delivery-summary{min-width:0}.delivery-summary .badge{margin-bottom:12px}.delivery-summary h2{margin:0 0 8px;font-size:1.38rem}.delivery-summary p{margin:0;max-width:66ch;color:#415463}.delivery-summary .delivery-next{margin-top:12px;color:#203743;font-size:.9rem}.delivery-main-actions{display:flex;flex-direction:column;align-items:stretch;gap:9px;min-width:210px}.delivery-main-actions a{text-align:center;text-decoration:none;font-size:.88rem;font-weight:650}.delivery-main-actions .primary{padding:12px 16px;border-radius:8px}.delivery-zip{padding:10px 14px;border:1px solid #9bbbd3;border-radius:8px;background:#fff;color:#245a75}.delivery-main-actions small{text-align:center;color:#597082}.delivery-disclosure{margin:0 0 22px;padding:4px 0}.delivery-disclosure>summary{font-size:.92rem;font-weight:650;text-decoration:none}.delivery-disclosure>summary::after{content:'Показать';margin-left:10px;font-size:.76rem;font-weight:400;color:#536774}.delivery-disclosure[open]>summary{margin-bottom:20px}.delivery-disclosure[open]>summary::after{content:'Скрыть'}.delivery-disclosure .workspace{margin-top:0}.delivery-disclosure .output-section{margin-top:0}.delivery-disclosure .file-downloads{margin:4px 0 20px}.delivery-disclosure .output-section>details.field{margin-top:18px}
@media(max-width:700px){.delivery-overview{display:block;padding:23px 20px}.delivery-main-actions{margin-top:20px;width:100%}.delivery-summary h2{font-size:1.22rem}}

/* First-run guidance: one visible route, secondary tools stay available. */
.workspace-tools{margin:12px 0 4px;padding:0 8px}.workspace-tools summary{font-size:.8rem;font-weight:650;text-decoration:none;color:#5d6c79}.workspace-tools summary::after{content:'Показать';margin-left:7px;font-size:.72rem;font-weight:400;color:#778692}.workspace-tools[open] summary::after{content:'Скрыть'}.workspace-tools .pricing-nav{display:block;width:100%;margin:5px 0 0}.quick-start{display:grid;grid-template-columns:auto 1fr;gap:15px;align-items:start;padding:0 0 24px;margin:0 0 28px;border-bottom:1px solid #e5e5ea}.quick-start-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#e8f3ff;color:#0071e3}.quick-start h2{margin:0 0 5px;font-size:1.05rem}.quick-start p{margin:0;color:#515154;font-size:.88rem;line-height:1.5}.quick-start strong{color:#1d1d1f}.demo{margin-top:24px}.demo details summary{font-weight:650;text-decoration:none}.demo details p{margin:8px 0 12px;font-size:.82rem}.demo-actions{margin-top:12px}.project-delete:focus-visible{outline:3px solid #0071e366;outline-offset:2px}@media(max-width:700px){.workspace-tools{grid-column:1/-1;margin:0;padding:0}.quick-start{margin-bottom:22px}.project-delete{min-width:42px}}

/* Phone layout: work from one vertical task surface, not a compressed desktop sidebar. */
@media(max-width:700px){
  html{background:#f5f5f7}body{min-width:320px;overflow-x:hidden;background:#f5f5f7;padding-bottom:env(safe-area-inset-bottom)}
  button,input,select,textarea{font-size:16px}button,.text-button,.project-edit,.project-delete{min-height:44px}
  .app{display:block;min-height:100dvh}
  .sidebar{position:sticky;top:0;z-index:30;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:max(12px,env(safe-area-inset-top)) 14px 10px;height:auto;max-height:none;background:#fffffff2;border-bottom:1px solid #e5e5ea;border-right:0;box-shadow:0 5px 18px #14202a10;backdrop-filter:blur(18px)}
  .sidebar>.brand,.sidebar>.brand-lockup{margin:0;min-width:0;font-size:1.02rem}.sidebar>.brand .brand-mark{width:25px;height:25px}
  .sidebar>.primary{width:auto;min-width:128px;margin:0;padding:10px 13px;font-size:.83rem;white-space:nowrap}.sidebar .eyebrow{display:none}
  .workspace-tools{grid-column:1/-1;order:3;margin:0;padding:0}.workspace-tools summary{min-height:36px;display:flex;align-items:center;font-size:.8rem}.workspace-tools .pricing-nav{min-height:42px;padding:10px 4px;font-size:.86rem}
  .side-heading{display:flex;grid-column:1/-1;order:4;margin:3px 0 0;font-size:.72rem;letter-spacing:.08em}
  #project-list{grid-column:1/-1;order:5;display:flex;gap:9px;max-height:none;overflow-x:auto;overscroll-behavior-x:contain;margin:0 -14px;padding:0 14px 5px;scroll-snap-type:x proximity;scrollbar-width:none}#project-list::-webkit-scrollbar{display:none}
  .project-row{flex:0 0 min(88vw,340px);min-height:52px;margin:0;border:1px solid #e5e5ea;border-radius:12px;background:#fff;scroll-snap-align:start;overflow:hidden}.project-row .project-item{min-width:0;max-width:none;padding:9px 10px;background:transparent}.project-item strong{font-size:.8rem}.project-item small{font-size:.7rem;margin-top:3px}.project-row-actions{border-left:1px solid #eee}.project-edit,.project-delete{min-width:44px;width:44px;padding:8px;border:0;border-radius:0}.project-rename-form{padding:4px 6px}
  .side-bottom{display:flex!important;grid-column:1/-1;order:6;align-items:center;justify-content:space-between;padding:6px 0 0;border:0;font-size:.72rem}.side-bottom button{float:none;margin:0;min-height:32px;padding:3px 0;font-size:.75rem}
  .topbar{min-height:52px;padding:10px 14px;gap:8px;background:#f5f5f7;border-bottom:0;font-size:.75rem}.topbar>span:first-child{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar .badge{display:none}.divider{padding:0 4px}
  .content{padding:20px 14px 30px;max-width:none}h1{font-size:clamp(1.65rem,8vw,2.2rem);line-height:1.12}h2{font-size:1.12rem}
  .intake-hero{display:block;padding:0 0 22px;margin:0}.intake-hero h1{font-size:clamp(2rem,10vw,2.65rem);max-width:11ch;letter-spacing:-.04em}.intake-hero p{font-size:.93rem;max-width:37ch}.orbit-visual,.flow-labels{display:none}
  .workspace{display:block}.paper{padding:20px 16px;border-radius:16px}.context{margin-top:22px;padding:20px 2px 0;border-top:1px solid #e5e5ea}.context .journey{display:block}.dropzone{min-height:176px;padding:28px 14px;border-radius:14px}.dropzone strong{font-size:1rem}.dropzone small{font-size:.75rem}
  .form-title{gap:11px;margin-bottom:18px}.form-title-secondary{margin-top:28px;padding-top:24px}.step-chip{width:28px;height:28px}.field{margin-top:20px}.form-grid{gap:18px;margin-top:20px}.form-end{gap:12px;margin-top:20px}.form-end button{min-height:48px}.file-row{gap:9px;padding:12px 0}.file-row button{min-height:38px;padding:7px 10px;white-space:nowrap}
  .order-heading{margin-bottom:8px}.order-menu{margin:10px 0 0}.order-menu summary{display:inline-flex;min-height:42px;align-items:center}.order-menu button{min-height:42px;width:100%;text-align:left}.tabs{margin:14px 0 20px;gap:3px;overflow-x:auto;scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}.tabs button{flex:0 0 auto;min-height:44px;padding:12px 13px;font-size:.78rem}
  .status-panel{padding:17px 16px;border-radius:14px}.status-panel>button{width:100%;min-height:46px}.client-questions,.reply-reading,.manager-handoff,.engineering-card,.reference-case,.release-gate{padding:19px 16px;border-radius:16px}
  .viewer{height:min(62vw,360px);min-height:250px}.viewer-tools{gap:12px}.viewer-tools label{width:100%;justify-content:space-between}.document-option{padding:16px 0;gap:8px}.document-option input{width:22px;height:22px;flex:0 0 auto}.format{font-size:.67rem;max-width:72px}.file-downloads{display:grid;gap:12px;margin:20px 0}.file-downloads a{padding:10px 0;border-bottom:1px solid #e5e5ea}.delivery-list>div{display:block;padding:14px 0}.delivery-list .badge{display:inline-block;margin-top:6px;max-width:none}.module-card{padding:20px 16px;border-radius:16px}.module-grid dl{grid-template-columns:1fr}.module-count{white-space:normal}.price-table>div{padding:15px 0}
  footer{padding:18px 14px calc(18px + env(safe-area-inset-bottom));font-size:.68rem}.login-screen{display:block;min-height:100dvh;padding:calc(24px + env(safe-area-inset-top)) 16px 32px;background:#f5f5f7}.login-card{width:100%;max-width:480px;margin:0 auto;padding:30px 22px;border-radius:18px}.login-card .brand-lockup{margin-bottom:25px}.login-card h1{font-size:clamp(2rem,10vw,2.65rem);line-height:1.03}.login-card label{margin:24px 0 16px}.login-card button{min-height:50px}.login-art{display:none!important}.toast{bottom:calc(18px + env(safe-area-inset-bottom));padding:14px 16px}
}
@media(max-width:380px){.sidebar>.primary{min-width:110px;padding-inline:10px;font-size:.76rem}.brand-lockup{gap:7px}.sidebar>.brand{font-size:.95rem}.content{padding-inline:12px}.login-card{padding:26px 18px}.intake-hero h1{font-size:2rem}}
@media(hover:none){.dropzone:hover,.project-item:hover,.project-edit:hover,.project-delete:hover{transform:none;box-shadow:none}.dropzone:active{background:#eef7ff;border-color:#0071e3}.project-edit:active{background:#f2f8fc}.project-delete:active{background:#fff0f0}}

/* The Kontur mark supplies the first letter; keep the mark and “ontur” as one word. */
body:not(.tenant-pritz) .brand-lockup{gap:2px}
body:not(.tenant-pritz) .brand-mark{width:auto;height:30px;object-fit:contain}
body:not(.tenant-pritz) .login-card .brand-lockup{display:inline-flex;align-items:center;gap:2px}
body:not(.tenant-pritz) .login-card .brand-mark{width:auto;height:34px}
@media(max-width:700px){body:not(.tenant-pritz) .sidebar>.brand .brand-mark{width:auto;height:26px}}

.test-transcript{margin:22px 0 28px;padding:26px 28px;border:1px solid #bdd6e7;border-radius:18px;background:linear-gradient(135deg,#f7fbff,#edf6fb)}
.test-transcript-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:20px}.test-transcript-head h2{margin:0 0 7px;font-size:1.25rem}.test-transcript-head p{margin:0;max-width:68ch;color:#415463}.test-transcript-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.test-transcript-grid section{padding:18px;background:#fff;border:1px solid #d9e7f0;border-radius:13px}.test-transcript-grid h3{margin:0 0 10px;font-size:.96rem}.test-transcript-grid h3+ol,.test-transcript-grid h3+p{margin-top:0}.test-transcript-grid ol{margin:0 0 18px;padding-left:20px}.test-transcript-grid li{margin:0 0 8px;font-size:.84rem;line-height:1.5}.test-transcript-grid p{font-size:.86rem;line-height:1.58}.test-transcript-warning{margin:18px 0 0!important;padding-top:14px;border-top:1px solid #d9e7f0;color:#7c491c}
@media(max-width:700px){.test-transcript{margin:18px 0 22px;padding:19px 16px;border-radius:16px}.test-transcript-head{display:block}.test-transcript-head .badge{margin-top:10px}.test-transcript-grid{grid-template-columns:1fr;gap:12px}.test-transcript-grid section{padding:16px}}

/* Completed order: put the single useful handoff action above all settings. */
.ready-order-hero{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:space-between;gap:28px;margin:20px 0 24px;padding:28px 30px;overflow:hidden;border:1px solid #b9d9f1;border-radius:20px;background:linear-gradient(135deg,#f6fbff 0%,#eaf6ff 56%,#f8fcff 100%);box-shadow:0 16px 34px #136da31c}.ready-order-hero::after{content:"";position:absolute;z-index:-1;width:320px;height:320px;right:-126px;top:-208px;border-radius:50%;background:radial-gradient(circle,#54c2ff60 0%,#54c2ff00 69%)}.ready-order-copy{min-width:0}.ready-order-status{display:inline-flex;align-items:center;gap:6px;color:#08609a;font-size:.76rem;font-weight:750;letter-spacing:.015em}.ready-order-status svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.ready-order-copy h2{margin:9px 0 7px;color:#12354c;font-size:1.45rem;letter-spacing:-.02em;text-wrap:balance}.ready-order-copy p{margin:0;max-width:63ch;color:#456176;font-size:.9rem;line-height:1.55}.ready-order-copy small{display:block;margin-top:10px;color:#587488;font-variant-numeric:tabular-nums}.ready-order-actions{display:flex;flex:0 0 auto;flex-direction:column;align-items:stretch;gap:10px;min-width:238px}.ready-download-primary{display:flex;align-items:center;justify-content:center;gap:10px;min-height:54px;padding:12px 17px;border:1px solid #075f9f;border-radius:13px;background:linear-gradient(145deg,#1689d3,#0069ae);color:#fff!important;text-decoration:none;box-shadow:0 12px 20px #0069ae35,0 2px 0 #00588f;transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}.ready-download-primary svg{width:22px;height:22px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.ready-download-primary span{display:flex;flex-direction:column;font-size:.89rem;font-weight:720;line-height:1.15}.ready-download-primary small{margin-top:3px;color:#d7efff;font-size:.7rem;font-weight:500}.ready-download-primary:hover{filter:brightness(1.06);transform:translateY(-2px);box-shadow:0 16px 25px #0069ae42,0 3px 0 #00588f}.ready-download-primary:active{transform:translateY(1px);box-shadow:0 7px 13px #0069ae35,0 1px 0 #00588f}.ready-download-primary:focus-visible,.ready-open-pdf:focus-visible{outline:3px solid #005f9e;outline-offset:3px}.ready-open-pdf{min-height:38px;padding:9px 12px;border-radius:10px;color:#125d8d!important;font-size:.82rem;font-weight:680;text-align:center;text-decoration:none;transition:background .18s ease,color .18s ease}.ready-open-pdf:hover{background:#d9efff;color:#034e83!important}.order-secondary-action{font-size:.82rem;color:#245a75}.order-menu .order-secondary-action{margin-top:10px}@media(max-width:700px){.ready-order-hero{display:block;margin:16px 0 20px;padding:22px 19px;border-radius:17px}.ready-order-copy h2{font-size:1.25rem}.ready-order-actions{width:100%;margin-top:19px;min-width:0}.ready-download-primary{min-height:52px}.ready-open-pdf{min-height:44px;padding:12px}}
@media(prefers-reduced-motion:reduce){.ready-download-primary,.ready-open-pdf{transition:none}.ready-download-primary:hover{transform:none}}

.login-admin-link{display:inline-block;margin-top:18px;font-size:.82rem;font-weight:650;color:#245a75;text-underline-offset:4px}.login-admin-link:hover{color:#0066cc}.login-admin-link:focus-visible{outline:3px solid #0071e366;outline-offset:4px;border-radius:4px}
