/* ==========================================================================
   MorSuccess — Material 3 design system (seed: brand blue)
   Light + dark schemes, M3 type scale, shapes, state layers and components.
   Dark mode: follows the device, overridable with <html data-theme="light|dark">.
   ========================================================================== */

:root {
  color-scheme: light;
  /* ── Primary (brand blue) ── */
  --md-sys-color-primary: #2b59c3;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #dce1ff;
  --md-sys-color-on-primary-container: #00174b;
  /* ── Secondary (teal accent) ── */
  --md-sys-color-secondary: #006a6a;
  --md-sys-color-on-secondary: #ffffff;
  --md-sys-color-secondary-container: #9cf1f0;
  --md-sys-color-on-secondary-container: #002020;
  /* ── Tertiary (pink accent) ── */
  --md-sys-color-tertiary: #984061;
  --md-sys-color-on-tertiary: #ffffff;
  --md-sys-color-tertiary-container: #ffd9e2;
  --md-sys-color-on-tertiary-container: #3e001d;
  /* ── Extended: success / warning ── */
  --md-ext-color-success: #1b6d2f;
  --md-ext-color-on-success: #ffffff;
  --md-ext-color-success-container: #a3f5a8;
  --md-ext-color-on-success-container: #002107;
  --md-ext-color-warning: #7c5800;
  --md-ext-color-on-warning: #ffffff;
  --md-ext-color-warning-container: #ffdea6;
  --md-ext-color-on-warning-container: #271900;
  /* ── Error ── */
  --md-sys-color-error: #ba1a1a;
  --md-sys-color-on-error: #ffffff;
  --md-sys-color-error-container: #ffdad6;
  --md-sys-color-on-error-container: #410002;
  /* ── Surfaces ── */
  --md-sys-color-background: #faf8ff;
  --md-sys-color-on-background: #1a1b21;
  --md-sys-color-surface: #faf8ff;
  --md-sys-color-surface-dim: #dad9e0;
  --md-sys-color-surface-bright: #faf8ff;
  --md-sys-color-surface-container-lowest: #ffffff;
  --md-sys-color-surface-container-low: #f4f3fa;
  --md-sys-color-surface-container: #eeedf4;
  --md-sys-color-surface-container-high: #e8e7ef;
  --md-sys-color-surface-container-highest: #e3e2e9;
  --md-sys-color-on-surface: #1a1b21;
  --md-sys-color-on-surface-variant: #44464f;
  --md-sys-color-outline: #757780;
  --md-sys-color-outline-variant: #c5c6d0;
  --md-sys-color-inverse-surface: #2f3036;
  --md-sys-color-inverse-on-surface: #f1f0f7;
  --md-sys-color-inverse-primary: #b4c5ff;
  --md-sys-color-scrim: #000000;
  --md-sys-color-shadow: #000000;
  /* ── Brand gradient (hero / banners) ── */
  --m3-hero-gradient: linear-gradient(135deg, #2b59c3 0%, #5a3ec8 55%, #984061 100%);
  --m3-accent-gradient: linear-gradient(135deg, #2b59c3, #006a6a);

  /* ── Solid fills that keep white text readable in BOTH themes (used by migrated templates) ── */
  --m3-fill-primary: #2b59c3;
  --m3-fill-primary-strong: #1d3f99;
  --m3-fill-secondary: #00706f;
  --m3-fill-tertiary: #984061;
  --m3-fill-violet: #5a3ec8;
  --m3-fill-success: #1b7a33;
  --m3-fill-error: #c62828;
  --m3-fill-warning: #c77700;
  --m3-fill-ink: #1f2a44;
  /* ── Extended accent: violet ── */
  --md-ext-color-violet: #5a3ec8;
  --md-ext-color-violet-container: #e7deff;
  --md-ext-color-on-violet-container: #1d0061;
}

/* Dark scheme: device preference unless the visitor forced light */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --m3-dark: 1; }
}
:root[data-theme="dark"] { --m3-dark: 1; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --md-sys-color-primary: #b4c5ff;
    --md-sys-color-on-primary: #002a78;
    --md-sys-color-primary-container: #0f3fa8;
    --md-sys-color-on-primary-container: #dce1ff;
    --md-sys-color-secondary: #80d5d4;
    --md-sys-color-on-secondary: #003737;
    --md-sys-color-secondary-container: #004f4f;
    --md-sys-color-on-secondary-container: #9cf1f0;
    --md-sys-color-tertiary: #ffb0c8;
    --md-sys-color-on-tertiary: #5e1133;
    --md-sys-color-tertiary-container: #7b2949;
    --md-sys-color-on-tertiary-container: #ffd9e2;
    --md-ext-color-success: #88d98e;
    --md-ext-color-on-success: #003911;
    --md-ext-color-success-container: #00531d;
    --md-ext-color-on-success-container: #a3f5a8;
    --md-ext-color-warning: #f7bd48;
    --md-ext-color-on-warning: #412d00;
    --md-ext-color-warning-container: #5e4200;
    --md-ext-color-on-warning-container: #ffdea6;
    --md-sys-color-error: #ffb4ab;
    --md-sys-color-on-error: #690005;
    --md-sys-color-error-container: #93000a;
    --md-sys-color-on-error-container: #ffdad6;
    --md-sys-color-background: #121318;
    --md-sys-color-on-background: #e3e2e9;
    --md-sys-color-surface: #121318;
    --md-sys-color-surface-dim: #121318;
    --md-sys-color-surface-bright: #38393f;
    --md-sys-color-surface-container-lowest: #0d0e13;
    --md-sys-color-surface-container-low: #1a1b21;
    --md-sys-color-surface-container: #1e1f25;
    --md-sys-color-surface-container-high: #292a2f;
    --md-sys-color-surface-container-highest: #34343a;
    --md-sys-color-on-surface: #e3e2e9;
    --md-sys-color-on-surface-variant: #c5c6d0;
    --md-sys-color-outline: #8f909a;
    --md-sys-color-outline-variant: #44464f;
    --md-sys-color-inverse-surface: #e3e2e9;
    --md-sys-color-inverse-on-surface: #2f3036;
    --md-sys-color-inverse-primary: #2b59c3;
    --m3-hero-gradient: linear-gradient(135deg, #0f3fa8 0%, #3a2a8f 55%, #7b2949 100%);
    --m3-accent-gradient: linear-gradient(135deg, #0f3fa8, #004f4f);

    --m3-fill-primary: #3a64d8;
    --m3-fill-primary-strong: #2b4fb3;
    --m3-fill-secondary: #007a79;
    --m3-fill-tertiary: #a84a6f;
    --m3-fill-violet: #6b52d6;
    --m3-fill-success: #1f7a35;
    --m3-fill-error: #c62828;
    --m3-fill-warning: #b86e00;
  --m3-fill-ink: #2a3348;
    --m3-fill-ink: #2a3348;
    --md-ext-color-violet: #cbbeff;
    --md-ext-color-violet-container: #44309c;
    --md-ext-color-on-violet-container: #e7deff;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --md-sys-color-primary: #b4c5ff;
  --md-sys-color-on-primary: #002a78;
  --md-sys-color-primary-container: #0f3fa8;
  --md-sys-color-on-primary-container: #dce1ff;
  --md-sys-color-secondary: #80d5d4;
  --md-sys-color-on-secondary: #003737;
  --md-sys-color-secondary-container: #004f4f;
  --md-sys-color-on-secondary-container: #9cf1f0;
  --md-sys-color-tertiary: #ffb0c8;
  --md-sys-color-on-tertiary: #5e1133;
  --md-sys-color-tertiary-container: #7b2949;
  --md-sys-color-on-tertiary-container: #ffd9e2;
  --md-ext-color-success: #88d98e;
  --md-ext-color-on-success: #003911;
  --md-ext-color-success-container: #00531d;
  --md-ext-color-on-success-container: #a3f5a8;
  --md-ext-color-warning: #f7bd48;
  --md-ext-color-on-warning: #412d00;
  --md-ext-color-warning-container: #5e4200;
  --md-ext-color-on-warning-container: #ffdea6;
  --md-sys-color-error: #ffb4ab;
  --md-sys-color-on-error: #690005;
  --md-sys-color-error-container: #93000a;
  --md-sys-color-on-error-container: #ffdad6;
  --md-sys-color-background: #121318;
  --md-sys-color-on-background: #e3e2e9;
  --md-sys-color-surface: #121318;
  --md-sys-color-surface-dim: #121318;
  --md-sys-color-surface-bright: #38393f;
  --md-sys-color-surface-container-lowest: #0d0e13;
  --md-sys-color-surface-container-low: #1a1b21;
  --md-sys-color-surface-container: #1e1f25;
  --md-sys-color-surface-container-high: #292a2f;
  --md-sys-color-surface-container-highest: #34343a;
  --md-sys-color-on-surface: #e3e2e9;
  --md-sys-color-on-surface-variant: #c5c6d0;
  --md-sys-color-outline: #8f909a;
  --md-sys-color-outline-variant: #44464f;
  --md-sys-color-inverse-surface: #e3e2e9;
  --md-sys-color-inverse-on-surface: #2f3036;
  --md-sys-color-inverse-primary: #2b59c3;
  --m3-hero-gradient: linear-gradient(135deg, #0f3fa8 0%, #3a2a8f 55%, #7b2949 100%);
  --m3-accent-gradient: linear-gradient(135deg, #0f3fa8, #004f4f);

  --m3-fill-primary: #3a64d8;
  --m3-fill-primary-strong: #2b4fb3;
  --m3-fill-secondary: #007a79;
  --m3-fill-tertiary: #a84a6f;
  --m3-fill-violet: #6b52d6;
  --m3-fill-success: #1f7a35;
  --m3-fill-error: #c62828;
  --m3-fill-warning: #b86e00;
  --md-ext-color-violet: #cbbeff;
  --md-ext-color-violet-container: #44309c;
  --md-ext-color-on-violet-container: #e7deff;
}

/* ── Shape, type, elevation, motion tokens ── */
:root {
  --md-sys-shape-xs: 4px;
  --md-sys-shape-sm: 8px;
  --md-sys-shape-md: 12px;
  --md-sys-shape-lg: 16px;
  --md-sys-shape-xl: 28px;
  --md-sys-shape-full: 999px;
  --md-font-brand: "Roboto Flex", "Roboto", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --md-font-plain: "Roboto", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --md-elev-1: 0 1px 2px rgba(0,0,0,.30), 0 1px 3px 1px rgba(0,0,0,.15);
  --md-elev-2: 0 1px 2px rgba(0,0,0,.30), 0 2px 6px 2px rgba(0,0,0,.15);
  --md-elev-3: 0 1px 3px rgba(0,0,0,.30), 0 4px 8px 3px rgba(0,0,0,.15);
  --md-motion: cubic-bezier(.2,0,0,1);

  /* Legacy aliases — older templates use these names; they now follow the M3 scheme */
  --navy: var(--md-sys-color-on-primary-container);
  --blue: var(--md-sys-color-primary);
  --blue-mid: var(--md-sys-color-primary);
  --gold: var(--md-ext-color-warning);
  --gold-dark: var(--md-sys-color-tertiary);
  --text: var(--md-sys-color-on-surface);
  --muted: var(--md-sys-color-on-surface-variant);
  --border: var(--md-sys-color-outline-variant);
  --bg-alt: var(--md-sys-color-surface-container-low);
  --radius: var(--md-sys-shape-lg);
  --shadow: var(--md-elev-1);
}

/* ── Base ── */
html { -webkit-text-size-adjust: 100%; }
body.m3 {
  font-family: var(--md-font-plain);
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  -webkit-font-smoothing: antialiased;
}
body.m3 h1, body.m3 h2, body.m3 h3, body.m3 h4, .m3-display, .m3-headline, .m3-title { font-family: var(--md-font-brand); letter-spacing: 0; }
.m3-display  { font-size: clamp(36px, 6vw, 57px); line-height: 1.12; font-weight: 500; }
.m3-headline { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.25; font-weight: 500; }
.m3-title    { font-size: 22px; line-height: 1.27; font-weight: 500; }
.m3-label    { font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: .1px; }
.m3-body     { font-size: 16px; line-height: 24px; }
.m3-muted    { color: var(--md-sys-color-on-surface-variant); }
::selection  { background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); }
:focus-visible { outline: 3px solid var(--md-sys-color-primary); outline-offset: 2px; }

/* ── Buttons (filled / tonal / outlined / text / elevated) ── */
.m3-btn {
  --_bg: var(--md-sys-color-primary); --_fg: var(--md-sys-color-on-primary);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 24px; border-radius: var(--md-sys-shape-full); border: none;
  background: var(--_bg); color: var(--_fg); font: 500 14px/20px var(--md-font-plain); letter-spacing: .1px;
  cursor: pointer; text-decoration: none; overflow: hidden; white-space: nowrap;
  transition: box-shadow .2s var(--md-motion), background-color .2s var(--md-motion);
}
.m3-btn::after { content: ""; position: absolute; inset: 0; background: currentColor; opacity: 0; transition: opacity .15s; pointer-events: none; }
.m3-btn:hover::after { opacity: .08; } .m3-btn:active::after { opacity: .12; }
.m3-btn:hover { box-shadow: var(--md-elev-1); }
.m3-btn--lg { height: 52px; padding: 0 28px; font-size: 16px; }
.m3-btn--tonal    { --_bg: var(--md-sys-color-secondary-container); --_fg: var(--md-sys-color-on-secondary-container); }
.m3-btn--tertiary { --_bg: var(--md-sys-color-tertiary-container); --_fg: var(--md-sys-color-on-tertiary-container); }
.m3-btn--outlined { --_bg: transparent; --_fg: var(--md-sys-color-primary); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline); }
.m3-btn--outlined:hover { box-shadow: inset 0 0 0 1px var(--md-sys-color-outline); }
.m3-btn--text     { --_bg: transparent; --_fg: var(--md-sys-color-primary); padding: 0 12px; }
.m3-btn--text:hover { box-shadow: none; }
.m3-btn--elevated { --_bg: var(--md-sys-color-surface-container-low); --_fg: var(--md-sys-color-primary); box-shadow: var(--md-elev-1); }
.m3-btn--block { width: 100%; }
.m3-icon-btn { width: 40px; height: 40px; padding: 0; border-radius: 50%; --_bg: transparent; --_fg: var(--md-sys-color-on-surface-variant); }

/* ── Cards ── */
.m3-card { border-radius: var(--md-sys-shape-md); padding: 16px; background: var(--md-sys-color-surface-container-low); color: var(--md-sys-color-on-surface); box-shadow: var(--md-elev-1); }
.m3-card--filled   { background: var(--md-sys-color-surface-container-highest); box-shadow: none; }
.m3-card--outlined { background: var(--md-sys-color-surface); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant); }
.m3-card--hover { transition: box-shadow .2s var(--md-motion), transform .2s var(--md-motion); }
.m3-card--hover:hover { box-shadow: var(--md-elev-2); transform: translateY(-2px); }

/* ── Chips ── */
.m3-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--md-sys-shape-sm);
  font: 500 13px/18px var(--md-font-plain); color: var(--md-sys-color-on-surface-variant);
  box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant); background: transparent; white-space: nowrap; text-decoration: none; }
