/* Short Maker — "Minimalist Modern" design system.
   Tokens first; every component below reads from them. */
:root {
  --background: #FAFAFA;
  --foreground: #0F172A;
  --muted: #F1F5F9;
  --muted-foreground: #64748B;
  --accent: #0052FF;
  --accent-secondary: #4D7CFF;
  --accent-foreground: #FFFFFF;
  --border: #E2E8F0;
  --card: #FFFFFF;
  --ring: #0052FF;

  --ok: #047857;   --ok-bg: #ECFDF5;
  --warn: #B45309; --warn-bg: #FFFBEB;
  --err: #DC2626;  --err-bg: #FEF2F2;

  --gradient: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  --gradient-x: linear-gradient(to right, var(--accent), var(--accent-secondary));

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, .07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, .08);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, .1);
  --shadow-accent: 0 4px 14px rgba(0, 82, 255, .25);
  --shadow-accent-lg: 0 8px 24px rgba(0, 82, 255, .35);

  --radius: 12px;
  --radius-lg: 16px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  --font-display: "Calistoga", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--background); color: var(--foreground);
  font: 15px/1.65 var(--font-sans); -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
img, video { max-width: 100%; }

/* ---- ambient glow behind every page ---- */
.glow { position: fixed; z-index: -1; width: 640px; height: 640px; border-radius: 50%;
  background: var(--accent); filter: blur(150px); opacity: .06; pointer-events: none; }
.glow.tr { top: -320px; right: -220px; }
.glow.bl { bottom: -360px; left: -260px; opacity: .04; }

