/* =========================================================================
   Stay Concierge — design tokens & shared styles
   Warm, quiet, coastal editorial. Built mobile-first at 390px, then let it
   breathe. No framework: plain CSS, custom properties for every token.
   ========================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,340;0,9..144,440;0,9..144,560;0,9..144,650;1,9..144,440&family=Work+Sans:wght@400;500;600;700&display=swap");

:root {
  /* Color — sand paper, harbor teal, brass, a warm rust for "ask first" states */
  --paper: #f2ead9;
  --paper-deep: #e8dcc2;
  --surface: #fbf7ee;
  --surface-line: #e7dfc9;
  --ink: #20241f;
  --ink-soft: #565f56;
  --ink-faint: #8b9086;
  --marine: #2b4b47;
  --marine-deep: #182f2c;
  --marine-tint: #e2ebe7;
  --brass: #a5793d;
  --brass-deep: #7f5a29;
  --brass-tint: #f3e6cd;
  --rust: #96543a;
  --rust-tint: #f2e2d5;
  --error: #a4342a;
  --error-tint: #f3ddd7;
  --line: #d9cba9;
  --focus-ring: #2b4b47;

  /* Type */
  --font-display: "Fraunces", ui-serif, "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 1rem;
  --text-md: 1.0625rem;
  --text-lg: 1.3125rem;
  --text-xl: 1.75rem;
  --text-2xl: 2.25rem;
  --text-3xl: 3rem;

  /* Space */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.5rem;
  --sp-8: 3rem;
  --sp-9: 4rem;
  --sp-10: 5rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(24, 27, 22, 0.08);
  --shadow-md: 0 8px 24px rgba(24, 27, 22, 0.1);
  --shadow-lift: 0 -2px 12px rgba(24, 27, 22, 0.08);

  --container: 40rem;
  --container-wide: 72rem;

  color-scheme: light;
}

/* Dark-water: the product runs on a warm paper ground in both light and dark
   OS themes — the brief calls for a quiet, printed feel rather than a
   light/dark toggle. We still darken lightly for prefers-color-scheme so a
   dark-mode viewer isn't blasted with a bright page. */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #211f1a;
    --paper-deep: #191712;
    --surface: #2a2721;
    --surface-line: #3a3527;
    --ink: #f2ead9;
    --ink-soft: #c9c0a9;
    --ink-faint: #948c76;
    --marine: #86b0a8;
    --marine-deep: #b7d6cf;
    --marine-tint: #2b3b37;
    --brass: #d4a765;
    --brass-deep: #e6c48c;
    --brass-tint: #3a301f;
    --rust: #d99672;
    --rust-tint: #3a271d;
    --error: #e08a7c;
    --error-tint: #3d2420;
    --line: #423c2c;
    --focus-ring: #d4a765;
  }
}

* {
  box-sizing: border-box;
}

/* Several components below (.btn, .card, .pill, .browse-body, …) set their
   own `display`, which otherwise beats the UA stylesheet's [hidden] rule at
   equal specificity. Force it so `el.hidden = true` always works. */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.12;
  margin: 0 0 var(--sp-3);
  color: var(--ink);
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 var(--sp-4);
}

ul,
ol {
  margin: 0 0 var(--sp-4);
  padding-left: 1.25em;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--sp-3);
  top: -3rem;
  background: var(--ink);
  color: var(--paper);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-sm);
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: var(--sp-3);
}

/* --- Layout --------------------------------------------------------------- */

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

.wrap--wide {
  max-width: var(--container-wide);
}

section {
  padding: var(--sp-8) 0;
}

@media (min-width: 720px) {
  .wrap {
    padding: 0 var(--sp-6);
  }
  section {
    padding: var(--sp-9) 0;
  }
}

/* Tide rule — the recurring horizon motif. A single thin wave of brass ink,
   used only at section transitions and never as decoration inside a card. */
.tide-rule {
  height: 14px;
  width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='14' viewBox='0 0 72 14'%3E%3Cpath d='M0 8 Q9 1 18 8 T36 8 T54 8 T72 8' fill='none' stroke='%23a5793d' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.55;
}

