﻿:root {
  color-scheme: dark;
  --bg: #070a12;
  --surface: rgba(16, 23, 35, 0.78);
  --surface-strong: rgba(10, 16, 28, 0.94);
  --surface-soft: rgba(255, 255, 255, 0.07);
  --line: rgba(212, 224, 255, 0.14);
  --line-strong: rgba(212, 224, 255, 0.28);
  --text: #f7fbff;
  --muted: #a9b7ca;
  --blue: #69a9ff;
  --cyan: #42e8dd;
  --green: #7ce7a8;
  --amber: #ffd166;
  --red: #ff7b9a;
  --violet: #b49cff;
  --wood: #d7ac78;
  --action: #42e8dd;
  --action-strong: #7ce7a8;
  --neutral: #94a3b8;
  --radius: 16px;
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.42);
  --control-bg: rgba(255, 255, 255, 0.055);
  --field-bg: rgba(255, 255, 255, 0.08);
  --canvas-bg: rgba(2, 6, 23, 0.58);
  --action-text: #efffff;
  --chip-blue-bg: rgba(105, 169, 255, 0.08);
  --chip-blue-text: #d9e8ff;
  --danger-bg: rgba(255, 123, 154, 0.09);
  --danger-text: #ffdce5;
  --warning-bg: rgba(255, 209, 102, 0.11);
  --warning-text: #ffe9a6;
  --page-bg:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(66, 232, 221, 0.16), transparent 32rem),
    radial-gradient(circle at 86% 8%, rgba(255, 209, 102, 0.11), transparent 24rem),
    linear-gradient(135deg, #050712 0%, #0a1020 46%, #101624 100%);
  --sidebar-bg: linear-gradient(180deg, rgba(6, 10, 18, 0.9), rgba(11, 17, 28, 0.74));
  --panel-glaze: linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 42%);
  --hud-glaze: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent);
  --hero-bg:
    linear-gradient(90deg, rgba(66, 232, 221, 0.12), transparent 46%),
    linear-gradient(135deg, rgba(14, 24, 38, 0.96), rgba(28, 35, 49, 0.74));
  --brand-gradient: linear-gradient(135deg, rgba(66, 232, 221, 0.95), rgba(105, 169, 255, 0.95));
  --brand-text: #03121a;
  --surface-hover: rgba(255, 255, 255, 0.1);
  --panel-accent: linear-gradient(90deg, color-mix(in srgb, var(--cyan) 70%, transparent), transparent);
  --field-border: color-mix(in srgb, var(--line-strong) 72%, transparent);
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--cyan) 24%, transparent);
  --sidebar-width: 15.5rem;
  --control-height: 2.8rem;
}

body[data-theme="daydesk"] {
  color-scheme: light;
  --bg: #f7fbff;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --surface-soft: rgba(20, 33, 44, 0.055);
  --line: rgba(46, 67, 84, 0.14);
  --line-strong: rgba(46, 67, 84, 0.28);
  --text: #14212c;
  --muted: #607184;
  --blue: #244f86;
  --cyan: #005f55;
  --green: #16734d;
  --amber: #e7a723;
  --red: #e25563;
  --violet: #7867d8;
  --wood: #b9824f;
  --action: #007064;
  --action-strong: #ff6b6b;
  --neutral: #718195;
  --shadow: 0 22px 62px rgba(48, 68, 88, 0.14);
  --control-bg: rgba(20, 33, 44, 0.04);
  --field-bg: rgba(255, 255, 255, 0.86);
  --canvas-bg: rgba(255, 255, 255, 0.82);
  --action-text: #063934;
  --chip-blue-bg: rgba(47, 128, 237, 0.1);
  --chip-blue-text: #164a84;
  --danger-bg: rgba(226, 85, 99, 0.1);
  --danger-text: #a93644;
  --warning-bg: rgba(197, 135, 14, 0.12);
  --warning-text: #7a560d;
  --page-bg:
    linear-gradient(rgba(20, 33, 44, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 33, 44, 0.028) 1px, transparent 1px),
    radial-gradient(circle at 84% 10%, rgba(255, 107, 107, 0.14), transparent 30rem),
    radial-gradient(circle at 8% 20%, rgba(0, 169, 154, 0.14), transparent 28rem),
    linear-gradient(135deg, #f8fcff 0%, #eef5f8 52%, #e7f0f4 100%);
  --sidebar-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(244, 249, 252, 0.72));
  --panel-glaze: linear-gradient(180deg, rgba(255, 255, 255, 0.78), transparent 52%);
  --hud-glaze: linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent);
  --hero-bg:
    linear-gradient(90deg, rgba(0, 169, 154, 0.14), transparent 48%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(238, 246, 248, 0.78));
  --brand-gradient: linear-gradient(135deg, #007064, #d4505c);
  --brand-text: #ffffff;
}

body[data-theme="atelier"] {
  --bg: #16101f;
  --surface: rgba(35, 25, 49, 0.78);
  --surface-strong: rgba(26, 18, 38, 0.94);
  --surface-soft: rgba(255, 248, 241, 0.07);
  --line: rgba(236, 226, 255, 0.15);
  --line-strong: rgba(236, 226, 255, 0.3);
  --text: #fff8f1;
  --muted: #cdbfd8;
  --blue: #8bb7ff;
  --cyan: #45d699;
  --green: #7ee0ad;
  --amber: #f4c96b;
  --red: #ff7f92;
  --violet: #be8aff;
  --wood: #d3a06f;
  --action: #be8aff;
  --action-strong: #45d699;
  --shadow: 0 26px 84px rgba(0, 0, 0, 0.36);
  --control-bg: rgba(255, 248, 241, 0.055);
  --field-bg: rgba(255, 248, 241, 0.08);
  --canvas-bg: rgba(20, 13, 30, 0.66);
  --action-text: #fff8f1;
  --chip-blue-bg: rgba(139, 183, 255, 0.11);
  --chip-blue-text: #d7e5ff;
  --danger-bg: rgba(255, 127, 146, 0.11);
  --danger-text: #ffdce3;
  --warning-bg: rgba(244, 201, 107, 0.12);
  --warning-text: #ffe8a8;
  --page-bg:
    linear-gradient(rgba(255, 248, 241, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 248, 241, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 16% 82%, rgba(190, 138, 255, 0.18), transparent 30rem),
    radial-gradient(circle at 92% 8%, rgba(69, 214, 153, 0.13), transparent 26rem),
    linear-gradient(135deg, #16101f 0%, #21172f 48%, #10251f 100%);
  --sidebar-bg: linear-gradient(180deg, rgba(25, 17, 36, 0.9), rgba(22, 17, 33, 0.76));
  --panel-glaze: linear-gradient(180deg, rgba(255, 248, 241, 0.06), transparent 44%);
  --hud-glaze: linear-gradient(180deg, rgba(255, 248, 241, 0.06), transparent);
  --hero-bg:
    linear-gradient(90deg, rgba(190, 138, 255, 0.15), transparent 48%),
    linear-gradient(135deg, rgba(31, 22, 45, 0.96), rgba(20, 39, 34, 0.78));
  --brand-gradient: linear-gradient(135deg, #be8aff, #45d699);
  --brand-text: #180d24;
}

body[data-theme="focus"] {
  color-scheme: dark;
  --bg: #101214;
  --surface: rgba(27, 31, 34, 0.82);
  --surface-strong: rgba(18, 21, 23, 0.94);
  --surface-soft: rgba(236, 239, 235, 0.055);
  --line: rgba(220, 227, 220, 0.13);
  --line-strong: rgba(220, 227, 220, 0.24);
  --text: #eef3ef;
  --muted: #aeb8b0;
  --blue: #8fa8c7;
  --cyan: #9bc6b1;
  --green: #a7c889;
  --amber: #d7bc73;
  --red: #d58b87;
  --violet: #aaa1c8;
  --wood: #c5a477;
  --action: #9bc6b1;
  --action-strong: #d7bc73;
  --neutral: #9aa49e;
  --shadow: 0 20px 64px rgba(0, 0, 0, 0.32);
  --control-bg: rgba(238, 243, 239, 0.05);
  --field-bg: rgba(238, 243, 239, 0.075);
  --canvas-bg: rgba(14, 17, 17, 0.62);
  --action-text: #f4fbf6;
  --chip-blue-bg: rgba(143, 168, 199, 0.12);
  --chip-blue-text: #dbe7f3;
  --danger-bg: rgba(213, 139, 135, 0.1);
  --danger-text: #f3d4d1;
  --warning-bg: rgba(215, 188, 115, 0.12);
  --warning-text: #efe2b1;
  --page-bg:
    linear-gradient(rgba(238, 243, 239, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 243, 239, 0.018) 1px, transparent 1px),
    radial-gradient(circle at 14% 10%, rgba(155, 198, 177, 0.1), transparent 26rem),
    radial-gradient(circle at 86% 22%, rgba(215, 188, 115, 0.08), transparent 25rem),
    linear-gradient(135deg, #0f1213 0%, #171b1b 52%, #1d211d 100%);
  --sidebar-bg: linear-gradient(180deg, rgba(17, 20, 21, 0.92), rgba(22, 26, 27, 0.78));
  --panel-glaze: linear-gradient(180deg, rgba(238, 243, 239, 0.035), transparent 44%);
  --hud-glaze: linear-gradient(180deg, rgba(238, 243, 239, 0.04), transparent);
  --hero-bg:
    linear-gradient(90deg, rgba(155, 198, 177, 0.1), transparent 50%),
    linear-gradient(135deg, rgba(25, 30, 30, 0.96), rgba(31, 36, 32, 0.78));
  --brand-gradient: linear-gradient(135deg, #9bc6b1, #d7bc73);
  --brand-text: #0f1213;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--page-bg), var(--bg);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  letter-spacing: 0;
}

body.is-guest .cockpit-shell {
  display: none;
}

body.is-authenticated .landing-gate {
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.app-shell {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  min-height: 100vh;
}

.landing-gate {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background:
    radial-gradient(circle at 76% 18%, rgba(66, 232, 221, 0.2), transparent 24rem),
    radial-gradient(circle at 16% 72%, rgba(255, 209, 102, 0.13), transparent 26rem),
    linear-gradient(135deg, #050712 0%, #0b1526 52%, #13202a 100%);
  color: #f7fbff;
  transition: opacity 280ms ease, visibility 280ms ease;
}

.landing-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.landing-bg::before {
  position: absolute;
  inset: auto -8% -18% -8%;
  height: 52%;
  content: "";
  background:
    repeating-linear-gradient(175deg, rgba(66, 232, 221, 0.11) 0 2px, transparent 2px 28px),
    linear-gradient(180deg, transparent, rgba(66, 232, 221, 0.08));
  opacity: 0.7;
  transform: skewY(-4deg);
  animation: tideDrift 12s ease-in-out infinite alternate;
}

.route-line {
  position: absolute;
  width: 42vw;
  height: 42vw;
  border: 1px solid rgba(66, 232, 221, 0.18);
  border-radius: 999px;
  filter: drop-shadow(0 0 18px rgba(66, 232, 221, 0.16));
}

.route-line--one {
  right: 8vw;
  top: 8vh;
  animation: slowSpin 28s linear infinite;
}

.route-line--two {
  left: -14vw;
  bottom: -18vh;
  border-color: rgba(255, 209, 102, 0.16);
  animation: slowSpin 36s linear infinite reverse;
}

.route-star {
  position: absolute;
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  background: #75fff7;
  box-shadow: 0 0 22px rgba(117, 255, 247, 0.72);
  animation: pulseStar 2.8s ease-in-out infinite;
}

.route-star--one {
  left: 18%;
  top: 24%;
}

.route-star--two {
  right: 18%;
  top: 38%;
  animation-delay: 0.7s;
}

.route-star--three {
  left: 48%;
  bottom: 20%;
  animation-delay: 1.35s;
}

.landing-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.landing-login-link {
  min-height: 2.65rem;
  padding: 0 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f7fbff;
  font-weight: 900;
  backdrop-filter: blur(16px);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.landing-login-link:hover {
  border-color: rgba(66, 232, 221, 0.55);
  background: rgba(66, 232, 221, 0.12);
}

.landing-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(22rem, 0.8fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) 0;
}

.landing-copy {
  max-width: 44rem;
}

.landing-kicker {
  margin: 0 0 0.9rem;
  color: #75fff7;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.landing-copy h2 {
  max-width: 12em;
  margin: 0 0 1.1rem;
  font-family: "STKaiti", "KaiTi", "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(3rem, 8vw, 6.8rem);
  font-weight: 900;
  line-height: 0.98;
}

.landing-copy p:not(.landing-kicker) {
  max-width: 38rem;
  margin-bottom: 1.6rem;
  color: rgba(247, 251, 255, 0.78);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.8;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.voyage-card {
  position: relative;
  min-height: clamp(28rem, 52vw, 40rem);
  isolation: isolate;
  border: 1px solid rgba(212, 224, 255, 0.14);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 28%),
    radial-gradient(circle at 54% 41%, rgba(66, 232, 221, 0.19), transparent 12rem),
    linear-gradient(150deg, rgba(22, 44, 62, 0.92), rgba(5, 15, 29, 0.94));
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.42),
    inset 0 1px rgba(255, 255, 255, 0.12),
    inset 0 -2rem 4rem rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(22px);
  overflow: hidden;
}

.voyage-card::before {
  position: absolute;
  inset: 0;
  content: "";
  z-index: 8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: inherit;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.14), transparent 16% 72%, rgba(117, 255, 247, 0.08)),
    linear-gradient(90deg, transparent 49.8%, rgba(117, 255, 247, 0.11) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgba(117, 255, 247, 0.08) 50%, transparent 50.2%);
  box-shadow: inset 0 0 0 0.8rem rgba(5, 15, 29, 0.06);
  pointer-events: none;
}

.voyage-card::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  content: "";
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(3, 10, 20, 0.02) 0 42%, rgba(3, 10, 20, 0.48) 76%, rgba(3, 10, 20, 0.8)),
    radial-gradient(ellipse at 50% 46%, transparent 0 44%, rgba(0, 6, 18, 0.25) 72%, rgba(0, 4, 12, 0.64));
  pointer-events: none;
}

.voyage-sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 67% 28%, rgba(117, 255, 247, 0.18) 0 0.12rem, transparent 0.24rem),
    radial-gradient(circle at 26% 31%, rgba(255, 209, 102, 0.72) 0 0.09rem, transparent 0.19rem),
    radial-gradient(circle at 72% 62%, rgba(117, 255, 247, 0.64) 0 0.11rem, transparent 0.22rem),
    linear-gradient(180deg, rgba(32, 66, 85, 0.24), transparent 54%);
  animation: skyShift 14s ease-in-out infinite alternate;
}

