:root {
  color-scheme: light;
  --ink: #2b2239;
  --muted: #6b6077;
  --line: #e8e0ef;
  --surface: #fffdfd;
  --accent: #7253a3;
  --accent-soft: #ede5f9;
  --canvas: #f8f6fb;
  --sidebar: #fffdff;
  --heading: #261d33;
  font-family: "PingFang SC", "Microsoft Yahei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--canvas);
}
:root[data-theme=dark] {
  color-scheme: dark;
  --ink: #eee5f5;
  --muted: #b7a9c5;
  --line: #43344f;
  --surface: #2b2235;
  --accent: #cfb6f1;
  --accent-soft: #453256;
  --canvas: #21192a;
  --sidebar: #251d2e;
  --heading: #f3eaf9;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, select, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.app-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100dvh; }
.sidebar {
  position: sticky; top: 0; height: 100dvh; padding: 27px 16px; overflow-y: auto;
  background: var(--sidebar); border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; margin: 0 6px 37px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-mark { width: 43px; height: 43px; flex: 0 0 43px; display: grid; place-items: center; color: #fff; border-radius: 14px; background: linear-gradient(145deg,#a885cf,#724aab); box-shadow: 0 4px 10px #7f57af32; }
.brand svg { width: 23px; height: 23px; }
.brand strong { display: block; font-size: 1.12rem; letter-spacing: .04em; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: .65rem; font-weight: 700; letter-spacing: .075em; }
.brand svg, .navigation svg, .topbar svg, .welcome svg { fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.navigation { display: grid; gap: 7px; }
.navigation a {
  display: flex; align-items: center; gap: 12px; min-height: 53px; padding: 0 13px; border-radius: 12px;
  color: var(--muted); font-size: .97rem; font-weight: 650; text-decoration: none;
}
.navigation a:hover { background: var(--canvas); color: var(--ink); }
.navigation a[aria-current=page] { background: var(--accent-soft); color: var(--accent); font-weight: 760; }
.navigation svg, .topbar svg { width: 21px; height: 21px; flex: 0 0 21px; }
.main-shell { min-width: 0; }
.topbar { border-bottom: 1px solid var(--line); background: var(--sidebar); }
.topbar-inner { max-width: 1420px; min-height: 69px; margin: auto; padding: 8px clamp(20px, 3vw, 44px); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.current-location, .preferences { display: flex; align-items: center; gap: 8px; }
.current-location { color: var(--muted); font-size: .9rem; font-weight: 700; }
.utility { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 44px; padding: 0 12px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 11px; font-size: .86rem; font-weight: 650; white-space: nowrap; }
.utility:hover, .utility[aria-pressed=true] { color: var(--accent); background: var(--accent-soft); }
.utility.icon-only { width: 44px; padding: 0; }
.main-content { max-width: 1420px; margin: 0 auto; padding: 24px clamp(20px, 3vw, 44px) 48px; }
.welcome {
  position: relative; isolation: isolate; display: flex; align-items: center; min-height: 208px;
  margin-bottom: 25px; overflow: hidden; border-radius: 22px; color: #fcf5ff;
  background: #281c39 url("hero.webp") center right / cover no-repeat;
  box-shadow: 0 9px 24px #39254c19;
}
.welcome::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#281c39 3%,#281c39e8 31%,transparent 74%); }
.welcome[hidden] { display: none; }
.welcome-copy { padding: 25px clamp(22px, 4vw, 50px); }
.welcome-label { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 30px; border: 1px solid #e2b8ff4d; background: #c899ed23; color: #efd5ff; font-size: .81rem; font-weight: 650; margin: 0 0 9px; }
.welcome-label svg { width: 15px; height: 15px; }
.welcome h1 { margin: 0; font-size: clamp(1.65rem, 3.1vw, 2.6rem); font-weight: 850; letter-spacing: .02em; line-height: 1.23; color: inherit; }
.welcome-subtitle { margin: 9px 0 0; color: #e8d9f1; font-size: .96rem; line-height: 1.6; }
.no-module { border: 1px solid var(--line); border-radius: 16px; color: var(--muted); background: var(--surface); padding: 24px; }
@media (min-width: 761px) and (max-width: 1030px) {
  .app-shell { grid-template-columns: 180px minmax(0,1fr); }
  .sidebar { padding-inline: 12px; }
  .brand { gap: 8px; margin-inline: 0; }
  .brand strong { font-size: 1.04rem; }
  .brand-mark { width: 37px; height: 37px; flex-basis: 37px; }
}
@media (max-width: 760px) {
  .app-shell { display: flex; flex-direction: column; }
  .sidebar { position: static; height: auto; padding: 11px 12px 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { margin: 0 0 9px 2px; }
  .brand-mark { width: 36px; height: 36px; flex-basis: 36px; border-radius: 11px; }
  .brand strong { font-size: 1rem; }
  .brand small { margin-top: 2px; }
  .navigation { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; }
  .navigation a { padding: 6px 2px; min-height: 53px; flex-direction: column; justify-content: center; gap: 4px; font-size: clamp(.69rem, 2.15vw, .83rem); text-align: center; white-space: nowrap; border-radius: 9px; }
  .navigation svg { width: 19px; height: 19px; flex: 0 0 19px; }
  .topbar-inner { min-height: 53px; padding: 4px 12px; }
  .current-location { font-size: .83rem; }
  .preferences { gap: 4px; }
  .utility { height: 44px; padding: 0 8px; font-size: .77rem; }
  .utility svg, .current-location svg { width: 17px; height: 17px; flex-basis: 17px; }
  .main-content { padding: 13px 12px 28px; }
  .welcome { min-height: 153px; margin-bottom: 17px; border-radius: 16px; }
  .welcome-copy { padding: 16px; }
  .welcome-subtitle { max-width: 19em; font-size: .86rem; }
}
@media (max-width: 370px) {
  .navigation a { font-size: .83rem; }
  .current-location svg { display: none; }
  .welcome-subtitle { max-width: 16em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.immersive .welcome { display: none; }
