/* TempzSoft Control Center — brand UI and motion.
   Colours follow the TempzSoft logo: navy #12204f and cyan #00a3d4.
   Every animation is switched off under prefers-reduced-motion (end of file). */

@font-face { font-family: "Playfair Display"; src: url("fonts/playfair-display.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Kaushan Script"; src: url("fonts/kaushan-script.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2-variations"), url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --bg: #060b1d; --bg-2: #0a1433;
  --surface: rgba(226, 236, 255, .035); --surface-2: rgba(226, 236, 255, .065); --surface-3: rgba(226, 236, 255, .1);
  --solid: #0c1430; --pop: #111a38;
  --line: rgba(226, 236, 255, .09); --line-2: rgba(226, 236, 255, .17);
  --text: #f1f5ff; --muted: rgba(226, 236, 255, .66); --faint: rgba(226, 236, 255, .44);
  --accent: #22b8e8; --accent-2: #5b95ff; --accent-soft: rgba(34, 184, 232, .14); --accent-ink: #fff;
  --grad: linear-gradient(120deg, #00a3d4 0%, #2f8cff 60%, #3d6bff 100%);
  --navy: #12204f; --cyan: #00a3d4;
  --ok: #3ddc97; --ok-soft: rgba(61, 220, 151, .12);
  --bad: #ff6767; --bad-soft: rgba(255, 103, 103, .12);
  --warn: #ffb547; --warn-soft: rgba(255, 181, 71, .12);
  --code: rgba(226, 236, 255, .08);
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 48px -24px rgba(0, 0, 0, .7);
  --shadow-pop: 0 24px 60px -12px rgba(0, 0, 0, .65), 0 0 0 1px var(--line-2);
  --glow: 0 10px 30px -8px rgba(0, 163, 212, .55);
  --orb-a: rgba(0, 163, 212, .26); --orb-b: rgba(61, 107, 255, .2); --orb-c: rgba(36, 57, 122, .55);
  --r: 16px; --r-sm: 10px;
  --ease: cubic-bezier(.22, 1, .36, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f7fc; --bg-2: #eaf0f8;
    --surface: rgba(255, 255, 255, .78); --surface-2: rgba(18, 32, 79, .045); --surface-3: rgba(18, 32, 79, .08);
    --solid: #fff; --pop: #fff;
    --line: rgba(18, 32, 79, .1); --line-2: rgba(18, 32, 79, .17);
    --text: #0b1430; --muted: rgba(11, 20, 48, .64); --faint: rgba(11, 20, 48, .46);
    --accent: #0088b8; --accent-2: #2f6bff; --accent-soft: rgba(0, 136, 184, .1);
    --ok: #0f8a55; --ok-soft: rgba(15, 138, 85, .1);
    --bad: #c62828; --bad-soft: rgba(198, 40, 40, .08);
    --warn: #a35f00; --warn-soft: rgba(163, 95, 0, .1);
    --code: rgba(18, 32, 79, .06);
    --shadow: 0 1px 2px rgba(11, 20, 48, .04), 0 18px 40px -24px rgba(11, 20, 48, .25);
    --shadow-pop: 0 24px 60px -16px rgba(11, 20, 48, .28), 0 0 0 1px var(--line);
    --glow: 0 10px 26px -8px rgba(0, 136, 184, .45);
    --orb-a: rgba(0, 163, 212, .14); --orb-b: rgba(61, 107, 255, .1); --orb-c: rgba(18, 32, 79, .06);
    color-scheme: light;
  }
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 15px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01", "ss03"; letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--accent); color: #fff; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--accent-2); }
h1, h2 { line-height: 1.2; margin: 0 0 .9rem; letter-spacing: -.025em; font-weight: 650; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.08rem; }
p { margin: 0 0 1rem; }
code { font-family: var(--mono); background: var(--code); padding: .12em .42em; border-radius: 6px; font-size: .84em; letter-spacing: 0; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .nowrap { white-space: nowrap; }
.i { width: 18px; height: 18px; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* --------------------------------------------------------- ambient backdrop */

.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; will-change: transform; }
.orb-a { width: 60vmax; height: 60vmax; left: -18vmax; top: -30vmax; background: radial-gradient(closest-side, var(--orb-a), transparent); animation: drift-a 26s var(--ease) infinite alternate; }
.orb-b { width: 50vmax; height: 50vmax; right: -20vmax; top: -12vmax; background: radial-gradient(closest-side, var(--orb-b), transparent); animation: drift-b 32s var(--ease) infinite alternate; }
.orb-c { width: 46vmax; height: 46vmax; left: 30vw; bottom: -34vmax; background: radial-gradient(closest-side, var(--orb-c), transparent); animation: drift-c 38s var(--ease) infinite alternate; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 75%);
  animation: grid-pan 60s linear infinite;
}
.grain {
  position: absolute; inset: -50%; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift-a { to { transform: translate3d(8vw, 6vh, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(-10vw, 10vh, 0) scale(.92); } }
@keyframes drift-c { to { transform: translate3d(-12vw, -8vh, 0) scale(1.1); } }
@keyframes grid-pan { to { background-position: 56px 56px, 56px 56px; } }

/* Top loading bar (shown while a page that calls the sites is on its way). */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 100; pointer-events: none;
  background: var(--grad); box-shadow: 0 0 12px var(--accent);
  transform: scaleX(0); transform-origin: 0 50%; opacity: 0;
}
.progress.run { opacity: 1; animation: load 9s cubic-bezier(.1, .7, .2, 1) forwards; }
.progress.done { opacity: 0; transform: scaleX(1); transition: opacity .35s .1s, transform .2s; }
@keyframes load { 0% { transform: scaleX(0); } 12% { transform: scaleX(.35); } 100% { transform: scaleX(.92); } }

/* ------------------------------------------------------------------ header */

.top {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  view-transition-name: top;
}
.top-in { max-width: 1200px; margin: 0 auto; padding: .7rem 1.25rem; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--text); text-decoration: none; flex: none; }
.brand:hover { color: var(--text); }
.brand-badge { display: inline-flex; align-items: center; padding: 7px 12px; border-radius: 12px; background: #fff; box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .55), 0 0 0 1px var(--line); transition: transform .5s var(--spring), box-shadow .4s; }
.brand-badge img { display: block; height: 34px; width: auto; }
.brand:hover .brand-badge { transform: translateY(-1px) scale(1.02); }
.brand-sub { font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: .01em; white-space: nowrap; }
@keyframes sheen { 0%, 70% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }

.top.scrolled { background: color-mix(in srgb, var(--bg) 86%, transparent); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6); }
.top { transition: background .3s, box-shadow .3s; }
.nav, .tabs { position: relative; display: flex; gap: .2rem; }
.nav { flex: 1; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.nav::-webkit-scrollbar { display: none; }
.nav.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.nav.fade-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%); mask-image: linear-gradient(90deg, transparent, #000 15%); }
.nav.fade-l.fade-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.nav a, .tabs a {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap;
  padding: .45rem .8rem; border-radius: 9px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: .92rem;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav a .i { width: 16px; height: 16px; opacity: .8; transition: transform .35s var(--spring), opacity .2s; }
.nav a:hover, .tabs a:hover { color: var(--text); }
.nav a:hover .i { transform: translateY(-1px) scale(1.12); opacity: 1; }
.nav a[aria-current], .tabs a[aria-current] { color: var(--text); background: var(--surface-2); }
.nav a[aria-current] .i { color: var(--accent); opacity: 1; }
/* With JS a single indicator slides between items instead. */
.has-ind > a[aria-current] { background: transparent; }
.ind {
  position: absolute; z-index: 0; top: 0; left: 0; height: 100%; border-radius: 9px; background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line); pointer-events: none;
  transition: transform .5s var(--spring), width .5s var(--spring), opacity .3s;
}
.nav .ind { top: 2px; height: calc(100% - 4px); }

.me { display: flex; align-items: center; gap: .35rem; flex: none; }
.me form { margin: 0; }
.who { display: inline-flex; align-items: center; gap: .55rem; padding: .25rem .7rem .25rem .25rem; border-radius: 99px; color: var(--text); text-decoration: none; font-weight: 550; font-size: .9rem; border: 1px solid transparent; transition: background .25s, border-color .25s; }
.who:hover, .who[aria-current] { color: var(--text); background: var(--surface-2); border-color: var(--line); }
.avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; font-size: .78rem; font-weight: 700; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--line-2); }
button.signout { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .6rem; border-radius: 9px; }
button.signout .i { width: 16px; height: 16px; transition: transform .3s var(--spring); }
button.signout:hover { background: var(--surface-2); }
button.signout:hover .i { transform: translateX(2px); }

/* ------------------------------------------------------------------ layout */

main { width: 100%; max-width: 1200px; margin: 0 auto; padding: 2rem 1.25rem 3rem; flex: 1; view-transition-name: page; }
.page {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); letter-spacing: -.035em; margin: .2rem 0 1.4rem;
  background: linear-gradient(180deg, var(--text) 30%, color-mix(in srgb, var(--text) 55%, transparent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise .8s var(--ease) backwards;
}
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.page-head .page { margin-bottom: 1rem; }
.page-head > .btn { animation: rise .8s var(--ease) .08s backwards; }
.tabs { margin: 0 0 1.4rem; padding: 4px; width: max-content; max-width: 100%; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); animation: rise .8s var(--ease) .06s backwards; }
.tabs a { padding: .4rem 1rem; }
.foot { max-width: 1200px; width: 100%; margin: 0 auto; padding: 1.2rem 1.25rem 2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--faint); font-size: .8rem; border-top: 1px solid var(--line); }
.foot span { display: inline-flex; align-items: center; gap: .45rem; }
.foot .i { width: 15px; height: 15px; color: var(--ok); }

/* -------------------------------------------------------------------- cards */

.card {
  position: relative; isolation: isolate;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.4rem; margin-bottom: 1.1rem; box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: rise .75s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 75ms + 80ms);
}
/* Pointer spotlight + glowing edge (position fed by app.js). */
.card::before, .card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .45s var(--ease); z-index: -1; }
.card::before { background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 42%); }
.card::after {
  padding: 1px; z-index: 1;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 70%, transparent), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card h2 { display: flex; align-items: center; gap: .5rem; }
