/* ============================================================================
   SHIKOST (雫) — 1:1 SHIKAS / SHIZUKU Ecosystem Design System
   Sharp 0px RPG Visual Novel Geometry · Off-Pink Watercolor · Zero Clutter
   ============================================================================ */

:root {
  --shikas-ink: #14100e;
  --shikas-muted: #5d5370;
  --shikas-lavender: #e5dcfb;
  --shikas-lavender-soft: #f5effe;
  --shikas-iris: #745bc7;
  --shikas-iris-dark: #5f47a8;
  --shikas-violet: #7650f3;
  --shikas-magenta: #d749d5;
  --shikas-magenta-deep: #b8339f;
  --shikas-magenta-text: #c837a5;
  --shikas-rain: #2276a8;
  --shikas-rain-soft: #3b93c6;
  --shikas-emerald: #1f8f6b;
  --shikas-amber: #b45309;
  --shikas-amber-border: #d97706;
  --shikas-line: rgba(116, 91, 199, 0.3);

  --font-sans: "Plus Jakarta Sans", "Noto Sans JP", "Hiragino Kaku Gothic ProN", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-condensed: "Barlow Condensed", "Noto Sans JP", sans-serif;
  --font-display: "Cormorant Garamond", "Noto Sans JP", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0;
}

html {
  scroll-behavior: smooth;
  background-color: #fdeaf6;
  color: var(--shikas-ink);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: transparent;
  color: var(--shikas-ink);
  overflow-x: hidden;
  letter-spacing: 0.15px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

button,
input,
select,
textarea {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.font-nav { font-family: var(--font-condensed); }
.font-editorial { font-family: var(--font-display); }
.font-mono-num,
.font-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

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

.hidden { display: none !important; }

/* ============================================================================
   Authentic SHIZUKU Full-Screen Pink Watercolor Backdrop
   ============================================================================ */
.shikas-watercolor-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: #fde8f6;
  background-image:
    linear-gradient(180deg, rgba(255, 252, 254, 0.22) 0%, rgba(255, 250, 254, 0.12) 55%, rgba(255, 248, 254, 0.2) 100%),
    url("/assets/bg-watercolor-pc.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  pointer-events: none;
}

@media (max-width: 767px) {
  .shikas-watercolor-bg {
    background-image:
      linear-gradient(180deg, rgba(255, 252, 254, 0.2) 0%, rgba(255, 250, 254, 0.1) 55%, rgba(255, 248, 254, 0.18) 100%),
      url("/assets/bg-watercolor-sp.jpg");
  }
}

/* Pure-CSS Falling Raindrops Layer */
.shizuku-rain-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.shizuku-rain-layer.is-off {
  display: none;
}

@keyframes shizukuRainFall {
  0% { transform: translateY(-80px); opacity: 0; }
  12% { opacity: 0.28; }
  85% { opacity: 0.22; }
  100% { transform: translateY(105vh); opacity: 0; }
}

.shizuku-rain-drop {
  position: absolute;
  top: -80px;
  width: 1px;
  height: 54px;
  background: linear-gradient(180deg, transparent 0%, rgba(34, 118, 168, 0.55) 100%);
  animation-name: shizukuRainFall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}

/* ============================================================================
   Authentic SHIZUKU Vivid Band & Visual Novel RPG Frames
   ============================================================================ */
.shikas-band-strip {
  background-color: #c86ce8;
  background-image:
    linear-gradient(90deg, rgba(116, 91, 199, 0.22) 0%, rgba(215, 73, 213, 0.14) 60%, rgba(116, 91, 199, 0.32) 100%),
    url("/assets/bg-watercolor-band.jpg"),
    linear-gradient(110deg, #ef85e8 0%, #c05ce6 52%, #745bc7 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 16px;
}

.shikas-band-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(34, 16, 72, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vn-frame {
  position: relative;
  background: rgba(253, 249, 255, 0.88);
  border: 1.5px solid #745bc7;
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.92),
    inset 0 0 0 4px rgba(116, 91, 199, 0.28),
    4px 4px 0 0 rgba(116, 91, 199, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
}

.vn-frame-subtle {
  position: relative;
  background: rgba(253, 249, 255, 0.78);
  border: 1px solid rgba(116, 91, 199, 0.55);
  box-shadow: 3px 3px 0 0 rgba(116, 91, 199, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.vn-dialogue {
  position: relative;
  background: rgba(252, 248, 255, 0.92);
  border: 2px solid #745bc7;
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.96),
    inset 0 0 0 4.5px rgba(215, 73, 213, 0.34),
    5px 5px 0 0 rgba(116, 91, 199, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease;
}

.vn-dialogue:hover {
  border-color: var(--shikas-violet);
}

/* RPG Buttons */
.vn-btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1.5px solid #745bc7;
  background: rgba(255, 255, 255, 0.88);
  color: #745bc7;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 12px;
  box-shadow: 2px 2px 0 0 rgba(116, 91, 199, 0.22);
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.12s ease, border-color 0.15s ease;
}

.vn-btn-action:hover:not(:disabled) {
  background: #745bc7;
  color: #ffffff;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 0 rgba(116, 91, 199, 0.32);
}

.vn-btn-action:active:not(:disabled) {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 0 rgba(116, 91, 199, 0.22);
}

.vn-btn-action.is-rain {
  border-color: var(--shikas-rain);
  color: var(--shikas-rain);
  box-shadow: 2px 2px 0 0 rgba(34, 118, 168, 0.22);
}

.vn-btn-action.is-rain:hover:not(:disabled) {
  background: var(--shikas-rain);
  color: #ffffff;
}

.vn-btn-action.is-danger {
  border-color: var(--shikas-magenta-text);
  color: var(--shikas-magenta-text);
  box-shadow: 2px 2px 0 0 rgba(200, 55, 165, 0.2);
}

.vn-btn-action.is-danger:hover:not(:disabled) {
  background: var(--shikas-magenta-text);
  color: #ffffff;
}

.vn-btn-band {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1.5px solid #745bc7;
  background-color: #b752de;
  background-image:
    linear-gradient(105deg, rgba(116, 91, 199, 0.35) 0%, rgba(215, 73, 213, 0.32) 100%),
    url("/assets/bg-watercolor-band.jpg");
  background-size: cover;
  background-position: center;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 14px;
  text-shadow: 0 1px 4px rgba(45, 18, 84, 0.45);
  box-shadow: 3px 3px 0 0 rgba(116, 91, 199, 0.28);
  transition: opacity 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.vn-btn-band:hover:not(:disabled) {
  opacity: 0.94;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 0 rgba(116, 91, 199, 0.36);
}

.vn-btn-band:active:not(:disabled) {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 0 rgba(116, 91, 199, 0.28);
}

.vn-btn-band:disabled,
.vn-btn-action:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.band-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 0.15s ease;
}

.band-chip-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.band-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transition: background-color 0.15s ease;
}

.band-icon-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ============================================================================
   App Shell & MinimalNav (1:1 SHIKAS Parity)
   ============================================================================ */
.app-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: var(--shikas-ink);
}

.minimal-nav {
  position: relative;
  z-index: 20;
  width: 100%;
}

.minimal-nav-inner {
  margin: 0 auto;
  width: 100%;
  max-width: 1440px;
  padding: 20px 16px 12px;
}

@media (min-width: 640px) {
  .minimal-nav-inner {
    padding: 32px 40px 16px;
  }
}

.minimal-nav-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 768px) {
  .minimal-nav-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
  }
}

.minimal-nav-left {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

@media (min-width: 768px) {
  .minimal-nav-left {
    justify-content: flex-start;
  }
}

.brand-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  color: var(--shikas-iris);
  transition: opacity 0.15s ease;
}

.brand-btn:hover {
  opacity: 0.75;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .brand-wordmark {
    font-size: 23px;
    letter-spacing: 0.28em;
  }
}

.brand-umbrella {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .brand-umbrella {
    width: 24px;
    height: 24px;
  }
}

.minimal-nav-center {
  display: flex;
  justify-content: center;
}

.nav-tabs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 24px;
  row-gap: 4px;
}

