/* company/editor/ - the company page editor. Same calm palette as learn/roles/ (navy ink, one teal accent), system
   fonts, tabular numbers, no emoji. Prefix ce-. */
:root {
  --ink: #0f1d2e; --text: #2b3a4c; --muted: #5c6b7d; --bg: #f5f7fa; --bg-2: #eef2f6; --card: #fff; --line: #dbe3ea;
  --accent: #0f6b74; --accent-h: #0b555c; --on-accent: #fff; --focus: #2f6fed;
  --good: #2f7d4f; --good-soft: #e4f2ea; --warn: #8a5a12; --warn-soft: #f8efdc; --bad: #b4233c; --bad-soft: #fbe7ea;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef3f8; --text: #d2dbe5; --muted: #97a6b6; --bg: #0d1622; --bg-2: #132030; --card: #17263a; --line: #2a3b51;
    --accent: #5cc4cc; --accent-h: #8fdbe0; --on-accent: #08262a;
    --good: #8fd3a6; --good-soft: #17301f; --warn: #f0c96a; --warn-soft: #33290f; --bad: #f58a9c; --bad-soft: #3a1820;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-feature-settings: "tnum" 1; }
a { color: var(--accent); }
a:hover { color: var(--accent-h); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .35em; letter-spacing: -.01em; }
h1 { font-size: 1.6em; } h2 { font-size: 1.2em; } h3 { font-size: 1.02em; }
p { margin: 0 0 .7em; }
.ce-wrap { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.ce-boot { color: var(--muted); padding: 40px 18px; display: flex; align-items: center; gap: 10px; }
.ce-muted { color: var(--muted); }
.ce-small { font-size: .88em; }
.ce-block { display: block; }
.ce-grow { flex: 1; }
.ce-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ce-eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .74em; font-weight: 800; color: var(--accent); margin: 0 0 .4em; }
.ce-i { width: 16px; height: 16px; vertical-align: -3px; }
.ce-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: ce-spin .8s linear infinite; display: inline-block; }
@keyframes ce-spin { to { transform: rotate(360deg); } }

/* ---------- header ---------- */
.ce-top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.ce-top-in { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.ce-top-t { display: flex; flex-direction: column; min-width: 0; }
.ce-top-t b { color: var(--ink); font-size: 1.05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ce-top-t small { color: var(--muted); font-size: .82em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ce-logo { flex: none; width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); color: #fff; font-weight: 800; font-size: .9em; }
.ce-logo img { width: 100%; height: 100%; object-fit: contain; }
.ce-logo.lg { width: 52px; height: 52px; border-radius: 12px; font-size: 1.1em; }
.ce-pill { display: inline-block; font-size: .8em; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, var(--card)); color: var(--accent); white-space: nowrap; }
.ce-pill.super { background: var(--ink); color: var(--bg); }
.ce-pill.warn { background: var(--warn-soft); color: var(--warn); }
@media (max-width: 640px) { .ce-you { display: none; } }

/* ---------- buttons ---------- */
.ce-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 700; padding: 9px 16px; border-radius: 9px; border: 1.5px solid var(--accent);
  background: var(--accent); color: var(--on-accent); cursor: pointer; text-decoration: none; white-space: nowrap; }
.ce-btn:hover { background: var(--accent-h); border-color: var(--accent-h); color: var(--on-accent); }
.ce-btn small { font-weight: 500; opacity: .85; }
.ce-btn.ghost { background: transparent; color: var(--accent); }
.ce-btn.ghost:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.ce-btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.ce-btn.sm { padding: 5px 10px; font-size: .86em; }
.ce-btn[disabled] { opacity: .5; cursor: default; }
.ce-icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; text-decoration: none; flex: none; }
.ce-icon-btn svg { width: 18px; height: 18px; }
.ce-icon-btn.sm { width: 30px; height: 30px; }
.ce-icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.ce-link-btn { font: inherit; background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 600; }
.ce-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }

/* ---------- cards, notes ---------- */
.ce-main { padding-top: 22px; padding-bottom: 60px; }
.ce-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.ce-card.flush { padding: 0; overflow: auto; }
.ce-card-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.ce-card-h h3 { margin: 0; }
.ce-card-h-act { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.ce-under-card { display: flex; justify-content: flex-end; margin: -8px 0 16px; }
.ce-narrow { max-width: 640px; margin: 30px auto; }
.ce-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: var(--bg-2); margin: 0 0 14px; }
.ce-note > span { flex: 1; }
.ce-note.ok { background: var(--good-soft); }
.ce-note.warn { background: var(--warn-soft); }
.ce-note.bad { background: var(--bad-soft); }
.ce-note.sm { font-size: .9em; padding: 7px 11px; margin: 8px 0 0; }
.ce-empty { color: var(--muted); text-align: center; padding: 22px !important; }
.ce-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.ce-head > div { max-width: 640px; }
.ce-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 0 10px; min-width: 280px; }
.ce-search svg { width: 18px; height: 18px; color: var(--muted); }
.ce-search input { border: 0; outline: 0; background: transparent; font: inherit; padding: 9px 0; color: var(--ink); flex: 1; }

/* ---------- status ---------- */
.ce-status { display: inline-block; font-size: .78em; font-weight: 700; padding: 2px 9px; border-radius: 6px; background: var(--bg-2); color: var(--muted); white-space: nowrap; }
.ce-status.claimed, .ce-status.active { background: var(--good-soft); color: var(--good); }
.ce-status.unclaimed, .ce-status.invited { background: var(--warn-soft); color: var(--warn); }
.ce-status.delisted { background: var(--bad-soft); color: var(--bad); }
.ce-warn-t { color: var(--warn); font-weight: 600; }
.ce-note-t { font-style: italic; color: var(--muted); }

/* ---------- tables ---------- */
.ce-table { width: 100%; border-collapse: collapse; font-size: .93em; }
.ce-table th, .ce-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ce-table thead th { font-size: .76em; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); background: var(--bg); font-weight: 700; }
.ce-table tbody tr:last-child td, .ce-table tbody tr:last-child th { border-bottom: 0; }
.ce-table .num { text-align: right; }
.ce-table tr.click { cursor: pointer; }
.ce-table tr.click:hover { background: var(--bg); }
.ce-table td.act, .ce-table th.act { text-align: right; white-space: nowrap; }
.ce-table td.act > * { margin-left: 4px; }
.ce-table td.act { vertical-align: top; }
@media (max-width: 760px) {
  .ce-table[data-testid="ce-people"] thead { display: none; }
  .ce-table[data-testid="ce-people"] tr { display: grid; grid-template-columns: 1fr auto; padding: 10px 6px; border-bottom: 1px solid var(--line); }
  .ce-table[data-testid="ce-people"] td { border: 0; padding: 3px 8px; }
  .ce-table[data-testid="ce-people"] td.act { grid-column: 1 / -1; text-align: left; }
}

