/* Generated from assets/src/theme. Do not edit by hand. */
@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root,
.s-root {
    --s-brand: #ce181e;
    --s-brand-hover: #b01419;
    --s-brand-soft: #fdecec;
    --s-bg: #f4f5f7;
    --s-bg-subtle: #eef0f3;
    --s-surface: #ffffff;
    --s-border: #e5e7eb;
    --s-text: #111827;
    --s-text-muted: #6b7280;
    --s-success: #059669;
    --s-success-soft: #ecfdf5;
    --s-warning: #d97706;
    --s-warning-soft: #fffbeb;
    --s-danger: #dc2626;
    --s-danger-soft: #fef2f2;
    --s-info: #2563eb;
    --s-info-soft: #eff6ff;
    --s-plan: #6d28d9;
    --s-plan-soft: #f5f3ff;
    --s-space-1: 4px;
    --s-space-2: 8px;
    --s-space-3: 12px;
    --s-space-4: 16px;
    --s-space-5: 20px;
    --s-space-6: 24px;
    --s-space-8: 32px;
    --s-space-10: 40px;
    --s-space-12: 48px;
    --s-space-16: 64px;
    --s-radius-sm: 8px;
    --s-radius-md: 12px;
    --s-radius-lg: 16px;
    --s-radius-full: 999px;
    --s-shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.05);
    --s-shadow-md: 0 8px 24px rgba(17, 24, 39, 0.07);
    --s-font: "Vazirmatn", Tahoma, system-ui, sans-serif;
    --s-text-xs: 12px;
    --s-text-sm: 13px;
    --s-text-md: 15px;
    --s-text-lg: 17px;
    --s-text-xl: 22px;
    --s-text-2xl: 28px;
    --s-leading-tight: 1.28;
    --s-leading-body: 1.65;
    --s-z-header: 20;
    --s-z-nav: 24;
    --s-z-overlay: 40;
    --s-z-toast: 50;
    --s-header: 56px;
    --s-bottom-nav: 64px;
    --s-sidebar: 248px;
    --s-sidebar-bg: #1c2128;
    --s-sidebar-text: #c5cdd6;
    --s-sidebar-muted: #8b949e;
    --s-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --s-duration: 160ms;
    --s-touch: 44px;
    --s-keyboard: 0px;
}

body.sepand-app-shell,
body.sepand-public-plans,
body.sepand-app-shell *,
body.sepand-app-shell *::before,
body.sepand-app-shell *::after,
body.sepand-public-plans *,
body.sepand-public-plans *::before,
body.sepand-public-plans *::after {
    box-sizing: border-box;
}

html.sepand-html-app {
    margin: 0 !important;
    padding-top: 0 !important;
    height: 100%;
    overflow: hidden;
}

body.sepand-app-shell,
body.sepand-public-plans {
    margin: 0;
    min-height: 100%;
    background: var(--s-bg);
    color: var(--s-text);
    font-family: var(--s-font);
    font-size: var(--s-text-md);
    line-height: var(--s-leading-body);
    direction: rtl;
    text-align: right;
}

body.sepand-app-shell {
    overflow: hidden;
    height: 100%;
}

#sepand-support-root {
    min-height: 100dvh;
    height: 100dvh;
    overflow: hidden;
}

body.sepand-app-shell a,
body.sepand-public-plans a {
    color: inherit;
    text-decoration: none;
}

body.sepand-app-shell button,
body.sepand-app-shell input,
body.sepand-app-shell select,
body.sepand-app-shell textarea,
body.sepand-public-plans button,
body.sepand-public-plans input,
body.sepand-public-plans select,
body.sepand-public-plans textarea {
    font: inherit;
    color: inherit;
}

body.sepand-app-shell img,
body.sepand-public-plans img {
    max-width: 100%;
}

body.sepand-app-shell h1,
body.sepand-app-shell h2,
body.sepand-app-shell h3,
body.sepand-public-plans h1,
body.sepand-public-plans h2,
body.sepand-public-plans h3 {
    margin: 0;
    line-height: var(--s-leading-tight);
    font-weight: 700;
}

body.sepand-app-shell h1,
body.sepand-public-plans h1 {
    font-size: var(--s-text-xl);
}

body.sepand-app-shell h2,
body.sepand-public-plans h2 {
    font-size: var(--s-text-lg);
}

body.sepand-app-shell p,
body.sepand-public-plans p {
    margin: 0;
}

.s-eyebrow {
    margin: 0;
    color: var(--s-text-muted);
    font-size: var(--s-text-xs);
    font-weight: 500;
}

.s-muted {
    color: var(--s-text-muted);
    font-size: var(--s-text-sm);
}

.s-lead {
    color: var(--s-text-muted);
    margin-top: var(--s-space-2);
}

.s-glyph {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.s-btn {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-space-2);
    min-height: var(--s-touch);
    padding: 0 var(--s-space-4);
    border-radius: var(--s-radius-md);
    border: 1px solid transparent;
    background: var(--s-surface);
    color: var(--s-text);
    font-weight: 600;
    font-size: var(--s-text-sm);
    text-decoration: none;
    cursor: pointer;
}

.s-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.s-btn:focus-visible,
.s-field input:focus-visible,
.s-field textarea:focus-visible,
.s-field select:focus-visible,
.s-chat-input:focus-visible {
    outline: 2px solid var(--s-info);
    outline-offset: 2px;
}

.s-btn-primary {
    background: var(--s-brand);
    color: #fff;
}

.s-btn-primary:hover:not(:disabled) {
    background: var(--s-brand-hover);
}

.s-btn-secondary {
    border-color: var(--s-border);
    background: var(--s-surface);
}

.s-btn-ghost {
    background: transparent;
    color: var(--s-text-muted);
}

.s-btn-danger {
    background: var(--s-danger);
    color: #fff;
}

/*
 * The app-shell reset (body.sepand-app-shell a / button { color: inherit }) out-ranks the single-class
 * rules above, so filled brand buttons lost their white text. Keep them white.
 */
body.sepand-app-shell .s-btn-primary,
body.sepand-public-plans .s-btn-primary,
body.sepand-app-shell .s-btn-danger,
body.sepand-public-plans .s-btn-danger,
body.sepand-app-shell .s-send-btn {
    color: #fff;
}

.s-icon-btn {
    width: var(--s-touch);
    min-height: var(--s-touch);
    padding: 0;
    border: 1px solid var(--s-border);
    border-radius: var(--s-radius-md);
    background: var(--s-surface);
    cursor: pointer;
}

.s-field {
    display: flex;
    flex-direction: column;
    gap: var(--s-space-1);
    font-size: var(--s-text-sm);
    color: var(--s-text-muted);
}

.s-field input,
.s-field textarea,
.s-field select {
    all: unset;
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: var(--s-touch);
    border: 1px solid var(--s-border);
    border-radius: var(--s-radius-md);
    padding: var(--s-space-2) var(--s-space-3);
    background: var(--s-surface);
    color: var(--s-text);
}

.s-field textarea {
    min-height: 120px;
    resize: vertical;
}

.s-card {
    background: var(--s-surface);
    border: 1px solid var(--s-border);
    border-radius: var(--s-radius-md);
    box-shadow: var(--s-shadow-sm);
    padding: var(--s-space-4);
}

.s-card-link {
    display: flex;
    flex-direction: column;
    gap: var(--s-space-2);
    text-decoration: none;
    color: inherit;
}

.s-badge {
    display: inline-flex;
    align-items: center;
    border-radius: var(--s-radius-full);
    padding: 2px 8px;
    min-height: 22px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid var(--s-border);
    background: var(--s-bg);
    color: var(--s-text-muted);
    white-space: nowrap;
}

.s-badge.is-new,
.s-badge.is-assigned,
.s-badge.is-progress {
    background: var(--s-info-soft);
    border-color: #bfdbfe;
    color: #1e40af;
}

.s-badge.is-waiting {
    background: var(--s-warning-soft);
    border-color: #fde68a;
    color: #92400e;
}

.s-badge.is-resolved {
    background: var(--s-success-soft);
    border-color: #a7f3d0;
    color: #065f46;
}

.s-badge.is-closed {
    background: #f4f4f5;
    color: #52525b;
}

.s-badge.is-urgent {
    background: var(--s-danger-soft);
    border-color: #fecaca;
    color: var(--s-danger);
}

.s-badge.is-brand {
    background: var(--s-brand-soft);
    border-color: #f4d0d2;
    color: var(--s-brand);
}

.s-skeleton {
    display: block;
    height: 16px;
    border-radius: var(--s-radius-sm);
    background: linear-gradient(90deg, #eef0f3 25%, #f8f9fb 37%, #eef0f3 63%);
    background-size: 400% 100%;
    animation: s-pulse 1.2s ease-in-out infinite;
}

.s-skeleton-stack {
    display: grid;
    gap: var(--s-space-3);
}

@keyframes s-pulse {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.s-state {
    background: var(--s-surface);
    border: 1px dashed var(--s-border);
    border-radius: var(--s-radius-md);
    padding: var(--s-space-8) var(--s-space-4);
    text-align: center;
    display: grid;
    gap: var(--s-space-3);
    justify-items: center;
}

.s-state.is-compact {
    padding: 8px 10px;
    gap: 0;
    min-height: 0;
    background: transparent;
    border: 0;
}

.s-state.is-compact h2 {
    font-size: 12px;
    font-weight: 500;
    color: var(--s-text-muted);
}

.s-toast-wrap {
    position: fixed;
    z-index: var(--s-z-toast);
    inset-inline: var(--s-space-4);
    bottom: calc(var(--s-space-4) + env(safe-area-inset-bottom));
    display: grid;
    gap: var(--s-space-2);
}

.s-toast {
    background: var(--s-text);
    color: #fff;
    border-radius: var(--s-radius-md);
    padding: var(--s-space-3) var(--s-space-4);
    box-shadow: var(--s-shadow-md);
    font-size: var(--s-text-sm);
}

.s-toast.is-error {
    background: var(--s-danger);
}

.s-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--s-z-overlay);
    background: rgba(17, 24, 39, 0.45);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: var(--s-space-4);
}

.s-modal,
.s-sheet {
    width: min(480px, 100%);
    background: var(--s-surface);
    border-radius: var(--s-radius-lg) var(--s-radius-lg) 0 0;
    padding: var(--s-space-5);
    display: grid;
    gap: var(--s-space-4);
}

.s-page-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--s-space-3);
    margin-bottom: var(--s-space-5);
}

.s-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-space-3);
    align-items: end;
    margin-bottom: var(--s-space-4);
}

.s-form-grid {
    display: grid;
    gap: var(--s-space-3);
}

.s-pager {
    display: flex;
    gap: var(--s-space-3);
    align-items: center;
    margin-top: var(--s-space-4);
}

.s-shell {
    min-height: 100dvh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--s-bg);
    overflow: hidden;
}

.s-topbar {
    position: sticky;
    top: 0;
    z-index: var(--s-z-header);
    min-height: var(--s-header);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-space-3);
    padding: var(--s-space-2) var(--s-space-4);
    background: var(--s-surface);
    border-bottom: 1px solid var(--s-border);
}

.s-brand {
    font-weight: 800;
    font-size: var(--s-text-sm);
    text-decoration: none;
}

.s-brand span {
    color: var(--s-brand);
}

.s-side-nav,
.s-bottom-nav {
    display: flex;
}

.s-nav-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 var(--s-space-3);
    border-radius: var(--s-radius-sm);
    text-decoration: none;
    color: var(--s-text-muted);
    font-size: var(--s-text-sm);
    font-weight: 500;
}

.s-nav-link.active {
    color: var(--s-brand);
    font-weight: 700;
}

.s-main {
    flex: 1;
    width: 100%;
    padding: var(--s-space-4);
    padding-bottom: calc(var(--s-space-8) + var(--s-bottom-nav) + env(safe-area-inset-bottom));
}

.s-customer .s-main {
    max-width: 720px;
    margin: 0 auto;
}

.s-shell.s-customer,
.s-shell.s-staff,
.s-shell.s-manager {
    flex-direction: row;
}

.s-app-sidebar,
.s-customer-sidebar {
    display: none;
    width: var(--s-sidebar);
    flex-shrink: 0;
    flex-direction: column;
    gap: var(--s-space-4);
    padding: var(--s-space-5) var(--s-space-3) var(--s-space-4);
    background: var(--s-sidebar-bg);
    color: #f3f4f6;
    border-left: 1px solid #2a3139;
}

.s-app-sidebar .s-brand,
.s-customer-sidebar .s-brand {
    color: #fff;
    font-size: var(--s-text-lg);
}

.s-app-sidebar .s-muted,
.s-customer-sidebar .s-muted {
    color: var(--s-sidebar-muted);
    margin-top: var(--s-space-1);
}

.s-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: var(--s-space-1);
}

.s-app-sidebar .s-nav-link,
.s-customer-sidebar .s-nav-link {
    gap: var(--s-space-3);
    min-height: 40px;
    padding: 0 12px;
    color: var(--s-sidebar-text);
    border-radius: var(--s-radius-sm);
}

.s-app-sidebar .s-nav-link:hover,
.s-customer-sidebar .s-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.s-app-sidebar .s-nav-link.active,
.s-customer-sidebar .s-nav-link.active {
    color: #fff;
    background: var(--s-brand);
    font-weight: 700;
}

.s-sidebar-logout {
    margin-top: auto;
    border-top: 1px solid #2a3139;
    border-radius: 0;
    padding-top: var(--s-space-3);
}

.s-app-body,
.s-customer-body,
.s-manager-body {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.s-dashboard {
    gap: var(--s-space-5);
}

.s-dash-welcome h1 {
    font-size: var(--s-text-xl);
}

.s-dash-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-space-3);
}

.s-stat-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: var(--s-space-1);
    text-decoration: none;
    color: inherit;
    min-height: 118px;
    padding: var(--s-space-4);
    transition: box-shadow var(--s-duration) var(--s-ease), border-color var(--s-duration) var(--s-ease);
}

.s-stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--s-border);
}

a.s-stat-card:hover {
    border-color: #f4d0d2;
    box-shadow: var(--s-shadow-md);
}

.s-stat-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--s-radius-sm);
    background: var(--s-brand-soft);
    color: var(--s-brand);
    margin-bottom: var(--s-space-1);
}

.s-stat-icon.is-success,
.s-stat-card.is-success .s-stat-icon {
    background: var(--s-success-soft);
    color: var(--s-success);
}

.s-stat-card strong {
    font-size: var(--s-text-xl);
    line-height: 1.25;
    word-break: break-word;
}

.s-stat-link {
    color: var(--s-brand);
    font-size: var(--s-text-xs);
    font-weight: 600;
}

.s-dash-split {
    display: grid;
    gap: var(--s-space-4);
}

.s-dash-panel {
    display: grid;
    gap: var(--s-space-3);
    align-content: start;
}

.s-dash-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-space-3);
}

.s-dash-row {
    gap: var(--s-space-1);
}

.s-entitlement-grid {
    display: grid;
    gap: var(--s-space-2);
    list-style: none;
    margin: 0;
    padding: 0;
}

.s-entitlement {
    display: grid;
    grid-template-columns: 40px 1fr 20px;
    gap: var(--s-space-3);
    align-items: center;
    padding: var(--s-space-3);
    border: 1px solid var(--s-border);
    border-radius: var(--s-radius-sm);
    background: var(--s-bg);
}

.s-entitlement-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--s-radius-sm);
    background: var(--s-surface);
    color: var(--s-brand);
}

.s-entitlement div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.s-entitlement span {
    color: var(--s-text-muted);
    font-size: var(--s-text-xs);
}

.s-entitlement.is-off {
    opacity: 0.72;
}

.s-entitlement.is-off .s-entitlement-icon {
    color: var(--s-text-muted);
}

.s-entitlement.is-on .s-entitlement-mark {
    color: var(--s-success);
}

.s-entitlement.is-off .s-entitlement-mark {
    color: var(--s-danger);
}

.s-bottom-nav {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: var(--s-z-nav);
    justify-content: space-around;
    background: var(--s-surface);
    border-top: 1px solid var(--s-border);
    padding: var(--s-space-1) var(--s-space-2) calc(var(--s-space-1) + env(safe-area-inset-bottom));
}

.s-bottom-nav .s-nav-link {
    flex-direction: column;
    gap: 2px;
    min-height: 56px;
    font-size: 11px;
    text-align: center;
    padding: 4px 6px;
}

.s-bottom-nav .s-glyph {
    width: 20px;
    height: 20px;
}

.s-chat-route .s-bottom-nav,
.s-chat-route .s-staff-tabs,
.s-chat-route .s-app-sidebar,
.s-chat-route.s-manager .s-side-nav,
.s-customer.s-chat-route .s-customer-sidebar,
.s-chat-route .s-topbar {
    display: none !important;
}

.s-chat-route .s-app-body,
.s-customer.s-chat-route .s-customer-body {
    overflow: hidden;
}

.s-customer.s-chat-route .s-chat-page {
    height: calc(100dvh - var(--s-keyboard, 0px));
    max-width: none;
    margin: 0;
    border: 0;
}

.s-chat-route .s-main,
.s-chat-route.s-staff .s-main,
.s-chat-route.s-manager .s-main {
    padding: 0;
    max-width: none;
    padding-bottom: 0;
}

/* only the customer panel has a bottom tab bar; staff roles navigate through the drawer */
.s-staff .s-main,
.s-manager .s-main {
    padding-bottom: calc(var(--s-space-8) + env(safe-area-inset-bottom));
    max-width: none;
}

.s-staff-tabs {
    display: none;
}

.s-staff-tabs .s-nav-link {
    min-height: 44px;
}

.s-staff-tabs .s-nav-link.active {
    background: var(--s-brand-soft);
    color: var(--s-brand);
    font-weight: 700;
}