@media (min-width: 640px) {
  .nav-tabs-list {
    column-gap: 44px;
  }
}

.nav-tab-btn {
  background: none;
  border: none;
  border-bottom: 1.5px solid transparent;
  padding: 0 0 2px;
  font-family: var(--font-condensed);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(20, 16, 14, 0.6);
  transition: color 0.15s ease, border-color 0.15s ease;
}

@media (min-width: 640px) {
  .nav-tab-btn {
    font-size: 16px;
    letter-spacing: 0.14em;
  }
}

.nav-tab-btn:hover {
  color: var(--shikas-ink);
}

.nav-tab-btn.is-active {
  border-bottom-color: var(--shikas-ink);
  font-weight: 500;
  color: var(--shikas-ink);
}

.nav-controls-mobile {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-controls-desktop {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

@media (min-width: 768px) {
  .nav-controls-mobile { display: none; }
  .nav-controls-desktop { display: flex; }
}

.shizuku-id-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--shikas-iris);
  background: rgba(255, 255, 255, 0.85);
  color: var(--shikas-iris);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  box-shadow: 2px 2px 0 0 rgba(116, 91, 199, 0.16);
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.shizuku-id-btn:hover {
  background: var(--shikas-iris);
  color: #ffffff;
}

.shizuku-id-btn.is-compact {
  padding: 4px 8px;
  font-size: 9.5px;
  letter-spacing: 0.09em;
}

.shizuku-id-btn.is-signed-in {
  background: var(--shikas-iris);
  color: #ffffff;
  box-shadow: 2px 2px 0 0 rgba(116, 91, 199, 0.22);
}

.shizuku-id-btn.is-signed-in:hover {
  background: var(--shikas-iris-dark);
}

.user-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.35);
  flex-shrink: 0;
}

