:root {
  color-scheme: dark;
  --bg: #0b0c0f;
  --bg-soft: #111317;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --text: #f7f8fa;
  --muted: #9da3ae;
  --dim: #69707c;
  --lime: #d7ff3f;
  --number-accent: #d7ff3f;
  --cyan: #64f4ff;
  --silver: #d9dee8;
  --danger: #ff5470;
  --warn: #ffcf5a;
  --ok: #66f2a5;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

body[data-tone="white"] {
  color-scheme: light;
  --bg: #f4f5f7;
  --bg-soft: #ffffff;
  --panel: rgba(255, 255, 255, 0.76);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --line: rgba(14, 18, 26, 0.12);
  --line-soft: rgba(14, 18, 26, 0.08);
  --text: #101217;
  --muted: #626975;
  --dim: #7b828f;
  --number-accent: #101217;
  --shadow: 0 28px 80px rgba(49, 58, 75, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, var(--bg) 0%, #101115 48%, var(--bg) 100%);
  background-size: 40px 40px, 40px 40px, auto;
}

body[data-tone="white"] {
  background:
    linear-gradient(rgba(14, 18, 26, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 18, 26, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #f4f5f7 0%, #ffffff 54%, #eef1f6 100%);
  background-size: 40px 40px, 40px 40px, auto;
}

button,
input {
  font: inherit;
}

select {
  font: inherit;
}

select option,
select optgroup {
  color: #101217;
  background: #ffffff;
}

button,
label {
  -webkit-tap-highlight-color: transparent;
}

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

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-right: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(20px);
}

.mark {
  width: 58px;
  height: 58px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: #101217;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  font-weight: 900;
  letter-spacing: -0.08em;
  box-shadow: 0 0 36px rgba(215, 255, 63, 0.18);
}

.rail-nav {
  display: grid;
  gap: 10px;
}

.rail-nav button {
  position: relative;
  min-height: 64px;
  border: 1px solid transparent;
  border-radius: 20px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: 160ms ease;
}

.rail-nav span {
  display: block;
  color: var(--dim);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.rail-nav b {
  display: block;
  margin-top: 4px;
  font-size: 11px;
}

.rail-nav button.active,
.rail-nav button:hover {
  color: var(--text);
  background: var(--panel);
  border-color: var(--line);
}

.rail-nav button.active::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 18px rgba(215, 255, 63, 0.5);
}

.sync-pill {
  margin-top: auto;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sync-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: none;
}

.sync-pill i.online {
  background: var(--ok);
  box-shadow: 0 0 16px rgba(102, 242, 165, 0.5);
}

.workspace {
  min-width: 0;
  padding: 24px;
}

.auth-gate {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    rgba(8, 9, 12, 0.88);
  background-size: 72px 72px;
  backdrop-filter: blur(18px);
}

.auth-gate[hidden] {
  display: none;
}

.auth-card {
  width: min(520px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 82% 12%, rgba(215, 255, 63, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(39, 41, 45, 0.96), rgba(16, 18, 22, 0.98));
  box-shadow: var(--shadow);
}

.auth-card h2 {
  margin: 12px 0 10px;
  color: var(--text);
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.88;
  letter-spacing: -0.08em;
}

.auth-card p {
  max-width: 380px;
  margin: 0 0 22px;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

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

.auth-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  font: inherit;
  font-size: 15px;
  font-weight: 850;
  outline: none;
}

.auth-form input:focus {
  border-color: rgba(215, 255, 63, 0.5);
  box-shadow: 0 0 0 4px rgba(215, 255, 63, 0.08);
}

.auth-form button {
  min-height: 54px;
}

.auth-form small {
  min-height: 18px;
  color: var(--danger);
  font-size: 11px;
  font-weight: 850;
}

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

.brand-block {
  min-width: 0;
}

.overline,
.section-head span,
.section-title span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.topbar h1 {
  margin: 5px 0 0;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.topbar h1.editing {
  outline: 0;
  border-radius: 12px;
  box-shadow: 0 0 0 3px rgba(215, 255, 63, 0.14);
}

.brand-line {
  display: flex;
  align-items: end;
  gap: 10px;
}

.name-edit {
  width: 34px;
  height: 34px;
  margin-bottom: 2px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: var(--panel);
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: end;
  gap: 10px;
}

.sync-status {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.sync-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}

.sync-status[data-sync-mode="cloud"] {
  border-color: rgba(102, 242, 165, 0.34);
  box-shadow: 0 0 22px rgba(102, 242, 165, 0.08);
}

.sync-status[data-sync-mode="cloud"] i {
  background: var(--ok);
  box-shadow: 0 0 16px rgba(102, 242, 165, 0.5);
}

.sync-status[data-sync-mode="saving"],
.sync-status[data-sync-mode="loading"] {
  border-color: rgba(215, 255, 63, 0.5);
  background: rgba(215, 255, 63, 0.08);
}

.sync-status[data-sync-mode="saving"] i,
.sync-status[data-sync-mode="loading"] i {
  background: var(--lime);
  box-shadow: 0 0 18px rgba(215, 255, 63, 0.55);
}

.sync-status[data-sync-mode="error"] {
  border-color: rgba(255, 89, 129, 0.55);
  color: #ff9ab1;
}

.sync-status[data-sync-mode="error"] i {
  background: var(--danger);
  box-shadow: 0 0 16px rgba(255, 89, 129, 0.5);
}

.control-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 10px;
  margin: -4px 0 16px;
}

.control-panel.single {
  grid-template-columns: minmax(0, 1fr);
}

.control-panel input,
.control-panel select {
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 15px;
  color: var(--text);
  background: var(--panel);
  outline: none;
  backdrop-filter: blur(18px);
}

.control-panel input::placeholder {
  color: var(--dim);
}

.control-panel input:focus,
.control-panel select:focus {
  border-color: rgba(215, 255, 63, 0.44);
  box-shadow: 0 0 0 3px rgba(215, 255, 63, 0.09);
}

.native-select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px !important;
  height: 1px !important;
}

.custom-select {
  position: relative;
  min-width: 0;
  width: 100%;
  z-index: 8;
}

.custom-select.open {
  z-index: 40;
}

.editor-form .custom-select.open {
  z-index: 8;
}

.custom-select-button {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 15px;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent),
    var(--panel);
  cursor: pointer;
  font: inherit;
  text-align: left;
  backdrop-filter: blur(18px);
}

.custom-select-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-button i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.78;
}

.custom-select.open .custom-select-button {
  border-color: rgba(215, 255, 63, 0.44);
  box-shadow: 0 0 0 3px rgba(215, 255, 63, 0.09);
}

.custom-select.open .custom-select-button i {
  transform: translateY(2px) rotate(225deg);
}

.custom-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  display: none;
  padding: 8px;
  max-height: min(360px, 46vh);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent),
    rgba(15, 17, 22, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(24px);
}

