/* Self-hosted webfonts. pentest66 serves a strict CSP
   (default-src 'self'; style-src 'self' 'unsafe-inline') which blocks both
   fonts.googleapis.com and fonts.gstatic.com, so these are served from our own
   origin instead of loosening that policy.
   Kanit + Noto Sans Thai are the families used on mobileconnect.co.th;
   IBM Plex Mono is kept for numeric / ID columns.
   All three are SIL Open Font License 1.1. */

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/kanit-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/kanit-400-thai.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/kanit-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/kanit-500-thai.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/kanit-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/kanit-600-thai.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/kanit-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/kanit-700-thai.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Noto Sans Thai';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/noto-sans-thai-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Sans Thai';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/noto-sans-thai-400-thai.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Noto Sans Thai';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/noto-sans-thai-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Sans Thai';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/noto-sans-thai-500-thai.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Noto Sans Thai';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/noto-sans-thai-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Sans Thai';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/noto-sans-thai-600-thai.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

/* ============================================================================
   SmartComm console skin — Mobile Connect brand
   ----------------------------------------------------------------------------
   Palette, type and geometry sampled from https://mobileconnect.co.th:
     green #8bc541 / gradient linear-gradient(240deg,#6eaa26,#a5e514)
     indigo #404562 (their dominant ink and CTA fill)
     Kanit headings, Noto Sans Thai body, pill buttons, 18-24px card radii,
     soft shadow carrying a faint green glow.

   Two deliberate departures from the marketing site, both for legibility in a
   console people read all day:
     - The brand bar is solid indigo, not the green gradient. White on that
       gradient is 2.8:1 at its dark end and 1.5:1 at its light end; white on
       indigo is 9.35:1. The gradient is kept as a hairline under the bar, on
       the active nav indicator and on progress fills.
     - Green text is #4f7f1c (4.79:1), not #8bc541 (2.07:1). The brand green is
       used for fills, never for small text.

   style.css is untouched: its classes are used by ~320 pages outside this
   scope. New work uses .sc-* ; the legacy bridge at the bottom lifts the rest.
   ========================================================================= */

/* ── Tokens ──────────────────────────────────────────────────────────────── */

