/* ---------------------------------------------------------------------------
   SHARED WITH THE SMART SQUAD TESTER APP — KEEP VERBATIM.

   This file is a copy of Tester's site.css. Do not add Sales-Hub-specific rules
   here: put them in hub.css, which loads after this. Keeping this file byte-for-byte
   means that when Tester is restyled we overwrite this wholesale and the two apps
   stay genuinely identical instead of slowly drifting apart.

   Source: Smart Squad Tester, copied 2026-09-29.
   --------------------------------------------------------------------------- */

/* Smart Squad brand fonts, self-hosted (no third-party CDN): Teko for the
   masthead lettering, Montserrat for its nav — matching support.smartsquadapp.com. */
@font-face { font-family: 'Teko'; font-style: normal; font-weight: 400; font-display: swap;
             src: url('/fonts/teko-400.woff2') format('woff2'); }
@font-face { font-family: 'Teko'; font-style: normal; font-weight: 500; font-display: swap;
             src: url('/fonts/teko-500.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap;
             src: url('/fonts/montserrat-600.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap;
             src: url('/fonts/montserrat-700.woff2') format('woff2'); }

/* Smart Squad Tester — hand-rolled, phone-first, no framework.
   DARK THEME to match the Smart Squad admin portal family:
   charcoal surfaces #1a1a1a / #2a2a2a / #333, flag red #ed1c24,
   blues #3b8eb5/#4ea5cd, warning orange #eaaf51, green #27ae60. */
:root {
  --bg: #1a1a1a; --panel: #2a2a2a; --panel-2: #333333;
  --ink: #ececec; --muted: #9aa7b4;
  --line: #404650; --accent: #4ea5cd; --accent-ink: #ffffff;
  --ok: #2fc06c; --bad: #f0353d; --warn: #eaaf51; --blocked: #a678f0;
  --brand-dark: #111214; --brand-dark-2: #2a2a2a;
  --tint-blue: #1d2c38; --tint-amber: #33290f;
  --radius: 10px;
  /* Masthead palette lifted from support.smartsquadapp.com so the family matches. */
  --mast-bg: #0a0c1b; --mast-green: #93fb3c; --mast-muted: #b9c0d0;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
       background: var(--bg); color: var(--ink); font-size: 16px; }
main { max-width: 1100px; margin: 0 auto; padding: 16px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.4rem; margin: 8px 0 12px; }
h2 { font-size: 1.1rem; margin: 18px 0 8px; }

.topbar { background: var(--mast-bg); color: #fff; border-bottom: 3px solid var(--mast-green); }
.mast-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 18px;
              padding: 17px 20px 15px; flex-wrap: wrap; }
.topbar .brand { display: flex; align-items: center; color: #fff; text-decoration: none; }
.topbar .brand:hover { text-decoration: none; }
.topbar .brand img { height: 34px; width: auto; display: block; }
.topbar .brand .mast-sub { font-family: 'Teko', 'Montserrat', sans-serif; font-size: 23px; line-height: 23px;
                           font-weight: 400; letter-spacing: 1.84px; text-transform: uppercase;
                           color: var(--mast-green); padding: 5px 0 0 11px; margin-left: 11px;
                           border-left: 1px solid rgba(255,255,255,.22); }
.topbar nav { display: flex; gap: 16px; flex-wrap: wrap; }
.topbar nav a { font-family: 'Montserrat', -apple-system, sans-serif; font-size: .78rem; font-weight: 600;
                letter-spacing: .06em; text-transform: uppercase; color: var(--mast-muted); }
.topbar nav a:hover { color: #fff; text-decoration: none; }
.topbar .logout { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.topbar .who { font-family: 'Teko', sans-serif; font-size: 20px; line-height: 1; letter-spacing: 1px;
               text-transform: uppercase; color: var(--mast-muted); background: rgba(255,255,255,.06);
               border: 1px solid rgba(255,255,255,.15); border-radius: 999px; padding: 6px 14px 2px; }
.linklike { background: none; border: none; color: var(--mast-muted); cursor: pointer;
            font-family: 'Montserrat', sans-serif; font-size: .78rem; font-weight: 600;
            letter-spacing: .06em; text-transform: uppercase; padding: 0; }
.linklike:hover { color: #fff; }
.linklike:hover { text-decoration: underline; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
         padding: 16px; margin-bottom: 16px; }
.flash { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 12px; }
.flash.ok { background: #12351f; color: #6ee7a0; }
.flash.bad { background: #3b1214; color: #ff8f96; }
.flash.warn { background: #3a2f10; color: #f5c451; }

table.grid { width: 100%; border-collapse: collapse; background: var(--panel);
             border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.grid th, table.grid td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line);
                               vertical-align: top; }
table.grid th { background: var(--panel-2); font-size: .85rem; text-transform: uppercase; letter-spacing: .03em;
                color: var(--muted); }
table.grid tr:last-child td { border-bottom: none; }
table.grid tr.row-warn td { background: #3a2f10; color: #f5c451; }
.scroll-x { overflow-x: auto; }

.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: none;
       padding: 10px 18px; border-radius: var(--radius); font-size: 1rem; cursor: pointer; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.secondary { background: var(--panel-2); color: var(--ink); border: 1px solid var(--line); }
.btn.big { font-size: 1.15rem; padding: 14px 26px; }
.btn.ok { background: var(--ok); } .btn.bad { background: var(--bad); }
.btn.warn { background: var(--warn); } .btn.blocked { background: var(--blocked); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem;
         font-weight: 600; color: #fff; }
.badge.pass { background: var(--ok); } .badge.fail { background: var(--bad); }
.badge.skip { background: var(--warn); } .badge.blocked { background: var(--blocked); }
.badge.pending { background: #5b6673; }
.badge.neutral { background: #4a5561; }
.badge.outline { background: transparent; color: var(--muted); border: 1px solid var(--line); }

.progress { background: var(--panel-2); border-radius: 999px; height: 10px; overflow: hidden; min-width: 80px; }
.progress > i { display: block; height: 100%; background: var(--ok); }

form.stack { display: flex; flex-direction: column; gap: 12px; max-width: 480px; }
form.stack label { font-size: .9rem; color: var(--muted); display: block; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=password], input[type=date], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 1rem; background: #1f1f1f; color: var(--ink); }
input::placeholder, textarea::placeholder { color: #6b7684; }
textarea { min-height: 90px; font-family: inherit; }
textarea.mono { font-family: ui-monospace, Menlo, monospace; font-size: .85rem; min-height: 300px; }

.runner { display: grid; grid-template-columns: 320px 1fr; gap: 16px; }
.runner .list { max-height: 75vh; overflow-y: auto; }
.runner .list a { display: flex; gap: 8px; align-items: baseline; padding: 8px 10px;
                  border-radius: 8px; color: var(--ink); font-size: .9rem; }
.runner .list a:hover { background: var(--panel-2); text-decoration: none; }
.runner .list a.current { background: #23405a; }
.runner .list .mod { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em;
                     color: var(--muted); margin: 10px 0 2px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; align-self: center; }
.dot.pass { background: var(--ok); } .dot.fail { background: var(--bad); }
.dot.skip { background: var(--warn); } .dot.blocked { background: var(--blocked); }
.dot.pending { background: #3a4149; border: 1px solid #5b6673; }

.steps { padding-left: 20px; } .steps li { margin-bottom: 8px; }
.expected { background: var(--tint-blue); border-left: 4px solid var(--accent); padding: 10px 14px;
            border-radius: 0 8px 8px 0; }
.result-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.meta { color: var(--muted); font-size: .85rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.card h3 { margin: 0 0 6px; font-size: 1.02rem; }

.login-wrap { max-width: 380px; margin: 8vh auto; }
.evidence-thumb { max-width: 160px; max-height: 120px; border-radius: 6px; border: 1px solid var(--line); }

@media (max-width: 760px) {
  .runner { grid-template-columns: 1fr; }
  .runner .list { max-height: 220px; }
  main { padding: 10px; }
}

/* Evidence thumbnails shown back to the tester after they record a result. */
.evidence-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.evidence-strip .evidence-thumb { border-radius: 8px; border: 1px solid var(--line); }

/* Manual feature flags on the agency profile — a dense, scannable grid of checkboxes. */
.tickbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 14px; margin-bottom: 14px; }
.tickbox { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.tickbox input { width: 16px; height: 16px; flex: none; }
.panel h3 { margin: 14px 0 6px; font-size: .95rem; }
.manual-flags { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 14px; }
.manual-flag { display: flex; align-items: center; gap: 8px; font-size: .9rem; padding: 4px 0; }
.manual-flag input { width: 16px; height: 16px; flex: none; }

.row-actions { display: inline-flex; align-items: center; gap: 6px; margin: 0 8px 4px 0; }

/* A tier badge that is also the control for changing it (admin asset list). */
.badge-button { cursor: pointer; border: none; font: inherit; }
.badge-button:hover { filter: brightness(1.12); }
