@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --font-title: "Space Grotesk", "Inter", "Segoe UI", sans-serif;
  --font-body: "Inter", "Manrope", "Segoe UI", sans-serif;
  --sidebar-width: 250px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --shadow: 0 22px 36px rgba(4, 10, 24, 0.12);
  --income-color: #10b981;
  --expense-color: #ef4444;
}

body.theme-blue {
  --bg: #f5f3ff;
  --bg-soft: #faf9ff;
  --surface: #ffffff;
  --surface-soft: #f1effe;
  --ink: #1e1b4b;
  --muted: #6366f1;
  --primary: #6366f1;
  --primary-strong: #4f46e5;
  --accent: #f59e0b;
  --border: #e0e0ef;
  --sidebar-bg: #1e1b4b;
  --sidebar-border: rgba(255, 255, 255, 0.08);
  --sidebar-ink: #e0e7ff;
  --sidebar-muted: rgba(224, 231, 255, 0.65);
  --sidebar-item-bg: rgba(255, 255, 255, 0.04);
  --sidebar-item-hover: rgba(255, 255, 255, 0.12);
  --chip-bg: rgba(99, 102, 241, 0.12);
  --chip-border: rgba(99, 102, 241, 0.3);
  --focus: rgba(99, 102, 241, 0.25);
}

body.theme-green {
  --bg: #f6faf8;
  --bg-soft: #fbfdfc;
  --surface: #ffffff;
  --surface-soft: #f3f8f5;
  --ink: #16352c;
  --muted: #2f7d67;
  --primary: #2f8f76;
  --primary-strong: #236d5b;
  --accent: #f59e0b;
  --border: #dce8e1;
  --sidebar-bg: #052e16;
  --sidebar-border: rgba(255, 255, 255, 0.08);
  --sidebar-ink: #d1fae5;
  --sidebar-muted: rgba(209, 250, 229, 0.65);
  --sidebar-item-bg: rgba(255, 255, 255, 0.04);
  --sidebar-item-hover: rgba(255, 255, 255, 0.12);
  --chip-bg: rgba(47, 143, 118, 0.1);
  --chip-border: rgba(47, 143, 118, 0.24);
  --focus: rgba(47, 143, 118, 0.18);
}

body.theme-dark {
  --bg: #0c0a1d;
  --bg-soft: #110e2a;
  --surface: #1a1740;
  --surface-soft: #1f1c4a;
  --ink: #e0e7ff;
  --muted: #a5b4fc;
  --primary: #818cf8;
  --primary-strong: #6366f1;
  --accent: #34d399;
  --border: rgba(165, 180, 252, 0.16);
  --sidebar-bg: #080620;
  --sidebar-border: rgba(165, 180, 252, 0.12);
  --sidebar-ink: #e0e7ff;
  --sidebar-muted: #a5b4fc;
  --sidebar-item-bg: rgba(165, 180, 252, 0.08);
  --sidebar-item-hover: rgba(165, 180, 252, 0.18);
  --chip-bg: rgba(129, 140, 248, 0.16);
  --chip-border: rgba(129, 140, 248, 0.4);
  --focus: rgba(129, 140, 248, 0.35);
}

body.theme-light {
  --bg: #f8fafc;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --ink: #0f172a;
  --muted: #64748b;
  --primary: #4f46e5;
  --primary-strong: #4338ca;
  --accent: #0ea5e9;
  --border: rgba(15, 23, 42, 0.1);
  --sidebar-bg: #ffffff;
  --sidebar-border: rgba(15, 23, 42, 0.08);
  --sidebar-ink: #0f172a;
  --sidebar-muted: #64748b;
  --sidebar-item-bg: rgba(15, 23, 42, 0.04);
  --sidebar-item-hover: rgba(15, 23, 42, 0.08);
  --chip-bg: rgba(79, 70, 229, 0.1);
  --chip-border: rgba(79, 70, 229, 0.25);
  --focus: rgba(79, 70, 229, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  background: radial-gradient(circle at top, var(--bg-soft) 0%, var(--bg) 50%, var(--bg) 100%);
  color: var(--ink);
}

a {
  color: inherit;
}

small {
  color: var(--muted);
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
  transition: grid-template-columns 0.25s ease;
}

.sidebar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.18) 100%), var(--sidebar-bg);
  color: var(--sidebar-ink);
  padding: 20px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-right: 1px solid var(--sidebar-border);
  border-radius: 20px;
  margin: 16px 0 16px 16px;
  height: calc(100vh - 32px);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  overflow-y: auto;
  transition: transform 0.25s ease, opacity 0.2s ease, margin 0.25s ease;
}

.sidebar-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  min-width: 0;
  flex: 1 1 auto;
}

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

.brand-logo {
  width: 30px;
  height: 30px;
}

.brand-title {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.brand-sub {
  display: none;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sidebar-muted);
  padding: 6px 8px 2px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  background: transparent;
  color: var(--sidebar-ink);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
  position: relative;
}

