:root {
  color-scheme: light;
  --bg: #f7f2e9;
  --ink: #151917;
  --muted: #68706b;
  --line: #ddd6c9;
  --panel: #fffdf8;
  --panel-strong: #fef8ee;
  --green: #13865d;
  --red: #c34a36;
  --gold: #d99b2b;
  --blue: #2d6cdf;
  --shadow: 0 14px 38px rgba(43, 37, 26, 0.1);
  --fx-bg: #08110f;
  --fx-cyan: #45f3ff;
  --fx-lime: #81ffbc;
  --fx-pink: #ff5d9e;
  --fx-violet: #8f7cff;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(circle at 18% 16%, rgba(69, 243, 255, 0.18), transparent 32%),
    radial-gradient(circle at 84% 18%, rgba(255, 93, 158, 0.14), transparent 30%),
    linear-gradient(135deg, #06110f 0%, #101819 48%, #1e1714 100%);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

body:has(#loginView:not([hidden])) {
  background:
    radial-gradient(circle at 14% 18%, rgba(69, 243, 255, 0.2), transparent 31%),
    radial-gradient(circle at 82% 20%, rgba(255, 92, 168, 0.14), transparent 32%),
    radial-gradient(circle at 48% 88%, rgba(132, 255, 212, 0.13), transparent 36%),
    linear-gradient(135deg, #04100f 0%, #0a121c 52%, #151016 100%);
}

.app-fx-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0;
}

.cursor-fx-canvas {
  position: fixed;
  inset: 0;
  z-index: 20;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0;
}

.login-view {
  position: relative;
  isolation: isolate;
  width: min(100vw - 32px, 1180px);
  min-height: calc(100vh - max(36px, env(safe-area-inset-top)) - max(52px, env(safe-area-inset-bottom)));
  min-height: calc(100svh - max(36px, env(safe-area-inset-top)) - max(52px, env(safe-area-inset-bottom)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(360px, 0.84fr);
  align-content: center;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(69, 243, 255, 0.18);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.login-hero {
  display: none;
}

.login-road-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.94;
  mix-blend-mode: screen;
}

.login-spotlight-canvas {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  filter: saturate(1.18) contrast(1.06);
}

.login-spotlight-canvas.is-visible {
  opacity: 1;
}

.login-stage {
  position: relative;
  min-height: 680px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 54%, rgba(69, 243, 255, 0.2), transparent 34%),
    radial-gradient(circle at 18% 80%, rgba(132, 255, 212, 0.12), transparent 34%),
    linear-gradient(145deg, #061326 0%, #102a75 50%, #1b42aa 100%);
  color: #fff;
}

.login-brand {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0;
  text-shadow: 0 0 18px rgba(69, 243, 255, 0.18);
}

.login-brand-mark {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 24px;
  font-weight: 850;
}

.login-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.login-brand h2 {
  margin: 2px 0 0;
  font-size: 22px;
}

.login-visual {
  position: relative;
  z-index: 3;
  width: min(110%, 620px);
  height: 460px;
  margin: 4px auto 0;
}

.login-visual-3d {
  overflow: hidden;
}

.login-reference-visual {
  overflow: visible;
}

.login-car-reference {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none;
  user-select: none;
  animation: referenceCarFloat 5.2s ease-in-out infinite;
}

.login-car3d-canvas {
  position: absolute;
  inset: -10% -12% -13%;
  z-index: 4;
  width: 124%;
  height: 123%;
  pointer-events: none;
}

.car3d-ambient {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 9%;
  z-index: 2;
  height: 56%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 72%, rgba(69, 243, 255, 0.34), transparent 58%),
    radial-gradient(ellipse at 50% 52%, rgba(129, 255, 188, 0.12), transparent 64%);
  filter: blur(10px);
  pointer-events: none;
}

.car3d-speed {
  position: absolute;
  z-index: 4;
  height: 2px;
  border-radius: 999px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(69, 243, 255, 0.92), transparent);
  box-shadow: 0 0 18px rgba(69, 243, 255, 0.56);
  animation: speedSweep 1.9s linear infinite;
}

.speed-one {
  left: 2%;
  bottom: 21%;
  width: 54%;
  transform: rotate(-12deg);
}

.speed-two {
  right: 1%;
  bottom: 31%;
  width: 44%;
  animation-delay: -0.7s;
  transform: rotate(-8deg);
}

.speed-three {
  left: 16%;
  bottom: 11%;
  width: 70%;
  animation-delay: -1.2s;
  background: linear-gradient(90deg, transparent, rgba(129, 255, 188, 0.72), transparent);
  transform: rotate(-6deg);
}

.visual-scan {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 18%;
  height: 72px;
  background: linear-gradient(180deg, transparent, rgba(129, 255, 188, 0.14), transparent);
  filter: blur(0.2px);
  animation: loginScan 4.2s ease-in-out infinite;
}

.login-stage-footer {
  position: relative;
  z-index: 4;
  display: flex;
  gap: 24px;
}

.login-stage-footer span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.login-blur {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: loginAuraFloat 8s ease-in-out infinite alternate;
}

.login-blur.one {
  top: 14%;
  right: 9%;
  width: 300px;
  height: 300px;
  background: rgba(59, 130, 246, 0.28);
  filter: blur(80px);
}

.login-blur.two {
  left: 4%;
  bottom: 8%;
  width: 420px;
  height: 420px;
  background: rgba(30, 64, 175, 0.34);
  filter: blur(105px);
  animation-duration: 10s;
}

.login-blur.three {
  left: 34%;
  top: 36%;
  width: 360px;
  height: 360px;
  background: rgba(129, 99, 255, 0.24);
  filter: blur(90px);
  animation-duration: 12s;
}

.login-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(69, 243, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 243, 255, 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), #000 24%, #000 82%, rgba(0, 0, 0, 0.35));
}

.login-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 38px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.98)),
    #fff;
}

.login-title {
  display: block;
  text-align: center;
  margin-bottom: 22px;
}

.login-title h2 {
  margin: 8px 0 0;
  color: #0f172a;
  font-size: 28px;
  line-height: 1.2;
}

.login-title span {
  color: #1e40af;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-title p {
  margin: 10px 0 0;
  color: #6b7280;
  font-size: 14px;
}

button,
input,
select,
textarea {
  font: inherit;
  font-size: 16px;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 16px max(26px, env(safe-area-inset-bottom));
}

.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f4d06f;
  color: #18201d;
  font-size: 26px;
  font-weight: 800;
}

.topbar h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0;
}

.topbar-subtitle {
  display: none;
}

.login-card,
.quick-panel,
.ai-panel,
.report-panel,
.records-panel {
  position: relative;
  border: 1px solid rgba(92, 80, 58, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow);
}

.login-card {
  display: grid;
  gap: 14px;
  width: min(100%, 400px);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.is-authed {
  background:
    radial-gradient(circle at 12% 12%, rgba(69, 243, 255, 0.16), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(255, 93, 158, 0.12), transparent 28%),
    radial-gradient(circle at 62% 82%, rgba(129, 255, 188, 0.1), transparent 34%),
    linear-gradient(135deg, #050914 0%, #0a1021 46%, #11131f 100%);
  color: #eaf4ff;
}

body.is-authed .app-fx-canvas {
  opacity: 0.62;
}

body.is-authed .cursor-fx-canvas {
  opacity: 1;
}

body.is-authed .app-shell {
  width: 100%;
  max-width: none;
  padding: 0;
}

.dashboard-view {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.dash-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.dash-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 22px;
  padding: 24px 18px;
  border-right: 1px solid rgba(139, 167, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(10, 15, 31, 0.92), rgba(5, 8, 18, 0.78)),
    radial-gradient(circle at 24% 0%, rgba(69, 243, 255, 0.15), transparent 38%);
  box-shadow: 18px 0 46px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(24px);
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dash-brand-mark {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #45f3ff, #81ffbc);
  color: #07111c;
  overflow: hidden;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  box-shadow: 0 0 24px rgba(69, 243, 255, 0.28);
}

.dash-brand strong,
.dash-brand span {
  display: block;
}

.dash-brand strong {
  color: #ffffff;
  font-size: 16px;
  letter-spacing: 0;
}

.dash-brand span {
  margin-top: 4px;
  color: rgba(229, 240, 255, 0.52);
  font-size: 12px;
}

.dash-nav {
  display: grid;
  gap: 8px;
}

.dash-nav-btn {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(229, 240, 255, 0.68);
  text-align: left;
}

.dash-nav-btn span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #45f3ff;
}

.dash-nav-btn.active,
.dash-nav-btn:hover {
  border-color: rgba(69, 243, 255, 0.3);
  background: rgba(69, 243, 255, 0.1);
  color: #ffffff;
}

.dash-side-card {
  align-self: end;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(129, 255, 188, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(129, 255, 188, 0.12), rgba(69, 243, 255, 0.06)),
    rgba(255, 255, 255, 0.04);
}

.dash-side-card span,
.dash-side-card small {
  color: rgba(229, 240, 255, 0.62);
}

.dash-side-card b {
  color: #ffffff;
  font-size: 28px;
}

.dash-main {
  min-width: 0;
  padding: 22px;
}

.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.dash-title {
  min-width: 0;
}

.dash-title p {
  margin: 0 0 7px;
  color: rgba(129, 255, 188, 0.78);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.dash-title h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(26px, 2.6vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
}

.dash-title span {
  display: block;
  margin-top: 8px;
  color: rgba(229, 240, 255, 0.58);
  font-size: 14px;
}

.dash-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.is-authed .date-row {
  display: grid;
  grid-template-columns: 46px minmax(150px, 210px) 46px;
  align-items: center;
  gap: 8px;
  margin: 0;
}

body.is-authed .date-row .icon-btn,
body.is-authed .date-row input,
body.is-authed .dash-actions > .icon-btn,
body.is-authed .ghost-btn,
body.is-authed .primary-btn {
  border: 1px solid rgba(139, 167, 255, 0.22);
  border-radius: 8px;
}

body.is-authed .date-row .icon-btn,
body.is-authed .dash-actions > .icon-btn,
body.is-authed .ghost-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #eaf4ff;
  box-shadow: inset 0 0 18px rgba(69, 243, 255, 0.05);
}

body.is-authed .date-row input {
  height: 46px;
  min-height: 46px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  text-align: center;
}

body.is-authed .dash-actions > .icon-btn,
body.is-authed .date-row .icon-btn {
  width: 46px;
  height: 46px;
  min-width: 46px;
  padding: 0;
  font-size: 25px;
  line-height: 1;
}

body.is-authed .ghost-btn,
body.is-authed .primary-btn {
  min-height: 46px;
  padding: 0 16px;
  font-weight: 800;
}

body.is-authed .primary-btn {
  background: linear-gradient(135deg, #45f3ff, #81ffbc);
  color: #06101c;
  box-shadow: 0 14px 30px rgba(69, 243, 255, 0.18);
}

.dash-hero-grid,
.dash-analytics,
.dash-workspace {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.dash-hero-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: stretch;
}

.dash-profit-card,
.dash-ai-card,
.dash-month-card,
.dash-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(139, 167, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.035)),
    rgba(9, 14, 29, 0.74);
  color: #eaf4ff;
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px);
}

.dash-profit-card {
  min-height: 360px;
  grid-row: span 2;
  padding: 26px;
}

.dash-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.94;
}

.profit-card-head,
.section-head {
  position: relative;
  z-index: 2;
}

.profit-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profit-card-head span,
.mini-grid span,
.month-metrics span,
.rank-item small,
.upload-item small {
  color: rgba(229, 240, 255, 0.62);
}

.profit-card-head b {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(129, 255, 188, 0.12);
  color: #81ffbc;
  font-size: 12px;
  letter-spacing: 0.08em;
}

body.is-authed #profitValue {
  position: relative;
  z-index: 2;
  display: block;
  margin: 30px 0 26px;
  color: #ffffff;
  font-size: clamp(64px, 7.6vw, 116px);
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 0 0 36px rgba(69, 243, 255, 0.32);
}

body.is-authed .mini-grid,
.month-metrics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.is-authed .mini-grid div,
.month-metrics div {
  min-height: 88px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(4, 10, 22, 0.44);
}

body.is-authed .mini-grid b,
.month-metrics b {
  display: block;
  margin-top: 10px;
  color: #ffffff;
  font-size: clamp(22px, 2.1vw, 32px);
}

.dash-ai-card,
.dash-month-card,
.dash-panel {
  padding: 18px;
}

.dash-ai-card {
  min-height: 170px;
}

body.is-authed .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

body.is-authed .section-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: 19px;
}

body.is-authed .status-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(69, 243, 255, 0.1);
  color: #45f3ff;
  font-size: 12px;
  font-weight: 800;
}

.ai-pulse {
  height: 72px;
  display: flex;
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
}

.ai-pulse span {
  flex: 1;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, #45f3ff, rgba(69, 243, 255, 0.1));
  animation: aiBar 1.8s ease-in-out infinite;
}

.ai-pulse span:nth-child(1) {
  height: 42%;
}

