/* =============================================================================
   PONTO DESIGN SYSTEM v1.0
   The Digital Colleague for Accounting Firms
   Foundation CSS for all screens: landing, admin, portals, reports
   ============================================================================= */

/* ═══ 1. TOKENS ═══════════════════════════════════════════════════════════════ */
:root {
  /* Brand */
  --red: #D93A32;
  --red-hover: #B92D27;
  --red-soft: #FFF1EF;
  --red-glow: rgba(217, 58, 50, .15);

  /* Ink */
  --ink: #0F0F0F;
  --ink-2: #444444;
  --ink-3: #6B6F76;

  /* Surfaces */
  --surface: #FFFFFF;
  --bg: #FAFAFA;
  --bg-2: #F3F3F3;
  --bg-dark: #0F0F0F;
  --bg-dark-2: #161616;
  --bg-dark-3: #1A1A1A;

  /* Lines */
  --line: #E8E8E8;
  --line-d: #D2D2D2;
  --line-dark: #2A2A2A;

  /* Semantic */
  --green: #1A9A5C;
  --green-soft: #EEFBF3;
  --amber: #C97A1A;
  --amber-soft: #FFF8ED;
  --blue: #2563EB;
  --blue-soft: #EFF6FF;

  /* Shadows */
  --sh-xs: 0 1px 3px rgba(0,0,0,.03);
  --sh-sm: 0 2px 8px rgba(0,0,0,.04);
  --sh: 0 8px 30px rgba(0,0,0,.06);
  --sh-lg: 0 24px 60px rgba(0,0,0,.10);
  --sh-xl: 0 40px 80px rgba(0,0,0,.12);

  /* Radii */
  --rx: 6px;
  --rs: 10px;
  --r: 16px;
  --rl: 24px;

  /* Layout */
  --wrap: min(1200px, calc(100vw - 48px));
  --wrap-narrow: min(800px, calc(100vw - 48px));
  --wrap-wide: min(1400px, calc(100vw - 48px));
  --sidebar: 240px;

  /* Motion */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-out: cubic-bezier(.33, 1, .68, 1);
  --dur-fast: 150ms;
  --dur: 200ms;
  --dur-slow: 400ms;
  --dur-reveal: 700ms;
}

/* ═══ 2. RESET ════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body.ponto {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; }
img { max-width: 100%; display: block; }
svg { display: block; }
h1, h2, h3, h4, h5, h6 { margin: 0; text-transform: none; line-height: 1.08; font-weight: 800; }
ul, ol { list-style: none; }
input, select, textarea { font: inherit; }

/* ═══ 3. LAYOUT ═══════════════════════════════════════════════════════════════ */
.w { width: var(--wrap); margin-inline: auto; }
.w--narrow { width: var(--wrap-narrow); }
.w--wide { width: var(--wrap-wide); }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ═══ 4. TYPOGRAPHY ═══════════════════════════════════════════════════════════ */
.t-hero { font-size: clamp(38px, 5vw, 64px); font-weight: 900; letter-spacing: -.045em; line-height: 1.04; }
.t-h1 { font-size: clamp(32px, 4.5vw, 52px); font-weight: 880; letter-spacing: -.04em; }
.t-h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -.03em; }
.t-h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.t-h4 { font-size: 16px; font-weight: 700; }
.t-body { font-size: 16px; line-height: 1.6; }
.t-small { font-size: 13px; line-height: 1.5; }
.t-tiny { font-size: 11px; line-height: 1.4; }
.t-muted { color: var(--ink-3); }
.t-red { color: var(--red); }
.t-green { color: var(--green); }
.t-amber { color: var(--amber); }

/* ═══ 5. SCROLL REVEAL ════════════════════════════════════════════════════════ */
.rv { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease); }
.rv.vis { opacity: 1; transform: translateY(0); }
.rv--d1 { transition-delay: .12s; }
.rv--d2 { transition-delay: .24s; }
.rv--d3 { transition-delay: .36s; }

