@import url("center-crm-stage-9-3.css");
:root {
    color-scheme: dark;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #101010;
    color: #ececec;
    --background: #101010;
    --surface: #1f1f1f;
    --surface-soft: #282828;
    --border: #2a2a2a;
    --text: #ffffff;
    --muted: #a0a0a0;
    --accent: #f6c543;
    --accent-hover: #ffd45f;
    --danger: #d9534f;
    --danger-hover: #bd403d;
    --success: #3eaa68;
    --info: #4c91d8;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--background);
    color: var(--text);
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.topbar-inner {
    display: flex;
    min-height: 68px;
    align-items: center;
    gap: 24px;
}

.brand {
    flex: 0 0 auto;
    color: var(--accent);
    font-weight: 800;
    letter-spacing: .01em;
    text-decoration: none;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    padding: 9px 11px;
    border-radius: 8px;
    color: #d8d8d8;
    text-decoration: none;
}

.main-nav a:hover {
    background: var(--surface-soft);
    color: #fff;
}

.account-box {
    display: flex;
    margin-left: auto;
    align-items: center;
    gap: 10px;
}

.account-name {
    font-weight: 700;
}

.page-content {
    padding-top: 32px;
    padding-bottom: 48px;
}

.panel {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

h1,
h2 {
    margin-top: 0;
}

h1 {
    margin-bottom: 8px;
    font-size: clamp(1.65rem, 4vw, 2.2rem);
}

h2 {
    margin-bottom: 8px;
    font-size: 1.35rem;
}

p {
    line-height: 1.6;
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--accent);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.muted,
.small-muted {
    color: var(--muted);
}

.small-muted {
    display: block;
    margin-top: 4px;
    font-size: .8rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    border-radius: 10px;
    background: var(--surface-soft);
}

.stat span {
    color: var(--muted);
}

.stat strong {
    color: var(--accent);
    font-size: 28px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-check {
    margin-top: 24px;
    margin-bottom: 0;
}

.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, opacity .15s ease;
}

.button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.button-primary {
    border-color: var(--accent);
    background: var(--accent);
    color: #171717;
}

.button-primary:hover:not(:disabled) {
    border-color: var(--accent-hover);
    background: var(--accent-hover);
}

.button-secondary {
    border-color: #555;
    background: transparent;
    color: #e8e8e8;
}

.button-secondary:hover:not(:disabled) {
    border-color: #777;
    background: var(--surface-soft);
}

.button-danger {
    border-color: var(--danger);
    background: var(--danger);
    color: #fff;
}

.button-danger:hover:not(:disabled) {
    border-color: var(--danger-hover);
    background: var(--danger-hover);
}

.button-small {
    min-height: 34px;
    padding: 7px 10px;
    font-size: .84rem;
}

.button-wide {
    width: 100%;
}

.badge,
.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 800;
    white-space: nowrap;
}

.badge {
    padding: 4px 8px;
    background: rgba(246, 197, 67, .14);
    color: #f6c543;
}

.status-pill {
    padding: 5px 9px;
}

.status-ok {
    background: rgba(62, 170, 104, .15);
    color: #73d395;
}

.status-off {
    background: rgba(171, 171, 171, .15);
    color: #c8c8c8;
}

.flash-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.flash {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
}

.flash-success {
    border-color: rgba(62, 170, 104, .55);
}

.flash-danger {
    border-color: rgba(217, 83, 79, .7);
}

.flash-warning {
    border-color: rgba(255, 152, 0, .65);
}

.flash-info {
    border-color: rgba(76, 145, 216, .65);
}

.auth-layout {
    display: grid;
    min-height: calc(100vh - 150px);
    place-items: center;
}

.auth-panel {
    width: min(430px, 100%);
}

.field {
    display: grid;
    gap: 7px;
    margin-bottom: 16px;
}

.field label {
    font-weight: 700;
}

.input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #555;
    border-radius: 8px;
    outline: none;
    background: #333;
    color: #fff;
}

.input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 152, 0, .18);
}

.field-error {
    color: #f08d89;
    font-size: .84rem;
}

.checkbox-row {
    display: flex;
    margin: 4px 0 18px;
    align-items: center;
    gap: 9px;
    cursor: pointer;
}

.checkbox-row input {
    width: 17px;
    height: 17px;
    accent-color: var(--accent);
}

.page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    align-items: start;
    gap: 20px;
}

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

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

th {
    color: #cfcfcf;
    font-size: .8rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.table-actions-heading {
    text-align: right;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.empty-cell {
    padding: 28px;
    color: var(--muted);
    text-align: center;
}

.error-panel {
    max-width: 680px;
    margin: 48px auto;
    text-align: center;
}

.error-code {
    margin: 0;
    color: var(--accent);
    font-size: 4rem;
    font-weight: 900;
}

.error-details {
    overflow-x: auto;
    padding: 12px;
    border-radius: 8px;
    background: #151515;
    text-align: left;
}

@media (max-width: 860px) {
    .page-grid {
        grid-template-columns: 1fr;
    }

    .side-panel {
        order: -1;
    }
}

@media (max-width: 700px) {
    .topbar-inner {
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 12px;
        gap: 10px 16px;
    }

    .main-nav {
        order: 3;
        width: 100%;
    }

    .account-box {
        flex-wrap: wrap;
    }

    .section-heading-row {
        flex-direction: column;
    }

    .table-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(100% - 20px, 1180px);
    }

    .panel {
        padding: 18px;
    }

    .account-name,
    .account-box .badge {
        display: none;
    }
}

/* Общие таблицы данных */
.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: var(--muted);
    font-size: .78rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, .025);
}