/* ---- top bar ---- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(250, 250, 250, .78);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border); }
.topbar .inner { max-width: 72rem; margin: 0 auto; padding: 0 20px; height: 64px;
  display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--foreground);
  font-family: var(--font-display); font-size: 19px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; background: var(--gradient);
  box-shadow: var(--shadow-accent); display: grid; place-items: center; }
.brand-mark svg { width: 16px; height: 16px; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 10px; color: var(--muted-foreground); font-weight: 500;
  font-size: 14px; transition: all .2s ease-out; }
.nav a:hover { color: var(--foreground); background: var(--muted); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--foreground); background: var(--card);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--border); }
.topbar .right { margin-left: auto; }

/* ---- layout ---- */
main { max-width: 72rem; margin: 0 auto; padding: 40px 20px 96px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; margin-bottom: 32px; }
.page-head h1 { margin: 14px 0 0; }
.page-head p { margin: 8px 0 0; color: var(--muted-foreground); max-width: 46rem; }
.stack { display: grid; gap: 24px; }
.grid { display: grid; gap: 24px; }
.grid-asym { grid-template-columns: 1.1fr .9fr; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-form { display: grid; gap: 4px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---- type ---- */
h1, h2, .display { font-family: var(--font-display); font-weight: 400; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; }
h2 { font-size: 1.5rem; line-height: 1.2; margin: 0 0 6px; }
h3 { font: 600 1.05rem/1.3 var(--font-sans); letter-spacing: -.01em; margin: 0 0 4px; }
.gradient-text { background: var(--gradient-x); -webkit-background-clip: text; background-clip: text;
  color: transparent; }
.underlined { position: relative; display: inline-block; }
.underlined::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.1em; height: .35em;
  border-radius: 2px; z-index: -1;
  background: linear-gradient(to right, rgba(0, 82, 255, .15), rgba(77, 124, 255, .1)); }
.muted { color: var(--muted-foreground); }
.small { font-size: 13px; }
.mono { font-family: var(--font-mono); font-size: 12.5px; }
.sub { color: var(--muted-foreground); font-size: 14px; margin: 0 0 20px; }

/* ---- section label ---- */
.label { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px; border-radius: 999px;
  border: 1px solid rgba(0, 82, 255, .3); background: rgba(0, 82, 255, .05); color: var(--accent);
  font: 400 11.5px/1.4 var(--font-mono); letter-spacing: .15em; text-transform: uppercase; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.pulse { animation: pulse 2s ease-in-out infinite; }

/* ---- cards ---- */
.card { position: relative; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-md);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.card.hover:hover { box-shadow: var(--shadow-xl); }
.card.tight { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: 20px; }
.card-head h2 { margin: 0; }
.featured { border-radius: var(--radius-lg); padding: 2px; background:
  linear-gradient(135deg, var(--accent), var(--accent-secondary), var(--accent));
  box-shadow: var(--shadow-accent); }
.featured > .card { border: 0; border-radius: calc(var(--radius-lg) - 2px); box-shadow: none; height: 100%; }
.icon-tile { width: 44px; height: 44px; border-radius: 12px; background: var(--gradient);
  box-shadow: var(--shadow-accent); display: grid; place-items: center; color: #fff; flex: none; }
.icon-tile svg { width: 20px; height: 20px; }

/* ---- inverted KPI band ---- */
.inverted { position: relative; overflow: hidden; background: var(--foreground); color: #fff;
  border-radius: 24px; padding: 32px; box-shadow: var(--shadow-xl); }
.inverted::before { content: ""; position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px); background-size: 32px 32px; }
.inverted::after { content: ""; position: absolute; width: 420px; height: 420px; right: -140px; top: -200px;
  border-radius: 50%; background: var(--accent); filter: blur(120px); opacity: .35; pointer-events: none; }
.kpis { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.kpi { padding: 4px 24px; border-left: 1px solid rgba(255, 255, 255, .1); }
.kpi:first-child { border-left: 0; padding-left: 0; }
.kpi .v { font-family: var(--font-display); font-size: 2.25rem; line-height: 1.15;
  font-variant-numeric: tabular-nums; }
.kpi .l { font: 400 11px/1.4 var(--font-mono); letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255, 255, 255, .6); margin-top: 6px; }
.kpi .v.accent { background: linear-gradient(to right, #7FA3FF, #B7CBFF); -webkit-background-clip: text;
  background-clip: text; color: transparent; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px;
  padding: 0 20px; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
  font: 500 14px/1 var(--font-sans); white-space: nowrap; transition: all .2s ease-out;
  text-decoration: none !important; }
.btn svg { width: 16px; height: 16px; transition: transform .2s ease-out; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--gradient-x); color: var(--accent-foreground); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-accent-lg); filter: brightness(1.1); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-outline { background: var(--card); border-color: var(--border); color: var(--foreground); }
.btn-outline:hover { background: var(--muted); border-color: rgba(0, 82, 255, .3); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--muted-foreground); padding: 0 12px; }
.btn-ghost:hover { color: var(--foreground); background: var(--muted); }
.btn-danger { background: transparent; border-color: rgba(220, 38, 38, .3); color: var(--err); }
.btn-danger:hover { background: var(--err-bg); border-color: var(--err); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---- forms ---- */
.field { margin-bottom: 18px; }
label, .field-label { display: block; font-weight: 500; font-size: 14px; margin: 0 0 8px; }
input[type=text], input[type=password], input[type=number], input[type=datetime-local], select, textarea {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); color: var(--foreground); font: 15px var(--font-sans);
  transition: border-color .2s, box-shadow .2s; }
textarea { height: auto; min-height: 104px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
select { appearance: none; padding-right: 40px; background-image:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
input::placeholder, textarea::placeholder { color: rgba(100, 116, 139, .55); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 82, 255, .15); }
.help { color: var(--muted-foreground); font-size: 13px; margin-top: 6px; }
.check { display: inline-flex; align-items: center; gap: 10px; font-weight: 400; margin: 0; cursor: pointer;
  min-height: 44px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--card); font-size: 14px;
  transition: all .2s ease-out; }
.chip input:checked + span { border-color: rgba(0, 82, 255, .4); background: rgba(0, 82, 255, .06);
  color: var(--accent); font-weight: 500; }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(0, 82, 255, .2); }

/* ---- tabs (shared by settings / task / stats / filters) ---- */
.tabbar { display: inline-flex; gap: 4px; padding: 4px; background: var(--muted); border-radius: 14px;
  border: 1px solid var(--border); overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.tabbar::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0;
  border-radius: 10px; background: transparent; color: var(--muted-foreground); cursor: pointer;
  font: 500 14px var(--font-sans); white-space: nowrap; transition: all .2s ease-out; text-decoration: none !important; }
.tab:hover { color: var(--foreground); }
.tab[aria-selected="true"], .tab.on { background: var(--card); color: var(--foreground);
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--border); }
.tab .count { font: 500 11px var(--font-mono); padding: 2px 7px; border-radius: 999px;
  background: rgba(15, 23, 42, .06); color: var(--muted-foreground); }
.tab[aria-selected="true"] .count, .tab.on .count { background: rgba(0, 82, 255, .1); color: var(--accent); }
.tab .tdot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); }
.tab .tdot.ok { background: var(--ok); }
.tabpanel { margin-top: 24px; }
.tabpanel[hidden] { display: none; }
.tabpanel.enter { animation: fade-up .5s var(--ease) both; }

