﻿:root {
    --bg: #0d121a;
    --bg-soft: #0d121a;
    --card: #141920;
    --card-soft: #181f28;
    --line: #2a3240;
    --line-soft: #242b36;
    --text: #e9eef7;
    --muted: #98a5b8;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --danger: #ef4444;
    --success-bg: #123524;
    --success-line: #285a3f;
    --success-text: #86efac;
    --team-tier-stroke: #9ec4e9;
    --team-tier-text: #eaf4ff;
}

* { box-sizing: border-box; }

html {
    background-color: #0d121a;
    background-image:
        radial-gradient(1100px 620px at 12% 8%, rgba(24, 58, 96, 0.14), transparent 66%),
        radial-gradient(980px 640px at 88% 86%, rgba(24, 58, 96, 0.14), transparent 72%),
        linear-gradient(180deg, #101723 0%, #0d121a 100%);
    background-repeat: no-repeat;
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: transparent;
    min-height: 100%;
}

.container {
    max-width: 1120px;
    margin: 0 auto 32px;
    padding: 0 24px;
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)), var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.38);
}


.auth-card {
    max-width: 920px;
    margin: 125px auto 175px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01)), var(--card);
}

@media (max-width: 980px) {
    .auth-card {
        max-width: calc(100% - 16px);
        margin: 32px 8px 48px;
    }
}

.account-card {
    max-width: 1080px;
    margin: 0 auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

@media (max-width: 980px) {
    .account-card {
        max-width: 100%;
    }
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

h1, h2, h3 { margin: 0; color: #f3f6fc; }
.muted { color: var(--muted); }

.dashboard-lang-wrap {
    display: none;
}

.account-card h1[data-i18n="dashboard_title"] {
    font-family: "Russo One", sans-serif;
    letter-spacing: 0.01em;
}

.dashboard-subscription-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 10px;
}

.dashboard-subscription-summary {
    display: grid;
    justify-items: center;
    gap: 4px;
}

.dashboard-subscription-summary small {
    color: #8295aa;
    font-family: "Manrope", sans-serif;
    font-size: 12px;
    line-height: 1.2;
}

.dashboard-discount-badge {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid rgba(244, 217, 148, .78);
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(112, 79, 22, .2), rgba(51, 38, 15, .44));
    box-shadow: inset 0 0 9px rgba(255, 228, 158, .08), 0 0 12px rgba(235, 182, 62, .14);
    color: #f4d994;
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1;
    text-shadow: 0 0 10px rgba(244, 217, 148, .28);
    white-space: nowrap;
}

.dashboard-subscription-badge {
    --dashboard-plan-accent: #45bdff;
    --dashboard-plan-line: rgba(69, 189, 255, .84);
    --dashboard-plan-glow: rgba(49, 174, 255, .16);
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid var(--dashboard-plan-line);
    border-radius: 11px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--dashboard-plan-accent) 20%, transparent), rgba(9, 19, 31, .44));
    box-shadow: inset 0 0 9px color-mix(in srgb, var(--dashboard-plan-accent) 10%, transparent), 0 0 12px var(--dashboard-plan-glow);
    color: var(--dashboard-plan-accent);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 0 10px color-mix(in srgb, var(--dashboard-plan-accent) 48%, transparent);
}

.dashboard-subscription-badge.plan-lite {
    --dashboard-plan-accent: #36b8ff;
    --dashboard-plan-line: rgba(54, 184, 255, .86);
    --dashboard-plan-glow: rgba(32, 157, 255, .15);
}

.dashboard-subscription-badge.plan-standard {
    --dashboard-plan-accent: #28d7c7;
    --dashboard-plan-line: rgba(40, 215, 199, .84);
    --dashboard-plan-glow: rgba(25, 208, 186, .14);
}

.dashboard-subscription-badge.plan-premium {
    --dashboard-plan-accent: #a875ff;
    --dashboard-plan-line: rgba(168, 117, 255, .86);
    --dashboard-plan-glow: rgba(133, 84, 255, .16);
}

.dashboard-subscription-badge.plan-plus {
    --dashboard-plan-accent: #5ce39d;
    --dashboard-plan-line: rgba(92, 227, 157, .8);
    --dashboard-plan-glow: rgba(64, 210, 132, .14);
}

.dashboard-subscription-badge.is-trial {
    --dashboard-plan-accent: #f8d48c;
    --dashboard-plan-line: rgba(245, 158, 11, .66);
    --dashboard-plan-glow: rgba(245, 158, 11, .11);
}

.dashboard-subscription-badge.is-expired,
.dashboard-subscription-badge.is-cancelled,
.dashboard-subscription-badge.is-past_due {
    --dashboard-plan-accent: #fecaca;
    --dashboard-plan-line: rgba(239, 68, 68, .64);
    --dashboard-plan-glow: rgba(239, 68, 68, .1);
}