/* --- Eyebrow / kicker ------------------------------------------------------ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: var(--sp-3);
}

/* --- Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.75em 1.25em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
  line-height: 1.2;
}
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.btn--primary {
  background: var(--marine);
  color: var(--surface);
}
.btn--primary:hover:not(:disabled) {
  background: var(--marine-deep);
}

.btn--secondary {
  background: transparent;
  border-color: var(--marine);
  color: var(--marine);
}
.btn--secondary:hover:not(:disabled) {
  background: var(--marine-tint);
}

.btn--ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--line);
}
.btn--ghost:hover:not(:disabled) {
  border-color: var(--ink-soft);
  color: var(--ink);
}

.btn--sm {
  padding: 0.5em 0.9em;
  font-size: var(--text-sm);
}

.btn--block {
  width: 100%;
}

.btn--danger {
  background: transparent;
  border-color: var(--error);
  color: var(--error);
}
.btn--danger:hover:not(:disabled) {
  background: var(--error-tint);
}

/* --- Forms ------------------------------------------------------------------ */

label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: var(--sp-1);
}

.field {
  margin-bottom: var(--sp-4);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 0.65em 0.85em;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
}
textarea {
  resize: vertical;
  min-height: 5em;
}
input::placeholder {
  color: var(--ink-faint);
}

.help-text {
  font-size: var(--text-xs);
  color: var(--ink-faint);
  margin-top: var(--sp-1);
}

/* --- Cards -------------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
}

/* --- Pills / status chips ------------------------------------------------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.3em 0.75em;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.pill--book-now {
  background: var(--marine-tint);
  color: var(--marine-deep);
}
.pill--request {
  background: var(--rust-tint);
  color: var(--rust);
}
.pill--quoted {
  background: var(--surface-line);
  color: var(--ink-soft);
}
.pill--status-confirmed,
.pill--status-completed,
.pill--status-paid,
.pill--status-live,
.pill--status-confirmed_true {
  background: var(--marine-tint);
  color: var(--marine-deep);
}
.pill--status-requested,
.pill--status-draft,
.pill--status-due,
.pill--status-unconfirmed {
  background: var(--rust-tint);
  color: var(--rust);
}
.pill--status-declined,
.pill--status-refunded,
.pill--status-cancelled,
.pill--status-void {
  background: var(--error-tint);
  color: var(--error);
}

/* --- Toasts ------------------------------------------------------------- */

.toast-stack {
  position: fixed;
  left: var(--sp-4);
  right: var(--sp-4);
  bottom: var(--sp-4);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  pointer-events: none;
}
@media (min-width: 720px) {
  .toast-stack {
    left: auto;
    right: var(--sp-6);
    bottom: var(--sp-6);
    width: 22rem;
  }
}
.toast {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-sm);
  padding: var(--sp-3) var(--sp-4);
  box-shadow: var(--shadow-md);
  font-size: var(--text-sm);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.toast--error {
  background: var(--error);
  color: #fff;
}
.toast--success {
  background: var(--marine-deep);
  color: #fff;
}

/* =========================================================================
   Landing page
   ========================================================================= */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) 0;
}
.site-header__mark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 650;
  text-decoration: none;
  color: var(--ink);
}
.site-header__mark span {
  color: var(--brass-deep);
}

.hero {
  padding-top: var(--sp-6);
}
.hero__grid {
  display: grid;
  gap: var(--sp-6);
}
@media (min-width: 860px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: var(--sp-8);
  }
}

.hero h1 {
  font-size: var(--text-2xl);
  font-weight: 560;
}
@media (min-width: 540px) {
  .hero h1 {
    font-size: var(--text-3xl);
  }
}

.hero__lede {
  font-size: var(--text-md);
  color: var(--ink-soft);
  max-width: 34em;
}

.hero__actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-top: var(--sp-5);
}

/* Signature hero mark: a quiet harbor horizon, drawn not photographed. */
.horizon {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--paper-deep) 0%, var(--surface) 62%);
}

.rule-banner {
  background: var(--marine);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  text-align: center;
}
.rule-banner__eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-tint);
  margin-bottom: var(--sp-2);
  display: block;
}
.rule-banner p {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 440;
  max-width: 34em;
  margin: 0 auto;
  line-height: 1.35;
}
.rule-banner p + p {
  margin-top: var(--sp-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--paper);
  opacity: 0.85;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-5);
}
@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-6);
  }
}
.step__num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--brass-deep);
  display: block;
  margin-bottom: var(--sp-2);
}
.step h3 {
  font-size: var(--text-md);
  margin-bottom: var(--sp-2);
}
.step p {
  color: var(--ink-soft);
  font-size: var(--text-sm);
  margin-bottom: 0;
}

.section-head {
  margin-bottom: var(--sp-6);
  max-width: 38em;
}
.section-head h2 {
  font-size: var(--text-xl);
}
.section-head p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

