/* Clarity Web Manager - /manage admin stylesheet (CDM Clarity styling,
   kept close to the PD Manager admin look). */

:root {
  --brand: #096126;
  --accent: #49A91D;
  --ink: #1c221c;
  --muted: #5f6a5f;
  --paper: #ffffff;
  --wash: #f3f6f3;
  --line: #d8e0d8;
  --danger: #b23a3a;
  --ok: #2e7d4f;
}

* { box-sizing: border-box; }

body.manage {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--wash);
}

a { color: var(--brand); }
h1 { font-size: 1.5rem; margin: 0 0 18px; }
h2 { font-size: 1.05rem; margin: 0 0 12px; color: var(--brand); }
code { background: #eef2f6; padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.muted { color: var(--muted); }
.error { color: var(--danger); font-weight: 600; }
.notice { color: var(--ok); font-weight: 600; }
.crumb { margin: 0 0 10px; }

/* Layout */
.manage-layout { display: flex; min-height: 100vh; }
.manage-sidebar {
  width: 220px;
  flex: 0 0 220px;
  background: var(--brand);
  color: #fff;
  display: flex;
  flex-direction: column;
}
.manage-brand { padding: 20px 18px 14px; border-bottom: 1px solid rgba(255,255,255,.15); }
.manage-brand-name { display: block; font-weight: 700; font-size: 1.1rem; }
.manage-brand-sub { display: block; font-size: .8rem; color: #b9cade; }
.manage-nav { display: flex; flex-direction: column; padding: 12px 0; flex: 1; }
.manage-nav a {
  color: #dbe6f1;
  text-decoration: none;
  padding: 10px 18px;
  border-left: 3px solid transparent;
}
.manage-nav a:hover { background: rgba(255,255,255,.08); }
.manage-nav a.active {
  background: rgba(255,255,255,.14);
  border-left-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.manage-sidebar-foot {
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: .85rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.manage-sidebar-foot a { color: #dbe6f1; }
.manage-user { color: #9fb4c9; }
.manage-smallprint { color: #7e93a8; font-size: .75rem; }
/* v0.48.01 (Paul: "extend to the width of the screen ... laptop or tablet"):
   the console fills the window beside the sidebar - no 1000px cap. min-width 0
   lets wide tables scroll inside their own box instead of pushing the page. */
.manage-main { flex: 1; min-width: 0; padding: 28px 32px 40px; }
.manage-foot { margin-top: 36px; color: var(--muted); font-size: .8rem; }

/* Auth screens */
.manage-auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, var(--brand), #10314f);
  padding: 24px;
}
.auth-card {
  background: var(--paper);
  border-radius: 10px;
  padding: 30px 34px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
}
.auth-card h1 { font-size: 1.25rem; }
.manage-auth-foot { color: #b9cade; font-size: .8rem; }

/* Panels, forms, tables */
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  margin: 0 0 18px;
}
label { display: block; margin: 0 0 12px; font-weight: 600; font-size: .88rem; }
input[type="text"], input[type="email"], input[type="password"], textarea, select {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-weight: 400;
  background: #fff;
}
textarea { resize: vertical; }
input[readonly] { background: var(--wash); color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.row-form { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.row-form label { flex: 1; min-width: 180px; margin-bottom: 0; }
.inline-form { display: inline; }
.color-row { display: flex; gap: 8px; margin-top: 4px; }
.color-row input[type="color"] { width: 44px; height: 38px; padding: 2px; border: 1px solid var(--line); border-radius: 6px; margin-top: 0; }
.color-row input[type="text"] { margin-top: 0; }

.btn {
  display: inline-block;
  padding: 9px 18px;
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; color: var(--brand); border: 1px solid var(--line); }
.mini {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 5px;
  padding: 3px 9px;
  cursor: pointer;
  font: inherit;
}
.mini:disabled { opacity: .35; cursor: default; }
.mini-danger { color: var(--danger); }

.table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; margin: 0 0 20px; }
.table th, .table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { background: var(--wash); font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.table tr:last-child td { border-bottom: 0; }

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.badge-published { background: #e2f2e8; color: var(--ok); }
.badge-draft { background: #f4e9d7; color: #8a6116; }
/* Campaign statuses (Batch 4) */
.badge-scheduled { background: #dcebf7; color: #1c5480; }
.badge-sending { background: #fdeec9; color: #8a6116; }
.badge-sent { background: #e2f2e8; color: var(--ok); }
.badge-cancelled { background: #eeeeee; color: #666; }
/* Social statuses (Batch 7) */
.badge-failed { background: #f7dcdc; color: var(--danger); }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { margin: 0; }
.page-head-actions { display: flex; align-items: center; gap: 10px; }
.block-panel { border-left: 4px solid var(--accent); }
.block-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.block-type { font-weight: 700; color: var(--brand); }
.block-tools { display: flex; gap: 6px; }
.media-thumb { width: 56px; height: 42px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }

/* Blog admin */
.filter-form { margin: 0 0 16px; }
.filter-form label { flex: 0 1 200px; }
.check-grid { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0 0 14px; }
.check-label { display: inline-flex; align-items: center; gap: 7px; font-weight: 400; margin: 0; }
.check-label input { margin: 0; }
.btn-danger-ghost { color: var(--danger); border-color: var(--danger); }

/* v0.48.01: a tablet held upright (768-834px) gets the full width - the
   sidebar folds above the page below 900px (it was 760px). */
@media (max-width: 900px) {
  .manage-layout { flex-direction: column; }
  .manage-sidebar { width: auto; flex: none; }
  .grid-2 { grid-template-columns: 1fr; }
}
/* v0.48.01: a table wider than the space it has scrolls sideways inside its
   own box (manage.js wraps every console table in .table-wrap) instead of
   pushing the whole page wider than the screen. A table that fits is an
   ordinary full-width table. */
.table-wrap { overflow-x: auto; margin: 0 0 20px; }
.table-wrap > .table { margin: 0; }
/* ...and a panel in a grid column may shrink below its table's width, so the
   table's own box can scroll (a grid item is otherwise as wide as its widest
   content - the last 12px of sideways spill on a phone). */
.grid-2 > *, .manage-main .panel { min-width: 0; }

/* Batch 5: multi-site console */
.manage-siteswitch {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.manage-siteswitch form { display: flex; align-items: center; gap: 8px; }
.manage-siteswitch-label { font-size: .75rem; color: #b9cade; text-transform: uppercase; letter-spacing: .04em; }
.manage-siteswitch select {
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font: inherit;
  font-size: .85rem;
}
.manage-siteswitch select option { color: #222; }
.btn-small { padding: 6px 10px; font-size: .8rem; }

/* Batch 6: analytics dashboard */
.range-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; }
.range-form .mini { text-decoration: none; color: var(--ink); }
.range-form .range-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.range-date { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; font-size: .85rem; }
.range-date input[type="date"] { width: auto; margin-top: 0; padding: 4px 8px; border: 1px solid var(--line); border-radius: 5px; font: inherit; }
.stat-tiles { display: flex; gap: 14px; flex-wrap: wrap; margin: 0 0 8px; }
.stat-tile { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 14px 22px; min-width: 150px; }
.stat-tile-n { display: block; font-size: 1.7rem; font-weight: 700; color: var(--brand); }
.stat-tile-l { display: block; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin-top: 2px; }
.chart { display: flex; align-items: flex-end; gap: 2px; height: 170px; padding: 4px 2px 24px; }
.chart-col { flex: 1 1 0; min-width: 3px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.chart-bar { background: var(--accent); border-radius: 2px 2px 0 0; }
.chart-col:hover .chart-bar { background: var(--brand); }
.chart-label { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); padding-top: 4px; font-size: .68rem; color: var(--muted); white-space: nowrap; }

/* Batch 7: social planner */
.calendar { table-layout: fixed; }
.calendar td { vertical-align: top; height: 84px; padding: 6px; }
.cal-empty { background: var(--paper); }
.cal-date { font-weight: 700; font-size: .78rem; color: var(--muted); margin-bottom: 4px; }
.cal-entry {
  display: block;
  margin: 2px 0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .72rem;
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cal-entry.cal-scheduled, .cal-entry.cal-sending { background: #dcebf7; color: #1c5480; }
.cal-entry.cal-sent { background: #e2f2e8; color: var(--ok); }
.social-body-view { white-space: pre-wrap; border-left: 4px solid var(--line); padding-left: 14px; margin: 12px 0; }
#media-preview { width: 120px; height: 90px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); margin: 0 0 14px; }

/* v0.9.1: show/hide password toggle (manage.js + manage/_pw_eye.html).
   The wrap takes over the input's usual 4px top gap so the button centres
   on the field itself - no layout shift when a field gains the eye. */
.pw-wrap { position: relative; display: block; margin-top: 4px; }
.pw-wrap input { margin-top: 0; padding-right: 38px; }
.pw-eye {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--muted);
  display: inline-flex;
  line-height: 0;
}
.pw-eye:hover { color: var(--ink); }
.pw-eye:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pw-eye .pw-eye-slash { display: none; }
.pw-eye.pw-eye-open .pw-eye-slash { display: inline; }
/* The sidebar-foot user name is now the account link - keep its muted tone. */
.manage-sidebar-foot a.manage-user { color: #9fb4c9; }

/* ---- v0.14.0 / v0.15.0: deltas, channel shares, clicks, insights, Overview ---- */
.stat-delta { display: block; font-size: .78rem; margin-top: 4px; color: var(--muted); }
.stat-delta.up { color: #2e8b57; }
.stat-delta.down { color: #c0392b; }
.stat-tile-live .stat-tile-n { color: #2e8b57; }
.share-bar { display: inline-block; height: 8px; max-width: 140px; background: var(--accent); border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.click-kind { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.insights { list-style: none; padding: 0; margin: 0; }
.insight { padding: 8px 12px; margin: 0 0 6px; border-left: 3px solid var(--line); background: rgba(9,97,38,.04); border-radius: 0 4px 4px 0; }
.insight-up { border-left-color: #2e8b57; }
.insight-down { border-left-color: #c0392b; }
.insight-flag { border-left-color: #d68910; }
.chart-small { height: 90px; padding-bottom: 6px; }
.weekday-chart { display: flex; align-items: flex-end; gap: 10px; height: 120px; padding: 4px 2px 24px; }
.weekday-chart .chart-col { min-width: 28px; }
.table-compact td, .table-compact th { padding: 5px 8px; font-size: .9rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 4px 0; }
.waiting li { border-bottom: 1px solid var(--line); padding: 7px 0; }
.waiting li:last-child { border-bottom: 0; }
.inline-form { display: inline; }
.panel h3 { font-size: .95rem; margin: 18px 0 6px; }

/* ---- v0.16.0: SEO page ---- */
.badge-seo-error { background: #fbe9e7; color: #b5231f; }
.badge-seo-warn { background: #f7ecd8; color: #9a5b00; }
.badge-seo-info { background: var(--line); color: var(--muted); }
tr.seo-error td:first-child { border-left: 3px solid #b5231f; }
tr.seo-warn td:first-child { border-left: 3px solid #d68910; }
textarea[name="gsc_service_account"] { font-family: ui-monospace, Consolas, monospace; font-size: .8rem; width: 100%; }

/* ---- v0.17.0: leads board, unread badges, segments ---- */
.nav-badge { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 9px; background: #d68910; color: #fff; font-size: .72rem; font-weight: 700; text-align: center; margin-left: 4px; }
.badge-new { background: #d68910; color: #fff; }
tr.unseen td { font-weight: 600; }
.badge-lead-new { background: #e3efe6; color: #096126; }
.badge-lead-contacted { background: #e8f0fb; color: #1f5f8b; }
.badge-lead-walkthrough { background: #efe8fb; color: #5b3a9b; }
.badge-lead-quoted { background: #fbf1dc; color: #9a5b00; }
.badge-lead-won { background: #096126; color: #fff; }
.badge-lead-lost { background: var(--line); color: var(--muted); }
.board { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-items: start; }
.board-col { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 10px; min-height: 120px; }
.board-col h2 { font-size: .9rem; margin: 0 0 10px; display: flex; justify-content: space-between; }
.board-col h2 .count { color: var(--muted); font-weight: 400; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; margin-bottom: 8px; font-size: .86rem; }
.card .who { font-weight: 600; }
.card .meta { color: var(--muted); font-size: .78rem; margin: 2px 0 6px; }
.card select { font-size: .78rem; max-width: 100%; }
.segments .mini { margin-right: 2px; }
@media (max-width: 1100px) { .board { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .board { grid-template-columns: 1fr; } }

/* v0.30.0: sign-out is a POST form that looks like the sidebar links. */
.logout-form { margin: 0; }
.logout-btn {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  color: #dbe6f1; text-align: left;
}
.logout-btn:hover { text-decoration: underline; }

/* v0.30.0: two-step sign-in screens. */
.mfa-qr { width: 200px; height: 200px; margin: 8px 0 12px; background: #fff; padding: 6px; border: 1px solid var(--line); border-radius: 8px; }
.mfa-qr svg { width: 100%; height: 100%; display: block; }
.mfa-key { font-family: ui-monospace, Consolas, monospace; font-size: 1rem; letter-spacing: .04em; word-break: break-all; }
.mfa-code { font-family: ui-monospace, Consolas, monospace; font-size: 1.4rem; letter-spacing: .3em; width: 9em; }
.mfa-steps { padding-left: 1.2em; }
.mfa-steps li { margin-bottom: 6px; }
.recovery-codes { columns: 2; list-style: none; padding: 0; font-family: ui-monospace, Consolas, monospace; font-size: 1.05rem; }
.recovery-codes li { padding: 4px 0; }
.mfa-alt { margin-top: 18px; }
.mfa-alt summary { cursor: pointer; color: var(--muted); }
.auth-card.wide { max-width: 520px; }

/* v0.45.0: Social performance. Bar heights by class (no inline style): the
   page rounds each week to the nearest 5%. The small second figure in a
   summary cell is the 30 days before. */
.chart-bar.h-0 { height: 0%; }
.chart-bar.h-5 { height: 5%; }
.chart-bar.h-10 { height: 10%; }
.chart-bar.h-15 { height: 15%; }
.chart-bar.h-20 { height: 20%; }
.chart-bar.h-25 { height: 25%; }
.chart-bar.h-30 { height: 30%; }
.chart-bar.h-35 { height: 35%; }
.chart-bar.h-40 { height: 40%; }
.chart-bar.h-45 { height: 45%; }
.chart-bar.h-50 { height: 50%; }
.chart-bar.h-55 { height: 55%; }
.chart-bar.h-60 { height: 60%; }
.chart-bar.h-65 { height: 65%; }
.chart-bar.h-70 { height: 70%; }
.chart-bar.h-75 { height: 75%; }
.chart-bar.h-80 { height: 80%; }
.chart-bar.h-85 { height: 85%; }
.chart-bar.h-90 { height: 90%; }
.chart-bar.h-95 { height: 95%; }
.chart-bar.h-100 { height: 100%; }
.perf-trend { margin: 6px 0 14px; height: 140px; }
.perf-table .num { text-align: right; }
.perf-scroll { overflow-x: auto; margin: 0 0 20px; }
.perf-scroll .table { margin: 0; }
.perf-before { display: block; font-size: .75rem; color: var(--muted); }
.perf-posts .perf-text { min-width: 260px; max-width: 360px; }
.perf-posts .perf-landed { min-width: 150px; }
.perf-nowrap { white-space: nowrap; }
.perf-date { white-space: nowrap; }
.perf-landed { font-size: .85rem; color: var(--muted); }
.perf-hidden { margin: -8px 0 20px; }
.perf-status .error { display: block; margin-top: 4px; }

/* ==== v0.46.0: THE CONSOLE AS AN INSTALLABLE APP ==========================
   The update strip and the install card: the same words, greens and shapes
   as every Clarity product (Clarity Board's clarity.css, from PC Site
   Manager v4.102.0). install-app.js and console-app.js only show and hide. */
.netbar { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; padding: 0.5rem 1rem; font-size: 0.9rem; border-bottom: 1px solid var(--line); background: #fff; color: var(--ink); position: sticky; top: 0; z-index: 50; }
.netbar[hidden] { display: none; }
.netbar-off { background: #F2C14E; color: #3F3110; border-bottom-color: #E8C766; font-weight: 600; justify-content: center; }
.netbar-new { background: #49A91D; color: #fff; font-weight: 600; justify-content: center; border-bottom-color: #49A91D; }
.netbar-reload { font: inherit; font-weight: 600; background: #fff; color: #096126; border: 0; border-radius: 6px; padding: 0.2rem 0.8rem; cursor: pointer; }
.install-banner {
  position: relative; margin: 0 0 22px; padding: 20px 24px; border-radius: 14px; color: #fff;
  background: #1E8C2E; background: linear-gradient(100deg, #096126 0%, #1E8C2E 55%, #49A91D 100%);
  box-shadow: 0 6px 18px rgba(9, 97, 38, 0.28);
}
.install-banner[hidden], .install-banner [hidden] { display: none; }
.install-banner-row { display: flex; gap: 22px; align-items: center; padding-right: 26px; }
.install-banner-icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 84px; height: 84px; padding: 5px; border-radius: 19px; background: #fff; color: #096126;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}
.install-banner-icon img { display: block; width: 74px; height: 74px; }
.install-banner-icon-done { border-radius: 50%; }
.install-banner-body { flex: 1; min-width: 0; }
.install-banner .install-banner-kicker { margin: 0 0 2px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.9; }
.install-banner .install-banner-title { margin: 0 0 4px; padding: 0; border: 0; background: none; color: #fff; font-size: 1.55rem; font-weight: 800; line-height: 1.2; }
.install-banner .install-banner-why { margin: 0; font-size: 1rem; opacity: 0.95; }
.install-banner a { color: #fff; }
.install-banner-actions { flex: none; display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.install-banner .install-banner-cta {
  display: inline-flex; gap: 10px; align-items: center; justify-content: center;
  padding: 14px 26px; border: none; border-radius: 10px; background: #fff; color: #096126;
  font-size: 1.12rem; font-weight: 800; text-decoration: none; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18); cursor: pointer;
}
.install-banner .install-banner-cta:hover { background: #F0F8F2; }
.install-banner .install-banner-cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.install-banner-cta svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.install-banner-links { display: flex; justify-content: center; gap: 18px; font-size: 0.92rem; }
.install-banner .install-banner-links .link-button { padding: 0; border: none; background: none; color: #fff; font: inherit; text-decoration: underline; cursor: pointer; }
.install-banner-steps { display: flex; flex-wrap: wrap; gap: 8px 30px; margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.35); list-style: none; font-size: 0.95rem; }
.install-banner-steps li { display: flex; gap: 9px; align-items: center; }
.install-banner-steps b { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #096126; font-size: 0.85rem; }
.install-banner .install-banner-close { position: absolute; top: 8px; right: 10px; padding: 2px 8px; border: none; background: none; color: #fff; font-size: 1.4rem; line-height: 1; opacity: 0.85; cursor: pointer; }
.install-banner .install-banner-close:hover { opacity: 1; background: none; }
@media (max-width: 860px) {
  .install-banner-row { flex-wrap: wrap; padding-right: 0; }
  .install-banner-actions { width: 100%; }
}
.install-banner-tick { font-size: 40px; font-weight: 800; line-height: 1; color: #096126; }
.pin-edge { display: none; }
.app-edge .pin-edge { display: block; }
.app-edge .pin-chrome { display: none; }
.install-pin-tip { display: flex; gap: 12px; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-left: 4px solid #2E8B4F; border-radius: 8px; padding: 12px 16px; margin: 0 0 16px; }
.install-pin-tip[hidden] { display: none; }
.install-pin-tip p { margin: 0; }
.link-button { padding: 0; border: none; background: none; color: #096126; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.offline-card { text-align: center; }
.offline-card img { display: block; margin: 0 auto 10px; }

/* ==== v0.47.0: ENQUIRY TO SALE ==========================================
   The leads board (one pipeline, seven stages), the "to do now" list and
   the lead page (work on the left, where it stands on the right). */
.leads-board { grid-template-columns: repeat(7, minmax(0, 1fr)); }
@media (max-width: 1300px) { .leads-board { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .leads-board { grid-template-columns: 1fr; } }
.card-overdue { border-left: 3px solid #c0392b; }
.next-overdue { color: #c0392b; font-weight: 600; }
.next-today { color: #8a5a00; font-weight: 600; }
.lead-site { display: inline-block; font-size: .72rem; background: var(--wash); border: 1px solid var(--line); border-radius: 10px; padding: 0 7px; color: var(--muted); }
.leads-due h2 { display: flex; gap: 8px; align-items: baseline; }
.due-row { margin: 6px 0; }
.due-tag { display: inline-block; min-width: 64px; text-align: center; font-size: .72rem; font-weight: 700; border-radius: 10px; padding: 1px 8px; margin-right: 6px; text-transform: uppercase; letter-spacing: .03em; }
.due-overdue { background: #fbe3e0; color: #a3271a; }
.due-today { background: #fff1d6; color: #8a5a00; }
.due-new { background: #e4f3dc; color: #096126; }
.lead-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .lead-layout { grid-template-columns: 1fr; } }
.lead-side label, .lead-email label, .lead-log label { display: block; margin: 0 0 10px; }
.lead-side input, .lead-side select, .lead-email input, .lead-email textarea, .lead-log textarea { width: 100%; }
.lead-email textarea { font-family: inherit; }
.lead-log .lead-kinds { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 10px; }
.lead-log .radio { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.lead-log .radio input { width: auto; }
.lead-contact { margin-top: -6px; }
.lead-stage { display: inline-block; font-weight: 700; border-radius: 14px; padding: 4px 12px; background: #e4f3dc; color: #096126; }
.lead-stage-won { background: #096126; color: #fff; }
.lead-stage-lost, .lead-stage-none { background: var(--wash); color: var(--muted); }
.tl { border-left: 3px solid var(--line); padding: 2px 0 2px 12px; margin: 0 0 14px; }
.tl-enquiry { border-left-color: #49A91D; }
.tl-email { border-left-color: #096126; }
.tl-stage, .tl-next { border-left-color: #9ccf7f; }
.tl-head { margin: 0 0 4px; }
.tl-head .muted { margin-left: 6px; font-size: .85rem; }
.tl-body { white-space: pre-wrap; font-size: .92rem; }
.tl-fields { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 0; font-size: .92rem; }
.tl-fields dt { color: var(--muted); }
.tl-fields dd { margin: 0; white-space: pre-wrap; }

/* v0.48.0: the reply form's product links - one row per product, its price,
   and the one-click insert buttons. */
.lead-links { border: 1px solid var(--line); border-radius: 8px; background: var(--wash); padding: 10px 12px; margin: 0 0 12px; }
.lead-links-head { margin: 0 0 8px; font-size: .9rem; }
.lead-link { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.lead-link:nth-child(2) { border-top: 0; }
.lead-link-name { font-size: .92rem; }
.lead-link-name .muted { font-size: .85rem; }
.lead-link-buttons { display: flex; gap: 6px; flex-wrap: wrap; }

/* v0.49.0: the Search & AI page - the verified / claimed column. */
.verdict { font-size: .85rem; white-space: nowrap; }
.verdict-ok { color: #096126; font-weight: 600; }
.verdict-bad { color: #a3271a; font-weight: 600; }
.verdict-unk { color: var(--muted); }
.warn-cell { color: #a3271a; font-weight: 600; }

/* v0.50.0: LinkedIn outreach - today's search, the tally, the searches. */
.outreach-today { border-left: 4px solid #49A91D; }
.outreach-who { font-size: 1.1rem; margin: 0 0 4px; }
.outreach-open { font-size: 1.05rem; padding: 12px 22px; }
.outreach-note blockquote { margin: 6px 0 8px; padding: 8px 12px; background: var(--wash); border-left: 3px solid var(--line); }
.outreach-tips { margin-top: 14px; }
.outreach-warn { color: #8a5a00; font-weight: 600; }
.outreach-search { border-top: 1px solid var(--line); padding: 12px 0; }
.outreach-search:first-of-type { border-top: 0; }
.outreach-off { opacity: .6; }
.outreach-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: flex-start; }
.outreach-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.outreach-edit { margin-top: 8px; }
.outreach-edit summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: .9rem; }
.outreach-form { margin: 10px 0; }
.outreach-form label { display: block; margin: 0 0 8px; }
.outreach-form input[type=text], .outreach-form input[type=url], .outreach-form textarea { width: 100%; }
.outreach-copy-buffer { position: fixed; left: -9999px; top: 0; }

/* v0.51.0: lead replies read from the sites' inboxes. */
.due-replied { background: #dcecfb; color: #0b4f8a; }
.tl-reply { border-left-color: #2f7fc1; }
.lead-waiting { background: #dcecfb; border: 1px solid #b9d7f2; border-radius: 8px; padding: 10px 14px; color: #0b3e6b; }
.m365-form label { display: block; margin: 0 0 8px; max-width: 520px; }
.m365-form input { width: 100%; }

/* ==== v0.52.0: the console in the shared Clarity bar ======================
   The block below is Clarity Planner's "THE CLARITY BAR", copied as the
   shared design says (only var(--sans) -> inherit). After it, the console's
   own parts: the row of the tab's pages, the website switcher, the Dashboard. */
/* ==== THE CLARITY BAR (v0.96.0) ==========================================
   Shared by Clarity Planner, Clarity Resource and Clarity PC Site Manager -
   copy this block, do not redraw it (0000-Software/CLARITY BANNER AND HELP.md).
   One dark for every product and every customer; Green 2 marks where you are
   and that a new version is ready. */
:root {
  --cbar-bg: #17231C; --cbar-ink: #FFFFFF; --cbar-ink-soft: rgba(255, 255, 255, 0.74);
  --cbar-accent: #49A91D; --cbar-deep: #096126; --crow-rule: #D7DED9;
}
.cbar { display: flex; align-items: center; gap: 1.4rem; height: 56px; padding: 0 1.1rem; background: var(--cbar-bg); color: var(--cbar-ink);
  font-family: inherit; position: relative; z-index: 20; }
.cbar-prod { display: inline-flex; align-items: center; gap: 0.6rem; flex: none; color: var(--cbar-ink); text-decoration: none; }
.cbar-prod img { width: 30px; height: 30px; display: block; }
.cbar-prod span { font-size: 17px; font-weight: 400; letter-spacing: 0.01em; white-space: nowrap; }
.cbar-prod b { font-weight: 700; }
.cbar-tabs { display: flex; gap: 0.15rem; align-self: stretch; }
.cbar-tabs a, .cbar-menu nav a { display: inline-flex; align-items: center; padding: 0 0.75rem; color: var(--cbar-ink-soft); font-size: 14.5px; font-weight: 600;
  text-decoration: none; border-top: 3px solid transparent; border-bottom: 3px solid transparent; }
.cbar-tabs a:hover, .cbar-tabs a:focus-visible { color: var(--cbar-ink); }
.cbar-tabs a[aria-current="page"] { color: var(--cbar-ink); border-bottom-color: var(--cbar-accent); }
.cbar-menu { display: none; position: relative; }
.cbar-menu > summary { list-style: none; cursor: pointer; color: var(--cbar-ink); font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 6px; padding: 0.3rem 0.7rem; }
.cbar-menu > summary::-webkit-details-marker { display: none; }
.cbar-menu nav { position: absolute; left: 0; top: calc(100% + 0.5rem); min-width: 12rem; background: #fff; border: 1px solid var(--crow-rule); border-radius: 6px;
  box-shadow: 0 8px 24px rgba(22, 32, 43, 0.16); display: flex; flex-direction: column; padding: 0.3rem 0; }
.cbar-menu nav a { color: var(--ink); padding: 0.5rem 0.9rem; border: 0; border-left: 3px solid transparent; }
.cbar-menu nav a[aria-current="page"] { border-left-color: var(--cbar-accent); color: var(--cbar-deep); }
.cbar-side { margin-left: auto; display: flex; align-items: center; gap: 1rem; white-space: nowrap; min-width: 0; }
.cbar-chip { background: #fff; border-radius: 6px; padding: 4px 9px; display: inline-flex; align-items: center; height: 32px; box-sizing: border-box; flex: none; }
.cbar-chip img { max-height: 24px; max-width: 140px; display: block; }
.cbar-chip-name { color: var(--cbar-bg); font-size: 13px; font-weight: 700; max-width: 14rem; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 24px; }
.cbar-help, .cbar-ticket { color: var(--cbar-ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.cbar-help:hover, .cbar-help:focus-visible, .cbar-ticket:hover, .cbar-ticket:focus-visible { text-decoration: underline; }
/* Raise a ticket in the Menu panel: there only once the tabs have folded into it. */
.cbar-menu nav a.cbar-menu-ticket { border-top: 1px solid var(--crow-rule); }
.cbar-who { color: var(--cbar-ink-soft); font-size: 14px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.cbar-out { font: inherit; font-weight: 600; font-size: 14px; color: var(--cbar-ink); background: transparent; border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px; padding: 0.3rem 0.7rem; cursor: pointer; }
.cbar-out:hover, .cbar-out:focus-visible { background: rgba(255, 255, 255, 0.12); }
.cbar a:focus-visible, .cbar button:focus-visible, .cbar summary:focus-visible { outline: 2px solid var(--cbar-accent); outline-offset: 2px; }
/* WHERE IT FOLDS - measured, and the same on every Clarity product
   (v0.96.01). The bar wants ~900px with four tabs, the chip, Help, the name
   and Sign out; at 700-780 it ran off the edge. So the name goes under
   1000px, the tabs fold into Menu under 820px, the chip and the product's
   name under 520px - the numbers Clarity Resource measured too.
   RAISE A TICKET (v1.10.1, the shared banner rule of 2026-10-12) made the
   right side longer. Measured again (headless Chrome, 360-1366px): the
   four-tab bar wants ~1080px with the name and ~990px without it, so the
   name goes under 1100px and the tabs fold into Menu under 1000px - and
   Raise a ticket goes into the Menu panel with them; left on the bar it ran
   a phone-width side off the edge. */
@media (max-width: 1099px) { .cbar-who { display: none; } }
@media (max-width: 999px) {
  .cbar { height: 52px; gap: 0.8rem; padding: 0 0.75rem; }
  .cbar-tabs { display: none; }
  .cbar-ticket { display: none; }
  .cbar-menu { display: block; }
  .cbar-prod span { font-size: 15px; }
  .cbar-side { gap: 0.7rem; }
}
@media (max-width: 519px) { .cbar-chip, .cbar-prod span { display: none; } }
/* The row under the bar: Back first, in the shared button shape. */
.crow { min-height: 48px; box-sizing: border-box; }
.crow-back { font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid var(--crow-rule);
  border-radius: 6px; padding: 0.3rem 0.75rem; cursor: pointer; text-decoration: none; display: inline-block; white-space: nowrap; }
.crow-back:hover, .crow-back:focus-visible { border-color: var(--cbar-deep); color: var(--cbar-deep); }
/* The update strip: the same green and words on every product. */
.netbar-new { background: var(--cbar-accent); color: #fff; font-weight: 600; justify-content: center; border-bottom-color: var(--cbar-accent); }
.netbar-reload { font: inherit; font-weight: 600; background: #fff; color: var(--cbar-deep); border: 0; border-radius: 6px; padding: 0.2rem 0.8rem; cursor: pointer; }
/* ==== end of the Clarity bar ============================================= */


/* The console's six tabs need more room than the Planner's four: measured in
   the preview (v0.52.0) - see the fold widths below, which override the
   shared 1100/1000 for this bar. */
.cbar { gap: 1rem; }
.cbar-tabs a { padding: 0 0.6rem; }
.cbar-tabs .nav-badge, .cbar-menu .nav-badge { margin-left: 5px; }
.cbar-who { text-decoration: none; }
.cbar-who:hover, .cbar-who:focus-visible { color: var(--cbar-ink); text-decoration: underline; }
.cbar-out-form { margin: 0; }
.cbar-site { display: flex; align-items: center; gap: 6px; margin: 0; }
.cbar-site-label { color: var(--cbar-ink-soft); font-size: 13px; font-weight: 600; margin: 0; }
.cbar-site select { font: inherit; font-size: 14px; font-weight: 600; color: var(--cbar-bg); background: #fff; border: 0; border-radius: 6px;
  padding: 4px 8px; height: 32px; max-width: 14rem; }
.cbar-site-go { font: inherit; font-size: 13px; font-weight: 600; color: var(--cbar-ink); background: transparent; border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px; padding: 0.25rem 0.6rem; cursor: pointer; }
.js-autosubmit .cbar-site-go { display: none; }
/* The row under the bar: the tab's own pages, as the shared .cbtn buttons. */
.csub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 1.1rem; background: #fff; border-bottom: 1px solid var(--crow-rule); }
.cbtn { font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid var(--crow-rule); border-radius: 6px;
  padding: 0.3rem 0.8rem; text-decoration: none; white-space: nowrap; }
.cbtn:hover, .cbtn:focus-visible { border-color: var(--cbar-deep); color: var(--cbar-deep); }
.cbtn.on { background: var(--cbar-deep); border-color: var(--cbar-deep); color: #fff; }
.crow-view { margin-left: auto; font-size: 0.9rem; font-weight: 600; color: var(--cbar-deep); text-decoration: none; white-space: nowrap; }
.crow-view:hover { text-decoration: underline; }
@media (max-width: 699px) { .csub { flex-wrap: nowrap; overflow-x: auto; } }
body.manage .manage-main { max-width: none; }
/* The update strip: 38px, above the bar (shared design 4). */
.netbar { min-height: 38px; }
/* The Dashboard */
.dash-date { font-size: 1rem; font-weight: 400; margin-left: 6px; }
.dash-todo h2 { display: flex; align-items: center; gap: 8px; }
.count-pill { display: inline-block; min-width: 26px; padding: 1px 9px; border-radius: 12px; background: #d68910; color: #fff; font-size: .85rem; text-align: center; }
.count-pill.count-zero { background: var(--cbar-deep); }
.dash-list { list-style: none; margin: 0; padding: 0; }
.dash-list li { padding: 7px 0; border-top: 1px solid var(--line); }
.dash-list li:first-child { border-top: 0; }
.dash-ok { color: var(--cbar-deep); font-weight: 600; margin: 10px 0 0; }
.dash-when { display: inline-block; min-width: 13.5rem; color: var(--muted); font-size: .9rem; }
@media (max-width: 700px) { .dash-when { display: block; min-width: 0; } }

