:root {
    --bg: #f5f7f9;
    --panel: #ffffff;
    --text: #17212b;
    --muted: #66727d;
    --line: #dfe5ea;
    --soft-line: #edf1f4;
    --primary: #146c5f;
    --primary-hover: #0f574c;
    --danger: #9b2525;
    --danger-bg: #fff0f0;
    --danger-hover: #7d1d1d;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: Arial, sans-serif;
}

a {
    color: inherit;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;
    gap: 18px;
    min-height: 64px;
    padding: 0 28px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    text-decoration: none;
}

.mobile-menu-toggle {
    display: none;
}

.app-menu {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 18px;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: var(--primary);
    font-size: 17px;
    font-weight: 800;
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--text);
    background: #edf2f4;
}

.admin-nav {
    position: relative;
}

.admin-nav summary {
    list-style: none;
    cursor: pointer;
}

.admin-nav summary::-webkit-details-marker {
    display: none;
}

.admin-nav summary::after {
    margin-left: 7px;
    content: "";
    border-top: 5px solid currentColor;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

.admin-nav[open] summary {
    color: var(--text);
    background: #edf2f4;
}

.admin-nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    display: grid;
    min-width: 190px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(22, 34, 43, 0.14);
}

.admin-nav-menu .nav-link {
    justify-content: flex-start;
    color: var(--text);
}

.logout-form {
    margin: 0;
}

.page {
    width: min(1180px, calc(100% - 40px));
    margin: 28px auto;
}

.auth-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 8px 24px rgba(22, 34, 43, 0.06);
}

.panel-pad {
    padding: 24px;
}

h1 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.15;
}

h2,
p {
    margin-top: 0;
}

p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.45;
}

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

.stat-panel {
    padding: 22px;
}

.home-layout {
    display: grid;
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    align-items: start;
    gap: 18px;
}

