/* =============================================================================
   SeaPlus Marina - the crew app (marina.seaplus.qa), in the owners' app look.
   Owner, 6 Oct 2026: "ship it, build it" - from the approved mock-up
   (screenshots/marina-app/mockups/A-marina-in-owners-app-look.jpg).
   Served behind Cloudflare (7-day cache): bump ?v= in marina/layout.blade.php on every change.

   Loads AFTER owner-app.css and uses its tokens and components unchanged. This file only adds
   what crew need that owners don't: checklist rows with a big tick, tiles for quick choices,
   boat logos, a progress line - and four crew adjustments:
     1. figures a step heavier (300, not 200): read outside, in sun
     2. bigger tab names (12px / 600)
     3. every tap target 52px or more (wet hands, gloves)
     4. English first; Arabic stays possible under each line
   ============================================================================= */

.mx .oa-owed-fig b, .mx .oa-figure-v, .mx .oa-date b, .mx .oa-kpi-v, .mx .oa-tr b { font-weight: 300; }
.mx .oa-tab { font-size: 12px; font-weight: 600; color: rgba(214, 230, 242, .74); }
.mx .oa-tab[aria-current="page"] { color: var(--oa-sea); }
.mx .oa-row-s { font-size: 13.5px; }
.mx .oa-hero-boat { display: flex; align-items: center; gap: 12px; }

/* Boat logo on a white tile (the boat's real logo is petrol ink on clear) */
.mx-logo { flex: none; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px var(--oa-line); }
.mx-logo img { display: block; max-width: 46px; max-height: 36px; }
.mx-logo.is-sm { width: 44px; height: 44px; border-radius: 12px; }
.mx-logo.is-sm img { max-width: 34px; max-height: 26px; }

/* Progress line (boat done / cleaning done) */
.mx-prog { height: 6px; margin-top: 16px; border-radius: 999px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.mx-prog span { display: block; height: 100%; border-radius: inherit; background: var(--oa-sea); }
.oa-sec:not(.is-deep):not(.is-navy):not(.is-blue) .mx-prog { background: var(--t-line); }
.oa-sec:not(.is-deep):not(.is-navy):not(.is-blue) .mx-prog span { background: var(--oa-blue); }

/* Checklist row: name + points, a big round tick at the end */
.mx-task { position: relative; display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 12px 0; }
.mx-task + .mx-task::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 1px; background: var(--t-line); }
.mx-task-main { flex: 1; min-width: 0; }
.mx-task-t { font-size: 16.5px; font-weight: 600; line-height: 1.35; color: var(--t-ink); }
.mx-task-s { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; font-size: 13px; color: var(--t-ink2); }
.mx-pts { font-weight: 700; color: var(--t-accent); }
.mx-crit { padding: 2px 9px; border-radius: 999px; background: var(--oa-bad-bg); color: var(--oa-bad); font-size: 11.5px; font-weight: 700; }
.mx-task.is-done .mx-task-t { color: var(--t-ink2); }
.mx-tick {
    flex: none; width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center; text-align: center; line-height: 1.1;
    font-size: 12.5px; font-weight: 700; color: var(--oa-action);
    box-shadow: inset 0 0 0 2px var(--oa-action); background: transparent;
}
.mx-tick svg { width: 26px; height: 26px; }
.mx-tick.is-mine { background: var(--oa-tide); color: #04222F; box-shadow: none; }
.mx-tick.is-done { background: var(--oa-ok); color: #fff; box-shadow: none; }
.mx-tick.is-mate { background: var(--oa-up-bg); color: var(--oa-up); box-shadow: none; font-size: 14px; }
.mx-tick.is-small { width: 48px; height: 48px; font-size: 12px; }

/* Quick choices: tiles in a grid (damage: how / what) */
.mx-q { margin-top: 18px; }
.mx-q > b { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--t-ink2); }
.mx-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mx-tile {
    min-height: 58px; padding: 8px 6px; border-radius: 14px;
    display: grid; place-items: center; text-align: center;
    font-size: 13.5px; font-weight: 600; line-height: 1.3;
    background: #fff; color: var(--oa-ink); box-shadow: inset 0 0 0 1px var(--oa-field);
}
.mx-tile.is-on { background: var(--oa-up-bg); color: var(--oa-up); box-shadow: inset 0 0 0 2px var(--oa-action); }
.mx-select {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    min-height: 56px; padding: 0 16px; border-radius: 14px; background: #fff; color: var(--oa-ink);
    box-shadow: inset 0 0 0 1px var(--oa-field); font-size: 15.5px; font-weight: 600;
}
.mx-select small { display: block; font-size: 12.5px; font-weight: 500; color: var(--oa-muted); }
.mx-select svg { width: 18px; height: 18px; color: var(--oa-muted); transform: rotate(90deg); }
.mx-note-in { min-height: 76px; padding: 14px 16px; border-radius: 14px; background: #fff; color: var(--oa-muted); box-shadow: inset 0 0 0 1px var(--oa-field); font-size: 15px; }
.mx-photo {
    min-height: 104px; border-radius: 16px; border: 2px dashed rgba(5, 113, 160, .45);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    color: var(--oa-action); font-size: 15px; font-weight: 700; background: rgba(5, 131, 185, .05);
}
.mx-photo svg { width: 30px; height: 30px; }
.mx-photo small { font-size: 12.5px; font-weight: 500; color: var(--oa-muted); }

/* Chips (who cleans) and a light segmented choice (by section / by item) */
.mx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mx-chip {
    min-height: 48px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px;
    font-size: 14.5px; font-weight: 600; background: #fff; color: var(--oa-ink); box-shadow: inset 0 0 0 1px var(--oa-field);
}
.mx-chip small { font-size: 12px; font-weight: 500; color: inherit; opacity: .75; }
.mx-chip.is-on { background: var(--oa-navy); color: #fff; box-shadow: none; }
.mx-chip.is-add { color: var(--oa-action); box-shadow: inset 0 0 0 1px rgba(5, 113, 160, .45); background: transparent; }
.mx-segl { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--oa-field); }
.mx-segl span { min-height: 44px; display: grid; place-items: center; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--oa-ink-2); }
.mx-segl span.is-on { background: var(--oa-navy); color: #fff; }
.mx-min { display: inline-flex; align-items: baseline; gap: 4px; min-width: 76px; min-height: 48px; padding: 10px 12px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--oa-field); font-family: 'Montserrat', sans-serif; font-size: 18px; color: var(--oa-ink); justify-content: center; }
.mx-min small { font-size: 12px; color: var(--oa-muted); }

/* People: initials in a circle */
.mx-av { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--oa-navy); color: #fff; font-size: 15px; font-weight: 700; }
.oa-sec:is(.is-deep, .is-navy, .is-blue) .mx-av { background: var(--oa-sea); color: var(--oa-deep); }

/* Small actions inside a row (cleaner: report damage on this item) */
.mx-mini { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--t-ink2); }
.mx-mini svg { width: 15px; height: 15px; color: var(--oa-bad); }

/* A dashed example stamp, so a mock-up is never read as real numbers */
.mx-ex { display: inline-block; margin-top: 10px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--t-ink2); box-shadow: inset 0 0 0 1px var(--t-quiet); }

/* Photo heads: crew boats are white hulls under a bright sky - the label needs a darker band to sit on. */
.mx .oa-head.is-photo {
    background: linear-gradient(180deg, rgba(3, 41, 69, .62) 0%, rgba(3, 41, 69, .5) 30%, rgba(3, 41, 69, .84) 56%, rgba(3, 41, 69, .97) 100%),
                var(--oa-cover, none) center 38% / cover no-repeat, var(--oa-navy);
}
.mx .oa-head.is-photo .oa-eyebrow { text-shadow: 0 1px 8px rgba(3, 41, 69, .9); }

/* ── The real app: shell pieces the mock-up did not need ───────────────────── */

/* Plain form controls inside a panel look like the owners' app fields (.oa-field) */
.mx .oa-sec :is(input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=tel], select, textarea),
.mx .oa-cp-sheet :is(input[type=text], input[type=number], select, textarea) {
    width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--oa-field); border-radius: 14px;
    background: #fff; color: var(--oa-ink); font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none;
}
.mx .oa-sec select:not([multiple]) { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2353687A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; padding-inline-end: 40px; }
.mx[dir="rtl"] .oa-sec select:not([multiple]) { background-position: left 14px center; }
.mx .oa-sec textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.mx .oa-sec :is(input, select, textarea):focus { outline: none; border-color: var(--oa-action); box-shadow: 0 0 0 3px rgba(5, 113, 160, .18); }
.mx .oa-sec label:not(.mx-tile):not(.mx-chip):not(.mx-opt):not(.mx-photo) { display: block; margin: 16px 0 8px; font-size: 14px; font-weight: 600; color: var(--t-ink2); }
.mx .oa-sec input[type=file] { min-height: 0; padding: 0; border: 0; background: none; font-size: 14px; color: var(--t-ink2); }
.mx .hint { margin-top: 6px; font-size: 12.5px; color: var(--t-ink2); }

