/* Extracted and New Styles for Tactics Pro App */

/* Modals & Overlays */
.tp-modal-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(4px);
    overflow-y: auto;
}

.tp-modal-box {
    background: #161b22;
    padding: 30px;
    border-radius: 14px;
    border: 1px solid #30363d;
    width: 450px;
    max-width: 100%;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.tp-modal-box h2 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 10px;
    text-align: center;
    line-height: 1.2;
}

.tp-modal-box p {
    color: #8b949e;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: center;
}

#tactics-pro-app .tp-modal-overlay .btn,
.tp-auth-wrapper .btn {
    min-height: 42px;
}

#tactics-pro-app .tp-modal-overlay .btn:focus-visible,
.tp-auth-wrapper .btn:focus-visible,
.tp-plan-card:focus-visible,
.tp-inp:focus-visible {
    outline: 3px solid rgba(88, 166, 255, 0.45);
    outline-offset: 3px;
}

/* Auth & Login Forms */
.tp-auth-wrapper {
    background: #0a0c10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    padding: 40px 20px;
}

.tp-auth-box {
    background: #161b22;
    padding: 40px;
    border-radius: 14px;
    border: 1px solid #30363d;
    width: 400px;
    max-width: 100%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.tp-auth-box.large {
    width: 640px;
}

.tp-auth-title {
    color: #58a6ff;
    margin: 0 0 10px 0;
    font-weight: 800;
    letter-spacing: 1px;
}

.tp-auth-title.danger {
    color: #da3633;
}

.tp-inp {
    width: 100%;
    padding: 12px;
    background: #0a0c10;
    border: 1px solid #30363d;
    color: white;
    border-radius: 6px;
    outline: none;
    font-size: 1rem;
    line-height: 1.4;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tp-inp:focus {
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.12);
}

.tp-inp::placeholder {
    color: #6e7681;
}

/* Plan Cards */
.tp-plan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.tp-plan-card {
    border: 2px solid #30363d;
    border-radius: 10px;
    padding: 16px 14px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    background: #0a0c10;
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tp-plan-card:hover,
.tp-plan-card:focus-visible {
    border-color: #58a6ff;
    transform: translateY(-1px);
}

.tp-plan-card.selected {
    border-color: #58a6ff;
    background: rgba(88, 166, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.14), 0 0 18px rgba(88, 166, 255, 0.18);
}

.tp-plan-title {
    color: #8b949e;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 5px;
}

.tp-plan-price {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 900;
}

/* Roster UI */
.tp-roster-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

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

.tp-roster-list-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.tp-roster-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #30363d;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.tp-roster-list-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    margin: 0;
}

.tp-player-tag {
    display: flex;
    flex-direction: column;
    background: #21262d;
    border: 1px solid #30363d;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.tp-player-tag-name {
    font-weight: bold;
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.tp-player-tag-meta {
    color: #8b949e;
    font-size: 0.8rem;
}

.tp-usage-bar-container {
    background: #0a0c10;
    border-radius: 4px;
    height: 10px;
    width: 100%;
    overflow: hidden;
    margin-top: 10px;
}

.tp-usage-bar {
    height: 100%;
    background: #238636;
    transition: width 0.3s ease;
}
.tp-usage-bar.warning { background: #d29922; }
.tp-usage-bar.danger { background: #da3633; }

.tp-upgrade-banner {
    background: rgba(210, 153, 34, 0.1);
    border: 1px solid #d29922;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tp-upgrade-banner p {
    margin: 0;
    color: #e3b341;
    font-size: 0.9rem;
}

/* Session Builder Selection UI */
#tactics-pro-app .drill-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    overflow: hidden;
}

#tactics-pro-app .drill-card:hover {
    border-color: #58a6ff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.32);
}

#tactics-pro-app .drill-card:focus-visible {
    outline: 3px solid rgba(88, 166, 255, 0.45);
    outline-offset: 3px;
}

#tactics-pro-app .drill-card.is-selected {
    border-color: #2ea043 !important;
    box-shadow: 0 0 0 3px rgba(46, 160, 67, 0.28), 0 10px 28px rgba(0,0,0,0.35) !important;
    transform: translateY(-2px);
}

#tactics-pro-app .drill-card.is-selected::after {
    content: 'Selected';
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: #2ea043;
    color: white;
    min-width: 82px;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.72rem;
    z-index: 20;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.18);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Communications Tab Layout */
.tp-comm-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 992px) {
    .tp-comm-layout {
        grid-template-columns: 1fr;
    }
}

.tp-comm-sidebar {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 20px;
    position: sticky;
    top: 20px;
}

.tp-comm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.tp-selectable-card {
    background: #0a0c10;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 10px;
    cursor: pointer;
    transition: 0.2s;
    position: relative;
}

.tp-selectable-card:hover {
    border-color: #58a6ff;
}

.tp-selectable-card.is-selected {
    border-color: #2ea043;
    background: rgba(46, 160, 67, 0.1);
}

.tp-selectable-card.is-selected::before {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    color: #2ea043;
    font-weight: bold;
}

.tp-selectable-title {
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    margin: 0 0 5px 0;
    padding-right: 20px;
}

.tp-selectable-meta {
    color: #8b949e;
    font-size: 0.75rem;
    margin: 0;
}

/* Batch 4 UX polish: responsive forms, modal safety, and clearer selected states */
@media (max-width: 720px) {
    .tp-auth-wrapper {
        align-items: flex-start;
        padding: 24px 14px;
    }

    .tp-auth-box,
    .tp-auth-box.large {
        padding: 24px 18px;
        width: 100%;
    }

    .tp-plan-grid {
        grid-template-columns: 1fr;
    }

    .tp-modal-overlay {
        align-items: flex-start;
        padding: 16px;
    }

    .tp-modal-box {
        padding: 22px 18px;
        max-height: calc(100vh - 32px);
    }

    .tp-upgrade-banner {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .tp-comm-sidebar {
        position: static;
    }

    .tp-comm-grid {
        grid-template-columns: 1fr;
        max-height: none;
        padding-right: 0;
    }

    #tactics-pro-app .drill-card.is-selected::after {
        right: 10px;
        bottom: 10px;
    }
}

/* [CHANGE START] Batch 17 — Shared form design system
   Establishes a consistent professional form language for onboarding, auth,
   roster, communications, share, and review surfaces without changing behavior. */
.tp-form-card,
#tactics-pro-app .tp-form-card {
    background: linear-gradient(180deg, rgba(22, 27, 34, 0.98), rgba(13, 17, 23, 0.98));
    border: 1px solid #30363d;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.tp-form-card + .tp-form-card,
#tactics-pro-app .tp-form-card + .tp-form-card {
    margin-top: 18px;
}

.tp-form-header,
#tactics-pro-app .tp-form-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.tp-form-kicker,
#tactics-pro-app .tp-form-kicker {
    color: #58a6ff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tp-form-title,
#tactics-pro-app .tp-form-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
}

.tp-form-subtitle,
.tp-field-help,
#tactics-pro-app .tp-form-subtitle,
#tactics-pro-app .tp-field-help {
    color: #8b949e;
    font-size: 0.84rem;
    line-height: 1.5;
    margin: 0;
}

.tp-form-grid,
#tactics-pro-app .tp-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tp-form-grid--single,
#tactics-pro-app .tp-form-grid--single {
    grid-template-columns: 1fr;
}

.tp-form-grid--three,
#tactics-pro-app .tp-form-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tp-form-row,
#tactics-pro-app .tp-form-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.tp-form-actions,
#tactics-pro-app .tp-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.tp-form-actions .btn.full-width,
#tactics-pro-app .tp-form-actions .btn.full-width {
    width: auto;
}

.tp-form-section,
#tactics-pro-app .tp-form-section {
    border-top: 1px solid rgba(48, 54, 61, 0.9);
    padding-top: 18px;
    margin-top: 18px;
}

.tp-form-section:first-child,
#tactics-pro-app .tp-form-section:first-child {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

.tp-field-label,
.tp-modal-box .input-group label,
.tp-auth-box label,
#tactics-pro-app .tp-field-label,
#tactics-pro-app .settings-card .input-group label,
#tactics-pro-app .tp-comm-sidebar .input-group label,
#tactics-pro-app .tp-modal-box .input-group label {
    display: block;
    color: #c9d1d9;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 7px;
}

.tp-field-required,
#tactics-pro-app .tp-field-required {
    color: #f85149;
    font-weight: 900;
}

.tp-inp,
.tp-modal-box .tp-inp,
#tactics-pro-app .tp-inp,
#tactics-pro-app input.tp-inp,
#tactics-pro-app select.tp-inp,
#tactics-pro-app textarea.tp-inp {
    min-height: 44px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 10px;
    color: #ffffff;
    padding: 11px 13px;
    font-size: 0.92rem;
    line-height: 1.45;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

textarea.tp-inp,
#tactics-pro-app textarea.tp-inp {
    min-height: 110px;
    resize: vertical;
}

.tp-inp:hover,
#tactics-pro-app .tp-inp:hover {
    border-color: #3f4a56;
}

.tp-inp:focus,
#tactics-pro-app .tp-inp:focus,
#tactics-pro-app input.tp-inp:focus,
#tactics-pro-app select.tp-inp:focus,
#tactics-pro-app textarea.tp-inp:focus {
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.14);
    background: #090d13;
}

.tp-inp::placeholder,
#tactics-pro-app .tp-inp::placeholder {
    color: #6e7681;
}

.tp-inp[readonly],
#tactics-pro-app .tp-inp[readonly] {
    background: rgba(88, 166, 255, 0.06);
    border-color: rgba(88, 166, 255, 0.28);
}

.tp-status-message,
#tactics-pro-app .tp-status-message,
#commStatus,
#shareEmailStatus {
    min-height: 22px;
    margin-top: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.84rem;
    line-height: 1.35;
    text-align: center;
    color: #8b949e;
    background: rgba(127, 127, 127, 0.06);
    border: 1px solid rgba(48, 54, 61, 0.8);
}

#commStatus:empty,
#shareEmailStatus:empty,
.tp-status-message:empty,
#tactics-pro-app .tp-status-message:empty {
    display: none;
}

.tp-status-success,
#tactics-pro-app .tp-status-success {
    color: #7ee787;
    background: rgba(46, 160, 67, 0.1);
    border-color: rgba(46, 160, 67, 0.36);
}

.tp-status-error,
#tactics-pro-app .tp-status-error {
    color: #ff7b72;
    background: rgba(248, 81, 73, 0.1);
    border-color: rgba(248, 81, 73, 0.36);
}

.tp-status-warning,
#tactics-pro-app .tp-status-warning {
    color: #e3b341;
    background: rgba(210, 153, 34, 0.1);
    border-color: rgba(210, 153, 34, 0.36);
}

.tp-modal-box {
    background: linear-gradient(180deg, #161b22 0%, #0d1117 100%);
    border-radius: 18px;
    padding: 28px;
}

.tp-modal-box h2 {
    font-size: 1.45rem;
    letter-spacing: -0.02em;
}

.tp-modal-box .input-group {
    text-align: left;
    margin-bottom: 14px;
}

.tp-modal-box .input-group small {
    display: block;
    color: #8b949e !important;
    font-size: 0.76rem;
    line-height: 1.45;
    margin-top: 7px;
}

.tp-auth-box {
    background: linear-gradient(180deg, #161b22 0%, #0d1117 100%);
    border-radius: 18px;
}

.tp-auth-box .tp-inp {
    margin-bottom: 14px;
}

.tp-auth-box p,
.tp-auth-box .tp-form-subtitle {
    color: #8b949e;
}

.tp-plan-card {
    border-radius: 14px;
    background: linear-gradient(180deg, #0d1117 0%, #090d13 100%);
}

.tp-plan-card.selected {
    border-color: #58a6ff;
    background: linear-gradient(180deg, rgba(88, 166, 255, 0.16), rgba(88, 166, 255, 0.07));
}

.tp-comm-sidebar {
    border-radius: 14px;
    background: linear-gradient(180deg, #161b22 0%, #0d1117 100%);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.tp-comm-sidebar h3,
.tp-roster-grid h3,
#tactics-pro-app .settings-card h3 {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.tp-selectable-card {
    border-radius: 12px;
    padding: 14px;
    background: linear-gradient(180deg, #0d1117 0%, #090d13 100%);
}

.tp-selectable-card.is-selected {
    border-color: #2ea043;
    background: linear-gradient(180deg, rgba(46, 160, 67, 0.15), rgba(46, 160, 67, 0.06));
    box-shadow: 0 0 0 3px rgba(46, 160, 67, 0.12);
}

.tp-selectable-title {
    line-height: 1.35;
}

.tp-roster-list-card {
    border-radius: 14px;
    background: linear-gradient(180deg, #161b22 0%, #0d1117 100%);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.tp-roster-list-header {
    gap: 12px;
}

.tp-player-tag {
    border-radius: 10px;
    background: rgba(13, 17, 23, 0.88);
}

.tp-usage-bar-container {
    height: 12px;
    border: 1px solid rgba(48, 54, 61, 0.7);
}

@media (max-width: 720px) {
    .tp-form-grid,
    .tp-form-grid--three,
    #tactics-pro-app .tp-form-grid,
    #tactics-pro-app .tp-form-grid--three {
        grid-template-columns: 1fr;
    }

    .tp-form-actions,
    #tactics-pro-app .tp-form-actions {
        justify-content: stretch;
    }

    .tp-form-actions .btn,
    #tactics-pro-app .tp-form-actions .btn {
        width: 100%;
    }

    .tp-modal-box {
        border-radius: 14px;
        padding: 22px 18px;
    }
}
/* [CHANGE END] */

/* [CHANGE START] Batch 18: refined roster and communications form layouts */
#tactics-pro-app .tp-comm-layout--refined {
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    align-items: start;
}

#tactics-pro-app .tp-comm-layout--refined .tp-comm-sidebar,
#tactics-pro-app .tp-roster-create-card,
#tactics-pro-app .tp-usage-card {
    padding: 18px;
}

#tactics-pro-app .tp-comm-content-panel,
#tactics-pro-app .tp-roster-list-panel {
    min-width: 0;
}

#tactics-pro-app .tp-comm-content-header,
#tactics-pro-app .tp-roster-list-panel > .tp-form-header {
    margin-bottom: 16px;
}

#tactics-pro-app .tp-comm-content-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

#tactics-pro-app .tp-comm-count {
    flex: 0 0 auto;
    border: 1px solid rgba(88, 166, 255, 0.28);
    background: rgba(88, 166, 255, 0.08);
    color: #c9d1d9;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

#tactics-pro-app .tp-selected-summary {
    display: grid;
    gap: 5px;
    margin: 14px 0 0;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(48, 54, 61, 0.9);
    background: rgba(13, 17, 23, 0.78);
}

#tactics-pro-app .tp-selected-summary strong {
    color: #f0f6fc;
    font-size: 0.78rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

#tactics-pro-app .tp-selected-summary span {
    color: #8b949e;
    font-size: 0.82rem;
    line-height: 1.45;
}

#tactics-pro-app .tp-comm-grid {
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 12px;
    max-height: min(66vh, 680px);
    padding: 2px 8px 8px 2px;
    overscroll-behavior: contain;
}

#tactics-pro-app .tp-selectable-card {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-height: 112px;
    text-align: left;
    display: grid;
    align-content: start;
    gap: 7px;
    border-radius: 14px;
    padding: 13px;
    color: inherit;
}

#tactics-pro-app .tp-selectable-card:focus-visible {
    outline: 3px solid rgba(88, 166, 255, 0.42);
    outline-offset: 3px;
}

#tactics-pro-app .tp-selectable-card.is-selected::before {
    top: 9px;
    right: 10px;
}

#tactics-pro-app .tp-content-badge {
    width: fit-content;
    color: #58a6ff;
    background: rgba(88, 166, 255, 0.08);
    border: 1px solid rgba(88, 166, 255, 0.26);
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

#tactics-pro-app .tp-selectable-card.is-selected .tp-content-badge {
    color: #7ee787;
    background: rgba(46, 160, 67, 0.12);
    border-color: rgba(46, 160, 67, 0.34);
}

#tactics-pro-app .tp-selectable-title {
    display: block;
    padding-right: 18px;
    font-size: 0.92rem;
    line-height: 1.3;
}

#tactics-pro-app .tp-selectable-meta {
    display: block;
    line-height: 1.35;
}

#tactics-pro-app .tp-empty-panel {
    border: 1px dashed rgba(88, 166, 255, 0.28);
    background: rgba(88, 166, 255, 0.055);
    border-radius: 14px;
    padding: 18px;
    color: #8b949e;
}

#tactics-pro-app .tp-empty-panel h4 {
    margin: 0 0 5px;
    color: #f0f6fc;
}

#tactics-pro-app .tp-empty-panel p {
    margin: 0;
}

#tactics-pro-app .tp-roster-grid--refined {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    align-items: start;
}

#tactics-pro-app .tp-roster-list-card {
    padding: 14px;
}

#tactics-pro-app .tp-roster-list-header {
    align-items: flex-start;
}

#tactics-pro-app .tp-roster-count {
    display: inline-flex;
    margin-top: 4px;
    color: #8b949e;
    font-size: 0.76rem;
    font-weight: 700;
}

#tactics-pro-app .tp-roster-delete {
    padding: 6px 10px;
    font-size: 0.72rem;
    border-radius: 999px;
}

#tactics-pro-app .tp-roster-player-list {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 5px;
    overscroll-behavior: contain;
}

#tactics-pro-app .tp-roster-preview {
    margin-top: 12px;
}

#tactics-pro-app .tp-preview-empty,
#tactics-pro-app .tp-preview-warning,
#tactics-pro-app .tp-preview-more {
    border-radius: 10px;
    padding: 10px 11px;
    font-size: 0.82rem;
    line-height: 1.4;
}

#tactics-pro-app .tp-preview-empty {
    color: #8b949e;
    background: rgba(127, 127, 127, 0.06);
    border: 1px solid rgba(48, 54, 61, 0.8);
}

#tactics-pro-app .tp-preview-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #f0f6fc;
    font-size: 0.82rem;
    margin-bottom: 8px;
}

#tactics-pro-app .tp-preview-header span {
    color: #8b949e;
}

#tactics-pro-app .tp-preview-list {
    display: grid;
    gap: 6px;
}

#tactics-pro-app .tp-preview-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto;
    gap: 8px;
    align-items: center;
    background: rgba(13, 17, 23, 0.78);
    border: 1px solid rgba(48, 54, 61, 0.8);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.78rem;
}

#tactics-pro-app .tp-preview-row span,
#tactics-pro-app .tp-preview-row em {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#tactics-pro-app .tp-preview-row em {
    color: #8b949e;
    font-style: normal;
}

#tactics-pro-app .tp-preview-row.is-valid {
    border-color: rgba(46, 160, 67, 0.26);
}

#tactics-pro-app .tp-preview-more {
    color: #8b949e;
    background: rgba(127, 127, 127, 0.05);
    border: 1px solid rgba(48, 54, 61, 0.7);
    margin-top: 6px;
}

#tactics-pro-app .tp-preview-warning {
    color: #e3b341;
    background: rgba(210, 153, 34, 0.09);
    border: 1px solid rgba(210, 153, 34, 0.34);
    margin-top: 8px;
}

@media (max-width: 992px) {
    #tactics-pro-app .tp-comm-layout--refined,
    #tactics-pro-app .tp-roster-grid--refined {
        grid-template-columns: 1fr;
    }

    #tactics-pro-app .tp-comm-sidebar {
        position: relative;
        top: auto;
    }
}

@media (max-width: 640px) {
    #tactics-pro-app .tp-comm-content-header,
    #tactics-pro-app .tp-preview-header {
        flex-direction: column;
        align-items: stretch;
    }

    #tactics-pro-app .tp-preview-row {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}
/* [CHANGE END] */


/* [CHANGE START] Batch 31 — shared visual hierarchy and reusable UI states
   Reusable classes for section cards, process steps, forms, controls, alerts,
   notices, and in-app feedback across Front Office, Playmaker, Film Room, and Guide. */
#tactics-pro-app .tp-page-heading {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
    color: #ffffff;
    letter-spacing: -0.02em;
}

#tactics-pro-app .tp-page-heading .tp-page-subtitle,
#tactics-pro-app .tp-page-subtitle {
    color: var(--tp-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0;
}

