@import url("https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
    --nav-bg: #162131;
    --nav-dark: #101a27;
    --nav-tab: #1f2a3a;
    --nav-active: #1e86f7;
    --accounts-panel-width: 262px;
    --panel-bg: #0e141c;
    --panel-border: #1f2b3a;
    --panel-text: #dbe2ea;
    --panel-muted: #9aa7b4;
    --accent-orange: #ff8c1a;
    --accent-green: #25c06d;
    --accent-cyan: #00c8ff;
    --workspace: #f5f6f8;
    --grid-border: #d0d0d0;
    --btn-border: #c9c9c9;
    --btn-bg: #f5f5f5;
    --btn-text: #1b1b1b;
    --purple: #742bbd;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: var(--workspace);
    color: #1b1b1b;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: linear-gradient(180deg, #1b2636, #141e2c);
    padding: 8px 12px 8px 0;
    border-bottom: 1px solid #0c141f;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
}

.topbar-primary {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-menu-btn {
    display: none;
    align-items: center;
    gap: 8px;
    border: 1px solid #314258;
    background: #202c40;
    color: #f0f2f5;
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
}

.topbar-menu-icon {
    width: 14px;
    height: 10px;
    display: inline-block;
    position: relative;
}

.topbar-menu-icon::before,
.topbar-menu-icon::after,
.topbar-menu-icon {
    border-top: 2px solid currentColor;
}

.topbar-menu-icon::before,
.topbar-menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
}

.topbar-menu-icon::before {
    top: 3px;
}

.topbar-menu-icon::after {
    top: 8px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: flex-start;
    flex: 0 0 auto;
}

.topbar-tabs {
    display: flex;
    gap: 8px;
    margin-left: 18px;
}

.topbar-center {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 18px;
    flex: 0 0 auto;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.user-label {
    color: #dfe7ef;
    font-size: 0.85rem;
}

.user-link {
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid transparent;
}

.user-link.active,
.user-link:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
}

.alert-bell-button {
    position: relative;
    width: 34px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.38);
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.72);
    color: #e5edf7;
    cursor: pointer;
    line-height: 1;
}

.alert-bell-button.is-enabled {
    border-color: rgba(34, 197, 94, 0.55);
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.08);
}

.alert-bell-button.is-disabled {
    color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.38);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.28);
    opacity: 0.9;
    filter: grayscale(1);
}

.alert-bell-button.has-unread {
    color: #ffffff;
    border-color: rgba(248, 113, 113, 0.82);
    background: linear-gradient(180deg, rgba(127, 29, 29, 0.92), rgba(69, 10, 10, 0.86));
}

.alert-bell-button.is-disabled.has-unread {
    color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.38);
}

.alert-bell-button.is-disabled::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: #ef4444;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.5);
    transform: rotate(-38deg);
}

.alert-bell-glyph {
    font-size: 1rem;
    transform: translateY(-1px);
}

.alert-bell-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: #ef4444;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
}

.top-tab {
    padding: 6px 20px;
    border-radius: 2px;
    background: #263249;
    border: 1px solid #314258;
    color: #f0f2f5;
    text-decoration: none;
    font-size: 0.9rem;
}

.top-tab-accounts {
    width: var(--accounts-panel-width);
    text-align: center;
    padding: 6px 28px;
}

.top-tab.active {
    background: var(--nav-active);
    color: #ffffff;
    font-weight: 600;
}

.workspace {
    display: flex;
    flex: 1;
    min-height: 0;
}

.workspace-main {
    flex: 1;
    background: #ffffff;
    border-left: 1px solid #d6d6d6;
    padding: 14px 16px;
    overflow: auto;
}

.workspace-main.full {
    border-left: none;
}

.accounts-panel {
    width: var(--accounts-panel-width);
    background: linear-gradient(180deg, #0f141b, #0b0f14);
    color: var(--panel-text);
    display: flex;
    flex-direction: column;
    border-right: 1px solid #1a2634;
    height: calc(100vh - 50px);
}

.panel-header {
    padding: 10px 12px;
    background: #0f1722;
    border-bottom: 1px solid #1b2735;
}

.panel-title {
    font-weight: 600;
    color: #e5ecf4;
}

.panel-tabs {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
}

.tab-button {
    flex: 1;
    padding: 6px 0;
    background: #1d2734;
    border: 1px solid #8da1b7;
    color: #f2f6fb;
    cursor: pointer;
}

.tab-button.active {
    background: var(--nav-active);
    border-color: #8fb8ff;
}

.panel-search {
    margin: 0 12px 10px;
    display: flex;
    align-items: center;
    background: #1a2635;
    border: 1px solid #273243;
    padding: 6px 8px;
    color: var(--panel-muted);
}

.panel-search input {
    border: none;
    background: transparent;
    color: var(--panel-text);
    flex: 1;
    outline: none;
    font-size: 0.85rem;
}

.search-icon {
    margin-right: 6px;
}

.panel-list {
    flex: 1;
    padding: 6px 12px;
    overflow: auto;
    background: #000000;
    border-top: 1px solid #0d141f;
    border-bottom: 1px solid #0d141f;
}

.server-title {
    margin-top: 8px;
    font-weight: 600;
}

.server-title.orange { color: var(--accent-orange); }
.server-title.green { color: var(--accent-green); }
.server-title.cyan { color: var(--accent-cyan); }

.account-id {
    font-size: 0.85rem;
    margin: 2px 0 2px 10px;
    padding: 2px 6px;
    cursor: pointer;
    border-radius: 3px;
}

.account-id:hover {
    background: rgba(255, 255, 255, 0.08);
}

.account-id.active {
    background: rgba(31, 125, 230, 0.35);
    color: #ffffff;
}

.context-menu {
    position: fixed;
    z-index: 2000;
    background: #101621;
    border: 1px solid #2a3644;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    padding: 6px;
    min-width: 120px;
    border-radius: 4px;
}

.context-menu button {
    width: 100%;
    background: transparent;
    color: #e6edf7;
    border: none;
    text-align: left;
    padding: 6px 10px;
    cursor: pointer;
}

.context-menu button:hover {
    background: rgba(255, 255, 255, 0.08);
}

.context-menu button.danger {
    color: #ff8b8b;
}

.panel-footer {
    padding: 12px;
    background: #0b0f14;
    border-top: 1px solid #1a2634;
    position: sticky;
    bottom: 0;
}

.panel-add {
    width: 100%;
    background: #16202b;
    border: 1px solid #cfd6df;
    color: #f4f7fb;
    padding: 8px 0;
    cursor: pointer;
    display: block;
    text-align: center;
    text-decoration: none;
}

.accounts-surface {
    position: relative;
    height: 100%;
}

.analysis-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #bfbfbf;
    padding: 6px 10px;
    background: #f7f7f7;
}

.analysis-tabs {
    display: inline-flex;
    gap: 4px;
}

.analysis-tab {
    border: 1px solid #bfbfbf;
    background: #f2f2f2;
    padding: 3px 8px;
    cursor: pointer;
    font-size: 0.85rem;
}

.analysis-tab.active {
    background: #ffffff;
    border-bottom-color: #ffffff;
}

.analyze-btn {
    margin-left: auto;
}

.analysis-account {
    margin-left: 12px;
    font-size: 0.85rem;
    color: #333;
}

.analysis-latency {
    margin: 8px 0 10px 0;
    font-size: 0.85rem;
    color: #1f7d25;
}

.analysis-error {
    margin-bottom: 8px;
}

.analysis-empty {
    padding: 20px;
    color: #666;
}

.analysis-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.analysis-card {
    border: 1px solid #e0e0e0;
    padding: 8px;
    font-size: 0.82rem;
    min-height: 80px;
}

.analysis-card .card-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.analysis-card .card-row {
    line-height: 1.45;
}