.voyage-horizon {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 34%;
  z-index: 1;
  height: 12rem;
  border-top: 1px solid rgba(117, 255, 247, 0.22);
  background:
    linear-gradient(180deg, rgba(66, 232, 221, 0.11), transparent 55%),
    repeating-linear-gradient(174deg, rgba(117, 255, 247, 0.15) 0 1px, transparent 1px 1.9rem);
  opacity: 0.75;
  transform: perspective(30rem) rotateX(62deg) scale(1.15);
  transform-origin: bottom;
  animation: horizonGlide 10s linear infinite;
}

.voyage-route {
  position: absolute;
  z-index: 1;
  border: 1px dashed rgba(117, 255, 247, 0.3);
  border-radius: 50%;
  pointer-events: none;
}

.voyage-route--one {
  inset: 14% 18% 31% 18%;
  transform: rotate(-15deg);
  animation: routeBreathe 8s ease-in-out infinite alternate;
}

.voyage-route--two {
  inset: 24% 10% 21% 29%;
  border-color: rgba(255, 209, 102, 0.24);
  transform: rotate(17deg);
  animation: routeBreathe 11s ease-in-out infinite alternate-reverse;
}

.voyage-orbit {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 209, 102, 0.18);
  border-radius: 50%;
  animation: slowSpin 22s linear infinite;
}

.voyage-orbit--outer {
  inset: 13% 14% 27%;
  transform: rotate(-10deg);
}

.voyage-orbit--inner {
  inset: 24% 25% 31% 25%;
  border-style: dashed;
  border-color: rgba(117, 255, 247, 0.24);
  animation-duration: 16s;
  animation-direction: reverse;
}

.voyage-wave {
  position: absolute;
  left: 50%;
  z-index: 4;
  width: 82%;
  height: 4.8rem;
  border-top: 1px solid rgba(117, 255, 247, 0.52);
  border-radius: 50%;
  filter: drop-shadow(0 0 10px rgba(66, 232, 221, 0.2));
  transform: translateX(-50%) rotate(-5deg);
  pointer-events: none;
}

.voyage-wave::after {
  position: absolute;
  inset: 0;
  content: "";
  border-top: 1px solid rgba(117, 255, 247, 0.22);
  border-radius: inherit;
  transform: translateY(0.65rem) scaleX(0.86);
}

.voyage-wave--one {
  bottom: 28%;
  animation: waveRoll 5.2s ease-in-out infinite;
}

.voyage-wave--two {
  bottom: 22%;
  width: 64%;
  opacity: 0.72;
  animation: waveRoll 6.8s ease-in-out -1.6s infinite reverse;
}

.voyage-wave--three {
  bottom: 17%;
  width: 46%;
  opacity: 0.45;
  animation: waveRoll 8s ease-in-out -2.4s infinite;
}

.voyage-boat {
  position: absolute;
  left: 50%;
  top: 49%;
  z-index: 5;
  width: 9rem;
  height: 7rem;
  place-items: center;
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(66, 232, 221, 0.25), rgba(66, 232, 221, 0.04) 58%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: boatVoyage 7.5s ease-in-out infinite;
}

.voyage-boat__hull {
  position: absolute;
  left: 50%;
  bottom: 1.3rem;
  width: 5.8rem;
  height: 2.5rem;
  border-radius: 0 0 2.4rem 2.4rem;
  background:
    linear-gradient(135deg, transparent 42%, rgba(255, 255, 255, 0.96) 43% 72%, transparent 73%),
    linear-gradient(180deg, #9bfff5, #208ba0);
  box-shadow: 0 15px 32px rgba(66, 232, 221, 0.34);
  clip-path: polygon(2% 38%, 80% 38%, 100% 55%, 78% 94%, 18% 94%);
  transform: translateX(-50%);
}

.voyage-boat__sail {
  position: absolute;
  left: 50%;
  bottom: 3.1rem;
  width: 2.9rem;
  height: 3.4rem;
  background: linear-gradient(135deg, #f7fbff 0 50%, #75fff7 51% 100%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 0 12px rgba(117, 255, 247, 0.28));
  transform: translateX(-8%);
}

.voyage-boat__wake {
  position: absolute;
  left: 42%;
  bottom: 0.85rem;
  width: 7.5rem;
  height: 1.1rem;
  border-top: 2px solid rgba(117, 255, 247, 0.72);
  border-radius: 50%;
  opacity: 0.85;
  transform: translateX(-50%) rotate(-4deg);
  filter: blur(0.2px);
  animation: wakePulse 2.2s ease-in-out infinite;
}

.voyage-track {
  position: absolute;
  right: 12%;
  bottom: 19%;
  z-index: 5;
  display: grid;
  gap: 0.6rem;
  transform: rotate(-5deg);
}

.voyage-track i {
  display: block;
  width: 8rem;
  height: 0.22rem;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(117, 255, 247, 0.8), transparent);
  animation: routeSweep 2.4s ease-in-out infinite;
}

.voyage-track i:nth-child(2) {
  width: 11rem;
  animation-delay: 0.28s;
}

.voyage-track i:nth-child(3) {
  width: 6rem;
  animation-delay: 0.56s;
}

.voyage-readout {
  position: absolute;
  top: 24%;
  left: 12%;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(247, 251, 255, 0.62);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: readoutFloat 4.6s ease-in-out infinite;
}

.voyage-readout__dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #75fff7;
  box-shadow: 0 0 0 0.26rem rgba(117, 255, 247, 0.1), 0 0 16px rgba(117, 255, 247, 0.72);
}

.voyage-panel {
  position: absolute;
  z-index: 6;
  display: grid;
  gap: 0.18rem;
  min-width: 10rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(212, 224, 255, 0.15);
  border-radius: 18px;
  background: rgba(9, 18, 32, 0.72);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
}

.voyage-panel span {
  color: rgba(247, 251, 255, 0.58);
  font-size: 0.76rem;
  font-weight: 900;
}

.voyage-panel strong {
  font-size: 1.15rem;
}

.voyage-panel--top {
  top: 13%;
  right: 11%;
}

.voyage-panel--bottom {
  left: 10%;
  bottom: 12%;
  animation: panelDrift 6s ease-in-out -1.8s infinite;
}

.landing-gate {
  min-height: 100svh;
  grid-template-rows: auto 1fr auto;
  padding: clamp(1rem, 2.6vw, 2rem) clamp(1rem, 4vw, 4.5rem);
  background: #071114;
}

.landing-bg {
  z-index: 0;
  background: #071114;
}

.landing-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.92) contrast(1.02) brightness(0.78);
  transform: scale(1.04);
  animation: landingVideoDrift 18s ease-in-out infinite alternate;
}

.landing-video-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 10, 16, 0.34) 0%, rgba(3, 10, 16, 0.02) 28%, rgba(3, 10, 16, 0.08) 56%, rgba(3, 10, 16, 0.48) 100%),
    linear-gradient(90deg, rgba(3, 10, 16, 0.26), transparent 42%, rgba(3, 10, 16, 0.12));
}

.landing-glass-sheen {
  position: absolute;
  inset: -20% -10%;
  background:
    linear-gradient(112deg, transparent 20%, rgba(255, 255, 255, 0.08) 39%, transparent 52%),
    radial-gradient(ellipse at 50% 8%, rgba(175, 255, 245, 0.1), transparent 34%);
  opacity: 0.42;
  mix-blend-mode: screen;
  transform: translateX(-18%) rotate(-4deg);
  animation: glassSweep 13s ease-in-out infinite alternate;
}

.landing-bg::before {
  inset: auto -8% -14% -8%;
  z-index: 3;
  height: 38%;
  background:
    linear-gradient(180deg, transparent, rgba(87, 255, 235, 0.16)),
    repeating-linear-gradient(174deg, rgba(184, 255, 244, 0.13) 0 1px, transparent 1px 2.1rem);
  opacity: 0.36;
  mix-blend-mode: screen;
}

.landing-bg::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  content: "";
  border: 1px solid rgba(230, 255, 250, 0.22);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 0 7rem rgba(156, 255, 242, 0.07);
  pointer-events: none;
}

.route-line {
  z-index: 4;
  width: 46vw;
  height: 46vw;
  border-color: rgba(202, 255, 247, 0.18);
  opacity: 0.5;
}

.route-line--one {
  right: -12vw;
  top: -18vh;
}

.route-line--two {
  left: -18vw;
  bottom: -28vh;
  border-color: rgba(255, 231, 183, 0.18);
}

.route-star {
  z-index: 4;
  opacity: 0.7;
}

.landing-nav {
  z-index: 5;
}

.wordmark--landing {
  padding: 0.45rem 0.72rem 0.45rem 0.45rem;
  border: 1px solid rgba(236, 255, 249, 0.22);
  border-radius: 999px;
  background: rgba(13, 32, 34, 0.16);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.2),
    0 1rem 3rem rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(16px) saturate(135%);
}

.landing-login-link {
  border-color: rgba(236, 255, 249, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.025)),
    rgba(13, 32, 34, 0.16);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.28),
    inset 0 -1px rgba(0, 0, 0, 0.16),
    0 0.8rem 2.5rem rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(16px) saturate(140%);
}

.landing-content {
  grid-row: 2;
  align-self: center;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 1100px);
  padding: clamp(1rem, 3vh, 2.5rem) 0;
}

.landing-copy {
  position: relative;
  width: min(100%, 970px);
  max-width: none;
  padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1rem, 5vw, 5.5rem);
  text-align: center;
}

.landing-copy::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  border: 1px solid rgba(235, 255, 249, 0.22);
  border-radius: clamp(1.5rem, 4vw, 2.7rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 28% 72%, rgba(142, 255, 236, 0.045)),
    rgba(8, 25, 28, 0.08);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.22),
    inset 0 -1.5rem 3rem rgba(1, 10, 15, 0.1),
    0 2rem 6rem rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(9px) saturate(125%);
}

.landing-copy::after {
  position: absolute;
  inset: 1px;
  z-index: -1;
  content: "";
  border-radius: inherit;
  background:
    linear-gradient(110deg, transparent 10%, rgba(255, 255, 255, 0.075) 32%, transparent 48%),
    radial-gradient(ellipse at 50% 0%, rgba(168, 255, 244, 0.1), transparent 56%);
  opacity: 0.5;
  mix-blend-mode: screen;
  animation: glassPanelPulse 8s ease-in-out infinite alternate;
}

.landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  margin: 0 0 1.2rem;
  padding: 0.38rem 0.7rem 0.38rem 0.82rem;
  border: 1px solid rgba(229, 255, 249, 0.28);
  border-radius: 999px;
  background: rgba(10, 35, 35, 0.14);
  color: #b8fff4;
  letter-spacing: 0.15em;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px) saturate(130%);
}

.landing-kicker i {
  display: inline-grid;
  min-width: 1.7rem;
  min-height: 1.25rem;
  place-items: center;
  border-left: 1px solid rgba(229, 255, 249, 0.28);
  color: rgba(245, 255, 252, 0.65);
  font-size: 0.62rem;
  font-style: normal;
  letter-spacing: 0.04em;
}

.landing-copy h2 {
  position: relative;
  display: inline-block;
  max-width: 14em;
  margin: 0 auto 1.2rem;
  font-family: "STXingkai", "FZYaoti", "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: clamp(4rem, 10vw, 8.5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 0.98;
  transform: rotate(-2deg) skewX(-3deg);
  text-shadow:
    0 0 1.5rem rgba(216, 255, 249, 0.14),
    0 1rem 2rem rgba(0, 0, 0, 0.32);
}