.pkg-grid {
  display: grid;
  gap: var(--sp-4);
}
@media (min-width: 640px) {
  .pkg-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .pkg-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pkg-card {
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.pkg-card__eyebrow {
  font-size: var(--text-xs);
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.pkg-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--sp-1);
}
.pkg-card p {
  color: var(--ink-soft);
  font-size: var(--text-sm);
  margin-bottom: 0;
}
.pkg-card__from {
  margin-top: auto;
  padding-top: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--brass-deep);
  font-weight: 600;
}

.good-to-know {
  display: grid;
  gap: var(--sp-3);
}
.good-to-know li {
  list-style: none;
  padding-left: var(--sp-4);
  position: relative;
  color: var(--ink-soft);
}
.good-to-know li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass);
}

.faq {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  background: none;
  border: none;
  text-align: left;
  padding: var(--sp-4) 0;
  font-family: var(--font-display);
  font-size: var(--text-md);
  cursor: pointer;
  color: var(--ink);
}
.faq-item__icon {
  flex: none;
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--brass-deep);
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-item__icon {
  transform: rotate(45deg);
}
.faq-item__a {
  margin: 0 0 var(--sp-4);
  color: var(--ink-soft);
  max-width: 42em;
}
.faq-item summary {
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--sp-6) 0 var(--sp-9);
}
.site-footer p {
  color: var(--ink-soft);
  font-size: var(--text-sm);
}
.site-footer a {
  color: var(--ink);
}

/* =========================================================================
   Guest page
   ========================================================================= */

body.guest {
  padding-bottom: var(--sp-9);
}

.guest-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: var(--sp-3) 0;
}
.guest-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.guest-header__house {
  font-family: var(--font-display);
  font-size: var(--text-md);
  margin: 0;
  line-height: 1.15;
}
.guest-header__meta {
  font-size: var(--text-xs);
  color: var(--ink-soft);
  margin: 0;
}

.guest-main {
  padding-top: var(--sp-5);
  display: grid;
  gap: var(--sp-6);
}

.guest-banner {
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--text-sm);
}
.guest-banner--success {
  background: var(--marine-tint);
  color: var(--marine-deep);
  border: 1px solid var(--marine);
}
.guest-banner--info {
  background: var(--brass-tint);
  color: var(--brass-deep);
  border: 1px solid var(--brass);
}

/* Chat */

.chat-panel {
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-panel__head {
  padding: var(--sp-4) var(--sp-5) var(--sp-3);
  border-bottom: 1px solid var(--surface-line);
}
.chat-panel__head h2 {
  font-size: var(--text-md);
  margin-bottom: var(--sp-1);
}
.chat-panel__head p {
  font-size: var(--text-xs);
  color: var(--ink-soft);
  margin-bottom: 0;
}

.chat-log {
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-height: 60vh;
  overflow-y: auto;
}
@media (min-width: 720px) {
  .chat-log {
    max-height: 30rem;
  }
}

.bubble {
  max-width: 85%;
  padding: 0.65em 0.95em;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  line-height: 1.45;
  white-space: pre-wrap;
}
.bubble--assistant {
  align-self: flex-start;
  background: var(--paper-deep);
  color: var(--ink);
  border-bottom-left-radius: var(--radius-sm);
}
.bubble--user {
  align-self: flex-end;
  background: var(--marine);
  color: var(--surface);
  border-bottom-right-radius: var(--radius-sm);
}

.chat-status {
  align-self: flex-start;
  font-size: var(--text-xs);
  color: var(--ink-faint);
  font-style: italic;
  padding-left: 0.2em;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: 0 var(--sp-5) var(--sp-4);
}
.chip {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: 0.45em 0.9em;
  font-size: var(--text-xs);
  font-weight: 500;
  cursor: pointer;
}
.chip:hover {
  border-color: var(--marine);
  color: var(--marine);
}

.chat-form {
  display: flex;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--surface-line);
  background: var(--surface);
}
.chat-form textarea {
  flex: 1;
  min-height: 2.6em;
  max-height: 8em;
  border-radius: var(--radius-md);
  padding: 0.6em 0.9em;
}
.chat-form button {
  flex: none;
}

/* Plan card */

.plan-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.plan-card__head h2 {
  font-size: var(--text-md);
  margin: 0;
}
.plan-day {
  margin-bottom: var(--sp-4);
}
.plan-day__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: var(--sp-2);
}