.user-short-name {
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.is-compact .user-short-name {
  max-width: 72px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .lang-switcher {
    gap: 8px;
    font-size: 13px;
    letter-spacing: 0.18em;
  }
}

.lang-btn {
  background: none;
  border: none;
  padding: 2px;
  font: inherit;
  letter-spacing: inherit;
  color: rgba(116, 91, 199, 0.4);
  transition: color 0.15s ease;
}

.lang-btn:hover {
  color: rgba(116, 91, 199, 0.8);
}

.lang-btn.is-active {
  color: var(--shikas-iris);
}

.lang-sep {
  color: rgba(116, 91, 199, 0.3);
}

/* ============================================================================
   Main Canvas & Quiet Footer (HOME only, exact SHIKAS)
   ============================================================================ */
.main-canvas {
  position: relative;
  z-index: 10;
  margin: 0 auto;
  width: 100%;
  max-width: 960px;
  flex: 1;
  padding: 8px 20px 48px;
}

@media (min-width: 640px) {
  .main-canvas {
    padding: 8px 32px 48px;
  }
}

.main-canvas.is-home {
  display: flex;
  flex-direction: column;
  padding-top: 0;
  padding-bottom: 12px;
}

.quiet-footer {
  position: relative;
  z-index: 10;
  margin: 0 auto;
  width: 100%;
  max-width: 960px;
  padding: 4px 20px 20px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(95, 83, 104, 0.8);
}

.quiet-footer a {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: rgba(20, 16, 14, 0.8);
}

.quiet-footer a:hover {
  color: var(--shikas-ink);
  text-decoration: underline;
}

/* ============================================================================
   HOME View (1:1 SHIKAS Editorial Gallery + Calm Contextual Bar)
   ============================================================================ */
.home-section {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 0 16px;
  text-align: center;
}

.home-art-frame {
  overflow: hidden;
  border: 1px solid rgba(20, 16, 14, 0.16);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 18px 44px -30px rgba(20, 16, 14, 0.45);
}

.home-art-img {
  display: block;
  height: 215px;
  max-height: 34svh;
  width: auto;
  object-fit: contain;
}

@media (min-width: 640px) {
  .home-art-img {
    height: 262px;
  }
}

.home-copy {
  margin-top: 24px;
  max-width: 520px;
  padding: 0 8px;
  font-family: var(--font-condensed);
  font-size: 16px;
  line-height: 1.62;
  letter-spacing: 0.03em;
  color: var(--shikas-ink);
}

@media (min-width: 640px) {
  .home-copy {
    margin-top: 28px;
    font-size: 17.5px;
  }
}

.home-copy p {
  margin: 0;
}

.home-copy p + p {
  margin-top: 14px;
  color: rgba(20, 16, 14, 0.88);
}

.home-cta-area {
  margin-top: 24px;
  width: 100%;
  max-width: 520px;
}

.home-kost-card {
  padding: 14px 18px;
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ============================================================================
   Shared View Sections & Grids
   ============================================================================ */
.view-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sandbox-banner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
}

@media (min-width: 640px) {
  .sandbox-banner {
    flex-direction: row;
    align-items: center;
    padding: 10px 16px;
  }
}

.sandbox-tag {
  flex-shrink: 0;
  border: 1px solid var(--shikas-iris);
  background: rgba(116, 91, 199, 0.12);
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #5a3fb5;
  text-transform: uppercase;
}

.sandbox-msg {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.45;
  color: #4a3e63;
}

.kost-context-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
}

