/* ===========================================================================
   Otel Satınalma — Corporate Modern tasarım sistemi (Stitch "Nexus")
   =========================================================================== */
:root {
  --primary: #0058be;
  --primary-container: #2170e4;
  --on-primary: #ffffff;
  --primary-fixed: #d8e2ff;

  --bg: #f8f9ff;
  --surface: #ffffff;
  --surface-low: #eff4ff;
  --surface-container: #e5eeff;
  --surface-high: #dce9ff;

  --on-surface: #0b1c30;
  --on-surface-variant: #424754;
  --outline: #727785;
  --outline-variant: #dbe0ec;
  --separator: #eef2fb;

  --sidebar: #213145;
  --sidebar-hover: #2c405a;
  --sidebar-text: #c6d3e6;
  --sidebar-muted: #8497af;

  --success: #10b981;
  --success-bg: #e7f8f1;
  --success-text: #047857;
  --warning: #f59e0b;
  --warning-bg: #fef3e2;
  --warning-text: #b45309;
  --danger: #ef4444;
  --danger-bg: #fdecec;
  --danger-text: #b91c1c;
  --slate: #64748b;

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-1: 0 1px 2px rgba(11, 28, 48, 0.04);
  --shadow-2: 0 4px 16px rgba(11, 28, 48, 0.08);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Consolas', monospace;
  --sidebar-w: 260px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--on-surface);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.01em; }

/* ---- Layout -------------------------------------------------------------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--sidebar);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 20px 16px;
}
.sidebar-brand .logo {
  width: 40px; height: 40px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary-container), var(--primary));
  display: grid; place-items: center; color: #fff; flex-shrink: 0;
}
.sidebar-brand .logo svg { width: 22px; height: 22px; }
.sidebar-brand .title { font-weight: 700; color: #fff; font-size: 15px; line-height: 1.2; }
.sidebar-brand .sub { font-size: 11px; color: var(--sidebar-muted); text-transform: uppercase; letter-spacing: 0.06em; }

.nav { padding: 8px 12px; flex: 1; overflow-y: auto; }
.nav-label { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sidebar-muted); padding: 14px 12px 6px; }
.nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius);
  color: var(--sidebar-text); font-weight: 500; font-size: 13.5px;
  margin-bottom: 2px; transition: background .12s;
}
.nav a:hover { background: var(--sidebar-hover); text-decoration: none; color: #fff; }
.nav a.active { background: var(--primary); color: #fff; box-shadow: var(--shadow-1); }
.nav a svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .95; }
.sidebar-foot { padding: 12px; border-top: 1px solid rgba(255,255,255,.08); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ---- Topbar -------------------------------------------------------------- */
.topbar {
  height: 62px; background: var(--surface);
  border-bottom: 1px solid var(--outline-variant);
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px; position: sticky; top: 0; z-index: 20;
}
.topbar .search {
  flex: 1; max-width: 460px; position: relative;
}
.topbar .search input {
  width: 100%; height: 40px; border: 1px solid var(--outline-variant);
  border-radius: var(--radius); padding: 0 14px 0 40px; background: var(--surface-low);
  font-family: var(--font); font-size: 13.5px; color: var(--on-surface);
}
.topbar .search input:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(0,88,190,.12); }
.topbar .search svg { position: absolute; left: 13px; top: 11px; width: 18px; height: 18px; color: var(--outline); }
.topbar .spacer { flex: 1; }
.topbar .icon-btn { width: 38px; height: 38px; border-radius: var(--radius); border: 1px solid transparent; background: transparent; color: var(--on-surface-variant); display: grid; place-items: center; cursor: pointer; }
.topbar .icon-btn:hover { background: var(--surface-low); }
.topbar .user { display: flex; align-items: center; gap: 10px; padding-left: 14px; border-left: 1px solid var(--outline-variant); }
.topbar .user .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-container); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.topbar .user .who { line-height: 1.15; }
.topbar .user .who b { font-size: 13.5px; }
.topbar .user .who span { font-size: 11px; color: var(--on-surface-variant); text-transform: uppercase; letter-spacing: .04em; }

