/* ============================================================================
   Rusik.CC — design system

   Direction taken from the wildclient.org reference: dark premium retail.
   A near-black canvas, translucent white planes that stack by opacity rather
   than by shadow, one indigo accent used as a light source rather than as
   decoration, and large confident type set in Onest.

   The reference's behaviour, kept deliberately:
     - Surfaces are white at 2-7% alpha over #16161a, so every plane has the
       same material. No solid greys, no shadows doing the work.
     - Hover lifts a card 4px and warms its border toward the accent.
     - Cards carry a radial wash tinted by their own --fac variable.
     - Radii are generous: 16px cards, 12px inputs, 99px for pills.
     - The accent is a light, not a fill: it appears on borders, glows, and
       one button per view.

   The reference's mistakes, NOT kept:
     - Its full-bleed hero gradients and decorative blobs.
     - Centred-everything: the hero here stays asymmetric.
     - 54px base type: this runs a proper clamp scale.
   ========================================================================== */

:root {
  /* ---- canvas ---------------------------------------------------------- */
  --bg:                 #16161a;
  --bg-deep:            #101014;
  --bg-raise:           #1c1c22;

  /* Planes: white at low alpha, so they stack instead of fighting. */
  --plane-1:            rgba(255, 255, 255, 0.024);
  --plane-2:            rgba(255, 255, 255, 0.043);
  --plane-3:            rgba(255, 255, 255, 0.070);
  --plane-4:            rgba(255, 255, 255, 0.100);

  /* ---- ink ------------------------------------------------------------- */
  --ink:                #e9e9f2;
  --ink-strong:         #f6f7fc;
  --ink-muted:          #9a9aae;
  --ink-subtle:         #8a8a9e;
  --ink-faint:          #6a6a7c;

  /* ---- lines ----------------------------------------------------------- */
  --line:               rgba(255, 255, 255, 0.075);
  --line-2:             rgba(255, 255, 255, 0.12);
  --line-3:             rgba(255, 255, 255, 0.20);

  /* ---- accent: indigo light -------------------------------------------- */
  --accent:             #7c7ce0;
  --accent-bright:      #c3c3fb;
  --accent-soft:        rgba(124, 124, 224, 0.16);
  --accent-line:        rgba(124, 124, 224, 0.42);
  --accent-glow:        rgba(124, 124, 224, 0.32);

  /* ---- state ----------------------------------------------------------- */
  --ok:                 #4bc46b;
  --ok-soft:            rgba(75, 196, 107, 0.16);
  --warn:               #e8b13c;
  --warn-soft:          rgba(232, 177, 60, 0.16);
  --bad:                #e86a6a;
  --bad-soft:           rgba(232, 106, 106, 0.16);
  --info:               #6ba8e8;
  --info-soft:          rgba(107, 168, 232, 0.16);

  /* ---- radius ---------------------------------------------------------- */
  --r-xs:               6px;
  --r-sm:               10px;
  --r:                  12px;
  --r-lg:               16px;
  --r-xl:               26px;
  --r-full:             99px;

  /* ---- type ------------------------------------------------------------ */
  --font:               "Onest", "Inter", -apple-system, BlinkMacSystemFont,
                        "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono:          "JetBrains Mono", "Cascadia Mono", "SF Mono", Consolas,
                        "Liberation Mono", monospace;

  --text-xs:            0.75rem;
  --text-sm:            0.8125rem;
  --text-base:          0.9375rem;
  --text-lg:            1.0625rem;
  --text-xl:            1.25rem;
  --text-2xl:           1.5rem;
  --text-3xl:           2rem;

  --leading-tight:      1.12;
  --leading-normal:     1.6;

  --tracking-tight:     -0.02em;
  --tracking-tightest:  -0.035em;
  --tracking-wide:      0.06em;

  /* ---- depth: one shadow, used only on things that truly float ---------- */
  --shadow-float:       0 16px 38px rgba(0, 0, 0, 0.38),
                        inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow-lift:        0 18px 44px rgba(0, 0, 0, 0.30);

  /* ---- shell ----------------------------------------------------------- */
  --nav-h:              68px;
  --maxw:               1200px;
}

/* ---------------------------------------------------------------- reset -- */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* A single fixed wash behind everything: the reference's atmosphere without
 * its animated fields. Static, cheap, no canvas. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60rem 34rem at 78% -8%, rgba(124, 124, 224, 0.10), transparent 62%),
    radial-gradient(46rem 30rem at 8% 6%, rgba(124, 124, 224, 0.055), transparent 66%);
}
body > * { position: relative; z-index: 1; }

