/*
 * Финпанель. Светлая тема — по слайдам 1DOOR, тёмная — по странице DBS: салатовый акцент,
 * моноширинные подписи капсом, узкие заголовки. Тема: по системе или вручную (data-theme на <html>).
 */
@import url("/assets/fonts.css");

:root {
  --bg: #efefe9;
  --card: #fbfbf8;
  --fg: #121212;
  --muted: #6c6c66;
  --line: #dcdcd3;
  --soft: #f4f4ee;
  --hover: #ececE5;
  --accent: #d6f24c;
  --on-accent: #121212;
  --strong: #121212;
  --link: #121212;
  --side: #121212;
  --side-fg: #e6e6e0;
  --side-muted: #8b8b85;
  --side-line: #ffffff1a;
  --side-active: #ffffff14;
  --ok-bg: #e2f3d8; --ok: #2d6b16;
  --warn-bg: #fbedcf; --warn: #8a5300;
  --err-bg: #fbe2df; --err: #b3261e;
  --info-bg: #e3e8f8; --info: #2f4fae;
  --scrim: #12121266;
  --shadow: 0 18px 50px #12121226;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0b; --card: #141414; --fg: #ededea; --muted: #8d8d87; --line: #272727; --soft: #1a1a1a; --hover: #202020;
    --strong: #d6f24c; --link: #d6f24c; --side: #0b0b0b; --side-fg: #e6e6e0; --side-muted: #7d7d77; --side-line: #ffffff14; --side-active: #ffffff10;
    --ok-bg: #1c2c12; --ok: #a4e57a; --warn-bg: #2e2410; --warn: #f0c060; --err-bg: #331512; --err: #ff8f84; --info-bg: #161f36; --info: #9fb4ff;
    --scrim: #000000a0; --shadow: 0 18px 50px #000000aa;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b0b; --card: #141414; --fg: #ededea; --muted: #8d8d87; --line: #272727; --soft: #1a1a1a; --hover: #202020;
  --strong: #d6f24c; --link: #d6f24c; --side: #0b0b0b; --side-fg: #e6e6e0; --side-muted: #7d7d77; --side-line: #ffffff14; --side-active: #ffffff10;
  --ok-bg: #1c2c12; --ok: #a4e57a; --warn-bg: #2e2410; --warn: #f0c060; --err-bg: #331512; --err: #ff8f84; --info-bg: #161f36; --info: #9fb4ff;
  --scrim: #000000a0; --shadow: 0 18px 50px #000000aa;
  color-scheme: dark;
}

:root {
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "Oswald", "IBM Plex Sans", sans-serif;
  --radius: 14px;
  --agent-width: 0px; /* N8: место под панель агента; 360px, когда она включена */
  font: 15px/1.5 var(--sans);
  color: var(--fg);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--link); }
::selection { background: var(--accent); color: var(--on-accent); }