/* ═══ 6. PILL / LABEL ═════════════════════════════════════════════════════════ */
.pill {
  font-size: 11px; font-weight: 800; letter-spacing: .15em;
  text-transform: uppercase; color: var(--red);
  display: inline-flex; align-items: center; gap: 7px;
  margin-bottom: 14px;
}
.pill svg { width: 14px; height: 14px; }
.pill--light { color: #FF7B73; }
.pill--green { color: var(--green); }
.pill--center { justify-content: center; display: flex; }

/* ═══ 7. BUTTONS ══════════════════════════════════════════════════════════════ */
.ponto .btn,
.btn {
  height: auto; min-height: 48px; padding: 0 22px;
  border-radius: var(--rs); border: 1.5px solid transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background var(--dur), border-color var(--dur), transform var(--dur-fast);
  white-space: nowrap; text-decoration: none;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 16px; height: 16px; }

.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-hover); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #333; }

.btn--outline { background: var(--surface); color: var(--ink); border-color: var(--line-d); }
.btn--outline:hover { border-color: var(--ink); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--bg-2); }

.btn--sm { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: var(--rx); }
.btn--lg { min-height: 56px; padding: 0 32px; font-size: 17px; }

.btn--icon { min-height: 36px; width: 36px; padding: 0; border-radius: var(--rx); }
.btn--icon svg { width: 18px; height: 18px; }

/* ═══ 8. CARDS ════════════════════════════════════════════════════════════════ */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 24px;
}
.card--flat { box-shadow: none; }
.card--lifted { box-shadow: var(--sh); }
.card--dark { background: var(--bg-dark-2); border-color: var(--line-dark); color: #fff; }

/* Metric Card */
.metric-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 20px 24px;
}
.metric-card__value { font-size: 32px; font-weight: 900; letter-spacing: -.03em; }
.metric-card__label { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.metric-card--accent { border-top: 3px solid var(--red); }
.metric-card--green { border-top: 3px solid var(--green); }
.metric-card--amber { border-top: 3px solid var(--amber); }

/* Feature Card */
.feature-card {
  padding: 28px 24px; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--surface);
}
.feature-card svg { width: 24px; height: 24px; color: var(--red); margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--ink-3); line-height: 1.6; }
.feature-card--dark { background: var(--bg-dark-2); border-color: var(--line-dark); color: #fff; }
.feature-card--dark p { color: #888; }

/* ═══ 9. TABLES ═══════════════════════════════════════════════════════════════ */
.table-wrap {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
}

.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th {
  text-align: left; padding: 12px 16px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-3);
  border-bottom: 1px solid var(--line); background: var(--bg);
}
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: var(--bg); }
.tbl__name { font-weight: 700; }
.tbl__meta { font-size: 12px; color: var(--ink-3); }