#tactics-pro-app .tp-section-card,
#tactics-pro-app .settings-card.tp-section-card,
#tactics-pro-app .tp-form-card.tp-section-card {
    position: relative;
    overflow: hidden;
    border-color: var(--tp-border-strong);
    box-shadow: var(--tp-shadow-card);
}

#tactics-pro-app .tp-section-card::before,
#tactics-pro-app .settings-card.tp-section-card::before,
#tactics-pro-app .tp-form-card.tp-section-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--tp-primary);
}

#tactics-pro-app .tp-section-card > *,
#tactics-pro-app .settings-card.tp-section-card > *,
#tactics-pro-app .tp-form-card.tp-section-card > * {
    position: relative;
    z-index: 1;
}

#tactics-pro-app .tp-section-card--primary {
    background: linear-gradient(180deg, rgba(88, 166, 255, 0.12), rgba(13, 17, 23, 0.92));
}

#tactics-pro-app .tp-section-card--success {
    background: linear-gradient(180deg, rgba(46, 160, 67, 0.12), rgba(13, 17, 23, 0.92));
}

#tactics-pro-app .tp-section-card--warning {
    background: linear-gradient(180deg, rgba(210, 153, 34, 0.13), rgba(13, 17, 23, 0.92));
}

#tactics-pro-app .tp-section-card--danger {
    background: linear-gradient(180deg, rgba(248, 81, 73, 0.12), rgba(13, 17, 23, 0.92));
}

#tactics-pro-app .tp-section-card--quiet {
    background: linear-gradient(180deg, rgba(127, 127, 127, 0.07), rgba(13, 17, 23, 0.92));
}

#tactics-pro-app .tp-section-card--primary::before { background: var(--tp-primary); }
#tactics-pro-app .tp-section-card--success::before { background: var(--tp-success); }
#tactics-pro-app .tp-section-card--warning::before { background: var(--tp-warning); }
#tactics-pro-app .tp-section-card--danger::before { background: var(--tp-danger); }
#tactics-pro-app .tp-section-card--quiet::before { background: var(--tp-border-strong); }

#tactics-pro-app .tp-section-card--warning .tp-form-kicker,
#tactics-pro-app .tp-section-card--warning h3 {
    color: #e3b341;
}

#tactics-pro-app .tp-section-card--success .tp-form-kicker,
#tactics-pro-app .tp-section-card--success h3 {
    color: #7ee787;
}

#tactics-pro-app .tp-section-card--danger .tp-form-kicker,
#tactics-pro-app .tp-section-card--danger h3 {
    color: #ff7b72;
}

#tactics-pro-app .tp-section-card--quiet .tp-form-kicker,
#tactics-pro-app .tp-section-card--quiet h3 {
    color: var(--tp-text-main);
}

#tactics-pro-app .tp-build-form-row,
#tactics-pro-app .tp-action-strip {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr) auto;
    gap: 15px;
    align-items: end;
}

#tactics-pro-app .tp-action-strip {
    grid-template-columns: 1fr auto;
    align-items: center;
}

#tactics-pro-app .tp-control-panel,
#tactics-pro-app .tp-selected-summary,
#tactics-pro-app .tp-preview-header,
#tactics-pro-app .tp-account-detail-row,
#tactics-pro-app .tp-guide-section li {
    background: rgba(13, 17, 23, 0.66);
    border: 1px solid rgba(70, 81, 95, 0.7);
}

#tactics-pro-app .tp-account-detail-row {
    border-radius: 12px;
    padding: 11px 12px;
    gap: 14px;
}

#tactics-pro-app .tp-account-detail-label small,
#tactics-pro-app .tp-account-detail-value small {
    color: var(--tp-text-muted);
    font-weight: 600;
}

#tactics-pro-app .tp-chip,
#tactics-pro-app .tp-comm-count,
#tactics-pro-app .tp-content-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 6px;
    border-radius: 999px;
    border: 1px solid rgba(88, 166, 255, 0.28);
    background: rgba(88, 166, 255, 0.09);
    color: #c9d1d9;
    padding: 5px 9px;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#tactics-pro-app .tp-chip--success { border-color: rgba(46, 160, 67, 0.36); background: rgba(46, 160, 67, 0.12); color: #7ee787; }
#tactics-pro-app .tp-chip--warning { border-color: rgba(210, 153, 34, 0.38); background: rgba(210, 153, 34, 0.12); color: #e3b341; }
#tactics-pro-app .tp-chip--danger { border-color: rgba(248, 81, 73, 0.38); background: rgba(248, 81, 73, 0.12); color: #ff7b72; }

#tactics-pro-app .tp-status-message,
#tactics-pro-app #commStatus,
#tactics-pro-app #shareEmailStatus,
#tactics-pro-app .tp-alert,
#tactics-pro-app .tp-notice {
    text-align: left;
    border-left: 4px solid var(--tp-border-strong);
    box-shadow: 0 8px 18px rgba(0,0,0,0.14);
}

#tactics-pro-app .tp-status-success {
    border-left-color: var(--tp-success);
}

#tactics-pro-app .tp-status-error {
    border-left-color: var(--tp-danger);
}

#tactics-pro-app .tp-status-warning {
    border-left-color: var(--tp-warning);
}

#tactics-pro-app .tp-notice {
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--tp-text-main);
    background: rgba(88, 166, 255, 0.08);
    border-color: rgba(88, 166, 255, 0.28);
    border-left-color: var(--tp-primary);
    font-size: 0.84rem;
    line-height: 1.45;
}

#tactics-pro-app .btn {
    border: 1px solid transparent;
    min-height: 38px;
    gap: 6px;
}

#tactics-pro-app .btn.secondary,
#tactics-pro-app .btn.ghost,
#tactics-pro-app .btn.tp-btn-outline {
    background: rgba(13, 17, 23, 0.65);
    border-color: var(--tp-border-strong);
    color: var(--tp-text-main);
}

#tactics-pro-app .btn.ghost {
    background: transparent;
}

#tactics-pro-app .btn.compact {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 0.74rem;
    border-radius: 999px;
}

#tactics-pro-app .btn:focus-visible,
#tactics-pro-app .btn-icon:focus-visible,
#tactics-pro-app .nav-btn:focus-visible,
#tactics-pro-app .tp-fo-tab:focus-visible,
#tactics-pro-app .tp-selectable-card:focus-visible {
    outline: none;
    box-shadow: var(--tp-focus-ring);
}

#tactics-pro-app .btn:disabled,
#tactics-pro-app .btn-icon:disabled,
#tactics-pro-app .tp-inp:disabled,
#tactics-pro-app .tp-control-locked {
    opacity: 0.58;
    cursor: not-allowed;
}

#tactics-pro-app .tp-fo-header-bar {
    background: linear-gradient(180deg, rgba(22, 27, 34, 0.96), rgba(13, 17, 23, 0.92));
    border-color: var(--tp-border-strong);
    border-radius: var(--tp-radius-lg);
    box-shadow: var(--tp-shadow-soft);
}

#tactics-pro-app .tp-fo-tabs {
    background: rgba(10, 12, 16, 0.46);
    border: 1px solid rgba(70, 81, 95, 0.45);
    border-radius: 999px;
    padding: 4px;
}

#tactics-pro-app .tp-fo-tab {
    border-radius: 999px;
}

#tactics-pro-app .tp-fo-tab.is-active {
    box-shadow: 0 8px 18px rgba(88, 166, 255, 0.18);
}

#tactics-pro-app .tp-fo-steps-horizontal li {
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(22, 27, 34, 0.92), rgba(13, 17, 23, 0.88));
    border-color: rgba(88, 166, 255, 0.22);
    min-height: 92px;
}

#tactics-pro-app .tp-fo-steps-horizontal li::before {
    box-shadow: 0 0 0 4px rgba(88, 166, 255, 0.12);
}

#tactics-pro-app .tp-fo-tip-row {
    border: 1px solid rgba(70, 81, 95, 0.6);
    background: rgba(13, 17, 23, 0.58);
    border-radius: 12px;
    padding: 11px 12px;
}

#tactics-pro-app .tp-fo-tip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(88, 166, 255, 0.12);
    color: var(--tp-primary);
    font-weight: 900;
}

#tactics-pro-app .toolbar-wing {
    background: linear-gradient(180deg, rgba(22, 27, 34, 0.98), rgba(13, 17, 23, 0.96));
}

#tactics-pro-app .wing-section {
    border: 1px solid rgba(70, 81, 95, 0.58);
    border-radius: 14px;
    padding: 14px;
    background: rgba(13, 17, 23, 0.48);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

#tactics-pro-app .wing-section h3 {
    color: #f0f6fc;
    letter-spacing: 0.09em;
}

#tactics-pro-app .drill-header-info {
    border: 1px solid rgba(88, 166, 255, 0.24);
    background: rgba(88, 166, 255, 0.07);
    border-radius: 12px;
    padding: 11px 12px;
    margin-bottom: 14px;
}

#tactics-pro-app .control-row,
#tactics-pro-app .key-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(33, 38, 45, 0.62);
    border: 1px solid rgba(70, 81, 95, 0.5);
    color: var(--tp-text-main);
}

#tactics-pro-app .timeline-bar,
#tactics-pro-app .variant-bar {
    background: linear-gradient(180deg, rgba(22, 27, 34, 0.98), rgba(13, 17, 23, 0.96));
    border-color: var(--tp-border-strong);
}

#tactics-pro-app .step-item {
    border-color: rgba(70, 81, 95, 0.65);
    box-shadow: 0 6px 14px rgba(0,0,0,0.16);
}

#tactics-pro-app .step-item.active {
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.18);
}

#tactics-pro-app .library-header {
    background: linear-gradient(180deg, rgba(22, 27, 34, 0.96), rgba(13, 17, 23, 0.92));
    border: 1px solid var(--tp-border-strong);
    border-radius: var(--tp-radius-lg);
    padding: 18px;
    box-shadow: var(--tp-shadow-soft);
    margin-bottom: 20px;
}

#tactics-pro-app .library-header h1 {
    margin: 0;
}

#tactics-pro-app #tagFilterSelect {
    min-height: 40px;
    border-radius: 999px !important;
    border-color: var(--tp-border-strong) !important;
}

#tactics-pro-app .tp-guide-header {
    border: 1px solid var(--tp-border-strong);
    border-radius: var(--tp-radius-lg);
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.14), rgba(13, 17, 23, 0.92));
    box-shadow: var(--tp-shadow-soft);
    padding: 24px;
}

#tactics-pro-app .tp-guide-nav,
#tactics-pro-app .tp-guide-content {
    border-color: var(--tp-border-strong);
    box-shadow: var(--tp-shadow-soft);
}

#tactics-pro-app .tp-guide-section {
    border-bottom: 1px solid rgba(70, 81, 95, 0.58);
    padding-bottom: 26px;
}

#tactics-pro-app .tp-guide-section li {
    border-radius: 10px;
    padding: 9px 11px;
    margin-bottom: 8px;
    line-height: 1.45;
}

#tactics-pro-app .tp-toast-region {
    position: fixed;
    top: 84px;
    right: 22px;
    z-index: 1000000;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 32px));
    pointer-events: none;
}

#tactics-pro-app .tp-toast {
    border-radius: 14px;
    border: 1px solid var(--tp-border-strong);
    border-left: 4px solid var(--tp-primary);
    background: linear-gradient(180deg, rgba(22, 27, 34, 0.98), rgba(13, 17, 23, 0.98));
    box-shadow: var(--tp-shadow-card);
    color: #f0f6fc;
    padding: 12px 14px;
    font-size: 0.86rem;
    line-height: 1.45;
    pointer-events: auto;
}

#tactics-pro-app .tp-toast--success { border-left-color: var(--tp-success); }
#tactics-pro-app .tp-toast--warning { border-left-color: var(--tp-warning); }
#tactics-pro-app .tp-toast--error { border-left-color: var(--tp-danger); }

@media (max-width: 900px) {
    #tactics-pro-app .tp-build-form-row,
    #tactics-pro-app .tp-action-strip {
        grid-template-columns: 1fr;
    }

    #tactics-pro-app .tp-fo-tabs {
        border-radius: 14px;
        justify-content: flex-start;
    }

    #tactics-pro-app .tp-fo-tab {
        border-radius: 999px;
    }
}

@media (max-width: 640px) {
    #tactics-pro-app .tp-toast-region {
        top: 70px;
        right: 12px;
        width: calc(100vw - 24px);
    }

    #tactics-pro-app .tp-section-card::before,
    #tactics-pro-app .settings-card.tp-section-card::before,
    #tactics-pro-app .tp-form-card.tp-section-card::before {
        width: 4px;
    }
}
/* [CHANGE END] */


/* [CHANGE START] Batch 32 — reusable contrast system for process, controls, and action panels */
#tactics-pro-app .tp-panel-block {
    position: relative;
    border-left: 4px solid var(--tp-primary);
}

#tactics-pro-app .tp-panel-block--squad { border-left-color: var(--tp-success); }
#tactics-pro-app .tp-panel-block--tools { border-left-color: var(--tp-warning); }
#tactics-pro-app .tp-panel-block--notes { border-left-color: var(--tp-primary); }
#tactics-pro-app .tp-panel-block--legend { border-left-color: var(--tp-border-strong); }

#tactics-pro-app .tp-panel-kicker,
#tactics-pro-app .tp-context-label {
    display: block;
    margin: 0 0 7px;
    color: var(--tp-text-muted);
    font-size: 0.69rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

#tactics-pro-app .tp-panel-help {
    margin: -3px 0 12px;
    color: var(--tp-text-muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

#tactics-pro-app .tp-ai-tactics-panel {
    margin-top: 18px;
    padding: 12px;
    border: 1px solid rgba(88, 166, 255, 0.18);
    border-radius: 12px;
    background: rgba(88, 166, 255, 0.055);
}

#tactics-pro-app .tp-ai-tactics-panel h3 {
    border: none;
    margin-bottom: 9px;
}

#tactics-pro-app .tp-ai-tactics-grid,
#tactics-pro-app .tp-context-grid {
    display: grid;
    gap: 7px;
}

#tactics-pro-app .tp-ai-tactics-grid,
#tactics-pro-app .tp-context-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#tactics-pro-app .tp-context-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#tactics-pro-app .tp-context-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#tactics-pro-app .tp-context-grid--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }

#tactics-pro-app .tp-tactic-btn,
#tactics-pro-app .tp-option-btn {
    min-height: 34px;
    padding: 7px 8px;
    background: rgba(13, 17, 23, 0.72);
    color: var(--tp-text-main);
    border-color: rgba(70, 81, 95, 0.72);
    font-size: 0.72rem;
    font-weight: 850;
    line-height: 1.15;
}

#tactics-pro-app .tp-tactic-btn--defense {
    color: #79c0ff;
    border-color: rgba(88, 166, 255, 0.48);
    background: rgba(88, 166, 255, 0.08);
}

#tactics-pro-app .tp-tactic-btn--offense {
    color: #ff7b72;
    border-color: rgba(248, 81, 73, 0.46);
    background: rgba(248, 81, 73, 0.08);
}

#tactics-pro-app .tp-tactic-btn--wide,
#tactics-pro-app .tp-option-btn--wide {
    grid-column: 1 / -1;
}

#tactics-pro-app .tp-option-btn.is-active {
    color: #06101f;
    background: var(--tp-primary);
    border-color: var(--tp-primary);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.16);
}

#tactics-pro-app .tp-mode-toggle {
    margin-top: 15px;
    border-width: 2px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

#tactics-pro-app .tp-timeline-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

#tactics-pro-app .tp-mobile-tool-btn {
    background: var(--tp-primary);
    color: #06101f;
}

#tactics-pro-app .tp-inline-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 6px 9px;
    color: var(--tp-text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    border: 1px solid rgba(70, 81, 95, 0.6);
    border-radius: 999px;
    background: rgba(13, 17, 23, 0.54);
}

#tactics-pro-app .tp-inline-toggle input {
    accent-color: var(--tp-primary);
}

#tactics-pro-app .context-panel {
    display: grid;
    gap: 12px;
}

#tactics-pro-app .tp-context-empty {
    margin: 0;
    padding: 14px;
    border: 1px dashed rgba(88, 166, 255, 0.28);
    border-radius: 12px;
    background: rgba(88, 166, 255, 0.06);
    color: var(--tp-text-muted);
    line-height: 1.45;
}

#tactics-pro-app .tp-context-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--tp-border);
}

#tactics-pro-app .tp-context-header h4 {
    margin: 0;
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.25;
}

#tactics-pro-app .tp-context-group {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(70, 81, 95, 0.62);
    border-radius: 12px;
    background: rgba(13, 17, 23, 0.56);
}

#tactics-pro-app .tp-context-group--timeline {
    border-color: rgba(210, 153, 34, 0.32);
    background: rgba(210, 153, 34, 0.065);
}

#tactics-pro-app .tp-color-swatch {
    min-height: 30px;
    padding: 0;
    border-color: rgba(255, 255, 255, 0.2);
}

#tactics-pro-app .tp-color-red { background: #f85149; }
#tactics-pro-app .tp-color-blue { background: #38bdf8; }
#tactics-pro-app .tp-color-yellow { background: #e3b341; }
#tactics-pro-app .tp-color-orange { background: #e67e22; }
#tactics-pro-app .tp-color-green { background: #2ea043; }

#tactics-pro-app .tp-clear-route-btn {
    margin-top: 3px;
}

#tactics-pro-app .tp-library-actions,
#tactics-pro-app .tp-session-controls,
#tactics-pro-app .tp-session-save-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

#tactics-pro-app .tp-library-actions {
    justify-content: flex-end;
}

#tactics-pro-app .tp-session-selection-count {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(88, 166, 255, 0.32);
    background: rgba(88, 166, 255, 0.09);
    color: var(--tp-primary);
    font-size: 0.82rem;
    font-weight: 900;
}

#tactics-pro-app .tp-share-modal-box {
    width: 560px;
}

#tactics-pro-app .tp-share-dates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

#tactics-pro-app .tp-share-field-block {
    margin-top: 15px;
}

#tactics-pro-app .tp-modal-help {
    margin: 8px 0 0;
    padding: 10px 11px;
    border: 1px solid rgba(88, 166, 255, 0.22);
    border-radius: 10px;
    background: rgba(88, 166, 255, 0.07);
    text-align: left;
}

#tactics-pro-app .tp-modal-help strong {
    color: var(--tp-primary);
}

#tactics-pro-app .tp-modal-actions {
    margin-top: 16px;
}

#tactics-pro-app .tp-share-result-card {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid rgba(46, 160, 67, 0.34);
    border-radius: 12px;
    background: rgba(46, 160, 67, 0.08);
}

#tactics-pro-app .tp-share-result-card .tp-status-message {
    margin: 0 0 10px;
    color: #7ee787;
    text-align: left;
}

#tactics-pro-app .tp-share-link-output {
    margin-bottom: 10px;
    color: var(--tp-primary);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

#tactics-pro-app .tp-modal-close-btn {
    margin-top: 14px;
}

#tactics-pro-app .tp-highlight {
    position: relative;
    margin: 16px 0;
    padding: 13px 14px 13px 16px;
    border: 1px solid rgba(88, 166, 255, 0.26);
    border-left: 4px solid var(--tp-primary);
    border-radius: 12px;
    background: rgba(88, 166, 255, 0.075);
    color: var(--tp-text-main);
    line-height: 1.5;
}

#tactics-pro-app .tp-guide-section h3 {
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px solid rgba(70, 81, 95, 0.42);
}

#tactics-pro-app .tp-guide-content code {
    border: 1px solid rgba(88, 166, 255, 0.22);
    border-radius: 7px;
    background: rgba(88, 166, 255, 0.09);
}

@media (max-width: 780px) {
    #tactics-pro-app .tp-library-actions,
    #tactics-pro-app .tp-session-controls,
    #tactics-pro-app .tp-session-save-controls {
        width: 100%;
        justify-content: stretch;
    }

    #tactics-pro-app .tp-library-actions > *,
    #tactics-pro-app .tp-session-controls > *,
    #tactics-pro-app .tp-session-save-controls > * {
        flex: 1 1 auto;
    }

    #tactics-pro-app .tp-share-dates-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    #tactics-pro-app .tp-context-grid--four,
    #tactics-pro-app .tp-context-grid--five {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #tactics-pro-app .tp-timeline-actions .btn {
        flex: 1 1 auto;
    }
}
/* [CHANGE END] */

/* [CHANGE START] Batch 33 — Playmaker save controls and priority/secondary workspace layout */
#tactics-pro-app .tp-panel-block--drill { border-left-color: var(--tp-success); }