[data-sc-shell] {
  --sc-bg: #f4f6fa;
  --sc-panel: #ffffff;
  --sc-panel-2: #f7f8fb;
  --sc-ink: #404562;
  --sc-ink-2: #69727d;
  --sc-line: #e6e8ef;
  --sc-line-soft: #f0f1f6;

  --sc-accent: #8bc541;
  --sc-accent-deep: #4f7f1c;
  --sc-accent-grad: linear-gradient(240deg, #6eaa26 0%, #a5e514 100%);
  --sc-tint: #f2f9e8;

  --sc-head: #404562;
  --sc-head-ink: #ffffff;
  --sc-head-ink-2: #a5e514;
  --sc-on-accent: #2b2f45;

  --sc-ok: #4f7f1c;   --sc-ok-bg: #f0f8e4;
  --sc-warn: #96601a; --sc-warn-bg: #fdf3e3;
  --sc-bad: #c0324f;  --sc-bad-bg: #fdecef;

  --sc-radius: 18px;
  --sc-radius-sm: 12px;
  --sc-radius-lg: 24px;
  --sc-pill: 999px;

  /* their card shadow: neutral drop + ambient + a faint green glow */
  --sc-shadow: 0 6px 20px rgba(0,0,0,.08), 0 0 8px rgba(88,89,91,.07), 0 0 10px rgba(139,197,65,.16);
  --sc-shadow-lg: 0 10px 30px rgba(0,0,0,.10), 0 0 12px rgba(88,89,91,.08), 0 0 14px rgba(139,197,65,.20);

  --sc-row-y: 13px;
  --sc-cell-x: 16px;
  --sc-gap: 20px;

  --sc-font: "Noto Sans Thai", "Helvetica Neue", Arial, sans-serif;
  --sc-font-head: Kanit, "Noto Sans Thai", Arial, sans-serif;
  --sc-font-mono: "IBM Plex Mono", SFMono-Regular, Consolas, monospace;
}

[data-sc-shell][data-theme="dark"] {
  --sc-bg: #171a24;
  --sc-panel: #1f2331;
  --sc-panel-2: #262b3a;
  --sc-ink: #e8eaf2;
  --sc-ink-2: #9aa2b8;
  --sc-line: #333950;
  --sc-line-soft: #2a2f42;

  --sc-accent: #a5e514;
  --sc-accent-deep: #a5e514;
  --sc-tint: #23301a;

  --sc-head: #10131b;
  --sc-head-ink: #ffffff;
  --sc-head-ink-2: #a5e514;
  --sc-on-accent: #1a2030;

  --sc-ok: #a5e514;   --sc-ok-bg: #23301a;
  --sc-warn: #e6b569; --sc-warn-bg: #33280f;
  --sc-bad: #f0909f;  --sc-bad-bg: #351b22;

  --sc-shadow: 0 6px 20px rgba(0,0,0,.45);
  --sc-shadow-lg: 0 10px 30px rgba(0,0,0,.55);
}

[data-sc-shell][data-density="compact"] { --sc-row-y: 8px; --sc-cell-x: 12px; --sc-gap: 14px; }

/* ── Page ground ─────────────────────────────────────────────────────────── */

body.sc-body {
  margin: 0;
  background: var(--sc-bg);
  color: var(--sc-ink);
  font-family: var(--sc-font);
  font-size: 14.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.sc-body a { color: var(--sc-accent-deep); text-underline-offset: 3px; }
body.sc-body a:hover { color: var(--sc-ink); }

/* The rule above is `body.sc-body a` (0,1,1), which outranks a bare component
   class like `.sc-btn-primary` (0,1,0). Without these it repaints every anchor
   component in the link colour -- in dark mode --sc-accent-deep equals
   --sc-accent, so a primary button rendered green text on green fill and the
   label vanished. Each anchor-based component restates its colour here at
   matching specificity. Any new one must be added to this list. */
body.sc-body a.sc-lockup,
body.sc-body a.sc-lockup:hover { color: inherit; }
body.sc-body a.sc-credit,
body.sc-body a.sc-credit:hover,
body.sc-body a.sc-iconbtn,
body.sc-body a.sc-iconbtn:hover { color: var(--sc-head-ink); }
body.sc-body .sc-nav a { color: var(--sc-ink-2); }
body.sc-body .sc-nav a:hover,
body.sc-body .sc-nav a.is-active { color: var(--sc-ink); }
body.sc-body .sc-quick a { color: var(--sc-ink-2); }
body.sc-body .sc-quick a:hover { color: var(--sc-accent-deep); }
body.sc-body a.sc-btn { color: var(--sc-ink); }
body.sc-body a.sc-btn-primary,
body.sc-body a.sc-btn-primary:hover { color: var(--sc-on-accent); }
body.sc-body a.sc-btn-dark,
body.sc-body a.sc-btn-dark:hover { color: #fff; }
body.sc-body a.sc-btn-secondary { color: var(--sc-ink); }
body.sc-body a.sc-btn-secondary:hover { color: var(--sc-accent-deep); }
body.sc-body a.sc-btn-ghost,
body.sc-body a.sc-btn-ghost:hover { color: var(--sc-accent-deep); }

/* The login page is its own world; the app link colour must not reach into it.
   Without this, `body.sc-body a` (0,1,1) beat the .lg-* classes (0,1,0) and
   repainted every link green: the orange pill's label fell to 1.81:1 and the
   contact numbers on the green panel to 1.01:1 -- green on green. */
body.sc-body .lg-page a { color: inherit; }
body.sc-body a.lg-alert-btn,
body.sc-body a.lg-alert-btn:hover { color: #fff; }
body.sc-body .lg-social a,
body.sc-body .lg-social a:hover { color: #fff; }
body.sc-body .lg-footer a.lg-t,
body.sc-body .lg-cs a.lg-t { color: var(--lg-text); }
body.sc-body .lg-footer a.lg-t:hover { color: var(--lg-green); }
.sc-body :focus { outline: none; }
.sc-body :focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 2px; }
.sc-body ::selection { background: rgba(139,197,65,.32); }

/* The previous iteration framed things in "blueprint" registration marks.
   That reads as a working drawing, not a finished product — the marks are gone
   and this keeps any left-over markup from rendering. */
.corner { display: none !important; }

/* ── Brand bar ───────────────────────────────────────────────────────────── */

.sc-topbar {
  background: var(--sc-head);
  color: var(--sc-head-ink);
  padding: 0 clamp(16px, 3vw, 40px);
  border-bottom: 3px solid transparent;
  border-image: var(--sc-accent-grad) 1;
}
.sc-topbar-in {
  max-width: 1440px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  min-height: 68px; flex-wrap: wrap;
}
.sc-lockup { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; color: inherit; }
.sc-lockup:hover { color: inherit; }
.sc-mark {
  width: 38px; height: 38px; flex: none;
  border-radius: 11px;
  background: var(--sc-accent-grad);
  color: #2b2f45;
  display: flex; align-items: center; justify-content: center;
}
.sc-wordmark { display: flex; flex-direction: column; line-height: 1.15; }
.sc-wordmark b { font-family: var(--sc-font-head); font-size: 21px; font-weight: 600; letter-spacing: .01em; }
.sc-wordmark span { font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--sc-head-ink-2); }

.sc-credit {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 16px;
  border-radius: var(--sc-pill);
  background: rgba(255,255,255,.10);
  color: var(--sc-head-ink);
  text-decoration: none;
  font-size: 13px;
}
.sc-credit:hover { background: rgba(165,229,20,.20); color: var(--sc-head-ink); }
.sc-credit svg { color: var(--sc-head-ink-2); }
.sc-credit-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--sc-head-ink-2); }
.sc-credit-value { font-family: var(--sc-font-mono); font-size: 13.5px; font-weight: 500; }

.sc-account { display: flex; align-items: center; gap: 9px; font-size: 13.5px; }
.sc-account svg { color: var(--sc-head-ink-2); flex: none; }

.sc-iconbtn {
  width: 38px; height: 38px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  border: 0;
  color: var(--sc-head-ink);
  cursor: pointer; padding: 0; text-decoration: none;
  transition: background .15s ease;
}
.sc-iconbtn:hover { background: rgba(165,229,20,.24); color: var(--sc-head-ink); }

/* ── Menu bar ────────────────────────────────────────────────────────────── */

.sc-navbar {
  background: var(--sc-panel);
  border-bottom: 1px solid var(--sc-line);
  padding: 0 clamp(16px, 3vw, 40px);
}
.sc-navbar-in {
  max-width: 1440px; margin: 0 auto;
  display: flex; align-items: center;
  column-gap: clamp(12px, 2vw, 28px); row-gap: 0;
  flex-wrap: wrap;
}
.sc-nav { display: flex; column-gap: clamp(12px, 2vw, 28px); row-gap: 0; flex-wrap: wrap; margin-right: auto; }
.sc-nav a {
  position: relative;
  padding: 17px 2px;
  font-family: var(--sc-font-head);
  font-size: 14.5px; font-weight: 500; letter-spacing: .02em;
  color: var(--sc-ink-2);
  text-decoration: none; white-space: nowrap;
  transition: color .15s ease;
}
.sc-nav a:hover { color: var(--sc-ink); }
.sc-nav a.is-active { color: var(--sc-ink); font-weight: 600; }
.sc-nav a.is-active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 3px; border-radius: 3px 3px 0 0;
  background: var(--sc-accent-grad);
}

