:root {
  --bg: #07121b;
  --bg-2: #0a1b28;
  --panel: rgba(14, 34, 48, 0.86);
  --panel-strong: #0f2939;
  --line: rgba(148, 194, 214, 0.14);
  --line-gold: rgba(227, 183, 92, 0.32);
  --text: #eef5f7;
  --muted: #87a2b0;
  --cyan: #55d4e9;
  --cyan-deep: #258da5;
  --gold: #e3b75c;
  --gold-strong: #ffd986;
  --green: #5dd49b;
  --red: #ec786e;
  --amber: #e4ad57;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  --sidebar: 250px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 78% -10%, rgba(34, 114, 139, .2), transparent 35%),
    radial-gradient(circle at 8% 105%, rgba(227, 183, 92, .1), transparent 31%),
    var(--bg);
}
button { font: inherit; cursor: pointer; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 24px 16px 18px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8,25,37,.98), rgba(5,16,25,.99));
  box-shadow: 18px 0 60px rgba(0,0,0,.18);
}
.brand-block { display: flex; align-items: center; gap: 12px; padding: 3px 7px 19px; }
.brand-mark {
  display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-gold); border-radius: 14px;
  color: var(--gold-strong); background: radial-gradient(circle at 35% 30%, rgba(227,183,92,.25), rgba(227,183,92,.06));
  font-family: Georgia, serif; font-size: 26px; font-weight: 900; box-shadow: inset 0 0 22px rgba(227,183,92,.08);
}
.brand-block p, .brand-block h1 { margin: 0; }
.brand-kicker { color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: .27em; }
.brand-block h1 { margin-top: 2px; font-size: 22px; letter-spacing: .08em; }
.realm-status {
  display: flex; align-items: center; gap: 10px; margin: 0 3px 22px; padding: 11px 12px;
  border: 1px solid rgba(93,212,155,.18); border-radius: 14px; background: rgba(93,212,155,.055);
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); }
.realm-status strong, .realm-status small { display: block; }
.realm-status strong { font-size: 12px; }
.realm-status small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.nav-groups { display: grid; gap: 18px; overflow-y: auto; padding-right: 3px; }
.nav-label { margin: 0 8px 6px; color: #5f7c8a; font-size: 10px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%; margin: 2px 0; padding: 9px 11px;
  border: 1px solid transparent; border-radius: 11px; color: #9bb2bd; background: transparent; text-align: left; font-size: 13px; font-weight: 700;
}
.nav-item span { width: 20px; color: #698896; text-align: center; }
.nav-item:hover { color: var(--text); background: rgba(255,255,255,.045); }
.nav-item.is-active { color: #0a2432; border-color: rgba(227,183,92,.85); background: linear-gradient(135deg, #f0c871, var(--gold)); box-shadow: 0 9px 24px rgba(227,183,92,.18); }
.nav-item.is-active span { color: #0a2432; }
.sidebar-footer { margin-top: auto; padding: 13px 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.sidebar-footer p, .sidebar-footer strong, .sidebar-footer small { display: block; margin: 0; }
.sidebar-footer p { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.sidebar-footer strong { margin-top: 5px; color: var(--gold-strong); font-size: 13px; }
.sidebar-footer small { margin-top: 4px; color: #607b89; font-size: 10px; }

.main-area { min-height: 100vh; padding: 28px 32px 50px calc(var(--sidebar) + 32px); }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; max-width: 1500px; margin: 0 auto 24px; }
.topbar h2, .topbar p { margin: 0; }
.topbar h2 { margin-top: 5px; font-family: Georgia, serif; font-size: clamp(30px,4vw,48px); font-weight: 700; letter-spacing: -.02em; }
.subtitle { max-width: 730px; margin-top: 5px !important; color: var(--muted); font-size: 14px; line-height: 1.55; }
.eyebrow { margin: 0; color: var(--cyan); font-size: 10px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.gold, .gold { color: var(--gold); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.demo-pill, .live-chip { border-radius: 999px; padding: 7px 10px; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.demo-pill { color: #112d39; background: var(--gold); }
.date-card { min-width: 180px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.date-card small, .date-card strong { display: block; }
.date-card small { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.date-card strong { margin-top: 3px; font-size: 11px; }
.menu-button { display: none; }
.dashboard-view { max-width: 1500px; margin: 0 auto; }

.panel, .panel-glow, .kpi-card {
  border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgba(15,41,57,.88), rgba(8,27,40,.82)); box-shadow: var(--shadow);
}
.progression-hero {
  display: grid; grid-template-columns: 165px minmax(0,1fr) 310px; gap: 22px; align-items: stretch; padding: 18px;
  border-color: rgba(227,183,92,.26); background:
    radial-gradient(circle at 0% 20%, rgba(227,183,92,.16), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(85,212,233,.09), transparent 32%),
    linear-gradient(145deg, rgba(15,41,57,.92), rgba(8,27,40,.9));
}
.level-medallion { display: grid; place-items: center; align-content: center; min-height: 142px; border: 1px solid var(--line-gold); border-radius: 18px; background: rgba(227,183,92,.055); text-align: center; }
.level-medallion span { color: var(--gold); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.level-medallion strong { color: var(--gold-strong); font-family: Georgia,serif; font-size: 54px; line-height: 1; text-shadow: 0 0 30px rgba(227,183,92,.18); }
.level-medallion small { max-width: 120px; margin-top: 5px; color: #d3c4a1; font-size: 11px; font-weight: 800; line-height: 1.25; }
.level-copy { padding: 8px 0; }
.level-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.level-heading h3 { margin: 4px 0 0; font-family: Georgia,serif; font-size: 24px; }
.xp-label { color: var(--gold-strong); font-size: 11px; font-weight: 900; }
.xp-track { height: 12px; margin: 18px 0 16px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.06); box-shadow: inset 0 1px 5px rgba(0,0,0,.4); }
.xp-track div { height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--cyan-deep),var(--cyan),var(--gold)); box-shadow: 0 0 18px rgba(85,212,233,.2); }
.milestone-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.milestone-row div { padding: 9px 10px; border: 1px solid rgba(255,255,255,.06); border-radius: 11px; background: rgba(255,255,255,.025); }
.milestone-row span, .milestone-row strong { display: block; }
.milestone-row span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.milestone-row strong { margin-top: 4px; font-size: 11px; }
.recent-badges { padding: 8px 4px 4px 16px; border-left: 1px solid var(--line); }
.badge-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-top: 13px; }
.badge { min-width: 0; padding: 10px 7px; border: 1px solid rgba(227,183,92,.2); border-radius: 13px; background: rgba(227,183,92,.055); text-align: center; }
.badge span { display: grid; place-items: center; width: 37px; height: 37px; margin: 0 auto 7px; border: 1px solid var(--line-gold); border-radius: 50%; color: var(--gold-strong); background: radial-gradient(circle,rgba(227,183,92,.2),transparent 70%); font-size: 17px; }
.badge strong { display: block; color: #d8c9a9; font-size: 9px; line-height: 1.2; }

.kpi-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; margin: 14px 0; }
.kpi-card { min-height: 122px; padding: 15px; box-shadow: none; }
.kpi-card.accent { border-color: rgba(227,183,92,.26); background: radial-gradient(circle at 100% 0%,rgba(227,183,92,.13),transparent 42%), linear-gradient(145deg,rgba(15,41,57,.88),rgba(8,27,40,.82)); }
.kpi-head { display: flex; align-items: center; justify-content: space-between; }
.kpi-icon { color: var(--cyan); font-size: 17px; }
.trend { border-radius: 999px; padding: 4px 7px; font-size: 9px; font-weight: 900; }
.trend.positive { color: var(--green); background: rgba(93,212,155,.08); }
.trend.neutral { color: var(--muted); background: rgba(255,255,255,.04); }
.kpi-card > strong { display: block; margin-top: 12px; font-size: 24px; letter-spacing: -.02em; }
.kpi-card > strong em { color: var(--gold); font-size: 12px; font-style: normal; font-weight: 900; }
.kpi-card p { margin: 3px 0 0; font-size: 11px; font-weight: 800; }
.kpi-card small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }

.main-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(300px,.75fr); gap: 14px; }
.panel { padding: 18px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-heading h3 { margin: 4px 0 0; font-family: Georgia,serif; font-size: 20px; }
.range-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: rgba(255,255,255,.02); }
.range-switch button { border: 0; border-radius: 999px; padding: 5px 9px; color: var(--muted); background: transparent; font-size: 9px; font-weight: 900; }
.range-switch button.is-active { color: #06212e; background: var(--cyan); }
.chart-legend { display: flex; gap: 18px; margin: 15px 0 4px; color: var(--muted); font-size: 9px; }
.dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; }
.dot.cyan { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.gold-dot { background: var(--gold); box-shadow: 0 0 8px rgba(227,183,92,.6); }
.chart-wrap { height: 250px; margin-top: 7px; border-bottom: 1px solid rgba(255,255,255,.04); }
#activity-chart { width: 100%; height: 100%; overflow: visible; }
.chart-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 12px; }
.chart-summary div { padding: 9px 10px; border-radius: 11px; background: rgba(255,255,255,.026); }
.chart-summary span, .chart-summary strong { display: block; }
.chart-summary span { color: var(--muted); font-size: 9px; }
.chart-summary strong { margin-top: 3px; font-size: 15px; }
.right-stack { display: grid; gap: 14px; }
.live-chip { color: var(--green); background: rgba(93,212,155,.09); }
.metric-bar { margin-top: 16px; }
.metric-bar > div:first-child { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 6px; }
.metric-bar span { color: #b7c9d1; font-size: 10px; }
.metric-bar strong { font-size: 10px; }
.bar { height: 7px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.055); }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--cyan-deep),var(--cyan)); }
.metric-bar.warning .bar i { background: linear-gradient(90deg,#965233,var(--amber)); }
.treasury-card { border-color: rgba(227,183,92,.2); }
.treasury-icon { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-gold); border-radius: 12px; color: var(--gold-strong); background: rgba(227,183,92,.06); }
.treasury-total { margin-top: 18px; padding: 13px; border-radius: 13px; background: rgba(227,183,92,.055); }
.treasury-total span, .treasury-total strong { display: block; }
.treasury-total span { color: #a89369; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.treasury-total strong { margin-top: 4px; color: var(--gold-strong); font-size: 25px; }
.treasury-total em { font-size: 11px; font-style: normal; }
.treasury-split { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-top: 10px; }
.treasury-split div { padding: 8px; border-radius: 9px; background: rgba(255,255,255,.025); }
.treasury-split span, .treasury-split strong { display: block; }
.treasury-split span { color: var(--muted); font-size: 8px; }
.treasury-split strong { margin-top: 3px; font-size: 11px; }
.break-even { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.break-even span { color: var(--muted); font-size: 9px; }
.break-even strong { color: var(--green); font-size: 9px; letter-spacing: .08em; }

.lower-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(300px,.75fr); gap: 14px; margin-top: 14px; }
.text-button { border: 0; color: var(--cyan); background: transparent; font-size: 9px; font-weight: 900; }
.table-wrap { overflow-x: auto; margin-top: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 10px; }
th { padding: 9px 10px; color: #668290; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; text-align: left; border-bottom: 1px solid var(--line); }
td { padding: 11px 10px; color: #c3d1d7; border-bottom: 1px solid rgba(255,255,255,.045); }
tbody tr:hover { background: rgba(85,212,233,.025); }
.status { display: inline-block; border-radius: 999px; padding: 4px 7px; font-size: 8px; font-weight: 900; }
.status.success { color: var(--green); background: rgba(93,212,155,.08); }
.status.warn { color: var(--amber); background: rgba(228,173,87,.08); }
.signal-count { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; color: #08202c; background: var(--gold); font-size: 11px; font-weight: 900; }
.signals-list { display: grid; gap: 8px; margin-top: 14px; }
.signal { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 9px; border: 1px solid rgba(255,255,255,.055); border-radius: 11px; background: rgba(255,255,255,.018); }
.signal > span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; color: var(--cyan); background: rgba(85,212,233,.07); font-weight: 900; }
.signal.alert > span { color: var(--red); background: rgba(236,120,110,.08); }
.signal.good > span { color: var(--green); background: rgba(93,212,155,.08); }
.signal strong { display: block; font-size: 10px; }
.signal p { margin: 2px 0 0; color: var(--muted); font-size: 9px; line-height: 1.35; }
.signal small { color: #577380; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }

.placeholder-view { max-width: 1500px; min-height: 68vh; margin: 0 auto; }
.placeholder-panel { display: grid; place-items: center; align-content: center; min-height: 60vh; border: 1px dashed rgba(85,212,233,.2); border-radius: 22px; background: rgba(255,255,255,.018); text-align: center; }
.placeholder-panel > span { display: grid; place-items: center; width: 70px; height: 70px; margin-bottom: 15px; border: 1px solid var(--line-gold); border-radius: 20px; color: var(--gold); background: rgba(227,183,92,.055); font-size: 30px; }
.placeholder-panel h3 { margin: 8px 0; font-family: Georgia,serif; font-size: 32px; }
.placeholder-panel > p:last-of-type { max-width: 540px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.placeholder-panel button { margin-top: 18px; border: 1px solid rgba(85,212,233,.3); border-radius: 999px; padding: 9px 15px; color: var(--cyan); background: rgba(85,212,233,.06); font-size: 10px; font-weight: 900; }

@media (max-width: 1250px) {
  .progression-hero { grid-template-columns: 145px 1fr; }
  .recent-badges { grid-column: 1 / -1; padding: 13px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .badge-row { grid-template-columns: repeat(3,minmax(0,150px)); }
  .kpi-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 980px) {
  :root { --sidebar: 0px; }
  .sidebar { width: 260px; transform: translateX(-102%); transition: transform .25s ease; }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-scrim { position: fixed; z-index: 45; inset: 0; background: rgba(0,0,0,.58); backdrop-filter: blur(3px); }
  .main-area { padding: 22px 18px 45px; }
  .menu-button { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: rgba(255,255,255,.035); }
  .topbar { align-items: flex-start; }
  .main-grid, .lower-grid { grid-template-columns: 1fr; }
  .right-stack { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; }
  .topbar-actions { width: 100%; }
  .date-card { flex: 1; min-width: 0; }
  .progression-hero { grid-template-columns: 1fr; }
  .level-medallion { min-height: 120px; }
  .milestone-row { grid-template-columns: 1fr; }
  .badge-row { grid-template-columns: repeat(3,1fr); }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .right-stack { grid-template-columns: 1fr; }
  .chart-summary { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .main-area { padding-inline: 12px; }
  .topbar h2 { font-size: 32px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .badge-row { grid-template-columns: 1fr; }
  .recent-badges { padding-right: 0; }
  .level-heading { align-items: flex-start; flex-direction: column; }
}

/* Authentication gate */
[hidden] { display: none !important; }
.auth-gate {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 15%, rgba(85,212,233,.12), transparent 32%),
    radial-gradient(circle at 20% 90%, rgba(227,183,92,.08), transparent 28%),
    #030a10;
}
.auth-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .26;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, #000, transparent 78%);
}
.auth-panel {
  position: relative;
  width: min(470px, 100%);
  padding: 42px 38px 32px;
  border: 1px solid rgba(85,212,233,.2);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(10,27,39,.97), rgba(4,15,24,.98));
  box-shadow: 0 28px 90px rgba(0,0,0,.48), 0 0 60px rgba(85,212,233,.055);
  text-align: center;
}
.auth-brand-mark {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 0 auto 20px;
  border: 1px solid rgba(227,183,92,.38);
  border-radius: 22px;
  color: var(--gold-strong);
  background: radial-gradient(circle at 50% 35%, rgba(227,183,92,.18), rgba(227,183,92,.035));
  box-shadow: inset 0 0 25px rgba(227,183,92,.05), 0 0 28px rgba(227,183,92,.08);
  font-family: Georgia, serif;
  font-size: 38px;
  font-weight: 700;
}
.auth-panel h1 {
  margin: 8px 0 10px;
  font-family: Georgia, serif;
  font-size: clamp(30px, 5vw, 42px);
  letter-spacing: -.025em;
}
.auth-copy {
  max-width: 360px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.auth-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin: 28px 0 8px;
  color: #b9cbd3;
  font-size: 11px;
}
.auth-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(85,212,233,.16);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: auth-spin .8s linear infinite;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }
.auth-actions { margin-top: 28px; }
.google-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(85,212,233,.34);
  border-radius: 14px;
  color: #e9f4f7;
  background: linear-gradient(180deg, rgba(85,212,233,.12), rgba(85,212,233,.055));
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .025em;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.google-login:hover { transform: translateY(-1px); border-color: rgba(85,212,233,.55); background: rgba(85,212,233,.13); }
.google-login:disabled { cursor: wait; opacity: .58; transform: none; }
.google-g {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #17242b;
  background: #f4f7f8;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 900;
}
.auth-denied, .auth-error {
  margin-top: 26px;
  padding: 18px;
  border-radius: 15px;
  background: rgba(236,120,110,.055);
}
.auth-denied { border: 1px solid rgba(236,120,110,.18); }
.auth-error { border: 1px solid rgba(228,173,87,.18); background: rgba(228,173,87,.055); }
.auth-denied-icon, .auth-error > span { display: block; margin-bottom: 8px; font-size: 24px; }
.auth-denied strong, .auth-error strong { display: block; font-size: 13px; }
.auth-denied p, .auth-error p { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.auth-secondary {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  color: #b9ccd4;
  background: rgba(255,255,255,.025);
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}
.auth-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #647d88;
  font-size: 9px;
}
.control-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 185px;
  padding: 7px 8px 7px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.022);
}
.control-user > div { min-width: 0; }
.control-user small, .control-user strong { display: block; }
.control-user small { color: var(--gold); font-size: 8px; font-weight: 900; letter-spacing: .09em; }
.control-user strong { max-width: 145px; margin-top: 2px; overflow: hidden; color: #bcd0d8; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.control-user button {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(236,120,110,.14);
  border-radius: 9px;
  color: #d88f87;
  background: rgba(236,120,110,.045);
  cursor: pointer;
}
@media (max-width: 720px) {
  .auth-panel { padding: 34px 24px 28px; }
  .control-user { order: 3; width: 100%; }
  .control-user strong { max-width: none; }
}