.panel-kicker {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.user-summary-panel h2 {
    margin: 0 0 18px;
    overflow-wrap: anywhere;
    font-size: 22px;
}

.profile-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.profile-list div {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.profile-list dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.profile-list dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.permission-summary {
    margin-top: 22px;
}

.permission-summary h3 {
    margin: 0 0 10px;
    font-size: 15px;
}

.permission-summary mark {
    margin: 0 6px 6px 0;
}

.module-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.module-card {
    display: grid;
    min-height: 170px;
    align-content: space-between;
    gap: 18px;
    padding: 18px;
}

.module-card h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.module-locked {
    display: inline-flex;
    width: fit-content;
    min-height: 24px;
    align-items: center;
    padding: 0 8px;
    border-radius: 999px;
    color: var(--muted);
    background: #edf1f4;
    font-size: 13px;
    font-weight: 800;
}

label {
    display: block;
    margin-bottom: 15px;
    color: #34424d;
    font-size: 14px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    margin-top: 7px;
    padding: 0 12px;
    border: 1px solid #cbd4dc;
    border-radius: 6px;
    color: var(--text);
    background: #fff;
    font: inherit;
}

input,
select {
    height: 44px;
}

textarea {
    min-height: 160px;
    padding: 12px;
    line-height: 1.45;
    resize: vertical;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border: 1px solid #9aa7b2;
    vertical-align: middle;
    accent-color: var(--primary);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    outline: 3px solid rgba(20, 108, 95, 0.12);
}

input[readonly] {
    color: var(--muted);
    background: #f3f6f8;
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: var(--primary);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

button:hover,
.button:hover {
    background: var(--primary-hover);
}

button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

button:disabled:hover {
    background: var(--primary);
}

.danger-button {
    background: var(--danger);
}

.danger-button:hover {
    background: var(--danger-hover);
}

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

.button.secondary,
button.secondary {
    color: var(--text);
    background: #e9eef2;
}

.full {
    width: 100%;
}

.alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid #f0b8b8;
    border-radius: 8px;
    color: var(--danger);
    background: var(--danger-bg);
}

.success-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid #bdded4;
    border-radius: 8px;
    color: #146c5f;
    background: #edf8f4;
}

mark {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    color: #195246;
    background: #dff3ee;
    font-size: 13px;
    font-weight: 700;
}

.page-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.summary-tile {
    display: grid;
    min-width: 96px;
    min-height: 64px;
    place-items: center;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.summary-tile strong {
    font-size: 22px;
    line-height: 1;
}

.summary-tile span,
.muted-note {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

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

.data-table {
    width: 100%;
    min-width: 840px;
    border-collapse: collapse;
    table-layout: fixed;
}

.data-table th,
.data-table td {
    height: 48px;
    padding: 0 18px;
    border-top: 1px solid var(--soft-line);
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.data-table th {
    height: 38px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.inline-form {
    display: inline;
}

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

.form-actions {
    align-self: end;
}

.toolbar-actions {
    display: flex;
    align-items: end;
    gap: 10px;
}

.crud-table-panel {
    overflow: hidden;
}

.users-crud-table {
    min-width: 1100px;
}

.users-crud-table th:nth-child(1),
.users-crud-table td:nth-child(1) {
    width: 72px;
}

.users-crud-table th:nth-child(4),
.users-crud-table td:nth-child(4) {
    width: 118px;
}

.users-crud-table th:nth-child(5),
.users-crud-table td:nth-child(5) {
    width: 150px;
}

.users-crud-table th:nth-child(6),
.users-crud-table td:nth-child(6) {
    width: 88px;
}

.users-crud-table th:nth-child(7),
.users-crud-table td:nth-child(7) {
    width: 160px;
}

.users-crud-table th:nth-child(8),
.users-crud-table td:nth-child(8) {
    width: 150px;
}

.users-crud-table th:nth-child(9),
.users-crud-table td:nth-child(9) {
    width: 118px;
}

.users-summary-table {
    min-width: 0;
}

.users-page .crud-table-panel,
.users-page .table-scroll {
    overflow: visible;
}

.users-filter-panel {
    margin-bottom: 16px;
}

.users-search-form {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.users-search-form label {
    width: min(320px, 100%);
    margin-bottom: 0;
}

.users-summary-table th:nth-child(1),
.users-summary-table td:nth-child(1) {
    width: auto;
}

.users-summary-table th:nth-child(2),
.users-summary-table td:nth-child(2) {
    width: 180px;
}

.users-summary-table th:nth-child(3),
.users-summary-table td:nth-child(3) {
    width: 150px;
    overflow: visible;
}

.users-summary-table th:nth-child(4),
.users-summary-table td:nth-child(4) {
    width: 150px;
    overflow: visible;
}

.users-summary-table .icon-actions {
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.users-summary-table .table-sort {
    color: inherit;
    text-decoration: none;
}

.users-summary-table .table-sort:hover {
    color: var(--text);
}

.permission-tooltip {
    position: relative;
    display: inline-flex;
    min-width: 30px;
    min-height: 26px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    background: #fff;
    font-weight: 800;
    cursor: help;
}

.permission-tooltip:focus-visible {
    outline: 3px solid rgba(20, 108, 95, 0.12);
}

.permission-tooltip-box {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    z-index: 35;
    display: none;
    min-width: 220px;
    max-width: 320px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: #fff;
    box-shadow: 0 12px 32px rgba(22, 34, 43, 0.14);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    text-align: left;
    transform: translateX(-50%);
    white-space: pre-line;
}

.users-summary-table tbody tr:first-child .permission-tooltip-box {
    top: calc(100% + 8px);
    bottom: auto;
}

.permission-tooltip:hover .permission-tooltip-box,
.permission-tooltip:focus .permission-tooltip-box,
.permission-tooltip:focus-within .permission-tooltip-box {
    display: block;
}

.user-detail-panel {
    max-width: 860px;
}

.user-detail-list div {
    grid-template-columns: 140px minmax(0, 1fr);
}

.password-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px 38px;
    gap: 8px;
    align-items: center;
    margin-top: 7px;
}

.password-input-row input {
    margin-top: 0;
}

.password-input-row .icon-button {
    width: 38px;
    height: 38px;
}

.feedback-form-panel {
    max-width: 760px;
}

.rules-panel {
    max-width: 860px;
}

.menu-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
    align-items: start;
    gap: 18px;
}

.script-guide-panel {
    min-width: 0;
    max-height: calc(100vh - 128px);
    overflow: auto;
}

.script-guide-content,
.rules-content {
    display: grid;
    gap: 14px;
    margin: 0;
}

.script-guide-content h2,
.rules-content h2 {
    margin: 12px 0 0;
    font-size: 20px;
}

.script-guide-content h2:first-child {
    margin-top: 0;
}

.script-guide-content h3 {
    margin: 16px 0 0;
    font-size: 18px;
}

.script-guide-content h4 {
    margin: 10px 0 0;
    font-size: 16px;
}

.script-guide-content ol,
.script-guide-content ul,
.rules-content ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 24px;
}

.menu-script-panel {
    position: sticky;
    top: 82px;
}

.script-guide-content code {
    padding: 2px 6px;
    border-radius: 4px;
    background: #edf1f4;
    font-family: Consolas, monospace;
    font-size: 0.95em;
}

.guide-warning {
    padding: 10px 12px;
    border: 1px solid #f0d99a;
    border-radius: 6px;
    color: #6a4a00;
    background: #fff8df;
    font-weight: 700;
}

.feedback-table {
    min-width: 720px;
}

.feedback-table th:nth-child(1),
.feedback-table td:nth-child(1) {
    width: 240px;
}

.feedback-table th:nth-child(2),
.feedback-table td:nth-child(2) {
    width: auto;
}

.feedback-table th:nth-child(3),
.feedback-table td:nth-child(3) {
    width: 190px;
}

.approved-feedback-table {
    min-width: 720px;
}

.approved-feedback-table th:nth-child(1),
.approved-feedback-table td:nth-child(1) {
    width: 240px;
}

.approved-feedback-table th:nth-child(2),
.approved-feedback-table td:nth-child(2) {
    width: auto;
}

.approved-feedback-table th:nth-child(3),
.approved-feedback-table td:nth-child(3) {
    width: 130px;
}

.approved-feedback-table td:nth-child(3) > .icon-button {
    margin-right: 8px;
    vertical-align: middle;
}

.feedback-detail-panel {
    max-width: 960px;
}

.feedback-detail-head {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.feedback-detail-head > div {
    display: grid;
    gap: 6px;
}

.feedback-message-box {
    min-height: 180px;
    padding: 16px;
    border: 1px solid #d8e0e6;
    border-radius: 6px;
    background: #f8faf9;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.feedback-detail-actions {
    gap: 8px;
    justify-content: flex-start;
}

.text-cell {
    height: auto;
    min-height: 48px;
    padding-top: 12px;
    padding-bottom: 12px;
    overflow: visible;
    text-overflow: initial;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.4;
}

.table-actions {
    display: flex;
    gap: 8px;
}

.launch-logs-table {
    min-width: 820px;
}

.launch-logs-table th:nth-child(1),
.launch-logs-table td:nth-child(1) {
    width: 230px;
}

.launch-logs-table th:nth-child(5),
.launch-logs-table td:nth-child(5) {
    width: 110px;
}

.launch-logs-table th:nth-child(2),
.launch-logs-table td:nth-child(2),
.launch-logs-table th:nth-child(4),
.launch-logs-table td:nth-child(4) {
    width: 190px;
}

.launch-logs-table th:nth-child(3),
.launch-logs-table td:nth-child(3) {
    width: 130px;
}

.launch-log-filter-panel {
    margin-bottom: 16px;
}

.launch-log-filter-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.launch-log-type-actions {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}

.launch-log-filter-form {
    width: min(320px, 100%);
}

.launch-log-search-form {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    width: auto;
}

.launch-log-search-form label {
    width: min(320px, 100%);
}

.launch-log-filter-form label {
    margin-bottom: 0;
}

.launch-log-clear-form {
    flex: 0 0 auto;
}

.launch-log-detail-list div {
    grid-template-columns: 130px minmax(0, 1fr);
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.status-success {
    color: #146c5f;
}

.status-failed {
    color: var(--danger);
}

.status-pending {
    color: var(--muted);
}

.color-filter-panel {
    margin-bottom: 16px;
}

.color-filter-actions {
    display: flex;
    align-items: end;
    gap: 10px;
}

.color-table {
    min-width: 1080px;
}

.color-table th:nth-child(1),
.color-table td:nth-child(1) {
    width: 58px;
}

.color-table th:nth-child(2),
.color-table td:nth-child(2) {
    width: 86px;
}

.color-table th:nth-child(3),
.color-table td:nth-child(3) {
    width: 110px;
}

.color-table th:nth-child(4),
.color-table td:nth-child(4) {
    width: 140px;
}

.color-table th:nth-child(6),
.color-table td:nth-child(6) {
    width: 120px;
}

.color-table th:nth-child(7),
.color-table td:nth-child(7) {
    width: 220px;
}

.color-table th:nth-child(8),
.color-table td:nth-child(8) {
    width: 220px;
}

.grid-summary {
    padding: 12px 18px 8px;
    color: var(--text);
    font-size: 14px;
}

.color-table th a {
    color: inherit;
    text-decoration: none;
}

.table-sort {
    justify-content: flex-start;
    min-height: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    font-size: inherit;
}

.table-sort:hover {
    color: var(--text);
    background: transparent;
}

.table-link-button {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--muted);
    background: transparent;
    font-size: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
}

.table-link-button:hover,
.table-link-button:focus-visible {
    color: var(--text);
    background: transparent;
    text-decoration-color: currentColor;
}


.color-swatch {
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-right: 8px;
    border: 1px solid #b8c3cc;
    border-radius: 5px;
    vertical-align: middle;
}

.color-preview {
    display: inline-flex;
    width: 48px;
    height: 30px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 6px;
    vertical-align: middle;
}

.price-icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    object-fit: contain;
    vertical-align: middle;
}

.color-price-value {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pager-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.crud-table-panel .pager-wrap {
    justify-content: center;
    margin-top: 0;
    padding: 14px 18px 18px;
    border-top: 1px solid var(--soft-line);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination li {
    display: block;
}

.pagination a,
.pagination span,
.pagination button {
    display: grid;
    min-width: 34px;
    height: 34px;
    place-items: center;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.pagination .active a,
.pagination .active span,
.pagination .active button {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary);
}

.pagination .disabled span,
.pagination .disabled button {
    color: var(--muted);
    background: #edf1f4;
}

.permission-checkbox {
    margin: 0;
}

.permissions-fieldset {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0;
    border: 0;
}

.permissions-fieldset legend {
    margin-bottom: 9px;
    color: #34424d;
    font-size: 14px;
    font-weight: 700;
}

.permissions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    min-height: 40px;
    align-items: center;
}

.table-primary {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.icon-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.icon-button {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #d8e0e6;
    border-radius: 6px;
    color: var(--text);
    background: #fff;
    text-decoration: none;
    cursor: pointer;
}

.icon-button:hover {
    color: var(--primary);
    background: #edf4f2;
}

.primary-icon {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary);
}

.primary-icon:hover {
    color: #fff;
    background: var(--primary-hover);
}

.danger-icon {
    color: var(--danger);
}

.danger-icon:hover {
    color: #fff;
    background: var(--danger);
}

.approve-icon {
    color: var(--primary);
}

.approve-icon:hover {
    color: #fff;
    background: var(--primary);
}

.icon-button:disabled,
.icon-button:disabled:hover {
    color: var(--danger);
    background: #fff;
    opacity: 0.38;
}

.modal-layer {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-layer:target {
    display: flex;
}

.color-special-modal:not([hidden]) {
    display: flex;
}

body.modal-open {
    overflow: hidden;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 25, 34, 0.48);
}

.modal-card {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: min(720px, calc(100vh - 48px));
    overflow: auto;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 25, 34, 0.24);
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.modal-header h2 {
    margin: 0 0 5px;
}

.modal-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modal-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-end;
    gap: 10px;
}

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

.color-special-list p {
    color: var(--text);
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
}

.checkbox-line span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.35;
}

.automation-layout {
    display: grid;
    grid-template-columns: minmax(360px, 520px) minmax(0, 1fr);
    align-items: start;
    gap: 18px;
}

.automation-panel {
    min-width: 0;
}

.field-hint {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
}

.automation-checkbox {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 2px 0 18px;
    color: #34424d;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.automation-actions {
    display: grid;
    justify-items: start;
    gap: 16px;
    margin-top: 2px;
}

.automation-command-row {
    display: flex;
    gap: 10px;
}

.automation-checkbox-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    overflow: hidden;
    opacity: 0;
}

.automation-checkbox span {
    line-height: 18px;
}

.automation-checkmark {
    position: relative;
    display: inline-grid;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    place-items: center;
    border: 1px solid #9aa7b2;
    border-radius: 4px;
    background: #fff;
}

.automation-checkmark::after {
    width: 9px;
    height: 5px;
    margin-top: -1px;
    border: solid #fff;
    border-width: 0 0 2px 2px;
    content: "";
    opacity: 0;
    transform: rotate(-45deg);
}

.automation-checkbox-input:checked + .automation-checkmark {
    border-color: var(--primary);
    background: var(--primary);
}

.automation-checkbox-input:checked + .automation-checkmark::after {
    opacity: 1;
}

.automation-checkbox-input:focus-visible + .automation-checkmark {
    outline: 3px solid rgba(20, 108, 95, 0.12);
}

.automation-live {
    display: grid;
    gap: 16px;
}

.automation-live-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.automation-live-header h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.automation-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.automation-connection {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--danger);
    box-shadow: 0 0 0 3px rgba(155, 37, 37, 0.12);
}

.automation-connection.is-online {
    background: #16845f;
    box-shadow: 0 0 0 3px rgba(22, 132, 95, 0.16);
}

.automation-connection.is-offline {
    background: var(--danger);
}

.automation-messages {
    display: grid;
    min-height: 320px;
    max-height: 520px;
    align-content: start;
    gap: 8px;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafb;
}

.automation-message {
    padding: 10px 12px;
    border: 1px solid var(--soft-line);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.automation-message-success {
    border-color: #bdded4;
}

.automation-message-error {
    border-color: #f0b8b8;
    color: var(--danger);
    background: var(--danger-bg);
}

.risk-layout {
    display: grid;
    grid-template-columns: minmax(360px, 520px) minmax(0, 1fr);
    align-items: start;
    gap: 18px;
}

.risk-panel,
.risk-agent-panel {
    min-width: 0;
}

.risk-mode-dependent[hidden] {
    display: none;
}

.risk-actions,
.risk-agent-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.risk-choice-row {
    display: grid;
    grid-template-columns: 132px auto;
    width: fit-content;
    max-width: 100%;
    gap: 14px;
    align-items: center;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    background: transparent;
}

.risk-choice-row legend {
    display: grid;
    gap: 4px;
    padding: 0;
    color: var(--text);
}

.risk-choice-row legend strong {
    font-size: 14px;
}

.risk-choice-row legend span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
}

.risk-segments {
    display: grid;
    grid-template-columns: repeat(9, 44px);
    gap: 6px;
}

.risk-bet-segments {
    grid-template-columns: repeat(5, 44px);
}

.risk-mode-choice {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 10px;
}

.risk-mode-segments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
}