.ai-pulse span:nth-child(2) {
  height: 74%;
  animation-delay: 0.2s;
  background: linear-gradient(180deg, #81ffbc, rgba(129, 255, 188, 0.1));
}

.ai-pulse span:nth-child(3) {
  height: 56%;
  animation-delay: 0.4s;
  background: linear-gradient(180deg, #8f7cff, rgba(143, 124, 255, 0.1));
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.quick-action {
  min-height: 40px;
  border: 1px solid rgba(139, 167, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #eaf4ff;
  font-weight: 750;
}

.dash-analytics {
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(260px, 0.9fr));
}

.trend-canvas {
  display: block;
  width: 100%;
  height: 220px;
}

.donut-row {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.donut-canvas {
  width: 124px;
  height: 124px;
}

.rank-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.rank-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 6px 10px;
  align-items: center;
}

.rank-head {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  font-size: 13px;
}

.rank-head span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-head b {
  color: #ffffff;
  white-space: nowrap;
}

.rank-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.rank-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #45f3ff, #81ffbc);
  box-shadow: 0 0 14px rgba(69, 243, 255, 0.42);
}

.rank-fill-005 { width: 5%; }
.rank-fill-010 { width: 10%; }
.rank-fill-015 { width: 15%; }
.rank-fill-020 { width: 20%; }
.rank-fill-025 { width: 25%; }
.rank-fill-030 { width: 30%; }
.rank-fill-035 { width: 35%; }
.rank-fill-040 { width: 40%; }
.rank-fill-045 { width: 45%; }
.rank-fill-050 { width: 50%; }
.rank-fill-055 { width: 55%; }
.rank-fill-060 { width: 60%; }
.rank-fill-065 { width: 65%; }
.rank-fill-070 { width: 70%; }
.rank-fill-075 { width: 75%; }
.rank-fill-080 { width: 80%; }
.rank-fill-085 { width: 85%; }
.rank-fill-090 { width: 90%; }
.rank-fill-095 { width: 95%; }
.rank-fill-100 { width: 100%; }

.rank-item small {
  text-align: right;
}

.dash-workspace {
  grid-template-columns: minmax(360px, 0.86fr) minmax(0, 1.14fr);
  align-items: start;
}

body.is-authed label {
  color: rgba(229, 240, 255, 0.76);
}

body.is-authed label input,
body.is-authed label select,
body.is-authed textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(139, 167, 255, 0.2);
  border-radius: 8px;
  background: rgba(4, 10, 22, 0.52);
  color: #ffffff;
  outline: none;
}

body.is-authed textarea {
  resize: vertical;
}

body.is-authed label input::placeholder,
body.is-authed textarea::placeholder {
  color: rgba(229, 240, 255, 0.34);
}

body.is-authed .entry-form {
  display: grid;
  gap: 13px;
}

body.is-authed .two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.is-authed .segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(139, 167, 255, 0.14);
  border-radius: 8px;
  background: rgba(4, 10, 22, 0.4);
}

body.is-authed .segmented label {
  display: grid;
  min-height: 42px;
  place-items: center;
  border-radius: 7px;
  color: rgba(229, 240, 255, 0.62);
  cursor: pointer;
}

body.is-authed .segmented input {
  display: none;
}

body.is-authed .segmented label:has(input:checked) {
  background: linear-gradient(135deg, rgba(69, 243, 255, 0.9), rgba(129, 255, 188, 0.86));
  color: #06101c;
  font-weight: 850;
}

body.is-authed .upload-zone span {
  min-height: 76px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(69, 243, 255, 0.36);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(69, 243, 255, 0.12), transparent 54%),
    rgba(4, 10, 22, 0.52);
  color: rgba(229, 240, 255, 0.78);
}

body.is-authed .image-preview,
body.is-authed .upload-list,
body.is-authed .ai-result,
body.is-authed .record-list {
  display: grid;
  gap: 10px;
}

body.is-authed .image-preview[hidden],
body.is-authed .upload-list[hidden],
body.is-authed .ai-result[hidden] {
  display: none !important;
}

body.is-authed .image-chip,
body.is-authed .ai-card,
body.is-authed .record-item,
body.is-authed .upload-item {
  border: 1px solid rgba(139, 167, 255, 0.16);
  border-radius: 8px;
  background: rgba(4, 10, 22, 0.48);
  color: #eaf4ff;
}

body.is-authed .image-chip {
  min-height: 72px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 34px;
  gap: 12px;
  align-items: center;
  padding: 9px;
}

body.is-authed .image-chip img,
body.is-authed .file-icon {
  width: 62px;
  height: 62px;
  border-radius: 8px;
}

body.is-authed .image-chip span,
body.is-authed .ai-card small,
body.is-authed .record-main span {
  color: rgba(229, 240, 255, 0.58);
}

.upload-list-head {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(69, 243, 255, 0.18);
  border-radius: 8px;
  background: rgba(69, 243, 255, 0.06);
}

.upload-list-head span {
  color: rgba(229, 240, 255, 0.58);
  font-size: 13px;
}

.upload-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
}

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

.upload-item small {
  white-space: nowrap;
}

body.is-authed .records-panel {
  margin-bottom: 24px;
}

body.is-authed .record-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 34px;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px;
}

body.is-authed .record-item.empty-record {
  grid-template-columns: 1fr;
}

body.is-authed .amount.income {
  color: #81ffbc;
}

body.is-authed .amount.expense {
  color: #ff8aa9;
}

body.is-authed .delete-btn,
body.is-authed .remove-image-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 93, 158, 0.12);
  color: #ff8aa9;
}

body.is-authed .summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.is-authed .summary-strip div {
  min-height: 70px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

@keyframes aiBar {
  0%,
  100% {
    transform: scaleY(0.72);
    opacity: 0.62;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

body.is-login {
  background:
    radial-gradient(circle at 18% 16%, rgba(69, 243, 255, 0.18), transparent 32%),
    radial-gradient(circle at 84% 18%, rgba(255, 93, 158, 0.14), transparent 30%),
    linear-gradient(135deg, #06110f 0%, #101819 48%, #1e1714 100%);
  color: #102033;
}

body.is-login .app-shell {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
}

body.is-login .login-view {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  grid-template-columns: minmax(0, 1.14fr) minmax(430px, 1fr);
  align-content: stretch;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.is-login .login-view::before,
body.is-login .login-view::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

body.is-login .login-view::before {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(69, 243, 255, 0.035) 0 1px,
      transparent 1px 78px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(129, 255, 188, 0.03) 0 1px,
      transparent 1px 64px
    ),
    linear-gradient(115deg, transparent 0 24%, rgba(69, 243, 255, 0.13) 34%, transparent 46% 64%, rgba(255, 93, 158, 0.1) 76%, transparent 88%);
  background-size: 100% 100%, 100% 100%, 220% 100%;
  opacity: 0.72;
  mix-blend-mode: screen;
  animation: loginGlobalSweep 7.5s ease-in-out infinite;
}

body.is-login .login-view::after {
  background:
    radial-gradient(circle at 18% 78%, rgba(69, 243, 255, 0.24), transparent 27%),
    radial-gradient(circle at 73% 18%, rgba(255, 93, 158, 0.16), transparent 25%),
    radial-gradient(circle at 58% 58%, rgba(129, 99, 255, 0.14), transparent 34%);
  filter: blur(16px);
  opacity: 0.82;
  mix-blend-mode: screen;
  animation: loginGlobalAura 9s ease-in-out infinite alternate;
}

body.is-login .login-stage {
  min-height: 100vh;
  min-height: 100svh;
  justify-content: flex-start;
  padding: clamp(44px, 5.4vw, 86px) clamp(34px, 5vw, 76px) 0;
  background:
    radial-gradient(circle at 50% 66%, rgba(75, 196, 255, 0.38), transparent 27%),
    radial-gradient(circle at 20% 18%, rgba(87, 105, 255, 0.3), transparent 32%),
    radial-gradient(circle at 78% 34%, rgba(129, 255, 188, 0.12), transparent 30%),
    linear-gradient(145deg, #102279 0%, #1c3fba 50%, #071849 100%);
  background-size: 120% 120%, 110% 110%, 100% 100%, 100% 100%;
  animation: loginStageGlow 9s ease-in-out infinite alternate;
}

body.is-login .login-stage > * {
  align-self: center;
}

body.is-login .login-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 19, 58, 0.02), rgba(2, 9, 35, 0.46)),
    radial-gradient(ellipse at 52% 82%, rgba(50, 211, 255, 0.34), transparent 44%),
    linear-gradient(115deg, transparent 0%, rgba(80, 224, 255, 0.17) 18%, transparent 31%, transparent 61%, rgba(132, 255, 212, 0.13) 72%, transparent 84%);
  background-size: 100% 100%, 100% 100%, 180% 100%;
  animation: loginEnergySweep 6.5s ease-in-out infinite;
}

body.is-login .login-stage::after {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -1px;
  z-index: 1;
  height: 44%;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 24, 73, 0) 0%, rgba(7, 24, 73, 0.72) 46%, #071849 100%),
    linear-gradient(100deg, transparent 8%, rgba(83, 229, 255, 0.22) 19%, transparent 34%),
    linear-gradient(82deg, transparent 34%, rgba(149, 94, 255, 0.22) 52%, transparent 70%);
  filter: blur(9px);
  opacity: 0.95;
  animation: roadGlowDrift 5.4s ease-in-out infinite alternate;
}

body.is-login .login-brand {
  display: none;
}

body.is-login .login-brand-icon {
  position: relative;
  width: 38px;
  height: 30px;
  border: 2px solid rgba(232, 250, 255, 0.9);
  border-radius: 8px 13px 8px 8px;
  box-shadow: 0 0 16px rgba(92, 213, 255, 0.55);
}

body.is-login .login-brand-icon::before,
body.is-login .login-brand-icon::after {
  content: "";
  position: absolute;
  bottom: -7px;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(232, 250, 255, 0.9);
  border-radius: 999px;
  background: #1536a0;
}

body.is-login .login-brand-icon::before {
  left: 4px;
}

body.is-login .login-brand-icon::after {
  right: 4px;
}

body.is-login .login-brand-icon span {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 7px;
  height: 2px;
  background: rgba(232, 250, 255, 0.9);
  box-shadow: 0 7px 0 rgba(232, 250, 255, 0.72);
}

body.is-login .login-brand p {
  color: rgba(237, 247, 255, 0.58);
  font-size: 11px;
  letter-spacing: 0.06em;
}

body.is-login .login-brand h2 {
  margin-top: 0;
  font-size: 23px;
  color: #fff;
}

body.is-login .login-hero-copy {
  position: relative;
  z-index: 5;
  width: min(100%, 880px);
  margin-top: clamp(120px, 17vh, 178px);
  text-align: center;
}

body.is-login .login-hero-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(48px, 6vw, 86px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 10px 36px rgba(0, 9, 40, 0.28);
}

body.is-login .login-hero-copy p {
  margin: 20px 0 0;
  color: rgba(236, 246, 255, 0.82);
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.25;
}

body.is-login .login-feature-row {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  width: min(100%, 940px);
  margin: clamp(72px, 9vh, 112px) auto 0;
  max-width: 940px;
}

body.is-login .login-feature-row div {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
}

body.is-login .feature-icon {
  grid-row: span 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(3, 12, 52, 0.24);
}

body.is-login .feature-blue {
  background: linear-gradient(135deg, #39b8ff, #2670ff);
}

body.is-login .feature-violet {
  background: linear-gradient(135deg, #9184ff, #5356f5);
}

body.is-login .feature-green {
  background: linear-gradient(135deg, #41d5a1, #2a9e84);
}

body.is-login .login-feature-row strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
}

body.is-login .login-feature-row small {
  color: rgba(236, 246, 255, 0.64);
  font-size: 13px;
  line-height: 1.45;
}

body.is-login .login-visual {
  z-index: 4;
  width: calc(100% + clamp(68px, 10vw, 152px));
  height: clamp(390px, 43vh, 520px);
  flex: 0 0 auto;
  min-height: clamp(390px, 43vh, 520px);
  margin: clamp(108px, 13vh, 158px) calc(clamp(34px, 5vw, 76px) * -1) 0;
  border-radius: 0;
}

body.is-login .login-visual::after {
  content: "";
  position: absolute;
  inset: -1px 0;
  z-index: 5;
  pointer-events: none;
  background:
    linear-gradient(180deg, #1433a1 0%, rgba(20, 51, 161, 0.92) 8%, rgba(13, 45, 150, 0.42) 20%, rgba(7, 24, 73, 0) 36%, rgba(7, 24, 73, 0) 72%, rgba(7, 24, 73, 0.76) 89%, #071849 100%),
    linear-gradient(90deg, #071849 0%, rgba(7, 24, 73, 0) 9%, rgba(7, 24, 73, 0) 91%, #071849 100%),
    radial-gradient(ellipse at 50% 56%, rgba(74, 220, 255, 0.14), transparent 54%);
}

body.is-login .login-car-reference {
  object-fit: cover;
  object-position: 52% 70%;
  image-rendering: auto;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.18) 7%, rgba(0, 0, 0, 0.82) 18%, #000 30%, #000 84%, rgba(0, 0, 0, 0.82) 91%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.18) 7%, rgba(0, 0, 0, 0.82) 18%, #000 30%, #000 84%, rgba(0, 0, 0, 0.82) 91%, transparent 100%);
}

body.is-login .login-visual::before {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 14%;
  z-index: 1;
  height: 42%;
  background: radial-gradient(ellipse at 50% 56%, rgba(73, 221, 255, 0.36), transparent 62%);
  filter: blur(18px);
  animation: carHaloPulse 3.6s ease-in-out infinite;
}

body.is-login .login-car3d-canvas {
  inset: 0;
  width: 100%;
  height: 100%;
}

body.is-login .car3d-ambient {
  left: 2%;
  right: 2%;
  bottom: 2%;
  height: 62%;
  background:
    radial-gradient(ellipse at 50% 66%, rgba(69, 243, 255, 0.5), transparent 55%),
    radial-gradient(ellipse at 58% 54%, rgba(129, 99, 255, 0.18), transparent 62%);
  animation: carHaloPulse 3.2s ease-in-out infinite reverse;
}

body.is-login .visual-scan {
  top: 8%;
  left: 4%;
  right: 4%;
  z-index: 5;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(80, 224, 255, 0.13), transparent);
}

body.is-login .car3d-speed {
  opacity: 0.9;
}

body.is-login .speed-one {
  left: -4%;
  bottom: 28%;
  width: 70%;
}

body.is-login .speed-two {
  right: -8%;
  bottom: 40%;
  width: 58%;
}

body.is-login .speed-three {
  left: 10%;
  bottom: 16%;
  width: 82%;
}

body.is-login .login-grid {
  z-index: 2;
  background-size: 56px 56px;
  opacity: 1;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.2), #000 20%, #000 80%, rgba(0, 0, 0, 0.18));
  animation: loginGridDrift 12s linear infinite;
}

body.is-login .login-form-panel {
  position: relative;
  z-index: 4;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(26px, 4vw, 64px);
  background:
    radial-gradient(circle at 54% 48%, rgba(33, 112, 255, 0.09), transparent 36%),
    linear-gradient(180deg, #fbfdff 0%, #f7faff 100%);
}

body.is-login .login-form-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(15, 47, 110, 0.05), transparent 10%),
    radial-gradient(circle at 82% 13%, rgba(37, 99, 235, 0.12), transparent 24%);
  animation: formPanelGlow 7s ease-in-out infinite alternate;
}

body.is-login .login-card {
  position: relative;
  z-index: 5;
  width: min(100%, 540px);
  gap: 18px;
  padding: clamp(34px, 4.4vw, 58px);
  border: 1px solid rgba(221, 228, 241, 0.8);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 26px 70px rgba(34, 62, 116, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.75) inset;
  backdrop-filter: blur(18px);
}

body.is-login .login-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(42, 116, 255, 0), rgba(42, 116, 255, 0.32), rgba(42, 116, 255, 0));
  background-size: 220% 100%;
  opacity: 0.42;
  filter: blur(10px);
  animation: panelScan 5.2s ease-in-out infinite;
}

