/* Larsen PMS — design tokens taken from larsen.ee's theme CSS.
   Headlines: ITC Clearface (licensed; falls back to Georgia as on larsen.ee). Body: Inter Tight. */
:root {
  --ink: #1e1e1e;
  --coral: #e5815e;        /* primary CTA */
  --coral-dark: #cf6a47;
  --teal: #1f6a6a;         /* secondary / nav */
  --teal-dark: #17504f;
  --mustard: #e7b95d;      /* highlights, badges */
  --pale-teal: #eff7f7;    /* surfaces */
  --sand: #eecdb0;
  --navy: #0b1057;
  --gray-50: #fafafa; --gray-100: #f5f5f5; --gray-200: #eaeaea; --gray-300: #dddddd; --gray-500: #949494; --gray-600: #686868;
  --ok: #2f8a5b; --ok-bg: #e5f4ec; --warn: #9a6a00; --warn-bg: #fbf1dc; --bad: #b8432a; --bad-bg: #fbe7e1; --info: #1f6a6a; --info-bg: #e2f0f0;
  --bg: #ffffff; --surface: #ffffff; --muted: var(--gray-600); --line: var(--gray-300);
  --serif: "ITC Clearface", Georgia, "Times New Roman", serif;
  --sans: "Inter Tight", Helvetica, Arial, sans-serif;
  --radius: 14px; --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(30,30,30,.05), 0 4px 16px rgba(30,30,30,.06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #141716; --surface: #1d2120; --ink: #ecefee; --muted: #9aa5a3; --line: #323837; --pale-teal: #1a2726; --gray-50: #191c1b; --gray-100: #222625; --gray-200: #2b302f;
    --ok-bg: #16301f; --warn-bg: #33290f; --bad-bg: #3a1d16; --info-bg: #162b2b; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: .2em 0 .5em; }
h1 { font-size: 2rem; } h2 { font-size: 1.4rem; } h3 { font-size: 1.15rem; } h4 { font-size: 1rem; margin: 1em 0 .4em; }
a { color: var(--teal); } a:hover { color: var(--coral); }
code { background: var(--gray-100); padding: 1px 6px; border-radius: 4px; font-size: .92em; }
code.wrap { word-break: break-all; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; }
.ok-text { color: var(--ok); } .err-text { color: var(--bad); } td.num, th.num { text-align: right; }
.coral { color: var(--coral); } .bad-t { color: var(--bad); } .warn-t { color: var(--warn); }
img.logo { height: 44px; width: 44px; display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-header img.logo, :root:not([data-theme="light"]) .login-logo { filter: invert(1); } }
.logo-light { filter: invert(1); }

/* ─── Buttons & forms ────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 8px 16px; border-radius: 999px;
  font: 500 .92rem var(--sans); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--teal); color: var(--teal); }
.btn.primary { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn.primary:hover { background: var(--coral-dark); border-color: var(--coral-dark); color: #fff; }
.btn.danger { color: var(--bad); border-color: #e9b9ad; } .btn.danger:hover { background: var(--bad); color: #fff; }
.btn.big { padding: 13px 26px; font-size: 1rem; } .btn.block { width: 100%; justify-content: center; } .btn.small { padding: 4px 10px; font-size: .8rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.linklike { background: none; border: 0; color: var(--teal); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }
label { display: block; font-size: .85rem; color: var(--muted); margin: 0 0 12px; }
label > input, label > select, label > textarea { display: block; width: 100%; margin-top: 4px; }
input, select, textarea { font: 400 .95rem var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; max-width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); outline-offset: -1px; border-color: var(--teal); }
textarea { min-height: 90px; resize: vertical; }
label.check { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: .92rem; }
label.check input { width: auto; margin: 0; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 0 0 12px; padding: 8px 12px; } legend { font-size: .85rem; color: var(--muted); padding: 0 4px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; }
.row > label { margin: 0; }
.stack > * + * { margin-top: 10px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 16px; box-shadow: var(--shadow); }
.notice { padding: 10px 14px; border-radius: var(--radius-sm); margin: 0 0 14px; font-size: .92rem; }
.notice.ok { background: var(--ok-bg); color: var(--ok); } .notice.err { background: var(--bad-bg); color: var(--bad); } .notice.info { background: var(--info-bg); color: var(--info); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; text-transform: none; letter-spacing: .01em; background: var(--gray-200); color: var(--muted); vertical-align: middle; }
.badge::first-letter { text-transform: uppercase; }
.badge.ok { background: var(--ok-bg); color: var(--ok); } .badge.warn { background: var(--warn-bg); color: var(--warn); } .badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.info { background: var(--info-bg); color: var(--info); } .badge.muted { background: var(--gray-200); color: var(--muted); }
.count { display: inline-block; min-width: 22px; padding: 0 7px; border-radius: 999px; background: var(--mustard); color: #1e1e1e; font: 600 .75rem var(--sans); text-align: center; vertical-align: middle; }

.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font-weight: 600; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--gray-200); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; } .tbl tr.flag td { background: var(--bad-bg); }
.empty { padding: 8px 0; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: .92rem; } .dl dt { color: var(--muted); } .dl dd { margin: 0; }
.totals { display: flex; justify-content: flex-end; gap: 22px; margin-top: 12px; flex-wrap: wrap; }
.big-num { font: 400 2rem var(--serif); margin-bottom: 8px; } .big-num.due { color: var(--coral); }
.plain { list-style: none; padding: 0; margin: 0 0 12px; } .plain li { padding: 4px 0; }

/* ─── Staff shell ────────────────────────────────────────────────────────── */
.staff-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.staff-side { background: var(--teal); color: #fff; padding: 18px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.staff-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 400 1.3rem var(--serif); margin-bottom: 18px; }
.staff-brand img { height: 38px; width: 38px; }
.staff-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.staff-nav a { color: #d7ebea; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .93rem; }
.staff-nav a:hover { background: var(--teal-dark); color: #fff; } .staff-nav a.active { background: var(--coral); color: #fff; }
.staff-user { border-top: 1px solid rgba(255,255,255,.2); padding-top: 12px; font-size: .88rem; } .staff-user .muted { color: #a9cfcd; } .staff-user .linklike { color: #fff; }
.staff-main { padding: 22px 30px 60px; min-width: 0; background: var(--gray-50); }
.demo-banner { background: var(--mustard); color: #1e1e1e; font-size: .78rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; display: table; margin-bottom: 12px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.filters { margin-bottom: 12px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 0 0 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; border-top: 4px solid var(--teal); }
.kpi.warn { border-top-color: var(--mustard); } .kpi.bad { border-top-color: var(--coral); }
.kpi-label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; } .kpi-value { font: 400 1.7rem var(--serif); margin: 2px 0; } .kpi-sub { font-size: .82rem; color: var(--muted); }
.occ-row { display: grid; grid-template-columns: 130px 1fr 80px; gap: 10px; align-items: center; margin: 6px 0; font-size: .9rem; }
.occ-bar { height: 14px; background: var(--gray-200); border-radius: 999px; overflow: hidden; display: flex; }
.occ-bar .long { background: var(--teal); } .occ-bar .short { background: var(--navy); opacity: .55; } .occ-num { text-align: right; color: var(--muted); font-size: .82rem; }
.legend { font-size: .8rem; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 2px; vertical-align: -1px; }
.sw.long, .sw.active { background: var(--teal); } .sw.short, .sw.cb { background: #7b7fa6; } .sw.free { background: var(--gray-200); }
.sw.s-confirmed { background: var(--mustard); } .sw.s-notice { background: var(--coral); } .sw.s-hold { background: var(--sand); } .sw.s-active { background: var(--teal); }
.aging { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .age { background: var(--gray-100); border-radius: var(--radius-sm); padding: 10px; } .age-v { font: 400 1.2rem var(--serif); }
.timeline { list-style: none; padding: 0; margin: 0; max-height: 420px; overflow-y: auto; } .timeline li { padding: 6px 0 6px 12px; border-left: 2px solid var(--sand); margin-left: 4px; font-size: .9rem; }
.actions .row > form { margin: 0; }
.mail-frame { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.pdf-frame { width: 100%; height: 420px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }

/* Calendar */
.cal { padding: 10px 0; overflow-x: auto; }
.cal-head, .cal-row { display: grid; grid-template-columns: 130px 1fr; min-width: 900px; }
.cal-head .cal-track { height: 22px; position: relative; } .tick { position: absolute; font-size: .72rem; color: var(--muted); border-left: 1px solid var(--line); padding-left: 3px; top: 0; height: 100%; white-space: nowrap; }
.today { position: absolute; top: 0; width: 2px; background: var(--coral); height: 9999px; z-index: 2; pointer-events: none; }
.cal-body { position: relative; overflow: hidden; }
.cal-room { padding: 0 12px; font-size: .8rem; display: flex; gap: 6px; align-items: baseline; white-space: nowrap; overflow: hidden; }
.cal-row { border-top: 1px solid var(--gray-200); height: 26px; align-items: center; }
.cal-track { position: relative; height: 100%; }
.bar { position: absolute; top: 3px; bottom: 3px; border-radius: 5px; font-size: .7rem; color: #fff; padding: 2px 6px; overflow: hidden; white-space: nowrap; text-decoration: none; background: var(--teal); }
.bar:hover { filter: brightness(1.1); color: #fff; }
.bar.s-confirmed { background: var(--mustard); color: #1e1e1e; } .bar.s-notice { background: var(--coral); } .bar.s-hold { background: var(--sand); color: #1e1e1e; }
.bar.cb { background: #7b7fa6; } .bar.s-ended, .bar.s-cancelled, .bar.s-expired { background: var(--gray-500); }

/* Kanban */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; }
.kcol { background: var(--gray-100); border-radius: var(--radius); padding: 10px; min-height: 200px; } .kcol-h { font-weight: 600; margin: 2px 4px 10px; }
.kcard { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; margin-bottom: 8px; text-decoration: none; color: var(--ink); }
.kcard:hover { border-color: var(--teal); color: var(--ink); } .kcard.urgent { border-left: 4px solid var(--coral); } .kt { font-weight: 600; margin: 6px 0 2px; font-size: .92rem; }
.comment { background: var(--gray-100); border-radius: var(--radius-sm); padding: 8px 12px; margin: 6px 0; font-size: .92rem; }
.comment.staff { background: var(--info-bg); } .comment.system { background: transparent; color: var(--muted); font-size: .82rem; padding: 2px 12px; }
.tbl.inspect input { width: 100%; } .tbl.inspect select { width: auto; }

/* ─── Public (booking + portal) ──────────────────────────────────────────── */
body.public { background: var(--bg); }
.site-header { display: flex; justify-content: space-between; align-items: center; padding: 14px max(16px, 4vw); border-bottom: 1px solid var(--line); gap: 12px; flex-wrap: wrap; background: var(--surface); }
.site-nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; } .site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-nav a:hover, .site-nav a.active { color: var(--coral); } .site-nav form { margin: 0; } .site-nav .lang { border: 1px solid var(--line); padding: 2px 10px; border-radius: 999px; font-size: .8rem; }
.site-main { max-width: 1120px; margin: 0 auto; padding: 28px 16px 60px; } .site-main.narrow { max-width: 960px; }
.site-footer { text-align: center; color: var(--muted); font-size: .82rem; padding: 26px 16px; border-top: 1px solid var(--line); }
.hero { background: var(--pale-teal); border-radius: 22px; padding: 34px 32px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 0 0 .3em; } .hero p { max-width: 640px; font-size: 1.05rem; margin: 0; }
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; flex-wrap: wrap; counter-reset: s; }
.steps li { counter-increment: s; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--gray-100); color: var(--muted); font-size: .85rem; }
.steps li::before { content: counter(s); display: inline-block; width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 50%; background: var(--line); color: var(--surface); margin-right: 6px; font-size: .75rem; }
.steps li.on { background: var(--teal); color: #fff; } .steps li.on::before { background: var(--mustard); color: #1e1e1e; }
.search { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr auto; gap: 12px; align-items: end; } .search label { margin: 0; }
@media (max-width: 860px) { .search { grid-template-columns: 1fr 1fr; } .search .btn { grid-column: 1 / -1; justify-content: center; } }
.house-h { margin-top: 26px; }
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.room-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); }
.room-card:hover { border-color: var(--teal); box-shadow: var(--shadow); } .room-type { font: 400 1.25rem var(--serif); }
.room-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 8px; } .price { font: 600 1.25rem var(--sans); }
.avail { font-size: .8rem; color: var(--ok); font-weight: 600; } .avail.low { color: var(--coral); }
.with-quote { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }
@media (max-width: 860px) { .with-quote { grid-template-columns: 1fr; } }
.quote { position: sticky; top: 16px; background: var(--pale-teal); border-color: transparent; }
.q-big { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 4px; } .q-big strong { font: 400 1.8rem var(--serif); }
.q-row, .ql { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: .9rem; } .ql { font-size: .8rem; color: var(--muted); }
.q-pay { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; } .q-pay strong { font-size: 1.4rem; color: var(--coral); }
details summary { cursor: pointer; color: var(--teal); margin: 2px 0 4px; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; color: var(--ink); cursor: pointer; }
.radio-card input { width: auto; margin-top: 4px; } .radio-card.on { border-color: var(--teal); background: var(--pale-teal); }
.opts .row { margin-top: 14px; }
.hold-note { background: var(--warn-bg); color: var(--warn); display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: .88rem; }
.sign-form { max-width: 640px; }
.done { max-width: 620px; margin: 30px auto; } .done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 2rem; line-height: 64px; margin: 0 auto 10px; }
.narrow-card { max-width: 420px; margin: 6vh auto; }
.pay-card { max-width: 520px; margin: 4vh auto; text-align: center; } .pay-provider { font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.bank-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px 0; }
.bank { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); padding: 16px; font: 600 .95rem var(--sans); cursor: pointer; color: var(--ink); }
.bank:hover { border-color: var(--coral); color: var(--coral); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; color: var(--muted); font-weight: 600; }
.door-code { font: 600 2.6rem var(--sans); letter-spacing: .25em; color: var(--teal); margin: 6px 0; }
.code-card { background: var(--pale-teal); border-color: transparent; }
.checklist { display: grid; grid-template-columns: 1fr; gap: 6px; margin-bottom: 12px; }
.check-item { display: grid; grid-template-columns: 280px 1fr; gap: 10px; align-items: center; padding: 4px 8px; border-radius: 6px; }
.check-item.flag { background: var(--bad-bg); } .check-item label { margin: 0; }
@media (max-width: 640px) { .check-item { grid-template-columns: 1fr; } }
.issue-form { max-width: 720px; }
.danger-zone { border-color: #efc7bc; }
.login-page { background: var(--pale-teal); min-height: 100vh; }
.login-card { max-width: 380px; margin: 10vh auto; text-align: left; } .login-logo { height: 56px; width: 56px; margin-bottom: 6px; }

@media (max-width: 860px) {
  .staff-shell { grid-template-columns: 1fr; }
  .staff-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; }
  .staff-brand { margin: 0; } .staff-nav { flex-direction: row; flex-wrap: wrap; flex: 1 1 100%; } .staff-nav a { padding: 6px 10px; font-size: .85rem; }
  .staff-user { border: 0; padding: 0; display: flex; gap: 10px; }
  .staff-main { padding: 16px; } .kanban { grid-template-columns: repeat(4, 240px); }
  .aging { grid-template-columns: repeat(2, 1fr); } .occ-row { grid-template-columns: 100px 1fr 70px; }
  .hero { padding: 24px 18px; } h1 { font-size: 1.6rem; }
}

/* ─── LT booking engine (/stay) — Blueground design language ──────────────── */
/* Layout: lavender-gradient home with a white pill search bar and a 4-column photo collage;
   results = cards left, light map right; room = 1+4 photo grid, content left, booking box right. */
body.stay {
  /* Larsen greys: warm stone backgrounds, charcoal text and buttons (Janek, 14 Oct: "more Larsen colours, greyish") */
  --bg-navy: #2b2a28; --bg-navy-2: #141413; --tx: #262523; --tx-2: #6b6760; --tx-3: #9a958d;
  --ln: #e6e2dc; --ln-2: #d6d1c9; --card: #ffffff; --soft: #f4f2ee;
  --lav-1: #e9e7e2; --lav-2: #efede9; --lav-3: #f5f4f1;
  --save-bg: #e3f0e6; --save: #2f6b45; --deal: #eecdb0; --deal-tx: #6b4426;
  --accent: #a84a2c;   /* the renewal page's chat (Janek, 24 Nov 2026: the chat in terracotta, the yes button black) */
  --r-lg: 22px; --r-md: 16px; --r-sm: 12px;
  --sh: 0 2px 6px rgba(38,37,35,.06), 0 10px 30px rgba(38,37,35,.08);
  --f: "Outfit", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-family: var(--f); color: var(--tx); background: #fff; letter-spacing: .005em;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.stay { color-scheme: light; } }
body.stay h1, body.stay h2, body.stay h3 { font-family: var(--f); color: var(--tx); letter-spacing: -.01em; }
body.stay.is-home { background: linear-gradient(180deg, var(--lav-1) 0%, var(--lav-2) 45%, var(--lav-3) 100%); background-attachment: fixed; }
.stay-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 32px; position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ln); }
body.stay.is-home .stay-top { background: transparent; border-bottom-color: transparent; backdrop-filter: none; position: relative; }
.stay-top .logo { height: 28px; }
.stay-top .langs a { margin-left: 14px; color: var(--tx); text-decoration: none; opacity: .5; font-weight: 600; font-size: 14px; }
.stay-top .langs a.active { opacity: 1; }
.stay-top-r { display: flex; align-items: center; }
.stay-top .cookie-link { color: var(--tx); opacity: .5; font-size: 13px; text-decoration: none; }   /* PostHog consent: shows the banner again (core/posthog) */
.stay-top .cookie-link:hover { opacity: 1; }
.stay-main { max-width: 1320px; margin: 0 auto; padding: 0 24px 96px; }
.stay-narrow { max-width: 640px; padding-top: 32px; }
.muted { color: var(--tx-2); }
.ic { width: 18px; height: 18px; flex: 0 0 auto; }
.ic.big { width: 30px; height: 30px; }

/* Buttons */
.btn-navy { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--bg-navy); color: #fff; border: 0; border-radius: 999px; padding: 12px 22px; font: 600 15px var(--f); cursor: pointer; text-decoration: none; }
.btn-navy:hover { background: var(--bg-navy-2); color: #fff; }
.btn-navy:disabled { opacity: .45; cursor: default; }
.btn-navy.big { width: 100%; padding: 16px; font-size: 16px; }
.btn-line { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #fff; color: var(--tx); border: 1px solid var(--ln-2); border-radius: 999px; padding: 11px 20px; font: 500 15px var(--f); cursor: pointer; text-decoration: none; }
.btn-line:hover { border-color: var(--tx); color: var(--tx); }
.btn-line.wide { width: 100%; }

/* Undo staff-app styles that share class names with the booking pages */
body.stay .hero { background: none; border-radius: 0; margin: 0; }
body.stay .steps { display: grid; flex-wrap: nowrap; counter-reset: none; }
body.stay .steps li { background: none; padding: 0; border-radius: 0; color: var(--tx); font-size: 16px; }
body.stay .steps li::before { content: none; }
body.stay .empty { padding: 28px; }

/* Home */
.hero { text-align: center; padding: 40px 0 56px; position: relative; z-index: 6; }
.hero h1 { font-weight: 500; font-size: clamp(36px, 5.2vw, 68px); line-height: 1.08; margin: 0 auto 18px; max-width: 12em; text-wrap: balance; }
.hero > p { color: var(--tx); font-size: 18px; margin: 0 auto 44px; max-width: 36em; }
.collage { display: grid; grid-template-columns: 1fr 1.05fr 1.05fr 1fr; grid-template-rows: 190px 160px 210px; gap: 14px;
  grid-template-areas: "a b b c" "d b b e" "d f g e"; margin: 0 -8px; }
.collage .c { border-radius: var(--r-lg); overflow: hidden; background: rgba(255,255,255,.4); }
.collage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.collage .c0 { grid-area: a; } .collage .c1 { grid-area: b; } .collage .c2 { grid-area: c; } .collage .c3 { grid-area: d; }
.collage .c4 { grid-area: e; } .collage .c5 { grid-area: f; } .collage .c6 { grid-area: g; }
@media (max-width: 800px) {
  .collage { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 130px 130px; grid-template-areas: "b b" "a c" "f g"; }
  .collage .c3, .collage .c4 { display: none; }
}

/* Search bar */
.sbar { position: relative; display: flex; align-items: center; max-width: 980px; margin: 0 auto; background: #fff; border-radius: 999px; box-shadow: var(--sh); padding: 8px 8px 8px 16px; text-align: left; }
.sbar.compact { max-width: 860px; box-shadow: 0 1px 3px rgba(38,37,35,.08); border: 1px solid var(--ln); padding: 4px 4px 4px 10px; }
.sb-f { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 10px 20px; flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: 999px; }
.sb-f:hover { background: var(--soft); }
.sb-where { flex: 1.5; }
.sb-f > span { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tx); }
.sb-f > b, .sb-f > select { font: 400 17px var(--f); color: var(--tx); border: 0; background: none; padding: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; appearance: none; cursor: pointer; }
.sb-f > b.ph { color: var(--tx-2); }
.sbar.compact .sb-f { padding: 6px 16px; } .sbar.compact .sb-f > span { font-size: 11px; } .sbar.compact .sb-f > b, .sbar.compact .sb-f > select { font-size: 15px; }
.sb-go { display: inline-flex; align-items: center; gap: 10px; background: var(--bg-navy); color: #fff; border: 0; border-radius: 999px; padding: 16px 28px; font: 600 17px var(--f); cursor: pointer; }
.sb-go:hover { background: var(--bg-navy-2); }
.sb-go .ic { width: 20px; height: 20px; stroke-width: 2.2; }
.sbar.compact .sb-go { padding: 11px 20px; font-size: 15px; }
.when-panel { position: absolute; top: calc(100% + 10px); left: 33%; width: min(440px, 100%); background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh); border: 1px solid var(--ln); padding: 20px; display: grid; gap: 14px; z-index: 40; }
.when-panel[hidden] { display: none; }
.tabs { display: flex; gap: 4px; background: var(--soft); border-radius: 999px; padding: 4px; justify-self: center; }
.tabs button { border: 0; background: none; padding: 8px 26px; border-radius: 999px; font: 500 15px var(--f); cursor: pointer; color: var(--tx-2); }
.tabs button.on { background: #fff; color: var(--tx); box-shadow: 0 1px 4px rgba(38,37,35,.15); }
.wp-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--tx-2); }
.wp-row select { font: 500 15px var(--f); color: var(--tx); border: 1px solid var(--ln-2); border-radius: var(--r-sm); padding: 9px 12px; background: #fff; max-width: 62%; }
.stepper-box { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--ln); border-radius: 999px; padding: 6px; }
.stepper-box b { font-weight: 600; font-size: 17px; }
.stepper-box button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ln-2); background: #fff; font-size: 20px; cursor: pointer; color: var(--tx); }
.save-more { margin: 0; text-align: center; font-weight: 600; color: var(--save); font-size: 14px; }
.wp-note { margin: 0; font-size: 13px; color: var(--tx-2); }
.ends { display: grid; gap: 8px; }
.end-opt { display: flex; align-items: center; gap: 10px; border: 1px solid var(--ln); border-radius: var(--r-sm); padding: 12px 14px; cursor: pointer; font-size: 15px; }
.end-opt { flex-wrap: wrap; } .end-opt > span { white-space: nowrap; } .end-opt small { flex: 1 1 140px; min-width: 0; }
.end-opt:has(input:checked) { border-color: var(--tx); box-shadow: inset 0 0 0 1px var(--tx); }
.end-opt input { width: auto; margin: 0; accent-color: var(--bg-navy); }
.end-opt small { color: var(--tx-2); }
@media (max-width: 760px) {
  .sbar { flex-wrap: wrap; border-radius: var(--r-lg); padding: 8px; }
  .sb-f { flex: 1 1 100%; border-radius: var(--r-sm); }
  .sb-go { flex: 1 1 100%; justify-content: center; margin-top: 6px; }
  .when-panel { left: 0; width: 100%; }
}


/* Calendar (date picker) */
.when-panel { width: min(680px, 100%); left: 50%; transform: translateX(-50%); }
@media (max-width: 760px) { .when-panel { transform: none; left: 0; } }
.cal { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; padding: 4px 4px 0; }
.cal-m h4 { margin: 4px 0 12px; text-align: center; font: 600 16px var(--f); color: var(--tx); text-transform: capitalize; }
.cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; text-align: center; }
.cal-g b { font-size: 12px; font-weight: 500; color: var(--tx-3); padding-bottom: 6px; }
.cal-g span, .cal-g button { height: 40px; display: grid; place-items: center; font: 400 15px var(--f); color: var(--tx-3); border: 0; background: none; border-radius: 999px; }
.cal-g button.ok { color: var(--tx); font-weight: 600; cursor: pointer; }
.cal-g button.ok:hover { box-shadow: inset 0 0 0 1.5px var(--tx); }
.cal-g .mid { background: var(--soft); border-radius: 0; color: var(--tx-2); }
.cal-g .sel { background: var(--bg-navy) !important; color: #fff !important; }
.cal-nav { position: absolute; top: 0; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--ln-2); background: #fff; color: var(--tx); display: grid; place-items: center; cursor: pointer; z-index: 1; }
.cal-nav.prev { left: 0; } .cal-nav.next { right: 0; }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-hint { margin: 0; text-align: center; font-size: 14px; color: var(--tx-2); }
.cal-in { margin: 4px 0 0; text-align: center; font-size: 14px; color: var(--tx); }
.wp-foot { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; border-top: 1px solid var(--ln); padding-top: 14px; }
.wp-foot span { font-weight: 600; } .wp-foot .wp-note { grid-column: 1; }
.wp-foot .btn-navy { grid-row: 1 / span 2; grid-column: 2; }

/* Results */
.top-search { padding: 18px 0; }
.res-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 28px; align-items: start; }
.res-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.res-head .note { display: inline-flex; align-items: center; gap: 8px; color: var(--tx-2); font-size: 15px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; cursor: pointer; color: var(--tx-2); }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle i { width: 40px; height: 24px; border-radius: 999px; background: var(--ln-2); position: relative; transition: background .15s; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .15s; }
.toggle input:checked + i { background: var(--bg-navy); }
.toggle input:checked + i::after { left: 19px; }
.toggle input:focus-visible + i { outline: 2px solid var(--bg-navy); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { border: 1px solid var(--ln-2); background: #fff; border-radius: 999px; padding: 7px 16px; font: 500 14px var(--f); cursor: pointer; color: var(--tx); }
.chip.on { background: var(--bg-navy); border-color: var(--bg-navy); color: #fff; }
.rgrid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.rgrid2.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 620px) { .rgrid2, .rgrid2.three { grid-template-columns: 1fr; } }
.rcard { display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); overflow: hidden; color: inherit; text-decoration: none; box-shadow: var(--sh); transition: transform .15s, box-shadow .15s; }
.rcard:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(38,37,35,.08), 0 16px 40px rgba(38,37,35,.12); }
.car { position: relative; aspect-ratio: 16 / 10.5; background: var(--soft); margin: 10px 10px 0; border-radius: var(--r-md); overflow: hidden; }
.car img { width: 100%; height: 100%; object-fit: cover; display: block; }
.car img[hidden] { display: none; }
.car-p, .car-n { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--tx); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .15s; }
.car-p { left: 10px; } .car-n { right: 10px; }
.rcard:hover .car-p, .rcard:hover .car-n, .car-p:focus-visible, .car-n:focus-visible { opacity: 1; }
.dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); }
.dots i.on { background: #fff; }
.rc-body { padding: 16px 20px 20px; display: grid; gap: 10px; }
.rc-price { margin: 0; font-size: 16px; color: var(--tx-2); }
.rc-price b { font-size: 24px; font-weight: 600; color: var(--tx); }
.rc-specs { margin: 0; display: flex; flex-wrap: wrap; gap: 18px; color: var(--tx); font-size: 15px; }
.rc-specs span { display: inline-flex; align-items: center; gap: 6px; }
.rc-name { margin: 0; font-size: 15px; color: var(--tx); line-height: 1.4; }
.rc-name b { font-weight: 500; }
.res-map { position: sticky; top: 84px; }
.res-map #map { height: calc(100vh - 110px); border-radius: var(--r-lg); overflow: hidden; }
/* minmax(0, 1fr): a plain 1fr column grew to the width of the swipeable type chips, so phones got a 670–750 px page (UX test 24 Oct). */
@media (max-width: 980px) { .res-wrap { grid-template-columns: minmax(0, 1fr); } .res-wrap > * { min-width: 0; } .res-map { position: static; order: -1; } .res-map #map { height: 280px; } }
.pin { background: none; border: 0; }
.pin-n { display: grid; place-items: center; width: 48px; height: 48px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; border: 4px solid var(--bg-navy); color: var(--tx); font: 600 16px var(--f); box-shadow: 0 2px 8px rgba(38,37,35,.25); cursor: pointer; }
.pin-n.on { background: var(--bg-navy); color: #fff; }
.pin-home { display: grid; place-items: center; width: 44px; height: 44px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--bg-navy); color: #fff; box-shadow: 0 2px 8px rgba(38,37,35,.3); }
.empty { background: var(--soft); border-radius: var(--r-lg); padding: 28px; }
.empty h3 { margin: 0 0 8px; }
.sugg { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.sugg button { display: grid; gap: 2px; text-align: left; background: #fff; border: 1px solid var(--ln-2); border-radius: var(--r-md); padding: 12px 16px; font: 500 15px var(--f); color: var(--tx); cursor: pointer; }
.sugg small { color: var(--tx-2); font-weight: 400; }
.skeleton { height: 320px; border-radius: var(--r-lg); background: linear-gradient(90deg, var(--soft), #fafbfd, var(--soft)); background-size: 200% 100%; animation: sk 1.2s infinite; margin-bottom: 16px; }
.skeleton.tall { height: 520px; margin-top: 24px; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } .rcard { transition: none; } }

/* Room page */
.room-page { max-width: 1240px; margin: 0 auto; padding-top: 28px; }
.rp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.rp-head h1 { font-weight: 500; font-size: clamp(30px, 4vw, 46px); margin: 0 0 8px; line-height: 1.1; }
.rp-meta { margin: 0; font-size: 18px; color: var(--tx); }
.rp-meta i { font-style: normal; margin: 0 6px; color: var(--tx-3); }
.rp-share { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; font: 600 17px var(--f); color: var(--tx); cursor: pointer; }
.pgrid { position: relative; display: grid; grid-template-columns: 2.05fr 1fr 1fr; grid-template-rows: 250px 250px; gap: 12px; border-radius: var(--r-lg); overflow: hidden; }
.pg { border: 0; padding: 0; cursor: zoom-in; background: var(--soft); }
.pg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg0 { grid-row: span 2; }
.pg-all { position: absolute; left: 24px; bottom: 22px; display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.95); border: 0; border-radius: 999px; padding: 11px 18px; font: 600 16px var(--f); color: var(--tx); cursor: pointer; }
@media (max-width: 760px) { .pgrid { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 120px; } .pg0 { grid-column: span 2; grid-row: auto; } .pg3, .pg4 { display: none; } .pg-all { left: 12px; bottom: 12px; } }
.rp-cols { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 64px; margin-top: 36px; align-items: start; }
@media (max-width: 980px) { .rp-cols { grid-template-columns: 1fr; gap: 24px; } }
.rp-main > section, .rp-main > .feature { border-top: 1px solid var(--ln); padding: 30px 0; }
.rp-main > .feature:first-child { border-top: 0; padding-top: 4px; }
.feature { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.feature .ic.big { width: 56px; height: 56px; padding: 13px; border-radius: 50%; background: var(--bg-navy); color: #fff; stroke-width: 1.6; }
.feature h3 { margin: 4px 0 6px; font-size: 20px; font-weight: 600; }
.feature p { margin: 0; font-size: 17px; line-height: 1.55; }
.rp-main h2 { font-weight: 500; font-size: 30px; margin: 0 0 16px; }
.rp-main p { font-size: 17px; line-height: 1.6; max-width: 62ch; }
.amen { columns: 2; padding: 0; margin: 0; list-style: none; font-size: 16px; line-height: 2.1; }
.amen li::before { content: "✓"; color: var(--save); margin-right: 10px; font-weight: 700; }
@media (max-width: 560px) { .amen { columns: 1; } }
.nmap { height: 300px; border-radius: var(--r-lg); overflow: hidden; margin: 12px 0 16px; }
.near { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.near li { display: grid; gap: 2px; background: var(--soft); border-radius: var(--r-md); padding: 14px 16px; }
.near span { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tx-2); }
.near b { font-weight: 500; }
.near small { color: var(--save); font-weight: 500; }
.rules { display: grid; grid-template-columns: 210px 1fr; gap: 14px 20px; margin: 0; font-size: 16px; }
.rules dt { font-weight: 600; }
.rules dd { margin: 0; color: var(--tx-2); line-height: 1.5; }
@media (max-width: 560px) { .rules { grid-template-columns: 1fr; gap: 4px; } .rules dd { margin-bottom: 10px; } }
.faq { border-bottom: 1px solid var(--ln); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0; cursor: pointer; font-size: 17px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq[open] summary .ic { transform: rotate(180deg); }
.faq p { margin: 0 0 18px; color: var(--tx-2); }
.contact-box { margin-top: 28px; background: var(--soft); border-radius: var(--r-lg); padding: 24px; }
.contact-box h3 { margin: 0 0 14px; font-size: 22px; font-weight: 500; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* Booking box */
.bbox { position: sticky; top: 92px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh); border: 1px solid var(--ln); padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }   /* the column never grows past the box (375 px phones overflowed by 50 px, 18 Oct) */
.levels { display: flex; gap: 10px; overflow-x: auto; padding: 26px 2px 4px; margin: -8px -4px 0; scrollbar-width: none; }
.lvl { position: relative; flex: 0 0 auto; min-width: 128px; display: grid; justify-items: center; gap: 4px; text-align: center; border: 1px solid var(--ln-2); border-radius: var(--r-md); background: #fff; padding: 16px 12px 14px; font: inherit; cursor: pointer; color: var(--tx); }
.lvl.on { border: 2px solid var(--tx); cursor: default; padding-top: 12px; }
.lvl.on .ic { width: 22px; height: 22px; }
.lvl small { color: var(--tx-2); font-size: 14px; }
.lvl b { font-size: 21px; font-weight: 600; }
.lvl b em { font-style: normal; font-size: 13px; font-weight: 500; }
.lvl .save { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); background: var(--save-bg); color: var(--save); border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.lvl[data-months] { padding-top: 40px; }
.lvl.best { border-color: var(--ln-2); }
.lvl .ribbon { position: absolute; top: -24px; left: -1px; right: -1px; background: var(--deal); color: var(--deal-tx); border-radius: var(--r-md) var(--r-md) 0 0; font-size: 13px; font-weight: 600; padding: 4px 0 14px; z-index: -1; }
.bdates { display: flex; align-items: center; justify-content: space-between; text-align: left; border: 1px solid var(--ln-2); border-radius: var(--r-md); background: none; padding: 14px 18px; font: inherit; cursor: pointer; color: inherit; }
.bdates span { display: grid; gap: 4px; }
.bdates small { color: var(--tx-2); font-size: 14px; }
.bdates b { font-size: 17px; font-weight: 500; }
.sub-note { margin: -4px 0 0; text-align: center; color: var(--tx-2); font-size: 14px; }
.sub-note.left { text-align: left; margin: 0; font-size: 13px; }
.sub-note.contract-sample { margin: 2px 0 0; font-size: 13px; }
.sub-note.contract-sample a { color: inherit; text-decoration: underline; }
.money { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0; font-size: 15px; }
.money dt { color: var(--tx); }
.money dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.money .strong { font-weight: 600; }
.offer { margin: 0; background: var(--save-bg); color: var(--save); border-radius: var(--r-sm); padding: 10px 12px; font-size: 14px; line-height: 1.4; }
.due { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--ln); padding-top: 14px; font-size: 17px; font-weight: 500; }
.due b { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pd { border-top: 1px solid var(--ln); padding-top: 12px; }
.pd summary { cursor: pointer; font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.pd[open] summary { margin-bottom: 12px; }
.tline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--ln); display: grid; gap: 12px; font-size: 14px; }
.tline li { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; }
.tline li::before { content: ""; position: absolute; left: -23px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--bg-navy); }
.tline li:first-child::before { background: var(--bg-navy); }
.tline li span:first-child { color: var(--tx-2); white-space: nowrap; }
.tline li.more span:last-child { color: var(--tx-2); font-style: italic; }
.tline b { font-variant-numeric: tabular-nums; font-weight: 600; }
.mbar { display: none; }
@media (max-width: 980px) {
  .bbox { position: static; }
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--ln); box-shadow: 0 -4px 16px rgba(38,37,35,.08); }
  .mbar div { display: grid; gap: 2px; } .mbar b { font-size: 19px; font-weight: 600; } .mbar small, .mbar span { color: var(--tx-2); font-size: 13px; font-weight: 400; }
}

/* Lightbox, modals, offer card */
.lbox { position: fixed; inset: 0; z-index: 60; background: rgba(16,22,38,.94); display: flex; align-items: center; justify-content: center; }
.lbox img { max-width: 90vw; max-height: 84vh; border-radius: var(--r-sm); }
.lbox button { position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; font-size: 26px; }
.lb-x { top: 16px; right: 16px; } .lb-p { left: 16px; } .lb-n { right: 16px; }
.lbox .lb-c { position: absolute; bottom: 18px; color: #fff; font-size: 14px; }
/* Thumbnail strip: jump to any photo */
.lbox.has-strip { padding-bottom: 96px; } .lbox.has-strip .lb-img { max-height: calc(100vh - 170px); } .lbox.has-strip .lb-c { bottom: 92px; }
.lb-strip { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; gap: 8px; justify-content: safe center; overflow-x: auto; padding: 4px 16px; scrollbar-width: none; }
.lb-strip::-webkit-scrollbar { display: none; }
.lbox .lb-t { position: static; flex: none; width: 84px; height: 60px; border-radius: 8px; padding: 0; overflow: hidden; background: none; border: 2px solid transparent; opacity: .5; transition: opacity .15s; }
.lbox .lb-t img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; border-radius: 0; display: block; }
.lbox .lb-t:hover { opacity: .85; } .lbox .lb-t.on { opacity: 1; border-color: #fff; }
@media (max-width: 640px) { .lbox .lb-t { width: 60px; height: 44px; } .lbox.has-strip { padding-bottom: 76px; } .lbox.has-strip .lb-c { bottom: 72px; } }
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(16,22,38,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.mcard { position: relative; background: #fff; border-radius: var(--r-lg); padding: 30px; width: min(480px, 100%); max-height: 92vh; overflow: auto; display: grid; gap: 12px; }
.mcard h2 { margin: 0; font-size: 26px; font-weight: 500; }
.mcard p { margin: 0; }
.m-x { position: absolute; right: 14px; top: 10px; border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--tx); }
.freq { display: grid; gap: 12px; }
.freq label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--tx); }
body.stay .freq input:not([type=checkbox]), body.stay .freq select, body.stay .freq textarea { font: 400 16px var(--f); color: var(--tx); border: 1px solid var(--ln-2); border-radius: var(--r-sm); padding: 13px 14px; background: #fff; width: 100%; }
body.stay .freq input:focus, body.stay .freq select:focus, body.stay .freq textarea:focus { outline: 2px solid var(--bg-navy); outline-offset: 0; border-color: var(--bg-navy); }
.freq .check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; font-weight: 400; font-size: 13px; color: var(--tx-2); }
.freq .check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--bg-navy); }
.or { display: flex; align-items: center; gap: 12px; color: var(--tx-3); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--ln); }
.offer-card { position: fixed; right: 24px; bottom: 24px; z-index: 45; width: min(380px, calc(100vw - 32px)); background: #fff; border-radius: var(--r-lg); box-shadow: 0 10px 40px rgba(38,37,35,.22); padding: 26px; display: grid; gap: 12px; }
.offer-card .pill { justify-self: start; background: var(--lav-1); border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.offer-card h3 { margin: 0; font-size: 24px; font-weight: 600; }
.offer-card p { margin: 0; font-size: 15px; line-height: 1.5; }

/* Thank-you */
.thanks { max-width: 680px; margin: 48px auto; display: grid; gap: 18px; }
.thanks h1 { font-weight: 500; font-size: 42px; margin: 0; }
.thanks .lead { font-size: 18px; margin: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 14px; font-size: 16px; }
.steps li span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-navy); color: #fff; font-weight: 600; font-size: 14px; flex: 0 0 auto; }
.thanks .sum { display: flex; gap: 16px; align-items: center; background: var(--soft); border-radius: var(--r-lg); padding: 14px; }
.thanks .sum img { width: 110px; height: 80px; object-fit: cover; border-radius: var(--r-sm); }
.thanks .sum div { display: grid; gap: 2px; font-size: 15px; } .thanks .sum span { color: var(--tx-2); }
.thanks h3 { margin: 12px 0 0; font-size: 22px; font-weight: 500; }

/* ─── LT sales board ───────────────────────────────────────────────────── */
.kanban { display: grid; grid-template-columns: repeat(7, minmax(170px, 1fr)); gap: 10px; overflow-x: auto; }
.kcol { background: #f3efe9; border-radius: 10px; padding: 8px; min-height: 200px; }
.kcol h3 { font-size: 14px; margin: 4px 4px 8px; }
.kcard { display: flex; flex-direction: column; gap: 2px; background: #fff; border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; font-size: 13px; color: inherit; text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.kcard.late { border-left: 4px solid #c0392b; }
form.inline { display: inline-block; margin: 0 8px 8px 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }

/* LT sales board: measures + leads table */
.measures { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 12px 0 16px; }
.measures .card { display: grid; gap: 2px; padding: 12px 14px; }
.measures b { font-size: 24px; font-variant-numeric: tabular-nums; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.table th, table.table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.table tr.late td:first-child { border-left: 4px solid var(--bad); }
.btn.ghost { background: none; }
.money dt small.season { display: block; color: var(--tx-2); font-size: 12px; }

/* /stay round 3 (14 Oct): Where pop-out, landmarks, sort, beds, payment options, hours */
body.stay .loc-panel { position: absolute; top: calc(100% + 10px); left: 0; width: min(720px, 100%); background: #fff; border: 1px solid var(--ln); border-radius: var(--r-lg); box-shadow: var(--sh); padding: 18px; z-index: 41; display: grid; gap: 12px; }
body.stay .loc-panel[hidden] { display: none; }
.loc-head { display: flex; justify-content: space-between; align-items: center; }
.loc-head h4 { margin: 0; font: 600 17px var(--f); }
.loc-toggle { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ln-2); background: #fff; border-radius: 999px; padding: 7px 14px; font: 600 14px var(--f); color: var(--tx); cursor: pointer; }
.loc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 620px) { .loc-grid { grid-template-columns: 1fr; } }
.loc-card { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; text-align: left; border: 1px solid var(--ln); border-radius: var(--r-md); background: #fff; padding: 8px; cursor: pointer; font: inherit; color: var(--tx); }
.loc-card:hover { border-color: var(--tx-3); }
.loc-card.on { background: var(--bg-navy); border-color: var(--bg-navy); color: #fff; }
.loc-card.on small { color: rgba(255,255,255,.75); }
.loc-card img, .loc-card .ph { width: 76px; height: 58px; object-fit: cover; border-radius: var(--r-sm); background: var(--soft); display: grid; place-items: center; }
.loc-card span { display: grid; gap: 2px; min-width: 0; }
.loc-card b { font-weight: 600; font-size: 15px; }
.loc-card small { color: var(--tx-2); font-size: 13px; }
.loc-card small.km { color: var(--save); }
.loc-card.on small.km { color: #cfe8d6; }
.loc-map { height: 380px; border-radius: var(--r-md); overflow: hidden; }
.pin-name { display: inline-block; transform: translate(-50%, -50%); background: var(--bg-navy); color: #fff; border-radius: 999px; padding: 6px 12px; font: 600 13px var(--f); white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: pointer; }
.pin-name.on { background: var(--save); }
.lm { background: none; border: 0; position: relative; }
.lm i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--tx-2); border: 2px solid #fff; box-sizing: border-box; }
.lm span { position: absolute; background: rgba(255,255,255,.95); color: var(--tx-2); border: 1px dashed var(--tx-3); border-radius: 6px; padding: 2px 7px; font: 600 12px var(--f); white-space: nowrap; }
.lm.right span { left: 8px; top: 0; transform: translateY(-50%); }
.lm.left span { right: 8px; top: 0; transform: translateY(-50%); }
.lm.above span { bottom: 8px; left: 0; transform: translateX(-50%); }
.lm.below span { top: 12px; left: 0; transform: translateX(-50%); }
.lm.lm-near { display: none; }
.lm-close .lm.lm-near { display: block; }
.linkbtn { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--tx); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.res-tools { display: inline-flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sortsel { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--tx-2); }
.sortsel select { font: 500 15px var(--f); color: var(--tx); border: 1px solid var(--ln-2); border-radius: 999px; padding: 7px 12px; background: #fff; }
.bedline { display: flex; align-items: center; gap: 16px; font-size: 17px; margin: 0; }
.bedline .ic.big { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--soft); }
/* Savings by stay length: all visible in a 2-column grid */
body.stay .levels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; overflow: visible; padding: 22px 0 0; margin: 0; }
body.stay .lvl { min-width: 0; }
body.stay .lvl.best { border: 2px solid var(--deal); background: #fdf7f1; }
body.stay .lvl .ribbon { top: -22px; left: -2px; right: -2px; padding: 3px 0 12px; }
.bbox .when-panel.in-box { position: static; transform: none; width: auto; box-shadow: none; padding: 14px; }
.tline li span small { display: block; color: var(--tx-3); font-size: 12px; }
/* Phones: the date goes on its own line, so a long ET label ("Lepingu allkirjastamisel") no longer pushes the room page 10 px wider than the screen (UX test 24 Oct). */
@media (max-width: 420px) { .tline li { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; } .tline li span:first-child { grid-column: 1 / -1; } }
.payopts { display: grid; gap: 8px; }
.po-title { margin: 0; font-weight: 600; font-size: 15px; }
.payopt { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--ln-2); border-radius: var(--r-md); padding: 12px 14px; cursor: pointer; }
.payopt.on { border: 2px solid var(--tx); padding: 11px 13px; }
.payopt.off { opacity: .5; cursor: default; }
.payopt input { width: auto; margin: 0; accent-color: var(--bg-navy); }
.payopt span { display: grid; gap: 2px; } .payopt b { font-weight: 600; font-size: 15px; } .payopt small { color: var(--tx-2); font-size: 12.5px; line-height: 1.35; }
.payopt em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.thanks .hours { display: grid; gap: 4px; background: var(--soft); border-radius: var(--r-md); padding: 14px 16px; }
.thanks .hours .warn { color: var(--deal-tx); font-weight: 500; }
.mcard.small { width: min(420px, 100%); }
.freq label small.muted { font-weight: 400; font-size: 12px; }
/* Highlights + extras step */
.hl { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
@media (max-width: 560px) { .hl { grid-template-columns: 1fr; } }
.hl li { display: flex; align-items: center; gap: 14px; font-size: 16px; }
.hl .ic.big { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--soft); flex: 0 0 auto; }
.all-amen { margin-top: 18px; }
.all-amen summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.all-amen summary::-webkit-details-marker { display: none; }
.all-amen[open] summary .ic { transform: rotate(180deg); }
.all-amen .amen { margin-top: 12px; }
.mcard.wide { width: min(600px, 100%); }
.mcard .step { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tx-2); }
.exl { display: grid; gap: 10px; }
.exo { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--ln-2); border-radius: var(--r-md); padding: 12px 14px; cursor: pointer; color: var(--tx); text-decoration: none; }
.exo.on { border: 2px solid var(--tx); padding: 11px 13px; }
.exo.col { grid-template-columns: 1fr; cursor: default; }
.exo.link { grid-template-columns: 1fr auto; }
.exo input { width: 18px; height: 18px; margin: 0; accent-color: var(--bg-navy); }
.exo span { display: grid; gap: 2px; } .exo b { font-weight: 600; } .exo small { color: var(--tx-2); font-size: 13px; }
.exo em { font-style: normal; font-weight: 600; white-space: nowrap; text-align: right; } .exo em small { display: block; font-weight: 400; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { border: 1px solid var(--ln-2); border-radius: 999px; padding: 7px 12px; font-size: 13.5px; cursor: pointer; }
.seg label.on { background: var(--bg-navy); border-color: var(--bg-navy); color: #fff; }
.seg.sizes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.seg.sizes label { border-radius: var(--r-md); display: block; padding: 9px 12px; }
.seg.sizes label > span { display: block; } .seg.sizes b { font-weight: 600; }
.seg.sizes small { display: block; color: var(--tx-2); font-size: 12.5px; } .seg.sizes label.on small { color: rgba(255,255,255,.8); }
@media (max-width: 360px) { .seg.sizes { grid-template-columns: 1fr; } }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label:focus-within { outline: 2px solid var(--bg-navy); outline-offset: 2px; }
.ex-sum { margin: 4px 0 0; font-weight: 600; font-size: 14px; }

/* Round 4 fixes (14 Oct): offer tick box, best deal label, in-place updates, months tab, back link */
.offer-tick { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; cursor: pointer; margin: 0; background: var(--save-bg); color: var(--save); border-radius: var(--r-sm); padding: 10px 12px; font-size: 14px; line-height: 1.4; }
.offer-tick input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--save); }
.offer-tick span { display: grid; gap: 2px; } .offer-tick b { font-weight: 700; }
body.stay .lvl .ribbon { position: static; display: block; margin-top: 6px; background: var(--deal); color: var(--deal-tx); border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 600; z-index: auto; }
body.stay .lvl[data-out] { padding-top: 14px; }
body.stay .lvl .save { position: static; transform: none; display: inline-block; margin-bottom: 4px; }
body.stay .levels { padding-top: 0; }
.bbox.busy { opacity: .55; pointer-events: none; transition: opacity .15s; }
.mondays { display: flex; flex-wrap: wrap; gap: 6px; }
.mondays button { border: 1px solid var(--ln-2); background: #fff; border-radius: 999px; padding: 7px 12px; font: 500 13.5px var(--f); color: var(--tx); cursor: pointer; }
.mondays button.on { background: var(--bg-navy); border-color: var(--bg-navy); color: #fff; }
.mondays button.more { border-style: dashed; color: var(--tx-2); }
.rp-back { display: inline-flex; align-items: center; gap: 6px; color: var(--tx); font-weight: 600; text-decoration: none; margin-bottom: 14px; }
.rp-back:hover { text-decoration: underline; }
body.stay .cal { overflow: visible; padding: 4px 4px 0; }
.footnote { margin: 2px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--tx-2); }
body.stay .lvl small.until { font-size: 12px; color: var(--tx-3); }
/* Round 5 (14 Oct, night): map label spacing, active search field, stay lengths, box scrolling, breakdown */
.pin-name.left { transform: translate(calc(-100% - 6px), -50%); }
.pin-name.right { transform: translate(6px, -50%); }
.pin-n.left { transform: translate(-115%, -50%); }
.pin-n.right { transform: translate(15%, -50%); }
.sb-f.active { background: var(--soft); box-shadow: inset 0 0 0 2px var(--tx); }
.sb-f.active > span { color: var(--tx); }
body.stay .lvl .save.more { background: var(--soft); color: var(--tx-2); }
/* The sticky booking box scrolls on its own when it is taller than the window */
@media (min-width: 981px) { .bbox { max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; } }
.money.breakdown { font-size: 13.5px; color: var(--tx-2); border-left: 2px solid var(--ln); padding-left: 10px; }
/* Round 6: dialogs above the maps, package details, storage, phone, option costs */
body.stay .modal { z-index: 2000; } body.stay .lbox { z-index: 2100; } body.stay .offer-card { z-index: 1500; }
.exo.pack { grid-template-columns: 1fr auto; }
.exo.pack > label { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; cursor: pointer; margin: 0; grid-row: span 2; }
.exo.pack .inside { justify-self: end; font-size: 13px; }
.mcard { position: relative; }
.inside-pop { position: absolute; inset: 0; background: #fff; border-radius: var(--r-lg); padding: 30px; display: grid; gap: 12px; align-content: start; overflow: auto; z-index: 2; }
.inside-pop .ic.huge { width: 64px; height: 64px; padding: 16px; border-radius: 50%; background: var(--soft); }
.inside-pop h3 { margin: 0; font-size: 22px; }
.row2 { display: flex; gap: 10px; flex-wrap: wrap; }
.phone-row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 8px; }
.phone-row select { min-width: 0; text-overflow: ellipsis; }
@media (max-width: 560px) { .phone-row { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.payopt small.cost { color: var(--tx); font-weight: 500; }
.offer-tick small { display: block; color: var(--save); opacity: .8; font-size: 12px; }
.optcost { font-size: 13px; color: var(--tx-2); }
.optcost summary { cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--tx); }
.optcost dl { display: grid; gap: 4px; margin: 10px 0 0; } .optcost dt { font-weight: 600; color: var(--tx); margin-top: 6px; } .optcost dd { margin: 0; line-height: 1.45; }
.ex-pic { width: 72px; height: 47px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
.exo.pack > label { grid-template-columns: auto auto 1fr; }
.exo:not(.pack):not(.col) { grid-template-columns: auto auto 1fr auto; }
.ex-head { display: flex; gap: 12px; align-items: center; }
.inside-pic { width: 100%; max-height: 220px; object-fit: cover; border-radius: var(--r-md); }
/* Offer on phones: a slim bar that opens into a bottom sheet only when tapped */
body.stay .offer-card.slimbar { left: auto; right: 24px; bottom: 24px; width: auto; max-width: calc(100vw - 32px); padding: 0; display: flex; align-items: center; background: var(--bg-navy); color: #fff; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.offer-card.slimbar .bar-open { flex: 1; border: 0; background: none; color: #fff; font: 600 14px var(--f); padding: 13px 16px; text-align: left; cursor: pointer; }
.offer-card.slimbar .m-x { position: static; color: #fff; padding: 0 14px; }
@media (max-width: 760px) { body.stay .offer-card.slimbar { left: 12px; right: 12px; bottom: 12px; } }
body.stay .offer-card.sheet { left: 0; right: 0; bottom: 0; width: auto; border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 70vh; overflow: auto; padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px)); }
body.stay:has(.mbar) .offer-card.slimbar { bottom: 84px; }

/* /stay round 8 (14 Oct): option cards with before-move-in amount, calculation pop-up,
   included-in-price list, similar homes with price difference + show more */
body.stay .payopt em { display: grid; justify-items: end; gap: 1px; font-size: 16px; }
body.stay .payopt em small { font-weight: 400; font-size: 11.5px; color: var(--tx-3); }
body.stay .payopts { position: relative; }
body.stay .calc-link { justify-self: start; background: none; border: 0; padding: 2px 0; color: var(--tx-2); font: 500 13px var(--f); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
body.stay .calc-back { display: none; }
/* Desktop: the calculation opens inline under the options (it used to float over the Request button; launch test 16 Oct, #6). */
body.stay .calc-pop { position: static; margin-top: 8px; background: var(--soft); border: 1px solid var(--ln-2); border-radius: var(--r-md); padding: 14px 16px; }
body.stay .calc-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
body.stay .calc-head b { font-size: 15px; font-weight: 600; }
body.stay .calc-x { background: none; border: 0; font-size: 22px; line-height: 1; color: var(--tx-2); cursor: pointer; padding: 0 4px; }
body.stay .calc-pop dl.money { margin: 0; }
body.stay .calc-pop .hi { font-weight: 700; }
@media (max-width: 700px) {
  body.stay .calc-back { display: block; position: fixed; inset: 0; z-index: 1990; background: rgba(0,0,0,.35); }
  /* The sheet sits above its backdrop (it had no z-index, so the backdrop covered it: grey, see-through, every tap closed it; UX test 24 Oct). */
  body.stay .calc-pop { position: fixed; z-index: 1991; top: auto; bottom: 0; left: 0; right: 0; margin: 0; background: #fff; border: 0; border-radius: 16px 16px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 80vh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; box-shadow: 0 -8px 30px rgba(0,0,0,.18); }
}
body.stay .tline li.from-dep { color: var(--tx-2); }
body.stay .hl.incl small { display: block; color: var(--tx-3); font-size: 12px; }
body.stay .sim { position: relative; }
body.stay .sim.later { display: none; }
body.stay #similar.all .sim.later { display: block; }
body.stay .sim-diff { position: absolute; z-index: 2; top: 10px; right: 10px; background: rgba(255,255,255,.95); border-radius: 999px; padding: 3px 9px; font: 600 12px var(--f); }
body.stay .sim-diff.down { color: #2e6b45; } body.stay .sim-diff.up { color: var(--tx-2); }
body.stay .btn-ghost { display: block; margin: 14px auto 0; background: none; border: 1px solid var(--tx); color: var(--tx); border-radius: 999px; padding: 10px 20px; font: 600 14px var(--f); cursor: pointer; }
body.stay .calc-pop dt.sep, body.stay .calc-pop dd.sep { border-top: 1px solid var(--ln-2); padding-top: 10px; margin-top: 6px; }
body.stay .calc-pop dt.note { grid-column: 1 / -1; color: var(--tx-3); font-size: 12px; }
body.stay .tl-toggle { background: none; border: 0; padding: 0; color: var(--tx); font: 600 13px var(--f); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }

/* Sales board step 1 (14 Oct): my queue tab, 1-working-hour timer, confirm checklist, lost form */
.staff-main nav.tabs { display: inline-flex; justify-self: start; margin: 4px 0 10px; }
.staff-main nav.tabs a { padding: 7px 18px; border-radius: 999px; color: var(--tx-2, #555); text-decoration: none; font-weight: 500; }
.staff-main nav.tabs a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(38,37,35,.15); }
.kanban { grid-template-columns: repeat(7, minmax(170px, 1fr)); }
.kcard span { display: block; }
.kcard.mine { box-shadow: inset 3px 0 0 var(--teal); }
.timer { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--gray-100); color: var(--ink); margin: 3px 0; }
.timer.soon { background: #fff1d6; color: #8a5a00; }
.timer.late { background: #fbe1dc; color: #a12c1c; }
h1 .timer { vertical-align: middle; font-size: .8rem; }
form.stack { display: grid; gap: 8px; max-width: 560px; }
form.stack p { margin: 4px 0 0; }
details.lost { margin-top: 12px; }
details.lost summary { display: inline-block; list-style: none; cursor: pointer; }
details.lost summary::-webkit-details-marker { display: none; }
details.lost form { margin-top: 10px; }
.staff-nav .count { margin-left: 6px; }
.staff-nav .count.late { background: #c0392b; color: #fff; }

/* Sales board step 2: terms card */
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 12px; }
dl.kv dt { color: var(--muted, #666); } dl.kv dd { margin: 0; }
.notice.warn { background: #fff6e0; border: 1px solid #f0d48a; color: #5c4300; padding: 10px 12px; border-radius: 8px; margin: 8px 0; }
body.stay .nd-consent { max-width: 460px; display: grid; gap: 14px; }
body.stay .nd-consent h3 { margin: 0; }
body.stay .nd-consent label.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
/* Booking pages are always light: tick-box texts use their own dark text colour, not the dark-mode --ink (Ottomar, 17 Oct). */
body.stay label.check { color: var(--tx); }
body.stay .nd-consent label.check input { margin-top: 3px; width: auto; flex: none; }
body.stay .m-actions { display: flex; gap: 10px; flex-wrap: wrap; }
body.stay .m-actions .btn-ghost { margin: 0; }
body.stay #nd-yes[disabled] { opacity: .45; cursor: not-allowed; }
body.stay .lead-short { font-size: 17px; line-height: 1.55; margin: 0 0 6px; }
body.stay details.more-about summary { cursor: pointer; display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: 14px; color: var(--tx-2); list-style: none; }
body.stay details.more-about summary::-webkit-details-marker { display: none; }
body.stay details.more-about[open] summary .ic { transform: rotate(180deg); }
body.stay details.more-about p { color: var(--tx-2); }

/* Phone fixes from the 15 Oct journey test */
@media (max-width: 560px) {
  .exo.pack { grid-template-columns: 1fr auto; row-gap: 8px; }
  .exo.pack > label { grid-column: 1 / -1; grid-row: auto; grid-template-columns: auto auto 1fr; gap: 10px; }
  .exo.pack .ex-pic { width: 56px; height: 40px; }
  .exo.pack .inside { justify-self: start; grid-column: 1; }
  .exo.pack em { grid-column: 2; }
}

/* Review fixes 15 Oct (F04, F07, F08, F12) */
body.stay .rc-total { margin: -2px 0 6px; font-size: 13px; color: var(--tx-2); }
body.stay .cal-rules { margin: 4px 0 2px; font-size: 13px; color: var(--tx-2); text-align: center; }
body.stay .mbar span { font-size: 12.5px; }
body.stay .m-foot { position: sticky; bottom: -1px; background: var(--bg, #fff); padding: 10px 0 2px; margin-top: 8px; border-top: 1px solid var(--ln-2); z-index: 3; }
body.stay .m-foot .ex-sum { margin: 0 0 8px; }
body.stay .m-back { display: block; margin: 10px auto 0; }
body.stay .m-sum { margin: -4px 0 10px; }
body.stay .notice.info { background: #eef4f4; border: 1px solid #cfe2e2; color: var(--tx); padding: 10px 12px; border-radius: 10px; margin: 0 0 12px; font-size: 14px; }
body.stay .inside-pop { position: absolute; inset: 0; z-index: 5; background: var(--bg, #fff); overflow: auto; padding: 24px; border-radius: inherit; }
body.stay .mcard { position: relative; }
body.stay .search-sum, body.stay .map-toggle { display: none; }
@media (max-width: 760px) {
  body.stay .top-search:not(.open) .sbar { display: none; }
  body.stay .top-search:not(.open) .search-sum { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--ln-2); border-radius: 999px; background: #fff; padding: 12px 18px; font: 500 14px var(--f); color: var(--tx); cursor: pointer; }
  body.stay .search-sum b { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
  body.stay .map-toggle { display: inline-flex; margin: 10px 0 0; border: 1px solid var(--tx); background: none; border-radius: 999px; padding: 8px 16px; font: 600 13px var(--f); color: var(--tx); cursor: pointer; }
  body.stay .res-wrap:not(.map-on) .res-map { display: none; }
}
body.stay .cal-m h4 { text-transform: none; }
body.stay .thanks .due-line { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin: 0 0 10px; padding: 12px 16px; border: 1px solid var(--ln); border-radius: var(--r-md); font-size: 15px; }
body.stay .thanks .due-line b { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
body.stay .thanks .nd-check { margin: 0 0 14px; font-size: 14px; }
.end-opt small em.short { display: block; font-style: normal; color: var(--tx-3); font-size: 12px; }

/* ─── Staff apps: the Claude-like look (Janek, 3 Nov 2026, picked from the mock https://claude.ai/artifact/LTxw2T7GLEvUxiGPEvtLLV:
   cream page, warm greys, serif headings, terracotta for the accent, near-black primary buttons; before it: "Põhjamaa", 17 Oct 2026).
   One token set for the staff shell, the sales board, housekeeping (/koristus), maintenance (/haldus) and Marketing. Colour only for state:
   --ok / --warn / --bad / --info and their -bg; --char is the one accent. Nothing blue-grey or teal is typed into a rule below; it comes from here. */
body.staff {
  --tx: #1f1e1c; --tx-2: #6b665d; --tx-3: #9a948a; --ln: #e6e2d9; --ln-2: #d6d1c6; --soft: #faf9f5; --char: #c8603f; --char-2: #ad5134;
  --tint: #f3ebe4; --tint-2: #ead9cd; --tint-tx: #9a4a2e; --panel: #f4f2ec; --side: #f4f2ec; --side-on: #e9e5dc; --surface: #fff; --primary: #1f1e1c;
  --ok: #2f7a4f; --ok-bg: #e6f1ea; --ok-2: #a9c5b3; --warn: #8c6514; --warn-bg: #f8efd9; --bad: #b4452d; --bad-bg: #fbe7e2; --info: #5b85ab; --info-bg: #e7eef5; --info-2: #b7cbdd;
  --f: "Figtree", "Avenir Next", "Helvetica Neue", Arial, sans-serif; --fh: "Source Serif 4", Georgia, "Times New Roman", serif; --ls: 0;
  --ink: var(--tx); --muted: var(--tx-2); --line: var(--ln); --bg: var(--soft); --teal: var(--tx); --teal-dark: var(--char-2); --pale-teal: var(--tint); --info-bg-2: var(--info-bg);
  --coral: var(--char); --coral-dark: var(--char-2); --gray-50: var(--soft); --gray-100: var(--panel); --gray-200: var(--ln); --accent: var(--char);
  --radius: 12px; --radius-sm: 8px; --radius-btn: 8px; --shadow: none; --shadow-pop: 0 8px 24px rgba(31, 30, 28, .10);
  color-scheme: light; font-family: var(--f); color: var(--tx); background: var(--soft); letter-spacing: var(--ls);
}
body.staff h1, body.staff h2, body.staff h3, body.staff h4 { font-family: var(--fh); font-weight: 600; letter-spacing: var(--ls); color: var(--tx); }
body.staff h1 { font-weight: 500; }
body.staff h1 { font-size: 1.75rem; margin: 4px 0 18px; } body.staff h2 { font-size: 1.1rem; } body.staff h3 { font-size: 1rem; }
body.staff a { color: var(--tx); } body.staff a:hover { color: var(--char-2); }
body.staff .staff-shell { grid-template-columns: 228px 1fr; }
body.staff .staff-side { background: var(--side); border-right: 0; padding: 22px 14px; }
body.staff .staff-brand { font: 600 1rem var(--f); letter-spacing: .08em; text-transform: uppercase; color: var(--tx); margin: 0 6px 26px; }
body.staff .staff-brand .logo-light { filter: none; }
/* Housekeeping / maintenance top bar: light like the sidebar (html prefix outranks the bar's own rules further down) */
html body.staff .hk-top { background: var(--side); color: var(--tx); border-bottom: 1px solid var(--ln); }
html body.staff .hk-brand { color: var(--tx) !important; } html body.staff .hk-brand .logo-light { filter: none; }
html body.staff .hk-user .linklike, html body.staff .hk-top .hk-lang a { color: var(--tx-2); }
html body.staff .hk-top .hk-lang a.on { color: var(--tint-tx); }
html body.staff .hk-tabs a.on { color: var(--tint-tx); border-bottom-color: var(--char); }
body.staff .staff-brand img { height: 30px; width: auto; }
body.staff .staff-nav { gap: 4px; }
body.staff .staff-nav a { color: var(--tx-2); padding: 10px 14px; border-radius: var(--radius-sm); font-size: .95rem; font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
body.staff .staff-nav a:hover { background: var(--side-on); color: var(--tx); }
body.staff .staff-nav a.active { background: var(--side-on); color: var(--tx); font-weight: 600; }
body.staff .staff-nav .count { background: var(--tint-2); color: var(--tint-tx); }
body.staff .staff-user { border-top-color: var(--ln); color: var(--tx); padding: 14px 8px 0; } body.staff .staff-user .muted { color: var(--tx-2); }
body.staff .staff-main { background: var(--soft); padding: 28px 36px 64px; max-width: 1400px; }
body.staff .card { border-color: var(--ln); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
body.staff .btn { font-family: var(--f); font-weight: 500; border-color: var(--ln-2); }
body.staff .btn:hover { border-color: var(--char); color: var(--char-2); }
body.staff .btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; } body.staff .btn.primary:hover { background: #000; border-color: #000; color: #fff; }
body.staff input, body.staff select, body.staff textarea { font-family: var(--f); border-radius: var(--radius-btn); border-color: var(--ln-2); }
body.staff .table th { color: var(--tx-2); font-weight: 500; font-size: .8rem; text-transform: none; letter-spacing: 0; }
body.staff .staff-main nav.tabs { background: var(--panel); display: inline-flex; margin-bottom: 14px; } body.staff .staff-main nav.tabs a.on { color: var(--tx); }
body.staff .kcol { background: var(--panel); border-radius: var(--radius); }
body.staff .kcard { border-radius: var(--radius-sm); border-color: var(--ln); box-shadow: none; }
body.staff .kcard:hover { border-color: var(--char); }
body.staff .measures .card b { font: 600 1.9rem var(--f); }
body.staff .plain { list-style: none; padding: 0; margin: 0; } body.staff .plain li { padding: 9px 0; border-bottom: 1px solid var(--ln); } body.staff .plain li:last-child { border: 0; }
body.staff .plain li.late a { color: var(--bad); }
body.staff .notice.info { background: var(--tint); color: var(--tint-tx); }
body.staff .stage-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
body.staff .stage { display: flex; flex-direction: column; align-items: center; min-width: 96px; padding: 12px 14px; border: 1px solid var(--ln); border-radius: 14px; text-decoration: none; background: #fff; }
body.staff .stage b { font-size: 1.5rem; font-weight: 600; } body.staff .stage span { font-size: .82rem; color: var(--tx-2); } body.staff .stage-row .arrow { color: var(--tx-3); }
@media (max-width: 860px) { body.staff .staff-shell { grid-template-columns: 1fr; } body.staff .staff-main { padding: 18px 16px 48px; } }

/* ─── Booking review fixes (15 Oct 2026) ─────────────────────────────────── */
/* Small grey text readable on white (review F12: #9a958d was 2.98:1). */
body.stay { --tx-3: #736f68; }
/* Phones: the booking box with the payment options right under the photos (review F5). */
@media (max-width: 980px) { body.stay .rp-cols .bbox { order: -1; } body.stay .room-page { padding-bottom: 96px; } body.stay .mbar.aside { transform: translateY(110%); transition: transform .2s; } body.stay .mbar { transition: transform .2s; } }
body.stay .bbox.flash { box-shadow: 0 0 0 3px var(--tx), var(--sh); transition: box-shadow .3s; }
body.stay .res-count { color: var(--tx-2); font-size: 14px; margin: 4px 0 12px; }
body.stay .req-sum { background: var(--soft); border-radius: var(--r-md); padding: 14px 16px; margin: 4px 0 14px; }
body.stay .req-sum h3 { margin: 0 0 8px; font-size: 15px; }
body.stay .req-sum dl.money { margin: 0; }
body.stay .req-sum dl.sum-grp { background: var(--card); border-radius: 10px; padding: 10px 12px; margin: 0 0 8px; }
body.stay .req-sum dl.sum-grp dt.strong, body.stay .req-sum dl.sum-grp dd.strong { font-weight: 700; font-size: 1.05em; padding-bottom: 4px; border-bottom: 1px solid var(--ln); margin-bottom: 2px; }
body.stay .req-sum dl.sum-grp dt.sub { padding-left: 14px; color: var(--tx-2); }
body.stay .req-sum dl.sum-grp dd.sub { color: var(--tx-2); }
body.stay .freq .field { display: grid; gap: 6px; }
body.stay .freq label small.muted { display: block; font-size: 12px; margin-top: 4px; }
body.stay .empty.gone { text-align: left; }
body.stay .gone-sim { margin-top: 32px; }

/* Room page: the quiet "see it first" row under the photos. */
body.stay .rp-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 14px 0 0; font-size: 14px; color: var(--tx-2); }
body.stay .rp-contact a { display: inline-flex; align-items: center; gap: 6px; color: var(--tx); text-decoration: none; padding-bottom: 1px; border-bottom: 1px solid var(--ln-2); }
body.stay .rp-contact a:hover { border-bottom-color: var(--tx); }
body.stay .rp-contact .ic { width: 16px; height: 16px; color: var(--tx-2); }
@media (max-width: 760px) { body.stay .rp-contact { gap: 8px 14px; font-size: 13.5px; } body.stay .rp-contact > span { flex-basis: 100%; } }
/* Phones: the room columns never grow wider than the screen (review R04: ET/RU text cut off at 360 px). */
@media (max-width: 980px) { body.stay .rp-cols { grid-template-columns: minmax(0, 1fr); } body.stay .rp-cols > * { min-width: 0; } }
body.stay .rp-main p, body.stay .rp-main li, body.stay .rp-main h2, body.stay .rp-main h3 { overflow-wrap: break-word; }
/* Phones and tablets have no hover: the card photo arrows are always visible (Janek, 15 Oct). */
@media (hover: none) { .car-p, .car-n { opacity: 1; width: 30px; height: 30px; background: rgba(255,255,255,.85); } }

/* Sales board search and filters (16 Oct 2026) */
body.staff .board-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 14px; }
body.staff .board-filters input[type=search] { flex: 1 1 280px; min-width: 220px; padding: 9px 12px; border: 1px solid var(--ln-2); }
body.staff .board-filters select { padding: 8px 10px; border: 1px solid var(--ln-2); background: #fff; }
body.staff .board-filters .check { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; }
body.staff .req-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* Room card, side by side (Janek, 16 Oct): house name left, price right */
.rc-body { gap: 6px; }
.rc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rc-house { font-size: 18px; font-weight: 600; color: var(--tx); min-width: 0; }
.rc-top .rc-price { white-space: nowrap; font-size: 14px; }
.rc-top .rc-price b { font-size: 20px; }
.rc-name { color: var(--tx-2); }
.rc-specs { gap: 14px; font-size: 14px; color: var(--tx-2); margin-top: 2px; }

/* ── Staff pages, clean (Janek, 16 Oct 2026: "clean, clear lines, less noise") ──
   White page, no boxes: sections are separated by one hairline. Colour only for state. */
body.staff, body.staff .staff-shell { background: var(--soft); }
body.staff .staff-main { background: var(--soft); padding: 32px 44px 72px; }
body.staff h1 { font-size: 1.6rem; margin: 0 0 6px; }
body.staff h2 { font-size: 1.05rem; margin: 0 0 12px; }
body.staff h3 { font-size: .95rem; margin: 0 0 10px; }
body.staff .card { background: none; border: 0; border-top: 1px solid var(--ln); border-radius: 0; box-shadow: none; padding: 22px 0 6px; margin: 0 0 6px; }
body.staff .grid2, body.staff .grid-2 { gap: 40px; }
body.staff .table th, body.staff .table td { border: 0; border-bottom: 1px solid var(--ln); background: none; padding: 9px 10px 9px 0; }
body.staff .table tr:nth-child(even) td { background: none; }
body.staff .muted.small, body.staff .small.muted { color: var(--tx-3); }
body.staff .linklike { background: none; border: 0; padding: 0; font: inherit; font-size: .9rem; color: var(--tx-2); text-decoration: underline; cursor: pointer; }
body.staff .timer { display: inline; background: none; padding: 0; border-radius: 0; font-size: .86rem; color: var(--tx-2); }
body.staff .timer.late { color: #b8432a; } body.staff .timer.soon { color: #9a6a12; }
body.staff .tag { font-style: normal; font-size: .72rem; padding: 1px 7px; border: 1px solid var(--ln-2); border-radius: 999px; color: var(--tx-2); margin-left: 4px; vertical-align: 1px; font-weight: 400; }
body.staff .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--tx-3); }
body.staff .dot.s-new { background: var(--info); } body.staff .dot.s-taken { background: #ba7517; } body.staff .dot.s-viewing { background: var(--char); }
body.staff .dot.s-confirmed, body.staff .dot.s-plan_accepted, body.staff .dot.s-signed { background: var(--ok); }
body.staff .dot.s-paid, body.staff .dot.s-moved_in { background: #3b6d11; } body.staff .dot.s-lost { background: var(--tx-3); }

/* Overview numbers: one row divided by lines, no tiles */
body.staff .measures { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border-top: 1px solid var(--ln); border-bottom: 1px solid var(--ln); margin: 18px 0 26px; }
body.staff .measures .card { border: 0; border-right: 1px solid var(--ln); padding: 16px 20px 16px 0; margin: 0 20px 0 0; display: flex; flex-direction: column; gap: 4px; }
body.staff .measures .card:last-child { border-right: 0; }
body.staff .measures .card b { font: 500 1.75rem var(--fh); }
body.staff .stage { border: 0; background: none; padding: 0 8px; min-width: 0; }
body.staff .stage-row .arrow { color: var(--ln-2); }

/* Requests list */
body.staff .pg-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 8px; }
body.staff .pg-switch { display: flex; gap: 4px; }
body.staff .pg-switch a { text-decoration: none; padding: 6px 12px; border-radius: 8px; color: var(--tx-2); font-size: .92rem; }
body.staff .pg-switch a.on { background: var(--soft); color: var(--tx); }
body.staff .pg-switch i { font-style: normal; color: #b8432a; margin-left: 4px; }
body.staff .board-filters { margin: 10px 0 18px; }
body.staff .board-filters input[type=search], body.staff .board-filters select { border: 1px solid var(--ln); border-radius: 8px; background: #fff; font-size: .92rem; }
body.staff .stage-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--ln); overflow-x: auto; }
body.staff .stage-tabs a { padding: 0 0 10px; color: var(--tx-2); text-decoration: none; font-size: .93rem; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
body.staff .stage-tabs a.on { color: var(--tx); border-bottom-color: var(--tx); }
body.staff .stage-tabs i { font-style: normal; color: var(--tx-3); margin-left: 6px; }
body.staff .rq-list { overflow-x: auto; }
body.staff .rq-row { display: grid; grid-template-columns: 40px 1.4fr 1.6fr .8fr .5fr .9fr 1.5fr 1.4fr; gap: 12px; align-items: center; padding: 12px 8px; border-bottom: 1px solid var(--ln); color: var(--tx); text-decoration: none; font-size: .93rem; min-width: 900px; }
body.staff a.rq-row:hover { background: var(--soft); color: var(--tx); }
body.staff .rq-row.mine .rq-name { font-weight: 600; }
body.staff .rq-row > span:last-child { white-space: nowrap; }
body.staff .rq-h { color: var(--tx-3); font-size: .8rem; padding-top: 14px; padding-bottom: 8px; }
body.staff .empty { padding: 28px 0; }
body.staff .foot-note { margin: 14px 0 34px; }
body.staff .sec-title { padding-top: 22px; border-top: 1px solid var(--ln); } body.staff .sec-title .muted { font-weight: 400; font-size: .85rem; margin-left: 8px; }

/* One request */
body.staff .rq-back { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-size: .92rem; }
body.staff .rq-back a { color: var(--tx-2); text-decoration: none; }
body.staff .rq-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
body.staff .rq-head p { margin: 0; }
body.staff .rq-state { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: .93rem; text-align: right; }
body.staff .rq-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 20px 0 28px; }
body.staff .rq-steps span { height: 3px; border-radius: 2px; background: var(--ln); }
body.staff .rq-steps span.done { background: var(--tx); }
body.staff .rq-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
body.staff .rq-next { border: 1px solid var(--tx); border-radius: 12px; padding: 18px 20px; margin-bottom: 18px; }
body.staff .rq-next p { margin: 0 0 10px; }
body.staff .rq-side { border-left: 1px solid var(--ln); padding-left: 28px; }
body.staff .rq-side h3 { font-size: .8rem; font-weight: 500; color: var(--tx-2); margin: 20px 0 4px; } body.staff .rq-side h3:first-child { margin-top: 0; }
body.staff .kv { display: grid; grid-template-columns: 124px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--ln); font-size: .9rem; }
body.staff .kv > span:first-child { color: var(--tx-2); }
body.staff .kv a { word-break: break-all; }
body.staff .rq-side blockquote { margin: 10px 0 0; padding: 8px 12px; border-left: 2px solid var(--ln-2); color: var(--tx-2); font-size: .9rem; }
@media (max-width: 1050px) { body.staff .rq-grid { grid-template-columns: 1fr; } body.staff .rq-side { border-left: 0; padding-left: 0; } body.staff .rq-head { flex-direction: column; } body.staff .rq-state { align-items: flex-start; text-align: left; } }
@media (max-width: 860px) { body.staff .staff-main { padding: 20px 16px 48px; } }

/* Staff sign-in, same clean look */
body.login-page { background: var(--soft, #faf9f5); font-family: var(--f); }
body.login-page .login-card { border: 1px solid var(--ln); border-radius: 14px; box-shadow: none; padding: 32px 30px; margin: 14vh auto; }
body.login-page h1 { font: 500 1.5rem var(--fh, Georgia, serif); margin: 10px 0 4px; }
body.login-page .login-logo { height: 44px; width: 44px; }
body.login-page form label { display: block; margin: 14px 0 0; font-size: .9rem; color: var(--tx-2); }
body.login-page form input { width: 100%; margin-top: 4px; border-radius: 8px; border: 1px solid var(--ln-2); padding: 10px 12px; font: inherit; }
body.login-page .btn.primary { width: 100%; margin-top: 20px; background: var(--primary, #1f1e1c); border-color: var(--primary, #1f1e1c); color: #fff; border-radius: 8px; padding: 11px; font: 500 1rem var(--f); }

body.staff dl.kv { display: grid; grid-template-columns: 170px 1fr; gap: 0; padding: 0; border: 0; margin: 0 0 10px; }
body.staff dl.kv dt, body.staff dl.kv dd { margin: 0; padding: 7px 0; border-bottom: 1px solid var(--ln); font-size: .9rem; }
body.staff dl.kv dt { color: var(--tx-2); }
body.staff .rq-next-k { margin: 0 0 2px; font-size: .8rem; color: var(--tx-3); }
body.staff .rq-next h2 { margin: 0 0 4px; font-size: 1.15rem; }
body.staff .rq-next > p.muted { margin: 0 0 14px; }
body.staff .rq-optional { display: flex; align-items: center; gap: 12px; margin: -6px 0 18px; }
body.staff ol.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
body.staff ol.todo li { display: grid; gap: 8px; }
body.staff ol.todo li.later { color: var(--tx-3); border-top: 1px solid var(--ln); padding-top: 12px; }
body.staff ol.todo li.later .btn { justify-self: start; opacity: .5; cursor: not-allowed; }
body.staff ol.todo input { border: 1px solid var(--ln-2); border-radius: 8px; padding: 8px 10px; }

/* Phones (launch test #14, review M1): type filters in one swipeable row; step-3 summary tighter */
@media (max-width: 760px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .chips::-webkit-scrollbar { display: none; }
  .chips .chip { flex: none; }
}
@media (max-width: 420px) {
  body.stay .req-sum { padding: 12px; }
  body.stay .req-sum .money { font-size: 14px; gap: 6px 10px; }
  body.stay .req-sum .money dd { white-space: nowrap; }
}
body.stay .pay-line { margin: -4px 0 12px; }

/* /stay start page under the search (review H3) */
body.stay .land { max-width: 1180px; margin: 40px auto 56px; padding: 0 20px; }
body.stay .land h2 { font-size: 24px; margin: 0 0 16px; }
body.stay .land-houses { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 40px; }
body.stay .land-house { display: flex; flex-direction: column; text-decoration: none; color: var(--tx); border-radius: var(--r-md); overflow: hidden; background: #fff; border: 1px solid var(--ln, #e6e2dc); }
body.stay .land-house:hover { border-color: var(--tx); }
body.stay .lh-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
body.stay .lh-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.stay .lh-body { display: grid; gap: 4px; padding: 12px 14px 14px; }
body.stay .lh-body b { font-size: 17px; }
body.stay .lh-body small { color: var(--tx-2); font-size: 13px; }
body.stay .lh-price { font-size: 14px; font-weight: 500; }
body.stay .lh-price.full { color: var(--tx-2); font-weight: 400; }
body.stay .land-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
body.stay .land-steps li { display: grid; gap: 8px; align-content: start; padding: 16px; background: var(--soft); border-radius: var(--r-md); }
body.stay .land-steps span { width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 600; }
body.stay .land-steps p { margin: 0; font-size: 15px; }
@media (max-width: 1000px) { body.stay .land-houses { grid-template-columns: repeat(2, minmax(0, 1fr)); } body.stay .land-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { body.stay .land-houses, body.stay .land-steps { grid-template-columns: 1fr; } body.stay .lh-img { aspect-ratio: 16 / 9; } }


/* Pipedrive-style board (sales, 16 Oct) */
body.staff .board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; margin-top: 6px; }
body.staff .bcol { background: var(--soft); border-radius: 12px; padding: 10px; min-height: 160px; }
body.staff .bcol header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 2px 4px 10px; font-size: .9rem; }
body.staff .bcol header span { color: var(--tx-2); font-size: .8rem; }
body.staff .bcard { display: grid; gap: 3px; background: #fff; border: 1px solid var(--ln); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; text-decoration: none; color: var(--tx); font-size: .86rem; }
body.staff .bcard:hover { border-color: var(--tx); color: var(--tx); }
body.staff .bcard.mine { border-left: 3px solid var(--tx); }
body.staff .bcard b { font-size: .92rem; }
body.staff .bcard > span { color: var(--tx-2); }
body.staff .bfoot { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 4px; }
body.staff .bfoot i { font-style: normal; font-size: .72rem; background: var(--soft); border-radius: 999px; padding: 2px 7px; color: var(--tx); }
body.staff .pg-switch .sep { width: 1px; background: var(--ln); margin: 4px 6px; }
body.staff .pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 16px 0; }

/* Payments page (sales B6) */
body.staff .pay-table .ref { font-size: 1.05rem; letter-spacing: .02em; }
body.staff .pay-table tr.late td { color: #b8432a; }
body.staff details.fix { margin-top: 6px; }

body.staff .tag.late { border-color: #e7b7a8; color: #b8432a; }
body.staff table.reprice tr.changed td { font-weight: 600; }
body.staff .num-in { width: 64px; text-align: right; padding: 4px 6px; }

/* Contract data in step 3 (sales, 16 Oct) */
body.stay fieldset.contract { border: 0; padding: 0; margin: 4px 0; display: grid; gap: 10px; }
body.stay fieldset.contract legend { font-size: 14px; color: var(--tx-2); margin-bottom: 6px; padding: 0; }

body.staff ul.notes { list-style: none; padding: 0; margin: 12px 0 0; }
body.staff ul.notes li { padding: 8px 0; border-top: 1px solid var(--ln); }
body.staff ul.notes p { margin: 2px 0 0; }
/* Housekeeping app (/koristus): phone and tablet first; list styles shared by "Soovid ja küsimused" */
body.hk { background: var(--bg, #f6f4f1); }
.hk-top { background: var(--primary); color: #f1ede7; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 16px; }
.hk-brand { display: flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none; font-weight: 600; margin-right: auto; }
.hk-brand .logo { height: 22px; }
.hk-user { display: flex; gap: 10px; align-items: center; font-size: .85rem; }
body.staff .hk-user .linklike, body.staff .hk-top .hk-lang a { color: #f1ede7; }
body.staff .hk-top .hk-lang a:not(.on) { opacity: .75; }
.hk-lang { display: flex; gap: 4px; }
.hk-lang a { font-size: .78rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; text-decoration: none; color: inherit; opacity: .7; border: 1px solid transparent; }
.hk-lang a.on { opacity: 1; border-color: currentColor; }
.login-card .hk-lang { justify-content: center; margin: -6px 0 12px; }
.hk-tabs { display: flex; gap: 4px; padding: 8px 16px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.hk-tabs a { padding: 9px 14px; text-decoration: none; color: var(--tx-2, #6f6a62); border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 500; }
.hk-tabs a.on { color: var(--tx, #26231f); border-bottom-color: var(--tx, #26231f); }
.hk-main { padding: 18px 16px 48px; max-width: 900px; margin: 0 auto; }
body.staff .wl-sec { margin: 0 0 28px; }
body.staff .wl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
body.staff .wl-item { background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
body.staff .wl-item.done { background: transparent; }
body.staff .wl-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
body.staff .wl-kind, body.staff .wl-st { font-size: .75rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--line); white-space: nowrap; }
body.staff .wl-kind.request { background: #f4e6d6; color: #8a5a2b; }
body.staff .wl-st.done, body.staff .wl-st.answered { color: var(--ok); } body.staff .wl-st.planned { color: var(--info); } body.staff .wl-st.declined { color: #a33b2a; }
body.staff .wl-answer { display: flex; gap: 8px; flex-wrap: wrap; }
body.staff .wl-answer input { flex: 1 1 240px; min-width: 0; }
body.staff .wl-ans { border-left: 3px solid var(--ok); padding-left: 10px; }
body.staff .wl-status { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
body.staff .wl-new { display: flex; flex-direction: column; gap: 10px; }
body.staff .wl-new textarea { width: 100%; font: inherit; }
body.staff .wl-new .row label { display: flex; gap: 6px; align-items: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Housekeeping: status colours (dirty red, cleaning amber, clean green, ready blue, resident grey) */
body.hk { --hk-dirty: #c8452f; --hk-dirty-bg: #fbe7e2; --hk-prog: #a86b12; --hk-prog-bg: #fbf0d9; --hk-clean: var(--ok); --hk-clean-bg: var(--ok-bg);
  --hk-ready: var(--info); --hk-ready-bg: var(--info-bg); --hk-occ: #77726a; --hk-occ-bg: #eeebe6; --hk-arr: #8a5a00; --hk-arr-bg: #ffe9a8; }
body.hk .hk-main.wide { max-width: 1400px; }
body.hk form.inline { display: inline; }
body.hk .hk-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin-bottom: 6px; }
body.hk .hk-bar h1 { margin: 0; }
body.hk .hk-houses { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 10px 0 16px; }
body.hk .hk-houses div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; font-size: .85rem; }
body.hk .hk-plan { display: grid; grid-template-columns: 280px 1fr; gap: 16px; align-items: start; }
body.hk .hk-shift { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 8px; }
body.hk .hk-shift h2 { margin: 0; }
body.hk .hk-check { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; cursor: pointer; }
body.hk .hk-check input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--hk-clean); }
body.hk .hk-make { display: flex; flex-direction: column; gap: 4px; }
body.hk .hk-lanes { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
body.hk .hk-lane { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; grid-template-columns: 210px 1fr; gap: 12px; align-items: center; }
body.hk .hk-lane.over { outline: 2px dashed var(--hk-ready); }
body.hk .hk-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body.hk .hk-tag { font-size: .7rem; padding: 1px 6px; border-radius: 99px; background: var(--hk-ready-bg); color: var(--hk-ready); font-weight: 600; }
body.hk .hk-meter { height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 3px; }
body.hk .hk-meter i { display: block; height: 100%; background: var(--hk-clean); }
body.hk .hk-meter.over i { background: var(--hk-dirty); }
body.hk .hk-track { display: flex; gap: 3px; min-width: 0; min-height: 44px; }
body.hk .hk-track.wrap { flex-wrap: wrap; }
body.hk .hk-track.wrap .hk-chip { flex: 0 0 auto !important; min-width: 70px; }
/* Back from a room lands on its chip (Tagasiside #12303, 28 Nov 2026): room above it, a ring to find it. */
body.hk .hk-chip[id] { scroll-margin-top: 30vh; }
body.hk .hk-chip:target { outline: 2px solid var(--accent); outline-offset: 2px; }
body.hk .hk-chip { flex-basis: 0; min-width: 34px; border-radius: 6px; padding: 4px 6px; font-size: .72rem; line-height: 1.2; text-decoration: none; display: flex; flex-direction: column; overflow: hidden; white-space: nowrap;
  background: var(--hk-dirty-bg); color: var(--hk-dirty) !important; border: 1px solid transparent; }
body.hk .hk-chip b { font-size: .85rem; }
body.hk .hk-chip[draggable] { cursor: grab; }
body.hk .hk-chip.drag { opacity: .4; }
body.hk .hk-chip.s-in_progress { background: var(--hk-prog-bg); color: var(--hk-prog) !important; }
body.hk .hk-chip.s-done { background: var(--hk-clean-bg); color: var(--hk-clean) !important; }
body.hk .hk-chip.s-inspected { background: var(--hk-ready-bg); color: var(--hk-ready) !important; }
body.hk .hk-chip.s-skipped { background: var(--hk-occ-bg); color: var(--hk-occ) !important; text-decoration: line-through; }
body.hk .hk-chip.t-dust, body.hk .hk-chip.t-common { border-style: dashed; border-color: currentColor; background: transparent; }
body.hk .hk-free { flex-basis: 0; background: repeating-linear-gradient(135deg, transparent 0 6px, var(--line) 6px 7px); border-radius: 6px; }
body.hk .hk-arr { background: var(--hk-arr-bg); color: var(--hk-arr); border-radius: 4px; padding: 0 3px; font-weight: 700; align-self: flex-start; }
body.hk .hk-unassigned { background: transparent; border-style: dashed; }
body.hk .hk-add { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; align-items: end; margin-top: 10px; }
body.hk .hk-ask .wide { grid-column: 1 / -1; }
body.hk .hk-ask textarea { width: 100%; }
body.hk .hk-asks { width: 100%; margin-top: 14px; border-collapse: collapse; }
body.hk .hk-asks th, body.hk .hk-asks td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
body.hk .hk-house { margin-bottom: 20px; }
body.hk .hk-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
body.hk .hk-tile { border-radius: 8px; padding: 7px 8px; font-size: .75rem; line-height: 1.3; min-height: 64px; display: flex; flex-direction: column; gap: 1px; text-decoration: none; border: 1px solid transparent; }
body.hk .hk-tile b { font-size: .95rem; }
body.hk .hk-tile .who { margin-top: auto; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.hk .hk-tile.mini { display: inline-block; min-height: 0; width: 14px; height: 14px; padding: 0; vertical-align: -2px; margin: 0 4px 0 10px; }
body.hk .c-dirty { background: var(--hk-dirty-bg); color: var(--hk-dirty) !important; }
body.hk .c-prog { background: var(--hk-prog-bg); color: var(--hk-prog) !important; }
body.hk .c-clean { background: var(--hk-clean-bg); color: var(--hk-clean) !important; }
body.hk .c-ready { background: var(--hk-ready-bg); color: var(--hk-ready) !important; }
body.hk .c-occ, body.hk .c-blocked { background: var(--hk-occ-bg); color: var(--hk-occ) !important; }
body.hk .c-idle, body.hk .c-stale { background: transparent; color: var(--tx-2) !important; border-color: var(--line); }
body.hk .hk-tile.nojob { cursor: default; }
body.hk .hk-legend { margin: 4px 0 14px; color: var(--tx-2); }
body.hk .hk-filter .pill { border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; text-decoration: none; font-size: .85rem; color: var(--tx-2); }
body.hk .hk-filter .pill.on { border-color: var(--tx); color: var(--tx); font-weight: 500; }
/* Cleaners' phone screens */
body.hk .hk-hello { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
body.hk .hk-hello h1 { margin: 0; }
body.hk .hk-prog { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
body.hk .hk-prog i { display: block; height: 100%; background: var(--hk-clean); }
body.hk .hk-jobs { display: flex; flex-direction: column; gap: 8px; }
body.hk .hk-job { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; gap: 0 12px; align-items: center; padding: 12px 14px; border-radius: 12px; text-decoration: none; border: 1px solid transparent; }
body.hk .hk-job .r { font-size: 1.35rem; font-weight: 700; grid-row: 1 / 3; }
body.hk .hk-job .h { font-weight: 600; }
body.hk .hk-job .t { grid-column: 2; font-size: .85rem; opacity: .9; }
body.hk .hk-job .st { grid-column: 3; grid-row: 1 / 3; font-size: .8rem; font-weight: 700; }
body.hk .hk-job.next { border-color: currentColor; box-shadow: 0 0 0 2px currentColor inset; }
body.hk .hk-room-head { border-radius: 12px; padding: 14px 16px; margin: 8px 0 14px; display: flex; flex-direction: column; gap: 2px; }
body.hk .hk-room-head h1 { margin: 0; color: inherit; }
body.hk .hk-room-head .st { font-weight: 700; }
body.hk .sbtn { font: inherit; font-weight: 600; font-size: 1.05rem; border: 0; border-radius: 12px; padding: 14px; width: 100%; cursor: pointer; margin: 6px 0; }
body.hk .sbtn.go { background: var(--hk-clean); color: #fff; }
body.hk .sbtn.ghost { background: var(--surface); color: var(--tx); border: 1px solid var(--line); }
body.hk .hk-check-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
body.hk .hk-check-list .hk-check { border-bottom: 1px solid var(--line); padding: 10px 0; }
body.hk .hk-check-list input[name="note"] { margin-bottom: 4px; }
body.hk .hk-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 14px; }
body.hk .hk-report summary { list-style: none; width: 100%; justify-content: center; cursor: pointer; }
body.hk .hk-report summary::-webkit-details-marker { display: none; }
body.hk .hk-report[open] { grid-column: 1 / -1; }
body.hk .hk-report form { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
body.hk .btn.ghost { background: var(--surface); }
/* Settings */
body.hk .hk-crow { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
body.hk .hk-crow > input[name="name"] { width: 170px; }
body.hk .hk-mini { display: inline-flex; gap: 4px; align-items: center; font-size: .8rem; margin: 0; white-space: nowrap; }
body.hk .hk-hs { display: inline-flex; flex-wrap: wrap; gap: 4px 8px; }
body.hk .hk-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 20px; align-items: center; }
body.hk .hk-nums label { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin: 0; }
body.hk .hk-nums .btn { justify-self: start; }
body.hk .hk-link { word-break: break-all; user-select: all; }
@media (max-width: 900px) {
  body.hk .hk-plan { grid-template-columns: 1fr; }
  body.hk .hk-shift { position: static; }
  body.hk .hk-lane { grid-template-columns: 1fr; }
  body.hk .hk-track { overflow-x: auto; }
}
body.hk .hk-none { align-self: center; padding: 0 8px; white-space: normal; flex: 0 1 auto; }
body.hk .hk-shiftrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; } body.hk .hk-shiftrow select { width: auto; padding: 3px 6px; font-size: .8rem; }
body.hk .hk-matrix { max-width: 560px; } body.hk .hk-matrix th { font-weight: 500; text-align: left; } body.hk .hk-matrix td { white-space: nowrap; }
body.hk .c-hold { background: var(--primary); color: #fbe7e2 !important; } body.hk .hk-kinds { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; } body.hk .hk-kinds label { display: flex; gap: 8px; align-items: center; } body.hk .hk-report summary.sbtn { display: block; text-align: center; }
body.hk .hk-days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
body.hk .hk-day { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-decoration: none; font-size: .82rem; }
body.hk .hk-day b { font-size: 1rem; text-transform: capitalize; }
body.hk .hk-day.on { border-color: var(--tx); box-shadow: 0 0 0 1px var(--tx) inset; }
body.hk .hk-sum td, body.hk .hk-sum th { white-space: nowrap; }
body.hk .hk-total td { border-top: 2px solid var(--line); }
body.hk .hk-tag.lt { background: #ece5f7; color: #6d4aa8; } body.hk .hk-tag.st { background: var(--info-bg); color: var(--info); }
@media (max-width: 700px) { body.hk .hk-days { grid-template-columns: repeat(2, minmax(0, 1fr)); } body.hk .hk-sum { display: block; overflow-x: auto; } }
body.hk .hk-step { margin: 0 0 28px; }
body.hk .hk-step h2 { margin: 0 0 4px; }
body.hk .hk-step h3 { margin: 18px 0 6px; font-size: 1rem; }
body.hk .hk-verdict { font-size: 1.1rem; padding: 10px 14px; border-radius: 10px; margin: 6px 0 10px; }
body.hk .hk-verdict.good { background: var(--hk-clean-bg); color: var(--hk-clean); }
body.hk .hk-verdict.bad { background: var(--hk-dirty-bg); color: var(--hk-dirty); }
/* Tõhusus: blue = work, grey = unused paid time, red = missing time */
body.hk { --kpi-used: var(--info); --kpi-idle: #e3dfd8; --kpi-short: #c8452f; }
body.hk .kpi-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 12px 0 22px; }
body.hk .kpi-hero > div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; font-size: .85rem; color: var(--tx-2); }
body.hk .kpi-big { font-size: 2.2rem; font-weight: 700; color: var(--tx); line-height: 1.1; font-variant-numeric: tabular-nums; }
body.hk .kpi-mid { font-size: 1.4rem; font-weight: 600; color: var(--tx); font-variant-numeric: tabular-nums; }
body.hk .kpi-chart { width: 100%; max-width: 760px; display: block; margin: 4px 0 14px; }
body.hk .kpi-chart .kpi-used { fill: var(--kpi-used); } body.hk .kpi-chart .kpi-idle { fill: var(--kpi-idle); } body.hk .kpi-chart .kpi-short { fill: var(--kpi-short); }
body.hk .kpi-chart text { font: 12px var(--f, sans-serif); fill: var(--tx-2); font-variant-numeric: tabular-nums; }
body.hk .kpi-chart .kpi-lbl.today { fill: var(--tx); font-weight: 700; } body.hk .kpi-chart .kpi-val { fill: var(--tx); font-weight: 600; }
body.hk .kpi-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; color: var(--tx-2); }
body.hk .kpi-sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: -8px; vertical-align: -1px; }
body.hk .kpi-sw.used { background: var(--kpi-used); } body.hk .kpi-sw.idle { background: var(--kpi-idle); } body.hk .kpi-sw.short { background: var(--kpi-short); }
/* Spec v2: Erik's board + cleaner buttons */
body.hk .hk-bar .hk-days { flex: 1 1 520px; margin: 0; }
body.hk .hk-actions-top { display: flex; gap: 8px; align-items: center; }
body.hk .hk-step-h { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--tx-2); margin: 22px 0 8px; font-weight: 600; }
body.hk .hk-hcards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
body.hk .hk-hcard { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; font-size: .85rem; }
body.hk .hk-hcard b:first-child { font-size: 1rem; }
body.hk .hk-need { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
body.hk .hk-need-row { display: grid; grid-template-columns: 250px 1fr; gap: 6px 16px; align-items: center; padding: 10px 14px 10px 16px; border-bottom: 1px solid var(--line); position: relative; }
body.hk .hk-need-row:last-child { border-bottom: 0; }
body.hk .hk-need-row::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--hk-prog); }
body.hk .hk-need-row.bad::before { background: var(--hk-dirty); } body.hk .hk-need-row.info::before { background: var(--hk-ready); } body.hk .hk-need-row.ok::before { background: var(--hk-clean); }
body.hk .hk-need-t { font-size: .88rem; display: flex; align-items: center; gap: 8px; }
body.hk .hk-need-n { font-size: .75rem; font-weight: 600; padding: 1px 8px; border-radius: 99px; background: var(--hk-prog-bg); color: var(--hk-prog); }
body.hk .hk-need-row.bad .hk-need-n { background: var(--hk-dirty-bg); color: var(--hk-dirty); }
body.hk .hk-need-row.info .hk-need-n { background: var(--hk-ready-bg); color: var(--hk-ready); }
body.hk .hk-need-b { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
body.hk .hk-tag2 { font-size: .76rem; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--tx) !important; text-decoration: none; white-space: nowrap; }
body.hk a.hk-tag2:hover { border-color: var(--tx-2); }
@media (max-width: 700px) { body.hk .hk-need-row { grid-template-columns: 1fr; } }
body.hk .hk-chip { background: var(--surface); color: var(--tx) !important; border: 1px solid var(--ln-2, #d6d1c9); font-weight: 500; justify-content: center; align-items: center; flex-direction: row; font-size: .76rem; min-height: 34px; }
body.hk .hk-chip.k-turn { background: var(--hk-dirty-bg); border-color: var(--hk-dirty); font-weight: 600; }
body.hk .hk-chip.k-lt_out { background: var(--hk-ready-bg); border-color: var(--hk-ready); }
body.hk .hk-chip.k-st_in, body.hk .hk-chip.k-onboard { background: var(--hk-clean-bg); border-color: var(--hk-clean); }
body.hk .hk-chip.k-common { border-style: dashed; background: transparent; }
body.hk .hk-chip.s-in_progress { box-shadow: 0 0 0 2px var(--hk-prog) inset; }
body.hk .hk-chip.s-done, body.hk .hk-chip.s-inspected { background: var(--hk-clean) !important; border-color: var(--hk-clean) !important; color: #fff !important; }
body.hk .hk-chip.carried { outline: 2px dotted var(--hk-dirty); outline-offset: 1px; }
body.hk .hk-chip.noentry { text-decoration: line-through; }
body.hk .hk-chip.mini { display: inline-block; min-height: 0; width: 14px; height: 14px; padding: 0; vertical-align: -2px; margin: 0 4px 0 10px; }
body.hk .hk-legend .hk-chip.mini:first-child { margin-left: 0; }
body.hk .hk-shifts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 20px; margin-top: 10px; }
body.hk .hk-shifts .btn { justify-self: start; }
body.hk .hk-undo { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
body.hk details.card { margin-top: 14px; }
body.hk .sbtn.start { background: var(--hk-ready); color: #fff; }
body.hk .hk-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
body.hk .hk-job.c-turn { background: var(--hk-dirty-bg); color: var(--hk-dirty) !important; border-color: var(--hk-dirty); }
@media (max-width: 900px) { body.hk .hk-hcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
body.hk .hk-hcards.hk-bench2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.hk .hk-bench { gap: 4px; }
body.hk .hk-benchnav { gap: 6px; margin: 0 0 10px; }
body.hk .hk-benchsec .hk-hint { margin-left: 0; }   /* no step number to line up with */
body.hk .hk-benchfold > summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
body.hk .hk-benchfold > summary::-webkit-details-marker { display: none; }
body.hk .hk-benchfold > summary h2::before { content: '▸'; display: inline-block; width: 1em; color: var(--tx-2); transition: transform .15s; }
body.hk .hk-benchfold[open] > summary h2::before { transform: rotate(90deg); }
body.hk .hk-benchfold[open] > summary .hk-benchsum { display: none; }
body.hk .hk-benchfold[open] > summary { margin-bottom: 4px; }
body.hk .hk-sum th.num { text-align: right; }   /* number headers over their numbers (Benchtime, Tõhusus) */
@media (max-width: 600px) { body.hk .hk-hcards.hk-bench2 { grid-template-columns: 1fr; } }
body.hk .hk-chip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 6px; display: block; line-height: 26px; text-align: center; }
body.hk .hk-report summary.sbtn { background: var(--hk-prog-bg); border: 1.5px solid var(--hk-prog); color: var(--tx); }

/* Hinnad → Hinnareeglid (19 Oct 2026): the price rules in one table. */
body.staff .rules { margin: 0 0 24px; }
body.staff .rules summary { cursor: pointer; list-style: none; }
body.staff .rules summary h2 { display: inline; margin: 0; }
body.staff .rules-t th { width: 190px; text-align: left; vertical-align: top; font-weight: 600; padding-right: 16px; }
body.staff .rules-t td { vertical-align: top; line-height: 1.5; }
body.staff .rules-t .nd { width: auto; margin: 8px 0; }
body.staff .rules-t .nd th { width: auto; }
@media (max-width: 700px) { body.staff .rules-t th { width: auto; display: block; padding-bottom: 2px; } body.staff .rules-t td { display: block; padding-top: 0; } }

/* One card per person (Janek, 21 Oct): source icons, the action under each column head, Kaotatud folded, card page */
body.staff .board { grid-auto-columns: minmax(200px, 1fr); }
body.staff .bcol-do { margin: -6px 4px 10px; font-size: .76rem; color: var(--tx-2); }
body.staff .bcard .src { font-style: normal; font-size: .85rem; margin-right: 1px; }
body.staff .bcard .chip-v { font-size: .78rem; color: var(--tx); background: var(--soft); border-radius: 6px; padding: 2px 6px; justify-self: start; }
body.staff .bcard.lostc { opacity: .8; }
body.staff details.lostcol { min-height: 0; align-self: start; max-width: 230px; }
body.staff details.lostcol > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; margin: 2px 4px; font-size: .9rem; }
body.staff details.lostcol > summary::-webkit-details-marker { display: none; }
body.staff details.lostcol:not([open]) { width: 120px; }
body.staff details.lostcol:not([open]) > summary span { display: block; }
body.staff details.lostcol[open] > summary { margin-bottom: 10px; }
body.staff details.lostcol > summary span { color: var(--tx-2); font-size: .8rem; }
body.staff .offer-cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 6px 0 14px; }
body.staff .btn.big { font-size: 1rem; padding: 12px 20px; }
body.staff .timeline li p { margin: 2px 0 0; }
body.staff .offer-pick td, body.staff .offer-pick th { vertical-align: middle; }
body.staff .offer-pick tr:has(input:checked) td { background: var(--tint); }
body.staff .board-filters label { display: inline-flex; gap: 6px; align-items: center; font-size: .88rem; }

/* 20% offer on the results list (Janek, 21 Oct: the bottom pill was easy to miss): a card in the grid + a larger pop-up */
body.stay .offer-tile { display: grid; align-content: start; gap: 12px; background: var(--bg-navy); color: #fff; border-radius: var(--r-lg); padding: 28px 26px; box-shadow: var(--sh); }
body.stay .offer-tile h3 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 600; color: #fff; }
body.stay .offer-tile p { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.85); }
body.stay .offer-tile .muted { color: rgba(255,255,255,.7); }
body.stay .offer-tile .pill, body.stay .offer-pop .pill { justify-self: start; display: inline-block; background: #f3d36b; color: #262523; border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 700; }
body.stay .offer-tile input[type=email], body.stay .offer-tile input[type=tel] { background: #fff; color: var(--tx); }
body.stay .offer-tile .check span { color: rgba(255,255,255,.85); }
body.stay .offer-tile .btn-navy { background: #fff; color: var(--tx); }
body.stay .offer-tile .btn-navy:hover { background: var(--lav-1); }
body.stay .mcard.offer-pop { max-width: 460px; }
body.stay .mcard.offer-pop h2 { font-size: 28px; margin: 10px 0 6px; }
body.stay .mcard.offer-pop p { font-size: 16px; }

/* Vaatamised (routes/app/viewings.js; Janek, 21 Oct 2026): phone first, big tap targets, same tokens as the sales board. */
body.staff .vw-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
body.staff .vw-head h1 { margin-bottom: 8px; }
body.staff .vw-actions { display: flex; gap: 8px; flex-wrap: wrap; } body.staff .vw-actions form { margin: 0; }
body.staff .vw-tabs { display: flex; gap: 4px; margin: 6px 0 18px; border-bottom: 1px solid var(--ln); }
body.staff .vw-tabs a { padding: 10px 14px; text-decoration: none; color: var(--tx-2); border-bottom: 2px solid transparent; font-weight: 500; }
body.staff .vw-tabs a.on { color: var(--tint-tx); border-bottom-color: var(--char); }
body.staff .vw-tabs b, body.staff .vw-filters .pill b { font-weight: 600; color: var(--tint-tx); margin-left: 4px; }
body.staff .vw-day { margin-bottom: 14px; padding: 16px 18px; } body.staff .vw-day h2 { margin: 0 0 8px; }
body.staff .vw-day.vw-today { border-color: var(--tint-2); } body.staff .vw-day.vw-late { border-color: #f1c9a8; background: #fffaf5; }
body.staff .vw-list { list-style: none; margin: 0; padding: 0; }
body.staff .vw-item { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ln); }
body.staff .vw-item:first-child { border-top: 0; }
body.staff .vw-item.vw-gone { opacity: .55; } body.staff .vw-item.vw-gone .vw-name { text-decoration: line-through; }
body.staff .vw-time { display: flex; flex-direction: column; font-size: .85rem; color: var(--tx-2); } body.staff .vw-time b { font-size: 1.1rem; color: var(--tx); }
body.staff .vw-date { font-size: .78rem; color: var(--tx-3); }
body.staff .vw-name { font-weight: 600; font-size: 1.02rem; text-decoration: none; margin-right: 6px; }
body.staff .vw-body { min-width: 0; }
body.staff .vw-taps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; max-width: 520px; }
body.staff .vw-tap { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px; border: 1px solid var(--ln-2); background: #fff; text-decoration: none; font-weight: 600; color: var(--tx); }
body.staff .vw-tap.ok { background: var(--tint); border-color: var(--tint-2); color: var(--tint-tx); }
body.staff .vw-tap.bad { background: #fdf0ec; border-color: #f2cdc2; color: #9a3b22; }
body.staff .vw-tap:hover { border-color: var(--char); }
body.staff .vw-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; align-items: center; }
body.staff .vw-filters .pill, body.staff .vw-presets .pill { border: 1px solid var(--ln-2); border-radius: 99px; padding: 6px 12px; text-decoration: none; font-size: .86rem; color: var(--tx-2); background: #fff; cursor: pointer; font-family: var(--f); }
body.staff .vw-filters .pill.on { border-color: var(--char); color: var(--tint-tx); background: var(--tint); font-weight: 600; }
body.staff .vw-filters select { min-height: 40px; }
body.staff .vw-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
body.staff .vw-col { background: var(--panel); border-radius: var(--radius); padding: 12px; } body.staff .vw-col h2 { font-size: 1rem; margin: 2px 4px 10px; }
body.staff .vw-card { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--ln); border-radius: 12px; padding: 12px; margin-bottom: 8px; text-decoration: none; color: var(--tx); }
body.staff .vw-card:hover { border-color: var(--char); color: var(--tx); }
body.staff .vw-next { font-size: .88rem; color: var(--tx-2); margin-top: 4px; } body.staff .vw-next.is-today { color: var(--tint-tx); font-weight: 600; } body.staff .vw-next.is-late { color: #b4441f; font-weight: 600; }
body.staff .vw-arch { display: grid; grid-template-columns: 1.6fr .8fr 1.4fr .8fr; gap: 10px; align-items: center; padding: 10px 4px; border-top: 1px solid var(--ln); text-decoration: none; color: var(--tx); }
body.staff .vw-arch:first-child { border-top: 0; } body.staff .vw-arch > span:first-child { display: flex; flex-direction: column; }
body.staff .vw-person p { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
body.staff .vw-form, body.staff .vw-done, body.staff .vw-cancel, body.staff .vw-cdet, body.staff .vw-hist, body.staff .vw-archived { max-width: 760px; margin-bottom: 14px; }
body.staff .vw-sec { padding: 12px 0; border-top: 1px solid var(--ln); } body.staff .vw-sec:first-of-type { border-top: 0; }
body.staff .vw-sec h3 { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; }
body.staff .vw-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--tint); color: var(--tint-tx); font-size: .8rem; }
body.staff .vw-when { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
body.staff .vw-opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; } body.staff .vw-opts.col { flex-direction: column; }
body.staff .vw-opt { display: inline-flex; cursor: pointer; margin: 0; }
body.staff .vw-opt input { position: absolute; opacity: 0; pointer-events: none; }
body.staff .vw-opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--ln-2); border-radius: 12px; background: #fff; font-weight: 500; }
body.staff .vw-opts.big .vw-opt span { min-height: 52px; min-width: 120px; justify-content: center; font-weight: 600; }
body.staff .vw-opt input:checked + span { background: var(--tint); border-color: var(--char); color: var(--tint-tx); font-weight: 600; }
body.staff .vw-opt input:disabled + span { opacity: .45; cursor: not-allowed; }
body.staff .vw-opt input:focus-visible + span { outline: 2px solid var(--char); outline-offset: 2px; }
body.staff .vw-form input[name="next_action"] { width: 100%; min-height: 44px; }
body.staff .vw-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
body.staff .vw-form label, body.staff .vw-cancel label, body.staff .vw-cdet label, body.staff .vw-done label { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
body.staff .vw-loss { background: var(--soft); border-radius: 12px; padding: 4px 14px; margin: 8px 0; }
body.staff .vw-save { position: sticky; bottom: 0; background: #fff; padding: 12px 0 4px; border-top: 1px solid var(--ln); }
body.staff .vw-save .btn { min-height: 48px; min-width: 180px; justify-content: center; }
body.staff .vw-undo { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
body.staff .vw-cd { border-top: 1px solid var(--ln); padding-top: 12px; margin-top: 12px; }
body.staff form.inline { display: inline; margin-left: 8px; }
body.staff .vw-src { margin-top: 18px; }
body.staff details > summary { cursor: pointer; font-weight: 600; }
@media (max-width: 860px) {
  body.staff .vw-board { grid-template-columns: 1fr; }
  body.staff .vw-arch { grid-template-columns: 1fr 1fr; }
  body.staff .vw-item { grid-template-columns: 52px 1fr; }
  body.staff .vw-opts.big .vw-opt { flex: 1 1 30%; } body.staff .vw-opts.big .vw-opt span { min-width: 0; width: 100%; }
}
/* Chatbot Laura (routes/app/chatbot.js, 21 Oct 2026) */
body.staff .cb-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 10px; }
body.staff .cb-filters a { border: 1px solid var(--ln-2); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: .9rem; text-decoration: none; color: var(--tx-2); }
body.staff .cb-filters a.on { background: var(--tint); border-color: var(--tint-2); color: var(--tint-tx); font-weight: 600; }
body.staff .cb-filters .count { font-size: .75rem; color: var(--tx-3); margin-left: 2px; }
body.staff .cb-search { margin-bottom: 14px; gap: 8px; } body.staff .cb-search input[name=q] { flex: 1; min-width: 220px; max-width: 460px; }
body.staff .cb-list td { vertical-align: top; } body.staff .cb-list .nowrap { white-space: nowrap; }
body.staff .cb-admin { margin: 10px 0; } body.staff .cb-admin summary { cursor: pointer; } body.staff .cb-admin .kv { margin-top: 8px; }
body.staff .tag.cb-sale { border-color: var(--tint-2); background: var(--tint); color: var(--tint-tx); }
body.staff .tag.cb-review { border-color: #ecd9a6; color: #8a6514; }
body.staff .tag.cb-noise { color: var(--tx-3); }
body.staff .cb-chat { display: flex; flex-direction: column; gap: 8px; }
body.staff .cb-msg { max-width: 80%; padding: 8px 12px; border-radius: 12px; background: var(--soft); }
body.staff .cb-msg p { margin: 2px 0 0; overflow-wrap: anywhere; }
body.staff .cb-msg.user { align-self: flex-end; background: var(--tint); }
body.staff .cb-msg.quoted { box-shadow: inset 3px 0 0 var(--char); }
body.staff .cb-privacy { margin-top: 18px; max-width: 760px; }
@media (max-width: 700px) { body.staff .cb-msg { max-width: 95%; } body.staff .cb-list th:nth-child(4), body.staff .cb-list td:nth-child(4) { min-width: 180px; } }
body.hk .hk-email { width: 210px; }
body.hk .hk-ctag { font-size: .68rem; font-weight: 600; padding: 1px 7px; border-radius: 99px; vertical-align: 1px; white-space: nowrap; }
body.hk .hk-ctag.emp { background: var(--hk-ready-bg); color: var(--hk-ready); }
body.hk .hk-ctag.kas, body.hk .hk-ctag.age { background: var(--hk-prog-bg); color: var(--hk-prog); }
body.hk .hk-kpi { margin: 12px 0 0; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }

/* Cleaner phone screens (21 Oct): next-room card, progress ring, live timer, sticky actions. */
body.hk { --hkp-turn: #b4462f; --hkp-lt: var(--info); --hkp-st: var(--tint-tx); --hkp-oth: #77726a; }
.hkp-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 18px; }
.hkp-hi { font-size: 1.45rem; font-weight: 700; letter-spacing: -.01em; }
.hkp-date { color: var(--tx-2, #6f6a62); text-transform: capitalize; }
.hkp-left { font-size: .85rem; color: var(--tx-2, #6f6a62); margin-top: 2px; }
.hkp-ring { --p: 0; width: 68px; height: 68px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--hk-clean) calc(var(--p) * 1%), var(--line) 0); position: relative; }
.hkp-ring::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--bg, #f6f4f1); }
.hkp-ring b { position: relative; font-size: .95rem; }
.hkp-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--tx-2, #6f6a62); margin: 18px 0 8px; }
.hkp-next, .hkp-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; text-decoration: none; color: inherit;
  background: var(--surface, #fff); border: 1px solid var(--line); border-left: 5px solid var(--hkp-st); border-radius: 14px; padding: 12px 14px; }
.hkp-next { padding: 18px 16px; box-shadow: 0 6px 18px rgba(30, 28, 25, .08); grid-template-columns: auto 1fr; }
.hkp-next .hkp-cta { grid-column: 1 / -1; background: var(--primary); color: #fff; border-radius: 10px; padding: 12px; text-align: center; font-weight: 600; }
.k-turn { border-left-color: var(--hkp-turn) !important; } .k-lt_out, .k-onboard { border-left-color: var(--hkp-lt) !important; } .k-st_in { border-left-color: var(--hkp-turn) !important; }
.k-regular, .k-common, .k-extra, .k-other { border-left-color: var(--hkp-oth) !important; }
.hkp-room { font-size: 1.35rem; font-weight: 700; min-width: 3.2ch; } .hkp-room.big { font-size: 2rem; } .hkp-room.huge { font-size: 3rem; line-height: 1; margin: 4px 0 10px;  overflow-wrap: anywhere; }
@media (max-width: 420px) { .mt .hkp-room.huge { font-size: clamp(1.8rem, 9vw, 3rem); } }
.hkp-lines { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: .9rem; } .hkp-lines span { color: var(--tx-2, #6f6a62); }
.hkp-pill { font-size: .78rem; padding: 3px 9px; border-radius: 99px; background: var(--hk-occ-bg); color: var(--tx, #26231f); white-space: nowrap; font-weight: 600; }
.hkp-pill.strong { background: var(--primary); color: #fff; } .hkp-pill.warn { background: var(--hk-arr-bg); color: var(--hk-arr); }
.hkp-card.s-in_progress .hkp-pill { background: var(--hk-prog-bg); color: var(--hk-prog); }
.hkp-card.s-done, .hkp-card.s-inspected { opacity: .7; } .hkp-card.s-done .hkp-pill { background: var(--hk-clean-bg); color: var(--hk-clean); }
.hkp-list { display: flex; flex-direction: column; gap: 8px; }
.hkp-done summary { cursor: pointer; font-weight: 600; margin: 18px 0 8px; color: var(--tx-2, #6f6a62); }
.hkp-alldone { background: var(--hk-clean-bg); color: var(--hk-clean); border-radius: 14px; padding: 22px; text-align: center; font-weight: 700; font-size: 1.1rem; }
.hkp-back { display: inline-block; margin-bottom: 10px; text-decoration: none; }
.hkp-hero { background: var(--surface, #fff); border: 1px solid var(--line); border-left: 6px solid var(--hkp-st); border-radius: 16px; padding: 18px; margin-bottom: 14px; }
.hkp-house { color: var(--tx-2, #6f6a62); font-weight: 600; }
.hkp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hkp-timer { font-size: 2.6rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 14px; color: var(--hk-prog); }
.hkp-small { font-size: .85rem; color: var(--tx-2, #6f6a62); margin-top: 6px; } .hkp-small.center { text-align: center; }
.hkp-donebar { margin-top: 14px; background: var(--hk-clean-bg); color: var(--hk-clean); border-radius: 10px; padding: 10px 12px; font-weight: 600; }
.hkp-bar { position: sticky; bottom: 0; z-index: 5; background: var(--bg, #f6f4f1); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }
.hkp-bar form { margin: 0; flex: 1; display: flex; } .hkp-row { display: flex; gap: 8px; } .hkp-row.two > * { flex: 1; }
.hkp-btn { width: 100%; border: 0; border-radius: 12px; padding: 16px; font: inherit; font-weight: 700; font-size: 1.05rem; cursor: pointer; text-align: center; text-decoration: none; display: block; }
.hkp-btn.start { background: var(--primary); color: #fff; } .hkp-btn.go { background: var(--hk-clean); color: #fff; }
.hkp-btn.square { width: 64px; flex: none; background: var(--hk-prog-bg); color: var(--hk-prog); }
.hkp-bar form:has(.square) { flex: none; }
.hkp-btn.ghost { background: var(--surface, #fff); border: 1px solid var(--line); color: var(--tx, #26231f); font-weight: 600; font-size: .92rem; padding: 12px; }
/* Room check on an LT move-out + the "pause it and start this one?" prompt (9 Nov 2026, modules/housekeeping/routes/jobs.js) */
.rc { margin: 14px 0; } .rc h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rc-count { font-size: .85rem; font-weight: 600; color: var(--tx-2, #6f6a62); font-family: inherit; }
.rc h3 { font-size: .95rem; margin: 18px 0 6px; }
.rc-list { list-style: none; padding: 0; margin: 0; }
.rc-item { border-top: 1px solid var(--line); padding: 10px 0; }
.rc-item.saving { opacity: .6; } .rc-item.err { box-shadow: inset 3px 0 0 var(--bad); padding-left: 8px; }
.rc-q { font-size: .93rem; line-height: 1.4; }
.rc-row { display: flex; gap: 10px; align-items: flex-start; }
.rc-row .rc-q { flex: 1; }
.rc-flag { flex: none; border: 1px solid var(--line); background: var(--surface, #fff); color: var(--tx, #26231f); border-radius: 8px; padding: 9px 12px; font: inherit; font-weight: 600; font-size: .86rem; cursor: pointer; }
.rc-flag.on { background: var(--hk-dirty); border-color: var(--hk-dirty); color: #fff; }
.rc-flag:disabled { cursor: default; opacity: .75; }
.rc-issue { margin-top: 8px; padding: 10px; border-radius: 8px; background: var(--hk-dirty-bg); display: flex; flex-direction: column; gap: 8px; }
.rc-kinds { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.rc-issue textarea { width: 100%; box-sizing: border-box; }
.rc-block { font-size: .88rem; }
.rc-photos { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rc-photos img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; display: block; }
.rc-ph { width: 64px; height: 64px; border-radius: 8px; display: grid; place-items: center; background: var(--surface, #fff); }
.rc-add { width: auto; padding: 10px 14px; }
.rc-sent { font-weight: 700; color: var(--hk-clean); }
body.hk .rc [hidden] { display: none !important; }
body.hk .rc-kinds label, body.hk .rc-block { display: flex; align-items: center; gap: 10px; margin: 0; padding: 4px 0; font-weight: 500; color: var(--tx, #26231f); }
body.hk .rc input[type=radio], body.hk .rc input[type=checkbox] { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--hk-dirty); }
body.hk .rc-send { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
body.hk .hk-block { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-weight: 500; }
body.hk .hk-block input { width: 20px; height: 20px; margin: 0; flex: none; }
/* Vaatamised → Analüüs (routes/app/viewstats.js) */
body.staff .vs-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 4px; }
body.staff .vs-step { display: flex; align-items: center; gap: 10px; }
body.staff .vs-bar { display: block; height: 8px; background: var(--panel); border-radius: 4px; min-width: 60px; }
body.staff .vs-bar i { display: block; height: 100%; background: var(--char); border-radius: 4px; }
body.staff .vs-counts .vs-barcell { width: 45%; }
body.staff .vs-scroll { overflow-x: auto; }
body.staff .vs-grid td.vs-heat { min-width: 34px; text-align: center; border-radius: 4px; }
body.staff .vs-fb { border-top: 1px solid var(--ln); padding: 8px 0; }
body.staff .vs-fb p { margin: 4px 0; overflow-wrap: anywhere; }

/* Erik's board in numbered steps (21 Oct): a step strip, then one card per step with a heading and a one-line hint. */
body.hk .hk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
body.hk .hk-head h1 { margin: 0 0 2px; }
body.hk .hk-badge { font-size: .8rem; padding: 4px 10px; border-radius: 99px; background: var(--hk-ready-bg); color: var(--hk-ready); font-weight: 600; white-space: nowrap; }
body.hk .hk-steps { list-style: none; padding: 0; margin: 16px 0 6px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
body.hk .hk-steps a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; height: 100%; }
body.hk .hk-steps .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex: none; background: var(--line); color: var(--tx); }
body.hk .hk-steps b { display: block; font-size: .88rem; } body.hk .hk-steps small { display: block; color: var(--tx-2); font-size: .76rem; }
body.hk .hk-steps .ok .n { background: var(--hk-clean); color: #fff; } body.hk .hk-steps .warn .n { background: var(--hk-prog); color: #fff; }
body.hk .hk-steps .todo .n { background: var(--hk-dirty-bg); color: var(--hk-dirty); } body.hk .hk-steps .info .n { background: var(--hk-ready-bg); color: var(--hk-ready); }
body.hk .hk-sec { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-top: 14px; scroll-margin-top: 12px; }
body.hk .hk-sec > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
body.hk .hk-sec h2 { margin: 0; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
body.hk .hk-sec h2 .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: .85rem; }
body.hk .hk-hint { color: var(--tx-2); font-size: .86rem; margin: 4px 0 12px 36px; }
body.hk .hk-sec .hk-need, body.hk .hk-sec .hk-hcard, body.hk .hk-sec .hk-lane { background: var(--bg, #f6f4f1); }
body.hk .hk-more { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
body.hk .hk-more summary { cursor: pointer; font-weight: 600; color: var(--teal); }
body.hk .hk-people { display: flex; flex-wrap: wrap; gap: 8px; }
body.hk .hk-person { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 7px 12px; border-radius: 10px; background: var(--bg, #f6f4f1); border: 1px solid var(--line); font-size: .88rem; }
body.hk .hk-person small { flex-basis: 100%; color: var(--tx-2); } body.hk .hk-person.nohouse { border-color: var(--hk-prog); } body.hk .hk-person.nohouse small { color: var(--hk-prog); }
@media (max-width: 900px) { body.hk .hk-steps { grid-template-columns: 1fr 1fr; } body.hk .hk-hint { margin-left: 0; } }
body.hk .hk-toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 4px; }
body.hk .hk-toc a { font-size: .85rem; padding: 6px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--tx); }
body.hk .hk-sec h3 { font-size: .95rem; margin: 18px 0 6px; }
body.hk .hk-howto { margin: 6px 0 14px 36px; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.hkp-steps { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.hkp-steps li { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--tx-2, #6f6a62); padding: 8px 10px; border-radius: 10px; background: var(--surface, #fff); border: 1px solid var(--line); }
.hkp-steps li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--tx, #26231f); flex: none; font-size: .78rem; }
.hkp-steps li.on { border-color: var(--primary); color: var(--tx, #26231f); } .hkp-steps li.on span { background: var(--primary); color: #fff; }
.hkp-steps li.done span { background: var(--hk-clean); color: #fff; }
/* Renewals (Janek, 22 Oct 2026; routes/app/renewals.js) */
body.staff .bcard.rn-late { border-color: #e7a59a; background: #fff8f6; }
body.staff .rn-outcomes { display: flex; flex-wrap: wrap; gap: 6px; }
body.staff .rn-outcomes .pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ln); border-radius: 999px; padding: 6px 12px; cursor: pointer; background: #fff; font-size: .9rem; }
body.staff .rn-outcomes .pill:has(input:checked) { border-color: var(--char); background: var(--tint); }
body.staff .rn-if[hidden] { display: none; }
body.staff .rn-draft { width: 100%; font: .9rem/1.45 var(--sans, inherit); white-space: pre-wrap; }
body.staff .rn-problems { border-left: 4px solid #d9534f; }
body.staff .rn-rules li { margin: 0 0 8px; }
body.staff .rn-free { justify-self: start; font-size: .78rem; font-weight: 600; border-radius: 6px; padding: 2px 8px; }
body.staff .rn-free.rn-red { background: #fbe1dc; color: #a12c1c; }
body.staff .rn-free.rn-amber { background: #fff1d6; color: #8a5a00; }
body.staff .rn-free.rn-green { background: var(--ok-bg); color: var(--ok); }
body.staff .rn-legend { background: #fff; border: 1px solid var(--ln); border-radius: 10px; padding: 10px 14px; margin: 6px 0 10px; font-size: .86rem; }
body.staff .rn-legend ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
body.staff .rn-legend .rn-free { margin-right: 6px; }
body.staff .bcol-when { margin: -6px 4px 4px; font-size: .78rem; font-weight: 600; color: var(--tx); }
/* Renewals step 2: the mail summary on the card (lib/renewalsmail.js) */
body.staff .rn-mail { border-left: 4px solid var(--ln); }
body.staff .rn-mail-green { border-left-color: var(--ok); }
body.staff .rn-mail-amber { border-left-color: #e0a526; }
body.staff .rn-mail-red { border-left-color: #d9534f; }
body.staff .rn-mail h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
body.staff .rn-light { font-size: .9rem; font-weight: 600; }
body.staff .rn-opener { background: var(--info-bg); color: inherit; border-radius: 8px; padding: 10px 12px; margin: 8px 0; }
body.staff .rn-mail-group { margin: 10px 0 0; }
body.staff .rn-mail-group ul { margin: 4px 0 0; }
body.staff .rn-mail-group li { margin: 0 0 4px; }
body.staff .rn-k-open > b { color: var(--bad); }
body.staff .rn-mref { white-space: nowrap; font-size: .82rem; text-decoration: none; border: 1px solid var(--ln); border-radius: 999px; padding: 0 6px; margin-left: 2px; }
body.staff .rn-mail-foot { margin-top: 12px; }
body.staff .rq-main .rn-mail, body.staff .rq-main .rn-problems { padding-left: 14px; }
/* Rahulolukõned (day-14 call; Janek, 22 Oct 2026): calm colours, no emoji, a plain list */
body.staff .sc-page .notice.warn { background: #f6f3ee; border: 1px solid #e6dfd3; color: #4d463b; }
body.staff .sc-page .sc-warn { color: #94574a; }
body.staff .sc-page .sc-sec { margin: 18px 0 0; }
body.staff .sc-page .sc-sec h2 { font-size: 1.05rem; margin: 0 0 8px; }
body.staff .sc-page details.sc-sec > summary { cursor: pointer; margin: 0 0 8px; }
body.staff .sc-page details.sc-sec > summary h2 { display: inline; }
body.staff .sc-page .sc-list { display: grid; gap: 6px; }
body.staff .sc-page .sc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 26px; align-items: center; gap: 12px; padding: 10px 14px; background: #fff;
  border: 1px solid var(--ln); border-radius: 10px; color: inherit; text-decoration: none; }
body.staff .sc-page .sc-row:hover { border-color: #c9c4bb; }
body.staff .sc-page .sc-row.mine { border-left: 3px solid var(--ok-2); }
body.staff .sc-page .sc-row.sc-late { background: #fcf9f7; border-color: #e8dad4; }
body.staff .sc-page .sc-name { display: flex; flex-direction: column; min-width: 0; }
body.staff .sc-page .sc-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.staff .sc-page .sc-when { font-size: .88rem; white-space: nowrap; color: var(--tx-2); }
body.staff .sc-page .sc-row i { font-style: normal; font-size: .75rem; color: var(--tx-2); background: #f4f2ee; border-radius: 50%; width: 26px; height: 26px; display: grid; place-items: center; }
body.staff .sc-page .sc-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
body.staff .sc-page .sc-tag { font-size: .76rem; background: #f4f2ee; color: #4d463b; border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
body.staff .sc-page .sc-score { font-weight: 600; color: var(--tx); }
body.staff .sc-page .sc-how { background: #fff; border: 1px solid var(--ln); border-radius: 10px; padding: 10px 14px; margin: 6px 0 4px; font-size: .9rem; }
body.staff .sc-page .sc-how summary { cursor: pointer; font-weight: 600; }
body.staff .sc-page .sc-how ol { margin: 8px 0; padding-left: 20px; }
body.staff .sc-page .sc-problems { border-left: 4px solid #dcc7c0; padding-left: 14px; }
body.staff .sc-page .sc-count { font-size: .78rem; background: #ece0db; color: #6f4a40; border-radius: 999px; padding: 1px 8px; margin-left: 4px; }
body.staff .sc-page .sc-plist li { margin: 0 0 8px; }
body.staff .sc-page .sc-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin: 0 8px 1px 0; vertical-align: middle; background: #c9a197; }
body.staff .sc-page .sc-dot.sc-dot-ok { background: var(--ok-2); }
body.staff .sc-page .sc-call .rn-if { display: grid; gap: 8px; }
body.staff .sc-page .sc-call .rn-if[hidden] { display: none; }
body.staff .sc-page .rn-outcomes .pill { padding: 8px 14px; white-space: nowrap; }
body.staff .sc-page .rn-outcomes .pill input { width: auto; margin: 0; }
body.staff .sc-page .rn-outcomes .pill:has(input:checked) { border-color: var(--ok-2); background: var(--ok-bg); }
body.staff .sc-page .sc-kpi-wrap { overflow-x: auto; }
body.staff .sc-page .sc-kpi th { white-space: normal; vertical-align: bottom; font-weight: 500; }
body.staff .sc-page .sc-kpi td:first-child { white-space: nowrap; }
@media (max-width: 640px) { body.staff .sc-page .sc-row { grid-template-columns: minmax(0, 1fr) auto; } body.staff .sc-page .sc-tags { grid-column: 1 / -1; justify-content: flex-start; } }

/* ─── Maintenance app (/haldus, Janek 22 Oct 2026): same Põhjamaa tokens as /koristus; priority colours. ───── */
body.mt { --p1: #c8452f; --p1-bg: #fbe7e2; --p2: #b8610f; --p2-bg: #fcecd8; --p3: var(--info); --p3-bg: var(--info-bg); --p4: var(--tx-3); --p4-bg: var(--panel); }
body.mt .hk-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
body.mt .hk-tabs a:last-child[href^="/koristus"], body.mt .hk-tabs a[href="/app"] { margin-left: auto; }
.mt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mt-head h1 { margin-bottom: 10px; }
.mt-list { display: grid; gap: 0; margin: 8px 0 22px; background: #fff; border: 1px solid var(--ln); border-radius: 12px; overflow: hidden; }
.mt-list:empty, .mt-list > p.muted { background: none; border: 0; }
/* One task = one quiet line (Janek, 27 Oct, like Renewals' "Täna"): place · what · who · state · deadline. */
.mt-row { display: grid; grid-template-columns: minmax(130px, 1.1fr) minmax(0, 2.6fr) minmax(90px, 1fr) minmax(100px, 1fr) minmax(96px, .9fr); gap: 12px; align-items: center;
  padding: 9px 14px; border-top: 1px solid var(--ln); text-decoration: none; color: var(--tx); font-size: .9rem; }
.mt-row.no-who { grid-template-columns: minmax(130px, 1.1fr) minmax(0, 2.6fr) minmax(100px, 1fr) minmax(96px, .9fr); }
.mt-list > .mt-row:first-child, .mt-list > .mt-unplanned:first-child .mt-row { border-top: 0; }
.mt-row:hover { background: var(--soft); color: var(--tx); }
.mt-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-k b { font-weight: 600; } .mt-p, .mt-s, .mt-d { color: var(--tx-2); font-size: .85rem; } .mt-p.none { color: var(--tx-3); }
.mt-d em { font-style: normal; } .mt-row.late .mt-d { color: var(--p1); font-weight: 600; } .mt-row.s-done { color: var(--tx-2); }
.mt-head-row { padding-top: 7px; padding-bottom: 7px; background: var(--soft); font-size: .75rem; color: var(--tx-2); text-transform: none; }
.mt-head-row:hover { background: var(--soft); }
.mt-dot { display: inline-block; width: 16px; height: 16px; flex: none; border-radius: 50%; margin-right: 8px; vertical-align: -3px; background: var(--p4); }
.mt-urg { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 1px 7px; margin-right: 7px; border-radius: 99px; vertical-align: 1px; }
.mt-urg.p1 { background: var(--p1-bg); color: var(--p1); } .mt-urg.p2 { background: var(--p2-bg); color: var(--p2); }
.mt-card .mt-urg { justify-self: start; margin: 0 0 2px; }
.mt-dot.p1 { background: var(--p1); } .mt-dot.p2 { background: var(--p2); } .mt-dot.p3 { background: var(--p3); } .mt-dot.p4 { background: var(--ln-2); }
/* Urgency and state at a glance (Ain, Tagasiside #9893, 9 Nov 2026): Avarii rows light red, a stripe in the urgency's colour
   on every row, the state as a coloured label (green = Valmis, blue = Töös, terracotta = Uus, yellow = Ootel, grey = planned). */
.mt-row:not(.mt-head-row) { border-left: 4px solid transparent; }
.mt-row.p1 { border-left-color: var(--p1); background: var(--p1-bg); } .mt-row.p1:hover { background: var(--p1-bg); filter: brightness(.98); }
.mt-row.p1 .mt-w { font-weight: 600; } .mt-row.p2 { border-left-color: var(--p2); } .mt-row.p3 { border-left-color: var(--p3); } .mt-row.p4 { border-left-color: var(--ln-2); }
.mt-row.s-done { border-left-color: transparent; background: none; } .mt-row.s-done .mt-w { font-weight: 400; }
.mt-card.p1, .mt-today.p1 { background: var(--p1-bg); } .mt-card.p1 { border-color: var(--p1); } .mt-card.p2 { border-left: 4px solid var(--p2); }
.mt-st { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; padding: 2px 9px; border-radius: 99px; font-size: .8rem; font-weight: 600; }
.mt-st.st-new { background: var(--tint); color: var(--tint-tx); } .mt-st.st-planned, .mt-st.st-partner { background: var(--panel); color: var(--tx-2); font-weight: 500; }
.mt-st.st-doing { background: var(--info-bg); color: var(--info); } .mt-st.st-waiting { background: var(--warn-bg); color: var(--warn); } .mt-st.st-done { background: var(--ok-bg); color: var(--ok); }
.mt-row.p1 .mt-st.st-new { background: var(--surface); color: var(--p1); }
.mt-mark { font-style: normal; margin-left: 6px; font-size: .8rem; color: var(--tx-2); } .mt-mark.txt { font-size: .74rem; } .mt-mark.on { color: var(--tx); }
.mt-unplanned { border-top: 1px solid var(--ln); display: flex; align-items: center; flex-wrap: wrap; } .mt-unplanned .mt-row { border-top: 0; flex: 1 1 520px; min-width: 0; }
.mt-unplanned > form { padding: 6px 14px; margin: 0; } .mt-unplanned > p { flex-basis: 100%; padding: 0 14px 10px; }
/* Ain's board (A): one column per state; cards like Renewals'. Shown from 900 px; below that the table above. */
.mt-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 10px 0 6px; align-items: start; }
.mt-bcol { background: var(--soft); border-radius: 12px; padding: 10px; min-height: 120px; }
.mt-bcol header { display: flex; justify-content: space-between; align-items: baseline; margin: 2px 4px 10px; font-size: .9rem; } .mt-bcol header span { color: var(--tx-2); font-size: .8rem; }
.mt-card { display: grid; gap: 3px; background: #fff; border: 1px solid var(--ln); border-radius: 10px; padding: 9px 11px; margin-bottom: 8px; text-decoration: none; color: var(--tx); font-size: .86rem; }
.mt-card:hover { border-color: var(--tx); color: var(--tx); }
.mt-ct { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-cf { display: flex; justify-content: space-between; align-items: center; gap: 6px; color: var(--tx-2); font-size: .8rem; } .mt-card.late .mt-cf > span:first-child { color: var(--p1); font-weight: 600; }
.mt-ini { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--soft); display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 600; color: var(--tx-2); }
.mt-ini.none { background: none; border: 1px dashed var(--ln-2); }
.mt-video { max-width: min(420px, 100%); border-radius: 10px; background: #000; margin: 4px 6px 0 0; } .mt-ini.ack { background: var(--ok-bg); color: var(--teal, var(--ok)); }
.mt-file { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--ln-2); border-radius: 10px; background: #fff; color: var(--tx); text-decoration: none; font-size: .88rem; margin: 4px 6px 0 0; }
.mt-photo { display: grid; gap: 6px; justify-items: start; } .mt-photo-l { font-weight: 600; font-size: .92rem; }
.mt-photo label.btn { position: relative; cursor: pointer; } .mt-photo input[type=file] { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.mt-board-done { margin: 0 0 18px; } .mt-board-alt { display: none; }
/* The six phases (Janek, 2 Nov 2026): Uus · Planeeritud · Töös · Ootel · Partnerid · Valmis, drag and drop like Renewals. */
.mt-board.six { grid-template-columns: repeat(6, minmax(168px, 1fr)); overflow-x: auto; }
.mt-bcol[data-ph="done"] { background: var(--ok-bg); } .mt-bcol[data-ph="partner"] { background: var(--panel); } .mt-bcol[data-ph="doing"] { background: var(--info-bg); } .mt-bcol[data-ph="waiting"] { background: var(--warn-bg); }
.mt-drop.over { outline: 2px dashed var(--ok-2); outline-offset: -4px; }
.mt-card.dragging { opacity: .5; } .mt-card[draggable="true"] { cursor: grab; }
.mt-ghost { position: fixed; z-index: 50; pointer-events: none; box-shadow: 0 6px 18px rgba(31,30,28,.18); transform: rotate(2deg); }
.mt-dialog { border: 1px solid var(--ln); border-radius: 14px; padding: 18px 20px; max-width: 360px; width: calc(100% - 32px); }
.mt-dialog::backdrop { background: rgba(31,30,28,.25); }
.mt-take .mt-planrow .btn { min-height: 38px; }
/* What needs a lead (Ain and Krister, 27 Oct): one row of quiet buttons; each opens that list. */
.mt-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.mt-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--ln-2); border-radius: 99px; background: #fff; color: var(--tx); text-decoration: none; font-size: .85rem; }
.mt-chip b { font-weight: 700; } .mt-chip:hover { border-color: var(--tx); color: var(--tx); }
.mt-chip.bad { border-color: var(--p1); color: var(--p1); } .mt-chip.on { background: var(--tx); border-color: var(--tx); color: #fff; }
.mt-chip.ok { color: var(--tx-2); background: none; } .mt-chip.clear { color: var(--tx-2); background: none; border-style: dashed; }
.hk-user a.linklike { margin-left: 10px; } .hk-user a.linklike.on { font-weight: 600; }
@media (max-width: 900px) { .mt-board, .mt-board-done { display: none; } .mt-board-alt { display: grid; } }
.mt-pr { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--p4-bg); color: var(--p4); text-align: center; }
.p1 .mt-pr, .mt-prs .p1 b { background: var(--p1-bg); color: var(--p1); } .p2 .mt-pr, .mt-prs .p2 b { background: var(--p2-bg); color: var(--p2); }
.p3 .mt-pr, .mt-prs .p3 b { background: var(--p3-bg); color: var(--p3); } .mt-prs .p4 b { background: var(--p4-bg); color: var(--p4); }
.mt-flag { font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: #ffe9a8; color: #6d4800; white-space: nowrap; }
.mt-hero { background: #fff; border: 1px solid var(--ln); border-left: 6px solid var(--p4); border-radius: 16px; padding: 18px; margin: 10px 0 14px; }
.mt-hero.p1 { border-left-color: var(--p1); } .mt-hero.p2 { border-left-color: var(--p2); } .mt-hero.p3 { border-left-color: var(--p3); }
.mt-hero.late { background: linear-gradient(0deg, #fff, #fff 70%, var(--p1-bg)); }
.mt-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.mt-title { font-size: 1.15rem; font-weight: 700; margin: 6px 0; }
.mt-body { background: #fff; border: 1px solid var(--ln); border-radius: 12px; padding: 12px 14px; }
.mt-pics { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 14px; } .mt-pics img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--ln); }
.mt-actions { display: grid; gap: 10px; margin: 14px 0; } .mt-actions form { margin: 0; }
.mt-form { display: grid; gap: 10px; } .mt-form label { display: grid; gap: 4px; font-weight: 600; font-size: .92rem; }
.mt-form input, .mt-form textarea, .mt-form select { font: inherit; font-weight: 400; padding: 11px 12px; border: 1px solid var(--ln-2); border-radius: 10px; background: #fff; width: 100%; box-sizing: border-box; }
.mt-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mt-houses, .mt-prs, .mt-waits { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.mt-houses legend, .mt-prs legend, .mt-waits legend { font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.mt-houses { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mt-houses label, .mt-prs label, .mt-waits label { cursor: pointer; }
/* Hidden radios stay inside their label: left alone they sat far off-screen and a pick scrolled the page sideways (review 9 Nov 2026). */
.mt-houses label, .mt-prs label, .mt-waits label { position: relative; }
.mt-houses input, .mt-prs input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.mt-houses span { display: block; text-align: center; padding: 12px 4px; border: 1px solid var(--ln-2); border-radius: 10px; background: #fff; font-weight: 600; }
.mt-houses input:checked + span { background: var(--char); color: #fff; border-color: var(--char); }
.mt-prs label > span { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--ln-2); border-radius: 10px; background: #fff; font-weight: 400; }
.mt-prs b { flex: none; min-width: 84px; text-align: center; padding: 4px 8px; border-radius: 99px; font-size: .85rem; }
.mt-prs small { color: var(--tx-2); } .mt-prs input:checked + span { border-color: var(--tx); box-shadow: inset 0 0 0 1px var(--tx); }
.mt-prs input:focus-visible + span, .mt-houses input:focus-visible + span { outline: 2px solid var(--char); outline-offset: 2px; }
.mt-waits { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.mt-waits input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.mt-waits span { display: block; text-align: center; padding: 11px 6px; border: 1px solid var(--ln-2); border-radius: 10px; background: #fff; font-weight: 600; }
.mt-waits input:checked + span { background: var(--char); color: #fff; border-color: var(--char); }
.mt-waits input:focus-visible + span { outline: 2px solid var(--char); outline-offset: 2px; }
.mt-forus { font-size: 1rem; } .mt-forus .btn { margin-left: 6px; }
.btn.big { padding: 15px; font-size: 1.05rem; }
.mt-more > summary { list-style: none; cursor: pointer; } .mt-more > summary::-webkit-details-marker { display: none; }
.mt-more[open] > summary { margin-bottom: 10px; }
.mt-payer { display: grid; gap: 10px; } .mt-payer[hidden], .mt-payer [hidden] { display: none; }
.mt-doneform { background: #fff; border: 1px solid var(--ln); border-radius: 14px; padding: 14px; }
.mt-events { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.mt-events li { border-left: 3px solid var(--ln-2); padding-left: 10px; } .mt-events li.note { border-left-color: var(--char); }
.mt-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; } .mt-filter select, .mt-filter input { font: inherit; padding: 8px 10px; border: 1px solid var(--ln-2); border-radius: 10px; background: #fff; }
.mt-filter input { flex: 1; min-width: 160px; }
.mt-lead .mt-more { margin-top: 6px; } .mt-lead .mt-more > summary { color: var(--tx-2); }
.mt-lead .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 10px; }
.mt-lead input, .mt-lead select { font: inherit; padding: 8px 10px; border: 1px solid var(--ln-2); border-radius: 10px; }
.mt-link { width: min(520px, 100%); font: inherit; padding: 6px 8px; }
.mt-numbers { margin-top: 24px; } td.bad, .hk-badge.bad { color: var(--p1); font-weight: 700; }
@media (max-width: 640px) {
  /* Phone: two short lines per task (place + state, then what + deadline); who drops under. */
  .mt-row, .mt-row.no-who { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 12px; }
  .mt-row .mt-w { grid-column: 1; grid-row: 2; white-space: normal; } .mt-row .mt-k { grid-column: 1; grid-row: 1; white-space: normal; }
  .mt-row .mt-s { grid-column: 2; grid-row: 1; text-align: right; } .mt-row .mt-d { grid-column: 2; grid-row: 2; text-align: right; }
  .mt-row .mt-p { grid-column: 1 / -1; grid-row: 3; font-size: .8rem; } .mt-head-row { display: none; }
  /* A long state (RU "Ожидает: Деталь / материал · проверить 7.11") wraps instead of squeezing the room to "S…" (review 9 Nov 2026). */
  .mt-row .mt-s, .mt-row .mt-d { max-width: 44vw; white-space: normal; } .mt-row .mt-k b { white-space: nowrap; }
  .mt-houses { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mt-two { grid-template-columns: 1fr; }
  body.mt .hk-steps { grid-template-columns: 1fr 1fr; }
}
.mt-progress { display: flex; align-items: center; gap: 12px; margin: 6px 0 12px; flex-wrap: wrap; }
.mt-bar { flex: 1; min-width: 160px; height: 10px; border-radius: 99px; background: var(--ln); overflow: hidden; } .mt-bar i { display: block; height: 100%; background: var(--char); }
.mt-sortcard .mt-form { margin-top: 14px; } .mt-filter a.btn { text-decoration: none; }
.mt-prs.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; } .mt-prs.compact small { display: none; }
.mt-prs.compact label > span { justify-content: center; padding: 6px; } .mt-prs.compact b { min-width: 0; width: 100%; }
/* Klienditugi (support@, admin; routes/app/klienditugi.js) */
body.staff .sm-cat tr.sum td { border-top: 2px solid var(--ln-2); }
body.staff .sm-msg.out { border-left: 3px solid var(--char); }
body.staff .sm-body { white-space: pre-wrap; word-break: break-word; font: inherit; font-size: .9rem; margin: 6px 0 0; }
body.staff .sm-answer { background: var(--soft); border-radius: 8px; padding: 10px 12px; margin: 6px 0 10px; line-height: 1.5; }
body.staff .sm-q h3 { font-size: 1rem; margin: 0 0 2px; }
body.staff .sm-review textarea { width: 100%; }
body.staff .sm-review .stack { display: grid; gap: 8px; margin-top: 8px; }
body.staff .sm-done { margin: 4px 0 18px; }
/* Renewals: calm colours, no emoji (Janek, 22 Oct 2026: "nice plain colours", no sharp red / yellow / green) */
body.staff .rn-page .notice.warn { background: #f6f3ee; border: 1px solid #e6dfd3; color: #4d463b; }
body.staff .rn-page .notice.err { background: #f7f1ee; border: 1px solid #e8dad4; color: #6f4a40; }
body.staff .rn-page .err-text, body.staff .rn-page .timer.late { color: #94574a; }
body.staff .rn-page .timer.soon { color: #7a6a4f; }
body.staff .rn-page .count.late { background: #ece0db; color: #6f4a40; }
body.staff .rn-page .bcard.rn-late { border-color: #e8dad4; background: #fcf9f7; }
body.staff .rn-page .rn-problems { border-left: 4px solid #dcc7c0; }
body.staff .rn-page .rn-mail-green { border-left-color: var(--ok-2); }
body.staff .rn-page .rn-mail-amber { border-left-color: #e3d6b8; }
body.staff .rn-page .rn-mail-red { border-left-color: #dcc7c0; }
body.staff .rn-page .rn-k-open > b { color: #94574a; }
body.staff .rn-page .rn-opener { background: var(--ok-bg); }
body.staff .rn-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin: 0 7px 1px 0; vertical-align: middle; background: #c9c4bb; }
body.staff .rn-dot-red { background: #c9a197; } body.staff .rn-dot-amber { background: #d6c39b; } body.staff .rn-dot-green { background: var(--ok-2); }
body.staff .rn-free.rn-red, body.staff .rn-free.rn-amber, body.staff .rn-free.rn-green { background: #f4f2ee; color: #4d463b; font-weight: 500; }
body.staff .rn-check { display: inline-block; width: 14px; height: 14px; border: 1.5px solid #c9c4bb; border-radius: 3px; margin: 0 8px 2px 0; vertical-align: middle; }
body.staff .rn-check.on { background: var(--ok-2); border-color: var(--ok-2); }
body.staff .rn-ticks li { margin: 0 0 10px; }
/* The call answers: one row of plain pills, radio and text side by side */
body.staff .rn-outcomes { display: flex; flex-wrap: wrap; gap: 8px; }
body.staff .rn-outcomes .pill { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; width: auto; margin: 0; white-space: nowrap; padding: 8px 14px; border: 1px solid var(--ln); border-radius: 999px; background: #fff; font-size: .92rem; line-height: 1.2; cursor: pointer; }
body.staff .rn-outcomes .pill input { width: auto; margin: 0; flex: none; }
body.staff .rn-outcomes .pill:has(input:checked) { border-color: var(--ok-2); background: var(--ok-bg); }
/* Renewals card as three steps (Janek, 22 Oct) */
body.staff .rn-steps { max-width: 860px; display: grid; gap: 14px; }
body.staff .rn-step h2 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin: 0 0 10px; }
body.staff .rn-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); font-size: .9rem; font-weight: 700; }
body.staff .rn-goal { background: var(--ok-bg); border-radius: 8px; padding: 10px 12px; margin: 0 0 12px; }
body.staff .rn-facts { margin: 0 0 8px; }
body.staff .rn-step h3 { font-size: .95rem; margin: 14px 0 6px; }
body.staff .rn-probs li { margin: 0 0 8px; }
body.staff .rn-phone { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; }
body.staff .rn-draftbox { border-top: 1px solid var(--ln); margin-top: 12px; padding-top: 10px; }
body.staff .rn-sent { margin-top: 10px; align-items: flex-end; }
body.staff .rn-steps details { margin: 4px 0; }
body.staff .rn-steps details > summary { cursor: pointer; padding: 6px 0; }

/* Board cards are plain (Janek, 22 Oct 2026): one text colour for the next step; a late one is only bold. */
body.staff .bcard .timer, body.staff .bcard .timer.soon { color: var(--tx); }
body.staff .bcard .timer.late { color: var(--tx); font-weight: 700; }
body.staff .rn-leave { margin-top: 12px; } body.staff .rn-leave > summary { color: var(--tx-2); }
.mt-plan { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.mt-person .mt-list { margin: 0; } .mt-carry { color: var(--p2); font-weight: 600; margin-bottom: -4px; }
.mt-planrow { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin: 0; }
.mt-planrow select { font: inherit; padding: 6px 8px; border: 1px solid var(--ln-2); border-radius: 10px; }
.mt-filter form.inline input { font: inherit; padding: 6px 8px; border: 1px solid var(--ln-2); border-radius: 10px; }
.mt-plan .mt-row, .mt-plan .mt-row.no-who { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; } .mt-plan .mt-row .mt-w { grid-column: 1 / -1; grid-row: 2; white-space: normal; }
.mt-plan .mt-row .mt-d { display: none; } .mt-plan .mt-row .mt-p { grid-column: 1 / -1; } .mt-plan .mt-row .mt-k { white-space: normal; }
body.staff .rn-board { grid-auto-columns: minmax(240px, 1fr); } body.staff .rn-why { color: var(--tx); } body.staff .rn-later { margin: 12px 0; } body.staff .rn-later > summary { cursor: pointer; color: var(--tx-2); }
/* Font trial on Renewals only (Janek, 23 Oct 2026: LHV-like, lighter). Helvetica Neue on Mac/iPhone, Arial on Windows.
   If Janek likes it, the same goes to the whole staff app (one place: the body.staff token block). */
body.staff .rn-page, body.staff .rn-page input, body.staff .rn-page select, body.staff .rn-page textarea, body.staff .rn-page button {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
body.staff .rn-page { font-weight: 400; letter-spacing: 0; line-height: 1.5; }
body.staff .rn-page h1, body.staff .rn-page h2, body.staff .rn-page h3, body.staff .rn-page .bcol header b, body.staff .rn-page .bcard b { font-weight: 500; }
body.staff .rn-page b, body.staff .rn-page strong, body.staff .rn-page label, body.staff .rn-page .btn { font-weight: 500; }
body.staff .rn-page .rn-n { font-weight: 500; }
/* Renewals v3 (Janek, 23 Oct): Helista täna list, drag and drop, the card's header strip and client profile */
body.staff .rn-count { margin: 8px 0; }
body.staff .rn-today { display: grid; gap: 6px; max-width: 1100px; }
body.staff .rn-row { display: grid; grid-template-columns: minmax(180px, 2fr) 1.1fr 1.4fr 1.4fr 1fr; gap: 12px; align-items: center; padding: 10px 14px; background: #fff; border: 1px solid var(--ln); border-radius: 10px; color: var(--tx); text-decoration: none; }
body.staff .rn-row:hover { border-color: var(--tx); }
body.staff .rn-row-name { display: grid; } body.staff .rn-row-ph { color: var(--tx-2); } body.staff .rn-row-who { color: var(--tx-2); font-size: .85rem; text-align: right; }
@media (max-width: 760px) { body.staff .rn-row { grid-template-columns: 1fr 1fr; } body.staff .rn-row-who { text-align: left; } }
body.staff .rn-board { grid-auto-columns: minmax(210px, 1fr); }
body.staff .rn-drop.over { outline: 2px dashed var(--ok-2); outline-offset: -4px; }
body.staff .bcard.dragging { opacity: .5; }
body.staff .rn-dialog { border: 1px solid var(--ln); border-radius: 12px; padding: 18px; min-width: 320px; }
body.staff .rn-dialog::backdrop { background: rgba(31,30,28, .25); }
/* Link on words dialog (public/app.js, Smartbox / Leads text boxes; Janek, 30 Oct 2026: like Outlook's Insert Link). */
body.staff .sb-linkdlg { border: 1px solid var(--ln); border-radius: 12px; padding: 18px 20px; width: min(440px, 92vw); font-family: var(--f); }
body.staff .sb-linkdlg::backdrop { background: rgba(31,30,28, .25); }
body.staff .sb-linkdlg h3 { margin: 0 0 12px; font-size: 1rem; }
body.staff .sb-linkdlg label { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 10px; margin: 0 0 10px; font-size: .88rem; color: var(--muted); }
body.staff .sb-linkdlg input { width: 100%; border: 1px solid var(--ln-2); border-radius: 8px; padding: 7px 10px; font: inherit; color: var(--ink); background: var(--surface); }
body.staff .sb-linkdlg input:focus { outline: 2px solid var(--teal); outline-offset: -1px; }
body.staff .sb-linkdlg .acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
body.staff .rn-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin: 6px 0 14px; max-width: 860px; }
body.staff .rn-head h1 { margin: 0 0 4px; } body.staff .rn-head p { margin: 0 0 8px; }
body.staff .rn-phase { background: var(--ok-bg); border-radius: 6px; padding: 1px 8px; }
body.staff .rn-strip { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--tx-2); }
body.staff .rn-head-act .rn-leave > summary { list-style: none; }
body.staff .rn-goal-warn { background: #f7f1ee; color: #6f4a40; }
body.staff .rn-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 4px 0 12px; }
body.staff .rn-facts > div { display: grid; } body.staff .rn-facts span:first-child { font-size: .8rem; color: var(--tx-2); }
body.staff .rn-profile { border-top: 1px solid var(--ln); padding-top: 10px; margin-top: 6px; }
body.staff .rn-score { display: flex; align-items: center; gap: 10px; margin: 4px 0 10px; }
body.staff .rn-bar { display: inline-flex; gap: 3px; } body.staff .rn-bar i { width: 22px; height: 8px; border-radius: 4px; background: #e8e5df; }
body.staff .rn-bar i.on { background: var(--ok-2); } body.staff .rn-bar i.half { background: linear-gradient(90deg, var(--ok-2) 50%, #e8e5df 50%); }
body.staff .rn-badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
body.staff .rn-badge { border: 1px solid var(--ln); border-radius: 10px; padding: 8px 10px; background: #fff; }
body.staff .rn-badge > summary { display: flex; justify-content: space-between; gap: 8px; cursor: pointer; list-style: none; }
body.staff .rn-badge > summary span { color: var(--tx-2); font-size: .85rem; } body.staff .rn-badge[open] { grid-column: 1 / -1; }
body.staff .rn-probs li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
body.staff .rn-prob-act { margin-left: auto; display: inline-flex; gap: 8px; align-items: center; }
body.staff .rn-serious > span:first-of-type { font-weight: 500; }
body.staff .rn-prices { max-width: 520px; }
body.staff .rn-more details { margin: 6px 0; }
/* Two signals (Janek, 23 Oct): satisfaction 1–5 and the chance they stay */
body.staff .rn-signals { display: grid; gap: 6px; margin: 4px 0 2px; }
body.staff .rn-signals .rn-score { margin: 0; display: grid; grid-template-columns: 150px auto 60px 1fr; align-items: center; gap: 10px; }
body.staff .rn-sig-k { font-size: .85rem; color: var(--tx-2); }
body.staff .rn-pct { display: inline-block; width: 122px; height: 8px; border-radius: 4px; background: #e8e5df; overflow: hidden; } body.staff .rn-pct i { display: block; height: 100%; background: var(--info-2); }
body.staff .rn-est { margin: 2px 0 10px; }
@media (max-width: 640px) { body.staff .rn-signals .rn-score { grid-template-columns: 1fr auto; } body.staff .rn-signals .rn-score .muted { grid-column: 1 / -1; } }
body.staff .rn-mails li { margin: 0 0 4px; }
body.staff .rn-letter.rn-hi { box-shadow: 0 0 0 2px var(--ok-2); }
body.staff .rn-fixq { display: grid; gap: 4px; padding: 8px 10px; background: var(--soft); border-radius: 8px; }
body.staff .rn-head-act { display: grid; gap: 6px; justify-items: end; }
body.staff .rn-owner { display: grid; gap: 4px; justify-items: end; text-align: right; }
body.staff .rn-owner details[open] { justify-self: stretch; }
body.staff .rn-live { color: var(--ok); margin: 0 0 6px; } body.staff .rn-fixq > span { display: block; margin-bottom: 4px; }
body.staff .rn-ghost { position: fixed; z-index: 1000; pointer-events: none; opacity: .9; box-shadow: 0 8px 24px rgba(0,0,0,.15); } body.staff .rn-board .bcard { -webkit-touch-callout: none; user-select: none; }
body.staff .rn-dialog [hidden], body.staff .rn-dialog label[hidden] { display: none !important; }
/* Renewal money table (option D) and "Kas tasub hoida" */
body.staff .rn-lens { display: flex; gap: 6px; margin: 4px 0 8px; } body.staff .rn-lens .pill { border: 1px solid var(--ln); border-radius: 999px; padding: 4px 12px; background: #fff; cursor: pointer; }
body.staff .rn-lens .pill.on { border-color: var(--ok-2); background: var(--ok-bg); }
body.staff .rn-keep { display: grid; grid-template-columns: 150px auto 60px 1fr; align-items: center; gap: 10px; margin: 4px 0 6px; }
body.staff .rn-tag { font-size: .72rem; background: var(--ok-bg); color: var(--ok); border-radius: 6px; padding: 1px 6px; margin-left: 4px; white-space: nowrap; }
body.staff .rn-tag-c { background: #f4f1ea; color: #6a5d40; }
body.staff .rn-prices td { vertical-align: top; }
@media (max-width: 640px) { body.staff .rn-keep { grid-template-columns: 1fr auto; } }
body.staff .rn-fixq label.check { display: flex; flex-direction: row; align-items: flex-start; gap: 8px; text-align: left; } body.staff .rn-fixq label.check input { flex: none; margin-top: 3px; width: auto; }
body.staff .rn-why-leave { margin: 4px 0 10px; } body.staff .rn-quote { font-style: italic; } body.staff .rn-calc-btn { font-weight: 500; text-decoration: underline; }
/* Tahvel: three signals on every card + three big numbers (Janek, 23 Oct) */
body.staff .rn-big { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 8px 0 12px; }
body.staff .rn-big .rn-trend { font-size: .8rem; color: var(--tx-2); font-variant-numeric: tabular-nums; }
body.staff .rn-big .rn-trend i { font-style: normal; font-weight: 600; } body.staff .rn-up { color: var(--ok); } body.staff .rn-down { color: #b4442f; }
body.staff .rn-since { margin: -4px 0 12px; }
body.staff .rn-big em .rn-debt { font-size: inherit; color: #b4442f; font-weight: 600; }
@media (max-width: 1000px) { body.staff .rn-big { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
body.staff .rn-big > div { background: #fff; border: 1px solid var(--ln); border-radius: 12px; padding: 12px 16px; display: grid; gap: 2px; }
body.staff .rn-big span { font-size: .85rem; color: var(--tx-2); } body.staff .rn-big b { font-size: 2rem; font-weight: 500; line-height: 1.1; } body.staff .rn-big small { font-size: 1rem; color: var(--tx-2); }
body.staff .rn-big em { font-style: normal; font-size: .78rem; color: var(--tx-2); }
@media (max-width: 640px) { body.staff .rn-big { grid-template-columns: 1fr; } }
body.staff .rn-mini { display: grid; gap: 2px; margin: 4px 0 2px; font-size: .78rem; }
body.staff .rn-mini > span { display: grid; grid-template-columns: 62px auto 1fr; align-items: center; gap: 6px; }
body.staff .rn-mini em { font-style: normal; color: var(--tx-2); } body.staff .rn-mini b { font-weight: 500; }
body.staff .rn-dots { display: inline-flex; gap: 2px; } body.staff .rn-dots i { width: 10px; height: 6px; border-radius: 3px; background: #e8e5df; }
body.staff .rn-dots i.on { background: var(--ok-2); } body.staff .rn-dots i.half { background: linear-gradient(90deg, var(--ok-2) 50%, #e8e5df 50%); }
body.staff .rn-minipct { display: inline-block; width: 58px; height: 6px; border-radius: 3px; background: #e8e5df; overflow: hidden; } body.staff .rn-minipct i { display: block; height: 100%; background: var(--info-2); }
/* Renewals card, cleaner step 1 (Janek, 23 Oct): the mail's next phase, four signal tiles, the call plan, folded details. */
body.staff .rn-hint { margin: 0 0 10px; }
body.staff .rn-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
body.staff .rn-tile { display: grid; gap: 4px; align-content: start; border: 1px solid #ebe8e2; border-radius: 8px; padding: 8px 10px; }
body.staff .rn-tile > span { font-size: .78rem; color: var(--tx-2); } body.staff .rn-tile b { font-weight: 500; font-size: 1.05rem; }
body.staff .rn-tile em { font-style: normal; font-size: .75rem; color: var(--tx-2); }
body.staff .rn-tile .rn-bar i { width: 14px; } body.staff .rn-tile .rn-pct { width: 100%; max-width: 110px; }
body.staff .rn-plan { background: var(--ok-bg); border-radius: 8px; padding: 10px 14px; margin: 0 0 12px; }
body.staff .rn-plan h3 { margin: 0 0 4px; font-size: .9rem; } body.staff .rn-plan p { margin: 4px 0; }
body.staff .rn-paywarn { border-radius: 6px; padding: 6px 8px; }
body.staff .rn-fold { border-top: 1px solid #ebe8e2; padding: 8px 0; } body.staff .rn-fold > summary { cursor: pointer; color: var(--tx-2); }
body.staff .rn-fold[open] > summary { margin-bottom: 6px; }
@media (max-width: 640px) { body.staff .rn-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Tagasiside (every app) + Arendus (Janek's board), 24 Oct 2026 — routes/tagasiside.js, routes/app/arendus.js */
body.staff .tk-form { display: flex; flex-direction: column; gap: 10px; }
body.staff .tk-form label { margin: 0; }
body.staff .tk-form input[type=text], body.staff .tk-form input:not([type]), body.staff .tk-form textarea, body.staff .tk-form select { width: 100%; font: inherit; }
body.staff .tk-form input[type=file] { width: 100%; padding: 8px; background: var(--soft); }
body.staff .tk-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
body.staff .tk-kindpick { margin: 0; cursor: pointer; }
body.staff .tk-kindpick input { position: absolute; opacity: 0; pointer-events: none; }
body.staff .tk-kindpick span { display: grid; gap: 2px; border: 1px solid var(--ln); border-radius: 10px; padding: 10px 12px; background: #fff; color: var(--tx); height: 100%; }
body.staff .tk-kindpick small { color: var(--tx-2); font-size: .78rem; }
body.staff .tk-kindpick input:checked + span { border-color: var(--char); background: var(--tint); box-shadow: inset 0 0 0 1px var(--char); }
body.staff .tk-kindpick input:focus-visible + span { outline: 2px solid var(--char); outline-offset: 2px; }
body.staff .tk-check { display: flex; gap: 8px; align-items: center; color: var(--tx); font-size: .9rem; }
body.staff .tk-check input { width: auto; flex: none; margin: 0; }
body.staff .tk-check code, body.staff .tk-h1 + p code { font-size: .8rem; word-break: break-all; }
body.staff .tk-hint { margin: -4px 0 0; }
body.staff .tk-previews { display: flex; flex-wrap: wrap; gap: 8px; }
body.staff .tk-previews:empty { display: none; }
body.staff .tk-previews span { display: inline-flex; align-items: center; font-size: .8rem; color: var(--tx-2); }
body.staff .tk-previews img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--ln); }
body.staff .tk-sec { margin: 0 0 28px; }
body.staff .tk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
body.staff .tk-item { display: grid; gap: 4px; background: #fff; border: 1px solid var(--ln); border-radius: 10px; padding: 12px 14px; text-decoration: none; color: var(--tx); }
body.staff .tk-item:hover { border-color: var(--tx); color: var(--tx); }
body.staff .tk-item.ask { border-color: var(--char); box-shadow: inset 3px 0 0 var(--char); }
body.staff .tk-line { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
body.staff .tk-kind, body.staff .tk-st { font-size: .74rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--ln); color: var(--tx); white-space: nowrap; vertical-align: middle; }
body.staff .tk-kind.k-bug { background: #f6e3de; color: #8d3b28; }
body.staff .tk-kind.k-idea { background: var(--info-bg); color: var(--info); }
body.staff .tk-kind.k-question { background: #efe9f6; color: #5a437e; }
body.staff .tk-st.s-new { background: var(--soft); color: var(--tx-2); }
body.staff .tk-st.s-planned, body.staff .tk-st.s-doing { background: var(--info-bg); color: var(--info); }
body.staff .tk-st.s-testing { background: var(--tint); color: var(--tint-tx); }
body.staff .tk-st.s-done { background: var(--ok-bg); color: var(--ok); }
body.staff .tk-st.s-declined { background: var(--soft); color: var(--tx-3); }
body.staff .tk-ans { border-left: 3px solid var(--char); padding-left: 10px; color: var(--tx); }
body.staff .tk-ask { color: var(--tint-tx); font-weight: 600; }
body.staff .tk-h1 { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 1.4rem; }
body.staff .tk-h1 .tk-kind, body.staff .tk-h1 .tk-st { font-size: .8rem; }
body.staff .tk-detail { white-space: pre-wrap; overflow-wrap: anywhere; }
body.staff .card .tk-detail { margin-top: 12px; }
body.staff .tk-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 0 0 16px; }
body.staff .tk-files a { display: flex; align-items: center; justify-content: center; min-height: 100px; background: #fff; border: 1px solid var(--ln); border-radius: 10px; overflow: hidden; text-decoration: none; }
body.staff .tk-files img { width: 100%; height: 160px; object-fit: contain; background: var(--soft); display: block; }
body.staff .tk-form > button, body.staff .tk-form > div > button { align-self: flex-start; }
body.staff .tk-test { border-color: var(--char); background: var(--tint); }
body.staff .tk-testform { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
body.staff .tk-testform input { flex: 1 1 200px; min-width: 0; }
body.staff .tk-evs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
body.staff .tk-ev { border-left: 2px solid var(--ln); padding-left: 10px; }
body.staff .tk-ev > div { white-space: pre-wrap; overflow-wrap: anywhere; }
body.staff .tk-ev.a-reply, body.staff .tk-ev.a-works { border-left-color: var(--char); }
body.staff .tk-ev.a-broken { border-left-color: #c8452f; }
body.staff .tk-ev.private { border-left-style: dashed; }
body.staff .tk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
body.staff .tk-grid h2 { margin-top: 0; }
body.staff .tk-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
body.staff .tk-note { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ln); }
body.staff .tk-brief { width: 100%; font: .78rem/1.45 ui-monospace, Menlo, monospace; background: var(--soft); margin-bottom: 8px; resize: vertical; }
body.staff .tk-board { grid-auto-columns: minmax(220px, 1fr); }
body.staff .tk-card.p-high { border-left: 3px solid #c8452f; }
body.staff .tk-card .tk-app { font-style: normal; font-size: .72rem; color: var(--tx-2); }
body.staff .tk-card i.tk-prio { background: #f6e3de; color: #8d3b28; }
body.staff .tk-declined { margin: 12px 0; } body.staff .tk-declined > summary { cursor: pointer; color: var(--tx-2); }
body.staff .tk-declined-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 8px; }
@media (max-width: 900px) { body.staff .tk-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { body.staff .tk-kinds { grid-template-columns: 1fr; } body.staff .tk-kindpick small { display: none; } }
/* LT contracts (own hub step 1, 23 Oct 2026): the guest's signing page (/stay/c/…) and the Leping card on a request. */
.lp-guest h1 { margin-bottom: 6px; }
.lp-terms { border: 1px solid var(--ln); border-radius: var(--r-md); padding: 6px 18px; margin: 18px 0; background: var(--card); }
.lp-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--ln); font-size: 15px; }
.lp-row:last-child { border-bottom: 0; }
.lp-row span { color: var(--tx-2); } .lp-row b { font-weight: 600; text-align: right; }
.lp-pdf { width: 100%; height: 70vh; min-height: 420px; border: 1px solid var(--ln); border-radius: var(--r-sm); margin: 4px 0 24px; background: var(--soft); }
@media (max-width: 640px) { .lp-pdf { display: none; } }
.lp-sign { border-top: 1px solid var(--ln); padding-top: 18px; display: grid; gap: 14px; }
.lp-sign h2 { font-size: 20px; margin: 0; }
.lp-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-tabs label { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--ln-2); border-radius: 999px; padding: 9px 16px; cursor: pointer; font-size: 15px; }
.lp-tabs label:has(input:checked) { border-color: var(--tx); background: var(--soft); }
.lp-name { display: grid; gap: 6px; font-size: 14px; color: var(--tx-2); }
.lp-name input { font: 400 17px var(--f); padding: 12px 14px; border: 1px solid var(--ln-2); border-radius: var(--r-sm); color: var(--tx); }
.lp-typed-preview { font: italic 400 30px Georgia, "Times New Roman", serif; min-height: 40px; margin: 0; color: var(--tx); border-bottom: 1px solid var(--ln-2); padding-bottom: 4px; }
.lp-draw { display: grid; gap: 8px; justify-items: start; }
.lp-draw canvas { width: 100%; max-width: 600px; aspect-ratio: 3 / 1; border: 1px dashed var(--ln-2); border-radius: var(--r-sm); background: #fff; touch-action: none; cursor: crosshair; }
.lp-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.lp-agree input { margin-top: 3px; width: 18px; height: 18px; }
.lp-err { color: #a4372a; margin: 0; }
.lp-go { justify-self: start; }
.lp-go:disabled { opacity: .6; cursor: default; }
body.staff .lp-fields label { display: grid; gap: 4px; font-size: .86rem; }
body.staff #leping h4 { margin: 14px 0 4px; }
body.staff .lp-fields label { display: flex; flex-direction: column; justify-content: flex-end; }
.lp-tabs label { white-space: nowrap; }
.lp-tabs input, .lp-agree input { width: auto; flex: 0 0 auto; }
.lp-draw[hidden], .lp-typed-preview[hidden], .lp-err[hidden], .lp-differs[hidden], .lp-go[hidden] { display: none; }
.lp-differs { border: 1px solid #f0d48a; background: #fff6e0; color: #5c4300; border-radius: var(--r-sm); padding: 14px 16px; display: grid; gap: 12px; }
.lp-differs p { margin: 0; font-size: 15px; }
.lp-differs-go { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-typed-preview { font: 400 28px var(--f); font-style: normal; }
/* Sign in with Microsoft (26 Oct 2026, core/signin.js): one wide button; the local-only test sign-in below a line. */
.login-card .ms-signin { display: block; text-align: center; margin: 14px 0 6px; }
.login-card .test-signin { border-top: 1px dashed var(--ln, #ccd); margin-top: 18px; padding-top: 12px; }

/* Renewals Tahvel (Janek, 26 Oct): the search right above the columns; the Jääb % sort in the Uus column's header. */
body.staff .rn-search { margin: 4px 0 10px; } body.staff .rn-search input { width: 100%; max-width: 420px; }
body.staff .rn-board .bcol header { flex-wrap: wrap; } body.staff .rn-colsort { flex-basis: 100%; margin: 4px 0 0; } body.staff .rn-colsort select { font-size: .78rem; padding: 2px 4px; }
body.staff .rn-board .bcard[hidden] { display: none; }
body.staff .rn-plan-warn { background: #f7f1ee; } body.staff .rn-due { color: #6f4a40; }

/* ─── Küsi (core/kusi/): the button on every app's top bar and its side panel, as in larsen-accounting ─── */
body.staff .staff-topbar { display: flex; justify-content: flex-end; margin: -10px 0 10px; }
body.staff .kusi-btn { font: 600 .9rem var(--f); color: var(--tint-tx); background: var(--tint); border: 1px solid var(--tint-2); border-radius: 999px; padding: 6px 16px; cursor: pointer; white-space: nowrap; }
body.staff .kusi-btn:hover { background: var(--tint-2); }
body.staff .kusi-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); background: #fff; border-left: 1px solid var(--ln);
  box-shadow: -8px 0 30px rgba(31,30,28,.08); display: flex; flex-direction: column; z-index: 60; color: var(--tx); }
body.staff .kusi-panel[hidden] { display: none; }
body.staff .kusi-panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--ln); }
body.staff .kusi-panel-head h3 { margin: 0; font-size: 1rem; } body.staff .kusi-panel-head .grow { flex: 1; }
body.staff .kusi-tabs { display: flex; gap: 2px; background: var(--soft); border: 1px solid var(--ln); border-radius: 999px; padding: 2px; }
body.staff .kusi-tab { font: 600 .82rem var(--f); border: 0; background: none; color: var(--tx-2); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
body.staff .kusi-tab.on { background: #fff; color: var(--tint-tx); box-shadow: 0 1px 2px rgba(31,30,28,.08); }
body.staff .kusi-note[hidden] { display: none; }
body.staff .kusi-steps { margin: 6px 0 0; }
body.staff .kusi-a .kusi-table { overflow-x: auto; margin: 0 0 8px; } body.staff .kusi-a table { border-collapse: collapse; font-size: .85rem; }
body.staff .kusi-a th, body.staff .kusi-a td { border-bottom: 1px solid var(--ln); padding: 4px 8px; text-align: left; } body.staff .kusi-a th { font-weight: 600; background: var(--soft); }
body.staff .kusi-note { margin: 0; padding: 8px 16px; font-size: .78rem; line-height: 1.45; color: var(--tx-2); border-bottom: 1px solid var(--ln); background: var(--soft); }
body.staff .kusi-body { flex: 1; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 14px; }
body.staff .kusi-turn { display: flex; flex-direction: column; gap: 8px; }
body.staff .kusi-q { align-self: flex-end; max-width: 85%; background: var(--tint); color: var(--tint-tx); border-radius: 12px 12px 4px 12px; padding: 8px 12px; white-space: pre-wrap; font-weight: 500; }
body.staff .kusi-a { line-height: 1.55; font-size: .92rem; }
body.staff .kusi-a h4 { margin: 10px 0 4px; font-size: .95rem; } body.staff .kusi-a p { margin: 0 0 8px; } body.staff .kusi-a ul, body.staff .kusi-a ol { margin: 0 0 8px; padding-left: 20px; }
body.staff .kusi-wait { color: var(--tx-2); font-style: italic; }
body.staff .kusi-mark a { color: var(--char-2); text-decoration: none; font-weight: 600; padding: 0 1px; }
body.staff .kusi-sources { border-top: 1px solid var(--ln); margin: 10px 0 0; padding: 8px 0 0 20px; font-size: .82rem; }
body.staff .kusi-sources blockquote { margin: 6px 0; padding: 6px 10px; border-left: 3px solid var(--tint-2); background: var(--soft); color: var(--tx-2); font-size: .8rem; white-space: pre-wrap; }
body.staff .kusi-sources li:target { background: var(--tint); border-radius: 6px; }
body.staff .kusi-rate { margin-top: 8px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
body.staff .kusi-rate .btn.on { background: var(--tint); border-color: var(--char); color: var(--tint-tx); }
body.staff .kusi-ex { display: flex; flex-direction: column; gap: 6px; }
body.staff .kusi-ex .btn { text-align: left; white-space: normal; font-weight: 500; }
body.staff .kusi-panel-form { border-top: 1px solid var(--ln); padding: 10px 16px 14px; display: flex; gap: 8px; align-items: flex-end; }
body.staff .kusi-panel-form textarea { flex: 1; resize: none; min-height: 42px; max-height: 140px; border: 1px solid var(--ln-2); border-radius: 10px; padding: 8px; font: inherit; }
/* The guide pages and Janek's log (/app/kusi/allikas, /app/kusi/logi) */
body.staff .kusi-doc { white-space: pre-wrap; font-size: .85rem; line-height: 1.5; overflow-x: auto; }
body.staff .kusi-log details { margin: 10px 0; } body.staff .kusi-log summary { cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 600px) { body.staff .kusi-panel { width: 100vw; } }
/* Päringud in Renewals' format (Janek, 27 Oct 2026): the rn-page font, tabs, three big numbers, search on its own line,
   cards with three fact rows where Renewals has its four signals. */
body.staff .rq-board { grid-auto-columns: minmax(220px, 1fr); }
body.staff .rq-page .bcard b { overflow-wrap: anywhere; }
body.staff .rn-mini.rq-facts > span { grid-template-columns: 62px minmax(0, 1fr); }
body.staff .rn-mini.rq-facts b { overflow-wrap: anywhere; }
body.staff .rq-page .bfoot b, body.staff .rq-page .bfoot strong, body.staff .rq-page .timer, body.staff .rq-page .bcard .timer.late { font-weight: 500; }
body.staff .rq-search { margin: 0 0 12px; } body.staff .rq-search input { width: 100%; max-width: 420px; }
body.staff .rq-stages { flex-wrap: wrap; margin: 4px 0 8px; } body.staff .rq-stages i { color: var(--tx-3); }
/* Smartbox: the resident's four signals from Renewals in the client column (27 Oct). */
.sb-signals .rn-mini { margin: 0; font-size: .82rem; }

/* ─── Staff menu: one fold per department (core/render.js, 28 Oct 2026) ─── */
body.staff .nav-group summary { list-style: none; cursor: pointer; color: var(--tx); padding: 10px 14px; border-radius: 12px; font-size: .95rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
body.staff .nav-group summary::-webkit-details-marker { display: none; }
body.staff .nav-group summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 1.5px solid var(--tx-3); border-bottom: 1.5px solid var(--tx-3); transform: rotate(-45deg); transition: transform .15s; }
body.staff .nav-group[open] summary::after { transform: rotate(45deg); }
body.staff .nav-group summary:hover { background: var(--soft); }
body.staff .nav-group[open] { padding-bottom: 4px; }
body.staff .nav-group a { padding: 8px 14px 8px 26px; font-size: .92rem; }
body.staff .nav-group[open] summary .count { display: none; }
@media (max-width: 860px) { body.staff .nav-group { flex: 1 1 100%; } body.staff .nav-group[open] { display: flex; flex-wrap: wrap; } body.staff .nav-group[open] summary { flex: 1 1 100%; } }

/* ─── Ülevaade: the management view (core/routes/overview.js, 28 Oct 2026) ─── */
body.staff .ov-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
body.staff .ov-head h1 { margin: 4px 0 12px; }
body.staff .ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; }
body.staff .ov-p { background: #fff; border: 1px solid var(--ln); border-radius: var(--radius); padding: 18px 22px 20px; }
body.staff .ov-p header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
body.staff .ov-p h2 { margin: 0; font-size: 1.05rem; }
body.staff .ov-o { color: var(--tx-3); font-size: .82rem; }
body.staff .ov-p header a { margin-left: auto; font-size: .85rem; color: var(--tint-tx); text-decoration: none; white-space: nowrap; }
body.staff .ov-p header a:hover { text-decoration: underline; }
body.staff .ov-ms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
body.staff .ov-m { padding: 0 16px; border-left: 1px solid var(--ln); min-width: 0; }
body.staff .ov-m:first-child { padding-left: 0; border-left: 0; }
body.staff .ov-v { font-size: 1.85rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; color: var(--tx); }
body.staff .ov-m.good .ov-v { color: var(--tint-tx); }
body.staff .ov-m.warn .ov-v { color: #a8650a; }
body.staff .ov-m.bad .ov-v { color: #b8432a; }
body.staff .ov-l { font-size: .84rem; color: var(--tx-2); margin-top: 4px; line-height: 1.35; }
body.staff .ov-n { font-size: .78rem; color: var(--tx-3); margin-top: 6px; line-height: 1.35; }
@media (max-width: 560px) {
  body.staff .ov-grid { grid-template-columns: 1fr; }
  body.staff .ov-ms { grid-template-columns: 1fr; gap: 14px; }
  body.staff .ov-m { padding: 0; border-left: 0; }
}
/* Cleaners' code sign-in (28 Oct 2026, core/codelogin.js) */
.login-card .hk-code { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.login-card .hk-code h2 { font-size: 1.05rem; margin: 0; }
.login-card .hk-code input { width: 100%; font-size: 1.05rem; }
.login-card .hk-code input[name="code"] { letter-spacing: 6px; font-size: 1.4rem; text-align: center; }
.login-card hr { border: 0; border-top: 1px solid var(--ln, #dde); margin: 18px 0 8px; }
/* Koristus → Seaded: who the cleaners are and where each stands with the app */
body.hk .hk-team td { vertical-align: middle; }
body.hk .hk-team form { margin: 0; }
/* Erik's test view (/koristus/proovi) */
body.hk .hk-demo { background: #fff7e0; border-bottom: 1px solid #f0d58a; color: #6b5300; padding: 8px 16px; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
body.hk .hk-demo form { margin: 0; display: inline; }

/* An error pinned to the screen (public/app.js; Janek, 30 Oct 2026: errors at the top of the page were missed). */
body.staff .err-pin { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 1000; width: min(560px, calc(100vw - 32px));
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 10px; align-items: start; padding: 12px 14px;
  background: #fdecea; color: #8a1c12; border: 2px solid #d93b2b; border-radius: 12px; box-shadow: 0 8px 28px rgba(31,30,28, .22);
  font-family: var(--f); font-size: .92rem; line-height: 1.4; overflow-wrap: anywhere; }
body.staff .err-pin button { border: 0; background: none; color: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0 2px; }
body.staff .sb-comp .send-err { margin: 0; border-radius: 0; border-width: 2px 0 0; font-weight: 600; }

/* Turundus (modules/marketing/routes/turundus.js, 30 Oct 2026): the idea board and the house tables. */
body.staff .mk-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
body.staff .mk-cols h3 { margin: 0 0 10px; font-size: .95rem; }
body.staff .mk-card { border: 1px solid var(--ln); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 10px; background: #fff; display: grid; gap: 6px; }
body.staff .mk-card header { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: baseline; }
body.staff .mk-card p { margin: 0; font-size: .92rem; }
body.staff .mk-card .tag { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--char); border: 1px solid var(--char); border-radius: 999px; padding: 1px 7px; }
body.staff .mk-act { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
body.staff .mk-act input[type=text], body.staff .mk-act input:not([type]), body.staff .mk-act select, body.staff .mk-act input[type=date] { padding: 4px 8px; font-size: .85rem; }
body.staff .mk-act input:not([type]) { flex: 1 1 160px; }
body.staff .mk-act input.mk-share { flex: 0 0 4.5em; width: 4.5em; text-align: right; }
body.staff .mk-tools { display: flex; gap: 8px; flex-wrap: wrap; }
body.staff .mk-summary { white-space: pre-wrap; font-size: 1rem; line-height: 1.5; }
body.staff .mk-form { display: grid; gap: 8px; grid-template-columns: 2fr 1fr 1fr; margin-top: 10px; }
body.staff .mk-form textarea, body.staff .mk-form button { grid-column: 1 / -1; }
body.staff .mk-form button { justify-self: start; }
body.staff .mk-house { margin: 10px 0; }
body.staff .mk-house summary { cursor: pointer; padding: 6px 0; }
body.staff .mk-house td, body.staff .mk-house th { white-space: nowrap; }
body.staff .mk-posts-wrap td, body.staff .mk-posts-wrap th { white-space: normal; }
body.staff .mk-posts td:nth-child(5) { max-width: 420px; }
body.staff .mk-posts td:nth-child(-n+4), body.staff .mk-posts th { white-space: nowrap; }
body.staff .mk-posts td:nth-child(n+6), body.staff .mk-posts th:nth-child(n+6) { text-align: right; white-space: nowrap; }
body.staff .mk-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 24px; }
body.staff .mk-two ul { margin: 6px 0 10px; padding-left: 18px; }
body.staff .mk-two li { margin: 2px 0; font-size: .92rem; }
/* ── Võlglased (/app/volad; modules/finance/debtors/, 30 Oct 2026): the board by step, today's list, the card ── */
body.staff .vl-big { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 0 0 16px; }
body.staff .vl-big > div { background: #fff; border: 1px solid var(--ln); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
body.staff .vl-big > div > span { font-size: .78rem; color: var(--tx-2); text-transform: uppercase; letter-spacing: .04em; }
body.staff .vl-big > div > b { font-size: 1.5rem; font-weight: 600; } body.staff .vl-big b.vl-step { font-size: 1rem; }
body.staff .vl-big > div > em { font-style: normal; font-size: .8rem; color: var(--tx-2); } body.staff .vl-big .vl-trend { font-size: .78rem; color: var(--tx-3); }
body.staff .vl-bad { color: #b4232c; }
body.staff .vl-cols { display: grid; grid-template-columns: repeat(8, minmax(190px, 1fr)); gap: 10px; overflow-x: auto; align-items: start; }
body.staff .vl-cat { display: inline-block; font-size: .72rem; border-radius: 999px; padding: 1px 8px; background: var(--soft); color: var(--tx-2); }
body.staff .vl-cat-raskustes, body.staff .vl-cat-vaidleb { background: #fff3e0; color: #8a4b00; } body.staff .vl-cat-lahkuja { background: #fde8e8; color: #9b1c1c; }
body.staff .vl-cat-eksinud { background: var(--ok-bg); color: var(--ok); } body.staff .vl-cat-none { background: transparent; border: 1px dashed var(--ln-2); }
body.staff .vl-why { font-size: .8rem; color: var(--tx-2); } body.staff .vl-why.vl-due { color: #8a4b00; font-weight: 600; }
body.staff .vl-today { display: grid; gap: 8px; } body.staff .vl-count { margin: 0 0 10px; color: var(--tx-2); }
body.staff .vl-row { display: grid; grid-template-columns: 1.2fr 2fr auto; gap: 12px; align-items: start; background: #fff; border: 1px solid var(--ln); border-radius: 10px; padding: 10px 14px; color: inherit; text-decoration: none; }
body.staff .vl-row:hover { border-color: var(--tx); } body.staff .vl-row-name { display: grid; } body.staff .vl-row-lines { display: grid; gap: 2px; font-size: .88rem; }
body.staff .vl-row-lines i, body.staff .vl-todo i { font-style: normal; font-size: .72rem; background: var(--soft); border-radius: 999px; padding: 1px 7px; margin-left: 4px; color: var(--tx-2); }
body.staff .vl-row-who { font-size: .85rem; color: var(--tx-2); white-space: nowrap; }
body.staff .vl-two { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; align-items: start; } @media (max-width: 900px) { body.staff .vl-two { grid-template-columns: 1fr; } }
body.staff .vl-todo { border-left: 4px solid #d97706; } body.staff .vl-todo ul { margin: 0; padding-left: 18px; }
body.staff .vl-actions details { border-top: 1px solid var(--ln); padding: 8px 0; } body.staff .vl-actions summary { cursor: pointer; font-weight: 600; font-size: .92rem; }
body.staff .vl-actions .stack { display: grid; gap: 8px; margin-top: 8px; } body.staff .vl-actions form.inline { margin: 6px 6px 0 0; }
body.staff .vl-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; } body.staff .vl-events li span { display: block; }
body.staff .vl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; } body.staff .vl-mini h3 { margin: 0 0 6px; }
body.staff .table td.num { text-align: right; white-space: nowrap; } body.staff tr.vl-over td { color: #9b1c1c; }
body.staff .vl-rules .row label { display: grid; gap: 4px; font-size: .88rem; } body.staff .vl-rules input { max-width: 120px; }
body.staff .vl-hist { margin: 12px 0; } body.staff .vl-agents { border-left: 4px solid var(--char); }
/* Võlglased agents (Ülevaade tab, the card's morning line and letter draft; 30 Oct 2026) */
body.staff .vl-agents-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; } body.staff .vl-agents-head h3 { margin: 0; }
body.staff .vl-runs { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; flex-wrap: wrap; font-size: .88rem; } body.staff .vl-runs form.inline { margin: 0; }
body.staff .vl-seis { font-size: 1rem; margin: 10px 0 6px; } body.staff .vl-lines { margin: 0 0 10px; padding-left: 18px; font-size: .9rem; color: var(--tx-2); }
body.staff .vl-spend { display: grid; gap: 4px; border-top: 1px solid var(--ln); padding-top: 10px; font-size: .9rem; }
body.staff .vl-bar { display: block; height: 6px; background: var(--soft); border-radius: 999px; overflow: hidden; } body.staff .vl-bar i { display: block; height: 100%; background: var(--char); }
body.staff .vl-spend-warn .vl-bar i { background: #d97706; } body.staff .vl-spend-stop .vl-bar i { background: #b4232c; } body.staff .vl-spend-stop { color: #9b1c1c; }
body.staff .vl-advice { border-top: 1px solid var(--ln); padding: 10px 0; display: grid; gap: 4px; } body.staff .vl-advice:first-of-type { border-top: 0; }
body.staff .vl-advice p { margin: 0; } body.staff .vl-decide { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; } body.staff .vl-decide form.inline { margin: 0; display: inline-flex; gap: 4px; }
body.staff .vl-decide input { padding: 4px 8px; border: 1px solid var(--ln-2); border-radius: 6px; font-size: .85rem; min-width: 160px; }
body.staff .vl-kind { font-size: .72rem; border-radius: 999px; padding: 1px 8px; background: var(--soft); color: var(--tx-2); }
body.staff .vl-kind-rule { background: #fff3e0; color: #8a4b00; } body.staff .vl-kind-prevention { background: var(--ok-bg); color: var(--ok); } body.staff .vl-kind-category { background: #eef2ff; color: #3730a3; }
body.staff .vl-agentline { border-left: 4px solid var(--char); }
body.staff .vl-letter { white-space: pre-wrap; font: inherit; font-size: .9rem; background: var(--soft); border-radius: 8px; padding: 10px 12px; margin: 6px 0; }
/* Võlglased step 2 (31 Oct 2026): the three facts, Smartbox-style card, Täna saata, the texts */
body.staff .vl-facts { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0; }
body.staff .vl-f { font-size: .72rem; border-radius: 999px; padding: 1px 8px; background: var(--soft); color: var(--tx-2); white-space: nowrap; }
body.staff .vl-f-ok { background: var(--ok-bg); color: var(--ok); } body.staff .vl-f-warn { background: #fff3e0; color: #8a4b00; } body.staff .vl-f-bad { background: #fde8e8; color: #9b1c1c; } body.staff .vl-f-muted { background: transparent; border: 1px dashed var(--ln-2); color: var(--tx-3); }
body.staff .vl-facts3 { display: grid; gap: 6px; margin: 10px 0 4px; } body.staff .vl-facts3 > div { display: grid; grid-template-columns: 64px 1fr; gap: 6px; align-items: baseline; padding: 6px 8px; border-radius: 8px; background: var(--soft); }
body.staff .vl-facts3 span { font-size: .75rem; color: var(--tx-2); text-transform: uppercase; letter-spacing: .03em; } body.staff .vl-facts3 b { font-size: .92rem; }
body.staff .vl-facts3 .vl-f-ok { background: var(--ok-bg); } body.staff .vl-facts3 .vl-f-warn { background: #fff3e0; } body.staff .vl-facts3 .vl-f-bad { background: #fde8e8; } body.staff .vl-facts3 .vl-f-muted b { color: var(--tx-3); font-weight: 500; }
body.staff .vl-next { border: 1px solid var(--ln); border-left: 4px solid #d97706; border-radius: 10px; padding: 10px 14px; display: grid; gap: 4px; } body.staff .vl-next p { margin: 0; } body.staff .vl-next > div b { font-size: 1rem; }
body.staff .vl-comp.vl-sms .vl-if-mail, body.staff #vl-comp.vl-sms .vl-if-mail { display: none; } body.staff #vl-comp:not(.vl-sms) .vl-if-sms { display: none; }
body.staff #vl-comp .send { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line, var(--ln)); }
body.staff #vl-comp .sig { white-space: pre-wrap; font-size: .85rem; color: var(--tx-2); padding: 8px 12px; border-top: 1px dashed var(--ln); }
body.staff .vl-tl-in { border-left: 3px solid var(--char); } body.staff .vl-tl-out { border-left: 3px solid #4f46e5; } body.staff .vl-tl-act { border-left: 3px solid #d97706; } body.staff .vl-tl-sys { opacity: .8; }
body.staff .vl-q { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 12px; background: #fff; border: 1px solid var(--ln); border-radius: 10px; padding: 10px 14px; }
@media (max-width: 800px) { body.staff .vl-q { grid-template-columns: 1fr; } }
body.staff .vl-q-who { display: grid; gap: 3px; align-content: start; } body.staff .vl-q-msgs { display: grid; gap: 8px; } body.staff .vl-q-msg { border-top: 1px solid var(--ln); padding-top: 6px; } body.staff .vl-q-msg:first-child { border-top: 0; padding-top: 0; }
body.staff .vl-ch { font-size: .72rem; border-radius: 6px; padding: 1px 6px; background: #eef2ff; color: #3730a3; } body.staff .vl-ch-sms { background: #fef3c7; color: #92400e; }
body.staff .vl-tpl summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } body.staff .vl-tpl-langs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 10px; }
body.staff .vl-tpl textarea, body.staff .vl-tpl input { width: 100%; font: inherit; padding: 8px; border: 1px solid var(--ln-2); border-radius: 8px; } body.staff .vl-tpl h4 { margin: 0; }
body.staff .bcol header small { display: block; font-size: .72rem; }
body.staff .sb-t .vl-f { white-space: normal; } body.staff .sb-t .vl-facts { margin-top: 3px; }
/* Võlglased after the UX review (31 Oct 2026): Täna's one-line actions, the card's to-do and call box, Tulemus, Otsused */
body.staff .vl-dolist { display: grid; gap: 6px; margin: 10px 0 16px; }
body.staff .vl-h { margin: 18px 0 6px; font-size: 1.05rem; }
body.staff .vl-cluster { margin: 12px 0; display: grid; gap: 8px; } body.staff .vl-people { display: grid; gap: 4px; margin: 8px 0; max-height: 360px; overflow: auto; }
body.staff .vl-person { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; border-bottom: 1px solid var(--ln); } body.staff .vl-person .vl-f { margin-top: 2px; } body.staff .vl-person input[type=checkbox] { width: auto; flex: none; } body.staff .vl-sentline { display: flex; flex-wrap: wrap; gap: 4px; } body.staff .vl-st-done, body.staff .vl-st-nocontact, body.staff .vl-st-nothing { opacity: .7; } body.staff tr.vl-row-bad td { background: #fdf3f3; } body.staff .vl-pv pre.vl-letter { white-space: pre-wrap; margin: 4px 0 8px; }
body.staff .vl-bulk { margin: 10px 0; } body.staff .vl-bulk ul { margin: 6px 0 0 18px; }
body.staff .vl-do { display: grid; grid-template-columns: minmax(200px, 1.1fr) 2fr auto; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--ln); border-radius: 10px; padding: 8px 12px; }
@media (max-width: 860px) { body.staff .vl-do { grid-template-columns: 1fr; } }
body.staff .vl-do-k { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-radius: 6px; padding: 3px 6px; text-align: center; background: var(--soft); color: var(--tx-2); }
body.staff .vl-do-reply .vl-do-k { background: #e0e7ff; color: #3730a3; } body.staff .vl-do-restore .vl-do-k { background: #fde8e8; color: #9b1c1c; }
body.staff .vl-do-promise .vl-do-k, body.staff .vl-do-instalment .vl-do-k { background: #fff3e0; color: #8a4b00; } body.staff .vl-do-code .vl-do-k { background: #fef3c7; color: #92400e; }
body.staff .vl-do-message .vl-do-k { background: var(--ok-bg); color: var(--ok); } body.staff .vl-do-who { display: grid; gap: 2px; } body.staff .vl-do-btn { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; } body.staff .vl-do-btn form { margin: 0; }
body.staff .vl-next-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 4px 0; } body.staff .vl-next-row form { margin: 0; }
body.staff .vl-call { border: 1px solid var(--ln); border-radius: 10px; padding: 10px 14px; display: grid; gap: 6px; } body.staff .vl-call form.stack { display: grid; gap: 8px; margin: 0; }
body.staff .vl-outcomes { display: flex; flex-wrap: wrap; gap: 6px; } body.staff .vl-outcomes label { border: 1px solid var(--ln-2); border-radius: 999px; padding: 3px 10px; font-size: .85rem; cursor: pointer; }
body.staff .vl-outcomes input { margin-right: 4px; } body.staff .vl-outcomes label:has(input:checked) { background: var(--ok-bg); border-color: var(--teal, var(--ok)); }
body.staff .vl-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 10px 0 16px; }
body.staff .vl-tile { background: #fff; border: 1px solid var(--ln); border-radius: 12px; padding: 16px 18px; display: grid; gap: 4px; }
body.staff .vl-tile span { font-size: .8rem; color: var(--tx-2); text-transform: uppercase; letter-spacing: .04em; } body.staff .vl-tile b { font-size: 1.9rem; font-weight: 600; } body.staff .vl-tile em { font-style: normal; font-size: .85rem; color: var(--tx-2); }
body.staff .vl-up { color: var(--ok); font-style: normal; } body.staff .vl-down { color: #b4232c; font-style: normal; }
body.staff .vl-qns { display: grid; gap: 10px; margin: 12px 0; } body.staff .vl-qn { background: #fff; border: 1px solid var(--ln); border-left: 4px solid var(--char); border-radius: 10px; padding: 12px 14px; display: grid; gap: 6px; } body.staff .vl-qn p { margin: 0; }
body.staff .vl-foot { border-top: 1px solid var(--ln); padding-top: 10px; margin-top: 20px; } body.staff .vl-foot form.inline { margin: 0; display: inline; }
/* Võlglased almost automatic (31 Oct 2026): the analyst's line, ready texts, AI kirjuta, tasks, knowledge base */
body.staff .vl-an { border: 1px solid var(--ln); border-left: 4px solid #4f46e5; border-radius: 10px; padding: 10px 14px; display: grid; gap: 4px; }
body.staff .vl-an-row { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; } body.staff .vl-an form.inline { margin: 0; display: inline; }
body.staff .vl-an-line { display: block; font-size: .82rem; color: var(--tx-2); margin-top: 3px; } body.staff .vl-an-line .vl-f { margin-right: 4px; }
body.staff .vl-pre summary { cursor: pointer; font-size: .85rem; margin-top: 4px; } body.staff .vl-pre .vl-letter { max-height: 260px; overflow: auto; }
body.staff .vl-ask { display: grid; gap: 4px; padding: 8px 12px; border-bottom: 1px solid var(--ln); background: #f8f7ff; }
body.staff .vl-ask form { display: flex; gap: 8px; align-items: flex-end; margin: 0; } body.staff .vl-ask textarea { flex: 1; font: inherit; font-size: .88rem; padding: 6px 8px; border: 1px solid var(--ln-2); border-radius: 8px; }
/* The other half of a step's pair: the SMS under the email (or the email under the SMS), sent in the same press (2 Nov 2026). */
body.staff .vl-pair { border-top: 1px dashed var(--ln-2); background: var(--tint); } body.staff .vl-pair[hidden] { display: none; }
body.staff .vl-pair label { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px; align-items: center; padding: 8px 12px 4px; margin: 0; text-align: left; } body.staff .vl-pair label input[type=checkbox] { width: auto; flex: 0 0 auto; margin: 0; } body.staff .vl-pair label > * { width: auto; white-space: nowrap; } body.staff .vl-pair .fld { width: 100%; padding: 6px 12px; border: 0; border-bottom: 1px solid var(--ln); background: none; font: inherit; }
body.staff .vl-pair textarea { min-height: 90px; background: var(--tint); } body.staff .vl-pair :disabled { opacity: .45; }
body.staff .vl-kb { background: #fff; border: 1px solid var(--ln); border-radius: 10px; padding: 10px 14px; margin: 0 0 8px; display: grid; gap: 4px; } body.staff .vl-kb p { margin: 0; } body.staff .vl-kb form { margin: 0; }
body.staff .vl-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } @media (max-width: 700px) { body.staff .vl-ba { grid-template-columns: 1fr; } }
body.staff a.vl-do { color: inherit; text-decoration: none; } body.staff a.vl-do:hover { border-color: var(--tx); }
body.staff .vl-do-lock .vl-do-k, body.staff .vl-do-register .vl-do-k { background: #fde8e8; color: #9b1c1c; } body.staff .vl-do-task .vl-do-k { background: var(--soft); }

/* ─── /filmi: the camera person's page (modules/marketing/routes/filmi.js, 31 Oct 2026). Phone first, the /koristus shell. ─── */
body.fm .hk-main { max-width: 640px; margin: 0 auto; padding: 16px; }
body.fm h1 { font-size: 1.35rem; margin: 6px 0 12px; line-height: 1.25; }
body.fm h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tx-2); margin: 22px 0 8px; }
.fm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.fm-credit { font-size: .85rem; color: var(--tx-2); }
.fm-credit b { color: var(--tx); }
.fm-list { display: grid; gap: 10px; }
.fm-task { display: grid; gap: 6px; padding: 14px 16px; background: #fff; border: 1px solid var(--ln); border-radius: 12px; color: inherit; text-decoration: none; }
.fm-task:active { background: var(--tint); }
.fm-task b { font-size: 1rem; line-height: 1.3; }
.fm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fm-chip { font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: var(--panel); color: var(--tx-2); white-space: nowrap; }
.fm-chip.ok { background: var(--ok-bg); color: var(--ok); }
.fm-chip.bad { background: #fbe7e2; color: #c8452f; }
.fm-empty { padding: 32px 0; text-align: center; }
.fm-back { display: inline-block; margin-bottom: 10px; font-size: .9rem; }
.fm-shots { margin: 0; padding-left: 22px; display: grid; gap: 8px; font-size: 1rem; line-height: 1.4; }
.fm-up { display: grid; gap: 10px; margin: 22px 0 6px; padding: 16px; background: #fff; border: 1px solid var(--ln); border-radius: 12px; }
.fm-pick { position: relative; display: grid; place-items: center; min-height: 64px; border: 2px dashed var(--ln); border-radius: 10px; color: var(--char); font-weight: 600; cursor: pointer; }
.fm-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fm-picked { white-space: pre-line; }
.fm-picked:empty { display: none; }
body.fm .fm-check { display: flex; flex-direction: row; justify-content: flex-start; gap: 10px; align-items: center; font-size: .95rem; margin: 0; }
body.fm .fm-check input { width: 20px; height: 20px; flex: 0 0 20px; margin: 0; }
.fm-up .btn { min-height: 46px; font-size: 1rem; }
.fm-bar { height: 6px; background: var(--panel); border-radius: 999px; overflow: hidden; }
.fm-bar i { display: block; height: 100%; width: 0; background: var(--char); transition: width .2s; }
.fm-clips { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fm-clip { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: start; }
.fm-clip video, .fm-clip img { width: 112px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; background: #111; }
.fm-clip > div { display: grid; gap: 4px; justify-items: start; }
.fm-clip p { margin: 0; font-size: .9rem; }
/* The review on /app/marketing/klipid */
body.staff .mk-clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
body.staff .mk-clip { border: 1px solid var(--ln); border-radius: var(--radius); background: #fff; overflow: hidden; display: grid; }
body.staff .mk-clip video, body.staff .mk-clip img { width: 100%; aspect-ratio: 9 / 16; max-height: 420px; object-fit: contain; background: #111; display: block; }
body.staff .mk-clip .body { padding: 10px 12px; display: grid; gap: 6px; font-size: .88rem; }
body.staff .mk-clip form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
body.staff .mk-clip input[name=credit] { width: 70px; }
body.staff .mk-clip input[name=note] { flex: 1 1 120px; }
/* Postitused, the content producer's drafts (modules/marketing/content.js, 31 Oct 2026) */
body.staff .mk-draft { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--ln); }
body.staff .mk-draft:first-of-type { border-top: 0; }
body.staff .mk-draft-media { display: grid; gap: 8px; align-content: start; }
body.staff .mk-draft-media video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: #111; }
body.staff .mk-draft-body { display: grid; gap: 8px; align-content: start; }
body.staff .mk-draft-body header { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
body.staff .mk-draft-body textarea { width: 100%; font: inherit; line-height: 1.45; }
/* Phase 3 (9 Nov 2026): a new ad text's versions and a follow-up email text, inside the Posts cards. */
body.staff .mk-draft.mk-one { grid-template-columns: 1fr; }
body.staff .mk-draft-body label.mk-pick { display: flex; gap: 6px; align-items: center; font-weight: 600; }
body.staff .mk-draft-body label.mk-pick > input { width: auto; margin: 0; }
body.staff .mk-version { display: grid; gap: 6px; border-top: 1px solid var(--ln); padding-top: 8px; }
body.staff .mk-version input:not([type]), body.staff .mk-draft-body input[name^="subject_"] { width: 100%; }
body.staff details.mk-draft > summary { cursor: pointer; padding: 4px 0; }
body.staff .mk-draft-body label { display: grid; gap: 2px; }
body.staff .mk-draft-body p { margin: 0; white-space: pre-line; }
body.staff .mk-draft-row { display: grid; grid-template-columns: 1fr 140px; gap: 8px; }
body.staff .mk-draft-body .mk-act input[type=url], body.staff .mk-draft-body .mk-act input[name=note] { flex: 1 1 240px; }
body.staff .mk-hidden { position: absolute; left: -9999px; width: 1px; height: 1px; }
@media (max-width: 720px) { body.staff .mk-draft { grid-template-columns: 1fr; } body.staff .mk-draft-media video { max-height: 320px; } }


/* Debtors: tracks, the stage strip, the Queue (Janek, 1 Nov 2026; modules/finance/debtors/routes/volad.js) */
body.staff .vl-tabs { overflow: visible; flex-wrap: wrap; align-items: flex-end; }
body.staff .vl-more { position: relative; }
body.staff .vl-more summary { list-style: none; cursor: pointer; padding: 0 0 10px; color: var(--tx-2); font-size: .93rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
body.staff .vl-more summary::-webkit-details-marker { display: none; }
body.staff .vl-more summary.on { color: var(--tx); border-bottom-color: var(--tx); }
body.staff .vl-more > div { position: absolute; z-index: 20; top: 100%; left: 0; background: #fff; border: 1px solid var(--ln); border-radius: 10px; padding: 6px; display: grid; min-width: 180px; box-shadow: 0 6px 18px rgba(31,30,28, .08); }
body.staff .vl-more > div a { padding: 6px 10px; border: 0; margin: 0; border-radius: 6px; }
body.staff .vl-more > div a:hover, body.staff .vl-more > div a.on { background: var(--soft); color: var(--tx); }
body.staff .vl-counts { margin: 6px 0 8px; font-size: 1rem; }
body.staff .vl-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 4px; }
body.staff .vl-chips > a { font-size: .85rem; padding: 4px 11px; border: 1px solid var(--ln-2); border-radius: 999px; color: var(--tx-2); text-decoration: none; background: #fff; }
body.staff .vl-chips > a.on { background: var(--tx); border-color: var(--tx); color: #fff; }
body.staff .vl-search { margin-left: auto; } body.staff .vl-search input { padding: 5px 10px; border: 1px solid var(--ln-2); border-radius: 8px; min-width: 220px; font: inherit; font-size: .88rem; }
@media (max-width: 700px) { body.staff .vl-search { margin-left: 0; width: 100%; } body.staff .vl-search input { width: 100%; min-width: 0; } }
body.staff .vl-qlist { display: grid; gap: 6px; margin: 8px 0 16px; }
body.staff .vl-qrow { display: grid; grid-template-columns: 34px minmax(220px, 1.3fr) minmax(180px, 1fr) auto; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--ln); border-radius: 10px; padding: 9px 12px; text-decoration: none; color: inherit; }
body.staff .vl-qrow.mine { border-left: 3px solid var(--char); }
body.staff .vl-qicon { font-size: 1.1rem; text-align: center; }
body.staff .vl-qwhat, body.staff .vl-qwho { display: grid; gap: 2px; min-width: 0; }
body.staff .vl-qbtn { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
/* The case under each Queue row: the track and stage strip, the analyst's line, the fold (1 Nov 2026) */
body.staff .vl-qcase { grid-column: 2 / -1; display: grid; gap: 6px; border-top: 1px dashed var(--ln); padding-top: 7px; min-width: 0; }
body.staff .vl-qpos { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
body.staff .vl-qai { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: .9rem; }
body.staff .vl-qai-tag { font-size: .66rem; font-weight: 700; letter-spacing: .04em; color: #4f46e5; background: #eef0ff; border-radius: 4px; padding: 1px 5px; }
body.staff .vl-qmore > summary { cursor: pointer; color: var(--tx-2); width: max-content; }
body.staff .vl-qfold { display: grid; gap: 10px; margin-top: 8px; }
body.staff .vl-qtext { border: 1px solid var(--ln); border-radius: 10px; padding: 10px 14px; background: var(--soft); }
body.staff .vl-qpre { white-space: pre-wrap; font: inherit; font-size: .88rem; margin: 6px 0 0; max-height: 260px; overflow: auto; }
body.staff .vl-qrm { display: grid; gap: 4px; border: 1px solid var(--ln); border-radius: 10px; padding: 10px 14px; }
body.staff .vl-qrm .vl-qway { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-weight: 400; margin: 0; }
body.staff .vl-qrm .vl-qway input[type=radio] { width: auto; margin: 0; } body.staff .vl-qrm .vl-qway input[type=date] { width: auto; padding: 3px 6px; }
body.staff .vl-qrm .row { display: flex; gap: 6px; margin-top: 4px; } body.staff .vl-qrm .row input { flex: 1; min-width: 0; }
body.staff .vl-snoozed { margin: 8px 0 16px; } body.staff .vl-snoozed > summary { cursor: pointer; color: var(--tx-2); }
body.staff .vl-qrow-snz { opacity: .8; }
/* The Queue by stage (1 Nov 2026): the stage bar, a notice row with its draft and Send */
body.staff .vl-stages { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; } body.staff .vl-stages a { text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--ln); border-radius: 999px; padding: 4px 12px; font-size: .88rem; } body.staff .vl-stages a b { color: var(--char); }
body.staff .vl-stage-h { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; scroll-margin-top: 70px; } body.staff .vl-stage-h form { margin: 0; }
body.staff .vl-qn-row { grid-template-columns: 22px minmax(200px, .8fr) minmax(280px, 2fr) auto; align-items: start; }
body.staff .vl-tick { display: flex; padding-top: 2px; } body.staff .vl-tick input, body.staff .vl-tickall input { width: 18px; height: 18px; margin: 0; accent-color: var(--char); cursor: pointer; }
body.staff .vl-tickall { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; color: var(--tx-2); cursor: pointer; margin: 0; }
body.staff .vl-tickbar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--soft); padding: 8px 0; margin: 6px 0; }
body.staff .vl-qdraft { display: grid; gap: 4px; min-width: 0; } body.staff .vl-qdraft-h { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
body.staff .vl-qsubj, body.staff .vl-qbody { width: 100%; font: inherit; font-size: .88rem; padding: 6px 8px; border: 1px solid var(--ln); border-radius: 8px; background: var(--soft); } body.staff .vl-qbody { resize: vertical; line-height: 1.4; }
body.staff .vl-qsubj:focus, body.staff .vl-qbody:focus { background: #fff; }
body.staff .vl-qrm-fold { grid-column: 1 / -1; } body.staff .vl-qrm-fold > summary { cursor: pointer; color: var(--tx-2); width: max-content; } body.staff .vl-qrm-fold .vl-qrm { margin-top: 6px; }
@media (max-width: 860px) { body.staff .vl-qn-row { grid-template-columns: 22px 1fr; } body.staff .vl-qn-row .vl-qwho, body.staff .vl-qn-row .vl-qdraft, body.staff .vl-qn-row .vl-qbtn { grid-column: 2; } }
body.staff .vl-who { font-style: normal; font-size: .72rem; background: var(--soft); border-radius: 999px; padding: 2px 7px; color: var(--tx-2); }
@media (max-width: 860px) { body.staff .vl-qrow { grid-template-columns: 28px 1fr; } body.staff .vl-qwho, body.staff .vl-qbtn { grid-column: 2; justify-content: flex-start; } }
body.staff .vl-bulk { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 6px 0; }
/* The stage strip: done ✓, the current step bold, future steps grey with their date */
body.staff .vl-stage { border: 1px solid var(--ln); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; background: #fff; }
body.staff .vl-strip { display: grid; gap: 6px; }
body.staff .vl-strip ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
body.staff .vl-strip li { display: inline-flex; gap: 5px; align-items: baseline; font-size: .8rem; padding: 3px 8px; border-radius: 6px; background: var(--soft); color: var(--tx-3); }
body.staff .vl-strip li b { font-weight: 500; } body.staff .vl-strip li span { font-size: .74rem; }
body.staff .vl-strip li.vl-st-done { background: var(--ok-bg); color: var(--ok); } body.staff .vl-strip li.vl-st-done b::before { content: '✓ '; }
body.staff .vl-strip li.vl-st-skip { background: transparent; border: 1px dashed var(--ln-2); }
body.staff .vl-strip li.vl-st-cur { background: #fff; border: 1.5px solid var(--tx); color: var(--tx); } body.staff .vl-strip li.vl-st-cur b { font-weight: 700; }
body.staff .vl-strip li.vl-st-cur.due { border-color: #d97706; background: #fff8ec; }
body.staff .vl-strip.compact li { padding: 2px 6px; font-size: .7rem; } body.staff .vl-strip.compact li:not(.vl-st-cur) b { display: none; }
body.staff .vl-strip.compact li:not(.vl-st-cur)::before { content: '•'; } body.staff .vl-strip.compact li.vl-st-done::before { content: '✓'; }
body.staff .vl-strip.compact .vl-track, body.staff .vl-strip.compact .vl-hold { display: none; }
body.staff .vl-track { font-size: .8rem; font-weight: 600; color: var(--tx-2); }
body.staff .vl-hold { font-size: .82rem; color: #8a4b00; background: #fff3e0; border-radius: 6px; padding: 3px 8px; justify-self: start; }
body.staff .vl-st-ch { display: inline-flex; gap: 2px; }
body.staff .vl-chs { font-size: .72rem; padding: 0 3px; border-radius: 4px; opacity: .55; } body.staff .vl-chs-sent { opacity: 1; color: var(--char); }
body.staff .vl-chs-failed, body.staff .vl-chs-badphone { opacity: 1; color: #b4232c; } body.staff .vl-chs-todo { opacity: 1; outline: 1px dashed #d97706; }
body.staff .vl-sentence { margin: 0; font-weight: 600; }
body.staff .vl-sum { border: 1px solid var(--ln); border-left: 4px solid #4f46e5; border-radius: 10px; padding: 10px 14px; display: grid; gap: 6px; background: #fff; }
body.staff .vl-sumdl { display: grid; grid-template-columns: 64px 1fr; gap: 3px 10px; margin: 0; font-size: .92rem; } body.staff .vl-sumdl dt { color: var(--tx-2); font-size: .8rem; padding-top: 2px; } body.staff .vl-sumdl dd { margin: 0; }
body.staff .vl-lbl { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--tx-2); }
body.staff .vl-donow { border: 1px solid var(--ln); border-left: 4px solid #d97706; border-radius: 10px; padding: 10px 14px; display: grid; gap: 4px; background: #fff; }
body.staff .vl-donow .row { gap: 6px; } body.staff .vl-donow form.inline { margin: 0; display: inline-flex; gap: 4px; }
body.staff details.vl-call > summary { cursor: pointer; }
body.staff .vl-chtabs { display: flex; gap: 0; border-bottom: 1px solid var(--ln); }
body.staff .vl-chtabs button { font: inherit; font-size: .9rem; padding: 8px 14px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--tx-2); cursor: pointer; }
body.staff .vl-chtabs button.on { color: var(--tx); border-bottom-color: var(--char); font-weight: 600; }
body.staff .vl-tl-did { border-left: 3px solid #d97706; } body.staff .vl-tl-money { border-left: 3px solid var(--char); background: var(--tint); }
body.staff .vl-sysfold { margin-top: 8px; } body.staff .vl-sysfold summary { cursor: pointer; }
body.staff .vl-cols6 { grid-template-columns: repeat(6, minmax(210px, 1fr)); }
body.staff .vl-inv td, body.staff .vl-inv th { padding: 4px 6px; }
/* Marketing as an app (Janek, 1 Nov 2026): tabs, the agents, one inbox of decisions, four numbers, the short brief. */
body.staff .mk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
body.staff .mk-head h1 { margin-bottom: 10px; }
body.staff .mk-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--ln); margin: 0 0 22px; overflow-x: auto; scrollbar-width: none; }
body.staff .mk-tabs a { padding: 10px 0; color: var(--tx-2); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
body.staff .mk-tabs a:hover { color: var(--tx); }
body.staff .mk-tabs a.on { color: var(--tx); border-bottom-color: var(--char); font-weight: 600; }
body.staff .mk-tabs .count { background: var(--tint-2); color: var(--tint-tx); border-radius: 999px; padding: 1px 7px; font-size: .75rem; margin-left: 4px; }
body.staff .mk-agents { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
body.staff .mk-agent { background: #fff; border: 1px solid var(--ln); border-radius: var(--radius); padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; text-decoration: none; color: var(--tx); transition: border-color .15s; }
body.staff a.mk-agent:hover { border-color: var(--char); color: var(--tx); }
body.staff .mk-agent-ic { grid-row: span 3; width: 38px; height: 38px; border-radius: 10px; background: var(--tint); color: var(--tint-tx); display: grid; place-items: center; }
body.staff .mk-agent-name { font-weight: 600; }
body.staff .mk-agent-what { color: var(--tx-2); font-size: .85rem; line-height: 1.35; }
body.staff .mk-agent-st { font-size: .85rem; font-weight: 600; margin-top: 6px; display: flex; align-items: center; gap: 6px; }
body.staff .mk-agent-st i { width: 8px; height: 8px; border-radius: 50%; background: var(--char); }
body.staff .mk-agent.on .mk-agent-st i { box-shadow: 0 0 0 3px var(--tint); }
body.staff .mk-agent.wait .mk-agent-st { color: #9a5b00; } body.staff .mk-agent.wait .mk-agent-st i { background: #e39a1c; }
body.staff .mk-agent.off .mk-agent-st, body.staff .mk-agent.soon .mk-agent-st { color: var(--tx-3); }
body.staff .mk-agent.off .mk-agent-st i, body.staff .mk-agent.soon .mk-agent-st i { background: var(--ln-2); }
body.staff .mk-agent.soon { background: transparent; border-style: dashed; }
body.staff .mk-agent.soon .mk-agent-ic { background: var(--soft); color: var(--tx-3); }
body.staff .mk-agent-like { grid-column: 2; font-size: .75rem; color: var(--tx-3); }
body.staff .mk-home { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
body.staff .mk-inbox h2, body.staff #hommik h2 { margin: 0 0 6px; }
body.staff .mk-inbox ul { list-style: none; margin: 0; padding: 0; }
body.staff .mk-inbox-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--ln); }
body.staff .mk-inbox-row:first-child { border-top: 0; }
body.staff .mk-inbox-row .mk-agent-ic { grid-row: auto; width: 34px; height: 34px; }
body.staff .mk-inbox-row b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.staff .mk-inbox-row b a { text-decoration: none; }
body.staff .mk-inbox-row span { color: var(--tx-2); font-size: .85rem; }
body.staff .mk-inbox-act, body.staff .mk-inbox-act form, body.staff .mk-quiet { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
body.staff .mk-more { display: inline-block; margin-top: 8px; font-size: .9rem; color: var(--char-2); }
body.staff .mk-side { display: grid; gap: 18px; }
body.staff .mk-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body.staff .mk-num { background: #fff; border: 1px solid var(--ln); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 2px; }
body.staff .mk-num span { color: var(--tx-2); font-size: .82rem; }
body.staff .mk-num b { font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; }
body.staff .mk-num small { color: var(--tx-3); font-size: .78rem; }
body.staff .mk-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
body.staff .mk-brief-lead { margin: 6px 0 10px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
body.staff .mk-more-d summary { cursor: pointer; color: var(--char-2); font-size: .9rem; }
body.staff .mk-more-d ul { margin: 8px 0 0; padding-left: 18px; font-size: .9rem; }
body.staff #hommik .mk-quiet { margin-top: 10px; }
@media (max-width: 1100px) { body.staff .mk-agents { grid-template-columns: repeat(2, minmax(0, 1fr)); } body.staff .mk-home { grid-template-columns: 1fr; } }
@media (max-width: 560px) { body.staff .mk-agents { gap: 8px; } body.staff .mk-agent { padding: 12px; grid-template-columns: 1fr; } body.staff .mk-agent-ic { grid-row: auto; width: 30px; height: 30px; margin-bottom: 6px; } body.staff .mk-agent-what, body.staff .mk-agent-like { display: none; } body.staff .mk-agent-st { margin-top: 2px; font-size: .8rem; } body.staff .mk-inbox-row { grid-template-columns: auto minmax(0, 1fr); } body.staff .mk-inbox-act { grid-column: 1 / -1; } }
/* Debtors: Translate under an email or the composer (1 Nov 2026) */
body.staff .vl-tr { margin: 4px 0 8px; } body.staff .vl-trout { white-space: pre-wrap; background: var(--soft); border-left: 3px solid var(--tx-3); padding: 8px 10px; margin: 6px 0 0; font: inherit; font-size: 14px; }

/* Debtors board card (Janek, 1 Nov 2026): three lines, Stage · Next · Contact, and the chips above the columns. */
body.staff .vl-bcard { gap: 4px; }
body.staff .vl-bnote { display: grid; gap: 1px; border-left: 2px solid var(--char); padding: 1px 0 1px 8px; margin-top: 2px; font-size: .78rem; line-height: 1.4; }
body.staff .vl-bnote > span { color: var(--tx); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; } body.staff .vl-bnote em { font-style: normal; font-size: .7rem; color: var(--tx-3); }
body.staff .vl-bsum { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; } body.staff .vl-bsum .vl-f { font-size: .7rem; }
body.staff .vl-cl { display: flex; flex-wrap: wrap; gap: 2px 5px; align-items: center; font-size: .78rem; color: var(--tx); }
body.staff .vl-cl-stage { margin-top: 3px; } body.staff .vl-cl-next i, body.staff .vl-ct i { font-style: normal; font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; color: var(--tx-3); margin-right: 1px; }
body.staff .vl-dots { display: inline-flex; gap: 2px; align-items: center; margin-right: 3px; }
body.staff .vl-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ln-2); display: inline-block; }
body.staff .vl-dots i.vl-dot-done { background: var(--char); } body.staff .vl-dots i.vl-dot-skip { background: transparent; border: 1px dashed var(--ln-2); }
body.staff .vl-dots i.vl-dot-cur { background: #fff; border: 1.5px solid var(--tx); width: 8px; height: 8px; } body.staff .vl-dots i.vl-dot-due { background: #d97706; width: 8px; height: 8px; }
body.staff .vl-duetag { font-style: normal; font-size: .68rem; font-weight: 700; color: #8a4b00; background: #fff3e0; border-radius: 4px; padding: 0 5px; }
body.staff .vl-hold-in { color: #8a4b00; }
body.staff .vl-ct { border-radius: 6px; padding: 2px 7px; margin-top: 2px; font-weight: 500; display: inline-flex; gap: 5px; align-items: center; align-self: start; max-width: 100%; }
body.staff .vl-ct-failed { background: #fde8e8; color: #9b1c1c; } body.staff .vl-cl-due { font-weight: 700; color: #8a4b00; }
body.staff .vl-ct-ours { background: var(--ok-bg); color: var(--ok); font-weight: 700; } body.staff .vl-ct-theirs { background: #fff3e0; color: #8a4b00; }
body.staff .vl-ct-silent { background: var(--soft); color: var(--tx-2); } body.staff .vl-ct-silent.vl-ct-many { background: #fde8e8; color: #9b1c1c; }
body.staff .vl-ct-none { background: transparent; border: 1px dashed var(--ln-2); color: var(--tx-3); }
body.staff .vl-chips-c, body.staff .vl-chips-s { margin: 4px 0; } body.staff .vl-chips-s { margin-bottom: 10px; }
body.staff .vl-chips-l { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--tx-2); min-width: 54px; }
body.staff .vl-chips > a span { opacity: .7; font-size: .78rem; margin-left: 2px; } body.staff .vl-chips > a.vl-chip0 { opacity: .5; }

/* Marketing: answers, measured lines and cards to judge (1 Nov 2026) */
body.staff .mk-ask { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
body.staff .mk-ask input[name="note"] { min-width: 220px; flex: 1; }
body.staff .mk-measured { color: var(--char); }
body.staff .mk-inbox-row.due { background: var(--tint); }

/* Marketing: Teame and the search (1 Nov 2026) */
body.staff .mk-tabs .mk-search { margin-left: auto; }
body.staff .mk-tabs .mk-search input { padding: 6px 10px; border: 1px solid var(--ln); border-radius: 8px; min-width: 200px; font: inherit; }
body.staff .mk-know { border-top: 1px solid var(--ln); padding: 8px 0; }
body.staff .mk-know summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
body.staff .mk-know-text { color: var(--muted, #667); font-size: .88rem; flex-basis: 100%; }
body.staff .mk-know form { margin-top: 8px; }
body.staff .mk-tags .tag { text-decoration: none; }
body.staff .mk-idea-tools { display: grid; gap: 8px; margin: 10px 0; }
@media (max-width: 700px) { body.staff .mk-tabs .mk-search { margin-left: 0; flex-basis: 100%; } }

/* Marketing: articles (1 Nov 2026) */
body.staff .mk-article { padding: 14px 0; border-top: 1px solid var(--ln); }
body.staff .mk-article:first-of-type { border-top: 0; }
body.staff .mk-article textarea[name="body"] { font-family: ui-monospace, Menlo, monospace; font-size: .85rem; line-height: 1.45; }
body.staff .mk-pre { white-space: pre-wrap; font: inherit; font-size: .9rem; }
/* Marketing goals (Eesmärgid, 1 Nov 2026) */
body.staff .mk-goals { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin: 10px 0 14px; }
body.staff .mk-goal { border: 1px solid var(--ln); border-radius: var(--radius); padding: 12px 14px; background: #fff; display: grid; gap: 6px; }
body.staff .mk-goal header { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
body.staff .mk-goal-nums { display: flex; gap: 10px; align-items: baseline; font-variant-numeric: tabular-nums; }
body.staff .mk-goal-nums span { color: var(--tx-2); font-size: .9rem; }
body.staff .mk-goal-nums b { font-size: 1.5rem; }
body.staff .mk-bar { position: relative; height: 6px; border-radius: 3px; background: var(--tint-2); }
body.staff .mk-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--ok); }
body.staff .mk-bar.behind i, body.staff .mk-bar.late i { background: var(--bad); }
body.staff .mk-bar b { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--tx-2); }
body.staff .mk-spark { width: 100%; height: 70px; margin-top: 10px; }
body.staff .mk-spark polyline { fill: none; stroke: var(--char); stroke-width: 2; vector-effect: non-scaling-stroke; }
body.staff .mk-spark .target { stroke: var(--tx-2); stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
body.staff .mk-goal-tag { color: var(--tx-2); }
body.staff .mk-goal-mini { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 8px 0; border-top: 1px solid var(--ln); color: var(--tx); text-decoration: none; }
body.staff .mk-goal-mini:first-of-type { border-top: 0; }
body.staff .mk-goal-mini .mk-bar { grid-column: 1 / -1; }
body.staff .mk-goal-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 10px; }
body.staff .mk-goal-form label { display: grid; gap: 3px; }
body.staff .mk-goal-form label span { font-size: .8rem; color: var(--tx-2); }
body.staff .mk-goal-form .wide, body.staff .mk-goal-form button { grid-column: 1 / -1; }
body.staff .mk-goal-form button { justify-self: start; }

/* ─── Marketing: the UX pass (Janek, 2 Nov 2026: "it should be an 8"; docs/marketing-audit-2026-11-02.md). Desktop first
   (the app is used ~90 % on a Mac). Work first on Today, a status strip for the agents, one action per card, charts and
   pictures, labelled decisions on a card's own page, dialogs for New idea / New goal, toasts. Same tokens as above. ─── */
body.staff { --mk-b: var(--info); --mk-board: var(--panel); }
body.staff .mk-head { align-items: center; margin-bottom: 4px; }
body.staff .mk-head h1 { margin: 0 0 6px; }
body.staff .mk-head-sub { color: var(--tx-2); font-size: .92rem; } body.staff .mk-head-sub b { color: var(--tx); }
body.staff .mk-tabs { margin-bottom: 18px; }
body.staff .mk-tabs .mk-search input { min-width: 160px; padding: 6px 10px 6px 30px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%238796a0' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='10' cy='10' r='7'/%3E%3Cpath d='m21 21-6-6'/%3E%3C/svg%3E") no-repeat 10px center; }
body.staff .page-head h2 { margin: 0; }
body.staff .page-head .mk-tools { align-items: center; }
body.staff .card > h3:first-child, body.staff .card .mk-row h3 { margin: 0 0 8px; }
body.staff .mk-row h2, body.staff .mk-row h3 { margin: 0; }
body.staff .mk-row { margin-bottom: 10px; }
body.staff .mk-crumb { margin: -6px 0 10px; font-size: .88rem; } body.staff .mk-crumb a { color: var(--tx-2); text-decoration: none; } body.staff .mk-crumb a:hover { color: var(--char-2); }

/* The agents: one strip of pills */
body.staff .mk-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
body.staff .mk-strip .mk-agent { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; grid-template-columns: none; font-size: .86rem; }
body.staff .mk-strip .mk-agent-ic { grid-row: auto; width: 26px; height: 26px; border-radius: 50%; }
body.staff .mk-strip .mk-agent-name { font-weight: 600; }
body.staff .mk-strip .mk-agent-st { margin: 0; font-weight: 500; font-size: .82rem; color: var(--tx-2); }
body.staff .mk-strip .mk-agent.on .mk-agent-st i { box-shadow: none; background: var(--ok); }
body.staff .mk-strip .mk-agent.wait { border-color: var(--warn); background: var(--warn-bg); }
body.staff .mk-strip .mk-agent.wait .mk-agent-st { color: var(--warn); font-weight: 600; }
body.staff .mk-strip .mk-agent.soon { opacity: .7; }
/* 25 Nov 2026: the strip is status, not tabs: a label in front, flat cards with no border unless one waits on you */
body.staff .mk-strip { align-items: center; }
body.staff .mk-strip-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--tx-3); margin-right: 4px; }
body.staff .mk-strip .mk-agent:not(.wait) { border-color: transparent; background: transparent; }
body.staff .mk-strip a.mk-agent:not(.wait):hover { background: var(--panel); border-color: transparent; }
body.staff .mk-strip .mk-agent { border-radius: 8px; }
body.staff .mk-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-left: 5px; vertical-align: middle; background: var(--ln-2); }
body.staff .mk-dot.on { background: var(--ok); } body.staff .mk-dot.wait { background: var(--warn); }

/* Today */
body.staff .mk-home { grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); }
body.staff .mk-group + .mk-group { margin-top: 14px; }
body.staff .mk-group h3 { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tx-2); margin: 0; padding: 4px 0 2px; font-weight: 600; }
body.staff .mk-group h3 .count { font-size: .7rem; }
body.staff .mk-inbox-row { grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; padding: 11px 0; }
body.staff .mk-inbox-row:first-child { border-top: 1px solid var(--ln); }
body.staff .mk-inbox-row .mk-agent-ic { width: 32px; height: 32px; border-radius: 9px; }
body.staff .mk-inbox-main { display: grid; gap: 2px; min-width: 0; }
body.staff .mk-inbox-row b { white-space: normal; overflow: visible; line-height: 1.35; }
body.staff .mk-inbox-main .mk-ask { margin-top: 8px; }
body.staff .mk-inbox-act { padding-top: 2px; }
body.staff .mk-inbox-row.due { background: transparent; } body.staff .mk-inbox-row.due .mk-agent-ic { background: #fff3e0; color: #8a5300; }
body.staff .mk-more { font-weight: 500; text-decoration: none; }
body.staff .mk-side > .card, body.staff .mk-side > section { margin: 0; }
body.staff .mk-brief-lead { -webkit-line-clamp: 8; }

/* Numbers with a line */
body.staff .mk-nums { gap: 12px; }
body.staff .mk-nums.four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
body.staff .mk-num { gap: 4px; align-content: start; }
body.staff .mk-num-v { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
body.staff .mk-num b { font-size: 1.55rem; line-height: 1.1; }
body.staff .mk-sparkline { width: 100%; height: 32px; display: block; margin: 2px 0; }
body.staff .mk-sparkline polyline { fill: none; stroke: var(--char); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
body.staff .mk-sparkline .area { fill: var(--tint); opacity: .7; stroke: none; }
body.staff .mk-delta { font-size: .78rem; font-weight: 600; padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
body.staff .mk-delta.good { color: var(--ok); background: var(--ok-bg); } body.staff .mk-delta.bad { color: var(--bad); background: var(--bad-bg); } body.staff .mk-delta.flat { color: var(--tx-3); background: var(--soft); font-weight: 500; }

/* Charts */
body.staff .mk-chart { margin: 4px 0 0; padding-left: 46px; }
body.staff .mk-chart-plot { position: relative; }
body.staff .mk-chart-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
body.staff .mk-chart polyline { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
body.staff .mk-chart polyline.a { stroke: var(--char); } body.staff .mk-chart polyline.b { stroke: var(--mk-b); }
body.staff .mk-chart .area.a { fill: var(--char); opacity: .07; } body.staff .mk-chart .area.b { fill: var(--mk-b); opacity: .07; }
body.staff .mk-chart .grid { stroke: var(--ln); stroke-width: 1; vector-effect: non-scaling-stroke; }
body.staff .mk-chart .target { stroke: var(--tx-2); stroke-width: 1.2; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
body.staff .mk-chart-y span { position: absolute; left: -46px; width: 40px; text-align: right; transform: translateY(-50%); font-size: .72rem; color: var(--tx-3); font-variant-numeric: tabular-nums; }
body.staff .mk-chart-x { display: flex; justify-content: space-between; font-size: .72rem; color: var(--tx-3); margin-top: 6px; }
body.staff .mk-legend { display: flex; gap: 14px; font-size: .78rem; color: var(--tx-2); margin-bottom: 8px; }
body.staff .mk-legend i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; background: var(--char); }
body.staff .mk-legend .b i { background: var(--mk-b); } body.staff .mk-legend .t i { background: none; border-top: 2px dashed var(--tx-2); height: 0; }
body.staff .mk-chart-hover { position: absolute; inset: 0; pointer-events: none; }
body.staff .mk-chart-hover > i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--ln-2); }
body.staff .mk-chart-hover > span { position: absolute; top: 4px; transform: translateX(10px); background: #fff; border: 1px solid var(--ln); border-radius: 8px; padding: 6px 9px; font-size: .78rem; box-shadow: 0 4px 14px rgba(31,30,28,.08); display: grid; gap: 1px; white-space: nowrap; }
body.staff .mk-chart-hover > span.right { transform: translateX(calc(-100% - 10px)); }
body.staff .mk-chart-hover .a { color: var(--char-2); } body.staff .mk-chart-hover .b { color: var(--mk-b); }
body.staff .mk-chart-empty { padding: 22px; text-align: center; background: var(--soft); border-radius: 10px; }
body.staff .mk-seg { display: inline-flex; background: var(--soft); border: 1px solid var(--ln); border-radius: 9px; padding: 2px; }
body.staff .mk-seg a { padding: 3px 10px; border-radius: 7px; font-size: .82rem; text-decoration: none; color: var(--tx-2); }
body.staff .mk-seg a.on { background: #fff; color: var(--tx); font-weight: 600; box-shadow: 0 1px 2px rgba(31,30,28,.08); }

/* Pictures */
body.staff .mk-ph { position: relative; display: block; overflow: hidden; border-radius: 10px; background: var(--tint); flex: none; }
body.staff .mk-ph::before { content: attr(data-initial); position: absolute; inset: 0; display: grid; place-items: center; font-weight: 600; font-size: 1.6rem; color: rgba(255,255,255,.9); }
body.staff .mk-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
body.staff .mk-ph.c0 { background: linear-gradient(135deg, var(--char), var(--tint-tx)); } body.staff .mk-ph.c1 { background: linear-gradient(135deg, var(--ok-2), var(--ok)); }
body.staff .mk-ph.c2 { background: linear-gradient(135deg, var(--info-2), var(--info)); } body.staff .mk-ph.c3 { background: linear-gradient(135deg, #d3b48f, #b0865a); }
body.staff .mk-ph.c4 { background: linear-gradient(135deg, var(--ln-2), var(--tx-3)); } body.staff .mk-ph.c5 { background: linear-gradient(135deg, #b9c99a, #80975a); }
body.staff .mk-ph.wide { width: 100%; aspect-ratio: 16 / 9; border-radius: 0; }
body.staff .mk-ph.fill { width: 100%; aspect-ratio: 4 / 5; border-radius: 0; }
body.staff .mk-ph.xs { width: 28px; height: 28px; border-radius: 7px; } body.staff .mk-ph.xs::before { font-size: .75rem; }
body.staff .mk-rt { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

/* Empty states and toasts */
body.staff .mk-empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 26px 16px; }
body.staff .mk-empty b { font-size: 1rem; } body.staff .mk-empty p { margin: 0; max-width: 520px; color: var(--tx-2); font-size: .9rem; line-height: 1.5; }
body.staff .mk-empty > div { margin-top: 6px; display: flex; gap: 8px; }
body.staff .mk-empty-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--tint-tx); display: grid; place-items: center; margin-bottom: 4px; }
.mk-toast { position: fixed; right: 24px; bottom: 24px; z-index: 60; background: var(--tx); color: #fff; padding: 11px 16px 11px 38px; border-radius: 10px; font: 500 .9rem var(--f, inherit); box-shadow: 0 8px 28px rgba(31,30,28,.22); max-width: 420px; cursor: pointer; animation: mk-in .22s ease-out; transition: opacity .5s, transform .5s; }
.mk-toast::before { content: '✓'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--tint-2); font-weight: 700; }
.mk-toast.out { opacity: 0; transform: translateY(8px); }
@keyframes mk-in { from { opacity: 0; transform: translateY(8px); } }

/* Ideas: the board */
body.staff .mk-board-tools { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 0 0 14px; }
body.staff .mk-board-tools > .btn { margin-left: auto; }
body.staff .mk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
body.staff .mk-chip { padding: 4px 11px; border: 1px solid var(--ln); border-radius: 999px; background: #fff; font-size: .82rem; text-decoration: none; color: var(--tx-2); }
body.staff .mk-chip span { color: var(--tx-3); font-size: .75rem; }
body.staff .mk-chip:hover { border-color: var(--char); color: var(--tx); }
body.staff .mk-chip.on { background: var(--tint); border-color: var(--tint-2); color: var(--tint-tx); font-weight: 600; }
body.staff .mk-jump { margin: 0 0 14px; }
body.staff .mk-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; margin-bottom: 18px; }
body.staff .mk-col { background: var(--mk-board); border-radius: var(--radius); padding: 10px; min-height: 120px; }
body.staff .mk-col-head { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 4px 10px; }
body.staff .mk-col-head h3 { margin: 0; font-size: .92rem; }
body.staff .mk-col-empty { padding: 14px 6px; text-align: center; }
body.staff .mk-card { padding: 12px 14px; gap: 6px; margin: 0 0 8px; transition: border-color .15s, box-shadow .15s; }
body.staff .mk-card:hover { border-color: var(--ln-2); box-shadow: 0 2px 10px rgba(31,30,28,.05); }
body.staff .mk-card-top { display: flex; align-items: center; gap: 8px; }
body.staff .mk-card-top .tag { font-size: .7rem; }
body.staff .mk-card-kind { font-size: .75rem; color: var(--tx-3); }
body.staff .mk-score { margin-left: auto; font-size: .72rem; font-weight: 600; color: var(--tint-tx); background: var(--tint); border-radius: 999px; padding: 1px 7px; font-variant-numeric: tabular-nums; }
body.staff .mk-card-title { font-weight: 600; text-decoration: none; line-height: 1.35; color: var(--tx); }
body.staff .mk-card-title:hover { color: var(--char-2); }
body.staff .mk-card-why { color: var(--tx-2); font-size: .86rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.staff .mk-card-meta { font-size: .78rem; color: var(--tx-3); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
body.staff .mk-exp { color: var(--tx-2); background: var(--soft); border-radius: 6px; padding: 1px 6px; }
body.staff .mk-exp::before { content: '≈ '; }
body.staff .mk-card-when { font-size: .78rem; color: var(--tx-2); }
body.staff .mk-card .mk-act { margin-top: 2px; }
body.staff .mk-more-link { margin-left: auto; font-size: .8rem; color: var(--tx-3); text-decoration: none; } body.staff .mk-more-link:hover { color: var(--char-2); }
body.staff .mk-card.rejected { opacity: .7; } body.staff .mk-card.rejected .mk-card-title { color: var(--tx-2); }
body.staff .mk-asks .mk-card { border-left: 3px solid #e39a1c; }
body.staff .mk-parked, body.staff .mk-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-top: 10px; }

/* A card's / a goal's own page: content left, the decision right */
body.staff .mk-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
body.staff .mk-split > div > .card + .card, body.staff .mk-split > div > * + * { margin-top: 0; }
body.staff .mk-decide { position: sticky; top: 16px; padding: 4px 18px; }
body.staff .mk-step { padding: 14px 0; border-top: 1px solid var(--ln); } body.staff .mk-step:first-child { border-top: 0; }
body.staff .mk-step h3 { margin: 0 0 2px; font-size: .95rem; } body.staff .mk-step p { margin: 0 0 8px; }
body.staff .mk-stack { display: grid; gap: 8px; } body.staff .mk-stack button { justify-self: start; }
body.staff .mk-stack label, body.staff .mk-inline label { display: grid; gap: 3px; } body.staff .mk-stack label > span, body.staff .mk-inline label > span { font-size: .78rem; color: var(--tx-2); }
body.staff .mk-inline { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; } body.staff .mk-inline input:not([type=date]) { flex: 1; }
body.staff .mk-detail h2 { margin: 8px 0 6px; font-size: 1.3rem; line-height: 1.3; }
body.staff .mk-detail > p { color: var(--tx-2); line-height: 1.55; }
body.staff .mk-do { background: var(--soft); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
body.staff .mk-do > span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--tx-2); margin-bottom: 2px; font-weight: 600; }
body.staff .mk-do p { margin: 0; white-space: pre-line; line-height: 1.5; }
body.staff .mk-do.measured { background: var(--tint); } body.staff .mk-do.measured > span { color: var(--tint-tx); }
body.staff .mk-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 18px; margin: 14px 0 0; }
body.staff .mk-facts dt { font-size: .75rem; color: var(--tx-3); } body.staff .mk-facts dd { margin: 1px 0 0; font-size: .9rem; }
body.staff .mk-timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--ln); display: grid; gap: 10px; }
body.staff .mk-timeline li { position: relative; display: grid; gap: 1px; font-size: .88rem; }
body.staff .mk-timeline li::before { content: ''; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--char); }
body.staff .mk-spark-wrap { margin-top: 14px; }

/* Dialogs */
body.staff .mk-dialog { border: 0; border-radius: 16px; padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(31,30,28,.25); }
body.staff .mk-dialog.wide { width: min(780px, calc(100vw - 32px)); }
body.staff .mk-dialog::backdrop { background: rgba(31,30,28,.35); }
body.staff .mk-dialog form { padding: 22px 24px; } body.staff .mk-dialog h2 { margin: 0 0 4px; }
body.staff .mk-dialog .mk-two { gap: 8px; }
body.staff .mk-dialog input, body.staff .mk-dialog select, body.staff .mk-dialog textarea { width: 100%; }

/* Houses */
body.staff .mk-houses { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 10px; }
body.staff .mk-house-card { border: 1px solid var(--ln); border-radius: var(--radius); background: #fff; overflow: hidden; }
body.staff .mk-house-card[open] { grid-column: 1 / -1; }
body.staff .mk-house-card summary { list-style: none; cursor: pointer; display: grid; }
body.staff .mk-house-card summary::-webkit-details-marker { display: none; }
body.staff .mk-house-card[open] summary { grid-template-columns: 260px 1fr; }
body.staff .mk-house-card[open] .mk-ph.wide { aspect-ratio: auto; min-height: 130px; }
body.staff .mk-house-body { padding: 12px 14px; display: grid; gap: 8px; }
body.staff .mk-house-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0; }
body.staff .mk-house-nums dt { font-size: .7rem; color: var(--tx-3); } body.staff .mk-house-nums dd { margin: 0; font-weight: 600; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
body.staff .mk-house-card .table-wrap { padding: 0 14px 12px; }
body.staff .mk-house-card td, body.staff .mk-house-card th { white-space: nowrap; }

/* Channels */
body.staff .mk-posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
body.staff .mk-post { border: 1px solid var(--ln); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 8px; text-decoration: none; color: var(--tx); align-content: start; }
body.staff a.mk-post:hover { border-color: var(--char); color: var(--tx); }
body.staff .mk-post-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
body.staff .mk-post p { margin: 0; font-size: .86rem; line-height: 1.45; color: var(--tx-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
body.staff .mk-post-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; border-top: 1px solid var(--ln); padding-top: 8px; }
body.staff .mk-post-nums b { display: block; font-size: .98rem; font-variant-numeric: tabular-nums; } body.staff .mk-post-nums span { font-size: .7rem; color: var(--tx-3); }
body.staff .mk-post .tag { justify-self: start; }
body.staff .mk-pill { font-size: .72rem; font-weight: 600; background: var(--tint); color: var(--tint-tx); border-radius: 6px; padding: 2px 7px; }
body.staff .mk-good, body.staff .mk-bad { border-left: 3px solid var(--ok); padding-left: 12px; } body.staff .mk-bad { border-left-color: var(--bad); }
body.staff .mk-comp { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
body.staff .mk-comp > div { display: grid; gap: 1px; background: var(--soft); border-radius: 10px; padding: 10px 12px; }

/* Posts: the phone preview */
body.staff .mk-draft { grid-template-columns: 300px minmax(0, 1fr); gap: 22px; padding: 18px 0; }
body.staff .mk-phone { border: 1px solid var(--ln); border-radius: 22px; background: #fff; overflow: hidden; box-shadow: 0 6px 20px rgba(31,30,28,.06); }
body.staff .mk-phone-top { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: .82rem; }
body.staff .mk-phone-top .muted { margin-left: auto; font-size: .75rem; }
body.staff .mk-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--tx); color: #fff; display: grid; place-items: center; font-size: .72rem; font-weight: 700; }
body.staff .mk-phone-media video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 0; display: block; background: #111; }
body.staff .mk-phone-media video + video { display: none; }
body.staff .mk-phone-acts { padding: 8px 12px 0; letter-spacing: 8px; font-size: .95rem; color: var(--tx); } body.staff .mk-phone-acts span { float: right; letter-spacing: 0; }
body.staff .mk-phone-cap { margin: 0; padding: 6px 12px 14px; font-size: .82rem; line-height: 1.45; white-space: pre-line; max-height: 9.5em; overflow: hidden; }
body.staff .mk-phone-tags { color: var(--info); }

/* Articles */
body.staff .mk-kw td { vertical-align: middle; } body.staff .mk-kw .num, body.staff .mk-kw th.num { text-align: right; font-variant-numeric: tabular-nums; }
body.staff .mk-bar-imp { height: 4px; background: var(--soft); border-radius: 2px; margin-top: 5px; max-width: 260px; } body.staff .mk-bar-imp i { display: block; height: 100%; border-radius: 2px; background: var(--tint-2); }
body.staff .mk-pos { display: inline-block; min-width: 34px; text-align: center; border-radius: 6px; padding: 1px 6px; font-weight: 600; font-size: .8rem; }
body.staff .mk-pos.good { background: var(--ok-bg); color: var(--ok); } body.staff .mk-pos.mid { background: var(--warn-bg); color: var(--warn); } body.staff .mk-pos.weak { background: var(--bad-bg); color: var(--bad); }

/* Ads */
body.staff .mk-cap { display: grid; gap: 4px; margin-top: 4px; } body.staff .mk-cap span { font-size: .78rem; color: var(--tx-3); }
body.staff .mk-cap-bar { height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; } body.staff .mk-cap-bar i { display: block; height: 100%; background: var(--char); border-radius: 3px; }
body.staff .mk-two > .card { margin: 0 0 18px; }

/* Shoots */
body.staff .mk-shots { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 4px; color: var(--tx-2); }

@media (max-width: 1100px) { body.staff .mk-nums.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } body.staff .mk-split { grid-template-columns: 1fr; } body.staff .mk-decide { position: static; } }
@media (max-width: 900px) { body.staff .mk-board { grid-template-columns: 1fr; } body.staff .mk-draft { grid-template-columns: 1fr; } body.staff .mk-house-card[open] summary { grid-template-columns: 1fr; } }
body.staff .mk-nums.fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 18px; }
body.staff .mk-phone-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--soft); }
body.staff .mk-phone-media img + img, body.staff .mk-phone-media img + video, body.staff .mk-phone-media video + img { display: none; }

/* ─── Marketing: the calendar (2 Nov 2026). Month and week, bars for what runs (tests, shoots, ads), chips for what happens
   on a day (posts, articles, clips, goal deadlines). One colour per type, a dot per house (the house tints above). ─── */
body.staff { --t-post: var(--char); --t-article: var(--info); --t-shoot: #b0723a; --t-test: #7a5bb5; --t-goal: #b8432a; --t-ad: var(--tx-2); }
body.staff .mkc-season { background: var(--tint); color: var(--tint-tx); border-radius: 10px; padding: 9px 14px; margin: 0 0 12px; font-size: .88rem; }
body.staff .mkc-season p { margin: 0; } body.staff .mkc-season p + p { margin-top: 4px; }
body.staff .mkc-gaps { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
body.staff .mkc-gap { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--ln); border-radius: 999px; padding: 4px 12px 4px 8px; font-size: .82rem; }
body.staff .mkc-gap span { color: var(--tx-2); }
body.staff .mkc-gap.none { border-color: #f0c879; background: #fffaf0; } body.staff .mkc-gap.none span { color: #8a5300; font-weight: 600; }
body.staff .mkc-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--char); }
body.staff .mkc-dot.c1 { background: var(--ok); } body.staff .mkc-dot.c2 { background: var(--info); } body.staff .mkc-dot.c3 { background: #b0865a; } body.staff .mkc-dot.c4 { background: var(--tx-3); } body.staff .mkc-dot.c5 { background: #80975a; }
body.staff .mkc-sw { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
body.staff .mkc-sw.t-post { background: var(--t-post); } body.staff .mkc-sw.t-article { background: var(--t-article); } body.staff .mkc-sw.t-shoot { background: var(--t-shoot); }
body.staff .mkc-sw.t-test { background: var(--t-test); } body.staff .mkc-sw.t-goal { background: var(--t-goal); } body.staff .mkc-sw.t-ad { background: var(--t-ad); }
body.staff .mkc { background: #fff; border: 1px solid var(--ln); border-radius: var(--radius); overflow: hidden; }
body.staff .mkc-head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--ln); }
body.staff .mkc-head span { padding: 8px 10px; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--tx-3); font-weight: 600; }
body.staff .mkc-week { position: relative; border-bottom: 1px solid var(--ln); min-height: 118px; }
body.staff .mkc-week:last-child { border-bottom: 0; }
body.staff .mkc-week .mkc-bg, body.staff .mkc-week .mkc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
body.staff .mkc-bg { position: absolute; inset: 0; }
body.staff .mkc-bg > div { border-right: 1px solid var(--ln); } body.staff .mkc-bg > div:last-child { border-right: 0; }
body.staff .mkc-bg > .is-we { background: var(--soft); } body.staff .mkc-bg > .is-out { background: var(--soft); } body.staff .mkc-bg > .is-today { background: var(--tint); }
body.staff .mkc-bg > .drop { background: var(--tint); box-shadow: inset 0 0 0 2px var(--char); }
body.staff .mkc-grid { position: relative; min-height: 118px; row-gap: 3px; padding-bottom: 6px; }
body.staff .mkc-date { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 2px; font-size: .82rem; }
body.staff .mkc-date.is-out .mkc-num { color: var(--tx-3); }
body.staff .mkc-date.is-today .mkc-num { background: var(--char); color: #fff; border-radius: 999px; padding: 1px 8px; font-weight: 600; }
body.staff .mkc-free { font-size: .68rem; color: var(--tx-3); font-variant-numeric: tabular-nums; }
body.staff .mkc-cell { display: grid; align-content: start; gap: 3px; padding: 0 5px; min-width: 0; }
body.staff .mkc-chip, body.staff .mkc-bar { display: flex; align-items: center; gap: 5px; min-width: 0; text-decoration: none; font-size: .76rem; line-height: 1.25; border-radius: 6px; color: var(--tx); }
body.staff .mkc-chip { padding: 3px 6px; background: color-mix(in srgb, var(--tc) 9%, #fff); border-left: 3px solid var(--tc); }
body.staff .mkc-chip:hover, body.staff .mkc-bar:hover { filter: brightness(.97); color: var(--tx); box-shadow: 0 1px 4px rgba(31,30,28,.12); }
body.staff .mkc-chip .mkc-t, body.staff .mkc-bar .mkc-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.staff .mkc-time { font-weight: 600; color: var(--tc); font-variant-numeric: tabular-nums; }
body.staff .mkc-chip.planned { background: #fff; border: 1px dashed var(--tc); border-left-width: 3px; border-left-style: solid; }
body.staff .mkc-chip.s-draft .mkc-t::after { content: ' · draft'; color: #8a5300; }
body.staff .mkc-chip.s-posted, body.staff .mkc-chip.s-published { opacity: .75; }
body.staff .mkc-bar { margin: 0 5px; padding: 0 8px; height: 22px; background: color-mix(in srgb, var(--tc) 16%, #fff); border: 1px solid color-mix(in srgb, var(--tc) 35%, #fff); }
body.staff .mkc-bar.from-left { margin-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; border-left: 0; }
body.staff .mkc-bar.to-right { margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: 0; }
body.staff .mkc-bar.s-done { opacity: .6; }
body.staff [draggable="true"] { cursor: grab; } body.staff .dragging { opacity: .4; }
body.staff .t-post { --tc: var(--t-post); } body.staff .t-article { --tc: var(--t-article); } body.staff .t-shoot { --tc: var(--t-shoot); }
body.staff .t-test { --tc: var(--t-test); } body.staff .t-goal { --tc: var(--t-goal); } body.staff .t-ad { --tc: var(--t-ad); }
body.staff .mkc-more, body.staff .mkc-more-bars { font-size: .72rem; color: var(--tx-3); padding: 0 6px; align-self: center; }
body.staff .mkc-week .mkc-grid { grid-auto-rows: auto; }
body.staff .mkc-sub { display: block; font-size: .7rem; color: var(--tx-3); }
/* Week: taller days, chips wrap */
body.staff .mkc.mkc-v-week .mkc-week { min-height: 420px; } body.staff .mkc.mkc-v-week .mkc-grid { min-height: 420px; }
body.staff .mkc.mkc-v-week .mkc-chip { display: block; padding: 6px 8px; } body.staff .mkc.mkc-v-week .mkc-chip .mkc-t { white-space: normal; }
body.staff .mkc.mkc-v-week .mkc-chip .mkc-dot { margin-right: 4px; }
body.staff .mkc.mkc-v-week .mkc-head { display: none; }
body.staff .mkc-legend { margin-top: 10px; }
body.staff .mkc-time { margin-right: 2px; } body.staff .mkc.mkc-v-week .mkc-time { margin-right: 5px; }
body.staff .mk-draft-row.three { grid-template-columns: 1fr 150px 120px; }
/* The guest's ID document step on /stay/c/… (Arendus #39, 2 Nov 2026): two file fields, phone camera friendly. */
.lp-id { border-top: 1px solid var(--ln); padding: 18px 0 22px; display: grid; gap: 10px; }
.lp-id h2 { font-size: 20px; margin: 0; } .lp-id > p { margin: 0; }
.lp-id-form { display: grid; gap: 12px; }
.lp-file { display: grid; gap: 4px; font-size: 15px; border: 1px dashed var(--ln-2); border-radius: var(--r-sm); padding: 12px 14px; background: var(--card); }
.lp-file input[type="file"] { font: 400 15px var(--f); width: 100%; }
.lp-id-go { justify-self: start; }
.lp-id-go[hidden], .lp-id-status[hidden] { display: none; }
.lp-id-status { margin: 0; font-weight: 600; color: var(--tx); } .lp-id-form.lp-saving .lp-file { opacity: .6; pointer-events: none; }

/* The file viewer over the page (public/app.js; Smartbox mail pictures and PDFs, 3 Nov 2026). */
html.fv-open { overflow: hidden; }
.fv { position: fixed; inset: 0; z-index: 1000; background: rgba(16, 24, 32, .78); display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; grid-template-rows: auto minmax(0, 1fr); }
.fv[hidden] { display: none; }
.fv-bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); }
.fv-name { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .fv-n { color: var(--muted); font-size: .85rem; white-space: nowrap; } .fv-sp { flex: 1; }
.fv-btn { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .85rem; cursor: pointer; text-decoration: none; white-space: nowrap; }
.fv-btn:hover { border-color: #0f7c79; color: #0f7c79; }
.fv-body { grid-column: 2; display: flex; align-items: center; justify-content: center; padding: 20px 0; min-height: 0; }
.fv-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; background: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
.fv-pdf { width: 100%; height: 100%; border: 0; border-radius: 8px; background: #fff; }
.fv-nav { align-self: center; justify-self: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: #1f2a2a; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.fv-nav[hidden] { visibility: hidden; display: block; } .fv-nav:hover { background: #fff; color: #0f7c79; }
.fv-prev { grid-column: 1; grid-row: 2; } .fv-next { grid-column: 3; grid-row: 2; }
@media (max-width: 640px) { .fv { grid-template-columns: 0 minmax(0, 1fr) 0; } .fv-nav { position: fixed; bottom: 16px; } .fv-prev { left: 16px; } .fv-next { right: 16px; } .fv-new { display: none; } }

/* Haldus → Toad (5 Nov 2026): rooms as rows of text, the state as one tag; the resident card on a task. */
.mt-rooms .mt-room { padding: 9px 14px; border-top: 1px solid var(--ln); display: grid; gap: 2px; }
.mt-rooms .mt-room:first-child { border-top: 0; }
.mt-room-1 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mt-room-1 .tag { margin-left: 0; }
.mt-room-1 > a { margin-left: auto; }
.mt-room-2 { color: var(--tx-2); overflow-wrap: anywhere; }
body.staff .tag.st-free { border-color: var(--ok); color: var(--ok); }
body.staff .tag.st-blocked { border-color: var(--warn); color: var(--warn); }
.mt-room-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 8px; }
.mt-room-tabs .pill b { font-weight: 600; margin-left: 3px; }
.mt-resident h2 { margin-bottom: 4px; } .mt-resident p { margin: 2px 0; } .mt-res-name { font-size: 1.05rem; }
/* Elanik sees / Check-in täna / Check-out täna, big on the task's resident card (Janek, 5 Nov 2026). */
.mt-res-big { margin: 6px 0 10px; display: grid; gap: 4px; }
.mt-res-big > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--ln); }
.mt-res-big dt { color: var(--tx-2); font-size: 1rem; }
.mt-res-big dd { margin: 0; font-size: 1.35rem; font-weight: 700; color: var(--tx-3); text-align: right; }
.mt-res-big .on dd { color: var(--char-2); }
/* /haldus board: the trash on the left, shown while a card is dragged (Janek, 5 Nov 2026). */
.mt-trash { display: none; position: fixed; left: 0; top: 0; bottom: 0; width: 96px; z-index: 40; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: var(--bad-bg); color: var(--bad); border-right: 2px dashed var(--bad); }
body.mt-dragging .mt-trash { display: flex; }
.mt-trash.over { outline: none; background: var(--bad); color: #fff; }
.mt-undo { margin: 0 0 8px; }

/* Puuduvad arved (/app/arved; modules/finance/missing-invoices/, 5 Nov 2026): the Marketing frame, one line per ticket. */
body.staff .ar-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ln); }
body.staff .ar-list li { border-bottom: 1px solid var(--ln); }
body.staff .ar-row { display: grid; gap: 2px; padding: 10px 2px; color: var(--tx); text-decoration: none; }
body.staff .ar-row:hover { background: var(--surface); }
body.staff .ar-l1 { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
body.staff .ar-sum { font-variant-numeric: tabular-nums; }
body.staff .ar-st { font-size: .78rem; color: var(--tx-2); }
body.staff .ar-st.warn { color: var(--warn); } body.staff .ar-st.ok { color: var(--ok); } body.staff .ar-st.bad { color: var(--bad); }
body.staff .ar-add { margin: 0 0 18px; }
body.staff .ar-who { margin: 0 0 14px; }
body.staff .ar-add > summary, body.staff .ar-veel > summary, body.staff .ar-del > summary { cursor: pointer; color: var(--tx-2); padding: 4px 0; }
body.staff .ar-form { display: grid; gap: 10px; margin-top: 8px; max-width: 760px; }
body.staff .ar-form label { display: grid; gap: 4px; font-size: .85rem; color: var(--tx-2); }
body.staff .ar-form textarea { font-family: ui-monospace, Menlo, monospace; font-size: .82rem; }
body.staff .ar-grid { grid-template-columns: 1fr 1fr; }
body.staff .ar-grid .wide, body.staff .ar-grid > div { grid-column: 1 / -1; }
body.staff .ar-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
body.staff .ar-act input:not([type]) { flex: 1 1 200px; }
body.staff .ar-pre td, body.staff .ar-pre th { vertical-align: top; }
body.staff .ar-pre .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
body.staff .ar-form.ar-wide { max-width: none; }
body.staff .ar-pre input:not([type=checkbox]) { width: 100%; min-width: 0; }
body.staff .ar-pre input[type=date] { min-width: 9.5em; }
body.staff .ar-pre input.num { width: 7.5em; text-align: right; font-variant-numeric: tabular-nums; }
body.staff .ar-h { margin: 4px 0 2px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
body.staff .ar-detail { word-break: break-word; }
body.staff .ar-files { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 6px; }
body.staff .ar-files a { margin-right: 8px; }
body.staff .ar-veel { margin: 14px 0; }
body.staff .ar-evs { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
@media (max-width: 640px) { body.staff .ar-grid { grid-template-columns: 1fr; } }
/* Smartbox Snippets (5 Nov 2026): the HubSpot snippets, a pop-up above the Saada row (modules/support/mailbox/snippets.js) */
body.staff .sb-snip { position: relative; display: inline-block; }
body.staff .sb-snip > summary { list-style: none; cursor: pointer; }
body.staff .sb-snip > summary::-webkit-details-marker { display: none; }
body.staff .sb-snip-pop { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 30; width: min(420px, 90vw); background: var(--surface); border: 1px solid var(--ln); border-radius: var(--radius); box-shadow: var(--shadow-pop); padding: 10px; }
body.staff .sb-snip-top { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
body.staff .sb-snip-top input { flex: 1; min-width: 0; padding: 6px 10px; border: 1px solid var(--ln-2); border-radius: var(--radius-sm); font: inherit; }
body.staff .sb-snip-langs { display: inline-flex; border: 1px solid var(--ln-2); border-radius: var(--radius-sm); overflow: hidden; }
body.staff .sb-snip-langs button { border: 0; background: var(--surface); color: var(--tx-2); padding: 5px 8px; font: 600 .75rem var(--f); cursor: pointer; }
body.staff .sb-snip-langs button.on { background: var(--tint); color: var(--tint-tx); }
body.staff .sb-snip ul { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; }
body.staff .sb-snip li button { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 7px 8px; border-radius: var(--radius-sm); font: inherit; font-size: .9rem; color: var(--tx); cursor: pointer; }
body.staff .sb-snip li button:hover, body.staff .sb-snip li button:focus-visible { background: var(--panel); }
body.staff .sb-snip li .muted { font-size: .75rem; white-space: nowrap; }
body.staff .sb-snip-pop p { margin: 6px 2px 0; }
/* Koristus week 1 (9 Nov 2026): supplies list, the inspection card */
.hk-items { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 6px; }
.hk-items li { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.hk-items li label { display: flex; align-items: center; gap: 10px; flex: 1; font-size: 1rem; }
.hk-items li input[type="checkbox"] { width: 22px; height: 22px; }
.hk-items .num-in { width: 64px; }
.hk-inspect form.row { margin-top: 8px; }

/* The workman's phone home (9 Nov 2026): Avarii banner, "Täna" cards with one big button, "Võtan" that asks once. */
.mt-alarm { display: grid; gap: 2px; background: var(--p1-bg); color: var(--p1); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; text-decoration: none; font-size: .95rem; }
.mt-alarm .mt-alarm-2 { font-size: .85rem; } .mt-alarm:hover { color: var(--p1); }
.mt-todays { display: grid; gap: 10px; margin-bottom: 20px; }
.mt-today { display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--ln); border-radius: 12px; padding: 14px; }
.mt-today.p1 { border-color: var(--p1); } .mt-today.p2 { border-color: var(--p2); }
.mt-today-main { display: grid; gap: 4px; color: var(--tx); text-decoration: none; min-width: 0; }
.mt-today-k { display: flex; align-items: center; flex-wrap: wrap; gap: 0 2px; font-size: 1.05rem; } .mt-today-t { font-size: 1rem; overflow-wrap: anywhere; }
.mt-today-f { font-size: .85rem; color: var(--tx-2); } .mt-today-f.bad { color: var(--p1); font-weight: 600; }
.mt-big { display: block; width: 100%; text-align: center; font: inherit; font-weight: 700; font-size: 1rem; padding: 13px; border-radius: 10px; border: 0; background: var(--primary); color: var(--surface); cursor: pointer; text-decoration: none; }
.mt-big.go { background: var(--ok); } .mt-big:hover { color: var(--surface); }
.mt-today form { margin: 0; }
.mt-claim { margin: 6px 0; } .mt-claim > summary { list-style: none; cursor: pointer; } .mt-claim > summary::-webkit-details-marker { display: none; }
.mt-claim[open] > summary { display: none; } .mt-claim .mt-planrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* Haldus, 9 Nov 2026: Ain's Täna inbox, the folded Plaaniline backlog, steps and the required photo, room history */
.mt-inbox { background: var(--surface); border: 1px solid var(--ln); border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; }
.mt-inbox h2 { margin: 0 0 8px; } .mt-inbox h3 { margin: 12px 0 4px; font-size: .85rem; color: var(--tx-2); font-weight: 600; }
.mt-irow { border-top: 1px solid var(--ln); display: flex; align-items: center; flex-wrap: wrap; gap: 0 8px; }
.mt-irow .mt-row { border-top: 0; flex: 1 1 480px; min-width: 0; } .mt-irow > p { flex-basis: 100%; margin: 0; padding: 0 14px 10px; }
.mt-iplan { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 6px 14px; margin: 0; }
.mt-iplan select, .mt-iplan input { font: inherit; padding: 6px 8px; border: 1px solid var(--ln-2); border-radius: 8px; background: var(--surface); color: var(--tx); }
.mt-bfold { margin-top: 6px; } .mt-bfold > summary { cursor: pointer; font-size: .85rem; color: var(--tx-2); padding: 6px 4px; }
.mt-steps { border: 1px solid var(--ln); border-radius: 8px; padding: 8px 12px; margin: 0; display: grid; gap: 6px; }
.mt-steps legend { font-weight: 600; font-size: .92rem; padding: 0 4px; } .mt-steps label { display: flex; gap: 10px; align-items: center; min-height: 36px; }
.mt-steps input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--ok); }
.mt-steplist { margin: 0; padding-left: 1.2em; } .mt-steplist li.ok { color: var(--ok); }
.mt-photo.req .mt-photo-l { color: var(--tx); } .mt-photo.req .mt-photo-l::after { content: ' *'; color: var(--bad); }
.mt-orig { margin: 0 0 12px; } .mt-orig .mt-body { color: var(--tx-2); }
.mt-room-1 > a.mt-room-n { margin-left: 0; color: inherit; text-decoration: none; }
.mt-hist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--ln); border-radius: 12px; background: var(--surface); }
.mt-hist li { padding: 10px 14px; border-top: 1px solid var(--ln); display: grid; gap: 2px; } .mt-hist li:first-child { border-top: 0; }
.mt-hist a { color: inherit; text-decoration: none; }
/* /koristus: what maintenance did with a cleaner's report (9 Nov 2026) */
.hk-mt { font-size: .85rem; color: var(--tx-2); } .hk-mt.s-done { color: var(--ok); } .hk-mt a { color: inherit; }
@media (max-width: 640px) { .mt-iplan { padding: 0 10px 10px; } .mt-iplan select, .mt-iplan input { flex: 1 1 40%; } }

/* ─── Staff menu on a phone (10 Nov 2026, Indrek: the menu filled the whole first screen) ───
   Desktop: the wrapper is invisible and the sidebar looks as before. Up to 860px: the sidebar is a slim sticky bar
   (logo + Menüü), the menu opens over the page from the button (public/app.js) and the page starts on the first screen. */
.staff-menu { display: contents; }
.staff-menu-btn { display: none; }
@media (max-width: 860px) {
  body.staff .staff-side { position: sticky; top: 0; z-index: 50; height: auto; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 16px; border-bottom: 1px solid var(--ln); }
  body.staff .staff-brand { margin: 0; }
  body.staff .staff-brand img { height: 26px; }
  body.staff .staff-menu-btn { display: inline-flex; align-items: center; gap: 8px; font: 600 .9rem var(--f); color: var(--tx); background: var(--surface); border: 1px solid var(--ln-2); border-radius: var(--radius-btn); padding: 7px 12px; cursor: pointer; }
  body.staff .staff-menu-btn .bars, body.staff .staff-menu-btn .bars::before, body.staff .staff-menu-btn .bars::after { display: block; width: 14px; height: 1.5px; background: currentColor; border-radius: 1px; position: relative; }
  body.staff .staff-menu-btn .bars::before, body.staff .staff-menu-btn .bars::after { content: ""; position: absolute; left: 0; }
  body.staff .staff-menu-btn .bars::before { top: -4.5px; } body.staff .staff-menu-btn .bars::after { top: 4.5px; }
  body.staff .staff-side.open .staff-menu-btn { background: var(--side-on); }
  body.staff .staff-menu { display: none; }
  body.staff .staff-side.open .staff-menu { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 56px); max-height: calc(100dvh - 56px); overflow-y: auto; overscroll-behavior: contain; background: var(--side); border-bottom: 1px solid var(--ln); box-shadow: var(--shadow-pop); padding: 8px 12px 16px; }
  body.staff .staff-side.open .staff-nav { flex-direction: column; flex-wrap: nowrap; flex: none; overflow: visible; }
  body.staff .staff-side.open .staff-nav a { padding: 10px 14px; font-size: .95rem; }
  body.staff .staff-side.open .staff-nav .nav-group a { padding-left: 26px; }
  body.staff .staff-side.open .staff-user { display: block; border-top: 1px solid var(--ln); margin-top: 10px; padding: 12px 8px 0; }
}
/* Haldus → Inventar (10 Nov 2026; modules/maintenance/inventory/): a record's facts as two quiet columns, small inline forms. */
body.mt .mt-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 8px 0 16px; }
body.mt .mt-facts dt { padding-top: 2px; } body.mt .mt-facts dd { margin: 0; }
body.mt .mt-inline { display: inline; margin-left: 6px; }
body.mt .mt-form + .mt-form { margin-top: 6px; }
@media (max-width: 560px) { body.mt .mt-facts { grid-template-columns: 1fr; gap: 0; } body.mt .mt-facts dd { margin-bottom: 8px; } }
body.mt .mt-hist li > .tag, body.mt .mt-hist li > .mt-inline { justify-self: start; margin-left: 0; }
body.mt .mt-hist.inv li { display: block; line-height: 1.55; } body.mt .mt-hist.inv li > .small.muted { margin-left: 4px; }
/* News posts (Marketing → Posts, 10 Nov 2026): the AI's word on each channel, the results list */
body.staff .mk-advice { list-style: none; padding: 0; margin: 6px 0 10px; display: grid; gap: 4px; }
body.staff .mk-advice li { line-height: 1.45; }
body.staff .mk-do ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 6px; }
/* A tick box with its word on one line inside a draft form (the channel ticks, the first-comment tick), 10 Nov 2026 */
body.staff .mk-draft-body label:has(> input[type="checkbox"]), body.staff .mk-dialog label:has(> input[type="checkbox"]) { display: inline-flex; gap: 6px; align-items: center; margin-right: 12px; }
body.staff .mk-draft-body label:has(> input[type="checkbox"]) > input, body.staff .mk-dialog label:has(> input[type="checkbox"]) > input { width: auto; margin: 0; }
body.staff .mk-draft-row.mk-ticks { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
body.staff .mk-draft-row.mk-ticks > .muted { margin-right: 12px; }

/* Apps (/app/apps; core/devboard/, Janek 11 Nov 2026): the app register, the merges and the Thursday report. Tokens only. */
body.staff .dv { max-width: 1100px; }
body.staff .dv-ok { color: var(--ok); } body.staff .dv-warn { color: var(--warn); } body.staff .dv-bad { color: var(--bad); }
body.staff .dv .nw { white-space: nowrap; } body.staff .dv .num { text-align: right; font-variant-numeric: tabular-nums; }
body.staff .dv-phase { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
body.staff .dv-bar { display: inline-flex; gap: 3px; }
body.staff .dv-bar i { display: block; width: 14px; height: 6px; margin: 0; border-radius: 3px; background: var(--ln-2); }
body.staff .dv-bar i.dv-past { background: var(--ok); } body.staff .dv-bar i.dv-here { background: var(--char); }
body.staff .dv-wait { list-style: none; margin: 0; padding: 0; }
body.staff .dv-wait li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--ln); }
body.staff .dv-wait li:first-child { border-top: 0; }
body.staff .dv-tag { font-size: .8rem; font-weight: 600; color: var(--tx-2); } body.staff .dv-tag.late { color: var(--bad); }
body.staff .dv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
body.staff .dv-rhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
body.staff .dv-rhead .dv-inline { margin-left: auto; }
body.staff .dv-summary { font-family: var(--fh); font-size: 1.08rem; line-height: 1.55; margin: 10px 0 18px; }
body.staff .dv-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 28px; }
body.staff .dv-cols h3 { font-size: .95rem; margin: 0 0 6px; }
body.staff .dv-who { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
body.staff .dv-apps .dv-grp td { padding-top: 18px; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--tx-2); }
body.staff .dv-dropped td { color: var(--tx-3); }
body.staff .dv-form { display: grid; gap: 10px; max-width: 520px; }
body.staff .dv-form label { display: grid; gap: 4px; font-size: .85rem; color: var(--tx-2); }
body.staff .dv-add { margin-top: 18px; }
body.staff .dv-week { padding: 12px 0; border-top: 1px solid var(--ln); }
body.staff .dv-week h3 { font-size: 1rem; margin: 0 0 4px; } body.staff .dv-week p { margin: 2px 0; }
body.staff .dv-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 800px) { body.staff .dv-grid { grid-template-columns: 1fr; } body.staff .dv-wait li { grid-template-columns: 1fr; gap: 2px; } }
body.staff .dv-dept { margin: 0 0 22px; } body.staff .dv-dept > h2 { font-size: 1.1rem; margin: 0 0 8px; }
body.staff .dv-app { padding: 10px 0; border-top: 1px solid var(--ln); } body.staff .dv-app h3 { font-size: .98rem; margin: 0 0 6px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
body.staff .dv-work { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; padding: 6px 0; }
body.staff .dv-work > div { min-width: 0; flex: 1 1 260px; } body.staff .dv-work.waiting b { color: var(--warn); }
body.staff .dv-work form { display: flex; gap: 6px; align-items: center; }
body.staff .dv-addwork { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; } body.staff .dv-addwork input[name="title"] { flex: 1 1 260px; } body.staff .dv-addwork input[name="owner"] { width: 120px; }
/* Progress (core/devboard/, 13 Nov 2026): the board (departments down, phases across), a card opens the pop-up; Weekly
   progress cards per person. Tokens only. */
body.staff .dv:has(.pg-board) { max-width: none; }
body.staff .pg-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
body.staff .pg-tools .dv-who { margin: 0; }
body.staff .pg-tools > .btn.primary { margin-left: auto; }
body.staff .pg-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px 6px; }
body.staff .pg-board { display: grid; grid-template-columns: 130px repeat(5, minmax(170px, 1fr)); gap: 6px 10px; min-width: 980px; align-items: start; }
body.staff .pg-colhead { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--tx-2); padding: 0 2px 4px; border-bottom: 1px solid var(--ln); }
body.staff .pg-lane { font-family: var(--fh); font-size: .98rem; padding: 10px 0 0; color: var(--tx); }
body.staff .pg-cell { display: grid; gap: 6px; padding: 8px 0; border-top: 1px solid var(--ln); min-height: 44px; align-content: start; }
body.staff .pg-cellhead { display: none; }
body.staff .pg-card { display: grid; gap: 2px; margin: 0; text-align: left; width: 100%; background: var(--surface); border: 1px solid var(--ln); border-radius: 10px; padding: 8px 10px; font: inherit; color: var(--tx); cursor: pointer; }
body.staff .pg-card:hover, body.staff .pg-card:focus-visible { border-color: var(--accent); }
body.staff .pg-card b { font-weight: 600; font-size: .9rem; line-height: 1.3; }
body.staff .pg-card.idea { border-style: dashed; background: transparent; }
body.staff .pg-card.late { border-left: 3px solid var(--bad); }
body.staff .pg-cell[data-phase="live"] { display: flex; flex-wrap: wrap; gap: 5px; }
body.staff .pg-cell[data-phase="live"] .pg-cellhead { flex-basis: 100%; }
body.staff .pg-card.done { display: inline-block; width: auto; padding: 3px 9px; border-radius: 999px; font-size: .8rem; background: var(--ok-bg); border-color: transparent; }
body.staff .pg-off, body.staff .pg-unsorted, body.staff .pg-more { margin: 16px 0 0; }
body.staff .pg-unsorted { margin: 0 0 14px; }
body.staff .pg-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 8px; }
body.staff .pg-peek { padding: 22px 24px; max-height: 80vh; overflow: auto; }
body.staff .pg-peek h3 { font-size: .95rem; margin: 16px 0 6px; }
body.staff .pg-peekhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
body.staff .pg-peekhead h2 { margin: 0; }
body.staff .pg-done { font-family: var(--fh); font-size: 1.02rem; margin: 10px 0; }
body.staff .pg-coms { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
body.staff .pg-comform { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
body.staff .pg-comform textarea { flex: 1; }
body.staff .pg-move { display: flex; gap: 8px; align-items: center; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--ln); }
body.staff .pg-actions { display: flex; gap: 8px; justify-content: flex-end; }
body.staff .pg-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin: 14px 0; }
body.staff .pg-person h2 { margin: 0 0 2px; }
body.staff .pg-review { line-height: 1.55; margin: 10px 0; }
@media (max-width: 700px) {
  body.staff .pg-wrap { overflow: visible; }
  body.staff .pg-board { grid-template-columns: 1fr; min-width: 0; }
  body.staff .pg-board > div:first-child, body.staff .pg-colhead { display: none; }
  body.staff .pg-cell:not(:has(.pg-card)) { display: none; }
  body.staff .pg-cellhead { display: block; font-size: .75rem; color: var(--tx-3); text-transform: uppercase; letter-spacing: .05em; }
  body.staff .pg-tools > .btn.primary { margin-left: 0; }
}
/* Progress → Initiatives (20 Nov 2026): a card per department, a row per initiative (title, owner and day, € a month). */
body.staff .pg-inis { margin-bottom: 14px; }
body.staff .pg-inis h2 { font-size: 1rem; margin: 0 0 6px; }
body.staff .pg-inis ul, body.staff .pg-inis-closed { list-style: none; margin: 0; padding: 0; }
body.staff .pg-ini { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 8px 0; border-top: 1px solid var(--ln); }
body.staff .pg-ini:first-child { border-top: 0; }
body.staff .pg-ini .linkbtn { text-align: left; text-decoration: none; }
body.staff .pg-ini .linkbtn:hover { text-decoration: underline; }
body.staff .pg-ini > .small { grid-column: 1; }
body.staff .pg-ini-eur { grid-row: 1; grid-column: 2; font-weight: 600; color: var(--ok); white-space: nowrap; }
body.staff .pg-ini.late { box-shadow: inset 3px 0 0 var(--bad); padding-left: 10px; }
body.staff .pg-tools .grow { flex: 1; margin: 0; }
body.staff .pg-facts td { padding: 4px 8px 4px 0; vertical-align: top; }
body.staff .pg-facts td.num { white-space: nowrap; text-align: right; }
body.staff .pg-case { margin: 0 0 8px; }
body.staff .pg-move input[name="result"] { min-width: 220px; flex: 1; }
/* Marketing: the guided path (journey.js, 11 Nov 2026): four tabs with a second row, Start here, the interview and the
   challenge options, How to do this, and the one-line explanation on a number. Colours from the tokens only. */
body.staff .mk-tabs .mk-tabs-gap { flex: 1; }
body.staff .mk-tabs a.mk-tab-quiet { font-weight: 400; font-size: .88rem; color: var(--tx-3); }
body.staff .mk-tabs a.mk-tab-quiet:hover, body.staff .mk-tabs a.mk-tab-quiet.on { color: var(--tx); }
body.staff .mk-tabs .mk-search { margin-left: 0; }
body.staff .mk-subtabs { display: flex; gap: 6px; margin: -8px 0 18px; flex-wrap: wrap; }
body.staff .mk-subtabs a { padding: 5px 12px; border-radius: 999px; color: var(--tx-2); text-decoration: none; font-size: .88rem; font-weight: 500; }
body.staff .mk-subtabs a:hover { background: var(--panel); color: var(--tx); }
body.staff .mk-subtabs a.on { background: var(--side-on); color: var(--tx); }
body.staff .mk-subtabs .count { background: var(--tint-2); color: var(--tint-tx); border-radius: 999px; padding: 1px 7px; font-size: .75rem; margin-left: 4px; }
body.staff .mk-start { margin-bottom: 18px; }
body.staff .mk-start ol, body.staff .mk-how { list-style: none; margin: 6px 0 0; padding: 0; }
body.staff .mk-start li, body.staff .mk-how li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--ln); }
body.staff .mk-start li:first-child, body.staff .mk-how li:first-child { border-top: 0; }
body.staff .mk-start li b, body.staff .mk-how li b { display: block; font-weight: 500; }
body.staff .mk-start li.is-now b { font-weight: 600; }
body.staff .mk-start li div span, body.staff .mk-how li div span { display: block; color: var(--tx-2); font-size: .85rem; overflow-wrap: anywhere; }
body.staff .mk-start li:not(.is-now):not(.is-done) b { color: var(--tx-2); }
body.staff .mk-start-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; border: 1px solid var(--ln-2); color: var(--tx-2); }
body.staff .mk-start li.is-done .mk-start-n { background: var(--ok-bg); border-color: transparent; color: var(--ok); }
body.staff .mk-start li.is-now .mk-start-n { background: var(--primary); border-color: transparent; color: var(--surface); }
body.staff .mk-how-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
body.staff .mk-challenge { max-width: 720px; }
body.staff .mk-challenge h2 { margin: 6px 0 12px; }
body.staff .mk-challenge .mk-chips { margin-bottom: 12px; }
body.staff .mk-q { border: 0; padding: 0; margin: 0 0 16px; }
body.staff .mk-q legend, body.staff .mk-q p { padding: 0; margin: 0 0 8px; font-weight: 500; }
body.staff .mk-opts { display: flex; flex-wrap: wrap; gap: 8px; }
body.staff .mk-opt { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--ln-2); border-radius: 8px; background: var(--surface); color: var(--tx); font: inherit; font-size: .92rem; text-decoration: none; cursor: pointer; }
body.staff .mk-opt span { color: var(--tx-3); font-size: .8rem; }
body.staff .mk-opt { line-height: 1.3; min-height: 38px; }
body.staff .mk-opt:hover, body.staff .mk-opt:has(input:checked) { border-color: var(--char); background: var(--tint); }
body.staff .mk-opt input { accent-color: var(--char); margin: 0; width: auto; flex: none; }
body.staff span.mk-opt { cursor: default; border-style: dashed; }
body.staff span.mk-opt:hover { border-color: var(--ln-2); background: var(--surface); }
body.staff .mk-q-date { display: inline-grid; gap: 3px; margin: 0 0 14px; }
body.staff .mk-q-date > span { font-size: .78rem; color: var(--tx-2); }
body.staff .mk-tip { border-bottom: 1px dotted var(--tx-3); cursor: help; position: relative; }
body.staff .mk-tip:hover::after, body.staff .mk-tip:focus::after { content: attr(data-tip); position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; width: max-content; max-width: 260px; padding: 8px 10px; border-radius: 8px; background: var(--primary); color: var(--surface); font-size: .8rem; font-weight: 400; line-height: 1.4; text-transform: none; letter-spacing: 0; white-space: normal; }
body.staff .mk-num.bad .mk-num-v b { color: var(--bad); }
@media (max-width: 640px) { body.staff .mk-start li, body.staff .mk-how li { grid-template-columns: auto minmax(0, 1fr); } body.staff .mk-start li > a, body.staff .mk-how-act { grid-column: 2; justify-content: flex-start; justify-self: start; } }
body.staff .mk-parts { margin: -6px 0 14px; }
body.staff .mk-answered { list-style: none; margin: 8px 0 0; padding: 0; }
body.staff .mk-answered li { display: grid; gap: 2px; padding: 9px 0; border-top: 1px solid var(--ln); }
body.staff .mk-answered li b { font-weight: 500; }

/* OURWAY, the staff handbook (core/handbook/, 15 Nov 2026): text rows, no boxes (docs/design-manual.md). */
body.staff .kr { max-width: 900px; }
/* Look B, the library (27 Nov 2026): sections left with counts, the open section's pages right, grouped by topic. */
body.staff .kr:has(.kr-lib) { max-width: 1180px; }
body.staff .kr-lib { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
body.staff .kr-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 16px; }
body.staff .kr-nav > a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--tx-2); text-decoration: none; font-size: .95rem; }
body.staff .kr-nav > a:hover { background: var(--side-on); color: var(--tx); }
body.staff .kr-nav > a.on { background: var(--side-on); color: var(--tx); font-weight: 600; }
body.staff .kr-nav .kr-n { color: var(--tx-3); font-variant-numeric: tabular-nums; }
body.staff .kr-nav .kr-fold { margin: 14px 12px 0; }
body.staff .kr-nav .kr-newsec { flex-direction: column; }
body.staff .kr-pane { min-width: 0; }
body.staff .kr-pane > .kr-sec-title { font-size: 1.5rem; font-weight: 500; margin: 0 0 14px; }
body.staff .kr-topic { margin: 0 0 24px; }
body.staff .kr-topic h3 { margin: 0 0 4px; font-family: var(--f); font-size: .78rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--tx-2); }
body.staff .kr-list.kr-lib-list li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 0; }
body.staff .kr-sum { color: var(--tx-2); font-size: .88rem; }
@media (max-width: 800px) {
  body.staff .kr-lib { grid-template-columns: 1fr; gap: 16px; }
  body.staff .kr-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  body.staff .kr-nav > a { padding: 6px 10px; background: var(--panel); }
  body.staff .kr-nav .kr-fold { display: none; }
}
body.staff .kr-sec { margin: 0 0 26px; }
body.staff .kr-sec h2 { font-size: 1.1rem; margin: 0 0 6px; }
body.staff .kr-sec h2 a { color: var(--tx); text-decoration: none; }
body.staff .kr-list { list-style: none; margin: 0; padding: 0; }
body.staff .kr-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 8px 0; border-bottom: 1px solid var(--ln); }
body.staff .kr-list li a { color: var(--tx); text-decoration: none; font-weight: 500; }
body.staff .kr-list li a:hover { text-decoration: underline; }
body.staff .kr-warn { color: var(--warn); }
body.staff .kr-bad { color: var(--bad); }
body.staff .kr-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 18px; }
body.staff .kr-actions form { margin: 0; }
body.staff .kr-more { position: relative; }
body.staff .kr-more summary { list-style: none; cursor: pointer; }
body.staff .kr-more summary::-webkit-details-marker { display: none; }
body.staff .kr-more[open] form { position: absolute; top: calc(100% + 4px); left: 0; background: var(--card); border: 1px solid var(--ln); border-radius: 8px; padding: 6px; z-index: 5; }
body.staff .kr-body { line-height: 1.6; }
body.staff .kr-body img { max-width: 100%; height: auto; border: 1px solid var(--ln); border-radius: 8px; margin: 8px 0; }
body.staff .kr-body pre { background: var(--soft); padding: 10px 12px; border-radius: 8px; overflow-x: auto; }
body.staff .kr-body blockquote { margin: 8px 0; padding-left: 12px; border-left: 3px solid var(--ln); color: var(--tx-2); }
body.staff .kr-table { overflow-x: auto; margin: 8px 0; }
body.staff .kr-table table { border-collapse: collapse; }
body.staff .kr-table th, body.staff .kr-table td { border-bottom: 1px solid var(--ln); padding: 6px 10px; text-align: left; vertical-align: top; }
body.staff .kr-form { display: grid; gap: 12px; }
body.staff .kr-form label { display: grid; gap: 4px; }
body.staff .kr-form input:not([type=file]), body.staff .kr-form select, body.staff .kr-form textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--ln); border-radius: 8px; width: 100%; box-sizing: border-box; }
body.staff .kr-form textarea { font-family: inherit; resize: vertical; }
body.staff .kr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
body.staff .kr-ai { display: flex; gap: 8px; margin: 16px 0 6px; }
body.staff .kr-ai input { flex: 1; font: inherit; padding: 8px 10px; border: 1px solid var(--ln); border-radius: 8px; }
body.staff .kr-hist { margin-top: 28px; }
@media (max-width: 700px) { body.staff .kr-row { grid-template-columns: 1fr; } body.staff .kr-ai { flex-direction: column; } }
/* OURWAY step 2: quick add, a new section, Inimesed, the top-bar link in /haldus and /koristus. */
body.staff .kr-quick { display: grid; gap: 8px; margin: 0 0 26px; }
body.staff .kr-quick textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--ln); border-radius: 8px; resize: vertical; width: 100%; box-sizing: border-box; }
body.staff .kr-quick-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
body.staff .kr-newsec { display: flex; gap: 8px; margin: 8px 0 0; max-width: 420px; }
body.staff .kr-newsec input { flex: 1; font: inherit; padding: 8px 10px; border: 1px solid var(--ln); border-radius: 8px; }
body.staff .kr-sec-title { margin: 0 0 8px; }
body.staff .kr-fold { margin-top: 24px; }
body.staff .kr-secform { margin-top: 10px; }
body.staff .kr-people b { font-weight: 600; }
body.staff .kr-kids { margin-top: 28px; }
.kr-toplink { margin-right: 10px; }

/* Töögraafik (/app/graafik; core/schedule/routes.js): the month as one table, people by department */
body.staff .sch-month { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
body.staff .sch-month a { text-decoration: none; color: var(--tx-2); padding: 2px 8px; border: 1px solid var(--ln-2); border-radius: 8px; background: var(--surface); }
body.staff .sch-month b { min-width: 130px; text-align: center; font-weight: 600; }
body.staff .sch-state { color: var(--tx-2); font-size: .88rem; margin-left: 8px; } body.staff .sch-state.ok { color: var(--ok); }
body.staff .sch-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--ln); border-radius: 12px; margin: 0 0 10px; }
body.staff .sch-grid { border-collapse: collapse; font-size: .8rem; font-variant-numeric: tabular-nums; width: 100%; }
body.staff .sch-grid th, body.staff .sch-grid td { border-bottom: 1px solid var(--ln); border-right: 1px solid var(--ln); padding: 4px 3px; text-align: center; min-width: 40px; height: 44px; }
body.staff .sch-grid tr:last-child > * { border-bottom: 0; } body.staff .sch-grid tr > :last-child { border-right: 0; }
body.staff .sch-grid thead th { font-weight: 500; color: var(--tx-2); height: auto; padding: 6px 3px; } body.staff .sch-grid thead th span { display: block; font-size: .7rem; color: var(--tx-3); }
body.staff .sch-grid tr > th:first-child { text-align: left; padding: 4px 12px; white-space: nowrap; position: sticky; left: 0; background: var(--surface); font-weight: 500; z-index: 1; }
body.staff .sch-grid .sch-dept th { height: auto; padding: 6px 12px; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--tx-2); background: var(--panel); text-align: left; }
body.staff .sch-grid .sch-off { background: var(--soft); } body.staff .sch-grid thead .sch-today { color: var(--char); font-weight: 600; } body.staff .sch-grid td.sch-today { box-shadow: inset 2px 0 0 var(--char); }
body.staff .sch-grid td.sch-on b { display: block; font-weight: 600; } body.staff .sch-grid td.sch-on span { display: block; font-size: .68rem; color: var(--tx-2); line-height: 1.15; }
body.staff .sch-grid td.sch-abs { background: var(--tint); color: var(--tint-tx); font-weight: 600; } body.staff .sch-grid td.sch-abs.sch-wish { background: none; color: var(--tx-3); }
body.staff .sch-grid tr.me > th:first-child { font-weight: 700; }
/* House and leave colours (Indrek, 30 Nov 2026: "each house its own colour", the colours of begin.ee's schedule). A deliberate
   exception to the one-accent rule: the schedule is read by colour. Tokens here, the cell carries data-code. */
body.staff { --h-ch: #dc7a1c; --h-eh: #22a83d; --h-sh: #0aa9b0; --h-sm: #4b4fd0; --h-rh: #3a4150; --h-leave: #0b8a33; --h-wish: #f1ebe9; --h-wish-tx: #4a4540; }
body.staff .sch-grid td[data-code="CH"] { --h: var(--h-ch); } body.staff .sch-grid td[data-code="EH"] { --h: var(--h-eh); } body.staff .sch-grid td[data-code="SH"] { --h: var(--h-sh); }
body.staff .sch-grid td[data-code="SM"] { --h: var(--h-sm); } body.staff .sch-grid td[data-code="RH"] { --h: var(--h-rh); }
body.staff .sch-grid td.sch-on[data-code] { background: var(--h, var(--surface)); }
body.staff .sch-grid td.sch-on[data-code="CH"], body.staff .sch-grid td.sch-on[data-code="EH"], body.staff .sch-grid td.sch-on[data-code="SH"], body.staff .sch-grid td.sch-on[data-code="SM"], body.staff .sch-grid td.sch-on[data-code="RH"] { color: #fff; }
body.staff .sch-grid td.sch-on[data-code="CH"] span, body.staff .sch-grid td.sch-on[data-code="EH"] span, body.staff .sch-grid td.sch-on[data-code="SH"] span, body.staff .sch-grid td.sch-on[data-code="SM"] span, body.staff .sch-grid td.sch-on[data-code="RH"] span { color: rgba(255, 255, 255, .85); }
body.staff .sch-grid td.sch-abs:not(.sch-wish) { background: var(--h-leave); color: #fff; } body.staff .sch-grid td.sch-abs.sch-wish { background: var(--h-wish); color: var(--h-wish-tx); }
body.staff .sch-mine .sch-chip { display: inline-block; min-width: 30px; padding: 1px 6px; margin-right: 6px; border-radius: 6px; font-size: .78rem; font-weight: 600; text-align: center; color: #fff; background: var(--tx-3); }
body.staff .sch-chip[data-code="CH"] { background: var(--h-ch); } body.staff .sch-chip[data-code="EH"] { background: var(--h-eh); } body.staff .sch-chip[data-code="SH"] { background: var(--h-sh); }
body.staff .sch-chip[data-code="SM"] { background: var(--h-sm); } body.staff .sch-chip[data-code="RH"] { background: var(--h-rh); } body.staff .sch-chip.leave { background: var(--h-leave); }
body.staff .sch-total { margin: -10px 0 18px; color: var(--tx-2); }
body.staff .sch-legend b[data-code] { display: inline-block; padding: 0 5px; border-radius: 5px; color: #fff; background: var(--tx-3); } body.staff .sch-legend b[data-code="CH"] { background: var(--h-ch); } body.staff .sch-legend b[data-code="EH"] { background: var(--h-eh); } body.staff .sch-legend b[data-code="SH"] { background: var(--h-sh); } body.staff .sch-legend b[data-code="SM"] { background: var(--h-sm); } body.staff .sch-legend b[data-code="RH"] { background: var(--h-rh); } body.staff .sch-legend b.leave { background: var(--h-leave); } body.staff .sch-legend b.wish { background: var(--h-wish); color: var(--h-wish-tx); }
body.staff .sch-grid .sch-hours { white-space: nowrap; padding: 4px 10px; text-align: right; color: var(--tx-2); } body.staff .sch-grid .sch-hours span { display: block; font-size: .72rem; }
body.staff .sch-grid .sch-hours.bad span { color: var(--bad); }
body.staff .sch-grid.edit td[data-day] { cursor: cell; user-select: none; touch-action: manipulation; }
body.staff .sch-grid.edit td[data-day] i { font-style: normal; display: block; }
body.staff .sch-grid.edit td[data-day]:focus { outline: 0; }
body.staff .sch-grid.edit td.sch-sel { box-shadow: inset 0 0 0 2px var(--tx), inset 0 0 0 4px var(--surface); }   /* the white ring shows on a dark house too */
body.staff .sch-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 8px; padding: 8px 0; position: sticky; top: 0; z-index: 3; background: var(--soft); }
body.staff .sch-tools [data-count] { min-width: 150px; }
body.staff .sch-tools input[type="time"], body.staff .sch-tools select { padding: 5px 6px; font-size: .86rem; }
body.staff .sch-tools .btn.small { padding: 5px 10px; font-size: .86rem; }
body.staff .sch-dirty { color: var(--warn); }
body.staff .sch-legend b { color: var(--tx); font-weight: 600; }
body.staff .sch-step { border-bottom: 1px solid var(--ln); padding: 8px 0; } body.staff .sch-step > summary { cursor: pointer; font-weight: 600; padding: 4px 0; } body.staff .sch-step > summary span { font-weight: 400; margin-left: 4px; }
body.staff .sch-h2 { margin: 22px 0 8px; }
body.staff .sch-form { display: grid; gap: 12px; margin: 10px 0 8px; }
body.staff .sch-ticks { display: flex; flex-wrap: wrap; gap: 6px 22px; }
body.staff .sch-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; } body.staff .sch-row label { display: grid; gap: 4px; font-size: .85rem; color: var(--tx-2); }
body.staff .sch-list { list-style: none; margin: 8px 0; padding: 0; } body.staff .sch-list li { display: flex; gap: 8px; align-items: baseline; padding: 3px 0; } body.staff .sch-list form { margin-left: 6px; }
body.staff .sch-checks { list-style: none; margin: 0 0 12px; padding: 0; font-size: .9rem; } body.staff .sch-checks .bad { color: var(--bad); } body.staff .sch-checks .warn { color: var(--warn); }
body.staff .sch-fine { color: var(--ok); }
body.staff .sch-ai { display: flex; gap: 8px; margin: 0 0 12px; max-width: 760px; } body.staff .sch-ai input { flex: 1; }
body.staff .sch-pic { margin: 0 0 12px; } body.staff .sch-pic > summary { cursor: pointer; color: var(--tx-2); font-size: .9rem; } body.staff .sch-pic .sch-ai { margin: 8px 0 4px; } body.staff .sch-pic p { margin: 0; }
body.staff .sch-read { margin: 0 0 12px; font-size: .9rem; } body.staff .sch-read p { margin: 2px 0; } body.staff .sch-read .bad { color: var(--bad); }
body.staff .sch-actions { display: flex; gap: 14px; align-items: center; margin: 4px 0 12px; }
body.staff .sch-shifts { border-collapse: collapse; font-size: .88rem; } body.staff .sch-shifts th { font-weight: 500; color: var(--tx-2); font-size: .78rem; text-align: left; padding: 2px 6px; } body.staff .sch-shifts td { padding: 3px 4px; }
body.staff .sch-shifts input { padding: 5px 6px; } body.staff .sch-shifts input.n { width: 48px; } body.staff .sch-shifts input[type="text"][name$="[code]"], body.staff .sch-shifts input:not([type])[name$="[code]"] { width: 56px; text-transform: uppercase; }
body.staff .sch-table { border-collapse: collapse; width: 100%; max-width: 900px; font-size: .9rem; font-variant-numeric: tabular-nums; background: var(--surface); border: 1px solid var(--ln); border-radius: 12px; overflow: hidden; }
body.staff .sch-table.narrow { max-width: 560px; }
body.staff .sch-table th { text-align: left; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--tx-2); font-weight: 500; padding: 8px 12px; border-bottom: 1px solid var(--ln); }
body.staff .sch-table td { padding: 7px 12px; border-bottom: 1px solid var(--ln); } body.staff .sch-table tr:last-child td { border-bottom: 0; }
body.staff .sch-table .num { text-align: right; } body.staff .sch-table td.bad { color: var(--bad); }
body.staff .sch-tools label { display: inline-flex; align-items: center; gap: 6px; color: var(--tx-2); }
/* Töögraafik, Housekeeping (23 Nov 2026): a käsundus person's days they can come, the day's need and bench under the table */
body.staff .sch-grid.edit td.sch-avail:not(.sch-on) { background-image: radial-gradient(circle, var(--ok-2) 2px, transparent 2.5px); background-position: center; background-repeat: no-repeat; }
body.staff .sch-grid tfoot th, body.staff .sch-grid tfoot td { height: 26px; font-size: .74rem; color: var(--tx-2); background: var(--panel); }
body.staff .sch-grid tfoot td.sch-short { color: var(--bad); font-weight: 600; }
/* Töögraafik, simpler (23 Nov 2026): the group chips, the wait line, who works as one table, a cleaner's own days */
body.staff .sch-groups { margin: 0 0 12px; }
body.staff .sch-wait { color: var(--tx-2); padding: 24px 0; }
body.staff .sch-who td:first-child { width: 28px; }
body.staff .sch-mine { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--ln); max-width: 520px; }
body.staff .sch-mine li { padding: 9px 2px; border-bottom: 1px solid var(--ln); } body.staff .sch-mine b { display: inline-block; min-width: 86px; font-weight: 600; }
body.staff .sch-warns { margin: 0 0 10px; font-size: .9rem; } body.staff .sch-warns > summary { cursor: pointer; color: var(--warn); } body.staff .sch-warns .sch-checks { margin: 6px 0 0; }
body.staff .sch-who { max-width: 760px; }

/* Renewals works like Smartbox (23 Nov 2026): the queues, the card's Sõnumid box, Seaded. Colours from the staff tokens. */
body.staff .rn-q { max-width: 860px; border: 1px solid var(--ln); border-radius: 12px; background: var(--surface); overflow: hidden; }
body.staff .rn-q .sb-filter { padding: 10px 12px; border-bottom: 1px solid var(--ln); }
body.staff .rn-q .sb-filter input[name=q] { width: 100%; }
body.staff .rn-q .sb-items { max-height: none; }
body.staff .rn-q .sb-t:last-child { border-bottom: 0; }
body.staff .rn-batch { max-width: 860px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; margin: 0 0 14px; border: 1px solid var(--ln); border-radius: 12px; background: var(--surface); }
body.staff .rn-auto .rn-msg { border-top: 1px solid var(--ln); padding: 6px 0; font-size: .88rem; }
body.staff .rn-auto .rn-msg summary { cursor: pointer; color: var(--tx-2); }
body.staff .rn-auto .rn-msg.failed summary { color: var(--bad); }
body.staff .rn-msg-body { white-space: pre-wrap; padding: 8px 0 4px; color: var(--tx); }
body.staff .rn-seaded .card { margin-bottom: 14px; }
body.staff .rn-seaded h3 { margin: 18px 0 6px; font-size: .95rem; }
body.staff .rn-st { border-top: 1px solid var(--ln); padding: 8px 0; }
body.staff .rn-st-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
body.staff .rn-st-row .check { flex: 1 1 260px; }
body.staff .rn-st-when { color: var(--tx-2); font-size: .88rem; }
body.staff .rn-st-t { display: grid; grid-template-columns: 2.4em 1fr; gap: 8px; margin: 8px 0; }
body.staff .rn-st-t > span { color: var(--tx-2); font-size: .8rem; padding-top: 8px; }
body.staff .rn-st-t input, body.staff .rn-st-t textarea { width: 100%; margin-bottom: 6px; }
body.staff .rn-save { position: sticky; bottom: 0; padding: 10px 0; background: var(--soft); }
/* The resident's renewal page (/stay/r/<token>) */
.rn-guest .rn-g-box { border: 1px solid var(--ln-2); border-radius: 12px; padding: 16px 18px; margin: 14px 0; background: var(--surface); }
.rn-guest .rn-g-box h2 { margin: 0 0 10px; font-size: 1.1rem; }
.rn-guest .rn-g-box summary { cursor: pointer; font-weight: 600; }
.rn-guest .rn-g-box form { display: grid; gap: 10px; margin-top: 10px; }
.rn-guest .rn-g-box label { display: grid; gap: 4px; }
.rn-guest .rn-g-opt { display: flex !important; grid-template-columns: none; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--ln-2); border-radius: 10px; cursor: pointer; }
.rn-guest .rn-g-opt small { color: var(--tx-2); }
.rn-guest .rn-g-one { margin: 0; font-weight: 600; }
.rn-guest select, .rn-guest textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--ln-2); border-radius: 8px; font: inherit; }
.rn-guest .linklike { background: none; border: 0; padding: 0; color: var(--tx-2); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; }
.rn-guest .rn-g-opt input[type=radio] { width: auto; flex: none; margin: 0; }
.rn-guest .rn-g-opt > span { flex: 1; }
.rn-guest .rn-g-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: -4px 0 4px; }
.rn-guest .rn-g-opt:not(:has(input:checked)) + .rn-g-pay { display: none; }
.rn-guest .rn-g-payopt { display: flex !important; align-items: flex-start; gap: 8px; padding: 10px 12px; border: 1px solid var(--ln-2); border-radius: 10px; cursor: pointer; }
.rn-guest .rn-g-payopt:has(input:checked) { border-color: var(--tx); }
.rn-guest .rn-g-payopt input { width: auto; flex: none; margin: 3px 0 0; }
.rn-guest .rn-g-payopt span { display: grid; gap: 2px; }
.rn-guest .rn-g-payopt small { color: var(--tx-2); }
@media (max-width: 480px) { .rn-guest .rn-g-pay { grid-template-columns: 1fr; } }
/* Renewals → AI tegeleb as an inbox (23 Nov 2026) */
body.staff .rn-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; margin: 0 0 14px; }
body.staff .rn-stats > div { border: 1px solid var(--ln); border-radius: 12px; background: var(--surface); padding: 10px 12px; display: grid; gap: 2px; }
body.staff .rn-stats b { font: 600 1.4rem var(--fh); color: var(--tx); }
body.staff .rn-stats span { font-size: .8rem; color: var(--tx-2); }
body.staff .rn-box { display: flex; gap: 16px; padding: 10px 12px; border-bottom: 1px solid var(--ln); }
body.staff .rn-box a { color: var(--tx-2); text-decoration: none; font-weight: 500; padding-bottom: 2px; border-bottom: 2px solid transparent; }
body.staff .rn-box a.on { color: var(--tx); border-bottom-color: var(--char); }
body.staff .rn-ai .sb-read { padding: 16px 20px; display: grid; gap: 10px; align-content: start; }
body.staff .rn-ai .sb-read h2 { margin: 0; font-size: 1.15rem; }
body.staff .rn-letter { border: 1px solid var(--ln); border-radius: 12px; padding: 14px 16px; background: var(--soft); }
body.staff .rn-fbform { display: grid; gap: 8px; }
body.staff .rn-fbform textarea { width: 100%; }
body.staff .rn-fb { font-size: .75rem; border-radius: 999px; padding: 1px 8px; }
body.staff .rn-fb-good { background: var(--ok-bg); color: var(--ok); }
body.staff .rn-fb-bad { background: var(--bad-bg); color: var(--bad); }
/* Renewals board cards (24 Nov 2026): Stays %, what happened last, what comes next; red when the next step's day has passed. */
body.staff .rn-board .rn-c1 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: var(--tx); }
body.staff .rn-board .rn-stay { font-size: .8rem; font-weight: 600; color: var(--tx); white-space: nowrap; }
body.staff .rn-board .rn-last, body.staff .rn-board .rn-next { font-size: .8rem; color: var(--tx-2); }
body.staff .rn-board .rn-last i, body.staff .rn-board .rn-next i { font-style: normal; font-weight: 600; color: var(--tx); margin-right: 2px; }
body.staff .rn-board .rn-next { color: var(--tx); }
body.staff .rn-board .bcard.rn-late .rn-next, body.staff .rn-board .bcard.rn-late .rn-next i { color: var(--bad); }
/* The client's renewal page, redesigned (Janek, 24 Nov 2026): the offer card first ending in "Send to Larsen", OR, the chat box; the
   full-screen chat. Pay options show only under the picked length (CSS only). */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rn-guest .rn-g-q { font-size: 1.75rem; line-height: 1.1; margin: 6px 0 4px; }
.rn-guest .rn-g-card { background: var(--card); border: 1px solid var(--ln); border-radius: 20px; padding: 16px; margin: 14px 0 10px; }
.rn-guest .rn-g-card form { display: grid; gap: 10px; }
.rn-guest .rn-g-price { display: flex; align-items: baseline; gap: 8px; }
.rn-guest .rn-g-price b { font-size: 2.3rem; line-height: 1; letter-spacing: -.02em; } .rn-guest .rn-g-price b small { font-size: .95rem; font-weight: 500; color: var(--tx-2); }
.rn-guest .rn-g-price > span { color: var(--tx-2); }
.rn-guest .rn-g-tag { justify-self: start; background: var(--save-bg); color: var(--save); border-radius: 999px; padding: 3px 12px; font-size: .9rem; font-weight: 500; }
.rn-guest .rn-g-h { margin: 2px 0 0; font-weight: 600; font-size: .92rem; }
.rn-guest .rn-g-lens { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.rn-guest .rn-g-len { position: relative; display: block; cursor: pointer; }
.rn-guest .rn-g-len input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rn-guest .rn-g-len span { display: grid; gap: 1px; text-align: center; border: 1px solid var(--ln-2); border-radius: 14px; padding: 10px 6px; }
.rn-guest .rn-g-len small { color: var(--tx-2); }
.rn-guest .rn-g-len input:checked + span { background: var(--tx); border-color: var(--tx); color: #fff; } .rn-guest .rn-g-len input:checked + span small { color: var(--ln-2); }
.rn-guest .rn-g-len input:focus-visible + span { outline: 2px solid var(--tx); outline-offset: 2px; }
.rn-guest .rn-g-pay { display: none; grid-template-columns: 1fr 1fr; gap: 8px; }
.rn-guest .rn-g-card:has(input[name=months][value="1"]:checked) .rn-g-pay[data-n="1"],
.rn-guest .rn-g-card:has(input[name=months][value="2"]:checked) .rn-g-pay[data-n="2"],
.rn-guest .rn-g-card:has(input[name=months][value="3"]:checked) .rn-g-pay[data-n="3"],
.rn-guest .rn-g-card:has(input[name=months][value="4"]:checked) .rn-g-pay[data-n="4"],
.rn-guest .rn-g-card:has(input[name=months][value="5"]:checked) .rn-g-pay[data-n="5"],
.rn-guest .rn-g-card:has(input[name=months][value="6"]:checked) .rn-g-pay[data-n="6"],
.rn-guest .rn-g-card:has(input[name=months][value="7"]:checked) .rn-g-pay[data-n="7"],
.rn-guest .rn-g-card:has(input[name=months][value="8"]:checked) .rn-g-pay[data-n="8"],
.rn-guest .rn-g-card:has(input[name=months][value="9"]:checked) .rn-g-pay[data-n="9"],
.rn-guest .rn-g-card:has(input[name=months][value="10"]:checked) .rn-g-pay[data-n="10"],
.rn-guest .rn-g-card:has(input[name=months][value="11"]:checked) .rn-g-pay[data-n="11"],
.rn-guest .rn-g-card:has(input[name=months][value="12"]:checked) .rn-g-pay[data-n="12"] { display: grid; }
.rn-guest .rn-g-send { width: 100%; border: 0; border-radius: 999px; background: var(--tx); color: #fff; font: 600 1rem var(--f); padding: 14px 10px; cursor: pointer; }
.rn-guest .rn-g-or { display: flex; align-items: center; gap: 10px; margin: 10px 0; color: var(--tx-2); font-size: .8rem; font-weight: 600; letter-spacing: .08em; }
.rn-guest .rn-g-or::before, .rn-guest .rn-g-or::after { content: ""; flex: 1; height: 1px; background: var(--ln-2); }
.rn-guest .rn-g-chatbox { background: var(--card); border: 1px solid var(--ln); border-radius: 20px; padding: 12px; display: grid; gap: 8px; margin-bottom: 14px; }
.rn-guest .rn-g-chatbox > b { color: var(--accent); padding: 0 4px; }
.rn-guest .rn-g-cont { color: var(--accent); padding: 0 4px; font-weight: 500; }
.rn-guest .rn-g-ask { display: flex; gap: 8px; align-items: center; margin: 0; }
.rn-guest .rn-g-askf { flex: 1; display: flex; border: 2px solid var(--accent); border-radius: 999px; padding: 9px 14px; background: #fff; }
.rn-guest .rn-g-askf input { border: 0; outline: 0; flex: 1; min-width: 0; font: 16px var(--f); background: transparent; padding: 0; }
.rn-guest .rn-g-ask button { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; }
.rn-guest .rn-g-final { position: sticky; bottom: 0; background: var(--card); border-top: 1px solid var(--ln); margin: 16px -16px 0; padding: 12px 16px 16px; text-align: center; font-size: .85rem; color: var(--tx-2); }
.rn-guest .rn-g-final b { color: var(--tx); }
.rn-guest .rn-chat { display: grid; gap: 10px; }
.rn-guest .rn-chat-top { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--ln); padding-bottom: 10px; }
.rn-guest .rn-chat-top a { color: var(--tx); text-decoration: none; font-weight: 500; } .rn-guest .rn-chat-top span { display: grid; } .rn-guest .rn-chat-top small { color: var(--tx-2); }
.rn-guest .rn-chat-log { display: flex; flex-direction: column; gap: 10px; background: var(--soft); border-radius: 20px; padding: 14px; min-height: 40vh; }
.rn-guest .rn-chat-m { max-width: 85%; padding: 11px 13px; line-height: 1.4; white-space: pre-line; }
.rn-guest .rn-chat-m.them { align-self: flex-start; background: #fff; border-radius: 18px 18px 18px 4px; }
.rn-guest .rn-chat-m.me { align-self: flex-end; background: var(--tx); color: #fff; border-radius: 18px 18px 4px 18px; }
.rn-guest .rn-chat-m small { display: block; color: var(--accent); font-weight: 600; }
.rn-guest .rn-chat-chips { display: flex; flex-wrap: wrap; gap: 6px; } .rn-guest .rn-chat-chips form { margin: 0; }
.rn-guest .rn-chat-chips button { border: 1px solid var(--tx); background: #fff; border-radius: 999px; padding: 8px 12px; font: 500 .9rem var(--f); cursor: pointer; }
.rn-guest .rn-g-sofar { display: grid; gap: 8px; background: #fff; border: 2px solid var(--tx); border-radius: 18px; padding: 14px; }
.rn-guest .rn-g-sofar-h { font-size: .8rem; color: var(--tx-2); }
.rn-guest .rn-g-sofar dl { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; margin: 0; } .rn-guest .rn-g-sofar dd { margin: 0; font-weight: 600; }
.rn-guest .rn-g-sofar small { color: var(--tx-2); text-align: center; }
/* The client's chat on the renewal card (24 Nov 2026). */
body.staff .rn-cchat { border-top: 1px solid var(--ln); margin-top: 10px; padding-top: 8px; }
body.staff .rn-cchat h3 { font-size: .95rem; margin: 0 0 6px; } body.staff .rn-cchat-wait { color: var(--bad); font-weight: 500; }
body.staff .rn-cchat-m { margin: 0 0 6px; padding: 8px 10px; border-radius: 10px; background: var(--soft); white-space: pre-line; max-width: 80%; }
body.staff .rn-cchat-m.client { margin-left: auto; background: var(--tint); }
body.staff .rn-cchat-m small { display: block; color: var(--tx-2); font-size: .75rem; } body.staff .rn-cchat-m em { display: block; font-style: normal; font-weight: 600; margin-top: 4px; }
body.staff .rn-cchat-f { display: flex; gap: 8px; align-items: flex-end; } body.staff .rn-cchat-f textarea { flex: 1; }
/* Renewals → Campaigns, Who gets what, How it works (24 Nov 2026). */
body.staff .cp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
body.staff .cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
body.staff .cp-card { background: #fff; border: 1px solid var(--ln); border-radius: 12px; padding: 14px; display: grid; gap: 6px; }
body.staff .cp-card.live { border: 2px solid var(--accent); }
body.staff .cp-card > a { display: grid; gap: 5px; color: var(--tx); text-decoration: none; }
body.staff .cp-card small { font-size: .8rem; } body.staff .cp-big { font-size: 1.5rem; letter-spacing: -.02em; }
body.staff .cp-top { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; } body.staff .cp-top form { margin: 0; }
body.staff .cp-on { color: var(--ok); font-weight: 600; }
body.staff .cp-swbtn { border: 0; background: none; padding: 4px; cursor: pointer; }
body.staff .cp-sw { display: inline-block; width: 36px; height: 20px; border-radius: 999px; background: var(--ln-2); position: relative; vertical-align: middle; }
body.staff .cp-sw i { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
body.staff .cp-sw.on { background: var(--tx); } body.staff .cp-sw.on i { left: auto; right: 3px; }
body.staff .cp-rules { display: flex; flex-wrap: wrap; gap: 8px 24px; border: 1px dashed var(--ln-2); border-radius: 12px; padding: 12px 16px; margin-top: 14px; font-size: .88rem; }
body.staff .cp-edit-head { display: flex; justify-content: space-between; align-items: center; } body.staff .cp-edit-head h2 { margin: 0; }
body.staff .cp-sentence { font-family: var(--fh); font-size: 1.25rem; background: #fff; border-radius: 12px; padding: 14px 18px; }
body.staff .cp-steps { display: grid; gap: 12px; }
body.staff .cp-step { display: grid; grid-template-columns: 26px 140px minmax(0, 1fr); gap: 10px; align-items: start; }
body.staff .cp-step > i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; background: var(--tx); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 600; }
body.staff .cp-chips { display: flex; flex-wrap: wrap; gap: 6px; } body.staff .cp-chips small { flex-basis: 100%; }
body.staff .cp-chip { cursor: pointer; } body.staff .cp-chip input { position: absolute; opacity: 0; }
body.staff .cp-chip span { display: inline-block; border-radius: 999px; padding: 4px 11px; background: var(--soft); font-size: .85rem; border: 1px solid var(--ln); }
body.staff .cp-chip input:checked + span { background: var(--tx); color: #fff; border-color: var(--tx); } body.staff .cp-chip input:focus-visible + span { outline: 2px solid var(--tx); }
body.staff .cp-write { display: grid; gap: 10px; } body.staff .cp-write h2 { display: flex; justify-content: space-between; gap: 8px; }
body.staff .cp-by { font-size: .75rem; color: var(--tint-tx); background: var(--tint); border-radius: 999px; padding: 2px 9px; font-family: var(--f); font-weight: 600; }
body.staff .cp-lang { display: grid; gap: 6px; border-top: 1px solid var(--ln); padding-top: 8px; } body.staff .cp-lang label { display: grid; gap: 3px; font-size: .85rem; }
body.staff .cp-preview { background: var(--tint); border-radius: 10px; padding: 10px 12px; display: grid; gap: 3px; font-size: .9rem; }
body.staff .cp-ask { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin: 12px 0; } body.staff .cp-ask label { flex: 1 1 320px; display: grid; gap: 4px; }
body.staff .cp-who-wrap { overflow-x: auto; }
body.staff .cp-who { width: 100%; border-collapse: separate; border-spacing: 6px; background: #fff; border-radius: 12px; padding: 6px; font-size: .86rem; min-width: 900px; }
body.staff .cp-who th { text-align: left; vertical-align: top; font-weight: 600; } body.staff .cp-who th small { display: block; font-weight: 400; color: var(--tx-2); }
body.staff .cp-sq { background: var(--soft); border-radius: 8px; padding: 8px; vertical-align: top; } body.staff .cp-sq.person { background: #fff; border: 2px solid var(--accent); }
body.staff .cp-debt th { color: var(--tint-tx); }
body.staff .cp-tag { display: inline-block; margin: 6px 4px 0 0; border: 1px solid var(--tx-2); color: var(--tx-2); border-radius: 999px; padding: 1px 9px; font-size: .78rem; text-decoration: none; }
body.staff .cp-tag.on { background: var(--accent); border-color: var(--accent); color: #fff; }
body.staff .hw-sub { display: flex; gap: 8px; margin: 4px 0 14px; } body.staff .hw-sub a { border: 1px solid var(--ln-2); border-radius: 999px; padding: 5px 14px; color: var(--tx); text-decoration: none; font-size: .9rem; }
body.staff .hw-sub a.on { background: var(--tx); color: #fff; border-color: var(--tx); }
body.staff .hw-line { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; padding: 0; margin: 10px 0; position: relative; }
body.staff .hw-line::before { content: ""; position: absolute; left: 8%; right: 8%; top: 34px; height: 2px; background: var(--ln-2); }
body.staff .hw-line li { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: .85rem; position: relative; }
body.staff .hw-line i { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--tx); margin: 6px 0; }
body.staff .hw-line i.first { background: var(--accent); border-color: var(--accent); } body.staff .hw-line i.last { background: var(--tx); }
body.staff .hw-line span { background: var(--soft); border-radius: 8px; padding: 3px 9px; } body.staff .hw-line small { color: var(--tx-2); }
body.staff .hw-h { font-size: 1.1rem; margin: 18px 0 8px; }
body.staff .hw-four { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 14px; }
body.staff .hw-four .card { display: grid; gap: 6px; align-content: start; } body.staff .hw-four .card.hw-p { border: 2px solid var(--accent); }
body.staff .hw-you { font-weight: 600; color: var(--accent); font-size: .88rem; }
body.staff .hw-tries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; font-size: .8rem; } body.staff .hw-tries em { font-style: normal; background: var(--tint); border-radius: 8px; padding: 6px 2px; }
body.staff .hw-ok { color: var(--ok); } body.staff .hw-bad { color: var(--accent); } body.staff .hw-more { margin-top: 12px; }

/* Marketing, 24 Nov 2026: two tabs. "More" opens the other pages, a page under Today says where it belongs in one line,
   and the SEO page lists the site check's points as rows that open. */
body.staff .mk-tabs { overflow: visible; flex-wrap: wrap; align-items: center; }
body.staff .mk-more-menu { position: relative; }
body.staff .mk-more-menu summary { list-style: none; cursor: pointer; color: var(--tx-3); font-size: .88rem; padding: 10px 0; }
body.staff .mk-more-menu summary::-webkit-details-marker { display: none; }
body.staff .mk-more-menu summary::after { content: " ▾"; font-size: .7rem; }
body.staff .mk-more-menu[open] summary, body.staff .mk-more-menu summary:hover { color: var(--tx); }
body.staff .mk-more-menu > div { position: absolute; right: 0; top: 100%; z-index: 20; min-width: 190px; background: #fff; border: 1px solid var(--ln); border-radius: var(--radius); padding: 6px; display: grid; }
body.staff .mk-tabs .mk-more-menu > div a { padding: 7px 10px; margin: 0; border: 0; border-radius: 8px; font-weight: 400; color: var(--tx); display: flex; justify-content: space-between; gap: 12px; }
body.staff .mk-tabs .mk-more-menu > div a:hover, body.staff .mk-tabs .mk-more-menu > div a.on { background: var(--panel); border: 0; }
body.staff .mk-crumb { display: flex; gap: 8px; align-items: center; margin: -6px 0 16px; font-size: .88rem; color: var(--tx-3); }
body.staff .mk-crumb a { color: var(--tx-2); text-decoration: none; }
body.staff .mk-crumb a:hover { color: var(--tx); text-decoration: underline; }
body.staff .mk-crumb b { color: var(--tx); font-weight: 500; }
body.staff .mk-checks { list-style: none; margin: 4px 0 12px; padding: 0; }
body.staff .mk-checks > li { border-top: 1px solid var(--ln); }
body.staff .mk-checks > li:first-child { border-top: 0; }
body.staff .mk-checks summary { display: grid; grid-template-columns: 14px minmax(180px, 1fr) minmax(0, 2fr); gap: 12px; align-items: baseline; padding: 10px 0; cursor: pointer; list-style: none; }
body.staff .mk-checks summary::-webkit-details-marker { display: none; }
body.staff .mk-checks summary::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); align-self: center; }
body.staff .mk-checks li.unknown summary::before { background: var(--tx-3); }
body.staff .mk-checks summary span { color: var(--tx-2); font-size: .88rem; }
body.staff .mk-checks li.ok summary::before { background: var(--ok); }
body.staff .mk-checks li.doing summary::before { background: var(--warn); }
body.staff .mk-ai .mk-checks summary { grid-template-columns: 14px minmax(0, 3fr) minmax(0, 1fr); }
body.staff .mk-ai .mk-ai-step { margin: 0 0 12px 26px; }
body.staff .mk-ai .mk-ai-step input[name="owner"] { width: 110px; }
body.staff .mk-ai .mk-more-d { margin-top: 8px; }
body.staff .mk-ai .mk-more-d .mk-ask { margin-top: 8px; }
body.staff .mk-ai-board td:nth-child(2), body.staff .mk-ai-board td:nth-child(3) { white-space: nowrap; }
body.staff .mk-checks details > p, body.staff .mk-checks details > ul { margin: 0 0 10px 26px; font-size: .88rem; }
body.staff .mk-checks details > p { color: var(--tx); }
body.staff .mk-checks details > ul { color: var(--tx-2); padding-left: 16px; columns: 2; column-gap: 28px; }
@media (max-width: 700px) { body.staff .mk-checks summary { grid-template-columns: 14px 1fr; } body.staff .mk-checks summary span { grid-column: 2; } body.staff .mk-checks details > ul { columns: 1; } body.staff .mk-nums.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Partners (/app/partners, 24 Nov 2026): the pipeline as a board or a table, the partner's card, the templates */
body.staff .pt-sub { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; color: var(--tx-2); margin: 0 0 14px; font-size: .92rem; }
body.staff .pt-sub a { color: var(--tx-2); text-decoration: none; } body.staff .pt-sub a.on { color: var(--tx); font-weight: 600; }
body.staff .pt-warn { color: var(--warn); } body.staff .pt-ok { color: var(--ok); }
body.staff .pt-add { margin: 0 0 16px; } body.staff .pt-add > summary { cursor: pointer; color: var(--tx-2); padding: 4px 0; }
body.staff .pt-form { display: grid; gap: 10px; margin-top: 8px; max-width: 760px; }
body.staff .pt-form label { display: grid; gap: 4px; font-size: .85rem; color: var(--tx-2); }
body.staff .pt-form textarea { font: inherit; line-height: 1.5; }
body.staff .pt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } body.staff .pt-grid .wide, body.staff .pt-grid > div { grid-column: 1 / -1; }
body.staff .pt-form label.pt-tick { display: flex; align-items: center; gap: 6px; color: var(--tx); font-size: .92rem; }
body.staff .pt-scroll { overflow-x: auto; }
body.staff .pt-board { display: grid; grid-template-columns: repeat(6, minmax(176px, 1fr)); gap: 10px; min-width: 1100px; align-items: start; }
body.staff .pt-col { background: var(--panel); border-radius: 10px; padding: 10px; display: grid; gap: 8px; }
body.staff .pt-col h2 { font: 600 .82rem var(--f); margin: 0; display: flex; justify-content: space-between; } body.staff .pt-col h2 span { color: var(--tx-2); font-weight: 500; }
body.staff .pt-card { display: grid; gap: 3px; background: var(--surface); border: 1px solid var(--ln); border-radius: 8px; padding: 8px 10px; text-decoration: none; color: var(--tx); font-size: .88rem; }
body.staff .pt-card:hover { border-color: var(--ln-2); color: var(--tx); }
body.staff .pt-card small { color: var(--tx-2); font-size: .8rem; } body.staff .pt-card small.pt-warn { color: var(--warn); }
body.staff .pt-lad { font-size: .76rem; color: var(--tx-2); border-top: 1px solid var(--ln); padding-top: 4px; margin-top: 2px; } body.staff .pt-lad em { font-style: normal; font-weight: 600; color: var(--ok); }
body.staff .pt-table td, body.staff .pt-table th { vertical-align: top; } body.staff .pt-table a { text-decoration: none; }
body.staff .pt-seg td { padding-top: 16px; font-weight: 600; } body.staff .pt-seg td span { font-weight: 400; }
body.staff .pt-tpls { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
body.staff .pt-tpl h2 { margin: 0 0 8px; } body.staff .pt-for { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--tx-2); font-weight: 600; margin: 0 0 4px; }
body.staff .pt-tpl dl, body.staff .pt-dl { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 6px 10px; margin: 0 0 10px; font-size: .9rem; }
body.staff .pt-tpl dt, body.staff .pt-dl dt { color: var(--tx-2); } body.staff .pt-tpl dd, body.staff .pt-dl dd { margin: 0; }
body.staff .pt-rec { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 32px; align-items: start; } body.staff .pt-rec > * { min-width: 0; }
body.staff .pt-name { font-size: 1.5rem; margin: 0 0 4px; }
body.staff .pt-body { white-space: pre-wrap; margin: 6px 0 0; }
body.staff .pt-fold { border-top: 1px solid var(--ln); padding: 10px 0; } body.staff .pt-fold > summary { cursor: pointer; font-weight: 600; }
@media (max-width: 860px) { body.staff .pt-rec, body.staff .pt-grid { grid-template-columns: 1fr; } }
body.staff .pt-how { margin: 0 0 26px; } body.staff .pt-how h2 { margin: 0 0 10px; }
body.staff .pt-path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border-top: 2px solid var(--tx); }
body.staff .pt-path li { display: grid; gap: 4px; align-content: start; padding: 10px 14px 10px 0; font-size: .88rem; color: var(--tx-2); position: relative; }
body.staff .pt-path li b { color: var(--tx); font-size: .95rem; } body.staff .pt-path .pt-n { font-size: .78rem; color: var(--tx-3); }
body.staff .pt-path li::before { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--tx); }
body.staff .pt-path li.pt-stop::before { background: var(--char); } body.staff .pt-path li.pt-stop b { color: var(--char-2); }
body.staff .pt-list { margin: 0; padding: 0; list-style: none; } body.staff .pt-list li { padding: 7px 0; border-bottom: 1px solid var(--ln); }
/* The board card (24 Nov 2026): the AI's cards are marked at a glance; the campaign the AI sent shows as a chip. */
body.staff .rn-board .bcard.rn-ai { border-left: 3px solid var(--accent); background: var(--tint); }
body.staff .rn-board .rn-chips { display: flex; flex-wrap: wrap; gap: 4px; }
body.staff .rn-board .rn-aitag { background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: .72rem; font-weight: 600; }
body.staff .rn-board .rn-camp { border: 1px solid var(--accent); color: var(--tint-tx); background: #fff; border-radius: 999px; padding: 0 8px; font-size: .72rem; font-weight: 600; }
/* The renewal card like a Smartbox ticket (24 Nov 2026): Now in the centre, the client's answer, one timeline, the rest in folds. */
body.staff .rn-lane { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 600; background: var(--soft); border: 1px solid var(--ln-2); color: var(--tx); }
body.staff .rn-lane-ai { background: var(--accent); border-color: var(--accent); color: #fff; } body.staff .rn-lane-sales { background: var(--tx); border-color: var(--tx); color: #fff; }
body.staff .rn-lane-renewing { background: var(--ok-bg); border-color: var(--ok-2); color: var(--ok); }
body.staff .rn-now { display: grid; gap: 10px; border: 2px solid var(--ln-2); }
body.staff .rn-now-ai { border-color: var(--accent); background: var(--tint); } body.staff .rn-now-sales { border-color: var(--tx); }
body.staff .rn-now h2 { margin: 0; font-size: 1.25rem; } body.staff .rn-now-top { display: flex; gap: 8px; align-items: center; }
body.staff .rn-now-next { margin: 0; font-size: 1rem; } body.staff .rn-now-next b { margin-right: 6px; }
body.staff .rn-late-t { color: var(--bad); font-weight: 600; }
body.staff .rn-case { display: grid; gap: 6px; } body.staff .rn-acts { display: flex; flex-wrap: wrap; gap: 8px; } body.staff .rn-acts form { margin: 0; }
body.staff .rn-ans { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 12px; margin: 0; font-size: .9rem; } body.staff .rn-ans dt { color: var(--tx-2); } body.staff .rn-ans dd { margin: 0; }
body.staff .rn-answer h3, body.staff .rn-timeline h3 { margin: 0 0 8px; font-size: 1rem; }
body.staff .rn-tl { display: grid; gap: 10px; margin: 8px 0 0; } body.staff .rn-tl li { border-left: 3px solid var(--ln-2); padding-left: 10px; }
body.staff .rn-tl li p { margin: 2px 0 0; white-space: pre-line; } body.staff .rn-tl li summary { cursor: pointer; }
body.staff .rn-tl-out { border-left-color: var(--accent) !important; } body.staff .rn-tl-chat { border-left-color: var(--info) !important; } body.staff .rn-tl-client { border-left-color: var(--tx) !important; }
body.staff .rn-fold-card > details > summary, body.staff .rn-fold-card > details > summary { cursor: pointer; }
body.staff .rn-fold-card .rn-step h3 { font-size: 1rem; margin: 12px 0 6px; }
/* /koristus: the house on every task, highlighted when it is not the cleaner's house that day; the sanity table (24 Nov 2026) */
body.hk .hk-track .hk-chip { min-width: 70px; }   /* a 10-min arrival check still shows its house and room */
body.hk .hk-track .hk-chip .hk-htag { display: table; margin: 0 auto 2px; }   /* the house on its own line above the room */
body.hk .hk-track .hk-chip > span:last-child { display: block; overflow: hidden; text-overflow: ellipsis; }
body.hk .hk-chip .hk-htag, body.hk .hk-legend .hk-htag { font-size: .64rem; font-weight: 600; line-height: 1.3; padding: 0 5px; border-radius: 5px; margin-right: 4px; background: var(--panel); color: var(--tx-2); }
body.hk .hk-htag.away { background: var(--char); color: #fff; }
/* Who gets what: a square opens its panel (24 Nov 2026). */
body.staff .cp-who-grid.with { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; align-items: start; }
@media (max-width: 1100px) { body.staff .cp-who-grid.with { grid-template-columns: 1fr; } }
body.staff .cp-sqa { color: var(--tx); text-decoration: none; display: block; } body.staff .cp-sqa:hover { text-decoration: underline; }
body.staff .cp-sq.sel { outline: 2px solid var(--accent); }
body.staff .cp-panel { display: grid; gap: 10px; position: sticky; top: 12px; }
body.staff .cp-panel-h { display: flex; justify-content: space-between; align-items: flex-start; } body.staff .cp-panel-h h2 { margin: 2px 0 0; font-size: 1.1rem; }
body.staff .cp-panel-h > a { font-size: 1.4rem; color: var(--tx-2); text-decoration: none; }
body.staff .cp-msg summary { cursor: pointer; font-size: .88rem; } body.staff .cp-msg .rn-msg-body { white-space: pre-line; background: var(--soft); border-radius: 8px; padding: 8px 10px; margin: 6px 0; font-size: .85rem; }
body.staff .cp-pcamp { display: flex; justify-content: space-between; gap: 10px; align-items: center; } body.staff .cp-pcamp form { margin: 0; }
body.staff .cp-next { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 4px 10px; margin: 0; font-size: .88rem; } body.staff .cp-next dt { color: var(--tx-2); } body.staff .cp-next dd { margin: 0; }
/* Koristus → Reeglid: a sample task on each rule card (24 Nov 2026) */
body.hk .hk-rule-chip { display: inline-flex; flex-direction: column; align-items: center; justify-self: start; min-width: 96px; padding: 6px 12px; }
body.hk .hk-rule-chip .hk-htag { margin: 0 0 2px; }
body.hk .hw-four .card, body.hk .hk-rules-check { background: var(--surface); border: 1px solid var(--ln); border-radius: 12px; padding: 14px 16px; }   /* white cards as in Renewals */
body.hk .hw-four .card.hw-p { border: 2px solid var(--char); }
/* The client's card, "Card D" (24 Nov 2026): three lines, the buttons, one thread like an inbox; the client's rows stand out. */
body.staff .rn-head-d h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
body.staff .rn-sum dl { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 10px 16px; margin: 0; font-size: 1.02rem; line-height: 1.4; }
body.staff .rn-sum dt { color: var(--tx-2); } body.staff .rn-sum dd { margin: 0; }
body.staff .rn-thread { padding: 0; overflow: hidden; }
body.staff .rn-th-row { border-bottom: 1px solid var(--ln); } body.staff .rn-th-row:last-child { border-bottom: 0; } body.staff .rn-th-row.c { background: var(--tint); }
body.staff div.rn-th-row, body.staff .rn-th-row > summary { display: grid; grid-template-columns: 90px 96px 96px minmax(0, 1fr); gap: 10px; padding: 11px 18px; font-size: .9rem; align-items: baseline; }
body.staff .rn-th-row > summary { cursor: pointer; list-style: none; } body.staff .rn-th-row > summary::-webkit-details-marker { display: none; }
body.staff .rn-th-who { color: var(--tx-2); } body.staff .rn-th-who.c { color: var(--tx); font-weight: 600; }
body.staff .rn-th-what { overflow-wrap: anywhere; }
body.staff .rn-th-body { padding: 0 18px 12px 310px; display: grid; gap: 8px; } @media (max-width: 900px) { body.staff .rn-th-body { padding-left: 18px; } }
body.staff .rn-th-msg { background: var(--soft); border-radius: 8px; padding: 10px 12px; white-space: pre-line; font-size: .88rem; display: grid; gap: 2px; }
body.staff .rn-th-msg small { color: var(--tx-2); font-size: .72rem; letter-spacing: .04em; }
body.staff .rn-th-more > summary { padding: 10px 18px; cursor: pointer; font-size: .85rem; color: var(--tx-2); } body.staff .rn-th-none { padding: 14px 18px; margin: 0; }
body.staff .rn-repbox .rn-owner { display: grid; gap: 6px; }
body.staff .rn-sbx .rn-fold-card { padding: 10px 16px; } body.staff .rn-sbx .rn-fold-card > details[open] { padding-bottom: 8px; }
body.staff .rn-sbx .rn-acts { margin: 0; }
/* Renewals card, two views (25 Nov 2026): the AI's monitor ("What the AI decides from") and the person's workplace (task, Before
   you call, After the call). */
body.staff .rn-bg { background: var(--tint); border: 0; }
body.staff .rn-bg h3, body.staff .rn-before h3, body.staff .rn-after h3 { margin: 0 0 10px; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--tx-2); }
body.staff .rn-bg h3 { color: var(--tint-tx); }
body.staff .rn-bg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 20px; margin: 0 0 8px; font-size: .92rem; }
body.staff .rn-bg-grid dt { font-weight: 600; } body.staff .rn-bg-grid dd { margin: 0; }
body.staff .rn-task { border: 2px solid var(--tx); border-radius: 12px; padding: 16px 20px; }
body.staff .rn-task-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; margin-bottom: 12px; }
body.staff .rn-task-h b { font-size: 1.2rem; }
body.staff .rn-task .rn-acts { margin: 0; }
body.staff .rn-bg-list { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 16px; margin: 0 0 12px; line-height: 1.45; }
body.staff .rn-bg-list dt { color: var(--tx-2); } body.staff .rn-bg-list dd { margin: 0; }
body.staff .rn-howto { background: var(--tint); border-radius: 10px; padding: 12px 16px; }
body.staff .rn-howto p { margin: 4px 0 0; white-space: pre-line; }
body.staff .rn-after .rn-step { margin: 0; padding: 0; border: 0; }
@media (max-width: 760px) { body.staff .rn-bg-grid { grid-template-columns: minmax(0, 1fr); } body.staff .rn-bg-list { grid-template-columns: minmax(0, 1fr); gap: 2px; } body.staff .rn-bg-list dd { margin-bottom: 8px; } }
/* Koristus: the sanity check's own heading and badge (24 Nov 2026) */
body.hk .hk-check-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 6px; }
body.hk .hk-check-h h3 { margin: 0; font-size: 1rem; }
body.hk .hk-check-badge { font-size: .78rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--ln-2); color: var(--tx-2); }
body.hk .hk-check-badge.ok { color: var(--ok); border-color: var(--ok); }
body.hk .hk-check-badge.bad { color: #fff; background: var(--bad); border-color: var(--bad); }
body.hk .hk-sanity { display: block; width: 100%; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ln); }   /* own class: hk-check is the checkbox row */
body.hk .hk-sanity table { width: 100%; margin: 0; }

/* Vahekoristused (Indrek, 24 Nov 2026): add fold, filters, the "Veel" menu per row, the list-vs-plan check. */
body.hk .hk-addfold { position: relative; }
body.hk .hk-addfold > summary { list-style: none; cursor: pointer; }
body.hk .hk-addfold > summary::-webkit-details-marker { display: none; }
body.hk .hk-addfold[open] > .hk-add { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: min(560px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--ln); border-radius: 12px; padding: 14px; }
body.hk .hk-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: -8px 0 14px; font-size: .9rem; color: var(--tx-2); }
body.hk .hk-filters select { margin-left: 6px; }
body.hk .hk-more { position: relative; }
body.hk .hk-more > summary { list-style: none; cursor: pointer; font-size: .85rem; color: var(--tx-2); border: 1px solid var(--ln-2); border-radius: 8px; padding: 4px 10px; display: inline-block; background: var(--surface); }
body.hk .hk-more > summary::-webkit-details-marker { display: none; }
body.hk .hk-more-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 280px; background: var(--surface); border: 1px solid var(--ln); border-radius: 12px; padding: 12px; display: grid; gap: 12px; text-align: left; }
body.hk .hk-more-menu .stack { display: grid; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--ln); }
body.hk .hk-more-menu label { display: grid; gap: 2px; font-size: .85rem; color: var(--tx-2); }
body.hk .hk-more-menu button.btn { justify-self: start; }
body.hk .linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--char-2); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
body.hk .hk-check { margin: 0 0 14px; }
body.hk .hk-check.ok b { color: var(--ok); }
body.hk details.hk-check.bad { border: 1px solid var(--ln); border-radius: 12px; padding: 10px 14px; background: var(--surface); }
body.hk details.hk-check.bad > summary { cursor: pointer; }
body.hk details.hk-check.bad > summary b { color: var(--bad); }
body.hk details.hk-check ul { margin: 4px 0 10px; padding-left: 18px; }
@media (max-width: 700px) { body.hk .hk-more-menu { position: fixed; left: 16px; right: 16px; top: auto; bottom: 16px; width: auto; max-height: 75vh; overflow: auto; } }
body.hk .hk-filters label { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
body.hk .hk-filters select { margin: 0; width: auto; padding: 5px 8px; font-size: .9rem; }
body.hk details.hk-more { border: 0; padding: 0; margin: 0; background: none; }
body.hk .hk-more-menu .stack { gap: 4px; } body.hk .hk-more-menu label input, body.hk .hk-more-menu label select { padding: 5px 8px; }

/* Articles as a book (Janek, 26 Nov 2026, option B): the list on the left, the one article open on the right, the lessons */
body.staff .ar-book { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { body.staff .ar-book { grid-template-columns: 1fr; } }
body.staff .ar-list { display: grid; gap: 2px; font-size: .92rem; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
body.staff .ar-list h3 { font: 600 .85rem var(--f); color: var(--tx-2); margin: 14px 10px 4px; display: flex; gap: 6px; align-items: center; }
body.staff .ar-list h3:first-child { margin-top: 0; }
body.staff .ar-list h3 a { color: var(--tx-2); text-decoration: none; } body.staff .ar-list h3 a.on, body.staff .ar-list h3 a:hover { color: var(--tx); }
body.staff .ar-list details > summary { list-style: none; cursor: pointer; } body.staff .ar-list details > summary::-webkit-details-marker { display: none; }
body.staff .ar-item { display: block; padding: 8px 10px; border-radius: var(--radius-sm); text-decoration: none; color: var(--tx); line-height: 1.3; }
body.staff .ar-item:hover { background: var(--side-on); }
body.staff .ar-item.on { background: var(--surface); box-shadow: inset 3px 0 0 var(--char); font-weight: 600; }
body.staff .ar-item small { display: block; color: var(--tx-2); font-size: .78rem; font-weight: 400; margin-top: 2px; }
body.staff .ar-none { margin: 2px 10px; }
body.staff .ar-new { background: var(--tint-2); color: var(--tint-tx); border-radius: 10px; padding: 0 7px; font-size: .75rem; }
body.staff .ar-pane { padding: 22px 28px; }
body.staff .ar-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--ln); margin-bottom: 10px; }
body.staff .ar-pos { flex: 1 1 auto; color: var(--tx-2); font-size: .88rem; }
body.staff .ar-pos a { text-decoration: none; padding: 0 6px; font-size: 1.1rem; }
body.staff .ar-edit .ar-title { font: 600 1.45rem/1.25 var(--fh); border: 1px solid transparent; background: transparent; padding: 4px 6px; width: 100%; }
body.staff .ar-edit .ar-title:hover, body.staff .ar-edit .ar-title:focus { border-color: var(--ln); background: var(--surface); }
body.staff .ar-edit input[name=meta] { width: 100%; color: var(--tx-2); }
body.staff .ar-edit .ar-text { min-height: 560px; font-size: .98rem; line-height: 1.6; }
body.staff .ar-ask { display: flex; gap: 8px; align-items: stretch; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--ln); }
body.staff .ar-ask textarea { flex: 1 1 auto; min-height: 44px; }
body.staff .ar-lesson { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; background: var(--soft); border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 12px; }
body.staff .ar-lesson p { flex: 1 1 320px; margin: 0; line-height: 1.45; }
body.staff .ar-lesson-row { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--ln); }
body.staff .ar-lesson-row input[name=text] { width: 100%; }
body.staff .ar-dlg { padding: 22px 24px; display: grid; gap: 10px; } body.staff .ar-dlg h3, body.staff .mk-dialog form > h3 { margin: 0 0 6px; }
body.staff .mk-dialog form > input[name=note] { margin-bottom: 10px; }
/* Stories (26 Nov 2026): the point, the photos as they will show, the photo library */
body.staff .ar-point { margin: 4px 0 8px; font-size: .95rem; } body.staff .ar-point .muted { margin-right: 6px; }
body.staff .ar-photos { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 6px 0 12px; }
body.staff .ar-ph { margin: 0; width: 150px; } body.staff .ar-ph img { width: 150px; height: 100px; object-fit: cover; border-radius: var(--radius-sm); display: block; background: var(--panel); }
body.staff .ar-ph figcaption { font-size: .75rem; color: var(--tx-2); margin-top: 4px; line-height: 1.3; }
/* The cover picker (27 Nov 2026, covers.js): free covers as thumbnails; one in use elsewhere greyed with its title. */
body.staff .ar-covers { margin: 0 0 12px; } body.staff .ar-covers summary { cursor: pointer; }
body.staff .ar-covs { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; margin-top: 10px; }
body.staff .ar-cov { position: relative; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); background: var(--panel); cursor: pointer; overflow: hidden; aspect-ratio: 1 / 1; }
body.staff .ar-cov img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.staff .ar-cov:hover:not(:disabled) { border-color: var(--accent); }
body.staff .ar-cov.on { border-color: var(--tx); cursor: default; }
body.staff .ar-cov:disabled:not(.on) { cursor: not-allowed; } body.staff .ar-cov:disabled:not(.on) img { opacity: .35; filter: grayscale(1); }
body.staff .ar-cov small { position: absolute; left: 4px; right: 4px; bottom: 4px; font-size: .68rem; line-height: 1.2; color: var(--tx); background: var(--card); border-radius: 4px; padding: 2px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.staff .ar-ph.bad img { outline: 2px solid var(--bad); }
body.staff .ar-upload { margin: 10px 0 18px; padding: 14px; background: var(--soft); border-radius: var(--radius-sm); }
body.staff .ar-libs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
body.staff .ar-lib { display: grid; gap: 6px; } body.staff .ar-lib img { width: 100%; height: 150px; object-fit: cover; border-radius: var(--radius-sm); background: var(--panel); }
body.staff .ar-lib input { width: 100%; font-size: .85rem; }
body.staff .ar-resection { margin: 8px 0 12px; padding: 12px 14px; background: var(--soft); border-radius: var(--radius-sm); }

/* The 30-minute clock on the guest's contract page (PMS flow, Ottomar 26 Nov 2026): sticky under the top bar while they read. */
.lp-timer { position: sticky; top: 72px; z-index: 20; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; border: 1px solid var(--ln); border-radius: var(--r-md); padding: 12px 18px; margin: 14px 0; background: var(--card); }
.lp-timer .lp-clock { font: 600 28px/1 var(--f); color: var(--accent); font-variant-numeric: tabular-nums; }
.lp-timer.soon .lp-clock { color: #a4372a; }
.lp-timer.over { background: var(--soft); }
.lp-timer.over .lp-clock { color: var(--tx-3); }
/* The guest's contract page always light (Ottomar, 26 Nov 2026: in dark mode and with autofill the name field turned dark
   with dark text, so the guest could not see what they typed). Every field there gets the card's white and the text colour. */
.lp-guest { color-scheme: light; }
.lp-guest input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .lp-guest textarea, .lp-guest select {
  background-color: var(--card); color: var(--tx); -webkit-text-fill-color: var(--tx); caret-color: var(--tx); }
.lp-guest input:-webkit-autofill, .lp-guest input:-webkit-autofill:hover, .lp-guest input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 60px var(--card) inset; box-shadow: 0 0 0 60px var(--card) inset; -webkit-text-fill-color: var(--tx); transition: background-color 9999s; }
.lp-guest input::placeholder { color: var(--tx-3); -webkit-text-fill-color: var(--tx-3); }
/* Signing waits for the ID document (Ottomar, 26 Nov 2026): the form is shown but closed until the upload. */
.lp-need-id { border: 1px solid #f0d48a; background: #fff6e0; color: #5c4300; border-radius: var(--r-sm); padding: 12px 16px; margin: 0 0 12px; font-size: 15px; }
.lp-need-id a { color: inherit; font-weight: 600; text-decoration: none; }
.lp-sign.lp-locked { opacity: .45; pointer-events: none; user-select: none; }
.lp-guest input[type="file"] { background-color: var(--card); color: var(--tx); border: 1px solid var(--ln-2); border-radius: var(--r-sm); padding: 8px; }
.lp-guest input[type="file"]::file-selector-button { background: var(--soft); color: var(--tx); border: 1px solid var(--ln-2); border-radius: 6px; padding: 6px 12px; margin-right: 10px; font: inherit; cursor: pointer; }
/* The page's notices stay light too (the green "we have your document" turned dark green on dark in a dark-mode browser). */
.lp-guest .notice { color-scheme: light; }
.lp-guest .notice.ok { background: var(--save-bg); color: var(--save); border-color: #c9e2cf; }

/* The deadline to sign by "Kinnita ja saada leping" (request page, 26 Nov 2026) */
body.staff .sign-deadline { display: grid; gap: 6px; }
body.staff .sign-deadline label { display: grid; gap: 4px; max-width: 260px; }
body.staff .sign-deadline .sign-explain { margin: 0; max-width: 60ch; }

/* Deadline shortcuts by Kinnita and Pikenda (27 Nov 2026) */
body.staff .dl-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-timer .lp-timer-local { flex-basis: 100%; font-size: 13px; margin-top: -4px; }

/* Marketing → LinkedIn (28 Nov 2026): the two accounts side by side, the repost arrows between them, the one rule */
body.staff .li-split { display: grid; grid-template-columns: 1fr 200px 1fr; gap: 14px; align-items: stretch; margin: 14px 0; }
body.staff .li-acc { margin: 0; min-width: 0; }
body.staff .li-who { display: flex; align-items: center; gap: 10px; }
body.staff .li-who h3 { margin: 0; }
body.staff .li-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
body.staff .li-dot.j { background: var(--char); } body.staff .li-dot.p { background: var(--tx); }
body.staff .li-meta { color: var(--tx-2); font-size: .88rem; margin: 2px 0 14px; }
body.staff .li-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--tx-3); margin: 0 0 6px; }
body.staff .li-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
body.staff .li-list li { padding-left: 14px; position: relative; }
body.staff .li-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 1px; background: var(--tx-3); }
body.staff .li-rhythm { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--ln); font-weight: 600; }
body.staff .li-rhythm small { font-weight: 400; color: var(--tx-2); font-size: .88rem; }
body.staff .li-mid { display: flex; flex-direction: column; justify-content: center; gap: 26px; font-size: .86rem; color: var(--tx-2); text-align: center; }
body.staff .li-arrow { display: flex; flex-direction: column; gap: 4px; align-items: center; }
body.staff .li-arrow b { color: var(--tx); font-weight: 600; }
body.staff .li-arrow svg { width: 100%; height: 14px; overflow: visible; fill: none; stroke-width: 1.5; }
body.staff .li-arrow.j svg { stroke: var(--char); } body.staff .li-arrow.p svg { stroke: var(--tx); }
body.staff .li-rule { background: var(--tint); border-radius: var(--radius); padding: 14px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
body.staff .li-rule p { margin: 0; }
body.staff .li-when { margin: 12px 0; }
body.staff .li-never { margin: 0 0 12px; color: var(--tx-2); } body.staff .li-never summary { cursor: pointer; color: var(--tx); font-weight: 500; } body.staff .li-never p { margin: 8px 0 0; }
@media (max-width: 820px) {
  body.staff .li-split { grid-template-columns: 1fr; } body.staff .li-mid { flex-direction: row; gap: 14px; } body.staff .li-arrow { flex: 1; } body.staff .li-arrow svg { display: none; }
  body.staff .li-rule { grid-template-columns: 1fr; }
}


/* hotel.larsen.ee: Larsen's hotel site with Cloudbeds' engine inside (modules/sales/booking/routes/booking-site.js, 30 Nov 2026).
   Structure after acehotel.com: the booking bar in the header, a film or photo on the first screen, each hotel under its own
   wordmark, sections with condensed capitals. Its own tokens; nothing here touches /stay. */
body.stay.ht {
  --h-ink: #1d1c1a; --h-ink2: #5f5b55; --h-white: #ffffff; --h-paper: #efeeea; --h-field: #e3e1dc; --h-clay: #e8703f; --h-clay2: #d65f30;
  --h-shade: rgba(20,20,19,.55); --h-shade0: rgba(20,20,19,0);
  --h-caps: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  background: var(--h-paper); color: var(--h-ink);
}
.ht-caps { font-family: var(--h-caps); font-weight: 700; text-transform: uppercase; line-height: 1; letter-spacing: 0; margin: 0; }
body.stay.ht h1.ht-caps, body.stay.ht h2.ht-caps { font-family: var(--h-caps); }
.ht-head { position: sticky; top: 0; z-index: 40; background: var(--h-white); display: flex; align-items: stretch; border-bottom: 1px solid var(--h-ink); }
.ht-logo { display: flex; align-items: center; padding: 10px 20px; border-right: 1px solid var(--h-ink); }
.ht-logo .logo { height: 34px; }
.ht-where { position: relative; display: flex; align-items: center; }
.ht-where summary { list-style: none; cursor: pointer; padding: 0 22px; font-size: 19px; font-weight: 500; height: 100%; display: flex; align-items: center; gap: 8px; }
.ht-where summary::-webkit-details-marker { display: none; }
.ht-where summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--h-ink); border-bottom: 1.5px solid var(--h-ink); transform: rotate(45deg) translateY(-3px); }
.ht-where nav { position: absolute; left: 0; top: 100%; background: var(--h-white); border: 1px solid var(--h-ink); min-width: 200px; display: flex; flex-direction: column; }
.ht-where nav a { padding: 10px 22px; color: var(--h-ink); text-decoration: none; font-size: 16px; }
.ht-where nav a:hover { background: var(--h-field); }
.ht-bar { margin-left: auto; display: flex; align-items: stretch; }
.ht-fd { background: var(--h-field); border-left: 1px solid var(--h-white); padding: 8px 14px; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 128px; }
.ht-fd b { font-family: var(--h-caps); font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.ht-fd input, .ht-fd select { border: 0; background: transparent; font: 400 14px var(--f); color: var(--h-ink); padding: 0; width: 100%; min-width: 0; }
.ht-code { min-width: 110px; }
.ht-go { background: var(--h-clay); color: var(--h-ink); border: 0; padding: 0 28px; font-family: var(--h-caps); font-weight: 700; font-size: 19px; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.ht-go:hover { background: var(--h-clay2); }
.ht-sub { background: var(--h-white); display: flex; gap: 28px; padding: 9px 20px; font-size: 14px; border-bottom: 1px solid var(--h-ink); overflow-x: auto; white-space: nowrap; }
.ht-sub a { color: var(--h-ink); text-decoration: none; }
.ht-sub a:hover { text-decoration: underline; }
.ht-langs { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.ht-langs a { opacity: .55; font-weight: 600; }
.ht-langs a.active { opacity: 1; }
.ht-langs .cookie-link { font-weight: 400; margin-right: 8px; }
.ht-main { max-width: none; padding: 0; margin: 0; }
.ht-hero { position: relative; min-height: min(72vh, 46vw); display: grid; place-items: center; color: var(--h-white); text-align: center; overflow: hidden; background: var(--h-ink); }
.ht-hero > img, .ht-hero > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ht-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--h-shade0) 15%, var(--h-shade) 100%); }
.ht-on { position: relative; z-index: 1; padding: 48px 20px; }
body.stay.ht .ht-on h1 { color: var(--h-white); margin: 0; }
.ht-on h1.ht-caps { font-size: clamp(44px, 9vw, 132px); line-height: .98; }
.ht-addr { margin: 14px 0 0; font-size: 16px; letter-spacing: .04em; }
.ht-say { max-width: 720px; margin: 0 auto; padding: 64px 20px; text-align: center; font-size: 18px; line-height: 1.7; }
.ht-sect { max-width: 1240px; margin: 0 auto; padding: 0 20px 72px; }
.ht-h { display: flex; align-items: baseline; gap: 28px; flex-wrap: wrap; margin-bottom: 24px; scroll-margin-top: 120px; }
.ht-h h2 { font-size: clamp(34px, 5vw, 60px); }
.ht-h span { font-size: 15px; }
.ht-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.ht-card { display: flex; flex-direction: column; gap: 6px; color: var(--h-ink); text-decoration: none; }
.ht-ph { position: relative; aspect-ratio: 3 / 4; display: block; background: var(--h-ink); overflow: hidden; }
.ht-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.ht-card:hover .ht-ph img { transform: scale(1.04); }
.ht-ph::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, var(--h-shade0), var(--h-shade)); }
.ht-ph .ht-wm { position: absolute; z-index: 1; left: 0; right: 0; bottom: 22px; text-align: center; color: var(--h-white); padding: 0 8px; }
.ht-card strong { font-family: var(--h-caps); font-weight: 700; font-size: 22px; text-transform: uppercase; margin-top: 8px; line-height: 1.1; }
.ht-t { font-size: 14px; line-height: 1.5; margin: 0; }
.ht-card .ht-t { min-height: 3em; }
.ht-card u, .ht-fallback a { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-underline-offset: 4px; }
/* each hotel's own wordmark (stand-ins until each has a real one) */
.ht-wm { line-height: 1; font-size: clamp(22px, 3vw, 46px); }
body.stay.ht h1.ht-wm { font-size: clamp(56px, 12vw, 170px); letter-spacing: 0; }
.ht-wm.sume, body.stay.ht h1.ht-wm.sume { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; }
.ht-wm.stereo, body.stay.ht h1.ht-wm.stereo { font-family: "Unbounded", "Arial Black", Arial, sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: clamp(15px, 1.9vw, 30px); }
body.stay.ht h1.ht-wm.stereo { font-size: clamp(34px, 8vw, 120px); }
.ht-wm.campus, body.stay.ht h1.ht-wm.campus { font-family: "Graduate", Georgia, serif; font-weight: 400; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(17px, 2.1vw, 32px); }
body.stay.ht h1.ht-wm.campus { font-size: clamp(38px, 9vw, 130px); }
.ht-wm.rocca, body.stay.ht h1.ht-wm.rocca { font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 600; }
.ht-wm.eduard, body.stay.ht h1.ht-wm.eduard { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; }
.ht-pick { border-top: 1px solid var(--h-ink); }
.ht-pick > div { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--h-ink); }
.ht-pick b { font-family: var(--h-caps); font-weight: 700; text-transform: uppercase; font-size: clamp(18px, 2.2vw, 28px); line-height: 1.1; }
.ht-pick span { font-size: 15px; }
.ht-pick i { font-style: normal; font-weight: 600; font-size: 15px; white-space: nowrap; }
.ht-pick a { color: var(--h-ink); text-underline-offset: 4px; }
.ht-list > div { grid-template-columns: minmax(0, 1fr) auto auto; }
.ht-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 0 48px; }
.ht-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ht-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ht-tile { color: var(--h-ink); text-decoration: none; display: block; }
.ht-shot { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--h-ink); overflow: hidden; }
.ht-shot img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .62; }
.ht-shot strong { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--h-white); font-family: var(--h-caps); font-weight: 700; text-transform: uppercase; font-size: clamp(24px, 3.6vw, 48px); line-height: 1; padding: 0 12px; }
.ht-tile h3, .ht-place h3 { font-family: var(--h-caps); font-weight: 700; text-transform: uppercase; font-size: 22px; margin: 14px 0 4px; line-height: 1.1; letter-spacing: 0; }
.ht-place { border-top: 1px solid var(--h-ink); padding-top: 14px; }
.ht-meta { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--h-ink2); margin: 0; }
.ht-rooms cb-immersive-experience { display: block; min-height: 420px; background: var(--h-white); }
.ht-fallback { margin: 16px 0 0; }
.ht-fallback a { color: var(--h-ink2); }
.ht-others h2 { font-size: 30px; margin-bottom: 16px; }
.ht-others div { display: flex; gap: 10px; flex-wrap: wrap; }
.ht-others a { border: 1px solid var(--h-ink); padding: 9px 20px; color: var(--h-ink); text-decoration: none; font-family: var(--h-caps); font-weight: 600; text-transform: uppercase; font-size: 16px; }
.ht-others a:hover { background: var(--h-ink); color: var(--h-white); }
.ht-foot { border-top: 1px solid var(--h-ink); padding: 24px 20px; font-size: 14px; color: var(--h-ink2); text-align: center; }
.ht-foot a { color: var(--h-ink); text-decoration: none; font-weight: 500; }
@media (max-width: 1080px) {
  .ht-head { flex-wrap: wrap; }
  .ht-bar { order: 5; width: 100%; margin: 0; border-top: 1px solid var(--h-ink); }
  .ht-bar .ht-fd { flex: 1; min-width: 0; }
  .ht-where { flex: 1; }
  .ht-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .ht-logo { padding: 8px 14px; } .ht-logo .logo { height: 28px; }
  .ht-where summary { padding: 0 14px; font-size: 17px; }
  .ht-bar { flex-wrap: wrap; }
  .ht-bar .ht-fd { flex: 1 1 40%; border-bottom: 1px solid var(--h-white); }
  .ht-code { display: none; }
  .ht-go { flex: 1 1 100%; padding: 12px; }
  .ht-head { position: static; }
  .ht-sub { gap: 18px; padding: 9px 14px; }
  .ht-hero { min-height: 62vh; }
  .ht-say { padding: 40px 20px; font-size: 16px; }
  .ht-sect { padding-bottom: 48px; }
  .ht-cards, .ht-two, .ht-three { grid-template-columns: 1fr; }
  .ht-ph { aspect-ratio: 4 / 3; }
  .ht-card .ht-t { min-height: 0; }
  .ht-pick > div { grid-template-columns: 1fr; gap: 4px; }
  .ht-list > div { grid-template-columns: minmax(0, 1fr) auto; }
  .ht-list > div span { grid-column: 1 / -1; order: 3; }
}