body[data-tone="white"] .custom-select-menu {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9)),
    #fff;
  box-shadow: 0 24px 70px rgba(49, 58, 75, 0.18);
}

.custom-select.open .custom-select-menu {
  display: grid;
  gap: 4px;
}

.custom-select-menu button {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  padding: 0 12px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.custom-select-menu button:hover {
  background: rgba(255, 255, 255, 0.075);
}

body[data-tone="white"] .custom-select-menu button:hover {
  background: rgba(16, 18, 23, 0.055);
}

.custom-select-menu button.active {
  color: #101217;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  font-weight: 900;
}

.editor-form .custom-select-button {
  min-height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.editor-form .custom-select-menu {
  position: static;
  margin-top: 8px;
  padding: 6px;
  max-height: 238px;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent),
    rgba(22, 24, 29, 0.98);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  backdrop-filter: none;
}

body[data-tone="white"] .editor-form .custom-select-menu {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9)),
    #fff;
}

.editor-form .custom-select-menu button {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 11px;
  color: var(--text);
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  font-weight: 750;
  text-align: left;
}

.editor-form .custom-select-menu button:hover {
  background: rgba(255, 255, 255, 0.055);
}

.editor-form .custom-select-menu button.active {
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(215, 255, 63, 0.12), rgba(100, 244, 255, 0.06)),
    rgba(255, 255, 255, 0.055);
  box-shadow: inset 3px 0 0 var(--lime);
}