body.is-login .login-title {
  margin-bottom: 18px;
}

body.is-login .login-title h2 {
  margin: 0;
  color: #0f1c34;
  font-size: 34px;
  font-weight: 850;
}

body.is-login .login-title p {
  margin-top: 14px;
  color: #728097;
  font-size: 16px;
}

body.is-login .login-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: end;
  margin-bottom: 10px;
  color: #8390a6;
  font-weight: 760;
  text-align: center;
}

body.is-login .login-tabs::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: calc((100% - 22px) / 2);
  height: 54px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 100%, rgba(39, 110, 241, 0.16), transparent 58%),
    linear-gradient(90deg, rgba(39, 110, 241, 0.08), rgba(84, 143, 255, 0.02));
  opacity: 0.72;
  pointer-events: none;
  transform: translateX(0);
  transition:
    transform 0.24s ease,
    opacity 0.24s ease,
    box-shadow 0.24s ease;
}

body.is-login .login-tabs::after {
  content: "";
  position: absolute;
  left: 0;
  right: auto;
  bottom: -1px;
  width: calc((100% - 22px) / 2);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2a74ff, #6aa0ff, #2a74ff);
  box-shadow: 0 0 18px rgba(42, 116, 255, 0.38);
  pointer-events: none;
  transform: translateX(0);
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.is-login .login-tabs.is-email::before,
body.is-login .login-tabs.is-email::after {
  transform: translateX(calc(100% + 22px));
}

body.is-login .login-tabs:hover::before {
  opacity: 1;
  box-shadow: 0 14px 30px rgba(39, 110, 241, 0.12);
}

body.is-login .login-tabs button {
  position: relative;
  z-index: 1;
  padding-bottom: 14px;
  border-bottom: 1px solid #e3e8f3;
  background: transparent;
  color: inherit;
  font-weight: inherit;
  text-align: center;
}

body.is-login .login-tabs button.active {
  color: #276ef1;
}

body.is-login .login-tabs button.active::after {
  content: none;
}

body.is-login .login-user-field,
body.is-login .login-pass-field {
  position: relative;
  display: block;
}

body.is-login .login-pass-field {
  font-size: 0;
}

body.is-login .field-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  z-index: 2;
  width: 20px;
  height: 20px;
  display: inline-block;
  color: #a3aec0;
  font-size: 18px;
  transform: translateY(-50%);
}

body.is-login .field-icon::before,
body.is-login .field-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

body.is-login .field-icon-user::before {
  left: 6px;
  top: 2px;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

body.is-login .field-icon-user::after {
  left: 2px;
  top: 12px;
  width: 16px;
  height: 7px;
  border: 2px solid currentColor;
  border-radius: 10px 10px 4px 4px;
}

body.is-login .field-icon-mail {
  font-size: 18px;
  line-height: 20px;
  text-align: center;
}

body.is-login .field-icon-mail::before,
body.is-login .field-icon-mail::after {
  content: none;
}

body.is-login .login-user-field input,
body.is-login .login-pass-field input {
  height: 62px;
  padding-left: 54px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #0f1c34;
  box-shadow: 0 10px 26px rgba(28, 61, 120, 0.04) inset;
}

body.is-login .login-user-field input:focus,
body.is-login .login-pass-field input:focus {
  border-color: #69a2ff;
  box-shadow:
    0 0 0 4px rgba(39, 110, 241, 0.1),
    0 10px 26px rgba(28, 61, 120, 0.04) inset;
}

/* login-options 样式已移至 styles-login-homepage.css，此处注释避免冲突
body.is-login .login-options {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding-left: 4px;
  color: #7f8aa0;
  font-size: 14px;
}

body.is-login .login-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 4px;
}

body.is-login .login-options input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #276ef1;
}

body.is-login .login-options > span {
  color: #7f8aa0;
}
*/

body.is-login .primary-btn {
  min-height: 62px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2f80ff, #266df0);
  color: #fff;
  font-size: 17px;
  font-weight: 850;
  box-shadow: 0 18px 34px rgba(39, 110, 241, 0.26);
}

body.is-login .form-error {
  min-height: 18px;
  margin: 0;
  color: #d83b35;
  text-align: center;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  gap: 14px;
  padding: 2px 0 14px;
}

.eyebrow {
  display: none !important;
}

.icon-btn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fffaf1;
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 22px;
  line-height: 1;
  padding: 0;
}

.date-row {
  display: flex;
  align-items: center;
  grid-column: 1 / -1;
  grid-row: 2;
  gap: 10px;
  margin-bottom: 14px;
}

.date-row .icon-btn {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  min-width: 46px;
  font-size: 26px;
  padding-bottom: 2px;
}

.date-row input {
  flex: 1 1 0;
  min-width: 0;
  height: 46px;
  text-align: center;
  -webkit-appearance: none;
  appearance: none;
}

.date-row input,
label input,
label select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

textarea {
  resize: vertical;
  line-height: 1.55;
}

label {
  display: grid;
  gap: 7px;
  color: #3d443f;
  font-size: 14px;
}

.hero-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 8px;
  background: #18201d;
  color: #fff;
  box-shadow: var(--shadow);
}

.pc-dashboard {
  display: none;
}

.hero-panel span,
.mini-grid span,
.report-grid span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

#profitValue {
  display: block;
  margin-top: 6px;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: 0;
}

.mini-grid,
.report-grid,
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mini-grid div {
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.mini-grid b {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.quick-panel,
.ai-panel,
.report-panel,
.records-panel {
  margin-top: 14px;
  padding: 16px;
}

.ai-panel::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 58px;
  height: 2px;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(19, 134, 93, 0.42), rgba(45, 108, 223, 0.26), transparent);
  box-shadow: 0 0 18px rgba(19, 134, 93, 0.18);
  animation: aiIdleScan 4.8s ease-in-out infinite;
}

.ai-panel:focus-within::after {
  opacity: 1;
}

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

.section-head h2 {
  margin: 0;
  font-size: 18px;
}

.entry-form {
  display: grid;
  gap: 12px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 4px;
  border-radius: 8px;
  background: #efe6d7;
}

.segmented label {
  display: block;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 7px;
  text-align: center;
  color: #575046;
}

.segmented input {
  display: none;
}

.segmented label:has(input:checked) {
  background: #fffdf8;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(54, 42, 23, 0.12);
}

.primary-btn,
.ghost-btn {
  min-height: 46px;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 750;
}

.primary-btn {
  background: var(--green);
  color: #fff;
}

.ghost-btn {
  border: 1px solid var(--line);
  background: #fffaf1;
  color: #343a35;
}

.text-btn {
  min-height: 36px;
  background: transparent;
  color: var(--green);
  font-weight: 750;
}

.form-error {
  min-height: 20px;
  color: var(--red);
  font-size: 13px;
}

.status-pill {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(19, 134, 93, 0.12);
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
}

.file-input {
  margin: 10px 0;
  position: relative;
  cursor: pointer;
}

.file-input input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-input span {
  display: grid;
  min-height: 46px;
  place-items: center;
  border: 1px dashed #c7bca9;
  border-radius: 8px;
  background: #fffaf1;
  color: #4f574f;
}

.image-preview {
  margin: 10px 0;
  display: grid;
  gap: 10px;
}

.image-preview[hidden] {
  display: none !important;
}

.image-chip {
  min-height: 74px;
  display: grid;
  grid-template-columns: 64px 1fr 34px;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf1;
}

.image-chip img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.file-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #18201d;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.image-chip strong {
  display: block;
  font-size: 14px;
}

.image-chip span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.remove-image-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f6e9df;
  color: var(--red);
  font-size: 20px;
}

.ai-result {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.ai-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf1;
}

.ai-card .row,
.record-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ai-card small {
  color: var(--muted);
}

.day-summary-card {
  background: #18201d;
  color: #fff;
}

.day-summary-card small {
  color: rgba(255, 255, 255, 0.72);
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.summary-strip div {
  min-height: 70px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.summary-strip span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.summary-strip b {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  word-break: break-word;
}

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

.report-grid div {
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf1;
}

.report-grid span {
  color: var(--muted);
}

.report-grid b {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.record-list {
  display: grid;
  gap: 10px;
}

.record-item,
.record-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf1;
}

.record-main {
  min-width: 0;
}

.record-main strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-main span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.amount {
  font-weight: 800;
  white-space: nowrap;
}

.amount.income {
  color: var(--green);
}

.amount.expense {
  color: var(--red);
}

.delete-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f6e9df;
  color: var(--red);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(20px);
  max-width: min(90vw, 420px);
  padding: 11px 14px;
  border-radius: 8px;
  background: rgba(21, 25, 23, 0.92);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 360px) {
  .app-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  #profitValue {
    font-size: 38px;
  }

  .two-col,
  .mini-grid,
  .summary-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .app-shell {
    width: 100%;
    padding: max(14px, env(safe-area-inset-top)) 14px max(20px, env(safe-area-inset-bottom));
  }

  .login-view {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 0;
    border-radius: 8px;
  }

  .login-stage {
    min-height: 290px;
    padding: 20px;
  }

  .login-brand-mark {
    width: 42px;
    height: 42px;
  }

  .login-brand h2 {
    font-size: 19px;
  }

  .login-visual {
    width: min(100%, 390px);
    height: 182px;
    margin-top: 4px;
  }

  .login-car3d-canvas {
    inset: -18% -24% -24%;
    width: 148%;
    height: 142%;
  }

  .login-stage-footer {
    display: none;
  }

  .login-form-panel {
    padding: 22px 18px;
  }

  .login-card {
    width: 100%;
  }

  .login-title h2 {
    font-size: 24px;
  }

  .primary-btn,
  .ghost-btn {
    min-height: 50px;
  }

  .topbar h1 {
    font-size: 24px;
  }

  #profitValue {
    font-size: 40px;
  }

  .hero-panel,
  .quick-panel,
  .ai-panel,
  .report-panel,
  .records-panel {
    border-radius: 8px;
  }

  .report-grid,
  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  body.is-authed .dash-shell {
    grid-template-columns: 1fr;
  }

  body.is-authed .dash-sidebar {
    position: static;
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    padding: max(16px, env(safe-area-inset-top)) 14px 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(139, 167, 255, 0.14);
  }

  body.is-authed .dash-side-card {
    display: none;
  }

  body.is-authed .dash-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  body.is-authed .dash-nav-btn {
    justify-content: center;
    min-height: 42px;
    padding: 0 8px;
    font-size: 13px;
    white-space: nowrap;
  }

  body.is-authed .dash-nav-btn span {
    display: none;
  }

  body.is-authed .dash-main {
    padding: 14px;
  }

  body.is-authed .dash-topbar {
    display: grid;
    gap: 14px;
  }

  body.is-authed .dash-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    width: 100%;
  }

  body.is-authed .date-row {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    width: 100%;
  }

  body.is-authed .date-row .icon-btn,
  body.is-authed .dash-actions > .icon-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  body.is-authed .date-row input {
    min-width: 0;
    height: 42px;
    min-height: 42px;
  }

  body.is-authed .dash-hero-grid,
  body.is-authed .dash-analytics,
  body.is-authed .dash-workspace {
    grid-template-columns: 1fr;
  }

  body.is-authed .dash-profit-card {
    grid-row: auto;
    min-height: 330px;
    padding: 20px;
  }

  body.is-authed #profitValue {
    margin: 24px 0 20px;
    font-size: clamp(52px, 14vw, 78px);
  }

  body.is-authed .trend-canvas {
    height: 190px;
  }
}

@media (max-width: 560px) {
  body.is-authed .dash-brand-mark {
    width: 38px;
    height: 38px;
  }

  body.is-authed .dash-title h1 {
    font-size: 27px;
  }

  body.is-authed .dash-title span {
    font-size: 13px;
  }

  body.is-authed .dash-actions {
    grid-template-columns: 1fr 58px 42px;
    gap: 8px;
  }

  body.is-authed .ghost-btn {
    padding: 0 8px;
  }

  body.is-authed .date-row {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 6px;
  }

  body.is-authed .date-row .icon-btn,
  body.is-authed .dash-actions > .icon-btn {
    width: 38px;
    height: 40px;
    min-width: 38px;
  }

  body.is-authed .date-row input {
    height: 40px;
    min-height: 40px;
    padding: 0 8px;
    font-size: 14px;
  }

  body.is-authed .dash-panel,
  body.is-authed .dash-ai-card,
  body.is-authed .dash-month-card {
    padding: 15px;
  }

  body.is-authed .mini-grid,
  body.is-authed .month-metrics,
  body.is-authed .two-col,
  body.is-authed .summary-strip {
    grid-template-columns: 1fr;
  }

  body.is-authed .quick-actions {
    grid-template-columns: 1fr;
  }

  body.is-authed .donut-row {
    grid-template-columns: 1fr;
  }

  body.is-authed .donut-canvas {
    justify-self: center;
  }

  body.is-authed .upload-item {
    display: grid;
    gap: 4px;
  }

  body.is-authed .upload-item small {
    white-space: normal;
  }

  body.is-authed .record-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body.is-authed .record-item .delete-btn {
    grid-column: 2;
  }
}