/* ---- badges ---- */
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; white-space: nowrap; background: var(--muted); color: var(--muted-foreground); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.queued, .badge.downloaded { background: rgba(0, 82, 255, .07); color: var(--accent); }
.badge.downloading, .badge.processing { background: var(--warn-bg); color: var(--warn); }
.badge.downloading::before, .badge.processing::before { animation: pulse 1.6s ease-in-out infinite; }
.badge.scheduled { background: rgba(0, 82, 255, .07); color: var(--accent); }
.badge.posted, .badge.online { background: var(--ok-bg); color: var(--ok); }
.badge.online::before { animation: pulse 2s ease-in-out infinite; }
.badge.failed { background: var(--err-bg); color: var(--err); }
.badge.canceled, .badge.offline { background: var(--muted); color: var(--muted-foreground); }

/* ---- tables ---- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 12px 16px; font: 400 11px/1.4 var(--font-mono); letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted-foreground); border-bottom: 1px solid var(--border);
  white-space: nowrap; }
td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: rgba(241, 245, 249, .6); }
tbody tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.kv th { width: 34%; border: 0; padding: 10px 0; vertical-align: top; }
.kv td { border: 0; padding: 10px 0; }
.kv tr:hover { background: none; }
.thumb { width: 44px; height: 78px; border-radius: 10px; object-fit: cover; background: var(--muted);
  display: block; box-shadow: var(--shadow-sm); }
.title-cell > a { color: var(--foreground); font-weight: 600; letter-spacing: -.01em; }
.title-cell > a:hover { color: var(--accent); }
.id { font: 500 12px var(--font-mono); color: var(--muted-foreground); }
.err-text { color: var(--err); font-size: 13px; max-width: 26rem; margin-top: 4px; }

/* ---- flash / empty ---- */
.flash { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--radius);
  margin-bottom: 24px; background: var(--ok-bg); color: var(--ok); font-weight: 500;
  border: 1px solid rgba(4, 120, 87, .15); animation: fade-up .5s var(--ease) both; }
.flash.err { background: var(--err-bg); color: var(--err); border-color: rgba(220, 38, 38, .15); }
.empty { padding: 48px 24px; text-align: center; color: var(--muted-foreground); }
.ok { color: var(--ok); } .err { color: var(--err); } .warn { color: var(--warn); }