/* ═══ 10. TIMELINE ════════════════════════════════════════════════════════════ */
.timeline { position: relative; }
.timeline__line {
  position: absolute; left: 7px; top: 0; bottom: 0;
  width: 1px; background: var(--line);
}
.timeline--dark .timeline__line { background: linear-gradient(180deg, var(--red), #333); }

.tl-item {
  position: relative; padding: 0 0 24px 32px;
  font-size: 14px;
}
.tl-item__dot {
  position: absolute; left: 2px; top: 5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--line-d); border: 2px solid var(--surface);
}
.tl-item--active .tl-item__dot { background: var(--red); }
.tl-item--ok .tl-item__dot { background: var(--green); }
.tl-item--warn .tl-item__dot { background: var(--amber); }

.tl-item__time { font-size: 11px; font-weight: 700; color: var(--ink-3); }
.tl-item__text { margin-top: 2px; }
.tl-item__text strong { font-weight: 700; }

/* Dark timeline (overnight, landing) */
.tl-dark { padding-left: 56px; }
.tl-dark .tl-d-item { position: relative; padding-bottom: 44px; }
.tl-dark .tl-d-dot {
  position: absolute; left: -40px; top: 2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 5px var(--bg-dark), 0 0 0 6px #333;
}
.tl-dark .tl-d-time { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--red); margin-bottom: 4px; }
.tl-dark .tl-d-body svg { width: 18px; height: 18px; color: var(--red); margin-bottom: 6px; }
.tl-dark .tl-d-body h3 { font-size: 18px; margin-bottom: 4px; }
.tl-dark .tl-d-body p { font-size: 14px; color: #888; line-height: 1.6; }

/* Staggered reveal for timeline items */
.tli { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.tli.vis { opacity: 1; transform: translateY(0); }

/* ═══ 11. PROGRESS / CHARTS ═══════════════════════════════════════════════════ */
/* Horizontal bar */
.bar { height: 8px; background: var(--bg-2); border-radius: 4px; overflow: hidden; }
.bar__fill { height: 100%; border-radius: 4px; transition: width .6s var(--ease); }
.bar__fill--red { background: var(--red); }
.bar__fill--green { background: var(--green); }
.bar__fill--amber { background: var(--amber); }
.bar__fill--blue { background: var(--blue); }

/* Thin progress */
.progress { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.progress__bar { height: 100%; background: var(--red); border-radius: 4px; transition: width .4s var(--ease); }

/* Donut / Score ring */
.donut {
  width: 140px; height: 140px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
}
.donut::after {
  content: ""; position: absolute; inset: 12px;
  border-radius: 50%; background: var(--surface);
}
.donut__value { position: relative; z-index: 1; font-size: 36px; font-weight: 900; }
.donut--sm { width: 80px; height: 80px; }
.donut--sm::after { inset: 8px; }
.donut--sm .donut__value { font-size: 20px; }

/* Dimension row (report) */
.dim-row {
  display: grid; grid-template-columns: 160px 1fr 48px;
  gap: 12px; align-items: center; padding: 10px 0;
  font-size: 14px;
}
.dim-row__label { font-weight: 700; }
.dim-row__value { font-weight: 800; text-align: right; }

/* ═══ 12. TAGS & BADGES ══════════════════════════════════════════════════════ */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 800; padding: 4px 10px;
  border-radius: var(--rx); white-space: nowrap;
}
.tag--red { background: var(--red-soft); color: var(--red-hover); }
.tag--green { background: var(--green-soft); color: var(--green); }
.tag--amber { background: var(--amber-soft); color: var(--amber); }
.tag--blue { background: var(--blue-soft); color: var(--blue); }
.tag--neutral { background: var(--bg-2); color: var(--ink-3); }

.badge {
  font-size: 10px; font-weight: 800; padding: 4px 10px;
  border-radius: var(--rx); background: var(--red-soft); color: var(--red-hover);
}

/* Status dot */
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.dot--green { background: var(--green); }
.dot--amber { background: var(--amber); }
.dot--red { background: var(--red); }
.dot--gray { background: var(--line-d); }

/* Lead score badge */
.score-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 24px; border-radius: 12px;
  font-size: 12px; font-weight: 800; padding: 0 8px;
}
.score-badge--hot { background: var(--red); color: #fff; }
.score-badge--warm { background: var(--amber); color: #fff; }
.score-badge--cold { background: var(--bg-2); color: var(--ink-3); }

/* ═══ 13. FORMS ═══════════════════════════════════════════════════════════════ */
.field { margin-bottom: 20px; }
.field__label {
  display: block; font-size: 13px; font-weight: 700;
  margin-bottom: 6px; color: var(--ink);
}
.field__req { color: var(--red); }

.input {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: var(--rs);
  background: var(--surface); color: var(--ink);
  font-size: 15px; transition: border-color var(--dur);
}
.input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-glow); }
.input--error { border-color: var(--red); }

.textarea {
  width: 100%; padding: 12px 14px; min-height: 100px; resize: vertical;
  border: 1.5px solid var(--line); border-radius: var(--rs);
  background: var(--surface); color: var(--ink); font-size: 15px;
  transition: border-color var(--dur);
}
.textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-glow); }

