/* ============================================================================
   SPITI — COMPONENT LAYER
   Built on Elodie's tokens. Two shells: concierge (efficient, desktop-rich) and
   guest (spacious, mobile-first). Nothing here hardcodes a palette value on a
   brand-owned surface — brand surfaces read the --brand-* tokens.
   ============================================================================ */

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

/* ---- Shell layouts -------------------------------------------------------- */
.shell--concierge {
  display: grid;
  grid-template-columns: 264px 1fr;
  min-height: 100vh;
}
.main--concierge {
  min-width: 0;
  grid-column: 2;
  padding: var(--space-l) var(--space-xl);
  background: var(--oc-ivory);
}
.shell--guest { min-height: 100vh; background: var(--brand-ground); }
.main--guest { max-width: 480px; margin: 0 auto; padding: 0; }

/* ---- Left rail (concierge) ------------------------------------------------ */
.rail {
  position: sticky; top: 0; align-self: start; height: 100vh;
  display: flex; flex-direction: column;
  background: var(--oc-shell); border-right: 1px solid var(--oc-line);
  padding: var(--space-l) var(--space-m);
}
.rail__brand-row { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-s); margin-bottom: var(--space-l); }
.rail__brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.rail__brand .spiti-wordmark { font-size: var(--step-3); }
.rail__signature {
  font-size: var(--step--2); letter-spacing: var(--tracking-kicker);
  text-transform: uppercase; color: var(--oc-ink-muted);
}
/* Sidebar collapse — a per-viewer preference (localStorage), never a layout
   the server decides. The expand button is fixed so it survives the rail
   being hidden entirely. */
.rail__collapse-btn, .rail__expand-btn {
  background: none; border: 1px solid var(--oc-line); border-radius: var(--radius-pill);
  cursor: pointer; color: var(--oc-ink-muted); font-size: var(--step--1); line-height: 1;
}
.rail__collapse-btn { width: 28px; height: 28px; flex: 0 0 auto; }
.rail__collapse-btn:hover, .rail__expand-btn:hover { color: var(--oc-brass-deep); border-color: var(--oc-brass-soft); }
.rail__expand-btn {
  display: none; position: fixed; top: var(--space-m); left: var(--space-m); z-index: var(--z-nav, 10);
  width: 32px; height: 32px; background: var(--oc-shell);
}
html.rail-collapsed .shell--concierge { grid-template-columns: 0 1fr; }
html.rail-collapsed .rail { display: none; }
html.rail-collapsed .rail__expand-btn { display: block; }
/* The expand button is fixed at the viewport corner, exactly where the page's
   own kicker/logo starts — without this, the two sit on the same line and
   overlap (the button eating the first letter of the wordmark). */
html.rail-collapsed .main--concierge { padding-top: calc(var(--space-l) + 40px); }
.rail__nav { display: flex; flex-direction: column; gap: 1px; flex: 1; overflow-y: auto; }
.nav-section-label {
  font-size: var(--step--2); letter-spacing: var(--tracking-kicker); text-transform: uppercase;
  color: var(--oc-ink-faint); margin: var(--space-m) var(--space-2xs) var(--space-2xs);
}
.nav-item {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs);
  padding: var(--space-2xs) var(--space-xs); border-radius: var(--radius-s);
  color: var(--oc-ink-soft); text-decoration: none; font-size: var(--ui-body);
  transition: background var(--dur-fast) var(--ease-standard);
}
.nav-item:hover { background: var(--oc-parchment); }
.nav-item.is-active { background: var(--oc-brass-veil); color: var(--oc-ink); font-weight: var(--fw-body-med); }
.nav-badge {
  font-family: var(--font-mono); font-size: var(--step--2); color: var(--oc-brass-deep);
  background: var(--oc-cream); border-radius: var(--radius-pill); padding: 1px 7px; min-width: 20px; text-align: center;
}
.rail__foot { border-top: 1px solid var(--oc-line); padding-top: var(--space-s); margin-top: var(--space-s); }
.rail__user { display: flex; flex-direction: column; margin-bottom: var(--space-2xs); }
.rail__user-name { font-weight: var(--fw-body-med); color: var(--oc-ink); font-size: var(--ui-body); }
.rail__user-role { font-size: var(--step--2); letter-spacing: .04em; text-transform: uppercase; color: var(--oc-ink-muted); }
.rail__signout { font-size: var(--step--1); color: var(--oc-ink-muted); text-decoration: none; }
.rail__signout:hover { color: var(--oc-brass-deep); }
.rail__lang { display: flex; align-items: center; gap: 4px; font-size: var(--step--1); margin-bottom: var(--space-2xs); }
.rail__lang a { color: var(--oc-ink-muted); text-decoration: none; }
.rail__lang a.is-active { color: var(--oc-brass-deep); font-weight: var(--fw-body-med); }
.rail__lang a:hover { color: var(--oc-brass-deep); }
.rail__lang-sep { color: var(--oc-line); }

/* ---- Page furniture ------------------------------------------------------- */
.kicker {
  font-size: var(--step--2); letter-spacing: var(--tracking-kicker); text-transform: uppercase;
  color: var(--oc-brass-deep); margin-bottom: var(--space-2xs);
}
.kicker--logo { display: flex; align-items: center; }
.kicker--logo .oc-mark { height: 22px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-m);
  margin-bottom: var(--space-l); padding-bottom: var(--space-s); border-bottom: 1px solid var(--oc-line); }
.page-title { font-size: var(--step-4); margin: 0; }
.page-meta { color: var(--oc-ink-muted); font-size: var(--ui-body); margin-top: var(--space-2xs); }
.page-actions { display: flex; gap: var(--space-2xs); align-items: center; flex-wrap: wrap; }

/* ---- Cards / panels ------------------------------------------------------- */
.grid { display: grid; gap: var(--gutter); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--tiles { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.span-2 { grid-column: span 2; }

.card {
  background: var(--oc-shell); border: 1px solid var(--oc-line); border-radius: var(--radius-l);
  padding: var(--space-m); box-shadow: var(--shadow-1);
}
.card__label { font-size: var(--step--2); letter-spacing: var(--tracking-kicker); text-transform: uppercase;
  color: var(--oc-ink-muted); margin-bottom: var(--space-2xs); }
.card__title { font-family: var(--font-display); font-size: var(--step-2); color: var(--oc-ink); margin: 0 0 var(--space-2xs); }
.card h2, .card h3 { margin-top: 0; }

.tile { background: var(--oc-shell); border: 1px solid var(--oc-line); border-radius: var(--radius-l);
  padding: var(--space-m); text-decoration: none; color: inherit; display: block;
  transition: box-shadow var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard); }
.tile:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.tile__brand { font-size: var(--step--1); color: var(--oc-ink-muted); text-transform: uppercase; letter-spacing: .1em; }
.tile__name { font-family: var(--font-display); font-size: var(--step-2); color: var(--oc-ink); margin: var(--space-2xs) 0; }
.tile__meta { font-size: var(--step--1); color: var(--oc-ink-muted); }
.tile__stats { display: flex; gap: var(--space-m); margin-top: var(--space-s); padding-top: var(--space-s); border-top: 1px solid var(--oc-line); }
/* Four counters: two by two, so long labels ("Pas encore confirmés") never spill out of the card. */
.tile__stats--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-s) var(--space-m); }
.tile__stats--grid .stat__label { letter-spacing: .04em; overflow-wrap: anywhere; }
.stat { display: flex; flex-direction: column; }
.stat__num { font-family: var(--font-display); font-size: var(--step-3); color: var(--oc-ink); line-height: 1; }
.stat__num.is-accent { color: var(--oc-brass-deep); }
.stat__num.is-urgent { color: var(--status-urgent); }
.stat__label { font-size: var(--step--2); color: var(--oc-ink-muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }

/* ---- Tables (efficient register) ----------------------------------------- */
.table { width: 100%; border-collapse: collapse; font-size: var(--ui-body); }
.table th {
  text-align: left; font-weight: var(--fw-body-semi); font-size: var(--step--2);
  letter-spacing: .06em; text-transform: uppercase; color: var(--oc-ink-muted);
  padding: var(--space-xs) var(--space-s); border-bottom: 1px solid var(--oc-line-strong);
}
.table td { padding: var(--space-xs) var(--space-s); border-bottom: 1px solid var(--oc-line); vertical-align: middle; }
.table tr:hover td { background: var(--oc-cream); }
.table .num, .table .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.row-link { color: var(--oc-ink); text-decoration: none; font-weight: var(--fw-body-med); }
.row-link:hover { color: var(--oc-brass-deep); }

/* ---- Chips / status ------------------------------------------------------- */
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: var(--step--2);
  font-weight: var(--fw-body-med); letter-spacing: .02em; padding: 2px 9px; border-radius: var(--radius-pill);
  border: 1px solid transparent; white-space: nowrap; }
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .8; }
.chip--approved { color: var(--status-approved); background: var(--status-approved-bg); }
.chip--pending  { color: var(--oc-brass-deep); background: var(--oc-brass-veil); }
.chip--warning  { color: var(--status-warning); background: var(--status-warning-bg); }
.chip--urgent   { color: var(--status-urgent); background: var(--status-urgent-bg); }
.chip--declined { color: var(--status-declined); background: #EEE7E4; }
.chip--info     { color: var(--status-info); background: var(--status-info-bg); }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2xs);
  height: var(--control-h); padding: 0 var(--space-m); border-radius: var(--radius-m);
  font-family: var(--font-body); font-size: var(--ui-body); font-weight: var(--fw-body-med);
  border: 1px solid var(--oc-line-strong); background: var(--oc-shell); color: var(--oc-ink);
  cursor: pointer; text-decoration: none; transition: all var(--dur-fast) var(--ease-standard);
  white-space: nowrap; /* a button label never wraps inside its fixed height (fixes /brands "Create an event" clip at 1280px) */
}
.btn:hover { border-color: var(--oc-brass-soft); background: var(--oc-cream); }
.btn--primary { background: var(--oc-ink); color: var(--oc-ivory); border-color: var(--oc-ink); }
.btn--primary:hover { background: var(--oc-brass-deep); border-color: var(--oc-brass-deep); }
.btn--brass { background: var(--oc-brass); color: var(--oc-ivory); border-color: var(--oc-brass); }
.btn--brass:hover { background: var(--oc-brass-deep); }
.btn--approve { background: var(--status-approved); color: #fff; border-color: var(--status-approved); }
.btn--decline { background: transparent; color: var(--status-declined); border-color: var(--status-declined); }
.btn--ghost { background: transparent; border-color: var(--oc-line); }
.btn--sm { height: var(--control-h-sm); padding: 0 var(--space-s); font-size: var(--step--1); }
.btn--danger { color: var(--status-urgent); border-color: var(--status-urgent); background: transparent; }

/* ---- Forms ---------------------------------------------------------------- */
.field { margin-bottom: var(--space-s); }
.field label { display: block; font-size: var(--step--1); color: var(--oc-ink-muted); margin-bottom: 4px; font-weight: var(--fw-body-med); }
.input, .textarea, select.input {
  width: 100%; height: var(--control-h); padding: 0 var(--field-pad-x);
  border: 1px solid var(--oc-line-strong); border-radius: var(--radius-m); background: #fff;
  font-family: var(--font-body); font-size: var(--ui-body); color: var(--oc-ink);
}
.textarea { height: auto; padding: var(--space-xs) var(--field-pad-x); min-height: 84px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus, select.input:focus { outline: none; box-shadow: var(--ring-focus); border-color: var(--oc-brass); }

/* ---- Detail rows / definition lists -------------------------------------- */
.dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-2xs) var(--space-m); }
.dl dt { font-size: var(--step--1); color: var(--oc-ink-muted); }
.dl dd { margin: 0; color: var(--oc-ink); font-size: var(--ui-body); }
.dl dd.mono { font-family: var(--font-mono); }

/* ---- Empty / notice ------------------------------------------------------- */
.empty { text-align: center; padding: var(--space-2xl) var(--space-l); border: 1px dashed var(--oc-line-strong);
  border-radius: var(--radius-l); background: var(--oc-shell); }
.empty__title { font-family: var(--font-display); font-size: var(--step-2); color: var(--oc-ink); }
.empty__sub { color: var(--oc-ink-muted); margin: var(--space-2xs) 0 var(--space-m); }

.notice { border-radius: var(--radius-m); padding: var(--space-s) var(--space-m); font-size: var(--ui-body);
  border: 1px solid; margin-bottom: var(--space-m); }
