/* Tune Tech Business Platform — design system v8 */
:root {
  --accent: #0F6B4F; --accent-ink: #ffffff; --accent-soft: color-mix(in srgb, var(--accent) 12%, white);
  --bg: #f3f5f7; --card: #ffffff; --ink: #14202b; --mut: #667585; --line: #e3e8ee; --line-strong: #c9d2dc;
  --ok: #178a5b; --ok-soft: #e4f6ec; --warn: #b7791f; --warn-soft: #fff4de; --bad: #c0392b; --bad-soft: #fdeceb;
  --info: #2f6bff; --info-soft: #e8efff;
  --radius: 14px; --radius-sm: 9px; --shadow: 0 1px 2px rgba(20,32,43,.05), 0 6px 20px -8px rgba(20,32,43,.12);
  --font: "Inter", "Noto Sans Ethiopic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sidebar: 236px; --topbar: 58px; --bottombar: 62px;
}
[data-theme="dark"] {
  --bg: #0f1418; --card: #171d23; --ink: #e8edf2; --mut: #8b9aab; --line: #262f38; --line-strong: #364252;
  --accent-soft: color-mix(in srgb, var(--accent) 22%, #171d23);
  --ok-soft: #133426; --warn-soft: #3a2d10; --bad-soft: #3d1a17; --info-soft: #172544;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -10px rgba(0,0,0,.6);
}
[data-theme="midnight"] {
  --bg: #070d19; --card: #0f172a; --ink: #e6edf7; --mut: #8a9bb5; --line: #1e2a44; --line-strong: #2d3d5e;
  --accent-soft: color-mix(in srgb, var(--accent) 24%, #0f172a);
  --ok-soft: #0f3324; --warn-soft: #3a2a0c; --bad-soft: #3d1517; --info-soft: #14233f;
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 12px 30px -12px rgba(0,0,0,.7);
}
[data-density="compact"] { --tt-cell: 6px 8px; --tt-gap: 8px; --tt-ctrl: 34px; }
[data-density="compact"] .content { padding: 10px 10px 80px; }
[data-density="compact"] .kpi { padding: 10px 12px; } [data-density="compact"] .kpi .v { font-size: 20px; }
[data-density="compact"] .card { padding: 12px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.45; color: var(--ink); background: var(--bg); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0 0 6px; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 16px; margin: 0 0 10px; font-weight: 700; }
h3 { font-size: 14px; margin: 0 0 8px; font-weight: 600; color: var(--mut); text-transform: uppercase; letter-spacing: .04em; }
p { margin: 0 0 10px; }
.mut { color: var(--mut); } .small { font-size: 13px; } .tiny { font-size: 12px; } .b { font-weight: 600; } .r { text-align: right; } .c { text-align: center; }
.nowrap { white-space: nowrap; } .mono { font-variant-numeric: tabular-nums; }
.pos-neg.neg { color: var(--bad); } .pos-neg.pos { color: var(--ok); } .pos-neg.warn { color: var(--warn); }
.hide { display: none !important; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--card); border-right: 1px solid var(--line); padding: 14px 12px 20px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; }
.brand .logo { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 20px; }
.brand .name { font-weight: 700; font-size: 15px; line-height: 1.15; }
.brand .sub { font-size: 12px; color: var(--mut); }
.navg { margin-top: 6px; }
.navg .gl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); padding: 8px 10px 4px; }
/* v12.4: dropdown groups + simple mode */
.navg .gh { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 10px; color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; text-align: left; }
.navg .gh:hover { background: var(--bg); }
.navg .gh .ic { width: 22px; text-align: center; font-size: 16px; }
.navg .gh .t { flex: 1; }
.navg .gh .n { font-size: 11px; color: var(--mut); background: var(--bg); border-radius: 999px; padding: 1px 7px; font-weight: 600; }
.navg .gh .chev { color: var(--mut); transition: transform .18s; font-size: 12px; }
.navg.dd .gi { display: none; padding-left: 8px; border-left: 2px solid var(--line); margin-left: 20px; }
.navg.dd .gi .navi { padding: 7px 10px; font-size: 13.5px; }
.navg.dd.open .gi { display: block; }
.navg.dd.open .gh .chev { transform: rotate(180deg); }
.navg.dd.open .gh { color: var(--accent); }
.navmode { display: flex; gap: 4px; background: var(--bg); border-radius: 10px; padding: 3px; margin: 0 0 6px; }
.navmode button { flex: 1; border: 0; background: none; border-radius: 8px; padding: 6px; font: inherit; font-size: 12px; font-weight: 700; color: var(--mut); cursor: pointer; }
.navmode button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
body.simple .navi:not(.ess) { display: none; }
body.simple .navg.dd .gh { display: none; }
body.simple .navg.dd .gi { display: block; padding-left: 0; border: 0; margin-left: 0; }
body.simple .navg.dd .gi .navi { padding: 9px 10px; font-size: 14px; }
body.simple .navg:not(:has(.ess)) { display: none; }
body.simple .sheetg .gl { display: none; }
body.simple .looks { display: none !important; }
.navi { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink); font-size: 14px; }
.navi:hover { background: var(--bg); text-decoration: none; }
.navi.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.navi .ic { width: 22px; text-align: center; font-size: 16px; }
.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 30; height: var(--topbar); background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.topbar .title { font-weight: 700; font-size: 16px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .icbtn { position: relative; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: transparent; border: 1px solid transparent; color: var(--ink); font-size: 18px; cursor: pointer; }
.topbar .icbtn:hover { background: var(--bg); border-color: var(--line); }
.badge-dot { position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.content { padding: 18px 16px 90px; max-width: 1240px; }
.bottombar { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .content { padding: 14px 12px calc(var(--bottombar) + 24px); }
  .bottombar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; height: var(--bottombar); background: var(--card); border-top: 1px solid var(--line); z-index: 40; padding-bottom: env(safe-area-inset-bottom); }
  .bottombar a, .bottombar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--mut); background: none; border: 0; font-family: inherit; min-width: 0; padding: 0 2px; }
  /* a long name must never make the bar two rows tall */
  .bottombar .lb { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bottombar .ic { font-size: 20px; }
  .bottombar .active { color: var(--accent); font-weight: 600; }
}
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 50; display: none; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-radius: 18px 18px 0 0; z-index: 51; max-height: 82vh; overflow-y: auto; padding: 10px 14px 24px; transform: translateY(100%); transition: transform .22s ease; }
.sheet.open { transform: none; } .sheet-bg.open { display: block; }
.sheet .handle { width: 60px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 0 auto; }
.sheet .handle-hit { display: block; width: 100%; padding: 8px 0 12px; background: none; border: 0; cursor: pointer; }
.sheet .navi { padding: 12px 10px; font-size: 15px; }
.sheet .sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: nowrap; margin-bottom: 8px; }
.sheet .sheet-head .who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet .sheet-close { flex: 0 0 auto; background: none; border: 1px solid var(--line); border-radius: 9px; width: 34px; height: 34px; font-size: 16px; line-height: 1; color: var(--mut); cursor: pointer; font-family: inherit; }
.sheet-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 10px; }
body.sheet-lock { overflow: hidden; }