.risk-mode-segment {
    min-width: 0;
    font-size: 13px;
}

.risk-mode-segment.risk-segment span {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-height: 52px;
    padding: 10px 14px;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}

.risk-segment {
    position: relative;
    margin: 0;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.risk-segment input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    overflow: hidden;
    opacity: 0;
}

.risk-segment span {
    display: grid;
    width: 44px;
    height: 32px;
    place-items: center;
    border: 1px solid #cbd4dc;
    border-radius: 7px;
    background: #fff;
}

.risk-segment input:checked + span {
    border-color: #f0b51a;
    color: #261a00;
    background: #ffc72c;
}

.risk-segment input:focus-visible + span {
    outline: 3px solid rgba(240, 181, 26, 0.22);
}

.risk-inflation-choice {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 14px;
    margin-top: 22px;
    margin-bottom: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--soft-line);
}

.risk-inflation-segments {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 10px;
}

.risk-inflation-segment {
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
}

.risk-inflation-segment span {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 48px;
    padding: 13px 16px;
    place-items: center start;
    line-height: 1.35;
    text-align: left;
}

.risk-agent-panel h2 {
    margin: 0;
    font-size: 20px;
}

.risk-agent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.script-copy-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-button {
    min-height: 36px;
}

.copy-button.is-copied,
.script-copy-button.is-copied {
    border-color: #16845f;
    color: #fff;
    background: #16845f;
}

