/* CruiseTalentNetwork – Liquid Glass (2027)
   A design layer on top of app.css: semi-transparent, refracting planes floating over a living, deep-water backdrop.
   1. Material  2. Floating layers  3. Controls  4. Components  5. Documents stay paper  6. Accessibility & fallbacks */

/* ---------------------------------------------------------------------------------------------------------------
   1. MATERIAL
   --------------------------------------------------------------------------------------------------------------- */
:root {
  /* text and lines on glass (contrast checked against the darkest and lightest backdrop areas) */
  --ink: #f4f8fb; --text: #e3ebf1; --muted: #b9cbd7; --line: rgba(255,255,255,.16); --line-2: rgba(255,255,255,.09);
  --paper: #0a1a2c; --card: rgba(22,42,70,.52); --sand: rgba(255,255,255,.05);
  --brass: #f2b366; --brass-dark: #ffd49c; --brass-light: #f6c27e; --brass-wash: rgba(242,179,102,.14);
  --ok: #8ce6b4; --ok-bg: rgba(64,196,128,.16); --warn: #ffd08c; --warn-bg: rgba(255,170,60,.16);
  --err: #ffaa98; --err-bg: rgba(255,96,72,.17); --info: #a8daf5; --info-bg: rgba(90,175,230,.16);
  --shadow: 0 24px 60px rgba(2,10,22,.45);

  /* the glass recipe */
  --glass: rgba(22,44,74,.50);
  --glass-strong: rgba(14,30,54,.74);
  --glass-soft: rgba(255,255,255,.06);
  --glass-edge: rgba(255,255,255,.18);
  --glass-shine: inset 0 1px 0 rgba(255,255,255,.26), inset 0 -1px 0 rgba(255,255,255,.04), inset 0 0 0 1px rgba(255,255,255,.05);
  --glass-blur: 22px;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --sy: 0;            /* 0 at the top of the page → 1 after scrolling; set by app.js (dynamic blur) */
  color-scheme: dark;
}
html { background: #0b1f3d; }
body { padding-top: 10px; }   /* room above the floating bar (instead of a collapsing margin) */
body {
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(64,110,255,.45), transparent 60%),
    radial-gradient(900px 600px at 95% 5%, rgba(150,90,255,.38), transparent 62%),
    radial-gradient(1000px 800px at 70% 110%, rgba(40,190,230,.28), transparent 60%),
    radial-gradient(700px 500px at 0% 90%, rgba(242,179,102,.16), transparent 65%),
    linear-gradient(160deg, #0b1f3d 0%, #0a1830 45%, #120f35 100%);
  background-attachment: fixed;
  min-height: 100vh;
  padding-top: 10px;   /* space above the floating bar (keeps the backdrop visible) */
}
/* slow-moving light beneath the glass, so there is always something to refract */
body::before, body::after {
  content: ""; position: fixed; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(60px); opacity: .55;
}
body::before { width: 46vmax; height: 46vmax; left: -8vmax; top: 18vh; background: radial-gradient(circle, rgba(70,140,255,.55), transparent 65%); animation: lg-drift-a 28s ease-in-out infinite alternate; }
body::after { width: 40vmax; height: 40vmax; right: -10vmax; top: 40vh; background: radial-gradient(circle, rgba(186,110,255,.45), transparent 65%); animation: lg-drift-b 34s ease-in-out infinite alternate; }
@keyframes lg-drift-a { to { transform: translate(18vmax, 10vmax) scale(1.15); } }
@keyframes lg-drift-b { to { transform: translate(-16vmax, -14vmax) scale(.9); } }

[hidden] { display: none !important; }   /* hidden elements stay hidden, whatever their component style */
h1, h2, h3 { color: var(--ink); }
a { color: var(--brass); }
a:hover { color: var(--brass-dark); }
::selection { background: rgba(242,179,102,.35); color: #fff; }
:focus-visible { outline: 2px solid #f6c27e; outline-offset: 3px; }

/* shared glass surface */
.panel, .actcard, .kv, .day, .doc-row, .inbox, .empty, .notice, .stat, .choice a, .agree, .map-panel, .vday, .steps li,
.footer, .verifybar, .searchbar, .rivers a, .maptabs a, .chip, .routelist li, .authbox {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shine), var(--shadow);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(170%);
  backdrop-filter: blur(var(--glass-blur)) saturate(170%);
}
.kv, .day, .doc-row, .vday, .chip, .rivers a, .maptabs a, .routelist li, .steps li { box-shadow: var(--glass-shine); }

/* ---------------------------------------------------------------------------------------------------------------
   2. FLOATING LAYERS
   --------------------------------------------------------------------------------------------------------------- */
/* the navigation bar hovers as a detached pill; it becomes more frosted as the page scrolls (dynamic blur) */
.topbar {
  position: sticky; top: 10px; z-index: 40;
  margin: 0 auto; width: min(1440px, calc(100% - 24px)); border-radius: 22px;
  background: rgba(10, 24, 44, calc(.62 + var(--sy) * .26));
  border: 1px solid rgba(255,255,255, calc(.14 + var(--sy) * .08));
  box-shadow: var(--glass-shine), 0 18px 50px rgba(0,0,0, calc(.18 + var(--sy) * .22));
  -webkit-backdrop-filter: blur(calc(10px + var(--sy) * 20px)) saturate(190%);
  backdrop-filter: blur(calc(10px + var(--sy) * 20px)) saturate(190%);
  transition: background .3s, box-shadow .3s;
}
/* optical lensing (Chromium): the bar bends what scrolls beneath it */
html.lg-lens .topbar { backdrop-filter: url(#lg-lens) blur(calc(8px + var(--sy) * 18px)) saturate(190%); }
.topbar-in { min-height: 60px; padding-left: 20px; padding-right: 16px; gap: 14px; }
.nav { flex-wrap: nowrap; gap: 0; min-width: 0; }
.nav a { padding: 9px 9px; font-size: 13.5px; white-space: nowrap; }
@media (max-width: 1360px) { .brand img { height: 26px; } .nav a { padding: 8px 7px; font-size: 13px; } .who { font-size: 12px; } }
.nav a { border-radius: 12px; color: #d8e4ec; position: relative; overflow: hidden; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.22); }
/* administrator: the configuration pages sit under "Settings" so the menu fits the bar */
.nav-more { position: relative; flex-shrink: 0; }
.nav-more > summary { list-style: none; cursor: pointer; padding: 9px 9px; font-size: 13.5px; font-weight: 500; color: #d8e4ec; border-radius: 12px; white-space: nowrap; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: translateY(-3px) rotate(45deg); }
.nav-more > summary:hover, .nav-more[open] > summary, .nav-more.current > summary { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.22); }
.nav-more > summary:focus-visible { outline: 2px solid var(--gold, #f2b366); outline-offset: 2px; }
.nav-menu { position: absolute; top: calc(100% + 10px); left: 0; z-index: 60; min-width: 210px; display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 18px;
  background: rgba(10, 24, 44, .97); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 18px 44px rgba(0,0,0,.4); }
.nav-menu a { overflow: visible; }
@media (max-width: 1360px) { .nav-more > summary { padding: 8px 7px; font-size: 13px; } }
@media (max-width: 760px) { .nav-menu { position: static; min-width: 0; padding: 0 0 4px 14px; background: transparent; border: 0; box-shadow: none; } }
.avatar { box-shadow: 0 0 0 2px rgba(255,255,255,.35), 0 6px 18px rgba(242,179,102,.35); }
.bell { background: rgba(255,255,255,.08) !important; border-color: rgba(255,255,255,.18) !important; }

/* hero zones become part of the backdrop instead of solid navy bands */
.hero, .landing { background: transparent; }
.landing h1 { text-shadow: 0 10px 40px rgba(60,120,255,.35); }
.panel-dark { background: var(--glass-strong); border-color: var(--glass-edge); }
.panel { position: relative; isolation: isolate; }
.map-panel .kv { background: rgba(255,255,255,.06); }
.map { background: rgba(6,18,34,.55) !important; border: 1px solid rgba(255,255,255,.14); box-shadow: var(--glass-shine), var(--shadow);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

.footer { margin: 30px auto 16px; width: min(1440px, calc(100% - 24px)); border-radius: 18px; padding: 16px 22px; }
.footer, .footer span { color: var(--muted); }

/* ---------------------------------------------------------------------------------------------------------------
   3. CONTROLS – alive: a specular highlight follows the pointer, a soft spring on touch
   --------------------------------------------------------------------------------------------------------------- */
.btn, .chip, .nav a, .rivers a, .maptabs a, .actcard, .day, .vday, .choice a, .kv, .panel {
  --mx: 50%; --my: 0%;
}
.btn, .actcard, .day, .choice a, .chip, .rivers a, .maptabs a, .vday { position: relative; overflow: hidden; isolation: isolate; }
.btn::before, .actcard::before, .day::before, .choice a::before, .chip::before, .rivers a::before, .maptabs a::before, .vday::before, .nav a::before, .panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(180px circle at var(--mx) var(--my), rgba(255,255,255,.22), transparent 60%);
  opacity: 0; transition: opacity .35s ease;
}
.panel::before { background: radial-gradient(520px circle at var(--mx) var(--my), rgba(255,255,255,.07), transparent 60%); }
.btn:hover::before, .actcard:hover::before, .day:hover::before, .choice a:hover::before, .chip:hover::before,
.rivers a:hover::before, .maptabs a:hover::before, .vday:hover::before, .nav a:hover::before, .panel:hover::before { opacity: 1; }

.btn {
  border-radius: 14px; border: 1px solid rgba(255,255,255,.22); color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -8px 16px rgba(0,0,0,.12), 0 8px 24px rgba(0,0,0,.25);
  -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  transition: transform .45s var(--spring), box-shadow .3s ease, background .3s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -8px 16px rgba(0,0,0,.1), 0 14px 34px rgba(0,0,0,.32); color: #fff; }
.btn:active { transform: scale(.96); transition-duration: .12s; }
.btn-primary {
  color: #1a1206; border-color: rgba(255,226,180,.65);
  background: linear-gradient(180deg, rgba(255,214,150,.95), rgba(236,160,78,.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -10px 18px rgba(160,80,20,.25), 0 10px 30px rgba(242,150,60,.38);
}
.btn-primary:hover { color: #1a1206; box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -10px 18px rgba(160,80,20,.2), 0 16px 40px rgba(242,150,60,.5); }
.btn-dark { background: linear-gradient(180deg, rgba(120,170,255,.32), rgba(70,110,220,.18)); border-color: rgba(170,200,255,.4); }
.btn-line, .btn-ghost { background: rgba(255,255,255,.06); color: #eef4f8; }
.btn-danger { background: linear-gradient(180deg, rgba(255,110,90,.32), rgba(220,70,50,.2)); border-color: rgba(255,150,130,.5); color: #fff; }
.btn[disabled], .btn[aria-busy] { opacity: .6; transform: none; }
.linkbtn { color: var(--brass); }

/* form fields: clear glass wells */
input:not([type=checkbox]):not([type=radio]), select, textarea, .field input, .field select, .field textarea {
  background: rgba(255,255,255,.07) !important; color: #f4f8fb !important; border: 1px solid rgba(255,255,255,.2) !important;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.18); border-radius: 12px !important;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input:not([type=checkbox]):not([type=radio]):focus, select:focus, textarea:focus {
  outline: none; background: rgba(255,255,255,.11) !important; border-color: rgba(246,194,126,.85) !important;
  box-shadow: 0 0 0 4px rgba(242,179,102,.22), inset 0 2px 6px rgba(0,0,0,.15);
}
input::placeholder, textarea::placeholder { color: rgba(220,232,240,.5); }
select option, select optgroup { color: #11232f; background: #fff; }   /* the native list is drawn by the system */
input[type=date], input[type=time] { color-scheme: dark; }
input[type=checkbox], input[type=radio] { accent-color: #f2b366; }
.field, .field > span, label { color: var(--ink); }
.hint { color: var(--muted); }

/* ---------------------------------------------------------------------------------------------------------------
   4. COMPONENTS
   --------------------------------------------------------------------------------------------------------------- */
.kv span { color: var(--muted); } .kv strong { color: var(--ink); }
.tag { background: rgba(255,255,255,.1); color: var(--ink); border: 1px solid rgba(255,255,255,.18); }
.tag-ok { background: var(--ok-bg); color: var(--ok); border-color: rgba(140,230,180,.35); }
.tag-warn { background: var(--warn-bg); color: var(--warn); border-color: rgba(255,208,140,.35); }
.tag-err { background: var(--err-bg); color: var(--err); border-color: rgba(255,170,152,.35); }
.tag-info { background: var(--info-bg); color: var(--info); border-color: rgba(168,218,245,.35); }
/* labels on the light "paper" documents (agreement, invoice): dark text, enough contrast (1.22.2) */
.doc .tag-ok { background: #e3f6ea; color: #17643a; border-color: #a9dcbc; }
.doc .tag-warn { background: #fff1dc; color: #8a4b00; border-color: #f3c98b; }
.doc .tag-err { background: #fde7e3; color: #9b2c1c; border-color: #f2b2a6; }
.doc .tag-info { background: #e3f1fa; color: #1c5878; border-color: #a9d3ea; }
.pill { background: rgba(255,255,255,.1); color: var(--ink); }
.panel-note { background: linear-gradient(rgba(90,175,230,.13), rgba(90,175,230,.13)), var(--glass-strong); border-color: rgba(168,218,245,.3); }
.notice-info { background: var(--info-bg); color: var(--info); border-color: rgba(168,218,245,.3); }
.notice-warn, .verifybar { background: var(--warn-bg); color: var(--warn); border-color: rgba(255,208,140,.3); }
.notice-err { background: rgba(255,90,70,.16); color: #ffb4a8; border-color: rgba(255,150,130,.35); }
.verifybar { margin: 10px auto 0; width: min(1440px, calc(100% - 24px)); border-radius: 16px; }
.flash { -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: var(--glass-shine), var(--shadow); border-radius: 14px; }
.flash-success { background: var(--ok-bg); color: var(--ok); border-color: rgba(140,230,180,.35); }
.flash-error { background: var(--err-bg); color: var(--err); border-color: rgba(255,170,152,.35); }
.empty { border-style: dashed; color: var(--muted); }
.empty strong { color: var(--ink); }

/* tables sit directly on the panel glass */
.table th { color: var(--muted); border-color: var(--line); background: transparent; }
.table td { border-color: var(--line-2); color: var(--text); }
.table tr:hover td { background: rgba(255,255,255,.035); }

/* cards and lists */
.actcard { transition: transform .5s var(--spring), box-shadow .3s; }
.actcard:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--glass-shine), 0 30px 70px rgba(0,0,0,.45); }
.actcard .name { color: var(--ink); }
.actcard .ph { background: rgba(10,24,44,.6); }
.day { transition: transform .45s var(--spring); color: var(--text); }
.day:hover { transform: translateY(-2px); }
.day[aria-current="true"] { background: rgba(242,179,102,.16); border: 1px solid rgba(246,194,126,.75); box-shadow: 0 0 0 4px rgba(242,179,102,.14), var(--glass-shine); }
.rivers a { color: #d8e4ec; }
.rivers a[aria-current="true"], .maptabs a[aria-current="true"] { background: linear-gradient(180deg, rgba(255,214,150,.95), rgba(236,160,78,.92)); color: #1a1206; border-color: rgba(255,226,180,.7); }
.maptabs a { color: #d8e4ec; }
.chip { color: var(--ink); }
.chip[aria-current="true"], .chip.on { background: linear-gradient(180deg, rgba(255,214,150,.95), rgba(236,160,78,.92)); border-color: rgba(255,226,180,.7); color: #1a1206; }
.mask { background: rgba(255,255,255,.12); color: #fff; border: 0; }
.chip:has(input:checked) { background: rgba(242,179,102,.22); border-color: rgba(246,194,126,.7); }
.doc-row.good, .agree:has(input:checked) { background: rgba(64,196,128,.12); border-color: rgba(140,230,180,.4); }
.steps li { color: var(--ink); }
.choice a { color: var(--ink); transition: transform .45s var(--spring); }
.choice a:hover { transform: translateY(-3px); }

/* rainbow frame (v1.16): a ring of colour chases around the card under the pointer, on every page. Only the innermost card
   lights up (a box inside a panel, not the panel around it); keyboard focus on a clickable card shows it too. */
@property --rb-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes rb-chase { to { --rb-angle: 360deg; } }
:is(.panel, .actcard, .kv, .stat, .day, .vday, .doc-row, .inbox, .agree, .map-panel, .steps li, .choice a, .cm-card, .tools-row a, .port-river, .vtile) { position: relative; }
:is(.panel, .actcard, .kv, .stat, .day, .vday, .doc-row, .inbox, .agree, .map-panel, .steps li, .choice a, .cm-card, .tools-row a, .port-river, .vtile)::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; padding: 3px;
  background: conic-gradient(from var(--rb-angle), #ff4d4d, #ffa630, #ffe14d, #4ade80, #38bdf8, #818cf8, #e879f9, #ff4d4d);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .3s ease;
  animation: rb-chase 2.4s linear infinite paused;
}
.panel:hover:not(:has(:is(.panel, .actcard, .kv, .stat, .day, .vday, .doc-row, .inbox, .agree, .map-panel, .steps li, .choice a, .cm-card, .tools-row a, .port-river, .vtile):hover))::after,
.actcard:hover:not(:has(:is(.panel, .actcard, .kv, .stat, .day, .vday, .doc-row, .inbox, .agree, .map-panel, .steps li, .choice a, .cm-card, .tools-row a, .port-river, .vtile):hover))::after,
.kv:hover:not(:has(:is(.panel, .actcard, .kv, .stat, .day, .vday, .doc-row, .inbox, .agree, .map-panel, .steps li, .choice a, .cm-card, .tools-row a, .port-river, .vtile):hover))::after,
.stat:hover:not(:has(:is(.panel, .actcard, .kv, .stat, .day, .vday, .doc-row, .inbox, .agree, .map-panel, .steps li, .choice a, .cm-card, .tools-row a, .port-river, .vtile):hover))::after,
.day:hover:not(:has(:is(.panel, .actcard, .kv, .stat, .day, .vday, .doc-row, .inbox, .agree, .map-panel, .steps li, .choice a, .cm-card, .tools-row a, .port-river, .vtile):hover))::after,
.vday:hover:not(:has(:is(.panel, .actcard, .kv, .stat, .day, .vday, .doc-row, .inbox, .agree, .map-panel, .steps li, .choice a, .cm-card, .tools-row a, .port-river, .vtile):hover))::after,
.doc-row:hover:not(:has(:is(.panel, .actcard, .kv, .stat, .day, .vday, .doc-row, .inbox, .agree, .map-panel, .steps li, .choice a, .cm-card, .tools-row a, .port-river, .vtile):hover))::after,
.inbox:hover:not(:has(:is(.panel, .actcard, .kv, .stat, .day, .vday, .doc-row, .inbox, .agree, .map-panel, .steps li, .choice a, .cm-card, .tools-row a, .port-river, .vtile):hover))::after,
.agree:hover:not(:has(:is(.panel, .actcard, .kv, .stat, .day, .vday, .doc-row, .inbox, .agree, .map-panel, .steps li, .choice a, .cm-card, .tools-row a, .port-river, .vtile):hover))::after,
.map-panel:hover:not(:has(:is(.panel, .actcard, .kv, .stat, .day, .vday, .doc-row, .inbox, .agree, .map-panel, .steps li, .choice a, .cm-card, .tools-row a, .port-river, .vtile):hover))::after,
.steps li:hover:not(:has(:is(.panel, .actcard, .kv, .stat, .day, .vday, .doc-row, .inbox, .agree, .map-panel, .steps li, .choice a, .cm-card, .tools-row a, .port-river, .vtile):hover))::after,
.choice a:hover:not(:has(:is(.panel, .actcard, .kv, .stat, .day, .vday, .doc-row, .inbox, .agree, .map-panel, .steps li, .choice a, .cm-card, .tools-row a, .port-river, .vtile):hover))::after,
.cm-card:hover:not(:has(:is(.panel, .actcard, .kv, .stat, .day, .vday, .doc-row, .inbox, .agree, .map-panel, .steps li, .choice a, .cm-card, .tools-row a, .port-river, .vtile):hover))::after,
.tools-row a:hover:not(:has(:is(.panel, .actcard, .kv, .stat, .day, .vday, .doc-row, .inbox, .agree, .map-panel, .steps li, .choice a, .cm-card, .tools-row a, .port-river, .vtile):hover))::after,
.port-river:hover:not(:has(:is(.panel, .actcard, .kv, .stat, .day, .vday, .doc-row, .inbox, .agree, .map-panel, .steps li, .choice a, .cm-card, .tools-row a, .port-river, .vtile):hover))::after,
.vtile:hover:not(:has(:is(.panel, .actcard, .kv, .stat, .day, .vday, .doc-row, .inbox, .agree, .map-panel, .steps li, .choice a, .cm-card, .tools-row a, .port-river, .vtile):hover))::after, .vtile:focus-visible::after,
.actcard:focus-visible::after, .choice a:focus-visible::after, .tools-row a:focus-visible::after, .day:focus-visible::after, .vday:focus-visible::after {
  opacity: 1; animation-play-state: running;
}
.panel:is(:hover, :focus-within)::after { padding: 2px; }   /* large panels: a slightly finer ring */
.vtile { background: var(--glass); border-color: var(--glass-edge); color: var(--text); }
.vtile-play { background: linear-gradient(180deg, #f6c27e, #e3a15a); color: #1a1206; }
.actcard:hover, .actcard:focus-visible { box-shadow: var(--glass-shine), 0 30px 70px rgba(0,0,0,.45), 0 0 28px rgba(129,140,248,.28); }

/* active filter chip and the masked-contact example */
.chip[aria-current="true"], .chip.on { background: linear-gradient(180deg, rgba(255,214,150,.95), rgba(236,160,78,.92)); border-color: rgba(255,226,180,.7); color: #1a1206; }
.mask { background: rgba(255,255,255,.12); color: #fff; border: 0; }

/* photo delete button: a dark glass disc so the × stays visible on any photo */
.photo button { background: rgba(8,20,38,.78); color: #fff; border: 1px solid rgba(255,255,255,.4); box-shadow: 0 4px 14px rgba(0,0,0,.4);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .35s var(--spring); }
.photo button:hover { transform: scale(1.12); background: rgba(200,60,40,.85); }

/* messages */
.threads { border-color: var(--line); }
.threads a { color: var(--text); }
.threads a[aria-current="true"] { background: rgba(242,179,102,.14); }
.threads a:hover { background: rgba(255,255,255,.05); }
.msg .b { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: var(--text); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.msg.mine .b { background: linear-gradient(180deg, rgba(120,170,255,.38), rgba(70,110,220,.26)); border-color: rgba(170,200,255,.4); color: #fff; }

/* calendars */
.vday { color: var(--text); transition: transform .4s var(--spring); }
.vday.free:not(.past):hover { transform: scale(1.03); border-color: rgba(246,194,126,.8); }
.vn { color: var(--ink); } .vt { color: var(--text); }
.vday.show { background: rgba(64,196,128,.2); border-color: rgba(140,230,180,.45); }
.vday.req { background: rgba(255,170,60,.2); border-color: rgba(255,208,140,.45); }
.vday.blocked { background: repeating-linear-gradient(45deg, rgba(255,255,255,.07), rgba(255,255,255,.07) 6px, rgba(255,255,255,.02) 6px, rgba(255,255,255,.02) 12px); border-color: rgba(255,255,255,.2); }
.vday.blocked .vt { color: var(--muted); }
.key.vk-show { background: rgba(64,196,128,.4); border-color: rgba(140,230,180,.6); } .key.vk-req { background: rgba(255,170,60,.4); border-color: rgba(255,208,140,.6); }
.key.vk-blocked { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.3); } .key.vk-free { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.3); }
.cal .cday { color: var(--muted); }
.cal label.cday span { border-color: rgba(246,194,126,.75); color: var(--ink); }
.cal label.cday input:checked + span { background: linear-gradient(180deg, rgba(255,214,150,.95), rgba(236,160,78,.92)); color: #1a1206; }
.cal .cday.booked { background: var(--err-bg); color: var(--err); }
.cal .cday.blocked, .cal .cday.past { background: rgba(255,255,255,.06); color: var(--muted); }
.key.free { background: #f2b366; } .key.booked { background: var(--err-bg); border-color: var(--err); } .key.past, .key.blocked { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }

/* landing */
.audience { color: var(--text); }
.kicker-dark { color: #f6c27e; }
.manifesto .big { color: #fff; text-shadow: 0 8px 30px rgba(80,140,255,.3); }

/* the live "lens" for map ports and floating tags */
.map .port .endtag { box-shadow: 0 4px 14px rgba(0,0,0,.35); }

/* assistant: a floating glass button and panel */
.ask-btn { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60; border-radius: 999px; padding: 12px 18px;
  font: 700 15px var(--sans); color: #1a1206; border: 1px solid rgba(255,226,180,.7); cursor: pointer;
  background: linear-gradient(180deg, rgba(255,214,150,.97), rgba(236,160,78,.95)); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 14px 36px rgba(242,150,60,.45);
  transition: transform .45s var(--spring); }
.ask-btn span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(26,18,6,.15); margin-right: 4px; }
.ask-btn:hover { transform: translateY(-2px) scale(1.03); }
.ask-panel { position: fixed; right: 18px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); z-index: 61; width: min(400px, calc(100vw - 24px)); height: min(560px, calc(100vh - 140px));
  display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: rgba(12,26,48,.88); border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shine), 0 30px 80px rgba(0,0,0,.55); -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%); }
.ask-panel header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.ask-close { background: none; border: 0; color: var(--ink); font-size: 24px; cursor: pointer; line-height: 1; }
.ask-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ask-msg { max-width: 88%; padding: 10px 12px; border-radius: 14px; font-size: 14px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.ask-msg.bot { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: var(--text); align-self: flex-start; }
.ask-msg.me { background: linear-gradient(180deg, rgba(120,170,255,.4), rgba(70,110,220,.3)); color: #fff; align-self: flex-end; }
.ask-msg .src { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.ask-note { margin: 0; padding: 8px 14px; font-size: 12px; line-height: 1.4; color: var(--muted); border-top: 1px solid var(--line); }
.ask-panel form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.ask-panel form input { flex: 1; min-width: 0; }
@media print { .ask-btn, .ask-panel { display: none !important; } }

/* ---------------------------------------------------------------------------------------------------------------
   5. DOCUMENTS STAY PAPER – agreements and invoices are sheets lying on the glass (printable, signable)
   --------------------------------------------------------------------------------------------------------------- */
.doc {
  --ink: #11232f; --text: #22343f; --muted: #56626b; --line: #ddd5c7; --line-2: #eee8dc; --brass: #a4561a;
  background: #fdfcf9; color: var(--text); border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 40px 90px rgba(0,0,0,.5);
}
.doc h1, .doc h2, .doc h3, .doc strong { color: var(--ink); }
.doc a { color: #a4561a; }
.doc .table th, .doc .table td { color: var(--text); border-color: var(--line); }

/* installed app (full screen): keep the bar clear of the phone's status bar and notch */
@media (display-mode: standalone) {
  body { padding-top: calc(env(safe-area-inset-top, 0px) + 8px); }
  .topbar { top: calc(env(safe-area-inset-top, 0px) + 6px); }
}

/* ---------------------------------------------------------------------------------------------------------------
   6. ACCESSIBILITY & FALLBACKS
   --------------------------------------------------------------------------------------------------------------- */
/* users who ask for less transparency get solid, calm panels */
@media (prefers-reduced-transparency: reduce) {
  .panel, .actcard, .kv, .day, .doc-row, .inbox, .empty, .notice, .stat, .choice a, .agree, .map-panel, .vday, .steps li,
  .footer, .verifybar, .searchbar, .rivers a, .maptabs a, .chip, .routelist li, .topbar, .btn, .msg .b, .map, .authbox {
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background-color: #132741 !important;
  }
  body::before, body::after { display: none; }
}
/* users who ask for less motion: no drifting light, no springs */
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
  .btn, .actcard, .day, .vday, .choice a { transition: none !important; }
  .btn:hover, .actcard:hover, .day:hover, .choice a:hover, .vday:hover { transform: none !important; }
  :is(.panel, .actcard, .kv, .stat, .day, .vday, .doc-row, .inbox, .agree, .map-panel, .steps li, .choice a, .cm-card, .tools-row a, .port-river, .vtile)::after { animation: none !important; }   /* the rainbow frame still shows, but stands still */
}
/* browsers without backdrop-filter: slightly more opaque glass so text stays readable */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass: rgba(20,40,68,.88); }
  .topbar { background: rgba(10,24,44,.92); }
}
/* small screens: lighter blur for smooth scrolling, the bar stays attached to the top */
@media (max-width: 700px) {
  :root { --glass-blur: 14px; }
  body { padding-top: 6px; }
  .topbar { top: 6px; width: calc(100% - 12px); border-radius: 18px; }
  .nav { flex-wrap: wrap; }
  body::before, body::after { filter: blur(40px); opacity: .45; }
}
/* below 1280px the signed-in menu no longer fits beside the logo and the account: it folds into the Menu button,
   as on a phone (every role has 6 to 8 items; squeezing them cut the labels off on tablets and small laptops) */
@media (max-width: 1279px) {
  .topbar-in { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .topbar .nav-toggle { display: inline-flex; margin-left: auto; }
  .topbar .nav#nav { display: none; order: 3; flex: 1 0 100%; width: 100%; flex-direction: column; flex-wrap: nowrap; }
  .topbar .nav#nav.open { display: flex; padding-bottom: 6px; }
  .nav-menu { position: static; min-width: 0; padding: 0 0 4px 14px; background: transparent; border: 0; box-shadow: none; }
}
/* print: plain and light */
@media print {
  /* The media kit on paper (v1.16): a large photo from the gallery, white panels, no glass */
  .epk .epk-hero { display: block; float: right; width: 46%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; margin: 0 0 12px 18px; }
  .epk .panel, .epk .stat { background: #fff !important; box-shadow: none !important; border: 1px solid #d9dee3 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; color: #22343f; }
  .epk .stat { border: 0 !important; padding: 0 !important; }
  .epk .epk-head .row { gap: 8px 20px !important; }
  .epk .epk-head .stat strong { font-size: 20px; }
  .epk .epk-head .act-title { font-size: 34px; }
  .epk .panel::before, .epk .panel::after, .epk .stat::after { display: none !important; }
  .epk .gallery { clear: both; grid-template-columns: repeat(4, 1fr); }
  .epk .gallery img:first-child { display: none; }   /* already shown large at the top */
  .epk .act-title, .epk h2, .epk strong { color: #11232f; }
  .epk .epk-videos ul { margin: 4px 0 0; padding-left: 18px; font-size: 12px; word-break: break-all; }
  .epk .epk-videos { margin-top: 14px; }
  :root { --ink: #11232f; --text: #22343f; --muted: #56626b; }
  body { background: #fff !important; }
  body::before, body::after { display: none; }
}

/* Accepting a request, with or without travel expenses: its own row above Decline / Message */
.travelform { flex: 1 1 100%; display: grid; gap: 10px; justify-items: start; }
.travelform .field { width: min(100%, 340px); margin: 0; }

/* Cruise manager on board (booking page) */
.cm-card { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); margin: 4px 0 10px; }
.cm-card strong { font-size: 17px; }
.cm-card a, .cm-card span { font-size: 15px; word-break: break-word; }
.cal label.cday.instop span::after { background: #6fb3d2; }
.cal label.cday.instop input:checked + span::after { background: #10202e; }
.key.instop { border-color: rgba(246,194,126,.75); background: transparent; } .key.noport { border-color: rgba(255,255,255,.25); }
.day-dialog { background: linear-gradient(180deg, #13294a, #0d1f38); border-color: rgba(255,255,255,.18); color: var(--text); }
.day-dialog::backdrop { background: rgba(3, 8, 18, .6); backdrop-filter: blur(4px); }
/* v1.14: options in the entertainer's calendar */
.vday.opt { background: rgba(150,130,255,.2); border-color: rgba(190,175,255,.5); }
.key.vk-opt { background: rgba(150,130,255,.4); border-color: rgba(190,175,255,.6); }
/* v1.14 */
.stars { color: #f2b366; }
.quote { border-left-color: #f2b366; }
.stars-pick label { color: rgba(255,255,255,.28); }
.stars-pick input:checked ~ label, .stars-pick label:hover, .stars-pick label:hover ~ label { color: #f2b366; }
.tools-row a { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.tools-row a:hover { background: rgba(255,255,255,.1); }
.err-text { color: #ff9b8f; }
.port-river { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.03); }

/* v1.24.3: pop-up message (e.g. after approving a sign-up) */
dialog.popup { max-width: min(460px, calc(100vw - 32px)); width: 100%; border: 1px solid rgba(255,255,255,.22); border-radius: 20px; padding: 28px 28px 22px;
  background: rgba(14,30,54,.95); color: var(--ink); box-shadow: var(--glass-shine, none), 0 30px 80px rgba(0,0,0,.45); text-align: center;
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
dialog.popup:not([open]) { display: none; }
dialog.popup[open]:not(:modal) { position: fixed; inset: 0; margin: auto; height: fit-content; z-index: 1000; }
dialog.popup::backdrop { background: rgba(5,14,26,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
dialog.popup h2 { margin: 10px 0 10px; font-size: 22px; }
dialog.popup p { margin: 0 0 10px; line-height: 1.5; }
dialog.popup form { margin-top: 16px; }
dialog.popup .popup-icon { width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700; background: var(--ok-bg); color: var(--ok); border: 1px solid rgba(140,230,180,.35); }

/* v1.24.4: the parts of an application as buttons (administrator's review) */
.steps-links li { padding: 0; }
.steps-links a { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; color: inherit; text-decoration: none; border-radius: 999px; }
.steps-links a > span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.25; }
.steps-links .seen { color: var(--muted); font-size: 12px; }
.steps-links .seen.is-seen { color: var(--ok); }
.steps-links .go { opacity: .6; margin-left: 4px; transition: transform .15s; }
.steps-links a:hover .go, .steps-links a:focus-visible .go { transform: translateX(3px); opacity: 1; }
.steps-links a:hover, .steps-links a:focus-visible { background: rgba(255,255,255,.07); }
.steps-links li.current { outline: 2px solid var(--accent, #f2b366); outline-offset: 1px; }
details.agree summary { cursor: pointer; list-style-position: outside; }

/* v1.24.6: a song that was not played: muted text instead of see-through (readable contrast), plus "(not played)" */
.table tr.not-played td, .table tr.not-played strong { color: var(--muted); font-weight: 400; }
.doc .table tr.not-played td, .doc .table tr.not-played strong { color: #56626b; }
