/* Aspectobots Studio. Builds on the site's tokens and components in assets/styles.css. */
.st {
  min-height: 100vh;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(163, 36, 59, 0.32), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(227, 185, 106, 0.08), transparent 60%),
    #0b0506;
}
:root[data-season="halloween"] .st { background: radial-gradient(900px 600px at 85% -10%, rgba(240, 112, 20, 0.22), transparent 60%), radial-gradient(700px 500px at -10% 110%, rgba(176, 112, 240, 0.1), transparent 60%), #0a0608; }
.st-boot { display: grid; place-items: center; min-height: 100vh; color: var(--muted); font-family: var(--f-mono); font-size: 0.8rem; }
.st-muted { color: var(--muted); margin: 0; }
.st-hint { color: var(--faint); font-size: 0.82rem; margin: 10px 0 0; }
.st-hint a { color: var(--text); }

.st-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.st-brand img { border-radius: 50%; }
.st-brand b { font-family: var(--f-display); font-size: 1.1rem; }
.st-brand b span { color: var(--gold); }
.st-brand small { display: block; font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }

/* sign-in */
.st-auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.st-auth__card {
  width: min(440px, 100%); padding: 30px clamp(20px, 5vw, 34px); border-radius: 24px;
  background: var(--glass); border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), 0 0 90px -30px rgba(226, 67, 95, 0.55);
}
.st-auth__card h1 { font-family: var(--f-display); font-size: clamp(1.4rem, 1.2rem + 1vw, 1.8rem); line-height: 1.15; margin: 22px 0 8px; letter-spacing: -0.02em; }
.st-auth__card .form-status { margin: 14px 0 0; }
.st-discord { display: flex; justify-content: center; gap: 10px; width: 100%; margin-top: 20px; background: #5865f2; color: #fff; }
.st-discord:hover { background: #4752c4; }
.st-discord.is-off { opacity: 0.45; cursor: not-allowed; }
.st-empty .st-discord { display: inline-flex; width: auto; margin-top: 12px; }
.st-or { display: flex; align-items: center; gap: 12px; margin: 20px 0 6px; color: var(--faint); font-size: 0.8rem; }
.st-or::before, .st-or::after { content: ""; flex: 1; height: 1px; background: var(--glass-border); }
.st-form { display: grid; gap: 8px; }
.st-form label { font-size: 0.85rem; color: var(--muted); }
.st-form .btn { width: 100%; justify-content: center; }

/* signed in */
.st-app { min-height: 100vh; }
.st-top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px clamp(16px, 4vw, 40px); background: rgba(11, 5, 6, 0.72); border-bottom: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.st-top__right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.st-user { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.st-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.st-avatar--blank { display: inline-grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 700; }
.st-main { width: min(1100px, 100%); margin: 0 auto; padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 40px) 80px; display: grid; gap: clamp(32px, 5vw, 56px); }
.st-hello h1 { font-family: var(--f-display); font-size: var(--step-3); margin: 6px 0 10px; letter-spacing: -0.03em; }
.st-hello .st-muted { max-width: 62ch; font-size: var(--step-1); }
.st-chip { display: inline-block; margin-top: 16px; padding: 6px 12px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font-family: var(--f-mono); font-size: 0.75rem; }

.st-sec { display: grid; gap: 16px; }
.st-sec__head h2 { font-family: var(--f-display); font-size: var(--step-2); margin: 0 0 4px; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.st-card {
  position: relative; padding: 20px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
  display: grid; gap: 12px; align-content: start;
}
.st-card--flat { gap: 18px; }
.st-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.st-card h3 { font-family: var(--f-display); font-size: 1.15rem; margin: 0; }
.st-card ul { margin: 0; padding: 0 0 0 18px; color: var(--muted); display: grid; gap: 6px; }
.st-soon { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.st-pill { white-space: nowrap; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--glass-border); color: var(--muted); font-size: 0.75rem; }
.st-pill--on { border-color: rgba(79, 191, 133, 0.45); color: var(--online); background: rgba(79, 191, 133, 0.1); }
.st-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0; }
.st-cta .st-hint { margin: 0; }

.st-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--glass-inner); border: 1px solid var(--glass-border); }
.st-list img, .st-gicon { width: 44px; height: 44px; border-radius: 14px; }
.st-gicon { display: grid; place-items: center; background: var(--app-4); font-weight: 700; font-size: 0.8rem; color: var(--muted); }
.st-list b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-list small { color: var(--faint); }
.st-empty { padding: 18px; border-radius: 14px; border: 1px dashed var(--glass-border); color: var(--muted); margin: 0; }
.st-empty p { margin: 0; }