.risk-agent-panel pre {
    overflow: auto;
    margin: 16px 0 0;
    padding: 12px;
    border-radius: 6px;
    background: #17212b;
    color: #f2f7f6;
}

.script-help-link {
    display: inline-flex;
    width: fit-content;
    margin-top: 12px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.script-help-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 18px;
}

.faq-intro h2,
.faq-guide-card h2,
.faq-note-card h2 {
    margin: 0;
    font-size: 20px;
}

.faq-content,
.faq-steps {
    display: grid;
    gap: 12px;
}

.faq-intro {
    display: grid;
    gap: 12px;
}

.faq-note-card {
    display: grid;
    overflow: hidden;
}

.faq-intro-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-title-icon {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 8px;
    color: #0d4f45;
    background: #dff3ee;
}

.faq-title-icon svg {
    width: 18px;
    height: 18px;
}

.faq-guides-grid {
    display: grid;
    gap: 18px;
}

.faq-guide-card {
    display: grid;
    min-width: 0;
    overflow: hidden;
}

.faq-guide-summary,
.faq-note-summary {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 24px;
    cursor: pointer;
    list-style: none;
}

.faq-guide-summary::-webkit-details-marker,
.faq-note-summary::-webkit-details-marker {
    display: none;
}

.faq-guide-summary:hover,
.faq-note-summary:hover {
    background: #f8fafb;
}

