/* 文件说明：管理网页主题切换、确认提示和本地偏好保存。 */
/* Shared Frutiger Aero theme. The default UI remains untouched until data-theme="aero" is set. */
.copy-aero { display: none !important; }
.aero-side-directory { display: none; }

.theme-switch {
  --switch-sky: #86d8f4;
  --switch-grass: #6fc53c;
  min-width: 92px;
  height: 34px;
  padding: 3px 9px 3px 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(67, 97, 115, .18);
  border-radius: 999px;
  color: #66707b;
  background: rgba(255, 255, 255, .82);
  box-shadow: inset 0 1px rgba(255, 255, 255, .95), 0 5px 14px rgba(35, 67, 88, .08);
  font: 750 11px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  cursor: pointer;
  transition: transform .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.theme-switch:hover { transform: translateY(-1px); color: #17749a; border-color: rgba(30, 137, 179, .35); box-shadow: inset 0 1px #fff, 0 7px 18px rgba(35, 94, 121, .13); }
.theme-switch:focus-visible { outline: 3px solid rgba(51, 174, 220, .28); outline-offset: 2px; }
.theme-switch-track {
  position: relative;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(25, 121, 161, .28);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--switch-sky) 0 62%, var(--switch-grass) 63% 100%);
  box-shadow: inset 0 2px 4px rgba(0, 94, 150, .2), inset 0 -1px rgba(255, 255, 255, .7);
}
.theme-switch-track::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  left: 5px;
  top: 4px;
  border-radius: 50%;
  background: #fff7ad;
  box-shadow: 0 0 7px #fff, 0 0 10px #f6ea6b;
}
.theme-switch-orb {
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 18px;
  top: 2px;
  left: 2px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff 0 14%, rgba(255,255,255,.72) 15%, rgba(195,236,255,.5) 38%, rgba(28,142,198,.62) 100%);
  box-shadow: 0 2px 6px rgba(0, 78, 122, .28);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}