img, svg, video, canvas { max-width: 100%; height: auto; }

a {
  color: var(--accent-bright);
  text-decoration: none;
  transition: color 160ms ease;
}
a:hover { color: #dcdcfd; }

::selection { background: var(--accent); color: #10100f; }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------------------------------------------------------- motion --
   One vocabulary, per motion.md: fade + rise, ease-out, and durations short
   enough to read as response rather than performance.

   Everything here is additive: the hidden state is only ever applied by
   motion.js, so a page without JS shows all of its content.
   -------------------------------------------------------------------------- */

:root {
  --ease-out:       cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:    cubic-bezier(0.65, 0, 0.35, 1);
  --ease-standard:  cubic-bezier(0.4, 0, 0.2, 1);
  --dur-hover:      140ms;
  --dur-reveal:     620ms;
  --dur-page:       200ms;
  --stagger:        70ms;
}

/* A block waiting to arrive. The distance is small on purpose: 14px reads as
   the block settling, 40px reads as a slideshow. */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
  /* Drop the hint once it has played: a standing will-change layer per section
     costs memory for no benefit after the animation is over. */
  will-change: auto;
}

/* Children inside a revealed block lag behind it, 70ms each, capped in JS. */
.reveal-child {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 560ms var(--ease-out),
    transform 560ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}
.reveal.in-view .reveal-child {
  opacity: 1;
  transform: none;
}

/* Landing on a section from the nav: a single soft ring, once. It confirms the
   glide arrived somewhere on purpose without repainting the section. */
@keyframes section-hit {
  0%   { box-shadow: 0 0 0 0 rgba(124, 124, 224, 0.34); }
  100% { box-shadow: 0 0 0 18px rgba(124, 124, 224, 0); }
}
.section-hit { animation: section-hit 820ms var(--ease-out); }

/* The nav tightens once the page has moved. */
.nav { transition: background-color 200ms ease, border-color 200ms ease; }
.nav.scrolled {
  background: rgba(22, 22, 26, 0.94);
  border-bottom-color: var(--line-2);
}

/* Page transitions. Two paths:
   - page-leaving: plain fade-out when View Transitions are unavailable.
   - vt-leaving: the same state, expressed for the View Transition snapshot.
   The incoming document fades up from page-ready. */
html.page-leaving body,
html.vt-leaving body {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--dur-page) ease-in, transform var(--dur-page) ease-in;
}
html body {
  transition: opacity var(--dur-page) var(--ease-out),
              transform var(--dur-page) var(--ease-out);
}

/* View Transitions cross-fade. Named and given a short duration so the new
   page is never hidden behind a slow curtain. */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 240ms;
  animation-timing-function: var(--ease-out);
}
::view-transition-old(root) { animation-name: vt-fade-out; }
::view-transition-new(root) { animation-name: vt-fade-in; }

@keyframes vt-fade-out {
  to { opacity: 0; transform: translateY(-6px); }
}
@keyframes vt-fade-in {
  from { opacity: 0; transform: translateY(8px); }
}

/* Hero arriving on load: one moment, not every section. */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.hero .eyebrow   { animation: hero-in 700ms var(--ease-out) both; }
.hero h1         { animation: hero-in 760ms var(--ease-out) 80ms both; }
.hero .lead      { animation: hero-in 760ms var(--ease-out) 160ms both; }
.hero-actions    { animation: hero-in 760ms var(--ease-out) 240ms both; }
.hero-note       { animation: hero-in 760ms var(--ease-out) 320ms both; }

/* Live dot breathes once every few seconds. It signals "this is current", which
   is why it is allowed to loop at all. */
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(75, 196, 107, 0.55); }
  50%      { box-shadow: 0 0 0 5px rgba(75, 196, 107, 0); }
}
.eyebrow .live { animation: live-pulse 2.4s ease-in-out infinite; }

/* Accordion body opens with a small rise rather than snapping. */
@keyframes detail-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
.q .a { animation: detail-in 300ms var(--ease-out) both; }

/* Two modes, both driven by a class that motion.js sets on <html>.
 *
 *   .motion-off   the visitor pressed the footer switch. Nothing moves at all.
 *   .motion-soft  the OS asks for reduced motion. Movement is cut to a short,
 *                 small version instead of being removed, so the page still
 *                 reads as finished while nothing sweeping happens.
 *
 * Nothing here is triggered by the media query alone any more: a site that
 * silently loses its animation looks broken to everyone who has that flag on
 * and does not know it. */