.kost-context-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.kost-context-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--shikas-ink);
}

.kost-context-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--shikas-muted);
  letter-spacing: 0.08em;
}

.kost-context-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

/* ============================================================================
   Hero Stage (5:7 Grid — Exact SHIKAS CashflowView Proportions)
   ============================================================================ */
.hero-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 1024px) {
  .hero-stage {
    grid-template-columns: 5fr 7fr;
  }
}

.vessel-frame {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 340px;
}

.vessel-canvas-wrap {
  position: relative;
  flex: 1;
  min-height: 270px;
  cursor: pointer;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
}

.vessel-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.vessel-overlay-top {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.vessel-umbrella-float {
  width: 38px;
  height: auto;
  opacity: 0.92;
  animation: umbrellaFloat 4.2s ease-in-out infinite;
}

.vessel-readout {
  text-align: right;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(116, 91, 199, 0.25);
  padding: 4px 8px;
  backdrop-filter: blur(4px);
}

.vessel-pct {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--shikas-ink);
  line-height: 1.1;
}

.vessel-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--shikas-muted);
  text-transform: uppercase;
}

.vessel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px;
  border-top: 1px solid rgba(116, 91, 199, 0.2);
  background: rgba(255, 255, 255, 0.9);
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--shikas-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.status-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.84);
}

.balance-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(116, 91, 199, 0.2);
  padding-bottom: 14px;
}

.kpi-micro-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--shikas-muted);
  text-transform: uppercase;
  margin: 0;
}

.balance-hero {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--shikas-ink);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 640px) {
  .balance-hero {
    font-size: 30px;
  }
}

.balance-hero.is-negative {
  color: var(--shikas-magenta-text);
}

.net-avail-val {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--shikas-iris);
}

/* 20-Segment Notched RPG Bar */
.rpg-gauges {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rpg-gauge-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rpg-segments {
  display: grid;
  grid-template-columns: repeat(20, minmax(0, 1fr));
  gap: 3px;
}

.rpg-seg {
  height: 10px;
  background: rgba(116, 91, 199, 0.13);
  transition: background-color 0.2s ease;
}

/* Inline Interactive 3-Tile Stat Strip */
.stat-strip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(116, 91, 199, 0.3);
  background: rgba(255, 255, 255, 0.65);
}

