/* Senior-friendly pastel theme on top of Bulma v1 (admin pages only). */

:root,
[data-theme="light"] {
  --sage: #e2ece9;
  --sage-dark: #cfe2d8;
  --sand: #fbf9f5;
  --terracotta: #f4e1d2;
  --teal: #2c5e4f;
  --teal-dark: #1e4438;
  --ink: #1e293b;
  --muted: #475569;
  --line: #cbd5e1;
  --danger: #b91c1c;
  --ok: #15803d;

  /* Bulma tokens */
  --bulma-body-size: 18px;
  --bulma-body-background-color: var(--sand);
  --bulma-body-color: var(--ink);
  --bulma-text: var(--ink);
  --bulma-text-strong: var(--ink);
  --bulma-strong-color: var(--ink);
  --bulma-label-color: var(--ink);
  --bulma-primary-h: 162deg;
  --bulma-primary-s: 36%;
  --bulma-primary-l: 27%;
  --bulma-link-h: 162deg;
  --bulma-link-s: 36%;
  --bulma-link-l: 27%;
  --bulma-control-height: 3em; /* 54px at 18px base: above the 52px tap-target minimum */
  --bulma-control-radius: 10px;
  --bulma-radius: 12px;
  --bulma-radius-large: 14px;
  --bulma-input-border-color: #94a3b8;
  --bulma-input-placeholder-color: #64748b;
  --bulma-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  --bulma-box-padding: 1.1rem;
}

/* Zero text overflow */
*,
*::before,
*::after {
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

html {
  font-size: 18px;
}

body {
  background: var(--sand);
  color: var(--ink);
  line-height: 1.45;
  padding-bottom: 110px;
}

[x-cloak] {
  display: none !important;
}

a {
  color: var(--teal);
}

/* Controls: 52px+ tap targets, 18px text */
.button,
.input,
.textarea,
.select select {
  font-size: 18px;
  min-height: 52px;
}
.input,
.textarea,
.select select {
  border-width: 2px;
  font-weight: 500;
}
.button {
  font-weight: 700;
  white-space: normal;
  height: auto;
  line-height: 1.25;
}
.label {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.big-btn {
  min-height: 58px;
  font-size: 19px;
  font-weight: 800;
}
.input-big {
  font-size: 24px;
  font-weight: 800;
}
.btn-whatsapp {
  background: #15803d;
  border-color: #15803d;
  color: #ffffff;
}
.btn-whatsapp:hover {
  background: #166534;
  color: #ffffff;
}

/* Header & navigation */
.app-header {
  background: var(--sage);
  border-bottom: 2px solid var(--sage-dark);
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.app-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 680px;
  margin: 0 auto;
}
.brand-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--teal);
}
.logout-btn {
  min-height: 44px;
  font-size: 15px;
  color: var(--muted);
}
.nav-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 680px;
  margin: 10px auto 0 auto;
}
.nav-tab {
  min-height: 52px;
  border: 2px solid var(--teal);
  background: #ffffff;
  color: var(--teal);
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px;
}
.nav-tab.is-active {
  background: var(--teal);
  color: #ffffff;
}

.app-container {
  max-width: 680px;
  margin: 16px auto;
  padding: 0 14px;
}

.box {
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 16px;
}

.card-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 6px;
}
.card-subtitle {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 16px;
}
.section-heading {
  font-size: 19px;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 12px;
}

/* Save bar */
.save-bar {
  max-width: 680px;
  margin: 12px auto 0;
  padding: 0 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.save-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.save-bar .back-btn {
  padding-left: 0;
  padding-right: 0;
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
}
.save-bar .back-btn:hover {
  text-decoration: underline;
}
.ref-label {
  font-weight: 800;
  color: var(--muted);
}
.autosave-pill {
  font-size: 15px;
  background: #ffffff;
  padding: 4px 12px;
  border-radius: 99px;
  font-weight: 700;
  border: 2px solid var(--line);
  text-align: right;
}
.save-saved {
  color: var(--ok);
  border-color: #bbf7d0;
}
.save-saving {
  color: var(--muted);
}
.save-offline,
.save-error,
.save-invalid,
.save-conflict {
  color: #9a3412;
  border-color: #fdba74;
  background: #fff7ed;
}
.save-new {
  color: var(--muted);
}

/* Stepper */
.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}
.step-btn {
  min-height: 56px;
  border-radius: 10px;
  border: 2px solid var(--line);
  background: #ffffff;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  padding: 6px 4px;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
}
.step-btn.is-active {
  border-color: var(--teal);
  background: var(--sage);
  color: var(--teal);
}

