:root {
  --bg-deep: #f2eee6;
  --bg: #f7f4ee;
  --surface: #fdfbf7;
  --surface-raised: #efe9df;
  --text-primary: #1f1b16;
  --text-secondary: #5e554a;
  --text-muted: #7b7266;
  --border: rgba(31, 27, 22, 0.08);
  --border-strong: rgba(31, 27, 22, 0.16);
  --accent: #b8442a;
  --accent-hover: #9f3821;
  --accent-text: #fdfbf7;
  --accent-soft: rgba(184, 68, 42, 0.1);
  --btn-primary-bg: #b8442a;
  --btn-primary-hover: #9f3821;
  --btn-primary-fg: #fdfbf7;
  --positive: #15803d;
  --positive-soft: rgba(21, 128, 61, 0.08);
  --negative: #dc2626;
  --negative-soft: rgba(220, 38, 38, 0.08);
  --priority-high: #b8442a;
  --priority-medium: #a16207;
  --priority-low: #7b7266;
  --shadow-sm: 0 1px 2px rgba(31, 27, 22, 0.05);
  --shadow-md: 0 8px 24px rgba(31, 27, 22, 0.08);
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

[data-theme="dark"] {
  --bg-deep: #12110f;
  --bg: #161513;
  --surface: #1c1a18;
  --surface-raised: #262421;
  --text-primary: #efe9de;
  --text-secondary: #aaa398;
  --text-muted: #8a847a;
  --border: rgba(239, 233, 222, 0.08);
  --border-strong: rgba(239, 233, 222, 0.16);
  --accent: #d96b4e;
  --accent-hover: #e17f64;
  --accent-text: #161513;
  --accent-soft: rgba(217, 107, 78, 0.14);
  --btn-primary-bg: #efe9de;
  --btn-primary-hover: #e2dacb;
  --btn-primary-fg: #161513;
  --positive: #4cc38a;
  --positive-soft: rgba(76, 195, 138, 0.1);
  --negative: #e5484d;
  --negative-soft: rgba(229, 72, 77, 0.12);
  --priority-high: #d96b4e;
  --priority-medium: #d99b4e;
  --priority-low: #8a847a;
  --shadow-sm: none;
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.4);
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.45;
  background-color: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

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

.muted-sm {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.icon,
.icon-sm,
.icon-lg,
.brand-mark {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.icon {
  width: 16px;
  height: 16px;
}

.icon-sm {
  width: 14px;
  height: 14px;
}

.icon-lg {
  width: 24px;
  height: 24px;
}

.brand-mark {
  width: 18px;
  height: 18px;
  color: var(--text-primary);
}

.brand-mark-dot {
  fill: var(--accent);
  stroke: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.app-shell {
  display: flex;
  min-height: 100vh;
  max-width: 1440px;
  margin: 0 auto;
}

.mobile-bar {
  display: none;
}

.sidebar-backdrop {
  display: none;
}

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background-color: var(--bg-deep);
  border-right: 1px solid var(--border);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 36px;
}

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

.wordmark-text {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.sidebar-search {
  position: relative;
  display: flex;
  align-items: center;
}

.sidebar-search .search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

.sidebar-search input {
  width: 100%;
  height: 36px;
  padding: 0 36px 0 36px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-primary);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease);
}

.sidebar-search input::placeholder {
  color: var(--text-muted);
}

.keycap {
  position: absolute;
  right: 8px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background-color: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  pointer-events: none;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-section-header {
  padding: 0 8px;
}

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

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-row {
  width: 100%;
  height: 36px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease);
}

.nav-row .icon {
  color: var(--text-muted);
  transition: color 150ms var(--ease);
}

.nav-row:hover {
  background-color: var(--surface-raised);
  color: var(--text-primary);
}

.nav-row.active {
  background-color: var(--surface);
  color: var(--text-primary);
  font-weight: 500;
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .nav-row.active {
  background-color: var(--surface-raised);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-row.active .icon {
  color: var(--accent);
}

.nav-row-action {
  color: var(--text-muted);
}

.nav-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.main-content {
  flex: 1;
  min-width: 0;
  padding: 24px 32px 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: contentEnter 320ms var(--ease) both;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease), transform 120ms var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

.btn-primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
}

.btn-primary:hover {
  background-color: var(--btn-primary-hover);
}

[data-theme="dark"] .btn-primary {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn-ghost {
  background-color: var(--surface);
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-ghost:hover {
  background-color: var(--surface-raised);
  border-color: var(--border-strong);
}

.btn-done-state {
  background-color: var(--positive-soft);
  color: var(--positive);
  border-color: var(--border);
}

.btn-done-state:hover {
  background-color: var(--surface-raised);
  border-color: var(--border-strong);
}

.btn-danger {
  background-color: var(--negative-soft);
  color: var(--negative);
}

.btn-danger:hover {
  border-color: var(--negative);
}

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  background-color: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
}

.btn-icon:hover {
  background-color: var(--surface-raised);
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-icon-danger:hover {
  color: var(--negative);
  background-color: var(--negative-soft);
}

.text-btn {
  border: none;
  background: transparent;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  cursor: pointer;
}

.text-btn:hover {
  text-decoration: underline;
}

.shared-banner {
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.shared-banner-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}

.shared-banner-text strong {
  font-weight: 500;
}

.shared-banner-text span {
  color: var(--text-secondary);
  font-size: 13px;
}

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

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

.page-title-group {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.page-title {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.page-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

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

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

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

.stat-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.stat-label {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}

.stat-value {
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.stat-value-accent {
  color: var(--positive);
}

.stat-hint {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.progress-track {
  width: 100%;
  height: 4px;
  background-color: var(--surface-raised);
  border-radius: var(--radius-xs);
  overflow: hidden;
  margin-top: 4px;
}

.progress-fill {
  height: 100%;
  background-color: var(--positive);
  border-radius: var(--radius-xs);
  transition: width 320ms var(--ease);
}

.gifters-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gifters-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

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

.gifter-row {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  padding: 4px 8px;
  margin: 0 -8px;
  border-radius: var(--radius-sm);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px auto;
  align-items: center;
  gap: 12px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease);
}

.gifter-row:hover {
  background-color: var(--surface-raised);
}

.gifter-row.active {
  background-color: var(--accent-soft);
  border-color: var(--border);
}

.gifter-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gifter-bar-track {
  height: 4px;
  background-color: var(--surface-raised);
  border-radius: var(--radius-xs);
  overflow: hidden;
}

.gifter-bar-fill {
  height: 100%;
  background-color: var(--accent);
  border-radius: var(--radius-xs);
}

.gifter-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 24px;
}

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

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

.controls-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.active-gifter-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 8px 0 12px;
  border-radius: var(--radius-sm);
  background-color: var(--surface-raised);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-primary);
}

.tag-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.tag-clear:hover {
  background-color: var(--surface);
  color: var(--text-primary);
}

.controls-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

select,
input[type="text"],
input[type="url"],
input[type="number"],
input[type="date"],
textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--text-primary);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease);
}

select {
  height: 36px;
  padding-top: 0;
  padding-bottom: 0;
}

input[type="text"],
input[type="url"],
input[type="number"],
input[type="date"] {
  height: 36px;
}

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

.wishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  align-items: start;
}

.wish-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease);
}