.plan-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--surface-line);
}
.plan-line:first-child {
  border-top: none;
}
.plan-line__main {
  min-width: 0;
}
.plan-line__name {
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: 0.2em;
}
.plan-line__meta {
  font-size: var(--text-xs);
  color: var(--ink-soft);
}
.plan-line__right {
  flex: none;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--sp-1);
}
.plan-line__price {
  font-weight: 600;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}
.plan-line__price--quoted {
  color: var(--ink-soft);
  font-weight: 500;
  font-style: italic;
}
.plan-line__remove {
  background: none;
  border: none;
  color: var(--ink-faint);
  font-size: var(--text-xs);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.plan-line__remove:hover {
  color: var(--error);
}

.plan-empty {
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.plan-totals {
  border-top: 1px solid var(--line);
  margin-top: var(--sp-2);
  padding-top: var(--sp-4);
  display: grid;
  gap: var(--sp-2);
}
.plan-totals__row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
}
.plan-totals__row--total {
  font-weight: 700;
  font-size: var(--text-md);
  font-family: var(--font-display);
}
.plan-totals__label {
  color: var(--ink-soft);
}

.plan-checkout {
  margin-top: var(--sp-5);
  display: grid;
  gap: var(--sp-3);
}

/* Browse everything */

.browse-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-5);
  font-family: var(--font-display);
  font-size: var(--text-md);
  cursor: pointer;
  color: var(--ink);
}
.browse-toggle__icon {
  transition: transform 0.2s ease;
  color: var(--brass-deep);
}
.browse-toggle[aria-expanded="true"] .browse-toggle__icon {
  transform: rotate(180deg);
}

.browse-body {
  margin-top: var(--sp-4);
  display: grid;
  gap: var(--sp-6);
}

.cat-group__title {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brass-deep);
  margin-bottom: var(--sp-3);
}

.cat-list {
  display: grid;
  gap: var(--sp-3);
}

.catalog-item {
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  display: grid;
  gap: var(--sp-2);
}
.catalog-item__top {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
}
.catalog-item__name {
  font-weight: 600;
  font-size: var(--text-sm);
}
.catalog-item__vendor {
  font-size: var(--text-xs);
  color: var(--ink-faint);
}
.catalog-item__desc {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  margin: 0;
}
.catalog-item__price {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--brass-deep);
  white-space: nowrap;
}
.catalog-item__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-top: var(--sp-1);
}
.catalog-item__actions select {
  width: auto;
  flex: 1 1 8rem;
  min-width: 8rem;
  padding: 0.5em 0.7em;
  font-size: var(--text-sm);
}

.info-list {
  display: grid;
  gap: var(--sp-2);
}
.info-item {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  padding: var(--sp-2) 0;
  border-top: 1px solid var(--surface-line);
}
.info-item:first-child {
  border-top: none;
}
.info-item strong {
  color: var(--ink);
}

/* Bookings */

.order-card {
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  margin-bottom: var(--sp-3);
}
.order-card:last-child {
  margin-bottom: 0;
}
.order-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.order-card__id {
  font-size: var(--text-xs);
  color: var(--ink-faint);
}
.order-card__total {
  font-weight: 700;
  font-family: var(--font-display);
}
.order-item-row {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  padding: var(--sp-2) 0;
  border-top: 1px dashed var(--surface-line);
}
.order-item-row:first-child {
  border-top: none;
}

/* Guest footer */

.guest-footer {
  text-align: center;
  padding-top: var(--sp-6);
}
.guest-footer p {
  color: var(--ink-soft);
  font-size: var(--text-sm);
}
.guest-footer a {
  color: var(--marine);
  font-weight: 600;
}

/* Full-page state (404/410/423) */

.state-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  text-align: center;
}
.state-page__card {
  max-width: 26rem;
}
.state-page h1 {
  font-size: var(--text-xl);
}
.state-page p {
  color: var(--ink-soft);
}

/* =========================================================================
   Admin
   ========================================================================= */

body.admin-body {
  background: var(--paper-deep);
}

.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
}
.admin-login__card {
  width: 100%;
  max-width: 22rem;
}
.admin-login__card h1 {
  font-size: var(--text-lg);
}

.admin-shell {
  display: none;
  min-height: 100vh;
}
.admin-shell.is-active {
  display: flex;
  flex-direction: column;
}
@media (min-width: 900px) {
  .admin-shell.is-active {
    flex-direction: row;
  }
}