.menu-item:hover,
.menu-item.active,
.menu-item[aria-current="page"] {
  background: var(--sidebar-item-hover) !important;
}

.menu-item::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 50%;
  width: 3px;
  height: 14px;
  border-radius: 999px;
  background: var(--accent);
  transform: translateY(-50%) scaleY(0.5);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-item.active::before,
.menu-item[aria-current="page"]::before {
  transform: translateY(-50%) scaleY(1);
  opacity: 1;
}

.menu-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.menu-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--sidebar-muted);
}

.menu-logout {
  color: var(--sidebar-ink);
  text-decoration: none;
  font-weight: 600;
}

.gear-menu {
  width: 100%;
}

.gear-menu summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--sidebar-ink);
  padding: 8px 10px;
  border-radius: 10px;
  background: transparent;
}

.gear-menu summary::-webkit-details-marker {
  display: none;
}

.gear-menu summary:hover {
  background: var(--sidebar-item-hover);
}

.gear-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--sidebar-item-bg);
}

.gear-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.gear-menu summary:hover .gear-icon svg {
  transform: rotate(20deg);
}

.gear-menu[open] .gear-icon svg {
  animation: gear-spin 1.6s linear infinite;
}

.gear-dropdown {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: 12px;
  background: var(--sidebar-item-bg);
  border: 1px solid var(--sidebar-border);
}

.gear-dropdown a {
  color: var(--sidebar-ink);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gear-dropdown a:hover {
  background: var(--sidebar-item-hover);
}

.gear-link {
  justify-content: flex-start;
  gap: 10px;
  align-items: center;
  width: 100%;
  position: relative;
}

.gear-link.active {
  background: var(--sidebar-item-hover) !important;
}

.gear-link[aria-current="page"] {
  background: var(--sidebar-item-hover) !important;
}

.gear-link::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 3px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  transform: translateY(-50%) scaleY(0.5);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.gear-link.active::before,
.gear-link[aria-current="page"]::before {
  transform: translateY(-50%) scaleY(1);
  opacity: 1;
}

.gear-link-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
}

.gear-item-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 0;
}

.gear-item-icon svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  display: block;
}

.notif-badge {
  min-width: 16px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  margin-left: auto;
}

@keyframes gear-spin {
  to {
    transform: rotate(360deg);
  }
}

.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  padding: 20px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  flex: 1 1 auto;
  min-width: 280px;
  max-width: 720px;
}

.search-bar input {
  border: none;
  background: transparent;
  color: var(--ink);
  flex: 1 1 auto;
  padding: 0;
  font-size: 13px;
}

.search-bar input:focus {
  outline: none;
}

.search-icon svg {
  width: 16px;
  height: 16px;
  fill: var(--muted);
}

.search-shortcut {
  font-size: 11px;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 800px;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  min-width: 300px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  max-height: 400px;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 8px;
}

.search-group {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 12px 10px 4px;
  font-weight: 700;
}

.search-result-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: var(--surface-soft);
}

.search-result-title {
  font-size: 13px;
  font-weight: 600;
}

.search-result-subtitle {
  font-size: 12px;
  color: var(--muted);
}

