:root {
  --bg: #0b0d12;
  --bg-2: #11141b;
  --panel: #151923;
  --panel-2: #1b2029;
  --border: #262c38;
  --text: #eef1f6;
  --muted: #8b93a5;
  --accent: #6c5ce7;
  --accent-2: #8b7cf6;
  --ok: #2ecc71;
  --warn: #f5a623;
  --bad: #ff4d5e;
  --radius: 12px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-2); }
a:hover { color: #fff; }
code { font-family: var(--mono); font-size: 0.86em; background: rgba(255,255,255,0.05); padding: 1px 5px; border-radius: 4px; }
code.wrap, .wrap { word-break: break-all; }
.muted { color: var(--muted); }
hr.rule { border: none; border-top: 1px solid var(--border); margin: 14px 0; }

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

.page { flex: 1 0 auto; width: 100%; max-width: 820px; margin: 0 auto; padding: 32px 20px 56px; }
.page--wide { max-width: 1240px; }
body.public .page, body.form .page { max-width: 860px; }
body.public .page { padding: 0; display: flex; }

h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.6px; line-height: 1.2; }
h2 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.2px; }
h3 { font-size: 0.95rem; font-weight: 700; }
.lede { color: var(--muted); margin-top: 6px; max-width: 70ch; }
.back { display: inline-block; color: var(--muted); text-decoration: none; font-size: 0.88rem; margin-bottom: 12px; }
.back:hover { color: #fff; }
.empty { color: var(--muted); padding: 18px 0; font-style: italic; }
.hint { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 5px; font-weight: 400; }
.link { color: var(--accent-2); text-decoration: none; font-size: 0.85rem; }

/* -------------------------------------------------------------- topbar */

.topbar {
  display: flex; align-items: center; gap: 24px;
  padding: 0 20px; height: 58px;
  background: var(--panel); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.topbar--admin { border-bottom-color: var(--accent); }
.topbar__brand { font-weight: 900; letter-spacing: 0.5px; color: #fff; text-decoration: none; font-size: 0.95rem; white-space: nowrap; }
.topbar__brand span { color: var(--accent); }
.topbar__brand em { font-style: normal; color: var(--muted); font-weight: 600; font-size: 0.8rem; }
.topbar__links { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.topbar__links a { color: var(--muted); text-decoration: none; font-size: 0.86rem; padding: 6px 10px; border-radius: 7px; }
.topbar__links a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.topbar__right { display: flex; align-items: center; gap: 10px; }
.topbar__user { color: var(--muted); font-size: 0.82rem; }

/* --------------------------------------------------------------- hero */

.hero {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 18px; padding: 56px 20px; min-height: 78vh;
}
.hero__logo { font-size: 2rem; font-weight: 900; letter-spacing: 1.5px; }
.hero__logo span { color: var(--accent); }
.hero h1 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
.hero__sub { color: var(--muted); max-width: 46ch; }
.hero__icon { margin: 4px 0; color: var(--accent); }
.hero__tag { font-size: clamp(1.05rem, 3vw, 1.3rem); font-weight: 600; }
.hero__credit { color: var(--muted); font-size: 0.85rem; }
.hero--fail h1 { color: var(--text); }

.cta {
  margin-top: 6px; padding: 16px 40px; background: var(--accent); color: #fff;
  font-size: 1.05rem; font-weight: 700; text-transform: lowercase; font-family: inherit;
  border: none; border-radius: 999px; cursor: pointer;
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.4);
  transition: transform 0.16s ease, background 0.16s ease;
}
.cta:hover { background: var(--accent-2); transform: translateY(-2px); }

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

.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(5, 6, 10, 0.78); backdrop-filter: blur(3px); }
.modal__panel {
  position: relative; background: var(--panel); border: 1px solid var(--border);
  border-radius: 16px; padding: 30px 26px 22px; width: 100%; max-width: 400px;
  box-shadow: var(--shadow); text-align: center;
  animation: pop 0.18s ease-out;
}
@keyframes pop { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal__panel h2 { font-size: 1.35rem; }
.modal__sub { color: var(--muted); font-size: 0.88rem; margin-top: 6px; }
.modal__actions { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 6px; }
.modal__actions .btn { width: 100%; justify-content: center; }
.modal__cancel { width: 100%; margin-top: 4px; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 9px; border: 1px solid transparent;
  font-family: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: background 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-2); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--muted); color: #fff; }
.btn--ok { background: var(--ok); color: #06140b; }
.btn--bad { background: var(--bad); color: #fff; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--sm { padding: 6px 12px; font-size: 0.8rem; border-radius: 7px; }
.btn--lg { padding: 14px 26px; font-size: 1rem; width: 100%; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, canvas:focus-visible {
  outline: 2px solid var(--accent-2); outline-offset: 2px;
}

.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.row--tight { margin-top: 8px; align-items: center; }

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

.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); margin-top: 18px; overflow: hidden; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--panel-2); }
.card__body { padding: 18px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 18px; }
.stat { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.stat__value { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; }
.stat__label { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.6px; margin-top: 2px; }
.stat__sub { color: var(--accent-2); font-size: 0.78rem; margin-top: 4px; }

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

.dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.linkbox { background: var(--panel); border: 1px solid var(--accent); border-radius: var(--radius); padding: 12px 14px; min-width: 280px; }
.linkbox__label { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.6px; }
.linkbox__row { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.linkbox__row code { background: none; padding: 0; font-size: 0.92rem; color: #fff; }
.linkbox__preview { font-size: 0.8rem; text-decoration: none; }

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

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.table th {
  text-align: left; padding: 8px 10px; color: var(--muted); font-weight: 600;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.6px;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table td { padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.05); vertical-align: top; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(255,255,255,0.02); }
.table a { text-decoration: none; }

/* ------------------------------------------------------- badges & tags */

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
.badge--neutral { background: rgba(255,255,255,0.08); color: var(--muted); }
.badge--ok { background: rgba(46, 204, 113, 0.16); color: var(--ok); }
.badge--warn { background: rgba(245, 166, 35, 0.16); color: var(--warn); }
.badge--bad { background: rgba(255, 77, 94, 0.16); color: var(--bad); }
.badge--accent { background: rgba(108, 92, 231, 0.22); color: var(--accent-2); }
.tag { display: inline-block; background: rgba(255,255,255,0.06); color: var(--muted); border-radius: 5px; padding: 2px 7px; font-size: 0.72rem; margin-right: 4px; }
.pill { background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 0.68rem; font-weight: 700; vertical-align: middle; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }

.alert { border-radius: 9px; padding: 11px 14px; margin: 14px 0; font-size: 0.88rem; border: 1px solid; }
.alert--info { background: rgba(108,92,231,0.1); border-color: var(--accent); }
.alert--ok { background: rgba(46,204,113,0.1); border-color: var(--ok); color: #b9f2d2; }
.alert--warn { background: rgba(245,166,35,0.1); border-color: var(--warn); color: #ffdba6; }
.alert--bad { background: rgba(255,77,94,0.1); border-color: var(--bad); color: #ffc2c8; }

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

.form { display: flex; flex-direction: column; gap: 14px; }
.form--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; }
.form--inline { margin-top: 14px; }
.form label { display: block; font-size: 0.84rem; font-weight: 600; }
.form input, .form select, .form textarea {
  width: 100%; margin-top: 6px; padding: 10px 12px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-family: inherit; font-size: 0.92rem; font-weight: 400;
}
.form textarea { resize: vertical; }
.form input:disabled { color: var(--muted); }
.form input[type="file"] { padding: 8px; }
.fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; background: var(--panel); display: flex; flex-direction: column; gap: 14px; }
.fieldset legend { padding: 0 8px; font-weight: 700; font-size: 0.9rem; }
.fieldset--minor { border-color: var(--warn); }
.check { display: flex; align-items: flex-start; gap: 9px; font-weight: 400 !important; font-size: 0.88rem !important; cursor: pointer; }
.check input { width: auto !important; margin: 3px 0 0 !important; flex-shrink: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.filters input, .filters select { padding: 8px 11px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-family: inherit; font-size: 0.86rem; }
.filters input { flex: 1; min-width: 180px; }
.form-head { margin-bottom: 18px; }

.upload { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: start; }
.upload__or { color: var(--muted); font-size: 0.8rem; padding-top: 30px; text-align: center; }
.upload__progress { grid-column: 1 / -1; }
.upload__track { height: 8px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 99px; overflow: hidden; }
.upload__bar { height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width 0.2s ease; }
.upload__note { margin-top: 6px; color: var(--muted); font-size: 0.8rem; }
.upload__note--bad { color: var(--bad); }
.lock-icon { vertical-align: -1px; margin-left: 3px; opacity: 0.8; }
.topbar__links a.is-locked { opacity: 0.7; }
.library-lock { margin-bottom: 14px; }
.slug-field { display: flex; align-items: center; margin-top: 6px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding-left: 11px; }
.slug-field span { color: var(--muted); font-size: 0.85rem; font-family: var(--mono); white-space: nowrap; }
.slug-field input { margin: 0 !important; border: none !important; background: none !important; }

/* --------------------------------------------------------- guidelines */

.guidelines { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 18px 0; }
.guidelines__col { background: var(--panel); border: 1px solid var(--border); border-left-width: 3px; border-radius: var(--radius); padding: 16px; }
.guidelines__col--do { border-left-color: var(--ok); }
.guidelines__col--dont { border-left-color: var(--bad); }
.guidelines__col h3 { margin-bottom: 8px; }
.guidelines__col ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.guidelines__col li { font-size: 0.88rem; color: var(--muted); padding-left: 20px; position: relative; }
.guidelines__col--do li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.guidelines__col--dont li::before { content: "✕"; position: absolute; left: 0; color: var(--bad); font-weight: 700; }
.bullets { padding-left: 20px; color: var(--muted); display: flex; flex-direction: column; gap: 5px; margin: 10px 0; }
.checks { list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 0.86rem; }

/* ------------------------------------------------------- legal & sigs */

.legal-scroll {
  max-height: 300px; overflow-y: auto; background: var(--bg-2);
  border: 1px solid var(--border); border-radius: 9px; padding: 16px 18px;
}
ol.legal { padding-left: 20px; display: flex; flex-direction: column; gap: 14px; }
ol.legal li h4 { font-size: 0.86rem; font-weight: 700; margin-bottom: 3px; }
ol.legal li p { font-size: 0.84rem; color: var(--muted); line-height: 1.6; }

.signature { display: flex; flex-direction: column; gap: 12px; }
.signature__pad { background: var(--bg-2); border: 1px solid var(--border); border-radius: 9px; padding: 12px; }
.signature__label { color: var(--muted); font-size: 0.78rem; margin-bottom: 8px; }
#sigPad { width: 100%; height: 150px; background: #fff; border-radius: 6px; cursor: crosshair; touch-action: none; display: block; }
.signature__tools { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.signature__tools .hint { margin: 0; }

.sig-review { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: start; }
.sig-review__img { background: #fff; border-radius: 8px; padding: 8px; }
.sig-review__img img { width: 100%; display: block; }

/* ---------------------------------------------------------- documents */

.doc { background: #fff; color: #14161c; border-radius: var(--radius); padding: 44px 48px; max-width: 820px; margin: 0 auto; }
.doc__toolbar { display: flex; justify-content: space-between; margin-bottom: 24px; }
.doc__head { border-bottom: 2px solid #14161c; padding-bottom: 14px; margin-bottom: 20px; }
.doc__brand { font-weight: 900; letter-spacing: 1px; font-size: 0.9rem; }
.doc__brand span { color: var(--accent); }
.doc__head h1 { margin-top: 6px; font-size: 1.6rem; }
.doc__meta { color: #6b7180; font-size: 0.8rem; margin-top: 4px; }
.doc__parties { width: 100%; border-collapse: collapse; margin-bottom: 22px; font-size: 0.86rem; }
.doc__parties th { text-align: left; padding: 7px 12px 7px 0; width: 120px; vertical-align: top; color: #6b7180; font-weight: 600; }
.doc__parties td { padding: 7px 0; border-bottom: 1px solid #e6e8ee; }
.doc .legal li h4 { color: #14161c; }
.doc .legal li p { color: #3d4350; }
.doc__sign { margin-top: 30px; border-top: 1px solid #e6e8ee; padding-top: 20px; }
.doc__sign-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px; margin-top: 14px; }
.sigblock img { max-height: 70px; display: block; }
.sigblock__pending { height: 70px; display: flex; align-items: flex-end; color: #9aa1b0; font-size: 0.82rem; font-style: italic; }
.sigblock__rule { border-bottom: 1px solid #14161c; margin: 4px 0 6px; }
.sigblock__name { font-weight: 700; font-size: 0.9rem; }
.sigblock__role { color: #6b7180; font-size: 0.78rem; }
.doc__audit { margin-top: 26px; background: #f4f5f8; border-radius: 8px; padding: 14px 18px; }
.doc__audit h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.6px; color: #6b7180; }
.doc__audit ul { list-style: none; margin-top: 8px; font-size: 0.78rem; color: #3d4350; display: flex; flex-direction: column; gap: 4px; }
.doc__audit code { background: #e6e8ee; color: #14161c; }

/* -------------------------------------------------------------- misc */

.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; font-size: 0.88rem; }
.kv--tight { grid-template-columns: 110px 1fr; gap: 6px 10px; font-size: 0.84rem; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { min-width: 0; }

.receipt { text-align: center; max-width: 560px; margin: 40px auto; }
.receipt__check { margin-bottom: 16px; }
.receipt .kv { text-align: left; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin: 20px 0; }
.receipt .row { justify-content: center; }

.bars { display: flex; flex-direction: column; gap: 9px; }
.bar { display: grid; grid-template-columns: 84px 1fr 80px; align-items: center; gap: 10px; font-size: 0.82rem; }
.bar__track { background: rgba(255,255,255,0.06); border-radius: 999px; height: 9px; overflow: hidden; }
.bar__fill { height: 100%; border-radius: 999px; transition: width 0.4s ease; }
.bar__value { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 18px; }
.tile { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); transition: transform 0.16s ease, border-color 0.16s ease; }
.tile:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--text); }
.tile__thumb { aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; position: relative; color: rgba(255,255,255,0.75); background: linear-gradient(135deg, hsl(var(--seed) 45% 22%), hsl(var(--seed) 55% 12%)); }
.tile__dur { position: absolute; right: 7px; bottom: 7px; background: rgba(0,0,0,0.7); border-radius: 4px; padding: 1px 6px; font-size: 0.7rem; }
.tile__body { padding: 12px 14px; }
.tile__body h3 { font-size: 0.9rem; line-height: 1.35; }
.tile__body p { font-size: 0.76rem; margin: 3px 0 7px; }

.asset { display: grid; grid-template-columns: 1fr 320px; gap: 22px; margin-top: 8px; }
.asset__player { background: #000; border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.asset__player video, .detail video { width: 100%; display: block; max-height: 460px; background: #000; }
.player-placeholder { background: var(--bg-2); border: 1px dashed var(--border); border-radius: 9px; padding: 30px; text-align: center; color: var(--muted); font-size: 0.86rem; }
.player-placeholder .btn { margin-top: 10px; }

.detail { display: grid; grid-template-columns: 1fr 340px; gap: 22px; }
.detail__main > .card:first-child, .detail__side > .card:first-child { margin-top: 0; }

.auth { max-width: 420px; margin: 50px auto; }
.auth__brand { font-weight: 900; letter-spacing: 1px; margin-bottom: 18px; }
.auth__brand span { color: var(--accent); }
.auth__brand em { font-style: normal; color: var(--muted); font-size: 0.8rem; }
.auth h1 { margin-bottom: 8px; }
.auth .form { margin-top: 20px; }
.auth__alt { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 16px; }
.social-list { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 0.85rem; }
.social-list a { word-break: break-all; }

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

.footer { flex-shrink: 0; border-top: 1px solid var(--border); padding: 22px 20px; background: var(--bg-2); text-align: center; }
.footer__links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-bottom: 12px; }
.footer__links a { color: var(--muted); text-decoration: none; font-size: 0.84rem; }
.footer__links a:hover { color: #fff; }
.footer__copy { color: #5c6373; font-size: 0.76rem; }

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

@media (max-width: 900px) {
  .asset, .detail { grid-template-columns: 1fr; }
  .upload { grid-template-columns: 1fr; }
  .upload__or { padding: 0; }
  .sig-review { grid-template-columns: 1fr; }
  .doc { padding: 26px 20px; }
}
@media (max-width: 640px) {
  .topbar { height: auto; flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 14px; position: static; }
  .topbar__links { justify-content: center; }
  .topbar__right { justify-content: center; }
  .kv, .kv--tight { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { margin-top: 8px; }
  .bar { grid-template-columns: 68px 1fr 66px; }
}

@media print {
  body { background: #fff; }
  .no-print, .topbar, .footer { display: none !important; }
  .page { padding: 0; max-width: none; }
  .doc { border-radius: 0; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ============================================================ portal ==== */
/* copyright.cash — the login screen. Deliberately spare: one card, nothing
   to read, nothing to explore. It's a door, not a landing page. */

body.bare { background: radial-gradient(1200px 600px at 50% -10%, #1a1533 0%, var(--bg) 60%); }
body.bare .page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }

.portal { width: 100%; max-width: 380px; }
.portal__card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  padding: 34px 30px 26px; box-shadow: var(--shadow);
}
.portal__brand {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 1.15rem; font-weight: 800; letter-spacing: -0.3px; margin-bottom: 24px;
}
.portal__brand em { font-style: normal; color: var(--accent); }
.portal__alt { text-align: center; color: var(--muted); font-size: 0.82rem; margin-top: 18px; }

/* ============================================================ avatars ==== */

.avatar {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  background: var(--panel-2); border: 1px solid var(--border); flex-shrink: 0; display: block;
}
.avatar--xs { width: 28px; height: 28px; }
.avatar--sm { width: 40px; height: 40px; }
.avatar--lg { width: 84px; height: 84px; margin: 0 auto 14px; }
.avatar--hero {
  width: 120px; height: 120px; border: 3px solid var(--accent);
  box-shadow: 0 8px 34px rgba(108, 92, 231, 0.4); margin-bottom: 4px;
}
.cell-id { display: flex; align-items: center; gap: 9px; }
.dash-head__id { display: flex; align-items: center; gap: 14px; }
.form-head__id { display: flex; align-items: center; gap: 12px; }
.avatar-settings { display: flex; gap: 16px; align-items: flex-start; }
.avatar-preview { display: flex; align-items: center; gap: 12px; }
.avatar-preview img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.avatar-preview .hint { margin: 0; }

.hero--creator { gap: 14px; }
.hero__handle { color: var(--accent-2); font-weight: 600; font-size: 0.95rem; margin-top: -6px; }
.hero--creator .hero__credit code { background: none; color: var(--muted); }

/* ================================================== subdomain preview ==== */

.subdomain-preview {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.14), rgba(108, 92, 231, 0.04));
  border: 1px solid var(--accent); border-radius: var(--radius); padding: 14px 16px; text-align: center;
}
.subdomain-preview__label { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.6px; }
.subdomain-preview__url { font-family: var(--mono); font-size: 1.05rem; margin-top: 5px; word-break: break-all; }
.subdomain-preview__url strong { color: var(--accent-2); }
.subdomain-preview__url span { color: var(--muted); }
.subdomain-preview.is-bad { border-color: var(--bad); background: rgba(255, 77, 94, 0.08); }
.subdomain-preview.is-bad .subdomain-preview__url strong { color: var(--bad); }

/* The handle field reads left-to-right as a URL: [wasted].submitclips.app */
.slug-field { padding-left: 0; padding-right: 11px; }
.slug-field input { flex: 1; min-width: 0; }
.slug-field span { padding-left: 2px; }
