:root {
  color-scheme: light;
  --bg: #f5f7f4;
  --surface: #ffffff;
  --surface-soft: #f5f7f4;
  --surface-strong: #fdfaf4;
  --text: #20201d;
  --muted: #7a7e76;
  --line: #e5e7e1;
  --accent: #2bb673;
  --accent-dark: #1f8f5a;
  --accent-soft: #e6f5ed;
  --warm: #c4552f;
  --gold: #d79a2b;
  --heart: #e95b6c;
  --shadow-card: 0 4px 18px rgba(20, 40, 30, 0.06);
  --shadow-lift: 0 12px 30px rgba(20, 40, 30, 0.1);
  --shadow: 0 20px 50px rgba(39, 36, 28, 0.12);
  --radius-card: 16px;
  --radius-pill: 999px;
  font-family:
    "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: 96px;
  background:
    radial-gradient(600px 300px at 10% -10%, rgba(43, 182, 115, 0.08), transparent 60%),
    radial-gradient(500px 260px at 110% 0%, rgba(255, 199, 95, 0.1), transparent 60%),
    var(--bg);
  color: var(--text);
}

body.dialog-polyfill-lock {
  overflow: hidden;
}

dialog:not([open]) {
  display: none;
}

dialog.dialog-polyfill-open {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: min(720px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  z-index: 999;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  background: var(--surface);
}

dialog.dialog-polyfill-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-header {
  padding: 28px clamp(16px, 4vw, 40px) 8px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  color: var(--text);
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.brand h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.1;
  color: var(--accent-dark);
  letter-spacing: 0.5px;
}

.brand-emoji {
  font-size: 0.9em;
  display: inline-block;
  margin-left: 6px;
}

.brand-tagline {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

.eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
}

.layout {
  width: min(1440px, calc(100% - 28px));
  margin: 8px auto 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.welcome-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-radius: var(--radius-card);
  background:
    radial-gradient(circle at 80% -20%, rgba(255, 255, 255, 0.35), transparent 60%),
    linear-gradient(120deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(31, 143, 90, 0.22);
}

.welcome-greeting {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.welcome-greeting .heart {
  color: #ffe9b0;
  font-size: 16px;
}

.welcome-message {
  margin: 6px 0 0;
  font-size: 14px;
  opacity: 0.92;
}

.welcome-illustration {
  font-size: 28px;
  letter-spacing: 4px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.18));
}

.action-bar {
  display: flex;
  gap: 10px;
  align-items: center;
}

.action-bar .add-btn {
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  padding: 12px 18px;
  white-space: nowrap;
}

.action-bar .search-box {
  flex: 1;
  min-width: 0;
}

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

.filter-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.content {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-card);
  padding: 18px;
  min-height: 280px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-box {
  position: relative;
  display: block;
  margin: 0;
}

.search-box .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  opacity: 0.6;
  pointer-events: none;
}

.search-box input {
  min-height: 44px;
  padding: 10px 14px 10px 38px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 11px 12px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 122, 104, 0.14);
}

.panel {
  padding-top: 20px;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-actions .primary-button,
.quick-actions .ghost-button {
  flex: 1 1 140px;
  border-radius: var(--radius-pill);
}

@media (max-width: 540px) {
  .quick-actions {
    gap: 8px;
  }
  .quick-actions .quick-action-btn {
    flex: 1 1 0;
    min-height: 34px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
  }
}

.panel h2 {
  margin: 0 0 12px;
  font-size: 14px;
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.segmented button,
.chip-list button {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--muted);
  padding: 8px 16px;
  min-height: 36px;
  font-weight: 700;
  font-size: 13px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.segmented button.active,
.chip-list button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 6px 14px rgba(43, 182, 115, 0.28);
}

.segmented button:not(.active):hover,
.chip-list button:not(.active):hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

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

.toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.recipe-count {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: var(--accent-dark);
}

.recipe-count::before {
  content: "🍽 ";
  font-size: 0.85em;
}

.hint {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.primary-button,
.ghost-button,
.danger-button {
  border: 0;
  border-radius: 10px;
  min-height: 42px;
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.05s ease;
}

.primary-button {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(43, 182, 115, 0.28);
}

.primary-button:hover {
  background: var(--accent-dark);
}

.primary-button:active {
  transform: translateY(1px);
}

.ghost-button {
  background: var(--surface);
  color: var(--accent-dark);
  border: 1px solid var(--line);
}

.ghost-button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.ghost-button.light {
  background: var(--surface);
  color: var(--accent-dark);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  min-height: 38px;
}

.danger-button {
  background: #fff1eb;
  color: #a43d22;
}

.recipe-grid,
.menu-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.menu-section {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  grid-column: 1 / -1;
  margin-bottom: 6px;
}

.menu-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 2px 10px;
  border-bottom: 0;
  background: transparent;
}

.menu-section-header h2 {
  margin: 0;
  font-size: 16px;
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu-section-header h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: var(--accent);
}

.menu-section-header .hint {
  margin: 0;
  font-size: 12px;
  padding: 2px 10px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: var(--radius-pill);
  font-weight: 800;
}

.menu-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

@media (max-width: 860px) {
  .menu-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.owner-group {
  grid-column: 1 / -1;
}

.owner-group + .owner-group {
  margin-top: 6px;
}

.owner-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 12px;
}

.owner-group-header h2 {
  margin: 0;
  font-size: 20px;
}

.owner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.recipe-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

@media (hover: hover) {
  .recipe-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
  }
}

.recipe-card:active {
  transform: scale(0.98);
  box-shadow: var(--shadow-card);
}

.recipe-card.selectable {
  cursor: pointer;
}

.recipe-card.selected {
  border-color: var(--accent);
  background: #f6fdf9;
  box-shadow: 0 0 0 3px rgba(43, 182, 115, 0.22), var(--shadow-card);
}

.recipe-card .card-image-wrap {
  position: relative;
  display: block;
}

.recipe-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #e7e0d1;
  display: block;
}

.card-favorite {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #c8c8c8;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(20, 40, 30, 0.15);
  transition: transform 0.1s ease, color 0.15s ease, background 0.15s ease;
}

.card-favorite:active {
  transform: scale(0.9);
}