.notice--approved { background: var(--status-approved-bg); border-color: var(--status-approved); color: #384532; }
.notice--warning { background: var(--status-warning-bg); border-color: var(--status-warning); color: #5a4318; }
.notice--urgent { background: var(--status-urgent-bg); border-color: var(--status-urgent); color: #6a2c22; }
.notice--info { background: var(--status-info-bg); border-color: var(--status-info); color: #2c3d46; }

/* ---- Wall notice (the RBAC affordance) ----------------------------------- */
.wall {
  border: 1px solid var(--oc-line); border-left: 3px solid var(--oc-brass); border-radius: var(--radius-m);
  background: var(--oc-cream); padding: var(--space-s) var(--space-m); font-size: var(--step--1);
  color: var(--oc-ink-muted); margin-top: var(--space-m);
}
.wall strong { color: var(--oc-ink); font-weight: var(--fw-body-semi); }
.wall__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xs) var(--space-m); margin-top: var(--space-2xs); }
.wall__yes { color: var(--status-approved); } .wall__no { color: var(--status-declined); }

/* ---- Simulated tag -------------------------------------------------------- */
.sim-tag { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono);
  font-size: var(--step--2); color: var(--oc-ink-muted); background: var(--oc-cream);
  border: 1px solid var(--oc-line); border-radius: var(--radius-pill); padding: 2px 9px; cursor: help; }

/* ---- Sub-tab strip -------------------------------------------------------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--oc-line); margin-bottom: var(--space-l); flex-wrap: wrap; }
.tab { padding: var(--space-2xs) var(--space-s); font-size: var(--ui-body); color: var(--oc-ink-muted);
  text-decoration: none; border-bottom: 2px solid transparent; }
.tab.is-active { color: var(--oc-ink); border-bottom-color: var(--oc-brass); font-weight: var(--fw-body-med); }
.tab:hover { color: var(--oc-ink); }

/* ---- Timeline (movements / ripple) --------------------------------------- */
.timeline { position: relative; }
.tl-row { display: grid; grid-template-columns: 92px 1fr; gap: var(--space-m); padding: var(--space-s) 0;
  border-bottom: 1px solid var(--oc-line); }
.tl-time { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--oc-ink); font-size: var(--ui-body); }
.tl-time.is-changed { color: var(--status-warning); }
.tl-body { min-width: 0; }
.tl-title { font-weight: var(--fw-body-med); color: var(--oc-ink); }
.tl-sub { font-size: var(--step--1); color: var(--oc-ink-muted); }

/* ==========================================================================
   GUEST SHELL — mobile-first, editorial, never looks like software.
   ========================================================================== */
.g-hero {
  background: var(--brand-primary); color: var(--brand-primary-ink);
  padding: var(--space-2xl) var(--space-l) var(--space-xl);
  text-align: center; position: relative;
}
.g-hero__kicker { font-size: var(--step--1); letter-spacing: var(--tracking-kicker); text-transform: uppercase;
  color: var(--brand-accent); opacity: .95; }
.g-hero__mark { font-family: var(--font-display); font-weight: var(--fw-display); letter-spacing: var(--tracking-wordmark);
  font-size: var(--step-5); margin: var(--space-2xs) 0; color: var(--brand-primary-ink); }
.g-hero__event { font-family: var(--font-read); font-style: italic; font-size: var(--step-1); color: var(--brand-primary-ink); opacity: .9; }
.g-hero__sig { font-size: var(--step--2); letter-spacing: var(--tracking-kicker); text-transform: uppercase;
  color: var(--brand-primary-ink); opacity: .55; margin-top: var(--space-m); }
.g-hero__line { width: 44px; height: 1px; background: var(--brand-accent); margin: var(--space-s) auto 0; }

.g-greeting { padding: var(--space-xl) var(--space-l) var(--space-s); }
.g-greeting h1 { font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--step-4);
  color: var(--oc-ink); margin: 0 0 var(--space-2xs); }
.g-greeting p { font-family: var(--font-read); font-size: var(--step-1); color: var(--oc-ink-soft); margin: 0; line-height: 1.5; }

.g-day-label { font-size: var(--step--1); letter-spacing: var(--tracking-kicker); text-transform: uppercase;
  color: var(--oc-brass-deep); padding: var(--space-l) var(--space-l) var(--space-2xs); }

.g-item { padding: var(--space-m) var(--space-l); border-top: 1px solid var(--brand-line); position: relative;
  animation: rise var(--dur-slow) var(--ease-entrance) both; }
.g-item:nth-child(1){animation-delay:calc(var(--dur-stagger)*0);} .g-item:nth-child(2){animation-delay:calc(var(--dur-stagger)*1);}
.g-item:nth-child(3){animation-delay:calc(var(--dur-stagger)*2);} .g-item:nth-child(4){animation-delay:calc(var(--dur-stagger)*3);}
.g-item:nth-child(5){animation-delay:calc(var(--dur-stagger)*4);} .g-item:nth-child(6){animation-delay:calc(var(--dur-stagger)*5);}
@keyframes rise { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: none; } }
.g-item__time { font-family: var(--font-mono); font-size: var(--step--1); color: var(--brand-accent); font-weight: 500;
  letter-spacing: .02em; display: flex; align-items: center; gap: var(--space-2xs); }
.g-item__time .delayed { color: var(--status-warning); }
.g-item__title { font-family: var(--font-display); font-size: var(--step-2); color: var(--oc-ink); margin: 3px 0 var(--space-2xs); font-weight: var(--fw-display-med); }
.g-item__copy { font-family: var(--font-read); font-size: var(--step-0); color: var(--oc-ink-soft); line-height: 1.55; }
.g-item__loc { font-size: var(--step--1); color: var(--oc-ink-muted); margin-top: var(--space-2xs); }
.g-item__actions { display: flex; gap: var(--space-2xs); margin-top: var(--space-s); }
.g-chip-action { font-size: var(--step--1); color: var(--oc-brass-deep); text-decoration: none; border: 1px solid var(--brand-line);
  border-radius: var(--radius-pill); padding: 4px 12px; background: var(--oc-shell); }
.g-item__type { position: absolute; left: 0; top: var(--space-m); width: 3px; height: 24px; background: var(--brand-accent); border-radius: 2px; }

.g-delay-banner { margin: var(--space-l); padding: var(--space-m); border-radius: var(--radius-l);
  background: var(--status-warning-bg); border: 1px solid var(--status-warning); }
.g-delay-banner h3 { font-family: var(--font-display); color: #5a4318; margin: 0 0 var(--space-2xs); font-size: var(--step-2); }
.g-delay-banner p { font-family: var(--font-read); color: #5a4318; margin: 0; }

.g-foot { padding: var(--space-xl) var(--space-l) var(--space-2xl); text-align: center; }
.g-foot .spiti-wordmark { font-size: var(--step-2); }
.g-foot__sig { font-size: var(--step--2); letter-spacing: var(--tracking-kicker); text-transform: uppercase; color: var(--oc-ink-muted); display: block; margin-top: 4px; }

.g-msg-thread { padding: var(--space-l); }
.g-msg { max-width: 82%; padding: var(--space-s) var(--space-m); border-radius: var(--radius-l); margin-bottom: var(--space-s);
  font-family: var(--font-read); font-size: var(--step-0); line-height: 1.45; }
.g-msg--them { background: var(--oc-shell); border: 1px solid var(--brand-line); }
.g-msg--me { background: var(--brand-primary); color: var(--brand-primary-ink); margin-left: auto; }
.g-msg__who { font-family: var(--font-body); font-size: var(--step--2); text-transform: uppercase; letter-spacing: .08em; opacity: .7; margin-bottom: 3px; }

/* ---- Sign-in: an editorial split — ink panel (the house) | ivory panel (the door) ---- */
.signin { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 1fr) minmax(420px, 1fr); background: var(--oc-ivory); }
.signin__brand { position: relative; display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--space-2xl) var(--space-2xl) var(--space-xl); background: var(--oc-ink); color: var(--oc-ivory); overflow: hidden; }
.signin__brand::after { content: ""; position: absolute; inset: var(--space-m); border: 1px solid rgba(201, 174, 114, .28); pointer-events: none; }
.signin__kicker { font-size: var(--step--2); letter-spacing: .32em; text-transform: uppercase; color: var(--oc-brass-soft); }
.signin__brand-mid { position: relative; z-index: 1; }
.signin__brand-mark { display: block; font-size: clamp(4rem, 8vw, 7.5rem); line-height: .95; color: var(--oc-ivory); font-weight: 300; letter-spacing: .01em; }
.signin__brand-rule { display: block; width: 72px; height: 1px; background: var(--oc-brass); margin: var(--space-l) 0 var(--space-m); }
.signin__brand-tag { font-family: var(--font-read); font-style: italic; font-size: var(--step-1); color: rgba(246, 241, 231, .78); max-width: 26ch; margin: 0; }
.signin__brand-list { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-s);
  font-size: var(--step--2); letter-spacing: .12em; text-transform: uppercase; color: rgba(246, 241, 231, .55); }
.signin__brand-list li { white-space: nowrap; }
.signin__brand-list li + li::before { content: "·"; margin-right: var(--space-s); color: var(--oc-brass-soft); }
.signin__panel { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--space-2xl) var(--space-l); }
.signin__lang { position: absolute; top: var(--space-m); right: var(--space-l); display: flex; align-items: center; gap: 4px; font-size: var(--step--1); }
.signin__lang a { color: var(--oc-ink-muted); text-decoration: none; }
.signin__lang a.is-active { color: var(--oc-ink); font-weight: var(--fw-body-med); }
.signin__lang a:hover { color: var(--oc-ink); }
.signin__card { width: 100%; max-width: 440px; }
.signin__mark { display: none; }
.signin__mark .spiti-wordmark { font-size: var(--step-5); display: block; }
.signin__title { font-family: var(--font-display); font-weight: 300; font-size: var(--step-4); color: var(--oc-ink); margin: 0 0 var(--space-2xs); }
.signin__welcome { font-family: var(--font-read); font-size: var(--step-0); color: var(--oc-ink-soft); margin: 0 0 var(--space-l); }
.signin__form { display: grid; gap: var(--space-2xs); }
.signin__label { font-size: var(--step--2); letter-spacing: .14em; text-transform: uppercase; color: var(--oc-ink-muted); }
.signin__form .input { padding: 12px 14px; font-size: var(--step-0); background: var(--oc-shell); }
.signin__submit { width: 100%; margin-top: var(--space-2xs); padding: 12px; }
.signin__demo { margin-top: var(--space-xl); border-top: 1px solid var(--oc-line); padding-top: var(--space-m); }
.signin__demo > summary { cursor: pointer; font-size: var(--step--2); letter-spacing: .14em; text-transform: uppercase; color: var(--oc-brass-deep); list-style: none; }
.signin__demo > summary::-webkit-details-marker { display: none; }
.signin__demo > summary::after { content: " ▾"; }
.signin__demo[open] > summary { margin-bottom: var(--space-s); }
.signin__foot { position: absolute; bottom: var(--space-m); font-size: var(--step--2); color: var(--oc-ink-faint); letter-spacing: .06em; margin: 0; }
.role-card--guest { background: var(--oc-ink); border-color: var(--oc-ink); }
.role-card--guest .role-card__name { color: var(--oc-ivory); }
.role-card--guest .role-card__role { color: rgba(246, 241, 231, .7); }
@media (max-width: 860px) {
  .signin { grid-template-columns: 1fr; }
  .signin__brand { min-height: 0; padding: var(--space-xl) var(--space-l); gap: var(--space-l); }
  .signin__brand-mark { font-size: clamp(3.2rem, 16vw, 4.5rem); }
  .signin__brand-list { display: none; }
  .signin__panel { justify-content: flex-start; padding: var(--space-xl) 16px var(--space-3xl); }
}
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xs); }
.role-card { display: block; text-align: center; padding: var(--space-s) var(--space-m); border: 1px solid var(--oc-line-strong);
  border-radius: var(--radius-m); background: #fff; color: inherit; text-decoration: none; cursor: pointer;
  transition: all var(--dur-fast) var(--ease-standard); font-family: inherit; width: 100%; }
.role-card:hover { border-color: var(--oc-brass); background: var(--oc-cream); }
.role-card__name { font-weight: var(--fw-body-semi); color: var(--oc-ink); font-size: var(--ui-body); }
.role-card__role { font-size: var(--step--1); color: var(--oc-ink-muted); margin-top: 2px; }
.signin__note { font-size: var(--step--1); color: var(--oc-ink-muted); margin-top: var(--space-m); line-height: 1.5; }
.magic-link-box { background: var(--oc-cream); border: 1px dashed var(--oc-brass-soft); border-radius: var(--radius-m);
  padding: var(--space-m); margin-bottom: var(--space-l); }
.magic-link-box code { display: block; word-break: break-all; font-size: var(--step--1); color: var(--oc-brass-deep); margin-top: var(--space-2xs); }

/* ==========================================================================
   CHAPTER THREE — new surfaces. Property card grid + detail, experiences
   catalog, the concierge dining/experience writable form. Built entirely on
   the existing token vocabulary; the efficient (OC ops) register unless noted.
   ========================================================================== */

/* ---- Property catalog: photo + description CARD GRID (§2a) ----------------
   Replaces the table. Warm, editorial, real hierarchy — a catalog you'd want
   to browse, not a spreadsheet. Cards link to the detail page (§2c). */