.search-loading, .search-empty {
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.theme-menu {
  position: relative;
}

.theme-menu summary {
  list-style: none;
}

.theme-menu summary::-webkit-details-marker {
  display: none;
}

.theme-menu-button {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.theme-menu-button:hover,
.theme-menu[open] .theme-menu-button {
  background: var(--surface-soft);
  border-color: var(--border);
}

.theme-menu-button svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.theme-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 156px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  display: grid;
  gap: 4px;
  z-index: 50;
}

.theme-option {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  padding: 8px 10px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.theme-option:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.theme-option.active {
  background: var(--surface-soft);
  border-color: var(--border);
  color: var(--primary);
}

.topbar-icon {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  text-decoration: none;
}

.topbar-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.topbar-icon .notif-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  margin-left: 0;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.user-name {
  font-size: 13px;
  font-weight: 600;
}

.menu-toggle {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px;
  cursor: pointer;
}

.topbar .menu-toggle {
  display: none;
}

.menu-toggle svg,
.sidebar-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.sidebar-toggle {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--sidebar-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.sidebar-toggle:hover {
  background: var(--sidebar-item-hover);
  border-color: rgba(255, 255, 255, 0.16);
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 10, 10, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 25;
}

.sidebar-open {
  overflow: hidden;
}

.sidebar-open .sidebar-backdrop {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 961px) {
  html.sidebar-collapsed .app-shell,
  body.sidebar-collapsed .app-shell,
  body.app-shell.sidebar-collapsed {
    grid-template-columns: 88px 1fr;
  }

  html.sidebar-collapsed .sidebar,
  body.sidebar-collapsed .sidebar {
    overflow-x: hidden;
    padding-left: 10px;
    padding-right: 10px;
  }

  html.sidebar-collapsed .sidebar .sidebar-header,
  body.sidebar-collapsed .sidebar .sidebar-header {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  html.sidebar-collapsed .sidebar .brand,
  body.sidebar-collapsed .sidebar .brand {
    justify-content: center;
    padding: 0;
  }

  html.sidebar-collapsed .sidebar .brand-copy,
  html.sidebar-collapsed .sidebar .menu-label,
  html.sidebar-collapsed .sidebar .menu-item > span:last-child,
  html.sidebar-collapsed .sidebar .gear-menu summary > span:last-child,
  html.sidebar-collapsed .sidebar .sidebar-footer,
  body.sidebar-collapsed .sidebar .brand-copy,
  body.sidebar-collapsed .sidebar .menu-label,
  body.sidebar-collapsed .sidebar .menu-item > span:last-child,
  body.sidebar-collapsed .sidebar .gear-menu summary > span:last-child,
  body.sidebar-collapsed .sidebar .sidebar-footer {
    display: none;
  }

  html.sidebar-collapsed .sidebar .menu-item,
  html.sidebar-collapsed .sidebar .gear-menu summary,
  body.sidebar-collapsed .sidebar .menu-item,
  body.sidebar-collapsed .sidebar .gear-menu summary {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }

  html.sidebar-collapsed .sidebar .menu-item::before,
  body.sidebar-collapsed .sidebar .menu-item::before {
    display: none;
  }
}

.content {
  padding: 20px 24px 32px;
  min-width: 0;
}

.page-header h1 {
  font-family: var(--font-title);
  margin: 0 0 6px 0;
  font-size: 22px;
}

.page-header p {
  margin: 0 0 24px 0;
  color: var(--muted);
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.launch-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.launch-page-header .page-header-actions {
  margin-top: 2px;
  margin-left: auto;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.launch-main-card {
  margin-top: 12px;
}

.hero-card {
  padding: 24px;
}

.hero-intro {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.hero-title {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  margin-top: 6px;
}

.hero-sub {
  margin: 6px 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.hero-meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-chip {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}

.progress-card .card-header {
  align-items: center;
}

.progress-count {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.progress-bar {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-pill);
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 10px 20px rgba(4, 10, 24, 0.08);
}

.step-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-check {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
  display: inline-block;
}

.step-item.done .step-check {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(240, 138, 36, 0.2);
}

.step-title {
  font-weight: 600;
}

.step-desc {
  color: var(--muted);
  font-size: 12px;
}

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

.card-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.card-title {
  margin: 6px 0 0;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
}

.card-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.form-row.compact {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 0;
  align-items: center;
}

.form-row.compact input,
.form-row.compact select,
.form-row.compact button {
  padding: 8px 10px;
  font-size: 12px;
  border-radius: 10px;
}

.launch-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.launch-legend-title {
  color: var(--ink);
  font-weight: 700;
}

.launch-legend strong {
  color: var(--ink);
  font-weight: 700;
}

.launch-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.launch-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 130px 170px;
  gap: 10px;
  align-items: center;
  width: min(560px, 100%);
  justify-self: end;
}

.launch-filters input,
.launch-filters select {
  min-width: 0;
  width: 100%;
}

.launch-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 640px);
  align-items: start;
  gap: 16px;
}

.launch-heading .card-subtitle {
  margin-bottom: 0;
}

.launch-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.launch-section-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
}

.launch-count {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.launch-section-metrics {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.launch-total {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.launch-total.income {
  color: #0f766e;
}

.launch-total.expense {
  color: #b91c1c;
}


.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.button.secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink);
}

.button.ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
  box-shadow: none;
}

.button.small {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
}

.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
}

.card+.card {
  margin-top: 18px;
}

.highlight {
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 2px solid var(--accent);
}

.stat-label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.stat-value {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.two-col {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.table th,
.table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 13px;
}

.table thead th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: var(--surface-soft);
}

.table tbody tr:hover {
  background: var(--surface-soft);
}

.smtp-table th {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface-soft);
}

.smtp-table tbody td {
  vertical-align: middle;
}

.smtp-table tbody td:last-child {
  width: 1%;
  white-space: nowrap;
}

.smtp-main {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.api-table th {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface-soft);
}

.api-table tbody td {
  vertical-align: middle;
}

.api-table tbody td:last-child {
  width: 1%;
  white-space: nowrap;
}

.api-main {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-actions form {
  margin: 0;
}

.button.danger {
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.button.danger:hover {
  background: rgba(239, 68, 68, 0.1);
  box-shadow: none;
  transform: none;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
}

.badge.kind {
  background: var(--chip-bg);
  color: var(--primary);
}

.badge.warn {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
}

.account-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 8px;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.1);
}

.input-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--muted);
}

.input-inline input[type="color"] {
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  background: transparent;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.checkbox-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

input,
select,
textarea,
button {
  font-family: inherit;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--focus);
  border-color: var(--primary);
  background: var(--surface);
}