.landing-copy h2::before,
.landing-copy h2::after {
  position: absolute;
  top: 50%;
  width: clamp(2.5rem, 8vw, 7rem);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(226, 255, 249, 0.52));
  opacity: 0.72;
}

.landing-copy h2::before {
  right: calc(100% + 1.4rem);
  transform: rotate(4deg);
}

.landing-copy h2::after {
  left: calc(100% + 1.4rem);
  transform: rotate(-4deg) scaleX(-1);
}

.landing-copy p:not(.landing-kicker) {
  max-width: 46rem;
  margin: 0 auto 1.7rem;
  color: rgba(246, 255, 252, 0.86);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.75;
  text-shadow: 0 0.6rem 1.5rem rgba(0, 0, 0, 0.3);
}

.landing-actions {
  justify-content: center;
}

.landing-actions .primary-btn {
  border-color: rgba(232, 255, 248, 0.33);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.035)),
    rgba(15, 51, 49, 0.26);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.26),
    0 1rem 2.5rem rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(16px) saturate(135%);
}

.landing-actions .secondary-btn {
  background: rgba(10, 27, 36, 0.2);
}

.landing-bottom-rail {
  grid-row: 3;
  position: relative;
  z-index: 5;
  align-self: end;
  display: grid;
  grid-template-columns: 1.5fr repeat(5, minmax(0, 1fr)) auto;
  align-items: center;
  gap: 0.7rem;
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 0.78rem 1rem;
  border: 1px solid rgba(230, 255, 250, 0.2);
  border-radius: 1rem;
  background: rgba(8, 27, 29, 0.14);
  color: rgba(243, 255, 251, 0.78);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.2),
    0 1rem 3rem rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px) saturate(135%);
}

.landing-bottom-rail > span:not(.landing-bottom-rail__signal):not(.landing-bottom-rail__mark) {
  padding-left: 0.75rem;
  border-left: 1px solid rgba(232, 255, 249, 0.18);
}

.landing-bottom-rail__signal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #b8fff4;
}

.landing-bottom-rail__signal i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #a8fff1;
  box-shadow: 0 0 0 0.25rem rgba(168, 255, 241, 0.12), 0 0 1rem rgba(168, 255, 241, 0.72);
  animation: pulseStar 2.4s ease-in-out infinite;
}

.landing-bottom-rail__mark {
  color: rgba(245, 255, 252, 0.5);
  text-align: right;
  white-space: nowrap;
}

@keyframes landingVideoDrift {
  from {
    transform: scale(1.04) translate3d(-0.5%, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(0.6%, -0.4%, 0);
  }
}

@keyframes glassSweep {
  from {
    transform: translateX(-18%) rotate(-4deg);
  }
  to {
    transform: translateX(12%) rotate(-4deg);
  }
}

@keyframes glassPanelPulse {
  from {
    opacity: 0.46;
    transform: translateX(-2%);
  }
  to {
    opacity: 0.8;
    transform: translateX(2%);
  }
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  height: 100vh;
  padding: 1.15rem;
  border-right: 1px solid var(--line);
  background: var(--sidebar-bg);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  min-width: 0;
  perspective: 540px;
}

.brand-vessel {
  position: relative;
  display: inline-grid;
  width: 3.4rem;
  height: 2.8rem;
  flex: 0 0 auto;
  place-items: center;
  transform-style: preserve-3d;
  animation: vesselDrift 5.2s ease-in-out infinite;
}

.brand-vessel::before {
  position: absolute;
  inset: 0.38rem 0.18rem 0.16rem;
  content: "";
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--cyan) 26%, transparent), transparent 62%);
  filter: blur(0.12rem);
  opacity: 0.9;
  transform: translateZ(-1rem) rotateX(62deg);
}

.brand-vessel__sail {
  position: absolute;
  left: 1.23rem;
  top: 0.18rem;
  width: 1.22rem;
  height: 1.8rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), color-mix(in srgb, var(--cyan) 70%, #ffffff) 48%, color-mix(in srgb, var(--blue) 72%, var(--cyan)));
  clip-path: polygon(15% 6%, 92% 51%, 12% 95%);
  filter: drop-shadow(0 0 0.42rem color-mix(in srgb, var(--cyan) 42%, transparent));
  transform: translateZ(1.2rem) rotateY(-18deg) rotateZ(-5deg);
}

.brand-vessel__hull {
  position: absolute;
  left: 0.74rem;
  bottom: 0.54rem;
  width: 2.25rem;
  height: 0.82rem;
  border-radius: 0.22rem 0.2rem 1rem 1.25rem;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--cyan) 88%, #ffffff), color-mix(in srgb, var(--blue) 55%, #071527)),
    var(--brand-gradient);
  clip-path: polygon(0 24%, 72% 18%, 100% 44%, 78% 86%, 18% 88%);
  box-shadow:
    inset 0 0.12rem 0 rgba(255, 255, 255, 0.42),
    0 0.75rem 1.8rem color-mix(in srgb, var(--cyan) 22%, transparent);
  transform: translateZ(0.7rem) rotateX(6deg);
}

.brand-vessel__wake {
  position: absolute;
  right: 0.36rem;
  bottom: 0.18rem;
  width: 2.35rem;
  height: 0.32rem;
  background:
    linear-gradient(90deg, transparent, color-mix(in srgb, var(--cyan) 72%, transparent), transparent);
  opacity: 0.86;
  filter: blur(0.04rem);
  transform: translateZ(-0.4rem) rotateX(54deg);
  animation: wakeFlow 2.6s ease-in-out infinite;
}

.wordmark-name {
  position: relative;
  color: var(--text);
  font-family: "STXingkai", "FZYaoti", "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: 1.52rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.06em;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.88),
    0 0 18px color-mix(in srgb, var(--cyan) 26%, transparent);
}

.wordmark-name::after {
  position: absolute;
  right: 0.08rem;
  bottom: -0.34rem;
  width: 76%;
  height: 0.14rem;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--cyan) 72%, transparent), transparent);
  opacity: 0.72;
}

.wordmark--landing .brand-vessel {
  width: 3.85rem;
  height: 3.18rem;
}

.wordmark--landing .wordmark-name {
  color: #f7fbff;
  font-size: 1.68rem;
}

.theme-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0.62rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--field-bg);
}

.theme-label {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.theme-choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.05rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--control-bg);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.theme-choice:hover,
.theme-choice.active {
  border-color: color-mix(in srgb, var(--cyan) 62%, transparent);
  background: color-mix(in srgb, var(--cyan) 13%, transparent);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--cyan) 13%, transparent);
}

.theme-choice:active {
  transform: translateY(1px);
}

.theme-swatch {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--text) 12%, transparent);
}

.swatch-starmap {
  background: linear-gradient(135deg, #42e8dd, #69a9ff);
}

.swatch-daydesk {
  background: linear-gradient(135deg, #00a99a, #ff6b6b);
}

.swatch-atelier {
  background: linear-gradient(135deg, #be8aff, #45d699);
}

.swatch-focus {
  background: linear-gradient(135deg, #9bc6b1, #d7bc73);
}

.eyebrow {
  margin: 0 0 0.2rem;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 1.1rem;
}

h2 {
  margin-bottom: 0.55rem;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 0;
  font-size: 1.2rem;
}

.nav-tabs {
  display: grid;
  gap: 0.55rem;
}

.auth-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  min-height: 5rem;
  padding: 0.68rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    var(--hud-glaze),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-panel__status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  grid-column: 1 / -1;
}

.auth-panel__status span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 0.45rem;
}

.auth-form input {
  width: 100%;
  min-width: 0;
  padding: 0.58rem 0.68rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--field-bg);
  color: var(--text);
}

.auth-message {
  grid-column: 1 / -1;
  min-height: 1rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.auth-panel .primary-btn {
  width: auto;
  min-width: 0;
  padding-inline: 0.78rem;
}

/*** ─── User Area ─── */
.user-area {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.38rem;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.hud-status-cluster {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.user-area__info {
  position: relative;
  display: grid;
  place-items: center;
}

.user-avatar {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--cyan) 50%, transparent);
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.85), transparent 0.35rem),
    var(--brand-gradient),
    var(--control-bg);
  color: var(--brand-text);
  display: grid;
  place-items: center;
  font-family: "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: 1.05rem;
  font-weight: 900;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 12px 32px color-mix(in srgb, var(--cyan) 20%, transparent);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-login {
  display: grid;
  width: 2.9rem;
  min-height: 2.9rem;
  padding: 0;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--cyan) 36%, var(--line));
  border-radius: 999px;
  background:
    var(--hud-glaze),
    var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.avatar-login:hover {
  box-shadow: var(--focus-ring);
}

.avatar-login:active {
  transform: translateY(1px);
}

#userArea #loginBtn {
  white-space: nowrap;
}

.profile-avatar-button {
  display: grid;
  width: 2.9rem;
  min-height: 2.9rem;
  padding: 0;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--cyan) 36%, var(--line));
  border-radius: 999px;
  background:
    var(--hud-glaze),
    var(--surface);
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.profile-avatar-button:hover,
.profile-avatar-button[aria-expanded="true"] {
  box-shadow: var(--focus-ring), var(--shadow);
}

.profile-avatar-button:active {
  transform: translateY(1px);
}

.user-menu {
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 0;
  z-index: 80;
  display: grid;
  gap: 0.55rem;
  width: min(16.5rem, calc(100vw - 2rem));
  padding: 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--cyan) 9%, transparent), transparent 58%),
    var(--surface-strong);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(22px);
  animation: menuIn 160ms ease;
}

.user-menu::before {
  position: absolute;
  top: -0.42rem;
  right: 1.2rem;
  width: 0.82rem;
  height: 0.82rem;
  content: "";
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  background: var(--surface-strong);
  transform: rotate(45deg);
}

.user-menu__label {
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.user-menu strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 1.08rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#authStatus {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.82rem;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

#logoutBtn {
  width: 100%;
  min-height: 2.35rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
}

/*** ─── Auth Modal ─── */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  animation: fadeIn 180ms ease;
}

.auth-modal {
  width: min(24rem, calc(100vw - 2rem));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 62%),
    var(--surface-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(24px);
  overflow: hidden;
}

.auth-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem 0;
}

.auth-modal__tabs {
  display: flex;
  gap: 0.25rem;
}

.auth-modal__tab {
  padding: 0.45rem 1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  transition: all 160ms ease;
}

.auth-modal__tab.active {
  border-color: color-mix(in srgb, var(--cyan) 40%, var(--line));
  background: color-mix(in srgb, var(--cyan) 10%, transparent);
  color: var(--text);
}

.auth-modal__tab:hover {
  color: var(--text);
}

.auth-modal__close {
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: var(--control-bg);
  color: var(--muted);
  font-size: 1rem;
  display: grid;
  place-items: center;
  transition: background 160ms ease, color 160ms ease;
}

.auth-modal__close:hover {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.auth-modal__form {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem;
}

.auth-modal__label {
  margin: 0.5rem 0 0.15rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--muted);
}

.auth-modal__form input {
  padding: 0.62rem 0.78rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--field-bg);
  color: var(--text);
  font-size: 0.9rem;
}

.auth-modal__form .action-btn {
  margin-top: 0.6rem;
}

.auth-modal__message {
  min-height: 1.2rem;
  margin: 0;
  padding: 0 1.25rem 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

/*** --- Profile Editor --- */
.profile-editor-overlay,
.health-source-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
}

.profile-editor-modal,
.health-source-modal {
  width: min(42rem, calc(100vw - 2rem));
  max-height: min(44rem, calc(100vh - 2rem));
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--cyan) 8%, transparent), transparent 36%),
    var(--surface-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.profile-editor-modal > .auth-modal__head,
.health-source-modal > .auth-modal__head {
  padding: 1.25rem 1.25rem 0;
}

.profile-editor-modal h3,
.health-source-modal h3 {
  margin: 0.2rem 0 0;
}

.profile-editor-intro,
.health-source-copy {
  margin: 0;
  padding: 0.2rem 1.25rem 0;
  color: var(--muted);
  line-height: 1.6;
}

.profile-editor-form {
  padding: 1.25rem;
}

.profile-editor-form .primary-btn {
  margin-top: 0.35rem;
}

.health-source-strip__label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.health-source-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.75rem 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--cyan) 28%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--cyan) 6%, var(--surface-soft));
}

.health-source-strip > div {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}

.health-source-strip strong {
  color: var(--text);
}

.health-source-strip small {
  color: var(--muted);
}