.faq-guide-summary h2::after,
.faq-note-summary h2::after {
    margin-left: 8px;
    color: var(--muted);
    content: "+";
    font-weight: 800;
}

.faq-guide-card[open] .faq-guide-summary h2::after,
.faq-note-card[open] .faq-note-summary h2::after {
    content: "−";
}

.faq-guide-body,
.faq-note-body {
    display: grid;
    gap: 18px;
    padding: 0 24px 24px;
}

.faq-guide-card[open] .faq-guide-summary,
.faq-note-card[open] .faq-note-summary {
    border-bottom: 1px solid var(--soft-line);
    margin-bottom: 18px;
}

.faq-device-icon {
    display: grid;
    width: 48px;
    height: 46px;
    place-items: center;
    border-radius: 8px;
    color: #0d4f45;
    background: #dff3ee;
    font-size: 18px;
    font-weight: 800;
}

.faq-device-icon svg {
    width: 24px;
    height: 24px;
}

.faq-guide-summary p {
    margin-top: 6px;
}

.faq-vk-screenshot {
    min-width: 0;
    margin: 0;
}

.faq-vk-screenshot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.faq-vk-screenshot figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.faq-photo-strip {
    display: grid;
    grid-auto-columns: minmax(240px, 31%);
    grid-auto-flow: column;
    gap: 14px;
    overflow-x: auto;
    padding: 2px 2px 12px;
    scroll-snap-type: x mandatory;
    scrollbar-color: #b9c8d1 transparent;
}

.faq-photo-card {
    display: grid;
    gap: 10px;
    margin: 0;
    scroll-snap-align: start;
}

.faq-photo-card figcaption {
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.faq-photo-card.phone {
    max-width: 270px;
}

.faq-photo-card.desktop {
    min-width: 330px;
}

.faq-phone-ui,
.faq-desktop-ui {
    overflow: hidden;
    border: 1px solid #c8d3da;
    background: #fff;
    box-shadow: 0 12px 26px rgba(22, 34, 43, 0.13);
}

.faq-phone-ui {
    display: grid;
    gap: 9px;
    min-height: 360px;
    padding: 12px;
    border-radius: 24px;
    background: #17212b;
}

.faq-photo-card.ios .faq-phone-ui {
    background: #111820;
}

.faq-phone-status {
    color: #f2f7f6;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.faq-phone-address {
    min-height: 34px;
    overflow: hidden;
    padding: 9px 10px;
    border-radius: 999px;
    color: #34424d;
    background: #eef3f5;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.faq-phone-address.active {
    color: #0d4f45;
    background: #dff3ee;
}

.faq-phone-content,
.faq-ios-share,
.faq-copy-preview,
.faq-keyboard-preview {
    display: grid;
    gap: 10px;
    align-content: start;
    min-height: 240px;
    padding: 16px;
    border-radius: 16px;
    background: #fff;
}

.faq-phone-content strong,
.faq-ios-share strong {
    font-size: 20px;
}

.faq-phone-content span,
.faq-ios-share span {
    min-height: 36px;
    padding: 9px 10px;
    border-radius: 8px;
    color: #34424d;
    background: #edf1f4;
    font-size: 13px;
    font-weight: 800;
}

.faq-phone-content.success {
    border: 2px solid #bdded4;
    background: #edf8f4;
}

.faq-copy-preview span {
    overflow: hidden;
    padding: 10px;
    border-radius: 8px;
    color: #f2f7f6;
    background: #17212b;
    font-family: Consolas, monospace;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.faq-copy-preview button {
    width: 100%;
}

.faq-keyboard-preview {
    align-content: end;
    background: #f8fafb;
}

.faq-keyboard-preview span {
    display: block;
    min-height: 34px;
    padding: 8px;
    border-radius: 7px;
    background: #fff;
    color: #34424d;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.faq-tap-globe {
    display: grid;
    gap: 12px;
    justify-items: center;
    align-content: center;
    min-height: 240px;
    padding: 18px;
    border-radius: 16px;
    background: #fff8df;
    text-align: center;
}

.faq-globe-icon {
    position: relative;
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    border: 4px solid var(--primary);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 10px rgba(20, 108, 95, 0.12);
}

.faq-globe-icon::before,
.faq-globe-icon::after {
    position: absolute;
    content: "";
}

.faq-globe-icon::before {
    width: 34px;
    height: 68px;
    border-right: 3px solid var(--primary);
    border-left: 3px solid var(--primary);
    border-radius: 50%;
}

.faq-globe-icon::after {
    width: 58px;
    height: 3px;
    border-top: 3px solid var(--primary);
    border-bottom: 3px solid var(--primary);
}

.faq-tap-globe strong {
    color: #17212b;
    font-size: 18px;
}

.faq-tap-globe em {
    padding: 7px 10px;
    border-radius: 999px;
    color: #7a3200;
    background: #ffe3bd;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.faq-ios-share {
    background: #f8fafb;
}

.faq-desktop-ui {
    min-height: 260px;
    border-radius: 8px;
}

.faq-window-bar {
    display: flex;
    gap: 6px;
    height: 34px;
    align-items: center;
    padding: 0 12px;
    border-bottom: 1px solid var(--soft-line);
    background: #eef3f5;
}

.faq-window-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #b9c8d1;
}

.faq-window-bar span:first-child {
    background: #df6b5f;
}

.faq-window-bar span:nth-child(2) {
    background: #f0b51a;
}

.faq-window-bar span:nth-child(3) {
    background: #16845f;
}

.faq-desktop-game,
.faq-devtools-preview,
.faq-console-lines {
    display: grid;
    gap: 12px;
    align-content: start;
    min-height: 226px;
    padding: 18px;
}

.faq-desktop-game {
    background:
        linear-gradient(90deg, #dff3ee 0 34%, transparent 34%),
        #f8fafb;
}

.faq-desktop-game strong,
.faq-devtools-preview strong {
    width: fit-content;
    padding: 9px 12px;
    border-radius: 8px;
    background: #f7e7ac;
    font-size: 18px;
}

.faq-desktop-game span,
.faq-devtools-preview span {
    width: 68%;
    min-height: 40px;
    padding: 11px 12px;
    border-radius: 8px;
    background: #fff;
    color: #34424d;
    font-weight: 800;
}

.faq-desktop-game.success {
    border-top: 3px solid #16845f;
    background: #edf8f4;
}

.faq-devtools-preview {
    color: #f2f7f6;
    background: #17212b;
}

.faq-devtools-preview strong {
    color: var(--text);
}

.faq-devtools-preview span {
    color: #f2f7f6;
    background: #24313d;
}

.faq-console-lines {
    background: #17212b;
}

.faq-console-lines code {
    overflow: hidden;
    padding: 10px 12px;
    border-radius: 8px;
    color: #a7e3d7;
    background: #24313d;
    font-family: Consolas, monospace;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.faq-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: faq-step;
}

.faq-steps li {
    position: relative;
    display: grid;
    gap: 4px;
    min-height: 58px;
    padding: 11px 12px 11px 48px;
    border: 1px solid var(--soft-line);
    border-radius: 8px;
    background: #fff;
    counter-increment: faq-step;
}

.faq-steps li::before {
    position: absolute;
    top: 12px;
    left: 12px;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--primary);
    content: counter(faq-step);
    font-size: 12px;
    font-weight: 800;
}

.faq-steps strong {
    font-size: 14px;
}

.faq-steps span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
}

