/* Owner app. Built for a basic phone user at a sunny jetty:
   big text, big targets (52px+), high contrast, one hand.
   Same brand as the public site (Bricolage, the red anchor, pill buttons),
   with a plain layout: no photos, badges or tilted elements. */

@font-face {
  font-family: "Bricolage Grotesque Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url("fonts/bricolage-grotesque-latin-ext-standard-normal.cc70a62e2cd3.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url("fonts/bricolage-grotesque-latin-standard-normal.477b564b86e0.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand: the same values as site/src/styles/global.css */
  --red: #c8202f;
  --red-dark: #9e1824;
  --sea: #0b5e95;
  --sea-deep: #08446c;
  --sea-tint: #e3f1fa;
  --navy: #0b2545;
  --sand: #f6ebd6;
  --sun: #ffc845;
  --foam: #f7fbfd;
  --white: #ffffff;
  --muted: #4a5a6e;
  --line: #d5dde6;

  /* Status */
  --warn-bg: #fff4d6;
  --warn-ink: #6b4a00;
  --good-bg: #e3f6ea;
  --good-ink: #135c31;
  --late-bg: #fdecec;

  --font: "Bricolage Grotesque Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 4px 14px rgba(11, 37, 69, 0.08);
  --tap: 52px;
  --tabbar: 68px;
  font-size: 18px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: var(--foam);
  line-height: 1.4;
  padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom) + 16px);
}

/* The hidden attribute always wins, even over classes that set display. */
[hidden] { display: none !important; }

a { color: var(--sea); text-underline-offset: 3px; }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

/* --- Top bar ---------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--red);
  color: var(--white);
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
}
.topbar .anchor { flex: none; width: 34px; height: 34px; }
.topbar-text { min-width: 0; }
.topbar h1 { margin: 0; font-size: 1.4rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.topbar p { margin: 2px 0 0; font-size: 0.9rem; font-weight: 600; }

main { padding: 16px; max-width: 640px; margin: 0 auto; }

h2 {
  font-size: 0.8rem;
  font-weight: 800;
  margin: 28px 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
h2:first-child { margin-top: 4px; }

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 12px;
}
.card.late { border: 2px solid var(--red); background: var(--late-bg); }
.card.done { background: var(--sea-tint); border-color: transparent; box-shadow: none; }

.card-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.card-title { font-size: 1.2rem; font-weight: 800; margin: 0; letter-spacing: -0.01em; }
.card-meta { color: var(--muted); margin: 4px 0 0; }
.big-time { font-size: 1.2rem; font-weight: 800; white-space: nowrap; }
.late .big-time { color: var(--red-dark); }

.message {
  background: var(--foam);
  border-left: 4px solid var(--sea);
  padding: 8px 12px;
  margin: 10px 0 0;
  border-radius: 6px;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 24px 12px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  margin: 0 0 12px;
}

/* --- Flags ------------------------------------------------------------ */