@media (min-width: 640px) {
  .stat-strip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.stat-tile {
  background: transparent;
  border: none;
  border-right: 1px solid rgba(116, 91, 199, 0.3);
  padding: 8px 12px;
  text-align: left;
  transition: background-color 0.15s ease;
}

.stat-tile:last-child {
  border-right: none;
  grid-column: span 2;
  border-top: 1px solid rgba(116, 91, 199, 0.3);
}

@media (min-width: 640px) {
  .stat-tile:last-child {
    grid-column: span 1;
    border-top: none;
  }
}

.stat-tile:hover {
  background: rgba(229, 220, 251, 0.45);
}

.stat-tile.is-active-rain { background: rgba(34, 118, 168, 0.12); }
.stat-tile.is-active-mag { background: rgba(215, 73, 213, 0.12); }
.stat-tile.is-active-amb { background: rgba(217, 119, 6, 0.12); }

.stat-tile-lbl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--shikas-muted);
  text-transform: uppercase;
}

.stat-tile-val {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

@media (min-width: 640px) {
  .stat-tile-val { font-size: 15px; }
}

/* 3 Primary Action Buttons */
.cmd-btn-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (min-width: 640px) {
  .cmd-btn-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cmd-btn-grid > :nth-child(3) {
  grid-column: span 2;
}

@media (min-width: 640px) {
  .cmd-btn-grid > :nth-child(3) {
    grid-column: span 1;
  }
}

/* ============================================================================
   Strips (Residents & Dues Strip · Pockets Strip · Pending Reimburse Strip)
   ============================================================================ */
.strip-body {
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 16px;
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 640px) {
  .cards-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 820px) {
  .cards-grid-3.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 720px) {
  .cards-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.strip-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(116, 91, 199, 0.28);
  background: #ffffff;
  padding: 10px 14px 10px 16px;
  text-align: left;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.strip-card:hover {
  border-color: var(--shikas-iris);
  background: #faf7ff;
}

.strip-card.is-selected {
  border-color: var(--shikas-iris);
  background: #f4effe;
  box-shadow: 2px 2px 0 0 rgba(116, 91, 199, 0.22);
}

.strip-accent {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(116, 91, 199, 0.45);
  background: rgba(116, 91, 199, 0.09);
  color: var(--shikas-iris);
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mini-badge.is-emerald {
  border-color: rgba(31, 143, 107, 0.45);
  background: rgba(31, 143, 107, 0.1);
  color: var(--shikas-emerald);
}

.mini-badge.is-rain {
  border-color: rgba(34, 118, 168, 0.45);
  background: rgba(34, 118, 168, 0.1);
  color: var(--shikas-rain);
}

.mini-badge.is-amber {
  border-color: rgba(217, 119, 6, 0.5);
  background: rgba(217, 119, 6, 0.1);
  color: var(--shikas-amber);
}

.mini-badge.is-magenta {
  border-color: rgba(200, 55, 165, 0.5);
  background: rgba(215, 73, 213, 0.1);
  color: var(--shikas-magenta-text);
}

.mini-badge.is-muted {
  border-color: rgba(93, 83, 112, 0.35);
  background: rgba(93, 83, 112, 0.08);
  color: var(--shikas-muted);
}

.mini-progress-track {
  height: 5px;
  width: 100%;
  background: rgba(116, 91, 199, 0.12);
}

.mini-progress-fill {
  height: 100%;
  transition: width 0.25s ease;
}

/* ============================================================================
   SHIZUKU Visual Novel Dialogue Box (1:1 SHIKAS VnDialogueBox.tsx)
   ============================================================================ */
.vn-dialogue-inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.vn-portrait-col {
  display: none;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .vn-portrait-col { display: flex; }
}

.vn-portrait-box {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--shikas-iris);
  background: linear-gradient(180deg, #efe9fd 0%, #fde8f6 100%);
  padding: 8px;
}

.vn-portrait-box img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.vn-mood-tag {
  margin-top: 6px;
  width: 100%;
  border: 1px solid currentColor;
  padding: 2px 6px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.vn-text-col {
  min-width: 0;
  flex: 1;
}

.vn-text-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(116, 91, 199, 0.2);
  padding-bottom: 6px;
}

.vn-speaker {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--shikas-iris);
  text-transform: uppercase;
}

.vn-text-body {
  margin: 10px 0 0;
  min-height: 40px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--shikas-ink);
}

.vn-text-foot {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@keyframes vnNextPrompt {
  0%, 100% { transform: translateY(0); opacity: 0.95; }
  50% { transform: translateY(3px); opacity: 0.45; }
}

.animate-vn-next {
  animation: vnNextPrompt 1.15s ease-in-out infinite;
}

@keyframes umbrellaFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-5px) rotate(2deg); }
}