/* ---------- cards / grids ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 14px; }
.card.flat { box-shadow: none; }
.card.pad0 { padding: 0; overflow: hidden; }
.card.tint { background: var(--accent-soft); border-color: transparent; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-2.wide-left { grid-template-columns: 3fr 2fr; }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-2.wide-left { grid-template-columns: 1fr; } }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.row > * { flex: 1; min-width: 140px; }
.row > .auto { flex: 0 0 auto; min-width: 0; }
/* On a phone two fields side by side leave ~154px each: wide enough for a box, far
   too narrow to READ a line like "Maternity · Bed N1 — 1,200.00" in a dropdown.
   One field per line below this width. Buttons (.auto) stay where they are. */
@media (max-width: 480px) { .row > *:not(.auto) { flex: 1 1 100%; min-width: 100%; } }
.stack { display: flex; flex-direction: column; gap: 10px; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.head .actions { display: flex; gap: 8px; flex-wrap: wrap; }

.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); text-decoration: none; color: inherit; display: block; }
.kpi:hover { text-decoration: none; border-color: var(--line-strong); }
.kpi .l { font-size: 12px; color: var(--mut); text-transform: uppercase; letter-spacing: .04em; display: flex; justify-content: space-between; }
.kpi .v { font-size: 24px; font-weight: 700; margin-top: 4px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 12px; color: var(--mut); margin-top: 2px; }
.kpi.warn .v { color: var(--warn); } .kpi.bad .v { color: var(--bad); } .kpi.ok .v { color: var(--ok); } .kpi.accent .v { color: var(--accent); }

/* ---------- buttons / forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.btn:hover { text-decoration: none; border-color: var(--mut); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--accent); }
.btn.soft { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.btn.sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn.lg { padding: 14px 20px; font-size: 16px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--mut); margin-bottom: 4px; }
input, select, textarea { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card); color: var(--ink); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--accent); transform: scale(1.15); margin-right: 6px; }
textarea { min-height: 84px; resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); font-weight: 500; cursor: pointer; padding: 6px 0; }
.check input { margin: 0; }
.field { margin-bottom: 12px; }
.help { font-size: 12px; color: var(--mut); margin-top: 4px; }
.inline-form { display: inline; }

/* ---------- tables ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--mut); padding: 8px 10px; border-bottom: 1px solid var(--line); font-weight: 600; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.click:hover td { background: var(--bg); cursor: pointer; }
.tbl .r, .tbl th.r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl td input, .tbl td select { padding: 7px 9px; font-size: 14px; }
.tblwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* price list on a computer: the service column takes the room, boxes stay tidy */
.tbl.priced td.svc { min-width: 230px; }
.tbl.priced td input[type=number] { width: 104px; }
.tbl.priced td input:not([type=number]) { width: 100%; min-width: 150px; }
@media (max-width: 700px) {
  .tbl.cards thead { display: none; }
  .tbl.cards tr { display: block; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; padding: 6px 10px; background: var(--card); }
  .tbl.cards td { display: flex; justify-content: space-between; gap: 10px; border: 0; padding: 5px 0; text-align: right; }
  .tbl.cards td::before { content: attr(data-l); color: var(--mut); font-size: 12px; text-align: left; flex: 0 0 40%; }
  .tbl.cards td.full { display: block; text-align: left; } .tbl.cards td.full::before { display: none; }
  /* a price list on a phone: label left, a full-width box right */
  .tbl.cards.priced td { align-items: center; }
  .tbl.cards.priced td input { width: 100%; max-width: 190px; }
  .tbl.cards.priced td.svc { border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 4px; }
  .savebar { position: sticky; bottom: calc(var(--bottombar) + 8px); z-index: 20; padding: 8px 0; background: linear-gradient(to top, var(--bg) 70%, transparent); }
  .savebar .btn { width: 100%; }
}

/* ---------- tags / status ---------- */
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bg); color: var(--mut); border: 1px solid var(--line); white-space: nowrap; }
.tag.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.tag.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.tag.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.tag.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.tag.accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
.chip.on, .chip:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); text-decoration: none; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: inline-grid; place-items: center; font-weight: 700; font-size: 13px; }

/* ---------- toasts / alerts ---------- */
.toasts { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: min(94vw, 460px); }
.toast { padding: 12px 14px; border-radius: 12px; background: var(--ink); color: var(--card); font-weight: 500; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center; animation: pop .18s ease; }
.toast.ok { background: var(--ok); color: #fff; } .toast.error { background: var(--bad); color: #fff; } .toast.info { background: var(--info); color: #fff; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }
.notice { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--info-soft); color: var(--info); font-weight: 500; margin-bottom: 12px; }
.notice.warn { background: var(--warn-soft); color: var(--warn); } .notice.bad { background: var(--bad-soft); color: var(--bad); } .notice.ok { background: var(--ok-soft); color: var(--ok); }
.empty { text-align: center; padding: 34px 16px; color: var(--mut); }
.empty .big { font-size: 40px; margin-bottom: 8px; }

