/* ==========================================================================
   MBD Suite — luxury dark theme
   glassmorphism 50%  ·  neumorphism 30%  ·  skeuomorphism 20%
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Cormorant+Garamond:wght@600;700&display=swap');

:root {
  /* base canvas */
  --ink-000: #04040a;
  --ink-050: #07070f;
  --ink-100: #0b0b16;
  --ink-200: #101021;
  --ink-300: #16162b;
  --ink-400: #1e1e38;

  /* luxury accents */
  --gold-100: #f7e7bd;
  --gold-200: #eccf8f;
  --gold-300: #d4af37;
  --gold-400: #a9822a;
  --violet-200: #b9a6ff;
  --violet-300: #7c5cff;
  --violet-400: #4a2fd6;
  --rose-300: #ff5f8f;
  --teal-300: #37e0c8;
  --amber-300: #ffb347;
  --danger: #ff5a5a;
  --ok: #3ddc97;

  /* type */
  --text-hi: #f4f2ff;
  --text: #cfcbe6;
  --text-mid: #9a95b8;
  --text-dim: #6d6889;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Cormorant Garamond', 'Manrope', serif;

  /* glass */
  --glass: rgba(255, 255, 255, 0.055);
  --glass-2: rgba(255, 255, 255, 0.085);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --glass-line: rgba(255, 255, 255, 0.14);
  --glass-line-soft: rgba(255, 255, 255, 0.07);
  --blur: 22px;

  /* neumorphic shadow pair */
  --nm-light: rgba(255, 255, 255, 0.055);
  --nm-dark: rgba(0, 0, 0, 0.72);
  --nm-out: -6px -6px 16px var(--nm-light), 8px 10px 24px var(--nm-dark);
  --nm-out-sm: -3px -3px 8px var(--nm-light), 4px 5px 14px var(--nm-dark);
  --nm-in: inset -4px -4px 10px rgba(255, 255, 255, 0.045), inset 5px 6px 14px rgba(0, 0, 0, 0.78);
  --nm-in-sm: inset -2px -2px 5px rgba(255, 255, 255, 0.04), inset 3px 3px 8px rgba(0, 0, 0, 0.7);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
  --sidebar-w: 268px;
  --topbar-h: 68px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--ink-050);
  font-size: 14.5px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- ambient luxury backdrop (aurora + vignette + film grain) ------- */
.bg-stage { position: fixed; inset: 0; z-index: -3; overflow: hidden; background:
  radial-gradient(1200px 700px at 12% -8%, #241a4d 0%, transparent 62%),
  radial-gradient(1000px 620px at 92% 4%, #3a2410 0%, transparent 58%),
  radial-gradient(900px 700px at 78% 104%, #1b1040 0%, transparent 60%),
  linear-gradient(168deg, #080812 0%, #05050c 48%, #07060f 100%); }
.bg-stage::after {
  content: ''; position: absolute; inset: -20%;
  background:
    radial-gradient(420px 300px at 22% 28%, rgba(124, 92, 255, .20), transparent 70%),
    radial-gradient(460px 320px at 74% 62%, rgba(212, 175, 55, .14), transparent 72%),
    radial-gradient(360px 260px at 52% 88%, rgba(255, 95, 143, .10), transparent 70%);
  filter: blur(18px); animation: drift 26s var(--ease) infinite alternate;
}
.bg-grain { position: fixed; inset: 0; z-index: -2; opacity: .05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.bg-vignette { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 42%, rgba(0, 0, 0, .55) 100%); }

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-3%, 2%, 0) scale(1.06); }
  100% { transform: translate3d(3%, -2%, 0) scale(1.02); }
}

/* --------------------------------- surfaces -------------------------------- */
.glass {
  position: relative;
  background: linear-gradient(158deg, var(--glass-2), var(--glass) 42%, rgba(255, 255, 255, .028));
  border: 1px solid var(--glass-line-soft);
  border-radius: var(--radius);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
  box-shadow: 0 22px 48px -22px rgba(0, 0, 0, .92), inset 0 1px 0 rgba(255, 255, 255, .10);
}
/* skeuomorphic specular sheen along the top edge */
.glass::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 46%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .085), transparent);
  pointer-events: none; mask-image: linear-gradient(#000, transparent);
}
.panel { padding: 20px 22px; }
.panel-tight { padding: 14px 16px; }

.card { border-radius: var(--radius); background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.018));
  border: 1px solid var(--glass-line-soft); backdrop-filter: blur(16px); box-shadow: var(--nm-out-sm); }