.form-hint {
  margin: 0.15rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.health-source-copy > p {
  margin: 0;
}

.health-bridge-url-field {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.health-bridge-url-field input {
  width: 100%;
  min-height: 2.65rem;
}

.health-bridge-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.health-bridge-status > div:first-child {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}

.health-bridge-status small {
  color: var(--muted);
}

.health-bridge-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.health-source-options {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0;
}

.health-source-options article {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.health-source-options span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.health-source-modal > .secondary-btn {
  margin: 0.5rem 1.25rem 1.25rem;
}

@media (max-width: 620px) {
  .health-bridge-status {
    align-items: stretch;
    flex-direction: column;
  }

  .health-bridge-actions .primary-btn {
    flex: 1 1 8rem;
  }
}

/*** ─── Avatar Upload ─── */
.avatar-upload {
  display: flex;
  align-items: center;
  gap: 1rem;
  grid-column: 1 / -1;
  padding: 0.5rem 0;
}

.avatar-upload__preview {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  border: 2px solid var(--line-strong);
  background: var(--control-bg);
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-upload__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-upload__actions {
  display: grid;
  gap: 0.35rem;
}

.avatar-upload__label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text);
}

.avatar-upload__actions input[type="file"] {
  font-size: 0.78rem;
  color: var(--muted);
}

.sync-toast {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 70;
  max-width: min(24rem, calc(100vw - 2rem));
  padding: 0.85rem 1rem;
  border: 1px solid color-mix(in srgb, var(--cyan) 46%, var(--line));
  border-radius: 14px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--cyan) 16%, transparent), transparent 62%),
    var(--surface-strong);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(0.65rem);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.sync-toast strong,
.sync-toast span {
  display: block;
}

.sync-toast span {
  margin-top: 0.22rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.sync-toast progress {
  display: block;
  width: 100%;
  height: 0.42rem;
  margin-top: 0.68rem;
  accent-color: var(--cyan);
}

.sync-toast__retry {
  margin-top: 0.68rem;
  padding: 0.38rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  pointer-events: auto;
  cursor: pointer;
}

.sync-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@keyframes tideDrift {
  from {
    transform: translate3d(-1.5%, 0, 0) skewY(-4deg);
  }
  to {
    transform: translate3d(1.5%, -3%, 0) skewY(-5deg);
  }
}

@keyframes slowSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseStar {
  0%,
  100% {
    opacity: 0.48;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.22);
  }
}

@keyframes boatFloat {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-2deg);
  }
  50% {
    transform: translate(-50%, calc(-50% - 0.8rem)) rotate(3deg);
  }
}

@keyframes boatVoyage {
  0%,
  100% {
    transform: translate(-50%, -50%) translate3d(-0.4rem, 0.3rem, 0) rotate(-4deg);
  }
  25% {
    transform: translate(-50%, -50%) translate3d(0.8rem, -0.5rem, 0) rotate(2deg);
  }
  52% {
    transform: translate(-50%, -50%) translate3d(1.5rem, 0.2rem, 0) rotate(5deg);
  }
  78% {
    transform: translate(-50%, -50%) translate3d(-0.8rem, -0.6rem, 0) rotate(-1deg);
  }
}

@keyframes wakePulse {
  0%,
  100% {
    opacity: 0.42;
    transform: translateX(-50%) rotate(-4deg) scaleX(0.76);
  }
  50% {
    opacity: 0.92;
    transform: translateX(-50%) rotate(-4deg) scaleX(1.08);
  }
}

@keyframes skyShift {
  from {
    opacity: 0.72;
    transform: translate3d(-1%, 0, 0) scale(1);
  }
  to {
    opacity: 1;
    transform: translate3d(1.5%, -1%, 0) scale(1.03);
  }
}

@keyframes horizonGlide {
  from {
    transform: perspective(30rem) rotateX(62deg) translateX(-2%) scale(1.15);
  }
  to {
    transform: perspective(30rem) rotateX(62deg) translateX(2%) scale(1.18);
  }
}

@keyframes routeBreathe {
  from {
    opacity: 0.45;
    transform: rotate(-15deg) scale(0.98);
  }
  to {
    opacity: 0.92;
    transform: rotate(-11deg) scale(1.02);
  }
}

@keyframes waveRoll {
  0%,
  100% {
    margin-left: -1.2%;
    opacity: 0.42;
  }
  50% {
    margin-left: 1.2%;
    opacity: 0.9;
  }
}

@keyframes readoutFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0.35rem, -0.4rem, 0);
  }
}

@keyframes panelDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0.35rem, -0.45rem, 0);
  }
}

@keyframes routeSweep {
  0%,
  100% {
    opacity: 0.35;
    transform: translateX(-0.8rem);
  }
  50% {
    opacity: 1;
    transform: translateX(0.8rem);
  }
}

@keyframes vesselDrift {
  0%,
  100% {
    transform: translateY(0) rotateX(58deg) rotateZ(-8deg);
  }
  50% {
    transform: translateY(-0.18rem) rotateX(58deg) rotateZ(7deg);
  }
}

@keyframes wakeFlow {
  0%,
  100% {
    opacity: 0.42;
    transform: translateX(0.18rem) translateZ(-0.4rem) rotateX(54deg) scaleX(0.72);
  }
  50% {
    opacity: 0.9;
    transform: translateX(-0.2rem) translateZ(-0.4rem) rotateX(54deg) scaleX(1.04);
  }
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-0.35rem) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.cockpit-shell {
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.cockpit-shell .sidebar {
  gap: 1rem;
  padding: 1rem;
}

.cockpit-shell .brand {
  min-height: 3.9rem;
  padding: 0.35rem 0.3rem;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.cockpit-shell .nav-tabs {
  gap: 0.42rem;
}

.nav-tab {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: center;
  gap: 0.58rem;
  min-height: var(--control-height);
}

.nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-icon {
  position: relative;
  display: inline-grid;
  width: 1.42rem;
  height: 1.42rem;
  place-items: center;
  color: var(--cyan);
  flex: 0 0 auto;
}

.nav-icon::before,
.nav-icon::after {
  position: absolute;
  content: "";
}

.nav-icon--dashboard::before {
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.nav-icon--dashboard::after {
  width: 0.48rem;
  height: 0.48rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translate(0.3rem, -0.3rem) rotate(-8deg);
}

.nav-icon--profile::before {
  width: 0.72rem;
  height: 0.72rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: translateY(-0.28rem);
}

.nav-icon--profile::after {
  width: 1rem;
  height: 0.52rem;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 999px 999px;
  transform: translateY(0.36rem);
}

.nav-icon--inventory::before {
  width: 1rem;
  height: 0.82rem;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.nav-icon--inventory::after {
  width: 1.1rem;
  height: 0.34rem;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  transform: translateY(-0.48rem);
}

.nav-icon--finance::before {
  width: 1.02rem;
  height: 0.78rem;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.nav-icon--finance::after {
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: currentColor;
  transform: translate(0.32rem, 0);
}

.nav-icon--quests::before {
  width: 0.96rem;
  height: 1.08rem;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.nav-icon--quests::after {
  width: 0.56rem;
  height: 0.16rem;
  background: currentColor;
  border-radius: 999px;
  box-shadow: 0 0.34rem 0 currentColor, 0 -0.34rem 0 currentColor;
}

.nav-icon--journal::before {
  width: 0.92rem;
  height: 1.08rem;
  border: 2px solid currentColor;
  border-radius: 4px;
  transform: rotate(-3deg);
}

.nav-icon--journal::after {
  width: 0.48rem;
  height: 0.12rem;
  background: currentColor;
  border-radius: 999px;
  box-shadow: 0 0.3rem 0 currentColor;
  transform: translate(0.06rem, -0.18rem) rotate(-3deg);
}

.section-icon {
  width: 2rem;
  height: 2rem;
}

.cockpit-shell .theme-switcher {
  margin-top: auto;
}

.cockpit-shell .save-card {
  margin-top: 0;
}

.cockpit-shell .main {
  gap: 1rem;
  padding: 1rem clamp(1rem, 2vw, 1.45rem) 1.4rem;
}

.cockpit-shell .top-hud {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-bottom: 0.2rem;
}

.cockpit-shell .panel,
.cockpit-shell .stat-card,
.cockpit-shell .item-card,
.cockpit-shell .kanban-column,
.cockpit-shell .page-head,
.cockpit-shell .cockpit-status article,
.cockpit-shell .hud-block,
.cockpit-shell .hud-alert-button {
  position: relative;
  overflow: hidden;
}

.cockpit-shell .panel::before,
.cockpit-shell .stat-card::before,
.cockpit-shell .item-card::before,
.cockpit-shell .kanban-column::before,
.cockpit-shell .page-head::before,
.cockpit-shell .cockpit-status article::before,
.cockpit-shell .hud-block::before,
.cockpit-shell .hud-alert-button::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--panel-accent);
  content: "";
  pointer-events: none;
}

.cockpit-shell .panel,
.cockpit-shell .page-head,
.cockpit-shell .cockpit-status article,
.cockpit-shell .section-head h3,
.cockpit-shell .page-head h2,
.cockpit-shell .timer-display strong {
  text-wrap: balance;
}

.primary-btn,
.secondary-btn,
.icon-btn,
.metric-tile,
input,
select,
textarea {
  min-height: var(--control-height);
}

.primary-btn,
.secondary-btn,
.icon-btn,
.metric-tile,
.nav-tab,
.theme-choice,
.auth-modal__tab,
.auth-modal__close {
  touch-action: manipulation;
}

input,
select,
textarea {
  border-color: var(--field-border);
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
.nav-tab:focus-visible,
.theme-choice:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--cyan) 64%, var(--line));
  box-shadow: var(--focus-ring);
}

.nav-tab:hover,
.nav-tab.active {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--cyan) 16%, transparent), transparent 72%),
    var(--surface-hover);
}

.page-head {
  min-height: 9.4rem;
}

.page-head h2 {
  letter-spacing: 0;
}

.section-head {
  min-height: 2.8rem;
}

.timer-panel {
  border-color: color-mix(in srgb, var(--cyan) 42%, var(--line));
}

.timer-display {
  min-height: 10.5rem;
  align-content: center;
}

.today-focus-card textarea,
.journal-form textarea,
.quest-form textarea,
.inventory-rich-editor {
  line-height: 1.6;
}

.nav-tab,
.primary-btn,
.icon-btn,
.metric-tile {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--control-bg);
  color: var(--text);
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.nav-tab {
  min-height: 2.85rem;
  padding: 0.68rem 0.78rem;
  text-align: left;
}

.nav-tab > span:first-child:not(.nav-icon) {
  display: inline-grid;
  width: 1.35rem;
  color: var(--cyan);
}

.nav-tab:hover,
.nav-tab.active,
.icon-btn:hover,
.metric-tile:hover,
.metric-tile.active {
  border-color: rgba(66, 232, 221, 0.58);
  background: rgba(66, 232, 221, 0.12);
  box-shadow: 0 14px 34px rgba(34, 211, 238, 0.13);
}

.nav-tab:active,
.primary-btn:active,
.icon-btn:active,
.metric-tile:active {
  transform: translateY(1px);
}

.primary-btn {
  background: rgba(148, 163, 184, 0.1);
}

.primary-btn:hover {
  border-color: rgba(148, 163, 184, 0.58);
  background: rgba(148, 163, 184, 0.15);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
}

.action-btn {
  border-color: rgba(66, 232, 221, 0.46);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--action) 26%, transparent), color-mix(in srgb, var(--action-strong) 14%, transparent)),
    color-mix(in srgb, var(--action) 9%, transparent);
  color: var(--action-text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.action-btn:hover {
  border-color: rgba(124, 231, 168, 0.72);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--action) 36%, transparent), color-mix(in srgb, var(--action-strong) 18%, transparent)),
    color-mix(in srgb, var(--action) 13%, transparent);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--action) 16%, transparent);
}

.secondary-btn {
  border-color: rgba(105, 169, 255, 0.28);
  background: var(--chip-blue-bg);
  color: var(--chip-blue-text);
}

.secondary-btn:hover {
  border-color: rgba(105, 169, 255, 0.58);
  background: rgba(105, 169, 255, 0.14);
  box-shadow: 0 14px 30px rgba(105, 169, 255, 0.12);
}

.neutral-btn {
  border-color: rgba(148, 163, 184, 0.32);
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
}

.neutral-btn:hover {
  border-color: rgba(148, 163, 184, 0.6);
  background: rgba(148, 163, 184, 0.14);
}

.save-card {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.save-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.save-dot {
  width: 0.62rem;
  height: 0.62rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.14);
}

.main {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 1.1rem 1.35rem 1.35rem;
}

.top-hud {
  display: grid;
  grid-template-columns: minmax(13rem, 1fr) minmax(15rem, 18rem) minmax(32rem, auto);
  gap: 0.75rem;
  align-items: center;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 4.35rem;
  padding: 0 0.2rem;
}

.section-title span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: var(--cyan);
  font-weight: 900;
}

.section-title strong {
  font-size: 1.25rem;
}

.cloud-status {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  min-width: 0;
  min-height: 3.35rem;
  padding: 0.62rem 0.78rem;
  border: 1px solid color-mix(in srgb, var(--amber) 38%, var(--line));
  border-radius: 14px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--amber) 10%, transparent), transparent 68%),
    var(--surface);
  box-shadow: var(--shadow);
}

.cloud-status__dot {
  width: 0.62rem;
  height: 0.62rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 15%, transparent);
}

.cloud-status__copy {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
}

.cloud-status__copy strong,
.cloud-status__copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cloud-status__copy strong {
  font-size: 0.82rem;
}

