/* Oasis.Ui control kit, ported from the HotelSimplify control library (Buttons, Inputs, Kit, Card, Grid, Notify)
   and re-themed with the Oasis corporate tokens in oasis-ui.css. Class prefix ox-; the markup comes from the Ox* components.
   Generated by build/tools/port_css.py, then hand-tuned below the line marked HAND-TUNED. */
/* ===== from HotelSimplify kit.css ===== */
/* =====================================================================================================================
   Pass 10: the screen kit (Components/Kit) and the redesigned shell. Uses the design tokens in app.css (Day / Night shift).
   Entry animations use animation-fill-mode: backwards only (a filled transform traps pop-ups under later blocks; see 9.9-a2).
   ===================================================================================================================== */

.tone-neutral { --t: var(--tone-neutral); --ts: var(--tone-neutral-soft); }
.tone-primary { --t: var(--tone-primary); --ts: var(--tone-primary-soft); }
.tone-success { --t: var(--tone-success); --ts: var(--tone-success-soft); }
.tone-warning { --t: var(--tone-warning); --ts: var(--tone-warning-soft); }
.tone-danger { --t: var(--tone-danger); --ts: var(--tone-danger-soft); }
.tone-info { --t: var(--tone-info); --ts: var(--tone-info-soft); }

@keyframes oxk-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes oxk-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes oxk-grow-up { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes oxk-sheen { 0% { background-position: -300px 0; } 100% { background-position: 300px 0; } }
@keyframes oxk-float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-14px, 10px); } }

/* --- page frame ----------------------------------------------------------------------------------------------------- */
.oxk-page { max-width: var(--page-max); margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.oxk-head { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.oxk-head-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; color: var(--t);
                 background: linear-gradient(140deg, var(--ts), color-mix(in srgb, var(--ts) 55%, var(--surface-200)));
                 box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t) 18%, transparent); }
.oxk-head-text { flex: 1 1 260px; min-width: 0; }
.oxk-head h1 { font-size: 26px; line-height: 34px; margin: 0; display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; letter-spacing: -.01em; }
.oxk-eyebrow { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 13px; line-height: 18px; font-weight: 600; color: var(--brand); letter-spacing: .02em; }
.oxk-sub { margin: 2px 0 0; color: var(--ink-muted); }
.oxk-actions { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; justify-content: flex-end; }
.oxk-head.compact h1 { font-size: 22px; line-height: 30px; }
.oxk-head.compact .oxk-head-icon { width: 40px; height: 40px; border-radius: 12px; }
.oxk-back { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-muted); border: 1px solid var(--line);
            background: var(--surface-200); flex: none; transition: background-color .15s, color .15s, transform .15s; }
.oxk-back:hover { color: var(--brand); background: var(--brand-soft); transform: translateX(-2px); }
.oxk-body { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.oxk-body > * { animation: oxk-rise .4s var(--ease-out) backwards; }
.oxk-body > *:nth-child(2) { animation-delay: .04s; }
.oxk-body > *:nth-child(3) { animation-delay: .08s; }
.oxk-body > *:nth-child(n+4) { animation-delay: .12s; }
.oxk-body > .ox-msg, .oxk-body > .page-message { margin: 0; }
/* the page frame does its own rise; stop the older page-wide one doubling it */

/* --- tabs ------------------------------------------------------------------------------------------------------------ */
.oxk-tabs { display: flex; align-items: center; gap: var(--space-3); border-bottom: 1px solid var(--line); min-width: 0; }
.oxk-tabs-row { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.oxk-tabs-row::-webkit-scrollbar { display: none; }
.oxk-tab { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px 12px; white-space: nowrap; border: 0; background: none;
           color: var(--ink-muted); font: 500 15px var(--font); text-decoration: none; cursor: pointer; border-radius: var(--radius-md) var(--radius-md) 0 0;
           transition: color .15s, background-color .15s; }
.oxk-tab:hover { color: var(--ink); background: color-mix(in srgb, var(--surface-300) 70%, transparent); }
.oxk-tab.active { color: var(--ink); }
.oxk-tab.active .icon { color: var(--brand); }
.oxk-tab::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand);
                  transform: scaleX(0); transition: transform .25s var(--ease-out); }
.oxk-tab.active::after { transform: scaleX(1); }
.oxk-tab.disabled { opacity: .5; pointer-events: none; }
.oxk-tab-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; font-size: 12px; line-height: 20px; font-weight: 600; text-align: center;
                 background: var(--surface-300); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.oxk-tab.active .oxk-tab-count { background: var(--brand-soft); color: var(--brand-strong); }
.oxk-tab-count.tone-danger { background: var(--danger-soft); color: var(--danger); }
.oxk-tab-count.tone-warning { background: var(--warning-soft); color: var(--warning-ink); }
.oxk-tabs-trail { flex: none; display: flex; align-items: center; gap: var(--space-2); padding-bottom: 6px; color: var(--ink-muted); font-size: 13px; }
.oxk-tabs.pills { border: 0; }
.oxk-tabs.pills .oxk-tabs-row { background: var(--surface-300); padding: 3px; border-radius: var(--radius-md); flex: 0 1 auto; }
.oxk-tabs.pills .oxk-tab { padding: 6px 12px; border-radius: 6px; font-size: 14px; }
.oxk-tabs.pills .oxk-tab::after { display: none; }
.oxk-tabs.pills .oxk-tab.active { background: var(--surface-200); box-shadow: var(--shadow-1); }

/* --- toolbar / filter bar -------------------------------------------------------------------------------------------- */
.oxk-toolbar { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.oxk-filterbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3); padding: var(--space-3); background: var(--surface-200);
                 border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); }
.oxk-filter-search { flex: 1 1 260px; min-width: 0; }
.oxk-filter-search .oxi-field { margin: 0; }
.oxk-filter-items { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3); flex: 10 1 auto; }
.oxk-filter-items > .oxi-field { margin: 0; min-width: 160px; }
.oxk-filter-actions { display: flex; gap: var(--space-2); margin-left: auto; align-items: center; }

/* --- KPI tiles ------------------------------------------------------------------------------------------------------- */
.oxk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--space-3); }
.oxk-stats.cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.oxk-stat { --t: var(--brand); --ts: var(--brand-soft); position: relative; display: flex; flex-direction: column; gap: 6px; padding: var(--space-4);
            min-height: 132px; text-align: left; font: inherit; color: var(--ink); text-decoration: none; overflow: hidden; isolation: isolate;
            background: var(--surface-200); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-1);
            transition: transform .18s var(--ease-out), box-shadow .18s, border-color .18s; }
.oxk-stat::before { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; z-index: -1;
                    background: radial-gradient(circle, color-mix(in srgb, var(--t) 14%, transparent), transparent 70%); transition: transform .4s var(--ease-out); }
.oxk-stat.clickable { cursor: pointer; }
.oxk-stat.clickable:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--t) 45%, var(--line)); color: var(--ink); }
.oxk-stat.clickable:hover::before { transform: scale(1.35); }
.oxk-stat-top { display: flex; align-items: center; gap: var(--space-2); }
.oxk-stat-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--ts); color: var(--t); flex: none; }
.oxk-stat-label { font-size: 14px; color: var(--ink-muted); font-weight: 500; flex: 1; min-width: 0; }
.oxk-stat-go { color: var(--ink-muted); opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s; }
.oxk-stat.clickable:hover .oxk-stat-go, .oxk-stat.clickable:focus-visible .oxk-stat-go { opacity: 1; transform: none; color: var(--t); }
.oxk-stat-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-3); }
.oxk-stat-value { font-size: 32px; line-height: 38px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.oxk-stat-value small { font-size: 15px; font-weight: 500; color: var(--ink-muted); margin-left: 3px; letter-spacing: 0; }
.oxk-stat-sub { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.oxk-stat-bar { display: block; height: 6px; border-radius: 6px; background: var(--surface-300); overflow: hidden; }
.oxk-stat-bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--t), color-mix(in srgb, var(--t) 55%, var(--accent)));
                       transform-origin: left; animation: oxk-fill .9s var(--ease-out) .15s backwards; }
.oxk-spark { display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.oxk-spark > span { width: 6px; border-radius: 2px 2px 0 0; background: color-mix(in srgb, var(--t) 55%, transparent); transform-origin: bottom;
                    animation: oxk-grow-up .6s var(--ease-out) backwards; }
.oxk-spark > span:last-child { background: var(--t); }
.oxk-spark > span:nth-child(2) { animation-delay: .04s; } .oxk-spark > span:nth-child(3) { animation-delay: .08s; }
.oxk-spark > span:nth-child(4) { animation-delay: .12s; } .oxk-spark > span:nth-child(n+5) { animation-delay: .16s; }
.oxk-trend { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; }
.oxk-trend.good { color: var(--tone-success); }
.oxk-trend.bad { color: var(--danger); }
.oxk-trend.flat { color: var(--ink-muted); }
.oxk-stat.hero { color: #fff; border: 0; grid-column: span 2;
                 background: radial-gradient(420px 220px at 100% 0%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 60%),
                             linear-gradient(135deg, var(--brand-strong), var(--brand)); }
:root[data-theme="dark"] .oxk-stat.hero { background: radial-gradient(420px 220px at 100% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%),
                                          linear-gradient(135deg, var(--brand-deep), var(--brand-strong)); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .oxk-stat.hero { background: radial-gradient(420px 220px at 100% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%),
                                                   linear-gradient(135deg, var(--brand-deep), var(--brand-strong)); }
}
.oxk-stat.hero::before { background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 70%); width: 220px; height: 220px; animation: oxk-float 9s ease-in-out infinite; }
.oxk-stat.hero .oxk-stat-label, .oxk-stat.hero .oxk-stat-sub, .oxk-stat.hero .oxk-stat-value small, .oxk-stat.hero .oxk-stat-go { color: rgba(255, 255, 255, .85); }
.oxk-stat.hero .oxk-stat-icon { background: rgba(255, 255, 255, .18); color: #fff; }
.oxk-stat.hero .oxk-stat-bar { background: rgba(255, 255, 255, .22); }
.oxk-stat.hero .oxk-stat-bar > span { background: linear-gradient(90deg, #fff, var(--warning-soft)); }
.oxk-stat.hero .oxk-stat-value { font-size: 40px; line-height: 46px; }
.oxk-stat.hero.clickable:hover { color: #fff; }
.oxk-shimmer { display: inline-block; border-radius: 6px; background: linear-gradient(90deg, var(--surface-300) 0, var(--surface-100) 50%, var(--surface-300) 100%);
               background-size: 600px 100%; animation: oxk-sheen 1.3s linear infinite; }

/* --- sections -------------------------------------------------------------------------------------------------------- */
.oxk-section { background: var(--surface-200); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); min-width: 0; }
.oxk-section-head { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.oxk-section.folded .oxk-section-head { border-bottom: 0; }
.oxk-section-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.oxk-section-title { flex: 1 1 200px; min-width: 0; }
.oxk-section-title h2 { margin: 0; font-size: 17px; line-height: 24px; display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.oxk-section-title p { margin: 0; }
.oxk-section-actions { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.oxk-section-body { padding: var(--space-4); }
.oxk-section.flush > .oxk-section-body { padding: 0; }
.oxk-section.flush > .oxk-section-body > .oxg { border: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: none; }
.oxk-section.plain { background: none; border: 0; box-shadow: none; }
.oxk-section.plain > .oxk-section-head { padding: 0 0 var(--space-2); border: 0; }
.oxk-section.plain > .oxk-section-body { padding: 0; }
.oxk-fold { width: 30px; height: 30px; border-radius: 8px; border: 0; background: none; color: var(--ink-muted); display: grid; place-items: center; cursor: pointer; margin-left: -6px; }
.oxk-fold:hover { background: var(--surface-300); color: var(--ink); }
.oxk-fold .icon { transition: transform .2s var(--ease-out); }
.oxk-section.folded .oxk-fold .icon { transform: rotate(-90deg); }
.oxk-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: var(--space-4); align-items: start; }
.oxk-cols.wide-left { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
.oxk-cols.wide-right { grid-template-columns: minmax(300px, 1fr) minmax(0, 2fr); }
@media (max-width: 1100px) { .oxk-cols.wide-left, .oxk-cols.wide-right { grid-template-columns: minmax(0, 1fr); } }

/* --- details --------------------------------------------------------------------------------------------------------- */
.oxk-details { display: grid; gap: var(--space-3) var(--space-6); margin: 0; }
.oxk-details.cols-1 { grid-template-columns: minmax(0, 1fr); }
.oxk-details.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.oxk-details.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.oxk-details.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.oxk-detail { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.oxk-detail.wide { grid-column: 1 / -1; }
.oxk-detail dt { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-muted); font-weight: 500; }
.oxk-detail dd { margin: 0; overflow-wrap: anywhere; }
.oxk-detail dd.strong { font-weight: 600; font-size: 17px; }
.oxk-detail dd.num { font-variant-numeric: tabular-nums; }

/* --- status chips, avatars --------------------------------------------------------------------------------------------- */
.oxc.oxk-status.dot .oxc-text::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: middle; opacity: .85; }
.oxk-avatar { --hue: 165; display: inline-grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden; color: #fff; font-weight: 600;
              background: linear-gradient(135deg, hsl(var(--hue) 45% var(--cover-l2, 46%)), hsl(calc(var(--hue) + 24) 50% var(--cover-l, 34%))); }
.oxk-avatar.square { border-radius: 28%; }
.oxk-avatar img { width: 100%; height: 100%; object-fit: cover; }
.oxk-avatar.size-24 { width: 24px; height: 24px; font-size: 10px; }
.oxk-avatar.size-32 { width: 32px; height: 32px; font-size: 12px; }
.oxk-avatar.size-40 { width: 40px; height: 40px; font-size: 14px; }
.oxk-avatar.size-56 { width: 56px; height: 56px; font-size: 19px; }
.oxk-person { display: inline-flex; align-items: center; gap: var(--space-2); min-width: 0; }
.oxk-person > span:last-child { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.oxk-person small { color: var(--ink-muted); font-size: 12px; }

/* --- timeline -------------------------------------------------------------------------------------------------------- */
.oxk-timeline { list-style: none; margin: 0; padding: 0; }
.oxk-timeline > li { --t: var(--line-strong); position: relative; display: flex; gap: var(--space-3); padding-bottom: var(--space-4); }
.oxk-timeline > li::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; background: var(--line); }
.oxk-timeline > li:last-child::before { display: none; }
.oxk-timeline > li:last-child { padding-bottom: 0; }
.oxk-timeline > li.tone-primary, .oxk-timeline > li.tone-success, .oxk-timeline > li.tone-warning, .oxk-timeline > li.tone-danger, .oxk-timeline > li.tone-info { }
.oxk-tl-dot { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--ts, var(--surface-300)); color: var(--t);
              box-shadow: 0 0 0 4px var(--surface-200); }
.oxk-timeline > li.tone-neutral .oxk-tl-dot { background: var(--surface-300); color: var(--ink-muted); }
.oxk-tl-body { flex: 1; min-width: 0; padding-top: 1px; }
.oxk-tl-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; }
.oxk-tl-who { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-muted); margin-top: 2px; }
.oxk-tl-text { margin: 2px 0 0; color: var(--ink-muted); font-size: 14px; white-space: pre-wrap; }

/* --- steps ----------------------------------------------------------------------------------------------------------- */
.oxk-steps { list-style: none; display: flex; gap: var(--space-2); margin: 0; padding: 0; counter-reset: none; overflow-x: auto; scrollbar-width: none; }
.oxk-steps li { flex: 1 1 0; min-width: 0; position: relative; }
.oxk-steps li > span, .oxk-steps li > button { display: flex; align-items: center; gap: var(--space-2); width: 100%; padding: 8px 10px; border-radius: var(--radius-md);
                                              border: 0; background: none; font: 500 14px var(--font); color: var(--ink-muted); text-align: left; }
.oxk-steps li > button { cursor: pointer; }
.oxk-steps li > button:hover { background: var(--surface-300); }
.oxk-steps li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--line); }
.oxk-steps li.done::after, .oxk-steps li.current::after { background: var(--brand); }
.oxk-steps li.current::after { animation: oxk-fill .5s var(--ease-out) backwards; transform-origin: left; }
.oxk-step-no { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 12px; font-weight: 600;
               background: var(--surface-300); color: var(--ink-muted); }
