/* ============================================================
   Ink & Gold — Design system
   ============================================================ */
:root {
  --ink: #12100e;
  --ink-soft: #1c1917;
  --ink-line: #2a2622;
  --bg: #f6f2ea;
  --bg-warm: #efe9de;
  --card: #ffffff;
  --card-alt: #fbf8f3;
  --text: #14120f;
  --text-2: #6f6558;
  --text-3: #9a9084;
  --gold: #b48b3c;
  --gold-soft: #d8b774;
  --gold-tint: rgba(180, 139, 60, .12);
  --line: #e5ded2;
  --line-2: #efe9df;
  --green: #2f7d55;
  --green-bg: #e7f2ec;
  --orange: #a96a12;
  --orange-bg: #fbf0e0;
  --red: #a83232;
  --red-bg: #f9e9e8;
  --blue: #2a5d9e;
  --blue-bg: #e8eff8;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow-1: 0 1px 2px rgba(20,18,15,.05), 0 1px 3px rgba(20,18,15,.04);
  --shadow-2: 0 6px 22px -8px rgba(20,18,15,.18);
  --sidebar-w: 268px;
  --t: 180ms cubic-bezier(.4,0,.2,1);
  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; margin: 0; }
h1 { font-size: 30px; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.gold { color: var(--gold); }
.hidden { display: none !important; }
.center { text-align: center; }

/* ---------- Layout ---------- */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--ink);
  color: #e9e3d8;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  border-right: 1px solid var(--ink-line);
}
.sidebar__brand {
  display: flex; align-items: center; gap: 11px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--ink-line);
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px; flex: 0 0 34px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--gold-soft), var(--gold));
  color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 16px;
}
.brand-name { font-family: var(--font-display); font-size: 18px; color: #f4efe6; line-height: 1.1; }
.brand-sub { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #857b6c; }

.sidebar__nav { padding: 14px 12px; overflow-y: auto; flex: 1; }
.nav-label { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #6d6456; padding: 12px 10px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; margin-bottom: 2px; border-radius: 8px;
  color: #b8b0a3; font-size: 14px; font-weight: 500;
  transition: background var(--t), color var(--t);
  position: relative;
}
.nav-item svg { width: 17px; height: 17px; flex: 0 0 17px; opacity: .85; }
.nav-item:hover { background: rgba(255,255,255,.05); color: #efe9de; }
.nav-item.is-active { background: rgba(180,139,60,.14); color: #f2e6cd; }
.nav-item.is-active::before {
  content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--gold-soft);
}
.nav-item .nav-badge {
  margin-left: auto; font-family: var(--font-mono); font-size: 11px;
  background: var(--gold); color: var(--ink); border-radius: 20px; padding: 1px 7px;
}
.sidebar__user {
  border-top: 1px solid var(--ink-line); padding: 14px 16px;
  display: flex; align-items: center; gap: 11px;
}
.sidebar__user .avatar { width: 34px; height: 34px; }
.su-name { font-size: 13.5px; color: #ece5d9; font-weight: 500; }
.su-role { font-size: 11px; color: #7e7568; text-transform: capitalize; }
.icon-btn-dark {
  margin-left: auto; background: transparent; border: 1px solid var(--ink-line);
  color: #9b9284; border-radius: 7px; width: 30px; height: 30px; cursor: pointer;
  display: grid; place-items: center; transition: var(--t);
}
.icon-btn-dark:hover { color: var(--gold-soft); border-color: var(--gold); }
.sidebar__foot { padding: 10px 18px 16px; font-size: 10.5px; color: #5f5748; letter-spacing: .04em; }

.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 62px; display: flex; align-items: center; gap: 14px;
  padding: 0 28px; background: rgba(246,242,234,.88); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40;
}
.topbar h1 { font-size: 19px; }
.topbar .sub { font-size: 12.5px; color: var(--text-2); }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 7px; cursor: pointer; }
.page { padding: 26px 28px 60px; max-width: 1320px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--text-2); font-size: 14px; }
.section { margin-top: 30px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0 0 14px; }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-1);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card--pad { padding: 18px 20px; }
.card--hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: #dcd2c2; }
.card__head { padding: 15px 20px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card__body { padding: 18px 20px; }

.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ---------- Stats ---------- */
.stat { padding: 16px 18px; }
.stat__label { font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--text-3); }
.stat__value { font-family: var(--font-mono); font-size: 27px; font-weight: 500; letter-spacing: -.02em; margin-top: 6px; }
.stat__foot { margin-top: 6px; font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.trend { font-family: var(--font-mono); font-size: 12px; }
.trend--up { color: var(--green); }
.trend--down { color: var(--red); }
.stat--accent { border-top: 2px solid var(--gold); }

.bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 11px; font-size: 13px; }
.bar-row .bar-label { width: 118px; color: var(--text-2); flex: 0 0 auto; }
.bar-track { flex: 1; height: 7px; background: var(--bg-warm); border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--gold-soft), var(--gold)); border-radius: 6px; transition: width .6s cubic-bezier(.4,0,.2,1); }
.bar-row .bar-val { width: 52px; text-align: right; font-family: var(--font-mono); font-size: 12.5px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 500;
  padding: 9px 16px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; transition: var(--t); white-space: nowrap;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--primary { background: var(--ink); color: var(--gold-soft); }
.btn--primary:hover:not(:disabled) { background: #241f1a; color: #f0d9a5; box-shadow: var(--shadow-2); }
.btn--gold { background: var(--gold); color: #1a1613; }
.btn--gold:hover:not(:disabled) { background: #c39a4b; }
.btn--secondary { background: transparent; border-color: #d9d0c1; color: var(--text); }
.btn--secondary:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); background: var(--gold-tint); }
.btn--ghost { background: transparent; color: var(--text-2); }
.btn--ghost:hover:not(:disabled) { color: var(--gold); background: var(--gold-tint); }
.btn--danger { background: transparent; border-color: #e4c9c6; color: var(--red); }
.btn--danger:hover:not(:disabled) { background: var(--red-bg); }
.btn--sm { padding: 6px 11px; font-size: 12.5px; }
.btn--block { width: 100%; }
.btn--lg { padding: 12px 20px; font-size: 15px; }
.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent; color: var(--gold-soft);
  animation: spin .65s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 500; letter-spacing: .02em;
  padding: 3px 9px; border-radius: 20px; border: 1px solid transparent; white-space: nowrap;
}
.badge--success { background: var(--green-bg); color: var(--green); border-color: #cfe4d8; }
.badge--pending { background: var(--orange-bg); color: var(--orange); border-color: #eeddc0; }
.badge--danger { background: var(--red-bg); color: var(--red); border-color: #eed3d1; }
.badge--info { background: var(--blue-bg); color: var(--blue); border-color: #d3e0ef; }
.badge--gold { background: var(--gold-tint); color: var(--gold); border-color: #e6d3ab; }
.badge--neutral { background: var(--bg-warm); color: var(--text-2); border-color: var(--line); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------- Forms ---------- */
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.input, .select, .textarea {
  width: 100%; font-family: var(--font-sans); font-size: 14px; color: var(--text);
  background: var(--card); border: 1px solid #ded5c7; border-radius: 8px;
  padding: 10px 12px; transition: var(--t); outline: none;
}
.textarea { min-height: 104px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--red); }
.field-error { color: var(--red); font-size: 12px; margin-top: 5px; min-height: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkbox { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.alert { padding: 11px 14px; border-radius: 8px; font-size: 13.5px; margin-bottom: 14px; }
.alert--error { background: var(--red-bg); color: var(--red); border: 1px solid #eed3d1; }
.alert--info { background: var(--blue-bg); color: var(--blue); border: 1px solid #d3e0ef; }
.alert--success { background: var(--green-bg); color: var(--green); border: 1px solid #cfe4d8; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-1); }
table.tbl { width: 100%; border-collapse: collapse; min-width: 620px; }
.tbl thead th {
  background: var(--card-alt); text-align: left; font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-3); font-weight: 600;
  padding: 11px 16px; border-bottom: 1px solid var(--line);
}
.tbl tbody td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); font-size: 13.5px; vertical-align: middle; }
.tbl tbody tr { transition: background var(--t); }
.tbl tbody tr:hover { background: var(--card-alt); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* ---------- Avatars / media ---------- */
.avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  background: var(--bg-warm); color: var(--text-2);
  display: inline-grid; place-items: center; font-size: 13px; font-weight: 600;
  border: 1px solid var(--line); overflow: hidden; flex: 0 0 auto;
}
.avatar--lg { width: 88px; height: 88px; font-size: 26px; font-family: var(--font-display); }
.thumb { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--bg-warm); display: block; }

/* ---------- Car cards ---------- */
.car-card { overflow: hidden; display: flex; flex-direction: column; cursor: pointer; }
.car-card__media { position: relative; }
.car-card__media .badge { position: absolute; top: 10px; left: 10px; background: rgba(18,16,14,.82); color: var(--gold-soft); border: 0; }
.fav-btn {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: 1px solid var(--line); cursor: pointer;
  display: grid; place-items: center; color: var(--text-2); transition: var(--t);
}
.fav-btn:hover { color: var(--red); transform: scale(1.07); }
.fav-btn.is-on { color: var(--red); }
.car-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.car-title { font-family: var(--font-display); font-size: 16.5px; }
.car-meta { font-size: 12.5px; color: var(--text-2); display: flex; gap: 10px; flex-wrap: wrap; }
.price { font-family: var(--font-mono); font-size: 16px; }
.price span { font-size: 11.5px; color: var(--text-2); }
.car-card__foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; }

/* ---------- Filters ---------- */
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto; gap: 10px; align-items: end; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(18,16,14,.5); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity 200ms ease;
}
.modal-backdrop.is-open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--card); border-radius: 12px; border: 1px solid var(--line);
  width: 100%; max-width: 560px; max-height: 88vh; overflow: auto;
  box-shadow: 0 24px 60px -18px rgba(18,16,14,.4);
  transform: translateY(14px) scale(.99); opacity: 0; transition: transform 220ms cubic-bezier(.4,0,.2,1), opacity 220ms;
}
.modal--wide { max-width: 860px; }
.is-open .modal { transform: none; opacity: 1; }
.modal__head { padding: 18px 22px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; }
.modal__body { padding: 20px 22px; }
.modal__foot { padding: 15px 22px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: 9px; }
.modal-close { background: none; border: 0; cursor: pointer; color: var(--text-3); font-size: 20px; line-height: 1; padding: 4px; transition: var(--t); }
.modal-close:hover { color: var(--text); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; top: 18px; right: 18px; z-index: 120; display: flex; flex-direction: column; gap: 9px; }
.toast {
  background: var(--ink); color: #ece5d8; border-radius: 9px; padding: 12px 16px;
  font-size: 13.5px; min-width: 240px; max-width: 360px; box-shadow: 0 14px 34px -12px rgba(18,16,14,.55);
  border-left: 3px solid var(--gold); animation: toastIn 260ms cubic-bezier(.4,0,.2,1);
}
.toast--success { border-left-color: #4caf7d; }
.toast--error { border-left-color: #d9615a; }
.toast--info { border-left-color: #6fa0dd; }
.toast.is-out { animation: toastOut 200ms forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(16px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(16px); } }

/* ---------- States ---------- */
.skeleton { background: linear-gradient(90deg, var(--bg-warm) 25%, #f7f3ec 50%, var(--bg-warm) 75%); background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: 6px; }
@keyframes sk { to { background-position: -200% 0; } }
.sk-line { height: 12px; margin-bottom: 9px; }
.empty { padding: 44px 20px; text-align: center; color: var(--text-2); }
.empty h3 { font-size: 17px; margin-bottom: 6px; color: var(--text); }
.spinner { width: 22px; height: 22px; border: 2px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin .7s linear infinite; margin: 30px auto; }
.fade-in { animation: fadeIn 260ms ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tab {
  background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
  padding: 9px 14px; font-family: var(--font-sans); font-size: 13.5px; color: var(--text-2);
  transition: var(--t); white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); border-bottom-color: var(--gold); font-weight: 500; }

/* ---------- Lists (messages / notifications) ---------- */
.split { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }
.list-item {
  display: flex; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line-2);
  cursor: pointer; transition: background var(--t);
}
.list-item:hover { background: var(--card-alt); }
.list-item.is-active { background: var(--gold-tint); }
.list-item.is-unread { border-left: 2px solid var(--gold); }
.list-item:last-child { border-bottom: 0; }
.li-title { font-size: 14px; font-weight: 500; }
.li-sub { font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-time { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); margin-left: auto; flex: 0 0 auto; }
.thread { display: flex; flex-direction: column; height: 560px; }
.thread__body { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; background: var(--card-alt); }
.bubble { max-width: 72%; padding: 10px 13px; border-radius: 12px; font-size: 13.5px; border: 1px solid var(--line); background: var(--card); }
.bubble .t { display: block; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); margin-top: 5px; }
.bubble--me { align-self: flex-end; background: var(--ink); color: #ece5d8; border-color: var(--ink); }
.bubble--me .t { color: #8d8474; }
.thread__foot { display: flex; gap: 9px; padding: 12px 14px; border-top: 1px solid var(--line-2); background: var(--card); }

/* ---------- Auth page ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-art {
  background: var(--ink); color: #e8e1d5; padding: 56px 54px;
  display: flex; flex-direction: column; justify-content: space-between;
  background-image: radial-gradient(circle at 78% 12%, rgba(180,139,60,.22), transparent 46%);
}
.auth-art h2 { font-size: 38px; color: #f5efe4; line-height: 1.15; max-width: 12ch; }
.auth-art .lead { color: #a89e8f; max-width: 42ch; margin-top: 16px; font-size: 15px; }
.auth-points { display: flex; flex-direction: column; gap: 14px; margin-top: 34px; }
.auth-point { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #cfc7b8; }
.auth-point .k { font-family: var(--font-mono); color: var(--gold-soft); font-size: 12px; padding-top: 2px; }
.auth-panel { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-switch { display: flex; background: var(--bg-warm); border-radius: 9px; padding: 4px; margin-bottom: 24px; }
.auth-switch button {
  flex: 1; border: 0; background: none; cursor: pointer; padding: 8px; border-radius: 7px;
  font-family: var(--font-sans); font-size: 13.5px; color: var(--text-2); transition: var(--t);
}
.auth-switch button.is-active { background: var(--card); color: var(--text); font-weight: 500; box-shadow: var(--shadow-1); }

/* ---------- Misc ---------- */
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--text-2); }
.kv .v { font-family: var(--font-mono); text-align: right; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip { font-size: 12px; padding: 4px 10px; border-radius: 20px; background: var(--bg-warm); border: 1px solid var(--line); color: var(--text-2); cursor: pointer; transition: var(--t); }
.chip:hover, .chip.is-on { border-color: var(--gold); color: var(--gold); background: var(--gold-tint); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.g-item { position: relative; }
.g-item .rm { position: absolute; top: 5px; right: 5px; background: rgba(18,16,14,.78); color: #f0e6d2; border: 0; border-radius: 6px; width: 24px; height: 24px; cursor: pointer; }
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; font-family: var(--font-mono); font-size: 13px; color: var(--text-2); }
.sidebar-overlay { position: fixed; inset: 0; background: rgba(18,16,14,.45); z-index: 55; opacity: 0; pointer-events: none; transition: opacity var(--t); }
.sidebar-overlay.is-open { opacity: 1; pointer-events: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { display: none; }
}
@media (max-width: 760px) {
  .sidebar { transform: translateX(-100%); transition: transform 240ms cubic-bezier(.4,0,.2,1); }
  .sidebar.is-open { transform: none; }
  .main { margin-left: 0; }
  .burger { display: grid; place-items: center; }
  .page { padding: 18px 16px 54px; }
  .topbar { padding: 0 16px; }
  h1 { font-size: 24px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stat__value { font-size: 24px; }
  .toasts { left: 14px; right: 14px; }
  .toast { max-width: none; }
  .thread { height: 70vh; }
  .bubble { max-width: 88%; }
}
