@font-face { font-family: Inter; src: url("/fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url("/fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url("/fonts/Inter-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Outfit; src: url("/fonts/Outfit-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Outfit; src: url("/fonts/Outfit-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #f6f6f4;
  --panel: #ffffff;
  --panel-2: #fafaf8;
  --text: #191b20;
  --muted: #62666d;
  --line: #e6e7e9;
  --accent: #d63c2b;
  --accent-soft: #fbe9e6;
  --accent-text: #ffffff;
  --ok: #1d7a4c;
  --ok-soft: #e3f3ea;
  --warn: #a35b00;
  --warn-soft: #fdf0dc;
  --bad: #b3261e;
  --bad-soft: #fbe4e2;
  --info: #255fb5;
  --info-soft: #e5eefb;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 20, 30, .05), 0 6px 24px rgba(20, 20, 30, .05);
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
[data-theme="dark"] {
  --bg: #0f1114;
  --panel: #171a1f;
  --panel-2: #1c2026;
  --text: #eceef1;
  --muted: #9aa0a8;
  --line: #2a2f37;
  --accent: #ef5a47;
  --accent-soft: #3a1c18;
  --ok: #5fcf95;
  --ok-soft: #15301f;
  --warn: #f1b45a;
  --warn-soft: #33260f;
  --bad: #ff8a80;
  --bad-soft: #3a1715;
  --info: #8fb6f5;
  --info-soft: #172438;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-size: 14px; line-height: 1.5; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: Outfit, Inter, sans-serif; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 24px; font-weight: 700; }
h2 { font-size: 18px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; word-break: break-all; }
.stack { display: grid; gap: 12px; }
.stack-lg { display: grid; gap: 20px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.hidden { display: none !important; }

/* Buttons and inputs */
.btn { border: 1px solid var(--line); background: var(--panel); border-radius: 9px; padding: 8px 14px; cursor: pointer; font-weight: 600; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { background: var(--panel-2); border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 12px; }
label { display: grid; gap: 4px; font-weight: 600; font-size: 12px; color: var(--muted); }
input, select, textarea { border: 1px solid var(--line); background: var(--panel); border-radius: 9px; padding: 9px 11px; width: 100%; font-weight: 400; font-size: 14px; }
textarea { resize: vertical; min-height: 80px; }
input[type="checkbox"] { width: auto; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; color: var(--text); font-size: 13px; }

/* Login */
.auth { min-height: 100svh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-side { background: #191b20; color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side h1 { font-size: 40px; line-height: 1.1; max-width: 13ch; }
.auth-side p { color: #c4c7cc; max-width: 42ch; font-size: 15px; }
.auth-side .layers { display: grid; gap: 10px; margin-top: 32px; }
.auth-side .layer { display: flex; gap: 12px; align-items: baseline; color: #dfe1e4; }
.auth-side .layer b { color: #fff; font-family: Outfit, sans-serif; min-width: 170px; }
.auth-main { display: grid; place-items: center; padding: 32px; }
.auth-card { width: min(400px, 100%); display: grid; gap: 18px; }
.brand { display: flex; gap: 10px; align-items: center; font-family: Outfit, sans-serif; font-weight: 700; font-size: 18px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.auth-side .brand { color: #fff; }

/* Shell */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100svh; }
.shell.collapsed { grid-template-columns: 68px 1fr; }
.sidebar { background: var(--panel); border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100svh; overflow-y: auto; }
.sidebar .brand { padding: 4px 8px 16px; }
.nav-item { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 9px; color: var(--text); font-weight: 500; cursor: pointer; border: 0; background: none; width: 100%; text-align: left; }
.nav-item:hover { background: var(--panel-2); text-decoration: none; }
.nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-item svg { width: 18px; height: 18px; flex: none; }
.nav-label { white-space: nowrap; overflow: hidden; }
.nav-count { margin-left: auto; background: var(--accent); color: #fff; font-size: 11px; border-radius: 999px; padding: 0 7px; font-weight: 700; }
.nav-section { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 14px 10px 4px; font-weight: 600; }
.shell.collapsed .nav-label, .shell.collapsed .nav-section, .shell.collapsed .brand span, .shell.collapsed .nav-count { display: none; }
.sidebar .spacer { flex: 1; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; gap: 12px; align-items: center; padding: 12px 24px; border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 5; }
.topbar .search { max-width: 420px; }
.content { padding: 24px; display: grid; gap: 20px; max-width: 1400px; width: 100%; }
.icon-btn { border: 1px solid var(--line); background: var(--panel); border-radius: 9px; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; position: relative; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .dot { position: absolute; top: -4px; right: -4px; background: var(--accent); color: #fff; border-radius: 999px; font-size: 10px; padding: 0 5px; font-weight: 700; }
.role-chip { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); }

/* Panels */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi .label { color: var(--muted); font-size: 12px; font-weight: 600; }
.kpi .value { font-family: Outfit, sans-serif; font-size: 26px; font-weight: 700; margin-top: 2px; }
.kpi .sub { color: var(--muted); font-size: 12px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel-2); white-space: nowrap; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--panel-2); }
tr:last-child td { border-bottom: 0; }
.empty { padding: 36px; text-align: center; color: var(--muted); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); white-space: nowrap; }
.badge.critical, .badge.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.badge.high, .badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.medium, .badge.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.sandbox { background: repeating-linear-gradient(45deg, var(--warn-soft), var(--warn-soft) 6px, transparent 6px, transparent 12px); color: var(--warn); border-color: var(--warn); }

/* Filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.filters input, .filters select { width: auto; min-width: 140px; padding: 7px 10px; font-size: 13px; }
.filters input[type="search"] { flex: 1; min-width: 200px; }

/* Chat */
.chat { display: grid; grid-template-columns: 260px 1fr; gap: 16px; height: calc(100svh - 120px); min-height: 520px; }
.chat-list { overflow-y: auto; display: grid; align-content: start; gap: 6px; }
.chat-item { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; text-align: left; display: grid; gap: 2px; }
.chat-item.active { border-color: var(--accent); }
.chat-panel { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-height: 0; }
.chat-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.powered { font-size: 12px; color: var(--muted); }
.messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: min(640px, 85%); padding: 10px 14px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; animation: rise .18s ease-out; }
.bubble.customer, .bubble.mine { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.bubble.assistant, .bubble.other { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble.notice { align-self: center; background: var(--info-soft); color: var(--info); font-size: 13px; max-width: 90%; text-align: center; }
.bubble.internal { align-self: flex-start; background: var(--warn-soft); border: 1px dashed var(--warn); }
.bubble .meta { font-size: 11px; opacity: .75; margin-bottom: 2px; font-weight: 600; }
.bubble a { color: inherit; text-decoration: underline; }
.composer { border-top: 1px solid var(--line); padding: 12px; display: grid; gap: 8px; }
.composer textarea { min-height: 48px; max-height: 180px; }
.typing { align-self: flex-start; color: var(--muted); font-size: 13px; }
.typing::after { content: "…"; animation: blink 1s infinite; }
.files { display: flex; gap: 6px; flex-wrap: wrap; }
.file-chip { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); display: inline-flex; gap: 6px; align-items: center; }
.bubble .file-chip { background: rgba(255, 255, 255, .2); border-color: transparent; color: inherit; }

/* Timeline */
.timeline { display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 14px 1fr; gap: 10px; padding-bottom: 14px; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 6px; top: 14px; bottom: 0; width: 2px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--panel); border: 3px solid var(--muted); margin-top: 3px; }
.tl-item.internal .tl-dot { border-color: var(--warn); }
.tl-item.escalated .tl-dot { border-color: var(--accent); }

/* Charts */
.chart { width: 100%; height: 220px; }
.chart text { fill: var(--muted); font-size: 11px; font-family: Inter, sans-serif; }
.chart .grid-line { stroke: var(--line); }
.bar-row { display: grid; grid-template-columns: 110px 1fr 40px; gap: 10px; align-items: center; font-size: 13px; }
.bar-track { height: 10px; background: var(--panel-2); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width .4s ease; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.tooltip { position: fixed; pointer-events: none; background: var(--text); color: var(--bg); padding: 6px 10px; border-radius: 8px; font-size: 12px; z-index: 50; }

/* Overlays */
.drawer { position: fixed; top: 60px; right: 16px; width: min(380px, calc(100% - 32px)); max-height: 70svh; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0, 0, 0, .18); z-index: 20; animation: rise .15s ease-out; }
.notif { padding: 12px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; cursor: pointer; }
.notif.unread { background: var(--accent-soft); }
.modal-back { position: fixed; inset: 0; background: rgba(10, 10, 15, .45); display: grid; place-items: center; z-index: 30; padding: 16px; animation: fade .15s; }
.modal { background: var(--panel); border-radius: 14px; width: min(560px, 100%); max-height: 90svh; overflow-y: auto; padding: 22px; display: grid; gap: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 60; }
.toast { background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 500; animation: rise .2s ease-out; max-width: 90vw; }
.toast.error { background: var(--bad); color: #fff; }
.banner { padding: 10px 14px; border-radius: 10px; font-size: 13px; }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.info { background: var(--info-soft); color: var(--info); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tab { padding: 9px 14px; border: 0; background: none; cursor: pointer; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.stars { display: flex; gap: 4px; }
.star { font-size: 24px; background: none; border: 0; cursor: pointer; color: var(--line); padding: 0; }
.star.on { color: #f2a516; }
.qr svg { width: 200px; height: 200px; background: #fff; padding: 8px; border-radius: 10px; }
.skeleton { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--panel-2), var(--line), var(--panel-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }

@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes blink { 50% { opacity: .2; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@media (max-width: 1100px) {
  .detail-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 32px 24px; }
  .auth-side h1 { font-size: 30px; }
  .shell, .shell.collapsed { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 40; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0, 0, 0, .2); }
  .shell.mobile-open .sidebar { transform: none; }
  .shell.collapsed .nav-label, .shell.collapsed .nav-section, .shell.collapsed .brand span { display: initial; }
  .topbar { padding: 10px 14px; }
  .content { padding: 14px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .chat { grid-template-columns: 1fr; height: auto; }
  .chat-list { max-height: 160px; }
  .chat-panel { height: calc(100svh - 280px); min-height: 420px; }
  .kv { grid-template-columns: 110px 1fr; }
  .topbar .role-chip { display: none; }
}


dialog.modal { border: 1px solid var(--line); color: var(--text); }
dialog.modal:not([open]) { display: none; }
dialog::backdrop { background: rgba(10,10,15,.55); }
.mfa-qr { width: 200px; max-width: 100%; margin: auto; background: white; border-radius: 12px; }
.auth-side > a { color: #fff; font-size: 13px; }
.auth-side { gap: 32px; }
.chat { height: calc(100svh - 165px); }
.chat-panel, .chat-list { min-width: 0; }
.assistant-start { margin: auto; text-align: center; display: grid; gap: 8px; }
.ticket-messages { display: flex; flex-direction: column; gap: 10px; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Buyer app requests */
.inbox-heading { gap: 16px; }
.inbox-heading h1 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; }
.inbox-heading p { margin-top: 6px; }
.inbox-workspace {
  display: grid;
  grid-template-columns: minmax(245px, 340px) minmax(0, 1fr);
  align-items: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.inbox-queue { min-width: 0; display: grid; align-self: stretch; grid-template-rows: auto 1fr auto; border-right: 1px solid var(--line); }
.inbox-controls { display: grid; gap: 12px; padding: 18px; border-bottom: 1px solid var(--line); }
.inbox-count, .inbox-pagination { font-size: 12px; }
.inbox-controls input { background: var(--panel-2); }
.inbox-filters { display: flex; flex-wrap: wrap; gap: 4px; }
.inbox-filters button {
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.inbox-filters button:hover { background: var(--panel-2); }
.inbox-filters button[aria-pressed="true"] { background: var(--accent-soft); color: var(--text); }
.inbox-items { overflow: auto; max-height: 590px; padding: 6px; }
.inbox-item {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.inbox-item:hover { background: var(--panel-2); }
.inbox-item[aria-current="true"] { border-color: var(--accent); background: var(--accent-soft); }
.inbox-item-meta { display: flex; justify-content: space-between; align-items: center; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 600; }
.inbox-item strong, .inbox-excerpt { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.inbox-excerpt { color: var(--muted); font-size: 12px; }
.inbox-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: start;
  gap: 6px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.inbox-pagination > :last-child { justify-self: end; }
.inbox-detail { display: flex; min-width: 0; min-height: 450px; flex-direction: column; align-self: stretch; }
.inbox-detail-header { display: grid; gap: 10px; padding: 22px clamp(16px, 3vw, 32px); border-bottom: 1px solid var(--line); }
.inbox-detail-header h2 { font-size: clamp(22px, 3vw, 30px); line-height: 1.2; overflow-wrap: anywhere; }
.inbox-detail-header h2:focus { outline-offset: 5px; }
.inbox-kind { font-size: 12px; font-weight: 600; color: var(--muted); }
.inbox-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; font-size: 12px; }
.inbox-facts dt { color: var(--muted); }
.inbox-facts dd { margin: 1px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.inbox-thread { display: grid; gap: 12px; align-content: start; flex: 1; padding: 22px clamp(16px, 3vw, 32px); background: var(--panel-2); }
.inbox-message { display: grid; gap: 8px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.inbox-response { border-left: 3px solid var(--ok); }
.inbox-composer { display: grid; gap: 10px; padding: 16px clamp(16px, 3vw, 32px); border-top: 1px solid var(--line); }
.inbox-composer label { color: var(--text); gap: 8px; }
.inbox-composer textarea { background: var(--panel-2); }
.inbox-composer-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.inbox-composer-footer small { flex: 1 0 160px; }
.inbox-characters { font-size: 11px; font-variant-numeric: tabular-nums; }
.inbox-reply-error { color: var(--bad); }
.inbox-empty { display: grid; gap: 4px; margin: auto; padding: 24px; text-align: center; }
.inbox-back { display: none; justify-self: start; }
@media (max-width: 820px) {
  .inbox-workspace { grid-template-columns: minmax(0, 1fr); }
  .inbox-queue { border-right: 0; }
  .inbox-workspace:not(.show-request) .inbox-detail,
  .inbox-workspace.show-request .inbox-queue { display: none; }
  .inbox-back { display: inline-flex; }
  .inbox-detail { min-height: 360px; }
}
.trend { overflow-x: auto; display: flex; gap: 14px; padding: 6px 0; }
.trend-period { min-width: 68px; flex: 1; display: grid; }
.trend-period meter { width: 100%; }
.shell.collapsed { grid-template-columns: 1fr; }
.shell.collapsed .sidebar { display: none; }
@media (max-width: 820px) {
  .chat { height: auto; }
  .topbar { flex-wrap: wrap; }
  .topbar .search { flex-basis: 55%; }
}