@media (max-width: 860px) {
  body.is-login .login-view {
    grid-template-columns: 1fr;
  }

  body.is-login .login-stage {
    min-height: min(45vh, 405px);
    padding: 22px 22px 0;
  }

  body.is-login .login-stage > * {
    align-self: stretch;
  }

  body.is-login .login-hero-copy {
    margin-top: clamp(16px, 3.4vh, 28px);
    width: 100%;
  }

  body.is-login .login-hero-copy h1 {
    font-size: clamp(32px, 9.8vw, 46px);
  }

  body.is-login .login-hero-copy p {
    margin-top: 8px;
    font-size: clamp(16px, 4.1vw, 20px);
  }

  body.is-login .login-feature-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    gap: 6px;
    margin-top: clamp(14px, 3vh, 20px);
  }

  body.is-login .login-feature-row div {
    display: flex;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }

  body.is-login .feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    font-size: 20px;
  }

  body.is-login .login-feature-row strong {
    max-width: 100%;
    overflow: hidden;
    font-size: 11px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  body.is-login .login-feature-row small {
    display: none;
  }

  body.is-login .login-visual {
    width: calc(100% + 44px);
    height: clamp(150px, 21vh, 190px);
    min-height: 0;
    flex: 0 0 auto;
    margin-top: -6px;
    margin-left: -22px;
    margin-right: -22px;
    margin-bottom: -1px;
  }

  body.is-login .login-visual::after {
    background:
      linear-gradient(180deg, #1433a1 0%, rgba(20, 51, 161, 0.9) 8%, rgba(13, 45, 150, 0.42) 20%, rgba(7, 24, 73, 0) 36%, rgba(7, 24, 73, 0) 70%, rgba(7, 24, 73, 0.78) 89%, #071849 100%),
      linear-gradient(90deg, #071849 0%, rgba(7, 24, 73, 0) 11%, rgba(7, 24, 73, 0) 89%, #071849 100%),
      radial-gradient(ellipse at 50% 54%, rgba(74, 220, 255, 0.16), transparent 58%);
  }

  body.is-login .login-car-reference {
    object-position: center bottom;
  }

  body.is-login .login-car3d-canvas {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  body.is-login .login-form-panel {
    min-height: auto;
    padding: 12px 18px 30px;
  }

  body.is-login .login-card {
    width: 100%;
    gap: 10px;
    padding: 18px 20px 22px;
    border-radius: 16px;
  }

  body.is-login .login-title {
    margin-bottom: 10px;
  }

  body.is-login .login-title h2 {
    font-size: 26px;
  }

  body.is-login .login-title p {
    margin-top: 8px;
    font-size: 14px;
  }

  body.is-login .login-tabs {
    gap: 20px;
    margin-bottom: 6px;
  }

  body.is-login .login-tabs::before,
  body.is-login .login-tabs::after {
    width: calc((100% - 20px) / 2);
  }

  body.is-login .login-tabs.is-email::before,
  body.is-login .login-tabs.is-email::after {
    transform: translateX(calc(100% + 20px));
  }

  body.is-login .login-tabs button {
    padding-bottom: 10px;
  }

  body.is-login .login-user-field input,
  body.is-login .login-pass-field input,
  body.is-login .primary-btn {
    height: 52px;
    min-height: 52px;
  }

  body.is-login .login-options {
    font-size: 13px;
  }
}

@media (max-width: 430px) and (max-height: 760px) {
  body.is-login .login-stage {
    min-height: 360px;
    padding-top: 18px;
  }

  body.is-login .login-hero-copy h1 {
    font-size: clamp(29px, 9vw, 38px);
  }

  body.is-login .login-hero-copy p {
    font-size: 15px;
  }

  body.is-login .login-feature-row {
    gap: 6px;
    margin-top: 8px;
  }

  body.is-login .login-feature-row div {
    gap: 6px;
  }

  body.is-login .feature-icon {
    width: 30px;
    height: 30px;
    font-size: 17px;
  }

  body.is-login .login-feature-row strong {
    font-size: 12px;
  }

  body.is-login .login-visual {
    height: 126px;
    min-height: 0;
    margin-top: -4px;
  }
}

@media (max-width: 520px) {
  body.is-login .login-stage {
    min-height: min(47vh, 398px);
  }

  body.is-login .login-feature-row {
    display: none;
  }

  body.is-login .login-visual {
    height: clamp(168px, 23vh, 200px);
    min-height: 0;
    margin-top: 10px;
  }
}

@media (max-width: 430px) and (max-height: 760px) {
  body.is-login .login-stage {
    min-height: 340px;
  }

  body.is-login .login-visual {
    height: 142px;
    min-height: 0;
    margin-top: 6px;
  }

  body.is-login .login-card {
    gap: 8px;
    padding: 16px 18px 20px;
  }

  body.is-login .login-title {
    margin-bottom: 8px;
  }

  body.is-login .login-title h2 {
    font-size: 24px;
  }

  body.is-login .login-title p {
    font-size: 13px;
  }

  body.is-login .login-user-field input,
  body.is-login .login-pass-field input,
  body.is-login .primary-btn {
    height: 50px;
    min-height: 50px;
  }
}

@media (min-width: 861px) and (max-width: 1180px) {
  body.is-login .login-view {
    grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.96fr);
  }

  body.is-login .login-stage {
    padding-left: 38px;
    padding-right: 38px;
  }

  body.is-login .login-feature-row {
    gap: 16px;
  }

  body.is-login .login-feature-row div {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  body.is-login .feature-icon {
    width: 46px;
    height: 46px;
  }

  body.is-login .login-card {
    padding: 42px 34px;
  }
}

@media (min-width: 861px) and (min-height: 1000px) {
  body.is-login .login-visual {
    margin-top: clamp(210px, 22vh, 286px);
  }
}

@media (min-width: 900px) {
  body {
    background:
      radial-gradient(circle at 12% 14%, rgba(69, 243, 255, 0.16), transparent 32%),
      radial-gradient(circle at 82% 20%, rgba(255, 93, 158, 0.12), transparent 30%),
      linear-gradient(135deg, #08110f 0%, #111816 45%, #201b16 100%);
    color: #effff8;
    overflow-x: hidden;
  }

  .app-fx-canvas {
    opacity: 0.42;
  }

  .cursor-fx-canvas {
    opacity: 1;
  }

  .app-shell {
    width: min(100%, 1440px);
    padding: 24px 34px 44px;
  }

  .topbar {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(230px, 0.72fr) minmax(420px, 1fr) minmax(120px, 0.36fr);
    align-items: center;
    gap: 18px;
    min-height: 86px;
    padding: 16px 18px;
    margin-bottom: 18px;
    border: 1px solid rgba(129, 255, 188, 0.18);
    border-radius: 8px;
    background:
      linear-gradient(90deg, rgba(10, 31, 27, 0.82), rgba(14, 20, 19, 0.58)),
      radial-gradient(circle at 8% 50%, rgba(69, 243, 255, 0.14), transparent 34%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 22px 54px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(20px);
  }

  .topbar h1 {
    color: #f8fff9;
    font-size: clamp(24px, 2.2vw, 34px);
    line-height: 1;
    text-shadow: 0 0 24px rgba(69, 243, 255, 0.22);
  }

  .topbar-subtitle {
    display: block;
    margin: 10px 0 0;
    color: rgba(216, 255, 239, 0.54);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
  }

  .topbar::after {
    content: "";
    position: absolute;
    left: 31%;
    top: 18px;
    bottom: 18px;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(129, 255, 188, 0.24), transparent);
  }

  .topbar > div {
    min-width: 0;
  }

  .topbar .icon-btn {
    justify-self: end;
    width: 48px;
    height: 48px;
    min-width: 48px;
    font-size: 24px;
  }

  .date-row {
    position: relative;
    z-index: 6;
    grid-column: auto;
    grid-row: auto;
    left: auto;
    top: auto;
    width: min(520px, 42vw);
    margin: 0;
    transform: none;
    justify-self: center;
  }

  .date-row input,
  .date-row .icon-btn,
  .topbar .icon-btn {
    background: rgba(255, 255, 255, 0.075);
    color: #ecfff8;
    border-color: rgba(129, 255, 188, 0.22);
    box-shadow: inset 0 0 18px rgba(69, 243, 255, 0.07), 0 12px 30px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
  }

  .date-row input {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.03em;
  }

  .date-row .icon-btn {
    width: 46px;
    height: 46px;
    min-width: 46px;
  }

  .pc-dashboard {
    position: relative;
    display: block;
    min-height: 500px;
    margin-bottom: 18px;
    overflow: hidden;
    border: 1px solid rgba(129, 255, 188, 0.22);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(10, 22, 20, 0.94), rgba(26, 26, 20, 0.82));
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34), inset 0 0 42px rgba(69, 243, 255, 0.08);
  }

  .dash-canvas,
  .dash-gridline {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .dash-canvas {
    opacity: 0.98;
  }

  .dash-gridline {
    pointer-events: none;
    background:
      linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 85%, transparent 100%);
  }

  .pc-dashboard-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.85fr);
    gap: 18px;
    min-height: 500px;
    padding: 22px;
  }

  .fx-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(188, 255, 224, 0.2);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 20px 50px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(22px);
  }

  .fx-panel::before {
    content: "";
    position: absolute;
    inset: -2px;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 18%, rgba(69, 243, 255, 0.18), transparent 46%);
    transform: translateX(-60%);
    animation: panelScan 5.8s ease-in-out infinite;
  }

  .pc-cockpit {
    display: grid;
    align-content: space-between;
    min-height: 456px;
    padding: 30px;
  }

  .pc-kicker,
  .pc-live,
  .pc-panel-head span,
  .pc-profit-lockup span,
  .pc-orbit-stats span {
    color: rgba(216, 255, 239, 0.64);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .pc-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
  }

  .pc-title-row h2 {
    margin: 12px 0 0;
    font-size: clamp(34px, 3.8vw, 58px);
    line-height: 0.98;
    letter-spacing: 0;
  }

  .pc-title-row p {
    margin: 12px 0 0;
    color: rgba(236, 255, 248, 0.68);
    font-size: 16px;
  }

  .pc-live {
    padding: 8px 12px;
    border: 1px solid rgba(129, 255, 188, 0.34);
    border-radius: 999px;
    color: var(--fx-lime);
    box-shadow: 0 0 20px rgba(129, 255, 188, 0.22);
    animation: livePulse 1.8s ease-in-out infinite;
  }

  .pc-profit-lockup {
    margin: 34px 0 28px;
  }

  .pc-profit-lockup strong {
    display: block;
    margin-top: 8px;
    color: #fff;
    font-size: clamp(64px, 8vw, 112px);
    line-height: 0.9;
    letter-spacing: 0;
    text-shadow: 0 0 18px rgba(69, 243, 255, 0.35), 0 0 56px rgba(129, 255, 188, 0.2);
  }

  .pc-profit-lockup small {
    display: block;
    margin-top: 16px;
    color: rgba(236, 255, 248, 0.68);
    font-size: 15px;
  }

  .pc-orbit-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .pc-orbit-stats div {
    min-height: 102px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(4, 12, 10, 0.42);
  }

  .pc-orbit-stats b {
    display: block;
    margin-top: 12px;
    font-size: 30px;
    color: #fff;
  }

  .pc-side-stack {
    display: grid;
    grid-template-rows: auto 1fr 1fr;
    gap: 14px;
  }

  .pc-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 8px;
  }

  .pc-tab {
    min-height: 42px;
    border-radius: 8px;
    color: rgba(236, 255, 248, 0.74);
    background: transparent;
    border: 1px solid transparent;
  }

  .pc-tab.active,
  .pc-tab:hover {
    color: #08110f;
    background: linear-gradient(135deg, var(--fx-lime), var(--fx-cyan));
    box-shadow: 0 0 24px rgba(69, 243, 255, 0.22);
  }

  .pc-matrix {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 18px;
  }

  .pc-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .pc-panel-head b {
    color: #fff;
    font-size: 18px;
  }

  .pc-platform-lanes,
  .pc-cost-chips {
    display: grid;
    gap: 10px;
  }

  .pc-lane {
    display: grid;
    gap: 7px;
  }

  .pc-lane-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(236, 255, 248, 0.82);
    font-size: 13px;
  }

  .pc-lane-track {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
  }

  .pc-lane-fill {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--fx-cyan), var(--fx-lime));
    box-shadow: 0 0 18px rgba(69, 243, 255, 0.42);
    transition: width 800ms ease;
  }

  .pc-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(236, 255, 248, 0.86);
  }

  .pc-chip b {
    color: #fff;
  }

  .hero-panel {
    display: none;
  }

  .quick-panel,
  .ai-panel,
  .report-panel,
  .records-panel {
    position: relative;
    z-index: 2;
    background: rgba(255, 253, 248, 0.92);
    color: var(--ink);
  }

  .quick-panel::before,
  .ai-panel::before,
  .report-panel::before,
  .records-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    background:
      linear-gradient(120deg, transparent 12%, rgba(69, 243, 255, 0.1), transparent 34%),
      radial-gradient(circle at 88% 10%, rgba(129, 255, 188, 0.1), transparent 30%);
    opacity: 0.72;
  }
}

@media (min-width: 900px) and (max-width: 1120px) {
  .topbar {
    grid-template-columns: minmax(210px, 0.7fr) minmax(360px, 1fr) minmax(70px, 0.18fr);
    gap: 14px;
  }

  .topbar::after {
    left: 29%;
  }

  .date-row {
    left: auto;
    width: min(430px, 48vw);
  }

  .pc-dashboard-content {
    grid-template-columns: 1fr;
  }

  .pc-side-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto 1fr;
  }

  .pc-tabs {
    grid-column: 1 / -1;
  }
}