/* Layout helpers */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 520px) {
  .grid-2.stack-mobile {
    grid-template-columns: 1fr;
  }
}
.divider-top {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px dashed var(--line);
}
.tint-box {
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.tint-sage {
  background: var(--sage);
}
.tint-peach {
  background: var(--terracotta);
}
.big-note {
  font-size: 18px;
  color: var(--teal);
  margin: 4px 0 12px;
}
.big-note strong {
  color: var(--teal);
}

/* Yes/No toggles */
.toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.toggle-btn {
  min-height: 58px;
  border: 2px solid #94a3b8;
  border-radius: 10px;
  background: #ffffff;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: inherit;
}
.toggle-btn small {
  font-weight: 400;
  font-size: 14px;
}
.toggle-btn.is-selected {
  background: var(--teal);
  color: #ffffff;
  border-color: var(--teal);
}

/* Pills */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.pill-btn {
  min-height: 52px;
  padding: 8px 16px;
  border-radius: 99px;
  border: 2px solid #94a3b8;
  background: #ffffff;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  max-width: 100%;
}
.pill-btn.is-selected {
  background: var(--sage);
  border-color: var(--teal);
  color: var(--teal);
}

/* Editable item rows */
.item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
}
.item-fixed {
  background: var(--sage);
}
.item-name {
  flex: 1;
}
.item-hint {
  font-size: 15px;
  color: var(--muted);
}
.item-price {
  width: 110px;
  flex-shrink: 0;
}
.item-amount {
  font-weight: 700;
  color: var(--teal);
  padding: 0 6px;
  flex-shrink: 0;
  text-align: right;
}
.mini-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.btn-remove {
  min-height: 52px;
  min-width: 52px;
  background: #fee2e2;
  color: var(--danger);
  border: 1px solid #fca5a5;
  border-radius: 8px;
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
}
@media (max-width: 420px) {
  .item-row {
    flex-wrap: wrap;
  }
  .item-name {
    flex-basis: 100%;
  }
  .item-price {
    flex: 1;
    width: auto;
  }
}

.stepper-input {
  display: flex;
  gap: 6px;
}
.stepper-input .button {
  min-width: 56px;
  font-size: 24px;
}
.stepper-input .input {
  text-align: center;
}

/* Sticky footer */
.sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 2px solid var(--line);
  padding: 10px 16px;
  z-index: 40;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
}
.sticky-footer-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.footer-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
}
.footer-amount {
  font-size: 23px;
  font-weight: 900;
  color: var(--teal);
}
.footer-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Quote list */
.record-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.record-main {
  flex: 1;
}
.record-title {
  font-weight: 800;
  font-size: 18px;
}
.record-sub {
  font-size: 15px;
  color: var(--muted);
}
.record-side {
  text-align: right;
  flex-shrink: 0;
}
.record-total {
  font-weight: 900;
  font-size: 19px;
  color: var(--teal);
}
.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 24px 0;
}

.status-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 99px;
  background: #e2e8f0;
  color: var(--ink);
}
.status-draft {
  background: #e2e8f0;
}
.status-sent {
  background: #dbeafe;
  color: #1e3a8a;
}
.status-deposit_paid {
  background: #dcfce7;
  color: #14532d;
}
.status-completed {
  background: var(--sage-dark);
  color: var(--teal-dark);
}
.status-cancelled {
  background: #fee2e2;
  color: #7f1d1d;
}

/* Analytics */
.year-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.year-nav .card-title {
  margin: 0;
}
.stat-box {
  margin-bottom: 0;
}
.stat-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
}
.stat-value {
  font-size: 26px;
  font-weight: 900;
  color: var(--teal);
  margin-top: 4px;
}
.stat-sub {
  font-size: 15px;
  color: var(--muted);
}
.bar-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.bar-label {
  font-weight: 700;
}
.bar-track {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 6px;
  height: 22px;
  overflow: hidden;
}
.bar-fill {
  background: var(--teal);
  height: 100%;
  width: 0;
}
.bar-value {
  font-weight: 700;
  font-size: 16px;
  text-align: right;
}
.status-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}

/* Login */
.login-box {
  margin-top: 12vh;
}
.pin-input {
  font-size: 28px;
  letter-spacing: 8px;
  text-align: center;
}

/* Step 4 preview */
.sheet-wrapper {
  overflow-x: auto;
  background: #e5e5e5;
  padding: 12px 6px;
  border-radius: 10px;
  margin-bottom: 16px;
}