.cloud-status__copy small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.cloud-status[data-cloud-state="loading"],
.cloud-status[data-cloud-state="syncing"] {
  border-color: color-mix(in srgb, var(--cyan) 52%, var(--line));
}

.cloud-status[data-cloud-state="loading"] .cloud-status__dot,
.cloud-status[data-cloud-state="syncing"] .cloud-status__dot {
  background: var(--cyan);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 15%, transparent);
  animation: cloudStatusPulse 1.15s ease-in-out infinite;
}

.cloud-status[data-cloud-state="connected"],
.cloud-status[data-cloud-state="saved"] {
  border-color: color-mix(in srgb, var(--green) 48%, var(--line));
}

.cloud-status[data-cloud-state="connected"] .cloud-status__dot,
.cloud-status[data-cloud-state="saved"] .cloud-status__dot {
  background: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 15%, transparent);
}

.cloud-status[data-cloud-state="error"] {
  border-color: color-mix(in srgb, var(--red) 54%, var(--line));
}

.cloud-status[data-cloud-state="error"] .cloud-status__dot {
  background: var(--red);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 15%, transparent);
}

@keyframes cloudStatusPulse {
  50% {
    opacity: 0.45;
    transform: scale(0.78);
  }
}

.hud-block {
  display: grid;
  gap: 0.28rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    var(--hud-glaze),
    var(--surface);
  box-shadow: var(--shadow);
  padding: 0.7rem;
  backdrop-filter: blur(18px);
}

.hud-metric {
  grid-template-columns: 2.2rem minmax(0, 1fr);
  align-items: center;
  min-width: 8.7rem;
  min-height: 3.8rem;
  padding: 0.55rem 0.72rem;
  border-radius: 18px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--cyan) 8%, transparent), transparent 62%),
    color-mix(in srgb, var(--surface-strong) 88%, transparent);
}

.hud-metric div {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.hud-metric--target {
  border-color: color-mix(in srgb, var(--cyan) 34%, var(--line));
}

.hud-metric--schedule {
  border-color: color-mix(in srgb, var(--blue) 32%, var(--line));
}

.hud-metric--habit {
  border-color: color-mix(in srgb, var(--green) 34%, var(--line));
}

.hud-block span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.hud-block strong {
  font-size: 1.05rem;
}

.hud-metric strong {
  font-size: 1.16rem;
  font-variant-numeric: tabular-nums;
}

.hud-metric small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hud-progress {
  display: block;
  width: 4.7rem;
  height: 0.18rem;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 14%, transparent);
}

.hud-progress b {
  display: block;
  width: var(--hud-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  transition: width 220ms ease;
}

.hud-icon {
  position: relative;
  display: grid;
  width: 2.05rem;
  height: 2.05rem;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--cyan) 32%, var(--line));
  border-radius: 999px;
  color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 8%, transparent);
}

.hud-icon::before,
.hud-icon::after,
.hud-bell::before,
.hud-bell::after {
  position: absolute;
  content: "";
}

.hud-icon--target::before {
  width: 0.88rem;
  height: 0.88rem;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.hud-icon--target::after {
  width: 0.44rem;
  height: 0.44rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translate(0.38rem, -0.38rem) rotate(-8deg);
}

.hud-icon--schedule::before {
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-radius: 0.2rem;
}

.hud-icon--schedule::after {
  width: 0.68rem;
  height: 0.18rem;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(0.1rem);
}

.hud-icon--habit {
  color: var(--green);
}

.hud-icon--habit::before {
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.hud-icon--habit::after {
  width: 0.6rem;
  height: 0.32rem;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.hud-alert-button {
  display: grid;
  width: 3.05rem;
  min-height: 3.8rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
  color: var(--muted);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease;
}

.hud-alert-button:hover {
  border-color: color-mix(in srgb, var(--cyan) 62%, transparent);
  color: var(--cyan);
}

.hud-bell {
  position: relative;
  width: 1.1rem;
  height: 1.1rem;
}

.hud-bell::before {
  left: 0.16rem;
  top: 0.1rem;
  width: 0.78rem;
  height: 0.84rem;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 0.58rem 0.58rem 0.18rem 0.18rem;
}

.hud-bell::after {
  left: 0.08rem;
  bottom: 0.1rem;
  width: 0.94rem;
  height: 0.24rem;
  border-bottom: 2px solid currentColor;
  border-radius: 999px;
  box-shadow: 0 0.26rem 0 -0.07rem currentColor;
}

.panel,
.stat-card,
.item-card,
.kanban-column {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    var(--panel-glaze),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel,
.stat-card {
  padding: 1rem;
}

.hero {
  display: none;
  align-items: center;
  justify-content: space-between;
  min-height: 9.6rem;
  overflow: hidden;
}

.hero-room {
  background: var(--hero-bg);
}

.hero p:last-child {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
}

.hero-orbit {
  position: relative;
  flex: 0 0 8rem;
  height: 8rem;
}

.hero-orbit span {
  position: absolute;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 16px;
  background: rgba(34, 211, 238, 0.08);
  box-shadow: 0 18px 55px rgba(34, 211, 238, 0.12);
}

.hero-orbit span:nth-child(1) {
  inset: 0.6rem 1.5rem 1.5rem 0.6rem;
}

.hero-orbit span:nth-child(2) {
  inset: 2rem 0.3rem 0.4rem 2rem;
  background: rgba(167, 139, 250, 0.08);
}

.hero-orbit span:nth-child(3) {
  inset: 3rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.28);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: grid;
  gap: 1rem;
}

.today-cockpit {
  display: grid;
  gap: 1rem;
}

.cockpit-status {
  display: grid;
  grid-template-columns: 11rem minmax(20rem, 1fr) 12rem 15rem;
  gap: 0.85rem;
}

.cockpit-status article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    var(--panel-glaze),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.cockpit-status article {
  min-height: 8.8rem;
  padding: 1rem;
}

.cockpit-status span,
.cockpit-status small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.cockpit-status strong {
  display: block;
  margin: 0.38rem 0;
  font-size: 1.35rem;
}

.today-focus-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.today-focus-card h2 {
  margin: 0;
  font-size: 1.65rem;
}

.compact-head {
  margin-bottom: 0.65rem;
}

.today-focus-card textarea {
  min-height: 4.8rem;
  resize: none;
}

.cockpit-core {
  display: grid;
  grid-template-columns: minmax(18rem, 0.9fr) minmax(22rem, 1.12fr) minmax(18rem, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.cockpit-feedback {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  gap: 1rem;
  align-items: start;
}

.today-action-form,
.timer-form,
.manual-log-form {
  display: grid;
  gap: 0.7rem;
}

.today-action-form {
  grid-template-columns: minmax(0, 1fr) minmax(8rem, 0.7fr) auto;
  margin-bottom: 0.85rem;
}

.timer-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timer-form button {
  grid-column: 1 / -1;
}

.manual-log-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.manual-log-form button {
  grid-column: 1 / -1;
}

.timer-display {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--cyan) 28%, transparent);
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--cyan) 18%, transparent), transparent 12rem),
    color-mix(in srgb, var(--surface-strong) 86%, transparent);
}

.timer-display span,
.timer-display small {
  color: var(--muted);
  font-weight: 800;
}

.timer-display strong {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: clamp(2.2rem, 4vw, 4rem);
  letter-spacing: 0;
}

.timer-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.75rem;
}

.today-action-list,
.time-log-list {
  display: grid;
  gap: 0.7rem;
}

.today-action-item,
.project-summary-card,
.time-log-row {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--control-bg);
  padding: 0.85rem;
}

.today-action-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem 0.75rem;
  align-items: center;
}

.today-action-item label {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  color: var(--text);
}

.today-action-item input[type="checkbox"] {
  width: 1.1rem;
  min-height: 1.1rem;
  accent-color: var(--cyan);
}

.today-action-item small {
  color: var(--muted);
  grid-column: 1;
}

.today-action-item .item-actions {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.today-action-item.is-done span {
  color: var(--muted);
  text-decoration: line-through;
}

.today-action-item.project-action {
  border-color: rgba(66, 232, 221, 0.24);
  background: color-mix(in srgb, var(--cyan) 8%, transparent);
}

.today-action-item.overdue-action {
  border-color: rgba(255, 123, 154, 0.48);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--red) 14%, transparent), transparent 52%),
    var(--control-bg);
}

.today-action-item.overdue-action small {
  color: var(--danger-text);
}

.project-summary-card {
  display: grid;
  gap: 0.45rem;
}

.project-summary-card h4 {
  margin-bottom: 0;
}

.project-time-line,
.quest-time-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.86rem;
}

.project-time-line strong,
.quest-time-summary strong {
  color: var(--green);
}

.time-bar-list {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.time-bar-row {
  display: grid;
  grid-template-columns: minmax(10rem, 0.55fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.time-bar-row strong,
.time-bar-row span {
  display: block;
}

.time-bar-row span {
  color: var(--muted);
  font-size: 0.84rem;
}

.time-bar-row i {
  display: block;
  height: 0.72rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.time-bar-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--cyan));
}

.category-bars .time-bar-row b {
  background: linear-gradient(90deg, var(--amber), var(--violet));
}

.time-log-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.time-log-row p {
  margin-bottom: 0;
  color: var(--muted);
}

.time-log-row span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--cyan);
  font-weight: 900;
}

.page-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(24rem, 34rem);
  gap: 1rem;
  align-items: end;
  overflow: hidden;
  min-height: 11rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(66, 232, 221, 0.12), transparent 56%),
    linear-gradient(135deg, rgba(14, 24, 38, 0.96), rgba(28, 35, 49, 0.74));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.page-head h2 {
  margin-bottom: 0.45rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.page-head p:last-child {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--muted);
}

.page-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.page-stat-row article {
  min-height: 5.2rem;
  padding: 0.8rem;
  border: 1px solid rgba(212, 224, 255, 0.14);
  border-radius: 14px;
  background: var(--canvas-bg);
}

.page-stat-row span {
  display: block;
  margin-bottom: 0.48rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.page-stat-row strong {
  font-size: 1.25rem;
}

.suite-head {
  background:
    linear-gradient(90deg, rgba(105, 169, 255, 0.18), transparent 55%),
    var(--surface);
}

.library-head {
  background:
    linear-gradient(90deg, rgba(124, 231, 168, 0.16), transparent 55%),
    var(--surface);
}

.vault-head {
  background:
    linear-gradient(90deg, rgba(255, 209, 102, 0.14), transparent 55%),
    var(--surface);
}

.workshop-head {
  background:
    linear-gradient(90deg, rgba(180, 156, 255, 0.16), transparent 55%),
    var(--surface);
}

.desk-head {
  background:
    linear-gradient(90deg, rgba(105, 169, 255, 0.14), rgba(255, 209, 102, 0.08)),
    var(--surface);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.stat-card {
  min-height: 6.8rem;
}

.stat-card span {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-weight: 800;
}

.stat-card strong {
  font-size: 1.75rem;
}

.stat-level strong {
  color: var(--amber);
}

.stat-body strong {
  color: var(--blue);
}

.stat-money strong {
  color: var(--green);
}

.stat-quest strong {
  color: var(--violet);
}

.two-column,
.module-grid,
.finance-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.finance-workspace {
  display: grid;
  grid-template-columns: minmax(20rem, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
  align-items: start;
}

.warehouse-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.account-panel {
  grid-column: 1 / -1;
}

.fixed-asset-panel {
  grid-column: 1 / -1;
  grid-row: 4;
}

.fixed-asset-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
}

.fixed-asset-modal {
  width: min(44rem, calc(100vw - 2rem));
  max-height: min(42rem, calc(100vh - 2rem));
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--cyan) 8%, transparent), transparent 36%),
    var(--surface-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.fixed-asset-modal > .auth-modal__head {
  padding: 1.25rem 1.25rem 0;
}

.fixed-asset-modal h3 {
  margin: 0.2rem 0 0;
}

.fixed-asset-modal .fixed-asset-form {
  padding: 1.25rem;
}

.fixed-asset-modal__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  grid-column: 1 / -1;
}

.ledger-panel {
  grid-column: 2;
  grid-row: 3;
}

.finance-entry-panel {
  grid-column: 1;
  grid-row: 3;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.profile-panel,
.body-panel,
.inventory-panel,
.shelf-panel,
.finance-panel,
.ledger-panel,
.quest-panel,
.journal-panel,
.memory-panel {
  background:
    linear-gradient(135deg, rgba(96, 165, 250, 0.1), transparent 35%),
    var(--surface);
}

.form-grid,
.inventory-form,
.finance-form,
.account-form,
.fixed-asset-form,
.ledger-filter,
.quest-form,
.journal-form,
.body-form {
  display: grid;
  gap: 0.85rem;
}

.profile-panel,
.body-panel,
.inventory-panel,
.shelf-panel,
.finance-panel,
.ledger-panel,
.quest-panel,
.journal-panel,
.memory-panel,
.kanban-column {
  min-height: 18rem;
}

.form-grid,
.inventory-form,
.finance-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shelf-panel {
  min-height: 34rem;
}

.shelf-panel .section-head {
  align-items: start;
}

.warehouse-add-toggle {
  min-width: 7.5rem;
  white-space: nowrap;
}

.inventory-add-panel {
  display: none;
  margin-bottom: 1rem;
  border: 1px solid rgba(66, 232, 221, 0.2);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(66, 232, 221, 0.08), transparent 45%),
    rgba(255, 255, 255, 0.045);
  padding: 1rem;
}