.card.narrow { max-width: 440px; margin: 0 auto; padding: 2rem; }

.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.grid .card { margin: 0; display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.grid .card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow), 0 30px 60px -30px rgba(0, 163, 212, .35); }
.card-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.card-head h2 { margin: 0; flex: 1; min-width: 0; display: block; }
.card-head h2 a { color: var(--text); text-decoration: none; }
.card-head h2 a:hover { color: var(--accent); }
.host { display: block; margin-top: .1rem; font-size: .78rem; font-weight: 450; letter-spacing: 0; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  font-weight: 750; font-size: 1.05rem; color: #fff; background: var(--grad);
  box-shadow: var(--glow); transition: transform .6s var(--spring);
}
.card:hover .mono { transform: rotate(-6deg) scale(1.06); }
.card-foot { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.grid .card-foot { margin-top: 1.1rem; }
.grid .card > .card-foot:last-child { margin-top: auto; }
.grid .card > dl + .card-foot { margin-top: 1.1rem; }
.card.reveal { border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: linear-gradient(160deg, var(--ok-soft), var(--surface) 60%); animation: rise .7s var(--ease) backwards, reveal-glow 2.4s var(--ease) .4s 2; }
@keyframes reveal-glow { 50% { box-shadow: var(--shadow), 0 0 0 6px color-mix(in srgb, var(--ok) 18%, transparent); } }

/* Dashboard summary strip (built by app.js from the cards). */
.summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-bottom: 1.1rem; }
.metric {
  position: relative; padding: 1.05rem 1.2rem; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface);
  animation: rise .75s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 70ms);
  overflow: hidden;
}
.metric::after { content: ""; position: absolute; left: 1.2rem; right: 1.2rem; bottom: 0; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: 0; animation: bar 1.2s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 300ms); }
.metric.is-ok::after { background: var(--ok); } .metric.is-bad::after { background: var(--bad); }
.metric b { display: block; font-size: 1.75rem; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.metric span { font-size: .8rem; color: var(--muted); }
@keyframes bar { to { transform: scaleX(1); } }

/* ----------------------------------------------------------------- stats */

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-bottom: 1rem; }
.stat {
  position: relative; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .85rem;
  transition: transform .4s var(--spring), border-color .3s, background .3s;
  animation: rise .7s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 75ms + var(--j, 0) * 55ms + 200ms);
}
.stat:hover { transform: translateY(-2px); border-color: var(--line-2); background: var(--surface-3); }
.stat .num { display: block; font-size: 1.6rem; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat .num.nonzero { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { color: var(--muted); font-size: .78rem; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.2rem; margin: 0; font-size: .9rem; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 500; text-align: right; }
.card:not(.client) .facts dd { text-align: left; }
.warn { color: var(--warn); font-weight: 600; }

/* ------------------------------------------------------- pills, tags, flash */

.pill { display: inline-flex; align-items: center; gap: .45rem; font-size: .74rem; font-weight: 650; letter-spacing: .02em; padding: .28rem .65rem .28rem .55rem; border-radius: 99px; flex: none; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); background: var(--ok-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 25%, transparent); }
.pill.ok::before { animation: beacon 2.2s ease-out infinite; }
.pill.bad { color: var(--bad); background: var(--bad-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 30%, transparent); }
.pill.bad::before { animation: blink 1.1s steps(2, jump-none) infinite; }
@keyframes beacon { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 70%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
@keyframes blink { 50% { opacity: .25; } }
.card.client:has(.pill.bad) { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }

.tag { display: inline-block; font-size: .64rem; font-weight: 750; letter-spacing: .06em; color: #fff; background: var(--grad); border-radius: 5px; padding: .1rem .35rem; vertical-align: 1px; }
.error { color: var(--bad); }
p.error { display: flex; gap: .55rem; align-items: flex-start; background: var(--bad-soft); border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent); padding: .7rem .85rem; border-radius: var(--r-sm); font-size: .9rem; animation: shake .5s var(--ease) both; }
p.error::before { content: "!"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--bad); color: #fff; font-size: .72rem; font-weight: 800; }
@keyframes shake { 15%, 55% { transform: translateX(-5px); } 35%, 75% { transform: translateX(5px); } 100% { transform: none; } }
.empty { padding: 1.4rem 0; text-align: center; }

.flash {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: .7rem;
  border-radius: 12px; padding: .8rem 2.6rem .8rem 1rem; margin-bottom: 1.1rem; font-weight: 500; font-size: .92rem;
  border: 1px solid var(--line-2); background: var(--pop); box-shadow: var(--shadow);
  animation: flash-in .6s var(--spring) backwards;
}
.flash .i { width: 20px; height: 20px; }
.flash.ok { border-color: color-mix(in srgb, var(--ok) 40%, transparent); } .flash.ok .i { color: var(--ok); }
.flash.error { border-color: color-mix(in srgb, var(--bad) 45%, transparent); } .flash.error .i { color: var(--bad); }
.flash.info .i { color: var(--accent); }
.flash-x { position: absolute; right: .55rem; top: 50%; translate: 0 -50%; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.flash-x:hover { background: var(--surface-2); color: var(--text); }
.flash.auto::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: currentColor; opacity: .35; transform-origin: 0; animation: countdown 7s linear forwards; }
.flash.ok.auto::after { background: var(--ok); opacity: .8; }
.flash.leaving { animation: flash-out .45s var(--ease) forwards; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-12px) scale(.97); } }
@keyframes flash-out { to { opacity: 0; transform: translateY(-8px) scale(.98); margin-bottom: calc(-1 * var(--h, 50px)); } }
@keyframes countdown { to { transform: scaleX(0); } }

