/* =====================================================================
   Universal Traveler — shared styles for the contributor + guest tools.
   Modeled on the Universal Traveler 2.0 design system:
   Hanken Grotesk, ocean-teal primary, pill buttons, big rounded cards,
   large tap targets ("eye-gaze / AAC aligned"), purple focus ring.
   BRAND TOKENS live in :root. Hex values are the sRGB equivalents of the
   2.0 site's oklch() colors (the original oklch value is in each comment).
   Every text/background pair used here was checked against WCAG 2.2 AA.
   ===================================================================== */
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/hanken-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ink & paper */
  --ink: #152128;          /* oklch(0.24 0.022 235) */
  --ink-soft: #4c575e;     /* oklch(0.45 0.018 235) */
  --ink-faint: #7a8286;    /* oklch(0.60 0.012 235)  decoration only, never body text */
  --paper: #f8fbfd;        /* oklch(0.987 0.005 230) */
  --paper-2: #eef6f8;      /* oklch(0.967 0.009 222) */
  --paper-3: #e4eff3;      /* oklch(0.945 0.013 220) */
  --line: #d8e1e6;         /* oklch(0.905 0.012 228) */
  --line-soft: #e4ebee;    /* oklch(0.935 0.009 228) */
  --white: #fbfeff;        /* oklch(0.995 0.003 230) */
  /* brand */
  --teal: #006f84;         /* oklch(0.49 0.105 213)  ocean primary */
  --teal-bright: #009fad;  /* oklch(0.64 0.115 205) */
  --teal-deep: #004555;    /* oklch(0.36 0.068 219) */
  --teal-ink: #002835;     /* oklch(0.255 0.05 224)  deepest */
  --purple: #8656b7;       /* oklch(0.55 0.15 305)   "Purple Pound" community + focus ring */
  --purple-soft: #efe1ff;  /* oklch(0.93 0.045 305) */
  --amber: #e99e58;        /* oklch(0.76 0.125 62) */
  --amber-soft: #fee3c5;   /* oklch(0.93 0.05 70) */
  --mint: #c4f3ea;         /* oklch(0.93 0.05 182) */
  --accent: var(--teal);
  --accent-deep: var(--teal-deep);
  --accent-on: var(--white);
  /* extensions for form tools (2.0 has no form or error colors) */
  --field-line: #6d7b82;   /* input borders: 3:1+ against white and paper */
  --placeholder: #5f6b72;
  --bad: #a3211a;          --bad-bg: #fbe6e3;
  --warn-ink: #6b3f00;
  /* shape */
  --r-sm: 12px; --r: 18px; --r-lg: 26px; --r-xl: 34px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(31, 53, 66, 0.05), 0 2px 6px rgba(31, 53, 66, 0.05);
  --sh-2: 0 6px 18px rgba(31, 53, 66, 0.08), 0 2px 5px rgba(31, 53, 66, 0.05);
  --sh-3: 0 22px 50px rgba(20, 45, 60, 0.16), 0 8px 18px rgba(20, 45, 60, 0.08);
  /* type */
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  /* rhythm */
  --tap: 60px;             /* primary interactive height */
  --chip: 52px;            /* dense form chips (never below 44px) */
  --field: 56px;
  --gap-target: 12px;
}

/* ===== display options (same three modes as the 2.0 site) ===== */
html.ui-large { font-size: 19px; --tap: 72px; --chip: 60px; --field: 64px; --gap-target: 16px; }
html.ui-contrast {
  --ink: #050f15; --ink-soft: #243037; --line: #abbac2; --line-soft: #abbac2;
  --paper: #fefefe; --field-line: #3d4a51; --placeholder: #3d4a51;
}
html.ui-contrast .btn, html.ui-contrast button.primary, html.ui-contrast a.primary { outline: 2px solid var(--ink); }
html.ui-nomotion * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }

* { box-sizing: border-box; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.5;
  min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0 0 0.8rem; text-wrap: pretty; }
