/*
 * SendSMS cabinet shell and component skin (approved office mockups).
 * Every rule is scoped to html[data-brand="sendsms"]; new class names use the unique "ss-" prefix.
 * Rules under [data-ss-shell] apply only to the customer shell (staff opening sendsms.html keep the ZEXTEL layout).
 */

/* ---------- base ---------- */
html[data-brand="sendsms"] body { background: var(--bg); color: var(--text); font-size: var(--text-base); line-height: 1.5; }
html[data-brand="sendsms"] h1 { font-size: var(--text-2xl); letter-spacing: -0.03em; line-height: 1.15; font-weight: 800; }
html[data-brand="sendsms"] h2 { font-size: var(--text-lg); letter-spacing: -0.01em; }
html[data-brand="sendsms"] h3 { font-size: var(--text-md); }
html[data-brand="sendsms"] a { color: inherit; }
html[data-brand="sendsms"] :focus-visible { outline: 2px solid var(--ss-focus); outline-offset: 2px; }
html[data-brand="sendsms"] .ss-ic { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; display: block; }

/* ---------- logo ---------- */
html[data-brand="sendsms"] .ss-logo-bubble { width: 33px; height: 28px; border-radius: 9px 9px 9px 2px; background: var(--primary); display: inline-flex; align-items: center; justify-content: center; gap: 3px; flex-shrink: 0; }
html[data-brand="sendsms"] .ss-logo-bubble i { width: 4px; height: 4px; border-radius: 50%; background: var(--text-on-primary); display: block; }
html[data-brand="sendsms"] .ss-logo-text { font-size: 21px; font-weight: 800; letter-spacing: -1px; line-height: 1; color: var(--text); white-space: nowrap; }
html[data-brand="sendsms"] .ss-logo-text small { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0; margin-top: 5px; }
/* Shared sign-in / access screens: the ZEXTEL wordmark is replaced by js/sendsmsShell.js. */
html[data-brand="sendsms"] .brand-wordmark[data-ss-logo] { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: inherit; letter-spacing: normal; }
html[data-brand="sendsms"] .brand-wordmark[data-ss-logo] span { color: inherit; }
html[data-brand="sendsms"] .brand-wordmark[data-ss-logo] .ss-logo-bubble { background: var(--primary); }

/* ---------- sidebar ---------- */
html[data-brand="sendsms"] .sidebar { background: var(--sidebar-bg); border-right: 1px solid var(--sidebar-border); }
html[data-brand="sendsms"] .sidebar-inner { padding: 26px 10px 20px; }
html[data-brand="sendsms"] .ss-brand { padding: 0 0 26px; gap: 10px; }
html[data-brand="sendsms"] nav.nav-list { padding: 0; gap: 4px; }
html[data-brand="sendsms"] .ss-nav-group { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-tertiary); margin: 18px 12px 8px; }
html[data-brand="sendsms"] .nav-item { gap: 7px; letter-spacing: -0.015em; min-height: 42px; padding: 10px 12px 10px 8px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--sidebar-text); white-space: nowrap; }
/* «Тексты интерфейса»: a renamed menu item may be longer than the built-in one (up to 40 characters) — it wraps to a second line inside the
   menu and is cut with "…" after two lines (the full name is in the title), never past the menu edge */
html[data-brand="sendsms"] .nav-item:hover { background: var(--sidebar-bg-raised); color: var(--sidebar-text-hover); }
html[data-brand="sendsms"] .nav-item.active { background: var(--sidebar-active-bg); color: var(--ss-accent-text); font-weight: 650; }
html[data-brand="sendsms"] .nav-item.active svg { color: var(--ss-accent-text); opacity: 1; }
html[data-brand="sendsms"] .nav-item .ss-ic { width: 19px; height: 19px; opacity: 1; }
html[data-brand="sendsms"] .nav-item:focus-visible { outline: 2px solid var(--ss-focus); outline-offset: -2px; }
html[data-brand="sendsms"] .sidebar-footer:empty { display: none; }
html[data-brand="sendsms"] .nav-item > span { min-width: 0; white-space: nowrap; line-height: 1.3; }
html[data-brand="sendsms"] .nav-item.ss-nav-item > span { min-width: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

/* ---------- topbar ---------- */
html[data-brand="sendsms"] .topbar { height: var(--shell-topbar-h); padding: 0 36px; gap: 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
html[data-brand="sendsms"] .shell-icon-button { width: 42px; height: 42px; border-radius: 12px; border-color: var(--border); background: var(--surface); color: var(--text); }
html[data-brand="sendsms"] .shell-icon-button:hover { background: var(--surface-3); }
html[data-brand="sendsms"] .ss-company-slot:empty { display: none; }
@media (min-width: 901px) { html[data-brand="sendsms"][data-ss-shell] .navigation-toggle { display: none; } }
html[data-brand="sendsms"][data-ss-shell] .topbar-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html[data-brand="sendsms"] .ss-company-slot { flex: 1 1 auto; min-width: 0; display: flex; }
html[data-brand="sendsms"] .topbar-right { gap: 12px; margin-left: auto; }

/* popovers (company switcher, profile menu) */
html[data-brand="sendsms"] .ss-pop, html[data-brand="sendsms"] .ss-profile { position: relative; min-width: 0; }
html[data-brand="sendsms"] .ss-pop > summary, html[data-brand="sendsms"] .ss-profile > summary { list-style: none; cursor: pointer; }
html[data-brand="sendsms"] .ss-pop > summary::-webkit-details-marker, html[data-brand="sendsms"] .ss-profile > summary::-webkit-details-marker { display: none; }
html[data-brand="sendsms"] .ss-pop-panel { position: absolute; top: calc(100% + 10px); z-index: 30; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 16px; display: flex; flex-direction: column; gap: 14px; color: var(--text); }
html[data-brand="sendsms"] details:not([open]) > .ss-pop-panel { display: none; }
html[data-brand="sendsms"] .ss-pop-title { font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-tertiary); }
html[data-brand="sendsms"] .ss-pop-note { margin: 0; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

html[data-brand="sendsms"] .ss-company { max-width: 100%; }
html[data-brand="sendsms"] .ss-company-trigger { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; min-height: 44px; padding: 0 10px 0 4px; border-radius: 12px; font-size: 16px; font-weight: 700; color: var(--text); }
html[data-brand="sendsms"] .ss-company-trigger:hover { background: var(--surface-3); }
html[data-brand="sendsms"] .ss-company-trigger .ss-ic:last-child { width: 18px; height: 18px; color: var(--text-secondary); }
html[data-brand="sendsms"] .ss-company-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-brand="sendsms"] .ss-company-panel { left: 0; width: min(340px, calc(100vw - 32px)); }
html[data-brand="sendsms"] .ss-company-option { display: grid; grid-template-columns: 36px minmax(0, 1fr) 20px; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: var(--primary-soft); color: var(--text); font-weight: 650; }
html[data-brand="sendsms"] .ss-company-option .ss-ic { color: var(--ss-accent-text); }
html[data-brand="sendsms"] .ss-company-option-name { min-width: 0; overflow-wrap: anywhere; }
html[data-brand="sendsms"] .ss-company-tile { width: 30px; height: 30px; border-radius: 8px; background: var(--surface-3); color: var(--text); display: inline-grid; place-items: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }
html[data-brand="sendsms"] .ss-company-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--surface); color: var(--ss-accent-text); display: grid; place-items: center; font-size: 13px; font-weight: 750; }
html[data-brand="sendsms"] .ss-pop-action { justify-content: flex-start; width: 100%; }

/* language pill */
html[data-brand="sendsms"] .ss-lang { position: relative; display: inline-flex; align-items: center; height: var(--ss-field-h); border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); }
html[data-brand="sendsms"] .ss-lang:hover { background: var(--surface-3); }
/* canvas Topbar: "RU · AZN" — the language code and the account currency, no globe and no arrow */
html[data-brand="sendsms"] .ss-lang select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: inherit; font: inherit; font-size: 14px; font-weight: 600; height: 100%; padding: 0 12px; border-radius: 12px; cursor: pointer; }
html[data-brand="sendsms"] .ss-lang:has(.ss-lang-cur:not([hidden])) select { padding-right: 4px; }
html[data-brand="sendsms"] .ss-lang-cur { padding-right: 12px; font-size: 14px; font-weight: 600; white-space: nowrap; pointer-events: none; }
html[data-brand="sendsms"] .ss-lang-cur[hidden] { display: none; }
html[data-brand="sendsms"] .ss-lang select:focus-visible { outline: 2px solid var(--ss-focus); outline-offset: 2px; }
html[data-brand="sendsms"] .ss-lang select option { color: var(--text); background: var(--surface); }