.dashboard-subscription-link {
    margin-top: 11px;
    color: #cceaff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dashboard-subscription-link:hover { color: #58bdff; }

.desktop-app-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; }
.desktop-app-modal[hidden] { display: none !important; }
.desktop-app-modal__backdrop { position: absolute; inset: 0; background: rgba(4, 10, 18, .76); backdrop-filter: blur(5px); }
.desktop-app-modal__dialog { position: relative; width: min(100%, 560px); padding: 30px; border: 1px solid rgba(72, 172, 255, .32); border-radius: 20px; background: linear-gradient(135deg, #172b43, #101a29); box-shadow: 0 28px 80px rgba(0, 0, 0, .5); }
.desktop-app-modal__dialog h2 { margin: 4px 0 8px; font-size: 26px; }
.desktop-app-modal__dialog p { margin: 0; color: #aebfd4; }
.desktop-app-modal__close { position: absolute; top: 10px; right: 14px; border: 0; background: transparent; color: #dcecff; font-size: 30px; cursor: pointer; }
.desktop-app-eyebrow { color: #57bcff; font-size: 11px; font-weight: 800; letter-spacing: .11em; }
.desktop-app-actions { display: grid; justify-items: start; gap: 12px; margin-top: 22px; }
.desktop-app-note { color: #aebfd4; font-size: 13px; }
.desktop-pairing-form { display: flex; gap: 8px; }
.desktop-pairing-form input { width: 155px; min-height: 38px; padding: 8px 10px; border: 1px solid #344b67; border-radius: 10px; background: #101c2b; color: #e7f1ff; }
.desktop-devices { width: 100%; margin-top: 8px; padding-top: 16px; border-top: 1px solid rgba(105, 150, 196, .24); }
.desktop-devices__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #dcecff; font-size: 13px; }
.desktop-devices__head span { color: #aebfd4; font-size: 12px; }
.desktop-devices__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 10px; border: 1px solid rgba(87, 137, 190, .24); border-radius: 10px; background: rgba(7, 15, 26, .32); }
.desktop-devices__item > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.desktop-devices__item strong { color: #e5f0ff; font-size: 13px; }
.desktop-devices__item span { color: #aebfd4; font-size: 11px; }
.desktop-devices__disconnect { min-height: 32px; padding: 6px 10px; font-size: 12px; }

@media (max-width: 760px) {
    .desktop-pairing-form { width: 100%; flex-wrap: wrap; }
    .desktop-devices__item { align-items: flex-start; flex-direction: column; }
    .account-card h1[data-i18n="dashboard_title"] {
        padding-left: 8px;
    }

    .dashboard-subscription-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

.btn {
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 11px 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .15s ease;
}

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

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.45);
    color: #fecaca;
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.22); }

.btn-ghost {
    background: #202734;
    color: #dce5f2;
    border-color: #2c3646;
}
.btn-ghost:hover {
    background: #263040;
    border-color: #374457;
}

.notice {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--success-bg);
    border: 1px solid var(--success-line);
    color: var(--success-text);
}

.auth-box {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.personal-data-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    max-width: 460px;
    margin: 16px 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    cursor: pointer;
}

.personal-data-consent input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    accent-color: var(--primary);
}

.personal-data-consent a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-box .btn:disabled {
    cursor: not-allowed;
    opacity: .58;
}

.qr-box {
    border: 1px dashed var(--line);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    min-height: 280px;
}

.qr-box img {
    max-width: 240px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .35);
}

.status-pill {
    display: inline-block;
    background: #1e2836;
    color: #bcd1f3;
    border: 1px solid #314156;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 22px;
    row-gap: 11px;
}

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

.bot-card-wrap {
    transform: scale(0.93);
    transform-origin: top center;
}

.bot-card-form {
    display: grid;
    gap: 10px;
}

.bot-card-top {
    display: grid;
    grid-template-columns: 4fr repeat(3, 1fr);
    align-items: center;
    column-gap: 12px;
    padding: 0 6px;
}

.bot-card-name {
    font-size: 20px;
    font-weight: 700;
    color: #f3f6fc;
    margin: 0;
    justify-self: start;
}

.bot-save-icon-btn {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    justify-self: end;
    transition: color .15s ease, opacity .15s ease, transform .12s ease;
}

.bot-delete-icon-btn {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    justify-self: end;
    transition: color .15s ease, opacity .15s ease, transform .12s ease;
}

.bot-delete-icon-btn:hover {
    color: rgba(255, 255, 255, 0.9);
}

.bot-delete-icon-btn:active {
    transform: translateY(1px);
}

.bot-delete-icon-btn svg {
    width: 24px;
    height: 24px;
}

.bot-save-icon-btn:hover {
    color: #fff;
}

.bot-save-icon-btn.is-saving {
    opacity: 0.72;
}

.bot-save-icon-btn.is-saved {
    color: #3dcf68;
}

.bot-save-icon-btn:active {
    transform: translateY(1px);
}

.bot-save-icon-btn svg {
    width: 24px;
    height: 24px;
}

.bot-save-icon-btn svg {
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.bot-delete-icon-btn svg {
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.bot-switch-shell {
    justify-self: end;
    position: relative;
    display: inline-flex;
    align-items: center;
}

.bot-switch-shell.is-admin-disabled::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 20;
    min-width: 178px;
    border-radius: 8px;
    background: #101826;
    color: #f8fafc;
    font-size: 12px;
    line-height: 1.35;
    padding: 8px 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
}

.bot-switch-shell.is-admin-disabled:hover::after,
.bot-switch-shell.is-admin-disabled:focus::after,
.bot-switch-shell.is-admin-disabled:focus-within::after {
    opacity: 1;
    transform: translateY(0);
}

.bot-switch-shell.is-admin-disabled .bot-visual-switch {
    cursor: not-allowed;
    opacity: 0.9;
}

.bot-visual-switch {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.bot-visual-switch:disabled {
    cursor: not-allowed;
}

.bot-visual-switch-track {
    width: 44px;
    height: 24px;
    border-radius: 999px;
    border: 0;
    background-color: #f398982e;
    display: inline-flex;
    align-items: center;
    padding: 2px;
    transition: background-color .24s ease, border-color .24s ease;
}

.bot-visual-switch-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #cf3d3d;
    transition: transform .24s ease, background-color .24s ease;
}

.bot-visual-switch.is-on .bot-visual-switch-track {
    background-color: #98f3bc2e;
    border-color: transparent;
}

.bot-visual-switch.is-on .bot-visual-switch-thumb {
    transform: translateX(20px);
    background-color: #3dcf68;
}

.bot-delete-form {
    display: none;
}

.bot-card {
    border: 1px solid #273649;
    border-radius: 18px;
    padding: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01)), #141d29;
    height: 680px;
    position: relative;
    overflow: hidden;
}

.bot-tab-panel {
    display: none;
    padding-bottom: 72px;
}

.bot-tab-panel.is-active {
    display: block;
}

.bot-tab-panel[data-bot-panel="main"].is-active {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bot-tab-panel[data-bot-panel="games"].is-active {
    height: calc(100% - 86px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(130, 154, 186, 0.38) transparent;
}

.bot-tab-panel[data-bot-panel="games"].is-active::-webkit-scrollbar {
    width: 8px;
}

.bot-tab-panel[data-bot-panel="games"].is-active::-webkit-scrollbar-track {
    background: transparent;
}

.bot-tab-panel[data-bot-panel="games"].is-active::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(130, 154, 186, 0.32);
}

.bot-tab-panel[data-bot-panel="games"] .service-grid {
    margin-bottom: 0;
}

.bot-tab-empty {
    border: 1px dashed #314156;
    border-radius: 12px;
    min-height: 214px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #93a8c2;
    background: rgba(8, 14, 24, 0.38);
    padding: 14px;
}

.bot-tabs {
    margin-top: 0;
    padding: 7px 8px;
    border: 0;
    border-radius: 14px;
    background: rgba(10, 16, 26, 0.56);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    align-items: stretch;
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
}

.bot-tab-btn[data-bot-tab="main"] {
    grid-column: 3;
    grid-row: 1;
}

.bot-tab-btn[data-bot-tab="ads"] {
    grid-column: 4;
    grid-row: 1;
}

.bot-tab-btn[data-bot-tab="games"] {
    grid-column: 2;
    grid-row: 1;
}

.bot-tabs.team-enabled {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bot-tabs.team-enabled .bot-tab-btn[data-bot-tab="main"] {
    grid-column: 1;
}

.bot-tabs.team-enabled .bot-tab-btn[data-bot-tab="ads"] {
    grid-column: 2;
}

.bot-tabs.team-enabled .bot-tab-btn[data-bot-tab="games"] {
    grid-column: 3;
}

.bot-tabs.team-enabled .bot-tab-btn[data-bot-tab="team"] {
    grid-column: 4;
}

.bot-tab-btn {
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #8799b1;
    padding: 6px 6px 5px;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.bot-tab-btn:hover {
    color: #c6d7ee;
    background: rgba(255, 255, 255, 0.03);
}

.bot-tab-btn.is-active {
    color: #eaf2ff;
    background: rgb(24 33 44);
}

.bot-tab-btn-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
}

.bot-tab-btn-icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
}

.bot-tab-btn-label {
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
}

.team-tab-panel.is-active {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.team-calc-mode-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.team-calc-mode-btn {
    border: 0;
    background: none;
    padding: 0;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .01em;
    color: rgba(147, 169, 194, 0.78);
    cursor: pointer;
    transition: color .14s ease, opacity .14s ease;
}

.team-calc-mode-btn:hover {
    color: rgba(207, 224, 243, 0.95);
}

.team-calc-mode-btn.is-disabled,
.team-calc-mode-btn:disabled {
    opacity: .46;
    cursor: default;
    pointer-events: none;
}

.team-calc-mode-btn.is-active[data-team-calc-mode-btn="live"] {
    color: #3dcf68;
}

.team-calc-mode-btn.is-active[data-team-calc-mode-btn="manual"] {
    color: #f2bc38;
}

.team-calc-mode-sep {
    color: rgba(121, 145, 172, 0.62);
    font-size: 13px;
    font-weight: 800;
    user-select: none;
}

.team-top-block {
    border: 1px solid #2c3a4d;
    border-radius: 12px;
    padding: 12px;
    background: #111a27b3;
}

.team-top-controls {
    display: grid;
    grid-template-columns: minmax(145px, 1.18fr) repeat(4, minmax(0, 1fr));
    align-items: end;
    gap: 10px;
    margin-bottom: 25px;
    padding: 0 2px;
}

.team-control-cell {
    min-width: 0;
    display: grid;
    gap: 5px;
    align-items: start;
}

.team-control-cell--genre {
    min-width: 0;
}

.team-control-value-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.team-control-value-row .team-cards-bonus-field {
    flex: 1 1 auto;
    width: auto;
}

.team-cards-bonus-field {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #3b516f;
    border-radius: 9px;
    background: rgba(23, 36, 53, 0.76);
    color: #d7e7fb;
    padding: 0 10px;
    min-height: 34px;
    outline: none;
    cursor: pointer;
    width: 100%;
    min-width: 0;
    position: relative;
    overflow: visible;
}

.team-manual-plus-btn {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    border: 1px solid #3b516f;
    background: rgba(23, 36, 53, 0.76);
    color: #f2bc38;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    transition: border-color .14s ease, color .14s ease, background .14s ease;
}

.team-manual-plus-btn:hover {
    border-color: #f2bc38;
    color: #ffd97a;
}

.team-manual-plus-btn:disabled {
    opacity: .55;
    cursor: default;
}

.team-cards-bonus-field-value {
    color: #d7e7fb;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    width: 100%;
    text-align: center;
}

.team-cards-bonus-field-value.is-on {
    color: #3dcf68;
}

.team-cards-bonus-field-value.is-off {
    color: #cf3d3d;
}

.team-cards-bonus-field.is-readonly {
    cursor: default;
    opacity: .92;
}

.team-cards-bonus-field.is-clickable:focus-visible {
    border-color: rgba(96, 157, 228, 0.68);
    box-shadow: 0 0 0 2px rgba(61, 123, 198, 0.28);
}

.team-cards-bonus-tooltip {
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    min-width: 250px;
    max-width: 300px;
    border: 1px solid rgba(242, 116, 56, 0.68);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(20, 31, 47, 0.98) 0%, rgba(14, 24, 38, 0.98) 100%);
    box-shadow:
        0 16px 30px rgba(5, 10, 18, 0.72),
        0 0 0 1px rgba(242, 116, 56, 0.14) inset;
    color: #ecf5ff;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 800;
    letter-spacing: .01em;
    padding: 12px 14px;
    white-space: pre-line;
    opacity: 0;
    transform: translateY(-3px) scale(.98);
    pointer-events: none;
    transition: opacity .08s ease-out, transform .08s ease-out;
    z-index: 35;
}

.team-cards-bonus-tooltip::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 16px;
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
    background: rgba(20, 31, 47, 0.98);
    border-top: 1px solid rgba(242, 116, 56, 0.68);
    border-left: 1px solid rgba(242, 116, 56, 0.68);
}

.team-cards-bonus-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.team-cards-modal-card {
    width: min(360px, calc(100% - 22px));
}

.team-top-header {
    display: flex;
    align-items: center;
    gap: 9px;
}

.team-control-label {
    font-size: 12px;
    line-height: 1;
    color: #a8bcda;
    font-weight: 800;
    min-width: 0;
    margin: 0;
}

.team-genre-picker {
    position: relative;
    width: 100%;
    min-width: 0;
}

.team-genre-picker.is-open {
    z-index: 42;
}

.team-genre-select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    clip-path: inset(50%);
}

.team-genre-select {
    width: 100%;
    min-width: 0;
    height: 34px;
    border: 1px solid #3b516f;
    border-radius: 9px;
    background: rgba(23, 36, 53, 0.76);
    color: #e9f2ff;
    font-size: 12px;
    font-weight: 700;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.team-genre-select-arrow {
    width: 15px;
    height: 15px;
    color: #a8bcda;
    transition: transform .12s ease, color .12s ease;
}

.team-genre-select-arrow svg {
    width: 100%;
    height: 100%;
}

.team-genre-picker.is-open .team-genre-select {
    border-color: rgba(96, 157, 228, 0.68);
    box-shadow: 0 0 0 2px rgba(61, 123, 198, 0.28);
}

.team-genre-picker.is-open .team-genre-select-arrow {
    transform: rotate(180deg);
    color: #d7e7fb;
}

.team-genre-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 230px;
    overflow-y: auto;
    border: 1px solid #3b516f;
    border-radius: 10px;
    background: rgba(22, 34, 50, 0.98);
    box-shadow: 0 16px 30px rgba(5, 10, 18, 0.62);
    padding: 4px;
}

.team-genre-dropdown::-webkit-scrollbar {
    width: 10px;
}

.team-genre-dropdown::-webkit-scrollbar-track {
    background: rgba(13, 23, 35, 0.72);
    border-radius: 9px;
}

.team-genre-dropdown::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(125, 148, 172, 0.9), rgba(87, 112, 137, 0.92));
    border-radius: 9px;
    border: 2px solid rgba(13, 23, 35, 0.92);
}