.card-favorite.is-favorite {
  color: var(--heart);
  background: #fff;
}

.card-favorite:hover {
  color: var(--heart);
}

.card-image-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(20, 40, 30, 0.12);
}

.recipe-body {
  padding: 12px 14px 14px;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
}

.menu-title-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.order-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 2px solid var(--line);
  border-radius: 50%;
  color: transparent;
  font-weight: 900;
}

.recipe-card.selected .order-check {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border-radius: 999px;
  padding: 3px 9px;
  background: #eef5f2;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.pill.warm {
  background: #fff0e9;
  color: var(--warm);
}

.recipe-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  color: var(--text);
}

.recipe-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
}

.recipe-card .recipe-subline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.recipe-card .recipe-subline .subline-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.recipe-card .recipe-subline .subline-owner {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
}

.mini-list {
  margin: 0;
  padding-left: 19px;
  color: var(--muted);
  line-height: 1.48;
}

.card-actions {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.detail-dialog {
  width: min(880px, calc(100% - 26px));
}

.detail-shell {
  padding: 24px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(230px, 320px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.detail-image {
  width: 100%;
  border-radius: var(--radius-card);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #e7e0d1;
  grid-row: span 6;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin: 4px 0 4px;
}

.detail-meta .pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid var(--line);
}

.detail-meta .pill strong {
  font-size: 15px;
  color: var(--accent-dark);
  font-weight: 900;
}

.detail-meta .pill small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 4px;
}

.detail-tags .tag {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
}

.detail-section {
  padding-top: 4px;
}

.detail-section h3 {
  margin: 0 0 10px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}

.detail-section h3::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: var(--accent);
}

.detail-section.tip-section {
  border: 1px solid var(--accent-soft);
  background: #f3fbf6;
  border-radius: 12px;
  padding: 12px 14px;
}

.detail-section.tip-section h3::before {
  display: none;
}

.detail-section.tip-section h3 {
  color: var(--accent-dark);
  font-size: 14px;
}

.detail-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
  font-size: 13px;
}

.detail-list,
.step-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 13px;
}

.detail-list.ingredient-table {
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 12px 14px;
  gap: 4px;
}

.detail-list.ingredient-table li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(43, 182, 115, 0.22);
  color: var(--text);
}

.detail-list.ingredient-table li:last-child {
  border-bottom: 0;
}

.detail-list.ingredient-table li .amount {
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 12px;
}

.step-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
  align-items: start;
}

.step-list li {
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
}

.step-list strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  margin-top: 1px;
}

.order-panel {
  margin-bottom: 16px;
  border: 1px solid #b8d8cc;
  border-radius: 8px;
  background: #eef8f4;
  padding: 14px 16px;
}

.sync-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.sync-status:hover {
  background: rgba(255, 255, 255, 0.24);
}

.sync-status[data-kind="ok"] {
  background: rgba(43, 182, 115, 0.22);
  border-color: rgba(43, 182, 115, 0.55);
  color: #d6f5e4;
}

.sync-status[data-kind="busy"] {
  background: rgba(255, 199, 95, 0.22);
  border-color: rgba(255, 199, 95, 0.55);
  color: #fff2d6;
}

.sync-status[data-kind="offline"] {
  background: rgba(255, 110, 110, 0.22);
  border-color: rgba(255, 110, 110, 0.55);
  color: #ffd6d6;
}

@media (max-width: 540px) {
  .sync-status {
    font-size: 11px;
    padding: 5px 10px;
  }
}

.camera-dialog {
  width: min(440px, calc(100vw - 16px));
  max-width: 96vw;
  border: none;
  border-radius: 16px;
  padding: 0;
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.camera-dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.camera-shell {
  display: flex;
  flex-direction: column;
}

.camera-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.camera-header strong {
  color: var(--accent-dark);
  font-size: 15px;
}

.camera-stage {
  position: relative;
  background: #111;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

#cameraVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
}

.camera-error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  margin: 0;
  color: #ffd6d6;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  background: rgba(0, 0, 0, 0.6);
}

.camera-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface-soft);
}

.camera-shot {
  border-radius: var(--radius-pill);
  padding: 10px 28px;
  min-height: 44px;
  font-size: 15px;
}

@media (max-width: 540px) {
  .camera-dialog {
    width: calc(100vw - 8px);
    border-radius: 14px;
  }
  .camera-stage {
    aspect-ratio: 3 / 4;
  }
  .camera-shot {
    padding: 9px 22px;
    font-size: 14px;
  }
}