.sc-quick { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 8px 0; }
.sc-quick a {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--sc-ink-2);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.sc-quick a:hover { color: var(--sc-accent-deep); background: var(--sc-tint); }

/* ── Main ────────────────────────────────────────────────────────────────── */

.sc-main { max-width: 1440px; margin: 0 auto; padding: clamp(22px, 3vw, 34px) clamp(16px, 3vw, 40px) 64px; }
.sc-stack { display: flex; flex-direction: column; gap: var(--sc-gap); }

/* ── Headings ────────────────────────────────────────────────────────────── */

.sc-kicker {
  font-family: var(--sc-font-head);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--sc-accent-deep);
}
.sc-h1 { font-family: var(--sc-font-head); font-size: 30px; font-weight: 600; margin: 3px 0 0; line-height: 1.2; letter-spacing: -.01em; }
.sc-h3 { font-family: var(--sc-font-head); font-size: 18px; font-weight: 600; margin: 0; line-height: 1.3; }
.sc-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sc-muted { color: var(--sc-ink-2); }
.sc-mono { font-family: var(--sc-font-mono); }

/* ── Cards ───────────────────────────────────────────────────────────────── */

.sc-card {
  background: var(--sc-panel);
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius);
  box-shadow: var(--sc-shadow);
  padding: 24px;
}
.sc-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.sc-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--sc-gap); }
.sc-statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--sc-gap); }

