:root{--surface:#fff;--surface-page:#fafaf8;--surface-sunken:#f4f4f1;--surface-hover:#f0f0ec;--surface-inverse:#121212;--text:#121212;--text-secondary:#545454;--text-muted:#7a7a76;--text-faint:#a3a39e;--text-inverse:#fff;--border:#e7e7e3;--border-strong:#d6d6d1;--border-emphasis:#121212;--primary:#0a3055;--primary-hover:#0e4273;--primary-soft:#e8eef5;--accent:#ff4d32;--accent-strong:#d93a22;--accent-soft:#fff1ed;--status-idle:#b9b9b3;--status-progress:#2f9e5b;--status-progress-soft:#ecf7f0;--status-paused:#d99a1e;--status-paused-soft:#fdf6e6;--status-blocked:#e0452c;--status-blocked-soft:#fdeeeb;--status-review:#3b6fd8;--status-review-soft:#edf2fc;--status-done:#8a8a85;--font-ui:"Geist", "Inter", system-ui, sans-serif;--font-mono:ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;--text-2xs:11px;--text-xs:12px;--text-sm:13px;--text-md:14px;--text-lg:16px;--text-xl:20px;--text-2xl:28px;--text-3xl:40px;--weight-regular:400;--weight-medium:500;--weight-semibold:600;--tracking-tight:-.03em;--tracking-display:-.045em;--tracking-caps:.08em;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:24px;--space-8:32px;--space-10:40px;--radius-sm:6px;--radius-md:10px;--radius-lg:14px;--radius-full:999px;--shadow-sm:0 1px 2px #1212120a;--shadow-md:0 6px 20px #12121212;--shadow-lg:0 24px 64px #1212121f;--focus-ring:0 0 0 3px #0a305538;--ease:cubic-bezier(.2, 0, 0, 1);--topbar-height:60px;--sidebar-width:248px;--content-gutter:36px;--ink:var(--text);--muted:var(--text-muted);--line:var(--border);--line-strong:var(--border-strong);--soft:var(--surface-sunken);--rule:#666;--color-primary:var(--text);--color-secondary:#3d3d3d;--color-tertiary:#666;--color-quinary:var(--surface-sunken);--color-deep-blue:var(--text);--color-navy:var(--text);--color-white:var(--surface);--color-gray-dark:var(--text);--color-gray-light:#999;--color-gray-extra-light:#ccc;--color-red:var(--accent);--color-muted:var(--text-muted);--color-description:var(--text-secondary);--color-page-wash:var(--surface-sunken);--color-table-border:var(--border);--color-bar:#e1e8f0;--radius:var(--radius-md);--radius-pill:20px;--card-padding:24px;font:var(--weight-regular) var(--text-md) / 1.5 var(--font-ui);color:var(--text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}input,select,textarea{font:inherit}.visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.button{border-radius:var(--radius-sm);min-width:0;height:36px;font:var(--weight-medium) var(--text-sm) / 1 var(--font-ui);white-space:nowrap;cursor:pointer;transition:background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease);border:1px solid #0000;justify-content:center;align-items:center;gap:6px;padding:0 14px;text-decoration:none;display:inline-flex}.button:focus-visible{box-shadow:var(--focus-ring);outline:none}.button--primary{border-color:var(--primary);background:var(--primary);color:var(--text-inverse)}.button--primary:hover{border-color:var(--primary-hover);background:var(--primary-hover);color:var(--text-inverse)}.button--quiet{border-color:var(--border);background:var(--surface);color:var(--text-secondary);box-shadow:var(--shadow-sm)}.button--quiet:hover{border-color:var(--border-strong);background:var(--surface-page);color:var(--text)}.button--danger{background:var(--surface);color:var(--accent-strong);border-color:#efc2ba}.button--danger:hover{border-color:var(--accent-strong);background:var(--accent-soft);color:var(--accent-strong)}.button:disabled,.button:disabled:hover{cursor:default;opacity:.5}.button--primary:disabled:hover{border-color:var(--primary);background:var(--primary)}.button--quiet:disabled:hover{border-color:var(--border);background:var(--surface);color:var(--text-secondary)}.field{gap:6px;display:grid}.field>span,.form__label{color:var(--text-muted);font-size:var(--text-2xs);font-weight:var(--weight-semibold);letter-spacing:.06em;text-transform:uppercase;line-height:1.3}.form__label--spaced{margin-top:var(--space-6)}.form{gap:var(--space-3);flex-direction:column;display:flex}.input,.textarea,select.input{border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);width:100%;min-height:38px;color:var(--text);font:var(--weight-regular) var(--text-sm) / 1.4 var(--font-ui);transition:border-color .15s var(--ease), box-shadow .15s var(--ease);padding:8px 11px}.input::placeholder,.textarea::placeholder{color:var(--text-faint)}.input:not(textarea),select.input{height:38px}.textarea{resize:vertical;min-height:88px}.input:hover,.textarea:hover{border-color:#c4c4be}.input:focus,.textarea:focus,select.input:focus{border-color:var(--text);box-shadow:var(--focus-ring);outline:none}select.input{appearance:none;padding-top:0;padding-bottom:0;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23545454' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat;padding-inline-end:32px}.checkbox-label{color:var(--text-secondary);font-size:var(--text-sm);align-items:center;gap:8px;display:flex}.checkbox-label input{width:15px;height:15px;accent-color:var(--primary);flex:none;margin:0}.card{padding:var(--space-6);border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:none}.state{padding:var(--space-10);color:var(--text-muted);font-size:var(--text-sm);text-align:center}.state--compact{padding:var(--space-4) 0;text-align:start}.state--error,.user__error{color:var(--accent-strong)}.toast{width:fit-content;max-width:380px;min-height:44px;margin-top:var(--space-4);border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);box-shadow:var(--shadow-md);color:var(--text);font-size:var(--text-sm);align-items:center;gap:10px;padding:11px 16px;display:flex}.drawer-backdrop{z-index:60;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);animation:fade-in .16s var(--ease);background:#1212122e;justify-content:flex-end;display:flex;position:fixed;inset:0}.drawer{border-inline-start:1px solid var(--border);background:var(--surface);width:min(460px,100%);height:100%;box-shadow:var(--shadow-lg);animation:drawer-slide-in .22s var(--ease);padding:44px 32px 32px;position:relative;overflow-y:auto}.drawer__head{justify-content:space-between;align-items:flex-start;gap:var(--space-4);margin-bottom:var(--space-6);display:flex}.drawer__head h2{font-size:var(--text-2xl);font-weight:var(--weight-medium);letter-spacing:-.04em;margin:4px 0 0;line-height:1.1}.drawer-close{top:16px;border-radius:var(--radius-sm);width:32px;height:32px;color:var(--text-muted);cursor:pointer;background:0 0;border:0;place-items:center;padding:0;font-size:20px;line-height:1;display:grid;position:absolute;inset-inline-end:16px}.drawer-close:hover{background:var(--surface-hover);color:var(--text)}@keyframes drawer-slide-in{0%{opacity:0;transform:translate(24px)}to{opacity:1;transform:translate(0)}}@keyframes fade-in{0%{opacity:0}}.modal-layer{z-index:60;padding:var(--space-5);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);animation:fade-in .16s var(--ease);background:#12121238;place-items:center;display:grid;position:fixed;inset:0}.modal-card{width:min(540px,100%);max-height:calc(100vh - 40px);padding:var(--space-8);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-lg);position:relative;overflow-y:auto}.modal-card--wide{width:min(960px,100%)}.modal-card h2{margin:8px 0 var(--space-6);font-size:24px;font-weight:var(--weight-medium);letter-spacing:-.04em;line-height:1.15}.modal-card label{color:var(--text-muted);font-size:var(--text-2xs);font-weight:var(--weight-semibold);letter-spacing:.06em;text-transform:uppercase;gap:6px;display:grid}.modal-card textarea,.modal-card input,.modal-card select{text-transform:none;letter-spacing:0}.modal-card .checkbox-label{color:var(--text-secondary);font-size:var(--text-sm);font-weight:var(--weight-regular);letter-spacing:0;text-transform:none;display:flex}.modal-actions{margin-top:var(--space-6);justify-content:flex-end;gap:var(--space-2);display:flex}@media (prefers-reduced-motion:reduce){.drawer,.drawer-backdrop,.modal-layer{animation:none}}.table-wrap{margin-top:var(--space-4);border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);overflow-x:auto}.table{border-collapse:collapse;width:100%;min-width:680px;color:var(--text);font-size:var(--text-sm)}.table th,.table td{border:0;border-bottom:1px solid var(--border);text-align:start;vertical-align:middle;padding:12px 16px}.table tbody tr:last-child td{border-bottom:0}.table th{background:var(--surface-page);height:40px;color:var(--text-muted);font-size:var(--text-2xs);font-weight:var(--weight-semibold);letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}.table tbody tr{height:52px;transition:background-color .12s var(--ease)}.table tbody tr:hover{background:var(--surface-page)}.table tbody tr.table-row-clickable{cursor:pointer}.client-table__name{font-weight:var(--weight-medium)}.table__meta{color:var(--text-muted);font-size:var(--text-xs)}.filters,.board-filters{align-items:flex-end;gap:var(--space-3);margin:0 0 var(--space-5);flex-wrap:wrap;display:flex}.filters>.field,.board-filters>label{flex:0 280px;min-width:200px}.board-filters>label{color:var(--text-muted);font-size:var(--text-2xs);font-weight:var(--weight-semibold);letter-spacing:.06em;text-transform:uppercase;gap:6px;display:grid}.board-filters input,.board-filters select{border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);width:100%;height:38px;color:var(--text);font:var(--weight-regular) var(--text-sm) / 1.4 var(--font-ui);letter-spacing:0;text-transform:none;padding:0 11px}.board-filters select{appearance:none;background:var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23545454' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;padding-inline-end:32px}.board-filters input:focus,.board-filters select:focus{border-color:var(--text);box-shadow:var(--focus-ring);outline:none}.board-filters>span{color:var(--text-muted);font-size:var(--text-xs);margin-inline-start:auto;padding-bottom:10px}body{background:var(--surface)}a{color:inherit}a:hover{color:var(--text)}.app-shell{background:var(--surface);min-height:100svh;color:var(--text)}.topbar{z-index:20;height:var(--topbar-height);justify-content:space-between;align-items:center;gap:var(--space-6);padding:0 var(--space-6) 0 var(--space-5);border-bottom:1px solid var(--border);-webkit-backdrop-filter:saturate(1.4)blur(12px);backdrop-filter:saturate(1.4)blur(12px);background:#ffffffeb;display:flex;position:sticky;top:0}.brand{width:fit-content;color:var(--text);align-items:center;gap:10px;display:inline-flex}.brand:hover{color:var(--text)}.brand-mark{background:var(--surface-inverse);width:26px;height:26px;color:var(--text-inverse);border-radius:8px;place-items:center;display:grid}.brand-word{font-size:22px;font-weight:var(--weight-medium);letter-spacing:-.06em;line-height:1}.topbar-meta{align-items:center;gap:var(--space-2);color:var(--text-muted);font-size:var(--text-sm);display:flex}.topbar-meta__date{color:var(--text-secondary)}.sprint-chip{border:1px solid var(--border);border-radius:var(--radius-full);background:var(--surface);height:28px;color:var(--text-secondary);font-size:var(--text-xs);white-space:nowrap;align-items:center;gap:6px;padding:0 10px;display:inline-flex}.sprint-chip:before{content:"";background:var(--status-progress);border-radius:50%;width:6px;height:6px}.workspace{min-height:calc(100svh - var(--topbar-height));grid-template-columns:var(--sidebar-width) minmax(0, 1fr);display:grid}.sidebar{top:var(--topbar-height);height:calc(100svh - var(--topbar-height));gap:var(--space-6);min-width:0;padding:var(--space-5) var(--space-3) var(--space-4);border-inline-end:1px solid var(--border);background:var(--surface-page);scrollbar-width:thin;flex-direction:column;display:flex;position:sticky;overflow-y:auto}.sidebar-nav{gap:var(--space-5);flex-direction:column;display:flex}.nav-group{flex-direction:column;gap:2px;display:flex}.nav-kicker,.focus-kicker{color:var(--text-faint);font-size:var(--text-2xs);font-weight:var(--weight-semibold);letter-spacing:var(--tracking-caps);text-transform:uppercase;margin:0 0 6px;padding:0 10px;line-height:1.4}.nav-item{border-radius:var(--radius-sm);width:100%;height:36px;color:var(--text-secondary);font-size:var(--text-sm);text-align:start;transition:background-color .15s var(--ease), color .15s var(--ease);border:1px solid #0000;align-items:center;gap:10px;padding:0 10px;line-height:1.2;display:flex}.nav-item:hover{background:var(--surface-hover);color:var(--text)}.nav-item:focus-visible{box-shadow:var(--focus-ring);outline:none}.nav-item--active,.nav-item--active:hover{border-color:var(--border);background:var(--surface);box-shadow:var(--shadow-sm);color:var(--text);font-weight:var(--weight-medium)}.nav-item__label{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-width:0;overflow:hidden}.nav-icon{width:16px;height:16px;color:var(--text-muted);flex:none}.nav-item--active .nav-icon,.nav-item:hover .nav-icon{color:var(--text)}.nav-item--urgent .nav-icon,.nav-item--urgent:hover .nav-icon{color:var(--accent)}.nav-count{border-radius:var(--radius-full);background:var(--surface-sunken);min-width:20px;height:20px;color:var(--text-muted);font-size:var(--text-2xs);font-weight:var(--weight-medium);font-variant-numeric:tabular-nums;flex:none;place-items:center;padding:0 6px;display:inline-grid}.nav-count--zero{color:var(--text-faint);background:0 0}.nav-item--active .nav-count{background:var(--surface-sunken);color:var(--text)}.focus-card{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);box-shadow:var(--shadow-sm);margin-top:auto;padding:14px}.focus-card .focus-kicker{margin-bottom:8px;padding:0}.focus-card__empty{color:var(--text-muted);font-size:var(--text-sm);margin:0}.focus-time{font-family:var(--font-mono);font-size:var(--text-xs);font-variant-numeric:tabular-nums;align-items:center;gap:8px;display:flex}.focus-card__clock{color:var(--text);font-size:var(--text-xl);font-weight:var(--weight-medium);letter-spacing:-.02em}.pulse{background:var(--accent);width:8px;height:8px;animation:pulse 1.8s var(--ease) infinite;border-radius:50%;flex:none;box-shadow:0 0 0 3px #ff4d322e}@keyframes pulse{50%{box-shadow:0 0 0 6px #ff4d3200}}.focus-title{-webkit-line-clamp:3;line-clamp:3;color:var(--text);font-size:var(--text-sm);font-weight:var(--weight-medium);-webkit-box-orient:vertical;margin:0;line-height:1.35;display:-webkit-box;overflow:hidden}.focus-kind{color:var(--text-muted);font-size:var(--text-xs);margin:8px 0 0}.focus-intervals{margin:12px 0 0;padding:0;list-style:none;display:grid}.focus-interval{border-top:1px solid var(--border);grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:4px 10px;padding:10px 0;display:grid}.focus-interval:last-child{padding-bottom:0}.focus-title--interval{-webkit-line-clamp:2;line-clamp:2;grid-column:1/-1}.focus-title--interval:hover{color:var(--text);text-underline-offset:3px;text-decoration:underline}.focus-interval .focus-kind{margin:0}.focus-interval .focus-time{color:var(--text-muted);font-size:var(--text-2xs);justify-self:end}.sidebar-footer{gap:var(--space-3);padding-top:var(--space-4);border-top:1px solid var(--border);margin-top:auto;display:grid}.sidebar-profile{align-items:center;gap:10px;padding:0 4px;display:flex}.avatar{background:var(--primary);width:32px;height:32px;color:var(--text-inverse);font-size:var(--text-2xs);font-weight:var(--weight-semibold);letter-spacing:.02em;border-radius:50%;flex:none;place-items:center;display:grid}.sidebar-profile .user{text-align:start;flex:auto;justify-items:start;gap:1px;min-width:0;display:grid}.sidebar-profile .user__name,.sidebar-profile .user__role{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}.sidebar-profile .user__name{color:var(--text);font-size:var(--text-sm);font-weight:var(--weight-medium)}.sidebar-profile .user__role{color:var(--text-muted);font-size:var(--text-xs);letter-spacing:0;text-transform:none}.profile-logout{border-radius:var(--radius-sm);width:30px;height:30px;color:var(--text-muted);cursor:pointer;background:0 0;border:0;flex:none;place-items:center;padding:0;display:grid}.profile-logout:hover{background:var(--surface-hover);color:var(--text)}.profile-logout svg{width:16px;height:16px}.focus-card+.sidebar-footer{margin-top:0}.dev-role-switcher{border:1px dashed var(--border-strong);border-radius:var(--radius-md);background:var(--surface);gap:6px;padding:10px;display:grid}.dev-role-switcher__label{color:var(--text-muted);font-size:var(--text-2xs);letter-spacing:.04em;text-transform:uppercase}.dev-role-switcher__own{color:var(--text-muted);font-size:var(--text-2xs)}.dev-role-switcher__row{grid-template-columns:minmax(0,1fr) auto;gap:6px;display:grid}.dev-role-switcher select.input{height:30px;font-size:var(--text-xs)}.dev-role-switcher .button{min-width:0;height:30px;font-size:var(--text-xs);padding-inline:10px}.dev-role-switcher__error{color:var(--accent);font-size:var(--text-2xs)}.content{width:100%;min-width:0;padding:var(--space-8) var(--content-gutter) var(--space-10);overflow:hidden}.page-heading{justify-content:space-between;align-items:flex-end;gap:var(--space-6);margin-bottom:var(--space-6);display:flex}.eyebrow{color:var(--text-faint);font-size:var(--text-2xs);font-weight:var(--weight-semibold);letter-spacing:var(--tracking-caps);text-transform:uppercase;margin:0 0 6px}.page-heading h1,.task-heading h1{font-size:var(--text-2xl);font-weight:var(--weight-medium);letter-spacing:var(--tracking-display);margin:0;line-height:1.1}.subtitle{color:var(--text-muted);font-size:var(--text-sm);margin:8px 0 0}.heading-actions{align-items:center;gap:var(--space-2);flex-wrap:wrap;display:flex}.page-heading--compact{align-items:center}@media (width<=900px){:root{--sidebar-width:68px;--content-gutter:24px}.sidebar{align-items:stretch;padding-inline:10px}.nav-group{align-items:center}.nav-kicker,.nav-item__label,.nav-count,.focus-card,.sidebar-profile .user,.dev-role-switcher{display:none}.nav-item{justify-content:center;width:40px;height:40px;padding:0}.sidebar-profile{flex-direction:column;padding:0}}@media (width<=640px){:root{--topbar-height:56px;--content-gutter:16px}.topbar{padding-inline:var(--space-4)}.topbar-meta__date{display:none}.workspace{display:block}.sidebar{z-index:15;border-top:1px solid var(--border);background:var(--surface);border-inline-end:0;flex-direction:row;height:60px;padding:6px 12px;position:fixed;inset:auto 0 0}.sidebar-nav{flex-direction:row;gap:4px;overflow-x:auto}.nav-group{flex-direction:row}.sidebar-footer{display:none}.content{padding-bottom:84px}.page-heading{flex-direction:column;align-items:flex-start}}@media (prefers-reduced-motion:reduce){.pulse{animation:none}}.task-page{max-width:1080px}.breadcrumb{margin-bottom:var(--space-4);color:var(--text-muted);font-size:var(--text-xs);display:inline-flex}.breadcrumb:hover{color:var(--text)}.page-heading.task-heading{align-items:flex-start}.page-heading.task-heading h1{max-width:64ch;font-size:var(--text-xl);letter-spacing:-.02em;overflow-wrap:anywhere;line-height:1.35}.lang{position:relative}.lang__button{border:1px solid var(--border);border-radius:var(--radius-full);background:var(--surface);height:28px;color:var(--text-secondary);font:inherit;font-size:var(--text-xs);cursor:pointer;align-items:center;gap:6px;padding:0 10px 0 8px;transition:background .15s,border-color .15s,color .15s;display:inline-flex}.lang__button:hover,.lang__button[aria-expanded=true]{background:var(--surface-hover);border-color:var(--border-strong);color:var(--text)}.lang__button:focus-visible,.lang__option:focus-visible{outline:2px solid var(--text);outline-offset:2px}.lang__icon{width:14px;height:14px}.lang__code{font-weight:var(--weight-medium);text-transform:uppercase;letter-spacing:.04em}.lang__menu{z-index:40;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);min-width:168px;box-shadow:var(--shadow-md);margin:0;padding:4px;list-style:none;position:absolute;inset-block-start:calc(100% + 6px);inset-inline-end:0}.lang__option{justify-content:space-between;align-items:center;gap:var(--space-3);border-radius:var(--radius-sm);width:100%;color:var(--text-secondary);font:inherit;font-size:var(--text-md);text-align:start;cursor:pointer;background:0 0;border:0;padding:8px 10px;display:flex}.lang__option:hover{background:var(--surface-hover);color:var(--text)}.lang__option--active{color:var(--text);font-weight:var(--weight-medium)}.lang__check{width:14px;height:14px;color:var(--accent)}.login-lang{position:absolute;inset-block-start:var(--space-4);inset-inline-end:var(--space-4)}.login-card{position:relative}@media (width<=720px){.lang__code{display:none}.lang__button{padding:0 8px}}.lang__option span{unicode-bidi:isolate}*,:before,:after{box-sizing:border-box}body{margin:0}button{font:inherit}html{-webkit-tap-highlight-color:transparent}a,button,textarea,input{touch-action:manipulation}h1,h2,h3{color:var(--primary);text-wrap:balance}.suggestion:focus-visible,.source-chip:focus-visible,.cite:focus-visible,.link-button:focus-visible,.brand:focus-visible,.skip-link:focus-visible{box-shadow:var(--focus-ring);outline:none}.skip-link{z-index:80;top:8px;border-radius:var(--radius-sm);background:var(--primary);color:var(--text-inverse);font-size:var(--text-sm);padding:8px 12px;position:absolute;inset-inline-start:8px;transform:translateY(-160%)}.skip-link:focus-visible{transform:none}.content:focus{outline:none}.modal-layer{overscroll-behavior:contain}.brand{text-decoration:none}.brand-mark__icon{width:15px;height:15px}.button{cursor:pointer;gap:6px}.button-icon{flex:none;width:14px;height:14px}.nav-item{text-decoration:none}.link-button{color:var(--text);text-underline-offset:3px;cursor:pointer;background:0 0;border:0;padding:0;text-decoration:underline}.link-button:disabled{opacity:.5;cursor:default}.icon-button{border-radius:var(--radius-sm);width:30px;height:30px;color:var(--text-faint);cursor:pointer;background:0 0;border:0;flex:none;place-items:center;padding:0;display:grid}.icon-button svg{width:15px;height:15px}.icon-button:hover{background:var(--accent-soft);color:var(--accent-strong)}.icon-button:focus-visible{box-shadow:var(--focus-ring);outline:none}.kb-toast-region:empty{display:none}.kb-toast{z-index:60;inset-inline-end:var(--space-6);bottom:var(--space-6);border-radius:var(--radius-md);background:var(--surface-inverse);max-width:min(420px,100vw - 32px);box-shadow:var(--shadow-lg);color:var(--text-inverse);font-size:var(--text-sm);padding:12px 16px;position:fixed}.kb-toast--error{background:var(--accent-strong)}.login{min-height:100svh;padding:var(--space-6) var(--space-4);background:var(--surface-page);place-items:center;display:grid}.login-card{width:min(440px,100%);padding:var(--space-8);border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-md)}.login-card h1{font-size:var(--text-2xl);font-weight:var(--weight-medium);letter-spacing:var(--tracking-display);margin:0;line-height:1.15}.login-card .subtitle{margin-bottom:var(--space-10,40px)}.login-submit{width:100%;height:42px}.login-note{margin:var(--space-6) 0 0;padding-top:var(--space-4);border-top:1px solid var(--border);color:var(--text-muted);font-size:var(--text-xs)}.content:has(.chat-layout){height:calc(100svh - var(--topbar-height));padding-top:var(--space-6);padding-bottom:var(--space-4)}.chat-layout{gap:var(--space-6);grid-template-columns:minmax(0,1fr) 320px;height:100%;display:grid}.chat{flex-direction:column;justify-self:center;width:100%;max-width:860px;min-height:0;display:flex}.chat-heading{margin-bottom:var(--space-4)}.chat-scroll{min-height:0;padding:var(--space-2) 2px var(--space-4);scrollbar-width:thin;flex:auto;overflow-y:auto}.chat-empty{text-align:center;max-width:560px;margin:8vh auto 0}.chat-empty h2{margin:0 0 var(--space-2);font-size:var(--text-xl);font-weight:var(--weight-medium);letter-spacing:-.02em}.chat-empty p{margin:0 0 var(--space-4);color:var(--text-muted);font-size:var(--text-sm)}.chat-empty__warn{border-radius:var(--radius-sm);background:var(--status-paused-soft);padding:8px 12px;display:inline-block;color:var(--text-secondary)!important}.suggestions{justify-content:center;gap:var(--space-2);margin-top:var(--space-4);flex-wrap:wrap;display:flex}.suggestion{border:1px solid var(--border);border-radius:var(--radius-full);background:var(--surface);color:var(--text-secondary);font-size:var(--text-sm);cursor:pointer;transition:border-color .15s var(--ease), color .15s var(--ease);padding:8px 12px}.suggestion:hover{border-color:var(--border-strong);color:var(--text)}.messages{gap:var(--space-5);flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.msg{display:flex}.msg--user{justify-content:flex-end}.bubble{overflow-wrap:anywhere;max-width:100%}.bubble--user{border-radius:var(--radius-lg) var(--radius-lg) var(--radius-sm) var(--radius-lg);background:var(--primary);max-width:min(640px,85%);color:var(--text-inverse);white-space:pre-wrap;padding:10px 14px}.bubble--assistant{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);width:100%;box-shadow:var(--shadow-sm);padding:14px 18px}.typing{color:var(--text-muted);font-size:var(--text-sm);align-items:center;gap:10px;margin:0;display:flex}.typing__dots{gap:3px;display:inline-flex}.typing__dots i{background:var(--text-faint);width:5px;height:5px;animation:blink 1.2s infinite var(--ease);border-radius:50%}.typing__dots i:nth-child(2){animation-delay:.15s}.typing__dots i:nth-child(3){animation-delay:.3s}@keyframes blink{0%,80%,to{opacity:.3}40%{opacity:1}}.caret{vertical-align:-2px;background:var(--text);width:7px;height:15px;margin-inline-start:2px;animation:1s steps(2,end) infinite caret;display:inline-block}@keyframes caret{50%{opacity:0}}.msg-note{color:var(--text-muted);font-size:var(--text-xs);margin:8px 0 0}.msg-error{border-radius:var(--radius-sm);background:var(--accent-soft);color:var(--accent-strong);font-size:var(--text-sm);flex-wrap:wrap;align-items:center;gap:10px;margin-top:8px;padding:8px 12px;display:flex}.msg-error .link-button{color:var(--accent-strong)}.md{display:contents}.md>:first-child{margin-top:0}.md>:last-child{margin-bottom:0}.md p,.md ul,.md ol,.md blockquote,.md pre{margin:0 0 10px;line-height:1.6}.md h2,.md h3,.md h4{font-weight:var(--weight-semibold);letter-spacing:-.01em;margin:16px 0 8px;line-height:1.3}.md h2{font-size:var(--text-lg)}.md h3{font-size:var(--text-md)}.md h4{color:var(--text-secondary);font-size:var(--text-sm)}.md ul,.md ol{padding-inline-start:22px}.md li+li{margin-top:4px}.md code{background:var(--surface-sunken);font-family:var(--font-mono);border-radius:4px;padding:1px 5px;font-size:.9em}.md pre{border-radius:var(--radius-sm);background:var(--surface-sunken);padding:12px;overflow-x:auto}.md pre code{background:0 0;padding:0}.md blockquote{border-inline-start:3px solid var(--border-strong);color:var(--text-secondary);padding-inline-start:12px}.md a{text-underline-offset:3px;text-decoration:underline}.cite{border-radius:var(--radius-full);background:var(--status-review-soft);min-width:18px;height:18px;color:var(--status-review);font-size:var(--text-2xs);font-weight:var(--weight-semibold);vertical-align:2px;cursor:pointer;border:0;place-items:center;margin:0 1px;padding:0 5px;line-height:1;display:inline-grid}.cite:hover{background:var(--status-review);color:var(--text-inverse)}.sources{border-top:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:6px;margin-top:12px;padding-top:12px;display:flex}.sources__label{color:var(--text-faint);font-size:var(--text-2xs);font-weight:var(--weight-semibold);letter-spacing:var(--tracking-caps);text-transform:uppercase;margin-inline-end:4px}.source-chip{border:1px solid var(--border);border-radius:var(--radius-full);background:var(--surface);max-width:260px;height:26px;color:var(--text-secondary);font-size:var(--text-xs);cursor:pointer;align-items:center;gap:6px;padding:0 10px 0 4px;display:inline-flex}.source-chip:hover{border-color:var(--status-review);color:var(--text)}.source-chip__n{border-radius:var(--radius-full);background:var(--status-review-soft);min-width:18px;height:18px;color:var(--status-review);font-size:var(--text-2xs);font-weight:var(--weight-semibold);place-items:center;display:grid}.source-chip__name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.composer{align-items:flex-end;gap:var(--space-2);border:1px solid var(--border-strong);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-md);padding:8px;display:flex}.composer:focus-within{border-color:var(--primary)}.composer__input{min-height:36px;max-height:200px;color:var(--text);font:inherit;resize:none;field-sizing:content;background:0 0;border:0;outline:none;flex:auto;padding:8px 6px}.composer__send{flex:none}.composer__hint{color:var(--text-faint);font-size:var(--text-2xs);text-align:center;margin:6px 0 0}.kb-aside{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface-page);flex-direction:column;min-height:0;display:flex;overflow:hidden}.kb-aside__head{justify-content:space-between;align-items:center;gap:var(--space-2);border-bottom:1px solid var(--border);padding:14px 14px 12px;display:flex}.kb-aside__head .nav-kicker{margin:0;padding:0}.kb-aside__count{color:var(--text-secondary);font-size:var(--text-sm);margin:2px 0 0}.kb-aside__progress{border-bottom:1px solid var(--border);color:var(--text-muted);font-size:var(--text-xs);margin:0;padding:8px 14px}.kb-aside__list{scrollbar-width:thin;flex:auto;min-height:0;padding:6px;overflow-y:auto}.doc-list{margin:0;padding:0;list-style:none}.doc-row{border-radius:var(--radius-md);transition:background-color .3s var(--ease), box-shadow .3s var(--ease);align-items:center;gap:12px;padding:12px 14px;display:flex}.doc-list:not(.doc-list--compact) .doc-row+.doc-row{border-top:1px solid var(--border);border-radius:0}.doc-list--compact .doc-row{padding:10px}.doc-row:hover{background:var(--surface-hover)}.doc-row--lit,.doc-row--lit:hover{background:var(--status-review-soft);box-shadow:inset 0 0 0 1.5px var(--status-review);border-radius:var(--radius-md)!important}.doc-ext{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);width:38px;height:38px;color:var(--text-secondary);font-size:10px;font-weight:var(--weight-semibold);letter-spacing:.04em;flex:none;place-items:center;display:grid}.doc-list--compact .doc-ext{width:32px;height:32px;font-size:9px}.doc-main{flex:auto;gap:2px;min-width:0;display:grid}.doc-name{color:var(--text);font-size:var(--text-sm);font-weight:var(--weight-medium);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.doc-meta{color:var(--text-muted);font-size:var(--text-xs);flex-wrap:wrap;align-items:center;gap:6px;display:flex}.doc-status{align-items:center;gap:5px;display:inline-flex}.doc-status:before{content:"";background:var(--status-idle);border-radius:50%;width:6px;height:6px}.doc-status--ready:before{background:var(--status-progress)}.doc-status--processing:before{background:var(--status-paused);animation:blink 1.2s infinite var(--ease)}.doc-status--failed{color:var(--status-blocked)}.doc-status--failed:before{background:var(--status-blocked)}.page{max-width:980px}.doc-card{padding:6px}.dropzone{margin-bottom:var(--space-4);border:1.5px dashed var(--border-strong);border-radius:var(--radius-lg);background:var(--surface-page);color:var(--text-muted);font-size:var(--text-sm);transition:border-color .15s var(--ease), background-color .15s var(--ease);justify-content:center;align-items:center;gap:10px;padding:22px;display:flex}.dropzone--active{border-color:var(--border-emphasis);background:var(--surface-hover);color:var(--text)}.dropzone__icon{width:18px;height:18px}.topbar-logout{display:none}@media (width<=1179px){.chat-layout{grid-template-columns:minmax(0,1fr)}.kb-aside{display:none}}@media (width<=640px){.content:has(.chat-layout){height:calc(100svh - var(--topbar-height) - 60px);padding-bottom:var(--space-3)}.composer__hint{display:none}.topbar-logout{display:grid}.composer__send .button-icon+*{display:none}.kb-toast{inset-inline:16px;max-width:none;bottom:76px}}@media (prefers-reduced-motion:reduce){.typing__dots i,.caret,.doc-status--processing:before{animation:none}}.confirm-dialog{width:min(420px,100%)}.confirm-dialog h2{margin:0 0 12px;font-size:20px}.confirm-dialog__message{color:var(--text-muted);margin:0;font-size:13px;line-height:1.5}.admin-reset{color:var(--text-muted);font-size:var(--text-xs);justify-self:start;padding:0 4px}.page--wide{max-width:1120px}.muted{color:var(--text-muted)}.text-accent{color:var(--accent-strong);font-weight:var(--weight-medium)}.key-state{color:var(--text-muted);font-size:var(--text-sm);white-space:nowrap;align-items:center;gap:6px;display:inline-flex}.key-state:before{content:"";background:var(--status-idle);border-radius:50%;width:6px;height:6px}.key-state--on{color:var(--text)}.key-state--on:before{background:var(--status-progress)}.admin-section{padding:var(--space-6);border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface)}.admin-section__head{justify-content:space-between;align-items:center;gap:var(--space-3);margin-bottom:var(--space-2);display:flex}.admin-section__head h2{font-size:var(--text-lg);font-weight:var(--weight-semibold);letter-spacing:-.01em;margin:0}.admin-section__text{max-width:64ch;margin:0 0 var(--space-4);color:var(--text-muted);font-size:var(--text-sm)}.admin-section .doc-list{margin:0 calc(var(--space-3) * -1)}.admin-progress{margin-bottom:var(--space-3);border:0;padding:8px 0}.limit__bar{border-radius:var(--radius-full);background:var(--surface-sunken);height:6px;overflow:hidden}.limit__fill{border-radius:inherit;background:var(--primary);height:100%;transition:width .3s var(--ease);display:block}.limit__fill--full{background:var(--accent)}.modal-hint{color:var(--text-muted);font-size:var(--text-xs);margin:0}.modal-card .form{gap:var(--space-4);display:grid}@media (width<=900px){.admin-reset{display:none}}@media (width<=640px){.admin-section{padding:var(--space-4)}.topbar-meta .button--quiet{font-size:var(--text-xs);padding-inline:10px}}@media (prefers-reduced-motion:reduce){.limit__fill{transition:none}}.skill-steps{gap:var(--space-3);margin:0 0 var(--space-4);padding-inline-start:22px;display:grid}.skill-steps li{padding-inline-start:4px}.skill-steps strong{font-size:var(--text-sm);font-weight:var(--weight-semibold);display:block}.skill-steps span{color:var(--text-muted);font-size:var(--text-sm)}.modal-actions{flex-wrap:wrap}.brand-logo{width:auto;height:22px;display:block}@media (width<=640px){.brand-logo{height:18px}}.orgs-screen{max-width:1440px}.stat-grid{gap:var(--space-4);margin:0 0 var(--space-5);grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.stat-card{padding:var(--space-5);border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface)}.stat-card dt{color:var(--text-muted);font-size:var(--text-sm)}.stat-card dd{font-size:var(--text-2xl);font-weight:var(--weight-medium);letter-spacing:var(--tracking-tight);font-variant-numeric:tabular-nums;margin:6px 0 0;line-height:1.1}.orgs-panels{align-items:start;gap:var(--space-5);grid-template-columns:minmax(300px,.85fr) minmax(0,1.4fr);display:grid}.panel{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);min-width:0}.panel__head{justify-content:space-between;align-items:center;gap:var(--space-3);padding:var(--space-4) var(--space-5);border-bottom:1px solid var(--border);display:flex}.panel__head h2{font-size:var(--text-lg);font-weight:var(--weight-semibold);margin:0}.org-search{width:min(280px,60%)}.org-list-panel>.state{padding:var(--space-5)}.org-items{padding:var(--space-2);gap:2px;margin:0;list-style:none;display:grid}.org-item{align-items:center;gap:var(--space-3);border-radius:var(--radius-md);color:var(--text);transition:background-color .15s var(--ease);border:1px solid #0000;padding:12px;text-decoration:none;display:flex}.org-item:hover{background:var(--surface-hover)}.org-item:focus-visible{box-shadow:var(--focus-ring);outline:none}.org-item--active,.org-item--active:hover{border-color:var(--border);background:var(--surface-page);box-shadow:var(--shadow-sm)}.org-item__avatar{border-radius:var(--radius-md);background:var(--surface-sunken);width:40px;height:40px;color:var(--text-secondary);font-size:var(--text-xs);font-weight:var(--weight-semibold);letter-spacing:.02em;flex:none;place-items:center;display:grid}.org-item--active .org-item__avatar{background:var(--primary);color:var(--text-inverse)}.org-item__main{flex:auto;gap:2px;min-width:0;display:grid}.org-item__name{font-size:var(--text-md);font-weight:var(--weight-medium);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.org-item__meta{color:var(--text-muted);font-size:var(--text-xs)}.org-item__chevron{width:14px;height:14px;color:var(--text-faint);flex:none}.org-detail-panel{top:calc(var(--topbar-height) + var(--space-4));padding:var(--space-6);position:sticky}.detail-empty{padding:var(--space-10) var(--space-6);color:var(--text-muted);font-size:var(--text-sm);text-align:center;justify-items:center;gap:6px;display:grid}.detail-empty strong{color:var(--text);font-size:var(--text-md);font-weight:var(--weight-medium)}.detail-empty p{max-width:34ch;margin:0}.detail-empty__icon{width:28px;height:28px;color:var(--text-faint);margin-bottom:6px}.org-detail{gap:var(--space-4);display:grid}.org-detail__head{justify-content:space-between;align-items:flex-start;gap:var(--space-4);display:flex}.org-detail__head h2{font-size:var(--text-xl);font-weight:var(--weight-medium);letter-spacing:-.02em;margin:0;line-height:1.25}.org-detail__head .subtitle{margin-top:4px}.org-status{border:1px solid var(--border);border-radius:var(--radius-full);height:28px;color:var(--text-secondary);font-size:var(--text-xs);white-space:nowrap;flex:none;align-items:center;gap:6px;padding:0 10px;display:inline-flex}.org-status:before{content:"";background:var(--status-paused);border-radius:50%;width:6px;height:6px}.org-status--ok:before{background:var(--status-progress)}.org-status--warn{color:var(--accent-strong);border-color:#efc2ba}.org-status--warn:before{background:var(--accent)}.usage{padding:var(--space-4);border:1px solid var(--border);border-radius:var(--radius-md)}.usage__top{justify-content:space-between;align-items:center;gap:var(--space-2) var(--space-4);color:var(--text-secondary);font-size:var(--text-sm);flex-wrap:wrap;margin-bottom:10px;display:flex}.usage__value{color:var(--text);font-weight:var(--weight-semibold);font-variant-numeric:tabular-nums}.action-grid{gap:var(--space-3);grid-template-columns:repeat(auto-fill,minmax(220px,1fr));display:grid}.action-card{padding:var(--space-4);border:1px solid var(--border);border-radius:var(--radius-md);flex-direction:column;align-items:flex-start;display:flex}.action-card__icon{width:32px;height:32px;margin-bottom:var(--space-3);border-radius:var(--radius-sm);background:var(--surface-sunken);color:var(--text);place-items:center;display:grid}.action-card__icon svg{width:16px;height:16px}.action-card h3{font-size:var(--text-md);font-weight:var(--weight-semibold);margin:0 0 4px}.action-card p{margin:0 0 var(--space-4);color:var(--text-muted);font-size:var(--text-xs);flex:auto;line-height:1.5}.dropzone--tall{padding:var(--space-6);text-align:center;flex-direction:column;gap:4px;margin:0}.dropzone--tall strong{color:var(--text);font-weight:var(--weight-medium)}.dropzone--tall span{font-size:var(--text-xs)}.dropzone--tall .button{margin-top:var(--space-2)}.org-metrics{padding-top:var(--space-2);border-top:1px solid var(--border)}.org-metrics h3{margin:0 0 var(--space-3);font-size:var(--text-md);font-weight:var(--weight-semibold)}.metric-row{gap:var(--space-6);flex-wrap:wrap;display:flex}.metric{gap:2px;display:grid}.metric strong{color:var(--text);font-size:var(--text-lg);font-weight:var(--weight-medium);font-variant-numeric:tabular-nums}.metric span{color:var(--text-muted);font-size:var(--text-xs)}.key-value{margin:0 0 var(--space-3);padding:var(--space-4);border-radius:var(--radius-md);background:var(--surface-sunken);font-family:var(--font-mono);font-size:var(--text-lg);overflow-wrap:anywhere;-webkit-user-select:all;user-select:all;display:block}@media (width<=1180px){.orgs-panels{grid-template-columns:minmax(0,1fr)}.org-detail-panel{position:static}}@media (width<=640px){.stat-grid{gap:var(--space-2);grid-template-columns:minmax(0,1fr)}.stat-card{padding:var(--space-3) var(--space-4);justify-content:space-between;align-items:baseline;display:flex}.stat-card dd{font-size:var(--text-xl);margin:0}.org-detail-panel{padding:var(--space-4)}.org-detail__head{flex-direction:column}}.login-card{text-align:center}.login-card .brand{margin-inline:auto}.login-card .field{text-align:start}.login-card .field .input{width:100%}.login-card h1{margin-bottom:var(--space-4)}.login-card h1+.subtitle{margin-top:0}.login-card .login-note{margin-top:var(--space-10)}.login-card--admin h1{color:var(--primary)}.login-card .brand-logo{height:40px}.login-card .brand{margin-bottom:var(--space-12,48px)}.login-card .state--error{padding:var(--space-1) 0 0;text-align:center;margin:0}