body[data-tone="white"] .editor-form .custom-select-menu button.active {
  color: #101217;
  background:
    linear-gradient(90deg, rgba(215, 255, 63, 0.28), rgba(100, 244, 255, 0.12)),
    rgba(16, 18, 23, 0.035);
}

.ghost-action,
.photo-action,
.mini-action {
  height: 42px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 15px;
  color: var(--text);
  background: var(--panel);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.photo-action {
  width: 42px;
  min-width: 42px;
  flex: 0 0 42px;
  aspect-ratio: 1;
  padding: 0;
  display: inline-grid;
  place-items: center;
  color: #101217;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  font-size: 16px;
}

#themeToggle {
  color: #101217;
  background:
    linear-gradient(135deg, rgba(215, 255, 63, 0.95), rgba(100, 244, 255, 0.86));
  border-color: transparent;
  box-shadow:
    0 0 0 1px rgba(215, 255, 63, 0.18),
    0 12px 28px rgba(215, 255, 63, 0.16);
}

#photoInput {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(320px, 0.66fr);
  gap: 16px;
}

.couple-stage,
.panel,
.signal,
.action-stack {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), transparent),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.couple-stage {
  position: relative;
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.56fr);
  gap: 28px;
  align-items: stretch;
  padding: 28px;
  overflow: hidden;
  border-radius: 32px;
}

.couple-stage::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  pointer-events: none;
}

.couple-stage::after {
  display: none;
}

.stage-copy {
  position: relative;
  z-index: 1;
  align-self: end;
}

.stage-copy h2 {
  max-width: 780px;
  margin: 10px 0 0;
  font-size: clamp(44px, 7vw, 104px);
  line-height: 0.86;
  letter-spacing: -0.085em;
}

.stage-copy h2 span {
  color: var(--number-accent);
}

body[data-tone="white"] .stage-copy h2 span {
  padding: 0 0.04em;
  background: linear-gradient(180deg, transparent 58%, rgba(215, 255, 63, 0.78) 58%);
}