.flags { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.flag { font-size: 0.85rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.flag.warn { background: var(--warn-bg); color: var(--warn-ink); }
.flag.good { background: var(--good-bg); color: var(--good-ink); }
.flag.warn::before { content: "! "; }
.flag.good::before { content: "\2605 "; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 20px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sea); color: var(--white); }
.btn-red { background: var(--red); color: var(--white); box-shadow: 0 4px 0 var(--red-dark); }
.btn-ghost { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn-danger { background: var(--white); color: var(--red-dark); border-color: var(--red-dark); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: progress; }

.actions { display: flex; gap: 8px; margin-top: 14px; }
.actions > * { flex: 1; }
.form-end { margin-top: 28px; }

.fab {
  position: fixed;
  right: 16px;
  bottom: calc(var(--tabbar) + env(safe-area-inset-bottom) + 20px);
  z-index: 20;
  min-height: 60px;
  padding: 0 24px;
  font-size: 1.1rem;
  box-shadow: 0 4px 0 var(--red-dark), 0 8px 20px rgba(11, 37, 69, 0.25);
}

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

label, .label { display: block; font-weight: 800; margin: 18px 0 6px; }
input[type="text"], input[type="time"], input[type="number"], input[type="tel"], select, textarea,
input[type="password"], input[type="email"], input[type="date"], input[type="search"] {
  width: 100%;
  min-height: var(--tap);
  font: inherit;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
}
input:focus, select:focus, textarea:focus { border-color: var(--sea); outline: none; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--red); }

.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-row label {
  margin: 0;
  flex: 1 1 30%;
  min-height: var(--tap);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  cursor: pointer;
}
.choice-row input { position: absolute; opacity: 0; pointer-events: none; }
.choice-row label:has(input:checked) { border-color: var(--sea); background: var(--sea-tint); color: var(--sea-deep); }
.choice-row label:has(input:focus-visible) { outline: 3px solid var(--sun); }

.check { display: flex; gap: 12px; align-items: center; font-weight: 700; min-height: var(--tap); }
.check input { width: 28px; height: 28px; accent-color: var(--sea); }

/* Joined stepper, as on the site's booking form. */
.stepper {
  display: flex;
  align-items: stretch;
  min-height: 56px;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.stepper:focus-within { border-color: var(--sea); }
.stepper input { border: 0; border-radius: 0; text-align: center; font-size: 1.3rem; font-weight: 800; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper .step-btn {
  flex: none;
  width: 64px;
  border: 0;
  background: var(--sea-tint);
  color: var(--sea-deep);
  font: inherit;
  font-size: 1.6rem;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}
.stepper .step-btn:disabled { color: #8a97a8; background: var(--foam); cursor: default; }

.errorlist { color: var(--red-dark); margin: 6px 0 0; padding: 0; list-style: none; font-weight: 700; }
.hint { color: var(--muted); font-size: 0.9rem; margin: 6px 0 0; }
.callout { background: var(--warn-bg); color: var(--warn-ink); border-radius: var(--radius-sm); padding: 10px 14px; font-weight: 700; margin: 8px 0 0; }


/* --- Toasts and messages ---------------------------------------------- */

.toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(var(--tabbar) + env(safe-area-inset-bottom) + 96px);
  z-index: 30;
  max-width: 600px;
  margin: 0 auto;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 8px 8px 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(11, 37, 69, 0.3);
  animation: toast-in 0.2s ease-out;
}
.toast > span { flex: 1; }
.toast .btn { min-height: 44px; padding: 0 16px; background: transparent; color: var(--sun); border-color: var(--sun); }
.toast .toast-close { min-width: 44px; padding: 0; border-color: transparent; color: var(--white); }
.toast.error { background: var(--red-dark); }
.toast.error .toast-close { color: var(--white); }

.notice { background: var(--good-bg); color: var(--good-ink); border-radius: var(--radius-sm); padding: 12px 14px; font-weight: 700; margin: 0 0 12px; }
.notice.warning { background: var(--warn-bg); color: var(--warn-ink); }

.offline {
  display: none;
  background: var(--warn-bg);
  color: var(--warn-ink);
  text-align: center;
  font-weight: 800;
  padding: 8px;
}
body.is-offline .offline { display: block; }

@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* --- Tab bar ---------------------------------------------------------- */

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 14px rgba(11, 37, 69, 0.06);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  position: relative;
  min-height: var(--tabbar);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
}
.tabbar svg { width: 26px; height: 26px; }
.tabbar a[aria-current="page"] { color: var(--red); font-weight: 800; }
.tabbar a[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30%;
  right: 30%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--red);
}
.tabbar .badge {
  position: absolute;
  top: 8px;
  left: calc(50% + 6px);
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* --- Blocks: one clearly separated section of a screen --------------- */

/* Room under the last block so the Walk-in button never covers it. */
body:has(.fab) main { padding-bottom: 96px; }

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

.block {
  margin-top: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.block:first-child { margin-top: 0; }
.block-out { border-top-color: var(--sea); }
.block-next { border-top-color: var(--sun); }
.block-back { border-top-color: var(--line); }
.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--foam);
  border-bottom: 1px solid var(--line);
}
.block-head h2 { margin: 0; font-size: 1.1rem; font-weight: 800; text-transform: none; letter-spacing: -0.01em; color: var(--navy); }
.count-pill {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
}
.block-empty { margin: 0; padding: 16px 14px; color: var(--muted); }
.block .callout { margin: 12px 14px 0; }

.fold summary {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
  font-weight: 800;
  color: var(--sea);
  cursor: pointer;
}
.fold[open] summary { border-bottom: 1px solid var(--line); }

/* --- Booking rows: the same on every screen ---------------------------- */

.rows { list-style: none; margin: 0; padding: 0; }
.row { padding: 10px 14px; }
.row + .row { border-top: 1px solid var(--line); }
.row.is-late { background: var(--late-bg); box-shadow: inset 4px 0 0 var(--red); }
.row-line { display: flex; align-items: center; gap: 8px; }
.row-link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  color: var(--navy);
  text-decoration: none;
}
.row-time { flex: none; width: 4.8rem; display: grid; font-weight: 800; line-height: 1.2; }
.row-time small { font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.is-late .row-time small { color: var(--red-dark); }
.row-who { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.row-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-who span { color: var(--muted); font-size: 0.9rem; }
.row-action { width: 100%; margin-top: 8px; }

.chip { flex: none; font-size: 0.8rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--foam); color: var(--muted); border: 1px solid var(--line); }
.chip-requested { background: var(--warn-bg); color: var(--warn-ink); border-color: transparent; }
.chip-approved { background: var(--sea-tint); color: var(--sea-deep); border-color: transparent; }
.chip-out { background: var(--sea); color: var(--white); border-color: transparent; }
.chip-late { background: var(--red); color: var(--white); }
.chip-returned { background: var(--good-bg); color: var(--good-ink); border-color: transparent; }
.row:has(.chip-cancelled, .chip-no_show) .row-who strong { text-decoration: line-through; color: var(--muted); }

/* --- Icon buttons ----------------------------------------------------- */

.icon { width: 22px; height: 22px; flex: none; }
.icon-btn {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--sea-tint);
  color: var(--sea-deep);
  cursor: pointer;
  touch-action: manipulation;
}
.icon-btn:active { transform: translateY(1px); }