/* avatar + profile menu */
html[data-brand="sendsms"] .ss-avatar-trigger { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
html[data-brand="sendsms"] .ss-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--ss-accent-text); font-size: 14px; font-weight: 750; flex-shrink: 0; }
html[data-brand="sendsms"] .ss-avatar-lg { width: 44px; height: 44px; }
html[data-brand="sendsms"] .ss-badge-dot { position: absolute; top: 3px; right: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); border: 2px solid var(--surface); }
html[data-brand="sendsms"] .ss-tb-bell { position: relative; flex-shrink: 0; }
html[data-brand="sendsms"] .ss-tb-bell .ss-ic { width: 19px; height: 19px; }
html[data-brand="sendsms"] .ss-tb-bell .ss-badge-dot { top: 7px; right: 8px; width: 9px; height: 9px; }
html[data-brand="sendsms"] .ss-tb-bell .ss-badge-dot[hidden] { display: none; }
html[data-brand="sendsms"] .ss-profile-panel { right: 0; width: min(360px, calc(100vw - 32px)); gap: 16px; }
html[data-brand="sendsms"] .ss-profile-identity { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
html[data-brand="sendsms"] .ss-profile-identity div { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
html[data-brand="sendsms"] .ss-profile-identity strong { font-size: 15px; }
html[data-brand="sendsms"] .ss-profile-identity span { font-size: 13px; color: var(--text-secondary); }
html[data-brand="sendsms"] .ss-profile-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
html[data-brand="sendsms"] .ss-profile-row-stack { grid-template-columns: minmax(0, 1fr); gap: 8px; }
html[data-brand="sendsms"] .ss-profile-label { font-size: 13px; font-weight: 650; color: var(--text); }
html[data-brand="sendsms"] .ss-lang-menu select { height: 40px; min-width: 150px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; }
html[data-brand="sendsms"] .ss-seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-3); }
html[data-brand="sendsms"] .ss-seg-item { flex: 1 1 auto; min-height: 36px; padding: 6px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--text-secondary); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
html[data-brand="sendsms"] .ss-seg-item:hover { color: var(--text); }
html[data-brand="sendsms"] .ss-seg-item[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 2px 6px #13213c1a; }
html[data-brand="sendsms"] .ss-profile-links { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; border-top: 1px solid var(--border); }
html[data-brand="sendsms"] .ss-profile-link { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-size: 14px; font-weight: 550; text-align: left; text-decoration: none; cursor: pointer; }
html[data-brand="sendsms"] .ss-profile-link:hover { background: var(--surface-3); }
html[data-brand="sendsms"] .ss-profile-link .ss-ic { color: var(--text-secondary); }
html[data-brand="sendsms"] .ss-profile-signout, html[data-brand="sendsms"] .ss-profile-signout .ss-ic { color: var(--danger-strong); }

/* ---------- content ---------- */
html[data-brand="sendsms"] .content { padding: 32px 36px 56px; max-width: 1500px; }
html[data-brand="sendsms"] .content.content--operational { max-width: 1500px; }
html[data-brand="sendsms"] .page-stack { gap: 20px; }
html[data-brand="sendsms"] .page-header { margin-bottom: 6px; gap: 20px; align-items: flex-start; }
html[data-brand="sendsms"] .page-header h1 { font-size: var(--text-2xl); margin-bottom: 6px; }
html[data-brand="sendsms"] .page-header .sub, html[data-brand="sendsms"] .page-header p { font-size: 14px; color: var(--text-secondary); }
html[data-brand="sendsms"] .text-secondary { color: var(--text-secondary); }
html[data-brand="sendsms"] .text-tertiary { color: var(--text-tertiary); }

/* Page header tools (period, auto-refresh): one compact control height on one line. */
html[data-brand="sendsms"] .page-header-tools { gap: 8px; }
html[data-brand="sendsms"] .page-header-tools :is(.select, .input, .btn, select),
html[data-brand="sendsms"] .auto-refresh-period input { height: 36px; min-height: 36px; padding-top: 0; padding-bottom: 0; font-size: 13px; border-radius: 10px; }
html[data-brand="sendsms"] .auto-refresh { font-size: 13px; gap: 10px; }
html[data-brand="sendsms"] .auto-refresh-period input { width: 64px; padding-inline: 10px; border-color: var(--border-strong); }
/* Overview: recent campaigns get the full width until there is room for the table next to "needs attention". */
@media (max-width: 1599px) { html[data-brand="sendsms"] .dashboard-split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- buttons ---------- */
html[data-brand="sendsms"] .btn { min-height: var(--ss-field-h); padding: 10px 18px; border-radius: 12px; font-size: 14px; font-weight: 650; border-color: var(--border); background: var(--surface); color: var(--text); white-space: nowrap; }
html[data-brand="sendsms"] .btn:hover { background: var(--surface-3); border-color: var(--border-strong); }
html[data-brand="sendsms"] .btn svg { width: 18px; height: 18px; }
html[data-brand="sendsms"] .btn-primary { background: var(--primary); border-color: var(--primary); color: var(--text-on-primary); }
html[data-brand="sendsms"] .btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--text-on-primary); }
html[data-brand="sendsms"] .btn-danger { color: var(--danger-strong); }
html[data-brand="sendsms"] .btn-danger:hover { background: var(--danger-soft); border-color: var(--danger); }
html[data-brand="sendsms"] .btn-ghost { background: transparent; border-color: transparent; }
html[data-brand="sendsms"] .btn-ghost:hover { background: var(--surface-3); }
html[data-brand="sendsms"] .btn-sm { min-height: 36px; padding: 6px 12px; font-size: 13px; border-radius: 10px; }
html[data-brand="sendsms"] .btn-lg { min-height: 50px; padding: 12px 22px; font-size: 15px; }
html[data-brand="sendsms"] .btn-icon { width: 40px; height: 40px; min-height: 40px; padding: 8px; }
html[data-brand="sendsms"] .btn:focus-visible { outline: 2px solid var(--ss-focus); outline-offset: 2px; }
html[data-brand="sendsms"] .pagination-page.active { background: var(--primary); border-color: var(--primary); color: var(--text-on-primary); }

/* ---------- form controls ---------- */
html[data-brand="sendsms"] .field-label { font-size: 13px; font-weight: 650; }
html[data-brand="sendsms"] .field-hint { font-size: 12px; color: var(--text-tertiary); }
html[data-brand="sendsms"] .input, html[data-brand="sendsms"] .select, html[data-brand="sendsms"] .textarea { min-height: var(--ss-field-h); padding: 10px 14px; border-radius: 10px; border-color: var(--border-strong); background: var(--surface); color: var(--text); font-size: 14px; }
html[data-brand="sendsms"] .textarea { min-height: 110px; }
html[data-brand="sendsms"] .input-sm { min-height: 36px; padding: 6px 12px; font-size: 13px; }
html[data-brand="sendsms"] :is(.input, .select, .textarea):focus-visible { outline: none; }
html[data-brand="sendsms"] .input:focus, html[data-brand="sendsms"] .select:focus, html[data-brand="sendsms"] .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
html[data-brand="sendsms"] select.select, html[data-brand="sendsms"] .select { background-color: var(--surface); }
html[data-brand="sendsms"] input[type="checkbox"], html[data-brand="sendsms"] input[type="radio"] { accent-color: var(--primary); }

/* ---------- cards ---------- */
html[data-brand="sendsms"] .card { border-radius: var(--radius-lg); border-color: var(--border); box-shadow: var(--shadow-sm); }
html[data-brand="sendsms"] .card-header { padding: 20px 24px; gap: 16px; border-bottom-color: var(--border); }
html[data-brand="sendsms"] .card-header h2 { font-size: 18px; letter-spacing: -0.01em; }
html[data-brand="sendsms"] .card-header .sub { font-size: 13px; color: var(--text-secondary); }
html[data-brand="sendsms"] .card-body { padding: 20px 24px; }
html[data-brand="sendsms"] .stat-grid { gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
html[data-brand="sendsms"] .stat-card { border-radius: var(--radius-lg); padding: 22px 24px; box-shadow: var(--shadow-sm); border-color: var(--border); }
html[data-brand="sendsms"] .stat-card .label { font-size: 15px; font-weight: 500; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-brand="sendsms"] .stat-card .value { font-size: clamp(24px, 2.4vw, 34px); font-weight: 750; letter-spacing: -1px; margin-top: 8px; }
html[data-brand="sendsms"] .stat-card .icon-badge { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 14px; background: var(--primary-soft); color: var(--ss-accent-text); }
html[data-brand="sendsms"] .stat-card.ok .icon-badge { background: var(--success-soft); color: var(--success); }
html[data-brand="sendsms"] .stat-card.err .icon-badge { background: var(--danger-soft); color: var(--danger); }
html[data-brand="sendsms"] .stat-card.warn .icon-badge { background: var(--warning-soft); color: var(--warning); }

/* ---------- tables ---------- */
html[data-brand="sendsms"] table { font-size: 14px; }
html[data-brand="sendsms"] th { font-size: 11px; font-weight: 600; letter-spacing: .6px; color: var(--text-secondary); background: var(--surface-3); padding: 13px 14px; border-bottom-color: var(--border); }
html[data-brand="sendsms"] td { padding: 15px 14px; border-bottom-color: var(--border); }
html[data-brand="sendsms"] tbody tr.clickable:hover { background: var(--surface-2); }
html[data-brand="sendsms"] .card > table th:first-child, html[data-brand="sendsms"] .table-wrap > table th:first-child,
html[data-brand="sendsms"] .card > table td:first-child, html[data-brand="sendsms"] .table-wrap > table td:first-child { padding-left: 24px; }
html[data-brand="sendsms"] .card > table th:last-child, html[data-brand="sendsms"] .table-wrap > table th:last-child,
html[data-brand="sendsms"] .card > table td:last-child, html[data-brand="sendsms"] .table-wrap > table td:last-child { padding-right: 24px; }
html[data-brand="sendsms"] .pagination { padding: 12px 24px; }
/* A wide table scrolls inside its card; a soft shadow marks the edge that still has columns behind it
   (the covers move with the content, the shadows stay at the card edge). */
html[data-brand="sendsms"] :is(.table-wrap, .card:has(> table)) {
  overflow-x: auto;
  background:
    linear-gradient(to right, var(--surface) 40%, transparent) left / 32px 100% no-repeat local,
    linear-gradient(to left, var(--surface) 40%, transparent) right / 32px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, var(--ss-scroll-shadow), transparent) left / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, var(--ss-scroll-shadow), transparent) right / 14px 100% no-repeat scroll,
    var(--surface);
}
/* The header row stays translucent there so the edge shadow is visible on it too. */
html[data-brand="sendsms"] :is(.table-wrap, .card) > table th:not(.actions-cell) { background: color-mix(in srgb, var(--surface-3) 75%, transparent); }
/* The pinned actions column stays opaque: columns scrolling under it must not show through. */
html[data-brand="sendsms"] th.actions-cell { background: var(--surface-3); }