.team-genre-dropdown {
    scrollbar-color: rgba(125, 148, 172, 0.9) rgba(13, 23, 35, 0.72);
    scrollbar-width: thin;
}

.team-genre-dropdown-option {
    width: 100%;
    min-height: 31px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #dbe8f8;
    text-align: left;
    padding: 5px 9px;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 700;
    cursor: pointer;
}

.team-genre-dropdown-option:hover {
    background: rgba(63, 103, 150, 0.35);
    color: #f2f8ff;
}

.team-genre-dropdown-option.is-selected {
    background: rgba(43, 88, 144, 0.72);
    color: #f2f8ff;
}

.team-genre-dropdown-option:focus-visible {
    outline: 0;
    background: rgba(54, 112, 181, 0.58);
    color: #f2f8ff;
}

.team-event-mode-tab {
    border: 1px solid #3b516f;
    border-radius: 9px;
    background: rgba(23, 36, 53, 0.76);
    color: #d7e7fb;
    font-size: 12px;
    font-weight: 800;
    height: 34px;
    padding: 0 12px;
    white-space: nowrap;
    width: 100%;
    align-self: end;
    cursor: pointer;
    transition: border-color .14s ease, box-shadow .14s ease, background .14s ease, color .14s ease;
}

.team-event-mode-tab:hover {
    border-color: rgba(104, 150, 205, 0.72);
}

.team-event-mode-tab:focus-visible {
    outline: 0;
    border-color: rgba(104, 150, 205, 0.72);
    box-shadow: 0 0 0 2px rgba(72, 124, 187, 0.26);
}

.team-event-mode-tab.is-event {
    border-color: rgba(242, 116, 56, 0.86);
    background: linear-gradient(180deg, rgba(52, 35, 32, 0.72) 0%, rgba(38, 28, 25, 0.72) 100%);
    color: #ffe8d9;
    box-shadow: 0 0 0 1px rgba(242, 116, 56, 0.24) inset;
}

.team-project-time-row {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 10px;
    padding: 0 2px;
}

.team-summary-item {
    display: grid;
    justify-items: center;
    gap: 5px;
    min-width: 0;
    text-align: center;
}

.team-summary-item--fun {
    justify-items: center;
}

.team-summary-item--fun-minute {
    justify-items: center;
}

.team-summary-item--balance {
    justify-items: center;
}

.team-project-time-title {
    color: #afc3de;
    font-size: 12px;
    font-weight: 700;
}

.team-project-time-value {
    color: #ffd45f;
    font-size: 19px;
    line-height: 1;
    font-weight: 900;
}

.team-balance-score-title {
    color: #afc3de;
    font-size: 12px;
    font-weight: 700;
}

.team-balance-score-value {
    color: #8fd2ff;
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
}

.team-project-fun-title {
    color: #afc3de;
    font-size: 12px;
    font-weight: 700;
}

.team-project-fun-value {
    color: #9df0b0;
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
}

.team-project-fun-minute-title {
    color: #afc3de;
    font-size: 12px;
    font-weight: 700;
}

.team-project-fun-minute-value {
    color: #9df0b0;
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
}