.action-fab {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(640px, calc(100vw - 24px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: 0 18px 40px rgba(20, 40, 30, 0.18), 0 2px 6px rgba(20, 40, 30, 0.06);
  z-index: 90;
}

.action-fab-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 6px;
}

.action-fab-info[hidden] {
  display: none;
}

.action-fab-info strong {
  font-size: 14px;
  color: var(--accent-dark);
  font-weight: 900;
}

.action-fab-hint {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-fab-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}

.action-fab .fab-primary {
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  min-height: 42px;
  font-size: 14px;
}

.action-fab .fab-ghost {
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  min-height: 38px;
  font-size: 13px;
}

.action-fab .fab-primary[hidden],
.action-fab .fab-ghost[hidden] {
  display: none;
}

@media (max-width: 540px) {
  body {
    padding-bottom: 110px;
  }

  .action-fab {
    width: calc(100vw - 16px);
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    padding: 8px 10px;
    gap: 8px;
    border-radius: 16px;
  }

  .action-fab-info {
    padding-left: 4px;
  }

  .action-fab-info strong {
    font-size: 13px;
  }

  .action-fab-hint {
    font-size: 11px;
  }

  .action-fab .fab-primary {
    padding: 9px 14px;
    font-size: 13px;
  }

  .action-fab .fab-ghost {
    padding: 7px 12px;
  }
}

/* V1 review adjustments — compact filters */
.owner-select-wrap select {
  padding: 5px 34px 5px 14px;
}

.category-block {
  width: 100%;
}

.category-toolbar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.category-toolbar .chip-list {
  flex: 1;
  min-width: 0;
}

.calendar-filter-btn {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 13px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 12px;
}

@media (max-width: 540px) {
  .owner-select-wrap select {
    padding: 5px 27px 5px 11px;
  }

  .category-toolbar {
    gap: 8px;
  }

  .calendar-filter-btn {
    min-height: 31px;
    padding: 5px 9px;
    font-size: 10px;
  }
}

/* Ratings and random cooking */
.recipe-name-rating {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.recipe-name-rating h3 {
  min-width: 0;
}

.recipe-rating {
  flex: 0 0 auto;
  min-height: 21px;
  padding: 2px 6px;
  color: #64748b;
  background: #fff;
  border: 1.5px solid var(--text);
  border-radius: 999px;
  font-size: 9px;
  line-height: 1;
  font-weight: 950;
  cursor: pointer;
}

.recipe-rating.is-rated {
  color: var(--text);
  background: var(--gold);
}

.recipe-rating:hover {
  color: var(--text);
  background: var(--gold);
}

.rating-dialog {
  width: min(350px, calc(100vw - 28px));
  height: min(350px, calc(100vw - 28px));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: visible;
  color: var(--text);
  background: var(--bg);
  border: 3px solid var(--text);
  border-radius: 20px;
  box-shadow: 9px 9px 0 var(--gold);
}

.rating-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.rating-card {
  position: relative;
  display: flex;
  height: 100%;
  box-sizing: border-box;
  padding: 28px 25px 24px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.rating-close {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--text);
  background: #fff;
  border: 2px solid var(--text);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
}

.rating-kicker {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.18em;
}

.rating-card h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.2;
}

.rating-dish-name {
  min-height: 21px;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.rating-stars {
  display: flex;
  gap: 5px;
  margin-bottom: 14px;
}

.rating-stars button {
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  -webkit-text-stroke: 2px var(--text);
  font-size: 35px;
  line-height: 1;
  transition: transform 0.15s ease, color 0.15s ease;
}

.rating-stars button.is-active {
  color: var(--gold);
}

.rating-stars button:hover {
  transform: translateY(-2px) rotate(-4deg);
}

.rating-number-wrap {
  display: grid;
  width: 180px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 900;
}

.rating-number-wrap input {
  height: 42px;
  padding: 5px 7px;
  background: #fff;
  border: 2px solid var(--text);
  border-radius: 9px;
  font-size: 18px;
  font-weight: 950;
  text-align: center;
}

.rating-number-wrap b {
  white-space: nowrap;
}

.rating-hint {
  margin: 7px 0 13px;
  color: var(--muted);
  font-size: 11px;
}

.rating-submit {
  min-width: 136px;
  min-height: 42px;
  padding: 8px 18px;
  background: var(--green-dark);
  box-shadow: 4px 4px 0 var(--text);
}

@media (max-width: 390px) {
  .rating-dialog {
    width: min(330px, calc(100vw - 22px));
    height: min(330px, calc(100vw - 22px));
  }

  .rating-card {
    padding: 23px 20px 19px;
  }

  .rating-card h2 {
    font-size: 22px;
  }

  .rating-stars button {
    font-size: 31px;
  }
}

.random-recipe-btn {
  color: var(--text) !important;
  background: var(--gold) !important;
}

.action-fab-actions {
  width: max-content;
  flex-wrap: wrap;
}

@media (max-width: 540px) {
  .action-fab {
    width: max-content;
  }

  .action-fab-actions {
    width: max-content;
    flex-wrap: nowrap;
  }

  .action-fab .fab-primary {
    min-width: 112px;
  }

  .recipe-name-rating {
    align-items: center;
    flex-direction: row;
    gap: 4px;
  }

  .recipe-rating {
    min-height: 19px;
    padding: 2px 5px;
    font-size: 8px;
  }
}

.wishlist-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
}

.wishlist-panel h2 {
  margin: 0 0 10px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-dark);
}

.wishlist-panel h2::before {
  content: "💛";
}

.wishlist-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.wishlist-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}

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

.wishlist-item strong {
  display: block;
  font-size: 14px;
}

.wishlist-item span {
  color: var(--muted);
  font-size: 12px;
}

.tiny-button {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  min-height: 30px;
  padding: 5px 12px;
  background: var(--surface);
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 12px;
}

.tiny-button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent-dark);
  font-weight: 900;
}

.empty-state {
  min-height: 420px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
  background: var(--surface-strong);
}

.empty-state h2 {
  margin: 0 0 8px;
}

.recipe-dialog {
  width: min(760px, calc(100% - 26px));
  border: 0;
  border-radius: 8px;
  box-shadow: 0 25px 80px rgba(26, 24, 20, 0.28);
  padding: 0;
}

.compact-dialog {
  width: min(460px, calc(100% - 26px));
}

.order-dialog {
  width: min(560px, calc(100% - 24px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
}

.order-dialog::backdrop {
  background: rgba(15, 25, 20, 0.5);
  backdrop-filter: blur(4px);
}

.cute-order-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 22px;
  background:
    radial-gradient(circle at 92% -10%, rgba(43, 182, 115, 0.08), transparent 60%),
    var(--surface);
  box-shadow: 0 28px 80px rgba(20, 40, 30, 0.18);
}

.history-card {
  max-height: min(760px, calc(100vh - 36px));
  width: min(560px, calc(100vw - 24px));
}

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

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.calendar-month-label {
  flex: 1;
  text-align: center;
  font-size: 16px;
  color: var(--accent-dark);
  font-weight: 800;
}

.calendar-nav .ghost-button {
  padding: 6px 12px;
  font-size: 13px;
  min-height: 34px;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 0 2px;
}

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

.cal-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: var(--surface-soft);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 13px;
  color: var(--text);
  cursor: default;
  user-select: none;
  padding: 4px 2px;
  overflow: hidden;
}

.cal-cell.blank {
  background: transparent;
  border: none;
}

.cal-cell.other-month {
  color: rgba(108, 106, 97, 0.45);
}

.cal-cell.today {
  border-color: var(--accent);
  background: rgba(43, 182, 115, 0.1);
  font-weight: 800;
}

.cal-cell.has-order {
  background: rgba(43, 182, 115, 0.16);
  cursor: pointer;
}

.cal-cell.has-order:hover {
  background: rgba(43, 182, 115, 0.28);
}

