:root{--bg:#f3f5f5;--paper:#fff;--ink:#182e33;--muted:#53696d;--line:#dce4e4;--label:184px;--col:312px;--discovery:#245e68;--planning:#76521d;--research:#246447;--publication:#625285}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--bg)}body{height:100dvh;display:flex;flex-direction:column;padding:26px 28px 16px;gap:16px}button,select{font:inherit}button,a,select{touch-action:manipulation}button{cursor:pointer}button:focus-visible,select:focus-visible,a:focus-visible,.board:focus-visible{outline:3px solid #187e8d;outline-offset:3px}button:disabled{cursor:default;opacity:.35}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-shrink:0}.eyebrow{font-size:11px;font-weight:700;letter-spacing:.12em;color:var(--muted);margin:0 0 9px}.page-head h1{font-size:30px;font-weight:650;line-height:1.15;letter-spacing:-1px;margin:0 0 8px}.subtitle{font-size:14px;color:var(--muted);margin:0;line-height:1.5}.head-note{font-size:12px;line-height:1.5;text-align:right;color:var(--muted);max-width:240px;flex-shrink:0}.head-note strong{color:var(--ink);font-weight:600}.workspace{min-height:0;flex:1;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:14px;background:var(--paper);overflow:hidden;box-shadow:0 4px 22px #183e4306}.phase-nav{display:flex;gap:8px;padding:12px 16px;border-bottom:1px solid var(--line);flex-shrink:0;flex-wrap:wrap}.phase-jump{display:flex;align-items:center;gap:9px;border:1px solid transparent;background:transparent;padding:8px 10px;border-radius:6px;font-size:13px;color:var(--ink);white-space:nowrap}.phase-jump:hover{background:#f0f4f4}.phase-jump.is-current{background:#edf2f2;border-color:#dce6e5}.phase-jump small{font-size:11px;color:var(--muted);margin-left:5px}.dot{height:7px;width:7px;flex-shrink:0;border-radius:50%;background:var(--phase)}.discovery{--phase:var(--discovery);--tint:#eaf3f5}.planning{--phase:var(--planning);--tint:#f9f3e7}.research{--phase:var(--research);--tint:#eaf3ed}.publication{--phase:var(--publication);--tint:#f0edf7}.toolbar{padding:11px 16px;display:flex;gap:16px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);flex-wrap:wrap;flex-shrink:0}.views{display:flex;gap:4px;background:#f0f3f3;padding:3px;border-radius:8px}.view{border:0;background:transparent;border-radius:5px;padding:7px 12px;color:var(--muted);font-size:12px;font-weight:550;min-height:32px}.view[aria-pressed="true"]{background:white;color:var(--ink);box-shadow:0 1px 4px #12363d13}.navigation{display:flex;align-items:center;gap:8px}.stage-label{font-size:12px;color:var(--muted)}select{max-width:285px;width:250px;border:1px solid var(--line);border-radius:6px;color:var(--ink);background:white;font-size:12px;padding:8px}.arrow{border:1px solid var(--line);background:white;border-radius:6px;width:34px;min-height:34px;font-size:18px;line-height:1}.arrow:hover:not(:disabled){background:#edf3f3}.board{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-color:#9aafb0 #edf2f2;scrollbar-width:auto;position:relative}.board::-webkit-scrollbar{height:13px;width:13px}.board::-webkit-scrollbar-thumb{background:#a6b8b9;border:3px solid #edf2f2;border-radius:10px}.board::-webkit-scrollbar-track{background:#edf2f2}table{border-collapse:separate;border-spacing:0;table-layout:fixed;width:calc(var(--label) + 12 * var(--col));font-size:14px;line-height:1.55}col.label-col{width:var(--label)}col.stage-col{width:var(--col)}th,td{text-align:left;vertical-align:top;padding:20px 22px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);overflow-wrap:anywhere}thead th{position:sticky;z-index:3;background:var(--paper)}.phase-row th{top:0;height:40px;font-size:11px;line-height:1.3;padding:12px 22px;font-weight:650;letter-spacing:.045em;text-transform:uppercase;background:var(--tint);color:var(--phase)}.phase-row .corner{background:#edf2f2;color:var(--muted)}.stage-row th{top:40px;height:112px;background:#fff;padding:16px 22px 18px}.stage-row .corner{background:#f7f9f9;vertical-align:middle;color:var(--muted);font-size:12px;font-weight:500}.corner{left:0;z-index:6!important}.corner small{display:block;font-size:11px;color:var(--muted);font-weight:400;margin-top:5px}.stage-number{display:block;color:var(--phase);font-size:11px;font-weight:700;letter-spacing:.1em;margin-bottom:9px}.stage-title{font-size:17px;line-height:1.3;font-weight:650;display:block;max-width:260px}.phase-start{border-left:2px solid #c7d5d5}tbody th{position:sticky;left:0;z-index:2;background:#f7f9f9;font-size:12px;font-weight:600;line-height:1.5;color:var(--muted);box-shadow:4px 0 6px #183e4305}tbody th small{display:block;font-size:10px;font-weight:400;line-height:1.5;margin-top:8px;color:#60777a}tbody td{background:#fff}tbody tr.question:nth-child(even) td{background:#fbfcfc}.thought td{background:#edf5f1;border-bottom-color:#d2e2d9;padding-top:24px;padding-bottom:24px}.thought th{background:#e6efe9;color:#255e44}.quote{font-size:17px;line-height:1.5;font-weight:500;margin:0;letter-spacing:-.15px}.result td{color:#2b5056;font-weight:500}.empty{color:#9aabab}a{color:#216b7c;text-underline-offset:3px;text-decoration-color:#bad3d8}a:hover{text-decoration-color:currentColor}.sources td{font-size:12px;background:#f8fafb;line-height:1.65}.sources a{display:inline}.table-status{display:flex;align-items:center;justify-content:space-between;padding:9px 16px;gap:16px;font-size:11px;color:var(--muted);border-top:1px solid var(--line);flex-shrink:0;background:white}.range{color:var(--ink);font-weight:550;white-space:nowrap}.foot{font-size:11px;color:var(--muted);line-height:1.5;display:flex;gap:24px;justify-content:space-between;flex-shrink:0}.foot p{margin:0;max-width:820px}.foot span{white-space:nowrap}.board.questions-only tr.action,.board.questions-only tr.result{display:none}.board:fullscreen{background:white;width:100%;height:100%}
@media(min-width:1700px){:root{--col:330px}body{padding:30px 36px 18px}.page-head h1{font-size:34px}}
@media(max-width:900px){body{padding:18px 16px 12px;gap:12px}.head-note{display:none}.page-head h1{font-size:26px}.phase-nav{gap:3px;padding:8px}.phase-jump{font-size:11px;padding:8px}.phase-jump small{display:none}.toolbar{gap:8px;padding:8px}.stage-label{display:none}.navigation select{width:210px}.foot span{display:none}}
@media(max-width:600px){:root{--label:120px;--col:270px}body{padding:14px 8px 10px;gap:10px}.eyebrow{font-size:10px;margin-bottom:6px}.page-head h1{font-size:23px;letter-spacing:-.6px}.subtitle{font-size:12px}.workspace{border-radius:9px}.phase-nav{gap:0}.phase-jump{padding:7px 6px;font-size:10px;gap:4px;min-height:34px}.dot{width:5px;height:5px}.toolbar{align-items:center}.views{width:100%}.view{flex:1;min-height:36px}.navigation{width:100%}.navigation select{flex:1;width:auto;min-width:0;max-width:none;min-height:36px}.arrow{width:38px;min-height:38px}th,td{padding:16px;font-size:14px}.stage-row th{padding:14px 16px;height:108px}.stage-title{font-size:16px}.phase-row th{padding:12px 16px}.phase-row .corner{font-size:9px}tbody th{font-size:11px}.quote{font-size:16px}.table-status{padding:8px 10px;font-size:10px;gap:8px}.table-status .scroll-hint{max-width:155px;text-align:right}.foot{font-size:10px}.sources td{font-size:12px}}
@media print{body{height:auto;padding:0;display:block;background:white}.page-head{margin-bottom:20px}.head-note,.phase-nav,.toolbar,.table-status,.foot{display:none}.workspace{border:0;box-shadow:none;overflow:visible}.board{overflow:visible}table{width:100%;font-size:7px;line-height:1.3}col.label-col{width:6%}col.stage-col{width:7.833%}th,td{padding:6px 5px;position:static!important;font-size:7px!important}.phase-row th{height:auto;padding:6px;font-size:7px}.stage-row th{height:auto;padding:6px}.stage-number{font-size:7px;margin-bottom:4px}.stage-title,.quote{font-size:8px;line-height:1.3}.thought td{padding:8px 5px}.sources td{font-size:6px}.corner small,tbody th small{font-size:6px}.board.questions-only tr.action,.board.questions-only tr.result{display:table-row}@page{size:A3 landscape;margin:10mm}}
.addition{display:block;background:#ffe0b2;color:#4a2a00;padding:10px 12px;margin-top:12px;border-radius:5px;font-weight:400}.addition strong{font-weight:700}.addition-legend{display:inline-block;background:#ffe0b2;color:#4a2a00;padding:2px 6px;border-radius:3px}.added-row td .addition{margin-top:0}.added-row th small{color:#76521d}

/* Questions and hypothesis cards */
[hidden]{display:none!important}
.questions-group th,.questions-group td{background:#f6f9fa;padding-top:15px;padding-bottom:15px}
.questions-toggle{border:0;background:transparent;color:#244e59;padding:0;font-size:13px;font-weight:650;text-align:left;min-height:30px}
.questions-toggle .chevron{display:inline-block;margin-right:8px;transition:transform .18s}
.questions-toggle[aria-expanded="true"] .chevron{transform:rotate(180deg)}
.question-count{display:flex;width:100%;align-items:center;justify-content:space-between;border:1px solid #d9e4e7;padding:9px 12px;border-radius:8px;background:#fff;font-weight:550}
.question-count:hover{border-color:#82a9b2;background:#f3f8fa}
.question-list{padding-left:20px;margin:18px 0 3px;font-size:14px;line-height:1.6}
.question-list li{padding-left:3px;margin:0 0 14px}.question-list li:last-child{margin-bottom:0}
.hypotheses th,.hypotheses td{background:#fcfaff}
.hypotheses th{color:#5d4482}.hypothesis-legend{display:block;margin-top:14px;color:#857595;font-size:10px;font-weight:400}
.hypothesis-stack{display:grid;gap:10px}.hypothesis-card{display:block;width:100%;text-align:left;background:white;border:1px solid #ded4e9;border-radius:10px;padding:13px 14px;color:#302841;box-shadow:0 2px 5px #49365d05;transition:border-color .15s,box-shadow .15s}
.hypothesis-card:hover,.hypothesis-card[aria-expanded="true"]{border-color:#9674ba;box-shadow:0 3px 12px #59407712}
.hypothesis-card:focus-visible{outline:3px solid #9473b8;outline-offset:3px}
.hypothesis-meta{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:#857097;line-height:1.4;margin-bottom:8px}
.hypothesis-meta>span:first-child{font-weight:700;color:#79569b}
.hypothesis-title{display:block;font-size:14px;font-weight:600;line-height:1.5}
.hypothesis-more{display:flex;justify-content:space-between;font-size:11px;margin-top:10px;color:#8a789e}
.hypotheses-unmapped th,.hypotheses-unmapped td{background:#faf9fc;padding-top:14px;padding-bottom:14px}
.unmapped-content{display:flex;align-items:center;gap:22px;max-width:800px}.unmapped-content .hypothesis-card{width:260px;flex-shrink:0}.unmapped-content p{font-size:12px;line-height:1.6;color:#796d86;margin:0}
.hypothesis-popover{position:fixed;z-index:1000;width:min(440px,calc(100vw - 24px));max-height:min(640px,calc(100dvh - 24px));overflow:auto;overscroll-behavior:contain;background:#fff;border:1px solid #d8cbe7;border-radius:14px;box-shadow:0 14px 55px #30204430;padding:20px 22px;color:#302841;font-size:13px;line-height:1.6}
.popover-head{display:flex;align-items:flex-start;gap:16px;justify-content:space-between}.popover-head h2{font-size:17px;line-height:1.4;margin:0;font-weight:650}
.popover-close{flex-shrink:0;border:0;border-radius:6px;background:#f3eff7;color:#6e5388;font-size:20px;width:30px;height:30px;line-height:1}
.popover-tag{font-size:10px;letter-spacing:.04em;color:#9479ab;margin:0 0 7px}.popover-contact{padding:10px 12px;background:#f6f1fa;border-radius:7px;margin:16px 0;color:#6b4d85}
.popover-section{margin-top:17px}.popover-section h3{font-size:11px;letter-spacing:.025em;color:#877393;margin:0 0 6px;font-weight:650}.popover-section p{margin:0;white-space:pre-line}
.popover-mapping{border-top:1px solid #eee7f3;padding-top:15px;font-size:12px;color:#7d7188}
@media(max-width:600px){.hypothesis-popover{padding:17px;max-height:70dvh}.unmapped-content{align-items:flex-start;flex-direction:column;gap:12px}.unmapped-content .hypothesis-card{width:235px}}
@media print{.question-list[hidden]{display:block!important}.question-count,.popover-close,.hypothesis-more{display:none}.hypothesis-card{padding:5px;border-radius:3px;box-shadow:none}.hypothesis-title{font-size:8px}.hypothesis-meta{font-size:6px}.hypothesis-popover{display:none!important}}
.action .addition,.result .addition{background:#eef0f2;color:#4b5560}
 .views{flex-wrap:wrap}.view{white-space:normal}.toolbar-side{display:flex;align-items:center;flex-wrap:wrap;gap:8px}#view-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:7px 16px;border-bottom:1px solid var(--line);font-size:12px}#view-tools select{width:auto;max-width:170px}#view-tools button,#row-options summary,.toolbar-side button{background:#f3f6f6;color:var(--ink);border:1px solid var(--line);border-radius:6px;padding:6px 10px;cursor:pointer;font-size:12px}.toolbar-side button:hover,#row-options summary:hover{border-color:#9db4b8;background:#eaf0f0}#row-options{position:relative}#row-list{position:absolute;top:100%;right:0;z-index:12;background:white;border:1px solid var(--line);min-width:190px;padding:8px}#row-list label{display:block;padding:4px}.stage-context{font-weight:400;font-size:11px;color:var(--muted);margin-top:6px;display:block}.stage-context:empty{display:none}#idea-count{color:var(--muted);font-size:12px} .pain .empty{font-size:12px;color:var(--muted)}
.phase-nav .navigation{margin-left:auto}.phase-nav .stage-label{display:inline}.phase-nav{align-items:center}@media(max-width:600px){.phase-nav .navigation{margin-top:6px}.stage-label{font-size:11px}}

/* Кнопки «+» в ячейках и форма предложения */
tbody td{position:relative;padding-top:26px}
.questions-group td{padding-top:28px}
.cell-add{position:absolute;top:3px;right:3px;width:22px;height:22px;border-radius:50%;border:1.5px solid #8fa6ab;background:#fff;color:#3f5c62;font-size:15px;font-weight:600;line-height:1;padding:0;display:flex;align-items:center;justify-content:center;z-index:2}
.cell-add:hover,.cell-add:focus-visible{border-color:#187e8d;color:#fff;background:#187e8d}
.cell-add-tip{display:none;position:absolute;top:calc(100% + 5px);right:0;background:#182e33;color:#fff;padding:4px 9px;border-radius:5px;font-size:11px;font-weight:400;white-space:nowrap;z-index:8;pointer-events:none;box-shadow:0 3px 10px #183e4330}
.cell-add:hover .cell-add-tip,.cell-add:focus-visible .cell-add-tip{display:block}
.proposal-backdrop{position:fixed;inset:0;z-index:1200;background:#183e4359;display:flex;align-items:center;justify-content:center;padding:16px}
.proposal-dialog{background:#fff;border-radius:14px;box-shadow:0 18px 60px #183e4350;width:min(560px,100%);max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain;padding:24px 26px;color:var(--ink)}
.proposal-dialog h2{font-size:19px;margin:0 0 6px;font-weight:650;letter-spacing:-.2px}
.proposal-context{font-size:12px;color:var(--muted);margin:0 0 16px;line-height:1.5}
.proposal-dialog .field{margin-bottom:14px}
.proposal-dialog label{display:block;font-size:12px;font-weight:600;color:var(--ink);margin-bottom:5px}
.proposal-dialog input,.proposal-dialog textarea{width:100%;border:1px solid var(--line);border-radius:7px;padding:9px 11px;font:inherit;font-size:13px;color:var(--ink);background:#fff}
.proposal-dialog textarea{resize:vertical;min-height:90px}
.proposal-dialog input:focus-visible,.proposal-dialog textarea:focus-visible{outline:3px solid #187e8d;outline-offset:1px;border-color:#187e8d}
.field-hint{font-size:11px;color:var(--muted);margin:5px 0 0;line-height:1.45}
.field-error{font-size:12px;color:#b3261e;margin:5px 0 0;line-height:1.45}
.proposal-error-banner{background:#fdeceb;color:#8f1d16;border:1px solid #f3c1bc;border-radius:7px;padding:10px 12px;font-size:13px;margin:0 0 14px}
.proposal-note{font-size:12px;color:var(--muted);margin:2px 0 14px}
.proposal-actions{display:flex;gap:10px;justify-content:flex-end}
.proposal-actions button,.proposal-success button{border:1px solid var(--line);border-radius:7px;padding:9px 16px;font-size:13px;background:#fff;color:var(--ink)}
#proposal-submit,#proposal-done{background:#187e8d;border-color:#187e8d;color:#fff;font-weight:600;display:inline-flex;align-items:center;gap:8px}
#proposal-submit:hover:not(:disabled),#proposal-done:hover{background:#146c79}
#proposal-submit .spinner{display:none;width:13px;height:13px;border:2px solid #ffffff70;border-top-color:#fff;border-radius:50%;animation:proposal-spin .7s linear infinite}
#proposal-submit.is-sending .spinner{display:inline-block}
@keyframes proposal-spin{to{transform:rotate(360deg)}}
.proposal-success p{font-size:14px;line-height:1.6;margin:0 0 16px}
@media(max-width:600px){.proposal-dialog{padding:18px}.proposal-actions button,.proposal-success button{flex:1}}
@media print{.cell-add,.proposal-backdrop{display:none!important}}
.field-optional{font-weight:400;color:var(--muted);font-size:11px}

/* UX-01: пояснение о дополнении карты */
.contribute-note{font-size:13px;color:#2a4b52;margin:8px 0 0;line-height:1.5}
.contribute-note::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:#187e8d;margin-right:7px;vertical-align:1px}

/* UX-04: раздельные метки связи и неопределённости */
.hypothesis-badges{display:flex;flex-wrap:wrap;gap:4px;justify-content:flex-end}
.badge{display:inline-block;padding:2px 7px;border-radius:4px;font-size:10px;font-weight:600;line-height:1.4;white-space:nowrap}
.badge-link{background:#e8eef9;color:#3b5278}
.badge-uncertainty{background:#fdf0dd;color:#7a5218}

/* UX-05: короткое превью по наведению */
.hypothesis-popover{width:min(320px,calc(100vw - 24px));max-height:min(300px,calc(100dvh - 24px));padding:14px 16px;font-size:12px;pointer-events:auto}
.preview-title{font-size:14px;line-height:1.4;margin:0;font-weight:650}
.preview-desc{margin:8px 0 0;color:#4a3f58}
.preview-hint{margin:10px 0 0;font-size:11px;color:#9479ab}

/* UX-05: боковая панель с полными подробностями */
.hypothesis-panel{position:fixed;top:0;right:0;bottom:0;z-index:1100;width:min(440px,100vw);background:#fff;border-left:1px solid #d8cbe7;box-shadow:-14px 0 55px #30204430;color:#302841;font-size:13px;line-height:1.6;display:flex;flex-direction:column}
.panel-scroll{overflow-y:auto;overscroll-behavior:contain;padding:22px 24px;flex:1}
.hypothesis-panel .popover-head h2{font-size:18px}
.panel-flags{margin:12px 0 0;display:grid;gap:10px}
.panel-flag{display:grid;gap:2px}
.panel-flag dt{font-size:11px;color:#877393;font-weight:650;letter-spacing:.025em}
.panel-flag dd{margin:0;color:#302841}
.panel-flag-hint{color:#877393;font-size:11px}
.panel-contact-link{color:#216b7c}
@media print{.hypothesis-panel{display:none!important}}

/* UX-06: иерархия контекста в форме предложения */
.proposal-stage{font-size:15px;font-weight:600;color:var(--ink);margin:0 0 4px;line-height:1.4}
.proposal-dialog .proposal-context{margin-bottom:16px}

/* Список источников по наведению в подвале (строка карты убрана) */
.foot-side{display:flex;gap:24px;align-items:flex-start;flex-shrink:0}
.foot-sources{position:relative}
.foot-sources-trigger{border:0;background:transparent;padding:0;font:inherit;color:var(--muted);white-space:nowrap;text-decoration:underline;text-decoration-color:#bad3d8;text-underline-offset:3px}
.foot-sources-trigger:hover{color:var(--ink);text-decoration-color:currentColor}
.foot-sources-panel{position:absolute;right:0;bottom:calc(100% + 10px);width:560px;max-width:85vw;max-height:62vh;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 44px #183e4330;padding:16px 20px;display:none;z-index:60;white-space:normal;text-align:left}
.foot-sources:hover .foot-sources-panel,.foot-sources:focus-within .foot-sources-panel{display:block}
.foot-sources-title{display:block;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:10px}
.foot-sources-panel ul{list-style:none;margin:0;padding:0}
.foot-sources-panel>ul>li{margin-bottom:10px}
.foot-sources-panel>ul>li:last-child{margin-bottom:0}
.foot-sources-panel b{font-size:12px;color:var(--ink);font-weight:600}
.foot-sources-panel li li{margin:3px 0 0 2px;font-size:12px;line-height:1.5}

/* Лайки гипотез: кнопка поверх карточки, состояние — заливка значка и подпись, не только цвет */
.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.hypothesis-item{position:relative}
.like-btn{position:absolute;right:10px;bottom:8px;display:inline-flex;align-items:center;gap:5px;border:1px solid #ded4e9;background:white;border-radius:14px;padding:4px 9px;font-size:11px;line-height:1.4;color:#857097;cursor:pointer;z-index:2}
.like-btn svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}
.like-btn:hover{border-color:#9674ba;color:#79569b}
.like-btn:focus-visible{outline:3px solid #9473b8;outline-offset:2px}
.like-btn[aria-pressed="true"]{background:#f3eaf9;border-color:#9674ba;color:#6b4b8d;font-weight:650}
.like-btn[aria-pressed="true"] svg{fill:#9674ba;stroke:#9674ba}
.like-btn.is-busy{opacity:.55;cursor:default}
.like-error{position:absolute;right:10px;bottom:40px;max-width:240px;background:#fff6f2;border:1px solid #e5b8a4;color:#8a4a2d;border-radius:8px;padding:6px 9px;font-size:11px;line-height:1.45;z-index:5;box-shadow:0 4px 14px #5d3a1a14}
@media print{.like-btn,.like-error{display:none}}