#tactics-pro-app .tp-playmaker-save-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
}

#tactics-pro-app #playmakerSaveStatus {
    margin-top: 12px;
}

#tactics-pro-app .tp-workspace-grid {
    grid-template-columns: minmax(0, 1.85fr) minmax(300px, 1fr);
    align-items: start;
}

#tactics-pro-app .tp-workspace-grid .tp-workspace-primary,
#tactics-pro-app .tp-workspace-grid .tp-workspace-secondary {
    grid-column: auto;
}

#tactics-pro-app .tp-workspace-grid .tp-workspace-primary {
    grid-column: 1;
}

#tactics-pro-app .tp-workspace-grid .tp-workspace-secondary {
    grid-column: 2;
}

#tactics-pro-app .tp-workspace-summary { order: 1; }
#tactics-pro-app .tp-workspace-readiness { order: 2; }
#tactics-pro-app .tp-workspace-invite { order: 3; }
#tactics-pro-app .tp-workspace-pending { order: 4; }
#tactics-pro-app .tp-workspace-members { order: 5; }
#tactics-pro-app .tp-workspace-permissions { order: 6; }
#tactics-pro-app .tp-workspace-checklist { order: 7; }

#tactics-pro-app .tp-workspace-secondary .tp-form-title {
    font-size: 1rem;
}

#tactics-pro-app .tp-workspace-secondary .tp-form-subtitle,
#tactics-pro-app .tp-workspace-secondary .tp-fo-body {
    font-size: 0.82rem;
}

#tactics-pro-app .tp-workspace-members .tp-account-detail-row,
#tactics-pro-app .tp-workspace-pending .tp-account-detail-row {
    align-items: flex-start;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(70, 81, 95, 0.38);
}

#tactics-pro-app .tp-workspace-members .tp-account-detail-row:last-child,
#tactics-pro-app .tp-workspace-pending .tp-account-detail-row:last-child {
    border-bottom: 0;
}

@media (max-width: 1100px) {
    #tactics-pro-app .tp-workspace-grid {
        grid-template-columns: 1fr;
    }

    #tactics-pro-app .tp-workspace-grid .tp-workspace-primary,
    #tactics-pro-app .tp-workspace-grid .tp-workspace-secondary {
        grid-column: 1;
    }
}

@media (max-width: 640px) {
    #tactics-pro-app .tp-playmaker-save-actions {
        grid-template-columns: 1fr;
    }
}
/* [CHANGE END] */

/* [CHANGE START] Batch 34 — workspace priority layout and clearer drill setup flow */
#tactics-pro-app .tp-build-form-row--sport {
    grid-template-columns: minmax(0, 1.55fr) minmax(160px, 0.9fr) minmax(170px, 0.8fr) auto;
}

#tactics-pro-app .tp-workspace-priority-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(320px, 0.95fr);
    gap: 22px;
    align-items: start;
}

#tactics-pro-app .tp-workspace-main-column,
#tactics-pro-app .tp-workspace-side-column {
    display: grid;
    gap: 18px;
    align-content: start;
}

#tactics-pro-app .tp-workspace-main-column .tp-section-card {
    min-height: 0;
}

#tactics-pro-app .tp-workspace-side-column {
    position: sticky;
    top: 88px;
}

#tactics-pro-app .tp-workspace-side-column .settings-card {
    padding: 18px;
}

#tactics-pro-app .tp-workspace-side-column .tp-form-title {
    font-size: 1rem;
}

#tactics-pro-app .tp-workspace-side-column .tp-form-subtitle,
#tactics-pro-app .tp-workspace-side-column .tp-fo-body {
    font-size: 0.82rem;
}

#tactics-pro-app .tp-workspace-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

#tactics-pro-app .tp-workspace-stat {
    display: grid;
    gap: 5px;
    min-height: 78px;
    padding: 13px;
    border: 1px solid rgba(88, 166, 255, 0.22);
    border-radius: 14px;
    background: rgba(13, 17, 23, 0.66);
}

#tactics-pro-app .tp-workspace-stat-label {
    color: var(--tp-text-muted);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

#tactics-pro-app .tp-workspace-stat strong {
    color: #ffffff;
    font-size: 1.08rem;
    line-height: 1.25;
}

#tactics-pro-app .tp-notice-card {
    padding: 12px 13px;
    border: 1px solid rgba(88, 166, 255, 0.26);
    border-left: 4px solid var(--tp-primary);
    border-radius: 12px;
    background: rgba(88, 166, 255, 0.075);
    color: var(--tp-text-main);
    font-size: 0.86rem;
    line-height: 1.45;
}

#tactics-pro-app .tp-notice-card--success {
    border-color: rgba(46, 160, 67, 0.28);
    border-left-color: var(--tp-success);
    background: rgba(46, 160, 67, 0.085);
}

#tactics-pro-app .tp-notice-card--warning {
    border-color: rgba(210, 153, 34, 0.3);
    border-left-color: var(--tp-warning);
    background: rgba(210, 153, 34, 0.085);
}

#tactics-pro-app .tp-form-grid--priority {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

#tactics-pro-app .tp-form-grid-span {
    grid-column: 1 / -1;
}

#tactics-pro-app .tp-member-list {
    display: grid;
    gap: 10px;
}

#tactics-pro-app .tp-member-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.72fr);
    gap: 16px;
    align-items: center;
    padding: 13px;
    border: 1px solid rgba(70, 81, 95, 0.7);
    border-radius: 14px;
    background: rgba(13, 17, 23, 0.62);
}

#tactics-pro-app .tp-member-identity,
#tactics-pro-app .tp-member-role {
    display: grid;
    gap: 4px;
}

#tactics-pro-app .tp-member-identity strong {
    color: #ffffff;
    font-size: 0.96rem;
}

#tactics-pro-app .tp-member-identity span,
#tactics-pro-app .tp-member-role small,
#tactics-pro-app .tp-reference-list span {
    color: var(--tp-text-muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

#tactics-pro-app .tp-chip--role {
    border-color: rgba(88, 166, 255, 0.3);
    color: var(--tp-primary);
}

#tactics-pro-app .tp-reference-list {
    display: grid;
    gap: 9px;
}

#tactics-pro-app .tp-reference-list > div,
#tactics-pro-app .tp-reference-list-row {
    display: grid;
    gap: 4px;
    padding: 10px 11px;
    border: 1px solid rgba(70, 81, 95, 0.52);
    border-radius: 12px;
    background: rgba(13, 17, 23, 0.54);
}

#tactics-pro-app .tp-reference-list strong {
    color: #ffffff;
    font-size: 0.85rem;
}

#tactics-pro-app .tp-permission-list,
#tactics-pro-app .tp-permission-details {
    display: grid;
    gap: 8px;
}

#tactics-pro-app .tp-permission-row {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 9px;
    padding: 9px 10px;
    border: 1px solid rgba(70, 81, 95, 0.52);
    border-radius: 12px;
    background: rgba(13, 17, 23, 0.54);
}

#tactics-pro-app .tp-permission-row span {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
}

#tactics-pro-app .tp-permission-row p {
    margin: 0;
    color: var(--tp-text-muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

#tactics-pro-app .tp-permission-row strong {
    color: #ffffff;
}

#tactics-pro-app .tp-permission-row.is-enabled span {
    color: #07120c;
    background: var(--tp-success);
}

#tactics-pro-app .tp-permission-row.is-disabled {
    opacity: 0.74;
}

#tactics-pro-app .tp-permission-row.is-disabled span {
    color: var(--tp-text-muted);
    background: rgba(127, 127, 127, 0.16);
}

#tactics-pro-app .tp-permission-details {
    margin-top: 2px;
    padding-top: 4px;
}

#tactics-pro-app .tp-permission-details summary {
    color: var(--tp-text-muted);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 850;
}

#tactics-pro-app .tp-panel-block--drill {
    background: linear-gradient(180deg, rgba(46, 160, 67, 0.10), rgba(13, 17, 23, 0.92));
}

#tactics-pro-app .tp-panel-block--drill .tp-playmaker-save-actions .btn {
    min-height: 39px;
}

@media (max-width: 1180px) {
    #tactics-pro-app .tp-workspace-priority-layout {
        grid-template-columns: 1fr;
    }

    #tactics-pro-app .tp-workspace-side-column {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    #tactics-pro-app .tp-build-form-row--sport,
    #tactics-pro-app .tp-workspace-stat-grid,
    #tactics-pro-app .tp-form-grid--priority,
    #tactics-pro-app .tp-member-row,
    #tactics-pro-app .tp-workspace-side-column {
        grid-template-columns: 1fr;
    }

    #tactics-pro-app .tp-build-form-row--sport .btn {
        width: 100%;
    }
}
/* [CHANGE END] */

/* [CHANGE START] Batch 46 — Playmaker accordions and basic/advanced controls */
#tactics-pro-app .tp-control-mode-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(88, 166, 255, 0.22);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(88, 166, 255, 0.10), rgba(13, 17, 23, 0.88));
    box-shadow: var(--tp-shadow-soft);
}

#tactics-pro-app .tp-control-mode-card strong {
    display: block;
    color: var(--tp-text-main);
    font-size: 0.92rem;
    line-height: 1.25;
}

#tactics-pro-app .tp-control-mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

#tactics-pro-app .tp-control-mode-btn {
    min-height: 34px;
    border: 1px solid rgba(70, 81, 95, 0.9);
    border-radius: 10px;
    background: rgba(13, 17, 23, 0.78);
    color: var(--tp-text-muted);
    cursor: pointer;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

#tactics-pro-app .tp-control-mode-btn:hover,
#tactics-pro-app .tp-control-mode-btn.is-active {
    background: var(--tp-primary);
    border-color: var(--tp-primary);
    color: #06101f;
}

#tactics-pro-app.tp-control-basic .tp-advanced-control {
    display: none !important;
}

#tactics-pro-app .tp-accordion {
    padding: 0;
    overflow: hidden;
}

#tactics-pro-app .tp-accordion-toggle {
    width: 100%;
    padding: 14px 14px;
    border: 0;
    border-bottom: 1px solid rgba(70, 81, 95, 0.5);
    background: rgba(255,255,255,0.02);
    color: var(--tp-text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.76rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
}

#tactics-pro-app .tp-accordion-toggle:hover {
    background: rgba(88, 166, 255, 0.08);
}

#tactics-pro-app .tp-accordion-chevron {
    color: var(--tp-text-muted);
    transition: transform 0.18s ease;
}

#tactics-pro-app .tp-accordion.is-open .tp-accordion-chevron {
    transform: rotate(180deg);
}

#tactics-pro-app .tp-accordion-body {
    padding: 14px;
}

#tactics-pro-app .tp-accordion:not(.is-open) .tp-accordion-body {
    display: none;
}

#tactics-pro-app .tp-accordion .drill-header-info {
    margin-bottom: 10px;
}

#tactics-pro-app .tp-accordion .tp-panel-help:first-child {
    margin-top: 0;
}
/* [CHANGE END] */


/* Batch 89: branch continuation indicators */
.step-item.has-branch-source {
    position: relative;
    border-color: rgba(140, 92, 242, .58) !important;
    box-shadow: 0 0 0 2px rgba(140, 92, 242, .10);
}
.tp-step-branch-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 18px;
    margin-left: 5px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(140, 92, 242, .14);
    color: #c7a8ff;
    border: 1px solid rgba(140, 92, 242, .38);
    font-size: .64rem;
    line-height: 1;
    font-weight: 950;
}
.step-item.active .tp-step-branch-mark {
    background: rgba(255,255,255,.20);
    color: #ffffff;
    border-color: rgba(255,255,255,.36);
}

/* =========================================================
   SaaS membership + quick-share UX — v2.0.27
   ========================================================= */
#tactics-pro-app .tp-read-only-banner{
    display:flex;align-items:center;justify-content:space-between;gap:16px;
    margin:0;padding:12px 18px;background:#fff8e7;border-bottom:1px solid #ead7a4;
    color:#4b3b12;box-sizing:border-box
}
#tactics-pro-app .tp-read-only-banner>div{display:flex;align-items:baseline;gap:10px;min-width:0}
#tactics-pro-app .tp-read-only-banner strong{font-size:.83rem;letter-spacing:.035em;text-transform:uppercase;white-space:nowrap}
#tactics-pro-app .tp-read-only-banner span{font-size:.82rem;line-height:1.35;color:#6a5520}
#tactics-pro-app .tp-read-only-banner a{flex:0 0 auto;padding:7px 11px;border:1px solid #8a6b19;background:#fff;color:#5b4512;text-decoration:none;font-weight:800;font-size:.78rem;border-radius:6px}