/* Future plan (orange) — overrides green if cell has a plan */
.cal-cell.has-plan {
  background: rgba(247, 158, 60, 0.2);
  cursor: pointer;
}

.cal-cell.has-plan:hover {
  background: rgba(247, 158, 60, 0.32);
}

/* When both plan + history coexist, split background */
.cal-cell.has-plan.has-history {
  background: linear-gradient(135deg,
    rgba(247, 158, 60, 0.22) 0%,
    rgba(247, 158, 60, 0.22) 50%,
    rgba(43, 182, 115, 0.2) 50%,
    rgba(43, 182, 115, 0.2) 100%);
}

/* All non-blank cells are clickable (even empty future days for adding plans) */
.cal-cell:not(.blank) {
  cursor: pointer;
}

.cal-cell.blank {
  cursor: default;
}

/* Section labels inside day detail */
.cal-section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin: 10px 0 4px;
  letter-spacing: 0.04em;
}

.cal-section-label:first-child {
  margin-top: 0;
}

.cal-plan-item {
  border-left: 3px solid #f49a3c;
  padding-left: 10px;
}

.cal-history-item {
  border-left: 3px solid var(--accent);
  padding-left: 10px;
}

.cal-plan-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.tiny-button.tiny-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.tiny-button.tiny-danger {
  background: transparent;
  color: #c83a2c;
  border-color: rgba(200, 58, 44, 0.4);
}

.add-plan-btn {
  width: 100%;
  margin-bottom: 10px;
  background: #f49a3c;
  border-color: #f49a3c;
}

.add-plan-btn:hover {
  background: #e08828;
  border-color: #e08828;
}

/* Today plan reminder panel on home */
.today-plan-panel {
  background: linear-gradient(135deg, #fff4e2, #ffe7c8);
  border: 1px solid rgba(247, 158, 60, 0.4);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(247, 158, 60, 0.12);
}

.today-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.today-plan-head strong {
  color: #a25218;
  font-size: 15px;
}

.today-plan-head .ghost-button {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(247, 158, 60, 0.45);
  color: #a25218;
  padding: 6px 12px;
  min-height: 32px;
  font-size: 12px;
}

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

.today-plan-card {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.today-plan-dishes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.today-plan-dish {
  background: #fff;
  border: 1px solid rgba(247, 158, 60, 0.35);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  color: #6e3b14;
}

@media (max-width: 540px) {
  .today-plan-panel {
    padding: 12px 14px;
  }
  .today-plan-head strong {
    font-size: 13px;
  }
  .today-plan-head .ghost-button {
    font-size: 11px;
    padding: 5px 10px;
    min-height: 28px;
  }
  .today-plan-dish {
    font-size: 11px;
  }
}

.cal-cell.selected {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.cal-day {
  font-weight: 600;
  line-height: 1;
}

.cal-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 1px 6px;
  line-height: 1.4;
}

.calendar-day-detail {
  border-radius: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  padding: 13px;
  max-height: 280px;
  overflow: auto;
}

.calendar-day-detail h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--accent-dark);
}

.cal-order {
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  padding: 10px 0;
}

.cal-order:first-of-type {
  border-top: none;
  padding-top: 0;
}

.cal-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.cal-order-head strong {
  color: var(--accent-dark);
}

.cal-order-head span {
  font-size: 12px;
  color: var(--muted);
}

.cal-order-note {
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.cal-order ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cal-order ul li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  color: var(--text);
}

.cal-order ul li em {
  font-style: normal;
  color: var(--muted);
  margin-left: 4px;
  font-size: 11px;
}

.cal-order .tiny-button {
  margin-top: 6px;
}

@media (max-width: 540px) {
  .calendar-nav .ghost-button {
    padding: 5px 10px;
    min-height: 32px;
    font-size: 12px;
  }
  .calendar-month-label {
    font-size: 14px;
  }
  .cal-cell {
    font-size: 12px;
    padding: 2px 1px;
  }
  .cal-badge {
    font-size: 9px;
    padding: 0 4px;
  }
}

/* =========================================================
   2026 visual refresh — aligned with /eat-what
   Warm paper, bold outlines, offset shadows and loud accents.
   ========================================================= */