.content { padding: 26px 24px 60px; max-width: 1500px; width: 100%; }

/* ---- Page header --------------------------------------------------------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head .crumb { font-size: 12px; color: var(--on-surface-variant); margin-bottom: 6px; }
.page-head h1 { font-size: 30px; font-weight: 700; }
.page-head p { color: var(--on-surface-variant); margin: 6px 0 0; max-width: 640px; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- Buttons ------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: var(--radius); border: 1px solid transparent; font-family: var(--font); font-weight: 600; font-size: 13.5px; cursor: pointer; transition: all .12s; white-space: nowrap; }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #01489b; text-decoration: none; }
.btn-secondary { background: var(--surface); color: var(--on-surface); border-color: var(--outline-variant); }
.btn-secondary:hover { background: var(--surface-low); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--on-surface-variant); }
.btn-ghost:hover { background: var(--surface-low); }
.btn-danger { background: var(--danger-bg); color: var(--danger-text); }
.btn-danger:hover { background: #fbdada; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---- Cards --------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--outline-variant); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); }
.card-pad { padding: 22px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--separator); }
.card-head h3 { font-size: 15px; font-weight: 600; }
.card-head .ico { color: var(--primary); display: grid; place-items: center; }
.card-head .ico svg { width: 20px; height: 20px; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Stat tiles ---------------------------------------------------------- */
.stat { background: var(--surface); border: 1px solid var(--outline-variant); border-radius: var(--radius-lg); padding: 18px 20px; }
.stat .label { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--on-surface-variant); display: flex; justify-content: space-between; align-items: center; }
.stat .label svg { width: 18px; height: 18px; color: var(--primary); opacity: .8; }
.stat .value { font-size: 30px; font-weight: 700; margin-top: 8px; font-variant-numeric: tabular-nums; }
.stat .delta { font-size: 12.5px; margin-top: 4px; color: var(--on-surface-variant); }
.stat .delta.up { color: var(--success-text); }
.stat.dark { background: var(--sidebar); color: #fff; border: none; }
.stat.dark .label, .stat.dark .delta { color: #9fb3cc; }

/* ---- Forms --------------------------------------------------------------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--on-surface-variant); margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--outline); }
input[type=text], input[type=number], input[type=date], input[type=email], input[type=search], input[type=password], select, textarea {
  width: 100%; height: 42px; border: 1px solid var(--outline-variant); border-radius: var(--radius);
  padding: 0 12px; font-family: var(--font); font-size: 14px; color: var(--on-surface); background: #fff;
}
textarea { height: auto; padding: 10px 12px; resize: vertical; min-height: 68px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,88,190,.12); }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23424754' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }

/* ---- Tables -------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data thead th {
  text-align: left; font-size: 11px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--on-surface-variant); font-weight: 700; padding: 12px 14px;
  background: var(--surface-low); border-bottom: 2px solid var(--outline-variant);
  position: sticky; top: 0; white-space: nowrap;
}
table.data tbody td { padding: 11px 14px; border-bottom: 1px solid var(--separator); vertical-align: middle; }
table.data tbody tr:hover { background: var(--surface-low); }
table.data .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
table.data .sku { font-family: var(--mono); font-size: 12px; color: var(--on-surface-variant); }
.prod-name { font-weight: 600; }
.prod-cat { font-size: 12px; color: var(--on-surface-variant); }

/* ---- Badges -------------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .03em; padding: 4px 9px; border-radius: var(--radius-sm); text-transform: uppercase; white-space: nowrap; }
.badge.q1 { background: var(--success-bg); color: var(--success-text); }
.badge.q2 { background: var(--warning-bg); color: var(--warning-text); }
.badge.q3 { background: var(--surface-container); color: var(--slate); }
.badge.na { background: transparent; color: var(--slate); border: 1px solid var(--outline-variant); }
.badge.cat { background: var(--surface-container); color: var(--primary); }
.badge-best { background: var(--success); color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--surface-container); color: var(--on-surface-variant); }

/* ---- Matrix (comparison) ------------------------------------------------- */
.matrix td.cell { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; min-width: 118px; }
.matrix td.cell.best { background: var(--success-bg); font-weight: 700; color: var(--success-text); position: relative; }
.matrix td.cell.empty { color: var(--outline-variant); text-align: center; }
.matrix td.cell .lead { display: block; font-size: 10.5px; color: var(--outline); font-family: var(--font); }
.matrix th.sup { min-width: 118px; }
.matrix .best-tag { position: absolute; top: 3px; right: 4px; font-size: 8.5px; }
.matrix td.cell.expired .cell-price { color: var(--danger-text); text-decoration: line-through; text-decoration-color: rgba(185,28,28,.4); }
.matrix td.cell { position: relative; }
.matrix .cell-price { display: block; }
.matrix .cell-actions {
  position: absolute; bottom: 2px; right: 3px; display: flex; gap: 2px;
  opacity: 0; transition: opacity .12s;
}
.matrix td.cell:hover .cell-actions { opacity: 1; }
.matrix .cell-act {
  font-size: 9px; color: var(--outline); background: var(--surface); border: 1px solid var(--outline-variant);
  cursor: pointer; padding: 1px 4px; border-radius: 3px; line-height: 1.4;
}
.matrix .cell-act:hover { background: var(--danger-bg); color: var(--danger-text); border-color: transparent; }
.matrix .cell-note-dot { font-size: 10px; margin-left: 2px; cursor: default; }
.dot-warn { color: var(--danger); font-size: 11px; }
.dot-soon { color: var(--warning); font-size: 11px; }
.badge.status-out { background: var(--danger-bg); color: var(--danger-text); }
.row-elim { opacity: .55; }
.strike { text-decoration: line-through; }
.cat-link { flex: 1; min-width: 0; text-decoration: none; color: inherit; padding: 4px; border-radius: var(--radius); }
.cat-link:hover { text-decoration: none; }
.cat-card > .nowrap { flex-shrink: 0; display: flex; gap: 2px; }
.cat-card:hover { border-color: var(--primary); }
.cat-card:hover .prod-name { color: var(--primary); }
.link-name { color: var(--on-surface); text-decoration: none; }
.link-name:hover { color: var(--primary); text-decoration: none; }

/* ---- Aranabilir seçim kutusu -------------------------------------------- */
.ss-wrap { position: relative; }
.ss-native { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.ss-btn {
  width: 100%; height: 42px; text-align: left; background: #fff;
  border: 1px solid var(--outline-variant); border-radius: var(--radius);
  padding: 0 34px 0 12px; font-family: var(--font); font-size: 14px; color: var(--on-surface);
  cursor: pointer; position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ss-btn::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--on-surface-variant); border-bottom: 2px solid var(--on-surface-variant);
  transform: translateY(-70%) rotate(45deg);
}
.ss-btn.placeholder { color: var(--outline); }
.ss-wrap.open .ss-btn { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,88,190,.12); }
.ss-pop {
  display: none; position: absolute; z-index: 60; top: calc(100% + 4px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--outline-variant); border-radius: var(--radius);
  box-shadow: var(--shadow-2); overflow: hidden;
}
.ss-pop.open { display: block; }
.ss-search {
  width: 100%; height: 38px; border: none; border-bottom: 1px solid var(--separator);
  padding: 0 12px; font-family: var(--font); font-size: 13.5px; outline: none;
}
.ss-list { max-height: 260px; overflow-y: auto; padding: 4px; }
.ss-opt { padding: 8px 10px; border-radius: var(--radius-sm); cursor: pointer; font-size: 13.5px; }
.ss-opt.hi { background: var(--surface-low); }
.ss-opt.sel { color: var(--primary); font-weight: 600; }
.ss-empty { padding: 14px 10px; text-align: center; color: var(--outline); font-size: 13px; }

/* ---- Adım göstergesi (stepper) ------------------------------------------ */
.stepper { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.stepper .step {
  display: inline-flex; align-items: center; gap: 8px; background: var(--surface);
  border: 1px solid var(--outline-variant); border-radius: var(--radius); padding: 8px 14px;
  font-family: var(--font); font-size: 13.5px; font-weight: 600; color: var(--on-surface-variant); cursor: pointer;
}
.stepper .step:hover { background: var(--surface-low); }
.stepper .step.active { border-color: var(--primary); color: var(--primary); background: var(--surface-low); }
.stepper .step.locked { opacity: .6; cursor: not-allowed; }
.stepper .step-no {
  width: 22px; height: 22px; border-radius: 50%; background: var(--surface-container);
  display: grid; place-items: center; font-size: 12px; color: var(--on-surface-variant);
}
.stepper .step.active .step-no { background: var(--primary); color: #fff; }
.stepper .step-c { background: var(--surface-container); border-radius: 999px; padding: 1px 8px; font-size: 11px; }
.stepper .step-line { flex: 0 0 24px; height: 2px; background: var(--outline-variant); }
@media (max-width: 720px) { .stepper .step-line { flex-basis: 10px; } .stepper .step-t { display: none; } }

/* ---- Miktar hücresi ----------------------------------------------------- */
.qty-input {
  width: 90px; height: 34px; text-align: right; font-family: var(--mono);
  border: 1px solid var(--outline-variant); border-radius: var(--radius-sm); padding: 0 8px;
}
.qty-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,88,190,.12); }

/* ---- Kategori ağacı (toplu ürün seçimi) --------------------------------- */
.tree { border: 1px solid var(--outline-variant); border-radius: var(--radius); max-height: 46vh; overflow-y: auto; }
.tree-cat + .tree-cat { border-top: 1px solid var(--separator); }
.tree-cat-head { padding: 10px 12px; background: var(--surface-low); position: sticky; top: 0; }
.tree-cat-head b { font-size: 13.5px; }
.tree-items { padding: 4px 6px 8px; }
.tree-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius-sm); cursor: pointer; }
.tree-item:hover { background: var(--surface-low); }
.tree-item input { width: auto; }

