/* Shared account and administration workspace. */
.workspace {
  background: transparent;
}
.appbar { position: sticky; top: 0; z-index: 5; background: #160b0df5; backdrop-filter: var(--glass-blur); }
.appbar__in { width: calc(100% - 48px); max-width: 1600px; min-height: 72px; }
.appbar__nav { margin-right: auto; margin-left: 48px; }
.appbar__user { font-size: 14px; }
.appbar__user b { font-weight: 500; }
.shell { display: grid; grid-template-columns: 200px minmax(0, 1fr); width: min(100% - 64px, 1400px); gap: 28px; padding: 28px 0 72px; }
.workspace-nav { display: flex; flex-direction: column; align-self: start; position: sticky; top: 96px; margin: 0; gap: 5px; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: #1b0e11e0; backdrop-filter: var(--glass-blur); }
.workspace-nav a, .workspace-nav .tab { display: flex; align-items: center; text-align: left; min-height: 46px; padding: 10px 16px; font-size: 15px; border: 0; border-radius: 8px; color: var(--soft); }
.workspace-nav a:hover, .workspace-nav .tab:hover { background: #ffffff08; }
.workspace-nav [aria-current], .workspace-nav [aria-selected="true"] { color: var(--ink); background: #3e1e24; box-shadow: inset 2px 0 var(--copper); }
.workspace-content { min-width: 0; max-width: 1280px; }
.workspace-content > section, #activation, #overview { scroll-margin-top: 100px; }
.workspace-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 228px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; padding: clamp(24px, 4vw, 42px); margin: 0 0 20px; gap: 20px; border: 1px solid var(--line-strong); border-radius: 16px; background: linear-gradient(100deg, #2c1218f5, #211014bf 65%, #4219207a); backdrop-filter: var(--glass-blur); }
.workspace-hero h1 { font-size: clamp(32px, 4.6vw, 64px); font-weight: 570; line-height: .98; letter-spacing: -.055em; margin: 0; }
.dash-head__sub, .admin-top p { font-size: 15px; max-width: 60ch; line-height: 1.6; }
.card { border-radius: 12px; padding: 24px; background: #221316e8; backdrop-filter: var(--glass-blur); }
.card h2 { font-size: 19px; font-weight: 550; letter-spacing: -.02em; margin-bottom: 14px; }
.sub, .note { font-size: 14px; line-height: 1.65; }
.sec-gap { margin-top: 24px; }
.grid3 { gap: 16px; }
.stat-num { font-size: clamp(26px, 3vw, 38px); line-height: 1.08; letter-spacing: -.045em; margin: 16px 0 8px; font-weight: 550; }
.dash-head__chip, .chip { border-radius: 5px; font-family: var(--sans); font-size: 13px; }
.btn { border-radius: 7px; min-height: 44px; font-weight: 550; background: #341c21; }
.btn--primary { background: var(--copper); color: #220709; }
.btn--primary:hover { background: #ff878a; }
.btn--danger { background: transparent; border-color: #5d3538; }
.field input, .field select, .field textarea { border-color: var(--line-strong); border-radius: 7px; background: #1b0e10; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--copper); }
.field input::placeholder, .field textarea::placeholder { color: var(--subtle); }
.tbl th { font-size: 12px; color: var(--subtle); }
.tbl td, .tbl th { padding: 16px 12px; }
.tbl tbody tr:hover { background: #ffffff04; }
.auth { min-height: 100svh; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: transparent; }
.auth-panel { padding: 24px clamp(24px, 5vw, 80px) 48px; }
.auth-body { max-width: 400px; }
.auth-brand { margin-bottom: 16px; }
.auth h1 { font-size: clamp(36px, 4vw, 52px); font-weight: 550; line-height: 1.06; letter-spacing: -.045em; }
.auth-sub { margin: 16px 0 28px; font-size: 16px; }
.auth .tabs { background: #261418; border: 1px solid var(--line); border-radius: 8px; padding: 4px; gap: 4px; }
.auth .tab { flex: 1; border: 0; border-radius: 5px; }
.auth .tab[aria-selected="true"] { background: #51252d; color: white; }
.auth-art { border: 0; }
.auth-caption { position: absolute; z-index: 1; bottom: 56px; left: 40px; right: 40px; }
.auth-caption span { font-size: 14px; color: var(--soft); }
.auth-caption h2 { font-size: clamp(40px, 4vw, 64px); line-height: 1.05; letter-spacing: -.05em; font-weight: 500; margin: 20px 0; }
.auth-caption p { color: var(--soft); max-width: 35ch; }
.auth-note { line-height: 1.6; }
.admin-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.admin-main { min-width: 0; }
.side { position: static; display: block; max-width: 540px; border-top: 1px solid var(--line); padding-top: 20px; }
.banner { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); padding: 0; gap: 12px; background: none; border: 0; margin: 0 0 16px; }
.banner__num { min-width: 0; padding: 20px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; gap: 12px; }
.banner__num b { font-size: 28px; font-weight: 500; font-variant-numeric: tabular-nums; }
.banner__num span { color: var(--soft); font-size: 13px; }
.row { padding: 18px; gap: 16px; border-radius: 9px; background: var(--surface); }
.row__meta span, .row__meta .mono, .dl dt, .dl dd { font-size: 13px; }
.row__meta b { font-size: 15px; font-weight: 550; }
.row__actions { align-items: center; gap: 8px; }
.row__actions .btn { padding-inline: 10px; font-size: 13px; }
.row__main { overflow-wrap: anywhere; }
.row__meta .mono { letter-spacing: .025em; color: var(--ink); }
.ava, .row__main .ava { border-radius: 9px; font-weight: 500; }
.admin-section h2 { font-size: 22px; font-weight: 550; }
.admin-section .note { font-size: 14px; margin-top: 8px; }
.admin-section { margin-bottom: 12px; }
.profile > div > span { font-size: 13px; }
dialog { width: min(520px, calc(100% - 32px)); max-width: 520px; border-radius: 14px; background: #261418; }
.dlg { padding: 32px; }
.dlg-head { text-align: left; padding-right: 24px; }
.dlg-head .badge { background: none; border: 0; padding: 0; font-family: var(--sans); font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--soft); }
.dlg h2 { font-weight: 550; font-size: 26px; line-height: 1.15; }
.dlg p { font-size: 14px; }
.dlg-close { width: 44px; height: 44px; top: 8px; right: 8px; }
.dlg-keys li { flex-wrap: wrap; }
.dlg-keys .key { overflow-wrap: anywhere; }
.workspace-hero > div:first-child { min-width: 0; }
.workspace-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.workspace-hero .dash-head__sub { margin-top: 14px; }
.workspace-hero__actions .dash-head__chip { color: var(--ink); background: #211014db; backdrop-filter: var(--glass-blur); }
.account-summary { overflow: hidden; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 13px; }
.account-summary > .card { background: #201215; border: 0; border-radius: 0; }
.account-summary .card:first-child { background: #2b151a; }
.account-tools #activation { border-color: var(--line-strong); }
.config-editor { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.config-editor h3 { margin: 0 0 14px; font-size: 16px; font-weight: 550; }
.config-editor textarea { font-family: var(--mono); }
.overview-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.overview-actions .form-status { margin: 0; }
.list-filter { max-width: 360px; margin-top: 16px; }
.list-empty { padding: 18px; color: var(--soft); border: 1px dashed var(--line-strong); border-radius: 8px; }
.auth-body { background: #1b0d10e8; backdrop-filter: var(--glass-blur); border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 4vw, 32px); max-width: 448px; }
.auth-caption { text-shadow: 0 2px 15px #12090b; }
@media(max-width:480px) { .workspace-hero { min-height: 205px; } .banner__num { padding: 14px; } }
@media(max-width:1100px) {
  .shell { grid-template-columns: 180px minmax(0,1fr); gap: 24px; }
  .grid3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media(max-width:760px) {
  .shell { display: block; width: calc(100% - 32px); padding-top: 16px; }
  .workspace-nav { position: static; flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 12px; margin-bottom: 20px; gap: 4px; }
  .workspace-nav a, .workspace-nav .tab { padding: 8px 12px; min-height: 44px; font-size: 14px; }
  .appbar__in { width: calc(100% - 32px); }
  .appbar__nav { margin-left: 16px; }
  .appbar { position: static; }
  .workspace-content > section, #activation, #overview { scroll-margin-top: 16px; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-panel { padding-inline: 24px; }
  .banner { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .card { padding: 20px; }
}