/* A tile or chip that IS a radio/checkbox: the input hides, the label shows the choice */
.mx-opt { position: relative; display: block; cursor: pointer; }
.mx-opt input { position: absolute; opacity: 0; pointer-events: none; }
.mx-opt input:checked + .mx-tile { background: var(--oa-up-bg); color: var(--oa-up); box-shadow: inset 0 0 0 2px var(--oa-action); }
.mx-opt input:checked + .mx-chip { background: var(--oa-navy); color: #fff; box-shadow: none; }
.mx-opt input:focus-visible + * { outline: 2px solid var(--oa-action); outline-offset: 2px; }
button.mx-tile, button.mx-chip, button.mx-tick { border: 0; font-family: inherit; cursor: pointer; }
button.mx-tick:disabled { cursor: default; }
.mx-task form { margin: 0; flex: none; }

/* Messages after a tap (session status / error) */
.mx .ok, .mx .err { position: relative; z-index: 2; margin: 0 0 14px; padding: 12px 14px; border-radius: var(--oa-r-sm); font-size: 14px; line-height: 1.5; }
.mx .ok  { background: var(--oa-ok-bg);  color: #135C38; }
.mx .err { background: var(--oa-bad-bg); color: #7E1C17; }
.mx .oa-head .ok, .mx .oa-head .err { margin-top: 14px; }

/* The loading line while the next screen comes (the owners' app's seafoam line) */
#mLoad { position: fixed; top: 0; left: 0; height: 2.5px; width: 100%; z-index: 9999; opacity: 0; pointer-events: none;
    background: var(--oa-sea); transform: scaleX(0); transform-origin: left center; transition: transform .25s ease, opacity .3s ease; }
@media (prefers-reduced-motion: reduce) { #mLoad { transition: opacity .2s linear; } }
#mLoad.on { opacity: 1; }

/* Home cover: weather beside the bell */
.mx-wx { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 999px; color: #fff; font-size: 13.5px; font-weight: 600;
    background: rgba(6, 24, 38, .45); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(174, 231, 255, .18); }
.mx-wx svg { width: 16px; height: 16px; }
.mx-hero-end { display: flex; align-items: center; gap: 8px; }

/* Report: a sheet from the bottom (the owners' app sheet, .oa-cp), opened by the round tab */
.mx-sheet-t { margin: 0 0 4px; font-size: 21px; font-weight: 600; color: var(--oa-ink); }
.mx-sheet-p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.6; color: var(--oa-ink-2); }
.mx-sheet .oa-row { color: var(--oa-ink); --t-ink: var(--oa-ink); --t-ink2: var(--oa-ink-2); --t-line: var(--oa-line); }
.mx-sheet-acts { display: flex; gap: 8px; flex: none; }
.mx-sheet-acts a { min-height: 44px; padding: 0 14px; border-radius: 12px; display: inline-flex; align-items: center; font-size: 13.5px; font-weight: 700;
    background: var(--oa-up-bg); color: var(--oa-up); }
.mx-sheet-acts a.is-bad { background: var(--oa-bad-bg); color: var(--oa-bad); }

/* Section tiles on a boat (Outdoor / Indoor / General / Complimentary) */
.mx-areas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.mx-area { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 104px; padding: 14px; border-radius: 18px;
    background: #fff; color: var(--oa-ink); box-shadow: inset 0 0 0 1px var(--oa-line); }
.mx-area b { font-size: 16px; font-weight: 600; }
.mx-area span { font-size: 13px; color: var(--oa-ink-2); }
.mx-area em { position: absolute; top: 12px; inset-inline-end: 12px; font-style: normal; font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 300; color: var(--oa-blue); }
.mx-area.is-full { background: var(--oa-ok-bg); box-shadow: inset 0 0 0 1px rgba(28, 122, 76, .25); }
.mx-area.is-full em { color: var(--oa-ok); }
.mx-area svg { width: 26px; height: 26px; }

/* A row of boat chips to switch boats */
.mx-boats { display: flex; gap: 8px; overflow-x: auto; margin: 16px calc(-1 * var(--oa-gut)) 0; padding: 0 var(--oa-gut) 2px; scrollbar-width: none; }
.mx-boats::-webkit-scrollbar { display: none; }
.mx-boats a { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
    color: var(--t-ink2); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(174, 231, 255, .14); }
.mx-boats a[aria-current="page"] { background: var(--oa-sea); color: var(--oa-deep); }
.mx-boats i { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 700; background: rgba(140, 246, 249, .2); }

/* Login, code, new password: see "Sign-in and password pages" at the end */

/* Small things */
.mx .num { font-variant-numeric: tabular-nums; }
.mx .flip { display: inline-block; }
.mx[dir="rtl"] .flip { transform: scaleX(-1); }
.mx-ar { display: block; margin-top: 2px; font-family: 'Bahij', 'Montserrat', sans-serif; font-size: 13.5px; font-weight: 400; color: var(--t-ink2); }
.mx-thumb { flex: none; width: 46px; height: 46px; border-radius: 12px; object-fit: contain; background: #fff; box-shadow: inset 0 0 0 1px var(--oa-line); padding: 5px; }

/* Four tabs when a person has nothing to report (no round button) */
.mx .oa-tabs:not(:has(.is-plus)) { grid-template-columns: repeat(4, 1fr); }

/* Safety net: the crew app's OLD token names, mapped onto the panel-aware owners' app colours, so any
   leftover inline style that still says var(--text-strong) reads right on light AND dark panels. */
.mx {
    --text-strong: var(--t-ink); --text-body: var(--t-ink); --text-muted: var(--t-ink2); --text-faint: var(--t-ink2);
    --text-brand: var(--t-accent); --text-accent: var(--t-accent); --brand-primary: var(--oa-navy); --brand-accent: var(--oa-blue);
    --sea-azure: var(--oa-blue); --sea-deep: var(--oa-navy); --cyan: var(--oa-blue); --petrol: var(--oa-navy);
    --surface-raised: #fff; --surface-page: var(--oa-light); --surface-sunken: var(--oa-mist); --surface-muted: var(--oa-mist);
    --border-subtle: var(--t-line); --border-default: var(--oa-field); --line: var(--t-line);
    --success: var(--oa-ok); --danger: var(--oa-bad); --warning: var(--oa-wait); --warn: var(--oa-wait);
    --font-display: 'Montserrat', 'Bahij', system-ui, sans-serif; --font-body: 'Montserrat', 'Bahij', system-ui, sans-serif;
    --teal-50: var(--oa-up-bg); --mist-100: var(--oa-mist); --mist-200: var(--oa-line);
}
.oa-sec { --text-strong: var(--t-ink); --text-body: var(--t-ink); --text-muted: var(--t-ink2); --text-faint: var(--t-ink2); --text-brand: var(--t-accent); --text-accent: var(--t-accent); --border-subtle: var(--t-line); --line: var(--t-line); }

/* Promoted from the pages: a red icon, and a green "valid" call-out */
.mx .oa-ico.is-bad { background: var(--oa-bad-bg); color: var(--oa-bad); }
.mx .oa-call.is-ok { background: var(--oa-ok-bg); color: #135C38; }
.mx .oa-call.is-ok .oa-ico { background: #CDEBDB; color: var(--oa-ok); }
.mx .oa-call.is-ok b { color: #0F4A2D; }

/* Back label: one line, cut with … when long (a boat name wrapped under the arrow) */
.mx .oa-back span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 34vw; }

/* iPhone (owner's phone, 6 Oct 2026): Safari painted the sticky Home cover OVER the first panel - the panel's
   rounded top and its "Duty" label sat under the photo. The cover is its own compositing layer (sticky, blurred
   pills); the panels after it must be layers too, so their z-index wins on WebKit as it does elsewhere. */
.mx .oa-hero ~ .oa-sec, .mx .oa-hero ~ .oa-note { transform: translateZ(0); }
/* ...and after scrolling down and back up it came back (Safari moves the sticky layer and forgets the order).
   So in the crew app the cover simply scrolls away with the page: the first panel still rides 40px over its
   foot, nothing has to stay pinned, nothing can paint over a panel. */
.mx .oa-hero { position: relative; }

/* ── Plans + hour meters (6 Oct 2026, mock-up K) ─────────────────────────────────────────────── */
.mx-secname { margin: 22px 0 2px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--t-accent); }
.mx-secname:first-of-type { margin-top: 10px; }
.mx-kind { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--oa-up-bg); color: var(--oa-up); }
.mx-kind.k-check { background: var(--oa-ok-bg); color: var(--oa-ok); }
.mx-kind.k-count { background: var(--oa-wait-bg); color: var(--oa-wait); }
.mx-act { display: flex; align-items: center; gap: 6px; flex: none; }
.mx-act form { margin: 0; }
.mx-btn { min-width: 52px; height: 52px; padding: 0 12px; border: 0; border-radius: 14px; display: grid; place-items: center;
    font: 700 13px/1 var(--oa-font); color: var(--oa-action); background: transparent; box-shadow: inset 0 0 0 2px var(--oa-action); cursor: pointer; }
.mx-btn.is-ok { background: var(--oa-ok); color: #fff; box-shadow: none; }
.mx-btn.is-bad { color: var(--oa-bad); box-shadow: inset 0 0 0 2px var(--oa-bad); }
.mx-btn.is-badon { background: var(--oa-bad); color: #fff; box-shadow: none; }
.mx-btn:disabled { opacity: .45; cursor: default; }
.mx-count { display: flex; align-items: center; gap: 6px; flex: none; }
.mx-in { width: 112px; min-height: 52px; padding: 0 12px; border: 0; border-radius: 14px; background: #fff;
    box-shadow: inset 0 0 0 1px var(--oa-field); font: 400 19px/1 var(--oa-font); color: var(--oa-ink); }
.mx-in::placeholder { font-size: 14px; color: var(--oa-muted); }
.mx-in:focus { outline: none; box-shadow: inset 0 0 0 2px var(--oa-action); }
.mx-count .mx-in { width: 84px; }
.mx-task.is-problem .mx-task-t { color: var(--oa-bad); }
.oa-sec.is-blue .mx-task.is-problem .mx-task-t, .oa-sec.is-navy .mx-task.is-problem .mx-task-t { color: #FFB4AE; }
.mx-meter { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.mx-meter + .mx-meter::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 1px; background: var(--oa-line); }
.mx-meter .t { flex: 1; min-width: 0; }
.mx-meter b { display: block; font-size: 16px; font-weight: 600; color: var(--oa-ink); }
.mx-meter small { font-size: 12.5px; color: var(--oa-ink-2); }
.mx-fc { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; border-top: 1px solid var(--t-line); }
.mx-fc > div { padding: 12px 0 0; min-width: 0; }
.mx-fc > div + div { border-inline-start: 1px solid var(--t-line); padding-inline-start: 12px; }
.mx-fc b { display: block; font-weight: 300; font-size: 24px; line-height: 1.2; color: var(--t-ink); }
.mx-fc span { font-size: 12.5px; color: var(--t-ink2); }
.mx-unit-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.mx-unit-form .mx-in { width: 130px; }
.mx-unit-form input[type=text] { flex: 1; min-width: 140px; min-height: 52px; padding: 0 12px; border: 0; border-radius: 14px; background: #fff;
    box-shadow: inset 0 0 0 1px var(--oa-field); font: 400 15px var(--oa-font); color: var(--oa-ink); }
.mx-people { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mx-people span { padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(255,255,255,.14); color: var(--t-ink); }
.oa-sec.is-light .mx-people span, .oa-sec.is-white .mx-people span { background: var(--oa-up-bg); color: var(--oa-up); }
.mx .oa-btns > form { margin: 0; display: grid; }
.mx .oa-btns > form > .oa-btn { width: 100%; }
.mx .oa-row > form .mx-btn { min-width: 64px; }
/* the shared field rule (width 100%) is stronger than .mx-in: number boxes in rows keep their own size */
.mx .oa-cp-sheet .mx-meter input.mx-in, .mx .oa-sec .mx-unit-form input.mx-in { width: 128px; flex: none; min-height: 52px; padding: 0 12px; font-size: 19px; }
.mx .oa-sec .mx-count input.mx-in { width: 84px; flex: none; min-height: 52px; padding: 0 10px; font-size: 18px; }
.mx .oa-sec .mx-unit-form input[type=text] { width: auto; flex: 1; min-width: 140px; }
/* Checklist questions (6 Oct 2026): the number box sits under the question, Yes / No on the right */
.mx .oa-sec .mx-task-main input.mx-in { display: block; width: 130px; min-height: 48px; margin-top: 10px; padding: 0 12px; font-size: 18px; }
form.mx-task { margin: 0; }
.mx-task .mx-act button.mx-btn, .mx-task .mx-act button.mx-tick { border: 0; font-family: inherit; cursor: pointer; }
.mx-task .mx-act button.mx-btn.is-bad { box-shadow: inset 0 0 0 2px var(--oa-bad); }
.mx-task .mx-act button.mx-btn:not(.is-bad):not(.is-badon) { box-shadow: inset 0 0 0 2px var(--oa-action); }
.mx-kind.k-who { background: #F3E8FF; color: #5B2A86; }

/* ── Review fixes, 6 Oct 2026 (impeccable audit + critique): legible in the sun, real tap targets ───────── */
/* Photo heads: text over white hulls measured 2.7-3.4:1. A stronger navy behind ALL head text (>= 4.5:1). */
.mx .oa-head.is-photo {
    background: linear-gradient(180deg, rgba(3, 41, 69, .8) 0%, rgba(3, 41, 69, .74) 30%, rgba(3, 41, 69, .9) 56%, rgba(3, 41, 69, .97) 100%),
                var(--oa-cover, none) center 38% / cover no-repeat, var(--oa-navy);
}
.mx .oa-hero::after { background: linear-gradient(180deg, rgba(3, 41, 69, .66) 0%, rgba(3, 41, 69, .5) 26%, rgba(3, 41, 69, .82) 52%, rgba(3, 41, 69, .96) 100%); }
.mx .oa-hero-hi { color: #fff; }
.mx .oa-back { text-shadow: 0 1px 8px rgba(3, 41, 69, .95); }
/* Thin type disappears in the sun: heavier figures and titles in the crew app */
.mx .oa-owed-fig b { font-weight: 400; }
.mx .oa-title, .mx .oa-h2, .mx .oa-hero-boat { font-weight: 500; }
.mx .mx-area em { color: var(--oa-action); font-weight: 500; }
/* Nothing under 12px */
.mx .mx-kind, .mx .mx-crit, .mx .oa-kpi-n, .mx .mx-boats i { font-size: 12px; }
/* Tap targets: the 52px rule for wet hands, also for links and the small actions */
.mx .mx-mini, .mx .oa-link, .mx .oa-hero-next { min-height: 44px; }
.mx .mx-mini { padding: 0 6px; }
.mx .oa-seg a { min-height: 44px; }
/* Disabled reads as disabled, not as invisible */
.mx .mx-btn:disabled, .mx .oa-btn[disabled], .mx .oa-btn:disabled { opacity: 1; background: var(--oa-off-bg); color: var(--oa-off); box-shadow: none; }
.mx .mx-tick:disabled:not(.is-done):not(.is-mate) { opacity: 1; color: var(--oa-off); box-shadow: inset 0 0 0 2px var(--oa-field); }
/* Native controls on the white panels are light (the shell's color-scheme: dark leaked into them) */
.mx .oa-sec.is-light, .mx .oa-sec.is-white, .mx .oa-cp-sheet { color-scheme: light; }
/* The tab bar keeps its labels apart at large text sizes */
.mx .oa-tab span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── The checklist ── */
.mx-planbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.mx-planbar-n { font-size: 30px; font-weight: 400; color: var(--t-ink); line-height: 1.1; }
.mx-planbar-n small { font-size: 14px; font-weight: 600; letter-spacing: .08em; color: var(--t-accent); text-transform: uppercase; margin-inline-start: 4px; }
.mx-planbar .mx-people { margin-top: 0; }
.mx-planmeter { display: flex; align-items: center; gap: 10px; min-height: 52px; margin-top: 14px; padding: 0 14px; border-radius: 14px;
    background: rgba(255, 255, 255, .12); color: var(--t-ink); font-size: 14.5px; }
.mx-planmeter > svg:first-child { width: 22px; height: 22px; color: var(--t-accent); flex: none; }
.mx-planmeter span { flex: 1; min-width: 0; }
.mx-planmeter .oa-chev { width: 18px; height: 18px; flex: none; }
h2.mx-secname { line-height: 1.4; }
.mx-yn { gap: 12px; }
.mx-yn > .mx-btn, .mx-yn > form > .mx-btn { min-width: 64px; }
.mx-change { min-height: 44px; padding: 0 10px; margin-inline-start: -10px; border: 0; background: none; font: 700 13px var(--oa-font); color: var(--t-accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.mx-inline { display: inline; margin: 0; }
.mx-task.is-sending { opacity: .55; pointer-events: none; transition: opacity .15s ease; }
.mx-rowerr { margin: 4px 0 8px; }
.mx-confirm { display: flex; align-items: center; gap: 10px; min-height: 48px; margin: 6px 0 0; font-size: 14.5px; font-weight: 600; color: var(--oa-ink); }
.mx-confirm input { width: 22px; height: 22px; }

/* The + sheet (7 Oct 2026): first a choice of two big buttons, then the boat */
.mx-pick { display: grid; gap: 12px; margin: 14px 0 6px; }
.mx-pick-b { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 84px; padding: 14px 16px; border: 0; border-radius: var(--oa-r);
    background: var(--oa-light); color: var(--oa-ink); font: inherit; text-align: start; cursor: pointer; box-shadow: inset 0 0 0 1px var(--oa-line); }
.mx-pick-b:active { background: var(--oa-press); }
.mx-pick-b:focus-visible { outline: 2px solid var(--oa-action); outline-offset: 2px; }
.mx-pick-ic { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; }
.mx-pick-ic svg { width: 28px; height: 28px; }
.mx-pick-ic.is-money { background: var(--oa-wait-bg); color: var(--oa-wait); }
.mx-pick-ic.is-report { background: var(--oa-bad-bg); color: var(--oa-bad); }
.mx-pick-t { flex: 1; min-width: 0; }
.mx-pick-t b { display: block; font-size: 17px; font-weight: 600; color: var(--oa-ink); }
.mx-pick-t span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--oa-ink-2); }
.mx-pick-b .oa-chev { width: 20px; height: 20px; color: var(--oa-muted); flex: none; }
.mx-step-back { min-height: 44px; margin: 0 0 4px -6px; padding: 0 6px; border: 0; background: none; font: 600 15px var(--oa-font); color: var(--oa-action); cursor: pointer; }
.mx-sheet a.oa-row { min-height: 60px; }

/* ── Screen styles, moved out of the Blade views (7 Oct 2026 review: 13 inline <style> blocks).
   Each is scoped to its screen by the body class mx-pg-<screen>, set with @section('pageclass'). ── */
/* addon.blade.php */
/* add-on: a few page-only pieces (the two stylesheets cover the rest) */
.mx-pg-addon .ad-hd {display: flex; align-items: center; gap: 14px; margin-top: 8px;}
.mx-pg-addon .ad-hd .mx-logo img {max-width: 44px; max-height: 44px;}
.mx-pg-addon .ad-hd .oa-title {margin: 0;}
.mx-pg-addon .ad-text {margin: 10px 0 0; font-size: 15px; line-height: 1.65; color: var(--t-ink); white-space: pre-line;}
.mx-pg-addon .ad-gap {margin-top: 30px;}
.mx-pg-addon .ad-state {margin: 10px 0 0; font-size: 26px; line-height: 1.3; font-weight: 400; color: var(--t-ink);}
.mx-pg-addon .mx-opt.mx-photo {display: flex;}
.mx-pg-addon .mx-photo img {display: none; width: 64px; height: 64px; object-fit: cover; border-radius: var(--oa-r-sm);}
/* boat.blade.php */
/* Boat page only - not in crew-app.css yet (promote if another page needs them) */
.mx-pg-boat .mx-ready.is-late .oa-pill {background: var(--oa-bad-bg); color: var(--oa-bad); box-shadow: none;}
.mx-pg-boat.mx .oa-call.is-ok {background: var(--oa-ok-bg); color: var(--oa-ok);}
.mx-pg-boat.mx .oa-call.is-ok b {color: var(--oa-ok);}
.mx-pg-boat.mx .oa-call.is-ok .oa-ico {background: var(--oa-surface); color: var(--oa-ok);}
.mx-pg-boat .mx-area > svg {color: var(--oa-action);}
.mx-pg-boat .mx-area.is-full > svg {color: var(--oa-ok);}
.mx-pg-boat .mx-acts {display: flex; align-items: center; gap: 8px; flex: none;}
/* boatinfo.blade.php */
/* boat info: a few page-only pieces (the two stylesheets cover the rest) */
.mx-pg-boatinfo .bi-blk + .bi-blk {margin-top: 30px;}
.mx-pg-boatinfo .bi-text {margin: 10px 0 0; font-size: 15px; line-height: 1.65; color: var(--t-ink); white-space: pre-line;}
.mx-pg-boatinfo .bi-item + .bi-item {border-top: 1px solid var(--t-line);}
.mx-pg-boatinfo .bi-item > .oa-row {padding-bottom: 10px;}
.mx-pg-boatinfo .bi-item > form {padding-bottom: 15px;}
.mx-pg-boatinfo .bi-inline {display: flex; gap: 8px; align-items: center; margin: 0;}
.mx-pg-boatinfo .bi-inline > input {flex: 1; min-width: 0;}
.mx-pg-boatinfo .bi-inline .oa-btn {width: auto; flex: none; padding: 0 18px;}
.mx-pg-boatinfo.mx .oa-sec .bi-inline input.bi-qty {flex: none; width: 92px;}
/* beats the crew layer's width:100% on panel inputs */
.mx-pg-boatinfo .oa-btn.bi-bad {background: var(--oa-bad-bg); color: var(--oa-bad);}
.mx-pg-boatinfo .bi-add {margin-top: 14px;}
.mx-pg-boatinfo .bi-body {font-weight: 500;}
.mx-pg-boatinfo span.mx-thumb {display: grid; place-items: center; color: var(--t-accent);}
.mx-pg-boatinfo span.mx-thumb svg {width: 22px; height: 22px;}
.mx-pg-boatinfo #request {scroll-margin-top: calc(56px + env(safe-area-inset-top));}
/* damage.blade.php */
/* The photo field is a <label> wrapping the real file input; the crew layer styles every plain label in a
     panel as a field caption, so give this one its .mx-photo look back. (Promote: add :not(.mx-photo) there.) */
.mx-pg-damage.mx .oa-sec label.mx-photo:not(.mx-tile):not(.mx-chip):not(.mx-opt) {display: flex; margin: 0; font-size: 15px; font-weight: 700; color: var(--oa-action); text-align: center; cursor: pointer;}
.mx-pg-damage .mx-photo img {width: 72px; height: 72px; margin-top: 4px; object-fit: cover; border-radius: 12px;}
/* dashboard.blade.php */
.mx-pg-home.mx .planchip.on {background:var(--oa-navy);color:#fff;box-shadow:none}
/* inbox.blade.php */
.mx-pg-inbox .mx-msg {align-items: flex-start;}
.mx-pg-inbox .mx-msg-tags {display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px;}
.mx-pg-inbox .mx-msg-body {margin-top: 4px; font-size: 14.5px; line-height: 1.6; color: var(--t-ink2); white-space: pre-line; overflow-wrap: anywhere;}
.mx-pg-inbox .mx-msg .oa-row-s {margin-top: 8px;}
.mx-pg-inbox.mx .oa-ico.is-bad {background: var(--oa-bad-bg); color: var(--oa-bad);}
/* manager.blade.php */
.mx-pg-team .mx-so + .mx-so {margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--t-line);}
.mx-pg-team .oa-btns form {margin: 0;}
.mx-pg-team.mx img.mx-av {object-fit: cover;}
.mx-pg-team .mx-grp + .mx-grp {margin-top: 10px;}
.mx-pg-team .mx-grp .oa-foot {margin: 8px 0 0; padding-inline-start: 4px;}
.mx-pg-team .mx-rank {flex: none; width: 20px; text-align: center; font-size: 14px; font-weight: 700; color: var(--t-ink2);}
.mx-pg-team .mx-dot {display: inline-block; width: 8px; height: 8px; margin-inline-end: 6px; border-radius: 50%; vertical-align: 1px;}
.mx-pg-team .mx-pills {display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px;}
/* marina.blade.php */
/* Marina tab: a few page-only pieces (the two stylesheets cover the rest) */
.mx-pg-marina .mv-trip {color: var(--t-accent); font-weight: 600;}
.mx-pg-marina .mv-when {font-weight: 500; color: var(--t-ink2);}
.mx-pg-marina .mv-items {display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;}
.mx-pg-marina .mv-items span {display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 11px; border-radius: 999px; font-size: 13px; font-weight: 600; background: #fff; color: var(--oa-ink); box-shadow: inset 0 0 0 1px var(--oa-field);}
.mx-pg-marina .mv-items small {font-size: 12px; font-weight: 500; opacity: .8;}
.mx-pg-marina span.mx-thumb {display: grid; place-items: center; color: var(--oa-blue);}
.mx-pg-marina span.mx-thumb svg {width: 22px; height: 22px;}
.mx-pg-marina .mx-logo > svg {width: 26px; height: 26px; color: var(--oa-blue);}
.mx-pg-marina .mv-stock + .mv-stock {border-top: 1px solid var(--t-line);}
.mx-pg-marina .mv-stock > .oa-row {padding-bottom: 8px;}
.mx-pg-marina .mv-low {font-weight: 700; color: var(--oa-bad);}
.mx-pg-marina .mv-acts {display: flex; justify-content: flex-end; gap: 8px; padding-bottom: 14px;}
.mx-pg-marina .mv-acts form {margin: 0;}
.mx-pg-marina .mv-acts .oa-btn {width: auto; min-width: 56px; padding: 0 16px; font-size: 20px; font-weight: 600;}
.mx-pg-marina .mv-acts .oa-btn.mv-ask {font-size: 15px; font-weight: 700;}
.mx-pg-marina .mv-req {margin-top: 18px; border-radius: var(--oa-r); background: #fff; color: var(--oa-ink); box-shadow: inset 0 0 0 1px var(--oa-field);}
.mx-pg-marina .mv-req > summary {list-style: none; cursor: pointer; min-height: 56px; padding: 0 16px; display: flex; align-items: center; gap: 10px;}
.mx-pg-marina .mv-req > summary::-webkit-details-marker {display: none;}
.mx-pg-marina .mv-req > summary b {font-size: 15px; font-weight: 700; color: var(--oa-up); white-space: nowrap;}
.mx-pg-marina .mv-req > summary span {margin-inline-start: auto; font-size: 12.5px; line-height: 1.4; text-align: end; color: var(--oa-ink-2);}
.mx-pg-marina .mv-req > summary svg {width: 18px; height: 18px; color: var(--oa-up); flex: none;}
.mx-pg-marina .mv-req > form {padding: 0 16px 16px;}
.mx-pg-marina .mv-req > form > label:first-of-type {margin-top: 2px;}
/* me.blade.php */
.mx-pg-me.mx .oa-kpi-v.mx-lvl {font-size: clamp(18px, 5.6vw, 24px); overflow: hidden; text-overflow: ellipsis;}
.mx-pg-me .mx-dot {display: inline-block; width: 8px; height: 8px; margin-inline-end: 7px; border-radius: 50%; vertical-align: 3px;}
.mx-pg-me.mx .oa-call.is-ok {background: var(--oa-ok-bg); color: #135C38;}
.mx-pg-me.mx .oa-call.is-ok .oa-ico {background: #CDEBDB; color: var(--oa-ok);}
.mx-pg-me.mx .oa-call.is-ok b {color: #0E4A2D;}
.mx-pg-me.mx .oa-call.mx-call-top {align-items: flex-start;}
.mx-pg-me.mx .oa-kv dd .mx-kv-sub {display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--t-ink2);}
.mx-pg-me .mx-push-btn {flex: none; width: auto; padding: 0 18px;}
/* money.blade.php */
/* The photo field is a <label> around the real file input (same as Report damage). */
.mx-pg-money.mx .oa-sec label.mx-photo:not(.mx-tile):not(.mx-chip):not(.mx-opt) {display: flex; margin: 0; font-size: 15px; font-weight: 700; color: var(--oa-action); text-align: center; cursor: pointer;}
.mx-pg-money .mx-photo img {width: 72px; height: 72px; margin-top: 4px; object-fit: cover; border-radius: 12px;}
.mx-pg-money .mx-money-row {display: flex; gap: 10px;}
.mx-pg-money .mx-money-row > div {flex: 1; min-width: 0;}
.mx-pg-money .mx-rq {padding: 14px 0; position: relative;}
.mx-pg-money .mx-rq + .mx-rq::before {content: ""; position: absolute; top: 0; inset-inline: 0; height: 1px; background: var(--t-line);}
.mx-pg-money .mx-rq-top {display: flex; align-items: flex-start; gap: 10px;}
.mx-pg-money .mx-rq-amt {font-size: 22px; font-weight: 300; color: var(--t-ink); line-height: 1.2;}
.mx-pg-money .mx-rq-s {font-size: 13px; color: var(--t-ink2); margin-top: 2px;}
.mx-pg-money .mx-rq .oa-pill {margin-inline-start: auto; flex: none;}
.mx-pg-money .mx-rq form {margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--oa-surface);}
.mx-pg-money .mx-rq a.mx-mini {color: var(--t-accent);}
/* hk/index.blade.php */
/* Cleaning now: one block per running shift */
.mx-pg-hk .hk-now + .hk-now {margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--t-line);}
.mx-pg-hk .hk-now .oa-link {margin-top: 14px;}
/* Plan: each boat is a white card on the panel; the rooms inside it come from the script below */
.mx-pg-hk #legRows {display: flex; flex-direction: column; gap: 10px;}
.mx-pg-hk #legRows .legrow {padding: 14px; border-radius: var(--oa-r); background: #fff; box-shadow: inset 0 0 0 1px var(--oa-line);}
.mx-pg-hk #legRows .legh {display: flex; align-items: center; gap: 8px; margin-bottom: 10px;}
.mx-pg-hk #legRows .legn {font-size: 15px; font-weight: 700; color: var(--t-accent);}
.mx-pg-hk #legRows .rmleg {margin-inline-start: auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--oa-off-bg); color: var(--oa-off); font-size: 22px; line-height: 1; cursor: pointer;}
.mx-pg-hk #legRows .legrooms {margin-top: 12px;}
.mx-pg-hk #legRows .rmblock {margin-bottom: 8px; padding: 10px 12px; border-radius: 14px; background: var(--oa-light);}
.mx-pg-hk #legRows .rmblock.off {opacity: .5;}
.mx-pg-hk #legRows .rmtop {display: flex; align-items: center; gap: 8px; flex-wrap: wrap;}
.mx-pg-hk #legRows .rmchip {position: relative; display: inline-flex; align-items: center; min-height: 48px; margin: 0; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--oa-ink); box-shadow: inset 0 0 0 1px var(--oa-field); font-size: 14.5px; font-weight: 600; cursor: pointer;}
.mx-pg-hk #legRows .rmchip:has(input:checked) {background: var(--oa-navy); color: #fff; box-shadow: none;}
.mx-pg-hk #legRows .rmchip input {position: absolute; opacity: 0; pointer-events: none;}
.mx-pg-hk #legRows .rmtime {display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto; font-size: 13px; color: var(--t-ink2);}
.mx-pg-hk #legRows .rmmin, .mx-pg-hk #legRows .rmimin {width: 76px; min-height: 48px; padding: 8px; text-align: center; font-size: 16px;}
.mx-pg-hk #legRows .rmperitem {min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--oa-up-bg); color: var(--oa-up); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;}
.mx-pg-hk #legRows .rmperitem.on {background: var(--oa-navy); color: #fff;}
.mx-pg-hk #legRows .rmitems {display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--oa-field);}
.mx-pg-hk #legRows .rmirow {display: flex; align-items: center; gap: 8px; font-size: 14px;}
.mx-pg-hk #legRows .rminm {flex: 1; min-width: 0; color: var(--oa-ink);}
.mx-pg-hk #legRows .rmu {font-size: 12.5px; color: var(--oa-muted);}
/* Girls: activate / deactivate, and the add form */
.mx-pg-hk .hk-tog {min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; background: var(--oa-bad-bg); color: var(--oa-bad);}
.mx-pg-hk .hk-tog.is-on {background: var(--oa-ok-bg); color: var(--oa-ok);}
.mx-pg-hk .hk-row-off {opacity: .6;}
.mx-pg-hk .hk-add {margin-top: 10px; border-top: 1px solid var(--t-line);}
.mx-pg-hk .hk-add > summary {display: flex; align-items: center; gap: 10px; min-height: 56px; list-style: none; cursor: pointer; font-size: 15.5px; font-weight: 700; color: var(--t-accent);}
.mx-pg-hk .hk-add > summary::-webkit-details-marker {display: none;}
.mx-pg-hk .hk-add > summary svg {width: 20px; height: 20px;}
.mx-pg-hk .hk-or {display: flex; align-items: center; gap: 10px; margin: 20px 0 4px; font-size: 12.5px; color: var(--t-ink2);}
.mx-pg-hk .hk-or::before, .mx-pg-hk .hk-or::after {content: ""; flex: 1; height: 1px; background: var(--t-line);}
/* The team (7 Oct 2026): tap a girl to edit / switch part-time <-> long-term / release / delete; Released list below. */
.mx-pg-hk .hk-person {border-bottom: 1px solid var(--t-line);}
.mx-pg-hk .hk-person:last-child {border-bottom: 0;}
.mx-pg-hk .hk-person > summary {list-style: none; cursor: pointer; border-bottom: 0;}
.mx-pg-hk .hk-person > summary::-webkit-details-marker {display: none;}
.mx-pg-hk .hk-person > summary .oa-chev {transition: transform .2s ease;}
.mx-pg-hk .hk-person[open] > summary .oa-chev {transform: rotate(90deg);}
.mx-pg-hk .hk-kind {flex: none; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--oa-up-bg); color: var(--oa-up);}
.mx-pg-hk .hk-kind.is-part_time {background: var(--oa-wait-bg); color: var(--oa-wait);}
.mx-pg-hk .hk-edit {padding: 2px 0 18px;}
.mx-pg-hk .hk-acts {display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px;}
.mx-pg-hk .hk-acts form {margin: 0;}
.mx-pg-hk .hk-act {width: 100%; min-height: 48px; border: 1px solid var(--t-line); border-radius: 12px; background: transparent; font: inherit; font-size: 14.5px; font-weight: 700; color: var(--t-accent); cursor: pointer;}
.mx-pg-hk .hk-act.is-bad {border-color: transparent; background: var(--oa-bad-bg); color: var(--oa-bad);}
.mx-pg-hk .hk-released {margin-top: 6px; border-top: 1px solid var(--t-line);}
.mx-pg-hk .hk-released > summary {display: flex; align-items: center; min-height: 52px; list-style: none; cursor: pointer; font-size: 14.5px; font-weight: 700; color: var(--t-ink2);}
.mx-pg-hk .hk-released > summary::-webkit-details-marker {display: none;}
.mx-pg-hk .hk-released > summary::after {content: ""; width: 8px; height: 8px; margin-left: 10px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease;}
.mx-pg-hk .hk-released[open] > summary::after {transform: rotate(225deg) translateY(-2px);}
.mx-pg-hk .hk-released form {margin: 0;}
.mx-pg-hk .hk-x {display: grid; place-items: center; width: 44px; height: 44px; margin-left: 6px; border: 0; border-radius: 12px; background: var(--oa-bad-bg); color: var(--oa-bad); cursor: pointer;}
.mx-pg-hk .hk-x svg {width: 19px; height: 19px;}
.mx-pg-hk .hk-team .oa-row-s .num, .mx-pg-hk .hk-released .oa-row-s {white-space: nowrap;}
.mx-pg-hk .hk-released .hk-row-off {opacity: 1;}
.mx-pg-hk .hk-released .hk-row-off .mx-av, .mx-pg-hk .hk-released .hk-row-off .oa-row-main {opacity: .6;}
/* Hiring from the app (7 Oct 2026): the offer letter link on a girl, the hire button, the live pay total. */
.mx-pg-hk .hk-offer {display: flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 12px; padding: 0 14px; border-radius: 12px; background: var(--oa-up-bg); color: var(--oa-up); font-size: 14.5px; font-weight: 700; text-decoration: none;}
.mx-pg-hk .hk-offer .sp-icon {flex: none;}
.mx-pg-hk .hk-hire {display: flex; justify-content: center; margin: 4px 0 2px; text-decoration: none;}
.mx-pg-hk .hk-total {margin: 14px 0 4px; font-size: 14.5px; color: var(--t-ink2);}
.mx-pg-hk .hk-total b {font-size: 22px; font-weight: 700; color: var(--t-ink); margin: 0 4px;}
/* Part-time pay (8 Oct 2026): rate fields, "not paid yet" on the row, her page (ask the office, payments, history). */
.mx-pg-hk .hk-payrow {display: flex; flex-wrap: wrap; align-items: center; gap: 8px;}
.mx-pg-hk .hk-payrow .hk-qar {font-size: 13px; font-weight: 700; color: var(--t-ink2);}
.mx-pg-hk.mx .oa-sec .hk-payrow input[type="number"] {width: 110px; flex: none; margin: 0;}
.mx-pg-hk .hk-payrow .mx-chips {margin: 0;}
.mx-pg-hk .hk-owe {margin-top: 3px; font-size: 12.5px; font-weight: 700; color: var(--oa-wait);}
.mx-pg-hk .hk-hist {margin: 4px 0 14px; justify-content: flex-start;}
.mx-pg-hk .hk-contact {display: flex; gap: 8px; margin-top: 14px;}
.mx-pg-hk .hk-contact .mx-chip {text-decoration: none;}
.mx-pg-hk .hk-paylist {margin: 4px 0 6px;}
.mx-pg-hk.mx .oa-sec label.hk-payline:not(.mx-tile):not(.mx-chip):not(.mx-opt) {display: flex; align-items: center; gap: 12px; min-height: 64px; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--t-line); cursor: pointer;}
.mx-pg-hk .hk-payline input[type=checkbox] {flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--oa-action);}
.mx-pg-hk .hk-pl-main {flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px;}
.mx-pg-hk .hk-pl-main b {font-size: 15px; color: var(--t-ink);}
.mx-pg-hk .hk-pl-main span {font-size: 13px; color: var(--t-ink2);}
.mx-pg-hk .hk-pl-amt {flex: none; display: flex; align-items: center; gap: 6px;}
.mx-pg-hk .hk-pl-amt small {font-size: 12px; font-weight: 700; color: var(--t-ink2);}
.mx-pg-hk.mx .oa-sec .hk-pl-amt input[type="number"] {width: 92px; margin: 0; text-align: right;}
.mx-pg-hk .hk-req {border-bottom: 1px solid var(--t-line);}
.mx-pg-hk .hk-req:last-child {border-bottom: 0;}
.mx-pg-hk .hk-req .oa-row {border-bottom: 0;}
.mx-pg-hk .hk-rcpt {padding: 0 0 14px;}
.mx-pg-hk .hk-rcpt > summary {display: flex; align-items: center; min-height: 44px; list-style: none; cursor: pointer; font-size: 14.5px; font-weight: 700; color: var(--t-accent);}
.mx-pg-hk .hk-rcpt > summary::-webkit-details-marker {display: none;}
.mx-pg-hk .hk-hist-end {display: flex; flex-direction: column; align-items: flex-end; gap: 5px;}
.mx-pg-hk .hk-hist-end b {font-size: 14px; color: var(--t-ink);}
/* Profiles, contacts and quality of work (8 Oct 2026). Stars use the app blue, empty ones the field grey. */
.mx .oa-sec .hk-stars {display: inline-flex; flex-direction: row-reverse; gap: 4px; margin-top: 4px;}
.mx .oa-sec .hk-stars input {position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;}
.mx .oa-sec .hk-stars label.hk-star:not(.mx-tile):not(.mx-chip):not(.mx-opt):not(.mx-photo) {display: block; margin: 0; padding: 0 2px; font-size: 38px; line-height: 1; color: var(--oa-field); cursor: pointer; transition: color .15s ease;}
.mx .oa-sec .hk-stars input:checked ~ label.hk-star:not(.mx-tile):not(.mx-chip):not(.mx-opt):not(.mx-photo), .mx .oa-sec .hk-stars label.hk-star:not(.mx-tile):not(.mx-chip):not(.mx-opt):not(.mx-photo):hover, .mx .oa-sec .hk-stars label.hk-star:not(.mx-tile):not(.mx-chip):not(.mx-opt):not(.mx-photo):hover ~ label.hk-star:not(.mx-tile):not(.mx-chip):not(.mx-opt):not(.mx-photo) {color: var(--oa-action);}
/* On the dark closing card: sea-blue stars, faint empty ones. */
.mx .oa-sec:is(.is-navy, .is-deep) .hk-stars label.hk-star:not(.mx-tile):not(.mx-chip):not(.mx-opt):not(.mx-photo) {color: rgba(255, 255, 255, .3);}
.mx .oa-sec:is(.is-navy, .is-deep) .hk-stars input:checked ~ label.hk-star:not(.mx-tile):not(.mx-chip):not(.mx-opt):not(.mx-photo), .mx .oa-sec:is(.is-navy, .is-deep) .hk-stars label.hk-star:not(.mx-tile):not(.mx-chip):not(.mx-opt):not(.mx-photo):hover, .mx .oa-sec:is(.is-navy, .is-deep) .hk-stars label.hk-star:not(.mx-tile):not(.mx-chip):not(.mx-opt):not(.mx-photo):hover ~ label.hk-star:not(.mx-tile):not(.mx-chip):not(.mx-opt):not(.mx-photo) {color: var(--oa-sea);}
.mx .oa-sec .hk-stars input:focus-visible + label.hk-star:not(.mx-tile):not(.mx-chip):not(.mx-opt):not(.mx-photo) {outline: 2px solid var(--oa-sea); outline-offset: 2px; border-radius: 6px;}
.mx .hk-stars-ro {margin: 6px 0 0; font-size: 20px; letter-spacing: 2px; color: var(--oa-action);}
.mx .hk-stars-ro span {color: var(--oa-field);}
.mx .hk-stars-ro small {font-size: 13px; letter-spacing: 0; color: inherit; opacity: .85;}
.mx .oa-head .hk-stars-ro.is-head {color: var(--oa-sea);}
.mx .oa-head .hk-stars-ro.is-head span {color: rgba(255, 255, 255, .28);}
.mx .oa-head .hk-stars-ro.is-head small {color: #fff;}
.mx .hk-stars-ro.is-sm {font-size: 13px; letter-spacing: 1px;}
.mx-pg-hk .hk-dl {display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 8px 0 0; font-size: 14.5px;}
.mx-pg-hk .hk-dl dt {color: var(--t-ink2); font-weight: 600;}
.mx-pg-hk .hk-dl dd {margin: 0; color: var(--t-ink); overflow-wrap: anywhere;}
.mx-pg-hk .hk-contacts-link {margin: 10px 0 2px;}
.mx-pg-hk .hk-filter {margin: 12px 0 6px;}
.mx-pg-hk .hk-card {border-bottom: 1px solid var(--t-line); padding-bottom: 12px;}
.mx-pg-hk .hk-card:last-child {border-bottom: 0;}
.mx-pg-hk .hk-card .oa-row {border-bottom: 0;}
.mx-pg-hk .hk-card-acts {display: flex; flex-wrap: wrap; gap: 8px; padding-inline-start: 58px;}
.mx-pg-hk .hk-card-acts form {margin: 0;}
.mx-pg-hk .hk-card-acts .mx-chip {text-decoration: none; cursor: pointer; font: inherit;}
.mx-pg-hk .hk-off {font-size: 11.5px; font-weight: 700; color: var(--oa-wait); margin-inline-start: 6px;}
/* Add a housekeeper: two ways in - Part-time (contact + rate) or Permanent (offer letter). */
.mx-pg-hk .hk-q {margin: 4px 0 10px; font-size: 14.5px; font-weight: 700; color: var(--t-ink);}
.mx-pg-hk .hk-two {display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px;}
.mx-pg-hk .hk-two-opt {display: flex; flex-direction: column; gap: 4px; min-height: 92px; padding: 14px; border-radius: 14px; background: var(--oa-wait-bg); color: var(--oa-wait); text-decoration: none;}
.mx-pg-hk .hk-two-opt.is-perm {background: var(--oa-up-bg); color: var(--oa-up);}
.mx-pg-hk .hk-two-opt b {font-size: 16px;}
.mx-pg-hk .hk-two-opt small {font-size: 12.5px; line-height: 1.35; opacity: .9;}
.mx-pg-hk .hk-pt {padding-top: 4px; scroll-margin-top: 80px;}
.mx-pg-hk .hk-inhr {margin-top: 16px; border-top: 1px solid var(--t-line);}
.mx-pg-hk .hk-inhr > summary {display: flex; align-items: center; min-height: 50px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--t-accent);}
.mx-pg-hk .hk-inhr > summary::-webkit-details-marker {display: none;}
@media (prefers-reduced-motion: reduce) {.mx .oa-sec .hk-stars label.hk-star:not(.mx-tile):not(.mx-chip):not(.mx-opt):not(.mx-photo) {transition: none;}}
@media (prefers-reduced-motion: reduce) {.mx-pg-hk .hk-person > summary .oa-chev, .mx-pg-hk .hk-released > summary::after {transition: none;}}
/* hk/public.blade.php */
/* No top bar and no tab bar on this page */
.mx-pg-hkpublic .oa-main.hk-pub {padding-bottom: calc(env(safe-area-inset-bottom) + 28px);}
.mx-pg-hkpublic .hk-pub .oa-head {padding-top: calc(env(safe-area-inset-top) + 34px);}
.mx-pg-hkpublic .hk-win {margin: 6px 0 0; font-size: 13.5px; color: var(--t-ink2);}
/* A room: tap its name to fold it (a finished room starts folded) */
.mx-pg-hkpublic .room {margin-top: 8px;}
.mx-pg-hkpublic .room + .room {margin-top: 0; border-top: 1px solid var(--t-line);}
.mx-pg-hkpublic .room-h {display: flex; align-items: center; gap: 10px; min-height: 56px; list-style: none; cursor: pointer;}
.mx-pg-hkpublic .room-h::-webkit-details-marker {display: none;}
.mx-pg-hkpublic .room-nm {font-size: 16px; font-weight: 700; color: var(--t-ink);}
.mx-pg-hkpublic .room-ct {margin-inline-start: auto; font-size: 13px; font-weight: 700; color: var(--t-ink2);}
.mx-pg-hkpublic .room-ct.full {color: var(--oa-ok);}
.mx-pg-hkpublic .room-tg {font-size: 12.5px; color: var(--t-ink2); white-space: nowrap;}
.mx-pg-hkpublic .room-chev {flex: none; width: 18px; height: 18px; color: var(--t-ink2); transform: rotate(90deg); transition: transform .2s var(--oa-ease);}
.mx-pg-hkpublic .room[open] > .room-h .room-chev {transform: rotate(-90deg);}
/* "Broken?" on an item: a small form under its name */
.mx-pg-hkpublic .mx-task:has(.dmg-d[open]) {align-items: flex-start;}
.mx-pg-hkpublic .dmg-d > summary {display: inline-flex; min-height: 44px; list-style: none; cursor: pointer;}
.mx-pg-hkpublic .dmg-d > summary::-webkit-details-marker {display: none;}
.mx-pg-hkpublic .dmg-form {display: grid; gap: 10px; padding: 0 0 6px;}
.mx-pg-hkpublic .dmg-form input[type=file]::file-selector-button {min-height: 44px; margin-inline-end: 10px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--oa-up-bg); color: var(--oa-up); font: inherit; font-weight: 700; cursor: pointer;}
.mx-pg-hkpublic .oa-btn.dmg-send {background: var(--oa-bad); color: #fff;}
/* hk/review.blade.php */
.mx-pg-hkreview .hk-head-pill {margin-top: 12px;}
.mx-pg-hkreview .hk-link {word-break: break-all;}
/* Check the work: boat (numbered) > room > items */
.mx-pg-hkreview .hk-leg {display: flex; align-items: center; gap: 10px; margin: 22px 0 4px;}
.mx-pg-hkreview .oa-eyebrow + .hk-leg {margin-top: 14px;}
.mx-pg-hkreview .hk-leg b {font-size: 17px; font-weight: 600; color: var(--t-ink);}
.mx-pg-hkreview .hk-room {display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 16px 0 2px;}
.mx-pg-hkreview .hk-room b {font-size: 15px; font-weight: 700; color: var(--t-accent);}
.mx-pg-hkreview .hk-room span {font-size: 12.5px; color: var(--t-ink2);}
.mx-pg-hkreview .hk-item {padding: 14px 0;}
.mx-pg-hkreview .hk-item + .hk-item {border-top: 1px solid var(--t-line);}
.mx-pg-hkreview .hk-item .oa-row {padding: 0;}
.mx-pg-hkreview .hk-note {margin: 8px 0 0; padding-inline-start: 54px; font-size: 13.5px; color: var(--t-ink2);}
.mx-pg-hkreview .hk-rev {margin-top: 12px;}
.mx-pg-hkreview .hk-rev .oa-btns {margin-top: 10px;}
.mx-pg-hkreview .oa-btn.hk-good {background: var(--oa-ok); color: #fff;}
.mx-pg-hkreview .oa-btn.hk-redo {background: var(--oa-bad-bg); color: var(--oa-bad);}
.mx-pg-hkreview .oa-btn.hk-bad {background: var(--oa-bad); color: #fff;}
.mx-pg-hkreview .hk-dmg {margin-top: 6px;}
.mx-pg-hkreview .hk-dmg > summary {display: inline-flex; align-items: center; gap: 6px; min-height: 44px; list-style: none; cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--oa-bad);}
.mx-pg-hkreview .hk-dmg > summary::-webkit-details-marker {display: none;}
.mx-pg-hkreview .hk-dmg form {display: grid; gap: 10px; padding-top: 4px;}
.mx-pg-hkreview .hk-dmg .oa-btns {margin-top: 4px;}
.mx-pg-hkreview .hk-dmg input[type=file]::file-selector-button {min-height: 44px; margin-inline-end: 10px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--oa-up-bg); color: var(--oa-up); font: inherit; font-weight: 700; cursor: pointer;}

/* ── The crew member's own HR file (7 Oct 2026): Me, profile, papers, requests, warnings ── */
/* Photo + name on the navy head; the camera badge opens the photo field. Its own class: .mx-av is the 46px avatar of the Team and Housekeeping lists. */
.mx-who {display: flex; align-items: center; gap: 16px; margin-top: 6px;}
.mx-meav {position: relative; flex: none; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--oa-tide); color: #04222F; font-size: 34px; font-weight: 600; line-height: 1; text-decoration: none;}
.mx-meav img {width: 100%; height: 100%; border-radius: 50%; object-fit: cover;}
.mx-meav em {font-style: normal;}
.mx-meav i {position: absolute; inset-inline-end: -2px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--oa-action); box-shadow: 0 2px 8px rgba(3, 41, 69, .3);}
.mx-meav i svg {width: 17px; height: 17px;}
.mx-meav:focus-visible {outline: 2px solid var(--oa-sea); outline-offset: 3px;}
.mx-who-t {min-width: 0;}
.mx-who-t b {display: block; font-size: 21px; font-weight: 600; line-height: 1.3; color: #fff; overflow-wrap: anywhere;}
.mx-who-t span {display: block; font-size: 14px; color: rgba(234, 242, 248, .9); overflow-wrap: anywhere;}
/* A row of the file: icon, what, its state, Add / Change or a chevron. The whole row is the tap target. */
.mx-hrlist {margin-top: 6px;}
.mx-hrrow {display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 8px 0; position: relative; color: inherit; text-decoration: none;}
.mx-hrrow + .mx-hrrow::before, .mx-paper + .mx-paper::before {content: ""; position: absolute; top: 0; inset-inline: 0; height: 1px; background: var(--t-line);}
a.mx-hrrow:active {background: var(--oa-press);}
a.mx-hrrow:focus-visible {outline: 2px solid var(--oa-action); outline-offset: 2px; border-radius: 12px;}
.mx-hrrow-t {flex: 1; min-width: 0;}
.mx-hrrow-t b {display: block; font-size: 15.5px; font-weight: 600; color: var(--t-ink);}
.mx-hrrow-t span {display: block; font-size: 13.5px; color: var(--t-ink2); overflow-wrap: anywhere;}
.mx-hrrow-t span.is-miss, .mx-hrrow-t span.is-wait {color: var(--oa-wait); font-weight: 600;}
.mx-hrrow-t span.is-ok {color: var(--oa-ok); font-weight: 600;}
.mx-hrrow-t span.is-bad {color: var(--oa-bad); font-weight: 600;}
.mx-hrrow-act {flex: none; padding: 10px 4px; font-size: 14px; font-weight: 700; color: var(--oa-action);}
.mx-hrrow .oa-chev {flex: none; width: 20px; height: 20px; color: var(--oa-muted);}
.mx-pick-ic.is-hr {background: #CDE6F3; color: var(--oa-up);}
.mx-wait {display: inline-block; margin-inline-start: 6px; padding: 2px 9px; border-radius: 999px; background: var(--oa-wait-bg); color: var(--oa-wait); font-size: 11.5px; font-weight: 700; letter-spacing: 0; text-transform: none; vertical-align: 1px;}
.mx-mt6 {margin-top: 6px;}
.mx-pre {white-space: pre-line;}
:is(.mx-pg-profile, .mx-pg-warnings).mx .oa-call.mx-call-top {align-items: flex-start;}
:is(.mx-pg-profile, .mx-pg-warnings) .oa-call + .mx-q, .mx-pg-profile .oa-call + .oa-call {margin-top: 10px;}
/* Profile form */
.mx-pg-profile [id] {scroll-margin-top: 84px;}
.mx-pg-profile.mx .oa-sec label.mx-photo:not(.mx-tile):not(.mx-chip):not(.mx-opt) {display: flex; margin: 0; font-size: 15px; font-weight: 700; color: var(--oa-action); text-align: center; cursor: pointer;}
.mx-pg-profile .mx-photo img {width: 72px; height: 72px; object-fit: cover; border-radius: 12px;}
.mx-pg-profile .mx-photo-me img {border-radius: 50%;}
.mx-pg-profile .mx-photo small.is-ok {color: var(--oa-ok); font-weight: 600;}
.mx-pg-profile .mx-photo small.is-wait {color: var(--oa-wait); font-weight: 600;}
.mx-pg-profile .mx-photo.is-picked {border-style: solid;}
.mx-pg-profile .mx-up2 {display: grid; grid-template-columns: 1fr 1fr; gap: 10px;}
.mx-pg-profile .mx-gap8 {margin-top: 8px;}
.mx-pg-profile .oa-eyebrow .mx-wait {margin-inline-start: 8px;}
/* Papers */
.mx-paper {position: relative;}
.mx-paper .mx-hrrow + .mx-paper-files {margin-top: -4px;}
.mx-paper-files {display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 0 0 12px 54px;}
.mx[dir="rtl"] .mx-paper-files {padding: 0 54px 12px 0;}
.mx-paper-files .oa-link {min-height: 36px; display: inline-flex; align-items: center;}
/* Requests to HR */
.mx-pg-hrreq .mx-tiles {grid-template-columns: 1fr 1fr;}
.mx-pg-hrreq .mx-two {display: flex; gap: 10px;}
.mx-pg-hrreq .mx-two > div {flex: 1; min-width: 0;}
.mx-pg-hrreq .mx-rq {padding: 14px 0; position: relative;}
.mx-pg-hrreq .mx-rq + .mx-rq::before {content: ""; position: absolute; top: 0; inset-inline: 0; height: 1px; background: var(--t-line);}
.mx-pg-hrreq .mx-rq-top {display: flex; align-items: flex-start; gap: 10px;}
.mx-pg-hrreq .mx-rq-main {min-width: 0;}
.mx-pg-hrreq .mx-rq-main b {display: block; font-size: 16px; font-weight: 600; color: var(--t-ink);}
.mx-pg-hrreq .mx-rq-main span {display: block; margin-top: 2px; font-size: 13.5px; color: var(--t-ink2); overflow-wrap: anywhere;}
.mx-pg-hrreq .mx-rq .oa-pill {margin-inline-start: auto; flex: none;}
.mx-pg-hrreq .mx-rq > .oa-link {margin-top: 8px;}
a.mx-pick-b {text-decoration: none;}
.mx-pg-hrreq a.mx-step-back {display: inline-flex; align-items: center; text-decoration: none;}
/* Warnings */
.mx-pg-warnings .mx-warn-reply {margin-top: 8px; min-height: 36px; display: inline-flex; align-items: center;}

/* ── Sign-in and password pages (7 Oct 2026): a real fleet photo above, the form on a white panel that rides over it ── */
.mx-gate {min-height: 100dvh; display: flex; flex-direction: column; background: var(--oa-surface);}
.mx-gate-photo {position: relative; min-height: 46dvh; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: calc(env(safe-area-inset-top) + 18px) var(--oa-gut) calc(var(--oa-lift) + 22px); color: #fff;
  background: linear-gradient(180deg, rgba(3, 41, 69, .78) 0%, rgba(3, 41, 69, .2) 22%, rgba(3, 41, 69, 0) 40%, rgba(3, 41, 69, .25) 62%, rgba(3, 41, 69, .94) 100%),
              url('/images/marina/login-vip.jpg') center 58% / cover no-repeat, var(--oa-navy);}
/* The steps after sign-in: a shorter band, darker where the title sits so it never fights the boat */
.mx-gate-photo.is-short {min-height: 30dvh;
  background: linear-gradient(180deg, rgba(3, 41, 69, .78) 0%, rgba(3, 41, 69, .3) 30%, rgba(3, 41, 69, .62) 60%, rgba(3, 41, 69, .96) 100%),
              url('/images/marina/login-vip.jpg') center 52% / cover no-repeat, var(--oa-navy);}
.mx-gate-logo .oa-logo {height: 56px; width: auto; filter: drop-shadow(0 1px 8px rgba(3, 41, 69, .7));}
.mx-gate-photo .oa-eyebrow {color: var(--oa-sea); text-shadow: 0 1px 8px rgba(3, 41, 69, .8);}
.mx-gate-photo .oa-title {font-size: 34px; text-shadow: 0 2px 14px rgba(3, 41, 69, .55);}
.mx-gate-sheet {position: relative; z-index: var(--oa-z-panel); flex: 1; margin-top: calc(var(--oa-lift) * -1); padding: 30px var(--oa-gut) calc(env(safe-area-inset-bottom) + 28px);
  border-radius: var(--oa-pr) var(--oa-pr) 0 0; background: var(--oa-surface); color: var(--oa-ink);}
.mx-gate-in {width: 100%; max-width: 440px; margin: 0 auto;}
.mx-gate-sheet h2 {margin: 0; font-size: 23px; font-weight: 600; color: var(--oa-ink); text-wrap: balance;}
.mx-gate-sheet .mx-gate-p {margin: 6px 0 22px; font-size: 14.5px; line-height: 1.6; color: var(--oa-ink-2);}
.mx-gate-sheet .mx-gate-p b {color: var(--oa-ink); font-weight: 600; overflow-wrap: anywhere;}
.mx-gate form {display: grid; gap: 16px;}
.mx-gate .oa-field input {width: 100%; min-height: 54px; padding: 12px 14px; border: 1px solid var(--oa-field); border-radius: 14px; background: #fff; color: var(--oa-ink); font: inherit; font-size: 16px;}
.mx-gate .oa-field input:focus {outline: none; border-color: var(--oa-action); box-shadow: 0 0 0 3px rgba(5, 113, 160, .18);}
.mx-gate .oa-field .hint {margin-top: 6px; color: var(--oa-muted); font-size: 12.5px;}
.mx-gate .oa-btn {margin-top: 4px;}
/* Password with a show/hide eye */
.mx-pw {position: relative;}
.mx-pw input {padding-inline-end: 54px !important;}
.mx-pw-eye {position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 12px; background: none; color: var(--oa-muted); cursor: pointer;}
.mx-pw-eye svg {width: 22px; height: 22px;}
.mx-pw-eye:focus-visible {outline: 2px solid var(--oa-action); outline-offset: 0;}
.mx-pw-eye .is-off, .mx-pw-eye[aria-pressed="true"] .is-on {display: none;}
.mx-pw-eye[aria-pressed="true"] .is-off {display: block;}
.mx-gate-row {display: flex; justify-content: flex-end; margin: -6px 0 -4px;}
.mx-gate-link {display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 2px; border: 0; background: none; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--oa-action); text-decoration: none; cursor: pointer;}
.mx-gate-link:focus-visible {outline: 2px solid var(--oa-action); outline-offset: 2px; border-radius: 8px;}
.mx-gate-foot {margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; font-size: 13.5px; color: var(--oa-muted);}
.mx-gate .ok, .mx-gate .err {margin: 0; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5;}
.mx-gate .ok {background: var(--oa-ok-bg); color: #135C38;}
.mx-gate .err {background: var(--oa-bad-bg); color: #6E1A15;}
.mx-gate .mx-otp {letter-spacing: 14px; text-align: center; font-size: 28px !important; font-weight: 300; font-variant-numeric: tabular-nums; direction: ltr;}
@media (min-width: 700px) {.mx-gate-photo {min-height: 40dvh;} .mx-gate-photo.is-short {min-height: 26dvh;}}

/* ── Home (7 Oct 2026): the date under the greeting, the second duty choice, the "you are at the marina" sheet ── */
.mx-hero-date {margin-top: 2px; font-size: 14px; color: rgba(234, 242, 248, .86); text-shadow: 0 1px 10px rgba(3, 41, 69, .45);}
.oa-btn.mx-btn-ghost {background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(140, 246, 249, .55); text-decoration: none;}
.oa-btn.mx-btn-ghost:active {background: rgba(255, 255, 255, .16);}
.mx-nudge-h {display: flex; align-items: center; gap: 14px; margin-bottom: 10px;}
.mx-nudge-h .mx-sheet-t {margin: 0;}

/* ── Prepare for duty: the next trip, its before-trip list in parts, take a part ── */
.mx-pg-prep .mx-prep-by {color: #fff; font-weight: 600;}
.mx-pg-prep .mx-chip {text-decoration: none;}
.mx-pg-prep .mx-chip.on {background: var(--oa-navy); color: #fff; box-shadow: none;}
.mx-parts {margin-top: 4px;}
.mx-part {position: relative; padding: 10px 0 8px;}
.mx-part + .mx-part::before {content: ""; position: absolute; top: 0; inset-inline: 0; height: 1px; background: var(--t-line);}
.mx-part-top {display: flex; align-items: center; gap: 12px; min-height: 52px;}
.mx-part-t {flex: 1; min-width: 0;}
.mx-part-t b {display: block; font-size: 15.5px; font-weight: 600; color: var(--t-ink);}
.mx-part-t span {display: block; font-size: 13.5px; color: var(--t-ink2); overflow-wrap: anywhere;}
.mx-part .mx-btn {min-width: 76px; font-size: 14px; font-weight: 700;}
.mx-part .oa-pill {flex: none;}
.mx-part-list summary {display: inline-flex; align-items: center; min-height: 40px; list-style: none; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--t-accent);}
.mx-part-list summary::-webkit-details-marker {display: none;}
.mx-part-list summary:focus-visible {outline: 2px solid var(--oa-action); outline-offset: 2px; border-radius: 6px;}
.mx-part-list ol {margin: 0 0 6px; padding-inline-start: 22px; font-size: 13.5px; line-height: 1.6; color: var(--t-ink2);}
.mx-part-leave {margin: 0;}
/* The plan page names who took each part */
.mx-secname .mx-secwho {font-weight: 600; letter-spacing: 0; color: var(--t-ink2);}
/* The trips to choose from: one row that scrolls sideways, not a stack that fills the screen */
.mx-pg-prep .mx-chips {flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--oa-gut) * -1); padding: 2px var(--oa-gut) 6px; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: var(--oa-gut);}
.mx-pg-prep .mx-chips::-webkit-scrollbar {display: none;}
.mx-pg-prep .mx-chips .mx-chip {flex: none; scroll-snap-align: start;}
/* Money: accounts sent a receipt back (7 Oct 2026) */
.mx-pg-money .mx-rq-back {color: var(--oa-bad); font-weight: 600;}
.mx-pg-money .mx-rq-top > div:first-child {flex: 1;}
.mx-pg-money .mx-rq-next {color: var(--t-accent); font-weight: 600;}

/* ── Roles (7 Oct 2026): who has which part, hours tables ── */
.mx-whochips {display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px;}
.mx-whochips span {padding: 5px 11px; border-radius: 999px; background: var(--oa-up-bg); color: var(--oa-up); font-size: 12.5px; font-weight: 600;}
.mx-whochips span.is-me {background: var(--oa-navy); color: #fff;}
.mx-hours-link {margin-top: 14px;}
.mx-table {width: 100%; border-collapse: collapse; font-size: 14px;}
.mx-table th {padding: 6px 4px; border-bottom: 1px solid var(--t-line); color: var(--t-ink2); font-size: 12px; font-weight: 600; text-align: start;}
.mx-table td {padding: 11px 4px; border-bottom: 1px solid var(--t-line); color: var(--t-ink);}
.mx-table tr:last-child td {border-bottom: 0;}
.mx-table .n {text-align: end; white-space: nowrap;}
.mx-table tr.is-open td {color: var(--oa-wait);}
.mx-table .mx-dim {color: var(--t-ink2);}

/* ── Stock per trip (7 Oct 2026) ── */
.mx-tiles.mx-tiles-2 {grid-template-columns: 1fr 1fr;}
.mx-numin {width: 64px !important; min-height: 44px !important; padding: 8px 8px !important; text-align: end; font-size: 16px !important;}
.mx-pg-tripstock .mx-table td {vertical-align: middle;}
.mv-two {display: flex; gap: 10px;}
.mv-two > div {flex: 1; min-width: 0;}
.mv-buyin {display: flex; gap: 6px; align-items: center;}
.mv-buyin input {width: 82px !important; min-height: 44px !important; padding: 8px 10px !important;}
/* Who helped on a job (7 Oct 2026) */
.mx-mates {display: grid; gap: 10px; margin: 6px 0 4px;}
.mx-mates .oa-btn {justify-content: flex-start; background: var(--oa-light); color: var(--oa-ink); box-shadow: inset 0 0 0 1px var(--oa-field); font-weight: 600;} /* the sheet is white: the dark panels' text colour made these white on white */

/* The boat team (8 Oct 2026): who is on the trip, role labels, Boat out / Boat back. */
.mx .mx-crewlist {margin-top: 4px;}
.mx .mx-crewrow {display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--t-line);}
.mx .mx-crewrow:last-child {border-bottom: 0;}
.mx .mx-crewrow .mx-av {flex: none;}
.mx .mx-crewrow-main {flex: 1; min-width: 0;}
.mx .mx-crewrow-main b {display: block; font-size: 15px; color: var(--t-ink);}
.mx .mx-crewrow-main small {display: block; font-size: 12.5px; color: var(--t-ink2); margin-top: 2px;}
.mx .mx-crewrow form {margin: 0;}
.mx .mx-role {display: inline-block; margin-inline-start: 8px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; vertical-align: 2px; background: var(--oa-off-bg); color: var(--oa-off);}
.mx .mx-role.is-captain {background: var(--oa-navy); color: var(--oa-sea);}
.mx .mx-role.is-assistant_captain {background: var(--oa-up-bg); color: var(--oa-up);}
.mx .mx-role.is-crew {background: var(--oa-wait-bg); color: var(--oa-wait);}
.mx .mx-role.is-marine_supervisor {background: var(--oa-ok-bg); color: var(--oa-ok);}
.mx .mx-crewtick {flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 9px; border-radius: 12px; border: 2px solid var(--oa-field); background: transparent; color: #fff; cursor: pointer;}
.mx .mx-crewtick.is-on {border-color: var(--oa-action); background: var(--oa-action);}
.mx .mx-crewtick svg {width: 22px; height: 22px;}
.mx .mx-tripwarn {margin: 14px 0 4px; padding: 12px 14px; border-radius: 12px; background: var(--oa-wait-bg); color: var(--oa-wait); font-size: 14px; line-height: 1.45;}
.mx .mx-tripok {margin: 14px 0 4px; padding: 12px 14px; border-radius: 12px; background: var(--oa-ok-bg); color: var(--oa-ok); font-size: 14px; font-weight: 600; line-height: 1.45;}

/* Tomorrow's team (8 Oct 2026): faces to pick, one-tap answers, statuses. */
.mx .mx-plan-q {margin: 2px 0 12px; font-size: 15px; font-weight: 700; color: var(--t-ink);}
.mx .mx-faces {display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px;}
.mx .oa-sec label.mx-face:not(.mx-tile):not(.mx-chip):not(.mx-opt):not(.mx-photo) {display: flex; flex-direction: column; align-items: center; gap: 5px; margin: 0; padding: 10px 4px; border-radius: 16px; border: 2px solid var(--oa-field); background: #fff; text-align: center; cursor: pointer;}
.mx .mx-face input {position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;}
.mx .mx-face-av {position: relative; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--oa-navy); color: #fff; font-weight: 700; font-size: 19px;}
.mx .mx-face b {font-size: 14px; color: var(--t-ink);}
.mx .mx-face small {font-size: 11px; line-height: 1.2; color: var(--t-ink2);}
.mx .oa-sec label.mx-face:has(input:checked) {border-color: var(--oa-action); background: var(--oa-up-bg);}
.mx .mx-face:has(input:checked) .mx-face-av::after {content: '✓'; position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; background: var(--oa-action); color: #fff; font-size: 12px;}
.mx .mx-face:has(input:focus-visible) {outline: 2px solid var(--oa-action); outline-offset: 2px;}
.mx .oa-sec label.mx-face.is-else:not(.mx-tile):not(.mx-chip):not(.mx-opt):not(.mx-photo) {opacity: .55;}
.mx .mx-ready {margin: 14px 0 0; padding: 13px; border-radius: 14px; background: var(--oa-ok-bg); color: var(--oa-ok); font-weight: 700; font-size: 15.5px; text-align: center;}
.mx .mx-plan-hr {margin: 22px 0 16px; border: 0; border-top: 1px solid var(--t-line);}
.mx .mx-answer {display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px;}
.mx .mx-answer .oa-btn {width: 100%; min-height: 54px; font-size: 16px;}
.mx .mx-invites .oa-h2 {margin-bottom: 0;}
.mx .mx-invites form + .oa-eyebrow {margin-top: 22px;}
.mx .mx-invite-in {margin: 10px 0 14px; padding: 14px; border-radius: 14px; background: var(--oa-up-bg); color: var(--oa-up);}
.mx .mx-invite-in p {margin: 0; font-size: 15px;}
.mx .mx-invst {flex: none; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700;}
.mx .mx-invst.is-wait {background: var(--oa-wait-bg); color: var(--oa-wait);}
.mx .mx-invst.is-no {background: var(--oa-bad-bg); color: var(--oa-bad);}

/* Crew of the month (8 Oct 2026): the race, the rules, every point with its reason; Photo +2 and Redo on a check. */
.mx .mx-prize {color: var(--oa-sea); font-weight: 700;}
.mx .mx-lastwin {margin-top: 12px; display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(140, 246, 249, .14); color: #fff; font-size: 13.5px; font-weight: 600;}
.mx .mx-race {display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--t-line);}
.mx .mx-race:last-child {border-bottom: 0;}
.mx .mx-race.is-me {margin: 2px -8px; padding-inline: 8px; border-radius: 12px; border-bottom: 0; background: var(--oa-up-bg);}
.mx .mx-race-pl {flex: none; width: 26px; text-align: center; font-weight: 700; font-size: 16px; color: var(--t-ink2);}
.mx .mx-race .mx-av {flex: none;}
.mx .mx-race-main {flex: 1; min-width: 0;}
.mx .mx-race-main b {display: block; font-size: 15px; color: var(--t-ink);}
.mx .mx-race-main small {display: block; font-size: 12.5px; color: var(--t-ink2);}
.mx .mx-race-pts {flex: none; font-weight: 700; font-size: 17px; color: var(--t-ink);}
.mx .mx-ptline, .mx .mx-rule {display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--t-line);}
.mx .mx-ptline:last-child, .mx .mx-rule:last-child {border-bottom: 0;}
.mx .mx-ptline > div, .mx .mx-rule > div {flex: 1; min-width: 0;}
.mx .mx-ptline b, .mx .mx-rule b {display: block; font-size: 14.5px; color: var(--t-ink);}
.mx .mx-ptline small, .mx .mx-rule small {display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--t-ink2);}
.mx .mx-pt {flex: none; min-width: 50px; padding: 5px 10px; border-radius: 999px; text-align: center; font-weight: 700; font-size: 14px; background: var(--oa-ok-bg); color: var(--oa-ok);}
.mx .mx-pt.is-minus {background: var(--oa-bad-bg); color: var(--oa-bad);}
.mx .mx-photo-pts {display: inline-flex; align-items: center; gap: 4px; cursor: pointer;}
.mx .mx-redo {color: var(--oa-bad);}
.mx .mx-task .mx-inline {display: inline;}

/* ── The owner's Home + one person's day (owner, 8 Oct 2026: "I can't see the staff, what they are doing, or any reports") ── */
.mx-own-sum {display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px;}
.mx-own-sum b {font-weight: 700; font-size: 17px;}
.mx-own-sum .is-bad b {color: #FFB4AC;}
.mx-own-when {font-weight: 500; font-size: 13.5px; color: var(--t-ink2);}
.mx-own-warn {color: var(--oa-bad); font-weight: 600;}
.mx-own-pts {margin: 4px 0 14px; color: var(--t-ink2);}
.mx-own-pts b {font-size: 40px; font-weight: 300; color: var(--t-ink); margin-inline-end: 6px;}

.mx-ppl {display: grid; gap: 10px; margin-top: 6px;}
.mx-pp {display: flex; align-items: flex-start; gap: 14px; padding: 14px; border-radius: var(--oa-r); background: var(--oa-surface); color: var(--t-ink); text-decoration: none; box-shadow: 0 1px 2px rgba(11, 34, 54, .06);}
.mx-pp:active {opacity: .7;}
.mx-pp.is-off {background: transparent; box-shadow: inset 0 0 0 1px var(--oa-line);}
.mx-pp-av {position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--oa-navy); color: #fff; font-size: 16px; font-weight: 700;}
.mx-pp-av img {width: 100%; height: 100%; border-radius: 50%; object-fit: cover;}
.mx-pp.is-off .mx-pp-av {background: var(--oa-field); color: var(--oa-ink);}
.mx-pp.is-off .mx-pp-av img {filter: grayscale(.6); opacity: .75;}
.mx-pp-st {position: absolute; inset-inline-end: 0; bottom: 1px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--oa-surface); background: var(--oa-off);}
.mx-pp.is-in .mx-pp-st {background: #22A86B;}
.mx-pp.is-done .mx-pp-st {background: var(--oa-blue);}
.mx-pp.is-off .mx-pp-st {display: none;}
.mx-pp-main {flex: 1; min-width: 0; display: grid; gap: 2px;}
.mx-pp-t {display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; line-height: 1.35;}
.mx-pp-t b {font-size: 16px; font-weight: 700;}
.mx-pp-t small {font-size: 12.5px; color: var(--t-ink2); font-weight: 500;}
.mx-pp-mute {display: inline-flex; align-self: center; padding: 1px 8px; border-radius: 999px; background: var(--oa-wait-bg); color: var(--oa-wait); font-size: 11.5px; font-weight: 700; line-height: 1.6;}
.mx-pp-s {font-size: 13px; color: var(--t-ink2); line-height: 1.45;}
.mx-pp-now {margin-top: 4px; padding: 6px 10px; border-radius: 10px; background: var(--oa-up-bg); color: #073853; font-size: 13px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere;}
.mx-pp-now.is-bad {background: var(--oa-bad-bg); color: #5A140F;}
.mx-pp-end {flex: none; display: grid; justify-items: end; text-align: end; min-width: 52px;}
.mx-pp-end b {font-size: 24px; font-weight: 300; line-height: 1.1;}
.mx-pp-end small {font-size: 12px; color: var(--t-ink2);}
.mx-pp-end em {margin-top: 4px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--oa-bad);}

.mx-rp-chips {margin: 4px 0 10px;}
.mx-rps {display: grid;}
.mx-rp {display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 0; color: var(--t-ink); text-decoration: none; border-bottom: 1px solid var(--t-line);}
.mx-rp:last-child {border-bottom: 0;}
.mx-rp[hidden] {display: none;}
a.mx-rp:active {opacity: .62;}
.mx-rp-ic {flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--oa-up-bg); color: var(--oa-up);}
.mx-rp.is-bad .mx-rp-ic {background: var(--oa-bad-bg); color: var(--oa-bad);}
.mx-rp.is-money .mx-rp-ic {background: var(--oa-wait-bg); color: var(--oa-wait);}
.mx-rp.is-hk .mx-rp-ic, .mx-rp.is-hr .mx-rp-ic {background: var(--oa-ok-bg); color: var(--oa-ok);}
.mx-rp-main {flex: 1; min-width: 0; display: grid; gap: 2px;}
.mx-rp-t {font-size: 14.5px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere;}
.mx-rp-s {font-size: 12.5px; color: var(--t-ink2); line-height: 1.45;}
.mx-rp .oa-pill {flex: none;}

.mx-tl {list-style: none; margin: 6px 0 0; padding: 0; display: grid;}
.mx-tl li {display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--t-line);}
.mx-tl li:last-child {border-bottom: 0;}
.mx-tl-at {font-size: 13px; font-weight: 700; color: var(--t-ink2); padding-top: 1px;}
.mx-tl-t {display: grid; gap: 2px; font-size: 14.5px; color: var(--t-ink); text-decoration: none; line-height: 1.4;}
.mx-tl-t b {font-weight: 600;}
.mx-tl-t span {font-size: 13px; color: var(--t-ink2);}
.mx-tl-t .mx-tl-bad {color: var(--oa-bad); font-weight: 600;}
.mx-pg-owner .oa-head .oa-btn.is-quiet {background: rgba(255, 255, 255, .12); color: #fff;}
.mx-pg-owner .oa-btn svg {margin-inline-end: 6px;}
.mx-pg-owner img.mx-av {object-fit: cover;}
.mx-pg-owner .mx-rank {flex: none; width: 20px; text-align: center; font-size: 14px; font-weight: 700; color: var(--t-ink2);}
@media (prefers-reduced-motion: no-preference) {
  .mx-pp, .mx-rp {transition: opacity .15s var(--oa-ease);}
}

/* ── Faces (owner, 9 Oct 2026: "photos look bigger and smaller"). A photo is any shape - Sandun's is 720×1608, Shiblo's
   2182² - and height:100% does not hold inside a grid avatar, so the round frame grew to the photo (84×188 on Me).
   Every face is a centred square crop now, in every list. ── */
.mx-meav img, .mx-pp-av img, .mx-av img, .mx-face-av img {display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 50%; object-fit: cover;}
img.mx-av {aspect-ratio: 1 / 1; object-fit: cover;}
.mx-av {overflow: hidden;} /* not .mx-face-av: its ✓ badge sits outside the circle */
.mx-photo-me img {aspect-ratio: 1 / 1; object-fit: cover;}

/* ── Problems to fix, with a tracker (owner, 9 Oct 2026) ── */
.mx-fixes {display: grid; gap: 10px; margin-top: 6px;}
.mx-fix {display: grid; gap: 4px; padding: 14px; border-radius: var(--oa-r); background: var(--oa-surface); color: var(--oa-ink); text-decoration: none; box-shadow: 0 1px 2px rgba(11, 34, 54, .07), inset 0 0 0 1px var(--oa-line);}
.oa-sec.is-white .mx-fix {background: var(--oa-light); box-shadow: none;}
.mx-fix.is-stop {box-shadow: inset 0 0 0 2px var(--oa-bad);}
.mx-fix:active {opacity: .7;}
.mx-fix-t {display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;}
.mx-fix-t b {font-size: 15.5px; line-height: 1.35; overflow-wrap: anywhere;}
.mx-fix-t .oa-pill {flex: none;}
.mx-fix-s {font-size: 13px; color: var(--oa-muted); line-height: 1.45;}
.mx-fix-urg {margin-top: 4px; padding: 7px 10px; border-radius: 10px; background: var(--oa-bad-bg); color: #5A140F; font-size: 13px; font-weight: 600;}
.mx-track {list-style: none; margin: 8px 0 0; padding: 0; display: grid;}
.mx-track li {position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 0 0 18px;}
.mx-track li::before {content: ''; position: absolute; left: 14px; top: 28px; bottom: 0; width: 2px; background: var(--oa-field);}
.mx-track li:last-child {padding-bottom: 0;}
.mx-track li:last-child::before {display: none;}
.mx-track i {width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 14px; background: #fff; box-shadow: inset 0 0 0 2px var(--oa-field); color: var(--oa-muted);}
.mx-track li.is-done i {background: var(--oa-ok); color: #fff; box-shadow: none;}
.mx-track li.is-done::before {background: var(--oa-ok);}
.mx-track li.is-now i {background: var(--oa-wait-bg); box-shadow: inset 0 0 0 2px var(--oa-wait);}
.mx-track b {display: block; font-size: 15px; color: var(--oa-ink); line-height: 1.4; padding-top: 4px;}
.mx-track span {display: block; font-size: 13px; color: var(--oa-muted); line-height: 1.45;}
.mx-track li.is-now b {color: var(--oa-wait);}
.mx-fixpics {display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 16px;}
.mx-fixpics figure {margin: 0;}
.mx-fixpics img {display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px;}
.mx-fixpics figcaption {margin-top: 4px; font-size: 12px; color: var(--oa-muted);}
.mx-fixq {margin: 18px 0 8px; font-size: 14px; font-weight: 600; color: var(--oa-muted);}
.mx-fixform .mx-fixq:first-of-type, .mx-fixoffice .mx-fixq, .mx-fixdone .mx-fixq {margin-top: 6px;}
.mx-fixyn {display: grid; grid-template-columns: 1fr 1fr; gap: 10px;}
.mx-fixok, .mx-fixstop {display: grid; place-items: center; min-height: 56px; border-radius: 14px; font-weight: 700; font-size: 15px; text-align: center; padding: 0 8px;}
.mx-fixok {background: var(--oa-ok-bg); color: var(--oa-ok);}
.mx-fixstop {background: var(--oa-bad-bg); color: var(--oa-bad);}
.mx-opt input:checked + .mx-fixok {background: var(--oa-ok); color: #fff;}
.mx-opt input:checked + .mx-fixstop {background: var(--oa-bad); color: #fff;}
.mx-opt input:focus-visible + .mx-fixok, .mx-opt input:focus-visible + .mx-fixstop {outline: 2px solid var(--oa-action); outline-offset: 2px;}
.mx-photo.mx-fixphoto {display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; margin-top: 14px; border-radius: 14px; border: 1.5px dashed var(--oa-field); color: var(--oa-action); font-weight: 700; font-size: 14.5px; cursor: pointer;}
.mx-photo.mx-fixphoto.is-set {border-style: solid; background: var(--oa-ok-bg); color: var(--oa-ok);}
.mx-fixacts {display: grid; gap: 10px; margin-top: 14px;}
.mx-fixacts form {margin: 0;}
.mx-fixacts .oa-btn {width: 100%;}
.mx-fixoffice, .mx-fixdone {margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--t-line);}
.mx-fixnote {width: 100%; margin-top: 4px;}
.mx-fixed-btn:disabled {opacity: .45;}

/* Boat out / Boat back on the captain's Home (9 Oct 2026) */
.mx-boatout {display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0;}
.mx-boatout + .mx-boatout {border-top: 1px solid var(--t-line);}
.mx-boatout b {display: block; font-size: 17px; color: #fff;}
.mx-boatout span {display: block; font-size: 13px; color: rgba(234, 242, 248, .85);}
.mx-boatout .oa-btn {flex: none; width: auto; padding-inline: 22px;}

/* Fuel and water as a gauge (9 Oct 2026) */
.mx-gauges {display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 10px;}
.mx-gauge {min-height: 44px; border: 0; border-radius: 10px; background: var(--oa-up-bg); color: var(--oa-up); font: 700 14px var(--oa-font); cursor: pointer;}
.mx-gauge:active {background: var(--oa-navy); color: #fff;}
.mx-gauge:focus-visible {outline: 2px solid var(--oa-action); outline-offset: 2px;}

/* What the crew said + the conversation on a problem (9 Oct 2026) */
.mx-said {margin-top: 6px; padding: 16px; border-radius: var(--oa-r); background: var(--oa-surface); box-shadow: 0 1px 2px rgba(11, 34, 54, .07);}
.mx-said-top {display: flex; align-items: center; gap: 12px;}
.mx-said-top > div > b {display: block; font-size: 16px; color: var(--oa-ink);}
.mx-said-top > div > span {display: block; font-size: 13px; color: var(--oa-muted);}
.mx-said-q {margin: 14px 0 0; font-size: 15px; line-height: 1.5; color: var(--oa-ink);}
.mx-said-tags {display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px;}
.mx-said-tags span {padding: 5px 11px; border-radius: 999px; background: var(--oa-up-bg); color: var(--oa-up); font-size: 13px; font-weight: 700;}
.mx-said-tags span.is-bad {background: var(--oa-bad-bg); color: var(--oa-bad);}
.mx-said-tags span.is-ok {background: var(--oa-ok-bg); color: var(--oa-ok);}
.mx-said-words {margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--oa-light); font-size: 16px; line-height: 1.5; color: var(--oa-ink); font-style: italic;}
.mx-said-pic {display: block; width: 100%; max-height: 260px; object-fit: cover; margin-top: 12px; border-radius: 12px;}
.mx-said-none {margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--oa-wait-bg); color: var(--oa-wait); font-size: 14px; font-weight: 600; line-height: 1.45;}
.mx-talk {display: grid; gap: 10px; margin-top: 8px;}
.mx-msg-b {max-width: 88%; padding: 10px 13px; border-radius: 14px 14px 14px 4px; background: var(--oa-light); color: var(--oa-ink);}
.mx-msg-b.is-me {justify-self: end; border-radius: 14px 14px 4px 14px; background: var(--oa-up-bg);}
.mx-msg-who {display: block; font-size: 12px; font-weight: 700; color: var(--oa-muted);}
.mx-msg-b p {margin: 3px 0 0; font-size: 15px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere;}
.mx-msg-b img {display: block; max-width: 100%; margin-top: 8px; border-radius: 10px;}
.mx-talk-form {margin-top: 14px;}
.mx-talk-form textarea {width: 100%; min-height: 84px; padding: 12px; border-radius: 12px; border: 1px solid var(--oa-field); font: 15px/1.45 var(--oa-font); resize: vertical;}
.mx-talk-acts {display: flex; gap: 10px; margin-top: 10px;}
.mx-talk-acts .oa-btn {flex: 1;}
.mx-photo.mx-talk-pic {display: grid; place-items: center; width: 56px; min-height: 48px; border-radius: 12px; border: 1.5px dashed var(--oa-field); font-size: 20px; cursor: pointer;}
.mx-photo.mx-talk-pic.is-set {border-style: solid; background: var(--oa-ok-bg);}
.mx-fix-said {font-size: 14px; color: var(--oa-ink); line-height: 1.45;}
.mx-fix-said i {color: var(--oa-wait); font-style: normal; font-weight: 600;}

/* Boats today at a glance (owner, 9 Oct 2026): one panel per boat - state, lists as meters by part, people, problems */
.mx-bts {display: grid; gap: 12px; margin-top: 6px;}
.mx-bt {padding: 14px; border-radius: var(--oa-r); background: var(--oa-surface); box-shadow: 0 1px 2px rgba(11, 34, 54, .07);}
.mx-bt-h {display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; row-gap: 6px; color: var(--oa-ink); text-decoration: none;}
.mx-bt-h b {font-size: 17px;}
.mx-bt-state {grid-column: 1 / -1; justify-self: start; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--oa-off-bg); color: var(--oa-off);}
.mx-bt-state.is-up {background: var(--oa-up-bg); color: var(--oa-up);}
.mx-bt-state.is-ok {background: var(--oa-ok-bg); color: var(--oa-ok);}
.mx-bt-state.is-wait {background: var(--oa-wait-bg); color: var(--oa-wait);}
.mx-bt-list {margin-top: 14px;}
.mx-bt-row {display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px;}
.mx-bt-name {font-size: 14.5px; font-weight: 700; color: var(--oa-ink);}
.mx-bt-num {font-size: 13.5px; font-weight: 600; color: var(--oa-muted);}
.mx-bar {height: 10px; border-radius: 999px; background: var(--oa-up-bg); overflow: hidden;}
.mx-bar i {display: block; height: 100%; min-width: 0; border-radius: 999px; background: var(--oa-blue);}
.mx-bar.is-full i {background: var(--oa-ok);}
.mx-bar.is-thin {height: 6px;}
.mx-bt-parts {display: grid; gap: 5px; margin-top: 8px;}
.mx-bt-part {display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: 8px; font-size: 12.5px; color: var(--oa-muted);}
.mx-bt-part .num {text-align: end; white-space: nowrap; min-width: 44px;}
.mx-bt-part em {margin-inline-start: 4px; padding: 1px 6px; border-radius: 999px; background: var(--oa-bad-bg); font-style: normal; font-weight: 700; color: var(--oa-bad);}
.mx-bt-none {margin: 12px 0 0; font-size: 13.5px; color: var(--oa-muted);}
.mx-bt-people {display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 14px;}
.mx-bt-p {display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--oa-muted);}
.mx-bt-p .mx-av {width: 30px; height: 30px; font-size: 12px; box-shadow: 0 0 0 2px var(--oa-surface), 0 0 0 4px var(--oa-field);}
.mx-bt-p.is-on .mx-av {box-shadow: 0 0 0 2px var(--oa-surface), 0 0 0 4px #22A86B;}
.mx-bt-p b {font-weight: 600; color: var(--oa-ink);}
.mx-bt-key {margin: 8px 0 0; font-size: 11.5px; color: var(--oa-muted);}
.mx-bt-key i {display: inline-block; width: 9px; height: 9px; margin: 0 4px 0 8px; border-radius: 50%; background: var(--oa-field); vertical-align: -1px;}
.mx-bt-key i:first-child {margin-left: 0;}
.mx-bt-key i.is-on {background: #22A86B;}
.mx-bt-fix {display: grid; gap: 2px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--oa-wait-bg); color: #3F2900; text-decoration: none;}
.mx-bt-fix.is-stop {background: var(--oa-bad-bg); color: #5A140F;}
.mx-bt-fix b {font-size: 14px;}
.mx-bt-fix span {font-size: 13px; line-height: 1.4;}
/* The money circle on a problem (10 Oct 2026): how much -> the office approves -> the bill -> Fixed */
.mx-fixmoney, .mx-fixbill {margin-top: 18px;}
.mx-fixacts + .mx-fixmoney, .mx-fixform + .mx-fixmoney, .mx-fixmoney + .mx-fixbill {padding-top: 18px; border-top: 1px solid var(--t-line);}
.mx-fixbill .mx-q {margin-top: 14px;}
.mx-fixmoney-ask {margin: 0 0 10px; font-size: 14.5px; line-height: 1.45; color: var(--t-ink2);}
.mx-fixmoney-ask b {font-size: 20px; font-weight: 600; color: var(--t-ink);}
.mx-fixwait {margin-top: 18px;}
.oa-eyebrow + .mx-fixoffice {margin-top: 14px; padding-top: 0; border-top: 0;}
.mx-fixpdf {display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 12px; background: var(--oa-surface); color: var(--oa-action); font-weight: 700;}
/* Coming up, by day (10 Oct 2026): every trip for 7 days */
.mx-trips-day {margin: 18px 0 2px; font-size: 13px; font-weight: 700; color: var(--oa-muted);}
.oa-eyebrow + .mx-trips-day {margin-top: 8px;}
/* Share a link (10 Oct 2026): Share first, WhatsApp and Copy as a second, closer row */
.mx .hk-link-more {margin-top: 10px;}
.mx [data-mx-share] .sp-icon, .mx [data-mx-copy] .sp-icon {flex: none;}
/* An offer letter the office sent back to fix (10 Oct 2026) */
.mx-pg-hk .hk-offer.is-back {background: var(--oa-bad-bg); color: var(--oa-bad);}
.mx .hk-sentback {border: 1.5px solid var(--oa-bad);}
.mx .hk-sentback .oa-eyebrow {color: var(--oa-bad);}
.mx .hk-sentback-q {margin: 8px 0 0; font-size: 17px; font-weight: 600; line-height: 1.45; color: var(--oa-ink);}
/* Engines: serial + last service filled by the captains (10 Oct 2026) */
.mx .mx-eng-missing {border: 1.5px solid var(--oa-bad);}
.mx .mx-eng-missing .oa-eyebrow {color: var(--oa-bad);}
.mx .mx-eng-missing-t {margin: 8px 0 0; font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--oa-ink);}
.mx .mx-eng-chips {display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px;}
.mx .mx-eng-chips span {padding: 4px 10px; border-radius: 999px; background: var(--oa-bad-bg); color: var(--oa-bad); font-size: 12.5px; font-weight: 700;}
.mx .mx-eng-setup {margin-top: 16px;}
.mx .mx-eng-setup > summary {list-style: none; cursor: pointer;}
.mx .mx-eng-setup > summary::-webkit-details-marker {display: none;}
.mx .mx-eng-setup[open] > summary {margin-bottom: 4px;}
.mx .mx-eng-form label small {font-weight: 500; color: inherit; opacity: .78;}
/* =============================================================================
   Ask Emily, the AI assistant (22 Oct 2026, the approved mockup emily-crew-chat.png). Only the owners' app tokens (owner-app.css .oa
   vars): no new colours. The entry beside the bell, Emily first in the + sheet, and the chat: her face and name in the dark page head,
   the thread on the light panel, the composer where the tab bar is.
   ============================================================================= */
/* Entry 1: on the Home cover, beside the bell - the weather pill's dark glass (.mx-wx), with her face */
.mx-ai-chip {display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 6px; border-radius: 999px; flex: none;
  color: #fff; font-size: 13.5px; font-weight: 600; white-space: nowrap; text-decoration: none;
  background: rgba(6, 24, 38, .45); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(174, 231, 255, .18);}
.mx-ai-chip img {width: 32px; height: 32px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px var(--oa-sea);}
.mx-ai-chip > i {padding: 1px 6px; border-radius: 999px; background: var(--oa-sea); color: var(--oa-deep); font-style: normal; font-size: 10px; font-weight: 800; line-height: 1.5;}
/* the SeaPlus mark keeps its 42 px beside her chip (review 2026-10-23: it shrank to 11 px at 361 px): below 392 px her label goes first */
.mx .oa-hero-top > .oa-logo {flex: none;}
@media (max-width: 391px) { .mx-ai-chip > span {display: none;} .mx-ai-chip {padding-right: 8px;} }

/* Entry 2: the + sheet row - her photo in the 52px pick icon */
.mx-pick-ic.is-ai {overflow: hidden; background: var(--oa-navy);}
.mx-pick-ic.is-ai img {width: 100%; height: 100%; object-fit: cover;}
.mx-pick-t .mx-ai-tag {display: inline-block; margin-inline-start: 6px; padding: 1px 7px; border-radius: 999px; vertical-align: 2px;
  background: var(--oa-up-bg); color: var(--oa-up); font-size: 11px; font-weight: 700;}

/* The chat: her face + name in the dark page head, the thread on the light panel */
.mx-ai-who {margin-top: 4px;}
.mx-ai-av {flex: none; width: 58px; height: 58px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--oa-sea);}
.mx-ai-who b {display: block; font-size: 22px; font-weight: 500; line-height: 1.25; color: #fff;}
.mx-ai-who span {display: block; margin-top: 2px; font-size: 13.5px; color: var(--t-ink2);}
.mx-ai-head {padding-bottom: calc(var(--oa-lift) + 22px);}
.mx-ai-head .oa-pill {margin-top: 12px;}
.mx-ai-thread {padding-top: 22px; padding-bottom: calc(var(--oa-tab-h) + 64px + env(safe-area-inset-bottom)); min-height: 70vh;}
.mx-ai-note {margin: 0 auto 18px; max-width: 34ch; text-align: center; font-size: 12.5px; line-height: 1.55; color: var(--oa-muted);}
.mx-ai-msg {display: flex; align-items: flex-end; gap: 8px; margin: 0 0 6px;}
.mx-ai-msg.is-new {margin-top: 16px;}
.mx-ai-msg .mx-ai-face {flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover;}
.mx-ai-bub {max-width: 82%; padding: 11px 14px; border-radius: 18px 18px 18px 6px; background: var(--oa-surface); color: var(--oa-ink);
  font-size: 15px; line-height: 1.55; box-shadow: 0 1px 2px rgba(11, 34, 54, .06); overflow-wrap: anywhere;}
.mx-ai-bub p {margin: 0;}
.mx-ai-bub p + p {margin-top: 8px;}
.mx-ai-bub b {font-weight: 700;}
.mx-ai-msg.is-me {justify-content: flex-end;}
.mx-ai-msg.is-me .mx-ai-bub {border-radius: 18px 18px 6px 18px; background: var(--oa-navy); color: #fff; box-shadow: none; white-space: pre-line;}
.mx-ai-time {margin: 2px 36px 0; font-size: 11.5px; color: var(--oa-muted);}
.mx-ai-msg.is-me + .mx-ai-time {text-align: end; margin-inline: 0 2px;}
[dir="rtl"] .mx-ai-bub {border-radius: 18px 18px 6px 18px;}
[dir="rtl"] .mx-ai-msg.is-me .mx-ai-bub {border-radius: 18px 18px 18px 6px;}
.mx-ai-err {margin: 12px 0 0; text-align: center; font-size: 13px; font-weight: 600; color: var(--oa-bad);}

/* Cards Emily puts inside her answer: the same rows, pills and buttons as the rest of the app */
.mx-ai-card {display: block; margin-top: 10px; padding: 4px 12px 12px; border-radius: var(--oa-r-sm); background: var(--oa-light); color: inherit; text-decoration: none;
  --t-ink: var(--oa-ink); --t-ink2: var(--oa-ink-2); --t-line: var(--oa-line);}
.mx-ai-card[hidden] {display: none;}
.mx-ai-card .oa-row {padding-block: 9px; min-height: 0; gap: 10px;}
.mx-ai-card .oa-row-t {font-size: 14px; font-weight: 600;}
.mx-ai-card .oa-row-s {font-size: 12.5px;}
.mx-ai-card .mx-ar {display: block; margin-top: 2px; font-size: 13px; color: var(--oa-ink-2);}
.mx-ai-card .oa-ico {width: 34px; height: 34px; border-radius: 10px;}
.mx-ai-card .oa-ico svg {width: 18px; height: 18px;}
.mx-ai-card .oa-btns {margin-top: 10px;}
.mx-ai-card .oa-btn {min-height: 46px; font-size: 14.5px; border-radius: 12px;}
.mx-ai-card-h {display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--oa-ink-2);}
.mx-ai-tick {flex: none; width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--oa-field); background: #fff;}
.mx-ai-more {padding-top: 8px; font-size: 12.5px; color: var(--oa-ink-2);}
/* the card check (1 Dec 2026, the approved picture): a company-card payment for their own request; existing tokens only */
/* its three <label>s beat the crew layer's plain-label rule (.mx .oa-sec label:not(...): block, 16 px margin, 600), as the photo and face
   labels above do (2 Dec 2026: live, the payment rows put the tick above the amount and the shop in bold) */
.mx .oa-sec .mx-ai-card label.mx-pay-l:not(.mx-tile):not(.mx-chip):not(.mx-opt):not(.mx-photo) {display: block; margin: 12px 0 6px; font-size: 12.5px; font-weight: 700; color: var(--oa-ink-2);}
.mx .oa-sec .mx-ai-card input.mx-pay-amt {min-height: 48px; font-size: 17px; font-weight: 600;}
.mx .oa-sec .mx-ai-card label.mx-pay-photo:not(.mx-tile):not(.mx-chip):not(.mx-opt):not(.mx-photo) {display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 13px; font-weight: 600; color: var(--oa-ink-2); cursor: pointer;}
.mx-ai-card .mx-pay-photo svg {flex: none; width: 18px; height: 18px;}
.mx .oa-sec .mx-ai-card label.mx-pay-pick:not(.mx-tile):not(.mx-chip):not(.mx-opt):not(.mx-photo) {display: flex; margin: 0; font-size: inherit; font-weight: inherit; color: var(--t-ink); cursor: pointer;}
.mx-ai-card .mx-pay-radio {position: absolute; opacity: 0; pointer-events: none;}
.mx-ai-card .mx-pay-pick .mx-ai-tick {border-radius: 50%; display: grid; place-items: center;}
.mx-ai-card .mx-pay-pick .mx-ai-tick svg {opacity: 0;}
.mx-ai-card .mx-pay-pick.is-on .mx-ai-tick, .mx-ai-card .mx-pay-pick:has(input:checked) .mx-ai-tick {background: var(--oa-navy); box-shadow: none;}
.mx-ai-card .mx-pay-pick.is-on .mx-ai-tick svg, .mx-ai-card .mx-pay-pick:has(input:checked) .mx-ai-tick svg {opacity: 1;}
.mx-ai-card .mx-pay-pick:has(input:focus-visible) {outline: 2px solid var(--oa-navy); outline-offset: 2px; border-radius: 10px;}
.mx-ai-card .mx-pay-done {margin-top: 10px;}
.mx-ai-card .mx-pay-done .oa-pill {white-space: normal;}
.mx-ai-fig {display: flex; align-items: baseline; gap: 8px; margin-top: 6px;}
.mx-ai-fig b {font-weight: 200; font-size: 46px; line-height: 1; letter-spacing: -.02em; color: var(--oa-ink);}
.mx-ai-fig span {font-weight: 700; font-size: 12px; letter-spacing: .16em; color: var(--oa-action);}
.mx-ai-stats {display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px;}
.mx-ai-stats div {padding: 8px 6px; border-radius: 10px; background: var(--oa-surface); text-align: center;}
.mx-ai-stats b {display: block; font-size: 17px; font-weight: 400; color: var(--oa-ink);}
.mx-ai-stats small {display: block; margin-top: 1px; font-size: 11.5px; color: var(--oa-muted);}

/* Quick asks under her greeting */
.mx-ai-asks {display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 16px 36px;}
.mx-ai-asks[hidden] {display: none;}
.mx-ai-asks button {min-height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--oa-surface); color: var(--oa-action); font: 600 13.5px var(--oa-font); box-shadow: inset 0 0 0 1px rgba(5, 113, 160, .28);}

/* Typing */
.mx-ai-msg[hidden] {display: none;}
.mx-ai-typing {display: inline-flex; gap: 4px; padding: 14px 16px;}
.mx-ai-typing i {width: 7px; height: 7px; border-radius: 50%; background: var(--oa-muted); opacity: .5; animation: mx-ai-dot 1.2s var(--oa-ease) infinite;}
.mx-ai-typing i:nth-child(2) {animation-delay: .15s;}
.mx-ai-typing i:nth-child(3) {animation-delay: .3s;}
@keyframes mx-ai-dot { 0%, 60%, 100% {opacity: .35; transform: none;} 30% {opacity: 1; transform: translateY(-3px);} }
@media (prefers-reduced-motion: reduce) { .mx-ai-typing i {animation: none; opacity: .6;} }

/* The composer: where the tab bar is, in the tab bar's own dark glass; send = the seafoam circle of + */
.mx-ai-compose {position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 14px); z-index: var(--oa-z-tab);
  width: min(612px, calc(100% - 28px)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; min-height: var(--oa-tab-h); padding: 10px; margin: 0;
  border-radius: 22px; background: rgba(6, 24, 38, .86); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(174, 231, 255, .12);}
.mx-ai-compose input {flex: 1; min-width: 0; height: 44px; padding: 0 16px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .08); color: #fff; font: 500 16px var(--oa-font);}
.mx-ai-compose input::placeholder {color: rgba(214, 230, 242, .66);}
.mx-ai-compose input:focus-visible {outline: 2px solid var(--oa-sea); outline-offset: 1px;}
.mx-ai-compose button {flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;}
.mx-ai-compose button[hidden] {display: none;}
.mx-ai-compose .is-mic {background: rgba(255, 255, 255, .08); color: rgba(234, 242, 248, .9);}
.mx-ai-compose .is-mic.is-on {background: var(--oa-sea); color: var(--oa-deep);}
.mx-ai-compose .is-send {background: var(--oa-sea); color: var(--oa-deep);}
.mx-ai-compose svg {width: 21px; height: 21px;}
/* Quotes on a money request (22 Oct 2026): suppliers' prices, compared by Emily before the owner's OK */
.mx .mx-quotes {margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--t-line);}
.mx .mx-quotes > summary {display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; list-style: none; cursor: pointer; font-size: 14.5px; color: var(--t-ink);}
.mx .mx-quotes > summary::-webkit-details-marker {display: none;}
.mx .mx-quotes > summary .num {font-weight: 700; color: var(--oa-action);}
.mx .mx-quotes > summary em {font-style: normal; font-size: 12.5px; color: var(--t-ink2);}
.mx .mx-quotes .oa-row {padding-block: 10px; min-height: 0;}
.mx .mx-quotes .oa-row-t .oa-pill {margin-inline-start: 6px; vertical-align: 1px;}
.mx .mx-quote-amt {display: flex; gap: 8px; margin-top: 8px;}
.mx .mx-quote-amt input {flex: 1; min-width: 0;}
.mx .mx-quote-amt .oa-btn {flex: none; width: auto; min-height: 44px; padding: 0 16px;}
.mx .mx-quote-why {margin-top: 8px;}
.mx .mx-quote-add {margin-top: 10px;}
.mx .mx-quote-more {margin: 8px 0 4px;}
.mx .mx-quote-more > summary {cursor: pointer; font-size: 13px; font-weight: 600; color: var(--oa-action);}

/* ── The trip standard (owner, 1 Dec 2026): who welcomes the guests, the five steps, Welcomed, the farewell rating ── */
.mx .mx-gr {display: flex; align-items: center; gap: 12px; margin: 14px 0 2px;}
.mx .mx-gr .mx-av, .mx .mx-gr .oa-ico {flex: none;}
.mx .mx-gr-main {flex: 1; min-width: 0;}
.mx .mx-gr-main b {display: block; font-size: 16px; line-height: 1.35; color: var(--t-ink);}
.mx .mx-gr-main small {display: block; margin-top: 2px; font-size: 12.5px; color: var(--t-ink2);}
.mx .mx-gr-change {margin: 6px 0 0;}
.mx .mx-gr-change > summary {display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; color: var(--oa-action); cursor: pointer; list-style: none;}
.mx .mx-gr-change > summary::-webkit-details-marker {display: none;}
.mx .mx-gr-form {display: flex; gap: 10px; align-items: center;}
.mx .mx-gr-form select {flex: 1; min-width: 0; min-height: 48px;}
.mx .mx-gr-form .oa-btn {flex: none; width: auto; min-height: 48px; padding: 0 18px;}
.mx .mx-std {margin-top: 14px;}
.mx .mx-std-row.is-done .oa-ico, .mx .mx-std-row.is-late .oa-ico {background: var(--oa-ok-bg); color: var(--oa-ok);}
.mx .mx-std-row.is-late .oa-ico {background: var(--oa-wait-bg); color: var(--oa-wait);}
.mx .mx-std-row.is-missed .oa-ico {background: var(--oa-bad-bg); color: var(--oa-bad);}
.mx .mx-std-row.is-now .oa-ico {background: var(--oa-up-bg); color: var(--oa-up);}
.mx .mx-std-row.is-later .oa-row-t {color: var(--t-ink2);}
.mx .mx-fare {margin-top: 18px;}
.mx .mx-rate {display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px;}
.mx .mx-rate button {display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 68px; padding: 6px 0;
    border-radius: 16px; border: 2px solid var(--oa-field); background: #fff; color: var(--t-ink); cursor: pointer;
    box-shadow: 0 1px 2px rgba(16, 42, 67, .06), 0 4px 12px rgba(16, 42, 67, .06); transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;}
.mx .mx-rate button b {font-size: 22px; font-weight: 700; line-height: 1.1;}
.mx .mx-rate button small {min-height: 14px; font-size: 11px; font-weight: 600; color: var(--t-ink2);}
.mx .mx-rate button:active {transform: scale(.96); border-color: var(--oa-action); background: var(--oa-up-bg); box-shadow: none;}
.mx .mx-rate button:disabled {opacity: .55; cursor: default;}
.mx .mx-rate button.is-busy {opacity: 1; border-color: var(--oa-action); background: var(--oa-up-bg);}
.mx .oa-btn.is-busy {opacity: .6;}
.mx .mx-outform {margin-top: 14px;}
.mx .oa-sec label.mx-photo:not(.mx-tile):not(.mx-chip):not(.mx-opt) {display: flex; margin: 0; font-size: 15px; font-weight: 700; color: var(--oa-action); text-align: center; cursor: pointer;}
.mx .mx-photo img {width: 72px; height: 72px; margin-top: 4px; object-fit: cover; border-radius: 12px;}
.mx .oa-sec label.mx-face.is-clash {opacity: .45; cursor: not-allowed;}
.mx .mx-faces + .mx-plan-q {margin-top: 22px;}
.mx .mx-plan .mx-gr-form + .mx-ready, .mx .mx-plan .mx-gr-form + .oa-btns {margin-top: 16px;}
@media (prefers-reduced-motion: reduce) { .mx .mx-rate button {transition: none;} .mx .mx-rate button:active {transform: none;} }
