/* Promark · admin. Light canvas, white panels, blue for selection, green for "go",
   coral for danger. Phone-first: bottom tab bar under 800px, table rows become
   compact cards under 720px, and a whole row is one tap target. */
:root {
  --canvas: #eef1f4; --panel: #fff; --panel-2: #f7f9fb;
  --ink: #2f3a42; --ink-2: #4c5557; --muted: #7d878f; --faint: #b3bcc3; --line: #e3e8ec; --line-2: #d2dae1;
  --blue: #3d74aa; --blue-dark: #2d5c8a; --blue-soft: #e8eff7; --blue-text: #2a5684;
  --green: #8bb224; --green-soft: #eef5d9; --green-text: #4b5f0f; --mint-soft: #e3f6f4;
  --amber: #f5a623; --amber-soft: #fff4de; --amber-text: #7a4e00; --coral: #e85d31; --coral-soft: #fdeae3; --coral-text: #9a3515;
  --r: 10px; --shadow: 0 1px 2px rgba(31,41,51,.06), 0 1px 1px rgba(31,41,51,.04);
}
html { -webkit-text-size-adjust: 100%; } [id] { scroll-margin-top: 64px; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Noto Sans SC", Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.45; color: var(--ink); background: var(--canvas); padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
@media (min-width: 800px) { body { padding-bottom: 0; } }
a { color: var(--blue); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 22px; font-weight: 400; margin: 0; letter-spacing: -.01em; color: var(--ink-2); line-height: 1.25; } h1 b { font-weight: 800; color: var(--ink); }
h2 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 10px; letter-spacing: -.005em; }
h3 { font-size: 16px; font-weight: 700; margin: 0; }
p { margin: 0 0 8px; } .muted { color: var(--muted); } small { font-size: 13px; } .mono { font-variant-numeric: tabular-nums; }
main { max-width: 1120px; margin: 0 auto; padding: 14px 12px 40px; } @media (min-width: 800px) { main { padding: 24px 24px 64px; } }

/* top bar + tabs */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--panel); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.topbar .in { max-width: 1120px; margin: 0 auto; padding: 0 12px; display: flex; align-items: center; gap: 6px; min-height: 52px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 800; font-size: 17px; margin-right: 8px; } .brand:hover { text-decoration: none; }
.brand .mark { width: 28px; height: 28px; border-radius: 7px; background: var(--blue); display: grid; place-items: center; flex: none; } .brand .mark svg { width: 18px; height: 18px; }
.tabs { display: none; align-self: stretch; }
.tabs a { display: inline-flex; align-items: center; padding: 0 16px; font-size: 15px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); text-decoration: none; background: var(--panel-2); } .tabs a.on { color: var(--blue-text); border-bottom-color: var(--blue); }
.topbar .sp { flex: 1; } .topbar .btn.primary { display: none; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-text); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; text-decoration: none; }
.me { display: flex; align-items: center; gap: 10px; min-height: 40px; } .me .n { display: none; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.me form, .me .linkish { display: none; }
.me .linkish { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
@media (min-width: 800px) { .tabs { display: flex; } .topbar .btn.primary { display: inline-flex; } .me .n, .me form { display: inline; } .me .linkish { display: inline; } .topbar .in { padding: 0 24px; min-height: 60px; gap: 8px; } }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--panel); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; }
.tabbar a svg { width: 22px; height: 22px; } .tabbar a.on { color: var(--blue); }
.tabbar a.plus span.ic { width: 42px; height: 42px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 26px; line-height: 1; box-shadow: 0 4px 12px rgba(61,116,170,.35); }
@media (min-width: 800px) { .tabbar { display: none; } }

