/* ==========================================================================
   HOTELLIX hotel owner panel: the "Lux" surface layer.
   Loaded after theme.css on every page in owner/. It changes the look only:
   the markup, the scripts and the layout variables of bo-shell.css stay as
   they are, so removing this one <link> gives the previous owner panel back.

   The look
     - warm stone canvas, white cards with one soft shadow, no hard borders
     - a midnight side menu in the palette's darkest shade, gold marks the current page
     - a frosted top bar, pill buttons, soft fields, quiet tables
     - one "hero" KPI tile per row of tiles, in midnight and gold
     - a floating tab bar on phones

   Contents
     1-12   shared panel parts (the same structure as css/ds/admin-apple.css)
     13     side menu and brand: midnight and gold
     14     owner parts: hotel switcher, today strip, KPI tiles, tabs, room board, occupancy grid
     15     phones: floating tab bar, spacing
     16     dark mode

   It follows the customizer: palette, light / dark, corners and font.
   Every rule starts with .ds-owner, so nothing leaks into the site or the admin panel.
   ========================================================================== */

/* ---------------------------------------------------------------- 1. tokens */
html.ds.ds-owner:root {
  --ds-canvas: #F4F2EE;
  --ds-surface: #FFFFFF;
  --ds-sunken: #F4F1EB;
  --ds-hover: #ECE8E1;
  --ds-row-hover: #FAF8F5;
  --ds-skel: #ECE8E1;
  --ds-border: #EAE5DC;
  --ds-border-card: rgba(40, 30, 10, .07);
  --ds-text-strong: #14161C;
  --ds-text: #1B1E26;
  --ds-text-2: #4A4D57;
  --ds-text-muted: #6B6D76;
  --ds-text-placeholder: #6B6D76;
  --ds-neutral-fg: #4A4D57;
  --ds-neutral-bg: #EFECE6;
  --ds-neutral-border: transparent;
  --ds-c-grid: #EEEAE3;
  --ds-scrim: rgba(12, 14, 20, .4);

  --ds-sh-card: 0 0 0 1px rgba(40, 30, 10, .045), 0 1px 2px rgba(40, 30, 10, .04), 0 14px 34px -22px rgba(40, 30, 10, .22);
  --ds-sh-3: 0 0 0 1px rgba(40, 30, 10, .07), 0 22px 50px -14px rgba(20, 16, 8, .26), 0 4px 12px -4px rgba(20, 16, 8, .1);
  --ds-sh-4: 0 0 0 1px rgba(40, 30, 10, .07), 0 34px 70px -18px rgba(20, 16, 8, .36);

  --ds-card-pad: 20px;
  --ds-gap-cards: 16px;

  /* file-local */
  --ap-fill: rgba(120, 110, 95, .12);           /* filled controls: secondary buttons, search, filters */
  --ap-fill-hover: rgba(120, 110, 95, .19);
  --ap-fill-press: rgba(120, 110, 95, .26);
  --ap-field: #CFC9BE;                          /* text field edge */
  --ap-hair: rgba(40, 30, 10, .09);             /* hairline on a material */
  --ap-glass: rgba(244, 242, 238, .78);         /* top bar */
  --ap-sheet: rgba(255, 255, 255, .88);         /* menus */
  --ap-pill: 980px;
  --ap-blur: saturate(180%) blur(20px);

  /* the midnight material: side menu, brand, hero tile, phone tab bar */
  --ow-night-1: var(--ds-teal-800);
  --ow-night-2: var(--ds-teal-900);
  --ow-night: linear-gradient(180deg, var(--ow-night-1) 0%, var(--ow-night-2) 100%);
  --ow-on-night: rgba(255, 255, 255, .94);
  --ow-on-night-2: rgba(255, 255, 255, .7);
  --ow-on-night-3: rgba(255, 255, 255, .46);
  --ow-night-fill: rgba(255, 255, 255, .07);
  --ow-night-fill-2: rgba(255, 255, 255, .12);
  --ow-night-hair: rgba(255, 255, 255, .09);
  --ow-gold: var(--ds-highlight);
}
html.ds.ds-owner[data-theme="dark"]:root {
  --ds-canvas: #0B0D12;
  --ds-surface: #161920;
  --ds-sunken: #1D2028;
  --ds-hover: #262A33;
  --ds-row-hover: #1B1E26;
  --ds-skel: #262A33;
  --ds-border: #272B34;
  --ds-border-card: rgba(255, 255, 255, .08);
  --ds-text-strong: #F5F3EE;
  --ds-text: #E7E4DD;
  --ds-text-2: #B0AEA8;
  --ds-text-muted: #96948E;
  --ds-text-placeholder: #8C8A85;
  --ds-neutral-fg: #D2CFC8;
  --ds-neutral-bg: #262A33;
  --ds-neutral-border: transparent;
  --ds-c-grid: #262A33;
  --ds-scrim: rgba(0, 0, 0, .62);

  --ds-sh-card: 0 0 0 1px rgba(255, 255, 255, .07);
  --ds-sh-3: 0 0 0 1px rgba(255, 255, 255, .1), 0 24px 56px -12px rgba(0, 0, 0, .7);
  --ds-sh-4: 0 0 0 1px rgba(255, 255, 255, .1), 0 32px 72px -16px rgba(0, 0, 0, .8);

  --ap-fill: rgba(140, 135, 125, .2);
  --ap-fill-hover: rgba(140, 135, 125, .28);
  --ap-fill-press: rgba(140, 135, 125, .36);
  --ap-field: #454852;
  --ap-hair: rgba(255, 255, 255, .1);
  --ap-glass: rgba(11, 13, 18, .74);
  --ap-sheet: rgba(30, 33, 41, .88);

  --ow-night-1: #12151C;
  --ow-night-2: #0D0F15;
}
/* corners: larger by default; the customizer's "Sharp" and "Round" still decide when they are set */
html.ds.ds-owner:not([data-radius]) { --ds-card-r: 20px; --ds-ctl-r: 12px; --cfx-radius: 20px; --ds-r-sm: 8px; --ds-r-md: 12px; --ds-r-lg: 16px; --ds-r-xl: 24px; }
html.ds.ds-owner[data-radius="sharp"] { --ap-pill: 6px; }
@media (min-width: 1200px) { html.ds.ds-owner:root { --ds-card-pad: 24px; --ds-gap-cards: 20px; } }