/* ---- task page ---- */
.media { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.phone { width: 260px; border-radius: 22px; padding: 6px; background: var(--foreground); box-shadow: var(--shadow-xl); }
.phone video, .phone img { display: block; width: 100%; border-radius: 17px; background: #000; }
.thumb-lg { width: 180px; border-radius: 16px; box-shadow: var(--shadow-lg); }
.narration { font-size: 17px; line-height: 1.75; margin: 0 0 24px; padding-left: 20px;
  border-left: 3px solid; border-image: var(--gradient) 1; }
.qc-strip { display: flex; gap: 10px; flex-wrap: wrap; }
.qc-strip img { width: 104px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.sheets img { width: 100%; border-radius: 12px; margin-bottom: 12px; }
pre { background: var(--muted); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px;
  overflow: auto; font: 12.5px/1.6 var(--font-mono); white-space: pre-wrap; word-break: break-word; max-height: 480px; }
details > summary { cursor: pointer; color: var(--muted-foreground); font-weight: 500; padding: 6px 0; }
.timeline { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.timeline li { position: relative; padding: 0 0 14px 24px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--border); }
.timeline li::after { content: ""; position: absolute; left: 7.5px; top: 20px; bottom: 0; width: 1px; background: var(--border); }
.timeline li:last-child::after { display: none; }
.timeline li.warn::before { background: var(--warn); }
.timeline li.error::before { background: var(--err); }
.timeline li:first-child::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(0, 82, 255, .15); }
.timeline time { font: 12px var(--font-mono); color: var(--muted-foreground); margin-right: 8px; }
.timeline li.error span { color: var(--err); }
.timeline li.warn span { color: var(--warn); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; padding-top: 24px;
  border-top: 1px dashed var(--border); }
.actions form { display: flex; gap: 10px; flex-wrap: wrap; }
.actions input[type=datetime-local] { width: auto; height: 44px; }
.alert { padding: 14px 16px; border-radius: var(--radius); background: var(--err-bg); color: var(--err);
  font-size: 14px; margin: 16px 0 0; border: 1px solid rgba(220, 38, 38, .15); }

/* ---- agents / key ---- */
.keybox { position: relative; padding: 18px 20px; border-radius: var(--radius); background: var(--foreground);
  color: #E2E8F0; font: 13px/1.7 var(--font-mono); word-break: break-all; white-space: pre-wrap; }
.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; font-size: 14px; }
.steps li::before { content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gradient); color: #fff; font: 500 13px var(--font-mono);
  box-shadow: var(--shadow-accent); }
code { font: 12.5px var(--font-mono); background: var(--muted); padding: 2px 6px; border-radius: 6px; }

/* ---- login (asymmetric hero) ---- */
.login-wrap { min-height: calc(100vh - 64px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px;
  align-items: center; max-width: 72rem; margin: 0 auto; padding: 48px 20px; }
.hero h1 { font-size: clamp(2.75rem, 6vw, 4.75rem); line-height: 1.05; margin: 20px 0 20px; }
.hero p { font-size: 18px; color: var(--muted-foreground); max-width: 32rem; margin: 0; }
.hero-graphic { position: relative; height: 340px; margin-top: 40px; max-width: 520px; }
.ring { position: absolute; left: 40px; top: 10px; width: 300px; height: 300px; border-radius: 50%;
  border: 2px dashed rgba(0, 82, 255, .25); animation: spin 60s linear infinite; }
.ring.inner { left: 90px; top: 60px; width: 200px; height: 200px; border-style: solid;
  border-color: rgba(0, 82, 255, .12); animation-duration: 90s; animation-direction: reverse; }
.orb { position: absolute; left: 150px; top: 120px; width: 80px; height: 80px; border-radius: 24px;
  background: var(--gradient); box-shadow: var(--shadow-accent-lg); transform: rotate(12deg); }
.float-card { position: absolute; background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 16px; box-shadow: var(--shadow-xl); font-size: 13px; display: flex; gap: 10px; align-items: center; }
.float-card.a { left: 250px; top: 40px; animation: float 5s ease-in-out infinite; }
.float-card.b { left: 0; top: 230px; animation: float 4s ease-in-out infinite .8s; }
.float-card b { display: block; font-size: 14px; }
.dots3 { position: absolute; right: 30px; bottom: 30px; display: grid; grid-template-columns: repeat(3, 8px); gap: 10px; }
.dots3 i { width: 8px; height: 8px; border-radius: 50%; background: rgba(0, 82, 255, .25); }
.login-card { padding: 36px; }

/* ---- motion ---- */
.reveal { animation: fade-up .7s var(--ease) both; }
.stagger > * { animation: fade-up .7s var(--ease) both; }
.stagger > *:nth-child(2) { animation-delay: .08s; }
.stagger > *:nth-child(3) { animation-delay: .16s; }
.stagger > *:nth-child(4) { animation-delay: .24s; }
.stagger > *:nth-child(5) { animation-delay: .32s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: .7; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- responsive ---- */
@media (max-width: 900px) {
  .grid-asym, .grid-2, .login-wrap { grid-template-columns: 1fr; }
  .hero-graphic { display: none; }
  .login-wrap { min-height: auto; gap: 32px; }
}
@media (max-width: 640px) {
  main { padding: 28px 16px 72px; }
  .topbar .inner { padding: 0 16px; gap: 12px; height: auto; min-height: 60px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
  .card { padding: 20px; }
  .inverted { padding: 24px; border-radius: 20px; }
  .kpi { padding: 12px 0; border-left: 0; }
  .kpis { grid-template-columns: repeat(2, 1fr); gap: 4px 16px; }
  .grid-form { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  td, th { padding: 12px 10px; }
  .btn-block-sm { width: 100%; }
}

/* card titles speak in the UI voice (Inter); Calistoga is reserved for page headlines + numbers */
.card h2 { font: 600 1.2rem/1.3 var(--font-sans); letter-spacing: -.01em; }

/* ---- loading state: .is-loading is set by base.html for form submits and htmx calls ---- */
.spinner { display: none; width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn.is-loading { pointer-events: none; cursor: progress; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading > svg { display: none; }
.btn-primary.is-loading { filter: saturate(.85) brightness(1.05); transform: none; }
.btn-outline.is-loading { border-color: rgba(0, 82, 255, .4); color: var(--accent);
  background: rgba(0, 82, 255, .04); }
.test-result { display: inline-flex; align-items: center; gap: 8px; }
.test-result .pending { color: var(--muted-foreground); }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation: spin 1.4s linear infinite !important; } /* loading feedback stays */
}

/* ---- copyable command ---- */
.cmd { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: var(--radius);
  background: var(--foreground); }
.cmd code { flex: 1; min-width: 0; background: none; padding: 0; color: #E2E8F0; font-size: 13px; line-height: 1.6;
  word-break: break-all; }
.cmd .btn-outline { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .15); color: #fff; }
.cmd .btn-outline:hover { background: rgba(255, 255, 255, .14); }
@media (max-width: 640px) { .cmd { flex-direction: column; align-items: stretch; } }

/* ---- AI schedule chip ---- */
.ai-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: rgba(0, 82, 255, .07); color: var(--accent); font-weight: 500; }
.ai-chip svg { width: 13px; height: 13px; }