.theme-switch[aria-pressed="true"] { color: #075f7c; border-color: rgba(33, 146, 184, .42); background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(217,247,255,.88)); }
.theme-switch[aria-pressed="true"] .theme-switch-orb { transform: translateX(18px); }
.theme-switch-floating { position: fixed; z-index: 80; top: 18px; right: 18px; }

html[data-theme="aero"] {
  --ink: #123b4a;
  --muted: #467082;
  --line: rgba(20, 113, 143, .2);
  --pink: #52bd35;
  --pink-deep: #087b9d;
  --accent: #32aedd;
  --accent-dark: #087da8;
  --blue: #37bce8;
  --green: #45a934;
  --panel: rgba(248, 255, 255, .83);
  --bg: #a8e6f5;
  --paper: rgba(255, 255, 255, .9);
  --shadow: 0 18px 42px rgba(8, 88, 117, .18), inset 0 1px rgba(255, 255, 255, .84);
}
html[data-theme="aero"] body {
  color: var(--ink);
  background: transparent;
  font-family: "Segoe UI", Frutiger, "Myriad Pro", "PingFang SC", "Microsoft YaHei", sans-serif;
}
html[data-theme="aero"] body::before {
  content: "";
  position: fixed;
  z-index: -3;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, #3caee4 0%, #8ee0f6 42%, #ddf8ff 66%, #88d74a 67%, #43a92f 100%);
}
html[data-theme="aero"] body::after {
  content: "";
  position: fixed;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 16%, rgba(255,255,255,.95) 0 6%, rgba(255,255,255,.7) 7% 10%, transparent 11%),
    radial-gradient(ellipse at 29% 13%, rgba(255,255,255,.92) 0 5%, transparent 10%),
    radial-gradient(ellipse at 79% 20%, rgba(255,255,255,.92) 0 7%, rgba(255,255,255,.54) 8% 11%, transparent 12%),
    radial-gradient(circle at 93% 18%, rgba(255,255,255,.9) 0 3px, transparent 4px 20px, rgba(255,255,255,.72) 21px 23px, rgba(35,163,211,.19) 24px 31px, transparent 32px),
    radial-gradient(circle at 14% 57%, rgba(255,255,255,.9) 0 2px, transparent 3px 12px, rgba(255,255,255,.7) 13px 15px, rgba(35,163,211,.18) 16px 21px, transparent 22px),
    radial-gradient(circle at 76% 45%, transparent 0 7px, rgba(255,255,255,.72) 8px 9px, rgba(34,163,211,.15) 10px 13px, transparent 14px),
    radial-gradient(ellipse 65% 25% at 12% 76%, #9be65a 0 42%, #63bd38 43% 47%, transparent 48%),
    radial-gradient(ellipse 72% 24% at 84% 77%, #82d94c 0 44%, #3d9f2f 45% 49%, transparent 50%),
    radial-gradient(circle at 82% 4%, rgba(255,255,255,.96), rgba(255,246,167,.5) 4%, transparent 13%),
    linear-gradient(115deg, transparent 34%, rgba(255,255,255,.4) 48%, transparent 61%);
  background-repeat: no-repeat;
}
html[data-theme="aero"] ::selection { color: #073948; background: rgba(130, 230, 104, .68); }

/* Glossy controls */
html[data-theme="aero"] .button,
html[data-theme="aero"] .nav-login {
  border-color: rgba(5, 101, 132, .28);
  border-radius: 999px;
  box-shadow: inset 0 1px rgba(255,255,255,.88), 0 5px 12px rgba(5, 91, 121, .16);
  text-shadow: 0 1px rgba(255,255,255,.34);
}
html[data-theme="aero"] .button.primary,
html[data-theme="aero"] .primary:not(.feature-icon),
html[data-theme="aero"] .nav-login {
  color: #fff;
  border-color: #158bac;
  background:
    linear-gradient(180deg, rgba(255,255,255,.66) 0%, rgba(255,255,255,.12) 47%, rgba(0,93,153,.18) 49%, transparent 100%),
    linear-gradient(135deg, #39c5ed, #087fae 72%);
  box-shadow: inset 0 1px #fff, inset 0 -2px rgba(0,73,119,.25), 0 6px 14px rgba(5,92,126,.24);
  text-shadow: 0 1px 2px rgba(0,65,96,.65);
}
html[data-theme="aero"] .button.primary:hover,
html[data-theme="aero"] .primary:not(.feature-icon):hover,
html[data-theme="aero"] .nav-login:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,.75) 0%, rgba(255,255,255,.16) 47%, rgba(0,95,144,.16) 49%, transparent 100%),
    linear-gradient(135deg, #66dcf7, #0a91bd 72%);
  box-shadow: inset 0 1px #fff, inset 0 -2px rgba(0,73,119,.22), 0 8px 18px rgba(5,92,126,.3);
}
html[data-theme="aero"] .button.secondary,
html[data-theme="aero"] .button.ghost {
  color: #16566c;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(214,246,252,.82));
}
html[data-theme="aero"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-theme="aero"] textarea,
html[data-theme="aero"] select {
  color: #173e4b;
  border-color: rgba(16, 112, 142, .28);
  background: rgba(255,255,255,.86);
  box-shadow: inset 0 1px 3px rgba(9,78,103,.11), 0 1px rgba(255,255,255,.78);
}
html[data-theme="aero"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
html[data-theme="aero"] textarea:focus,
html[data-theme="aero"] select:focus { border-color: #21a9d2; box-shadow: 0 0 0 3px rgba(50,190,226,.2), inset 0 1px 3px rgba(9,78,103,.08); }

/* Home */
html[data-theme="aero"] .top-attribution { color: rgba(18, 64, 79, .7); }
html[data-theme="aero"] .site-header,
html[data-theme="aero"] .app-header,
html[data-theme="aero"] .page-header,
html[data-theme="aero"] .appeal-header {
  border-color: rgba(255,255,255,.76);
  background:
    linear-gradient(180deg, rgba(255,255,255,.76), rgba(205,244,252,.58) 44%, rgba(72,176,218,.28) 48%, rgba(255,255,255,.48));
  box-shadow: inset 0 1px #fff, 0 8px 24px rgba(10, 86, 116, .2);
  backdrop-filter: blur(17px) saturate(1.35);
}
html[data-theme="aero"] .site-header { border-color: rgba(255,255,255,.92) rgba(13,111,149,.24) rgba(13,111,149,.34); }
html[data-theme="aero"] .brand img,
html[data-theme="aero"] .brand-logo,
html[data-theme="aero"] .auth-logo,
html[data-theme="aero"] .appeal-brand img { border: 1px solid rgba(255,255,255,.92); box-shadow: inset 0 1px #fff, 0 5px 13px rgba(0,92,129,.2); }
html[data-theme="aero"] .hero-copy h1 em {
  color: #087d9d;
  background: linear-gradient(135deg, #087ea9, #49b932 74%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
html[data-theme="aero"] .eyebrow { color: #087e9f; text-shadow: 0 1px rgba(255,255,255,.7); }
html[data-theme="aero"] .glow-pink { background: rgba(122, 225, 82, .67); }
html[data-theme="aero"] .glow-blue { background: rgba(89, 205, 242, .72); }
html[data-theme="aero"] .companion-card,
html[data-theme="aero"] .message-card,
html[data-theme="aero"] .capability-row,
html[data-theme="aero"] .persona-option,
html[data-theme="aero"] .feature-grid article,
html[data-theme="aero"] .device-capabilities article,
html[data-theme="aero"] .history-group,
html[data-theme="aero"] .history-item {
  border-color: rgba(255,255,255,.94) rgba(14,120,151,.2) rgba(14,120,151,.28);
  background: linear-gradient(145deg, rgba(255,255,255,.93), rgba(218,249,251,.72));
  box-shadow: inset 0 1px #fff, 0 10px 24px rgba(4,90,118,.14);
}
html[data-theme="aero"] .companion-card,
html[data-theme="aero"] .message-card { backdrop-filter: blur(16px) saturate(1.4); }
html[data-theme="aero"] .companion-card small b,
html[data-theme="aero"] .persona-badge { color: #257d1d; background: rgba(208,246,180,.86); border-color: rgba(75,160,43,.22); }
html[data-theme="aero"] .companion-card span { color: #247c31; }
html[data-theme="aero"] .capability-row span { color: #145b70; background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(180,232,247,.72)); box-shadow: inset 0 1px #fff, inset 0 -1px rgba(13,119,157,.18); }
html[data-theme="aero"] .persona-showcase,
html[data-theme="aero"] .device-showcase,
html[data-theme="aero"] .cta,
html[data-theme="aero"] .history-dialog {
  border-color: rgba(255,255,255,.94) rgba(11,113,145,.22) rgba(11,113,145,.32);
  background:
    radial-gradient(circle at 7% 8%, rgba(154,238,107,.52), transparent 18rem),
    radial-gradient(circle at 96% 90%, rgba(69,195,235,.54), transparent 21rem),
    linear-gradient(145deg, rgba(255,255,255,.86), rgba(218,249,253,.78));
  box-shadow: inset 0 1px #fff, 0 18px 46px rgba(5,89,119,.2);
}
html[data-theme="aero"] .history-pinned {
  border-color: rgba(170, 245, 128, .86);
  border-radius: 4px;
  background: linear-gradient(145deg, rgba(10,57,58,.94), rgba(4,33,44,.92));
  box-shadow: 0 0 0 1px rgba(218,255,198,.28), 0 0 23px rgba(98,225,83,.25), 0 12px 30px rgba(0,0,0,.3);
}
html[data-theme="aero"] .history-pinned::before {
  background: linear-gradient(110deg, #efffe2, #69e15b, #63d9ec, #efffe2) border-box;
}
html[data-theme="aero"] .history-pinned-item {
  color: #e9f1e8;
  border-color: rgba(207,239,203,.3);
  background: rgba(2,26,34,.72);
}
html[data-theme="aero"] .history-pinned-item p { color: #e2ede1; }
html[data-theme="aero"] .announcement-pin-toggle { border-color: rgba(112,220,105,.36); background: rgba(4,27,34,.52); }
html[data-theme="aero"] .feature-grid article:hover { border-color: rgba(57, 175, 63, .56); box-shadow: inset 0 1px #fff, 0 15px 31px rgba(5,95,116,.2); }
html[data-theme="aero"] .feature-icon { border: 1px solid rgba(255,255,255,.82); box-shadow: inset 0 2px rgba(255,255,255,.8), inset 0 -2px rgba(3,80,113,.1), 0 4px 9px rgba(5,91,121,.14); }
html[data-theme="aero"] .feature-icon.pink,
html[data-theme="aero"] .feature-icon.green { color: #247617; background: linear-gradient(180deg, #ddffc9, #83d957); }
html[data-theme="aero"] .feature-icon.blue,
html[data-theme="aero"] .feature-icon.cyan { color: #086b91; background: linear-gradient(180deg, #dcf8ff, #7dd7ef); }
html[data-theme="aero"] .feature-icon.lilac { color: #3c7292; background: linear-gradient(180deg, #eef8ff, #a8d7ec); }
html[data-theme="aero"] .feature-icon.amber { color: #627216; background: linear-gradient(180deg, #f7ffc9, #bde766); }
/* The Aero icon set deliberately resembles physical objects instead of flat glyphs. */
html[data-theme="aero"] .feature-icon {
  position: relative;
  overflow: hidden;
  color: transparent !important;
  border-radius: 13px;
  background: linear-gradient(145deg, #f9ffff, #72d6ef 55%, #117ba8) !important;
  box-shadow: inset 0 2px 2px rgba(255,255,255,.92), inset 0 -3px 6px rgba(0,67,104,.25), 0 6px 11px rgba(0,74,105,.26) !important;
}
html[data-theme="aero"] .feature-icon::after {
  content: "";
  position: absolute;
  inset: 2px 5px 52% 5px;
  border-radius: 9px 9px 50% 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.93), rgba(255,255,255,.18));
  pointer-events: none;
}
html[data-theme="aero"] .feature-icon::before {
  position: relative;
  z-index: 2;
  color: initial;
  font-size: 25px;
  line-height: 1;
  filter: drop-shadow(0 2px 1px rgba(0,42,68,.28));
}
html[data-theme="aero"] .feature-grid article:nth-child(1) .feature-icon::before { content: "💬"; }
html[data-theme="aero"] .feature-grid article:nth-child(2) .feature-icon::before { content: "🧠"; }
html[data-theme="aero"] .feature-grid article:nth-child(3) .feature-icon::before { content: "🌄"; }
html[data-theme="aero"] .feature-grid article:nth-child(4) .feature-icon::before { content: "📸"; }
html[data-theme="aero"] .feature-grid article:nth-child(5) .feature-icon::before { content: "🔐"; }
html[data-theme="aero"] .feature-grid article:nth-child(6) .feature-icon::before { content: "🛡️"; }
html[data-theme="aero"] .privacy-showcase {
  color: #f5ffff;
  border: 1px solid rgba(255,255,255,.7);
  background:
    radial-gradient(circle at 88% 5%, rgba(119,235,244,.34), transparent 18rem),
    linear-gradient(145deg, rgba(3,92,129,.93), rgba(9,118,127,.91));
  box-shadow: inset 0 1px rgba(255,255,255,.52), 0 20px 52px rgba(0,65,91,.28);
}
html[data-theme="aero"] .privacy-mark span { color: #e6ffd5; border-color: rgba(255,255,255,.4); background: linear-gradient(145deg, rgba(255,255,255,.22), rgba(73,190,95,.24)); box-shadow: inset 0 1px rgba(255,255,255,.6), 0 8px 20px rgba(0,60,80,.22); }

/* Console and account pages */
html[data-theme="aero"] .auth-shell {
  background:
    radial-gradient(circle at 14% 18%, transparent 0 22px, rgba(255,255,255,.62) 23px 25px, transparent 26px),
    radial-gradient(circle at 87% 13%, rgba(255,255,255,.72), transparent 12%),
    linear-gradient(180deg, rgba(85,189,234,.22), rgba(226,250,255,.68) 66%, rgba(99,188,54,.36));
}
html[data-theme="aero"] .auth-card,
html[data-theme="aero"] .panel,
html[data-theme="aero"] .config-card,
html[data-theme="aero"] .announcement-card,
html[data-theme="aero"] .billing-summary article,
html[data-theme="aero"] .privacy-card,
html[data-theme="aero"] .device-card,
html[data-theme="aero"] .device-item,
html[data-theme="aero"] .appeal-card {
  border-color: rgba(255,255,255,.95) rgba(13,115,147,.2) rgba(13,115,147,.3);
  background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(221,249,252,.8));
  box-shadow: inset 0 1px #fff, 0 12px 30px rgba(5,87,114,.16);
}
html[data-theme="aero"] .panel:hover { border-color: rgba(37,167,196,.48); box-shadow: inset 0 1px #fff, 0 15px 34px rgba(5,87,114,.2); }
html[data-theme="aero"] .sidebar {
  border-color: rgba(12,105,136,.2);
  background: linear-gradient(180deg, rgba(245,255,255,.64), rgba(218,247,244,.56));
  backdrop-filter: blur(15px) saturate(1.25);
}
html[data-theme="aero"] .sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid transparent;
}
html[data-theme="aero"] .sidebar a::before {
  content: "●";
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 9px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255,255,255,.72) 0 43%, rgba(255,255,255,.08) 45% 100%),
    linear-gradient(145deg, #53d5f3, #077ba8);
  box-shadow: inset 0 -2px 4px rgba(0,54,94,.25), 0 3px 6px rgba(0,70,104,.25);
  text-shadow: 0 1px 2px rgba(0,45,75,.58);
  font-size: 15px;
}
html[data-theme="aero"] .sidebar a[href="#runtime"]::before { content: "▶"; background-color: #168fc0; }
html[data-theme="aero"] .sidebar a[href="#billing"]::before { content: "¥"; color: #755600; background: radial-gradient(circle at 35% 28%, #fffbd0 0 8%, #ffe56f 20%, #eeb323 67%, #9f6d00 100%); text-shadow: 0 1px #fff3a8; }
html[data-theme="aero"] .sidebar a[href="#models"]::before { content: "⚙"; color: #39566a; background: radial-gradient(circle at 35% 25%, #fff 0 8%, #dce9ef 28%, #829aa7 68%, #405965 100%); }
html[data-theme="aero"] .sidebar a[href="#persona"]::before { content: "♥"; background: radial-gradient(circle at 35% 25%, #ffdff0, #f778b3 55%, #ae225f); }
html[data-theme="aero"] .sidebar a[href="#wechat"]::before { content: "●●"; color: #fff; letter-spacing: -2px; background: radial-gradient(circle at 35% 25%, #eaffd9, #70d93d 55%, #218b24); }
html[data-theme="aero"] .sidebar a[href="#terminal"]::before { content: ">_"; color: #caffc4; background: linear-gradient(145deg, #38545b, #102c33 65%); font: 800 11px/1 ui-monospace, monospace; }
html[data-theme="aero"] .sidebar a[href="#admin"]::before { content: "◆"; color: #eaffff; background: radial-gradient(circle at 35% 25%, #d8fbff, #46b9da 52%, #12638e); }
html[data-theme="aero"] .sidebar a:hover { color: #075e7b; border-color: rgba(255,255,255,.78); background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(164,225,242,.74)); box-shadow: inset 0 1px #fff, 0 4px 10px rgba(7,95,125,.17); }
html[data-theme="aero"] .sidebar a.active { color: #216d17; border-color: rgba(255,255,255,.9); background: linear-gradient(180deg, #efffe4, #a8e67d 47%, #73c14b 50%, #b6ec91); box-shadow: inset 0 1px #fff, inset 0 -2px rgba(43,125,29,.2), 0 4px 10px rgba(36,108,28,.2); }
html[data-theme="aero"] .status-list div { border-color: rgba(18,117,148,.2); background: rgba(255,255,255,.56); box-shadow: inset 0 1px rgba(255,255,255,.8); }
html[data-theme="aero"] .status-pill,
html[data-theme="aero"] .balance-badge,
html[data-theme="aero"] .platform { color: #22711c; background: linear-gradient(180deg, #efffe5, #c7efab); border: 1px solid rgba(65,147,41,.17); box-shadow: inset 0 1px #fff; }
html[data-theme="aero"] .legal-page { background: transparent; }
html[data-theme="aero"] .terminal-panel pre { border: 1px solid rgba(151,238,126,.45); color: #bdf5c8; background: linear-gradient(145deg, #123a40, #0a2831); box-shadow: inset 0 1px 10px rgba(0,0,0,.36), 0 7px 17px rgba(4,69,84,.18); }
html[data-theme="aero"] .toast { background: linear-gradient(180deg, #168fba, #086f96); border: 1px solid rgba(255,255,255,.56); box-shadow: inset 0 1px rgba(255,255,255,.6), 0 10px 26px rgba(2,74,102,.3); }

@media (max-width: 900px) {
  html[data-theme="aero"] .sidebar { background: rgba(226, 250, 251, .88); }
  .site-header .theme-switch { min-width: 42px; width: 42px; padding-right: 4px; }
  .site-header .theme-switch-copy { display: none; }
}
@media (max-width: 640px) {
  .theme-switch { min-width: 42px; width: 42px; padding-right: 4px; }
  .theme-switch-copy { display: none; }
  .theme-switch-floating { top: 10px; right: 10px; }
  html[data-theme="aero"] .app-header { padding-right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .theme-switch, .theme-switch-orb { transition: none !important; }
}

/* Archive-faithful Frutiger Aero layer
   Natural macro imagery + Vista-era black chrome + luminous green interaction.
   This intentionally sits last so it can refine every public/account surface. */
html[data-theme="aero"] {
  color-scheme: dark;
  --ink: #f0fbff;
  --muted: #c1dce5;
  --line: rgba(139, 221, 242, .28);
  --pink: #62d83f;
  --pink-deep: #4bd6eb;
  --accent: #43cce6;
  --accent-dark: #128eae;
  --blue: #4fd6ef;
  --green: #64d741;
  --panel: rgba(5, 38, 49, .88);
  --bg: #06354a;
  --paper: rgba(5, 35, 47, .9);
  --shadow: 0 18px 42px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .12);
  --aero-chrome: linear-gradient(180deg, rgba(218, 238, 242, .94) 0%, rgba(81, 110, 117, .95) 7%, rgba(18, 43, 50, .97) 47%, rgba(2, 16, 22, .99) 50%, rgba(9, 38, 47, .98) 98%, #001016 100%);
  --aero-glass: rgba(4, 36, 48, .86);
  --aero-edge: rgba(157, 231, 248, .46);
  --aero-green: #6fe34c;
}
html[data-theme="aero"] body {
  color: var(--ink);
  background-color: #06364a;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .18);
}
html[data-theme="aero"] body::before {
  background: #06364a url("/frutiger-aero-bg.webp") center / cover fixed no-repeat;
  filter: saturate(.98) brightness(.8) contrast(1.04);
}
html[data-theme="aero"] body::after {
  background:
    radial-gradient(circle at 12% 10%, rgba(236, 255, 255, .12), transparent 24%),
    radial-gradient(circle at 88% 14%, rgba(87, 223, 247, .1), transparent 18%),
    linear-gradient(90deg, rgba(0, 24, 37, .32), transparent 24% 76%, rgba(0, 22, 35, .34)),
    linear-gradient(180deg, rgba(0, 26, 38, .1), transparent 44%, rgba(0, 25, 39, .32));
}
html[data-theme="aero"] ::selection { color: #07140a; background: rgba(97, 239, 100, .88); }

html[data-theme="aero"] h1,
html[data-theme="aero"] h2,
html[data-theme="aero"] h3,
html[data-theme="aero"] h4,
html[data-theme="aero"] strong { color: #f5fbf5; }
html[data-theme="aero"] p,
html[data-theme="aero"] small,
html[data-theme="aero"] .hint,
html[data-theme="aero"] .field-state,
html[data-theme="aero"] .status,
html[data-theme="aero"] .empty { color: var(--muted); }
html[data-theme="aero"] a:not(.button):not(.nav-login) { color: var(--aero-green); }

html[data-theme="aero"] .top-attribution {
  color: rgba(242, 255, 240, .78);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .92);
}
html[data-theme="aero"] .site-header,
html[data-theme="aero"] .app-header,
html[data-theme="aero"] .page-header,
html[data-theme="aero"] .appeal-header {
  color: #f4f8f4;
  border: 1px solid rgba(211, 222, 210, .58);
  border-bottom-color: rgba(0, 0, 0, .86);
  background: var(--aero-chrome);
  box-shadow: inset 0 1px rgba(255, 255, 255, .7), inset 0 -1px rgba(255, 255, 255, .08), 0 12px 28px rgba(0, 0, 0, .38);
  backdrop-filter: blur(13px) saturate(1.3);
}
html[data-theme="aero"] .site-header { border-radius: 34px 34px 12px 12px; }
html[data-theme="aero"] .brand,
html[data-theme="aero"] .brand span,
html[data-theme="aero"] .brand strong,
html[data-theme="aero"] .account-name,
html[data-theme="aero"] .site-header .nav-link,
html[data-theme="aero"] .site-header .nav-history,
html[data-theme="aero"] .app-header .text-button { color: #f4f8f4; text-shadow: 0 1px 2px #000; }
html[data-theme="aero"] .site-header .nav-link:hover,
html[data-theme="aero"] .site-header .nav-history:hover,
html[data-theme="aero"] .app-header .text-button:hover { color: #7ff47b; }
html[data-theme="aero"] .brand img,
html[data-theme="aero"] .brand-logo,
html[data-theme="aero"] .auth-logo,
html[data-theme="aero"] .appeal-brand img,
html[data-theme="aero"] .history-dialog-title img,
html[data-theme="aero"] .announcement-card-head img {
  border: 1px solid rgba(221, 246, 224, .58);
  background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(196,230,200,.76));
  box-shadow: inset 0 1px #fff, 0 5px 13px rgba(0, 0, 0, .35);
}

html[data-theme="aero"] .theme-switch {
  color: #eaf7ea;
  border-color: rgba(205, 226, 204, .48);
  background: linear-gradient(180deg, rgba(116,121,116,.95), rgba(18,21,18,.98) 52%, rgba(0,0,0,.98) 54%, rgba(33,37,33,.97));
  box-shadow: inset 0 1px rgba(255,255,255,.66), inset 0 -1px rgba(255,255,255,.09), 0 4px 9px rgba(0,0,0,.35);
  text-shadow: 0 1px 2px #000;
}
html[data-theme="aero"] .theme-switch[aria-pressed="true"] { color: #9aff91; border-color: rgba(117, 242, 111, .56); background: linear-gradient(180deg, #6b716b, #171b17 50%, #000 52%, #273127); }

html[data-theme="aero"] .hero-copy { padding: 24px 25px 27px; border: 1px solid rgba(194, 220, 191, .35); border-radius: 3px 22px 22px 3px; background: linear-gradient(90deg, rgba(13,18,13,.9), rgba(18,25,18,.72) 72%, rgba(18,25,18,.16)); box-shadow: 0 18px 38px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.13); backdrop-filter: blur(8px); }
html[data-theme="aero"] .hero-copy h1 { color: #f6fbf5; text-shadow: 0 2px 5px rgba(0,0,0,.82); }
html[data-theme="aero"] .hero-copy h1 em {
  color: #9cf58e;
  background: none;
  -webkit-text-fill-color: #9cf58e;
  text-shadow: 0 2px 3px rgba(0,0,0,.86), 0 0 14px rgba(91,223,83,.16);
}
html[data-theme="aero"] .hero-copy > p,
html[data-theme="aero"] .hero-copy > p strong { color: #e6eee5; }
html[data-theme="aero"] .eyebrow { color: #7cf176; text-shadow: 0 1px 3px #000; }
html[data-theme="aero"] .download-note span { color: #d8e7d7; }
html[data-theme="aero"] .glow-pink { background: rgba(101, 238, 76, .35); }
html[data-theme="aero"] .glow-blue { background: rgba(86, 217, 239, .3); }

html[data-theme="aero"] .companion-card,
html[data-theme="aero"] .message-card,
html[data-theme="aero"] .capability-row,
html[data-theme="aero"] .persona-option,
html[data-theme="aero"] .feature-grid article,
html[data-theme="aero"] .device-capabilities article,
html[data-theme="aero"] .history-group,
html[data-theme="aero"] .history-item,
html[data-theme="aero"] .auth-card,
html[data-theme="aero"] .panel,
html[data-theme="aero"] .config-card,
html[data-theme="aero"] .announcement-card,
html[data-theme="aero"] .billing-summary article,
html[data-theme="aero"] .privacy-card,
html[data-theme="aero"] .device-card,
html[data-theme="aero"] .device-item,
html[data-theme="aero"] .appeal-card {
  color: #e9f1e8;
  border: 1px solid var(--aero-edge);
  border-top-color: rgba(223, 239, 222, .58);
  border-radius: 3px;
  background: linear-gradient(145deg, rgba(8,48,60,.92), rgba(3,25,35,.9));
  box-shadow: inset 0 1px rgba(255,255,255,.1), 0 9px 24px rgba(0,0,0,.32);
  backdrop-filter: blur(10px) saturate(1.15);
}
html[data-theme="aero"] .companion-card,
html[data-theme="aero"] .message-card { border-radius: 16px; }
html[data-theme="aero"] .companion-card span { color: #72e86e; }
html[data-theme="aero"] .companion-card small b,
html[data-theme="aero"] .persona-badge,
html[data-theme="aero"] .status-pill,
html[data-theme="aero"] .balance-badge,
html[data-theme="aero"] .platform {
  color: #b8ffad;
  border-color: rgba(121, 232, 109, .42);
  background: linear-gradient(180deg, rgba(97,187,88,.66), rgba(18,77,27,.72));
  box-shadow: inset 0 1px rgba(255,255,255,.34), 0 2px 5px rgba(0,0,0,.25);
}
html[data-theme="aero"] .capability-row span {
  color: #eaffea;
  border: 1px solid rgba(190,216,189,.35);
  background: var(--aero-chrome);
  box-shadow: inset 0 1px rgba(255,255,255,.35), 0 2px 5px rgba(0,0,0,.28);
  text-shadow: 0 1px 2px #000;
}
html[data-theme="aero"] .persona-showcase,
html[data-theme="aero"] .device-showcase,
html[data-theme="aero"] .cta,
html[data-theme="aero"] .history-dialog {
  color: #edf4ec;
  border: 1px solid rgba(194, 218, 191, .48);
  border-radius: 4px;
  background: linear-gradient(145deg, rgba(8,51,63,.92), rgba(2,24,34,.9));
  box-shadow: inset 0 1px rgba(255,255,255,.13), 0 18px 46px rgba(0,0,0,.36);
  backdrop-filter: blur(12px) saturate(1.16);
}
html[data-theme="aero"] .feature-grid article:hover,
html[data-theme="aero"] .panel:hover { border-color: rgba(103, 234, 102, .68); box-shadow: inset 0 1px rgba(255,255,255,.14), 0 14px 31px rgba(0,0,0,.4), 0 0 16px rgba(64,207,70,.12); }
html[data-theme="aero"] .feature-grid p,
html[data-theme="aero"] .device-capabilities p,
html[data-theme="aero"] .persona-option p,
html[data-theme="aero"] .persona-copy p,
html[data-theme="aero"] .device-heading p { color: #bfd9e2; }

/* Vista-era object icons: raised glass tiles, strong specular edge and real-object glyphs. */
html[data-theme="aero"] .feature-icon {
  width: 58px;
  height: 58px;
  border: 2px solid rgba(222, 246, 226, .72) !important;
  border-radius: 15px !important;
  background: linear-gradient(145deg, #d9fff2, #4ccddb 42%, #1677a2 55%, #073d62) !important;
  box-shadow: inset 0 3px 4px rgba(255,255,255,.95), inset 0 -5px 8px rgba(0,25,55,.42), 0 7px 13px rgba(0,0,0,.42) !important;
  transform: perspective(140px) rotateX(4deg);
}
html[data-theme="aero"] .feature-icon::after { inset: 3px 6px 49% 6px; background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.14)); }
html[data-theme="aero"] .feature-icon::before { font-size: 29px; filter: drop-shadow(0 3px 2px rgba(0,0,0,.58)) saturate(1.2); }

html[data-theme="aero"] .privacy-showcase {
  color: #eef8ee;
  border: 1px solid rgba(159, 227, 158, .54);
  border-radius: 4px;
  background: linear-gradient(145deg, rgba(3,61,70,.95), rgba(2,28,40,.94));
  box-shadow: inset 0 1px rgba(255,255,255,.18), 0 20px 52px rgba(0,0,0,.4);
}
html[data-theme="aero"] .privacy-copy p,
html[data-theme="aero"] .privacy-points p { color: #c2d3c7; }
html[data-theme="aero"] .privacy-mark span { color: #d8ffd5; border-color: rgba(198,241,198,.5); background: radial-gradient(circle at 34% 25%, #b4ffac, #37a843 52%, #0c5429); box-shadow: inset 0 2px rgba(255,255,255,.48), 0 8px 20px rgba(0,0,0,.38); }

html[data-theme="aero"] .button,
html[data-theme="aero"] .nav-login {
  color: #eef5ed;
  border: 1px solid rgba(197, 215, 195, .48);
  background: var(--aero-chrome);
  box-shadow: inset 0 1px rgba(255,255,255,.54), inset 0 -1px rgba(255,255,255,.08), 0 5px 12px rgba(0,0,0,.35);
  text-shadow: 0 1px 2px #000;
}
html[data-theme="aero"] .button.primary,
html[data-theme="aero"] .primary:not(.feature-icon),
html[data-theme="aero"] .nav-login {
  color: #f6fff5;
  border-color: rgba(169, 255, 157, .68);
  background: linear-gradient(180deg, #d9ffd4 0%, #83ec75 7%, #3fbd4b 48%, #14752b 51%, #24963a 86%, #0c4a1f 100%);
  box-shadow: inset 0 1px #fff, inset 0 -2px rgba(0,45,10,.4), 0 6px 14px rgba(0,0,0,.4), 0 0 12px rgba(71,220,79,.16);
  text-shadow: 0 1px 2px rgba(0,45,9,.9);
}
html[data-theme="aero"] .button.primary:hover,
html[data-theme="aero"] .primary:not(.feature-icon):hover,
html[data-theme="aero"] .nav-login:hover {
  background: linear-gradient(180deg, #edffe9 0%, #a0fb91 7%, #58d35f 48%, #218538 51%, #36ad48 86%, #126029 100%);
  box-shadow: inset 0 1px #fff, inset 0 -2px rgba(0,45,10,.36), 0 8px 18px rgba(0,0,0,.46), 0 0 15px rgba(83,239,89,.2);
}
html[data-theme="aero"] .button.secondary,
html[data-theme="aero"] .button.ghost { color: #edf4ec; background: var(--aero-chrome); }

html[data-theme="aero"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-theme="aero"] textarea,
html[data-theme="aero"] select {
  color: #eff7ef;
  border-color: rgba(170, 200, 168, .42);
  background: rgba(8, 13, 9, .84);
  box-shadow: inset 0 2px 5px rgba(0,0,0,.58), 0 1px rgba(255,255,255,.12);
}
html[data-theme="aero"] label,
html[data-theme="aero"] .auth-card label,
html[data-theme="aero"] .config-card label { color: #dce8dc; }
html[data-theme="aero"] input::placeholder,
html[data-theme="aero"] textarea::placeholder { color: #879889; }
html[data-theme="aero"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
html[data-theme="aero"] textarea:focus,
html[data-theme="aero"] select:focus { border-color: #6ee56c; box-shadow: 0 0 0 3px rgba(82,218,86,.17), inset 0 2px 4px rgba(0,0,0,.45); }

html[data-theme="aero"] input[type="checkbox"],
html[data-theme="aero"] input[type="radio"] { accent-color: #52d65a; }
html[data-theme="aero"] input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(to right, #61dc67 0 var(--range-progress), rgba(176, 203, 176, .36) var(--range-progress) 100%);
}
html[data-theme="aero"] input[type="range"]::-moz-range-track { background: rgba(176, 203, 176, .36); }
html[data-theme="aero"] input[type="range"]::-moz-range-progress,
html[data-theme="aero"] input[type="range"]::-moz-range-thumb { background: #61dc67; }

html[data-theme="aero"] .auth-shell { background: rgba(5, 15, 8, .18); }
html[data-theme="aero"] .sidebar {
  border: 1px solid rgba(192, 214, 190, .43);
  border-top: 0;
  background: linear-gradient(90deg, rgba(11,14,11,.96), rgba(34,39,34,.9) 58%, rgba(8,10,8,.95));
  box-shadow: inset 1px 0 rgba(255,255,255,.12), 8px 0 22px rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
}
html[data-theme="aero"] .sidebar a { color: #e0e8df; text-shadow: 0 1px 2px #000; }
html[data-theme="aero"] .sidebar a::before { border-color: rgba(227,244,228,.62); border-radius: 6px; box-shadow: inset 0 2px 2px rgba(255,255,255,.67), inset 0 -3px 5px rgba(0,0,0,.38), 0 3px 7px rgba(0,0,0,.5); filter: saturate(1.18); }
html[data-theme="aero"] .sidebar a:hover { color: #eeffee; border-color: rgba(179,222,177,.38); background: linear-gradient(180deg, rgba(85,91,85,.9), rgba(17,20,17,.96) 51%, rgba(0,0,0,.96) 53%, rgba(31,37,31,.96)); box-shadow: inset 0 1px rgba(255,255,255,.35), 0 4px 10px rgba(0,0,0,.34); }
html[data-theme="aero"] .sidebar a.active { color: #f4fff2; border-color: rgba(164,255,151,.56); background: linear-gradient(180deg, #b5f4a5 0%, #51c451 7%, #258d37 49%, #0b5a24 51%, #2b973b 100%); box-shadow: inset 0 1px #eaffdf, inset 0 -2px rgba(0,43,12,.32), 0 4px 10px rgba(0,0,0,.42); }

html[data-theme="aero"] .status-list div,
html[data-theme="aero"] .billing-summary > div,
html[data-theme="aero"] .wechat-security,
html[data-theme="aero"] .announcement-editor,
html[data-theme="aero"] .table-wrap {
  border-color: rgba(174, 199, 172, .28);
  background: rgba(7, 11, 7, .45);
  box-shadow: inset 0 1px rgba(255,255,255,.06);
}
html[data-theme="aero"] table { color: #e0e9df; }
html[data-theme="aero"] th { color: #b8c8b7; background: linear-gradient(180deg, rgba(83,87,83,.88), rgba(18,20,18,.95) 48%, rgba(0,0,0,.96) 51%, rgba(27,31,27,.95)); text-shadow: 0 1px 2px #000; }
html[data-theme="aero"] td { border-color: rgba(169,192,166,.17); }
html[data-theme="aero"] tr:hover td { background: rgba(71, 176, 72, .08); }
html[data-theme="aero"] .announcement-backdrop,
html[data-theme="aero"] .history-backdrop { background: rgba(1, 7, 3, .66); backdrop-filter: blur(8px); }
html[data-theme="aero"] .announcement-card::before,
html[data-theme="aero"] .history-dialog::before { background: var(--aero-chrome); }
html[data-theme="aero"] .terminal-panel pre { color: #aaff9f; border-color: rgba(104, 230, 98, .38); background: linear-gradient(145deg, #071109, #0d1c11); }
html[data-theme="aero"] .toast { color: #f2fff0; border-color: rgba(157,238,147,.52); background: linear-gradient(180deg, #50bc50, #176b2a 48%, #0a461e 51%, #1b7430); }

@media (max-width: 900px) {
  html[data-theme="aero"] .sidebar { background: rgba(10, 15, 10, .95); }
  html[data-theme="aero"] .hero-copy { background: rgba(12, 18, 12, .84); border-radius: 16px; }
}

/* 2000s portal layout, closely following the 970px / 154px / 816px archive structure. */
html[data-theme="aero"] .copy-default { display: none !important; }
html[data-theme="aero"] .copy-aero { display: contents !important; }

html[data-theme="aero"] .site-header {
  position: static;
  width: min(970px, calc(100% - 24px));
  height: 92px;
  margin-top: 14px;
  padding: 10px 18px 10px 30px;
  border-radius: 46px 46px 0 0;
}
html[data-theme="aero"] .site-header .brand { gap: 15px; }
html[data-theme="aero"] .site-header .brand img { width: 62px; height: 62px; border-radius: 16px; }
html[data-theme="aero"] .site-header .brand span {
  display: grid;
  gap: 2px;
  font-size: 0;
  line-height: 1.15;
}
html[data-theme="aero"] .site-header .brand span::before {
  content: "The Yuluo Companion Archive";
  color: #f5f7f5;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -.02em;
  text-shadow: 0 1px 3px #000;
}
html[data-theme="aero"] .site-header .brand span::after {
  content: "Enjoy chatting, memories, pictures, devices, and much more!";
  color: #d9ded9;
  font-size: 12px;
  font-weight: 450;
  letter-spacing: 0;
}
html[data-theme="aero"] .site-header nav { gap: 0; }
html[data-theme="aero"] .site-header nav > :not(.theme-switch) { display: none; }

html[data-theme="aero"] .site-header + main {
  width: min(970px, calc(100% - 24px));
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: 154px minmax(0, 816px);
  align-items: stretch;
  background: rgba(3, 35, 47, .72);
  box-shadow: 0 18px 38px rgba(0,0,0,.42);
}
html[data-theme="aero"] .site-header + main > section { grid-column: 2; min-width: 0; }

html[data-theme="aero"] .aero-side-directory {
  grid-column: 1;
  grid-row: 1 / span 6;
  display: block;
  min-width: 0;
  padding: 12px 8px 18px;
  border-right: 1px solid rgba(152,218,235,.38);
  background: linear-gradient(90deg, rgba(1,17,24,.98), rgba(12,50,60,.94) 62%, rgba(1,18,25,.98));
}
html[data-theme="aero"] .aero-directory-group {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
}
html[data-theme="aero"] .aero-directory-group h2 {
  margin: 0 0 4px;
  padding: 3px 5px;
  color: #f1f4f1;
  border: 1px solid rgba(190,203,188,.48);
  background: var(--aero-chrome);
  box-shadow: inset 0 1px rgba(255,255,255,.5), 0 2px 5px rgba(0,0,0,.45);
  text-align: center;
  text-shadow: 0 1px 2px #000;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}
html[data-theme="aero"] .aero-directory-group a,
html[data-theme="aero"] .aero-directory-group > button:not(.theme-switch) {
  width: 100%;
  min-height: 27px;
  margin: 0 0 2px;
  padding: 2px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e7ebe7;
  border: 1px solid rgba(151,164,150,.42);
  border-radius: 4px;
  background: linear-gradient(180deg, #676c67 0%, #363a36 8%, #181b18 48%, #050605 51%, #202420 100%);
  box-shadow: inset 0 1px rgba(255,255,255,.32), 0 2px 4px rgba(0,0,0,.4);
  text-align: left;
  text-shadow: 0 1px 2px #000;
  font: inherit;
  cursor: pointer;
}
html[data-theme="aero"] .aero-side-directory .aero-directory-group a { color: #e7ebe7; }
html[data-theme="aero"] .aero-directory-group a:hover,
html[data-theme="aero"] .aero-directory-group > button:not(.theme-switch):hover,
html[data-theme="aero"] .aero-directory-group a.active {
  color: #f5fff3;
  border-color: rgba(156,241,139,.7);
  background: linear-gradient(180deg, #b6f6a7 0%, #5ac85a 9%, #27923a 49%, #0c5b25 52%, #319c40 100%);
}
html[data-theme="aero"] .aero-directory-group a > span,
html[data-theme="aero"] .aero-directory-group > button > span:first-child {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(225,244,226,.54);
  border-radius: 4px;
  background: linear-gradient(145deg,#f2ffff,#55bfd7 48%,#17688e);
  box-shadow: inset 0 1px rgba(255,255,255,.85), 0 1px 3px rgba(0,0,0,.56);
  font-size: 12px;
}
html[data-theme="aero"] .aero-directory-theme {
  width: 100%;
  min-width: 0;
  margin-top: 5px;
  border-radius: 5px;
}

html[data-theme="aero"] .hero {
  min-height: 0;
  padding: 12px 10px 10px 8px;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  grid-template-areas: "title" "visual" "copy";
  gap: 10px;
  align-items: stretch;
}
html[data-theme="aero"] .hero::before {
  content: "Introduction Page";
  grid-area: title;
  padding: 5px 10px;
  color: #e5e8e5;
  border: 1px solid rgba(168,178,167,.38);
  background: var(--aero-chrome);
  box-shadow: 0 3px 8px rgba(0,0,0,.42);
  text-align: center;
  text-shadow: 0 1px 2px #000;
  font-size: 14px;
  line-height: 1;
}
html[data-theme="aero"] .hero-visual {
  grid-area: visual;
  min-height: 238px;
  overflow: hidden;
  border: 2px solid rgba(166,228,242,.58);
  border-radius: 3px;
  background: url("/frutiger-aero-bg.webp") center 56% / cover no-repeat;
  animation: none;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.32), 0 4px 9px rgba(0,0,0,.42);
}
html[data-theme="aero"] .hero-visual::before {
  content: "The Yuluo Companion";
  position: absolute;
  z-index: 4;
  left: 28px;
  top: 36px;
  color: #eef8eb;
  text-shadow: 0 2px 3px rgba(0,0,0,.86), 0 0 15px rgba(107,231,98,.25);
  max-width: 440px;
  font-size: clamp(27px,3.4vw,40px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.04em;
}
html[data-theme="aero"] .hero-visual::after {
  content: "Chat, memories, digital photos, devices, and more!";
  position: absolute;
  z-index: 4;
  left: 31px;
  top: 91px;
  color: #d9fbd3;
  text-shadow: 0 1px 2px #000;
  font-size: 13px;
  font-style: italic;
}
html[data-theme="aero"] .hero-visual .glow { display: none; }
html[data-theme="aero"] .hero-visual .companion-card {
  top: 32px;
  right: 28px;
  left: auto;
  width: 285px;
  padding: 14px;
  border-radius: 10px;
  transform: rotate(-1deg);
}
html[data-theme="aero"] .hero-visual .logo-wrap { width: 58px; height: 58px; border-radius: 11px; }
html[data-theme="aero"] .hero-visual .message-card { padding: 8px 11px; border-radius: 7px; font-size: 11px; }
html[data-theme="aero"] .hero-visual .message-one { top: 130px; right: 26px; }
html[data-theme="aero"] .hero-visual .message-two { top: 169px; right: 74px; left: auto; }
html[data-theme="aero"] .hero-visual .capability-row {
  left: 22px;
  bottom: 13px;
  width: 360px;
  padding: 6px;
  border-radius: 4px;
}
html[data-theme="aero"] .hero-visual .capability-row span { padding: 5px 3px; border-radius: 3px; }
html[data-theme="aero"] .hero-copy {
  grid-area: copy;
  padding: 18px 18px 20px;
  border-radius: 3px;
  background: rgba(4,37,49,.9);
  animation: none;
}
html[data-theme="aero"] .hero-copy h1 {
  margin: 7px 0 12px;
  font-size: 31px;
  line-height: 1.15;
  letter-spacing: -.025em;
}
html[data-theme="aero"] .hero-copy > p { max-width: none; font-size: 14px; line-height: 1.65; }
html[data-theme="aero"] .hero-actions { margin-top: 18px; }
html[data-theme="aero"] .hero .download-note { display: none; }
html[data-theme="aero"] .android-download .copy-aero {
  padding: 0;
  color: inherit;
  background: none;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

html[data-theme="aero"] .persona-showcase,
html[data-theme="aero"] .features,
html[data-theme="aero"] .developer-api,
html[data-theme="aero"] .device-showcase,
html[data-theme="aero"] .privacy-showcase,
html[data-theme="aero"] .cta {
  position: relative;
  margin: 0 10px 9px 8px;
  padding: 48px 18px 18px;
  display: block;
  border-radius: 3px;
  overflow: hidden;
}
html[data-theme="aero"] .persona-showcase::before,
html[data-theme="aero"] .features::before,
html[data-theme="aero"] .developer-api::before,
html[data-theme="aero"] .device-showcase::before,
html[data-theme="aero"] .privacy-showcase::before,
html[data-theme="aero"] .cta::before {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 8px;
  left: 8px;
  padding: 5px 10px;
  color: #e8ebe8;
  border: 1px solid rgba(168,178,167,.38);
  background: var(--aero-chrome);
  box-shadow: 0 3px 8px rgba(0,0,0,.4);
  text-align: center;
  text-shadow: 0 1px 2px #000;
  font-size: 14px;
  font-weight: 450;
  line-height: 1;
}
html[data-theme="aero"] .persona-showcase::before { content: "Companion Profiles"; }
html[data-theme="aero"] .features::before { content: "Online Services Directory"; }
html[data-theme="aero"] .developer-api::before { content: "Web Developer Toolkit"; }
html[data-theme="aero"] .device-showcase::before { content: "Device Center"; }
html[data-theme="aero"] .privacy-showcase::before { content: "Privacy & Security"; }
html[data-theme="aero"] .cta::before { content: "Website Information"; }
html[data-theme="aero"] .persona-showcase::after { opacity: .08; }
html[data-theme="aero"] .persona-copy h2,
html[data-theme="aero"] .device-heading h2,
html[data-theme="aero"] .privacy-copy h2,
html[data-theme="aero"] .section-heading h2,
html[data-theme="aero"] .cta h2 { margin: 8px 0 9px; font-size: 25px; line-height: 1.2; letter-spacing: -.02em; }
html[data-theme="aero"] .persona-options { margin-top: 16px; grid-template-columns: 1fr 1fr; }
html[data-theme="aero"] .persona-option { min-height: 126px; padding: 16px; border-radius: 3px; }
html[data-theme="aero"] .persona-option:hover { transform: translateX(3px); }

html[data-theme="aero"] .section-heading { max-width: none; margin: 0 0 18px; text-align: left; }
html[data-theme="aero"] .feature-grid { grid-template-columns: 1fr; gap: 5px; }
html[data-theme="aero"] .feature-grid article {
  min-height: 0;
  padding: 13px 15px;
  display: grid;
  grid-template-columns: 58px minmax(0,1fr);
  gap: 14px;
  align-items: center;
  border-radius: 3px;
}
html[data-theme="aero"] .feature-grid article:hover { transform: translateX(3px); }
html[data-theme="aero"] .feature-grid h3 { margin: 0 0 4px; font-size: 15px; }
html[data-theme="aero"] .feature-grid p { font-size: 12px; }

html[data-theme="aero"] .developer-api-heading { margin-bottom: 14px; }
html[data-theme="aero"] .api-security-note { padding: 13px 15px; border-color: rgba(81,137,41,.5); border-radius: 3px; background: linear-gradient(180deg, rgba(235,255,217,.94), rgba(185,226,145,.9)); box-shadow: inset 0 1px #fff, 0 3px 8px rgba(0,0,0,.16); }
html[data-theme="aero"] .api-security-note strong { color: #285c19; text-shadow: 0 1px rgba(255,255,255,.8); }
html[data-theme="aero"] .api-security-note p { color: #35502f; }
html[data-theme="aero"] .api-doc-grid { gap: 5px; }
html[data-theme="aero"] .api-doc-grid details { border-color: rgba(87,117,127,.5); border-radius: 3px; background: rgba(231,246,248,.94); box-shadow: inset 0 1px rgba(255,255,255,.95), 0 2px 6px rgba(0,0,0,.18); }
html[data-theme="aero"] .api-doc-grid summary { padding: 10px 13px; color: #153844; background: linear-gradient(180deg, #f6ffff, #b8dfe7); text-shadow: 0 1px #fff; }
html[data-theme="aero"] .api-doc-grid summary > span { border-radius: 3px; color: #fff; background: linear-gradient(180deg, #67b955, #2f7c29); box-shadow: inset 0 1px rgba(255,255,255,.7), 0 1px 2px rgba(0,0,0,.28); text-shadow: 0 1px #174713; }
html[data-theme="aero"] .api-doc-body { padding: 12px 14px 15px; border-top: 1px solid rgba(76,122,135,.35); }
html[data-theme="aero"] .api-doc-body p,
html[data-theme="aero"] .api-doc-body li { color: #294b55; }
html[data-theme="aero"] .api-doc-body pre { border: 1px solid #1b3c47; border-radius: 2px; color: #eaffef; background: #102c35; box-shadow: inset 0 0 14px rgba(0,0,0,.42); }

html[data-theme="aero"] .device-capabilities { margin-top: 18px; }
html[data-theme="aero"] .device-capabilities article { min-height: 116px; padding: 15px; border-radius: 3px; }
html[data-theme="aero"] .privacy-mark { display: none; }
html[data-theme="aero"] .privacy-copy > p { max-width: none; }
html[data-theme="aero"] .privacy-points { margin-top: 20px; }
html[data-theme="aero"] .cta-actions { margin-top: 18px; }

html[data-theme="aero"] footer {
  width: min(970px, calc(100% - 24px));
  margin: -30px auto 30px;
  padding: 15px 18px;
  color: #cbd6ca;
  border-top: 1px solid rgba(188,206,185,.35);
  background: rgba(9,12,9,.86);
}

/* Logged-in console adopts the same archive proportions and chrome title bands. */
html[data-theme="aero"] .app-shell .app-header {
  position: static;
  width: min(970px, calc(100% - 24px));
  height: 82px;
  margin: 14px auto 0;
  padding: 10px 18px 10px 22px;
  border: 1px solid rgba(211,222,210,.58);
  border-radius: 42px 42px 0 0;
}
html[data-theme="aero"] .app-shell .brand strong::after {
  content: " · Online Control Panel";
  color: #b9c4b9;
  font-weight: 450;
}
html[data-theme="aero"] .app-shell .header-actions { gap: 8px; }
html[data-theme="aero"] .app-shell .workspace {
  width: min(970px, calc(100% - 24px));
  max-width: 970px;
  grid-template-columns: 154px minmax(0, 816px);
  background: rgba(3,35,47,.74);
  box-shadow: 0 18px 38px rgba(0,0,0,.42);
}
html[data-theme="aero"] .app-shell .sidebar {
  position: static;
  height: auto;
  min-height: calc(100vh - 110px);
  padding: 12px 8px 18px;
}
html[data-theme="aero"] .app-shell .sidebar a { margin-bottom: 3px; padding: 4px 6px; border-radius: 4px; font-size: 12px; }
html[data-theme="aero"] .app-shell .sidebar a::before { width: 22px; height: 22px; flex-basis: 22px; border-radius: 4px; font-size: 12px; }
html[data-theme="aero"] .app-shell .workspace > main { padding: 12px 10px 10px 8px; }
html[data-theme="aero"] .app-shell .panel { margin-bottom: 8px; padding: 12px; border-radius: 3px; }
html[data-theme="aero"] .app-shell .panel-heading {
  margin: -4px -4px 13px;
  padding: 5px 8px;
  border: 1px solid rgba(168,178,167,.38);
  background: var(--aero-chrome);
  box-shadow: 0 3px 8px rgba(0,0,0,.4);
}
html[data-theme="aero"] .app-shell .panel-heading h2,
html[data-theme="aero"] .app-shell .runtime-panel h2 { font-size: 15px; text-shadow: 0 1px 2px #000; }
html[data-theme="aero"] .app-shell .section-label { color: #84ed7d; }

@media (max-width: 900px) {
  html[data-theme="aero"] .site-header { height: 78px; padding: 8px 13px 8px 18px; border-radius: 32px 32px 0 0; }
  html[data-theme="aero"] .site-header .brand img { width: 50px; height: 50px; }
  html[data-theme="aero"] .site-header .brand span::before { font-size: 18px; }
  html[data-theme="aero"] .site-header .brand span::after { font-size: 9px; }
  html[data-theme="aero"] .site-header + main { grid-template-columns: 1fr; }
  html[data-theme="aero"] .site-header + main > section { grid-column: 1; }
  html[data-theme="aero"] .aero-side-directory {
    grid-column: 1;
    grid-row: auto;
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 7px;
    border-right: 0;
    border-bottom: 1px solid rgba(185,205,182,.34);
  }
  html[data-theme="aero"] .hero-visual::before { font-size: 29px; }
  html[data-theme="aero"] .hero-visual .companion-card { width: 255px; }
  html[data-theme="aero"] .app-shell .app-header { width: calc(100% - 16px); height: 70px; margin-top: 8px; border-radius: 28px 28px 0 0; }
  html[data-theme="aero"] .app-shell .workspace { width: calc(100% - 16px); grid-template-columns: 1fr; }
  html[data-theme="aero"] .app-shell .sidebar { position: sticky; top: 0; min-height: 0; padding: 7px; display: flex; background: rgba(9,13,9,.96); }
  html[data-theme="aero"] .app-shell .workspace > main { padding: 8px; }
}

@media (max-width: 640px) {
  html[data-theme="aero"] .site-header .brand span::before { content: "Yuluo Archive"; font-size: 16px; }
  html[data-theme="aero"] .site-header .brand span::after { content: "Your 2000s companion portal"; }
  html[data-theme="aero"] .aero-side-directory { grid-template-columns: 1fr; }
  html[data-theme="aero"] .hero-visual { min-height: 305px; }
  html[data-theme="aero"] .hero-visual::before { top: 22px; left: 18px; font-size: 24px; }
  html[data-theme="aero"] .hero-visual::after { top: 55px; left: 20px; font-size: 10px; }
  html[data-theme="aero"] .hero-visual .companion-card { top: 86px; right: 13px; width: calc(100% - 26px); }
  html[data-theme="aero"] .hero-visual .message-one { top: 178px; right: 13px; }
  html[data-theme="aero"] .hero-visual .message-two { top: 216px; right: 35px; }
  html[data-theme="aero"] .hero-visual .capability-row { left: 13px; width: calc(100% - 26px); }
  html[data-theme="aero"] .persona-options,
  html[data-theme="aero"] .device-capabilities,
  html[data-theme="aero"] .privacy-points { grid-template-columns: 1fr; }
  html[data-theme="aero"] .persona-showcase,
  html[data-theme="aero"] .features,
  html[data-theme="aero"] .developer-api,
  html[data-theme="aero"] .device-showcase,
  html[data-theme="aero"] .privacy-showcase,
  html[data-theme="aero"] .cta { padding-right: 12px; padding-left: 12px; }
  html[data-theme="aero"] .app-shell .header-actions .account-name,
  html[data-theme="aero"] .app-shell .header-actions .balance-badge { display: none; }
}

/* Theme opt-in confirmation is built safely by theme.js on every public page. */
body.theme-confirm-open { overflow: hidden; }
.theme-confirm-backdrop[hidden] { display: none !important; }
.theme-confirm-backdrop {
  position: fixed;
  z-index: 1000;
  inset: 0;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(2, 23, 33, .62);
  backdrop-filter: blur(9px) saturate(1.15);
  animation: theme-confirm-in .2s ease both;
}
.theme-confirm-dialog {
  position: relative;
  width: min(470px, 100%);
  overflow: hidden;
  padding: 96px 27px 25px;
  color: #153848;
  border: 1px solid rgba(255,255,255,.94);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(250,255,255,.98), rgba(216,248,252,.96));
  box-shadow: inset 0 1px #fff, 0 28px 70px rgba(0,32,48,.38);
}
.theme-confirm-dialog::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 76px;
  border-bottom: 1px solid rgba(13,128,161,.28);
  background:
    linear-gradient(90deg, rgba(0,77,111,.18), transparent 40%, rgba(54,190,60,.13)),
    url("/frutiger-aero-bg.webp") center 32% / cover no-repeat;
  box-shadow: inset 0 -18px 24px rgba(0,75,102,.13);
}
.theme-confirm-badge {
  position: absolute;
  z-index: 1;
  top: 52px;
  left: 27px;
  padding: 5px 10px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 999px;
  background: linear-gradient(180deg,#80ed63,#218c39);
  box-shadow: inset 0 1px rgba(255,255,255,.8), 0 3px 8px rgba(0,70,60,.25);
  text-shadow: 0 1px 2px rgba(0,65,28,.72);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
}
.theme-confirm-dialog h2 { margin: 0 0 11px; color: #123949; font-size: 22px; line-height: 1.3; }
.theme-confirm-dialog p { margin: 0; color: #426777; font-size: 14px; line-height: 1.7; }
.theme-confirm-dialog .theme-confirm-aside { margin-top: 9px; color: #31823c; font-size: 12px; }
.theme-confirm-actions { margin-top: 21px; display: flex; justify-content: flex-end; gap: 10px; }
.theme-confirm-actions button {
  min-width: 98px;
  padding: 10px 16px;
  border-radius: 999px;
  font: 750 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  cursor: pointer;
}
.theme-confirm-cancel { color: #315464; border: 1px solid rgba(36,114,140,.24); background: rgba(255,255,255,.86); }
.theme-confirm-accept { color: #fff; border: 1px solid #268f3d; background: linear-gradient(180deg,#88ed6f,#28a343 52%,#147b33); box-shadow: inset 0 1px rgba(255,255,255,.65), 0 5px 12px rgba(20,122,53,.23); text-shadow: 0 1px 2px rgba(0,72,27,.74); }
.theme-confirm-actions button:focus-visible { outline: 3px solid rgba(43,181,218,.3); outline-offset: 2px; }
@keyframes theme-confirm-in { from { opacity: 0; } }

@media (max-width: 520px) {
  .theme-confirm-dialog { padding: 90px 20px 20px; border-radius: 18px; }
  .theme-confirm-actions { align-items: stretch; flex-direction: column-reverse; }
  .theme-confirm-actions button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .theme-confirm-backdrop { animation: none; }
}
