:root {
  color-scheme: dark;
  --ground: #050913;
  --surface: #0b1423;
  --ink: #eef5ff;
  --muted: #a0b2cc;
  --line: #709bd02b;
  --ice: #a7d7ff;
  --accent: #68adff;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei UI", system-ui, sans-serif;
  font-family: var(--font);
  color: var(--ink);
  background: var(--ground);
}

*, *::before, *::after { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  background: #030610;
  font-size: 15px;
  line-height: 1.55;
}
.deep-space {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background:
    linear-gradient(90deg, #050912fb 4%, #080f1dc9 43%, #07112155 100%),
    linear-gradient(0deg, #050912 2%, transparent 56%),
    url("orbit.webp") 65% 32% / cover no-repeat;
}
.deep-space::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 17% 43%, #a6caff90, transparent),
    radial-gradient(1px 1px at 69% 14%, #c1e2ff90, transparent),
    radial-gradient(1px 1px at 35% 75%, #8abfff88, transparent);
  background-size: 153px 109px, 223px 137px, 107px 171px;
  opacity: .35;
}
.glass-plane {
  position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none;
}
.glass-ready .deep-space { visibility: hidden; }
html { scroll-behavior: smooth; }
a { color: var(--ice); text-decoration: none; }
a:hover { color: white; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 4px; }

.shell { position: relative; z-index: 1; width: min(1090px, calc(100% - 72px)); margin-inline: auto; }
.topbar { min-height: 85px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); font-size: 20px; font-weight: 700; letter-spacing: .035em; }
.header-link { font-size: 14px; color: var(--muted); }
.header-link span { margin-left: 4px; }
.orbit-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  border: 1px solid #75baff69;
  border-radius: 11px;
  background: linear-gradient(140deg, #1e4776, #0b1730 72%);
  box-shadow: inset 0 1px 1px #b7dfff30, 0 5px 18px #387beb15;
  flex-shrink: 0;
}
.orbit-mark::before, .orbit-mark::after { content: ""; grid-area: 1 / 1; }
.orbit-mark::before {
  width: 22px; height: 11px; border-radius: 50%; transform: rotate(-37deg);
  border: 1px solid #9bd2ff; box-shadow: 0 0 8px #4687f094;
}
.orbit-mark::after { width: 8px; height: 8px; border-radius: 50%; background: #a3d6ff; }
.overview { padding-bottom: 48px; }
.hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid #7997b13d;
  border-radius: 17px;
  background: linear-gradient(105deg, #101c2be8 2%, #0c182abf 47%, #0a15286e 100%);
  backdrop-filter: blur(15px) saturate(118%);
  box-shadow: 0 15px 45px #02061050;
}
.profile-identity { display: flex; align-items: center; min-width: 0; gap: clamp(14px, 2vw, 24px); }
.identity-text { min-width: 0; }
.avatar {
  position: relative;
  width: clamp(55px, 6.5vw, 82px);
  aspect-ratio: 1;
  padding: 4px;
  flex: 0 0 auto;
  border: 1px solid #86a2b956;
  border-radius: 50%;
  background: #142238a0;
}
.avatar div {
  width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; border-radius: inherit;
  color: #d5ebff; background: #132643; font-weight: 700; font-size: clamp(23px, 4vw, 37px);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(32px, 5vw, 55px); line-height: 1.16; letter-spacing: -.045em; font-weight: 720; }
.profile-identity h1 { font-size: clamp(29px, 3.5vw, 42px); overflow-wrap: anywhere; letter-spacing: -.025em; }
.identity-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.uid, .tag, .status {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line);
  color: #b4c7e0; background: #06101bbd; padding: 4px 9px; border-radius: 7px;
  font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.uid { font: 12px/1.6 ui-monospace, Consolas, monospace; letter-spacing: .07em; }
.uid b { color: #e5f2ff; font-weight: 600; }
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.37fr) minmax(0, 1fr);
  gap: 16px;
}
.profile-panel { grid-row: span 2; display: flex; flex-direction: column; gap: 24px; }
.profile-fields { padding-top: 20px; border-top: 1px solid var(--line); }
.profile-return { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.panel, .subpage section {
  position: relative;
  padding: clamp(18px, 2.3vw, 24px);
  min-width: 0;
  background: linear-gradient(154deg, #152235e0, #0b1424dc);
  backdrop-filter: blur(16px) saturate(125%);
  border: 1px solid #718aa636;
  border-radius: 15px;
  box-shadow: 0 12px 32px #02061045;
  transition: border-color .25s, box-shadow .25s;
}
.panel:hover, .panel:focus-within { border-color: #8497aa72; box-shadow: 0 14px 34px #0206105b; }
.glass-ready :is(.hero, .panel, .subpage section) {
  background: #030b182c;
  backdrop-filter: none;
  border-color: #8899ab3d;
  box-shadow: 0 9px 24px #01050c60;
}
.glass-ready .panel:is(:hover, :focus-within) { border-color: #9fb3c368; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
h2 { font-size: 19px; line-height: 1.35; font-weight: 690; letter-spacing: .015em; }
.panel h2 { display: flex; align-items: center; gap: 10px; }
.panel-icon {
  display: inline-grid; position: relative; place-items: center; width: 32px; height: 32px;
  border: 1px solid #8abfff35; border-radius: 8px; flex-shrink: 0; overflow: hidden;
  background: #1c304a;
}
.panel-icon::before, .panel-icon::after { position: absolute; content: ""; }
.mods-icon::before { width: 12px; height: 12px; border: 1px solid #cbe8ff; transform: rotate(45deg); }
.mods-icon::after { width: 5px; height: 5px; background: #8bc7ff; transform: rotate(45deg); }
.security-icon::before { top: 7px; width: 8px; height: 7px; border: 1px solid #cbe8ff; border-radius: 5px 5px 1px 1px; }
.security-icon::after { top: 13px; width: 12px; height: 9px; border: 1px solid #cbe8ff; border-radius: 3px; background: #264773; }
.muted { color: var(--muted); font-size: 14px; }
.panel h2 + p { margin-top: 7px; }
.field { margin-top: 14px; }
.field + .field { padding-top: 13px; border-top: 1px solid var(--line); }
.field label, .field-title { display: block; margin-bottom: 8px; color: #bacde8; font-size: 13px; }
.field-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
input, button, select { font: inherit; }
input:not([type="hidden"], [type="checkbox"]), select {
  min-width: 0;
  min-height: 42px;
  border: 1px solid #739aca40;
  border-radius: 9px;
  padding: 9px 12px;
  background: #07101ec4;
  color: var(--ink);
}
.field-controls input { flex: 1 1 170px; max-width: 100%; }
input[type="file"] { font-size: 12px; color: var(--muted); }
input::file-selector-button {
  margin-right: 8px; border: 0; border-radius: 5px; padding: 4px 8px;
  color: #d5e9ff; background: #1b3556; cursor: pointer;
}
.button, .subpage button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 41px; padding: 8px 14px; border: 1px solid #76aef04d; border-radius: 9px;
  background: #1b304b; color: #e3f0ff; cursor: pointer; font-size: 14px; font-weight: 620;
  transition: background .18s, border-color .18s, box-shadow .18s;
}
.button:hover, .subpage button:hover { background: #214267; border-color: #83bdff9c; }
.button.primary {
  border-color: #a9d8ff;
  background: linear-gradient(155deg, #cae8ff 0%, #89c2ff 100%);
  color: #05182e;
  box-shadow: 0 3px 10px #01071265;
  padding-inline: 17px;
}
.button.primary:hover { background: #cee8ff; color: #071729; }
.button.compact { min-height: 37px; padding-inline: 12px; font-size: 13px; }

.mod-list { display: grid; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.mod-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px; border: 1px solid #718aa63a; border-radius: 10px;
  background: #0c1727a8;
}
.mod-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px;
  color: #c4e6ff; background: #1d3755;
  border: 1px solid #6daaff3b; font: 650 12px/1 ui-monospace, Consolas, monospace; letter-spacing: .035em;
}
.mod-name { overflow-wrap: anywhere; font-size: 15px; font-weight: 670; }
.mod-detail { display: grid; min-width: 0; gap: 2px; }
.mod-caption { color: #acbfdc; font-size: 12px; }
.mod-caption time { font-variant-numeric: tabular-nums; }
.status { background: #091320; padding: 3px 8px; }
.status.live { color: #a6e9e2; border-color: #6cd9cd55; background: #12302f; }
.status.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #85dfc9; }
.empty-state { display: flex; gap: 12px; align-items: center; margin-top: 16px; color: var(--muted); font-size: 13px; }
.empty-state .orbit-mark { opacity: .75; }

.security-links a {
  min-width: 0; min-height: 44px; display: flex; align-items: center; gap: 9px;
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px;
  background: #0b192c; color: #d2e4fa; cursor: pointer; font-size: 14px; font-weight: 570;
}
.security-links a:hover { background: #183252; color: white; border-color: #6b9fdb75; }
.security-links span { margin-left: auto; color: #93c4fc; }
.security-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 15px; }
.visibility { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 9px; margin-top: 12px; }
.toggle { position: relative; display: inline-flex; gap: 9px; align-items: center; color: var(--muted); font-size: 13px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; margin: 0; }
.toggle-track { display: inline-flex; align-items: center; flex: 0 0 33px; height: 18px; padding: 2px; border-radius: 12px;
  border: 1px solid #8196ae60; background: #0a1422; transition: background .2s, border-color .2s; }
.toggle-track::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #8ca3bd; transition: transform .2s; }
.toggle input:checked + .toggle-track { background: #21436a; border-color: #81b8ff80; }
.toggle input:checked + .toggle-track::before { transform: translateX(15px); background: #b4dbff; }
.toggle input:focus-visible + .toggle-track { outline: 2px solid var(--ice); outline-offset: 3px; }
input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; margin: 2px 0 0; }

.sign-in { width: min(100%, 480px); min-height: 300px; margin-block: clamp(60px, 13vh, 124px); }
.sign-in-content { max-width: 420px; }
.sign-in p { color: #becfe5; max-width: 25em; margin-top: 17px; }
.sign-in .button { margin-top: 26px; min-width: 125px; justify-content: space-between; }
.subpage { max-width: 720px; display: grid; gap: 14px; padding-bottom: 48px; }
.subpage section { display: grid; gap: 15px; }
.subpage form { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; }
.subpage label { color: var(--muted); }

@media (min-width: 761px) {
  .dashboard-grid { gap: 19px; }
  .dashboard-grid > .panel { padding: clamp(22px, 2.7vw, 32px); }
  .profile-panel { gap: 28px; }
  .profile-fields { padding-top: 23px; }
  .profile-fields .field { margin-top: 17px; }
  .profile-fields .field + .field { border-top: 0; padding-top: 0; }
  .mods-panel .mod-row { min-height: 71px; }
  .security-panel .security-links { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .security-panel .security-links a { min-height: 45px; padding-inline: 13px; }
  .security-panel .visibility { margin-top: 16px; }
}

@media (min-width: 761px) and (min-height: 770px) {
  body:has(> .overview > .dashboard-grid) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100svh;
    padding-block: 40px 72px;
  }
  body:has(> .overview > .dashboard-grid) .topbar { min-height: 63px; align-items: start; }
  body:has(> .overview > .dashboard-grid) .overview { padding-bottom: 0; }
}

@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .topbar { min-height: 70px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .profile-panel { grid-row: auto; gap: 20px; }
  .panel, .subpage section { border-radius: 15px; }
  .hero { border-radius: 15px; }
  .sign-in { margin-block: 53px; }
}
@media (max-width: 370px) {
  .shell { width: calc(100% - 22px); }
  .security-links { grid-template-columns: 1fr; }
  .mod-row { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
  :is(.panel, .hero, .subpage section) { background: #101b2a; backdrop-filter: none; }
}

@media (max-width: 530px) {
  .topbar { flex-wrap: wrap; align-content: center; padding-block: 12px; }
  .brand { font-size: 17px; gap: 9px; }
  .orbit-mark { width: 30px; }
  .hero { overflow: clip; }
}
