/* =====================================================================
   v33 — one clean system. A last layer over app.css for every staff page:
   line icons instead of emoji, calmer cards and shadows, fields and buttons
   of one height, readable tables, page titles that line up, a tidy phone bar.
   Everything is under body.lux, so it wins without touching a single page.
   ===================================================================== */
body.lux {
  --radius: 14px; --radius-sm: 10px;
  --bg: #f6f3ee; --line: #e7e0d2; --line-strong: #d3c8b2; --mut: #5b6475;
  --shadow: 0 1px 2px rgba(14,34,64,.05), 0 10px 28px -16px rgba(14,34,64,.22);
  --shadow-lg: 0 2px 4px rgba(14,34,64,.06), 0 28px 60px -24px rgba(14,34,64,.42);
  --ring: 0 0 0 3px rgba(198,161,91,.28);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
html[data-theme="dark"] body.lux, html[data-theme="midnight"] body.lux {
  --bg: #0a1526; --line: #1f3252; --line-strong: #2d4468; --mut: #9eabbf;
  --shadow: 0 1px 0 rgba(0,0,0,.3), 0 14px 30px -18px rgba(0,0,0,.75);
  --shadow-lg: 0 30px 70px -24px rgba(0,0,0,.9);
}
body.lux ::selection { background: rgba(198,161,91,.35); }
body.lux * { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }

/* ---------- icons ---------- */
svg.ico { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; overflow: visible; }
svg.ico.fill { fill: currentColor; }
svg.ico.ok { color: var(--ok); } svg.ico.warn { color: #c98a12; } svg.ico.bad { color: #c2362b; } svg.ico.info { color: var(--info); } svg.ico.gold { color: #c39a45; }
body.lux .btn.primary svg.ico, body.lux .btn.danger svg.ico, body.lux .toast svg.ico, body.lux .chip.on svg.ico, body.lux .lxbar svg.ico, body.lux .btn.gold svg.ico { color: inherit; }
body.lux .tag svg.ico { width: 1.05em; height: 1.05em; color: inherit; }
body.lux .notice svg.ico { color: inherit; }
/* the page title: its icon sits on a small gold tile */
body.lux .content h1 > svg.ico:first-child { box-sizing: content-box; width: .74em; height: .74em; padding: .2em; margin-right: .16em; border-radius: .26em; background: var(--gold-soft); color: var(--gold-d); vertical-align: -.2em; stroke-width: 1.8; }
body.lux h2 > svg.ico:first-child, body.lux summary > svg.ico:first-child { color: var(--gold-d); margin-right: .12em; }
body.lux h3 > svg.ico { margin-right: .2em; }
html[data-theme="dark"] body.lux .content h1 > svg.ico:first-child, html[data-theme="midnight"] body.lux .content h1 > svg.ico:first-child { background: rgba(198,161,91,.16); }
body.lux .ico-only svg.ico { width: 1.25em; height: 1.25em; vertical-align: -.24em; }
body.lux .empty .big svg.ico, body.lux .rphoto > span svg.ico { width: 1em; height: 1em; stroke-width: 1.4; color: var(--line-strong); }
body.lux .ibi svg.ico { width: 26px; height: 26px; padding: 8px; box-sizing: content-box; border-radius: 12px; background: var(--gold-soft); color: var(--gold-d); stroke-width: 1.7; }
body.lux .ibcard.urgent .ibi svg.ico, body.lux .ibpop.urgent .ibi svg.ico { background: var(--bad-soft); color: var(--bad); }
body.lux .ibcard.ok .ibi svg.ico { background: var(--ok-soft); color: var(--ok); }

/* ---------- the top bar ---------- */
body.lux .lxbar { background: linear-gradient(180deg, #10264a 0%, #0c1f3c 100%); }
body.lux .lx-logo { box-shadow: 0 0 0 2px rgba(198,161,91,.55); color: var(--navy); }
body.lux .lx-logo svg.ico { width: 22px; height: 22px; color: var(--navy); }
body.lux .lx-ic { font-size: 18px; transition: background .15s, transform .15s; }
body.lux .lx-ic svg.ico { width: 20px; height: 20px; }
body.lux .lx-ic:active { transform: scale(.94); }
body.lux .lx-find { background: rgba(255,255,255,.1); }
body.lux .tn-menu { border-radius: 14px; padding: 8px; box-shadow: var(--shadow-lg); animation: uidrop .14s ease-out; }
@keyframes uidrop { from { opacity: 0; transform: translateY(-4px); } }
body.lux .tn-menu .navi { border-radius: 9px; padding: 9px 11px; gap: 11px; transition: background .12s; }
body.lux .tn-menu .navi .ic, body.lux .sheet .navi .ic { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 9px; background: var(--bg); color: var(--gold-d); font-size: 16px; }
body.lux .tn-menu .navi .ic svg.ico, body.lux .sheet .navi .ic svg.ico { width: 17px; height: 17px; }
body.lux .tn-menu .navi:hover .ic, body.lux .tn-menu .navi.active .ic, body.lux .sheet .navi:hover .ic { background: #fff; }
html[data-theme="dark"] body.lux .tn-menu .navi:hover .ic, html[data-theme="midnight"] body.lux .tn-menu .navi:hover .ic,
html[data-theme="dark"] body.lux .tn-menu .navi.active .ic, html[data-theme="midnight"] body.lux .tn-menu .navi.active .ic { background: rgba(255,255,255,.08); }
body.lux .navmode button svg.ico { margin-right: 4px; }
body.lux .lxhead { box-shadow: 0 1px 0 rgba(14,34,64,.02); }
body.lux .lx-crumb svg.ico { display: none; }

/* ---------- type ---------- */
body.lux h1 { font-size: clamp(27px, 2.5vw, 34px); line-height: 1.15; }
body.lux h2 { font-size: 21px; line-height: 1.25; }
html[lang="am"] body.lux h2 { font-size: 18px; }
body.lux .small { line-height: 1.5; }
body.lux a { text-underline-offset: 2px; }
body.lux :is(a, button, summary, [tabindex]):focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* ---------- the page head ---------- */
body.lux .head { gap: 14px 20px; padding-bottom: 18px; margin-bottom: 22px; align-items: flex-end; }
body.lux .head > div:first-child { flex: 1 1 280px; min-width: 0; }
body.lux .head h1 + .mut, body.lux .head h1 + .small, body.lux .head h1 + div { margin-top: 8px; }
body.lux .head .actions, body.lux .head > form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; flex: 0 1 auto; max-width: 100%; }
@media (min-width: 1000px) { body.lux .head > .actions, body.lux .head > form { max-width: 62%; } body.lux .head > div:first-child { flex: 1 1 36%; } }
body.lux .head .actions input:not([type="checkbox"]):not([type="radio"]), body.lux .head .actions select,
body.lux .head > form input:not([type="checkbox"]):not([type="radio"]), body.lux .head > form select { width: auto; min-width: 0; flex: 0 1 170px; }
body.lux .head .actions form { display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0; }
@media (max-width: 760px) { body.lux .head .actions, body.lux .head > form { justify-content: flex-start; flex: 1 1 100%; }
  body.lux .head .actions input:not([type="checkbox"]):not([type="radio"]), body.lux .head .actions select { flex: 1 1 130px; } }

/* ---------- cards ---------- */
body.lux .card { border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); border-color: var(--line); }
body.lux .card.pad0 { padding: 0; }
body.lux .card > h2:first-child, body.lux .card > .between:first-child h2 { margin-bottom: 14px; }
body.lux .card.tint { background: linear-gradient(180deg, var(--gold-soft), color-mix(in srgb, var(--gold-soft) 70%, var(--card))); }
body.lux .grid-2, body.lux .grid-3 { gap: 18px; align-items: start; }
body.lux details.card > summary { font: 600 16px var(--ui); color: var(--navy); }
html[data-theme="dark"] body.lux details.card > summary, html[data-theme="midnight"] body.lux details.card > summary { color: var(--ink); }
body.lux summary { cursor: pointer; border-radius: 8px; }
body.lux details[open] > summary { margin-bottom: 10px; }
@media (max-width: 760px) { body.lux .card { padding: 16px; border-radius: 12px; } }

/* ---------- the numbers on top of a page ---------- */
body.lux .kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
body.lux .kpi { border-top: 0; border-radius: var(--radius); padding: 16px 18px 15px; position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s; }
body.lux .kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold); }
body.lux .kpi.ok::before { background: var(--ok); } body.lux .kpi.warn::before { background: #d39a1e; } body.lux .kpi.bad::before { background: #c2362b; } body.lux .kpi.accent::before { background: var(--navy); }
body.lux a.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
body.lux .kpi .l { font-size: 11px; letter-spacing: .1em; line-height: 1.35; }
body.lux .kpi .v { font-size: clamp(22px, 2vw, 29px); margin-top: 6px; overflow-wrap: anywhere; }
body.lux .kpi .s { font-size: 12.5px; margin-top: 4px; }
html[lang="am"] body.lux .kpi .l { letter-spacing: 0; font-size: 12.5px; }
@media (max-width: 560px) { body.lux .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* ---------- buttons ---------- */
body.lux .btn { border-radius: 10px; min-height: 42px; padding: 9px 16px; gap: 8px; white-space: nowrap; letter-spacing: .01em; box-shadow: 0 1px 1px rgba(14,34,64,.04);
  transition: background .15s, border-color .15s, box-shadow .15s, transform .08s, color .15s; }
body.lux .btn:hover { border-color: var(--navy); box-shadow: 0 4px 12px -6px rgba(14,34,64,.35); }
body.lux .btn:active { transform: translateY(1px); box-shadow: none; }
body.lux .btn.primary { box-shadow: 0 1px 1px rgba(14,34,64,.2), 0 8px 18px -10px rgba(14,34,64,.6); }
body.lux .btn.gold { box-shadow: 0 8px 18px -10px rgba(198,161,91,.9); }
body.lux .btn.gold:hover { background: #d0ad6a; border-color: #d0ad6a; }
body.lux .btn.ghost { box-shadow: none; } body.lux .btn.ghost:hover { background: var(--gold-soft); border-color: transparent; box-shadow: none; }
body.lux .btn.soft:hover { border-color: var(--gold); }
body.lux .btn.sm { min-height: 34px; padding: 5px 11px; border-radius: 8px; gap: 6px; }
body.lux .btn.lg { border-radius: 12px; }
body.lux .btn.ico-only { padding-left: 10px; padding-right: 10px; min-width: 42px; }
body.lux .btn.sm.ico-only { min-width: 34px; padding-left: 7px; padding-right: 7px; }
body.lux .btn:disabled, body.lux .btn[disabled] { opacity: .5; box-shadow: none; transform: none; }
body.lux .busy { position: relative; pointer-events: none; color: transparent !important; }
body.lux .busy > * { visibility: hidden; }
body.lux .busy::after { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--mut) transparent var(--mut) transparent; animation: uispin .7s linear infinite; }
body.lux .btn.primary.busy::after, body.lux .btn.danger.busy::after { border-color: #fff transparent #fff transparent; }
@keyframes uispin { to { transform: rotate(360deg); } }
body.lux .row > .btn, body.lux .row > * > .btn, body.lux .btn.block { white-space: normal; text-align: center; }
@media (max-width: 760px) { body.lux .btn { white-space: normal; text-align: center; } }

/* ---------- fields ---------- */
body.lux label { font-size: 13px; letter-spacing: 0; color: #4b5466; margin-bottom: 6px; line-height: 1.35; }
html[data-theme="dark"] body.lux label, html[data-theme="midnight"] body.lux label { color: var(--mut); }
body.lux input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]), body.lux select, body.lux textarea {
  border-radius: 10px; min-height: 44px; padding: 10px 13px; background: #fff; border-color: var(--line-strong); transition: border-color .15s, box-shadow .15s, background .15s; }
html[data-theme="dark"] body.lux input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
html[data-theme="dark"] body.lux select, html[data-theme="dark"] body.lux textarea,
html[data-theme="midnight"] body.lux input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
html[data-theme="midnight"] body.lux select, html[data-theme="midnight"] body.lux textarea { background: #0d1a2f; }
body.lux input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]), body.lux select:not([multiple]):not([size]) { height: 44px; }
body.lux .tbl td input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), body.lux .tbl td select:not([multiple]) { height: 38px; }
body.lux h1 .tag, body.lux h2 .tag { font-family: var(--ui); vertical-align: middle; letter-spacing: 0; }
body.lux input:hover, body.lux select:hover, body.lux textarea:hover { border-color: #bfae8c; }
body.lux input:focus, body.lux select:focus, body.lux textarea:focus { border-color: var(--gold); box-shadow: var(--ring); }
body.lux input::placeholder, body.lux textarea::placeholder { color: #9aa1ad; }
body.lux input:disabled, body.lux select:disabled, body.lux textarea:disabled, body.lux input[readonly] { background: var(--bg); color: var(--mut); }
body.lux select:not([multiple]):not([size]) { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a5c24' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
html[dir="rtl"] body.lux select:not([multiple]):not([size]) { background-position: left 12px center; padding-right: 13px; padding-left: 36px; }
body.lux .lxbar .sel-branch { background-color: rgba(255,255,255,.08); min-height: 40px; }
body.lux input[type="file"] { border: 1px dashed var(--line-strong); border-radius: 10px; padding: 7px; background: var(--card); min-height: 44px; font-size: 13.5px; color: var(--mut); cursor: pointer; }
body.lux input[type="file"]::file-selector-button { font: 600 13px var(--ui); border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); border-radius: 8px; padding: 6px 12px; margin-right: 10px; cursor: pointer; }
body.lux input[type="file"]:hover { border-color: var(--gold); }
body.lux input[type="checkbox"], body.lux input[type="radio"] { width: 18px; height: 18px; flex: 0 0 18px; transform: none; margin: 0 2px 0 0; vertical-align: -3px; cursor: pointer; }
body.lux .check { gap: 10px; padding: 7px 0; line-height: 1.4; align-items: flex-start; }
body.lux .check input { margin-top: 1px; }
body.lux textarea { line-height: 1.5; }
body.lux .tbl td input:not([type="checkbox"]):not([type="radio"]), body.lux .tbl td select { min-height: 38px; padding: 7px 10px; }
body.lux .help, body.lux .tiny.mut { line-height: 1.45; }
/* a form written one field under the other gets air between its lines */
body.lux .row { gap: 14px; }
body.lux :is(form, .card, details, dialog, fieldset, .stack) > .row:not(.card):not(:last-child):not(.between) { margin-bottom: 14px; }
body.lux input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]) + label:not(.check):not(.chip):not(.btn),
body.lux select + label:not(.check):not(.chip), body.lux textarea + label:not(.check):not(.chip) { margin-top: 14px; }
body.lux textarea + .check, body.lux textarea + .btn, body.lux .check + .btn, body.lux input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]) + .check { margin-top: 12px; }
body.lux .field { margin-bottom: 14px; }
body.lux dialog.dlg { border-radius: 16px; padding: 22px 24px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
body.lux dialog.dlg::backdrop { background: rgba(8,16,30,.55); backdrop-filter: blur(2px); }

body.lux input.ui-search { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238a8f9c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21 21-4.34-4.34'/%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 14px center; padding-left: 42px !important; }

/* ---------- tables ---------- */
body.lux .tbl { border-collapse: separate; border-spacing: 0; }
body.lux .tbl th { background: transparent; border-bottom: 1px solid var(--line-strong); font-size: 11px; letter-spacing: .1em; padding: 10px 12px; white-space: nowrap; color: var(--mut); }
html[lang="am"] body.lux .tbl th { letter-spacing: 0; font-size: 12.5px; text-transform: none; }
body.lux .tbl td { padding: 13px 12px; }
body.lux .tbl tbody tr { transition: background .12s; }
body.lux .tbl tbody tr:hover td { background: #faf7f0; }
body.lux .tbl tr.click:hover td { background: var(--gold-soft); }
html[data-theme="dark"] body.lux .tbl tbody tr:hover td, html[data-theme="midnight"] body.lux .tbl tbody tr:hover td,
html[data-theme="dark"] body.lux .tbl tr.click:hover td, html[data-theme="midnight"] body.lux .tbl tr.click:hover td { background: #14243f; }
body.lux .tbl th.sortable { cursor: pointer; user-select: none; }
body.lux .tbl th.sortable:hover { color: var(--navy); }
body.lux .tbl th.sortable::after { content: "↕"; margin-left: 5px; opacity: .28; font-size: 11px; letter-spacing: 0; }
body.lux .tbl th.sortable[data-dir="asc"]::after { content: "↑"; opacity: 1; color: var(--gold-d); }
body.lux .tbl th.sortable[data-dir="desc"]::after { content: "↓"; opacity: 1; color: var(--gold-d); }
body.lux .tblfind { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--mut); max-width: 420px; }
body.lux .tblfind input { border: 0 !important; background: transparent !important; box-shadow: none !important; min-height: 38px !important; padding: 6px 0 !important; flex: 1; min-width: 0; }
body.lux .tblfind-n { font-size: 12px; white-space: nowrap; }
body.lux .tblfind:focus-within { border-color: var(--gold); box-shadow: var(--ring); background: var(--card); }
body.lux .empty { padding: 40px 16px; font-size: 14.5px; }
body.lux td.empty { padding: 34px 16px; }

/* ---------- tags, chips, notices, toasts ---------- */
body.lux .tag { padding: 3px 10px; border-radius: 999px; line-height: 1.5; letter-spacing: .01em; border-color: transparent; gap: 5px; }
body.lux .tag:not(.ok):not(.warn):not(.bad):not(.info):not(.accent) { background: var(--bg); border-color: var(--line); }
body.lux .chip { padding: 7px 14px; display: inline-flex; align-items: center; gap: 6px; transition: background .15s, color .15s, border-color .15s; text-decoration: none; }
body.lux .notice { border-radius: 12px; border-left-width: 4px; padding: 13px 16px; line-height: 1.5; }
body.lux .toasts { top: 14px; }
body.lux .toast { border-radius: 12px; padding: 13px 16px; box-shadow: var(--shadow-lg); line-height: 1.4; font-size: 14.5px; }

/* ---------- the "to do now" cards ---------- */
body.lux .ibcard { border-radius: var(--radius); border-left-width: 4px; padding: 14px 16px; transition: box-shadow .15s, transform .15s; }
body.lux .ibcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
body.lux .ibtop { gap: 12px; align-items: center; }
body.lux .ibpop { border-radius: 14px; }

/* ---------- selling ---------- */
body.lux .pos .tile { border-radius: 12px; padding: 13px 14px; transition: transform .1s, box-shadow .15s, border-color .15s; }
body.lux .pos .tile:not(.roomtile):hover { border-color: var(--gold); box-shadow: var(--shadow-lg); transform: translateY(-1px); }
body.lux .pos .tile:not(.roomtile):active { transform: scale(.98); }
body.lux .paybtns { grid-template-columns: repeat(auto-fit, minmax(116px, 1fr)); gap: 8px; }
body.lux .paybtns .btn { padding: 8px 8px; overflow: visible; white-space: normal; line-height: 1.2; min-height: 44px; font-size: 13px; }
body.lux .paybtns .btn.on { background: var(--navy); border-color: var(--navy); color: #fff; }
body.lux .paybtns .btn.on svg.ico { color: #fff; }
body.lux .cart .total { font-variant-numeric: tabular-nums; }

/* ---------- rooms ---------- */
body.lux .roomtile { display: flex; flex-direction: column; gap: 8px; text-align: left; padding: 12px; min-height: 0; justify-content: flex-start; border-radius: 14px; }
body.lux .roomtile .rphoto { height: 104px; margin: 0; border-radius: 10px; }
body.lux .roomtile .n { font-size: 15.5px; display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; }
body.lux .roomtile .n .btn { min-height: 0; min-width: 0; padding: 3px 5px !important; margin-left: auto; box-shadow: none; }
body.lux .roomtile form { margin-top: 8px !important; }
body.lux .roomtile > div:last-child { margin-top: auto; }

/* ---------- find any page (Ctrl+K) ---------- */
.kp { position: fixed; inset: 0; z-index: 2000; background: rgba(8,16,30,.5); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 12vh 14px 14px; animation: uifade .12s ease-out; }
@keyframes uifade { from { opacity: 0; } }
.kp-card { width: min(620px, 100%); max-height: 72vh; display: flex; flex-direction: column; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.kp-top { display: flex; align-items: center; gap: 12px; padding: 6px 16px; border-bottom: 1px solid var(--line); color: var(--mut); }
.kp-top svg.ico { width: 20px; height: 20px; }
body.lux .kp-top input { border: 0 !important; box-shadow: none !important; background: transparent !important; font-size: 17px; min-height: 50px !important; padding: 8px 0 !important; flex: 1; min-width: 0; }
.kp-top kbd, .kp-foot kbd { font: 600 11px var(--ui); border: 1px solid var(--line-strong); border-radius: 6px; padding: 2px 6px; color: var(--mut); background: var(--bg); }
.kp-list { overflow-y: auto; padding: 8px; overscroll-behavior: contain; }
.kp-h { font: 600 11px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-d); padding: 10px 10px 6px; }
body.lux a.kp-i { display: flex; align-items: center; gap: 12px; padding: 10px 11px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; }
.kp-i svg.ico { width: 18px; height: 18px; color: var(--gold-d); }
.kp-i.on { background: var(--gold-soft); }
.kp-l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.kp-g { font-size: 12px; color: var(--mut); white-space: nowrap; }
.kp-none { padding: 26px; text-align: center; color: var(--mut); }
.kp-foot { padding: 9px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mut); background: var(--bg); }
@media (max-width: 640px) { .kp { padding-top: 10px; } .kp-card { max-height: 86vh; } .kp-foot { display: none; } }

/* ---------- phones ---------- */
@media (max-width: 900px) {
  body.lux .bottombar { height: var(--bottombar); padding-bottom: env(safe-area-inset-bottom); background: var(--card); }
  body.lux .bottombar a, body.lux .bottombar button { gap: 3px; color: var(--mut); min-width: 0; padding: 6px 2px; }
  body.lux .bottombar .ic { font-size: 20px; line-height: 1; height: 24px; display: grid; place-items: center; }
  body.lux .bottombar .ic svg.ico { width: 22px; height: 22px; stroke-width: 1.8; }
  body.lux .bottombar .lb { font-size: 10.5px; font-weight: 600; line-height: 1.12; white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-align: center; max-width: 100%; padding: 0 2px; overflow-wrap: anywhere; }
  body.lux .bottombar .active { color: var(--navy); }
  body.lux .bottombar .active .ic svg.ico { stroke-width: 2.2; }
  body.lux .sheet { border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lg); }
  body.lux .sheet .navi { border-radius: 12px; gap: 11px; padding: 9px 10px; align-items: center; }
  body.lux .lx-find { display: none; }
  body.lux .sheetfind { display: flex; align-items: center; gap: 9px; margin: 2px 10px 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--mut); }
  body.lux .sheetfind input { border: 0 !important; background: transparent !important; box-shadow: none !important; min-height: 42px !important; padding: 6px 0 !important; flex: 1; min-width: 0; font-size: 16px; }
  body.lux .sheetfind:focus-within { border-color: var(--gold); background: var(--card); }
  body.lux .lxhead { position: static; }
}
@media (min-width: 901px) { body.lux .sheetfind { display: none; } }
@media (prefers-reduced-motion: reduce) { body.lux *, .kp { animation: none !important; transition: none !important; } }

/* ---------- the sign-in page ---------- */
body.lux .login-wrap, body.lux .auth { background:
  radial-gradient(1200px 520px at 12% -10%, rgba(198,161,91,.20), transparent 60%),
  radial-gradient(900px 500px at 100% 110%, rgba(14,34,64,.14), transparent 60%), var(--bg); }

/* ---------- on paper ---------- */
@media print {
  svg.ico { stroke-width: 1.6; }
  .kp, .tblfind, #kpbtn { display: none !important; }
  body.lux .tbl th.sortable::after { content: none; }
  body.lux .card, body.lux .kpi { box-shadow: none; }
}

/* searching the ☰ menu looks through every page, also in the simple menu */
body.simple .sheet.finding .navi { display: flex; }
body.simple .sheet.finding .navg { display: block; }

/* a small section title inside a page stands clear of what is above it */
body.lux .content > h3:not(:first-child), body.lux .content > div > h3:not(:first-child), body.lux .card > h3:not(:first-child) { margin-top: 22px; }
body.lux .content > h2:not(:first-child) { margin-top: 26px; }
html[data-theme="dark"] body.lux .chip.on, html[data-theme="midnight"] body.lux .chip.on, html[data-theme="dark"] body.lux .chip:hover, html[data-theme="midnight"] body.lux .chip:hover,
html[data-theme="dark"] body.lux .paybtns .btn.on, html[data-theme="midnight"] body.lux .paybtns .btn.on { background: var(--gold); border-color: var(--gold); color: #0e2240; }
html[data-theme="dark"] body.lux .paybtns .btn.on svg.ico, html[data-theme="midnight"] body.lux .paybtns .btn.on svg.ico { color: #0e2240; }
html[data-theme="dark"] body.lux .tbl tr.click:hover td, html[data-theme="midnight"] body.lux .tbl tbody tr:hover td { background: #14243f; }
html[data-theme="dark"] body.lux .lxbar, html[data-theme="midnight"] body.lux .lxbar { background: linear-gradient(180deg, #0c1c36 0%, #091629 100%); }
@media (max-width: 700px) {
  body.lux .tbl.cards tr { border-radius: 12px; padding: 8px 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
  body.lux .tbl.cards td { flex-wrap: wrap; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); }
  body.lux .tbl.cards tr td:last-child { border-bottom: 0; }
  body.lux .tbl.cards td > div { flex: 1 1 100%; text-align: right; }
  body.lux .tbl.cards td::before { flex: 0 0 34%; font-size: 12.5px; }
}