.status-warning {
    background: rgba(255, 152, 0, .15);
    color: #ffbc59;
}

.compact-panel {
    margin-top: 18px;
}

.compact-panel h2,
.compact-panel p {
    margin-bottom: 0;
}

.empty-state {
    padding: 30px 0 12px;
    text-align: center;
}

code {
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, .06);
    color: #ffd08a;
}

@media (max-width: 860px) {
    .topbar-inner {
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .main-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
    }

    .account-box {
        margin-left: auto;
    }

    .section-heading-row {
        flex-direction: column;
    }
}

/* Общие результаты технических проверок */
.check-message {
    display: block;
    margin-top: 8px;
    line-height: 1.45;
}

.process-list {
    margin: 12px 0 0;
    padding-left: 22px;
}

.process-list li + li {
    margin-top: 7px;
}

.safety-note {
    margin-bottom: 0;
}

.status-fail {
    background: rgba(217, 83, 79, .16);
    color: #f08d89;
}

/* Массовые операции */
.bulk-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
}

.bulk-actions form {
    display: flex;
}

.status-static {
    background: rgba(76, 145, 216, .16);
    color: #8bbcf0;
}

@media (max-width: 700px) {
    .bulk-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .bulk-actions form,
    .bulk-actions .button {
        width: 100%;
    }
}

/* Этап 7: production-запуск, технический статус и мобильный интерфейс */
html {
    min-height: 100%;
}

body {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom);
}

.page-content {
    width: 100%;
    flex: 1 0 auto;
}

.site-menu {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-items: center;
    gap: 24px;
}

.nav-toggle {
    display: none;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-weight: 700;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
    content: "";
}

.nav-toggle-icon {
    position: relative;
}

.nav-toggle-icon::before {
    position: absolute;
    top: -6px;
}

.nav-toggle-icon::after {
    position: absolute;
    top: 6px;
}

.account-identity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-footer {
    flex: 0 0 auto;
    border-top: 1px solid var(--border);
    background: #151515;
}

.site-footer-inner {
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 8px 18px;
    color: var(--muted);
    font-size: .82rem;
    text-align: center;
}