.ds-owner body { background: var(--ds-canvas); color: var(--ds-text); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
.ds-owner ::selection { background: color-mix(in srgb, var(--ds-accent) 22%, transparent); }

/* ---------------------------------------------------------------- 2. shell */
/* top bar: a frosted material, the page scrolls under it */
.ds-owner #page-topbar { background: var(--ds-canvas); border-block-end: 1px solid var(--ap-hair); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .ds-owner #page-topbar { background: var(--ap-glass); -webkit-backdrop-filter: var(--ap-blur); backdrop-filter: var(--ap-blur); }
}
.ds-owner #page-topbar .navbar-header .navbar-brand-box { border-inline-end: 0; }
.ds-owner .ds-brand { border-radius: 12px; }
.ds-owner .ds-brand__app { display: inline-block; margin-block-start: 2px; padding: 1px 7px; border-radius: 6px; background: var(--ap-fill); font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .02em; color: var(--ds-text-2); }
.ds-owner #page-topbar .header-item { border-radius: 50%; color: var(--ds-text-2); transition: background-color .15s var(--ds-ease-out), color .15s var(--ds-ease-out), transform .15s var(--ds-ease-out); }
.ds-owner #page-topbar #page-header-user-dropdown { border-radius: var(--ap-pill); padding-inline: 4px 12px; }
@media (max-width: 767.98px) { .ds-owner #page-topbar #page-header-user-dropdown { padding-inline: 4px; } }
@media (hover: hover) { .ds-owner #page-topbar .header-item:hover { background: var(--ap-fill); color: var(--ds-text-strong); } }
.ds-owner #page-topbar .header-item:active { transform: scale(.94); }
.ds-owner #page-topbar .header-item[data-bs-toggle="dropdown"][aria-expanded="true"] { background: var(--ap-fill-hover); color: var(--ds-text-strong); }
.ds-owner #page-topbar .ds-user-name { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: var(--ds-text-strong); }
.ds-owner #page-topbar .cf-avatar { background: linear-gradient(145deg, color-mix(in srgb, var(--ds-accent) 78%, #fff), var(--ds-accent)); color: var(--ds-on-accent); box-shadow: 0 0 0 2px var(--ds-surface), 0 1px 3px rgba(0, 0, 0, .18); font-weight: 600; letter-spacing: .02em; }
.ds-owner #page-topbar .cf-topbar-search { border: 1px solid transparent; border-radius: 12px; background: var(--ap-fill); transition: background-color .15s var(--ds-ease-out), border-color .15s var(--ds-ease-out), box-shadow .15s var(--ds-ease-out); }
.ds-owner #page-topbar .cf-topbar-search:focus-within { outline: 0; border-color: var(--ds-focus); background: var(--ds-surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ds-focus) 18%, transparent); }

/* sidebar: sits on the canvas; the current page is a raised white row with an accent icon */
.ds-owner .vertical-menu { background: var(--ds-canvas); border-inline-end: 1px solid var(--ap-hair); scrollbar-width: thin; scrollbar-color: var(--ap-fill-hover) transparent; }
.ds-owner #sidebar-menu { padding-block-end: 32px; }
.ds-owner #side-menu .menu-title { padding: 20px 22px 6px !important; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ds-text-muted); }
.ds-owner #side-menu .menu-title:first-child { padding-block-start: 8px !important; }
.ds-owner #sidebar-menu ul li a { gap: 11px; min-block-size: 38px; margin-inline: 10px; padding-inline: 12px; border-radius: 10px; font-size: 14px; font-weight: 500; letter-spacing: -0.008em; color: var(--ds-text); }
.ds-owner #sidebar-menu ul li a i { color: var(--ds-accent-fg); }
.ds-owner #sidebar-menu ul li ul.sub-menu { padding-block: 2px 4px; }
.ds-owner #sidebar-menu ul li ul.sub-menu li a { min-block-size: 34px; margin-inline: 10px; padding-inline: 43px 12px; font-size: 14px; font-weight: 400; color: var(--ds-text-2); }
@media (hover: hover) {
  .ds-owner #sidebar-menu ul li a:hover { background-color: var(--ap-fill); color: var(--ds-text-strong); }
  .ds-owner #sidebar-menu ul li a:hover i { color: var(--ds-accent-fg); }
}
.ds-owner #sidebar-menu .mm-active > a,
.ds-owner #sidebar-menu .mm-active .active,
.ds-owner #sidebar-menu ul li a.active { color: var(--ds-text-strong) !important; font-weight: 600; }
.ds-owner #sidebar-menu .mm-active > a > i,
.ds-owner #sidebar-menu ul li a.active i { color: var(--ds-accent-fg) !important; }
.ds-owner #sidebar-menu ul li a.active,
.ds-owner #sidebar-menu ul li ul.sub-menu li a.active { background-color: var(--ds-surface); box-shadow: var(--ds-sh-card); }
.ds-owner[data-theme="dark"] #sidebar-menu ul li a.active,
.ds-owner[data-theme="dark"] #sidebar-menu ul li ul.sub-menu li a.active { background-color: var(--ap-fill); box-shadow: none; }
.ds-owner #sidebar-menu ul li a.active::before { content: none; }
.ds-owner #sidebar-menu .mm-active > a.has-arrow { background-color: transparent; box-shadow: none; }
.ds-owner #sidebar-menu .has-arrow:after { font-size: 12px; color: var(--ds-text-muted); }
.ds-owner #sidebar-menu ul li a:focus-visible { outline: 2px solid var(--ds-focus); outline-offset: -2px; }
@media (pointer: coarse) { .ds-owner #sidebar-menu ul li a, .ds-owner #sidebar-menu ul li ul.sub-menu li a { min-block-size: 44px; } }
@media (min-width: 992px) {
  /* rail: the fly-out is a blurred sheet */
  .ds-owner .vertical-collpsed .vertical-menu #sidebar-menu > ul > li:is(:hover, :focus-within) > a { background-color: var(--ap-fill); }
  .ds-owner .vertical-collpsed .vertical-menu #sidebar-menu > ul > li:is(:hover, :focus-within) > a > span:not(.badge):not(.ds-count),
  .ds-owner .vertical-collpsed .vertical-menu #sidebar-menu > ul > li:is(:hover, :focus-within) > ul { border: 0; background: var(--ds-surface); box-shadow: var(--ds-sh-3); }
  .ds-owner .vertical-collpsed .vertical-menu #sidebar-menu > ul > li:is(:hover, :focus-within) > a > span:not(.badge):not(.ds-count) { border-radius: 12px; }
  .ds-owner .vertical-collpsed .vertical-menu #sidebar-menu > ul > li:is(:hover, :focus-within):has(> ul) > a > span:not(.badge):not(.ds-count) { border-end-start-radius: 0; border-end-end-radius: 0; }
  .ds-owner .vertical-collpsed .vertical-menu #sidebar-menu > ul > li:is(:hover, :focus-within) > ul { border-end-start-radius: 12px; border-end-end-radius: 12px; }
  .ds-owner .vertical-collpsed .vertical-menu #sidebar-menu > ul > li:is(:hover, :focus-within) > ul a { padding-inline: 12px; margin-inline: 6px; }
  .ds-owner .vertical-collpsed #side-menu .menu-title { padding: 0 !important; font-size: 0; color: transparent; }
  .ds-owner .vertical-collpsed #side-menu .menu-title::after { background: var(--ap-hair); }
}

/* ---------------------------------------------------------------- 3. page */
.ds-owner .page-title-box { gap: 8px 16px; margin-block-end: 24px; }
.ds-owner .page-title-box h1 { font-size: clamp(26px, calc(20px + .9vw), 34px); line-height: 1.12; font-weight: 700; letter-spacing: -0.026em; color: var(--ds-text-strong); }
.ds-owner .page-title-box h1 small { font-size: .5em; font-weight: 500; letter-spacing: -0.01em; }
.ds-owner .page-title-box .breadcrumb { font-size: 13px; }
.ds-owner .breadcrumb-item a { color: var(--ds-text-muted); text-decoration: none; }
.ds-owner .breadcrumb-item a:hover { color: var(--ds-link); }
.ds-owner :is(h2, h3, .h4, .h5, .h6) { letter-spacing: -0.014em; }

.ds-owner :is(.ds-card, .card) { border: 0; border-radius: var(--ds-card-r); background: var(--ds-surface); box-shadow: var(--ds-sh-card); }
.ds-owner .ds-card__head > :is(h2, h3, h4), .ds-owner .ht-panel :is(h2, h3) { font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -0.016em; color: var(--ds-text-strong); }
.ds-owner .ht-panel > .ds-card__head { margin-block-end: 8px; }
.ds-owner .ht-panel > .table-responsive { margin-inline: calc(var(--ds-card-pad) * -1); }
.ds-owner .ht-grid { gap: var(--ds-gap-cards); margin-block-end: var(--ds-gap-cards); }
.ds-owner .ds-demo-tag { flex: none; white-space: nowrap; border: 0; border-radius: var(--ap-pill); background: var(--ap-fill); color: var(--ds-text-2); }
.ds-owner .ds-alert { border: 0; border-radius: var(--ds-r-lg); }
.ds-owner .footer, .ds-owner .vertical-collpsed .footer { border-block-start: 0; font-size: 12px; color: var(--ds-text-muted); }

/* ---------------------------------------------------------------- 4. KPI tiles */
.ds-owner .ht-kpis { margin-block-end: var(--ds-gap-cards); }
.ds-owner .ds-kpi { gap: 6px; min-block-size: 0; padding: 18px var(--ds-card-pad); border: 0; border-radius: var(--ds-card-r); box-shadow: var(--ds-sh-card); transition: transform .2s var(--ds-ease-out), box-shadow .2s var(--ds-ease-out); }
.ds-owner .ds-kpi__top { align-items: center; margin-block-end: 6px; }
.ds-owner .ds-kpi__label { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ds-text-muted); }
.ds-owner .ds-kpi__icon { inline-size: 36px; block-size: 36px; border-radius: 11px; background: var(--ds-accent-soft); color: var(--ds-accent-fg); font-size: 18px; }
.ds-owner .ds-kpi__value { font-size: clamp(20px, calc(14px + 1.2vw), 30px); line-height: 1.15; font-weight: 700; letter-spacing: -0.028em; color: var(--ds-text-strong); }
.ds-owner .ds-kpi__foot { margin-block-start: 2px; font-size: 12px; color: var(--ds-text-muted); }
@media (hover: hover) { .ds-owner a.ds-kpi:hover { transform: translateY(-2px); box-shadow: var(--ds-sh-card), 0 18px 36px -22px rgba(0, 0, 0, .28); } }
.ds-owner :is(.ds-delta, .ds-pill, .badge) { border-color: transparent; }
.ds-owner .ds-delta { padding-inline: 9px; }
/* the grid follows the number of tiles, so a row is never left with one tile */
@media (max-width: 359.98px) { .ds-owner .ds-kpis { grid-template-columns: minmax(0, 1fr); } }
/* phones: with an odd number of tiles the last one takes the full row instead of sitting alone beside a gap */
@media (max-width: 767.98px) { .ds-owner .ds-kpis > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* narrow phones: tiles with a "+9% vs previous period" line get the full width, so that line stays on one row */
@media (max-width: 419.98px) { .ds-owner .ds-kpis:has(.ds-delta) { grid-template-columns: minmax(0, 1fr); } .ds-owner .ds-kpis:has(.ds-delta) .ds-kpi__value { font-size: 24px; } }
@media (min-width: 768px) {
  .ds-owner .ds-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ds-owner .ds-kpis:has(> :nth-child(2):last-child), .ds-owner .ds-kpis:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) { .ds-owner .ds-kpis:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) and (max-width: 1399.98px) { .ds-owner .ds-kpis:has(> :nth-child(4):last-child) .ds-kpi__value { font-size: 24px; } }
@media (min-width: 1600px) { .ds-owner .ds-kpis:has(> :nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- 5. controls */
.ds-owner :is(.btn, .ds-btn):not(.header-item, .btn-close, .input-group > *, .btn-group > *) { border-radius: var(--ap-pill); }
.ds-owner :is(.btn, .ds-btn):not(.header-item, .btn-close) { letter-spacing: -0.008em; transition: color .15s var(--ds-ease-out), background-color .15s var(--ds-ease-out), border-color .15s var(--ds-ease-out), transform .15s var(--ds-ease-out), box-shadow .15s var(--ds-ease-out); }
.ds-owner :is(.btn, .ds-btn):not(.header-item, .btn-close, :disabled, .disabled):active { transform: scale(.97); }
.ds-owner :is(.btn, .ds-btn):not(.btn-sm, .ds-btn--sm, .btn-lg, .ds-btn--lg, .header-item, .btn-close, .input-group > *) { padding-inline: 18px; }
.ds-owner :is(.btn-sm, .ds-btn--sm):not(.header-item, .input-group > *) { padding-inline: 14px; }
.ds-owner :is(.btn-secondary, .btn-light, .btn-outline-primary, .btn-outline-secondary, .btn-outline-dark, .ds-btn--secondary) { --b: var(--ap-fill); --bb: transparent; --bh: var(--ap-fill-hover); --bbh: transparent; --ba: var(--ap-fill-press); --bba: transparent; }
.ds-owner :is(.btn-outline-danger, .ds-btn--destructive-secondary) { --b: var(--ds-danger-bg); --bb: transparent; --bh: color-mix(in srgb, var(--ds-danger-solid) 16%, var(--ds-surface)); --bbh: transparent; --bba: transparent; }
.ds-owner :is(.btn-link, .ds-btn--tertiary) { --bh: var(--ap-fill); --ba: var(--ap-fill-hover); }
.ds-owner :is(.btn, .ds-btn):focus-visible { outline: 2px solid var(--ds-focus); outline-offset: 2px; }
.ds-owner .ds-kebab { border-radius: 50%; }
.ds-owner .ds-kebab:hover, .ds-owner .ds-kebab[aria-expanded="true"] { background: var(--ap-fill-hover); }

.ds-owner :is(.form-control, .form-select, .ds-input, .ds-select) { border-color: var(--ap-field); border-radius: var(--ds-ctl-r); letter-spacing: -0.006em; transition: border-color .15s var(--ds-ease-out), box-shadow .15s var(--ds-ease-out), background-color .15s var(--ds-ease-out); }
@media (hover: hover) { .ds-owner :is(.form-control, .form-select, .ds-input, .ds-select):not(:disabled, :focus):hover { border-color: var(--ds-text-muted); } }
.ds-owner :is(.form-control, .form-select, .ds-input, .ds-select):focus { border-color: var(--ds-focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ds-focus) 18%, transparent); }
.ds-owner .was-validated :is(.form-control, .form-select):invalid:focus, .ds-owner :is(.form-control, .form-select).is-invalid:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ds-danger-fg) 18%, transparent); }
.ds-owner :is(.form-control-sm, .form-select-sm) { border-radius: calc(var(--ds-ctl-r) - 2px); }
.ds-owner .input-group > :is(.form-control, .form-select):not(:first-child) { border-start-start-radius: 0; border-end-start-radius: 0; }
.ds-owner .input-group > :is(.form-control, .form-select):not(:last-child) { border-start-end-radius: 0; border-end-end-radius: 0; }
.ds-owner .input-group-text { border-color: var(--ap-field); border-radius: var(--ds-ctl-r); background: var(--ds-sunken); color: var(--ds-text-2); }
.ds-owner .form-label { font-size: 13px; font-weight: 600; letter-spacing: -0.006em; color: var(--ds-text); }
.ds-owner .form-text { color: var(--ds-text-muted); }
.ds-owner .form-check-input { border-color: var(--ap-field); }
.ds-owner .form-check-input[type="checkbox"] { border-radius: 6px; }
/* switches are always a full pill, whatever the corner option is */
.ds-owner .form-switch .form-check-input, .ds-owner .form-check-input[role="switch"] { border-radius: 999px; }
.ds-owner .form-check-input:is(:checked, :indeterminate) { border-color: var(--ds-accent); }
.ds-owner .form-check-input:focus-visible { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ds-focus) 18%, transparent); }
/* search fields and the filters above a table are filled, without an edge */
.ds-owner .ds-search-field { border-color: transparent; border-radius: 12px; background: var(--ap-fill); transition: background-color .15s var(--ds-ease-out), border-color .15s var(--ds-ease-out), box-shadow .15s var(--ds-ease-out); }
.ds-owner .ds-search-field:focus-within { border-color: var(--ds-focus); background: var(--ds-surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ds-focus) 18%, transparent); }
.ds-owner .ds-search-field > input:focus { outline: 0; box-shadow: none; }
.ds-owner .ht-table-bar .form-select { border-color: transparent; border-radius: 12px; background-color: var(--ap-fill); font-weight: 500; }
.ds-owner .ht-table-bar .form-select:focus { border-color: var(--ds-focus); background-color: var(--ds-surface); }
/* a switch and its label: one row, centred on each other, with a gap between them (the label touched the switch) */
.ds-owner .form-check.form-switch:has(> label) { display: flex; align-items: center; gap: 12px; min-block-size: 32px; margin: 0; padding-inline-start: 0; }
.ds-owner .form-check.form-switch:has(> label) > .form-check-input { flex: none; float: none; margin: 0; cursor: pointer; }
.ds-owner .form-check.form-switch:has(> label) > .form-check-label { min-inline-size: 0; margin: 0; font-size: 14px; line-height: 20px; letter-spacing: -0.006em; color: var(--ds-text); cursor: pointer; }
.ds-owner .ht-form-actions { gap: 10px; }
.ds-owner .ds-form-section > :is(h2, h3) { font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -0.016em; }
.ds-owner .ds-form-section__desc { color: var(--ds-text-muted); }