@font-face {
  font-family: "Recipe Grotesk";
  src: url("../fonts/space-grotesk.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #fffbeb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-strong: #fff7cf;
  --text: #111111;
  --muted: #64748b;
  --line: #111111;
  --accent: #ff3d00;
  --accent-dark: #d93200;
  --accent-soft: #fff0ea;
  --warm: #ff3d00;
  --gold: #ffd600;
  --heart: #ff3d00;
  --green: #00c853;
  --green-dark: #07853d;
  --shadow-card: 4px 4px 0 #111111;
  --shadow-lift: 7px 7px 0 #111111;
  --shadow: 9px 9px 0 #111111;
  --radius-card: 14px;
  --radius-pill: 999px;
  font-family:
    "Recipe Grotesk", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

body {
  padding-bottom: 118px;
  background:
    radial-gradient(circle at 10% 3%, rgba(255, 214, 0, 0.16), transparent 22rem),
    var(--bg);
  color: var(--text);
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

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

.app-header {
  position: relative;
  width: min(1080px, calc(100% - 36px));
  min-height: 132px;
  margin: 0 auto;
  padding: 30px 0 14px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.brand-kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.brand h1 {
  margin: 0;
  color: var(--accent);
  font-size: clamp(42px, 6vw, 58px);
  line-height: 0.95;
  font-style: italic;
  font-weight: 1000;
  letter-spacing: -0.07em;
  text-shadow: 5px 5px 0 var(--gold);
}

.brand-pop {
  color: var(--text);
  text-shadow: 4px 4px 0 var(--green);
}

.brand-tagline {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.header-actions {
  position: absolute;
  top: 22px;
  right: 0;
  flex-wrap: nowrap;
  gap: 7px;
}

.back-to-picker {
  text-decoration: none;
}

.sync-status,
.ghost-button.light,
.back-to-picker {
  min-height: 36px;
  padding: 7px 11px;
  color: var(--text);
  background: #fff;
  border: 2px solid var(--text);
  border-radius: 9px;
  box-shadow: 2px 2px 0 var(--text);
  font-size: 11px;
  font-weight: 900;
}

.sync-status:hover,
.ghost-button.light:hover,
.back-to-picker:hover {
  color: var(--text);
  background: var(--gold);
  border-color: var(--text);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--text);
}

.sync-status[data-kind="ok"] {
  color: var(--text);
  background: #b9f6ca;
  border-color: var(--text);
}

.sync-status[data-kind="busy"] {
  color: var(--text);
  background: var(--gold);
  border-color: var(--text);
}

.sync-status[data-kind="offline"] {
  color: #fff;
  background: var(--accent);
  border-color: var(--text);
}

.layout {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto 44px;
  gap: 22px;
}

.welcome-banner {
  position: relative;
  min-height: 186px;
  padding: 30px 34px;
  overflow: hidden;
  color: var(--text);
  background: #fff;
  border: 3px solid var(--text);
  border-radius: 20px;
  box-shadow: 7px 7px 0 var(--text);
}

.welcome-banner::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -58px;
  bottom: -98px;
  background: var(--gold);
  border: 3px solid var(--text);
  border-radius: 50%;
}

.welcome-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(var(--text) 1px, transparent 1px),
    linear-gradient(90deg, var(--text) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.welcome-text {
  position: relative;
  z-index: 2;
}

.welcome-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.2em;
}

.welcome-greeting {
  margin: 0;
  display: block;
  max-width: 700px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
  font-weight: 1000;
  letter-spacing: -0.06em;
}

.welcome-highlight {
  display: inline-block;
  margin-left: 9px;
  padding: 1px 10px 5px;
  color: #fff;
  background: var(--accent);
  border: 3px solid var(--text);
  box-shadow: 4px 4px 0 var(--text);
  transform: rotate(-1.5deg);
}

.welcome-message {
  margin: 22px 0 0;
  max-width: 510px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  opacity: 1;
}

.welcome-sticker {
  position: absolute;
  z-index: 3;
  top: 24px;
  right: 28px;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  border: 3px solid var(--text);
  border-radius: 50%;
  box-shadow: 5px 5px 0 var(--text);
  text-align: center;
  font-size: 15px;
  line-height: 1.08;
  font-weight: 950;
  transform: rotate(8deg);
}

.today-plan-panel {
  padding: 14px 16px;
  background: var(--gold);
  border: 3px solid var(--text);
  border-radius: 13px;
  box-shadow: 4px 4px 0 var(--text);
}

.today-plan-head strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
}

.today-plan-head .ghost-button {
  color: var(--text);
  background: #fff;
  border: 2px solid var(--text);
}

.today-plan-card {
  background: #fff;
  border: 2px solid var(--text);
  border-radius: 9px;
}

.action-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
}

.primary-button,
.ghost-button,
.danger-button,
.file-button {
  min-height: 43px;
  border: 2px solid var(--text);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--text);
  font-weight: 950;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.primary-button {
  color: #fff;
  background: var(--accent);
}

.primary-button:hover {
  background: var(--accent);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--text);
}

.primary-button:active,
.ghost-button:active,
.danger-button:active,
.file-button:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--text);
}

.action-bar .add-btn {
  min-height: 48px;
  padding: 10px 21px;
  border-radius: 11px;
  background: var(--green-dark);
  white-space: nowrap;
}

.ghost-button {
  color: var(--text);
  background: #fff;
  border-color: var(--text);
}

.ghost-button:hover {
  color: var(--text);
  background: var(--gold);
  border-color: var(--text);
}

.danger-button {
  color: #fff;
  background: var(--accent);
}

.search-box input {
  min-height: 48px;
  padding-left: 42px;
  color: var(--text);
  background: #fff;
  border: 3px solid var(--text);
  border-radius: 11px;
  box-shadow: 5px 5px 0 var(--text);
  font-size: 13px;
  font-weight: 800;
}

.search-box input::placeholder {
  color: #94a3b8;
}

input,
textarea,
select {
  color: var(--text);
  background: #fff;
  border: 2px solid var(--text);
  border-radius: 9px;
  font-weight: 700;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--text);
  box-shadow: 3px 3px 0 var(--green);
}

.filter-row {
  gap: 13px;
}

.filter-block {
  gap: 7px;
}

.filter-label {
  color: var(--text);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.06em;
}

.segmented,
.chip-list {
  gap: 8px;
}

.segmented button,
.chip-list button {
  min-height: 34px;
  padding: 6px 14px;
  color: var(--text);
  background: #fff;
  border: 2px solid var(--text);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 900;
}

.segmented button.active,
.chip-list button.active {
  color: var(--text);
  background: var(--gold);
  border-color: var(--text);
  box-shadow: 2px 2px 0 var(--text);
  transform: translate(-1px, -1px);
}

.chip-list button.active {
  color: #fff;
  background: var(--accent);
}

.segmented button:not(.active):hover,
.chip-list button:not(.active):hover {
  color: var(--text);
  border-color: var(--text);
  background: #fff7cf;
}

.content {
  min-height: 280px;
  padding: 4px 0 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.toolbar {
  align-items: flex-end;
  margin-bottom: 18px;
  padding: 0 0 14px;
  border-bottom: 3px solid var(--text);
}

.recipe-count {
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: -0.04em;
}

.recipe-count::before {
  content: "";
}

.hint {
  color: var(--muted);
  font-weight: 650;
}

.recipe-grid,
.menu-board {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
}

.menu-section {
  margin: 0 0 8px;
}

.menu-section-header {
  align-items: center;
  padding: 7px 0 12px;
  border-bottom: 2px dashed #94a3b8;
}

.menu-section-header h2 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 1000;
  letter-spacing: -0.04em;
}

.menu-section-header h2::before {
  content: "#";
  color: var(--accent);
  font-weight: 1000;
}

.menu-section-count {
  padding: 4px 9px;
  color: var(--text);
  background: var(--gold);
  border: 2px solid var(--text);
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 950;
}

.menu-section-grid {
  gap: 16px;
}

.recipe-card {
  min-height: 230px;
  overflow: hidden;
  background: #fff;
  border: 3px solid var(--text);
  border-radius: 13px;
  box-shadow: var(--shadow-card);
  transition: transform 0.13s ease, box-shadow 0.13s ease;
}