.admin-nav {
  background: var(--marine-deep);
  color: var(--paper);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
@media (min-width: 900px) {
  .admin-nav {
    width: 14rem;
    flex: none;
    min-height: 100vh;
    position: sticky;
    top: 0;
  }
}
.admin-nav__mark {
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: var(--paper);
  margin-bottom: var(--sp-4);
}
.admin-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--sp-1);
  flex-wrap: wrap;
}
@media (min-width: 900px) {
  .admin-nav__list {
    flex-direction: column;
  }
}
.admin-nav__link {
  display: block;
  padding: 0.6em 0.9em;
  border-radius: var(--radius-sm);
  color: var(--paper);
  opacity: 0.75;
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  text-align: left;
  width: 100%;
}
.admin-nav__link:hover {
  opacity: 1;
  background: rgba(242, 234, 217, 0.08);
}
.admin-nav__link.is-active {
  opacity: 1;
  background: rgba(242, 234, 217, 0.14);
  font-weight: 700;
}
.admin-nav__logout {
  margin-top: auto;
  padding-top: var(--sp-4);
}

.admin-main {
  flex: 1;
  min-width: 0;
  padding: var(--sp-5) var(--sp-4) var(--sp-9);
}
@media (min-width: 900px) {
  .admin-main {
    padding: var(--sp-6) var(--sp-7) var(--sp-9);
  }
}

.admin-view {
  display: none;
}
.admin-view.is-active {
  display: block;
}

.admin-view h1 {
  font-size: var(--text-xl);
  margin-bottom: var(--sp-1);
}
.admin-view__intro {
  color: var(--ink-soft);
  font-size: var(--text-sm);
  margin-bottom: var(--sp-5);
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
  margin-bottom: var(--sp-4);
}
.admin-toolbar select,
.admin-toolbar input {
  width: auto;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-md);
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 42rem;
  font-size: var(--text-sm);
}
th,
td {
  text-align: left;
  padding: 0.65em 0.9em;
  border-bottom: 1px solid var(--surface-line);
  white-space: nowrap;
}
th {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  font-weight: 700;
  background: var(--paper-deep);
}
td.wrap-cell {
  white-space: normal;
  min-width: 12rem;
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody tr:hover {
  background: var(--paper);
}
td select,
td input {
  padding: 0.4em 0.6em;
  font-size: var(--text-xs);
  min-width: 6rem;
}

.confidence-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.2em 0.55em;
  border-radius: var(--radius-sm);
  background: var(--surface-line);
  color: var(--ink-soft);
  text-transform: capitalize;
}
.confidence-badge--verified {
  background: var(--marine-tint);
  color: var(--marine-deep);
}

.admin-grid {
  display: grid;
  gap: var(--sp-5);
}
@media (min-width: 900px) {
  .admin-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.link-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.link-row code {
  background: var(--paper-deep);
  padding: 0.2em 0.5em;
  border-radius: 4px;
  font-size: var(--text-xs);
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Drawer */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 27, 22, 0.4);
  z-index: 40;
  display: none;
}
.drawer-backdrop.is-active {
  display: block;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 34rem;
  background: var(--paper);
  z-index: 50;
  overflow-y: auto;
  padding: var(--sp-5);
  transform: translateX(100%);
  transition: transform 0.2s ease;
}
.drawer.is-active {
  transform: translateX(0);
}
.drawer__close {
  background: none;
  border: none;
  font-size: var(--text-lg);
  cursor: pointer;
  color: var(--ink-soft);
  float: right;
}

.list-simple {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-2);
}
.list-simple li {
  border-bottom: 1px solid var(--surface-line);
  padding: var(--sp-2) 0;
  font-size: var(--text-sm);
}

.conv-message {
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--surface-line);
}
.conv-message__role {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.2em;
}
.conv-message__tool {
  font-size: var(--text-xs);
  color: var(--brass-deep);
  font-family: monospace;
  background: var(--brass-tint);
  padding: 0.3em 0.5em;
  border-radius: 4px;
  display: inline-block;
  margin: 0.2em 0;
}

.digest-panel {
  display: grid;
  gap: var(--sp-4);
}
.digest-stat {
  display: flex;
  justify-content: space-between;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--surface-line);
  font-size: var(--text-sm);
}
.digest-stat strong {
  font-family: var(--font-display);
  font-size: var(--text-md);
}

.empty-state {
  color: var(--ink-soft);
  font-size: var(--text-sm);
  padding: var(--sp-5);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
}

.loading-row {
  color: var(--ink-faint);
  font-size: var(--text-sm);
  padding: var(--sp-4);
}

.bubble--notice { opacity: .85; font-style: italic; }
.order-card__sub { font-size: .8em; opacity: .75; font-weight: 400; }
