/* Scout console. Builds on scout.css tokens. */
body.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; background: var(--bg); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Sidebar */
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 20px 14px; background: var(--surface); border-right: 1px solid var(--line-2); }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 24px; }
.side-brand span { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.04em; line-height: 1; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background-color var(--t-fast) ease, color var(--t-fast) ease; }
@media (hover: hover) and (pointer: fine) { .side-nav a:hover { background: var(--bg); } }
.side-nav a[aria-current='page'] { background: var(--ink); color: #fff; }
.side-nav a[aria-current='page'] svg { color: var(--lime); }
.side-badge { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 6px; background: var(--lime); color: var(--ink); font-size: 11px; display: grid; place-items: center; font-weight: 600; }
.side-foot { margin-top: auto; display: grid; gap: 16px; padding: 0 4px; }
.side-org { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--bg); font-size: 13px; font-weight: 500; }
.side-org .muted { font-size: 12px; font-weight: 400; }
.org-dot { width: 32px; height: 32px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--ink); color: var(--lime); font-size: 12px; font-weight: 600; }
.side-db { padding-left: 6px; color: var(--muted); }

/* Main */
.main { min-width: 0; padding: 18px clamp(16px, 2.6vw, 32px) 40px; }
.demo-banner { display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; padding: 6px 12px; margin-bottom: 18px; border-radius: 8px; background: var(--surface); border: 1px dashed var(--line-2); font-size: 11.5px; letter-spacing: .04em; color: var(--ink-2); }
.top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.top-id { min-width: 0; }
.top-kicker { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.top-title { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1.05; letter-spacing: -.04em; }
.top-actions { display: flex; gap: 8px; align-items: center; }

.view[data-entering] { animation: viewIn 320ms var(--ease-out); }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } }

/* Research run */
.runbar { margin-bottom: 16px; padding: 14px 16px; border-radius: 12px; background: var(--ink); color: #fff; }
.runbar[hidden] { display: none; }
.runbar-top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.runbar-top .mono { color: var(--lime); }
.runbar-track { height: 6px; margin: 10px 0 8px; border-radius: 3px; background: rgba(255,255,255,.14); overflow: hidden; }
.runbar-track i { display: block; height: 100%; background: var(--lime); transform-origin: left; transform: scaleX(0); transition: transform 600ms var(--ease-out); }
.runbar-note { font-size: 12px; color: rgba(255,255,255,.66); }

/* Accounts layout */
.acc-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 16px; align-items: start; }
.acc-listcol { min-width: 0; }
.acc-tools { display: flex; gap: 8px; margin-bottom: 10px; }
.search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); color: var(--muted); transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease; }
.search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--lime-soft); }
.search input { border: 0; outline: 0; background: none; width: 100%; min-width: 0; font-size: 14px; color: var(--ink); }
.sort select, .status-sel select, .field select { height: 40px; padding: 0 30px 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='m3 4.5 3 3 3-3' stroke='%230A0A0A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 10px center no-repeat; -webkit-appearance: none; appearance: none; font-size: 13.5px; cursor: pointer; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; font-weight: 500; transition: background-color var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease, transform var(--t-press) var(--ease-out); }
.chip:active { transform: scale(.97); }
.chip b { font-weight: 500; color: var(--muted); font-size: 12px; }
.chip[aria-pressed='true'] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip[aria-pressed='true'] b { color: var(--lime); }

.acc-list { display: grid; gap: 6px; }
.row { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease, transform var(--t-press) var(--ease-out); }
.row:active { transform: scale(.99); }
@media (hover: hover) and (pointer: fine) { .row:hover { border-color: var(--line-2); } }
.row[aria-current='true'] { border-color: var(--ink); box-shadow: inset 4px 0 0 var(--lime-2); }
[data-fresh] .row { animation: fresh 1.6s var(--ease-out); }
@keyframes fresh { from { box-shadow: 0 0 0 3px var(--lime); } }
.ac-mono.sm { width: 36px; height: 36px; border-radius: 9px; font-size: 13px; }
.row-main { display: grid; gap: 1px; min-width: 0; }
.row-name { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-meta { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-trig { display: flex; gap: 8px; align-items: center; margin-top: 5px; min-width: 0; font-size: 12.5px; color: var(--ink-2); }
.row-trig-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.row .trig-kind, .triggers .trig-kind { flex: none; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; background: var(--lime-soft); color: var(--lime-deep); white-space: nowrap; }
.row-side { display: grid; justify-items: end; gap: 8px; }
.row-fit { display: flex; align-items: center; gap: 8px; }
.row-fit b { font-size: 15px; font-weight: 600; }
.row-fit i { position: relative; width: 44px; height: 5px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.row-fit i::after { content: ''; position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--f)); }

.pill { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: currentColor; }
.st-new { background: var(--lime); color: var(--ink); }
.st-reviewed { background: var(--bg-2); color: var(--ink-2); }
.st-drafted { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.st-sent { background: var(--ink); color: #fff; }
.st-replied { background: var(--ink); color: var(--lime); }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); font-size: 14px; }

/* Detail card */
.detail { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; overscroll-behavior: contain; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-card); outline: none; min-width: 0; }
.dt-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--surface); border-bottom: 1px solid var(--line); }
.icon-btn.dt-back { display: none; }
.dt-id { flex: 1; min-width: 0; }
.dt-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.03em; line-height: 1.15; max-width: none; }
.dt-meta { font-size: 13px; color: var(--muted); }
.dt-domain { font-size: 11.5px; color: var(--ink-2); }
.dt-domain span, .sample-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 1px 5px; border-radius: 4px; border: 1px dashed var(--line-2); color: var(--muted); margin-left: 4px; }
.dt-fit { flex: none; display: grid; justify-items: center; padding: 8px 12px; border-radius: 10px; background: var(--lime); }
.dt-fit b { font-size: 22px; font-weight: 600; line-height: 1; }
.dt-fit span { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.dt-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--bg); }
.status-sel select { height: 34px; font-size: 13px; font-weight: 600; }
.dt-sent { font-size: 11.5px; color: var(--muted); margin-left: auto; }
.dt-sec { padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); min-width: 0; }
.dt-h { display: flex; justify-content: space-between; gap: 10px; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.dt-h span { letter-spacing: .04em; text-transform: none; color: var(--ink-2); font-weight: 500; }
.triggers { display: grid; gap: 10px; }
.triggers li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: baseline; }
.trig-meta { margin-top: 2px; font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; }
.trig-meta a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--lime-2); text-decoration-thickness: 2px; text-underline-offset: 2px; }
.dt-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dt-cols > div { min-width: 0; }
.dt-role { font-weight: 600; color: var(--ink); }
.dt-also { font-size: 13px; color: var(--muted); margin-top: 2px; }
.dt-privacy { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-2); padding: 8px 10px; border-radius: 8px; background: var(--bg); }

.draft-ed { background: var(--surface); }
.draft-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.draft-head .dt-h { margin: 0; }
.seg { display: flex; padding: 3px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line); }
.seg button { padding: 5px 11px; border-radius: 6px; font-size: 12.5px; font-weight: 500; color: var(--muted); transition: background-color var(--t-fast) ease, color var(--t-fast) ease; }
.seg button[aria-checked='true'] { background: var(--ink); color: #fff; }
.draft-area { display: block; width: 100%; resize: vertical; min-height: 180px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); font-size: 14.5px; line-height: 1.55; color: var(--ink); transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease, opacity 200ms ease; }
.draft-area:focus { outline: none; border-color: var(--ink); background: var(--surface); box-shadow: 0 0 0 3px var(--lime-soft); }
.draft-area[data-swap] { animation: swap 280ms var(--ease-out); }
@keyframes swap { from { opacity: .3; filter: blur(2px); } }
.draft-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.edited { font-size: 11px; padding: 2px 6px; border-radius: 4px; background: var(--lime-soft); color: var(--lime-deep); }
.edited[hidden] { display: none; }
.draft-btns { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.draft-note { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.dt-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; }
.link-btn { font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; color: var(--ink-2); }
.icon-btn { width: 36px; height: 36px; flex: none; border-radius: 9px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--ink); }
.detail-scrim { position: fixed; inset: 0; z-index: 80; background: rgba(10,10,10,.34); opacity: 0; transition: opacity 260ms ease; }
.detail-scrim[data-open] { opacity: 1; }
.detail-scrim[hidden] { display: none; }