/* Подписи: моноширинный шрифт капсом */
.caps, th, .nav h6, .stat small, .label, .tabs a, .btn, tr.group td, .chip-label {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em;
}
.num, td.num, .big, .stat b, .mono, .fin-line b, .rate b, .money { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Каркас: меню · экран · агент */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr) var(--agent-width); min-height: 100vh; }
.side { background: var(--side); color: var(--side-fg); display: flex; flex-direction: column; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow: hidden; border-right: 1px solid var(--side-line); }
.brand { display: flex; gap: 10px; align-items: center; padding: 2px 8px 16px; border-bottom: 1px solid var(--side-line); }
.brand .logo { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: #121212; display: grid; place-items: center; font: 600 15px/1 var(--display); letter-spacing: .02em; }
.brand b { display: block; color: #fff; font: 600 17px/1.1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.brand small { color: var(--side-muted); font: 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.nav { flex: 1; min-height: 0; overflow-y: auto; padding-top: 6px; scrollbar-width: thin; }
.nav h6 { margin: 18px 10px 6px; font-size: 10.5px; color: var(--side-muted); font-weight: 500; }
.nav a { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: 8px; color: var(--side-fg); text-decoration: none; font-size: 14px; }
.nav a:hover { background: var(--side-active); }
.nav a.active { background: var(--side-active); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.nav a.soon { color: var(--side-muted); pointer-events: none; }
.nav a.soon::after { content: "soon"; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.me { display: flex; gap: 10px; align-items: center; padding: 14px 6px 0; border-top: 1px solid var(--side-line); }
.me .who { flex: 1; min-width: 0; }
.me b { display: block; color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me small { color: var(--side-muted); font-size: 12px; }
.me button { background: none; border: 0; color: var(--side-muted); cursor: pointer; padding: 6px; border-radius: 6px; font-size: 13px; }
.me button:hover { color: #fff; background: var(--side-active); }
.me .theme-btn { font-size: 16px; line-height: 1; }
.side-link { color: var(--side-muted); text-decoration: underline; }
.side-link:hover { color: #fff; }

.main { min-width: 0; }
.top { height: 58px; display: flex; align-items: center; padding: 0 32px; border-bottom: 1px solid var(--line); color: var(--muted); font: 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.top b { color: var(--fg); font-weight: 600; }
.top .sep { margin: 0 10px; opacity: .6; }
.page { padding: 30px 32px 48px; max-width: 1440px; }
.agent { border-left: 1px solid var(--line); background: var(--card); }
.agent[hidden] { display: none; }

.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
h1 { font: 600 38px/1.05 var(--display); letter-spacing: .005em; margin: 0 0 8px; }
.sub { color: var(--muted); margin: 0; max-width: 820px; }
.sub a, .sub .strong-link { color: var(--fg); }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 11px 14px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--fg); }
.tabs a.active { color: var(--fg); border-color: var(--strong); }
.tabs .count { margin-left: 6px; font-size: 11px; background: var(--soft); border-radius: 10px; padding: 1px 7px; color: var(--muted); }
.tabs a.soon-tab { opacity: .45; pointer-events: none; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; color: var(--muted); font-weight: 500; padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr.group td { background: var(--soft); font-size: 11px; color: var(--muted); font-weight: 600; padding: 9px 16px; }
td.num, th.num { text-align: right; white-space: nowrap; }

.person { display: flex; gap: 12px; align-items: center; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--soft); border: 1px solid var(--line); color: var(--fg); display: grid; place-items: center; font: 600 12px var(--mono); flex: none; }
.side .avatar { background: #ffffff14; border-color: transparent; color: #fff; }
.person small { display: block; color: var(--muted); }

.badge { display: inline-block; padding: 3px 8px; border-radius: 6px; font: 600 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.err { background: var(--err-bg); color: var(--err); }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge.mute { background: var(--soft); color: var(--muted); border: 1px solid var(--line); }
.badge.accent { background: var(--accent); color: var(--on-accent); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; color: var(--fg); }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(.96); }
.btn:disabled { opacity: .5; cursor: default; }
.links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.link { background: none; border: 0; padding: 0; color: var(--fg); font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.link:hover { text-decoration-color: currentColor; }
.link.danger { color: var(--err); }
.link.small { font-size: 13px; white-space: nowrap; }
.strong-link { color: var(--fg); font-weight: 600; text-decoration: none; }
.strong-link:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

select.field, input.field, textarea.field { padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); min-width: 0; }
textarea.field { resize: vertical; width: 100%; line-height: 1.5; }
select.field:disabled, input.field:disabled, textarea.field:disabled { background: var(--soft); color: var(--muted); }
.field:focus, .auth input:focus, select.access:focus, input.inline:focus, textarea.inline:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--fg); }
select.access { padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); font: 12px var(--mono); }
select.access[data-v="full"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
select.access[data-v="scoped"], select.access[data-v="read"], select.access[data-v="own_read"] { background: var(--soft); border-color: var(--muted); }
select.access[data-v="none"] { color: var(--muted); }

dialog { border: 1px solid var(--line); border-radius: 16px; padding: 0; width: min(460px, calc(100vw - 32px)); box-shadow: var(--shadow); background: var(--card); color: var(--fg); }
dialog::backdrop { background: var(--scrim); }
dialog form { padding: 24px; }
dialog h2 { margin: 0 0 14px; font: 600 24px/1.1 var(--display); }
dialog label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 4px; }
dialog .field { width: 100%; }
dialog .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
dialog.wide { width: min(680px, calc(100vw - 32px)); }
.copy { display: flex; gap: 8px; margin-top: 8px; }
.copy input { flex: 1; font-size: 13px; }

/* Боковая панель позиции (R2.11): справа, на всю высоту */
dialog.drawer { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(620px, 100vw); border-radius: 0; border: 0; border-left: 1px solid var(--line); padding: 0; animation: slide-in .18s ease-out; }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { position: sticky; top: 0; z-index: 1; background: var(--card); display: flex; align-items: flex-start; gap: 12px; padding: 20px 24px 14px; border-bottom: 1px solid var(--line); }
.drawer-head .title { flex: 1; min-width: 0; }
.drawer-head input.inline { font: 600 26px/1.15 var(--display); padding: 2px 6px; margin-left: -6px; }
.drawer-body { padding: 8px 24px 32px; }
.drawer-close { background: none; border: 1px solid var(--line); border-radius: 10px; width: 36px; height: 36px; cursor: pointer; font-size: 18px; color: var(--muted); flex: none; }
.drawer-close:hover { color: var(--fg); border-color: var(--muted); }
.drawer section { padding: 16px 0; border-bottom: 1px solid var(--line); }
.drawer section:last-child { border-bottom: 0; }
.drawer h3 { margin: 0 0 10px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.drawer .task { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.drawer .task-head { display: flex; align-items: center; gap: 8px; }
.drawer .task-head input.inline { font-weight: 600; }
.drawer table td, .drawer table th { padding: 6px 6px; font-size: 14px; }
.drawer table th { font-size: 10.5px; }
.checklist li { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.checklist ul { list-style: none; margin: 0 0 6px; padding: 0; }
.checklist li::before { content: "—"; color: var(--muted); }
.checklist li .link { margin-left: auto; opacity: .6; }
.sha { word-break: break-all; font: 11px/1.5 var(--mono); color: var(--muted); margin: 6px 0 0; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; z-index: 50; }
.toast { background: var(--fg); color: var(--bg); padding: 10px 18px; border-radius: 10px; box-shadow: var(--shadow); max-width: calc(100vw - 32px); font-size: 14px; }
.toast.err { background: var(--err); color: #fff; }
.empty { padding: 40px; text-align: center; color: var(--muted); }
.mono { font-size: 13px; }
.muted { color: var(--muted); }
.error { color: var(--err); }
.block { display: block; }
.small { font-size: 13px; }
.mt { margin-top: 12px; }
.gap-left { margin-left: 6px; }
.nowrap { white-space: nowrap; }
.narrow { max-width: 760px; }
.agent-tag { font-size: 12px; color: var(--info); font-weight: 600; }
h2.section { font: 600 20px/1.2 var(--display); margin: 8px 0 12px; }

.card.pad { padding: 22px 24px; }
.card-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 4px; }
.card-head h2.section { margin: 0; }
.card-head.flat { padding: 0 0 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; align-content: start; }
.grid2 .span2 { grid-column: 1 / -1; }
.grid2 label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
.grid2 .field { width: 100%; }
.grid2 h2.section { margin: 14px 0 0; }
.grid2 .btn { margin-top: 16px; }
label.check { display: flex; gap: 8px; align-items: center; color: var(--fg); font-size: 14px; margin-top: 12px; }
input[type="checkbox"] { accent-color: var(--fg); }
.cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.stat small { display: block; color: var(--muted); font-size: 10.5px; font-weight: 500; }
.stat b { font: 600 30px/1.2 var(--display); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.toolbar p { margin: 0; }
.filters { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.filters .field { min-width: 220px; }

/* Правка в строке (R2.10): видно, что поле редактируется */
input.inline, select.inline, textarea.inline { border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 5px 8px; min-width: 0; width: 100%; color: var(--fg); }
input.inline:hover, select.inline:hover, textarea.inline:hover { border-color: var(--line); background: var(--card); }
input.inline:focus, textarea.inline:focus { background: var(--card); }
textarea.inline { resize: none; line-height: 1.45; display: block; }
input.inline.strong { font-weight: 600; }
input.inline.num, td.num input.inline { text-align: right; width: 88px; font-family: var(--mono); }
input.inline.tiny { width: 64px; }
input.inline.quick { border: 1px dashed var(--muted); background: var(--soft); padding: 10px 12px; }
input.inline.quick:focus { border-style: solid; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: text; border-radius: 8px; padding: 5px 8px; border: 1px solid transparent; min-height: 1.5em; }
.clamp:hover { border-color: var(--line); background: var(--card); }
.clamp.placeholder { color: var(--muted); }
.pair { display: flex; gap: 6px; align-items: center; }
.pair.right { justify-content: flex-end; }
.actions-cell { width: 32px; text-align: center; }

/* Вкладка Tasks по макету: позиции, описание, исполнители, часы, «Задачи» */
table.items td { vertical-align: top; padding: 12px 14px; }
table.items td.title-cell { width: 22%; }
table.items td.desc-cell { width: 44%; }
table.items tr:hover td { background: var(--soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 2px 9px; font-size: 13px; white-space: nowrap; }
.chip.role::before { content: "◦ "; color: var(--muted); }
.chip.person { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.from-catalog { font: 10.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: block; margin: 2px 8px 0; }
.summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding: 16px 20px; margin-top: 14px; }
.summary span { color: var(--muted); }
.summary b { font-family: var(--mono); color: var(--fg); margin-left: 6px; }
.summary .btn { margin-left: auto; }
.suggest { position: relative; }
.suggest-list { position: absolute; z-index: 30; left: 0; top: calc(100% + 6px); width: min(560px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; max-height: 360px; overflow-y: auto; }
.suggest-list h6 { margin: 8px 10px 4px; font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.suggest-list button { display: flex; justify-content: space-between; gap: 12px; width: 100%; border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.suggest-list button:hover, .suggest-list button.on { background: var(--soft); }
.suggest-list button small { color: var(--muted); white-space: nowrap; font-family: var(--mono); font-size: 12px; }
.quick-card { padding: 12px 14px; margin-top: 12px; overflow: visible; }

.cu-links { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 8px 0; }
input.inline.cu-input { width: 220px; font-size: 13px; }
.cu-link { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; text-decoration: none; background: var(--info-bg); color: var(--info); padding: 2px 6px; border-radius: 5px; }
select.inline.mode { font-size: 12px; color: var(--muted); width: auto; padding: 2px 4px; display: block; }

/* Finance */
.fin { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.fin-side { display: grid; gap: 16px; }
.fin-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.fin-line:last-of-type { border-bottom: 0; }
.fin-line.strong span, .fin-line.strong b { font-weight: 700; }
.fin-line.strong b { background: var(--accent); color: var(--on-accent); padding: 1px 6px; border-radius: 6px; }
.fin-line.strong.neg b { background: var(--err-bg); color: var(--err); }
.big { font: 600 44px/1.1 var(--display); margin-bottom: 8px; }
.formula { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--muted); margin-top: 12px; font: 12.5px/1.6 var(--mono); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: var(--card); padding: 6px 10px; font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--accent); color: var(--on-accent); }
.fin table td, .fin table th { padding: 11px 10px; }
.fin table { font-size: 14px; }

/* Импорт из ClickUp */
.cu-list { max-height: 50vh; overflow-y: auto; margin-top: 12px; border-top: 1px solid var(--line); }
.cu-task { align-items: flex-start !important; padding: 8px 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.cu-task.sub { padding-left: 24px; }
.cu-task input { margin-top: 4px; }

/* Каталог */
.rates { margin-bottom: 16px; }
.rate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.rate { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.rate small { display: block; color: var(--muted); font: 10.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.rate b { font-size: 20px; }
.rate input.inline { font: 600 20px var(--mono); text-align: left; width: 100%; padding-left: 0; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--soft); }
tr.detail td { background: var(--soft); }
.cols2 { display: grid; grid-template-columns: 3fr 2fr; gap: 24px; }
.cols2 p { margin: 6px 0 0; font-size: 14px; }

/* Вход */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: var(--bg); }
.auth main { width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }
.auth .brand { border: 0; padding: 0 0 22px; }
.auth .brand b { color: var(--fg); }
.auth .brand small { color: var(--muted); }
.auth label { display: block; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 16px 0 6px; }
.auth input { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.auth .btn { width: 100%; justify-content: center; margin-top: 24px; padding: 13px; }
.auth .err { color: var(--err); min-height: 1.5em; margin: 12px 0 0; font-size: 14px; }

@media (max-width: 1100px) { .cols, .fin { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; padding: 12px 16px; }
  .nav { display: none; }
  .side.open .nav { display: block; }
  .brand { border: 0; padding: 0; }
  .menu-btn { display: inline-flex !important; }
  .me { padding-top: 10px; }
  .top { padding: 0 16px; }
  .page { padding: 20px 16px; }
  .head { flex-direction: column; align-items: flex-start; }
  h1 { font-size: 30px; }
  .agent { display: none; }
  .cols2, .cols-2 { grid-template-columns: 1fr; }
  table.items td.desc-cell { min-width: 220px; }
  table.items td.title-cell { min-width: 180px; }
}
@media (max-width: 600px) { .grid2 { grid-template-columns: 1fr; } .stats { grid-template-columns: 1fr 1fr; } }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--side-line); color: #fff; border-radius: 8px; padding: 6px 10px; cursor: pointer; font: 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