.s-manager-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: auto;
}

.s-manager.s-chat-route .s-manager-body {
    overflow: hidden;
}

.s-staff > .s-main {
    overflow: auto;
    min-height: 0;
}

.s-side-nav {
    display: none;
}

.s-queue {
    display: grid;
    gap: var(--s-space-3);
}

.s-queue-row,
.s-ticket-row {
    display: flex;
    justify-content: space-between;
    gap: var(--s-space-3);
    align-items: flex-start;
}

.s-chips {
    display: flex;
    gap: var(--s-space-2);
    overflow-x: auto;
    padding-bottom: var(--s-space-1);
}

.s-chip {
    border: 1px solid var(--s-border);
    background: var(--s-surface);
    border-radius: var(--s-radius-full);
    padding: 8px 12px;
    min-height: var(--s-touch);
    white-space: nowrap;
    cursor: pointer;
}

.s-chip.is-active {
    border-color: var(--s-brand);
    color: var(--s-brand);
    background: var(--s-brand-soft);
}

.s-tile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-space-3);
    margin-bottom: var(--s-space-5);
}

.s-tile {
    text-decoration: none;
    color: inherit;
}

.s-tile strong {
    display: block;
    font-size: var(--s-text-xl);
}

.s-list {
    display: grid;
    gap: var(--s-space-3);
    list-style: none;
    margin: 0;
    padding: 0;
}

.s-chat-page,
.s-workspace {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - var(--s-header) - var(--s-keyboard, 0px));
    background: var(--s-bg);
}

/* Chat routes hide the top bar at every width, so the conversation takes the whole viewport
   (subtracting the header here left an empty band under the composer on phones). */
.s-chat-route .s-workspace,
.s-chat-route .s-chat-page {
    height: calc(100dvh - var(--s-keyboard, 0px));
}

.s-chat-header {
    display: flex;
    align-items: center;
    gap: var(--s-space-3);
    padding: 10px var(--s-space-4);
    background: var(--s-surface);
    border-bottom: 1px solid var(--s-border);
}

.s-chat-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--s-border);
    border-radius: 12px;
    background: var(--s-surface);
    color: var(--s-text);
    font-size: var(--s-text-sm);
    font-weight: 600;
    text-decoration: none;
}

.s-chat-back:hover {
    border-color: var(--s-brand);
    color: var(--s-brand);
}

.s-chat-back .s-glyph {
    width: 18px;
    height: 18px;
}

.s-chat-kicker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 0 0 2px;
}

.s-chat-code {
    font-size: var(--s-text-xs);
    color: var(--s-text-muted);
    direction: ltr;
    unicode-bidi: isolate;
}

.s-chat-kicker .s-badge {
    font-size: 11px;
    padding: 1px 8px;
}

.s-chat-header .s-chat-title {
    margin: 0;
    font-size: var(--s-text-lg);
    font-weight: 700;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
    /* a Latin subject is laid out left-to-right, so it is cut at its own end, not its beginning */
    unicode-bidi: plaintext;
    text-align: right;
}

.s-chat-header-actions .s-btn {
    border: 1px solid var(--s-border);
    border-radius: 12px;
}

.s-chat-sub {
    margin: 2px 0 0;
    font-size: var(--s-text-xs);
    color: var(--s-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.s-chat {
    /* one reading column for messages, service actions and composer, in every role's chat */
    --s-chat-width: 880px;
    --s-chat-gutter: max(var(--s-space-4), calc((100% - var(--s-chat-width)) / 2));
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--s-bg-subtle);
    position: relative;
}

/* The scroll area spans the whole chat (scrollbar at the edge, wheel works over the margins); only the
   content is held to the reading column, through the side padding. */
.s-chat-list {
    flex: 1;
    overflow-y: auto;
    padding: var(--s-space-5) var(--s-chat-gutter);
    display: flex;
    flex-direction: column;
    gap: var(--s-space-2);
}

.s-chat-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--s-space-8);
    color: var(--s-text-muted);
    text-align: center;
}

.s-bubble {
    max-width: min(78%, 560px);
    padding: 10px 12px;
    border-radius: 16px 16px 16px 6px;
    background: var(--s-surface);
    border: 1px solid var(--s-border);
    align-self: flex-start;
    box-shadow: var(--s-shadow-sm);
}

.s-bubble.is-mine {
    align-self: flex-end;
    border-radius: 14px 14px 4px 14px;
}

.s-bubble.is-customer {
    background: var(--s-brand-soft);
    border-color: #f4d0d2;
}

.s-bubble.is-staff {
    background: #fff;
}

/* Align bubbles relative to the signed-in user in every role. */
.s-bubble.is-mine {
    align-self: flex-start;
    border-radius: 16px 16px 6px 16px;
    background: var(--s-surface);
    border-color: var(--s-border);
    color: var(--s-text);
}

.s-bubble:not(.is-mine) {
    align-self: flex-end;
    border-radius: 16px 16px 16px 6px;
    background: var(--s-brand);
    border-color: var(--s-brand);
    color: #fff;
}

.s-bubble:not(.is-mine) .s-chat-meta,
.s-bubble:not(.is-mine) .s-muted {
    color: rgb(255 255 255 / 82%);
}

.s-bubble p {
    white-space: pre-wrap;
    word-break: break-word;
}

.s-chat-system {
    align-self: center;
    font-size: var(--s-text-xs);
    color: var(--s-text-muted);
    background: #e8edf3;
    border-radius: var(--s-radius-full);
    padding: 6px 12px;
}

.s-chat-meta {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: var(--s-text-muted);
    letter-spacing: 0;
    opacity: 0.9;
}

.s-composer {
    border-top: 1px solid var(--s-border);
    background: var(--s-surface);
    padding: 10px var(--s-space-4) calc(10px + env(safe-area-inset-bottom));
    display: grid;
    /* minmax(0, 1fr), not auto: an auto column grows to its rows' natural width, and the voice recording bar's
       48 level bars made it wider than a phone screen, pushing "توقف" and "حذف" off the edge */
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    position: sticky;
    bottom: 0;
    width: 100%;
    padding-inline: var(--s-chat-gutter, max(var(--s-space-4), calc((100% - 880px) / 2)));
}

.s-composer-row,
.s-attach-row {
    display: flex;
    gap: var(--s-space-2);
    align-items: flex-end;
}

.s-attach-row {
    align-items: center;
}

.s-chat-input {
    all: unset;
    box-sizing: border-box;
    display: block;
    flex: 1;
    min-width: 0;
    min-height: var(--s-touch);
    max-height: 120px;
    border: 1px solid var(--s-border);
    border-radius: var(--s-radius-md);
    padding: var(--s-space-2) var(--s-space-3);
    resize: none;
    line-height: 1.5;
    cursor: text;
}

.s-attach-btn {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--s-border);
    background: var(--s-bg);
    border-radius: var(--s-radius-full);
    min-height: var(--s-touch);
    padding: 0 12px;
    font-size: var(--s-text-xs);
    cursor: pointer;
}

/* the message area: the list scrolls inside it, the "new messages" button floats at its bottom */
.s-chat-stream {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* body.sepand-app-shell: the app shell's `button{color:inherit}` would otherwise darken the text on the dark pill */
.s-unread,
body.sepand-app-shell .s-unread {
    position: absolute;
    left: 50%;
    bottom: 12px;
    z-index: 3;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    border: 0;
    background: var(--s-brand);
    color: #fff;
    border-radius: var(--s-radius-full);
    padding: 0 16px;
    font-size: var(--s-text-sm);
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(206, 24, 30, .3);
}

.s-unread:hover,
body.sepand-app-shell .s-unread:hover {
    background: var(--s-brand-hover);
    color: #fff;
}

.s-unread:focus-visible {
    outline: 2px solid #fff;
    box-shadow: 0 0 0 4px var(--s-brand);
}

.s-progress {
    height: 4px;
    background: var(--s-bg-subtle);
    border-radius: var(--s-radius-full);
    overflow: hidden;
}

.s-progress > span {
    display: block;
    height: 100%;
    background: var(--s-brand);
}

.s-thumb {
    display: block;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.s-thumb img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: var(--s-radius-sm);
}

.s-video {
    width: min(240px, 100%);
    border-radius: var(--s-radius-sm);
    background: #111;
}

.s-file-chip,
.s-media-load {
    display: inline-flex;
    border: 1px solid var(--s-border);
    background: #fff;
    border-radius: var(--s-radius-sm);
    padding: 8px 10px;
    font-size: var(--s-text-sm);
    cursor: pointer;
    text-decoration: none;
}

.s-lightbox {
    position: fixed;
    inset: 0;
    z-index: var(--s-z-overlay);
    background: rgba(17, 24, 39, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--s-space-6);
}

.s-lightbox img {
    max-width: min(920px, 100%);
    max-height: 90vh;
    border-radius: var(--s-radius-md);
}

.s-workspace-chat {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.s-workspace-side {
    display: none;
}

.s-feature-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-space-2);
    list-style: none;
    margin: var(--s-space-3) 0 0;
    padding: 0;
}

.s-feature-chips li {
    background: var(--s-bg);
    border: 1px solid var(--s-border);
    border-radius: var(--s-radius-full);
    padding: 6px 12px;
    font-size: var(--s-text-xs);
}

.s-table-wrap {
    overflow-x: auto;
}

.s-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--s-surface);
    border-radius: var(--s-radius-md);
}

.s-table th,
.s-table td {
    padding: 10px 12px;
    height: 44px;
    border-bottom: 1px solid var(--s-border);
    text-align: right;
    font-size: var(--s-text-sm);
}

.s-table a {
    text-decoration: none;
    font-weight: 600;
}

.s-desktop-table {
    display: none;
}

.s-plans-page {
    max-width: 1080px;
    margin: 0 auto;
    padding: var(--s-space-8) var(--s-space-4) var(--s-space-16);
    display: grid;
    gap: var(--s-space-8);
}

.s-hero,
.s-plans-section {
    background: var(--s-surface);
    border: 1px solid var(--s-border);
    border-radius: var(--s-radius-lg);
    box-shadow: var(--s-shadow-sm);
    padding: var(--s-space-8) var(--s-space-5);
}

.s-plans-grid {
    display: grid;
    gap: var(--s-space-4);
}

.s-welcome-note {
    background: var(--s-brand-soft);
    border: 1px solid #f4d0d2;
    border-radius: var(--s-radius-lg);
    padding: var(--s-space-5);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--s-space-4);
    align-items: start;
}

.s-plan-card {
    border: 1px solid var(--s-border);
    border-radius: var(--s-radius-md);
    padding: var(--s-space-5);
    display: flex;
    flex-direction: column;
    gap: var(--s-space-3);
    background: var(--s-surface);
}

.s-plan-card .s-btn {
    margin-top: auto;
}

.s-plan-card.is-highlighted {
    border-color: #f4d0d2;
    box-shadow: var(--s-shadow-md);
}

.s-feature-compare {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--s-space-2);
}

.s-feature-compare li {
    display: flex;
    align-items: flex-start;
    gap: var(--s-space-2);
    font-size: var(--s-text-sm);
    line-height: 1.5;
}

.s-feature-mark {
    width: 1.1em;
    flex-shrink: 0;
    font-weight: 700;
}

.s-feature-compare .is-on .s-feature-mark {
    color: var(--s-success);
}

.s-feature-compare .is-off {
    color: var(--s-text-muted);
}

.s-feature-compare .is-off .s-feature-mark {
    color: var(--s-danger);
}

.s-steps {
    margin: 0;
    padding-inline-start: 18px;
    display: grid;
    gap: var(--s-space-2);
}

/* reached from a "#faq" link: a short brand-coloured ring shows where the page went */
.s-faq {
    scroll-margin-top: var(--s-space-4);
}

.s-faq {
    transition: box-shadow 0.6s ease;
}

/* a colour change, not movement: it shows under reduced motion too, just without the fade */
.s-faq.is-flash {
    box-shadow: 0 0 0 3px var(--s-brand);
}

@media (prefers-reduced-motion: reduce) {
    .s-faq { transition: none; }
}

.s-faq details {
    border-bottom: 1px solid var(--s-border);
    padding: var(--s-space-3) 0;
}

@media (min-width: 640px) {
    .s-overlay {
        align-items: center;
    }

    .s-modal,
    .s-sheet {
        border-radius: var(--s-radius-lg);
    }

    .s-form-grid,
    .s-tile-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) {
    .s-bottom-nav {
        display: none;
    }

    .s-customer .s-main,
    .s-staff .s-main {
        padding-bottom: var(--s-space-8);
        max-width: 880px;
    }

    .s-dash-welcome h1 {
        font-size: var(--s-text-2xl);
    }

    .s-entitlement-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .s-shell h1,
    body.sepand-public-plans h1 {
        font-size: var(--s-text-2xl);
    }

    .s-bottom-nav {
        display: none;
    }

    .s-app-sidebar,
    .s-customer-sidebar {
        display: flex;
    }

    .s-customer .s-main {
        padding: var(--s-space-6);
        padding-bottom: var(--s-space-16);
        max-width: 1120px;
    }

    .s-topbar-mobile-brand,
    .s-customer .s-topbar .s-brand,
    .s-manager .s-topbar .s-brand,
    .s-staff .s-topbar .s-brand {
        display: none;
    }

    .s-customer .s-topbar,
    .s-staff .s-topbar,
    .s-manager .s-topbar {
        justify-content: flex-end;
    }

    .s-manager .s-topbar .s-brand {
        display: none;
    }

    .s-dash-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .s-staff .s-dash-stats,
    .s-dash-stats-wide {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .s-dash-split {
        grid-template-columns: 1.15fr 0.85fr;
        align-items: start;
    }

    .s-entitlement-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .s-sheet-trigger {
        display: none;
    }

    .s-manager,
    .s-staff {
        flex-direction: row;
        align-items: stretch;
    }

    .s-side-nav {
        display: none;
    }

    .s-side-nav .s-sidebar-brand {
        padding: 0 var(--s-space-3) var(--s-space-4);
        margin-bottom: var(--s-space-2);
        border-bottom: 1px solid var(--s-border);
    }

    .s-side-nav .s-nav-link {
        min-height: 44px;
    }

    .s-side-nav .s-nav-link.active {
        background: var(--s-brand-soft);
    }

    .s-manager .s-main {
        flex: 1;
        padding: var(--s-space-6);
    }

    .s-desktop-table {
        display: block;
    }

    .s-mobile-cards {
        display: none;
    }

    .s-workspace {
        flex-direction: row;
        height: calc(100dvh - var(--s-header) - var(--s-keyboard, 0px));
    }

    .s-workspace-side {
        display: flex;
        flex-direction: column;
        gap: var(--s-space-3);
        width: 360px;
        padding: var(--s-space-5);
        background: #f8f9fb;
        border-left: 1px solid var(--s-border);
        overflow: auto;
    }

    .s-workspace-side.is-narrow {
        width: 292px;
        padding: var(--s-space-3);
        gap: var(--s-space-2);
    }

    .s-workspace-chat {
        flex: 1;
    }

    .s-chat-page {
        height: calc(100dvh - var(--s-header) - var(--s-keyboard, 0px));
        max-width: 960px;
        margin: 0 auto;
        width: 100%;
        border-inline: 1px solid var(--s-border);
    }

    .s-customer.s-chat-route .s-chat-page {
        height: calc(100dvh - var(--s-keyboard, 0px));
        max-width: none;
        margin: 0;
        border: 0;
    }

    .s-plans-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .s-staff .s-main,
    .s-manager .s-main {
        padding: var(--s-space-6);
        max-width: none;
        margin: 0;
        padding-bottom: var(--s-space-10);
    }

    .s-chat-route.s-staff .s-main {
        max-width: none;
        padding: 0;
    }
}

.s-offline {
    margin: 0;
    padding: var(--s-space-2) var(--s-space-4);
    font-size: var(--s-text-sm);
    color: var(--s-text-muted);
    background: #f8fafc;
}

.s-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-space-2);
    margin-top: var(--s-space-4);
}

.s-stack {
    display: grid;
    gap: var(--s-space-4);
}

.s-main.s-stack {
    align-content: start;
}

.s-main.s-stack .s-page-header,
.s-main.s-stack .s-toolbar {
    margin-bottom: 0;
}

.s-main.s-stack .s-page-header,
.s-main.s-stack .s-toolbar {
    margin-bottom: 0;
}

.s-assign-history {
    margin: 0;
    padding-inline-start: 16px;
    display: grid;
    gap: var(--s-space-1);
}

.s-local-thumb {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: var(--s-radius-sm);
}

.s-composer-preview {
    display: flex;
    align-items: center;
    gap: var(--s-space-2);
}

.s-chat-header-main {
    flex: 1;
    min-width: 0;
}

.s-chat-header-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.s-offline.is-network {
    position: sticky;
    top: 0;
    z-index: var(--s-z-header);
    background: var(--s-warning-soft);
    color: #92400e;
    text-align: center;
}

/* Sepand Afzar's logo (red cube) on a white tile, so it reads on the dark sidebar and on light pages alike */
.s-logo {
    width: 36px;
    height: 36px;
    display: block;
    box-sizing: border-box;
    padding: 4px;
    border-radius: 10px;
    background: #fff;
    object-fit: contain;
    flex-shrink: 0;
}

/* (the phone header's brand itself is hidden on desktop by the media query above; only its logo is styled here) */
.s-topbar-mobile-brand .s-logo {
    display: inline-block;
    width: 28px;
    height: 28px;
    padding: 3px;
    margin-inline-end: 8px;
    border-radius: 8px;
    vertical-align: middle;
    box-shadow: inset 0 0 0 1px var(--s-border);
}

.s-brand-lockup {
    display: flex;
    align-items: center;
    gap: var(--s-space-3);
    min-width: 0;
}

.s-brand-lockup .s-muted {
    display: block;
}