/* page head, flash, panels, stats, pills */
.pagehead { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pagehead .grow { flex: 1 1 220px; min-width: 0; } .pagehead .sub { color: var(--muted); margin: 2px 0 0; font-size: 14px; } .pagehead .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 2px; } .back::before { content: "‹"; font-size: 20px; line-height: 1; }
.flash { position: sticky; top: 52px; z-index: 15; max-width: 1120px; margin: 10px auto 0; padding: 0 12px; } .flash .msg { box-shadow: 0 6px 20px rgba(31,41,51,.12); } @media (min-width: 800px) { .flash { top: 60px; padding: 0 24px; } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 12px; }
.panel.tight { padding: 0; overflow: hidden; } .panel.tight > h2, .panel.tight > .ph { padding: 12px 16px 0; }
.panel.danger { border-color: #f2bfae; } .panel.danger h2 { color: var(--coral-text); }
.ph { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; } .ph h2 { margin: 0; } .ph .sp { flex: 1; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-text); font-size: 12px; font-weight: 800; vertical-align: 1px; } .count.warn { background: var(--amber-soft); color: var(--amber-text); }
.stack { display: grid; gap: 12px; align-content: start; } .trip-preview { margin-top: 12px; } .trip-preview .box { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--ctl-r); padding: 10px 12px; margin-bottom: 10px; } .trip-preview .box ul { margin: 4px 0 0; padding-left: 18px; } .trip-preview .msg { margin-bottom: 10px; } .panel.editing { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; } .tag.auto { background: var(--blue-soft); color: var(--blue-text); } .tag.hand { background: #f1ecfa; color: #5b3d8f; }
.lines .why, .auto-row .why { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.money-edit .frow { display: block; padding: 10px 0; } .money-edit .frow > .lbl { display: block; margin-bottom: 6px; }
.money-edit .lrow { display: grid; grid-template-columns: 34px minmax(0, 1fr) 110px; grid-template-areas: "minus kind amount" "minus what what"; gap: 6px 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.money-edit .lrow .minus, .money-edit .lrow .minus-gap { grid-area: minus; } .money-edit .lrow .select { grid-area: kind; } .money-edit .lrow input[name$="[description]"] { grid-area: what; } .money-edit .lrow input[name$="[amount_rm]"] { grid-area: amount; }
.money-edit .lrow:has(.minus input:checked) { opacity: .45; } .money-edit .lrow:has(.minus input:checked) input[type=text] { text-decoration: line-through; }
.minus { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 800; line-height: 1; cursor: pointer; justify-self: center; } .minus input { position: absolute; opacity: 0; width: 1px; height: 1px; } .minus:has(input:checked) { background: var(--muted); } .minus:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--ctl-focus-ring); }
.addrow { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 4px; background: none; border: 0; font: inherit; font-weight: 700; color: var(--blue-text); cursor: pointer; } .add-plus { width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 800; line-height: 1; }
.auto-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px dashed var(--line); } .auto-row .num { white-space: nowrap; display: flex; gap: 10px; align-items: center; } .inline-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.effects { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--ctl-r); padding: 10px 12px; margin: 10px 0; font-size: 14px; } .effects p { margin: 0; } details.when-paid { margin-top: 8px; } details.when-paid summary { cursor: pointer; }
.msg.flags ul, .look-list { list-style: none; margin: 6px 0 0; padding: 0; } .flag-row { margin: 6px 0; } .flag-line { display: flex; gap: 10px; align-items: center; justify-content: space-between; } .flag-line > span { flex: 1 1 auto; min-width: 0; } .flag-line .btn { flex: none; } .fine-form { margin-top: 6px; }
.look-list { color: var(--coral-text); }
.sub.waited.late { color: var(--coral-text); font-weight: 600; }
.ask { padding: 8px 0; border-bottom: 1px solid var(--line); } .ask p { margin: 0 0 6px; } .ask .why { display: block; font-size: 13px; color: var(--muted); }
.list-edit .lrow { display: grid; gap: 6px 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.list-edit .crew-row-edit { grid-template-columns: 34px minmax(0, 1.4fr) minmax(0, 1fr) 110px; } .list-edit .names-row-edit { grid-template-columns: 34px minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 560px) { .list-edit .crew-row-edit { grid-template-columns: 34px minmax(0, 1fr) 100px; } .list-edit .crew-row-edit > .select:first-of-type { grid-column: 2 / 4; } .list-edit .crew-row-edit .minus, .list-edit .crew-row-edit .minus-gap { grid-row: span 2; } .list-edit .names-row-edit { grid-template-columns: 34px minmax(0, 1fr); } .list-edit .names-row-edit .minus, .list-edit .names-row-edit .minus-gap { grid-row: span 2; } }
.list-edit .lrow:has(.minus input:checked) { opacity: .45; } .list-edit .lrow:has(.minus input:checked) input[type=text] { text-decoration: line-through; } details.paste { margin: 6px 0 4px; } details.paste summary { cursor: pointer; } details.paste .textarea { margin-top: 6px; }
.new-booking .grid2 { align-items: start; } .new-booking .preview-panel .trip-preview { margin-top: 0; } @media (min-width: 840px) { .new-booking .side { position: sticky; top: 72px; } }
.input.mono::placeholder { text-transform: none; }
.inline-row > .input, .inline-row > .select, .inline-row > .input-group { width: auto; min-width: 0; }
.pay-line p { margin: 8px 0 0; font-size: 14px; } .pay-line .btn.quiet.sm { min-height: 28px; padding: 0 6px; vertical-align: baseline; } .pay-tools { display: grid; gap: 8px; margin: 8px 0 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--ctl-r); background: var(--panel-2); } .pay-tools form.button_to { display: inline; }
.money-tools { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 10px; } .money-tools .disclose { display: contents; } .money-tools .inline-row, .tools-row .inline-row { flex: 1 1 100%; margin: 4px 0; } .tools-row { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 6px; } .tools-row .disclose { display: contents; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; } @media (min-width: 840px) { .grid2 { grid-template-columns: 1fr 1fr; } } .grid2 .panel { margin-bottom: 0; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; } @media (min-width: 640px) { .stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; box-shadow: var(--shadow); display: block; color: inherit; }
.stat .k, .stat .v { display: block; } .stat .k { font-size: 13px; font-weight: 600; color: var(--muted); } .stat .v { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin-top: 2px; } .stat .v small { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.stat.warn { border-color: #f6dcaa; background: var(--amber-soft); } .stat.warn .v, .stat.warn .k { color: var(--amber-text); }
.stat.hot { border-color: #f6c7b5; background: var(--coral-soft); } .stat.hot .v, .stat.hot .k { color: var(--coral-text); }
a.stat:hover { text-decoration: none; border-color: var(--line-2); }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #eef1f4; color: var(--muted); white-space: nowrap; vertical-align: 1px; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.pill.paid, .pill.confirmed, .pill.completed, .pill.ok, .pill.sailed { background: var(--green-soft); color: var(--green-text); }
.pill.held, .pill.awaiting_payment, .pill.due, .pill.scheduled { background: var(--amber-soft); color: var(--amber-text); }
.pill.cancelled, .pill.no_show, .pill.bad { background: var(--coral-soft); color: var(--coral-text); }
.pill.verify { background: var(--mint-soft); color: #176a63; } .pill.role { background: var(--blue-soft); color: var(--blue-text); } .pill.role::before, .pill.off::before { display: none; }

/* day nav */
.daynav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.daynav .seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--ctl-r); overflow: hidden; background: #fff; }
.daynav .seg a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 38px; padding: 0 12px; color: var(--ink-2); font-weight: 700; border-right: 1px solid var(--line-2); } .daynav .seg a:last-child { border-right: 0; } .daynav .seg a:hover { background: var(--panel-2); text-decoration: none; }
.daynav form { display: contents; } .daynav .input { width: auto; min-width: 140px; }
@media (max-width: 640px) { .daynav { width: 100%; } .daynav .input { flex: 1; } }

/* rows: a table on computers, compact cards on phones. The row's main link (a.num)
   stretches over the whole row; other links and buttons sit above it. */
.rows { display: block; }
.row { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 16px; border-top: 1px solid var(--line); align-items: center; } .row:first-child { border-top: 0; } .row:hover { background: var(--panel-2); }
.row a.num::after { content: ""; position: absolute; inset: 0; }
.row a:not(.num), .row button, .row form, .row details, .row .acts, .row .tel { position: relative; z-index: 1; }
.row .num { font-weight: 800; color: var(--blue-text); } .row .num:hover { text-decoration: none; } .row:hover .num { text-decoration: underline; }
.row .sub { display: block; color: var(--muted); font-size: 14px; } .row .right { text-align: right; } .row .money { font-weight: 800; font-variant-numeric: tabular-nums; } .row .cell { min-width: 0; }
.row .cell .lbl { display: none; } .row.dim { opacity: .55; } .row.dim:hover { opacity: .85; }
.row .acts { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.row .tel { color: inherit; } .row .tel:hover { color: var(--blue); }
@media (max-width: 719px) {
  .row > .cell { grid-column: 1; } .row > .right, .row > .acts { grid-column: 2; grid-row: 1; align-self: start; }
  .row > .cell.mono b, .row > .cell b.mono { font-size: 15px; }
  /* one line per cell: "Mon 12 Oct, 10:00am · 1 pax" */
  .row > .cell.inline > .sub { display: inline; font-size: 15px; } .row > .cell.inline > .sub::before { content: " · "; }
  .row > .cell.inline > .sub:empty, .row > .cell.inline > .sub:empty::before { display: none; }
  .row .hide-sm { display: none; }
  .row .sub.one { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (min-width: 720px) { .row { grid-template-columns: var(--cols, 1fr); gap: 14px; padding: 10px 16px; } .row .right { text-align: right; } }
.rows-head { display: none; } @media (min-width: 720px) { .rows-head { display: grid; grid-template-columns: var(--cols, 1fr); gap: 14px; padding: 8px 16px 6px; border-bottom: 1px solid var(--line); } .rows-head span { font-size: 12px; font-weight: 700; color: var(--muted); } .rows-head .right { text-align: right; } }
a.row { color: inherit; } a.row:hover { text-decoration: none; }

/* grouped list (Settings): one row per destination, the whole row is the link */
.list { padding: 0; overflow: hidden; }
.list > h2 { padding: 12px 16px 4px; margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.list a, .list button.item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 8px 16px; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; text-align: left; color: var(--ink); cursor: pointer; }
.list > h2 + a { border-top: 0; }
.list a:hover, .list button.item:hover { background: var(--panel-2); text-decoration: none; }
.list .t { flex: 1; min-width: 0; font-weight: 600; } .list .t small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; line-height: 1.35; }
.list a::after { content: "›"; color: var(--faint); font-size: 22px; line-height: 1; }
.list .item.danger { color: var(--coral-text); font-weight: 600; } .list form { display: block; }
.lists, .lists > div { display: grid; gap: 12px; align-items: start; } .lists .panel { margin: 0; } @media (min-width: 840px) { .lists { grid-template-columns: 1fr 1fr; } }

.lines { width: 100%; border-collapse: collapse; } .lines td { padding: 5px 0; vertical-align: top; } .lines td.num { text-align: right; font-variant-numeric: tabular-nums; } .lines tr.total td { border-top: 1px solid var(--line-2); padding-top: 8px; font-weight: 800; }
@media (max-width: 719px) { .lines.stack-sm, .lines.stack-sm tbody, .lines.stack-sm tr, .lines.stack-sm td { display: block; } .lines.stack-sm tr { padding: 8px 0; border-top: 1px solid var(--line); } .lines.stack-sm td.num { text-align: left; white-space: normal !important; padding-top: 6px; } }
/* crew panel: one person per row; the add form is two columns on a phone, one line from 720px */
.crew-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; } td.num .crew-row { justify-content: flex-end; } .crew-row .pay { flex: 0 0 108px; } .crew-ctl { display: contents; } .crew-row .pay .input { min-width: 0; }
.crew-add { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 640px; } .crew-add .who, .crew-add .add { grid-column: 1 / -1; }
@media (min-width: 720px) { .crew-add { grid-template-columns: minmax(0, 1.4fr) 120px 130px auto; } .crew-add .who, .crew-add .add { grid-column: auto; } }
@media (max-width: 719px) { td.num .crew-row { justify-content: flex-start; } }
.panel.tight > .funnel { width: calc(100% - 32px); margin: 0 16px 10px; } .funnel th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 4px 0 6px; } .funnel th.num { text-align: right; } .funnel td { padding: 6px 0; }
.pill.as-btn { border: 0; font: inherit; font-size: 12px; cursor: pointer; } .pill.as-btn:hover { filter: brightness(.95); }
.warn-text { color: var(--coral-text); }
.x-line { background: none; border: 0; cursor: pointer; color: var(--muted); font: inherit; font-size: 16px; line-height: 1; padding: 0 4px; } .x-line:hover { color: var(--coral-text); }
.pay-acts { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: 4px; vertical-align: middle; } .pay-acts form.button_to { display: inline; } .btn.quiet.sm.danger { color: var(--coral-text); } .inline-details { display: inline-flex; align-items: center; gap: 6px; } .inline-details summary { list-style: none; } .inline-details summary::-webkit-details-marker { display: none; } .inline-details .inline-form { display: inline-flex; gap: 6px; align-items: center; } .input.sm, .select.sm { min-height: var(--ctl-h-sm); padding: 4px 8px; font-size: 14px; width: auto; }
.form.adj { margin-top: 10px; } .adj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .adj-grid .btn { grid-column: 1 / -1; } @media (min-width: 720px) { .adj-grid { grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1fr) auto; } .adj-grid .btn { grid-column: auto; } } .form.adj > .lbl { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; } .facts dt { color: var(--muted); font-size: 14px; } .facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; } .filters .input, .filters .select { width: auto; flex: 1 1 150px; }
.filters .search { display: flex; gap: 8px; flex: 1 1 100%; } .filters .search .input { flex: 1; }
.filter-more { flex: 1 1 100%; } .filter-more > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; color: var(--blue); font-weight: 700; font-size: 14px; cursor: pointer; } .filter-more > summary::-webkit-details-marker { display: none; }
.filter-more > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; } .filter-more[open] > summary::before { transform: rotate(45deg); }
.filter-more .in { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 6px; }
.history p { margin: 0 0 4px; font-size: 14px; color: var(--ink-2); }
.notes { white-space: pre-wrap; font-size: 14px; color: var(--ink-2); background: var(--panel-2); padding: 8px 10px; border-radius: var(--ctl-r); margin: 6px 0 0; font-family: inherit; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; margin-bottom: 8px; } .photo-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--ctl-r); display: block; }
.photo-grid .shot { position: relative; display: block; margin-bottom: 6px; cursor: zoom-in; } .photo-grid .shot .pill { position: absolute; left: 6px; top: 6px; }
.photo-grid .cover img { outline: 3px solid var(--blue); outline-offset: -3px; }
.photo-grid .card-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; } .photo-grid form.inline { display: inline; }
.photo-grid .btn.icon { width: 34px; padding: 0; font-size: 18px; }
details.more { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 4px; } details.more summary { cursor: pointer; color: var(--blue); font-weight: 700; min-height: 40px; display: flex; align-items: center; list-style: none; } details.more summary::-webkit-details-marker { display: none; } details.more summary::before { content: "▸ "; white-space: pre; } details.more[open] summary::before { content: "▾ "; }
details.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; } details.fold > summary::-webkit-details-marker { display: none; } details.fold > summary h2 { margin: 0; }
details.fold > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; flex: none; margin-right: 4px; } details.fold[open] > summary::after { transform: rotate(-135deg); }
details.fold[open] > summary { margin-bottom: 10px; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 0 4px; }
body.login { background: var(--canvas); padding-bottom: 0; } body.login main { max-width: 400px; padding-top: 10vh; } .login-card h1 { text-align: center; margin-bottom: 16px; font-weight: 800; color: var(--ink); }
.pw { position: relative; } .pw .input { padding-right: 64px; } .pw button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-height: 32px; padding: 0 10px; border: 0; background: transparent; color: var(--blue); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.transfer { margin-top: 12px; padding: 12px; border: 2px solid var(--amber-soft); border-radius: 10px; background: #fffdf6; } .transfer h2 { margin-top: 0; }
.transfer .receipt img { display: block; max-width: 100%; max-height: 520px; margin: 8px 0; border: 1px solid var(--line-2); border-radius: 8px; }
.bell { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--muted); } .bell:hover, .bell.on { background: var(--panel-2); color: var(--blue-text); }
.bell .dot { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--coral); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.steps-list { margin: 0; padding-left: 22px; display: grid; gap: 8px; } .steps-list li { line-height: 1.5; } .steps-list small { display: block; color: var(--muted); }
.push-state[hidden] { display: none; }
.chat { padding: 0; overflow: hidden; } .chat-log { max-height: min(62vh, 640px); overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 6px; background: #f3efe8; }
@media (max-width: 719px) { .chat-log { max-height: calc(100dvh - 330px); min-height: 220px; } }
.chat-day { align-self: center; font-size: 12px; font-weight: 700; color: var(--muted); background: #fff; padding: 3px 10px; border-radius: 999px; margin: 6px 0; }
.bubble { max-width: min(80%, 560px); padding: 6px 10px; border-radius: 12px; background: #fff; align-self: flex-start; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.bubble.out { align-self: flex-end; background: #dcf5c9; } .bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; } .bubble small { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); text-align: right; }
.bubble img { display: block; max-width: 100%; border-radius: 8px; margin-bottom: 4px; }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px 12px 4px; align-items: end; } .chat-form .textarea { min-height: 40px; } .chat > .hint, .chat > .msg, .chat > .actions { margin: 0 12px 10px; }
.chat-row.unread b { color: var(--blue-text); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .panel-head h2 { margin: 0; }

/* booking page: the one thing to do next, at the top */
.next { border-color: #bcd2e8; background: #f5f9fd; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.next .what { flex: 1 1 200px; min-width: 0; } .next .what b { display: block; font-size: 16px; } .next .what span { color: var(--ink-2); font-size: 14px; }
.next.warn { border-color: #f6dcaa; background: var(--amber-soft); } .next.ok { border-color: #d3e6a3; background: var(--green-soft); }
.next form.button_to { display: inline-block; } @media (max-width: 480px) { .next .btn, .next form.button_to { width: 100%; } .next form.button_to .btn { width: 100%; } }
/* long payment references (Stripe session ids) wrap instead of widening the panel */
.ref { overflow-wrap: anywhere; word-break: break-all; }

/* Bank-in lists: tick rows, running total, and a bar with the ticked total to hold against the bank. */
.panel.tight.bank-in { overflow: clip; } .bank-in .ph { padding: 12px 16px 0; }
.bank-in .tick { display: flex; align-items: center; justify-content: center; align-self: stretch; cursor: pointer; }
.bank-in .tick input { width: 20px; height: 20px; accent-color: var(--blue); }
.bank-in .job { font-weight: 800; color: var(--blue-text); }
.bank-in .running { color: var(--muted); font-variant-numeric: tabular-nums; }
.bank-in .bank-bar { position: sticky; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--panel-2); }
.bank-in .bank-bar > span:first-child { flex: 1 1 140px; } .bank-in .bank-bar b { font-size: 18px; font-variant-numeric: tabular-nums; }
.bank-in .bank-bar .when { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); }
details.bank-in > summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 8px; padding-bottom: 12px; } details.bank-in > summary::-webkit-details-marker { display: none; }
details.bank-in > summary h2::before { content: "▸ "; color: var(--muted); } details.bank-in[open] > summary h2::before { content: "▾ "; }
@media (max-width: 719px) {
  .bank-in .bank-row { grid-template-columns: 30px 1fr auto; }
  .bank-in .bank-row > .tick { grid-column: 1; grid-row: 1 / span 3; }
  .bank-in .bank-row > .cell, .bank-in .bank-row > .right, .bank-in .bank-row > .acts { grid-column: 2; grid-row: auto; text-align: left; justify-content: flex-start; }
  .bank-in .bank-row > .right.money { grid-column: 3; grid-row: 1; text-align: right; }
}
.choice-list { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.peak-days .peak-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; } .peak-days .peak-row .select { width: auto; min-width: 84px; padding-right: 34px; } .peak-days .peak-row .select[name$="[month]"] { min-width: 160px; }
.peak-days .peak-row:has(.minus input:checked) { opacity: .45; } .peak-days .sub-lbl { font-weight: 700; margin: 4px 0 2px; }
.peak-days .inline-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; } .table-scroll > table.funnel { min-width: 760px; margin: 0 16px 10px; width: calc(100% - 32px); }
.chat-receipt { display: block; max-width: 220px; max-height: 260px; border-radius: var(--ctl-r); border: 1px solid var(--line); margin-bottom: 8px; }