input[data-mask]:not(:placeholder-shown):invalid {
  border-color: #dc2626;
  background: rgba(239, 68, 68, 0.08);
}

input[data-mask]:not(:placeholder-shown):valid {
  border-color: #16a34a;
}

button {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

button.menu-toggle {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  padding: 10px;
  box-shadow: none;
}

button.menu-toggle:hover {
  transform: none;
  box-shadow: none;
}

button.secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}

.error {
  color: #b91c1c;
  font-weight: 600;
}

.success {
  color: #0f766e;
  font-weight: 600;
  background: #e6f4f1;
  padding: 10px 12px;
  border-radius: 12px;
}

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

.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plain-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.notification-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notification-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--surface);
  box-shadow: 0 10px 20px rgba(4, 10, 24, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.notification-item.unread {
  border-color: var(--accent);
  background: var(--surface);
}

.notification-title {
  font-weight: 700;
}

.notification-title a {
  color: inherit;
  text-decoration: none;
}

.notification-title a:hover {
  text-decoration: underline;
}

.notification-message {
  color: var(--muted);
}

.notification-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

.notification-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

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

.section-header h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 16px;
}

.section-header p {
  margin: 4px 0 0 0;
  font-size: 12px;
}

.transaction-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.transaction-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 10px 20px rgba(4, 10, 24, 0.08);
}

.transaction-title {
  font-weight: 600;
}

.transaction-meta {
  color: var(--muted);
  font-size: 12px;
}

.transaction-amount {
  font-weight: 700;
}

.transaction-amount.income {
  color: #0f766e;
}

.transaction-amount.expense {
  color: #b91c1c;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.insight-item {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.insight-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}

.insight-value {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 700;
}

.month-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.month-label {
  font-weight: 600;
  color: var(--muted);
  font-size: 14px;
  min-width: 140px;
  text-align: center;
}

.launch-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.installment-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.launch-section {
  margin-top: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.launch-section:first-of-type {
  margin-top: 0;
}

.launch-columns .launch-section {
  margin-top: 0;
}

.launch-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  margin-bottom: 0;
}

.launch-item.is-paid {
  border-left: 2px solid rgba(16, 185, 129, 0.7);
  padding-left: 12px;
  background: rgba(16, 185, 129, 0.08);
}

.launch-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.launch-title {
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.launch-meta {
  font-size: 13px;
  color: var(--muted);
}

.launch-amount {
  font-weight: 700;
  align-self: center;
  white-space: nowrap;
  font-size: 20px;
}

.launch-amount.income {
  color: #0f766e;
}

.launch-amount.expense {
  color: #b91c1c;
}

.launch-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.launch-actions form {
  margin: 0;
}

.launch-actions .button {
  padding: 8px 14px;
  font-size: 13px;
}

.goal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.goal-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: var(--surface);
  box-shadow: 0 10px 20px rgba(4, 10, 24, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.goal-title {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.goal-meta {
  color: var(--muted);
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.goal-progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 97, 95, 0.12);
  overflow: hidden;
}

.goal-progress-fill {
  height: 100%;
  border-radius: 999px;
}

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

.goal-actions form {
  margin: 0;
}

/* ── Shopping List Specifics ─────────────────────────────── */

.shopping-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 640px);
  gap: 20px;
  align-items: start;
}

@media (max-width: 960px) {
  .shopping-grid {
    grid-template-columns: 1fr;
  }
}

.shopping-list-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shopping-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.shopping-list-row:hover {
  border-color: var(--primary);
}

.shopping-list-row.is-active {
  border-color: var(--primary);
  background: var(--chip-bg);
  box-shadow: 0 0 0 1px var(--primary);
}

.shopping-list-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  text-decoration: none;
  color: var(--ink);
}

.shopping-list-actions {
  display: flex;
  gap: 6px;
}

.shopping-item-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 4px 12px rgba(4, 10, 24, 0.04);
}

.shopping-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.compact-grid {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 8px;
  align-items: center;
}

.compact-ghost {
  background: var(--surface);
}

.price-indicator {
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  vertical-align: middle;
}

.price-indicator.is-low {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}

.price-indicator.is-high {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

.price-indicator.is-neutral {
  background: var(--surface-soft);
  color: var(--muted);
}

.price-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--chip-bg);
  border: 1px solid var(--primary);
  color: var(--primary-strong);
}

.price-banner strong {
  font-size: 18px;
  font-family: var(--font-title);
}

.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  background: var(--surface-soft);
  border-radius: 14px;
  border: 1px dashed var(--border);
}

.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: center;
  width: min(960px, 100%);
}

.auth-brand {
  padding: 24px;
}

.auth-brand h1 {
  font-family: var(--font-title);
  margin: 16px 0 8px;
  font-size: 28px;
}