.st-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 22px; margin: 0; }
.st-dl dt { color: var(--faint); font-size: 0.85rem; }
.st-dl dd { margin: 0; overflow-wrap: anywhere; }
.st-danger summary { cursor: pointer; color: var(--muted); font-size: 0.9rem; }
.st-danger[open] { display: grid; gap: 10px; }
.st-row { display: flex; gap: 10px; flex-wrap: wrap; }
.st-row input { flex: 1 1 160px; }
.btn--danger { background: linear-gradient(180deg, #6d1326, #4a0c19); color: #ffd9df; border: 1px solid rgba(255, 120, 140, 0.3); }

@media (max-width: 560px) {
  .st-user > span:last-child { display: none; }
  .st-top .btn--sm { padding: 0 10px; }
  .st-list li { grid-template-columns: 44px minmax(0, 1fr); }
  .st-list li .st-pill { grid-column: 2; justify-self: start; }
  .st-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .st-dl dd { margin-bottom: 10px; }
}
.st-alpha { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--gold-soft); color: var(--muted); font-size: 0.85rem; }
.st-alpha b { color: var(--gold); }
.st-alpha a { color: var(--text); }

/* bots */
a.st-card { text-decoration: none; color: inherit; transition: border-color .2s ease, translate .2s ease; }
a.st-card:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); translate: 0 -2px; }
.st-bot .st-card__top { justify-content: flex-start; }
.st-bot__name { flex: 1; min-width: 0; }
.st-bot__name h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-bot__name small { color: var(--faint); }
.st-botav { border-radius: 14px; object-fit: cover; flex: none; }
.st-botav--blank { display: inline-grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 1.1rem; }
.st-card--add { border-style: dashed; place-items: start; }
.st-plus { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--brand-ink); font-size: 1.6rem; font-weight: 700; }
.st-pill--warn { border-color: rgba(227, 185, 106, 0.45); color: var(--gold); background: var(--gold-soft); }
.st-pill--bad { border-color: rgba(255, 120, 140, 0.45); color: #ff8fa3; background: rgba(226, 67, 95, 0.12); }
.st-back { color: var(--muted); text-decoration: none; font-size: 0.9rem; justify-self: start; }
.st-back::before { content: "\2190  "; }
.st-back:hover { color: var(--text); }
.st-title { font-family: var(--f-display); font-size: var(--step-3); margin: -18px 0 0; letter-spacing: -0.03em; line-height: 1.05; }
.st-lead { max-width: 64ch; font-size: var(--step-1); margin-top: -24px; }
.st-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.st-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 16px; border-radius: 16px; background: var(--glass-inner); border: 1px solid var(--glass-border); }
.st-steps h3 { margin: 4px 0 4px; font-size: 1.05rem; }
.st-steps p { margin: 0; color: var(--muted); }
.st-steps a { color: var(--text); }
.st-steps__n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-family: var(--f-display); font-weight: 700; }
.st-form--wide { max-width: 560px; }
.st-form--wide .btn { width: auto; justify-self: start; }
.st-bothead { display: flex; align-items: center; gap: 16px; margin-top: -24px; }
.st-bothead__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.st-bothead h2 { font-family: var(--f-display); margin: 0; font-size: 1.3rem; }
.st-bothead p { margin: 4px 0 0; }
.st-ok { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(79, 191, 133, 0.1); border: 1px solid rgba(79, 191, 133, 0.35); color: var(--text); }
.st-warnbox { display: grid; gap: 10px; justify-items: start; padding: 14px; border-radius: 12px; background: var(--gold-soft); border: 1px solid rgba(227, 185, 106, 0.35); }
.st-warnbox p { margin: 0; }
.st-code { display: block; max-width: 100%; overflow-wrap: anywhere; font-family: var(--f-mono); font-size: 0.75rem; color: var(--muted); }
.st-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--text); text-decoration: underline; cursor: pointer; }
.st-row--center { align-items: center; justify-content: space-between; }
.st-row--center input[type="color"] { flex: 0 0 56px; height: 36px; padding: 2px; border-radius: 8px; border: 1px solid var(--glass-border); background: none; }
.st-toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 50; padding: 10px 16px; border-radius: 12px; background: var(--app-4); color: var(--text); box-shadow: var(--shadow); }