@keyframes modalPopIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-modal-in {
  animation: modalPopIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================================
   Ledger Toolbar & Entries (1:1 SHIKAS)
   ============================================================================ */
.ledger-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid rgba(116, 91, 199, 0.2);
  background: #fdf9ff;
  padding: 12px 16px;
}

@media (min-width: 720px) {
  .ledger-toolbar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
  }
}

.filter-tab-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

@media (min-width: 640px) {
  .filter-tab-group {
    display: inline-flex;
    gap: 0;
    border: 1px solid rgba(116, 91, 199, 0.55);
    background: #ffffff;
  }
}

.filter-tab-btn {
  border: 1px solid rgba(116, 91, 199, 0.48);
  background: #ffffff;
  color: var(--shikas-muted);
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: background-color 0.15s ease, color 0.15s ease;
}

@media (min-width: 640px) {
  .filter-tab-btn {
    border: none;
    border-left: 1px solid rgba(116, 91, 199, 0.35);
    padding: 5px 11px;
    font-size: 10px;
  }
  .filter-tab-btn:first-child { border-left: none; }
}

.filter-tab-btn:hover {
  background: #f4effd;
  color: var(--shikas-ink);
}

.filter-tab-btn.is-active {
  background: var(--shikas-iris);
  color: #ffffff;
  border-color: var(--shikas-iris);
}

.ledger-search-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sharp-input,
.sharp-select,
.sharp-textarea {
  width: 100%;
  border: 1px solid rgba(116, 91, 199, 0.45);
  background: #ffffff;
  padding: 8px 12px;
  font-size: 13.5px;
  color: var(--shikas-ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sharp-input:focus,
.sharp-select:focus,
.sharp-textarea:focus {
  border-color: var(--shikas-iris);
  box-shadow: 0 0 0 2px rgba(116, 91, 199, 0.15);
}

.sharp-input::placeholder {
  color: #8b7fa6;
}

.sharp-input-sm {
  padding: 5px 10px;
  font-size: 12px;
  font-family: var(--font-mono);
}

.ledger-list {
  background: rgba(255, 255, 255, 0.96);
}

.ledger-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(116, 91, 199, 0.13);
  transition: background-color 0.12s ease;
}

@media (min-width: 640px) {
  .ledger-row {
    padding: 12px 20px;
  }
}

.ledger-row:last-child {
  border-bottom: none;
}

.ledger-row:hover {
  background: rgba(245, 239, 254, 0.42);
}

.ledger-row.is-voided {
  opacity: 0.55;
}

.ledger-row-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.ledger-dot {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  flex-shrink: 0;
}

.ledger-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--shikas-ink);
  word-break: break-word;
}

.ledger-meta {
  margin-top: 3px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--shikas-muted);
}

.ledger-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}

.ledger-amount {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
}

.ledger-inline-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tiny-action-btn {
  border: 1px solid rgba(116, 91, 199, 0.4);
  background: #ffffff;
  color: var(--shikas-iris);
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.tiny-action-btn:hover {
  background: var(--shikas-iris);
  color: #ffffff;
}

.tiny-action-btn.is-danger {
  border-color: rgba(200, 55, 165, 0.4);
  color: var(--shikas-magenta-text);
}

.tiny-action-btn.is-danger:hover {
  background: var(--shikas-magenta-text);
  color: #ffffff;
}

.tiny-action-btn.is-emerald {
  border-color: rgba(31, 143, 107, 0.45);
  color: var(--shikas-emerald);
}

.tiny-action-btn.is-emerald:hover {
  background: var(--shikas-emerald);
  color: #ffffff;
}

.empty-state {
  padding: 40px 20px;
  text-align: center;
  font-family: var(--font-mono);
}

.empty-state-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--shikas-ink);
  text-transform: uppercase;
}