.auth-brand p {
  color: var(--muted);
  margin: 0;
}

.auth-logo {
  width: 64px;
  height: 64px;
}

.auth-card {
  width: 100%;
}

.auth-login-card {
  padding: 24px;
}

.auth-login-header h2 {
  margin: 0 0 6px 0;
  font-family: var(--font-title);
  font-size: 20px;
}

.auth-login-header p {
  margin: 0 0 18px 0;
  color: var(--muted);
}

.auth-login-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

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

.auth-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.auth-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.auth-actions .button {
  flex: 1 1 160px;
  justify-content: center;
}

.phone-field {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.country-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  min-width: 90px;
}

.country-toggle .chev {
  font-size: 12px;
  opacity: 0.7;
}

.country-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  gap: 6px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  z-index: 10;
}

.country-menu button {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.country-menu button:hover {
  background: var(--surface-soft);
}

.flag-icon {
  font-size: 18px;
  width: 22px;
  text-align: center;
}

.country-menu[hidden] {
  display: none !important;
}

.auth-panel {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-panel-primary {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
  border-color: var(--chip-border);
}

.auth-panel-secondary {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
  border-color: rgba(240, 138, 36, 0.35);
}

.auth-panel-title {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
}

.auth-panel-sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

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

.auth-panel .form-row {
  margin-bottom: 0;
}

.auth-panel button {
  width: 100%;
}

.auth-option h3 {
  margin: 0 0 12px 0;
  font-size: 18px;
}

.auth-option .error {
  margin: 0 0 10px 0;
}

.auth-divider {
  margin: 18px 0;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}

.auth-links {
  margin-top: 12px;
  font-size: 13px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.auth-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-links a:hover {
  text-decoration: underline;
}

.drawer {
  position: fixed;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  transition: opacity 0.2s ease;
}

.drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 10, 0.45);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 92vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 24px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.drawer.is-open .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.drawer-body {
  padding: 18px 20px 24px;
  overflow-y: auto;
}

.drawer-close {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 10, 22, 0.45);
  backdrop-filter: blur(8px);
  z-index: 60;
  padding: 20px;
}

.modal.is-open {
  display: flex;
}

.modal-card {
  width: min(560px, 92vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}

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

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.modal-open {
  overflow: hidden;
}

/* Clean modern pass */
:root {
  --radius-lg: 12px;
  --radius-md: 10px;
  --shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

body {
  font-size: 13.5px;
  line-height: 1.38;
}

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

.sidebar {
  padding: 14px 10px 16px;
  gap: 10px;
  border-radius: 14px;
  margin: 10px 0 10px 10px;
  height: calc(100vh - 20px);
  box-shadow: 0 8px 20px rgba(4, 10, 24, 0.12);
}

.brand {
  padding: 4px 6px;
}

.menu {
  gap: 6px;
}

.menu-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 4px 8px 2px;
}

.menu-item {
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 12px;
}

.menu-icon {
  width: 15px;
  height: 15px;
}

.menu-icon svg {
  width: 13px;
  height: 13px;
}

.sidebar-footer {
  gap: 6px;
  font-size: 12px;
}

.gear-menu summary {
  padding: 7px 8px;
  border-radius: 8px;
}

.gear-icon {
  width: 19px;
  height: 19px;
  border-radius: 6px;
}

.gear-icon svg {
  width: 13px;
  height: 13px;
}

.topbar {
  padding: 12px 16px 0;
  gap: 10px;
}

.topbar-right {
  gap: 8px;
}

.search-bar {
  padding: 7px 10px;
  border-radius: 999px;
}

.search-bar input {
  font-size: 12px;
}

.search-shortcut {
  font-size: 10px;
  padding: 3px 7px;
}

.theme-menu-button {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.theme-menu-dropdown {
  min-width: 142px;
  padding: 6px;
}

.theme-option {
  padding: 7px 9px;
  font-size: 11px;
}

.topbar-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.user-chip {
  padding: 5px 8px;
  gap: 8px;
}

.user-avatar {
  width: 26px;
  height: 26px;
  font-size: 11px;
}

.user-label {
  font-size: 9px;
}

.user-name {
  font-size: 11px;
}

.content {
  padding: 14px 16px 20px;
}

.page-header h1 {
  font-size: 19px;
  margin-bottom: 4px;
}

.page-header p {
  margin: 0 0 10px;
  font-size: 12px;
}

.page-header-actions {
  gap: 8px;
}

.launch-page-header .page-header-actions {
  margin-top: 2px;
  margin-left: auto;
  justify-content: flex-end;
}

.launch-main-card {
  margin-top: 12px;
}

.month-nav {
  padding: 4px 8px;
  gap: 8px;
}

.month-label {
  min-width: 118px;
  font-size: 12px;
}

.card {
  background: var(--surface);
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.card+.card {
  margin-top: 12px;
}

.card-header {
  gap: 10px;
  margin-bottom: 10px;
}

.card-label {
  font-size: 9px;
  letter-spacing: 0.12em;
}

.card-title {
  font-size: 14px;
}

.card-subtitle {
  font-size: 11px;
}

.hero-card {
  padding: 14px;
}

.hero-title {
  font-size: 17px;
}

.hero-sub,
.hero-meta {
  font-size: 11px;
}

.pill-chip {
  font-size: 11px;
  padding: 4px 9px;
}

.progress-count {
  font-size: 10px;
}

.step-title {
  font-size: 12px;
}

.step-desc {
  font-size: 11px;
}

.stat-value {
  font-size: 17px;
}

.section-header h2 {
  font-size: 14px;
}

.section-header p {
  font-size: 11px;
}

.insight-item {
  padding: 10px 12px;
  border-radius: 11px;
}

.insight-value {
  font-size: 14px;
}

.launch-legend {
  gap: 8px;
  font-size: 11px;
}

.launch-header {
  gap: 12px;
}

.launch-filters {
  gap: 8px;
}

.launch-section {
  padding: 8px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.launch-section-header {
  margin-bottom: 6px;
  padding-bottom: 6px;
}

.launch-section-header h3 {
  font-size: 13px;
}

.launch-count {
  font-size: 10px;
}

.launch-section-metrics {
  gap: 7px;
}

.launch-total {
  font-size: 10.5px;
  font-weight: 600;
}

.launch-item {
  gap: 5px;
  padding: 6px 0;
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

.launch-item.is-paid {
  border-left: none;
  padding-left: 0;
  background: transparent;
}

.launch-title {
  font-size: 12px;
}

.launch-meta {
  font-size: 10px;
}

.launch-status {
  font-weight: 600;
}

.launch-status.is-paid {
  color: #0f766e;
}

.launch-status.is-pending {
  color: var(--muted);
}

.launch-amount {
  font-size: 12px;
  letter-spacing: -0.01em;
  align-self: start;
  font-weight: 600;
}

.launch-item.is-paid .launch-amount {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  opacity: 0.7;
}

.launch-actions .button {
  padding: 0;
  font-size: 10.5px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--muted);
  min-height: auto;
  line-height: 1.35;
}

.launch-actions .button:hover {
  transform: none;
  box-shadow: none;
  border: none;
  background: rgba(15, 23, 42, 0.04);
  color: var(--ink);
  text-decoration: none;
}

.launch-actions .button.danger {
  color: #dc2626;
}

.launch-actions .button.danger:hover {
  color: #b91c1c;
}

.table {
  min-width: 500px;
}

.table th,
.table td {
  padding: 8px 9px;
  font-size: 11.5px;
}

.table thead th,
.smtp-table th,
.api-table th {
  font-size: 9.5px;
}

.table-actions {
  gap: 6px;
}

.smtp-main,
.api-main {
  font-size: 14px;
}

.badge {
  padding: 2px 7px;
  font-size: 9.5px;
}

.goal-list,
.notification-list,
.transaction-list {
  gap: 9px;
}

.goal-item,
.notification-item,
.transaction-row {
  padding: 10px 11px;
  border-radius: 10px;
  box-shadow: none;
}

.goal-meta,
.transaction-meta,
.notification-meta {
  font-size: 10px;
}

.goal-progress {
  height: 8px;
}

.goal-actions,
.notification-actions {
  gap: 6px;
}

input,
select,
textarea,
button {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
}

.form-row {
  gap: 10px;
  margin-bottom: 10px;
}

.checkbox-row {
  font-size: 12px;
}

.button {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
}

.button.small {
  padding: 5px 9px;
  font-size: 10px;
}

.compact-primary {
  padding: 6px 11px;
  font-size: 11px;
}

.compact-ghost {
  padding: 4px 8px;
  font-size: 10px;
  color: var(--muted);
  border-color: rgba(15, 23, 42, 0.12);
}

.compact-ghost:hover {
  color: var(--ink);
  background: rgba(15, 23, 42, 0.04);
  box-shadow: none;
  transform: none;
}

.dashboard-actions,
.accounts-actions,
.goals-actions {
  gap: 6px;
}

.family-top-grid,
.family-manage-grid {
  gap: 10px;
  margin-bottom: 10px;
}

.family-top-grid .card+.card,
.family-manage-grid .card+.card {
  margin-top: 0;
}

.family-inline-form {
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: center;
  margin-bottom: 0;
}

.family-inline-form .button {
  white-space: nowrap;
}

.family-card .checkbox-row {
  margin-top: 2px;
}

.family-table {
  min-width: 620px;
}

.family-table-select {
  min-width: 100px;
}

.family-row-actions {
  align-items: center;
  flex-wrap: wrap;
}

.dashboard-hero .pill-group {
  gap: 6px;
}

.dashboard-hero .pill-chip {
  padding: 3px 8px;
  font-size: 10px;
  border-color: rgba(15, 23, 42, 0.12);
}

.dashboard-hero .hero-meta {
  margin-top: 8px;
}

.dashboard-progress .step-list {
  gap: 6px;
}

.dashboard-progress .step-item {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.dashboard-progress .step-check {
  width: 10px;
  height: 10px;
}

.dashboard-transactions .transaction-row {
  padding: 8px 10px;
  border-radius: 8px;
  box-shadow: none;
}

.dashboard-transactions .transaction-amount {
  font-size: 12px;
  font-weight: 600;
}

.accounts-card .table {
  min-width: 470px;
}

.accounts-table tbody tr:hover {
  background: rgba(15, 23, 42, 0.02);
}

.table-actions-min {
  gap: 6px;
}

.table-actions-min .button {
  padding: 0;
  font-size: 10.5px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--muted);
  min-height: auto;
}

.table-actions-min .button:hover {
  transform: none;
  box-shadow: none;
  background: rgba(15, 23, 42, 0.04);
  color: var(--ink);
}

.table-actions-min .button.danger {
  color: #dc2626;
}

.table-actions-min .button.danger:hover {
  color: #b91c1c;
}

.goals-card .goal-list {
  gap: 7px;
}

.goals-card .goals-item {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  box-shadow: none;
}

.goals-card .goal-title {
  font-size: 12px;
}

.goals-card .goal-meta {
  font-size: 10px;
}

.goals-card .goal-progress {
  height: 6px;
}

.goal-actions-min {
  gap: 6px;
}

.goal-actions-min .button {
  padding: 0;
  font-size: 10.5px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--muted);
  min-height: auto;
}

.goal-actions-min .button:hover {
  transform: none;
  box-shadow: none;
  background: rgba(15, 23, 42, 0.04);
  color: var(--ink);
}

.goal-actions-min .button.danger {
  color: #dc2626;
}

.goal-actions-min .button.danger:hover {
  color: #b91c1c;
}

.auth-body {
  padding: 16px;
}

.auth-shell {
  gap: 16px;
}

.auth-brand {
  padding: 16px;
}

.auth-brand h1 {
  font-size: 24px;
}

.auth-login-card {
  padding: 16px;
}

.auth-login-header h2 {
  font-size: 18px;
}

.auth-panel {
  padding: 12px;
}

.auth-panel-title {
  font-size: 14px;
}

.auth-panel-sub,
.auth-links {
  font-size: 12px;
}

.drawer-panel {
  width: min(380px, 92vw);
}

.drawer-header {
  padding: 14px 16px;
}

.drawer-body {
  padding: 14px 16px 18px;
}

.modal {
  padding: 14px;
  backdrop-filter: blur(6px);
}

.modal-card {
  width: min(500px, 92vw);
  padding: 14px;
}

.modal-header {
  gap: 10px;
  margin-bottom: 10px;
}

.modal-close {
  width: 30px;
  height: 30px;
}

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

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 280px;
    max-width: 85vw;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 30;
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    margin: 0;
    border-radius: 0;
    height: 100vh;
  }

  .sidebar-open .sidebar {
    transform: translateX(0);
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--bg);
    backdrop-filter: blur(8px);
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
  }

  .topbar-right {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

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

  .family-inline-form .button {
    width: 100%;
  }

  .family-table {
    min-width: 520px;
  }

  .search-shortcut {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .topbar .menu-toggle {
    display: inline-flex;
  }

  .content {
    padding: 14px;
  }

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

  .launch-columns {
    grid-template-columns: 1fr;
  }

  .launch-header {
    grid-template-columns: 1fr;
  }

  .launch-filters {
    grid-template-columns: 1fr;
    justify-self: stretch;
    width: 100%;
  }

  .launch-filters input,
  .launch-filters select,
  .launch-filters button {
    width: 100%;
  }

}

@media (max-width: 640px) {
  .card {
    padding: 12px;
  }

  .table {
    min-width: 420px;
  }

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

  .user-meta {
    display: none;
  }

  .search-bar {
    min-width: 0;
  }

  .theme-menu {
    display: none;
  }
}

/* ========================================================
   DASHBOARD REDESIGN — KPI, Charts, Transactions
   ======================================================== */

/* --- Dashboard Header --- */
.dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.dash-greeting {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--ink);
}

.dash-subtitle {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 20px;
  font-weight: 500;
}

/* --- KPI Cards --- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.kpi-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-icon-wrap svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

.kpi-icon-blue {
  background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
}

.kpi-icon-green {
  background: linear-gradient(135deg, #059669 0%, #34d399 100%);
}

.kpi-icon-red {
  background: linear-gradient(135deg, #dc2626 0%, #f87171 100%);
}

.kpi-icon-purple {
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
}

.kpi-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.kpi-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.kpi-value {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
}

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

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

.kpi-sub {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  opacity: 0.8;
}

/* --- Chart Row --- */
.chart-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 20px;
  margin-bottom: 24px;
}

.chart-card {
  padding: 24px;
}

.chart-wrap {
  position: relative;
  height: 280px;
}

.chart-wrap-donut {
  height: 260px;
}

.chart-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* --- Transaction List --- */
.dash-transactions-card {
  padding: 24px;
  margin-bottom: 24px;
}

.tx-list {
  display: flex;
  flex-direction: column;
}

.tx-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

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

.tx-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tx-icon-wrap svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

.tx-icon-income {
  background: linear-gradient(135deg, #059669 0%, #34d399 100%);
}

.tx-icon-expense {
  background: linear-gradient(135deg, #dc2626 0%, #f87171 100%);
}

.tx-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.tx-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-meta {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.tx-amount {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

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

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

/* --- Steps Card (collapsible) --- */
.dash-steps-card {
  padding: 24px;
  margin-bottom: 24px;
}

.dash-steps-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  margin-bottom: 16px;
}

.dash-steps-summary::-webkit-details-marker {
  display: none;
}

/* --- KPI Responsive --- */
@media (max-width: 1200px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .chart-row {
    grid-template-columns: 1fr;
  }
}

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

  .dash-greeting {
    font-size: 22px;
  }

  .kpi-value {
    font-size: 18px;
  }

  .chart-wrap {
    height: 220px;
  }

  .chart-wrap-donut {
    height: 200px;
  }
}

/* ========================================================
   EXPAND PANEL — Inline creation card
   ======================================================== */
.expand-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-bottom: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin-bottom 0.25s ease, padding 0.25s ease;
  padding: 0 24px;
  border: 1px solid transparent;
}

.expand-panel.expand-open {
  max-height: 600px;
  opacity: 1;
  padding: 24px;
  margin-bottom: 24px;
  border-color: var(--border);
}

/* ========================================================
   ACCOUNT CARDS
   ======================================================== */
.accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.account-card {
  padding: 0;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.account-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.account-color-bar {
  height: 4px;
  width: 100%;
}

.account-card-body {
  padding: 20px;
}

.account-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.account-card-top .kpi-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.account-name {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 2px;
  color: var(--ink);
}

.account-type-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.account-balance {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  margin: 14px 0;
}

.account-actions {
  display: flex;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ========================================================
   EMPTY STATE
   ======================================================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  gap: 12px;
  color: var(--muted);
}

.empty-state p {
  margin: 0;
  font-size: 14px;
}

/* ========================================================
   NOTIFICATION ITEMS (improved)
   ======================================================== */
.notification-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item.unread {
  background: var(--surface-soft);
  margin: 0 -24px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
}

.notification-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

.notification-title a {
  color: var(--primary);
  text-decoration: none;
}

.notification-title a:hover {
  text-decoration: underline;
}

.notification-message {
  font-size: 13px;
  color: var(--ink);
  opacity: 0.8;
}

.notification-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.notification-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

/* ========================================================
   LAUNCH — paid strikethrough
   ======================================================== */
.tx-row-paid .tx-title,
.tx-row-paid .tx-amount {
  text-decoration: line-through;
  opacity: 0.55;
}

.tx-row-paid .tx-icon-wrap {
  opacity: 0.45;
}

/* ========================================================
   FAMILY — member cards
   ======================================================== */
.family-members-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Family page layout */
.family-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}

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

.family-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 24px;
}

@media (max-width: 768px) {
  .family-layout {
    grid-template-columns: 1fr;
  }

  .family-sidebar {
    position: static;
  }
}

.family-member-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  flex-wrap: wrap;
}