.s-sidebar-help {
    margin-top: auto;
    padding: var(--s-space-4);
    background: #151a21;
    border-radius: var(--s-radius-md);
    display: grid;
    gap: var(--s-space-3);
    color: #d0d7de;
}

.s-sidebar-help .s-btn {
    width: 100%;
}

.s-app-sidebar .s-sidebar-logout {
    margin-top: 0;
}

.s-app-sidebar:has(.s-sidebar-help) .s-sidebar-logout {
    margin-top: var(--s-space-3);
}

.s-btn-block {
    width: 100%;
}

.s-topbar-userblock {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 0;
}

.s-topbar-greet {
    font-size: var(--s-text-sm);
    font-weight: 600;
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.s-dash-welcome {
    padding-bottom: var(--s-space-1);
}

.s-shortcut-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-space-3);
}

.s-shortcut {
    display: grid;
    gap: var(--s-space-1);
    text-decoration: none;
    color: inherit;
}

.s-shortcut .s-glyph {
    color: var(--s-brand);
}

.s-context {
    display: grid;
    gap: var(--s-space-3);
}

.s-context-list {
    display: grid;
    gap: var(--s-space-2);
    margin: 0;
}

.s-context-list > div {
    display: flex;
    justify-content: space-between;
    gap: var(--s-space-3);
    align-items: flex-start;
    padding-bottom: var(--s-space-2);
    border-bottom: 1px solid var(--s-border);
}

.s-context-list dt {
    color: var(--s-text-muted);
    font-size: var(--s-text-xs);
}

.s-context-list dd {
    margin: 0;
    font-weight: 600;
    text-align: left;
    word-break: break-word;
}

.s-context-desc {
    display: grid;
    gap: var(--s-space-2);
}

.s-picker {
    display: grid;
    gap: var(--s-space-2);
    min-width: min(280px, 100%);
}

/* The results float over the content below (a dropdown must never push the page down). */
.s-picker-anchor {
    position: relative;
    display: block;
}

.s-picker-list {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline: 0;
    z-index: var(--s-z-nav);
    list-style: none;
    margin: 0;
    padding: 6px;
    display: grid;
    gap: 2px;
    max-height: 280px;
    overflow: auto;
    overscroll-behavior: contain;
    background: var(--s-surface);
    border: 1px solid var(--s-border);
    border-radius: var(--s-radius-md);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

.s-picker-note {
    padding: var(--s-space-2) var(--s-space-3);
    color: var(--s-text-muted);
    font-size: var(--s-text-sm);
    font-weight: 400;
}

.s-picker-item {
    all: unset;
    box-sizing: border-box;
    display: grid;
    gap: 2px;
    width: 100%;
    padding: var(--s-space-2) var(--s-space-3);
    border-radius: var(--s-radius-sm);
    cursor: pointer;
    font-weight: 400;
    color: var(--s-text);
}

.s-picker-item strong {
    font-size: var(--s-text-sm);
}

.s-picker-item .s-muted {
    font-size: var(--s-text-xs);
    direction: ltr;
    text-align: right;
}

.s-picker-item.is-focused,
.s-picker-item:hover {
    background: var(--s-bg-subtle);
}

.s-picker-item.is-active {
    background: var(--s-brand-soft);
    color: var(--s-brand);
}

.s-picker-selected {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--s-space-2);
    font-size: var(--s-text-sm);
}

.s-toolbar-wide {
    align-items: start;
}

.s-chat-block {
    display: flex;
    flex-direction: column;
    gap: var(--s-space-2);
}

.s-day-sep {
    align-self: center;
    display: flex;
    align-items: center;
    gap: var(--s-space-3);
    color: var(--s-text-muted);
    font-size: var(--s-text-xs);
    width: 100%;
}

.s-day-sep::before,
.s-day-sep::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--s-border);
}

.s-send-btn {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: var(--s-brand);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.s-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.s-composer-hint {
    margin: 0;
    font-size: 11px;
    color: var(--s-text-muted);
}

.s-attach-menu {
    position: relative;
}

.s-attach-pop {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    background: var(--s-surface);
    border: 1px solid var(--s-border);
    border-radius: var(--s-radius-md);
    box-shadow: var(--s-shadow-md);
    display: grid;
    min-width: 120px;
    z-index: 3;
}

.s-attach-pop button {
    all: unset;
    padding: 10px 12px;
    cursor: pointer;
}

.s-attach-pop button:hover {
    background: var(--s-bg);
}

.s-file-card {
    display: flex;
    align-items: center;
    gap: var(--s-space-3);
    border: 1px solid var(--s-border);
    background: #fff;
    border-radius: var(--s-radius-sm);
    padding: 8px 10px;
    text-align: right;
    cursor: pointer;
    text-decoration: none;
}

.s-file-card span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.s-chat-closed {
    margin: 0;
    padding: var(--s-space-4);
    text-align: center;
    color: var(--s-text-muted);
    background: var(--s-bg);
    border-top: 1px solid var(--s-border);
}

.s-plan-card {
    position: relative;
    overflow: hidden;
}

.s-plan-card.is-vip {
    border-width: 2px;
    border-color: var(--s-brand);
    box-shadow: var(--s-shadow-md);
}

.s-plan-ribbon {
    position: absolute;
    top: 14px;
    left: -8px;
    background: var(--s-brand);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 0 var(--s-radius-full) var(--s-radius-full) 0;
}

.s-plan-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--s-radius-sm);
    background: var(--s-brand-soft);
    color: var(--s-brand);
}

.s-feature-mark-icon {
    width: 16px;
    height: 16px;
}

.s-compare-table td.is-on {
    color: var(--s-success);
}

.s-compare-table td.is-off {
    color: var(--s-danger);
}

.s-compare-feature {
    display: inline-flex;
    align-items: center;
    gap: var(--s-space-2);
}

.s-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.s-public-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-space-3);
}

.s-public-links {
    display: none;
    gap: var(--s-space-4);
}

.s-public-links a.is-active {
    color: var(--s-brand);
    font-weight: 700;
    border-bottom: 2px solid var(--s-brand);
}

.s-public-actions {
    display: flex;
    align-items: center;
    gap: var(--s-space-2);
}

/* the signed-in person's name beside "ورود به پنل" on the plans page */
.s-public-user {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--s-text-sm);
    font-weight: 600;
    color: var(--s-text-muted);
}

@media (max-width: 480px) {
    .s-public-user {
        display: none;
    }
}

.s-value-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-space-2);
    list-style: none;
    margin: var(--s-space-4) 0 0;
    padding: 0;
}

.s-value-badges li {
    border: 1px solid var(--s-border);
    background: var(--s-bg);
    border-radius: var(--s-radius-full);
    padding: 8px 14px;
    font-size: var(--s-text-sm);
}

.s-info-grid {
    display: grid;
    gap: var(--s-space-4);
    margin-bottom: var(--s-space-5);
}

.s-hero h1 span {
    color: var(--s-brand);
}

.s-plans-cta {
    text-align: center;
    display: grid;
    gap: var(--s-space-4);
    justify-items: center;
}

.s-plans-page {
    max-width: 1120px;
}

@media (min-width: 768px) {
    .s-shortcut-grid,
    .s-info-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .s-shortcut-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .s-public-links {
        display: flex;
    }
}

.s-staff > .s-main {
    overflow: auto;
    min-height: 0;
}

/* Phase 6.7.1 — visual polish */

.s-eyebrow {
    letter-spacing: 0.02em;
    color: #6b7280;
}

.s-lead {
    color: #6b7280;
    font-size: var(--s-text-sm);
    max-width: 42em;
}

.s-page-header {
    align-items: center;
    padding-bottom: var(--s-space-1);
}

.s-page-header h1 {
    margin-top: 2px;
}

.s-section-kicker {
    margin: 0 0 var(--s-space-2);
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.s-dash-block {
    display: grid;
    gap: var(--s-space-2);
}

.s-dash-divider {
    height: 1px;
    background: var(--s-border);
    margin: var(--s-space-1) 0;
}

.s-dashboard {
    gap: var(--s-space-4);
}

.s-ops-home {
    gap: var(--s-space-4);
}

.s-ops-band {
    display: grid;
    gap: var(--s-space-3);
}

.s-section-title {
    margin: 0;
    font-size: var(--s-text-lg);
}

.s-summary-band {
    display: grid;
    gap: var(--s-space-2);
    padding: var(--s-space-3) var(--s-space-4);
    background: #eef0f3;
    border: 1px solid var(--s-border);
    border-radius: var(--s-radius-md);
}

.s-summary-band .s-stat-card {
    min-height: 92px;
    box-shadow: none;
    background: #fafbfc;
}

.s-summary-band .s-stat-card::before {
    height: 2px;
    background: #d1d5db;
}

.s-attach-unavailable {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px dashed var(--s-border);
    border-radius: var(--s-radius-sm);
    background: var(--s-bg);
    color: var(--s-text-muted);
    font-size: var(--s-text-xs);
}

.s-workspace-side.is-narrow .s-context-head {
    gap: 6px;
    padding-bottom: var(--s-space-2);
}

.s-workspace-side.is-narrow .s-context-head h2 {
    font-size: var(--s-text-md);
}

.s-workspace-side.is-narrow .s-context-card {
    padding: 10px;
}

.s-workspace-side.is-narrow .s-context-list > div {
    padding: 5px 0;
    min-height: 0;
}

.s-queue .s-dash-panel.is-dense {
    min-height: 0;
}

.s-bubble {
    max-width: min(82%, 640px);
}

.s-stat-card.is-brand::before { background: var(--s-brand); }
.s-stat-card.is-danger::before { background: var(--s-danger); }
.s-stat-card.is-warning::before { background: var(--s-warning); }
.s-stat-card.is-info::before { background: var(--s-info); }
.s-stat-card.is-success::before { background: var(--s-success); }
.s-stat-card.is-plan::before { background: var(--s-plan); }
.s-stat-card.is-entity::before { background: #d1d5db; }

.s-stat-card.is-brand .s-stat-icon { background: var(--s-brand-soft); color: var(--s-brand); }
.s-stat-card.is-danger .s-stat-icon { background: var(--s-danger-soft); color: var(--s-danger); }
.s-stat-card.is-warning .s-stat-icon { background: var(--s-warning-soft); color: var(--s-warning); }
.s-stat-card.is-info .s-stat-icon { background: var(--s-info-soft); color: var(--s-info); }
.s-stat-card.is-plan .s-stat-icon { background: var(--s-plan-soft); color: var(--s-plan); }
.s-stat-card.is-entity {
    min-height: 104px;
    background: #fafbfc;
}
.s-stat-card.is-entity .s-stat-icon {
    background: #eef0f3;
    color: #4b5563;
}
.s-stat-card.is-entity strong {
    font-size: var(--s-text-lg);
}

.s-stat-icon,
.s-section-icon,
.s-shortcut-icon,
.s-welcome-icon,
.s-plan-icon,
.s-entitlement-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.s-section-icon {
    background: var(--s-brand-soft);
    color: var(--s-brand);
}

.s-section-icon.is-info { background: var(--s-info-soft); color: var(--s-info); }
.s-section-icon.is-danger { background: var(--s-danger-soft); color: var(--s-danger); }
.s-section-icon.is-plan { background: var(--s-plan-soft); color: var(--s-plan); }

.s-dash-panel-title {
    display: flex;
    align-items: center;
    gap: var(--s-space-2);
    min-width: 0;
}

.s-dash-panel-head {
    padding-bottom: var(--s-space-2);
    border-bottom: 1px solid var(--s-border);
}

.s-dash-panel.is-dense {
    padding: var(--s-space-3);
    gap: var(--s-space-2);
}

.s-ops-split {
    display: grid;
    gap: var(--s-space-3);
}

.s-work-list {
    gap: 8px;
}

.s-work-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-space-3);
    min-height: 52px;
    padding: 8px 10px;
    border: 1px solid var(--s-border);
    border-radius: var(--s-radius-sm);
    background: var(--s-surface);
    text-decoration: none;
    color: inherit;
}

.s-work-row:hover {
    border-color: #f4d0d2;
    background: #fffafb;
}

.s-work-row__main {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.s-work-row__main strong {
    font-size: var(--s-text-sm);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.s-work-row__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.s-work-row__go {
    color: var(--s-brand);
    font-size: 11px;
    font-weight: 700;
}

.s-queue {
    display: grid;
    gap: var(--s-space-3);
    align-items: start;
}

.s-shortcut {
    display: grid;
    gap: 6px;
    padding: var(--s-space-3);
    text-decoration: none;
    color: inherit;
    min-height: 0;
}

.s-shortcut-icon {
    background: var(--s-brand-soft);
    color: var(--s-brand);
}

.s-shortcut-icon.is-info { background: var(--s-info-soft); color: var(--s-info); }
.s-shortcut-icon.is-success { background: var(--s-success-soft); color: var(--s-success); }
.s-shortcut-icon.is-plan { background: var(--s-plan-soft); color: var(--s-plan); }

.s-sidebar-brand {
    padding: 0 var(--s-space-2) var(--s-space-3);
    border-bottom: 1px solid #2a3139;
}

.s-app-sidebar .s-nav-link .s-glyph,
.s-customer-sidebar .s-nav-link .s-glyph {
    width: 18px;
    height: 18px;
    opacity: 0.9;
}

.s-context-head {
    display: grid;
    gap: 8px;
    padding-bottom: var(--s-space-3);
    border-bottom: 1px solid var(--s-border);
}

.s-context-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.s-context-card {
    background: var(--s-surface);
    border: 1px solid var(--s-border);
    border-radius: var(--s-radius-md);
    padding: var(--s-space-3);
}

.s-context-list {
    gap: 0;
}

.s-context-list > div {
    padding: 8px 0;
    min-height: 36px;
    align-items: center;
}

.s-context-list > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.s-context-actions {
    display: grid;
    gap: var(--s-space-2);
}

.s-status-actions {
    margin-top: 0;
}

.s-status-actions .s-btn {
    flex: 1;
    min-width: 0;
}

.s-chat-input {
    border-radius: 12px;
    background: var(--s-bg);
    min-height: 40px;
}

.s-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.s-icon-btn {
    width: 40px;
    min-height: 40px;
    border-radius: 12px;
}

.s-file-card,
.s-media-load {
    border-radius: 10px;
    background: #f8fafc;
    padding: 10px 12px;
}

.s-thumb img {
    border-radius: 10px;
}

.s-bubble.is-mine {
    border-radius: 16px 16px 6px 16px;
}

.s-hero {
    text-align: center;
    padding: var(--s-space-10) var(--s-space-6);
    background:
        radial-gradient(1200px 240px at 50% 0%, #fdecec 0%, transparent 70%),
        var(--s-surface);
}

.s-hero h1 {
    max-width: 16em;
    margin-inline: auto;
    font-size: 28px;
}

.s-hero .s-lead {
    margin-inline: auto;
    margin-top: var(--s-space-3);
}

.s-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--s-space-2);
    margin-top: var(--s-space-5);
}

.s-value-badges {
    justify-content: center;
}

.s-welcome-icon {
    background: #fff;
    color: var(--s-brand);
    width: 44px;
    height: 44px;
    box-shadow: var(--s-shadow-sm);
}

.s-welcome-note h2 {
    margin: 4px 0 6px;
}

.s-section-head {
    display: grid;
    gap: 4px;
    margin-bottom: var(--s-space-5);
    text-align: center;
}

.s-plan-card {
    gap: var(--s-space-3);
    padding: var(--s-space-6) var(--s-space-5);
    box-shadow: var(--s-shadow-sm);
}

.s-plan-kicker {
    margin: 0;
    font-size: var(--s-text-sm);
    font-weight: 700;
    color: var(--s-text);
}

.s-plan-flag {
    display: inline-flex;
    align-self: flex-start;
    border-radius: var(--s-radius-full);
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    background: var(--s-brand-soft);
    color: var(--s-brand);
}

.s-plan-icon.is-pro {
    background: var(--s-brand-soft);
    color: var(--s-brand);
    width: 44px;
    height: 44px;
}

.s-plan-icon.is-vip {
    background: #2a3139;
    color: #fff;
}

.s-plan-card.is-highlighted {
    border-color: var(--s-brand);
    border-width: 2px;
    box-shadow: 0 12px 32px rgba(206, 24, 30, 0.12);
    transform: translateY(-4px);
}

.s-plan-card.is-vip {
    background: #171b22;
    color: #f3f4f6;
    border-color: #171b22;
    border-width: 2px;
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.28);
}

.s-plan-card.is-vip .s-muted,
.s-plan-card.is-vip p {
    color: #9aa4b2;
}

.s-plan-card.is-vip .s-plan-kicker {
    color: #fff;
}

.s-plan-card.is-vip .s-feature-compare .is-on {
    color: #e5e7eb;
}

.s-plan-card.is-vip .s-feature-compare .is-off {
    color: #6b7280;
}

.s-plan-card.is-vip .s-btn-primary {
    background: #fff;
    color: var(--s-brand);
}

.s-plan-card.is-vip .s-btn-primary:hover:not(:disabled) {
    background: #f3f4f6;
}

.s-plan-card .s-btn {
    min-height: 44px;
    width: 100%;
}

.s-feature-compare li {
    padding: 6px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: var(--s-text-sm);
}

.s-plan-card.is-vip .s-feature-compare li {
    border-bottom-color: #2a3139;
}

.s-compare-table th.is-col-pro,
.s-compare-table td.is-col-pro {
    background: #fff7f7;
}

.s-compare-table th.is-col-vip,
.s-compare-table td.is-col-vip {
    background: #f8fafc;
}

.s-info-card {
    padding: var(--s-space-4);
    border: 1px solid var(--s-border);
    border-radius: var(--s-radius-md);
    background: var(--s-bg);
}