.tp-auth-box.large .tp-signup-billing-toggle{
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;width:min(390px,100%);margin:0 auto 14px;padding:4px;
    background:#161b22;border:1px solid #30363d;border-radius:8px
}
.tp-auth-box.large .tp-signup-billing-toggle button{
    min-height:36px;border:0;border-radius:5px;background:transparent;color:#8b949e;font-weight:800;cursor:pointer
}
.tp-auth-box.large .tp-signup-billing-toggle button.is-active{background:#238636;color:#fff;box-shadow:0 1px 4px rgba(0,0,0,.28)}
.tp-auth-box.large .tp-membership-plan-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:18px}
.tp-auth-box.large .tp-membership-plan-grid .tp-plan-card{min-height:154px;padding:14px;display:flex;flex-direction:column;align-items:flex-start;text-align:left}
.tp-auth-box.large .tp-membership-plan-grid .tp-plan-price{margin:7px 0 5px;font-size:1.1rem}
.tp-auth-box.large .tp-plan-description{font-size:.76rem;line-height:1.38;color:#9aa6b2;flex:1}
.tp-auth-box.large .tp-plan-seat-note{margin-top:10px;padding-top:8px;width:100%;border-top:1px solid rgba(139,148,158,.2);font-size:.72rem;font-weight:800;color:#c9d1d9}

#tactics-pro-app .tp-quick-share-modal{width:min(540px,calc(100vw - 28px));max-width:540px;padding:0;overflow:hidden}
#tactics-pro-app .tp-quick-share-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:20px 20px 12px}
#tactics-pro-app .tp-quick-share-head h2{margin:2px 0 5px;font-size:1.25rem}
#tactics-pro-app .tp-quick-share-head p{margin:0;max-width:430px;color:var(--tp-text-muted);font-size:.82rem;line-height:1.45}
#tactics-pro-app .tp-share-kicker{display:block;font-size:.68rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase;color:var(--tp-accent,#58a6ff)}
#tactics-pro-app .tp-share-close-icon{width:34px;height:34px;flex:0 0 34px;border:1px solid rgba(139,148,158,.32);border-radius:6px;background:transparent;color:var(--tp-text-main);font-size:1.35rem;line-height:1;cursor:pointer}
#tactics-pro-app .tp-quick-share-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:8px 20px 16px}
#tactics-pro-app .tp-quick-share-actions .btn{min-height:42px}
#tactics-pro-app .tp-share-result-card{margin:0 20px 14px;padding:12px;border:1px solid rgba(88,166,255,.28);background:rgba(88,166,255,.06);border-radius:8px}
#tactics-pro-app .tp-share-result-card .tp-status-message{margin:0 0 8px}
#tactics-pro-app .tp-share-link-output{font-size:.76rem}
#tactics-pro-app .tp-share-more{border-top:1px solid rgba(139,148,158,.22);border-bottom:1px solid rgba(139,148,158,.22)}
#tactics-pro-app .tp-share-more>summary{padding:13px 20px;cursor:pointer;font-size:.8rem;font-weight:850;color:var(--tp-text-main);list-style-position:inside}
#tactics-pro-app .tp-share-more-body{padding:2px 20px 18px}
#tactics-pro-app .tp-read-only-share-note{padding:11px 12px;background:rgba(210,153,34,.09);border:1px solid rgba(210,153,34,.28);border-radius:7px;color:#d8b85e;font-size:.78rem;line-height:1.4}
#tactics-pro-app .tp-quick-share-modal>.tp-modal-close-btn{width:calc(100% - 40px);margin:14px 20px 20px}

@media(max-width:760px){
    #tactics-pro-app .tp-read-only-banner{align-items:flex-start;padding:10px 12px;gap:10px}
    #tactics-pro-app .tp-read-only-banner>div{display:block}
    #tactics-pro-app .tp-read-only-banner strong,#tactics-pro-app .tp-read-only-banner span{display:block}
    #tactics-pro-app .tp-read-only-banner span{margin-top:3px}
    #tactics-pro-app .tp-read-only-banner a{padding:6px 8px}
    .tp-auth-box.large .tp-membership-plan-grid{grid-template-columns:1fr}
    .tp-auth-box.large .tp-membership-plan-grid .tp-plan-card{min-height:0}
    #tactics-pro-app .tp-quick-share-modal{max-height:min(82vh,680px);overflow-y:auto}
    #tactics-pro-app .tp-quick-share-head{padding:16px 16px 10px}
    #tactics-pro-app .tp-quick-share-actions{padding:6px 16px 14px}
    #tactics-pro-app .tp-share-result-card{margin-left:16px;margin-right:16px}
    #tactics-pro-app .tp-share-more>summary{padding-left:16px;padding-right:16px}
    #tactics-pro-app .tp-share-more-body{padding-left:16px;padding-right:16px}
    #tactics-pro-app .tp-quick-share-modal>.tp-modal-close-btn{width:calc(100% - 32px);margin-left:16px;margin-right:16px}
}
@media(max-width:460px){
    #tactics-pro-app .tp-read-only-banner{flex-direction:column}
    #tactics-pro-app .tp-read-only-banner a{align-self:flex-start}
    #tactics-pro-app .tp-quick-share-actions{grid-template-columns:1fr}
}

/* =========================================================
   Free-trial signup + billing receipts — v2.0.29
   ========================================================= */
.tp-auth-box.large .tp-signup-start-toggle{
    display:grid;grid-template-columns:1fr 1fr;gap:4px;width:min(430px,100%);margin:0 auto 10px;padding:4px;
    background:#161b22;border:1px solid #30363d;border-radius:8px
}
.tp-auth-box.large .tp-signup-start-toggle button{
    min-height:40px;border:0;border-radius:5px;background:transparent;color:#9aa6b2;font-weight:850;cursor:pointer;padding:7px 10px
}
.tp-auth-box.large .tp-signup-start-toggle button.is-active{background:#1f6f3e;color:#fff;box-shadow:0 1px 4px rgba(0,0,0,.28)}
.tp-auth-box.large .tp-trial-signup-note{margin:0 auto 14px;max-width:520px;text-align:center;color:#9fb0bf;font-size:.76rem;line-height:1.45}
.tp-auth-box.large .tp-signup-billing-wrap{margin-bottom:12px}
.tp-auth-box.large .tp-signup-billing-wrap[hidden]{display:none!important}
.tp-auth-box.large .tp-signup-field-caption{display:block;margin:0 0 6px;text-align:center;color:#778390;font-size:.68rem;font-weight:850;letter-spacing:.07em;text-transform:uppercase}
.tp-auth-box.large .tp-plan-card.is-disabled{opacity:.42;cursor:not-allowed;filter:saturate(.35)}
.tp-auth-box.large .tp-plan-card.is-disabled:hover{transform:none;box-shadow:none}
.tp-signup-honeypot{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}

#tactics-pro-app .tp-billing-layout{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr);gap:18px}
#tactics-pro-app .tp-receipt-list{display:grid;gap:8px}
#tactics-pro-app .tp-receipt-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 13px;border:1px solid rgba(139,148,158,.22);border-radius:8px;background:rgba(255,255,255,.025);color:var(--tp-text-main,#f0f6fc);text-decoration:none}
#tactics-pro-app .tp-receipt-row:hover{border-color:rgba(88,166,255,.5);background:rgba(88,166,255,.06)}
#tactics-pro-app .tp-receipt-row span{min-width:0}
#tactics-pro-app .tp-receipt-row span:last-child{text-align:right;flex:0 0 auto}
#tactics-pro-app .tp-receipt-row strong,#tactics-pro-app .tp-receipt-row small{display:block}
#tactics-pro-app .tp-receipt-row strong{font-size:.84rem}
#tactics-pro-app .tp-receipt-row small{margin-top:3px;color:var(--tp-text-muted,#8b949e);font-size:.72rem}
#tactics-pro-app .tp-empty-state{padding:18px;border:1px dashed rgba(139,148,158,.28);border-radius:8px;color:var(--tp-text-muted,#8b949e)}
#tactics-pro-app .tp-empty-state strong{display:block;color:var(--tp-text-main,#f0f6fc);margin-bottom:4px}
#tactics-pro-app .tp-empty-state p{margin:0;font-size:.78rem;line-height:1.45}
@media(max-width:900px){#tactics-pro-app .tp-billing-layout{grid-template-columns:1fr}}
@media(max-width:600px){.tp-auth-box.large .tp-signup-start-toggle{grid-template-columns:1fr}.tp-auth-box.large .tp-signup-billing-toggle{grid-template-columns:1fr 1fr 1fr}#tactics-pro-app .tp-receipt-row{align-items:flex-start}#tactics-pro-app .tp-receipt-row span:last-child{text-align:right}}

/* Front Office navigation: all destinations remain visible; no hidden horizontal scroll. */
#tactics-pro-app .tp-fo-tabs{min-width:0;overflow:visible;justify-content:flex-start;flex-wrap:wrap;flex:1 1 520px;align-items:stretch}
#tactics-pro-app .tp-fo-tab{flex:0 1 auto;white-space:normal;min-height:38px}
@media(max-width:700px){
    #tactics-pro-app .tp-fo-header-bar{align-items:stretch}
    #tactics-pro-app .tp-fo-status-chip,#tactics-pro-app .tp-fo-header-actions{width:100%}
    #tactics-pro-app .tp-fo-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;flex-basis:100%;gap:6px;background:transparent;border:0;padding:0}
    #tactics-pro-app .tp-fo-tab{width:100%;padding:9px 8px;border:1px solid rgba(70,81,95,.55);border-radius:7px;text-align:center}
}
@media(max-width:390px){#tactics-pro-app .tp-fo-tabs{grid-template-columns:1fr}}

/* Playmaker progressive disclosure — v2.0.31 */
#tactics-pro-app .tp-sub-disclosure{border:1px solid rgba(139,148,158,.22);border-radius:8px;background:rgba(13,17,23,.35);margin:10px 0}
#tactics-pro-app .tp-sub-disclosure>summary{list-style:none;cursor:pointer;padding:10px 11px;color:#d7e0ea;font-size:.78rem;font-weight:800;display:flex;align-items:center;justify-content:space-between;gap:8px}
#tactics-pro-app .tp-sub-disclosure>summary::-webkit-details-marker{display:none}
#tactics-pro-app .tp-sub-disclosure>summary::after{content:'+';font-size:1rem;color:var(--tp-primary);line-height:1}
#tactics-pro-app .tp-sub-disclosure[open]>summary::after{content:'−'}
#tactics-pro-app .tp-sub-disclosure-body{padding:0 11px 11px}
#tactics-pro-app .tp-quick-setup-primary{padding:10px;border:1px solid rgba(88,166,255,.24);border-radius:8px;background:rgba(88,166,255,.055)}
#tactics-pro-app .tp-context-task{border:1px solid rgba(139,148,158,.22);border-radius:9px;background:rgba(13,17,23,.48);margin:9px 0;overflow:hidden}
#tactics-pro-app .tp-context-task>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;color:#f0f6fc;font-size:.82rem;font-weight:850}
#tactics-pro-app .tp-context-task>summary::-webkit-details-marker{display:none}
#tactics-pro-app .tp-context-task>summary::after{content:'›';color:var(--tp-primary);font-size:1.15rem;transform:rotate(0);transition:transform .15s ease}
#tactics-pro-app .tp-context-task[open]>summary::after{transform:rotate(90deg)}
#tactics-pro-app .tp-context-task-body{padding:0 11px 12px}
#tactics-pro-app .tp-context-task-note{margin:0 0 9px;color:var(--tp-text-muted);font-size:.72rem;line-height:1.45}
#tactics-pro-app .tp-role-status{display:inline-flex;align-items:center;gap:5px;margin:0 0 8px;padding:4px 7px;border:1px solid rgba(88,166,255,.3);border-radius:5px;background:rgba(88,166,255,.08);color:#cfe5ff;font-size:.68rem;font-weight:800}
#tactics-pro-app .tp-zone-drag-hint{margin:8px 0 0;padding:8px 9px;border-left:3px solid var(--tp-primary);background:rgba(88,166,255,.06);color:#b9c7d5;font-size:.72rem;line-height:1.4}

#tactics-pro-app .tp-tool-groups{display:grid;gap:8px}
#tactics-pro-app .tp-tool-disclosure{margin:0}
#tactics-pro-app .tp-tool-disclosure .tool-grid{margin-top:2px}

/* Playmaker contextual capabilities — v2.0.31.1 */
#tactics-pro-app [hidden]{display:none !important}
#tactics-pro-app .tp-step-state-banner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:10px 14px;
    border:1px solid rgba(88,166,255,.24);
    border-bottom:0;
    background:linear-gradient(90deg,rgba(88,166,255,.09),rgba(13,17,23,.94));
    color:var(--tp-text-main);
}
#tactics-pro-app .tp-step-state-banner>div{display:flex;flex-direction:column;gap:2px;min-width:110px}
#tactics-pro-app .tp-step-state-banner strong{font-size:.92rem;color:#fff}
#tactics-pro-app .tp-step-state-banner p{margin:0;color:var(--tp-text-muted);font-size:.76rem;line-height:1.4;text-align:right;max-width:660px}
#tactics-pro-app .tp-step-state-kicker{font-size:.62rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:var(--tp-primary)}
#tactics-pro-app.tp-is-setup-state .tp-step-state-banner{border-color:rgba(46,160,67,.28);background:linear-gradient(90deg,rgba(46,160,67,.09),rgba(13,17,23,.94))}
#tactics-pro-app.tp-is-setup-state .tp-step-state-kicker{color:#7ee787}
#tactics-pro-app .step-item{appearance:none;font:inherit;cursor:pointer;min-width:36px}
#tactics-pro-app .step-item:disabled,#tactics-pro-app .btn-icon:disabled{opacity:.36;cursor:not-allowed;box-shadow:none}
#tactics-pro-app .tp-step-setup-label{font-size:.68rem;font-weight:900;letter-spacing:.01em}
#tactics-pro-app .step-item.is-setup-step{min-width:58px;padding-left:9px;padding-right:9px}
#tactics-pro-app .variant-tab{appearance:none;font:inherit}
#tactics-pro-app .tp-context-guide{display:grid;gap:11px;padding:14px;border:1px solid rgba(88,166,255,.26);border-radius:10px;background:rgba(88,166,255,.055)}
#tactics-pro-app .tp-context-guide.is-setup{border-color:rgba(46,160,67,.30);background:rgba(46,160,67,.055)}
#tactics-pro-app .tp-context-guide h3{margin:0;color:#fff;font-size:1rem;line-height:1.25}
#tactics-pro-app .tp-context-guide>p{margin:0;color:var(--tp-text-muted);font-size:.78rem;line-height:1.5}
#tactics-pro-app .tp-context-stage-note{display:flex;flex-direction:column;gap:3px;padding:9px 10px;border-left:3px solid #7ee787;background:rgba(46,160,67,.07);color:var(--tp-text-muted);font-size:.72rem;line-height:1.4}
#tactics-pro-app .tp-context-stage-note strong{color:#c8f7d0;font-size:.72rem}
#tactics-pro-app .tp-context-stage-note.is-warning{border-left-color:var(--tp-warning);background:rgba(210,153,34,.07)}
#tactics-pro-app .tp-context-stage-note.is-warning strong{color:#f2cc60}
#tactics-pro-app .tp-context-next-action{display:grid;gap:5px;padding:10px;border:1px solid rgba(88,166,255,.22);border-radius:8px;background:rgba(13,17,23,.42)}
#tactics-pro-app .tp-context-next-action>span{color:var(--tp-primary);font-size:.62rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
#tactics-pro-app .tp-context-next-action p{margin:0;color:var(--tp-text-muted);font-size:.72rem;line-height:1.45}
#tactics-pro-app .tp-context-next-action .btn{margin-top:4px}
@media(max-width:700px){
    #tactics-pro-app .tp-step-state-banner{align-items:flex-start;flex-direction:column;gap:5px;padding:9px 11px}
    #tactics-pro-app .tp-step-state-banner p{text-align:left;max-width:none}
}


/* Playmaker movement-line controls — v2.0.31.2 */
#tactics-pro-app .tp-line-mode-control { display:inline-flex; align-items:center; gap:7px; min-height:32px; padding:5px 7px 5px 9px; border:1px solid rgba(70,81,95,.6); border-radius:8px; background:rgba(13,17,23,.54); color:var(--tp-text-muted); font-size:.75rem; }
#tactics-pro-app .tp-line-mode-control .tp-control { width:auto; min-width:168px; min-height:30px; padding:4px 28px 4px 8px; border-radius:6px; font-size:.75rem; }
#tactics-pro-app .tp-inline-toggle { border-radius:8px; }
@media (max-width:760px) { #tactics-pro-app .tp-line-mode-control { width:100%; justify-content:space-between; } #tactics-pro-app .tp-line-mode-control .tp-control { min-width:0; flex:1 1 auto; } }


/* Playmaker action dock — v2.0.31.6
   Keep the high-frequency controls visible instead of allowing incidental flex
   wrapping to push them below the clipped Playmaker workspace. */
#tactics-pro-app #page-playmaker .timeline-bar {
    height: auto;
    min-height: 88px;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 7px;
    padding: 8px 12px;
    overflow: visible;
}
#tactics-pro-app #page-playmaker .tp-timeline-main-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
#tactics-pro-app #page-playmaker .timeline-nav {
    min-width: 130px;
    flex: 1 1 220px;
    gap: 8px;
}
#tactics-pro-app #page-playmaker .step-list {
    min-width: 0;
    flex: 1 1 auto;
}
#tactics-pro-app #page-playmaker .tp-timeline-primary-actions {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    align-items: center;
    justify-content: end;
    gap: 7px;
    flex: 0 0 auto;
}
#tactics-pro-app #page-playmaker .tp-timeline-primary-actions .btn {
    min-height: 36px;
    padding: 7px 10px;
    font-size: .75rem;
    line-height: 1.1;
    white-space: nowrap;
    box-shadow: 0 2px 7px rgba(0,0,0,.22);
}
#tactics-pro-app #page-playmaker .tp-timeline-options {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
}
#tactics-pro-app #page-playmaker .tp-timeline-options .tp-inline-toggle,
#tactics-pro-app #page-playmaker .tp-timeline-options .tp-line-mode-control {
    min-height: 30px;
    padding-top: 4px;
    padding-bottom: 4px;
}
@media (max-width: 1180px) {
    #tactics-pro-app #page-playmaker .tp-timeline-main-row {
        align-items: stretch;
        flex-wrap: wrap;
    }
    #tactics-pro-app #page-playmaker .timeline-nav {
        flex: 1 1 100%;
    }
    #tactics-pro-app #page-playmaker .tp-timeline-primary-actions {
        width: 100%;
        grid-template-columns: repeat(4, minmax(0,1fr));
        grid-auto-flow: row;
        grid-auto-columns: auto;
    }
    #tactics-pro-app #page-playmaker .tp-timeline-primary-actions .btn {
        width: 100%;
        min-width: 0;
    }
    #tactics-pro-app #page-playmaker .tp-timeline-options {
        justify-content: flex-start;
    }
}
@media (max-width: 700px) {
    #tactics-pro-app #page-playmaker .timeline-bar {
        min-height: 0;
        padding: 7px 8px;
    }
    #tactics-pro-app #page-playmaker .tp-timeline-primary-actions {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
    #tactics-pro-app #page-playmaker .tp-timeline-primary-actions .btn {
        min-height: 38px;
        white-space: normal;
    }
    #tactics-pro-app #page-playmaker .tp-timeline-options {
        flex-wrap: wrap;
    }
    #tactics-pro-app #page-playmaker .tp-timeline-options .tp-line-mode-control {
        width: 100%;
    }
}

/* Smart player movement — v2.0.31.7
 * First-time workflow: drag first, let Tactics Pro infer Run vs Dribble/Carry,
 * then expose manual classification only as a secondary override.
 */
#tactics-pro-app .tp-smart-movement-status {
    display: grid;
    gap: 3px;
    margin: 8px 0 10px;
    padding: 10px 11px;
    border: 1px solid rgba(88,166,255,.28);
    border-left: 3px solid var(--tp-primary);
    border-radius: 8px;
    background: rgba(88,166,255,.065);
}
#tactics-pro-app .tp-smart-movement-status.is-auto {
    border-left-color: var(--tp-success);
    background: rgba(46,160,67,.065);
}
#tactics-pro-app .tp-smart-movement-status.is-manual {
    border-left-color: var(--tp-warning);
    background: rgba(210,153,34,.065);
}
#tactics-pro-app .tp-smart-movement-status > span {
    color: var(--tp-text-muted);
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}
#tactics-pro-app .tp-smart-movement-status > strong {
    color: #fff;
    font-size: .88rem;
    line-height: 1.25;
}
#tactics-pro-app .tp-smart-movement-status > small {
    color: var(--tp-text-muted);
    font-size: .7rem;
    line-height: 1.4;
}
#tactics-pro-app .tp-movement-override {
    margin: 8px 0 0;
    background: rgba(13,17,23,.22);
}
#tactics-pro-app .tp-smart-route-tools {
    margin-top: 10px;
}
@media (max-width: 420px) {
    #tactics-pro-app .tp-movement-override .tp-context-grid--two {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   v2.0.31.21 — Coach Portal + Playmaker responsive UX refresh
   Review goal: lighten Front Office without changing workflows,
   strengthen Playmaker navigation cues, and harden small-screen use.
   ========================================================= */

/* ---------------------------------------------------------
   1. Front Office — light professional workspace
   --------------------------------------------------------- */
#tactics-pro-app #page-settings {
    --tp-fo-ink: #172033;
    --tp-fo-ink-strong: #0f172a;
    --tp-fo-muted: #667085;
    --tp-fo-muted-2: #8a94a6;
    --tp-fo-line: #dfe5ed;
    --tp-fo-line-strong: #cbd5e1;
    --tp-fo-page: #f5f7fb;
    --tp-fo-card: #ffffff;
    --tp-fo-card-soft: #f8fafc;
    --tp-fo-blue: #2563eb;
    --tp-fo-blue-soft: #eff6ff;
    --tp-fo-shadow: 0 8px 24px rgba(15, 23, 42, .055);
    background: var(--tp-fo-page);
    color: var(--tp-fo-ink);
    scrollbar-color: #cbd5e1 transparent;
}

#tactics-pro-app #page-settings .settings-container {
    width: min(1480px, calc(100% - 48px));
    max-width: 1480px;
    margin: 28px auto 64px;
    padding: 0;
}

#tactics-pro-app #page-settings .tp-fo-page-title {
    margin-bottom: 18px;
}

#tactics-pro-app #page-settings .tp-fo-page-eyebrow,
#tactics-pro-app #page-settings .tp-fo-section-label,
#tactics-pro-app #page-settings .tp-fo-work-kicker,
#tactics-pro-app #page-settings .tp-form-kicker {
    color: #64748b !important;
}

#tactics-pro-app #page-settings .tp-fo-page-title h1,
#tactics-pro-app #page-settings .tp-fo-dashboard-intro h2,
#tactics-pro-app #page-settings .tp-fo-section-heading h3,
#tactics-pro-app #page-settings .tp-fo-work-header h2,
#tactics-pro-app #page-settings .tp-form-title,
#tactics-pro-app #page-settings .tp-roster-list-title,
#tactics-pro-app #page-settings .settings-card h2,
#tactics-pro-app #page-settings .settings-card h3,
#tactics-pro-app #page-settings .settings-card h4,
#tactics-pro-app #page-settings .tp-section-card h2,
#tactics-pro-app #page-settings .tp-section-card h3,
#tactics-pro-app #page-settings .tp-section-card h4 {
    color: var(--tp-fo-ink-strong) !important;
}

#tactics-pro-app #page-settings .tp-fo-page-title > p,
#tactics-pro-app #page-settings .tp-fo-dashboard-intro p,
#tactics-pro-app #page-settings .tp-fo-section-heading > span,
#tactics-pro-app #page-settings .tp-fo-work-header p,
#tactics-pro-app #page-settings .tp-form-subtitle,
#tactics-pro-app #page-settings .tp-field-help,
#tactics-pro-app #page-settings .tp-fo-dashboard-footer-account > span:not(.tp-fo-section-label),
#tactics-pro-app #page-settings .tp-fo-flow-inline li,
#tactics-pro-app #page-settings .tp-fo-launch-copy > span,
#tactics-pro-app #page-settings .tp-status-message:not(.success):not(.error) {
    color: var(--tp-fo-muted) !important;
}

#tactics-pro-app #page-settings .tp-fo-header-bar {
    position: sticky;
    top: 0;
    z-index: 8;
    align-items: center;
    gap: 18px;
    margin: 0 0 30px;
    padding: 0 16px;
    border: 1px solid var(--tp-fo-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 4px 16px rgba(15, 23, 42, .045);
    backdrop-filter: blur(10px);
}

#tactics-pro-app #page-settings .tp-fo-tabs {
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    gap: 24px;
    scrollbar-width: none;
}
#tactics-pro-app #page-settings .tp-fo-tabs::-webkit-scrollbar { display: none; }

#tactics-pro-app #page-settings .tp-fo-tab {
    flex: 0 0 auto;
    width: auto;
    min-height: 48px;
    padding: 0 0 1px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #64748b;
    font-size: .78rem;
    font-weight: 760;
    white-space: nowrap;
}

#tactics-pro-app #page-settings .tp-fo-tab:hover {
    background: transparent;
    color: #1e293b;
}

#tactics-pro-app #page-settings .tp-fo-tab.is-active {
    color: var(--tp-fo-blue);
    background: transparent;
}
#tactics-pro-app #page-settings .tp-fo-tab.is-active::after {
    height: 3px;
    background: var(--tp-fo-blue);
}

#tactics-pro-app #page-settings .tp-fo-header-meta {
    padding: 0;
}

#tactics-pro-app #page-settings .tp-fo-status-chip,
#tactics-pro-app #page-settings .tp-fo-action-link,
#tactics-pro-app #page-settings .tp-fo-action-link--muted {
    color: #64748b;
}
#tactics-pro-app #page-settings .tp-fo-action-link:hover { color: var(--tp-fo-blue); }

#tactics-pro-app #page-settings .tp-fo-dashboard {
    gap: 30px;
}

#tactics-pro-app #page-settings .tp-fo-dashboard-intro {
    align-items: center;
    padding: 4px 2px 2px;
}

#tactics-pro-app #page-settings .tp-fo-dashboard-account > span {
    color: #64748b;
}
#tactics-pro-app #page-settings .tp-fo-dashboard-account > span + span::before { color: #cbd5e1; }

#tactics-pro-app #page-settings .tp-fo-dashboard-section {
    gap: 12px;
}
#tactics-pro-app #page-settings .tp-fo-section-heading {
    padding: 0 2px 9px;
    border-bottom-color: var(--tp-fo-line);
}

#tactics-pro-app #page-settings .tp-fo-launch-grid { gap: 12px; }
#tactics-pro-app #page-settings .tp-fo-launch-grid--core { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#tactics-pro-app #page-settings .tp-fo-launch-grid--manage { grid-template-columns: repeat(4, minmax(0, 1fr)); }

#tactics-pro-app #page-settings .tp-fo-launch-card {
    border: 1px solid var(--tp-fo-line);
    background: var(--tp-fo-card);
    color: var(--tp-fo-ink);
    box-shadow: var(--tp-fo-shadow);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
#tactics-pro-app #page-settings .tp-fo-launch-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--tp-card-rgb), .46);
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .09);
}
#tactics-pro-app #page-settings .tp-fo-launch-card:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .22);
    outline-offset: 2px;
}

#tactics-pro-app #page-settings .tp-fo-launch-card--core {
    min-height: 124px;
    padding: 18px;
    border-top: 3px solid var(--tp-card-accent);
}
#tactics-pro-app #page-settings .tp-fo-launch-card--manage {
    min-height: 88px;
    padding: 14px;
}
#tactics-pro-app #page-settings .tp-fo-launch-card[data-tp-dashboard-target="build"] {
    border-color: rgba(var(--tp-card-rgb), .38);
    border-top-color: var(--tp-card-accent);
    background: linear-gradient(145deg, rgba(var(--tp-card-rgb), .07), #fff 44%);
}