.oxk-steps li.current .oxk-step-no { background: var(--brand); color: var(--on-brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.oxk-steps li.done .oxk-step-no { background: var(--brand-soft); color: var(--brand); }
.oxk-steps li.current .oxk-step-text { color: var(--ink); }
.oxk-step-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- action bar ------------------------------------------------------------------------------------------------------ */
.oxk-actionbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; padding: var(--space-3) var(--space-4);
                 background: color-mix(in srgb, var(--surface-200) 92%, transparent); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); }
.oxk-actionbar.sticky { position: sticky; bottom: var(--space-3); z-index: 15; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.oxk-actionbar-summary { font-weight: 500; color: var(--ink); min-width: 0; }
.oxk-actionbar-buttons { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-left: auto; }

/* --- lists of cards (rooms, properties, tasks) ----------------------------------------------------------------------- */
.oxk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: var(--space-3); }
.oxk-tile { position: relative; display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); text-align: left; font: inherit; color: var(--ink);
            background: var(--surface-200); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); text-decoration: none;
            transition: transform .18s var(--ease-out), box-shadow .18s, border-color .18s; min-width: 0; }
a.oxk-tile, button.oxk-tile, .oxk-tile.clickable { cursor: pointer; }
a.oxk-tile:hover, button.oxk-tile:hover, .oxk-tile.clickable:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); color: var(--ink); }
.oxk-tile-head { display: flex; align-items: center; gap: var(--space-2); justify-content: space-between; }
.oxk-tile-title { font-weight: 600; font-size: 16px; }
.oxk-tile-foot { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: auto; padding-top: var(--space-2); }
.oxk-tile.tone-success, .oxk-tile.tone-warning, .oxk-tile.tone-danger, .oxk-tile.tone-info, .oxk-tile.tone-primary { box-shadow: inset 4px 0 0 var(--t), var(--shadow-1); }

/* --- shell (pass 10) ------------------------------------------------------------------------------------------------- */

/* phones: a bottom bar with the main places, the side bar slides in for the rest */

@media (max-width: 960px) {
  
  
  
  
  
  
  
  
  
  
  .oxk-head h1 { font-size: 22px; line-height: 30px; }
  .oxk-head-icon { width: 40px; height: 40px; border-radius: 12px; }
  .oxk-actions { width: 100%; justify-content: flex-start; }
  .oxk-stat.hero { grid-column: auto; }
  .oxk-details.cols-3, .oxk-details.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oxk-actionbar.sticky { bottom: calc(72px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  .oxk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
  .oxk-stat { min-height: 112px; padding: var(--space-3); }
  .oxk-stat-value { font-size: 26px; line-height: 32px; }
  .oxk-stat.hero { grid-column: 1 / -1; }
  .oxk-details.cols-2, .oxk-details.cols-3, .oxk-details.cols-4 { grid-template-columns: minmax(0, 1fr); }
  .oxk-steps .oxk-step-text { display: none; }
  .oxk-steps li.current .oxk-step-text { display: inline; }
  .oxk-steps li.current { flex: 3 1 0; }
  .oxk-section-head { padding: var(--space-3); }
  .oxk-section-body { padding: var(--space-3); }
  .oxk-filterbar { padding: var(--space-2); }
}
@media print {
  .oxk-actions, .oxk-tabs, .oxk-filterbar, .oxk-actionbar { display: none !important; }
  .oxk-section, .oxk-stat { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .oxk-body > *, .oxk-stat-bar > span, .oxk-spark > span, .oxk-steps li.current::after, .oxk-stat.hero::before { animation: none; }
  .oxk-stat, .oxk-tile, .oxk-tab::after { transition: none; }
}

/* shell extras */

/* HsSelect: a native select in the input frame */
.oxk-select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 30px !important; background: transparent; }
.oxi-select .oxi-box { position: relative; }
.oxk-select-caret { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ink-muted); }
.oxk-select option { color: var(--ink); background: var(--surface-200); }

/* HsMobileBox: a country-code chip (a see-through native select over it) and a 10-digit box in one frame */

.oxi-field.sm .oxk-mob-dial { font-size: 14px; }

/* a group of fields with a heading inside a form */
.oxk-fieldset { border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4) var(--space-4); margin: 0;
                display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-3) var(--space-4); align-items: start; }
.oxk-fieldset > legend { padding: 0 var(--space-2); font-weight: 600; font-size: 14px; color: var(--ink); }
.oxk-fieldset > .oxi-switch, .oxk-fieldset > .oxi-check { grid-column: 1 / -1; }

/* the phone menu's dimmer must hide when the menu is closed (the older only-mobile rule won over [hidden]) */

@media (max-width: 640px) { .oxk-tabs-trail { display: none; } }
.oxk-toolbar > .oxk-filterbar { flex: 1 1 100%; }

/* tooltips take no room until shown, so one near the screen edge cannot make the page scroll sideways */
:is(.oxb, .oxb-group button, .oxfab, .oxsd-main, .oxsd-item, .oxb-dropdown button, .oxb-split button)[data-tip]:not(:hover):not(:focus-visible)::after { display: none; }
/* the page title takes the focus after navigation (for screen readers); no ring for that */
.oxk-head h1:focus, h1[tabindex="-1"]:focus { outline: none; }
@keyframes oxk-tip { from { opacity: 0; } to { opacity: 1; } }
:is(.oxb, .oxb-group button, .oxfab, .oxsd-main, .oxsd-item, .oxb-dropdown button, .oxb-split button)[data-tip]:is(:hover, :focus-visible)::after { animation: oxk-tip .12s .3s backwards; }

/* filter bars never push the page wider than the screen (a date range picker has a wide minimum) */
.oxk-filterbar, .oxk-filterbar > *, .oxk-filter-items > * { min-width: 0; max-width: 100%; }
@media (max-width: 640px) {
  .oxk-filter-search, .oxk-filter-items { flex: 1 1 100%; }
  .oxk-filter-items > .oxi-field { flex: 1 1 100%; min-width: 0; }
  .oxk-filter-actions { margin-left: 0; }
}
/* phones: floating buttons sit above the bottom bar */

/* pass 10.2: HsAutoComplete list (fixed, placed under the box by hsInputs.popup) */

/* pass 10.9: the business date is behind today (night audit due) */


/* ===== from HotelSimplify buttons.css ===== */
/* Pass 9.6: buttons and their relatives: variants, sizes, toggle, button group, chips, menus, split and progress buttons,
   floating action button and speed dial. Built on .ox-btn from app.css and the design tokens (Day and Night shift). */