.neu {
  background: linear-gradient(150deg, var(--ink-300), var(--ink-100));
  border-radius: var(--radius);
  box-shadow: var(--nm-out);
  border: 1px solid rgba(255, 255, 255, .045);
}
.neu-in { background: var(--ink-100); border-radius: var(--radius); box-shadow: var(--nm-in); }

.hairline { height: 1px; border: 0; margin: 16px 0;
  background: linear-gradient(90deg, transparent, var(--glass-line), transparent); }

/* ------------------------------- typography -------------------------------- */
h1, h2, h3, h4 { color: var(--text-hi); margin: 0 0 .4em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: 26px; } h2 { font-size: 20px; } h3 { font-size: 16px; } h4 { font-size: 14px; }
.display { font-family: var(--font-display); font-weight: 700; letter-spacing: .01em; }
.muted { color: var(--text-mid); }
.dim { color: var(--text-dim); }
.tiny { font-size: 11.5px; letter-spacing: .04em; }
.up { text-transform: uppercase; letter-spacing: .16em; font-size: 10.5px; font-weight: 700; color: var(--text-dim); }
.gold-text {
  background: linear-gradient(100deg, var(--gold-100), var(--gold-300) 45%, #fff3cf 62%, var(--gold-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mono { font-family: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, monospace; font-size: 12.5px; }
a { color: var(--violet-200); text-decoration: none; }
a:hover { color: var(--gold-200); }

/* --------------------------------- buttons --------------------------------- */
.btn {
  --glow: rgba(124, 92, 255, .45);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 10px 18px; border-radius: 14px; cursor: pointer; overflow: hidden;
  font: 600 13.5px/1 var(--font); color: var(--text-hi); letter-spacing: .01em;
  background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04) 46%, rgba(0, 0, 0, .22));
  border: 1px solid var(--glass-line);
  box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -2px 6px rgba(0, 0, 0, .45);
  backdrop-filter: blur(12px);
  transition: transform .16s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease), filter .2s var(--ease);
  user-select: none; white-space: nowrap;
}
.btn::after { /* glossy skeuomorphic cap */
  content: ''; position: absolute; inset: 1px 1px auto 1px; height: 44%; border-radius: 13px 13px 60% 60%/13px 13px 22px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .20), transparent); pointer-events: none;
}
.btn:hover { transform: translateY(-1.5px); border-color: rgba(255, 255, 255, .26);
  box-shadow: 0 16px 30px -14px #000, 0 0 24px -4px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn:active { transform: translateY(1px) scale(.985);
  box-shadow: inset 3px 4px 12px rgba(0, 0, 0, .8), inset -2px -2px 8px rgba(255, 255, 255, .07), 0 0 18px -6px var(--glow); }
.btn:disabled, .btn[disabled] { opacity: .45; pointer-events: none; }
.btn.sm { padding: 7px 13px; font-size: 12.5px; border-radius: 11px; }
.btn.xs { padding: 5px 10px; font-size: 11.5px; border-radius: 9px; }
.btn.block { width: 100%; }