.team-analytics-panel {
    margin-top: 6px;
}

.team-analytics-panel .team-metrics-grid {
    margin-top: 2px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.team-analytics-panel .team-metric-wrap {
    position: relative;
    border: 1px solid rgba(78, 102, 132, 0.56);
    border-radius: 14px;
    background: rgba(15, 24, 36, 0.82);
    box-shadow:
        inset 0 1px 0 rgba(228, 237, 248, 0.04),
        0 8px 14px rgba(4, 8, 14, 0.16);
    padding: 13px 12px 11px;
    display: grid;
    gap: 9px;
    align-content: start;
}

.team-analytics-panel .team-metric-wrap::before {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    top: 0;
    height: 2px;
    border-radius: 999px;
    background: rgba(116, 186, 255, 0.85);
}

.team-analytics-panel .team-metric-wrap:nth-child(2)::before {
    background: rgba(116, 186, 255, 0.85);
}

.team-analytics-panel .team-metric-wrap:nth-child(3)::before {
    background: rgba(116, 186, 255, 0.85);
}

.team-analytics-panel .team-metric-cell {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    display: grid;
    gap: 6px;
}

.team-analytics-panel .team-metric-cell.is-slowest {
    box-shadow:
        inset 0 0 0 1px rgba(242, 116, 56, 0.48),
        0 0 10px rgba(242, 116, 56, 0.18);
    border-radius: 10px;
    padding: 8px;
    animation: teamSlowestPulse 1.8s ease-in-out infinite;
}

@keyframes teamSlowestPulse {
    0%,
    100% {
        box-shadow:
            inset 0 0 0 1px rgba(242, 116, 56, 0.4),
            0 0 8px rgba(242, 116, 56, 0.14);
    }
    50% {
        box-shadow:
            inset 0 0 0 1px rgba(242, 116, 56, 0.68),
            0 0 12px rgba(242, 116, 56, 0.22);
    }
}

@media (prefers-reduced-motion: reduce) {
    .team-analytics-panel .team-metric-cell.is-slowest {
        animation: none;
    }
}

.team-analytics-panel .team-metric-title {
    color: #d9e8fb;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-align: center;
}

.team-analytics-panel .team-metric-balance {
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px solid rgba(93, 119, 149, 0.34);
    color: #b6cde8;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.32;
    text-align: center;
}

.team-analytics-panel .team-metric-title-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    color: rgba(235, 244, 255, 0.86);
}

.team-analytics-panel .team-metric-title-icon svg {
    width: 100%;
    height: 100%;
}

.team-analytics-panel .team-metric-speed {
    color: #ebf4ff;
    font-size: 20px;
    line-height: 1.15;
    font-weight: 900;
    text-align: center;
}

.team-analytics-panel .team-metric-time {
    color: #ffe5a8;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
    text-align: center;
}

.team-analytics-panel .team-metric-fun {
    color: #b9efca;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
    text-align: center;
}

.team-warning-row {
    margin-top: 9px;
    border: 1px solid rgba(94, 122, 154, 0.44);
    border-radius: 10px;
    background: rgba(22, 34, 50, 0.72);
    color: #c3d4e9;
    font-size: 12px;
    line-height: 1.4;
    padding: 8px 9px;
}

.team-recommendations-block {
    margin-top: 12px;
    border: 1px solid rgba(112, 132, 160, 0.34);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(18, 28, 42, 0.78) 0%, rgba(14, 22, 34, 0.74) 100%);
    box-shadow:
        inset 0 1px 0 rgba(206, 222, 244, 0.05),
        0 10px 18px rgba(4, 8, 14, 0.24);
    padding: 11px;
}

.team-recommendations-title {
    color: #dbe8f9;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    margin-bottom: 9px;
}

.team-recommendations-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 9px;
}

.team-recommendations-tab {
    border: 1px solid rgba(86, 107, 135, 0.66);
    border-radius: 8px;
    background: rgba(20, 32, 48, 0.56);
    color: #c6d9ee;
    font-size: 12px;
    font-weight: 800;
    min-height: 30px;
    padding: 0 10px;
    cursor: pointer;
    transition: border-color .14s ease, background .14s ease, color .14s ease;
}

.team-recommendations-tab:hover,
.team-recommendations-tab:focus-visible {
    outline: 0;
    border-color: rgba(146, 122, 214, 0.72);
    color: #e7ddff;
}

.team-recommendations-tab.is-active {
    border-color: rgba(151, 126, 228, 0.75);
    background: rgba(61, 45, 90, 0.44);
    color: #e9deff;
}

.team-recommendations-panel {
    min-height: 84px;
}

.team-recommendations-layers {
    display: grid;
    gap: 8px;
}

.team-recommendations-layer {
    border: 1px solid rgba(95, 117, 145, 0.44);
    border-left: 2px solid rgba(151, 126, 228, 0.74);
    border-radius: 9px;
    background: rgba(19, 30, 45, 0.64);
    padding: 8px 10px;
    display: grid;
    gap: 4px;
}

.team-recommendations-layer-title {
    color: #e8dcff;
    font-size: 12px;
    font-weight: 800;
}

.team-recommendations-layer-line {
    color: #c8d9ec;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
}

.team-recommendations-layer-line strong {
    color: #eef6ff;
    font-weight: 800;
}

.team-recommendations-empty {
    color: #afc3db;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
    padding: 4px 1px 1px;
}

.team-recommendations-ideal {
    display: grid;
    gap: 7px;
    text-align: left;
}

.team-recommendations-ideal-target {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 3px;
    color: #d2e5fb;
    font-size: 12px;
    font-weight: 800;
}

.team-recommendations-ideal-target strong {
    color: #e8dcff;
    font-size: 15px;
    line-height: 1;
}

.team-recommendations-ideal-row {
    color: #c7dcf4;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
}

.team-tab-scroll {
    margin-top: 5px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px 6px 6px 1px;
    scrollbar-width: thin;
    scrollbar-color: rgba(130, 154, 186, 0.38) transparent;
}

.team-inner-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin: 50px 2px 8px;
    padding: 0 2px;
}

.team-inner-tab-btn {
    border: 0;
    background: none;
    padding: 0;
    color: rgba(220, 229, 242, 0.58);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: color .12s ease;
}

.team-inner-tab-btn:hover,
.team-inner-tab-btn:focus-visible {
    outline: 0;
    color: rgba(228, 237, 248, 0.9);
}

.team-inner-tab-btn.is-active {
    color: #d8b8ff;
}

.team-inner-panel {
    margin: 0;
}

.team-section-title {
    margin: 0 2px 7px;
}

.team-section-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 2px 7px;
    min-height: 24px;
}

.team-section-head .team-section-title {
    margin: 0;
}

.team-section-title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.team-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #d8e7f9;
}

.team-section-count-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(232, 243, 255, 0.82);
}

.team-section-count-icon svg {
    width: 100%;
    height: 100%;
}

.team-section-count-value {
    font-size: 14px;
    line-height: 1;
    font-weight: 900;
}

.team-manual-sync-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: none;
    padding: 0;
    color: #8fc2f5;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: color .14s ease, opacity .14s ease;
}

.team-manual-sync-btn:hover {
    color: #b9dcff;
}

.team-manual-sync-btn:disabled {
    opacity: .55;
    cursor: default;
}

.team-rarity-summary {
    margin: 11px 0 14px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 10px;
    justify-content: stretch;
    align-items: start;
}

.team-rarity-summary-meta {
    display: none;
}

.team-rarity-summary-card {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
    display: grid;
    justify-items: center;
    align-items: center;
    row-gap: 7px;
    width: calc(100% - 10px);
    margin: 0 auto;
}

.team-rarity-summary-line {
    display: block;
    width: 100%;
    height: 1px;
    border-radius: 999px;
    margin: 0;
    background: #7a92ad;
}