.wish-card:hover {
  border-color: var(--border-strong);
}

.wish-media {
  height: 168px;
  background-color: var(--surface-raised);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

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

.wish-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wish-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.priority-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-high {
  background-color: var(--priority-high);
}

.dot-medium {
  background-color: var(--priority-medium);
}

.dot-low {
  background-color: var(--priority-low);
}

.done-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--positive);
}

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

.wish-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-primary);
  word-break: break-word;
}

.wish-card.is-done .wish-title {
  color: var(--text-secondary);
}

.wish-price {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.wish-note {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.45;
  word-break: break-word;
}

.wish-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  align-self: flex-start;
}

.wish-link:hover {
  text-decoration: underline;
}

.wish-receipt-stub {
  padding: 12px 20px;
  border-top: 1px dashed var(--border-strong);
  background-color: var(--positive-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.receipt-who {
  font-size: 13px;
  font-weight: 500;
  color: var(--positive);
}

.receipt-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.wish-footer {
  padding: 12px 16px 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wish-footer-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.empty-state {
  background-color: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 48px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-emblem {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: grid;
  place-items: center;
}

.empty-state h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.empty-state p {
  margin: 0;
  max-width: 400px;
  font-size: 14px;
  color: var(--text-secondary);
}

.empty-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

dialog.modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: calc(100vw - 32px);
  width: 520px;
  color: var(--text-primary);
}

dialog.modal::backdrop {
  background-color: rgba(18, 17, 15, 0.56);
}

.modal-card {
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-card-sm {
  max-width: 440px;
  margin: 0 auto;
}

.modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.modal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 75vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.modal-footer-between {
  justify-content: space-between;
}

.modal-footer-right {
  display: flex;
  gap: 8px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field > span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

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

.price-input-group {
  display: flex;
  gap: 8px;
}

.price-input-group input {
  flex: 1;
  min-width: 0;
}

.fulfill-box {
  background-color: var(--surface-raised);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  margin-top: 4px;
  cursor: pointer;
}

.checkbox-row strong {
  font-weight: 500;
}

.checkbox-card {
  background-color: var(--surface-raised);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}

.fulfill-wish-preview {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

.fulfill-fields-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: opacity 150ms var(--ease);
}

.fulfill-fields-group.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.quick-gifters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-gifter-chip {
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--surface-raised);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease);
}

.quick-gifter-chip:hover {
  border-color: var(--border-strong);
  background-color: var(--surface);
}

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

.file-btn {
  cursor: pointer;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

.toast-container {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(360px, calc(100vw - 32px));
}

.toast {
  background-color: var(--text-primary);
  color: var(--bg);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 400;
  animation: toastEnter 180ms var(--ease) both;
}

.toast-undo {
  border: none;
  background-color: var(--accent);
  color: var(--accent-text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  height: 24px;
  padding: 0 8px;
  border-radius: var(--radius-xs);
  cursor: pointer;
}

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

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

@media (max-width: 840px) {
  .app-shell {
    flex-direction: column;
  }

  .mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 56px;
    padding: 0 16px;
    background-color: var(--bg-deep);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 30;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 40;
    transform: translateX(-100%);
    transition: transform 220ms var(--ease);
  }

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

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background-color: rgba(18, 17, 15, 0.45);
    z-index: 35;
  }

  .main-content {
    padding: 20px 16px 48px;
  }

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

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

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