.inventory-add-panel.is-open {
  display: block;
}

.inventory-add-panel .inventory-form {
  align-items: end;
}

.inventory-form input[type="file"] {
  padding: 0.55rem 0.75rem;
}

.file-picker__control {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.6rem;
  align-items: center;
  min-height: 3rem;
}

.file-picker__control input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-picker__button,
.file-picker__name {
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.78rem 0.9rem;
  font-weight: 900;
}

.file-picker__button {
  border-color: rgba(66, 232, 221, 0.36);
  background: rgba(66, 232, 221, 0.11);
  color: var(--text);
  white-space: nowrap;
}

.file-picker__name {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.warehouse-filter {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  overflow-x: auto;
  padding: 0.08rem 0.04rem 0.35rem;
  scrollbar-width: thin;
}

.box-card {
  position: relative;
  flex: 0 0 auto;
  min-width: 6.8rem;
  min-height: 0;
  overflow: hidden;
  --box-accent: rgba(66, 232, 221, 0.55);
  --box-soft: rgba(66, 232, 221, 0.1);
  --box-glow: rgba(66, 232, 221, 0.14);
  border: 1px solid color-mix(in srgb, var(--box-accent) 42%, var(--line));
  border-radius: 999px;
  background:
    linear-gradient(180deg, var(--box-soft), transparent 46%),
    rgba(255, 255, 255, 0.055);
  color: var(--text);
  padding: 0.48rem 0.78rem;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.box-card::before {
  display: none;
}

.box-card strong,
.box-card small {
  position: relative;
  display: inline;
}

.box-card strong {
  margin-left: 0.38rem;
  font-size: 0.82rem;
}

.box-card small {
  display: none;
}

.box-card.active,
.box-card:hover {
  border-color: var(--box-accent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--box-accent) 22%, transparent), transparent 48%),
    color-mix(in srgb, var(--box-accent) 9%, transparent);
  box-shadow: 0 8px 20px var(--box-glow);
  transform: translateY(-1px);
}

.box-card--all {
  --box-accent: rgba(66, 232, 221, 0.66);
  --box-soft: rgba(66, 232, 221, 0.12);
  --box-glow: rgba(34, 211, 238, 0.16);
}

.box-card--knowledge {
  --box-accent: rgba(105, 169, 255, 0.7);
  --box-soft: rgba(105, 169, 255, 0.12);
  --box-glow: rgba(105, 169, 255, 0.16);
}

.box-card--course {
  --box-accent: rgba(124, 231, 168, 0.68);
  --box-soft: rgba(124, 231, 168, 0.12);
  --box-glow: rgba(124, 231, 168, 0.14);
}

.box-card--media {
  --box-accent: rgba(244, 114, 182, 0.66);
  --box-soft: rgba(244, 114, 182, 0.12);
  --box-glow: rgba(244, 114, 182, 0.14);
}

.box-card--idea {
  --box-accent: rgba(255, 209, 102, 0.72);
  --box-soft: rgba(255, 209, 102, 0.13);
  --box-glow: rgba(255, 209, 102, 0.14);
}

.box-card--tool {
  --box-accent: rgba(167, 139, 250, 0.72);
  --box-soft: rgba(167, 139, 250, 0.12);
  --box-glow: rgba(167, 139, 250, 0.15);
}

.box-card--default {
  --box-accent: rgba(148, 163, 184, 0.64);
  --box-soft: rgba(148, 163, 184, 0.11);
  --box-glow: rgba(148, 163, 184, 0.12);
}

.account-form,
.fixed-asset-form,
.ledger-filter {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fixed-asset-category-field {
  min-width: 0;
}

.fixed-asset-category-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
}

.fixed-asset-category-control .icon-btn {
  width: 2.9rem;
  min-height: 2.9rem;
  font-size: 1.2rem;
}

.account-form button,
.fixed-asset-form button {
  white-space: nowrap;
}

.account-list,
.fixed-asset-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.fixed-asset-category-filter {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  margin-top: 1rem;
  padding-bottom: 0.2rem;
  scrollbar-width: thin;
}

.fixed-asset-category-chip {
  flex: 0 0 auto;
  min-height: 2.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.fixed-asset-category-chip:hover,
.fixed-asset-category-chip.active {
  border-color: rgba(66, 232, 221, 0.58);
  background: rgba(66, 232, 221, 0.12);
  color: var(--text);
}

.fixed-asset-workspace {
  display: grid;
  grid-template-columns: minmax(18rem, 0.95fr) minmax(22rem, 1.05fr);
  gap: 1rem;
  align-items: start;
}

.account-card,
.fixed-asset-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  padding: 0.85rem;
}

.fixed-asset-list:not(.empty-list) {
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  align-items: stretch;
}

.fixed-asset-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 0.65rem;
  min-height: 12.7rem;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.fixed-asset-card.active,
.fixed-asset-card:hover {
  border-color: rgba(66, 232, 221, 0.42);
  background: rgba(66, 232, 221, 0.08);
  transform: translateY(-1px);
}

.fixed-asset-card__topline,
.fixed-asset-card__value,
.fixed-asset-detail-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.fixed-asset-card h4 {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-card p,
.fixed-asset-card p,
.fixed-asset-card__duration {
  margin-bottom: 0;
  color: var(--muted);
}

.fixed-asset-card__duration {
  font-size: 0.8rem;
  font-weight: 800;
}

.account-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.account-actions .primary-btn {
  min-height: 2.35rem;
  padding: 0.45rem 0.8rem;
  white-space: nowrap;
}

.delete-account-btn,
.delete-fixed-asset-btn,
.asset-attribute-row .icon-btn,
.ledger-row .icon-btn,
.kanban-card .icon-btn,
.journal-card .icon-btn,
.archive-card .icon-btn,
.history-row .icon-btn,
.today-action-item .icon-btn,
.time-log-row .icon-btn {
  border-color: rgba(255, 123, 154, 0.38);
  background: var(--danger-bg);
  color: var(--danger-text);
}

.delete-account-btn:hover,
.delete-fixed-asset-btn:hover,
.asset-attribute-row .icon-btn:hover,
.ledger-row .icon-btn:hover,
.kanban-card .icon-btn:hover,
.journal-card .icon-btn:hover,
.archive-card .icon-btn:hover,
.history-row .icon-btn:hover,
.today-action-item .icon-btn:hover,
.time-log-row .icon-btn:hover {
  border-color: rgba(255, 123, 154, 0.72);
  background: rgba(255, 123, 154, 0.16);
  box-shadow: 0 12px 28px rgba(255, 123, 154, 0.12);
}

.fixed-asset-card strong {
  display: block;
  color: var(--green);
}

.fixed-asset-card__value {
  align-items: end;
  border-top: 1px solid rgba(212, 224, 255, 0.1);
  padding-top: 0.65rem;
}

.fixed-asset-card__value span,
.fixed-asset-detail-rating span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.fixed-asset-detail {
  min-height: 20rem;
}

.fixed-asset-detail-card,
.asset-attribute-row {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.fixed-asset-detail-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.fixed-asset-detail-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  border: 1px solid rgba(255, 209, 102, 0.18);
  border-radius: 14px;
  background: rgba(255, 209, 102, 0.06);
  padding: 0.7rem 0.8rem;
}

.fixed-asset-rating {
  display: flex;
  align-items: center;
  gap: 0.12rem;
}

.rating-star {
  width: 1.5rem;
  min-height: 1.65rem;
  border: 0;
  background: transparent;
  color: rgba(255, 209, 102, 0.26);
  padding: 0;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.rating-star:hover,
.rating-star.is-filled {
  color: var(--amber);
}

.rating-clear-btn {
  margin-left: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0.25rem 0.48rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.rating-clear-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.asset-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.asset-detail-grid article {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--canvas-bg);
  padding: 0.85rem;
}

.asset-detail-grid span {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.asset-detail-grid strong {
  color: var(--green);
}

.asset-attribute-section,
.asset-attribute-list {
  display: grid;
  gap: 0.7rem;
}

.asset-attribute-form {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr) auto;
  gap: 0.65rem;
}

.asset-attribute-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
}

.asset-attribute-row p {
  margin-bottom: 0;
  color: var(--muted);
}

.ledger-filter {
  margin-bottom: 1rem;
}

.expense-trend {
  margin-bottom: 1rem;
  border: 1px solid rgba(105, 169, 255, 0.2);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(105, 169, 255, 0.1), transparent 52%),
    rgba(255, 255, 255, 0.035);
  padding: 0.9rem;
}

.expense-trend__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
}

.expense-trend__head h4 {
  margin: 0.2rem 0 0;
}

.expense-trend__eyebrow {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.expense-trend__head > strong {
  color: var(--amber);
  font-size: 1.15rem;
}

.expense-trend__status {
  min-height: 1.2rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

#expenseTrendChart {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--canvas-bg);
}

.confirm-dialog {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 1rem;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(10px);
}

.confirm-dialog.is-open {
  display: grid;
}

.confirm-dialog__panel {
  width: min(28rem, 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 42%),
    var(--surface-strong);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.confirm-dialog__panel p:last-of-type {
  color: var(--muted);
}

.confirm-dialog__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.balance-adjust-field,
.balance-ledger-choice {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.balance-ledger-choice {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  color: var(--text);
  font-weight: 800;
}

.balance-ledger-choice input {
  width: 1.05rem;
  min-height: 1.05rem;
  accent-color: var(--cyan);
}

.danger-btn {
  border-color: rgba(255, 123, 154, 0.54);
  background:
    linear-gradient(135deg, rgba(255, 123, 154, 0.24), rgba(255, 209, 102, 0.08)),
    var(--danger-bg);
  color: var(--danger-text);
}

.danger-btn:hover {
  border-color: rgba(255, 123, 154, 0.78);
  background:
    linear-gradient(135deg, rgba(255, 123, 154, 0.34), rgba(255, 209, 102, 0.12)),
    rgba(255, 123, 154, 0.16);
  box-shadow: 0 14px 34px rgba(255, 123, 154, 0.14);
}

.quest-form {
  grid-template-columns: 1fr;
}

.quest-form textarea {
  grid-column: 1 / -1;
}

.quest-builder {
  gap: 0.85rem;
}

.quest-builder-section {
  display: grid;
  gap: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.85rem;
}

.quest-builder-section h4 {
  margin: 0;
  color: var(--cyan);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quest-builder-grid,
.quest-builder-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.quest-builder-split label {
  display: grid;
  gap: 0.4rem;
}

.quest-builder-split label span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.journal-form {
  grid-template-columns: 1fr 0.7fr 0.8fr auto;
}

.journal-form textarea {
  grid-column: 1 / -1;
}

.body-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

label {
  display: grid;
  gap: 0.42rem;
  color: var(--muted);
  font-weight: 800;
}

.wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--text);
  outline: none;
  padding: 0.75rem;
}

input,
select {
  min-height: 2.9rem;
}

input::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 68%, transparent);
}

select option {
  background: var(--surface-strong);
  color: var(--text);
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.primary-btn {
  min-height: 3rem;
  padding: 0.65rem 1rem;
  white-space: nowrap;
}

.primary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  box-shadow: none;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.metric-tile {
  display: grid;
  gap: 0.35rem;
  min-height: 4.9rem;
  padding: 0.8rem;
  text-align: left;
}

.metric-tile strong {
  overflow: hidden;
  font-size: 1.18rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-tile span {
  white-space: nowrap;
}

#bodyChart {
  display: block;
  width: 100%;
  min-height: 10rem;
  height: clamp(10rem, 22vh, 13rem);
  max-height: 13rem;
  margin-bottom: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--canvas-bg);
}

.body-panel .empty-list {
  min-height: 4.6rem;
}

