:root {
  --paper: #F4F5F9;
  --surface: #FFFFFF;
  --ink: #1B2033;
  --muted: #5B6276;
  --line: #DEE1EA;
  --line-strong: #C7CCDA;
  --brand: #115698;
  --brand-ink: #FFFFFF;
  --brand-soft: #E4EDF7;
  --leaf: #62B54B;
  --leaf-ink: #2F7A22;
  --leaf-soft: #E8F4E3;
  --gauge-off: #E3E6EE;
  --gauge-mid: #7FA6CF;
  --gauge-low: #A9AFBF;
  --good: #2F7A22;
  --warn: #A86A12;
  --bad: #B3403A;
  --bad-soft: #F8E7E5;
  --good-soft: #E8F4E3;
  --shadow: 0 12px 40px rgba(20, 26, 51, .16);
  --radius: 10px;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #11131B;
    --surface: #191C27;
    --ink: #E7E9F1;
    --muted: #9AA0B4;
    --line: #2A2F3F;
    --line-strong: #3A4055;
    --brand: #6AA6E6;
    --brand-ink: #0F1420;
    --brand-soft: #1D2E45;
    --leaf: #7CCB63;
    --leaf-ink: #8FD677;
    --leaf-soft: #1F3320;
    --gauge-off: #2B3042;
    --gauge-mid: #3F6A99;
    --gauge-low: #4D5368;
    --good: #7CCB63;
    --warn: #E0A84A;
    --bad: #EE7D74;
    --bad-soft: #3A2323;
    --good-soft: #1F3320;
    --shadow: 0 12px 40px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

/* ---------- shell */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 24px;
  padding: 20px 14px; border-right: 1px solid var(--line); background: var(--surface);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; flex: none; }
.brand-name { display: block; font-weight: 700; font-size: 17px; line-height: 1.15; letter-spacing: -.01em; }
.brand-sub { display: block; font-size: 13px; color: var(--muted); line-height: 1.2; }
nav { display: flex; flex-direction: column; gap: 2px; }
nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500;
}
nav a:hover { background: var(--paper); }
nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
.nav-count { color: var(--muted); font-size: 13px; font-weight: 400; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 3px var(--good-soft); }
@media (prefers-reduced-motion: no-preference) { .live-dot { animation: pulse 1.6s ease-in-out infinite; } }
@keyframes pulse { 50% { opacity: .35; } }
.sys { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.sys-line { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gauge-low); flex: none; }
.dot.ok { background: var(--good); }
.dot.bad { background: var(--bad); }
.sys-msg { margin: 6px 0 0; min-height: 1.2em; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; font-size: 13px; font-weight: 500; }
.link-btn:hover { text-decoration: underline; }

main { padding: 28px 32px 64px; min-width: 0; max-width: 1240px; }
main:focus { outline: none; }

/* ---------- page header */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
h1 { font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.sub { color: var(--muted); margin: 4px 0 0; }
h2 { font-size: 17px; font-weight: 600; margin: 0 0 12px; }
h3 { font-size: 14px; font-weight: 600; margin: 0 0 4px; color: var(--muted); }

/* ---------- buttons and fields */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--brand); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { border-color: var(--bad); background: var(--bad-soft); }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.btn.small { height: 32px; padding: 0 12px; font-size: 14px; }