.s-plans-cta {
    background: var(--s-surface);
    border: 1px solid var(--s-border);
    border-radius: var(--s-radius-lg);
    padding: var(--s-space-8);
}

.s-plans-cta .s-btn {
    min-height: 44px;
    min-width: 180px;
}

/* when the two buttons wrap onto two lines (phones), keep them centred, not pushed to the right */
.s-plans-cta .s-cta-row {
    justify-content: center;
}

@media (max-width: 639px) {
    .s-work-row {
        align-items: flex-start;
        flex-wrap: wrap;
        min-height: 0;
    }

    .s-work-row__main strong {
        white-space: normal;
    }

    .s-work-row__meta {
        width: 100%;
        justify-content: flex-start;
    }

    .s-hero {
        padding: var(--s-space-6) var(--s-space-4);
        text-align: right;
    }

    .s-hero h1,
    .s-hero .s-lead,
    .s-section-head {
        text-align: right;
        margin-inline: 0;
        max-width: none;
    }

    .s-hero-actions,
    .s-value-badges {
        justify-content: flex-start;
    }

    .s-welcome-note {
        grid-template-columns: 1fr;
    }

    .s-plan-card.is-highlighted {
        transform: none;
    }
}

@media (min-width: 1024px) {
    .s-queue {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .s-ops-split {
        grid-template-columns: 1fr 1fr;
    }

    .s-hero h1 {
        font-size: 34px;
    }

    .s-btn {
        min-height: 40px;
    }

    .s-app-sidebar,
    .s-customer-sidebar {
        padding-top: var(--s-space-6);
    }
}



.s-service-actions{display:flex;gap:8px;padding:8px 12px;border-top:1px solid var(--s-border);background:var(--s-surface)}
.s-service-actions button{border:1px solid var(--s-border);background:var(--s-surface);border-radius:10px;padding:8px 12px;cursor:pointer}
.s-service-actions{flex-wrap:wrap;padding-inline:var(--s-chat-gutter,12px)}
.s-service-actions button:hover{border-color:var(--s-brand);color:var(--s-brand)}
.s-service-actions button.is-active{border-color:var(--s-brand);background:var(--s-brand-soft);color:var(--s-brand);font-weight:600}
.s-custom-service{padding:12px var(--s-chat-gutter,12px);border-top:1px solid var(--s-border);background:var(--s-bg-subtle)}
.s-custom-service-form{display:grid;gap:14px;margin:0;padding:16px 18px;border:1px solid var(--s-border);border-radius:var(--s-radius-lg);background:var(--s-surface);box-shadow:var(--s-shadow-sm)}
.s-custom-service-head{display:grid;gap:4px}
.s-custom-service-head strong{font-size:var(--s-text-md);color:var(--s-text)}
.s-custom-service-head p{margin:0;color:var(--s-text-muted);font-size:var(--s-text-sm);line-height:1.9}
.s-custom-service-grid{display:grid;gap:12px}
.s-custom-service-grid.has-price{grid-template-columns:minmax(0,1fr) 220px;align-items:start}
.s-custom-service-form label{display:grid;gap:6px;font-size:var(--s-text-sm);font-weight:600;color:var(--s-text)}
.s-custom-service-form input,.s-custom-service-form textarea{width:100%;border:1px solid var(--s-border);border-radius:10px;padding:10px 12px;background:var(--s-surface);font:inherit;font-weight:400}
.s-custom-service-form input:focus,.s-custom-service-form textarea:focus{outline:none;border-color:var(--s-brand);box-shadow:0 0 0 3px var(--s-brand-soft)}
.s-custom-service-form textarea{min-height:92px;resize:vertical}
.s-amount-input{direction:ltr;text-align:left;font-variant-numeric:tabular-nums}
.s-amount-hint{font-size:var(--s-text-xs);font-weight:400;color:var(--s-text-muted)}
.s-amount-hint.is-set{color:var(--s-success);font-weight:600}
.s-custom-service-foot{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between}
.s-custom-service-foot .s-muted{margin:0}
.s-custom-service-error{margin:0;padding:8px 12px;border-radius:10px;background:var(--s-danger-soft);color:var(--s-danger);font-size:var(--s-text-sm)}
@media (max-width:640px){.s-custom-service-grid.has-price{grid-template-columns:1fr}.s-custom-service-foot .s-btn{width:100%}}
/* service form editor (staff + manager) */
.s-form-tabs{display:flex;gap:4px;flex-wrap:wrap;border-bottom:1px solid var(--s-border)}
.s-form-tabs .s-form-tab{position:relative;display:inline-flex;align-items:center;gap:8px;margin-bottom:-1px;padding:10px 16px;border:0;border-bottom:2px solid transparent;background:transparent;font:inherit;color:var(--s-text-muted);cursor:pointer}
.s-form-tabs .s-form-tab:hover{color:var(--s-text)}
.s-form-tabs .s-form-tab.is-active{color:var(--s-brand);border-bottom-color:var(--s-brand);font-weight:700}
.s-unsaved-dot{width:8px;height:8px;border-radius:50%;background:var(--s-warning)}
.s-form-editor{display:grid;gap:16px;grid-template-columns:minmax(0,1fr) 340px;align-items:start}
.s-form-editor-main{display:grid;gap:14px}
.s-form-editor-head{display:grid;gap:4px}
.s-form-editor-head strong{font-size:var(--s-text-md)}
.s-form-editor-head p{margin:0;line-height:1.9}
.s-field-list{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.s-field-row{display:grid;grid-template-columns:32px minmax(0,1fr) 150px auto auto;gap:12px;align-items:end;padding:12px;border:1px solid var(--s-border);border-radius:var(--s-radius-md);background:var(--s-bg-subtle)}
.s-field-index{align-self:center;display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--s-border);border-radius:50%;background:var(--s-surface);font-size:var(--s-text-xs);font-weight:700;color:var(--s-text-muted)}
.s-field-label,.s-field-type{display:grid;gap:6px;font-size:var(--s-text-xs);font-weight:600;color:var(--s-text-muted)}
.s-field-label input,.s-field-type select{width:100%;padding:9px 12px;border:1px solid var(--s-border);border-radius:10px;background:var(--s-surface);font:inherit;font-size:var(--s-text-sm);color:var(--s-text)}
.s-field-label input:focus,.s-field-type select:focus{outline:none;border-color:var(--s-brand);box-shadow:0 0 0 3px var(--s-brand-soft)}
.s-field-label input[aria-invalid="true"]{border-color:var(--s-danger)}
.s-switch{position:relative;display:inline-flex;align-items:center;gap:8px;padding-bottom:9px;font-size:var(--s-text-sm);font-weight:600;color:var(--s-text-muted);cursor:pointer;user-select:none}
.s-switch input{position:absolute;width:1px;height:1px;opacity:0}
.s-switch-track{position:relative;width:36px;height:20px;border-radius:10px;background:var(--s-border);transition:background var(--s-duration) var(--s-ease)}
.s-switch-track::after{content:"";position:absolute;top:2px;right:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:transform var(--s-duration) var(--s-ease)}
.s-switch.is-on{color:var(--s-brand)}
.s-switch.is-on .s-switch-track{background:var(--s-brand)}
.s-switch.is-on .s-switch-track::after{transform:translateX(-16px)}
.s-switch input:focus-visible+.s-switch-track{box-shadow:0 0 0 3px var(--s-brand-soft)}
.s-field-actions{display:flex;gap:4px;padding-bottom:4px}
.s-field-actions .s-icon-btn{width:34px;height:34px}
.s-field-actions .s-icon-btn.is-danger:hover:not(:disabled){border-color:var(--s-danger);color:var(--s-danger)}
.s-add-field{justify-self:start}
.s-form-editor-foot{display:flex;flex-wrap:wrap;gap:8px;padding-top:12px;border-top:1px solid var(--s-border)}
.s-last-edit{margin:0;padding:10px 12px;border-radius:10px;background:var(--s-bg-subtle);font-size:var(--s-text-sm);color:var(--s-text-muted)}
.s-last-edit b{color:var(--s-text)}
.s-form-preview{position:sticky;top:16px;display:grid;gap:10px}
.s-service-card.is-preview{max-width:none;margin:0;box-shadow:none}
.s-field-optional{font-size:var(--s-text-xs);font-weight:400;color:var(--s-text-muted)}
@media (max-width:1100px){.s-form-editor{grid-template-columns:1fr}.s-form-preview{position:static}}
@media (max-width:720px){.s-field-row{grid-template-columns:28px minmax(0,1fr)}.s-field-type,.s-switch,.s-field-actions{grid-column:2}}
.s-chat-system.is-billing{background:var(--s-success-soft);color:var(--s-success);font-weight:600}
.s-service-price label{display:grid;gap:6px;font-size:var(--s-text-sm);font-weight:600}
.s-service-card{max-width:min(92%,620px);margin:10px auto;padding:16px;border:1px solid var(--s-border);border-radius:16px;background:var(--s-surface);box-shadow:0 4px 18px rgba(0,0,0,.05)}
/* In the chat the card is a flex item with auto margins, which shrank it to its content (≈200px inputs):
   give it a real width, and lay short answers out in two columns with long text and the button full width. */
.s-chat-list .s-service-card{width:min(100%,680px);max-width:none;align-self:center;padding:18px 20px}
.s-chat-list .s-service-card>strong{display:block;margin-bottom:2px;font-size:var(--s-text-md)}
.s-chat-list .s-service-form{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px;row-gap:12px}
.s-chat-list .s-service-form>.is-wide,.s-chat-list .s-service-form>.s-btn,.s-chat-list .s-service-form>p{grid-column:1/-1}
.s-service-form label>span{font-size:var(--s-text-sm);font-weight:600;color:var(--s-text)}
.s-service-form input:focus,.s-service-form textarea:focus{outline:none;border-color:var(--s-brand);box-shadow:0 0 0 3px var(--s-brand-soft)}
@media (max-width:640px){.s-chat-list .s-service-form{grid-template-columns:1fr}.s-chat-list .s-service-card{padding:16px}}
.s-service-form{display:grid;gap:10px;margin-top:12px}.s-service-form label{display:grid;gap:5px}.s-service-form input,.s-service-form textarea,.s-service-price input{width:100%;border:1px solid var(--s-border);border-radius:10px;padding:10px;background:var(--s-surface)}
.s-service-form textarea{min-height:82px;resize:vertical}.s-service-summary p{margin:8px 0}.s-service-price{display:grid;gap:8px;margin-top:12px}.s-service-paid{font-weight:700}
.s-notification{position:relative;margin-inline-start:auto}.s-bell{position:relative}.s-bell>span{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;border-radius:9px;background:#ce181e;color:#fff;font-size:11px;display:grid;place-items:center}
.s-notification-pop{position:absolute;z-index:50;top:42px;left:0;width:min(340px,85vw);max-height:420px;overflow:auto;background:var(--s-surface);border:1px solid var(--s-border);border-radius:14px;box-shadow:0 12px 32px rgba(0,0,0,.14);padding:8px}
.s-notification-pop button{display:grid;width:100%;text-align:right;gap:4px;padding:10px;border:0;border-bottom:1px solid var(--s-border);background:transparent}.s-notification-pop button.is-unread{font-weight:700}.s-notification-pop small{font-weight:400}

/* ---- Navigation drawer: below 1024px every role's sidebar opens from the top bar's menu button ---- */
.s-topbar-start{display:flex;align-items:center;gap:var(--s-space-2);min-width:0;margin-inline-end:auto}
.s-menu-btn{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:42px;height:42px;border:1px solid var(--s-border);border-radius:12px;background:var(--s-surface);color:var(--s-text);cursor:pointer}
.s-menu-btn:hover{border-color:var(--s-brand);color:var(--s-brand)}
.s-menu-btn .s-glyph{width:22px;height:22px}
.s-menu-btn:focus-visible,.s-drawer-close:focus-visible,.s-chat-back:focus-visible{outline:2px solid var(--s-brand);outline-offset:2px}
.s-sidebar-brand{position:relative}
.s-drawer-close,.s-drawer-account,.s-drawer-backdrop{display:none}
@keyframes s-fade-in{from{opacity:0}to{opacity:1}}
@media (max-width:1023.98px){
  .s-app-sidebar{display:flex;position:fixed;inset-block:0;inset-inline-start:0;z-index:var(--s-z-overlay);width:min(304px,86vw);overflow-y:auto;overscroll-behavior:contain;border-left:0;padding-top:var(--s-space-4);padding-bottom:calc(var(--s-space-4) + env(safe-area-inset-bottom));box-shadow:-16px 0 40px rgba(15,23,42,.3);transform:translateX(105%);visibility:hidden;transition:transform .24s var(--s-ease),visibility 0s linear .24s}
  .s-app-sidebar.is-open{transform:none;visibility:visible;transition:transform .24s var(--s-ease)}
  .s-drawer-backdrop{display:block;position:fixed;inset:0;z-index:calc(var(--s-z-overlay) - 1);background:rgba(15,23,42,.5);animation:s-fade-in .2s ease}
  .s-drawer-close{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;position:absolute;top:0;inset-inline-end:0;width:38px;height:38px;border-radius:10px;background:rgba(255,255,255,.08);color:#fff;cursor:pointer}
  .s-drawer-close .s-glyph{width:20px;height:20px}
  .s-sidebar-brand{padding-inline-end:46px}
  .s-drawer-account{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.06)}
  .s-drawer-account>span:last-child{display:grid;gap:2px;min-width:0}
  .s-drawer-account strong{color:#fff;font-size:var(--s-text-sm);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .s-drawer-account small{color:var(--s-sidebar-muted);font-size:var(--s-text-xs)}
  .s-drawer-avatar{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;height:36px;border-radius:50%;background:var(--s-brand);color:#fff}
  .s-drawer-avatar .s-glyph{width:20px;height:20px}
  .s-app-sidebar .s-nav-link{min-height:46px;font-size:15px}
}
@media (min-width:1024px){.s-menu-btn,.s-chat-header .s-sheet-trigger{display:none}}
@media (max-width:639px){
  /* the name and role move into the drawer; the bar keeps menu, brand and notifications */
  .s-topbar-userblock{display:none}
  .s-topbar{padding-inline:12px}
  .s-chat-header{padding:8px 12px;gap:10px}
  .s-chat-back{width:40px;padding:0}
  .s-chat-back span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .s-chat-header .s-chat-title{font-size:15px;line-height:1.5;-webkit-line-clamp:1;line-clamp:1}
  .s-chat-header-actions .s-btn{min-height:36px;padding:0 10px;font-size:var(--s-text-xs);white-space:nowrap}
}
@media (prefers-reduced-motion:reduce){.s-app-sidebar{transition:none!important}.s-drawer-backdrop{animation:none}}

/* ---- Team page: role tabs and the "add colleague" dialog ---- */
.s-btn-icon-text{display:inline-flex;align-items:center;gap:8px}
.s-btn-icon-text .s-glyph{width:18px;height:18px}
.s-seg{display:inline-flex;gap:4px;padding:4px;border:1px solid var(--s-border);border-radius:12px;background:var(--s-bg-subtle);max-width:100%;overflow-x:auto}
.s-seg-btn{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;min-height:38px;padding:0 14px;border-radius:9px;font-size:var(--s-text-sm);font-weight:600;color:var(--s-text-muted);white-space:nowrap;cursor:pointer}
.s-seg-btn:hover{color:var(--s-text)}
.s-seg-btn.is-active{background:var(--s-surface);color:var(--s-brand);box-shadow:var(--s-shadow-sm)}
.s-seg-btn:focus-visible{outline:2px solid var(--s-brand);outline-offset:1px}
.s-invite-form,.s-invite-done{display:grid;gap:14px}
.s-role-cards{display:grid;gap:8px;margin:0;padding:0;border:0;min-width:0}
.s-role-cards legend{margin-bottom:6px;padding:0;font-size:var(--s-text-sm);font-weight:600}
.s-role-card{position:relative;display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;align-items:start;padding:12px 14px;border:1px solid var(--s-border);border-radius:12px;background:var(--s-surface);cursor:pointer;transition:border-color var(--s-duration) var(--s-ease),background var(--s-duration) var(--s-ease)}
.s-role-card:hover{border-color:#e9b3b6}
.s-role-card.is-selected{border-color:var(--s-brand);background:var(--s-brand-soft);box-shadow:0 0 0 1px var(--s-brand) inset}
.s-role-card input{position:absolute;opacity:0;pointer-events:none}
.s-role-card:has(input:focus-visible){outline:2px solid var(--s-brand);outline-offset:2px}
.s-role-card-icon{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;background:var(--s-bg-subtle);color:var(--s-brand)}
.s-role-card.is-selected .s-role-card-icon{background:var(--s-surface)}
.s-role-card>span:last-child{display:grid;gap:3px}
.s-role-card strong{font-size:var(--s-text-sm)}
.s-role-card small{font-size:var(--s-text-xs);line-height:1.8;color:var(--s-text-muted)}
.s-invite-note{display:flex;gap:8px;align-items:flex-start;margin:0;padding:10px 12px;border-radius:10px;background:var(--s-bg-subtle);font-size:var(--s-text-xs);line-height:1.9;color:var(--s-text-muted)}
.s-invite-note .s-glyph{flex-shrink:0;width:18px;height:18px;margin-top:2px;color:var(--s-text)}
.s-form-error{margin:0;padding:10px 12px;border-radius:10px;background:var(--s-danger-soft,#fdecec);color:var(--s-danger);font-size:var(--s-text-sm)}
.s-modal-actions{display:flex;flex-wrap:wrap;gap:8px}
.s-modal-actions .s-btn:first-child{flex:1}
.s-invite-done p{margin:0;line-height:1.9}
.s-invite-icon{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;background:var(--s-success-soft);color:var(--s-success)}
.s-invite-icon.is-warning{background:var(--s-warning-soft);color:#92400e}
.s-invite-icon .s-glyph{width:26px;height:26px}
.s-invite-warning{padding:10px 12px;border-radius:10px;background:var(--s-warning-soft);color:#92400e;font-size:var(--s-text-sm)}
.s-invite-done b[dir="ltr"],.s-invite-warning b[dir="ltr"]{unicode-bidi:isolate}
.s-seg{justify-self:start}
/* dialogs and sheets never run off a short phone screen; their content scrolls instead */
.s-modal,.s-sheet{max-height:calc(100dvh - 2 * var(--s-space-4));overflow-y:auto;overscroll-behavior:contain}
/* the assignment form in the narrow ticket side panel: one column, so the supporter search is full width */
.s-workspace-side .s-context-card.s-form-grid{grid-template-columns:1fr}
.s-picker-list{overflow-x:hidden}
.s-picker-item>*{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ---- Manager overviews (devices, subscriptions): count cards that double as filters ---- */
.s-overview-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}
.s-ov-card{all:unset;box-sizing:border-box;display:grid;gap:4px;padding:14px 16px;border:1px solid var(--s-border);border-radius:var(--s-radius-md);background:var(--s-surface);cursor:pointer;transition:border-color var(--s-duration) var(--s-ease),box-shadow var(--s-duration) var(--s-ease)}
.s-ov-card strong{font-size:var(--s-text-xl);line-height:1.2;color:var(--s-text)}
.s-ov-card span{font-size:var(--s-text-xs);color:var(--s-text-muted)}
.s-ov-card:hover{border-color:#e9b3b6}
.s-ov-card:focus-visible{outline:2px solid var(--s-brand);outline-offset:2px}
.s-ov-card.is-active{border-color:var(--s-brand);box-shadow:0 0 0 1px var(--s-brand) inset;background:var(--s-brand-soft)}
.s-ov-card.is-attention strong{color:#b45309}
.s-ov-card.is-attention{border-color:#f6d58a}
.s-ov-card.is-attention.is-active{border-color:var(--s-brand)}
.s-filter-chip{justify-self:start;display:inline-flex;align-items:center;gap:10px;padding:6px 8px 6px 12px;border:1px solid var(--s-border);border-radius:var(--s-radius-full);background:var(--s-surface);font-size:var(--s-text-sm)}
.s-filter-chip a{font-weight:600;text-decoration:none}
.s-filter-chip button{all:unset;display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;cursor:pointer;color:var(--s-text-muted)}
.s-filter-chip button:hover{background:var(--s-bg-subtle);color:var(--s-text)}
.s-filter-chip .s-glyph{width:16px;height:16px}
.s-cell-sub{display:block;margin-top:2px;font-size:var(--s-text-xs);font-weight:400;color:var(--s-text-muted)}
.s-cell-sub.is-warning{color:#b45309;font-weight:600}
.s-cell-sub.is-danger{color:var(--s-danger);font-weight:600}
.s-cell-muted{color:var(--s-text-muted)}
.s-cell-code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:var(--s-text-xs);text-align:right}
.s-cell-actions{white-space:nowrap;text-align:left}
.s-row-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.s-row-actions .s-btn,.s-cell-actions .s-btn{min-height:34px;padding:0 12px;font-size:var(--s-text-xs)}
.s-btn-danger-text{color:var(--s-danger)}
.s-btn-danger-text:hover:not(:disabled){background:var(--s-danger-soft)}
.s-device-head{display:grid;gap:2px;padding:10px 12px;border-radius:10px;background:var(--s-bg-subtle)}
.s-invite-form .s-form-grid{margin:0}
@media (max-width:639px){.s-overview-cards{grid-template-columns:1fr 1fr}.s-ov-card{padding:12px}.s-mobile-cards .s-row-actions{justify-content:flex-start}}
.s-toolbar-search>.s-field:first-child{flex:1 1 300px;max-width:460px}
.s-toolbar-count{margin:0 0 10px;font-size:var(--s-text-sm);color:var(--s-text-muted)}
.s-btn.s-btn-danger-text{color:var(--s-danger)}

/* ---- "a newer version was deployed" banner (tab opened before an update) ---- */
.s-update-banner{position:fixed;inset-inline:16px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:var(--s-z-toast);margin-inline:auto;max-width:640px;display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;padding:12px 14px;border-radius:14px;background:#111827;color:#fff;box-shadow:0 12px 32px rgba(15,23,42,.3);font-size:var(--s-text-sm);line-height:1.8}
.s-update-banner span{flex:1 1 240px}
.s-update-reload,.s-update-later{all:unset;box-sizing:border-box;min-height:36px;padding:0 14px;border-radius:10px;cursor:pointer;font-weight:700;display:inline-flex;align-items:center}
.s-update-reload{background:var(--s-brand);color:#fff}
.s-update-later{color:#d1d5db}
.s-update-reload:focus-visible,.s-update-later:focus-visible{outline:2px solid #fff;outline-offset:2px}

/* ---- UI audit fixes (all roles, phone → desktop) ---- */
/* rows like "device name / serial" on the customer file: the gap only works on a grid (the two ran together) */
.s-dash-row:not(.s-card-link){display:grid}
/* the small "see all" links on cards were 20px tall: a real touch target */
.s-stat-link{display:inline-flex;align-items:center;min-height:32px}
/* status filter chips wrap on phones instead of scrolling sideways with a cut-off chip */
@media (max-width:767px){.s-chips{flex-wrap:wrap;overflow:visible;padding-bottom:0}}
/* the message box never shows a scrollbar until its text reaches the height cap */
.s-chat-input{overflow-y:hidden}
/* tables: codes, badges and dates never break mid-token; secondary columns fold away between 1024 and 1280px */
.s-cell-nowrap,.s-cell-code{white-space:nowrap}
.s-table .s-badge{white-space:nowrap}
.s-table .s-row-actions{flex-wrap:nowrap}
.s-only-narrow{display:none}
@media (max-width:1279px){.s-col-wide{display:none}.s-only-narrow{display:block}}
/* the billing / custom-service panel keeps the conversation visible on small screens */
.s-custom-service{max-height:55dvh;overflow-y:auto;overscroll-behavior:contain}
@media (max-width:1023px){.s-custom-service{max-height:50dvh}}
@media (max-width:639px){.s-service-actions{gap:6px;padding-block:6px}.s-service-actions button{padding:7px 10px;font-size:var(--s-text-xs)}}
/* slimmer scrollbars on the app's own scroll areas */
.s-app-body,.s-chat-list,.s-workspace-side,.s-table-wrap,.s-modal,.s-sheet,.s-app-sidebar,.s-picker-list,.s-notification-pop,.s-custom-service{scrollbar-width:thin;scrollbar-color:#c3c9d2 transparent}

/* ---- Plan price and duration (set by managers on the plans page) ---- */
.s-plan-price{margin:2px 0 0;font-size:var(--s-text-lg);font-weight:800;color:var(--s-text)}
.s-plan-price.is-missing{font-size:var(--s-text-sm);font-weight:600;color:var(--s-text-muted)}
.s-plan-card.is-vip .s-plan-price{color:#fff}
.s-plan-card.is-vip .s-plan-price.is-missing{color:#9aa4b2}
.s-plan-terms{display:grid;gap:10px}
.s-plan-terms-note{margin:0;font-size:var(--s-text-sm)}
.s-plan-terms-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.s-plan-terms-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;padding:12px 14px;border:1px solid var(--s-border);border-radius:var(--s-radius-md);background:var(--s-bg)}
.s-plan-terms-main{display:grid;gap:3px;min-width:0}
.s-plan-terms-main strong{display:inline-flex;align-items:center;gap:8px}
.s-plan-terms-price{font-weight:700}
.s-plan-terms-price.is-missing{color:#b45309}
@media (max-width:639px){.s-plan-terms-row .s-btn{width:100%}}

/* ---- Voice notes: record in the composer, play in the bubble (Telegram-style) ---- */
.s-voice{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:10px;row-gap:1px;align-items:center;width:min(300px,64vw);color:inherit}
.s-composer .s-voice{width:min(100%,440px)}
.s-voice-play{grid-row:1/span 2;flex-shrink:0;width:42px;height:42px;border:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;background:var(--s-brand);color:#fff;transition:transform .12s ease}
.s-voice-play:active{transform:scale(.94)}
.s-voice-play:disabled{cursor:progress}
.s-voice-play .s-glyph{width:18px;height:18px}
.s-voice-spinner{width:18px;height:18px;border-radius:50%;border:2px solid currentColor;border-top-color:transparent;animation:s-voice-spin .8s linear infinite}
.s-voice-wave{grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:space-between;gap:2px;height:28px;cursor:pointer;touch-action:none;color:var(--s-brand);border-radius:4px}
.s-voice-wave:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.s-voice-wave span{flex:1 1 0;min-width:2px;max-width:3px;border-radius:2px;background:currentColor;opacity:.3;transition:opacity .15s ease}
.s-voice-wave span.is-played{opacity:1}
.s-voice.is-loading .s-voice-wave span{opacity:.18}
.s-voice-foot{grid-column:2/span 2;grid-row:2;display:flex;align-items:center;gap:8px;min-height:14px;font-size:11px;line-height:14px}
.s-voice-time{opacity:.8}
/* speed: a small filled pill inside a 32px-tall touch target */
.s-voice-rate{grid-column:3;grid-row:1;min-width:34px;height:32px;padding:0;border:0;background:transparent;color:var(--s-brand);font:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
/* Vazirmatn digits sit above the em-box centre; 3px of top padding centres the ink (measured) */
.s-voice-rate-pill{box-sizing:border-box;min-width:34px;height:20px;padding:3px 6px 0;border-radius:999px;background:var(--s-brand-soft);display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;line-height:1;transition:background .15s ease}
.s-voice-rate:hover .s-voice-rate-pill{background:#f9d7d9}
.s-voice-rate:focus-visible{outline:none}
.s-voice-rate:focus-visible .s-voice-rate-pill{outline:2px solid currentColor;outline-offset:2px}
body.sepand-app-shell .s-voice-rate{color:var(--s-brand)}
.s-voice-download{color:inherit;text-decoration:underline;font-size:11px}
/* in the other side's (brand-red) bubble the button and bars turn white */
.s-bubble:not(.is-mine) .s-voice-play{background:#fff;color:var(--s-brand)}
body.sepand-app-shell .s-bubble:not(.is-mine) .s-voice-play{color:var(--s-brand)}
.s-bubble:not(.is-mine) .s-voice-wave{color:#fff}
.s-bubble:not(.is-mine) .s-voice-rate,body.sepand-app-shell .s-bubble:not(.is-mine) .s-voice-rate{color:#fff}
.s-bubble:not(.is-mine) .s-voice-rate-pill{background:rgb(255 255 255 / 22%)}
.s-bubble:not(.is-mine) .s-voice-rate:hover .s-voice-rate-pill{background:rgb(255 255 255 / 32%)}
body.sepand-app-shell .s-voice-play{color:#fff}
/* composer while recording or reviewing */
.s-composer-row.s-voice-rec{align-items:center}
.s-voice-rec-panel{flex:1;min-width:0;min-height:44px;display:flex;align-items:center;gap:10px;padding:0 12px;border:1px solid var(--s-border);border-radius:12px;background:var(--s-bg);overflow:hidden}
.s-voice-rec-panel.is-preview{padding:2px 10px}
.s-voice-rec-dot{flex-shrink:0;width:10px;height:10px;border-radius:50%;background:#e11d48;animation:s-voice-pulse 1.1s ease-in-out infinite}
.s-voice-rec-time{flex-shrink:0;font-weight:700;font-variant-numeric:tabular-nums;min-width:38px}
.s-voice-rec-levels{flex:1;min-width:0;height:26px;display:flex;align-items:center;gap:2px;overflow:hidden;color:var(--s-brand)}
.s-voice-rec-levels span{flex:0 0 3px;border-radius:2px;background:currentColor;opacity:.8}
.s-voice-cancel{color:var(--s-text-muted)}
.s-voice-cancel:hover{color:#e11d48;border-color:#fecdd3}
.s-mic-btn .s-glyph{width:21px;height:21px}
.s-composer-hint.is-error{color:#b91c1c}
@keyframes s-voice-pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.8)}}
@keyframes s-voice-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.s-voice-rec-dot,.s-voice-spinner{animation:none}.s-voice-play{transition:none}}
@media (max-width:639px){.s-voice{width:min(270px,68vw)}.s-voice-rec-panel{gap:8px;padding:0 10px}}

/* ---- Persian (Jalali) date field: typed or picked; the calendar floats above the page, a sheet on phones ---- */
.s-date-field label{display:block}
.s-date-control{position:relative;display:flex;align-items:stretch}
/* the input is left-to-right (digits and slashes) while the icon sits on the right of the right-to-left page */
.s-date-control input{flex:1;min-width:0;text-align:right;padding-right:48px;padding-left:12px}
.s-date-toggle{position:absolute;inset-block:4px;inset-inline-start:4px;width:38px;border:0;border-radius:8px;background:var(--s-bg);color:var(--s-text-muted);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.s-date-toggle:hover,.s-date-toggle[aria-expanded="true"]{background:var(--s-brand-soft);color:var(--s-brand)}
body.sepand-app-shell .s-date-toggle{color:var(--s-text-muted)}
body.sepand-app-shell .s-date-toggle:hover,body.sepand-app-shell .s-date-toggle[aria-expanded="true"]{color:var(--s-brand)}
.s-date-help{min-height:18px;font-size:var(--s-text-xs);color:var(--s-text-muted)}
.s-date-help.is-error{color:#b91c1c}
.s-date-pop{position:fixed;z-index:calc(var(--s-z-overlay) + 20);width:300px;background:var(--s-surface);color:var(--s-text);border:1px solid var(--s-border);border-radius:14px;box-shadow:0 16px 40px rgba(15,23,42,.18);padding:12px;font-family:var(--s-font);direction:rtl}
.s-date-pop button{font:inherit}
.s-date-pop.is-sheet{inset-inline:0;bottom:0;top:auto;width:auto;border-radius:18px 18px 0 0;padding:14px 16px calc(14px + env(safe-area-inset-bottom));animation:s-date-rise .18s ease-out}
.s-date-backdrop{position:fixed;inset:0;z-index:calc(var(--s-z-overlay) + 19);background:rgba(15,23,42,.45);animation:s-fade-in .18s ease}
.s-date-head{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:8px}
.s-date-nav{width:36px;height:36px;border:0;border-radius:10px;background:transparent;color:var(--s-text);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.s-date-nav:hover{background:var(--s-bg)}
body.sepand-app-shell .s-date-nav{color:var(--s-text)}
.s-date-title{display:flex;align-items:center;gap:4px;font-weight:700}
.s-date-title button{border:0;background:transparent;color:var(--s-text);font-weight:700;padding:6px 8px;border-radius:8px;cursor:pointer}
.s-date-title button:hover{background:var(--s-bg)}
body.sepand-app-shell .s-date-title button{color:var(--s-text)}
.s-date-grid{display:grid;gap:2px}
.s-date-row{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}
.s-date-row.is-weekdays span{text-align:center;font-size:12px;font-weight:700;color:var(--s-text-muted);padding:4px 0}
.s-date-row.is-weekdays .is-holiday{color:#dc2626}
.s-date-row>span{display:flex;justify-content:center}
.s-date-day{width:36px;height:36px;border:0;border-radius:50%;background:transparent;color:var(--s-text);cursor:pointer;font-size:14px;display:inline-flex;align-items:center;justify-content:center}
body.sepand-app-shell .s-date-day{color:var(--s-text)}
.s-date-day:hover:not(:disabled){background:var(--s-bg)}
.s-date-day.is-holiday,body.sepand-app-shell .s-date-day.is-holiday{color:#dc2626}
.s-date-day.is-today{box-shadow:inset 0 0 0 1.5px var(--s-brand);font-weight:700}
.s-date-day.is-selected,body.sepand-app-shell .s-date-day.is-selected{background:var(--s-brand);color:#fff;font-weight:700}
.s-date-day:disabled,body.sepand-app-shell .s-date-day:disabled{color:#c3c9d2;cursor:not-allowed}
.s-date-day:focus-visible{outline:2px solid var(--s-brand);outline-offset:1px}
.s-date-empty{height:36px}
.s-date-picklist{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:4px 0}
.s-date-picklist button{height:42px;border:1px solid var(--s-border);border-radius:10px;background:var(--s-surface);color:var(--s-text);cursor:pointer}
body.sepand-app-shell .s-date-picklist button{color:var(--s-text)}
.s-date-picklist button:hover:not(:disabled){border-color:var(--s-brand)}
.s-date-picklist button.is-selected,body.sepand-app-shell .s-date-picklist button.is-selected{background:var(--s-brand);border-color:var(--s-brand);color:#fff}
.s-date-picklist button:disabled{opacity:.4;cursor:not-allowed}
.s-date-foot{display:flex;gap:6px;margin-top:10px;padding-top:10px;border-top:1px solid var(--s-border)}
.s-date-foot button{min-height:36px;padding:0 12px;border:1px solid var(--s-border);border-radius:10px;background:var(--s-surface);color:var(--s-text);cursor:pointer}
body.sepand-app-shell .s-date-foot button{color:var(--s-text)}
.s-date-foot button:first-child,body.sepand-app-shell .s-date-foot button:first-child{border-color:var(--s-brand);color:var(--s-brand)}
.s-date-foot button:disabled{opacity:.45;cursor:not-allowed}
.s-date-foot .s-date-close{margin-inline-start:auto}
.s-date-pop.is-sheet .s-date-day{width:42px;height:42px;font-size:15px}
.s-date-pop.is-sheet .s-date-empty{height:42px}
@keyframes s-date-rise{from{transform:translateY(24px);opacity:.6}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.s-date-pop.is-sheet,.s-date-backdrop{animation:none}}
/* plan features editor (managers) */
.s-feature-editor .s-dash-panel-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.s-feature-editor-actions{display:flex;flex-wrap:wrap;gap:8px}
.s-feature-editor-note{margin:10px 0}
.s-feature-table th:not(:first-child),.s-feature-table td{text-align:center}
.s-feature-table.is-editing th[scope=row]{min-width:260px}
.s-feature-title-edit{display:flex;align-items:center;gap:8px}
.s-feature-title-edit .s-glyph{flex-shrink:0;width:18px;height:18px;color:var(--s-brand)}
.s-feature-title-edit input{flex:1;min-width:0;height:38px;padding:0 10px;border:1px solid var(--s-border);border-radius:10px;background:var(--s-surface);color:var(--s-text);font:inherit;font-size:var(--s-text-sm)}
.s-feature-title-edit input:focus-visible{outline:2px solid var(--s-brand);outline-offset:1px;border-color:var(--s-brand)}
.s-feature-title-edit input[aria-invalid=true]{border-color:var(--s-danger)}
.s-feature-title-edit .s-badge{flex-shrink:0;white-space:nowrap}
.s-feature-check{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;cursor:pointer}
.s-feature-check input{width:20px;height:20px;margin:0;accent-color:var(--s-brand);cursor:pointer}
.s-feature-check-plan{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.s-feature-confirm ul{margin:0 0 12px;padding:0 18px 0 0;display:grid;gap:8px;max-height:50vh;overflow:auto;font-size:var(--s-text-sm);line-height:1.9}
.s-feature-confirm li.is-warning{color:#b45309}
.s-feature-confirm li .s-cell-sub{display:block}
@media (max-width:640px){
.s-feature-table.is-editing,.s-feature-table.is-editing tbody,.s-feature-table.is-editing tr,.s-feature-table.is-editing th,.s-feature-table.is-editing td{display:block}
.s-feature-table.is-editing thead{display:none}
.s-feature-table.is-editing tr{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 0;border-bottom:1px solid var(--s-border)}
.s-feature-table.is-editing th[scope=row]{grid-column:1/-1;min-width:0;height:auto;padding:0;border:0}
.s-feature-table.is-editing td,.s-feature-table.is-editing td.is-col-vip,.s-feature-table.is-editing td.is-col-pro{height:auto;padding:0;border:0;background:none}
.s-feature-table.is-editing .s-feature-check{display:flex;justify-content:flex-start;width:100%;min-height:44px;padding:0 12px;border:1px solid var(--s-border);border-radius:12px}
.s-feature-table.is-editing .s-feature-check-plan{position:static;width:auto;height:auto;overflow:visible;clip:auto;font-size:var(--s-text-xs);color:var(--s-text)}
.s-feature-title-edit{flex-wrap:wrap}
.s-feature-table:not(.is-editing) th,.s-feature-table:not(.is-editing) td{padding:8px 4px}
.s-feature-table:not(.is-editing) tr>:first-child{padding-inline-start:8px}
}
/* video compression in the composer */
.s-composer-preview-main{flex:1;min-width:0;display:grid;gap:4px}
.s-video-prep{flex:1;min-width:0;display:grid;gap:6px;font-size:var(--s-text-xs);color:var(--s-text-muted)}
.s-video-prep-title{display:flex;align-items:center;gap:6px;min-width:0;color:var(--s-text);font-weight:600}
.s-video-prep-title .s-glyph{flex-shrink:0;width:18px;height:18px;color:var(--s-brand)}
.s-video-prep-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.s-video-prep-bar{display:block;height:6px;overflow:hidden;border-radius:3px;background:#eef0f3}
.s-video-prep-bar span{display:block;height:100%;border-radius:3px;background:var(--s-brand);transition:width .2s linear}
.s-video-prep-note{margin:0;font-size:var(--s-text-xs);line-height:1.8;color:#047857}
.s-video-prep-note.is-error{color:#b91c1c}
/* hold to record */
.s-mic-btn{position:relative;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.s-mic-btn.is-holding{transform:scale(1.15);background:#e11d48;box-shadow:0 0 0 6px rgba(225,29,72,.18)}
.s-hold-lock{position:absolute;bottom:calc(100% + 12px);left:calc(50% - 15px);width:30px;height:30px;display:flex;align-items:center;justify-content:center;border:1px solid var(--s-border);border-radius:50%;background:var(--s-surface);color:var(--s-text-muted);box-shadow:var(--s-shadow-sm);pointer-events:none}
.s-hold-lock .s-glyph{width:16px;height:16px}
.s-hold-panel{-webkit-user-select:none;user-select:none}
.s-hold-cancel{flex-shrink:0;margin-inline-start:auto;font-size:var(--s-text-xs);color:var(--s-text-muted);white-space:nowrap}
.s-composer-hint.is-info{color:var(--s-brand)}
@media (prefers-reduced-motion:reduce){.s-video-prep-bar span{transition:none}}
/* notification sound switch */
.s-notification-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border-bottom:1px solid var(--s-border);background:var(--s-surface)}
.s-notification-pop .s-notification-head .s-notification-sound{display:inline-flex;align-items:center;width:auto;min-height:32px;padding:0 10px;border:1px solid var(--s-border);border-radius:999px;font-size:11px;font-weight:600;white-space:nowrap}
.s-notification-pop .s-notification-head .s-notification-sound[aria-pressed=false]{color:var(--s-text-muted)}
/* light attachment cards inside the red (other side's) bubble keep dark text; they inherited white */
body.sepand-app-shell .s-bubble .s-media-load,body.sepand-app-shell .s-bubble .s-file-card{color:var(--s-text)}
body.sepand-app-shell .s-bubble:not(.is-mine) .s-file-card .s-muted{color:var(--s-text-muted)}
/* camera (computer webcam) */
.s-camera{display:grid;gap:12px}
.s-camera-view{position:relative;overflow:hidden;border-radius:12px;background:#111827;aspect-ratio:16/9}
.s-camera-view video{display:block;width:100%;height:100%;object-fit:cover}
.s-camera-wait{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#fff;font-size:var(--s-text-sm)}
.s-camera-rec{position:absolute;top:10px;inset-inline-start:10px;display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;background:rgb(0 0 0 / 55%);color:#fff;font-weight:700;font-size:var(--s-text-sm)}
/* device form: record → receive and inspect → cost → payment */
.s-device-steps{display:flex;gap:4px;margin:8px 0 4px;padding:0;list-style:none;counter-reset:step}
.s-device-steps li{flex:1;min-width:0;padding-top:8px;border-top:3px solid var(--s-border);font-size:11px;line-height:1.5;color:var(--s-text-muted);text-align:center;counter-increment:step}
.s-device-steps li::before{content:counter(step,persian) ". "}
.s-device-steps li.is-done{border-top-color:#047857;color:#047857}
.s-device-steps li.is-current{border-top-color:var(--s-brand);color:var(--s-text);font-weight:700}
.s-service-note{margin:6px 0;padding:8px 10px;border-radius:10px;background:var(--s-bg);font-size:var(--s-text-xs);line-height:1.9;color:var(--s-text)}
/* hosting space: the meter at the bottom of the manager's sidebar */
.s-storage-meter{margin-top:auto;display:grid;gap:8px;padding:12px 14px;border:1px solid transparent;border-radius:var(--s-radius-md);background:#151a21;text-decoration:none}
body.sepand-app-shell a.s-storage-meter{color:#d0d7de}
.s-storage-meter:hover{border-color:#2f3842}
.s-storage-meter:focus-visible{outline:2px solid #fff;outline-offset:2px}
.s-storage-meter-head{display:flex;align-items:center;gap:8px;font-size:var(--s-text-sm);font-weight:600;color:#f3f4f6}
.s-storage-meter-head .s-glyph{width:18px;height:18px}
.s-storage-meter-head b{margin-inline-start:auto;font-variant-numeric:tabular-nums}
.s-storage-meter.is-warning .s-storage-meter-head b{color:#fbbf24}
.s-storage-meter.is-critical .s-storage-meter-head b{color:#f87171}
.s-storage-meter-text{font-size:11px;line-height:1.7;color:#9ca3af}
.s-storage-bar{display:block;height:8px;overflow:hidden;border-radius:999px;background:rgb(255 255 255 / 12%)}
.s-storage-bar span{display:block;height:100%;border-radius:999px;background:#10b981;transition:width .3s ease}
.is-warning .s-storage-bar span{background:#f59e0b}
.is-critical .s-storage-bar span{background:#ef4444}
.s-app-sidebar:has(.s-storage-meter) .s-sidebar-logout{margin-top:var(--s-space-3)}
/* hosting space page */
.s-storage-big{display:flex;flex-wrap:wrap;align-items:baseline;gap:12px;margin:10px 0}
.s-storage-big b{font-size:30px;line-height:1.2;font-variant-numeric:tabular-nums}
.s-storage-bar.is-large{height:14px;background:#eef0f3}
.s-storage-level{margin:10px 0 0;font-size:var(--s-text-sm);line-height:1.9;color:var(--s-text-muted)}
.s-storage-level.is-ok{color:#047857}
.s-storage-level.is-warning{color:#b45309;font-weight:600}
.s-storage-level.is-critical{color:#b91c1c;font-weight:700}
.s-storage-parts{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin:14px 0}
.s-storage-parts div{padding:10px 12px;border:1px solid var(--s-border);border-radius:12px}
.s-storage-parts dt{font-size:var(--s-text-xs);color:var(--s-text-muted)}
.s-storage-parts dd{margin:4px 0 0;font-weight:700}
.s-storage-parts small{font-weight:400;color:var(--s-text-muted)}
.s-storage-quota{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;margin-top:12px}
.s-storage-quota .s-field{flex:1;min-width:180px;max-width:280px}
.s-storage-kinds{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.s-storage-kinds button{min-height:36px;padding:0 14px;border:1px solid var(--s-border);border-radius:999px;background:var(--s-surface);color:var(--s-text);font:inherit;font-size:var(--s-text-sm);cursor:pointer}
body.sepand-app-shell .s-storage-kinds button{color:var(--s-text)}
body.sepand-app-shell .s-storage-kinds button.is-active{border-color:var(--s-brand);background:var(--s-brand);color:#fff}
.s-storage-list{display:grid;margin:0;padding:0;list-style:none}
.s-storage-list li{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--s-border)}
.s-storage-list li:last-child{border-bottom:0}
.s-storage-kind{flex-shrink:0;width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:var(--s-brand-soft);color:var(--s-brand)}
.s-storage-file{flex:1;min-width:0;display:grid;gap:2px}
.s-storage-file strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.s-storage-file small{font-size:var(--s-text-xs);color:var(--s-text-muted)}
.s-storage-size{flex-shrink:0;font-variant-numeric:tabular-nums}
.s-storage-confirm{display:grid;gap:10px}
@media (max-width:640px){.s-storage-list li{flex-wrap:wrap}.s-storage-file{flex-basis:calc(100% - 48px)}.s-storage-size{margin-inline-start:48px}}
@media (prefers-reduced-motion:reduce){.s-storage-bar span{transition:none}}
/* a chat file removed to free hosting space */
.s-attach-unavailable.is-deleted{display:inline-flex;align-items:center;gap:6px}
.s-attach-unavailable.is-deleted .s-glyph{width:16px;height:16px;flex-shrink:0}
/* requests page: each chat's size, choosing chats and clearing them to free hosting space */
.s-chat-size{display:inline-grid;gap:1px;font-variant-numeric:tabular-nums;line-height:1.4}
.s-chat-size b{font-weight:700}
.s-chat-size small{font-size:var(--s-text-xs);color:var(--s-text-muted)}
.s-table .s-cell-check{width:40px;padding-inline:4px;text-align:center}
.s-check-hit{display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;cursor:pointer}
.s-check-hit input,.s-check input{width:20px;height:20px;margin:0;accent-color:var(--s-brand);cursor:pointer}
.s-table tr.is-selected td{background:var(--s-brand-soft)}
.s-check{display:inline-flex;align-items:center;gap:8px;min-height:40px;font-size:var(--s-text-sm);cursor:pointer}
.s-cards-select-all{padding:0 4px}
/* ten columns do not fit a laptop's content area: cards until the screen is wide enough */
@media (min-width:1024px) and (max-width:1279.98px){.s-tickets-clean .s-desktop-table{display:none}.s-tickets-clean .s-mobile-cards{display:grid}}
.s-bulk-bar{position:sticky;top:8px;z-index:5;display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:10px 14px;border:1px solid var(--s-border);border-radius:12px;background:var(--s-surface);box-shadow:0 6px 20px rgba(15,23,42,.08)}
.s-bulk-bar>span{flex:1;min-width:180px}
.s-bulk-bar .s-glyph,.s-chat-clean-row .s-glyph,.s-table .s-btn .s-glyph{width:16px;height:16px}
.s-ticket-card-clean{display:grid}
.s-ticket-card-clean>.s-card{border-end-start-radius:0;border-end-end-radius:0}
.s-chat-clean-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:6px 12px;border:1px solid var(--s-border);border-top:0;border-radius:0 0 12px 12px;background:var(--s-surface)}
.s-chat-clean-row>.s-muted{flex:1;min-width:120px;font-size:var(--s-text-xs)}
.s-purge-modes{display:grid;gap:8px;margin:0;padding:0;border:0}
.s-purge-modes legend{margin-bottom:6px;font-weight:700}
.s-purge-modes label{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid var(--s-border);border-radius:12px;cursor:pointer}
.s-purge-modes label.is-active{border-color:var(--s-brand);background:var(--s-brand-soft)}
.s-purge-modes input{flex-shrink:0;width:20px;height:20px;margin:2px 0 0;accent-color:var(--s-brand)}
.s-purge-modes span{display:grid;gap:2px}
.s-purge-modes small{font-size:var(--s-text-sm);line-height:1.8;color:var(--s-text-muted)}
.s-chat-system.is-cleared{color:var(--s-text-muted);font-style:normal}
/* the row's delete: a clear red outline with a label, filled on hover (a bare grey icon got lost at the row's end) */
.s-btn.s-row-delete,body.sepand-app-shell .s-btn.s-row-delete{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 12px;border:1px solid rgba(220,38,38,.35);border-color:color-mix(in srgb,var(--s-danger) 35%,transparent);border-radius:999px;background:var(--s-surface);color:var(--s-danger);font-size:var(--s-text-sm);font-weight:600;white-space:nowrap;transition:background-color .15s,border-color .15s,color .15s}
.s-btn.s-row-delete:hover:not(:disabled),body.sepand-app-shell .s-btn.s-row-delete:hover:not(:disabled){border-color:var(--s-danger);background:var(--s-danger);color:#fff}
.s-btn.s-row-delete:focus-visible{outline:2px solid var(--s-danger);outline-offset:2px}
.s-btn.s-row-delete .s-glyph{width:16px;height:16px;flex-shrink:0}
/* phones: always at the same place, the end of the card's bottom row */
.s-chat-clean-row .s-btn.s-row-delete{margin-inline-start:auto}
/* ===== customer insights (staff only): the 1–20 payer score and internal notes on customer messages ===== */
:root{--s-rate-low:#b91c1c;--s-rate-low-soft:#fef2f2;--s-rate-low-line:#fecaca;--s-rate-mid:#c2410c;--s-rate-mid-soft:#fff7ed;--s-rate-mid-line:#fed7aa;--s-rate-high:#047857;--s-rate-high-soft:#ecfdf5;--s-rate-high-line:#a7f3d0;--s-note-ink:#92400e;--s-note-bg:#fffbeb;--s-note-line:#fcd34d;--s-note-accent:#d97706}
.s-rating-badge{display:inline-flex;align-items:center;gap:3px;padding:1px 9px;border:1px solid var(--s-border);border-radius:999px;background:var(--s-bg-subtle);color:var(--s-text-muted);font-size:12px;font-weight:500;line-height:1.7;white-space:nowrap;font-variant-numeric:tabular-nums}
.s-rating-badge b{font-weight:800}
.s-rating-badge small{font-size:11px;opacity:.75}
.s-rating-badge em{font-style:normal;font-weight:700}
.s-rating-badge em::before{content:"";display:inline-block;width:1px;height:11px;margin-inline:2px 6px;background:currentColor;opacity:.35;vertical-align:-1px}
.s-rating-badge .s-glyph{width:13px;height:13px;flex-shrink:0}
.s-rating-badge.is-low{color:var(--s-rate-low);background:var(--s-rate-low-soft);border-color:var(--s-rate-low-line)}
.s-rating-badge.is-mid{color:var(--s-rate-mid);background:var(--s-rate-mid-soft);border-color:var(--s-rate-mid-line)}
.s-rating-badge.is-high{color:var(--s-rate-high);background:var(--s-rate-high-soft);border-color:var(--s-rate-high-line)}
.s-customer-cell{display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px 6px}
.s-card-link>.s-rating-badge{justify-self:start;margin-top:6px}
/* the chip in the chat header: score + how many internal notes; opens the insights card */
.s-rating-chip{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 2px;border-radius:999px;cursor:pointer}
.s-rating-chip:hover .s-rating-badge{filter:brightness(.97);box-shadow:0 1px 4px rgba(15,23,42,.12)}
.s-rating-chip:focus-visible{outline:2px solid var(--s-info);outline-offset:2px}
.s-chat-kicker .s-rating-chip .s-rating-badge{font-size:11.5px}
.s-chip-notes{display:inline-flex;align-items:center;gap:3px;padding:1px 8px;border:1px solid var(--s-note-line);border-radius:999px;background:var(--s-note-bg);color:var(--s-note-ink);font-size:11.5px;font-weight:800;line-height:1.7}
.s-chip-notes .s-glyph{width:13px;height:13px}
/* insights card (side panel / details sheet / customer file) */
.s-insights{position:relative;display:grid;gap:12px;overflow:hidden;scroll-margin-top:12px;transition:box-shadow .3s}
/* grid items keep their content's minimum width by default: in the narrow side panel the slider row was 8px too wide */
.s-insights>*{min-width:0}
.s-insights::before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(to left,#ef4444 0%,#ef4444 47%,#f97316 47%,#f97316 74%,#10b981 74%)}
.s-insights.is-flash{box-shadow:0 0 0 3px rgba(217,119,6,.45)}
.s-insights-head{display:flex;align-items:center;gap:8px}
.s-insights-head h3{flex:1;margin:0;font-size:var(--s-text-md)}
.s-insights-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:var(--s-rate-mid-soft);color:#ea580c}
.s-insights-icon .s-glyph{width:16px;height:16px}
.s-private-tag{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:999px;background:var(--s-bg-subtle);color:var(--s-text-muted);font-size:11px;font-weight:700;white-space:nowrap}
.s-private-tag .s-glyph{width:12px;height:12px}
.s-insights-score,.s-my-rating{--lvl:#64748b;--lvl-soft:var(--s-bg-subtle);--lvl-line:var(--s-border)}
.s-insights-score.is-low,.s-my-rating.is-low{--lvl:var(--s-rate-low);--lvl-soft:var(--s-rate-low-soft);--lvl-line:var(--s-rate-low-line)}
.s-insights-score.is-mid,.s-my-rating.is-mid{--lvl:var(--s-rate-mid);--lvl-soft:var(--s-rate-mid-soft);--lvl-line:var(--s-rate-mid-line)}
.s-insights-score.is-high,.s-my-rating.is-high{--lvl:var(--s-rate-high);--lvl-soft:var(--s-rate-high-soft);--lvl-line:var(--s-rate-high-line)}
.s-insights-score{display:grid;gap:6px;padding:12px;border:1px solid var(--lvl-line);border-radius:12px;background:var(--lvl-soft)}
.s-insights-score p{margin:0;font-size:12.5px}
.s-insights-number{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px}
.s-insights-number b{color:var(--lvl);font-size:34px;font-weight:800;line-height:1.1;font-variant-numeric:tabular-nums}
.s-insights-number span{color:var(--s-text-muted);font-size:13px}
.s-insights-number em{margin-inline-start:auto;padding:2px 10px;border:1px solid var(--lvl-line);border-radius:999px;background:var(--s-surface);color:var(--lvl);font-size:12px;font-style:normal;font-weight:800}
.s-gauge{padding:4px 0 0}
.s-gauge-track{position:relative;display:flex;height:10px}
.s-gauge-track>span{height:100%}
.s-gauge-track>.is-low{background:#fca5a5;border-start-start-radius:999px;border-end-start-radius:999px}
.s-gauge-track>.is-mid{background:#fdba74}
.s-gauge-track>.is-high{background:#6ee7b7;border-start-end-radius:999px;border-end-end-radius:999px}
.s-gauge-marker{position:absolute;top:50%;width:18px;height:18px;border:3px solid var(--lvl);border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(15,23,42,.3);transform:translate(50%,-50%)}
.s-gauge-ticks{position:relative;height:18px;margin-top:4px;color:var(--s-text-muted);font-size:12px}
.s-gauge-ticks>span{position:absolute;top:0;transform:translateX(50%)}
.s-gauge-ticks>.is-first{inset-inline-start:0;transform:none}
.s-gauge-ticks>.is-last{inset-inline-end:0;transform:none}
/* the viewer's own score */
.s-my-rating{display:grid;gap:10px;padding:12px;border:1px dashed var(--lvl-line);border-radius:12px;transition:border-color .2s}
.s-my-rating-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap}
.s-my-rating-head label{font-weight:800}
.s-my-rating-head output{color:var(--lvl);font-size:13px;font-weight:700}
.s-my-rating-head output b{font-size:22px;font-weight:800;font-variant-numeric:tabular-nums}
.s-score-picker{display:flex;align-items:center;gap:8px}
.s-score-step{all:unset;box-sizing:border-box;flex-shrink:0;display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--s-border);border-radius:50%;background:var(--s-surface);color:var(--s-text);font-size:20px;font-weight:800;line-height:1;cursor:pointer;transition:border-color .15s,color .15s}
.s-score-step .s-glyph{width:16px;height:16px}
.s-score-step:hover:not(:disabled){border-color:var(--lvl);color:var(--lvl)}
.s-score-step:disabled{opacity:.4;cursor:default}
.s-score-step:focus-visible{outline:2px solid var(--s-info);outline-offset:2px}
.s-score-picker input[type=range]{flex:1;width:0;min-width:0;height:36px;margin:0;background:transparent;cursor:pointer;-webkit-appearance:none;appearance:none}
.s-score-picker input[type=range]:focus-visible{outline:2px solid var(--s-info);outline-offset:2px;border-radius:999px}
.s-score-picker input[type=range]::-webkit-slider-runnable-track{height:8px;border-radius:999px;background:linear-gradient(to left,var(--lvl) var(--pct),#e5e7eb var(--pct))}
.s-score-picker input[type=range]::-webkit-slider-thumb{width:26px;height:26px;margin-top:-9px;border:3px solid var(--lvl);border-radius:50%;background:#fff;box-shadow:0 1px 5px rgba(15,23,42,.3);-webkit-appearance:none;appearance:none}
.s-score-picker input[type=range]::-moz-range-track{height:8px;border-radius:999px;background:#e5e7eb}
.s-score-picker input[type=range]::-moz-range-progress{height:8px;border-radius:999px;background:var(--lvl)}
.s-score-picker input[type=range]::-moz-range-thumb{width:20px;height:20px;border:3px solid var(--lvl);border-radius:50%;background:#fff;box-shadow:0 1px 5px rgba(15,23,42,.3)}
.s-my-rating .s-field{gap:4px}
.s-my-rating .s-field>span{font-size:12.5px;color:var(--s-text-muted)}
.s-my-rating .s-field textarea{min-height:64px}
.s-my-rating-actions{display:flex;flex-wrap:wrap;gap:8px}
.s-my-rating-actions .s-btn-primary{flex:1 1 160px}
.s-my-rating-when{margin:0;font-size:12px}
/* everyone's scores */
.s-raters summary{display:flex;align-items:center;gap:8px;min-height:32px;font-weight:800;cursor:pointer;list-style:none}
.s-raters summary::-webkit-details-marker{display:none}
.s-raters summary::after{content:"";width:7px;height:7px;margin-inline-start:auto;border:solid var(--s-text-muted);border-width:0 2px 2px 0;transform:rotate(45deg);transition:transform .15s}
.s-raters[open] summary::after{transform:rotate(-135deg)}
.s-raters summary:focus-visible{outline:2px solid var(--s-info);outline-offset:2px;border-radius:6px}
.s-raters ul,.s-raters-flat{display:grid;gap:8px;margin:6px 0 0;padding:0;list-style:none}
.s-raters li,.s-raters-flat li{display:flex;align-items:flex-start;gap:10px}
.s-rater-score{flex-shrink:0;display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--s-border);border-radius:10px;background:var(--s-bg-subtle);font-weight:800;font-variant-numeric:tabular-nums}
.s-rater-score.is-low{color:var(--s-rate-low);background:var(--s-rate-low-soft);border-color:var(--s-rate-low-line)}
.s-rater-score.is-mid{color:var(--s-rate-mid);background:var(--s-rate-mid-soft);border-color:var(--s-rate-mid-line)}
.s-rater-score.is-high{color:var(--s-rate-high);background:var(--s-rate-high-soft);border-color:var(--s-rate-high-line)}
.s-rater-who{display:grid;gap:1px;min-width:0}
.s-rater-who small{color:var(--s-text-muted);font-size:12px}
.s-rater-note{margin-top:3px;padding:4px 8px;border-radius:8px;background:var(--s-bg-subtle);font-size:13px;overflow-wrap:anywhere}
.s-insights-file .s-dash-panel-head{align-items:center}
/* the ticket's notes at a glance */
.s-notes-summary{display:grid;gap:8px;padding-top:10px;border-top:1px solid var(--s-border)}
.s-notes-summary-title{display:flex;align-items:center;gap:6px;margin:0;font-weight:800}
.s-notes-summary-title .s-glyph{width:16px;height:16px;color:var(--s-note-accent)}
.s-notes-summary>p.s-muted{margin:0;font-size:12.5px;line-height:1.9}
.s-notes-summary ul{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.s-notes-summary li{display:grid;gap:3px;padding:8px 10px;border:1px solid var(--s-note-line);border-radius:10px;background:var(--s-note-bg)}
.s-notes-summary-meta{margin:0;color:var(--s-note-ink);font-size:12px}
.s-notes-summary-body{display:-webkit-box;margin:0;overflow:hidden;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;-webkit-line-clamp:3;-webkit-box-orient:vertical}
.s-notes-jump{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-self:start;min-height:32px;color:var(--s-note-accent);font-size:13px;font-weight:800;cursor:pointer}
.s-notes-jump:hover{text-decoration:underline}
.s-notes-jump:focus-visible{outline:2px solid var(--s-note-accent);outline-offset:2px;border-radius:6px}
/* a customer message seen by staff: + beside the bubble, the notes under it */
.s-noted{display:flex;flex-direction:column;align-items:flex-end;gap:6px;width:100%;border-radius:16px;transition:background-color .35s,box-shadow .35s}
.s-noted.is-flash{background:rgba(245,158,11,.12);box-shadow:0 0 0 6px rgba(245,158,11,.12)}
.s-noted-row{display:flex;align-items:flex-start;justify-content:flex-end;gap:6px;width:100%}
.s-noted-row>.s-bubble{max-width:min(calc(100% - 40px),640px)}
.s-note-add{all:unset;box-sizing:border-box;flex-shrink:0;display:grid;place-items:center;width:32px;height:32px;margin-top:4px;border:1.5px dashed var(--s-note-accent);border-radius:50%;background:var(--s-note-bg);color:var(--s-note-ink);cursor:pointer;transition:opacity .15s,background-color .15s,color .15s}
.s-note-add .s-glyph{width:16px;height:16px}
.s-note-add:hover,.s-noted.is-open .s-note-add{border-style:solid;background:var(--s-note-accent);color:#fff}
.s-note-add:focus-visible{outline:2px solid var(--s-note-accent);outline-offset:2px}
@media (hover:hover){.s-noted:not(.has-notes):not(.is-open) .s-note-add{opacity:.4}.s-noted:hover .s-note-add,.s-note-add:focus-visible{opacity:1}}
.s-note-chip{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:6px;max-width:min(calc(100% - 38px),560px);min-height:32px;padding:4px 10px;border:1px solid var(--s-note-line);border-radius:10px;background:var(--s-note-bg);color:var(--s-note-ink);font-size:12.5px;box-shadow:0 1px 2px rgba(146,64,14,.08);cursor:pointer}
.s-note-chip:hover{border-color:var(--s-note-accent)}
.s-note-chip:focus-visible{outline:2px solid var(--s-note-accent);outline-offset:2px}
.s-note-chip .s-glyph{width:14px;height:14px;flex-shrink:0}
.s-note-chip-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.s-note-chip-more{flex-shrink:0;padding:0 7px;border-radius:999px;background:#fde68a;font-weight:800}
.s-note-thread{box-sizing:border-box;display:grid;gap:10px;width:min(calc(100% - 38px),560px);padding:10px 12px;border:1px solid var(--s-note-line);border-radius:14px;background:var(--s-note-bg);box-shadow:0 6px 18px rgba(146,64,14,.1);animation:s-note-in .16s ease-out}
@keyframes s-note-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.s-note-thread{animation:none}.s-noted,.s-insights{transition:none}}
.s-note-head{display:flex;align-items:center;flex-wrap:wrap;gap:4px 6px;color:var(--s-note-ink);font-size:13px}
.s-note-head .s-glyph{width:15px;height:15px}
.s-note-head b{font-weight:800}
.s-note-head span{font-size:12px;opacity:.85}
.s-note-list{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.s-note{display:flex;align-items:flex-start;gap:8px;padding:8px;border:1px solid #fde68a;border-radius:10px;background:#fff}
.s-note-avatar{flex-shrink:0;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#64748b;color:#fff;font-size:14px;font-weight:800}
.s-note-avatar.is-manager{background:#7c3aed}
.s-note-avatar.is-accountant{background:#0e7490}
.s-note-avatar.is-supporter{background:#2563eb}
.s-note-main{flex:1;min-width:0}
.s-note-meta{display:flex;align-items:center;flex-wrap:wrap;gap:2px 8px;margin:0 0 2px;color:var(--s-text-muted);font-size:12px}
.s-note-meta b{color:var(--s-text);font-size:13px}
.s-note-role{padding:0 7px;border-radius:999px;background:var(--s-bg-subtle);font-size:11px}
.s-note-body{margin:0;color:var(--s-text);font-size:14px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}
.s-note-delete{all:unset;box-sizing:border-box;flex-shrink:0;align-self:flex-start;display:inline-flex;align-items:center;gap:4px;min-height:32px;padding:0 11px;border:1px solid rgba(220,38,38,.35);border-color:color-mix(in srgb,var(--s-danger) 35%,transparent);border-radius:999px;background:var(--s-surface);color:var(--s-danger);font-size:12px;font-weight:800;white-space:nowrap;cursor:pointer;transition:background-color .15s,border-color .15s,color .15s}
.s-note-delete .s-glyph{width:15px;height:15px;flex-shrink:0}
.s-note-delete:hover:not(:disabled),.s-note-delete.is-confirm{border-color:var(--s-danger);background:var(--s-danger);color:#fff}
.s-note-delete.is-confirm{box-shadow:0 0 0 3px rgba(220,38,38,.18)}
.s-note-delete:disabled{opacity:.6;cursor:default}
.s-note-delete:focus-visible{outline:2px solid var(--s-danger);outline-offset:2px}
/* the app shell sets `button{color:inherit}` (body.sepand-app-shell button), which outranks a single class:
   the coloured note buttons restate their colour at that weight */
body.sepand-app-shell .s-note-delete{color:var(--s-danger)}
body.sepand-app-shell .s-note-add{color:var(--s-note-ink)}
body.sepand-app-shell .s-note-chip{color:var(--s-note-ink)}
body.sepand-app-shell .s-notes-jump{color:var(--s-note-accent)}
@media (max-width:420px){.s-note{flex-wrap:wrap}.s-note-main{flex-basis:calc(100% - 38px)}.s-note-delete{margin-inline-start:38px}}
.s-note-form{display:grid;gap:8px}
.s-note-form textarea{box-sizing:border-box;width:100%;min-height:64px;padding:8px 10px;border:1px solid var(--s-note-line);border-radius:10px;background:#fff;color:var(--s-text);font:inherit;font-size:14px;line-height:1.8;resize:vertical}
.s-note-form textarea:focus{outline:none;border-color:var(--s-note-accent);box-shadow:0 0 0 3px rgba(245,158,11,.22)}
.s-note-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px}
.s-btn.s-note-submit,body.sepand-app-shell .s-btn.s-note-submit{border-color:#b45309;background:#b45309;color:#fff}
.s-btn.s-note-submit:hover:not(:disabled),body.sepand-app-shell .s-btn.s-note-submit:hover:not(:disabled){border-color:#92400e;background:#92400e}
.s-btn.s-note-submit:disabled{opacity:.55}
@media (max-width:640px){.s-insights-number b{font-size:30px}.s-note-thread,.s-note-chip{width:calc(100% - 38px);max-width:none}.s-note{padding:8px 6px}}
/* staff page: rename / remove a colleague */
.s-staff-actions{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px}
.s-mobile-cards .s-staff-actions{margin-top:8px}
.s-btn.s-row-edit,body.sepand-app-shell .s-btn.s-row-edit{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 12px;border:1px solid var(--s-border);border-radius:999px;background:var(--s-surface);color:var(--s-text);font-size:var(--s-text-sm);font-weight:600;white-space:nowrap}
.s-btn.s-row-edit:hover:not(:disabled),body.sepand-app-shell .s-btn.s-row-edit:hover:not(:disabled){border-color:var(--s-text-muted);background:var(--s-bg-subtle)}
.s-btn.s-row-edit:focus-visible{outline:2px solid var(--s-info);outline-offset:2px}
.s-btn.s-row-edit .s-glyph{width:16px;height:16px;flex-shrink:0}
.s-staff-remove ul{display:grid;gap:8px;margin:0 0 14px;padding-inline-start:20px;line-height:1.9}
.s-staff-remove li b{color:var(--s-danger)}
/* a new password (colleagues and customers): typed or generated, shown on demand, copyable, rules ticked live */
.s-newpass{display:grid;gap:8px;min-width:0}
.s-newpass-label{font-size:var(--s-text-sm);color:var(--s-text-muted)}
.s-newpass-input{position:relative;min-width:0}
.s-newpass-input input,body.sepand-app-shell .s-newpass-input input{all:unset;box-sizing:border-box;display:block;width:100%;min-width:0;min-height:var(--s-touch);padding:var(--s-space-2) var(--s-space-3);padding-inline-end:48px;border:1px solid var(--s-border);border-radius:var(--s-radius-md);background:var(--s-surface);color:var(--s-text);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:var(--s-text-md);letter-spacing:.04em;text-align:left;direction:ltr}
.s-newpass-input input:focus-visible{outline:2px solid var(--s-info);outline-offset:1px;border-color:var(--s-info)}
.s-newpass-eye,body.sepand-app-shell .s-newpass-eye{all:unset;box-sizing:border-box;position:absolute;inset-block:0;right:2px;display:inline-flex;align-items:center;justify-content:center;width:44px;color:var(--s-text-muted);cursor:pointer;border-radius:var(--s-radius-md)}
.s-newpass-eye:hover{color:var(--s-text)}
.s-newpass-eye:focus-visible{outline:2px solid var(--s-info);outline-offset:-4px}
.s-newpass-eye .s-glyph{width:20px;height:20px}
.s-newpass-tools{display:flex;flex-wrap:wrap;gap:6px}
.s-btn.s-newpass-tool,body.sepand-app-shell .s-btn.s-newpass-tool{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 12px;border:1px solid var(--s-border);border-radius:999px;background:var(--s-surface);color:var(--s-text);font-size:var(--s-text-sm);font-weight:600;white-space:nowrap}
.s-btn.s-newpass-tool:hover:not(:disabled),body.sepand-app-shell .s-btn.s-newpass-tool:hover:not(:disabled){border-color:var(--s-text-muted);background:var(--s-bg-subtle)}
.s-btn.s-newpass-tool:focus-visible{outline:2px solid var(--s-info);outline-offset:2px}
.s-btn.s-newpass-tool .s-glyph{width:16px;height:16px;flex-shrink:0}
.s-newpass-rules{display:flex;flex-wrap:wrap;gap:4px 14px;margin:0;padding:0;list-style:none;font-size:var(--s-text-xs);color:var(--s-text-muted)}
.s-newpass-rules li{display:inline-flex;align-items:center;gap:4px}
.s-newpass-rules .s-glyph{width:14px;height:14px;flex-shrink:0}
.s-newpass-rules li.is-ok{color:var(--s-success)}
.s-newpass-box{display:grid;gap:10px;min-width:0;margin:0;padding:12px;border:1px solid var(--s-border);border-radius:var(--s-radius-md)}
.s-newpass-box legend{padding:0 6px;font-size:var(--s-text-sm);font-weight:700;color:var(--s-text)}
.s-btn.s-newpass-open{justify-self:start}
.s-newpass-cancel,body.sepand-app-shell .s-newpass-cancel{all:unset;justify-self:start;display:inline-flex;align-items:center;min-height:36px;padding:0 2px;font-size:var(--s-text-sm);color:var(--s-text-muted);text-decoration:underline;cursor:pointer}
.s-newpass-cancel:focus-visible{outline:2px solid var(--s-info);outline-offset:2px}
.s-newpass-who{margin:0;text-align:right;overflow-wrap:anywhere}
.s-invite-done .s-modal-actions{flex-wrap:wrap}
/* customers list: the file link sits with the row buttons */
.s-customer-file{display:inline-flex;align-items:center;min-height:34px;padding:0 6px;font-weight:600}
.s-customer-file.is-pill{padding:0 14px;border:1px solid var(--s-border);border-radius:999px;background:var(--s-surface);color:var(--s-text);font-size:var(--s-text-sm);text-decoration:none}
.s-customer-name{display:inline-flex;align-items:center;min-height:40px;color:inherit}
/* deleting a customer: what goes, what stays, then type the email */
.s-customer-delete .s-customer-delete-lead{margin:0 0 6px;font-weight:700}
.s-customer-delete-num{color:var(--s-danger)}
.s-staff-remove .s-customer-delete-keep li{color:var(--s-text-muted)}
.s-customer-delete .s-customer-delete-final{display:flex;align-items:center;gap:6px;margin:0 0 14px;font-weight:700;color:var(--s-danger)}
.s-customer-delete-final .s-glyph{width:18px;height:18px;flex-shrink:0}
.s-customer-delete .s-invite-warning{margin:0 0 12px}
.s-customer-delete-email{margin:0;padding:8px 12px;border-radius:var(--s-radius-md);background:var(--s-bg-subtle);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow-wrap:anywhere;user-select:all}
.s-customer-delete p{margin:0;line-height:1.9}
/* "all: unset" on the fields also drops the direction that dir="ltr" gives (emails, serial numbers) */
.s-field input[dir="ltr"],.s-field textarea[dir="ltr"]{direction:ltr;text-align:left}
/* editing a device (manager dialog and the customer's device page) */
.s-device-edit .s-field-note{grid-column:1/-1}
.s-field-note{margin:0;font-size:var(--s-text-xs);line-height:1.8;color:var(--s-text-muted)}
.s-field input:disabled{background:var(--s-bg-subtle);color:var(--s-text-muted);cursor:not-allowed}
.s-device-edit-title{margin:4px 0 0;font-size:var(--s-text-md);font-weight:700}
.s-device-owner{margin:0}
.s-device-open-hint{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;margin-top:4px;padding:4px 12px;border:1px solid var(--s-border);border-radius:999px;font-size:var(--s-text-sm);font-weight:600;color:var(--s-text)}
.s-device-open-hint .s-glyph{width:16px;height:16px}
/* the devices table is the widest: below 1280px its row buttons show only their icons (labels stay for screen readers and as tooltips) */
@media (max-width:1279px){.s-desktop-table .s-device-actions{flex-direction:column;flex-wrap:nowrap}.s-devices-table .s-cell-sub[dir="ltr"]{overflow-wrap:anywhere}.s-desktop-table .s-device-actions .s-row-btn-text{display:none}.s-desktop-table .s-device-actions .s-btn{min-width:36px;justify-content:center;padding:0 9px}}
/* a count next to a menu item (the manager's "حسابداری": requests waiting for a price) */
.s-nav-badge{margin-inline-start:auto;min-width:22px;height:22px;padding:0 7px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:var(--s-brand);color:#fff;font-size:var(--s-text-xs);font-weight:700;line-height:1}
.s-nav-link.active .s-nav-badge{background:#fff;color:var(--s-brand)}
.s-dash-stats.s-dash-stats-two{grid-template-columns:repeat(2,minmax(0,1fr))}
/* customers list: the plan column, and the dialog that changes the plan and its duration */
.s-plan-cell{display:inline-grid;gap:2px;min-width:0}
.s-plan-cell-name{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}
.s-plan-cell small{font-size:var(--s-text-xs);line-height:1.6}
.s-mobile-cards .s-plan-cell{margin-top:6px}
.s-plan-now{display:grid;gap:6px;padding:10px 12px;border-radius:var(--s-radius-md);background:var(--s-bg-subtle)}
.s-plan-duration{display:grid;gap:10px;min-width:0;margin:0;padding:0;border:0}
.s-plan-duration legend{margin-bottom:8px;padding:0;font-size:var(--s-text-sm);color:var(--s-text-muted)}
.s-plan-chips{display:flex;flex-wrap:wrap;gap:6px}
.s-plan-chip,body.sepand-app-shell .s-plan-chip{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border:1px solid var(--s-border);border-radius:999px;background:var(--s-surface);color:var(--s-text);font-size:var(--s-text-sm);font-weight:600;cursor:pointer}
.s-plan-chip:hover{border-color:var(--s-text-muted)}
.s-plan-chip:focus-visible{outline:2px solid var(--s-info);outline-offset:2px}
.s-plan-chip.is-on,body.sepand-app-shell .s-plan-chip.is-on{border-color:var(--s-brand);background:var(--s-brand);color:#fff}
.s-plan-custom input{max-width:160px}
.s-plan-preview{display:flex;align-items:center;gap:8px;margin:0;padding:10px 12px;border-radius:var(--s-radius-md);background:var(--s-brand-soft);font-size:var(--s-text-sm);line-height:1.8}
.s-plan-preview .s-glyph{width:18px;height:18px;flex-shrink:0;color:var(--s-brand)}
.s-plan-now > .s-badge,.s-plan-now .s-plan-cell{justify-self:start}
/* the customers table has four row actions: below 1600px they show only their icons (names stay as tooltips and for screen readers) */
@media (max-width:1599px){.s-customers-table .s-device-actions{flex-wrap:nowrap}.s-customers-table .s-device-actions .s-row-btn-text{display:none}.s-customers-table .s-device-actions .s-btn{min-width:36px;justify-content:center;padding:0 9px}}
/* from 1280px "تغییر پلن" keeps its label (a shield alone does not say "plan"); below that every action is an icon */
@media (min-width:1280px) and (max-width:1599px){.s-customers-table .s-device-actions .s-keep-label .s-row-btn-text{display:inline}.s-customers-table .s-device-actions .s-btn.s-keep-label{padding:0 12px}}
/* the floating "support" button settings (manager): form beside a live preview */
.s-launcher-layout{display:grid;gap:var(--s-space-4);align-items:start}
@media (min-width:1100px){.s-launcher-layout{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}.s-launcher-preview-card{position:sticky;top:16px}}
.s-launcher-form{display:grid;gap:18px;min-width:0}
.s-launcher-switch{display:flex;align-items:flex-start;gap:12px;padding:12px 14px;border:1px solid var(--s-border);border-radius:var(--s-radius-md);cursor:pointer}
.s-launcher-switch input{width:22px;height:22px;margin:2px 0 0;accent-color:var(--s-brand);flex-shrink:0;cursor:pointer}
.s-launcher-switch span{display:grid;gap:2px}
.s-launcher-switch small{color:var(--s-text-muted);font-size:var(--s-text-xs);line-height:1.7}
.s-launcher-group{display:grid;gap:10px;min-width:0;margin:0;padding:0;border:0}
.s-launcher-group legend{margin-bottom:8px;padding:0;font-size:var(--s-text-sm);font-weight:700;color:var(--s-text)}
.s-launcher-colors{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.s-launcher-swatch,body.sepand-app-shell .s-launcher-swatch{all:unset;box-sizing:border-box;width:36px;height:36px;border-radius:50%;border:3px solid var(--s-surface);box-shadow:0 0 0 1px var(--s-border);cursor:pointer}
.s-launcher-swatch.is-on{box-shadow:0 0 0 2px var(--s-text)}
.s-launcher-swatch:focus-visible{outline:2px solid var(--s-info);outline-offset:2px}
.s-launcher-picker{position:relative;display:inline-flex;width:36px;height:36px;border-radius:50%;overflow:hidden;box-shadow:0 0 0 1px var(--s-border);background:conic-gradient(red,yellow,lime,cyan,blue,magenta,red);cursor:pointer}
.s-launcher-picker input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.s-launcher-hex,body.sepand-app-shell .s-launcher-hex{all:unset;box-sizing:border-box;width:96px;min-height:36px;padding:0 10px;border:1px solid var(--s-border);border-radius:var(--s-radius-md);background:var(--s-surface);font-family:ui-monospace,Consolas,monospace;font-size:var(--s-text-sm);direction:ltr;text-align:left}
.s-launcher-hex:focus-visible{outline:2px solid var(--s-info);outline-offset:1px}
.s-launcher-logo{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.s-launcher-logo-preview{display:inline-flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;overflow:hidden;flex-shrink:0;box-shadow:0 6px 18px rgba(15,23,42,.2)}
.s-launcher-logo-preview img{width:100%;height:100%;object-fit:cover}
.s-launcher-logo-preview .s-glyph{width:30px;height:30px}
.s-launcher-logo-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0;flex:1}
.s-launcher-logo-actions small{flex-basis:100%;font-size:var(--s-text-xs);line-height:1.7}
.s-launcher-corners{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-width:360px}
.s-launcher-corner,body.sepand-app-shell .s-launcher-corner{all:unset;box-sizing:border-box;position:relative;display:flex;align-items:center;justify-content:center;min-height:64px;padding:8px;border:1px solid var(--s-border);border-radius:var(--s-radius-md);background:var(--s-bg-subtle);font-size:var(--s-text-sm);font-weight:600;color:var(--s-text);cursor:pointer}
.s-launcher-corner.is-on,body.sepand-app-shell .s-launcher-corner.is-on{border-color:var(--s-brand);background:var(--s-brand-soft);color:var(--s-brand)}
.s-launcher-corner:focus-visible{outline:2px solid var(--s-info);outline-offset:2px}
.s-launcher-corner-dot{position:absolute;width:12px;height:12px;border-radius:50%;background:currentColor}
.s-launcher-corner.is-top-right .s-launcher-corner-dot{top:8px;right:8px}
.s-launcher-corner.is-top-left .s-launcher-corner-dot{top:8px;left:8px}
.s-launcher-corner.is-bottom-right .s-launcher-corner-dot{bottom:8px;right:8px}
.s-launcher-corner.is-bottom-left .s-launcher-corner-dot{bottom:8px;left:8px}
.s-launcher-preview-card{display:grid;gap:12px;min-width:0}
.s-launcher-stage{position:relative;aspect-ratio:16/11;border-radius:var(--s-radius-md);border:1px solid var(--s-border);background:#f8fafc;overflow:hidden}
.s-launcher-stage.is-off .s-launcher-demo{opacity:.35;filter:grayscale(1)}
.s-launcher-stage-page{display:grid;gap:10px;padding:14px}
.s-launcher-stage-bar{height:18px;border-radius:6px;background:#e2e8f0}
.s-launcher-stage-line{height:10px;border-radius:5px;background:#e5e7eb}
.s-launcher-stage-line.is-short{width:60%}
.s-launcher-demo{position:absolute;display:flex;align-items:center;gap:8px;direction:ltr}
.s-launcher-demo.is-top{top:12px}.s-launcher-demo.is-bottom{bottom:12px}
.s-launcher-demo.is-left{left:12px;flex-direction:row}.s-launcher-demo.is-right{right:12px;flex-direction:row-reverse}
.s-launcher-demo-btn{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;overflow:hidden;box-shadow:0 6px 18px rgba(15,23,42,.25);flex-shrink:0}
.s-launcher-demo-btn img{width:100%;height:100%;object-fit:cover}
.s-launcher-demo-btn .s-glyph{width:46%;height:46%}
.s-launcher-demo-label{direction:rtl;max-width:160px;padding:6px 12px;border-radius:999px;background:#fff;color:#111827;font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:0 4px 12px rgba(15,23,42,.16)}
.s-launcher-preview-note{margin:0;font-size:var(--s-text-xs);line-height:1.8}
/* the login page texts (manager): fields with a counter, and a small copy of the login card as the preview */
.s-loginpage-field{display:grid;gap:4px;min-width:0}
.s-loginpage-field small{display:flex;justify-content:space-between;gap:12px;font-size:var(--s-text-xs);line-height:1.7}
.s-loginpage-field small.s-form-error{margin:0}
.s-loginpage-count{margin-inline-start:auto;color:var(--s-text-muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.s-loginpage-form fieldset:disabled{opacity:.55}
.s-loginprev{display:grid;justify-items:center;gap:10px;padding:20px 14px;border-radius:var(--s-radius-md);border:1px solid var(--s-border);background:radial-gradient(500px 160px at 50% -40px,rgba(206,24,30,.12),transparent 70%),#f4f5f7}
.s-loginprev.is-off{filter:grayscale(1);opacity:.45}
.s-loginprev-card{display:grid;gap:6px;width:100%;max-width:300px;padding:18px 16px 14px;box-sizing:border-box;background:#fff;border-top:3px solid var(--s-brand);border-radius:14px;box-shadow:0 10px 28px rgba(15,23,42,.10);text-align:right}
.s-loginprev-logo{justify-self:center;width:44px;height:44px}
.s-loginprev-brand{margin:0;text-align:center;font-weight:700;font-size:14px}
.s-loginprev-brand span{color:var(--s-brand)}
.s-loginprev-title{margin:4px 0 0;text-align:center;font-weight:700;font-size:14px;overflow-wrap:anywhere}
.s-loginprev-sub{margin:0 0 4px;text-align:center;font-size:11px;line-height:1.8;color:var(--s-text-muted);overflow-wrap:anywhere}
.s-loginprev-label{margin-top:4px;font-size:11px;font-weight:600;color:#374151;overflow-wrap:anywhere}
.s-loginprev-input{height:26px;border:1px solid #d1d5db;border-radius:8px;background:#f9fafb}
.s-loginprev-check{display:flex;align-items:center;gap:6px;margin:4px 0;font-size:11px;overflow-wrap:anywhere}
.s-loginprev-box{width:12px;height:12px;flex-shrink:0;border:1px solid #9ca3af;border-radius:3px}
.s-loginprev-btn{display:flex;align-items:center;justify-content:center;min-height:30px;padding:0 10px;border-radius:8px;background:var(--s-brand);color:#fff;font-size:12px;font-weight:700;overflow-wrap:anywhere;text-align:center}
.s-loginprev-link{margin-top:4px;text-align:center;font-size:11px;color:var(--s-brand);overflow-wrap:anywhere}
.s-loginprev-foot{display:grid;justify-items:center;gap:6px;max-width:300px;text-align:center;font-size:11px;line-height:1.8;color:var(--s-text-muted);overflow-wrap:anywhere}
.s-loginprev-foot p{margin:0}
.s-loginprev-pill{padding:3px 12px;border:1px solid rgba(206,24,30,.25);border-radius:999px;background:#fff;color:var(--s-brand);font-weight:600}
/* hosting space: the account's biggest top-level folders */
.s-storage-folders{margin:4px 0 14px}
.s-storage-folders h3{margin:0 0 8px;font-size:var(--s-text-sm);font-weight:700}
.s-storage-folders ul{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.s-storage-folders li{display:grid;grid-template-columns:minmax(0,180px) minmax(0,1fr) auto;align-items:center;gap:10px;font-size:var(--s-text-sm)}
.s-storage-folder-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;font-family:ui-monospace,Consolas,monospace;font-size:13px}
.s-storage-folder-bar{height:8px;border-radius:999px;background:var(--s-bg-subtle);overflow:hidden}
.s-storage-folder-bar span{display:block;height:100%;border-radius:inherit;background:var(--s-info)}
.s-storage-folders b{font-variant-numeric:tabular-nums;white-space:nowrap}
@media (max-width:600px){.s-storage-folders li{grid-template-columns:minmax(0,1fr) auto}.s-storage-folder-bar{grid-column:1/-1;grid-row:2}}
.s-storage-quota .s-field small{font-size:var(--s-text-xs);line-height:1.7}