/* ------------------------------------------------------------------ tables */

.table-wrap { overflow-x: auto; margin: 0 -.4rem; padding: 0 .4rem; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { text-align: left; padding: .8rem .7rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .7rem; color: var(--faint); font-weight: 650; text-transform: uppercase; letter-spacing: .08em; padding-top: .3rem; }
tbody tr { transition: background .25s; animation: row-in .55s var(--ease) backwards; animation-delay: calc(var(--r, 0) * 35ms + 200ms); }
tbody tr:hover { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
tbody td:first-child { border-top-left-radius: 10px; border-bottom-left-radius: 10px; }
tbody td:last-child { border-top-right-radius: 10px; border-bottom-right-radius: 10px; }
table.log td { font-size: .87rem; vertical-align: top; }
table.log td code { white-space: nowrap; }
@keyframes row-in { from { opacity: 0; transform: translateY(8px); } }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; align-items: flex-start; }
.actions form { margin: 0; }
table.admins td:first-child strong { display: inline-flex; align-items: center; gap: .6rem; }
.ava-sm { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--surface-3); color: var(--text); font-size: .78rem; font-weight: 700; flex: none; transition: background .3s, color .3s; }
tbody tr:hover .ava-sm { background: var(--grad); color: #fff; }

/* ------------------------------------------------------------------- forms */

.stack { display: flex; flex-direction: column; gap: .95rem; }
.narrow-form, .inline-form { max-width: 440px; }
label { display: flex; flex-direction: column; gap: .4rem; font-weight: 550; font-size: .86rem; color: var(--muted); }
label.radio { flex-direction: row; align-items: center; gap: .6rem; font-weight: 500; color: var(--text); cursor: pointer; }
input:not([type=radio]):not([type=hidden]) {
  font: inherit; font-size: .95rem; color: var(--text); width: 100%;
  padding: .72rem .9rem; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--solid) 70%, transparent);
  transition: border-color .25s, box-shadow .3s var(--ease), background .25s;
}
input::placeholder { color: var(--faint); }
input:not([type=radio]):hover { border-color: color-mix(in srgb, var(--text) 30%, transparent); }
input:not([type=radio]):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--solid); }
input[type=radio] {
  appearance: none; -webkit-appearance: none; margin: 0; flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--line-2); display: grid; place-items: center; cursor: pointer; transition: border-color .2s;
}
input[type=radio]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .35s var(--spring); }
input[type=radio]:checked { border-color: var(--accent); }
input[type=radio]:checked::after { transform: scale(1); }
input.pin { font-family: var(--mono); font-size: 1.3rem; letter-spacing: .45em; text-indent: .45em; text-align: center; padding: .8rem; caret-color: var(--accent); font-weight: 600; }
.pw { position: relative; display: block; }
.pw input { padding-right: 2.8rem !important; }
.pw-eye { position: absolute; right: .35rem; top: 50%; translate: 0 -50%; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--faint); cursor: pointer; display: grid; place-items: center; }
.pw-eye:hover { color: var(--text); background: var(--surface-2); }
.pw-eye .i { width: 17px; height: 17px; }
.rules { display: flex; gap: .9rem; flex-wrap: wrap; margin: -.35rem 0 0; padding: 0; list-style: none; font-size: .78rem; color: var(--faint); font-weight: 500; }
.rules li { display: inline-flex; align-items: center; gap: .35rem; transition: color .3s; }
.rules li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; transition: all .35s var(--spring); }
.rules li.met { color: var(--ok); }
.rules li.met::before { background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/10px no-repeat; border-color: var(--ok); transform: scale(1.1); }
.own-only { transition: opacity .3s var(--ease), transform .3s var(--ease); }
.js .own-only { display: none; }
.js .own-only.show { display: block; animation: rise .4s var(--ease) backwards; }