/* --- Free boats ------------------------------------------------------- */

.free-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 0 14px 0 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}
.free-line strong { font-size: 1.35rem; font-weight: 800; }
.free-line-more { display: inline-flex; align-items: center; gap: 2px; color: var(--sea); font-weight: 800; font-size: 0.9rem; }
.free-line + .block { margin-top: 20px; }
.free-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.free-list li { padding: 12px; border-radius: var(--radius-sm); background: var(--good-bg); color: var(--good-ink); font-weight: 800; }

/* --- Bottom sheet ----------------------------------------------------- */

.sheet {
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  max-width: 640px;
  max-height: none;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.sheet::backdrop { background: rgba(11, 37, 69, 0.5); }
.sheet-inner {
  max-height: 88vh;
  max-height: 88dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 16px calc(20px + env(safe-area-inset-bottom));
  background: var(--white);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -8px 30px rgba(11, 37, 69, 0.25);
  transition: transform 0.15s ease;
}
.sheet[open] .sheet-inner { animation: sheet-up 0.22s ease-out; }
@keyframes sheet-up { from { transform: translateY(40%); opacity: 0.4; } to { transform: none; opacity: 1; } }
.sheet-bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  margin: 0 -16px;
  background: var(--white);
}
.sheet-grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); }
.sheet-close { position: absolute; right: 8px; top: 2px; width: 44px; height: 44px; background: var(--foam); color: var(--navy); }
.sheet-error { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--late-bg); color: var(--red-dark); font-weight: 700; }

