:root {
  --accent: #2f6fed;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --ink: #16181d;
  --ink-2: #464d58;
  --ink-3: #737b87;
  --line: #e1e4e9;
  --line-2: #eceef2;
  --you: #a5570b;
  --you-bg: #fdf1e2;
  --done: #157a40;
  --done-bg: #e6f5ec;
  --bad: #c6352b;
  --bad-bg: #fdecea;
  --wait: #5c6470;
  --wait-bg: #eef0f3;
  --work-bg: color-mix(in srgb, var(--accent) 11%, transparent);
  --accent-ink: #fff;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --pop: 0 10px 30px rgba(16, 24, 40, .12), 0 2px 6px rgba(16, 24, 40, .08);
  --r: 12px;
  --r-sm: 8px;
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1014;
    --surface: #161920;
    --surface-2: #1d2129;
    --ink: #e9ebef;
    --ink-2: #b6bcc6;
    --ink-3: #7f8794;
    --line: #272c36;
    --line-2: #20242c;
    --you: #f2b45f;
    --you-bg: rgba(242, 180, 95, .12);
    --done: #5ad38f;
    --done-bg: rgba(90, 211, 143, .11);
    --bad: #ff7a70;
    --bad-bg: rgba(255, 122, 112, .11);
    --wait: #9aa2ae;
    --wait-bg: rgba(154, 162, 174, .12);
    --work-bg: color-mix(in srgb, var(--accent) 22%, transparent);
    --shadow: none;
    --pop: 0 12px 32px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h1 { font-size: 24px; font-weight: 650; line-height: 1.25; }
h2 { font-size: 18px; font-weight: 620; line-height: 1.3; }
p { margin: 0; }
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
[hidden] { display: none !important; }
.only-m { display: none; }

.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 22px; max-width: 1320px; height: 60px; margin: 0 auto; padding: 0 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; font-size: 15px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15px; }
.nav { display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 8px; color: var(--ink-2); font-size: 14px; white-space: nowrap; }
.nav a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav a.is-on { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.nav-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; line-height: 18px; text-align: center; }
.top-new { margin-left: auto; }
.me { position: relative; }
.me summary { list-style: none; cursor: pointer; border-radius: 50%; }
.me summary::-webkit-details-marker { display: none; }
.ava { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-size: 12.5px; font-weight: 650; }
.ava-sm { width: 26px; height: 26px; font-size: 10.5px; }
.ava.is-ours { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.me-pop { position: absolute; right: 0; top: 44px; width: 260px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--pop); }
.me-n { padding: 6px 10px 0; font-weight: 600; }
.me-e { padding: 0 10px 8px; font-size: 13px; color: var(--ink-3); border-bottom: 1px solid var(--line-2); margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; }
.me-pop a, .me-pop button { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: none; color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.me-pop a:hover, .me-pop button:hover { background: var(--surface-2); text-decoration: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-weight: 550; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 10px; }
.btn-sm { height: 30px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn-ghost-bad { background: none; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.btn-ghost-bad:hover { background: var(--bad-bg); }
.link { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; font-size: 14px; cursor: pointer; }
.link:hover { text-decoration: underline; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 28px 24px 64px; }
.page-h { display: grid; gap: 6px; margin-bottom: 18px; }
.back { font-size: 13.5px; color: var(--ink-3); width: fit-content; }
.card { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }

.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field > legend { font-size: 13.5px; font-weight: 600; color: var(--ink-2); padding: 0; }
.field input:not([type=radio]):not([type=checkbox]):not([type=file]), .field textarea, .ask input, .kb-search input, .search input, .composer textarea, .decide textarea, .inline-form textarea, .rate input[name=text] {
  width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.field textarea, .composer textarea, .decide textarea, .inline-form textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .ask input:focus, .kb-search input:focus, .search input:focus, .composer textarea:focus, .decide textarea:focus, .inline-form textarea:focus, .rate input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.field.is-bad input, .field.is-bad textarea { border-color: var(--bad); }
.hint { font-size: 12.5px; color: var(--ink-3); }
.bad { font-size: 12.5px; color: var(--bad); }
.req { margin-left: 3px; color: var(--bad); font-style: normal; }
.err { padding: 10px 12px; border-radius: 9px; background: var(--bad-bg); color: var(--bad); font-size: 14px; }
.ok { padding: 10px 12px; border-radius: 9px; background: var(--done-bg); color: var(--done); font-size: 14px; }
.stack { display: grid; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 13px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink-2); font-size: 14px; transition: all .15s; }
.chip:hover span { border-color: var(--ink-3); }
.chip input:checked + span { border-color: var(--accent); background: var(--work-bg); color: var(--ink); font-weight: 560; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.switch-row > span:first-child { display: grid; gap: 1px; }
.switch-row small { color: var(--ink-3); font-size: 13px; }
.sw { position: relative; flex: none; }
.sw input { position: absolute; opacity: 0; }
.sw i { display: block; width: 40px; height: 24px; border-radius: 12px; background: var(--line); transition: background .15s; }
.sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.sw input:checked + i { background: var(--accent); }
.sw input:checked + i::after { transform: translateX(16px); }
.sw input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.is-work { background: var(--work-bg); color: var(--accent); }
.pill.is-you { background: var(--you-bg); color: var(--you); }
.pill.is-done { background: var(--done-bg); color: var(--done); }
.pill.is-wait { background: var(--wait-bg); color: var(--wait); }
.pill.is-closed { background: var(--wait-bg); color: var(--ink-3); }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--surface-2); color: var(--ink-3); font-size: 11.5px; font-weight: 600; }

.auth { display: grid; place-items: center; align-content: center; gap: 18px; min-height: 100vh; padding: 24px; }
.auth-card { width: min(420px, 100%); padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--pop); display: grid; gap: 14px; }
.auth-card h1 { margin-top: 8px; }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; }
.auth-alt { font-size: 14px; width: fit-content; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.auth-foot { max-width: 420px; text-align: center; font-size: 13px; color: var(--ink-3); }
.code-in { font-size: 26px !important; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }

.hero { display: grid; gap: 10px; padding: 34px 36px; margin-bottom: 26px; border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface) 70%); border: 1px solid var(--line); }
.hero h1 { font-size: 28px; }
.hero p { color: var(--ink-2); max-width: 70ch; }
.ask { display: flex; gap: 10px; margin-top: 10px; max-width: 760px; }
.ask input { min-height: 46px; font-size: 16px; }
.ask-in { position: relative; flex: 1; min-width: 0; }
.ask .sugg { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); box-shadow: 0 12px 30px rgba(0,0,0,.14); }
.sugg { display: grid; gap: 2px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.sugg[hidden] { display: none; }
.sugg-inline { margin-top: 8px; background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.sugg-h { padding: 2px 8px 4px; font-size: 12.5px; color: var(--ink-3); }
.sugg-l { display: grid; gap: 2px; }
.sugg-i { display: grid; gap: 1px; padding: 7px 8px; border-radius: 8px; color: var(--ink); }
.sugg-i:hover { background: var(--surface-2); text-decoration: none; }
.sugg-i b { font-weight: 600; font-size: 14.5px; }
.sugg-i span { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-search { display: flex; gap: 10px; max-width: 760px; margin-bottom: 22px; }
.kb-search input { flex: 1; min-width: 0; min-height: 44px; font-size: 15.5px; }
.kb-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 26px; align-items: start; }
.kb-cats { display: grid; gap: 2px; position: sticky; top: 76px; }
.kb-cats a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); font-size: 14.5px; }
.kb-cats a span { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.kb-cats a:hover { background: var(--surface-2); text-decoration: none; }
.kb-cats a.is-on { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--ink); font-weight: 600; }
.kb-list { display: grid; gap: 10px; }
.kb-item { display: grid; gap: 3px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.kb-item:hover { border-color: var(--accent); text-decoration: none; }
.kb-item b { font-weight: 600; font-size: 15.5px; }
.kb-item span { font-size: 14px; color: var(--ink-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kb-item small { font-size: 12.5px; color: var(--ink-3); }
.kb-art { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 280px); gap: 28px; align-items: start; }
.kb-body { display: grid; gap: 10px; padding: 26px 30px; }
.kb-body h1 { font-size: 26px; line-height: 1.25; }
.kb-body .prose h2 { font-size: 19px; margin: 1em 0 .4em; }
.kb-body .prose h3 { font-size: 16.5px; margin: .9em 0 .3em; }
.kb-vote { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); }
.kb-vote form { display: contents; }
.kb-ask { margin-left: auto; }
.kb-rel { display: grid; gap: 8px; position: sticky; top: 76px; }
.kb-rel h2 { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.kb-rel .kb-item { padding: 10px 12px; }
.kb-rel .kb-item b { font-size: 14px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.block { display: grid; gap: 12px; margin-bottom: 26px; }
.block-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.block-h a { font-size: 14px; }
.rows { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto 112px; align-items: center; gap: 14px; padding: 12px 16px; color: var(--ink); border-top: 1px solid var(--line-2); }
.row:first-child { border-top: 0; }
.row:hover { background: var(--surface-2); text-decoration: none; }
.row-t { display: grid; min-width: 0; font-weight: 560; }
.row-t, .row-t small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-t small { font-weight: 400; font-size: 13px; color: var(--ink-3); }
.row-d { font-size: 13px; color: var(--ink-3); text-align: right; white-space: nowrap; }
.empty { padding: 22px 18px; border: 1px dashed var(--line); border-radius: var(--r); color: var(--ink-3); font-size: 14px; text-align: center; }
.svc { display: grid; gap: 8px; margin-bottom: 14px; }
.svc-h { font-size: 13px; font-weight: 650; color: var(--ink-3); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.tile { display: grid; align-content: start; gap: 4px; min-height: 92px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }
.tile b { font-weight: 600; }
.tile span { font-size: 13.5px; color: var(--ink-3); line-height: 1.4; }
.tile em { width: fit-content; margin-top: 4px; padding: 1px 7px; border-radius: 6px; background: var(--wait-bg); color: var(--wait); font-style: normal; font-size: 12px; }

.form { display: grid; gap: 18px; max-width: 760px; padding: 24px; }
.form.narrow { max-width: 560px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 4px; }
.form-foot .muted { font-size: 13.5px; }
.note-box { padding: 12px 14px; border-radius: 10px; background: var(--wait-bg); color: var(--ink-2); font-size: 14px; }
.kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; font-size: 14.5px; }
.kv span { color: var(--ink-3); }
.pw-set { display: none; gap: 12px; grid-template-columns: 1fr 1fr; margin-top: 12px; }
.field:has(input[value=set]:checked) .pw-set { display: grid; }

.drop { display: grid; gap: 8px; }
.drop-in { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-l { display: inline-flex; align-items: center; gap: 8px; width: fit-content; min-height: 38px; padding: 6px 12px; border: 1px dashed var(--line); border-radius: 9px; color: var(--ink-2); font-size: 14px; cursor: pointer; flex-wrap: wrap; }
.drop-l small { color: var(--ink-3); font-size: 12.5px; }
.drop-l:hover, .drop.is-over .drop-l { border-color: var(--accent); color: var(--ink); }
.drop-in:focus-visible + .drop-l { outline: 2px solid var(--accent); outline-offset: 2px; }
.drop-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.drop-list:empty { display: none; }
.drop-list li { display: inline-flex; align-items: center; gap: 6px; max-width: 280px; height: 30px; padding: 0 6px 0 10px; border-radius: 8px; background: var(--surface-2); font-size: 13px; }
.drop-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop-list li small { color: var(--ink-3); }
.drop-list button { display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 6px; background: none; color: var(--ink-3); cursor: pointer; font-size: 15px; }
.drop-list button:hover { background: var(--line); color: var(--ink); }

.combo { position: relative; }
.combo-list { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); max-height: 260px; margin: 0; padding: 4px; overflow-y: auto; list-style: none; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--pop); }
.combo-list li { padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 14.5px; }
.combo-list li:hover, .combo-list li.is-on { background: var(--surface-2); }

.split { display: grid; grid-template-columns: 380px minmax(0, 1fr); max-width: 1320px; margin: 0 auto; min-height: calc(100vh - 61px); }
.list { position: sticky; top: 61px; align-self: start; height: calc(100vh - 61px); display: grid; grid-template-rows: auto minmax(0, 1fr); border-right: 1px solid var(--line); }
.list-h { display: grid; gap: 12px; padding: 22px 20px 12px; }
.list-h h1 { font-size: 20px; }
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface-2); width: 100%; }
.seg a, .seg label span { display: grid; place-items: center; height: 30px; border-radius: 7px; color: var(--ink-2); font-size: 13.5px; font-weight: 550; cursor: pointer; }
.seg a:hover { text-decoration: none; color: var(--ink); }
.seg a.is-on, .seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg label { position: relative; }
.seg label input { position: absolute; opacity: 0; }
.seg-sm { width: fit-content; }
.seg-sm label span { height: 26px; padding: 0 12px; font-size: 13px; }
.search input { min-height: 38px; font-size: 14px; }
.list-b { overflow-y: auto; padding: 0 12px 24px; }
.li { display: grid; gap: 3px; padding: 11px 12px; border-radius: 10px; color: var(--ink); border: 1px solid transparent; }
.li + .li { margin-top: 2px; }
.li:hover { background: var(--surface); text-decoration: none; border-color: var(--line-2); }
.li.is-on { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.li.is-fresh { animation: fresh 2s ease; }
@keyframes fresh { 0%, 40% { background: var(--work-bg); } }
.li-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.li-t { font-weight: 580; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.li-b { display: flex; align-items: center; gap: 8px; margin-top: 3px; min-width: 0; }
.li-who { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .empty { margin: 8px; }

.detail { min-width: 0; padding: 26px 36px 48px; }
.tk { display: grid; gap: 16px; max-width: 880px; }
.tk-h { display: grid; gap: 6px; }
.tk-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tk-n { font-size: 13.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tk-exp { font-size: 13px; color: var(--ink-3); }
.tk-h h2 { font-size: 22px; }
.tk-sub { font-size: 13.5px; color: var(--ink-3); }
.banner { display: grid; gap: 8px; padding: 14px 16px; border-radius: 12px; font-size: 14.5px; }
.banner.is-ok { background: var(--done-bg); color: var(--ink); }
.banner.is-ok b { color: var(--done); }
.banner.is-you { background: var(--you-bg); }
.banner.is-you b { color: var(--you); }
.banner.is-done { background: var(--done-bg); }
.banner.is-done > b { color: var(--done); }
.banner.is-wait { background: var(--wait-bg); }
.banner-t { white-space: pre-wrap; color: var(--ink); }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.inline-form { position: relative; }
.inline-form summary { list-style: none; }
.inline-form summary::-webkit-details-marker { display: none; }
.inline-form[open] summary { background: var(--surface-2); }
.inline-form form { display: grid; gap: 8px; width: min(420px, 80vw); margin-top: 8px; }
.decide { display: grid; gap: 8px; margin-top: 4px; }
.rate { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.rate-l { font-weight: 600; }
.rate input[name=text] { flex: 1; min-width: 200px; min-height: 36px; font-size: 14px; }
.stars { display: inline-flex; flex-direction: row-reverse; }
.stars input { position: absolute; opacity: 0; }
.stars label { padding: 0 2px; font-size: 26px; line-height: 1; color: var(--line); cursor: pointer; transition: color .1s; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: #f5a524; }
.stars input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 4px; }
.stars-lg label { font-size: 40px; }
.stars-ro i { font-style: normal; color: var(--line); }
.stars-ro i.on { color: #f5a524; }
.rated { font-size: 14px; color: var(--ink-2); }
.agent-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 12px; }
.agent-l { margin-right: auto; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.agent-bar .inline-form form { position: absolute; right: 0; z-index: 4; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--pop); }

.thread { display: grid; gap: 14px; margin: 4px 0 0; padding: 0; list-style: none; }
.msg { display: grid; gap: 6px; max-width: 760px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.msg.is-ours { border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.msg.is-me { margin-left: auto; background: var(--work-bg); border-color: transparent; box-shadow: none; }
.msg.is-note { border-style: dashed; background: var(--surface-2); box-shadow: none; }
.msg-h { display: flex; align-items: center; gap: 8px; font-size: 13.5px; min-width: 0; }
.msg-h b { font-weight: 600; }
.msg-h time { margin-left: auto; color: var(--ink-3); font-size: 12.5px; white-space: nowrap; }
.prose { font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.prose p { margin: 0 0 .6em; }
.prose p:last-child { margin-bottom: 0; }
.prose img { display: block; max-width: min(100%, 520px); max-height: 420px; margin: 8px 0; border-radius: 8px; border: 1px solid var(--line); }
.prose pre, .prose code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13.5px; background: var(--surface-2); border-radius: 6px; }
.prose code { padding: 1px 5px; }
.prose pre { padding: 10px 12px; overflow-x: auto; }
.prose blockquote { margin: 0; padding-left: 12px; border-left: 3px solid var(--line); color: var(--ink-2); }
.prose ul, .prose ol { margin: 0 0 .6em; padding-left: 1.3em; }
.sys { justify-self: center; padding: 3px 12px; border-radius: 12px; background: var(--surface-2); color: var(--ink-3); font-size: 13px; }
.atts { display: flex; flex-wrap: wrap; gap: 8px; }
.att { display: inline-flex; align-items: center; gap: 8px; max-width: 320px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font-size: 13.5px; }
.att span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att small { color: var(--ink-3); }
.att-img img { display: block; max-width: 220px; max-height: 160px; border-radius: 8px; border: 1px solid var(--line); }
.composer { position: sticky; bottom: 0; display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--pop); }
.composer textarea { min-height: 76px; max-height: 40vh; border: 0; padding: 4px 2px; box-shadow: none !important; resize: none; }
.composer-f { display: flex; align-items: center; gap: 10px; }
.composer-f .drop { flex: 1; min-width: 0; }
.composer-f .drop-l small { display: none; }
.kbd { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.cards { display: grid; gap: 14px; max-width: 880px; }
.ap { display: grid; gap: 10px; padding: 18px 20px; }
.ap h2 a { color: var(--ink); }
.empty-page { display: grid; justify-items: center; gap: 10px; padding: 80px 20px; text-align: center; }
.empty-code { font-size: 54px; font-weight: 700; color: var(--line); line-height: 1; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translateX(-50%); padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: 14px; box-shadow: var(--pop); }

@media (max-width: 1100px) {
  .home-grid { grid-template-columns: 1fr; }
  .kb-art { grid-template-columns: 1fr; }
  .kb-rel { position: static; }
  .split { grid-template-columns: 320px minmax(0, 1fr); }
  .detail { padding: 22px 24px 40px; }
}
@media (max-width: 760px) {
  .kb-grid, .kb-art { grid-template-columns: 1fr; }
  .kb-cats { position: static; display: flex; flex-wrap: wrap; }
  .kb-rel { position: static; }
  .kb-body { padding: 18px; }
  .kb-ask { margin-left: 0; }
  .top-in { flex-wrap: wrap; gap: 0 10px; height: auto; padding: 10px 14px 0; }
  .brand-t, .top-new { display: none; }
  .top-in .me { margin-left: auto; }
  .nav { order: 3; flex: 1 0 100%; margin: 8px -14px 0; padding: 0 14px 8px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .nav a { height: 32px; padding: 0 10px; }
  .composer-f .kbd, .drop-l small { display: none; }
  .drop-l { flex-wrap: nowrap; white-space: nowrap; }
  .wrap { padding: 18px 14px 48px; }
  .hero { padding: 22px 18px; }
  .ask { flex-direction: column; }
  .row { grid-template-columns: minmax(0, 1fr) auto; }
  .row-d { display: none; }
  .split { grid-template-columns: 1fr; }
  .list { position: static; height: auto; border-right: 0; }
  .split:has(.detail[data-n]) .list { display: none; }
  .detail { padding: 18px 14px 32px; }
  .only-m { display: inline-block; }
  .pw-set { grid-template-columns: 1fr; }
  .form { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.field input[type=date] { max-width: 240px; }

.rep { display: grid; gap: 18px; }
.rep-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rep-h h1 { font-size: 26px; }
.rep-nav { display: flex; gap: 8px; }
.rep-kpi { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.rep-k { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.rep-k b { font-size: 24px; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.2; }
.rep-k span { font-size: 13px; color: var(--ink-3); }
.rep-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.rep-card { padding: 18px 20px; display: grid; gap: 6px; align-content: start; }
.rep-card h2 { font-size: 15px; margin-bottom: 6px; }
.rep-h2 { margin-top: 14px; }
.rep-bars { display: flex; align-items: flex-end; gap: 3px; height: 180px; padding-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.rep-day { position: relative; flex: 1; display: flex; align-items: flex-end; gap: 1px; height: 100%; min-width: 0; }
.rep-day i { flex: 1; min-height: 1px; border-radius: 2px 2px 0 0; }
.rep-day span { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--ink-3); }
.is-in { background: color-mix(in srgb, var(--accent) 75%, transparent); }
.is-out { background: color-mix(in srgb, var(--ink) 30%, transparent); }
.rep-legend { display: flex; gap: 16px; margin-top: 8px; font-size: 12.5px; color: var(--ink-3); }
.rep-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.rep-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.rep-row b { font-variant-numeric: tabular-nums; }
.rep-fb { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.rep-fb p { grid-column: 2; margin: 0; color: var(--ink-2); }
.rep-score { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rep-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.rep-t th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--ink-3); padding: 6px 10px 6px 0; border-bottom: 1px solid var(--line); }
.rep-t td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.rep-n { white-space: nowrap; font-variant-numeric: tabular-nums; }
.rep-d, .rep-who { white-space: nowrap; color: var(--ink-2); font-size: 13px; }
.rep-late { color: var(--bad); font-size: 12px; }
@media (max-width: 1100px) {
  .rep-kpi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rep-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .rep-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rep-t th:nth-child(3), .rep-t td:nth-child(3), .rep-t th:nth-child(5), .rep-t td:nth-child(5) { display: none; }
  .rep-d, .rep-who { white-space: normal; }
}
@media print {
  .top, .rep-nav { display: none !important; }
  body { background: #fff; }
  .card, .rep-k { box-shadow: none; }
  .rep-kpi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rep-t tr { break-inside: avoid; }
}