.prop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gutter);
}
.prop-card {
  display: flex; flex-direction: column;
  background: var(--oc-shell); border: 1px solid var(--oc-line);
  border-radius: var(--radius-l); overflow: hidden;
  text-decoration: none; color: inherit;
  transition: box-shadow var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard);
}
.prop-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.prop-card__photo {
  aspect-ratio: 4 / 3; width: 100%; object-fit: cover; display: block;
  background: var(--oc-cream); border-bottom: 1px solid var(--oc-line);
}
/* Placeholder when a property carries no image_url yet — a tasteful monogram
   plate in the house palette, never a broken-image icon. */
.prop-card__placeholder {
  aspect-ratio: 4 / 3; width: 100%; display: grid; place-items: center;
  background:
    radial-gradient(120% 120% at 50% 20%, var(--oc-cream) 0%, var(--oc-parchment) 100%);
  border-bottom: 1px solid var(--oc-line);
}
.prop-card__placeholder span {
  font-family: var(--font-display); font-weight: var(--fw-display);
  font-size: var(--step-4); color: var(--oc-brass-soft);
  letter-spacing: .04em; line-height: 1;
}
.prop-card__body { padding: var(--space-m); display: flex; flex-direction: column; gap: var(--space-2xs); flex: 1; }
.prop-card__cat {
  font-size: var(--step--2); letter-spacing: var(--tracking-kicker); text-transform: uppercase;
  color: var(--oc-brass-deep);
}
.prop-card__name { font-family: var(--font-display); font-size: var(--step-2); color: var(--oc-ink); margin: 0; line-height: 1.1; }
.prop-card__loc { font-size: var(--step--1); color: var(--oc-ink-muted); }
.prop-card__desc {
  font-size: var(--step--1); color: var(--oc-ink-soft); line-height: 1.5; margin: var(--space-2xs) 0 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.prop-card__foot {
  margin-top: auto; padding-top: var(--space-s);
  display: flex; align-items: center; gap: var(--space-2xs);
}

/* ---- Property DETAIL page (§2c) ------------------------------------------- */
.prop-detail { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--gutter); align-items: start; }
.prop-detail__photo {
  width: 100%; border-radius: var(--radius-l); border: 1px solid var(--oc-line);
  aspect-ratio: 4 / 3; object-fit: cover; background: var(--oc-cream); display: block;
}
.prop-detail__placeholder {
  width: 100%; border-radius: var(--radius-l); border: 1px solid var(--oc-line);
  aspect-ratio: 4 / 3; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 50% 20%, var(--oc-cream) 0%, var(--oc-parchment) 100%);
}
.prop-detail__placeholder span { font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--step-6); color: var(--oc-brass-soft); }
.prop-detail__desc { font-family: var(--font-read); font-size: var(--step-1); line-height: 1.6; color: var(--oc-ink-soft); }

/* A quiet chip listing which events/blocks reference this property. */
.ref-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--step--1); color: var(--oc-ink-soft);
  background: var(--oc-cream); border: 1px solid var(--oc-line);
  border-radius: var(--radius-m); padding: var(--space-2xs) var(--space-s); text-decoration: none;
}
.ref-chip:hover { border-color: var(--oc-brass-soft); color: var(--oc-ink); }
.ref-chip .ref-chip__meta { color: var(--oc-ink-muted); font-size: var(--step--2); }

/* ---- Manual production guest-add / experiences / dining: shared form note --
   A small distinguishing banner so a production shortcut READS as a shortcut,
   not as the normal nomination path. Reuses the .wall affordance's calm voice. */
.form-shortcut-note {
  border: 1px solid var(--oc-line); border-left: 3px solid var(--oc-brass);
  background: var(--oc-cream); border-radius: var(--radius-m);
  padding: var(--space-s) var(--space-m); font-size: var(--step--1); color: var(--oc-ink-muted);
  margin-bottom: var(--space-m);
}
.form-shortcut-note strong { color: var(--oc-ink); }

/* Experiences catalog: a compact card list, same family as .prop-card. */
.exp-type-chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: var(--step--2);
  letter-spacing: .04em; text-transform: uppercase; padding: 2px 9px; border-radius: var(--radius-pill);
  border: 1px solid var(--oc-line-strong); color: var(--oc-ink-muted); background: var(--oc-shell);
}

/* Radio-card chooser (attach a catalog experience vs. free entry) ----------- */
.choice-row { display: flex; gap: var(--space-2xs); margin-bottom: var(--space-s); flex-wrap: wrap; }
.choice-card {
  flex: 1 1 200px; border: 1px solid var(--oc-line-strong); border-radius: var(--radius-m);
  padding: var(--space-s) var(--space-m); cursor: pointer; background: #fff;
  transition: all var(--dur-fast) var(--ease-standard);
}
.choice-card:hover { border-color: var(--oc-brass-soft); background: var(--oc-cream); }
.choice-card input { margin-right: var(--space-2xs); accent-color: var(--oc-brass); }
.choice-card__label { font-weight: var(--fw-body-med); color: var(--oc-ink); }
.choice-card__sub { font-size: var(--step--1); color: var(--oc-ink-muted); margin-top: 2px; }

@media (max-width: 900px) {
  .prop-detail { grid-template-columns: 1fr; }
}

/* ---- The OC Special mark (a LIVE image layer, never baked/redrawn) ---------
   The client's own wordmark PNG (public/oc-special-logo.png — black on a
   transparent ground). It stands in for the words "OC Special" inside a
   lockup: [ Spiti ] · by [ OC SPECIAL mark ]. Sized to a signature scale so it
   reads as a quiet co-signature under the Spiti display wordmark, matching the
   caps-micro-label rhythm it replaces. Two grounds:
     · default  — light grounds (rail, sign-in card, guest foot): shown as-is.
     · --on-dark — the guest hero's deep --brand-primary field: inverted to a
       clean ivory mark so the thin letterforms read against the dark ground.
   The PNG is ~8.54:1 (2655×311); height drives the scale, width follows aspect. */
.oc-mark {
  display: inline-block;
  height: 0.9em;                 /* rides the signature line's own font-size */
  width: auto;
  vertical-align: baseline;
  object-fit: contain;
  /* the mark is black; tint it to match the muted signature ink on light grounds */
  filter: none;
  opacity: 0.82;                 /* the co-signature is quiet, like the text it replaces */
}
.oc-mark--on-dark {
  /* invert the black mark to ivory for the tobacco/dark guest hero */
  filter: invert(1) brightness(1.9);
  opacity: 0.62;                 /* matches the .g-hero__sig quiet weight */
}
/* The lockup that carries it: "by" as the caps micro-label, mark beside it. */
.oc-sig-lockup {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5em;
  font-size: var(--step--2); letter-spacing: var(--tracking-kicker);
  text-transform: uppercase; color: var(--oc-ink-muted);
}
.oc-sig-lockup .oc-mark { height: 1.15em; opacity: 0.9; } /* mark reads a touch larger than the word "by" */

/* ---- Utilities ------------------------------------------------------------ */
.muted { color: var(--oc-ink-muted); }
.mono { font-family: var(--font-mono); }
.mt-m { margin-top: var(--space-m); } .mt-l { margin-top: var(--space-l); } .mb-s { margin-bottom: var(--space-s); }
.flex { display: flex; gap: var(--space-s); align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: var(--space-s); }
.wrap-actions { display: flex; gap: var(--space-2xs); flex-wrap: wrap; align-items: center; }
.stack-s > * + * { margin-top: var(--space-s); }
.section-label { font-size: var(--step--1); letter-spacing: var(--tracking-kicker); text-transform: uppercase;
  color: var(--oc-ink-muted); margin: var(--space-l) 0 var(--space-s); }

/* ---- Wide tables: keep column shape, scroll the row (all viewports) -------
   The wrapper gives the table its own horizontal scroll; the min-width keeps
   columns from crushing (e.g. "LV-CRUISE-27" wrapping, nights stacking). On a
   desktop the table is narrower than the container so nothing scrolls; on a
   phone the row scrolls sideways instead of squeezing. Desktop unchanged. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .table { min-width: 640px; }

/* ---- Responsive: concierge shell collapses into a DESIGNED mobile top bar -
   Not a reflow spill. Three tidy zones: (1) a bar row carrying the Spiti mark
   on the left and the user + sign-out aligned on the right; (2) a clean
   horizontal scroll strip of nav items beneath it. Composed, not accidental. */
@media (max-width: 900px) {
  .shell--concierge { grid-template-columns: minmax(0, 1fr); } /* never wider than the screen */
  .rail { min-width: 0; max-width: 100vw; grid-template-columns: minmax(0, 1fr) auto !important; }
  .rail__nav { min-width: 0; max-width: 100%; }

  .rail {
    position: sticky; top: 0; z-index: var(--z-nav);
    height: auto; align-self: stretch;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand user" "nav nav";
    align-items: center;
    gap: var(--space-2xs) var(--space-s);
    border-right: none; border-bottom: 1px solid var(--oc-line);
    padding: var(--space-s) var(--space-m);
    background: var(--oc-shell);
  }

  .rail__brand {
    grid-area: brand;
    flex-direction: row; align-items: baseline; gap: var(--space-2xs);
    margin: 0;
  }
  .rail__brand .spiti-wordmark { font-size: var(--step-2); }
  .rail__signature { font-size: var(--step--2); }

  .rail__foot {
    grid-area: user;
    display: flex; align-items: center; gap: var(--space-s);
    border-top: none; margin: 0; padding: 0;
  }
  .rail__user { flex-direction: column; align-items: flex-end; margin: 0; text-align: right; }
  .rail__user-name { font-size: var(--step--1); line-height: 1.15; }
  .rail__user-role { font-size: var(--step--2); }
  .rail__signout { white-space: nowrap; }

  .rail__nav {
    grid-area: nav;
    flex-direction: row; flex-wrap: nowrap;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    gap: var(--space-2xs);
    padding-bottom: 2px;
    scrollbar-width: none;
    border-top: 1px solid var(--oc-line);
    padding-top: var(--space-2xs);
    margin-top: var(--space-2xs);
  }
  .rail__nav::-webkit-scrollbar { display: none; }
  .nav-section-label { display: none; }
  .nav-item {
    flex: 0 0 auto; white-space: nowrap;
    padding: var(--space-2xs) var(--space-s);
    border: 1px solid var(--oc-line); border-radius: var(--radius-pill);
    background: var(--oc-ivory);
  }
  .nav-item.is-active { border-color: var(--oc-brass-soft); }

  .main--concierge { padding: var(--space-m) 16px; grid-column: 1; } /* one column on a phone (was pinned to column 2 → a 32px strip) */
  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .page-head { flex-direction: column; align-items: flex-start; }
}

/* ---- Guest board (src/guest-board.js): breakdown bar + filters ---------- */
.board-breakdown { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: var(--space-2xs); margin-bottom: var(--space-s); }
.board-stat { display: flex; flex-direction: column; gap: 2px; padding: var(--space-xs) var(--space-s); border: 1px solid var(--oc-line);
  border-left: 3px solid var(--oc-line-strong); border-radius: var(--radius-m); background: var(--oc-shell); color: inherit; text-decoration: none;
  transition: border-color var(--dur-base, .15s) ease, box-shadow var(--dur-base, .15s) ease; }
.board-stat:hover { box-shadow: var(--shadow-1, 0 1px 3px rgba(0,0,0,.08)); }
.board-stat.is-active { border-color: var(--oc-ink); box-shadow: inset 0 0 0 1px var(--oc-ink); }
.board-stat__n { font-size: var(--step-2); font-variant-numeric: tabular-nums; line-height: 1.1; color: var(--oc-ink); }
.board-stat__l { font-size: var(--step--1); color: var(--oc-ink-muted); }
.board-stat--approved { border-left-color: var(--status-approved); }
.board-stat--pending { border-left-color: var(--oc-brass); }
.board-stat--warning { border-left-color: var(--status-warning); }
.board-stat--info { border-left-color: var(--status-info); }
.board-stat--declined { border-left-color: var(--status-declined); }
.board-filters { display: flex; flex-wrap: wrap; gap: var(--space-2xs); align-items: center; margin-bottom: var(--space-s); }
.board-filters .input { width: auto; min-width: 0; height: var(--control-h-sm, 34px); padding-block: 2px; }
.board-filters .board-search { flex: 1 1 220px; }
.board-count { font-size: var(--step--1); margin-bottom: var(--space-2xs); }
/* Flash notice after a save (server.js flash middleware + view.js page()). */
.flash { margin-bottom: var(--space-s); }
@media (max-width: 640px) { .board-filters .input { flex: 1 1 45%; } }

/* Inline row controls (Edit / Delete) on cockpit lists. */
.row-actions { display: inline-flex; gap: var(--space-2xs); align-items: center; flex-wrap: wrap; white-space: nowrap; }
.row-actions form { display: inline; margin: 0; }

/* Guest page at-a-glance strip (concierge.js summaryStrip). */
.glance-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-2xs); margin-bottom: var(--space-m); }
.glance { display: flex; flex-direction: column; gap: 2px; padding: var(--space-xs) var(--space-s); border: 1px solid var(--oc-line); border-radius: var(--radius-m);
  background: var(--oc-shell); color: inherit; text-decoration: none; min-width: 0; }