/* Profile */
.prof-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.prof-form { display: grid; gap: 12px; min-width: 0; }
.box { margin: 0; padding: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
fieldset.box { padding-top: 16px; }
.box-h { float: left; width: 100%; padding: 0; margin-bottom: 12px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.box-h + * { clear: both; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row + .field { margin-top: 12px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field input, .field textarea { width: 100%; min-width: 0; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14.5px; transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease; }
.field input { height: 40px; }
.field textarea { resize: vertical; font-family: var(--font-mono); font-size: 13px; line-height: 1.6; }
.field select { width: 100%; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--lime-soft); }
.field small { font-size: 12px; color: var(--muted); }
.field small i { font-style: normal; color: var(--ink); background: var(--lime-soft); padding: 0 3px; border-radius: 3px; }
.tog-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tchip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 13px; border-radius: 9px; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 500; transition: background-color var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease; }
.tchip::before { content: ''; width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid currentColor; opacity: .5; }
.tchip[aria-pressed='true'] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tchip[aria-pressed='true']::before { background: var(--lime); border-color: var(--lime); opacity: 1; }
.signal-list { display: grid; gap: 6px; }
.sigopt { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease; }
.sigopt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.box-ck { width: 18px; height: 18px; margin-top: 1px; border-radius: 5px; border: 1.5px solid var(--line-2); transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease; }
.sigopt input:checked + .box-ck { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='m5.4 9.2 2.2 2.2 4.8-4.8' stroke='%23C8F03C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; border-color: var(--ink); }
.sigopt:has(input:checked) { border-color: var(--line-2); background: var(--bg); }
.sigopt input:focus-visible + .box-ck { outline: 2px solid var(--accent); outline-offset: 2px; }
.sigopt b { display: block; font-size: 14px; font-weight: 600; }
.sigopt small { font-size: 12.5px; color: var(--muted); }
.src-rules { display: grid; }
.src-rules li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.src-rules li:first-child { border-top: 0; }
.src-rules b { font-weight: 500; }
.src-rules span { font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 5px; background: var(--lime-soft); color: var(--lime-deep); white-space: nowrap; align-self: center; }
.src-rules .off span { background: var(--ink); color: #fff; }
.prof-side { position: sticky; top: 16px; min-width: 0; }
.summary { background: var(--ink); color: #fff; border-color: var(--ink); }
.summary .box-h { color: var(--lime); }
.summary-line { clear: both; font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.35; letter-spacing: -.02em; color: rgba(255,255,255,.72); }
.summary-line b { color: #fff; font-weight: 700; }
.summary-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.summary .btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.summary-note { margin-top: 14px; font-size: 12.5px; color: rgba(255,255,255,.62); }

/* Pipeline */
.board-hint { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; max-width: 70ch; }
.board-wrap { overflow-x: auto; padding-bottom: 8px; margin: 0 -4px; }
.board { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 10px; padding: 0 4px; min-width: 1060px; }
.col { display: flex; flex-direction: column; min-width: 0; padding: 10px; border-radius: 14px; background: var(--bg-2); border: 1.5px dashed transparent; transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease; }
.col[data-over] { border-color: var(--ink); background: var(--lime-soft); }
.col-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 10px; }
.col-head h2 { font-family: var(--font-ui); font-size: 13px; font-weight: 600; letter-spacing: 0; max-width: none; line-height: 1.3; }
.col-head b { font-size: 12px; min-width: 22px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 5px; background: var(--surface); }
.col[data-col='replied'] .col-head b { background: var(--lime); }
.col-list { display: grid; gap: 8px; align-content: start; min-height: 120px; }
.col-empty { padding: 18px 8px; text-align: center; font-size: 12.5px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 10px; }
.bcard { padding: 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); cursor: grab; min-width: 0; transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out), box-shadow var(--t-fast) ease; }
.bcard[data-dragging] { opacity: .4; }
.bcard[data-enter] { opacity: 0; transform: translateY(6px); transition: none; }
.bcard-name { display: block; width: 100%; text-align: left; font-weight: 600; font-size: 14px; line-height: 1.3; }
@media (hover: hover) and (pointer: fine) { .bcard-name:hover { text-decoration: underline; text-decoration-color: var(--lime-2); text-decoration-thickness: 2px; } }
.bcard-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.bcard-foot { display: flex; align-items: center; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.bcard-fit { font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 4px; background: var(--lime-soft); color: var(--lime-deep); }
.bcard-date { font-size: 11px; color: var(--muted); }
.bcard-move { display: flex; gap: 4px; margin-left: auto; }
.mv { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; border: 1px solid var(--line-2); color: var(--ink); transition: background-color var(--t-fast) ease, transform var(--t-press) var(--ease-out); }
.mv[disabled] { opacity: .3; cursor: default; }
@media (hover: hover) and (pointer: fine) { .mv:not([disabled]):hover { background: var(--lime); border-color: var(--ink); } }

/* Mobile tab bar (hidden on desktop) */
.tabbar { display: none; }

/* Responsive */
@media (max-width: 1100px) {
  .acc-layout { grid-template-columns: 1fr; }
  .detail { position: fixed; z-index: 90; top: 0; right: 0; bottom: 0; width: min(620px, 100%); max-height: none; border-radius: 0; border: 0; transform: translateX(100%); visibility: hidden; transition: transform 260ms var(--ease-out), visibility 0s 260ms; }
  .detail[data-open] { transform: none; visibility: visible; transition: transform 420ms var(--ease-drawer); }
  .icon-btn.dt-back { display: grid; }
  .prof-layout { grid-template-columns: 1fr; }
  .prof-side { position: static; order: -1; }
}
@media (max-width: 900px) {
  body.app { grid-template-columns: minmax(0, 1fr); padding-bottom: 76px; }
  .side { display: none; }
  .tabbar { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line-2); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 4px; border-radius: 10px; font-size: 11.5px; font-weight: 500; color: var(--muted); transition: color var(--t-fast) ease, background-color var(--t-fast) ease; }
  .tabbar a[aria-current='page'] { color: var(--ink); background: var(--lime-soft); }
  .tabbar a[aria-current='page'] svg { color: var(--ink); }
}
@media (max-width: 600px) {
  .top-title { font-size: 30px; }
  .hide-xs { display: none; }
  .demo-banner { font-size: 10.5px; }
  .row { grid-template-columns: auto minmax(0, 1fr); }
  .row-side { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding-top: 8px; border-top: 1px dashed var(--line); }
  .field-row, .dt-cols { grid-template-columns: 1fr; }
  .dt-head { padding: 12px 14px; gap: 10px; }
  .dt-head .ac-mono { display: none; }
  .dt-sec, .dt-status, .dt-foot { padding-inline: 14px; }
  .draft-btns { margin-left: 0; width: 100%; }
  .draft-btns .btn { flex: 1 1 auto; }
  .board { min-width: 1000px; }
  .box { padding: 14px; }
  .summary-line { font-size: 18px; }
  .acc-tools { flex-wrap: wrap; }
  .sort { flex: 1 1 100%; }
  .sort select { width: 100%; }
}
@media (max-width: 900px) {
  .toasts { left: 12px; right: 12px; bottom: 84px; }
  .toast { min-width: 0; max-width: none; }
}