@media (hover: hover) {
  .recipe-card:hover {
    transform: translate(-3px, -3px) rotate(-0.25deg);
    box-shadow: var(--shadow-lift);
  }
}

.recipe-card:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--text);
}

.recipe-card.selected {
  background: #effff4;
  border-color: var(--text);
  box-shadow: 5px 5px 0 var(--green);
}

.recipe-card img {
  aspect-ratio: 4 / 3;
  background: #f1f5f9;
  border-bottom: 3px solid var(--text);
}

.card-favorite {
  top: 8px;
  right: 8px;
  width: 31px;
  height: 31px;
  color: #94a3b8;
  background: #fff;
  border: 2px solid var(--text);
  box-shadow: 2px 2px 0 var(--text);
}

.card-favorite:hover,
.card-favorite.is-favorite {
  color: #fff;
  background: var(--accent);
}

.card-image-badge {
  bottom: 8px;
  left: 8px;
  color: var(--text);
  background: var(--gold);
  border: 2px solid var(--text);
  box-shadow: 2px 2px 0 var(--text);
  font-size: 10px;
  font-weight: 900;
}

.recipe-body {
  padding: 12px 13px 14px;
  gap: 7px;
}

.recipe-card h3 {
  color: var(--text);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 1000;
  letter-spacing: -0.025em;
}

.recipe-card p {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.pill {
  min-height: 23px;
  padding: 3px 8px;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--text);
  font-size: 10px;
  font-weight: 900;
}

.pill.warm {
  color: var(--text);
  background: #fff0ea;
}

.order-check {
  border: 2px solid var(--text);
}

.recipe-card.selected .order-check {
  color: #fff;
  background: var(--green);
  border-color: var(--text);
}

.recipe-card .recipe-subline {
  padding-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.recipe-card .recipe-subline .subline-owner {
  padding: 3px 8px;
  color: #fff;
  background: var(--green-dark);
  border: 1.5px solid var(--text);
  font-size: 9px;
}

.quick-actions {
  gap: 12px;
}

.quick-actions .quick-action-btn {
  min-height: 46px;
  border-radius: 11px;
}

.quick-actions .quick-action-btn:first-child {
  background: var(--gold);
}

.wishlist-panel {
  padding: 20px;
  background: #fff;
  border: 3px solid var(--text);
  border-radius: 15px;
  box-shadow: 5px 5px 0 var(--text);
}

.wishlist-panel h2 {
  color: var(--text);
  font-size: 20px;
  font-weight: 1000;
}

.wishlist-item {
  background: var(--surface-strong);
  border: 2px solid var(--text);
  border-radius: 9px;
}

.tiny-button,
.link-button {
  color: var(--text);
  font-weight: 950;
}

.tiny-button {
  background: #fff;
  border: 2px solid var(--text);
  box-shadow: 2px 2px 0 var(--text);
}

.empty-state {
  min-height: 320px;
  background: transparent;
  border: 4px dashed #cbd5e1;
  border-radius: 17px;
}

.action-fab {
  width: min(700px, calc(100vw - 28px));
  padding: 10px 12px;
  background: #fff;
  border: 3px solid var(--text);
  border-radius: 15px;
  box-shadow: 0 7px 0 var(--text);
}

.action-fab-info strong {
  color: var(--text);
  font-weight: 1000;
}

.action-fab .fab-primary {
  min-height: 46px;
  padding: 9px 24px;
  color: #fff;
  background: var(--accent);
  border-radius: 10px;
}

.action-fab .fab-ghost {
  border-radius: 9px;
}

.recipe-dialog,
.order-dialog,
.camera-dialog {
  border: 3px solid var(--text);
  border-radius: 17px;
  box-shadow: 9px 9px 0 var(--gold);
}

.recipe-dialog::backdrop,
.order-dialog::backdrop,
.camera-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.recipe-dialog form,
.detail-shell,
.cute-order-card {
  background: var(--bg);
}

.dialog-header {
  border-bottom: 3px solid var(--text);
  margin-bottom: 18px;
}

.dialog-header h2 {
  font-size: 30px;
  font-weight: 1000;
  letter-spacing: -0.04em;
}

.eyebrow {
  color: var(--accent);
  font-weight: 950;
}

.icon-button {
  color: #fff;
  background: var(--text);
  border: 2px solid var(--text);
}

.image-tools,
.detail-section,
.calendar-day-detail,
.history-item,
.empty-history,
.order-receipt {
  background: #fff;
  border: 2px solid var(--text);
  border-radius: 11px;
}

.image-preview,
.detail-image {
  border: 3px solid var(--text);
}

.file-button {
  color: var(--text);
  background: var(--gold);
}

.cal-cell {
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--text);
  border-radius: 7px;
}

.cal-cell.today,
.cal-cell.has-order {
  color: var(--text);
  background: #b9f6ca;
  border-color: var(--text);
}

.cal-cell.has-plan {
  background: var(--gold);
}

@media (max-width: 860px) {
  .app-header {
    width: calc(100% - 24px);
    min-height: 142px;
    padding: 56px 0 11px;
    justify-content: flex-start;
    text-align: left;
  }

  .header-actions {
    top: 12px;
    left: 0;
    right: auto;
    width: 100%;
    justify-content: flex-start;
  }

  .header-actions .sync-status {
    margin-left: auto;
  }

  .brand h1 {
    font-size: 43px;
  }

  .brand-tagline {
    font-size: 13px;
  }

  .layout {
    width: calc(100% - 24px);
    gap: 18px;
  }

  .welcome-banner {
    min-height: 170px;
    padding: 24px 20px;
  }

  .welcome-greeting {
    max-width: 74%;
    font-size: clamp(31px, 8vw, 46px);
  }

  .welcome-highlight {
    display: table;
    margin: 7px 0 0;
  }

  .welcome-message {
    max-width: 70%;
    margin-top: 16px;
    font-size: 12px;
  }

  .welcome-sticker {
    top: 25px;
    right: 20px;
    width: 76px;
    height: 76px;
    font-size: 12px;
  }

  .action-bar {
    grid-template-columns: 1fr;
  }

  .action-bar .add-btn {
    width: 100%;
  }

  .recipe-grid,
  .menu-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }

  .menu-section-grid {
    gap: 12px;
  }

  .recipe-card {
    min-height: 0;
  }
}