.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sheet-title { min-width: 0; }
.sheet-title h2 { margin: 0; font-size: 1.5rem; font-weight: 800; text-transform: none; letter-spacing: -0.02em; color: var(--navy); line-height: 1.1; }
.sheet-title p { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; }
.icon-row { display: flex; gap: 8px; }
.sheet-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 8px 8px 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--good-bg);
  color: var(--good-ink);
  font-weight: 700;
}
.sheet-notice + .btn { margin-bottom: 4px; }
.btn-small { min-height: 44px; padding: 0 16px; }
.btn .icon { width: 20px; height: 20px; }
.sheet-actions { margin-top: 18px; }
.sheet-actions:empty { display: none; }
.sheet-actions label { margin-top: 0; }
.booking-sheet .facts { margin-top: 14px; }

/* --- Calendar: a month grid, then the chosen day ------------------------ */

.month-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.month-title { margin: 0; font-size: 1.35rem; font-weight: 800; text-transform: none; letter-spacing: -0.02em; color: var(--navy); }
.month { width: 100%; margin-top: 8px; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.month th { padding: 4px 0; font-size: 0.8rem; font-weight: 800; color: var(--muted); }
.month abbr { text-decoration: none; }
.month td { padding: 0; }
.day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 54px;
  padding-top: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}
.day.other { background: transparent; border-color: transparent; color: var(--muted); font-weight: 600; }
.day.is-closed { border-style: dashed; background: var(--foam); }
.day.is-today { border: 2px solid var(--red); }
.day.is-today .day-num { color: var(--red); }
.day.is-selected { background: var(--sea); border-color: var(--sea); color: var(--white); }
.day.is-selected .day-num { color: var(--white); }
.day-meta { display: flex; align-items: center; gap: 3px; min-height: 18px; }
.day-hires {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--sea-tint);
  color: var(--sea-deep);
  font-size: 0.72rem;
  font-weight: 800;
}
.is-selected .day-hires { background: var(--white); }
.req-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); border: 1px solid var(--warn-ink); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 0.85rem; color: var(--muted); }
.legend .req-dot { margin-left: 8px; }
.cal-today { margin: 8px 0 0; text-align: center; }
.cal-today a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; }

/* --- More: menu, search, plain pages ---------------------------------- */

textarea { resize: vertical; line-height: 1.4; }
input[type="file"] { width: 100%; padding: 10px 0; font: inherit; }

.menu-list { display: grid; gap: 10px; }
.menu-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding: 0 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--navy);
  text-decoration: none;
}
.menu-text { display: grid; line-height: 1.25; }
.menu-text strong { font-size: 1.15rem; font-weight: 800; }
.menu-text span { color: var(--muted); font-size: 0.9rem; }
.menu-extra { margin: 20px 0 12px; text-align: center; }
.menu-extra a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

.search { display: flex; gap: 8px; }
.search input { flex: 1; min-width: 0; }
.search .btn { flex: none; }
.search + .block, .cal-today + .block { margin-top: 16px; }