/* ---------------------------------------------------------------- 6. tables */
.ds-owner .ht-card-table { overflow: visible; }
.ds-owner .ht-table-bar { padding: 14px var(--ds-card-pad); border-block-end: 1px solid var(--ds-border); }
.ds-owner .ds-toolbar__count { font-size: 13px; color: var(--ds-text-muted); }
.ds-owner .table > thead > tr > * { block-size: 40px; padding-block: 8px; background-color: transparent; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0; color: var(--ds-text-muted); border-block-end: 1px solid var(--ds-border); white-space: nowrap; }
.ds-owner .table > tbody > tr > * { border-block-end-color: var(--ds-border); font-size: 14px; letter-spacing: -0.006em; }
.ds-owner .table > tbody > tr:last-child > * { border-block-end: 0; }
.ds-owner .ds-card .table > :not(caption) > * > :first-child { padding-inline-start: var(--ds-card-pad); }
.ds-owner .ds-card .table > :not(caption) > * > :last-child { padding-inline-end: var(--ds-card-pad); }
.ds-owner .ht-sort.is-on { color: var(--ds-text-strong); }
.ds-owner .ds-ident__media { background: var(--ap-fill); }
.ds-owner .ds-ident__media--thumb { border-radius: 10px; }
.ds-owner .ds-ident__name { letter-spacing: -0.01em; }
.ds-owner :is(.ds-pill, .badge) { padding-inline: 9px; font-weight: 600; letter-spacing: -0.004em; }
.ds-owner .ds-ref { font-family: var(--ds-font); font-size: 14px; font-weight: 500; letter-spacing: -0.006em; color: var(--ds-text-strong); }
.ds-owner .table td > code:not(.ds-ref) { padding: 2px 8px; border-radius: 7px; background: var(--ap-fill); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; font-weight: 500; color: var(--ds-text-2); }
@media (min-width: 768px) {
  /* tighter cells leave more room for the text; amounts and numbers never break */
  .ds-owner .ht-table-wrap > .table > :not(caption) > * > * { padding-inline: 12px; }
  .ds-owner .ht-table-wrap > .table > tbody > tr > td { text-wrap: balance; }
  .ds-owner .ht-table-wrap > .table > tbody > tr > td:is(.text-end, .ds-num, .ds-col-actions), .ds-owner .ht-table-wrap > .table .ds-ref { white-space: nowrap; }
  /* a text cell keeps room for about two words a line; a wide table scrolls sideways inside its card, under the pinned
     actions column, whose edge fades so the cut reads as "more this way" */
  .ds-owner .ht-table-wrap > .table > tbody > tr > td:not(.text-end, .ds-num, .ds-col-actions):not(:has(> .ds-pill, > .ds-ref, > input, > code, > .ds-ident)) { min-inline-size: 6.5rem; }
  .ds-owner .ht-table-wrap > .table > tbody > tr > .ds-col-actions::before { content: ""; position: absolute; inset-block: 0; inset-inline-end: 100%; inline-size: 12px; background: linear-gradient(to left, var(--ds-surface), transparent); pointer-events: none; }
  [dir="rtl"].ds-owner .ht-table-wrap > .table > tbody > tr > .ds-col-actions::before { background: linear-gradient(to right, var(--ds-surface), transparent); }
  @media (hover: hover) { .ds-owner .ht-table-wrap > .table > tbody > tr:hover > * { background-color: var(--ds-row-hover); } }
  .ds-owner .ht-card-table > .ht-table-wrap { scrollbar-width: thin; scrollbar-color: var(--ap-fill-hover) transparent; }
}
.ds-owner .ds-pager { padding: 12px var(--ds-card-pad); border-block-start: 1px solid var(--ds-border); }
.ds-owner .ds-pager-info { font-size: 13px; color: var(--ds-text-muted); }
.ds-owner .page-link { border: 0; border-radius: var(--ap-pill); background-color: transparent; color: var(--ds-text-2); }
@media (hover: hover) { .ds-owner .page-link:hover { background-color: var(--ap-fill); color: var(--ds-text-strong); } }
.ds-owner .pagination .page-item.active .page-link { background-color: var(--ds-accent); color: var(--ds-on-accent); }
.ds-owner .pagination .page-item.disabled .page-link { background-color: transparent; opacity: .4; }
.ds-owner .pagination :is(.page-item:first-child, .page-item:last-child) .page-link { border-radius: var(--ap-pill); }
.ds-owner .ht-pagesize select { border-color: transparent; background-color: var(--ap-fill); }

/* ---------------------------------------------------------------- 7. overlays */
.ds-owner .dropdown-menu { padding: 6px; border: 0; border-radius: 14px; background-color: var(--ds-surface); box-shadow: var(--ds-sh-3); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .ds-owner .dropdown-menu { background-color: var(--ap-sheet); -webkit-backdrop-filter: saturate(180%) blur(28px); backdrop-filter: saturate(180%) blur(28px); }
}
.ds-owner .dropdown-item { border-radius: 9px; letter-spacing: -0.006em; }
.ds-owner .dropdown-item:focus-visible { outline: 0; }
@media (hover: hover) {
  .ds-owner .dropdown-item:is(:hover, :focus-visible) { background-color: var(--ds-accent); color: var(--ds-on-accent); }
  .ds-owner .dropdown-item:is(:hover, :focus-visible) > :is(i, svg):first-child { color: var(--ds-on-accent); }
  .ds-owner .dropdown-item:is(.text-danger, .ds-danger):is(:hover, :focus-visible) { background-color: var(--ds-danger-solid); color: #fff !important; }
  .ds-owner .dropdown-item:is(.text-danger, .ds-danger):is(:hover, :focus-visible) > :is(i, svg):first-child { color: #fff; }
}
.ds-owner .dropdown-header { padding: 6px 12px; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ds-text-muted); }
.ds-owner .dropdown-divider { margin: 6px 8px; border-color: var(--ap-hair); opacity: 1; }
.ds-owner .ht-colmenu .ds-check-row { padding-inline: 12px; border-radius: 9px; }
@media (hover: hover) { .ds-owner .ht-colmenu .ds-check-row:hover { background: var(--ap-fill); } }

/* select menus (js/panel/select.js): the list of a <select> opens as a panel menu instead of the system list */
.ds-owner .ap-select { position: fixed; inset: auto; z-index: 1090; margin: 0; max-inline-size: min(360px, calc(100vw - 16px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--ap-fill-hover) transparent; transform-origin: 50% 0; animation: ow-select-in .14s var(--ds-ease-out) both; }
.ds-owner .ap-select--up { transform-origin: 50% 100%; }
.ds-owner .ap-select__opt { gap: 8px; inline-size: 100%; min-block-size: 34px; padding-inline: 8px 14px; border: 0; background: transparent; font-family: inherit; text-align: start; cursor: default; }
.ds-owner .ap-select__opt > i { flex: none; inline-size: 16px; font-size: 14px; visibility: hidden; }
.ds-owner .ap-select__opt[aria-selected="true"] { font-weight: 600; color: var(--ds-text-strong); }
.ds-owner .ap-select__opt[aria-selected="true"] > i { visibility: visible; color: var(--ds-accent-fg); }
/* only the active row is highlighted (hover and focus on their own do nothing), so two rows never light up together */
html.ds.ds-owner .ap-select .ap-select__opt:is(:hover, :focus, :focus-visible, :active) { background-color: transparent; color: var(--ds-text); outline: 0; box-shadow: none; }
html.ds.ds-owner .ap-select .ap-select__opt[aria-selected="true"]:is(:hover, :focus, :focus-visible, :active) { color: var(--ds-text-strong); }
html.ds.ds-owner .ap-select .ap-select__opt:is(:hover, :focus, :focus-visible) > i { color: var(--ds-accent-fg); }
html.ds.ds-owner .ap-select .ap-select__opt.is-active, html.ds.ds-owner .ap-select .ap-select__opt.is-active:is(:hover, :focus, :focus-visible, :active) { background-color: var(--ds-accent); color: var(--ds-on-accent); outline: 0; }
html.ds.ds-owner .ap-select .ap-select__opt.is-active > i { color: var(--ds-on-accent); }
.ds-owner .ap-select__opt[aria-disabled="true"] { opacity: .4; pointer-events: none; }
/* the focus ring of a field is the soft halo; the outline on top of it made a double ring */
.ds-owner :is(.form-control, .form-select):is(:focus, :focus-visible), .ds-owner .form-select.is-open { outline: 0; }
.ds-owner .form-select.is-open { border-color: var(--ds-focus); background-color: var(--ds-surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ds-focus) 18%, transparent); }
@keyframes ow-select-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .ds-owner .ap-select { animation: none; } }