/* ----------------------------------------------------------------- buttons */

button, .btn {
  position: relative; overflow: hidden; isolation: isolate;
  font: inherit; font-size: .88rem; font-weight: 600; letter-spacing: -.005em; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .55rem .95rem; border-radius: var(--r-sm); text-decoration: none;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  transition: transform .35s var(--spring), background .25s, border-color .25s, box-shadow .35s var(--ease), color .25s;
}
.btn:hover, button:hover { border-color: color-mix(in srgb, var(--text) 32%, transparent); background: var(--surface-3); color: var(--text); transform: translateY(-1px); }
button:active, .btn:active { transform: translateY(0) scale(.97); transition-duration: .1s; }
.btn.ghost { background: transparent; }
button.primary {
  background: var(--grad); background-size: 160% 160%; background-position: 0% 50%; color: #fff; border-color: transparent;
  padding: .75rem 1.15rem; font-size: .93rem; box-shadow: var(--glow);
}
button.primary:hover { background-position: 100% 50%; box-shadow: 0 16px 36px -10px rgba(0, 163, 212, .7); color: #fff; }
button.primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
button.primary:hover::after { transform: translateX(120%); }
button.danger { background: var(--bad); border-color: transparent; color: #fff; box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--bad) 80%, transparent); }
button.danger:hover { background: color-mix(in srgb, var(--bad) 88%, #000); color: #fff; }
button.link { background: none; border: 0; padding: 0; color: var(--muted); font-weight: 500; overflow: visible; }
button.link:hover { color: var(--text); transform: none; }
.ripple { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .22; transform: scale(0); animation: ripple .65s var(--ease) forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.is-loading { pointer-events: none; color: transparent !important; }
.is-loading .spin { position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn.is-loading .spin, button:not(.primary):not(.danger).is-loading .spin { border-color: var(--line-2); border-top-color: var(--text); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- popover */

details.pop { position: relative; }
.card:has(details.pop[open]), tr:has(details.pop[open]) { z-index: 20; position: relative; }
details.pop summary { list-style: none; }
details.pop summary::-webkit-details-marker { display: none; }
details.pop[open] summary { background: var(--surface-3); border-color: var(--line-2); }
details.pop[open] form {
  position: absolute; right: 0; top: calc(100% + .5rem); z-index: 30; width: 310px;
  background: var(--pop); border-radius: 14px; padding: 1.1rem; box-shadow: var(--shadow-pop);
  transform-origin: top right; animation: pop .38s var(--spring) both;
}
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.94); } }

/* ------------------------------------------------------ copyable keys */

code.key { display: inline-block; font-size: 1rem; letter-spacing: .06em; word-break: break-all; cursor: pointer; padding: .4rem .65rem; border: 1px dashed var(--line-2); transition: border-color .25s, background .25s; }
code.key:hover { border-color: var(--accent); background: var(--accent-soft); }
code.key.big { font-size: 1.3rem; padding: .6rem .9rem; position: relative; overflow: hidden; }
code.key.big::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .18) 50%, transparent 70%); transform: translateX(-100%); animation: sheen 3.5s var(--ease) .6s infinite; }
code.key.copied { border-color: var(--ok); border-style: solid; }

@keyframes brackets { to { inset: -12px; opacity: .7; } }

/* ------------------------------------------------------------------- toast */

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 90; translate: -50% 0;
  display: flex; align-items: center; gap: .55rem; padding: .7rem 1rem; border-radius: 12px;
  background: var(--pop); color: var(--text); box-shadow: var(--shadow-pop); font-size: .88rem; font-weight: 550;
  animation: toast-in .45s var(--spring) both;
}
.toast .i { color: var(--ok); width: 18px; height: 18px; }
.toast.leaving { animation: toast-out .3s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.95); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px) scale(.97); } }