#tactics-pro-app #page-settings .tp-fo-launch-icon {
    border: 1px solid rgba(var(--tp-card-rgb), .20);
    background: rgba(var(--tp-card-rgb), .09);
}
#tactics-pro-app #page-settings .tp-fo-launch-copy strong { color: var(--tp-fo-ink-strong); }
#tactics-pro-app #page-settings .tp-fo-launch-arrow { color: #94a3b8; }

#tactics-pro-app #page-settings .tp-fo-dashboard-footer {
    gap: 28px;
    padding-top: 22px;
    border-top-color: var(--tp-fo-line);
}
#tactics-pro-app #page-settings .tp-fo-dashboard-footer-account > strong { color: #334155; }
#tactics-pro-app #page-settings .tp-fo-flow-inline li::before {
    border-color: #cbd5e1;
    background: #fff;
    color: #475569;
}

/* Interior Front Office surfaces: convert existing components instead of duplicating them. */
#tactics-pro-app #page-settings .tp-fo-form-surface,
#tactics-pro-app #page-settings .tp-form-card,
#tactics-pro-app #page-settings .settings-card,
#tactics-pro-app #page-settings .tp-section-card,
#tactics-pro-app #page-settings .tp-usage-card,
#tactics-pro-app #page-settings .tp-roster-list-card,
#tactics-pro-app #page-settings .tp-comm-content-panel,
#tactics-pro-app #page-settings .tp-workspace-card,
#tactics-pro-app #page-settings .tp-billing-card,
#tactics-pro-app #page-settings .tp-empty-panel {
    border-color: var(--tp-fo-line) !important;
    background: var(--tp-fo-card) !important;
    color: var(--tp-fo-ink) !important;
    box-shadow: var(--tp-fo-shadow) !important;
}

#tactics-pro-app #page-settings .tp-section-card::before,
#tactics-pro-app #page-settings .settings-card.tp-section-card::before,
#tactics-pro-app #page-settings .tp-form-card.tp-section-card::before {
    opacity: .78;
}

#tactics-pro-app #page-settings .tp-inp,
#tactics-pro-app #page-settings .tp-control,
#tactics-pro-app #page-settings input[type="text"],
#tactics-pro-app #page-settings input[type="email"],
#tactics-pro-app #page-settings input[type="url"],
#tactics-pro-app #page-settings input[type="number"],
#tactics-pro-app #page-settings input[type="datetime-local"],
#tactics-pro-app #page-settings select,
#tactics-pro-app #page-settings textarea {
    border-color: #cfd8e3 !important;
    background: #fff !important;
    color: #172033 !important;
    box-shadow: none !important;
}
#tactics-pro-app #page-settings .tp-inp::placeholder,
#tactics-pro-app #page-settings textarea::placeholder { color: #98a2b3 !important; }
#tactics-pro-app #page-settings .tp-inp:focus,
#tactics-pro-app #page-settings .tp-control:focus,
#tactics-pro-app #page-settings input:focus,
#tactics-pro-app #page-settings select:focus,
#tactics-pro-app #page-settings textarea:focus {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .11) !important;
    outline: none !important;
}

#tactics-pro-app #page-settings label,
#tactics-pro-app #page-settings .tp-field-label,
#tactics-pro-app #page-settings .tp-roster-count,
#tactics-pro-app #page-settings .tp-selected-summary strong {
    color: #344054 !important;
}

#tactics-pro-app #page-settings .tp-player-tag,
#tactics-pro-app #page-settings .tp-selected-summary,
#tactics-pro-app #page-settings .tp-receipt-row,
#tactics-pro-app #page-settings .tp-comm-card,
#tactics-pro-app #page-settings .tp-member-row,
#tactics-pro-app #page-settings .tp-workspace-member-row {
    border-color: var(--tp-fo-line) !important;
    background: var(--tp-fo-card-soft) !important;
    color: var(--tp-fo-ink) !important;
}
#tactics-pro-app #page-settings .tp-player-tag-name,
#tactics-pro-app #page-settings .tp-receipt-row strong,
#tactics-pro-app #page-settings .tp-comm-card strong,
#tactics-pro-app #page-settings .tp-member-row strong,
#tactics-pro-app #page-settings .tp-workspace-member-row strong {
    color: #1e293b !important;
}

#tactics-pro-app #page-settings .tp-receipt-row:hover,
#tactics-pro-app #page-settings .tp-comm-card:hover {
    border-color: #a9c6f7 !important;
    background: #f8fbff !important;
}

/* Front Office mobile/tablet: horizontal tabs are faster than a tall tab grid. */
@media (max-width: 1180px) {
    #tactics-pro-app #page-settings .tp-fo-launch-grid--manage { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    #tactics-pro-app #page-settings .settings-container {
        width: min(100% - 28px, 1480px);
        margin-top: 18px;
    }
    #tactics-pro-app #page-settings .tp-fo-header-bar {
        position: static;
        display: grid;
        gap: 0;
        padding: 0 12px;
    }
    #tactics-pro-app #page-settings .tp-fo-tabs {
        width: 100%;
        display: flex;
        flex-basis: auto;
        gap: 20px;
    }
    #tactics-pro-app #page-settings .tp-fo-header-meta {
        width: 100%;
        justify-content: space-between;
        min-height: 40px;
        border-top: 1px solid var(--tp-fo-line);
    }
    #tactics-pro-app #page-settings .tp-fo-status-chip { display: flex; width: auto; }
    #tactics-pro-app #page-settings .tp-fo-launch-grid--core { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #tactics-pro-app #page-settings .tp-fo-launch-grid--manage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    #tactics-pro-app #page-settings .settings-container { width: min(100% - 18px, 1480px); }
    #tactics-pro-app #page-settings .tp-fo-page-title { gap: 5px; }
    #tactics-pro-app #page-settings .tp-fo-page-title h1 { font-size: 1.62rem; }
    #tactics-pro-app #page-settings .tp-fo-header-bar { margin-bottom: 22px; }
    #tactics-pro-app #page-settings .tp-fo-header-meta .tp-fo-status-chip { display: none; }
    #tactics-pro-app #page-settings .tp-fo-header-meta { justify-content: flex-end; }
    #tactics-pro-app #page-settings .tp-fo-launch-grid--core,
    #tactics-pro-app #page-settings .tp-fo-launch-grid--manage { grid-template-columns: 1fr; }
    #tactics-pro-app #page-settings .tp-fo-launch-card--core { min-height: 108px; }
    #tactics-pro-app #page-settings .tp-fo-launch-card--manage { min-height: 80px; }
    #tactics-pro-app #page-settings .tp-fo-dashboard-intro { gap: 10px; }
    #tactics-pro-app #page-settings .tp-fo-dashboard-account { display: none; }
    #tactics-pro-app #page-settings .tp-fo-dashboard-footer { gap: 20px; }
}

/* ---------------------------------------------------------
   2. Playmaker — navigational colour system + clearer controls
   --------------------------------------------------------- */
#tactics-pro-app.tp-is-playmaker {
    --tp-pm-details: #34d399;
    --tp-pm-setup: #60a5fa;
    --tp-pm-team: #f59e0b;
    --tp-pm-tools: #a78bfa;
    --tp-pm-action: #fbbf24;
}

#tactics-pro-app.tp-is-playmaker #leftPanel.toolbar-wing,
#tactics-pro-app.tp-is-playmaker #rightPanel.toolbar-wing {
    background: #0d131c;
    border-color: rgba(100, 116, 139, .28);
}

#tactics-pro-app.tp-is-playmaker #leftPanel.toolbar-wing {
    gap: 11px !important;
    padding: 12px 10px 120px !important;
}
#tactics-pro-app.tp-is-playmaker #rightPanel.toolbar-wing {
    padding: 12px 10px 90px !important;
}

#tactics-pro-app.tp-is-playmaker .tp-control-mode-card {
    gap: 8px;
    padding: 12px;
    border-radius: 11px;
    border-color: rgba(96, 165, 250, .30);
    background: linear-gradient(145deg, rgba(96, 165, 250, .11), rgba(13, 19, 28, .96) 55%);
    box-shadow: none;
}
#tactics-pro-app.tp-is-playmaker .tp-control-mode-card strong {
    font-size: .86rem;
}
#tactics-pro-app.tp-is-playmaker .tp-control-mode-card .tp-field-help {
    margin: 0;
    font-size: .69rem;
    line-height: 1.4;
}
#tactics-pro-app.tp-is-playmaker .tp-control-mode-switch {
    gap: 5px;
    padding: 4px;
    border: 1px solid rgba(100, 116, 139, .35);
    border-radius: 9px;
    background: rgba(2, 6, 23, .42);
}
#tactics-pro-app.tp-is-playmaker .tp-control-mode-btn {
    min-height: 32px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #94a3b8;
    letter-spacing: .02em;
    text-transform: none;
}
#tactics-pro-app.tp-is-playmaker .tp-control-mode-btn:hover {
    background: rgba(96, 165, 250, .12);
    color: #e2e8f0;
}
#tactics-pro-app.tp-is-playmaker .tp-control-mode-btn.is-active {
    background: #e8f2ff;
    color: #174ea6;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .25);
}

#tactics-pro-app.tp-is-playmaker #leftPanel .tp-accordion {
    border-width: 1px !important;
    border-left-width: 4px !important;
    border-radius: 10px !important;
    background: #111923 !important;
    box-shadow: none !important;
}

#tactics-pro-app.tp-is-playmaker #leftPanel .tp-accordion[data-tp-accordion="current-drill"] {
    --tp-accordion-accent: var(--tp-pm-details);
    --tp-accordion-soft: rgba(52, 211, 153, .11);
    --tp-accordion-border: rgba(52, 211, 153, .31);
}
#tactics-pro-app.tp-is-playmaker #leftPanel .tp-accordion[data-tp-accordion="field-setup"] {
    --tp-accordion-accent: var(--tp-pm-setup);
    --tp-accordion-soft: rgba(96, 165, 250, .11);
    --tp-accordion-border: rgba(96, 165, 250, .31);
}
#tactics-pro-app.tp-is-playmaker #leftPanel .tp-accordion[data-tp-accordion="squad-builder"] {
    --tp-accordion-accent: var(--tp-pm-team);
    --tp-accordion-soft: rgba(245, 158, 11, .11);
    --tp-accordion-border: rgba(245, 158, 11, .32);
}
#tactics-pro-app.tp-is-playmaker #leftPanel .tp-accordion[data-tp-accordion="draggables"] {
    --tp-accordion-accent: var(--tp-pm-tools);
    --tp-accordion-soft: rgba(167, 139, 250, .12);
    --tp-accordion-border: rgba(167, 139, 250, .32);
}

#tactics-pro-app.tp-is-playmaker #leftPanel .tp-accordion-toggle {
    position: relative;
    min-height: 44px !important;
    padding: 10px 11px 10px 34px !important;
    border-bottom-color: transparent !important;
    background: linear-gradient(90deg, var(--tp-accordion-soft), transparent 72%) !important;
    color: #e5edf7;
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .01em;
    text-transform: none;
}
#tactics-pro-app.tp-is-playmaker #leftPanel .tp-accordion-toggle::before {
    content: '';
    position: absolute;
    left: 12px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--tp-accordion-accent);
    box-shadow: 0 0 0 4px var(--tp-accordion-soft);
}
#tactics-pro-app.tp-is-playmaker #leftPanel .tp-accordion-toggle:hover {
    background: linear-gradient(90deg, var(--tp-accordion-soft), rgba(255,255,255,.025)) !important;
}
#tactics-pro-app.tp-is-playmaker #leftPanel .tp-accordion.is-open {
    border-color: var(--tp-accordion-border) !important;
    border-left-color: var(--tp-accordion-accent) !important;
    box-shadow: 0 8px 18px rgba(0,0,0,.15) !important;
}
#tactics-pro-app.tp-is-playmaker #leftPanel .tp-accordion.is-open .tp-accordion-toggle {
    border-bottom: 1px solid var(--tp-accordion-border) !important;
}
#tactics-pro-app.tp-is-playmaker #leftPanel .tp-accordion.is-open .tp-accordion-body {
    padding: 12px !important;
    background: linear-gradient(180deg, rgba(2, 6, 23, .22), var(--tp-accordion-soft)) !important;
}

#tactics-pro-app.tp-is-playmaker #leftPanel .tp-accordion-chevron {
    font-size: .8rem;
    opacity: .95;
}

#tactics-pro-app.tp-is-playmaker #leftPanel .tp-quick-setup-primary {
    border-color: rgba(96, 165, 250, .28);
    background: rgba(96, 165, 250, .075);
}

#tactics-pro-app.tp-is-playmaker .field-container {
    background: #080d14;
}
#tactics-pro-app.tp-is-playmaker .canvas-wrapper {
    padding: clamp(10px, 1.4vw, 18px);
    background:
        radial-gradient(circle at 50% 5%, rgba(96, 165, 250, .08), transparent 30%),
        #080d14;
}
#tactics-pro-app.tp-is-playmaker #pitchCanvas {
    box-shadow: 0 20px 52px rgba(0,0,0,.62), 0 0 0 1px rgba(148, 163, 184, .14);
}

#tactics-pro-app.tp-is-playmaker .camera-controls {
    border: 1px solid rgba(148, 163, 184, .25);
    border-radius: 10px;
    padding: 4px;
    background: rgba(15, 23, 42, .82);
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    backdrop-filter: blur(8px);
}
#tactics-pro-app.tp-is-playmaker .camera-controls button {
    border-radius: 7px;
}

#tactics-pro-app.tp-is-playmaker .tp-step-state-banner {
    min-height: 42px;
    padding: 8px 12px;
    border-color: rgba(96, 165, 250, .28);
    background: linear-gradient(90deg, rgba(96, 165, 250, .12), rgba(13,19,28,.96) 55%);
}
#tactics-pro-app.tp-is-playmaker.tp-is-setup-state .tp-step-state-banner {
    border-color: rgba(52, 211, 153, .30);
    background: linear-gradient(90deg, rgba(52, 211, 153, .11), rgba(13,19,28,.96) 55%);
}

#tactics-pro-app.tp-is-playmaker #page-playmaker .timeline-bar {
    border-top: 1px solid rgba(148, 163, 184, .24);
    background: #111923;
    box-shadow: 0 -8px 24px rgba(0,0,0,.14);
}
#tactics-pro-app.tp-is-playmaker #page-playmaker .tp-timeline-primary-actions {
    gap: 6px;
}
#tactics-pro-app.tp-is-playmaker #page-playmaker .tp-timeline-primary-actions .btn {
    border-width: 1px;
    border-radius: 8px;
    box-shadow: none;
    font-weight: 850;
}
#tactics-pro-app.tp-is-playmaker #btnPlayAnimation {
    border-color: #d79b16;
    background: #fbbf24;
    color: #281b02;
}
#tactics-pro-app.tp-is-playmaker #btnMagicFill {
    border-color: #3b82f6;
    background: #2563eb;
    color: #fff;
}
#tactics-pro-app.tp-is-playmaker #btnAddStep {
    border-color: #2eae75;
    background: #158f5f;
    color: #fff;
}
#tactics-pro-app.tp-is-playmaker #btnDeleteStep {
    border-color: #7f1d1d;
    background: transparent;
    color: #fca5a5;
}
#tactics-pro-app.tp-is-playmaker #btnDeleteStep:hover {
    background: rgba(239, 68, 68, .12);
}

#tactics-pro-app.tp-is-playmaker #page-playmaker .timeline-nav .btn-icon,
#tactics-pro-app.tp-is-playmaker #page-playmaker .step-item {
    border-color: rgba(148, 163, 184, .26);
    background: rgba(2, 6, 23, .40);
}
#tactics-pro-app.tp-is-playmaker #page-playmaker .step-item.active {
    border-color: #60a5fa;
    background: #1d4ed8;
    color: #fff;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, .16);
}

#tactics-pro-app.tp-is-playmaker #page-playmaker .tp-timeline-options {
    padding-top: 2px;
    border-top: 1px solid rgba(148, 163, 184, .12);
}
#tactics-pro-app.tp-is-playmaker #page-playmaker .tp-inline-toggle,
#tactics-pro-app.tp-is-playmaker #page-playmaker .tp-line-mode-control {
    border-color: rgba(148, 163, 184, .25);
    background: rgba(2, 6, 23, .36);
}

#tactics-pro-app.tp-is-playmaker #rightPanel .context-panel,
#tactics-pro-app.tp-is-playmaker #rightPanel .tp-panel-block {
    border-radius: 10px;
    border-color: rgba(148, 163, 184, .22);
    background: #111923;
    box-shadow: none;
}
#tactics-pro-app.tp-is-playmaker #rightPanel .tp-panel-block--notes {
    border-left-color: #60a5fa;
}
#tactics-pro-app.tp-is-playmaker #rightPanel .tp-panel-block--legend {
    border-left-color: #64748b;
}

/* Progressive widths protect the playing surface before side panels disappear. */
@media (min-width: 1400px) {
    #tactics-pro-app.tp-is-playmaker #leftPanel.toolbar-wing { flex-basis: 300px !important; }
    #tactics-pro-app.tp-is-playmaker #rightPanel.toolbar-wing { flex-basis: 286px !important; }
}
@media (min-width: 1181px) and (max-width: 1399px) {
    #tactics-pro-app.tp-is-playmaker #leftPanel.toolbar-wing { flex-basis: 276px !important; }
    #tactics-pro-app.tp-is-playmaker #rightPanel.toolbar-wing { flex-basis: 258px !important; }
}
@media (min-width: 993px) and (max-width: 1180px) {
    #tactics-pro-app.tp-is-playmaker #leftPanel.toolbar-wing { flex-basis: 252px !important; }
    #tactics-pro-app.tp-is-playmaker #rightPanel.toolbar-wing { flex-basis: 238px !important; }
    #tactics-pro-app.tp-is-playmaker #leftPanel .tp-accordion-toggle { padding-left: 31px !important; }
}

/* Mobile app navigation hardening: preserve one-row editor height and allow swiping nav destinations. */
@media (max-width: 760px) {
    #tactics-pro-app .main-nav {
        gap: 6px;
        min-width: 0;
        overflow: hidden;
    }
    #tactics-pro-app .nav-logo { display: none; }
    #tactics-pro-app .nav-links {
        min-width: 0;
        flex: 1 1 auto;
        gap: 2px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }
    #tactics-pro-app .nav-links::-webkit-scrollbar { display: none; }
    #tactics-pro-app .nav-btn {
        flex: 0 0 auto;
        padding: 0 8px;
        white-space: nowrap;
    }
    #tactics-pro-app .nav-actions {
        flex: 0 0 auto;
        gap: 4px;
    }
    #tactics-pro-app .nav-actions #btnStartTour { display: none; }
    #tactics-pro-app .nav-actions .btn {
        min-height: 32px;
        padding: 5px 7px;
        font-size: .67rem;
        white-space: nowrap;
    }
    #tactics-pro-app.tp-is-settings .nav-actions #btnShare,
    #tactics-pro-app.tp-is-settings .nav-actions #btnPrint { display: none; }

    #tactics-pro-app.tp-is-playmaker #page-playmaker .tp-timeline-main-row { gap: 6px; }
    #tactics-pro-app.tp-is-playmaker #page-playmaker .tp-timeline-primary-actions { gap: 5px; }
    #tactics-pro-app.tp-is-playmaker #page-playmaker .tp-timeline-primary-actions .btn {
        min-height: 40px;
        padding: 7px 6px;
        font-size: .69rem;
    }
}

@media (max-width: 420px) {
    #tactics-pro-app .main-nav { padding-left: 6px; padding-right: 6px; }
    #tactics-pro-app .nav-btn { padding-left: 6px; padding-right: 6px; font-size: .69rem; }
    #tactics-pro-app.tp-is-playmaker #page-playmaker .timeline-bar { padding-left: 6px; padding-right: 6px; }
}

/* =========================================================
   v2.0.31.22 — Front Office navigation + contrast correction
   Review finding: legacy dark-theme component rules could survive inside the
   light Front Office shell. Keep this scoped to #page-settings so Playmaker,
   Film Room, Academy and viewer colour systems are unchanged.
   ========================================================= */
#tactics-pro-app #page-settings {
    --tp-fo-ink: #172033;
    --tp-fo-ink-strong: #0f172a;
    --tp-fo-muted: #475569;
    --tp-fo-muted-2: #64748b;
    --tp-fo-line: #d8e0ea;
    --tp-fo-line-strong: #c2ccd9;
    --tp-fo-blue: #1d4ed8;
    --tp-fo-blue-hover: #1e40af;
    --tp-fo-blue-soft: #eff6ff;
}