body.is-authed .dash-panel,
body.is-authed .quick-panel,
body.is-authed .ai-panel,
body.is-authed .records-panel,
body.is-authed .dash-profit-card,
body.is-authed .dash-ai-card,
body.is-authed .dash-month-card {
  border: 1px solid rgba(139, 167, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.035)),
    rgba(9, 14, 29, 0.74);
  color: #eaf4ff;
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.is-authed .ai-panel::before,
body.is-authed .quick-panel::before,
body.is-authed .records-panel::before {
  content: none;
}

body.is-authed .ai-panel::after {
  left: 18px;
  right: 18px;
  top: 64px;
  opacity: 0.7;
  background: linear-gradient(90deg, transparent, rgba(69, 243, 255, 0.36), rgba(129, 255, 188, 0.24), transparent);
}

body.is-authed .date-row {
  position: relative;
  left: auto;
  top: auto;
  grid-column: auto;
  grid-row: auto;
  width: auto;
  transform: none;
}

body.is-authed .file-input {
  position: relative;
  margin: 10px 0;
  cursor: pointer;
}

body.is-authed .file-input input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

body.is-authed .record-main strong {
  color: #ffffff;
}

@keyframes loginScan {
  0%,
  100% {
    opacity: 0;
    transform: translateY(-28px);
  }
  18%,
  72% {
    opacity: 1;
  }
  84% {
    opacity: 0;
    transform: translateY(235px);
  }
}

@keyframes loginStageGlow {
  0% {
    background-position: 44% 52%, 18% 22%, 78% 34%, 0 0;
  }
  100% {
    background-position: 56% 60%, 26% 18%, 70% 42%, 0 0;
  }
}

@keyframes loginEnergySweep {
  0%,
  100% {
    background-position: 0 0, 0 0, -36% 0;
    opacity: 0.84;
  }
  50% {
    background-position: 0 0, 0 0, 56% 0;
    opacity: 1;
  }
}

@keyframes loginGridDrift {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 56px 56px, 56px 56px;
  }
}

@keyframes loginGlobalSweep {
  0%,
  100% {
    background-position: 0 0, 0 0, -48% 0;
    opacity: 0.46;
  }
  50% {
    background-position: 0 0, 0 0, 64% 0;
    opacity: 0.86;
  }
}

@keyframes loginGlobalAura {
  0% {
    opacity: 0.58;
    transform: translate3d(-1.4%, -0.6%, 0) scale(1);
  }
  100% {
    opacity: 0.9;
    transform: translate3d(1.2%, 0.8%, 0) scale(1.03);
  }
}

@keyframes loginAuraFloat {
  0% {
    opacity: 0.72;
    transform: translate3d(-2%, -1%, 0) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translate3d(3%, 2%, 0) scale(1.06);
  }
}

@keyframes formPanelGlow {
  0% {
    opacity: 0.7;
    transform: translateX(-1.2%);
  }
  100% {
    opacity: 1;
    transform: translateX(1.2%);
  }
}

@keyframes speedSweep {
  0%,
  100% {
    opacity: 0;
    translate: -24px 0;
  }
  16%,
  66% {
    opacity: 0.9;
  }
  100% {
    translate: 34px 0;
  }
}

@keyframes carHaloPulse {
  0%,
  100% {
    opacity: 0.58;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes roadGlowDrift {
  0% {
    opacity: 0.62;
    transform: translateX(-2%);
  }
  100% {
    opacity: 0.9;
    transform: translateX(2%);
  }
}

@keyframes referenceCarFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    filter: saturate(1.04) brightness(1.02);
  }
  50% {
    transform: translate3d(0, -4px, 0) scale(1.006);
    filter: saturate(1.12) brightness(1.07);
  }
}

@keyframes panelScan {
  0%,
  55% {
    transform: translateX(-70%);
  }
  100% {
    transform: translateX(70%);
  }
}

@keyframes livePulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

@keyframes aiIdleScan {
  0%,
  42% {
    opacity: 0;
    transform: translateY(0);
  }
  52% {
    opacity: 0.75;
  }
  100% {
    opacity: 0;
    transform: translateY(230px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fx-panel::before,
  .pc-live,
  .ai-panel::after {
    animation: none !important;
  }

  .login-road-canvas,
  .login-spotlight-canvas,
  .app-fx-canvas,
  .cursor-fx-canvas,
  .dash-canvas {
    opacity: 0.18;
  }
}

/* Reference dashboard UI copied from the provided dark cockpit mockup.
   Keep appFxCanvas and cursorFxCanvas untouched; only the system layout is restyled. */
body.is-authed {
  background:
    linear-gradient(180deg, rgba(9, 15, 24, 0.94), rgba(4, 8, 14, 0.98)),
    #050910;
  color: #f2fbff;
}

body.is-authed .ref-dashboard-view {
  min-height: 100vh;
  overflow: auto;
}

body.is-authed .ref-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 242px minmax(0, 1fr);
  min-height: 100vh;
}

body.is-authed .ref-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 26px;
  padding: 37px 22px 24px;
  border-right: 1px solid rgba(95, 123, 143, 0.18);
  background: rgba(4, 10, 16, 0.82);
  backdrop-filter: blur(26px);
  box-shadow: 20px 0 58px rgba(0, 0, 0, 0.34);
}

body.is-authed .ref-brand,
body.is-authed .ref-user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

body.is-authed .ref-brand-mark {
  width: 34px;
  height: 34px;
  display: block;
  position: relative;
}

body.is-authed .ref-brand-mark::before,
body.is-authed .ref-brand-mark::after {
  content: "";
  position: absolute;
  background: linear-gradient(135deg, #16e5ae, #26e2c2);
  box-shadow: 0 0 22px rgba(20, 229, 177, 0.5);
}

body.is-authed .ref-brand-mark::before {
  width: 28px;
  height: 28px;
  left: 3px;
  top: 2px;
  clip-path: polygon(50% 0, 100% 38%, 78% 100%, 50% 72%, 22% 100%, 0 38%);
}

body.is-authed .ref-brand-mark::after {
  width: 10px;
  height: 10px;
  left: 12px;
  top: 13px;
  border-radius: 50%;
  background: #07120f;
}

body.is-authed .ref-brand strong,
body.is-authed .ref-user strong {
  display: block;
  color: #f4fbff;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
}

body.is-authed .ref-brand span,
body.is-authed .ref-user small {
  display: block;
  margin-top: 4px;
  color: rgba(181, 205, 220, 0.48);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.is-authed .ref-nav {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

body.is-authed .ref-nav .dash-nav-btn {
  min-height: 50px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(222, 238, 247, 0.72);
  text-align: left;
  font-size: 15px;
  font-weight: 750;
}

body.is-authed .ref-nav .dash-nav-btn span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: transparent;
  color: #18d9ae;
  font-size: 18px;
}

body.is-authed .ref-nav .dash-nav-btn i {
  padding: 2px 6px;
  border-radius: 5px;
  background: #19dca8;
  color: #062018;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

body.is-authed .ref-nav .dash-nav-btn.active,
body.is-authed .ref-nav .dash-nav-btn:hover {
  border-color: rgba(23, 214, 170, 0.2);
  background: linear-gradient(90deg, rgba(20, 214, 166, 0.2), rgba(20, 214, 166, 0.06));
  color: #17e5b4;
  box-shadow: inset 3px 0 0 #16e4af, 0 12px 28px rgba(0, 0, 0, 0.18);
}

body.is-authed .ref-side-stat {
  align-self: end;
  position: relative;
  min-height: 190px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(20, 220, 170, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(12, 74, 68, 0.34), rgba(14, 225, 178, 0.1)),
    rgba(5, 17, 20, 0.76);
  box-shadow: inset 0 0 28px rgba(22, 228, 175, 0.08), 0 18px 42px rgba(0, 0, 0, 0.32);
}

body.is-authed .ref-side-stat span,
body.is-authed .ref-side-stat small {
  display: block;
  color: rgba(226, 244, 249, 0.74);
}

body.is-authed .ref-side-stat b {
  display: block;
  margin: 9px 0 18px;
  color: #f5fffb;
  font-size: 28px;
  line-height: 1;
}

body.is-authed .ref-side-stat em {
  position: absolute;
  right: -28px;
  bottom: -20px;
  width: 170px;
  height: 82px;
  display: block;
  transform: rotate(-14deg);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(29, 240, 190, 0.7), rgba(25, 179, 196, 0.06));
  filter: blur(1px);
}

body.is-authed .ref-user {
  padding-top: 20px;
  border-top: 1px solid rgba(95, 123, 143, 0.16);
}

body.is-authed .ref-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f2f5f1, #b8d2c8);
  color: #0a1514;
  font-weight: 900;
}

body.is-authed .ref-main {
  min-width: 0;
  padding: 30px 0 24px 22px;
}

body.is-authed .ref-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 27px;
}

body.is-authed .ref-title h1 {
  margin: 0;
  color: #f6fbff;
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: 0;
}

body.is-authed .ref-title p {
  margin: 9px 0 0;
  color: rgba(196, 213, 225, 0.58);
  font-size: 14px;
}

body.is-authed .ref-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 800px;
}

body.is-authed .ref-actions > .icon-btn:last-child {
  margin-left: 187px;
}

body.is-authed .ref-actions .date-row {
  position: relative;
  display: grid;
  grid-template-columns: 44px 220px 44px;
  gap: 6px;
  margin: 0;
}

body.is-authed .ref-actions .date-row input,
body.is-authed .ref-actions .date-row .date-picker-btn,
body.is-authed .ref-actions .date-row .icon-btn,
body.is-authed .ref-actions > .icon-btn,
body.is-authed .ref-actions .ghost-btn {
  height: 52px;
  border: 1px solid rgba(97, 125, 145, 0.16);
  border-radius: 8px;
  background: rgba(12, 18, 28, 0.74);
  color: #f3f8fb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 10px 24px rgba(0, 0, 0, 0.18);
}

body.is-authed .ref-actions .date-row input[hidden] {
  display: none;
}

body.is-authed #logoutBtn {
  position: relative;
  font-size: 0;
}

body.is-authed #logoutBtn::before {
  content: "";
  width: 18px;
  height: 19px;
  border: 2px solid #eef7ff;
  border-bottom: 0;
  border-radius: 12px 12px 5px 5px;
  transform: translateY(2px);
}

body.is-authed #logoutBtn::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  width: 8px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 0 0 8px 8px;
  border: 2px solid #eef7ff;
  border-top: 0;
}

body.is-authed .ref-actions .date-row .icon-btn,
body.is-authed .ref-actions > .icon-btn {
  width: 52px;
  min-width: 52px;
  padding: 0;
  font-size: 25px;
}

body.is-authed .ref-actions .date-row input {
  padding: 0 18px;
  text-align: center;
  font-size: 15px;
  font-weight: 850;
}

body.is-authed .ref-actions .date-picker-btn {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 18px;
  align-items: center;
  gap: 6px;
  padding: 0 12px 0 16px;
  border-color: rgba(69, 243, 255, 0.16);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

body.is-authed .ref-actions .date-picker-btn:hover,
body.is-authed .ref-actions .date-picker-btn[aria-expanded="true"] {
  border-color: rgba(69, 243, 255, 0.42);
  background:
    radial-gradient(circle at 72% 54%, rgba(69, 243, 255, 0.12), transparent 34%),
    rgba(12, 18, 28, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 28px rgba(0, 0, 0, 0.2),
    0 0 0 3px rgba(69, 243, 255, 0.055);
}

body.is-authed .date-display {
  color: #f6fbff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

body.is-authed .date-display span {
  display: inline;
  min-width: 0;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

body.is-authed .date-calendar-icon {
  position: relative;
  width: 14px;
  height: 14px;
  justify-self: end;
  border: 2px solid rgba(238, 247, 255, 0.78);
  border-top-color: rgba(238, 247, 255, 0.45);
  border-radius: 3px;
}

body.is-authed .date-calendar-icon::before,
body.is-authed .date-calendar-icon::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 2px;
  height: 5px;
  border-radius: 999px;
  background: rgba(238, 247, 255, 0.8);
}

body.is-authed .date-calendar-icon::before {
  left: 3px;
}

body.is-authed .date-calendar-icon::after {
  right: 3px;
}

body.is-authed .ref-actions .date-row .date-picker-btn,
body.is-authed .ref-actions .date-row .icon-btn {
  height: 44px;
}

body.is-authed .ref-actions .date-row .icon-btn {
  width: 44px;
  min-width: 44px;
  font-size: 22px;
}

body.is-authed .date-wheel-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 80;
  width: min(760px, calc(100vw - 40px));
  padding: 18px;
  border: 1px solid rgba(74, 119, 132, 0.32);
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 78%, rgba(69, 243, 255, 0.13), transparent 34%),
    linear-gradient(145deg, rgba(11, 24, 31, 0.98), rgba(5, 12, 16, 0.96));
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(255, 255, 255, 0.035) inset;
  backdrop-filter: blur(24px);
}

body.is-authed .date-wheel-popover,
body.is-authed .date-wheel-popover * {
  user-select: none;
  -webkit-user-select: none;
}

body.is-authed .date-wheel-popover ::selection {
  background: transparent;
  color: inherit;
}

body.is-authed .date-wheel-popover.is-dragging {
  cursor: grabbing;
}

body.is-authed .date-wheel-popover[hidden] {
  display: none;
}

body.is-authed .date-wheel-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body.is-authed .date-wheel-col {
  position: relative;
  height: 216px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

body.is-authed .date-wheel-col::before,
body.is-authed .date-wheel-col::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  height: 72px;
  pointer-events: none;
}

body.is-authed .date-wheel-col::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(7, 21, 27, 0.98), transparent);
}

body.is-authed .date-wheel-col::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(7, 21, 27, 0.98), transparent);
}