.sc-stat {
  position: relative; overflow: hidden;
  background: var(--sc-panel);
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius);
  box-shadow: var(--sc-shadow);
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 5px;
  transition: box-shadow .18s ease, transform .18s ease;
}
.sc-stat:hover { box-shadow: var(--sc-shadow-lg); transform: translateY(-2px); }
/* the brand gradient as a top rule on each tile */
.sc-stat::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--sc-accent-grad); }
.sc-stat-label { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sc-ink-2); margin-top: 4px; }
.sc-stat-value { font-family: var(--sc-font-mono); font-size: 28px; font-weight: 500; letter-spacing: -.02em; color: var(--sc-ink); }
.sc-stat-note { font-size: 12.5px; color: var(--sc-ink-2); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.sc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 24px;
  font-family: var(--sc-font-head);
  font-size: 14.5px; font-weight: 600; letter-spacing: .01em; line-height: 1.2;
  border: 1px solid transparent;
  border-radius: var(--sc-pill);
  background: transparent; color: var(--sc-ink);
  cursor: pointer; text-decoration: none;
  transition: background .15s ease, box-shadow .15s ease, color .15s ease, transform .15s ease;
}
.sc-btn:active { transform: translateY(1px); }
.sc-btn:disabled { opacity: .45; cursor: not-allowed; }
/* brand green fill with indigo ink — 4.52:1. White on this green is 2.07:1. */
.sc-btn-primary { background: var(--sc-accent); color: var(--sc-on-accent); box-shadow: 0 4px 14px rgba(139,197,65,.35); }
.sc-btn-primary:hover { background: #7cb52d; color: var(--sc-on-accent); box-shadow: 0 6px 18px rgba(139,197,65,.45); }
.sc-btn-dark { background: var(--sc-head); color: #fff; }
.sc-btn-dark:hover { background: #333854; color: #fff; }
.sc-btn-secondary { border-color: var(--sc-line); background: var(--sc-panel); color: var(--sc-ink); }
.sc-btn-secondary:hover { border-color: var(--sc-accent); color: var(--sc-accent-deep); background: var(--sc-tint); }
.sc-btn-ghost { color: var(--sc-accent-deep); padding-inline: 10px; }
.sc-btn-ghost:hover { background: var(--sc-tint); }
.sc-btn-lg { min-height: 50px; font-size: 16px; padding-inline: 30px; }
.sc-btn-block { width: 100%; }

/* ── Forms ───────────────────────────────────────────────────────────────── */

.sc-field { display: flex; flex-direction: column; gap: 7px; }
.sc-label { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--sc-ink-2); }
.sc-input {
  width: 100%; min-height: 46px; padding: 11px 16px;
  font-family: inherit; font-size: 14.5px;
  color: var(--sc-ink); caret-color: var(--sc-accent);
  background: var(--sc-panel-2);
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.sc-input::placeholder { color: var(--sc-ink-2); opacity: .7; }
.sc-input:hover { border-color: #cfd4e2; }
.sc-input:focus-visible {
  border-color: var(--sc-accent); background: var(--sc-panel);
  box-shadow: 0 0 0 4px rgba(139,197,65,.16); outline: none;
}
textarea.sc-input { min-height: 110px; resize: vertical; }

/* ── Tables ──────────────────────────────────────────────────────────────── */

.sc-tablewrap { overflow-x: auto; border-radius: var(--sc-radius); }
.sc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sc-table th {
  font-family: var(--sc-font-head);
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  color: var(--sc-ink-2); text-align: left;
  padding: var(--sc-row-y) var(--sc-cell-x);
  background: var(--sc-panel-2);
  border-bottom: 1px solid var(--sc-line);
  white-space: nowrap;
}
.sc-table th:first-child { border-top-left-radius: var(--sc-radius); }
.sc-table th:last-child  { border-top-right-radius: var(--sc-radius); }
.sc-table td { padding: var(--sc-row-y) var(--sc-cell-x); border-bottom: 1px solid var(--sc-line-soft); vertical-align: top; }
.sc-table tbody tr:last-child td { border-bottom: 0; }
.sc-table tbody tr:hover td { background: var(--sc-tint); }
.sc-num { font-family: var(--sc-font-mono); text-align: right; white-space: nowrap; }

/* ── Chips & notices ─────────────────────────────────────────────────────── */

.sc-chip {
  display: inline-block; padding: 4px 13px;
  border-radius: var(--sc-pill);
  font-size: 12px; font-weight: 600; letter-spacing: .03em;
  border: 1px solid transparent;
}
.sc-chip-ok   { color: var(--sc-ok);   background: var(--sc-ok-bg); }
.sc-chip-warn { color: var(--sc-warn); background: var(--sc-warn-bg); }
.sc-chip-bad  { color: var(--sc-bad);  background: var(--sc-bad-bg); }

.sc-notice {
  display: flex; gap: 14px; padding: 18px 20px;
  border: 1px solid #d9ecc0;
  border-radius: var(--sc-radius);
  background: var(--sc-tint);
  color: #3d6516;
  font-size: 14px; line-height: 1.65;
}
.sc-notice svg { flex: none; margin-top: 3px; }

/* Message-path cells on Home (replaces the old bitmap diagram). */
.sc-flow { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
/* Each node carries its own trailing arrow so a wrap never leaves a dangling
   "- SMS ->" at the end of a row. */
.sc-flow-step { display: inline-flex; align-items: center; gap: 10px; }
.sc-flow-node {
  display: inline-block;
  min-width: 104px; padding: 12px 14px;
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius-sm);
  background: var(--sc-panel-2);
  text-align: center;
  font-family: var(--sc-font-head);
  font-size: 14px; font-weight: 500;
}
.sc-flow-link { font-family: var(--sc-font-mono); font-size: 11.5px; color: var(--sc-accent-deep); white-space: nowrap; }

.sc-featurelist { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 11px 22px; margin: 0; padding: 0; list-style: none; }
.sc-featurelist li { position: relative; display: flex; gap: 11px; align-items: flex-start; font-size: 14px; }
/* Circle + tick drawn in CSS. This used to cut the tick out with a data: URI
   mask -- pentest66's CSP (default-src 'self') blocks data: as an image source,
   so the mask never loaded and every bullet rendered as a solid dot. Nothing
   here fetches a URL. */
.sc-featurelist li::before {
  content: ""; flex: none;
  width: 18px; height: 18px; margin-top: 3px;
  border-radius: 50%;
  background: var(--sc-accent-grad);
}
.sc-featurelist li::after {
  content: ""; position: absolute;
  left: 6px; top: 8px; width: 4px; height: 8px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

/* ── Login page ──────────────────────────────────────────────────────────────
   1:1 build of the Mobile Connect login mockup, revision 2 (1920x1080).
   Every number is in mockup pixels times --u, so the page is exact at 1920 wide
   and scales proportionally on other desktop widths (stacked below 1000px).

   How the numbers were obtained, so they can be re-derived if the mockup moves:
     - colours: pixel-sampled from the mockup;
     - font sizes: Kanit advance width fitted to each string's ink width (ink
       *height* under-reads small text by ~1px of anti-aliasing, width doesn't);
     - positions: ink bounding boxes, then a full-resolution headless-Chrome
       capture of this page diffed against the mockup element by element;
     - field / contact / footer icons: cut out of the mockup itself
       (images/login/ic-*.png) because the mockup's glyphs are not a stock set.

   Contrast is the mockup's, by request. Below WCAG AA (4.5:1):
     white on #809b40  3.14:1 (LOGIN) · #809b40 on #f2f2f2  2.81:1 (headline,
     '99.99% Reliability') · white on #fe7900  2.64:1 (download pill).          */

.lg-page {
  --u: calc(100vw / 1920);
  --lg-green: #809b40;
  --lg-green-dark: #6f8738;
  --lg-ink: #333333;
  --lg-grey: #f2f2f2;
  --lg-panel-r: #e6e6e6;
  --lg-orange: #fe7900;
  --lg-yellow: #ffff00;
  --lg-text: #59595b;

  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--lg-grey);
  font-family: Kanit, "Noto Sans Thai", Arial, sans-serif;
  font-weight: 400;
  color: var(--lg-ink);
}
.lg-page * { box-sizing: border-box; }
.lg-page img { display: block; }
.lg-t { position: absolute; line-height: 1; white-space: nowrap; text-decoration: none; }
.lg-ic { position: absolute; }
/* icon+label pair: no box of its own on desktop (children stay absolutely
   placed against .lg-cs / .lg-footer-items); on phones it keeps the two on one line */
.lg-pair { display: contents; }

/* — announcement bar (0..50) — */
.lg-alert { position: relative; flex: none; height: calc(50 * var(--u)); background: var(--lg-ink); }
.lg-alert-icon {
  position: absolute; left: calc(72 * var(--u)); top: calc(9 * var(--u));
  width: calc(35 * var(--u)); height: calc(35 * var(--u)); border-radius: 50%;
  background: var(--lg-yellow); color: var(--lg-ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: calc(24 * var(--u)); line-height: 1;
}
.lg-alert-text {
  position: absolute; left: calc(122 * var(--u)); top: calc(1 * var(--u)); margin: 0;
  height: calc(50 * var(--u)); display: flex; align-items: center;
  font-size: calc(21 * var(--u)); font-weight: 600; color: var(--lg-yellow); white-space: nowrap;
}
.lg-alert-btn {
  position: absolute; right: calc(58 * var(--u)); top: calc(10 * var(--u));
  width: calc(206 * var(--u)); height: calc(32 * var(--u)); border-radius: calc(16 * var(--u));
  background: var(--lg-orange); color: #fff; text-decoration: none;
}
.lg-alert-btn:hover { background: #ff8c21; }
.lg-pill-ic { position: absolute; left: calc(19 * var(--u)); top: calc(1 * var(--u)); width: calc(26 * var(--u)); height: calc(30 * var(--u)); }
.lg-pill-t {
  position: absolute; left: calc(49 * var(--u)); top: 0; height: 100%;
  display: flex; align-items: center;
  /* Mockup text is Kanit-height but tighter-set: ink ends at x1846, leaving the
     same ~15px right inset as the left. Size+tracking fitted by pixel diff. */
  font-size: calc(15.1 * var(--u)); font-weight: 400; white-space: nowrap; letter-spacing: calc(-0.55 * var(--u));
}

/* — split (50..1030) — */
.lg-split { position: relative; flex: 1 0 auto; min-height: calc(980 * var(--u)); display: grid; grid-template-columns: 1fr 1fr; }
.lg-left  { position: relative; background: var(--lg-grey); }
.lg-right { position: relative; background: var(--lg-panel-r); }

/* left panel, origin (0,50) */
/* cut from the mockup at page 160,220 (460x340) -- the Drive asset is an older render */
.lg-art { position: absolute; left: calc(160 * var(--u)); top: calc(170 * var(--u)); width: calc(460 * var(--u)); height: auto; }
.lg-headline {
  position: absolute; left: calc(170 * var(--u)); top: calc(523 * var(--u)); margin: 0;
  font-size: calc(89 * var(--u)); font-weight: 600; line-height: 1; color: var(--lg-green); white-space: nowrap;
}
.lg-sub {
  position: absolute; left: calc(180 * var(--u)); top: calc(657 * var(--u)); margin: 0;
  font-size: calc(21 * var(--u)); font-weight: 400; line-height: calc(25 * var(--u));
  color: var(--lg-text); white-space: nowrap;
}
.lg-sub b { font-weight: 600; color: var(--lg-green); }

/* right panel, origin (960,50). Card at page 1213,209, 499x500, r72 */
.lg-right form { position: absolute; inset: 0; margin: 0; }
.lg-card {
  position: absolute; left: calc(253 * var(--u)); top: calc(159 * var(--u));
  width: calc(499 * var(--u)); height: calc(500 * var(--u));
  background: #fff; border-radius: calc(72 * var(--u));
  /* fitted to the mockup's edge profile: darkest 25 levels at the right/bottom
     edge, ~4 at top/left, gone by 30px -> offset 10, sigma ~9.5 (blur 19), a .13 */
  box-shadow: calc(10.4 * var(--u)) calc(10.4 * var(--u)) calc(19 * var(--u)) rgba(0,0,0,.13);
}
.lg-card h1 {
  position: absolute; left: 0; right: 0; top: calc(87 * var(--u)); margin: 0;
  text-align: center; font-size: calc(42.1 * var(--u)); font-weight: 400; line-height: 1;
  color: var(--lg-green); letter-spacing: 0;
}
.lg-field { position: absolute; left: calc(47 * var(--u)); width: calc(405 * var(--u)); height: calc(62 * var(--u)); }
.lg-field.f-user { top: calc(160 * var(--u)); }
.lg-field.f-pass { top: calc(250 * var(--u)); }
.lg-field .lg-lead { position: absolute; pointer-events: none; }
.lg-field.f-user .lg-lead { left: calc(29 * var(--u)); top: calc(15 * var(--u)); width: calc(21 * var(--u)); height: calc(27 * var(--u)); }
.lg-field.f-pass .lg-lead { left: calc(27 * var(--u)); top: calc(13 * var(--u)); width: calc(25 * var(--u)); height: calc(31 * var(--u)); }
.lg-field input {
  width: 100%; height: 100%; margin: 0;
  padding: 0 calc(64 * var(--u)) calc(4 * var(--u)) calc(68 * var(--u));
  font-family: inherit; font-size: calc(18 * var(--u)); font-weight: 400;
  color: var(--lg-ink); background: var(--lg-grey);
  border: 1px solid transparent; border-radius: calc(31 * var(--u));
}
.lg-field input::placeholder { color: #b3b3b3; letter-spacing: 0; }
.lg-field input:focus-visible { outline: none; border-color: var(--lg-green); background: #fff; box-shadow: 0 0 0 calc(4 * var(--u)) rgba(128,155,64,.22); }
.lg-eye {
  position: absolute; left: calc(347 * var(--u)); top: calc(15 * var(--u));
  width: calc(33 * var(--u)); height: calc(28 * var(--u)); padding: 0;
  border: 0; background: transparent; color: #808080; cursor: pointer;
}
.lg-eye img, .lg-eye svg { width: 100%; height: 100%; }
.lg-eye:hover { opacity: .75; }
.lg-submit {
  position: absolute; left: calc(153 * var(--u)); top: calc(348 * var(--u));
  width: calc(193 * var(--u)); height: calc(54 * var(--u)); margin: 0;
  padding: calc(2 * var(--u)) 0 0;
  background: var(--lg-green); color: #fff; border: 0; border-radius: calc(27 * var(--u));
  font-family: inherit; font-size: calc(24.7 * var(--u)); font-weight: 600; line-height: 1; cursor: pointer;
}
.lg-submit:hover { background: var(--lg-green-dark); }
.lg-clear {
  position: absolute; left: 0; right: 0; top: calc(415 * var(--u)); margin: 0 auto; width: max-content;
  background: none; border: 0; padding: 0;
  font-family: inherit; font-size: calc(15.7 * var(--u)); font-style: italic; line-height: 1;
  color: #808080; text-decoration: underline; text-underline-offset: calc(3 * var(--u)); cursor: pointer;
}
.lg-card br { display: none; }

/* contact strip, panel origin (960,50) */
.lg-cs { position: absolute; inset: 0; color: var(--lg-text); pointer-events: none; }
.lg-cs > * { pointer-events: auto; }
.lg-cs-title { position: absolute; left: calc(455 * var(--u)); top: calc(675 * var(--u)); font-size: calc(19.2 * var(--u)); line-height: 1; white-space: nowrap; }
.lg-cs-title b { font-weight: 600; }
.lg-cs .lg-t { top: calc(700 * var(--u)); font-size: calc(16.9 * var(--u)); color: var(--lg-text); }
.cs-ph   { left: calc(209 * var(--u)); top: calc(699 * var(--u)); width: calc(19 * var(--u)); height: calc(21 * var(--u)); }
.cs-ph-t { left: calc(235 * var(--u)); }
.cs-ml   { left: calc(366 * var(--u)); top: calc(702 * var(--u)); width: calc(21 * var(--u)); height: calc(15 * var(--u)); }
.cs-ml-t { left: calc(390 * var(--u)); }
.cs-ln   { left: calc(655 * var(--u)); top: calc(700 * var(--u)); width: calc(26 * var(--u)); height: calc(19 * var(--u)); }
.cs-ln-t { left: calc(679 * var(--u)); }
.lg-cs a.lg-t:hover { text-decoration: underline; }

/* MCommerce banner straddles the seam: page 577,810, 764 wide */
.lg-promo { position: absolute; left: calc(578 * var(--u)); top: calc(760 * var(--u)); width: calc(766 * var(--u)); margin: 0; padding: 0; }
/* tight shadow fitted to the mockup's edge profile (-25 levels at the edge, gone by ~7px) */
.lg-promo img { width: 100%; height: auto; box-shadow: 0 calc(1 * var(--u)) calc(8 * var(--u)) rgba(0,0,0,.24); }

/* footer, origin (0,1030) */
.lg-footer { position: relative; flex: none; height: calc(50 * var(--u)); background: #fff; color: var(--lg-text); }
.lg-footer-mark { position: absolute; left: calc(49 * var(--u)); top: calc(12 * var(--u)); height: calc(28 * var(--u)); width: auto; }
.lg-footer-items { position: absolute; inset: 0; }
.lg-footer .lg-t { top: calc(14.6 * var(--u)); font-size: calc(21.1 * var(--u)); color: var(--lg-text); }
.ft-c    { left: calc(827 * var(--u)); top: calc(15.6 * var(--u)); font-weight: 600; color: #575a5b; }
.ft-ph   { left: calc(969 * var(--u)); top: calc(13 * var(--u)); width: calc(27 * var(--u)); height: calc(29 * var(--u)); }
.ft-ph-t { left: calc(1003 * var(--u)); }
.ft-ln   { left: calc(1172 * var(--u)); top: calc(14 * var(--u)); width: calc(27 * var(--u)); height: calc(26 * var(--u)); }
.ft-ln-t { left: calc(1206 * var(--u)); }
.ft-ml   { left: calc(1386 * var(--u)); top: calc(17 * var(--u)); width: calc(28 * var(--u)); height: calc(21 * var(--u)); }
.ft-ml-t { left: calc(1421 * var(--u)); }
.lg-footer a.lg-t:hover { color: var(--lg-green); }
.lg-social { position: absolute; right: calc(57 * var(--u)); top: calc(13 * var(--u)); display: flex; gap: calc(10 * var(--u)); }
.lg-social a, .lg-social span { display: block; line-height: 0; }
.lg-social img { width: calc(26 * var(--u)); height: calc(26 * var(--u)); }
.lg-social a:hover img { opacity: .85; }

/* — "sms" variant (mockup 1): green right panel, plain phone art, engagement
   copy. Measured against that mockup it is the otp layout with the left block
   moved (+10,-20) and the right block moved down 10; top bar, banner, footer
   and the card interior are pixel-identical. The card shadow is the same
   rgba, which is why it reads half as dark on green as on #e6e6e6. — */
.lg-page.v-sms .lg-right { background: var(--lg-green); }
.lg-page.v-sms .lg-sub { color: var(--lg-green); }
.lg-page.v-sms .lg-cs, .lg-page.v-sms .lg-cs .lg-t { color: #fff; }
body.sc-body .lg-page.v-sms .lg-cs a.lg-t { color: #fff; }
/* positions only apply to the desktop canvas: these selectors outrank the
   stacked-layout rules, so outside the media query they would push the card
   169px down on a phone. */
@media (min-width: 1000px) {
.lg-page.v-sms .lg-art { left: calc(170 * var(--u)); top: calc(150 * var(--u)); }
.lg-page.v-sms .lg-headline { left: calc(180 * var(--u)); top: calc(503 * var(--u)); }
.lg-page.v-sms .lg-sub { left: calc(190 * var(--u)); top: calc(637 * var(--u)); }
.lg-page.v-sms .lg-card { top: calc(169 * var(--u)); }
.lg-page.v-sms .lg-cs-title { top: calc(685 * var(--u)); }
.lg-page.v-sms .lg-cs .lg-t { top: calc(710 * var(--u)); }
.lg-page.v-sms .cs-ph { top: calc(709 * var(--u)); }
.lg-page.v-sms .cs-ml { top: calc(712 * var(--u)); }
.lg-page.v-sms .cs-ln { top: calc(710 * var(--u)); }
.lg-page.v-sms .cs-ln-t { left: calc(680 * var(--u)); }
}

/* — under 1000px: stacked, fixed sizes, everything back in normal flow — */
@media (max-width: 999px) {
  .lg-page { --u: 1px; }
  .lg-page .lg-t, .lg-page .lg-ic, .lg-alert-icon, .lg-alert-text, .lg-alert-btn, .lg-pill-ic, .lg-pill-t,
  .lg-art, .lg-headline, .lg-sub, .lg-right form, .lg-cs, .lg-cs-title, .lg-promo,
  .lg-footer-mark, .lg-footer-items, .lg-social { position: static; }
  .lg-alert { height: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; }
  .lg-alert-icon { width: 28px; height: 28px; font-size: 18px; flex: none; }
  .lg-alert-text { height: auto; white-space: normal; font-size: 15px; flex: 1 1 220px; }
  .lg-alert-btn { width: auto; height: auto; display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 12px; }
  .lg-pill-ic { width: 20px; height: 23px; } .lg-pill-t { height: auto; font-size: 14px; }
  .lg-split { display: block; min-height: 0; }
  .lg-left { padding: 28px 22px 34px; }
  .lg-art { width: min(414px, 100%); margin: 0 auto 22px; }
  .lg-headline { font-size: clamp(40px, 11vw, 64px); white-space: normal; }
  .lg-sub { margin-top: 14px; font-size: 16px; line-height: 1.55; white-space: normal; }
  .lg-right { padding: 30px 16px; }
  .lg-card { position: relative; left: auto; top: auto; margin: 0 auto; width: min(499px, 100%); height: 470px; border-radius: 48px; }
  .lg-card h1 { top: 58px; font-size: 34px; }
  .lg-field { left: 7%; width: 86%; height: 56px; }
  .lg-field.f-user { top: 124px; } .lg-field.f-pass { top: 198px; }
  .lg-field input { font-size: 16px; padding-left: 58px; padding-bottom: 0; }
  .lg-eye { left: auto; right: 16px; top: 14px; width: 30px; height: 26px; }
  .lg-submit { left: 50%; transform: translateX(-50%); top: 286px; font-size: 20px; height: 50px; }
  .lg-clear { top: 352px; font-size: 15px; }
  /* inline flow, not flex: each icon is written flush against its text (no
     whitespace between them), so a line can only wrap between pairs and an
     icon never ends up on a different line from its label. */
  .lg-cs { display: block; margin-top: 26px; text-align: center; line-height: 2; }
  .lg-cs-title { display: block; font-size: 17px; margin-bottom: 4px; line-height: 1.3; }
  .lg-cs .lg-t { display: inline; font-size: 15px; margin-right: 16px; vertical-align: middle; }
  .lg-promo { width: auto; padding: 22px 16px; background: var(--lg-grey); }
  .lg-promo img { max-width: 764px; margin: 0 auto; }
  .lg-footer { height: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; padding: 16px; }
  .lg-footer-mark { height: 26px; }
  .lg-footer-items { display: block; text-align: center; line-height: 2.1; }
  .lg-footer .lg-t { display: inline; font-size: 15px; margin-right: 14px; vertical-align: middle; }
  .lg-pair { display: inline-block; white-space: nowrap; }
  .lg-page .lg-ic { display: inline-block; width: auto !important; height: 18px !important; margin-right: 6px; vertical-align: middle; }
}

/* ── Print ───────────────────────────────────────────────────────────────── */

@media print {
  .sc-topbar, .sc-navbar { display: none; }
  .sc-main { padding: 0; max-width: none; }
  .sc-card, .sc-stat { box-shadow: none; }
}

/* ============================================================================
   LEGACY BRIDGE
   ----------------------------------------------------------------------------
   The ~320 pages still on the old markup render inside .sc-legacy (the content
   slot in headermenu.jsp). Typography, colour and control chrome only — no
   width, display, float or border-collapse changes — so table layouts tuned to
   the old 750px shell keep working. Delete this block to leave those pages
   exactly as they were.
   ========================================================================= */

.sc-legacy { font-family: var(--sc-font); font-size: 13.5px; color: var(--sc-ink); }
.sc-legacy font, .sc-legacy td, .sc-legacy th, .sc-legacy div,
.sc-legacy span, .sc-legacy label, .sc-legacy li { font-family: var(--sc-font); }

/* Every legacy screen opens with <font class="pageheader">Title</font>.
   Promoting it gives all 320 pages the new h1 for free. */
.sc-legacy .pageheader, .sc-body .pageheader {
  font-family: var(--sc-font-head);
  font-size: 26px !important; font-weight: 600;
  color: var(--sc-ink) !important;
  line-height: 1.25; letter-spacing: -.01em;
}

.sc-legacy .bluelabel { color: var(--sc-ink); font-weight: 600; }
.sc-legacy .error, .sc-legacy .perror { color: var(--sc-bad); }

/* Old header rows were #006699 on white. Retint to the brand ink, no geometry
   change. Rounding is skipped here: legacy tables use cellspacing borders and
   rounded corners on a <td> clip inconsistently across those layouts. */
.sc-legacy .trheader td {
  background-color: var(--sc-head) !important;
  color: #fff !important;
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
}
.sc-legacy .trheader a:link, .sc-legacy .trheader a:visited, .sc-legacy .trheader a:hover { color: #fff !important; }
.sc-legacy .trlabel td { color: var(--sc-ink); font-weight: 600; font-size: 12.5px; }
.sc-legacy .trb0 td, .sc-legacy .tddot { font-size: 13px; }

.sc-legacy input[type="text"], .sc-legacy input[type="password"],
.sc-legacy select, .sc-legacy textarea, .sc-legacy .nicefield {
  font-family: var(--sc-font); font-size: 13px;
  color: var(--sc-ink); background: var(--sc-panel-2);
  border: 1px solid var(--sc-line);
  border-radius: 9px;
  padding: 7px 12px;
  /* style.css sets a global `input { height: 20px }`. With border-box that
     height minus this padding leaves ~6px of content box and clips the text,
     so the height has to be released wherever padding is added. */
  height: auto; min-height: 36px; box-sizing: border-box; line-height: normal;
}
.sc-legacy input[type="text"]:focus-visible, .sc-legacy input[type="password"]:focus-visible,
.sc-legacy select:focus-visible, .sc-legacy textarea:focus-visible {
  border-color: var(--sc-accent); box-shadow: 0 0 0 3px rgba(139,197,65,.16); outline: none;
}

.sc-legacy input[type="submit"], .sc-legacy input[type="button"],
.sc-legacy input[type="reset"], .sc-legacy button {
  font-family: var(--sc-font-head);
  font-size: 13.5px; font-weight: 600;
  color: var(--sc-ink);
  background: var(--sc-panel);
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-pill);
  padding: 8px 20px;
  cursor: pointer;
  /* same `input { height: 20px }` trap as above */
  height: auto; min-height: 38px; width: auto; box-sizing: border-box; line-height: normal;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.sc-legacy input[type="submit"]:hover, .sc-legacy input[type="button"]:hover,
.sc-legacy input[type="reset"]:hover, .sc-legacy button:hover {
  background: var(--sc-tint); color: var(--sc-accent-deep); border-color: var(--sc-accent);
}
.sc-legacy input[type="submit"] {
  background: var(--sc-accent); color: var(--sc-on-accent); border-color: var(--sc-accent);
  box-shadow: 0 3px 10px rgba(139,197,65,.30);
}
.sc-legacy input[type="submit"]:hover { background: #7cb52d; color: var(--sc-on-accent); }

/* Leave tick boxes alone — they sit inline in legacy tables. */
.sc-legacy input[type="checkbox"], .sc-legacy input[type="radio"] {
  height: auto; min-height: 0; padding: 0; background: none; border: 0;
  border-radius: 0; accent-color: var(--sc-accent);
}