.motion-off .reveal,
.motion-off .reveal-child {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.motion-off .hero .eyebrow,
.motion-off .hero h1,
.motion-off .hero .lead,
.motion-off .hero-actions,
.motion-off .hero-note,
.motion-off .eyebrow .live,
.motion-off .q .a,
.motion-off .section-hit { animation: none !important; }
.motion-off html.page-leaving body,
.motion-off.page-leaving body,
.motion-off .vt-leaving body,
html.motion-off.page-leaving body,
html.motion-off.vt-leaving body { opacity: 1 !important; transform: none !important; }

.motion-soft {
  --dur-reveal: 260ms;
  --stagger:    0ms;
}
.motion-soft .reveal { transform: translateY(5px); }
.motion-soft .reveal-child { transform: translateY(3px); }
.motion-soft .hero .eyebrow,
.motion-soft .hero h1,
.motion-soft .hero .lead,
.motion-soft .hero-actions,
.motion-soft .hero-note { animation-duration: 240ms; animation-delay: 0ms; }
.motion-soft .eyebrow .live { animation: none; }

/* ------------------------------------------------------------ structure -- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-tight { max-width: 440px; margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--line); }

.page-head { padding: 56px 0 32px; }
.page-head h1 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: 600;
  color: var(--ink-strong);
}
.page-head p { margin: 0; color: var(--ink-muted); }

.stack { display: grid; gap: 18px; padding-bottom: 80px; }

.inline { display: inline-flex; align-items: center; gap: 8px; }
.spacer { flex: 1; }
.nowrap { white-space: nowrap; }
.small { font-size: var(--text-sm); }
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-sm);
  letter-spacing: -0.01em;
}

.muted { color: var(--ink-muted); }
.faint { color: var(--ink-faint); }
.sub {
  margin: 8px 0 0;
  color: var(--ink-muted);
  font-size: var(--text-base);
  max-width: 60ch;
}

/* --------------------------------------------------------------- nav ----- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 12px 0;
  background: rgba(22, 22, 26, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 18px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  color: var(--ink-strong);
}
.brand:hover { color: var(--ink-strong); }
.brand .mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(150deg, var(--accent-bright), var(--accent));
  box-shadow: 0 0 14px var(--accent-glow);
  flex: none;
}
.brand b { font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 7px 12px;
  border-radius: var(--r-sm);
  color: var(--ink-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color 160ms ease, background-color 160ms ease;
}
.nav-links a:hover { color: var(--ink-strong); background: var(--plane-2); }

.nav-links a.nav-contact { display: inline-flex; align-items: center; gap: 7px; }
.nav-links a.nav-contact::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5865f2;
  box-shadow: 0 0 8px rgba(88, 101, 242, 0.9);
  flex: none;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-muted);
  font-size: var(--text-sm);
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-bright);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  flex: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font: 500 var(--text-sm)/1 var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 180ms ease, border-color 180ms ease,
              color 180ms ease, transform 180ms cubic-bezier(.2,.7,.2,1),
              box-shadow 180ms ease;
}
.btn:active { transform: scale(0.98); }

/* Primary is the accent as a fill. One per view where possible. */
.btn.primary {
  background: linear-gradient(180deg, #8b8bef, var(--accent));
  color: #0e0e14;
  font-weight: 600;
  box-shadow: 0 8px 22px -8px var(--accent-glow),
              inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn.primary:hover {
  background: linear-gradient(180deg, #9a9af5, #8686e8);
  color: #0e0e14;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -8px var(--accent-glow),
              inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.btn.ghost {
  background: var(--plane-2);
  color: var(--ink);
  border-color: var(--line-2);
}
.btn.ghost:hover {
  background: var(--plane-3);
  border-color: var(--line-3);
  color: var(--ink-strong);
  transform: translateY(-1px);
}

.btn.danger {
  background: var(--bad-soft);
  color: var(--bad);
  border-color: rgba(232, 106, 106, 0.32);
}
.btn.danger:hover {
  background: rgba(232, 106, 106, 0.24);
  border-color: rgba(232, 106, 106, 0.5);
  color: #ff8f8f;
}

.btn.sm { height: 32px; padding: 0 13px; font-size: var(--text-xs); border-radius: var(--r-sm); }
.btn.block { width: 100%; }

.btn.discord {
  background: linear-gradient(180deg, #6772f5, #5865f2);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 22px -8px rgba(88, 101, 242, 0.75),
              inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.btn.discord:hover {
  background: linear-gradient(180deg, #7680f8, #5f6bf0);
  color: #fff;
  transform: translateY(-1px);
}
.btn.discord svg { width: 16px; height: 16px; flex: none; }

/* FunPay: a marketplace, so it gets the market colour rather than the product
   accent - the two buttons read as "two ways to buy", not as one primary and one
   secondary action. Same geometry and glow treatment as the Discord button so
   the row stays one system. */
.btn.funpay {
  background: linear-gradient(180deg, #ffb648, #f59300);
  color: #221503;
  font-weight: 650;
  box-shadow: 0 8px 22px -8px rgba(245, 147, 0, 0.7),
              inset 0 1px 0 rgba(255, 255, 255, 0.34);
}
.btn.funpay:hover {
  background: linear-gradient(180deg, #ffc266, #ffa01a);
  color: #1c1102;
  transform: translateY(-1px);
}
.btn.funpay svg { width: 16px; height: 16px; flex: none; stroke-width: 2; }

.buy-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.buy-row .hint { color: var(--ink-muted); font-size: var(--text-sm); }

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

.card {
  position: relative;
  background: var(--plane-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  transition: border-color 260ms ease, background-color 260ms ease,
              transform 260ms cubic-bezier(.2,.7,.2,1);
}
.card:hover { border-color: var(--line-2); background: var(--plane-2); }

.card h2 {
  margin: 0 0 4px;
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  color: var(--ink-strong);
}
.card h3 {
  margin: 0 0 6px;
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  color: var(--ink-strong);
}
.card p { margin: 0; color: var(--ink-muted); font-size: var(--text-sm); }
.card > form { margin-top: 18px; }

/* -------------------------------------------------------------- inputs -- */

.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field:last-of-type { margin-bottom: 18px; }

.lbl {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--ink-subtle);
  letter-spacing: 0.01em;
}
.hint { font-size: var(--text-xs); color: var(--ink-faint); margin: 0; }

input[type="text"],
input[type="password"],
input[type="number"],
input[type="file"],
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 13px;
  font: 400 var(--text-sm)/1.45 var(--font);
  color: var(--ink-strong);
  background: var(--bg-deep);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  transition: border-color 180ms ease, background-color 180ms ease,
              box-shadow 180ms ease;
}
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
input:hover, select:hover, textarea:hover { border-color: var(--line-3); }
input:focus, select:focus, textarea:focus {
  border-color: var(--accent-line);
  background: var(--bg-raise);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
input[type="file"] { padding: 7px; font-size: var(--text-xs); }
input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 6px 12px;
  font: 500 var(--text-xs)/1 var(--font);
  color: var(--ink);
  background: var(--plane-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background-color 160ms ease;
}
input[type="file"]::file-selector-button:hover { background: var(--plane-4); }
input[type="number"] { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 12px; margin-bottom: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 .field, .grid-3 .field, .grid-4 .field { margin-bottom: 0; }

/* --------------------------------------------------------------- notes -- */

.note {
  padding: 12px 15px;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: var(--plane-2);
  font-size: var(--text-sm);
  margin-bottom: 16px;
}
.note.ok   { border-color: rgba(75, 196, 107, 0.34);  background: var(--ok-soft);  color: #74d98e; }
.note.bad  { border-color: rgba(232, 106, 106, 0.34); background: var(--bad-soft); color: #f08a8a; }
.note.info { border-color: var(--accent-line);        background: var(--accent-soft); color: var(--accent-bright); }

/* -------------------------------------------------------------- pills ---- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  border-radius: var(--r-full);
  font: 500 var(--text-xs)/1.6 var(--font);
  border: 1px solid var(--line-2);
  color: var(--ink-muted);
  background: var(--plane-2);
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
  flex: none;
}
.pill.ACTIVE, .pill.ok   { color: #74d98e; border-color: rgba(75, 196, 107, 0.36);  background: var(--ok-soft); }
.pill.UNUSED             { color: var(--ink-subtle); }
.pill.EXPIRED, .pill.warn { color: #f0c45e; border-color: rgba(232, 177, 60, 0.36); background: var(--warn-soft); }
.pill.REVOKED, .pill.bad  { color: #f08a8a; border-color: rgba(232, 106, 106, 0.36); background: var(--bad-soft); }

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

.scroll {
  overflow-x: auto;
  margin: 0 -22px -22px;
  padding: 0 22px 22px;
  -webkit-overflow-scrolling: touch;
}

table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  padding: 9px 14px 9px 0;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line-2);
  background: var(--bg);
  white-space: nowrap;
}
tbody td {
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background-color 140ms ease; }
tbody tr:hover { background: var(--plane-2); }
thead th:last-child, tbody td:last-child { padding-right: 0; }
td.nowrap, td.mono { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------- dash ---- */

.dash {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.dash .card { padding: 18px 20px; }
.dash .card b {
  display: block;
  font: 600 1.875rem/1.05 var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--tracking-tight);
  color: var(--ink-strong);
}
.dash .card span {
  display: block;
  margin-top: 5px;
  font-size: var(--text-xs);
  color: var(--ink-faint);
}
.dash .card.ok   b { color: #74d98e; }
.dash .card.warn b { color: #f0c45e; }
.dash .card.bad  b { color: #f08a8a; }

/* --------------------------------------------------------------- auth ---- */

.auth-shell {
  min-height: calc(100vh - var(--nav-h) - 130px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 0;
}
.auth-card {
  width: 100%;
  padding: 30px;
  background: var(--plane-2);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-float);
}
.auth-card h1 {
  margin: 0 0 6px;
  font-size: var(--text-2xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tightest);
  font-weight: 600;
  color: var(--ink-strong);
}
.auth-card .sub { margin-bottom: 24px; }
.auth-card:hover { border-color: var(--line-2); background: var(--plane-2); }
.auth-card form { margin-top: 6px; }
.auth-foot {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

/* -------------------------------------------------------------- footer -- */

.foot {
  border-top: 1px solid var(--line);
  padding: 30px 0;
}
.foot .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.foot .muted { font-size: var(--text-xs); }
.foot .links { display: flex; gap: 20px; margin-left: auto; }
.foot .links a { color: var(--ink-subtle); font-size: var(--text-xs); }
.foot .links a:hover { color: var(--ink-strong); }
/* The motion switch sits in the footer: findable, never in the way. */
.motion-toggle {
  appearance: none;
  padding: 5px 10px;
  border-radius: var(--r-full);
  border: 1px solid var(--line-2);
  background: var(--plane-2);
  color: var(--ink-subtle);
  font: 500 var(--text-xs)/1.4 var(--font);
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease;
}
.motion-toggle:hover {
  color: var(--ink);
  border-color: var(--line-3);
  background: var(--plane-3);
}
.motion-toggle[aria-pressed="true"] {
  color: var(--accent-bright);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

/* ==========================================================================
   Landing — premium retail rhythm: one big claim, then dense proof
   ========================================================================== */

.hero { padding: 104px 0 80px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 60px;
  align-items: center;
}
.hero-grid.solo { grid-template-columns: minmax(0, 1fr); }

.hero h1 {
  margin: 20px 0 0;
  font-size: clamp(2.75rem, 5.2vw + 0.5rem, 4.5rem);
  line-height: 1.03;
  letter-spacing: var(--tracking-tightest);
  font-weight: 650;
  color: var(--ink-strong);
}
/* The accent highlight is light on type, not a rainbow fill. */
.hero h1 .grad {
  background: linear-gradient(180deg, var(--accent-bright), #9b9bec);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent-bright);
}

.lead {
  margin: 22px 0 0;
  max-width: 54ch;
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--ink-muted);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.hero-actions .btn { height: 50px; padding: 0 26px; font-size: var(--text-base); }

.hero-note {
  margin: 18px 0 0;
  font-size: var(--text-sm);
  color: var(--ink-faint);
}

/* Kicker: mono, tracked open, reading as metadata not jewellery. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 6px 9px;
  border-radius: var(--r-full);
  background: var(--plane-2);
  border: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-muted);
}
.eyebrow .live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
  flex: none;
}

/* Stats: four numbers on one plane, divided by hairlines. */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--plane-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat { padding: 22px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b {
  display: block;
  font: 600 1.75rem/1.05 var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--tracking-tight);
  color: var(--ink-strong);
}
.stat span {
  display: block;
  margin-top: 6px;
  font-size: var(--text-xs);
  color: var(--ink-faint);
}

.section-head { margin-bottom: 40px; max-width: 62ch; }
.section-head h2 {
  margin: 14px 0 0;
  font-size: clamp(1.625rem, 2.8vw, 2.25rem);
  line-height: 1.14;
  letter-spacing: var(--tracking-tight);
  font-weight: 600;
  color: var(--ink-strong);
}
.section-head p {
  margin: 12px 0 0;
  color: var(--ink-muted);
  font-size: var(--text-base);
}

/* Feature cards: the reference's tinted, lifting card, one --fac per card. */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.features .feature {
  --fac: var(--accent);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--plane-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1),
              border-color 320ms ease, background-color 320ms ease;
}
.features .feature::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 320ms ease;
  background: radial-gradient(120% 95% at 15% 0%, rgba(124, 124, 224, 0.16), transparent 62%);
}
.features .feature:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  background: var(--plane-2);
}
.features .feature:hover::after { opacity: 1; }
.features .feature > * { position: relative; z-index: 1; }
.feature .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: var(--r);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-bright);
}
.feature .ico svg { width: 18px; height: 18px; }
.feature h3 { margin-bottom: 6px; }
.feature p { font-size: var(--text-sm); }

.grid-2.cards { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.ticks {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.ticks li {
  position: relative;
  padding-left: 20px;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}

.steps { display: grid; gap: 14px; }
.step {
  --fac: var(--accent);
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 22px;
  padding: 24px;
  background: var(--plane-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  align-items: start;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1), border-color 320ms ease;
}
.step:hover { transform: translateY(-2px); border-color: var(--line-2); }
.step .num {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent-bright);
  letter-spacing: var(--tracking-tight);
}
.step h3 { margin: 0 0 5px; }
.step p { margin: 0; }

/* Plans: the middle option is the one that matters, marked by light not glow. */
.plans { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.plan {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px;
  background: var(--plane-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform 320ms cubic-bezier(.2,.7,.2,1), border-color 320ms ease,
              background-color 320ms ease;
}
.plan:hover { transform: translateY(-3px); border-color: var(--line-3); background: var(--plane-2); }
.plan.hot {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, rgba(124, 124, 224, 0.10), rgba(124, 124, 224, 0.02));
  box-shadow: 0 18px 44px -22px var(--accent-glow);
}
.plan.hot:hover { border-color: var(--accent); }
.plan .tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--plane-3);
  border: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-subtle);
}
.plan.hot .tag {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-bright);
}
.plan .price {
  font: 600 2.75rem/1 var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--tracking-tightest);
  color: var(--ink-strong);
}
.plan .price small {
  font: 400 var(--text-sm)/1 var(--font);
  color: var(--ink-faint);
  margin-left: 6px;
  letter-spacing: 0;
}
.plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  flex: 1;
}
.plan li {
  position: relative;
  padding-left: 18px;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}
.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--ink-faint);
}

/* FAQ: native details on one plane, rows divided by hairlines. */
.faq {
  background: var(--plane-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.q { border-bottom: 1px solid var(--line); }
.q:last-child { border-bottom: 0; }
.q summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--ink);
  list-style: none;
  transition: background-color 160ms ease, color 160ms ease;
}
.q summary::-webkit-details-marker { display: none; }
.q summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  line-height: 1;
  color: var(--ink-faint);
  transition: color 160ms ease, transform 200ms ease;
}
.q summary:hover { background: var(--plane-2); color: var(--ink-strong); }
.q summary:hover::after { color: var(--accent-bright); }
.q[open] summary::after { content: "−"; color: var(--accent-bright); }
.q[open] summary { background: var(--plane-2); color: var(--ink-strong); }
.q .a {
  padding: 0 22px 20px;
  max-width: 76ch;
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--ink-muted);
}

/* Closing band: the one loud moment on the page. */
.cta-band {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-xl);
  padding: 52px 44px;
  background:
    radial-gradient(90% 140% at 12% 0%, rgba(124, 124, 224, 0.20), transparent 58%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  box-shadow: 0 28px 60px -30px var(--accent-glow);
}
.cta-band h2 {
  margin: 0;
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: var(--tracking-tightest);
  font-weight: 650;
  color: var(--ink-strong);
}
.cta-band p { margin: 12px 0 0; color: var(--ink-muted); max-width: 52ch; }
.cta-band .hero-actions { margin-top: 28px; }

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

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .grid-2.cards { grid-template-columns: minmax(0, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .section { padding: 64px 0; }
  .hero { padding: 60px 0 52px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 18px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .cta-band { padding: 32px 24px; }
  .step { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hero-actions .btn { height: 46px; font-size: var(--text-sm); }
}

@media (max-width: 560px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .dash { grid-template-columns: minmax(0, 1fr); }
  .foot .links { margin-left: 0; }
  .wrap { padding: 0 16px; }
  .card { padding: 18px; }
}

/* ------------------------------------------------------------- admin panel --
   The panel is a working tool, so the layout favours density over air: tabs
   instead of one long scroll, a toolbar pinned above each table, and bulk
   actions that only appear once something is selected.
   -------------------------------------------------------------------------- */

.adm-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 0 14px;
}
.adm-head h1 { margin: 0 0 4px; font-size: 1.45rem; letter-spacing: -0.02em; }
.adm-head .sub { margin: 0; color: var(--ink-subtle); font-size: var(--text-sm); }

.adm-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 92px;
  padding: 10px 14px;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: var(--plane-2);
  text-decoration: none;
  transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}
.adm-stat:hover { border-color: var(--line-3); background: var(--plane-3); transform: translateY(-1px); }
.adm-stat b { font-size: 1.35rem; font-weight: 650; letter-spacing: -0.02em; color: var(--ink-strong); }
.adm-stat span { font-size: var(--text-xs); color: var(--ink-faint); }
.adm-stat.ok b    { color: var(--ok); }
.adm-stat.warn b  { color: var(--warn); }
.adm-stat.bad b   { color: var(--bad); }

.adm-tabs {
  display: flex;
  gap: 4px;
  margin: 8px 0 18px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tab {
  appearance: none;
  border: 0;
  background: none;
  padding: 10px 14px;
  margin-bottom: -1px;
  color: var(--ink-subtle);
  font: 500 var(--text-sm)/1 var(--font);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 140ms ease, border-color 140ms ease;
}
.adm-tab:hover { color: var(--ink); }
.adm-tab.on { color: var(--accent-bright); border-bottom-color: var(--accent); }

.adm-panel { display: none; }
.adm-panel.on { display: block; }
.adm-panel > .card + .card { margin-top: 18px; }

.adm-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.adm-toolbar h2 { margin: 0; margin-right: auto; font-size: 1.02rem; }

/* The site's form styling gives every input and select `width: 100%`, which is
 * right in a .field and wrong in a toolbar: a full-width select on a wrapping
 * flex line breaks onto its own row and takes the whole card, pushing the
 * counter down with it. These two opt out explicitly. */
.adm-search,
.adm-filter {
  appearance: none;
  width: auto;
  min-height: 0;
  padding: 7px 11px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--plane-2);
  color: var(--ink);
  font: 400 var(--text-sm)/1.4 var(--font);
}
.adm-search { width: 230px; flex: 0 0 auto; }
.adm-filter { flex: 0 0 auto; }
.adm-search:focus,
.adm-filter:focus {
  outline: none;
  border-color: var(--accent-line);
  background: var(--plane-3);
}
.adm-filter { min-width: 0; }
.adm-count { font-size: var(--text-xs); color: var(--ink-faint); white-space: nowrap; }

.adm-bulkbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  margin-bottom: 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  font-size: var(--text-sm);
}
.adm-bulkbar[hidden] { display: none; }
.adm-bulkbar b { color: var(--accent-bright); }

/* Alignment, stated once for the whole panel.
 *
 * Text columns keep a left edge so the eye can scan down them. The narrow state
 * and action columns are centred, header included: a right-aligned "ДЕЙСТВИЯ"
 * over right-aligned buttons looked detached from the table because the header
 * text and the button block had different widths, and a left-aligned pill in a
 * wide column floated in the middle of nowhere.
 *
 * The rule is: header alignment always equals cell alignment, column by column.
 */
.adm-table td, .adm-table th { vertical-align: middle; }
.adm-table thead th { text-align: left; }
.adm-table tbody tr { transition: background-color 120ms ease; }
.adm-table tbody tr:hover { background: var(--plane-2); }
.adm-table tbody tr[hidden] { display: none; }

/* Narrow columns: centred header and centred content. */
.adm-table th.adm-center,
.adm-table td.adm-center { text-align: center; }

/* Same specificity rule as .adm-actions: the table's left default on headers
   beats a bare class, so the checkbox header came out left of its centred box. */
.adm-table th.adm-check,
.adm-table td.adm-check { width: 34px; text-align: center; }
.adm-check input { cursor: pointer; accent-color: var(--accent); }

/* The pill is inline-flex, so centring needs the cell to be a text-align:center
   box; margin auto would fight the flex parent. */
.adm-table td.adm-center .pill { margin: 0 auto; }

/* Spelled with the full selector: `.adm-table thead th` above is more specific
   than a bare `.adm-actions`, so the header stayed left while its cells were
   centred - the exact mismatch this rule exists to prevent. */
.adm-table th.adm-actions,
.adm-table td.adm-actions { text-align: center; white-space: nowrap; width: 1%; }
/* Four actions per row, kept on one line: wrapping five of them turned every row
   into a tall stack, which is worse than the horizontal scroll it was meant to
   fix. The fifth action (rotate) moved into the key cell, so nowrap is safe
   again. */
.adm-table .adm-actions .inline { justify-content: center; gap: 6px; flex-wrap: nowrap; }
.adm-table .adm-actions .btn { padding: 5px 9px; }

/* The rotate control is a form, but it must sit inline with the key text. */
.adm-rotate { display: inline; margin: 0; }
.adm-table .adm-actions .btn { white-space: nowrap; }

/* Belt and braces: the centring class must beat the table's left default on
   headers too, not only on cells. */
.adm-table thead th.adm-center { text-align: center; }

/* A centred last column needs its own breathing room: the shared "last-child
   gets no right padding" rule would push the buttons against the card edge. */
.adm-table thead th.adm-actions:last-child,
.adm-table tbody td.adm-actions:last-child { padding-right: 14px; }
/* One column absorbs the slack.
 *
 * `table { width: 100% }` spreads the leftover width across every column, so a
 * short-content table ends up with five loosely packed columns and no visual
 * rhythm - the header sits over one part of the column and the value over
 * another. Giving the free-text column `width: 100%` makes the other columns
 * shrink to their content, which is what makes a data table look aligned.
 */
.adm-table .adm-fill { width: 100%; }

.adm-notes {
  max-width: 0;               /* let the table decide, not the text */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-xs);
}

/* An empty cell reads as a broken column; an em dash reads as "nothing here". */
.adm-empty { color: var(--ink-faint); }
.adm-file input[type="file"] {
  font-size: var(--text-xs);
  color: var(--ink-subtle);
  max-width: 100%;
}
.adm-stuck { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.adm-stuck form { margin-left: auto; }

@media (max-width: 760px) {
  .adm-head { flex-direction: column; align-items: stretch; }
  .adm-stats { justify-content: space-between; }
  .adm-stat { flex: 1; min-width: 0; padding: 8px 10px; }
  .adm-stat b { font-size: 1.1rem; }
  .adm-search, .adm-filter { flex: 1 1 auto; width: auto; min-width: 0; }
  .adm-actions .inline { flex-direction: column; align-items: stretch; }
  .adm-notes { max-width: 100px; }
}

/* ------------------------------------------------------- issued keys block --
   Freshly issued keys are the one thing an admin must not lose: the plaintext
   exists only in this response. So they get a dedicated block with a textarea
   for one-shot copying of the whole batch and a per-key button for picking one.
   -------------------------------------------------------------------------- */

.adm-issued {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: var(--r);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
}
.adm-issued-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: var(--text-sm);
}
.adm-issued-head b { color: var(--accent-bright); }
.adm-issued-head .muted { color: var(--ink-subtle); font-size: var(--text-xs); }
.adm-issued-head .btn { margin-left: auto; }

.adm-issued-keys {
  width: 100%;
  min-height: 74px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--bg-deep);
  color: var(--ink-strong);
  font: 500 var(--text-sm)/1.7 var(--font-mono);
  letter-spacing: 0.03em;
  resize: vertical;
  word-break: break-all;
}
.adm-issued-keys:focus { outline: none; border-color: var(--accent-line); }

.adm-keylist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.adm-keylist .btn { font-family: var(--font-mono); letter-spacing: 0.02em; }

/* The key cell: full string where the vault has it, with a quiet copy affordance
   that does not compete with the row's real actions. */
.adm-keycell { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.adm-keytext { font-family: var(--font-mono); letter-spacing: 0.02em; }
.adm-copy {
  appearance: none;
  flex: none;
  padding: 2px 7px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink-faint);
  font: 500 var(--text-xs)/1.5 var(--font);
  cursor: pointer;
  transition: color 120ms ease, border-color 120ms ease, background-color 120ms ease;
}
.adm-copy:hover { color: var(--accent-bright); border-color: var(--accent-line); background: var(--accent-soft); }
.adm-copy.done { color: var(--ok); border-color: rgba(75, 196, 107, 0.4); background: var(--ok-soft); }

/* Row-level copy feedback for the per-key buttons in the fresh block. */
.adm-keylist .btn.done { color: var(--ok); border-color: rgba(75, 196, 107, 0.4); }