.btn.gold { --glow: rgba(212, 175, 55, .6);
  background: linear-gradient(180deg, #f6dfa4, #d9b247 40%, #a9822a 78%, #8a681f);
  color: #2a1e04; border-color: rgba(255, 236, 179, .55); text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
  box-shadow: 0 12px 26px -14px #000, inset 0 1px 0 rgba(255, 255, 255, .65), inset 0 -3px 8px rgba(90, 60, 0, .55); }
.btn.violet { --glow: rgba(124, 92, 255, .75);
  background: linear-gradient(180deg, #9d84ff, #6f4cf0 46%, #4a2fd6);
  border-color: rgba(190, 170, 255, .45); color: #fff;
  box-shadow: 0 12px 26px -14px #000, inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 -3px 8px rgba(20, 5, 70, .55); }
.btn.ghost { background: rgba(255, 255, 255, .035); border-color: var(--glass-line-soft); color: var(--text); }
.btn.danger { --glow: rgba(255, 90, 90, .6);
  background: linear-gradient(180deg, #ff8f8f, #e04b4b 48%, #a92f2f); border-color: rgba(255, 180, 180, .4); color: #fff; }
.btn.icon { padding: 9px; width: 38px; height: 38px; border-radius: 12px; }

/* soft neumorphic toolbar button */
.nbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 14px; border-radius: 13px; cursor: pointer; color: var(--text);
  font: 600 13px/1 var(--font); border: 1px solid rgba(255, 255, 255, .05);
  background: linear-gradient(150deg, #16162b, #0d0d1a); box-shadow: var(--nm-out-sm);
  transition: all .18s var(--ease);
}
.nbtn:hover { color: var(--text-hi); box-shadow: var(--nm-out-sm), 0 0 18px -6px rgba(124, 92, 255, .55); }
.nbtn:active, .nbtn.on { box-shadow: var(--nm-in-sm); color: var(--gold-200); }

/* --------------------------------- inputs ---------------------------------- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--text-mid); letter-spacing: .03em; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date],
input[type=search], input[type=url], select, textarea {
  width: 100%; padding: 11px 14px; color: var(--text-hi); font: 500 13.5px/1.4 var(--font);
  background: rgba(4, 4, 12, .62); border: 1px solid var(--glass-line-soft); border-radius: 13px;
  box-shadow: var(--nm-in-sm); outline: none; transition: all .2s var(--ease);
}
textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
input:focus, select:focus, textarea:focus {
  border-color: rgba(124, 92, 255, .55);
  box-shadow: var(--nm-in-sm), 0 0 0 3px rgba(124, 92, 255, .16), 0 0 22px -8px rgba(124, 92, 255, .8);
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }
select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239a95b8' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }
select option { background: #0d0d1a; color: var(--text-hi); }
.row { display: flex; gap: 12px; } .row > * { flex: 1; min-width: 0; }

/* switch */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-size: 13px; }
.switch input { display: none; }
.switch i { width: 44px; height: 25px; border-radius: 20px; background: #0a0a16; box-shadow: var(--nm-in-sm); position: relative; transition: .25s var(--ease); flex: none; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%;
  background: linear-gradient(180deg, #6f6b8f, #2b2a45); box-shadow: 0 2px 6px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.3); transition: .25s var(--ease-back); }
.switch input:checked + i { background: linear-gradient(90deg, #4a2fd6, #7c5cff); box-shadow: inset 0 0 12px rgba(124,92,255,.6), 0 0 16px -4px rgba(124,92,255,.7); }
.switch input:checked + i::after { left: 22px; background: linear-gradient(180deg, #fff, #d9d4ff); }

/* ---------------------------------- chips ---------------------------------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .02em; border: 1px solid var(--glass-line-soft);
  background: rgba(255, 255, 255, .05); color: var(--text-mid); backdrop-filter: blur(8px); }
.chip.gold { color: var(--gold-200); border-color: rgba(212, 175, 55, .35); background: rgba(212, 175, 55, .09); }
.chip.violet { color: var(--violet-200); border-color: rgba(124, 92, 255, .38); background: rgba(124, 92, 255, .12); }
.chip.ok { color: var(--ok); border-color: rgba(61, 220, 151, .3); background: rgba(61, 220, 151, .1); }
.chip.warn { color: var(--amber-300); border-color: rgba(255, 179, 71, .3); background: rgba(255, 179, 71, .1); }
.chip.bad { color: var(--danger); border-color: rgba(255, 90, 90, .32); background: rgba(255, 90, 90, .1); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

/* ---------------------------------- shell ---------------------------------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 8px;
  padding: 18px 14px; border-right: 1px solid var(--glass-line-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  backdrop-filter: blur(26px) saturate(150%); z-index: 40; }
.brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 14px; }
.brand img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover;
  box-shadow: 0 8px 20px -8px #000, inset 0 1px 0 rgba(255,255,255,.25); border: 1px solid var(--glass-line); }
.brand b { display: block; color: var(--text-hi); font-size: 14.5px; letter-spacing: .01em; }
.brand span { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-300); }

.nav { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; flex: 1; margin: 0 -4px; padding: 0 4px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 13px; cursor: pointer;
  color: var(--text-mid); font-weight: 600; font-size: 13.2px; border: 1px solid transparent; transition: all .18s var(--ease); }
.nav-item svg { width: 17px; height: 17px; flex: none; opacity: .85; }
.nav-item:hover { color: var(--text-hi); background: rgba(255, 255, 255, .05); border-color: var(--glass-line-soft); }
.nav-item.active { color: var(--text-hi); border-color: rgba(212, 175, 55, .28);
  background: linear-gradient(100deg, rgba(212, 175, 55, .16), rgba(124, 92, 255, .12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 0 22px -10px rgba(212, 175, 55, .7); }
.nav-item .count { margin-left: auto; font-size: 11px; color: var(--text-dim); font-weight: 700; }
.nav-sep { margin: 10px 6px 4px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px;
  height: var(--topbar-h); padding: 0 22px; border-bottom: 1px solid var(--glass-line-soft);
  background: rgba(8, 8, 16, .62); backdrop-filter: blur(20px) saturate(150%); }
.topbar .spacer { flex: 1; }
.content { padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 18px; }

.avatar { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 13px;
  color: #1b1405; background: linear-gradient(145deg, var(--gold-200), var(--gold-400)); cursor: pointer;
  box-shadow: 0 6px 16px -6px #000, inset 0 1px 0 rgba(255, 255, 255, .5); }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stat { padding: 16px 18px; }
.stat .k { font-size: 27px; font-weight: 800; color: var(--text-hi); letter-spacing: -.03em; line-height: 1.1; }
.stat .l { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--text-dim); font-weight: 700; margin-top: 4px; }

/* ---------------------------------- table ---------------------------------- */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.tbl th { text-align: left; padding: 10px 12px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--text-dim); font-weight: 700; border-bottom: 1px solid var(--glass-line-soft); white-space: nowrap; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid rgba(255, 255, 255, .04); color: var(--text); vertical-align: middle; }
.tbl tbody tr { transition: background .16s var(--ease); }
.tbl tbody tr:hover { background: rgba(255, 255, 255, .035); }
.tbl tbody tr.sel { background: rgba(124, 92, 255, .12); }

/* --------------------------------- overlays -------------------------------- */
.scrim { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 18px;
  background: rgba(3, 3, 8, .72); backdrop-filter: blur(9px); animation: fade .2s var(--ease); }
.modal { width: min(560px, 100%); max-height: 88vh; overflow: auto; padding: 24px; border-radius: var(--radius-lg);
  animation: pop .28s var(--ease-back); }
.modal.wide { width: min(880px, 100%); }
.modal h2 { margin-bottom: 4px; }
.modal .foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
@keyframes fade { from { opacity: 0 } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97) } }

.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { padding: 12px 16px; border-radius: 14px; min-width: 230px; max-width: 380px; font-size: 13px; font-weight: 500;
  color: var(--text-hi); animation: slidein .3s var(--ease-back); display: flex; gap: 10px; align-items: flex-start; }
.toast.ok { border-color: rgba(61, 220, 151, .35); box-shadow: 0 18px 40px -20px #000, 0 0 28px -14px var(--ok); }
.toast.err { border-color: rgba(255, 90, 90, .4); box-shadow: 0 18px 40px -20px #000, 0 0 28px -14px var(--danger); }
@keyframes slidein { from { opacity: 0; transform: translateX(24px) } }

/* progress + loaders */
.bar { height: 7px; border-radius: 20px; background: #07070f; box-shadow: var(--nm-in-sm); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 20px; transition: width .4s var(--ease);
  background: linear-gradient(90deg, var(--violet-300), var(--gold-300)); box-shadow: 0 0 14px rgba(212, 175, 55, .55); }
.spin { width: 17px; height: 17px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .18);
  border-top-color: var(--gold-300); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg) } }
.skeleton { background: linear-gradient(100deg, rgba(255,255,255,.04) 30%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 70%);
  background-size: 220% 100%; animation: shimmer 1.4s infinite linear; border-radius: 10px; }
@keyframes shimmer { to { background-position: -220% 0 } }

.empty { display: grid; place-items: center; gap: 10px; padding: 54px 20px; text-align: center; color: var(--text-dim); }
.empty svg { width: 46px; height: 46px; opacity: .5; }

/* scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .1); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(212, 175, 55, .35); background-clip: content-box; }

/* --------------------------------- utilities ------------------------------- */
.f { display: flex; } .fc { display: flex; flex-direction: column; }
.ac { align-items: center; } .jc { justify-content: center; } .jb { justify-content: space-between; }
.g4p { gap: 4px } .g8 { gap: 8px } .g12 { gap: 12px } .g16 { gap: 16px }
.wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hide { display: none !important; }
.mt8 { margin-top: 8px } .mt16 { margin-top: 16px } .mb0 { margin-bottom: 0 }
.center { text-align: center; }
.pointer { cursor: pointer; }

/* ------------------------------- responsive -------------------------------- */
.burger { display: none; }
@media (max-width: 1080px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; transform: translateX(-102%); transition: transform .3s var(--ease); box-shadow: 30px 0 60px -30px #000; }
  .sidebar.open { transform: none; }
  .burger { display: inline-flex; }
  .content { padding: 16px 14px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---- icon sizing + label safety (applies to every button variant) ---- */
.btn svg, .nbtn svg, .chip svg { width: 15px; height: 15px; flex: none; }
.nbtn { white-space: nowrap; }
.nbtn:has(svg:only-child) { padding: 9px 11px; }
.btn:has(svg:only-child) { padding: 10px 13px; }