/* server setup */
.st-block { gap: 0; }
.st-block__body { display: grid; gap: 14px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--glass-border); }
.st-block:has(.st-switch input:not(:checked)) .st-block__body { display: none; }
.st-switch { display: flex; align-items: center; gap: 12px; font-weight: 700; cursor: pointer; }
.st-switch input { width: 20px; height: 20px; accent-color: var(--accent); }
.st-field { display: grid; gap: 6px; }
.st-field label { font-size: 0.85rem; color: var(--muted); }
.st-field small { margin: 0; }
.st-field textarea { font-family: var(--f-mono); font-size: 0.82rem; line-height: 1.5; }
.st-roles { display: grid; gap: 6px; max-height: 420px; overflow: auto; padding-right: 4px; }
.st-rolerow { display: grid; grid-template-columns: minmax(160px, 0.8fr) minmax(0, 2fr); gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--glass-inner); }
.st-rolerow.is-off { opacity: 0.6; }
.st-rolerow__name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.st-rolerow__name span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-rolerow__opts { display: grid; grid-template-columns: 120px 90px minmax(0, 1fr); gap: 8px; }
.st-rolerow__opts select, .st-rolerow__opts input { min-height: 36px; padding: 6px 10px; font-size: 0.85rem; }
.st-dotc { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.st-staffrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 10px; background: var(--glass-inner); }
.st-staffrow label { display: flex; align-items: center; gap: 8px; }
@media (max-width: 720px) {
  .st-rolerow { grid-template-columns: minmax(0, 1fr); }
  .st-rolerow__opts { grid-template-columns: 1fr 1fr; }
  .st-rolerow__opts input:last-child { grid-column: 1 / -1; }
}
.st-form input[type="password"] { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--app-2); color: var(--text); font: inherit; font-family: var(--f-mono); font-size: 0.85rem; }
.st-form input[type="password"]:focus { outline: none; border-color: var(--focus); }

/* plans */
.st-plancard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.st-plancard h3 { font-family: var(--f-display); font-size: 1.4rem; margin: 4px 0; }
.st-plancard .st-muted { margin: 0; }
.st-plancard__facts { list-style: none; padding: 0 !important; margin: 0; color: var(--muted); }
.st-plancard__go { color: var(--gold); font-weight: 700; }
.st-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.st-plan.is-here { border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: var(--glass-shadow), 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.st-plan__price { margin: 0; color: var(--gold); font-weight: 700; }
.st-plan ul { list-style: none; padding: 0; gap: 8px; }
.st-plan li { position: relative; padding-left: 22px; color: var(--text); font-size: 0.92rem; }
.st-plan li::before { content: "\2713"; position: absolute; left: 0; color: var(--online); font-weight: 700; }
.st-plan li.is-no { color: var(--faint); }
.st-plan li.is-no::before { content: "\00B7"; color: var(--faint); font-size: 1.3em; line-height: 1; }
.st-soon--inline { font-size: 0.6rem; margin-left: 4px; }
.st-lock { color: var(--gold); text-decoration: none; font-size: 0.88rem; font-weight: 600; }
.st-lock:hover { text-decoration: underline; }
@media (max-width: 720px) { .st-plancard { grid-template-columns: minmax(0, 1fr); } }

/* support */
.st-tnum { font-family: var(--f-mono); font-size: 0.72rem; color: var(--gold); }
.st-list a.st-pill { text-decoration: none; }
.st-thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.st-msg { padding: 14px 16px; border-radius: 14px; background: var(--glass-inner); border: 1px solid var(--glass-border); }
.st-msg--staff { border-left: 3px solid var(--accent); }
.st-msg--customer { border-left: 3px solid var(--gold); }
.st-msg__who { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.st-msg__who .st-hint { margin: 0; }
.st-msg__body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.st-field select, .st-field input[type="text"], .st-field textarea { width: 100%; }