.body-panel .body-form {
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.body-form input[type="date"] {
  min-width: 0;
}

.body-panel .compact-list {
  gap: 0.55rem;
}

.compact-list,
.item-list,
.archive-grid,
.ledger-list,
.journal-list,
.kanban-list {
  display: grid;
  gap: 0.75rem;
}

.ledger-list {
  max-height: 31rem;
  overflow-y: auto;
  padding-right: 0.25rem;
  scrollbar-width: thin;
}

.empty-list {
  min-height: 9rem;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(212, 224, 255, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(66, 232, 221, 0.06), transparent 45%),
    rgba(255, 255, 255, 0.035);
  color: var(--muted);
  text-align: center;
}

.shelf-panel .archive-grid:not(.empty-list) {
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.item-card,
.archive-card,
.ledger-row,
.journal-card,
.kanban-card,
.history-row {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.item-card {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem;
}

.warehouse-item-card {
  position: relative;
  overflow: hidden;
}

.warehouse-item-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 0.42rem;
  background: linear-gradient(90deg, rgba(66, 232, 221, 0.45), rgba(255, 209, 102, 0.28));
}

.rating-stars {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin: 0.35rem 0 0.5rem;
}

.star-row {
  color: rgba(255, 209, 102, 0.28);
  font-size: 1.12rem;
  letter-spacing: 0.05em;
}

.star-row .is-filled {
  color: var(--amber);
  text-shadow: 0 0 16px rgba(255, 209, 102, 0.22);
}

.rating-stars strong {
  color: var(--amber);
  font-size: 0.88rem;
}

.attachment-chip {
  display: inline-flex;
  max-width: 100%;
  overflow: hidden;
  align-items: center;
  margin-top: 0.55rem;
  border: 1px solid rgba(105, 169, 255, 0.28);
  border-radius: 999px;
  background: var(--chip-blue-bg);
  color: var(--chip-blue-text);
  padding: 0.35rem 0.62rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.attachment-chip:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.inventory-detail {
  margin-top: 1.2rem;
}

.inventory-detail-empty,
.inventory-detail-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(66, 232, 221, 0.08), transparent 52%),
    rgba(255, 255, 255, 0.055);
  padding: 1rem;
}

.inventory-detail.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: auto;
  margin: 0;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  padding: clamp(0.8rem, 2vw, 1.4rem);
  backdrop-filter: blur(14px);
}

.inventory-detail.is-fullscreen .inventory-detail-card {
  width: min(76rem, 100%);
  min-height: calc(100vh - 2.8rem);
  margin: 0 auto;
}

.inventory-detail-empty {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
}

.inventory-detail-empty strong {
  color: var(--text);
}

.inventory-detail-card {
  display: grid;
  gap: 1rem;
  min-height: 26rem;
}

.inventory-reader-shell {
  border-color: rgba(255, 209, 102, 0.2);
  background:
    linear-gradient(90deg, rgba(255, 209, 102, 0.08), transparent 14%, transparent 86%, rgba(66, 232, 221, 0.07)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 48%),
    rgba(255, 255, 255, 0.055);
  box-shadow:
    inset 1.1rem 0 2rem rgba(0, 0, 0, 0.08),
    inset -1.1rem 0 2rem rgba(255, 255, 255, 0.03);
}

.inventory-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.inventory-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.inventory-detail-grid label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-weight: 900;
}

.inventory-detail-grid .wide {
  grid-column: 1 / -1;
}

.inventory-note-editor {
  display: grid;
  gap: 0.7rem;
}

.inventory-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  border: 1px solid rgba(212, 224, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.55rem;
}

.inventory-editor-toolbar button,
.inventory-image-upload {
  min-height: 2.25rem;
  border: 1px solid rgba(105, 169, 255, 0.28);
  border-radius: 10px;
  background: var(--chip-blue-bg);
  color: var(--chip-blue-text);
  padding: 0.42rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 900;
}

.inventory-editor-toolbar button:hover,
.inventory-image-upload:hover {
  border-color: rgba(66, 232, 221, 0.5);
  background: rgba(66, 232, 221, 0.12);
}

.inventory-image-upload {
  position: relative;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
}

.inventory-image-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.inventory-rich-editor {
  min-height: 18rem;
  overflow: auto;
  border: 1px solid rgba(255, 209, 102, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 30%),
    rgba(255, 255, 255, 0.045);
  outline: none;
  padding: clamp(1rem, 2vw, 1.5rem);
  color: var(--text);
  line-height: 1.75;
}

.inventory-rich-editor:focus {
  border-color: rgba(66, 232, 221, 0.55);
  box-shadow: 0 0 0 3px rgba(66, 232, 221, 0.12);
}

.inventory-rich-editor:empty::before {
  content: "鍦ㄨ繖閲屽啓姝ｆ枃銆佹憳褰曘€侀厤缃鏄庯紝涔熷彲浠ユ彃鍏ュ浘鐗囥€?;
  color: var(--muted);
}

.inventory-rich-editor h3 {
  margin: 0.8rem 0 0.45rem;
  color: var(--amber);
}

.inventory-rich-editor p,
.inventory-rich-editor ul,
.inventory-rich-editor blockquote,
.inventory-rich-editor figure {
  margin: 0 0 0.8rem;
}

.inventory-rich-editor ul {
  padding-left: 1.35rem;
}

.inventory-rich-editor blockquote {
  border-left: 3px solid rgba(255, 209, 102, 0.55);
  color: var(--muted);
  padding-left: 0.85rem;
}

.inventory-rich-editor figure {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
}

.inventory-rich-editor img {
  max-width: 100%;
  border: 1px solid rgba(212, 224, 255, 0.16);
  border-radius: 14px;
}

.inventory-rich-editor figcaption {
  color: var(--muted);
  font-size: 0.82rem;
}

.inventory-detail-attachment {
  border: 1px solid rgba(105, 169, 255, 0.28);
  border-radius: 14px;
  background: var(--chip-blue-bg);
  color: var(--chip-blue-text);
  padding: 0.75rem;
  font-weight: 850;
}

.inventory-attachment-list {
  display: grid;
  gap: 0.65rem;
}

.inventory-attachment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.65rem;
  align-items: center;
}

.inventory-attachment-row div {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.inventory-detail-attachment strong,
.inventory-detail-attachment span,
.inventory-detail-attachment small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.inventory-detail-attachment span,
.inventory-detail-attachment small {
  color: var(--muted);
  font-size: 0.82rem;
}

.inventory-attachment-row button {
  flex: 0 0 auto;
}

.inventory-attachment-editor {
  display: grid;
  grid-template-columns: minmax(16rem, 1fr);
  gap: 0.75rem;
  align-items: center;
  border: 1px solid rgba(212, 224, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.75rem;
}

.inventory-detail-file-picker {
  margin: 0;
}

.inventory-remove-attachment {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  border: 1px solid rgba(255, 123, 154, 0.28);
  border-radius: 12px;
  background: var(--danger-bg);
  color: var(--danger-text);
  padding: 0.7rem 0.85rem;
  font-weight: 900;
  white-space: nowrap;
}

.inventory-remove-attachment input {
  width: 1rem;
  min-height: 1rem;
  accent-color: var(--danger-text);
}

.warehouse-item-card {
  cursor: pointer;
}

.warehouse-item-card:focus {
  outline: 2px solid rgba(66, 232, 221, 0.5);
  outline-offset: 3px;
}

/* Knowledge base surface */
.knowledge-page-head {
  min-height: 7.8rem;
  gap: 1rem;
}

.knowledge-sync-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
  gap: 0.55rem;
  max-width: 44rem;
}

.bridge-url-field,
.knowledge-toolbar label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.bridge-url-field input {
  width: 12rem;
  min-height: 2.5rem;
}

.sync-status {
  align-self: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.knowledge-stats {
  display: grid;
  grid-template-columns: minmax(9.5rem, 0.58fr) minmax(0, 1.58fr) minmax(0, 1.28fr);
  gap: 0.6rem;
  margin: 0 0 0.75rem;
}

.knowledge-stat,
.knowledge-stat-group {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.knowledge-stat {
  display: grid;
  min-height: 4.8rem;
  padding: 0.7rem;
  color: var(--text);
  text-align: left;
}

button.knowledge-stat {
  cursor: pointer;
}

.knowledge-stat span,
.knowledge-stat-group header span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.knowledge-stat strong {
  align-self: center;
  font-size: 1.35rem;
  line-height: 1;
}

.knowledge-stat small,
.knowledge-stat-group header small {
  color: var(--muted);
  font-size: 0.72rem;
}

.knowledge-stat--total {
  border-color: color-mix(in srgb, var(--cyan) 42%, var(--line));
  background: linear-gradient(135deg, rgba(66, 232, 221, 0.16), var(--surface));
}

.knowledge-stat-group {
  min-width: 0;
  overflow: hidden;
  padding: 0.6rem;
}

.knowledge-stat-group header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.42rem;
}

.knowledge-stat-group > div {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.04rem 0.02rem 0.22rem;
  scrollbar-width: thin;
}

.knowledge-stat-group--category .knowledge-stat {
  flex: 0 0 4.7rem;
}

.knowledge-stat-group--rating .knowledge-stat {
  flex: 0 0 4.9rem;
}

.knowledge-stat-group .knowledge-stat {
  min-height: 3.35rem;
  padding: 0.42rem;
}

.knowledge-stat-group .knowledge-stat strong {
  font-size: 1rem;
}

.knowledge-stat-group .knowledge-stat span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-stat-group .knowledge-stat small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-stat.active,
.knowledge-stat:hover {
  border-color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 12%, var(--surface));
}

.knowledge-toolbar {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(8.5rem, 0.3fr) minmax(8.5rem, 0.3fr) auto;
  gap: 0.55rem;
  align-items: end;
  margin-bottom: 0.65rem;
}

.knowledge-toolbar label > span {
  display: block;
}

.knowledge-toolbar input,
.knowledge-toolbar select {
  width: 100%;
  min-height: 2.35rem;
  padding-block: 0.48rem;
}

.knowledge-search input {
  min-width: 0;
}

.knowledge-workspace {
  display: block;
}

.knowledge-list-panel {
  min-height: 22rem;
}

.knowledge-filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.2rem 0 0.75rem;
  color: var(--muted);
}

.knowledge-filter-heading strong {
  color: var(--text);
}

.knowledge-filter-heading span {
  font-size: 0.82rem;
}

.knowledge-card-grid {
  align-items: start;
}