/* ------------------------------------------------------------ confirm modal */

dialog.confirm {
  border: 0; padding: 0; border-radius: 18px; width: min(420px, calc(100vw - 2rem));
  background: var(--pop); color: var(--text); box-shadow: var(--shadow-pop);
}
dialog.confirm[open] { animation: modal-in .45s var(--spring) both; }
dialog.confirm::backdrop { background: rgba(5, 5, 6, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .3s ease both; }
dialog.confirm.closing { animation: modal-out .22s var(--ease) forwards; }
dialog.confirm.closing::backdrop { animation: fade .22s ease reverse forwards; }
.confirm-in { padding: 1.5rem; }
.confirm-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--bad-soft); color: var(--bad); margin-bottom: 1rem; }
.confirm-ic .i { width: 22px; height: 22px; }
.confirm h3 { margin: 0 0 .4rem; font-size: 1.1rem; letter-spacing: -.02em; }
.confirm p { color: var(--muted); font-size: .92rem; }
.confirm-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.3rem; }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.95); } }
@keyframes modal-out { to { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes fade { from { opacity: 0; } }

/* -------------------------------------------------------------- sign-in pages */

.auth { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); min-height: 100vh; }
.auth-main { display: flex; flex-direction: column; justify-content: center; padding: 3rem 1.5rem; max-width: none; }
.auth-main > .flash { width: 100%; max-width: 440px; margin-left: auto; margin-right: auto; }
.auth .card.narrow { width: 100%; background: color-mix(in srgb, var(--pop) 80%, transparent); box-shadow: var(--shadow-pop); animation: auth-card .9s var(--ease) .15s backwards; }
.auth .card.narrow h1 { font-size: 1.65rem; letter-spacing: -.035em; }
.card.narrow > p:last-child:has(> a:only-child) { margin: 1.1rem 0 0; text-align: center; font-size: .88rem; }
.card.narrow > p:last-child:has(> a:only-child) a { color: var(--muted); text-decoration: none; }
.card.narrow > p:last-child:has(> a:only-child) a:hover { color: var(--text); }
.card.narrow > p:last-child:has(> a:only-child) a::before { content: "← "; }
@keyframes auth-card { from { opacity: 0; transform: translateY(24px) scale(.98); filter: blur(6px); } }

.showcase {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 2.2rem;
  padding: 2.5rem clamp(1.5rem, 4vw, 3.5rem); border-right: 1px solid var(--line);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 55%);
}
.showcase .brand { animation: rise .8s var(--ease) backwards; }
.pitch { max-width: 520px; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.1rem; animation: rise .8s var(--ease) .1s backwards; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: beacon-accent 2s ease-out infinite; }
@keyframes beacon-accent { 0% { box-shadow: 0 0 0 0 var(--accent); } 80%, 100% { box-shadow: 0 0 0 8px transparent; } }
.pitch h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.3rem); line-height: 1.05; letter-spacing: -.045em; font-weight: 700; margin-bottom: 1.1rem; animation: rise .9s var(--ease) .18s backwards; }
.pitch .soft { color: var(--faint); }
.rotator { display: inline-block; height: 1.12em; overflow: hidden; vertical-align: bottom; }
.rotator > span {
  display: block; height: 1.12em; line-height: 1.12em; padding-right: .05em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: word-roll 9s var(--ease) infinite;
}
@keyframes word-roll {
  0%, 27% { transform: translateY(0); }
  33%, 60% { transform: translateY(-100%); }
  66%, 94% { transform: translateY(-200%); }
  100% { transform: translateY(-300%); }
}
.lede { color: var(--muted); font-size: 1.02rem; max-width: 440px; animation: rise .9s var(--ease) .26s backwards; }
.legal { margin: auto 0 0; color: var(--faint); font-size: .8rem; }

