/* ============================================================
   Cams Workspace — design system
   Brand: white / charcoal / orange (#ff9800). Modern, flat-ish,
   tasteful depth. Zero external dependencies (self-host, offline).
   ============================================================ */
:root {
  --bg: #f5f6f8;
  --bg-grad: radial-gradient(1200px 600px at 100% -10%, #fff4e2 0%, rgba(255,244,226,0) 55%), #f5f6f8;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --ink: #1b222c;
  --text: #3a4654;
  --muted: #6b7785;
  --soft: #9aa6b2;
  --line: #e7eaef;
  --line-2: #eef1f5;

  --accent: #ff9800;
  --accent-d: #f57c00;
  --accent-2: #ff6d00;
  --accent-grad: linear-gradient(135deg, #ffab2e 0%, #ff7a00 100%);
  --accent-bg: #fff4e2;
  --accent-ink: #9a4d10;
  --on-accent: #3a2207;   /* dark text/icons on a bright-orange fill (~7:1 contrast) */
  --ring: rgba(255,152,0,.30);

  --ok: #1f8a4c;   --ok-bg: #e9f6ee;
  --warn: #c2710a; --warn-bg: #fdf2e0;
  --danger: #d64545; --danger-bg: #fdecec;
  --info: #0b62c4; --info-bg: #ecf3fc;

  --charcoal: #161c25;
  --charcoal-2: #1e2733;

  --radius: 16px;
  --radius-sm: 11px;
  --radius-xs: 8px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.05);
  --shadow: 0 6px 20px rgba(16,24,40,.08);
  --shadow-lg: 0 18px 48px rgba(16,24,40,.16);
  --glow: 0 10px 26px rgba(255,122,0,.34);

  --sidebar-w: 252px;
  --font: "Segoe UI", Inter, system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "JetBrains Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-grad);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent-d); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); margin: 0; letter-spacing: -.01em; }
h1 { font-size: 24px; font-weight: 700; }
h2 { font-size: 17px; font-weight: 650; }
.muted { color: var(--muted); }
.soft { color: var(--soft); }
code { font-family: var(--mono); font-size: .88em; background: #f1f3f6; color: #b3541e; padding: 1px 6px; border-radius: 6px; }

/* reveal on load (only when JS is present — content is visible by default) */
.js .reveal { opacity: 0; transform: translateY(10px); }
.js body.is-loaded .reveal { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js body.is-loaded .reveal.d1 { transition-delay: .06s; }
.js body.is-loaded .reveal.d2 { transition-delay: .12s; }
.js body.is-loaded .reveal.d3 { transition-delay: .18s; }
.js body.is-loaded .reveal.d4 { transition-delay: .24s; }
.js body.is-loaded .reveal.d5 { transition-delay: .30s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .orb, .hero-card .dot { animation: none; }
}

/* ============================================================
   AUTH / HERO  (split screen)
   ============================================================ */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }

.hero {
  position: relative; overflow: hidden; color: #fff;
  /* Orange glows kept to the right edge / corners so the left text column stays
     dark and legible. Base is deep charcoal for high text contrast. */
  background: radial-gradient(540px 430px at 112% 114%, rgba(255,104,30,.50) 0%, rgba(255,104,30,0) 56%),
              radial-gradient(460px 380px at 104% -10%, rgba(255,150,60,.38) 0%, rgba(255,150,60,0) 60%),
              linear-gradient(150deg, #171c24 0%, #12161e 55%, #0e121a 100%);
  padding: 48px 56px; display: flex; flex-direction: column;
}
.hero::after { /* subtle dot grid texture */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 80%);
  pointer-events: none;
}
.orb { position: absolute; border-radius: 50%; pointer-events: none; }
.orb.a { width: 300px; height: 300px; background: #ff7a1f; opacity: .32; filter: blur(64px); top: -90px; right: -70px; animation: float 12s ease-in-out infinite; }
.orb.b { width: 280px; height: 280px; background: #ff5a1c; opacity: .28; filter: blur(72px); bottom: -120px; right: 4%; animation: float 15s ease-in-out infinite reverse; }
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(18px,-22px); } }

.hero-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-grad);
  display: grid; place-items: center; color: #fff; box-shadow: var(--glow); flex: none; }
.logo-mark svg { width: 22px; height: 22px; }
.logo-word { font-weight: 750; font-size: 18px; letter-spacing: -.02em; color: #fff; }
.logo-word small { display: block; font-weight: 500; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #ffd7a6; }

.hero-body { position: relative; z-index: 1; margin: auto 0; max-width: 460px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600;
  letter-spacing: .04em; color: #ffd7a6; background: rgba(255,170,70,.12); border: 1px solid rgba(255,170,70,.25);
  padding: 6px 12px; border-radius: 999px; }
.hero-body h1 { color: #fff; font-size: 40px; line-height: 1.08; font-weight: 760; margin: 20px 0 0; letter-spacing: -.025em; }
.hero-body h1 .hl { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-body p.lede { color: rgba(255,255,255,.82); font-size: 16px; margin: 16px 0 0; max-width: 420px; }

.hero-points { position: relative; z-index: 1; list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.hero-points li { display: flex; align-items: center; gap: 13px; color: rgba(255,255,255,.92); font-size: 14.5px; }
.hero-points .pico { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #ffb259; }
.hero-points .pico svg { width: 18px; height: 18px; }

/* live chip card floating in hero */
.hero-card { position: relative; z-index: 1; margin-top: 34px; max-width: 360px;
  background: rgba(10,13,18,.42); border: 1px solid rgba(255,255,255,.16); border-radius: 14px;
  padding: 14px 16px; backdrop-filter: blur(8px); }
.hero-card .row { display: flex; align-items: center; gap: 12px; }
.hero-card .dot { width: 9px; height: 9px; border-radius: 50%; background: #34d27b; box-shadow: 0 0 0 0 rgba(52,210,123,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,210,123,.55); } 70% { box-shadow: 0 0 0 9px rgba(52,210,123,0); } 100% { box-shadow: 0 0 0 0 rgba(52,210,123,0); } }
.hero-card .who { color: #fff; font-weight: 600; font-size: 14px; }
.hero-card .meta { color: rgba(255,255,255,.74); font-size: 12.5px; }
.hero-card .tick { margin-left: auto; color: #34d27b; }

.hero-foot { position: relative; z-index: 1; margin-top: auto; color: rgba(255,255,255,.58); font-size: 12.5px; padding-top: 28px; }

/* form panel ------------------------------------------------------ */
.auth-panel { background: var(--surface); display: flex; align-items: center; justify-content: center; padding: 40px; overflow-y: auto; }
.auth-card { width: 100%; max-width: 392px; }
.auth-card .kicker { color: var(--accent-d); font-weight: 650; font-size: 13px; letter-spacing: .03em; }
.auth-card h1 { font-size: 27px; margin: 6px 0 4px; }
.auth-card .sub { color: var(--muted); font-size: 14.5px; margin: 0 0 24px; }

.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .lead { position: absolute; left: 13px; color: var(--soft); display: grid; place-items: center; pointer-events: none; }
.input-wrap .lead svg { width: 18px; height: 18px; }
.input-wrap input { padding-left: 40px; }
.input-wrap .toggle { position: absolute; right: 8px; background: none; border: 0; color: var(--soft); cursor: pointer;
  padding: 7px; border-radius: 8px; display: grid; place-items: center; }
.input-wrap .toggle:hover { color: var(--accent-d); background: var(--accent-bg); }
.input-wrap .toggle svg { width: 18px; height: 18px; }

input, select, textarea {
  width: 100%; padding: 11px 13px; font-family: inherit; font-size: 14.5px; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; outline: none;
}
input::placeholder { color: var(--soft); }
input:hover, select:hover, textarea:hover { border-color: #d3d9e0; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); background: #fffdfa; }
input[readonly] { background: var(--surface-2); color: var(--muted); }
select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7785' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }

.row-between { display: flex; align-items: center; justify-content: space-between; }
.checkline { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.checkline input { width: auto; }

/* buttons --------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font-family: inherit; font-size: 14.5px; font-weight: 650; line-height: 1; padding: 12px 18px;
  border-radius: var(--radius-sm); border: 1.5px solid transparent; color: var(--on-accent); background: var(--accent-grad);
  box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .2s ease, filter .15s ease; }
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--glow); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn.block { width: 100%; }
.btn-lg { padding: 13px 20px; font-size: 15px; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--surface-2); border-color: #d3d9e0; box-shadow: var(--shadow-sm); }
.btn-soft { background: var(--accent-bg); color: var(--accent-ink); box-shadow: none; }
.btn-soft:hover { background: #ffe9c9; box-shadow: none; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-icon { padding: 8px; border-radius: 9px; }
.btn[disabled] { opacity: .65; pointer-events: none; }
.btn.is-loading { color: transparent; position: relative; }
.btn.is-loading::after { content: ""; position: absolute; width: 17px; height: 17px; border: 2.5px solid rgba(58,34,7,.35);
  border-top-color: var(--on-accent); border-radius: 50%; animation: spin .6s linear infinite; }
.btn-danger.is-loading::after { border-color: rgba(255,255,255,.5); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* oauth ----------------------------------------------------------- */
.sep { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--soft); font-size: 12.5px; }
.sep::before, .sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-oauth { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 11px 16px;
  font-weight: 600; font-size: 14.5px; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s, transform .12s; }
.btn-oauth:hover { border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); transform: translateY(-1px); text-decoration: none; }
.btn-oauth img, .btn-oauth .oauth-logo { width: 20px; height: 20px; }
.auth-foot { margin-top: 22px; text-align: center; color: var(--muted); font-size: 14px; }

/* ============================================================
   APP SHELL  (sidebar + content)
   ============================================================ */
.app { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-w) 1fr; }
.scrim { display: none; }  /* mobile-only overlay; never a desktop grid item */

.sidebar { position: sticky; top: 0; align-self: start; height: 100vh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #161c25, #11151c); color: #cdd5df; padding: 20px 16px; }
.sidebar .brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 18px; }
.sidebar .brand .logo-word { font-size: 16px; }
.sidebar .brand .logo-word small { font-size: 10px; }
.nav { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.nav .nlabel { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #6b7888; padding: 14px 12px 6px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #b7c0cc;
  font-size: 14.5px; font-weight: 550; transition: background .15s, color .15s; }
.nav a svg { width: 19px; height: 19px; opacity: .85; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.nav a.active { background: var(--accent-grad); color: var(--on-accent); box-shadow: var(--glow); font-weight: 650; }
.nav a.active svg { opacity: 1; }
.sidebar .spacer { flex: 1; }
.side-org { display: flex; align-items: center; gap: 11px; padding: 11px; border-radius: 12px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07); }
.side-org .avatar { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-grad); color: var(--on-accent);
  display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.side-org .name { font-size: 13.5px; font-weight: 600; color: #fff; line-height: 1.2; }
.side-org .role { font-size: 12px; color: #8b95a3; }
.side-org form { margin-left: auto; }
.side-org .logout { background: none; border: 0; color: #8b95a3; cursor: pointer; padding: 7px; border-radius: 8px; display: grid; place-items: center; }
.side-org .logout:hover { color: #fff; background: rgba(255,255,255,.08); }
.side-org .logout svg { width: 18px; height: 18px; }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px;
  padding: 14px 28px; background: rgba(245,246,248,.8); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .hamb { display: none; background: none; border: 0; cursor: pointer; color: var(--ink); padding: 6px; }
.topbar h1 { font-size: 20px; }
.topbar .crumb { color: var(--soft); font-size: 13px; }
.topbar .grow { flex: 1; }
.searchbox { position: relative; display: flex; align-items: center; }
.searchbox svg { position: absolute; left: 11px; width: 17px; height: 17px; color: var(--soft); }
.searchbox input { padding: 9px 12px 9px 35px; width: 230px; font-size: 13.5px; border-radius: 10px; background: var(--surface); }
.icon-btn { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--accent-d); border-color: var(--accent); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .badge-dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); }

.content { padding: 26px 28px 48px; max-width: 1180px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.page-head .lead-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.toolbar { display: flex; align-items: center; gap: 10px; }

/* cards ----------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card.pad { padding: 22px 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line-2); }
.card-head h2 { display: flex; align-items: center; gap: 9px; }
.card-head h2 svg { width: 18px; height: 18px; color: var(--accent-d); }

/* stat grid ------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .25s ease; position: relative; overflow: hidden; }
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; }
.stat .ico svg { width: 21px; height: 21px; }
.stat .ico.o { background: var(--accent-bg); color: var(--accent-d); }
.stat .ico.g { background: var(--ok-bg); color: var(--ok); }
.stat .ico.b { background: var(--info-bg); color: var(--info); }
.stat .ico.p { background: #f0ecfa; color: #6a4bbd; }
.stat .num { font-size: 32px; font-weight: 760; color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.stat .lab { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.stat .trend { position: absolute; top: 18px; right: 18px; font-size: 12px; font-weight: 650; padding: 3px 8px; border-radius: 999px; }
.stat .trend.up { color: var(--ok); background: var(--ok-bg); }
.stat .trend.flat { color: var(--muted); background: var(--line-2); }

/* dashboard two-column */
.dash-cols { display: grid; grid-template-columns: 1.7fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .dash-cols { grid-template-columns: 1fr; } }

/* quick action tiles */
.qa { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qa a { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-radius: var(--radius-sm);
  border: 1.5px dashed var(--line); color: var(--ink); font-weight: 600; font-size: 14px; transition: all .15s; }
.qa a:hover { border-color: var(--accent); border-style: solid; background: var(--accent-bg); color: var(--accent-ink); text-decoration: none; }
.qa a .qi { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-bg); color: var(--accent-d); display: grid; place-items: center; flex: none; }
.qa a:hover .qi { background: #fff; }
.qa a .qi svg { width: 18px; height: 18px; }

/* tables ---------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: separate; border-spacing: 0; }
table.data th { text-align: left; font-size: 11.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase;
  color: var(--soft); padding: 13px 18px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
table.data th:first-child { border-top-left-radius: 0; }
table.data td { padding: 14px 18px; border-bottom: 1px solid var(--line-2); font-size: 14px; color: var(--text); vertical-align: middle; }
table.data tbody tr { transition: background .12s; }
table.data tbody tr:hover { background: #fffaf2; }
table.data tbody tr:last-child td { border-bottom: 0; }
.cell-strong { font-weight: 600; color: var(--ink); }
.cell-mono { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.uavatar { display: inline-flex; align-items: center; gap: 10px; }
.uavatar .av { width: 32px; height: 32px; border-radius: 9px; background: var(--accent-bg); color: var(--accent-d);
  display: grid; place-items: center; font-weight: 700; font-size: 12.5px; flex: none; }
.actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.actions form { display: inline; margin: 0; }

/* badges / tags --------------------------------------------------- */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.tag .tdot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-online, .tag-valid { color: var(--ok); background: var(--ok-bg); }
.tag-offline, .tag-invalid { color: var(--danger); background: var(--danger-bg); }
.tag-pending { color: var(--warn); background: var(--warn-bg); }
.tag-neutral { color: var(--muted); background: var(--line-2); }
.tag-accent { color: var(--accent-ink); background: var(--accent-bg); }

/* empty state ----------------------------------------------------- */
.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty .eico { width: 54px; height: 54px; border-radius: 16px; background: var(--accent-bg); color: var(--accent-d);
  display: grid; place-items: center; margin: 0 auto 14px; }
.empty .eico svg { width: 26px; height: 26px; }
.empty p { margin: 0 0 14px; }

/* form card ------------------------------------------------------- */
.form-card { max-width: 560px; margin: 0 auto; }
.form-card .fc-head { padding: 22px 26px; border-bottom: 1px solid var(--line-2); }
.form-card .fc-head .ic { width: 44px; height: 44px; border-radius: 13px; background: var(--accent-bg); color: var(--accent-d);
  display: grid; place-items: center; margin-bottom: 12px; }
.form-card .fc-head .ic svg { width: 22px; height: 22px; }
.form-card .fc-body { padding: 24px 26px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-actions { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.hint { color: var(--soft); font-size: 12.5px; margin-top: 6px; }

/* copy-able endpoint field (settings) -------------------------------- */
.copy-row { display: flex; align-items: center; gap: 10px; }
.copy-row code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 13.5px; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; overflow-x: auto; white-space: nowrap; }
.copy-row .btn { flex: none; }
.btn.copied { background: var(--ok); color: #fff; border-color: var(--ok); box-shadow: none; }
.btn.copied::after { display: none; }
@media (max-width: 560px) { .copy-row { flex-direction: column; align-items: stretch; } .copy-row .btn { width: 100%; } }

/* flash toast ----------------------------------------------------- */
.flash { display: flex; align-items: center; gap: 11px; background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); box-shadow: var(--shadow); border-radius: var(--radius-sm); padding: 13px 16px;
  margin-bottom: 20px; color: var(--ink); font-size: 14px; }
.flash svg { width: 20px; height: 20px; color: var(--accent-d); flex: none; }
.flash .x { margin-left: auto; background: none; border: 0; cursor: pointer; color: var(--soft); padding: 4px; display: grid; place-items: center; }
.flash .x:hover { color: var(--ink); }
.flash-float { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 100; width: calc(100% - 32px); max-width: 440px; animation: drop .4s cubic-bezier(.2,.8,.2,1); }
.flash-float .flash { margin: 0; box-shadow: var(--shadow-lg); }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -14px); } to { opacity: 1; transform: translate(-50%, 0); } }
.topbar .crumb { line-height: 1.1; margin-bottom: 1px; }

/* responsive ------------------------------------------------------ */
@media (max-width: 980px) {
  .auth { grid-template-columns: 1fr; }
  .hero { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 60; width: 270px; transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
  .app.nav-open .sidebar { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(10,14,20,.45); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 50; }
  .app.nav-open .scrim { opacity: 1; pointer-events: auto; }
  .topbar .hamb { display: grid; place-items: center; }
  .searchbox { display: none; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .qa { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .content { padding: 18px 16px 40px; }
  .auth-panel { padding: 28px 22px; }
}