.knowledge-card {
  position: relative;
  min-height: 13rem;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.knowledge-card:hover,
.knowledge-card.is-selected {
  border-color: color-mix(in srgb, var(--cyan) 54%, var(--line));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  transform: translateY(-2px);
}

.knowledge-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.knowledge-card-rating,
.knowledge-reader-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.star-row {
  display: inline-flex;
  gap: 0.08rem;
  color: rgba(255, 209, 102, 0.3);
  letter-spacing: 0;
}

.star-row .is-filled {
  color: var(--amber);
}

.knowledge-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.tag--sub {
  border-color: rgba(255, 209, 102, 0.3);
  background: rgba(255, 209, 102, 0.1);
  color: var(--amber);
}

.knowledge-empty {
  display: grid;
  min-height: 12rem;
  place-items: center;
  align-content: center;
  gap: 0.4rem;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

.knowledge-empty strong {
  color: var(--text);
}

.inventory-detail {
  display: none;
  margin-top: 0;
}

.inventory-detail.is-open {
  display: block;
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 55;
  width: min(43rem, 94vw);
  overflow: auto;
  padding: 1rem;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.knowledge-reader-shell {
  min-height: calc(100vh - 2rem);
  border-radius: 14px;
  background: var(--surface-strong);
}

.detail-source {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

.knowledge-reader-toolbar {
  display: flex;
  gap: 0.45rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.65rem;
}

.knowledge-reader-toolbar .is-active {
  border-color: var(--cyan);
  background: rgba(66, 232, 221, 0.12);
}

.knowledge-preview,
.knowledge-markdown-input {
  min-height: 24rem;
}

.knowledge-edit-pane {
  display: grid;
  gap: 0.8rem;
}

.knowledge-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.knowledge-detail-grid label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-weight: 900;
}

.knowledge-detail-grid .wide {
  grid-column: 1 / -1;
}

.knowledge-markdown-input {
  width: 100%;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  line-height: 1.7;
}

.markdown-body {
  color: var(--text);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  margin: 0.8rem 0 0.45rem;
  color: var(--amber);
}

.markdown-body p,
.markdown-body ul,
.markdown-body blockquote {
  margin: 0 0 0.85rem;
}

.markdown-body ul {
  padding-left: 1.3rem;
}

.markdown-body blockquote {
  border-left: 3px solid var(--amber);
  color: var(--muted);
  padding-left: 0.8rem;
}

.markdown-body code {
  border-radius: 5px;
  background: rgba(105, 169, 255, 0.12);
  padding: 0.1rem 0.3rem;
}

.markdown-empty {
  color: var(--muted);
}

.item-topline,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.45rem;
}

.item-badge,
.tag {
  display: inline-flex;
  min-height: 1.5rem;
  align-items: center;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
  padding: 0.1rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
}

time {
  color: var(--muted);
  font-size: 0.85rem;
}

.item-card h4,
.archive-card h4,
.journal-card h4,
.kanban-card h4 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.item-card p,
.archive-card p,
.journal-card p,
.kanban-card p,
.ledger-row p,
.history-row p {
  margin-bottom: 0;
  color: var(--muted);
  white-space: pre-wrap;
}

.icon-btn {
  display: grid;
  flex: 0 0 2.25rem;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  padding: 0;
  font-size: 1.15rem;
  line-height: 1;
}

.archive-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.archive-card,
.journal-card,
.kanban-card {
  padding: 0.9rem;
}

.kanban-card {
  display: grid;
  gap: 0.75rem;
}

.quest-objective {
  border-left: 3px solid rgba(66, 232, 221, 0.58);
  padding-left: 0.75rem;
}

.quest-auto-next,
.quest-progress-line,
.quest-time-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  align-items: center;
  justify-content: space-between;
}

.quest-auto-next {
  border: 1px solid rgba(66, 232, 221, 0.24);
  border-radius: 14px;
  background: rgba(66, 232, 221, 0.07);
  padding: 0.7rem;
}

.quest-auto-next span,
.quest-progress-line span,
.quest-time-summary span,
.quest-detail-title,
.quest-check-row small,
.quest-empty-detail {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.quest-auto-next strong,
.quest-progress-line strong,
.quest-time-summary strong {
  color: var(--green);
}

.quest-krs,
.quest-actions {
  display: grid;
  gap: 0.5rem;
}

.quest-add-panel {
  display: grid;
  gap: 0.45rem;
  border-top: 1px solid rgba(212, 224, 255, 0.12);
  padding-top: 0.55rem;
}

.quest-add-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(6.3rem, 0.62fr) 5.4rem;
  gap: 0.38rem;
}

.quest-add-form input {
  min-height: 2.2rem;
  border-radius: 10px;
  padding: 0.48rem 0.58rem;
  font-size: 0.82rem;
}

.quest-add-form button {
  min-height: 2.2rem;
  padding: 0.4rem 0.5rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

.quest-detail-title {
  color: var(--cyan);
}

.quest-check-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 3.2rem;
  gap: 0.55rem;
  align-items: start;
  border: 1px solid rgba(212, 224, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.62rem;
}

.quest-check-row input {
  width: 1rem;
  min-height: 1rem;
  margin-top: 0.12rem;
  accent-color: var(--cyan);
}

.quest-check-row span,
.quest-check-row strong,
.quest-check-row small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.quest-check-row.is-done strong {
  color: var(--muted);
  text-decoration: line-through;
}

.mini-edit-btn {
  align-self: center;
  min-height: 1.8rem;
  width: 3.2rem;
  border: 1px solid rgba(105, 169, 255, 0.28);
  border-radius: 999px;
  background: var(--chip-blue-bg);
  color: var(--chip-blue-text);
  padding: 0.2rem 0;
  font-size: 0.74rem;
  font-weight: 900;
}

.mini-edit-btn:hover {
  border-color: rgba(66, 232, 221, 0.5);
  background: rgba(66, 232, 221, 0.12);
}

.quest-edit-panel:empty {
  display: none;
}

.quest-edit-form {
  display: grid;
  gap: 0.55rem;
  border: 1px solid rgba(66, 232, 221, 0.28);
  border-radius: 14px;
  background: rgba(66, 232, 221, 0.07);
  padding: 0.7rem;
}

.quest-edit-form > strong {
  color: var(--cyan);
  font-size: 0.84rem;
}

.quest-edit-form input {
  min-height: 2.35rem;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  font-size: 0.86rem;
}

.quest-edit-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.quest-priority {
  border-color: rgba(255, 209, 102, 0.28);
  background: var(--warning-bg);
  color: var(--warning-text);
}

.archive-card .item-actions,
.journal-card .item-actions,
.kanban-card .item-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.vault-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.vault-summary article {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  padding: 0.85rem;
}

.vault-summary span {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.vault-summary strong {
  color: var(--green);
  font-size: 1.2rem;
}

.ledger-row,
.history-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.85rem;
}

.money-plus {
  color: var(--green);
}

.money-minus {
  color: var(--red);
}

.kanban {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.kanban-column {
  min-height: 18rem;
  padding: 0.9rem;
}

.kanban-column h3 {
  margin-bottom: 0.9rem;
}

.progress-bar {
  height: 0.62rem;
  margin-top: 0.7rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--cyan));
}

@media (max-width: 1100px) {
  .landing-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .voyage-card {
    min-height: 28rem;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .top-hud,
  .stats-grid,
  .two-column,
  .module-grid,
  .finance-layout,
  .finance-workspace,
  .warehouse-workspace,
  .kanban,
  .page-head,
  .cockpit-status,
  .cockpit-core,
  .cockpit-feedback {
    grid-template-columns: 1fr;
  }

  .top-hud {
    grid-template-columns: 1fr;
  }

  .hud-status-cluster {
    justify-content: stretch;
    overflow-x: auto;
    padding-bottom: 0.1rem;
  }

  .hud-metric {
    flex: 1 0 9rem;
  }

  .hud-alert-button {
    flex: 0 0 3.05rem;
  }

  .timer-panel {
    order: -1;
  }

  .body-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .today-action-form,
  .timer-form,
  .manual-log-form {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 720px) {
  .landing-gate {
    padding: 1rem;
  }

  .route-star--one {
    left: 10%;
    top: 18%;
  }

  .route-star--two {
    right: 8%;
    top: 56%;
  }

  .route-star--three {
    left: 72%;
    bottom: 6%;
  }

  .landing-nav {
    align-items: flex-start;
  }

  .landing-content {
    padding: 1.8rem 0 1rem;
  }

  .landing-copy h2 {
    font-size: clamp(3.4rem, 18vw, 5.4rem);
  }

  .landing-copy {
    padding: 1.25rem 1rem 1.4rem;
  }

  .landing-copy::before {
    border-radius: 1.4rem;
    backdrop-filter: blur(10px) saturate(125%);
  }

  .landing-kicker {
    margin-bottom: 0.9rem;
    font-size: 0.68rem;
  }

  .landing-copy p:not(.landing-kicker) {
    font-size: 0.94rem;
    line-height: 1.72;
  }

  .landing-actions .primary-btn {
    width: 100%;
  }

  .landing-bottom-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem 0.8rem;
    padding: 0.78rem;
    font-size: 0.64rem;
  }

  .landing-bottom-rail__signal {
    grid-column: 1 / -1;
  }

  .landing-bottom-rail > span:not(.landing-bottom-rail__signal):not(.landing-bottom-rail__mark) {
    padding-left: 0.5rem;
  }

  .landing-bottom-rail__mark {
    grid-column: 1 / -1;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(232, 255, 249, 0.16);
    text-align: left;
  }

  .voyage-card {
    min-height: 24rem;
    border-radius: 22px;
  }

  .voyage-boat {
    transform: translate(-50%, -50%) scale(0.78);
  }

  .voyage-track {
    right: 7%;
    bottom: 18%;
    transform: rotate(-5deg) scale(0.72);
    transform-origin: right center;
  }

  .voyage-readout {
    top: 18%;
    left: 8%;
    font-size: 0.6rem;
  }

  .voyage-panel {
    min-width: 8rem;
    padding: 0.72rem;
  }

  .voyage-panel--top {
    top: 8%;
    right: 6%;
  }

  .voyage-panel--bottom {
    left: 6%;
    bottom: 8%;
  }

  .wordmark-name {
    font-size: 1.18rem;
  }

  .app-shell {
    display: flex;
    flex-direction: column;
  }

  .main {
    order: 1;
  }

  .sidebar {
    order: 2;
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    width: 100%;
    height: auto;
    max-height: none;
    padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
    backdrop-filter: blur(22px);
    align-content: center;
  }

  .top-hud {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cloud-status {
    width: 100%;
  }

  .hud-status-cluster {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto auto;
    gap: 0.38rem;
    align-items: center;
  }

  .hud-metric {
    min-width: 0;
    min-height: 3.3rem;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0.48rem;
    text-align: center;
  }

  .hud-metric .hud-icon,
  .hud-metric small,
  .hud-progress {
    display: none;
  }

  .hud-metric span {
    font-size: 0.66rem;
  }

  .hud-metric strong {
    font-size: 0.86rem;
  }

  .hud-alert-button,
  .avatar-login,
  .profile-avatar-button {
    width: 2.55rem;
    min-height: 2.55rem;
  }

  .user-avatar {
    width: 2.28rem;
    height: 2.28rem;
  }

  .user-menu {
    position: fixed;
    top: 4.8rem;
    right: 0.85rem;
  }

  .section-title,
  .top-hud > .hud-block {
    display: none;
  }

  .auth-form {
    grid-template-columns: 1fr;
  }

  .main,
  .sidebar {
    padding: 0.85rem;
  }

  .main {
    padding-bottom: calc(5.8rem + env(safe-area-inset-bottom));
  }

  .cockpit-shell .sidebar {
    padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom));
  }

  .cockpit-shell .brand,
  .cockpit-shell .theme-switcher,
  .cockpit-shell .save-card {
    display: none;
  }

  .cockpit-shell .nav-tabs {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.36rem;
    align-items: center;
  }

  .cockpit-shell .nav-tab {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.18rem;
    min-height: 3.7rem;
    height: 3.7rem;
    padding: 0.4rem 0.25rem;
    border-radius: 14px;
    text-align: center;
  }

  .cockpit-shell .nav-icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .cockpit-shell .nav-label {
    width: 100%;
    font-size: clamp(0.62rem, 2.7vw, 0.74rem);
    white-space: normal;
  }

  .nav-tabs,
  .form-grid,
  .inventory-form,
  .inventory-add-panel .inventory-form,
  .finance-form,
  .account-form,
  .fixed-asset-form,
  .fixed-asset-workspace,
  .asset-detail-grid,
  .asset-attribute-form,
  .inventory-detail-grid,
  .ledger-filter,
  .quest-form,
  .journal-form,
  .body-form,
  .cockpit-status,
  .cockpit-core,
  .cockpit-feedback,
  .today-action-form,
  .timer-form,
  .manual-log-form,
  .metric-row,
  .vault-summary,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .fixed-asset-list:not(.empty-list) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fixed-asset-modal__actions {
    grid-template-columns: 1fr;
  }

  .expense-trend__head {
    align-items: start;
  }

  .shelf-panel .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .knowledge-page-head,
  .knowledge-sync-actions {
    align-items: stretch;
  }

  .knowledge-sync-actions {
    justify-content: stretch;
  }

  .bridge-url-field {
    width: 100%;
  }

  .bridge-url-field input,
  .knowledge-sync-actions .primary-btn,
  .sync-status {
    width: 100%;
  }

  .knowledge-stats,
  .knowledge-toolbar,
  .knowledge-detail-grid {
    grid-template-columns: 1fr;
  }

  .knowledge-stat-group > div {
    overflow-x: auto;
  }

  .knowledge-toolbar .primary-btn {
    width: 100%;
  }

  .warehouse-add-toggle {
    width: 100%;
  }

  .inventory-detail.is-fullscreen {
    padding: 0.65rem;
  }

  .inventory-detail.is-open {
    inset: auto 0 0;
    width: 100%;
    max-height: 86vh;
    padding: 0.65rem;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .knowledge-reader-shell {
    min-height: 0;
  }

  .inventory-detail-actions,
  .inventory-attachment-editor {
    align-items: stretch;
    flex-direction: column;
  }

  .inventory-detail-actions .primary-btn,
  .inventory-detail-attachment .primary-btn,
  .inventory-remove-attachment,
  .inventory-editor-toolbar button,
  .inventory-image-upload {
    width: 100%;
  }

  .inventory-attachment-editor {
    grid-template-columns: 1fr;
  }

  .inventory-attachment-row {
    grid-template-columns: 1fr;
  }

  .ledger-panel,
  .account-panel,
  .finance-entry-panel,
  .fixed-asset-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .fixed-asset-workspace {
    grid-template-columns: 1fr;
  }

  .fixed-asset-list:not(.empty-list) {
    grid-template-columns: 1fr;
  }

  .cockpit-status article {
    min-height: auto;
  }

  .timer-display strong {
    font-size: 2.45rem;
  }

  .today-action-item,
  .time-log-row,
  .time-bar-row {
    grid-template-columns: 1fr;
  }

  .today-action-item .item-actions {
    grid-row: auto;
    grid-column: auto;
  }

  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .page-head {
    min-height: auto;
  }

  .page-stat-row {
    grid-template-columns: 1fr;
  }

  .health-source-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .health-source-strip .primary-btn {
    width: 100%;
  }

  .primary-btn {
    width: 100%;
  }

  .today-cockpit {
    display: flex;
    flex-direction: column;
  }

  .cockpit-core {
    order: 1;
  }

  .cockpit-status {
    order: 2;
  }

  .cockpit-feedback {
    order: 3;
  }

  .cockpit-shell .nav-tabs {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .cockpit-shell .nav-tab {
    min-width: 0;
    min-height: 3.35rem;
    height: 3.35rem;
    padding: 0.38rem 0.12rem;
  }

  .cockpit-shell .nav-label {
    max-width: 100%;
    overflow: hidden;
    font-size: 0.68rem;
    line-height: 1.08;
    text-overflow: clip;
    white-space: nowrap;
  }

  .cockpit-shell .nav-label {
    font-size: 0;
  }

  .cockpit-shell .nav-label::after {
    font-size: 0.68rem;
    line-height: 1;
  }

  .cockpit-shell [data-tab="dashboard"] .nav-label::after {
    content: "今日";
  }

  .cockpit-shell [data-tab="profile"] .nav-label::after {
    content: "个人";
  }

  .cockpit-shell [data-tab="inventory"] .nav-label::after {
    content: "仓库";
  }

  .cockpit-shell [data-tab="finance"] .nav-label::after {
    content: "资产";
  }

  .cockpit-shell [data-tab="quests"] .nav-label::after {
    content: "项目";
  }

  .cockpit-shell [data-tab="journal"] .nav-label::after {
    content: "复盘";
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