/* ---- Sıralanabilir / filtrelenebilir tablo ------------------------------ */
table.data th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
table.data th.sortable:hover { color: var(--primary); }
table.data th.sortable span { color: var(--primary); font-size: 10px; }
tr.filter-row th { background: var(--surface); border-bottom: 1px solid var(--outline-variant); padding: 6px 8px; position: static; }
tr.filter-row input, tr.filter-row select { height: 30px; font-size: 12.5px; padding: 0 8px; background: var(--surface-low); }
tr.filter-row select { padding-right: 26px; }

/* ---- Upload -------------------------------------------------------------- */
.dropzone { border: 2px dashed var(--outline-variant); border-radius: var(--radius-lg); padding: 34px; text-align: center; cursor: pointer; transition: all .15s; background: var(--surface-low); }
.dropzone:hover, .dropzone.drag { border-color: var(--primary); background: var(--surface-container); }
.dropzone .icon { width: 56px; height: 56px; border-radius: var(--radius); background: var(--primary-fixed); color: var(--primary); display: grid; place-items: center; margin: 0 auto 12px; }
.dropzone .icon svg { width: 28px; height: 28px; }
.dropzone b { font-size: 15px; }
.dropzone p { color: var(--on-surface-variant); margin: 4px 0 14px; font-size: 12.5px; }