/* ---- button ---- */
.oxb { position: relative; }
.ox-btn.large { height: 48px; padding: 0 var(--space-6); font-size: 16px; border-radius: 10px; }
.ox-btn.oxb-round { border-radius: var(--radius-pill); }
.ox-btn.oxb-icon-only { width: 40px; padding: 0; }
.ox-btn.small.oxb-icon-only { width: 32px; }
.ox-btn.large.oxb-icon-only { width: 48px; }
.ox-btn.oxb-block { display: flex; width: 100%; }
.ox-btn.oxb-stacked { flex-direction: column; height: auto; min-height: 56px; padding: var(--space-2) var(--space-4); gap: 2px; line-height: 18px; }
.ox-btn.oxb-success { background: var(--tone-success); border-color: var(--tone-success); color: #fff; }
.ox-btn.oxb-success:hover:not(:disabled) { background: color-mix(in srgb, var(--tone-success) 82%, #000); border-color: color-mix(in srgb, var(--tone-success) 82%, #000); }
.ox-btn.oxb-info { background: var(--info); border-color: var(--info); color: #fff; }
.ox-btn.oxb-info:hover:not(:disabled) { background: color-mix(in srgb, var(--info) 85%, #000); }
.ox-btn.oxb-link { background: none; border-color: transparent; color: var(--brand); padding: 0 var(--space-1); height: auto; text-decoration: underline; text-underline-offset: 3px; }
.ox-btn.oxb-link:hover:not(:disabled) { background: none; color: var(--brand-strong); box-shadow: none; }
.ox-btn.oxb-pressed, .ox-btn.secondary.oxb-pressed { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-strong); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .08); }
.ox-btn.quiet.oxb-pressed { background: var(--brand-soft); color: var(--brand-strong); }
.ox-btn.oxb-busy { cursor: progress; }
.ox-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.ox-btn.secondary .icon, .ox-btn.quiet .icon { flex: none; }
:root[data-theme="dark"] .ox-btn.oxb-success { background: var(--tone-success); border-color: var(--tone-success); color: var(--on-brand); }

/* tooltips for the button family */
.oxb[data-tip], .oxb-group [data-tip], .oxb-dropdown [data-tip], .oxb-split [data-tip] { position: relative; }
:is(.oxb, .oxb-group button, .oxfab, .oxsd-main, .oxsd-item, .oxb-dropdown button, .oxb-split button)[data-tip]::after {
  content: attr(data-tip); position: absolute; top: calc(100% + 8px); left: 50%; z-index: 95; transform: translate(-50%, -4px); padding: 4px 8px; border-radius: 6px;
  background: var(--ink); color: var(--surface-200); font: 500 12px/16px var(--font); white-space: nowrap; pointer-events: none; opacity: 0;
  transition: opacity .12s, transform .12s; text-transform: none; letter-spacing: 0; }
:is(.oxb, .oxb-group button, .oxfab, .oxsd-main, .oxsd-item, .oxb-dropdown button, .oxb-split button)[data-tip]:is(:hover, :focus-visible)::after {
  opacity: 1; transform: translate(-50%, 0); transition-delay: .3s; }

/* ---- button group ---- */
.oxb-group { display: inline-flex; align-items: stretch; isolation: isolate; }
.oxb-group > .ox-btn { border-radius: 0; margin-left: -1px; }
.oxb-group > .ox-btn:first-child { margin-left: 0; border-radius: var(--radius-md) 0 0 var(--radius-md); }
.oxb-group > .ox-btn:last-child { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.oxb-group > .ox-btn:only-child { border-radius: var(--radius-md); }
.oxb-group > .ox-btn:hover, .oxb-group > .ox-btn:focus-visible, .oxb-group > .ox-btn.oxb-pressed { z-index: 1; }
.oxb-group > .ox-btn:not(.secondary):not(.quiet) { border-color: color-mix(in srgb, var(--brand) 80%, #000); }
.oxb-group.block { display: flex; width: 100%; }
.oxb-group.block > .ox-btn { flex: 1; }
.oxb-group.vertical { flex-direction: column; }
.oxb-group.vertical > .ox-btn { margin: -1px 0 0; justify-content: flex-start; }
.oxb-group.vertical > .ox-btn:first-child { margin-top: 0; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.oxb-group.vertical > .ox-btn:last-child { border-radius: 0 0 var(--radius-md) var(--radius-md); }

/* ---- chips ---- */
.oxc { --c-bg: var(--surface-300); --c-fg: var(--ink); --c-bd: transparent; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 30px;
       padding: 0 var(--space-3); border: 1px solid var(--c-bd); border-radius: var(--radius-pill); background: var(--c-bg); color: var(--c-fg);
       font: 500 13px/1 var(--font); vertical-align: middle; user-select: none; transition: background-color .12s, border-color .12s, box-shadow .12s; }
.oxc.small { height: 24px; padding: 0 var(--space-2); font-size: 12px; gap: 4px; }
.oxc .icon { flex: none; }
.oxc-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oxc.tone-primary { --c-bg: var(--brand-soft); --c-fg: var(--brand-strong); }
.oxc.tone-success { --c-bg: color-mix(in srgb, var(--tone-success) 16%, var(--surface-200)); --c-fg: var(--tone-success); }
.oxc.tone-warning { --c-bg: var(--warning-soft); --c-fg: var(--warning-ink); }
.oxc.tone-danger { --c-bg: var(--danger-soft); --c-fg: var(--danger); }
.oxc.tone-info { --c-bg: color-mix(in srgb, var(--info) 15%, var(--surface-200)); --c-fg: var(--info); }
:root[data-theme="dark"] .oxc.tone-success { --c-fg: var(--tone-success); }
.oxc.outline { --c-bd: color-mix(in srgb, var(--c-fg) 45%, transparent); background: transparent; }
.oxc.clickable { cursor: pointer; }
.oxc.clickable:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--c-fg) 35%, transparent); }
.oxc:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.oxc.selected, .oxc.outline.selected { --c-bg: var(--brand); --c-fg: var(--on-brand); --c-bd: var(--brand); background: var(--c-bg); }
.oxc.disabled { opacity: .5; cursor: default; pointer-events: none; }
.oxc-check { display: inline-grid; place-items: center; animation: ox-pop .15s var(--ease-out) both; }
.oxc-avatar { width: 22px; height: 22px; margin-left: -8px; border-radius: 50%; object-fit: cover; flex: none; }
.oxc-avatar.text { display: inline-grid; place-items: center; background: var(--c-fg); color: var(--c-bg); font-size: 10px; font-weight: 700; }
.oxc.small .oxc-avatar { width: 18px; height: 18px; margin-left: -5px; }
.oxc-remove { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: -6px; padding: 0; border: 0; border-radius: 50%;
              background: color-mix(in srgb, var(--c-fg) 15%, transparent); color: inherit; cursor: pointer; }
.oxc-remove:hover { background: color-mix(in srgb, var(--c-fg) 30%, transparent); }
.oxc-list { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }

/* ---- menus (dropdown, split, "more") ---- */
.oxb-dropdown, .oxb-split { position: relative; display: inline-flex; vertical-align: middle; }
.oxb-caret { display: inline-flex; margin-right: -4px; transition: transform .15s; }
.oxb-open .oxb-caret { transform: rotate(180deg); }
.oxm { position: fixed; z-index: 120; left: -9999px; top: -9999px; max-width: min(320px, calc(100vw - 16px)); max-height: min(420px, 70vh); overflow-y: auto;
       padding: var(--space-1); background: var(--surface-200); border: 1px solid var(--line); border-radius: var(--radius-md);
       box-shadow: var(--shadow-pop), 0 12px 32px -12px rgba(0, 0, 0, .3); }
.oxm.placed { animation: oxm-in .14s var(--ease-out) both; }
.oxm.up.placed { animation-name: oxm-in-up; }
@keyframes oxm-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes oxm-in-up { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.oxm-header { padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line); margin-bottom: var(--space-1); font-size: 13px; color: var(--ink-muted); }
.oxm-item { display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 36px; padding: 0 var(--space-3); border: 0; border-radius: 6px; background: none;
            color: var(--ink); font: 400 14px var(--font); text-align: left; text-decoration: none; cursor: pointer; }
.oxm-item:hover, .oxm-item:focus { background: var(--surface-300); color: var(--ink); outline: none; }
.oxm-item:focus-visible { box-shadow: inset 0 0 0 2px var(--focus-ring); }
.oxm-item:disabled { opacity: .45; cursor: default; background: none; }
.oxm-item.danger { color: var(--danger); }
.oxm-item.danger:hover, .oxm-item.danger:focus { background: var(--danger-soft); }
.oxm-icon { width: 16px; display: inline-grid; place-items: center; color: var(--ink-muted); flex: none; }
.oxm-item.danger .oxm-icon { color: inherit; }
.oxm-text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oxm-item kbd { margin-left: var(--space-4); }
.oxm-sep { height: 1px; margin: var(--space-1) var(--space-2); background: var(--line); }
@media (max-width: 640px) { .oxm-item { min-height: 44px; } }

/* ---- split button ---- */
.oxb-split > .ox-btn:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.oxb-split > .oxb-split-caret { width: 36px; margin-left: 1px; border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.oxb-split > .ox-btn.secondary.oxb-split-caret, .oxb-split > .ox-btn.quiet.oxb-split-caret { margin-left: -1px; }
.oxb-split > .ox-btn.small.oxb-split-caret { width: 28px; }
.oxb-split > .ox-btn:not(.secondary):not(.quiet).oxb-split-caret { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .28); }

/* ---- progress button ---- */
.oxb-progress { overflow: hidden; isolation: isolate; }
.oxb-progress-inner { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: var(--space-2); }
.oxb-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; z-index: 0; background: rgba(255, 255, 255, .22); transition: width .3s ease; }
.ox-btn.secondary .oxb-fill, .ox-btn.quiet .oxb-fill { background: var(--brand-soft); }
.oxb-fill.auto { animation: oxb-fill var(--oxb-duration, 2000ms) cubic-bezier(.1, .7, .3, 1) forwards; }
@keyframes oxb-fill { from { width: 0; } to { width: 92%; } }
.ox-btn.oxb-progress.state-running:disabled { opacity: 1; cursor: progress; }
.ox-btn.oxb-progress.state-done { background: var(--tone-success); border-color: var(--tone-success); color: #fff; }
.ox-btn.oxb-progress.state-failed { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.ox-btn.oxb-progress.state-done .icon, .ox-btn.oxb-progress.state-failed .icon { animation: ox-pop .2s var(--ease-out) both; }

/* ---- floating action button ---- */

.ox-btn.oxfab.oxb-icon-only { width: 56px; height: 56px; }
.ox-btn.small.oxfab.oxb-icon-only { width: 44px; height: 44px; }
.ox-btn.oxfab.extended { height: 52px; padding: 0 var(--space-6) 0 var(--space-4); }

/* ---- speed dial ---- */

/* linear: a column or row of actions leading away from the main button */

/* radial: actions on an arc around the main button */

/* showcase page layout (GridDemo → Buttons) */

/* pass 9.8: phones have no hover, so tips never show there; hidden ones must not widen the page either */
@media (hover: none) { [data-tip]::after { display: none !important; } }

/* ===== from HotelSimplify inputs.css ===== */
/* Pass 9.8: input controls: text box, text area, numeric, mask, OTP, check box, switch, radio, slider, rating, colour picker, file upload,
   signature and speech to text. Design tokens from app.css; Day and Night shift both work. */

/* ---- the frame: label, control, message ---- */
.oxi-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; color: var(--ink); font-size: 15px; }
fieldset.oxi-field { min-inline-size: 0; }
.oxi-label { padding: 0; font: 500 13px/18px var(--font); color: var(--ink-muted); }
.oxi-req { color: var(--danger); margin-left: 2px; }
.oxi-below { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2); min-height: 16px; font-size: 12.5px; line-height: 16px; }
.oxi-hint { color: var(--ink-muted); }
.oxi-msg { display: flex; align-items: flex-start; gap: 4px; color: var(--danger); font-weight: 500; animation: ox-pop .18s var(--ease-out) both; }
.oxi-msg .icon { flex: none; margin-top: 1px; }
.oxi-count { margin-left: auto; color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.oxi-count.full { color: var(--danger); }
.oxi-count.strong { color: var(--ink); font-weight: 600; font-size: 13px; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace !important; letter-spacing: .02em; }
legend.oxi-label { float: none; margin-bottom: 6px; }
/* a slider's label line carries its value on the right */

/* fields with a floating label line up with fields that have a label above */
:is(.grid-form, .demo-inputs) > .oxi-field:has(> .oxi-box.float) { padding-top: 24px; }

/* ---- text boxes: one bordered box with the input and its icons inside ---- */
.oxi-box { position: relative; display: flex; align-items: center; gap: 2px; min-height: 40px; padding: 0 6px 0 0; border: 1px solid var(--line-strong);
           border-radius: var(--radius-md); background: var(--surface-200); transition: border-color .12s, box-shadow .12s; }
.oxi-box:hover { border-color: var(--ink-muted); }
.oxi-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.oxi-box .oxi-input, .oxi-box .oxi-input:hover, .oxi-box .oxi-input:focus { flex: 1; min-width: 0; height: 38px; padding: 0 var(--space-3); border: 0; border-radius: inherit;
           background: transparent; box-shadow: none; outline: none; color: var(--ink); font: 400 15px var(--font); }
.oxi-box.multi { align-items: stretch; padding: 0; }
.oxi-box.multi textarea.oxi-input { height: auto; min-height: calc(var(--rows, 3) * 22px + 18px); padding: 9px var(--space-3); line-height: 22px; }
textarea.oxi-input[style*="--max-rows"] { field-sizing: content; max-height: calc(var(--max-rows) * 22px + 18px); }
textarea.rs-v { resize: vertical; } textarea.rs-none { resize: none; } textarea.rs-both { resize: both; }
.oxi-adorn { display: grid; place-items: center; flex: none; padding-left: var(--space-3); color: var(--ink-muted); }
.oxi-adorn + .oxi-input, .oxi-adorn + .oxi-affix { padding-left: var(--space-2) !important; }
.oxi-affix { flex: none; padding-left: var(--space-3); color: var(--ink-muted); font-weight: 500; white-space: nowrap; }
.oxi-affix + .oxi-input { padding-left: 6px !important; }
.oxi-input ~ .oxi-affix { padding: 0 var(--space-2) 0 0; }
.oxi-icon-btn { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent;
                color: var(--ink-muted); cursor: pointer; transition: background .12s, color .12s; }
.oxi-icon-btn:hover:not(:disabled) { background: var(--surface-300); color: var(--ink); }
.oxi-icon-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.oxi-icon-btn:disabled { opacity: .4; cursor: default; }
.oxi-corner { position: absolute; right: 6px; top: 6px; }
.oxi-box.multi > :not(textarea):not(.oxi-float):not(.oxi-corner) { position: absolute; right: 6px; bottom: 6px; }
.oxi-field.sm .oxi-box { min-height: 32px; } .oxi-field.sm .oxi-box .oxi-input { height: 30px; font-size: 14px; }
.oxi-field.lg .oxi-box { min-height: 48px; } .oxi-field.lg .oxi-box .oxi-input { height: 46px; font-size: 16px; }
.oxi-field.invalid .oxi-box { border-color: var(--danger); }
.oxi-field.invalid .oxi-box:focus-within { box-shadow: 0 0 0 3px var(--danger-soft); }
.oxi-field.disabled .oxi-box { background: var(--surface-300); border-color: var(--line); cursor: not-allowed; }
.oxi-field.disabled .oxi-input { color: var(--ink-muted); cursor: not-allowed; }
.oxi-field.readonly .oxi-box { background: var(--surface-100); border-style: dashed; }
/* floating label: sits in the box, moves onto the border when there is text or focus */
.oxi-float { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); max-width: calc(100% - 24px); padding: 0 4px; margin-left: -4px;
             color: var(--ink-muted); font-size: 15px; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
             background: var(--surface-200); border-radius: 4px; transition: top .14s var(--ease-out), font-size .14s, color .14s, transform .14s; }
.oxi-box.multi .oxi-float { top: 20px; }
.oxi-box.float .oxi-input::placeholder { opacity: 0; transition: opacity .14s; }
.oxi-box.float .oxi-input:focus::placeholder { opacity: .8; }
.oxi-box.float .oxi-input:focus ~ .oxi-float, .oxi-box.float .oxi-input:not(:placeholder-shown) ~ .oxi-float, .oxi-box.float-up .oxi-float {
  top: 0; transform: translateY(-50%); font-size: 12px; font-weight: 500; }
.oxi-box.float .oxi-input:focus ~ .oxi-float { color: var(--brand); }
.oxi-box.float-up .oxi-float { left: 12px; }
.oxi-field.invalid .oxi-float { color: var(--danger) !important; }
.oxi-field.disabled .oxi-float { background: transparent; }
.oxi-spin { display: inline-flex; gap: 2px; }
.oxi-spin[hidden] { display: none; }
.oxi-numeric .oxi-input { font-variant-numeric: tabular-nums; }
.oxi-box.refused { animation: oxi-nudge .25s ease-in-out; }                      /* a letter typed into a number box is refused */
@keyframes oxi-nudge { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }

/* ---- check box, switch and radio share a row: hidden native input, drawn box, words ---- */
.oxi-native { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.oxi-check-row { position: relative; display: inline-flex; align-items: flex-start; gap: 10px; min-height: 24px; padding: 2px 0; cursor: pointer; color: var(--ink);
                 font: 400 15px/22px var(--font); -webkit-tap-highlight-color: transparent; }
.oxi-check-row.before { flex-direction: row-reverse; justify-content: flex-end; }
.oxi-check-row.before.spread { justify-content: space-between; width: 100%; }
.oxi-check-text { display: flex; flex-direction: column; min-width: 0; }
.oxi-check-text small { color: var(--ink-muted); font-size: 13px; line-height: 18px; }
.oxi-field.disabled .oxi-check-row, .oxi-radio-item.off { cursor: not-allowed; opacity: .55; }
.oxi-field.readonly .oxi-check-row { cursor: default; }

.oxi-tick { display: grid; place-items: center; flex: none; width: 20px; height: 20px; margin-top: 1px; border: 1.5px solid var(--line-strong); border-radius: 5px;
            background: var(--surface-200); transition: background .12s, border-color .12s, box-shadow .12s; }
.oxi-tick svg { fill: none; stroke: var(--on-brand); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16;
                transition: stroke-dashoffset .18s var(--ease-out); }
.oxi-check-row:hover .oxi-tick { border-color: var(--brand); }
.oxi-native:checked + .oxi-tick, .oxi-tick.mixed { background: var(--brand); border-color: var(--brand); }
.oxi-native:checked + .oxi-tick svg, .oxi-tick.mixed svg { stroke-dashoffset: 0; }
.oxi-native:focus-visible + .oxi-tick, .oxi-native:focus-visible + .oxi-track, .oxi-native:focus-visible + .oxi-dot { box-shadow: 0 0 0 3px var(--brand-soft); outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.oxi-field.invalid .oxi-tick { border-color: var(--danger); }
.oxi-field.sm .oxi-tick { width: 16px; height: 16px; border-radius: 4px; margin-top: 3px; }
.oxi-field.lg .oxi-tick { width: 24px; height: 24px; margin-top: -1px; }

.oxi-track { position: relative; display: inline-flex; align-items: center; flex: none; width: 40px; height: 24px; border-radius: 12px; background: var(--line-strong);
             transition: background .18s; }
.oxi-track.words { width: 58px; }
.oxi-thumb { position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
             transition: transform .2s var(--ease-out); }
.oxi-native:checked + .oxi-track { background: var(--brand); }
.oxi-native:checked + .oxi-track .oxi-thumb { transform: translateX(16px); }
.oxi-native:checked + .oxi-track.words .oxi-thumb { transform: translateX(34px); }
.oxi-track-text { width: 100%; padding: 0 8px 0 26px; color: #fff; font: 700 10px/1 var(--font); letter-spacing: .04em; text-align: left; }
.oxi-native:checked + .oxi-track .oxi-track-text { padding: 0 26px 0 9px; color: var(--on-brand); }
.oxi-check-row:active .oxi-thumb { width: 22px; }
.oxi-field.sm .oxi-track { width: 32px; height: 18px; } .oxi-field.sm .oxi-thumb { width: 14px; height: 14px; top: 2px; left: 2px; }
.oxi-field.sm .oxi-native:checked + .oxi-track .oxi-thumb { transform: translateX(14px); }
.oxi-field.sm .oxi-check-row { font-size: 14px; }

.oxi-radio-list { display: flex; gap: var(--space-2) var(--space-6); }
.oxi-radio-list.col { flex-direction: column; gap: var(--space-2); }
.oxi-radio-list.row { flex-wrap: wrap; }
.oxi-radio-item { position: relative; display: inline-flex; align-items: flex-start; gap: 10px; padding: 2px 0; cursor: pointer; line-height: 22px; }
.oxi-dot { position: relative; flex: none; width: 20px; height: 20px; margin-top: 1px; border: 1.5px solid var(--line-strong); border-radius: 50%; background: var(--surface-200);
           transition: border-color .12s; }
.oxi-dot::after { content: ""; position: absolute; inset: 3.5px; border-radius: 50%; background: var(--brand); transform: scale(0); transition: transform .16s var(--ease-out); }
.oxi-radio-item:hover .oxi-dot { border-color: var(--brand); }
.oxi-native:checked + .oxi-dot { border-color: var(--brand); }
.oxi-native:checked + .oxi-dot::after { transform: scale(1); }
.oxi-field.invalid .oxi-dot { border-color: var(--danger); }
/* radio cards */
.oxi-radio-list.cards { display: grid; grid-template-columns: repeat(var(--cols, auto-fill), minmax(220px, 1fr)); gap: var(--space-3); }
.oxi-radio-list.cards .oxi-radio-item { padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-200);
                                        transition: border-color .12s, box-shadow .12s, transform .12s; }
.oxi-radio-list.cards .oxi-radio-item:hover:not(.off) { border-color: var(--brand); transform: translateY(-1px); }
.oxi-radio-list.cards .oxi-radio-item.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: color-mix(in srgb, var(--brand-soft) 45%, var(--surface-200)); }
.oxi-radio-list.cards .oxi-radio-item:has(.oxi-native:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.oxi-radio-list.cards .oxi-radio-item { padding-right: 44px; }
.oxi-radio-list.cards .oxi-dot { position: absolute; top: 14px; right: 14px; margin: 0; }
.oxi-radio-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-strong); }
.oxi-radio-logo { flex: none; width: 40px; height: 40px; border-radius: 10px; object-fit: contain; } /* C89: a product's own logo on a card radio */
.oxi-radio-list.cards .oxi-check-text small { line-height: 1.4; }
.oxi-radio-list.cards .oxi-check-text > span:first-child { font-weight: 600; }

/* ---- OTP boxes ---- */
.oxi-otp-boxes { display: flex; align-items: center; gap: var(--space-2); }
.oxi-otp-box, .oxi-otp-box:hover, .oxi-otp-box:focus { width: 44px; height: 52px; padding: 0; text-align: center; font: 600 22px var(--font); font-variant-numeric: tabular-nums;
                caret-color: var(--brand); }
.v-filled .oxi-otp-box { border-color: transparent; background: var(--surface-300); }
.v-filled .oxi-otp-box:focus { background: var(--surface-200); border-color: var(--brand); }
.v-underlined .oxi-otp-box { border-width: 0 0 2px; border-radius: 0; background: transparent; box-shadow: none !important; }
.v-underlined .oxi-otp-box:focus { border-color: var(--brand); }
.oxi-otp-box:not(:placeholder-shown) { border-color: var(--brand); }
.oxi-otp-box::placeholder { color: var(--line-strong); }
.oxi-field.invalid .oxi-otp-box { border-color: var(--danger); }
.oxi-otp-sep { color: var(--ink-muted); font-weight: 600; }
@media (max-width: 420px) { .oxi-otp-boxes { gap: 6px; } .oxi-otp-box, .oxi-otp-box:focus { width: 40px; height: 48px; font-size: 20px; } }

/* ---- slider ---- */

.oxi-rail { position: relative; grid-area: 1 / 1; align-self: center; height: 6px; margin: 0 calc(var(--thumb) / 2); border-radius: 3px; background: var(--surface-300);
            box-shadow: inset 0 0 0 1px var(--line); }
.oxi-fill { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: inherit; background: var(--brand); }

.oxi-field.disabled .oxi-fill { background: var(--line-strong); }
/* two thumbs on one line: the inputs ignore the pointer except on their thumbs */

.oxi-bubble { position: absolute; top: 0; left: calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--a) / 100); transform: translateX(-50%); z-index: 3; padding: 2px 8px;
              border-radius: 6px; background: var(--ink); color: var(--surface-200); font: 600 12px/18px var(--font); font-variant-numeric: tabular-nums; white-space: nowrap;
              pointer-events: none; transition: opacity .12s, transform .12s; }
.oxi-bubble::after { content: ""; position: absolute; left: 50%; bottom: -4px; margin-left: -4px; border: 4px solid transparent; border-bottom: 0; border-top-color: var(--ink); }
.oxi-bubble.b { left: calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--b) / 100); }