@media print {
  body {
    padding: 0 !important;
    background: #ffffff !important;
  }
  .no-print {
    display: none !important;
  }
  .app-container {
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .sheet-wrapper {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible;
  }
}

/* Bulma derives primary button text from lightness and picks dark ink; force white for contrast. */
.button.is-primary:not(.is-outlined):not(.is-light) {
  color: #ffffff;
}
.button.is-primary:not(.is-outlined):not(.is-light):hover {
  background-color: var(--teal-dark);
  color: #ffffff;
}

/* "New rates saved" prompt on drafts */
.rates-banner {
  background: var(--terracotta);
  border: 2px solid #e8c3a6;
  color: var(--ink);
}
.rates-title {
  font-weight: 800;
  font-size: 19px;
}
.rates-list {
  list-style: disc;
  margin: 8px 0 12px 22px;
}
.saved-note {
  position: sticky;
  bottom: 96px;
  z-index: 30;
}

/* Lucide icons */
.lc-icon {
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
  vertical-align: -0.2em;
  stroke-width: 2.25;
}
.icon-slot {
  display: inline-flex;
}
.button,
.toggle-btn,
.pill-btn,
.nav-tab,
.brand-title,
.autosave-pill,
.with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
}
.toggle-btn {
  display: flex;
}
.toggle-btn > .lc-icon {
  width: 1.35em;
  height: 1.35em;
}
.btn-remove,
.stepper-input .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-remove .lc-icon {
  width: 1.3em;
  height: 1.3em;
}
.brand-title .lc-icon {
  width: 1.3em;
  height: 1.3em;
}
.with-icon {
  justify-content: flex-start;
}
.saved-note .lc-icon {
  color: var(--ok);
}
.toggle-btn {
  flex-direction: row;
  flex-wrap: wrap;
  column-gap: 0.45em;
  row-gap: 2px;
}
.toggle-btn small {
  flex-basis: 100%;
  text-align: center;
}

/* Header collapses to a slim bar while scrolling down */
.app-header {
  transition: padding 0.2s ease;
}
.app-header .nav-tabs {
  max-height: 80px;
  overflow: hidden;
  transition:
    max-height 0.2s ease,
    margin 0.2s ease,
    opacity 0.2s ease;
}
.app-header.is-compact {
  padding-top: 6px;
  padding-bottom: 6px;
}
.app-header.is-compact .nav-tabs {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
}
.app-header.is-compact .brand-title {
  font-size: 17px;
}

/* Sign-out confirmation */
.logout-confirm {
  max-width: 680px;
  margin: 10px auto 0;
  background: #ffffff;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.logout-question {
  font-weight: 800;
  font-size: 18px;
}
.logout-hint {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 10px;
}

/* Kuih: three choices */
.toggle-group.toggle-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 520px) {
  .toggle-group.toggle-3 {
    grid-template-columns: 1fr;
  }
}

/* Sticky footer: smaller total that never wraps */
.footer-total {
  flex-shrink: 0;
}
.footer-label {
  font-size: 13px;
  white-space: nowrap;
}
.footer-amount {
  font-size: 19px;
  font-weight: 800;
  white-space: nowrap;
  word-break: keep-all;
}
.footer-actions {
  flex-shrink: 1;
}
@media (max-width: 420px) {
  .sticky-footer {
    padding: 8px 12px;
  }
  .footer-actions .button {
    padding-left: 0.8em;
    padding-right: 0.8em;
    font-size: 16px;
  }
}

/* Fixed (not sticky) header; app.ts reserves its full height as body padding. */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}
@media print {
  body {
    padding-top: 0 !important;
  }
}
body:has(> .app-header) {
  padding-top: 132px; /* fallback before app.js measures the real height */
}
.logout-confirm .button.is-danger {
  background-color: var(--danger);
  border-color: var(--danger);
  color: #ffffff;
}
.logout-confirm .button.is-danger:hover {
  background-color: #991b1b;
  color: #ffffff;
}

/* ---------- Text boxes that grow to fit (long item names, notes) */
textarea.autogrow {
  resize: none;
  overflow: hidden;
  min-height: 52px;
  line-height: 1.35;
  padding-top: 13px;
  padding-bottom: 11px;
  field-sizing: content;
}

/* ---------- Quote list */
.list-tools {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 12px;
}
.list-tools .select select {
  font-weight: 700;
}
.quote-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-left-width: 6px;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.quote-card.status-draft {
  border-left-color: #94a3b8;
  background: #ffffff;
}
.quote-card.status-sent {
  border-left-color: #3b82f6;
  background: #ffffff;
}
.quote-card.status-deposit_paid {
  border-left-color: #16a34a;
  background: #ffffff;
}
.quote-card.status-completed {
  border-left-color: var(--teal);
  background: #ffffff;
}
.quote-card.status-cancelled {
  border-left-color: #dc2626;
  background: #fafafa;
  opacity: 0.8;
}
.quote-card-main {
  display: block;
  color: var(--ink);
}
.quote-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.quote-guest {
  font-weight: 800;
  font-size: 18px;
  flex: 1;
}
.quote-total {
  font-weight: 800;
  font-size: 17px;
  color: var(--teal);
  white-space: nowrap;
}
.quote-event {
  font-size: 15px;
  font-weight: 600;
}
.quote-meta {
  font-size: 14px;
  color: var(--muted);
}
.quote-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}
.status-select {
  flex: 1;
}
.status-select select,
.select.is-small.status-select select {
  width: 100%;
  font-size: 16px;
  font-weight: 700;
  min-height: 48px;
}
.icon-btn {
  min-width: 52px;
  padding-left: 0;
  padding-right: 0;
}

