@font-face { font-family: 'Onest'; src: url(assets/fonts/onest-400.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Onest'; src: url(assets/fonts/onest-500.ttf) format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Onest'; src: url(assets/fonts/onest-600.ttf) format('truetype'); font-weight: 600; font-display: swap; }

/* Та же Балтика, что в КП: холодный светлый фон, глубокий синий, линейки. Рабочий инструмент — плотнее и спокойнее */
:root {
  --bg: #EEF1F3;
  --panel: #F7F9FA;
  --white: #FFFFFF;
  --ink: #14213A;
  --muted: #536175;
  --line: #C6D0D9;
  --line-2: #DDE3E8;
  --sky: #B5CEDB;
  --sky-2: #DCE7EE;
  --hot: #A8461F;
  --hot-bg: #F6E6DD;
  --ok: #2F6B4F;
  --ok-bg: #DDEDE4;
  --half: #8A6A12;
  --half-bg: #F3EBD3;
  --side: 232px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 'Onest', system-ui, sans-serif; font-variant-numeric: tabular-nums lining-nums; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--sky); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border: 3px solid var(--bg); border-radius: 6px; }
::-webkit-scrollbar-track { background: transparent; }
* { scrollbar-color: var(--line) transparent; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; text-wrap: balance; }
h1 { font-size: 34px; line-height: 1.1; letter-spacing: -0.03em; }
.h2 { font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; }
.h3 { font-size: 16px; line-height: 1.3; letter-spacing: -0.01em; }
.h4 { font-size: 13px; font-weight: 500; color: var(--muted); margin: 20px 0 8px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.link { font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.link:hover { text-underline-offset: .35em; }

/* кнопки — как в КП: прямоугольные, без скруглений */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 500; font-size: 15px; line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .18s, color .18s, border-color .18s; }
.btn:hover { background: #22345A; border-color: #22345A; }
.btn:active { transform: translateY(1px); }
.btn--s { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--plain { border-color: var(--line); }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }

/* демо-полоса */
.demo { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 32px; padding: 6px 20px; background: var(--ink); color: #B9C5D3; font-size: 13px; }
.demo a { color: #fff; font-weight: 500; text-underline-offset: 3px; white-space: nowrap; }

/* каркас */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.main { min-width: 0; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 24px; padding: 20px 14px; background: var(--panel); border-right: 1px solid var(--line); }
.side__brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; text-decoration: none; font-weight: 500; line-height: 1.15; }
.side__brand small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.side__logo { width: 28px; height: 28px; background: radial-gradient(circle at 70% 30%, var(--sky) 0 5px, transparent 5.5px), linear-gradient(to top, var(--ink) 0 38%, #2F6F86 38% 52%, var(--sky-2) 52%); }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; text-decoration: none; color: var(--muted); font-weight: 500; transition: background .15s, color .15s; }
.nav a:hover { background: var(--sky-2); color: var(--ink); }
.nav a[aria-current] { background: var(--white); color: var(--ink); box-shadow: inset 2px 0 0 var(--ink); }
.nav em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); }
.nav em:empty { display: none; }
.side__me { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 12px 8px 0; border-top: 1px solid var(--line); font-weight: 500; font-size: 14px; line-height: 1.25; }
.side__me img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.side__me small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }

.view { padding: 32px 40px 72px; max-width: 1400px; outline: none; }
.view > section, .cols__main > section { margin-top: 40px; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.head__sub { margin-top: 8px; color: var(--muted); max-width: 70ch; }
.head__who { display: flex; gap: 16px; align-items: center; }
.head__who .ava { width: 56px; height: 56px; font-size: 18px; }
.head__act { display: flex; gap: 8px; flex-wrap: wrap; }
.back { display: inline-block; margin-bottom: 16px; color: var(--muted); text-decoration: none; font-size: 14px; }
.back:hover { color: var(--ink); }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 14px; }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.cols > .cols__main > section:first-child { margin-top: 32px; }
.cols__side { display: grid; gap: 16px; padding-top: 32px; }
.cols--build { grid-template-columns: minmax(0, 1fr) 340px; }
.sticky { position: sticky; top: 20px; display: grid; gap: 16px; }
.panel { background: var(--white); border: 1px solid var(--line-2); padding: 20px; }
.panel > .h3 + * { margin-top: 10px; }
.panel .btn { margin-top: 14px; }
.panel--next { border-color: var(--ink); }
.panel--next p { margin-top: 8px; }

.ava { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--sky-2); color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.chip { display: inline-block; padding: 2px 8px; font-size: 12px; font-weight: 500; background: var(--sky-2); color: var(--ink); white-space: nowrap; }
.chip--new { background: var(--hot-bg); color: var(--hot); }
.chip--view { background: #D5E6EE; }
.chip--booking { background: var(--half-bg); color: var(--half); }
.chip--deal { background: var(--ok-bg); color: var(--ok); }
.tag { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 0 5px; margin-left: 6px; }
.empty { display: flex; gap: 12px; align-items: flex-start; padding: 20px; border: 1px dashed var(--line); color: var(--muted); }
.empty p { max-width: 60ch; }

/* сегодня */
.todo { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.todo__row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.todo__row.is-hot { background: var(--white); margin: 0 -20px; padding: 22px 20px; border-bottom-color: var(--line); box-shadow: 0 1px 0 var(--line), 0 10px 28px -18px rgba(20, 33, 58, .35); }
.todo__who { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-weight: 500; }
.todo__who a { text-decoration: none; }
.todo__who a:hover { text-decoration: underline; text-underline-offset: .2em; }
.todo__what { margin-top: 4px; max-width: 62ch; }
.todo__sig { margin-top: 6px; color: var(--muted); font-size: 14px; }
.is-cold { color: var(--hot) !important; }
.todo__act { padding-top: 2px; }
.facts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; font-size: 14px; color: var(--muted); }
.facts li { display: flex; gap: 8px; align-items: flex-start; }
.facts .i { width: 18px; height: 18px; color: var(--ink); margin-top: 1px; }
.mini { list-style: none; margin: 0; padding: 0; }
.mini li + li { border-top: 1px solid var(--line-2); }
.mini a { display: flex; gap: 10px; align-items: center; padding: 10px 0; text-decoration: none; }
.mini a:hover b { text-decoration: underline; text-underline-offset: .2em; }
.mini span { display: grid; font-size: 14px; line-height: 1.35; }
.mini b { font-weight: 500; }
.mini small { color: var(--muted); font-size: 13px; }
.panel .link { display: inline-block; margin-top: 10px; }

/* доска */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(168px, 1fr); gap: 10px; margin-top: 24px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.col { scroll-snap-align: start; min-width: 0; }
.col__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 4px; border-bottom: 2px solid var(--ink); }
.col__head h2 { font-size: 14px; font-weight: 600; }
.col__head span { font-size: 13px; color: var(--muted); }
.col__sum { font-size: 12px; color: var(--muted); padding: 6px 0 10px; }
.col__list { display: grid; gap: 8px; }
.col__empty { padding: 16px 12px; border: 1px dashed var(--line); color: var(--muted); font-size: 13px; }
.card { display: grid; gap: 4px; padding: 12px; background: var(--white); border: 1px solid var(--line-2); text-decoration: none; transition: border-color .15s, box-shadow .2s var(--ease); }
.card:hover { border-color: var(--ink); box-shadow: 0 8px 20px -14px rgba(20, 33, 58, .45); }
.card__top { display: flex; gap: 8px; align-items: center; font-weight: 500; line-height: 1.25; }
.card__top .ava { width: 28px; height: 28px; font-size: 11px; }
.card__req { font-size: 13px; margin-top: 4px; }
.card__city { font-size: 13px; color: var(--muted); }
.card__sig { display: flex; gap: 6px; align-items: baseline; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.card.is-hot { border-color: var(--hot); }
.card.is-hot .card__sig { color: var(--hot); }
.dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--hot); transform: translateY(-1px); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px rgba(168, 70, 31, .16); } }