.team-rarity-summary-card[data-rarity="rare_purple"] .team-rarity-summary-line {
    background: #c83fff;
}

.team-rarity-summary-card[data-rarity="legendary_gold"] .team-rarity-summary-line {
    background: #f3c209;
}

.team-rarity-summary-card[data-rarity="common"] .team-rarity-summary-line {
    background: #78cfff;
}

.team-rarity-summary-title {
    display: none;
}

.team-rarity-summary-dept-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.team-rarity-summary-dept-unit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.team-rarity-summary-dept-icon {
    width: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.team-rarity-summary-dept-count {
    min-width: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.team-rarity-summary-dept-icon {
    color: rgba(232, 243, 255, 0.75);
}

.team-rarity-summary-dept-icon svg {
    width: 18px;
    height: 18px;
}

.team-rarity-summary-dept-count {
    color: #d8e7f9;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
}

.team-rarity-summary-total {
    display: none;
}

.team-tab-scroll::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.team-tab-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.team-tab-scroll::-webkit-scrollbar-thumb {
    background: rgba(130, 154, 186, 0.38);
    border-radius: 10px;
}

.team-employees-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.team-employee-add-card {
    border: 1px solid #2f4057;
    border-radius: 13px;
    background: #111a27b3;
    color: #d2def0;
    font-size: 15px;
    font-weight: 700;
    min-height: 186px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
}

.team-employee-add-card:hover {
    border-color: #5679a3;
    background: #111a27b3;
}

.team-employee-card {
    border: 1px solid #2d3d52;
    border-radius: 14px;
    background: #111a27b3;
    min-height: 186px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(255, 220, 134, 0.14);
}

.team-employee-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    min-height: 36px;
    position: relative;
}

.team-employee-tier-badge {
    position: relative;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #eef5ff;
    margin: 0 auto 2px;
    pointer-events: none;
}

.team-employee-tier-svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.3));
}

.team-employee-tier-svg .team-employee-tier-text {
    fill: currentColor;
    font-size: 8.8px;
    font-weight: 900;
    letter-spacing: 0;
    paint-order: stroke;
    stroke: rgba(0, 0, 0, 0.35);
    stroke-width: 0.6px;
}

.team-employee-tier-badge--common {
    color: #eef5ff;
}

.team-employee-tier-badge--rare {
    color: #eef5ff;
}

.team-employee-tier-badge--legendary {
    color: #eef5ff;
}

.team-employee-dept-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(235, 245, 255, 0.68);
}

.team-employee-dept-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    color: rgba(235, 245, 255, 0.68);
}

.team-employee-dept-icon svg {
    width: 100%;
    height: 100%;
}

.team-employee-rarity-shell {
    width: 34px;
    height: 34px;
    border-radius: 3px;
    border: 2px solid #5e6c80;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #101926;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
    position: relative;
}

.team-employee-rarity-shell[data-rarity="legendary_gold"] {
    border-color: #f3c209;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.5), 0 0 8px rgba(243, 194, 9, 0.9);
}

.team-employee-rarity-shell[data-rarity="rare_purple"] {
    border-color: #c83fff;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.5), 0 0 8px rgba(200, 63, 255, 0.9);
}

.team-employee-rarity-shell.is-empty {
    visibility: hidden;
}

.team-employee-rarity-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.78) saturate(1.02);
}

.team-employee-perk-mask {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 16px;
    height: 16px;
    border-top-left-radius: 16px;
    background: #111a27;
    z-index: 2;
}

.team-employee-perk-effect {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    color: #d8e9fb;
    background: rgba(16, 26, 39, 0.9);
}

.team-employee-perk-effect svg {
    width: 11px;
    height: 11px;
}

.team-employee-perk-effect[data-effect="speed"] {
    color: #7dc2ff;
}

.team-employee-perk-effect[data-effect="fun"] {
    color: #ffb25f;
}

.team-employee-name {
    margin-top: 0;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 800;
    color: #eef5ff;
    text-align: center;
    text-transform: uppercase;
}

.team-employee-meta {
    color: #b5c8df;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.team-employee-stars {
    margin-top: 0;
    display: flex;
    justify-content: center;
    gap: 1px;
}

.team-employee-star {
    width: 23px;
    height: 23px;
    color: #9fb3ca;
}

.team-employee-star.is-on {
    color: #ffbf00;
}

.team-employee-star svg {
    width: 100%;
    height: 100%;
}

.team-employee-star path {
    fill: currentColor;
    stroke: currentColor;
    stroke-width: .65;
}

.team-employee-stats {
    margin-top: 0;
    text-align: center;
    color: #ecf5ff;
    font-size: 12px;
    line-height: 1.25;
    display: grid;
    gap: 1px;
}

.team-employee-stats-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
}

.team-employee-main {
    margin-top: auto;
    display: grid;
    gap: 2px;
}

.team-employee-power {
    margin-top: 2px;
    color: #ffd45f;
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.34);
    text-align: center;
}

.team-employee-fun-minute {
    margin-top: 7px;
    color: #a9bdd7;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
    text-align: center;
}

.team-employee-actions {
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.team-employee-action-btn {
    border: 0;
    background: transparent;
    color: rgba(223, 234, 249, 0.12);
    width: 24px;
    height: 24px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color .12s ease, opacity .12s ease;
}

.team-employee-action-btn:hover {
    color: rgba(240, 246, 255, 0.5);
}

.team-employee-action-btn svg {
    width: 19px;
    height: 19px;
}

.team-employee-action-placeholder {
    width: 24px;
    height: 24px;
    opacity: 0;
    pointer-events: none;
}

.team-employee-live-label {
    color: rgba(255, 212, 95, 0.58);
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.36);
    pointer-events: none;
}

.team-employee-power--common {
    color: #32a2ea;
}

.team-employee-power--rare {
    color: #9c31c7;
}

.team-employee-power--legendary {
    color: #daaf0c;
}

.team-add-btn {
    display: none;
}

.team-modal {
    position: absolute;
    inset: 0;
    z-index: 25;
}

.team-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 12, 20, 0.74);
}

.team-modal-card {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(430px, calc(100% - 22px));
    max-height: calc(100% - 32px);
    overflow-y: auto;
    border: 1px solid #31445d;
    border-radius: 14px;
    background: #121d2a;
    padding: 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(130, 154, 186, 0.35) transparent;
}

.team-modal-card::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.team-modal-card::-webkit-scrollbar-track {
    background: transparent;
}

.team-modal-card::-webkit-scrollbar-thumb {
    background: rgba(130, 154, 186, 0.35);
    border-radius: 10px;
}

.team-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.team-modal-head h3 {
    margin: 0;
    font-size: 18px;
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}

.team-modal-name {
    color: #b4cbeb;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.team-modal-close-btn {
    border: 0;
    background: transparent;
    color: #d9e8ff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.team-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.team-field {
    margin-bottom: 0;
}

.team-field-wide {
    grid-column: span 2;
}

.team-field-plain-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-star-picker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.team-star-btn {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #7f90a8;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.team-star-btn svg {
    width: 28px;
    height: 28px;
}

.team-star-btn path {
    fill: currentColor;
    stroke: currentColor;
    stroke-width: .75;
}

.team-star-btn.is-active {
    color: #ffc51f;
}

.team-star-btn.is-disabled {
    opacity: .35;
    pointer-events: none;
}

.team-quality-picker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.team-quality-card {
    width: 78px;
    border: 0;
    background: transparent;
    padding: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #9fb3ca;
    filter: brightness(.8);
    transition: filter .15s ease, transform .15s ease;
}

.team-quality-card:hover {
    filter: brightness(.92);
    transform: translateY(-1px);
}

