/* SALYSS app design system — RTL first, light and dark themes. */
:root {
  --bg: #f4f7f8;
  --surface: #ffffff;
  --surface-2: #eef3f5;
  --border: #dfe7eb;
  --text: #0f1b24;
  --muted: #5d707d;
  --brand: #0b8f9b;
  --brand-strong: #087680;
  --brand-ink: #ffffff;
  --brand-soft: #e1f5f6;
  --accent: #c98a1b;
  --accent-soft: #fbf1de;
  --ok: #1d8f59;
  --ok-soft: #e2f5ea;
  --bad: #c93c3c;
  --bad-soft: #fbe6e6;
  --shadow: 0 1px 2px rgba(15, 27, 36, .05), 0 4px 16px rgba(15, 27, 36, .05);
  --radius: 14px;
  --radius-sm: 9px;
  --sb-w: 252px;
  --sb-w-collapsed: 72px;
  --font: "Readex Pro", system-ui, "Segoe UI", Tahoma, sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #061018;
  --surface: #0c1923;
  --surface-2: #12222e;
  --border: #1f3341;
  --text: #dbe8ef;
  --muted: #8aa1b0;
  --brand: #52e0e6;
  --brand-strong: #7ae9ee;
  --brand-ink: #04232a;
  --brand-soft: rgba(82, 224, 230, .12);
  --accent: #e8b04f;
  --accent-soft: rgba(232, 176, 79, .14);
  --ok: #5ee08f;
  --ok-soft: rgba(94, 224, 143, .12);
  --bad: #ff7a6b;
  --bad-soft: rgba(255, 122, 107, .12);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 600; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.icon { width: 20px; height: 20px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--sb-w) 1fr; min-height: 100vh; transition: grid-template-columns .2s ease; }
.sb-collapsed .shell { grid-template-columns: var(--sb-w-collapsed) 1fr; }

.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  background: var(--surface);
  border-inline-end: 1px solid var(--border);
  overflow: hidden;
}
.sb-head { display: flex; align-items: center; gap: 8px; padding: 14px 14px 10px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: var(--brand-ink); font-size: 20px; font-weight: 700;
}
.sb-head .icon-btn { margin-inline-start: auto; }
.sb-nav { flex: 1; overflow-y: auto; padding: 4px 10px 12px; }
.sb-group + .sb-group { margin-top: 14px; }
.sb-label { font-size: 12px; color: var(--muted); padding: 0 10px 6px; white-space: nowrap; }
.sb-link {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px; border-radius: var(--radius-sm);
  color: var(--text); white-space: nowrap;
}
.sb-link:hover { background: var(--surface-2); text-decoration: none; }
.sb-link.active { background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; }
.sb-link .icon { color: var(--muted); }
.sb-link.active .icon { color: var(--brand-strong); }
.sb-soon { margin-inline-start: auto; font-size: 11px; color: var(--muted); background: var(--surface-2); border-radius: 99px; padding: 0 8px; }
.sb-foot { padding: 10px; border-top: 1px solid var(--border); display: grid; gap: 6px; }
.plan-chip { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--text); font-size: 13px; white-space: nowrap; }
.plan-chip .icon { color: var(--accent); }

.sb-collapsed .brand-name,
.sb-collapsed .sb-text,
.sb-collapsed .sb-soon,
.sb-collapsed .sb-label,
.sb-collapsed .plan-text { display: none; }
.sb-collapsed .sb-head { flex-direction: column; padding-inline: 10px; }
.sb-collapsed .sb-head .icon-btn { margin: 0; }
.sb-collapsed .sb-link { justify-content: center; }
.sb-collapsed .sb-group + .sb-group { border-top: 1px solid var(--border); padding-top: 10px; }
.sb-collapsed .plan-chip { justify-content: center; }

