@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{color-scheme:light;--ink:#10243a;--ink-soft:#526579;--muted:#77899a;--paper:#f4f7f8;--white:#fff;--line:#dce5e8;--teal:#087f72;--teal-soft:#e2f4f0;--amber:#9a6310;--amber-soft:#fff3d9;--red:#a83c3c;--red-soft:#fff0ef;--blue-soft:#eaf0f7;--radius:20px;--shadow:0 10px 32px rgba(16,36,58,.07);font-family:'DM Sans',system-ui,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);min-height:100vh;padding:calc(env(safe-area-inset-top) + 8px) 0 calc(env(safe-area-inset-bottom) + 10px)}button,input,textarea,select{font:inherit}button{cursor:pointer}.app-shell{max-width:1060px;margin:0 auto;padding:0 18px}.topbar{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{border:0;background:transparent;display:flex;align-items:center;gap:10px;padding:4px 0;color:var(--ink);font-weight:800}.brand-mark{display:grid;place-items:center;width:40px;height:36px;background:var(--ink);color:#d6f5eb;border-radius:12px;font-family:Manrope,sans-serif;font-size:12px;letter-spacing:-.5px}.brand-name{font-family:Manrope,sans-serif;font-size:15px;letter-spacing:-.3px}.top-actions{display:flex;align-items:center;gap:12px}.save-indicator{font-size:11px;color:#738495}.icon-button{border:0;background:none;color:var(--red);padding:6px;font-size:12px}.app-main{min-height:calc(100vh - 115px)}.app-footer{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:20px 2px 8px;color:#8492a0;font-size:11px}.app-footer button{border:0;background:none;color:var(--teal);font-size:11px;padding:0}.loading-card,.empty-state,.error-card{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:34px 22px;text-align:center;max-width:580px;margin:14vh auto 0;box-shadow:var(--shadow)}.loader{width:24px;height:24px;border:3px solid #dce7e8;border-top-color:var(--teal);border-radius:50%;animation:spin .8s linear infinite;margin:0 auto}@keyframes spin{to{transform:rotate(360deg)}}
h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:Manrope,system-ui,sans-serif;letter-spacing:-.7px}h1{font-size:clamp(29px,6vw,49px);line-height:1.06;margin-bottom:16px}h2{font-size:25px;line-height:1.16;margin-bottom:12px}h3{font-size:17px;line-height:1.28;margin-bottom:7px}.eyebrow{color:var(--teal);font-size:11px;font-weight:800;letter-spacing:1.3px;text-transform:uppercase}.lead{max-width:620px;color:var(--ink-soft);font-size:16px;line-height:1.6}.intro-layout{display:grid;grid-template-columns:minmax(0,1.06fr) minmax(270px,.76fr);gap:25px;align-items:start;padding:42px 0 30px}.intro-copy{padding:16px 4px}.intro-pills{display:flex;gap:8px;flex-wrap:wrap;margin:23px 0}.pill{border:1px solid #dce7e7;border-radius:30px;background:rgba(255,255,255,.64);padding:8px 11px;color:var(--ink-soft);font-size:12px}.intro-card,.panel,.question-card,.report-card,.block-summary,.notice,.score-card{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.intro-card{padding:22px}.intro-card h2{font-size:20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field.full{grid-column:1/-1}.field label{font-size:12px;font-weight:700;color:#526579}.field small,.hint{font-size:11px;color:var(--muted);line-height:1.45}.field input,.field select,.field textarea,.question-answer,.followup-answer{width:100%;border:1px solid #d6e0e4;border-radius:12px;background:#fbfcfc;color:var(--ink);padding:12px 13px;outline:none;transition:border-color .15s,box-shadow .15s}.field input:focus,.field select:focus,.field textarea:focus,.question-answer:focus,.followup-answer:focus{border-color:#62ad9d;box-shadow:0 0 0 3px rgba(8,127,114,.1)}textarea{resize:vertical;min-height:100px}.privacy-note{display:flex;gap:10px;align-items:flex-start;background:#f0f6f6;border-radius:12px;color:#536776;padding:12px;margin:16px 0;font-size:11px;line-height:1.5}.privacy-note b{color:var(--ink)}.button{border:0;border-radius:12px;min-height:46px;padding:12px 17px;font-weight:700;font-size:14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:transform .12s,opacity .12s}.button:active{transform:translateY(1px)}.button:disabled{opacity:.5;cursor:not-allowed}.button-primary{background:var(--ink);color:#fff;width:100%}.button-secondary{background:var(--teal-soft);color:var(--teal)}.button-plain{background:#f0f4f5;color:#526579}.button-danger{background:var(--red-soft);color:var(--red)}.button-row{display:flex;gap:10px;flex-wrap:wrap}.button-row>.button{flex:1}.steps-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:25px}.step-tile{border-top:1px solid var(--line);padding-top:10px;color:var(--muted);font-size:11px;line-height:1.45}.step-tile b{display:block;color:var(--ink);font-size:12px;margin-bottom:3px}.progress-wrap{background:var(--white);border:1px solid var(--line);border-radius:16px;padding:14px 17px;margin:18px 0 16px}.progress-top{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:12px;color:var(--ink-soft);margin-bottom:9px}.progress-top strong{color:var(--ink)}.progress-track{height:7px;background:#e9eff1;border-radius:9px;overflow:hidden}.progress-fill{height:100%;background:linear-gradient(90deg,#087f72,#50b89d);border-radius:9px;transition:width .25s}.workspace{display:grid;grid-template-columns:220px minmax(0,1fr);gap:18px;align-items:start}.side-nav{position:sticky;top:12px;background:var(--white);border:1px solid var(--line);border-radius:17px;padding:12px}.side-nav h3{font-size:12px;color:var(--muted);letter-spacing:.2px;padding:3px 6px;margin-bottom:7px}.nav-block{display:flex;width:100%;align-items:center;gap:9px;border:0;border-radius:10px;background:transparent;padding:9px 8px;text-align:left;color:#718292;font-size:11px;line-height:1.25}.nav-block:disabled{cursor:default;opacity:.46}.nav-block:not(:disabled){color:var(--ink);cursor:pointer}.nav-block.current{background:var(--teal-soft);color:#066c61;font-weight:700}.nav-num{display:grid;place-items:center;flex:0 0 24px;height:24px;border-radius:8px;background:#eef2f3;font-size:10px;font-weight:700}.nav-block.current .nav-num{background:var(--teal);color:#fff}.nav-block.done .nav-num{background:#e1f1e8;color:#16704e}.content-column{min-width:0}.block-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:9px 0 17px}.block-heading h1{font-size:clamp(24px,4vw,36px);margin:4px 0 6px}.block-heading p{color:var(--ink-soft);font-size:13px;line-height:1.5;margin:0}.block-count{border-radius:13px;background:var(--blue-soft);color:#49627b;padding:9px 11px;font-size:11px;font-weight:700;white-space:nowrap}.question-card{padding:18px;margin-bottom:12px;box-shadow:none}.question-card-head{display:flex;gap:11px;align-items:flex-start;margin-bottom:10px}.question-num{display:grid;place-items:center;flex:0 0 29px;height:29px;border-radius:9px;background:#e5f3ef;color:var(--teal);font-size:12px;font-weight:800}.question-card h3{font-size:15px;margin:4px 0}.question-prompt{color:#536779;font-size:12px;line-height:1.55;margin-bottom:13px}.question-answer,.followup-answer{min-height:98px;font-size:13px;line-height:1.5}.question-note{display:flex;justify-content:space-between;gap:8px;margin-top:7px;color:#8896a2;font-size:10px}.actions-bar{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0 26px}.actions-bar .button{flex:1;min-width:160px}.block-results{padding:20px}.block-results-top{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px}.block-results-top h2{margin-bottom:4px}.result-score{width:84px;height:84px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#e7f5f0;color:#086e60;flex:0 0 auto}.result-score strong{font-family:Manrope,sans-serif;font-size:24px;line-height:1}.result-score small{font-size:10px;margin-top:3px}.summary-text{color:var(--ink-soft);font-size:13px;line-height:1.55}.score-list{display:flex;flex-direction:column;gap:8px;margin-top:16px}.score-item{border:1px solid #e5ebed;border-radius:13px;padding:12px}.score-item-head{display:flex;gap:10px;align-items:flex-start}.score-id{color:var(--teal);font-size:11px;font-weight:800;min-width:26px}.score-title{font-size:12px;font-weight:700;line-height:1.4;flex:1}.score-weight{font-size:10px;color:#8a98a4;white-space:nowrap}.score-detail{font-size:11px;line-height:1.5;color:#657789;margin:8px 0 0 36px}.score-detail b{color:#526579}.score-edit{margin:9px 0 0 36px;display:flex;align-items:center;gap:8px}.score-select{border:1px solid #d7e1e4;border-radius:9px;padding:7px 10px;background:#fbfcfc;color:var(--ink);font-weight:700;font-size:11px}.score-label{font-size:10px;color:var(--muted)}.block-bottom{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.block-bottom .button{flex:1;min-width:150px}.critical-tag{display:inline-block;background:var(--red-soft);color:var(--red);border-radius:6px;padding:3px 6px;font-size:9px;font-weight:700;margin-left:5px}.notice{box-shadow:none;padding:12px 14px;font-size:12px;line-height:1.5;margin:14px 0}.notice.warning{background:var(--amber-soft);border-color:#f0dfbd;color:#77531d}.notice.error{background:var(--red-soft);border-color:#f1d1d0;color:#8d3d3c}.notice.success{background:var(--teal-soft);border-color:#cce7df;color:#12675b}.followup-card{padding:17px;border:1px solid #e6dfc7;background:#fffdf8;border-radius:15px;margin:12px 0}.followup-why{font-size:11px;color:#7d6a43;line-height:1.45;margin:7px 0 12px}.followup-card textarea{width:100%;min-height:74px;border:1px solid #ded8c9;border-radius:11px;padding:11px;background:#fff;font-size:13px}.report-hero{background:var(--ink);color:white;padding:25px;border-radius:22px;margin:18px 0;position:relative;overflow:hidden}.report-hero:after{content:"";position:absolute;width:180px;height:180px;right:-55px;top:-68px;border-radius:50%;background:rgba(68,179,150,.12)}.report-hero h1{font-size:30px;margin:8px 0 7px;max-width:720px}.report-hero p{color:#c4d3dc;font-size:13px;line-height:1.55;max-width:760px;margin:0}.report-hero .eyebrow{color:#7cd3b8}.hero-metrics{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px;position:relative;z-index:1}.metric-chip{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:9px 12px;font-size:11px;color:#e5edf2}.metric-chip strong{font-size:14px;color:white;margin-right:4px}.report-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.report-card{padding:18px;box-shadow:none;min-width:0}.report-card.wide{grid-column:1/-1}.report-card h2{font-size:17px;margin-bottom:12px}.report-card p{color:var(--ink-soft);font-size:12px;line-height:1.55}.report-table-wrap{overflow-x:auto}.report-table{width:100%;border-collapse:collapse;font-size:11px;white-space:nowrap}.report-table th,.report-table td{text-align:left;border-bottom:1px solid #e8edef;padding:9px 8px}.report-table th{color:#7a8997;font-size:10px;font-weight:700}.status-chip{border-radius:6px;padding:4px 7px;font-size:9px;font-weight:700;background:#edf1f3;color:#718292}.status-chip.сильно{background:#e2f4ec;color:#16704e}.status-chip.норма{background:#eaf4f2;color:#087f72}.status-chip.риск{background:#fff2d8;color:#9a6310}.status-chip.слабо{background:#fff0ef;color:#a83c3c}.report-list{display:flex;flex-direction:column;gap:10px}.report-item{border:1px solid #e6ecee;border-radius:12px;padding:11px}.report-item-title{font-weight:700;font-size:12px;line-height:1.45}.report-item-meta{color:var(--teal);font-size:10px;font-weight:700;margin:5px 0}.report-item p{margin:4px 0 0}.report-item .action-copy{color:#385365}.plan-item{display:grid;grid-template-columns:34px 1fr;gap:9px;border-bottom:1px solid #e8edef;padding:11px 0}.plan-item:last-child{border:0}.plan-day{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:#e4f3ef;color:#087f72;font-size:10px;font-weight:800}.plan-item strong{font-size:12px}.plan-item p{margin:4px 0 0}.report-actions{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0 25px}.report-actions .button{flex:1;min-width:145px}.empty-note{background:#f5f7f8;border-radius:10px;padding:12px;color:#768796;font-size:11px;line-height:1.45}.dialog{border:0;padding:0;border-radius:20px;width:min(560px,calc(100% - 28px));box-shadow:0 22px 75px rgba(15,35,54,.25)}.dialog::backdrop{background:rgba(10,25,39,.55);backdrop-filter:blur(2px)}.dialog-card{padding:22px}.dialog-card p{color:var(--ink-soft);font-size:13px;line-height:1.6}.dialog-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.icon-close{border:0;background:#f0f4f5;color:#526579;border-radius:8px;width:30px;height:30px;font-size:20px}.report-loading{text-align:center;padding:60px 15px;color:var(--ink-soft)}.report-loading .loader{margin-bottom:16px}.small-muted{font-size:10px;color:#8795a0}
@media(max-width:760px){.app-shell{padding:0 13px}.intro-layout{grid-template-columns:1fr;gap:6px;padding:27px 0 18px}.intro-copy{padding:10px 2px}.intro-copy .lead{font-size:14px}.intro-pills{margin:16px 0}.intro-card{padding:18px}.workspace{grid-template-columns:1fr;gap:8px}.side-nav{position:static;display:flex;overflow-x:auto;gap:5px;padding:8px;scrollbar-width:none}.side-nav::-webkit-scrollbar{display:none}.side-nav h3{display:none}.nav-block{width:auto;min-width:72px;flex:0 0 auto;display:flex;flex-direction:column;gap:3px;text-align:center;padding:6px 8px;font-size:9px}.nav-num{width:22px;flex-basis:22px;height:22px}.progress-wrap{padding:12px 13px}.block-heading{margin-top:9px}.block-heading h1{font-size:26px}.block-count{font-size:10px;padding:8px}.question-card{padding:15px}.report-grid{grid-template-columns:1fr}.report-card.wide{grid-column:auto}.report-hero{padding:20px;border-radius:18px}.report-hero h1{font-size:25px}.app-footer{font-size:10px}.save-indicator{display:none}.score-detail,.score-edit{margin-left:0}.block-results{padding:16px}.block-results-top{align-items:flex-start}.result-score{width:72px;height:72px}.result-score strong{font-size:21px}}
@media(max-width:420px){.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.steps-strip{grid-template-columns:1fr 1fr}.steps-strip .step-tile:last-child{grid-column:1/-1}.block-count{max-width:90px;white-space:normal;text-align:center}.button-row{flex-direction:column}.button-row .button{width:100%}.topbar{min-height:50px}.brand-name{font-size:14px}}
.ai-status{font-weight:700;border-width:2px}