.empty-state-desc {
  margin-top: 6px;
  font-size: 11px;
  color: var(--shikas-muted);
}

/* ============================================================================
   ANALYTICS View (Statement Equation · SVG Chart · Breakdown · Budgets · Reconcile)
   ============================================================================ */
.equation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 768px) {
  .equation-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.eq-card {
  border: 1px solid rgba(116, 91, 199, 0.28);
  background: #ffffff;
  padding: 12px 14px;
}

.eq-val {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
}

.analytics-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 820px) {
  .analytics-split {
    grid-template-columns: 1.35fr 1fr;
  }
}

.svg-chart-wrap {
  width: 100%;
  overflow-x: auto;
}

.budget-row {
  padding: 10px 0;
  border-bottom: 1px solid rgba(116, 91, 199, 0.14);
}

.budget-row:last-child {
  border-bottom: none;
}

/* ============================================================================
   Modals & AuthModal (100% 1:1 SHIKAS AuthModal.tsx)
   ============================================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  background: rgba(20, 16, 14, 0.45);
  padding: 16px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-dialog {
  width: 100%;
  max-width: 520px;
  margin: auto;
}

.modal-dialog.is-auth {
  max-width: 450px;
}

.modal-dialog.is-wide {
  max-width: 680px;
}

.modal-body {
  background: rgba(255, 255, 255, 0.96);
  padding: 20px;
  max-height: 82vh;
  overflow-y: auto;
}

@media (min-width: 640px) {
  .modal-body.is-auth-body {
    padding: 28px;
  }
}

/* Exact AuthModal Header Emblem & Mode Tabs */
.auth-header-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.auth-emblem-box {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(116, 91, 199, 0.45);
  background: linear-gradient(180deg, #efe9fd 0%, #fde8f6 100%);
  color: var(--shikas-iris);
  box-shadow: 2px 2px 0 0 rgba(116, 91, 199, 0.14);
}

.auth-heading {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--shikas-ink);
  text-transform: uppercase;
}

.auth-subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--shikas-muted);
}

.auth-mode-tabs {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1.5px solid var(--shikas-iris);
  background: #fdfbff;
  font-family: var(--font-mono);
  font-size: 11px;
}

.auth-mode-tab {
  border: none;
  background: transparent;
  padding: 8px 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--shikas-muted);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.auth-mode-tab + .auth-mode-tab {
  border-left: 1px solid var(--shikas-iris);
}

.auth-mode-tab:hover {
  background: #efe9fd;
  color: var(--shikas-ink);
}

.auth-mode-tab.is-active {
  background: var(--shikas-iris);
  color: #ffffff;
}

.google-oauth-btn {
  margin-top: 16px;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1.5px solid rgba(116, 91, 199, 0.55);
  background: #ffffff;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--shikas-ink);
  box-shadow: 2px 2px 0 0 rgba(116, 91, 199, 0.14);
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
}

.google-oauth-btn:hover:not(:disabled) {
  border-color: var(--shikas-iris);
  background: #f7f2ff;
}

.google-oauth-btn:active:not(:disabled) {
  transform: translate(1px, 1px);
}

.hairline-divider {
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hairline-divider::before,
.hairline-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(116, 91, 199, 0.22);
}

.hairline-divider span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #7b6f94;
  text-transform: uppercase;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 520px) {
  .form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--shikas-muted);
  text-transform: uppercase;
}

.password-wrap {
  position: relative;
}

.password-wrap .sharp-input {
  padding-right: 40px;
}

.password-eye-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  padding: 4px;
  color: #7b6f94;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.password-eye-btn:hover {
  color: var(--shikas-iris);
}

.form-error-box {
  border: 1px solid var(--shikas-magenta-text);
  background: rgba(215, 73, 213, 0.1);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--shikas-magenta-text);
}

.auth-switch-footer {
  margin-top: 16px;
  border-top: 1px solid rgba(116, 91, 199, 0.2);
  padding-top: 12px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--shikas-muted);
}

