/* ==========================================================
   تم Done — design kit (web-design skill: PageLab kit + project parts)
   Every redesigned screen uses this file; each screen adds only
   its own <style> block. Built from the house libraries:
   tokens (all labs) · .btx (ButtonLab) · header (NavLab) ·
   footer (FooterLab) · fields (FormLab) · toasts/dialogs (OverlayLab)
   ========================================================== */

/* ---------- tokens: the logo's three people are the three working roles ---------- */
:root {
  --navy: #123672; --navy-rgb: 18, 54, 114; --navy-ink: #0b1f45; --navy-50: #eef2f9;
  --orange: #ee8000; --orange-rgb: 238, 128, 0; --orange-ink: #a65600; --orange-50: #fff4e6; /* -ink = 4.5:1 on white */
  --sky: #009fdd; --sky-rgb: 0, 159, 221; --sky-ink: #00709e; --sky-50: #e6f6fc;
  --brand: var(--navy); --brand-rgb: var(--navy-rgb); --brand-ink: var(--navy);
  --accent: var(--orange); --accent-rgb: var(--orange-rgb);
  --ink: #17223b;
  --muted: #5b6680;
  --line: #e3e8f1;
  --surface: #ffffff;
  --surface-2: #f5f7fb;
  --page: #f5f7fb;
  --ok: #15803d;   --ok-bg: #e7f6ec;
  --warn: #a15c07; --warn-bg: #fff3dc;
  --danger: #c62828; --danger-bg: #fdecec;
  --info: #00709e; --info-bg: #e6f6fc;
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(18,54,114,.05), 0 10px 28px rgba(18,54,114,.07);
  --shadow-lg: 0 2px 4px rgba(18,54,114,.06), 0 28px 60px rgba(18,54,114,.16);
  --head-h: 72px;
  --ease: 220ms cubic-bezier(.2,.7,.3,1);
  --font: 'Cairo', system-ui, Tahoma, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* Bootstrap reads these */
  --bs-body-font-family: var(--font); --bs-body-color: var(--ink); --bs-body-bg: var(--page);
  --bs-link-color: var(--sky-ink); --bs-link-color-rgb: 0, 112, 158; --bs-link-hover-color: var(--navy);
  --bs-border-color: var(--line); --bs-primary: var(--navy); --bs-primary-rgb: 18, 54, 114;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { font-family: var(--font); line-height: 1.35; font-weight: 800; color: var(--ink); margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid rgba(var(--brand-rgb), .55); outline-offset: 3px; border-radius: 8px; }
code { direction: ltr; unicode-bidi: isolate; font-family: var(--mono); font-size: .9em; }
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 56px); }
.num { direction: ltr; unicode-bidi: isolate; display: inline-block; }
td.num, th.num { display: table-cell; } /* .num on a cell must not break the table */
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; top: -60px; inset-inline-start: 16px; z-index: 100; padding: .5rem 1rem; border-radius: 10px; background: var(--ink); color: var(--surface); text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }

/* sections */
.sec { padding-block: clamp(56px, 8vw, 112px); }
.sec-tight { padding-block: clamp(36px, 5vw, 64px); }
.sec-alt { background: var(--surface-2); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .2rem .9rem; border-radius: 999px; background: rgba(var(--brand-rgb), .08); border: 1px solid rgba(var(--brand-rgb), .16); color: var(--brand-ink); font-size: 15px; font-weight: 700; }
.st { display: grid; align-content: start; gap: .6rem; margin-bottom: clamp(28px, 4vw, 48px); }
.st > .eyebrow { justify-self: start; }
.st h2 { font-size: clamp(28px, 3.4vw, 46px); margin: 0; }
.st p { color: var(--muted); font-size: clamp(17px, 1.4vw, 19px); margin: 0; }
.st-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; }
@media (max-width: 767.98px) { .st-split { grid-template-columns: minmax(0, 1fr); } }
.pl-lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); }