/* сделка */
.steps { list-style: none; display: flex; margin: 20px 0 0; padding: 0; overflow-x: auto; border: 1px solid var(--line); background: var(--white); }
.steps li { flex: 1 0 auto; }
.steps li + li { border-left: 1px solid var(--line-2); }
.steps button { width: 100%; min-height: 42px; padding: 0 14px; border: 0; background: none; color: var(--muted); font-size: 13.5px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.steps button:hover { background: var(--sky-2); color: var(--ink); }
.steps .is-past { color: var(--ink); }
.steps [aria-current] { background: var(--ink); color: #fff; }
.quote { margin: 14px 0 0; padding: 0; }
.quote p { font-size: 20px; line-height: 1.35; letter-spacing: -0.015em; max-width: 40ch; }
.quote cite { display: block; margin-top: 6px; color: var(--muted); font-style: normal; font-size: 13px; }
.family { margin-top: 14px; color: var(--muted); }
.req { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.req li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.req .i { margin-top: 1px; color: #2F6F86; }
.req span { display: grid; line-height: 1.3; }
.req b { font-weight: 500; font-size: 14.5px; }
.req small { color: var(--muted); font-size: 13px; margin-top: 2px; }
.excl { margin-top: 12px; font-size: 14px; color: var(--muted); }
.excl b { color: var(--ink); font-weight: 500; }
.log { list-style: none; margin: 14px 0 0; padding: 0; }
.log li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: 14px; position: relative; }
.log time { color: var(--muted); font-size: 13px; }
.log--kp p, .log--ask p, .log--slot p, .log--fav p { color: var(--ink); }
.log--kp time, .log--ask time, .log--slot time, .log--fav time { color: var(--hot); }
.kv { margin: 12px 0 0; display: grid; gap: 6px; font-size: 14px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; text-align: right; }
.kv--big { grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line-2); }
.kv--big div { display: grid; padding: 10px 12px; }
.kv--big div + div { border-left: 1px solid var(--line-2); }
.kv--big dt { font-size: 12px; }
.kv--big dd { text-align: left; font-size: 20px; letter-spacing: -0.02em; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bars li { display: grid; grid-template-columns: 128px minmax(0, 1fr) 30px; gap: 10px; align-items: center; font-size: 13px; }
.bars span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars i { display: block; height: 8px; width: var(--w); background: #2F6F86; }
.bars b { font-weight: 500; text-align: right; }
.favs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.favs li { display: flex; gap: 10px; align-items: center; }
.favs img { width: 64px; height: 48px; object-fit: cover; }
.favs span { display: grid; font-size: 13.5px; line-height: 1.3; }
.favs b { font-weight: 500; }
.favs small { color: var(--muted); font-size: 12.5px; }
.note { display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 14px; }
.note .i { width: 18px; height: 18px; margin-top: 1px; }

/* сборка КП */
.scroll { overflow-x: auto; border: 1px solid var(--line-2); background: var(--white); }
.match, .tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.match th, .match td, .tbl th, .tbl td { padding: 10px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line-2); }
.match thead th, .tbl thead th { font-size: 12px; font-weight: 500; color: var(--muted); background: var(--panel); white-space: nowrap; }
.match tbody tr:last-child > *, .tbl tbody tr:last-child > * { border-bottom: 0; }
.match tbody th, .tbl tbody th { font-weight: 400; }
.match tr.is-on { background: #F4F8FA; }
.match tr.is-on th { box-shadow: inset 2px 0 0 var(--ink); }
.match tbody tr:not(.is-on) { color: var(--muted); }
.match tbody tr:not(.is-on) img { opacity: .55; }
.th-i { display: inline-flex; gap: 6px; align-items: center; white-space: normal; line-height: 1.25; }
.match thead th { white-space: normal; vertical-align: bottom; }
.match td { min-width: 92px; }
.match .sc { white-space: normal; }
.obj--t { min-width: 130px; }
.th-i .i { width: 16px; height: 16px; }
.obj { display: flex; gap: 10px; align-items: center; min-width: 190px; }
.obj img { width: 56px; height: 40px; object-fit: cover; }
.obj span { display: grid; line-height: 1.3; }
.obj b { font-weight: 500; color: var(--ink); }
.obj small { color: var(--muted); font-size: 12px; }
.pct { font-weight: 600; font-size: 15px; }
.pct.is-good { color: var(--ok); }
.pct.is-low { color: var(--hot); }
.sc { display: inline-flex; gap: 6px; align-items: baseline; white-space: nowrap; }
.sc::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; transform: translateY(-1px); }
.sc--1::before { background: var(--ok); }
.sc--05::before { background: none; border: 2px solid var(--half); width: 8px; height: 8px; box-sizing: border-box; background: linear-gradient(90deg, var(--half) 50%, transparent 50%); }
.sc--0::before { background: none; border: 1.5px solid var(--hot); box-sizing: border-box; }
.sc--na { color: var(--muted); }
.sc--na::before { background: var(--line); }
.cb { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); cursor: pointer; flex: none; }

.flats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; }
.flat { display: grid; grid-template-columns: 18px 120px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px; background: var(--white); border: 1px solid var(--line-2); cursor: pointer; height: 100%; transition: border-color .15s; }
.flat:hover { border-color: var(--line); }
.flats .is-on .flat { border-color: var(--ink); }
.flat img { width: 120px; height: 84px; object-fit: cover; }
.flats li:not(.is-on) img { opacity: .6; }
.flat__body { display: grid; gap: 3px; font-size: 13.5px; line-height: 1.35; }
.flat__body b { font-weight: 500; font-size: 14.5px; }
.flat__body small { color: var(--muted); font-size: 12.5px; }
.flat__why { margin-top: 4px; }
.flat__minus { color: var(--muted); }
.flat__ok { color: var(--ok); font-size: 12.5px; margin-top: 2px; }
.flat__warn { display: flex; gap: 6px; align-items: center; color: var(--hot); font-size: 12.5px; margin-top: 2px; }
.flat__warn .i { width: 14px; height: 14px; }

.places { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.places label { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: var(--white); border: 1px solid var(--line-2); cursor: pointer; height: 100%; }
.places .is-on label { border-color: var(--ink); }
.places li:not(.is-on) label { color: var(--muted); }
.places span { display: grid; line-height: 1.3; font-size: 14px; }
.places b { font-weight: 500; }
.places small { color: var(--muted); font-size: 12.5px; }

.cover { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 13.5px; }
.cover li { display: flex; gap: 8px; align-items: center; padding: 5px 0; }
.cover .i { width: 17px; height: 17px; color: var(--muted); }
.cover b { margin-left: auto; font-weight: 500; font-size: 12.5px; padding: 1px 7px; }
.cover .is-ok b { background: var(--ok-bg); color: var(--ok); }
.cover .is-half b { background: var(--half-bg); color: var(--half); }
.cover .is-no b { background: var(--hot-bg); color: var(--hot); }

.field { display: grid; gap: 6px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.field textarea { width: 100%; resize: vertical; padding: 10px 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-size: 14px; line-height: 1.45; caret-color: var(--ink); }
.field textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; background: var(--white); }
.seg { display: flex; margin: 12px 0 0; padding: 0; border: 0; }
.seg legend { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.seg label { flex: 1; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 8px 6px; border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; cursor: pointer; color: var(--muted); transition: background .15s, color .15s; }
.seg label + label span { border-left: 0; }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.panel .row .btn { margin-top: 14px; flex: 1; }

/* объекты */
.tabs { display: flex; gap: 24px; margin-top: 20px; border-bottom: 1px solid var(--line); }
.tabs button { padding: 10px 0; border: 0; background: none; color: var(--muted); font-weight: 500; cursor: pointer; box-shadow: inset 0 -2px 0 transparent; transition: color .15s, box-shadow .15s; }
.tabs button:hover { color: var(--ink); }
.tabs [aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.tabs + .scroll, .tabs + .filters { margin-top: 20px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.sec-head .filters { margin-bottom: 0; }
.pill { min-height: 32px; padding: 0 12px; border: 1px solid var(--line); background: var(--white); color: var(--muted); font-size: 13px; font-weight: 500; border-radius: 16px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.pill:hover { color: var(--ink); border-color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl td { white-space: nowrap; }
.tbl tbody tr:hover { background: #F4F8FA; }
.is-warn-t { color: var(--half); }

/* район */
.inbox__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.inbox__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: center; padding: 16px 18px; background: var(--white); border: 1px solid var(--line-2); }
.inbox__src { font-size: 12.5px; color: var(--muted); }
.inbox__text { margin-top: 4px; font-weight: 500; max-width: 70ch; }
.inbox__for { margin-top: 4px; font-size: 13.5px; color: #2F6F86; }
.inbox__list .row .btn { margin: 0; }
.kb { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.kb li { display: grid; grid-template-columns: 40px minmax(0, 1fr) 150px; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.kb__i { display: grid; place-items: center; width: 40px; height: 40px; background: var(--white); border: 1px solid var(--line-2); color: #2F6F86; }
.kb__name { display: flex; align-items: center; gap: 4px; }
.kb__name b { font-weight: 500; font-size: 16px; }
.kb__body > .muted { margin-top: 2px; font-size: 14px; max-width: 70ch; }
.kb blockquote { margin: 10px 0 0; padding: 0 0 0 14px; border-left: 1px solid var(--line); max-width: 70ch; }
.kb blockquote p { font-size: 14.5px; }
.kb cite { display: block; margin-top: 4px; font-style: normal; font-size: 12.5px; color: var(--muted); }
.kb cite a { color: var(--ink); text-underline-offset: .2em; }
.kb__none { margin-top: 8px; font-size: 13.5px; }
.kb__meta { margin: 0; display: grid; gap: 6px; align-content: start; font-size: 13px; }
.kb__meta div { display: flex; justify-content: space-between; gap: 8px; }
.kb__meta dt { color: var(--muted); }
.kb__meta dd { margin: 0; font-weight: 500; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; max-width: min(560px, calc(100vw - 32px)); padding: 12px 18px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: 0 12px 32px -12px rgba(20, 33, 58, .6); transform: translate(-50%, 12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1180px) {
  .cols, .cols--build { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sticky { position: static; }
  .cols__side { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; align-items: center; gap: 12px; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .side__brand { padding: 0; }
  .side__brand > span:last-child { display: none; }
  .nav { display: flex; gap: 2px; }
  .nav a { min-height: 36px; padding: 0 8px; white-space: nowrap; font-size: 14px; }
  .nav a .i { display: none; }
  .nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--ink); }
  .nav em { margin-left: 4px; }
  .side__me { display: none; }
  .view { padding: 20px 16px 64px; }
  h1 { font-size: 27px; }
  .demo { flex-direction: column; align-items: flex-start; gap: 2px; padding: 6px 16px; }
  .todo__row { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
  .todo__row .ava { width: 32px; height: 32px; }
  .todo__act { grid-column: 2; }
  .todo__row.is-hot { margin: 0 -16px; padding: 18px 16px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .board { grid-auto-columns: 78%; margin-right: -16px; padding-right: 16px; }
  .log li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .flats { grid-template-columns: minmax(0, 1fr); }
  .flat { grid-template-columns: 18px 84px minmax(0, 1fr); gap: 10px; }
  .flat img { width: 84px; height: 64px; }
  .kb li { grid-template-columns: 40px minmax(0, 1fr); }
  .kb__meta { grid-column: 2; grid-template-columns: auto auto; justify-content: start; gap: 4px 20px; }
  .inbox__list li { grid-template-columns: minmax(0, 1fr); }
  .head__act { width: 100%; }
  .head__act .btn { flex: 1; }
  .bars li { grid-template-columns: 110px minmax(0, 1fr) 28px; }
  .cols__side { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.build-top > section { margin-top: 32px; }
.cols--build > .cols__main > section:first-child { margin-top: 40px; }
.cols--build > .cols__side { padding-top: 40px; }