.oxi-tick-mark { position: absolute; left: calc(var(--p) * 1%); top: 0; width: 1px; height: 5px; background: var(--line-strong); }
.oxi-tick-mark.big { height: 8px; }

.oxi-tick-label { position: absolute; top: 9px; left: 0; transform: translateX(-50%); color: var(--ink-muted); font-size: 11.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }

.oxi-tick-mark:first-child .oxi-tick-label { transform: translateX(-2px); }
.oxi-tick-mark:last-child .oxi-tick-label { transform: translateX(calc(-100% + 2px)); }

/* ---- rating ---- */

                        /* while dragging: filled up to the star under the pointer */

.oxi-field.disabled .oxi-rating { opacity: .5; }

/* ---- colour picker ---- */
.oxi-cp { position: relative; display: inline-flex; flex-direction: column; align-items: flex-start; }
.oxi-cp-button { display: inline-flex; align-items: center; gap: var(--space-2); height: 40px; padding: 0 var(--space-2) 0 6px; border: 1px solid var(--line-strong);
                 border-radius: var(--radius-md); background: var(--surface-200); color: var(--ink); font: 500 14px var(--font); cursor: pointer; }
.oxi-cp-button:hover:not(:disabled) { border-color: var(--ink-muted); }
.oxi-cp-button:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.oxi-cp-button:disabled { opacity: .55; cursor: not-allowed; }
.oxi-cp-chip { width: 28px; height: 28px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
               background: linear-gradient(var(--c), var(--c)), repeating-conic-gradient(#ccc 0 25%, #fff 0 50%) 0 0 / 10px 10px; }
.oxi-cp-code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.oxi-cp-panel { width: 260px; max-width: calc(100vw - 32px); padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-200);
                display: flex; flex-direction: column; gap: var(--space-3); --hue: 160; --s: 50; --v: 50; --solid: var(--brand); --pick: var(--brand); }
.oxi-cp-panel.oxi-pop { position: fixed; z-index: 125; left: -9999px; top: -9999px; box-shadow: var(--shadow-pop), 0 12px 32px -12px rgba(0, 0, 0, .3); }
.oxi-cp-panel.oxi-pop.placed { animation: oxm-in .14s var(--ease-out) both; }
.oxi-cp-area { position: relative; height: 150px; border-radius: 8px; cursor: crosshair; touch-action: none;
               background: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, hsl(var(--hue) 100% 50%)); }
.oxi-cp-area:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.oxi-cp-knob { position: absolute; left: calc(var(--s) * 1%); top: calc(100% - var(--v) * 1%); width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 2px solid #fff;
               border-radius: 50%; background: var(--solid); box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .3); pointer-events: none; }
.oxi-cp-row { display: flex; align-items: center; gap: var(--space-3); }
.oxi-cp-preview { flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
                  background: repeating-conic-gradient(#ccc 0 25%, #fff 0 50%) 0 0 / 10px 10px; }
.oxi-cp-preview span { display: block; width: 100%; height: 100%; background: var(--pick); }
.oxi-cp-sliders { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.oxi-cp-hue, .oxi-cp-alpha { width: 100%; height: 12px; margin: 0; border-radius: 6px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.oxi-cp-hue { background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); }
.oxi-cp-alpha { background: linear-gradient(to right, transparent, var(--solid)), repeating-conic-gradient(#ccc 0 25%, #fff 0 50%) 0 0 / 8px 8px; }
.oxi-cp-hue::-webkit-slider-thumb, .oxi-cp-alpha::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border: 2px solid #fff; border-radius: 50%;
                                                                         background: transparent; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 1px 3px rgba(0, 0, 0, .3); }
.oxi-cp-hue::-moz-range-thumb, .oxi-cp-alpha::-moz-range-thumb { width: 14px; height: 14px; border: 2px solid #fff; border-radius: 50%; background: transparent;
                                                                 box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); }
.oxi-cp-hue:focus-visible, .oxi-cp-alpha:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.oxi-cp-hexrow { display: flex; align-items: center; gap: var(--space-2); color: var(--ink-muted); font-size: 13px; font-weight: 500; }
.oxi-cp-hex, .oxi-cp-hex:focus { flex: 1; height: 34px !important; font-size: 14px !important; text-transform: uppercase; }
.oxi-cp-swatches { display: grid; grid-template-columns: repeat(var(--cols, 8), 1fr); gap: 6px; }
.oxi-cp-swatch { position: relative; aspect-ratio: 1; min-width: 22px; padding: 0; border: 0; border-radius: 6px; background: var(--c); cursor: pointer;
                 box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); transition: transform .1s; }
.oxi-cp-swatch:hover { transform: scale(1.12); z-index: 1; }
.oxi-cp-swatch:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.oxi-cp-swatch.on { box-shadow: 0 0 0 2px var(--surface-200), 0 0 0 4px var(--ink); }
.oxi-cp-foot { display: flex; align-items: center; gap: var(--space-2); }
.oxi-cp-foot .grow { flex: 1; }

/* ---- file upload ---- */
.oxi-up-zone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: var(--space-6) var(--space-4); text-align: center;
               border: 1.5px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--surface-100); color: var(--ink);
               transition: border-color .15s, background .15s, transform .15s; }
.oxi-up-zone:hover, .oxi-up-zone:focus-within { border-color: var(--brand); background: color-mix(in srgb, var(--brand-soft) 40%, var(--surface-100)); }
.oxi-up-zone:focus-within { box-shadow: 0 0 0 3px var(--brand-soft); }
.oxi-up-zone.over { border-color: var(--brand); border-style: solid; background: var(--brand-soft); transform: scale(1.01); }
.oxi-up-zone.off { opacity: .55; }
.oxi-up-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.oxi-up-input:disabled { cursor: not-allowed; }
.oxi-up-input.spent { display: none; }
.oxi-up-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); margin-bottom: 4px; }
.oxi-up-zone.over .oxi-up-icon { animation: oxi-bob .6s ease-in-out infinite alternate; }
@keyframes oxi-bob { to { transform: translateY(-4px); } }
.oxi-up-browse { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.oxi-up-list { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.oxi-up-item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-2) var(--space-2) var(--space-2); border: 1px solid var(--line);
               border-radius: var(--radius-md); background: var(--surface-200); animation: ox-pop .2s var(--ease-out) both; }
.oxi-up-item.s-failed, .oxi-up-item.s-refused { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); background: color-mix(in srgb, var(--danger-soft) 35%, var(--surface-200)); }
.oxi-up-thumb { flex: none; width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--surface-300); }
.oxi-up-thumb.icon { display: grid; place-items: center; color: var(--ink-muted); }
.oxi-up-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.oxi-up-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.oxi-up-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; color: var(--ink-muted); font-size: 12.5px; }
.oxi-up-sub .ok { color: var(--tone-success); display: inline-flex; align-items: center; gap: 3px; }
:root[data-theme="dark"] .oxi-up-sub .ok { color: var(--tone-success); }
.oxi-up-sub .bad { color: var(--danger); font-weight: 500; }
.oxi-up-actions { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-2); }

/* ---- signature pad: always paper-white with dark ink ---- */