@media (max-width: 540px) {
  body {
    padding-bottom: 106px;
  }

  .app-header {
    min-height: 132px;
    padding-top: 52px;
  }

  .brand-kicker {
    font-size: 8px;
  }

  .brand h1 {
    font-size: 39px;
  }

  .brand-tagline {
    margin-top: 9px;
    font-size: 11px;
  }

  .sync-status,
  .ghost-button.light,
  .back-to-picker {
    min-height: 32px;
    padding: 5px 8px;
    font-size: 9px;
  }

  .welcome-banner {
    min-height: 152px;
    padding: 20px 16px;
    border-radius: 15px;
    box-shadow: 5px 5px 0 var(--text);
  }

  .welcome-kicker {
    margin-bottom: 9px;
    font-size: 8px;
  }

  .welcome-greeting {
    max-width: 75%;
    font-size: 29px;
  }

  .welcome-message {
    max-width: 72%;
    margin-top: 14px;
    font-size: 10px;
  }

  .welcome-sticker {
    top: 23px;
    right: 13px;
    width: 68px;
    height: 68px;
    box-shadow: 4px 4px 0 var(--text);
    font-size: 11px;
  }

  .today-plan-panel {
    padding: 11px 12px;
  }

  .search-box input,
  .action-bar .add-btn {
    min-height: 45px;
  }

  .filter-label {
    font-size: 10px;
  }

  .segmented button,
  .chip-list button {
    min-height: 31px;
    padding: 5px 11px;
    font-size: 10px;
  }

  .toolbar {
    margin-bottom: 12px;
  }

  .recipe-count {
    font-size: 23px;
  }

  .toolbar .hint {
    font-size: 10px;
  }

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

  .menu-section-count {
    font-size: 9px;
  }

  .recipe-grid,
  .menu-board {
    gap: 10px;
  }

  .recipe-card {
    border-width: 2px;
    border-radius: 10px;
    box-shadow: 3px 3px 0 var(--text);
  }

  .recipe-card img {
    border-bottom-width: 2px;
  }

  .recipe-body {
    padding: 9px 9px 10px;
    gap: 5px;
  }

  .recipe-card h3 {
    font-size: 13px;
  }

  .recipe-card p,
  .recipe-card .recipe-subline {
    font-size: 9px;
  }

  .pill {
    min-height: 20px;
    padding: 2px 6px;
    font-size: 8px;
  }

  .card-favorite {
    width: 28px;
    height: 28px;
    font-size: 15px;
  }

  .quick-actions {
    gap: 8px;
  }

  .quick-actions .quick-action-btn {
    min-height: 40px;
    font-size: 11px;
  }

  .wishlist-panel {
    padding: 15px;
    box-shadow: 4px 4px 0 var(--text);
  }

  .action-fab {
    width: calc(100vw - 16px);
    padding: 8px;
    border-radius: 13px;
  }

  .action-fab .fab-primary {
    min-height: 42px;
    padding: 8px 15px;
  }
}

.history-list {
  display: grid;
  gap: 12px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.history-item,
.empty-history {
  border-radius: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  padding: 13px;
}

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

.history-item-head strong {
  color: var(--accent-dark);
}

.history-item-head span {
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

.history-item p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.empty-history {
  color: var(--muted);
  text-align: center;
}

.order-receipt {
  margin: 12px 0 18px;
  padding: 16px;
  border: 1px dashed rgba(43, 182, 115, 0.45);
  border-radius: 12px;
  background: var(--accent-soft);
}

.receipt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(43, 182, 115, 0.25);
}

.receipt-top strong {
  font-size: 22px;
  color: var(--accent-dark);
}

.receipt-section {
  padding: 12px 0 0;
}

.receipt-section h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.receipt-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.receipt-section li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border-radius: 8px;
  background: #fff;
}

.receipt-section em {
  color: var(--accent-dark);
  font-style: normal;
  font-weight: 900;
}

.receipt-note {
  margin: 14px 0 0;
  color: var(--accent-dark);
  font-weight: 800;
  text-align: center;
}

.recipe-dialog::backdrop {
  background: rgba(15, 25, 20, 0.5);
  backdrop-filter: blur(4px);
}

.recipe-dialog form {
  padding: 22px;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 18px;
}

.dialog-header h2 {
  margin: 2px 0 0;
  font-size: 24px;
  color: var(--text);
}

@media (max-width: 540px) {
  .recipe-dialog form,
  .detail-shell {
    padding: 16px;
  }

  .dialog-header h2 {
    font-size: 20px;
  }

  .dialog-header {
    padding-bottom: 12px;
  }

  .form-grid {
    gap: 10px;
  }

  .form-grid label > span {
    font-size: 12px;
  }

  textarea {
    padding: 8px 10px;
  }
}

.icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.icon-button:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-color: var(--accent);
}

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

.image-tools {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f0;
}

.image-preview {
  width: 116px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  background: #e7e0d1;
  border: 1px solid var(--line);
  flex: 0 0 auto;
}

.image-tools span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 42px;
  border-radius: 6px;
  padding: 10px 16px;
  background: #f1eee6;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.file-button input {
  display: none;
}

.order-field {
  margin: 10px 0;
}

.settings-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 0 14px;
}

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

.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
}

.single-action {
  justify-content: flex-end;
}

.dialog-actions > div {
  display: flex;
  gap: 10px;
}