.mock-wrap { position: relative; max-width: 540px; perspective: 1400px; animation: rise 1s var(--ease) .35s backwards; }
.mock {
  position: relative; border-radius: 14px; overflow: hidden; background: var(--solid); border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), 0 0 0 1px var(--line);
  transform: rotateX(var(--tx, 8deg)) rotateY(var(--ty, -10deg)); transform-style: preserve-3d;
  transition: transform .8s var(--ease);
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: .6rem .8rem; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mock-bar > i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.mock-bar > i:first-child { background: #ff5f57; } .mock-bar > i:nth-child(2) { background: #febc2e; } .mock-bar > i:nth-child(3) { background: #28c840; }
.mock-url { flex: 1; margin-left: .6rem; height: 18px; border-radius: 6px; background: var(--surface-2); position: relative; overflow: hidden; }
.mock-url b { position: absolute; left: 8px; top: 7px; height: 4px; width: 38%; border-radius: 4px; background: var(--faint); opacity: .5; transform-origin: 0; animation: build-x 9s var(--ease) infinite; }
.mock-body { padding: 1rem; display: grid; gap: .9rem; }
.mock-body i { display: block; border-radius: 6px; background: var(--surface-3); }
.m-nav { display: flex; gap: .5rem; justify-content: flex-end; align-items: center; }
.m-nav i { height: 6px; width: 34px; animation: build-y 9s var(--ease) infinite; }
.m-nav i:nth-child(2) { animation-delay: .25s; } .m-nav i:nth-child(3) { animation-delay: .33s; } .m-nav i:nth-child(4) { animation-delay: .41s; }
.m-nav i:first-child { width: 22px; height: 22px; border-radius: 7px; margin-right: auto; background: var(--grad); }
.m-hero { display: grid; gap: .55rem; padding: .6rem 0 .4rem; }
.m-h1 { height: 18px; width: 82%; background: var(--text) !important; opacity: .85; transform-origin: 0; animation: build-x 9s var(--ease) .55s infinite; }
.m-h2 { height: 18px; width: 58%; background: var(--grad) !important; transform-origin: 0; animation: build-x 9s var(--ease) .75s infinite; }
.m-p { height: 7px; width: 70%; transform-origin: 0; animation: build-x 9s var(--ease) .95s infinite; }
.m-btn { height: 26px; width: 104px; border-radius: 8px !important; margin-top: .35rem; background: var(--grad) !important; animation: build-pop 9s var(--spring) 1.15s infinite; }
.m-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.m-cards i { height: 64px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); animation: build-y 9s var(--ease) infinite; }
.m-cards i:nth-child(1) { animation-delay: 1.4s; } .m-cards i:nth-child(2) { animation-delay: 1.55s; } .m-cards i:nth-child(3) { animation-delay: 1.7s; }
.m-cursor { position: absolute; left: 0; top: 0; width: 22px; height: 22px; color: var(--text); filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); animation: cursor 9s var(--ease) infinite; }
.m-cursor .i { width: 22px; height: 22px; }
@keyframes build-x { 0% { transform: scaleX(0); opacity: 0; } 6%, 88% { transform: scaleX(1); opacity: 1; } 96%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes build-y { 0% { transform: translateY(10px); opacity: 0; } 6%, 88% { transform: none; opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes build-pop { 0% { transform: scale(.4); opacity: 0; } 6%, 88% { transform: scale(1); opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes cursor {
  0% { transform: translate(85%, 220%); opacity: 0; }
  20% { transform: translate(380%, 260%); opacity: 1; }
  34% { transform: translate(120px, 150px); }
  38% { transform: translate(120px, 150px) scale(.85); }
  42% { transform: translate(120px, 150px) scale(1); }
  70% { transform: translate(300px, 230px); }
  90% { transform: translate(300px, 230px); opacity: 1; }
  100% { transform: translate(340px, 280px); opacity: 0; }
}
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .75rem; border-radius: 99px;
  background: var(--pop); border: 1px solid var(--line-2); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55);
  font-size: .78rem; font-weight: 600; white-space: nowrap;
  animation: chip-in .8s var(--spring) backwards, float 6s ease-in-out infinite;
}
.chip .i { width: 15px; height: 15px; color: var(--ok); }
.chip.c1 { top: 16%; right: -6%; animation-delay: 1s, 1.8s; }
.chip.c2 { bottom: 26%; left: -7%; animation-delay: 1.25s, 2.6s; }
.chip.c3 { bottom: -5%; right: 12%; animation-delay: 1.5s, 3.4s; }
@keyframes chip-in { from { opacity: 0; transform: translateY(14px) scale(.85); } }
@keyframes float { 50% { translate: 0 -8px; } }

/* --------------------------------------------------------- shared motion */

@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

@view-transition { navigation: auto; }
::view-transition-old(page) { animation: vt-out .2s var(--ease) both; }
::view-transition-new(page) { animation: vt-in .35s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; } }

/* --------------------------------------------------------------- responsive */

@media (max-width: 1140px) {
  .who-name, .signout span { display: none; }
  .brand-sub { display: none; }
  .who { padding: .2rem; }
  .top-in { gap: 1rem; }
}
@media (max-width: 1000px) {
  .summary { grid-template-columns: repeat(2, 1fr); }
  .auth { grid-template-columns: 1fr; }
  .showcase { border-right: 0; border-bottom: 1px solid var(--line); gap: 1.4rem; padding-bottom: 2rem; }
  .mock-wrap, .legal { display: none; }
  .auth-main { padding-top: 2rem; justify-content: flex-start; }
}
@media (max-width: 760px) {
  .top-in { flex-wrap: wrap; gap: .6rem; padding: .6rem 1rem; }
  .brand { flex: 1; }
  .nav { order: 3; flex-basis: 100%; margin: 0 -.4rem; }
  .who-name, .signout span { display: none; }
  .who { padding: .2rem; }
  main { padding: 1.4rem 1rem 2.5rem; }
  .card { padding: 1.1rem; }
  .pitch h2 { font-size: 2rem; }
  .lede { font-size: .95rem; margin: 0; }
  /* Admin rows become stacked cards so the actions get the full width. */
  table.admins, table.admins tbody, table.admins tr, table.admins td { display: block; }
  table.admins thead { display: none; }
  table.admins tr { padding: .9rem .2rem; border-bottom: 1px solid var(--line); }
  table.admins tbody tr:last-child { border-bottom: 0; }
  table.admins td { border: 0; padding: .12rem 0; }
  table.admins td[data-label] { font-size: .86rem; padding-left: 2.6rem; }
  table.admins td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); }
  table.admins .actions { justify-content: flex-start; margin-top: .7rem; }
  details.pop { width: 100%; }
  details.pop[open] form { position: static; width: auto; margin-top: .6rem; }
  .stats .num { font-size: 1.3rem; }
  .foot { flex-direction: column; gap: .4rem; }
}
@media (max-width: 420px) {
  .summary { gap: .7rem; }
  .metric { padding: .85rem 1rem; }
  .metric b { font-size: 1.4rem; }
  .grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------- reduced motion */


/* ============================================================ website enquiries inbox */
.nav-badge { min-width: 19px; height: 19px; padding: 0 5px; margin-left: .15rem; border-radius: 99px; display: inline-grid; place-items: center; background: var(--grad); color: #fff; font-size: .68rem; font-weight: 800; font-style: normal; box-shadow: var(--glow); animation: badge-pop .6s var(--spring) backwards; }
@keyframes badge-pop { from { transform: scale(0); } }
.pill.new-pill { color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }
.pill.new-pill::before { animation: dot-pulse 1.6s ease-in-out infinite; }
@keyframes dot-pulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 18%, transparent); } }
.pill.st-new { color: var(--accent); background: var(--accent-soft); } .pill.st-replied { color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 14%, transparent); }
.pill.st-won { color: var(--ok); background: var(--ok-soft); } .pill.st-closed { color: var(--muted); background: var(--surface-2); } .pill.st-spam { color: var(--bad); background: var(--bad-soft); }
.tag.quo, .tag.sup, .tag.biz { display: inline-block; padding: .14rem .5rem; border-radius: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .02em; }
.tag.quo { color: var(--accent); background: var(--accent-soft); } .tag.sup { color: var(--warn); background: var(--warn-soft); } .tag.biz { color: var(--muted); background: var(--surface-2); }

