:root{color-scheme:dark;--bg:#0c111d;--shell:#0e1422;--panel:#182237;--panel2:#131c2e;--stroke:#2b3a54;--stroke2:#414d6a;--text:#e9eefb;--sub:#9baac5;--sub2:#7485a4;--violet:#9180ff;--mint:#7fdec5;--warn:#f0c57b;font-family:Inter,"Segoe UI",system-ui,-apple-system,Roboto,sans-serif;font-size:14px}
*{box-sizing:border-box}html{height:100%}body{margin:0;min-height:100%;background:radial-gradient(ellipse at 12% 1%,#27274d 0%,#0c111d 46%,#080d15 100%);color:var(--text)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.4}a{color:#b6a9ff}a:hover{color:white}.hidden{display:none!important}
.app{margin:auto;min-height:100vh;display:grid;grid-template-columns:245px minmax(0,1fr);max-width:1800px;border-left:1px solid #ffffff0b;border-right:1px solid #ffffff0b;background:#0e1422cc;box-shadow:0 0 120px #0005}.sidebar{background:#10192c;border-right:1px solid var(--stroke);display:flex;flex-direction:column;padding:27px 17px 22px;gap:29px;position:sticky;top:0;height:100vh}.brand{display:flex;gap:13px;align-items:center;padding:0 8px}.logo{display:grid;place-items:center;flex-shrink:0;width:45px;height:45px;border-radius:14px;background:linear-gradient(135deg,#836df5,#41bec1);font-size:27px;font-weight:800;color:#fff;box-shadow:0 10px 27px #594ddb59}.brand b{display:block;letter-spacing:.025em;font-size:16px}.brand small{display:block;font-size:11px;color:#91a1c1;margin-top:5px}.nav-label{margin:-6px 0 -12px;padding-left:12px;font-size:10px;font-weight:750;letter-spacing:.18em;color:#7385a5}.sidenav{display:grid;gap:7px}.navbtn{display:flex;gap:12px;align-items:center;width:100%;text-align:left;padding:13px 15px;color:#aeb9d1;border:1px solid transparent;background:transparent;border-radius:13px;font-weight:650}.navbtn:hover{background:#283247}.navbtn.active{color:#f1efff;background:#302f57;border-color:#65629a70}.ico{display:inline-grid;place-items:center;width:24px;font-size:21px;font-weight:400}.sidebar-bottom{margin-top:auto;padding:17px;background:#182338;border:1px solid #303c55;border-radius:17px;color:#c8d1e6}.sidebar-bottom b{font-size:12px}.sidebar-bottom p{font-size:12px;color:#95a5be;line-height:1.65;margin:9px 0 16px}.version{color:#7d8fab;font-size:10px}.tiny-online{display:inline-block;margin-right:7px;width:8px;height:8px;background:var(--mint);border-radius:50%;box-shadow:0 0 9px #6cf2cc55}.shell{min-width:0;display:flex;flex-direction:column;min-height:100vh}.topbar{height:77px;border-bottom:1px solid #27334b;padding:16px 35px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#11192a90;position:sticky;top:0;z-index:10;backdrop-filter:blur(15px)}.crumb{font-size:13px;color:#8496b5}.crumb strong{color:#e8eef9}.crumb span{margin:0 10px;color:#485878}.topright{display:flex;gap:13px;align-items:center}.save-state{color:#83dbc1;font-size:12px;background:#1a3340;border:1px solid #315a52;border-radius:40px;padding:8px 10px;white-space:nowrap}.save-state.saving{color:#f2d093;background:#3d3322;border-color:#6a5537}.save-state.error{color:#f3aab0;background:#452633;border-color:#88404d}.top-install{background:#282a57;color:#ded5ff;border:1px solid #6363a1;border-radius:12px;padding:9px 12px}.user-avatar{display:grid;place-items:center;width:37px;height:37px;border-radius:11px;background:#6151a0;font-weight:800}.content{padding:32px 37px 80px;max-width:1500px;width:100%;margin:auto;outline:none}.eyebrow{display:block;font-size:11px;color:#a39cff;font-weight:850;letter-spacing:.16em;text-transform:uppercase}.headline{font-size:33px;letter-spacing:-.025em;margin:11px 0 8px;line-height:1.15}.lead{color:#9caac5;line-height:1.6;margin:0 0 26px;max-width:900px}.section-head{display:flex;flex-wrap:wrap;gap:15px;justify-content:space-between;align-items:center;margin-bottom:17px}.grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px}.span12{grid-column:span 12}.span8{grid-column:span 8}.span7{grid-column:span 7}.span6{grid-column:span 6}.span5{grid-column:span 5}.span4{grid-column:span 4}.box{background:linear-gradient(160deg,#192338 0%,#131c2f 100%);border:1px solid #2f3d55;border-radius:19px;padding:22px;min-width:0}.box.highlight{background:linear-gradient(115deg,#302c55 0%,#1c2947 62%,#19313e 100%);border-color:#54547f;position:relative;overflow:hidden}.box.highlight:after{content:"";position:absolute;right:-95px;top:-105px;width:280px;height:280px;border:1px solid #b0a2ef33;border-radius:50%;box-shadow:0 0 0 52px #a08fff06,0 0 0 100px #a08fff04;pointer-events:none}.box h2,.box h3{margin:0 0 10px;font-size:17px;line-height:1.35}.box p{margin:0;color:#9eaec8;line-height:1.58;font-size:13px}.box b{font-weight:700}.muted{color:#91a1bd}.hint{font-size:12px;line-height:1.6;color:#8fa1be}.smallrow{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.stats-num{display:block;font-size:35px;line-height:1.25;letter-spacing:-.05em;font-weight:820}.btnrow{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:18px}.btn{border:0;border-radius:12px;color:white;font-weight:750;background:linear-gradient(120deg,#8978fb,#6856dc);padding:12px 16px;min-height:43px;box-shadow:0 8px 26px #5647de31;line-height:1.3}.btn:hover:not(:disabled){filter:brightness(1.12)}.btn.secondary{background:#293852;border:1px solid #485979;box-shadow:none;color:#e0eafa}.btn.ghost{background:transparent;border:1px solid #485976;box-shadow:none;color:#b6c8e5}.btn.danger{background:#60333c;border:1px solid #aa5d69;box-shadow:none}.btn.tiny{padding:7px 12px;min-height:33px;font-size:12px}.badge{display:inline-flex;gap:5px;align-items:center;background:#333d55;color:#b8c5e2;border:1px solid #43506a;border-radius:8px;padding:6px 10px;font-size:11px;font-weight:750;white-space:nowrap}.badge.mint{color:#8df0d4;border-color:#2c6257;background:#1a443e}.badge.gold{color:#f1cc8e;border-color:#765e38;background:#453921}.badge.purple{color:#c3b3ff;border-color:#6457a0;background:#35315f}.badge.soft{color:#9cadc6;background:#27344a}.row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 0;border-bottom:1px solid #303c53}.row:last-child{border-bottom:none}.row strong{font-size:14px}.row small{display:block;color:#8496b3;margin-top:5px;font-size:12px}.row .row-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;justify-content:end}.stepgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.step{background:#222f46;border:1px solid #394861;border-radius:12px;padding:13px;min-height:112px}.step-num{display:grid;place-items:center;background:#373c70;color:#bcb3ff;border-radius:9px;width:29px;height:29px;font-size:11px;font-weight:850;margin-bottom:11px}.step strong{display:block;font-size:12px;line-height:1.3}.step small{display:block;margin-top:6px;color:#91a2bd;font-size:10px}.selector{background:#1c2a40;border:1px solid #3c4f6c;border-radius:12px;color:#e7edf9;padding:11px 12px;min-height:43px;max-width:100%;width:100%}.select-inline{max-width:330px}.field{margin-bottom:15px}.field label{display:block;color:#b1c0d9;margin-bottom:7px;font-size:12px;font-weight:650}.field input,.field select,.field textarea{width:100%;background:#141e30;border:1px solid #3b4d69;border-radius:11px;color:#f0f2fc;padding:12px;outline:none}.field textarea{min-height:130px;resize:vertical;line-height:1.6}.field input:focus,.field textarea:focus,.field select:focus{border-color:#9083fb;box-shadow:0 0 0 3px #8874e322}.field small{display:block;color:#90a1bb;margin-top:6px}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 15px}.field.full{grid-column:1/-1}.datatable{overflow:auto;border:1px solid #35445d;border-radius:14px}.datatable table{width:100%;border-collapse:collapse;min-width:650px;text-align:left}.datatable th,.datatable td{padding:14px 16px;border-bottom:1px solid #2e3d56;white-space:nowrap}.datatable th{background:#202c43;color:#c3cde3;font-size:12px}.datatable td{font-size:13px}.datatable tr:last-child td{border-bottom:0}.datatable tr:hover td{background:#ffffff06}.statusok{color:#80e5c4;font-weight:800}.statuswait{color:#f0cd91;font-weight:750}.statusempty{color:#7485a5}.meta-text{font-size:12px;color:#92a5c0}.empty{border:1px dashed #495678;border-radius:17px;text-align:center;padding:34px 20px;color:#9badc5;background:#17213670}.empty strong{font-size:17px;color:#e8edf9}.empty p{color:#93a4be;margin:8px auto 0;max-width:450px}.queue{display:flex;justify-content:space-between;align-items:center;padding:12px 2px;gap:10px;border-bottom:1px solid #303e56;font-size:13px}.queue:last-child{border-bottom:0}.queue small{display:block;color:#8e9fba;margin-top:5px}.queue.active{background:#3033536b;border-radius:9px;padding:12px}.queue.completed{color:#86e2c6}.tabrow{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:17px}.tab{background:#1c2a41;border:1px solid #3a4b68;color:#becde7;border-radius:10px;padding:10px 12px}.tab.active{background:#383669;border-color:#8575c3;color:white}.fine-line{height:1px;background:#304058;margin:20px 0}.alert{padding:14px 15px;border:1px solid #715c3b;background:#3c3425;color:#f4d19b;border-radius:12px;margin:17px 0;font-size:12px;line-height:1.55}.success{border-color:#386960;background:#1d393b;color:#a3edd5}.progress{height:8px;border-radius:15px;background:#34415b;overflow:hidden;margin-top:15px}.progress > span{display:block;background:linear-gradient(90deg,#877bf8,#6bdcc4);height:100%;border-radius:14px}.micro{font-size:11px;color:#899db9}.file-pill{display:inline-block;background:#283651;border-radius:8px;padding:6px 9px;margin:3px;font-size:11px}.modal-cover{position:fixed;inset:0;z-index:30;background:#060a11bf;display:flex;justify-content:center;align-items:center;padding:16px;backdrop-filter:blur(5px)}.modal{width:100%;max-width:560px;max-height:calc(100vh - 40px);overflow:auto;background:#19243a;border:1px solid #596788;border-radius:21px;padding:26px;box-shadow:0 20px 90px #0009}.modal h2{margin:0 0 13px;font-size:22px}.modal .actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;margin-top:20px}#toast{position:fixed;bottom:23px;left:50%;transform:translate(-50%,25px);pointer-events:none;opacity:0;z-index:40;background:#d9d1ff;color:#262147;padding:12px 21px;border-radius:13px;box-shadow:0 15px 40px #0009;transition:all .22s;font-weight:750;max-width:min(92vw,700px);text-align:center}#toast.show{opacity:1;transform:translate(-50%,0)}.bottomnav{display:none}.two-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.wrap{overflow-wrap:anywhere}.project-card{min-height:203px;display:flex;flex-direction:column}.project-card .btnrow{margin-top:auto}.fileline{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center}.fileline .details{min-width:0;overflow-wrap:anywhere}.fileline small{color:#8a9cb6;display:block;margin-top:4px}.stage-note{font-size:12px;color:#9caec7;margin-bottom:12px}
@media(max-width:1100px){.content{padding:25px}.span8,.span7,.span5,.span4{grid-column:span 6}.stepgrid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:740px){.app{display:block;min-height:100dvh}.sidebar{display:none}.shell{min-height:100dvh}.topbar{height:64px;padding:12px 17px}.topbar .crumb{font-size:12px}.topright{gap:7px}.user-avatar{width:31px;height:31px}.save-state{font-size:10px;padding:6px 8px}.content{padding:24px 17px 104px}.headline{font-size:27px}.grid{gap:12px}.span8,.span7,.span6,.span5,.span4{grid-column:span 12}.box{padding:18px}.stepgrid{grid-template-columns:repeat(2,1fr)}.bottomnav{position:fixed;bottom:0;left:0;right:0;z-index:12;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));background:#111b2eef;border-top:1px solid #33415c;padding:6px 5px calc(7px + env(safe-area-inset-bottom));backdrop-filter:blur(20px)}.bottomnav button{display:grid;gap:2px;justify-items:center;border:0;background:transparent;color:#899dbb;font-size:10px;padding:5px 0 2px}.bottomnav button span{font-size:21px;line-height:1.2}.bottomnav button.active{color:#c7bcff}.field-grid{grid-template-columns:1fr}.btn{min-height:42px}.section-head{align-items:stretch}.section-head .select-inline{max-width:none}.modal{padding:21px;max-height:90dvh}.datatable table{min-width:530px}.row{align-items:flex-start}.row-actions{flex-direction:column}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* v0.2 – ergonomic chat flow and safe legacy import */
.chat-quickbar{margin:-4px 0 18px;padding:17px 19px;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;border:1px solid #5e548f;background:linear-gradient(105deg,#292b4d,#1b3244);border-radius:16px}
.chat-quickbar>b,.chat-quickbar b{font-size:14px}.chat-quickbar small{display:block;color:#a6b4d0;font-size:12px;margin-top:6px;line-height:1.45}
.chat-quick-actions{display:flex;gap:8px;flex-wrap:wrap}.chat-quick-actions .btn{min-height:37px;padding:9px 12px;font-size:12px}
.legacy-summary{max-height:230px;overflow:auto;border-block:1px solid #3d4865;margin:15px 0}.legacy-summary .row{gap:18px}
.chat-instructions p{line-height:1.6;color:#b8c5dd}.step-hint{display:flex;justify-content:space-between;border:1px solid #3e4d6c;border-radius:11px;margin:9px 0;padding:14px;background:#243149}.step-hint span{font-weight:800;color:#9bdbce}
@media(max-width:740px){.chat-quickbar{padding:14px}.chat-quick-actions{width:100%}.chat-quick-actions .btn{flex:1}.legacy-summary .row{flex-wrap:wrap}}
/* v0.4 — technical offline bodygraph */
.bg-fact{display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid #303e56;padding:12px 0;font-size:13px}
.bg-fact span{color:#97a9c6}.bg-fact strong{text-align:right;max-width:62%;overflow-wrap:anywhere}
.bg-results{margin-top:17px}.bg-passport{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;margin:18px 0}
.bg-output{min-height:270px!important;font-family:ui-monospace,Consolas,monospace;font-size:12px;line-height:1.6}
@media(max-width:740px){.bg-passport{grid-template-columns:1fr}.bg-fact strong{max-width:58%}}

/* v0.4.1 — кнопки этапов действительно открывают нужный раздел */
.step-button{width:100%;text-align:left;color:inherit;font:inherit;appearance:none;cursor:pointer;transition:border-color .18s,background .18s,transform .18s}
.step-button:hover{background:#2b3b55;border-color:#8274ce;transform:translateY(-1px)}
.step-button:focus-visible{outline:3px solid #ae9aff;outline-offset:2px}
.step-arrow{color:#a79aff;float:right;font-size:14px}

/* v0.5 — Excel-based descriptions */
.descr-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}
.descr-stats>div{padding:15px 10px;background:#24334a;border:1px solid #3b4964;border-radius:13px;text-align:center}
.descr-stats strong{display:block;font-size:25px;color:#bcacff}.descr-stats span{color:#9baeca;font-size:11px}
.descr-list{max-height:340px;overflow-y:auto;border:1px solid #374662;border-radius:13px}
.descr-item{padding:11px 13px;border-bottom:1px solid #30415d;display:flex;align-items:flex-start;gap:11px;flex-wrap:wrap;font-size:12px;line-height:1.5}
.descr-item .badge{flex:none}.descr-item>span:nth-child(2){flex:1 1 55%;overflow-wrap:anywhere}.descr-item small{color:#8b9eba}
@media(max-width:740px){.descr-stats{grid-template-columns:repeat(2,1fr)}.descr-item{display:block}.descr-item .badge{margin-right:7px}.descr-item small{display:block;margin-top:8px}}


/* v0.5.2 — compact split-window workspace: the left pane may be only 700–800px wide. */
.work-task-switch{display:none;gap:6px;margin-bottom:14px}
.work-task-switch label{font-size:12px;font-weight:700;color:#b9c9e5;display:flex;justify-content:space-between;gap:10px}
.work-task-title h2{overflow-wrap:anywhere}
@media (max-width:1100px){
 .is-work-view .app{grid-template-columns:64px minmax(0,1fr)}
 .is-work-view .sidebar{padding:14px 6px;gap:20px;align-items:stretch}
 .is-work-view .brand{padding:0;justify-content:center}
 .is-work-view .brand >div{display:none}
 .is-work-view .logo{width:41px;height:41px;font-size:25px}
 .is-work-view .nav-label,.is-work-view .sidebar-bottom{display:none}
 .is-work-view .sidenav{gap:5px}
 .is-work-view .navbtn{font-size:0;gap:0;padding:9px 2px;justify-content:center;min-height:43px;border-radius:10px}
 .is-work-view .navbtn .ico{font-size:20px}
 .is-work-view .content{padding:16px 15px 32px}
 .is-work-view .topbar{padding:10px 15px;height:57px}
 .is-work-view .eyebrow,.is-work-view .headline,.is-work-view .lead{display:none}
 .is-work-view .content>.section-head{margin-bottom:12px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
 .is-work-view .content>.section-head>.selector{width:100%;max-width:none;min-width:0}
 .is-work-view .content>.section-head>.btn{display:none}
 .is-work-view .chat-quickbar{display:none}
 .is-work-view .work-layout{display:flex;flex-direction:column-reverse;gap:11px}
 .is-work-view .work-layout>.box{width:100%;padding:15px;border-radius:13px}
 .is-work-view .work-task-switch{display:grid}
 .is-work-view .work-task-title{margin-bottom:10px}
 .is-work-view .work-task-title h2{font-size:16px;margin:0}
 .is-work-view .work-task-title .badge{font-size:10px;padding:5px 7px}
 .is-work-view .work-editor .field{margin-bottom:11px}
 .is-work-view .work-editor .field label{margin-bottom:5px}
 .is-work-view #task-prompt{min-height:70px;height:78px;line-height:1.45}
 .is-work-view #task-answer{min-height:195px;height:240px;line-height:1.55}
 .is-work-view .work-editor .btnrow{margin-top:8px!important;margin-bottom:12px!important}
 .is-work-view .work-editor .btnrow .btn{padding:10px 12px;min-height:38px;font-size:12px}
 .is-work-view .work-editor>.btnrow:last-child{position:sticky;bottom:9px;z-index:4;background:#172338f3;border:1px solid #344660;border-radius:11px;padding:10px;margin:12px -1px 0!important;backdrop-filter:blur(10px)}
 .is-work-view .work-editor #save-next{flex:1 1 180px}
 .is-work-view .work-queue{max-height:200px;overflow:auto}
 .is-work-view .work-queue .queue{padding:6px 2px}
 .is-work-view .work-queue .queue button.linklike strong{font-size:12px}
 .is-work-view .work-queue .queue button.linklike small{display:none}
 .is-work-view .work-queue>.btnrow{margin-top:10px}
 .is-work-view #content>.box:last-child{display:none}
}
@media(max-width:740px){
 .is-work-view .app{display:block}
 .is-work-view .content{padding:14px 11px 108px}
 .is-work-view .topbar{height:55px}
 .is-work-view .work-editor>.btnrow:last-child{bottom:74px}
 .is-work-view #task-answer{height:210px}
}

/* v0.5.3 — manual/clipboard-assisted answer modes */
.response-mode{display:flex;flex-wrap:wrap;align-items:center;gap:9px 14px;padding:11px 13px;margin-bottom:13px;background:#1c2b43;border:1px solid #485a7c;border-radius:12px}
.response-mode-label{display:flex;flex-direction:column;gap:3px;min-width:135px}.response-mode-label b{font-size:12px}
.response-mode-options{display:flex;flex-wrap:wrap;gap:6px}
.mode-option{cursor:pointer;font:inherit;font-weight:700;font-size:12px;color:#c3cde0;padding:8px 10px;border:1px solid #52627c;border-radius:9px;background:#243550}
.mode-option.selected{background:#4d4587;color:white;border-color:#9a86f1;box-shadow:0 0 0 1px #8276d955}
.mode-option:focus-visible{outline:2px solid #a995ff;outline-offset:2px}
.mode-explainer{flex:1 1 100%;color:#9cb1d1;font-size:11px;line-height:1.42}
.response-cta #clipboard-next{flex:1 1 235px;white-space:normal;line-height:1.4}
@media(max-width:1100px){.is-work-view .response-mode{padding:9px 10px;margin-bottom:12px}.is-work-view .response-mode-label{flex-direction:row;align-items:center;gap:12px}.is-work-view .response-mode-options{width:100%}.is-work-view .mode-option{flex:1}.is-work-view .response-mode .mode-explainer{font-size:10px}}
@media(max-width:480px){.response-mode-options{width:100%}.mode-option{flex:1}.response-cta #clipboard-next{flex:1 1 100%}}
/* v0.6.0 — Three non-destructive file categories and five-person hero builder */
.category-tabs{display:flex;gap:9px;flex-wrap:wrap;margin:16px 0}
.cat-tab{font:inherit;font-size:13px;font-weight:800;color:#b6c5e2;background:#253550;border:1px solid #445879;border-radius:10px;cursor:pointer;padding:10px 14px}
.cat-tab span{font-weight:900;color:#d6ceff;display:inline-block;margin-left:5px;padding:2px 7px;background:#374465;border-radius:10px}
.cat-tab.active{background:#493d7d;color:#fff;border-color:#a48cf9}
.file-category-select{width:123px!important;min-width:123px!important;max-width:123px!important;font-size:11px!important;padding:8px!important}
.hero-fixed-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0 0}
.hero-fixed{display:flex;gap:12px;padding:13px;background:#1f2b40;border:1px solid #41516d;border-radius:13px;cursor:pointer;align-items:flex-start}
.hero-fixed.checked{background:#2b3154;border-color:#8672e4}
.hero-fixed input{margin-top:5px;accent-color:#a28aff;flex:none;width:17px;height:17px}
.hero-fixed span{min-width:0;display:flex;flex-direction:column;gap:5px}
.hero-fixed strong{overflow-wrap:anywhere;font-size:13px}
.hero-fixed small{color:#9eafca;font-size:11px}
.hero-slot{padding:17px;margin:16px 0;background:#202e45;border:1px solid #3f5070;border-radius:13px}
.hero-slot>.smallrow{margin-bottom:12px}
.hero-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.hero-field{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:12px;font-weight:700;color:#b4c6e3}
.hero-field input,.hero-field select{max-width:100%;min-width:0;width:100%;color:#ecf2ff}
.hero-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end;margin:10px 0 20px}
.hero-check{display:flex;align-items:center;gap:10px;font-size:13px;color:#bccce3;cursor:pointer}
.hero-check input{width:17px;height:17px;accent-color:#9c82f4}
.hero-result-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}
.hero-result-stats>div{background:#23344d;border:1px solid #415272;border-radius:12px;padding:15px;text-align:center}
.hero-result-stats b{font-size:22px;color:#beaafd;display:block}
.hero-result-stats small{color:#9eafca}
.hero-result-list{border:1px solid #3d4f6b;border-radius:12px;overflow:hidden;margin:12px 0;max-height:540px;overflow-y:auto}
.hero-result{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:12px;padding:12px 14px;border-bottom:1px solid #334460;font-size:13px}
.hero-result:last-child{border-bottom:0}
.hero-result strong{display:block}.hero-result small{display:block;margin-top:4px;color:#99abc9}
.hero-unique{font-size:11px;color:#cbbafc;overflow-wrap:anywhere}
@media(max-width:1100px){.hero-fixed-grid{grid-template-columns:1fr}.hero-result{grid-template-columns:1fr}.hero-options,.hero-fields{grid-template-columns:1fr}.fileline{grid-template-columns:1fr}.fileline .two-actions{justify-content:flex-end}}
@media(max-width:740px){.category-tabs{gap:5px}.cat-tab{font-size:11px;padding:8px}.file-category-select{width:116px!important;min-width:116px!important}.hero-slot{padding:12px}.hero-result-stats b{font-size:18px}}

/* 0.6.1: city selection + calculated timezones */
.hero-random-city{grid-column:1/-1;padding:12px 14px;background:#183d44;border:1px solid #3b756c;border-radius:12px;color:#9aebdd;font-size:12px;line-height:1.55}
.hero-field input:focus{outline-color:#9486f9}

/* v0.6.2 — Mobile navigation: all sections reachable, including Hero Builder. */
.mobile-menu-list{display:grid;gap:8px;margin:16px 0 4px}
.mobile-menu-item{display:flex;align-items:center;gap:13px;text-align:left;width:100%;padding:13px 15px;border:1px solid #40516f;border-radius:13px;background:#22314c;color:#e9eafa;font-size:14px;font-weight:650;min-height:52px}
.mobile-menu-item:hover,.mobile-menu-item:focus-visible{background:#32375f;border-color:#8474cc;outline:2px solid #8474cc;outline-offset:2px}
.mobile-menu-icon{font-size:22px;color:#b8a9ff;min-width:27px;text-align:center}
.mobile-menu-item.featured{background:linear-gradient(100deg,#3b346b,#233650);border-color:#6557a3}
@media(max-width:740px){.bottomnav button{min-height:51px;touch-action:manipulation}.bottomnav button[data-action="mobile-more"]{color:#c5baff}.mobile-menu-list{gap:9px}}

/* v0.6.4: общий раздел Описание + Рабочий стол */
.description-work{margin-top:24px;scroll-margin-top:20px}
.embedded-work-header{padding:5px 0 15px}.embedded-work-header h2{font-size:22px;margin:5px 0}.embedded-work-header p{color:#96a7c2;margin:6px 0 12px}
.description-work .work-layout{gap:14px}.description-work .work-queue{max-height:560px;overflow:auto}
.chat-target-setting{display:flex;gap:7px;align-items:center;flex-wrap:wrap;color:#afbdd7;font-size:12px}
.chat-target-setting .selector{width:auto;min-width:170px;max-width:100%;min-height:37px;padding:8px 12px;font-size:12px}
.project-card .btnrow{align-items:stretch}.project-card .btnrow .btn{flex:0 1 auto}
@media(max-width:740px){.description-work .work-queue{max-height:300px}.chat-target-setting{width:100%}.chat-target-setting .selector{flex:1}}
/* Выравниваем короткие экраны проектов по верхнему краю, без пустого вертикального поля. */
.content{margin:0 auto}
@media(max-width:740px){#toast{bottom:calc(85px + env(safe-area-inset-bottom))}}

/* v0.6.5 — project selection is only possible in Projects; compact description in Chrome split view */
.project-indicator{display:inline-flex;align-items:center;gap:5px;flex-wrap:wrap;min-width:0;background:#243149;border:1px solid #425678;padding:10px 13px;border-radius:12px;color:#91a7ca;font-size:12px}
.project-indicator strong{color:#f0f4ff;overflow-wrap:anywhere;font-size:13px}
.project-toolbar>.btnrow{margin-top:0}.member-flags{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.member-flag{display:inline-flex;justify-content:center;align-items:center;min-width:35px;padding:4px 8px;border:1px solid #40516d;border-radius:7px;font-size:11px;font-weight:800;color:#8496b2;background:#1d2b42}.member-flag.ready{color:#89ecd1;border-color:#39685d;background:#1b4039}.member-flag.partial{color:#f4cd8c;border-color:#685638;background:#3d3324}
.chat-tools{margin:2px 0 18px;padding:11px 14px;border:1px solid #405671;background:#1c2a40;border-radius:13px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:space-between}.chat-tools-actions{display:flex;gap:8px;flex-wrap:wrap}.chat-tools .hint{margin:0}
@media(max-width:1100px){.is-work-view .app{grid-template-columns:64px minmax(0,1fr)}.is-work-view .chat-tools{padding:7px 9px;gap:5px}.is-work-view .chat-tools-actions .btn{padding:7px 10px;min-height:34px;font-size:11px}.is-work-view .description-work{margin-top:10px}.is-work-view .description-work>.embedded-work-header{display:none}.is-work-view .work-layout>.box{padding:10px}.is-work-view .content>.section-head{display:flex}.is-work-view .content>.section-head>.btn{display:inline-flex}.is-work-view .content>.section-head>.project-indicator{display:none}}
@media(max-width:740px){.is-work-view .content>.section-head>.project-indicator{display:inline-flex}.is-work-view .chat-tools{display:flex}}

/* Chrome split panes ~600–740px keep an icon-only sidebar on description stage. */
@media(min-width:580px) and (max-width:740px){
 .is-work-view .app{display:grid;grid-template-columns:58px minmax(0,1fr)}
 .is-work-view .sidebar{display:flex;padding:13px 4px;gap:16px}
 .is-work-view .sidebar .logo{width:40px;height:40px}
 .is-work-view .bottomnav{display:none}
 .is-work-view .content{padding:10px 11px 28px}
 .is-work-view .topbar{padding:8px 10px}
 .is-work-view .work-editor>.btnrow:last-child{bottom:8px}
}

.btn:disabled{opacity:.47;filter:grayscale(.5);cursor:not-allowed;box-shadow:none}

/* v0.6.8: technical composite, TXT preview and XLSX update preview */
.txt-preview{margin-top:18px}
.txt-preview textarea{display:block;width:100%;min-height:390px;max-height:70vh;resize:vertical;white-space:pre-wrap;overflow:auto;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:13px;line-height:1.65}
.queue-tools{display:flex;flex-direction:column;gap:8px;margin-top:16px;padding-top:14px;border-top:1px solid rgba(124,133,153,.25)}
.queue-tools .btn{width:100%;white-space:normal;text-align:center}
.excel-review{max-height:48vh;overflow:auto;border:1px solid rgba(124,133,153,.25);border-radius:12px;padding:12px;margin:14px 0}
.excel-change{padding:13px 0;border-bottom:1px solid rgba(124,133,153,.2)}
.excel-change:last-child{border:0}
.excel-change p{margin:5px 0;font-size:12px}
.excel-change pre{max-height:180px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;padding:10px;background:rgba(126,133,161,.1);border-radius:9px;font:12px/1.5 ui-monospace,monospace}
.composite-inputs{margin:16px 0;gap:14px}
.composite-inputs .box{box-shadow:none}
.composite-inputs .box h2{overflow-wrap:anywhere}
@media(max-width:700px){.txt-preview textarea{min-height:270px;max-height:54vh}.excel-review{max-height:44vh}}

/* v0.6.10 — portrait workspace and independent pair controls */
.portrait-panel{margin-top:18px}.portrait-answer{margin-top:18px}.portrait-answer textarea{min-height:230px}
.portrait-saved-preview{min-height:290px;max-height:55vh;overflow:auto;resize:vertical}
.composite-pair-selectors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}
.composite-pair-selectors .field{margin:0}
@media(max-width:650px){.composite-pair-selectors{grid-template-columns:1fr}}


/* v0.6.12 — saved TXT preview restores after switching sections or reopening. */

/* v0.6.13 — pair-specific composite psychological descriptions */
.comp-queue{max-height:700px;overflow:auto}
.comp-queue .queue{gap:8px}
.comp-editor #comp-task-prompt{min-height:170px;height:195px;font-size:13px;line-height:1.6}
.comp-editor #comp-task-answer{min-height:220px;height:280px;font-size:13px;line-height:1.6}
.comp-final #comp-final-answer{min-height:265px;height:340px;line-height:1.65}
@media(max-width:1100px){.composite-description-work{display:flex;flex-direction:column-reverse}.composite-description-work>.box{width:100%}.comp-queue{max-height:245px}.comp-editor #comp-task-prompt{height:110px;min-height:95px}}

/* v0.6.15 — Longer composite-source queues and persistent intermediate preview */
#comp-changes-text{min-height:280px;}#comp-portrait-answer{min-height:270px;} .comp-queue{max-height:720px;overflow:auto;} .comp-editor textarea{min-height:160px;}

/* v0.6.20 — Composite queue: same clipboard-assisted answer workflow as bodygraph descriptions. */
.composite-description-work #comp-clipboard-next{flex:1 1 235px;white-space:normal;line-height:1.4}
.composite-description-work .response-mode{margin-top:11px}
@media(max-width:1100px){.composite-description-work .response-mode{padding:9px 10px}.composite-description-work .response-mode-options{width:100%}.composite-description-work .mode-option{flex:1}}
@media(max-width:600px){.composite-description-work #comp-clipboard-next{flex:1 1 100%}}