.m3-chip--primary   { background: var(--md-sys-color-primary-container);   color: var(--md-sys-color-on-primary-container);   box-shadow: none; }
.m3-chip--secondary { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); box-shadow: none; }
.m3-chip--tertiary  { background: var(--md-sys-color-tertiary-container);  color: var(--md-sys-color-on-tertiary-container);  box-shadow: none; }
.m3-chip--success   { background: var(--md-ext-color-success-container);   color: var(--md-ext-color-on-success-container);   box-shadow: none; }
.m3-chip--warning   { background: var(--md-ext-color-warning-container);   color: var(--md-ext-color-on-warning-container);   box-shadow: none; }
.m3-chip--error     { background: var(--md-sys-color-error-container);     color: var(--md-sys-color-on-error-container);     box-shadow: none; }

/* ── Text fields (outlined) ── */
.m3-field { position: relative; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 16px;
  border-radius: var(--md-sys-shape-xs); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline); background: transparent; color: var(--md-sys-color-on-surface); }
.m3-field:focus-within { box-shadow: inset 0 0 0 2px var(--md-sys-color-primary); }
.m3-field i { color: var(--md-sys-color-on-surface-variant); }
.m3-field input, .m3-field select { flex: 1; min-width: 0; border: none; outline: none; background: transparent; color: inherit; font: 16px/24px var(--md-font-plain); padding: 14px 0; }
.m3-select { height: 40px; padding: 0 36px 0 14px; border-radius: var(--md-sys-shape-sm); border: 1px solid var(--md-sys-color-outline-variant);
  background: var(--md-sys-color-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%2344464f' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--md-sys-color-on-surface); font: 500 13px var(--md-font-plain); appearance: none; -webkit-appearance: none; }

/* ── Top app bar ── */
.m3-topbar { position: sticky; top: 0; z-index: 50; background: var(--md-sys-color-surface); color: var(--md-sys-color-on-surface);
  transition: background-color .2s var(--md-motion), box-shadow .2s var(--md-motion); }
.m3-topbar.is-scrolled { background: var(--md-sys-color-surface-container); box-shadow: var(--md-elev-1); }

/* ── Navigation drawer item (portals) ── */
.m3-nav-item { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 24px 0 16px; border-radius: var(--md-sys-shape-full);
  color: var(--md-sys-color-on-surface-variant); font: 500 14px var(--md-font-plain); text-decoration: none; position: relative; }
.m3-nav-item:hover { background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent); }
.m3-nav-item.active { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); font-weight: 700; }

