/* Home and account surfaces extend the shared Shadow Arena storefront theme. */
body[data-page="dashboard"] {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
body[data-page="dashboard"] .site-footer { margin-top: auto; }
.hub h1,.auth-card h1,.workspace-heading h1 {
  font-family: "Arena Display",Impact,sans-serif;
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: #fff;
  text-wrap: balance;
}
.hub .lead,.auth-card>.muted,.panel>.muted,.caption,.empty { text-wrap: pretty; }
.hub {
  min-height: max(640px,calc(100svh - 154px));
  padding: 76px 40px 64px;
}
.hub-content { max-width: 1100px; }
.hub .eyebrow { margin-bottom: 16px; color: #e0beff; }
.hub h1 { font-size: clamp(72px,10.5vw,148px); line-height: 1.03; }
.hub h1 span { color: var(--purple); }
.hub .lead { margin-top: 22px; font-size: 18px; color: #e1d7eb; }
.hub-shade { background: linear-gradient(180deg,#05030866,#05030899 55%,#050308e8),#0005; }
.hub-doors { gap: 20px; margin-top: 48px; }
.hub-doors>a {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 170px;
  padding: 26px 24px;
  gap: 20px;
  align-items: center;
  border: 0;
  border-radius: 0;
  background: none;
}
.hub-doors>a:last-child { background: none; }
.hub-doors>a::before,.hub-doors>a::after,.auth-card::before,.auth-card::after,.panel::before,.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #82449b;
  clip-path: var(--arena-cut);
  pointer-events: none;
  transition: background-color 160ms ease-out;
}
.hub-doors>a::after,.auth-card::after,.panel::after {
  inset: 1px;
  z-index: -1;
  background: linear-gradient(135deg,#170b21f5,#09050ff5);
}
.hub-doors>a:last-child::before { background: #b63dff; }
.hub-doors>a:last-child::after { background: linear-gradient(135deg,#250c38f5,#0f061af5); }
.hub-doors>a:hover::before,.hub-doors>a:focus-visible::before { background: #d083ff; }
.hub-doors>a:hover::after { background: linear-gradient(135deg,#281039,#10061b); }
.hub-doors>a:focus-visible { outline: 3px solid #e6bdff; outline-offset: 5px; }
.hub-doors>a>div { min-width: 0; }
.hub-doors strong { font: italic 900 34px/1.1 "Arena Display",Impact,sans-serif; }
.hub-doors p { margin-top: 9px; font-size: 13px; line-height: 1.6; color: #d1c5dc; text-wrap: pretty; }
.hub-symbol {
  position: relative;
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  color: #fff;
  border: 1px solid #b658f9;
  border-radius: 13px;
  background: linear-gradient(145deg,#7335a580,#271038 52%,#3a1054);
  box-shadow: inset 0 1px 0 #eac4ff80,inset 0 -3px 8px #09011090,0 0 22px #9901ff33,0 6px 14px #0006;
}
.hub-symbol::before {
  content: "";
  position: absolute;
  inset: 2px 3px auto;
  height: 46%;
  border-radius: 10px 10px 16px 16px;
  background: linear-gradient(#f3daff20,transparent);
  pointer-events: none;
}
.hub-symbol svg,.hub-symbol img { width: 34px; height: 34px; filter: drop-shadow(0 1px 2px #0006); }
.hub .motion { margin-top: 34px; min-width: 185px; font-size: 21px; background: #13091de8; box-shadow: inset 0 0 0 1px #8e45aa; }
.hub .motion:hover { background: #30113e; }
.hub+.site-footer { margin-top: 0; }
.auth-main {
  flex: 1;
  align-items: center;
  min-height: 0;
  padding: 64px 24px;
  background: radial-gradient(ellipse at 50% 30%,#9901ff0b,transparent 65%);
}
.auth-card,.panel {
  position: relative;
  isolation: isolate;
  border: 0;
  border-radius: 0;
  background: none;
}
.auth-card { max-width: 520px; padding: 38px 36px 30px; }
.auth-card::before { background: #a83ce6; }
.auth-card::after { background: radial-gradient(ellipse at 100% 0,#3a12514d,transparent 60%),linear-gradient(135deg,#140a1e,#09040f); }
.auth-card .eyebrow { margin-bottom: 13px; }
.auth-card h1 { font-size: clamp(36px,5vw,48px); line-height: 1.08; margin-bottom: 16px; }
.auth-card>.muted { font-size: 15px; line-height: 1.7; }
.auth-card form { margin-top: 26px; }
form label,fieldset legend {
  font-family: "Arena Labels",Arial,sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .02em;
}
input,select {
  font: 400 16px/1.5 "Arena Text",Arial,sans-serif;
  min-height: 48px;
  border-radius: 2px;
  border-color: #704080;
  background: #08040d;
  transition: border-color 160ms ease-out,box-shadow 160ms ease-out;
}
input:hover,select:hover { border-color: #a768c2; }
input:focus-visible,select:focus-visible { outline: 2px solid #dba1ff; outline-offset: 3px; border-color: #b640ff; }
input:disabled,select:disabled { opacity: .6; }
.auth-card form>.button { margin-top: 7px; }
.auth-links { gap: 5px; margin-top: 23px; font-size: 13px; }
.auth-links>a,.auth-links>span { min-height: 44px; display: flex; align-items: center; flex-wrap: wrap; column-gap: 5px; }
.auth-links a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 4px; }
.form-message { line-height: 1.65; }
.form-message.success { color: var(--success); }
.notice { border-radius: 0; }
.workspace { flex: 1; padding-block: 48px 56px; }
.workspace-heading { padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid #61277d; }
.workspace-heading h1 { font-size: clamp(42px,6vw,72px); line-height: 1.05; margin-bottom: 10px; }
.workspace-heading .eyebrow { font-size: 13px; margin-bottom: 12px; }
#account-email { font-size: 14px; overflow-wrap: anywhere; }
.account-top { grid-template-columns: 1.25fr 1fr; }
.account-top,.account-bottom { gap: 24px; }
.panel { padding: 28px; }
.panel::before { background: #75408d; }
.panel::after { background: linear-gradient(135deg,#160b20,#09050f); }
.master-panel::before { background: #be51ff; }
.master-panel::after { background: radial-gradient(ellipse at 100% 0,#4a176633,transparent 65%),linear-gradient(135deg,#1b0b29,#0c0513); }
.panel h2,dialog h2 {
  font: italic 900 31px/1.15 "Arena Display",Impact,sans-serif;
  text-transform: uppercase;
  text-wrap: balance;
  letter-spacing: .02em;
}
.panel h3 { font: 600 22px/1.3 "Arena Labels",Arial,sans-serif; text-wrap: balance; }
.panel>.muted,.master-panel>.muted { font-size: 14px; line-height: 1.7; }
.section-heading { gap: 12px; flex-wrap: wrap; }
.tag,.badge { border-radius: 2px; font: 600 16px/1.3 "Arena Labels",Arial,sans-serif; font-variant-numeric: tabular-nums; }
.tag.success { border-color: #467b61; color: #b6f2cd; background: #12332266; }
.key-field { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; border-radius: 2px; padding: 12px; background: #07030c; border-color: #79419b; }
.key-field code { min-width: 0; font-size: 13px; line-height: 1.8; letter-spacing: .03em; }
.key-field .button { font-size: 19px; min-width: 54px; }
.text-button { min-height: 44px; line-height: 1.5; }
.empty { font-size: 14px; line-height: 1.7; }
.license-row,.device-row,.activity-row { gap: 16px; border-color: #3d234e; }
.license-row>div,.device-row>div,.activity-row>span:first-child { min-width: 0; overflow-wrap: anywhere; }
.license-row .caption,.device-row .caption { margin-top: 5px; font-variant-numeric: tabular-nums; }
.license-row>.caption { margin-top: 0; }
.license-row>.button,.device-row>.button { font-size: 20px; }
.activity-row time { color: #c9b6d7; font-size: 13px; font-variant-numeric: tabular-nums; }
.download-row strong { font: 600 22px/1.3 "Arena Labels",Arial,sans-serif; }
details { margin-top: 12px; }
summary { cursor: pointer; min-height: 44px; padding-block: 10px; color: #dcb4ff; }
.hash { display: block; font-size: 12px; overflow-wrap: anywhere; }
.table-scroll { max-width: 100%; overflow-x: auto; scrollbar-color: #7a3d9f #100819; }
th { font-family: "Arena Labels",Arial,sans-serif; font-size: 17px; }
td { font-size: 13px; font-variant-numeric: tabular-nums; }
fieldset { min-inline-size: 0; border: 1px solid #653579; padding: 10px 14px; margin: 20px 0; }
.inline-form { display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap; }
.inline-form label { flex: 1 1 180px; }
.inline-form>.button { margin-bottom: 18px; }
.included-checkboxes label { font-size: 17px; min-width: 0; overflow-wrap: anywhere; }
dialog { border-radius: 0; border-color: #ac45eb; background: linear-gradient(135deg,#1b0c28,#09040f); box-shadow: 0 18px 80px #0009; }
dialog p { line-height: 1.7; }
.toast { border-radius: 0; border-left: 4px solid #ae32ff; background: #190c25; line-height: 1.6; }
@media (max-width:1100px) {
  .hub-doors>a { padding: 24px 20px; gap: 15px; flex-direction: row; }
  .hub-doors strong { font-size: 31px; }
  .hub-symbol { flex-basis: 54px; width: 54px; height: 56px; }
  .panel { padding: 24px; }
  .key-field { grid-template-columns: 1fr 1fr; }
  .key-field code { grid-column: 1 / -1; }
}
@media (max-width:900px) {
  .account-top,.account-bottom,.admin-grid { grid-template-columns: 1fr; }
  .workspace-heading { align-items: flex-start; }
}
@media (max-width:850px) {
  .hub { padding: 60px 24px 48px; min-height: 0; }
  .hub-content { max-width: 620px; }
  .hub h1 { font-size: clamp(68px,13vw,108px); }
  .hub-doors { grid-template-columns: 1fr; gap: 16px; margin-top: 35px; }
  .hub-doors>a { min-height: 116px; padding: 24px; gap: 24px; align-items: center; }
  .hub-doors strong { font-size: 34px; }
  .hub-doors p { font-size: 14px; margin-top: 5px; }
  .hub-symbol { flex-basis: 60px; width: 60px; height: 60px; }
  .hub .lead { font-size: 16px; }
  .workspace-heading { flex-direction: column; gap: 18px; }
  .workspace-heading .actions { width: 100%; }
  .key-field { grid-template-columns: minmax(0,1fr) auto auto; }
  .key-field code { grid-column: auto; }
}
@media (max-width:480px) {
  .hub { padding: 48px 16px 40px; }
  .hub .eyebrow { font-size: 11px; letter-spacing: .22em; }
  .hub h1 { font-size: clamp(54px,16vw,76px); }
  .hub .lead { max-width: 270px; margin: 18px auto 0; line-height: 1.7; }
  .hub-doors { margin-top: 30px; gap: 14px; }
  .hub-doors>a { padding: 22px 20px; gap: 18px; min-height: 114px; }
  .hub-doors strong { font-size: 32px; }
  .hub-doors p { font-size: 12px; }
  .hub-symbol { flex-basis: 54px; width: 54px; height: 56px; }
  .hub-symbol svg,.hub-symbol img { width: 31px; height: 31px; }
  .hub .motion { margin-top: 27px; }
  .auth-main { padding: 36px 16px 40px; }
  .auth-card { padding: 30px 24px 24px; }
  .auth-card h1 { font-size: 37px; }
  .auth-card .eyebrow { font-size: 12px; }
  .auth-card>.muted { font-size: 14px; }
  .auth-card form { margin-top: 23px; }
  .workspace { padding-block: 32px 40px; }
  .workspace-heading h1 { font-size: 48px; }
  .workspace-heading .eyebrow { font-size: 11px; }
  .workspace-heading .button { font-size: 20px; }
  .panel { padding: 25px 20px; }
  .panel h2 { font-size: 29px; }
  .key-field { grid-template-columns: 1fr 1fr; padding: 10px; }
  .key-field code { grid-column: 1 / -1; }
  .key-field .button { font-size: 20px; }
  .license-row,.device-row { align-items: flex-start; }
  .license-row>div,.device-row>div { flex: 1 1 100%; }
  .activity-row { display: grid; gap: 5px; }
  .included-checkboxes { grid-template-columns: 1fr; }
  .inline-form { gap: 0; }
  .inline-form label { flex-basis: 100%; }
  .inline-form>.button { width: 100%; margin: 4px 0 18px; }
  dialog { padding: 25px; }
  dialog .actions { gap: 10px; }
  dialog .button { flex: 1; }
}
@media (prefers-reduced-motion:reduce) {
  .hub-doors>a::before,.hub-doors>a::after,.auth-card::before,.auth-card::after,.panel::before,.panel::after,input,select { transition: none; }
}