@media (max-width: 860px) {
  body {
    background-attachment: scroll;
  }

  .app-header {
    padding: 20px 16px 4px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

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

  .brand-tagline {
    font-size: 12px;
  }

  .image-tools,
  .image-actions,
  .settings-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .layout {
    width: calc(100% - 24px);
    gap: 14px;
  }

  .welcome-banner {
    padding: 14px 16px;
  }

  .welcome-illustration {
    font-size: 22px;
    letter-spacing: 2px;
  }

  .action-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .action-bar .add-btn {
    width: 100%;
  }

  .toolbar,
  .dialog-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar > div:first-child {
    text-align: left;
  }

  .recipe-grid,
  .menu-board {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .recipe-card {
    min-height: 0;
  }

  .recipe-card h3 {
    font-size: 14px;
  }

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

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

  .detail-image {
    grid-row: auto;
    aspect-ratio: 16 / 10;
  }

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

  .dialog-actions > div {
    flex-direction: column;
  }

  .quick-actions {
    flex-direction: row;
  }
}

@media (max-width: 420px) {
  .recipe-grid,
  .menu-board {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

/* Final cascade lock: keep the refresh above legacy responsive rules. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

[hidden] {
  display: none !important;
}

.action-fab {
  width: min(700px, calc(100vw - 28px));
  padding: 10px 12px;
  background: #fff;
  border: 3px solid var(--text);
  border-radius: 15px;
  box-shadow: 0 7px 0 var(--text);
}

.wishlist-panel {
  padding: 20px;
  background: #fff;
  border: 3px solid var(--text);
  border-radius: 15px;
  box-shadow: 5px 5px 0 var(--text);
}

.recipe-dialog,
.order-dialog,
.camera-dialog {
  border: 3px solid var(--text);
  border-radius: 17px;
  box-shadow: 9px 9px 0 var(--gold);
}

@media (max-width: 860px) {
  .app-header {
    position: relative;
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    min-height: 142px;
    margin-inline: auto;
    padding: 56px 0 11px;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
  }

  .header-actions {
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
  }

  .header-actions .sync-status {
    max-width: 118px;
    margin-left: auto;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .layout {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    margin-inline: auto;
  }

  .welcome-banner,
  .today-plan-panel,
  .action-bar,
  .filter-row,
  .content,
  .quick-actions,
  .wishlist-panel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .chip-list,
  .segmented {
    max-width: 100%;
    flex-wrap: wrap;
  }

  .recipe-grid,
  .menu-board,
  .menu-section-grid {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recipe-card,
  .recipe-body,
  .menu-title-row {
    min-width: 0;
  }

  .recipe-card h3,
  .recipe-card p {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 540px) {
  .app-header {
    min-height: 132px;
    padding: 52px 0 8px;
  }

  .header-actions {
    gap: 5px;
  }

  .header-actions .sync-status {
    max-width: 98px;
  }

  .sync-status,
  .ghost-button.light,
  .back-to-picker {
    min-width: 0;
    min-height: 32px;
    padding: 5px 8px;
    font-size: 9px;
    white-space: nowrap;
  }

  .welcome-banner {
    min-height: 152px;
    padding: 20px 16px;
  }

  .action-fab {
    left: 8px;
    right: 8px;
    width: auto;
    max-width: none;
    transform: none;
    padding: 8px;
    border-radius: 13px;
  }

  .wishlist-panel {
    padding: 15px;
    box-shadow: 4px 4px 0 var(--text);
  }

  .recipe-dialog,
  .order-dialog,
  .camera-dialog {
    max-width: calc(100vw - 16px);
    box-sizing: border-box;
  }
}

/* V1 review adjustments */
.action-bar {
  grid-template-columns: auto minmax(0, 1fr) 148px;
  align-items: stretch;
}

.owner-select-wrap {
  position: relative;
  min-width: 0;
  display: block;
}

.owner-select-wrap > span {
  position: absolute;
  z-index: 2;
  top: 5px;
  left: 12px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.owner-select-button {
  position: relative;
  width: 148px;
  height: 48px;
  padding: 8px 34px;
  color: var(--text);
  background: var(--gold);
  border: 3px solid var(--text);
  border-radius: 11px;
  box-shadow: 5px 5px 0 var(--text);
  font-size: 13px;
  font-weight: 950;
  text-align: center;
  text-align-last: center;
  cursor: pointer;
}

.owner-select-value {
  display: block;
  width: 100%;
  text-align: center;
}

.owner-select-arrow {
  position: absolute;
  top: 50%;
  right: 12px;
  font-size: 17px;
  line-height: 1;
  transform: translateY(-58%);
}

.owner-select-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  width: 148px;
  padding: 5px;
  background: #fff;
  border: 3px solid var(--text);
  border-radius: 11px;
  box-shadow: 5px 5px 0 var(--text);
}

.owner-select-menu button {
  width: 100%;
  padding: 9px 12px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-weight: 900;
  text-align: center;
}

.owner-select-menu button:hover,
.owner-select-menu button:focus-visible {
  background: var(--gold);
}

.calendar-filter-btn {
  width: 148px;
}

.filter-row {
  gap: 0;
}

.action-fab {
  left: 50%;
  right: auto;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: auto;
  max-width: calc(100vw - 24px);
  padding: 0;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: translateX(-50%);
}

.action-fab-info {
  width: min(430px, calc(100vw - 24px));
  padding: 8px 13px;
  background: #fff;
  border: 2px solid var(--text);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--text);
  text-align: center;
}

.action-fab-actions {
  width: 100%;
  justify-content: center;
  margin: 0;
}

.action-fab .fab-primary,
.action-fab .fab-ghost {
  box-shadow: 3px 3px 0 var(--text);
}

.action-fab .fab-primary {
  min-width: 124px;
}

@media (max-width: 860px) {
  .action-bar {
    grid-template-columns: minmax(0, 1fr) 112px;
  }

  .action-bar .add-btn {
    grid-column: 1 / -1;
  }

  .owner-select-button,
  .owner-select-menu {
    width: 112px;
  }

  .calendar-filter-btn {
    width: 112px;
  }
}

@media (max-width: 540px) {
  body {
    padding-bottom: 86px;
  }

  .action-bar {
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) 105px;
  }

  .owner-select-wrap > span {
    left: 10px;
  }

  .owner-select-button {
    width: 105px;
    height: 45px;
    padding-inline: 27px;
    font-size: 11px;
    box-shadow: 4px 4px 0 var(--text);
  }

  .owner-select-menu {
    width: 105px;
    box-shadow: 4px 4px 0 var(--text);
  }

  .calendar-filter-btn {
    width: 105px;
  }

  .action-fab {
    left: 50%;
    right: auto;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: calc(100vw - 16px);
    padding: 0;
    transform: translateX(-50%);
  }

  .action-fab-info {
    width: min(340px, calc(100vw - 16px));
  }
}