.auth-switch-link {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--shikas-iris);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================================
   AccountPanel Slide-Over Drawer (1:1 SHIKAS AccountPanel.tsx)
   ============================================================================ */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  justify-content: flex-end;
  background: rgba(20, 16, 14, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.account-drawer {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 400px;
  border-left: 2px solid var(--shikas-iris);
  background: #fdf9ff;
  box-shadow: -8px 0 32px rgba(20, 16, 14, 0.22);
}

.account-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-section-title {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--shikas-iris);
  text-transform: uppercase;
}

.drawer-card {
  border: 1px solid rgba(116, 91, 199, 0.38);
  background: #ffffff;
}

.drawer-identity-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
}

.drawer-avatar-box {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--shikas-iris);
  background: linear-gradient(180deg, #efe9fd 0%, #fde8f6 100%);
  padding: 8px;
}

.drawer-avatar-box img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.drawer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(116, 91, 199, 0.14);
}

.drawer-row:last-child {
  border-bottom: none;
}

.drawer-row-btn {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(116, 91, 199, 0.14);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  transition: background-color 0.12s ease;
}

.drawer-row-btn:last-child {
  border-bottom: none;
}

.drawer-row-btn:hover {
  background: #f7f3fe;
}

.drawer-row-btn.is-active {
  background: rgba(245, 239, 254, 0.75);
}

/* RPG ON | OFF Toggle (1:1 SHIKAS RpgToggle) */
.rpg-toggle {
  display: inline-flex;
  flex-shrink: 0;
  border: 1px solid var(--shikas-iris);
  background: #ffffff;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rpg-toggle span {
  padding: 4px 10px;
  color: var(--shikas-muted);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.rpg-toggle span + span {
  border-left: 1px solid var(--shikas-iris);
}

.rpg-toggle[aria-checked="true"] .tog-on {
  background: var(--shikas-iris);
  color: #ffffff;
}

.rpg-toggle[aria-checked="false"] .tog-off {
  background: rgba(215, 73, 213, 0.16);
  color: var(--shikas-magenta-deep);
}

/* Modal Segmented Tabs (3-tab / 4-tab) */
.modal-tabs {
  display: flex;
  flex-wrap: wrap;
  border: 1.5px solid var(--shikas-iris);
  background: #fdfbff;
  margin-bottom: 16px;
}

.modal-tab-btn {
  flex: 1 1 auto;
  border: none;
  border-left: 1px solid rgba(116, 91, 199, 0.4);
  background: transparent;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--shikas-muted);
  transition: background-color 0.12s ease, color 0.12s ease;
}

.modal-tab-btn:first-child {
  border-left: none;
}

.modal-tab-btn:hover {
  background: #efe9fd;
  color: var(--shikas-ink);
}

.modal-tab-btn.is-active {
  background: var(--shikas-iris);
  color: #ffffff;
}

/* Color Swatches */
.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-swatch {
  width: 24px;
  height: 24px;
  border: 2px solid transparent;
  padding: 0;
  transition: transform 0.12s ease;
}

.color-swatch.is-selected {
  border-color: var(--shikas-ink);
  transform: scale(1.1);
}

/* Toast Stack (1:1 SHIKAS) */
.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: calc(100vw - 40px);
}

.toast-item {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--shikas-iris);
  background: rgba(253, 249, 255, 0.96);
  padding: 9px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--shikas-ink);
  box-shadow: 3px 3px 0 0 rgba(116, 91, 199, 0.22);
  backdrop-filter: blur(8px);
}

.toast-item.is-success { border-color: var(--shikas-rain); }
.toast-item.is-danger { border-color: var(--shikas-magenta-text); color: var(--shikas-magenta-text); }

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .shizuku-rain-drop,
  .animate-modal-in,
  .animate-vn-next,
  .vessel-umbrella-float {
    animation: none !important;
  }
  .shizuku-rain-drop { display: none; }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: rgba(229, 220, 251, 0.4); }
::-webkit-scrollbar-thumb { background: rgba(116, 91, 199, 0.35); }
::-webkit-scrollbar-thumb:hover { background: rgba(116, 91, 199, 0.6); }