.sb-overlay { display: none; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  height: 64px; padding: 0 24px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.page-title { font-size: 18px; }
.topbar-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.content { padding: 24px; width: 100%; max-width: 1180px; }

.only-mobile, .icon-btn.only-mobile { display: none; }

@media (max-width: 900px) {
  .shell, .sb-collapsed .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 50;
    width: min(84vw, var(--sb-w));
    transform: translateX(100%); transition: transform .2s ease;
    box-shadow: var(--shadow);
  }
  .sb-open .sidebar { transform: none; }
  .sb-open .sb-overlay { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .35); }
  .sb-collapsed .brand-name, .sb-collapsed .sb-text, .sb-collapsed .sb-soon, .sb-collapsed .sb-label, .sb-collapsed .plan-text { display: revert; }
  .sb-collapsed .sb-head { flex-direction: row; }
  .sb-collapsed .sb-link { justify-content: flex-start; }
  .only-desktop, .icon-btn.only-desktop { display: none; }
  .only-mobile, .icon-btn.only-mobile { display: inline-grid; }
  .topbar { padding: 0 16px; }
  .content { padding: 16px; }
  .ws-name { max-width: 110px; }
}
@media (max-width: 480px) {
  .ws-name { display: none; }
  .topbar { gap: 8px; }
  .topbar-actions { gap: 4px; }
  .page-title { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  font: inherit; font-weight: 500; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: transparent; color: var(--bad); border-color: var(--border); }
.btn-danger:hover { background: var(--bad-soft); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
:root[data-theme="dark"] .show-light, :root:not([data-theme="dark"]) .show-dark { display: none; }

/* ---------- Menus ---------- */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 30;
  min-width: 240px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.menu-label { font-size: 12px; color: var(--muted); padding: 6px 10px; }
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border-radius: var(--radius-sm);
  border: 0; background: transparent; color: var(--text); font: inherit; text-align: start; cursor: pointer;
}
.menu-item:hover { background: var(--surface-2); text-decoration: none; }
.menu-item.active { background: var(--brand-soft); }
.menu-item .end { margin-inline-start: auto; }
.menu-sep { height: 1px; background: var(--border); margin: 6px 0; }
.ws-btn {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 10px 0 8px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
}
.ws-name { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.ws-btn .icon { width: 16px; height: 16px; color: var(--muted); }
.ws-avatar, .avatar {
  display: inline-grid; place-items: center; flex: none;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px;
}
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); }

/* ---------- Cards & layout ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card + .card, .stack > * + * { margin-top: 18px; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-head h3 { font-size: 16px; }
.card-head .end { margin-inline-start: auto; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

.hero { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; background: linear-gradient(120deg, var(--surface), var(--brand-soft)); }
.hero h2 { font-size: 24px; margin: 2px 0 6px; }
.eyebrow { font-size: 13px; color: var(--brand-strong); font-weight: 500; }
.hero .end { margin-inline-start: auto; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
@media (max-width: 1000px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.stat .k { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.stat .k .icon { width: 17px; height: 17px; }
.stat .v { font-size: 28px; font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .soon { font-size: 12px; color: var(--muted); }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); }
.checklist li:first-child { border-top: 0; padding-top: 0; }
.check-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 2px solid var(--border); color: transparent; }
.checklist .done .check-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.checklist .done .check-title { color: var(--muted); text-decoration: line-through; }
.check-dot .icon { width: 15px; height: 15px; }
.checklist .end { margin-inline-start: auto; }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.input, .select {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font: inherit;
}
.input:focus, .select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.input[readonly] { background: var(--surface-2); }
.input.is-invalid { border-color: var(--bad); }
.error { display: block; color: var(--bad); font-size: 13px; margin-top: 5px; }
.hint { display: block; color: var(--muted); font-size: 13px; margin-top: 5px; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--brand); }
.form-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.form-row .field { flex: 1; min-width: 180px; margin-bottom: 0; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 6px; }

/* ---------- Tables, badges, alerts ---------- */
.table-wrap { overflow-x: auto; margin: 0 -22px -22px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: start; font-weight: 500; color: var(--muted); font-size: 13px; padding: 10px 22px; background: var(--surface-2); }
.table td { padding: 12px 22px; border-top: 1px solid var(--border); vertical-align: middle; }
.person { display: flex; align-items: center; gap: 10px; }
.person .avatar { width: 34px; height: 34px; font-size: 14px; }
.person b { display: block; font-weight: 500; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.row-actions .select { height: 34px; width: auto; padding: 0 10px; font-size: 13px; }

.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 500; background: var(--surface-2); color: var(--muted); }
.badge-brand { background: var(--brand-soft); color: var(--brand-strong); }
.badge-accent { background: var(--accent-soft); color: var(--accent); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; }
.alert-ok { background: var(--ok-soft); color: var(--text); }
.alert-ok .icon { color: var(--ok); }
.alert-info { background: var(--brand-soft); }
.alert-bad { background: var(--bad-soft); }
.copy-box { display: flex; gap: 8px; margin-top: 10px; }
.copy-box .input { direction: ltr; font-size: 13px; }