.oxi-field.invalid .oxi-sign-pad { border-color: var(--danger); }

/* ---- speech to text ---- */

@keyframes oxi-listen { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--danger) 45%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }

.oxi-box.multi .oxi-stt { position: absolute; right: 8px; bottom: 8px; }
.oxi-box.multi .oxi-stt .oxi-stt-live { position: absolute; right: calc(100% + 6px); max-width: 260px; }

/* ---- tooltips on the small icon buttons and swatches ---- */
:is(.oxi-icon-btn, .oxi-cp-swatch)[data-tip] { position: relative; }
:is(.oxi-icon-btn, .oxi-cp-swatch)[data-tip]::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; z-index: 95; transform: translate(-50%, 4px); padding: 4px 8px; border-radius: 6px;
  background: var(--ink); color: var(--surface-200); font: 500 12px/16px var(--font); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s, transform .12s; }
:is(.oxi-icon-btn, .oxi-cp-swatch)[data-tip]:is(:hover, :focus-visible)::after { opacity: 1; transform: translate(-50%, 0); transition-delay: .3s; }

/* inside forms laid out in columns, a field marked "wide" spans the row; long controls fill their cell */
.grid-form > .oxi-field { align-self: start; }
.grid-form > .oxi-field.wide { grid-column: 1 / -1; }
.oxd-body .oxi-box .oxi-input { font-size: 15px; }
@media (max-width: 640px) {
  .oxi-box .oxi-input, .oxi-box .oxi-input:focus, .oxd-body .oxi-box .oxi-input { font-size: 16px; }       /* no zoom-in on iPhone */
  .oxi-radio-list.cards { grid-template-columns: 1fr; }
  .oxi-field .ox-btn.quiet.small span, .oxi-cp-panel .ox-btn.quiet.small span { display: inline; }   /* app.css hides these words on phones (top bar) */
  .oxi-cp-panel.oxi-pop { width: min(300px, calc(100vw - 24px)); }
  :is(.oxi-icon-btn, .oxi-cp-swatch)[data-tip]::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .oxi-field *, .oxi-field *::before, .oxi-field *::after { animation: none !important; transition: none !important; }
}
@media print { .oxi-icon-btn, .oxi-up-zone { display: none !important; } .oxi-box { border-color: #999; box-shadow: none; } }

/* ---- the showcase page ---- */

/* pass 9.9: inside the older ".form" layout (e.g. HsFormDialog) the generic "label = column" and "input = 40 px box" rules must not
   reshape the controls' own labels, rows and inputs */
.form .oxi-field label.oxi-label, .form .oxi-field legend.oxi-label { display: block; gap: 0; font: 500 13px/18px var(--font); color: var(--ink-muted); }
.form .oxi-field label.oxi-check-row, .form .oxi-field label.oxi-radio-item { flex-direction: row; gap: 10px; color: var(--ink); font-size: 15px; font-weight: 400; }
.form .oxi-field label.oxi-check-row.before { flex-direction: row-reverse; }
.form .oxi-box label.oxi-float { display: block; font-size: 15px; font-weight: 400; color: var(--ink-muted); }
.form label.oxi-cp-hexrow { flex-direction: row; align-items: center; }
.form input.oxi-otp-box { width: 44px; height: 52px; padding: 0; }
.form .v-underlined input.oxi-otp-box { border-width: 0 0 2px; border-radius: 0; background: transparent; }
.form .v-filled input.oxi-otp-box { border-color: transparent; background: var(--surface-300); }
.form input.oxi-range, .form input.oxi-cp-hue, .form input.oxi-cp-alpha { padding: 0; border: 0; border-radius: 6px; }
.form input.oxi-range { height: 28px; background: transparent; }
.form input.oxi-cp-hue, .form input.oxi-cp-alpha { height: 12px; }
.form input.oxi-cp-hue { background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); }
.form input.oxi-cp-alpha { background: linear-gradient(to right, transparent, var(--solid)), repeating-conic-gradient(#ccc 0 25%, #fff 0 50%) 0 0 / 8px 8px; }

/* ===== from HotelSimplify card.css ===== */
/* Pass 9.5: HsCard and HsDialog. Uses the design tokens in app.css (Day and Night shift). */

/* ---- card ---- */
.ox-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface-200); border: 1px solid var(--line);
           border-radius: var(--radius-lg); box-shadow: var(--shadow-1); overflow: hidden; color: var(--ink); }
.ox-card.clickable { cursor: pointer; transition: transform .2s var(--ease-out), box-shadow .2s, border-color .2s; }
.ox-card.clickable:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.ox-card.clickable:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.ox-card.horizontal { flex-direction: row; }
.ox-card.horizontal > .ox-card-image { flex: 0 0 38%; margin: 0; }
.ox-card.horizontal > .ox-card-image img { height: 100%; aspect-ratio: auto; }
.ox-card.horizontal > .ox-card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ox-card-header { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-4) var(--space-6) var(--space-2); }
.ox-card-heading { flex: 1; min-width: 0; }
.ox-card-title { margin: 0; font-size: 18px; line-height: 26px; font-weight: 600; overflow-wrap: anywhere; }
.ox-card-sub { margin: 2px 0 0; color: var(--ink-muted); font-size: 14px; line-height: 20px; }
.ox-card-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-300); color: var(--ink-muted); }
.ox-card-icon.tone-primary { background: var(--brand-soft); color: var(--brand); }
.ox-card-icon.tone-danger { background: var(--danger-soft); color: var(--danger); }
.ox-card-icon.tone-warning { background: var(--warning-soft); color: var(--warning-ink); }
.ox-card-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.ox-card-image { position: relative; margin: 0; overflow: hidden; background: var(--surface-300); }
.ox-card-image img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ox-card-image figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-6) var(--space-4) var(--space-3); color: #fff; font-weight: 600;
                            background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }
.ox-card-content { padding: var(--space-2) var(--space-6) var(--space-4); min-width: 0; }
.ox-card-content > p:last-child { margin-bottom: 0; }
.ox-card-footer { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: auto; padding: var(--space-3) var(--space-6);
                  border-top: 1px solid var(--line); background: var(--surface-100); }
.ox-card-footer.align-end { justify-content: flex-end; }
.ox-card-footer.align-start { justify-content: flex-start; }
.ox-card-footer.align-spread { justify-content: space-between; }
.ox-card-footer.align-stretch > * { flex: 1; }
.ox-card-footer .ox-btn { min-width: 96px; }
.ox-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-6); }

/* ---- dialog: overlay and the card centred on the screen ---- */
html.oxd-lock, html.oxd-lock body { overflow: hidden; }
.oxd { position: fixed; inset: 0; z-index: 100; }
.oxd-overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
               animation: ox-fade .18s ease-out both; }
.oxd-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none;
            padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.oxd-panel { pointer-events: auto; width: 100%; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); outline: none;
             box-shadow: 0 24px 64px -16px rgba(0, 0, 0, .45), 0 2px 8px rgba(0, 0, 0, .12); animation: oxd-in .22s var(--ease-out) backwards; }
.oxd-panel.size-small { max-width: 420px; }
.oxd-panel.size-medium { max-width: 560px; }
.oxd-panel.size-large { max-width: 760px; }
.oxd-panel.size-extralarge { max-width: 980px; }
.oxd-panel.size-full { max-width: none; height: calc(100dvh - 32px); }
.oxd.closing .oxd-overlay { animation: ox-fade .16s ease-in reverse both; }
.oxd.closing .oxd-panel { animation: oxd-out .16s ease-in both; }
.oxd-panel.nudge { animation: oxd-nudge .32s ease-in-out; }
@keyframes oxd-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes oxd-out { to { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes oxd-nudge { 0%, 100% { transform: none; } 30% { transform: scale(1.015); } 60% { transform: scale(.995); } }
.oxd-panel > .ox-card-header { flex: none; padding-top: var(--space-6); }
.oxd-close { flex: none; margin: -6px -10px 0 0; }
.oxd-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding-top: var(--space-3); padding-bottom: var(--space-6); }
.oxd-footer { flex: none; }
.oxd-footer-start { margin-right: auto; display: flex; gap: var(--space-2); }
.oxd-progress { position: absolute; top: 0; left: 0; right: 0; height: 3px; overflow: hidden; background: var(--brand-soft); z-index: 2; }
.oxd-progress::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--brand); animation: oxg-slide 1s ease-in-out infinite; }
.oxd-spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: oxd-spin .7s linear infinite; }
@keyframes oxd-spin { to { transform: rotate(360deg); } }
.oxd-message { margin: 0 0 var(--space-3); color: var(--ink); }
.oxd-confirm .oxd-body { padding-bottom: var(--space-4); }
.oxd-phrase { display: flex; flex-direction: column; gap: var(--space-1); font-size: 14px; color: var(--ink-muted); }
.oxd-phrase strong { color: var(--ink); font-family: ui-monospace, Consolas, monospace; }
.oxd-form { margin: 0; }
.oxd-body .banner { margin-top: 0; }
.ox-btn.solid-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.ox-btn.solid-danger:hover:not(:disabled) { background: color-mix(in srgb, var(--danger) 85%, #000); border-color: color-mix(in srgb, var(--danger) 85%, #000);
                                         box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--danger) 60%, transparent); }
.ox-btn.solid-warning { background: var(--warning); border-color: var(--warning); color: var(--ink); }
.ox-btn.solid-warning:hover:not(:disabled) { background: color-mix(in srgb, var(--warning) 88%, #000); }
.oxd [data-tip] { position: relative; }
.oxd [data-tip]::after { content: attr(data-tip); position: absolute; top: calc(100% + 6px); right: 0; padding: 3px 8px; border-radius: 6px; background: var(--ink);
                         color: var(--surface-200); font: 500 12px/16px var(--font); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; }
.oxd [data-tip]:hover::after, .oxd [data-tip]:focus-visible::after { opacity: 1; transition-delay: .3s; }

/* phones: still centred, a little closer to the edges, buttons share the width, fields in one column */
@media (max-width: 640px) {
  .oxd-wrap { padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); }
  .oxd-panel { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 16px; }
  .oxd-panel.size-full { height: calc(100dvh - 24px); }
  .ox-card-header { padding: var(--space-4) var(--space-4) var(--space-2); }
  .oxd-panel > .ox-card-header { padding-top: var(--space-4); }
  .ox-card-content { padding-left: var(--space-4); padding-right: var(--space-4); }
  .ox-card-footer { padding: var(--space-3) var(--space-4); padding-bottom: max(var(--space-3), env(safe-area-inset-bottom)); }
  .oxd-footer > .ox-btn { flex: 1 1 0; min-width: 0; height: 44px; }
  .oxd-footer-start { flex-basis: 100%; }
  .oxd-body .grid-form { grid-template-columns: 1fr; }
  .oxd-body input, .oxd-body select, .oxd-body textarea { font-size: 16px !important; }   /* no zoom-in on iPhone */
  .ox-card.horizontal { flex-direction: column; }
  .ox-card.horizontal > .ox-card-image { flex-basis: auto; }
  .oxd [data-tip]::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .oxd-overlay, .oxd-panel { animation: none !important; } }
@media print { .oxd { display: none !important; } }

/* ===== from HotelSimplify grid.css ===== */
/* Pass 9.3: HsGrid, the HotelSimplify data grid. Uses the design tokens from app.css (Day and Night shift). */
.oxg { --oxg-row: 40px; --oxg-head: 44px; position: relative; display: flex; flex-direction: column; background: var(--surface-200);
       border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); margin: var(--space-2) 0 var(--space-4); min-width: 0; }
.oxg.dense { --oxg-row: 32px; --oxg-head: 38px; }

/* toolbar */
.oxg-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); }
.oxg-title { display: flex; align-items: baseline; gap: var(--space-2); flex-wrap: wrap; min-width: 0; }
.oxg-title strong { font-size: 16px; }
.oxg-count { font-size: 13px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.oxg-selected { display: inline-flex; align-items: center; gap: 6px; padding: 0 var(--space-2); border-radius: var(--radius-pill); background: var(--brand-soft);
                color: var(--ink); font-size: 12px; font-weight: 600; line-height: 22px; }
.oxg-spacer { flex: 1; }
.oxg-search { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 var(--space-2); border: 1px solid var(--line); border-radius: var(--radius-md);
              background: var(--surface-100); color: var(--ink-muted); min-width: 220px; transition: border-color .15s, box-shadow .15s; }
.oxg-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); background: var(--surface-200); }
.oxg-search input, .oxg-search input:focus { border: 0 !important; box-shadow: none !important; background: transparent !important; height: 30px !important; padding: 0 !important; flex: 1; min-width: 0; }
.oxg-search.small { min-width: 0; width: 100%; height: 32px; }
.oxg-link { border: 0; background: none; padding: 0; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.oxg-link.danger { color: var(--danger); }
.oxg-hint { color: var(--ink-muted); font-size: 12px; }
.oxg-hint.pad { padding: 0 var(--space-4) var(--space-3); margin: 0; }

/* group panel */

/* messages */
.oxg-msg { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-4); font-size: 14px; border-bottom: 1px solid var(--line); animation: ox-pop .2s var(--ease-out) both; }
.oxg-msg .oxg-link { margin-left: auto; font-weight: 500; }
.oxg-msg.error { background: var(--danger-soft); } .oxg-msg.error > .icon { color: var(--danger); }
.oxg-msg.ok { background: var(--brand-soft); } .oxg-msg.ok > .icon { color: var(--brand); }
.oxg-msg.info { background: var(--warning-soft); color: var(--warning-ink); }
.oxg-msg.info .oxg-link { margin-left: var(--space-2); color: inherit; }

/* the scrolling table */
.oxg-scroll { position: relative; overflow: auto; min-height: 0; overscroll-behavior: contain; }
.oxg-scroll.fixed { overflow-y: auto; }
.oxg-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 14px; margin: 0; box-shadow: none !important;
             border: 0 !important; border-radius: 0 !important; overflow: visible !important; background: transparent; }