.enq-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; margin-bottom: 1.1rem; }
.enq-tile { position: relative; overflow: hidden; padding: 1rem 1.1rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); animation: rise .7s var(--ease) backwards; }
.enq-tile:nth-child(2) { animation-delay: .05s; } .enq-tile:nth-child(3) { animation-delay: .1s; } .enq-tile:nth-child(4) { animation-delay: .15s; } .enq-tile:nth-child(5) { animation-delay: .2s; }
.enq-tile .num { display: block; font-size: 2rem; font-weight: 750; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.enq-tile .lbl { color: var(--muted); font-size: .8rem; }
.enq-tile.t-new { border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: linear-gradient(150deg, var(--accent-soft), var(--surface) 70%); }
.enq-tile.t-new .num { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.enq-tile.t-won .num { color: var(--ok); }
.enq-tile::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(closest-side, var(--accent-soft), transparent); }

.enq-card { padding-top: 1rem; }
.enq-tabs { margin-bottom: 1rem; overflow-x: auto; scrollbar-width: none; }
.enq-tabs em { margin-left: .4rem; padding: .05rem .4rem; border-radius: 6px; background: var(--surface-2); color: var(--muted); font-size: .72rem; font-style: normal; font-weight: 700; }
.enq-tabs a[aria-current] em { background: var(--accent-soft); color: var(--accent); }
.enq-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.seg { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); }
.seg a { padding: .38rem .8rem; border-radius: 8px; color: var(--muted); font-size: .84rem; font-weight: 600; text-decoration: none; transition: background .25s, color .25s; }
.seg a:hover { color: var(--text); } .seg a[aria-current] { background: var(--solid); color: var(--text); box-shadow: 0 1px 6px rgba(0, 0, 0, .25); }
.search { flex: 1; min-width: 220px; position: relative; display: flex; align-items: center; }
.search .i { position: absolute; left: .8rem; width: 17px; height: 17px; color: var(--faint); pointer-events: none; }
.search input { width: 100%; padding-left: 2.6rem !important; }
.search .i { top: 50%; transform: translateY(-50%); z-index: 1; }

.enq-list { display: grid; gap: .5rem; }
.enq-row { position: relative; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 1rem; padding: .85rem 1rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none;
  transition: transform .35s var(--ease), border-color .25s, background .25s, box-shadow .35s var(--ease); animation: rise .6s var(--ease) backwards; animation-delay: calc(var(--i) * 35ms); }