body.is-authed .date-wheel-focus {
  position: absolute;
  left: 13px;
  right: 13px;
  top: 50%;
  z-index: 1;
  height: 42px;
  border: 1px solid rgba(69, 243, 255, 0.38);
  border-radius: 8px;
  background: rgba(69, 243, 255, 0.08);
  transform: translateY(-50%);
  box-shadow: 0 0 26px rgba(69, 243, 255, 0.12);
}

body.is-authed .date-wheel-list {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
}

body.is-authed .date-wheel-list button {
  width: 100%;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: rgba(232, 250, 255, 0.42);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

body.is-authed .date-wheel-list button:not(.active):not(.is-blank):hover {
  color: rgba(232, 250, 255, 0.78);
}

body.is-authed .date-wheel-list button.active {
  color: #ffffff;
  font-size: 24px;
  text-shadow: 0 0 18px rgba(69, 243, 255, 0.68);
}

body.is-authed .date-wheel-list button.is-blank {
  pointer-events: none;
}

body.is-authed .date-wheel-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 16px;
}

body.is-authed .date-wheel-actions button {
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

body.is-authed .date-wheel-actions .ghost {
  background: rgba(255, 255, 255, 0.055);
  color: rgba(232, 242, 246, 0.86);
}

body.is-authed .date-wheel-actions .primary {
  border: 0;
  background: linear-gradient(135deg, #1488ff, #45f3ff);
  color: #ffffff;
  box-shadow: 0 18px 48px rgba(20, 136, 255, 0.28);
}

@media (max-width: 760px) {
  body.is-authed .date-wheel-popover {
    right: -44px;
    width: calc(100vw - 36px);
    padding: 14px;
  }

  body.is-authed .date-wheel-panel {
    gap: 10px;
  }

  body.is-authed .date-wheel-col {
    height: 190px;
  }

  body.is-authed .date-wheel-actions {
    grid-template-columns: 1fr;
  }
}

body.is-authed .ref-actions .ghost-btn {
  min-width: 150px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  font-weight: 850;
}

body.is-authed .ref-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 22px;
  align-items: start;
}

body.is-authed .ref-content {
  min-width: 0;
  display: grid;
  gap: 22px;
}

body.is-authed .ref-right-rail {
  display: grid;
  gap: 20px;
}

body.is-authed .ref-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}

body.is-authed .ref-panel,
body.is-authed .ref-stat-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(99, 128, 145, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(18, 27, 38, 0.84), rgba(8, 13, 22, 0.88)),
    rgba(7, 13, 22, 0.82);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px);
}

body.is-authed .ref-stat-card {
  height: 146px;
  min-height: 0;
  padding: 24px 22px;
}

body.is-authed .ref-stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 64%, rgba(27, 224, 177, 0.14)),
    radial-gradient(circle at 84% 72%, rgba(32, 214, 162, 0.16), transparent 28%);
  opacity: 0.7;
}

body.is-authed .ref-stat-card.accent-violet::after {
  background:
    linear-gradient(135deg, transparent 62%, rgba(184, 64, 255, 0.15)),
    radial-gradient(circle at 84% 72%, rgba(184, 64, 255, 0.16), transparent 28%);
}

body.is-authed .ref-stat-card.active {
  border-color: rgba(25, 221, 174, 0.42);
  box-shadow: 0 0 0 1px rgba(25, 221, 174, 0.08), 0 24px 60px rgba(0, 0, 0, 0.36);
}

body.is-authed .ref-stat-card span,
body.is-authed .ref-stat-card small {
  position: relative;
  z-index: 1;
  display: block;
  color: rgba(222, 237, 245, 0.7);
}

body.is-authed .ref-stat-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin: 14px 0 12px;
  color: #f7fbff;
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0;
}

body.is-authed .ref-stat-card #profitValue {
  margin: 14px 0 12px;
  color: #f7fbff;
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: none;
}

body.is-authed .ref-progress {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 4px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

body.is-authed .ref-progress b {
  display: block;
  width: 78%;
  height: 100%;
  background: #16dca8;
  box-shadow: 0 0 12px rgba(22, 220, 168, 0.7);
}

body.is-authed .ref-analytics-grid {
  display: grid;
  grid-template-columns: minmax(300px, 370px) minmax(340px, 421px) minmax(260px, 1fr);
  gap: 22px;
}

body.is-authed .ref-trend-card {
  grid-column: 1 / 3;
  height: 330px;
  min-height: 0;
  padding: 24px 24px 18px;
}

body.is-authed .ref-income-card {
  grid-column: 3;
  height: 330px;
  min-height: 0;
  padding: 24px;
}

body.is-authed .ref-map-card,
body.is-authed .ref-expense-card,
body.is-authed .ref-goal-card {
  height: 248px;
  min-height: 0;
  padding: 22px;
}

body.is-authed .ref-map-card {
  grid-column: 1;
}

body.is-authed .ref-expense-card {
  grid-column: 2;
}

body.is-authed .ref-goal-card {
  grid-column: 3;
}

body.is-authed .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

body.is-authed .section-head h2 {
  margin: 0;
  color: #f7fbff;
  font-size: 16px;
  font-weight: 850;
}

body.is-authed .section-head span {
  color: rgba(210, 229, 238, 0.62);
}

body.is-authed .month-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 92px;
  height: 30px;
  padding: 0 26px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

body.is-authed .month-picker:hover,
body.is-authed .month-picker:focus-within {
  border-color: rgba(29, 231, 182, 0.42);
  background: rgba(24, 218, 171, 0.1);
  box-shadow: 0 0 0 3px rgba(24, 218, 171, 0.08);
}

body.is-authed .month-picker::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid rgba(210, 229, 238, 0.62);
  border-bottom: 2px solid rgba(210, 229, 238, 0.62);
  transform: translateY(-66%) rotate(45deg);
  pointer-events: none;
}

body.is-authed .month-picker input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

body.is-authed .month-picker span {
  position: relative;
  z-index: 1;
  color: rgba(222, 237, 245, 0.78);
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

body.is-authed .ref-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

body.is-authed .ref-tabs button {
  height: 28px;
  min-width: 48px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgba(222, 237, 245, 0.62);
  font-weight: 800;
}

body.is-authed .ref-tabs button.active {
  background: rgba(20, 217, 169, 0.18);
  color: #1ce7b6;
}

body.is-authed .ref-chart-legend {
  display: flex;
  gap: 24px;
  margin: 4px 0 14px;
  color: rgba(222, 237, 245, 0.72);
  font-size: 13px;
}

body.is-authed .ref-chart-legend span::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 7px;
  margin-right: 8px;
  border-radius: 999px;
  vertical-align: 1px;
}

body.is-authed .ref-chart-legend .income::before {
  background: #20d6a2;
}

body.is-authed .ref-chart-legend .expense::before {
  background: #b840ff;
}

body.is-authed .ref-chart-legend .profit::before {
  background: #2d8cff;
}

body.is-authed .trend-canvas {
  display: block;
  width: 100%;
  height: 226px;
}

body.is-authed .donut-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

body.is-authed .donut-canvas {
  width: 150px;
  height: 150px;
}

body.is-authed .rank-list {
  display: grid;
  gap: 13px;
}

body.is-authed .rank-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 6px 10px;
  color: rgba(222, 237, 245, 0.7);
}

body.is-authed .rank-empty {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 8px;
  color: rgba(222, 237, 245, 0.58);
}

body.is-authed .rank-empty strong {
  color: rgba(238, 248, 255, 0.86);
  font-size: 15px;
}

body.is-authed .rank-empty span {
  font-size: 12px;
}

body.is-authed .rank-head {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

body.is-authed .rank-head span {
  color: rgba(222, 237, 245, 0.78);
}

body.is-authed .rank-head b {
  color: #effcff;
}

body.is-authed .rank-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

body.is-authed .rank-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1bdcab, #2d8cff);
}

body.is-authed .ref-map {
  position: relative;
  height: 158px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 18%, rgba(57, 255, 217, 0.06), transparent 36%),
    radial-gradient(circle at 82% 72%, rgba(169, 109, 255, 0.05), transparent 34%),
    linear-gradient(145deg, rgba(15, 24, 32, 0.82), rgba(5, 13, 18, 0.88));
}

body.is-authed .trip-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  color: rgba(222, 237, 245, 0.55);
}

body.is-authed .trip-empty strong {
  color: rgba(238, 248, 255, 0.86);
  font-size: 16px;
}

body.is-authed .trip-empty span {
  font-size: 12px;
}

body.is-authed .trip-bubble {
  position: absolute;
  width: var(--bubble-size, 60px);
  height: var(--bubble-size, 60px);
  display: grid;
  place-content: center;
  gap: 2px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 29% 22%, rgba(255, 255, 255, 0.88) 0 6%, rgba(255, 255, 255, 0.24) 7%, transparent 15%),
    radial-gradient(ellipse at 72% 18%, rgba(255, 255, 255, 0.7) 0 8%, transparent 16%),
    radial-gradient(ellipse at 31% 73%, rgba(255, 255, 255, 0.22) 0 18%, transparent 34%),
    conic-gradient(from 215deg at 53% 52%, rgba(255, 82, 152, 0.28), rgba(255, 229, 92, 0.2), rgba(93, 255, 220, 0.28), rgba(83, 171, 255, 0.26), rgba(199, 91, 255, 0.28), rgba(255, 82, 152, 0.28)),
    radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.03) 0 42%, rgba(255, 255, 255, 0.1) 64%, rgba(255, 255, 255, 0.34) 100%);
  color: #f4fffd;
  box-shadow:
    inset 0 0 8px rgba(255, 255, 255, 0.72),
    inset 12px 14px 24px rgba(255, 255, 255, 0.16),
    inset -16px -18px 28px rgba(255, 255, 255, 0.1),
    inset -2px -6px 16px rgba(76, 255, 215, 0.12),
    0 0 0 10px rgba(119, 246, 232, 0.035),
    0 18px 36px rgba(0, 0, 0, 0.26),
    0 0 30px rgba(98, 229, 255, 0.16);
  opacity: 0.96;
  backdrop-filter: blur(8px) saturate(1.45);
  animation: tripBubbleFloat 7s ease-in-out infinite;
  animation-delay: var(--bubble-delay, 0s);
}

body.is-authed .trip-bubble::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 24% 31%, rgba(255, 255, 255, 0.22) 0 17%, transparent 31%),
    radial-gradient(ellipse at 74% 70%, rgba(255, 255, 255, 0.18) 0 16%, transparent 31%),
    radial-gradient(ellipse at 77% 23%, rgba(80, 220, 255, 0.24) 0 15%, transparent 27%),
    radial-gradient(ellipse at 23% 82%, rgba(255, 242, 110, 0.18) 0 18%, transparent 31%),
    conic-gradient(from 260deg at 50% 50%, transparent 0 10%, rgba(113, 255, 211, 0.3) 13%, transparent 24%, transparent 43%, rgba(255, 90, 186, 0.28) 53%, transparent 63%, rgba(115, 185, 255, 0.3) 78%, transparent 88%),
    linear-gradient(128deg, rgba(255, 255, 255, 0.14), transparent 34% 66%, rgba(255, 255, 255, 0.1));
  mix-blend-mode: screen;
  opacity: 0.95;
  pointer-events: none;
}

body.is-authed .trip-bubble::after {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background:
    linear-gradient(110deg, transparent 0 9%, rgba(255, 255, 255, 0.74) 10% 14%, transparent 17% 100%),
    radial-gradient(ellipse at 25% 25%, rgba(255, 255, 255, 0.42) 0 16%, transparent 32%),
    radial-gradient(ellipse at 74% 76%, rgba(255, 255, 255, 0.22) 0 17%, transparent 34%),
    radial-gradient(circle at 50% 50%, transparent 48%, rgba(255, 255, 255, 0.18) 74%, rgba(255, 255, 255, 0.48) 100%);
  opacity: 0.9;
  pointer-events: none;
}

body.is-authed .trip-bubble strong,
body.is-authed .trip-bubble span {
  position: relative;
  z-index: 2;
}

body.is-authed .trip-bubble strong {
  max-width: calc(var(--bubble-size, 60px) - 10px);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.18;
  text-align: center;
  text-shadow: 0 1px 9px rgba(0, 0, 0, 0.78), 0 0 8px rgba(255, 255, 255, 0.18);
  word-break: keep-all;
}

body.is-authed .trip-bubble span {
  color: rgba(232, 255, 248, 0.78);
  font-size: 10px;
  font-weight: 850;
  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.62);
}

body.is-authed .trip-bubble:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow:
    inset 0 0 10px rgba(255, 255, 255, 0.78),
    inset 14px 16px 24px rgba(255, 255, 255, 0.2),
    inset -16px -18px 30px rgba(255, 255, 255, 0.12),
    0 0 0 12px rgba(116, 247, 231, 0.055),
    0 20px 40px rgba(0, 0, 0, 0.28),
    0 0 38px rgba(156, 233, 255, 0.24);
}

body.is-authed .trip-bubble.bubble-1 { left: 13%; top: 25%; }
body.is-authed .trip-bubble.bubble-2 { left: 31%; top: 48%; }
body.is-authed .trip-bubble.bubble-3 { left: 58%; top: 18%; }
body.is-authed .trip-bubble.bubble-4 { left: 74%; top: 55%; }
body.is-authed .trip-bubble.bubble-5 { left: 82%; top: 28%; }
body.is-authed .trip-bubble.bubble-6 { left: 45%; top: 64%; }
body.is-authed .trip-bubble.bubble-7 { left: 22%; top: 15%; }
body.is-authed .trip-bubble.bubble-8 { left: 66%; top: 38%; }

@keyframes tripBubbleFloat {
  0%, 100% { translate: 0 0; }
  35% { translate: 7px -8px; }
  70% { translate: -5px 6px; }
}

body.is-authed .ref-map i {
  position: absolute;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(24, 218, 171, 0.38);
  color: #bffff0;
  font-style: normal;
  font-weight: 900;
  box-shadow: 0 0 0 12px rgba(24, 218, 171, 0.08), 0 0 24px rgba(24, 218, 171, 0.28);
}