.team-quality-card.is-active {
    filter: brightness(1);
}

.team-quality-thumb {
    width: 44px;
    height: 44px;
    border: 2px solid #5e6c80;
    border-radius: 4px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #101926;
    box-shadow: 0 2px 2px rgba(0, 0, 0, .5);
}

.team-quality-thumb[data-rarity="legendary_gold"] {
    border-color: #f3c209;
    box-shadow: 0 2px 2px rgba(0, 0, 0, .5), 0 0 8px rgba(243, 194, 9, .9);
}

.team-quality-thumb[data-rarity="rare_purple"] {
    border-color: #c83fff;
    box-shadow: 0 2px 2px rgba(0, 0, 0, .5), 0 0 8px rgba(200, 63, 255, .9);
}

.team-quality-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(.78) saturate(1.02);
}

.team-quality-text {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    color: #c9d8ea;
}

.team-perk-effect-picker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.team-perk-effect-btn {
    min-width: 110px;
    height: 34px;
    border: 1px solid rgba(66, 88, 115, 0.92);
    border-radius: 9px;
    background: rgba(22, 33, 49, 0.84);
    color: #b7c9de;
    font-size: 12px;
    font-weight: 800;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    transition: border-color .14s ease, color .14s ease, box-shadow .14s ease, background .14s ease;
}

.team-perk-effect-btn:hover {
    border-color: rgba(94, 139, 194, 0.74);
    color: #dcedff;
}

.team-perk-effect-btn.is-active {
    border-color: rgba(105, 162, 230, 0.84);
    color: #eaf4ff;
    box-shadow: 0 0 0 1px rgba(105, 162, 230, 0.26) inset;
}

.team-perk-effect-icon {
    width: 14px;
    height: 14px;
    display: inline-flex;
}

.team-perk-effect-icon svg {
    width: 100%;
    height: 100%;
}

.team-modal-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.account-card .header {
    margin-top: 55px;
    margin-bottom: 55px;
}

.field { margin-bottom: 10px; }
.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #b6c3d7;
}

.field input,
.field select {
    width: 100%;
    border: 1px solid #334054;
    border-radius: 9px;
    padding: 9px 10px;
    font-size: 14px;
    color: #e7edf7;
    background: #111722;
    outline: none;
    transition: border-color .12s ease, box-shadow .12s ease;
}


.field input[type="number"]::-webkit-outer-spin-button,
.field input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.field input[type="number"] {
    -moz-appearance: textfield;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 96px;
}

.pass-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid #334054;
    border-radius: 8px;
    background: #1a2230;
    color: #dce5f2;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 7px 10px;
    cursor: pointer;
}

.field select:disabled { opacity: 1; cursor: pointer; }

.field select option:disabled {
    color: #6f8098;
}

.main-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0 14px;
    flex-shrink: 0;
}

.main-feature-card {
    position: relative;
    display: grid;
    grid-template-rows: 18px 28px auto;
    justify-items: center;
    align-items: center;
    row-gap: 6px;
    min-height: 118px;
    padding: 9px 12px 11px;
    border: 0;
    border-radius: 14px;
    background: #111a27;
    color: #e6efff;
    cursor: pointer;
    overflow: visible;
    transition: background .15s ease;
}

.main-feature-card:hover {
    background: #152132;
}

.main-feature-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.main-feature-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 18px;
}

.main-feature-head-left {
    min-width: 18px;
    min-height: 18px;
}

.main-feature-help-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.main-feature-help-wrap .inline-help {
    margin-left: 0;
}

.main-feature-help-wrap .inline-help-tip {
    left: auto;
    right: 0;
    width: min(320px, 68vw);
    max-width: 320px;
    white-space: normal;
    word-break: break-word;
    z-index: 80;
}

.main-feature-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2edb66;
    opacity: 0;
}

.main-feature-card.is-enabled .main-feature-dot {
    opacity: 1;
}

.main-feature-check {
    position: absolute;
    top: -9px;
    left: -9px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(180deg, #46d96e 0%, #2ab95a 100%);
    box-shadow: 0 1px 5px rgba(27, 163, 77, 0.35);
    opacity: 0;
    transform: scale(.9);
    transition: opacity .15s ease, transform .15s ease;
    z-index: 2;
}

.main-feature-card.is-completed {
    background: #111a27;
}

.main-feature-card.is-completed::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(57, 200, 105, 0) 0%, rgba(57, 200, 105, .9) 50%, rgba(57, 200, 105, 0) 100%) top / 100% 1px no-repeat,
        linear-gradient(180deg, rgba(57, 200, 105, .95) 0%, rgba(57, 200, 105, .38) 45%, rgba(57, 200, 105, 0) 100%) left / 1px 100% no-repeat,
        linear-gradient(180deg, rgba(57, 200, 105, .95) 0%, rgba(57, 200, 105, .38) 45%, rgba(57, 200, 105, 0) 100%) right / 1px 100% no-repeat;
}

.main-feature-card.is-completed .main-feature-check {
    opacity: 1;
    transform: scale(1);
}

.main-feature-icon {
    width: 58px;
    height: 58px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.main-feature-image {
    width: 55px;
    height: 55px;
    object-fit: contain;
    display: block;
}

.main-feature-title {
    font-size: 13px;
    line-height: 1.25;
    font-weight: 600;
    color: #f1f6ff;
    text-align: center;
    max-width: 100%;
}

.main-feature-inline-wrap {
    margin: 0 0 12px;
    display: flex;
    justify-content: center;
}

.main-feature-card-inline {
    width: min(100%, 360px);
    min-height: 56px;
    grid-template-columns: auto 30px minmax(0, 1fr) auto;
    grid-template-rows: auto;
    align-items: center;
    justify-items: stretch;
    column-gap: 10px;
    row-gap: 0;
    padding: 10px 12px;
    border-radius: 12px;
}

.main-feature-inline-help {
    justify-self: start;
    min-width: 18px;
    min-height: 18px;
}

.main-feature-card-inline .main-feature-help-wrap .inline-help-tip {
    right: auto;
    left: 0;
}

.main-feature-icon--compact {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.main-feature-image--compact {
    width: 28px;
    height: 28px;
}

.main-feature-title--inline {
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-feature-dot--inline {
    justify-self: end;
    align-self: center;
}

.main-skin-stage {
    margin: 6px auto 0;
    width: min(100%, 360px);
    height: 300px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    pointer-events: none;
    flex: 1 1 auto;
}

.main-skin-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    position: absolute;
    inset: 0;
    margin: auto;
    opacity: 0;
    transition: opacity .2s ease;
}

.main-skin-image--fire {
    opacity: 1;
}

html.theme-telegram .main-skin-image--fire,
body.theme-telegram .main-skin-image--fire {
    opacity: 0;
}

html.theme-telegram .main-skin-image--cold,
body.theme-telegram .main-skin-image--cold {
    opacity: 1;
}

.service-grid {
    display: grid;
    gap: 10px;
    margin: 12px 0 14px;
}

.service-grid-ads {
    gap: 8px;
}

.ads-section-title {
    margin: 2px 2px -1px;
    padding: 0 2px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: rgba(220, 229, 242, 0.58);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
    letter-spacing: 0.04em;
}

.ads-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ads-service-tile {
    position: relative;
    grid-template-columns: 1fr;
    padding: 0;
}

.ads-service-tile input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ads-service-body {
    display: grid;
    gap: 8px;
    padding: 11px 12px;
}

.ads-service-head {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.ads-service-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.03);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ads-service-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.ads-service-status {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #2edb66;
    opacity: 0.22;
    transition: opacity .15s ease, box-shadow .15s ease;
}

.ads-service-tile input[type="checkbox"]:checked + .ads-service-body .ads-service-status {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(46, 219, 102, 0.18);
}

.ads-clan-fields {
    margin-top: 2px;
}

.ads-clan-field {
    min-height: 34px;
    padding: 8px 10px;
    border: 1px solid #334054;
    border-radius: 8px;
    background: #1a2230;
    color: #dce5f2;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
}

.service-tile {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    padding: 11px 12px;
    border: 1px solid #2b3648;
    border-radius: 12px;
    background: #111a27;
}

.service-tile input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-top: 1px;
    accent-color: #3b82f6;
    cursor: pointer;
}

.service-tile-no-checkbox {
    grid-template-columns: 1fr;
}

.service-tile.is-disabled {
    opacity: 0.45;
}

.service-tile.is-disabled input[type="checkbox"] {
    cursor: not-allowed;
}

.desktop-games-entry {
    position: relative;
    min-height: 160px;
    isolation: isolate;
}

.desktop-games-entry::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("/images/background/game_match_pair.webp");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    border-radius: inherit;
    opacity: 0.35;
}