ul { margin: 0; padding: 0; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.9rem; }
.serif-accent { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

/* strong, eye-gaze-friendly focus (purple, like the 2.0 site) */
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }
.cookie-banner :focus-visible { outline-color: var(--mint); }

.skip-link { position: absolute; left: 8px; top: -80px; z-index: 100; background: var(--white); color: var(--teal-deep); padding: 12px 18px; border-radius: var(--r-pill); box-shadow: var(--sh-2); font-weight: 700; }
.skip-link:focus { top: 8px; }

/* ---------- header (logo lockup from the 2.0 nav) ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line-soft); }
.site-header .inner { max-width: 640px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand:hover { color: var(--ink); }
.brand .mark { width: 38px; height: 38px; border-radius: 12px; flex: none; box-shadow: var(--sh-1); }
.wordmark { font-weight: 800; letter-spacing: -0.02em; font-size: 1.18rem; line-height: 1; }
.wordmark b { color: var(--teal); font-weight: 800; }
.brand small { display: block; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.02em; color: var(--ink-soft); margin-top: 4px; }
.who { font-size: 0.85rem; color: var(--ink-soft); text-align: right; }

main { flex: 1 0 auto; }
.wrap { max-width: 640px; margin: 0 auto; padding: 28px 20px 48px; width: 100%; }
.wrap.prose { max-width: 740px; }

.site-footer { background: var(--paper-2); border-top: 1px solid var(--line-soft); }
.site-footer .inner { max-width: 640px; margin: 0 auto; padding: 20px; font-size: 0.9rem; color: var(--ink-soft); }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0 0 6px; }
.site-footer a, .site-footer button.link { min-height: 44px; display: inline-flex; align-items: center; }
.display-options { margin: 6px 0 14px; }
.display-options .label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 8px; }
.display-options .row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- headings + text ---------- */
h1 { font-size: clamp(1.7rem, 5.5vw, 2.3rem); margin-bottom: 0.5rem; }
h2 { font-size: 1.35rem; margin-bottom: 0.4rem; }
h3 { font-size: 1.05rem; }
.lede { color: var(--ink-soft); font-size: 1.1rem; line-height: 1.55; margin: 0 0 1.4rem; }
.hint { color: var(--ink-soft); font-size: 0.92rem; margin: 0.3rem 0 1rem; line-height: 1.5; }
.eyebrow, .section-h { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.eyebrow::before, .section-h::before { content: ""; width: 26px; height: 2px; background: var(--teal); border-radius: 2px; flex: none; }
.section-h { margin: 2rem 0 0.5rem; }

/* ---------- cards ---------- */
.card { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: clamp(20px, 4vw, 32px); margin-bottom: 18px; }

/* ---------- forms ---------- */
form { margin: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
label, legend, .label { display: block; font-size: 1rem; font-weight: 700; color: var(--ink); margin: 1.3rem 0 0.4rem; padding: 0; letter-spacing: -0.005em; }
.card > label:first-of-type, form > :first-child > label:first-child { margin-top: 0; }
.opt { font-weight: 500; color: var(--ink-soft); }
input[type=text], input[type=email], input[type=number], input[type=search], textarea, select {
  width: 100%; min-height: var(--field); background: var(--white); color: var(--ink);
  border: 2px solid var(--field-line); border-radius: var(--r-sm); padding: 0.7rem 0.9rem; font-size: 1rem; font-family: inherit;
}
textarea { min-height: 7rem; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--placeholder); opacity: 1; }
input[type=file] { width: 100%; font-size: 1rem; padding: 0.6rem 0; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--bad); }
.field-error { color: var(--bad); font-size: 0.95rem; font-weight: 700; margin: 0.4rem 0 0; }
.field-error::before { content: "\26A0\FE0E  "; }