/* The tab rail is navigation, not a pill/control. Explicitly clear the
   inherited dark capsule from earlier application styles. */
#tactics-pro-app #page-settings .tp-fo-tabs {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}
#tactics-pro-app #page-settings .tp-fo-tab {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--tp-fo-muted) !important;
}
#tactics-pro-app #page-settings .tp-fo-tab:hover {
    color: var(--tp-fo-ink-strong) !important;
}
#tactics-pro-app #page-settings .tp-fo-tab.is-active {
    color: var(--tp-fo-blue) !important;
}
#tactics-pro-app #page-settings .tp-fo-tab.is-active::after {
    background: var(--tp-fo-blue) !important;
}
#tactics-pro-app #page-settings .tp-fo-tab:focus-visible {
    outline: 2px solid var(--tp-fo-blue) !important;
    outline-offset: 3px !important;
    box-shadow: none !important;
}

/* Header/status copy must remain readable on the white navigation surface. */
#tactics-pro-app #page-settings .tp-fo-status-chip,
#tactics-pro-app #page-settings .tp-fo-status-chip span,
#tactics-pro-app #page-settings .tp-fo-action-link,
#tactics-pro-app #page-settings .tp-fo-action-link--muted,
#tactics-pro-app #page-settings .tp-fo-dashboard-account > span,
#tactics-pro-app #page-settings .tp-fo-dashboard-footer-account > span:not(.tp-fo-section-label) {
    color: var(--tp-fo-muted) !important;
}
#tactics-pro-app #page-settings .tp-fo-action-link {
    text-decoration-color: transparent;
}
#tactics-pro-app #page-settings .tp-fo-action-link:hover,
#tactics-pro-app #page-settings .tp-fo-action-link:focus-visible {
    color: var(--tp-fo-blue) !important;
    opacity: 1 !important;
}
#tactics-pro-app #page-settings .tp-fo-status-sep,
#tactics-pro-app #page-settings .tp-fo-dashboard-account > span + span::before {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

/* High-legibility Front Office type hierarchy. Small/supporting copy uses a
   darker slate than the previous dark-theme muted grey. */
#tactics-pro-app #page-settings .tp-fo-page-title > p,
#tactics-pro-app #page-settings .tp-fo-dashboard-intro p,
#tactics-pro-app #page-settings .tp-fo-section-heading > span,
#tactics-pro-app #page-settings .tp-fo-work-header p,
#tactics-pro-app #page-settings .tp-form-subtitle,
#tactics-pro-app #page-settings .tp-field-help,
#tactics-pro-app #page-settings .tp-field-optional,
#tactics-pro-app #page-settings .tp-player-tag-meta,
#tactics-pro-app #page-settings .tp-selectable-meta,
#tactics-pro-app #page-settings .tp-selected-summary span,
#tactics-pro-app #page-settings .tp-roster-count,
#tactics-pro-app #page-settings .tp-preview-header span,
#tactics-pro-app #page-settings .tp-preview-row em,
#tactics-pro-app #page-settings .tp-preview-more,
#tactics-pro-app #page-settings .tp-preview-empty,
#tactics-pro-app #page-settings .tp-fo-primary-action-row > span,
#tactics-pro-app #page-settings .tp-fo-flow-inline li,
#tactics-pro-app #page-settings .tp-fo-dashboard-footer #tpCoachNextSteps .tp-status-message,
#tactics-pro-app #page-settings .tp-fo-dashboard-footer #tpCoachNextSteps .tp-status-message strong,
#tactics-pro-app #page-settings .tp-loading,
#tactics-pro-app #page-settings .tp-fo-loading {
    color: var(--tp-fo-muted) !important;
}
#tactics-pro-app #page-settings .tp-fo-page-eyebrow,
#tactics-pro-app #page-settings .tp-fo-section-label,
#tactics-pro-app #page-settings .tp-fo-work-kicker,
#tactics-pro-app #page-settings .tp-form-kicker {
    color: var(--tp-fo-muted-2) !important;
}
#tactics-pro-app #page-settings .tp-fo-body,
#tactics-pro-app #page-settings .tp-account-detail-value,
#tactics-pro-app #page-settings .tp-selectable-title,
#tactics-pro-app #page-settings .tp-preview-header,
#tactics-pro-app #page-settings .tp-player-tag-name {
    color: var(--tp-fo-ink) !important;
}
#tactics-pro-app #page-settings .tp-account-detail-label {
    color: var(--tp-fo-muted) !important;
}

/* Convert remaining legacy dark working components to the light Front Office
   surface while preserving their existing markup and behaviours. */
#tactics-pro-app #page-settings .tp-comm-sidebar,
#tactics-pro-app #page-settings .tp-selectable-card,
#tactics-pro-app #page-settings .tp-selected-summary,
#tactics-pro-app #page-settings .tp-preview-row,
#tactics-pro-app #page-settings .tp-preview-empty,
#tactics-pro-app #page-settings .tp-preview-more,
#tactics-pro-app #page-settings .tp-account-detail-row,
#tactics-pro-app #page-settings .tp-fo-steps-horizontal li {
    background: #ffffff !important;
    border-color: var(--tp-fo-line) !important;
    color: var(--tp-fo-ink) !important;
    box-shadow: none !important;
}
#tactics-pro-app #page-settings .tp-selectable-card:hover {
    background: #f8fafc !important;
    border-color: #93b4ef !important;
}
#tactics-pro-app #page-settings .tp-selectable-card.is-selected {
    background: var(--tp-fo-blue-soft) !important;
    border-color: #6f9fe8 !important;
    box-shadow: 0 0 0 2px rgba(29, 78, 216, .08) !important;
}
#tactics-pro-app #page-settings .tp-selected-summary {
    background: #f8fafc !important;
}
#tactics-pro-app #page-settings .tp-selected-summary strong {
    color: var(--tp-fo-ink-strong) !important;
}
#tactics-pro-app #page-settings .tp-player-tag {
    background: #f8fafc !important;
    border-color: var(--tp-fo-line) !important;
}
#tactics-pro-app #page-settings .tp-usage-bar-container {
    background: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
}
#tactics-pro-app #page-settings .tp-preview-warning {
    color: #92400e !important;
    background: #fffbeb !important;
    border-color: #f3d38a !important;
}

/* Badges/chips use dark semantic foregrounds on pale surfaces so small text
   stays clearly legible. */
#tactics-pro-app #page-settings .tp-comm-count,
#tactics-pro-app #page-settings .tp-content-badge,
#tactics-pro-app #page-settings .tp-chip {
    color: var(--tp-fo-blue) !important;
    background: var(--tp-fo-blue-soft) !important;
    border-color: #bfdbfe !important;
}
#tactics-pro-app #page-settings .tp-selectable-card.is-selected .tp-content-badge,
#tactics-pro-app #page-settings .tp-chip--success {
    color: #166534 !important;
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
}
#tactics-pro-app #page-settings .tp-chip--warning {
    color: #92400e !important;
    background: #fffbeb !important;
    border-color: #fde68a !important;
}
#tactics-pro-app #page-settings .tp-chip--danger {
    color: #b91c1c !important;
    background: #fef2f2 !important;
    border-color: #fecaca !important;
}

/* Notices/status messages previously used bright dark-mode text. */
#tactics-pro-app #page-settings .tp-status-message,
#tactics-pro-app #page-settings #commStatus,
#tactics-pro-app #page-settings #shareEmailStatus,
#tactics-pro-app #page-settings .tp-notice {
    color: #334155 !important;
    background: #f8fafc !important;
    border-color: var(--tp-fo-line) !important;
    box-shadow: none !important;
}
#tactics-pro-app #page-settings .tp-status-success {
    color: #166534 !important;
    background: #f0fdf4 !important;
    border-color: #86efac !important;
    border-left-color: #15803d !important;
}
#tactics-pro-app #page-settings .tp-status-error,
#tactics-pro-app #page-settings .tp-fo-error,
#tactics-pro-app #page-settings .tp-error {
    color: #b91c1c !important;
    background: #fef2f2 !important;
    border-color: #fca5a5 !important;
    border-left-color: #b91c1c !important;
}
#tactics-pro-app #page-settings .tp-status-warning,
#tactics-pro-app #page-settings .tp-upgrade-banner,
#tactics-pro-app #page-settings .tp-upgrade-banner p {
    color: #92400e !important;
}
#tactics-pro-app #page-settings .tp-status-warning,
#tactics-pro-app #page-settings .tp-upgrade-banner {
    background: #fffbeb !important;
    border-color: #f3d38a !important;
}

/* Inputs and placeholders: avoid grey-on-grey form states. */
#tactics-pro-app #page-settings .tp-inp::placeholder,
#tactics-pro-app #page-settings .tp-control::placeholder,
#tactics-pro-app #page-settings input::placeholder,
#tactics-pro-app #page-settings textarea::placeholder {
    color: #667085 !important;
    opacity: 1 !important;
}
#tactics-pro-app #page-settings .tp-inp:disabled,
#tactics-pro-app #page-settings .tp-control:disabled,
#tactics-pro-app #page-settings input:disabled,
#tactics-pro-app #page-settings select:disabled,
#tactics-pro-app #page-settings textarea:disabled {
    color: #475569 !important;
    background: #f1f5f9 !important;
    opacity: 1 !important;
}

/* Front Office buttons should not retain near-black editor button surfaces. */
#tactics-pro-app #page-settings .btn.primary {
    background: var(--tp-fo-blue) !important;
    border-color: var(--tp-fo-blue) !important;
    color: #ffffff !important;
}
#tactics-pro-app #page-settings .btn.primary:hover {
    background: var(--tp-fo-blue-hover) !important;
    border-color: var(--tp-fo-blue-hover) !important;
    opacity: 1 !important;
}
#tactics-pro-app #page-settings .btn.secondary,
#tactics-pro-app #page-settings .btn.ghost,
#tactics-pro-app #page-settings .btn.tp-btn-outline,
#tactics-pro-app #page-settings .tp-btn-outline {
    background: #ffffff !important;
    border-color: var(--tp-fo-line-strong) !important;
    color: #334155 !important;
}
#tactics-pro-app #page-settings .btn.secondary:hover,
#tactics-pro-app #page-settings .btn.ghost:hover,
#tactics-pro-app #page-settings .btn.tp-btn-outline:hover,
#tactics-pro-app #page-settings .tp-btn-outline:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: var(--tp-fo-ink-strong) !important;
    opacity: 1 !important;
}
#tactics-pro-app #page-settings .btn.success {
    background: #166534 !important;
    border-color: #166534 !important;
    color: #ffffff !important;
}
#tactics-pro-app #page-settings .btn.danger,
#tactics-pro-app #page-settings .tp-roster-delete {
    color: #b91c1c !important;
    border-color: #f3b2b2 !important;
}
#tactics-pro-app #page-settings .btn.danger {
    background: #b91c1c !important;
    color: #ffffff !important;
    border-color: #b91c1c !important;
}
#tactics-pro-app #page-settings .tp-roster-delete {
    background: #ffffff !important;
}
#tactics-pro-app #page-settings .tp-roster-delete:hover {
    background: #fef2f2 !important;
    border-color: #ef4444 !important;
    opacity: 1 !important;
}
#tactics-pro-app #page-settings .btn.warning {
    background: #b45309 !important;
    border-color: #b45309 !important;
    color: #ffffff !important;
}

/* Keep the narrow-screen rail clean as it becomes horizontally scrollable. */
@media (max-width: 900px) {
    #tactics-pro-app #page-settings .tp-fo-tabs {
        background: transparent !important;
        border: 0 !important;
        padding: 0 !important;
    }
}

@media (min-width: 901px) {
    #tactics-pro-app #page-settings .tp-fo-header-meta {
        padding-left: 18px !important;
        border-left: 1px solid var(--tp-fo-line) !important;
    }
}
#tactics-pro-app #page-settings .tp-selectable-card.is-selected::before {
    color: #166534 !important;
}
#tactics-pro-app #page-settings .tp-status-warning {
    border-left-color: #b45309 !important;
}

/* =========================================================
   v2.0.31.23 — Front Office cohesion + form surface system
   Review finding: several Front Office tabs still inherited the old dark
   application's border/padding/type rules. This block establishes one scoped
   light component language for Build, Rosters, Communications, Billing,
   Settings and Workspace without changing their behaviours or data flow.
   ========================================================= */
#tactics-pro-app #page-settings {
    --tp-fo-page: #f4f7fb;
    --tp-fo-card: #ffffff;
    --tp-fo-soft: #f8fafc;
    --tp-fo-soft-blue: #f3f7ff;
    --tp-fo-ink-strong: #101828;
    --tp-fo-ink: #1f2937;
    --tp-fo-muted: #475467;
    --tp-fo-muted-2: #5f6f85;
    --tp-fo-line: #d7e0ea;
    --tp-fo-line-strong: #b8c5d4;
    --tp-fo-blue: #1d4ed8;
    --tp-fo-blue-hover: #1e40af;
    --tp-fo-card-pad: clamp(20px, 2vw, 28px);
    --tp-fo-card-radius: 14px;
    --tp-fo-card-shadow: 0 3px 14px rgba(15, 23, 42, .045);
    background: var(--tp-fo-page) !important;
    color: var(--tp-fo-ink) !important;
}

/* One consistent content rhythm across every Front Office task screen. */
#tactics-pro-app #page-settings .tp-fo-content-shell {
    width: 100%;
    min-width: 0;
}
#tactics-pro-app #page-settings .tp-fo-work-page,
#tactics-pro-app #page-settings .tp-fo-billing-page,
#tactics-pro-app #page-settings .tp-fo-workspace-page {
    width: 100%;
    max-width: 1280px;
    min-width: 0;
    margin: 0 auto;
    gap: 24px;
}
#tactics-pro-app #page-settings .tp-fo-work-header {
    max-width: 780px;
    gap: 7px;
    padding: 0 2px;
    margin: 0;
}
#tactics-pro-app #page-settings .tp-fo-work-header h2 {
    color: var(--tp-fo-ink-strong) !important;
    font-size: clamp(1.55rem, 2.4vw, 2rem);
    font-weight: 760;
    letter-spacing: -.035em;
}
#tactics-pro-app #page-settings .tp-fo-work-header p {
    max-width: 720px;
    color: var(--tp-fo-muted) !important;
    font-size: .92rem;
    line-height: 1.55;
}
#tactics-pro-app #page-settings .tp-fo-work-kicker,
#tactics-pro-app #page-settings .tp-form-kicker {
    color: var(--tp-fo-muted-2) !important;
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: .11em;
}

/* Primary working surfaces. Earlier Front Office rules intentionally removed
   card chrome; on the light portal that left white blocks looking unfinished.
   Restore a restrained, shared SaaS surface here. */
#tactics-pro-app #page-settings .tp-fo-form-surface,
#tactics-pro-app #page-settings .tp-form-card,
#tactics-pro-app #page-settings .settings-card.tp-form-card,
#tactics-pro-app #page-settings .tp-section-card,
#tactics-pro-app #page-settings .tp-comm-content-panel,
#tactics-pro-app #page-settings .tp-roster-list-panel {
    box-sizing: border-box;
    min-width: 0;
    padding: var(--tp-fo-card-pad) !important;
    border: 1px solid var(--tp-fo-line) !important;
    border-radius: var(--tp-fo-card-radius) !important;
    background: var(--tp-fo-card) !important;
    color: var(--tp-fo-ink) !important;
    box-shadow: var(--tp-fo-card-shadow) !important;
}
#tactics-pro-app #page-settings .tp-section-card::before,
#tactics-pro-app #page-settings .settings-card.tp-section-card::before,
#tactics-pro-app #page-settings .tp-form-card.tp-section-card::before {
    display: none !important;
}
#tactics-pro-app #page-settings .tp-fo-form-surface {
    border-top: 1px solid var(--tp-fo-line) !important;
}
#tactics-pro-app #page-settings .tp-fo-build-surface {
    width: 100%;
    max-width: 1180px;
}
#tactics-pro-app #page-settings .tp-fo-settings-grid,
#tactics-pro-app #page-settings .tp-roster-grid--refined,
#tactics-pro-app #page-settings .tp-comm-layout--refined,
#tactics-pro-app #page-settings .tp-billing-layout,
#tactics-pro-app #page-settings .tp-workspace-priority-layout {
    min-width: 0;
}
#tactics-pro-app #page-settings .tp-fo-settings-grid > *,
#tactics-pro-app #page-settings .tp-roster-grid--refined > *,
#tactics-pro-app #page-settings .tp-comm-layout--refined > *,
#tactics-pro-app #page-settings .tp-billing-layout > *,
#tactics-pro-app #page-settings .tp-workspace-priority-layout > * {
    min-width: 0;
}

/* Section headers now belong to the same design language as their surfaces. */
#tactics-pro-app #page-settings .tp-form-header {
    gap: 6px;
    margin: 0 0 22px !important;
}
#tactics-pro-app #page-settings .tp-form-title {
    color: var(--tp-fo-ink-strong) !important;
    font-size: 1.04rem;
    font-weight: 750;
    letter-spacing: -.018em;
    line-height: 1.25;
}
#tactics-pro-app #page-settings .tp-form-subtitle,
#tactics-pro-app #page-settings .tp-field-help,
#tactics-pro-app #page-settings .tp-empty-state p,
#tactics-pro-app #page-settings .tp-member-identity span,
#tactics-pro-app #page-settings .tp-member-role small,
#tactics-pro-app #page-settings .tp-reference-list span,
#tactics-pro-app #page-settings .tp-permission-row p,
#tactics-pro-app #page-settings .tp-receipt-row small {
    color: var(--tp-fo-muted) !important;
}
#tactics-pro-app #page-settings .tp-form-subtitle,
#tactics-pro-app #page-settings .tp-field-help {
    font-size: .8rem;
    line-height: 1.52;
}
#tactics-pro-app #page-settings .tp-form-subtitle strong,
#tactics-pro-app #page-settings .tp-field-help strong,
#tactics-pro-app #page-settings .tp-empty-state strong,
#tactics-pro-app #page-settings .tp-reference-list strong,
#tactics-pro-app #page-settings .tp-permission-row strong,
#tactics-pro-app #page-settings .tp-receipt-row strong,
#tactics-pro-app #page-settings .tp-member-identity strong {
    color: var(--tp-fo-ink-strong) !important;
}

/* Form controls: clear boundary, dark text, legible helper/placeholder states. */
#tactics-pro-app #page-settings .input-group,
#tactics-pro-app #page-settings .tp-form-grid > div {
    min-width: 0;
}
#tactics-pro-app #page-settings .input-group label,
#tactics-pro-app #page-settings .tp-field-label {
    display: block;
    margin: 0 0 8px;
    color: #29384d !important;
    font-size: .77rem;
    font-weight: 760;
    line-height: 1.35;
}
#tactics-pro-app #page-settings .tp-field-optional {
    color: var(--tp-fo-muted) !important;
    font-weight: 600;
}
#tactics-pro-app #page-settings .tp-required {
    color: #b42318 !important;
}
#tactics-pro-app #page-settings .tp-inp,
#tactics-pro-app #page-settings .tp-control,
#tactics-pro-app #page-settings input[type="text"],
#tactics-pro-app #page-settings input[type="email"],
#tactics-pro-app #page-settings input[type="url"],
#tactics-pro-app #page-settings input[type="number"],
#tactics-pro-app #page-settings input[type="datetime-local"],
#tactics-pro-app #page-settings select,
#tactics-pro-app #page-settings textarea {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    box-sizing: border-box;
    padding: 11px 13px;
    border: 1px solid var(--tp-fo-line-strong) !important;
    border-radius: 9px !important;
    background: #fbfcfe !important;
    color: var(--tp-fo-ink-strong) !important;
    box-shadow: inset 0 1px 1px rgba(15, 23, 42, .015) !important;
    font-size: .91rem;
    line-height: 1.35;
}
#tactics-pro-app #page-settings textarea.tp-inp,
#tactics-pro-app #page-settings textarea.tp-control {
    min-height: 132px;
    resize: vertical;
}
#tactics-pro-app #page-settings .tp-inp:hover,
#tactics-pro-app #page-settings .tp-control:hover,
#tactics-pro-app #page-settings input:hover,
#tactics-pro-app #page-settings select:hover,
#tactics-pro-app #page-settings textarea:hover {
    border-color: #8fa1b6 !important;
}
#tactics-pro-app #page-settings .tp-inp:focus,
#tactics-pro-app #page-settings .tp-control:focus,
#tactics-pro-app #page-settings input:focus,
#tactics-pro-app #page-settings select:focus,
#tactics-pro-app #page-settings textarea:focus {
    border-color: #4f7ee8 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .12) !important;
    outline: none !important;
}
#tactics-pro-app #page-settings input::placeholder,
#tactics-pro-app #page-settings textarea::placeholder,
#tactics-pro-app #page-settings .tp-inp::placeholder,
#tactics-pro-app #page-settings .tp-control::placeholder {
    color: #667085 !important;
    opacity: 1 !important;
}
#tactics-pro-app #page-settings .tp-form-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e7edf4 !important;
}