.oxg-table thead th { position: sticky; top: 0; z-index: 3; background: var(--surface-300); border-bottom: 1px solid var(--line); text-align: left; padding: 0; }
.oxg-table thead tr.oxg-filterbar th { top: var(--oxg-head); background: var(--surface-200); padding: 4px 6px; z-index: 3; }
.oxg-th { height: var(--oxg-head); position: sticky; user-select: none; }
.oxg-th[draggable="true"] { cursor: grab; }
.oxg-th.dragging { opacity: .5; }
.oxg-th-inner { display: flex; align-items: center; height: 100%; }
.oxg-sort { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; height: 100%; padding: 0 var(--space-1) 0 var(--space-3); border: 0; background: none;
            font: 600 12px/16px var(--font); letter-spacing: .03em; text-transform: uppercase; color: var(--ink-muted); cursor: pointer; text-align: inherit; }
.oxg-sort:disabled { cursor: default; color: var(--ink-muted); }
.oxg-sort:not(:disabled):hover { color: var(--ink); }
.al-right .oxg-sort { justify-content: flex-end; }
.al-center .oxg-sort { justify-content: center; }
.oxg-th-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oxg-th.sorted .oxg-sort { color: var(--ink); }
.oxg-sort-ind { display: inline-flex; align-items: center; color: var(--brand); flex: none; }
.oxg-sort-ind sup { font-size: 10px; font-weight: 700; margin-left: 1px; }
.oxg-menu-btn { flex: none; width: 26px; height: 26px; margin-right: var(--space-2); display: grid; place-items: center; border: 0; border-radius: var(--radius-sm);
                background: none; color: var(--ink-muted); cursor: pointer; opacity: 0; transition: opacity .12s, background-color .12s; }
.oxg-th:hover .oxg-menu-btn, .oxg-menu-btn:focus-visible, .oxg-menu-btn.on { opacity: 1; }
.oxg-menu-btn:hover { background: var(--surface-200); color: var(--ink); }
.oxg-menu-btn.on { color: var(--surface-200); background: var(--brand); }

.oxg-th:hover .oxg-resizer::after { background: var(--brand); top: 0; bottom: 0; width: 2px; }

.oxg-filterbar input, .oxg-filterbar select { width: 100%; height: 30px !important; padding: 0 var(--space-2) !important; font-size: 13px !important; border-radius: var(--radius-sm) !important;
                                             border-color: var(--line) !important; background: var(--surface-100); font-weight: 400; text-transform: none; }
.oxg-filterbar input:not(:placeholder-shown), .oxg-filterbar select:has(option:checked:not([value=""])) { border-color: var(--brand) !important; background: var(--brand-soft); }

/* rows and cells */
.oxg-row td { height: var(--oxg-row); padding: 0 var(--space-3); border-bottom: 1px solid var(--line); background: var(--surface-200); vertical-align: middle;
              white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background-color .1s; }
.oxg-row:hover td { background: color-mix(in srgb, var(--surface-300) 60%, var(--surface-200)); }
.oxg-row.selected td { background: color-mix(in srgb, var(--brand-soft) 85%, var(--surface-200)); }
.oxg-row.selected td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.oxg-text { overflow: hidden; text-overflow: ellipsis; }
.al-right { text-align: right; font-variant-numeric: tabular-nums; }
.al-center { text-align: center; }
.oxg-cell { position: relative; outline: none; scroll-margin-top: calc(var(--oxg-head) * 2); scroll-margin-bottom: 8px; }
.oxg-cell:focus-visible, .oxg-cell.active:focus { outline: none; }
.selectable:not(.editable) .oxg-row { cursor: pointer; }
.editable .oxg-cell { cursor: cell; }
.editable .oxg-cell.active { box-shadow: inset 0 0 0 2px var(--brand); z-index: 1; }
.oxg:not(.editable) .oxg-cell.active { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 50%, transparent); }
.oxg:not(:focus-within) .oxg-cell.active { box-shadow: none; }
.oxg-cell.in-range { background: color-mix(in srgb, var(--brand-soft) 75%, var(--surface-200)) !important; }
.oxg-cell.readonly { color: var(--ink-muted); }
.oxg-cell.dirty { background: color-mix(in srgb, var(--warning-soft) 70%, var(--surface-200)); }
.oxg-cell.dirty::before { content: ""; position: absolute; top: 0; right: 0; border: 5px solid transparent; border-top-color: var(--warning); border-right-color: var(--warning); }
.oxg-cell.invalid { background: var(--danger-soft) !important; box-shadow: inset 0 0 0 1px var(--danger); }
.oxg-cell.invalid::before { border-top-color: var(--danger); border-right-color: var(--danger); }
.oxg-cell.editing { padding: 0 !important; box-shadow: inset 0 0 0 2px var(--brand); overflow: visible; }

.oxg-row.added td { background: color-mix(in srgb, var(--brand-soft) 45%, var(--surface-200)); }
.oxg-row.added td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.oxg-row.deleted td { text-decoration: line-through; color: var(--ink-muted); background: color-mix(in srgb, var(--danger-soft) 60%, var(--surface-200)); }
.oxg-row.deleted td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
.oxg-bool { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-strong); color: var(--on-brand); vertical-align: middle; }
.oxg-bool.on { background: var(--brand); border-color: var(--brand); }
.oxg-check { width: 44px; text-align: center !important; padding: 0 !important; }
.oxg-check input { margin: 0; vertical-align: middle; }
.oxg-table .frozen { position: sticky; z-index: 2; }
.oxg-table thead .frozen { z-index: 4; }
.oxg-table td.frozen { box-shadow: 1px 0 0 var(--line); }
.oxg-skeleton td { height: var(--oxg-row); }
.oxg-skeleton .sk { display: block; height: 12px; border-radius: 6px; }
.oxg-empty td { padding: var(--space-6) var(--space-4); border-bottom: 0; white-space: normal; }
.oxg-empty .empty-state { margin: 0; border: 0; background: none; justify-content: center; }

/* groups */

/* footer aggregates */
.oxg-table tfoot td { position: sticky; bottom: 0; z-index: 2; height: var(--oxg-row); padding: 0 var(--space-3); background: var(--surface-300); border-top: 2px solid var(--line-strong);
                      font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.oxg-agg-label { display: block; font-size: 10px; line-height: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-muted); }
.oxg-agg { line-height: 18px; }

/* loading */
.oxg-loading-bar { position: sticky; top: 0; left: 0; height: 2px; margin-bottom: -2px; z-index: 6; overflow: hidden; background: var(--brand-soft); }
.oxg-loading-bar::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--brand); animation: oxg-slide 1s ease-in-out infinite; }
@keyframes oxg-slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.oxg-sentinel { display: flex; align-items: center; justify-content: center; gap: var(--space-2); padding: var(--space-3); color: var(--ink-muted); font-size: 13px; }

/* pending edits */

/* pager */
.oxg-pager { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); padding: var(--space-2) var(--space-4); border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-muted); }
.oxg-pagesize { display: inline-flex; align-items: center; gap: var(--space-2); }
.oxg-pagesize select { height: 30px !important; padding: 0 var(--space-2) !important; font-size: 13px !important; }
.oxg-range { font-variant-numeric: tabular-nums; }
.oxg-pages { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; }
.oxg-pages .icon-btn { height: 32px; min-width: 32px; }
.oxg-pages .icon-btn:disabled { opacity: .35; cursor: default; background: none; }
.oxg-page { min-width: 32px; height: 32px; padding: 0 var(--space-2); border: 0; border-radius: var(--radius-md); background: none; color: var(--ink); font: 500 13px var(--font);
            cursor: pointer; font-variant-numeric: tabular-nums; }
.oxg-page:hover { background: var(--surface-300); }
.oxg-page.on { background: var(--brand); color: var(--on-brand); }
.oxg-gap { padding: 0 4px; }

/* menus */
.oxg-backdrop { position: fixed; inset: 0; z-index: 80; }
.oxg-pop { position: fixed; z-index: 81; top: -9999px; left: -9999px; width: 260px; max-height: min(560px, 80vh); display: flex; flex-direction: column;
           background: var(--surface-200); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop), 0 16px 40px -12px rgba(0, 0, 0, .3);
           font-size: 14px; overflow: hidden; }
.oxg-pop.placed { animation: ox-pop .16s var(--ease-out) both; }
.oxg-pop.wide { width: 300px; }
.oxg-pop-head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4); border-bottom: 1px solid var(--line); }
.oxg-pop-head .icon-btn { height: 30px; min-width: 30px; }
.oxg-pop-actions { display: flex; flex-direction: column; padding: var(--space-1); border-bottom: 1px solid var(--line); }
.oxg-pop-actions:last-child { border-bottom: 0; }
.oxg-menu-item { display: flex; align-items: center; gap: var(--space-3); min-height: 36px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-md); background: none;
                 color: var(--ink); font: 400 14px var(--font); cursor: pointer; text-align: left; }
.oxg-menu-item:hover, .oxg-menu-item:focus-visible { background: var(--surface-300); }
.oxg-menu-item.on { color: var(--brand); font-weight: 600; }
.oxg-menu-item .icon { color: var(--ink-muted); }
.oxg-menu-item.tall { min-height: 56px; }
.oxg-menu-item.tall span:last-child { display: flex; flex-direction: column; line-height: 18px; }
.oxg-menu-item small { color: var(--ink-muted); font-size: 12px; }
.oxg-file { width: 36px; height: 40px; border-radius: 6px; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; flex: none; }
.oxg-file.xlsx { background: var(--tone-success); } .oxg-file.pdf { background: var(--danger); } .oxg-file.csv { background: var(--info); }
.oxg-pop-sec { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); min-height: 0; }
.oxg-pop-label { font-size: 12px; font-weight: 600; color: var(--ink-muted); }
.oxg-cond { display: flex; flex-direction: column; gap: var(--space-2); }
.oxg-cond select, .oxg-cond input { height: 34px !important; font-size: 14px !important; }
.oxg-values { display: flex; flex-direction: column; overflow-y: auto; max-height: 240px; padding: var(--space-1) 0; }
.oxg-value { display: flex; align-items: center; gap: var(--space-2); min-height: 30px; padding: 0 var(--space-2); border-radius: var(--radius-sm); cursor: pointer; color: var(--ink); font-size: 14px; }
.oxg-value:hover { background: var(--surface-300); }
.oxg-value.all { font-weight: 600; border-bottom: 1px solid var(--line); border-radius: 0; margin-bottom: 2px; }
.oxg-value span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oxg-value-count { color: var(--ink-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.oxg-pop > .oxg-values { padding: var(--space-2); }
.oxg-pop-foot { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-2); padding: var(--space-2) var(--space-3); background: var(--surface-100); }
.oxg-pop-foot .oxg-hint { margin-right: auto; }

@media (max-width: 640px) {
  .oxg-toolbar { padding: var(--space-2) var(--space-3); }
  .oxg-search { min-width: 0; flex: 1 1 100%; order: 10; }
  .oxg-toolbar .ox-btn span { display: none; }
  .oxg-pages .oxg-page:not(.on), .oxg-gap { display: none; }
  .oxg-pager { gap: var(--space-2); }
}
@media print {
  .oxg-toolbar, .oxg-pager, .oxg-filterbar, .oxg-menu-btn, .oxg-check { display: none !important; }
  .oxg { border: 0; box-shadow: none; }
  .oxg-scroll { max-height: none !important; height: auto !important; overflow: visible; }
}
.oxg-row.inactive td { color: var(--ink-muted); }

/* pass 9.4: the icon toolbar */
.oxg-tb { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-100); }
.oxg-tb:empty { display: none; }
.oxg-tb-sep { width: 1px; height: 20px; margin: 0 4px; background: var(--line); }
.oxg-tb-sep:first-child, .oxg-tb-sep:last-child, .oxg-tb-sep + .oxg-tb-sep { display: none; }
.oxg-tb-btn { position: relative; display: inline-grid; place-items: center; width: 34px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: transparent;
              color: var(--ink-muted); cursor: pointer; transition: background-color .12s, color .12s, transform .08s; }
.oxg-tb-btn:hover:not(:disabled) { background: var(--surface-200); color: var(--ink); box-shadow: var(--shadow-1); }
.oxg-tb-btn:active:not(:disabled) { transform: scale(.94); }
.oxg-tb-btn:disabled { opacity: .35; cursor: default; }
.oxg-tb-btn.on { background: var(--brand-soft); color: var(--brand); }
.oxg-tb-btn.primary:not(:disabled) { background: var(--brand); color: var(--on-brand); }
.oxg-tb-btn.primary:not(:disabled):hover { background: var(--brand-strong); color: var(--on-brand); }
.oxg-tb-btn.danger:not(:disabled):hover { background: var(--danger-soft); color: var(--danger); }
.oxg-tb-badge { position: absolute; top: 1px; right: 1px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px; background: var(--brand); color: var(--on-brand);
                font: 700 9px/15px var(--font); text-align: center; box-shadow: 0 0 0 2px var(--surface-100); }
.oxg-tb-badge.warning { background: var(--warning); color: #fff; }
.oxg-tb-file { position: relative; display: inline-grid; place-items: center; }
.oxg-tb-file .tag { position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%); padding: 0 2px; border-radius: 2px; font: 700 7px/9px var(--font);
                    letter-spacing: .02em; color: #fff; }
.oxg-tb-file .tag.exc { background: var(--tone-success); } .oxg-tb-file .tag.pdf { background: var(--danger); } .oxg-tb-file .tag.csv { background: var(--info); }
.oxg-clear { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 var(--space-2); border: 1px solid var(--brand); border-radius: var(--radius-pill);
             background: var(--brand-soft); color: var(--ink); font: 500 12px var(--font); cursor: pointer; }
.oxg-clear:hover { background: var(--surface-200); }

/* tooltips: on hover and keyboard focus, from data-tip */
.oxg [data-tip] { position: relative; }
.oxg [data-tip]::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); left: 50%; z-index: 90; transform: translate(-50%, -4px);
                         padding: 4px 8px; border-radius: 6px; background: var(--ink); color: var(--surface-200); font: 500 12px/16px var(--font); white-space: nowrap;
                         pointer-events: none; opacity: 0; transition: opacity .12s, transform .12s; box-shadow: var(--shadow-pop); }