.select {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: var(--rs);
  background: var(--surface); color: var(--ink); font-size: 15px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='https://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B6F76' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

/* Survey option cards */
.opt-card {
  padding: 16px 18px; border: 1.5px solid var(--line);
  background: var(--surface); border-radius: var(--rs);
  font-weight: 700; font-size: 15px; color: var(--ink);
  cursor: pointer; transition: border-color var(--dur), background var(--dur);
  text-align: left; display: block; width: 100%;
}
.opt-card:hover { border-color: var(--red); }
.opt-card.sel { border-color: var(--red); background: var(--red-soft); }

/* Checkbox / Radio */
.check-label {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; cursor: pointer; padding: 8px 0;
}
.check-label input { margin-top: 3px; accent-color: var(--red); }

/* ═══ 14. DESKTOP MONITOR MOCKUP ═════════════════════════════════════════════ */
.monitor { position: relative; }
.monitor__bezel {
  background: var(--bg-dark-3); border-radius: 12px 12px 0 0;
  padding: 10px 14px; display: flex; align-items: center; gap: 12px;
}
.monitor__dots { display: flex; gap: 6px; }
.monitor__dots i { width: 8px; height: 8px; border-radius: 50%; background: #3a3a3a; display: block; }
.monitor__title { font-size: 11px; color: #888; font-weight: 600; }

.monitor__screen {
  background: var(--surface); border: 2px solid var(--bg-dark-3);
  border-top: 0; overflow: hidden;
}

.monitor__stand {
  width: 70px; height: 36px; margin: 0 auto;
  background: linear-gradient(180deg, #2a2a2a, var(--bg-dark-3));
  clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%);
}
.monitor__base {
  width: 150px; height: 7px; margin: 0 auto;
  background: #2a2a2a; border-radius: 0 0 4px 4px;
}

/* ═══ 15. DIALOGS / MODALS ═══════════════════════════════════════════════════ */
.overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, .5); backdrop-filter: blur(4px);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: opacity var(--dur-slow);
}
.overlay.active { opacity: 1; pointer-events: auto; }

.dialog {
  background: var(--surface); border-radius: var(--r);
  padding: 32px; max-width: 520px; width: calc(100vw - 48px);
  box-shadow: var(--sh-xl);
}
.dialog__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.dialog__title { font-size: 20px; font-weight: 800; }
.dialog__close { width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--rx); color: var(--ink-3); }
.dialog__close:hover { background: var(--bg-2); color: var(--ink); }
.dialog__close svg { width: 18px; height: 18px; }
.dialog__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