/* ── Snackbar-style flash ── */
.m3-snack { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--md-sys-shape-sm);
  background: var(--md-sys-color-inverse-surface); color: var(--md-sys-color-inverse-on-surface); box-shadow: var(--md-elev-3); font-size: 14px; }

/* ── Theme toggle ── */
.m3-theme-toggle .fa-sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .m3-theme-toggle .fa-sun { display: inline; } :root:not([data-theme="light"]) .m3-theme-toggle .fa-moon { display: none; } }
:root[data-theme="dark"] .m3-theme-toggle .fa-sun { display: inline; }
:root[data-theme="dark"] .m3-theme-toggle .fa-moon { display: none; }

/* ── Free vs Premium (plan tiers) ── */
.pro-chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: var(--md-sys-shape-full); font: 700 10px/18px var(--md-font-plain);
  letter-spacing: .4px; text-transform: uppercase; background: var(--md-ext-color-warning-container); color: var(--md-ext-color-on-warning-container); vertical-align: middle; white-space: nowrap; }
.pro-chip.is-on { background: var(--m3-fill-warning); color: #fff; }
.nav-link .pro-chip { margin-left: auto; }
.pro-chip i, .nav-link .pro-chip i { font-size: 9px !important; width: auto !important; min-width: 0 !important; margin: 0 !important; color: inherit !important; }
.quota-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--md-sys-shape-lg); margin: 0 0 18px;
  background: var(--md-sys-color-surface-container-low); border: 1px solid var(--md-sys-color-outline-variant); color: var(--md-sys-color-on-surface); font-size: 14px; }