.card-blue { background: #eff4ff; }
.card-green { background: #eef9f0; }
.card-yellow { background: #fff7e6; }
.card-red { background: #ffecec; }

.analysis-lower {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.analysis-bottom {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 12px;
    margin-top: 12px;
}

.section-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.analysis-top-symbols,
.analysis-recent,
.analysis-periods,
.analysis-bestworst {
    border: 1px solid #bfbfbf;
    padding: 8px;
    background: #ffffff;
}

.analysis-bestworst .bestworst-row {
    margin-top: 6px;
    font-size: 0.85rem;
}

.analysis-table th {
    background: #f2f2f2;
}

.pie-wrap {
    display: flex;
    gap: 12px;
    align-items: center;
}

.pie-chart {
    width: 180px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid #bfbfbf;
}

.pie-legend {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.82rem;
}

.legend-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-color {
    width: 10px;
    height: 10px;
    display: inline-block;
}

.analysis-details {
    border: 1px solid #bfbfbf;
    padding: 10px;
    background: #ffffff;
    margin-top: 8px;
}

.analysis-details pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: Consolas, monospace;
    font-size: 0.8rem;
    max-height: 480px;
    overflow: auto;
}

.accounts-blank {
    height: calc(100vh - 70px);
    background: #ffffff;
}

.copy-surface {
    background: #ffffff;
}

.copy-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #000000;
    padding-bottom: 6px;
    margin-bottom: 10px;
}

.copy-title {
    font-weight: 600;
    margin-right: 10px;
}

.btn-purple {
    background: var(--purple);
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    cursor: pointer;
    font-weight: 600;
}

.btn-ghost-light {
    background: #ffffff;
    border: 1px solid #000000;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: 600;
}

.btn-group {
    display: inline-flex;
    border: 2px solid #4a4f55;
    border-radius: 4px;
    overflow: hidden;
}

.btn-icon {
    width: 34px;
    height: 24px;
    border: none;
    cursor: pointer;
    color: #000;
}

.btn-icon.green { background: #41b54a; }
.btn-icon.yellow { background: #f2d13d; }
.btn-icon.red { background: #e54646; color: #fff; }
.btn-icon.dark { background: #2f3944; color: #fff; }

.grid-wrap {
    border: 1px solid #000;
}

.copy-row-menu-dismiss {
    position: fixed;
    inset: 0;
    z-index: 1590;
    background: transparent;
}

.copy-row-menu {
    position: fixed;
    z-index: 1600;
    min-width: 172px;
    display: grid;
    gap: 1px;
    padding: 3px;
    border: 1px solid #7b8490;
    border-radius: 2px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.copy-row-menu button {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    color: #111827;
    cursor: pointer;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.2;
    padding: 6px 9px;
    text-align: left;
    white-space: nowrap;
}

.copy-row-menu button:hover {
    background: #e8f2ff;
}

.copy-row-menu button:disabled {
    cursor: not-allowed;
    color: #a8adb5;
}

.copy-row-menu button:disabled:hover {
    background: transparent;
}

.copy-row-menu-separator {
    height: 1px;
    margin: 3px 2px;
    background: #d7dce3;
}

.grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.grid th {
    background: #f2f2f2;
    border-bottom: 1px solid #bfbfbf;
    padding: 6px 8px;
    text-align: left;
}

.grid td {
    border-bottom: 1px solid #d8d8d8;
    padding: 6px 8px;
}

.tag {
    display: inline-block;
    padding: 2px 6px;
    font-size: 0.75rem;
    color: #fff;
    margin-right: 6px;
}

.tag.teal { background: #2e9fa8; }
.tag.orange { background: #e6872a; }

.bold { font-weight: 600; }
.status-text { color: #6d6d6d; }

.simple-surface {
    background: #ffffff;
    padding: 18px;
}

.simple-title {
    font-size: 1rem;
    margin-bottom: 12px;
}

.simple-subtitle {
    font-size: 0.85rem;
    color: #666;
}

.simple-buttons {
    display: grid;
    gap: 10px;
    width: 200px;
}

.btn-plain {
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    padding: 6px 12px;
    cursor: pointer;
    color: var(--btn-text);
}

.btn-plain.wide {
    width: 200px;
}

.import-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.import-platform {
    font-weight: 600;
}

.import-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.import-grid th,
.import-grid td {
    font-size: 0.85rem;
}

.import-check {
    width: 34px;
    text-align: center;
}

.import-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.85rem;
}

.import-save {
    color: #1f7a3b;
    font-weight: 600;
}

.app-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.app-modal {
    background: #f5f5f5;
    border: 1px solid #9f9f9f;
    width: 380px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    display: block;
    position: relative;
    max-height: 90vh;
    overflow: auto;
}

.app-modal-wide { width: 520px; }
.app-modal-large { width: 560px; }

.app-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: #f0f0f0;
    border-bottom: 1px solid #cfcfcf;
}

.app-modal-title { font-weight: 600; }

.app-modal-close {
    border: none;
    background: transparent;
    cursor: pointer;
}

.app-modal-body { padding: 10px; }

.app-modal-note {
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.form-row.align-start {
    align-items: flex-start;
}

.form-row-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.inline-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.inline-label { margin-left: 8px; }

.input {
    padding: 4px 6px;
    border: 1px solid #bdbdbd;
    background: #fff;
}

.input.small { width: 200px; }
.input.tiny { width: 60px; }

.check {
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    justify-self: start;
}

.check.inline { margin-left: 10px; }

.form-hint {
    font-size: 0.75rem;
    color: #5f6b77;
    margin-top: 4px;
}

.server-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.server-input-wrap {
    position: relative;
    width: 100%;
}

.server-input-wrap .input {
    width: 100%;
    box-sizing: border-box;
}

.server-actions {
    display: flex;
    justify-content: flex-end;
}

.server-actions .btn-plain {
    min-width: 120px;
}

.server-suggestion-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid rgba(87, 125, 168, 0.35);
    border-radius: 12px;
    background: #0f1b2f;
    box-shadow: 0 18px 40px rgba(4, 9, 20, 0.35);
    padding: 6px;
}

.server-suggestion-popout {
    position: fixed;
    left: 0;
    top: 0;
    width: 320px;
    z-index: 250;
}

.server-suggestion-item {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #eef4ff;
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.server-suggestion-item:hover,
.server-suggestion-item:focus-visible {
    background: rgba(55, 130, 246, 0.16);
    outline: none;
}

.server-suggestion-name {
    font-weight: 600;
    display: block;
}

.account-modal-shell {
    overflow: visible;
}

.account-secret-input {
    -webkit-text-security: disc;
}

.test-status {
    font-size: 0.8rem;
    color: #4b4b4b;
}

.test-status.ok {
    color: #1f7a3b;
    font-weight: 600;
}

.test-status.error {
    color: #b24a4a;
    font-weight: 600;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
    border: 1px solid #cfcfcf;
    background: #ffffff;
    padding: 8px;
    margin-bottom: 8px;
    font-size: 0.8rem;
}

.summary-item span {
    color: #4b4b4b;
    margin-right: 6px;
}

.app-modal-footer {
    padding: 8px 10px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px solid #cfcfcf;
}

.account-footer {
    justify-content: space-between;
    align-items: center;
}

.account-footer-actions {
    display: flex;
    gap: 8px;
}

.grid-box {
    border: 1px solid #bfbfbf;
    margin-top: 6px;
}

.grid-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: #f2f2f2;
    border-bottom: 1px solid #bfbfbf;
    padding: 6px;
    font-size: 0.85rem;
}

.grid-body {
    height: 160px;
    background: #ffffff;
}

.results {
    font-size: 0.8rem;
    margin-top: 8px;
}

.login-card {
    width: 360px;
    background: #ffffff;
    border: 1px solid #cfcfcf;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.login-title { font-weight: 600; margin-bottom: 6px; }
.login-subtitle { font-size: 0.85rem; color: #666; margin-bottom: 10px; }

.error {
    background: #ffe5e5;
    border: 1px solid #e19999;
    padding: 6px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .workspace {
        flex-direction: column;
    }

    .accounts-panel {
        width: 100%;
    }
}

.accounts-toolbar {
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
}

.grow {
    flex: 1;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, #1b2a3c 0%, #0f1722 70%);
}

.login-card {
    width: 420px;
    background: #ffffff;
    border: 1px solid #cfd6df;
    padding: 20px 22px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.login-brand {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.login-mark {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: linear-gradient(145deg, #1e86f7, #0f5fb8);
}

.login-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.login-subtitle {
    font-size: 0.85rem;
    color: #66717e;
}

.btn-primary {
    width: 100%;
    background: #1e86f7;
    border: 1px solid #1a73d9;
    color: #fff;
    padding: 8px 10px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 4px;
}

.login-footnote {
    margin-top: 10px;
    font-size: 0.75rem;
    color: #77818d;
    text-align: center;
}

.app-modal-section-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.btn-icon {
    min-width: 46px;
    padding: 0 8px;
    font-size: 0.8rem;
}


.copy-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #000000;
    padding-bottom: 6px;
    margin-bottom: 10px;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toolbar-right {
    display: flex;
    align-items: center;
}

.session-count {
    font-size: 0.85rem;
    color: #4b4b4b;
}

.copy-grid th,
.copy-grid td {
    font-size: 0.8rem;
}

.row-selected {
    background: #d6e6ff;
}

.copy-grid tr.is-highlighted td {
    background: #e0f7ff;
    box-shadow: inset 0 1px 0 #38bdf8, inset 0 -1px 0 #38bdf8;
}

.copy-grid tr.is-highlighted td:first-child {
    box-shadow: inset 4px 0 0 #0ea5e9, inset 0 1px 0 #38bdf8, inset 0 -1px 0 #38bdf8;
}

.status-stopped {
    color: #c0392b;
    font-weight: 600;
}

.status-running {
    color: #1f7a3b;
    font-weight: 600;
}

.status-recovering {
    color: #b36b00;
    font-weight: 700;
}

.status-paused {
    color: #8a6d3b;
    font-weight: 600;
}

.status-connecting {
    color: #2c6ebd;
    font-weight: 600;
}

.app-modal-copy {
    width: 600px;
}

.copy-form {
    font-size: 0.85rem;
}

.copy-form-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.copy-section-label {
    margin-top: 8px;
    font-weight: 600;
}

.copy-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.copy-row.inline {
    grid-template-columns: 140px 100px;
}

.copy-platform-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.platform-label {
    width: 40px;
    text-align: right;
}

.platform-or {
    width: 24px;
    text-align: center;
}

.copy-checks {
    display: grid;
    gap: 4px;
    margin: 6px 0 6px 0;
}

.copy-metrics-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.metric {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-refresh {
    width: 26px;
    height: 26px;
    border: 1px solid #78a8d6;
    background: #e1f0ff;
    color: #23507d;
    cursor: pointer;
}

.copy-footer {
    justify-content: space-between;
    align-items: center;
}

.copy-footer-actions {
    display: flex;
    gap: 8px;
}

.btn-plain.bold {
    font-weight: 600;
}

.input.wide { width: 100%; }
.input.medium { width: 210px; }
.input.platform { width: 180px; }

.app-modal-map {
    width: 760px;
    max-height: 80vh;
}

.map-info {
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.map-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.map-busy {
    font-size: 0.8rem;
    color: #4b4b4b;
    margin-bottom: 6px;
}

.app-modal-map .grid-wrap {
    max-height: 52vh;
    overflow: auto;
}

.map-grid th,
.map-grid td {
    padding: 4px 6px;
}

.map-grid td {
    line-height: 1.15;
}

.map-grid td input {
    width: 100%;
    height: 24px;
    padding: 3px 6px;
}

.map-delete {
    width: 40px;
    text-align: center;
}

.app-modal-preferred { width: 590px; }

.pref-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.pref-info {
    font-size: 0.85rem;
    color: #5d5d5d;
    margin-bottom: 8px;
}

.pref-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.pref-body {
    display: flex;
    gap: 8px;
}

.pref-table-wrap {
    width: 100%;
    max-height: 330px;
    overflow-y: auto;
}

.pref-grid {
    width: 100%;
}

.pref-move {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 60px;
}

.pref-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.pref-show-selected.active,
.challenge-source-symbols-show-selected.active {
    border-color: #1d4ed8;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 800;
}

.app-modal-log { width: 760px; }

.app-modal-analysis { width: 760px; max-width: 90vw; }

.app-modal-copy-alerts {
    width: min(760px, calc(100vw - 2rem));
}

.copy-alerts-body {
    display: grid;
    gap: 12px;
    background: #f8fafc;
}

.copy-alert-settings {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px;
    border: 1px solid #d7e0ec;
    border-radius: 6px;
    background: #ffffff;
}

.copy-alert-setting-checks,
.copy-alert-setting-actions,
.copy-alert-history-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.copy-alert-settings label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 0.86rem;
    font-weight: 600;
    color: #162033;
}

.browser-permission-button {
    min-width: 124px;
    font-weight: 800;
}

.browser-permission-button.is-off {
    border-color: #cbd5e1;
    background: #f1f5f9;
    color: #475569;
}

.browser-permission-button.is-granted {
    border-color: #86efac;
    background: #dcfce7;
    color: #166534;
}

.browser-permission-button.is-default {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.browser-permission-button.is-denied,
.browser-permission-button.is-unsupported {
    border-color: #fecaca;
    background: #fff1f2;
    color: #991b1b;
}

.copy-alert-save-state {
    min-width: 62px;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
}

.copy-alert-save-state.is-unsaved {
    color: #b45309;
}

.copy-alert-save-button:disabled {
    opacity: 0.55;
}

.copy-alert-error {
    padding: 8px 10px;
    border: 1px solid #fecaca;
    border-radius: 6px;
    background: #fff1f2;
    color: #991b1b;
    font-weight: 700;
}

.copy-alert-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.is-danger-soft {
    border-color: #fecaca;
    color: #b91c1c;
}

.is-danger-soft:disabled {
    border-color: #e2e8f0;
    color: #94a3b8;
}

.copy-alert-history-head span {
    margin-left: 8px;
    color: #64748b;
    font-size: 0.82rem;
}

.copy-alert-list {
    display: grid;
    gap: 8px;
    max-height: 390px;
    overflow: auto;
}

.copy-alert-item {
    width: 100%;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 78px;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid #d8e2ef;
    border-radius: 6px;
    background: #ffffff;
    color: #132033;
    text-align: left;
    cursor: pointer;
}

.copy-alert-item:hover {
    border-color: #9ab3d0;
    background: #f8fbff;
}

.copy-alert-item.unread {
    border-color: #fca5a5;
    background: #fff7f7;
}

.copy-alert-item.critical.unread .copy-alert-seq {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fee2e2;
}

.copy-alert-item:not(.unread) {
    background: #ffffff;
    color: #475569;
}

.copy-alert-item:not(.unread) .copy-alert-seq {
    border-color: #dbe4ef;
    background: #f8fafc;
    color: #64748b;
}

.copy-alert-item:not(.unread) .copy-alert-main strong,
.copy-alert-item:not(.unread) .copy-alert-main span {
    color: #64748b;
    font-weight: 600;
}

.copy-alert-seq {
    display: inline-flex;
    justify-content: center;
    padding: 5px 7px;
    border: 1px solid #bdd3ea;
    border-radius: 999px;
    background: #eff6ff;
    color: #164e8b;
    font-weight: 800;
    font-size: 0.78rem;
}

.copy-alert-main {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.copy-alert-main span {
    overflow: hidden;
    color: #475569;
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-alert-time {
    color: #64748b;
    font-size: 0.78rem;
    text-align: right;
    white-space: nowrap;
}

.copy-alert-empty {
    padding: 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #64748b;
}

.analysis-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.analysis-grid td {
    padding: 6px 8px;
}

.analysis-grid th {
    text-align: left;
    padding: 6px 8px;
    background: #f1f3f6;
}

.analysis-loading {
    font-size: 0.9rem;
    color: #666;
}

.analysis-section {
    margin-top: 12px;
}

.analysis-subtitle {
    font-weight: 600;
    margin: 10px 0 6px 0;
    color: #1f2937;
}

.log-path {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 8px;
}

.log-list {
    height: 280px;
    border: 1px solid #bfbfbf;
    background: #ffffff;
    padding: 8px;
    overflow: auto;
    font-family: Consolas, monospace;
    font-size: 0.8rem;
}

.app-modal-servers { width: 760px; }

.server-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.server-source {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.server-grid th,
.server-grid td {
    font-size: 0.85rem;
}

.server-grid tbody tr.server-row {
    cursor: pointer;
    user-select: none;
}

.server-grid tbody tr.server-row:hover {
    background: #f5f9ff;
}

.server-grid tbody tr.server-row.selected {
    background: #e8f1ff;
}

.server-grid tbody tr.server-row.selected td {
    color: #16365f;
    font-weight: 600;
}

.server-grid tbody tr.server-row:focus-visible {
    outline: 2px solid #5fa1ff;
    outline-offset: -2px;
}

.server-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.server-actions .btn-plain:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.server-status {
    margin-top: 6px;
    font-size: 0.8rem;
    color: #666;
}

.app-modal-server-edit { width: 520px; }

.app-modal-security { width: 420px; }

.security-info {
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.security-group {
    border: 1px solid #cfcfcf;
    padding: 10px;
    background: #ffffff;
}

.security-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.app-modal-broker { width: 640px; }

.broker-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.broker-status {
    margin-top: 8px;
    font-size: 0.8rem;
    color: #666;
}

.app-modal-filter { width: 320px; }

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 360px;
    overflow: auto;
}

.app-modal-selection { width: 900px; }

.selection-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.selection-footer {
    justify-content: space-between;
}

.selection-grid th,
.selection-grid td {
    font-size: 0.85rem;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background:
        radial-gradient(900px 460px at 12% 0%, rgba(37, 124, 228, 0.16), transparent 60%),
        radial-gradient(700px 400px at 88% 0%, rgba(35, 183, 156, 0.12), transparent 56%),
        linear-gradient(155deg, #0b1322 0%, #101b2d 55%, #111d2f 100%);
}

.login-shell.public-challenge-layout {
    align-items: stretch;
    justify-content: stretch;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0;
    background: #071422;
}

.auth-shell {
    width: 100%;
    max-width: 460px;
}

.auth-card {
    border: 1px solid rgba(118, 153, 197, 0.35);
    border-radius: 14px;
    padding: 18px;
    background: linear-gradient(160deg, rgba(12, 26, 45, 0.94), rgba(12, 25, 42, 0.9));
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.35);
}

.register-card {
    max-width: 500px;
}

.auth-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.auth-logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(145deg, #2498ff, #1969d8);
    box-shadow: inset 0 0 0 1px rgba(198, 231, 255, 0.45);
}

.auth-title {
    color: #f0f7ff;
    font-weight: 700;
    font-size: 1.12rem;
}

.auth-subtitle {
    color: #a8bdd4;
    font-size: 0.87rem;
}

.field {
    margin-bottom: 10px;
}

.field label {
    display: block;
    margin-bottom: 5px;
    color: #d7e8fb;
    font-size: 0.86rem;
    font-weight: 600;
}

.field .input {
    width: 100%;
    height: 38px;
    border: 1px solid #355173;
    border-radius: 9px;
    background: #0b1523;
    color: #edf6ff;
    padding: 0 11px;
    font-size: 0.9rem;
}

.field .input:focus {
    outline: none;
    border-color: #4ea4ff;
    box-shadow: 0 0 0 3px rgba(78, 164, 255, 0.2);
}

.password-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
}

.toggle-pass {
    height: 38px;
    min-width: 66px;
    border-radius: 9px;
    border: 1px solid #355173;
    background: #111f33;
    color: #d9e9fb;
    cursor: pointer;
}

.toggle-pass:hover {
    background: #15263d;
}

.validation-message {
    display: block;
    color: #ffb4b4;
    font-size: 0.8rem;
    margin-top: 3px;
}

.password-rules {
    margin: 0 0 12px 0;
    padding-left: 18px;
    color: #a9c0d8;
    font-size: 0.82rem;
    line-height: 1.55;
}

.auth-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 8px;
}

.auth-actions .btn-main,
.auth-actions .btn-ghost {
    height: 38px;
    border-radius: 9px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
}

.auth-actions .btn-main {
    background: linear-gradient(145deg, #2195ff, #1868d9);
    color: #f8fcff;
    border-color: rgba(123, 197, 255, 0.65);
}

.auth-actions .btn-main:disabled,
.auth-actions .btn-ghost:disabled {
    opacity: 0.65;
    cursor: default;
}

.auth-actions .btn-ghost {
    min-width: 90px;
    background: #111f33;
    color: #d8e8fb;
    border-color: #355173;
}

.auth-footnote {
    margin-top: 12px;
    color: #9eb5cd;
    font-size: 0.82rem;
    text-align: center;
}

.auth-footnote a {
    color: #9ed0ff;
    text-decoration: none;
}

.auth-footnote a:hover {
    text-decoration: underline;
}

@media (max-width: 560px) {
    .auth-card {
        padding: 14px;
    }

    .auth-actions {
        grid-template-columns: 1fr;
    }
}


/* ===== Landing Page (Home) ===== */
.landing-shell {
    display: block;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    background:
        radial-gradient(1400px 700px at 8% -6%, rgba(28, 130, 255, 0.2), transparent 62%),
        radial-gradient(1200px 620px at 96% 6%, rgba(20, 196, 168, 0.16), transparent 58%),
        linear-gradient(160deg, #081224 0%, #091932 44%, #081327 100%);
}

.landing-home {
    position: relative;
    isolation: isolate;
    width: min(2000px, calc(100vw - 12px));
    margin: 0 auto;
    padding: 28px 16px 28px;
    color: #e8f3ff;
    font-family: "Space Grotesk", Tahoma, sans-serif;
}

.landing-bg-grid {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background-image:
        linear-gradient(to right, rgba(118, 163, 224, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(118, 163, 224, 0.08) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at 52% 42%, black 36%, transparent 86%);
    pointer-events: none;
}

.landing-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
    opacity: 0.56;
}

.landing-bg-glow.left {
    width: 520px;
    height: 520px;
    left: -130px;
    top: -150px;
    background: radial-gradient(circle, rgba(38, 152, 255, 0.56), rgba(38, 152, 255, 0.03) 72%);
}

.landing-bg-glow.right {
    width: 600px;
    height: 600px;
    right: -170px;
    top: 90px;
    background: radial-gradient(circle, rgba(37, 210, 177, 0.34), rgba(37, 210, 177, 0.02) 76%);
}

.landing-hero,
.landing-features,
.landing-flow,
.landing-coverage {
    position: relative;
    z-index: 1;
}

.landing-topbar {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.landing-topbar-brand {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.brand-pill {
    border: 1px solid rgba(123, 168, 224, 0.58);
    border-radius: 999px;
    padding: 6px 12px;
    color: #deeeff;
    font-size: 0.73rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: linear-gradient(142deg, rgba(30, 112, 208, 0.34), rgba(20, 38, 65, 0.56));
    font-weight: 700;
}

.brand-pill.muted {
    background: rgba(16, 35, 59, 0.72);
}

.landing-topbar-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(560px, 1fr) minmax(720px, 980px);
    gap: 28px;
    align-items: center;
    min-height: 700px;
}

.landing-copy h1 {
    margin: 0;
    max-width: 860px;
    font-family: "Sora", "Space Grotesk", sans-serif;
    font-size: clamp(2.4rem, 3.5vw, 4.2rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
}

.landing-copy p {
    margin: 14px 0 0;
    max-width: 820px;
    color: #abc4dd;
    font-size: 1.08rem;
    line-height: 1.75;
}

.landing-points {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.landing-points li {
    position: relative;
    padding-left: 23px;
    color: #d4e8fb;
    font-size: 0.95rem;
}

.landing-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #67d7ff, #1c81ff);
    box-shadow: 0 0 0 4px rgba(80, 164, 255, 0.17);
}

.landing-btn {
    text-decoration: none;
    border-radius: 10px;
    padding: 11px 18px;
    font-weight: 700;
    font-size: 0.93rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.landing-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(26, 93, 196, 0.27);
}

.landing-btn.primary {
    color: #f4fbff;
    border: 1px solid rgba(132, 199, 255, 0.7);
    background: linear-gradient(145deg, #1f97ff, #1a69d6);
}

.landing-btn.secondary {
    color: #e6f1ff;
    border: 1px solid rgba(122, 158, 201, 0.46);
    background: linear-gradient(145deg, rgba(19, 35, 58, 0.94), rgba(14, 25, 41, 0.95));
}

.landing-kpis {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 900px;
}

.landing-kpis article {
    border-radius: 12px;
    border: 1px solid rgba(119, 161, 213, 0.34);
    background: linear-gradient(160deg, rgba(10, 24, 42, 0.84), rgba(10, 22, 37, 0.8));
    padding: 12px;
}

.landing-kpis .label {
    display: block;
    color: #89bae5;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.landing-kpis strong {
    display: block;
    margin-top: 4px;
    color: #ecf6ff;
    font-size: 0.98rem;
}

.landing-kpis small {
    display: block;
    margin-top: 5px;
    color: #a7c0db;
    font-size: 0.82rem;
}

.landing-visual {
    position: relative;
    height: 640px;
    perspective: 1400px;
}

.visual-mainframe {
    position: absolute;
    top: 44px;
    left: 18px;
    width: min(900px, 96%);
    border-radius: 18px;
    border: 1px solid rgba(121, 166, 220, 0.36);
    background: linear-gradient(160deg, rgba(9, 22, 41, 0.95), rgba(8, 18, 33, 0.94));
    box-shadow: 0 26px 64px rgba(2, 10, 22, 0.6);
    transform: rotateY(-11deg) rotateX(7deg) translateZ(58px);
    overflow: hidden;
}

.visual-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(108, 153, 210, 0.25);
    background: linear-gradient(180deg, rgba(24, 45, 74, 0.82), rgba(15, 30, 49, 0.88));
}

.visual-topbar .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.visual-topbar .dot.blue {
    background: #34a5ff;
}

.visual-topbar .dot.cyan {
    background: #3be2ff;
}

.visual-topbar .dot.green {
    background: #37d8ab;
}

.visual-title {
    margin-left: 6px;
    color: #cfe5ff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.visual-body {
    display: grid;
    grid-template-columns: 190px 1fr;
    min-height: 420px;
}

.visual-sidebar {
    border-right: 1px solid rgba(112, 150, 199, 0.23);
    padding: 14px;
    background: linear-gradient(180deg, rgba(10, 22, 38, 0.9), rgba(8, 17, 30, 0.93));
}

.side-chip {
    border: 1px solid rgba(98, 140, 193, 0.36);
    border-radius: 9px;
    padding: 8px 10px;
    color: #b8cfe7;
    font-size: 0.82rem;
    margin-bottom: 8px;
    background: rgba(13, 29, 49, 0.7);
}

.side-chip.active {
    border-color: rgba(116, 192, 255, 0.62);
    color: #eef7ff;
    background: linear-gradient(145deg, rgba(30, 108, 205, 0.46), rgba(17, 44, 79, 0.68));
}

.visual-content {
    padding: 12px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.stat-card {
    border: 1px solid rgba(110, 151, 201, 0.3);
    border-radius: 10px;
    padding: 8px;
    background: linear-gradient(160deg, rgba(11, 24, 41, 0.84), rgba(10, 21, 36, 0.8));
}

.stat-card span {
    display: block;
    color: #8fb8e1;
    font-size: 0.74rem;
}

.stat-card strong {
    display: block;
    margin-top: 3px;
    color: #ecf5ff;
    font-size: 1rem;
}

.symbol-strip {
    margin-top: 10px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: #d6e8fb;
    font-size: 0.82rem;
}

.symbol-strip .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.symbol-strip .dot.gold {
    background: #58b5ff;
}

.symbol-strip .dot.orange {
    background: #ffaf52;
}

.symbol-strip .dot.teal {
    background: #32d7b1;
}

.route-table {
    margin-top: 10px;
    border: 1px solid rgba(109, 147, 194, 0.33);
    border-radius: 12px;
    overflow: hidden;
}

.route-head,
.route-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr 0.9fr;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    font-size: 0.82rem;
}

.route-head {
    color: #9bbde0;
    background: rgba(20, 41, 66, 0.75);
    border-bottom: 1px solid rgba(113, 148, 190, 0.3);
}

.route-row {
    color: #d9ebff;
    border-bottom: 1px dashed rgba(112, 149, 196, 0.2);
}

.route-row:last-child {
    border-bottom: none;
}

.route-row .ok {
    color: #59dfb2;
    font-weight: 700;
}

.route-row .warn {
    color: #ffd071;
    font-weight: 700;
}

.floating-card {
    position: absolute;
    border-radius: 14px;
    border: 1px solid rgba(119, 162, 216, 0.35);
    background: linear-gradient(160deg, rgba(11, 27, 49, 0.92), rgba(10, 21, 38, 0.91));
    box-shadow: 0 18px 44px rgba(5, 14, 27, 0.52);
    padding: 12px;
}

.floating-card h4 {
    margin: 0 0 8px;
    color: #d8eafc;
    font-size: 0.9rem;
    font-weight: 700;
}

.risk-card {
    right: 12px;
    top: 98px;
    width: 320px;
    transform: rotateY(-9deg) rotateX(7deg) translateZ(84px);
}

.risk-card div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.8rem;
    color: #c5d9ef;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(114, 154, 199, 0.2);
}

.risk-card div span:last-child {
    color: #89cbff;
    font-weight: 700;
}

.risk-card div:last-child {
    border-bottom: none;
}

.speed-card {
    left: 40px;
    top: 0;
    width: 300px;
    transform: rotateY(-13deg) rotateX(9deg) translateZ(120px);
}

.speed-line {
    height: 8px;
    border-radius: 999px;
    margin-top: 8px;
}

.speed-line.w1 {
    width: 88%;
    background: linear-gradient(90deg, #2fd0af, #41efcb);
}

.speed-line.w2 {
    width: 94%;
    background: linear-gradient(90deg, #2a9eff, #67d6ff);
}

.speed-line.w3 {
    width: 70%;
    background: linear-gradient(90deg, #ffbe4e, #ffd56f);
}

.landing-features {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.landing-features article {
    border-radius: 13px;
    border: 1px solid rgba(115, 156, 207, 0.34);
    background: linear-gradient(160deg, rgba(10, 24, 42, 0.9), rgba(10, 22, 38, 0.84));
    padding: 14px;
}

.landing-features h3 {
    margin: 0 0 8px;
    color: #e5f2ff;
    font-size: 1.02rem;
}

.landing-features p {
    margin: 0;
    color: #adc5de;
    font-size: 0.9rem;
    line-height: 1.6;
}

.landing-flow {
    margin-top: 16px;
}

.landing-flow h2,
.landing-coverage h2 {
    margin: 0 0 10px;
    font-family: "Sora", "Space Grotesk", sans-serif;
    font-size: clamp(1.2rem, 1.6vw, 1.8rem);
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.flow-grid article {
    border-radius: 12px;
    border: 1px solid rgba(114, 153, 204, 0.35);
    background: linear-gradient(160deg, rgba(9, 22, 39, 0.9), rgba(8, 19, 34, 0.85));
    padding: 12px;
}

.flow-grid article span {
    display: inline-block;
    min-width: 32px;
    text-align: center;
    border-radius: 8px;
    padding: 4px 8px;
    background: linear-gradient(145deg, #1f95ff, #1a69d5);
    border: 1px solid rgba(132, 199, 255, 0.65);
    color: #f2f9ff;
    font-size: 0.78rem;
    font-weight: 700;
}

.flow-grid h4 {
    margin: 10px 0 6px;
    color: #e8f3ff;
    font-size: 1rem;
}

.flow-grid p {
    margin: 0;
    color: #abc3dc;
    font-size: 0.88rem;
    line-height: 1.6;
}

.landing-coverage {
    margin-top: 16px;
}

.coverage-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.coverage-grid article {
    border-radius: 12px;
    border: 1px solid rgba(114, 153, 204, 0.35);
    background: linear-gradient(160deg, rgba(9, 22, 39, 0.88), rgba(8, 19, 34, 0.83));
    padding: 12px;
}

.coverage-grid h4 {
    margin: 0 0 7px;
    color: #e7f3ff;
    font-size: 1rem;
}

.coverage-grid p {
    margin: 0;
    color: #aac3dc;
    font-size: 0.88rem;
    line-height: 1.62;
}

@media (max-width: 1540px) {
    .landing-home {
        width: min(1520px, calc(100vw - 16px));
        padding: 24px 12px 18px;
    }

    .landing-hero {
        grid-template-columns: 1fr;
        gap: 20px;
        min-height: auto;
    }

    .landing-visual {
        height: 580px;
    }
}

@media (max-width: 1080px) {
    .landing-kpis,
    .landing-features,
    .flow-grid,
    .coverage-grid {
        grid-template-columns: 1fr;
    }

    .visual-mainframe {
        left: 0;
        width: 100%;
    }

    .risk-card {
        right: 4px;
    }

    .landing-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 760px) {
    .landing-home {
        width: calc(100vw - 10px);
        padding: 18px 6px 12px;
    }

    .landing-copy h1 {
        font-size: clamp(1.7rem, 7.2vw, 2.4rem);
    }

    .landing-hero {
        gap: 14px;
    }

    .landing-topbar-actions {
        width: 100%;
    }

    .landing-btn {
        width: 100%;
    }

    .landing-visual {
        height: 520px;
    }

    .visual-body {
        grid-template-columns: 1fr;
    }

    .visual-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .side-chip {
        margin-bottom: 0;
    }

    .risk-card,
    .speed-card {
        position: static;
        width: 100%;
        transform: none;
        margin-top: 10px;
    }
}

.challenge-surface {
    background: #ffffff;
}

/* ===== Landing Page Refresh ===== */
.landing-shell {
    display: block;
    min-height: 100vh;
    padding: 0;
    background:
        radial-gradient(1200px 620px at 8% -6%, rgba(32, 139, 255, 0.23), transparent 62%),
        radial-gradient(980px 540px at 100% 8%, rgba(0, 209, 182, 0.17), transparent 58%),
        radial-gradient(840px 480px at 50% 22%, rgba(255, 162, 73, 0.08), transparent 66%),
        linear-gradient(160deg, #07101f 0%, #09192e 46%, #07121f 100%);
}

.landing-home {
    position: relative;
    isolation: isolate;
    width: min(1680px, calc(100vw - 20px));
    margin: 0 auto;
    padding: 28px 18px 44px;
    color: #e8f3ff;
    font-family: "Space Grotesk", Tahoma, sans-serif;
    overflow: hidden;
}

.landing-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(118, 163, 224, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(118, 163, 224, 0.08) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at 48% 26%, black 24%, transparent 78%);
    pointer-events: none;
}

.landing-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(64px);
    pointer-events: none;
    opacity: 0.58;
}

.landing-bg-glow.left {
    width: 520px;
    height: 520px;
    left: -150px;
    top: -140px;
    background: radial-gradient(circle, rgba(38, 152, 255, 0.62), rgba(38, 152, 255, 0.02) 74%);
}

.landing-bg-glow.right {
    width: 580px;
    height: 580px;
    right: -170px;
    top: 110px;
    background: radial-gradient(circle, rgba(36, 214, 178, 0.35), rgba(36, 214, 178, 0.02) 76%);
}

.landing-bg-glow.center {
    width: 640px;
    height: 340px;
    left: 50%;
    top: 270px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255, 171, 74, 0.12), rgba(255, 171, 74, 0.01) 74%);
}

.landing-bg-orbit {
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(104, 154, 220, 0.16);
    pointer-events: none;
    animation: landing-orbit 16s linear infinite;
    opacity: 0.48;
}

.landing-bg-orbit.orbit-one {
    width: 760px;
    height: 760px;
    right: -150px;
    top: 30px;
}

.landing-bg-orbit.orbit-two {
    width: 540px;
    height: 540px;
    right: 40px;
    top: 140px;
    animation-duration: 12s;
    animation-direction: reverse;
}

.landing-topbar,
.landing-hero,
.landing-advantage-strip,
.landing-compare,
.landing-special-grid,
.landing-challenge-band,
.landing-flow {
    position: relative;
    z-index: 2;
}

.landing-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.landing-topbar-brand {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.brand-pill {
    border: 1px solid rgba(130, 180, 240, 0.42);
    border-radius: 999px;
    padding: 7px 13px;
    color: #e4f2ff;
    font-size: 0.73rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: linear-gradient(145deg, rgba(18, 61, 111, 0.56), rgba(12, 27, 48, 0.78));
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.brand-pill.muted {
    color: #c7dcf0;
    background: rgba(12, 27, 48, 0.7);
}

.landing-topbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.landing-btn {
    text-decoration: none;
    border-radius: 12px;
    padding: 11px 18px;
    font-weight: 700;
    font-size: 0.93rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.landing-btn:hover {
    transform: translateY(-2px);
}

.landing-btn.primary {
    color: #f5fbff;
    border: 1px solid rgba(128, 195, 255, 0.72);
    background: linear-gradient(145deg, #2398ff, #1a67d3);
    box-shadow: 0 18px 40px rgba(22, 110, 224, 0.26);
}

.landing-btn.secondary,
.landing-btn.ghost {
    color: #e4efff;
    border: 1px solid rgba(118, 160, 210, 0.34);
    background: linear-gradient(145deg, rgba(18, 34, 56, 0.92), rgba(11, 22, 38, 0.94));
}

.landing-btn.big {
    min-width: 188px;
    padding: 14px 20px;
    font-size: 0.95rem;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(420px, 0.94fr) minmax(620px, 1.06fr);
    gap: 32px;
    align-items: center;
    min-height: 760px;
}

.landing-copy {
    max-width: 760px;
}

.landing-eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8dd7ff;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.landing-eyebrow::before,
.section-kicker::before {
    content: "";
    width: 34px;
    height: 1px;
    background: linear-gradient(90deg, rgba(38, 152, 255, 0.1), rgba(108, 214, 255, 0.95));
}

.landing-copy h1 {
    margin: 14px 0 0;
    font-family: "Sora", "Space Grotesk", sans-serif;
    font-size: clamp(2.8rem, 4vw, 4.8rem);
    line-height: 1.01;
    letter-spacing: -0.045em;
    max-width: 860px;
}

.landing-lead {
    margin: 18px 0 0;
    color: #abc4dd;
    font-size: 1.08rem;
    line-height: 1.78;
    max-width: 720px;
}

.landing-cta-row {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.landing-proof-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.landing-proof-grid article,
.landing-advantage-strip article,
.compare-card,
.special-grid article,
.challenge-band-grid article {
    border-radius: 16px;
    border: 1px solid rgba(117, 161, 213, 0.24);
    background: linear-gradient(160deg, rgba(10, 23, 41, 0.9), rgba(8, 18, 33, 0.82));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.landing-proof-grid article {
    padding: 16px;
}

.proof-label,
.strip-label {
    display: block;
    color: #7fb6e3;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.landing-proof-grid strong,
.landing-advantage-strip strong,
.compare-card h3,
.special-grid h3,
.challenge-band-grid strong {
    display: block;
    margin-top: 8px;
    color: #edf7ff;
    font-size: 1rem;
}

.landing-proof-grid small,
.landing-advantage-strip p,
.section-heading p,
.compare-list li,
.special-grid p,
.challenge-band-copy p,
.challenge-band-grid p,
.flow-grid p {
    color: #abc3dc;
    line-height: 1.65;
}

.landing-proof-grid small {
    display: block;
    margin-top: 8px;
    font-size: 0.84rem;
}

.landing-pill-row {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.landing-pill-row span,
.challenge-card-chips span,
.panel-badges span {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid rgba(120, 162, 212, 0.3);
    background: rgba(12, 24, 40, 0.66);
    color: #d8e8fa;
    font-size: 0.8rem;
}

.landing-visual {
    position: relative;
    min-height: 700px;
}

.visual-halo {
    position: absolute;
    inset: 90px 40px 80px 80px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 18% 18%, rgba(37, 157, 255, 0.26), transparent 38%),
        radial-gradient(circle at 84% 16%, rgba(44, 219, 185, 0.18), transparent 40%),
        linear-gradient(135deg, rgba(21, 45, 76, 0.44), rgba(8, 16, 30, 0.02));
    filter: blur(10px);
}

.visual-stage {
    position: relative;
    min-height: 700px;
}

.showcase-media-grid {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 20px;
    align-items: stretch;
    margin: 14px 0 20px;
}

.visual-human-card {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(121, 170, 226, 0.24);
    box-shadow: 0 32px 78px rgba(4, 11, 23, 0.44);
    background: #091321;
    min-height: 430px;
}

.visual-human-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: saturate(1.03) contrast(1.02);
}

.visual-human-card::after {
    content: none;
}

.visual-human-overlay {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 1;
    max-width: 360px;
}

.visual-human-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(131, 192, 255, 0.34);
    background: rgba(8, 18, 31, 0.62);
    color: #dceeff;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.visual-human-overlay strong {
    display: block;
    margin-top: 10px;
    color: #f2f8ff;
    font-size: 1.12rem;
    line-height: 1.28;
}

.visual-human-overlay small {
    display: block;
    margin-top: 8px;
    color: #c6d9eb;
    font-size: 0.84rem;
    line-height: 1.62;
}

.visual-mainframe {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0;
    border-radius: 26px;
    border: 1px solid rgba(144, 180, 222, 0.26);
    background: linear-gradient(180deg, rgba(246, 250, 255, 0.98), rgba(235, 241, 248, 0.96));
    box-shadow: 0 38px 92px rgba(3, 10, 23, 0.48);
    overflow: hidden;
    transform: none;
    animation: none;
}

.visual-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border-bottom: 1px solid rgba(110, 153, 205, 0.2);
    background: linear-gradient(180deg, rgba(23, 47, 77, 0.9), rgba(13, 26, 45, 0.92));
}

.visual-topbar .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.visual-topbar .dot.blue { background: #34a5ff; }
.visual-topbar .dot.cyan { background: #3be2ff; }
.visual-topbar .dot.green { background: #37d8ab; }

.visual-title {
    margin-left: 6px;
    color: #d2e7ff;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.visual-body {
    display: grid;
    grid-template-columns: 188px 1fr;
    min-height: 470px;
}

.visual-sidebar {
    border-right: 1px solid rgba(112, 150, 199, 0.18);
    padding: 16px;
    background: linear-gradient(180deg, rgba(10, 21, 38, 0.9), rgba(8, 16, 29, 0.94));
}

.side-chip {
    border: 1px solid rgba(98, 140, 193, 0.28);
    border-radius: 10px;
    padding: 9px 11px;
    color: #b8cfe7;
    font-size: 0.82rem;
    margin-bottom: 8px;
    background: rgba(13, 28, 48, 0.72);
}

.side-chip.active {
    border-color: rgba(116, 192, 255, 0.58);
    color: #f1f8ff;
    background: linear-gradient(145deg, rgba(30, 108, 205, 0.46), rgba(17, 44, 79, 0.68));
    box-shadow: 0 0 0 1px rgba(84, 174, 255, 0.18);
}

.visual-content {
    padding: 16px;
}

.visual-metric-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.metric-card,
.mini-panel {
    border-radius: 14px;
    border: 1px solid rgba(110, 151, 201, 0.22);
    padding: 12px;
    background: linear-gradient(160deg, rgba(11, 24, 41, 0.84), rgba(10, 21, 36, 0.8));
}

.metric-title,
.panel-title {
    display: block;
    color: #88b8e2;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.metric-card strong {
    display: block;
    margin-top: 6px;
    color: #eef7ff;
    font-size: 0.98rem;
}

.metric-card small {
    display: block;
    margin-top: 6px;
    color: #a8c1db;
    font-size: 0.8rem;
    line-height: 1.55;
}

.visual-route-board {
    margin-top: 12px;
    border: 1px solid rgba(109, 147, 194, 0.25);
    border-radius: 16px;
    overflow: hidden;
}

.route-board-head,
.route-board-row {
    display: grid;
    grid-template-columns: 1.45fr 1fr 1fr 0.7fr;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    font-size: 0.82rem;
}

.route-board-head {
    color: #98bcdf;
    background: rgba(18, 39, 62, 0.76);
    border-bottom: 1px solid rgba(113, 148, 190, 0.22);
}

.route-board-row {
    color: #d9ebff;
    border-bottom: 1px dashed rgba(112, 149, 196, 0.17);
}

.route-board-row:last-child {
    border-bottom: none;
}

.status-ok {
    color: #5ce0b2;
    font-weight: 700;
}

.status-warn {
    color: #ffd27b;
    font-weight: 700;
}

.visual-bottom-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 10px;
}

.panel-line {
    height: 8px;
    margin-top: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(41, 161, 255, 0.94), rgba(91, 223, 255, 0.72));
}

.panel-line.short {
    width: 72%;
}

.panel-badges {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.challenge-bars {
    margin-top: 12px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 72px;
}

.challenge-bars .bar {
    width: 20px;
    border-radius: 999px;
    background: linear-gradient(180deg, #50b8ff, #1d79eb);
    box-shadow: 0 0 18px rgba(35, 152, 255, 0.24);
}

.challenge-bars .bar.strong { height: 100%; }
.challenge-bars .bar.medium { height: 74%; background: linear-gradient(180deg, #43e2c2, #1eb594); }
.challenge-bars .bar.light { height: 52%; background: linear-gradient(180deg, #ffcf76, #f29d36); }

.floating-card {
    position: absolute;
    z-index: 3;
    border-radius: 16px;
    border: 1px solid rgba(119, 162, 216, 0.24);
    background: linear-gradient(160deg, rgba(11, 27, 49, 0.95), rgba(9, 20, 36, 0.92));
    box-shadow: 0 24px 52px rgba(5, 14, 27, 0.48);
    padding: 14px;
    backdrop-filter: blur(12px);
}

.floating-card h4 {
    margin: 0 0 10px;
    color: #e2f0ff;
    font-size: 0.92rem;
    font-weight: 700;
}

.desktop-window-card {
    position: relative;
    z-index: 3;
    border-radius: 20px;
    border: 1px solid rgba(119, 162, 216, 0.24);
    background: linear-gradient(180deg, rgba(246, 250, 255, 0.98), rgba(237, 242, 248, 0.97));
    box-shadow: 0 24px 52px rgba(5, 14, 27, 0.34);
    min-height: 430px;
    padding: 0;
    overflow: hidden;
}

.desktop-window-head {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(114, 154, 199, 0.16);
    background: linear-gradient(180deg, rgba(23, 47, 77, 0.96), rgba(13, 26, 45, 0.94));
    color: #e4f2ff;
    font-size: 0.8rem;
}

.desktop-window-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px 0;
}

.desktop-window-nav span {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(112, 152, 199, 0.2);
    color: #4e6783;
    background: rgba(223, 233, 246, 0.82);
    font-size: 0.76rem;
    font-weight: 700;
}

.desktop-window-nav span.active {
    color: #eef7ff;
    border-color: rgba(118, 192, 255, 0.44);
    background: linear-gradient(145deg, rgba(30, 108, 205, 0.46), rgba(17, 44, 79, 0.68));
}

.desktop-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.desktop-dot.blue { background: #34a5ff; }
.desktop-dot.cyan { background: #3be2ff; }
.desktop-dot.green { background: #37d8ab; }

.desktop-window-body {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.desktop-window-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #c7dbef;
    font-size: 0.8rem;
}

.desktop-window-row span:last-child {
    color: #97d4ff;
    font-weight: 700;
}

.desktop-window-status {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
    padding: 0 16px 16px;
}

.desktop-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
}

.desktop-status.running {
    color: #dffdf3;
    background: rgba(43, 196, 129, 0.2);
    border: 1px solid rgba(43, 196, 129, 0.34);
}

.desktop-status.gated {
    color: #e7f5ff;
    background: rgba(35, 152, 255, 0.18);
    border: 1px solid rgba(35, 152, 255, 0.32);
}

.desktop-preview-shell {
    margin: 14px 16px 12px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(188, 202, 222, 0.92);
    background: #ffffff;
}

.desktop-preview-head,
.desktop-preview-row {
    display: grid;
    grid-template-columns: 0.9fr 1.2fr 1fr 0.9fr;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
}

.desktop-preview-head {
    background: #eef3f9;
    color: #5b7089;
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.desktop-preview-row {
    color: #203247;
    font-size: 0.82rem;
    border-top: 1px solid rgba(221, 229, 239, 0.96);
}

.desktop-preview-row.running {
    background: rgba(225, 250, 239, 0.82);
}

.desktop-preview-row span:last-child {
    font-weight: 700;
}

.desktop-preview-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-top: 1px solid rgba(221, 229, 239, 0.96);
    color: #40607d;
    font-size: 0.78rem;
    background: #f9fbfd;
}

.program-shell-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(40, 67, 99, 0.16);
    background: linear-gradient(180deg, rgba(25, 43, 67, 0.98), rgba(18, 31, 49, 0.96));
}

.program-shell-title {
    margin-left: 6px;
    color: #ecf6ff;
    font-size: 0.88rem;
    font-weight: 700;
}

.program-shell-badges {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.program-shell-badges span,
.program-shell-tabs span,
.program-mini-label,
.program-side-label {
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.program-shell-badges span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(130, 181, 236, 0.24);
    background: rgba(255, 255, 255, 0.08);
    color: #d9ebff;
    font-size: 0.72rem;
}

.program-shell-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(207, 218, 232, 0.9);
    background: linear-gradient(180deg, #25384d, #1c2b3d);
}

.program-shell-tabs span {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(104, 132, 168, 0.2);
    color: #dce9f7;
    font-size: 0.74rem;
    background: rgba(255, 255, 255, 0.04);
}

.program-shell-tabs span.active {
    background: linear-gradient(180deg, #2f9cff, #1f70df);
    border-color: rgba(126, 196, 255, 0.72);
    color: #f7fbff;
}

.program-shell-body {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 16px;
    padding: 18px;
    background: linear-gradient(180deg, #f8fbff, #eef3fa);
}

.program-side-stack {
    display: grid;
    gap: 12px;
}

.program-side-card,
.program-grid-card,
.program-mini-card {
    border-radius: 16px;
    border: 1px solid rgba(205, 216, 229, 0.96);
    background: #ffffff;
    box-shadow: 0 14px 26px rgba(21, 35, 55, 0.08);
}

.program-side-card {
    padding: 14px;
}

.program-side-card.primary {
    background: linear-gradient(180deg, #f7fbff, #eef6ff);
    border-color: rgba(162, 194, 229, 0.82);
}

.program-side-label,
.program-mini-label {
    display: block;
    color: #5a7692;
    font-size: 0.69rem;
}

.program-side-card strong {
    display: block;
    margin-top: 8px;
    color: #16283d;
    font-size: 0.98rem;
}

.program-side-card small {
    display: block;
    margin-top: 8px;
    color: #617990;
    font-size: 0.82rem;
    line-height: 1.6;
}

.program-center-stage {
    display: grid;
    gap: 14px;
}

.program-module-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(190, 206, 223, 0.96);
    background: linear-gradient(180deg, #ffffff, #f5f8fc);
}

.program-module-banner strong {
    color: #1a2c40;
    font-size: 1rem;
}

.program-module-banner span {
    color: #62788e;
    font-size: 0.84rem;
}

.program-grid-head,
.program-grid-row {
    display: grid;
    grid-template-columns: 0.9fr 1.2fr 1fr 1fr 0.85fr;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
}

.program-grid-head {
    background: #eef3f9;
    color: #5b7189;
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.program-grid-row {
    color: #213345;
    font-size: 0.84rem;
    border-top: 1px solid rgba(225, 232, 240, 0.98);
}

.program-grid-row.running {
    background: rgba(225, 250, 239, 0.88);
}

.program-state {
    font-weight: 700;
}

.program-state.running {
    color: #138a56;
}

.program-state.armed {
    color: #bf7a08;
}

.program-state.ready {
    color: #1b74d1;
}

.program-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.program-mini-card {
    padding: 14px;
}

.program-mini-card strong {
    display: block;
    margin-top: 8px;
    color: #203246;
    font-size: 0.9rem;
    line-height: 1.55;
}

.focus-card {
    right: 6px;
    top: 90px;
    width: 306px;
    animation: landing-float 8.4s ease-in-out infinite reverse;
}

.focus-card div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #c7dbef;
    font-size: 0.81rem;
    padding: 7px 0;
    border-bottom: 1px dashed rgba(114, 154, 199, 0.18);
}

.focus-card div span:last-child {
    color: #90d2ff;
    font-weight: 700;
    text-align: right;
}

.focus-card div:last-child {
    border-bottom: none;
}

.challenge-card-hero {
    left: 16px;
    bottom: 14px;
    width: 284px;
    animation: landing-float 6.8s ease-in-out infinite;
}

.challenge-card-hero p {
    margin: 0;
    color: #aec6de;
    font-size: 0.84rem;
    line-height: 1.62;
}

.challenge-card-chips {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.landing-advantage-strip {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.landing-advantage-strip article,
.compare-card,
.special-grid article,
.challenge-band-grid article {
    padding: 18px;
}

.landing-advantage-strip p {
    margin: 10px 0 0;
    font-size: 0.88rem;
}

.landing-compare,
.landing-special-grid,
.landing-challenge-band,
.landing-flow {
    margin-top: 32px;
}

.section-heading {
    max-width: 840px;
    margin-bottom: 18px;
}

.section-heading h2,
.landing-challenge-band h2,
.landing-flow h2 {
    margin: 10px 0 0;
    font-family: "Sora", "Space Grotesk", sans-serif;
    font-size: clamp(1.45rem, 2vw, 2.3rem);
    line-height: 1.16;
}

.section-heading p {
    margin: 12px 0 0;
    font-size: 0.95rem;
    max-width: 760px;
}

.compare-grid {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 14px;
}

.compare-card {
    position: relative;
}

.compare-card.muted {
    background: linear-gradient(160deg, rgba(12, 21, 33, 0.78), rgba(8, 15, 26, 0.72));
}

.compare-card.featured {
    border-color: rgba(93, 179, 255, 0.34);
    background:
        linear-gradient(180deg, rgba(36, 146, 255, 0.08), rgba(36, 146, 255, 0) 40%),
        linear-gradient(160deg, rgba(10, 23, 41, 0.94), rgba(8, 18, 33, 0.88));
}

.featured-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(145deg, #1f95ff, #1a69d5);
    border: 1px solid rgba(132, 199, 255, 0.62);
    color: #f3fbff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.compare-card h3 {
    margin: 0 0 14px;
    padding-right: 120px;
}

.compare-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.compare-list li {
    position: relative;
    margin: 0;
    padding-left: 22px;
    font-size: 0.9rem;
}

.compare-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(145deg, #37d7b0, #2295ff);
    box-shadow: 0 0 0 4px rgba(64, 153, 255, 0.14);
}

.special-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.special-grid h3 {
    margin: 0;
}

.special-grid p {
    margin: 10px 0 0;
    font-size: 0.88rem;
}

.landing-challenge-band {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 16px;
    align-items: stretch;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(120, 160, 208, 0.22);
    background:
        radial-gradient(circle at 100% 0%, rgba(35, 153, 255, 0.12), transparent 34%),
        linear-gradient(160deg, rgba(11, 23, 40, 0.94), rgba(7, 16, 28, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.challenge-band-copy p {
    margin: 14px 0 0;
    font-size: 0.96rem;
    max-width: 640px;
}

.challenge-band-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.challenge-band-grid p {
    margin: 10px 0 0;
    font-size: 0.86rem;
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.flow-grid article {
    border-radius: 16px;
    border: 1px solid rgba(114, 153, 204, 0.24);
    background: linear-gradient(160deg, rgba(9, 22, 39, 0.9), rgba(8, 19, 34, 0.85));
    padding: 18px;
}

.flow-grid article span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: 11px;
    background: linear-gradient(145deg, #1f95ff, #1a69d5);
    border: 1px solid rgba(132, 199, 255, 0.65);
    color: #f2f9ff;
    font-size: 0.78rem;
    font-weight: 700;
}

.flow-grid h4 {
    margin: 12px 0 8px;
    color: #e8f3ff;
    font-size: 1rem;
}

.flow-grid p {
    margin: 0;
    font-size: 0.88rem;
}

.landing-support-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 30;
    width: min(372px, calc(100vw - 28px));
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(117, 161, 213, 0.26);
    background: linear-gradient(160deg, rgba(9, 21, 37, 0.92), rgba(8, 17, 30, 0.9));
    box-shadow: 0 24px 52px rgba(4, 10, 21, 0.42);
    backdrop-filter: blur(14px);
}

.support-widget-media {
    position: relative;
    width: 84px;
    height: 84px;
}

.support-widget-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 18px;
    border: 1px solid rgba(124, 171, 227, 0.26);
}

.support-status-dot {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #31d3a5;
    box-shadow: 0 0 0 4px rgba(8, 17, 30, 0.92);
}

.support-widget-copy {
    min-width: 0;
}

.support-kicker {
    display: inline-block;
    color: #89d4ff;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.support-widget-copy strong {
    display: block;
    margin-top: 6px;
    color: #eef7ff;
    font-size: 0.95rem;
    line-height: 1.38;
}

.support-widget-copy small {
    display: block;
    margin-top: 6px;
    color: #afc6dd;
    font-size: 0.8rem;
    line-height: 1.55;
}

.support-widget-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
}

.support-link {
    flex: 1;
    text-decoration: none;
    text-align: center;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.support-link:hover {
    transform: translateY(-1px);
}

.support-link.primary {
    color: #f4fbff;
    border: 1px solid rgba(128, 195, 255, 0.72);
    background: linear-gradient(145deg, #2398ff, #1a67d3);
}

.support-link.secondary {
    color: #e4efff;
    border: 1px solid rgba(118, 160, 210, 0.34);
    background: linear-gradient(145deg, rgba(18, 34, 56, 0.92), rgba(11, 22, 38, 0.94));
}

@keyframes landing-float {
    0%, 100% { transform: perspective(1600px) rotateY(-11deg) rotateX(8deg) translateY(0); }
    50% { transform: perspective(1600px) rotateY(-9deg) rotateX(7deg) translateY(-8px); }
}

@keyframes landing-orbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 1440px) {
    .landing-home {
        width: min(1320px, calc(100vw - 18px));
    }

    .landing-hero {
        grid-template-columns: 1fr;
        gap: 26px;
        min-height: auto;
    }

    .landing-copy {
        max-width: 920px;
    }

    .landing-visual {
        min-height: 720px;
    }
}

@media (max-width: 1180px) {
    .landing-proof-grid,
    .landing-advantage-strip,
    .compare-grid,
    .special-grid,
    .challenge-band-grid,
    .flow-grid,
    .showcase-media-grid,
    .program-shell-body,
    .program-mini-grid,
    .visual-metric-row,
    .visual-bottom-grid {
        grid-template-columns: 1fr;
    }

    .landing-challenge-band {
        grid-template-columns: 1fr;
    }

    .visual-body {
        grid-template-columns: 1fr;
    }

    .visual-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .side-chip {
        margin-bottom: 0;
    }

    .visual-mainframe {
        width: 100%;
        margin: 16px 0 0;
    }

    .focus-card,
    .challenge-card-hero,
    .desktop-window-card {
        position: static;
        width: 100%;
        margin-top: 14px;
        animation: none;
    }

    .program-shell-head {
        flex-wrap: wrap;
    }

    .program-shell-badges {
        margin-left: 0;
    }

    .visual-stage {
        min-height: auto;
    }

    .visual-human-card {
        min-height: 420px;
    }

    .visual-halo {
        inset: 40px 20px 20px 20px;
    }

    .landing-support-widget {
        position: static;
        width: 100%;
        margin-top: 24px;
    }
}

@media (max-width: 760px) {
    .landing-home {
        width: calc(100vw - 10px);
        padding: 20px 8px 28px;
    }

    .landing-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .landing-topbar-actions,
    .landing-cta-row {
        width: 100%;
    }

    .landing-btn,
    .landing-btn.big {
        width: 100%;
    }

    .visual-human-card {
        min-height: 360px;
    }

    .desktop-window-card {
        min-height: auto;
    }

    .landing-copy h1 {
        font-size: clamp(1.95rem, 8vw, 2.8rem);
    }

    .landing-lead {
        font-size: 0.97rem;
        line-height: 1.72;
    }

    .landing-pill-row,
    .challenge-card-chips,
    .panel-badges {
        gap: 8px;
    }

    .landing-pill-row span,
    .challenge-card-chips span,
    .panel-badges span {
        width: 100%;
        justify-content: center;
    }

    .visual-route-board {
        overflow-x: auto;
    }

    .desktop-preview-shell,
    .program-grid-card {
        overflow-x: auto;
    }

    .route-board-head,
    .route-board-row {
        min-width: 620px;
    }

    .desktop-preview-head,
    .desktop-preview-row {
        min-width: 560px;
    }

    .program-grid-head,
    .program-grid-row {
        min-width: 720px;
    }

    .landing-support-widget {
        grid-template-columns: 1fr;
    }

    .support-widget-media {
        width: 100%;
        height: 220px;
    }

    .support-widget-actions {
        flex-direction: column;
    }
}

.challenge-workspace {
    display: grid;
    gap: 12px;
    color: #182232;
}

.challenge-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #dbe3ee;
}

.challenge-eyebrow {
    color: #287094;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.challenge-title {
    margin-top: 2px;
    font-weight: 800;
    font-size: 1.28rem;
}

.challenge-subtitle,
.challenge-muted {
    font-size: 0.86rem;
    color: #5c6677;
}

.challenge-refresh {
    min-width: 86px;
}

.challenge-card-metrics span,
.challenge-card-metrics span,
.challenge-detail-grid span,
.challenge-focus-main span,
.challenge-focus-side span,
.challenge-entry-metrics span {
    color: #677384;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
}

.challenge-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(124px, 1fr));
    align-items: center;
    gap: 8px;
    width: min(560px, 100%);
    border: 1px solid #d4deea;
    border-radius: 8px;
    padding: 6px;
    background: #f3f6fa;
    overflow-x: auto;
}

.challenge-tab {
    --tab-accent: #2563eb;
    --tab-soft: #eef5ff;
    border: 1px solid color-mix(in srgb, var(--tab-accent) 22%, #d6dfeb 78%);
    border-radius: 6px;
    background: linear-gradient(180deg, #ffffff 0%, var(--tab-soft) 100%);
    color: #243149;
    font-size: 0.92rem;
    font-weight: 800;
    min-height: 44px;
    padding: 11px 18px;
    min-width: 0;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease, background 0.14s ease;
}

.challenge-tab:hover {
    border-color: color-mix(in srgb, var(--tab-accent) 46%, #d6dfeb 54%);
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.challenge-tab span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 7px;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: color-mix(in srgb, var(--tab-accent) 68%, #334155 32%);
    font-size: 0.8rem;
    font-weight: 800;
}

.challenge-tab.tab-free {
    --tab-accent: #159a55;
    --tab-soft: #ecfbf3;
}

.challenge-tab.tab-paid {
    --tab-accent: #2563eb;
    --tab-soft: #edf4ff;
}

.challenge-tab.tab-pro {
    --tab-accent: #c46a21;
    --tab-soft: #fff4e8;
}

.challenge-tab.is-active {
    color: #ffffff;
    border-color: color-mix(in srgb, var(--tab-accent) 84%, #ffffff 16%);
    background: linear-gradient(180deg, color-mix(in srgb, var(--tab-accent) 90%, #ffffff 10%) 0%, var(--tab-accent) 100%);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--tab-accent) 20%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.challenge-tab.is-active span {
    color: var(--tab-accent);
    background: #ffffff;
}

.challenge-board {
    display: grid;
    grid-template-columns: minmax(320px, 0.78fr) minmax(600px, 1.22fr);
    gap: 12px;
    align-items: stretch;
}

.challenge-list-panel,
.challenge-detail-panel,
.challenge-panel {
    border: 1px solid #d6dfeb;
    border-radius: 8px;
    background: #ffffff;
    padding: 12px;
}

.challenge-list-panel {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 332px;
}

.challenge-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.challenge-panel-head.compact {
    align-items: flex-start;
}

.challenge-card-list {
    display: grid;
    gap: 10px;
    align-content: stretch;
}

.challenge-card {
    --challenge-accent: #1d9a55;
    --challenge-accent-soft: #bdf4d3;
    --challenge-panel: #0f2a2b;
    --challenge-panel-deep: #0c1826;
    width: 100%;
    text-align: left;
    position: relative;
    overflow: hidden;
    border: 1px solid #d6dfeb;
    border-radius: 8px;
    padding: 16px;
    min-height: 292px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(249, 252, 255, 0.94) 49%, rgba(234, 243, 252, 0.9) 100%);
    color: #142033;
    cursor: pointer;
    display: grid;
    align-content: stretch;
    gap: 12px;
    transition: border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.challenge-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--challenge-panel) 14%, transparent) 0%, transparent 46%),
        radial-gradient(circle at 18% 72%, color-mix(in srgb, var(--challenge-accent) 14%, transparent) 0 9%, transparent 10%),
        radial-gradient(circle at 78% 22%, color-mix(in srgb, var(--challenge-accent) 16%, transparent) 0 8%, transparent 9%),
        repeating-linear-gradient(90deg, rgba(77, 143, 218, 0.06) 0, rgba(77, 143, 218, 0.06) 1px, transparent 1px, transparent 24px),
        repeating-linear-gradient(0deg, rgba(77, 143, 218, 0.055) 0, rgba(77, 143, 218, 0.055) 1px, transparent 1px, transparent 24px);
    opacity: 0.95;
    pointer-events: none;
}

.challenge-card:hover {
    border-color: #9bb8de;
    background: #ffffff;
}

.challenge-card.free {
    --challenge-accent: #1d9a55;
    --challenge-accent-soft: #d9f8e5;
    --challenge-panel: #0f3a34;
    --challenge-panel-deep: #102033;
    --challenge-metal: #9ff4c4;
}

.challenge-card.paid {
    --challenge-accent: #2f68c9;
    --challenge-accent-soft: #dbe8ff;
    --challenge-panel: #172b5a;
    --challenge-panel-deep: #0e1d35;
    --challenge-metal: #b7d4ff;
}

.challenge-card.pro {
    --challenge-accent: #c56d24;
    --challenge-accent-soft: #fde6cb;
    --challenge-panel: #493013;
    --challenge-panel-deep: #1f2430;
    --challenge-metal: #ffd36b;
}

.challenge-card.selected {
    border-color: #4d8fda;
    box-shadow: inset 0 0 0 1px #4d8fda, 0 12px 26px rgba(31, 83, 145, 0.1);
    background: #f7fbff;
}

.challenge-card-art {
    position: absolute;
    inset: 12px;
    border-radius: 8px;
    background:
        radial-gradient(circle at 73% 27%, color-mix(in srgb, var(--challenge-accent) 21%, transparent) 0 11%, transparent 12%),
        radial-gradient(circle at 22% 69%, rgba(255, 255, 255, 0.13) 0 10%, transparent 11%),
        linear-gradient(155deg, color-mix(in srgb, var(--challenge-panel) 88%, #ffffff 12%) 0%, var(--challenge-panel-deep) 100%);
    border: 1px solid color-mix(in srgb, var(--challenge-accent) 44%, #ffffff 56%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    opacity: 0.98;
    pointer-events: none;
}

.challenge-card.free .challenge-card-art {
    background:
        linear-gradient(112deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 18%),
        radial-gradient(circle at 19% 68%, rgba(255, 255, 255, 0.13) 0 10%, transparent 11%),
        linear-gradient(155deg, color-mix(in srgb, #0f3f38 89%, #ffffff 11%) 0%, #102033 100%);
}

.challenge-card.paid .challenge-card-art {
    background:
        radial-gradient(circle at 77% 25%, rgba(183, 212, 255, 0.19) 0 13%, transparent 14%),
        radial-gradient(circle at 34% 42%, rgba(74, 135, 224, 0.18) 0 10%, transparent 11%),
        linear-gradient(155deg, color-mix(in srgb, #172b5a 88%, #ffffff 12%) 0%, #0e1d35 100%);
}

.challenge-card.pro .challenge-card-art {
    background:
        radial-gradient(circle at 78% 24%, rgba(255, 211, 107, 0.24) 0 15%, transparent 16%),
        radial-gradient(circle at 48% 46%, rgba(197, 109, 36, 0.22) 0 14%, transparent 15%),
        linear-gradient(155deg, color-mix(in srgb, #493013 88%, #ffffff 12%) 0%, #1f2430 100%);
}

.challenge-card-art::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 6px;
    background:
        linear-gradient(135deg, transparent 0 63%, rgba(255, 255, 255, 0.11) 63.5% 65%, transparent 65.5%),
        radial-gradient(circle at 82% 19%, color-mix(in srgb, var(--challenge-accent) 27%, transparent) 0 6%, transparent 7%),
        radial-gradient(circle at 14% 74%, color-mix(in srgb, var(--challenge-accent-soft) 13%, transparent) 0 8%, transparent 9%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.065) 0, rgba(255, 255, 255, 0.065) 1px, transparent 1px, transparent 20px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 20px);
}

.challenge-card-art::after {
    content: "";
    position: absolute;
    left: 7%;
    right: 7%;
    bottom: 14px;
    height: 58px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(8, 18, 31, 0.62), rgba(12, 31, 47, 0.7), rgba(8, 18, 31, 0.62));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 -8px 22px rgba(2, 9, 18, 0.18);
}

.challenge-path-visual {
    position: absolute;
    inset: 18px 24px 82px;
}

.challenge-path-line {
    position: absolute;
    left: 9%;
    right: 9%;
    top: 61%;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.28), var(--challenge-accent-soft), var(--challenge-accent));
    transform: rotate(-10deg);
    transform-origin: left center;
    box-shadow: 0 0 16px color-mix(in srgb, var(--challenge-accent) 56%, transparent);
}

.challenge-card.free .challenge-path-line {
    top: 64%;
    transform: rotate(-8deg);
}

.challenge-card.paid .challenge-path-line {
    top: 58%;
    transform: rotate(-13deg);
}

.challenge-card.pro .challenge-path-line {
    top: 66%;
    transform: rotate(-18deg);
}

.challenge-path-line::before,
.challenge-path-line::after {
    content: "";
    position: absolute;
    right: -2px;
    top: 50%;
    width: 16px;
    height: 5px;
    border-radius: 999px;
    background: var(--challenge-accent);
    transform-origin: right center;
}

.challenge-path-line::before {
    transform: translateY(-50%) rotate(36deg);
}

.challenge-path-line::after {
    transform: translateY(-50%) rotate(-36deg);
}

.challenge-path-node {
    position: absolute;
    z-index: 2;
    min-width: 0;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--challenge-accent-soft) 64%, #ffffff 36%);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), color-mix(in srgb, var(--challenge-accent-soft) 36%, #ffffff 64%));
    color: #122034;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 10px 22px rgba(4, 12, 24, 0.24);
}

.challenge-path-node::before {
    content: "";
    width: 18px;
    height: 18px;
    margin: 0;
    border-radius: 6px;
    background: color-mix(in srgb, var(--challenge-accent) 78%, #ffffff 22%);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--challenge-accent) 16%, transparent);
}

.challenge-path-node::after {
    content: "";
    position: absolute;
}

.challenge-path-node.node-account::after {
    width: 24px;
    height: 15px;
    border-radius: 4px;
    border: 2px solid #15314b;
    background: transparent;
}

.challenge-path-node.node-mtl::after {
    width: 18px;
    height: 18px;
    border: 3px solid #15314b;
    border-top-color: transparent;
    border-radius: 999px;
}

.challenge-path-node.node-target::after {
    width: 24px;
    height: 24px;
    border: 3px solid #15314b;
    border-radius: 999px;
    box-shadow: inset 0 0 0 5px rgba(21, 49, 75, 0.12);
}

.challenge-path-node.node-reward::after {
    width: 24px;
    height: 18px;
    border-radius: 999px 999px 5px 5px;
    border: 2px solid #15314b;
    border-bottom-width: 5px;
}

.challenge-path-node.node-account {
    left: 7%;
    bottom: 12%;
}

.challenge-path-node.node-mtl {
    left: 34%;
    top: 41%;
}

.challenge-path-node.node-target {
    right: 29%;
    top: 20%;
}

.challenge-path-node.node-reward {
    right: 7%;
    top: 7%;
}

.challenge-account-stack {
    position: absolute;
    left: 4%;
    bottom: 2%;
    width: 78px;
    height: 50px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        12px -10px 0 -3px rgba(255, 255, 255, 0.1),
        24px -20px 0 -6px rgba(255, 255, 255, 0.08);
}

.challenge-account-stack::before,
.challenge-account-stack::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    height: 3px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--challenge-accent-soft) 76%, transparent);
}

.challenge-account-stack::before {
    top: 15px;
}

.challenge-account-stack::after {
    top: 26px;
    right: 28px;
}

.challenge-mtl-dial {
    position: absolute;
    left: 30%;
    top: 33%;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    border: 10px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--challenge-accent-soft);
    border-right-color: var(--challenge-accent);
    transform: rotate(42deg);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 22px color-mix(in srgb, var(--challenge-accent) 28%, transparent);
}

.challenge-mtl-dial::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 29px;
    height: 3px;
    border-radius: 999px;
    background: #ffffff;
    transform: rotate(-78deg);
    transform-origin: left center;
}

.challenge-target-ring {
    position: absolute;
    right: 23%;
    top: 12%;
    width: 112px;
    height: 112px;
    border-radius: 999px;
    border: 2px solid color-mix(in srgb, var(--challenge-accent-soft) 80%, transparent);
    box-shadow: 0 0 0 12px color-mix(in srgb, var(--challenge-accent) 10%, transparent), inset 0 0 0 12px rgba(255, 255, 255, 0.06);
}

.challenge-target-ring::before,
.challenge-target-ring::after {
    content: "";
    position: absolute;
    border-radius: 999px;
}

.challenge-target-ring::before {
    inset: 17px;
    border: 2px solid color-mix(in srgb, var(--challenge-accent-soft) 70%, transparent);
}

.challenge-target-ring::after {
    inset: 33px;
    background: var(--challenge-accent-soft);
    box-shadow: 0 0 14px color-mix(in srgb, var(--challenge-accent) 64%, transparent);
}

.challenge-reward-stack {
    position: absolute;
    right: 3%;
    top: 1%;
    width: 82px;
    height: 74px;
}

.challenge-reward-stack::before,
.challenge-reward-stack::after {
    content: "";
    position: absolute;
    right: 0;
    width: 66px;
    height: 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff, var(--challenge-accent-soft));
    box-shadow:
        0 16px 0 color-mix(in srgb, var(--challenge-accent-soft) 86%, #ffffff 14%),
        0 32px 0 color-mix(in srgb, var(--challenge-accent) 82%, #ffffff 18%);
}

.challenge-reward-stack::before {
    top: 8px;
    opacity: 0.36;
    transform: translateX(-14px);
}

.challenge-reward-stack::after {
    top: 18px;
    opacity: 0.82;
}

.challenge-theme-shape {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.challenge-theme-shape.shape-primary {
    left: 13%;
    top: 18%;
    width: 88px;
    height: 88px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--challenge-metal) 38%, transparent);
    background: radial-gradient(circle, color-mix(in srgb, var(--challenge-metal) 16%, transparent) 0 38%, transparent 39%);
}

.challenge-theme-shape.shape-secondary {
    right: 16%;
    bottom: 10%;
    width: 132px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--challenge-metal) 30%, transparent), transparent);
    transform: rotate(-18deg);
}

.challenge-card.free .challenge-theme-shape.shape-primary {
    left: 10%;
    top: 55%;
    width: 150px;
    height: 34px;
    border-radius: 999px;
    border: 0;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 18px, transparent 18px 28px),
        linear-gradient(90deg, transparent, color-mix(in srgb, var(--challenge-metal) 20%, transparent), transparent);
    transform: rotate(-8deg);
}

.challenge-card.free .challenge-theme-shape.shape-secondary {
    right: 8%;
    top: 14%;
    width: 62px;
    height: 78px;
    border-radius: 3px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.72) 0 4px, transparent 4px),
        linear-gradient(135deg, var(--challenge-metal) 0 48%, transparent 49%);
    transform: rotate(0deg);
    opacity: 0.82;
}

.challenge-card.paid .challenge-theme-shape.shape-primary {
    left: 12%;
    top: 20%;
    width: 98px;
    height: 98px;
    border: 2px solid color-mix(in srgb, var(--challenge-metal) 46%, transparent);
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.78) 0 10%, color-mix(in srgb, var(--challenge-metal) 78%, transparent) 11% 24%, transparent 25%),
        radial-gradient(circle, color-mix(in srgb, var(--challenge-metal) 14%, transparent) 0 46%, transparent 47%);
}

.challenge-card.paid .challenge-theme-shape.shape-secondary {
    right: 9%;
    top: 42%;
    width: 96px;
    height: 84px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 42%, transparent 0 31%, color-mix(in srgb, var(--challenge-metal) 48%, transparent) 32% 34%, transparent 35%),
        radial-gradient(circle, color-mix(in srgb, var(--challenge-accent) 18%, transparent) 0 49%, transparent 50%);
    transform: rotate(0deg);
}

.challenge-card.pro .challenge-theme-shape.shape-primary {
    left: 18%;
    top: 15%;
    width: 112px;
    height: 112px;
    border: 1px solid color-mix(in srgb, var(--challenge-metal) 34%, transparent);
    background:
        radial-gradient(circle, transparent 0 44%, color-mix(in srgb, var(--challenge-metal) 26%, transparent) 45% 47%, transparent 48%),
        radial-gradient(circle, color-mix(in srgb, var(--challenge-metal) 10%, transparent) 0 56%, transparent 57%);
}

.challenge-card.pro .challenge-theme-shape.shape-secondary {
    right: 27%;
    bottom: 26%;
    width: 190px;
    height: 24px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--challenge-metal) 38%, transparent), transparent);
    transform: rotate(-22deg);
}

.challenge-cup-emblem {
    position: absolute;
    z-index: 2;
    right: 5%;
    top: 4%;
    width: 94px;
    height: 106px;
    opacity: 0.18;
    pointer-events: none;
}

.challenge-cup-emblem::before {
    content: "";
    position: absolute;
    left: 21px;
    top: 8px;
    width: 52px;
    height: 45px;
    border-radius: 8px 8px 24px 24px;
    background: linear-gradient(180deg, #ffffff 0%, var(--challenge-metal) 42%, var(--challenge-accent) 100%);
    box-shadow:
        -20px 7px 0 -11px transparent,
        -20px 7px 0 -8px color-mix(in srgb, var(--challenge-metal) 72%, transparent),
        20px 7px 0 -11px transparent,
        20px 7px 0 -8px color-mix(in srgb, var(--challenge-metal) 72%, transparent);
}

.challenge-cup-emblem::after {
    content: "";
    position: absolute;
    left: 30px;
    bottom: 15px;
    width: 34px;
    height: 10px;
    border-radius: 999px;
    background: var(--challenge-metal);
    box-shadow: 0 -14px 0 -4px color-mix(in srgb, var(--challenge-metal) 82%, #ffffff 18%);
}

.challenge-cup-emblem span {
    position: absolute;
    left: 43px;
    top: 52px;
    width: 8px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--challenge-metal), color-mix(in srgb, var(--challenge-accent) 80%, #ffffff 20%));
}

.challenge-card.free .challenge-cup-emblem {
    right: 7%;
    top: 8%;
    transform: scale(0.7);
    opacity: 0.2;
}

.challenge-card.paid .challenge-cup-emblem {
    right: 6%;
    top: 6%;
    transform: scale(0.82);
    opacity: 0.24;
}

.challenge-card.pro .challenge-cup-emblem {
    right: 5%;
    top: 2%;
    transform: scale(1.25);
    opacity: 0.52;
    filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.24));
}

.challenge-card.pro .challenge-reward-stack {
    display: none;
}

.challenge-card.paid .challenge-reward-stack {
    transform: scale(0.88);
    transform-origin: top right;
}

.challenge-card-accessible {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.challenge-card-head,
.challenge-card-metrics,
.challenge-card-status {
    position: relative;
    z-index: 1;
}

.challenge-card-head,
.challenge-detail-head,
.challenge-my-entry-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.challenge-card-title,
.challenge-detail-title {
    font-weight: 800;
}

.challenge-card-title {
    font-size: 1.06rem;
}

.challenge-card-kicker {
    color: color-mix(in srgb, var(--challenge-accent) 72%, #173250);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.challenge-detail-title {
    font-size: 1.16rem;
}

.challenge-chip {
    border: 1px solid #c7d6e9;
    border-radius: 999px;
    padding: 3px 9px;
    background: #f4f8fd;
    color: #27415f;
    font-size: 0.74rem;
    font-weight: 800;
    white-space: nowrap;
}

.challenge-card-text {
    margin-top: 4px;
    font-size: 0.83rem;
    color: #596678;
    max-width: min(56ch, 62%);
}

.challenge-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.challenge-card-tags span {
    border: 1px solid #d9e1ec;
    border-radius: 999px;
    background: #ffffff;
    padding: 4px 8px;
    color: #40516a;
    font-size: 0.76rem;
    font-weight: 700;
}

.challenge-card-metrics,
.challenge-detail-grid,
.challenge-estimate-grid,
.challenge-entry-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.challenge-card-metrics.mini {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin-top: auto;
    z-index: 2;
}

.challenge-card-metrics div,
.challenge-detail-grid div,
.challenge-estimate-grid div,
.challenge-entry-metrics div {
    min-width: 0;
    border: 1px solid #e0e7f0;
    border-radius: 6px;
    background: #ffffff;
    padding: 8px;
    display: grid;
    gap: 3px;
}

.challenge-card-metrics.mini div {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(7, 18, 32, 0.66);
    backdrop-filter: blur(3px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.challenge-card-metrics.mini span {
    color: rgba(231, 240, 250, 0.72);
}

.challenge-card-metrics.mini strong {
    color: #ffffff;
}

.challenge-card-metrics.mini .challenge-reward-value {
    color: #48e08c !important;
}

.challenge-card-metrics strong,
.challenge-detail-grid strong,
.challenge-focus-side strong,
.challenge-entry-metrics strong {
    color: #162033;
    font-size: 0.95rem;
    overflow-wrap: anywhere;
}

.challenge-card-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #4d5a6e;
    font-size: 0.8rem;
}

.challenge-focus-card {
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(420px, 1.1fr);
    gap: 10px;
    margin-top: 12px;
    border: 1px solid #b7d3fb;
    border-radius: 8px;
    background: linear-gradient(180deg, #f7fbff 0%, #edf6ff 100%);
    padding: 12px;
}

.challenge-focus-card.is-updating {
    opacity: 0.78;
}

.challenge-focus-main {
    display: grid;
    align-content: center;
    gap: 4px;
    min-height: 118px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #d7e7fb;
    padding: 16px;
}

.challenge-focus-main strong {
    color: #0b5eb8;
    font-size: 2.2rem;
    line-height: 1;
}

.challenge-focus-main small {
    color: #5a687a;
    font-size: 0.82rem;
    line-height: 1.45;
}

.challenge-focus-side {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    align-content: stretch;
}

.challenge-focus-side div {
    min-width: 0;
    border: 1px solid #dce7f4;
    border-radius: 8px;
    background: #ffffff;
    padding: 12px;
    display: grid;
    align-content: center;
    gap: 5px;
}

.challenge-detail-grid {
    margin-top: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.challenge-rules-box {
    margin-top: 14px;
    border: 1px solid #d6dfeb;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.challenge-rules-box summary {
    list-style: none;
    cursor: pointer;
    font-weight: 800;
    color: #25344b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    background: #f8fafc;
}

.challenge-rules-box summary::-webkit-details-marker {
    display: none;
}

.challenge-rules-box summary::after {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid #5f6e82;
    border-bottom: 2px solid #5f6e82;
    transform: rotate(45deg);
    transition: transform 0.14s ease;
    margin-top: -3px;
}

.challenge-rules-box[open] summary {
    border-bottom: 1px solid #e1e7ef;
    background: #f4f8fd;
}

.challenge-rules-box[open] summary::after {
    transform: rotate(225deg);
    margin-top: 3px;
}

.challenge-rules-body {
    padding: 10px 12px 12px;
    max-height: 220px;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.challenge-rules-box p {
    margin: 0;
    color: #5c6677;
    font-size: 0.84rem;
    line-height: 1.55;
}

.challenge-rules {
    margin: 8px 0 0;
    padding-left: 18px;
    font-size: 0.8rem;
    color: #46546a;
}

.challenge-rules li {
    margin-bottom: 5px;
}

.challenge-my-entry,
.challenge-join-box {
    margin-top: 12px;
    display: grid;
    gap: 10px;
    font-size: 0.84rem;
}

.challenge-join-box {
    border: 1px solid #bcd7fb;
    border-radius: 8px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
    padding: 12px;
    box-shadow: 0 8px 20px rgba(42, 101, 178, 0.07);
}

.challenge-mtl-stage {
    border-color: #8fd0af;
    background: linear-gradient(180deg, #f6fffa 0%, #edfdf4 100%);
    box-shadow: 0 10px 24px rgba(21, 154, 85, 0.08);
}

.challenge-my-entry {
    border-top: 1px solid #e1e7ef;
    padding-top: 12px;
}

.challenge-commit-box {
    margin-top: 12px;
    border: 1px solid #d6dfeb;
    border-radius: 8px;
    background: #ffffff;
    padding: 12px;
    display: grid;
    gap: 10px;
}

.challenge-join-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-weight: 800;
    color: #1e2b40;
}

.challenge-join-title small {
    color: #2d6fb8;
    font-size: 0.76rem;
    font-weight: 800;
}

.challenge-mtl-stage-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.challenge-mtl-title {
    color: #15324c;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.2;
}

.challenge-mtl-badge {
    min-width: 126px;
    border: 1px solid #8fd0af;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f2fff7 100%);
    padding: 10px 12px;
    display: grid;
    gap: 2px;
    text-align: right;
}

.challenge-mtl-badge span {
    color: #4f6a5e;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.challenge-mtl-badge strong {
    color: #159a55;
    font-size: 1.45rem;
    line-height: 1;
}

.challenge-join-layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
    gap: 12px;
    align-items: end;
}

.challenge-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(118px, 180px));
    gap: 8px;
    align-items: end;
}

.challenge-form-grid label {
    display: grid;
    gap: 4px;
    color: #4d5b6f;
    font-size: 0.78rem;
    font-weight: 700;
}

.challenge-mtl-input {
    min-height: 48px;
    font-size: 1.18rem;
    font-weight: 800;
}

.challenge-mtl-note {
    min-height: 100%;
    border: 1px dashed #9ad3b2;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    padding: 10px 12px;
    display: grid;
    align-content: center;
    gap: 4px;
}

.challenge-mtl-note strong {
    color: #117844;
    font-size: 0.86rem;
    font-weight: 900;
    text-transform: uppercase;
}

.challenge-mtl-note span {
    color: #4d5f70;
    font-size: 0.82rem;
    line-height: 1.45;
}

.challenge-join-actions {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(170px, 240px);
    gap: 10px;
    align-items: center;
}

.challenge-focus-card {
    margin-top: 14px;
}

.challenge-rules-box {
    margin-top: 14px;
}

.challenge-form-grid .btn-plain,
.challenge-join-button {
    min-height: 42px;
}

.challenge-join-button {
    border-color: #1d8f55;
    background: linear-gradient(180deg, #22b86d 0%, #159454 100%);
    color: #ffffff;
    font-weight: 900;
    width: 100%;
}

.challenge-join-button:hover:not(:disabled) {
    border-color: #137442;
    background: linear-gradient(180deg, #27c777 0%, #118a4d 100%);
}

.challenge-join-button:disabled {
    border-color: #ccd6e4;
    background: #edf1f6;
    color: #7a8798;
}

.challenge-estimate-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.challenge-reward-value {
    color: #0b8740 !important;
}

.challenge-check {
    font-size: 0.82rem;
    margin: 0;
}

.challenge-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 0.74rem;
    font-weight: 800;
}

.challenge-status.active {
    background: #e8f7ef;
    color: #137441;
}

.challenge-status.completed {
    background: #eef4ff;
    color: #2456a6;
}

.challenge-status.failed {
    background: #fff0ed;
    color: #ad3b22;
}

.challenge-status.neutral {
    background: #f0f3f7;
    color: #586579;
}

.challenge-panels {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 12px;
}

.challenge-panels.compact {
    grid-template-columns: 1fr 0.82fr;
}

.challenge-table th,
.challenge-table td {
    font-size: 0.82rem;
}

.challenge-loading {
    font-size: 0.85rem;
    color: #4e5b6f;
    padding: 10px 0;
}

.app-modal-challenge-confirm {
    width: 720px;
    max-width: calc(100vw - 28px);
}

.challenge-confirm-body {
    display: grid;
    gap: 12px;
}

.challenge-confirm-summary,
.my-challenges-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.challenge-confirm-summary div,
.my-challenges-summary div {
    border: 1px solid #d8e4f1;
    border-radius: 8px;
    background: #ffffff;
    padding: 10px 12px;
    display: grid;
    gap: 3px;
}

.challenge-confirm-summary span,
.my-challenges-summary span {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.challenge-confirm-summary strong,
.my-challenges-summary strong {
    color: #172235;
    font-size: 1rem;
}

.challenge-confirm-symbols {
    border: 1px solid #c8ddf4;
    border-radius: 8px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
    padding: 12px;
    display: grid;
    gap: 10px;
}

.challenge-confirm-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #22324a;
}

.challenge-confirm-section-head span {
    color: #53708f;
    font-size: 0.78rem;
    font-weight: 800;
}

.challenge-symbol-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    max-height: 142px;
    overflow-y: auto;
    padding-right: 2px;
}

.challenge-symbol-pill-list span {
    border: 1px solid #b7d2ef;
    border-radius: 999px;
    background: #ffffff;
    color: #174066;
    padding: 4px 9px;
    font-size: 0.78rem;
    font-weight: 800;
}

.challenge-confirm-note {
    border: 1px dashed #9ad3b2;
    border-radius: 8px;
    background: #f5fff9;
    color: #345a46;
    padding: 10px 12px;
    font-size: 0.84rem;
    line-height: 1.45;
}

.challenge-confirm-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.my-challenges-surface {
    display: grid;
    gap: 12px;
}

.my-challenges-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.my-challenges-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    text-decoration: none;
}

.my-challenges-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.my-challenges-empty {
    display: grid;
    gap: 4px;
}

.my-challenges-empty span {
    color: #5d6b7f;
}

.my-challenges-panel {
    padding: 0;
    overflow: hidden;
}

.my-challenges-table th,
.my-challenges-table td {
    vertical-align: top;
}

.my-challenges-table tr.is-highlighted {
    background: #f2fff7;
    box-shadow: inset 4px 0 0 #18a85f;
}

.my-challenges-main-cell {
    display: grid;
    gap: 2px;
    min-width: 126px;
}

.my-challenges-main-cell strong {
    color: #172235;
}

.my-challenges-main-cell span,
.my-challenges-table small {
    color: #64748b;
    font-size: 0.76rem;
}

.my-challenge-progress {
    width: 150px;
    max-width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #e6edf5;
    overflow: hidden;
    margin-bottom: 4px;
}

.my-challenge-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #16a35a, #38d47a);
}

.my-challenge-profit {
    font-weight: 900;
    color: #526173;
}

.my-challenge-profit.positive {
    color: #108245;
}

.my-challenge-profit.negative {
    color: #b23b2a;
}

.my-challenge-credentials {
    display: grid;
    gap: 4px;
    min-width: 146px;
    color: #344158;
    font-size: 0.78rem;
}

.my-challenge-credentials code {
    color: #0c5a33;
    background: #edfdf4;
    border: 1px solid #bde9ce;
    border-radius: 4px;
    padding: 2px 5px;
}

.my-challenge-credential-btn {
    min-height: 28px;
    width: fit-content;
    padding: 3px 8px;
    font-size: 0.76rem;
}

.my-challenge-credential-error {
    color: #b23b2a;
    font-weight: 700;
}

.challenge-participants-surface {
    display: grid;
    gap: 12px;
    width: min(calc(100vw - 32px), 2800px);
    margin-inline: auto;
}

.challenge-participants-header .challenge-subtitle {
    max-width: 760px;
}

.challenge-participants-challenge-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
    padding: 8px;
}

.challenge-participants-challenge-tab {
    --tab-accent: #2563eb;
    --tab-soft: #eef5ff;
    min-height: 76px;
    border: 1px solid color-mix(in srgb, var(--tab-accent) 22%, #d6dfeb 78%);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, var(--tab-soft) 100%);
    color: #172235;
    cursor: pointer;
    display: grid;
    align-items: stretch;
    gap: 8px;
    padding: 11px 13px;
    text-align: left;
    transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.challenge-participants-challenge-tab.tab-free {
    --tab-accent: #159a55;
    --tab-soft: #ecfbf3;
}

.challenge-participants-challenge-tab.tab-paid {
    --tab-accent: #2563eb;
    --tab-soft: #edf4ff;
}

.challenge-participants-challenge-tab.tab-pro {
    --tab-accent: #c46a21;
    --tab-soft: #fff4e8;
}

.challenge-participants-challenge-tab-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.challenge-participants-challenge-tab strong {
    font-size: 0.94rem;
    font-weight: 900;
    line-height: 1.15;
    min-width: 0;
    overflow-wrap: anywhere;
}

.challenge-participants-challenge-count {
    min-width: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: color-mix(in srgb, var(--tab-accent) 68%, #334155 32%);
    font-size: 0.78rem;
    font-weight: 900;
    padding: 4px 8px;
    text-align: center;
}

.challenge-participants-challenge-tab-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.challenge-participants-challenge-tab-stat {
    border: 1px solid color-mix(in srgb, var(--tab-accent) 18%, #d6dfeb 82%);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: #44546a;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
    min-height: 22px;
    padding: 4px 7px;
    white-space: nowrap;
}

.challenge-participants-challenge-tab-stat b {
    color: #172235;
    font-size: 0.74rem;
}

.challenge-participants-challenge-tab-stat.attention.warning {
    border-color: #f59e0b;
    background: #fff7ed;
    color: #9a4b18;
}

.challenge-participants-challenge-tab-stat.attention.critical {
    border-color: #dc2626;
    background: #fff1f2;
    color: #991b1b;
}

.challenge-participants-challenge-tab-stat.attention.warning b,
.challenge-participants-challenge-tab-stat.attention.critical b {
    color: inherit;
}

.challenge-participants-challenge-tab:hover {
    border-color: color-mix(in srgb, var(--tab-accent) 46%, #d6dfeb 54%);
    background: #f8fbff;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.challenge-participants-challenge-tab.active,
.challenge-participants-challenge-tab.is-active {
    border-color: color-mix(in srgb, var(--tab-accent) 84%, #ffffff 16%);
    background: linear-gradient(180deg, color-mix(in srgb, var(--tab-accent) 90%, #ffffff 10%) 0%, var(--tab-accent) 100%);
    color: #ffffff;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--tab-accent) 20%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.challenge-participants-challenge-tab.active .challenge-participants-challenge-count,
.challenge-participants-challenge-tab.is-active .challenge-participants-challenge-count {
    background: #ffffff;
    color: var(--tab-accent);
}

.challenge-participants-challenge-tab.active .challenge-participants-challenge-tab-stat,
.challenge-participants-challenge-tab.is-active .challenge-participants-challenge-tab-stat {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.9);
}

.challenge-participants-challenge-tab.active .challenge-participants-challenge-tab-stat b,
.challenge-participants-challenge-tab.is-active .challenge-participants-challenge-tab-stat b {
    color: #ffffff;
}

.challenge-participants-challenge-tab.active .challenge-participants-challenge-tab-stat.attention.warning,
.challenge-participants-challenge-tab.is-active .challenge-participants-challenge-tab-stat.attention.warning,
.challenge-participants-challenge-tab.active .challenge-participants-challenge-tab-stat.attention.critical,
.challenge-participants-challenge-tab.is-active .challenge-participants-challenge-tab-stat.attention.critical {
    border-color: #ffffff;
    background: #ffffff;
    color: #991b1b;
}

.challenge-participants-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.challenge-participants-summary-card {
    border: 1px solid #d8e4f1;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: inherit;
    padding: 10px 12px;
    display: grid;
    gap: 3px;
    text-align: left;
}

.challenge-participants-summary button.challenge-participants-summary-card {
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.challenge-participants-summary button.challenge-participants-summary-card:hover:not(:disabled) {
    transform: translateY(-1px);
}

.challenge-participants-summary button.challenge-participants-summary-card:disabled {
    cursor: default;
}

.challenge-participants-summary-card.attention.warning {
    border-color: #fbbf24;
    background: linear-gradient(180deg, #fffbeb 0%, #fff7ed 100%);
    box-shadow: 0 8px 18px rgba(245, 158, 11, 0.12);
}

.challenge-participants-summary-card.attention.critical {
    border-color: #ef4444;
    background: linear-gradient(180deg, #fff7f7 0%, #fff1f2 100%);
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.12);
}

.challenge-participants-summary-card.attention.empty {
    opacity: 0.86;
}

.challenge-participants-summary span,
.challenge-participants-summary-card span {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.challenge-participants-summary strong,
.challenge-participants-summary-card strong {
    color: #172235;
    font-size: 1.08rem;
}

.challenge-participants-summary-card.attention.critical span,
.challenge-participants-summary-card.attention.critical strong {
    color: #991b1b;
}

.challenge-participants-summary-card.attention.warning span,
.challenge-participants-summary-card.attention.warning strong {
    color: #9a4b18;
}

.challenge-participants-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.challenge-participants-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.challenge-participants-tab {
    min-height: 34px;
    border: 1px solid #cfddec;
    border-radius: 999px;
    background: #ffffff;
    color: #263a54;
    padding: 6px 11px;
    font-size: 0.8rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.challenge-participants-tab span {
    min-width: 20px;
    border-radius: 999px;
    background: #eef4ff;
    color: #2760a8;
    padding: 2px 6px;
    text-align: center;
    font-size: 0.72rem;
}

.challenge-participants-tab:hover {
    border-color: #9fc2e8;
    background: #f7fbff;
}

.challenge-participants-tab.active {
    border-color: #167c49;
    background: linear-gradient(180deg, #1fb66b 0%, #149155 100%);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(21, 148, 84, 0.16);
}

.challenge-participants-tab.active span {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.challenge-participants-search {
    width: min(360px, 100%);
    min-height: 34px;
    border: 1px solid #cfddec;
    border-radius: 8px;
    background: #ffffff;
    color: #172235;
    padding: 7px 10px;
    font-size: 0.84rem;
}

.challenge-participants-search:focus {
    outline: 2px solid rgba(39, 119, 203, 0.2);
    border-color: #2d78c5;
}

.challenge-participants-panel {
    border: 1px solid #d7e4f2;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
}

.challenge-participants-panel .grid-wrap {
    border: 0;
    overflow-x: auto;
    padding: 0;
}

.challenge-participants-table {
    min-width: 1700px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.84rem;
}

.challenge-participants-table th {
    border: 0;
    border-bottom: 1px solid #cad8e8;
    background: linear-gradient(180deg, #f4f8fd 0%, #edf4fb 100%);
    color: #334155;
    padding: 9px 8px;
    font-size: 0.73rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}

.challenge-participants-table th,
.challenge-participants-table td {
    vertical-align: top;
}

.challenge-participants-table td {
    border: 0;
    border-bottom: 1px solid #e3ebf4;
    background: linear-gradient(90deg, #f4fbf8 0%, #f7fbff 100%);
    color: #172235;
    padding: 10px 10px;
    line-height: 1.3;
    box-shadow: none;
}

.challenge-participants-table tbody tr:nth-child(even) td {
    background: linear-gradient(90deg, #eef7ff 0%, #f8fbff 100%);
}

.challenge-participants-table tbody tr:hover td {
    background: linear-gradient(90deg, #e8f7ef 0%, #edf7ff 100%);
}

.challenge-participants-table tbody tr td + td {
    border-left: 1px solid #edf2f7;
}

.challenge-participants-table tbody tr:last-child td {
    border-bottom: 0;
}

.challenge-participants-table tr.needs-attention {
    background: transparent;
}

.challenge-participants-table tr.needs-attention td:first-child {
    box-shadow: inset 4px 0 0 #f59e0b;
    padding-left: 10px;
}

.challenge-participants-main-cell {
    display: grid;
    gap: 4px;
    min-width: 118px;
}

.challenge-participants-main-cell.compact {
    min-width: 86px;
}

.challenge-participants-participant-cell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.challenge-participants-avatar {
    align-items: center;
    background: linear-gradient(135deg, #dff8ef 0%, #e7f1ff 100%);
    border: 1px solid #b9e4d4;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
    color: #08764b !important;
    display: inline-flex;
    flex: 0 0 40px;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    height: 40px;
    justify-content: center;
    line-height: 1;
    text-transform: uppercase;
    width: 40px;
}

.challenge-participants-participant-cell strong {
    color: #172235;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.28;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.challenge-participants-copy-cell {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.challenge-participants-main-cell strong {
    color: #172235;
    font-size: 0.91rem;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.challenge-participants-copy-cell strong {
    font-weight: 800;
    line-height: 1.25;
    min-width: 0;
    overflow: hidden;
    overflow-wrap: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.challenge-participants-copy-cell span {
    flex: 0 0 auto;
    overflow-wrap: normal;
    white-space: nowrap;
}

.challenge-participants-main-cell span,
.challenge-participants-main-cell small,
.challenge-participants-table small {
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.challenge-participants-number {
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.challenge-participants-number.muted {
    color: #64748b;
}

.challenge-participants-mono {
    color: #2e5c8f;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.78rem;
    white-space: nowrap;
}

.challenge-participants-date {
    color: #334155;
    font-size: 0.8rem;
    white-space: nowrap;
}

.challenge-participants-status-cell {
    display: grid;
    gap: 4px;
    min-width: 82px;
    max-width: 150px;
}

.challenge-participants-status-cell small {
    color: #9a4b18;
    font-weight: 700;
}

.challenge-participants-table .my-challenge-progress {
    width: 110px;
}

.challenge-participants-table .my-challenge-profit {
    text-align: right;
    white-space: nowrap;
}

.challenge-participants-table {
    width: 100%;
    min-width: 1560px;
    margin-inline: auto;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0 7px;
    background: #f7fbff;
    font-family: "Segoe UI", Arial, Tahoma, sans-serif;
    font-size: 0.91rem;
    font-variant-numeric: tabular-nums;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.challenge-participants-col-participant {
    width: 11%;
}

.challenge-participants-col-route {
    width: 26%;
}

.challenge-participants-col-performance {
    width: 27%;
}

.challenge-participants-col-health {
    width: 19%;
}

.challenge-participants-col-copy {
    width: 12%;
}

.challenge-participants-col-details {
    width: 5%;
}

.challenge-participants-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.challenge-participants-table tbody tr.challenge-participants-row td {
    border-top: 1px solid #dbe7f3;
    border-bottom: 1px solid #dbe7f3;
    background: #f8fbff;
    vertical-align: middle;
    padding: 10px 12px;
}

.challenge-participants-table tbody tr.challenge-participants-row td:first-child {
    border-left: 1px solid #dbe7f3;
    border-radius: 7px 0 0 7px;
}

.challenge-participants-table tbody tr.challenge-participants-row td:last-child {
    border-right: 1px solid #dbe7f3;
    border-radius: 0 7px 7px 0;
}

.challenge-participants-table tbody tr.challenge-participants-row.active td {
    background: linear-gradient(90deg, #eefaf5 0%, #f7fbff 62%, #f2f8ff 100%);
}

.challenge-participants-table tbody tr.challenge-participants-row.completed td {
    background: linear-gradient(90deg, #eef8ff 0%, #f9fcff 100%);
}

.challenge-participants-table tbody tr.challenge-participants-row.warning td {
    background: linear-gradient(90deg, #fff7e8 0%, #fffdf8 46%, #f7fbff 100%);
}

.challenge-participants-table tbody tr.challenge-participants-row.critical td {
    background: linear-gradient(90deg, #fff1f1 0%, #fff8f8 48%, #f7fbff 100%);
}

.challenge-participants-table tbody tr.challenge-participants-row.neutral td {
    background: linear-gradient(90deg, #f7fbff 0%, #ffffff 100%);
}

.challenge-participants-table tbody tr.challenge-participants-row.active td:first-child {
    box-shadow: inset 4px 0 0 #16a765;
}

.challenge-participants-table tbody tr.challenge-participants-row.warning td:first-child {
    box-shadow: inset 4px 0 0 #f59e0b;
}

.challenge-participants-table tbody tr.challenge-participants-row.critical td:first-child {
    box-shadow: inset 4px 0 0 #dc2626;
}

.challenge-participants-table tbody tr.challenge-participants-row.completed td:first-child {
    box-shadow: inset 4px 0 0 #2d78c5;
}

.challenge-participants-table tbody tr.challenge-participants-row:hover td {
    background: linear-gradient(90deg, #e9f7f1 0%, #eef7ff 100%);
}

.challenge-participants-table tbody tr.challenge-participants-row.is-highlighted td {
    border-top-color: #38bdf8;
    border-bottom-color: #38bdf8;
    background: linear-gradient(90deg, #e0f7ff 0%, #f0fbff 48%, #f8fcff 100%);
}

.challenge-participants-table tbody tr.challenge-participants-row.is-highlighted td:first-child {
    border-left-color: #38bdf8;
    box-shadow: inset 4px 0 0 #0ea5e9;
}

.challenge-participants-table tbody tr.challenge-participants-row.is-highlighted td:last-child {
    border-right-color: #38bdf8;
}

.challenge-participants-route {
    display: grid;
    grid-template-columns: minmax(94px, 1fr) auto minmax(94px, 1fr);
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.challenge-participants-route > div:not(.challenge-participants-route-arrow) {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    min-width: 0;
    white-space: nowrap;
}

.challenge-participants-route span,
.challenge-participants-performance span,
.challenge-participants-health small {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 700;
}

.challenge-participants-route strong,
.challenge-participants-performance strong {
    color: #0f172a;
    font-size: 0.91rem;
    font-weight: 800;
    line-height: 1.25;
}

.challenge-participants-route-meta {
    color: #2d648f !important;
    font-size: 0.84rem !important;
    font-weight: 500 !important;
}

.challenge-participants-route small {
    color: #52657c;
    font-size: 0.77rem;
}

.challenge-participants-route-arrow {
    border-radius: 999px;
    background: #e8f1fb;
    color: #2d648f;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0;
    padding: 3px 7px;
    text-transform: uppercase;
}

.challenge-participants-performance {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 0;
    white-space: nowrap;
}

.challenge-participants-performance > div {
    display: flex;
    align-items: baseline;
    gap: 5px;
    min-width: 0;
    padding: 0 9px;
}

.challenge-participants-performance > div:first-child {
    padding-left: 0;
}

.challenge-participants-performance > div + div {
    border-left: 1px solid #d9e6f3;
}

.challenge-participants-performance span {
    color: #58708d !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
}

.challenge-participants-performance strong {
    font-size: 0.9rem !important;
}

.challenge-participants-target {
    border-radius: 999px;
    background: rgba(45, 120, 197, 0.06);
    margin-left: 2px;
    padding: 3px 10px !important;
}

.challenge-participants-health {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: none;
    white-space: nowrap;
}

.challenge-participants-health-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.challenge-participants-health > strong {
    color: #172235;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.2;
}

.challenge-participants-health > small {
    color: #42526a;
    font-weight: 600;
    line-height: 1.35;
    max-width: 100%;
}

.challenge-participants-issue-button {
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 6px;
    text-align: left;
    transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
    width: auto;
    min-width: 0;
}

.challenge-participants-issue-button strong {
    color: #172235;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.2;
}

.challenge-participants-issue-button small {
    color: #42526a;
    font-weight: 600;
    line-height: 1.35;
    max-width: 100%;
}

.challenge-participants-issue-button:hover,
.challenge-participants-issue-button:focus {
    outline: 0;
    border-color: #b9d3ee;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 0 0 3px rgba(45, 120, 197, 0.08);
}

.challenge-participants-issue-button.warning {
    border-color: #fed7aa;
    background: #fff7ed;
}

.challenge-participants-issue-button.warning strong,
.challenge-participants-issue-button.warning small {
    color: #9a4b18;
}

.challenge-participants-issue-button.critical {
    border-color: #fecaca;
    background: #fff1f2;
}

.challenge-participants-issue-button.critical strong,
.challenge-participants-issue-button.critical small {
    color: #991b1b;
}

.challenge-participants-issue-banner {
    border: 1px solid #fed7aa;
    border-radius: 8px;
    background: #fff7ed;
    color: #9a4b18;
    display: grid;
    gap: 3px;
    margin-bottom: 10px;
    padding: 10px 12px;
}

.challenge-participants-issue-banner strong {
    font-size: 0.9rem;
    font-weight: 800;
}

.challenge-participants-issue-banner span {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
}

.challenge-participants-issue-banner.critical {
    border-color: #fecaca;
    background: #fff1f2;
    color: #991b1b;
}

.procopy-focus-pulse {
    animation: procopy-focus-pulse 1500ms ease-out 1;
}

@keyframes procopy-focus-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.44);
    }
    45% {
        box-shadow: 0 0 0 7px rgba(220, 38, 38, 0.14);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

.challenge-status.warning {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #b45309;
}

.challenge-status.copy-health {
    font-size: 0.74rem;
}

.challenge-participants-details-btn {
    min-height: 34px;
    border-color: #b9cfe6;
    background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
    color: #164c7d;
    padding: 5px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.challenge-participants-table .challenge-status {
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.challenge-participants-table tbody tr.challenge-participants-row {
    font-size: 0.96rem;
}

.challenge-participants-table tbody tr.challenge-participants-row strong {
    color: #071426 !important;
    font-family: Arial, "Segoe UI", Tahoma, sans-serif;
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    letter-spacing: 0;
    line-height: 1.34;
}

.challenge-participants-table tbody tr.challenge-participants-row .challenge-participants-route-meta {
    font-size: 0.86rem !important;
    line-height: 1.3;
}

.challenge-participants-table tbody tr.challenge-participants-row .challenge-participants-performance span {
    font-size: 0.74rem !important;
    line-height: 1.25;
}

.challenge-participants-table tbody tr.challenge-participants-row .challenge-participants-performance strong {
    font-size: 0.98rem !important;
}

.challenge-participants-table tbody tr.challenge-participants-row .challenge-participants-copy-cell strong {
    font-size: 0.95rem !important;
}

.challenge-participants-table tbody tr.challenge-participants-row .challenge-status {
    font-size: 0.78rem;
    font-weight: 700;
}

.challenge-participants-table tbody tr.challenge-participants-row .challenge-participants-details-btn {
    font-size: 0.85rem;
    font-weight: 700;
}

.challenge-participants-details-btn:hover {
    border-color: #2d78c5;
    background: #e8f3ff;
}

.challenge-participants-detail-row td {
    border: 1px solid #dbe7f3;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%) !important;
    padding: 12px;
}

.challenge-participants-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    gap: 10px 14px;
}

.challenge-participants-detail-grid > div {
    display: grid;
    gap: 3px;
    border-left: 3px solid #d6e5f5;
    padding-left: 9px;
    min-width: 0;
}

.challenge-participants-detail-grid span {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.challenge-participants-detail-grid strong {
    color: #172235;
    font-size: 0.82rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.challenge-participants-detail-grid small {
    color: #52657c;
    font-size: 0.76rem;
    overflow-wrap: anywhere;
}

.challenge-participants-action-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding: 10px;
    border: 1px solid #d4e4f4;
    border-radius: 8px;
    background: linear-gradient(90deg, #f4fbff 0%, #f7fcf8 100%);
}

.challenge-participants-action-panel > div:first-child {
    display: grid;
    gap: 2px;
    min-width: 220px;
}

.challenge-participants-action-panel strong {
    color: #10223a;
    font-size: 0.86rem;
    font-weight: 900;
}

.challenge-participants-action-panel span {
    color: #60748d;
    font-size: 0.76rem;
}

.challenge-participants-action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.challenge-participants-action-btn,
.challenge-participants-confirm-btn {
    border: 1px solid #1a73d9;
    border-radius: 5px;
    background: #1e86f7;
    color: #fff;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    padding: 8px 12px;
}

.challenge-participants-action-btn.secondary {
    border-color: #b9cbe0;
    background: #ffffff;
    color: #24415f;
}

.challenge-participants-action-btn.success,
.challenge-participants-confirm-btn {
    border-color: #13a86b;
    background: linear-gradient(180deg, #22c982 0%, #13a86b 100%);
    color: #fff;
}

.challenge-participants-action-btn.danger,
.challenge-participants-confirm-btn.danger {
    border-color: #dc2626;
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
}

.challenge-participants-action-btn:disabled,
.challenge-participants-confirm-btn:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.challenge-participants-action-modal {
    width: 560px;
    max-width: calc(100vw - 28px);
}

.challenge-participants-action-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.challenge-participants-action-summary > div {
    display: grid;
    gap: 2px;
    border: 1px solid #dce7f3;
    border-radius: 6px;
    background: #f8fbff;
    padding: 8px;
    min-width: 0;
}

.challenge-participants-action-summary span,
.challenge-participants-action-reason span {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.challenge-participants-action-summary strong {
    color: #172235;
    font-size: 0.84rem;
    overflow-wrap: anywhere;
}

.challenge-participants-action-warning {
    border: 1px solid #bee7d1;
    border-radius: 7px;
    background: #effcf5;
    color: #14532d;
    font-size: 0.82rem;
    line-height: 1.35;
    padding: 9px;
}

.challenge-participants-action-warning.danger {
    border-color: #fecaca;
    background: #fff1f2;
    color: #991b1b;
}

.challenge-participants-action-reason {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.challenge-participants-action-reason textarea {
    min-height: 84px;
    resize: vertical;
}

@media (max-width: 1200px) {
    .challenge-board,
    .challenge-panels,
    .challenge-decision-strip,
    .challenge-focus-card,
    .challenge-join-layout,
    .challenge-join-actions {
        grid-template-columns: 1fr;
    }

    .challenge-detail-grid,
    .challenge-estimate-grid,
    .challenge-card-metrics,
    .challenge-focus-side,
    .challenge-entry-metrics,
    .challenge-confirm-summary,
    .my-challenges-summary,
    .challenge-participants-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .challenge-participants-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .challenge-participants-search {
        width: 100%;
    }

    .challenge-participants-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .challenge-participants-action-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .challenge-participants-action-buttons {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .challenge-header,
    .challenge-card-head,
    .challenge-detail-head,
    .challenge-panel-head,
    .challenge-mtl-stage-head {
        flex-direction: column;
        align-items: stretch;
    }

    .challenge-tabs {
        width: 100%;
    }

    .challenge-tab {
        flex: 1 0 auto;
    }

    .challenge-card {
        min-height: 0;
        padding: 14px;
    }

    .challenge-card-art {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        height: 148px;
        order: -1;
    }

    .challenge-card-text,
    .challenge-card-metrics.mini {
        max-width: 100%;
        width: 100%;
    }

    .challenge-detail-grid,
    .challenge-estimate-grid,
    .challenge-card-metrics,
    .challenge-focus-side,
    .challenge-entry-metrics,
    .challenge-form-grid,
    .challenge-confirm-summary,
    .my-challenges-summary,
    .challenge-participants-summary {
        grid-template-columns: 1fr;
    }

    .my-challenges-actions,
    .challenge-confirm-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .challenge-participants-tabs {
        display: grid;
        grid-template-columns: 1fr;
    }

    .challenge-participants-challenge-tabs {
        grid-template-columns: 1fr;
    }

    .challenge-participants-tab {
        justify-content: space-between;
        width: 100%;
    }

    .challenge-participants-detail-grid {
        grid-template-columns: 1fr;
    }

    .challenge-participants-action-summary {
        grid-template-columns: 1fr;
    }
}

.admin-challenge-surface {
    margin-top: 14px;
}

.admin-challenge-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.admin-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border: 1px solid #cfd7e4;
    border-radius: 999px;
    background: #f5f8ff;
    color: #2f4d7a;
    font-size: 12px;
}

.admin-source-grid tbody tr.selected {
    background: #edf4ff;
}

.admin-source-grid tbody tr {
    cursor: pointer;
}

.admin-verify-box {
    margin-top: 12px;
    border: 1px solid #d8dce3;
    background: #f8fafc;
    padding: 10px;
}

.admin-verify-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.admin-verify-row label {
    width: 110px;
    flex: 0 0 110px;
}

.admin-verify-actions {
    margin-top: 10px;
}

.challenge-pools-page {
    display: grid;
    gap: 16px;
}

.challenge-pools-header,
.challenge-pool-card-head,
.challenge-pools-add-card,
.challenge-pools-add-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.challenge-pools-header,
.challenge-pool-card-head,
.challenge-pools-add-card {
    justify-content: space-between;
}

.challenge-pools-title {
    margin: 0;
    color: #162236;
    font-size: 1.35rem;
    font-weight: 750;
}

.challenge-pools-main-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.challenge-pools-main-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    border: 1px solid #9fd6be;
    background: linear-gradient(180deg, #effdf6, #dff7eb);
    color: #105b38;
    padding: 12px 14px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.challenge-pools-main-tab strong {
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
}

.challenge-pools-main-tab.destination {
    border-color: #a9c9f5;
    background: linear-gradient(180deg, #f0f7ff, #e2efff);
    color: #174e91;
}

.challenge-pools-main-tab:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.challenge-pools-main-tab.active {
    border-color: #0f8f5f;
    background: linear-gradient(180deg, #1fbe77, #12945f);
    color: #ffffff;
    font-weight: 950;
    box-shadow: 0 8px 18px rgba(18, 148, 95, 0.2);
}

.challenge-pools-main-tab.destination.active {
    border-color: #1e88e5;
    background: linear-gradient(180deg, #238cf0, #1473cf);
    box-shadow: 0 8px 18px rgba(20, 115, 207, 0.18);
}

.challenge-pools-main-tab.active strong {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.challenge-pools-tab-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    border-bottom: 1px solid #d8dce3;
    padding-bottom: 8px;
}

.challenge-pools-tab-row.destination-scope {
    width: calc(50% - 5px);
    margin-left: calc(50% + 5px);
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
}

.challenge-pools-tab-row.destination-scope .challenge-pools-subtabs {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    overflow: visible;
}

.challenge-pools-tab-row.destination-scope .challenge-pools-add-group {
    flex: 0 0 auto;
    flex-wrap: nowrap;
}

.challenge-pools-tab-row.destination-scope .challenge-pools-add-primary {
    min-width: 206px;
}

.challenge-pools-tab-row.destination-scope .challenge-pools-add-bulk {
    min-width: 166px;
}

.challenge-pools-subtabs {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
}

.challenge-pools-subtab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid #d8dce3;
    background: #ffffff;
    color: #334155;
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
}

.challenge-pools-subtab span {
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e2e8f0;
    color: #0f172a;
    font-size: 0.78rem;
}

.challenge-pools-subtab.active {
    border-color: #12a063;
    background: #ecfdf5;
    color: #047857;
}

.challenge-pools-subtab.active span {
    background: #12a063;
    color: #ffffff;
}

.challenge-pools-subtab.destination.active {
    border-color: #1e88e5;
    background: #eff6ff;
    color: #1d4ed8;
}

.challenge-pools-subtab.destination.active span {
    background: #1e88e5;
    color: #ffffff;
}

.challenge-pools-add-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.challenge-pools-add-primary {
    min-width: 218px;
    min-height: 38px;
    border-color: #c96c09;
    background: linear-gradient(180deg, #f59e0b, #d97706);
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 8px 16px rgba(217, 119, 6, 0.18);
}

.challenge-pools-add-primary:hover:not(:disabled) {
    border-color: #a45606;
    background: linear-gradient(180deg, #f8ad20, #c96705);
}

.challenge-pools-add-primary.mt5 {
    border-color: #1d74c8;
    background: linear-gradient(180deg, #2794f2, #176cc1);
    box-shadow: 0 8px 16px rgba(29, 116, 200, 0.16);
}

.challenge-pools-add-primary.mt5:hover:not(:disabled) {
    border-color: #15599b;
    background: linear-gradient(180deg, #36a5ff, #155faf);
}

.challenge-pools-add-bulk {
    min-width: 156px;
    min-height: 38px;
    border-color: #b86509;
    background: #fff7ed;
    color: #9a4b05;
    font-weight: 850;
}

.challenge-pools-add-bulk:hover:not(:disabled) {
    border-color: #9a4b05;
    background: #ffedd5;
}

.challenge-pools-add-bulk.mt5 {
    border-color: #1d74c8;
    background: #eff6ff;
    color: #155fae;
}

.challenge-pools-add-bulk.mt5:hover:not(:disabled) {
    border-color: #15599b;
    background: #dbeafe;
}

.challenge-pools-symbol-settings {
    min-width: 172px;
    min-height: 38px;
    border-color: #0f766e;
    background: #ecfdf5;
    color: #075985;
    font-weight: 900;
}

.challenge-pools-symbol-settings:hover:not(:disabled) {
    border-color: #0e7490;
    background: #cffafe;
}

.challenge-pools-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.challenge-pool-metric {
    border: 1px solid #d8dce3;
    background: linear-gradient(180deg, #ffffff, #f7f9fc);
    padding: 12px;
}

.challenge-pool-metric span {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.challenge-pool-metric strong {
    display: block;
    margin-top: 6px;
    color: #162236;
    font-size: 1.5rem;
    line-height: 1;
}

.challenge-pool-metric.warn {
    border-color: #f4c46b;
    background: linear-gradient(180deg, #fffaf0, #fff7df);
}

.challenge-pools-add-card,
.challenge-pool-card {
    border: 1px solid #d8dce3;
    background: #f8fafc;
    padding: 12px;
}

.challenge-pools-add-form {
    display: grid;
    grid-template-columns: minmax(280px, 520px) auto;
    align-items: center;
    gap: 10px;
}

.challenge-pools-add-actions .btn-plain {
    min-width: 180px;
}

.challenge-pools-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}

.challenge-pool-card {
    min-width: 0;
}

.challenge-pool-empty {
    border: 1px dashed #cbd5e1;
    color: #64748b;
    padding: 16px;
    background: #ffffff;
}

.challenge-pool-platform-lists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(620px, 1fr));
    gap: 12px;
}

.challenge-pool-platform-card {
    min-width: 0;
    border: 1px solid #dde4ee;
    background: #ffffff;
    padding: 10px;
}

.challenge-pool-platform-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.challenge-pool-platform-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #162236;
}

.challenge-pool-platform-title strong {
    font-size: 0.92rem;
}

.challenge-pool-platform-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 24px;
    padding: 3px 8px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
}

.challenge-pool-platform-badge.mt4 {
    background: linear-gradient(180deg, #f59e0b, #d97706);
}

.challenge-pool-platform-badge.mt5 {
    background: linear-gradient(180deg, #2794f2, #176cc1);
}

.challenge-pools-grid {
    margin-top: 10px;
}

.challenge-pools-reset-box {
    background: #ffffff;
}

.challenge-pool-account-modal {
    width: min(520px, calc(100vw - 32px));
}

.challenge-pool-account-body {
    display: grid;
    gap: 10px;
}

.challenge-pool-account-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
}

.challenge-pool-form-column {
    display: grid;
    gap: 12px;
    align-content: start;
}

.challenge-pool-account-form .form-row {
    grid-template-columns: 86px minmax(0, 1fr);
    margin-bottom: 0;
}

.challenge-pool-account-form .input {
    width: 100%;
    box-sizing: border-box;
}

.challenge-pool-account-form .server-actions .btn-plain {
    min-width: 132px;
    align-self: flex-start;
}

.challenge-pool-bulk-modal {
    width: min(820px, calc(100vw - 32px));
}

.challenge-pool-bulk-body {
    display: grid;
    gap: 12px;
}

.challenge-pool-bulk-server {
    max-width: 560px;
}

.challenge-pool-bulk-server .form-row {
    grid-template-columns: 86px minmax(0, 1fr);
    margin-bottom: 0;
}

.challenge-pool-bulk-paste {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
}

.challenge-pool-bulk-paste label {
    padding-top: 5px;
}

.challenge-pool-bulk-paste textarea {
    width: 100%;
    min-height: 72px;
    resize: vertical;
    font-family: Consolas, monospace;
    font-size: 0.86rem;
}

.challenge-pool-bulk-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #475569;
    font-size: 0.85rem;
}

.challenge-pool-bulk-grid-wrap {
    max-height: 320px;
    overflow: auto;
}

.challenge-pool-bulk-grid {
    min-width: 680px;
}

.challenge-pool-bulk-grid th:nth-child(1),
.challenge-pool-bulk-grid th:nth-child(2) {
    width: 30%;
}

.challenge-pool-bulk-grid th:nth-child(4) {
    width: 92px;
}

.challenge-pool-bulk-grid .input {
    width: 100%;
    box-sizing: border-box;
}

.challenge-pool-bulk-remove-cell {
    text-align: right;
}

.challenge-pool-bulk-remove-cell .btn-plain {
    padding: 4px 8px;
    font-size: 0.78rem;
}

.challenge-pool-bulk-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid #cfd7e4;
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 800;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.challenge-pool-bulk-status.busy {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.challenge-pool-bulk-status.ok {
    border-color: #86efac;
    background: #ecfdf5;
    color: #047857;
}

.challenge-pool-bulk-status.error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.challenge-source-symbols-modal {
    width: 760px;
}

.challenge-source-symbols-body {
    display: grid;
    gap: 12px;
}

.challenge-source-symbols-summary,
.challenge-source-symbols-help {
    color: #475569;
    font-size: 0.86rem;
    line-height: 1.45;
}

.challenge-source-symbols-label {
    color: #0f172a;
    font-weight: 800;
}

.challenge-source-symbols-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.challenge-source-symbols-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 310px;
}

.challenge-source-symbols-search span {
    color: #0f172a;
    font-weight: 700;
}

.challenge-source-symbols-search .input {
    flex: 1 1 auto;
    min-width: 0;
}

.challenge-source-symbols-count {
    margin-left: auto;
    padding: 4px 9px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 800;
}

.challenge-source-symbols-list-wrap {
    max-height: 360px;
    overflow: auto;
    border: 1px solid #cbd5e1;
    background: #ffffff;
}

.challenge-source-symbols-grid {
    width: 100%;
}

.challenge-source-symbols-grid thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.challenge-source-symbols-grid tbody tr.is-selected {
    background: #ecfdf5;
}

.challenge-source-symbols-grid tbody tr.is-selected td {
    color: #064e3b;
    font-weight: 600;
}

.challenge-source-symbols-select-cell {
    width: 72px;
    text-align: center;
}

.challenge-source-symbols-symbol {
    width: 140px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.challenge-source-symbols-remove-cell {
    width: 56px;
    text-align: center;
}

.challenge-source-symbols-remove {
    width: 32px;
    height: 28px;
    padding: 0;
}

.challenge-source-symbols-remove:disabled {
    opacity: 0.35;
}

.challenge-source-symbols-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.challenge-source-symbols-custom {
    width: 150px;
    text-transform: uppercase;
}

.challenge-pool-endpoint-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 8px;
    width: 100%;
}

.challenge-pool-endpoint-row .input.port {
    min-width: 0;
}

.challenge-pools-save-pool {
    min-width: 150px;
    border-color: #0f8f5f;
    background: linear-gradient(180deg, #23bd75, #139760);
    color: #ffffff;
    font-weight: 900;
}

.challenge-pool-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border: 1px solid #cfd7e4;
    border-radius: 999px;
    color: #334155;
    background: #f8fafc;
    font-size: 0.76rem;
    font-weight: 700;
}

.challenge-pool-status.is-available {
    border-color: #a7f3d0;
    color: #047857;
    background: #ecfdf5;
}

.challenge-pool-status.is-reserved {
    border-color: #bfdbfe;
    color: #1d4ed8;
    background: #eff6ff;
}

.challenge-pool-status.is-pending {
    border-color: #fcd34d;
    color: #92400e;
    background: #fffbeb;
}

.app-modal-telegram-admin {
    width: min(760px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
}

.telegram-admin-body {
    display: grid;
    gap: 12px;
}

.telegram-global-card {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #d3dbe6;
    background: #f8fbff;
    padding: 12px;
}

.telegram-global-check {
    cursor: pointer;
}

.telegram-global-card.is-disabled {
    border-color: #e5c4c4;
    background: #fff5f5;
}

.telegram-global-checkbox {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

.telegram-global-main {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.telegram-global-main strong {
    color: #13243b;
    font-size: 1rem;
}

.telegram-global-main small {
    color: #5f6f84;
    font-size: 0.82rem;
}

.telegram-status-pill {
    justify-self: start;
    border: 1px solid #afd8bf;
    background: #e9f8ef;
    color: #126835;
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: 700;
}

.telegram-global-card.is-disabled .telegram-status-pill {
    border-color: #e3b2b2;
    background: #ffe3e3;
    color: #8a1b1b;
}

.telegram-global-toggle {
    min-width: 170px;
    border-color: #8bbdec;
    background: #e5f2ff;
    color: #154f88;
    font-weight: 600;
}

.btn-plain.danger.telegram-global-toggle {
    border-color: #e09a9a;
    background: #ffe5e5;
    color: #8a1b1b;
}

.telegram-admin-section {
    border-top: 1px solid #d8dce3;
    padding-top: 12px;
}

.telegram-admin-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.telegram-admin-section-head .simple-title {
    margin-bottom: 0;
}

.telegram-settings-grid {
    display: grid;
    gap: 8px;
}

.telegram-admin-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    font-size: 0.85rem;
}

.telegram-admin-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.app-modal-telegram-admin .admin-verify-row {
    margin-top: 0;
}

.app-modal-telegram-admin .admin-verify-row .input {
    flex: 1 1 auto;
    min-width: 0;
}

.app-modal-telegram-admin .status-ok {
    color: #087947;
}

.app-modal-telegram-admin .status-warn {
    color: #9a5b00;
}

.telegram-users-grid {
    min-width: 620px;
}

/* Mobile-safe responsive adjustments for the authenticated app shell */
.topbar-tabs,
.topbar-actions {
    min-width: 0;
}

.topbar-tabs .top-tab {
    white-space: nowrap;
}

.grid-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 1500px) {
    .topbar {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 12px;
    }

    .topbar-tabs {
        order: 3;
        flex: 1 1 100%;
        gap: 6px;
        margin-left: 0;
        overflow-x: auto;
        padding-bottom: 2px;
    }
}

@media (max-width: 1100px) {
    .topbar {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 12px;
    }

    .top-tab-accounts {
        width: auto;
        min-width: 120px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .topbar-tabs {
        order: 3;
        flex: 1 1 100%;
        gap: 6px;
        margin-left: 0;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .workspace-main {
        padding: 12px 14px;
    }

    .copy-grid {
        min-width: 1180px;
    }

    .analysis-table,
    .import-grid,
    .server-grid,
    .admin-source-grid,
    .selection-grid {
        min-width: 560px;
    }

    .challenge-pools-grid {
        min-width: 920px;
    }

    .challenge-pools-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .challenge-pools-main-tabs,
    .challenge-pools-add-card,
    .challenge-pools-add-form,
    .challenge-pools-columns {
        grid-template-columns: 1fr;
    }

    .challenge-pools-add-card,
    .challenge-pools-add-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .challenge-pools-tab-row {
        gap: 24px;
    }
}

@media (max-width: 900px) {
    .accounts-panel {
        height: auto;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid #1a2634;
    }

    .panel-list {
        max-height: 240px;
    }

    .panel-footer {
        position: static;
    }

    .workspace-main,
    .workspace-main.full {
        border-left: none;
    }

    .simple-surface {
        padding: 14px;
    }

    .analysis-header {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .analyze-btn {
        margin-left: 0;
    }

    .analysis-account {
        width: 100%;
        margin-left: 0;
    }

    .analysis-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .analysis-lower,
    .analysis-bottom {
        grid-template-columns: 1fr;
    }

    .analysis-recent,
    .analysis-periods {
        overflow-x: auto;
    }

    .pie-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .copy-toolbar {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .toolbar-left {
        flex-wrap: wrap;
    }

    .toolbar-right {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .topbar {
        padding: 10px;
        align-items: stretch;
        gap: 8px;
    }

    .topbar-primary {
        width: 100%;
        justify-content: space-between;
    }

    .topbar-menu-btn {
        display: inline-flex;
    }

    .top-tab-accounts {
        min-width: 0;
        width: auto;
    }

    .topbar-tabs,
    .topbar-actions {
        display: none;
        margin-left: 0;
        width: 100%;
    }

    .topbar-tabs.mobile-open {
        display: flex;
        flex-direction: column;
        gap: 6px;
        overflow: visible;
        padding-bottom: 0;
    }

    .topbar-actions.mobile-open {
        display: flex;
        justify-content: space-between;
    }

    .top-tab {
        padding: 6px 14px;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
    }

    .accounts-blank {
        height: auto;
        min-height: 50vh;
    }

    .analysis-cards {
        grid-template-columns: 1fr;
    }

    .app-modal {
        width: min(380px, calc(100vw - 20px));
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
    }

    .app-modal-wide,
    .app-modal-large,
    .app-modal-copy,
    .app-modal-map,
    .app-modal-preferred,
    .app-modal-log,
    .app-modal-analysis,
    .app-modal-telegram-admin,
    .app-modal-servers,
    .app-modal-server-edit,
    .app-modal-security,
    .app-modal-broker,
    .app-modal-selection {
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
    }

    .app-modal-header,
    .app-modal-footer {
        padding: 10px 12px;
    }

    .app-modal-body {
        padding: 12px;
    }

    .form-row,
    .copy-row,
    .copy-row.inline {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .account-footer,
    .copy-footer,
    .selection-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .account-footer-actions,
    .copy-footer-actions,
    .server-actions,
    .pref-actions {
        flex-wrap: wrap;
    }

    .copy-platform-row,
    .map-toolbar,
    .pref-search,
    .import-search,
    .server-source,
    .broker-search,
    .selection-search {
        flex-wrap: wrap;
        align-items: stretch;
    }

    .platform-label,
    .platform-or {
        width: auto;
        text-align: left;
    }

    .input.small,
    .input.medium,
    .input.platform {
        width: 100%;
    }

    .input.tiny {
        width: 100%;
        max-width: 120px;
    }

    .pref-body {
        flex-direction: column;
    }

    .pref-move {
        flex-direction: row;
        justify-content: center;
        margin-top: 0;
    }

    .simple-buttons {
        width: 100%;
    }

    .btn-plain.wide {
        width: 100%;
    }

    .challenge-header,
    .admin-challenge-actions,
    .challenge-pools-header,
    .challenge-pool-card-head,
    .admin-verify-row,
    .admin-verify-actions {
        flex-wrap: wrap;
    }

    .challenge-pools-metrics {
        grid-template-columns: 1fr;
    }

    .challenge-pools-main-tabs {
        gap: 8px;
    }

    .challenge-pools-main-tab {
        min-height: 48px;
        padding: 10px 12px;
    }

    .challenge-pools-subtabs {
        align-items: stretch;
        flex-direction: column;
        overflow: visible;
    }

    .challenge-pools-tab-row {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .challenge-pools-tab-row.destination-scope {
        width: 100%;
        margin-left: 0;
    }

    .challenge-pools-add-group {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .challenge-pools-subtab {
        width: 100%;
        justify-content: space-between;
    }

    .challenge-pools-header .btn-plain,
    .challenge-pools-add-actions .btn-plain,
    .challenge-pools-add-primary,
    .challenge-pools-add-bulk {
        width: 100%;
    }

    .challenge-pool-platform-lists,
    .challenge-pool-account-form,
    .challenge-pool-endpoint-row {
        grid-template-columns: 1fr;
    }

    .challenge-pool-account-form .form-row {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .challenge-pool-bulk-server,
    .challenge-pool-bulk-paste {
        max-width: none;
    }

    .challenge-pool-bulk-server .form-row,
    .challenge-pool-bulk-paste {
        grid-template-columns: 1fr;
    }

    .challenge-pool-bulk-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .telegram-global-card,
    .telegram-admin-section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .telegram-global-toggle,
    .telegram-admin-actions .btn-plain {
        width: 100%;
    }

    .telegram-users-grid {
        min-width: 520px;
    }

    .challenge-section-marker {
        font-size: 1.15rem;
        padding: 4px 8px;
    }

    .challenge-card-head,
    .challenge-panel-head {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .challenge-calc-label,
    .challenge-calc-caption {
        font-size: 0.9rem !important;
    }

    .challenge-calc-box {
        min-width: 86px;
        height: 30px;
        font-size: 1.22rem;
        padding: 0 8px;
    }

    .challenge-card.pro .challenge-calc-box {
        min-width: 82px;
        height: 30px;
        font-size: 1.12rem;
    }

    .challenge-calc-master-range,
    .challenge-card.pro .challenge-calc-master-range {
        white-space: normal;
        font-size: 0.84rem;
        line-height: 1.35;
    }
}

@media (max-width: 560px) {
    .topbar-actions {
        gap: 8px;
    }

    .user-link {
        max-width: calc(100vw - 140px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .panel-tabs {
        gap: 6px;
    }

    .panel-search {
        margin: 0 10px 10px;
    }

    .panel-list {
        padding: 6px 10px;
        max-height: 220px;
    }

    .analysis-header {
        padding: 8px;
    }
}

.homev3-shell {
    --homev3-bg: #06101a;
    --homev3-panel: rgba(7, 18, 31, 0.84);
    --homev3-panel-soft: rgba(9, 24, 39, 0.72);
    --homev3-border: rgba(103, 211, 227, 0.18);
    --homev3-gold: #f2b741;
    --homev3-cyan: #42d6db;
    --homev3-text: #eef6fb;
    --homev3-muted: #9bb0bf;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: 28px 0 56px;
    background:
        radial-gradient(circle at top, rgba(28, 103, 118, 0.22), transparent 32%),
        radial-gradient(circle at bottom right, rgba(201, 141, 38, 0.18), transparent 24%),
        linear-gradient(180deg, #04111b 0%, #07131d 52%, #09131b 100%);
    color: var(--homev3-text);
}

.homev3-bg-grid,
.homev3-bg-glow {
    pointer-events: none;
    position: absolute;
    inset: 0;
}

.homev3-bg-grid {
    opacity: 0.14;
    background-image:
        linear-gradient(rgba(96, 166, 184, 0.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 166, 184, 0.14) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 95%);
}

.homev3-bg-glow {
    filter: blur(80px);
    opacity: 0.48;
}

.homev3-bg-glow.glow-left {
    top: 160px;
    left: -120px;
    width: 320px;
    height: 320px;
    background: rgba(59, 208, 217, 0.2);
}

.homev3-bg-glow.glow-right {
    top: 320px;
    right: -120px;
    width: 360px;
    height: 360px;
    background: rgba(242, 183, 65, 0.15);
}

.homev3-topbar,
.homev3-hero,
.homev3-services,
.homev3-outcomes,
.homev3-human-band,
.homev3-cta-band {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.homev3-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.homev3-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--homev3-text);
    text-decoration: none;
}

.homev3-brand img {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
}

.homev3-brand strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.homev3-brand span {
    display: block;
    margin-top: 3px;
    color: var(--homev3-muted);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.homev3-topbar-actions,
.homev3-cta-row,
.homev3-cta-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.homev3-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: var(--homev3-text);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.homev3-btn:hover {
    transform: translateY(-1px);
}

.homev3-btn.primary {
    background: linear-gradient(135deg, #2fd2d8, #1378c5);
    box-shadow: 0 18px 40px rgba(23, 121, 197, 0.25);
}

.homev3-btn.secondary,
.homev3-btn.ghost {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
}

.homev3-btn.large {
    min-width: 210px;
}

.homev3-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
    gap: 42px;
    align-items: center;
    margin-bottom: 34px;
}

.homev3-copy {
    max-width: 580px;
}

.homev3-eyebrow,
.homev3-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #95dde1;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.homev3-eyebrow::before,
.homev3-section-kicker::before {
    content: "";
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, rgba(66, 214, 219, 0.15), rgba(66, 214, 219, 0.9));
}

.homev3-copy h1,
.homev3-section-head h2,
.homev3-human-band-copy h2,
.homev3-cta-band h2 {
    margin: 0;
    color: #f5fbff;
    line-height: 1.06;
    letter-spacing: -0.03em;
}

.homev3-copy h1 {
    font-size: clamp(2.8rem, 5vw, 4.7rem);
}

.homev3-lead,
.homev3-section-head p,
.homev3-human-band-copy p {
    margin: 18px 0 0;
    color: var(--homev3-muted);
    font-size: 1.02rem;
    line-height: 1.75;
}

.homev3-point-list {
    display: grid;
    gap: 14px;
    margin: 28px 0 22px;
}

.homev3-point-list article,
.homev3-service-grid article,
.homev3-outcome-list article,
.homev3-role-card {
    border: 1px solid var(--homev3-border);
    background: var(--homev3-panel);
    box-shadow: 0 26px 64px rgba(0, 0, 0, 0.28);
}

.homev3-point-list article {
    padding: 18px 20px;
    border-radius: 24px;
}

.homev3-point-list span,
.homev3-role-card span {
    display: block;
    margin-bottom: 8px;
    color: #7fd0d8;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.homev3-point-list strong,
.homev3-service-grid strong,
.homev3-outcome-list strong,
.homev3-role-card strong {
    display: block;
    font-size: 1.06rem;
    line-height: 1.45;
}

.homev3-point-list p,
.homev3-service-grid p,
.homev3-outcome-list p,
.homev3-role-card p {
    margin: 10px 0 0;
    color: var(--homev3-muted);
    line-height: 1.7;
}

.homev3-chip-row,
.homev3-human-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.homev3-chip-row span,
.homev3-human-list span {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #dce8f1;
    font-size: 0.88rem;
}

.homev3-visual {
    position: relative;
    display: grid;
    gap: 20px;
}

.homev3-splash-card,
.homev3-human-card,
.homev3-outcome-panel,
.homev3-human-band,
.homev3-cta-band {
    border: 1px solid var(--homev3-border);
    background: var(--homev3-panel-soft);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
}

.homev3-splash-card {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    padding: 18px;
}

.homev3-splash-card img,
.homev3-human-card img,
.homev3-human-band-media img {
    display: block;
    width: 100%;
    height: auto;
}

.homev3-splash-badge {
    position: absolute;
    right: 26px;
    bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.homev3-splash-badge span {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(4, 17, 28, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #eef5f9;
    font-size: 0.84rem;
    font-weight: 700;
}

.homev3-human-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    overflow: hidden;
    border-radius: 28px;
    align-items: stretch;
}

.homev3-human-card img {
    height: 100%;
    object-fit: cover;
}

.homev3-human-copy {
    padding: 22px 24px 22px 0;
    align-self: center;
}

.homev3-human-copy strong {
    display: block;
    font-size: 1.16rem;
}

.homev3-human-copy p {
    margin: 10px 0 0;
    color: var(--homev3-muted);
    line-height: 1.7;
}

.homev3-services,
.homev3-outcomes,
.homev3-human-band {
    margin-top: 34px;
}

.homev3-section-head {
    max-width: 620px;
    margin-bottom: 22px;
}

.homev3-section-head.compact {
    margin-bottom: 18px;
}

.homev3-section-head h2,
.homev3-human-band-copy h2,
.homev3-cta-band h2 {
    font-size: clamp(2rem, 3.1vw, 3rem);
}

.homev3-service-grid,
.homev3-role-grid,
.homev3-outcome-list {
    display: grid;
    gap: 16px;
}

.homev3-service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.homev3-service-grid article,
.homev3-role-card {
    border-radius: 28px;
    padding: 24px;
}

.homev3-outcomes {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 20px;
}

.homev3-outcome-panel {
    border-radius: 32px;
    padding: 28px;
}

.homev3-role-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.homev3-role-card.accent {
    background:
        linear-gradient(180deg, rgba(19, 42, 58, 0.95), rgba(10, 23, 36, 0.95)),
        linear-gradient(135deg, rgba(66, 214, 219, 0.18), rgba(242, 183, 65, 0.08));
}

.homev3-human-band {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
    overflow: hidden;
    border-radius: 34px;
    padding: 22px;
}

.homev3-human-band-media img {
    height: 100%;
    min-height: 440px;
    object-fit: cover;
    border-radius: 26px;
}

.homev3-human-band-copy {
    padding: 20px 10px 20px 0;
    align-self: center;
}

.homev3-cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 34px;
    padding: 28px 32px;
    border-radius: 32px;
}

.homev3-cta-band > div:first-child {
    max-width: 700px;
}

@media (max-width: 1120px) {
    .homev3-hero,
    .homev3-outcomes,
    .homev3-human-band {
        grid-template-columns: 1fr;
    }

    .homev3-service-grid,
    .homev3-role-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .homev3-copy,
    .homev3-section-head,
    .homev3-cta-band > div:first-child {
        max-width: none;
    }
}

@media (max-width: 760px) {
    .homev3-shell {
        padding-top: 18px;
    }

    .homev3-topbar,
    .homev3-topbar-actions,
    .homev3-cta-row,
    .homev3-cta-actions,
    .homev3-human-card,
    .homev3-cta-band {
        flex-direction: column;
        align-items: stretch;
    }

    .homev3-topbar,
    .homev3-hero,
    .homev3-services,
    .homev3-outcomes,
    .homev3-human-band,
    .homev3-cta-band {
        width: min(100%, calc(100% - 24px));
    }

    .homev3-service-grid,
    .homev3-role-grid {
        grid-template-columns: 1fr;
    }

    .homev3-human-card {
        display: block;
    }

    .homev3-human-copy,
    .homev3-human-band-copy {
        padding: 20px;
    }

    .homev3-human-band {
        padding: 14px;
    }

    .homev3-human-band-media img {
        min-height: 280px;
    }

    .homev3-btn,
    .homev3-btn.large {
        width: 100%;
        min-width: 0;
    }

    .homev3-splash-badge {
        position: static;
        justify-content: flex-start;
        margin-top: 14px;
    }
}

.admin-alerts-surface {
    max-width: 1500px;
}

.admin-alerts-header,
.admin-alerts-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-alerts-counts {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.admin-alerts-counts span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 8px;
    background: rgba(239, 246, 255, 0.82);
    color: #334155;
    font-size: 0.84rem;
    font-weight: 700;
}

.admin-alerts-counts strong {
    color: #0f172a;
    font-size: 0.94rem;
}

.admin-alerts-actions,
.admin-alerts-filters {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-alerts-filters {
    margin: 16px 0;
    justify-content: flex-start;
}

.admin-alerts-filters .input {
    width: auto;
    min-width: 160px;
}

.admin-alerts-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 700;
}

.admin-alerts-panel {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.admin-alerts-grid-wrap {
    overflow-x: auto;
}

.admin-alerts-table {
    min-width: 1120px;
    font-family: "Segoe UI", Arial, sans-serif;
    font-variant-numeric: tabular-nums;
}

.admin-alerts-table th {
    white-space: nowrap;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 800;
}

.admin-alerts-table td {
    vertical-align: middle;
    font-size: 0.88rem;
}

.admin-alerts-row.unread td {
    background: #f8fafc;
}

.admin-alerts-row.critical td:first-child {
    box-shadow: inset 4px 0 0 #ef4444;
}

.admin-alerts-time,
.admin-alerts-kind,
.admin-alerts-symbol,
.admin-alerts-ticket {
    white-space: nowrap;
}

.admin-alerts-copy,
.admin-alerts-reason {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.admin-alerts-copy strong,
.admin-alerts-reason strong {
    color: #0f172a;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-alerts-copy span,
.admin-alerts-reason span,
.admin-alerts-reason small {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-alerts-severity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-alerts-severity.critical {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.admin-alerts-severity.warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.admin-alerts-row-actions {
    width: 84px;
    text-align: right;
}

.btn-plain.small {
    min-height: 30px;
    padding: 5px 10px;
    font-size: 0.82rem;
}

.btn-plain.danger {
    border-color: #fecaca;
    color: #991b1b;
    background: #fff5f5;
}

.btn-plain.danger:hover:not(:disabled) {
    background: #fee2e2;
}

@media (max-width: 760px) {
    .admin-alerts-header,
    .admin-alerts-actions,
    .admin-alerts-filters {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-alerts-actions .btn-plain,
    .admin-alerts-filters .input,
    .admin-alerts-filters .btn-plain,
    .admin-alerts-checkbox {
        width: 100%;
    }
}
