:root {
  --bg: #f4f6f9;
  --panel: #ffffff;
  --panel-2: #f8f9fb;
  --line: #e2e6ec;
  --text: #16202c;
  --muted: #5f6b7a;
  --accent: #1f5fbf;
  --accent-ink: #ffffff;
  --accent-soft: #e6effb;
  --bubble-in: #eceff3;
  --bubble-in-ink: #16202c;
  --bubble-out: #1f5fbf;
  --bubble-out-ink: #ffffff;
  --danger: #c0392b;
  --danger-soft: #fdecea;
  --warn-soft: #fff5e0;
  --warn-ink: #7a4b00;
  --ok: #1e8e5a;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(20, 30, 45, .12);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c121b;
    --panel: #131b26;
    --panel-2: #18212e;
    --line: #243042;
    --text: #e6ebf2;
    --muted: #93a0b2;
    --accent: #4d8ef0;
    --accent-ink: #ffffff;
    --accent-soft: #1b2c47;
    --bubble-in: #222c3a;
    --bubble-in-ink: #e6ebf2;
    --bubble-out: #2f6fd6;
    --bubble-out-ink: #ffffff;
    --danger: #ff6b5b;
    --danger-soft: #3a1c1a;
    --warn-soft: #3a2c10;
    --warn-ink: #ffd27a;
    --ok: #4cc38a;
    --shadow: 0 8px 30px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.4 var(--font); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
.boot { display: grid; place-items: center; height: 100vh; color: var(--muted); }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* ---------- buttons & inputs */
.btn { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 8px 14px; font-weight: 600; }
.btn:hover { background: var(--panel-2); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.danger { color: var(--danger); }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { border: 0; background: transparent; width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--muted); flex: none; }
.icon-btn:hover { background: var(--panel-2); color: var(--text); }
.icon-btn svg { width: 22px; height: 22px; }
.field { display: grid; gap: 6px; margin: 14px 0; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input { width: 100%; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 10px 12px; outline: none; }
.input:focus, .composer textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.error { color: var(--danger); font-size: 14px; min-height: 1.2em; margin: 8px 0 0; }

/* ---------- auth screens */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(400px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; margin-bottom: 18px; }
.brand img { width: 34px; height: 34px; }
.auth-card h1 { font-size: 20px; margin: 0 0 6px; }
.auth-card p { margin: 0 0 8px; color: var(--muted); }
.auth-card .btn.primary { width: 100%; padding: 11px; margin-top: 6px; }
.auth-card .forgot { margin: 14px 0 0; text-align: center; font-size: 14px; }
.code-input { letter-spacing: .4em; font-size: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.qr { display: grid; place-items: center; background: #fff; border-radius: 12px; padding: 12px; margin: 12px auto; width: max-content; }
.qr img { display: block; width: 200px; height: 200px; image-rendering: pixelated; }
.secret { font-family: ui-monospace, Consolas, monospace; font-size: 13px; word-break: break-all; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px; text-align: center; }

/* ---------- main layout */
.shell { display: grid; grid-template-columns: 340px 1fr; height: 100vh; height: 100dvh; }
.sidebar { background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.side-head { display: flex; align-items: center; gap: 6px; padding: 10px 10px 8px 14px; }
.side-head .brand { margin: 0; font-size: 16px; flex: 1; min-width: 0; }
.side-head .brand img { width: 28px; height: 28px; }
.number-select { margin: 0 12px 8px; }
.number-select select { width: 100%; border: 1px solid var(--line); background: var(--panel-2); border-radius: 10px; padding: 8px 10px; font-weight: 600; }
.number-label { margin: 0 14px 8px; font-weight: 600; font-size: 14px; color: var(--muted); }
.search { display: flex; gap: 8px; padding: 0 12px 10px; }
.search .input { padding: 8px 12px; background: var(--panel-2); }
.tabs { display: flex; gap: 4px; padding: 0 12px 8px; }
.tab { border: 0; background: transparent; padding: 6px 10px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 13px; }
.tab.active { background: var(--accent-soft); color: var(--accent); }
.conv-list { flex: 1; overflow-y: auto; min-height: 0; }
.conv { display: flex; gap: 12px; padding: 10px 14px; border: 0; background: transparent; width: 100%; text-align: left; align-items: center; border-bottom: 1px solid var(--line); }
.conv:hover { background: var(--panel-2); }
.conv.active { background: var(--accent-soft); }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; color: #fff; }
.conv-body { flex: 1; min-width: 0; }
.conv-top { display: flex; gap: 8px; align-items: baseline; }
.conv-name { font-weight: 600; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-time { font-size: 12px; color: var(--muted); flex: none; }
.conv-bottom { display: flex; gap: 8px; align-items: center; }
.conv-preview { font-size: 14px; color: var(--muted); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv.unread .conv-name, .conv.unread .conv-preview { color: var(--text); font-weight: 700; }
.badge { background: var(--accent); color: var(--accent-ink); border-radius: 999px; font-size: 12px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; }
.tag { font-size: 11px; font-weight: 700; border-radius: 6px; padding: 1px 6px; background: var(--danger-soft); color: var(--danger); }
.empty { padding: 30px 20px; text-align: center; color: var(--muted); }
.more { display: block; margin: 12px auto; }

/* ---------- thread */
.thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); }
.thread-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--panel); border-bottom: 1px solid var(--line); min-height: 60px; }
.thread-title { flex: 1; min-width: 0; }
.thread-title .name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 0; background: none; padding: 0; text-align: left; max-width: 100%; }
.thread-title .name:hover { text-decoration: underline; }
.thread-title .sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.back { display: none; }
.banner { margin: 10px 14px 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.banner.stop { background: var(--danger-soft); color: var(--danger); font-weight: 600; }
.banner.info { background: var(--warn-soft); color: var(--warn-ink); }
.messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 3px; min-height: 0; }
.day { align-self: center; font-size: 12px; color: var(--muted); margin: 12px 0 6px; font-weight: 600; }
.msg { max-width: min(560px, 78%); display: flex; flex-direction: column; }
.msg.in { align-self: flex-start; }
.msg.out { align-self: flex-end; align-items: flex-end; }
.who { font-size: 12px; color: var(--muted); margin: 6px 10px 2px; }
.bubble { padding: 8px 12px; border-radius: 18px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.in .bubble { background: var(--bubble-in); color: var(--bubble-in-ink); border-bottom-left-radius: 6px; }
.msg.out .bubble { background: var(--bubble-out); color: var(--bubble-out-ink); border-bottom-right-radius: 6px; }
.msg.out.failed .bubble { background: var(--danger-soft); color: var(--danger); border: 1px solid var(--danger); }
.msg.auto .bubble { opacity: .8; font-style: italic; }
.attachments { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.msg.out .attachments { justify-content: flex-end; }
.attachments img, .attachments video { max-width: min(280px, 60vw); max-height: 320px; border-radius: 14px; display: block; background: var(--panel-2); }
.attachments a.file { display: inline-flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: 14px; }
.attachments .pending { padding: 18px 22px; border-radius: 14px; background: var(--panel-2); color: var(--muted); font-size: 13px; }
.meta { font-size: 11.5px; color: var(--muted); margin: 2px 8px 6px; }
.meta.failed { color: var(--danger); font-weight: 600; }
.placeholder { flex: 1; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 20px; }
.placeholder svg { width: 64px; height: 64px; opacity: .35; margin-bottom: 8px; }

/* ---------- composer */
.composer { background: var(--panel); border-top: 1px solid var(--line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
.composer-row { display: flex; align-items: flex-end; gap: 8px; }
.composer textarea { flex: 1; resize: none; overflow-y: hidden; border: 1px solid var(--line); background: var(--panel-2); border-radius: 20px; padding: 9px 14px; max-height: 160px; outline: none; }
.send-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.send-btn:disabled { opacity: .4; }
.send-btn svg { width: 20px; height: 20px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.chip { position: relative; }
.chip img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; display: block; border: 1px solid var(--line); }
.chip .fname { width: 120px; height: 64px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; padding: 4px; text-align: center; overflow: hidden; background: var(--panel-2); }
.chip button { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--text); color: var(--panel); font-size: 13px; line-height: 1; }
.chip.uploading { opacity: .5; }
.counter { font-size: 12px; color: var(--muted); text-align: right; margin-top: 4px; }

/* ---------- menu & modal */
.menu { position: absolute; top: 52px; right: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 240px; padding: 6px; z-index: 20; }
.menu .who-am-i { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 14px; }
.menu button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 9px 10px; border-radius: 8px; }
.menu button:hover { background: var(--panel-2); }
.menu .hint { font-size: 12px; color: var(--muted); padding: 2px 10px 8px; }
.overlay { position: fixed; inset: 0; background: rgba(10, 15, 25, .45); display: grid; place-items: center; padding: 16px; z-index: 30; }
.modal { width: min(420px, 100%); background: var(--panel); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.modal h2 { margin: 0 0 4px; font-size: 18px; }
.modal .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--panel); padding: 10px 16px; border-radius: 10px; z-index: 40; max-width: calc(100% - 32px); box-shadow: var(--shadow); }
.side-head { position: relative; }
.conn { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.conn.off { background: var(--danger); }

/* ---------- phone layout: one pane at a time */
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .shell.show-thread .sidebar { display: none; }
  .shell:not(.show-thread) .thread { display: none; }
  .back { display: inline-grid; }
  .msg { max-width: 86%; }
}

/* ---------- number switcher */
.number-select { margin: 0 12px 8px; }
.picker-caption { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 2px 4px; display: flex; align-items: center; gap: 8px; }
.picker-caption .badge { text-transform: none; letter-spacing: 0; font-size: 11px; height: 18px; }
.number-select .number-label { margin: 0; color: var(--text); font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.icon-btn.danger-hover:hover { color: var(--danger); }
.btn.danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.modal.wide { width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; }

/* ---------- admin */
.admin { min-height: 100vh; background: var(--bg); }
.admin-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.admin-title { display: flex; flex-direction: column; margin-right: auto; min-width: 0; }
.admin-title .muted { font-size: 13px; }
.admin-tabs { display: flex; gap: 4px; }
.admin-body { max-width: 980px; margin: 0 auto; padding: 16px; }
.admin-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 14px; }
.admin-toolbar h2 { margin: 0 auto 0 0; font-size: 20px; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.admin-actions select.input { width: auto; padding: 8px 10px; }
.cards { display: grid; gap: 10px; }
.card { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.card.disabled { opacity: .6; }
.card-main { min-width: 0; flex: 1 1 320px; display: grid; gap: 3px; }
.card-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); }
.pill.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); border-color: transparent; }
.pill.wait { background: var(--warn-soft); color: var(--warn-ink); border-color: transparent; }
.pill.off { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.chips-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.num-chip { font-size: 12.5px; padding: 3px 9px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.num-chip.shared { background: var(--warn-soft); color: var(--warn-ink); }
.checklist { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
.checklist details summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); margin: 6px 0; }
.checklist details .check { margin: 4px 0 4px 4px; }
.copy-row { display: flex; gap: 8px; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.small { font-size: 12.5px; }
textarea.input { resize: vertical; }
@media (max-width: 760px) {
  .admin-head { padding: 8px 10px; }
  .admin-tabs { order: 3; width: 100%; }
  .admin-body { padding: 12px; }
}

/* ---------- new-message popups */
.popups { position: fixed; right: 16px; bottom: 16px; z-index: 35; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.popup { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 14px; padding: 12px 12px 12px 14px; box-shadow: var(--shadow); cursor: pointer; animation: popup-in .28s cubic-bezier(.2, .9, .3, 1.2); }
.popup:hover { background: var(--panel-2); }
.popup.leaving { animation: popup-out .25s ease-in forwards; }
.popup .avatar { width: 38px; height: 38px; font-size: 14px; }
.popup-body { flex: 1; min-width: 0; }
.popup-top { display: flex; gap: 8px; align-items: baseline; }
.popup-top strong { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.popup-top .muted { font-size: 12px; flex: none; }
.popup-text { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; margin-top: 2px; }
.popup-to { font-size: 12px; color: var(--accent); font-weight: 600; margin-top: 4px; }
.popup-close { border: 0; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; padding: 2px 4px; border-radius: 6px; }
.popup-close:hover { background: var(--line); color: var(--text); }
@keyframes popup-in { from { transform: translateY(120%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes popup-out { to { transform: translateY(120%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .popup, .popup.leaving { animation: none; } }
@media (max-width: 760px) { .popups { left: 12px; right: 12px; bottom: 76px; width: auto; } }

/* ---------- branding */
.brand-full { display: grid; justify-items: center; gap: 2px; margin: -6px 0 18px; }
.logo-plate { display: inline-block; border-radius: 12px; }
.logo-plate img { display: block; max-width: 230px; max-height: 90px; width: auto; height: auto; }
.brand-text { display: inline-block; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.brand-text.small { font-size: 18px; }
.brand-sub { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.brand-icon { border-radius: 8px; }
.admin-head .brand-icon { width: 30px; height: 30px; }
@media (prefers-color-scheme: dark) {
  /* the logo's lettering is black: give it its own light plate on the dark theme */
  .logo-plate { background: #fff; padding: 6px 12px; }
}

/* ---------- lock screen */
.lock-card h1 { margin-top: 4px; }
.lock-alerts { display: grid; gap: 6px; margin: 12px 0; }
.lock-alert { background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 14px; border-radius: 10px; padding: 8px 12px; }

/* ---------- BulkVS status checklist */
.carrier { display: grid; gap: 4px; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13.5px; }
.carrier.error { color: var(--danger); background: var(--danger-soft); border-color: transparent; }
.chk.good { color: var(--ok); }
.chk.bad { color: var(--danger); font-weight: 600; }
.chk.warn { color: var(--warn-ink); }
.route-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }

/* ---------- top bar + support footer (every signed-in screen) */
.app-frame { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.app-frame .shell { flex: 1; min-height: 0; height: auto; }
.top-bar { display: flex; align-items: center; gap: 10px; padding: 6px 16px; background: var(--panel); border-bottom: 1px solid var(--line); flex: none; }
.top-logo { display: inline-flex; }
.logo-plate.small img { width: auto; height: 54px; }
.top-app { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line); }
.top-spacer { flex: 1; }
.top-user { font-size: 13px; }
.support-footer { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 16px; padding: 7px 16px; font-size: 12.5px; color: var(--muted); background: var(--panel); border-top: 1px solid var(--line); flex: none; }
.support-footer a { color: var(--accent); font-weight: 600; text-decoration: none; }
.support-footer a:hover { text-decoration: underline; }
.auth { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.auth .support-footer { background: transparent; border: 0; }
.admin { display: flex; flex-direction: column; }
.admin-body { flex: 1; width: 100%; }
.admin .top-bar { position: sticky; top: 0; z-index: 6; }
.admin .admin-head { top: 67px; }
.popups { bottom: 44px; }
@media (prefers-color-scheme: dark) { .logo-plate.small { padding: 3px 8px; border-radius: 8px; } }
@media (max-width: 760px) {
  .top-bar { padding: 4px 10px; }
  .logo-plate.small img { height: 40px; }
  .top-user { display: none; }
  /* in a conversation, give the thread the room: no footer under the composer */
  .app-frame:has(.shell.show-thread) .support-footer { display: none; }
  .popups { bottom: 76px; }
}

.mail-ok { color: var(--ok); font-weight: 600; margin: 0 0 10px; }

/* ---------- passkeys */
.pk-login { margin-top: 6px; }
.pk-login .or { text-align: center; color: var(--muted); font-size: 13px; margin: 10px 0; display: flex; align-items: center; gap: 10px; }
.pk-login .or::before, .pk-login .or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.pk-btn { width: 100%; padding: 11px; margin-top: 8px; }
.pk-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; }
.pk-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; padding: 3px 4px 3px 9px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); }
.pk-x { border: 0; background: transparent; color: var(--muted); font-size: 15px; line-height: 1; padding: 0 4px; border-radius: 6px; cursor: pointer; }
.pk-x:hover { color: var(--danger); background: var(--danger-soft); }

/* Admin → Company settings */
.company .company-card .card-main { display: grid; gap: 10px; }
.company .company-card .btn.primary { justify-self: start; }
.logo-preview { min-height: 60px; display: flex; align-items: center; padding: 10px; border: 1px dashed var(--line); border-radius: 10px; }
.logo-preview img { max-width: 260px; max-height: 90px; width: auto; height: auto; }
.carrier-row { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.carrier-row:first-of-type { border-top: 0; }
.trial-banner { background: var(--warn-soft); color: var(--warn-ink); padding: 8px 16px; font-size: 14px; text-align: center; }
.company .company-card .field { margin: 0; }

/* scheduled texts */
.scheduled-strip { display: grid; gap: 6px; padding: 0 14px; }
.scheduled-strip:empty { display: none; }
.scheduled-strip .sched { margin-top: 6px; }
.sched { display: flex; gap: 10px; align-items: flex-start; background: var(--accent-soft); border: 1px dashed var(--accent); border-radius: 12px; padding: 8px 10px; }
.sched.failed { background: var(--danger-soft); border-color: var(--danger); }
.sched-ic svg { width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }
.sched.failed .sched-ic svg { color: var(--danger); }
.sched-main { flex: 1; min-width: 0; }
.sched-when { font-size: 12.5px; font-weight: 700; }
.sched-body { font-size: 14px; white-space: pre-wrap; word-break: break-word; max-height: 4.5em; overflow: hidden; }
.sched-err { font-size: 12.5px; color: var(--danger); }
.sched-actions { display: flex; gap: 6px; flex: none; }
.btn.small { padding: 4px 10px; font-size: 13px; }
.sched-list { display: grid; gap: 8px; max-height: 60vh; overflow: auto; }
.sched-link { cursor: pointer; }

/* buttons that are links (Admin → API: documentation) */
a.btn { text-decoration: none; display: inline-flex; align-items: center; }