.ds-owner .modal-content { border: 0; border-radius: var(--ds-r-xl); box-shadow: var(--ds-sh-4); }
.ds-owner .modal-header { padding: 20px 24px 8px; border-block-end: 0; }
.ds-owner .modal-title { font-size: 19px; line-height: 24px; font-weight: 700; letter-spacing: -0.02em; }
.ds-owner .modal-body { padding: 12px 24px 20px; }
.ds-owner .modal-footer { padding: 14px 24px 20px; border-block-start: 0; border-end-start-radius: var(--ds-r-xl); border-end-end-radius: var(--ds-r-xl); }
.ds-owner .modal-header .btn-close { inline-size: 30px; block-size: 30px; padding: 0; border-radius: 50%; background-color: var(--ap-fill); background-size: 10px; opacity: 1; }
.ds-owner .modal-header .btn-close:hover { background-color: var(--ap-fill-hover); }
.ds-owner .modal-backdrop { --bs-backdrop-bg: #000; --bs-backdrop-opacity: .36; background-color: #000; }
.ds-owner .modal-backdrop.show { opacity: .36; }
.ds-owner .modal.fade .modal-dialog { transform: translateY(12px) scale(.98); transition: transform .28s var(--ds-ease-out); }
.ds-owner .modal.show .modal-dialog { transform: none; }
.ds-owner .ds-toast { border: 0; border-radius: 16px; box-shadow: var(--ds-sh-3); }
@media (prefers-reduced-motion: reduce) { .ds-owner .modal.fade .modal-dialog, .ds-owner .ds-kpi, .ds-owner :is(.btn, .ds-btn) { transition: none; transform: none; } }

/* ---------------------------------------------------------------- 8. page parts */
/* settings and roles: the section list is a grouped card */
.ds-owner .ht-settings { gap: var(--ds-gap-cards); }
.ds-owner .ht-settings__nav { gap: 2px; padding: 6px; border-radius: var(--ds-card-r); background: var(--ds-surface); box-shadow: var(--ds-sh-card); scrollbar-width: none; }
.ds-owner .ht-settings__nav::-webkit-scrollbar { display: none; }
.ds-owner .ht-settings__nav button { gap: 10px; min-block-size: 40px; padding: 8px 12px; border-radius: calc(var(--ds-card-r) - 8px); font-size: 14px; font-weight: 500; letter-spacing: -0.008em; color: var(--ds-text); transition: background-color .15s var(--ds-ease-out); }
.ds-owner .ht-settings__nav button i { font-size: 18px; color: var(--ds-accent-fg); }
@media (hover: hover) { .ds-owner .ht-settings__nav button:hover { background: var(--ap-fill); } }
.ds-owner .ht-settings__nav button[aria-selected="true"] { background: var(--ds-accent); color: var(--ds-on-accent); font-weight: 600; }
.ds-owner .ht-settings__nav button[aria-selected="true"] i { color: var(--ds-on-accent); }
.ds-owner .ht-settings__nav button:focus-visible { outline: 2px solid var(--ds-focus); outline-offset: -2px; }
@media (min-width: 992px) { .ds-owner .ht-settings { grid-template-columns: 240px minmax(0, 1fr); } .ds-owner .ht-settings__nav { align-self: start; position: sticky; inset-block-start: calc(var(--bo-top) + 16px); } }

.ds-owner .ht-list > li { padding-block: 13px; border-block-end-color: var(--ds-border); }
.ds-owner .ht-list a { font-weight: 500; color: var(--ds-text-strong); text-decoration: none; }
.ds-owner .ht-list a:hover { color: var(--ds-link); }
.ds-owner .ht-list a i { color: var(--ds-accent-fg); }
.ds-owner .ht-bar { block-size: 6px; background: var(--ap-fill); }
.ds-owner .ht-timeline li::before { box-shadow: 0 0 0 4px var(--ds-accent-soft); }
.ds-owner .ht-dl dt { color: var(--ds-text-muted); font-weight: 500; }
.ds-owner .ht-perms :is(th, td) { white-space: nowrap; }
.ds-owner .ds-empty__icon { border-radius: 50%; background: var(--ap-fill); }

/* ---------------------------------------------------------------- 9. small screens */
@media (max-width: 991.98px) {
  /* the menu opens as a rounded sheet that floats over the page */
  .ds-owner .vertical-menu { inset-block: calc(var(--bo-top) + 8px) 8px; inset-inline-start: 8px; inline-size: min(calc(100vw - 16px), 320px); border: 0; border-radius: 22px; background: var(--ds-surface); box-shadow: var(--ds-sh-4); }
  .ds-owner .vertical-collpsed .vertical-menu { inline-size: min(calc(100vw - 16px), 320px) !important; }
  .ds-owner #sidebar-menu ul li a.active, .ds-owner #sidebar-menu ul li ul.sub-menu li a.active { background-color: var(--ds-accent-soft); box-shadow: none; }
  .ds-owner body.sidebar-enable::after { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
}
@media (max-width: 767.98px) {
  .ds-owner .page-title-box { margin-block-end: 16px; }
  .ds-owner .ds-kpi { padding: 14px 16px; }
  .ds-owner .ds-kpi__icon { inline-size: 32px; block-size: 32px; border-radius: 10px; font-size: 16px; }
  .ds-owner .ht-table-bar { padding: 12px 16px; }
  .ds-owner .ht-table-bar .ht-table-search { flex-basis: 100%; max-inline-size: none; }
  .ds-owner .ht-table-bar .ht-table-filter { flex: 1 1 140px; min-inline-size: 0; }
  /* stacked table: each record is a grouped block, the first value is its title */
  .ds-owner .ds-table-stack > tbody { padding: 0; }
  .ds-owner .ds-table-stack > tbody > tr { margin: 0; padding: 10px 16px; border: 0; border-block-end: 8px solid var(--ds-canvas); border-radius: 0; background: var(--ds-surface); box-shadow: none; }
  .ds-owner .ds-table-stack > tbody > tr:last-child { border-block-end: 0; border-end-start-radius: var(--ds-card-r); border-end-end-radius: var(--ds-card-r); }
  .ds-owner .ds-table-stack > tbody > tr:first-child { border-start-start-radius: var(--ds-card-r); border-start-end-radius: var(--ds-card-r); }
  .ds-owner .ht-card-table .ds-table-stack > tbody > tr { border-radius: 0; }
  .ds-owner .ds-table-stack > tbody > tr > td { padding-block: 7px; border-block-end: 0; font-size: 14px; }
  .ds-owner .ds-table-stack > tbody > tr > td[data-label]::before { font-size: 13px; font-weight: 500; color: var(--ds-text-muted); }
  .ds-owner .ds-pager { justify-content: center; padding: 12px 16px; }
  .ds-owner .modal-dialog:not(.modal-fullscreen) { margin: 8px; }
  .ds-owner .modal-header { padding: 16px 18px 6px; }
  .ds-owner .modal-body { padding: 10px 18px 16px; }
  .ds-owner .modal-footer { padding: 12px 18px 16px; }
  .ds-owner .modal-footer > .btn { flex: 1 1 0; }
  .ds-owner .ht-form-actions > :is(.btn, .ds-btn) { flex: 1 1 0; }
  .ds-owner .footer .row { row-gap: 2px; text-align: center; }
  .ds-owner .footer .text-sm-end { text-align: center !important; }
}
/* ---------------------------------------------------------------- 10. alignment and rhythm
   One start edge inside a card (title, text, table), one height for page heads and card heads, no stretched cards. */
/* page head: the same height with or without an action button, so the first row of every page starts at one line */
.ds-owner .page-title-box { align-items: center; min-block-size: 44px; }
.ds-owner .page-title-box > .page-title-right:empty { display: none; }
.ds-owner .ht-row--between { row-gap: 12px; }
/* card heads: one height and one heading size everywhere; a link in the head lines up with the card edge */
.ds-owner .ds-card__head { min-block-size: 32px; }
.ds-owner .ds-card :is(h2, h3):not(.ds-empty__title, .modal-title) { margin-block: 0; font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -0.016em; color: var(--ds-text-strong); }
.ds-owner .ds-card__head > :is(.ds-btn--tertiary, .btn-link) { min-block-size: 32px; margin-inline-end: -12px; padding-inline: 12px; }
/* a table in a padded card runs edge to edge, and its first column starts on the card's text edge */
.ds-owner form.ds-card > .table-responsive { margin-inline: calc(var(--ds-card-pad) * -1); }
.ds-owner .table > :last-child > tr:last-child > * { border-block-end: 0; }
.ds-owner .table > tfoot > tr > * { border-block-end-color: var(--ds-border); }
/* row actions sit at the end of the row */
.ds-owner .table td:last-child > .ht-row { justify-content: flex-end; flex-wrap: nowrap; }
.ds-owner :is(.btn, .ds-btn)[aria-label]:has(> i:only-child) { flex: none; inline-size: var(--ds-ctl-md); padding-inline: 0; border-radius: 50%; color: var(--ds-text-2); }
.ds-owner :is(.btn-sm, .ds-btn--sm)[aria-label]:has(> i:only-child) { inline-size: var(--ds-ctl-sm); }
.ds-owner :is(.btn, .ds-btn)[aria-label][data-del]:has(> i:only-child):hover { background: var(--ds-danger-bg); color: var(--ds-danger-fg); }
/* field groups (a "%" in front of a number): one edge colour, round outer corners, square inner corners */
html.ds.ds-owner .input-group > :is(.form-control, .form-select, .input-group-text) { border-color: var(--ap-field); border-radius: var(--ds-ctl-r) !important; }
html.ds.ds-owner .input-group > :not(:first-child):is(.form-control, .form-select, .input-group-text, .btn) { border-start-start-radius: 0 !important; border-end-start-radius: 0 !important; }
html.ds.ds-owner .input-group > :is(.form-control, .form-select, .input-group-text, .btn):has(+ :is(.form-control, .form-select, .input-group-text, .btn)) { border-start-end-radius: 0 !important; border-end-end-radius: 0 !important; }
html.ds.ds-owner .input-group > .form-control:focus { z-index: 3; border-color: var(--ds-focus); }
.ds-owner .ds-form-section__desc { margin-block: -6px 0; font-size: 14px; }
/* detail pages: label / value pairs on an even grid; side cards keep their own height */
.ds-owner .ht-dl { gap: 18px 24px; margin: 0; }
.ds-owner .ht-dl dt { margin-block-end: 2px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ds-text-muted); }
.ds-owner .ht-dl dd { margin: 0; font-size: 15px; line-height: 22px; font-weight: 500; color: var(--ds-text-strong); }
.ds-owner .ht-stack { align-content: start; gap: var(--ds-gap-cards); }
.ds-owner .ht-stack > .ds-card { flex: none; }
.ds-owner .ds-card > :is(h2, h3):first-child { margin-block-end: 8px; }
.ds-owner .table :is(td, th).text-end { white-space: nowrap; }
.ds-owner .table td > .form-control-sm { min-inline-size: 88px; }
.ds-owner .ht-wallet__amount { font-size: 28px; line-height: 1.15; letter-spacing: -0.026em; }
.ds-owner .cf-stars { font-size: 15px; letter-spacing: 1px; color: var(--ds-highlight); }
/* long forms: Cancel / Save stay in reach in a floating bar at the bottom of the window */
.ds-owner .ht-form > .ht-form-actions { position: sticky; inset-block-end: 16px; z-index: 5; inline-size: fit-content; margin-block-start: var(--ds-gap-cards); margin-inline-start: auto; padding: 8px; border-radius: calc(var(--ds-ctl-md) / 2 + 8px); background: var(--ds-surface); box-shadow: var(--ds-sh-3); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .ds-owner .ht-form > .ht-form-actions { background: var(--ap-sheet); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); }
}
.ds-owner[data-radius="sharp"] .ht-form > .ht-form-actions { border-radius: 10px; }
@media (max-width: 767.98px) {
  .ds-owner .ht-form > .ht-form-actions { inset-block-end: 12px; inline-size: auto; margin-inline-start: 0; }
  .ds-owner .ht-row--between > .ht-row:has(> .btn, > .ds-btn) { inline-size: 100%; }
  .ds-owner .ht-row--between > .ht-row > :is(.btn, .ds-btn) { flex: 1 1 auto; }
  .ds-owner .ht-dl { gap: 14px 16px; }
}
/* ---------------------------------------------------------------- 11. the data table
   (KPI tiles are in section 14.) */