.site-footer a {
    color: #d5d5d5;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}

.status-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.status-card-label {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.status-card strong {
    overflow-wrap: anywhere;
    font-size: 1.08rem;
}

.dashboard-status-grid {
    margin-top: 18px;
}

.dashboard-actions .button {
    min-height: 46px;
}

.system-details-grid {
    margin-top: 18px;
}

.details-list {
    display: grid;
    gap: 0;
    margin: 16px 0 0;
}

.details-list > div {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
}

.details-list dt {
    color: var(--muted);
}

.details-list dd {
    min-width: 0;
    margin: 0;
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}

.details-list-stacked > div {
    display: block;
}

.details-list-stacked dd {
    margin-top: 6px;
    text-align: left;
}

.status-warning-box {
    margin-top: 18px;
}

.subheading {
    margin: 22px 0 8px;
    font-size: 1rem;
}

.operation-summary {
    margin-bottom: 0;
}

.text-success {
    color: #73d395;
}

.text-danger {
    color: #f08d89;
}

@media (max-width: 700px) {
    .topbar-inner {
        min-height: 60px;
        flex-wrap: wrap;
        padding-top: max(10px, env(safe-area-inset-top));
        padding-bottom: 10px;
    }

    .brand {
        min-width: 0;
        flex: 1 1 auto;
    }

    .nav-toggle {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .site-menu {
        display: none;
        width: 100%;
        flex: 0 0 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 4px 0 2px;
    }

    .site-menu.is-open {
        display: flex;
    }

    .main-nav {
        display: grid;
        order: initial;
        width: 100%;
        overflow: visible;
        gap: 5px;
    }

    .main-nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 10px 12px;
        border: 1px solid transparent;
    }

    .account-box {
        width: 100%;
        margin-left: 0;
        padding-top: 11px;
        border-top: 1px solid var(--border);
        justify-content: space-between;
    }

    .account-identity,
    .account-name,
    .account-box .badge {
        display: flex;
    }

    .account-box form,
    .account-box .button {
        min-height: 44px;
    }

    .site-footer-inner {
        min-height: 72px;
        flex-direction: column;
        padding-top: 14px;
        padding-bottom: max(14px, env(safe-area-inset-bottom));
        gap: 5px;
    }
}

@media (max-width: 520px) {
    .page-content {
        padding-top: 18px;
        padding-bottom: 30px;
    }

    .panel {
        padding: 16px;
        border-radius: 12px;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .stat {
        min-width: 0;
        padding: 14px;
    }

    .stat strong {
        font-size: 24px;
    }

    .dashboard-actions,
    .dashboard-actions .button {
        width: 100%;
    }

    .details-list > div {
        display: block;
    }

    .details-list dd {
        margin-top: 5px;
        text-align: left;
    }
}

/* Stage 8: authentication hardening and 2FA */
.page-grid-wide {
    grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
}

.table-actions-stack {
    align-items: stretch;
    min-width: 170px;
}

.table-actions-stack form,
.table-actions-stack .button {
    width: 100%;
}

.status-error {
    background: rgba(185, 28, 28, 0.12);
    color: #991b1b;
}

.status-text-ok {
    color: #167447;
}

.status-text-warning {
    color: #9a6700;
}

.security-setup-panel,
.recovery-panel {
    max-width: 920px;
    margin: 0 auto;
}

.security-setup-grid {
    display: grid;
    grid-template-columns: minmax(250px, 340px) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.qr-card {
    display: flex;
    justify-content: center;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
}

.totp-qr {
    display: block;
    width: min(100%, 300px);
    height: auto;
}

.setup-steps {
    margin: 0 0 22px;
    padding-left: 22px;
    display: grid;
    gap: 10px;
}

.secret-box {
    display: grid;
    gap: 5px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-soft);
    overflow-wrap: anywhere;
}

.secret-box code {
    font-size: 1rem;
    letter-spacing: 0.08em;
}

.input-code {
    max-width: 320px;
    font-size: 1.25rem;
    letter-spacing: 0.12em;
}

.auth-help {
    display: block;
    margin-top: 18px;
    line-height: 1.55;
}

.notice {
    margin-top: 24px;
    padding: 16px 18px;
    border-radius: 14px;
    line-height: 1.55;
}

.notice-warning {
    border: 1px solid rgba(161, 98, 7, 0.28);
    background: rgba(245, 158, 11, 0.1);
    color: #744210;
}

.recovery-code-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.recovery-code-grid code {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
    font-size: 1.05rem;
    text-align: center;
    letter-spacing: 0.08em;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.security-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.metric-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-soft);
}

.metric-label {
    color: var(--muted);
    font-size: 0.9rem;
}

.metric-value {
    font-size: 1.35rem;
}

.metric-value-small {
    font-size: 1rem;
}

.security-action-block {
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--border);
}

.security-action-block h2 {
    margin-top: 0;
}

.event-list {
    display: grid;
    gap: 12px;
}

.event-item {
    display: grid;
    gap: 7px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-soft);
}

.event-item > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.event-item p {
    margin: 0;
}

.user-agent-cell {
    max-width: 300px;
    overflow-wrap: anywhere;
}

@media (max-width: 980px) {
    .page-grid-wide,
    .security-setup-grid,
    .security-summary-grid {
        grid-template-columns: 1fr;
    }

    .qr-card {
        max-width: 360px;
        margin: 0 auto;
    }
}

@media (max-width: 620px) {
    .recovery-code-grid {
        grid-template-columns: 1fr;
    }

    .input-code {
        max-width: none;
        width: 100%;
    }

    .button-row > * {
        width: 100%;
    }
}

@media print {
    .topbar,
    .site-footer,
    .button-row,
    .flash-stack {
        display: none !important;
    }

    .recovery-panel {
        box-shadow: none;
        border: 0;
    }
}

/* --------------------------------------------------------------------------
   CENTER CRM 0.9 design system
   -------------------------------------------------------------------------- */
:root {
    --bg-main: #101010;
    --bg-surface: #1f1f1f;
    --bg-elevated: #242424;
    --bg-input: #1b1b1b;
    --border-subtle: #2a2a2a;
    --border-strong: #414141;
    --brand: #f6c543;
    --brand-hover: #ffd45f;
    --brand-active: #d9a927;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #707070;
    --blue: #4c8dff;
    --green: #55b978;
    --orange: #ff9238;
    --red: #ef5350;
    --purple: #a884e8;
    --cyan: #4bc7c7;
    --shadow-lg: 0 24px 70px rgba(0, 0, 0, .34);
    --radius-sm: 9px;
    --radius-md: 14px;
    --radius-lg: 20px;
}

html { scroll-behavior: smooth; }
body { display: flex; min-height: 100vh; flex-direction: column; background: var(--bg-main); }
.page-content { flex: 1 0 auto; width: min(1440px, calc(100% - 40px)); padding-top: 34px; }
.container { width: min(1440px, calc(100% - 40px)); }