.stage-copy p {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.photo-slot {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  color: var(--muted);
  background:
    radial-gradient(circle at 50% 42%, rgba(215, 255, 63, 0.16), transparent 34%),
    radial-gradient(circle at 76% 18%, rgba(100, 244, 255, 0.16), transparent 28%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    var(--bg-soft);
  background-size: auto, auto, 34px 34px, 34px 34px, auto, auto;
  background-position: center;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    inset 0 -80px 120px rgba(0, 0, 0, 0.16);
}

.photo-slot::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(215, 255, 63, 0.28);
  border-radius: 20px;
  opacity: 0.74;
  pointer-events: none;
}

.photo-slot::after {
  content: "✎";
  position: relative;
  z-index: 1;
  width: 72px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #101217;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  box-shadow: 0 18px 50px rgba(215, 255, 63, 0.2);
  font-size: 26px;
  font-weight: 900;
}

.photo-slot.has-photo::before,
.photo-slot.has-photo::after,
.photo-slot.has-photo span {
  display: none;
}

.photo-slot span {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  max-width: 190px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

body[data-tone="white"] .photo-slot {
  background:
    radial-gradient(circle at 50% 42%, rgba(215, 255, 63, 0.2), transparent 34%),
    radial-gradient(circle at 76% 18%, rgba(100, 244, 255, 0.18), transparent 28%),
    linear-gradient(rgba(14, 18, 26, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 18, 26, 0.035) 1px, transparent 1px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.42)),
    var(--bg-soft);
}

.photo-slot.has-photo,
body[data-tone="white"] .photo-slot.has-photo {
  background-image: var(--couple-photo);
  background-size: cover;
  background-position: center;
}

.action-stack,
.panel,
.signal {
  border-radius: 28px;
  padding: 20px;
}

.section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.section-head-actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.action-title-panel .section-head,
.vendor-missing-panel .section-head {
  align-items: center;
  justify-content: space-between;
}

.panel-title-action,
.vendor-title-action {
  display: flex;
  align-items: baseline;
  justify-content: end;
  gap: 16px;
}

.panel-title-action strong,
.vendor-title-action strong {
  margin-top: 0;
}

.panel-title-action .collapse-toggle,
.vendor-title-action .collapse-toggle {
  transform: translateY(-4px);
}

.collapse-toggle {
  flex: 0 0 auto;
  min-width: 86px;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 950;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.collapse-toggle:hover {
  color: #101217;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  border-color: transparent;
}

.cloud-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.collapsible-panel.collapsed {
  padding-bottom: 20px;
}

.collapsible-panel.collapsed > :not(.section-head) {
  display: none !important;
}

.collapsible-panel.collapsed .section-head {
  margin-bottom: 0;
}

.section-head strong {
  display: block;
  margin-top: 12px;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.action-list,
.risk-list,
.compact-list {
  display: grid;
  gap: 10px;
}

.action-item,
.risk-item,
.compact-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.action-item b,
.risk-item b,
.compact-list b {
  display: block;
  font-size: 14px;
}

.action-item span,
.risk-item span,
.compact-list span,
.expense-card p,
.vendor-card p,
.car-card p {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.action-item button {
  min-width: 78px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  color: #101217;
  background: var(--lime);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.interactive-card,
.interactive-token {
  cursor: pointer;
}

.interactive-card {
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.interactive-card:hover {
  transform: translateY(-2px);
  border-color: rgba(215, 255, 63, 0.34);
  background:
    linear-gradient(145deg, rgba(215, 255, 63, 0.08), transparent),
    rgba(255, 255, 255, 0.055);
}

.interactive-token:hover {
  color: #101217;
  background: var(--lime);
  border-color: transparent;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.data-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.data-strip article {
  min-height: 126px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), transparent),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.data-strip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.data-strip strong {
  display: block;
  margin-top: 18px;
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1;
  letter-spacing: -0.07em;
}

.data-strip small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.signal {
  min-height: 154px;
}

.signal.primary {
  color: #101217;
  background:
    linear-gradient(145deg, var(--lime), var(--cyan));
  border-color: transparent;
}

.signal span {
  color: currentColor;
  opacity: 0.68;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.signal strong {
  display: block;
  margin-top: 24px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -0.07em;
  white-space: nowrap;
}

.signal small {
  display: block;
  margin-top: 10px;
  color: currentColor;
  opacity: 0.68;
  font-size: 13px;
  line-height: 1.35;
}

.dashboard-grid,
.money-layout,
.people-grid,
.day-grid,
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 16px;
  margin-top: 16px;
}

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

.radar {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  align-items: center;
}

.radar-core {
  width: 184px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--number-accent);
  background:
    radial-gradient(circle at center, var(--bg) 0 54%, transparent 55%),
    conic-gradient(var(--lime) var(--pct, 0%), rgba(255, 255, 255, 0.09) 0);
  box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.04), 0 0 34px rgba(215, 255, 63, 0.1);
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.07em;
}

.radar-lines,
.bars {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
}

.bar-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.bar-row b {
  font-size: 13px;
}

.bar-row i {
  grid-column: 1 / -1;
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.09);
}

.bar-row em {
  display: block;
  height: 100%;
  min-width: 7px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
}

.risk-item[data-level="high"] {
  border-color: rgba(255, 84, 112, 0.38);
}

.risk-item[data-level="medium"] {
  border-color: rgba(255, 207, 90, 0.32);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.time-card {
  min-height: 142px;
  padding: 15px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.time-card span {
  color: var(--number-accent);
  font-size: 12px;
  font-weight: 900;
}

.time-card b {
  display: block;
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.25;
}

.time-card small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
}

.section-title {
  margin: 6px 0 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.section-title h2 {
  margin: 6px 0 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.section-title > .mini-action,
.section-actions .mini-action {
  width: 178px;
  height: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-size: 13px;
  box-shadow: 0 12px 28px rgba(215, 255, 63, 0.1);
}

.mini-action,
.modal-action,
.editor-actions button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #101217;
  background: var(--lime);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.mini-action.muted,
.modal-action.secondary,
.editor-actions button.secondary {
  color: var(--text);
  background: var(--panel);
  border-color: var(--line);
}

#view-funds .section-actions {
  width: 178px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

#view-funds .section-actions .mini-action {
  width: 100%;
  height: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  box-shadow: 0 12px 28px rgba(215, 255, 63, 0.1);
}

.expense-board,
.vendor-grid,
.cars-grid,
.cluster-grid,
.logistics-summary,
.theme-grid,
.drink-grid,
.guest-list-grid,
.calendar-board,
.inventory-grid,
.deposit-grid {
  display: grid;
  gap: 12px;
}

.expense-board,
.vendor-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.expense-card,
.vendor-card,
.car-card,
.cluster-card,
.theme-card,
.logistics-card,
.drink-card,
.guest-list-card,
.calendar-card,
.empty-card,
.inventory-grid article,
.deposit-grid article {
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.car-card {
  position: relative;
}

.card-edit-cue {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
  font-style: normal;
  opacity: 0.72;
}

.car-card:hover .card-edit-cue {
  color: #101217;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  border-color: transparent;
  opacity: 1;
}

.car-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.car-driver,
.car-model {
  min-width: 0;
}

.car-driver span,
.car-model span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.car-driver h3 {
  font-size: 24px;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.car-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.seat-meter {
  min-width: 56px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(215, 255, 63, 0.24);
  border-radius: 999px;
  color: var(--lime);
  background: rgba(215, 255, 63, 0.08);
  box-shadow: inset 0 0 0 1px rgba(215, 255, 63, 0.07);
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
}

.car-model {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.025);
}

.car-model b {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.empty-card {
  min-height: 120px;
  display: grid;
  align-content: center;
}

.empty-card b {
  display: block;
}

.empty-card span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.expense-card,
.vendor-card {
  min-height: 174px;
}

.expense-card header,
.vendor-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.expense-card h3,
.vendor-card h3,
.car-card h3,
.cluster-card h3,
.drink-card h3,
.guest-list-card h3,
.logistics-card h3,
.theme-card h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.03em;
}

.pill {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--lime);
  background: rgba(215, 255, 63, 0.08);
  border: 1px solid rgba(215, 255, 63, 0.14);
  font-size: 11px;
  font-weight: 900;
}

body[data-tone="white"] .pill {
  color: #101217;
  background: rgba(215, 255, 63, 0.22);
  border-color: rgba(16, 18, 23, 0.1);
  box-shadow: inset 0 0 0 1px rgba(215, 255, 63, 0.42);
}

.money-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.money-row div {
  padding: 9px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.money-row span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.money-row b {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

.vendor-card a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin-top: 14px;
  padding: 0 12px;
  border-radius: 999px;
  color: #101217;
  background: var(--lime);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(16px);
}

.modal-backdrop[hidden] {
  display: none;
}

.detail-modal {
  position: relative;
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), transparent),
    rgba(15, 17, 22, 0.94);
  box-shadow: 0 38px 110px rgba(0, 0, 0, 0.54);
}

.editor-modal {
  width: min(880px, 100%);
}

body[data-tone="white"] .detail-modal {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.78)),
    #fff;
}

.modal-tools {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close,
.modal-action {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.modal-close {
  color: var(--text);
  background: var(--panel);
  font-size: 24px;
  line-height: 1;
}

.modal-action {
  color: #101217;
  background: linear-gradient(135deg, rgba(215, 255, 63, 0.92), rgba(100, 244, 255, 0.84));
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 22px rgba(215, 255, 63, 0.08);
  font-size: 14px;
  font-weight: 800;
}

.detail-modal h2 {
  margin: 8px 46px 18px 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.modal-body {
  display: grid;
  gap: 10px;
}

.modal-body article {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.modal-body span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modal-body b {
  font-size: 14px;
  line-height: 1.45;
}

.modal-body a {
  color: #101217;
  display: inline-flex;
  width: fit-content;
  min-height: 32px;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--lime);
  text-decoration: none;
}

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

.editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.editor-field {
  display: grid;
  gap: 7px;
}

.editor-field.full {
  grid-column: 1 / -1;
}

.editor-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.editor-field input,
.editor-field select,
.editor-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: var(--panel);
  outline: 0;
  font: inherit;
}

.editor-field textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
}

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

.check-grid label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    var(--panel);
  color: var(--muted);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.check-grid label:hover {
  border-color: rgba(215, 255, 63, 0.32);
  transform: translateY(-1px);
}

.check-grid label:has(input:checked) {
  color: var(--text);
  border-color: rgba(215, 255, 63, 0.46);
  background:
    radial-gradient(circle at 14% 50%, rgba(215, 255, 63, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(215, 255, 63, 0.13), rgba(91, 229, 232, 0.07)),
    var(--panel);
  box-shadow: inset 0 0 0 1px rgba(215, 255, 63, 0.12), 0 14px 34px rgba(0, 0, 0, 0.14);
}

.check-grid input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-grid i {
  position: relative;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.check-grid i::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 7px;
  width: 10px;
  height: 6px;
  border-left: 3px solid #101217;
  border-bottom: 3px solid #101217;
  opacity: 0;
  transform: rotate(-45deg) scale(0.7);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.check-grid input:checked + i {
  border-color: transparent;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  box-shadow: 0 10px 26px rgba(215, 255, 63, 0.2);
}

.check-grid input:checked + i::after {
  opacity: 1;
  transform: rotate(-45deg) scale(1);
}

.check-grid b {
  min-width: 0;
  color: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.08;
}

body[data-tone="white"] .check-grid label {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(246, 247, 250, 0.72)),
    var(--panel);
}

body[data-tone="white"] .check-grid label:has(input:checked) {
  color: var(--text);
  background:
    radial-gradient(circle at 14% 50%, rgba(215, 255, 63, 0.24), transparent 42%),
    linear-gradient(135deg, rgba(215, 255, 63, 0.18), rgba(91, 229, 232, 0.12)),
    var(--panel);
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  margin-top: 4px;
}

.editor-actions div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.danger-action {
  color: var(--danger) !important;
}

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

.cluster-card strong {
  display: block;
  margin-top: 14px;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.07em;
}

.token-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.token {
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
  font-weight: 750;
}

.cars-grid,
.logistics-summary,
.logistics-board,
.theme-grid,
.drink-grid,
.inventory-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.calendar-board,
.deposit-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.cushion-panel,
.cushion-meter {
  display: grid;
  gap: 16px;
}

.cushion-meter {
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
}

.guest-list-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.guest-roster-card {
  min-height: 0;
}

.guest-roster-card header {
  align-items: center;
  margin-bottom: 14px;
}

.guest-roster-card h3 {
  letter-spacing: -0.05em;
}

.guest-roster-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.guest-roster-row {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  font: inherit;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.guest-roster-row:hover {
  transform: translateY(-1px);
  border-color: rgba(215, 255, 63, 0.3);
  background:
    radial-gradient(circle at 12% 50%, rgba(215, 255, 63, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.055);
}

.guest-roster-dot {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #101217;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  font-size: 10px;
  font-weight: 950;
}

.guest-roster-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.guest-roster-row b {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

.guest-roster-row small {
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  padding: 4px 8px;
  border: 1px solid rgba(215, 255, 63, 0.13);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  text-overflow: clip;
  white-space: nowrap;
}

.guest-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(174px, 1fr));
  gap: 9px;
}

.overnight-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
}

.overnight-section {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.025);
}

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

.overnight-section header b {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.overnight-section header span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(215, 255, 63, 0.2);
  border-radius: 50%;
  color: var(--lime);
  background: rgba(215, 255, 63, 0.07);
  font-size: 12px;
  font-weight: 950;
}

.overnight-cards {
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
}

.overnight-cards .guest-person {
  min-height: 50px;
  grid-template-columns: 30px minmax(0, 1fr);
  padding: 8px;
}

.overnight-cards .guest-avatar {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-size: 10px;
}

.overnight-cards .guest-badge {
  display: none;
}

.overnight-cards .guest-info b {
  font-size: 12px;
}

.overnight-cards .guest-info small {
  font-size: 9px;
}

.guest-list-card .guest-card-list {
  max-height: 220px;
  overflow: auto;
  padding-right: 2px;
}

.guest-person {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.035);
  font: inherit;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.guest-person:hover {
  transform: translateY(-2px);
  border-color: rgba(215, 255, 63, 0.34);
  background:
    radial-gradient(circle at 16% 50%, rgba(215, 255, 63, 0.13), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
}

.guest-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #101217;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  box-shadow: 0 10px 24px rgba(215, 255, 63, 0.12);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.guest-info {
  min-width: 0;
}

.guest-info b,
.guest-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-info b {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
}

.guest-info small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.03em;
}

.guest-badge {
  max-width: 86px;
  padding: 6px 8px;
  border: 1px solid rgba(215, 255, 63, 0.18);
  border-radius: 999px;
  color: var(--lime);
  background: rgba(215, 255, 63, 0.075);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.empty-line {
  min-height: 48px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-soft);
  border-radius: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

body[data-tone="white"] .guest-person {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(246, 247, 250, 0.72)),
    #fff;
}

body[data-tone="white"] .guest-roster-row {
  background: rgba(255, 255, 255, 0.78);
}

body[data-tone="white"] .guest-person:hover {
  background:
    radial-gradient(circle at 16% 50%, rgba(215, 255, 63, 0.2), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 247, 250, 0.76));
}

body[data-tone="white"] .overnight-section {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(246, 247, 250, 0.62)),
    #fff;
}