/* tables: the header is a soft band, rows are divided by a faint line */
.ds-owner .table > thead > tr > * { block-size: 40px; background-color: var(--ds-sunken); border-block-end: 0; font-size: 12px; font-weight: 600; color: var(--ds-text-muted); }
.ds-owner .table > tbody > tr > * { border-block-end: 1px solid color-mix(in srgb, var(--ds-border) 70%, transparent); }
.ds-owner .table > :last-child > tr:last-child > * { border-block-end: 0; }
/* people in a table: initials on a soft colour, a different one from row to row */
.ds-owner .table > tbody > tr { --tint: #2F5D9B; }
.ds-owner .table > tbody > tr:nth-child(6n + 2) { --tint: #8A5BA6; }
.ds-owner .table > tbody > tr:nth-child(6n + 3) { --tint: #2F8A5F; }
.ds-owner .table > tbody > tr:nth-child(6n + 4) { --tint: #B7791F; }
.ds-owner .table > tbody > tr:nth-child(6n + 5) { --tint: #B4505F; }
.ds-owner .table > tbody > tr:nth-child(6n + 6) { --tint: #2C8C99; }
.ds-owner .table .ds-ident__media:not(img, .ds-ident__media--thumb) { background: color-mix(in srgb, var(--tint) 15%, var(--ds-surface)); color: color-mix(in srgb, var(--tint) 70%, var(--ds-text-strong)); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
@media (min-width: 768px) {
  /* list tables: the header band and the row highlight are rounded and sit inside the card, clear of its edges */
  .ds-owner .ht-table-bar { padding-block-end: 12px; border-block-end: 0; }
  .ds-owner .ht-card-table .ht-table-wrap { padding: 0 12px 6px; }
  /* a table wider than its card: the pinned actions column goes to the card edge, so nothing shows in the side padding */
  .ds-owner .ht-card-table .ht-table-wrap > .table > * > tr > .ds-col-actions { inset-inline-end: -12px; }
  .ds-owner .ht-table-wrap > .table { border-collapse: separate; border-spacing: 0; }
  .ds-owner .ht-card-table .ht-table-wrap > .table > :not(caption) > * > :first-child { padding-inline-start: 12px; }
  .ds-owner .ht-card-table .ht-table-wrap > .table > :not(caption) > * > :last-child { padding-inline-end: 12px; }
  .ds-owner .ht-table-wrap > .table > thead > tr > :first-child { border-start-start-radius: 12px; border-end-start-radius: 12px; }
  .ds-owner .ht-table-wrap > .table > thead > tr > :last-child { border-start-end-radius: 12px; border-end-end-radius: 12px; }
  .ds-owner .ht-table-wrap > .table > tbody > tr > td { block-size: 62px; padding-block: 10px; transition: background-color .12s var(--ds-ease-out); }
  .ds-owner .ht-table-wrap > .table > tbody > tr > :first-child { border-start-start-radius: 12px; border-end-start-radius: 12px; }
  .ds-owner .ht-table-wrap > .table > tbody > tr > :last-child { border-start-end-radius: 12px; border-end-end-radius: 12px; }
  @media (hover: hover) {
    .ds-owner .ht-table-wrap > .table > tbody > tr:hover > * { background-color: color-mix(in srgb, var(--ds-accent) 5%, var(--ds-surface)); border-block-end-color: transparent; }
    .ds-owner .ht-table-wrap > .table > tbody > tr:has(+ tr:hover) > * { border-block-end-color: transparent; }
    .ds-owner .ht-table-wrap > .table > tbody > tr:hover > .ds-col-actions::before { background: none; }
  }
  .ds-owner .ht-table-wrap > .table > thead > tr > .ds-col-actions, .ds-owner .ht-table-wrap > .table > thead > tr > :last-child { background-color: var(--ds-sunken); }
  .ds-owner .ds-pager { border-block-start: 0; padding-block: 8px 16px; }
}
/* ---------------------------------------------------------------- 12. narrow cards and in-between widths
   A card can be narrow on a wide screen too (three cards in a row beside the side menu), so nothing here depends on the
   window being a phone. */
/* nothing inside a grid may push its card wider than its column */
.ds-owner .ht-grid > *, .ds-owner .ht-stack > *, .ds-owner .ds-kpis > *, .ds-owner .ht-settings > * { min-inline-size: 0; }
.ds-owner .ds-card__head > :is(h2, h3, h4) { min-inline-size: 0; overflow-wrap: anywhere; }
/* "name · bar · amount" rows: the amount always fits; the name gives way first (ellipsis), then the bar gets shorter */
.ds-owner .ht-list > li { min-inline-size: 0; }
.ds-owner .ht-list > li > :first-child { min-inline-size: 0; }
.ds-owner .ht-list > li:has(> .ht-bar) > span:first-child { flex: 0 1 150px; min-inline-size: 0 !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-owner .ht-list > li > .ht-bar { flex: 1 1 48px; min-inline-size: 28px; }
.ds-owner .ht-list > li > :is(b, .ds-num, .ds-count, .ds-pill):last-child { flex: none; white-space: nowrap; }
.ds-owner .ht-list > li > a { display: inline-flex; align-items: center; gap: 10px; overflow: hidden; }
/* card grids open up later, because the side menu takes 264px of the window: two columns from 1200, three from 1400 */
@media (min-width: 768px) and (max-width: 1399.98px) {
  .ds-owner .ht-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-owner .ht-grid--3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .ds-owner .ht-grid--2, .ds-owner .ht-grid--21 { grid-template-columns: minmax(0, 1fr); }
}
/* a link or tag in a card head keeps to one line; the title beside it wraps instead */
.ds-owner .ds-card__head > :is(a, .btn, .ds-btn, .ds-pill, .ds-demo-tag) { flex: none; white-space: nowrap; }
/* a table in a half-width card: the person keeps a readable width and the table scrolls inside the card if it must */
.ds-owner .ht-panel .table td .ds-ident { min-inline-size: 9.5rem; }
.ds-owner .ht-panel .table > tbody > tr > td { white-space: nowrap; }
/* beside the side menu three tiles are too narrow for the "+9% vs previous period" line: two per row until 1200 */
@media (min-width: 992px) and (max-width: 1199.98px) { .ds-owner .ds-kpis:has(.ds-delta) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ds-owner .ds-delta { max-inline-size: 100%; }
/* charts never get wider than their card */
.ds-owner .ht-chart { min-inline-size: 0; max-inline-size: 100%; }
.ds-owner .ht-chart > canvas { max-inline-size: 100%; }

/* ---------------------------------------------------------------- 13. side menu and brand: midnight and gold
   The menu is a midnight panel in the palette's darkest shade. The current page is a lit row with a gold icon and a
   gold mark on its start edge. From 992px the brand above the menu is part of the same panel. */
.ds-owner .vertical-menu { background: var(--ow-night); border-inline-end: 0; scrollbar-color: var(--ow-night-fill-2) transparent; }
.ds-owner #side-menu .menu-title { padding: 22px 24px 8px !important; font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ow-on-night-3); }
.ds-owner #side-menu .menu-title:first-child { padding-block-start: 14px !important; }
.ds-owner #sidebar-menu ul li a { position: relative; margin-inline: 12px; color: var(--ow-on-night-2); font-weight: 500; transition: background-color .15s var(--ds-ease-out), color .15s var(--ds-ease-out); }
.ds-owner #sidebar-menu ul li a i { color: var(--ow-on-night-3); transition: color .15s var(--ds-ease-out); }
.ds-owner #sidebar-menu ul li ul.sub-menu li a { margin-inline: 12px; color: var(--ow-on-night-2); }
@media (hover: hover) {
  .ds-owner #sidebar-menu ul li a:hover { background-color: var(--ow-night-fill); color: var(--ow-on-night); }
  .ds-owner #sidebar-menu ul li a:hover i { color: var(--ow-on-night); }
}
.ds-owner #sidebar-menu .mm-active > a,
.ds-owner #sidebar-menu .mm-active .active,
.ds-owner #sidebar-menu ul li a.active { color: #fff !important; font-weight: 600; }
.ds-owner #sidebar-menu .mm-active > a > i,
.ds-owner #sidebar-menu ul li a.active i { color: var(--ow-gold) !important; }
.ds-owner #sidebar-menu ul li a.active,
.ds-owner #sidebar-menu ul li ul.sub-menu li a.active,
.ds-owner[data-theme="dark"] #sidebar-menu ul li a.active,
.ds-owner[data-theme="dark"] #sidebar-menu ul li ul.sub-menu li a.active { background-color: var(--ow-night-fill-2); box-shadow: inset 0 0 0 1px var(--ow-night-hair); }
.ds-owner #sidebar-menu ul li a.active::before { content: ""; position: absolute; inset-block: 10px; inset-inline-start: 0; inline-size: 3px; block-size: auto; border-radius: 0 3px 3px 0; background: var(--ow-gold); }
[dir="rtl"].ds-owner #sidebar-menu ul li a.active::before { border-radius: 3px 0 0 3px; }
.ds-owner #sidebar-menu .mm-active > a.has-arrow { background-color: transparent; box-shadow: none; }
.ds-owner #sidebar-menu .mm-active > a.has-arrow::before { content: none; }
.ds-owner #sidebar-menu .has-arrow:after { color: var(--ow-on-night-3); }
.ds-owner #sidebar-menu ul li a:focus-visible { outline: 2px solid var(--ow-gold); outline-offset: -2px; }
.ds-owner #sidebar-menu .ds-count { background: var(--ow-gold); color: var(--ds-on-highlight); }

@media (min-width: 992px) {
  /* the brand sits on the same midnight panel, with the light logo */
  .ds-owner #page-topbar .navbar-header .navbar-brand-box { background: var(--ow-night-1); border-inline-end: 0; }
  .ds-owner #page-topbar .navbar-brand-box .ht-logo--on-light { display: none; }
  .ds-owner #page-topbar .navbar-brand-box .ht-logo--on-dark { display: block; }
  .ds-owner #page-topbar .navbar-brand-box .ds-brand__app { background: color-mix(in srgb, var(--ow-gold) 18%, transparent); color: color-mix(in srgb, var(--ow-gold) 78%, #fff); }
  .ds-owner #page-topbar .navbar-brand-box .ds-brand:focus-visible { outline-color: var(--ow-gold); }
  /* rail: the fly-out label and sub-menu are midnight too */
  .ds-owner .vertical-collpsed .vertical-menu #sidebar-menu > ul > li:is(:hover, :focus-within) > a { background-color: var(--ow-night-fill-2); }
  .ds-owner .vertical-collpsed .vertical-menu #sidebar-menu > ul > li:is(:hover, :focus-within) > a > span:not(.badge):not(.ds-count),
  .ds-owner .vertical-collpsed .vertical-menu #sidebar-menu > ul > li:is(:hover, :focus-within) > ul { background: var(--ow-night-1); color: var(--ow-on-night); box-shadow: 0 0 0 1px var(--ow-night-hair), 0 20px 44px -12px rgba(0, 0, 0, .5); }
  .ds-owner .vertical-collpsed #side-menu .menu-title::after { background: var(--ow-night-hair); }
}
@media (max-width: 991.98px) {
  /* the menu opens as a rounded midnight sheet that floats over the page */
  .ds-owner .vertical-menu { background: var(--ow-night); box-shadow: 0 0 0 1px var(--ow-night-hair), 0 34px 70px -18px rgba(0, 0, 0, .55); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .ds-owner #sidebar-menu ul li a.active, .ds-owner #sidebar-menu ul li ul.sub-menu li a.active { background-color: var(--ow-night-fill-2); box-shadow: inset 0 0 0 1px var(--ow-night-hair); }
}

/* ---------------------------------------------------------------- 14. owner parts */
/* page: a larger title with a tight track */
.ds-owner .page-title-box h1 { font-size: clamp(26px, calc(20px + .9vw), 34px); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.ds-owner .page-content { padding-block-start: calc(var(--bo-top, 64px) + 28px); }
@media (max-width: 767.98px) { .ds-owner .page-content { padding-block-start: calc(var(--bo-top, 56px) + 18px); } }

/* hotel switcher: a soft pill in the top bar */
.ds-owner .ds-ow-switch__btn { border: 0; border-radius: 14px; background: transparent; transition: background-color .15s var(--ds-ease-out); }
.ds-owner button.ds-ow-switch__btn:hover { background: var(--ap-fill); }
.ds-owner .ds-ow-switch__btn[aria-expanded="true"] { background: var(--ap-fill-hover); }
.ds-owner .ds-ow-switch__thumb { border-radius: 11px; background: linear-gradient(145deg, var(--ow-night-1), var(--ow-night-2)); color: var(--ow-gold); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.ds-owner .ds-ow-switch__name { font-weight: 600; letter-spacing: -0.012em; color: var(--ds-text-strong); }
.ds-owner .ds-ow-switch__meta { color: var(--ds-text-muted); }
.ds-owner #page-topbar .cf-avatar { background: linear-gradient(145deg, var(--ow-night-1), var(--ow-night-2)); color: var(--ow-gold); box-shadow: 0 0 0 2px var(--ds-surface), 0 1px 3px rgba(0, 0, 0, .2); }
.ds-owner #page-topbar .ds-count { box-shadow: 0 0 0 2px var(--ds-canvas); }

/* today strip: what needs you now. Each tile lifts on hover; a zero is quiet. */
.ds-owner .ht-needs { gap: 12px; margin-block-end: var(--ds-gap-cards); }
.ds-owner .ht-need { padding: 14px 16px; border: 0; border-radius: var(--ds-r-lg); background: var(--ds-surface); box-shadow: var(--ds-sh-card); transition: transform .2s var(--ds-ease-out), box-shadow .2s var(--ds-ease-out); }
.ds-owner .ht-need__ic { border-radius: 12px; background: var(--ds-highlight-soft); color: var(--ds-highlight-text); }
.ds-owner .ht-need__text b { font-weight: 600; letter-spacing: -0.012em; color: var(--ds-text-strong); }
.ds-owner .ht-need__text small { color: var(--ds-text-muted); }
.ds-owner .ht-need__n { font-size: 24px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ds-text-strong); }
.ds-owner .ht-need.is-zero .ht-need__n { color: var(--ds-text-muted); font-weight: 600; }
@media (hover: hover) { .ds-owner .ht-need:hover { transform: translateY(-2px); box-shadow: var(--ds-sh-card), 0 18px 36px -22px rgba(20, 16, 8, .34); } }

/* tablets: the five tiles share one row instead of leaving one alone on a second row */
@media (min-width: 576px) and (max-width: 1199.98px) { .ds-owner .ht-needs { grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); } }

/* KPI tiles: white tiles with a gold icon; the first tile of a row of tiles is the hero, in midnight and gold */
.ds-owner .ds-kpis > .ds-kpi { position: relative; overflow: hidden; }
.ds-owner .ds-kpi__icon { border-radius: 12px; background: var(--ds-highlight-soft); color: var(--ds-highlight-text); }
.ds-owner .ds-kpi__label { font-size: 13px; font-weight: 500; letter-spacing: -0.004em; color: var(--ds-text-muted); }
.ds-owner .ds-kpi__value { font-weight: 700; letter-spacing: -0.032em; font-variant-numeric: tabular-nums; }
.ds-owner .ds-kpi__value small { font-size: .5em; font-weight: 500; letter-spacing: 0; color: var(--ds-text-muted); }
.ds-owner .ds-kpis > .ds-kpi:first-child { background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--ow-gold) 30%, transparent) 0%, transparent 55%), var(--ow-night); box-shadow: 0 0 0 1px var(--ow-night-hair), 0 18px 40px -22px color-mix(in srgb, var(--ow-night-2) 80%, transparent); }
.ds-owner .ds-kpis > .ds-kpi:first-child .ds-kpi__label { color: var(--ow-on-night-2); }
.ds-owner .ds-kpis > .ds-kpi:first-child .ds-kpi__value { color: #fff; }
.ds-owner .ds-kpis > .ds-kpi:first-child .ds-kpi__value small,
.ds-owner .ds-kpis > .ds-kpi:first-child .ds-kpi__foot { color: var(--ow-on-night-3); }
.ds-owner .ds-kpis > .ds-kpi:first-child .ds-kpi__icon { background: color-mix(in srgb, var(--ow-gold) 20%, transparent); color: var(--ow-gold); }
.ds-owner .ds-kpis > .ds-kpi:first-child .ds-delta { background: rgba(255, 255, 255, .12); color: #fff; }
@media (hover: hover) { .ds-owner .ds-kpis > a.ds-kpi:hover { transform: translateY(-2px); box-shadow: var(--ds-sh-card), 0 18px 36px -22px rgba(20, 16, 8, .34); } }

/* cards: a little more air in the head; segmented switches and tabs as pills */
.ds-owner .ds-card__head { margin-block-end: 10px; }
.ds-owner .ds-seg { gap: 2px; padding: 3px; border: 0; border-radius: var(--ap-pill); background: var(--ap-fill); }
.ds-owner .ds-seg > :is(button, a, label) { border-radius: var(--ap-pill); font-weight: 500; letter-spacing: -0.006em; }
.ds-owner .ds-seg > :is([aria-pressed="true"], [aria-selected="true"], [aria-current], .is-on, .active),
.ds-owner .ds-seg > input:checked + label { background: var(--ds-surface); color: var(--ds-text-strong); font-weight: 600; box-shadow: 0 1px 2px rgba(20, 16, 8, .14), 0 0 0 1px rgba(40, 30, 10, .04); }
.ds-owner[data-radius="sharp"] .ds-seg, .ds-owner[data-radius="sharp"] .ds-seg > * { border-radius: 6px; }

.ds-owner .ds-tabs { gap: 4px; margin-block-end: var(--ds-gap-cards); padding: 4px; border: 0; border-radius: var(--ap-pill); background: var(--ap-fill); inline-size: fit-content; max-inline-size: 100%; }
.ds-owner .ds-tabs > :is(a, button) { min-block-size: 36px; margin: 0; padding-inline: 16px; border: 0; border-radius: var(--ap-pill); font-weight: 500; letter-spacing: -0.008em; color: var(--ds-text-2); transition: background-color .15s var(--ds-ease-out), color .15s var(--ds-ease-out); }
@media (hover: hover) { .ds-owner .ds-tabs > :is(a, button):hover { background: var(--ap-fill); color: var(--ds-text-strong); } }
.ds-owner .ds-tabs > :is([aria-current], [aria-selected="true"]) { background: var(--ds-surface); color: var(--ds-text-strong); font-weight: 600; box-shadow: 0 1px 2px rgba(20, 16, 8, .14), 0 0 0 1px rgba(40, 30, 10, .04); }
.ds-owner[data-radius="sharp"] .ds-tabs, .ds-owner[data-radius="sharp"] .ds-tabs > * { border-radius: 6px; }
@media (max-width: 767.98px) { .ds-owner .ds-tabs { inline-size: auto; margin-inline: calc(var(--ds-gutter, 16px) * -1); padding-inline: var(--ds-gutter, 16px); border-radius: 0; background: transparent; } .ds-owner .ds-tabs > :is(a, button) { background: var(--ap-fill); } .ds-owner .ds-tabs > :is([aria-current], [aria-selected="true"]) { background: var(--ds-accent); color: var(--ds-on-accent); box-shadow: none; } }

/* occupancy grid ("rooms sold"): rounder cells on the sunken tone */
.ds-owner .ht-occ { border-spacing: 4px; }
.ds-owner .ht-occ td { padding-block: 8px; border-radius: 9px; font-weight: 500; }
.ds-owner .ht-occ th { font-size: 12px; font-weight: 500; }
.ds-owner .ht-occ th[scope="row"] { font-weight: 600; color: var(--ds-text-strong); }

/* room board: each room is a soft tile; its status is a coloured top edge and dot instead of a thick side border */
.ds-owner .ht-unit { border: 0; border-radius: var(--ds-r-lg); background: var(--ds-surface); box-shadow: 0 0 0 1px var(--ds-border), inset 0 3px 0 var(--u, var(--ds-border)); transition: transform .18s var(--ds-ease-out), box-shadow .18s var(--ds-ease-out); }
.ds-owner .ht-unit[data-status="out_of_order"] { background: var(--ds-sunken); }
.ds-owner .ht-unit__no { font-size: 20px; line-height: 1.1; font-weight: 700; letter-spacing: -0.026em; font-variant-numeric: tabular-nums; color: var(--ds-text-strong); }
.ds-owner .ht-unit__type { color: var(--ds-text-muted); }
@media (hover: hover) { .ds-owner .ht-unit:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--ds-border), inset 0 3px 0 var(--u, var(--ds-border)), 0 16px 30px -20px rgba(20, 16, 8, .4); } }
.ds-owner .ht-floor > h3 { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ds-text-muted); }
.ds-owner .ht-legend { font-size: 12.5px; color: var(--ds-text-2); }

.ds-owner .ht-unit { padding-block-start: 16px; }
/* a room with its menu open sits above the rooms after it, so the menu is never covered */
.ds-owner .ht-unit:has(.dropdown-menu.show, [aria-expanded="true"]) { z-index: 30; transform: none; }
.ds-owner .ht-unit .dropdown-menu { z-index: 31; }
/* timeline and month calendar: one rounded card, hairline grid, rounder bars */
.ds-owner .ht-tl { border: 0; border-radius: var(--ds-card-r); box-shadow: var(--ds-sh-card); scrollbar-width: thin; scrollbar-color: var(--ap-fill-hover) transparent; }
.ds-owner .ht-tl__head .ht-tl__side, .ds-owner .ht-tl__head { background: var(--ds-sunken); }
.ds-owner .ht-tl__side b { font-weight: 600; letter-spacing: -0.01em; }
.ds-owner .ht-tl__day b { font-weight: 600; }
.ds-owner .ht-tl__bar { border-radius: 9px; font-weight: 600; letter-spacing: -0.006em; box-shadow: 0 1px 2px rgba(0, 0, 0, .14); }
.ds-owner .ht-month { border: 0; border-radius: var(--ds-card-r); box-shadow: var(--ds-sh-card); }
.ds-owner .ht-month__dow { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.ds-owner .ht-ev { border-radius: 6px; font-weight: 500; }
/* small parts */
/* a table that scrolls sideways keeps its hidden labels inside (they made the whole page scroll) */
.ds-owner .table-responsive, .ds-owner .ht-table-wrap { position: relative; scrollbar-width: thin; scrollbar-color: var(--ap-fill-hover) transparent; }
.ds-owner .ht-muted { color: var(--ds-text-muted); }
.ds-owner .ds-ident__media:not(img, .ds-ident__media--thumb) { font-weight: 600; letter-spacing: .02em; }
.ds-owner .ds-card :is(.btn, .ds-btn).btn-sm { font-weight: 600; }
.ds-owner .btn-primary, .ds-owner .ds-btn--primary { box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 8px 18px -10px color-mix(in srgb, var(--ds-accent) 70%, transparent); }
.ds-owner .footer { background: transparent; }
.ds-owner .ht-photo, .ds-owner .ht-photos img { border-radius: var(--ds-r-lg); }

/* ---------------------------------------------------------------- 15. phones */
@media (max-width: 767.98px) {
  /* the tab bar floats above the page as a midnight pill; the current tab is gold */
  .ds-owner .ds-bo-tabbar { inset-inline: 12px; inset-block-end: calc(10px + env(safe-area-inset-bottom, 0px)); inline-size: auto; block-size: 62px; padding: 6px; border: 0; border-radius: 22px; background: var(--ow-night); box-shadow: 0 0 0 1px var(--ow-night-hair), 0 18px 40px -12px rgba(0, 0, 0, .5); }
  .ds-owner .ht-bo-tabbar > * { border-radius: 16px; color: var(--ow-on-night-3); font-size: 10.5px; font-weight: 600; letter-spacing: .01em; transition: background-color .15s var(--ds-ease-out), color .15s var(--ds-ease-out); }
  .ds-owner .ht-bo-tabbar i { font-size: 21px; }
  .ds-owner .ht-bo-tabbar .is-on { background: var(--ow-night-fill-2); color: var(--ow-gold); }
  .ds-owner body:has(.ds-bo-tabbar) .footer { padding-block-end: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .ds-owner .ht-needs { gap: 10px; }
  .ds-owner .ht-need { padding: 12px 14px; }
  .ds-owner .ds-kpis { gap: 12px; }
  .ds-owner .ds-kpi__value { font-size: clamp(20px, 6.2vw, 26px); overflow-wrap: anywhere; }
  .ds-owner .page-title-box { row-gap: 12px; }
  .ds-owner .page-title-right > :is(.btn, .ds-btn):only-child { min-block-size: 44px; }
}
/* small phones: two tiles per row is too tight for an amount with a currency */
@media (max-width: 767.98px) {
  html.ds.ds-owner .ds-kpis, html.ds.ds-owner .ds-kpis:has(.ds-delta) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.ds.ds-owner .ds-kpis > .ds-kpi:first-child { grid-column: 1 / -1; }
  html.ds.ds-owner .ds-kpis > .ds-kpi:last-child:nth-child(odd) { grid-column: auto; }
  html.ds.ds-owner .ds-kpis > .ds-kpi:last-child:nth-child(even) { grid-column: 1 / -1; }
  html.ds.ds-owner .ds-kpis:has(.ds-delta) .ds-kpi__value { font-size: clamp(20px, 6.2vw, 26px); }
  .ds-owner .ds-kpis > .ds-kpi:not(:first-child) .ds-delta { white-space: normal; border-radius: 12px; }
}

/* ---------------------------------------------------------------- 16. dark mode */
.ds-owner[data-theme="dark"] .vertical-menu { box-shadow: inset -1px 0 0 var(--ow-night-hair); }
.ds-owner[data-theme="dark"] .ds-kpi__icon, .ds-owner[data-theme="dark"] .ht-need__ic { background: color-mix(in srgb, var(--ow-gold) 16%, transparent); color: var(--ow-gold); }
.ds-owner[data-theme="dark"] .ds-kpis > .ds-kpi:first-child { background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--ow-gold) 24%, transparent) 0%, transparent 55%), linear-gradient(180deg, #1B1F29, #14171E); }
.ds-owner[data-theme="dark"] .ds-seg > :is([aria-pressed="true"], [aria-selected="true"], [aria-current], .is-on, .active),
.ds-owner[data-theme="dark"] .ds-seg > input:checked + label,
.ds-owner[data-theme="dark"] .ds-tabs > :is([aria-current], [aria-selected="true"]) { background: var(--ds-hover); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.ds-owner[data-theme="dark"] .ds-ow-switch__thumb, .ds-owner[data-theme="dark"] #page-topbar .cf-avatar { background: linear-gradient(145deg, #262A33, #1B1E26); }

@media (prefers-reduced-motion: reduce) { .ds-owner :is(.ht-need, .ht-unit, .ds-kpi) { transition: none; transform: none; } }
@media print { .ds-owner :is(.ds-card, .ds-kpi, .ht-need) { box-shadow: none; border: 1px solid #ddd; } .ds-owner .ds-kpis > .ds-kpi:first-child { background: #fff; } }

/* ---------------------------------------------------------------- 17. dashboard tiles, richer
   Each KPI tile has its own jewel tone (--kpi): a soft glow in the top corner, a solid icon chip, faint rings in the
   bottom corner and a thin line of colour along the bottom edge. The first tile stays the midnight-and-gold hero.
   Change a tone here; the glow, the chip, the rings and the line follow it. */
.ds-owner .ds-kpis > .ds-kpi { --kpi: #C9972B; isolation: isolate; gap: 4px; padding: 20px var(--ds-card-pad) 20px;
  background: radial-gradient(95% 130% at 100% 0%, color-mix(in srgb, var(--kpi) 14%, transparent) 0%, transparent 62%), var(--ds-surface);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--kpi) 16%, var(--ds-border-card)), 0 1px 2px rgba(40, 30, 10, .04), 0 18px 36px -26px color-mix(in srgb, var(--kpi) 60%, rgba(40, 30, 10, .5)); }
.ds-owner .ds-kpis > .ds-kpi:nth-child(6n + 2) { --kpi: #2F6FD0; }
.ds-owner .ds-kpis > .ds-kpi:nth-child(6n + 3) { --kpi: #1F9D6B; }
.ds-owner .ds-kpis > .ds-kpi:nth-child(6n + 4) { --kpi: #8A5BD6; }
.ds-owner .ds-kpis > .ds-kpi:nth-child(6n + 5) { --kpi: #D9722E; }
.ds-owner .ds-kpis > .ds-kpi:nth-child(6n + 6) { --kpi: #D4A017; }
.ds-owner .ds-kpis > .ds-kpi::after { content: ""; position: absolute; z-index: -1; inset-block-end: -58px; inset-inline-end: -58px; inline-size: 176px; block-size: 176px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 15px, color-mix(in srgb, var(--kpi) 15%, transparent) 15px 16px); pointer-events: none; }
.ds-owner .ds-kpis > .ds-kpi::before { content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; block-size: 3px; background: linear-gradient(90deg, var(--kpi), color-mix(in srgb, var(--kpi) 0%, transparent) 72%); opacity: .7; pointer-events: none; }
[dir="rtl"].ds-owner .ds-kpis > .ds-kpi::before { background: linear-gradient(270deg, var(--kpi), color-mix(in srgb, var(--kpi) 0%, transparent) 72%); }
.ds-owner .ds-kpis > .ds-kpi .ds-kpi__top { margin-block-end: 10px; }
.ds-owner .ds-kpis > .ds-kpi .ds-kpi__label { font-size: 13.5px; font-weight: 600; letter-spacing: -0.006em; color: var(--ds-text-2); }
.ds-owner .ds-kpis > .ds-kpi .ds-kpi__icon { inline-size: 44px; block-size: 44px; border-radius: 14px; background: linear-gradient(145deg, color-mix(in srgb, var(--kpi) 72%, #fff), var(--kpi)); color: #fff; font-size: 21px; box-shadow: 0 10px 18px -10px var(--kpi), inset 0 1px 0 rgba(255, 255, 255, .4); }
.ds-owner .ds-kpis > .ds-kpi .ds-kpi__value { font-size: clamp(24px, calc(15px + 1.25vw), 36px); line-height: 1.1; }
.ds-owner .ds-kpis > .ds-kpi .ds-kpi__foot { margin-block-start: 6px; font-size: 12.5px; }
.ds-owner .ds-kpis > .ds-kpi .ds-delta { margin-block-start: 6px; font-weight: 600; }
@media (hover: hover) { .ds-owner .ds-kpis > .ds-kpi { transition: transform .22s var(--ds-ease-out), box-shadow .22s var(--ds-ease-out); } .ds-owner .ds-kpis > .ds-kpi:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--kpi) 30%, var(--ds-border-card)), 0 26px 44px -26px color-mix(in srgb, var(--kpi) 75%, rgba(40, 30, 10, .5)); } }

/* the hero tile: midnight with a gold glow, gold rings and a gold line along the top */
.ds-owner .ds-kpis > .ds-kpi:first-child { --kpi: var(--ow-gold);
  background: radial-gradient(85% 120% at 100% 0%, color-mix(in srgb, var(--ow-gold) 38%, transparent) 0%, transparent 58%), radial-gradient(70% 90% at 0% 100%, color-mix(in srgb, var(--ds-teal-500) 45%, transparent) 0%, transparent 65%), var(--ow-night);
  box-shadow: 0 0 0 1px var(--ow-night-hair), 0 24px 44px -24px color-mix(in srgb, var(--ow-night-2) 85%, transparent); }
.ds-owner .ds-kpis > .ds-kpi:first-child::after { background: repeating-radial-gradient(circle, transparent 0 15px, color-mix(in srgb, var(--ow-gold) 26%, transparent) 15px 16px); }
.ds-owner .ds-kpis > .ds-kpi:first-child::before { inset-block: 0 auto; block-size: 2px; background: linear-gradient(90deg, transparent, var(--ow-gold) 50%, transparent); opacity: .9; }
.ds-owner .ds-kpis > .ds-kpi:first-child .ds-kpi__label { color: var(--ow-on-night-2); }
.ds-owner .ds-kpis > .ds-kpi:first-child .ds-kpi__icon { background: linear-gradient(145deg, color-mix(in srgb, var(--ow-gold) 70%, #fff), var(--ow-gold)); color: var(--ds-on-highlight); box-shadow: 0 10px 20px -8px color-mix(in srgb, var(--ow-gold) 80%, transparent), inset 0 1px 0 rgba(255, 255, 255, .5); }
.ds-owner .ds-kpis > .ds-kpi:first-child .ds-kpi__value { background: linear-gradient(180deg, #fff 30%, color-mix(in srgb, var(--ow-gold) 45%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ds-owner .ds-kpis > .ds-kpi:first-child .ds-delta { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
@media (hover: hover) { .ds-owner .ds-kpis > .ds-kpi:first-child:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--ow-gold) 40%, transparent), 0 30px 50px -24px color-mix(in srgb, var(--ow-night-2) 90%, transparent); } }

/* today strip: each tile has its own tone; the icon is a tinted chip and a line of colour appears on hover */
.ds-owner .ht-need { --kpi: #D9722E; position: relative; overflow: hidden; padding: 16px 18px; background: radial-gradient(110% 140% at 0% 0%, color-mix(in srgb, var(--kpi) 9%, transparent) 0%, transparent 60%), var(--ds-surface); }
.ds-owner .ht-need:nth-child(5n + 2) { --kpi: #2F6FD0; }
.ds-owner .ht-need:nth-child(5n + 3) { --kpi: #8A5BD6; }
.ds-owner .ht-need:nth-child(5n + 4) { --kpi: #C9972B; }
.ds-owner .ht-need:nth-child(5n + 5) { --kpi: #1F9D6B; }
.ds-owner .ht-need.is-zero { --kpi: var(--ds-success-solid); }
.ds-owner .ht-need .ht-need__ic { inline-size: 44px; block-size: 44px; border-radius: 14px; background: color-mix(in srgb, var(--kpi) 15%, var(--ds-surface)); color: color-mix(in srgb, var(--kpi) 82%, var(--ds-text-strong)); font-size: 21px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--kpi) 18%, transparent); }
.ds-owner .ht-need .ht-need__n { font-size: 28px; }
.ds-owner .ht-need:not(.is-zero) .ht-need__n { color: color-mix(in srgb, var(--kpi) 55%, var(--ds-text-strong)); }
.ds-owner .ht-need::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; block-size: 3px; background: linear-gradient(90deg, var(--kpi), color-mix(in srgb, var(--kpi) 0%, transparent) 78%); opacity: 0; transition: opacity .2s var(--ds-ease-out); }
@media (hover: hover) { .ds-owner .ht-need:hover::after { opacity: .85; } }

@media (max-width: 767.98px) {
  .ds-owner .ds-kpis > .ds-kpi { padding: 16px 16px 18px; }
  .ds-owner .ds-kpis > .ds-kpi .ds-kpi__icon, .ds-owner .ht-need .ht-need__ic { inline-size: 38px; block-size: 38px; border-radius: 12px; font-size: 18px; }
  html.ds.ds-owner .ds-kpis > .ds-kpi .ds-kpi__value, html.ds.ds-owner .ds-kpis:has(.ds-delta) > .ds-kpi .ds-kpi__value { font-size: clamp(21px, 6.4vw, 28px); }
  html.ds.ds-owner .ds-kpis > .ds-kpi:first-child .ds-kpi__value { font-size: clamp(26px, 8vw, 34px); }
  .ds-owner .ds-kpis > .ds-kpi::after { inline-size: 132px; block-size: 132px; inset-block-end: -50px; inset-inline-end: -50px; }
  .ds-owner .ht-need { padding: 13px 14px; }
  .ds-owner .ht-need .ht-need__n { font-size: 24px; }
}
.ds-owner[data-theme="dark"] .ds-kpis > .ds-kpi:not(:first-child) { background: radial-gradient(95% 130% at 100% 0%, color-mix(in srgb, var(--kpi) 20%, transparent) 0%, transparent 62%), var(--ds-surface); box-shadow: 0 0 0 1px color-mix(in srgb, var(--kpi) 22%, rgba(255, 255, 255, .07)); }
.ds-owner[data-theme="dark"] .ht-need .ht-need__ic { background: color-mix(in srgb, var(--kpi) 22%, transparent); color: color-mix(in srgb, var(--kpi) 60%, #fff); }
.ds-owner[data-theme="dark"] .ht-need:not(.is-zero) .ht-need__n { color: color-mix(in srgb, var(--kpi) 45%, #fff); }
@media print { .ds-owner .ds-kpis > .ds-kpi::after, .ds-owner .ds-kpis > .ds-kpi::before { display: none; } .ds-owner .ds-kpis > .ds-kpi:first-child .ds-kpi__value { color: #000; background: none; } }