/* honeypot: real people never see or reach this field */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.choice-row { display: flex; flex-wrap: wrap; gap: var(--gap-target); margin-top: 0.2rem; }
.choice-btn {
  min-height: var(--chip); padding: 0 1.2rem; font: inherit; font-size: 1rem; font-weight: 600;
  background: var(--white); color: var(--ink); border: 2px solid var(--field-line); border-radius: var(--r-pill); cursor: pointer;
}
.choice-btn:hover { border-color: var(--teal); color: var(--teal-deep); }
.choice-btn[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--white); font-weight: 700; }
.choice-btn[aria-pressed="true"]::before { content: "\2713\00a0"; }
.need-btn { display: block; width: 100%; text-align: left; border-radius: var(--r); padding: 0.8rem 1.2rem; margin-bottom: 10px; }

/* primary action: exactly one per screen. Pill + teal, like the 2.0 site's .btn-primary */
button.primary, a.primary {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: var(--tap); text-decoration: none; text-align: center;
  background: var(--accent); color: var(--accent-on); border: 0; border-radius: var(--r-pill);
  padding: 0 30px; font: inherit; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; margin-top: 1.6rem; cursor: pointer;
  box-shadow: var(--sh-2); transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.2s ease;
}
button.primary:hover, a.primary:hover { background: var(--accent-deep); color: var(--accent-on); box-shadow: var(--sh-3); transform: translateY(-2px); }
button.primary:active { transform: translateY(1px) scale(0.99); }
button.primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
button.link { background: none; border: 0; padding: 0; min-height: 44px; font: inherit; font-size: 1rem; font-weight: 600; color: var(--teal); text-decoration: underline; cursor: pointer; text-underline-offset: 3px; }
button.link:hover { color: var(--teal-deep); }
.back-link { margin-bottom: 0.5rem; }
.toggle {
  min-height: 44px; padding: 0 16px; font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer;
  background: var(--white); color: var(--ink); border: 1.5px solid var(--field-line); border-radius: var(--r-pill);
}
.toggle[aria-pressed="true"] { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--white); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 10px; margin-bottom: 18px; }
.tab-btn { flex: 1; min-height: var(--chip); text-align: center; padding: 6px 10px; line-height: 1.25; font: inherit; font-size: 1rem; font-weight: 700; border-radius: var(--r-pill); border: 2px solid var(--field-line); background: var(--white); color: var(--ink-soft); cursor: pointer; }
.tab-btn { line-height: 1.25; }
.tab-btn[aria-selected="true"] { background: var(--teal); border-color: var(--teal); color: var(--white); }

/* ---------- messages + pills ---------- */
.msg { font-size: 1rem; padding: 0.8rem 1rem; border-radius: var(--r-sm); margin-bottom: 1rem; border: 1.5px solid transparent; }
.msg.error { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); }
.msg.ok { background: var(--mint); color: var(--teal-deep); border-color: var(--teal); }
.msg.info { background: var(--paper-2); color: var(--ink); border-color: var(--teal); }
.status-pill { display: inline-block; font-size: 0.82rem; padding: 2px 12px; border-radius: var(--r-pill); font-weight: 700; }
.status-pending { background: var(--amber-soft); color: var(--warn-ink); }
.status-approved { background: var(--mint); color: var(--teal-deep); }
.status-rejected { background: var(--bad-bg); color: var(--bad); }
.sub-item { border-bottom: 1px solid var(--line); padding: 0.9rem 0; }
.sub-item:last-child { border-bottom: 0; }
.sub-item .name { font-weight: 700; }
.sub-item .meta { color: var(--ink-soft); font-size: 0.92rem; margin-top: 2px; }