.calendar-card {
  min-height: 132px;
}

.actual-calendar {
  display: grid;
  gap: 12px;
}

.calendar-month {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.calendar-month strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.05em;
  text-transform: capitalize;
}

.calendar-month small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.calendar-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.calendar-nav .collapse-toggle {
  min-width: 44px;
}

.calendar-nav .collapse-toggle[data-calendar-jump] {
  min-width: 116px;
}

.calendar-week,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-week span {
  color: var(--dim);
  font-size: 9px;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  min-height: 62px;
  padding: 7px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.calendar-day.empty {
  opacity: 0;
}

.calendar-day.wedding {
  color: #101217;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  border-color: transparent;
}

.calendar-day.marked:not(.wedding) {
  border-color: rgba(215, 255, 63, 0.26);
  background:
    radial-gradient(circle at 18% 18%, rgba(215, 255, 63, 0.18), transparent 48%),
    rgba(255, 255, 255, 0.045);
}

.calendar-day b,
.calendar-day i {
  display: block;
}

.calendar-day b {
  color: inherit;
  font-size: 12px;
  font-weight: 950;
}

.calendar-day i {
  margin-top: 4px;
  color: currentColor;
  opacity: 0.74;
  font-size: 8px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.1;
}

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

.scenario-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.scenario-card > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.28), transparent 45%),
    linear-gradient(135deg, var(--lime), var(--cyan));
  font-size: 24px;
}