/* Build page: the action is part of the form, not a detached strip touching a
   different background. */
#tactics-pro-app #page-settings .tp-fo-build-fields {
    gap: 24px 28px;
}
#tactics-pro-app #page-settings .tp-fo-primary-action-row {
    margin: 28px 0 0;
    padding: 16px 18px;
    border: 1px solid #e3eaf2 !important;
    border-radius: 10px;
    background: var(--tp-fo-soft);
}
#tactics-pro-app #page-settings .tp-fo-primary-action-row > span {
    color: var(--tp-fo-muted) !important;
    font-size: .78rem;
}

/* Rosters: saved lists and create form use matching outer surfaces; individual
   people remain light nested rows so the page does not become card-on-card heavy. */
#tactics-pro-app #page-settings .tp-fo-usage-strip {
    box-sizing: border-box;
    padding: 16px 18px !important;
    border: 1px solid var(--tp-fo-line) !important;
    border-radius: 11px !important;
    background: var(--tp-fo-soft) !important;
}
#tactics-pro-app #page-settings .tp-roster-list-panel > .tp-form-header,
#tactics-pro-app #page-settings .tp-comm-content-header {
    padding-bottom: 16px;
    border-bottom: 1px solid #e7edf4 !important;
}
#tactics-pro-app #page-settings .tp-roster-list-card {
    margin: 0 !important;
    padding: 16px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #e7edf4 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
#tactics-pro-app #page-settings .tp-roster-list-card:last-child {
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
}
#tactics-pro-app #page-settings .tp-roster-list-header {
    border-bottom: 0 !important;
    padding-bottom: 0;
    margin-bottom: 10px;
}
#tactics-pro-app #page-settings .tp-player-tag {
    margin-bottom: 7px;
    padding: 9px 11px;
    border: 1px solid #e1e8f0 !important;
    border-radius: 8px !important;
    background: var(--tp-fo-soft) !important;
}

/* Communications: composer and library now read as peer panels. */
#tactics-pro-app #page-settings .tp-comm-sidebar {
    top: 18px;
}
#tactics-pro-app #page-settings .tp-comm-grid {
    padding-right: 3px;
}
#tactics-pro-app #page-settings .tp-selectable-card {
    border: 1px solid #dde5ee !important;
    border-radius: 9px !important;
    background: #fbfcfe !important;
    color: var(--tp-fo-ink) !important;
}
#tactics-pro-app #page-settings .tp-selectable-card:hover {
    border-color: #96b3e8 !important;
    background: #f7faff !important;
}
#tactics-pro-app #page-settings .tp-selectable-card.is-selected {
    border-color: #7aa0eb !important;
    background: var(--tp-fo-soft-blue) !important;
}
#tactics-pro-app #page-settings .tp-selected-summary {
    border: 1px solid var(--tp-fo-line) !important;
    border-radius: 9px !important;
    background: var(--tp-fo-soft) !important;
}

/* Billing: match the other task pages and keep receipt text strong enough on
   white/soft backgrounds. */
#tactics-pro-app #page-settings .tp-billing-layout {
    gap: 20px;
}
#tactics-pro-app #page-settings .tp-account-detail-grid {
    gap: 0;
    overflow: hidden;
    border: 1px solid #e1e8f0;
    border-radius: 10px;
    background: var(--tp-fo-soft);
}
#tactics-pro-app #page-settings .tp-account-detail-row {
    min-height: 48px;
    padding: 11px 13px;
    border: 0 !important;
    border-bottom: 1px solid #e1e8f0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}
#tactics-pro-app #page-settings .tp-account-detail-row:last-child {
    border-bottom: 0 !important;
}
#tactics-pro-app #page-settings .tp-account-detail-label {
    color: var(--tp-fo-muted) !important;
}
#tactics-pro-app #page-settings .tp-account-detail-value {
    color: var(--tp-fo-ink-strong) !important;
}
#tactics-pro-app #page-settings .tp-receipt-row {
    padding: 12px 13px;
    border: 1px solid #dde5ee !important;
    border-radius: 9px !important;
    background: #fbfcfe !important;
    color: var(--tp-fo-ink) !important;
}
#tactics-pro-app #page-settings .tp-receipt-row:hover {
    border-color: #96b3e8 !important;
    background: #f7faff !important;
}
#tactics-pro-app #page-settings .tp-empty-state,
#tactics-pro-app #page-settings .tp-empty-panel {
    box-sizing: border-box;
    padding: 17px !important;
    border: 1px dashed #bcc9d8 !important;
    border-radius: 10px !important;
    background: var(--tp-fo-soft) !important;
    color: var(--tp-fo-muted) !important;
    box-shadow: none !important;
}

/* Settings branding block: remove the remaining dark uploader shell. */
#tactics-pro-app #page-settings .tp-brand-logo-editor {
    padding: 14px;
    border: 1px solid var(--tp-fo-line) !important;
    border-radius: 11px;
    background: var(--tp-fo-soft) !important;
}
#tactics-pro-app #page-settings .tp-brand-logo-preview {
    border-color: #d6dfeb;
    background: linear-gradient(145deg, #334155, #172033);
    box-shadow: 0 4px 12px rgba(15, 23, 42, .12);
}
#tactics-pro-app #page-settings .tp-brand-logo-actions .tp-field-help {
    opacity: 1;
}
#tactics-pro-app #page-settings .tp-btn.tp-btn-secondary,
#tactics-pro-app #page-settings .tp-btn.tp-btn-ghost,
#tactics-pro-app #page-settings .tp-brand-logo-upload {
    border: 1px solid var(--tp-fo-line-strong) !important;
    background: #ffffff !important;
    color: #344054 !important;
    box-shadow: none !important;
}
#tactics-pro-app #page-settings .tp-btn.tp-btn-secondary:hover,
#tactics-pro-app #page-settings .tp-btn.tp-btn-ghost:hover,
#tactics-pro-app #page-settings .tp-brand-logo-upload:hover {
    border-color: #8fa1b6 !important;
    background: var(--tp-fo-soft) !important;
    color: var(--tp-fo-ink-strong) !important;
}

/* Workspace: replace dark nested cards/rows with a clear information hierarchy. */
#tactics-pro-app #page-settings .tp-workspace-main-column,
#tactics-pro-app #page-settings .tp-workspace-side-column {
    gap: 18px;
}
#tactics-pro-app #page-settings .tp-workspace-side-column .settings-card {
    padding: var(--tp-fo-card-pad) !important;
}
#tactics-pro-app #page-settings .tp-workspace-stat-grid {
    gap: 10px;
}
#tactics-pro-app #page-settings .tp-workspace-stat {
    min-height: 76px;
    padding: 12px;
    border: 1px solid #dce5ef !important;
    border-radius: 10px !important;
    background: var(--tp-fo-soft) !important;
    color: var(--tp-fo-ink) !important;
    box-shadow: none !important;
}
#tactics-pro-app #page-settings .tp-workspace-stat-label {
    color: var(--tp-fo-muted-2) !important;
}
#tactics-pro-app #page-settings .tp-workspace-stat strong {
    color: var(--tp-fo-ink-strong) !important;
}
#tactics-pro-app #page-settings .tp-member-row,
#tactics-pro-app #page-settings .tp-reference-list > div,
#tactics-pro-app #page-settings .tp-reference-list-row,
#tactics-pro-app #page-settings .tp-permission-row {
    border: 1px solid #dde5ee !important;
    border-radius: 9px !important;
    background: var(--tp-fo-soft) !important;
    color: var(--tp-fo-ink) !important;
    box-shadow: none !important;
}
#tactics-pro-app #page-settings .tp-member-row {
    padding: 12px 13px;
}
#tactics-pro-app #page-settings .tp-reference-list > div,
#tactics-pro-app #page-settings .tp-reference-list-row {
    padding: 10px 11px;
}
#tactics-pro-app #page-settings .tp-permission-row {
    padding: 9px 10px;
}
#tactics-pro-app #page-settings .tp-permission-row.is-enabled span {
    color: #ffffff !important;
    background: #15803d !important;
}
#tactics-pro-app #page-settings .tp-permission-row.is-disabled {
    opacity: 1;
    background: #f7f8fa !important;
}
#tactics-pro-app #page-settings .tp-permission-row.is-disabled span {
    color: #475467 !important;
    background: #e4e7ec !important;
}
#tactics-pro-app #page-settings .tp-permission-details summary {
    color: #344054 !important;
}
#tactics-pro-app #page-settings .tp-chip--role {
    color: #1d4ed8 !important;
    border-color: #bfd2f7 !important;
    background: #eff6ff !important;
}

/* Notices use dark semantic foregrounds on pale backgrounds. */
#tactics-pro-app #page-settings .tp-notice-card {
    border: 1px solid #b9d2f5 !important;
    border-left: 4px solid #2563eb !important;
    border-radius: 9px !important;
    background: #eff6ff !important;
    color: #1e3a5f !important;
}
#tactics-pro-app #page-settings .tp-notice-card--success {
    border-color: #a7d8b7 !important;
    border-left-color: #15803d !important;
    background: #f0fdf4 !important;
    color: #166534 !important;
}
#tactics-pro-app #page-settings .tp-notice-card--warning {
    border-color: #edd59a !important;
    border-left-color: #b45309 !important;
    background: #fffbeb !important;
    color: #854d0e !important;
}
#tactics-pro-app #page-settings .tp-notice-card strong {
    color: inherit !important;
}

/* Maintain a reliable contrast floor for small metadata that older dark-theme
   selectors can otherwise recolour after hydration. */
#tactics-pro-app #page-settings .tp-roster-count,
#tactics-pro-app #page-settings .tp-player-tag-meta,
#tactics-pro-app #page-settings .tp-selectable-meta,
#tactics-pro-app #page-settings .tp-preview-row em,
#tactics-pro-app #page-settings .tp-preview-more,
#tactics-pro-app #page-settings .tp-preview-empty,
#tactics-pro-app #page-settings .tp-comm-count,
#tactics-pro-app #page-settings .tp-content-badge {
    color: var(--tp-fo-muted) !important;
}
#tactics-pro-app #page-settings a:not(.btn):not(.tp-btn):not(.tp-fo-launch-card):not(.tp-receipt-row) {
    color: #1d4ed8;
}

/* Responsive containment: cards keep breathing room without touching page
   edges, and all multi-column forms collapse before controls become cramped. */
@media (max-width: 1180px) {
    #tactics-pro-app #page-settings .tp-fo-work-page,
    #tactics-pro-app #page-settings .tp-fo-billing-page,
    #tactics-pro-app #page-settings .tp-fo-workspace-page {
        max-width: none;
    }
    #tactics-pro-app #page-settings .tp-billing-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1050px) {
    #tactics-pro-app #page-settings .tp-fo-settings-grid,
    #tactics-pro-app #page-settings .tp-roster-grid--refined,
    #tactics-pro-app #page-settings .tp-comm-layout--refined {
        gap: 18px;
    }
}

@media (max-width: 680px) {
    #tactics-pro-app #page-settings {
        --tp-fo-card-pad: 18px;
        --tp-fo-card-radius: 12px;
    }
    #tactics-pro-app #page-settings .tp-fo-work-page {
        gap: 20px;
        padding-bottom: 26px;
    }
    #tactics-pro-app #page-settings .tp-fo-work-header {
        padding-inline: 1px;
    }
    #tactics-pro-app #page-settings .tp-fo-work-header h2 {
        font-size: 1.5rem;
    }
    #tactics-pro-app #page-settings .tp-fo-primary-action-row {
        margin-top: 22px;
    }
    #tactics-pro-app #page-settings .tp-account-detail-row,
    #tactics-pro-app #page-settings .tp-receipt-row,
    #tactics-pro-app #page-settings .tp-member-row {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    #tactics-pro-app #page-settings {
        --tp-fo-card-pad: 16px;
    }
    #tactics-pro-app #page-settings .tp-fo-work-page,
    #tactics-pro-app #page-settings .tp-fo-billing-page,
    #tactics-pro-app #page-settings .tp-fo-workspace-page {
        gap: 17px;
    }
    #tactics-pro-app #page-settings .tp-form-title {
        font-size: 1rem;
    }
    #tactics-pro-app #page-settings .tp-inp,
    #tactics-pro-app #page-settings .tp-control,
    #tactics-pro-app #page-settings input,
    #tactics-pro-app #page-settings select,
    #tactics-pro-app #page-settings textarea {
        font-size: 16px; /* Prevent iOS focus zoom. */
    }
    #tactics-pro-app #page-settings .tp-account-detail-row,
    #tactics-pro-app #page-settings .tp-receipt-row {
        gap: 8px;
    }
}

/* =========================================================
   v2.0.31.24 — Playmaker control hierarchy + responsive polish
   Review goal: make the editor controls feel intentionally designed around
   coaching workflow without changing canvas, drill-state, accordion or tool
   behaviour. Colours communicate location; contrast communicates action.
   ========================================================= */
#tactics-pro-app.tp-is-playmaker {
    --tp-pm-panel: #0f1722;
    --tp-pm-panel-raised: #131d2a;
    --tp-pm-control: #09111b;
    --tp-pm-line: #344255;
    --tp-pm-line-strong: #46566b;
    --tp-pm-text: #f1f5f9;
    --tp-pm-text-soft: #d3dce8;
    --tp-pm-muted: #a9b7c8;
}

/* Left navigation: numbered, colour-coded sections make the editor scannable
   without adding another toolbar or duplicating controls. */
#tactics-pro-app.tp-is-playmaker #leftPanel {
    counter-reset: tp-pm-section;
}
#tactics-pro-app.tp-is-playmaker #leftPanel .tp-accordion {
    counter-increment: tp-pm-section;
    background: var(--tp-pm-panel) !important;
    border-color: var(--tp-accordion-border) !important;
    border-left-width: 4px !important;
}
#tactics-pro-app.tp-is-playmaker #leftPanel .tp-accordion-toggle {
    min-height: 48px !important;
    padding: 9px 10px 9px 43px !important;
    background: linear-gradient(90deg, var(--tp-accordion-soft), rgba(15, 23, 34, .98) 78%) !important;
    color: var(--tp-pm-text) !important;
    font-size: .81rem !important;
    font-weight: 850 !important;
}
#tactics-pro-app.tp-is-playmaker #leftPanel .tp-accordion-toggle::before {
    content: counter(tp-pm-section);
    left: 10px;
    width: 23px;
    height: 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid color-mix(in srgb, var(--tp-accordion-accent) 78%, white 22%);
    border-radius: 6px;
    background: var(--tp-accordion-accent);
    box-shadow: 0 0 0 3px var(--tp-accordion-soft);
    color: #071019;
    font-size: .68rem;
    font-weight: 950;
    line-height: 1;
}
#tactics-pro-app.tp-is-playmaker #leftPanel .tp-accordion-toggle > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#tactics-pro-app.tp-is-playmaker #leftPanel .tp-accordion-chevron {
    min-width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 6px;
    background: rgba(2, 6, 23, .32);
    color: var(--tp-accordion-accent) !important;
}
#tactics-pro-app.tp-is-playmaker #leftPanel .tp-accordion.is-open .tp-accordion-toggle {
    background: linear-gradient(90deg, var(--tp-accordion-soft), rgba(15, 23, 34, .94) 66%) !important;
}
#tactics-pro-app.tp-is-playmaker #leftPanel .tp-accordion.is-open .tp-accordion-body {
    padding: 13px !important;
    background: linear-gradient(180deg, rgba(7, 12, 20, .88), color-mix(in srgb, var(--tp-accordion-soft) 52%, #0f1722 48%)) !important;
}

/* Control mode is a small utility selector, not another heavy card. */
#tactics-pro-app.tp-is-playmaker .tp-control-mode-card {
    padding: 11px !important;
    border-color: #334155 !important;
    background: #101923 !important;
}
#tactics-pro-app.tp-is-playmaker .tp-control-mode-card .tp-panel-kicker {
    margin-bottom: 4px;
    color: #9fb0c4;
}
#tactics-pro-app.tp-is-playmaker .tp-control-mode-card strong {
    color: var(--tp-pm-text);
}
#tactics-pro-app.tp-is-playmaker .tp-control-mode-card .tp-field-help {
    color: var(--tp-pm-muted);
}
#tactics-pro-app.tp-is-playmaker .tp-control-mode-switch {
    border-color: #3b4a5e;
    background: #07101a;
}
#tactics-pro-app.tp-is-playmaker .tp-control-mode-btn {
    color: #b3c0d0;
}
#tactics-pro-app.tp-is-playmaker .tp-control-mode-btn.is-active {
    background: #eaf3ff;
    color: #173f7b;
}

/* Every Playmaker input now belongs to the editor rather than looking like a
   generic WordPress/admin field. Focus inherits the colour of its section. */
#tactics-pro-app.tp-is-playmaker #leftPanel .input-group label,
#tactics-pro-app.tp-is-playmaker #rightPanel .input-group label {
    margin-bottom: 6px;
    color: #dbe5f0;
    font-size: .73rem;
    font-weight: 750;
}
#tactics-pro-app.tp-is-playmaker #leftPanel input:not([type="checkbox"]):not([type="radio"]),
#tactics-pro-app.tp-is-playmaker #leftPanel select,
#tactics-pro-app.tp-is-playmaker #leftPanel textarea,
#tactics-pro-app.tp-is-playmaker #rightPanel input:not([type="checkbox"]):not([type="radio"]),
#tactics-pro-app.tp-is-playmaker #rightPanel select,
#tactics-pro-app.tp-is-playmaker #rightPanel textarea {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--tp-pm-line-strong) !important;
    border-radius: 8px !important;
    background: var(--tp-pm-control) !important;
    color: #f8fafc !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}
#tactics-pro-app.tp-is-playmaker #leftPanel input::placeholder,
#tactics-pro-app.tp-is-playmaker #leftPanel textarea::placeholder,
#tactics-pro-app.tp-is-playmaker #rightPanel input::placeholder,
#tactics-pro-app.tp-is-playmaker #rightPanel textarea::placeholder {
    color: #8797aa !important;
    opacity: 1;
}
#tactics-pro-app.tp-is-playmaker #leftPanel .tp-accordion input:focus,
#tactics-pro-app.tp-is-playmaker #leftPanel .tp-accordion select:focus,
#tactics-pro-app.tp-is-playmaker #leftPanel .tp-accordion textarea:focus {
    outline: none !important;
    border-color: var(--tp-accordion-accent) !important;
    box-shadow: 0 0 0 3px var(--tp-accordion-soft) !important;
}
#tactics-pro-app.tp-is-playmaker #rightPanel input:focus,
#tactics-pro-app.tp-is-playmaker #rightPanel select:focus,
#tactics-pro-app.tp-is-playmaker #rightPanel textarea:focus {
    outline: none !important;
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, .14) !important;
}
#tactics-pro-app.tp-is-playmaker #leftPanel .tp-panel-help,
#tactics-pro-app.tp-is-playmaker #leftPanel .tp-field-help,
#tactics-pro-app.tp-is-playmaker #rightPanel .tp-panel-help,
#tactics-pro-app.tp-is-playmaker #rightPanel .tp-field-help,
#tactics-pro-app.tp-is-playmaker #rightPanel .hint {
    color: var(--tp-pm-muted) !important;
}
#tactics-pro-app.tp-is-playmaker #leftPanel .drill-header-info {
    border-color: color-mix(in srgb, var(--tp-pm-details) 45%, #334155 55%);
    background: rgba(52, 211, 153, .075);
    box-shadow: none;
}
#tactics-pro-app.tp-is-playmaker #leftPanel .drill-header-info h2 {
    color: #f8fafc;
}