/* ---------- badges ---------- */
html[data-brand="sendsms"] .badge { font-size: 12px; font-weight: 600; letter-spacing: 0; padding: 5px 10px; border-radius: 99px; }
html[data-brand="sendsms"] .badge-warning { color: var(--warning); }

/* ---------- tabs: segmented pill, as in the mockups ---------- */
html[data-brand="sendsms"] .tabbar { display: flex; flex-wrap: wrap; gap: 5px; width: max-content; max-width: 100%; padding: 5px; margin: 0; border: 0; border-radius: 12px; background: var(--surface-3); }
html[data-brand="sendsms"] .card > .tabbar, html[data-brand="sendsms"] .card-header + .tabbar { margin: 16px 24px 0; }
html[data-brand="sendsms"] .tabbar-item { margin: 0; padding: 7px 14px; border: 0; border-radius: 9px; background: transparent; font-size: 13px; font-weight: 550; color: var(--text-secondary); white-space: nowrap; }
html[data-brand="sendsms"] .tabbar-item:hover { color: var(--text); }
html[data-brand="sendsms"] .tabbar-item.active { color: var(--text); background: var(--surface); box-shadow: 0 2px 6px #13213c1a; }
html[data-brand="sendsms"] .tabbar-item.active .count { background: var(--primary-soft); color: var(--ss-accent-text); }

/* On narrow screens the tabs become one select (js/responsiveTabs.js): no pill around it. */
@media (max-width: 600px) {
  html[data-brand="sendsms"] .tabbar.responsive-tabs { display: block; width: auto; padding: 0; background: transparent; border-radius: 0; }
}

/* ---------- toolbar / search ---------- */
html[data-brand="sendsms"] .toolbar { gap: 10px; padding: 16px 24px; }
html[data-brand="sendsms"] .search-input { max-width: none; }
html[data-brand="sendsms"] .search-input svg { left: 14px; width: 18px; height: 18px; }
html[data-brand="sendsms"] .search-input input { padding-left: 42px; }

/* ---------- empty / loading ---------- */
html[data-brand="sendsms"] .empty-state { padding: 56px 24px; }
html[data-brand="sendsms"] .empty-state .icon { width: 72px; height: 72px; border-radius: 22px; background: var(--primary-soft); color: var(--ss-accent-text); display: grid; place-items: center; }
html[data-brand="sendsms"] .empty-state .icon svg { width: 30px; height: 30px; }
html[data-brand="sendsms"] .empty-state h3 { font-size: 18px; }

/* ---------- overlays, tooltips, toasts ---------- */
html[data-brand="sendsms"] .drawer, html[data-brand="sendsms"] .modal { background: var(--surface); color: var(--text); border-color: var(--border); }
html[data-brand="sendsms"] .modal { border-radius: 20px; }
html[data-brand="sendsms"] .drawer-header, html[data-brand="sendsms"] .modal-header { padding: 20px 24px; }
html[data-brand="sendsms"] .drawer-body, html[data-brand="sendsms"] .modal-body { padding: 20px 24px; }
html[data-brand="sendsms"] .drawer-footer, html[data-brand="sendsms"] .modal-footer { padding: 16px 24px; }
html[data-brand="sendsms"] .overlay-backdrop { background: var(--ss-backdrop); }
html[data-brand="sendsms"] .toast, html[data-brand="sendsms"] .tip-bubble, html[data-brand="sendsms"] .copyable::after, html[data-brand="sendsms"] .chart-tooltip { background: var(--ss-tooltip-bg); color: var(--ss-tooltip-text); }
html[data-brand="sendsms"] .flow-page, html[data-brand="sendsms"] #security-overlay { background: var(--bg); }
html[data-brand="sendsms"] .flow-topbar, html[data-brand="sendsms"] .flow-footer { background: var(--surface); border-color: var(--border); }

/* Shared components with fixed light colours: theme-aware in SendSMS. */
html[data-brand="sendsms"][data-theme="dark"] .step.done .step-num { color: var(--text-on-primary); }
html[data-brand="sendsms"] .mfa-methods { background: var(--surface-3); }
html[data-brand="sendsms"] .mfa-methods__legend { color: var(--text-secondary); }
html[data-brand="sendsms"] .mfa-methods .mfa-methods__option { background: var(--surface); border-color: var(--border); color: var(--text); }
html[data-brand="sendsms"] .mfa-methods__option::before { border-color: var(--border-strong); }
html[data-brand="sendsms"] .mfa-methods .mfa-methods__option[aria-pressed="true"] { background: var(--primary-soft); border-color: var(--primary); }
html[data-brand="sendsms"] .mfa-methods__option[aria-pressed="true"]::before { border-color: var(--primary); background: var(--surface); }
html[data-brand="sendsms"] .profile-avatar { background: var(--primary-soft); color: var(--ss-accent-text); }
html[data-brand="sendsms"] .profile-signout { color: var(--danger-strong); }
html[data-brand="sendsms"] .language-control select { background: var(--surface); color: var(--text); border-color: var(--border-strong); }

/* ---------- sign-in screen ---------- */
html[data-brand="sendsms"] .login-screen { background: var(--bg); }
html[data-brand="sendsms"] .login-card { border-radius: 22px; box-shadow: var(--shadow-md); padding: 36px 34px; max-width: 420px; }
html[data-brand="sendsms"] .login-brand { margin-bottom: 30px; }
html[data-brand="sendsms"] .login-wordmark[data-ss-logo] .ss-logo-text { font-size: 24px; }

/* ---------- cabinet screens: shared tiles and page head (canvas) ---------- */
html[data-brand="sendsms"] .ss-page-head { align-items: center; }
html[data-brand="sendsms"] .ss-page-head .actions .btn { white-space: nowrap; }
html[data-brand="sendsms"] .ss-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
html[data-brand="sendsms"] .ss-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
html[data-brand="sendsms"] .ss-kpi-label { font-size: 14px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-brand="sendsms"] .ss-kpi-value { font-size: 30px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: normal; word-break: keep-all; }
html[data-brand="sendsms"] .ss-kpi-note { font-size: 13px; color: var(--text-secondary); }
html[data-brand="sendsms"] .ss-kpi-note b { color: var(--text); font-weight: 650; }

/* Status: coloured dot + one word (shared by all SendSMS screens) */
html[data-brand="sendsms"] .ss-status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--surface-3); color: var(--text-secondary); }
html[data-brand="sendsms"] .ss-status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
html[data-brand="sendsms"] .ss-status[data-tone="run"] { background: var(--success-soft); color: var(--success-strong); }
html[data-brand="sendsms"] .ss-status[data-tone="plan"] { background: var(--info-soft); color: var(--info); }
html[data-brand="sendsms"] .ss-status[data-tone="done"] { color: var(--text); }
html[data-brand="sendsms"] .ss-status[data-tone="warn"] { background: var(--warning-soft); color: var(--warning); }
html[data-brand="sendsms"] .ss-status[data-tone="fail"] { background: var(--danger-soft); color: var(--danger-strong); }
/* Segmented choice and compact refresh */
html[data-brand="sendsms"] .ss-segment { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-3); }
html[data-brand="sendsms"] .ss-segment button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--text-secondary); font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; }
html[data-brand="sendsms"] .ss-segment button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px #13213c1f; }
html[data-brand="sendsms"] .ss-refresh { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-secondary); }
html[data-brand="sendsms"] .ss-refresh-time { white-space: nowrap; margin-right: 4px; font-variant-numeric: tabular-nums; }
html[data-brand="sendsms"] .ss-icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); cursor: pointer; list-style: none; }
html[data-brand="sendsms"] .ss-icon-btn::-webkit-details-marker { display: none; }
html[data-brand="sendsms"] .ss-icon-btn:hover { background: var(--surface-3); }
html[data-brand="sendsms"] .ss-icon-btn .ss-ic { width: 18px; height: 18px; }
html[data-brand="sendsms"] .ss-refresh[aria-busy="true"] [data-refresh-now] .ss-ic { animation: ss-spin 1s linear infinite; }
@keyframes ss-spin { to { transform: rotate(360deg); } }
html[data-brand="sendsms"] .ss-refresh-panel { right: 0; width: 250px; gap: 12px; }
html[data-brand="sendsms"] .ss-refresh-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); white-space: nowrap; }
html[data-brand="sendsms"] .ss-refresh-row .input { width: 72px; height: 36px; min-height: 36px; padding: 0 10px; }
html[data-brand="sendsms"] .ss-page-head .actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Обзор (canvas Overview) */
html[data-brand="sendsms"] .ssov-skel { display: block; border-radius: 8px; max-width: 100%; }
html[data-brand="sendsms"] .ssov-admission:empty { display: none; }
html[data-brand="sendsms"] .ssov-adm { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; font-size: 14px; font-weight: 600; background: var(--success-soft); color: var(--success-strong); }
html[data-brand="sendsms"] .ssov-adm[data-tone="warn"] { background: var(--warning-soft); color: var(--warning); }
html[data-brand="sendsms"] .ssov-adm[data-tone="plan"] { background: var(--info-soft); color: var(--info); }
html[data-brand="sendsms"] .ssov-adm > span { flex: 1; min-width: 0; }
html[data-brand="sendsms"] .ssov-adm-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 650; text-decoration: underline; cursor: pointer; white-space: nowrap; }
html[data-brand="sendsms"] .ssov-kpi { position: relative; }
html[data-brand="sendsms"] .ssov-kpi .ss-kpi-value small { font-size: 16px; font-weight: 600; color: var(--text-secondary); letter-spacing: 0; }
html[data-brand="sendsms"] .ssov-tile-btn { position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--ss-accent-text); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; white-space: nowrap; }
html[data-brand="sendsms"] .ssov-tile-btn:hover { background: var(--surface-3); }
html[data-brand="sendsms"] .ssov-tile-btn .ss-ic { width: 15px; height: 15px; stroke-width: 2.2; }
html[data-brand="sendsms"] .ssov-kpi:has(.ssov-tile-btn) .ss-kpi-label { padding-right: 120px; }
html[data-brand="sendsms"] .ssov-trend[data-trend="up"] { color: var(--success-strong); font-weight: 600; }
html[data-brand="sendsms"] .ssov-trend[data-trend="down"] { color: var(--danger-strong); font-weight: 600; }
html[data-brand="sendsms"] .ssov-actions { display: flex; gap: 12px; flex-wrap: wrap; }
html[data-brand="sendsms"] .ssov-actions .btn { white-space: nowrap; }
html[data-brand="sendsms"] .ssov-actions .ss-ic { width: 18px; height: 18px; }
html[data-brand="sendsms"] .ssov-split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
html[data-brand="sendsms"] .ssov-chart-card { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
html[data-brand="sendsms"] .ssov-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
html[data-brand="sendsms"] .ssov-card-head h2, html[data-brand="sendsms"] .ssov-att-card h2 { margin: 0; font-size: 18px; }
html[data-brand="sendsms"] .ssov-reports { border-color: transparent; color: var(--text-secondary); }
html[data-brand="sendsms"] .ssov-bars { display: flex; align-items: flex-end; gap: 12px; height: 196px; }
html[data-brand="sendsms"] .ssov-bars.is-dense { gap: 3px; }
html[data-brand="sendsms"] .ssov-bar-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 10px; height: 100%; }
html[data-brand="sendsms"] .ssov-bar { display: block; border-radius: 4px 4px 0 0; background: var(--ssov-bar-soft); }
html[data-brand="sendsms"] .ssov-bar-col.is-last .ssov-bar { background: var(--primary); }
html[data-brand="sendsms"] .ssov-bar.skeleton { background: var(--surface-3); }
html[data-brand="sendsms"] .ssov-bar-col:has(.skeleton) .ssov-bar-day { border-top-color: transparent; }
html[data-brand="sendsms"] .ssov-bar-day { font-size: 12px; color: var(--text-secondary); text-align: center; white-space: nowrap; border-top: 1px solid var(--border); padding-top: 8px; line-height: 1; }
html[data-brand="sendsms"] .ssov-chart-note, html[data-brand="sendsms"] .ssov-chart-empty { margin: 8px 0 0; font-size: 13px; color: var(--text-secondary); }
html[data-brand="sendsms"] .ssov-att-card { padding: 22px; display: flex; flex-direction: column; gap: 4px; }
html[data-brand="sendsms"] .ssov-att { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border); }
html[data-brand="sendsms"] .ssov-att:last-child { border-bottom: 0; }
html[data-brand="sendsms"] .ssov-att > i { width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; flex-shrink: 0; background: var(--primary-soft); color: var(--ss-accent-text); }
html[data-brand="sendsms"] .ssov-att > i[data-tone="warn"] { background: var(--warning-soft); color: var(--warning); }
html[data-brand="sendsms"] .ssov-att > i[data-tone="plan"] { background: var(--info-soft); color: var(--info); }
html[data-brand="sendsms"] .ssov-att > i[data-tone="fail"] { background: var(--danger-soft); color: var(--danger-strong); }
html[data-brand="sendsms"] .ssov-att > i .ss-ic { width: 19px; height: 19px; }
html[data-brand="sendsms"] .ssov-att-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
html[data-brand="sendsms"] .ssov-att-text b { font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
html[data-brand="sendsms"] .ssov-att-text span { font-size: 13px; color: var(--text-secondary); }
html[data-brand="sendsms"] .ssov-att-link { padding: 0; border: 0; background: none; color: var(--ss-accent-text); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; white-space: nowrap; }
html[data-brand="sendsms"] .ssov-att-link:hover { text-decoration: underline; }
html[data-brand="sendsms"] .ssov-att-empty { display: flex; align-items: center; gap: 10px; padding: 18px 0 8px; color: var(--success-strong); font-weight: 600; }
html[data-brand="sendsms"] .ssov-page .table-wrap > table { min-width: 760px; }
html[data-brand="sendsms"] .ssov-page .table-wrap > table td:first-child { min-width: 260px; }
html[data-brand="sendsms"] .ssov-col-delivery { width: 26%; }
html[data-brand="sendsms"] .ssov-when { white-space: nowrap; }
html[data-brand="sendsms"] .ssov-muted { color: var(--text-tertiary); }
html[data-brand="sendsms"] .ssov-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
html[data-brand="sendsms"] .ssov-section-head h2 { margin: 0; font-size: 18px; }
html[data-brand="sendsms"] .ssov-latest .ssov-section-head { margin: 0; padding: 20px 24px 14px; }
html[data-brand="sendsms"] .ssov-head-tools { display: flex; gap: 8px; flex-wrap: wrap; }
html[data-brand="sendsms"] .ssov-section-head .btn { white-space: nowrap; }
html[data-brand="sendsms"] .ss-csv-btn .ss-ic { width: 16px; height: 16px; }
@media (max-width: 1100px) { html[data-brand="sendsms"] .ssov-split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  html[data-brand="sendsms"] .ssov-kpi:has(.ssov-tile-btn) .ss-kpi-label { padding-right: 0; }
  html[data-brand="sendsms"] .ssov-tile-btn { position: static; align-self: flex-start; order: 9; margin-top: 6px; }
  html[data-brand="sendsms"] .ssov-bars { gap: 6px; height: 170px; }
  html[data-brand="sendsms"] .ssov-bars.is-dense { gap: 2px; }
  html[data-brand="sendsms"] .ssov-chart-card, html[data-brand="sendsms"] .ssov-att-card { padding: 18px 16px; }
  html[data-brand="sendsms"] .ssov-latest .ssov-section-head { padding: 16px 16px 12px; }
}

/* Кампании */
html[data-brand="sendsms"] .sscp-tabs { margin: 0; }
html[data-brand="sendsms"] .sscp-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
html[data-brand="sendsms"] .sscp-search { flex: 0 1 320px; min-width: 220px; max-width: 100%; }
html[data-brand="sendsms"] .sscp-search .input { height: 44px; }
html[data-brand="sendsms"] .sscp-select { width: 180px; }
html[data-brand="sendsms"] .sscp-card { overflow: hidden; }
html[data-brand="sendsms"] .sscp-table td { vertical-align: middle; }
html[data-brand="sendsms"] .sscp-table .sscp-actions { width: 56px; min-width: 56px; padding-left: 8px; padding-right: 16px; text-align: right; box-shadow: none; }
/* Select in the look of the search field next to it: same height, radius, chevron, theme colours. */
html[data-brand="sendsms"] .ss-select { position: relative; display: inline-flex; align-items: center; min-width: 0; }
html[data-brand="sendsms"] .ss-select select { appearance: none; -webkit-appearance: none; width: 100%; height: 44px; padding: 0 40px 0 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
html[data-brand="sendsms"] .ss-select select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
html[data-brand="sendsms"] .ss-select select option { background: var(--surface); color: var(--text); }
html[data-brand="sendsms"] .ss-select .ss-ic { position: absolute; right: 12px; width: 18px; height: 18px; pointer-events: none; color: var(--text-secondary); }
html[data-brand="sendsms"] .sscp-table { min-width: 900px; }
html[data-brand="sendsms"] .sscp-table td:first-child { min-width: 260px; }
@media (max-width: 640px) {
  html[data-brand="sendsms"] .ss-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  html[data-brand="sendsms"] .ss-kpi { padding: 14px 16px; }
  html[data-brand="sendsms"] .ss-kpi-label { white-space: normal; font-size: 13px; }
  html[data-brand="sendsms"] .ss-kpi-value { font-size: 22px; }
  html[data-brand="sendsms"] .sscp-search, html[data-brand="sendsms"] .sscp-select { flex: 1 1 100%; width: 100%; }
  html[data-brand="sendsms"] .ss-kpis > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  html[data-brand="sendsms"] .sscp-table .actions-cell { position: relative; box-shadow: none; }
}
html[data-brand="sendsms"] .sscp-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
html[data-brand="sendsms"] .sscp-name > div { display: flex; flex-direction: column; min-width: 0; }
html[data-brand="sendsms"] .sscp-name b { font-weight: 700; color: var(--text); }
html[data-brand="sendsms"] .sscp-name span:not(.sscp-chip) { font-size: 13px; color: var(--text-secondary); }
html[data-brand="sendsms"] .sscp-chip { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0; background: var(--primary-soft); color: var(--ss-accent-text); }
html[data-brand="sendsms"] .sscp-chip[data-ch="whatsapp"] { background: var(--success-soft); color: var(--success-strong); }
html[data-brand="sendsms"] .sscp-chip:is([data-ch="email"], [data-ch="rcs"], [data-ch="push"]) { background: var(--info-soft); color: var(--info); }
html[data-brand="sendsms"] .sscp-progress { display: flex; flex-direction: column; gap: 6px; min-width: 160px; }
html[data-brand="sendsms"] .sscp-bar { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
html[data-brand="sendsms"] .sscp-bar i { display: block; height: 6px; border-radius: 99px; background: var(--primary); }
html[data-brand="sendsms"] .sscp-progress[data-tone="done"] .sscp-bar i { background: var(--success); }
html[data-brand="sendsms"] .sscp-progress[data-tone="warn"] .sscp-bar i { background: var(--warning); }
html[data-brand="sendsms"] .sscp-progress span, html[data-brand="sendsms"] .sscp-muted { font-size: 13px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
html[data-brand="sendsms"] .sscp-date { white-space: nowrap; color: var(--text-secondary); }

/* Карточка кампании (drawer in the SendSMS cabinet) */
html[data-brand="sendsms"] .drawer.sscd-drawer { width: min(1180px, 100vw); max-width: 100vw; background: var(--bg); }
html[data-brand="sendsms"] .sscd-drawer .drawer-body { padding: 20px 28px 32px; }
html[data-brand="sendsms"] .sscd-tools { display: flex; justify-content: flex-end; margin-bottom: 12px; }
html[data-brand="sendsms"] .sscd-page { display: flex; flex-direction: column; gap: 18px; }
html[data-brand="sendsms"] .sscd-head { padding: 22px 24px; display: flex; flex-direction: column; gap: 20px; overflow: visible; }
html[data-brand="sendsms"] .sscd-head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
html[data-brand="sendsms"] .sscd-title { display: flex; gap: 16px; align-items: center; min-width: 0; }
html[data-brand="sendsms"] .sscd-title > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
html[data-brand="sendsms"] .sscd-chip { width: 52px; height: 52px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex-shrink: 0; background: var(--primary-soft); color: var(--ss-accent-text); }
html[data-brand="sendsms"] .sscd-chip[data-ch="whatsapp"] { background: var(--success-soft); color: var(--success-strong); }
html[data-brand="sendsms"] .sscd-name { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
html[data-brand="sendsms"] .sscd-name h1 { margin: 0; font-size: 26px; }
html[data-brand="sendsms"] .sscd-meta { font-size: 14px; color: var(--text-secondary); }
html[data-brand="sendsms"] .sscd-pause { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--warning); }
html[data-brand="sendsms"] .sscd-pause .ss-ic { width: 16px; height: 16px; }
html[data-brand="sendsms"] .sscd-actions { display: flex; gap: 10px; flex-wrap: wrap; }
html[data-brand="sendsms"] .sscd-actions .btn { white-space: nowrap; min-height: 40px; }
html[data-brand="sendsms"] .sscd-path { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
html[data-brand="sendsms"] .sscd-path li { position: relative; display: flex; flex-direction: column; gap: 2px; padding-top: 38px; min-width: 0; }
html[data-brand="sendsms"] .sscd-path li::before { content: ''; position: absolute; top: 14px; left: 34px; right: 6px; height: 2px; background: var(--border); }
html[data-brand="sendsms"] .sscd-path li:last-child::before { display: none; }
html[data-brand="sendsms"] .sscd-path li[data-state="done"]::before { background: var(--success); }
html[data-brand="sendsms"] .sscd-dot { position: absolute; top: 0; left: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--surface-3); color: var(--text-secondary); }
html[data-brand="sendsms"] .sscd-dot .ss-ic { width: 16px; height: 16px; }
html[data-brand="sendsms"] [data-state="done"] .sscd-dot { background: var(--success); color: var(--surface); }
html[data-brand="sendsms"] [data-state="now"] .sscd-dot { background: var(--primary); color: var(--text-on-primary); }
html[data-brand="sendsms"] .sscd-path b { font-size: 14px; }
html[data-brand="sendsms"] .sscd-path [data-state="next"] b { color: var(--text-secondary); font-weight: 600; }
html[data-brand="sendsms"] .sscd-path small { font-size: 12px; color: var(--text-secondary); }
html[data-brand="sendsms"] .sscd-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
html[data-brand="sendsms"] .sscd-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 18px; align-items: start; }
html[data-brand="sendsms"] .sscd-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
html[data-brand="sendsms"] .sscd-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
html[data-brand="sendsms"] .sscd-card { padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; overflow: visible; }
html[data-brand="sendsms"] .sscd-card h2 { margin: 0 0 8px; font-size: 18px; }
html[data-brand="sendsms"] .sscd-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
html[data-brand="sendsms"] .sscd-card-head h2 { margin: 0; }
html[data-brand="sendsms"] .sscd-card-head span { font-size: 13px; color: var(--text-secondary); }
html[data-brand="sendsms"] .sscd-kv { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
html[data-brand="sendsms"] .sscd-kv:last-child { border-bottom: 0; }
html[data-brand="sendsms"] .sscd-kv > span:first-child { color: var(--text-secondary); display: inline-flex; align-items: center; gap: 8px; }
html[data-brand="sendsms"] .sscd-kv > span:last-child { text-align: right; }
html[data-brand="sendsms"] .sscd-fate-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; gap: 2px; background: var(--surface-3); margin-bottom: 8px; }
html[data-brand="sendsms"] .sscd-fate { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
html[data-brand="sendsms"] .sscd-sq { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
html[data-brand="sendsms"] [data-k="delivered"] { background: var(--success); }
html[data-brand="sendsms"] [data-k="submitted"] { background: var(--info); }
html[data-brand="sendsms"] [data-k="queued"] { background: var(--border-strong); }
html[data-brand="sendsms"] [data-k="failed"] { background: var(--danger); }
html[data-brand="sendsms"] [data-k="unknown"] { background: var(--warning); }
html[data-brand="sendsms"] .sscd-fate-bar i { display: block; height: 100%; }
html[data-brand="sendsms"] .sscd-link { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--ss-accent-text); text-decoration: none; }
html[data-brand="sendsms"] .sscd-before { padding: 18px 22px; display: flex; gap: 16px; align-items: center; }
html[data-brand="sendsms"] .sscd-before > .ss-ic { width: 48px; height: 48px; padding: 12px; box-sizing: border-box; border-radius: 14px; background: var(--info-soft); color: var(--info); }
html[data-brand="sendsms"] .sscd-before div { display: flex; flex-direction: column; gap: 2px; }
html[data-brand="sendsms"] .sscd-before b { font-size: 16px; }
html[data-brand="sendsms"] .sscd-before span { font-size: 14px; color: var(--text-secondary); }
html[data-brand="sendsms"] .sscd-messages { padding: 16px 20px; display: flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none; }
html[data-brand="sendsms"] .sscd-messages:hover { border-color: var(--border-strong); }
html[data-brand="sendsms"] .sscd-messages > .ss-ic:first-child { width: 40px; height: 40px; padding: 10px; box-sizing: border-box; border-radius: 12px; background: var(--surface-3); }
html[data-brand="sendsms"] .sscd-messages > span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
html[data-brand="sendsms"] .sscd-messages > span span { font-size: 14px; color: var(--text-secondary); }
html[data-brand="sendsms"] .sscd-messages > .ss-ic:last-child { color: var(--text-secondary); }
html[data-brand="sendsms"] .sscd-phone { border-radius: 18px; background: var(--surface-3); padding: 14px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
html[data-brand="sendsms"] .sscd-from { font-size: 12px; font-weight: 700; color: var(--text-secondary); }
html[data-brand="sendsms"] .sscd-bubble { align-self: flex-start; max-width: 100%; background: var(--surface); border-radius: 16px 16px 16px 4px; padding: 10px 12px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
html[data-brand="sendsms"] .sscd-ev { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
html[data-brand="sendsms"] .sscd-ev:last-child { border-bottom: 0; }
html[data-brand="sendsms"] .sscd-ev span:first-child { color: var(--text-secondary); font-variant-numeric: tabular-nums; }
@media (max-width: 980px) {
  html[data-brand="sendsms"] .sscd-grid, html[data-brand="sendsms"] .sscd-pair { grid-template-columns: minmax(0, 1fr); }
  html[data-brand="sendsms"] .sscd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-brand="sendsms"] .sscd-drawer .drawer-body { padding: 16px; }
  html[data-brand="sendsms"] .sscd-path { grid-auto-flow: row; grid-auto-columns: auto; }
  html[data-brand="sendsms"] .sscd-path li { padding: 0 0 0 40px; min-height: 36px; }
  html[data-brand="sendsms"] .sscd-path li::before { top: 32px; left: 13px; right: auto; bottom: -6px; width: 2px; height: auto; }
  html[data-brand="sendsms"] .sscd-fate { grid-template-columns: minmax(0, 1fr); }
}

/* Сообщения */
html[data-brand="sendsms"] .ss-segment button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px #13213c1f; }
html[data-brand="sendsms"] .ssme-filters { padding: 16px; display: flex; flex-direction: column; gap: 12px; overflow: visible; }
html[data-brand="sendsms"] .ssme-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
html[data-brand="sendsms"] .ssme-search { flex: 1 1 280px; max-width: none; }
html[data-brand="sendsms"] .ssme-search .input { height: 44px; }
html[data-brand="sendsms"] .ssme-select { width: 190px; }
html[data-brand="sendsms"] .ssme-quick button { min-height: 36px; }
html[data-brand="sendsms"] .ssme-more summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text); list-style: none; padding: 4px 0; }
html[data-brand="sendsms"] .ssme-more summary::-webkit-details-marker { display: none; }
html[data-brand="sendsms"] .ssme-more summary .ss-ic { width: 16px; height: 16px; transition: transform .15s; }
html[data-brand="sendsms"] .ssme-more[open] summary .ss-ic { transform: rotate(180deg); }
html[data-brand="sendsms"] .ssme-more-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 10px; align-items: end; }
html[data-brand="sendsms"] .ssme-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; min-width: 0; }
html[data-brand="sendsms"] .ssme-field .input, html[data-brand="sendsms"] .ssme-field .ss-select { width: 100%; }
html[data-brand="sendsms"] .ssme-more-actions { grid-column: 1 / -1; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
html[data-brand="sendsms"] .ssme-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
html[data-brand="sendsms"] .ssme-note { margin-top: 8px; font-size: 12px; color: var(--text-secondary); }
html[data-brand="sendsms"] .ssme-chips { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--text-secondary); }
html[data-brand="sendsms"] .ssme-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: 99px; background: var(--primary-soft); color: var(--ss-accent-text); font-weight: 600; }
html[data-brand="sendsms"] .ssme-chip button { width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
html[data-brand="sendsms"] .ssme-chip .ss-ic { width: 14px; height: 14px; }
html[data-brand="sendsms"] .ssme-active { display: none; }
html[data-brand="sendsms"] .ssme-reset { margin-left: auto; }
html[data-brand="sendsms"] .ssme-reset { font-size: 13px; white-space: nowrap; }
html[data-brand="sendsms"] .ssme-split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
html[data-brand="sendsms"] .ssme-table { min-width: 0; }
html[data-brand="sendsms"] .ssme-table table { min-width: 640px; }
html[data-brand="sendsms"] .ssme-table tr.is-selected td { background: var(--primary-soft); }
html[data-brand="sendsms"] .ssme-to b { display: block; font-weight: 600; white-space: nowrap; }
html[data-brand="sendsms"] .ssme-to span { font-size: 12px; color: var(--text-secondary); }
html[data-brand="sendsms"] .ssme-src { max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-brand="sendsms"] .ssme-at { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text-secondary); }
html[data-brand="sendsms"] .ssme-count { padding: 0 24px 12px; font-size: 12px; color: var(--text-secondary); }
html[data-brand="sendsms"] .ssme-panel { padding: 20px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--shell-topbar-h) + 16px); overflow: visible; }
html[data-brand="sendsms"] .ssme-pick { margin: 0; color: var(--text-secondary); font-size: 14px; }
html[data-brand="sendsms"] .ssme-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
html[data-brand="sendsms"] .ssme-panel-head h2 { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
html[data-brand="sendsms"] .ssme-text { border-radius: 14px; background: var(--surface-3); padding: 12px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
html[data-brand="sendsms"] .ssme-id { font-family: var(--font-mono); font-size: 13px; }
html[data-brand="sendsms"] .ssme-path-title { font-size: 14px; }
html[data-brand="sendsms"] .ssme-path { list-style: none; margin: 10px 0 0; padding: 0 0 0 16px; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
html[data-brand="sendsms"] .ssme-path li { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
html[data-brand="sendsms"] .ssme-path li > span:last-child { font-size: 12px; color: var(--text-secondary); }
html[data-brand="sendsms"] .ssme-path .ss-status { align-self: flex-start; }
@media (max-width: 1180px) { html[data-brand="sendsms"] .ssme-split { grid-template-columns: minmax(0, 1fr); } html[data-brand="sendsms"] .ssme-panel { position: static; } }
@media (max-width: 760px) {
  html[data-brand="sendsms"] .ssme-more-grid { grid-template-columns: minmax(0, 1fr); }
  html[data-brand="sendsms"] .ssme-select { flex: 1 1 100%; width: 100%; }
  html[data-brand="sendsms"] .ssme-quick { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  html[data-brand="sendsms"] .ssme-quick button { padding: 0 6px; font-size: 13px; }
}

/* Отправить сообщение */
html[data-brand="sendsms"] .ss-req { color: var(--danger); margin-left: 3px; }
html[data-brand="sendsms"] .ssqs-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
html[data-brand="sendsms"] .ssqs-form { padding: 24px; display: flex; flex-direction: column; gap: 20px; min-width: 0; overflow: visible; }
html[data-brand="sendsms"] .ssqs-account { display: flex; gap: 10px; align-items: baseline; font-size: 14px; color: var(--text-secondary); }
html[data-brand="sendsms"] .ssqs-account b { color: var(--text); }
html[data-brand="sendsms"] .ssqs-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
html[data-brand="sendsms"] .ssqs-field > label, html[data-brand="sendsms"] .ssqs-label { font-size: 14px; font-weight: 600; }
html[data-brand="sendsms"] .ssqs-field .input, html[data-brand="sendsms"] .ssqs-field .ss-select { width: 100%; }
html[data-brand="sendsms"] .ssqs-field .input { height: 44px; }
html[data-brand="sendsms"] .ssqs-hint { font-size: 13px; color: var(--text-secondary); }
html[data-brand="sendsms"] .ssqs-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
html[data-brand="sendsms"] .ssqs-text-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
html[data-brand="sendsms"] .ssqs-mode label { position: relative; display: inline-flex; }
html[data-brand="sendsms"] .ssqs-mode input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
html[data-brand="sendsms"] .ssqs-mode span { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
html[data-brand="sendsms"] .ssqs-mode input:checked + span { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px #13213c1f; }
html[data-brand="sendsms"] .ssqs-mode input:focus-visible + span { outline: 2px solid var(--ss-focus); outline-offset: 1px; }
html[data-brand="sendsms"] .ssqs-mode input:disabled + span { opacity: .5; }
html[data-brand="sendsms"] .ssqs-text textarea { min-height: 150px; height: auto; resize: vertical; }
html[data-brand="sendsms"] .ssqs-text { display: flex; flex-direction: column; gap: 6px; }
html[data-brand="sendsms"] .ssqs-template { display: flex; flex-direction: column; gap: 12px; }
html[data-brand="sendsms"] .ssqs-vars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
html[data-brand="sendsms"] .ssqs-rendered { min-height: 48px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
html[data-brand="sendsms"] .ssqs-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
html[data-brand="sendsms"] .ssqs-actions .btn { white-space: nowrap; }
html[data-brand="sendsms"] .ssqs-actions .ss-ic { width: 18px; height: 18px; }
html[data-brand="sendsms"] .ssqs-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
html[data-brand="sendsms"] .ssqs-card { padding: 20px; display: flex; flex-direction: column; gap: 12px; overflow: visible; }
html[data-brand="sendsms"] .ssqs-card h2 { margin: 0; font-size: 17px; }
html[data-brand="sendsms"] .ssqs-from { text-align: center; min-height: 16px; }
html[data-brand="sendsms"] .sscd-bubble.is-empty { color: var(--text-tertiary); }
html[data-brand="sendsms"] .ssqs-quote { font-size: 14px; }
html[data-brand="sendsms"] .ssqs-note { margin: 0; display: flex; gap: 8px; font-size: 13px; color: var(--text-secondary); }
html[data-brand="sendsms"] .ssqs-note .ss-ic { width: 16px; height: 16px; margin-top: 2px; }
@media (max-width: 1100px) { html[data-brand="sendsms"] .ssqs-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { html[data-brand="sendsms"] .ssqs-two, html[data-brand="sendsms"] .ssqs-vars { grid-template-columns: minmax(0, 1fr); } html[data-brand="sendsms"] .ssqs-form { padding: 16px; } }

/* Отчёты */
html[data-brand="sendsms"] .ssrp-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
html[data-brand="sendsms"] .ssrp-card { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; overflow: visible; }
html[data-brand="sendsms"] .ssrp-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
html[data-brand="sendsms"] .ssrp-card-head h2 { margin: 0; font-size: 18px; }
html[data-brand="sendsms"] .ssrp-card-head span { font-size: 13px; color: var(--text-secondary); }
html[data-brand="sendsms"] .ssrp-card-head > div { display: flex; flex-direction: column; gap: 2px; }
html[data-brand="sendsms"] .ssrp-text { margin: 0; font-size: 14px; color: var(--text-secondary); }
html[data-brand="sendsms"] .ssrp-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
html[data-brand="sendsms"] .ssrp-actions .btn { white-space: nowrap; }
html[data-brand="sendsms"] .ssrp-actions .ss-ic { width: 18px; height: 18px; }
html[data-brand="sendsms"] .ssrp-actions .sscd-link { margin: 0; }
html[data-brand="sendsms"] .ssrp-channel { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--border); }
html[data-brand="sendsms"] .ssrp-channel:last-child { border-bottom: 0; }
html[data-brand="sendsms"] .ssrp-channel-head { display: flex; justify-content: space-between; font-size: 14px; }
html[data-brand="sendsms"] .ssrp-channel-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--text-secondary); }
html[data-brand="sendsms"] .ssrp-channel-meta span { display: inline-flex; align-items: center; gap: 6px; }
html[data-brand="sendsms"] .ssrp-campaigns { padding: 20px 0 8px; }
html[data-brand="sendsms"] .ssrp-campaigns .ssrp-card-head { padding: 0 24px; }
html[data-brand="sendsms"] .ssrp-campaigns table { min-width: 920px; }
html[data-brand="sendsms"] .ssrp-campaigns td:first-child { min-width: 240px; }
html[data-brand="sendsms"] .ssrp-campaigns .btn { white-space: nowrap; text-decoration: none; }
html[data-brand="sendsms"] .ssrp-muted { color: var(--text-secondary); font-size: 13px; }
html[data-brand="sendsms"] .ssrp-total td { font-weight: 700; background: var(--surface-2); }
html[data-brand="sendsms"] .ssrp-empty { color: var(--text-secondary); text-align: center; padding: 24px; }
@media (max-width: 1100px) { html[data-brand="sendsms"] .ssrp-split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- sign-in and second step (Claude Design canvas: Main, Mfa) ---------- */
html[data-brand="sendsms"] .ss-auth { min-height: 100vh; display: flex; flex-wrap: wrap; background: var(--surface); color: var(--text); font-size: 15px; }
html[data-brand="sendsms"] .ss-auth-brand { flex: 1 1 520px; min-width: 0; background: var(--primary-soft); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 48px 56px; }
html[data-brand="sendsms"] .ss-auth-logo { display: flex; align-items: center; gap: 12px; }
html[data-brand="sendsms"] .ss-auth-logo .ss-logo-bubble { width: 40px; height: 32px; border-radius: 10px; }
html[data-brand="sendsms"] .ss-auth-logo .ss-logo-text { font-size: 22px; }
html[data-brand="sendsms"] .ss-auth-hero { display: flex; flex-direction: column; gap: 26px; max-width: 520px; }
html[data-brand="sendsms"] .ss-auth-hero h1 { margin: 0; font-size: 44px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
html[data-brand="sendsms"] [data-ss-auth="mfa"] .ss-auth-hero h1 { font-size: 40px; line-height: 1.12; }
html[data-brand="sendsms"] .ss-auth-hero > p { margin: 0; font-size: 17px; color: var(--text-secondary); }
html[data-brand="sendsms"] .ss-auth-shield { width: 72px; height: 72px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--ss-accent-text); }
html[data-brand="sendsms"] .ss-auth-shield .ss-ic { width: 34px; height: 34px; }
html[data-brand="sendsms"] .ss-auth-sample { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-md); }
html[data-brand="sendsms"] .ss-auth-sample-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
html[data-brand="sendsms"] .ss-auth-sample-head span { font-size: 13px; font-weight: 600; color: var(--success-strong); background: var(--success-soft); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
html[data-brand="sendsms"] .ss-auth-sample-bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
html[data-brand="sendsms"] .ss-auth-sample-bar i { display: block; width: 64%; height: 8px; border-radius: 99px; background: var(--primary); }
html[data-brand="sendsms"] .ss-auth-sample-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text-secondary); }
html[data-brand="sendsms"] .ss-auth-sample-sms { margin: 0; align-self: flex-start; max-width: 340px; background: var(--surface-3); border-radius: 16px 16px 16px 4px; padding: 12px 14px; font-size: 14px; }
html[data-brand="sendsms"] .ss-auth-copy { margin: 0; font-size: 13px; color: var(--text-secondary); }
html[data-brand="sendsms"] .ss-auth-side { flex: 1 1 480px; min-width: 0; background: var(--surface); display: flex; flex-direction: column; padding: 32px 56px; }
html[data-brand="sendsms"] .ss-auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
html[data-brand="sendsms"] .ss-auth-mobile-logo { display: none; }
html[data-brand="sendsms"] .ss-auth-lang { height: 40px; margin-left: auto; }
html[data-brand="sendsms"] .ss-auth-lang select { font-weight: 550; }
html[data-brand="sendsms"] .ss-auth-back { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 8px 0 2px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
html[data-brand="sendsms"] .ss-auth-back:hover { background: var(--surface-3); }
html[data-brand="sendsms"] .ss-auth-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 0; }
html[data-brand="sendsms"] .ss-auth-form { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 22px; }
html[data-brand="sendsms"] .ss-auth-form-wide { max-width: 440px; gap: 20px; }
html[data-brand="sendsms"] .ss-auth-head { display: flex; flex-direction: column; gap: 6px; }
html[data-brand="sendsms"] .ss-auth-head h2 { margin: 0; font-size: 30px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; }
html[data-brand="sendsms"] .ss-auth-head p { margin: 0; color: var(--text-secondary); }
html[data-brand="sendsms"] .ss-auth-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
html[data-brand="sendsms"] .ss-auth-field > label, html[data-brand="sendsms"] .ss-auth-label-row label { font-size: 14px; font-weight: 600; }
html[data-brand="sendsms"] .ss-auth-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
html[data-brand="sendsms"] .ss-auth .input { height: 48px; min-height: 48px; border-radius: 12px; border-color: var(--border-strong); font-size: 15px; }
html[data-brand="sendsms"] .ss-auth-recovery.input { height: 52px; font-size: 18px; letter-spacing: .08em; font-family: var(--font-mono); }
html[data-brand="sendsms"] .ss-auth-hint { font-size: 13px; color: var(--text-secondary); }
html[data-brand="sendsms"] .ss-auth-link { padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--ss-accent-text); cursor: pointer; text-align: left; }
html[data-brand="sendsms"] .ss-auth-link:hover { color: var(--text); }
html[data-brand="sendsms"] .ss-auth-link:disabled { color: var(--text-tertiary); cursor: default; }
html[data-brand="sendsms"] .ss-auth-submit { width: 100%; min-height: 48px; font-size: 15px; }
html[data-brand="sendsms"] .ss-auth-alert { margin: 0; display: flex; gap: 8px; align-items: flex-start; color: var(--danger-strong); background: var(--danger-soft); border-radius: 12px; padding: 10px 12px; font-size: 14px; overflow-wrap: anywhere; }
html[data-brand="sendsms"] .ss-auth-alert:empty { display: none; }
/* a refusal with a link (the other cabinet): the sentence takes the whole line, the button goes under it (loginErrors.js) */
html[data-brand="sendsms"] .ss-auth-alert:has(.login-error-link) { flex-direction: column; align-items: flex-start; }
html[data-brand="sendsms"] .ss-auth-foot { margin: 0; text-align: center; font-size: 14px; color: var(--text-secondary); }
html[data-brand="sendsms"] .ss-auth-foot-left { text-align: left; font-size: 13px; }
html[data-brand="sendsms"] .ss-auth-note { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
html[data-brand="sendsms"] .ss-auth-note .ss-ic { width: 16px; height: 16px; }
html[data-brand="sendsms"] .ss-auth-resend { display: flex; justify-content: flex-end; font-size: 14px; }
/* Six code cells: the digits are drawn in the cells, the real field (#mfa-code) lies transparently on top. */
html[data-brand="sendsms"] .ss-code { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 56px)); gap: 10px; }
html[data-brand="sendsms"] .ss-code-cell { height: 64px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface); display: grid; place-items: center; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
html[data-brand="sendsms"] .ss-code-cell.is-next { border: 2px solid var(--primary); }
html[data-brand="sendsms"] .ss-code-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.01; border: 0; background: transparent; color: transparent; caret-color: transparent; font-size: 16px; }
html[data-brand="sendsms"] .ss-code:focus-within { outline: none; }
html[data-brand="sendsms"] .ss-auth-form:has(#mfa-error:not(:empty)) .ss-code-cell,
html[data-brand="sendsms"] .ss-auth-form:has(#mfa-error:not(:empty)) .ss-auth-recovery { border-color: var(--danger); }
html[data-brand="sendsms"] .ss-methods { border: 0; border-top: 1px solid var(--border); padding: 18px 0 0; margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
html[data-brand="sendsms"] .ss-methods legend { font-size: 14px; font-weight: 600; color: var(--text-secondary); padding: 0 8px 0 0; }
html[data-brand="sendsms"] .ss-method { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
html[data-brand="sendsms"] .ss-method:hover { border-color: var(--border-strong); background: var(--surface-2); }
html[data-brand="sendsms"] .ss-method-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-3); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
html[data-brand="sendsms"] .ss-method-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
html[data-brand="sendsms"] .ss-method-text b { font-size: 15px; }
html[data-brand="sendsms"] .ss-method-text span { font-size: 13px; color: var(--text-secondary); }
@media (max-width: 1000px) {
  html[data-brand="sendsms"] .ss-auth-brand { display: none; }
  html[data-brand="sendsms"] .ss-auth-side { padding: 20px 16px 24px; }
  html[data-brand="sendsms"] .ss-auth-mobile-logo { display: block; }
  html[data-brand="sendsms"] .ss-auth-top-left:empty { display: none; }
  html[data-brand="sendsms"] .ss-auth-top:has(.ss-auth-back) .ss-auth-mobile-logo { display: none; }
  html[data-brand="sendsms"] .ss-auth-center { align-items: flex-start; padding: 28px 0; }
  html[data-brand="sendsms"] .ss-auth-head h2 { font-size: 26px; }
  html[data-brand="sendsms"] .ss-code { gap: 8px; }
  html[data-brand="sendsms"] .ss-code-cell { height: 56px; font-size: 22px; }
}
@media (max-width: 420px) {
  html[data-brand="sendsms"] .ss-auth-top { flex-wrap: wrap; }
  html[data-brand="sendsms"] .ss-auth-mobile-logo .ss-logo-text { font-size: 19px; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  html[data-brand="sendsms"] .sidebar-inner { padding: 16px 12px; }
  html[data-brand="sendsms"] .ss-brand { padding: 6px 54px 18px 6px; }
  html[data-brand="sendsms"] .topbar { height: 68px; padding: 0 16px; gap: 10px; }
  html[data-brand="sendsms"] .content { padding: 22px 16px 48px; }
  html[data-brand="sendsms"] .ss-company-trigger { font-size: 15px; gap: 8px; padding: 0 6px 0 2px; }
  html[data-brand="sendsms"] .toolbar, html[data-brand="sendsms"] .card-header, html[data-brand="sendsms"] .card-body { padding-left: 16px; padding-right: 16px; }
  html[data-brand="sendsms"] .card > .tabbar, html[data-brand="sendsms"] .card-header + .tabbar { margin: 12px 16px 0; }
  html[data-brand="sendsms"] .card > table td:first-child, html[data-brand="sendsms"] .table-wrap > table td:first-child,
  html[data-brand="sendsms"] .card > table th:first-child, html[data-brand="sendsms"] .table-wrap > table th:first-child { padding-left: 16px; }
  html[data-brand="sendsms"] .navigation-backdrop:not([hidden]) { background: var(--ss-backdrop); }
}
@media (max-width: 640px) {
  html[data-brand="sendsms"] .topbar-right > .ss-lang { display: none; }
  html[data-brand="sendsms"] .ss-company-trigger > .ss-ic:first-child { display: none; }
  html[data-brand="sendsms"] h1, html[data-brand="sendsms"] .page-header h1 { font-size: 26px; }
  html[data-brand="sendsms"] .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  html[data-brand="sendsms"] .stat-card { padding: 16px; }
  html[data-brand="sendsms"] .stat-card .label { font-size: 13px; }
  html[data-brand="sendsms"] .tabbar { width: auto; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  html[data-brand="sendsms"] .stat-card .label { white-space: normal; overflow: visible; }
  html[data-brand="sendsms"] .card-header { flex-wrap: wrap; }
  html[data-brand="sendsms"] .card-header > * { min-width: 0; }
  /* an empty table ("no surveys yet"): the one wide cell must not run out of view behind the horizontal scroll */
  html[data-brand="sendsms"] table:has(> tbody > tr:only-child > td[colspan]:only-child) { min-width: 0 !important; width: 100%; }
  html[data-brand="sendsms"] table:has(> tbody > tr:only-child > td[colspan]:only-child) > thead { display: none; }
  html[data-brand="sendsms"] tbody > tr:only-child > td[colspan]:only-child { white-space: normal; }
  html[data-brand="sendsms"] .toolbar > :is(select, .select, .input, .search-input) { flex: 1 1 100%; max-width: none; width: 100%; }
  html[data-brand="sendsms"] .ss-profile-panel { position: fixed; right: 12px; top: 76px; max-height: calc(100dvh - 92px); overflow-y: auto; }
  html[data-brand="sendsms"] .ss-company-panel { position: fixed; left: 12px; top: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-brand="sendsms"] * { transition: none !important; }
}

/* Шапка полноэкранного мастера (sendsmsWizardClose.js, замечание владельца 26.11): слева «назад», справа «Закрыть» (крестик + слово;
   на 375 — только крестик). Полоса прилипает к верху при прокрутке: в мастере-оверлее — к верху окна, в мастере внутри страницы — под
   шапкой кабинета. Окно «Закрыть без сохранения?»: «Сохранить и закрыть» · «Закрыть без сохранения» (красный текст) · «Отмена». */
html[data-brand="sendsms"] .ssw-bar { position: sticky; top: var(--shell-topbar-h); z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: -8px 0 0; padding: 8px 0; background: var(--bg); }
html[data-brand="sendsms"] .flow-page .ssw-bar { top: 0; }
html[data-brand="sendsms"] .ssw-back { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; color: var(--text-secondary); font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
html[data-brand="sendsms"] .ssw-back:hover { color: var(--text); }
html[data-brand="sendsms"] .ssw-back .ss-ic, html[data-brand="sendsms"] .ssw-close .ss-ic { width: 16px; height: 16px; }
html[data-brand="sendsms"] .ssw-close { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
html[data-brand="sendsms"] .ssw-close:hover { border-color: var(--text-secondary); }
html[data-brand="sendsms"] .ssw-close:focus-visible, html[data-brand="sendsms"] .ssw-back:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (max-width: 900px) { html[data-brand="sendsms"] .ssw-bar { top: 68px; } }
@media (max-width: 600px) {
  html[data-brand="sendsms"] .ssw-close { width: 40px; height: 40px; min-height: 40px; padding: 0; justify-content: center; }
  html[data-brand="sendsms"] .ssw-close .ssw-close-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
html[data-brand="sendsms"] .ssw-unsaved-text { margin: 0; color: var(--text-secondary); line-height: 1.5; }
html[data-brand="sendsms"] .ssw-unsaved-actions { justify-content: flex-start; }
html[data-brand="sendsms"] .ssw-unsaved-actions .btn { white-space: nowrap; }
html[data-brand="sendsms"] .ssw-danger-text { color: var(--danger); }
@media (max-width: 520px) { html[data-brand="sendsms"] .ssw-unsaved-actions .btn { flex: 1 1 100%; } }
/* the collapsed menu (rail of icons, app.css «Collapsible desktop menu») in the SendSMS brand */
@media (min-width: 901px) {
  html[data-brand="sendsms"] .navigation-collapsed .sidebar-inner { padding: 18px 0 20px; }
  html[data-brand="sendsms"] .navigation-collapsed .ss-brand { padding: 0 0 18px; }
  html[data-brand="sendsms"] .navigation-collapsed .brand-wordmark[data-ss-logo] { font-size: 0; gap: 0; }
  html[data-brand="sendsms"] .navigation-collapsed .nav-item { justify-content: center; gap: 0; padding: 10px 0; }
  html[data-brand="sendsms"] .navigation-collapsed .nav-item.ss-nav-item > span { display: none; }
  html[data-brand="sendsms"] .navigation-collapsed .ss-nav-group { font-size: 0; height: 1px; margin: 10px 6px; background: var(--sidebar-border); }
}

/* Телефон-предпросмотр следует за прокруткой (замечание владельца 26.11): боковая колонка мастеров «липкая» — телефон и кнопки
   остаются на экране, пока заполняется длинная форма слева. Отступ сверху — под шапкой кабинета и полосой мастера «Закрыть»;
   в мастере, открытом поверх страницы (.flow-page), шапки нет — только полоса. На узком экране колонка уходит под форму и не липнет. */
html[data-brand="sendsms"] { --ss-preview-top: calc(var(--shell-topbar-h) + 16px); }
html[data-brand="sendsms"] :has(> .ssw-bar) { --ss-preview-top: calc(var(--shell-topbar-h) + 68px); }
html[data-brand="sendsms"] .flow-page:has(.ssw-bar), html[data-brand="sendsms"] .flow-page :has(> .ssw-bar) { --ss-preview-top: 68px; }
html[data-brand="sendsms"] :is(.sscw-grid > .sscw-side, .ssqs-side, .ss-sid-grid > .card + .card) { position: sticky; top: var(--ss-preview-top); align-self: start; }
@media (max-width: 1100px) {
  html[data-brand="sendsms"] :is(.sscw-grid > .sscw-side, .ssqs-side, .ss-sid-grid > .card + .card) { position: static; }
}