.scenario-card b,
.scenario-card strong,
.scenario-card small {
  display: block;
}

.scenario-card b {
  color: var(--lime);
  font-size: 12px;
  font-weight: 950;
}

.scenario-card strong {
  margin-top: 3px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.scenario-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.calendar-card[data-type="wedding"] {
  color: #101217;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  border-color: transparent;
}

.calendar-card[data-type="payment"] {
  border-color: rgba(255, 207, 90, 0.32);
}

.calendar-card[data-type="income"],
.calendar-card[data-type="cushion"] {
  border-color: rgba(102, 242, 165, 0.28);
}

.calendar-card span,
.drink-card span {
  color: var(--number-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.calendar-card[data-type="wedding"] span,
.calendar-card[data-type="wedding"] small {
  color: #101217;
}

.calendar-card b,
.drink-card h3,
.inventory-grid b,
.deposit-grid b {
  display: block;
  margin-top: 12px;
}

.calendar-card small,
.drink-card p,
.inventory-grid span,
.deposit-grid span,
.logistics-card p,
.theme-card p {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.logistics-board {
  display: grid;
  gap: 12px;
}

.logistic-unit {
  min-height: 150px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.035);
}

.logistic-kicker {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(215, 255, 63, 0.18);
  border-radius: 999px;
  color: var(--lime);
  background: rgba(215, 255, 63, 0.065);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logistic-unit h3 {
  margin: 14px 0 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.logistic-unit p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.logistic-unit b {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  margin-top: 14px;
  padding: 0 10px;
  border-radius: 999px;
  color: #101217;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  font-size: 11px;
  font-weight: 950;
}

.logistic-empty {
  grid-column: 1 / -1;
  min-height: 128px;
  display: grid;
  align-content: center;
}

.table-guests {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.table-guests span {
  padding: 7px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  font-weight: 850;
}

body[data-tone="white"] .logistic-unit {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(246, 247, 250, 0.72)),
    #fff;
}

.calendar-card[data-type="wedding"] b {
  color: #101217;
}

.vendor-missing-panel {
  margin-top: 16px;
}

.car-card .passengers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.passenger-card {
  min-width: 0;
  min-height: 44px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 15px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 50%, rgba(215, 255, 63, 0.08), transparent 46%),
    rgba(255, 255, 255, 0.035);
  font: inherit;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.passenger-card:hover {
  transform: translateY(-1px);
  border-color: rgba(215, 255, 63, 0.32);
  background:
    radial-gradient(circle at 12% 50%, rgba(215, 255, 63, 0.16), transparent 46%),
    rgba(255, 255, 255, 0.055);
}

.passenger-card span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #101217;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  font-size: 10px;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.passenger-card b {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-tone="white"] .car-model,
body[data-tone="white"] .passenger-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(246, 247, 250, 0.68)),
    #fff;
}

.weather-widget b,
.weather-widget strong {
  display: block;
}

.weather-widget b {
  color: var(--number-accent);
  font-size: 64px;
  letter-spacing: -0.08em;
}

.weather-widget strong {
  margin-top: 4px;
  font-size: 24px;
}

.weather-widget p {
  max-width: 440px;
  color: var(--muted);
  line-height: 1.5;
}

.theme-card {
  cursor: pointer;
}

.theme-card i {
  display: block;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: var(--swatch);
}

.theme-card.active {
  border-color: rgba(215, 255, 63, 0.46);
  box-shadow: 0 0 0 1px rgba(215, 255, 63, 0.15);
}

@media (max-width: 1180px) {
  .hero-grid,
  .dashboard-grid,
  .money-layout,
  .people-grid,
  .day-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .timeline,
  .data-strip,
  .expense-board,
  .vendor-grid,
  .cars-grid,
  .logistics-summary,
  .logistics-board,
  .theme-grid,
  .drink-grid,
  .guest-list-grid,
  .calendar-board,
  .inventory-grid,
  .deposit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 640px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .rail {
    position: fixed;
    z-index: 40;
    inset: auto 10px 10px;
    height: auto;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(11, 12, 15, 0.78);
  }

  body[data-tone="white"] .rail {
    background: rgba(255, 255, 255, 0.82);
  }

  .mark,
  .sync-pill {
    display: none;
  }

  .rail-nav {
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
  }

  .rail-nav button {
    min-height: 48px;
    border-radius: 16px;
  }

  .rail-nav span {
    display: none;
  }

  .rail-nav b {
    margin: 0;
    font-size: 9px;
  }

  .rail-nav button.active::before {
    inset: auto 18px -9px;
    width: auto;
    height: 3px;
  }

  .workspace {
    padding: 16px 16px 92px;
  }

  .control-panel {
    grid-template-columns: 1fr;
  }

  .topbar,
  .section-title,
  .couple-stage {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: start;
    flex-direction: column;
  }

  .section-title {
    align-items: start;
    flex-direction: column;
  }

  .section-actions {
    justify-content: start;
  }

  .top-actions {
    justify-content: start;
  }

  .couple-stage {
    min-height: auto;
  }

  .photo-slot {
    width: min(100%, 340px);
    min-height: 320px;
  }

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

  .guest-list-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .workspace {
    padding: 12px 12px 94px;
  }

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

  .stage-copy h2 {
    font-size: 54px;
  }

  .signal-grid,
  .data-strip,
  .timeline,
  .expense-board,
  .vendor-grid,
  .cluster-grid,
  .cars-grid,
  .logistics-summary,
  .logistics-board,
  .theme-grid,
  .drink-grid,
  .guest-list-grid,
  .calendar-board,
  .inventory-grid,
  .deposit-grid,
  .cushion-meter,
  .radar,
  .money-row,
  .overnight-board {
    grid-template-columns: 1fr;
  }

  .rail-nav b {
    font-size: 9px;
  }

  .action-item,
  .risk-item,
  .compact-list article,
  .modal-body article,
  .editor-grid,
  .check-grid,
  .guest-roster-list {
    grid-template-columns: 1fr;
  }
}