body.is-authed .ref-map .p1 { left: 16%; top: 26%; }
body.is-authed .ref-map .p2 { left: 32%; top: 48%; width: 58px; height: 58px; }
body.is-authed .ref-map .p3 { left: 57%; top: 19%; }
body.is-authed .ref-map .p4 { left: 72%; top: 58%; }
body.is-authed .ref-map .p5 { left: 82%; top: 28%; }

body.is-authed .ref-goal {
  display: flex;
  align-items: center;
  gap: 22px;
}

body.is-authed .ref-goal > span {
  --goal-progress: 0%;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(8, 13, 22, 0.94) 0 58%, transparent 60%),
    conic-gradient(#1bdeaa 0 var(--goal-progress), rgba(255, 255, 255, 0.08) var(--goal-progress) 100%);
  color: #f6fbff;
  font-size: 25px;
  font-weight: 900;
}

body.is-authed .ref-goal strong {
  display: grid;
  color: #f6fbff;
  font-size: 28px;
}

body.is-authed .ref-goal small,
body.is-authed .ref-goal-card p {
  color: rgba(222, 237, 245, 0.62);
  font-size: 13px;
  font-weight: 650;
}

body.is-authed .ref-spark {
  --goal-spark-fill: 6%;
  display: block;
  height: 38px;
  margin-top: 16px;
  clip-path: polygon(0 88%, 12% 72%, 26% 78%, 40% 58%, 54% 64%, 70% 36%, 82% 50%, 100% 18%, 100% 100%, 0 100%);
  background:
    linear-gradient(90deg, rgba(28, 229, 182, 0.72) 0 var(--goal-spark-fill), rgba(28, 229, 182, 0.16) var(--goal-spark-fill) 100%),
    linear-gradient(180deg, rgba(28, 229, 182, 0.6), rgba(28, 229, 182, 0.08));
}

body.is-authed .ref-quick-panel {
  height: 118px;
  padding: 18px 22px;
  border-color: rgba(20, 220, 170, 0.3);
}

body.is-authed .ref-entry-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