.glance:hover { border-color: var(--oc-line-strong); }
.glance__l { font-size: var(--step--2); text-transform: uppercase; letter-spacing: .08em; color: var(--oc-ink-muted); }
.glance__v { font-size: var(--step-0); color: var(--oc-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.glance__s { font-size: var(--step--1); color: var(--oc-ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.glance--warning { border-left: 3px solid var(--status-warning); }
.glance--info { border-left: 3px solid var(--status-info); }
/* Programme restaurant reservations (src/routes/dining.js). */
.dr-days { display: flex; flex-wrap: wrap; gap: var(--space-3xs, 4px); margin-bottom: var(--space-s); }
.dr-day { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 10px; border: 1px solid var(--oc-line); border-radius: var(--radius-pill, 999px);
  background: var(--oc-shell); color: inherit; text-decoration: none; font-size: var(--step--1); }
.dr-day.is-active { border-color: var(--oc-ink); box-shadow: inset 0 0 0 1px var(--oc-ink); }
.dr-day__n { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--oc-ink); }
.dr-day__todo { font-size: var(--step--2); color: var(--status-warning); }
.dr-table td { vertical-align: top; }
.dr-table tr.is-todo td { background: var(--status-warning-bg, #FBF3E2); }
.dr-comments { max-width: 260px; font-size: var(--step--1); white-space: pre-line; }
.dr-ocnote { margin-top: 4px; color: var(--oc-brass-deep); }
.dr-status { width: auto; min-width: 150px; height: var(--control-h-sm, 32px); padding-block: 2px; }
.dr-sort { color: inherit; text-decoration: none; white-space: nowrap; }
.dr-sort:hover, .dr-sort.is-active { color: var(--oc-ink); text-decoration: underline; }
/* Reservation statuses — the shared Excel's colours (conditional formats of
   the STATUS column), kept identical so zones and concierges read them at a glance. */
.st { --st-bg: transparent; --st-fg: var(--oc-ink); --st-line: var(--oc-line-strong); }
.st-new { --st-bg: #FFFF00; --st-fg: #1C1B16; --st-line: #D9D200; }
.st-to_update { --st-bg: #FFEBAB; --st-fg: #4A3A06; --st-line: #E8CC6E; }
.st-to_cancel { --st-bg: #FF0000; --st-fg: #FFFFFF; --st-line: #D40000; }
.st-pending { --st-bg: #FFC000; --st-fg: #3A2A00; --st-line: #E0A800; }
.st-confirmed { --st-bg: #C4E59F; --st-fg: #1F3A10; --st-line: #9CCB6B; }
.st-cancelled { --st-bg: #C00000; --st-fg: #FFFFFF; --st-line: #9A0000; }
.st-unavailable { --st-bg: #FFFFFF; --st-fg: #3D3A33; --st-line: #BDB6A8; }
.chip.st { background: var(--st-bg); color: var(--st-fg); box-shadow: inset 0 0 0 1px var(--st-line); font-weight: 600; }
.chip.st::before { display: none; }
select.dr-status.st { background-color: var(--st-bg); color: var(--st-fg); border-color: var(--st-line); font-weight: 600; }
select.dr-status.st option { background: #FFFFFF; color: #1C1B16; }
.board-stat.st-edge { border-left: 6px solid var(--st-bg); }
.board-stat.st-edge.st-unavailable { border-left-color: var(--st-line); }

.dr-link { margin-left: 4px; }
.dr-link--old { color: var(--oc-ink-muted, #8a8272); background: transparent; box-shadow: inset 0 0 0 1px var(--oc-line-strong); }
.dr-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.dr-fieldset:disabled .input, .dr-fieldset:disabled .textarea { background: transparent; color: var(--oc-ink); opacity: 1; }

/* Master File */
.mf-hotels { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-xs); margin-bottom: var(--space-s); }
.mf-hotel { display: grid; gap: 4px; padding: var(--space-xs) var(--space-s); border: 1px solid var(--oc-line); border-radius: var(--radius-m); background: var(--oc-shell); color: inherit; text-decoration: none; }
.mf-hotel:hover, .mf-hotel.is-active { border-color: var(--oc-ink); }
.mf-hotel__n { font-size: var(--step--1); } .mf-hotel__sub { font-size: var(--step--2); }
.mf-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--oc-line); }
.mf-bar i { display: block; background: var(--st-bg); box-shadow: inset 0 0 0 1px var(--st-line); }
.mf-table td { vertical-align: middle; }
.mf-line { min-width: 150px; } .mf-sub { font-size: var(--step--2); margin-top: 2px; } .mf-stay { white-space: nowrap; font-size: var(--step--1); }
.mf-grid .mf-in { height: var(--control-h-sm, 32px); padding-block: 2px; min-width: 92px; font-size: var(--step--1); }
.mf-grid input[type="date"].mf-in { min-width: 128px; }
.mf-grid tr.mf-free td { background: color-mix(in srgb, var(--oc-brass) 5%, transparent); }
.mf-grid tr.mf-dirty td { background: color-mix(in srgb, #FFFF00 18%, transparent); }
.mf-savebar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-s); margin: var(--space-xs) 0; flex-wrap: wrap; }
.mf-give { display: flex; gap: 4px; align-items: center; } .mf-give .input { height: var(--control-h-sm, 32px); padding-block: 2px; max-width: 170px; }
.mf-step { font-family: var(--font-display, inherit); font-weight: 500; font-size: var(--step-2); margin: var(--space-s) 0 2px; }
.mf-hotelform { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-s); align-items: end; }
.mf-hotelform .field { margin: 0; } .mf-hotelform__name { flex: 1 1 200px; } .mf-hotelform__act { align-self: end; }
.mf-cats { margin-top: var(--space-s); display: grid; gap: 4px; }
.mf-cats__head, .mf-catform { display: grid; grid-template-columns: minmax(140px, 1fr) 70px 100px 80px auto; gap: 6px; align-items: center; }
.mf-cats__head { font-size: var(--step--2); text-transform: uppercase; letter-spacing: .06em; }
.mf-catrow { display: flex; gap: 4px; align-items: center; } .mf-catrow .mf-catform { flex: 1; }
.mf-catform .input { height: var(--control-h-sm, 32px); padding-block: 2px; }
.mf-n { width: 70px; text-align: right; }
.mf-alloc td, .mf-alloc th { white-space: nowrap; } .mf-alloc .mf-n { width: 64px; }
.mf-alloc tr.mf-alloc__first td { border-top: 2px solid var(--oc-line-strong); }
.mf-alloc tfoot td { border-top: 2px solid var(--oc-ink); }
.mf-issue { display: inline-block; } .mf-issue[open] { display: flex; gap: 4px; align-items: center; } .mf-issue summary { list-style: none; cursor: pointer; }
.mf-issue summary::-webkit-details-marker { display: none; }
@media (max-width: 720px) { .mf-cats__head { display: none; } .mf-catform { grid-template-columns: 1fr 70px; } }

/* Zone ↔ OC messages */
.zm-layout { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: var(--space-m); align-items: start; }
.zm-layout--single { grid-template-columns: 1fr; max-width: 860px; }
.zm-inbox { display: grid; gap: var(--space-3xs, 4px); }
.zm-conv { display: block; padding: var(--space-xs) var(--space-s); border: 1px solid var(--oc-line); border-radius: var(--radius-m); background: var(--oc-shell); color: inherit; text-decoration: none; }
.zm-conv:hover, .zm-conv.is-active { border-color: var(--oc-ink); }
.zm-conv__top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2xs); }
.zm-conv__last { font-size: var(--step--1); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zm-thread { display: grid; gap: var(--space-s); }
.zm-list { display: flex; flex-direction: column; gap: var(--space-xs); max-height: 60vh; overflow-y: auto; padding-right: 4px; }
.zm-list--inline { max-height: 320px; }
.zm-msg { max-width: 78%; padding: var(--space-xs) var(--space-s); border-radius: 14px; border: 1px solid var(--oc-line); background: var(--oc-shell); }
.zm-msg--oc { align-self: flex-end; background: color-mix(in srgb, var(--oc-brass) 12%, var(--oc-shell)); border-color: color-mix(in srgb, var(--oc-brass) 45%, var(--oc-line)); border-bottom-right-radius: 4px; }
.zm-msg--zone { align-self: flex-start; border-bottom-left-radius: 4px; }
.zm-msg__head { font-size: var(--step--2); margin-bottom: 2px; }
.zm-msg__req { display: inline-block; font-size: var(--step--2); margin-bottom: 4px; color: var(--oc-brass-deep); text-decoration: none; font-weight: 600; }
.zm-msg__body { white-space: pre-line; font-size: var(--step--1); }
.zm-compose { display: grid; gap: var(--space-2xs); }
.zm-count { font-size: var(--step--2); text-decoration: none; margin-left: 4px; white-space: nowrap; }
@media (max-width: 760px) { .zm-layout { grid-template-columns: 1fr; } .zm-side { order: 2; } .zm-msg { max-width: 92%; } }

/* "Hors show" — the client's requests outside any event: tinted, dashed brass
   border and a bold badge, so it never reads as one more event. */
.tile--offshow { position: relative; background: color-mix(in srgb, var(--oc-brass) 9%, var(--oc-shell)); border: 1.5px dashed var(--oc-brass); }
.tile--offshow .tile__name { font-weight: 600; }
.tile__badge { display: inline-block; margin-bottom: var(--space-2xs); padding: 2px 10px; border-radius: 999px; font-size: var(--step--2); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--oc-brass-deep); background: var(--oc-shell); box-shadow: inset 0 0 0 1px var(--oc-brass); }
.off-banner { display: flex; align-items: center; gap: var(--space-xs); flex-wrap: wrap; margin-bottom: var(--space-s); padding: var(--space-xs) var(--space-s);
  border: 1.5px dashed var(--oc-brass); border-radius: var(--radius-m); background: color-mix(in srgb, var(--oc-brass) 9%, var(--oc-shell)); font-weight: 600; color: var(--oc-ink); }
.off-banner .tile__badge { margin: 0; }

/* Demo clean-up page */
.cl-list { margin: 0 0 var(--space-s); padding-left: 18px; display: grid; gap: 2px; font-size: var(--step--1); }

/* Zones page (/brands/:id/zones) */
.zn-table td { vertical-align: middle; }
.zn-table tr.zn-main td { background: var(--oc-shell, transparent); }
.zn-table tr.zn-main .zn-name { font-weight: 600; }
.zn-sub td:first-child { padding-left: var(--space-m); white-space: nowrap; }
.zn-branch { color: var(--oc-ink-muted, #8a8272); margin-right: 6px; }
.zn-name { min-width: 160px; display: inline-block; width: auto; }
.zn-merge { gap: var(--space-3xs, 4px); align-items: center; }
.zn-merge .input { min-width: 150px; }

/* Restaurant space (/vendor/dining) */
.vd-day { margin-top: var(--space-m); }
.vd-day__title { font-family: var(--font-display, inherit); font-size: var(--step-2); font-weight: 500; margin: 0 0 var(--space-2xs); }
.vd-day__title::first-letter { text-transform: uppercase; }
.vd-service { margin-bottom: var(--space-s); padding-block: var(--space-s); }
.vd-service__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2xs) var(--space-s); margin-bottom: var(--space-2xs); }
.vd-service__head .card__title { margin: 0; }
.vd-table td { vertical-align: middle; }
.vd-table tr.is-off td { opacity: .55; }
.vd-time { font-size: var(--step-1); font-weight: 600; width: 64px; }
.vd-pax { white-space: nowrap; width: 72px; }
.vd-pax__n { font-size: var(--step-1); font-weight: 600; font-variant-numeric: tabular-nums; }
.vd-sub { font-size: var(--step--2); margin-top: 2px; }
.vd-answer { display: flex; flex-wrap: wrap; gap: var(--space-3xs, 4px); align-items: center; justify-content: flex-end; }
.vd-ref { width: 130px; height: var(--control-h-sm, 32px); }
.vd-answer-cell { width: 1%; white-space: nowrap; text-align: right; }
.vd-state { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
@media (max-width: 720px) {
  .vd-table tr { display: grid; grid-template-columns: 24px 56px 1fr auto; gap: 4px 10px; padding: 8px 0; border-bottom: 1px solid var(--oc-line); }
  .vd-table td { border: 0; padding: 0; }
  .vd-table td.dr-comments, .vd-table td.vd-answer-cell { grid-column: 1 / -1; text-align: left; max-width: none; }
  .vd-answer, .vd-state { justify-content: flex-start; align-items: flex-start; }
}
@media print { .no-print { display: none !important; } .vd-service { break-inside: avoid; box-shadow: none; } }
.dr-bulk { padding: var(--space-2xs) var(--space-s); border: 1px dashed var(--oc-line-strong); border-radius: var(--radius-m); }
@media print {
  .rail, .rail__expand-btn, .page-actions, .tabs, .flash, .board-filters { display: none !important; }
  .main { margin: 0 !important; padding: 0 !important; }
  .dr-venue { break-inside: avoid; box-shadow: none; }
}
/* Master File — client sheets */
.mf-tabs { margin-bottom: var(--space-m); }
.mc-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: var(--space-m); align-items: start; }
.mc-sheet { display: grid; gap: var(--space-m); }
.mc-side { display: grid; gap: var(--space-m); position: sticky; top: var(--space-m); }
.mc-section .card__title { display: flex; align-items: baseline; gap: var(--space-2xs); flex-wrap: wrap; }
.mc-note { font-size: var(--step--1); font-weight: normal; margin: 0 0 var(--space-xs); }
.mc-ro { padding: 6px 0; min-height: 32px; color: var(--oc-ink); white-space: pre-wrap; }
.mc-room { display: flex; align-items: center; gap: var(--space-xs); flex-wrap: wrap; justify-content: space-between; padding: var(--space-2xs) 0; border-bottom: 1px solid var(--oc-line); }
.mc-room:last-child { border-bottom: 0; }
.mc-passport { border-left: 3px solid var(--oc-brass); }
tr.mc-cancelled td:nth-child(2) strong { text-decoration: line-through; }
@media (max-width: 900px) { .mc-layout { grid-template-columns: 1fr; } .mc-side { position: static; } }
.mc-roomsec { border-left: 3px solid var(--oc-brass); }
.mc-roomstate { display: flex; align-items: center; gap: var(--space-xs); flex-wrap: wrap; margin-bottom: var(--space-xs); }
.mc-sheetlink { display: flex; align-items: center; justify-content: space-between; gap: var(--space-s); flex-wrap: wrap; }
.mc-savebar { position: sticky; bottom: 0; background: var(--oc-paper, #f7f2e8); padding: var(--space-xs) 0; z-index: 2; }
.mc-grid-flights .mf-in, .mc-grid-car .mf-in, .mc-grid-passport .mf-in { min-width: 110px; }

/* Movements: one title per day */
.tl-day { font-weight: var(--fw-body-med, 600); text-transform: capitalize; padding: var(--space-xs) 0 var(--space-2xs); border-bottom: 1px solid var(--oc-line); margin-top: var(--space-s); color: var(--oc-ink); }
.tl-day:first-child { margin-top: 0; }

/* Catalog search (Hôtels & lieux, Expériences) */
.catalog-search .board-search { flex: 1; min-width: 220px; }
@media (max-width: 760px) { .catalog-filters { grid-template-columns: 1fr 1fr !important; } }

/* [hidden] always wins over .grid / .flex (toggled edit forms) */
[hidden] { display: none !important; }

/* ---- Sign-in, refined: light, grain, hairlines, a slow reveal ---- */
.signin__brand { background:
    radial-gradient(120% 80% at 18% 12%, rgba(201, 174, 114, .20) 0%, rgba(201, 174, 114, 0) 55%),
    radial-gradient(90% 70% at 92% 96%, rgba(168, 135, 62, .16) 0%, rgba(168, 135, 62, 0) 60%),
    linear-gradient(160deg, #26221C 0%, #1B1915 60%, #161410 100%);
  padding: clamp(40px, 6vw, 88px) clamp(36px, 5vw, 80px); }
.signin__brand::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.signin__brand::after { inset: 22px; border-color: rgba(201, 174, 114, .34); outline: 1px solid rgba(201, 174, 114, .12); outline-offset: 7px; }
.signin__kicker { letter-spacing: .38em; font-size: 11px; color: var(--oc-brass-soft); }
.signin__brand-mark { font-size: clamp(5rem, 10vw, 9.5rem); font-weight: 300; letter-spacing: .015em;
  background: linear-gradient(180deg, #FBF6EA 0%, #EFE4CC 58%, #D9C49A 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 0 transparent; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .35)); }
.signin__brand-rule { position: relative; width: 132px; height: 1px; margin: clamp(22px, 3vw, 34px) 0 clamp(18px, 2.4vw, 26px);
  background: linear-gradient(90deg, rgba(201, 174, 114, 0), var(--oc-brass) 20%, var(--oc-brass) 80%, rgba(201, 174, 114, 0)); }
.signin__brand-rule i { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; background: #1B1915; border: 1px solid var(--oc-brass);
  transform: translate(-50%, -50%) rotate(45deg); }
.signin__brand-tag { font-size: clamp(1.1rem, 1.5vw, 1.35rem); color: rgba(246, 241, 231, .82); letter-spacing: .005em; }
.signin__brand-list { color: rgba(246, 241, 231, .5); font-size: 10.5px; letter-spacing: .24em; }
.signin__panel { background:
    radial-gradient(70% 60% at 85% 8%, rgba(237, 227, 203, .75) 0%, rgba(237, 227, 203, 0) 60%),
    linear-gradient(180deg, #F8F4EB 0%, #F4EEE2 100%); }
.signin__panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .55  0 0 0 0 .5  0 0 0 0 .42  0 0 0 .08 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>"); }
.signin__card { position: relative; z-index: 1; max-width: 420px; }
.signin__title { font-size: clamp(2.4rem, 3.4vw, 3.1rem); letter-spacing: .005em; margin-bottom: 10px; }
.signin__welcome { color: var(--oc-ink-muted); margin-bottom: clamp(26px, 3vw, 36px); max-width: 34ch; }
.signin__label { font-size: 10.5px; letter-spacing: .22em; }
.signin__form .input { border: 0; border-bottom: 1px solid var(--oc-line-strong); border-radius: 0; background: transparent; padding: 12px 2px 10px;
  font-size: 1.05rem; transition: border-color .25s ease; }
.signin__form .input:focus { outline: none; box-shadow: none; border-bottom-color: var(--oc-brass); }
.signin__submit { margin-top: 18px; padding: 15px 18px; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; font-weight: 600;
  border-radius: 2px; transition: background-color .3s ease, letter-spacing .3s ease; }
.signin__submit:hover { background: var(--oc-brass-deep); border-color: var(--oc-brass-deep); letter-spacing: .18em; }
.signin__secure { margin: 14px 0 0; font-size: 12px; color: var(--oc-ink-faint); }
.signin__secure span { color: var(--oc-brass-deep); font-size: 8px; vertical-align: 2px; margin-right: 6px; }
.signin__demo { position: relative; z-index: 1; }
.signin__lang { z-index: 2; letter-spacing: .12em; font-size: 11px; }
.signin__foot { z-index: 1; letter-spacing: .2em; text-transform: uppercase; font-size: 10px; }
@keyframes spitiRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes spitiFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes spitiDraw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.signin__kicker, .signin__brand-mark, .signin__brand-tag, .signin__brand-list, .signin__card > * { animation: spitiRise .9s cubic-bezier(.2, .7, .2, 1) both; }
.signin__brand-mark { animation-delay: .12s; } .signin__brand-tag { animation-delay: .5s; } .signin__brand-list { animation-delay: .7s; }
.signin__brand-rule { transform-origin: left center; animation: spitiDraw 1.1s cubic-bezier(.2, .7, .2, 1) .35s both; }
.signin__card > *:nth-child(2) { animation-delay: .25s; } .signin__card > *:nth-child(3) { animation-delay: .32s; }
.signin__card > *:nth-child(4) { animation-delay: .4s; } .signin__card > *:nth-child(5) { animation-delay: .48s; } .signin__card > *:nth-child(6) { animation-delay: .56s; }
.signin__brand::after { animation: spitiFade 1.6s ease .2s both; }
@media (prefers-reduced-motion: reduce) { .signin *, .signin__brand::after { animation: none !important; } }
@media (max-width: 860px) {
  .signin__brand { padding: 44px 28px 36px; }
  .signin__brand::after { inset: 12px; outline-offset: 4px; }
  .signin__brand-mark { font-size: clamp(3.6rem, 18vw, 5rem); }
}

/* Optional photo behind the brand panel (public/signin-photo.jpg) */
.signin__brand--photo { background:
    linear-gradient(160deg, rgba(27, 25, 21, .78) 0%, rgba(22, 20, 16, .86) 70%, rgba(22, 20, 16, .92) 100%),
    radial-gradient(120% 80% at 18% 12%, rgba(201, 174, 114, .22) 0%, rgba(201, 174, 114, 0) 55%),
    url('/signin-photo.jpg') center / cover no-repeat, #1B1915; }

.signin__back { margin: 22px 0 0; font-size: 13px; }
.signin__back a { color: var(--oc-brass-deep); text-decoration: none; border-bottom: 1px solid rgba(168, 135, 62, .35); padding-bottom: 1px; }
.signin__back a:hover { border-bottom-color: var(--oc-brass); }
.signin .magic-link-box { display: grid; gap: 10px; margin-top: 4px; }
.signin .magic-link-box code { font-size: 11px; word-break: break-all; color: var(--oc-ink-faint); }


/* =====================================================================
   DESIGN PASS — one furniture everywhere, calmer statuses, big tables
   that read like Excel, phones get cards. (Overrides the rules above.)
   ===================================================================== */

/* -- Rail: a hairline scrollbar, never the grey OS bar -- */
.rail__nav { scrollbar-width: none; padding-right: 2px; /* scrolls with the wheel / touch, no OS bar */
  mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent); -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent); }
.rail__nav::-webkit-scrollbar { width: 0; height: 0; }
.rail__nav::-webkit-scrollbar-thumb { background: var(--oc-line-strong); border-radius: 4px; }
.rail__nav::-webkit-scrollbar-track { background: transparent; }
.nav-section-label { letter-spacing: .2em; font-size: 10.5px; }
.nav-item { font-size: 14px; }

/* -- Page head: a small brass kicker, a light title, a hairline -- */
.kicker { font-size: 10.5px; letter-spacing: .26em; font-weight: 500; margin-bottom: 6px; color: var(--oc-brass-deep); }
.kicker--logo .oc-mark { height: 15px; opacity: .78; }
.page-title { font-weight: 300; letter-spacing: .005em; line-height: 1.05; }
.page-head { padding-bottom: var(--space-m); margin-bottom: var(--space-l); }
.page-meta { max-width: 80ch; line-height: 1.5; }

/* -- Tabs: one style (also the billing views), with a quiet count -- */
.tabs { gap: var(--space-s); }
.tab { padding: 10px 2px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 14px; letter-spacing: .01em; }
.tab.is-active { border-bottom-color: var(--oc-brass); }
.tabs--sub { margin-bottom: var(--space-m); }
.tab__n { font-family: var(--font-mono); font-size: 11px; color: var(--oc-ink-faint); margin-left: 4px; }
.tab.is-active .tab__n { color: var(--oc-brass-deep); }

/* -- Chips: one shape -- */
.chip { border-radius: 999px; padding: 3px 10px; font-size: 11.5px; font-weight: 500; letter-spacing: .01em; line-height: 1.35; white-space: nowrap; }
.chip.st { background: var(--st-bg); color: var(--st-fg); box-shadow: inset 0 0 0 1px var(--st-line); }
.chip.st::before { background: var(--st-fg); opacity: .55; }

/* -- Statuses: the Excel's code, in the house's tones -- */
.st-new { --st-bg: #F4E3A1; --st-fg: #4A3D0C; --st-line: #E1CB72; }        /* was bright yellow */
.st-to_update { --st-bg: #F7EFD6; --st-fg: #5B4B16; --st-line: #E7D8A6; }  /* pale yellow */
.st-to_cancel { --st-bg: #C0584A; --st-fg: #FFFFFF; --st-line: #A5473B; }  /* red → brick */
.st-pending { --st-bg: #EDC88A; --st-fg: #4A3309; --st-line: #D8AC5E; }    /* orange → amber */
.st-confirmed { --st-bg: #D3E0C4; --st-fg: #2B4020; --st-line: #AFC596; }  /* green → sage */
.st-cancelled { --st-bg: #8C3B30; --st-fg: #FFFFFF; --st-line: #742F26; }  /* dark red → oxblood */
.st-unavailable { --st-bg: #FBF8F1; --st-fg: #6E675C; --st-line: #C9BFAA; }

/* -- Buttons: one weight, one height -- */
.btn { font-weight: 500; letter-spacing: .01em; border-radius: 6px; }
.btn--primary { box-shadow: 0 1px 0 rgba(0, 0, 0, .04); }

/* -- Cards and tiles: the same softness -- */
.card { border-radius: 12px; box-shadow: 0 1px 2px rgba(35, 32, 27, .04); }
.card__title { font-weight: 400; }
.tile { border-radius: 12px; }
.tile-wrap { position: relative; }
.tile__edit { position: absolute; top: 10px; right: 12px; font-size: 11.5px; color: var(--oc-ink-faint); text-decoration: none;
  padding: 3px 8px; border-radius: 999px; background: rgba(251, 248, 241, .9); opacity: 0; transition: opacity .2s ease, color .2s ease; }
.tile-wrap:hover .tile__edit, .tile__edit:focus { opacity: 1; }
.tile__edit:hover { color: var(--oc-brass-deep); }
@media (hover: none) { .tile__edit { opacity: 1; } }
.board-stat { border-radius: 10px; }
.board-stat__n { font-family: var(--font-display); font-weight: 400; }
.section-label { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--oc-ink-muted); }

/* -- Tables: airier rows, a sticky header, quieter lines -- */
.table th { font-size: 10.5px; letter-spacing: .12em; font-weight: 600; padding: 10px 12px; background: var(--oc-shell); }
.table td { padding: 11px 12px; border-bottom-color: rgba(220, 211, 193, .7); }
.table tr:hover td { background: #F7F1E4; }
.table-scroll { border: 1px solid var(--oc-line); border-radius: 12px; background: var(--oc-shell); }
.table-scroll > .table th:first-child, .table-scroll > .table td:first-child { padding-left: 16px; }

/* The big grids (Master File, billing, flights…): header and first column stay put, like Excel's frozen panes. */
.table-scroll:has(> .mf-table) { max-height: calc(100vh - 260px); overflow: auto; }
.table-scroll > .mf-table thead th { position: sticky; top: 0; z-index: 3; box-shadow: inset 0 -1px 0 var(--oc-line-strong); }
.table-scroll > .mf-grid td:first-child, .table-scroll > .mf-grid th:first-child,
.table-scroll > .bl-table td:nth-child(2), .table-scroll > .bl-table th:nth-child(2) { position: sticky; left: 0; z-index: 2; background: var(--oc-shell); box-shadow: inset -1px 0 0 var(--oc-line); }
.table-scroll > .mf-grid thead th:first-child, .table-scroll > .bl-table thead th:nth-child(2) { z-index: 4; }
.table-scroll > .mf-grid tr:hover td:first-child { background: #F7F1E4; }
.mf-grid td { padding: 6px 8px; }
.mf-grid .mf-in { height: 32px; padding: 4px 8px; font-size: 13px; border: 1px solid transparent; border-bottom-color: var(--oc-line); border-radius: 4px; background: transparent; }
.mf-grid .mf-in:hover { border-color: var(--oc-line); background: #fff; }
.mf-grid .mf-in:focus { outline: none; border-color: var(--oc-brass); background: #fff; box-shadow: 0 0 0 3px rgba(168, 135, 62, .12); }
.mf-grid select.mf-in { padding-right: 22px; }
.mf-dirty td { background: #FBF3DE !important; }
.mf-savebar { position: sticky; bottom: 0; z-index: 5; background: linear-gradient(180deg, rgba(246, 241, 231, 0), var(--oc-ivory) 35%); padding: 12px 0 6px; }

/* Inputs across the app: one quiet style */
.input, .textarea { border-radius: 6px; border-color: var(--oc-line-strong); background: #FFFDF8; transition: border-color .2s ease, box-shadow .2s ease; }
.input:focus, .textarea:focus { outline: none; border-color: var(--oc-brass); box-shadow: 0 0 0 3px rgba(168, 135, 62, .12); }
.field label { font-size: 11.5px; letter-spacing: .06em; color: var(--oc-ink-muted); }
.notice { border-radius: 10px; }
.empty { border-radius: 12px; }

/* -- Phones: lists become cards, grids keep their frozen first column -- */
@media (max-width: 720px) {
  .page-head { flex-direction: column; align-items: flex-start; }
  .page-title { font-size: clamp(2rem, 9vw, 2.6rem); }
  .page-actions { width: 100%; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .table-scroll:has(> .table--cards) { border: 0; background: transparent; overflow: visible; max-height: none; }
  .table--cards { min-width: 0 !important; }
  .table--cards thead { display: none; }
  .table--cards, .table--cards tbody, .table--cards tr, .table--cards td { display: block; width: 100%; }
  .table--cards tr { background: var(--oc-shell); border: 1px solid var(--oc-line); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; }
  .table--cards tr:hover td { background: transparent; }
  .table--cards td { border: 0; padding: 5px 0 !important; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .table--cards td[data-label]::before { content: attr(data-label); flex: 0 0 38%; text-align: left; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--oc-ink-faint); padding-top: 2px; }
  .table--cards td:empty, .table--cards td[data-label=""]::before { display: none; }
  .table--cards td:first-child { font-size: 15px; }
  .board-breakdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-filters { flex-direction: column; align-items: stretch; }
  .board-filters .input, .board-filters .btn { width: 100%; }
}

/* Phone header: brand left, the user compact on the right, the menu as a swipe strip */
@media (max-width: 900px) {
  .rail { grid-template-areas: "brand user" "nav nav"; row-gap: 6px; }
  .rail__brand-row { margin: 0; grid-area: brand; min-width: 0; }
  .rail__signature, .rail__collapse-btn { display: none; }
  .rail__foot { gap: 10px; min-width: 0; }
  .rail__user-role, .rail__lang-sep { display: none; }
  .rail__user-name { font-size: 12.5px; white-space: nowrap; max-width: 34vw; overflow: hidden; text-overflow: ellipsis; }
  .rail__lang { margin: 0; font-size: 11px; }
  .rail__lang { gap: 6px; }
  .rail__signout { font-size: 12px; }
  .rail__nav { scrollbar-width: none; padding-right: 0; }
  .kicker--logo .oc-mark { height: 13px; }
}

/* ---- The open event in the menu: one framed block, its tabs inside ---- */
.nav-event {
  margin: var(--space-m) 0 var(--space-2xs);
  padding: var(--space-xs) var(--space-2xs) var(--space-2xs) var(--space-xs);
  background: var(--oc-ivory); border: 1px solid var(--oc-line);
  border-left: 2px solid var(--oc-brass); border-radius: var(--radius-s);
}
.nav-event__head { display: flex; flex-direction: column; gap: 2px; padding: 0 var(--space-2xs) var(--space-2xs); border-bottom: 1px solid var(--oc-line); margin-bottom: var(--space-2xs); }
.nav-event__kicker { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--oc-brass-deep, var(--oc-brass)); }
.nav-event__name { font-family: var(--font-display, 'Cormorant Garamond', serif); font-weight: 400; font-size: 19px; line-height: 1.15; color: var(--oc-ink); text-decoration: none; overflow-wrap: anywhere; }
.nav-event__name:hover { color: var(--oc-brass-deep, var(--oc-brass)); }
.nav-event__meta { font-size: 11.5px; color: var(--oc-ink-faint); line-height: 1.35; }
.nav-event__switch { align-self: flex-start; margin-top: 4px; font-size: 11.5px; color: var(--oc-ink-soft); text-decoration: none; border-bottom: 1px solid var(--oc-line-strong); }
.nav-event__switch:hover { color: var(--oc-ink); border-color: var(--oc-brass); }
.nav-event__items { display: flex; flex-direction: column; gap: 1px; }
.nav-event .nav-item { font-size: 13.5px; }
@media (max-width: 900px) {
  /* On a phone: the event comes first in the strip, as a labelled group */
  .nav-event { order: -1; flex: 0 0 auto; display: flex; align-items: center; gap: var(--space-2xs); margin: 0; padding: 3px 3px 3px var(--space-xs); border-radius: var(--radius-pill); }
  .nav-event__head { flex-direction: row; align-items: baseline; gap: 8px; padding: 0 4px 0 0; border: 0; margin: 0; white-space: nowrap; }
  .nav-event__kicker, .nav-event__meta { display: none; }
  .nav-event__name { font-size: 16px; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; }
  .nav-event__switch { margin: 0; font-size: 12px; border: 0; }
  .nav-event__items { flex-direction: row; gap: var(--space-2xs); }
}
@media (max-width: 900px) { .rail__nav { -webkit-mask-image: none; mask-image: none; } } /* the bottom fade is for the tall desktop rail, not the phone strip */

/* Sign-in: the OC Special mark, white, heads the ink panel (the black PNG inverted) */
.signin__brand-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.signin__oc { height: 15px; width: auto; filter: brightness(0) invert(1); opacity: .92; animation: spitiRise .9s cubic-bezier(.2, .7, .2, 1) both; }
.signin__oc-sep { width: 1px; height: 14px; background: var(--oc-brass-soft); opacity: .6; }
@media (max-width: 900px) { .signin__oc { height: 12px; } .signin__oc-sep { height: 11px; } }
@media (prefers-reduced-motion: reduce) { .signin__oc { animation: none; } }

/* ---- Transfers, driver side (/vendor/assignments) and their follow-up at OC ---- */
.tr-list { display: flex; flex-direction: column; gap: var(--space-s); max-width: 860px; }
.tr-day { font-family: var(--font-display); font-size: 21px; color: var(--oc-ink); margin: var(--space-m) 0 0; display: flex; align-items: center; gap: 10px; }
.tr-day:first-child { margin-top: 0; }
.tr-card { background: var(--oc-ivory); border: 1px solid var(--oc-line); border-left: 3px solid var(--oc-line-strong); border-radius: var(--radius-s); padding: var(--space-s) var(--space-m); }
.tr-card--pending, .tr-card--changed { border-left-color: var(--oc-brass); }
.tr-card--issue { border-left-color: var(--status-urgent); }
.tr-card--en_route, .tr-card--on_board { border-left-color: var(--status-info, #3d6b8c); }
.tr-card--dropped { opacity: .72; }
.tr-card__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-s); align-items: center; }
.tr-card__time { font-size: 24px; line-height: 1; color: var(--oc-brass-deep); min-width: 3.2em; }
.tr-card__type { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--oc-ink-faint); }
.tr-card__guest { font-weight: var(--fw-body-med, 500); font-size: 16px; color: var(--oc-ink); overflow-wrap: anywhere; }
.tr-card__dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px var(--space-s); margin: var(--space-s) 0 0; font-size: 14px; }
.tr-card__dl dt { color: var(--oc-ink-faint); }
.tr-card__dl dd { margin: 0; overflow-wrap: anywhere; }
.tr-card__note { margin: var(--space-s) 0 0; }
.tr-card__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-s); margin-top: var(--space-s); padding-top: var(--space-s); border-top: 1px solid var(--oc-line); }
.tr-card__actions form { margin: 0; }
.tr-card__seen { font-size: 13px; color: var(--status-approved, #4f7a4a); }
.tr-seg { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.tr-seg__item { margin: 0; }
.tr-seg .is-on { box-shadow: inset 0 0 0 1px var(--oc-brass-deep); }
.tr-card__more { margin-top: var(--space-xs); border-top: 1px dashed var(--oc-line); padding-top: var(--space-xs); }
.tr-card__more > summary { cursor: pointer; font-size: 14px; color: var(--oc-ink-soft); list-style-position: inside; padding: 4px 0; }
.tr-card__more[open] > summary { margin-bottom: var(--space-xs); }
.tr-card__more--issue > summary { color: var(--status-urgent); }
.tr-follow { border-top: 1px solid var(--oc-line); padding-top: var(--space-s); }
.tr-hist { list-style: none; margin: var(--space-xs) 0 0; padding: 0; font-size: 13px; display: flex; flex-direction: column; gap: 3px; }
@media (max-width: 640px) {
  .tr-card { padding: var(--space-s); }
  .tr-card__head { grid-template-columns: auto minmax(0, 1fr); }
  .tr-card__head > .chip { grid-column: 1 / -1; justify-self: start; }
  .tr-card__time { font-size: 22px; }
  .tr-card__actions { flex-direction: column; align-items: stretch; }
  .tr-card__actions > form .btn { width: 100%; min-height: 44px; }
  .tr-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tr-seg .btn { width: 100%; min-height: 44px; padding-left: 4px; padding-right: 4px; white-space: normal; line-height: 1.15; }
  .tr-card__more .grid--3 { grid-template-columns: 1fr; }
}

/* ---- Weather strip (src/weather.js) ---- */
.wx-strip { margin: 0 0 var(--space-m); padding: var(--space-s) var(--space-m); background: var(--oc-ivory); border: 1px solid var(--oc-line); border-radius: var(--radius-s); }
.wx-strip__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: var(--space-xs); font-size: 12px; }
.wx-strip__title { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--oc-ink-soft); }
.wx-strip__days { display: flex; gap: var(--space-xs); overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.wx-day { flex: 0 0 auto; min-width: 92px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 10px; border: 1px solid var(--oc-line); border-radius: var(--radius-s); background: var(--oc-beige, #F6F1E7); font-size: 12.5px; }
.wx-day__date { color: var(--oc-ink-faint); font-size: 11.5px; white-space: nowrap; }
.wx-day__icon { font-size: 20px; line-height: 1.2; }
.wx-day__t { font-weight: 500; white-space: nowrap; }
.wx-day.is-wet { border-color: var(--status-info); }
.wx-day.is-hot { border-color: var(--status-warning); }
.tl-day__wx, .g-day-wx { font-family: var(--font-body, inherit); font-size: 13px; font-weight: 400; color: var(--oc-ink-soft); margin-left: 8px; letter-spacing: 0; text-transform: none; }
.wx-strip--empty { padding: 8px var(--space-m); font-size: 12px; }
.wx-day { position: relative; }
.wx-day.is-holiday { border-color: var(--oc-brass); }
.wx-day__hol { position: absolute; top: -8px; right: 6px; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; background: var(--oc-brass); color: var(--oc-ivory); padding: 1px 6px; border-radius: 8px; }
.wx-holiday { margin: calc(var(--space-s) * -1) 0 var(--space-m); }

/* ---- UX pass: required fields, readable gold, thumb-sized buttons, cards for partners ---- */
/* A field that must be filled says so: a discreet * after its label. */
.field:has(> input[required], > select[required], > textarea[required], > .flex [required], > div > input[required]) > label::after { content: " *"; color: var(--oc-brass-deep); font-weight: 600; }
/* Gold text on cream was too pale to read (2.8:1): text uses the deep gold (4.9:1); faint text darkened. */
:root { --oc-ink-faint: #756D61; }
/* only plain links (no class of their own): menus, tabs and cards keep their colours */
:where(a) { color: var(--oc-brass-deep); }
button[aria-busy="true"] { opacity: .65; cursor: progress; }
@media (max-width: 720px) {
  .btn { min-height: 40px; }
  .btn--sm { min-height: 36px; padding-inline: 12px; }
  .input, select.input { min-height: 40px; }
}

/* ---- Guest space (routes/guest.js) ---- */
.g-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-s); gap: 12px; }
.g-signout { font-size: 13px; color: var(--oc-ink-muted); }
.g-events { display: grid; gap: 12px; margin: var(--space-m) 0 var(--space-l); }
.g-event { display: grid; gap: 4px; padding: 18px 20px; border: 1px solid var(--oc-line); border-radius: 14px; background: var(--oc-shell); text-decoration: none; color: var(--oc-ink); }
.g-event:hover { border-color: var(--oc-brass-soft); }
.g-event__brand { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--oc-brass-deep); }
.g-event__name { font-family: var(--font-display, Georgia, serif); font-size: 22px; line-height: 1.2; }
.g-event__meta { font-size: 13px; color: var(--oc-ink-muted); }
.g-jump { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; margin-bottom: var(--space-s); position: sticky; top: 0; background: var(--oc-ivory); z-index: 3; }
.g-jump a { flex: 0 0 auto; padding: 8px 14px; border: 1px solid var(--oc-line); border-radius: 999px; font-size: 13px; text-decoration: none; color: var(--oc-ink); background: var(--oc-shell); }
.g-section { margin: var(--space-l) 0; scroll-margin-top: 64px; }
.g-section__title { font-family: var(--font-display, Georgia, serif); font-weight: 400; font-size: var(--step-2); margin: 0 0 var(--space-s); }
.g-card { padding: 14px 16px; border: 1px solid var(--oc-line); border-radius: 12px; background: var(--oc-shell); margin-bottom: 10px; }
.g-card__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.g-card__meta { font-size: 14px; color: var(--oc-ink-muted); margin-top: 4px; }
.g-card__note { font-size: 13px; color: var(--oc-ink-soft); margin: 8px 0 0; }
.g-cancel { margin-top: 10px; }
.g-cancel summary { cursor: pointer; font-size: 14px; color: var(--oc-brass-deep); min-height: 36px; display: flex; align-items: center; }
.g-label { display: block; font-size: 12px; color: var(--oc-ink-muted); margin: 8px 0 4px; }
.g-compose { margin: var(--space-m) 0; }
/* guest space: the same side margins as the greeting and the itinerary */
.g-top { padding: 10px var(--space-l) 0; margin-bottom: 0; }
.g-jump { padding-inline: var(--space-l); }
.g-section__title, .g-card, .g-section > p.muted, .g-compose, .main--guest > .flash { margin-left: var(--space-l); margin-right: var(--space-l); }
.g-events { margin-left: var(--space-l); margin-right: var(--space-l); }
.g-msg-thread { padding-inline: var(--space-l); }
.kicker--logo .kicker__rest { margin-left: 4px; white-space: nowrap; }

/* kind of event (creation / edit) */
.evtype-pick { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.evtype-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--oc-line); border-radius: 10px; background: var(--oc-shell); cursor: pointer; font-size: 14px; }
.evtype-opt:has(input:checked) { border-color: var(--oc-brass); box-shadow: 0 0 0 3px rgba(168, 135, 62, .12); }
.evtype-opt input { margin-top: 3px; }

/* a catalog hotel's rooms */
.xr-note { color: #B0413E; font-style: italic; font-size: 13px; margin: 0 0 8px; }
.xr-table td { padding: 4px 6px !important; vertical-align: middle; }
.xr-table .input { min-height: 34px; padding: 4px 8px; font-size: 13px; }
.xr-table th { white-space: nowrap; font-size: 12px; }

/* ---- Page head actions: one strong button, the rest light (all still visible) ---- */
.page-back { display: inline-block; margin-bottom: var(--space-2xs); font-size: var(--step--1); color: var(--oc-ink-muted); text-decoration: none; letter-spacing: .02em; }
.page-back:hover { color: var(--oc-brass-deep); }
.page-actions { gap: 2px var(--space-s); }
.page-actions .btn--ghost { border-color: transparent; background: transparent; padding-inline: 6px; color: var(--oc-ink-soft, var(--oc-ink)); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .15s, color .15s; }
.page-actions .btn--ghost:hover { border-color: transparent; background: transparent; color: var(--oc-ink); text-decoration-color: var(--oc-brass); }
.page-actions select.input { border-color: transparent; background-color: transparent; }
.page-actions select.input:hover, .page-actions select.input:focus { border-color: var(--oc-line); }
.page-actions .btn--quiet-danger { color: var(--oc-ink-muted); }
.page-actions .btn--quiet-danger:hover { color: var(--status-urgent); text-decoration-color: var(--status-urgent); }

/* ---- Guest space: flights as one compact card (out / back) ---- */
.g-fl table { width: 100%; border-collapse: collapse; }
.g-fl td { padding: 8px 0; border-top: 1px solid var(--oc-line); vertical-align: top; }
.g-fl tr:first-child td { border-top: 0; padding-top: 0; }
.g-fl tr:last-child td { padding-bottom: 0; }
.g-fl__dir { width: 74px; padding-right: 10px !important; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--oc-ink-muted); padding-top: 11px !important; }
.g-fl tr:first-child .g-fl__dir { padding-top: 3px !important; }

/* ---- Guest space on a computer: two columns (programme | travel, hotel, experiences, contact) ---- */
@media (min-width: 900px) {
  .main--guest:has(.g-layout) { max-width: 1180px; }
  .main--guest:has(.g-layout) .g-jump { display: none; }
  .g-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 28px; align-items: start; padding: 0 var(--space-l); }
  .g-layout .g-section__title, .g-layout .g-card, .g-layout .g-section > p.muted { margin-left: 0; margin-right: 0; }
  .g-side { position: sticky; top: 16px; }
  .g-prog { border: 1px solid var(--oc-line); border-radius: 12px; background: var(--oc-shell); padding: 6px 0 10px; }
  .g-prog .g-day-label { padding: var(--space-m) var(--space-l) var(--space-2xs); }
  .g-prog .g-item { display: grid; grid-template-columns: 64px 1fr; column-gap: 14px; padding: 12px var(--space-l); }
  .g-prog .g-item > :not(.g-item__time):not(.g-item__type) { grid-column: 2; }
  .g-prog .g-item__time { grid-row: 1 / span 4; align-self: start; padding-top: 4px; }
  .g-prog .g-item__title { font-size: var(--step-1); margin-top: 0; }
  .g-prog .g-item__type { left: 0; }
  .g-greeting { padding-left: var(--space-l); }
}

/* ---- The Spiti logo (public/spiti-logo.svg), in the colour of the text around it ---- */
.spiti-logo { display: inline-block; height: 1.12em; aspect-ratio: 401.6 / 211; background: currentColor; letter-spacing: 0; vertical-align: middle;
  -webkit-mask: url(/spiti-logo.svg?v=1) center / contain no-repeat; mask: url(/spiti-logo.svg?v=1) center / contain no-repeat; }
.rail__brand .spiti-logo { height: 1.25em; }
.g-hero__mark .spiti-logo { height: 1.25em; display: block; margin: 0 auto; color: inherit; }
.signin__brand-mark.spiti-logo { display: block; height: .95em; background: linear-gradient(180deg, #FBF6EA 0%, #EFE4CC 58%, #D9C49A 100%); -webkit-background-clip: border-box; background-clip: border-box; color: inherit; }
.signin__mark .spiti-logo { display: block; height: 1.1em; }
/* ---- Opening hours ---- */
.oh-table th, .oh-table td { padding: 4px 6px !important; text-align: center; white-space: nowrap; }
.oh-table tbody th { text-align: left; font-weight: 500; }
.oh-table .oh-meal { border-bottom: 1px solid var(--oc-line); }
.oh-table .oh-sub { font-size: 11px; color: var(--oc-ink-muted); font-weight: 400; }
.oh-in { min-height: 32px; padding: 2px 6px; font-size: 13px; width: 100%; min-width: 92px; }
.oh-table--view td { color: var(--oc-ink-soft); }

/* ---- Sign-in panel, minimal (« griffe »): the mark, then « by » + the OC Special logo ---- */
.signin__brand--min { justify-content: center; align-items: center; }
.signin__brand--min::after { display: none; }
.signin__min { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.signin__brand--min .signin__brand-mark.spiti-logo { margin: 0; height: clamp(80px, 9vw, 120px); background: #F4EFE4; filter: none; }
.signin__min-by { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif); font-style: italic; font-size: 22px; letter-spacing: 0; text-transform: none; color: rgba(244, 239, 228, .75); }
.signin__min-by .signin__oc { height: 20px; opacity: .85; }
@media (max-width: 900px) { .signin__min-by { font-size: 18px; } .signin__min-by .signin__oc { height: 16px; } }
/* sign-in: « forgot / first time » and the email-link option */
.signin__alt { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 0; font-size: 13px; }
.signin__alt a, .signin__linkbtn { color: var(--oc-brass-deep); text-decoration: none; }
.signin__linkbtn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.signin__alt a:hover, .signin__linkbtn:hover { text-decoration: underline; }

/* ==== The door (sign-in): full dark screen, centred mark, « Enter » reveals the form ==== */
.door-body { margin: 0; background: #0B0B0C; }
.door { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; overflow: hidden;
  color: #F4EFE4; background: radial-gradient(90% 70% at 50% 40%, #1C1C1F 0%, #111113 50%, #0A0A0B 100%); font-family: var(--font-body); }
.door::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.6'/></svg>"); }
.door__lang { position: absolute; top: 22px; right: 28px; z-index: 2; }
.door__lang .signin__lang a { color: rgba(244, 239, 228, .55); } .door__lang .signin__lang a.is-active { color: #F4EFE4; }
.door__intro, .door__signin { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px; }
.door__mark { display: block; height: clamp(84px, 9vw, 116px); background: #F4EFE4; }
.door__mark--small { height: 56px; }
.door__rule { width: 44px; height: 1px; background: #A8873E; margin: clamp(28px, 3vw, 40px) 0 22px; }
.door__by { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-style: italic; font-size: 21px; color: rgba(244, 239, 228, .72); }
.door__by img { height: 15px; filter: brightness(0) invert(1); opacity: .82; }
.door__enter { margin-top: clamp(64px, 9vh, 96px); font-size: 13px; letter-spacing: .32em; text-transform: uppercase; font-weight: 500; color: #F4EFE4; text-decoration: none; position: relative; padding-bottom: 12px; }
.door__enter span { margin-left: 14px; color: rgba(244, 239, 228, .7); transition: margin .25s ease; }
.door__enter::after { content: ""; position: absolute; left: calc(50% - 26px); bottom: 0; width: 26px; height: 1px; background: #A8873E; transition: width .3s ease, left .3s ease; }
.door__enter:hover span { margin-left: 20px; } .door__enter:hover::after { width: 52px; left: calc(50% - 39px); }
/* Enter → the form takes the stage */
.door__signin { display: none; width: min(380px, 100%); }
.door:has(#signin:target) .door__intro { display: none; }
.door__signin:target { display: flex; animation: doorIn .6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes doorIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.door__home { margin-bottom: 40px; }
.door__form { width: 100%; display: flex; flex-direction: column; text-align: left; }
.door__label { font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: rgba(244, 239, 228, .55); margin: 18px 0 6px; }
.door__input { background: transparent; border: 0; border-bottom: 1px solid rgba(244, 239, 228, .25); color: #F4EFE4; font: inherit; font-size: 15px; padding: 8px 0; outline: none; border-radius: 0; }
.door__input:focus { border-bottom-color: #A8873E; }
.door__input:-webkit-autofill { -webkit-text-fill-color: #F4EFE4; transition: background-color 9999s; }
.door__submit { margin-top: 34px; background: transparent; color: #F4EFE4; border: 1px solid rgba(244, 239, 228, .7); padding: 14px 0; font: inherit; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.door__submit:hover { background: #F4EFE4; color: #0B0B0C; }
.door__alt { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 18px 0 0; font-size: 12.5px; }
.door__alt a, .door__linkbtn { color: rgba(244, 239, 228, .62); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.door__alt a:hover, .door__linkbtn:hover { color: #C9AE72; }
.door__demo { width: 100%; margin-top: 30px; text-align: left; color: rgba(244, 239, 228, .7); }
.door__demo summary { color: rgba(244, 239, 228, .55); }
.door__foot { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; margin: 0; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: rgba(244, 239, 228, .35); z-index: 1; }
@media (prefers-reduced-motion: reduce) { .door__signin:target { animation: none; } }

/* door messages (check your email, links, password forms, errors) */
.door__msg { position: relative; z-index: 1; width: min(420px, 100%); padding: 24px; display: flex; flex-direction: column; align-items: center; text-align: center; animation: doorIn .6s cubic-bezier(.2, .7, .2, 1) both; }
.door__title { font-family: var(--font-display); font-weight: 300; font-size: 30px; margin: 0 0 12px; color: #F4EFE4; }
.door__text { color: rgba(244, 239, 228, .7); font-size: 14.5px; line-height: 1.7; margin: 0; }
.door__linkbox { width: 100%; margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.door__linkbox .door__submit { display: block; text-decoration: none; margin-top: 0; }
.door__linkbox code { font-size: 11px; color: rgba(244, 239, 228, .45); word-break: break-all; }
.door__back { margin: 28px 0 0; font-size: 12.5px; } .door__back a { color: rgba(244, 239, 228, .6); text-decoration: none; } .door__back a:hover { color: #C9AE72; }
.door__msg form { width: 100%; text-align: left; margin-top: 22px; display: flex; flex-direction: column; }
.door__msg .signin__label { font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: rgba(244, 239, 228, .55); margin: 16px 0 6px; }
.door__msg .input { background: transparent; border: 0; border-bottom: 1px solid rgba(244, 239, 228, .25); border-radius: 0; color: #F4EFE4; padding: 8px 0; box-shadow: none; }
.door__msg .input:focus { border-bottom-color: #A8873E; outline: none; }
.door__msg .btn.btn--primary, .door__msg .signin__submit { margin-top: 28px; background: transparent; color: #F4EFE4; border: 1px solid rgba(244, 239, 228, .7); border-radius: 0; height: auto; padding: 14px 0; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; }
.door__msg .btn.btn--primary:hover, .door__msg .signin__submit:hover { background: #F4EFE4; color: #0B0B0C; }
.door__msg .signin__secure { color: rgba(244, 239, 228, .5); font-size: 12px; margin: 10px 0 0; }
.door__msg .notice { text-align: left; }

/* door: the browser's autofill paints the field light blue (unreadable ivory text) — keep it dark */
.door__input:-webkit-autofill, .door__input:-webkit-autofill:hover, .door__input:-webkit-autofill:focus, .door__input:autofill,
.door__msg .input:-webkit-autofill, .door__msg .input:-webkit-autofill:hover, .door__msg .input:-webkit-autofill:focus, .door__msg .input:autofill {
  -webkit-text-fill-color: #F4EFE4; caret-color: #F4EFE4; -webkit-box-shadow: 0 0 0 1000px #2c261e inset; box-shadow: 0 0 0 1000px #2c261e inset; background-color: #2c261e !important; }

/* the event's « Expériences » / « Hôtels » tabs: section title and the import list */
.ec-section-title { font-family: var(--font-display); font-weight: 400; font-size: var(--step-2, 24px); margin: 0 0 var(--space-s); }
.ec-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2px var(--space-m); }
.ec-pick { display: flex; align-items: baseline; gap: var(--space-2xs); padding: 7px 4px; border-bottom: 1px solid var(--oc-line, rgba(0,0,0,.08)); cursor: pointer; flex-wrap: wrap; }
.ec-pick input { flex: none; transform: translateY(1px); }
.ec-pick__name { font-weight: 500; }
.ec-pick__meta { font-size: var(--step--1); flex-basis: 100%; padding-left: 22px; }
.ec-pick:hover { background: rgba(168, 135, 62, .06); }

/* line icons (src/icons.js): sit on the text line, in its colour */
.ico { display: inline-block; vertical-align: -0.125em; flex: none; }
.wx-day__icon .ico { width: 1.35em; height: 1.35em; }

/* phone width: nothing wider than the screen (actions wrap, long words break, side-scrolling strips stay inside) */
.wx-wrap, .wx-strip { min-width: 0; max-width: 100%; }
.zm-layout > * { min-width: 0; }
main p, main dd, main li, main .muted { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .page-actions { width: 100%; max-width: 100%; }
  .page-actions .btn { max-width: 100%; white-space: normal; text-align: center; }
}
.zm-inbox { grid-template-columns: minmax(0, 1fr); }
.zm-conv { min-width: 0; }
@media (max-width: 720px) {
  .table--cards tr, .table--cards td { box-sizing: border-box; }
  .table--cards td > * { min-width: 0; overflow-wrap: anywhere; }
}
@media (max-width: 720px) { .table-scroll:has(> .table--cards) { overflow-x: clip; } }

/* board: still to handle on a day gone by */
.board-stat--late { border-left-color: var(--status-declined); }
.board-stat--late .board-stat__n { color: var(--status-declined); }

/* Users & access: a deactivated account reads as such */
tr.is-inactive td { opacity: .55; }
tr.is-inactive td:first-child, tr.is-inactive td.row-actions { opacity: 1; }

/* messages: unread conversations stand out; « start a conversation » folded */
.zm-conv.is-unread { border-color: var(--oc-brass, #A8873E); background: var(--oc-ivory, #FFFDF8); }
.zm-start summary { cursor: pointer; color: var(--oc-ink-soft); font-size: var(--step--1); }

/* board pages + the toast that says a change was saved */
.pager { display: flex; align-items: center; justify-content: center; gap: var(--space-s); margin: var(--space-m) 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1000; max-width: min(560px, calc(100vw - 32px));
  background: var(--oc-ink, #211D18); color: var(--oc-ivory, #FFFDF8); padding: 12px 18px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.18); font-size: 14px; transition: opacity .5s; }
.toast--warn { background: var(--status-warning, #C07A2C); }
.toast.is-gone { opacity: 0; }

/* « Aujourd'hui » */
.td-tiles { margin-bottom: var(--space-m); }
.td-tile--urgent { border-left-color: var(--status-declined); } .td-tile--urgent .board-stat__n { color: var(--status-declined); }
.td-tile--warning { border-left-color: var(--status-warning); }
.td-card { margin-bottom: var(--space-s); }
.td-lines { list-style: none; margin: var(--space-xs) 0 0; padding: 0; }
.td-line { padding: 8px 0 8px 12px; border-top: 1px solid var(--oc-line); border-left: 3px solid transparent; }
.td-line:first-child { border-top: 0; }
.td-line a { color: inherit; text-decoration: none; } .td-line a:hover { text-decoration: underline; }
.td-line--urgent { border-left-color: var(--status-declined); font-weight: 600; }
.td-line--warning { border-left-color: var(--status-warning); }
.td-line--info { border-left-color: var(--oc-line-strong, #CFC3AC); }

/* the hotel's « confirm the selection » bar, kept in view */
.h-bulkbar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s); padding: 10px 14px; margin: var(--space-s) 0;
  background: var(--oc-ivory, #FFFDF8); border: 1px solid var(--oc-brass, #A8873E); border-radius: 10px; font-size: var(--step--1); }
.h-bulkbar span { flex: 1 1 260px; }
.h-pick { font-size: var(--step--1); white-space: nowrap; }

/* driver company: one chip per day */
.tr-days { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--space-s) 0; }
.tr-daychip { text-decoration: none; padding: 6px 12px; font-size: 13px; }
.tr-daychip.is-active { background: var(--oc-ink, #211D18); color: var(--oc-ivory, #FFFDF8); border-color: var(--oc-ink, #211D18); }
.tr-daychip__todo { color: var(--status-warning); font-weight: 600; }
.tr-daychip.is-active .tr-daychip__todo { color: #F3C98B; }

/* restaurant: what changed, and a recent cancellation struck through */
.vd-changed { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-bottom: 6px; }
.vd-changed .vd-sub { color: var(--status-warning); font-weight: 600; }
tr.vd-cancelled td { text-decoration: line-through; text-decoration-color: var(--status-declined); }
tr.vd-cancelled td.vd-answer-cell { text-decoration: none; }

/* guest: « Aujourd'hui » on top */
.g-today { margin: 0 0 var(--space-l); padding: 18px 20px; border-radius: 14px; background: var(--oc-ink, #211D18); color: var(--oc-ivory, #FFFDF8); }
.g-today__title { font-family: var(--font-display); font-weight: 400; font-size: 24px; margin: 0 0 10px; color: inherit; }
.g-today__item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.12); }
.g-today__item:first-of-type { border-top: 0; }
.g-today__time { font-variant-numeric: tabular-nums; color: #E2C98F; min-width: 54px; }
.g-today__what { flex: 1 1 200px; }
.g-today .g-chip-action { color: inherit; border-color: rgba(255,255,255,.35); }
.g-today__car, .g-today__hotel { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.g-past summary { cursor: pointer; color: var(--oc-ink-soft); margin: var(--space-m) 0 var(--space-s); }

/* weather: one line, unfolds on a click */
.wx-fold > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; }
.wx-fold > summary::-webkit-details-marker { display: none; }
.wx-fold__line { font-size: 13px; }
.wx-fold__more { margin-left: auto; font-size: 12px; text-decoration: underline; }
.wx-fold[open] .wx-fold__more { display: none; }
.wx-fold__note { font-size: 12px; margin: 6px 0; }

.mf-paste summary { cursor: pointer; }
.mf-paste textarea { width: 100%; }

/* « Mise en route » of a programme */
.setup-card summary { cursor: pointer; }
.setup-steps { list-style: none; margin: var(--space-s) 0 0; padding: 0; counter-reset: st; }
.setup-steps li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px 12px; padding: 9px 0; border-top: 1px solid var(--oc-line); }
@media (max-width: 720px) { .setup-steps li { grid-template-columns: 22px 1fr; } .setup-steps li > a, .setup-steps li > form { grid-column: 2; justify-self: start; } }
.setup-steps li:first-child { border-top: 0; }
.setup-mark { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--oc-line-strong, #CFC3AC); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex: none; }
.setup-steps li.is-ok .setup-mark { background: var(--status-approved, #4F7A55); border-color: var(--status-approved, #4F7A55); color: #fff; }
.setup-steps li.is-ok > span:nth-child(2) { color: var(--oc-ink-soft); }

/* Phones · the bottom bar for OC, folded filters, the status first in a card */
.tabbar, .filters-toggle { display: none; }
@media (max-width: 720px) {
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--oc-shell, #FBF8F2); border-top: 1px solid var(--oc-line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar__item { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--oc-ink-soft); text-decoration: none; padding: 4px 2px; border-radius: 10px; }
  .tabbar__item .ico { font-size: 21px; }
  .tabbar__item.is-active { color: var(--oc-ink); font-weight: 600; background: var(--oc-line-soft, rgba(0,0,0,.04)); }
  .shell:has(.tabbar) .main { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .filters-toggle { display: inline-flex; margin-bottom: var(--space-2xs); }
  .board-filters.is-folded { display: none; }
  .table--cards tr { display: flex; flex-direction: column; }
  .table--cards td:has(> .chip), .table--cards td:has(> select.dr-status), .table--cards td:has(> form > select.dr-status) { order: -1; }
  .table--cards td:has(> select.dr-status) { flex-wrap: wrap; align-items: center; }
  .table--cards td:has(> select.dr-status)::before { flex-basis: 100%; }
  .table--cards td > select.dr-status { flex: 1 1 auto; min-width: 0; max-width: 100%; }
}
@media print { .tabbar, .filters-toggle { display: none !important; } }

/* An event's menu: an entry holding a few pages opens them under itself */
.nav-group .nav-sub { display: none; }
.nav-group.is-open .nav-sub { display: block; margin: 2px 0 6px 12px; padding-left: 8px; border-left: 1px solid var(--oc-line); }
.nav-group.is-open > .nav-item.is-active { background: transparent; font-weight: 600; }
.nav-sub .nav-item { font-size: .95em; padding-block: 5px; }
@media (max-width: 900px) { .nav-group, .nav-group .nav-sub, .nav-group.is-open .nav-sub { display: contents; } .nav-group .nav-sub .nav-item { display: none; } .nav-group.is-open .nav-sub .nav-item { display: inline-flex; } }

.dr-venue-say.is-ok { color: var(--status-approved, #4F7A55); }
.dr-venue-say.is-off { color: var(--status-warning-ink, #8A5A12); }
.dr-merge { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dr-merge .input { width: auto; max-width: 260px; height: var(--control-h-sm, 34px); padding-block: 2px; }

/* « Voir comme »: the bar on top of every page while viewing as someone */
.viewas-bar { position: sticky; top: 0; z-index: 70; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  margin: 0 0 var(--space-s); padding: 10px 14px; border-radius: 10px; background: #2B2622; color: #F6F1E7; font-size: 14px; }
.viewas-bar form { margin: 0; }
.viewas-bar__back { background: #F6F1E7; color: #2B2622; border-color: transparent; }
.viewas-switch { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