/* ---------- Compact pages (Financial, Settings) */
.compact-page {
  font-size: 16px;
}
.page-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--teal);
  text-align: center;
  flex: 1;
}
.compact-page .year-nav {
  margin-bottom: 10px;
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.stat-box {
  border-radius: 12px;
  padding: 10px 12px;
  border: 2px solid transparent;
}
.compact-page .stat-label {
  font-size: 14px;
}
.compact-page .stat-value {
  font-size: 20px;
  margin-top: 2px;
  white-space: nowrap;
}
.compact-page .stat-sub {
  font-size: 13px;
}
.panel-box {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}
.compact-page .section-heading {
  font-size: 16px;
  margin-bottom: 8px;
}
.compact-page .bar-row {
  grid-template-columns: 36px 1fr auto;
  gap: 8px;
  margin-bottom: 4px;
}
.compact-page .bar-label {
  font-size: 14px;
}
.compact-page .bar-track {
  height: 14px;
}
.compact-page .bar-value {
  font-size: 14px;
  min-width: 82px;
}
.compact-page .status-row {
  padding: 6px 0;
  font-size: 15px;
}
.status-count {
  color: var(--muted);
}

/* ---------- Settings: grouped rows + edit panel */
.settings-group {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
}
.settings-group-head {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: none;
  border: 0;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.settings-group-head > .lc-icon {
  color: var(--teal);
}
.settings-group-title {
  font-weight: 800;
  font-size: 17px;
  flex-shrink: 0;
}
.settings-group-summary {
  flex: 1;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
}
.chevron {
  margin-left: auto;
  transition: transform 0.15s ease;
  color: var(--muted);
}
.chevron.is-open {
  transform: rotate(90deg);
}
.settings-group-body {
  border-top: 1px solid #e2e8f0;
}
.settings-row {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: none;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.settings-row:active {
  background: var(--sand);
}
.settings-row-label {
  font-weight: 700;
  flex-shrink: 0;
  max-width: 45%;
}
.settings-row-name {
  flex: 1;
  max-width: none;
  font-weight: 600;
}
.settings-row-value {
  flex: 1;
  text-align: right;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
}
.settings-row-name + .settings-row-value {
  flex: 0 0 auto;
}
.settings-row-edit {
  color: var(--teal);
}
.settings-add {
  color: var(--teal);
  font-weight: 700;
  border-bottom: 0;
}
.toast {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 16px;
  max-width: 656px;
  margin: 0 auto;
  background: #ecfdf5;
  border: 2px solid #86efac;
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  z-index: 60;
  font-size: 15px;
}
.toast .lc-icon {
  color: var(--ok);
  margin-top: 2px;
}
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 80;
}
.sheet-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 680px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 18px 18px 0 0;
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
  z-index: 90;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.15);
  max-height: 85vh;
  overflow-y: auto;
}
.sheet-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 10px;
}
.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.sheet-delete {
  margin-top: 8px;
  color: var(--danger);
}

/* ---------- Guided mode */
.guide-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--muted);
  font-size: 15px;
}
.guide-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
  margin: 4px 0 14px;
}
.guide-bar-fill {
  height: 100%;
  width: 0;
  background: var(--teal);
  transition: width 0.2s ease;
}
.guide-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 8px;
  line-height: 1.25;
}
.guide-summary {
  margin: 0;
}
.guide-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}
.guide-summary-row dt {
  font-weight: 700;
  color: var(--muted);
}
.guide-summary-row dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
}
.guide-footer {
  justify-content: flex-end;
}
.guide-footer .is-light {
  margin-right: auto;
}
.guide-skip {
  color: var(--muted);
  text-decoration: underline;
}
.guide-next {
  min-width: 120px;
}

/* Edit panel sits at the top of the visible screen (app.ts follows the on-screen keyboard),
   so the field and its Save button are never hidden behind the keyboard. */
.sheet-panel {
  top: 12px;
  bottom: auto;
  left: 12px;
  right: 12px;
  border-radius: 16px;
  padding: 16px;
  max-height: calc(100vh - 24px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
body.sheet-open {
  overflow: hidden;
}

/* Home: confirm a status change */
.status-confirm {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  background: var(--terracotta);
}
.status-confirm-title {
  font-weight: 800;
}
.status-confirm-hint {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}
.back-to-guide {
  margin-bottom: 8px;
  color: var(--teal);
  font-weight: 700;
}