/* ---------- mini charts ---------- */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 110px; padding-top: 10px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; font-size: 11px; color: var(--mut); }
.bars .bar i { display: block; width: 100%; max-width: 44px; background: var(--accent); border-radius: 6px 6px 2px 2px; min-height: 3px; opacity: .85; }
.bars .bar b { font-size: 10px; color: var(--ink); font-weight: 600; }
.meter { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.meter i { display: block; height: 100%; background: var(--accent); }

/* ---------- timeline ---------- */
.timeline { display: flex; gap: 0; margin: 12px 0; }
.timeline .st { flex: 1; text-align: center; position: relative; font-size: 12px; color: var(--mut); }
.timeline .st::before { content: ""; display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--line-strong); margin: 0 auto 6px; border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--line-strong); }
.timeline .st::after { content: ""; position: absolute; top: 7px; left: 50%; width: 100%; height: 2px; background: var(--line); z-index: -1; }
.timeline .st:last-child::after { display: none; }
.timeline .st.done { color: var(--accent); font-weight: 600; } .timeline .st.done::before { background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.timeline .st.done::after { background: var(--accent); }

/* ---------- POS ---------- */
.pos { display: grid; grid-template-columns: 1fr 380px; gap: 14px; align-items: start; }
.pos .items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pos .tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; min-height: 92px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow); user-select: none; }
.pos .tile:hover { border-color: var(--accent); }
.pos .tile.out { opacity: .45; }
.pos .tile .n { font-weight: 600; font-size: 14px; line-height: 1.25; }
.pos .tile .p { font-weight: 700; color: var(--accent); }
.pos .tile .s { font-size: 12px; color: var(--mut); }
.pos .tile .promo { font-size: 11px; color: var(--warn); font-weight: 700; }
.cart { position: sticky; top: calc(var(--topbar) + 12px); }
.cart .lines { max-height: 40vh; overflow-y: auto; }
.cart .line { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cart .qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.cart .qty button { width: 32px; height: 32px; border: 0; background: var(--bg); color: var(--ink); font-size: 18px; cursor: pointer; }
.cart .qty input { width: 54px; text-align: center; border: 0; border-radius: 0; padding: 6px 2px; }
.cart .total { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.paybtns { display: grid; grid-template-columns: repeat(auto-fit, minmax(74px, 1fr)); gap: 6px; }
.paybtns .btn { padding: 9px 4px; font-size: 13px; min-width: 0; overflow: hidden; }
.paybtns .btn.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@media (max-width: 900px) {
  .pos { grid-template-columns: 1fr; }
  .cart { position: fixed; left: 0; right: 0; bottom: var(--bottombar); top: auto; z-index: 35; background: var(--card); border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; padding: 10px 14px; max-height: 75vh; overflow-y: auto; transform: translateY(calc(100% - 64px)); transition: transform .2s ease; box-shadow: 0 -8px 30px rgba(0,0,0,.15); }
  .cart.open { transform: none; }
  .cart .lines { max-height: 30vh; }
  .pos .items { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .content.pos-page { padding-bottom: 150px; }
}

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; gap: 10px; min-height: 50vh; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; white-space: pre-wrap; line-height: 1.45; }
.msg.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chatbar { display: flex; gap: 8px; position: sticky; bottom: calc(var(--bottombar) + 8px); background: var(--bg); padding-top: 8px; }
.suggest { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; }

/* ---------- login / landing ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 600px at 20% -10%, var(--accent-soft), transparent), var(--bg); }
.auth .box { width: min(420px, 100%); }
.hero { padding: 60px 20px 40px; text-align: center; background: linear-gradient(180deg, var(--accent-soft), transparent); }
.hero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.1; margin-bottom: 12px; }
.hero p { font-size: 18px; color: var(--mut); max-width: 640px; margin: 0 auto 20px; }
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.types .t { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.types .t .ic { font-size: 30px; } .types .t .n { font-weight: 700; margin-top: 6px; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.landing-wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px 60px; }
.landing-nav { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; max-width: 1100px; margin: 0 auto; }

/* ---------- portal (customer app) ---------- */
.portal-top { position: sticky; top: 0; z-index: 30; background: var(--accent); color: var(--accent-ink); padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.portal-top .n { font-weight: 700; font-size: 17px; flex: 1; }
.portal-top a { color: var(--accent-ink); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ptile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.ptile .n { font-weight: 600; line-height: 1.25; } .ptile .p { font-weight: 700; color: var(--accent); }
.ptile .old { text-decoration: line-through; color: var(--mut); font-weight: 400; font-size: 12px; margin-left: 4px; }
.cartbar { position: fixed; bottom: calc(var(--bottombar) + 8px); left: 12px; right: 12px; z-index: 36; }
.has-cartbar { padding-bottom: 150px !important; }
.promo-card { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #000)); color: #fff; border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.promo-card .t { font-weight: 700; font-size: 16px; } .promo-card .d { opacity: .9; font-size: 13px; margin-top: 4px; }

/* ---------- print ---------- */
.receipt { width: 300px; margin: 0 auto; font-family: "Courier New", ui-monospace, monospace; font-size: 12.5px; color: #000; background: #fff; padding: 8px; }
.receipt .cen { text-align: center; } .receipt .line { border-top: 1px dashed #000; margin: 6px 0; }
.receipt table { width: 100%; border-collapse: collapse; } .receipt td { padding: 2px 0; vertical-align: top; }
@media print {
  body { background: #fff; } .sidebar, .topbar, .bottombar, .noprint, .toasts { display: none !important; }
  .content { padding: 0; max-width: none; } .card { box-shadow: none; border: 0; page-break-inside: avoid; }
  .receipt { width: 100%; }
}
.print-only { display: none; } @media print { .print-only { display: block; } }

/* ---------- v9: branding, branches, Ethiopia ---------- */
.brand .logo.img { object-fit: cover; background: #fff; border: 1px solid var(--line); }
.brand .logo.big { width: 56px; height: 56px; font-size: 28px; border-radius: 16px; }
.swatch { width: 26px; height: 26px; border-radius: 8px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; padding: 0; }
.sel-branch { width: 100%; font-size: 13px; padding: 8px 10px; }
@media (max-width: 900px) { .hide-sm { display: none !important; } }
.receipt img.logo { max-width: 120px; max-height: 70px; display: block; margin: 0 auto 4px; }
.labels { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.labels .lab { border: 1px dashed var(--line-strong); border-radius: 6px; padding: 6px; text-align: center; background: #fff; color: #000; page-break-inside: avoid; }
.labels .lab .n { font-size: 12px; font-weight: 600; line-height: 1.2; min-height: 28px; }
.labels .lab .p { font-size: 14px; font-weight: 800; }
.labels .lab svg { max-width: 100%; height: auto; }
.quote-doc { background: #fff; color: #000; padding: 24px; max-width: 800px; margin: 0 auto; font-size: 14px; }
.quote-doc table { width: 100%; border-collapse: collapse; } .quote-doc th, .quote-doc td { border: 1px solid #ccc; padding: 6px 8px; }
.pm-ref { margin-top: 8px; }
.et-date { font-family: var(--font); }
@media print { .labels { gap: 4px; } .labels .lab { border-color: #ccc; } .sidebar, .topbar, .bottombar, .noprint { display: none !important; } .content { padding: 0 !important; } .quote-doc { padding: 0; } }
.types label.t input[type=radio] { display: none; }
.types label.t:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent-soft); }

/* locked service cards */
.card.mutbox { opacity: .72; }
.card.mutbox:hover { opacity: 1; }

/* ---------- v11.5: vendor branding (BRAND=...) and hotel photos ---------- */
.brand .logo.img.vendor { object-fit: contain; background: #000; border: 0; }
.poweredby { display: flex; align-items: center; justify-content: center; gap: 6px; }
.poweredby img { height: 18px; width: 18px; border-radius: 5px; object-fit: contain; background: #000; }
.portal-hero { border-radius: var(--radius); min-height: 150px; margin: 0 0 14px; display: flex; align-items: flex-end;
  color: #fff; background: var(--accent); box-shadow: var(--shadow); overflow: hidden; }
.portal-hero .hero-in { display: flex; align-items: center; gap: 12px; padding: 14px 16px; width: 100%; }
.portal-hero img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: #fff; border: 2px solid rgba(255,255,255,.7); }
.portal-hero .hero-ic { font-size: 36px; }
.portal-hero .hero-n { font-size: 20px; font-weight: 800; letter-spacing: -.01em; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.portal-hero .hero-s { font-size: 12px; opacity: .9; text-shadow: 0 1px 6px rgba(0,0,0,.5); }

/* ---------- v12: pro dashboard ---------- */
.modes { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.modes .mode { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 700; font-size: 13px; cursor: pointer; color: var(--ink); }
.modes .mode.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.modes .spacer { flex: 1; }
.looks { display: flex; gap: 4px; align-items: center; }
.looks button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; }
.looks button.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.looks .lt { background: #f3f5f7; } .looks .dk { background: #171d23; } .looks .mn { background: linear-gradient(135deg, #0f172a, #1a8cff); } .looks .cp { background: var(--card); font-size: 13px; width: auto; border-radius: 999px; padding: 0 10px; color: var(--ink); font-weight: 700; }
.pane { display: none; } .pane.on { display: block; }
.kpi .spark { display: flex; align-items: flex-end; gap: 2px; height: 26px; margin-top: 8px; }
.kpi .spark i { flex: 1; background: var(--accent); opacity: .35; border-radius: 2px 2px 0 0; min-height: 2px; } .kpi .spark i:last-child { opacity: 1; }
.ring { --p: 0; width: 84px; height: 84px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--line) 0); display: grid; place-items: center; flex: 0 0 84px; }
.ring b { width: 64px; height: 64px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-size: 16px; }
.roomgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.roomtile { border-radius: 12px; padding: 10px 8px; text-align: center; border: 1px solid var(--line); background: var(--card); color: inherit; text-decoration: none; display: block; }
.roomtile:hover { text-decoration: none; border-color: var(--line-strong); }
.roomtile .no { font-weight: 800; font-size: 17px; } .roomtile .st { font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.roomtile .g { font-size: 11px; color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roomtile.occupied { background: var(--accent-soft); border-color: var(--accent); } .roomtile.occupied .st { color: var(--accent); }
.roomtile.cleaning { background: var(--warn-soft); } .roomtile.cleaning .st { color: var(--warn); }
.roomtile.maintenance { background: var(--bad-soft); } .roomtile.maintenance .st { color: var(--bad); }
.roomtile.available .st { color: var(--ok); }
.feed { list-style: none; margin: 0; padding: 0; } .feed li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; align-items: center; }
.feed li:first-child { border-top: 0; } .feed .t { color: var(--mut); font-size: 12px; flex: 0 0 44px; font-variant-numeric: tabular-nums; }
.feed .tag { margin-left: auto; }
.stack-bars { display: flex; align-items: flex-end; gap: 6px; height: 130px; padding-top: 10px; }
.stack-bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 3px; font-size: 11px; color: var(--mut); }
.stack-bars .bar .col { width: 100%; max-width: 44px; display: flex; flex-direction: column-reverse; height: 100%; justify-content: flex-start; }
.stack-bars .bar .col i { display: block; width: 100%; min-height: 0; } .stack-bars .bar .col i.a { background: var(--accent); border-radius: 0 0 2px 2px; } .stack-bars .bar .col i.b { background: var(--ok); border-radius: 6px 6px 0 0; opacity: .85; }
.stack-bars .bar.today { font-weight: 800; color: var(--ink); }
.legend { display: flex; gap: 12px; font-size: 12px; color: var(--mut); } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.split { display: flex; gap: 4px; height: 10px; border-radius: 999px; overflow: hidden; margin: 8px 0 4px; } .split i { display: block; }
.mini-orders .oc { padding: 8px 10px; margin-bottom: 8px; }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-bottom: 14px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); color: inherit; font-weight: 700; font-size: 13px; text-align: center; }
.quick a:hover { text-decoration: none; border-color: var(--accent); } .quick a .ic { font-size: 24px; }
.hk { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.hk .r { border-radius: var(--radius); padding: 12px; border: 1px solid var(--line); background: var(--card); }
.hk .r .no { font-size: 22px; font-weight: 800; } .hk .r form { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; } .hk .r .btn { padding: 6px 8px; font-size: 12px; min-height: 0; }

/* ---- v12.1: stickers, emoji picker, look editor, guest requests */
.emojipick{display:flex;flex-wrap:wrap;gap:2px;margin:-4px 0 10px;max-height:64px;overflow:auto;padding:4px;background:var(--bg);border-radius:var(--radius)}
.emojipick span{font-size:20px;padding:2px 4px;cursor:pointer;border-radius:6px;line-height:1.2}.emojipick span:hover{background:var(--card)}
.stickers{display:flex;flex-wrap:wrap;gap:6px}
.stk{display:inline-flex;align-items:center;gap:4px;font-size:12.5px;font-weight:700;border:1px solid var(--line);background:var(--card);padding:5px 10px;border-radius:999px;cursor:pointer;user-select:none}
.stk input{width:15px;height:15px;margin:0;accent-color:var(--accent)}
.stk:has(input:checked){border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}
.stk.bad:has(input:checked){border-color:var(--bad);background:var(--bad-soft);color:var(--bad)}
.stk.ok:has(input:checked){border-color:var(--ok);background:var(--ok-soft);color:var(--ok)}
.stk.warn:has(input:checked){border-color:var(--warn);background:var(--warn-soft);color:var(--warn)}
.stk.sm{font-size:11.5px;padding:3px 8px}
.lookgrid{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:16px;align-items:start}
@media(max-width:1100px){.lookgrid{grid-template-columns:1fr}.phone{display:none}}
.phone{position:sticky;top:70px;width:390px;height:760px;max-height:calc(100vh - 90px);margin:0 auto;border:10px solid #111;border-radius:40px;overflow:hidden;background:#000;box-shadow:0 30px 60px -20px rgba(0,0,0,.6)}
.phone iframe{width:100%;height:100%;border:0;background:#fff}
.phone .notch{display:none}
.seg{display:flex;flex-wrap:wrap;gap:6px}
.seg label{border:1px solid var(--line);background:var(--card);border-radius:999px;padding:6px 12px;font-size:13px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.seg label:has(input:checked){border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}
.seg input{display:none}
.swatch{display:inline-block;width:18px;height:18px;border-radius:50%;border:1px solid rgba(0,0,0,.2)}
.svcrow{display:grid;grid-template-columns:34px 56px 1fr 1fr 1fr;grid-template-areas:"on icon label am am" ". del team where ask";gap:6px;align-items:center;padding:8px 0;border-top:1px solid var(--line)}
.svcrow>*:nth-child(2){grid-area:on}.svcrow>*:nth-child(3){grid-area:icon}.svcrow>*:nth-child(4){grid-area:label}.svcrow>*:nth-child(5){grid-area:am}
.svcrow>*:nth-child(6){grid-area:team}.svcrow>*:nth-child(7){grid-area:where}.svcrow>*:nth-child(8){grid-area:ask}.svcrow>*:nth-child(9){grid-area:del}
.svcrow.hd{grid-template-areas:"on icon label am am";border:0;padding:0 0 2px}.svcrow.hd>*:nth-child(n+6){display:none}
.svcrow input,.svcrow select{margin:0;min-width:0}.svcrow select{font-size:12.5px;padding:6px}.svcrow.off{opacity:.5}
@media(max-width:640px){.svcrow{grid-template-columns:34px 56px 1fr 1fr;grid-template-areas:"on icon label label" ". . am am" ". del team where" ". . ask ask"}}
/* v13.3 — the hotel's own places (restaurant, bar, cafe, room types) with their photos */
.placegrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px;margin-top:10px}
.placecard{display:flex;flex-direction:column;gap:6px;border:1px solid var(--line);border-radius:var(--radius);padding:10px;background:var(--card)}
.placecard.off{opacity:.55}
.placecard .pic{height:112px;border-radius:12px;background:var(--bg) center/cover no-repeat;display:grid;place-items:center;font-size:36px;color:var(--mut)}
.placecard input[type=text],.placecard input:not([type]),.placecard input[type=number]{margin:0;font-size:13px;padding:7px 9px}
.placecard input[type=file]{font-size:11.5px;padding:4px 0}
.placecard .check{font-size:12.5px}
.req{display:flex;gap:10px;align-items:center;background:var(--card);border:1px solid var(--line);border-left:5px solid var(--warn);border-radius:var(--radius);padding:10px 12px;margin-bottom:8px}
.req.done{border-left-color:var(--line);opacity:.7}.req .ic{font-size:26px}.req .t{flex:1;min-width:0}.req .t b{font-size:15px}
.req .age{font-weight:800;font-variant-numeric:tabular-nums;padding:2px 8px;border-radius:999px;background:var(--bg);font-size:12px}
.req .age.late{background:var(--bad-soft);color:var(--bad)}
.teamtabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
.stats{display:flex;gap:10px;flex-wrap:wrap}
.stat{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:10px 14px;min-width:120px}
.stat .v{font-size:20px;font-weight:800}.stat .v.warn{color:var(--warn)}.stat .v.bad{color:var(--bad)}.stat .l{font-size:12px;color:var(--mut)}

/* ---------- rooms: a picture on every room (v14.6) ---------- */
.roomtile { position: relative; }
.rphoto { display: block; width: 100%; height: 92px; margin: -2px 0 8px; border-radius: 10px; overflow: hidden; background: var(--bg); border: 1px dashed var(--line-strong); padding: 0; cursor: pointer; position: relative; font: inherit; color: var(--mut); }
.rphoto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rphoto > span { display: grid; place-items: center; height: 100%; font-size: 26px; }
.rphoto i { position: absolute; right: 6px; bottom: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--card); color: var(--accent); font-style: normal; font-weight: 800; display: grid; place-items: center; box-shadow: var(--shadow); font-size: 14px; }
.rphoto.own { border-style: solid; border-color: var(--line); }
button.rphoto:hover { border-color: var(--accent); }
.dlg { border: 0; border-radius: var(--radius); padding: 18px; width: min(560px, 94vw); background: var(--card); color: var(--ink); box-shadow: 0 20px 60px -20px rgba(0,0,0,.45); }
.dlg::backdrop { background: rgba(10, 20, 30, .5); }
.reuse { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.reuse button { border: 2px solid var(--line); border-radius: 10px; padding: 0; background: var(--bg); cursor: pointer; overflow: hidden; font: inherit; color: var(--ink); text-align: center; }
.reuse button:hover { border-color: var(--accent); }
.reuse img { width: 100%; height: 72px; object-fit: cover; display: block; }
.reuse span { display: block; font-size: 11.5px; padding: 4px 4px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- v14.6: the new look — navy side bar, big clear titles ---------- */
:root { --navy: #1e3a5f; --navy-2: #16304f; --navy-ink: #e6eef8; --navy-mut: #93a9c4; --teal: #2a9d8f; }
[data-theme="dark"], [data-theme="midnight"] { --navy: #101c2c; --navy-2: #0b1421; }
.sidebar { background: var(--navy); border-right: 0; color: var(--navy-ink); padding: 16px 12px 24px; }
.sidebar .brand { padding: 4px 6px 14px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 8px; }
.sidebar .brand .name { color: #fff; font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.sidebar .brand .sub { color: var(--navy-mut); }
.sidebar .brand .logo { background: #fff; color: var(--navy); }
.sidebar .brand .logo.img { background: #fff; padding: 3px; object-fit: contain; }
.sidebar .navmode { background: rgba(255,255,255,.08); }
.sidebar .navmode button { color: var(--navy-mut); }
.sidebar .navmode button.on { background: #fff; color: var(--navy); box-shadow: none; }
.sidebar .navg .gl { color: var(--navy-mut); }
.sidebar .navg .gh { color: var(--navy-ink); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.sidebar .navg .gh:hover { background: rgba(255,255,255,.06); }
.sidebar .navg .gh .n { background: rgba(255,255,255,.1); color: var(--navy-mut); }
.sidebar .navg .gh .chev { color: var(--navy-mut); }
.sidebar .navg.dd.open .gh { color: #fff; }
.sidebar .navg.dd .gi { border-left-color: rgba(255,255,255,.12); }
.sidebar .navi { color: var(--navy-ink); font-weight: 500; font-size: 14px; padding: 10px 12px; border-radius: 10px; }
.sidebar .navi:hover { background: rgba(255,255,255,.08); }
.sidebar .navi.active { background: var(--accent); color: var(--accent-ink); font-weight: 700; box-shadow: 0 6px 16px -8px rgba(0,0,0,.5); }
.sidebar .navi .ic { font-size: 17px; }
.sidebar .sel-branch { width: 100%; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.15); border-radius: 8px; padding: 7px 8px; font: inherit; }
.sidebar .tiny.mut { color: var(--navy-mut); }
.sidebar::-webkit-scrollbar { width: 8px; } .sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }
.topbar { border-bottom: 1px solid var(--line); }
.topbar .title { font-size: 17px; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
[data-theme="dark"] .topbar .title, [data-theme="midnight"] .topbar .title { color: var(--ink); }
h1 { letter-spacing: -.02em; }
h2 { font-weight: 800; letter-spacing: -.01em; }

/* the dashboard */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.dash-head .hi { font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.dash-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-title { font-size: 30px; font-weight: 800; color: var(--navy); margin: 0; letter-spacing: -.03em; line-height: 1.1; }
.dash-title span { color: var(--accent); }
[data-theme="dark"] .dash-title, [data-theme="midnight"] .dash-title { color: var(--ink); }
.notice.info { background: var(--info-soft); color: var(--info); } a.notice { text-decoration: none; }
.tot { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--navy); margin: 6px 0 10px; }
[data-theme="dark"] .tot, [data-theme="midnight"] .tot { color: var(--ink); }
.kcircles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
.kc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 10px 14px; text-align: center; color: inherit; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.kc:hover { text-decoration: none; border-color: var(--line-strong); transform: translateY(-1px); }
.kc .kh { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; color: var(--navy); min-width: 0; }
[data-theme="dark"] .kc .kh, [data-theme="midnight"] .kc .kh { color: var(--ink); }
.kc.alt .kh { color: var(--teal); }
.kc .ki { font-size: 18px; }
.kc .kl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc .kv { width: 96px; height: 96px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: inset 0 -6px 0 rgba(0,0,0,.15), 0 8px 18px -10px rgba(30,58,95,.7); }
.kc.alt .kv { background: var(--teal); box-shadow: inset 0 -6px 0 rgba(0,0,0,.12), 0 8px 18px -10px rgba(42,157,143,.7); }
.kc .kv b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kc .kt { font-size: 12.5px; color: var(--mut); } .kc .kt b { color: var(--ink); }
@media (max-width: 1100px) { .kcircles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .kcircles { grid-template-columns: repeat(2, 1fr); gap: 10px; } .kc .kv { width: 84px; height: 84px; } .kc .kv b { font-size: 24px; } .dash-title { font-size: 24px; } }
.charts .card, .lists .card { margin-bottom: 0; }
.charts { margin-bottom: 14px; } .lists { margin-bottom: 14px; }
.card.chart h2 { font-size: 15px; margin: 0; }
.card.chart .between { margin-bottom: 8px; }
.svgc { width: 100%; height: auto; display: block; font-family: var(--font); }
.svgc .grid { stroke: var(--line); stroke-width: 1; }
.svgc .lbl { font-size: 11px; fill: var(--mut); }
.svgc .val { font-size: 10.5px; fill: var(--ink); font-weight: 700; }
.svgc .fb { fill: var(--accent); } .svgc .rm { fill: var(--teal); } .svgc .oc { fill: var(--navy); }
.svgc .bar.today rect { opacity: 1; } .svgc .bar:not(.today) rect { opacity: .78; }
.svgc .bar:hover rect { opacity: 1; }
.svgc rect { rx: 3; }
.legend .sw, .dlegend .sw { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.sw.fb { background: var(--accent); } .sw.rm { background: var(--teal); }
.sw.occ { background: var(--navy); } .sw.free { background: var(--teal); } .sw.cln { background: var(--warn); } .sw.mnt { background: var(--bad); }
[data-theme="dark"] .svgc .oc, [data-theme="midnight"] .svgc .oc, [data-theme="dark"] .sw.occ, [data-theme="midnight"] .sw.occ { background: #5b8dd6; fill: #5b8dd6; }
.donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut { width: 150px; height: 150px; flex: 0 0 auto; transform: rotate(0deg); }
.donut .track { fill: none; stroke: var(--bg); stroke-width: 16; }
.donut .seg { fill: none; stroke-width: 16; transform: rotate(-90deg); transform-origin: 60px 60px; }
.donut .seg.occ { stroke: var(--navy); } .donut .seg.free { stroke: var(--teal); } .donut .seg.cln { stroke: var(--warn); } .donut .seg.mnt { stroke: var(--bad); }
[data-theme="dark"] .donut .seg.occ, [data-theme="midnight"] .donut .seg.occ { stroke: #5b8dd6; }
.donut .big { font-size: 20px; font-weight: 800; fill: var(--ink); font-family: var(--font); }
.donut .sm { font-size: 9px; fill: var(--mut); font-family: var(--font); }
.dlegend { list-style: none; margin: 0; padding: 0; font-size: 13.5px; display: grid; gap: 6px; }
.dlegend b { margin-left: 6px; }
.hbars { display: grid; gap: 8px; }
.hb { display: grid; grid-template-columns: minmax(70px, 1.1fr) 3fr auto; align-items: center; gap: 10px; font-size: 13px; }
.hb .hl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb .ht { background: var(--bg); border-radius: 6px; height: 18px; overflow: hidden; }
.hb .ht i { display: block; height: 100%; background: var(--teal); border-radius: 6px; min-width: 4px; }
.hb .ht i.alt { background: var(--navy); }
[data-theme="dark"] .hb .ht i.alt, [data-theme="midnight"] .hb .ht i.alt { background: #5b8dd6; }
.hb .hv { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mini > div { background: var(--bg); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.mini span { font-size: 12px; color: var(--mut); } .mini b { font-size: 18px; font-variant-numeric: tabular-nums; }
.mini .okc { color: var(--ok); } .mini .badc { color: var(--bad); }

/* =====================================================================
   v15.2 — the staff system in the hotel website's own look.
   Ivory, navy and gold; an elegant serif for titles, Jost for the rest;
   the menu in a navy bar across the top instead of a side bar.
   Everything is under body.lux so it wins over the per-company design block.
   ===================================================================== */
body.lux {
  --navy: #0e2240; --navy2: #17335d; --gold: #c6a15b; --gold-d: #7a5c24; --gold-soft: #f5eddd; --on-soft: #0e2240;
  /* status colours, each readable on its own pale background (all ≥ 4.5 : 1) */
  --ok: #1d6f49; --ok-soft: #e3f3ea; --warn: #8a5a0b; --warn-soft: #fdf1da; --bad: #a8261b; --bad-soft: #fbe7e5; --info: #2352b8; --info-soft: #e7eefc;
  --bg: #f7f3ec; --card: #ffffff; --ink: #1b2230; --mut: #596173; --line: #e6ddcc; --line-strong: #d4c7ae;
  --accent-soft: color-mix(in srgb, var(--accent) 9%, #ffffff);
  --primary: var(--navy); --primary-ink: #ffffff;
  --accent: #0e2240; --accent-ink: #ffffff;       /* one look for the whole hotel: navy, with gold beside it */
  --radius: 8px; --radius-sm: 6px;
  --shadow: 0 1px 0 rgba(14,34,64,.03), 0 14px 34px -26px rgba(14,34,64,.45);
  --serif: "Cormorant Garamond", "Noto Sans Ethiopic", Georgia, "Times New Roman", serif;
  --ui: "Jost", "Noto Sans Ethiopic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font: var(--ui);
  font-family: var(--ui); font-size: 15.5px; line-height: 1.55; background: var(--bg); color: var(--ink);
}
html[data-theme="dark"] body.lux, html[data-theme="midnight"] body.lux {
  --bg: #0a1526; --card: #111f37; --ink: #e8edf4; --mut: #9eabbf; --line: #1f3252; --line-strong: #2d4468;
  --gold-soft: #2a2416; --accent: #c6a15b; --accent-ink: #0e2240; --accent-soft: #2a2416; --primary: #c6a15b; --primary-ink: #0e2240;
  --gold-d: #d4b170; --on-soft: #e8cf9c; --navy2: #e8cf9c;
  --ok: #5fd39c; --ok-soft: #12382a; --warn: #f0bf5a; --warn-soft: #3a2c0f; --bad: #ff8a80; --bad-soft: #43191a; --info: #8fb2ff; --info-soft: #172a52;
  --shadow: 0 1px 0 rgba(0,0,0,.3), 0 16px 34px -24px rgba(0,0,0,.8);
}
body.lux .lux-shell { display: block; min-height: 100vh; }

/* ---------- the navy top bar ---------- */
body.lux .lxbar { position: sticky; top: 0; z-index: 45; background: var(--navy); color: #fff; transition: box-shadow .2s; }
body.lux .lxbar.scrolled { box-shadow: 0 10px 26px -16px rgba(0,0,0,.6); }
body.lux .lx-in { max-width: 1360px; margin: 0 auto; height: 66px; display: flex; align-items: center; gap: 18px; padding: 0 22px; }
body.lux .lx-brand { display: flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; flex: 0 0 auto; min-width: 0; }
body.lux .lx-logo { width: 40px; height: 40px; border-radius: 50%; background: #fff; object-fit: contain; padding: 3px; display: grid; place-items: center; font-size: 20px; flex: 0 0 40px; }
body.lux .lx-name { font: 600 23px/1 var(--serif); letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
body.lux .topnav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
body.lux .tn-link, body.lux .tn-btn {
  color: rgba(255,255,255,.82); font: 500 12.5px var(--ui); letter-spacing: .12em; text-transform: uppercase; padding: 10px 11px;
  border-radius: 4px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap; text-decoration: none; position: relative; min-height: 44px; }
html[lang="am"] body.lux .tn-link, html[lang="am"] body.lux .tn-btn { letter-spacing: 0; text-transform: none; font-size: 14.5px; }
body.lux .tn-link:hover, body.lux .tn-btn:hover, body.lux .tn-group.open > .tn-btn { color: #fff; background: rgba(255,255,255,.07); text-decoration: none; }
body.lux .tn-link.active, body.lux .tn-group.here > .tn-btn { color: #fff; }
body.lux .tn-link.active::after, body.lux .tn-group.here > .tn-btn::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 2px; background: var(--gold); border-radius: 2px; }
body.lux .tn-caret { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .8; }
body.lux .tn-group { position: relative; }
body.lux .tn-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; background: var(--card); color: var(--ink); border-radius: 10px;
  border: 1px solid var(--line); box-shadow: 0 26px 50px -22px rgba(8,18,36,.5); padding: 8px; display: none; z-index: 60; }
body.lux .tn-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
body.lux .tn-menu.right { left: auto; right: 0; }
body.lux .tn-menu { max-height: calc(100vh - 100px); overflow-y: auto; overscroll-behavior: contain; }
body.lux .tn-menu.wide { min-width: 500px; grid-template-columns: 1fr 1fr; column-gap: 4px; }
body.lux .tn-group.open > .tn-menu.wide { display: grid; }
@media (hover: hover) { body.lux .topnav .tn-group:hover > .tn-menu.wide { display: grid; } }
body.lux .tn-group.open > .tn-menu { display: block; }
@media (hover: hover) { body.lux .topnav .tn-group:hover > .tn-menu { display: block; } }
body.lux .tn-menu .navi { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 7px; color: var(--ink); font-size: 14.5px; text-decoration: none; }
body.lux .tn-menu .navi:hover { background: var(--gold-soft); text-decoration: none; }
body.lux .tn-menu .navi.active { background: var(--gold-soft); font-weight: 600; box-shadow: inset 3px 0 0 var(--gold); }
body.lux .tn-menu .navi .ic { width: 22px; text-align: center; font-size: 16px; }
body.lux .tn-menu .navmode { margin: 6px 4px 8px; }
body.lux .lx-act { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: 0 0 auto; }
body.lux .lx-ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; position: relative; font-size: 17px; text-decoration: none; background: rgba(255,255,255,.06); border: 0; cursor: pointer; }
body.lux .lx-ic:hover { background: rgba(255,255,255,.15); text-decoration: none; }
body.lux .lx-ic .badge-dot { top: 2px; right: 2px; }
body.lux .lx-avatar { padding: 0; min-height: 0; }
body.lux .lx-avatar .avatar { width: 40px; height: 40px; background: var(--gold); color: var(--navy); font-size: 15px; }
body.lux .lx-who { padding: 8px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: flex; flex-direction: column; }
body.lux .lx-who b { font: 600 20px var(--serif); } body.lux .lx-who span { font-size: 12.5px; color: var(--mut); }
body.lux .lxbar .sel-branch { width: auto; max-width: 170px; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18); padding: 7px 10px; font-size: 13.5px; min-height: 40px; }
body.lux .lxbar .sel-branch option { color: #1b2230; }
body.lux .lx-burger { display: none; font-size: 20px; }
@media (max-width: 1180px) { body.lux .topnav { display: none; } body.lux .lx-burger { display: grid; } body.lux .lx-act { margin-left: auto; } }
@media (max-width: 640px) {
  body.lux .lx-in { height: 60px; padding: 0 14px; gap: 10px; }
  body.lux .lx-name { font-size: 20px; max-width: 46vw; }
  body.lux .lx-act a[href*="assistant"], body.lux .lxbar .sel-branch { display: none; }
  body.lux .lx-me { display: none; }
}

/* ---------- the strip under the bar ---------- */
body.lux .lxhead { background: var(--card); border-bottom: 1px solid var(--line); }
body.lux .lxhead-in { max-width: 1360px; margin: 0 auto; padding: 9px 22px; display: flex; align-items: center; gap: 12px; min-height: 50px; flex-wrap: wrap; }
body.lux .lx-crumb { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; font: 600 12px var(--ui); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[lang="am"] body.lux .lx-crumb { letter-spacing: .02em; font-size: 14px; }
body.lux .lx-crumb::before { content: ""; width: 26px; height: 1px; background: currentColor; flex: 0 0 26px; }
body.lux .lx-date { font-size: 13px; color: var(--mut); }
body.lux .lxhead .btn { min-height: 38px; }
body.lux .content { max-width: 1360px; margin: 0 auto; padding: 28px 22px 40px; }
body.lux .lxfoot { text-align: center; font-size: 12.5px; color: var(--mut); padding: 10px 16px 40px; }
@media (max-width: 900px) {
  body.lux .content { padding: 18px 14px calc(var(--bottombar) + 26px); }
  body.lux .lxhead-in { padding: 8px 14px; min-height: 44px; }
  body.lux .lxfoot { padding-bottom: calc(var(--bottombar) + 20px); }
}

/* ---------- type ---------- */
body.lux h1 { font: 600 clamp(30px, 3.1vw, 40px)/1.08 var(--serif); color: var(--navy); letter-spacing: 0; margin: 0 0 6px; }
body.lux h2 { font: 600 23px/1.2 var(--serif); color: var(--navy); margin: 0 0 12px; letter-spacing: 0; }
body.lux h3 { font: 600 11.5px/1.4 var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-d); margin: 0 0 10px; }
html[lang="am"] body.lux h1, html[lang="am"] body.lux h2 { font-family: var(--ui); font-weight: 700; }
html[lang="am"] body.lux h1 { font-size: clamp(24px, 2.6vw, 32px); } html[lang="am"] body.lux h2 { font-size: 19px; }
html[lang="am"] body.lux h3 { letter-spacing: .02em; font-size: 13.5px; }
html[data-theme="dark"] body.lux h1, html[data-theme="dark"] body.lux h2, html[data-theme="midnight"] body.lux h1, html[data-theme="midnight"] body.lux h2 { color: var(--ink); }
body.lux a { color: var(--navy2); }
html[data-theme="dark"] body.lux a, html[data-theme="midnight"] body.lux a { color: var(--gold); }
body.lux .lxbar a, body.lux .bottombar a { color: inherit; }
body.lux .mut { color: var(--mut); }

/* ---------- blocks ---------- */
body.lux .head { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 22px; align-items: flex-end; }
body.lux .head h1 { margin: 0; }
body.lux .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
body.lux .card.tint { background: var(--gold-soft); border-color: transparent; }
body.lux .grid-2, body.lux .grid-3 { gap: 18px; }
body.lux .kpi { border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); background: var(--card); }
body.lux .kpi .l { font: 600 11.5px var(--ui); letter-spacing: .14em; color: var(--mut); }
body.lux .kpi .v { font: 600 34px/1.1 var(--serif); color: var(--navy); }
html[data-theme="dark"] body.lux .kpi .v, html[data-theme="midnight"] body.lux .kpi .v { color: var(--ink); }
body.lux .notice { border-radius: var(--radius-sm); border-left: 4px solid currentColor; font-weight: 500; }
body.lux .empty .big { opacity: .85; }

/* ---------- buttons & forms ---------- */
body.lux .btn { border-radius: 5px; font: 600 14px/1.2 var(--ui); letter-spacing: .02em; min-height: 42px; padding: 10px 16px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); }
body.lux .btn:hover { border-color: var(--navy); }
body.lux .btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
body.lux .btn.primary:hover { filter: none; background: var(--navy2); border-color: var(--navy2); }
html[data-theme="dark"] body.lux .btn.primary:hover, html[data-theme="midnight"] body.lux .btn.primary:hover { background: #d4b170; border-color: #d4b170; }
body.lux .btn.gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
body.lux .btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
body.lux .btn.ghost { background: transparent; border-color: transparent; color: var(--navy2); }
body.lux .btn.soft { background: var(--gold-soft); border-color: transparent; color: var(--on-soft); }
body.lux .btn.sm { min-height: 34px; padding: 6px 12px; font-size: 13px; }
body.lux .btn.lg { min-height: 52px; padding: 14px 22px; font-size: 16px; }
body.lux label { font: 600 12px var(--ui); letter-spacing: .06em; color: var(--mut); margin-bottom: 5px; }
body.lux label.check, body.lux label.chk, body.lux .check { font-size: 14.5px; letter-spacing: 0; color: var(--ink); font-weight: 500; }
body.lux input, body.lux select, body.lux textarea { border-radius: 5px; border: 1px solid var(--line-strong); background: #fffdf9; color: var(--ink); font-family: var(--ui); }
html[data-theme="dark"] body.lux input, html[data-theme="dark"] body.lux select, html[data-theme="dark"] body.lux textarea,
html[data-theme="midnight"] body.lux input, html[data-theme="midnight"] body.lux select, html[data-theme="midnight"] body.lux textarea { background: #0d1a2f; }
body.lux input:focus, body.lux select:focus, body.lux textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198,161,91,.24); }
body.lux input[type="checkbox"], body.lux input[type="radio"] { accent-color: var(--navy); }

/* ---------- tables, tags, chips ---------- */
body.lux .tbl { font-size: 14.5px; }
body.lux .tbl th { background: var(--bg); color: var(--mut); font: 600 11.5px var(--ui); letter-spacing: .12em; padding: 11px 12px; border-bottom: 1px solid var(--line); }
body.lux .tbl td { padding: 12px; border-bottom: 1px solid var(--line); }
body.lux .tbl tr.click:hover td, body.lux .tbl tbody tr:hover td { background: #fcfaf5; }
html[data-theme="dark"] body.lux .tbl tbody tr:hover td, html[data-theme="midnight"] body.lux .tbl tbody tr:hover td { background: #14243f; }
body.lux .tag { font-weight: 600; font-size: 12px; }
body.lux .tag.accent { background: var(--gold-soft); color: var(--on-soft); }
body.lux .tag.ok { background: var(--ok-soft); color: var(--ok); } body.lux .tag.warn { background: var(--warn-soft); color: var(--warn); }
body.lux .tag.bad { background: var(--bad-soft); color: var(--bad); } body.lux .tag.info { background: var(--info-soft); color: var(--info); }
body.lux .notice { background: var(--info-soft); color: var(--info); } body.lux .notice.ok { background: var(--ok-soft); color: var(--ok); }
body.lux .notice.warn { background: var(--warn-soft); color: var(--warn); } body.lux .notice.bad { background: var(--bad-soft); color: var(--bad); }
body.lux .chip { border-radius: 999px; }
body.lux .chip.on, body.lux .chip:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
body.lux .modes .mode.on { background: var(--navy); border-color: var(--navy); }

/* ---------- phones: the bottom bar and the ☰ sheet ---------- */
@media (max-width: 900px) {
  body.lux .bottombar { background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -20px rgba(14,34,64,.5); }
  body.lux .bottombar .active { color: var(--navy); position: relative; }
  body.lux .bottombar .active::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); }
  html[data-theme="dark"] body.lux .bottombar .active, html[data-theme="midnight"] body.lux .bottombar .active { color: var(--gold); }
}
body.lux .sheet { border-radius: 18px 18px 0 0; }
body.lux .sheet .who b { font: 600 20px var(--serif); }
body.lux .sheet .navi.active, body.lux .sheet .navi:hover { background: var(--gold-soft); color: var(--navy); }
/* the serif's numbers stand on the line, like a price list — not the old-style ones */
body.lux h1, body.lux h2, body.lux .kpi .v, body.lux .ts-v, body.lux .tdm-big b, body.lux .tdr b, body.lux .td-alert .ta-n, body.lux .lx-name { font-variant-numeric: lining-nums tabular-nums; }
/* white text needs a strong red behind it, in the light and the dark look alike */
body.lux .badge-dot, body.lux .btn.danger { background: #b3261e; border-color: #b3261e; color: #fff; }

/* ---------- v16.6: action cards and pop-ups ---------- */
.ibgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px;margin:8px 0 18px}
.ibcard{background:var(--card);border:1px solid var(--line);border-left:5px solid var(--navy);border-radius:10px;padding:12px 14px;display:flex;flex-direction:column;gap:10px;box-shadow:var(--shadow)}
.ibcard.urgent{border-left-color:#b3261e}.ibcard.gold{border-left-color:var(--gold)}.ibcard.ok{border-left-color:#1d6f49;background:color-mix(in srgb,#1d6f49 7%,var(--card))}
.ibtop{display:flex;gap:10px;align-items:flex-start}.ibi{font-size:26px;line-height:1;flex:0 0 auto}
.ibb{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.ibb b{font-size:15.5px;line-height:1.25}.ibb span{font-size:13px;color:var(--mut);overflow-wrap:anywhere}
.ibage{font:600 12px var(--ui);color:var(--mut);background:var(--bg);border-radius:999px;padding:3px 8px;white-space:nowrap}
.ibcard.urgent .ibage{background:#fbe7e5;color:#a8261b}
.iba{display:flex;gap:8px;flex-wrap:wrap}.iba .btn{flex:1 1 auto;justify-content:center;min-height:42px}.iba .btn.primary{flex:2 1 auto;font-weight:700}
.ibempty{background:var(--card);border:1px dashed var(--line);border-radius:10px;padding:18px;text-align:center;color:var(--mut);margin:8px 0 18px}
#ibpops{position:fixed;top:72px;right:14px;z-index:900;display:flex;flex-direction:column;gap:10px;width:min(380px,calc(100vw - 28px))}
.ibpop{position:relative;background:var(--card);border:1px solid var(--line);border-left:5px solid var(--navy);border-radius:10px;padding:12px 34px 12px 12px;display:grid;grid-template-columns:auto 1fr;gap:6px 10px;box-shadow:0 20px 40px -18px rgba(14,34,64,.55);animation:ibin .3s cubic-bezier(.2,.9,.3,1) both}
.ibpop.urgent{border-left-color:#b3261e}.ibpop.gold{border-left-color:var(--gold)}.ibpop.ok{border-left-color:#1d6f49}
.ibpop .ibi{font-size:24px}.ibpop .iba{grid-column:1/-1}.ibpop .iba .btn{flex:1 1 auto;min-height:36px}
.ibpop .ibx{position:absolute;top:6px;right:6px;border:0;background:transparent;color:var(--mut);font-size:15px;cursor:pointer;width:26px;height:26px}
.ibpop.fade{opacity:0;transition:opacity 1.5s}
@keyframes ibin{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}
@media(max-width:600px){#ibpops{top:auto;bottom:calc(76px + env(safe-area-inset-bottom));right:8px;left:8px;width:auto}}