.toast {
  position: fixed; bottom: 20px; inset-inline-start: 50%; translate: 50% 0; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--text); color: var(--bg); box-shadow: var(--shadow);
  animation: toast-in .25s ease, toast-out .3s ease 4.5s forwards;
}
.toast .icon { color: var(--ok); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes toast-out { to { opacity: 0; visibility: hidden; } }

.empty { text-align: center; padding: 28px 10px; color: var(--muted); }
.empty .icon { width: 34px; height: 34px; color: var(--brand); margin-bottom: 8px; }

/* ---------- Channels ---------- */
.ch { --ch: var(--brand); }
.ch-whatsapp { --ch: #25d366; }
.ch-messenger { --ch: #0a7cff; }
.ch-instagram { --ch: #e1306c; }
.ch-telegram { --ch: #229ed9; }
.ch-facebook { --ch: #1877f2; }
.type-icon {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--ch) 14%, transparent); color: var(--ch);
}
.type-icon img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.type-icons { display: flex; gap: 8px; margin-bottom: 14px; }
.connect-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; margin-bottom: 18px; }
@media (max-width: 900px) { .connect-grid { grid-template-columns: 1fr; } }
.connect-card h3 { font-size: 17px; margin-bottom: 6px; }
.connect-card p { margin-bottom: 16px; }
.btn-facebook { background: #1877f2; color: #fff; }
.btn-facebook:hover { background: #0f63d1; }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.channel-list { list-style: none; margin: 0; padding: 0; }
.channel-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.channel-row:first-child { border-top: 0; padding-top: 0; }
.channel-row .info { flex: 1; min-width: 180px; }
.channel-row .info b { font-weight: 500; }
.channel-row .end { margin-inline-start: auto; display: flex; gap: 10px; align-items: center; }
.status-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.status-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.status-dot.bad { color: var(--bad); }
.status-dot.bad::before { background: var(--bad); }
.status-dot.off { color: var(--muted); }
.status-dot.off::before { background: var(--muted); }
.pick-group + .pick-group { margin-top: 22px; }
.pick-group h4 { font-size: 14px; color: var(--muted); font-weight: 500; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.pick {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer;
}
.pick + .pick { margin-top: 8px; }
.pick:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pick input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.pick .info { flex: 1; min-width: 0; }
.pick.disabled { opacity: .55; cursor: not-allowed; }
.pick-child { margin-inline-start: 30px; }
details.inline > summary { cursor: pointer; color: var(--brand-strong); font-weight: 500; list-style: none; }
details.inline > summary::-webkit-details-marker { display: none; }
details.inline[open] > summary { margin-bottom: 14px; }
.steps { margin: 0 0 14px; padding-inline-start: 20px; color: var(--muted); font-size: 14px; }

/* ---------- Inbox ---------- */
.content-full { max-width: none; padding: 0; }
.inbox { display: grid; grid-template-columns: 330px minmax(0, 1fr) 290px; height: calc(100vh - 64px); background: var(--surface); }
.inbox:not(.has-active) { grid-template-columns: 330px minmax(0, 1fr); }
.inbox-list { display: flex; flex-direction: column; min-height: 0; border-inline-end: 1px solid var(--border); }
.inbox-search { padding: 12px 12px 8px; }
.inbox-search .input { height: 40px; }
.inbox-filters { display: flex; gap: 6px; padding: 0 12px 10px; overflow-x: auto; border-bottom: 1px solid var(--border); scrollbar-width: none; }
.chip { white-space: nowrap; font-size: 13px; padding: 4px 12px; border-radius: 99px; background: var(--surface-2); color: var(--muted); }
.chip:hover { text-decoration: none; color: var(--text); }
.chip.active { background: var(--brand-soft); color: var(--brand-strong); font-weight: 500; }
.conv-items { flex: 1; overflow-y: auto; }
.conv-item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text); }
.conv-item:hover { background: var(--surface-2); text-decoration: none; }
.conv-item.active { background: var(--brand-soft); }
.conv-avatar { position: relative; flex: none; }
.conv-avatar .avatar { width: 42px; height: 42px; }
.ch-dot {
  position: absolute; bottom: -2px; inset-inline-end: -4px;
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ch); color: #fff; border: 2px solid var(--surface);
}
.ch-dot .icon { width: 11px; height: 11px; }
.conv-main { flex: 1; min-width: 0; }
.conv-top { display: flex; gap: 8px; align-items: baseline; }
.conv-top b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-top time { margin-inline-start: auto; font-size: 12px; color: var(--muted); flex: none; }
.conv-preview { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-item.unread b, .conv-item.unread .conv-preview { color: var(--text); font-weight: 600; }
.unread-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--brand); color: var(--brand-ink); font-size: 12px; display: grid; place-items: center; flex: none; }

.inbox-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); }
.thread-head { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
.thread-head b { font-weight: 600; }
.thread-head .end { margin-inline-start: auto; display: flex; gap: 8px; }
.messages { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.msg { display: flex; }
.msg-out { justify-content: flex-end; }
.bubble { max-width: min(560px, 78%); padding: 8px 12px 5px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.msg-in .bubble { border-start-start-radius: 4px; }
.msg-out .bubble { background: var(--brand-soft); border-color: transparent; border-start-end-radius: 4px; }
.msg-text { overflow-wrap: anywhere; }
.msg-meta { display: flex; gap: 5px; align-items: center; justify-content: flex-end; font-size: 11px; color: var(--muted); margin-top: 2px; }
.msg-status { display: inline-flex; align-items: center; gap: 3px; }
.msg-status .icon { width: 14px; height: 14px; }
.msg-status.s-read { color: var(--brand); }
.msg-status.s-failed { color: var(--bad); font-weight: 500; }
.attach { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); padding: 2px 0; }
.attach .icon { width: 16px; height: 16px; }
.composer { display: flex; gap: 8px; align-items: flex-end; padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--border); }
.composer textarea { height: auto; min-height: 44px; max-height: 160px; padding: 10px 14px; resize: none; line-height: 1.5; }
.composer .btn { width: 44px; height: 44px; padding: 0; flex: none; }
.composer-locked { display: flex; gap: 10px; align-items: center; padding: 14px 16px; font-size: 14px; background: var(--accent-soft); border-top: 1px solid var(--border); }
.composer-locked .icon { color: var(--accent); }
.inbox-empty { flex: 1; display: grid; place-items: center; text-align: center; color: var(--muted); }
.inbox-contact { border-inline-start: 1px solid var(--border); padding: 22px 18px; overflow-y: auto; }
.contact-card { text-align: center; margin-bottom: 20px; }
.contact-card .avatar { width: 64px; height: 64px; font-size: 24px; margin-bottom: 8px; }
.contact-card h3 { font-size: 17px; }
.kv { display: grid; gap: 12px; margin: 0; }
.kv dt { font-size: 12px; color: var(--muted); }
.kv dd { margin: 0; }
@media (max-width: 1200px) {
  .inbox, .inbox.has-active { grid-template-columns: 300px minmax(0, 1fr); }
  .inbox-contact { display: none; }
}
@media (max-width: 900px) {
  .inbox, .inbox.has-active { grid-template-columns: 1fr; }
  .inbox.has-active .inbox-list { display: none; }
  .inbox:not(.has-active) .inbox-thread { display: none; }
  .messages { padding: 14px 12px; }
  .bubble { max-width: 88%; }
}

/* ---------- Admin ---------- */
.copy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.copy-list .copy-box { margin-top: 4px; }
.copy-list .btn { height: 44px; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Module placeholder ---------- */
.module-hero { text-align: center; padding: 48px 22px; }
.module-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); }
.module-icon .icon { width: 30px; height: 30px; }
.module-hero h2 { font-size: 24px; margin-bottom: 8px; }
.module-hero p { max-width: 520px; margin: 0 auto; }
.feature-list { list-style: none; padding: 0; margin: 24px auto 0; max-width: 420px; text-align: start; }
.feature-list li { display: flex; gap: 10px; align-items: center; padding: 8px 0; }
.feature-list .icon { color: var(--ok); width: 18px; height: 18px; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 40px; color: #dbe8ef;
  background: radial-gradient(120% 90% at 100% 0%, #0f3a44 0%, #071019 60%);
}
.auth-side .brand { color: #fff; }
.auth-side h2 { font-size: 32px; line-height: 1.35; max-width: 440px; }
.auth-side p { color: #8aa1b0; max-width: 420px; margin-top: 12px; }
.auth-side .orbit { position: absolute; inset-inline-end: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(82, 224, 230, .18); box-shadow: 0 0 0 60px rgba(82, 224, 230, .04), 0 0 0 120px rgba(82, 224, 230, .03); }
.auth-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.auth-points li { display: flex; gap: 10px; align-items: center; }
.auth-points .icon { color: #52e0e6; }
.auth-main { display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.auth-card .lead { color: var(--muted); margin-bottom: 24px; }
.auth-foot { margin-top: 18px; text-align: center; font-size: 14px; color: var(--muted); }
.auth-mobile-brand { display: none; margin-bottom: 24px; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-mobile-brand { display: flex; }
}

/* ---------- Errors ---------- */
.error-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.error-code { font-size: 72px; font-weight: 700; color: var(--brand); line-height: 1; }
.error-page h1 { font-size: 22px; margin: 14px 0 8px; }
.error-page p { color: var(--muted); margin-bottom: 22px; }
