/* DineSignal prototype. Tokens from the DineSignal design and logo; light theme only. */
:root {
  color-scheme: light;
  --teal: #027c7f;
  --teal-strong: #02686b;
  --teal-soft: #e6f3f3;
  --teal-line: #b8dcdd;
  --tint: #e5f3f3;
  --ink: #1f2633;
  --ink-2: #3c4555;
  --muted: #5d6879;
  --faint: #8a94a3;
  --line: #e4e7ee;
  --line-2: #eef0f4;
  --bg: #f4f6f9;
  --panel: #ffffff;
  --head: #f8f9fb;
  /* Accent hues: each pairs a soft surface with a readable foreground. */
  --teal-bg: #e3f3f3; --teal-fg: #02686b;
  --coral-bg: #fdebe6; --coral-fg: #b8432a;
  --amber-bg2: #fff1db; --amber-fg: #9c5f17;
  --violet-bg: #efeafb; --violet-fg: #6a4bab;
  --blue-bg: #e7effd; --blue-fg: #2c5fbf;
  --green-bg2: #e3f4ea; --green-fg: #1d7d50;
  --green: #228659;
  --green-bg: #ecfaf2;
  --green-line: #bde7d4;
  --amber: #a5651f;
  --amber-bg: #fff4e2;
  --amber-line: #f4d5a1;
  --amber-soft: #fffbf5;
  --red: #b4432c;
  --red-bg: #fdeeea;
  --grey-bg: #f0f2f7;
  --grey-line: #dce1eb;
  --star: #e3a008;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.03);
  --font: 'Public Sans', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
}
::selection { background: #bfe3e3; color: var(--ink); }
input, textarea { caret-color: var(--teal); }
* { scrollbar-width: thin; scrollbar-color: #cbd2dc transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cbd2dc; border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
svg.i.flip { transform: rotate(180deg); }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { text-underline-offset: 3px; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 3px solid rgba(2, 124, 127, 0.35); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; height: 64px;
  display: flex; align-items: center; gap: 28px;
  padding: 0 28px; background: var(--panel); border-bottom: 1px solid var(--line);
}
.brandlink { display: flex; align-items: center; width: 212px; flex-shrink: 0; }
.brandlink img { height: 32px; width: auto; }
.collapsed .brandlink { width: auto; }
.menubtn { display: none; padding: 6px; border-radius: 6px; color: var(--muted); }
.search {
  display: flex; align-items: center; gap: 10px; width: 100%; max-width: 380px; height: 38px;
  padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--faint); background: #fff;
}
.search:focus-within { border-color: var(--teal-line); }
.search input { border: 0; outline: 0; width: 100%; font-size: 13px; color: var(--ink); background: transparent; }
.search kbd { font: 12px var(--font); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; white-space: nowrap; }
.topright { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.monitoring { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #24b078; display: inline-block; flex-shrink: 0; }
.dot.amber { background: #d18a30; }
.dot.grey { background: #a7b2bd; }
.iconbtn { position: relative; padding: 8px; border-radius: 8px; color: var(--muted); display: grid; place-items: center; }
.iconbtn:hover { background: var(--bg); color: var(--ink); }
.iconbtn .ping { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: #d18a30; box-shadow: 0 0 0 2px #fff; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--tint); color: var(--teal-strong); font-size: 12px; font-weight: 650; display: grid; place-items: center; }
.menu-pop {
  position: absolute; right: 0; top: 46px; width: 250px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 12px 32px rgba(16, 24, 40, 0.12); padding: 6px; z-index: 40;
}
.menu-pop .who { padding: 8px 12px; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.menu-pop a, .menu-pop button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 6px; font-size: 14px; color: var(--ink); text-align: left; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--bg); text-decoration: none; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.collapsed .shell { grid-template-columns: 72px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 64px; height: calc(100vh - 64px); background: var(--panel); border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.sidebar-scroll { flex: 1; overflow-y: auto; padding: 22px 18px 16px; display: flex; flex-direction: column; }
.collapsed .sidebar-scroll { padding: 22px 12px 16px; }
.ws { display: flex; align-items: center; gap: 12px; padding: 0 6px 22px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.collapsed .ws { justify-content: center; padding: 0 0 22px; }
.tile {
  display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 7px;
  border: 1px solid #ecdcc4; background: #fcf7ed; color: #8a6532; font-size: 12px; font-weight: 700;
}
.tile.sm { width: 34px; height: 34px; font-size: 12px; }
.ws strong { display: block; font-size: 14px; font-weight: 650; }
.ws small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.navlabel { margin: 26px 12px 8px; font-size: 12px; letter-spacing: 0.07em; font-weight: 650; color: var(--faint); text-transform: uppercase; white-space: nowrap; }
.collapsed .navlabel { margin: 16px 8px; height: 1px; background: var(--line); font-size: 0; }
.navlink { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 7px; color: var(--muted); font-size: 14px; margin: 2px 0; }
.navlink:hover { background: var(--bg); color: var(--ink); text-decoration: none; }
.navlink.on { background: var(--tint); color: var(--teal-strong); font-weight: 650; }
.navlink .badge { margin-left: auto; background: var(--amber-bg); color: var(--amber); font-size: 12px; font-weight: 650; border-radius: 4px; padding: 1px 6px; }
.collapsed .navlink { justify-content: center; padding: 0; }
.collapsed .navlink span, .collapsed .navlink .badge { display: none; }
.watch { margin-top: auto; border: 1px solid var(--line); border-radius: 9px; padding: 14px 16px; }
.watch p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.watch strong { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.bar { height: 4px; border-radius: 4px; background: var(--grey-bg); margin-top: 12px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: #7fcfd2; border-radius: 4px; }
.collapsed .watch { display: none; }
.collapse { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.collapsed .collapse { justify-content: center; padding: 0; }
.collapsed .collapse span { display: none; }
main { min-width: 0; padding: 26px 36px 40px; display: flex; flex-direction: column; gap: 26px; max-width: 1440px; width: 100%; margin: 0 auto; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 16px 36px; border-top: 1px solid var(--line); background: #f8f9fc; font-size: 12px; color: var(--muted); }
.footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer button { color: var(--teal); font-size: 12px; }

/* ---------- Page bar: breadcrumb as the page heading ---------- */
.pagebar { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; min-height: 40px; }
.crumbs ol { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; }
.crumbs li + li::before { content: ''; width: 6px; height: 6px; margin: 0 8px 0 4px; border-top: 1.5px solid #b3bdc6; border-right: 1.5px solid #b3bdc6; transform: rotate(45deg); }
.crumbs a { color: var(--muted); display: inline-flex; align-items: center; padding: 4px 6px; border-radius: 6px; }
.crumbs a:hover { background: #eaeef3; color: var(--ink); text-decoration: none; }
.crumbs a svg.i { width: 17px; height: 17px; }
.crumbs [aria-current] { color: var(--ink); font-weight: 650; padding: 4px 2px; font-size: 16px; }
.pagemeta { display: inline-flex; align-items: center; gap: 8px; }
.pagebar .actions { margin-left: auto; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- Buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 15px;
  border: 1px solid #d7dce6; border-radius: 6px; background: #fff; color: var(--ink-2); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.btn:hover { background: var(--bg); text-decoration: none; }
.btn svg.i { width: 16px; height: 16px; }
.btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; box-shadow: none; }
.btn.primary:hover { background: var(--teal-strong); }
.btn.text { border-color: transparent; background: transparent; color: var(--teal); padding-left: 0; padding-right: 0; min-height: auto; }
.btn.text:hover { text-decoration: underline; }
.btn.danger { color: var(--red); border-color: #f1c9bf; background: #fff; }
.btn.sm { min-height: 32px; padding: 5px 11px; font-size: 12px; }
.btn[disabled] { opacity: 0.55; cursor: default; }
.chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid; border-radius: 5px; padding: 2px 7px; font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1.4; }
.chip svg.i { width: 13px; height: 13px; }
.chip.ok { color: var(--green); background: var(--green-bg); border-color: var(--green-line); }
.chip.warn { color: var(--amber); background: var(--amber-bg); border-color: var(--amber-line); }
.chip.bad { color: var(--red); background: var(--red-bg); border-color: #f3c7bd; }
.chip.grey { color: #66727f; background: var(--grey-bg); border-color: var(--grey-line); }
.chip.teal { color: var(--teal-strong); background: var(--teal-soft); border-color: var(--teal-line); }
.label { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 650; color: var(--faint); }
.app { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.app b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line); background: var(--grey-bg); color: var(--muted); font-size: 12px; }
.star { color: var(--star); }

/* ---------- Panels ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 22px 24px; }
.panel h2, .h2 { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.panel h3 { font-size: 15px; font-weight: 650; }
.sub { font-size: 13px; color: var(--muted); margin-top: 5px; }
.sechead { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 24px; }
.grid2.rev { grid-template-columns: minmax(300px, 1fr) minmax(0, 1.65fr); }
.grid2.even { grid-template-columns: 1fr 1fr; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.empty { padding: 34px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.notice { padding: 13px 16px; border-radius: 7px; background: #f0f6f6; border: 1px solid #d6ebeb; color: #3f6b6d; font-size: 13px; line-height: 1.6; }
.notice.warn { background: var(--amber-soft); border-color: #f2e2c8; color: #8a5c22; }
.notice.ok { background: var(--green-bg); border-color: var(--green-line); color: var(--green); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.stat { display: flex; gap: 14px; align-items: center; padding: 4px 22px; border-right: 1px solid var(--line); min-width: 0; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; padding-right: 0; }
.disc { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.disc.green { background: #e4f3eb; color: #2f9a6f; }
.disc.amber { background: #fff0dd; color: #c97b2a; }
.disc.teal { background: #e8f6f6; color: #3fa1a5; }
.disc.violet { background: #f0eafb; color: #9a72c8; }
.stat strong { font-size: 25px; font-weight: 650; letter-spacing: -0.03em; }
.stat .nm { font-size: 13px; color: var(--muted); margin-left: 5px; }
.stat p { font-size: 12px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Attention ---------- */
.attn { display: flex; flex-direction: column; border-color: #ecd8bd; overflow: hidden; }
.attn-title { display: flex; align-items: center; gap: 9px; padding: 18px 22px 15px; background: var(--amber-soft); border-bottom: 1px solid #f1e7d7; color: #9c6626; font-size: 14px; font-weight: 650; }
.attn-body { padding: 22px; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.attn-body h2 { font-size: 19px; line-height: 1.35; margin: 10px 0 8px; max-width: 320px; }
.attn-body p { font-size: 13px; color: var(--muted); line-height: 1.7; max-width: 320px; }
.attn-body .btn { margin-top: 18px; }
.attn-foot { display: flex; align-items: center; gap: 8px; padding: 12px 22px; border-top: 1px solid #efe7dc; background: #fffcf7; font-size: 12px; color: #8f7a5f; }
.attn.good { border-color: #cfe8da; }
.attn.good .attn-title { background: #f7fcf9; border-color: #dfefe5; color: var(--green); }
.attn.good .attn-foot { background: #f7fcf9; border-color: #dfefe5; color: #5f8f74; }

/* ---------- Chart ---------- */
.legend { display: flex; gap: 18px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; background: #7fcfd2; display: inline-block; }
.legend i.dash { width: 14px; height: 0; border-top: 1.5px dashed #9aa8b2; border-radius: 0; background: none; }
.chart { position: relative; height: 170px; margin-top: 14px; }
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.axis-x { position: relative; height: 18px; margin-top: 8px; font-size: 12px; color: var(--faint); }
.axis-x span { position: absolute; transform: translateX(-50%); white-space: nowrap; }

/* ---------- Tables ---------- */
.tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 0 24px 16px; }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--muted); font-size: 13px; }
.tab:hover { text-decoration: none; color: var(--ink); }
.tab.on { border-color: var(--teal-line); background: #f0f8f8; color: var(--teal-strong); font-weight: 650; }
.minisearch { margin-left: auto; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--faint); width: 260px; max-width: 100%; }
.minisearch input { border: 0; outline: 0; width: 100%; font-size: 13px; background: transparent; }
.viewtoggle { display: flex; border: 1px solid var(--line); border-radius: 7px; padding: 2px; }
.viewtoggle a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 5px; color: var(--faint); }
.viewtoggle a.on { background: var(--tint); color: var(--teal); }
.tablewrap { overflow-x: auto; position: relative; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 650; color: var(--faint); background: var(--head); padding: 12px 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 15px 14px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover { background: #fafcff; }
table.t th:first-child, table.t td:first-child { padding-left: 24px; }
table.t th:last-child, table.t td:last-child { padding-right: 24px; text-align: right; }
table.t.plain th:last-child, table.t.plain td:last-child { text-align: left; }
.rname { display: flex; align-items: center; gap: 12px; }
.rname strong { display: block; font-weight: 650; color: var(--ink); }
.rname small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.bars { display: flex; gap: 2px; margin-top: 6px; height: 10px; }
.bars i { width: 3px; border-radius: 1px; background: #49b48a; }
.bars i.w { background: #e09b45; }
.bars i.u { background: #c9d1da; }
.tfoot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 13px 24px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; padding: 4px 24px 24px; }
.rcard { border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- Lists ---------- */
.rows > * { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line-2); }
.rows > *:last-child { border-bottom: 0; }
a.rowlink { color: inherit; border-radius: 6px; margin: 0 -8px; padding-left: 8px; padding-right: 8px; }
a.rowlink:hover { background: var(--bg); text-decoration: none; }
.act-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--tint); color: #4ea9ad; display: grid; place-items: center; flex-shrink: 0; }
.act-icon svg.i { width: 15px; height: 15px; }
.grow { flex: 1; min-width: 0; }
.grow strong { display: block; font-size: 13.5px; font-weight: 650; color: var(--ink); }
.grow p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.time { font-size: 12px; color: var(--faint); white-space: nowrap; }

/* ---------- Report tabs, tiles ---------- */
.rtabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); overflow-x: auto; margin-top: -6px; }
.rtabs a { padding-bottom: 12px; border-bottom: 2px solid transparent; color: var(--muted); white-space: nowrap; font-size: 14px; }
.rtabs a:hover { color: var(--ink); text-decoration: none; }
.rtabs a.on { color: var(--teal); border-color: var(--teal); font-weight: 650; }
.tilegrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
a.rtile { display: flex; flex-direction: column; padding: 24px; color: inherit; }
a.rtile:hover { border-color: var(--teal-line); text-decoration: none; }
.rtile svg.i { color: #6fb7ba; width: 20px; height: 20px; }
.rtile h3 { margin-top: 16px; }
.rtile p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.rtile strong { font-size: 32px; font-weight: 650; letter-spacing: -0.03em; margin-top: 22px; }
.rtile small { font-size: 12px; color: var(--muted); margin-top: 6px; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.select { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 13px; color: var(--muted); }
.select select { border: 0; outline: 0; background: transparent; color: var(--ink); font-weight: 600; font-size: 13px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.kpi { padding: 18px 20px; border-right: 1px solid var(--line); }
.kpi:last-child { border-right: 0; }
.kpi .v { font-size: 26px; font-weight: 650; letter-spacing: -0.03em; margin-top: 6px; }
.kpi .v.good { color: var(--green); }
.kpi .v.warn { color: var(--amber); }
.kpi p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.hbar { display: grid; grid-template-columns: minmax(110px, 200px) 1fr auto; gap: 12px; align-items: center; font-size: 13px; padding: 7px 0; }
.hbar .track { height: 8px; border-radius: 6px; background: var(--grey-bg); overflow: hidden; }
.hbar .track span { display: block; height: 100%; border-radius: 6px; background: var(--teal); }
.hbar .track span.good { background: #3aa57a; }
.hbar .track span.warn { background: #e09b45; }
.hbar .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.heat { display: grid; gap: 3px; }
.heat .cell { height: 22px; border-radius: 3px; }

/* ---------- Map ---------- */
.map { position: relative; height: 420px; border-radius: 8px; background: #eef2f6; overflow: hidden; }
.map .pin { position: absolute; transform: translate(-50%, -50%); width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25); cursor: pointer; }
.map .pin.lg { width: 20px; height: 20px; }
.map .pin.best { background: #2f9a6f; }
.map .pin.good { background: #7cc6a5; }
.map .pin.mid { background: #e5a95a; }
.map .pin.bad { background: #cf5a3c; }
.map .pin.none { background: #b7c1cc; }
.map .pin.off { background: #e3e8ee; }
.map .pin.ring { outline: 2px solid var(--teal); outline-offset: 2px; }
.map .tag { position: absolute; transform: translate(-50%, -150%); background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: 12px; white-space: nowrap; pointer-events: none; }
.maplegend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 12px; }
.maplegend span { display: inline-flex; align-items: center; gap: 6px; }
.maplegend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { padding: 10px 12px; border: 1px solid #c5ccd6; border-radius: 6px; background: #fff; font-size: 14px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); outline: 3px solid rgba(2,124,127,0.15); }
.field .hint { font-size: 12px; color: var(--muted); }
.field .err { font-size: 12px; color: var(--red); }
.check { display: flex; align-items: center; gap: 9px; font-size: 14px; margin-bottom: 10px; }
.check input { width: 16px; height: 16px; accent-color: var(--teal); }
.steps-bar { display: flex; gap: 6px; }
.steps-bar i { flex: 1; height: 4px; border-radius: 4px; background: #e6eaf1; }
.steps-bar i.on { background: #84d0d3; }
.todo { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.todo li { counter-increment: s; display: flex; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.todo li:last-child { border-bottom: 0; }
.todo li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; background: var(--tint); color: var(--teal); font-size: 12px; font-weight: 650; display: grid; place-items: center; flex-shrink: 0; }
.timeline { list-style: none; margin: 18px 0 0 6px; padding: 0 0 0 20px; border-left: 1px solid #dde3ee; }
.timeline li { position: relative; padding-bottom: 18px; font-size: 14px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: -24.5px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--c, #9cc9cb); }
.timeline small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
dl.facts { margin: 8px 0 0; }
dl.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
dl.facts div:last-child { border-bottom: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; font-weight: 600; }

/* ---------- Sign-in ---------- */
.entry { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: #fff; }
.entry-form { display: flex; flex-direction: column; padding: 32px 48px; }
.entry-form .box { margin: auto; width: 100%; max-width: 400px; }
.entry-form h1 { font-size: 30px; letter-spacing: -0.03em; font-weight: 650; margin: 0 0 8px; }
.entry-form .lead { color: var(--muted); margin-bottom: 26px; }
.entry-art { position: relative; background: #0d3b3c url('../assets/hero.jpg') center / cover; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 48px; overflow: hidden; }
.entry-art::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 22, 24, 0.15), rgba(10, 22, 24, 0.78)); }
.entry-art > * { position: relative; }
.entry-art h2 { font-size: 30px; line-height: 1.25; letter-spacing: -0.02em; max-width: 460px; }
.entry-art p { margin-top: 12px; color: rgba(255,255,255,0.8); max-width: 440px; }
.mockcard { position: absolute; top: 56px; right: 48px; width: 320px; background: #fff; color: var(--ink); border-radius: 12px; padding: 16px; box-shadow: 0 24px 60px rgba(0,0,0,0.35); }
.mockcard .r { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.mockcard .r:last-child { border-bottom: 0; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12px; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.mail { border: 1px solid var(--line); border-radius: 10px; padding: 18px; background: var(--bg); margin: 18px 0; }

/* ---------- Toast, prototype bar ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #23303a; color: #fff; padding: 11px 18px; border-radius: 8px; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); z-index: 100; max-width: calc(100vw - 32px); }
.drawer-bg { position: fixed; inset: 0; background: rgba(15, 25, 35, 0.4); z-index: 50; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: 280px; z-index: 51; box-shadow: 0 0 40px rgba(0,0,0,0.2); }
.drawer .sidebar { position: static; height: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .grid2, .grid2.rev { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .tilegrid, .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(2) { border-right: 0; }
  .kpi:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .shell, .collapsed .shell { grid-template-columns: minmax(0, 1fr); }
  .shell > .sidebar { display: none; }
  .menubtn { display: grid; }
  .topbar { padding: 0 16px; gap: 12px; }
  .brandlink { width: auto; }
  .brandlink img { height: 26px; }
  .search, .monitoring { display: none; }
  main { padding: 20px 16px 32px; }
  .footer { padding: 14px 16px; }
  .grid2.even, .tilegrid, .grid3 { grid-template-columns: minmax(0, 1fr); }  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; padding: 0; }
  .entry { grid-template-columns: 1fr; }
  .entry-art { display: none; }
  .entry-form { padding: 24px 16px; }
  .minisearch { margin-left: 0; width: 100%; }
  .hbar { grid-template-columns: minmax(90px, 130px) 1fr auto; }
}

/* ---------- Alerts, money, escalation ---------- */
.chip.violet { color: #6f4ea3; background: #f3eefb; border-color: #ddd0f1; }
.notice.bad { background: var(--red-bg); border-color: #f3c7bd; color: #8f3420; }
.kpi .v.bad { color: var(--red); }
.attn-money { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #f1e7d7; }
.attn-money > div { padding: 14px 22px; }
.attn-money > div + div { border-left: 1px solid #f1e7d7; }
.attn-money strong { display: block; font-size: 22px; font-weight: 650; letter-spacing: -0.02em; margin-top: 2px; color: var(--red); }
.attn-money small { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 2px; }
.attn-list { list-style: none; margin: 0; padding: 6px 12px; flex: 1; }
.attn-list li + li { border-top: 1px solid var(--line-2); }
.attn-list a { display: flex; flex-direction: column; gap: 4px; padding: 12px 10px; border-radius: 6px; color: inherit; }
.attn-list a:hover { background: var(--bg); text-decoration: none; }
.attn-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.attn-row strong { font-size: 14px; }
.attn-sub { font-size: 12.5px; color: var(--muted); }
.attn-sub b { color: var(--red); font-weight: 650; }
.attn-esc { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--teal-strong); }
.attn-esc svg.i, p svg.i { width: 14px; height: 14px; vertical-align: -2px; }
.money-row { display: flex; flex-wrap: wrap; gap: 10px 32px; align-items: flex-end; margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--head); }
.money-row strong { display: block; font-size: 22px; font-weight: 650; color: var(--red); margin-top: 2px; }
.money-row p { flex-basis: 100%; }
.money-cell { min-width: 84px; text-align: right; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.kindgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 14px; }
.kindgrid p { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.55; }
.ch { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; }
.ch svg.i { width: 16px; height: 16px; }
.ch.email { background: var(--tint); color: #3d63b8; }
.ch.sms { background: #fff2e3; color: #b26a1c; }
.ch.whatsapp { background: #e5f6ec; color: #1d8a4c; }
.ch.lg { width: 42px; height: 42px; border-radius: 10px; }
.ch.lg svg.i { width: 21px; height: 21px; }
.msglist { display: flex; flex-direction: column; margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.msglist a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: inherit; border-bottom: 1px solid var(--line-2); }
.msglist a:last-child { border-bottom: 0; }
.msglist a:hover { background: var(--bg); text-decoration: none; }
.msglist a.on { background: var(--teal-bg); }
.msglist a.on strong { color: var(--teal-fg); }
.phone .label { display: block; margin-bottom: 8px; text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; }
.phone .bubble { max-width: 420px; padding: 12px 14px; border-radius: 4px 14px 14px 14px; font-size: 13.5px; line-height: 1.55; }
.phone.sms, .phone.email { padding: 16px; border-radius: 12px; background: #f2f4f8; }
.phone.sms .bubble { background: #fff; border: 1px solid var(--line); }
.phone.wa { padding: 16px; border-radius: 12px; background: #ece5dd; }
.phone.wa .bubble { background: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); }
.phone.wa .bubble p { margin-top: 6px; }
.wabtns { display: flex; flex-direction: column; margin: 10px -14px -12px; border-top: 1px solid #e9edef; }
.wabtns span { padding: 9px; text-align: center; color: #128c7e; font-weight: 600; font-size: 13px; }
.wabtns span + span { border-top: 1px solid #e9edef; }
.mailcard { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; font-size: 13.5px; }
.mailcard strong { display: block; font-size: 15px; margin-bottom: 8px; }
.mailcard p { color: var(--ink-2); margin-top: 6px; line-height: 1.55; }

/* ---------- Comments ---------- */
.rows > .comment { align-items: flex-start; }
.comment .grow strong { font-weight: 550; line-height: 1.5; }
.stars-sm { color: var(--star); font-size: 13px; letter-spacing: 1px; white-space: nowrap; padding-top: 1px; }
.stars-sm i { font-style: normal; color: #dfe3ea; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.up-bad { color: var(--red); font-weight: 600; }
.down-good { color: var(--green); font-weight: 600; }
.cheat { display: grid; gap: 4px; margin-top: 16px; align-items: center; }
.cheat .ch-h { font-size: 12px; line-height: 1.25; color: var(--faint); text-align: center; font-weight: 600; align-self: end; padding-bottom: 2px; }
.cheat .ch-l { font-size: 12.5px; color: var(--ink-2); padding-right: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cheat .ch-c { display: grid; place-items: center; height: 30px; border-radius: 5px; font-size: 12px; font-weight: 650; }
.cheat .ch-c:hover { outline: 2px solid var(--teal-line); text-decoration: none; }
.rules { margin-top: 16px; }
.rules .check { flex-wrap: wrap; line-height: 2; }
input.mini { width: 64px; padding: 5px 8px; border: 1px solid #c5ccd6; border-radius: 6px; font-size: 14px; text-align: center; }

/* ---------- Settings ---------- */
.esc { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.esc li { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.esc-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--tint); color: var(--teal); font-size: 12px; font-weight: 700; }
.esc select, .contact-row input:not([type=checkbox]), .closure-form input, .closure-form select { padding: 7px 10px; border: 1px solid #c5ccd6; border-radius: 6px; background: #fff; font-size: 13.5px; min-width: 0; }
table.matrix td, table.matrix th { text-align: center; }
table.matrix td:first-child, table.matrix th:first-child { text-align: left; max-width: 420px; }
.matrix input[type=checkbox], .contact-row input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--teal); }
.closure-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0 12px; align-items: end; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.closure-form .field { margin-bottom: 12px; }
.closure-form > div:last-child { margin-bottom: 12px; }
.contacts { border-top: 1px solid var(--line); }
.contact-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(170px, 1.5fr) minmax(140px, 1fr) 56px 56px 76px 150px; gap: 12px; align-items: center; padding: 12px 24px; border-bottom: 1px solid var(--line-2); }
.contact-row.head { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 650; color: var(--faint); background: var(--head); padding-top: 10px; padding-bottom: 10px; }
.contact-row input[readonly] { background: var(--bg); color: var(--muted); }
.cr-role strong { display: block; font-size: 13.5px; }
.cr-role small { font-size: 12px; color: var(--muted); }
.integ .sechead { align-items: center; }
@media (max-width: 1100px) {
  .contact-row { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 14px 16px; }
  .contact-row.head { display: none; }
  .contact-row .cr-role, .contact-row input:not([type=checkbox]), .contact-row .actions { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .pagebar .actions { margin-left: 0; }
  .money-cell { display: none; }
}
.cr-ch { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.cr-ch span { display: none; }
@media (max-width: 1100px) { .cr-ch span { display: inline; } }

/* ---------- Action plan ---------- */
.actlist { display: flex; flex-direction: column; gap: 14px; }
.act { display: grid; grid-template-columns: 44px minmax(0, 1fr) 200px; gap: 18px; padding: 20px 22px; }
.act-rank { width: 32px; height: 32px; border-radius: 50%; background: var(--tint); color: var(--teal-strong); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.act-rank svg.i { width: 15px; height: 15px; }
.act-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.act h3 { margin-top: 10px; font-size: 16px; }
.act-steps { margin: 10px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 13px; line-height: 1.7; }
.act-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.act-foot .btn.text { margin-right: auto; }
.act-value { border-left: 1px solid var(--line); padding-left: 18px; display: flex; flex-direction: column; }
.act-value strong { font-size: 22px; font-weight: 650; color: var(--green); margin-top: 4px; letter-spacing: -0.02em; }
.act-value small { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- Competitors ---------- */
table.h2h td:first-child { color: var(--muted); }
table.h2h td.win { color: var(--green); font-weight: 650; }
table.h2h td.lose { color: var(--amber); }

/* ---------- Scorecard ---------- */
.rankpill { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--grey-bg); font-weight: 700; font-size: 12px; }
.rankpill.gold { background: #fdf1d2; color: #8a6111; }
.scorebig { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.scorebig.good { color: var(--green); }
.scorebig.warn { color: var(--amber); }
.minibar { display: inline-block; width: 70px; height: 6px; border-radius: 4px; background: var(--grey-bg); overflow: hidden; vertical-align: middle; margin-right: 8px; }
.minibar span { display: block; height: 100%; background: #3aa57a; border-radius: 4px; }
.minibar span.warn { background: #e09b45; }
table.score td:last-child, table.score th:last-child { text-align: left; }

/* ---------- Weekly email ---------- */
.emailpage { background: #eef1f6; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.em-meta { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); padding: 0 4px 14px; }
.em-meta b { color: var(--ink-2); margin-right: 6px; }
.em-body { background: #fff; border-radius: 8px; padding: 28px 30px; max-width: 640px; margin: 0 auto; font-size: 14px; line-height: 1.6; }
.em-body h2 { font-size: 22px; margin-top: 18px; letter-spacing: -0.02em; }
.em-body h3 { font-size: 15px; margin: 22px 0 6px; }
.em-body ol, .em-body ul { padding-left: 20px; margin: 0; }
.em-body li { margin-bottom: 8px; }
.em-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.em-kpis div { background: var(--bg); border-radius: 8px; padding: 10px 12px; }
.em-kpis span { display: block; font-size: 12px; color: var(--muted); }
.em-kpis strong { font-size: 17px; }
.em-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.em-table td { padding: 7px 0; border-bottom: 1px solid var(--line-2); }

/* ---------- Integrations ---------- */
.ch.slack { background: #f4ecf7; color: #611f69; }
.ch.teams { background: #eceefb; color: #4b53bc; }
.evgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; margin-bottom: 8px; }
.slackmsg { margin-top: 18px; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.sl-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.sl-head img { width: 22px; height: 22px; border-radius: 5px; }
.sl-card { margin: 8px 0 8px 30px; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; font-size: 13px; }
.sl-card p { color: var(--ink-2); margin-top: 2px; }
.sl-btns { display: flex; gap: 8px; margin-top: 8px; }
.sl-btns span { border: 1px solid var(--line); border-radius: 5px; padding: 3px 10px; font-weight: 600; font-size: 12px; }
.mono, pre.code { font-family: Consolas, 'Cascadia Mono', monospace; }
pre.code { background: #1f2933; color: #e6edf3; border-radius: 8px; padding: 14px 16px; font-size: 12.5px; overflow-x: auto; margin: 12px 0 0; white-space: pre; }
.codewrap { margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }

/* ---------- Plan ---------- */
.meters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 18px; }
.meter .sechead { font-size: 13px; font-weight: 600; }
.meter p { margin-top: 6px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plan { position: relative; display: flex; flex-direction: column; }
.plan.pop { border-color: var(--teal-line); box-shadow: 0 0 0 1px var(--teal-line); }
.plan.current { background: #f6fbfb; }
.plan-badge { position: absolute; top: 18px; right: 18px; }
.plan-price { margin: 10px 0 14px; }
.plan-price strong { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.plan-price span { color: var(--muted); margin-left: 4px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 18px; flex: 1; }
.plan li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; padding: 5px 0; color: var(--ink-2); }
.plan li svg.i { width: 16px; height: 16px; color: var(--green); margin-top: 2px; }

@media (max-width: 1200px) {
  .plans, .meters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .act { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .act-rank { display: none; }
  .act-value { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 12px; }
  .plans, .meters, .evgrid { grid-template-columns: minmax(0, 1fr); }
  .em-body { padding: 20px 16px; }
  .em-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =================================================================
   Visual refresh: one type scale, sentence-case labels, colour that
   means something (each area keeps its hue), calmer chrome.
   ================================================================= */

/* ---------- Type scale: 12 / 13 / 14 / 16 / 20 / 26 ---------- */
.small { font-size: 12.5px; }
.sub { font-size: 13px; line-height: 1.5; }
.panel h2, .h2 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.panel h3 { font-size: 15px; font-weight: 650; letter-spacing: -0.005em; }
.label { font-size: 12.5px; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--muted); }
table.t th, .contact-row.head { font-size: 12.5px; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--muted); background: var(--head); }
table.t td { padding: 14px; }
.kpi .v { font-size: 26px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
.kpi { padding: 18px 20px 16px; }
.kpi p { margin-top: 6px; line-height: 1.45; }
.crumbs [aria-current] { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- Chrome ---------- */
.topbar { height: 60px; box-shadow: 0 1px 0 var(--line); border-bottom: 0; }
.sidebar { top: 60px; height: calc(100vh - 60px); }
.navlink { height: 38px; font-weight: 500; color: var(--ink-2); border-radius: 8px; }
.navlink svg.i { color: var(--faint); }
.navlink:hover svg.i { color: var(--ink-2); }
.navlink.on { background: var(--teal-bg); color: var(--teal-fg); font-weight: 650; }
.navlink.on svg.i { color: var(--teal); }
.navlabel { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; color: var(--faint); margin: 22px 12px 6px; }
.navlink .badge { background: var(--coral-bg); color: var(--coral-fg); border-radius: 999px; padding: 1px 7px; }
.watch { background: var(--head); border-color: var(--line-2); }
.bar > span { background: var(--teal); }
.tile { background: var(--teal-bg); color: var(--teal-fg); border: 0; font-weight: 700; letter-spacing: 0.02em; }
main { gap: 24px; padding: 24px 32px 40px; }
.footer { justify-content: flex-end; gap: 18px; padding: 12px 32px; background: transparent; border-top: 1px solid var(--line-2); }
.footer button { font-size: 12.5px; color: var(--muted); }
.footer button:hover { color: var(--teal); text-decoration: underline; }
.menu-pop { box-shadow: 0 6px 14px rgba(16, 24, 40, 0.1); }

/* ---------- Surfaces and controls ---------- */
.panel { border-color: var(--line); }
.pad { padding: 22px 24px; }
.btn { border-radius: 8px; border-color: #d6dbe4; color: var(--ink-2); font-weight: 600; }
.btn.primary { box-shadow: none; }
.btn.lg { min-height: 44px; padding: 10px 20px; font-size: 14px; }
.chip { border-radius: 6px; font-weight: 600; }
.chip.ok { color: var(--green-fg); background: var(--green-bg2); border-color: transparent; }
.chip.warn { color: var(--amber-fg); background: var(--amber-bg2); border-color: transparent; }
.chip.bad { color: var(--coral-fg); background: var(--coral-bg); border-color: transparent; }
.chip.grey { color: var(--muted); background: #eef0f4; border-color: transparent; }
.chip.teal { color: var(--teal-fg); background: var(--teal-bg); border-color: transparent; }
.chip.violet { color: var(--violet-fg); background: var(--violet-bg); border-color: transparent; }
.tab { border-radius: 8px; font-weight: 500; }
.tab.on { background: var(--teal-bg); border-color: transparent; color: var(--teal-fg); }
.select { border-radius: 8px; }
.rtabs a { font-weight: 500; }
.field input, .field select, .field textarea { border-color: #cfd5de; border-radius: 8px; }
.notice { border-radius: 8px; }
.notice.ok { background: var(--green-bg2); border-color: transparent; color: var(--green-fg); }
.notice.warn { background: var(--amber-bg2); border-color: transparent; color: var(--amber-fg); }
.notice.bad { background: var(--coral-bg); border-color: transparent; color: var(--coral-fg); }
.kpi .v.good { color: var(--green-fg); }
.kpi .v.warn { color: var(--amber-fg); }
.kpi .v.bad { color: var(--coral-fg); }

/* ---------- Overview stat tiles: one hue each ---------- */
.stats { gap: 16px; padding-bottom: 0; border-bottom: 0; }
.stat { border: 0; border-radius: var(--radius); padding: 16px 18px; gap: 14px; }
.stat:first-child, .stat:last-child { padding: 16px 18px; }
.stat:nth-child(1) { background: var(--green-bg2); }
.stat:nth-child(2) { background: var(--coral-bg); }
.stat:nth-child(3) { background: var(--teal-bg); }
.stat:nth-child(4) { background: var(--violet-bg); }
.stat .disc { background: #fff; width: 42px; height: 42px; }
.disc.green { color: var(--green-fg); }
.disc.amber { color: var(--coral-fg); }
.disc.teal { color: var(--teal-fg); }
.disc.violet { color: var(--violet-fg); }
.stat strong { font-size: 24px; font-weight: 700; }
.stat .nm { color: var(--ink-2); font-weight: 500; }
.stat:nth-child(1) p { color: #3f6b55; }
.stat:nth-child(2) p { color: #8a4a3a; }
.stat:nth-child(3) p { color: #2f6668; }
.stat:nth-child(4) p { color: #5f4f86; }

/* ---------- Report tiles: each report keeps a hue ---------- */
a.rtile { padding: 22px; }
a.rtile svg.i { width: 40px; height: 40px; padding: 10px; border-radius: 10px; box-sizing: border-box; }
.tilegrid a.rtile:nth-child(6n+1) svg.i { background: var(--teal-bg); color: var(--teal-fg); }
.tilegrid a.rtile:nth-child(6n+2) svg.i { background: var(--violet-bg); color: var(--violet-fg); }
.tilegrid a.rtile:nth-child(6n+3) svg.i { background: var(--green-bg2); color: var(--green-fg); }
.tilegrid a.rtile:nth-child(6n+4) svg.i { background: var(--amber-bg2); color: var(--amber-fg); }
.tilegrid a.rtile:nth-child(6n+5) svg.i { background: var(--blue-bg); color: var(--blue-fg); }
.tilegrid a.rtile:nth-child(6n+6) svg.i { background: var(--coral-bg); color: var(--coral-fg); }
.rtile strong { font-size: 28px; font-weight: 700; margin-top: 18px; }
a.rtile:hover { border-color: var(--teal-line); box-shadow: 0 4px 14px rgba(16, 24, 40, 0.06); }

/* ---------- Lists, activity ---------- */
.act-icon { background: var(--teal-bg); color: var(--teal-fg); }
.rows > * { padding: 14px 0; }
.attn { border-color: #f1d9c9; }
.attn-title { background: #fff6f1; color: var(--coral-fg); border-color: #f6e4da; }
.attn-money { border-color: #f6e4da; }
.attn-money > div + div { border-color: #f6e4da; }
.attn-money strong, .attn-sub b, .money-row strong { color: var(--coral-fg); }
.attn-foot { background: #fffaf7; border-color: #f6e4da; color: #8a5a45; }

/* ---------- Start: paste your restaurants ---------- */
.onb { min-height: 100vh; background: var(--bg); }
.onb-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; max-width: 808px; margin: 0 auto; }
.onb-top img { height: 30px; display: block; }
.onb-main { max-width: 760px; margin: 0 auto; padding: 24px 24px 64px; }
.onb-steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 36px; flex-wrap: wrap; }
.onb-steps li { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.onb-steps li span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #eef0f4; font-size: 12px; }
.onb-steps li span svg.i { width: 14px; height: 14px; }
.onb-steps li.on { border-color: var(--teal); color: var(--teal-fg); }
.onb-steps li.on span { background: var(--teal); color: #fff; }
.onb-steps li.done { color: var(--green-fg); }
.onb-steps li.done span { background: var(--green-bg2); color: var(--green-fg); }
.onb-h { font-size: 34px; line-height: 1.15; letter-spacing: -0.03em; font-weight: 700; max-width: 620px; text-wrap: balance; }
.onb-lead { font-size: 16px; color: var(--muted); margin: 12px 0 28px; max-width: 580px; line-height: 1.55; }
.onb-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.onb-card textarea { width: 100%; resize: vertical; border: 1px solid #cfd5de; border-radius: 10px; padding: 14px 16px; font: 14px/1.6 Consolas, 'Cascadia Mono', monospace; color: var(--ink); background: var(--head); }
.onb-card textarea:focus { outline: 3px solid rgba(2, 124, 127, 0.15); border-color: var(--teal); background: #fff; }
.onb-card .err { display: block; font-size: 12.5px; color: var(--coral-fg); min-height: 18px; margin-top: 6px; }
.onb-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.onb-actions .primary { margin-left: auto; }
.onb > .onb-main > .onb-actions { margin-top: 24px; }
.onb-perks { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.onb-perks li { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.5; }
.onb-perks strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.perk { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; }
.perk.teal { background: var(--teal-bg); color: var(--teal-fg); }
.perk.coral { background: var(--coral-bg); color: var(--coral-fg); }
.perk.violet { background: var(--violet-bg); color: var(--violet-fg); }
.onb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.onb-grid .panel { border-radius: 12px; display: flex; flex-direction: column; }
.onb-grid .panel dl.facts { margin-bottom: 16px; }
.onb-grid .seg { margin-top: auto; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 16px; padding: 4px; background: #eef0f4; border-radius: 9px; }
.seg button { padding: 7px 8px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button.on { background: #fff; color: var(--teal-fg); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.1); }
.checkrow { display: flex; gap: 8px 22px; flex-wrap: wrap; margin: 4px 0 10px; }
.onb-note { margin-top: 14px; text-align: center; }

@media (max-width: 860px) {
  main { padding: 18px 16px 32px; }
  .footer { padding: 12px 16px; }
  .onb-top { padding: 16px; }
  .onb-main { padding: 12px 16px 48px; }
  .onb-h { font-size: 27px; }
  .onb-perks, .onb-grid { grid-template-columns: minmax(0, 1fr); }
  .onb-steps { margin-bottom: 24px; }
  .onb-steps li:not(.on) { font-size: 0; gap: 0; padding: 4px; }
  .stat:first-child, .stat:last-child, .stat { padding: 14px 16px; }
}

/* ---------- Cleanup: no icon tiles, no pills, no decorative effects ---------- */
/* Overview stats: tinted tiles carry the colour; the number leads. */
.stat .disc { display: none; }
.stat strong { font-size: 26px; }
/* Report tiles: the number carries the hue instead of an icon tile. */
a.rtile svg.i { display: none; }
.rtile h3 { margin-top: 0; }
.tilegrid a.rtile:nth-child(6n+1) strong { color: var(--teal-fg); }
.tilegrid a.rtile:nth-child(6n+2) strong { color: var(--violet-fg); }
.tilegrid a.rtile:nth-child(6n+3) strong { color: var(--green-fg); }
.tilegrid a.rtile:nth-child(6n+4) strong { color: var(--amber-fg); }
.tilegrid a.rtile:nth-child(6n+5) strong { color: var(--blue-fg); }
.tilegrid a.rtile:nth-child(6n+6) strong { color: var(--coral-fg); }
/* Integration cards: the channel icon sits in the heading line, not in a tile above it. */
.integ .ch.lg { background: none; width: auto; height: auto; }
.integ .ch.lg svg.i { width: 22px; height: 22px; }
/* Start steps: plain numbered text joined by a rule, not pills. */
.onb-steps { gap: 0; align-items: center; }
.onb-steps li { background: none; border: 0; padding: 0; border-radius: 0; }
.onb-steps li + li::before { content: ''; width: 32px; height: 1px; background: var(--line); margin: 0 12px; }
.onb-steps li.on { color: var(--ink); }
.onb-tagline { margin-top: 18px; font-size: 13px; color: var(--muted); }
@media (max-width: 860px) {
  .onb-steps li:not(.on) { font-size: 0; }
  .onb-steps li + li::before { width: 16px; margin: 0 8px; }
}
.onb-static { max-width: 760px; margin: 0 auto; padding: 96px 24px; }
.onb-static h1 { font-size: 34px; letter-spacing: -0.03em; }
.onb-static p { color: var(--muted); font-size: 16px; margin-top: 12px; }

.integ-h { display: flex; align-items: center; gap: 10px; }
.integ .sechead + .sub { margin-top: 8px; }

/* =================================================================
   Modern layout: full-height sidebar with the brand, a slim top bar
   over the content, separate figure cards, dot status labels.
   ================================================================= */
.layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.layout.collapsed { grid-template-columns: 72px minmax(0, 1fr); }
.maincol { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }

/* Sidebar */
.sidebar { position: sticky; top: 0; height: 100vh; background: #fbfcfd; border-right: 1px solid var(--line); }
.side-brand { display: flex; align-items: center; height: 60px; padding: 0 22px; flex-shrink: 0; }
.side-brand img.full { height: 28px; width: auto; }
.side-brand img.mark { display: none; height: 28px; width: auto; }
.collapsed .side-brand { justify-content: center; padding: 0; }
.collapsed .side-brand img.full { display: none; }
.collapsed .side-brand img.mark { display: block; }
.sidebar-scroll { padding: 6px 14px 14px; }
.collapsed .sidebar-scroll { padding: 6px 12px 14px; }
.ws { margin: 0 0 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; gap: 10px; }
.collapsed .ws { border: 0; background: none; padding: 8px 0; }
.ws .tile { width: 32px; height: 32px; border-radius: 8px; font-size: 12px; }
.ws strong { font-size: 13.5px; }
.navlabel { margin: 20px 10px 6px; }
.navlink { height: 36px; padding: 0 10px; gap: 11px; font-size: 13.5px; }
.navlink:hover { background: #f0f2f5; }
.navlink.on { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(16, 24, 40, 0.05); }
.navlink.on svg.i { color: var(--teal); }
a.watch { display: block; margin-top: auto; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: inherit; }
a.watch:hover { text-decoration: none; border-color: var(--teal-line); }
.watch-row { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); }
.watch-row strong { color: var(--ink); font-size: 12.5px; }
.watch .bar { display: block; margin-top: 10px; }
.collapse { height: 44px; padding: 0 24px; border-top: 1px solid var(--line-2); }

/* Top bar over the content */
.topbar { position: sticky; top: 0; z-index: 30; height: 60px; padding: 0 32px; gap: 16px; background: var(--bg); box-shadow: none; border-bottom: 1px solid var(--line-2); }
.brandlink { display: none; }
.search { max-width: 420px; height: 38px; border-radius: 10px; background: #fff; border-color: var(--line); }
.monitoring { font-size: 12.5px; padding: 6px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.avatar { width: 34px; height: 34px; background: var(--teal); color: #fff; }

/* Figures: separate cards with room between them */
.kpis { gap: 12px; border: 0; background: none; overflow: visible; }
.kpis .kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.kpi .label { font-weight: 500; }
.kpi .v { font-size: 24px; margin-top: 4px; }

/* Panels and tables: rounder, quieter */
.panel { border-radius: 12px; border-color: #e7eaef; box-shadow: none; }
.pad { padding: 20px 22px; }
table.t th { background: transparent; border-top: 0; padding-top: 10px; padding-bottom: 10px; }
table.t td { padding-top: 13px; padding-bottom: 13px; border-bottom-color: #f0f2f5; }
table.t tbody tr:hover { background: #fafbfc; }
.tools { padding: 0 22px 14px; }
.tfoot { padding: 12px 22px; background: #fcfcfd; border-radius: 0 0 12px 12px; }
.sechead h2, .sechead h3 { line-height: 1.35; }

/* Status labels: a coloured dot and text */
.chip.status { gap: 7px; padding: 3px 9px 3px 8px; border-radius: 999px; font-weight: 600; }
.cdot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* Controls */
.btn { min-height: 36px; padding: 7px 14px; }
.btn.sm { min-height: 30px; }
.btn.lg { min-height: 44px; }
.select { height: 36px; background: #fff; }
.tab { height: 34px; }
.rtabs { gap: 22px; }
.rtabs a { padding-bottom: 11px; color: var(--muted); }
.rtabs a.on { color: var(--ink); border-color: var(--teal); }

/* Page entrance: once per page change */
@keyframes enter { from { opacity: 0; transform: translateY(6px); } }
main.enter, .onb-main.enter { animation: enter 0.28s cubic-bezier(0.16, 1, 0.3, 1) both; }
@media (prefers-reduced-motion: reduce) { main.enter, .onb-main.enter { animation: none; } }

@media (max-width: 860px) {
  .layout, .layout.collapsed { grid-template-columns: minmax(0, 1fr); }
  .layout > .sidebar { display: none; }
  .brandlink { display: flex; }
  .topbar { padding: 0 16px; background: #fff; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.drawer .sidebar { height: 100%; }
.stats .stat:nth-child(n) { padding: 16px 18px; }
@media (max-width: 860px) { .stats .stat:nth-child(n) { padding: 14px 16px; } }


/* =================================================================
   Search rankings, Dubai map, store and item switches, item uptime,
   top complaints and compliments.
   ================================================================= */
.map { background: #f3efe6; border: 1px solid #e7e1d4; }
.mapbase { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .sea { position: absolute; left: 3%; top: 4%; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: #7d9db3; pointer-events: none; }
.map .pin.n { width: 26px; height: 26px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; z-index: 2; }
.map .pin.n.good { color: #14523b; }
.map .pin.n.mid { color: #5b3a0c; }
.map .pin.ring { z-index: 3; }
.map .tag { z-index: 4; transform: translate(-50%, -190%); font-weight: 600; }
.map .ringlbl { position: absolute; transform: translate(-50%, -50%); font-size: 12px; color: #1f7f7f; background: rgba(243, 239, 230, 0.9); padding: 0 4px; border-radius: 4px; pointer-events: none; }

.rank-grid { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 20px; align-items: start; }
.kwlist { display: flex; flex-direction: column; padding: 0 10px; }
.kwrow { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; color: inherit; }
.kwrow:hover { background: #f5f7f9; text-decoration: none; }
.kwrow.on { background: var(--teal-soft); }
.kw-name strong { display: block; font-weight: 650; color: var(--ink); text-transform: capitalize; }
.kw-name small, .kw-rank small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.kw-rank { text-align: right; font-weight: 650; }
.kw-trend { text-align: right; font-size: 12.5px; }
.kwadd { display: flex; gap: 8px; padding: 12px 22px 18px; border-top: 1px solid var(--line-2); margin-top: 8px; }
.kwadd input { flex: 1; min-width: 0; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 13px; }
.serp { list-style: none; margin: 12px 0 0; padding: 0; }
.serp li { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; font-size: 13.5px; }
.serp li + li { border-top: 1px solid var(--line-2); }
.serp li.you { background: var(--teal-soft); border-top-color: transparent; }
.serp .pos { width: 22px; color: var(--muted); font-weight: 650; }
.zrow { display: flex; align-items: center; gap: 12px; padding: 10px 4px; color: inherit; border-bottom: 1px solid var(--line-2); }
.zrow:last-child { border-bottom: 0; }
a.zrow:hover { text-decoration: none; background: #fafbfc; }
.zrow strong { display: block; font-weight: 650; }
.zrow small { display: block; font-size: 12px; color: var(--muted); }
.pin-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.pin-dot.best { background: #2f9a6f; } .pin-dot.good { background: #7cc6a5; } .pin-dot.mid { background: #e5a95a; } .pin-dot.bad { background: #cf5a3c; }

.switch { position: relative; width: 40px; height: 22px; border-radius: 999px; background: #d3d9e1; flex-shrink: 0; transition: background 0.15s; vertical-align: middle; }
.switch span { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.25); transition: transform 0.15s; }
.switch[aria-checked="true"] { background: var(--teal); }
.switch[aria-checked="true"] span { transform: translateX(18px); }
.switch:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.storelist { padding: 0 22px 8px; }
.storerow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-2); }
.storerow:has(.durpick) { grid-template-columns: minmax(0, 1fr) auto; }
.storerow:has(.durpick) .durpick { grid-column: 1 / -1; }
.durpick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.durpick .small { margin-right: 4px; }
.menutools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search-inline { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; min-width: 220px; }
.search-inline svg.i { color: var(--muted); }
.search-inline input { border: 0; outline: 0; font: inherit; font-size: 13.5px; min-width: 0; flex: 1; }
.seg.seg2 { grid-template-columns: repeat(2, auto); margin: 0 0 0 auto; }
.ustrip { display: inline-grid; grid-template-columns: repeat(7, 9px); gap: 2px; vertical-align: middle; }
.ustrip i { height: 18px; border-radius: 2px; }
.upcell { display: inline-flex; align-items: center; gap: 10px; }
.upcell + small { display: block; margin-top: 2px; font-size: 12px; }

.toplist { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.toplist li { display: flex; gap: 12px; }
.tl-n { width: 22px; height: 22px; border-radius: 50%; background: #f1f3f6; color: var(--muted); font-size: 12px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.tl-row { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.toplist .track { display: block; height: 6px; margin-top: 6px; border-radius: 999px; background: #f1f3f6; overflow: hidden; }
.toplist .track span { display: block; height: 100%; border-radius: 999px; }
.toplist .track .warn { background: #e8875f; }
.toplist .track .good { background: #3aa57a; }
.toplist q { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.tc-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 12px 0 4px; }
.tc-pair p { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

@media (max-width: 960px) {
  .rank-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .storerow { grid-template-columns: minmax(0, 1fr) auto; }
  .storerow > span:nth-child(2) { grid-column: 1; grid-row: 2; }
  .storesw { grid-column: 2; grid-row: 1 / 3; }
  .seg.seg2 { margin: 0; }
  .search-inline { min-width: 0; flex: 1 1 100%; }
  .tc-pair { grid-template-columns: minmax(0, 1fr); }
  .map .pin.n { width: 22px; height: 22px; }
}

[hidden] { display: none !important; }
.logrow { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); }
.logrow strong { display: block; font-weight: 600; font-size: 13.5px; }
.logrow small { display: block; font-size: 12px; color: var(--muted); }
@media (max-width: 600px) { .logrow { grid-template-columns: minmax(0, 1fr) auto; } .logrow > span:first-child { grid-column: 1 / -1; } }

/* ---------- Calm layer: fewer boxes and colours, same figures ---------- */
/* Overview figures: one neutral card style; colour only on the value that needs it. */
.stats .stat:nth-child(n) { background: #fff; border: 1px solid var(--line); }
.stats .stat:nth-child(n) p { color: var(--muted); }
/* Normal states read as text; filled chips are kept for things that need action. */
.chip.ok, .chip.grey { background: none; padding-left: 0; padding-right: 0; }
.chip.grey { font-weight: 500; }
.chip.status.ok { padding-left: 0; }
.quiet { color: var(--muted); font-size: 13px; }
/* Comment themes as plain words with a coloured dot. */
.tags { gap: 4px 12px; margin-top: 6px; }
.tg { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.tg::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--coral-fg); }
.tg.pos::before { background: var(--green-fg); }
.tc-pair p { gap: 4px 12px; }
.tc-pair .tg { font-size: 13px; color: var(--ink-2); }
.tc-pair .tg b { color: var(--muted); font-weight: 500; }
/* Priority as a small word, not a badge. */
.pri { font-size: 12px; font-weight: 650; width: 52px; flex-shrink: 0; }
.pri.High { color: var(--coral-fg); } .pri.Medium { color: var(--amber-fg); } .pri.Low { color: var(--muted); }
/* Attention panel: one sub line per alert, escalation in grey. */
.attn-esc { color: var(--muted); }
.attn-list a { gap: 3px; }
/* Top lists: thinner bars, trend at the end of the row. */
.toplist { gap: 12px; }
.toplist .track { height: 4px; margin-top: 5px; }
.toplist q { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.tl-n { background: none; width: 16px; }
.tl-row .tl-meta { display: inline-flex; gap: 10px; }
.tl-trend { font-size: 12px; min-width: 52px; text-align: right; }
.tl-trend.up { color: var(--coral-fg); } .tl-trend.down { color: var(--green-fg); }
.toplist.pos .tl-trend.up { color: var(--green-fg); } .toplist.pos .tl-trend.down { color: var(--coral-fg); }
/* Keyword list: one line per keyword. */
.kwrow { padding: 8px 12px; }
.kwrow small { color: var(--muted); }
/* Uptime cells: strip and figure on one line. */
.upcell + small { color: var(--muted); }
/* Side-by-side stores and change log. */
.logrow { grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 9px 0; }
.logrow small .who { color: var(--ink-2); }
.logrow small .who.warn { color: var(--amber-fg); }
.dotval { display: inline-flex; align-items: center; gap: 7px; }
.upcell small { font-size: 12px; margin-left: 2px; }
.grid2.even > .panel { min-width: 0; }
.attn-row .chip.teal, .attn-row .chip.violet { background: none; padding-left: 0; padding-right: 0; font-weight: 500; color: var(--muted); }
.rank-grid > .col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.rank-grid .zrow small { display: block; }
.rows.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
@media (max-width: 860px) { .rows.cols2 { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 861px) { .rows.cols2 { grid-template-rows: repeat(3, auto); grid-auto-flow: column; } }

/* ---------- Filters ---------- */
.filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tools .filterbar { flex: 1; }
.filterbar .fb-search { margin-left: auto; }
.fcount { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--teal-fg); color: #fff; font-size: 11px; font-weight: 700; }
.fpill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px 0 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 12.5px; }
.fpill b { color: var(--ink-2); font-weight: 600; }
.fpill svg.i { width: 13px; height: 13px; }
.fpill:hover { border-color: #c9d0da; text-decoration: none; }
.fp-bg { position: fixed; inset: 0; background: rgba(15, 25, 35, 0.32); z-index: 60; }
.fpanel { position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 100vw); background: #fff; z-index: 61; box-shadow: -12px 0 40px rgba(15, 25, 35, 0.16); transform: translateX(100%); transition: transform 0.22s ease; }
.fpanel.in { transform: none; }
@media (prefers-reduced-motion: reduce) { .fpanel { transition: none; } }
.fpanel form { display: flex; flex-direction: column; height: 100%; }
.fp-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.fp-head h2 { font-size: 16px; }
.fp-body { flex: 1; overflow-y: auto; padding: 8px 20px 20px; }
.fp-body fieldset { border: 0; margin: 0; padding: 16px 0 6px; }
.fp-body fieldset + fieldset { box-shadow: inset 0 1px 0 var(--line-2); }
.fp-body legend { padding: 0 0 8px; font-size: 12px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.fopt { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; cursor: pointer; }
.fopt input { width: 16px; height: 16px; margin: 0; accent-color: var(--teal-fg); }
.fopt span { flex: 1; }
.fopt small { color: var(--muted); font-size: 12px; }
.fp-foot { display: flex; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); }
.fp-foot .btn { flex: 1; justify-content: center; }

/* ---------- Equal heights in a row ---------- */
.grid2 > .stack > :last-child, .rank-grid > .col > :last-child { flex: 1; }
.grid2 > form.panel { display: flex; flex-direction: column; }
.grid2 > form.panel > .btn:last-child { margin-top: auto !important; align-self: flex-start; }
/* Orders chart grows with its panel. */
.oc-row { display: flex; gap: 10px; margin-top: 14px; min-height: 170px; }
.oc-y { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--faint); }
.oc-row .chart { height: auto; }
.fillchart { display: flex; flex-direction: column; }
.fc-body { flex: 1; display: flex; flex-direction: column; margin-top: 14px; }
.fc-body .oc-row { flex: 1; }
/* Side column sized by its neighbour; the last panel scrolls. */
@media (min-width: 1201px) {
  .stack.fit { contain: size; }
  .stack.fit > .fill-scroll { flex: 1 1 0; min-height: 0; overflow: auto; }
  .fill-scroll > .pad:first-child { position: sticky; top: 0; background: #fff; z-index: 1; }
}
/* Long previews: keep the side form in view instead of stretching it. */
.grid2 > .emailpage + form.panel { align-self: start; position: sticky; top: 20px; }
.rank-grid { align-items: stretch; }

/* ---------- One title style for every panel ---------- */
.panel h2, .panel h3, .panel .h2 { font-size: 15px; font-weight: 650; letter-spacing: -0.005em; }
.act h3 { font-size: 16px; }
.attn-body h2 { font-size: 19px; }
.tools .minisearch { margin-left: auto; }

/* ---------- UX pass ---------- */
.toast { display: flex; align-items: center; gap: 16px; }
.toast button { border: 0; background: none; color: #8fe0e2; font: inherit; font-weight: 650; cursor: pointer; padding: 0; }
.toast button:hover { text-decoration: underline; }
.stat.linked { position: relative; transition: border-color 0.15s, box-shadow 0.15s; }
.stat.linked:hover { border-color: var(--teal-line); box-shadow: 0 4px 14px rgba(16, 24, 40, 0.06); }
.stat-link { position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.stat-link:focus-visible { outline: 2px solid var(--teal-fg); outline-offset: 2px; }
.navlink .badge.quiet { background: #eef0f4; color: var(--muted); }
.tilegrid a.rtile:nth-child(n) strong { color: var(--ink); }
.act-value strong { font-size: 19px; white-space: nowrap; }
.rowlink .atrisk { color: var(--coral-fg); font-weight: 600; }
.rowlink .attn-esc { margin-top: 3px; }
.empty .btn { margin-left: 8px; vertical-align: middle; }

/* ---------- Design pass: one type scale, quieter colour, less chrome ---------- */
:root { --meta: #6b7686; --line: #e6e9ee; --line-2: #f0f2f5; }
body { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
strong, b, h1, h2, h3 { color: var(--ink); }
/* Type scale: page 18 · panel 15 · body 14 · meta 12.5 */
.crumbs [aria-current] { font-size: 18px; font-weight: 650; }
.panel h2, .panel h3, .panel .h2 { font-size: 15px; font-weight: 600; }
.sub, .kpi p, .stat p, .rname small, .rowlink p, .rows small, .zrow small, .logrow small, .attn-sub, .comment p { font-size: 12.5px; color: var(--meta); }
.label { font-size: 12.5px; font-weight: 500; color: var(--meta); }
.kpi .v, .stat strong { font-size: 24px; font-weight: 650; letter-spacing: -0.02em; }
.kpi .label { color: var(--meta); }
table.t th { font-size: 12px; font-weight: 500; color: var(--meta); }
table.t td { border-color: var(--line-2); }
/* Colour: brand teal for actions, red/amber/green for status, everything else neutral. */
.chip.info { background: none; border-color: transparent; padding-left: 0; padding-right: 0; color: var(--meta); font-weight: 500; }
.act-icon { background: #f1f3f6; color: var(--meta); }
.attn-title { background: #fff; color: var(--coral-fg); border-bottom-color: var(--line); }
.attn { border-color: #f3d9cf; }
.attn-money, .attn-money > div + div { border-color: var(--line); }
.attn-foot { background: #fafbfc; border-top-color: var(--line); color: var(--meta); }
.attn-row strong { font-weight: 600; }
.rowlink strong, .zrow strong, .rname strong, .kwrow strong, .logrow strong { font-weight: 600; }
/* Less chrome: lighter separators, calmer weights. */
.rows > * { border-bottom-color: var(--line-2); }
.btn { font-weight: 550; }
.navgroup, .nav .label, .sidebar .label { font-weight: 500; }

/* Tabular digits in data; slightly tighter tracking on large figures. */

.num, table.t td, .kpi .v, .stat strong { font-variant-numeric: tabular-nums; }
.kpi .v, .stat strong, .crumbs [aria-current] { letter-spacing: -0.02em; }

/* Alerts tables: whole row opens the alert; buttons stay clickable on top. */
.clickrow { position: relative; }
.clickrow:hover td { background: #fafbfc; }
.clickrow a.rowcover { color: inherit; }
.clickrow a.rowcover::after { content: ''; position: absolute; inset: 0; }
.clickrow a.rowcover:focus-visible { outline: none; }
.clickrow a.rowcover:focus-visible::after { outline: 2px solid var(--teal-fg); outline-offset: -2px; border-radius: 6px; }
.clickrow button, .clickrow .acked { position: relative; z-index: 1; }
.alerts-t td { vertical-align: middle; padding-top: 14px; padding-bottom: 14px; }
.alerts-t td small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--meta); }
.alerts-t td.atrisk { color: var(--coral-fg); font-weight: 600; }
.alerts-t .esc-cell { font-size: 12.5px; color: var(--meta); max-width: 300px; }
.alerts-t .esc-cell svg.i { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }
.alerts-t td:last-child { white-space: nowrap; }
.alerts-t td.num { white-space: nowrap; }
@media (max-width: 640px) {
  .alerts-t thead { display: none; }
  .alerts-t, .alerts-t tbody, .alerts-t tr, .alerts-t td { display: block; width: auto; }
  .alerts-t tr { padding: 12px 16px; border-top: 1px solid var(--line-2); }
  .alerts-t td { padding: 2px 0 !important; border: 0; text-align: left !important; max-width: none; }
  .alerts-t td:nth-child(2), .alerts-t td:nth-child(3), .alerts-t td:nth-child(4) { display: inline-block; margin: 6px 14px 0 0; }
  .alerts-t td:last-child:not(:nth-child(4)) { margin-top: 10px; }
}

/* Overview attention panel: same table as Alerts, totals in the header. */
.attn-t { border-color: #f3d9cf; }
.attn-h { display: inline-flex; align-items: center; gap: 8px; color: var(--coral-fg) !important; }
.attn-h svg.i { width: 18px; height: 18px; }
.attn-sum { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 13px; color: var(--meta); }
.attn-sum .atrisk { color: var(--coral-fg); font-weight: 600; }
.attn-note { display: flex; align-items: center; gap: 8px; padding: 12px 24px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--meta); }
.attn-note svg.i { width: 14px; height: 14px; }
.allclear { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-color: var(--green-line); background: #f7fcf9; }
.allclear > svg.i { width: 20px; height: 20px; color: var(--green-fg); flex-shrink: 0; }
.allclear strong { color: var(--green-fg); margin-right: 10px; }
.allclear .grow span { color: var(--ink-2); font-size: 13.5px; }
@media (max-width: 640px) { .allclear { flex-wrap: wrap; } }

/* Slop checks (lumioguard.dev): no tiny all-caps labels, nothing under 12px, no soft-shadow lift on bordered cards. */
.fp-body legend { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; color: var(--ink); }
.fcount, .oc-y { font-size: 12px; }
a.rtile:hover, .stat.linked:hover { box-shadow: none; }
table.t td small, .rows small { font-size: 12.5px; }

/* Full-width tables for things you act on: Store & menu, Action plan. */
.stores-t td, .acts-t td { vertical-align: middle; padding-top: 14px; padding-bottom: 14px; }
.stores-t td small, .acts-t td small { display: block; margin-top: 3px; color: var(--meta); }
.stores-t td:last-child { width: 1%; white-space: nowrap; }
.stores-t .durpick { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; align-items: center; }
.who.warn { color: var(--amber-fg); }
.acts-t td { vertical-align: top; }
.acts-t td:first-child { width: 28px; }
.acts-t .act-cell { min-width: 340px; max-width: 520px; }
.acts-t .act-cell strong { font-size: 14px; }
.act-more { margin-top: 6px; font-size: 13px; }
.act-more summary { cursor: pointer; color: var(--teal-fg); font-weight: 550; display: inline; }
.act-more ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); }
.act-more li + li { margin-top: 3px; }
.acts-t .act-cell .btn.text { margin-top: 4px; padding-left: 0; }
.acts-t .act-val { color: var(--green-fg); font-weight: 650; white-space: nowrap; }
.acts-t .pri { width: auto; }
.inline-select { height: 32px; border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; font: inherit; font-size: 13px; color: var(--ink-2); background: #fff; }
.row-btns { display: inline-flex; gap: 6px; white-space: nowrap; }
@media (max-width: 640px) {
  .stores-t thead, .acts-t thead { display: none; }
  .stores-t, .stores-t tbody, .stores-t tr, .stores-t td, .acts-t, .acts-t tbody, .acts-t tr, .acts-t td { display: block; width: auto; min-width: 0; max-width: none; }
  .stores-t tr, .acts-t tr { padding: 12px 16px; border-top: 1px solid var(--line-2); }
  .stores-t td, .acts-t td { padding: 3px 0 !important; border: 0; text-align: left !important; }
  .acts-t td:first-child { display: none; }
}
@media (max-width: 640px) {
  .acts-t .act-cell { min-width: 0; }
  .sechead .actions { max-width: 100%; }
  .sechead .actions .select { max-width: 100%; min-width: 0; }
  .sechead .actions .select select { min-width: 0; max-width: 200px; text-overflow: ellipsis; }
}
@media (max-width: 640px) {
  .menutools .select { max-width: 100%; min-width: 0; }
  .menutools .select select { width: auto; min-width: 0; max-width: 220px; }
}