.enq-row:hover { transform: translateX(4px); border-color: var(--line-2); background: var(--surface-2); box-shadow: 0 16px 34px -24px rgba(0, 163, 212, .45); }
.enq-row.unseen { border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: linear-gradient(90deg, var(--accent-soft), var(--surface) 45%); }
.enq-row.unseen::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--grad); }
.enq-row.unseen b { font-weight: 800; }
.enq-ava { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 1.05rem; box-shadow: var(--glow); }
.enq-ava.big { width: 60px; height: 60px; font-size: 1.5rem; }
.enq-main { display: grid; gap: .15rem; min-width: 0; }
.enq-top { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; } .enq-top b { font-size: .98rem; }
.enq-what { color: var(--text); font-size: .88rem; font-weight: 550; opacity: .9; }
.enq-snip { color: var(--muted); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.enq-side { display: grid; justify-items: end; gap: .4rem; } .enq-side time { color: var(--faint); font-size: .78rem; white-space: nowrap; }
.enq-empty { display: grid; justify-items: center; gap: .6rem; padding: 3rem 1rem; color: var(--muted); text-align: center; }
.enq-empty .i { width: 46px; height: 46px; color: var(--accent); opacity: .7; }

.enq-pager { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; } .enq-pager span { display: flex; gap: .5rem; }
.enq-detail { display: grid; grid-template-columns: 1fr 340px; gap: 1.1rem; align-items: start; }
.enq-detail aside { position: sticky; top: 90px; display: grid; gap: 1.1rem; } .enq-detail aside .card, .enq-detail > div > .card { margin: 0 0 1.1rem; }
.enq-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; } .enq-head p { margin: .3rem 0 0; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.enq-name { margin: 0; font-size: 1.6rem; letter-spacing: -.03em; }
.enq-msg { padding: 1.2rem 1.3rem; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: 1rem; line-height: 1.7; white-space: normal; word-wrap: break-word; }
.enq-acts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.enq-acts .btn { display: inline-flex; align-items: center; gap: .5rem; } .enq-acts .i { width: 17px; height: 17px; }
.enq-acts .wa { color: #25d366; border-color: color-mix(in srgb, #25d366 40%, transparent); }
.st-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.st-btn { padding: .5rem .9rem; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font: inherit; font-size: .86rem; font-weight: 650; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .3s var(--spring); }
.st-btn:hover { color: var(--text); transform: translateY(-1px); }
.st-btn.on.st-new { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.st-btn.on.st-replied { background: color-mix(in srgb, var(--accent-2) 16%, transparent); color: var(--accent-2); border-color: var(--accent-2); }
.st-btn.on.st-won { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }
.st-btn.on.st-closed { background: var(--surface-3); color: var(--text); border-color: var(--line-2); }
.st-btn.on.st-spam { background: var(--bad-soft); color: var(--bad); border-color: var(--bad); }
.enq-side-card textarea { width: 100%; min-height: 120px; resize: vertical; font: inherit; font-size: .92rem; line-height: 1.5; }

.enq-dash { border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: linear-gradient(160deg, var(--accent-soft), var(--surface) 55%); }
.enq-dash .stats { grid-template-columns: repeat(3, 1fr); }
.enq-dash h2 a { display: inline-flex; align-items: center; gap: .5rem; } .enq-dash h2 .i { width: 20px; height: 20px; color: var(--accent); }
.enq-mini { display: grid; gap: .35rem; margin: 0 0 .4rem; padding: 0; list-style: none; }
.enq-mini a { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: baseline; padding: .5rem .7rem; border-radius: 10px; color: var(--text); text-decoration: none; background: var(--surface); border: 1px solid var(--line); font-size: .86rem; transition: background .2s, transform .3s var(--ease); }
.enq-mini a:hover { background: var(--surface-2); transform: translateX(3px); }
.enq-mini a.unseen b::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: .4rem; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.enq-mini span { color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .enq-mini time { color: var(--faint); font-size: .76rem; white-space: nowrap; }
p.warn { display: flex; align-items: center; gap: .5rem; color: var(--warn); margin: 0; } p.warn .i { width: 18px; height: 18px; flex: none; }

@media (max-width: 980px) {
  .enq-detail { grid-template-columns: 1fr; } .enq-detail aside { position: static; }
  .enq-tiles { grid-template-columns: repeat(3, 1fr); } .enq-tile:nth-child(n+4) { display: none; }
}
@media (max-width: 560px) {
  .enq-row { grid-template-columns: 38px 1fr; gap: .7rem; padding: .75rem; } .enq-ava { width: 38px; height: 38px; }
  .enq-side { grid-column: 2; grid-auto-flow: column; justify-content: space-between; justify-items: start; }
  .enq-tile .num { font-size: 1.5rem; } .enq-tiles { gap: .5rem; } .enq-tile { padding: .8rem; }
  .search { min-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .enq-row, .enq-tile, .nav-badge { animation: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .orb, .grid-lines, .m-cursor, .chip { animation: none !important; }
  @view-transition { navigation: none; }
}

/* enquiry: plan & features chosen on a business page */
.enq-chose { margin: 18px 0 6px; padding: 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.enq-chose h2, .enq-note-h { margin: 0 0 12px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.enq-note-h { margin-top: 18px; }
.enq-plan { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; } .enq-plan span { font-size: 13px; color: var(--muted); } .enq-plan b { font-size: 17px; }
.enq-feat { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.enq-feat > b { font-size: 13.5px; }
.enq-feat p { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.enq-feat p span { padding: 4px 10px; border-radius: 99px; background: var(--accent-soft); border: 1px solid var(--line-2); color: var(--text); font-size: 13px; }
@media (max-width: 640px) { .enq-feat { grid-template-columns: 1fr; gap: 6px; } }
