:root {
  /* Nomado brand book 2025: navy #00082A, royal blue #2B3990, golds #CBB590 #BA9E6E #A6864E #997B48 */
  --bg: #F6F4EF; --ink: #0B1233; --muted: #5A6075; --line: #E6E1D6; --card: #FFFFFF; --soft: #F0ECE3;
  --nav: #00082A; --nav-ink: #EDEAE2; --nav-muted: #A9AEC4; --nav-line: #1C2552;
  --nav-hover: #0D1540; --nav-active: #18225A;
  --accent: #2B3990; --accent-dark: #1E2870;
  --gold: #BA9E6E; --gold-light: #CBB590; --gold-dark: #997B48; --gold-ink: #7A5F30;
  --red: #9A2318; --red-bg: #F9E1DE; --green: #1F6B3A; --green-bg: #E3F1E7; --amber: #7A5200; --amber-bg: #FBEFD5; --blue-bg: #EEF2F6;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px; line-height: 1.45; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1 { font-size: 26px; line-height: 1.2; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 18px; margin: 0; }
h3 { font-size: 13px; margin: 0 0 10px; font-weight: 600; color: var(--muted); letter-spacing: 0.03em; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* brand */
.brand-name { font-size: 22px; font-weight: 700; letter-spacing: 0.01em; line-height: 1.1; }
.brand-logo { display: block; width: 168px; height: auto; }
.brand.dark .brand-logo { width: 220px; }
.brand-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-light); margin: 8px 0 4px; }
.brand.dark .brand-tag { color: var(--gold-ink); }
.brand-sub { font-size: 12px; color: var(--nav-muted); }
.brand.dark .brand-sub { color: var(--muted); }