.quota-bar.is-premium { background: var(--md-ext-color-warning-container); border-color: transparent; color: var(--md-ext-color-on-warning-container); }
.quota-bar.is-empty { background: var(--md-sys-color-error-container); border-color: transparent; color: var(--md-sys-color-on-error-container); }
.quota-bar .qb-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--m3-fill-primary); color: #fff; }
.quota-bar.is-premium .qb-icon { background: var(--m3-fill-warning); }
.quota-bar.is-empty .qb-icon { background: var(--m3-fill-error); }
.quota-bar .qb-text { flex: 1; min-width: 180px; line-height: 1.45; }
.quota-bar .qb-text small { display: block; opacity: .8; font-size: 12px; }
.quota-bar .qb-meter { flex: 0 0 140px; height: 8px; border-radius: 99px; background: var(--md-sys-color-surface-container-highest); overflow: hidden; }
.quota-bar .qb-meter span { display: block; height: 100%; background: var(--m3-fill-primary); border-radius: 99px; }
.quota-bar.is-empty .qb-meter span { background: var(--m3-fill-error); }
.btn-upgrade { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: var(--md-sys-shape-full); border: none; cursor: pointer;
  background: var(--m3-fill-warning); color: #fff !important; font: 700 13px var(--md-font-plain); text-decoration: none !important; white-space: nowrap; }
.btn-upgrade:hover { filter: brightness(1.08); }
.locked-note { display: inline-flex; align-items: center; gap: 6px; color: var(--md-sys-color-on-surface-variant); font-size: 12px; }
.locked-note i { color: var(--md-ext-color-warning); }
.lock-panel { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 18px 20px; border-radius: var(--md-sys-shape-lg); margin: 14px 0;
  background: var(--md-ext-color-warning-container); color: var(--md-ext-color-on-warning-container); }
.lock-panel > i { font-size: 26px; }
.lock-panel div { flex: 1; min-width: 200px; font-size: 14px; line-height: 1.5; }
.lock-panel strong { display: block; font-size: 15px; }
.plan-compare { background: var(--md-sys-color-surface-container-lowest); border: 1px solid var(--md-sys-color-outline-variant); border-radius: 24px; padding: 22px; margin: 0 0 22px; }
.plan-compare h4 { margin: 0 0 4px; font-size: 17px; font-weight: 700; color: var(--md-sys-color-on-surface); }
.plan-compare > p { margin: 0 0 16px; font-size: 13px; color: var(--md-sys-color-on-surface-variant); }
.plan-compare table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.plan-compare th, .plan-compare td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--md-sys-color-outline-variant); color: var(--md-sys-color-on-surface); vertical-align: middle; }
.plan-compare tr:last-child td { border-bottom: none; }
.plan-compare th { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--md-sys-color-on-surface-variant); }
.plan-compare th.pc-col, .plan-compare td.pc-col { text-align: center; width: 26%; }
.plan-compare th.pc-premium { color: var(--md-ext-color-warning); }
.plan-compare td.pc-premium { background: color-mix(in srgb, var(--md-ext-color-warning-container) 45%, transparent); font-weight: 600; }
.plan-compare tr:first-child td.pc-premium { border-top-left-radius: 12px; border-top-right-radius: 12px; }
.plan-compare .pc-yes { color: var(--md-ext-color-success); }
.plan-compare .pc-no { color: var(--md-sys-color-outline); }
.plan-compare .pc-current { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 99px; font-size: 10px; line-height: 18px; background: var(--m3-fill-primary); color: #fff; letter-spacing: .3px; }
@media (max-width: 640px) { .plan-compare { padding: 16px 12px; } .plan-compare th, .plan-compare td { padding: 9px 6px; font-size: 13px; } .quota-bar .qb-meter { flex-basis: 100%; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ── Generic text field for pages that use the Bootstrap class name .form-control
      (pipeline board, interview form, reports filters). Bootstrap itself is not loaded. ── */
.form-control{display:block;width:100%;box-sizing:border-box;padding:10px 14px;font:inherit;font-size:14px;line-height:1.4;
  color:var(--md-sys-color-on-surface);background:var(--md-sys-color-surface-container-lowest);
  border:1.5px solid var(--md-sys-color-outline-variant);border-radius:12px;transition:border-color .15s,box-shadow .15s}
.form-control:focus{outline:none;border-color:var(--md-sys-color-primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--md-sys-color-primary) 18%,transparent)}
.form-control::placeholder{color:var(--md-sys-color-on-surface-variant);opacity:.7}
textarea.form-control{resize:vertical;min-height:80px}
/* Form fields use the page font (textareas defaulted to monospace in some browsers). */
input,select,textarea,button{font-family:inherit}

/* ── Brand logo (public/images/logo.png = full logo, logo-mark.png = icon) ── */
.brand-logo{display:block;height:56px;width:auto;max-width:100%}
.brand-logo--sm{height:40px}
.brand-logo--lg{height:72px}
/* On coloured / dark backgrounds the navy wordmark sits on a white chip. */
.brand-logo--chip{background:#fff;border-radius:14px;padding:6px 10px;box-sizing:content-box}
:root[data-theme="dark"] .brand-logo:not(.brand-logo--chip){background:#fff;border-radius:12px;padding:4px 8px;box-sizing:content-box}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .brand-logo:not(.brand-logo--chip){background:#fff;border-radius:12px;padding:4px 8px;box-sizing:content-box}}
.brand-icon.brand-icon--logo{background:#fff !important;padding:5px;box-shadow:0 2px 8px rgba(15,23,42,.12);box-sizing:border-box}
.brand-icon--logo img{width:100%;height:100%;object-fit:contain;display:block}
@media(max-width:430px){.brand-logo{height:44px}}