/* ---- Misc ---------------------------------------------------------------- */
.muted { color: var(--on-surface-variant); }
.text-success { color: var(--success-text); }
.text-danger { color: var(--danger-text); }
.mono { font-family: var(--mono); }
.right { text-align: right; }
.center { text-align: center; }
.flex { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.gap-sm { gap: 8px; }
.mt { margin-top: 18px; }
.mb { margin-bottom: 18px; }
.nowrap { white-space: nowrap; }
.empty-state { text-align: center; padding: 48px 20px; color: var(--on-surface-variant); }
.empty-state svg { width: 46px; height: 46px; color: var(--outline-variant); margin-bottom: 12px; }
.icon-action { background: transparent; border: none; cursor: pointer; color: var(--on-surface-variant); padding: 6px; border-radius: var(--radius-sm); display: inline-grid; place-items: center; }
.icon-action svg { width: 18px; height: 18px; }
.icon-action:hover { background: var(--surface-container); color: var(--primary); }
.icon-action.danger:hover { background: var(--danger-bg); color: var(--danger-text); }
.filters { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.filters .field { margin-bottom: 0; min-width: 170px; }
.divider { height: 1px; background: var(--separator); margin: 16px 0; }
.pill-toggle { display: inline-flex; background: var(--surface-low); border-radius: var(--radius); padding: 3px; gap: 3px; }
.pill-toggle a { padding: 6px 12px; border-radius: var(--radius-sm); font-size: 12.5px; font-weight: 600; color: var(--on-surface-variant); }
.pill-toggle a.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-1); text-decoration: none; }

