:root{color-scheme:light;--bg: #faf7f2;--surface: #ffffff;--surface-soft: #fbf8f4;--accent: #b1542f;--accent-deep: #9d4f2e;--accent-ink: #8f4526;--accent-soft: #f5e4d9;--accent-line: #e9d1c2;--accent-wash: #fbf0e9;--ink: #292524;--ink-2: #57534e;--muted: #7a7069;--line: #eee7df;--line-strong: #ddd2c7;--green: #2f6b4f;--green-soft: #e8f2ec;--red: #9c3b2e;--red-soft: #f9e9e5;--shadow-sm: 0 1px 2px rgba(41, 37, 36, .04);--shadow-md: 0 1px 2px rgba(41, 37, 36, .04), 0 16px 40px -24px rgba(41, 37, 36, .22);--shadow-lg: 0 2px 4px rgba(41, 37, 36, .04), 0 32px 80px -32px rgba(41, 37, 36, .28);--radius: 20px;--radius-sm: 12px;font-family:Segoe UI Variable Text,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,Arial,sans-serif;font-size:16px;line-height:1.5;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}*{box-sizing:border-box}html{height:100%;scroll-behavior:smooth}body{margin:0;min-width:320px;height:100%;min-height:0;overflow:hidden;background:var(--bg)}#root{height:100%;padding:16px}@media(max-width:760px),(max-height:560px)and (pointer:coarse){#root{padding:0}}button,input,textarea,select{font:inherit;color:inherit}button{-webkit-tap-highlight-color:transparent}:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}h1,h2,h3,p,dl,dd,blockquote,figure{margin:0}h1{font-size:clamp(1.55rem,1.3rem + .9vw,2rem);font-weight:650;letter-spacing:-.035em;line-height:1.18}h2{font-size:1.02rem;font-weight:600;letter-spacing:-.015em;line-height:1.3}code{font-family:Cascadia Mono,ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.muted{color:var(--ink-2)}.small{font-size:.85rem}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.skip{position:absolute;left:16px;top:-80px;z-index:30;background:var(--ink);color:#fff;padding:10px 16px;border-radius:10px;text-decoration:none;transition:top .12s ease}.skip:focus{top:16px}.app{display:grid;grid-template-columns:248px minmax(0,1fr);width:min(1560px,100%);height:calc(100vh - 32px);height:calc(100dvh - 32px);min-height:0;margin:0 auto;background:var(--surface);border:1px solid var(--line);border-radius:28px;box-shadow:var(--shadow-md);overflow:clip}.sidebar{position:relative;top:auto;display:flex;flex-direction:column;gap:28px;height:100%;padding:26px 16px 18px;background:var(--surface);border-right:1px solid var(--line);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent}.brand{display:flex;align-items:center;gap:11px;padding:0 8px}.brand-mark{flex:none;width:40px;height:40px;border-radius:13px;display:grid;place-items:center;background:var(--accent);color:#fff;box-shadow:inset 0 1px #ffffff3d}.brand-text{min-width:0}.brand-name{font-size:.83rem;font-weight:700;letter-spacing:.07em;color:var(--ink);white-space:nowrap}.brand-sub{font-size:.75rem;color:var(--muted);white-space:nowrap}.nav{display:grid;gap:4px}.nav-link{position:relative;display:flex;align-items:center;gap:11px;width:100%;padding:10px 12px;border:0;border-radius:11px;background:transparent;color:var(--ink-2);font-size:.9rem;font-weight:500;text-align:left;cursor:pointer;transition:background-color .12s ease,color .12s ease}.nav-link:hover{background:var(--surface-soft);color:var(--ink)}.nav-link-on{background:var(--accent-soft);color:var(--accent-ink);font-weight:600}.nav-link-on:before{content:"";position:absolute;left:-16px;top:50%;width:3px;height:20px;border-radius:0 3px 3px 0;background:var(--accent);transform:translateY(-50%)}.nav-icon{flex:none;display:grid;place-items:center;color:currentColor}.nav-link-on .nav-icon{color:var(--accent-deep)}.nav-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-count{margin-left:auto;min-width:22px;padding:1px 6px;border-radius:999px;background:var(--accent);color:#fff;font-size:.68rem;font-weight:700;font-variant-numeric:tabular-nums;text-align:center}.sidebar-foot{display:grid;gap:10px;margin-top:auto}.sidebar-role{display:grid;gap:2px;margin:0;padding:8px 12px;border-radius:10px;background:var(--surface-soft);color:var(--ink-2);font-size:.78rem;line-height:1.3}.sidebar-expiry{color:var(--muted);font-variant-numeric:tabular-nums}.sidebar-build{margin:0;padding:0 12px;color:var(--ink-2);font-family:var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);font-size:.7rem;letter-spacing:.02em;-webkit-user-select:all;user-select:all}.logout{display:flex;align-items:center;gap:9px;padding:9px 12px;border:0;border-radius:10px;background:transparent;color:var(--muted);font-size:.83rem;cursor:pointer;transition:background-color .12s ease,color .12s ease}.logout:hover{background:var(--red-soft);color:var(--red)}.content{display:flex;flex-direction:column;min-width:0;height:100%;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;background:var(--bg);scrollbar-color:var(--line-strong) transparent;scrollbar-width:thin}.content::-webkit-scrollbar{width:8px}.content::-webkit-scrollbar-track{background:transparent}.content::-webkit-scrollbar-thumb{border-radius:999px;background:var(--line-strong)}.content::-webkit-scrollbar-thumb:hover{background:var(--muted)}.topbar{position:sticky;top:0;z-index:6;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:64px;padding:12px clamp(20px,3.4vw,40px);background:#faf7f2e0;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid rgba(238,231,223,.8)}.crumb{display:flex;align-items:center;gap:8px;font-size:.8rem;color:var(--muted)}.crumb strong{color:var(--ink-2);font-weight:600}.crumb-sep{color:var(--line-strong)}.topbar-actions{display:flex;align-items:center;gap:10px}.icon-button{display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--ink-2);cursor:pointer;transition:border-color .12s ease,color .12s ease}.icon-button:hover:not(:disabled){border-color:var(--accent-line);color:var(--accent-deep)}.icon-button:disabled{cursor:default;color:var(--line-strong)}.icon-button .spin{animation:spin .9s linear infinite}.mobile-logout{display:none}.main{flex:1;min-height:0;width:min(1180px,100%);margin:0 auto;padding:clamp(22px,3.4vw,38px) clamp(20px,3.4vw,40px) 44px}.main:focus{outline:none}.banner{position:fixed;top:12px;left:50%;z-index:40;display:flex;align-items:center;gap:12px;max-width:min(720px,calc(100% - 24px));transform:translate(-50%);padding:10px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:0 10px 30px #0f172a1f;color:var(--ink);font-size:.85rem}.banner-warn{border-color:#f0c27a;background:#fff7e6}.gate{height:100vh;height:100dvh;min-height:0;display:grid;place-items:center;overflow-y:auto;padding:24px;background:var(--bg)}.gate-status{margin:0;color:var(--muted);font-size:.95rem}.gate-card-single{width:min(560px,100%);display:block;padding:clamp(28px,4vw,40px)}.gate-card-single .gate-title{margin:6px 0 10px;font-size:clamp(1.5rem,2.4vw,1.9rem)}.gate-card-single .gate-lead{margin:0 0 22px}.gate-card{width:min(920px,100%);display:grid;grid-template-columns:1.02fr .98fr;background:var(--surface);border:1px solid var(--line);border-radius:26px;box-shadow:var(--shadow-lg);overflow:hidden;animation:rise .26s ease-out}.gate-brand{position:relative;display:flex;flex-direction:column;gap:26px;padding:clamp(28px,4vw,44px);background:var(--accent-deep);color:#fff;overflow:hidden}.gate-brand:after,.gate-brand:before{content:"";position:absolute;border:1px solid rgba(255,255,255,.12);border-radius:50%;pointer-events:none}.gate-brand:after{width:380px;height:380px;right:-170px;bottom:-180px}.gate-brand:before{width:230px;height:230px;right:-95px;bottom:-105px}.gate-logo{position:relative;z-index:1;display:flex;align-items:center;gap:11px}.gate-logo .brand-mark{background:#ffffff29;box-shadow:inset 0 0 0 1px #ffffff2e}.gate-logo .brand-name{color:#fff}.gate-logo .brand-sub{color:#ffffffe0}.gate-title{position:relative;z-index:1;font-size:clamp(1.7rem,1.3rem + 1.2vw,2.35rem);font-weight:650;letter-spacing:-.035em;line-height:1.16}.gate-lead{position:relative;z-index:1;max-width:34ch;color:#ffffffe6;font-size:.94rem}.gate-points{position:relative;z-index:1;display:grid;gap:12px;margin:auto 0 0;padding:10px 0 0;list-style:none}.gate-point{display:flex;align-items:flex-start;gap:10px;color:#ffffffeb;font-size:.84rem;line-height:1.45}.gate-point-mark{flex:none;display:grid;place-items:center;width:20px;height:20px;margin-top:1px;border-radius:6px;background:#ffffff24;color:#fff}.gate-side{display:flex;flex-direction:column;justify-content:center;gap:16px;padding:clamp(28px,4vw,44px)}.gate-side h2{font-size:1.3rem;font-weight:650;letter-spacing:-.02em}.gate-side .muted{font-size:.9rem}.gate-form{display:grid;gap:9px}.gate-form label{font-size:.8rem;font-weight:600;color:var(--ink-2)}.gate-form input{width:100%;padding:13px 14px;border:1px solid var(--line-strong);border-radius:12px;background:var(--surface-soft);transition:border-color .12s ease,background-color .12s ease}.gate-form input:hover{border-color:var(--accent-line)}.gate-form input:focus{border-color:var(--accent);background:#fff;outline:none;box-shadow:0 0 0 3px #c56a4324}.gate-form .button{margin-top:4px}.form-error{color:var(--red);font-size:.84rem}.gate-footnote{border-top:1px solid var(--line);padding-top:14px;color:var(--muted);font-size:.76rem;line-height:1.5}.page{display:grid;gap:20px;min-width:0;animation:rise .22s ease-out}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.page-head-text{display:grid;gap:6px;max-width:660px}.page-head .muted{font-size:.9rem}.eyebrow{display:flex;align-items:center;gap:7px;color:var(--accent-ink);font-size:.7rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase}.eyebrow:before{content:"";width:14px;height:1.5px;border-radius:2px;background:var(--accent)}.page-count{flex:none;padding:6px 11px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink-2);font-size:.75rem;font-variant-numeric:tabular-nums;white-space:nowrap}.section-title{margin:6px 0 0;font-size:1.02rem}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.segmented{display:inline-flex;gap:2px;padding:4px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.segment{border:0;border-radius:8px;padding:7px 13px;background:transparent;color:var(--ink-2);font-size:.84rem;cursor:pointer;transition:background-color .12s ease,color .12s ease}.segment:hover{color:var(--ink);background:var(--surface-soft)}.segment-on{background:var(--ink);color:#fff;font-weight:600}.segment-on:hover{background:var(--ink);color:#fff}.search{position:relative;display:block}.search .search-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none}.search input{width:min(300px,72vw);padding:10px 14px 10px 38px;border:1px solid var(--line);border-radius:11px;background:var(--surface);font-size:.88rem;transition:border-color .12s ease,box-shadow .12s ease}.search input::placeholder{color:var(--muted)}.search input:focus{border-color:var(--accent-line);outline:none;box-shadow:0 0 0 3px #c56a431a}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:11px;padding:11px 16px;cursor:pointer;font-size:.88rem;font-weight:600;transition:background-color .12s ease,color .12s ease,border-color .12s ease}.button-primary{background:var(--accent);color:#fff;box-shadow:0 1px 2px #8f45262e}.button-primary:hover:not(:disabled){background:var(--accent-deep)}.button-primary:disabled{background:var(--accent-line);color:#fff;cursor:not-allowed}.button-danger{border:1px solid #b5451f;background:#b5451f;color:#fff;box-shadow:0 1px 2px #7a2c1238}.button-danger:hover:not(:disabled){background:#9c3a1a}.button-danger:disabled{opacity:.7;cursor:not-allowed}.button-quiet{border:1px solid var(--line-strong);background:var(--surface);color:var(--ink-2)}.button-quiet:hover:not(:disabled){border-color:var(--accent-line);color:var(--accent-ink)}.link-button{display:inline-flex;align-items:center;gap:5px;border:0;background:none;color:var(--accent-ink);font-size:.82rem;font-weight:600;text-decoration:none;cursor:pointer;padding:0}.link-button:hover{color:var(--accent-deep);text-decoration:underline;text-underline-offset:3px}.back{display:inline-flex;align-items:center;gap:7px;justify-self:start;border:0;background:none;padding:2px 0;color:var(--ink-2);font-size:.84rem;cursor:pointer}.back:hover{color:var(--accent-ink)}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-sm);padding:22px;min-width:0}.card-fill{display:flex;flex-direction:column}.card-foot{margin-top:auto;padding-top:14px;border-top:1px solid var(--line);color:var(--muted);font-size:.76rem;line-height:1.5}.card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.card-head h2{margin:0}.card>h2{margin-bottom:16px}.card-note{color:var(--muted);font-size:.76rem;text-align:right;white-space:nowrap}.stack{display:grid;gap:16px}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;min-width:0}.kpi{display:grid;gap:14px;padding:18px;border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:var(--shadow-sm)}.kpi-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.kpi-label{color:var(--ink-2);font-size:.78rem;font-weight:600}.kpi-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:var(--bg);color:var(--ink-2)}.kpi-value{font-size:2.15rem;font-weight:650;letter-spacing:-.045em;line-height:1;font-variant-numeric:tabular-nums}.kpi-foot{color:var(--muted);font-size:.75rem;line-height:1.4}.kpi-warn{background:var(--accent-soft);border-color:var(--accent-line)}.kpi-warn .kpi-label,.kpi-warn .kpi-value{color:var(--accent-ink)}.kpi-warn .kpi-icon{background:#fff9;color:var(--accent-deep)}.kpi-warn .kpi-foot{color:var(--accent-ink)}.dash-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.9fr);gap:16px;align-items:stretch;min-width:0}.dash-grid-even{grid-template-columns:repeat(2,minmax(0,1fr))}.bars{display:grid;gap:13px;margin:0;padding:0;list-style:none}.cohort{display:grid;gap:8px;margin-bottom:18px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft)}.cohort-head,.cohort-foot{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.cohort-label{color:var(--ink-2);font-size:.78rem;font-weight:500}.cohort-value{color:var(--accent-ink);font-size:1.35rem;font-weight:650;letter-spacing:-.03em;line-height:1;font-variant-numeric:tabular-nums}.cohort-track{display:flex;gap:3px}.cohort-tick{flex:1;height:6px;border-radius:2px;background:#eee5dc}.cohort-tick-on{background:var(--accent)}.cohort-foot{color:var(--muted);font-size:.7rem}.topic-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0;padding:0;list-style:none}.topic-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft);color:var(--ink-2);font-size:.84rem}.topic-count{min-width:22px;padding:1px 7px;border-radius:999px;background:var(--accent-soft);color:var(--accent-ink);font-size:.72rem;font-weight:700;font-variant-numeric:tabular-nums;text-align:center}.bar-row{display:grid;grid-template-columns:minmax(96px,36%) minmax(60px,1fr) auto;align-items:center;gap:12px}.bar-label{overflow:hidden;color:var(--ink-2);font-size:.84rem;text-overflow:ellipsis;white-space:nowrap}.bar-track{height:8px;border-radius:999px;background:#f4eee7;overflow:hidden}.bar-fill{display:block;height:100%;border-radius:inherit;background:var(--accent);transition:width .3s ease}.bar-value{min-width:1.6em;color:var(--ink-2);font-size:.78rem;font-variant-numeric:tabular-nums;text-align:right}.attention-list{display:grid;margin:0;padding:0;list-style:none}.attention{display:grid;gap:5px;padding:13px 0;border-bottom:1px solid var(--line)}.attention:first-child{padding-top:0}.attention:last-child{padding-bottom:0;border-bottom:0}.attention-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.attention-name{font-size:.9rem;font-weight:600}.attention-quote{display:-webkit-box;overflow:hidden;color:var(--ink-2);font-size:.82rem;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:2}.attention-meta{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:.73rem}.attention-link{justify-self:start;margin-top:2px;font-size:.78rem}.empty-inline{padding:18px 0 6px;color:var(--muted);font-size:.85rem;line-height:1.5}.activity{display:grid;margin:0;padding:0;list-style:none}.activity-row{display:flex;align-items:center;gap:11px;padding:11px 0;border-bottom:1px solid var(--line)}.activity-row:first-child{padding-top:0}.activity-row:last-child{padding-bottom:0;border-bottom:0}.activity-avatar{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:var(--accent-wash);color:var(--accent-ink);font-size:.72rem;font-weight:700}.activity-main{min-width:0;flex:1}.activity-name{display:flex;align-items:center;gap:7px;overflow:hidden;font-size:.86rem;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.activity-sub{display:block;overflow:hidden;color:var(--muted);font-size:.75rem;text-overflow:ellipsis;white-space:nowrap}.activity-button{width:100%;border:0;background:none;text-align:left;cursor:pointer;font:inherit;color:inherit}.activity-button:hover .activity-name{color:var(--accent-ink)}.activity-button:hover .chevron{color:var(--accent)}.activity-time{flex:none;color:var(--muted);font-size:.73rem;font-variant-numeric:tabular-nums;white-space:nowrap}.pill{display:inline-flex;align-items:center;gap:4px;padding:2px 9px;border-radius:999px;font-size:.73rem;font-weight:600;white-space:nowrap}.pill-active{background:var(--accent-soft);color:var(--accent-ink)}.pill-done{background:var(--green-soft);color:var(--green)}.pill-warn{background:var(--accent);color:#fff}.pill-muted{border:1px solid var(--line);background:var(--surface-soft);color:var(--ink-2)}.tag-row{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:0}.tag{padding:3px 10px;border:1px solid var(--line);border-radius:999px;background:var(--surface-soft);color:var(--ink-2);font-size:.74rem;white-space:nowrap}.run-list,.question-cards{display:grid;gap:10px;margin:0;padding:0;list-style:none}.run-card{display:flex;align-items:center;gap:15px;width:100%;padding:16px 18px;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--shadow-sm);text-align:left;cursor:pointer;transition:border-color .12s ease,box-shadow .12s ease,transform .12s ease}.run-card:hover{border-color:var(--accent-line);box-shadow:var(--shadow-md);transform:translateY(-1px)}.avatar{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--accent-wash);color:var(--accent-ink);font-size:.82rem;font-weight:700}.avatar-lg{width:56px;height:56px;border-radius:15px;font-size:.98rem}.avatar-sm{width:32px;height:32px;border-radius:9px;font-size:.7rem}.run-main{display:grid;flex:1;gap:4px;min-width:0}.run-title{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.run-title strong{font-size:.94rem;font-weight:600}.run-meta{color:var(--muted);font-size:.79rem}.run-progress{max-width:380px;margin-top:5px}.run-side{display:grid;flex:none;justify-items:end;gap:3px;min-width:148px;text-align:right}.run-step{color:var(--ink-2);font-size:.8rem;font-weight:500}.run-time{color:var(--muted);font-size:.75rem}.chevron{color:var(--line-strong);font-size:1rem}.progress{display:flex;align-items:center;gap:10px}.progress-track{flex:1;height:6px;border-radius:999px;background:#f2ece5;overflow:hidden}.progress-fill{height:100%;border-radius:inherit;background:var(--accent);transition:width .24s ease}.progress-fill-done{background:var(--green)}.progress-label{color:var(--muted);font-size:.74rem;font-variant-numeric:tabular-nums;white-space:nowrap}.detail-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-sm)}.detail-identity{display:flex;align-items:center;gap:15px}.detail-identity h1{font-size:1.5rem}.detail-identity .muted{margin-top:3px;font-size:.86rem}.detail-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.confirm{display:grid;gap:10px;max-width:340px;padding:14px 16px;border:1px solid #e3b6a4;border-radius:var(--radius);background:#fdf1ec}.confirm-text{margin:0;font-size:13px;line-height:1.5;color:var(--ink-2)}.confirm-actions{display:flex;flex-wrap:wrap;gap:8px}.detail-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);gap:16px}.detail-grid .card{min-width:0}.facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}.facts dt{color:var(--muted);font-size:.7rem;font-weight:600;letter-spacing:.05em;text-transform:uppercase}.facts dd{margin-top:3px;font-size:.88rem;font-weight:600;overflow-wrap:anywhere}.step-message{margin-top:18px;padding:13px 15px;border-left:3px solid var(--accent);border-radius:0 10px 10px 0;background:var(--accent-wash);color:var(--ink-2);font-size:.87rem;line-height:1.55;white-space:pre-line}.question-list{display:grid;gap:15px;margin:0;padding:0;list-style:none}.question-list li{padding-bottom:15px;border-bottom:1px solid var(--line)}.question-list li:last-child{padding-bottom:0;border-bottom:0}.question-text{font-size:.93rem;font-weight:500;line-height:1.5;overflow-wrap:anywhere}.file-list{display:grid;gap:12px;margin:0;padding:0;list-style:none}.file-list li{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:12px;border-bottom:1px solid var(--line)}.file-list li:last-child{padding-bottom:0;border-bottom:0}.file-name{font-size:.93rem;font-weight:500;overflow-wrap:anywhere}.question-meta,.question-foot{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:8px;color:var(--muted);font-size:.77rem}.citations{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}.citations code{padding:1px 6px;border:1px solid var(--accent-line);border-radius:6px;background:var(--accent-wash);color:var(--accent-ink);font-size:.72rem}.timeline{display:grid;gap:0;margin:0;padding:0;list-style:none}.timeline li{display:grid;grid-template-columns:132px 1fr;gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}.timeline li:last-child{border-bottom:0}.timeline time{color:var(--muted);font-size:.77rem;font-variant-numeric:tabular-nums}.timeline-name{font-size:.89rem;font-weight:600}.timeline-detail{margin-top:2px;color:var(--ink-2);font-size:.8rem}.stat-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.stat{display:grid;gap:2px;padding:14px 15px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.stat-warn{border-color:var(--accent-line);background:var(--accent-soft)}.stat-value{font-size:1.55rem;font-weight:650;letter-spacing:-.03em;line-height:1.1;font-variant-numeric:tabular-nums}.stat-warn .stat-value,.stat-warn .stat-label{color:var(--accent-ink)}.stat-label{color:var(--muted);font-size:.75rem}.digest{display:grid;gap:10px;margin:0;padding:0;list-style:none}.digest-row{display:flex;justify-content:space-between;gap:18px;padding:16px 17px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:var(--shadow-sm)}.digest-row-high{border-left:3px solid var(--accent);padding-left:15px}.digest-main{display:grid;gap:5px;min-width:0}.digest-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.digest-head strong{font-size:.92rem;font-weight:600}.digest-head .muted{color:var(--muted);font-size:.78rem}.digest-quote{margin:2px 0;padding:9px 12px;border-radius:9px;background:var(--surface-soft);color:var(--ink-2);font-size:.84rem;font-style:italic;line-height:1.5}.digest-reasons{color:var(--ink-2);font-size:.84rem}.digest-meta{margin:0;color:var(--muted);font-size:.74rem}.digest-tags{display:flex;flex-wrap:wrap;align-content:flex-start;justify-content:flex-end;gap:6px;max-width:260px}.question-cards{gap:12px}.question-card{display:grid;gap:10px}.question-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.question-identity{display:flex;align-items:center;gap:10px;min-width:0}.question-author{font-size:.9rem;font-weight:600}.question-card .question-text{font-size:1rem;line-height:1.5}.question-foot{margin-top:2px;padding-top:10px;border-top:1px solid var(--line)}.question-foot .link-button{display:inline-flex;align-items:center;gap:4px;margin-left:auto}.question-flags{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}.pill-mine{background:var(--accent-soft);color:var(--accent-ink)}.question-owner{display:flex;align-items:center;gap:8px;margin-top:2px}.resolve{display:grid;gap:8px;justify-items:start;padding-top:10px;border-top:1px solid var(--line)}.resolve textarea{width:100%;resize:vertical;min-height:84px;padding:10px 12px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface-soft);transition:border-color .12s ease,box-shadow .12s ease}.resolve textarea:focus{border-color:var(--accent-line);outline:none;box-shadow:0 0 0 3px #c56a431a}.resolve-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.error-text{color:var(--red);font-size:.85rem}.knowledge-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:16px;align-items:start}.state-crash{gap:12px;align-items:flex-start;margin:32px auto;max-width:620px}.state-detail{max-width:100%;margin:0;padding:10px 12px;overflow-x:auto;border:1px solid var(--line);border-radius:8px;background:var(--surface-2);font-size:12px;color:var(--ink-2)}.page-more{display:flex;justify-content:center;padding:4px 0 8px}.knowledge-layout-read{grid-template-columns:minmax(0,1fr);max-width:780px}.upload{display:grid;gap:10px}.upload-label{font-size:.86rem;font-weight:600}.upload-hint{color:var(--muted);font-size:.79rem;line-height:1.5}.upload-area{width:100%;min-height:260px;padding:13px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft);color:var(--ink);font-family:Cascadia Mono,ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.8rem;line-height:1.55;resize:vertical;transition:border-color .12s ease,box-shadow .12s ease}.upload-area:focus{border-color:var(--accent-line);outline:none;box-shadow:0 0 0 3px #c56a431a}.upload-area::placeholder{color:#b3a79d;opacity:1}.upload-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}.upload-fields label{display:grid;gap:4px;font-size:12px;color:var(--muted)}.upload-fields input{min-height:34px;padding:6px 10px;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);color:var(--ink);font:inherit;font-size:13px}.upload input[type=file]{font-size:13px;color:var(--ink-2)}.upload-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.note{display:flex;align-items:center;justify-content:space-between;gap:12px;border-radius:10px;padding:10px 13px;font-size:.85rem}.note-ok{border:1px solid #cfe4d7;background:var(--green-soft);color:var(--green)}.note-error{border:1px solid #eccbc4;background:var(--red-soft);color:var(--red)}.knowledge{display:grid;gap:8px;margin:0;padding:0;list-style:none}.knowledge-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft);overflow:hidden;transition:border-color .12s ease,background .12s ease}.knowledge-row:hover{border-color:var(--line-strong);background:var(--surface)}.knowledge-open{display:flex;width:100%;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;border:0;border-radius:inherit;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.knowledge-open:focus-visible{outline:2px solid var(--accent-line);outline-offset:-2px}.knowledge-main{display:grid;gap:3px;min-width:0}.knowledge-main strong{font-size:.88rem;font-weight:600}.knowledge-main .digest-meta{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.knowledge-main code{color:var(--accent-ink);font-size:.72rem;overflow-wrap:anywhere}.knowledge-open>.digest-meta{flex:none;text-align:right}.knowledge-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;display:grid;place-items:center;padding:20px;background:#30262061;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.knowledge-dialog{display:flex;flex-direction:column;width:min(820px,100%);max-height:calc(100dvh - 40px);overflow:hidden;border:1px solid var(--line-strong);border-radius:20px;background:var(--surface);box-shadow:0 24px 70px #30262040}.knowledge-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 20px 14px;border-bottom:1px solid var(--line)}.knowledge-dialog-title{display:grid;gap:4px;min-width:0}.knowledge-dialog-title h2{margin:0;font-size:1.15rem;line-height:1.25}.document-id{margin:0;color:var(--muted);font-size:.78rem;overflow-wrap:anywhere}.knowledge-dialog-body{display:grid;gap:14px;padding:18px 20px;overflow-y:auto}.document-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0}.document-meta>div{display:grid;gap:3px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft)}.document-meta dt{color:var(--muted);font-size:.68rem;letter-spacing:.06em;text-transform:uppercase}.document-meta dd{margin:0;font-size:.82rem;overflow-wrap:anywhere}.document-text{margin:0;max-height:48vh;overflow:auto;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft);color:var(--ink);font-family:Cascadia Mono,ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.78rem;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.document-editor-label{display:grid;gap:6px;font-size:.82rem;font-weight:600}.document-editor{min-height:320px}.knowledge-dialog-foot{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:14px 20px;border-top:1px solid var(--line);background:var(--surface-soft)}.knowledge-dialog-foot .muted{margin-right:auto;font-size:.82rem}.state{padding:34px 24px;border:1px dashed var(--line-strong);border-radius:var(--radius);background:var(--surface);text-align:center}.state-title{font-size:.95rem;font-weight:600}.state-text{max-width:520px;margin:6px auto 0;color:var(--muted);font-size:.86rem;line-height:1.55}.skeleton-list{display:grid;gap:10px}.skeleton-row{display:grid;gap:10px;padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.skeleton{border-radius:6px;background:linear-gradient(90deg,#f2ece5 25%,#faf7f2,#f2ece5 75%);background-size:200% 100%;animation:shimmer 1.2s linear infinite}.skeleton-title{width:38%;height:14px}.skeleton-line{width:68%;height:9px}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes rise{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}@media(max-width:1180px){.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dash-grid{grid-template-columns:1fr}.dash-grid-even{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:1024px){.app{grid-template-columns:78px minmax(0,1fr)}.sidebar{gap:22px;padding:24px 10px 16px}.brand{justify-content:center;padding:0}.brand-text,.nav-label,.logout span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.sidebar-role,.sidebar-build{display:none}.nav-link{justify-content:center;min-height:44px;padding:11px 0}.nav-link-on:before{left:-10px}.nav-count{position:absolute;top:2px;right:6px;min-width:16px;padding:0 4px;font-size:.6rem}.logout{justify-content:center;min-height:44px}.detail-grid,.knowledge-layout,.upload-fields{grid-template-columns:1fr}}@media(max-width:820px){.gate-card{grid-template-columns:1fr}.gate-brand{gap:16px}.gate-points{display:none}}@media(max-width:760px),(max-height:560px)and (pointer:coarse){.app{--nav-h: 64px;grid-template-columns:1fr;width:100%;height:100vh;height:100dvh;min-height:0;margin:0;border:0;border-radius:0;box-shadow:none;overflow:visible}.sidebar{position:fixed;top:auto;bottom:0;left:0;right:0;z-index:20;flex-direction:row;align-items:center;gap:4px;height:var(--nav-h);padding:6px 8px calc(6px + env(safe-area-inset-bottom));border-top:1px solid var(--line);border-right:0;background:#fffffff5;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);overflow:visible}.sidebar>.brand,.sidebar-foot{display:none}.nav{grid-template-columns:repeat(5,minmax(0,1fr));width:100%;gap:2px}.nav-link{flex-direction:column;justify-content:center;gap:3px;min-height:52px;padding:4px 2px;border-radius:10px;font-size:.68rem;font-weight:500}.nav-label{position:static;width:auto;height:auto;max-width:100%;overflow:hidden;clip-path:none;font-size:.68rem;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.nav-link-on:before{display:none}.nav-count{top:1px;right:calc(50% - 20px)}.content{height:100%;min-height:0;padding-bottom:calc(var(--nav-h) + env(safe-area-inset-bottom))}.topbar{min-height:58px}.crumb{font-size:.74rem}.mobile-logout{display:grid}.page-head{flex-direction:column;gap:10px}.page-head .page-count{align-self:flex-start}.run-card{align-items:flex-start;flex-wrap:wrap}.run-side{width:100%;min-width:0;grid-auto-flow:column;align-items:center;justify-content:space-between;justify-items:start;padding-top:9px;border-top:1px solid var(--line);text-align:left}.chevron{display:none}.timeline li{grid-template-columns:1fr;gap:3px}.digest-row{flex-direction:column}.digest-tags{max-width:none;justify-content:flex-start}.question-foot .link-button{margin-left:0}}@media(max-width:560px){.main{padding:22px 16px 30px}.topbar{padding:10px 16px}.kpi-grid{gap:10px}.kpi{padding:15px}.kpi-value{font-size:1.85rem}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dash-grid-even,.facts{grid-template-columns:1fr}.detail-head{align-items:flex-start;flex-direction:column;gap:12px}.segmented{width:100%}.segment{flex:1;padding:7px 8px}.search,.search input{width:100%}.bar-row{grid-template-columns:minmax(80px,42%) minmax(40px,1fr) auto;gap:9px}.topic-list{grid-template-columns:1fr}.gate{padding:12px}.gate-card{border-radius:20px}.gate-brand,.gate-side{padding:24px}.gate-brand{gap:12px}.gate-title{font-size:1.6rem}.upload-area{min-height:220px}.knowledge-open{align-items:flex-start;flex-direction:column;gap:6px}.knowledge-open>.digest-meta{text-align:left}.knowledge-modal{padding:0;align-items:end}.knowledge-dialog{width:100%;max-height:94dvh;border-radius:20px 20px 0 0}.document-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.document-text{max-height:42vh}.knowledge-dialog-foot{flex-wrap:wrap}.knowledge-dialog-foot .button-primary{flex:1}}@media(max-width:760px),(max-height:560px)and (pointer:coarse){html,body{overflow-x:hidden;overflow-x:clip}.sidebar{padding-left:calc(8px + env(safe-area-inset-left));padding-right:calc(8px + env(safe-area-inset-right))}.topbar{padding-left:calc(16px + env(safe-area-inset-left));padding-right:calc(16px + env(safe-area-inset-right))}.main,.page,.page-head,.page-head-text,.dash-grid,.kpi-grid,.card,.card-head,.activity-row,.activity-main,.activity-name,.attention,.attention-head,.cohort,.bars,.bar-row,.topic-list,.topic-row{min-width:0}.card-head{flex-wrap:wrap}.card-note{text-align:left;white-space:normal}.activity-row{display:grid;grid-template-columns:36px minmax(0,1fr);grid-template-areas:"avatar main" "time time";align-items:start;gap:4px 11px}.activity-avatar{grid-area:avatar}.activity-main{grid-area:main}.activity-time{grid-area:time;justify-self:start}.activity-name{flex-wrap:wrap;overflow:visible;white-space:normal}.activity-sub{display:-webkit-box;overflow:hidden;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2}.crumb{flex:1;min-width:0;overflow:hidden}.crumb span,.crumb strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}@media(max-width:380px){.kpi-grid{grid-template-columns:1fr}}@media(pointer:coarse){.button,.icon-button{min-height:44px}.icon-button{width:44px}.segment{min-height:40px}.link-button,.back{min-height:28px;align-items:center}.upload-fields input,.upload input[type=file]{min-height:44px}input,select,textarea{font-size:1rem}}@media(hover:none){.nav-link:hover{background:transparent;color:var(--ink-2)}.nav-link-on:hover{background:var(--accent-soft);color:var(--accent-ink)}.segment:hover{background:transparent;color:var(--ink-2)}.segment-on:hover{background:var(--ink);color:#fff}.link-button:hover{color:var(--accent-ink);text-decoration:none}.run-card:hover{border-color:var(--line);box-shadow:var(--shadow-sm);transform:none}.knowledge-row:hover{border-color:var(--line);background:var(--surface-soft)}.logout:hover{background:transparent;color:var(--muted)}.activity-button:hover .activity-name{color:var(--ink)}}@media print{@page{margin:14mm}html,body,#root{height:auto;padding:0;overflow:visible;background:#fff}.app{display:block;height:auto;width:auto;margin:0;border:0;border-radius:0;box-shadow:none;overflow:visible}.sidebar,.topbar,.banner,.skip,.knowledge-modal,.update-banner{display:none!important}.content{height:auto;padding:0;overflow:visible;background:#fff}.main{width:auto;max-width:none;padding:0}.page{animation:none}.card,.run-card,.knowledge-row,.timeline li{break-inside:avoid;box-shadow:none}}