.oxg [data-tip]:hover::after, .oxg [data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); transition-delay: .25s; }
.oxg .oxg-tb [data-tip]:last-child::after { left: auto; right: 0; transform: translateY(-4px); }
.oxg .oxg-tb [data-tip]:last-child:hover::after, .oxg .oxg-tb [data-tip]:last-child:focus-visible::after { transform: none; }
.oxg-filterbar th { animation: ox-pop .18s var(--ease-out) both; }
@media (max-width: 640px) { .oxg-tb { flex-wrap: wrap; } .oxg [data-tip]::after { display: none; } }
@media print { .oxg-tb, .oxg-clear { display: none !important; } }

/* ===== from HotelSimplify notify.css ===== */
/* Pass 9.7: notification controls: badge, message, progress bar, spinner, toast and skeleton. Design tokens from app.css. */

/* shared colours per severity: --n (strong), --n-soft (background), --n-ink (text on soft) */
.sev-normal { --n: var(--ink-muted); --n-soft: var(--surface-300); --n-ink: var(--ink); }
.sev-primary { --n: var(--brand); --n-soft: var(--brand-soft); --n-ink: var(--brand-strong); }
.sev-info { --n: var(--info); --n-soft: color-mix(in srgb, var(--info) 14%, var(--surface-200)); --n-ink: var(--info); }
.sev-success { --n: var(--tone-success); --n-soft: color-mix(in srgb, var(--tone-success) 14%, var(--surface-200)); --n-ink: color-mix(in srgb, var(--tone-success) 82%, #000); }
.sev-warning { --n: var(--warning); --n-soft: var(--warning-soft); --n-ink: var(--warning-ink); }
.sev-error { --n: var(--danger); --n-soft: var(--danger-soft); --n-ink: var(--danger); }
:root[data-theme="dark"] .sev-success { --n: var(--tone-success); --n-ink: var(--tone-success); }

/* ---- badge ---- */
.oxbadge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 6px; background: var(--n); color: #fff;
           font: 700 11px/1 var(--font); font-variant-numeric: tabular-nums; vertical-align: middle; white-space: nowrap; }
.oxbadge.sev-warning { color: var(--ink); }
.oxbadge.sev-normal { background: var(--surface-300); color: var(--ink); }
.oxbadge.soft { background: var(--n-soft); color: var(--n-ink); }
.oxbadge.shape-pill { border-radius: var(--radius-pill); padding: 0 8px; }
.oxbadge.shape-circle { border-radius: 50%; padding: 0; width: 20px; }
.oxbadge.shape-dot { min-width: 0; width: 10px; height: 10px; padding: 0; border-radius: 50%; }
.oxbadge-wrap { position: relative; display: inline-flex; vertical-align: middle; }
.oxbadge.overlay { position: absolute; top: -6px; right: -6px; z-index: 2; box-shadow: 0 0 0 2px var(--surface-200); border-radius: var(--radius-pill);
                   animation: ox-pop .2s var(--ease-out) both; }
.oxbadge.overlay.shape-dot { top: 2px; right: 2px; }
.oxbadge.pulse { animation: oxbadge-pulse 1.8s infinite; }
@keyframes oxbadge-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--n) 60%, transparent), 0 0 0 2px var(--surface-200); }
                            70% { box-shadow: 0 0 0 8px transparent, 0 0 0 2px var(--surface-200); }
                            100% { box-shadow: 0 0 0 0 transparent, 0 0 0 2px var(--surface-200); } }

/* ---- message ---- */
.oxmsg { display: flex; align-items: flex-start; gap: var(--space-3); margin: var(--space-3) 0; padding: var(--space-3) var(--space-4); border: 1px solid transparent;
         border-radius: var(--radius-md); background: var(--n-soft); color: var(--ink); animation: ox-pop .22s var(--ease-out) both; }
.oxmsg.var-outlined { background: var(--surface-200); border-color: var(--n); }
.oxmsg.var-filled { background: var(--n); color: #fff; }
.oxmsg.var-filled.sev-warning { color: var(--ink); }
.oxmsg.var-filled.sev-normal { background: var(--ink-muted); }
.oxmsg.dense { padding: var(--space-2) var(--space-3); font-size: 14px; }
.oxmsg.closing { animation: oxmsg-out .16s ease-in both; }
@keyframes oxmsg-out { to { opacity: 0; transform: translateY(-4px); } }
.oxmsg-icon { flex: none; display: inline-grid; margin-top: 2px; color: var(--n); }
.oxmsg.var-filled .oxmsg-icon { color: inherit; }
.oxmsg-body { flex: 1; min-width: 0; }
.oxmsg-title { display: block; margin-bottom: 2px; }
.oxmsg-text { overflow-wrap: anywhere; }
.oxmsg-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.oxmsg-close { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; margin: -3px -8px -3px 0; border: 0; border-radius: 6px;
               background: none; color: inherit; opacity: .7; cursor: pointer; }
.oxmsg-close:hover { opacity: 1; background: color-mix(in srgb, currentColor 12%, transparent); }

/* ---- progress bar ---- */
.oxpb.line { width: 100%; }
.oxpb-labels { display: flex; justify-content: space-between; gap: var(--space-2); margin-bottom: 6px; font-size: 13px; color: var(--ink-muted); }
.oxpb-labels strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.oxpb.line .oxpb-track { position: relative; display: block; width: 100%; overflow: hidden; border-radius: var(--radius-pill); background: var(--surface-300); }
.oxpb.line .oxpb-value, .oxpb.line .oxpb-buffer { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; transition: width .35s var(--ease-out); }
.oxpb.line .oxpb-value { background: var(--n); }
.oxpb.line .oxpb-buffer { background: color-mix(in srgb, var(--n) 30%, var(--surface-300)); }
.oxpb.line.indeterminate .oxpb-value { width: 35%; animation: oxpb-slide 1.3s ease-in-out infinite; }
@keyframes oxpb-slide { from { left: -35%; } to { left: 100%; } }
.oxpb.line.striped .oxpb-value { background-image: linear-gradient(45deg, rgba(255, 255, 255, .22) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .22) 50%,
                                 rgba(255, 255, 255, .22) 75%, transparent 75%); background-size: 16px 16px; }
.oxpb.line.striped.animated .oxpb-value { animation: oxpb-stripes .8s linear infinite; }
@keyframes oxpb-stripes { from { background-position: 0 0; } to { background-position: 16px 0; } }
.oxpb-segments { position: absolute; inset: 0; pointer-events: none;
                 background: repeating-linear-gradient(90deg, transparent 0 calc(100% / var(--segments) - 3px), var(--surface-200) calc(100% / var(--segments) - 3px) calc(100% / var(--segments))); }
.oxpb.circle { position: relative; display: inline-grid; place-items: center; width: var(--size); height: var(--size); vertical-align: middle; }
.oxpb.circle svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.oxpb.circle circle { fill: none; }
.oxpb.circle .oxpb-track { stroke: var(--surface-300); }
.oxpb.circle .oxpb-buffer { stroke: color-mix(in srgb, var(--n) 30%, var(--surface-300)); stroke-linecap: round; transition: stroke-dashoffset .35s var(--ease-out); }
.oxpb.circle .oxpb-value { stroke: var(--n); stroke-linecap: round; transition: stroke-dashoffset .35s var(--ease-out); }
.oxpb.circle.indeterminate svg { animation: oxspin-rot 1s linear infinite; }
.oxpb-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-size: calc(var(--size) * .2); line-height: 1.1;
               font-variant-numeric: tabular-nums; padding: 14%; overflow: hidden; }
.oxpb-center strong { font-size: 1em; }
.oxpb-center small { display: block; font-size: max(10px, calc(var(--size) * .1)); font-weight: 500; }
.oxpb-center br { display: none; }
@keyframes oxspin-rot { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }

/* ---- spinner ---- */
.oxspin { display: inline-block; width: 24px; height: 24px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--n) 22%, transparent); border-top-color: var(--n);
          animation: oxspin-turn .75s linear infinite; flex: none; }
.oxspin.size-small { width: 16px; height: 16px; border-width: 2px; }
.oxspin.size-large { width: 44px; height: 44px; border-width: 4px; }
@keyframes oxspin-turn { to { transform: rotate(360deg); } }
.oxspin-inline { display: inline-flex; align-items: center; gap: var(--space-2); vertical-align: middle; }
.oxspin-label { font-size: 14px; color: var(--ink-muted); }
.oxspin-overlay { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3);
                  border-radius: inherit; background: color-mix(in srgb, var(--surface-200) 72%, transparent); backdrop-filter: blur(1.5px); animation: ox-fade .15s both; }
.oxspin-overlay.full { position: fixed; z-index: 150; border-radius: 0; }

/* ---- skeleton ---- */
.oxsk { display: block; background-color: var(--surface-300); border-radius: 6px; }
.oxsk.text { height: 12px; margin: 6px 0; }
.oxsk.circle { border-radius: 50%; }
.oxsk.square { border-radius: var(--radius-md); }
.oxsk.rectangle { border-radius: var(--radius-md); }
.oxsk-lines { display: block; }
.oxsk.fx-wave { background-image: linear-gradient(90deg, transparent 0, color-mix(in srgb, var(--surface-200) 70%, transparent) 50%, transparent 100%);
                background-size: 300px 100%; background-repeat: no-repeat; animation: oxsk-wave 1.3s linear infinite; }
@keyframes oxsk-wave { from { background-position: -300px 0; } to { background-position: calc(100% + 300px) 0; } }
.oxsk.fx-pulse { animation: oxsk-pulse 1.2s ease-in-out infinite; }
@keyframes oxsk-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.oxsk.fx-fade { animation: oxsk-pulse 2.2s ease-in-out infinite; }

/* ---- toasts ---- */
.oxtoasts { position: fixed; z-index: 140; display: flex; flex-direction: column; gap: var(--space-2); width: min(380px, calc(100vw - 24px)); pointer-events: none; }
.oxtoasts.pos-topright { top: 76px; right: 16px; }
.oxtoasts.pos-topleft { top: 76px; left: 16px; }
.oxtoasts.pos-topcenter { top: 76px; left: 50%; translate: -50% 0; }
.oxtoasts.pos-bottomright { bottom: 16px; right: 16px; flex-direction: column-reverse; }
.oxtoasts.pos-bottomleft { bottom: 16px; left: 16px; flex-direction: column-reverse; }
.oxtoasts.pos-bottomcenter { bottom: 16px; left: 50%; translate: -50% 0; flex-direction: column-reverse; }
.oxtoast { position: relative; display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
           overflow: hidden; pointer-events: auto; background: var(--surface-200); color: var(--ink); border: 1px solid var(--line); border-left: 4px solid var(--n);
           border-radius: var(--radius-md); box-shadow: var(--shadow-pop), 0 12px 28px -12px rgba(0, 0, 0, .3); animation: oxtoast-in .26s var(--ease-out) both; }
