/* Pebbles CRM. Light beige theme; no external fonts, no third-party requests. */
:root {
  --bg: #eef1f6; --panel: #ffffff; --panel-2: #f3f3f3; --line: #e5e5e5; --line-2: #c9c9c9; --ink: #181818; --ink-2: #444444; --muted: #706e6b;
  --accent: #0176d3; --accent-ink: #ffffff; --accent-soft: #eef4ff; --danger: #ba0517; --danger-soft: #fddde3; --ok: #2e844a; --ok-soft: #cdefc4;
  --shadow: 0 2px 2px 0 rgba(0, 0, 0, .1);
  --radius: 4px; --head: 56px;
  --canvas: linear-gradient(180deg, #cfe0f5 0, #e6eef9 160px, #eef1f6 320px);
  --s-lead: #0b5cab; --s-qualified: #7526e3; --s-proposal: #a96404; --s-negotiation: #d84b0c; --s-won: #2e844a; --s-lost: #706e6b;
}
@media not all {
  :root { --bg: #16181d; --panel: #22252b; --panel-2: #2b2f36; --line: #3a3f47; --line-2: #4f555e; --ink: #ecedef; --ink-2: #c2c6cc; --muted: #959ba4;
    --accent: #5ea9f2; --accent-ink: #0b1220; --accent-soft: #1c2a3d; --danger: #fe8b8b; --danger-soft: #3d1a1f; --ok: #6cc77f; --ok-soft: #1b3122;
    --shadow: 0 2px 3px rgba(0,0,0,.45);
    --canvas: linear-gradient(180deg, #1d2a3d 0, #191d25 200px, #16181d 360px);
    --s-lead: #78b0fd; --s-qualified: #b38cf5; --s-proposal: #e4a201; --s-negotiation: #ff906e; --s-won: #6cc77f; --s-lost: #959ba4; }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", sans-serif; color: var(--ink); background: var(--bg) var(--canvas) no-repeat; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
h1 { font-size: 24px; letter-spacing: -.02em; margin: 0; font-weight: 700; }
h2 { font-size: 15px; margin: 0 0 12px; font-weight: 650; letter-spacing: -.01em; }
.muted { color: var(--ink-2); }
.dim { color: var(--muted); }
small, .small { font-size: 12.5px; }
[hidden] { display: none !important; }

/* Controls */
input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder { color: var(--muted); }
button { cursor: pointer; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 9px 14px; font-weight: 600; transition: transform .05s, background .15s, border-color .15s; white-space: nowrap; }
button:hover { background: var(--panel-2); }
button:active { transform: translateY(1px); }
button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
button.primary:hover { filter: brightness(1.07); background: var(--accent); }
button.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
button.ghost:hover { background: var(--accent-soft); color: var(--accent); }
button.danger { color: var(--danger); }
button.danger:hover { background: var(--danger-soft); border-color: var(--danger-soft); }
button.sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
button:disabled { opacity: .55; cursor: default; }
button svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
button svg + * , button.primary svg { margin-right: 2px; }
.side .foot button svg { width: 18px; height: 18px; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
form.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; }
form.grid .wide { grid-column: 1 / -1; }
.error { color: var(--danger); font-size: 13.5px; }

/* Auth screens */
.auth { min-height: 100%; display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 600px at 10% -10%, var(--accent-soft), transparent 60%), radial-gradient(900px 500px at 110% 110%, #fef3c7aa, transparent 60%); }
@media not all { .auth { background: radial-gradient(1200px 600px at 10% -10%, #1b2142, transparent 60%), radial-gradient(900px 500px at 110% 110%, #2a1f0a, transparent 60%); } }
.auth .box { width: 100%; max-width: 400px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.auth .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.auth .brand img { width: 40px; height: 40px; border-radius: 10px; }
.auth .brand strong { font-size: 18px; letter-spacing: -.02em; }
.auth form { display: grid; gap: 14px; }
.auth p { margin: 0 0 6px; color: var(--ink-2); font-size: 14px; }

/* App shell */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 18px 14px; border-right: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 6px; }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 16px; }
.side .brand img { width: 30px; height: 30px; border-radius: 8px; }
.side .brand strong { font-size: 16px; letter-spacing: -.02em; }
.side a.nav { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink-2); font-weight: 550; }
.side a.nav svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side a.nav:hover { background: var(--panel-2); color: var(--ink); }
.side a.nav.active { background: var(--accent-soft); color: var(--accent); }
.side .spacer { flex: 1; }
.side .foot { padding: 8px 10px; display: flex; gap: 8px; align-items: center; }
.main { padding: 26px 32px 60px; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.topbar .grow { flex: 1; }
.search { position: relative; max-width: 420px; flex: 1; }
.search input { padding-left: 36px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 2; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; bottom: 0; top: auto; height: auto; width: 100%; flex-direction: row; justify-content: space-around; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); z-index: 5; }
  .side .brand, .side .spacer, .side .nav span { display: none; }
  .side a.nav { padding: 10px 14px; }
  .side .foot { padding: 0; }
  .main { padding: 18px 16px 90px; }
}

/* Cards and tables */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stack > * + * { margin-top: 16px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .cols { grid-template-columns: 1fr; } }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi .l { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.kpi .v { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; }
.kpi .d { font-size: 12.5px; color: var(--muted); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 11.5px; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
tbody tr { transition: background .1s; }
tbody tr:hover { background: var(--panel-2); }
tbody tr.link { cursor: pointer; }
td .name { font-weight: 600; }
.table-wrap { overflow-x: auto; }
.empty { padding: 36px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink-2); font-weight: 600; margin-bottom: 4px; }

/* Avatars, pills */
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 12.5px; font-weight: 700; color: #fff; flex: none; }
.avatar.lg { width: 56px; height: 56px; font-size: 20px; }
.row { display: flex; align-items: center; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--panel-2); color: var(--ink-2); border: 1px solid var(--line); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill[data-stage="lead"] { color: var(--s-lead); } .pill[data-stage="qualified"] { color: var(--s-qualified); } .pill[data-stage="proposal"] { color: var(--s-proposal); }
.pill[data-stage="negotiation"] { color: var(--s-negotiation); } .pill[data-stage="won"] { color: var(--s-won); } .pill[data-stage="lost"] { color: var(--s-lost); }
.kind { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); flex: none; }
.kind svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Pipeline board */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.col { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; min-height: 240px; scroll-snap-align: start; transition: background .15s, border-color .15s; }
.col.over { border-color: var(--accent); background: var(--accent-soft); }
.col h3 { margin: 4px 6px 2px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.col h3 .dot { width: 8px; height: 8px; border-radius: 50%; }
.col h3 .n { margin-left: auto; color: var(--muted); font-weight: 600; }
.col .sum { margin: 0 6px 10px; font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.deal { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; margin-bottom: 8px; cursor: grab; box-shadow: 0 1px 2px rgba(15,23,42,.04); transition: box-shadow .15s, transform .15s; }
.deal:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.deal.dragging { opacity: .45; }
.deal .t { font-weight: 600; margin-bottom: 4px; line-height: 1.3; }
.deal .m { font-size: 12.5px; color: var(--ink-2); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.deal .v { font-weight: 700; color: var(--ink); }
.deal .actions { display: none; gap: 6px; margin-top: 8px; }
.deal:hover .actions, .deal:focus-within .actions { display: flex; }
.deal select { padding: 4px 8px; font-size: 12.5px; border-radius: 8px; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline .h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.timeline .h strong { font-weight: 600; }
.timeline .b { color: var(--ink-2); white-space: pre-wrap; }
ul.files { list-style: none; margin: 0; padding: 0; }
ul.files li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
ul.files li:last-child { border-bottom: 0; }
ul.files .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop { border: 1.5px dashed var(--line); border-radius: 12px; padding: 16px; text-align: center; color: var(--muted); font-size: 13.5px; transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.notice { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
@media not all { .notice { background: #2a1f0a; border-color: #4a3410; color: #fcd34d; } }

/* Toast, modal */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow); z-index: 20; max-width: 90vw; }
.toast.bad { background: var(--danger); color: #fff; }
.modal { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: grid; place-items: center; padding: 20px; z-index: 10; backdrop-filter: blur(2px); }
.modal .card { width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; }
.modal .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal .head h2 { margin: 0; font-size: 17px; }
.modal .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.pagehead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.pagehead .sub { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 13.5px; margin-bottom: 10px; }
.back:hover { color: var(--accent); }
.details dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; margin: 0; }
.details dt { color: var(--muted); font-size: 13px; }
.details dd { margin: 0; }

/* Password fields with show/hide */
.pw { position: relative; display: block; }
.pw input { padding-right: 42px; }
.pw .eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); padding: 6px; border: 0; background: transparent; color: var(--muted); border-radius: 8px; }
.pw .eye:hover { color: var(--ink); background: var(--panel-2); }
.pw .eye svg { width: 18px; height: 18px; margin: 0; vertical-align: 0; }
.auth h2 { font-size: 20px; margin: 0 0 4px; letter-spacing: -.02em; }
.auth .switch { margin: 16px 0 0; font-size: 14px; text-align: center; color: var(--ink-2); }
.auth button.primary { padding: 11px; }
.side .foot { flex-direction: column; align-items: stretch; gap: 4px; }
.side .foot .user { display: flex; align-items: center; gap: 10px; text-align: left; border: 0; background: transparent; padding: 8px; border-radius: 10px; }
.side .foot .user:hover { background: var(--panel-2); }
.side .foot .user .avatar { width: 30px; height: 30px; font-size: 11px; }
.side .foot .who { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.side .foot .who strong { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .foot .who small { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .foot #logout { align-self: flex-start; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); }
label.check input { width: auto; }
@media (max-width: 860px) {
  .side .foot { flex-direction: row; align-items: center; }
  .side .foot .who { display: none; }
  .side .foot .user { padding: 6px; }
}

/* Salesforce-style additions: stepper, segmented filters, task lists, charts, link buttons */
a.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); font-weight: 600; }
a.btn:hover { background: var(--panel-2); }
a.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.topbar #topbar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.topbar #topbar-actions select { width: auto; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); }
.seg button { border: 0; border-radius: 0; padding: 7px 12px; font-size: 13.5px; color: var(--ink-2); background: transparent; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--accent-soft); color: var(--accent); }
.h2row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.h2row h2 { margin: 0; }
.late { color: var(--danger); font-weight: 600; }
.pill.hot { color: var(--danger); }
.pill[data-stage="s-new"] { color: var(--s-lead); } .pill[data-stage="s-working"] { color: var(--s-proposal); } .pill[data-stage="s-qualified"] { color: var(--s-won); } .pill[data-stage="s-unqualified"] { color: var(--s-lost); }
.avatar.xs { width: 22px; height: 22px; font-size: 9px; }
a.kpi { color: inherit; display: block; }
a.kpi:hover { border-color: var(--accent); }
.kpi .v.late { color: var(--danger); }
.notice.ok { background: var(--ok-soft); border-color: var(--ok-soft); color: var(--ok); }
ul.plainlist { list-style: none; margin: 0; padding: 0; }
ul.plainlist li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
ul.plainlist li:last-child { border-bottom: 0; }
ul.plainlist .grow { flex: 1; min-width: 0; }
ul.plainlist .right { text-align: right; }
a.deal { display: block; color: inherit; }
a.deal:hover .t { color: var(--accent); }
.deal .m + .m { margin-top: 6px; }

/* Deal stage stepper */
.stepper { display: flex; gap: 4px; margin-bottom: 16px; overflow-x: auto; }
.step { flex: 1; min-width: 96px; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; text-transform: capitalize; color: var(--ink-2); position: relative; }
.step.done { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.step.cur { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.step.cur.won { background: var(--ok); color: #fff; border-color: var(--ok); }
.step.cur.lost { background: var(--danger); color: #fff; border-color: var(--danger); }
.step:disabled { opacity: .5; }

/* Tasks */
ul.tasks { list-style: none; margin: 0; padding: 0; }
ul.tasks li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
ul.tasks li:last-child { border-bottom: 0; }
ul.tasks li.done .t { text-decoration: line-through; color: var(--muted); }
ul.tasks input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
ul.tasks .grow { flex: 1; min-width: 0; }
ul.tasks .t { font-weight: 600; }

/* Charts: one hue, direct labels, hover titles */
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.bar .l { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: capitalize; }
.bar .track { height: 14px; background: var(--panel-2); border-radius: 4px; overflow: hidden; }
.bar .fill { display: block; height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; transition: width .3s; }
.bar .v { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 64px; text-align: right; }
.cols-chart { display: flex; align-items: stretch; gap: 10px; height: 180px; padding-top: 18px; }
.col-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.col-bar .track { flex: 1; width: 100%; max-width: 48px; display: flex; align-items: flex-end; background: var(--panel-2); border-radius: 4px; overflow: hidden; }
.col-bar .fill { display: block; width: 100%; background: var(--accent); border-radius: 4px 4px 0 0; }
.col-bar .v { font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.col-bar .l { font-size: 11.5px; color: var(--ink-2); white-space: nowrap; }
@media (max-width: 860px) { .bar { grid-template-columns: 80px 1fr auto; } .stepper .step { min-width: 80px; } }

/* Sales Cloud additions: guidance, lines, roles, calendar, confetti, path editor */
.guidance { border-left: 3px solid var(--accent); margin-bottom: 16px; }
.guidance p { margin: 0; white-space: pre-wrap; }
.pill.primary { color: var(--accent); }
.pill.primary svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.pill[data-stage="f-pipeline"] { color: var(--s-lead); } .pill[data-stage="f-best_case"] { color: var(--s-proposal); } .pill[data-stage="f-commit"] { color: var(--s-negotiation); } .pill[data-stage="f-closed"] { color: var(--s-won); } .pill[data-stage="f-omitted"] { color: var(--s-lost); }
.pill[data-stage="c-active"] { color: var(--s-won); } .pill[data-stage="c-planned"] { color: var(--s-lead); } .pill[data-stage="c-completed"] { color: var(--s-qualified); } .pill[data-stage="c-aborted"] { color: var(--s-lost); }
table.lines td, table.lines th { padding: 7px 8px; }
select.sm { width: auto; padding: 4px 8px; font-size: 13px; border-radius: 8px; }
ul.plainlist li select.sm { margin-left: 6px; }
.dup { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 10px; padding: 8px 12px; font-size: 13.5px; }
@media not all { .dup { background: #2a1f0a; border-color: #4a3410; color: #fcd34d; } }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 8px; overflow-x: auto; }
.day { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; min-height: 220px; display: flex; flex-direction: column; gap: 6px; }
.day.today { border-color: var(--accent); }
.day .dh { display: flex; justify-content: space-between; align-items: baseline; color: var(--ink-2); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.day.today .dh strong { color: var(--accent); }
.day .dh strong { font-size: 18px; color: var(--ink); }
.ev { display: block; width: 100%; text-align: left; background: var(--accent-soft); color: var(--ink); border: 0; border-radius: 8px; padding: 6px 8px; font-size: 12.5px; line-height: 1.3; font-weight: 500; }
.ev .t { font-weight: 700; color: var(--accent); }
.ev.task { background: var(--panel-2); color: var(--ink-2); display: flex; align-items: center; gap: 5px; }
.ev.task svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
.ev.task.done { text-decoration: line-through; opacity: .6; }
.day .addday { margin-top: auto; align-self: flex-start; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall 2.6s ease-in forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); opacity: .2; } }
@media (max-width: 860px) {
  .side { overflow-x: auto; justify-content: flex-start; gap: 0; }
  .side a.nav { padding: 10px 12px; flex: none; }
  .week { grid-template-columns: 1fr; }
  .day { min-height: 0; }
}

/* Round 3: bell, feed, documents, cases, admin nav */
.side { overflow-y: auto; }
.navhead { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 10px 4px; }
.bell { position: relative; }
.bell .badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.bell .dropdown { position: absolute; right: 0; top: 44px; width: min(380px, 90vw); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 10px; z-index: 15; max-height: 70vh; overflow: auto; }
.bell .note { display: block; padding: 8px; border-radius: 8px; color: var(--ink); font-size: 13.5px; }
.bell .note.unread { background: var(--accent-soft); }
.bell .note:hover { background: var(--panel-2); }
.bell .note span { display: block; }
.feed form.post { display: grid; gap: 8px; margin-bottom: 12px; }
.feed .postitem { padding: 10px 0; border-top: 1px solid var(--line); }
.feed .postitem .b { white-space: pre-wrap; margin-top: 2px; }
.feed .comments { margin: 8px 0 0 44px; display: grid; gap: 8px; }
.feed .comment-form input { flex: 1; }
.mention { color: var(--accent); font-weight: 600; }
.splitbar { height: 8px; background: var(--panel-2); border-radius: 4px; overflow: hidden; margin: 8px 0 4px; }
.splitbar span { display: block; height: 100%; background: var(--accent); }
.pill[data-stage="q-draft"], .pill[data-stage="o-draft"] { color: var(--s-lead); } .pill[data-stage="q-sent"] { color: var(--s-proposal); } .pill[data-stage="q-accepted"], .pill[data-stage="o-activated"], .pill[data-stage="o-fulfilled"] { color: var(--s-won); } .pill[data-stage="q-rejected"], .pill[data-stage="q-expired"], .pill[data-stage="o-cancelled"] { color: var(--s-lost); }
table .right { text-align: right; color: var(--ink-2); }
table tfoot td { border-bottom: 0; }
table tfoot tr.total td { border-top: 2px solid var(--line); }
pre.code { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 12.5px; overflow-x: auto; }
code { background: var(--panel-2); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
@media print {
  .side, .topbar, .back, .toast, .bell, button { display: none !important; }
  .shell { grid-template-columns: 1fr; }
  .main { padding: 0; }
  .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  body { background: #fff; color: #000; }
}

/* Round 4: reach buttons, lead generation, forms */
.reach { white-space: nowrap; }
.reach button, .reach .btn-ico { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; margin-right: 4px; border-radius: 8px; font-weight: 700; font-size: 12px; color: var(--ink-2); border: 1px solid var(--line); background: var(--panel); }
.reach button:hover, .reach .btn-ico:hover { color: var(--accent); border-color: var(--accent); }
input.inline { padding: 4px 8px; font-size: 13px; border-radius: 6px; min-width: 120px; }
ul.plain { list-style: none; padding: 0; margin: 6px 0 0; } ul.plain li { padding: 3px 0; }
.forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 14px; }
.formcard { display: flex; gap: 18px; align-items: flex-start; }
.formcard img { border: 1px solid var(--line); border-radius: 10px; background: #fff; flex: none; }
.formcard .row { flex-wrap: wrap; gap: 6px; }
a.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
@media (max-width: 600px) { .forms { grid-template-columns: 1fr; } .formcard { flex-direction: column; } }

.dial { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); font-weight: 700; font-size: 16px; }
.dial svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

a.brand { color: inherit; } a.brand:hover strong { color: var(--accent); }
.qr-card img { background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.qr-ok svg { width: 18px; height: 18px; stroke: var(--ok); fill: none; stroke-width: 2; }

.hero-qr { display: flex; gap: 24px; align-items: center; }
.hero-qr img { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; flex: none; }
.hero-qr h2 { font-size: 20px; }
@media (max-width: 700px) { .hero-qr { flex-direction: column; align-items: stretch; text-align: center; } .hero-qr img { margin: 0 auto; } .hero-qr .row { justify-content: center; } }

.more-forms { margin-top: 18px; } .more-forms summary { cursor: pointer; } .more-forms .forms { margin-top: 12px; }
/* Data protection bar: always at the top of the app */
.privacy-bar { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 9px 14px; border-radius: 10px; background: var(--ok-soft); color: var(--ink); font-size: 13px; line-height: 1.45; border: 1px solid transparent; }
.privacy-bar[hidden] { display: none; }
.privacy-bar > span:nth-child(2) { flex: 1; }
.privacy-bar a { white-space: nowrap; font-weight: 600; }
.privacy-bar .pb-warn { color: #b45309; font-weight: 600; }
.privacy-list li { display: list-item; list-style: disc; margin-left: 18px; padding: 4px 0; border: 0; font-size: 14px; }
@media (max-width: 860px) { .privacy-bar { flex-wrap: wrap; font-size: 12.5px; } }

/* ===== Lightning-style shell: global header, app tab bar, record pages, help panel ===== */
.shell { display: block; min-height: 100vh; }
.main { padding: 12px 12px 60px; max-width: 1680px; margin: 0 auto; }
input, select, textarea { border-radius: var(--radius); border-color: var(--line-2); }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 3px #0176d3; }
button, a.btn { border-radius: var(--radius); border-color: var(--line-2); color: var(--accent); font-weight: 400; padding: 6px 14px; line-height: 1.4; }
button.primary { color: var(--accent-ink); }
button.ghost { color: var(--ink-2); }
button.danger { color: var(--danger); }
button.sm, a.btn.sm { padding: 3px 9px; border-radius: var(--radius); }
.card, .kpi, .col, .day { border-radius: var(--radius); border-color: var(--line); box-shadow: var(--shadow); }
.card { padding: 14px 16px; }
h2 { font-size: 16px; font-weight: 600; }
.pill { border-radius: 4px; }

/* Global header */
.ghead { position: sticky; top: 0; z-index: 12; height: var(--head); display: grid; grid-template-columns: 1fr minmax(200px, 560px) 1fr; align-items: center; gap: 16px; padding: 0 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.ghead .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.ghead .brand img { width: 34px; height: 34px; border-radius: 6px; }
.ghead .brand strong { font-size: 17px; letter-spacing: -.01em; }
.ghead .search { max-width: none; width: 100%; }
.ghead .search input { border-radius: 4px; height: 34px; background: var(--panel); }
.gicons { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.gicon { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); }
.gicon:hover, .gicon.on { background: var(--panel-2); color: var(--accent); }
.gicon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: 0; margin: 0; }
.gicon.me .avatar { width: 32px; height: 32px; font-size: 12px; }
#create > .gicon { background: var(--muted); color: #fff; width: 26px; height: 26px; margin: 0 4px; }
#create > .gicon svg { width: 16px; height: 16px; stroke-width: 2.6; }
#create > .gicon:hover { background: var(--accent); }
.bell .badge { top: -2px; right: -2px; background: #ea001e; }
.bell .dropdown { top: 46px; border-radius: var(--radius); }

/* Pop-up menus */
.pop { position: relative; }
.menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 14px rgba(0,0,0,.16); padding: 6px 0; z-index: 30; }
.menu.right { left: auto; right: 0; }
.menu .mh { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 14px 4px; }
.menu a, .menu > button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 14px; border: 0; border-radius: 0; background: transparent; color: var(--ink); text-align: left; font-weight: 400; }
.menu a:hover, .menu > button:hover { background: var(--panel-2); }
.menu a.active { box-shadow: inset 3px 0 0 var(--accent); background: var(--accent-soft); }
.menu > button svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.menu .who { display: flex; gap: 10px; align-items: center; padding: 8px 14px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu .who div { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.menu .who small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.menu.launcher { width: min(640px, calc(100vw - 24px)); padding: 6px 6px 10px; }
.menu .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.menu .grid3 a { border-radius: var(--radius); }

/* Object icons: coloured rounded squares with a white glyph */
.obj { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 4px; flex: none; color: #fff; }
.obj svg { width: 60%; height: 60%; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.obj.sm { width: 24px; height: 24px; }
.obj.lg { width: 48px; height: 48px; border-radius: 6px; }

/* App tab bar */
.appnav { position: sticky; top: var(--head); z-index: 11; display: flex; align-items: stretch; height: 44px; padding: 0 12px 0 6px; background: var(--panel); border-bottom: 3px solid var(--accent); box-shadow: 0 2px 3px rgba(0,0,0,.08); }
.launch { display: grid; place-items: center; width: 44px; height: 100%; padding: 0; border: 0; background: transparent; color: var(--muted); }
.launch:hover { color: var(--accent); background: transparent; }
.launch .dots { width: 22px; height: 22px; fill: currentColor; stroke: none; margin: 0; vertical-align: 0; }
.appnav .appname { display: flex; align-items: center; padding: 0 22px 0 6px; font-size: 20px; color: var(--ink); white-space: nowrap; }
.appnav .tabs { display: flex; align-items: stretch; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.appnav .tabs::-webkit-scrollbar { display: none; }
.appnav .tabs > .pop { display: flex; }
.tab { display: flex; align-items: center; gap: 4px; padding: 0 14px; color: var(--ink); white-space: nowrap; border: 0; border-radius: 0; background: transparent; font-weight: 400; border-bottom: 3px solid transparent; margin-bottom: -3px; }
.tab:hover { background: var(--panel-2); color: var(--ink); }
.tab.active { border-bottom-color: var(--accent); box-shadow: inset 0 -1px 0 var(--accent); color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.tab.more svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; vertical-align: 0; margin: 0; }
.appnav .tabs > .pop .menu { position: fixed; top: calc(var(--head) + 46px); left: auto; }

/* Page bar: object label on the left, page actions on the right */
.pagebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 2px 0 12px; }
.pagebar:has(#crumb:empty):has(#topbar-actions:empty) { display: none; }
#crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
#topbar-actions { display: flex; gap: 0; flex-wrap: wrap; margin-left: auto; }
#topbar-actions > button, #topbar-actions > a.btn, .btn-group > button, .btn-group > a.btn { border-radius: 0; margin-left: -1px; }
#topbar-actions > :first-child, .btn-group > :first-child { border-radius: var(--radius) 0 0 var(--radius); margin-left: 0; }
#topbar-actions > :last-child, .btn-group > :last-child { border-radius: 0 var(--radius) var(--radius) 0; }
#topbar-actions > :only-child, .btn-group > :only-child { border-radius: var(--radius); }
#topbar-actions > select, #topbar-actions > .seg { margin-right: 8px; border-radius: var(--radius); }
.pagehead { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; }
.pagehead h1 { font-size: 20px; font-weight: 600; }
.back { margin-bottom: 8px; }

/* Record page: highlights panel, then related lists (left) and tabbed details (right) */
.hl { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; }
.hl-top { display: flex; align-items: center; gap: 14px; padding: 14px 16px; flex-wrap: wrap; }
.hl-name { flex: 1; min-width: 200px; }
.hl-label { font-size: 13px; color: var(--ink-2); }
.hl h1 { font-size: 22px; font-weight: 400; letter-spacing: 0; line-height: 1.25; }
.hl .sub { color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.btn-group { display: flex; flex-wrap: wrap; row-gap: 6px; }
.btn-group > button, .btn-group > a.btn { background: var(--panel); }
.btn-group > button:hover { background: var(--panel-2); }
.hl-facts { display: flex; flex-wrap: wrap; gap: 8px 40px; padding: 10px 16px 14px; border-top: 1px solid var(--line); }
.hl-facts div { display: flex; flex-direction: column; min-width: 0; }
.hl-facts span { font-size: 12px; color: var(--ink-2); }
.hl-facts strong { font-weight: 400; font-size: 14px; }
.owner { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); }
.record { display: grid; grid-template-columns: minmax(280px, 1fr) 2.2fr; gap: 12px; align-items: start; }
.rec-side, .rec-main { display: grid; gap: 12px; min-width: 0; }
.rel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.rel-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.rel-head h2 { margin: 0; flex: 1; font-size: 16px; font-weight: 400; }
.rel-head button { width: 28px; height: 28px; padding: 0; border-radius: 50%; display: grid; place-items: center; }
.rel-head button svg { margin: 0; vertical-align: 0; }
.rel-list { list-style: none; margin: 0; padding: 4px 14px; }
.rel-list > li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.rel-list > li:last-child { border-bottom: 0; }
.rel-list > li > a { font-weight: 400; text-decoration: underline; text-underline-offset: 2px; }
.rel-list ul.tasks li { padding: 0; border: 0; }
.rel-f { display: grid; grid-template-columns: 84px 1fr; gap: 1px 8px; margin: 4px 0 0; font-size: 13px; }
.rel-f dt { color: var(--ink-2); }
.rel-f dd { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rel-all { display: block; width: 100%; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 10px; background: transparent; }
.rel-all:hover { background: var(--panel-2); }
.rel-empty { padding: 14px; color: var(--muted); font-size: 13px; }
.rec-side > .card { padding: 12px 14px; }
.rtabs { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0 16px 16px; }
.rtab-bar { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.rtab-bar button { border: 0; border-radius: 0; background: transparent; padding: 14px 12px 11px; color: var(--ink-2); font-size: 15px; border-bottom: 3px solid transparent; }
.rtab-bar button:hover { color: var(--accent); background: transparent; }
.rtab-bar button.on { color: var(--accent); font-weight: 600; border-bottom-color: var(--accent); }
.rtab-panel > .card { box-shadow: none; margin-bottom: 14px; }
.rtab-panel > .card:last-child { margin-bottom: 0; }
.fsec { margin-bottom: 12px; }
.fsec summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--panel-2); border-radius: var(--radius); font-size: 17px; cursor: pointer; user-select: none; }
.fsec summary::-webkit-details-marker { display: none; }
.fsec summary svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; transition: transform .15s; }
.fsec:not([open]) summary svg { transform: rotate(-90deg); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; padding: 6px 14px 0; }
.fld { display: grid; grid-template-columns: 130px 1fr 26px; align-items: start; gap: 10px; padding: 10px 0 8px; border-bottom: 1px solid var(--line); min-width: 0; }
.fl { color: var(--ink-2); font-size: 13px; padding-top: 1px; }
.fval { min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.pen { width: 26px; height: 26px; padding: 0; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; opacity: .55; }
.fld:hover .pen, .pen:focus-visible { opacity: 1; }
.pen:hover { color: var(--accent); background: var(--panel-2); }
.pen svg { width: 15px; height: 15px; margin: 0; vertical-align: 0; }
@media (max-width: 1100px) { .record { grid-template-columns: 1fr; } .rec-main { order: -1; } }
@media (max-width: 700px) { .fgrid { grid-template-columns: 1fr; } .fld { grid-template-columns: 110px 1fr 26px; } .hl-facts { gap: 8px 22px; } }

/* Help & Training panel */
.helppanel { position: fixed; top: calc(var(--head) + 6px); right: 12px; width: min(400px, calc(100vw - 24px)); max-height: calc(100vh - var(--head) - 18px); overflow: auto; background: var(--panel); border-radius: var(--radius); box-shadow: 0 6px 24px rgba(0,0,0,.25); z-index: 25; }
.helppanel .hhead { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; background: #032d60 linear-gradient(135deg, #032d60, #0b5cab); color: #fff; border-radius: var(--radius) var(--radius) 0 0; }
.helppanel .hhead h2 { margin: 0; font-size: 22px; font-weight: 400; color: #fff; }
.helppanel .hclose { width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: transparent; color: #fff; font-size: 14px; }
.helppanel .hclose:hover { background: rgba(255,255,255,.15); }
.helppanel section { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.helppanel section:last-child { border-bottom: 0; }
.helppanel h3 { display: flex; justify-content: space-between; align-items: center; margin: 0 0 6px; font-size: 16px; font-weight: 400; color: var(--ink); }
.helppanel h3 svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.helppanel .hrow { display: flex; align-items: center; gap: 10px; padding: 7px 0; color: var(--ink-2); }
.helppanel .hrow:hover { color: var(--accent); }
.helppanel .hrow svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; flex: none; }
.helppanel .htip strong { display: block; font-weight: 600; }
.helppanel .htip p { margin: 4px 0 0; color: var(--ink-2); font-size: 13.5px; }
table.keys td { padding: 6px 8px; }
kbd { display: inline-block; min-width: 22px; text-align: center; padding: 1px 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; font: 12px ui-monospace, Menlo, monospace; background: var(--panel-2); }

/* Tables: Lightning list-view look */
th { background: var(--panel-2); color: var(--ink-2); text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
td { padding: 8px 10px; }
.card.table-wrap { padding: 0; }
.card.table-wrap table { border-radius: var(--radius); }
td .name { color: var(--accent); font-weight: 400; }

/* Mobile */
@media (max-width: 860px) {
  .ghead { grid-template-columns: auto 1fr auto; gap: 8px; padding: 0 10px; }
  .ghead .brand strong, #create, #setup { display: none; }
  .appnav { padding: 0 6px 0 0; }
  .appnav .appname { display: none; }
  .main { padding: 10px 10px 60px; }
  .menu .grid3 { grid-template-columns: 1fr 1fr; }
  .appnav .tabs > .pop .menu { right: 8px; }
}
@media print { .ghead, .appnav, .helppanel, .pagebar { display: none !important; } }
#topbar-actions { align-items: center; }
#topbar-actions select { width: auto; }
#topbar-actions > select + *, #topbar-actions > .seg + * { border-radius: var(--radius) 0 0 var(--radius); margin-left: 0; }


/* =====================================================================
   Pebbles "Studio" theme (one design, replaces the earlier layers):
   warm paper background, white surfaces, hairline borders, sharp corners,
   one accent colour (deep teal), text tabs with an underline, quiet notices.
   ===================================================================== */
:root {
  --bg: #f6f3ed; --panel: #ffffff; --panel-2: #f4f0e8; --line: #e7e1d6; --line-2: #d6cdbd;
  --ink: #1c1a17; --ink-2: #4a453f; --muted: #8a8377;
  --accent: #155e57; --accent-ink: #ffffff; --accent-soft: #e4efec;
  --danger: #b42318; --danger-soft: #fbe6e2; --ok: #155e57; --ok-soft: #e4efec;
  --radius: 0px; --shadow: none; --canvas: none;
  --s-lead: var(--accent); --s-qualified: var(--accent); --s-proposal: var(--accent); --s-negotiation: var(--accent); --s-won: var(--accent); --s-lost: var(--muted);
  color-scheme: light;
}
html, body { background: var(--bg); }
body { font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", sans-serif; color: var(--ink); background-image: none; }
*, *::before, *::after { border-radius: 0 !important; }
.avatar, .avatar.xs, .avatar.lg, .pill .dot, .col h3 .dot, .bell .badge { border-radius: 50% !important; }
a { color: var(--accent); }
h1 { font-size: 30px; font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: 15px; font-weight: 650; letter-spacing: -.005em; color: var(--ink); }
.dim, small.dim { color: var(--muted); }

/* Header: one white bar, text tabs with an accent underline */
.ghead.topnav { position: sticky; top: 0; z-index: 12; display: flex; align-items: stretch; gap: 0; height: 60px; padding: 0 24px; background: var(--panel); border-bottom: 1px solid var(--line); backdrop-filter: none; }
.topnav .brand { display: flex; align-items: center; gap: 10px; padding-right: 26px; color: var(--ink); }
.topnav .brand img { width: 30px; height: 30px; }
.topnav .brand strong { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.navpills { display: flex; align-items: stretch; gap: 0; padding: 0; background: none; border: 0; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.navpills > .pop { display: flex; }
.np { display: flex; align-items: center; gap: 4px; padding: 0 14px; height: 60px; color: var(--ink-2); font-weight: 550; font-size: 14px; background: none; border: 0; box-shadow: none; white-space: nowrap; }
.np:hover { color: var(--ink); background: var(--panel-2); }
.np.active { color: var(--ink); background: none; font-weight: 650; box-shadow: inset 0 -3px 0 var(--accent); }
.np.more svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.navpills > .pop .menu { position: fixed; top: 60px; left: auto; }
.topnav .gicons { margin-left: auto; display: flex; align-items: center; gap: 4px; padding-left: 16px; }
.topnav .search { width: 220px; flex: none; position: relative; }
.topnav .search input { height: 36px; background: var(--panel-2); border: 1px solid transparent; padding-left: 34px; }
.topnav .search input:focus { background: var(--panel); border-color: var(--accent); box-shadow: none; }
.gicon { width: 36px; height: 36px; color: var(--ink-2); background: none; }
.gicon:hover { background: var(--panel-2); color: var(--ink); }
#create > .gicon, .newb { background: var(--accent) !important; color: #fff !important; width: 36px; height: 36px; margin: 0 6px; }
.bell .badge { background: var(--accent); }

/* Page */
.main { max-width: 1400px; margin: 0 auto; padding: 22px 28px 64px; }
.privacy-bar { background: none; border: 0; border-bottom: 1px solid var(--line); padding: 0 0 12px; margin: 0 0 18px; color: var(--muted); font-size: 12.5px; }
.privacy-bar strong { color: var(--ink-2); }
.privacy-bar .pb-warn { color: var(--ink-2); }
#crumb { display: none; }
.pagebar { margin: 0; }
@media (min-width: 901px) { .pagebar { float: right; margin: 8px 0 0 16px; position: relative; z-index: 2; } #view::after { content: ""; display: block; clear: both; } }
.pagehead { background: none !important; border: 0; box-shadow: none; padding: 0 0 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.pagehead h1 { color: var(--ink); background: none; -webkit-text-fill-color: currentColor; }
.pagehead .sub { color: var(--muted); margin-top: 4px; }
.back { display: inline-block; margin-bottom: 10px; color: var(--muted); }

/* Surfaces */
.card, .rel, .rtabs, .hl { background: var(--panel); border: 1px solid var(--line); box-shadow: none; }
.card { padding: 20px 22px; }
.stack > * + * { margin-top: 16px; }
.cols { gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 18px; }
.kpi, a.kpi { background: var(--panel); border: 0; box-shadow: none; padding: 16px 18px; position: static; transform: none !important; }
.kpi::before { display: none !important; }
a.kpi:hover { background: var(--panel-2); }
.kpi .l { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.kpi .v { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; color: var(--ink); }
.kpi .v.late { color: var(--danger); }
.kpi .d { color: var(--muted); font-size: 12.5px; }

/* Controls */
input, select, textarea { background: var(--panel); border: 1px solid var(--line-2); padding: 8px 11px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
button, a.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 14px; background: var(--panel); border: 1px solid var(--line-2); color: var(--ink); font-weight: 550; box-shadow: none; filter: none; }
button:hover, a.btn:hover { background: var(--panel-2); border-color: var(--ink-2); }
button.primary, a.btn.primary { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }
button.primary:hover { opacity: .9; }
button.ghost { background: none; border-color: transparent; color: var(--ink-2); }
button.ghost:hover { background: var(--panel-2); color: var(--ink); }
button.danger { color: var(--danger); }
button.sm, a.btn.sm { min-height: 30px; padding: 0 10px; font-size: 13px; }
#topbar-actions, .btn-group { display: flex; gap: 8px; flex-wrap: wrap; }
#topbar-actions > *, .btn-group > * { margin-left: 0 !important; }
.seg { display: inline-flex; background: none; border: 1px solid var(--line-2); padding: 0; gap: 0; }
.seg button { border: 0; min-height: 32px; padding: 0 13px; background: none; color: var(--ink-2); font-weight: 550; }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button.on { background: var(--accent); color: #fff; box-shadow: none; }

/* Tables */
table { border-collapse: collapse; }
th { background: none; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; font-size: 11px; font-weight: 650; padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
td { padding: 12px; border-bottom: 1px solid var(--line); }
tbody tr:hover { background: var(--panel-2); }
td .name { color: var(--ink); font-weight: 600; }
.card.table-wrap { padding: 0; }

/* Labels, icons, avatars */
.pill { background: none; border: 1px solid var(--line-2); color: var(--ink-2); font-weight: 600; font-size: 12px; padding: 1px 8px; }
.pill .dot { width: 6px; height: 6px; }
.obj, .obj.sm, .obj.lg { background: var(--accent-soft) !important; color: var(--accent); }
.obj.lg { width: 48px; height: 48px; background: var(--accent) !important; color: #fff; }
.kind { background: var(--accent-soft); color: var(--accent); }
.avatar { background: var(--accent) !important; color: #fff; }
.notice, .notice.ok { background: var(--panel-2); border: 0; border-left: 3px solid var(--accent); color: var(--ink-2); padding: 10px 14px; }
.notice strong { color: var(--ink); }
.toast { background: var(--ink); color: #fff; }
.toast.bad { background: var(--danger); }

/* Menus, modals, help */
.menu, .dropdown, .bell .dropdown { background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 10px 28px rgba(28, 26, 23, .10); padding: 6px; }
.menu a, .menu > button { min-height: 0; padding: 8px 10px; border: 0; justify-content: flex-start; }
.menu a:hover, .menu > button:hover { background: var(--panel-2); }
.menu a.active { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.menu .mh { text-transform: uppercase; letter-spacing: .07em; font-size: 11px; color: var(--muted); font-weight: 650; }
.modal { background: rgba(28, 26, 23, .40); backdrop-filter: none; }
.modal .card { box-shadow: 0 20px 50px rgba(28, 26, 23, .18); }
.modal.wide .card { max-width: 920px; }
.helppanel { box-shadow: 0 14px 40px rgba(28, 26, 23, .16); border: 1px solid var(--line-2); top: 68px; }
.helppanel .hhead { background: var(--accent); }
.auth { background: var(--bg); }
.auth .box { border: 1px solid var(--line); box-shadow: none; }

/* Pipeline */
.col { background: var(--panel-2); border: 1px solid var(--line); }
.col.over { border-color: var(--accent); background: var(--accent-soft); }
.deal { background: var(--panel); border: 1px solid var(--line); box-shadow: none; }
.deal:hover { border-color: var(--accent); box-shadow: none; transform: none; }

/* Deal stages: a segmented bar */
.stepper { display: flex; gap: 4px; margin: 0 0 20px; padding: 0; background: none; border: 0; box-shadow: none; overflow-x: auto; }
.step, .step.done, .step.cur, .step.cur.won, .step.cur.lost { flex: 1; min-width: 96px; background: none; border: 0; border-top: 4px solid var(--line-2); padding: 8px 0 0; margin: 0; text-align: left; color: var(--muted); font-size: 13px; font-weight: 600; text-transform: capitalize; box-shadow: none; }
.step::before { display: none !important; }
.step:hover { background: none; color: var(--ink); }
.step.done { border-top-color: var(--accent); color: var(--ink-2); }
.step.cur { border-top-color: var(--accent); color: var(--ink); font-weight: 700; }
.step.cur.lost { border-top-color: var(--muted); color: var(--muted); }

/* Record pages */
.hl { background: var(--panel); border-color: var(--line); }
.hl-top { padding: 20px 22px; }
.hl-label { text-transform: uppercase; letter-spacing: .08em; font-size: 11px; color: var(--muted); font-weight: 650; }
.hl h1 { font-size: 24px; font-weight: 700; }
.hl-facts { border-top: 1px solid var(--line); gap: 0; padding: 0; }
.hl-facts div { background: none; border: 0; border-right: 1px solid var(--line); padding: 12px 22px; }
.hl-facts span { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.record { grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr); gap: 16px; }
.rec-side { order: 2; }
.rec-side, .rec-main { gap: 16px; }
.rel-head h2 { font-size: 15px; font-weight: 650; }
.rel-list > li > a { text-decoration: none; font-weight: 600; }
.rtabs { padding: 0 20px 20px; }
.rtab-bar { border-bottom: 1px solid var(--line); gap: 0; padding-top: 0; margin-bottom: 16px; }
.rtab-bar button { border: 0; min-height: 46px; padding: 0 14px; background: none; color: var(--ink-2); font-size: 14px; font-weight: 550; }
.rtab-bar button.on { background: none; color: var(--ink); font-weight: 650; box-shadow: inset 0 -3px 0 var(--accent); border-color: transparent; }
.fsec summary { background: var(--panel-2); font-size: 14px; font-weight: 650; }

/* Narrow screens: tabs move to a scrolling row under the header */
@media (max-width: 1180px) {
  .ghead.topnav { flex-wrap: wrap; height: auto; padding: 0 14px; }
  .topnav .brand { height: 56px; }
  .navpills { order: 3; width: calc(100% + 28px); margin: 0 -14px; border-top: 1px solid var(--line); padding: 0 6px; }
  .np { height: 46px; }
  .navpills > .pop .menu { top: 104px; right: 8px; }
  .topnav .search { width: auto; flex: 1; min-width: 0; }
  .topnav .gicons { flex: 1; min-width: 0; }
}
@media (max-width: 860px) { .topnav #create { display: block; } .main { padding: 16px 14px 64px; } .record { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .topnav .brand strong, #setup, #help-btn { display: none; } h1 { font-size: 25px; } }
/* More menu: every page, in sections */
.menu.allmenu { min-width: 260px; max-height: calc(100vh - 90px); overflow-y: auto; }
.menu .mh.sep { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.np:focus { outline: none; } .np:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* Marketing automation */
.modal.wide .card { max-width: 920px; }
.ma-tabs { margin: 4px 0 2px; flex-wrap: wrap; }
.ma-rule, .ma-act { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr auto; gap: 8px; align-items: start; margin-bottom: 8px; }
.ma-act { grid-template-columns: 220px 1fr auto; }
.ma-actx { display: grid; gap: 6px; grid-template-columns: 1fr; }
.ma-stepedit { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: var(--panel-2); }
.ma-stepedit textarea { margin-top: 4px; }
.ma-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.ma-steps li { display: grid; grid-template-columns: 180px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); counter-increment: s; }
.ma-steps li:last-child { border-bottom: 0; }
.ma-wait { font-size: 13px; color: var(--muted); position: relative; padding-left: 30px; }
.ma-wait::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.ma-body { white-space: pre-wrap; margin-top: 3px; }
.ma-score { display: inline-block; min-width: 34px; text-align: center; padding: 2px 8px; border-radius: 999px; background: var(--panel-2); font-weight: 700; font-size: 12.5px; }
.ma-score.hot { background: #fde3d3; color: #b4461a; }
.ma-pts { font-weight: 700; color: var(--accent); font-size: 13px; }
.ma-bar { display: grid; grid-template-columns: 56px 1fr 40px; gap: 10px; align-items: center; margin: 6px 0; font-size: 13px; }
.ma-bar .track { height: 10px; background: var(--panel-2); border-radius: 5px; overflow: hidden; }
.ma-bar .track i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 5px; }
.ma-bar b { text-align: right; }
@media (max-width: 700px) { .ma-rule, .ma-act { grid-template-columns: 1fr; } .ma-steps li { grid-template-columns: 1fr; } }
.np { padding: 6px 11px; }
.topnav .search { width: 190px; }
@media (max-width: 1320px) {
  .ghead.topnav { flex-wrap: wrap; height: auto; padding: 10px 16px; row-gap: 10px; }
  .navpills { order: 3; width: 100%; }
  .navpills > .pop .menu { top: 112px; right: 10px; }
}
.ma-tabs { border-radius: 16px; }
/* Email setup */
.setup-steps { margin: 12px 0 14px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.es-h { font-size: 15px; margin: 16px 0 8px; display: flex; align-items: center; gap: 8px; }
table.dns td { font-size: 13px; vertical-align: top; }
table.dns code { word-break: break-all; }
table.dns .dnsval { max-width: 360px; }
.compose-apps { display: flex; gap: 8px; flex-wrap: wrap; }
.es-adv { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 10px; }
.es-adv summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.h2like { font-size: 16px; font-weight: 650; cursor: pointer; }

.compose-apps { display: flex; gap: 8px; flex-wrap: wrap; }
.es-adv { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 10px; }
.es-adv summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.h2like { font-size: 15px; font-weight: 650; cursor: pointer; }
.np:focus { outline: none; } .np:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ma-bar .track i { background: var(--accent); }
.pagehead h1 { font-size: 30px; font-weight: 700; letter-spacing: -.025em; }
/* Email page */
.em-status { display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: 12px 16px; margin-bottom: 16px; flex-wrap: wrap; }
.em-status .grow { flex: 1; min-width: 240px; color: var(--ink-2); }
.em-status strong { color: var(--ink); }
.em-ic { display: grid; place-items: center; width: 34px; height: 34px; background: var(--accent-soft); color: var(--accent); flex: none; }
.em-ic svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.em-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.em-list { padding: 0; }
.em-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.em-head h2 { margin: 0; }
.em-dir { color: var(--accent); font-weight: 700; text-align: center; }
.em-dir.in { color: var(--ink-2); }
.em-snip { max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.em-empty { padding: 28px 20px; }
.em-tpl { cursor: pointer; }
.em-tpl:hover strong { color: var(--accent); }
.em-admin details { border-top: 1px solid var(--line); padding: 10px 0; }
.em-admin details:first-of-type { border-top: 0; }
.em-admin summary { cursor: pointer; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.em-admin .setup-steps { font-size: 13px; }
@media (max-width: 1000px) { .em-grid { grid-template-columns: 1fr; } }
.em-admin code { word-break: break-all; }
.em-admin summary { list-style: none; }
.em-admin summary::-webkit-details-marker { display: none; }
.em-admin summary::before { content: "▸"; color: var(--muted); width: 12px; display: inline-block; transition: transform .15s; }
.em-admin details[open] > summary::before { transform: rotate(90deg); }
.code-lg { font: 600 16px ui-monospace, Menlo, monospace; letter-spacing: .08em; padding: 6px 10px; background: var(--panel); border: 1px solid var(--line-2); }
/* Cards that hold a table: title and empty text get the card's padding */
.card.table-wrap > h2 { margin: 0; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card.table-wrap > .dim, .card.table-wrap > p, .card.table-wrap > .small { padding: 16px 20px; margin: 0; }
.card.table-wrap > table th:first-child, .card.table-wrap > table td:first-child { padding-left: 20px; }
.np { padding: 0 12px; }
.menu.allmenu .mh:first-child { padding-top: 6px; }
.g-btn { display: inline-flex; align-items: center; gap: 10px; background: #fff !important; color: #1f1f1f !important; border: 1px solid #c4c7c5 !important; font-weight: 600; padding: 0 16px; min-height: 40px; }
.g-btn:hover { background: #f8f9fa !important; }
.g-logo { width: 18px; height: 18px; }
.em-steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0 0 16px; padding: 0; }
.em-steps li { counter-increment: s; background: var(--panel); padding: 12px 16px 12px 52px; position: relative; display: flex; flex-direction: column; }
.em-steps li::before { content: counter(s); position: absolute; left: 16px; top: 12px; width: 24px; height: 24px; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; }
.em-steps span { color: var(--muted); font-size: 12.5px; }
.fill-ins { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
@media (max-width: 800px) { .em-steps { grid-template-columns: 1fr; } }

/* Form fields: one height for every text box and dropdown. Safari draws native <select> at its own small
   height and ignores padding, so dropdowns drop the native look and get a drawn chevron. */
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]), select { min-height: 40px; height: 40px; line-height: 1.3; }
select { -webkit-appearance: none; appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8f98' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
select[multiple] { height: auto; background-image: none; padding-right: 11px; }
select.sm, .deal select, input.inline { min-height: 30px; height: 30px; padding-top: 2px; padding-bottom: 2px; background-position: right 6px center; padding-right: 26px; }
input.inline { padding-right: 8px; }
input[type=date], input[type=time], input[type=datetime-local] { -webkit-appearance: none; appearance: none; display: flex; align-items: center; }
input[type=number] { -moz-appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
form.grid { align-items: start; }
.modal { z-index: 40; }

/* Email: who -> message -> send, with sent mail alongside */
.em2 { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, 1.4fr) 300px; gap: 16px; align-items: start; }
.em2-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.em2-h h2 { margin: 0; }
.em2-filters { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 8px; }
.em2-bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.em2-list { list-style: none; margin: 0; padding: 0; max-height: 520px; overflow-y: auto; }
.em2-list li label { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 14px; color: var(--ink); flex-direction: row; }
.em2-list li label input { width: 16px; height: 16px; flex: none; accent-color: var(--accent); }
.em2-list li .grow { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.em2-list li .grow .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.em2-list li.off { opacity: .55; }
.em2-list li.off label { cursor: default; }
.em2-write label { margin-bottom: 10px; }
.em2-preview { margin: 12px 0; padding: 10px 12px; background: var(--panel-2); border-left: 3px solid var(--accent); }
.em2-preview:empty { display: none; }
.em2-preview pre { margin: 6px 0 0; white-space: pre-wrap; font: inherit; color: var(--ink-2); }
.em2-send { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.em2-send .primary { min-width: 160px; }
.em2-how { margin: 10px 0 0; }
@media (max-width: 1200px) { .em2 { grid-template-columns: 1fr 1.3fr; } .em2-sent { grid-column: 1 / -1; } }
@media (max-width: 800px) { .em2 { grid-template-columns: 1fr; } }
/* Email tab: who's picked, shown as removable chips; lead/contact tag on each row */
.em2-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 10px; }
.em2-chips .chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; font-size: 13px; background: var(--accent-soft); color: var(--ink); border: 1px solid var(--line); }
.em2-chips .chip.contact { background: var(--panel-2); }
.em2-chips .chip button { min-height: 0; height: 20px; width: 20px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 15px; line-height: 1; }
.em2-chips .chip button:hover { background: var(--panel); color: var(--danger); }
.em2-list .kindtag { flex: none; font-size: 11.5px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.em2-list .kindtag.lead { background: var(--accent-soft); }
.support-box { padding: 14px 16px; background: var(--panel-2); border-left: 3px solid var(--accent); }
.support-addr { font-size: 20px; font-weight: 700; color: var(--ink); margin: 2px 0 4px; user-select: all; word-break: break-all; }
.support-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; margin-right: 4px; background: var(--panel); border: 1px solid var(--line-2); color: var(--ink); font-weight: 600; font-size: 13.5px; }
.support-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.support-btn:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 700px) { .support-btn span { display: none; } .support-btn { padding: 0 9px; } }
.topnav .search { width: 180px; }
@media (max-width: 1420px) and (min-width: 1181px) { .support-btn span { display: none; } .support-btn { padding: 0 9px; } }
.support-btn svg { width: 17px; height: 17px; }
.support-btn.on { border-color: var(--accent); color: var(--accent); }
.hsupport { background: var(--accent-soft); }
.hsupport .support-addr { font-size: 17px; }
@media (max-width: 1420px) and (min-width: 1181px) { .support-btn span { display: inline; } .support-btn { padding: 0 12px; } }
