/* Tymeline Cloud control panel
   Dark, glass, futuristic. Shares tokens and the sign-in scene with mail.tymeline.net. */
:root {
  --bg: #141414;
  --bg-2: #0f0f10;
  --surface: #1c1c1c;
  --surface-2: #242424;
  --surface-3: #2c2c2e;
  --ink: #f4f4f6;
  --ink-2: #dcdce3;
  --muted: #a7a7b4;
  --faint: #7a7a88;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.16);
  --edge: rgba(140, 92, 255, 0.22);
  --edge-hot: rgba(140, 92, 255, 0.55);
  --accent: #673de6;
  --accent-hot: #8c5cff;
  --accent-ink: #fff;
  --accent-soft: rgba(103, 61, 230, 0.18);
  --danger: #ff6b8a;
  --warn: #f6b73c;
  --ok: #16d890;
  --glass: color-mix(in srgb, var(--surface) 62%, transparent);
  --glass-2: color-mix(in srgb, var(--surface-2) 70%, transparent);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --header: 60px;
  --font: "DM Sans", Inter, ui-sans-serif, system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent-hot); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
h1, h2, h3 { letter-spacing: -0.03em; font-weight: 700; }
h1 { margin: 0 0 0.6rem; font-size: 1.6rem; font-weight: 800; }
h2 { margin: 0 0 0.75rem; font-size: 1.05rem; }
.fx-sky {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 80% 18%, rgba(103, 61, 230, 0.1), transparent 60%),
    linear-gradient(180deg, #141414 0%, #101010 100%);
}
.fx-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(103, 61, 230, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 61, 230, 0.09) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 8%, transparent 58%);
}
body.client-admin { background: #000; }
:focus-visible { outline: 2px solid var(--accent-hot); outline-offset: 2px; }

/* ------------------------------------------------------------ scene backdrop — time theme
   A live analog dial (hands run on the visitor's clock), a radar-style sweep that
   circles once a minute, and a timeline ruler whose ticks flow past a NOW marker. */
.scene { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: radial-gradient(120% 90% at 50% -10%, #1b1727 0%, var(--bg) 50%, #0e0e11 100%); }
.scene-aurora { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.7; mix-blend-mode: screen; }
.scene-aurora-a { width: 60vmax; height: 60vmax; left: 50%; top: -30vmax; transform: translateX(-50%); background: radial-gradient(circle, rgba(124, 77, 255, 0.45), rgba(103, 61, 230, 0.1) 45%, transparent 70%); animation: aurora-a 16s ease-in-out infinite alternate; }
.scene-aurora-b { width: 46vmax; height: 46vmax; left: -14vmax; bottom: -22vmax; background: radial-gradient(circle, rgba(22, 216, 144, 0.2), transparent 65%); animation: aurora-b 20s ease-in-out infinite alternate; }
.scene-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(140, 92, 255, 0.16) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 20%, #000 20%, transparent 75%);
}

/* dial */
.dial { position: absolute; left: 50%; top: 50%; width: min(94vmin, 780px); aspect-ratio: 1; transform: translate(-50%, -50%); }
.dial svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dial-ring { fill: none; stroke: rgba(140, 92, 255, 0.2); stroke-width: 1; }
.dial-minor { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 9; stroke-dasharray: 0.08 0.92; stroke-dashoffset: 0.04; }
.dial-major { fill: none; stroke: rgba(170, 140, 255, 0.95); stroke-width: 16; stroke-dasharray: 0.03 0.97; stroke-dashoffset: 0.015; filter: drop-shadow(0 0 6px rgba(140, 92, 255, 0.9)); }
.dial-orbit { fill: none; stroke: rgba(140, 92, 255, 0.35); stroke-width: 1; stroke-dasharray: 2 7; transform-origin: 50% 50%; animation: spin 120s linear infinite; }
.dial-inner { fill: rgba(103, 61, 230, 0.05); stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; }
.dial-num text { fill: rgba(255, 255, 255, 0.4); font: 700 15px var(--font); letter-spacing: 0.08em; text-anchor: middle; }
.dial-sweep {
  position: absolute; inset: 2.5%; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(140, 92, 255, 0) 0deg, rgba(140, 92, 255, 0) 290deg, rgba(140, 92, 255, 0.26) 360deg);
  -webkit-mask-image: radial-gradient(circle, transparent 0 24%, #000 25%);
  mask-image: radial-gradient(circle, transparent 0 24%, #000 25%);
  animation: spin 60s linear infinite; animation-delay: var(--sd, 0s);
}
.hand { position: absolute; left: 50%; bottom: 50%; transform-origin: 50% 100%; border-radius: 4px; animation: spin linear infinite; will-change: transform; }
.hand-h { width: 4px; height: 25%; margin-left: -2px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.2)); animation-duration: 43200s; animation-delay: var(--hd, 0s); }
.hand-m { width: 3px; height: 37%; margin-left: -1.5px; background: linear-gradient(180deg, rgba(224, 212, 255, 0.95), rgba(224, 212, 255, 0.15)); animation-duration: 3600s; animation-delay: var(--md, 0s); }
.hand-s { width: 1.5px; height: 45%; margin-left: -0.75px; background: linear-gradient(180deg, var(--accent-hot), rgba(140, 92, 255, 0.05)); box-shadow: 0 0 10px rgba(140, 92, 255, 0.7); animation-duration: 60s; animation-delay: var(--sd, 0s); }
.hand-s::before { content: ""; position: absolute; top: -5px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px 5px rgba(140, 92, 255, 0.85); }
.dial-core { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px rgba(140, 92, 255, 0.7), 0 0 18px 4px rgba(140, 92, 255, 0.7); }

/* timeline ruler */
.rule {
  position: absolute; left: 0; right: 0; bottom: 8%; height: 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}
.rule::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, rgba(140, 92, 255, 0.3), rgba(140, 92, 255, 0.7) 40%, rgba(255, 255, 255, 0.8) 50%, rgba(140, 92, 255, 0.7) 60%, rgba(140, 92, 255, 0.3)); box-shadow: 0 0 18px rgba(140, 92, 255, 0.45); }
.rule i { position: absolute; left: -80px; right: -80px; top: 50%; transform: translateY(-50%); animation: rule-flow 5s linear infinite; }
.rule .r-minor { height: 10px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 16px); }
.rule .r-major { height: 22px; background: repeating-linear-gradient(90deg, rgba(190, 165, 255, 0.75) 0 1px, transparent 1px 80px); }
.rule-now { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 16px 3px rgba(140, 92, 255, 0.85); }
.rule-now::before { content: ""; position: absolute; top: -6px; left: 50%; width: 0; height: 0; margin-left: -5px; border: 5px solid transparent; border-top: 6px solid #fff; border-bottom: 0; }
.rule-now::after { content: "NOW"; position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font-size: 0.56rem; font-weight: 800; letter-spacing: 0.24em; color: #d7cbff; text-shadow: 0 0 10px rgba(140, 92, 255, 0.9); }

/* app pages: dial drifts to the top-right, ruler hugs the bottom edge */
.scene-app .scene-aurora-a { opacity: 0.35; animation-duration: 28s; }
.scene-app .dial { left: auto; right: -14vmin; top: -10vmin; transform: none; width: min(72vmin, 640px); opacity: 0.55; }
.scene-app .dial-num text { fill: rgba(255, 255, 255, 0.28); }
.scene-app .rule { bottom: 14px; opacity: 0.6; }
.scene-app .rule-now::after { display: none; }

@keyframes aurora-a { to { transform: translateX(-42%) translateY(6vmax) scale(1.08); } }
@keyframes aurora-b { to { transform: translate(10vmax, -8vmax) scale(1.15); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rule-flow { to { background-position: -80px 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes card-in { from { opacity: 0; transform: translateY(22px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(22, 216, 144, 0.6); } 100% { box-shadow: 0 0 0 9px rgba(22, 216, 144, 0); } }
@keyframes beam-sweep { 0% { left: -30%; } 60%, 100% { left: 100%; } }
@keyframes shine-sweep { 0% { left: -40%; } 35%, 100% { left: 120%; } }

/* ------------------------------------------------------------ controls */
.btn {
  min-height: 40px;
  border: 1px solid #673de6;
  border-radius: 8px;
  padding: 0 1rem;
  background: #673de6;
  color: #fff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  position: relative;
  overflow: hidden;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { filter: none; background: #7e56f2; border-color: #7e56f2; color: #fff; box-shadow: none; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: none; backdrop-filter: none; }
.btn.ghost:hover { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.06); filter: none; box-shadow: none; color: #fff; }
.btn.danger { background: linear-gradient(90deg, #e0486c, var(--danger)); color: #fff; box-shadow: 0 8px 22px rgba(255, 107, 138, 0.3); }
.btn.small { min-height: 34px; padding: 0 0.8rem; font-size: 0.8rem; border-radius: 10px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-lg { width: 100%; min-height: 50px; font-size: 1rem; border-radius: 14px; margin-top: 0.3rem; }
.btn-lg::after { content: none; }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 0 0.9rem;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
select { background-color: var(--surface); }
select option { background: var(--surface); color: var(--ink); }
textarea { min-height: 180px; padding: 0.7rem 0.9rem; }
input:focus, select:focus, textarea:focus { border-color: var(--accent-hot); box-shadow: 0 0 0 3px rgba(103, 61, 230, 0.28), 0 0 22px rgba(103, 61, 230, 0.2); background: color-mix(in srgb, var(--bg) 92%, transparent); }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; accent-color: var(--accent); }
label { display: grid; gap: 0.4rem; margin-bottom: 0.9rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
label input, label select, label textarea { letter-spacing: 0; text-transform: none; }
label.btn { display: inline-flex; margin: 0; font-size: 0.85rem; letter-spacing: 0; text-transform: none; }
.control-wrap { position: relative; display: block; }
.control-wrap input { padding-left: 2.7rem; }
.control-ico { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--faint); pointer-events: none; }
.control-ico svg { width: 20px; height: 20px; }
.control-wrap:focus-within .control-ico { color: var(--accent-hot); }
.lead, .empty, .muted { color: var(--muted); }
.lead { margin: 0 0 1.2rem; line-height: 1.5; }
.status-pill {
  display: inline-flex; align-items: center; gap: 0.5rem; max-width: 100%;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  padding: 0.35rem 0.8rem; border-radius: 999px;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 60%, transparent);
  backdrop-filter: blur(8px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.status-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); flex: none; animation: pulse-dot 2.2s ease-out infinite; }
.corner { position: absolute; width: 18px; height: 18px; border: 1.5px solid rgba(140, 92, 255, 0.85); z-index: 2; pointer-events: none; transition: width 0.3s ease, height 0.3s ease; }
.c-tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.c-tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.c-bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.c-br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
.beam {
  position: absolute; top: 0; left: -30%; width: 30%; height: 1.5px; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  filter: drop-shadow(0 0 6px rgba(140, 92, 255, 0.9));
  animation: beam-sweep 4.5s ease-in-out 1s infinite;
}

/* ------------------------------------------------------------ sign in */
.gate-body { min-height: 100vh; position: relative; }
.gate { position: relative; z-index: 1; width: min(980px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 3rem; }
.gate-brand { display: flex; margin-bottom: 1.4rem; }
.gate-logo { height: 50px; width: auto; max-width: 220px; object-fit: contain; }
.auth-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: stretch; }
.auth-aside {
  background: #1c1c1c; color: var(--ink); border: 1px solid var(--line); border-radius: 20px;
  padding: 2rem 1.75rem; display: flex; flex-direction: column; justify-content: space-between;
}
.auth-kicker { margin: 0 0 0.7rem; width: fit-content; padding: 0.22rem 0.62rem; border-radius: 999px; background: rgba(103, 61, 230, 0.1); color: #c4b5fd; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.auth-aside h2 { margin: 0 0 0.7rem; font-size: 1.85rem; letter-spacing: -0.04em; }
.auth-aside p { margin: 0; color: var(--muted); line-height: 1.6; }
.auth-aside ul { margin: 1.25rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.auth-aside li { font-weight: 600; font-size: 0.95rem; }
.auth-aside li::before { content: "✓  "; color: #8c5cff; }
.auth-aside-foot { margin-top: 1.5rem; font-size: 0.88rem; color: #c8c8d2; }
.gate-card {
  position: relative; width: 100%;
  padding: 1.75rem 1.6rem;
  border-radius: 20px;
  background: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.28);
}
.gate-card h1 { margin: 0 0 0.35rem; font-size: 1.55rem; }
.gate-card .gate-lede { margin: 0 0 1.2rem; font-size: 0.92rem; color: var(--muted); }
.gate-card .btn { width: 100%; }
.gate-card .alert { background: rgba(255, 107, 138, 0.1); border: 1px solid rgba(255, 107, 138, 0.35); border-radius: 12px; padding: 0.65rem 0.8rem; margin: 0 0 0.85rem; color: #ffd4de; font-size: 0.9rem; }
.gate-links { margin: 1rem 0 0; color: var(--muted); font-size: 0.92rem; font-weight: 500; }
.gate-stack, .gate-foot { display: none; }
/* kept for old templates that still reference them */
.gate-hero, .gate-kicker, .gate-features { display: none; }

/* ------------------------------------------------------------ app shell */
.bar {
  position: sticky; top: 0; z-index: 100;
  height: 52px;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0 1rem;
  background: #141414;
  border-bottom: 1px solid var(--line);
  color: #e4e4ea;
}
.bar-menu { display: none; flex-direction: column; justify-content: center; gap: 3px; width: 40px; height: 40px; padding: 0 10px; background: none; border: 0; border-radius: 8px; color: inherit; }
.bar-menu span { display: block; height: 2px; background: currentColor; }
.brand { display: inline-flex; align-items: center; height: 52px; padding: 0 0.5rem; }
.brand img { height: 46px; width: auto; max-width: 200px; object-fit: contain; }
.bar-link { display: inline-flex; align-items: center; height: 52px; padding: 0 0.7rem; border-radius: 8px; color: inherit; font-weight: 500; }
.bar-link:hover { color: #673de6; background: #1c1c1c; }
.bar-right { margin-left: auto; display: flex; align-items: center; gap: 0.35rem; }
.who-menu { position: relative; }
.who-menu summary { list-style: none; display: flex; align-items: center; gap: 0.45rem; height: 52px; padding: 0 0.7rem; cursor: pointer; border-radius: 8px; }
.who-menu summary::-webkit-details-marker { display: none; }
.who-menu summary:hover { color: #673de6; background: #1c1c1c; }
.avatar { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #673de6; color: #fff; font-weight: 700; font-size: 0.7rem; flex: none; box-shadow: none; }
.who-panel { position: absolute; right: 0; top: 52px; min-width: 200px; background: #1c1c1c; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28); padding: 0.4rem 0; overflow: hidden; }
.who-role { display: block; padding: 0.45rem 0.95rem 0.55rem; color: var(--muted); font-size: 0.78rem; }
.who-panel button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0.55rem 0.95rem; color: #f4f4f6; cursor: pointer; }
.who-panel button:hover { background: #1c1c1c; color: #673de6; }
.picker { display: flex; align-items: center; gap: 0.4rem; margin: 0; letter-spacing: 0; text-transform: none; font-size: 0.85rem; font-weight: 600; }
.picker span { color: var(--muted); font-size: 0.78rem; }
.picker select { min-height: 34px; width: auto; max-width: 200px; background: #1c1c1c; }
.app { display: flex; min-height: calc(100vh - 52px); position: relative; z-index: 1; }
.rail {
  width: 200px; flex: 0 0 200px;
  position: sticky; top: 52px; height: calc(100vh - 52px); overflow-y: auto;
  display: flex; flex-direction: column; min-width: 0;
  background: #1c1c1c;
  border-right: 1px solid var(--line);
  padding: 0.4rem 0 0;
}
.rail-tag { display: block; margin: 0.7rem 0.9rem 0.3rem; color: #7a7a88; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.rail nav { display: grid; min-width: 0; }
.rail a {
  position: relative; min-width: 0;
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.58rem 0.85rem;
  border-left: 3px solid transparent;
  color: #e4e4ea; font-size: 0.9rem; font-weight: 500;
}
.rail a i { width: 16px; height: 16px; flex: none; display: grid; place-items: center; font-style: normal; color: inherit; }
.rail a i svg { width: 16px; height: 16px; }
.rail a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail a:hover { background: rgba(103, 61, 230, 0.08); color: #673de6; }
.rail a.on { color: #673de6; font-weight: 600; background: rgba(103, 61, 230, 0.14); border-left-color: #673de6; }
.rail-foot { margin-top: auto; padding: 0.85rem; border-top: 1px solid var(--line); }
.workspace { flex: 1; min-width: 0; }
.page { padding: 1.35rem 1.5rem 2.2rem; max-width: none; }
.ca-credit { margin: 2rem 0 0; color: var(--muted); font-size: 0.8rem; }
.menu-backdrop { display: none; }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.section-head h1, .section-head h2 { margin-bottom: 0.2rem; }
.section-head .lead { margin: 0; }
.head-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: flex-end; }
.head-actions:empty { display: none; }
.messages { list-style: none; padding: 0; margin: 0 0 1rem; }
.messages li { background: rgba(22, 216, 144, 0.1); border: 1px solid rgba(22, 216, 144, 0.35); border-radius: 12px; padding: 0.7rem 0.85rem; margin-bottom: 0.6rem; backdrop-filter: blur(8px); }
.messages .error { background: rgba(255, 107, 138, 0.1); border-color: rgba(255, 107, 138, 0.4); }

/* ------------------------------------------------------------ surfaces */
.card, .stats article, .cards article, .panel-form, table, .tool, .site-card, .service-card, .plan-card, .table-wrap, .fm, .wizard-pane, .wizard-steps li, .hint, .editor-wrap {
  background: #1c1c1c;
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: none;
  box-shadow: none;
}
.stats, .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 0.75rem; margin: 0 0 1.3rem; }
.stats article, .cards article { position: relative; overflow: hidden; padding: 1rem 1.05rem; transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.stats article::before { content: ""; position: absolute; left: 1rem; right: 1rem; top: 0; height: 1px; background: linear-gradient(90deg, var(--accent-hot), transparent); opacity: 0.6; }
.stats article:hover, .cards article:hover { border-color: var(--edge-hot); box-shadow: 0 10px 30px rgba(103, 61, 230, 0.15); transform: translateY(-1px); }
.stats span, .cards span { display: block; color: var(--muted); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.stats strong, .cards strong { display: block; font-size: 1.6rem; margin: 0.25rem 0 0.1rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stats em { color: var(--muted); font-style: normal; font-size: 0.78rem; }
.group { margin-bottom: 1.4rem; }
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 0.7rem; }
.tool { display: flex; align-items: center; gap: 0.7rem; padding: 0.8rem 0.9rem; color: var(--ink); font-weight: 600; transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.tool:hover { border-color: var(--edge-hot); box-shadow: 0 10px 30px rgba(103, 61, 230, 0.18); color: #fff; transform: translateY(-1px); }
.tool i { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: #d7cbff; font-style: normal; font-weight: 700; font-size: 0.78rem; box-shadow: inset 0 0 0 1px rgba(140, 92, 255, 0.2); }
.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.8rem; margin: 0.4rem 0 1rem; }
.site-card { display: grid; gap: 0.25rem; padding: 1rem 1.05rem; color: var(--ink); position: relative; overflow: hidden; transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.site-card strong { font-size: 1rem; overflow-wrap: anywhere; }
.site-card span { color: var(--muted); font-size: 0.88rem; }
.site-card em { color: var(--accent-hot); font-style: normal; font-size: 0.8rem; font-weight: 600; }
.site-card:hover, .site-card.pick:has(input:checked) { border-color: var(--edge-hot); box-shadow: 0 0 0 1px rgba(140, 92, 255, 0.15), 0 12px 34px rgba(103, 61, 230, 0.18); color: #fff; transform: translateY(-2px); }
.site-card.pick:has(input:checked) { background: linear-gradient(160deg, rgba(103, 61, 230, 0.26), var(--glass)); }
.site-card input { position: absolute; opacity: 0; pointer-events: none; }
.site-card.pick { cursor: pointer; margin: 0; font-weight: 400; letter-spacing: 0; text-transform: none; font-size: inherit; }

/* ------------------------------------------------------------ customer dashboard */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 280px; gap: 1.5rem; align-items: stretch;
  padding: 1.3rem 1.5rem 1.4rem 1.7rem; margin-bottom: 1.15rem;
  border: 1px solid var(--line); border-radius: 16px;
  background: #1c1c1c;
  box-shadow: none;
}
.hero::before { content: ""; width: 4px; background: #673de6; position: absolute; inset: 0 auto 0 0; }
.hero::after { content: none; }
.hero h1 { margin: 0.4rem 0 0.5rem; font-size: 2rem; }
.hero p { margin: 0 0 1.1rem; color: var(--muted); max-width: 56ch; line-height: 1.5; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.28rem 0.7rem; border-radius: 999px; background: var(--accent-soft); border: 1px solid rgba(140, 92, 255, 0.3); color: #d7cbff; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(22, 216, 144, 0.18); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hero-meter { position: relative; display: grid; align-content: center; gap: 0.35rem; padding: 1.1rem 1.2rem; border-radius: 18px; background: color-mix(in srgb, var(--bg) 55%, transparent); border: 1px solid var(--edge); backdrop-filter: blur(10px); }
.hero-meter > span { color: var(--muted); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.hero-meter strong { font-size: 2.2rem; line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.hero-meter strong small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.hero-meter em { color: var(--muted); font-style: normal; font-size: 0.8rem; }
.meter { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; margin: 0.35rem 0; }
.meter i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-hot)); box-shadow: 0 0 14px rgba(140, 92, 255, 0.8); }
.link { color: var(--accent-hot); font-weight: 600; font-size: 0.9rem; }
.site-card-rich { gap: 0.3rem; padding: 1.05rem 1.1rem 0.95rem; }
.site-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.45rem; }
.kind { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; font-style: normal; font-weight: 800; font-size: 0.82rem; color: #fff; background: var(--accent); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.kind-static { background: #2f8ae0; } .kind-php { background: #6f6cc9; } .kind-wordpress { background: #21759b; }
.kind-django { background: #0c7a5b; } .kind-flask { background: #4b5563; } .kind-fastapi { background: #0f9d8a; } .kind-node { background: #3c873a; }
.site-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem; margin-top: 0.4rem; color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #5b5b66; display: inline-block; flex: none; }
.dot-ok { background: var(--ok); box-shadow: 0 0 10px rgba(22, 216, 144, 0.8); }
.dot-bad { background: var(--danger); box-shadow: 0 0 10px rgba(255, 107, 138, 0.8); }
.dot-warn { background: var(--warn); box-shadow: 0 0 10px rgba(246, 183, 60, 0.8); }
.site-meta .dot + .dot, .site-meta .dot:not(:first-child) { margin-left: 0.4rem; }
.site-card-rich em { margin-top: 0.5rem; }
.site-card-add { align-content: center; justify-items: center; text-align: center; border-style: dashed; border-color: rgba(140, 92, 255, 0.45); background: rgba(103, 61, 230, 0.05); min-height: 170px; }
.site-card-add i { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: #d7cbff; font-style: normal; font-size: 1.5rem; font-weight: 700; margin-bottom: 0.3rem; box-shadow: 0 0 20px rgba(103, 61, 230, 0.3); }
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.2rem; margin-top: 1.4rem; }
.two-col .section-head { margin-bottom: 0.7rem; }
.activity { padding: 0.3rem 1rem; }
.activity-row { display: flex; align-items: center; gap: 0.8rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.activity-row:last-child { border-bottom: 0; }
.activity-row div { display: grid; min-width: 0; flex: 1; }
.activity-row strong { font-size: 0.92rem; }
.activity-row span:not(.dot) { color: var(--muted); font-size: 0.8rem; }
.activity-row time { color: var(--muted); font-size: 0.78rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.activity .empty { padding: 0.8rem 0; margin: 0; }
.steps { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 1.2rem; }
.steps li { padding: 0.4rem 0.8rem; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.steps li.on { background: var(--accent-soft); border-color: var(--edge-hot); color: #fff; box-shadow: 0 0 16px rgba(103, 61, 230, 0.3); }
.panel-form { display: grid; grid-template-columns: 1.4fr 0.8fr auto; gap: 0.8rem; align-items: end; padding: 1rem; margin-bottom: 1rem; }
.panel-form label { margin: 0; }

/* ------------------------------------------------------------ tables */
table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; }
th, td { text-align: left; padding: 0.8rem 0.95rem; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 700; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
tbody tr { transition: background 0.15s ease; }
tbody tr:hover td { background: rgba(255, 255, 255, 0.025); }
td form { margin: 0; }
.pill { display: inline-block; background: var(--accent-soft); color: #d7cbff; border-radius: 999px; padding: 0.15rem 0.6rem; font-size: 0.76rem; font-weight: 600; text-transform: capitalize; box-shadow: inset 0 0 0 1px rgba(140, 92, 255, 0.2); }
.pill-ok { background: rgba(22, 216, 144, 0.14); color: var(--ok); box-shadow: inset 0 0 0 1px rgba(22, 216, 144, 0.3); }
.pill-bad { background: rgba(255, 107, 138, 0.14); color: var(--danger); box-shadow: inset 0 0 0 1px rgba(255, 107, 138, 0.3); }
.pill-warn { background: rgba(246, 183, 60, 0.14); color: var(--warn); box-shadow: inset 0 0 0 1px rgba(246, 183, 60, 0.3); }
.row-link { color: var(--ink); font-weight: 600; }
.row-link:hover { color: #fff; text-decoration: underline; }
.table-wrap { overflow: hidden; margin-bottom: 1.2rem; }
.table-wrap table { border: 0; border-radius: 0; background: transparent; backdrop-filter: none; box-shadow: none; }
.table-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface-2) 55%, transparent); margin: 0; }
.table-tools select { min-height: 38px; width: auto; font-size: 0.85rem; }
.table-tools .muted { margin-left: auto; font-size: 0.82rem; }
.kind-tag { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 8px; font-size: 0.74rem; font-weight: 700; color: #fff; background: #3a3a44; }
.kind-tag.kind-off { background: transparent; color: var(--faint); border: 1px dashed #3a3a44; }
.kind-tag.kind-static { background: #2f8ae0; } .kind-tag.kind-php { background: #6f6cc9; } .kind-tag.kind-wordpress { background: #21759b; }
.kind-tag.kind-django { background: #0c7a5b; } .kind-tag.kind-flask { background: #4b5563; } .kind-tag.kind-fastapi { background: #0f9d8a; } .kind-tag.kind-node { background: #3c873a; }
.inline-form { display: flex; gap: 0.4rem; align-items: center; margin: 0; }
.inline-form select { min-height: 36px; width: auto; font-size: 0.82rem; }
.who-cell { display: flex; align-items: center; gap: 0.6rem; }
.who-cell .avatar { width: 30px; height: 30px; font-size: 0.8rem; box-shadow: none; }
.quick-add { padding: 0; }
.quick-add summary { cursor: pointer; padding: 0.9rem 1rem; font-weight: 600; color: var(--muted); list-style: none; }
.quick-add summary::before { content: "▸ "; color: var(--accent-hot); }
.quick-add[open] summary::before { content: "▾ "; }
.quick-add .panel-form { border: 0; border-radius: 0; margin: 0; padding: 0 1rem 0.5rem; background: transparent; backdrop-filter: none; box-shadow: none; }
.quick-add > .muted { margin: 0; padding: 0 1rem 0.9rem; font-size: 0.82rem; }
.panel-form label span, .form-grid label span, .big-field span, .fm-site label span { display: block; margin-bottom: 0.3rem; color: var(--muted); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.two-col-wide { grid-template-columns: 1.6fr 1fr; margin-top: 0; }
.howto h2 { margin: 0 0 0.6rem; font-size: 1.05rem; }
.howto ol { margin: 0 0 0.8rem; padding-left: 1.2rem; color: var(--muted); display: grid; gap: 0.45rem; font-size: 0.92rem; }
.howto { padding: 1.1rem 1.2rem; align-self: start; }

/* ------------------------------------------------------------ misc text */
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 6px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.small { font-size: 0.8rem; }
.nowrap { white-space: nowrap; }
.text-ok { color: var(--ok); } .text-bad { color: var(--danger); }
.note { margin: 1rem 0 0; padding: 0.75rem 0.95rem; border-left: 3px solid var(--accent); background: rgba(103, 61, 230, 0.08); border-radius: 0 12px 12px 0; color: var(--muted); font-size: 0.88rem; }
kbd { font-family: inherit; font-size: 0.78rem; padding: 0.05rem 0.4rem; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; background: var(--surface-2); }

/* ------------------------------------------------------------ file manager */
.fm-site label { display: flex; align-items: center; gap: 0.6rem; margin: 0; font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 0.9rem; }
.fm-site label span { color: var(--muted); font-size: 0.85rem; margin: 0; }
.fm-site select { min-height: 40px; width: auto; min-width: 200px; }
.fm { overflow: hidden; }
.fm-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.92rem; font-weight: 600; min-width: 0; }
.crumbs a { color: var(--muted); display: inline-flex; align-items: center; gap: 0.4rem; }
.crumbs a:hover { color: var(--ink); }
.crumbs a i { font-style: normal; color: var(--accent-hot); }
.crumbs span { color: var(--faint); }
.crumbs strong { color: var(--ink); }
.fm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.fm-actions form { margin: 0; }
.fm-actions .btn { min-height: 38px; padding: 0 0.9rem; font-size: 0.85rem; margin: 0; cursor: pointer; }
.fm-filter { min-height: 38px; width: 200px; font-size: 0.85rem; }
.fm-newfolder { display: flex; gap: 0.5rem; align-items: center; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); background: rgba(103, 61, 230, 0.08); }
.fm-newfolder[hidden] { display: none; }
.fm-newfolder input { max-width: 320px; min-height: 40px; }
.fm-newfolder .btn { min-height: 40px; }
.fm-selection { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; padding: 0.7rem 1rem; border-bottom: 1px solid rgba(140, 92, 255, 0.4); background: var(--accent-soft); }
.fm-selection[hidden] { display: none; }
.fm-selection strong { margin-right: 0.4rem; }
.fm-selection-group { display: flex; gap: 0.4rem; align-items: center; }
.fm-selection input { min-height: 36px; width: 180px; font-size: 0.82rem; }
.fm-selection .btn { min-height: 36px; padding: 0 0.8rem; font-size: 0.82rem; }
.fm-selection .link { background: none; border: 0; cursor: pointer; margin-left: auto; min-height: 0; padding: 0; font: inherit; font-weight: 600; font-size: 0.85rem; color: var(--accent-hot); }
.fm-table { border: 0; border-radius: 0; background: transparent; backdrop-filter: none; box-shadow: none; }
.fm-table th { background: transparent; }
.fm-check { width: 44px; text-align: center; }
.fm-check input { width: 16px; height: 16px; min-height: 0; margin: 0; accent-color: var(--accent); cursor: pointer; }
.fm-name a { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--ink); font-weight: 600; }
.fm-name a:hover { color: #fff; }
.fm-size { width: 110px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fm-date { width: 170px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fm-rowactions { width: 96px; text-align: right; white-space: nowrap; }
.fm-rowactions form { display: inline; margin: 0; }
.fm-row.is-picked td { background: rgba(103, 61, 230, 0.14); }
.fm-up a { color: var(--muted); display: inline-flex; align-items: center; gap: 0.65rem; font-weight: 600; }
.fm-up a:hover { color: var(--ink); }
.fm-blank td { text-align: center; color: var(--muted); padding: 2.4rem 1rem; }
.ficon { width: 34px; height: 30px; display: inline-grid; place-items: center; border-radius: 8px; font-style: normal; font-weight: 800; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.02em; color: #fff; background: #3a3a44; flex: none; }
.ficon-dir, .ficon-up { background: var(--accent-soft); color: var(--accent-hot); font-size: 0.9rem; box-shadow: inset 0 0 0 1px rgba(140, 92, 255, 0.25); }
.ficon-html { background: #e34c26; } .ficon-css { background: #2965f1; } .ficon-js { background: #c9a900; color: #1a1a1a; }
.ficon-php { background: #6f6cc9; } .ficon-py { background: #0c7a5b; } .ficon-img { background: #c2457f; }
.ficon-zip { background: #7a5a2f; } .ficon-txt { background: #4b5563; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--muted); border: 1px solid transparent; font-size: 0.95rem; background: none; cursor: pointer; font-family: inherit; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.icon-btn:hover { color: var(--ink); background: var(--surface-2); border-color: var(--line-2); }
.icon-btn.extract-btn { color: var(--accent-hot); }
.icon-btn.extract-btn:hover { background: var(--accent-soft); border-color: var(--edge-hot); }
.icon-btn.icon-danger:hover { color: var(--danger); background: rgba(255, 107, 138, 0.12); border-color: rgba(255, 107, 138, 0.4); }
.fm-foot { margin: 0; padding: 0.7rem 1rem; border-top: 1px solid var(--line); font-size: 0.8rem; }
.fm-empty { display: grid; justify-items: center; text-align: center; gap: 0.4rem; padding: 2.6rem 1rem; }
.fm-empty i { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--accent-soft); color: var(--accent-hot); font-style: normal; font-size: 1.5rem; margin-bottom: 0.4rem; box-shadow: 0 0 24px rgba(103, 61, 230, 0.3); }
.fm-empty p { margin: 0 0 0.8rem; }

/* ------------------------------------------------------------ wizard */
.wizard-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; list-style: none; padding: 0; margin: 0 0 1.2rem; }
.wizard-steps li { display: flex; align-items: center; gap: 0.7rem; padding: 0.8rem 0.95rem; border-radius: 14px; color: var(--muted); }
.wizard-steps li i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); font-style: normal; font-weight: 800; font-size: 0.82rem; flex: none; }
.wizard-steps li div { display: grid; line-height: 1.2; }
.wizard-steps li strong { color: var(--ink); font-size: 0.92rem; }
.wizard-steps li span { font-size: 0.78rem; }
.wizard-steps li.on { border-color: var(--edge-hot); background: linear-gradient(90deg, rgba(103, 61, 230, 0.28), var(--glass)); box-shadow: 0 0 20px rgba(103, 61, 230, 0.2); }
.wizard-steps li.on i { background: linear-gradient(135deg, var(--accent), var(--accent-hot)); color: #fff; box-shadow: 0 0 14px rgba(140, 92, 255, 0.6); }
.wizard-steps li.done i { background: rgba(22, 216, 144, 0.16); color: var(--ok); }
.wizard-pane { border-radius: 22px; padding: 1.5rem 1.6rem; max-width: 980px; position: relative; }
.wizard-pane h2 { margin: 0 0 1rem; font-size: 1.3rem; }
.wizard-pane .site-grid { margin: 0 0 1.2rem; }
.wizard-pane .site-card.pick { gap: 0.3rem; }
.wizard-pane .site-card.pick .kind { margin-bottom: 0.3rem; }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.big-field { display: block; margin: 0 0 1.2rem; max-width: 520px; }
.big-field input { min-height: 54px; font-size: 1.05rem; }
.hint-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.8rem; }
.hint { display: flex; gap: 0.8rem; padding: 0.95rem 1rem; border-radius: 14px; background: var(--glass-2); }
.hint i { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: #d7cbff; font-style: normal; font-weight: 800; }
.hint.ok i { background: rgba(22, 216, 144, 0.16); color: var(--ok); }
.hint.warn i { background: rgba(246, 183, 60, 0.16); color: var(--warn); }
.hint div { display: grid; gap: 0.2rem; }
.hint strong { font-size: 0.95rem; }
.hint span { color: var(--muted); font-size: 0.86rem; }

/* ------------------------------------------------------------ site page */
.site-title { display: flex; align-items: center; gap: 0.9rem; }
.site-title .kind { width: 48px; height: 48px; font-size: 1rem; border-radius: 14px; }
.site-title h1 { margin: 0; }
.site-title .lead { margin: 0.2rem 0 0; display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.url-box { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; padding: 0.9rem 1.1rem; margin-bottom: 1rem; border-radius: 16px; border: 1px solid rgba(140, 92, 255, 0.35); background: linear-gradient(90deg, rgba(103, 61, 230, 0.18), transparent 70%), var(--glass); backdrop-filter: blur(12px); }
.url-box > span { color: var(--muted); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.url-box a { font-size: 1.05rem; font-weight: 600; color: #fff; overflow-wrap: anywhere; }
.url-box .btn { margin-left: auto; }
.tool-form { margin: 0; display: contents; }
button.tool { width: 100%; cursor: pointer; font-family: inherit; font-size: inherit; text-align: left; }
.tool-danger:hover { border-color: rgba(255, 107, 138, 0.5); box-shadow: 0 10px 30px rgba(255, 107, 138, 0.12); }
.tool-danger i { background: rgba(255, 107, 138, 0.14); color: var(--danger); box-shadow: inset 0 0 0 1px rgba(255, 107, 138, 0.25); }

/* ------------------------------------------------------------ admin */
.hero-admin { grid-template-columns: 1fr 320px; }
.service-dots { display: flex; gap: 0.4rem; margin: 0.3rem 0; }
.service-dots .dot { width: 12px; height: 12px; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.service-card { display: flex; align-items: center; gap: 0.8rem; padding: 0.95rem 1rem; }
.service-card.is-down { border-color: rgba(255, 107, 138, 0.4); box-shadow: 0 0 20px rgba(255, 107, 138, 0.1); }
.service-card div { display: grid; flex: 1; }
.service-card .dot { width: 12px; height: 12px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.9rem; margin-bottom: 1.3rem; }
.plan-card { border-radius: 20px; padding: 1.15rem 1.25rem; display: grid; gap: 0.6rem; position: relative; overflow: hidden; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.plan-card::before { content: ""; position: absolute; left: 1.2rem; right: 1.2rem; top: 0; height: 1px; background: linear-gradient(90deg, var(--accent-hot), transparent); opacity: 0.7; }
.plan-card:hover { border-color: var(--edge-hot); box-shadow: 0 12px 34px rgba(103, 61, 230, 0.16); }
.plan-card.is-off { opacity: 0.6; }
.plan-top { display: flex; justify-content: space-between; align-items: center; }
.plan-top strong { font-size: 1.1rem; }
.plan-price { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; }
.plan-price small { font-size: 0.8rem; color: var(--muted); font-weight: 600; margin-left: 0.2rem; }
.plan-limits { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; color: var(--muted); font-size: 0.9rem; }
.plan-limits b { color: var(--ink); }
.plan-types { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.plan-card p { margin: 0; }
.plan-card footer { padding-top: 0.6rem; border-top: 1px solid var(--line); }
.form-card { padding: 1.3rem 1.4rem; }
.form-card h2 { margin: 0 0 1rem; font-size: 1.15rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.8rem 1rem; align-items: end; }
.form-grid label { margin: 0; }
.form-grid .span-all { grid-column: 1 / -1; }
.form-grid fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem 0.9rem 0.8rem; margin: 0; background: color-mix(in srgb, var(--bg) 40%, transparent); }
.form-grid legend { padding: 0 0.4rem; color: var(--muted); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.check { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.9rem; color: var(--ink); min-height: 48px; letter-spacing: 0; text-transform: none; }
.check input { width: 16px; height: 16px; min-height: 0; margin: 0; accent-color: var(--accent); }
.check-row { display: flex; flex-wrap: wrap; gap: 0.2rem 1.2rem; }
.check-row .check { min-height: 32px; }
.form-actions { display: flex; justify-content: flex-end; }

/* ------------------------------------------------------------ editor */
.editor-wrap { display: grid; grid-template-columns: 52px 1fr; background: color-mix(in srgb, #0c0c10 85%, transparent); overflow: hidden; }
.editor-gutter { padding: 0.9rem 0.5rem; text-align: right; color: #4f4f5a; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.86rem; line-height: 1.5; white-space: pre; overflow: hidden; user-select: none; border-right: 1px solid var(--line); background: rgba(0, 0, 0, 0.35); }
.editor-wrap .editor { min-height: 520px; border: 0; border-radius: 0; background: transparent; color: #e8e8ef; padding: 0.9rem 1rem; font-size: 0.86rem; line-height: 1.5; resize: vertical; }
.editor-wrap .editor:focus { outline: none; box-shadow: none; }
.section-head h1 .ficon { vertical-align: -6px; margin-right: 0.5rem; }
.file-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1rem; align-items: center; }
.file-actions form { margin: 0; display: flex; gap: 0.5rem; align-items: center; }
.editor { width: 100%; min-height: 420px; font-family: ui-monospace, monospace; font-size: 0.92rem; line-height: 1.45; }

/* ------------------------------------------------------------ motion + responsive */
@media (prefers-reduced-motion: reduce) {
  .scene-aurora, .scene-grid, .scene-orbit, .status-pill i, .beam, .btn-lg::after, .gate-card, .gate-card label, .gate-card .btn, .gate-card .gate-links, .gate-brand, .gate-stack, .gate-foot, .page { animation: none !important; }
  .beam, .btn-lg::after { display: none; }
}
@media (max-width: 900px) {
  .bar-menu { display: flex; }
  .bar-link:first-of-type { display: none; }
  .who-menu summary span, .who-menu summary { font-size: 0; }
  .who-menu summary .avatar { font-size: 0.7rem; }
  .rail {
    position: fixed; top: 52px; left: 0; z-index: 90;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    height: calc(100vh - 52px);
  }
  body.menu-open .rail { transform: none; }
  body.menu-open .menu-backdrop { display: block; position: fixed; inset: 52px 0 0; background: rgba(0, 0, 0, 0.55); z-index: 80; }
  .panel-form { grid-template-columns: 1fr; }
  .hero, .two-col, .two-col-wide, .wizard-steps, .hero-admin, .auth-split { grid-template-columns: 1fr; }
  .picker { display: none; }
  .fm-date { display: none; }
  .fm-filter { width: 100%; }
  .page { padding: 1.1rem 1rem 3rem; }
}
.tool i svg { width: 20px; height: 20px; color: #c4b5fd; }

.hh-kicker {
  margin: 0 0 0.45rem;
  width: fit-content;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(103, 61, 230, 0.16);
  color: #ddd6ff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ca-welcome {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  background: #1c1c1c;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.3rem 1.5rem 1.4rem;
  margin-bottom: 1.15rem;
  overflow: hidden;
}
.ca-welcome::before {
  content: "";
  width: 4px;
  background: #673de6;
  position: absolute;
  inset: 0 auto 0 0;
}
.ca-welcome-copy { padding-left: 0.45rem; }
.ca-welcome h1 { margin: 0 0 0.4rem; font-size: 1.7rem; letter-spacing: -0.04em; }
.ca-welcome p { margin: 0; color: var(--muted); max-width: 46rem; line-height: 1.5; }
.ca-welcome-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.ca-welcome .hero-meter { background: #141414; border-color: var(--line); }
.section-head h1 { font-size: 1.7rem; letter-spacing: -0.04em; }
.section-head h2 { font-size: 1.05rem; }
table th { color: var(--muted); font-weight: 600; font-size: 0.78rem; }
table td, table th { border-bottom: 1px solid var(--line); }
table tr:last-child td { border-bottom: 0; }
@media (max-width: 900px) {
  .ca-welcome { grid-template-columns: 1fr; }
}