/* ═══ 16. EMPTY STATES ════════════════════════════════════════════════════════ */
.empty {
  text-align: center; padding: 64px 24px;
  color: var(--ink-3);
}
.empty svg { width: 48px; height: 48px; margin: 0 auto 16px; color: var(--line-d); }
.empty__title { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.empty__desc { font-size: 14px; max-width: 360px; margin: 0 auto 20px; }

/* ═══ 17. TOAST / NOTIFICATION ════════════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 300;
  background: var(--ink); color: #fff; padding: 14px 20px;
  border-radius: var(--rs); font-size: 14px; font-weight: 600;
  box-shadow: var(--sh-lg); display: flex; align-items: center; gap: 10px;
  transform: translateY(120%); transition: transform var(--dur-slow) var(--ease);
}
.toast.show { transform: translateY(0); }
.toast svg { width: 18px; height: 18px; flex-shrink: 0; }
.toast--ok { background: var(--green); }
.toast--error { background: var(--red); }

/* ═══ 18. TABS ════════════════════════════════════════════════════════════════ */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tab {
  padding: 12px 20px; font-size: 14px; font-weight: 600;
  color: var(--ink-3); border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: color var(--dur), border-color var(--dur);
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-color: var(--red); }

/* ═══ 19. ADMIN SIDEBAR ══════════════════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar); background: var(--ink);
  color: #fff; min-height: 100vh; padding: 20px 0;
  position: fixed; left: 0; top: 0;
}
.sidebar__logo {
  display: flex; align-items: center; gap: 10px;
  padding: 0 20px 24px; font-weight: 850; font-size: 15px;
}
.sidebar__logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--red); display: grid; place-items: center;
}
.sidebar__logo-mark svg { width: 16px; height: 16px; }

.sidebar__nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar__link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; font-size: 14px; font-weight: 600;
  color: #999; transition: color var(--dur), background var(--dur);
  border-radius: 0;
}
.sidebar__link:hover { color: #fff; background: rgba(255,255,255,.05); }
.sidebar__link.active { color: #fff; background: rgba(255,255,255,.08); }
.sidebar__link svg { width: 18px; height: 18px; }
.sidebar__link .sidebar__badge {
  margin-left: auto; font-size: 11px; font-weight: 800;
  background: var(--red); color: #fff; padding: 2px 7px;
  border-radius: 10px;
}

.sidebar__section {
  padding: 20px 20px 8px; font-size: 10px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: #555;
}

/* Admin main content area */
.admin-main { margin-left: var(--sidebar); padding: 24px 32px; min-height: 100vh; }
.admin-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.admin-header h1 { font-size: 24px; }

/* ═══ 20. PONTO MORNING BRIEFING UI ══════════════════════════════════════════ */
.mb { padding: 22px; }
.mb__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.mb__time { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-3); font-weight: 700; }
.mb__time svg { width: 14px; height: 14px; color: var(--amber); }
.mb__greeting strong { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.mb__greeting small { font-size: 12px; color: var(--ink-3); }

.mb__rows { border: 1px solid var(--line); border-radius: var(--rx); overflow: hidden; }
.mb__row { display: flex; align-items: center; gap: 10px; padding: 9px 13px; border-bottom: 1px solid var(--line); font-size: 13px; }
.mb__row:last-child { border-bottom: 0; }
.mb__row svg { width: 17px; height: 17px; flex-shrink: 0; }
.mb__row b { font-size: 17px; min-width: 26px; }
.mb__row span { color: var(--ink-3); }
.mb__row--ok svg { color: var(--green); }
.mb__row--warn svg { color: var(--amber); }
.mb__row--act svg { color: var(--red); }

/* ═══ 21. COUNTER ANIMATION ══════════════════════════════════════════════════ */
.ctr { font-variant-numeric: tabular-nums; }

/* ═══ 22. FILTER BAR ═════════════════════════════════════════════════════════ */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-btn {
  padding: 7px 16px; font-size: 13px; font-weight: 700;
  border: 1px solid var(--line); border-radius: 20px;
  background: var(--surface); color: var(--ink-3);
  transition: border-color var(--dur), color var(--dur), background var(--dur);
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ═══ 23. SEARCH ═════════════════════════════════════════════════════════════ */
.search-box {
  position: relative; width: 100%; max-width: 320px;
}
.search-box__icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--ink-3);
}
.search-box .input { padding-left: 40px; }

/* ═══ 24. GRID HELPERS ═══════════════════════════════════════════════════════ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ═══ 25. RESPONSIVE FOUNDATIONS ═════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --wrap: min(100% - 32px, 1200px); }
  .sidebar { display: none; }
  .admin-main { margin-left: 0; padding: 16px; }
}

@media (max-width: 430px) {
  :root { --wrap: min(100% - 24px, 1200px); }
}

@media (max-width: 320px) {
  :root { --wrap: min(100% - 16px, 1200px); }
}