body.is-authed .ref-entry-form .segmented {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body.is-authed .ref-entry-form .segmented::after {
  content: "语音记账";
  min-height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(94, 124, 145, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(222, 237, 245, 0.78);
  font-weight: 800;
}

body.is-authed .ref-entry-form .segmented label {
  min-height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(94, 124, 145, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(222, 237, 245, 0.78);
  cursor: pointer;
}

body.is-authed .ref-entry-form .segmented input {
  display: none;
}

body.is-authed .ref-entry-form .segmented label:has(input:checked) {
  border-color: rgba(24, 220, 172, 0.44);
  background: rgba(24, 220, 172, 0.14);
  color: #1ee5b6;
}

body.is-authed .ref-entry-fields {
  display: none;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

body.is-authed .ref-entry-fields label {
  display: grid;
  gap: 7px;
  color: rgba(222, 237, 245, 0.58);
  font-size: 12px;
  font-weight: 800;
}

body.is-authed .ref-entry-fields .trip-field {
  display: none;
}

body.is-authed .ref-quick-panel.is-trip-mode .ref-entry-fields .trip-field {
  display: grid;
}

body.is-authed .ref-entry-fields .note-field {
  grid-column: span 2;
}

body.is-authed .ref-entry-fields input,
body.is-authed .ref-entry-fields select,
body.is-authed .ref-ai-assistant textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(94, 124, 145, 0.18);
  border-radius: 8px;
  background: rgba(3, 10, 17, 0.52);
  color: #f5fbff;
  outline: none;
}

body.is-authed .ref-entry-fields .primary-btn {
  align-self: end;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #1be0ae, #23d2bd);
  color: #06221b;
  font-weight: 900;
}

body.is-authed .ref-hidden-metrics {
  display: none;
}

body.is-authed .ref-ai-assistant {
  height: 456px;
  min-height: 0;
  padding: 26px;
  border-color: rgba(25, 220, 174, 0.3);
  background:
    radial-gradient(circle at 50% 25%, rgba(22, 220, 174, 0.16), transparent 36%),
    linear-gradient(145deg, rgba(12, 30, 34, 0.9), rgba(7, 13, 22, 0.9));
}

body.is-authed .ref-ai-assistant .section-head {
  margin-bottom: 6px;
}

body.is-authed .ref-ai-assistant .section-head span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: transparent;
  font-size: 0;
}

body.is-authed .ref-ai-assistant .section-head span::before {
  content: "×";
  color: rgba(31, 226, 181, 0.62);
  font-size: 24px;
  line-height: 1;
}

body.is-authed .ref-ai-assistant h3 {
  margin: 14px 0 8px;
  color: #f7fbff;
  font-size: 20px;
  text-align: center;
}

body.is-authed .ref-ai-assistant p {
  margin: 0 0 18px;
  color: rgba(222, 237, 245, 0.56);
  text-align: center;
}

body.is-authed .ref-bot {
  position: relative;
  width: 200px;
  height: 145px;
  margin: -2px auto 6px;
}

body.is-authed .ref-bot span {
  position: absolute;
  left: 50%;
  top: 30px;
  width: 92px;
  height: 92px;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 45%, #24ebc0 0 8px, transparent 9px),
    radial-gradient(circle at 65% 45%, #24ebc0 0 8px, transparent 9px),
    linear-gradient(145deg, rgba(98, 224, 240, 0.34), rgba(4, 15, 21, 0.95));
  border: 1px solid rgba(48, 236, 199, 0.48);
  box-shadow: 0 0 30px rgba(27, 226, 179, 0.35);
}

body.is-authed .ref-bot span::before,
body.is-authed .ref-bot span::after {
  content: "";
  position: absolute;
  top: 34px;
  width: 19px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(180deg, #1fe2b5, #1986a0);
  box-shadow: 0 0 18px rgba(31, 226, 181, 0.45);
}

body.is-authed .ref-bot span::before {
  left: -17px;
}

body.is-authed .ref-bot span::after {
  right: -17px;
}

body.is-authed .ref-bot i {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 160px;
  height: 34px;
  transform: translateX(-50%);
  border: 2px solid rgba(28, 226, 182, 0.72);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(28, 226, 182, 0.32);
}

body.is-authed .ref-ai-assistant textarea {
  display: none;
}

body.is-authed .upload-zone {
  display: block;
}

body.is-authed .upload-zone input {
  display: none;
}

body.is-authed .upload-zone span,
body.is-authed .ref-ai-assistant .primary-btn {
  width: 100%;
  min-height: 50px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-weight: 900;
}

body.is-authed .upload-zone span {
  border: 0;
  background: linear-gradient(135deg, #1be0ae, #23d2bd);
  color: #05231c;
  box-shadow: 0 18px 38px rgba(22, 220, 168, 0.18);
}

body.is-authed .ref-ai-assistant .primary-btn {
  display: none;
  margin-top: 10px;
  border: 1px solid rgba(31, 226, 181, 0.26);
  background: rgba(31, 226, 181, 0.09);
  color: #28e9bc;
}

body.is-authed .ref-ai-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 10px;
  color: rgba(222, 237, 245, 0.7);
  font-size: 12px;
  text-align: center;
}

body.is-authed #imageStatus {
  display: block;
  color: rgba(222, 237, 245, 0.48);
  text-align: center;
}

body.is-authed .image-preview,
body.is-authed .upload-list,
body.is-authed .ai-result,
body.is-authed .record-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

body.is-authed .image-preview[hidden],
body.is-authed .upload-list[hidden],
body.is-authed .ai-result[hidden] {
  display: none !important;
}

body.is-authed .ref-records-panel {
  min-height: 432px;
  padding: 22px;
}

body.is-authed .record-item,
body.is-authed .image-chip,
body.is-authed .ai-card,
body.is-authed .upload-item {
  min-height: 66px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto 28px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid rgba(94, 124, 145, 0.12);
  border-radius: 0;
  background: transparent;
  color: #edf8ff;
}

body.is-authed .record-main strong,
body.is-authed .image-chip strong {
  display: block;
  color: #edf8ff;
  font-size: 14px;
}

body.is-authed .record-item::before {
  content: "";
  width: 50px;
  height: 58px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(230, 236, 232, 0.92)),
    repeating-linear-gradient(0deg, rgba(6, 18, 23, 0.2) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(90deg, transparent 0 8px, rgba(20, 210, 160, 0.18) 8px 9px, transparent 9px 14px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.24);
}

body.is-authed .record-main span,
body.is-authed .image-chip span,
body.is-authed .ai-card small {
  display: block;
  margin-top: 5px;
  color: rgba(222, 237, 245, 0.46);
  font-size: 12px;
}

body.is-authed .amount.income {
  color: #20e0ad;
}

body.is-authed .amount.expense {
  color: #ff4d66;
}

body.is-authed .delete-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(222, 237, 245, 0.58);
}

body.is-authed .image-chip {
  grid-template-columns: 48px minmax(0, 1fr) 28px;
}

body.is-authed .image-chip img,
body.is-authed .file-icon {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
}

body.is-authed .empty-record {
  grid-template-columns: 1fr;
}

body.is-authed .empty-record::before {
  display: none;
}

body.is-authed .ref-record-upload {
  display: grid;
  place-items: center;
  min-height: 78px;
  margin-top: 14px;
  border: 1px dashed rgba(31, 226, 181, 0.26);
  border-radius: 8px;
  color: #20e1b1;
  font-weight: 850;
  text-align: center;
  background: rgba(18, 220, 171, 0.04);
}

body.is-authed .ref-record-upload small {
  display: block;
  margin-top: 7px;
  color: rgba(222, 237, 245, 0.45);
  font-weight: 650;
}

@media (max-width: 1500px) {
  body.is-authed .ref-shell {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  body.is-authed .ref-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
  }

  body.is-authed .ref-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  body.is-authed .ref-shell {
    grid-template-columns: 1fr;
  }

  body.is-authed .ref-sidebar {
    position: relative;
    height: auto;
    grid-template-rows: auto auto;
  }

  body.is-authed .ref-side-stat,
  body.is-authed .ref-user {
    display: none;
  }

  body.is-authed .ref-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.is-authed .ref-layout,
  body.is-authed .ref-analytics-grid {
    grid-template-columns: 1fr;
  }

  body.is-authed .ref-right-rail {
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  body.is-authed .ref-main,
  body.is-authed .ref-sidebar {
    padding: 18px;
  }

  body.is-authed .ref-topbar,
  body.is-authed .ref-actions {
    align-items: stretch;
    flex-direction: column;
  }

  body.is-authed .ref-actions .date-row {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  body.is-authed .ref-stat-grid,
  body.is-authed .ref-entry-fields,
  body.is-authed .ref-entry-form .segmented {
    grid-template-columns: 1fr;
  }

  body.is-authed .donut-row {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

/* Reference dashboard refinements */
body.is-authed .ref-main {
  padding: 28px 24px 22px 22px;
}

body.is-authed .ref-topbar {
  margin-bottom: 22px;
}

body.is-authed .ref-actions {
  width: auto;
  justify-content: flex-end;
  flex: 0 0 auto;
}

body.is-authed .ref-actions > .icon-btn:last-child {
  margin-left: 148px;
}

body.is-authed .ref-actions .date-row {
  grid-template-columns: 44px 220px 44px;
}

body.is-authed .ref-layout {
  grid-template-columns: minmax(0, 1fr) 396px;
  gap: 20px;
}

body.is-authed .ref-content {
  gap: 18px;
}

body.is-authed .ref-right-rail {
  gap: 18px;
}

body.is-authed .ref-stat-grid {
  gap: 18px;
}

body.is-authed .ref-stat-card {
  height: 132px;
  padding: 20px 21px;
}

body.is-authed .ref-stat-card strong,
body.is-authed .ref-stat-card #profitValue {
  margin: 12px 0 10px;
  font-size: 30px;
}

body.is-authed .ref-analytics-grid {
  gap: 18px;
}

body.is-authed .ref-trend-card,
body.is-authed .ref-income-card {
  height: 310px;
}

body.is-authed .ref-map-card,
body.is-authed .ref-expense-card,
body.is-authed .ref-goal-card {
  height: 224px;
}

body.is-authed .ref-map {
  height: 138px;
}

body.is-authed .trend-canvas {
  height: 205px;
}

body.is-authed .ref-quick-panel {
  height: 106px;
  padding: 16px 18px 18px;
  border-color: rgba(22, 220, 174, 0.34);
  background:
    radial-gradient(circle at 78% 100%, rgba(22, 220, 174, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(14, 31, 34, 0.9), rgba(7, 13, 22, 0.92));
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    inset 0 0 40px rgba(22, 220, 174, 0.035);
}

body.is-authed .ref-quick-panel.is-expanded {
  height: auto;
}

body.is-authed .ref-quick-panel .section-head {
  margin-bottom: 10px;
}

body.is-authed .ref-new-pill {
  position: absolute;
  top: 18px;
  right: 28px;
  z-index: 3;
  min-width: 44px;
  height: 22px;
  padding: 0 9px;
  border-radius: 7px;
  background: linear-gradient(135deg, #ff3868, #ff5578);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 22px;
  box-shadow: 0 0 18px rgba(255, 56, 104, 0.42);
}

body.is-authed .ref-entry-form {
  gap: 0;
}

body.is-authed .ref-entry-form .ref-kind-store {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

body.is-authed .ref-entry-form .ref-kind-store::after {
  display: none;
}

body.is-authed .ref-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body.is-authed .ref-quick-card {
  position: relative;
  min-width: 0;
  height: 52px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 14px;
  grid-template-rows: 1fr 1fr;
  gap: 1px 12px;
  align-items: center;
  padding: 8px 16px 8px 12px;
  border: 1px solid rgba(94, 124, 145, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 50%, rgba(31, 226, 181, 0.13), transparent 42%),
    linear-gradient(145deg, rgba(18, 34, 38, 0.72), rgba(10, 18, 29, 0.78));
  color: #eef8ff;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

body.is-authed .ref-quick-card:hover {
  border-color: rgba(29, 226, 181, 0.42);
  background:
    radial-gradient(circle at 22% 50%, rgba(31, 226, 181, 0.2), transparent 46%),
    linear-gradient(145deg, rgba(18, 41, 43, 0.82), rgba(10, 18, 29, 0.84));
}

body.is-authed .ref-quick-card.active,
body.is-authed .ref-quick-card.is-listening,
body.is-authed .ref-quick-card.is-uploading {
  border-color: rgba(31, 226, 181, 0.58);
  background:
    radial-gradient(circle at 22% 50%, rgba(31, 226, 181, 0.24), transparent 48%),
    linear-gradient(145deg, rgba(19, 48, 49, 0.9), rgba(10, 20, 31, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(31, 226, 181, 0.08),
    0 0 28px rgba(31, 226, 181, 0.12);
}

body.is-authed .ref-quick-card.is-listening .quick-icon,
body.is-authed .ref-quick-card.is-uploading .quick-icon {
  animation: aiBar 1.1s ease-in-out infinite;
}

body.is-authed .ref-quick-card .quick-icon {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(28, 229, 182, 0.16);
  color: #24e9bd;
  font-size: 15px;
  box-shadow: 0 0 22px rgba(28, 229, 182, 0.22);
}

body.is-authed .ref-quick-card.expense .quick-icon {
  background: rgba(255, 117, 108, 0.16);
  color: #ff857b;
  box-shadow: 0 0 22px rgba(255, 117, 108, 0.18);
}

body.is-authed .ref-quick-card.trip .quick-icon {
  background: rgba(64, 171, 255, 0.15);
  color: #53b9ff;
  box-shadow: 0 0 22px rgba(64, 171, 255, 0.18);
}

body.is-authed .ref-quick-card.voice .quick-icon {
  background: rgba(31, 226, 181, 0.16);
  color: #bffdf0;
}

body.is-authed .ref-quick-card strong {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  color: #f6fbff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

body.is-authed .ref-quick-card small {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  color: rgba(210, 229, 238, 0.56);
  font-size: 11px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.is-authed .ref-quick-card i {
  grid-column: 3;
  grid-row: 1 / 3;
  color: rgba(31, 226, 181, 0.34);
  font-size: 20px;
  font-style: normal;
  line-height: 1;
}

body.is-authed .ref-entry-fields {
  margin-top: 12px;
}

body.is-authed .ref-quick-panel:not(.is-expanded) .ref-entry-fields {
  display: none;
}

body.is-authed .ref-quick-panel.is-expanded .ref-entry-fields {
  display: grid;
}

@media (max-width: 1500px) {
  body.is-authed .ref-actions > .icon-btn:last-child {
    margin-left: 0;
  }

  body.is-authed .ref-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.is-authed .ref-quick-panel {
    height: auto;
  }
}

@media (max-width: 760px) {
  body.is-authed .ref-quick-actions {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1501px) and (min-height: 1040px) {
  body.is-authed .ref-stat-card {
    height: 142px;
  }

  body.is-authed .ref-trend-card,
  body.is-authed .ref-income-card {
    height: 380px;
  }

  body.is-authed .ref-map-card,
  body.is-authed .ref-expense-card,
  body.is-authed .ref-goal-card {
    height: 340px;
  }

  body.is-authed .trend-canvas {
    height: 270px;
  }

  body.is-authed .ref-map {
    height: 252px;
  }

  body.is-authed .ref-ai-assistant {
    height: 486px;
  }

  body.is-authed .ref-records-panel {
    min-height: 536px;
  }
}

/* Requested dashboard fixes */
@media (min-width: 1181px) {
  body.is-authed .ref-layout {
    align-items: stretch;
  }

  body.is-authed .ref-right-rail {
    align-self: stretch;
    grid-template-rows: auto minmax(0, 1fr);
  }

  body.is-authed .ref-analytics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.is-authed .ref-trend-card {
    grid-column: 1 / 3;
  }

  body.is-authed .ref-income-card {
    grid-column: 3;
  }

  body.is-authed .ref-map-card {
    grid-column: 1;
  }

  body.is-authed .ref-expense-card {
    grid-column: 2;
  }

  body.is-authed .ref-goal-card {
    grid-column: 3;
  }
}

body.is-authed .trend-canvas {
  cursor: crosshair;
}

body.is-authed .trend-tooltip {
  position: absolute;
  z-index: 6;
  width: 142px;
  padding: 12px 13px;
  border: 1px solid rgba(94, 124, 145, 0.2);
  border-radius: 8px;
  background: rgba(13, 22, 31, 0.94);
  color: #eef8ff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38), 0 0 24px rgba(22, 220, 174, 0.08);
  backdrop-filter: blur(18px);
  pointer-events: none;
}

body.is-authed .trend-tooltip[hidden] {
  display: none;
}

body.is-authed .trend-tooltip strong,
body.is-authed .trend-tooltip span {
  display: block;
}

body.is-authed .trend-tooltip strong {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 850;
}

body.is-authed .trend-tooltip span {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 7px;
  align-items: center;
  margin-top: 7px;
  color: rgba(222, 237, 245, 0.72);
  font-size: 12px;
}

body.is-authed .trend-tooltip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

body.is-authed .trend-tooltip b {
  color: #f7fbff;
  font-size: 12px;
}

body.is-authed .trend-tooltip .income i {
  background: #20d6a2;
}

body.is-authed .trend-tooltip .expense i {
  background: #a246ff;
}

body.is-authed .trend-tooltip .profit i {
  background: #2f8fff;
}

body.is-authed .upload-zone.is-dragging span,
body.is-authed .ref-record-upload.is-dragging {
  border-color: rgba(31, 226, 181, 0.7);
  background: rgba(31, 226, 181, 0.13);
  box-shadow: 0 0 0 1px rgba(31, 226, 181, 0.12), 0 0 30px rgba(31, 226, 181, 0.16);
}

body.is-authed .image-chip .remove-image-btn,
body.is-authed .upload-delete-btn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(222, 237, 245, 0.78);
  font-size: 18px;
  line-height: 1;
}

body.is-authed .image-chip .remove-image-btn:hover,
body.is-authed .upload-delete-btn:hover {
  border-color: rgba(255, 77, 102, 0.38);
  background: rgba(255, 77, 102, 0.12);
  color: #ff7185;
}

body.is-authed .saved-upload-item {
  grid-template-columns: 48px minmax(0, 1fr) 28px;
}

body.is-authed .upload-file-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(230, 236, 232, 0.92)),
    repeating-linear-gradient(0deg, rgba(6, 18, 23, 0.2) 0 1px, transparent 1px 8px);
}

body.is-authed .upload-main {
  min-width: 0;
}

body.is-authed .upload-main strong {
  display: block;
  overflow: hidden;
  color: #edf8ff;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.is-authed .upload-main small {
  display: block;
  margin-top: 5px;
  color: rgba(222, 237, 245, 0.46);
  font-size: 12px;
}

body.is-authed .ref-records-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  padding-bottom: 8px;
}

body.is-authed .record-list {
  align-content: start;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

body.is-authed .ref-record-upload {
  align-self: end;
  min-height: 116px;
}

body.is-authed .ref-records-panel .image-preview {
  width: 100%;
  align-content: start;
  margin-top: 12px;
  padding-top: 0;
}

body.is-authed .ref-records-panel .image-chip,
body.is-authed .ref-records-panel .file-chip {
  min-height: 64px;
  grid-template-columns: 48px minmax(0, 1fr) 32px;
  gap: 10px;
  padding: 10px 0;
}

body.is-authed .ref-records-panel .image-chip img,
body.is-authed .ref-records-panel .file-icon {
  width: 46px;
  height: 46px;
}

body.is-authed .ref-records-panel .remove-image-btn {
  justify-self: end;
}

body.is-authed .ref-ai-assistant.has-voice-text {
  height: auto;
  min-height: 456px;
}

body.is-authed .ref-ai-assistant.has-voice-text textarea {
  display: block;
  min-height: 58px;
  max-height: 132px;
  margin-top: 15px;
  padding: 12px 14px;
  line-height: 1.45;
  overflow-y: auto;
  resize: none;
  white-space: pre-wrap;
  word-break: break-word;
}

body.is-authed .ref-ai-assistant .image-preview {
  width: 100%;
}

body.is-authed .ref-ai-assistant .image-chip,
body.is-authed .ref-ai-assistant .saved-upload-item {
  min-height: 58px;
  grid-template-columns: 48px minmax(0, 1fr) 32px;
  gap: 10px;
  padding: 8px 0;
}

body.is-authed .ref-ai-assistant .image-chip img,
body.is-authed .ref-ai-assistant .file-icon,
body.is-authed .ref-ai-assistant .upload-file-thumb {
  width: 46px;
  height: 46px;
}

body.is-authed .ref-ai-assistant .image-chip .remove-image-btn,
body.is-authed .ref-ai-assistant .upload-delete-btn {
  justify-self: end;
}

body.is-authed .ref-ai-assistant .ai-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  min-height: 0;
  padding: 12px;
  border: 1px solid rgba(94, 124, 145, 0.16);
  border-radius: 8px;
  background: rgba(4, 12, 20, 0.44);
}

body.is-authed .ref-ai-assistant .ai-card::before {
  display: none;
}

body.is-authed .ref-ai-assistant .ai-card .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.is-authed .record-count-btn {
  border: 0;
  background: transparent;
  color: rgba(210, 229, 238, 0.62);
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
}

body.is-authed .record-count-btn:hover {
  color: #20e0ad;
}

body.is-authed .record-delete-btn {
  display: grid;
  place-items: center;
  justify-self: end;
  opacity: 1;
}

body.is-authed .amount.file {
  color: rgba(222, 237, 245, 0.52);
  font-size: 12px;
  font-weight: 850;
}

body.is-authed .records-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
}

body.is-authed .records-modal[hidden] {
  display: none !important;
}

body.is-authed .records-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 14, 0.66);
  backdrop-filter: blur(10px);
}

body.is-authed .records-modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(99, 128, 145, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 70% 0%, rgba(22, 220, 174, 0.08), transparent 34%),
    linear-gradient(145deg, rgba(18, 27, 38, 0.96), rgba(7, 13, 22, 0.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
}

body.is-authed .records-close-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(222, 237, 245, 0.78);
  font-size: 22px;
  line-height: 1;
}

body.is-authed .records-modal-list {
  display: grid;
  align-content: start;
  gap: 0;
  min-height: 0;
  overflow: auto;
}

@media (min-width: 1501px) and (min-height: 900px) and (max-height: 1039px) {
  body.is-authed .ref-content {
    gap: 17px;
  }

  body.is-authed .ref-trend-card,
  body.is-authed .ref-income-card {
    height: 350px;
  }

  body.is-authed .trend-canvas {
    height: 245px;
  }

  body.is-authed .ref-map-card,
  body.is-authed .ref-expense-card,
  body.is-authed .ref-goal-card {
    height: 270px;
  }

  body.is-authed .ref-map {
    height: 184px;
  }

  body.is-authed .ref-quick-panel {
    height: 118px;
  }
}

@media (min-width: 1181px) {
  body.is-authed .ref-main {
    min-height: 100vh;
  }

  body.is-authed .ref-layout {
    min-height: calc(100vh - 118px);
  }

  body.is-authed .ref-content {
    min-height: 100%;
    grid-template-rows: auto auto minmax(138px, 1fr);
  }

  body.is-authed .ref-quick-panel {
    height: auto;
    min-height: 138px;
    align-self: stretch;
  }
}

@media (min-width: 1501px) and (min-height: 900px) {
  body.is-authed .ref-layout {
    min-height: calc(100vh - 108px);
  }

  body.is-authed .ref-content {
    grid-template-rows: auto auto minmax(156px, 1fr);
  }

  body.is-authed .ref-quick-panel {
    height: auto;
    min-height: 156px;
  }
}

/* Final compact date picker override */
body.is-authed .ref-actions .date-row {
  width: max-content !important;
  grid-template-columns: 34px 132px 34px 34px !important;
  gap: 5px !important;
}

body.is-authed .ref-actions .date-row #prevDayBtn,
body.is-authed .ref-actions .date-row #nextDayBtn,
body.is-authed .ref-actions .date-row #dateCalendarBtn,
body.is-authed .ref-actions .date-row .date-picker-btn {
  height: 34px !important;
  min-height: 34px !important;
  border-radius: 8px !important;
}

body.is-authed .ref-actions .date-row #prevDayBtn,
body.is-authed .ref-actions .date-row #nextDayBtn,
body.is-authed .ref-actions .date-row #dateCalendarBtn {
  width: 34px !important;
  min-width: 34px !important;
  padding: 0 !important;
  font-size: 17px !important;
}

body.is-authed .ref-actions .date-row .date-picker-btn {
  width: 132px !important;
  min-width: 132px !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  padding: 0 8px !important;
  cursor: default !important;
}

body.is-authed .date-display {
  font-size: 13px !important;
}

body.is-authed .date-display span {
  display: inline !important;
  min-width: 0 !important;
  height: auto !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
}

body.is-authed .date-calendar-icon {
  width: 12px !important;
  height: 12px !important;
  border-width: 2px !important;
  justify-self: center !important;
}

body.is-authed .date-calendar-icon::before,
body.is-authed .date-calendar-icon::after {
  top: -5px !important;
  height: 5px !important;
}

body.is-authed .date-wheel-popover {
  position: fixed !important;
  right: auto !important;
  bottom: auto !important;
  width: min(560px, calc(100vw - 32px)) !important;
  padding: 14px !important;
  cursor: grab !important;
  touch-action: none !important;
}

body.is-authed .date-wheel-panel {
  gap: 10px !important;
}

body.is-authed .date-wheel-col {
  height: 184px !important;
}

body.is-authed .date-wheel-list button {
  height: 34px !important;
  font-size: 13px !important;
}

body.is-authed .date-wheel-list button.active {
  font-size: 21px !important;
}

body.is-authed .date-wheel-actions {
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}

body.is-authed .date-wheel-actions button {
  height: 42px !important;
  font-size: 14px !important;
}