.desktop-games-entry > * {
    position: relative;
    z-index: 1;
}

.desktop-games-entry__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.desktop-games-entry__row {
    min-height: 100px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.desktop-games-entry__button {
    min-width: 190px;
    padding: 8px 14px;
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

.desktop-games-entry__button:hover { background: #2f70dd; border-color: #2f70dd; }
.desktop-games-entry__note { color: #c2d1e4; font-size: 12px; font-weight: 700; }
.desktop-games-entry__upgrade { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

.service-title {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.game-rewards-tile {
    grid-template-columns: 1fr;
}

.game-rewards-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

.game-rewards-split.is-single {
    grid-template-columns: 1fr;
}

.game-rewards-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-width: 0;
}

.game-rewards-option > span,
.game-rewards-field {
    min-width: 0;
}

.game-rewards-field {
    margin-top: 6px;
}

.inline-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    margin-left: 6px;
    border-radius: 999px;
    border: 1px solid rgba(133, 170, 214, 0.46);
    color: #b9d6f3;
    font-size: 11px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.04);
    cursor: help;
    vertical-align: middle;
}

.inline-help-tip {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: auto;
    width: min(370px, 78vw);
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #273649;
    background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01)), #141d29;
    color: #cfe0f7;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
    z-index: 30;
}

.inline-help:hover + .inline-help-tip,
.inline-help:focus + .inline-help-tip,
.inline-help:active + .inline-help-tip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.number-control {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 6px;
}

.number-control input[type="number"] {
    text-align: center;
    padding-left: 8px;
    padding-right: 8px;
}

.number-btn {
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(96, 128, 166, 0.44);
    background: rgba(255, 255, 255, 0.03);
    color: #c7dcf3;
    font-size: 19px;
    line-height: 1;
    font-weight: 500;
    cursor: pointer;
    transition: background .12s ease, border-color .12s ease, color .12s ease, transform .08s ease;
}

.number-btn:hover {
    background: rgba(83, 143, 214, 0.12);
    border-color: rgba(96, 157, 228, 0.68);
    color: #e8f3ff;
}

.number-btn:active {
    transform: translateY(1px);
}

.inline-selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}
.inline-single {
    margin-top: 8px;
}

.plus-card {
    width: 67%;
    min-height: 300px;
    border: 1px dashed #3c4b60;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    align-self: center;
    background: #111823;
    cursor: pointer;
    user-select: none;
    transition: background .15s ease, border-color .15s ease;
}

.add-bot-trigger {
    all: unset;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.plus-card.plus-card-expanded {
    width: calc(100% - 24px);
    min-height: 600px;
    padding: 16px;
    margin-inline: auto;
    border-style: solid;
    align-items: stretch;
    justify-content: flex-start;
    cursor: default;
}

.plus-card:hover {
    background: #162131;
    border-color: #4a607f;
}

.plus-card.plus-card-expanded:hover {
    background: #111823;
    border-color: #3c4b60;
}

.add-bot-icon {
    color: #7f96b3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.add-bot-icon--plus {
    font-size: 58px;
    line-height: 1;
    font-weight: 300;
}

.add-bot-icon--refresh {
    display: none;
}

.add-bot-icon--refresh svg {
    width: 40px;
    height: 40px;
}

.hidden { display: none; }
.save-row {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}
.plus-auth-panel {
    width: 100%;
}
.plus-card.plus-card-expanded .add-auth-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    min-height: 100%;
}
.plus-card.plus-card-expanded .add-auth-qr {
    width: 100%;
    max-width: 320px;
    justify-self: start;
    align-self: start;
}
.plus-card.plus-card-expanded .add-auth-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    min-width: 0;
}
.add-auth-title-row {
    margin-top: 0;
    margin-bottom: 12px;
}
.account-card .add-auth-title-row {
    margin-top: 0;
    margin-bottom: 12px;
}
.add-auth-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}
.plus-card.plus-card-expanded .add-bot-trigger {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    border: 1px solid rgba(96, 128, 166, 0.44);
    background: rgba(255, 255, 255, 0.03);
    align-self: flex-start;
}
.plus-card.plus-card-expanded .add-bot-icon--plus {
    display: none;
}

.plus-card.plus-card-expanded .add-bot-icon--refresh {
    display: inline-flex;
}
.add-auth-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
}
.add-auth-left .muted {
    overflow-wrap: anywhere;
    word-break: break-word;
    margin: 0;
}
.add-auth-qr {
    width: 100%;
    max-width: 320px;
    min-height: 220px;
    border: 1px dashed #3a475a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #11171f;
}
.add-auth-qr img {
    max-width: 210px;
    width: 100%;
    height: auto;
    border-radius: 10px;
}
@media (max-width: 520px) {
    .plus-card.plus-card-expanded {
        padding: 16px;
    }
    .add-auth-meta-row {
        flex-wrap: wrap;
    }
}