/* Secondary disclosure rows should clearly read as optional controls. */
#tactics-pro-app.tp-is-playmaker #leftPanel .tp-sub-disclosure {
    border-color: #354459;
    background: #0a121d;
}
#tactics-pro-app.tp-is-playmaker #leftPanel .tp-sub-disclosure > summary {
    min-height: 40px;
    color: #dbe5f0;
}
#tactics-pro-app.tp-is-playmaker #leftPanel .tp-sub-disclosure > summary::after {
    color: var(--tp-accordion-accent);
}
#tactics-pro-app.tp-is-playmaker #leftPanel .tp-sub-disclosure[open] {
    border-color: var(--tp-accordion-border);
    background: color-mix(in srgb, var(--tp-accordion-soft) 34%, #09111b 66%);
}
#tactics-pro-app.tp-is-playmaker #leftPanel .tp-quick-setup-primary {
    border-color: rgba(96, 165, 250, .36);
    background: rgba(96, 165, 250, .085);
}

/* Team Shape: active formation reads as a selection instead of a generic
   button hover. */
#tactics-pro-app.tp-is-playmaker #formationPresets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}
#tactics-pro-app.tp-is-playmaker #formationPresets .formation-preset {
    min-height: 38px;
    padding: 7px 8px;
    border: 1px solid #48566a;
    border-radius: 8px;
    background: #0a121d;
    color: #dce5f0;
    cursor: pointer;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.15;
    transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}
#tactics-pro-app.tp-is-playmaker #formationPresets .formation-preset:hover {
    border-color: #f2b94b;
    background: rgba(245, 158, 11, .10);
    color: #ffe1a3;
    transform: translateY(-1px);
}
#tactics-pro-app.tp-is-playmaker #formationPresets .formation-preset.active {
    border-color: #f59e0b;
    background: #4a2b04;
    color: #fff2cf;
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .22);
}
#tactics-pro-app.tp-is-playmaker .counter {
    border: 1px solid #344255;
    background: #09111b;
}
#tactics-pro-app.tp-is-playmaker .counter button {
    border-color: #4b5a6f;
    background: #172231;
    color: #f8fafc;
}
#tactics-pro-app.tp-is-playmaker .counter span {
    color: #ffd78a;
}

/* Add to Board: tool tiles get a clean hit area and readable labels while the
   entity colours/icons remain unchanged. */
#tactics-pro-app.tp-is-playmaker #draggable-tools-container .tool-grid {
    gap: 7px;
}
#tactics-pro-app.tp-is-playmaker #draggable-tools-container .draggable-tool {
    min-height: 76px;
    padding: 9px 6px;
    border-color: #3c4a5e;
    border-radius: 8px;
    background: #0a121d;
    box-shadow: none;
}
#tactics-pro-app.tp-is-playmaker #draggable-tools-container .draggable-tool:hover,
#tactics-pro-app.tp-is-playmaker #draggable-tools-container .draggable-tool:focus-visible {
    border-color: var(--tp-pm-tools);
    background: rgba(167, 139, 250, .11);
    box-shadow: 0 0 0 2px rgba(167, 139, 250, .10);
    transform: translateY(-1px);
}
#tactics-pro-app.tp-is-playmaker #draggable-tools-container .tool-label {
    margin-top: 7px;
    color: #dce5f0;
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .01em;
    text-transform: none;
}

/* Right-side context remains secondary but no longer blends into the wing. */
#tactics-pro-app.tp-is-playmaker #rightPanel .context-panel,
#tactics-pro-app.tp-is-playmaker #rightPanel .tp-panel-block {
    border-color: #344255 !important;
    background: var(--tp-pm-panel) !important;
}
#tactics-pro-app.tp-is-playmaker #rightPanel .context-panel {
    min-height: 82px;
    padding: 12px;
}
#tactics-pro-app.tp-is-playmaker #rightPanel .tp-context-task,
#tactics-pro-app.tp-is-playmaker #rightPanel .tp-context-guide,
#tactics-pro-app.tp-is-playmaker #rightPanel .tp-context-next-action {
    border-color: #3b4a5e;
    background: #09121c;
}
#tactics-pro-app.tp-is-playmaker #rightPanel .tp-context-task > summary,
#tactics-pro-app.tp-is-playmaker #rightPanel .tp-context-guide h3,
#tactics-pro-app.tp-is-playmaker #rightPanel h3 {
    color: #f1f5f9;
}
#tactics-pro-app.tp-is-playmaker #rightPanel .note-input {
    min-height: 112px;
    resize: vertical;
}
#tactics-pro-app.tp-is-playmaker #rightPanel .key-item {
    border-color: #344255;
    background: #0a121d;
    color: #dbe5f0;
}

/* Timeline: navigation and actions are visually separate jobs. Keep Add Step
   as the strongest creation action; Play is the strongest review action. */
#tactics-pro-app.tp-is-playmaker #page-playmaker .timeline-bar {
    gap: 8px;
    padding: 9px 10px;
    background: #0f1722;
    border-top-color: #344255;
}
#tactics-pro-app.tp-is-playmaker #page-playmaker .timeline-nav {
    min-height: 44px;
    padding: 5px;
    border: 1px solid #344255;
    border-radius: 9px;
    background: #09111b;
}
#tactics-pro-app.tp-is-playmaker #page-playmaker .timeline-nav .btn-icon {
    min-width: 34px;
    height: 34px;
    border-radius: 7px;
    color: #dbe5f0;
}
#tactics-pro-app.tp-is-playmaker #page-playmaker .step-item {
    min-width: 38px;
    height: 34px;
    border-width: 1px;
    border-radius: 7px;
    color: #cbd5e1;
}
#tactics-pro-app.tp-is-playmaker #page-playmaker .step-item.active {
    border-color: #79b7ff;
    background: #1d4ed8;
    color: #fff;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, .14);
}
#tactics-pro-app.tp-is-playmaker #page-playmaker .tp-timeline-primary-actions {
    padding: 4px;
    border: 1px solid #344255;
    border-radius: 9px;
    background: #09111b;
}
#tactics-pro-app.tp-is-playmaker #page-playmaker .tp-timeline-primary-actions .btn {
    min-height: 36px;
    border-radius: 7px;
    box-shadow: none;
}
#tactics-pro-app.tp-is-playmaker #btnAddStep {
    border-color: #34d399;
    background: #0f8a5c;
    color: #fff;
}
#tactics-pro-app.tp-is-playmaker #btnAddStep:hover {
    background: #0b754e;
}
#tactics-pro-app.tp-is-playmaker #btnPlayAnimation {
    border-color: #f6c453;
    background: #f5b91f;
    color: #2a1b00;
}
#tactics-pro-app.tp-is-playmaker #btnPlayAnimation:hover {
    background: #eaa80e;
}
#tactics-pro-app.tp-is-playmaker #btnMagicFill {
    border-color: #60a5fa;
    background: #2563eb;
    color: #fff;
}
#tactics-pro-app.tp-is-playmaker #btnMagicFill:hover {
    background: #1d4ed8;
}
#tactics-pro-app.tp-is-playmaker #btnDeleteStep {
    border-color: #7f3038;
    background: #1b1115;
    color: #f9a8ad;
}
#tactics-pro-app.tp-is-playmaker #btnDeleteStep:hover {
    border-color: #c2414f;
    background: #35151b;
    color: #fecdd3;
}
#tactics-pro-app.tp-is-playmaker #page-playmaker .tp-timeline-options {
    padding: 7px 0 0;
    border-top-color: #273548;
}
#tactics-pro-app.tp-is-playmaker #page-playmaker .tp-inline-toggle,
#tactics-pro-app.tp-is-playmaker #page-playmaker .tp-line-mode-control {
    border-color: #3b4a5e;
    background: #09111b;
    color: #b9c6d6;
}
#tactics-pro-app.tp-is-playmaker #page-playmaker .tp-line-mode-control .tp-control {
    border-color: #46566b !important;
    background: #0f1926 !important;
    color: #edf2f7 !important;
}

/* Laptop: protect the board before the panels switch to off-canvas. */
@media (min-width: 993px) and (max-width: 1180px) {
    #tactics-pro-app.tp-is-playmaker #leftPanel .tp-accordion-toggle {
        padding-left: 40px !important;
    }
    #tactics-pro-app.tp-is-playmaker #leftPanel .tp-accordion-toggle::before {
        left: 9px;
    }
    #tactics-pro-app.tp-is-playmaker #formationPresets {
        grid-template-columns: 1fr;
    }
}

/* Off-canvas tablet/phone panels: controls remain touchable and readable.
   Timeline stays a 2x2 action grid on phones rather than shrinking labels. */
@media (max-width: 992px) {
    #tactics-pro-app.tp-is-playmaker #leftPanel.toolbar-wing,
    #tactics-pro-app.tp-is-playmaker #rightPanel.toolbar-wing {
        width: min(88vw, 340px) !important;
        max-width: 340px !important;
        padding-top: 58px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        background: #0d151f !important;
    }
    #tactics-pro-app.tp-is-playmaker .mobile-close-btn {
        top: 14px;
        right: 14px;
        width: 36px;
        height: 36px;
        border: 1px solid #48586d;
        border-radius: 8px;
        background: #172231;
        color: #f8fafc;
        font-size: .88rem;
    }
    #tactics-pro-app.tp-is-playmaker #page-playmaker .tp-timeline-main-row {
        gap: 7px;
    }
}

@media (max-width: 700px) {
    #tactics-pro-app.tp-is-playmaker #page-playmaker .timeline-bar {
        gap: 6px;
        padding: 7px;
    }
    #tactics-pro-app.tp-is-playmaker #page-playmaker .timeline-nav,
    #tactics-pro-app.tp-is-playmaker #page-playmaker .tp-timeline-primary-actions {
        border-radius: 8px;
    }
    #tactics-pro-app.tp-is-playmaker #page-playmaker .tp-timeline-primary-actions {
        gap: 5px;
        padding: 5px;
    }
    #tactics-pro-app.tp-is-playmaker #page-playmaker .tp-timeline-primary-actions .btn {
        min-height: 42px;
        padding: 7px 6px;
        font-size: .70rem;
        line-height: 1.15;
    }
    #tactics-pro-app.tp-is-playmaker #page-playmaker .tp-timeline-options {
        padding-top: 5px;
    }
}

@media (max-width: 420px) {
    #tactics-pro-app.tp-is-playmaker #leftPanel.toolbar-wing,
    #tactics-pro-app.tp-is-playmaker #rightPanel.toolbar-wing {
        width: 92vw !important;
    }
    #tactics-pro-app.tp-is-playmaker #leftPanel .tp-accordion-toggle {
        min-height: 50px !important;
        font-size: .84rem !important;
    }
    #tactics-pro-app.tp-is-playmaker #leftPanel input:not([type="checkbox"]):not([type="radio"]),
    #tactics-pro-app.tp-is-playmaker #leftPanel select,
    #tactics-pro-app.tp-is-playmaker #leftPanel textarea,
    #tactics-pro-app.tp-is-playmaker #rightPanel input:not([type="checkbox"]):not([type="radio"]),
    #tactics-pro-app.tp-is-playmaker #rightPanel select,
    #tactics-pro-app.tp-is-playmaker #rightPanel textarea {
        font-size: 16px; /* Prevent iOS focus zoom. */
    }
}

/* =========================================================
   v2.0.31.40 — Front Office resilience + membership requests
   Payment is deliberately separate from the renewal request so a future
   shared Heart House payment plugin can attach without replacing this UI.
   ========================================================= */
#tactics-pro-app #page-settings .tp-fo-content-shell.is-loading[data-tp-server-fallback="1"] {
    opacity: 1;
}
#tactics-pro-app #page-settings .tp-fo-live-load-warning {
    max-width: 1280px;
    margin: 0 auto 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
}
#tactics-pro-app #page-settings .tp-fo-live-load-warning span {
    color: inherit !important;
}

#tactics-pro-app #page-settings .tp-billing-layout {
    align-items: start;
}
#tactics-pro-app #page-settings .tp-billing-membership-card {
    grid-column: 1;
    grid-row: 1;
}
#tactics-pro-app #page-settings .tp-billing-receipts-card {
    grid-column: 2;
    grid-row: 1;
}
#tactics-pro-app #page-settings .tp-renew-request-card {
    grid-column: 1 / -1;
    grid-row: 2;
    scroll-margin-top: 110px;
}
#tactics-pro-app #page-settings .tp-renew-request-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}
#tactics-pro-app #page-settings .tp-renew-request-head > div {
    min-width: 0;
}
#tactics-pro-app #page-settings .tp-renew-request-status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1e40af;
    font-size: .72rem;
    font-weight: 800;
}
#tactics-pro-app #page-settings .tp-renew-request-status.is-contacted {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}
#tactics-pro-app #page-settings .tp-renew-current-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}
#tactics-pro-app #page-settings .tp-renew-current-summary > div,
#tactics-pro-app #page-settings .tp-renew-request-summary > div {
    min-width: 0;
    padding: 12px 13px;
    border: 1px solid #dce5ef;
    border-radius: 10px;
    background: #f8fafc;
}
#tactics-pro-app #page-settings .tp-renew-current-summary span,
#tactics-pro-app #page-settings .tp-renew-request-summary span {
    display: block;
    margin-bottom: 4px;
    color: var(--tp-fo-muted) !important;
    font-size: .69rem;
    font-weight: 760;
    letter-spacing: .035em;
    text-transform: uppercase;
}
#tactics-pro-app #page-settings .tp-renew-current-summary strong,
#tactics-pro-app #page-settings .tp-renew-request-summary strong {
    display: block;
    color: var(--tp-fo-ink-strong) !important;
    font-size: .86rem;
    line-height: 1.35;
}
#tactics-pro-app #page-settings .tp-renew-existing-notice {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-bottom: 18px;
}
#tactics-pro-app #page-settings .tp-renew-existing-notice span {
    color: inherit !important;
}
#tactics-pro-app #page-settings .tp-renew-request-form {
    display: grid;
    gap: 18px;
}
#tactics-pro-app #page-settings .tp-renew-choice-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
#tactics-pro-app #page-settings .tp-renew-choice-toggle button,
#tactics-pro-app #page-settings .tp-renew-plan-card,
#tactics-pro-app #page-settings .tp-renew-billing-toggle button {
    font: inherit;
    cursor: pointer;
    box-shadow: none;
}
#tactics-pro-app #page-settings .tp-renew-choice-toggle button {
    min-width: 0;
    min-height: 70px;
    padding: 13px 14px;
    text-align: left;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    background: #ffffff;
    color: #334155;
}
#tactics-pro-app #page-settings .tp-renew-choice-toggle button strong,
#tactics-pro-app #page-settings .tp-renew-choice-toggle button span {
    display: block;
}
#tactics-pro-app #page-settings .tp-renew-choice-toggle button strong {
    margin-bottom: 3px;
    color: #172033;
    font-size: .88rem;
}
#tactics-pro-app #page-settings .tp-renew-choice-toggle button span {
    color: #5f6f85;
    font-size: .75rem;
    line-height: 1.35;
}
#tactics-pro-app #page-settings .tp-renew-choice-toggle button:hover,
#tactics-pro-app #page-settings .tp-renew-choice-toggle button:focus-visible {
    border-color: #8bb1ee;
    background: #f8fbff;
}
#tactics-pro-app #page-settings .tp-renew-choice-toggle button.is-active {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: inset 0 0 0 1px #2563eb;
}
#tactics-pro-app #page-settings .tp-renew-change-fields[hidden] {
    display: none !important;
}
#tactics-pro-app #page-settings .tp-renew-change-fields {
    display: grid;
    gap: 15px;
    padding: 17px;
    border: 1px solid #dce5ef;
    border-radius: 12px;
    background: #f8fafc;
}
#tactics-pro-app #page-settings .tp-renew-field-block {
    display: grid;
    gap: 7px;
}
#tactics-pro-app #page-settings .tp-renew-field-block .tp-signup-field-caption {
    margin: 0;
    text-align: left;
    color: #526176;
}
#tactics-pro-app #page-settings .tp-renew-billing-toggle {
    width: min(100%, 430px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding: 4px;
    border: 1px solid #d4dde8;
    border-radius: 10px;
    background: #ffffff;
}
#tactics-pro-app #page-settings .tp-renew-billing-toggle button {
    min-height: 38px;
    padding: 7px 9px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #475569;
    font-size: .76rem;
    font-weight: 760;
}
#tactics-pro-app #page-settings .tp-renew-billing-toggle button.is-active {
    background: #1d4ed8;
    color: #ffffff;
}
#tactics-pro-app #page-settings .tp-renew-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
#tactics-pro-app #page-settings .tp-renew-plan-card {
    min-width: 0;
    min-height: 154px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 14px;
    text-align: left;
    border: 1px solid #d4dde8;
    border-radius: 11px;
    background: #ffffff;
    color: #475569;
}
#tactics-pro-app #page-settings .tp-renew-plan-card:hover,
#tactics-pro-app #page-settings .tp-renew-plan-card:focus-visible {
    border-color: #8bb1ee;
    background: #fbfdff;
}
#tactics-pro-app #page-settings .tp-renew-plan-card.is-selected {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: inset 0 0 0 1px #2563eb;
}
#tactics-pro-app #page-settings .tp-renew-plan-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
#tactics-pro-app #page-settings .tp-renew-plan-top strong {
    color: #101828 !important;
    font-size: .9rem;
}
#tactics-pro-app #page-settings .tp-renew-plan-top em {
    min-height: 20px;
    color: #1d4ed8;
    font-size: .64rem;
    font-style: normal;
    font-weight: 850;
    text-transform: uppercase;
}
#tactics-pro-app #page-settings .tp-renew-plan-price {
    color: #1d4ed8 !important;
    font-size: .82rem;
    font-weight: 820;
}
#tactics-pro-app #page-settings .tp-renew-plan-card > span:not(.tp-renew-plan-top):not(.tp-renew-plan-price) {
    color: #475467 !important;
    font-size: .75rem;
    line-height: 1.42;
}
#tactics-pro-app #page-settings .tp-renew-plan-card small {
    margin-top: auto;
    color: #526176 !important;
    font-size: .7rem;
    font-weight: 720;
}
#tactics-pro-app #page-settings .tp-renew-note-field {
    max-width: 760px;
}
#tactics-pro-app #page-settings .tp-renew-request-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
#tactics-pro-app #page-settings .tp-renew-submit-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
}
#tactics-pro-app #page-settings .tp-renew-submit-row > span {
    color: var(--tp-fo-muted) !important;
    font-size: .75rem;
}
#tactics-pro-app #page-settings #btnSubmitRenewalRequest {
    min-height: 42px;
}

@media (max-width: 1050px) {
    #tactics-pro-app #page-settings .tp-renew-plan-grid {
        grid-template-columns: 1fr;
    }
    #tactics-pro-app #page-settings .tp-renew-plan-card {
        min-height: 0;
    }
}

@media (max-width: 900px) {
    #tactics-pro-app #page-settings .tp-billing-membership-card,
    #tactics-pro-app #page-settings .tp-billing-receipts-card,
    #tactics-pro-app #page-settings .tp-renew-request-card {
        grid-column: 1;
        grid-row: auto;
    }
    #tactics-pro-app #page-settings .tp-billing-membership-card { order: 1; }
    #tactics-pro-app #page-settings .tp-renew-request-card { order: 2; }
    #tactics-pro-app #page-settings .tp-billing-receipts-card { order: 3; }
    #tactics-pro-app #page-settings .tp-renew-current-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    #tactics-pro-app #page-settings .tp-renew-request-head {
        display: grid;
    }
    #tactics-pro-app #page-settings .tp-renew-request-status {
        justify-self: start;
    }
    #tactics-pro-app #page-settings .tp-renew-choice-toggle,
    #tactics-pro-app #page-settings .tp-renew-request-summary {
        grid-template-columns: 1fr;
    }
    #tactics-pro-app #page-settings .tp-renew-change-fields {
        padding: 13px;
    }
    #tactics-pro-app #page-settings .tp-renew-submit-row .btn {
        width: 100%;
    }
}

@media (max-width: 390px) {
    #tactics-pro-app #page-settings .tp-renew-billing-toggle {
        grid-template-columns: 1fr;
    }
    #tactics-pro-app #page-settings .tp-renew-billing-toggle button {
        min-height: 42px;
    }
}

/* v2.0.31.40 — renewal request field label parity */
#tactics-pro-app #page-settings .tp-renew-field-block .tp-signup-field-caption {
    display: block;
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
    line-height: 1.35;
}