.oxtoasts:is(.pos-topleft, .pos-bottomleft) .oxtoast { animation-name: oxtoast-in-left; }
.oxtoast.closing { animation: oxtoast-out .2s ease-in both; }
@keyframes oxtoast-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes oxtoast-in-left { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes oxtoast-out { to { opacity: 0; transform: scale(.96); margin-bottom: -40px; } }
.oxtoast-icon { flex: none; display: inline-grid; margin-top: 2px; color: var(--n); }
.oxtoast-body { flex: 1; min-width: 0; font-size: 14px; line-height: 20px; }
.oxtoast-title { display: block; margin-bottom: 1px; }
.oxtoast-text { overflow-wrap: anywhere; color: var(--ink); }
.oxtoast-action { flex: none; height: 28px; padding: 0 var(--space-3); border: 1px solid var(--n); border-radius: 6px; background: var(--n-soft); color: var(--n-ink);
                  font: 600 13px var(--font); cursor: pointer; }
.oxtoast-action:hover { background: var(--n); color: #fff; }
.oxtoast-close { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; margin: -2px -4px 0 0; padding: 0; border: 0; border-radius: 6px;
                 background: none; color: var(--ink-muted); cursor: pointer; }
.oxtoast-close:hover { background: var(--surface-300); color: var(--ink); }
.oxtoast-time { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--n); opacity: .6; transform-origin: left;
                animation-name: oxtoast-time; animation-timing-function: linear; animation-fill-mode: forwards; }
.oxtoast.paused .oxtoast-time { animation-play-state: paused; }
@keyframes oxtoast-time { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 640px) {
  .oxtoasts:is(.pos-topright, .pos-topleft, .pos-topcenter) { top: 68px; left: 12px; right: 12px; translate: none; width: auto; }
  .oxtoasts:is(.pos-bottomright, .pos-bottomleft, .pos-bottomcenter) { bottom: max(12px, env(safe-area-inset-bottom)); left: 12px; right: 12px; translate: none; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .oxtoast, .oxmsg, .oxbadge, .oxpb *, .oxsk, .oxspin { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .oxspin { animation: oxspin-turn 1.6s linear infinite !important; }
}
@media print { .oxtoasts, .oxspin-overlay { display: none !important; } }
.page-message { margin-top: 0; }

/* showcase page (GridDemo → Notifications) */


/* =====================================================================================================================
   HAND-TUNED (U1): what static server rendering needs that the HotelSimplify (interactive) controls did with C#, and the
   corporate refinements. Kept in build/tools/kit-tuned.css and appended by port_css.py, so a re-port keeps it.
   ===================================================================================================================== */

/* the side bar folded to icons before oasis-ui.js runs (the choice is put on <html> by oasis-theme.js) */
:root[data-rail="1"] .oui-shell { --side-w: 72px; }

/* corporate: a little tighter and squarer than the hotel look */
.oxk-head h1 { font-size: 26px; line-height: 34px; font-weight: 650; }
.oxk-head-icon { border-radius: 12px; }
.oxk-eyebrow { color: var(--brand); text-transform: uppercase; letter-spacing: .07em; font-size: 11.5px; }
.oxk-stat { min-height: 120px; }
.oxk-stat-value { font-weight: 650; }
.oxk-section-head h2, .oxk-section-head h3 { margin: 0; font-size: 15.5px; line-height: 24px; font-weight: 600; display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.oxk-section-title p { margin: 0; }
.oxk-section-icon.tone-primary { background: var(--brand-soft); color: var(--brand); }
.oxk-section-icon:not(.tone-primary) { background: var(--ts); color: var(--t); }
.oxk-body > .oui-card, .oxk-body > .oxk-section, .oxk-body > .oui-table-wrap { margin-bottom: 0; }
.count-badge { min-width: 24px; height: 22px; padding: 0 var(--space-2); border-radius: var(--radius-pill); background: var(--surface-300); color: var(--ink-muted);
               font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.oxk-nav > .oui-tabs { margin-bottom: 0; }

/* collapsible section: a <details> */
details.oxk-section > summary { list-style: none; cursor: pointer; }
details.oxk-section > summary::-webkit-details-marker { display: none; }
details.oxk-section:not([open]) > summary { border-bottom: 0; }
details.oxk-section > summary .oxk-fold { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-muted); margin-left: -6px; flex: none; }
details.oxk-section > summary:hover .oxk-fold { background: var(--surface-300); color: var(--ink); }
details.oxk-section > summary .oxk-fold .icon { transition: transform .2s var(--ease-out); }
details.oxk-section:not([open]) > summary .oxk-fold .icon { transform: rotate(-90deg); }

/* steps that link back */
.oxk-steps li > a { display: flex; align-items: center; gap: var(--space-2); width: 100%; padding: 8px 10px; border-radius: var(--radius-md); color: var(--ink-muted); font: 500 14px var(--font); text-decoration: none; }
.oxk-steps li > a:hover { background: var(--surface-300); color: var(--ink); }

/* empty state */
.oxk-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-3); padding: var(--space-8) var(--space-6);
             border: 1.5px dashed var(--line); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface-200) 60%, transparent); }
.oxk-empty.compact { flex-direction: row; text-align: left; padding: var(--space-4); }
.oxk-empty-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand);
                  box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand-soft) 45%, transparent); }
.oxk-empty.compact .oxk-empty-icon { width: 40px; height: 40px; box-shadow: none; }
.oxk-empty-text { display: flex; flex-direction: column; gap: 2px; max-width: 52ch; }
.oxk-empty-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; justify-content: center; }

/* menus: a <details> with the list placed under its button (no script needed) */
details.ox-menu { position: relative; display: inline-flex; vertical-align: middle; }
details.ox-menu > summary { list-style: none; }
details.ox-menu > summary::-webkit-details-marker { display: none; }
details.ox-menu[open] > summary .oxb-caret { transform: rotate(180deg); }
details.ox-menu > .oxm { position: absolute; left: 0; right: auto; top: calc(100% + 6px); min-width: 220px; animation: oxm-in .14s var(--ease-out) both; }
details.ox-menu.right > .oxm { left: auto; right: 0; }
details.ox-menu.up > .oxm { top: auto; bottom: calc(100% + 6px); animation-name: oxm-in-up; }
.oxm-item { font-size: 13.5px; }

/* text boxes: a native date/time picker icon follows the theme */
.oxi-input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .65; }
:root[data-theme="dark"] .oxi-input::-webkit-calendar-picker-indicator { filter: invert(1); }
.oxi-box select.oxi-input { appearance: none; -webkit-appearance: none; }
.oxi-icon-btn.on { color: var(--brand); }
.oxi-box { min-height: 38px; }
.oxi-box .oxi-input, .oxi-box .oxi-input:hover, .oxi-box .oxi-input:focus { height: 36px; font-size: 14px; }
.oxi-label { font-size: 13px; }
.oxi-field { font-size: 14px; }

.ox-form-grid > .oxi-field, .oxk-fieldset > .oxi-field, .oxk-filter-items > .oxi-field { margin: 0; }

/* one-time code: one input drawn as cells */
.oxi-otp-cells { --cell: 46px; --gap: 8px; width: calc(var(--cells) * (var(--cell) + var(--gap)) - var(--gap) + 2px); height: 54px; padding: 0 0 0 calc(var(--cell) / 2 - .32em);
                 border: 0 !important; box-shadow: none !important; outline: none; font: 600 22px var(--mono); letter-spacing: calc(var(--cell) + var(--gap) - 1ch); color: var(--ink);
                 caret-color: var(--brand); background:
                   repeating-linear-gradient(90deg, var(--surface-200) 0 var(--cell), transparent var(--cell) calc(var(--cell) + var(--gap))) padding-box,
                   repeating-linear-gradient(90deg, var(--line-strong) 0 var(--cell), transparent var(--cell) calc(var(--cell) + var(--gap))) border-box;
                 border-radius: 0; }
.oxi-otp-cells:focus { background:
                   repeating-linear-gradient(90deg, var(--surface-200) 0 var(--cell), transparent var(--cell) calc(var(--cell) + var(--gap))) padding-box,
                   repeating-linear-gradient(90deg, var(--brand) 0 var(--cell), transparent var(--cell) calc(var(--cell) + var(--gap))) border-box; }
.oxi-otp-cells { border: 1.5px solid transparent !important; }

/* form grid */
.ox-form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--fg-min, 220px)), 1fr)); gap: var(--space-3) var(--space-4); align-items: start; }
.ox-form-grid > .wide, .ox-form-grid > .oxi-field.wide { grid-column: 1 / -1; }
/* C98: fields side by side line up. Each field takes three rows of the form grid (label, control, hint), shared with its neighbours,
   so a two-line label moves the whole row's controls down together instead of leaving one control lower than the rest. A field
   without a label (a checkbox) puts its control on the control row. */
@supports (grid-template-rows: subgrid) {
  .ox-form-grid > div.oxi-field:not(:has(> :nth-child(4))) { display: grid; grid-row: span 3; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .ox-form-grid > div.oxi-field:not(:has(> :nth-child(4))) > .oxi-label { align-self: end; }
  .ox-form-grid > div.oxi-field:not(:has(> .oxi-label)):not(:has(> :nth-child(4))) > :first-child { grid-row: 2; align-self: center; }
}

/* dialog: a native <dialog> carrying the kit's card */
dialog.oxd-dialog { padding: 0; border: 0; background: transparent; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); overflow: visible; color: var(--ink); }
dialog.oxd-dialog.size-small { width: 420px; } dialog.oxd-dialog.size-medium { width: 560px; } dialog.oxd-dialog.size-large { width: 760px; } dialog.oxd-dialog.size-extralarge { width: 980px; }
dialog.oxd-dialog::backdrop { background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
dialog.oxd-dialog[open] .oxd-panel { animation: oxd-in .22s var(--ease-out) backwards; }
dialog.oxd-dialog .oxd-panel { max-height: calc(100dvh - 32px); box-shadow: 0 24px 64px -16px rgba(0, 0, 0, .45), 0 2px 8px rgba(0, 0, 0, .12); }
dialog.oxd-dialog .ox-card-header { padding-top: var(--space-6); }
dialog.oxd-dialog .oxd-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding-top: var(--space-3); padding-bottom: var(--space-6); }
dialog.oxd-dialog .oxd-close { margin: -6px -10px 0 0; }
@media (max-width: 640px) { dialog.oxd-dialog .oxd-footer > .ox-btn { flex: 1 1 0; min-width: 0; height: 44px; } }

/* card links */
a.ox-card { text-decoration: none; color: var(--ink); }
a.ox-card:hover { color: var(--ink); }
.ox-card-icon.tone-success, .ox-card-icon.tone-info, .ox-card-icon.tone-neutral { background: var(--ts); color: var(--t); }

/* chips that are links keep the chip colours */
a.oxc { text-decoration: none; }

/* buttons: the corporate solid danger and warning, and the link variant */
.ox-btn.solid-danger, a.ox-btn.solid-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
:root[data-theme="dark"] .ox-btn.solid-danger { color: #1b0a08; }
.ox-btn.solid-warning { color: #2b1700; }
.ox-btn.oxb-info, a.ox-btn.oxb-info { color: #fff; }
.oxb[data-tip]:not(:hover):not(:focus-visible)::after { display: none; }

/* status chip dots */
.oxc.oxk-status.dot .oxc-text::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: middle; opacity: .85; }

/* KPI hero in the corporate gradient */
.oxk-stat.hero { background: radial-gradient(420px 220px at 100% 0%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 60%),
                             linear-gradient(135deg, var(--brand-deep), var(--brand)); }
:root[data-theme="dark"] .oxk-stat.hero { background: radial-gradient(420px 220px at 100% 0%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 60%),
                                          linear-gradient(135deg, #10204A, #1E3F8F); }
.oxk-stat.hero .oxk-stat-bar > span { background: linear-gradient(90deg, #fff, var(--accent-soft)); }

/* avatars: corporate hues come from KitCss.Hue */
.oxk-avatar { font-weight: 650; letter-spacing: .02em; }

/* timeline dots for neutral lines */
.oxk-timeline > li.tone-neutral .oxk-tl-dot { background: var(--surface-300); color: var(--ink-muted); }
.oxk-timeline > li .oxk-tl-dot { background: var(--ts, var(--surface-300)); color: var(--t, var(--ink-muted)); }

/* headings inside kit parts never take the page's heading margins */
.oui .ox-card-title, .oui .oxk-section-head h2, .oui .oxk-section-head h3, .oui .oxk-head h1, .oui .oxmsg-title { margin: 0; }
.oui .ox-card-header { align-items: center; }
.oui .ox-card-header .ox-card-heading { align-self: center; }

/* kit anchors keep their own colours (the page's link colour must not win) */
.oui a.oxk-tab { color: var(--ink-muted); text-decoration: none; }
.oui a.oxk-tab:hover, .oui a.oxk-tab.active { color: var(--ink); }
.oui a.oxm-item { color: var(--ink); text-decoration: none; }
.oui a.oxm-item.danger { color: var(--danger); }
.oui a.oxk-back { color: var(--ink-muted); }
.oui a.oxc { color: var(--c-fg); }
.oui .oxk-steps li > a { color: var(--ink-muted); }

/* fields stacked outside a grid get breathing room; grids and filter bars use their gap */
.oxi-field + .oxi-field, .oxi-field + .oxk-fieldset, .oxk-fieldset + .oxi-field, .ox-form-grid + .oxi-field, .oxi-field + .ox-form-grid,
.ox-form-grid + .ox-form-grid, .oxk-fieldset + .oxk-fieldset { margin-top: var(--space-3); }
.ox-form-grid > .oxi-field + .oxi-field, .oxk-fieldset > .oxi-field + .oxi-field, .oxk-filter-items > .oxi-field + .oxi-field,
.oxi-radio-list .oxi-field + .oxi-field { margin-top: 0; }
:is(.oxi-field, .ox-form-grid, .oxk-fieldset) + :is(.ox-btn, .oui-actions, .oxk-actionbar, button, .oui-btn) { margin-top: var(--space-3); }
form > .ox-btn + .ox-btn { margin-left: var(--space-2); }

/* a table inside a flush section is the section's body */
.oxk-section.flush > .oxk-section-body > .oui-table-wrap { border: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); margin: 0; box-shadow: none; }
.oxk-section.flush > .oxk-section-body > .oui-table-wrap .oui-table caption:not(.oui-sr) { display: none; }
.oxm-hint { margin-left: var(--space-3); color: var(--ink-muted); font-size: 12px; white-space: nowrap; }
.oxm-header strong { color: var(--ink); }

/* OxMobile (from HsMobileBox): a country-code chip (a see-through native select over it) and a 10-digit box in one frame */
.oxk-mob-cc { position: relative; flex: none; display: inline-flex; align-items: center; gap: 5px; align-self: stretch; padding: 0 8px 0 10px;
              border-right: 1px solid var(--line); border-radius: var(--radius-md) 0 0 var(--radius-md); color: var(--ink); cursor: pointer; }
.oxk-mob-cc:hover { background: var(--surface-300); }
.oxk-mob-cc:focus-within { background: var(--brand-soft); }
.oxk-mob-iso { display: inline-grid; place-items: center; min-width: 22px; height: 16px; padding: 0 3px; border-radius: 3px; background: var(--surface-300);
               color: var(--ink-muted); font: 600 10px/1 var(--font); letter-spacing: .04em; }
.oxk-mob-dial { font: 500 15px var(--font); font-variant-numeric: tabular-nums; white-space: nowrap; }
.oxk-mob-caret { display: grid; color: var(--ink-muted); }
.oxk-mob-sel { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; border: 0; appearance: none; -webkit-appearance: none; }
.oxk-mob-sel:disabled { cursor: default; }
.oxk-mob-sel option { color: var(--ink); background: var(--surface-200); }
.oxk-mob .oxi-box .oxi-input { padding-left: var(--space-3); letter-spacing: .04em; }
.oxk-mob-count { margin-left: auto; color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 12px; }
.oxk-mob-count.done { color: var(--tone-success); }
@media (max-width: 560px) { .oxk-mob-cc { padding: 0 6px 0 8px; gap: 4px; } }