/* ---------- buttons (ButtonLab) ---------- */
.btx { --h: 48px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: var(--h); padding: 0 1.25rem; border: 1.5px solid transparent; border-radius: var(--radius-sm); background: var(--brand); color: #fff; font: 700 16px var(--font); line-height: 1.2; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background var(--ease), border-color var(--ease), filter var(--ease), transform 120ms ease, box-shadow var(--ease); }
.btx:hover { filter: brightness(1.08); color: #fff; }
.btx:active { transform: translateY(1px) scale(.98); }
.btx-soft { background: rgba(var(--brand-rgb), .1); color: var(--brand-ink); }
.btx-soft:hover { filter: none; background: rgba(var(--brand-rgb), .16); color: var(--brand-ink); }
.btx-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btx-ghost:hover { filter: none; background: var(--surface-2); color: var(--ink); }
.btx-dark { background: var(--ink); color: var(--surface); }
.btx-dark:hover { color: var(--surface); }
.btx-light { background: #fff; color: #111827; }
.btx-light:hover { color: #111827; filter: brightness(.96); }
.btx-line-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btx-line-light:hover { color: #fff; background: rgba(255,255,255,.1); filter: none; }
.btx-sm { --h: 44px; padding: 0 1rem; font-size: 15px; }
.btx-lg { --h: 56px; padding: 0 1.6rem; font-size: 17px; border-radius: 14px; }
.btx-pill { border-radius: 999px; }
.btx-icon { width: var(--h); padding: 0; }
.btx-block { width: 100%; }
.btx[disabled] { opacity: .5; cursor: not-allowed; filter: none; transform: none; }
.btx.is-loading { color: transparent !important; pointer-events: none; }
.btx.is-loading::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid #fff; border-inline-end-color: transparent; animation: pl-spin 700ms linear infinite; }
.btx-ghost.is-loading::after, .btx-soft.is-loading::after { border-color: var(--brand); border-inline-end-color: transparent; }
@keyframes pl-spin { to { transform: rotate(360deg); } }
.icon-btn { width: 44px; height: 44px; flex: 0 0 auto; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--ink); font-size: 1.15rem; cursor: pointer; position: relative; text-decoration: none; }
.icon-btn:hover { background: var(--surface-2); border-color: var(--line); }
.icon-btn .badge-n { position: absolute; top: -2px; inset-inline-end: -2px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 15px; font-weight: 800; line-height: 22px; text-align: center; }
.text-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--brand-ink); font-weight: 700; text-decoration: none; min-height: 44px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.flip-rtl { display: inline-block; transform: scaleX(-1); }

/* ---------- header (NavLab core) ---------- */
.ph { position: sticky; top: 0; z-index: 50; transition: box-shadow var(--ease), background var(--ease); }
.ph-in { display: flex; align-items: center; gap: 1.25rem; min-height: var(--head-h); }
.ph-logo { display: inline-flex; align-items: center; gap: .6rem; font-size: 22px; font-weight: 800; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.ph-logo .mk { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--brand); color: #fff; font-size: 1.15rem; }
.ph-nav { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ph-nav a { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: 0 .9rem; border-radius: 10px; color: var(--muted); font-weight: 700; text-decoration: none; transition: color var(--ease), background var(--ease); }
.ph-nav a:hover { color: var(--ink); background: rgba(var(--brand-rgb), .06); }
.ph-nav a[aria-current="page"] { color: var(--brand-ink); }
.ph-act { display: flex; align-items: center; gap: .4rem; margin-inline-start: auto; }
.ph-burger { display: none; }
.ph.is-stuck { box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(17,24,39,.06); }
/* phone menu panel */
.ph-panel { position: fixed; inset: 0; z-index: 70; display: none; }
.ph-panel.is-open { display: block; }
.ph-panel .scrim { position: absolute; inset: 0; background: rgba(8,10,22,.5); backdrop-filter: blur(2px); animation: pl-fade 200ms ease; }
.ph-panel .sheet { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(360px, 88vw); display: flex; flex-direction: column; gap: 1rem; padding: 18px; overflow-y: auto; background: var(--surface); box-shadow: var(--shadow-lg); animation: pl-in-end 260ms cubic-bezier(.2,.7,.3,1); }
.ph-panel .sheet-head { display: flex; align-items: center; justify-content: space-between; }
.ph-panel nav a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 .75rem; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 18px; }
.ph-panel nav a:hover, .ph-panel nav a[aria-current="page"] { background: rgba(var(--brand-rgb), .08); color: var(--brand-ink); }
@keyframes pl-fade { from { opacity: 0; } }
@keyframes pl-in-end { from { transform: translateX(-100%); } }
[dir="ltr"] .ph-panel .sheet { animation-name: pl-in-end-ltr; }
@keyframes pl-in-end-ltr { from { transform: translateX(100%); } }
@media (max-width: 991.98px) {
  .ph-nav, .ph-wide { display: none !important; }
  .ph-burger { display: inline-grid; }
}

/* ---------- footer core ---------- */
.pf { padding-top: clamp(48px, 6vw, 80px); }
.pf-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem 3rem; }
.pf h4 { font-size: 16px; margin-bottom: .8rem; }
.pf ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pf ul a { display: inline-flex; align-items: center; min-height: 40px; color: var(--muted); text-decoration: none; font-weight: 600; }
.pf ul a:hover { color: var(--ink); }
.pf-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-top: clamp(32px, 4vw, 56px); padding-block: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.pf-social { display: flex; gap: .4rem; }
@media (max-width: 991.98px) { .pf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pf-cols > :first-child { grid-column: 1 / -1; } }
@media (max-width: 479.98px) { .pf-cols { grid-template-columns: minmax(0, 1fr); } }

/* ---------- card shell (CardKit) ---------- */
.pc { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(18px, 2vw, 26px); transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease); }
.pc-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(var(--brand-rgb), .25); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(16px, 2vw, 24px); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: clamp(16px, 2vw, 24px); }
.ico { width: 52px; height: 52px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 16px; background: rgba(var(--brand-rgb), .1); color: var(--brand-ink); font-size: 1.4rem; }
.tag { display: inline-flex; align-items: center; gap: .3rem; padding: .05rem .7rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: 15px; font-weight: 700; white-space: nowrap; }
.tag-brand { background: rgba(var(--brand-rgb), .1); border-color: transparent; color: var(--brand-ink); }
.tag-ok { background: var(--ok-bg); border-color: transparent; color: var(--ok); }
.stars { color: #f59e0b; letter-spacing: 1px; white-space: nowrap; }
.avatar { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }

/* ---------- fields (FormLab core) ---------- */
.fm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.fm-grid .full { grid-column: 1 / -1; }
.fm-field { display: grid; gap: .35rem; min-width: 0; }
.fm-label { font-weight: 700; font-size: 15px; }
.fm-label .opt { color: var(--muted); font-weight: 600; }
.fm-input { width: 100%; min-height: 52px; padding: .6rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: 500 16px var(--font); transition: border-color var(--ease), box-shadow var(--ease); }
textarea.fm-input { min-height: 140px; resize: vertical; line-height: 1.8; }
.fm-input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.fm-input:focus { outline: none; border-color: rgba(var(--brand-rgb), .7); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .14); }
.fm-input[dir="ltr"] { text-align: left; }
.fm-field.is-bad .fm-input { border-color: var(--danger); }
.fm-err { min-height: 0; color: var(--danger); font-size: 15px; font-weight: 600; }
.fm-err:empty { display: none; }
.fm-check { display: flex; align-items: flex-start; gap: .6rem; min-height: 44px; padding-top: .55rem; cursor: pointer; font-size: 15px; }
.fm-check input { width: 22px; height: 22px; margin-top: .15rem; accent-color: var(--brand); flex: 0 0 auto; }
.fm-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.fm-chips label { cursor: pointer; }
.fm-chips input { position: absolute; opacity: 0; pointer-events: none; }
.fm-chips input + span { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: 15px; transition: all var(--ease); }
.fm-chips input:checked + span { border-color: var(--brand); background: rgba(var(--brand-rgb), .08); color: var(--brand-ink); }
.fm-chips input:focus-visible + span { outline: 3px solid rgba(var(--brand-rgb), .55); outline-offset: 2px; }
.fm-done { display: none; text-align: center; padding: 2rem 1rem; }
[data-state="done"] .fm-done { display: block; }
[data-state="done"] .fm-body { display: none; }
.fm-done .ok-ring { width: 72px; height: 72px; margin: 0 auto 1rem; display: grid; place-items: center; border-radius: 50%; background: var(--ok-bg); color: var(--ok); font-size: 2rem; }
@media (max-width: 575.98px) { .fm-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- accordion (details) ---------- */
.acc { display: grid; gap: 10px; }
.acc details { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: border-color var(--ease), box-shadow var(--ease); }
.acc details[open] { border-color: rgba(var(--brand-rgb), .3); box-shadow: var(--shadow); }
.acc summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; padding: .75rem 1.25rem; cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "\F4FE"; font-family: "bootstrap-icons"; font-size: 1.1rem; color: var(--brand-ink); transition: transform var(--ease); flex: 0 0 auto; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .acc-body { padding: 0 1.25rem 1.1rem; color: var(--muted); }

/* ---------- tabs ---------- */
.tabs-list { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.tabs-list button { min-height: 44px; padding: 0 1.1rem; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: 700 15px var(--font); cursor: pointer; }
.tabs-list button[aria-selected="true"] { background: var(--surface); color: var(--brand-ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
[role="tabpanel"][hidden] { display: none; }

/* ---------- toasts + dialogs (OverlayLab core) ---------- */
.ov-toasts { position: fixed; z-index: 90; inset-inline: 16px; bottom: 16px; display: grid; justify-items: center; gap: 10px; pointer-events: none; }
.ov-toast { pointer-events: auto; display: flex; align-items: center; gap: .75rem; width: min(440px, 100%); padding: 10px 10px 10px 14px; padding-inline: 14px 10px; border-radius: 16px; background: #141a2b; color: #fff; box-shadow: 0 18px 40px rgba(0,0,0,.25); animation: pl-toast 300ms cubic-bezier(.2,.7,.3,1); }
.ov-toast .ti { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); }
.ov-toast.ok .ti { background: #16a34a; } .ov-toast.err .ti { background: #dc2626; } .ov-toast.info .ti { background: #2563eb; }
.ov-toast .tt { flex: 1; min-width: 0; line-height: 1.5; }
.ov-toast b { display: block; font-size: 15px; }
.ov-toast small { display: block; color: rgba(255,255,255,.75); font-size: 15px; }
.ov-toast .ta { min-height: 44px; padding: 0 .8rem; border: 0; border-radius: 10px; background: rgba(255,255,255,.12); color: #fff; font: 700 15px var(--font); cursor: pointer; }
.ov-toast.is-out { animation: pl-toast-out 200ms ease forwards; }
@keyframes pl-toast { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes pl-toast-out { to { opacity: 0; transform: translateY(10px) scale(.97); } }
.ov-dialog { padding: 0; border: 0; border-radius: 24px; width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.ov-dialog::backdrop { background: rgba(8,10,22,.55); backdrop-filter: blur(3px); }
.ov-dialog[open] { animation: pl-pop 260ms cubic-bezier(.2,.7,.3,1); }
@keyframes pl-pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.ov-dialog .dl-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.ov-dialog .dl-head h3 { margin: 0; font-size: 20px; }
.ov-dialog .dl-body { padding: 18px; }
.ov-drawer { margin: 0; margin-inline-start: auto; height: 100dvh; max-height: 100dvh; width: min(440px, 100vw); border-radius: 0; display: none; flex-direction: column; }
.ov-drawer[open] { display: flex; animation: pl-in-end 300ms cubic-bezier(.2,.7,.3,1); }
.ov-drawer .dl-body { flex: 1; overflow-y: auto; }
.ov-drawer .dl-foot { padding: 16px 18px; border-top: 1px solid var(--line); display: grid; gap: .6rem; }
@media (max-width: 575.98px) { .ov-sheet-sm { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 24px 24px 0 0; } }

/* ---------- reveal on scroll (only when JS is on) ---------- */
.js-rv .rv { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms cubic-bezier(.2,.7,.3,1); }
.js-rv .rv.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js-rv .rv { opacity: 1; transform: none; }
}

/* ==========================================================
   تم Done — project parts
   ========================================================== */
small { font-size: 15px; } /* house minimum: Bootstrap's <small> would render at 13-14px */
.num { white-space: nowrap; }
h1, h2, h3, h4, h5 { color: var(--navy-ink); }
.hide-s { }
@media (max-width: 767.98px) { .hide-s { display: none !important; } }

/* brand: the logo mark + the two-language word */
.td-brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--navy-ink); flex: 0 0 auto; }
.td-brand img { width: 42px; height: 42px; }
.td-brand .w { display: grid; line-height: 1.05; }
.td-brand b { font-size: 22px; font-weight: 800; }
.td-brand b span { color: var(--orange-ink); }
.td-brand.on-dark { color: #fff; } .td-brand.on-dark b span { color: var(--orange); }
.td-brand .disc { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: #fff; }
.td-brand .disc img { width: 36px; height: 36px; }

/* buttons in the brand colours */
.btx-accent { background: var(--orange); color: #1b1300; }
.btx-accent:hover { color: #1b1300; }
.btx-sky { background: var(--sky-ink); }

/* role tones: navy = owner, sky = organizer, orange = contributor, gray = guest */
.t-navy { --tone: var(--navy); --tone-ink: var(--navy); --tone-bg: var(--navy-50); }
.t-sky { --tone: var(--sky); --tone-ink: var(--sky-ink); --tone-bg: var(--sky-50); }
.t-orange { --tone: var(--orange); --tone-ink: var(--orange-ink); --tone-bg: var(--orange-50); }
.t-gray { --tone: #8a94a8; --tone-ink: var(--muted); --tone-bg: var(--surface-2); }
.pill { display: inline-flex; align-items: center; gap: .3rem; padding: .05rem .7rem; border-radius: 999px; font-size: 15px; font-weight: 800; white-space: nowrap; background: var(--tone-bg, var(--surface-2)); color: var(--tone-ink, var(--muted)); }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--warn-bg); color: var(--warn); } .pill.bad { background: var(--danger-bg); color: var(--danger); }

/* boxes, notes, empty states */
.box { min-width: 0; padding: clamp(16px, 2vw, 24px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.box-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 14px; }
.box-h h2 { font-size: 20px; margin: 0; }
.note-b { display: flex; gap: .7rem; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--info-bg); color: var(--ink); font-size: 15px; }
.note-b > i { color: var(--info); font-size: 1.2rem; line-height: 1.6; }
.note-b.warn { background: var(--warn-bg); } .note-b.warn > i { color: var(--warn); }
.empty-c { display: grid; justify-items: center; gap: .4rem; padding: 40px 16px; text-align: center; border: 1.5px dashed var(--line); border-radius: 22px; color: var(--muted); }
.empty-c > i { font-size: 2.2rem; color: var(--sky-ink); }
.empty-c > b { color: var(--ink); font-size: 18px; }

/* server-side field errors sit where the kit's client errors sit */
.fm-field .fm-input.is-invalid, .fm-field.is-bad .fm-input { border-color: var(--danger); }

/* phone number: country + number in one row */
.ph-row { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 8px; }

/* footer */
.td-foot { margin-top: clamp(48px, 6vw, 88px); background: var(--navy-ink); color: #c5d2ea; }
.td-foot h4 { color: #fff; }
.td-foot .pf-cols ul a { color: #c5d2ea; } .td-foot .pf-cols ul a:hover { color: #fff; }
.td-foot .pf-bottom { border-color: rgba(255,255,255,.12); color: #aebbd6; }
.td-foot p { color: #c5d2ea; }

/* auth parts (AuthLab) */
/* social sign-in */
.social { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.social button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 52px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: 700 16px var(--font); cursor: pointer; transition: border-color var(--ease), background var(--ease); }
.social button:hover { border-color: rgba(var(--brand-rgb), .4); background: var(--surface-2); }
.social svg { width: 20px; height: 20px; }
.td-or { display: flex; align-items: center; gap: 1rem; color: var(--muted); font-size: 15px; font-weight: 700; margin: 1.2rem 0; }
.td-or::before, .td-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* password field: show/hide + caps lock */
.pw { position: relative; }
.pw .fm-input { padding-inline-end: 52px; }
.pw .eye { position: absolute; top: 4px; inset-inline-end: 4px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; font-size: 1.15rem; }
.pw .eye:hover { color: var(--ink); background: var(--surface-2); }
.caps { display: none; align-items: center; gap: .4rem; color: var(--warn); font-size: 15px; font-weight: 700; }
.caps.is-on { display: flex; }

/* strength meter + rule list */
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: .5rem; }
.meter i { height: 6px; border-radius: 6px; background: var(--line); transition: background var(--ease); }
.meter[data-s="1"] i:nth-child(-n+1) { background: var(--danger); }
.meter[data-s="2"] i:nth-child(-n+2) { background: #f59e0b; }
.meter[data-s="3"] i:nth-child(-n+3) { background: #84cc16; }
.meter[data-s="4"] i { background: var(--ok); }
.meter-txt { display: flex; justify-content: space-between; color: var(--muted); font-size: 15px; margin-top: .3rem; }
.meter-txt b { color: var(--ink); }
.rules { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem .8rem; font-size: 15px; color: var(--muted); }
.rules li { position: relative; padding-inline-start: 1.5rem; }
.rules li::before { content: "\F28A"; font-family: "bootstrap-icons"; position: absolute; inset-inline-start: 0; top: 0; color: var(--line); }
.rules li.ok { color: var(--ok); }
.rules li.ok::before { content: "\F26B"; color: var(--ok); }

/* inline alert (OverlayLab .ov-alert, short) */
.au-alert { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .7rem; align-items: start; padding: 12px 14px; border-radius: 16px; font-size: 15px; line-height: 1.7; }
.au-alert i { font-size: 1.15rem; margin-top: .1rem; }
.au-alert b { display: block; font-size: 16px; }
.au-alert.err { background: var(--danger-bg); color: var(--danger); }
.au-alert.ok { background: var(--ok-bg); color: var(--ok); }
.au-alert.info { background: var(--info-bg); color: var(--info); }
.au-alert.warn { background: var(--warn-bg); color: var(--warn); }
.au-alert[hidden] { display: none; }


/* confirm dialog */
.td-confirm .dl-body { display: grid; justify-items: center; gap: .3rem; padding: 26px 22px 20px; text-align: center; }
.td-confirm h3 { margin: .4rem 0 0; font-size: 21px; }
.td-confirm p { margin: 0 0 .6rem; color: var(--muted); }
.td-confirm-ico { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: var(--navy-50); color: var(--navy); font-size: 1.6rem; }
.td-confirm.is-danger .td-confirm-ico { background: var(--danger-bg); color: var(--danger); }
.td-confirm-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.btx-danger { background: var(--danger); }

/* header */
.td-head { background: color-mix(in srgb, var(--page) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.td-head .ph-nav { margin-inline-start: 1.2rem; }
.td-head .ph-nav a { white-space: nowrap; }
.td-head .ph-nav a[aria-current] { color: var(--navy); }
/* footer call to action */
.td-foot-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: clamp(22px, 3vw, 34px); margin-bottom: clamp(32px, 4vw, 48px); border-radius: 26px; background: linear-gradient(120deg, var(--navy), #1c4e9c 60%, var(--sky-ink)); }
.td-foot-cta h2 { color: #fff; margin: 0 0 .2rem; font-size: clamp(22px, 2.4vw, 30px); }
.td-foot-cta p { margin: 0; color: #d6e1f5; }

/* custom select (FormLab: a native <select> breaks in RTL) */
.fm-select { position: relative; }
.fm-sel-btn { display: flex; align-items: center; justify-content: space-between; gap: .5rem; text-align: start; cursor: pointer; }
.fm-sel-btn [data-ph].is-ph { color: color-mix(in srgb, var(--muted) 80%, transparent); }
.fm-sel-btn .bi-chevron-down { transition: transform var(--ease); color: var(--muted); }
.fm-sel-btn[aria-expanded="true"] .bi-chevron-down { transform: rotate(180deg); }
.fm-list { position: absolute; top: calc(100% + 6px); inset-inline: 0; z-index: 30; margin: 0; padding: 6px; list-style: none; max-height: 260px; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); display: none; }
.fm-list.is-open { display: block; }
.fm-list li { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 46px; padding: .3rem .8rem; border-radius: 10px; cursor: pointer; outline: none; }
.fm-list li small { color: var(--muted); font-size: 15px; }
.fm-list li:hover, .fm-list li:focus { background: var(--surface-2); }
.fm-list li[aria-selected="true"] { color: var(--navy); font-weight: 700; }
.fm-list li[aria-selected="true"]::after { content: "\F633"; font-family: "bootstrap-icons"; }

/* sign-in pages (AuthLab A01: form + brand panel) */
.lg-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 100dvh; background: var(--page); }
.lg-form { display: flex; flex-direction: column; padding: 0 clamp(20px, 5vw, 80px) 32px; }
.au-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; padding-top: 8px; }
.au-top .side-link { color: var(--muted); font-weight: 600; }
.au-top .side-link a { color: var(--navy); font-weight: 800; text-decoration: none; }
.lg-form .mid { flex: 1; display: grid; place-items: center; padding-block: 24px; }
.lg-form .inner { width: 100%; max-width: 460px; }
.lg-form h1 { font-size: clamp(28px, 3vw, 40px); margin: 0 0 .4rem; }
.lg-form .sub { color: var(--muted); margin: 0 0 1.6rem; }
.au-stack { display: grid; gap: 1rem; }
.au-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.forgot { color: var(--sky-ink); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.au-foot { margin-top: 1.4rem; text-align: center; color: var(--muted); }
.au-foot a { color: var(--navy); font-weight: 800; text-decoration: none; }
.td-google { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 52px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font-weight: 700; text-decoration: none; transition: border-color var(--ease), background var(--ease); }
.td-google:hover { border-color: rgba(var(--navy-rgb), .4); background: var(--surface-2); color: var(--ink); }
.lg-art { position: relative; overflow: hidden; margin: 14px; margin-inline-start: 0; border-radius: 32px; padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; color: #fff; background: radial-gradient(60% 50% at 90% 5%, rgba(var(--orange-rgb), .4), transparent 60%), radial-gradient(60% 60% at 0% 100%, rgba(var(--sky-rgb), .35), transparent 60%), linear-gradient(150deg, var(--navy), var(--navy-ink)); }
.lg-art h2 { color: #fff; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.35; margin: 0; max-width: 560px; }
.lg-art .lead2 { color: rgba(255,255,255,.82); margin: .8rem 0 0; max-width: 520px; }
.lg-plan { position: relative; max-width: 480px; }
.lg-plan .win { padding: 18px; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 30px 60px rgba(0,0,0,.3); transform: rotate(-2deg); }
.lg-plan .hd { display: flex; justify-content: space-between; align-items: baseline; }
.lg-plan .hd b { font-size: 18px; color: var(--navy-ink); }
.lg-plan .pct { font-weight: 800; color: var(--navy); }
.lg-plan .bar { display: block; height: 8px; margin: 8px 0 12px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.lg-plan .bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--sky), var(--navy)); }
.lg-plan ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.lg-plan li { display: flex; align-items: center; gap: .6rem; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); font-weight: 700; }
.lg-plan li > i { color: #b4bccb; } .lg-plan li.dn > i { color: var(--ok); }
.lg-plan li em { margin-inline-start: auto; font-style: normal; font-size: 15px; padding: 0 .6rem; border-radius: 999px; background: var(--tone-bg); color: var(--tone-ink); }
.lg-plan .toast-m { position: absolute; bottom: -18px; inset-inline-end: 24px; display: flex; align-items: center; gap: .6rem; padding: 10px 14px; border-radius: 16px; background: var(--navy-ink); color: #fff; font-size: 15px; font-weight: 700; box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.lg-plan .toast-m i { color: var(--orange); }
.roles3 { display: flex; flex-wrap: wrap; gap: .5rem; }
.roles3 span { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .9rem; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-weight: 700; font-size: 15px; }
.roles3 i { width: 10px; height: 10px; border-radius: 50%; background: var(--tone); }
@media (max-width: 991.98px) { .lg-page { grid-template-columns: minmax(0, 1fr); } .lg-art { display: none; } }
.sent { display: grid; justify-items: start; }
.sent-ico { width: 72px; height: 72px; display: grid; place-items: center; margin-bottom: 1rem; border-radius: 22px; background: var(--sky-50); color: var(--sky-ink); font-size: 2rem; }
.sent-ico.wa { background: #e7f8ee; color: #128c4b; }
.sent-acts { display: flex; flex-wrap: wrap; gap: .5rem; }
.sent > form, .sent > details { justify-self: stretch; }
.verify-change { margin-top: 1.2rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.verify-change summary { cursor: pointer; color: var(--navy); font-weight: 700; }
.verify-change[open] summary { margin-bottom: .8rem; }
.td-linkbtn { background: none; border: 0; padding: 0; color: var(--navy); font: inherit; font-weight: 800; cursor: pointer; }
.au-alert { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .7rem; align-items: start; padding: 12px 14px; border-radius: 16px; font-size: 15px; line-height: 1.7; }
/* a password field is ltr inside an rtl page: its padding "end" is the right side, so the eye
   button goes on the right too, away from where the typed text starts */
.pw .fm-input[dir="ltr"] { padding-inline-end: 1rem; padding-right: 52px; }
.pw:has(.fm-input[dir="ltr"]) .eye { inset-inline-end: auto; right: 4px; left: auto; }
.lg-plan .win { padding-bottom: 34px; }
.lg-plan .toast-m { bottom: -24px; }
.lg-plan li em { align-self: center; line-height: 1.8; }

/* ==========================================================
   signed-in app
   ========================================================== */
.td-main { padding-block: clamp(20px, 3vw, 36px) 56px; }
.td-apphead .ph-nav a { gap: .4rem; }
.td-apphead .ph-nav a i { font-size: 1.05rem; }
.td-me { position: relative; }
.td-me-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.td-pop { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60; display: none; width: 270px; padding: 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.td-pop.is-open { display: grid; gap: 2px; animation: pl-fade 160ms ease; }
.td-pop-who { display: flex; align-items: center; gap: .7rem; padding: 8px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.td-pop-who > span { display: grid; min-width: 0; line-height: 1.5; }
.td-pop-who small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.td-pop a, .td-pop button { display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 44px; padding: 0 10px; border: 0; border-radius: 12px; background: none; color: var(--ink); font: 600 16px var(--font); text-align: start; text-decoration: none; cursor: pointer; }
.td-pop a:hover, .td-pop button:hover { background: var(--surface-2); }
.td-pop i { color: var(--muted); font-size: 1.1rem; }
.td-pop form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--line); }
.icon-btn .badge-n[hidden] { display: none; }

/* phone tab bar */
.td-tabbar { display: none; }
@media (max-width: 991.98px) {
  .td-apphead .ph-nav { display: none !important; }
  .td-tabbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 55; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(18,54,114,.08); }
  .td-tabbar a { display: grid; justify-items: center; gap: 0; min-height: 52px; padding-top: 4px; color: var(--muted); font-size: 15px; font-weight: 700; text-decoration: none; line-height: 1.4; }
  .td-tabbar a i { font-size: 1.3rem; }
  .td-tabbar a[aria-current] { color: var(--navy); }
  .td-tabbar a.plus { align-self: center; justify-self: center; width: 54px; height: 54px; min-height: 0; place-content: center; padding: 0; border-radius: 18px; background: var(--orange); color: #1b1300; box-shadow: 0 8px 20px rgba(238,128,0,.35); }
  .td-tabbar a.plus i { font-size: 1.5rem; }
  body.td-app { padding-bottom: 84px; }
  body.td-app .ov-toasts { bottom: 92px; }
}

/* avatar, ring, role dot */
.td-av { width: 40px; height: 40px; flex: 0 0 auto; display: inline-grid; place-items: center; border-radius: 50%; object-fit: cover; background: var(--tone, var(--navy)); color: #fff; font-weight: 800; font-size: 17px; line-height: 1; }
.td-av.t-gray { background: #6b7487; }
.td-av.sm { width: 32px; height: 32px; font-size: 15px; }
.td-av.lg { width: 52px; height: 52px; font-size: 21px; }
.td-av.xl { width: 84px; height: 84px; font-size: 34px; }
.td-ring { --size: 96px; position: relative; width: var(--size); height: var(--size); flex: 0 0 auto; }
.td-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.td-ring circle { fill: none; stroke-width: 12; }
.td-ring .tr { stroke: rgba(var(--navy-rgb), .1); }
.td-ring .br { stroke: url(#tdRingGrad); stroke-linecap: round; transition: stroke-dashoffset 800ms cubic-bezier(.2,.7,.3,1); }
.td-ring .lb { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.2; }
.td-ring .lb b { font-size: calc(var(--size) * .22); color: var(--navy-ink); }
.td-ring .lb small { color: var(--muted); font-weight: 700; }
.td-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--tone, var(--muted)); }
.is-flash { animation: td-flash 1.6s ease; }
@keyframes td-flash { 0%, 40% { box-shadow: 0 0 0 4px rgba(var(--orange-rgb), .45); } 100% { box-shadow: 0 0 0 0 rgba(var(--orange-rgb), 0); } }

/* page head */
.td-ph { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(18px, 2.4vw, 28px); }
.td-ph h1 { font-size: clamp(26px, 3vw, 38px); margin: 0 0 .2rem; }
.td-ph p { margin: 0; color: var(--muted); }
.td-ph .acts { display: flex; flex-wrap: wrap; gap: .5rem; }
.td-sec-h { display: flex; align-items: center; gap: .6rem; margin: clamp(24px, 3vw, 36px) 0 14px; font-size: 19px; }
.td-sec-h i { color: var(--sky-ink); }
.td-sec-h .pill { margin-inline-start: .2rem; }
.td-av.t-orange { background: var(--orange-ink); } .td-av.t-sky { background: var(--sky-ink); } /* white letter needs 4.5:1 */

/* my events */
.hub { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.hub-k { display: flex; align-items: center; gap: .8rem; padding: 14px 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
a.hub-k:hover { border-color: rgba(var(--orange-rgb), .5); }
.hub-k .ic { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 15px; background: var(--tone-bg); color: var(--tone-ink); font-size: 1.3rem; }
.hub-k > span:last-child { display: grid; line-height: 1.35; min-width: 0; }
.hub-k b { font-size: 24px; color: var(--navy-ink); }
.hub-k small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-note { align-items: center; background: #e9f8ef; margin-bottom: 8px; }
.wa-note > i { color: #128c4b; font-size: 1.5rem; }
.wa-note > span { flex: 1; }
.inv-list { display: grid; gap: 10px; }
.inv { display: flex; align-items: center; gap: .9rem; padding: 14px 16px; border-radius: 20px; background: var(--orange-50); border: 1px solid #ffd9a8; }
.inv-ic { width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; background: var(--orange); color: #1b1300; font-size: 1.3rem; }
.inv-t { flex: 1; min-width: 0; display: grid; line-height: 1.5; }
.inv-t small { color: #6b4a1a; }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.ev { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease); }
.ev:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(var(--navy-rgb), .25); }
.ev-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; min-height: 104px; padding: 14px; background: linear-gradient(135deg, var(--navy), #1c4e9c 55%, var(--sky-ink)); background-size: cover; background-position: center; color: #fff; }
.ev-type { display: inline-flex; align-items: center; gap: .4rem; padding: .15rem .75rem; border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(4px); font-size: 15px; font-weight: 700; }
.ev-when { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .75rem; border-radius: 999px; background: #fff; color: var(--navy); font-size: 15px; font-weight: 800; white-space: nowrap; }
.ev-when.now { background: var(--orange); color: #1b1300; } .ev-when.bad { background: var(--danger-bg); color: var(--danger); }
.ev-b { flex: 1; display: flex; flex-direction: column; gap: .55rem; padding: 14px 16px 16px; }
.ev h3 { margin: 0; font-size: 19px; line-height: 1.5; }
.ev h3 a { color: inherit; text-decoration: none; }
.ev h3 a::after { content: ""; position: absolute; inset: 0; } /* the whole card is the link */
.ev-m { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; color: var(--muted); font-size: 15px; }
.ev-m > span { display: inline-flex; align-items: center; gap: .35rem; }
.ev-wait { align-self: flex-start; display: inline-flex; align-items: center; gap: .35rem; padding: .1rem .75rem; border-radius: 999px; background: var(--orange-50); color: var(--orange-ink); font-size: 15px; font-weight: 800; }
.ev-f { display: flex; align-items: center; gap: .8rem; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; font-weight: 700; }
.ev-bar { flex: 1; height: 8px; border-radius: 99px; background: rgba(var(--navy-rgb), .08); overflow: hidden; }
.ev-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--sky), var(--navy)); }
.ev-grid.past .ev { opacity: .85; }
.ev-new { display: grid; place-content: center; justify-items: center; gap: .3rem; min-height: 240px; padding: 20px; border: 2px dashed rgba(var(--navy-rgb), .2); border-radius: 22px; color: var(--muted); text-align: center; text-decoration: none; transition: border-color var(--ease), background var(--ease); }
.ev-new:hover { border-color: var(--orange); background: var(--orange-50); color: var(--muted); }
.ev-new .plus { width: 60px; height: 60px; display: grid; place-items: center; margin-bottom: .4rem; border-radius: 20px; background: var(--orange); color: #1b1300; font-size: 1.7rem; }
.ev-new b { color: var(--navy-ink); font-size: 18px; }
@media (max-width: 767.98px) { .hub { grid-template-columns: minmax(0, 1fr); } .inv { flex-wrap: wrap; } }

/* ==========================================================
   event frame
   ========================================================== */
.evh { position: relative; overflow: hidden; color: #fff; background: radial-gradient(50% 80% at 100% 0%, rgba(var(--sky-rgb), .35), transparent 65%), radial-gradient(40% 70% at 0% 100%, rgba(var(--orange-rgb), .25), transparent 65%), linear-gradient(140deg, var(--navy), var(--navy-ink)); }
.evh::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(11,31,69,.92) 35%, rgba(11,31,69,.55)), var(--cover, none); background-size: cover; background-position: center; opacity: .95; }
.evh-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: clamp(22px, 3.4vw, 40px); }
.evh-t { min-width: 0; }
.evh-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.evh-tag { display: inline-flex; align-items: center; gap: .4rem; padding: .15rem .8rem; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); font-size: 15px; font-weight: 700; color: #fff; }
.evh-tag .td-dot { background: var(--tone); box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
.evh-tag.hot { background: var(--orange); border-color: var(--orange); color: #1b1300; }
.evh h1 { color: #fff; font-size: clamp(28px, 3.6vw, 46px); margin: .6rem 0 .5rem; line-height: 1.3; }
.evh-f { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; color: #d6e1f5; }
.evh-f span { display: inline-flex; align-items: center; gap: .45rem; }
.evh-f a { color: #fff; }
.evh-ring { padding: 8px; border-radius: 50%; background: #fff; box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.evh-closed { padding: 10px 0; background: var(--sky-50); color: var(--sky-ink); font-weight: 700; }
.evh-closed.bad { background: var(--danger-bg); color: var(--danger); }
.evt { position: sticky; top: var(--head-h); z-index: 40; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.evt ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.evt ul::-webkit-scrollbar { display: none; }
.evt a { display: inline-flex; align-items: center; gap: .45rem; min-height: 54px; padding: 0 1rem; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 700; text-decoration: none; white-space: nowrap; }
.evt a:hover { color: var(--navy); }
.evt a[aria-current] { color: var(--navy); border-color: var(--orange); }
@media (max-width: 767.98px) { .evh-in { align-items: flex-start; } .evh-ring { display: none; } .evt a { padding: 0 .8rem; } }

/* two-column page: main + side */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(16px, 2.4vw, 28px); align-items: start; }
.cols > * { min-width: 0; display: grid; gap: 16px; align-content: start; }
@media (max-width: 1099.98px) { .cols { grid-template-columns: minmax(0, 1fr); } }
.box-h h2 i { color: var(--sky-ink); margin-inline-end: .35rem; }
.box-h a { color: var(--sky-ink); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.row-l { display: flex; align-items: center; gap: .8rem; padding: 10px 0; border-top: 1px solid var(--line); }
.row-l:first-of-type { border-top: 0; padding-top: 0; }
.row-l .ic { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; background: var(--navy-50); color: var(--navy); font-size: 1.15rem; }
.row-l .tx { flex: 1; min-width: 0; display: grid; line-height: 1.5; }
.row-l .tx a { color: var(--ink); font-weight: 700; text-decoration: none; }
.row-l .tx a:hover { color: var(--navy); text-decoration: underline; }
.row-l .tx small { color: var(--muted); }
.row-l form { margin: 0; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kv > div { padding: 12px 14px; border-radius: 16px; background: var(--surface-2); }
.kv > div.wide { grid-column: 1 / -1; }
.kv b { display: block; font-size: 22px; color: var(--navy-ink); line-height: 1.3; }
.kv > div > span { color: var(--muted); font-size: 15px; }
.feed { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.feed li { position: relative; display: flex; gap: .8rem; padding: 8px 0; padding-inline-start: 4px; }
.feed li > i { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--sky-ink); }
.feed li > div { display: grid; line-height: 1.6; }
.feed li small { color: var(--muted); }
.stack-av { display: flex; flex-wrap: wrap; padding-inline-start: 8px; }
.stack-av .td-av { margin-inline-start: -8px; box-shadow: 0 0 0 3px var(--surface); }
.btx-soft { background: var(--navy-50); color: var(--navy); }
.btx-soft:hover { background: #dce4f2; color: var(--navy); }
.btx-danger-soft { background: var(--danger-bg); color: var(--danger); }
.btx-danger-soft:hover { filter: none; background: #fbd9d9; color: var(--danger); }
.go-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.go-tile { display: flex; align-items: center; gap: .8rem; padding: 14px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color var(--ease), background var(--ease); }
.go-tile:hover { border-color: var(--orange); background: var(--orange-50); color: var(--ink); }
.go-tile > i { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; background: var(--navy-50); color: var(--navy); font-size: 1.3rem; }
.go-tile.main > i { background: var(--orange); color: #1b1300; }
.go-tile > span { display: grid; line-height: 1.45; }
.go-tile small { color: var(--muted); }

/* attendance answer */
.rv-choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rv-choice label { position: relative; cursor: pointer; }
.rv-choice input { position: absolute; opacity: 0; pointer-events: none; }
.rv-choice span { display: grid; justify-items: center; gap: .3rem; min-height: 88px; padding: 12px 6px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--surface); font-weight: 800; text-align: center; transition: all var(--ease); }
.rv-choice span i { font-size: 1.6rem; }
.rv-choice .c-yes input:checked + span { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
.rv-choice .c-maybe input:checked + span { border-color: var(--orange); background: var(--orange-50); color: var(--orange-ink); }
.rv-choice .c-no input:checked + span { border-color: var(--danger); background: var(--danger-bg); color: var(--danger); }
.rv-choice input:focus-visible + span { outline: 3px solid rgba(var(--navy-rgb), .45); outline-offset: 2px; }
.rv-more { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: end; margin-top: 12px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.qty button { width: 44px; height: 48px; border: 0; background: none; color: var(--ink); font-size: 1.15rem; cursor: pointer; }
.qty button:hover:not([disabled]) { background: var(--surface-2); }
.qty button[disabled] { opacity: .35; cursor: not-allowed; }
.qty input { width: 52px; height: 48px; border: 0; background: none; text-align: center; font: 800 17px var(--font); color: var(--ink); direction: ltr; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
@media (max-width: 479.98px) { .rv-more { grid-template-columns: minmax(0, 1fr); } }

/* overview parts */
.nxt-s { display: flex; align-items: center; gap: .9rem; padding: 14px 16px; border-radius: 20px; background: var(--sky-50); border: 1px solid #bfe6f6; color: var(--ink); text-decoration: none; }
.nxt-s .ic { width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; background: var(--sky-ink); color: #fff; font-size: 1.3rem; }
.nxt-s .tx { flex: 1; display: grid; line-height: 1.45; }
.nxt-s .tx small { color: var(--sky-ink); font-weight: 700; }
.nxt-s .tm { font-size: 22px; color: var(--navy); }
.start-box { border: 2px dashed #ffd9a8; }
.ann { padding: 16px 18px; border-radius: 20px; background: var(--orange-50); border: 1px solid #ffd9a8; }
.ann-h { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin-bottom: .4rem; }
.ann-h i { color: var(--orange-ink); font-size: 1.3rem; }
.ann-h small { color: #6b4a1a; }
.ann-h a { margin-inline-start: auto; color: var(--orange-ink); font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.ann p { margin: 0; white-space: pre-line; }
.qr-d { margin-top: 14px; }
.qr-d summary { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; color: var(--sky-ink); font-weight: 700; cursor: pointer; }
.qr-box { width: 200px; margin: 8px auto 0; padding: 10px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.qr-box svg { width: 100%; height: auto; display: block; }
.empty-c.sm { padding: 22px 14px; }
.empty-c.sm > i { font-size: 1.8rem; }
.pills-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 12px; }
.btn-stack { display: grid; gap: 8px; }
.btn-stack form { margin: 0; }

/* ==========================================================
   plan
   ========================================================== */
.pl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 16px; }
.pl-f, .pl-k { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; }
.pl-f a, .pl-k a { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: 0 .9rem; border-radius: 10px; color: var(--muted); font-weight: 700; text-decoration: none; white-space: nowrap; }
.pl-f a .num { padding: 0 .45rem; border-radius: 999px; background: var(--surface-2); font-size: 15px; }
.pl-f a[aria-current], .pl-k a[aria-current] { background: var(--navy); color: #fff; }
.pl-f a[aria-current] .num { background: rgba(255,255,255,.18); color: #fff; }
.pl-add { display: flex; gap: 8px; margin-inline-start: auto; }
.pl-cost { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 12px 16px; margin-bottom: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-weight: 700; }
.pl-cost i { margin-inline-end: .4rem; }
.pl-cost b { color: var(--navy); font-size: 19px; }
.ph-sec { margin-top: 22px; }
.ph-h { display: flex; align-items: center; gap: .6rem; margin-bottom: 12px; }
.ph-h h2 { margin: 0; font-size: 20px; }
.ph-h .ln { flex: 1; height: 1px; background: var(--line); }
.ph-empty { margin: 0; padding: 14px; border-radius: 16px; border: 1.5px dashed var(--line); color: var(--muted); text-align: center; }
.pi-list { display: grid; gap: 10px; }
.pill.gray-l { background: var(--surface-2); color: var(--muted); }
.pi { position: relative; padding: 14px 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); border-inline-start: 5px solid var(--line); scroll-margin-top: calc(var(--head-h) + 70px); }
.pi.st-open { border-inline-start-color: var(--orange); }
.pi.st-covered { border-inline-start-color: var(--sky); }
.pi.st-done { border-inline-start-color: var(--ok); background: color-mix(in srgb, var(--ok-bg) 35%, var(--surface)); }
.pi-top { display: flex; align-items: flex-start; gap: .8rem; }
.pi-k { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; background: var(--navy-50); color: var(--navy); font-size: 1.15rem; }
.st-done .pi-k { background: var(--ok); color: #fff; }
.pi-tx { flex: 1; min-width: 0; }
.pi h3 { margin: 0 0 .35rem; font-size: 17px; line-height: 1.5; }
.st-done h3 { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(21,128,61,.45); }
.pi-meta { display: flex; flex-wrap: wrap; gap: .35rem; }
.pi-acts { display: flex; align-items: center; gap: 4px; }
.pi-d { margin: .6rem 0 0; color: var(--muted); white-space: pre-line; }
.pi-prov { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; margin-top: .3rem; color: var(--orange-ink); font-weight: 700; text-decoration: none; }
.pi-prov:hover { text-decoration: underline; }
.pi-pp { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pg { display: inline-flex; align-items: center; gap: .5rem; padding-block: 4px; padding-inline: 4px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.pg-t { display: grid; line-height: 1.3; }
.pg-t b { font-size: 15px; } .pg-t b small { color: var(--muted); font-weight: 600; }
.pg-t > small { color: var(--muted); }
.pg.s-proposed { border-style: dashed; }
.pg.s-accepted { background: var(--sky-50); border-color: #bfe6f6; } .pg.s-accepted .pg-t > small { color: var(--sky-ink); }
.pg.s-done { background: var(--ok-bg); border-color: #bfe5cb; } .pg.s-done .pg-t > small { color: var(--ok); }
.pg.s-declined { opacity: .6; } .pg.s-declined .pg-t b { text-decoration: line-through; }
.pg-need { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1.5px dashed var(--orange); color: var(--orange-ink); font-weight: 700; font-size: 15px; }
.pi-me { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: var(--orange-50); }
.pi-me .t { flex: 1; min-width: 180px; display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--orange-ink); }
.pi-me.ok { background: var(--sky-50); } .pi-me.ok .t { color: var(--sky-ink); }
.pi-me form { margin: 0; }
.pi-me .vq { width: 110px; min-height: 44px; }
.td-pop .flat { margin: 0; padding: 0; border: 0; }
.td-pop .danger, .td-pop .danger i { color: var(--danger); }
.td-pop form + form { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }

/* dialogs with forms */
.ov-dialog.dlg-lg { width: min(720px, calc(100vw - 24px)); }
.ov-dialog > form { display: flex; flex-direction: column; max-height: calc(100dvh - 24px); }
.ov-dialog > form > .dl-body { overflow-y: auto; }
.fm-stack { display: grid; gap: 14px; }
.dl-row { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.hint { margin: .2rem 0 0; color: var(--muted); font-size: 15px; }
.fm-grid .full { grid-column: 1 / -1; }
.fm-grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fm-grid[hidden], .fm-field[hidden] { display: none; }
.dl-foot-r { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); }
fieldset.fm-field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.fm-field legend { float: none; margin-bottom: .35rem; padding: 0; }
.sg-wrap { position: relative; }
.sg-list { position: absolute; top: 100%; inset-inline: 0; z-index: 5; display: grid; gap: 2px; margin-top: 4px; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.sg-list[hidden] { display: none; }
.sg-row { display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 46px; padding: 0 10px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: 600 16px var(--font); text-align: start; cursor: pointer; }
.sg-row:hover, .sg-row:focus { background: var(--surface-2); }
.sg-row > span { flex: 1; } .sg-row small { color: var(--muted); }
.sg-row .src { font-size: 15px; color: var(--sky-ink); }
.as-list { display: grid; gap: 6px; }
.assign-row { display: flex; align-items: center; gap: .7rem; min-height: 56px; padding: 6px 10px; border-radius: 14px; border: 1.5px solid var(--line); cursor: pointer; }
.assign-row:has(input[type=checkbox]:checked) { border-color: var(--navy); background: var(--navy-50); }
.assign-row input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--navy); flex: 0 0 auto; }
.as-t { flex: 1; display: grid; line-height: 1.4; min-width: 0; }
.as-t small { color: var(--muted); }
.as-qty { width: 96px; min-height: 44px; }
.as-qty[hidden] { display: none; }
@media (max-width: 767.98px) { .pl-add { margin-inline-start: 0; width: 100%; } .pl-add .btx { flex: 1; } .fm-grid.g3 { grid-template-columns: minmax(0, 1fr); } .pi-top { flex-wrap: wrap; } .pi-acts { margin-inline-start: auto; } }

/* ==========================================================
   event form, templates, repeat, invitation
   ========================================================== */
.side-sticky { position: sticky; top: calc(var(--head-h) + 16px); }
@media (max-width: 1099.98px) { .side-sticky { position: static; } }
.type-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.type-pick label { cursor: pointer; }
.type-pick input { position: absolute; opacity: 0; pointer-events: none; }
.type-pick span { display: grid; justify-items: center; gap: .35rem; min-height: 96px; padding: 12px 8px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--surface); font-weight: 700; text-align: center; transition: all var(--ease); }
.type-pick span i { font-size: 1.5rem; color: var(--sky-ink); }
.type-pick input:checked + span { border-color: var(--navy); background: var(--navy-50); color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.type-pick input:checked + span i { color: var(--orange-ink); }
.type-pick input:focus-visible + span { outline: 3px solid rgba(var(--navy-rgb), .45); outline-offset: 2px; }
.cover-pv { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; margin-bottom: 10px; }
.cover-pv[hidden] { display: none; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-btn:focus-within { outline: 3px solid rgba(var(--navy-rgb), .45); outline-offset: 2px; }
/* switches */
.sw-list { display: grid; gap: 0; }
.sw-i { padding: 10px 0; border-top: 1px solid var(--line); }
.sw-i:first-child { border-top: 0; padding-top: 0; }
.sw-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px; cursor: pointer; }
.sw-row > span { display: grid; line-height: 1.5; }
.sw-row > span small { color: var(--muted); font-size: 15px; }
.sw-row > span b i { color: var(--sky-ink); }
.sw-row input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; flex: 0 0 auto; margin: 0; border-radius: 99px; background: #cfd6e4; position: relative; cursor: pointer; transition: background var(--ease); }
.sw-row input[type=checkbox]::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: inset-inline-start var(--ease); }
.sw-row input[type=checkbox]:checked { background: var(--navy); }
.sw-row input[type=checkbox]:checked::after { inset-inline-start: 23px; }
.sw-row input[type=checkbox]:focus-visible { outline: 3px solid rgba(var(--navy-rgb), .45); outline-offset: 2px; }
.sw-link { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; color: var(--sky-ink); font-weight: 700; }
/* templates */
.tpl-cols { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: start; }
.tpl-nav { display: grid; gap: 6px; position: sticky; top: calc(var(--head-h) + 70px); max-height: calc(100vh - var(--head-h) - 90px); overflow-y: auto; }
.tpl-c { display: flex; align-items: center; gap: .7rem; padding: 10px; border-radius: 16px; border: 1.5px solid transparent; color: var(--ink); text-decoration: none; }
.tpl-c:hover { background: var(--surface-2); color: var(--ink); }
.tpl-c[aria-current] { border-color: var(--navy); background: var(--navy-50); }
.tpl-c .ic { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; background: var(--surface-2); color: var(--sky-ink); font-size: 1.2rem; }
.tpl-c.mine .ic { background: var(--sky-50); }
.tpl-c .tx { display: grid; line-height: 1.45; min-width: 0; }
.tpl-c small { color: var(--muted); }
.mine-t { color: var(--sky-ink); font-weight: 700; }
.tl-list { display: grid; gap: 6px; }
.tl { display: flex; align-items: center; gap: .7rem; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); cursor: pointer; }
.tl:has(input:checked) { border-color: rgba(var(--navy-rgb), .4); background: var(--navy-50); }
.tl.dup { opacity: .75; }
.tl input[type=checkbox] { width: 22px; height: 22px; flex: 0 0 auto; accent-color: var(--navy); }
.tl .pi-k { width: 36px; height: 36px; font-size: 1rem; }
.tl .tx { flex: 1; display: grid; line-height: 1.5; min-width: 0; }
.tl .tx small { color: var(--muted); }
.tl .vol { color: var(--orange-ink); }
.form-end { display: flex; justify-content: flex-end; margin-top: 18px; }
@media (max-width: 991.98px) { .tpl-cols { grid-template-columns: minmax(0, 1fr); } .tpl-nav { position: static; max-height: none; } }
/* invitation */
.invite-card { display: grid; justify-items: center; gap: .6rem; max-width: 620px; margin: clamp(16px, 4vw, 48px) auto 0; padding: clamp(24px, 4vw, 40px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.invite-card h1 { margin: 0; font-size: clamp(26px, 3vw, 36px); }
.invite-ic { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 24px; background: var(--orange); color: #1b1300; font-size: 2rem; }
.role-h { color: var(--muted); margin: .3rem 0 0; }
.invite-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: .8rem; }

/* ==========================================================
   people, guests, agenda
   ========================================================== */
.icon-btn.wa { background: #e7f8ee; color: #128c4b; }
.icon-btn.wa:hover { background: #d3f2df; }
.icon-btn.bad { color: var(--danger); }
.icon-btn.bad:hover { background: var(--danger-bg); border-color: transparent; }
.td-pop .pop-h { display: block; padding: 6px 10px 2px; color: var(--muted); font-size: 15px; font-weight: 700; }
.td-pop form.sep { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.td-pop form.flat { margin: 0; padding: 0; border: 0; }
.td-pop form.flat + form.flat { border: 0; margin: 0; padding: 0; }
.td-pop.wide { width: 300px; }
.td-pop .pop-form { display: grid; gap: 10px; padding: 6px 6px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.td-pop .pop-form .pop-h { padding: 0; }
.td-pop .pop-form .fm-chips span { min-height: 40px; padding: 0 .8rem; }
.td-pop .pop-form button.btx { color: #fff; justify-content: center; }
.pop-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.td-pop .qty button { width: 40px; height: 44px; padding: 0; justify-content: center; }

.rg-h { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 22px 0 12px; font-size: 19px; }
section:first-child > .rg-h { margin-top: 0; }
.rg-h .td-dot { width: 12px; height: 12px; background: var(--tone, var(--muted)); }
.rg-h > i.bi { color: var(--muted); }
.rg-h small { color: var(--muted); font-weight: 600; font-size: 15px; }
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.pc-p { display: flex; align-items: center; gap: .8rem; padding: 12px 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--tone); }
.pc-tx { flex: 1; min-width: 0; display: grid; line-height: 1.5; }
.pc-tx b small { color: var(--muted); font-weight: 600; }
.pc-tx > small { color: var(--muted); }
.lk { display: flex; align-items: flex-start; gap: .6rem; padding: 12px 0; border-top: 1px solid var(--line); }
.lk:first-of-type { border-top: 0; padding-top: 0; }
.lk-t { flex: 1; min-width: 0; display: grid; gap: .3rem; justify-items: start; }
.lk-t code { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: .15rem .5rem; border-radius: 8px; background: var(--surface-2); color: var(--navy); font-size: 15px; }
.lk-t small { color: var(--muted); }
.lk-a { display: flex; flex-wrap: wrap; gap: 2px; justify-content: flex-end; }
.lk-a form { margin: 0; }
.lk-new { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.lk-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.lk-lim { margin-top: 8px; }
.lk-lim summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-weight: 700; cursor: pointer; }
.qr-dlg { width: min(360px, calc(100vw - 24px)); }
.qr-dlg .qr-box { width: 240px; }

.gs { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.gs-total { display: grid; align-content: center; padding: 14px 18px; border-radius: 22px; background: var(--navy); color: #d6e1f5; line-height: 1.4; }
.gs-total b { font-size: 38px; color: #fff; }
.gs-total span { font-weight: 800; color: #fff; }
.gs-k { display: grid; justify-items: start; gap: .1rem; padding: 14px 16px; border-radius: 22px; background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; line-height: 1.4; }
.gs-k i { font-size: 1.3rem; }
.gs-k b { font-size: 26px; color: var(--navy-ink); }
.gs-k span { color: var(--muted); font-weight: 700; font-size: 15px; }
.gs-k.k-ok i { color: var(--ok); } .gs-k.k-maybe i { color: var(--orange-ink); } .gs-k.k-wait i { color: var(--muted); } .gs-k.k-no i { color: var(--danger); }
.gs-k[aria-current] { border-color: var(--navy); background: var(--navy-50); }
.gl { display: grid; }
.gr { display: flex; align-items: center; gap: .7rem; padding: 10px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--head-h) + 70px); }
.gr:first-child { border-top: 0; padding-top: 0; }
.gr-t { flex: 1; min-width: 0; display: grid; line-height: 1.5; }
.gr-t b { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.gr-t small { color: var(--muted); }
.rv-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .05rem .7rem; border-radius: 999px; font-size: 15px; font-weight: 800; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.rv-pill.r-yes { background: var(--ok-bg); color: var(--ok); } .rv-pill.r-maybe { background: var(--orange-50); color: var(--orange-ink); } .rv-pill.r-no { background: var(--danger-bg); color: var(--danger); }
.gr-a { display: flex; gap: 2px; }
@media (max-width: 991.98px) { .gs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gs-total { grid-column: 1 / -1; } }
@media (max-width: 575.98px) { .gr { flex-wrap: wrap; } .gr-t { flex-basis: calc(100% - 48px); } .rv-pill { margin-inline-start: 46px; } .gr-a { margin-inline-start: auto; } }

.ag-day { margin-top: 10px; }
.ag { position: relative; display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ag-r { position: relative; display: grid; grid-template-columns: 110px 22px minmax(0, 1fr); gap: 12px; align-items: start; scroll-margin-top: calc(var(--head-h) + 70px); }
.ag-tm { display: grid; justify-items: end; padding-top: 10px; line-height: 1.4; text-align: end; }
.ag-tm b { color: var(--navy-ink); font-size: 18px; }
.ag-tm small { color: var(--muted); }
.ag-dot { position: relative; align-self: stretch; }
.ag-dot::before { content: ""; position: absolute; top: 0; bottom: -10px; inset-inline-start: 10px; width: 2px; background: var(--line); }
.ag-r:last-child .ag-dot::before { bottom: auto; height: 20px; }
.ag-dot::after { content: ""; position: absolute; top: 16px; inset-inline-start: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--sky); }
.st-now .ag-dot::after { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 5px rgba(var(--orange-rgb), .2); }
.st-past .ag-dot::after { background: var(--ok); border-color: var(--ok); }
.ag-b { padding: 12px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.st-now .ag-b { border-color: var(--orange); background: var(--orange-50); }
.st-past .ag-b { opacity: .78; }
.ag-h { display: flex; align-items: flex-start; gap: 4px; }
.ag-h h3 { flex: 1; margin: 0 0 .3rem; font-size: 17px; line-height: 1.5; }
.ag-h form { margin: 0; }
.pill.now { background: var(--orange); color: #1b1300; }
@media (max-width: 575.98px) { .ag-r { grid-template-columns: 80px 18px minmax(0, 1fr); gap: 8px; } .ag-tm b { font-size: 16px; } }

/* ==========================================================
   budget
   ========================================================== */
.mn-k { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.mn-k > div { display: grid; gap: .1rem; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); line-height: 1.4; }
.mn-k span { color: var(--muted); font-size: 15px; font-weight: 700; }
.mn-k b { font-size: 20px; color: var(--navy-ink); }
.mn-k .mn-main { background: var(--navy); }
.mn-k .mn-main span { color: #c5d2ea; } .mn-k .mn-main b { color: #fff; font-size: 24px; }
.mn-k .over b { color: var(--danger); }
.mn-bar { display: block; height: 12px; margin-top: 14px; border-radius: 99px; background: rgba(var(--navy-rgb), .08); overflow: hidden; }
.mn-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sky), var(--navy)); }
.mn-bar.over i { background: var(--danger); }
.mn-bar.sm { height: 7px; margin-top: 6px; }
.bl-h { display: flex; justify-content: space-between; gap: .6rem; }
.bl-h small { color: var(--muted); font-weight: 700; }
.bl-h small.over { color: var(--danger); }
.ex { display: flex; align-items: flex-start; gap: .7rem; padding: 12px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--head-h) + 70px); }
.ex:first-of-type { border-top: 0; padding-top: 0; }
.ex-t { flex: 1; min-width: 0; display: grid; gap: .1rem; line-height: 1.55; }
.ex-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem; }
.ex-a { color: var(--navy); }
.ex-t small { color: var(--muted); }
.ex-t small a { color: var(--sky-ink); }
.ex-t .mine { color: var(--orange-ink); font-weight: 700; }
.tr-r { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; padding: 10px 0; border-top: 1px solid var(--line); }
.tr-r:first-of-type { border-top: 0; padding-top: 0; }
.tr-w { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-weight: 700; }
.tr-w i { color: var(--orange-ink); }
.tr-r > b { flex: 1; color: var(--navy); }
.tr-r form { margin: 0; }
.st-d { margin-top: 10px; }
.st-d summary { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; color: var(--muted); font-weight: 700; cursor: pointer; }
.st-r { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: 6px 0; font-size: 15px; }
.st-r form { margin: 0; }
.bl-new { display: grid; grid-template-columns: minmax(0, 1fr) 110px auto; gap: 8px; align-items: start; }
.ex-g { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem 1.25rem; }
.fm-input.static { display: flex; align-items: center; background: var(--surface-2); }
.sp-h { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: 8px; }
.assign-row input[type=checkbox][hidden] { display: none; }
@media (max-width: 575.98px) { .ex-g, .bl-new { grid-template-columns: minmax(0, 1fr); } .bl-new .btx-icon { width: 100%; } }

/* ==========================================================
   album, discussion
   ========================================================== */
.up-bar { margin-bottom: 14px; }
.alb { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 200px), 1fr)); gap: 8px; }
.alb-t { display: block; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: var(--surface-2); cursor: zoom-in; aspect-ratio: 1; }
.alb-t img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.alb-t:hover img { transform: scale(1.04); }
.alb-t:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.pg-links { margin-top: 18px; }
.pg-links nav { display: flex; justify-content: center; }
.pg-links .pagination { --bs-pagination-color: var(--navy); --bs-pagination-active-bg: var(--navy); --bs-pagination-active-border-color: var(--navy); --bs-pagination-padding-x: 1rem; --bs-pagination-padding-y: .55rem; }
.pg-links .text-muted { color: var(--muted) !important; font-size: 15px; }
.viewer { width: min(1100px, calc(100vw - 24px)); background: #0b1f45; color: #fff; }
.vw-img { position: relative; display: grid; place-items: center; min-height: 240px; max-height: calc(100dvh - 130px); background: #000; }
.vw-img img { max-width: 100%; max-height: calc(100dvh - 130px); object-fit: contain; }
.vw-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: 1.3rem; cursor: pointer; }
.vw-nav:hover { background: rgba(255,255,255,.3); }
.vw-nav.prev { inset-inline-start: 12px; } .vw-nav.next { inset-inline-end: 12px; }
.vw-bar { display: flex; align-items: center; gap: .4rem; padding: 10px 14px; }
.vw-t { flex: 1; min-width: 0; font-size: 15px; color: #c5d2ea; }
.vw-t b { color: #fff; }
.vw-bar .icon-btn { color: #fff; } .vw-bar .icon-btn:hover { background: rgba(255,255,255,.12); border-color: transparent; }
.vw-bar .icon-btn.bad { color: #ffb4b4; }
.vw-bar form { margin: 0; }

.cmp { display: flex; gap: .8rem; }
.cmp-b { flex: 1; min-width: 0; display: grid; gap: 10px; }
.cmp-f { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.sw-row.sm { min-height: 44px; gap: .7rem; justify-content: flex-start; }
.sw-row.sm > span { order: 2; }
.post { padding: 14px 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); scroll-margin-top: calc(var(--head-h) + 70px); }
.post.ann-p { background: var(--orange-50); border-color: #ffd9a8; }
.post-h { display: flex; align-items: center; gap: .6rem; }
.post-h form { margin: 0; }
.post-w { flex: 1; min-width: 0; display: grid; line-height: 1.4; }
.post-w small { color: var(--muted); }
.post-b { margin: .6rem 0 0; white-space: pre-line; }
.poll-q { font-weight: 800; }
.poll-q i { color: var(--orange-ink); }
.poll { display: grid; gap: 6px; margin-top: 10px; }
.poll-o { position: relative; display: flex; align-items: center; gap: .6rem; min-height: 48px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; }
.poll-o input { position: relative; z-index: 1; width: 20px; height: 20px; accent-color: var(--navy); }
.poll-bar { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--sky-50); transition: width 500ms ease; }
.poll-o.mine { border-color: var(--sky-ink); } .poll-o.mine .poll-bar { background: #c9ecf9; }
.poll-l { position: relative; flex: 1; font-weight: 700; }
.poll-n { position: relative; color: var(--muted); font-size: 15px; font-weight: 700; }
.poll-f { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.post > form:last-of-type:not(.poll) { margin-top: 4px; }
.replies { display: grid; gap: 10px; margin-top: 12px; padding: 12px 0 0; padding-inline-start: 14px; border-top: 1px dashed var(--line); border-inline-start: 3px solid var(--navy-50); }
.reply { display: flex; gap: .6rem; }
.reply .post-b { margin-top: .2rem; }
.rp-f { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.rp-f .fm-input { min-height: 46px; }
.tips-l { margin: 0; padding-inline-start: 1.1rem; display: grid; gap: .4rem; color: var(--muted); font-size: 15px; }
.poll-ins { display: grid; gap: 6px; }
.cols > div > .post + .post, .cols > div > .box + .post { margin-top: 0; }

/* ==========================================================
   report, check-in
   ========================================================== */
.rep { display: grid; gap: 16px; }
.rep-top { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.rep-kv { flex: 1; min-width: 260px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.rep-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rep-bar { display: grid; gap: 2px; margin-bottom: 12px; }
.rank { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--orange-50); color: var(--orange-ink); font-weight: 800; }
.dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .45rem 1.2rem; margin: 0; }
.dl dt { color: var(--muted); font-weight: 700; }
.dl dd { margin: 0; font-weight: 800; color: var(--navy-ink); }
.dl dd.over { color: var(--danger); } .dl dd.save { color: var(--sky-ink); }
.rep-lines { display: grid; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; }
.alb.sm { grid-template-columns: repeat(auto-fill, minmax(min(30%, 120px), 1fr)); }
.alb.sm .alb-t { cursor: default; }
.print-only { display: none; }
.rep-ph { text-align: center; }
.rep-ph h1 { margin: .6rem 0 .2rem; }
@media (max-width: 767.98px) { .rep-g { grid-template-columns: minmax(0, 1fr); } }
@media print {
  .td-head, .td-tabbar, .evt, .evh, .evh-closed, .no-print, .ov-toasts, .skip { display: none !important; }
  .print-only { display: block !important; }
  body.td-app { padding: 0 !important; background: #fff; }
  .box { break-inside: avoid; box-shadow: none; }
  .td-main { padding: 0 !important; }
}
.ci-k { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ci-f { display: flex; gap: 6px; align-items: center; margin: 0; }
.ci-f .fm-input { width: 76px; min-height: 44px; }
.gr[hidden] { display: none; }
.scan-box { display: grid; place-items: center; min-height: 240px; border-radius: 18px; background: var(--surface-2); color: #b4bccb; font-size: 2.6rem; overflow: hidden; }
.scan-log { display: grid; gap: 8px; margin-top: 10px; }
.rv-pill.big { padding: .4rem 1rem; font-size: 17px; }
.invite-card .td-av.xl { margin-bottom: .3rem; }

/* ==========================================================
   my pages
   ========================================================== */
.ts-r .ev-l { color: var(--sky-ink); }
.ts-r .late { color: var(--danger); font-weight: 700; }
.ts-a { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ts-a form { margin: 0; }
.box-h h2.t-orange, .box-h h2.t-sky, .box-h h2.t-navy { color: var(--navy-ink); }
@media (max-width: 575.98px) { .ts-r { flex-wrap: wrap; } .ts-a { width: 100%; } }
.nt-box { padding: 8px; }
.nt { display: flex; align-items: center; gap: .8rem; padding: 12px; border-radius: 16px; color: var(--ink); text-decoration: none; }
.nt:hover { background: var(--surface-2); color: var(--ink); }
.nt.unread { background: var(--sky-50); }
.nt .ic { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--navy); font-size: 1.15rem; }
.nt .tx { flex: 1; min-width: 0; display: grid; line-height: 1.55; }
.nt .tx small { color: var(--muted); }
.nt-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: var(--orange); }
.tp-c { display: flex; flex-direction: column; gap: 10px; }
.tp-h { display: flex; align-items: center; gap: .8rem; }
.tp-h .ic { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 15px; background: var(--sky-50); color: var(--sky-ink); font-size: 1.3rem; }
.tp-h .tx { display: grid; line-height: 1.45; }
.tp-h small { color: var(--muted); }
.tp-f { margin: auto 0 0; }
.pr-av { display: flex; align-items: center; gap: 1rem; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.pr-av img[hidden] { display: none; }
.pr-av-a { display: grid; gap: 6px; justify-items: start; }
.pr-av-a b { font-size: 20px; }
fieldset.fm-field { scroll-margin-top: calc(var(--head-h) + 20px); }

/* ==========================================================
   providers
   ========================================================== */
.pv-hero { padding: clamp(24px, 4vw, 48px) 0 clamp(20px, 3vw, 32px); background: radial-gradient(55% 90% at 100% 0%, rgba(var(--sky-rgb), .16), transparent 70%), radial-gradient(40% 70% at 0% 100%, rgba(var(--navy-rgb), .07), transparent 70%), var(--navy-50); border-bottom: 1px solid #d5deee; }
.pv-hero-in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.pv-hero h1 { font-size: clamp(28px, 3.4vw, 44px); margin: .5rem 0 .4rem; }
.pv-search { display: grid; grid-template-columns: minmax(0, 1fr) 220px 200px auto; gap: 10px; align-items: end; margin-top: 20px; padding: 12px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.pv-q { display: flex; align-items: center; gap: .5rem; min-height: 52px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); }
.pv-q:focus-within { border-color: rgba(var(--navy-rgb), .6); box-shadow: 0 0 0 4px rgba(var(--navy-rgb), .12); }
.pv-q i { color: var(--muted); }
.pv-q input { flex: 1; min-width: 0; height: 48px; border: 0; background: none; font: 600 16px var(--font); color: var(--ink); }
.pv-q input:focus { outline: none; }
.pv-sel .fm-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cat-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; } /* every category in view, on as many rows as needed */
.cat-row a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.cat-row a i { color: var(--orange-ink); }
.cat-row a[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.cat-row a[aria-current] i { color: #fff; }
.pvc { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); transition: transform var(--ease), box-shadow var(--ease); }
.pvc:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pvc-h { display: flex; align-items: center; gap: .8rem; }
.pvc-logo { width: 56px; height: 56px; flex: 0 0 auto; border-radius: 16px; object-fit: cover; }
.pvc-logo.ph { display: grid; place-items: center; background: var(--sky-50); color: var(--sky-ink); font-size: 1.5rem; }
.pvc-logo.lg { width: 84px; height: 84px; border-radius: 22px; font-size: 2rem; }
.pvc-logo[hidden] { display: none; }
.pvc-t { flex: 1; min-width: 0; display: grid; line-height: 1.45; }
.pvc-t h3 { margin: 0; font-size: 18px; }
.pvc-t h3 a { color: inherit; text-decoration: none; }
.pvc-t h3 a::after { content: ""; position: absolute; inset: 0; }
.pvc-t small { color: var(--muted); }
.vf { color: var(--sky-ink); }
.pvc-r { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.pvc-r small { color: var(--muted); }
.pvc-d { margin: 0; color: var(--muted); font-size: 15px; }
.pvc-f { margin-top: auto; }
.pv-top { display: grid; gap: 14px; }
.pv-id { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.pv-idt { flex: 1; min-width: 200px; display: grid; gap: .2rem; }
.pv-idt h1 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.pv-desc { margin: 0; white-space: pre-line; }
.btx-wa { background: #128c4b; }
.rv-form { display: grid; gap: 10px; padding: 14px; margin-bottom: 14px; border-radius: 18px; background: var(--sky-50); }
.star-in { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; direction: ltr; }
.star-in input { position: absolute; opacity: 0; pointer-events: none; }
.star-in label { display: grid; place-items: center; width: 44px; height: 44px; color: #cfd6e4; font-size: 1.6rem; cursor: pointer; }
.star-in input:checked ~ label, .star-in label:hover, .star-in label:hover ~ label { color: #f59e0b; }
.star-in input:focus-visible + label { outline: 3px solid rgba(var(--navy-rgb), .45); border-radius: 10px; }
.pvm { display: grid; gap: 12px; }
.pvm .pvc-t h3 { font-size: 17px; }
.kv.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kv.k3 b { font-size: 20px; }
.pvm-a { display: flex; gap: 8px; }
.pvm-a .btx { flex: 1; }
.ph-del { position: relative; }
.ph-del .icon-btn { position: absolute; top: 6px; inset-inline-end: 6px; background: var(--surface); }
@media (max-width: 991.98px) { .pv-search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .pv-q { grid-column: 1 / -1; } }
@media (max-width: 575.98px) { .pv-search { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================
   invitation card pages (answer, join, invalid link) + explore
   ========================================================== */
.cd-page { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; padding: 0 16px 32px; background: radial-gradient(60% 40% at 100% 0%, rgba(var(--sky-rgb), .35), transparent 70%), radial-gradient(50% 40% at 0% 30%, rgba(var(--orange-rgb), .25), transparent 70%), linear-gradient(180deg, var(--navy) 0, var(--navy-ink) 340px, var(--page) 340px); background-size: 100% 340px, 100% 340px, 100% 100%; background-repeat: no-repeat; background-color: var(--page); }
.cd-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; max-width: 640px; min-height: 76px; }
.cd-main { width: 100%; max-width: 640px; display: grid; gap: 14px; }
.cd { border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; }
.cd-h { position: relative; display: grid; justify-items: start; gap: .3rem; padding: 24px clamp(18px, 4vw, 30px); color: #fff; background: linear-gradient(140deg, var(--sky-ink), var(--navy)); }
.cd-h::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(11,31,69,.9), rgba(11,31,69,.55)), var(--cover, none); background-size: cover; background-position: center; }
.cd-h > * { position: relative; }
.cd-h p { margin: .4rem 0 0; color: #d6e1f5; }
.cd-h h1 { margin: 0; color: #fff; font-size: clamp(26px, 4vw, 34px); line-height: 1.35; }
.cd-h small { color: #c5d2ea; }
.cd-b { display: grid; gap: 16px; padding: 20px clamp(18px, 4vw, 30px) 26px; }
.cd-facts { display: grid; gap: 6px; }
.cd-facts span { display: flex; align-items: center; gap: .55rem; font-weight: 700; }
.cd-facts i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--navy-50); color: var(--navy); }
.cd-desc { margin: 0; white-space: pre-line; color: var(--muted); }
.cd-qr { display: grid; justify-items: center; gap: 8px; padding: 16px; border-radius: 18px; background: var(--sky-50); text-align: center; }
.cd-qr small { color: var(--muted); }
.cd-ag { display: grid; gap: 4px; }
.cd-ag-r { display: flex; gap: .9rem; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cd-ag-r .num { min-width: 52px; color: var(--navy); font-weight: 800; }
.cd-ag-r small { color: var(--muted); }
.cd-form h2 { font-size: 19px; margin: 0 0 10px; }
.cd-role { display: grid; justify-items: start; gap: .4rem; padding: 14px; border-radius: 16px; background: var(--tone-bg); }
.cd-role > span:last-child { color: var(--muted); }
.cd-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cd-claim { padding: 18px; text-align: center; }
.cd-claim p { color: var(--muted); }
.cd-after { box-shadow: var(--shadow); }
.cd-state { display: grid; justify-items: center; gap: .6rem; padding: 32px 22px; text-align: center; }
.cd-state h1 { margin: 0; font-size: 26px; }
.cd-state p { margin: 0; color: var(--muted); }
.cd-st-ic { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 24px; background: var(--danger-bg); color: var(--danger); font-size: 2.2rem; }
.cd-foot { margin-top: 22px; color: var(--muted); font-size: 15px; text-align: center; }
.cd-foot a { color: var(--sky-ink); font-weight: 700; }
.ex-search { grid-template-columns: minmax(0, 1fr) 240px auto; }
.ex-hero { background: radial-gradient(60% 90% at 100% 0%, rgba(var(--sky-rgb), .18), transparent 70%), var(--sky-50); border-bottom-color: #bfe6f6; }
@media (max-width: 767.98px) { .ex-search { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 400px) { .cd-two { grid-template-columns: minmax(0, 1fr); } .rv-choice span { padding: 12px 2px; font-size: 15px; white-space: nowrap; } }
@media (max-width: 991.98px) { .pu-cols > .side-sticky { order: -1; } }

/* ==========================================================
   admin panel (AdminLab shell, in تم Done colours)
   ========================================================== */
.fm-chips label { position: relative; } /* the hidden checkbox must not widen the page */
.td-admin { --side: #0b1f45; --side-ink: #c5d2ea; background: var(--page); }
.ad-app { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 100dvh; }
.ad-side { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; background: var(--side); color: var(--side-ink); z-index: 60; }
.sd-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 10px; }
.sd-logo { display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; font-size: 19px; font-weight: 800; line-height: 1.25; }
.sd-logo:hover { color: #fff; }
.sd-logo .mk { width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #fff; }
.sd-logo small { display: block; color: var(--side-ink); font-size: 15px; font-weight: 600; }
.sd-close { display: none; color: #fff; }
.sd-close:hover { background: rgba(255,255,255,.08); border-color: transparent; }
.sd-nav { flex: 1; overflow-y: auto; padding: 6px 12px 12px; scrollbar-width: thin; }
.sd-h { margin: 16px 12px 6px; color: rgba(197,210,234,.62); font-size: 15px; font-weight: 800; }
.sd-nav a { position: relative; display: flex; align-items: center; gap: .8rem; min-height: 46px; padding: 0 12px; border-radius: 12px; color: var(--side-ink); text-decoration: none; font-weight: 700; }
.sd-nav a > i { width: 22px; font-size: 1.15rem; text-align: center; }
.sd-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.sd-nav a[aria-current="page"] { background: rgba(255,255,255,.1); color: #fff; }
.sd-nav a[aria-current="page"]::before { content: ""; position: absolute; inset-inline-start: -12px; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: var(--orange); }
.sd-nav .cnt { margin-inline-start: auto; min-width: 26px; padding: 0 .4rem; border-radius: 999px; background: var(--orange); color: #fff; font-size: 15px; font-weight: 800; text-align: center; line-height: 1.6; }
.sd-foot { padding: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.sd-back { display: flex; align-items: center; gap: .8rem; min-height: 46px; padding: 0 12px; border-radius: 12px; color: var(--side-ink); text-decoration: none; font-weight: 700; }
.sd-back:hover { background: rgba(255,255,255,.07); color: #fff; }
.sd-back i { width: 22px; text-align: center; }
.ad-scrim { display: none; }
.ad-main { min-width: 0; display: flex; flex-direction: column; }
.ad-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: .8rem; min-height: 68px; padding: 0 clamp(14px, 2vw, 28px); background: color-mix(in srgb, var(--page) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.ad-burger { display: none; }
.ad-where { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); font-weight: 700; }
.ad-acts { display: flex; align-items: center; gap: .3rem; margin-inline-start: auto; }
.ad-me { display: flex; align-items: center; gap: .6rem; min-height: 48px; padding: 0 .5rem; border: 1px solid transparent; border-radius: 14px; background: none; color: var(--ink); font-family: var(--font); text-align: start; cursor: pointer; line-height: 1.3; }
.ad-me:hover { background: var(--surface); border-color: var(--line); }
.ad-me b { display: block; font-size: 15px; }
.ad-me small { display: block; color: var(--muted); font-size: 15px; }
.ad-content { flex: 1; display: grid; gap: clamp(16px, 1.6vw, 22px); align-content: start; padding: clamp(16px, 2vw, 28px); min-width: 0; max-width: 1440px; width: 100%; }
@media (max-width: 991.98px) {
  .ad-app { grid-template-columns: minmax(0, 1fr); }
  .ad-side { position: fixed; inset-block: 0; inset-inline-start: 0; width: min(300px, 86vw); transform: translateX(110%); transition: transform 260ms cubic-bezier(.2,.7,.3,1); visibility: hidden; }
  .ad-side.is-open { transform: none; visibility: visible; }
  .ad-scrim.on { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(8,16,40,.5); }
  .sd-close { display: inline-grid; }
  .ad-burger { display: inline-grid; }
}

/* ---------- page parts ---------- */
.td-admin .muted { color: var(--muted); }
.pg-h { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .8rem 1rem; }
.pg-h h1 { font-size: clamp(24px, 2.4vw, 32px); margin: 0; }
.pg-h p { margin: .15rem 0 0; color: var(--muted); }
.crumbs { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 .2rem; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.crumbs li + li::before { content: "/"; margin-inline-end: .3rem; opacity: .6; }
.crumbs a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; } .crumbs a:hover { color: var(--sky-ink); text-decoration: underline; }
.td-admin .box-h h2 { font-size: 18px; }
.td-admin .box-h .muted { font-size: 15px; }
.pills { display: inline-flex; flex-wrap: wrap; gap: .3rem; }
.pill.info { background: var(--info-bg); color: var(--info); }
.pill.mute { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.pill.navy { background: var(--navy-50); color: var(--navy); }
.who { display: flex; align-items: center; gap: .7rem; min-width: 0; color: inherit; text-decoration: none; }
.who > span { display: grid; min-width: 0; }
.who b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who small { color: var(--muted); font-size: 15px; }
.who small.num { display: block; overflow: hidden; text-overflow: ellipsis; text-align: end; }
.who-lg h1 { font-size: clamp(22px, 2.2vw, 28px); margin: 0; }
.who-lg small { line-height: 1.6; }
a.who:hover .ad-lk, .ad-lk:hover { color: var(--sky-ink); text-decoration: underline; }
.ad-lk { color: var(--ink); font-weight: 800; text-decoration: none; }
.ad-lk-soft { color: var(--sky-ink); font-weight: 700; text-decoration: none; }
.ad-lk-soft:hover { text-decoration: underline; }
.empty { display: grid; justify-items: center; gap: .4rem; padding: 40px 20px; text-align: center; color: var(--muted); }
.empty > i { font-size: 2.4rem; color: var(--sky-ink); }
.empty > b { color: var(--ink); font-size: 18px; }

/* to-do tiles on the overview */
.ad-todo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.ad-todo a { display: flex; align-items: center; gap: .9rem; min-height: 72px; padding: 12px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; transition: border-color var(--ease), transform var(--ease); }
.ad-todo a:hover { transform: translateY(-2px); border-color: var(--tone, var(--line)); }
.ad-todo a > i:first-child { width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; font-size: 1.25rem; }
.ad-todo a > span { flex: 1; min-width: 0; }
.ad-todo a > span b { margin-inline-end: .4rem; font-size: 22px; }
.ad-todo .go { color: var(--muted); }
.ad-todo .t-bad { --tone: var(--danger); } .ad-todo .t-bad > i:first-child { background: var(--danger-bg); color: var(--danger); }
.ad-todo .t-warn { --tone: var(--orange); } .ad-todo .t-warn > i:first-child { background: var(--orange-50); color: var(--orange-ink); }

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 18px); }
.kpi { display: grid; gap: .15rem; align-content: start; }
.kpi > .lbl { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-weight: 700; font-size: 15px; }
.kpi > .lbl i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--navy-50); color: var(--navy); }
.kpi > .val { font-size: clamp(26px, 2.4vw, 34px); font-weight: 800; line-height: 1.3; color: var(--navy-ink); justify-self: start; }
.kpi > .sub { color: var(--sky-ink); font-size: 15px; font-weight: 700; }
@media (max-width: 991.98px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 340px) { .kpis { grid-template-columns: minmax(0, 1fr); } }
.ad-g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 1.6vw, 22px); }
@media (max-width: 1099.98px) { .ad-g2 { grid-template-columns: minmax(0, 1fr); } }
.ad-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(16px, 1.6vw, 22px); align-items: start; }
.ad-cols > * { display: grid; gap: clamp(16px, 1.6vw, 22px); min-width: 0; align-content: start; }
@media (max-width: 1099.98px) { .ad-cols { grid-template-columns: minmax(0, 1fr); } }

/* weekly bars */
.ad-bars { margin: 0; }
.ab-plot { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); align-items: end; gap: 6px; height: 190px; padding-top: 22px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0 41px, var(--line) 41px 42px); }
.ab-col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.ab-b { width: min(100%, 34px); min-height: 2px; border-radius: 8px 8px 2px 2px; background: color-mix(in srgb, var(--sky) 55%, white); transition: background var(--ease); }
.ab-col.last .ab-b { background: var(--navy); }
.ab-col:hover .ab-b { background: var(--sky-ink); }
.ab-v { position: absolute; top: -22px; color: var(--muted); font-size: 15px; font-weight: 700; line-height: 1; }
.ab-col:not(.last):not(:hover) .ab-v { opacity: 0; }
.ab-x { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.ab-x span { color: var(--muted); font-size: 15px; text-align: center; white-space: nowrap; overflow: visible; display: flex; justify-content: center; }
.ab-tbl { margin-top: 10px; }
.ab-tbl summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--sky-ink); font-weight: 700; cursor: pointer; }
@media (max-width: 575.98px) { .ab-x span:nth-child(4n+2) { visibility: hidden; } }

/* horizontal bars + usage list */
.hb { display: grid; gap: 10px; }
.hb-r { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 44px; align-items: center; gap: 12px; }
.hb-r > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.hb-t { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.hb-t span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--navy), var(--sky)); }
.hb-r b { text-align: end; justify-self: end; }
.ad-use { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ad-use > div { display: flex; align-items: center; gap: .6rem; min-width: 0; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.ad-use i { color: var(--sky-ink); }
.ad-use span { flex: 1; min-width: 0; color: var(--muted); font-size: 15px; }
.ad-use b { font-size: 18px; color: var(--navy-ink); }
@media (max-width: 479.98px) { .ad-use { grid-template-columns: minmax(0, 1fr); } .hb-r { grid-template-columns: minmax(0, 110px) minmax(0, 1fr) 40px; } }

/* tabs */
.utabs { display: flex; gap: 4px; overflow-x: auto; padding: 0 12px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.utabs::-webkit-scrollbar { display: none; }
.utabs a { display: inline-flex; align-items: center; gap: .4rem; min-height: 50px; padding: 0 .9rem; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 800; font-size: 15px; white-space: nowrap; text-decoration: none; }
.utabs a:hover { color: var(--ink); }
.utabs a[aria-current="page"] { color: var(--navy); border-color: var(--orange); }
.utabs .n { min-width: 26px; padding: 0 .4rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 15px; text-align: center; }
.utabs a[aria-current="page"] .n { background: var(--orange-50); color: var(--orange-ink); }
.utabs-box { border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }

/* data table (tbl) */
.tcard { min-width: 0; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); container-type: inline-size; overflow: hidden; }
.tcard-t { margin: 0; font-size: 18px; }
.tbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: 14px 16px; }
.tbar .sp { flex: 1; }
.tbar .muted { font-size: 15px; }
.tsearch { position: relative; flex: 1 1 240px; max-width: 420px; }
.tsearch i { position: absolute; top: 50%; inset-inline-start: 14px; transform: translateY(-50%); color: var(--muted); }
.tsearch input { width: 100%; min-height: 46px; padding: 0 14px; padding-inline-start: 42px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: 500 15px var(--font); }
.tsearch input:focus { outline: none; border-color: rgba(var(--navy-rgb), .6); box-shadow: 0 0 0 4px rgba(var(--navy-rgb), .12); }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.tbl th, .tbl td { padding: 12px 16px; text-align: start; vertical-align: middle; border-top: 1px solid var(--line); }
.tbl thead th { background: var(--surface-2); color: var(--muted); font-weight: 800; white-space: nowrap; border-top: 0; }
.tbl tbody tr { transition: background var(--ease); }
.tbl tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.tbl td small.u { display: block; color: var(--muted); font-size: 15px; }
.tbl td small.u i { color: var(--sky-ink); }
.tbl .who { max-width: 320px; }
@container (max-width: 640px) {
  .tbl thead { display: none; }
  .tbl, .tbl tbody { display: block; }
  .tbl tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem 1rem; padding: 14px 16px; border-top: 1px solid var(--line); }
  .tbl td { display: block; padding: 0; border: 0; min-width: 0; }
  .tbl td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 15px; font-weight: 700; }
  .tbl td:first-child[data-label] { grid-column: 1 / -1; }
  .tbl td:first-child[data-label]::before { display: none; }
}
.ab-tbl .tbl td, .ab-tbl .tbl th { padding: 8px 12px; }
.ab-tbl .tbl tbody tr { display: table-row; padding: 0; }

/* detail pages */
.ad-nums { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.ad-nums > div { display: grid; justify-items: center; gap: .1rem; padding: 12px 6px; border-radius: 14px; background: var(--surface-2); text-align: center; }
.ad-nums i { color: var(--sky-ink); }
.ad-nums b { font-size: 22px; color: var(--navy-ink); line-height: 1.3; }
.ad-nums span { color: var(--muted); font-size: 15px; }
@media (max-width: 767.98px) { .ad-nums { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ad-dl { display: grid; gap: 0; margin: 16px 0 0; }
.ad-dl > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 1rem; padding: 10px 0; border-top: 1px solid var(--line); }
.ad-dl dt { color: var(--muted); font-weight: 700; }
.ad-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 479.98px) { .ad-dl > div { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.ad-note { display: flex; gap: .5rem; margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--navy-50); color: var(--muted); font-size: 15px; }
.ad-note i { color: var(--navy); }
.ad-rows { display: grid; }
.ad-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: 12px 0; border-top: 1px solid var(--line); }
.ad-row > div { flex: 1 1 200px; display: grid; min-width: 0; }
.ad-row small { color: var(--muted); font-size: 15px; }
.ad-row > .muted { font-size: 15px; }
.ad-log { display: grid; margin: 0; padding: 0; list-style: none; }
.ad-log li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: .8rem; padding: 12px 0; border-top: 1px solid var(--line); }
.ad-log li:first-child { border-top: 0; padding-top: 0; }
.ad-log li > i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--navy-50); color: var(--navy); }
.ad-log p { margin: 0; }
.ad-log time { color: var(--muted); font-size: 15px; }
.ad-alert { display: flex; gap: .6rem; padding: 12px 14px; border-radius: 14px; background: var(--danger-bg); color: var(--danger); font-weight: 600; }
.ad-hr { margin: 2px 0; border: 0; border-top: 1px solid var(--line); opacity: 1; }

/* reports and provider review: content on one side, the decision on the other */
.rp { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
.rp-main { display: grid; gap: 10px; align-content: start; min-width: 0; }
.rp-h { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; }
.rp-h .muted { font-size: 15px; }
.rp-q { margin: 0; font-size: 17px; }
.rp-c { display: grid; gap: .3rem; justify-items: start; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); border-inline-start: 4px solid var(--orange); }
.rp-c p { margin: 0; white-space: pre-line; }
.rp-c small { color: var(--muted); font-size: 15px; }
.rp-c img { max-width: min(100%, 260px); border-radius: 12px; }
.rp-stars { color: var(--orange); letter-spacing: 1px; }
.rp-d { margin: 0; white-space: pre-line; }
.rp-ph { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-ph img { width: 88px; height: 88px; object-fit: cover; border-radius: 12px; }
.rp-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 0; align-items: center; }
.rp-links a { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; }
.rp-act { display: grid; gap: 8px; align-content: start; padding-inline-start: 20px; border-inline-start: 1px solid var(--line); }
@media (max-width: 899.98px) { .rp { grid-template-columns: minmax(0, 1fr); } .rp-act { padding: 16px 0 0; border-inline-start: 0; border-top: 1px solid var(--line); } }
.pv-logo-s { width: 60px; height: 60px; flex: 0 0 auto; border-radius: 16px; object-fit: cover; }
.pv-logo-s.ph { display: grid; place-items: center; background: var(--sky-50); color: var(--sky-ink); font-size: 1.5rem; }

/* settings lists (event types, provider categories) */
.cfg-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: clamp(14px, 1.4vw, 18px); align-items: start; }
.cfg { display: grid; gap: 14px; }
.cfg.is-off { background: var(--surface-2); }
.cfg.is-off .cfg-ic { filter: grayscale(1); opacity: .6; }
.cfg-new { border: 2px dashed color-mix(in srgb, var(--navy) 25%, var(--line)); scroll-margin-top: 90px; }
.cfg-h { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.cfg-h > div { flex: 1 1 160px; display: grid; min-width: 0; }
.cfg-h b { font-size: 18px; }
.cfg-h small { color: var(--muted); font-size: 15px; }
.cfg-ic { width: 52px; height: 52px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 16px; background: var(--navy-50); color: var(--navy); font-size: 1.4rem; }
.cfg-f { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 96px; gap: 12px; }
.cfg-f3 { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.4fr); }
.cfg-f4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 767.98px) { .cfg-f, .cfg-f3, .cfg-f4 { grid-template-columns: minmax(0, 1fr); } }
.cfg-mods { margin: 0; padding: 0; border: 0; min-width: 0; }
.cfg-mods legend { float: none; width: auto; margin-bottom: 6px; padding: 0; }
.cfg-a { display: flex; justify-content: flex-end; }
.tgl { position: relative; display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; cursor: pointer; }
.tgl input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tgl > span { position: relative; width: 46px; height: 28px; flex: 0 0 auto; border-radius: 28px; background: #c6cfdd; transition: background var(--ease); }
.tgl > span::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: inset-inline-start var(--ease); }
.tgl input:checked + span { background: var(--ok); }
.tgl input:checked + span::after { inset-inline-start: 21px; }
.tgl input:focus-visible + span { outline: 3px solid rgba(var(--navy-rgb), .5); outline-offset: 2px; }
.tgl input:disabled + span { opacity: .55; }
.tgl em { font-style: normal; font-size: 15px; font-weight: 700; color: var(--muted); }

/* official templates */
.tp-group { display: grid; gap: 10px; }
.tp-gh { display: flex; align-items: center; gap: .5rem; margin: 6px 0 0; font-size: 19px; }
.tp-gh i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--navy-50); color: var(--navy); font-size: 1.1rem; }
.tp-gh .muted { font-size: 15px; }
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.tp-card { position: relative; display: grid; gap: .3rem; align-content: start; padding-inline-end: 44px; color: var(--ink); text-decoration: none; transition: border-color var(--ease), transform var(--ease); }
.tp-card:hover { border-color: var(--sky); transform: translateY(-2px); color: var(--ink); }
.tp-card b { font-size: 17px; }
.tp-card p { margin: 0; color: var(--muted); font-size: 15px; }
.tp-m { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .3rem; color: var(--muted); font-size: 15px; }
.tp-m i { color: var(--sky-ink); }
.tp-card .go { position: absolute; top: 50%; inset-inline-end: 16px; transform: translateY(-50%); color: var(--muted); }

/* template editor */
.tpl-form { display: grid; gap: clamp(16px, 1.6vw, 22px); }
.ti-list { display: grid; gap: 12px; }
.ti { display: grid; gap: 12px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface-2); }
.ti-top { display: flex; align-items: end; gap: 10px; }
.ti-title { flex: 1; min-width: 0; }
.ti-del { color: var(--danger); margin-bottom: 4px; }
.ti-del:hover { background: var(--danger-bg); border-color: transparent; }
.ti-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.ti .fm-field[hidden] { display: none; }
.tpl-save { position: sticky; bottom: 0; z-index: 30; display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 calc(-1 * clamp(16px, 2vw, 28px)) calc(-1 * clamp(16px, 2vw, 28px)); padding: 12px clamp(16px, 2vw, 28px); background: color-mix(in srgb, var(--page) 92%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.ad-one { display: grid; max-width: 900px; } .ad-one > * { display: grid; gap: clamp(16px, 1.6vw, 22px); min-width: 0; }
.cd-code { margin: 0; color: var(--muted); font-size: 15px; font-weight: 800; letter-spacing: .1em; }
.cd-st-ic.warn { background: var(--orange-50); color: var(--orange-ink); }
.cd-st-ic.info { background: var(--sky-50); color: var(--sky-ink); }
/* standalone text links: a 44px tap area without moving the text around them */
.evh-f a, .cd-facts a, .row-l .tx > a, .tbl .ad-lk, .tbl .ad-lk-soft, .ad-dl .ad-lk, .rp-c .ad-lk-soft { display: inline-block; padding-block: 9px; margin-block: -9px; }
.tbl .ad-lk-soft { padding-inline: 4px; margin-inline: -4px; }
@media (max-width: 400px) { .ph-in { gap: .6rem; } }
.ab-x span:last-child { justify-content: flex-end; } .ab-x span:first-child { justify-content: flex-start; }

/* ---------- brand: the mark + the original lettering (image), same everywhere ---------- */
.td-brand { gap: .6rem; }
.td-brand .mk { width: 46px; height: 46px; }
.td-brand .wm { display: block; width: auto; height: 42px; }
.td-brand.on-dark .wm { height: 40px; }
.td-brand.stack { flex-direction: column; gap: .3rem; }
.td-brand.stack .mk { width: 96px; height: 96px; }
@media (max-width: 400px) { .td-brand .mk { width: 40px; height: 40px; } .td-brand .wm { height: 36px; } }
.sd-logo .wm { display: block; width: auto; height: 32px; margin-bottom: 2px; }
.sd-logo > span:last-child { display: grid; justify-items: start; }
/* footer on signed-in pages: no sign-up banner, so less space above */
.td-foot.is-app { margin-top: clamp(40px, 5vw, 64px); }
@media print { .td-foot { display: none !important; } }
/* the footer stays at the bottom of short pages */
body:has(> .td-foot) { display: flex; flex-direction: column; min-height: 100dvh; }
body:has(> .td-foot) > #main { flex: 1 0 auto; width: 100%; }
body:has(> .td-foot) > .td-foot { flex-shrink: 0; }
@media (max-width: 767.98px) { .ph-mine { width: 44px; padding: 0; justify-content: center; } }
@media (max-width: 400px) { .td-brand .wm { height: 32px; } .td-brand .mk { width: 38px; height: 38px; } }
/* event card: the cover keeps a photo's proportions instead of a thin strip */
.ev-top { aspect-ratio: 16 / 9; min-height: 150px; }
.ev-type { display: inline-block; min-width: 0; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; line-height: 1.9; }
.ev-type i { margin-inline-end: .4rem; }
/* admin: the sidebar (and its logo) is hidden on phones and tablets, so the top bar shows the logo there */
.ad-brand-m { display: none; }
@media (max-width: 991.98px) { .ad-brand-m { display: inline-flex; } .ad-brand-m .mk { width: 36px; height: 36px; } .ad-brand-m .wm { height: 30px; } .ad-where { display: none; } }

/* ==========================================================
   shopping: suggestions while typing, the shared list, shop prices
   ========================================================== */
/* combobox */
.sg { position: relative; }
.sg-list { position: absolute; top: calc(100% + 6px); inset-inline: 0; z-index: 40; max-height: min(340px, 60vh); overflow-y: auto; margin: 0; padding: 6px; list-style: none; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.sg-list[hidden] { display: none; }
.sg-list li { display: flex; align-items: flex-start; gap: .7rem; min-height: 48px; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.sg-list li > i { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: var(--sky-50); color: var(--sky-ink); }
.sg-list li > span { display: grid; min-width: 0; line-height: 1.45; }
.sg-list li b { font-weight: 700; }
.sg-list li small { color: var(--muted); font-size: 15px; }
.sg-list li em { font-style: normal; color: var(--ok); font-size: 15px; font-weight: 600; }
.sg-list li:hover, .sg-list li[aria-selected="true"] { background: var(--navy-50); }

/* page parts */
.sp-fresh { position: sticky; top: calc(var(--head-h) + 8px); z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: 10px 14px; margin-bottom: 14px; border-radius: 16px; background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); }
.sp-fresh[hidden] { display: none; }
.sp-fresh span { flex: 1 1 180px; }
.sp-fresh .btx { background: #fff; color: var(--navy); }
.sp-sum { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 24px; padding: 16px 18px; margin-bottom: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.sp-sum-p { display: grid; gap: 8px; }
.sp-sum-p > span:first-child b { font-size: 24px; color: var(--navy-ink); }
.sp-bar { display: block; height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.sp-bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--sky), var(--navy)); }
.sp-sum-k { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.sp-sum-k > div { display: grid; }
.sp-sum-k small { color: var(--muted); font-size: 15px; }
.sp-sum-k b { font-size: 18px; color: var(--navy-ink); }
@media (max-width: 767.98px) { .sp-sum { grid-template-columns: minmax(0, 1fr); } }

.sp-add { margin-bottom: 16px; }
.sp-add-g { display: grid; grid-template-columns: minmax(0, 1.6fr) auto minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.pp-add-g { grid-template-columns: minmax(0, 1.6fr) minmax(0, 150px) minmax(0, 1fr) auto; }
.sp-qu { display: flex; gap: 8px; }
.sp-qu .qty input { width: 64px; }
.sp-unit { width: 96px; }
.sp-go { min-height: 52px; }
.sp-hint { margin: 10px 0 0; padding: 8px 12px; border-radius: 12px; background: var(--sky-50); color: var(--sky-ink); font-size: 15px; font-weight: 600; }
.sp-hint[hidden] { display: none; }
@media (max-width: 991.98px) {
  .sp-add-g, .pp-add-g { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sp-what { grid-column: 1 / -1; }
  .sp-go { grid-column: 1 / -1; }
}
@media (max-width: 479.98px) { .sp-add-g, .pp-add-g { grid-template-columns: minmax(0, 1fr); } .sp-unit { flex: 1; width: auto; } }

.sp-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.sp-chips-l { color: var(--muted); font-weight: 700; }
.chip-b { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 1rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 700 15px var(--font); cursor: pointer; }
.chip-b .num { color: var(--muted); }
.chip-b[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.chip-b[aria-pressed="true"] .num { color: #c5d2ea; }

.sp-g { margin-bottom: 14px; padding-bottom: 8px; }
.sp-g[hidden] { display: none; }
.sp-gh { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 6px; }
.sp-gh h2 { margin: 0; font-size: 19px; }
.sp-gi { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--navy-50); color: var(--navy); font-size: 1.1rem; }
.sp-gi.ok { background: var(--ok-bg); color: var(--ok); }
.sp-sub { margin-inline-start: auto; color: var(--muted); font-weight: 700; }
.sp-list { margin: 0; padding: 0; list-style: none; }
.sp-row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 0; border-top: 1px solid var(--line); }
.sp-row:first-child { border-top: 0; }
.sp-row form { margin: 0; }
.sp-chk { width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; border: 2px solid #b9c4d6; background: var(--surface); color: transparent; font-size: 1.35rem; cursor: pointer; transition: all var(--ease); }
.sp-chk:hover { border-color: var(--ok); color: var(--ok); }
.sp-chk.on { border-color: var(--ok); background: var(--ok); color: #fff; }
.sp-chk.on:hover { background: var(--surface); color: var(--ok); }
.sp-tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sp-tx b { font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.sp-tx small { display: flex; flex-wrap: wrap; gap: .2rem .9rem; color: var(--muted); font-size: 15px; }
.sp-q { color: var(--navy); font-weight: 800; }
.sp-row.is-bought .sp-tx b { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.sp-row.is-flash { animation: td-flash 1.6s ease; border-radius: 12px; }
.sp-note { display: flex; gap: .5rem; color: var(--muted); font-size: 15px; }
.sp-del { padding: 0 18px 16px; }
.sp-cta { margin-bottom: 0; }
.sp-cta > i:first-child { color: var(--orange-ink); }

/* admin + shop owner */
.tbar-sel { min-width: 200px; }
.tbar-sel .fm-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ad-pname { font-weight: 800; }
.ph-row-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pv-offers { display: grid; margin: 0; padding: 0; list-style: none; }
.pv-offers li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-areas: "i n p" "i n u"; align-items: center; column-gap: .8rem; padding: 10px 0; border-top: 1px solid var(--line); }
.pv-offers li:first-child { border-top: 0; }
.pv-offers li > i { grid-area: i; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--sky-50); color: var(--sky-ink); }
.pv-offers li > span { grid-area: n; display: grid; min-width: 0; }
.pv-offers li > span small { color: var(--ok); font-size: 15px; }
.pv-offers li > b { grid-area: p; justify-self: end; color: var(--navy-ink); }
.pv-offers .pv-o-u { grid-area: u; justify-self: end; color: var(--muted); font-size: 15px; }
.pp-list { margin: 0; padding: 0; list-style: none; }
.pp-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px; border-top: 1px solid var(--line); }
.pp-list li.is-out { background: var(--surface-2); }
.pp-ic { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: var(--sky-50); color: var(--sky-ink); }
.pp-n { flex: 1 1 200px; display: grid; min-width: 0; }
.pp-n small { color: var(--muted); font-size: 15px; }
.pp-f { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.pp-price { width: 120px; min-height: 44px; }
.pp-note { width: 180px; min-height: 44px; }
.pp-del { color: var(--danger); }
.pp-del:hover { background: var(--danger-bg); border-color: transparent; }
@media (max-width: 575.98px) { .pp-f { width: 100%; } .pp-price, .pp-note { flex: 1 1 120px; width: auto; } }
.sp-qu { min-width: 0; }
.sp-qu .qty { flex: 0 0 auto; }
.sp-unit { min-width: 0; flex: 1 1 0; }
@media (min-width: 992px) { .sp-unit { flex: 0 0 96px; } }
.sp-est-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 6px; }
.sp-est-row .hint { margin: 0; }
.chip-sm { padding: 0 .8rem; }
.pp-list li { position: relative; }
@media (max-width: 575.98px) {
  .pp-list li > form:last-child { position: absolute; top: 10px; inset-inline-end: 8px; }
  .pp-n { padding-inline-end: 48px; }
}

/* ==========================================================
   English (left to right) + the language switch
   ========================================================== */
/* direction icons were chosen for right-to-left; mirror them in English */
[dir="ltr"] .bi-arrow-left, [dir="ltr"] .bi-arrow-right, [dir="ltr"] .bi-chevron-left, [dir="ltr"] .bi-chevron-right, [dir="ltr"] .bi-box-arrow-up-left { display: inline-block; transform: scaleX(-1); }
[dir="ltr"] .ov-drawer[open] { animation-name: pl-in-end-ltr; }
@media (max-width: 991.98px) {
  [dir="ltr"] .ad-side { transform: translateX(-110%); }
  [dir="ltr"] .ad-side.is-open { transform: none; }
}

.td-lang { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; min-width: 44px; padding: 0 .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; transition: border-color var(--ease), background var(--ease); }
.td-lang:hover { border-color: var(--sky); color: var(--navy); }
.td-lang .bi { color: var(--sky-ink); }
.td-lang-s { display: none; }
.td-lang.on-dark { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.td-lang.on-dark .bi { color: #fff; }
.td-lang.on-dark:hover { background: rgba(255,255,255,.1); }
@media (max-width: 575.98px) {
  .td-lang { padding: 0 .55rem; }
  .td-lang-l { display: none; }
  .td-lang-s { display: inline; }
}
.td-lang-link { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; color: #c5d2ea; font-weight: 700; text-decoration: none; }
.td-lang-link:hover { color: #fff; }
.pf-b-r { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.2rem; }
.cd-acts { display: inline-flex; align-items: center; gap: 8px; }
.au-top .side-link { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .6rem; }
.lang-pick { display: flex; flex-wrap: wrap; gap: 8px; }
a.chip-b { text-decoration: none; }

/* settings forms gained an English name field */
.cfg-f-en { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1fr) 96px; }
.cfg-f-new { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cfg-f-4c { grid-template-columns: minmax(0, 1.2fr) minmax(0, 150px) minmax(0, 1fr) minmax(0, 1.3fr); }
@media (max-width: 1199.98px) { .cfg-f-en, .cfg-f-new, .cfg-f-4c { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .cfg-f-en, .cfg-f-new, .cfg-f-4c { grid-template-columns: minmax(0, 1fr); } }
/* English pages show people's Arabic names and titles inside English text: keep each run in its own order */
[dir="ltr"] :is(b, strong, small, em, span, a, label, bdi) { unicode-bidi: isolate; }
@media (max-width: 575.98px) {
  .ad-acts > a.icon-btn { display: none; } /* the public-site link; the menu still has the way out */
  .ad-brand-m .wm { height: 26px; }
  .ad-top { gap: .5rem; }
}
@media (max-width: 420px) { .ph-lang { display: none; } } /* the phone menu has the language link */
@media (max-width: 575.98px) { .au-top { flex-wrap: wrap; row-gap: 4px; } .au-top .side-link { flex: 1 1 100%; justify-content: space-between; } } /* the language button and the side link get their own row */
@media (max-width: 400px) {
  .ph .td-brand .wm { height: 26px; }
  .ph .td-brand .mk { width: 34px; height: 34px; }
  .ph-act .btx-sm { padding: 0 .75rem; }
  .ph-in { gap: .45rem; }
}
.pf-credit { margin: 0; padding: 0 0 18px; color: #aebbd6; font-size: 15px; text-align: center; }
.pf-credit a { color: #fff; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.pf-credit a:hover { text-decoration: underline; }
@media (max-width: 575.98px) { .cat-row { gap: 6px; } .cat-row a { padding: 0 .75rem; gap: .3rem; } }

/* ==========================================================
   product pictures (catalogue, picker, shop photos, credits)
   ========================================================== */
.pimg { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; overflow: hidden; background: var(--sky-50); color: var(--sky-ink); font-size: 1.2rem; }
.pimg img { width: 100%; height: 100%; object-fit: cover; }
.pimg.unrev { outline: 2px dashed var(--orange); outline-offset: 2px; }
.pimg.lg { width: 112px; height: 112px; border-radius: 18px; font-size: 2rem; }
.pimg-row { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.pimg-row > span:last-child { display: grid; min-width: 0; }
.pimg-edit { display: flex; gap: 14px; align-items: flex-start; }
.pimg-side { flex: 1; min-width: 0; display: grid; gap: 6px; justify-items: start; }
.pimg-side .hint { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.pimg-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.pimg-pick { display: grid; gap: 10px; padding: 12px; border-radius: 16px; background: var(--surface-2); }
.pimg-pick[hidden] { display: none; }
.pimg-sbar { display: flex; gap: 8px; }
.pimg-sbar .tsearch { flex: 1; max-width: none; }
.pimg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.pimg-c { position: relative; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--surface); cursor: pointer; }
.pimg-c img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pimg-c:hover, .pimg-c:focus-visible { border-color: var(--navy); }
.pimg-c.is-busy { opacity: .5; pointer-events: none; }
.sg-list li > img { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 10px; object-fit: cover; background: var(--sky-50); }
.sp-img { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 10px; object-fit: cover; background: var(--sky-50); }
.pv-offers li > img { grid-area: i; width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.pv-offers li { grid-template-columns: 44px minmax(0, 1fr) auto; }
.pp-img { position: relative; width: 64px; height: 64px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; overflow: hidden; background: var(--sky-50); color: var(--sky-ink); font-size: 1.4rem; cursor: pointer; }
.pp-img img { width: 100%; height: 100%; object-fit: cover; }
.pp-cam { position: absolute; inset-block-end: 4px; inset-inline-end: 4px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-size: .75rem; box-shadow: 0 0 0 2px #fff; }
.pp-img:hover .pp-cam, .pp-img:focus-within .pp-cam { background: var(--orange); }
.pp-img:focus-within { outline: 3px solid rgba(var(--navy-rgb), .45); outline-offset: 2px; }
.pp-src { font-weight: 700; color: var(--muted); }
.pp-src.own { color: var(--ok); }
.pp-photo-new { margin-top: 10px; max-width: 420px; }
.cr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.cr-list li { display: flex; gap: .7rem; align-items: center; padding: 8px; border-radius: 14px; background: var(--surface-2); min-width: 0; }
.cr-list img { width: 56px; height: 56px; flex: 0 0 auto; border-radius: 10px; object-fit: cover; }
.cr-list li > span { display: grid; min-width: 0; }
.cr-list small { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.cr-list a { color: var(--sky-ink); }
/* picture review grid */
.rv-note { display: flex; gap: .5rem; margin: 0; padding: 12px 16px; color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); }
.rvg { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; padding: 14px 16px 18px; }
.rvg-c { position: relative; display: grid; gap: 4px; align-content: start; padding: 8px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); transition: border-color var(--ease), opacity var(--ease); }
.rvg-c.is-busy { opacity: .55; pointer-events: none; }
.rvg-c.is-done { border-color: var(--ok); background: var(--ok-bg); }
.rvg-c.is-done::after { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; top: 14px; inset-inline-start: 14px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--ok); color: #fff; }
.rvg-c.is-removed { opacity: .7; }
.rvg-img { aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; overflow: hidden; background: var(--sky-50); color: var(--sky-ink); font-size: 2rem; }
.rvg-img img { width: 100%; height: 100%; object-fit: cover; }
.rvg-c b { font-size: 15px; line-height: 1.4; }
.rvg-c small { color: var(--muted); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rvg-a { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.rvg-a .btx { flex: 1 1 auto; padding: 0 .6rem; }
.rvg-ok { background: var(--ok); }
.rvg-del { color: var(--danger); }
.rvg-del:hover { background: var(--danger-bg); border-color: transparent; }
@media (max-width: 420px) { .rvg { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; } }

/* ---------- home hero (HeroLab H03 «drifting colour», in the logo's colours) ---------- */
.hm-hero { position: relative; overflow: hidden; isolation: isolate; container-type: inline-size; margin-bottom: clamp(18px, 2.4vw, 28px); padding: clamp(22px, 3.4vw, 44px); border-radius: 28px; background: var(--navy); color: #fff; }
.hm-hero .blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); pointer-events: none; animation: hm-drift 16s ease-in-out infinite alternate; }
.hm-hero .b1 { width: 55%; aspect-ratio: 1; top: -35%; inset-inline-start: -10%; background: #1c4e9c; opacity: .9; }
.hm-hero .b2 { width: 45%; aspect-ratio: 1; bottom: -60%; inset-inline-start: 32%; background: var(--sky); opacity: .5; animation-delay: -5s; }
.hm-hero .b3 { width: 26%; aspect-ratio: 1; top: -22%; inset-inline-end: -6%; background: var(--orange); opacity: .4; animation-delay: -9s; }
@keyframes hm-drift { to { transform: translate(6%, 8%) scale(1.12); } }
.hm-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1px); background-size: 22px 22px; opacity: .18; pointer-events: none; }
.hm-mark { position: absolute; z-index: -1; width: 320px; inset-inline-end: -70px; bottom: -110px; opacity: .1; filter: grayscale(1) brightness(4); pointer-events: none; }
.hm-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.hm-tag { display: inline-flex; align-items: center; gap: .45rem; padding: .25rem .9rem; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 15px; font-weight: 700; }
.hm-txt h1 { margin: .8rem 0 .4rem; color: #fff; font-size: clamp(30px, 4.4cqi, 52px); line-height: 1.25; }
.hm-lead { margin: 0 0 1.2rem; color: rgba(255,255,255,.88); font-size: 18px; }
.hm-acts { display: flex; flex-wrap: wrap; gap: .6rem; }
.hm-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.3); }
.hm-ghost:hover { background: rgba(255,255,255,.18); color: #fff; }
.hm-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 .45rem; border-radius: 99px; background: var(--orange); color: #fff; font-size: 15px; }
.hm-facts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }
.hm-facts > span, .hm-facts > a { display: inline-flex; align-items: baseline; gap: .45rem; padding: .45rem .9rem; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.9); font-size: 15px; }
.hm-facts b { color: #fff; font-size: 20px; }
.hm-side { display: grid; gap: 10px; min-width: 0; }
.hm-next { display: grid; overflow: hidden; border-radius: 22px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 24px 50px rgba(0,0,0,.25); transition: transform var(--ease); }
.hm-next:hover { transform: translateY(-3px); color: var(--ink); }
.hm-cover { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; min-height: 120px; padding: 12px; background: linear-gradient(135deg, var(--sky), var(--navy)) center / cover; }
.hm-eyebrow, .hm-when { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .75rem; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--navy-ink); font-size: 15px; font-weight: 800; }
.hm-when { background: var(--orange-ink); color: #fff; }
.hm-nb { display: flex; align-items: center; gap: 1rem; padding: 14px 16px; }
.hm-nt { flex: 1; display: grid; gap: .15rem; min-width: 0; line-height: 1.5; }
.hm-nt b { color: var(--navy-ink); font-size: 19px; }
.hm-nt small { color: var(--muted); font-size: 15px; }
.hm-todo { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: 12px 14px; border-radius: 18px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; text-decoration: none; }
.hm-todo:hover { background: rgba(255,255,255,.2); color: #fff; }
.hm-todo .ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.18); font-size: 1.15rem; }
.hm-todo .tx { display: grid; min-width: 0; line-height: 1.45; }
.hm-todo .tx > b, .hm-todo .tx > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-todo .tx > small { color: rgba(255,255,255,.82); font-size: 15px; }
.hm-start { display: grid; gap: .4rem; padding: 20px; border-radius: 22px; background: #fff; color: var(--ink); }
.hm-start > b { color: var(--navy-ink); font-size: 20px; }
.hm-start > small { color: var(--muted); font-size: 15px; }
.hm-types { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.hm-types a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .4rem .9rem; border-radius: 14px; background: var(--navy-50); color: var(--navy); font-weight: 700; text-decoration: none; }
.hm-types a:hover { background: var(--sky-50); color: var(--navy-ink); }
@container (max-width: 820px) { .hm-in { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .hm-hero .blob { animation: none; } .hm-next { transition: none; } }

/* Between the phone tab bar (< 992px) and wide screens, the full header did not fit: at 1024px it ran
   118px past the edge on every page. Here the menu drops its icons and tightens. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .td-apphead .ph-nav { margin-inline-start: .4rem; }
  .td-apphead .ph-nav a { padding: 0 .6rem; }
  .td-apphead .ph-nav a i { display: none; }
  .td-apphead .ph-in { gap: .8rem; }
}

/* hero parts shared by the account pages (components/td/hero) */
.hm-in.solo { grid-template-columns: minmax(0, 1fr); }
.hm-card { display: grid; gap: .5rem; padding: 18px 20px; border-radius: 22px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 24px 50px rgba(0,0,0,.25); }
a.hm-card { transition: transform var(--ease); }
a.hm-card:hover { transform: translateY(-3px); color: var(--ink); }
.hm-card .hm-eyebrow { justify-self: start; background: var(--navy-50); }
.hm-card-row { display: flex; align-items: center; gap: 1rem; }
.hm-card-row > .tx { flex: 1; display: grid; gap: .15rem; min-width: 0; line-height: 1.5; }
.hm-card-row > .tx > b { color: var(--navy-ink); font-size: 19px; }
.hm-card-row > .tx > small { color: var(--muted); font-size: 15px; }
.hm-checks { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.hm-checks li { display: flex; align-items: center; gap: .55rem; font-size: 15px; font-weight: 700; color: var(--ink); }
.hm-checks li > i { font-size: 1.05rem; color: var(--line); }
.hm-checks li.ok > i { color: var(--ok); }
.hm-checks li a { margin-inline-start: auto; font-weight: 800; color: var(--sky-ink); text-decoration: none; }
.hm-steps { display: grid; gap: 10px; }
.hm-step { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border-radius: 18px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.hm-step:nth-child(2) { margin-inline-start: 6%; }
.hm-step:nth-child(3) { margin-inline-start: 12%; background: #fff; color: var(--ink); }
.hm-step .n { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.18); font-weight: 800; }
.hm-step:nth-child(3) .n { background: var(--orange-50); color: var(--orange-ink); }
.hm-step > span:last-child { display: grid; line-height: 1.45; }
.hm-step b { font-size: 16px; }
.hm-step small { font-size: 15px; opacity: .85; }
.hm-acts form { margin: 0; }
@container (max-width: 820px) { .hm-step:nth-child(2), .hm-step:nth-child(3) { margin-inline-start: 0; } }
.hm-facts > a { text-decoration: none; transition: background var(--ease); }
.hm-facts > a:hover { background: rgba(255,255,255,.18); color: #fff; }

/* event hero: the cover stays, the brand colours drift over it (HeroLab H03), numbers per tab */
.evh { isolation: isolate; }
.evh::before { z-index: -2; }
.evh .blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); pointer-events: none; animation: hm-drift 16s ease-in-out infinite alternate; }
.evh .b1 { width: 45%; aspect-ratio: 1; top: -45%; inset-inline-start: -8%; background: #1c4e9c; opacity: .55; }
.evh .b2 { width: 38%; aspect-ratio: 1; bottom: -70%; inset-inline-start: 30%; background: var(--sky); opacity: .35; animation-delay: -5s; }
.evh .b3 { width: 22%; aspect-ratio: 1; top: -30%; inset-inline-end: -4%; background: var(--orange); opacity: .3; animation-delay: -9s; }
.evh .hm-mark { width: 280px; bottom: -120px; inset-inline-end: -60px; opacity: .08; }
.evh-facts { margin-top: 1rem; }
.evh-card { display: flex; align-items: center; gap: 1rem; flex: 0 0 auto; padding: 14px 18px 14px 16px; border-radius: 22px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 20px 44px rgba(0,0,0,.25); transition: transform var(--ease); }
.evh-card:hover { transform: translateY(-3px); color: var(--ink); }
.evh-card .tx { display: grid; gap: .1rem; line-height: 1.45; }
.evh-card .tx > b { color: var(--navy-ink); font-size: 17px; }
.evh-card .tx > small { color: var(--muted); font-size: 15px; }
.evh-card .go { color: var(--sky-ink); font-size: 15px; font-weight: 800; }
@media (max-width: 767.98px) { .evh-in { flex-wrap: wrap; } .evh-card { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .evh .blob { animation: none; } .evh-card { transition: none; } }
/* directory hero: the search bar sits under the hero's two columns */
.hm-below { position: relative; margin-top: clamp(16px, 2.4vw, 26px); }
.hm-below .pv-search { margin-top: 0; box-shadow: 0 18px 40px rgba(0,0,0,.2); }
.pv-hero-wrap { padding-top: clamp(18px, 2.4vw, 28px); }
.hm-card .pvc-logo { flex: 0 0 auto; }.pv-hero2 { margin-top: 14px; }
.pv-hero2 .hm-lead .bi-patch-check-fill { color: #7dd3fc; }

/* The public header ran up to 49px past the edge between 992 and 1024px: tighten it there too. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .td-head:not(.td-apphead) .ph-nav { margin-inline-start: .4rem; }
  .td-head:not(.td-apphead) .ph-nav a { padding: 0 .55rem; }
  .td-head:not(.td-apphead) .ph-in { gap: .7rem; }
  .td-head:not(.td-apphead) .ph-act { gap: .3rem; }
}

/* the public event's date tile in its hero card */
.evh-date { display: grid; place-items: center; align-content: center; width: 78px; height: 84px; flex: 0 0 auto; border-radius: 18px; background: var(--navy-50); line-height: 1.1; }
.evh-date b { color: var(--navy); font-size: 32px; }
.evh-date small { color: var(--muted); font-size: 15px; font-weight: 700; }
/* sign-in pages: the site's hero style in the side panel (drifting colours, mark, real numbers) */
.lg-art { isolation: isolate; background: var(--navy); }
.lg-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1px); background-size: 22px 22px; opacity: .16; pointer-events: none; }
.lg-art .blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); pointer-events: none; animation: hm-drift 16s ease-in-out infinite alternate; }
.lg-art .b1 { width: 70%; aspect-ratio: 1; top: -30%; inset-inline-start: -20%; background: #1c4e9c; opacity: .9; }
.lg-art .b2 { width: 60%; aspect-ratio: 1; bottom: -35%; inset-inline-end: -15%; background: var(--sky); opacity: .45; animation-delay: -5s; }
.lg-art .b3 { width: 35%; aspect-ratio: 1; top: -10%; inset-inline-end: -8%; background: var(--orange); opacity: .4; animation-delay: -9s; }
.lg-art .hm-mark { width: 360px; bottom: -110px; inset-inline-start: -90px; inset-inline-end: auto; }
.lg-art .hm-facts { margin-top: 1.2rem; }
@media (max-width: 991.98px) {
  /* phones: the panel comes back as a short band under the form, without the demo */
  .lg-art { display: flex; margin: 0 14px 14px; padding: 26px 22px; gap: 0; }
  .lg-art .lg-plan, .lg-art .roles3 { display: none; }
  .lg-art h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .lg-art .blob { animation: none; } }
/* admin: every page header in the site's hero style (drifting brand colours, dots, the mark) */
.ad-content .pg-h { position: relative; overflow: hidden; isolation: isolate; margin-bottom: 18px; padding: clamp(20px, 2.6vw, 32px) clamp(20px, 2.8vw, 36px); border-radius: 24px; color: #fff; align-items: center;
  background: radial-gradient(45% 90% at 85% 0%, rgba(var(--sky-rgb), .55), transparent 70%), radial-gradient(30% 70% at 5% 0%, rgba(var(--orange-rgb), .35), transparent 70%), radial-gradient(60% 100% at 30% 120%, #1c4e9c, transparent 70%), var(--navy);
  background-size: 160% 160%; animation: ad-drift 18s ease-in-out infinite alternate; }
@keyframes ad-drift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
.ad-content .pg-h::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1px); background-size: 22px 22px; opacity: .16; pointer-events: none; }
.ad-content .pg-h::before { content: ""; position: absolute; z-index: -1; width: 230px; height: 230px; inset-inline-end: -50px; bottom: -90px; background: url('../brand/mark.png') center / contain no-repeat; opacity: .1; filter: grayscale(1) brightness(4); pointer-events: none; }
.ad-content .pg-h h1 { color: #fff; }
.ad-content .pg-h p, .ad-content .pg-h .who small { color: rgba(255,255,255,.85); }
.ad-content .pg-h .crumbs, .ad-content .pg-h .crumbs a, .ad-content .pg-h .crumbs li { color: rgba(255,255,255,.8); }
.ad-content .pg-h .pill { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.22); color: #fff; }
.ad-content .pg-h .pill.bad { color: #fecaca; }
.ad-content .pg-h .pill.ok { color: #bbf7d0; }
.ad-content .pg-h .btx-danger-soft { background: rgba(255,255,255,.12); border-color: rgba(254,202,202,.45); color: #fecaca; }
.ad-content .pg-h .hm-facts { margin-top: .9rem; }
.ad-today { font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .ad-content .pg-h { animation: none; } }
/* admin config cards (types, provider categories): the icon is chosen from a picker, chosen sections read as chosen */
.ip-btn { position: relative; width: 64px; height: 64px; border: 0; font-size: 1.7rem; cursor: pointer; transition: transform var(--ease), box-shadow var(--ease); }
.ip-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(var(--navy-rgb), .18); }
.ip-btn:focus-visible { outline: 3px solid rgba(var(--navy-rgb), .45); outline-offset: 2px; }
.ip-edit { position: absolute; bottom: -4px; inset-inline-end: -4px; display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid var(--surface); border-radius: 50%; background: var(--orange); color: #fff; font-size: 13px; }
.ip-dlg { width: min(720px, calc(100vw - 24px)); max-width: none; }
.ip-dlg .dl-body { display: grid; gap: 12px; }
.ip-search { position: relative; }
.ip-search > i { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.ip-search .fm-input { padding-inline-start: 42px; }
.ip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; max-height: min(56vh, 460px); overflow-y: auto; padding: 2px; }
.ip-grid button { display: grid; justify-items: center; gap: .3rem; min-width: 0; padding: .8rem .3rem .55rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: 700 15px var(--font); cursor: pointer; transition: border-color var(--ease), background var(--ease), transform var(--ease); }
.ip-grid button i { font-size: 26px; line-height: 1; color: var(--navy); }
.ip-grid button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.35; }
.ip-grid button:hover { border-color: var(--navy); background: var(--navy-50); transform: translateY(-2px); }
.ip-grid button[aria-selected="true"] { border-color: var(--orange); background: var(--orange-50); box-shadow: 0 0 0 2px rgba(var(--orange-rgb), .35); }
.ip-grid button[hidden] { display: none; }
.ip-empty { margin: 0; padding: 1.5rem; text-align: center; color: var(--muted); }
.cfg-h { gap: 1rem; }
.cfg-h b { font-size: 19px; }
.cfg-mods .fm-chips input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.cfg-mods .fm-chips input:checked + span::before { content: "\F633"; font-family: "bootstrap-icons"; font-size: 1rem; line-height: 1; }@media (max-width: 575.98px) { .ip-dlg { width: 100vw; } }
/* the icon left the field row: name · English name · a narrow order field */
.cfg-f-en { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 100px; }
.cfg-f-new { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 1199.98px) { .cfg-f-en { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 100px; } .cfg-f-new { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
@media (max-width: 575.98px) { .cfg-f-en { grid-template-columns: minmax(0, 1fr); } }

/* template editor lines: small choices as buttons, the date as «before / on / after» + days */
.ti-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 24px; }
.ti-seg { margin: 0; padding: 0; border: 0; min-width: 0; }
.ti-seg legend { float: none; width: auto; margin-bottom: 6px; padding: 0; }
.seg2 { display: flex; flex-wrap: wrap; gap: 6px; }
.seg2 label { position: relative; cursor: pointer; }
.seg2 input { position: absolute; opacity: 0; pointer-events: none; }
.seg2 input + span { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .9rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font-weight: 700; transition: background var(--ease), border-color var(--ease), color var(--ease); }
.seg2 input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.seg2 .p-high input:checked + span { border-color: var(--orange-ink); background: var(--orange-ink); }
.seg2 input:focus-visible + span { outline: 3px solid rgba(var(--navy-rgb), .45); outline-offset: 2px; }
.ti-days, .ti-num { width: 150px; }
.ti .fm-field[hidden] { display: none; }
@media (max-width: 575.98px) { .ti-days, .ti-num { width: calc(50% - 12px); } }
/* admin dialogs: the same navy head as the page headers */
.ad-content .ov-dialog .dl-head { position: relative; overflow: hidden; isolation: isolate; padding: 18px 20px; border-bottom: 0; color: #fff;
  background: radial-gradient(60% 120% at 90% 0%, rgba(var(--sky-rgb), .5), transparent 70%), radial-gradient(40% 100% at 0% 0%, rgba(var(--orange-rgb), .3), transparent 70%), var(--navy); }
.ad-content .ov-dialog .dl-head::before { content: ""; position: absolute; z-index: -1; width: 120px; height: 120px; inset-inline-end: 50px; top: -30px; background: url('../brand/mark.png') center / contain no-repeat; opacity: .1; filter: grayscale(1) brightness(4); pointer-events: none; }
.ad-content .ov-dialog .dl-head h3 { color: #fff; }
.ad-content .ov-dialog .dl-head .icon-btn { color: #fff; background: rgba(255,255,255,.12); }
.ad-content .ov-dialog .dl-head .icon-btn:hover { background: rgba(255,255,255,.22); }
.ad-content .ov-dialog .dl-head .icon-btn:focus-visible { outline: 3px solid rgba(255,255,255,.7); outline-offset: 2px; }
/* product form: common units one press away */
.unit-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.unit-quick button { min-height: 36px; padding: 0 .7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--ink-2, var(--ink)); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.unit-quick button:hover { border-color: rgba(var(--navy-rgb), .4); background: var(--navy-50); }
.unit-quick button:focus-visible { outline: 3px solid rgba(var(--navy-rgb), .45); outline-offset: 2px; }
/* settings cards (types, provider categories): the head is a navy band like the page header */
.ad-content .cfg { overflow: clip; }
.ad-content .cfg > .cfg-h { position: relative; isolation: isolate; margin: calc(-1 * clamp(16px, 2vw, 24px)) calc(-1 * clamp(16px, 2vw, 24px)) 4px; padding: 16px clamp(16px, 2vw, 24px); color: #fff;
  background: radial-gradient(55% 140% at 92% 0%, rgba(var(--sky-rgb), .5), transparent 70%), radial-gradient(35% 120% at 0% 0%, rgba(var(--orange-rgb), .28), transparent 70%), var(--navy); }
.ad-content .cfg > .cfg-h::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1px); background-size: 20px 20px; opacity: .14; pointer-events: none; }
.ad-content .cfg > .cfg-h b { color: #fff; }
.ad-content .cfg > .cfg-h small { color: rgba(255,255,255,.82); }
.ad-content .cfg > .cfg-h .cfg-ic { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.ad-content .cfg > .cfg-h .ip-btn:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.4), 0 8px 20px rgba(0,0,0,.25); }
.ad-content .cfg > .cfg-h .ip-btn:focus-visible { outline-color: rgba(255,255,255,.75); }
.ad-content .cfg > .cfg-h .tgl em { color: rgba(255,255,255,.9); }
.ad-content .cfg > .cfg-h .tgl > span { background: rgba(255,255,255,.28); }
.ad-content .cfg > .cfg-h .tgl input:checked + span { background: var(--ok); }
.ad-content .cfg > .cfg-h .tgl input:focus-visible + span { outline-color: rgba(255,255,255,.75); }
/* a hidden type: the band turns grey, so it reads as "off" at a glance */
.ad-content .cfg.is-off > .cfg-h { background: linear-gradient(135deg, #5b6474, #3f4756); }
/* the "new" card: the same band, in sky, over its dashed frame */
.ad-content .cfg-new > .cfg-h { background: radial-gradient(45% 140% at 0% 0%, rgba(var(--orange-rgb), .3), transparent 70%), linear-gradient(135deg, var(--sky-ink), var(--navy)); }

/* official templates list: the type heading wears a navy tile, each card a thin brand strip */
.tp-gh i { background: var(--navy); color: #fff; box-shadow: 0 6px 14px rgba(var(--navy-rgb), .22); }
.tp-card { overflow: clip; }
.tp-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--sky), var(--navy) 60%, var(--orange)); }

/* "three steps" card in a hero: the current step in navy, the next ones in grey */
.hm-steps li > i { color: #b8c2d3; }
.hm-steps li.now { color: var(--navy-ink); }
.hm-steps li.now > i { color: var(--navy); }
.hm-steps li:not(.now) { color: var(--muted); }

/* the invitation: the same drifting navy as the page heroes */
.invite-card { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); border-color: transparent; color: #fff; box-shadow: 0 30px 70px rgba(var(--navy-rgb), .3); }
.invite-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1px); background-size: 22px 22px; opacity: .18; pointer-events: none; }
.invite-card .blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); pointer-events: none; animation: hm-drift 16s ease-in-out infinite alternate; }
.invite-card .b1 { width: 70%; aspect-ratio: 1; top: -40%; inset-inline-start: -20%; background: #1c4e9c; opacity: .9; }
.invite-card .b2 { width: 55%; aspect-ratio: 1; bottom: -45%; inset-inline-end: -15%; background: var(--sky); opacity: .45; animation-delay: -6s; }
.invite-card .hm-mark { width: 260px; bottom: -100px; }
.invite-card h1 { color: #fff; }
.invite-card .muted, .invite-card .role-h { color: rgba(255,255,255,.85); }
.invite-card .pill { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.22); color: #fff; }
.invite-ic { box-shadow: 0 14px 30px rgba(0,0,0,.25); }
@media (prefers-reduced-motion: reduce) { .invite-card .blob { animation: none; } }