.skip-link { position: fixed; z-index: 999; top: 8px; left: 8px; padding: 10px 14px; transform: translateY(-150%); border-radius: 8px; background: var(--brand); color: #101010; font-weight: 800; }
.skip-link:focus { transform: translateY(0); }

.topbar { position: sticky; z-index: 100; top: 0; border-bottom-color: var(--border-subtle); background: rgba(16, 16, 16, .96); backdrop-filter: blur(18px); }
.topbar-inner { min-height: 78px; gap: 34px; }
.brand { display: inline-flex; align-items: center; color: inherit; font-size: clamp(1.18rem, 2vw, 1.62rem); letter-spacing: -.045em; white-space: nowrap; }
.brand-mark { display: inline-grid; width: 33px; height: 33px; margin-right: 9px; place-items: center; transform: rotate(-15deg); border-radius: 50% 45% 50% 40%; background: var(--brand); color: #101010; font-size: .7rem; }
.brand-osa { color: var(--brand); }
.brand-market { color: #fff; }
.brand-product { margin-left: 8px; padding: 3px 7px; border: 1px solid #484848; border-radius: 6px; color: var(--text-secondary); font-size: .56em; letter-spacing: .08em; }
.site-menu { display: flex; min-width: 0; flex: 1 1 auto; align-items: center; gap: 20px; }
.main-nav { min-width: 0; flex: 1; gap: 3px; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { position: relative; padding: 13px 12px; border-radius: 0; color: #a7a7a7; font-weight: 650; white-space: nowrap; }
.main-nav a::after { position: absolute; right: 12px; bottom: 2px; left: 12px; height: 2px; border-radius: 2px; background: var(--brand); content: ""; opacity: 0; transform: scaleX(.45); transition: .16s ease; }
.main-nav a:hover, .main-nav a.active { background: transparent; color: #fff; }
.main-nav a.active::after { opacity: 1; transform: scaleX(1); }
.account-box { gap: 14px; }
.account-identity { display: grid; grid-template-columns: auto auto; align-items: center; gap: 3px 8px; }
.account-name { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-branch { grid-column: 1 / -1; color: var(--text-muted); font-size: .73rem; text-align: right; }
.role-pill { display: inline-flex; width: fit-content; padding: 5px 9px; border-radius: 999px; background: rgba(246, 197, 67, .13); color: var(--brand); font-size: .72rem; font-weight: 800; white-space: nowrap; }
.admin-bar { border-top: 1px solid #222; border-bottom: 1px solid #222; background: #151515; }
.admin-bar-inner { display: flex; min-height: 38px; align-items: center; gap: 22px; overflow-x: auto; }
.admin-bar a { color: #8d8d8d; font-size: .78rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.admin-bar a:hover { color: var(--brand); }

.panel { border-color: var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-surface); box-shadow: 0 1px 0 rgba(255,255,255,.018) inset; }
.hero { display: flex; min-height: 280px; align-items: center; justify-content: space-between; gap: 40px; padding: clamp(28px, 4vw, 58px); overflow: hidden; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: radial-gradient(circle at 82% 18%, rgba(246,197,67,.14), transparent 35%), linear-gradient(135deg, #202020, #171717 62%); box-shadow: var(--shadow-lg); }
.hero-compact { min-height: 170px; margin-bottom: 24px; padding-block: 32px; }
.hero-content { max-width: 780px; }
.hero h1 { max-width: 800px; margin-bottom: 16px; font-size: clamp(2rem, 5vw, 4.25rem); letter-spacing: -.045em; line-height: 1.02; }
.hero p:not(.eyebrow) { max-width: 720px; color: #b1b1b1; font-size: clamp(1rem, 1.5vw, 1.18rem); }
.hero-badge { display: grid; width: 190px; min-width: 190px; aspect-ratio: 1; place-content: center; border: 1px solid rgba(246,197,67,.24); border-radius: 50%; background: rgba(0,0,0,.2); text-align: center; }
.hero-badge span, .hero-badge small { color: var(--text-muted); }
.hero-badge strong { color: var(--brand); font-size: 2rem; letter-spacing: .08em; }
.dashboard-hero { margin-bottom: 24px; }

.eyebrow { color: var(--brand); letter-spacing: .12em; }
h1, h2, h3 { letter-spacing: -.025em; }
h1 { color: #fff; }
.section-heading { margin-bottom: 24px; }
.section-heading-row { align-items: center; }
.section-space { margin-top: 24px; }
.heading-meta { display: flex; margin-bottom: 10px; align-items: center; gap: 9px; color: var(--text-muted); font-size: .82rem; }

.button { border-radius: 10px; font-weight: 800; transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-primary { border-color: var(--brand); background: var(--brand); color: #101010; box-shadow: 0 9px 24px rgba(246,197,67,.12); }
.button-primary:hover:not(:disabled) { border-color: var(--brand-hover); background: var(--brand-hover); }
.button-secondary { border-color: #454545; background: #202020; color: #f0f0f0; }
.button-secondary:hover:not(:disabled) { border-color: #696969; background: #2a2a2a; }
.button-danger { border-color: rgba(239,83,80,.5); background: rgba(239,83,80,.16); color: #ff8d8b; }
.button-large { min-height: 50px; padding-inline: 20px; }

.stats-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { min-height: 126px; justify-content: center; padding: 24px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: #1d1d1d; }
.stat strong { color: var(--brand); font-size: clamp(1.9rem, 4vw, 2.65rem); }
.stat small { color: var(--text-muted); }
.stat-link { text-decoration: none; transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.stat-link:hover { transform: translateY(-3px); border-color: #4d4d4d; background: #222; }
.stat-attention strong { color: var(--orange); }
.dashboard-kpis { margin-block: 24px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(300px, .7fr); gap: 24px; }
.quick-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(350px, .85fr); gap: 34px; }
.quick-links { display: grid; gap: 12px; }
.quick-links a { display: grid; grid-template-columns: 42px 1fr; padding: 17px; border: 1px solid #303030; border-radius: 12px; background: #191919; text-decoration: none; }
.quick-links a:hover { border-color: rgba(246,197,67,.45); }
.quick-links span { grid-row: 1 / 3; color: var(--brand); font-weight: 900; }
.quick-links small { color: var(--text-muted); }
.system-mini { display: flex; flex-direction: column; }
.system-metric { display: flex; padding: 15px 0; align-items: center; justify-content: space-between; border-bottom: 1px solid #2a2a2a; }
.system-metric strong { color: var(--brand); font-size: 1.55rem; }
.system-mini .actions { margin-top: auto; padding-top: 22px; }

.field { display: flex; min-width: 0; flex-direction: column; gap: 7px; color: #d8d8d8; font-size: .86rem; font-weight: 700; }
.field input, .field select, .field textarea, input, select, textarea { width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid #343434; border-radius: 10px; outline: none; background: var(--bg-input); color: #fff; font: inherit; font-weight: 500; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, input:focus, select:focus, textarea:focus { border-color: var(--brand); background: #202020; box-shadow: 0 0 0 3px rgba(246,197,67,.11); }
.field input::placeholder, .field textarea::placeholder { color: #606060; }
.field small, .field-help { color: var(--text-muted); font-size: .75rem; font-weight: 500; line-height: 1.4; }
.field-errors, .field-error { display: grid; gap: 3px; color: #ff8885; font-size: .76rem; font-weight: 600; }
.field-grow { min-width: 240px; flex: 1 1 340px; }
.field-span-2 { grid-column: span 2; }
.stack-form { display: grid; gap: 16px; }
.form-grid { display: grid; gap: 18px; }
.form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-narrow { width: min(760px, 100%); margin-inline: auto; }
.crm-form { display: grid; gap: 18px; }
.form-section { padding: clamp(20px, 3vw, 30px); }
.form-section-title { display: flex; margin-bottom: 24px; align-items: flex-start; gap: 14px; }
.form-section-title > span { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: rgba(246,197,67,.13); color: var(--brand); font-weight: 900; }
.form-section-title h2, .form-section-title p { margin: 0; }
.form-section-title p { margin-top: 3px; color: var(--text-muted); font-size: .86rem; }
.sticky-form-actions { position: sticky; z-index: 20; bottom: 16px; display: flex; width: fit-content; margin-left: auto; padding: 9px; gap: 9px; border: 1px solid #353535; border-radius: 14px; background: rgba(25,25,25,.95); box-shadow: 0 14px 50px rgba(0,0,0,.45); backdrop-filter: blur(12px); }
.check-field { display: flex; align-items: flex-start; gap: 10px; color: #dedede; cursor: pointer; }
.check-field input { width: 17px; height: 17px; min-height: auto; margin-top: 2px; accent-color: var(--brand); }
.check-field span { display: grid; gap: 2px; }
.check-field small { color: var(--text-muted); }
.check-field-card { min-height: 45px; padding: 12px; align-items: center; border: 1px solid #343434; border-radius: 10px; background: #1b1b1b; }
.warning-card { border-color: rgba(255,146,56,.35); background: rgba(255,146,56,.055); }

.filter-bar { display: flex; margin-bottom: 18px; padding: 14px; align-items: flex-end; gap: 12px; border: 1px solid var(--border-subtle); border-radius: 14px; background: #181818; }
.segmented { display: flex; padding: 4px; gap: 3px; border: 1px solid #333; border-radius: 11px; background: #121212; }
.segmented a { padding: 9px 13px; border-radius: 8px; color: #999; font-size: .84rem; font-weight: 750; text-decoration: none; }
.segmented a.active { background: var(--brand); color: #101010; }

.panel-table { padding: 0; overflow: hidden; }
.table-wrap { width: 100%; overflow: auto; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.data-table th { position: sticky; z-index: 2; top: 0; padding: 13px 15px; border-bottom: 1px solid #363636; background: #191919; color: #8e8e8e; font-size: .72rem; letter-spacing: .055em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 15px; border-bottom: 1px solid #292929; color: #dedede; vertical-align: middle; }
.data-table tbody tr { transition: background .12s ease; }
.data-table tbody tr:hover { background: #242424; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.table-link { color: #fff; font-weight: 800; text-decoration: none; }
.table-link:hover { color: var(--brand); }
.cell-wide { min-width: 260px; max-width: 480px; }
.align-right { text-align: right; }

.chip { display: inline-flex; padding: 5px 9px; align-items: center; border: 1px solid color-mix(in srgb, var(--chip-color, #888) 48%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--chip-color, #888) 15%, transparent); color: color-mix(in srgb, var(--chip-color, #ddd) 72%, white); font-size: .75rem; font-weight: 850; white-space: nowrap; }
.status-pill { border: 1px solid color-mix(in srgb, var(--status-color, #8b8b8b) 38%, transparent); background: color-mix(in srgb, var(--status-color, #8b8b8b) 14%, transparent); color: color-mix(in srgb, var(--status-color, #aaa) 78%, white); }
.status-large { padding: 8px 13px; font-size: .82rem; }
.status-warning { background: rgba(255,146,56,.13); color: #ffad68; }
.status-danger { background: rgba(239,83,80,.13); color: #ff8885; }
.status-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--status-color, #888); box-shadow: 0 0 0 4px color-mix(in srgb, var(--status-color, #888) 14%, transparent); }
.branch-label { color: var(--brand); font-size: .77rem; font-weight: 900; letter-spacing: .04em; }

.data-list { display: grid; margin-top: 18px; }
.data-list-row { display: grid; grid-template-columns: 1.1fr .75fr minmax(220px, 1.6fr) .7fr; padding: 15px 4px; align-items: center; gap: 18px; border-bottom: 1px solid #2b2b2b; text-decoration: none; }
.data-list-row:last-child { border-bottom: 0; }
.data-list-row:hover { color: var(--brand); }
.data-list-row > div { display: grid; gap: 3px; }
.data-list-row span:not(.chip):not(.status-pill) { color: var(--text-muted); }
.data-list-main { color: #d0d0d0 !important; }

.delivery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(410px, 1fr)); gap: 18px; }
.delivery-card { display: flex; min-width: 0; flex-direction: column; padding: 22px; border: 1px solid #303030; border-radius: 16px; background: #1d1d1d; box-shadow: 0 14px 35px rgba(0,0,0,.12); }
.delivery-card-new { border-color: rgba(246,197,67,.35); box-shadow: 0 0 0 1px rgba(246,197,67,.05) inset, 0 14px 35px rgba(0,0,0,.12); }
.delivery-card-top, .delivery-client, .delivery-meta, .delivery-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.delivery-card-top > div { display: flex; align-items: center; gap: 8px; }
.delivery-client { margin-top: 18px; align-items: flex-start; }
.delivery-client h2, .delivery-client p { margin: 0; }
.delivery-client p { margin-top: 4px; color: var(--text-secondary); }
.delivery-time { color: var(--text-muted); font-size: .76rem; }
.delivery-message { margin: 18px 0; padding: 16px; border-left: 3px solid var(--brand); border-radius: 0 10px 10px 0; background: #171717; }
.delivery-message p { margin: 7px 0 0; color: #c4c4c4; white-space: pre-line; }
.delivery-meta { margin-top: auto; padding-top: 14px; border-top: 1px solid #2c2c2c; color: var(--text-muted); font-size: .78rem; }
.delivery-meta strong { color: #ddd; }
.delivery-actions { margin-top: 16px; justify-content: flex-start; }
.delivery-actions form { margin: 0; }
.mini-attachments { display: flex; margin-top: 14px; gap: 7px; }
.mini-attachments img { width: 56px; height: 56px; object-fit: cover; border: 1px solid #393939; border-radius: 9px; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .65fr); gap: 22px; }
.detail-main { min-width: 0; }
.detail-sidebar { display: grid; align-content: start; gap: 18px; }
.detail-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.comment-box { margin: 20px 0; padding: 18px; border: 1px solid #303030; border-radius: 12px; background: #171717; color: #e1e1e1; line-height: 1.65; white-space: pre-line; }
.lead-note { color: var(--text-secondary); }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 22px 0; gap: 16px; }
.detail-grid div { padding: 14px; border: 1px solid #2c2c2c; border-radius: 10px; background: #1a1a1a; }
.detail-grid dt { margin-bottom: 5px; color: var(--text-muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.detail-grid dd { margin: 0; color: #eee; white-space: pre-line; }
.detail-span-2 { grid-column: span 2; }
.contact-list { display: grid; gap: 13px; }
.contact-list div { display: grid; gap: 3px; }
.contact-list span { color: var(--text-muted); font-size: .76rem; }
.contact-list strong { overflow-wrap: anywhere; }
.attachment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.attachment-card { display: grid; overflow: hidden; border: 1px solid #303030; border-radius: 12px; background: #171717; text-decoration: none; }
.attachment-card:hover { border-color: rgba(246,197,67,.5); }
.attachment-card img { width: 100%; height: 170px; object-fit: cover; background: #0d0d0d; }
.attachment-card span { padding: 10px; overflow: hidden; color: #bdbdbd; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.timeline { display: grid; margin-top: 22px; }
.timeline-item { display: grid; grid-template-columns: 18px 1fr; gap: 11px; }
.timeline-dot { position: relative; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--brand); }
.timeline-dot::after { position: absolute; top: 12px; bottom: -46px; left: 4px; width: 1px; background: #3a3a3a; content: ""; }
.timeline-item:last-child .timeline-dot::after { display: none; }
.timeline-item > div:last-child { padding-bottom: 22px; }
.timeline-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.timeline-head span { color: var(--text-muted); font-size: .76rem; }
.timeline-item p { margin: 6px 0 0; color: #c3c3c3; white-space: pre-line; }

.admin-split { display: grid; grid-template-columns: minmax(300px, .58fr) minmax(0, 1.42fr); gap: 22px; align-items: start; }
.admin-main-panel { min-width: 0; }
.user-card-list, .settings-list, .role-list { display: grid; gap: 12px; }
.user-card { display: grid; grid-template-columns: 46px 1fr; padding: 16px; gap: 14px; border: 1px solid #303030; border-radius: 13px; background: #1a1a1a; }
.user-avatar { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 50%; background: var(--brand); color: #101010; font-size: 1.15rem; font-weight: 900; }
.user-card-main { min-width: 0; }
.user-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.user-card-heading > div:first-child { display: grid; gap: 2px; }
.user-card-heading > div:first-child span { color: var(--text-muted); font-size: .76rem; }
.user-meta { display: flex; margin-top: 10px; flex-wrap: wrap; gap: 8px 16px; color: #969696; font-size: .77rem; }
.user-actions { margin-top: 13px; }
.settings-nav { position: sticky; z-index: 30; top: 118px; display: flex; margin-bottom: 26px; padding: 9px; gap: 5px; overflow-x: auto; border: 1px solid #303030; border-radius: 13px; background: rgba(24,24,24,.94); backdrop-filter: blur(12px); }
.settings-nav a { padding: 9px 12px; border-radius: 8px; color: #aaa; font-size: .82rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.settings-nav a:hover { background: #282828; color: var(--brand); }
.settings-section { padding-top: 20px; margin-bottom: 42px; scroll-margin-top: 160px; }
.settings-row { display: flex; padding: 14px; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #2d2d2d; border-radius: 11px; background: #191919; }
.settings-row > div:first-child { display: grid; gap: 3px; }
.settings-row span:not(.status-pill):not(.chip) { color: var(--text-muted); font-size: .76rem; }
.directory-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.directory-columns h3 { margin: 0 0 10px; color: #cfcfcf; }
.directory-row { display: grid; grid-template-columns: 12px 1fr auto; padding: 10px 4px; align-items: center; gap: 9px; border-bottom: 1px solid #2a2a2a; text-decoration: none; }
.directory-row:hover { color: var(--brand); }
.directory-row small { color: var(--text-muted); }
.settings-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.permission-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 20px 0; gap: 18px; }
.permission-groups fieldset { display: grid; padding: 14px; gap: 10px; border: 1px solid #303030; border-radius: 11px; }
.permission-groups legend { padding: 0 6px; color: var(--brand); font-size: .77rem; font-weight: 850; }
.role-card { margin-bottom: 16px; }
.notice-box { padding: 14px 16px; border: 1px solid rgba(76,141,255,.28); border-radius: 11px; background: rgba(76,141,255,.08); color: #b8d0ff; line-height: 1.5; }
.secret-panel { padding: 17px; border: 1px solid #353535; border-radius: 12px; background: #181818; }
.secret-panel > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.secret-panel > div:first-child span, .secret-panel p { color: var(--text-muted); font-size: .78rem; }

.empty-state { padding: 32px; color: var(--text-muted); text-align: center; }
.flash { border-radius: 11px; }
.flash-success { border-color: rgba(85,185,120,.35); background: rgba(85,185,120,.1); }
.flash-info { border-color: rgba(76,141,255,.35); background: rgba(76,141,255,.1); }
.flash-warning { border-color: rgba(255,146,56,.35); background: rgba(255,146,56,.1); }
.flash-danger { border-color: rgba(239,83,80,.35); background: rgba(239,83,80,.1); }
.site-footer { border-top-color: #232323; background: #0d0d0d; }
.site-footer-inner { color: #696969; }

@media (max-width: 1120px) {
    .topbar-inner { gap: 16px; }
    .brand-product { display: none; }
    .main-nav a { padding-inline: 8px; font-size: .88rem; }
    .stats-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-grid, .detail-layout { grid-template-columns: 1fr; }
    .detail-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quick-panel { grid-template-columns: 1fr; }
    .admin-split { grid-template-columns: 360px minmax(0, 1fr); }
}

@media (max-width: 820px) {
    .container, .page-content { width: min(100% - 24px, 100%); }
    .topbar-inner { min-height: 66px; }
    .nav-toggle { display: inline-flex; margin-left: auto; }
    .site-menu { position: absolute; top: 66px; right: 12px; left: 12px; display: none; padding: 14px; align-items: stretch; border: 1px solid #353535; border-radius: 14px; background: #171717; box-shadow: var(--shadow-lg); }
    .site-menu.is-open { display: grid; }
    .main-nav { display: grid; overflow: visible; }
    .main-nav a { padding: 12px; border-radius: 8px; }
    .main-nav a.active { background: rgba(246,197,67,.09); }
    .main-nav a::after { display: none; }
    .account-box { margin: 8px 0 0; padding-top: 12px; justify-content: space-between; border-top: 1px solid #2e2e2e; }
    .admin-bar { display: none; }
    .hero { min-height: auto; align-items: flex-start; padding: 28px 22px; }
    .hero-badge { display: none; }
    .hero h1 { font-size: clamp(2rem, 11vw, 3.2rem); }
    .form-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .delivery-grid { grid-template-columns: 1fr; }
    .data-list-row { grid-template-columns: 1fr auto; }
    .data-list-main { grid-column: 1 / -1; }
    .admin-split { grid-template-columns: 1fr; }
    .settings-nav { top: 78px; }
}

@media (max-width: 600px) {
    .page-content { padding-top: 22px; }
    .brand-mark { width: 27px; height: 27px; }
    .brand { font-size: 1.12rem; }
    .stats-four, .form-grid-2, .form-grid-3, .detail-grid, .detail-sidebar, .directory-columns, .settings-form-grid, .permission-groups { grid-template-columns: 1fr; }
    .field-span-2, .detail-span-2 { grid-column: auto; }
    .filter-bar { align-items: stretch; flex-direction: column; }
    .segmented { overflow-x: auto; }
    .section-heading-row { align-items: flex-start; flex-direction: column; }
    .delivery-card { padding: 17px; }
    .delivery-meta { align-items: flex-start; flex-direction: column; }
    .delivery-actions { align-items: stretch; flex-direction: column; }
    .delivery-actions form, .delivery-actions .button { width: 100%; }
    .sticky-form-actions { right: 12px; bottom: 10px; left: 12px; width: auto; }
    .sticky-form-actions .button { flex: 1; }
    .user-card { grid-template-columns: 1fr; }
    .user-card-heading { flex-direction: column; }
    .user-actions .button, .user-actions form { width: 100%; }
    .user-actions form button { width: 100%; }
    .data-table { min-width: 900px; }
    .attachment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .attachment-card img { height: 125px; }
}

/* CRM 0.9.1 — reports and Telegram */
.report-filter { justify-content: flex-start; }
.report-filter .field { min-width: 210px; }
.report-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.report-header h2, .report-header p { margin-bottom: 0; }
.report-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.report-metric { display: grid; min-height: 120px; align-content: space-between; padding: 18px; border: 1px solid #303030; border-radius: 14px; background: #1b1b1b; }
.report-metric span { color: var(--text-muted); font-size: .78rem; font-weight: 700; line-height: 1.4; }
.report-metric strong { color: var(--brand); font-size: 2rem; line-height: 1; }
.report-metric-alert { border-color: rgba(239,83,80,.42); background: rgba(239,83,80,.055); }
.report-metric-alert strong { color: #ff8885; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.report-ranking { display: grid; margin-top: 14px; }
.report-ranking > div { display: flex; padding: 12px 0; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #2c2c2c; }
.report-ranking > div:last-child { border-bottom: 0; }
.report-ranking span { color: #d6d6d6; }
.report-ranking strong { color: var(--brand); font-size: 1.1rem; }
.problem-list { display: grid; margin-top: 18px; }
.problem-row { display: grid; grid-template-columns: 32px 1fr auto; padding: 13px 4px; align-items: center; gap: 12px; border-bottom: 1px solid #2b2b2b; text-decoration: none; }
.problem-row:last-child { border-bottom: 0; }
.problem-row:hover { color: var(--brand); }
.problem-row > span:nth-child(2) { display: grid; gap: 3px; }
.problem-row small { color: var(--text-muted); }
.problem-icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: rgba(239,83,80,.14); color: #ff8885; font-weight: 900; }
.telegram-recipient-row { align-items: flex-start; }
.telegram-recipient-row .actions { justify-content: flex-end; }
.telegram-recipient-row form { margin: 0; }

@media (max-width: 900px) {
    .report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .report-header { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 600px) {
    .report-metrics, .report-grid { grid-template-columns: 1fr; }
    .report-metric { min-height: 100px; }
    .telegram-recipient-row { align-items: stretch; flex-direction: column; }
    .telegram-recipient-row .actions { width: 100%; justify-content: flex-start; }
}

/* Stage 9.3.30 — store avatar settings */
.store-settings-summary {
  min-width:0;
  display:flex!important;
  align-items:center;
  gap:11px!important;
}

.store-settings-summary > div {
  min-width:0;
  display:grid;
  gap:3px;
}

.store-settings-avatar,
.store-avatar-current img {
  width:46px;
  height:46px;
  flex:none;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:1px solid #3a3a3a;
  border-radius:50%;
  background:#2a2a2a;
  color:#f6c543;
  font-size:.74rem;
  font-weight:850;
}

.store-settings-avatar img,
.store-avatar-current img {
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.store-avatar-current {
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
  border:1px solid #343434;
  border-radius:11px;
  background:#191919;
}

.store-avatar-current > div {
  display:grid;
  gap:3px;
}

.store-avatar-current span {
  color:#a0a0a0;
  font-size:.78rem;
}

/* 0.11.51 — report problem rows without decorative trailing arrows */
.problem-row { grid-template-columns: 32px minmax(0,1fr); }