/* ---- Modal --------------------------------------------------------------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(11,28,48,.45); display: grid; place-items: center; z-index: 50; padding: 20px; }
.modal { background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 540px; box-shadow: var(--shadow-2); max-height: 90vh; display: flex; flex-direction: column; }
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--separator); display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { font-size: 17px; font-weight: 600; }
.modal-body { padding: 22px; overflow-y: auto; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--separator); display: flex; justify-content: flex-end; gap: 10px; }

/* ---- Toast --------------------------------------------------------------- */
.toast { position: fixed; bottom: 22px; right: 22px; background: var(--sidebar); color: #fff; padding: 13px 18px; border-radius: var(--radius); box-shadow: var(--shadow-2); z-index: 80; font-size: 13.5px; display: flex; align-items: center; gap: 10px; }
.toast.ok { background: #0f5132; }
.toast.err { background: #842029; }

[x-cloak] { display: none !important; }

/* ---- Login ---------------------------------------------------------------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: linear-gradient(135deg, #0b1c30 0%, #213145 55%, #0058be 140%); }
.login-card { background: #fff; border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(0,0,0,.35);
  width: 100%; max-width: 400px; padding: 34px 32px; }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.login-brand .logo { width: 46px; height: 46px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary-container), var(--primary)); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.login-brand .logo svg { width: 26px; height: 26px; }
.login-brand .title { font-weight: 700; font-size: 16px; }
.login-brand .sub { font-size: 11.5px; color: var(--on-surface-variant); }
.login-card h1 { font-size: 24px; font-weight: 700; }
.login-error { background: var(--danger-bg); color: var(--danger-text); border: 1px solid #f5c2c7;
  padding: 11px 14px; border-radius: var(--radius); font-size: 13.5px; margin-bottom: 16px; }
.login-foot { font-size: 11.5px; margin-top: 20px; text-align: center; line-height: 1.5; }
.topbar .logout-btn { display: inline-flex; align-items: center; gap: 6px; }

/* Deneme/abonelik bandı */
.trial-banner { display: flex; align-items: center; gap: 12px; background: var(--warning-bg);
  border: 1px solid #f3d19b; color: var(--warning-text); padding: 10px 16px; border-radius: var(--radius);
  margin-bottom: 18px; font-size: 13.5px; }
.trial-banner svg { width: 20px; height: 20px; flex-shrink: 0; }
.trial-banner a { margin-left: auto; }

/* ---- Responsive (tablet) ------------------------------------------------- */
@media (max-width: 1024px) {
  :root { --sidebar-w: 74px; }
  .sidebar-brand .title, .sidebar-brand .sub, .nav-label, .nav a span,
  .sidebar-foot .btn span { display: none; }
  .sidebar-brand { justify-content: center; padding: 18px 0; }
  .nav a { justify-content: center; padding: 12px; }
  .sidebar-foot { padding: 12px 8px; }
  .sidebar-foot .btn { padding: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .content { padding: 18px 14px 50px; }
  .page-head h1 { font-size: 24px; }
  .topbar .search { max-width: none; }
  .topbar .user .who { display: none; }
}