@media (max-width: 900px) {
    .auth-box { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .inline-selects { grid-template-columns: 1fr; }
    .game-rewards-split {
        grid-template-columns: 1fr;
    }
    .bot-card {
        height: 860px;
    }
    .plus-card.plus-card-expanded {
        min-height: 780px;
    }
    .plus-card.plus-card-expanded .add-auth-left {
        align-items: center;
        text-align: center;
    }
    .plus-card.plus-card-expanded .add-auth-qr {
        justify-self: center;
        width: min(100%, 320px);
        margin-inline: auto;
    }
    .plus-card.plus-card-expanded .add-auth-meta-row {
        justify-content: center;
    }
    .plus-card.plus-card-expanded .add-bot-trigger {
        align-self: center;
    }
    .main-feature-grid {
        grid-template-columns: 1fr;
    }
    .main-feature-card {
        min-height: 118px;
        padding: 8px 10px 9px;
    }
    .main-feature-icon {
        width: 58px;
        height: 58px;
    }
    .main-feature-image {
        width: 55px;
        height: 55px;
    }
    .main-feature-title {
        font-size: 13px;
    }
    .main-feature-inline-wrap {
        margin: 0 0 10px;
    }
    .main-feature-card-inline {
        width: 100%;
        min-height: 54px;
    }
    .ads-two-col,
    .ads-clan-fields {
        grid-template-columns: 1fr;
    }
    .main-skin-stage {
        width: min(100%, 300px);
        height: 220px;
    }
    .bot-card-top {
        grid-template-columns: 4fr repeat(3, 1fr);
        column-gap: 10px;
    }
    .bot-card-name {
        font-size: 18px;
    }
    .bot-tabs {
        gap: 4px;
        padding: 6px;
    }
    .bot-tab-btn {
        min-height: 46px;
        padding-top: 5px;
        gap: 6px;
    }
    .bot-tab-btn-icon {
        width: 30px;
        height: 30px;
    }
    .bot-tab-btn-icon svg {
        width: 30px;
        height: 30px;
    }
    .bot-tab-btn-label {
        font-size: 10px;
    }
    .team-top-controls {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .team-event-mode-tab {
        width: 100%;
    }
    .team-cards-bonus-field {
        justify-content: space-between;
    }
    .team-control-value-row {
        width: 100%;
    }
    .team-project-time-row {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 0;
    }
    .team-summary-item--balance {
        justify-items: center;
    }
    .team-analytics-panel .team-metrics-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .team-employees-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .team-modal-card {
        width: calc(100% - 16px);
    }
    .team-modal-grid {
        grid-template-columns: 1fr;
    }
    .team-field-wide {
        grid-column: span 1;
    }
}



.inner-page-offset {
    padding-top: 34px;
}

@media (max-width: 840px) {
    .container {
        padding: 0 16px;
    }

    .inner-page-offset {
        padding-top: 24px;
    }
}

html.theme-telegram body {
    --bg: #0a1622;
    --bg-soft: #102133;
    --card: #102133;
    --card-soft: #14283d;
    --line: #27445f;
    --line-soft: #2d4e6d;
    --text: #ecf7ff;
    --muted: #b8d8ef;
    --primary: #39a7ff;
    --primary-hover: #2b95ea;
    --danger: #ff6b6b;
    --success-bg: #12344a;
    --success-line: #2d5d7a;
    --success-text: #b9e7ff;
}

html:not(.theme-telegram) {
    background-color: rgba(17, 13, 11, 0.86);
    background-image:
        radial-gradient(1100px 620px at 12% 8%, rgba(210, 118, 62, 0.11), transparent 66%),
        radial-gradient(980px 640px at 88% 86%, rgba(191, 99, 52, 0.08), transparent 72%),
        linear-gradient(to right, rgba(13, 10, 9, 0.88) 0%, rgba(17, 13, 11, 0.86) 42%, rgba(15, 12, 10, 0.36) 70%, rgba(17, 13, 11, 0.86) 100%);
}

html.theme-telegram body .auth-card {
    border-color: #273649;
    background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .01)), #141d29;
}

html.theme-telegram body .auth-card .qr-box {
    border-color: #3a475a;
    background: #11171f;
}

html:not(.theme-telegram) body .bot-card {
    border-color: rgba(124, 104, 87, 0.44);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)), rgba(25, 21, 18, 0.88);
}

html:not(.theme-telegram) body .auth-card {
    border-color: rgba(124, 104, 87, 0.44);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)), rgba(25, 21, 18, 0.88);
}

html:not(.theme-telegram) body .auth-card .qr-box {
    border-color: rgba(124, 104, 87, 0.44);
    background: rgba(24, 19, 16, 0.72);
}

html:not(.theme-telegram) body .auth-card .status-pill {
    border-color: rgba(124, 104, 87, 0.44);
    background: rgba(56, 44, 35, 0.78);
    color: #f0dfcf;
}

html:not(.theme-telegram) body .auth-card .personal-data-consent,
html:not(.theme-telegram) body .auth-card .muted {
    color: #d0bba7;
}

html:not(.theme-telegram) body .auth-card .personal-data-consent a {
    color: #f5b46d;
}

html:not(.theme-telegram) body .auth-card .btn-primary {
    background: linear-gradient(180deg, #ffca2d 0%, #ff980b 100%);
    color: #231304;
}

html:not(.theme-telegram) body .auth-card .btn-primary:hover {
    background: linear-gradient(180deg, #ffd352 0%, #ffab2f 100%);
}

html:not(.theme-telegram) body .auth-card .btn-ghost {
    border-color: rgba(124, 104, 87, 0.44);
    background: rgba(56, 44, 35, 0.78);
    color: #f0dfcf;
}

html:not(.theme-telegram) body .auth-card .btn-ghost:hover {
    border-color: rgba(146, 122, 102, 0.54);
    background: rgba(70, 55, 44, 0.88);
}

html:not(.theme-telegram) body .bot-tab-empty {
    border-color: rgba(124, 104, 87, 0.44);
    color: #c8b8a8;
    background: rgba(25, 21, 18, 0.64);
}

html:not(.theme-telegram) body .bot-tabs {
    background: rgba(24, 19, 16, 0.58);
}

html:not(.theme-telegram) body .bot-tab-btn {
    color: #b9ab9e;
}

html:not(.theme-telegram) body .bot-tab-btn:hover {
    color: #f0e7de;
    background: rgba(255, 255, 255, 0.03);
}

html:not(.theme-telegram) body .bot-tab-btn.is-active {
    color: #fff5eb;
    background: rgba(56, 44, 35, 0.78);
}

html:not(.theme-telegram) body .plus-card {
    border-color: rgba(124, 104, 87, 0.44);
    background: rgba(25, 21, 18, 0.88);
}

html:not(.theme-telegram) body .plus-card:hover {
    background: rgba(37, 30, 24, 0.94);
    border-color: rgba(146, 122, 102, 0.54);
}

html:not(.theme-telegram) body .plus-card.plus-card-expanded:hover {
    background: rgba(25, 21, 18, 0.88);
    border-color: rgba(124, 104, 87, 0.44);
}

html:not(.theme-telegram) body .main-feature-card {
    background: #1f1a16;
    color: #f2ece5;
}

html:not(.theme-telegram) body .main-feature-card:hover {
    background: #2a231e;
}

html:not(.theme-telegram) body .main-feature-card.is-completed {
    background: #1f1a16;
}

html:not(.theme-telegram) body .service-tile {
    border-color: rgba(124, 104, 87, 0.44);
    background: rgba(25, 21, 18, 0.88);
}

html:not(.theme-telegram) body .service-tile input[type="checkbox"] {
    accent-color: #ff9f10;
}

html:not(.theme-telegram) body .field label,
html:not(.theme-telegram) body .service-title {
    color: #f2ece5;
}

html:not(.theme-telegram) body .ads-section-title {
    color: rgba(242, 236, 229, 0.56);
}

html:not(.theme-telegram) body .ads-service-icon {
    background: rgba(255, 255, 255, 0.035);
}

html:not(.theme-telegram) body .ads-service-status {
    background: #57dc72;
}

html:not(.theme-telegram) body .ads-clan-field {
    border-color: rgba(124, 104, 87, 0.44);
    background: rgba(25, 21, 18, 0.88);
}

html:not(.theme-telegram) body .ads-clan-field {
    color: #f2ece5;
}

html:not(.theme-telegram) body .field input,
html:not(.theme-telegram) body .field select {
    border-color: rgba(124, 104, 87, 0.44);
    background: rgba(30, 25, 22, 0.92);
    color: #f2ece5;
}

html:not(.theme-telegram) body .field input::placeholder {
    color: rgba(201, 183, 168, 0.66);
}

html:not(.theme-telegram) body .field select option {
    background: #1e1916;
    color: #f2ece5;
}

html:not(.theme-telegram) body .field select option:disabled {
    color: #8f7c6d;
}

html:not(.theme-telegram) body .number-btn {
    border-color: rgba(146, 122, 102, 0.54);
    background: rgba(255, 255, 255, 0.03);
    color: #e9d9ca;
}

html:not(.theme-telegram) body .number-btn:hover {
    background: rgba(255, 175, 94, 0.12);
    border-color: rgba(255, 175, 94, 0.56);
    color: #fff2e4;
}

html:not(.theme-telegram) body .inline-help {
    border-color: rgba(146, 122, 102, 0.62);
    color: #ebcfb4;
    background: rgba(255, 255, 255, 0.04);
}

html:not(.theme-telegram) body .inline-help-tip {
    border-color: rgba(124, 104, 87, 0.44);
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)), rgba(25, 21, 18, 0.94);
    color: #e8dacb;
}