label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }
input[type=text], input[type=number], input[type=search], input[type=email], input[type=time], select, textarea {
  width: 100%; height: 38px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: var(--surface);
}
textarea { height: auto; min-height: 84px; padding: 9px 12px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- toolbar */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar input[type=search] { width: 220px; }
.toolbar select { width: auto; min-width: 0; max-width: 200px; }
.toolbar .spacer { flex: 1; }

/* ---------- the fit gauge: the signature element */
.gauge { display: inline-flex; align-items: center; gap: 8px; }
.gauge-bar { display: inline-grid; grid-template-columns: repeat(10, 6px); gap: 2px; height: 16px; }
.gauge-bar i { display: block; border-radius: 2px; background: var(--gauge-off); }
.gauge[data-band="high"] i.on { background: var(--brand); }
.gauge[data-band="mid"] i.on { background: var(--gauge-mid); }
.gauge[data-band="low"] i.on { background: var(--gauge-low); }
.gauge-num { font-weight: 700; min-width: 1.4em; }
.gauge.large .gauge-bar { grid-template-columns: repeat(10, 14px); gap: 3px; height: 28px; }
.gauge.large .gauge-num { font-size: 28px; line-height: 1; }
.gauge.large .gauge-num small { font-size: 14px; color: var(--muted); font-weight: 500; }

/* ---------- leads table */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--surface); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.clickable { cursor: pointer; }
tbody tr.clickable:hover { background: var(--paper); }
tbody tr.clickable:focus-visible { outline-offset: -2px; }
.co-name { font-weight: 600; }
.co-site { color: var(--muted); font-size: 13px; }
.cell-muted { color: var(--muted); font-size: 14px; }
.contact { font-size: 14px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--paper); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.pill.shortlisted { background: var(--leaf-soft); color: var(--leaf-ink); border-color: transparent; }
.pill.not_a_fit { color: var(--muted); text-decoration: line-through; }
.pill.done { background: var(--good-soft); color: var(--good); border-color: transparent; }
.pill.failed, .pill.interrupted { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.pill.running { background: var(--brand-soft); color: var(--brand); border-color: transparent; }

/* ---------- empty and panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.empty { text-align: center; padding: 56px 24px; }
.empty p { color: var(--muted); max-width: 42ch; margin: 6px auto 18px; }
.error-box { border: 1px solid var(--bad); background: var(--bad-soft); color: var(--bad); border-radius: 8px; padding: 10px 12px; margin-bottom: 16px; font-size: 14px; }

/* ---------- drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(15, 18, 32, .32); z-index: 20; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); z-index: 21;
  background: var(--surface); box-shadow: var(--shadow); overflow-y: auto; padding: 24px 28px 48px;
}
@media (prefers-reduced-motion: no-preference) {
  .drawer { animation: slide-in .18s ease-out; }
  @keyframes slide-in { from { transform: translateX(24px); opacity: 0; } }
}
.drawer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.drawer h2 { font-size: 22px; line-height: 1.25; margin: 0 0 4px; }
.close-btn { border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); padding: 2px 6px; border-radius: 6px; }
.close-btn:hover { color: var(--ink); background: var(--paper); }
.drawer .gauge { margin: 18px 0 6px; }
.reason { color: var(--muted); margin: 0 0 20px; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; margin-bottom: 22px; }
.seg button { border: 0; background: var(--surface); padding: 7px 14px; cursor: pointer; font-weight: 500; font-size: 14px; }
.seg button + button { border-left: 1px solid var(--line-strong); }
.seg button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }
.seg button[data-status="shortlisted"][aria-pressed="true"] { background: var(--leaf-ink); color: #fff; }
.facts { display: grid; grid-template-columns: 120px 1fr; gap: 8px 14px; margin: 0 0 24px; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.block { margin-bottom: 20px; }
.block p { margin: 0; white-space: pre-line; }
.sources { margin: 0; padding-left: 18px; font-size: 14px; overflow-wrap: anywhere; }
.drawer-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- find leads */
.find-grid { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.cost-note { font-size: 13px; color: var(--muted); margin: 4px 0 18px; }
.run-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.progress { height: 6px; border-radius: 3px; background: var(--gauge-off); overflow: hidden; margin-bottom: 14px; }
.progress span { display: block; height: 100%; background: var(--brand); width: 0; transition: width .4s ease; }
.log { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; font-size: 14px; }
.log li { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.log li:last-child { border-bottom: 0; }
.log time { color: var(--muted); white-space: nowrap; }
.log .saved { color: var(--good); font-weight: 500; }
.log .skipped { color: var(--warn); }
.summary { display: flex; gap: 28px; flex-wrap: wrap; margin: 4px 0 16px; }
.summary b { display: block; font-size: 24px; line-height: 1.1; }
.summary span { color: var(--muted); font-size: 13px; }
.section { margin-top: 28px; }

/* ---------- profiles */
.prof-grid { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
.prof-list { list-style: none; margin: 0; padding: 6px; }
.prof-list button { width: 100%; text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; }
.prof-list button:hover { background: var(--paper); }
.prof-list button[aria-current="true"] { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.prof-list .pn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prof-list .n { color: var(--muted); font-size: 13px; font-weight: 400; white-space: nowrap; flex: none; }
fieldset { border: 0; padding: 0; margin: 0 0 8px; }
legend { font-size: 17px; font-weight: 600; padding: 0; margin-bottom: 12px; }
fieldset + fieldset { margin-top: 20px; }
.form-foot { display: flex; gap: 10px; justify-content: space-between; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 40;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- small screens */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  nav { flex-direction: row; gap: 4px; flex-wrap: wrap; }
  .sys { display: none; }
  main { padding: 20px 16px 48px; }
  .find-grid, .prof-grid { grid-template-columns: 1fr; }
  .toolbar input[type=search] { width: 100%; }
  .hide-sm { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .drawer { padding: 20px 16px 40px; }
  th, td { padding: 10px 8px; }
  .gauge-bar { grid-template-columns: repeat(10, 4px); }
  .gauge { gap: 6px; }
  .facts { grid-template-columns: 100px 1fr; }
}

/* ---------- need: why now and signals */
.fn { font-size: 12.5px; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.fn span { color: var(--line-strong); }
.fn.big { font-size: 14px; margin: 0 0 12px; }
td.co { min-width: 200px; }
td.why { font-size: 14px; max-width: 520px; line-height: 1.4; }
.sig-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); margin-right: 7px; vertical-align: 1px; }
.why-now { font-size: 16px; line-height: 1.45; margin: 0 0 10px; padding: 12px 14px; border-left: 3px solid var(--leaf); background: var(--leaf-soft); border-radius: 0 8px 8px 0; }
.why-now.muted { border-left-color: var(--line-strong); background: var(--paper); color: var(--muted); font-size: 14px; }
.signals { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.signal { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.signal p { margin: 4px 0; }
.signal a { font-size: 13px; }
.signal.unverified { border-style: dashed; }
.sig-head { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.strength { font-weight: 600; padding: 1px 8px; border-radius: 999px; }
.strength.strong { background: var(--leaf-soft); color: var(--leaf-ink); }
.strength.medium { background: var(--brand-soft); color: var(--brand); }
.strength.weak { background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.foot-left { display: flex; gap: 10px; flex-wrap: wrap; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; font-size: 14px; margin: 0 0 6px; }
.check input { margin-top: 3px; accent-color: var(--brand); }
.log .screened { color: var(--muted); }
.live-tag { font-weight: 600; color: var(--leaf-ink); }
.signal .sig-note { color: var(--muted); font-size: 13px; }

/* ---------- tenders */
.info-box { border: 1px solid var(--brand); background: var(--brand-soft); border-radius: 8px; padding: 10px 12px; margin-bottom: 16px; font-size: 14px; }
.tender-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; margin-bottom: 16px; }
.tender-actions h2 { margin-bottom: 4px; }
.tender-actions .cost-note { margin: 0 0 12px; }
.inline-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-row input[type=number] { width: 90px; }
.inline-row input[type=text] { flex: 1; min-width: 200px; }
.file-btn { cursor: pointer; }
.file-name { margin: 6px 0 0; font-size: 13px; color: var(--muted); min-height: 1em; }
#run-panel { margin-bottom: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.closes { font-weight: 600; white-space: nowrap; }
.closes.soon { color: var(--bad); }
.closes.closed { color: var(--muted); font-weight: 500; }
td.buyer { max-width: 260px; font-size: 14px; }
.closes-big { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.closes-big span { font-weight: 400; color: var(--muted); }
.closes-big.soon { color: var(--bad); }
.pill.elig-eligible { background: var(--leaf-soft); color: var(--leaf-ink); border-color: transparent; }
.pill.elig-check { background: #FBF0DC; color: #8A5A0C; border-color: transparent; }
.pill.elig-not_eligible { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.pill.bidding, .pill.submitted { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.pill.not_relevant { text-decoration: line-through; }
.elig-head { display: flex; align-items: center; gap: 10px; }
.elig-head h3 { margin: 0; }
.checks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.chk { display: grid; grid-template-columns: 24px 1fr; gap: 8px; align-items: start; }
.chk .mark { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.chk.pass .mark { background: var(--leaf-soft); color: var(--leaf-ink); }
.chk.fail .mark { background: var(--bad-soft); color: var(--bad); }
.chk.unknown .mark { background: #FBF0DC; color: #8A5A0C; }
.doclist { margin: 0; padding-left: 18px; font-size: 14px; }
.company-form { max-width: 820px; }
.fy-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
legend .hint { display: inline; margin-left: 6px; }
@media (prefers-color-scheme: dark) {
  .pill.elig-check, .chk.unknown .mark { background: #3A2F1A; color: #E8B55C; }
}
@media (max-width: 900px) {
  .tender-actions, .fy-row { grid-template-columns: 1fr; }
}

/* ---------- outreach */
.send-state { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 13px; text-align: right; }
.send-state b { font-size: 14px; }
.send-state.on b { color: var(--leaf-ink); }
.send-state.off b { color: var(--muted); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.draft-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.draft-bar > div:first-child { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.draft-card, .reply-card { margin-bottom: 16px; }
.reply-card.handled { opacity: .7; }
.draft-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.draft-top h2 { margin: 0 0 2px; }
.email-edit { margin-top: 14px; }
.email-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-size: 14px; }
.wc.over { color: var(--bad); font-weight: 600; }
.email-edit .subj { margin-bottom: 8px; font-weight: 600; }
.email-edit .re { font-size: 13px; margin-bottom: 6px; }
.email-edit textarea { font-size: 14.5px; line-height: 1.5; }
.draft-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.step { font-size: 13.5px; white-space: nowrap; color: var(--muted); }
.step.sent { color: var(--leaf-ink); font-weight: 500; }
.step.skipped { text-decoration: line-through; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions .link-btn + .link-btn { margin-left: 12px; }
.danger-link { color: var(--bad); }
.reply-text { white-space: pre-wrap; font-family: inherit; font-size: 14px; background: var(--paper); padding: 10px 12px; border-radius: 8px; max-height: 280px; overflow: auto; }
details summary { cursor: pointer; color: var(--brand); font-size: 14px; margin: 6px 0; }
.r-label { width: auto; }
.sup-list { list-style: none; margin: 12px 0 0; padding: 0; font-size: 14px; }
.sup-list li { display: flex; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.sup-list li span:first-child { flex: 1; }
.contacts { list-style: none; margin: 6px 0 10px; padding: 0; display: grid; gap: 8px; }
.contacts li { display: flex; justify-content: space-between; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.contact-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.contacts a.pill { text-decoration: none; }
.contact-add { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; }
.contact-add #ct-email { grid-column: 1 / -1; }
.contact-add input { height: 34px; font-size: 14px; }
.pill.contacted, .pill.approved, .pill.active { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.pill.replied, .pill.completed { background: var(--leaf-soft); color: var(--leaf-ink); border-color: transparent; }
.pill.bounced, .pill.unsubscribed, .pill.rejected { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
code { font-size: 13px; background: var(--paper); padding: 1px 5px; border-radius: 4px; }
@media (max-width: 900px) { .contact-add { grid-template-columns: 1fr; } .inline-row input[type=time] { width: auto; } .send-state { align-items: flex-start; text-align: left; } }
.inline-row input[type=time] { width: 130px; }
.apollo { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.apollo .inline-row input[type=text] { flex: 1; min-width: 180px; height: 34px; font-size: 14px; }
/* Groups table */
.group-table .g-tpl { min-width: 170px; width: 100%; height: 34px; font-size: 14px; }
.group-table td.row-actions { white-space: normal; }
.group-table .g-acts { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; justify-content: flex-end; }
.group-table .g-acts .link-btn + .link-btn { margin-left: 0; }
#g-new select, #g-new input[type=text] { width: auto; flex: 1; min-width: 180px; }