.family-member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.family-member-info {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.family-member-name {
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.select-sm {
  padding: 4px 8px;
  font-size: 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--text);
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================================
   TX — compact creation form
   ======================================================== */
.tx-compact-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tx-compact-form select,
.tx-compact-form input[type="text"],
.tx-compact-form input[type="date"] {
  padding: 7px 10px;
  font-size: 0.85rem;
  height: 36px;
  margin-bottom: 0;
}

.tx-compact-form button {
  height: 36px;
  padding: 0 16px;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* ========================================================
   CATEGORY CARDS
   ======================================================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.cat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}

.cat-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cat-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.cat-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cat-card-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}

.shopping-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(0, 2fr);
  gap: 20px;
}

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

.review-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}

.shopping-list-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shopping-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.shopping-list-row.is-active {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.shopping-list-link {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  text-decoration: none;
}

.shopping-list-actions {
  display: flex;
  gap: 8px;
}

.shopping-item-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.shopping-item-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.price-indicator {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  margin-top: 8px;
}

.price-indicator.is-low {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.price-indicator.is-high {
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
}

.price-indicator.is-neutral {
  background: rgba(100, 116, 139, 0.14);
  color: #475569;
}

.price-banner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(16, 185, 129, 0.12));
  margin-bottom: 16px;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .shopping-grid {
    grid-template-columns: 1fr;
  }
}