.pad { padding: 14px; margin: 0; }
.block > .facts.pad { gap: 12px; }
.block > .pad:last-child { padding-top: 0; }
.row-link .icon { color: var(--muted); }
.row-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.row-flags .flag, ul.flags.pad .flag { font-size: 0.8rem; }
ul.flags.pad { margin: 0; }
/* File picker */
.upload { margin: 0; }
.upload-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.upload-list:empty { display: none; }
.up-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 64px;
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-sm);
}
.up-item.is-uploading { border-color: var(--sea); background: var(--sea-tint); }
.up-item.is-done { border-color: var(--good-ink); background: var(--good-bg); animation: up-pop 0.35s ease-out; }
.up-item.is-error { border-color: var(--red-dark); background: var(--late-bg); }
.up-item.is-removed { opacity: 0.6; border-style: dashed; }
.up-item.is-removed .up-name { text-decoration: line-through; }
.upload:not(.is-multiple).has-new .up-item.is-saved { display: none; }
.up-thumb {
  flex: none; position: relative; width: 44px; height: 44px; border-radius: 10px; overflow: hidden;
  display: grid; place-items: center; background: var(--foam); color: var(--sea);
}
.up-thumb img { width: 100%; height: 100%; object-fit: cover; }
.up-thumb img[hidden], .up-thumb [hidden] { display: none; }
.up-ext { font-size: 0.8rem; font-weight: 800; color: var(--red-dark); }
.up-item.is-done .up-thumb::after {
  content: "\2713"; position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; line-height: 18px;
  text-align: center; font-size: 0.8rem; font-weight: 800; color: var(--white); background: var(--good-ink);
  border-radius: 10px 0 10px 0;
}
.up-info { flex: 1; min-width: 0; display: grid; gap: 2px; line-height: 1.25; }
.up-name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; }
.up-status { font-size: 0.9rem; color: var(--muted); }
.up-item.is-done .up-status { color: var(--good-ink); font-weight: 700; }
.up-item.is-error .up-status { color: var(--red-dark); font-weight: 700; }
.up-bar { display: block; height: 8px; border-radius: 4px; background: var(--white); overflow: hidden; margin-top: 4px; }
.up-bar[hidden] { display: none; }
.up-fill { display: block; height: 100%; width: 0; background: var(--sea); border-radius: 4px; transition: width 0.15s linear; }
.up-act {
  flex: none; min-height: 44px; min-width: 44px; padding: 0 12px; border: 0; border-radius: 22px;
  background: transparent; color: var(--sea-deep); font: inherit; font-weight: 800; cursor: pointer;
}
.up-act[hidden] { display: none; }
.up-x { display: grid; place-items: center; padding: 0; color: var(--muted); }
.upload-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.up-btn { position: relative; flex: 1 1 140px; cursor: pointer; }
.up-btn:has(.up-native:focus-visible) { outline: 3px solid var(--sun); outline-offset: 2px; }
.up-native { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; font-size: 0; }
.row-clip { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; }
.row-clip .icon { width: 14px; height: 14px; }
@keyframes up-pop { 0% { transform: scale(0.97); } 60% { transform: scale(1.015); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .up-item.is-done { animation: none; } .up-fill { transition: none; } }

.matches { list-style: none; margin: 6px 0 0; padding: 0; border-radius: var(--radius-sm); overflow: hidden; }
.matches:empty { display: none; }
.matches li + li { border-top: 1px solid var(--line); }
.match {
  display: grid; width: 100%; text-align: left; min-height: 52px; padding: 8px 14px;
  background: var(--sea-tint); border: 0; font: inherit; color: var(--navy); cursor: pointer;
}
.match span { color: var(--muted); font-size: 0.9rem; }
.hours-times { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.delete-form { margin-top: 24px; }
.row > form { margin-left: auto; }
.row:has(> form) { display: flex; align-items: center; gap: 12px; }

/* --- Booking page (direct link) --------------------------------------- */

.back-link { margin: 0 0 8px; }
.back-link a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 800; text-decoration: none; }
.facts { margin: 0; display: grid; gap: 10px; }
.facts div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 8px; }
.facts dt { color: var(--muted); font-weight: 700; }
.facts dd { margin: 0; font-weight: 600; }

/* --- Login ------------------------------------------------------------ */

.login-page { padding-bottom: 0; }
.login { max-width: 420px; margin: 0 auto; padding: 48px 20px 32px; }
.login .anchor { width: 72px; height: 72px; color: var(--red); }
.login h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin: 16px 0 4px; }
.login .kicker { margin: 0; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--red); }
.login .errorlist { margin-top: 20px; }
.login .btn { margin-top: 28px; }