/* ---------- hotel search + photos ---------- */
.results { margin-top: 8px; border-radius: var(--r-sm); overflow: hidden; border: 2px solid var(--field-line); }
.results:empty { display: none; }
.hotel-option { display: block; width: 100%; text-align: left; min-height: var(--field); padding: 0.7rem 0.9rem; font: inherit; font-size: 1rem; background: var(--white); color: var(--ink); border: 0; border-top: 1px solid var(--line); cursor: pointer; }
.hotel-option:first-child { border-top: 0; }
.hotel-option:hover { background: var(--paper-2); }
.hotel-option.none { color: var(--ink-soft); cursor: default; }
.selected-hotel { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--mint); color: var(--teal-deep); border: 2px solid var(--teal); border-radius: var(--r-sm); padding: 6px 14px; margin-top: 8px; font-weight: 700; }
.selected-hotel button.link { color: var(--teal-deep); }
.photo-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.photo-thumb { position: relative; width: 88px; height: 88px; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--field-line); background: var(--paper-3); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb .rm { position: absolute; top: 3px; right: 3px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: #fff; font-size: 1.2rem; line-height: 36px; cursor: pointer; }
.upload-progress { font-size: 0.92rem; color: var(--ink-soft); margin: 6px 0 0; }

/* ---------- cookie banner ---------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--teal-ink); color: #fff; border-top: 3px solid var(--teal-bright); box-shadow: 0 -8px 30px rgba(0, 20, 30, 0.3); max-height: 85vh; overflow: auto; }
.cookie-banner .inner { max-width: 640px; margin: 0 auto; padding: 18px 20px; }
.cookie-banner h2 { font-size: 1.15rem; color: #fff; margin-bottom: 6px; }
.cookie-banner p { font-size: 0.98rem; margin-bottom: 12px; color: #fff; }
.cookie-banner a { color: var(--mint); }
.cookie-banner .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cookie-banner .actions button { flex: 1 1 150px; min-height: var(--tap); padding: 0 18px; font: inherit; font-size: 1.05rem; font-weight: 700; border-radius: var(--r-pill); background: var(--white); color: var(--teal-ink); border: 2px solid var(--white); cursor: pointer; }
.cookie-banner .actions button:hover { background: var(--mint); border-color: var(--mint); }

/* ---------- legal pages ---------- */
.prose h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
.prose h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.prose h3 { margin-top: 1.3rem; }
.prose ul { padding-left: 1.3rem; margin: 0 0 0.9rem; }
.prose li { margin-bottom: 0.4rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.1rem; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--line); }
.prose th { background: var(--paper-3); }
.table-scroll { overflow-x: auto; }
.meta-line { color: var(--ink-soft); font-size: 0.92rem; }
mark.todo { background: #fff2a8; color: #3b2f00; padding: 1px 5px; border-radius: 4px; font-weight: 700; }
code { font-size: 0.9em; background: var(--paper-3); padding: 1px 5px; border-radius: 4px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-top: 3rem; }
.notfound .big { font-size: 4.5rem; font-weight: 800; color: var(--teal); line-height: 1; margin-bottom: 0.5rem; letter-spacing: -0.03em; }

/* ---------- room guide ---------- */
button.secondary {
  min-height: 48px; padding: 0 20px; font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer;
  background: var(--white); color: var(--teal-deep); border: 2px solid var(--teal); border-radius: var(--r-pill);
}
button.secondary:hover { background: var(--paper-2); }
button.secondary:disabled { opacity: 0.55; cursor: not-allowed; }
button.primary-sm {
  min-height: 48px; padding: 0 22px; font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer;
  background: var(--accent); color: var(--accent-on); border: 2px solid var(--accent); border-radius: var(--r-pill);
}
button.primary-sm:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
button.primary-sm:disabled { opacity: 0.55; cursor: not-allowed; }

.seg { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.seg button {
  min-height: 48px; padding: 0 16px; font: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer;
  background: var(--white); color: var(--ink); border: 2px solid var(--field-line); border-radius: var(--r-pill);
}
.seg button:hover { border-color: var(--teal); }
.seg button[aria-pressed="true"] { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--white); }
#guideSearch { margin-bottom: 0; }
#guideContent:focus { outline: none; }
#guideContent h2 { margin: 0 0 0.8rem; }
#guideContent h2:focus { outline: none; }
.g-group { margin: 1.6rem 0 0.7rem; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-deep); }