/* management shell */
.shell { min-height: 100vh; display: flex; align-items: stretch; }
.side { flex: 0 0 240px; background: var(--nav); color: var(--nav-ink); padding: 24px 16px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { padding: 0 10px 18px; }
.nav-list { display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; padding: 0 12px; border-radius: 10px; color: #C9CCDA; font-size: 14px; font-weight: 500; text-decoration: none; }
.nav-item:hover { background: var(--nav-hover); color: #FFFFFF; }
.nav-item.active { background: var(--nav-active); color: #FFFFFF; font-weight: 600; box-shadow: inset 3px 0 0 var(--gold); }
.nav-group { font-size: 12px; color: var(--nav-muted); padding: 16px 12px 4px; }
.badge { background: var(--gold-dark); color: #FFFFFF; font-size: 12px; font-weight: 600; border-radius: 10px; padding: 1px 8px; }
.who { margin-top: auto; padding: 16px 10px 0; border-top: 1px solid var(--nav-line); display: flex; flex-direction: column; gap: 2px; }
.who-name { font-size: 14px; font-weight: 600; }
.who-level { font-size: 12px; color: var(--nav-muted); margin-bottom: 10px; }
.main { flex: 1 1 auto; min-width: 0; padding: 32px 36px 56px; max-width: 1180px; }

/* page pieces */
.page-head { margin-bottom: 22px; display: flex; flex-direction: column; gap: 4px; }
.page-head p, .lead { color: var(--muted); }
.group-title { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); margin: 26px 0 10px; }
.group-title:first-of-type { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; align-items: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 16px; }
.grid .card { margin-bottom: 0; }
.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.row { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 8px; border-radius: 10px; color: var(--ink); text-decoration: none; }
a.row:hover { background: var(--soft); color: var(--ink); }
.row.off { color: var(--muted); }
.row-title { flex: 1 1 auto; min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.row-go { color: var(--muted); font-size: 14px; }
.kind { flex: 0 0 66px; text-align: center; font-size: 11px; font-weight: 600; border-radius: 6px; padding: 3px 0; background: var(--soft); color: var(--muted); }
.kind-doc { background: #E4ECF7; color: #1F4468; }
.kind-sheet { background: var(--green-bg); color: var(--green); }
.kind-slides { background: var(--amber-bg); color: var(--amber); }
.kind-form { background: #EDE7F6; color: #4A2F86; }
.kind-folder { background: #E8ECEF; color: #3E4955; }
.tag { font-size: 11px; font-weight: 600; border-radius: 6px; padding: 3px 8px; background: var(--blue-bg); color: var(--accent-dark); white-space: nowrap; }
.tag.warn { background: var(--amber-bg); color: var(--amber); }
.meta { font-size: 12px; font-weight: 400; color: var(--muted); }
.count { font-weight: 500; color: var(--muted); background: var(--soft); border-radius: 10px; padding: 1px 8px; font-size: 12px; margin-left: 4px; }
.empty { color: var(--muted); font-size: 14px; padding: 6px 8px; }
.hint { color: var(--muted); font-size: 13px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; min-height: 76px; }
.tile:hover { border-color: #B8C4D0; color: var(--ink); }
.tile-name { font-weight: 600; }
.tile-host { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }

/* buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid #D5DAD8; background: var(--card); color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--soft); color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #FFFFFF; }
.btn.danger { color: var(--red); border-color: #E9C4BF; }
.btn.danger:hover { background: var(--red-bg); color: var(--red); }
.btn.small { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn.nav-btn { background: transparent; border-color: var(--nav-line); color: var(--nav-ink); width: 100%; }
.btn.nav-btn:hover { background: var(--nav-hover); color: #FFFFFF; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: #3E4955; }
input[type="text"], input[type="email"], input[type="url"], input[type="password"], select { min-height: 42px; padding: 0 12px; border: 1px solid #D5DAD8; border-radius: 10px; background: #FFFFFF; font-weight: 400; font-size: 15px; width: 100%; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; min-height: 42px; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 14px; align-items: end; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid .btn { justify-self: start; }
.inline-form { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.flash { border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; }
.flash.ok { background: var(--green-bg); color: #164D2A; }
.flash.bad { background: var(--red-bg); color: var(--red); }
.flash.warn { background: var(--amber-bg); color: var(--amber); }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 20px; font-weight: 700; letter-spacing: 0.08em; background: #FFFFFF; border-radius: 8px; padding: 2px 10px; display: inline-block; margin: 4px 0; }
.code.big { font-size: 30px; padding: 6px 14px; margin-top: 8px; }
details.edit { border-top: 1px solid var(--line); }
details.edit:first-of-type { border-top: 0; }
details.edit > summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 8px; border-radius: 10px; cursor: pointer; flex-wrap: wrap; }
details.edit > summary::-webkit-details-marker { display: none; }
details.edit > summary:hover { background: var(--soft); }
details.edit[open] > summary { background: var(--soft); margin-bottom: 12px; }
details.edit[open] { padding-bottom: 14px; }
details.edit.minor { margin-top: 8px; }
.tabs { display: flex; gap: 6px; margin: 4px 0 16px; flex-wrap: wrap; }
.tab { min-height: 38px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 14px; }
.tab.active { background: var(--nav); border-color: var(--nav); color: #FFFFFF; }

/* sign-in */
.signin { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.signin-card { width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; display: flex; flex-direction: column; gap: 14px; }
.signin-card h1 { font-size: 22px; margin-top: 6px; }
.signin-card #code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 20px; letter-spacing: 0.1em; text-transform: uppercase; min-height: 50px; }
.signin-card .btn.primary { min-height: 48px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.dev { border-top: 1px dashed #D5DAD8; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.dev-title { flex: 1 0 100%; font-size: 12px; color: var(--muted); }

/* level 1 and level 3 */
.plain { min-height: 100vh; }
.topbar { background: var(--nav); color: var(--nav-ink); padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar .btn.nav-btn { width: auto; }
.preview { background: var(--amber-bg); color: var(--amber); padding: 10px 20px; font-size: 13px; }
.plain-main { max-width: 640px; margin: 0 auto; padding: 26px 16px 56px; display: flex; flex-direction: column; gap: 14px; }
.plain-main .card { margin-bottom: 0; }
.plain-main .row { min-height: 52px; }
.empty-state { text-align: center; padding: 36px 22px; display: flex; flex-direction: column; gap: 8px; }
.empty-state p { color: var(--muted); }

@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .side { position: static; height: auto; flex: 0 0 auto; padding: 14px 12px; gap: 10px; }
  .side .brand { padding: 0 6px; }
  .nav-list { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .nav-item { flex: 0 0 auto; background: var(--nav-hover); }
  .nav-group { display: none; }
  .who { margin-top: 0; padding: 10px 6px 0; flex-direction: row; align-items: center; gap: 10px; flex-wrap: wrap; }
  .who-level { margin-bottom: 0; flex: 1 1 auto; }
  .who form { flex: 0 0 auto; }
  .btn.nav-btn { width: auto; }
  .main { padding: 20px 16px 48px; }
  .grid { grid-template-columns: 1fr; }
  h1 { font-size: 22px; }
}

/* dashboard */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
.kpi-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.kpi-value { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: 13px; color: var(--muted); }
.kpi-yoy { font-size: 13px; font-weight: 600; }
.kpi-yoy.up, .pos { color: var(--green); }
.kpi-yoy.down, .neg { color: var(--red); }
.pill { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.pill-ok { background: var(--green-bg); color: var(--green); }
.pill-watch { background: var(--amber-bg); color: var(--amber); }
.pill-bad { background: var(--red-bg); color: var(--red); }
.alerts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.alert { position: relative; padding: 9px 12px 9px 30px; border-radius: 10px; font-size: 14px; background: var(--soft); }
.alert::before { content: ""; position: absolute; left: 12px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.alert-bad { background: var(--red-bg); color: #6E1810; }
.alert-bad::before { background: var(--red); }
.alert-warn { background: var(--amber-bg); color: #5C3E00; }
.alert-warn::before { background: #B77900; }
.legend { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.key { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 10px; }
.key:first-child { margin-left: 0; }
.key-hotel, .bar-hotel { background: #2F5D8A; fill: #2F5D8A; }
.key-rest, .bar-rest { background: var(--gold); fill: var(--gold); }
.chart-wrap { overflow-x: auto; }
.chart { width: 100%; min-width: 560px; height: auto; display: block; }
.bar-day { font-size: 9px; fill: #5B6673; font-family: Manrope, system-ui, sans-serif; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 16px; margin: 0; }
.fact dt { font-size: 12px; color: var(--muted); }
.fact dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
table.score { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
table.score th, table.score td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
table.score th:first-child { text-align: left; white-space: normal; min-width: 170px; font-weight: 500; }
table.score .range { display: block; }
table.score thead th { font-size: 12px; font-weight: 600; color: var(--muted); }
table.score tr.sec th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.05em; color: var(--muted); background: var(--soft); }
table.score td.strong { font-weight: 700; }
.steps { margin: 0 0 4px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.keybox { margin-top: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.card > .hint + .table-wrap { margin-top: 12px; }
h3 .tag, h3 .meta { margin-left: 6px; letter-spacing: 0; }

/* shareholder report */
.plain-main.wide { max-width: 860px; }
.report-title { font-size: 20px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.kpi-value.muted { font-size: 17px; font-weight: 600; color: var(--muted); padding: 6px 0; }
.points { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.key-last, .bar-last { background: #B8C4D0; fill: #B8C4D0; }
.chart.cmp, .chart.track { min-width: 0; }
.cmp-label { font-size: 12px; fill: #1C2430; font-family: Manrope, system-ui, sans-serif; font-weight: 600; }
.cmp-value { font-size: 12px; fill: #5B6673; font-family: Manrope, system-ui, sans-serif; }
.track-bg { fill: #E3E6E4; }
.track-mark { fill: #1C2430; }
.preview-frame { border: 1px dashed #B8C4D0; border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 14px; background: #FAFAF9; }
.preview-frame .card { margin-bottom: 0; }
textarea { font: inherit; color: inherit; padding: 10px 12px; border: 1px solid #D5DAD8; border-radius: 10px; background: #FFFFFF; font-weight: 400; font-size: 15px; width: 100%; resize: vertical; line-height: 1.45; }
.plain-main.wide .kpis { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.plain-main.wide .kpi-value { font-size: 23px; }
.plain-main.wide .kpi-value.muted { font-size: 16px; }

/* employee page: tabs, rules, questions */
.plain-main.with-tabs { padding-bottom: 96px; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--line); display: flex; justify-content: center; gap: 4px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); z-index: 5; }
.tabbar-item { flex: 1 1 0; max-width: 150px; min-height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 12px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; }
.tabbar-item:hover { background: var(--soft); color: var(--ink); }
.tabbar-item.active { background: var(--nav); color: #FFFFFF; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.quick-item:hover { border-color: #B8C4D0; color: var(--ink); }
.quick-n { font-size: 26px; font-weight: 700; color: var(--accent); }
.search { display: flex; gap: 8px; }
.search input { flex: 1 1 auto; min-height: 44px; padding: 0 12px; border: 1px solid #D5DAD8; border-radius: 10px; background: #FFFFFF; font-size: 15px; min-width: 0; }
.article { display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.55; }
.article h2 { font-size: 19px; }
.article p, .qa-a p { margin: 0; }
h3.sub { font-size: 15px; color: var(--ink); letter-spacing: 0; margin: 6px 0 0; }
.qa { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.qa:first-of-type { border-top: 0; padding-top: 0; }
.card > .qa:only-child { padding: 0; }
.qa-q { font-weight: 600; }
.qa-a { background: var(--soft); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.qa-src { font-size: 13px; color: var(--muted); }
.qa-wait { background: var(--amber-bg); color: #5C3E00; border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.inline-form.bar { margin: 0 0 16px; }

/* daily reports */
.pill-done { background: #DDE9F6; color: #1F4468; }
.pill-none { background: var(--soft); color: var(--muted); }
.btn.wide { width: 100%; min-height: 48px; }
.rows.days { margin-top: 10px; }
.daynav { display: flex; gap: 8px; }
fieldset.group { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 8px; }
fieldset.group:last-child { margin-bottom: 0; }
fieldset.group legend { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.03em; padding: 0; margin-bottom: 8px; }
label.line { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; font-weight: 500; font-size: 15px; color: var(--ink); }
label.line span { flex: 1 1 auto; }
label.line input { flex: 0 0 160px; width: 160px; text-align: right; font-variant-numeric: tabular-nums; min-height: 44px; }
.live { display: flex; flex-direction: column; gap: 6px; background: var(--soft); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.live > div { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.live > div.strong { font-weight: 700; font-size: 17px; }
.live-warn { margin: 4px 0 0; color: var(--amber); font-size: 14px; font-weight: 600; }
.facts.totals { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.fact.strong dd { font-size: 18px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--muted); font-size: 14px; }
table.score.days th, table.score.days td { text-align: left; }
table.score.days .cell { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 32px; }
.history { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.entry .card { margin-bottom: 0; }

/* full daily sheets: numbered steps, framed tables, a bar that stays at the foot of the page */
.main:has(table.sheet), .plain-main:has(table.sheet) { max-width: 1480px; }
.main:has(table.sheet) { padding-left: 20px; padding-right: 20px; }
.card.narrow, .steps-nav, .actionbar, .entry > .flash { max-width: 820px; width: 100%; }
.card.step { scroll-margin-top: 12px; }
.step-title { display: flex; align-items: center; gap: 10px; font-size: 17px; line-height: 1.3; margin: 0 0 6px; }
.step-n { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: var(--nav); color: #FFFFFF; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.card.step > .hint { margin-bottom: 12px; max-width: 760px; }
.card.step > .hint.after { margin: 10px 0 0; }
.steps-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.steps-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px 0 6px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.steps-nav a:hover { border-color: #B8C4D0; }
.steps-nav .step-n { flex-basis: 24px; width: 24px; height: 24px; font-size: 12px; }

.table-wrap.framed, .sheet-pane { border: 1px solid #D5DAD8; border-radius: 10px; background: var(--card); }
.table-wrap.framed { display: inline-block; max-width: 100%; vertical-align: top; }
.sheet-pane { display: inline-block; max-width: 100%; vertical-align: top; overflow: auto; max-height: calc(100vh - 240px); min-height: 240px; scroll-padding: 68px 8px 44px 60px; overscroll-behavior: auto; }
table.sheet { border-collapse: separate; border-spacing: 0; font-size: 13.5px; font-variant-numeric: tabular-nums; }
table.sheet th, table.sheet td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0; text-align: right; white-space: nowrap; background: var(--card); }
table.sheet tr > :last-child { border-right: 0; }
table.sheet > :last-child > tr:last-child > * { border-bottom: 0; }
table.sheet thead th { padding: 0 8px; height: 30px; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--soft); text-align: center; vertical-align: middle; }
table.sheet thead th:first-child { text-align: left; }
table.sheet thead th.g-room { background: #E4ECF7; color: #1F4468; }
table.sheet thead th.g-mb { background: #DCEEDF; color: var(--green); }
table.sheet thead th.g-calc { background: #E6E9E7; color: var(--ink); }
table.sheet tbody th, table.sheet tfoot th { padding: 0 10px; height: 36px; text-align: left; font-weight: 600; white-space: nowrap; }
table.sheet th.n { width: 34px; text-align: center; padding: 0 6px; color: var(--muted); font-weight: 500; }
table.sheet tr.band th { background: var(--blue-bg); color: var(--accent-dark); font-size: 12px; letter-spacing: 0.02em; height: 28px; }
table.sheet tr.band th span { position: sticky; left: 10px; }
table.sheet tbody tr:focus-within > th { background: #DDE9F6; color: var(--accent-dark); }
table.sheet tbody tr:hover > td:not(.calc):not(.mb) { background: #FAFBFA; }
table.sheet td input[type="text"] { display: block; border: 0; border-radius: 0; min-height: 36px; width: 78px; padding: 0 7px; text-align: right; background: transparent; font-size: 14px; font-variant-numeric: tabular-nums; }
table.sheet td input[type="text"]:focus { outline: 2px solid var(--accent); outline-offset: -2px; background: #FFFFFF; }
table.sheet td input[aria-invalid="true"] { background: var(--red-bg); color: var(--red); }
table.sheet td.text { text-align: left; }
table.sheet td.text input[type="text"] { width: 128px; text-align: left; }
table.sheet td.narrow input[type="text"] { width: 68px; }
table.sheet td.calc, table.sheet tfoot td { padding: 0 8px; background: #F5F6F5; font-weight: 600; min-width: 72px; }
table.sheet td.mb { background: #F4F9F3; }
table.sheet td.calc.mb, table.sheet tfoot td.mb { background: #E7F1E5; }
table.sheet thead th.mb { background: #E9F3E8; }
table.sheet tfoot th, table.sheet tfoot td { background: #ECEEEC; border-top: 1px solid #C9D2DA; height: 38px; }
table.sheet td.strong { font-size: 15px; }
table.sheet td.label { text-align: right; padding: 0 8px; font-weight: 600; }
table.sheet td.price { color: var(--muted); font-weight: 500; }
table.sheet td.check { text-align: center; padding: 0 8px; }
table.sheet.view td { padding: 0 8px; height: 34px; min-width: 60px; }
table.sheet.view td.text { white-space: normal; min-width: 140px; padding: 6px 8px; }

/* a long table scrolls inside its own frame: headings, the first column and the totals stay in sight */
.sheet-pane thead th { position: sticky; z-index: 2; }
.sheet-pane thead tr:first-child th { top: 0; }
.sheet-pane thead tr:nth-child(2) th { top: 31px; }
.sheet-pane tbody th, .sheet-pane tfoot th, .sheet-pane thead th.corner { position: sticky; left: 0; z-index: 1; }
.sheet-pane thead th.corner { z-index: 4; }
.sheet-pane tfoot th, .sheet-pane tfoot td { position: sticky; bottom: 0; z-index: 2; }
.sheet-pane tfoot th { z-index: 3; }
.sheet-pane tr.band th { position: static; }
table.sheet.stock tbody th { white-space: normal; min-width: 150px; max-width: 210px; line-height: 1.25; }
table.sheet.stock td input[type="text"] { width: 74px; }
.card:has(.stock-toggle input:not(:checked)) table.stock .sc, table.stock.nostock .sc { display: none; }
.stock-toggle { margin-bottom: 8px; }

/* small tables take the width of their step */
table.sheet.fit, table.sheet.list, table.sheet.goods, table.sheet.sum { width: 100%; }
.table-wrap.framed:has(table.fit), .table-wrap.framed:has(table.list), .table-wrap.framed:has(table.goods), .table-wrap.framed:has(table.sum) { display: block; overflow-x: auto; }
table.sheet.fit td input[type="text"], table.sheet.list td input[type="text"], table.sheet.goods td input[type="text"] { width: 100%; min-width: 84px; }
table.sheet.fit td.narrow input[type="text"], table.sheet.list td.narrow input[type="text"] { min-width: 56px; }
table.sheet.fit tbody th, table.sheet.fit tfoot th { white-space: normal; line-height: 1.25; }
table.sheet.cash tbody th { white-space: nowrap; }
table.sheet.list td.text, table.sheet.goods td.text, table.sheet.fit td.text { width: 60%; }
table.sheet.list td.text input[type="text"], table.sheet.goods td.text input[type="text"], table.sheet.fit td.text input[type="text"] { min-width: 120px; }
table.sheet.sum { max-width: 420px; }
.table-wrap.framed:has(table.sum) { max-width: 420px; }
table.sheet.sum td { height: 34px; }

/* parts most days leave empty */
details.more { border: 1px solid #D5DAD8; border-radius: 10px; margin-top: 10px; background: var(--card); }
details.more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 12px; font-weight: 600; font-size: 14px; border-radius: 10px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary > span::before { content: "+"; display: inline-block; width: 18px; color: var(--accent); font-weight: 700; }
details.more[open] > summary > span::before { content: "−"; }
details.more > summary:hover { background: var(--soft); }
details.more > summary output { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
details.more > .table-wrap, details.more > .empty { margin: 0 10px 10px; }
.sub-block { margin-top: 14px; }
.sub-block h3.sub { margin: 0 0 8px; }
.card.step .live-warn { margin: 10px 0 0; }
.card.step > .table-wrap + .form-grid, .card.step > .live-warn + .form-grid, .card.step > .table-wrap + .facts { margin-top: 14px; }
.form-grid.counts { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.form-grid.counts input[data-num] { text-align: right; font-variant-numeric: tabular-nums; }
.field.calc { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: #3E4955; }
.field.calc strong { min-height: 42px; display: flex; align-items: center; justify-content: flex-end; padding: 0 12px; border-radius: 10px; background: var(--soft); font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }

/* the day's total and the two buttons stay in reach */
.actionbar { position: sticky; bottom: 12px; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--nav); color: #FFFFFF; border-radius: 14px; padding: 10px 12px 10px 16px; box-shadow: 0 6px 20px rgba(28, 36, 48, 0.22); }
.with-tabs .actionbar { bottom: calc(74px + env(safe-area-inset-bottom)); }
.actionbar-total { display: flex; flex-direction: column; line-height: 1.2; }
.actionbar-total span { font-size: 12px; color: var(--nav-muted); }
.actionbar-total output { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.actionbar-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.ghost { background: transparent; border-color: #5B6B7A; color: #FFFFFF; }
.btn.ghost:hover { background: var(--nav-hover); color: #FFFFFF; }
.actionbar .btn.primary { background: #FFFFFF; border-color: #FFFFFF; color: var(--nav); }
.actionbar .btn.primary:hover { background: #E8ECEF; border-color: #E8ECEF; color: var(--nav); }
.entry > .flash { margin-bottom: 0; }
@media (max-width: 520px) {
  table.sheet td input[type="text"] { width: 80px; padding: 0 6px; }
  table.sheet td.calc, table.sheet tfoot td { min-width: 72px; }
  .sheet-pane { max-height: calc(100vh - 230px); }
  .actionbar { padding: 8px 10px 8px 14px; flex-wrap: nowrap; }
  .actionbar-total output { font-size: 17px; }
  .actionbar .btn { padding: 0 14px; text-transform: capitalize; }
  .actionbar .long { display: none; }
  /* on a phone the row total gives way to the two columns people type in; the day's total is in the bar */
  table.sheet.four tr > :nth-child(4) { display: none; }
  table.sheet.fit td input[type="text"] { min-width: 72px; }
  table.sheet.fit tbody th, table.sheet.fit tfoot th { padding: 0 8px; }
}

/* the admin's own guide on the People page */
details.edit.guide > summary { font-weight: 600; }
.guide-body { padding: 0 8px 4px; display: flex; flex-direction: column; gap: 8px; max-width: 820px; }
.guide-body h3.sub { margin: 10px 0 0; }
.guide-body .steps, .guide-body .points { font-size: 14.5px; }
.guide-body table.score.days td, .guide-body table.score.days th { white-space: normal; }

/* Хийх ажил: what waits now, and the steps left before the board runs on its own */
.tasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.task { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; border-radius: 12px; background: var(--soft); border-left: 4px solid #B8C4D0; }
.task-bad { background: var(--red-bg); border-left-color: var(--red); }
.task-warn { background: var(--amber-bg); border-left-color: #B77900; }
.task-info { background: var(--blue-bg); border-left-color: var(--accent); }
.task-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.task-title { font-weight: 600; overflow-wrap: anywhere; }
.task-detail { font-size: 13px; color: #3E4955; }
.task .btn { flex: 0 0 auto; }
.task form { flex: 0 0 auto; margin: 0; }
.steps-list .task { background: var(--card); border: 1px solid var(--line); border-left-width: 1px; padding-left: 12px; }
.steps-list .task-done { background: #F6FAF7; border-color: #CFE5D6; }
.steps-list .task-done .task-title { color: #3E4955; }
.tick { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #B8C4D0; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #FFFFFF; }
.task-done .tick { background: var(--green); border-color: var(--green); }
h3.sub.setup-group { margin: 18px 0 8px; }
.setup-hint { margin: 8px 0 0; }
svg.progress { display: block; width: 100%; height: 8px; }
.progress-fill { fill: var(--green); }
.tasks-card .hint { margin-top: 8px; }
.setup-line { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.setup-line:hover { border-color: #B8C4D0; color: var(--ink); }
.setup-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.setup-text span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.setup-line svg.progress { flex: 0 0 160px; width: 160px; }
svg.kpi-track { display: block; width: 100%; height: 6px; margin: 6px 0 2px; }
.kpi-fill-ok { fill: var(--green); }
.kpi-fill-watch { fill: #B77900; }
.kpi-fill-bad { fill: var(--red); }
h2.group-title .meta { letter-spacing: 0; margin-left: 6px; text-transform: none; }
@media (max-width: 520px) {
  .task { flex-wrap: wrap; }
  .setup-line { flex-direction: column; align-items: stretch; }
  .setup-line svg.progress { flex: 0 0 auto; width: 100%; }
}

/* OTA page (2026-11-23) */
.tbl-wrap { overflow-x: auto; }
table.ota-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
table.ota-tbl th, table.ota-tbl td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.ota-tbl th { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
table.ota-tbl td.num, table.ota-tbl th.num { text-align: right; white-space: nowrap; }
table.ota-tbl tr.tot td { font-weight: 600; border-bottom: none; }
.sub { font-size: 12px; color: var(--muted); }
.mt { margin-top: 18px; }
.card h2 { margin-bottom: 12px; }
.tile .big { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tile .big.small-big { font-size: 15px; }
.tips { margin: 6px 0 0; padding-left: 1.2em; line-height: 1.55; }
.tips li { margin-bottom: 4px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; font-size: 13px; }
.legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.ota-chart { min-width: 420px; }
.ota-chart .ch-val { font-size: 11px; fill: var(--ink); font-weight: 600; }
.ota-chart .ch-lab { font-size: 11px; fill: var(--muted); }
.floors { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.floor { border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; font-variant-numeric: tabular-nums; font-weight: 600; }
.floor.cur { border-color: var(--accent); background: var(--blue-bg); }
.asks { display: flex; flex-direction: column; gap: 8px; }
.ask { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.ask-main { min-width: 0; }
.ask-name { font-weight: 600; }
.ask.ask-reviewed { background: var(--green-bg); }
.ask.ask-asked { background: var(--blue-bg); }
.ask.ask-skip { opacity: 0.65; }
.ask-btns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* Instagram & FB boosts page */
.ads-bar { display: block; width: 100%; height: 6px; margin: 4px 0 2px; }
input[type="number"] { min-height: 42px; padding: 0 12px; border: 1px solid #D5DAD8; border-radius: 10px; background: #FFFFFF; font-weight: 400; font-size: 15px; width: 100%; }
.boosts { display: flex; flex-direction: column; gap: 10px; }
.boost { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.boost-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.boost-page { font-size: 12px; font-weight: 600; color: var(--muted); }
.boost-title { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.boost-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px 14px; margin: 6px 0 2px; }
.boost-nums > div { display: flex; flex-direction: column; gap: 1px; }
.boost-nums strong { font-variant-numeric: tabular-nums; font-size: 15px; }
.boost-why { font-size: 13px; color: var(--ink); }
.pill-neutral { background: var(--soft); color: var(--muted); }

/* OTA page, denser layout (owner 2026-11-23: less spacing, tables easier to tell apart) */
.ota-page .page-head { margin-bottom: 12px; }
.ota-page .card { padding: 14px 16px; margin-bottom: 12px; border-radius: 12px; }
.ota-page .card h2 { font-size: 16px; margin-bottom: 8px; }
.ota-page h3 { margin: 0 0 6px; }
.ota-page .mt { margin-top: 12px; }
.ota-page .flash { margin-bottom: 10px; padding: 8px 12px; }
.mt-s { margin-top: 8px; }
.ota-page .tiles.tight { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 8px; margin-bottom: 12px; }
.ota-page .tile { min-height: 0; padding: 10px 12px; gap: 2px; }
.ota-page .tile .big { font-size: 19px; }
table.ota-tbl { border: 1px solid var(--line); border-radius: 10px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
table.ota-tbl th, table.ota-tbl td { padding: 6px 8px; }
table.ota-tbl thead th { background: #E9EDF1; color: #3A4654; border-bottom: 2px solid #CBD3DB; }
table.ota-tbl.zebra tbody tr:nth-child(even) td, .ota-page table.ota-tbl tbody tr:nth-child(even) td { background: #F6F8F9; }
table.ota-tbl tbody tr:hover td { background: #EEF2F6; }
table.ota-tbl tbody tr:last-child td { border-bottom: none; }
table.ota-tbl tr.tot td { background: #E9EDF1; border-top: 2px solid #CBD3DB; }
table.ota-tbl tr.me td { background: #FBEFD5; }
.nowrap { white-space: nowrap; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 46ch; }
.jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 6px 0; }
.jump a { font-size: 13px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); text-decoration: none; color: var(--ink); }
.jump a:hover { border-color: var(--accent); color: var(--accent); }
.toolbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.range { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.range input[type="date"], .range input[type="number"], .range input:not([type]), .credit select, .ask-btns select { min-height: 32px; padding: 2px 8px; border: 1px solid #D5DAD8; border-radius: 8px; background: var(--card); font-size: 13px; }
.range input[type="number"] { width: 70px; }
.credit { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.credit select { max-width: 150px; }
svg.bar { width: 140px; height: 8px; display: block; }
.big-line { font-size: 26px; }
.floors { gap: 4px; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.floor { padding: 4px 8px; font-size: 13px; }
.ota-page .ask { padding: 8px 10px; }
.ota-page td.low, .ota-page span.low { color: #B3261E; font-weight: 600; }
.ota-page td.high, .ota-page span.high { color: #1E7B3A; font-weight: 600; }
.ota-page tr.avg td { font-style: italic; color: #5B6570; border-top: 1px solid #D5DBE1; }
.ota-page h3 { font-size: 15px; margin: 14px 0 6px; }

/* Marketing & Boost: monthly plan calendar (2026-11-23) */
.cal-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-top: 8px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal-wd { font-size: 11px; color: var(--muted); text-align: center; padding: 2px 0; }
.cal-day, .cal-blank { min-height: 58px; border-radius: 6px; padding: 3px 4px; font-size: 11px; line-height: 1.25; display: flex; flex-direction: column; gap: 1px; overflow: hidden; }
.cal-day { border: 1px solid var(--line); background: var(--card); }
.cal-none { background: var(--soft); color: var(--muted); }
.cal-strong { background: var(--green-bg); border-color: #B9DCC4; }
.cal-normal { background: var(--card); }
.cal-weak { background: var(--red-bg); border-color: #E9B7B0; border-style: dashed; }
.cal-today { outline: 2px solid var(--accent); outline-offset: -1px; }
.cal-n { font-weight: 700; font-size: 12px; }
.cal-fc { font-variant-numeric: tabular-nums; }
.cal-act { font-variant-numeric: tabular-nums; color: var(--muted); }
.cal-act.low { color: var(--red); font-weight: 600; }
.cal-act.high { color: var(--green); font-weight: 600; }
.cal-tags { display: flex; flex-wrap: wrap; gap: 2px; }
.cal-tag { font-size: 9.5px; background: rgba(28, 36, 48, 0.07); border-radius: 4px; padding: 0 3px; white-space: nowrap; }
.cal-boost { font-size: 10px; font-weight: 700; color: var(--accent-dark); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.cal-key { font-size: 12px; padding: 1px 8px; border-radius: 6px; border: 1px solid var(--line); }
.season { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 8px; }
.jump a[aria-current="page"] { border-color: var(--accent); color: var(--accent); font-weight: 600; }
@media (max-width: 520px) {
  .cal-day, .cal-blank { min-height: 46px; padding: 2px; font-size: 10px; }
  .cal-tag { font-size: 8.5px; }
  .cal-pair { grid-template-columns: 1fr; }
}

/* Marketing & Boost redesign (owner 2026-11-23: month by month, less text, interactive) */
.mk-page .page-head { margin-bottom: 10px; }
.mk-page .card { padding: 14px 16px; margin-bottom: 12px; border-radius: 12px; }
.mk-page .card h2 { font-size: 16px; margin-bottom: 8px; }
.mk-page h3 { font-size: 14px; margin: 14px 0 6px; }
.mk-page .tiles.tight { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 8px; margin-bottom: 12px; }
.mk-page .tile { min-height: 0; padding: 10px 12px; gap: 2px; }
.mk-page .tile .big { font-size: 19px; }
.mk-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.mk-title { font-size: 22px !important; margin: 0 !important; }
.mk-months { display: flex; align-items: center; gap: 6px; margin: 10px 0 4px; }
.mk-strip { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px; flex: 1; scrollbar-width: thin; }
.mk-chip { scroll-snap-align: center; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--muted); text-decoration: none; line-height: 1.2; }
.mk-chip:hover { border-color: var(--accent); color: var(--ink); }
.mk-chip.has { color: var(--ink); }
.mk-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.mk-chip-m { font-weight: 600; font-size: 13px; }
.mk-chip-y { font-size: 11px; opacity: 0.8; }
.mk-chip.has .mk-chip-y { color: var(--green); opacity: 1; }
.mk-chip.on .mk-chip-y { color: #fff; }
.mk-arrow { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--card); text-decoration: none; color: var(--ink); font-size: 18px; }
.mk-arrow:hover { border-color: var(--accent); color: var(--accent); }
.mk-arrow.off { opacity: 0.35; }
.mk-headline { font-size: 15px; margin: 8px 0 10px; }
.mk-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.mk-kpi { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; background: var(--card); }
.mk-kpi strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.mk-kpi .pill { align-self: flex-start; }
.mk-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(220px, 1fr); gap: 14px; margin-top: 14px; align-items: start; }
.mk-radio { position: absolute; opacity: 0; pointer-events: none; }
.mk-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; margin-bottom: 8px; background: var(--soft); }
.mk-seg label { padding: 5px 14px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); }
#mk-u-hotel:checked ~ .mk-seg label[for="mk-u-hotel"], #mk-u-spot:checked ~ .mk-seg label[for="mk-u-spot"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
#mk-u-hotel:focus-visible ~ .mk-seg label[for="mk-u-hotel"], #mk-u-spot:focus-visible ~ .mk-seg label[for="mk-u-spot"] { outline: 2px solid var(--accent); }
.mk-calbox .cal-spot { display: none; }
#mk-u-spot:checked ~ .cal-hotel { display: none; }
#mk-u-spot:checked ~ .cal-spot { display: grid; }
.mk-calbox .cal-day { font: inherit; text-align: left; cursor: pointer; color: var(--ink); min-height: 54px; }
.mk-calbox .cal-day:hover { border-color: var(--accent); }
.mk-calbox .cal-day.sel { outline: 2px solid var(--accent); outline-offset: 0; }
.mk-calbox .cal-past { opacity: 0.75; }
.mk-calbox .cal-fc { font-size: 13px; font-weight: 600; }
.mk-calbox .cal-act { font-size: 11px; }
.cal-icons { font-size: 11px; letter-spacing: 1px; color: var(--muted); display: flex; gap: 2px; align-items: center; flex-wrap: wrap; }
.mk-hint { margin-top: 4px; }
.mk-side { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--card); position: sticky; top: 48px; }
.mk-side h3 { margin-top: 12px; }
.mk-day { min-height: 70px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.mk-day-h { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 4px; }
.mk-day-n { font-variant-numeric: tabular-nums; font-weight: 600; margin: 2px 0; }
.mk-day p { margin: 2px 0; }
.mk-day-prop { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; }
.mk-lab { margin: 6px 0 4px; }
.mk-weaks { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-weak { font: inherit; font-size: 13px; display: inline-flex; gap: 5px; align-items: baseline; padding: 4px 9px; border: 1px dashed #E9B7B0; border-radius: 8px; background: var(--red-bg); color: var(--ink); cursor: pointer; }
.mk-weak:hover { border-style: solid; }
.mk-focus { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.mk-focus li { padding: 7px 10px; border-left: 3px solid var(--accent); background: var(--blue-bg); border-radius: 6px; }
.mk-actions { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.mk-actions li { display: grid; grid-template-columns: 110px 72px 1fr auto; gap: 8px; align-items: baseline; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.mk-when { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mk-unit { font-size: 11px; font-weight: 600; border-radius: 6px; padding: 1px 6px; justify-self: start; background: var(--soft); }
.mk-unit.mk-hotel { background: #E3ECF5; color: #1F4468; }
.mk-unit.mk-spot { background: #FBEFD5; color: #7A5200; }
.mk-usd { font-weight: 600; font-variant-numeric: tabular-nums; }
.mk-more { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--card); }
.mk-more > summary { cursor: pointer; font-weight: 600; }
.mk-more[open] > summary { margin-bottom: 8px; }
@media (max-width: 860px) {
  .mk-grid { grid-template-columns: 1fr; }
  .mk-side { position: static; }
  .mk-actions li { grid-template-columns: 1fr auto; }
  .mk-actions .mk-what { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .mk-kpi strong { font-size: 17px; }
  .mk-kpi { padding: 8px 10px; }
  .mk-calbox .cal-day { min-height: 46px; padding: 2px 3px; }
  .mk-calbox .cal-fc { font-size: 12px; }
  .mk-title { font-size: 19px !important; }
}
/* OTA page: update status strip, attention list, folded sections */
.ota-page .sync { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-bottom: 12px; }
.ota-page .sync > div { display: flex; flex-direction: column; gap: 2px; }
.ota-page .sync strong { font-size: 15px; }
.ota-page .attention ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.ota-page .attention li.warn { color: #B3261E; }
.ota-page .attention li.ok { color: #1E7B3A; list-style: none; margin-left: -18px; }
.ota-page h2.sect-head { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 18px 2px 8px; }
.ota-page details.sect { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; }
.ota-page details.sect > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 16px; flex-wrap: wrap; }
.ota-page details.sect > summary::-webkit-details-marker { display: none; }
.ota-page details.sect > summary::after { content: "▾"; color: var(--muted); margin-left: auto; }
.ota-page details.sect[open] > summary::after { content: "▴"; }
.ota-page details.sect > summary:hover { background: var(--soft); border-radius: 14px; }
.ota-page .sect-title { font-weight: 700; font-size: 15px; }
.ota-page .sect-key { font-size: 13px; color: var(--muted); }
.ota-page .sect-body { padding: 4px 16px 16px; border-top: 1px solid var(--line); }

/* Marketing & Boost: content calendar (2026-11-23) */
.btn.soft { background: var(--card); border-color: #CBD3DB; color: var(--ink); }
.btn.soft:hover { border-color: var(--accent); color: var(--accent); }
form.inline { display: inline; margin: 0; }
.ct-due { margin: 8px 0 10px; padding: 8px 10px; border-radius: 10px; background: var(--amber-bg); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.ct-chip { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; }
.ct-box .ct-week { font-size: 13px; color: var(--muted); margin: 14px 0 6px; text-transform: none; }
.ct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.ct { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--card); display: flex; flex-direction: column; gap: 4px; }
.ct.ct-hotel { border-left: 3px solid #2F5D8A; }
.ct.ct-spot { border-left: 3px solid var(--gold); }
.ct.ct-posted { opacity: 0.7; }
.ct.ct-skipped { opacity: 0.45; }
.ct-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ct-date { font-weight: 700; font-variant-numeric: tabular-nums; }
.ct-format { font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; }
.ct-head .pill { margin-left: auto; }
.ct-title { font-size: 15px !important; margin: 2px 0 0 !important; }
.ct-hook { font-style: italic; margin: 0; }
.ct-more > summary { cursor: pointer; font-size: 13px; color: var(--accent); }
.ct-shots { margin: 6px 0; padding-left: 18px; font-size: 13px; }
.ct-cap { background: var(--soft); border-radius: 8px; padding: 8px; font-size: 13px; white-space: pre-line; }
.ct-cap p { margin: 0 0 6px; }
.ct-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.ct-box .ct { display: flex; }
#ct-u-hotel:checked ~ .ct-grid .ct-spot, #ct-u-spot:checked ~ .ct-grid .ct-hotel { display: none; }
#ct-u-all:checked ~ .mk-seg label[for="ct-u-all"], #ct-u-hotel:checked ~ .mk-seg label[for="ct-u-hotel"], #ct-u-spot:checked ~ .mk-seg label[for="ct-u-spot"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.cal-post { color: var(--accent); font-size: 10px; }
.mk-day-post { display: block; margin-top: 4px; font-size: 13px; }

/* ---------- OTA and Review: one month for the whole page (2026-11-24) ---------- */
.monthbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 6px; }
.monthbar .seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.monthbar .seg-item { padding: 7px 18px; font-weight: 600; text-decoration: none; color: var(--muted); background: #F3F5F7; }
.monthbar .seg-item + .seg-item { border-left: 1px solid var(--line); }
.monthbar .seg-item.active { background: var(--ink); color: #fff; }
.monthbar .mo-nav { display: inline-flex; align-items: center; gap: 8px; }
.monthbar .mo-cur { font-size: 17px; min-width: 150px; text-align: center; }
.monthbar .mo-list { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.monthbar .chip { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--muted); background: #fff; }
.monthbar .chip.on { background: var(--blue-bg); color: var(--ink); border-color: #9DB7D3; font-weight: 600; }
.ota-page .mo-note { margin: 0 2px 12px; }
.ota-chart .ch-lab.on { font-weight: 700; fill: var(--ink); }
@media (max-width: 700px) { .monthbar .mo-list { margin-left: 0; } .monthbar .mo-cur { min-width: 0; } }

/* Marketing & Boost: Spot+ restaurant section (2026-11-24) */
.mk-promos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.mk-promo { border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; background: var(--card); }
.mk-promo.mk-hotel { border-left-color: #2F5D8A; }
.mk-promo .mk-when { font-weight: 600; }
.mk-strategy { margin-top: 12px; padding: 8px 10px; background: var(--blue-bg); border-radius: 8px; }
.mk-advice { display: grid; gap: 6px; }
.mk-adv { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--card); }
.mk-adv > summary { cursor: pointer; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mk-adv > summary .pill { margin-left: auto; }
.mk-adv p { margin: 6px 0 0; font-size: 14px; }
.mk-adv-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; flex: 0 0 auto; }
.mk-weak.mk-best { background: var(--amber-bg); border-color: #E7C98F; }

/* ---------- People: kinds and their rights (2026-11-24) ---------- */
table.rights { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
table.rights th, table.rights td { padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.rights thead th { background: #E9EDF1; color: #3A4654; font-size: 12.5px; text-align: center; white-space: nowrap; border-bottom: 2px solid #CBD3DB; }
table.rights thead th:first-child, table.rights tbody th { text-align: left; }
table.rights tbody th { font-weight: 600; min-width: 240px; background: #fff; position: sticky; left: 0; }
table.rights tbody th .hint { display: block; font-weight: 400; margin-top: 2px; }
table.rights td { text-align: center; width: 92px; }
table.rights td.yes { color: #1E7B3A; font-weight: 700; font-size: 16px; background: var(--green-bg); }
table.rights td.no { color: #B8C1CA; }
table.rights tbody tr:last-child th, table.rights tbody tr:last-child td { border-bottom: none; }
table.rights thead .count { display: block; margin: 2px auto 0; width: max-content; }
.role-form { margin-top: 10px; }
.perm-list { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 10px; margin: 10px 0; display: grid; gap: 6px; }
.perm-list legend { font-size: 12.5px; color: var(--muted); padding: 0 6px; }
.perm-list label.check { align-items: flex-start; }
.perm-list .hint { display: block; }
.hint-inline { font-size: 12px; color: var(--muted); font-style: normal; }
.role-fixed { margin: 8px 2px; }

/* ---------- Work schedule (2026-11-24) ---------- */
.sh-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--card); max-width: 100%; }
table.sh-tbl { border-collapse: separate; border-spacing: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
table.sh-tbl th, table.sh-tbl td { border-bottom: 1px solid var(--line); border-right: 1px solid #EEF1F4; text-align: center; padding: 0; min-width: 30px; height: 32px; }
table.sh-tbl thead th { background: #E9EDF1; color: #3A4654; font-weight: 600; padding: 4px 2px; border-bottom: 2px solid #CBD3DB; }
table.sh-tbl thead th .d { display: block; font-size: 13px; }
table.sh-tbl thead th .wd { display: block; font-size: 10.5px; font-weight: 500; color: var(--muted); }
table.sh-tbl thead th.we { background: #DDE3EA; }
table.sh-tbl thead th.today { background: var(--ink); color: #fff; }
table.sh-tbl thead th.today .wd { color: #D5DBE1; }
table.sh-tbl th.sh-who { position: sticky; left: 0; z-index: 1; background: #fff; text-align: left; padding: 4px 10px; min-width: 150px; max-width: 190px; font-weight: 600; white-space: nowrap; }
table.sh-tbl thead th.sh-who { background: #E9EDF1; z-index: 2; }
table.sh-tbl th.sh-who .sub { display: block; font-weight: 400; font-size: 11.5px; }
table.sh-tbl td.tot, table.sh-tbl th.tot { background: #F6F8F9; min-width: 28px; font-weight: 600; }
table.sh-tbl td.today { box-shadow: inset 0 0 0 2px var(--ink); }
table.sh-tbl tr.cover th, table.sh-tbl tr.cover td { background: #F6F8F9; font-size: 12px; color: var(--muted); font-weight: 500; }
table.sh-tbl tr.cover td.none { color: #B3261E; font-weight: 700; background: #FBE9E7; }
table.sh-tbl tbody tr:last-child th, table.sh-tbl tbody tr:last-child td { border-bottom: none; }
.sh-M { background: #DCE9F7; color: #1F4E7A; font-weight: 700; }
.sh-E { background: #FBEFD5; color: #8A5A0A; font-weight: 700; }
.sh-O { background: #ECEFF2; color: #6B7682; }
.sh-none { color: #C2CAD2; }
table.sh-tbl.edit td { padding: 2px; }
table.sh-tbl.edit select.sh-sel { width: 38px; min-height: 28px; padding: 0 2px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 13px; }
button.sh-cell { width: 30px; height: 28px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; font-size: 13px; padding: 0; }
button.sh-cell.sh-none { background: #fff; }
.sh-fill { display: flex; gap: 3px; margin: 3px 0 2px; }
.sh-fill[hidden] { display: none; }
.btn.tiny { padding: 1px 7px; min-height: 22px; font-size: 11.5px; border-radius: 6px; }
.sh-form .bar { margin-top: 12px; }
.sh-key { display: inline-block; min-width: 22px; text-align: center; border-radius: 5px; padding: 0 5px; border: 1px solid var(--line); }
.card.duty { border-left: 4px solid var(--ink); }
.card.duty p { margin: 0; }
.my-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.my-cal .cal-h { font-size: 11.5px; color: var(--muted); text-align: center; }
.my-day { border: 1px solid var(--line); border-radius: 8px; padding: 4px 2px; text-align: center; min-height: 44px; display: flex; flex-direction: column; justify-content: center; }
.my-day .d { font-size: 11.5px; font-weight: 500; opacity: .75; }
.my-day .v { font-size: 12px; }
.my-day.today { box-shadow: inset 0 0 0 2px var(--ink); }

/* ---------- Review: the shift's card (2026-11-24) ---------- */
.card.duty h3 { margin: 14px 0 6px; font-size: 14.5px; }
.card.duty .asks { margin-bottom: 4px; }
details.tip { margin: 4px 0 2px; font-size: 13px; }
details.tip summary { cursor: pointer; color: var(--muted); }
details.tip .tips { margin: 6px 0 0; }
.checks { display: flex; flex-direction: column; gap: 6px; }
.check-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.check-row.done { background: var(--green-bg); }
.check-text { min-width: 0; }
.today-card p { margin: 0 0 6px; }

/* ---------- Requests to improve the board, and work on a rhythm (2026-11-24) ---------- */
.idea { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.idea-new { border-left: 4px solid var(--gold); }
.idea-approved { border-left: 4px solid #2F5D8A; }
.idea-done { background: var(--green-bg); }
.idea-rejected { opacity: .75; }
.idea-text { margin: 0 0 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.idea-reply { margin: 6px 0 0; font-size: 14px; }
.idea-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.idea-tools input { flex: 1 1 220px; min-height: 32px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 8px; }
.rh-group { margin: 14px 0 6px; font-size: 14.5px; }
table.rh-tbl td:first-child { min-width: 260px; }
details.rh-edit { margin-top: 6px; font-size: 13px; }
details.rh-edit summary { cursor: pointer; color: var(--muted); }
.rh-list .row { display: flex; }

/* ---------- Marketing & Boost: one part at a time (2026-11-24) ----------
   The parts are tabs without script: the part whose id is in the address (#resto, #content …) shows,
   and the first part shows when the address names none. Old links to the anchors keep working. */
.mk-page .mk-panel { display: none; }
.mk-page .mk-panel:target, .mk-page .mk-panel:has(:target) { display: block; }
.mk-page:not(:has(.mk-panel:target, .mk-panel :target)) .mk-panel.mk-first { display: block; }
.mk-page .mk-panel > h2.mt:first-child { margin-top: 4px; }
.mk-tabs a { padding: 6px 14px; font-size: 14px; font-weight: 600; }
.mk-page:has(#plan:target, #plan :target) .mk-tabs a[href="#plan"],
.mk-page:has(#resto:target, #resto :target) .mk-tabs a[href="#resto"],
.mk-page:has(#content:target, #content :target) .mk-tabs a[href="#content"],
.mk-page:has(#boosts:target, #boosts :target) .mk-tabs a[href="#boosts"],
.mk-page:has(#asks:target, #asks :target) .mk-tabs a[href="#asks"],
.mk-page:has(#spend:target, #spend :target) .mk-tabs a[href="#spend"],
.mk-page:has(#more:target, #more :target) .mk-tabs a[href="#more"],
.mk-page:not(:has(.mk-panel:target, .mk-panel :target)) .mk-tabs a[href="#plan"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.mk-now { border-left: 4px solid var(--ink); }
.mk-now .alerts { margin: 0; }
.mk-now a { font-weight: 600; }

/* ---------- Today: what to sell (2026-11-24) ---------- */
.card.sell h4 { margin: 12px 0 6px; font-size: 14.5px; }
.sell-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.sell-chip { border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 13px; background: #fff; }
.sell-msg { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 13.5px; background: #F6F8F9; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 8px; }

/* ---------- Marketing & Boost content: manager checks before posting (owner 2026-11-24) ---------- */
.ct-fill { margin: 4px 0 0; font-size: 13px; font-weight: 600; color: var(--red); }
.ct-rules { margin: 6px 0 10px; font-size: 14px; }
.ct-rules > summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.ct-rules ol { margin: 6px 0 4px 20px; padding: 0; }

/* Shown only on the old workers.dev address: points people to dashboard.nomadohotel.com. */
.moved-banner { background: var(--gold-light); color: var(--ink); text-align: center; padding: 10px 16px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.moved-banner a { color: var(--nav); text-decoration: underline; font-weight: 800; }