.faq-steps code {
    padding: 2px 6px;
    border-radius: 4px;
    background: #edf1f4;
    font-family: Consolas, monospace;
    font-size: 0.95em;
}

@media (max-width: 760px) {
    .app-header {
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 12px;
        min-height: 0;
        padding: 12px 14px;
    }

    .mobile-menu-toggle {
        display: inline-grid;
        width: 38px;
        height: 38px;
        place-items: center;
        gap: 4px;
        padding: 8px;
        border: 1px solid var(--line);
        border-radius: 6px;
        color: var(--text);
        background: #fff;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
    }

    .mobile-menu-toggle[aria-expanded="true"] {
        color: #fff;
        background: var(--primary);
        border-color: var(--primary);
    }

    .app-menu {
        grid-column: 1 / -1;
        display: none;
        grid-template-columns: 1fr;
        gap: 8px;
        padding-top: 10px;
        border-top: 1px solid var(--soft-line);
    }

    .app-menu.is-open {
        display: grid;
    }

    .main-nav {
        display: grid;
        gap: 6px;
    }

    .nav-link {
        min-height: 40px;
        padding: 0 12px;
        background: #f7f9fa;
        color: var(--text);
        font-size: 14px;
    }

    .admin-nav {
        display: grid;
    }

    .admin-nav summary {
        background: #f7f9fa;
    }

    .admin-nav-menu {
        position: static;
        gap: 6px;
        min-width: 0;
        margin-top: 6px;
        padding: 0 0 0 12px;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .brand {
        min-width: 0;
    }

    .brand span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
        border-radius: 7px;
    }

    .logout-form button {
        width: 100%;
        min-height: 40px;
    }

    .page {
        width: min(100% - 24px, 1180px);
        margin: 20px auto;
    }

    .page-title,
    .dashboard-grid,
    .home-layout,
    .module-overview,
    .form-grid,
    .modal-form,
    .menu-layout,
    .faq-shell,
    .faq-guides-grid,
    .automation-layout,
    .risk-layout {
        display: block;
    }

    .faq-content,
    .faq-guide-card {
        gap: 14px;
    }

    .faq-guide-card {
        margin-top: 14px;
    }

    .faq-photo-strip {
        grid-auto-columns: minmax(220px, 86%);
    }

    .script-guide-panel {
        max-height: none;
    }

    .menu-script-panel {
        position: static;
        margin-top: 14px;
    }

    .automation-live,
    .risk-agent-panel {
        margin-top: 14px;
    }

    .color-filter-actions {
        align-items: stretch;
        margin-top: 4px;
    }

    .color-table-panel .table-scroll {
        overflow: visible;
    }

    .color-table {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .color-table thead {
        display: none;
    }

    .color-table tbody {
        display: grid;
        gap: 10px;
        padding: 10px;
    }

    .color-table tr {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
        overflow: hidden;
        padding: 12px;
        border: 1px solid var(--soft-line);
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(30, 43, 54, 0.08);
    }

    .color-table tr::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        background-color: var(--color-card-bg-color, transparent);
        background-image: var(--color-card-bg-image, none);
        background-position: center;
        background-size: cover;
        opacity: 1;
        pointer-events: none;
    }

    .color-table tr::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        background:
            linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.26) 62%, rgba(0, 0, 0, 0.06)),
            linear-gradient(0deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18));
        pointer-events: none;
    }

    .color-table td {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: minmax(76px, 42%) minmax(0, 1fr);
        gap: 8px;
        width: auto !important;
        height: auto;
        min-height: 40px;
        align-items: center;
        padding: 7px 0;
        color: #fff;
        font-size: 14px;
        font-weight: 800;
        line-height: 1.28;
        overflow: visible;
        text-overflow: initial;
        white-space: normal;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.72);
    }

    .color-table td:nth-child(1),
    .color-table td:nth-child(2),
    .color-table td:nth-child(3),
    .color-table td:nth-child(4) {
        display: none;
    }

    .color-table td:nth-child(5) {
        border-top: 0;
    }

    .color-table td::before {
        color: rgba(255, 255, 255, 0.72);
        font-size: 11px;
        font-weight: 800;
        line-height: 1.2;
        text-transform: uppercase;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    }

    .color-table td:nth-child(5)::before {
        content: "\041D\0430\0437\0432.";
    }

    .color-table td:nth-child(6)::before {
        content: "\0426\0435\043D\0430";
    }

    .color-table td:nth-child(7)::before {
        content: "\0418\0441\0447\0435\0437";
    }

    .color-table td:nth-child(8)::before {
        content: "\041F\043E\044F\0432.";
    }

    .color-table td[colspan]::before {
        content: none;
    }

    .color-table .table-primary {
        color: #fff;
        font-size: 15px;
        font-weight: 900;
        overflow-wrap: anywhere;
    }

    .color-table .color-price-value {
        align-items: center;
        justify-content: flex-start;
        min-width: 0;
    }

    .color-table .price-icon {
        flex: 0 0 auto;
        width: 24px;
        height: 24px;
        padding: 3px;
        border: 1px solid rgba(255, 255, 255, 0.72);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.9);
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.58));
    }

    .color-table .table-link-button {
        min-height: 30px;
        width: fit-content;
        padding: 5px 11px;
        border: 1px solid rgba(255, 255, 255, 0.72);
        border-radius: 6px;
        color: #fff;
        background: rgba(0, 0, 0, 0.34);
        font-size: 13px;
        font-weight: 900;
        line-height: 1;
        text-decoration: none;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    }

    .color-table .table-link-button:hover,
    .color-table .table-link-button:focus-visible {
        color: #101a22;
        background: rgba(255, 255, 255, 0.86);
        text-shadow: none;
    }

    .color-table td:nth-child(5),
    .color-table td:nth-child(7),
    .color-table td:nth-child(8),
    .color-table td[colspan] {
        grid-column: 1 / -1;
    }

    .launch-log-filter-row {
        display: grid;
        gap: 10px;
    }

    .launch-log-type-actions,
    .launch-log-search-form {
        display: grid;
        gap: 10px;
    }

    .launch-log-filter-form,
    .launch-log-search-form label,
    .launch-log-search-form button,
    .users-search-form label,
    .users-search-form button,
    .launch-log-clear-form button {
        width: 100%;
    }

    .risk-choice-row {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 12px;
    }

    .risk-segments,
    .risk-bet-segments {
        grid-template-columns: repeat(auto-fit, 44px);
    }

    .risk-mode-segments {
        grid-template-columns: 1fr;
    }

    .risk-mode-segment.risk-segment span {
        width: 100%;
    }

    .risk-inflation-segments {
        grid-template-columns: 1fr;
    }

    .risk-inflation-segment span {
        min-height: 48px;
        width: 100%;
        overflow-wrap: anywhere;
    }

    .checkbox-line {
        align-items: flex-start;
    }

    .summary-tile {
        margin-top: 14px;
        place-items: start;
    }

    .toolbar-actions {
        align-items: flex-start;
    }

    .modal-layer {
        align-items: flex-start;
        padding: 12px;
    }

    .modal-card {
        max-height: calc(100vh - 24px);
        padding: 16px;
    }

    .modal-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .automation-live-header {
        display: grid;
    }

    .users-page .page-title {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 12px;
    }

    .users-page .toolbar-actions {
        align-items: flex-start;
        gap: 8px;
    }

    .users-page .summary-tile {
        min-width: 74px;
        min-height: 54px;
        margin-top: 0;
        padding: 8px 10px;
    }

    .users-summary-table {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .users-summary-table thead {
        display: none;
    }

    .users-summary-table tbody {
        display: grid;
        gap: 10px;
        padding: 10px;
    }

    .users-summary-table tr {
        display: grid;
        gap: 0;
        overflow: hidden;
        border: 1px solid var(--soft-line);
        border-radius: 8px;
        background: #fff;
    }

    .users-summary-table td {
        display: grid;
        grid-template-columns: minmax(88px, 34%) minmax(0, 1fr);
        gap: 10px;
        width: auto !important;
        height: auto;
        min-height: 42px;
        align-items: center;
        padding: 10px 12px;
        overflow: visible;
        text-overflow: initial;
        white-space: normal;
    }

    .users-summary-table td:first-child {
        border-top: 0;
    }

    .users-summary-table td::before {
        color: var(--muted);
        font-size: 12px;
        font-weight: 800;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .users-summary-table td:nth-child(1)::before {
        content: "\041B\043E\0433\0438\043D";
    }

    .users-summary-table td:nth-child(2)::before {
        content: "\0413\043E\0434\0435\043D \0434\043E";
    }

    .users-summary-table td:nth-child(3)::before {
        content: "\0420\0430\0437\0440\0435\0448\0435\043D\0438\044F";
    }

    .users-summary-table td:nth-child(4)::before {
        content: "\0414\0435\0439\0441\0442\0432\0438\044F";
    }

    .users-summary-table .table-primary {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .users-summary-table .icon-actions {
        flex-wrap: wrap;
        gap: 6px;
    }

    .approved-feedback-table {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .approved-feedback-table thead {
        display: none;
    }

    .approved-feedback-table tbody {
        display: grid;
        gap: 10px;
        padding: 10px;
    }

    .approved-feedback-table tr {
        display: grid;
        gap: 0;
        overflow: hidden;
        border: 1px solid var(--soft-line);
        border-radius: 8px;
        background: #fff;
    }

    .approved-feedback-table td {
        display: grid;
        grid-template-columns: minmax(92px, 34%) minmax(0, 1fr);
        gap: 10px;
        width: auto !important;
        height: auto;
        min-height: 42px;
        align-items: center;
        padding: 10px 12px;
        overflow: visible;
        text-overflow: initial;
        white-space: normal;
    }

    .approved-feedback-table td:first-child {
        border-top: 0;
    }

    .approved-feedback-table td::before {
        color: var(--muted);
        font-size: 12px;
        font-weight: 800;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .approved-feedback-table td:nth-child(1)::before {
        content: "\041F\043E\043B\044C\0437\043E\0432\0430\0442\0435\043B\044C";
    }

    .approved-feedback-table td:nth-child(2)::before {
        content: "\0421\043E\043E\0431\0449\0435\043D\0438\0435";
    }

    .approved-feedback-table td:nth-child(3)::before {
        content: "\0414\0435\0439\0441\0442\0432\0438\044F";
    }

    .approved-feedback-table .text-cell {
        overflow-wrap: anywhere;
    }

    .approved-feedback-table td:nth-child(3) {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .approved-feedback-table td:nth-child(3)::before {
        min-width: min(92px, 34%);
    }

    .feedback-table {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .feedback-table thead {
        display: none;
    }

    .feedback-table tbody {
        display: grid;
        gap: 10px;
        padding: 10px;
    }

    .feedback-table tr {
        display: grid;
        gap: 0;
        overflow: hidden;
        border: 1px solid var(--soft-line);
        border-radius: 8px;
        background: #fff;
    }

    .feedback-table td {
        display: grid;
        grid-template-columns: minmax(92px, 34%) minmax(0, 1fr);
        gap: 10px;
        width: auto !important;
        height: auto;
        min-height: 42px;
        align-items: center;
        padding: 10px 12px;
        overflow: visible;
        text-overflow: initial;
        white-space: normal;
    }

    .feedback-table td:first-child {
        border-top: 0;
    }

    .feedback-table td::before {
        color: var(--muted);
        font-size: 12px;
        font-weight: 800;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .feedback-table td:nth-child(1)::before {
        content: "\041F\043E\043B\044C\0437\043E\0432\0430\0442\0435\043B\044C";
    }

    .feedback-table td:nth-child(2)::before {
        content: "\0421\043E\043E\0431\0449\0435\043D\0438\0435";
    }

    .feedback-table td:nth-child(3)::before {
        content: "\0414\0435\0439\0441\0442\0432\0438\044F";
    }

    .feedback-table .text-cell {
        overflow-wrap: anywhere;
    }

    .feedback-table td:nth-child(3) {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .feedback-table td:nth-child(3)::before {
        min-width: min(92px, 34%);
    }

    .launch-logs-table {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .launch-logs-table thead {
        display: none;
    }

    .launch-logs-table tbody {
        display: grid;
        gap: 8px;
        padding: 10px;
    }

    .launch-logs-table tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        overflow: hidden;
        border: 1px solid var(--soft-line);
        border-radius: 8px;
        background: #fff;
    }

    .launch-logs-table td {
        width: auto !important;
        height: auto;
        min-height: 46px;
        padding: 10px 12px;
        overflow: visible;
        text-overflow: initial;
        white-space: normal;
    }

    .launch-logs-table td:nth-child(2),
    .launch-logs-table td:nth-child(3),
    .launch-logs-table td:nth-child(4) {
        display: none;
    }

    .launch-logs-table td:nth-child(1) {
        border-top: 0;
    }

    .launch-logs-table td:nth-child(1) .table-primary {
        display: block;
        overflow-wrap: anywhere;
    }

    .launch-logs-table td:nth-child(5) {
        border-top: 0;
        white-space: nowrap;
    }

    .launch-logs-table td[colspan] {
        grid-column: 1 / -1;
    }

    .permission-tooltip-box {
        left: auto;
        right: 0;
        min-width: min(220px, calc(100vw - 48px));
        max-width: calc(100vw - 48px);
        transform: none;
    }

    .user-detail-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .password-input-row {
        grid-template-columns: minmax(0, 1fr) 38px 38px;
    }
}