.g-entry { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; margin: 0 0 12px; }
.g-entry > h3 { font-size: 1.1rem; margin: 0 0 0.5rem; }
.g-entry h4 { font-size: 0.98rem; margin: 1rem 0 0.4rem; }
.g-entry summary { cursor: pointer; font-weight: 800; font-size: 1.05rem; min-height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.g-sub { font-weight: 500; font-size: 0.88rem; color: var(--ink-soft); }
.g-meta { color: var(--ink-soft); font-size: 0.88rem; margin: 0.6rem 0 0; }
.g-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 0; }
.g-prose p { margin: 0 0 0.8rem; }
.g-prose ul { margin: 0 0 0.8rem; padding-left: 1.3rem; }
.g-prose li { margin-bottom: 0.3rem; }
.g-dl { margin: 0.6rem 0 0; }
.g-dl dt { font-weight: 700; margin-top: 0.8rem; }
.g-dl dd { margin: 0.15rem 0 0; }
.g-say { margin: 0.4rem 0 0.4rem; padding: 0.5rem 0 0.5rem 14px; border-left: 4px solid var(--teal); font-style: italic; }
.g-links { margin: 0.4rem 0 0; padding-left: 1.2rem; overflow-wrap: anywhere; }
.g-checked { margin: 0.6rem 0 0; }
.g-hit { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.g-hit .g-meta { margin: 0; display: inline; }
.g-hit p.g-meta { display: block; margin-top: 2px; }

.g-feat { list-style: none; margin: 0; padding: 0; }
.g-feat li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 0.5rem 0; border-bottom: 1px solid var(--line-soft); }
.g-feat li:last-child { border-bottom: 0; }
.g-feat-name { font-weight: 600; flex: 1 1 11rem; }
.g-feat-note { flex: 1 1 100%; color: var(--ink-soft); font-size: 0.9rem; }
.code { display: inline-block; font-size: 0.85rem; font-weight: 700; padding: 1px 12px; border-radius: var(--r-pill); border: 1.5px solid transparent; white-space: nowrap; }
.code-yes { background: var(--mint); color: var(--teal-deep); border-color: var(--teal); }
.code-var { background: var(--amber-soft); color: var(--warn-ink); border-color: #b97420; }
.code-rare { background: var(--paper-3); color: var(--ink); border-color: var(--field-line); }
.code-none { background: transparent; color: var(--ink-soft); border-color: var(--line); font-weight: 600; }

.g-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 0.4rem 0 1rem; }
.g-table caption { text-align: left; font-weight: 700; padding: 0 0 0.5rem; }
.g-table th, .g-table td { text-align: left; vertical-align: top; padding: 0.65rem 0.6rem; border-bottom: 1px solid var(--line); }
.g-table thead th { background: var(--paper-3); }
.g-table tbody th { font-weight: 700; }
.table-scroll[role="region"] { position: relative; border-radius: var(--r-sm); } /* positioned, so hidden helper text inside a wide table scrolls with it instead of stretching the page */
.g-table button.link { min-width: 44px; padding: 0 6px; text-align: left; }

.g-diff { margin: 0.5rem 0; padding-left: 1.2rem; font-size: 0.95rem; overflow-wrap: anywhere; }
.g-diff li { margin-bottom: 0.35rem; }
.g-histlist { list-style: none; margin: 0 0 1rem; padding: 0; }
.g-hist { border-bottom: 1px solid var(--line); padding: 0.8rem 0; }
.g-hist p { margin: 0 0 0.3rem; }

.g-dialog { width: min(660px, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow: auto; padding: 0; border: 0; border-radius: var(--r-lg); background: var(--white); color: var(--ink); box-shadow: var(--sh-3); }
.g-dialog::backdrop { background: rgba(0, 40, 53, 0.6); }
.g-dialog > h2 { padding: 22px 22px 0; font-size: 1.3rem; overflow-wrap: anywhere; }
.g-form, .g-dlg-body { padding: 14px 22px 22px; }
.g-dlg-foot { padding: 0 22px 22px; }
.g-form .g-cancel { margin-top: 12px; width: 100%; }
.g-matrix { margin: 1.4rem 0 0; }
.g-matrix legend { font-weight: 800; margin: 0 0 0.3rem; }
.g-mrow { border-top: 1px solid var(--line-soft); padding: 0.7rem 0; }
.g-mrow .label { margin: 0 0 0.4rem; }
.g-mrow input[type=text] { margin-top: 8px; min-height: 48px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