/* ---------- public view ---------- */
.ce-public { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 820px) { .ce-public { grid-template-columns: 1fr; } }
.ce-listing { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--bg); }
.ce-listing-h { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.ce-listing-h small { display: block; color: var(--muted); font-size: .84em; }
.ce-listing-n { color: var(--ink); font-size: 1.12em; font-weight: 700; }
a.ce-listing-n, .cp-contact-site { color: inherit; text-decoration: none; }
a.ce-listing-n:hover, .cp-contact-site:hover { color: var(--accent); }
.ce-listing-s { margin: 0 0 8px; color: var(--ink); }
.ce-listing-o small { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .72em; }
.ce-listing-o ul { margin: 2px 0 8px; padding-left: 1.1em; }
.ce-listing-w { font-size: .9em; }
.ce-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.ce-chip { font-size: .8em; padding: 2px 9px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 11%, var(--card)); color: var(--accent); font-weight: 600; }
.ce-chip.alt { background: color-mix(in srgb, #1f4e8c 12%, var(--card)); color: #1f4e8c; }
@media (prefers-color-scheme: dark) { .ce-chip.alt { color: #8fb4ea; } }

/* ---------- editor layout ---------- */
.ce-layout { display: grid; grid-template-columns: 230px 1fr; gap: 22px; align-items: start; }
.ce-tabs { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; }
.ce-tabs > button { display: flex; align-items: center; gap: 10px; font: inherit; text-align: left; padding: 9px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--text); cursor: pointer; font-weight: 600; }
.ce-tabs > button svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.ce-tabs > button span { flex: 1; }
.ce-tabs > button:hover { background: var(--bg-2); }
.ce-tabs > button.on { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.ce-tabs > button.on svg { color: var(--accent); }
.ce-badge { font-style: normal; font-size: .74em; font-weight: 800; background: var(--warn-soft); color: var(--warn); padding: 1px 7px; border-radius: 999px; }
.ce-tabs-foot { margin-top: 16px; padding: 12px; border-top: 1px solid var(--line); font-size: .88em; }
@media (max-width: 860px) {
  .ce-layout { grid-template-columns: 1fr; }
  .ce-tabs { position: sticky; top: 64px; z-index: 10; flex-direction: row; overflow-x: auto; background: var(--bg); padding: 8px 0; margin: 0 -18px; padding-left: 18px; scrollbar-width: none; }
  .ce-tabs > button { flex: none; }
  .ce-tabs > button span { white-space: nowrap; }
  .ce-tabs-foot { display: none; }
}
.ce-pane-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.ce-pane-h > div { max-width: 680px; }
.ce-pane-h .ce-note { margin-top: 6px; }
.ce-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 980px) { .ce-cols { grid-template-columns: 1fr; } }
.ce-sticky { position: sticky; top: 84px; }
.ce-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .ce-row2 { grid-template-columns: 1fr; } }
.ce-row-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.ce-row-card p { margin: 0; }

/* ---------- fields ---------- */
.ce-field { display: block; position: relative; margin-bottom: 14px; }
.ce-field > span { display: block; font-weight: 700; color: var(--ink); font-size: .92em; margin-bottom: 4px; }
.ce-field > span small { font-weight: 400; color: var(--muted); }
.ce-field input, .ce-field textarea, .ce-pane select, .ce-dialog input[type=text], .ce-dialog input[type=email], .ce-dialog textarea {
  width: 100%; font: inherit; padding: 9px 11px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.ce-field textarea { resize: vertical; }
.ce-field input[readonly], .ce-field textarea[readonly] { background: var(--bg); color: var(--muted); }
.ce-field input:focus, .ce-field textarea:focus { border-color: var(--accent); outline: 2px solid color-mix(in srgb, var(--accent) 25%, transparent); outline-offset: 0; }
/* sector tags (tag-field) */
.ce-tags-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 42px; padding: 5px 7px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); cursor: text; }
.ce-tags.ro .ce-tags-box { background: var(--bg); cursor: default; }
.ce-tags-box:focus-within { border-color: var(--accent); outline: 2px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.ce-field .ce-tags-box input { flex: 1 1 120px; min-width: 120px; width: auto; border: 0; padding: 4px; outline: none; background: transparent; }
.ce-field .ce-tags-box input:focus { outline: none; }
.ce-tag { display: inline-flex; align-items: center; gap: 2px; padding: 3px 4px 3px 10px; border-radius: 999px; font-size: .88em; font-weight: 600;
  background: color-mix(in srgb, var(--accent) 12%, var(--card)); color: var(--accent); }
.ce-tags.ro .ce-tag { padding-right: 10px; }
.ce-tag button { font: inherit; line-height: 1; border: 0; background: none; color: inherit; cursor: pointer; padding: 2px 6px; border-radius: 999px; }
.ce-tag button:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.ce-tags-list { position: absolute; left: 0; right: 0; z-index: 30; margin: 4px 0 0; padding: 4px; list-style: none; max-height: 280px; overflow-y: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.ce-tags-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 7px; cursor: pointer; color: var(--ink); }
.ce-tags-list li.hi { background: var(--bg-2); }
.ce-tags-list li small { color: var(--muted); }
.ce-tags-list li.create { color: var(--accent); }
.ce-tags-list mark { background: color-mix(in srgb, var(--warn) 28%, transparent); color: inherit; font-weight: 700; border-radius: 3px; padding: 0 1px; }
.ce-count { position: absolute; right: 8px; top: 2px; font-style: normal; font-size: .75em; color: var(--muted); }
.ce-count.near { color: var(--warn); font-weight: 700; }

/* ---------- overview ---------- */
.ce-over { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
@media (max-width: 900px) { .ce-over { grid-template-columns: 1fr; } }
.ce-score-card { display: flex; gap: 22px; align-items: center; }
.ce-ring { --p: 0; flex: none; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; align-content: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--bg-2) 0); position: relative; }
.ce-ring::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--card); }
.ce-ring b, .ce-ring small { position: relative; display: block; text-align: center; }
.ce-ring b { font-size: 2em; color: var(--ink); line-height: 1; }
.ce-ring small { color: var(--muted); font-size: .8em; }
@media (max-width: 480px) { .ce-score-card { flex-direction: column; align-items: flex-start; } }
.ce-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ce-check li { display: flex; gap: 8px; align-items: center; color: var(--ink); }
.ce-check svg { width: 18px; height: 18px; color: var(--line); flex: none; border: 1.5px solid var(--line); border-radius: 50%; padding: 2px; }
.ce-check li.done { color: var(--muted); text-decoration: line-through; }
.ce-check li.done svg { color: #fff; background: var(--good); border-color: var(--good); }

/* ---------- reading / routing ---------- */
.ce-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.ce-seg button { font: inherit; font-size: .9em; padding: 6px 13px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.ce-seg button[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ce-seg button[disabled] { cursor: default; opacity: .7; }
.ce-prows { display: flex; flex-direction: column; gap: 6px; }
.ce-prow { display: grid; grid-template-columns: minmax(170px, 1.3fr) minmax(110px, 1fr) 140px auto; gap: 12px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; }
.ce-prow.off { background: var(--bg); }
.ce-prow.off .ce-pname span, .ce-prow.off code { opacity: .55; }
.ce-pname, .ce-pappr { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.ce-pname { font-weight: 700; color: var(--ink); }
.ce-pappr { font-size: .88em; white-space: nowrap; }
.ce-prow input[type=checkbox], .ce-roles input, .ce-purposes input, .ce-check-line input { width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.ce-prow code { font: .85em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-2); padding: 1px 6px; border-radius: 5px; justify-self: start; }
.ce-prow select, .ce-route select { padding: 5px 8px; }
@media (max-width: 680px) { .ce-prow { grid-template-columns: 1fr auto; } .ce-prow code { grid-column: 1; } .ce-prow select { grid-column: 2; grid-row: 1; } .ce-pappr { grid-column: 1 / -1; } }
.ce-route { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ce-route tbody th { font-weight: 600; color: var(--ink); }
.ce-route td { min-width: 150px; }

/* ---------- activity ---------- */
.ce-log { list-style: none; margin: 0; padding: 0; }
.ce-log li { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: .93em; }
.ce-log li:last-child { border-bottom: 0; }
.ce-log time { color: var(--muted); font-size: .9em; }
.ce-log b { color: var(--ink); }
@media (max-width: 520px) { .ce-log li { grid-template-columns: 1fr; gap: 0; } }
.ce-last-source { margin: -6px 0 12px; }
.ce-last-source span { cursor: help; border-bottom: 1px dotted var(--muted); }

/* ---------- dialogs ---------- */
.ce-overlay { position: fixed; inset: 0; z-index: 1100; background: rgba(10, 18, 30, .55); display: grid; place-items: center; padding: 16px; }
.ce-dialog { width: 100%; max-width: 620px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: var(--card); border-radius: 14px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .45); }
.ce-dialog.wide { max-width: 760px; }
.ce-dialog.sm { max-width: 440px; }
.ce-dialog-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 20px 6px; }
.ce-dialog-h h2 { margin: 0; font-size: 1.15em; overflow-wrap: anywhere; }
.ce-dialog-b { padding: 8px 20px 12px; overflow: auto; }
.ce-dialog-f { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--line); }
.ce-dialog .ce-field { margin-bottom: 12px; }
.ce-roles, .ce-purposes { border: 0; padding: 0; margin: 4px 0 14px; }
.ce-roles legend, .ce-purposes legend { font-weight: 700; color: var(--ink); font-size: .92em; margin-bottom: 6px; padding: 0; }
.ce-roles legend small, .ce-purposes legend small { font-weight: 400; color: var(--muted); }
.ce-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ce-roles legend { grid-column: 1 / -1; }
@media (max-width: 520px) { .ce-roles { grid-template-columns: 1fr; } }
.ce-roles label { display: flex; gap: 9px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.ce-roles label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--card)); }
.ce-roles label.dis { opacity: .5; cursor: not-allowed; }
.ce-roles b { display: block; color: var(--ink); font-size: .93em; }
.ce-roles small { display: block; color: var(--muted); font-size: .82em; line-height: 1.35; }
.ce-purposes { display: flex; flex-wrap: wrap; gap: 6px; }
.ce-purposes legend { width: 100%; }
.ce-purposes label { display: flex; gap: 6px; align-items: center; padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: .88em; cursor: pointer; }
.ce-purposes label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--card)); }
.ce-check-line { display: flex; gap: 9px; align-items: flex-start; font-size: .92em; cursor: pointer; }
.ce-mail { border: 1px solid var(--line); border-radius: 10px; margin-top: 12px; overflow: hidden; }
.ce-mail-h { padding: 8px 14px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: .9em; }
.ce-mail-h small { color: var(--muted); margin-right: 6px; }
/* The invite's own HTML (server-built, values encoded) on a white sheet, as a mail client shows it */
.ce-mail-b { padding: 6px 16px 10px; background: #fff; color: #0f1d2e; max-height: 380px; overflow: auto; font-size: .92em; }
.ce-mail-b a { pointer-events: none; }

/* ---------- toasts ---------- */
.ce-toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 1200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.ce-toast { pointer-events: auto; display: flex; gap: 14px; align-items: center; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); font-size: .93em; max-width: 92vw; }
.ce-toast.bad { background: var(--bad); color: #fff; }
.ce-toast .ce-link-btn { color: inherit; }

/* cookie banner (cookie-consent.js) - same look as styles.css / planning.css, which this page doesn't load */
#cookie-consent-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000; max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid #dbe3ea; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 29, 46, .18); padding: 16px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.cookie-consent-text { flex: 1 1 240px; margin: 0; color: #5c6b7d; }
.cookie-consent-text a { color: #0f6b74; }
.cookie-consent-actions { display: flex; gap: 10px; }
.cookie-consent-btn { border: 0; border-radius: 9px; padding: 10px 16px; font-weight: 600; cursor: pointer; min-height: 40px; }
.cookie-consent-reject { background: #f5f7fa; color: #0f1d2e; border: 1px solid #dbe3ea; }
.cookie-consent-accept { background: #0f6b74; color: #fff; }

/* ---------- wizards (setup guide, invite wizard) ---------- */
.ce-wiz { max-width: 640px; }
.ce-wiz-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 20px 0; }
.ce-wiz-top small { color: var(--muted); font-weight: 700; font-size: .8em; text-transform: uppercase; letter-spacing: .06em; }
.ce-wiz-bar { height: 4px; background: var(--bg-2); margin: 10px 20px 0; border-radius: 99px; overflow: hidden; }
.ce-wiz-bar span { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.ce-wiz-b { padding-top: 16px; min-height: 260px; }
.ce-wiz-b h2 { font-size: 1.35em; }
.ce-wiz-roles { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.ce-wiz-roles li { display: flex; gap: 10px; align-items: baseline; padding: 9px 12px; border-radius: 9px; background: color-mix(in srgb, var(--accent) 7%, var(--card)); }
.ce-wiz-roles b { color: var(--ink); min-width: 92px; }
.ce-wiz-plan { margin: 0; padding-left: 1.3em; }
.ce-wiz-plan li { margin: .25em 0; color: var(--ink); }
.ce-wiz-plan small { color: var(--muted); }
.ce-wiz-choice { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ce-wiz-choice .ce-btn { padding: 12px 20px; }
.ce-wiz .ce-listing { margin-bottom: 4px; }
.ce-wiz-logo { display: flex; gap: 16px; align-items: flex-end; }
.ce-logo.xl { width: 84px; height: 84px; border-radius: 16px; font-size: 1.6em; margin-bottom: 14px; }
.ce-wiz-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 12px; }
.ce-wiz-cards.small { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.ce-wiz-cards button { font: inherit; text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); cursor: pointer; }
.ce-wiz-cards button:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.ce-wiz-cards button[aria-checked="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--card)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.ce-wiz-cards b { color: var(--ink); }
.ce-wiz-cards span { font-size: .86em; color: var(--muted); line-height: 1.4; }
.ce-wiz-done { display: flex; gap: 20px; align-items: center; }
.ce-wiz-done .ce-ring { width: 100px; height: 100px; }
.ce-wiz-ok { width: 56px; height: 56px; color: var(--good); flex: none; }
.ce-left { text-align: left; }
.ce-over-help { margin: 12px 0 0; color: var(--muted); }
@media (max-width: 520px) { .ce-wiz-done { flex-direction: column; align-items: flex-start; } .ce-wiz-logo { flex-direction: column; align-items: stretch; } }

/* ---------- tours: the target is lifted above a dimmed page (huge box-shadow), the bubble points to it ---------- */
/* keeps the target's own shape and background; only the ring and the dimmed surroundings are added */
.ce-spot { position: relative; z-index: 1150; box-shadow: 0 0 0 4px var(--accent), 0 0 0 9999px rgba(10, 18, 30, .55) !important; transition: box-shadow .2s; }
.ce-field.ce-spot, .ce-seg.ce-spot { border-radius: 8px; background: var(--card); outline: 8px solid var(--card); }
.ce-tour-catch { position: fixed; inset: 0; z-index: 1140; }
.ce-tour { position: fixed; z-index: 1250; background: var(--card); border-radius: 12px; padding: 14px 16px 12px; box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .5); border-top: 4px solid var(--accent); }
.ce-tour small { color: var(--muted); font-weight: 700; font-size: .78em; text-transform: uppercase; letter-spacing: .06em; }
.ce-tour h3 { margin: 4px 0 4px; }
.ce-tour p { margin: 0 0 10px; font-size: .94em; }
.ce-tour-f { display: flex; align-items: center; gap: 8px; }

/* ---------- help button ---------- */
.ce-help { position: fixed; right: 20px; bottom: 20px; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.ce-help-btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; padding: 8px 16px 8px 8px; border-radius: 999px; border: 0; background: var(--ink); color: var(--bg); cursor: pointer; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45); }
.ce-help-btn span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 1.05em; }
.ce-help-menu { width: 300px; max-width: calc(100vw - 40px); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 20px 50px -14px rgba(0, 0, 0, .4); }
.ce-help-menu > * { display: flex; gap: 12px; align-items: flex-start; width: 100%; font: inherit; text-align: left; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--text); cursor: pointer; text-decoration: none; }
.ce-help-menu > *:hover { background: var(--bg-2); }
.ce-help-menu svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }
.ce-help-menu b { display: block; color: var(--ink); }
.ce-help-menu small { color: var(--muted); font-size: .84em; }
@media (max-width: 640px) { .ce-help-btn b { display: none; } .ce-help-btn { padding: 8px; } .ce-help { right: 14px; bottom: 14px; } }

/* Promo messages */
.ce-promo { padding-bottom: 6px; margin-bottom: 14px; border-bottom: 1px solid var(--line, #e3e8f0); }
.ce-promo-preview { margin: -6px 0 10px; padding: 10px 12px; border: 1px solid var(--line, #e3e8f0); border-left: 3px solid var(--accent, #3b6fd8); border-radius: 10px; background: var(--bg); line-height: 1.5; overflow-wrap: anywhere; }
.ce-promo-preview p, .ce-promo-preview ul { margin: 0 0 6px; }
.ce-promo-preview > :last-child { margin-bottom: 0; }
.ce-promo-preview ul { padding-left: 20px; }

/* "My company" (?mine=1) */
.ce-mine-list { display: grid; gap: 8px; margin: 14px 0; }
.ce-mine-row { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); }
.ce-mine-row:hover, .ce-mine-row:focus-within { border-color: var(--accent, #4361ee); }
.ce-mine-link { flex: 1 1 auto; min-width: 0; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.ce-mine-link:focus-visible { outline: 2px solid var(--accent, #4361ee); outline-offset: 2px; border-radius: 4px; }
.ce-mine-row small { display: block; color: var(--muted); }
.ce-mine-row > .ce-chip, .ce-mine-row > .ce-btn { flex: none; margin-left: auto; }
.ce-mine-logo { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.ce-mine-logo img { width: 96px; height: 54px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* ---- products and services (Offer tab) ---- */
.ce-svcs { list-style: none; margin: 4px 0 0; padding: 0; }
.ce-svc { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.ce-svc:first-child { border-top: 0; }
.ce-svc-img { width: 56px; height: 56px; flex: none; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 8%, var(--card)); color: var(--accent); }
.ce-svc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ce-svc-img svg { width: 24px; height: 24px; }
.ce-svc-b { flex: 1; min-width: 0; }
.ce-svc-t { display: block; overflow-wrap: anywhere; }
.ce-svc-d { margin: 2px 0 4px; font-size: .92em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.ce-chips.sm { margin: 3px 0 2px; }
.ce-svc-act { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; max-width: 120px; }
.ce-svc-tag span, .ce-svc-where span, .ce-svc-pub span { display: flex; flex-direction: column; }
.ce-svc-tag small, .ce-svc-where small, .ce-svc-pub small { color: var(--muted); font-size: .85em; line-height: 1.35; }
.ce-svc-where .ce-check-line, .ce-svc-tag { margin-bottom: 8px; }
.ce-svc-card { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); max-width: 420px; margin-bottom: 10px; }
.ce-svc-card a { color: var(--accent); }
@media (max-width: 520px) { .ce-svc-act { max-width: 64px; } }
.ce-svc-where label, .ce-purposes .ce-svc-tag { flex: 1 1 100%; box-sizing: border-box; }

/* ---------- published flag (Offer) + Messages tab (the public page's contact form) ---------- */
.ce-chip.draft { background: var(--warn-soft); color: var(--ink); }
.ce-svc-pub { margin: 4px 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.ce-svc-where .ce-note { margin: 0 0 8px; }
.ce-link-btn.danger-t, .ce-btn.danger-t { color: var(--bad); }
.ce-msgs { list-style: none; margin: 0; padding: 0; }
.ce-msg { border-bottom: 1px solid var(--line); }
.ce-msg:last-child { border-bottom: 0; }
.ce-msg-h { display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 12px 16px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ce-msg-h:hover, .ce-msg-h:focus-visible { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.ce-msg-dot { flex: none; width: 9px; height: 9px; margin-top: 7px; border-radius: 50%; background: transparent; }
.ce-msg.unread .ce-msg-dot { background: var(--accent); }
.ce-msg-t { flex: 1; min-width: 0; }
.ce-msg-t b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ce-msg:not(.unread) .ce-msg-t b { font-weight: 600; }
.ce-msg-t small { display: block; color: var(--muted); font-size: .84em; overflow-wrap: anywhere; }
.ce-msg-h .ce-chips { flex: none; margin: 2px 0 0; max-width: 45%; justify-content: flex-end; }
.ce-msg-b { padding: 0 16px 14px 35px; }
.ce-msg-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0 10px; }
.ce-msg-b a { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .ce-msg-h { flex-wrap: wrap; }
  .ce-msg-h .ce-chips { max-width: none; justify-content: flex-start; padding-left: 19px; }
  .ce-msg-b { padding-left: 16px; }
}

/* ---------- Locations and opening hours (Locations tab) ----------
   The hours list and its stacked edit dialog follow shared/magnetic-meet-dialog.css (mmd-*): the site's favourite way to
   edit repeatable timeslots. */
.ce-cols-loc { grid-template-columns: 1fr 1.25fr; }
@media (max-width: 980px) { .ce-cols-loc { grid-template-columns: 1fr; } }
.ce-pad { padding: 16px 20px 0; }
.ce-switch { flex: none; position: relative; width: 44px; height: 26px; padding: 0; border: 1px solid var(--line); border-radius: 13px; background: var(--bg-2); cursor: pointer; transition: background .15s, border-color .15s; }
.ce-switch[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
.ce-switch:disabled { opacity: .6; cursor: default; }
.ce-knob { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s; }
.ce-switch[aria-checked="true"] .ce-knob { transform: translateX(18px); }
.ce-switch.sm { width: 34px; height: 20px; border-radius: 10px; }
.ce-switch.sm .ce-knob { width: 14px; height: 14px; }
.ce-switch.sm[aria-checked="true"] .ce-knob { transform: translateX(14px); }
.ce-pub-switch { display: inline-flex; align-items: center; gap: 8px; font-size: .88em; font-weight: 600; color: var(--ink); }
.ce-pub-switch.sm { font-size: .82em; }
.ce-pub-switch.ro { color: var(--muted); }

.ce-hours { display: flex; flex-direction: column; gap: 2px; }
.ce-hours-note { margin: 0 0 2px; font-size: .86em; color: var(--muted); }
.ce-slot { display: flex; align-items: center; gap: 8px; min-height: 34px; }
.ce-slot-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 6px 6px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.ce-slot-open:hover:not(:disabled) { background: var(--bg-2); }
.ce-slot-open:disabled { cursor: default; }
.ce-slot-text { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 0 8px; font-size: .9em; line-height: 1.3; }
.ce-slot-days { font-weight: 600; }
.ce-slot-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.ce-slot-pen { flex: none; width: 15px; height: 15px; color: var(--muted); opacity: 0; transition: opacity .12s; }
.ce-slot-open:hover .ce-slot-pen, .ce-slot-open:focus-visible .ce-slot-pen { opacity: 1; }
@media (hover: none) { .ce-slot-pen { opacity: .7; } }
.ce-slot.off .ce-slot-text { color: var(--muted); }
.ce-slot.off .ce-slot-days { font-weight: 500; }
.ce-slot.removed .ce-slot-text { color: var(--muted); font-style: italic; }
.ce-hours-add { align-self: flex-start; margin: 2px 0 0; padding: 4px 0; border: 0; background: none; cursor: pointer; color: var(--accent); font: inherit; font-size: .88em; font-weight: 600; }
.ce-hours-add:hover { text-decoration: underline; }
.ce-overlay.ce-overlay-top { z-index: 1200; background: rgba(10, 18, 30, .4); }
.ce-days { display: flex; gap: 5px; }
.ce-day { flex: 1; min-width: 0; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--ink); font: inherit; font-size: .9em; font-weight: 700; cursor: pointer; }
.ce-day:hover { border-color: var(--accent); }
.ce-day[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ce-quick { display: flex; gap: 14px; margin: 8px 0 14px; font-size: .86em; }
.ce-quick .ce-link-btn { text-decoration: none; }
.ce-quick .ce-link-btn:hover { text-decoration: underline; }
.ce-hours-times { grid-template-columns: 1fr 1fr; }
.ce-hours-times input[type=time] { font-size: 1.05em; color-scheme: light dark; }
@media (max-width: 560px) { .ce-hours-times { grid-template-columns: 1fr 1fr; } }

.ce-locs { list-style: none; margin: 0; padding: 0; }
.ce-loc { border-top: 1px solid var(--line); padding: 14px 20px; }
.ce-loc:first-child { border-top: 0; }
.ce-loc-h { display: flex; gap: 12px; align-items: flex-start; }
.ce-loc-pin { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--bg-2); color: var(--accent); }
.ce-loc-pin svg { width: 20px; height: 20px; }
.ce-loc-b { flex: 1; min-width: 0; }
.ce-loc-b > b { color: var(--ink); }
.ce-loc-b p { margin: 2px 0 0; }
.ce-loc-addr a { color: var(--text); text-decoration-color: var(--line); }
.ce-loc-hours { margin: 10px 0 0 50px; padding: 10px 12px; border-radius: 10px; background: var(--bg); }
.ce-loc-hours-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.ce-seg.sm button { padding: 4px 10px; font-size: .84em; }
@media (max-width: 560px) { .ce-loc-hours { margin-left: 0; } .ce-loc { padding: 14px; } }

.ce-addr { position: relative; }
.ce-addr-search { position: relative; }
.ce-addr-search input { padding-left: 34px !important; }
.ce-addr-ic { position: absolute; left: 11px; top: 12px; color: var(--muted); }
.ce-addr-spin { position: absolute; right: 11px; top: 11px; }
.ce-addr-list { top: 44px; }
.ce-addr-list li { justify-content: flex-start; }
.ce-addr-picked { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 10px; padding: 10px 12px; border: 1px solid var(--accent); border-radius: 10px; background: color-mix(in srgb, var(--accent) 6%, var(--card)); }
.ce-addr-picked .ce-i { color: var(--accent); margin-top: 3px; }
.ce-addr-picked b { color: var(--ink); display: block; }

/* ---------- Business addresses (People tab) ---------- */
.ce-biz { display: grid; gap: 6px; }
.ce-biz-row { display: grid; grid-template-columns: 150px 1fr; gap: 4px 12px; align-items: center; }
.ce-biz-l { font-weight: 600; color: var(--ink); font-size: .92em; }
.ce-biz-f { display: flex; gap: 10px; align-items: center; }
.ce-biz-f input[type=email] { flex: 1; min-width: 0; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); }
.ce-biz-f input[readonly] { background: var(--bg); color: var(--muted); }
.ce-biz-f input:focus { border-color: var(--accent); outline: 2px solid color-mix(in srgb, var(--accent) 25%, transparent); outline-offset: 0; }
.ce-biz-pub { align-items: center; white-space: nowrap; }
.ce-biz-pub.dis { color: var(--muted); }
.ce-biz-err { grid-column: 2; margin: 0; }
.ce-purposes-note { width: 100%; margin: 4px 0 0; }
@media (max-width: 560px) { .ce-biz-row { grid-template-columns: 1fr; } .ce-biz-err { grid-column: 1; } }
.ce-loc-choice { border: 0; padding: 0; margin: 4px 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ce-loc-choice legend { font-weight: 700; color: var(--ink); font-size: .92em; margin-bottom: 6px; padding: 0; }
.ce-loc-choice .ce-svc-pub { margin: 0; }
.ce-loc-choice label:has(input:checked) { border-color: var(--accent); }
@media (max-width: 560px) { .ce-loc-choice { grid-template-columns: 1fr; } }
