/* =========================================================
   Baseball Hot Coach Staff
   css/coach_staff.css
   A5-6 / 2026-08-27

   IMPORTANT:
   - .bh-tabs / .bh-tab are the common public tabs in common-ui.css.
   - Do NOT redefine .bh-tabs / .bh-tab here.
   ========================================================= */

.coach-staff-page-wrapper {
    width: 100%;
}

.coach-staff-page {
    width: 100%;
    padding: 0 10px 40px 0;
    box-sizing: border-box;
}

.coach-staff-main-tabs {
    margin: 12px 0 18px 0;
}

.coach-staff-tab-panel {
    display: none;
}

.coach-staff-tab-panel.active {
    display: block;
}

/* Status */

.coach-staff-status-box {
    display: none;
    margin: 0 0 14px 0;
    padding: 10px 14px;
    border-radius: 12px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #374151;
    font-size: 14px;
    font-weight: 800;
}

.coach-staff-status-box.active {
    display: block;
}

.coach-staff-status-box.success {
    background: #ecfdf5;
    border-color: #86efac;
    color: #166534;
}

.coach-staff-status-box.error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

/* Hero */

.coach-staff-hero {
    --coach-primary: #174b18;
    --coach-secondary: #286d22;
    --coach-primary-dark: #0f2f12;
    --coach-hero-text: #ffffff;
    --coach-hero-subtext: rgba(255, 255, 255, 0.84);

    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    padding: 22px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.24), transparent 34%),
        linear-gradient(
            135deg,
            var(--coach-primary-dark) 0%,
            var(--coach-primary) 52%,
            var(--coach-secondary) 100%
        );
    color: var(--coach-hero-text);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.13);
    box-sizing: border-box;
}

.coach-staff-hero-main {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.coach-staff-hero-kicker {
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: var(--coach-hero-text);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.08em;
}

.coach-staff-hero-title {
    margin-top: 12px;
    color: var(--coach-hero-text);
    font-size: 30px;
    font-weight: 1000;
    line-height: 1.2;
    word-break: break-word;
}

.coach-staff-hero-subtitle {
    margin-top: 6px;
    color: var(--coach-hero-subtext);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.55;
}

.coach-staff-hero-side {
    flex: 0 0 310px;
    margin-left: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.coach-staff-hero-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 92px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.26);
    box-sizing: border-box;
}

.coach-staff-hero-stat span {
    color: var(--coach-hero-subtext);
    font-size: 12px;
    font-weight: 800;
}

.coach-staff-hero-stat strong {
    margin-top: 6px;
    color: var(--coach-hero-text);
    font-size: 20px;
    font-weight: 1000;
    line-height: 1.25;
}

/* Notice */

.coach-staff-notice {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.55;
}

/* Cards */

.coach-staff-card {
    background: #ffffff;
    border: 1px solid #d7dfd5;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    box-sizing: border-box;
}

.coach-staff-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.coach-staff-card-title {
    margin: 0;
    color: #174b18;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.coach-staff-card-subtitle {
    margin-top: 4px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
}

.coach-staff-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.coach-staff-summary-card {
    margin-bottom: 0;
    min-height: 116px;
}

.coach-staff-card-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}

.coach-staff-card-value {
    margin-top: 8px;
    color: #145c22;
    font-size: 21px;
    font-weight: 1000;
    line-height: 1.2;
}

.coach-staff-card-sub {
    margin-top: 6px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

/* Effect cards */

.coach-staff-factor-badge {
    flex: 0 0 auto;
    padding: 7px 11px;
    border-radius: 999px;
    background: #eef7eb;
    border: 1px solid #cfe3cb;
    color: #145c22;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.coach-staff-effects-grid {
    display: grid;
    gap: 12px;
}

/* A5-4B4: current active scheme layout */
.coach-staff-effects-grid.coach-staff-effects-grid-single {
    grid-template-columns: minmax(0, 1fr);
}

.coach-staff-effects-grid.coach-staff-effects-grid-hybrid3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.coach-staff-effect-card {
    border-radius: 15px;
    padding: 15px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.coach-staff-effect-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.coach-staff-effect-name {
    color: #174b18;
    font-size: 17px;
    font-weight: 1000;
}

.coach-staff-effect-chip {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e8f3e5;
    color: #145c22;
    font-size: 13px;
    font-weight: 900;
}

.coach-staff-effect-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.coach-staff-effect-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #374151;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.45;
}

.coach-staff-effect-row::before {
    content: "•";
    flex: 0 0 auto;
    color: #145c22;
    font-weight: 1000;
}

.coach-staff-effect-note {
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px dashed #cbd5e1;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

/* Window box */

.coach-staff-window-box {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.coach-staff-window-item {
    border-radius: 14px;
    padding: 13px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.coach-staff-window-item strong {
    display: block;
    color: #174b18;
    font-size: 14px;
    font-weight: 1000;
}

.coach-staff-window-item span {
    display: block;
    margin-top: 5px;
    color: #4b5563;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.5;
}

.coach-staff-window-item.open {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.coach-staff-window-item.closed {
    background: #f8fafc;
    border-color: #e5e7eb;
}

/* Change tab browser */

.coach-staff-browser-layout {
    display: grid;
    grid-template-columns: minmax(250px, 0.76fr) minmax(0, 1.24fr);
    gap: 16px;
    align-items: start;
}

.coach-staff-style-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.coach-staff-style-row {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border: 1px solid #d7dfd5;
    border-radius: 12px;
    background: #ffffff;
    color: #1f2937;
    cursor: pointer;
    text-align: left;
    box-shadow: none;
}

.coach-staff-style-row:hover {
    background: #eef7eb;
    border-color: #b9d5b5;
}

.coach-staff-style-row.active {
    background: #145c22;
    border-color: #145c22;
    color: #ffffff;
}

.coach-staff-style-row-name {
    font-size: 14px;
    font-weight: 950;
}

.coach-staff-style-row-fee {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 900;
    opacity: 0.9;
}

.coach-staff-style-detail {
    min-height: 350px;
    border-radius: 16px;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    box-sizing: border-box;
}

.coach-staff-detail-kicker {
    color: #64748b;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.05em;
}

.coach-staff-detail-title {
    margin: 5px 0 0 0;
    color: #174b18;
    font-size: 25px;
    font-weight: 1000;
}

.coach-staff-detail-fee {
    margin-top: 7px;
    color: #111827;
    font-size: 16px;
    font-weight: 950;
}

.coach-staff-detail-section {
    margin-top: 16px;
}

.coach-staff-detail-section strong {
    display: block;
    color: #374151;
    font-size: 13px;
    font-weight: 1000;
    margin-bottom: 6px;
}

.coach-staff-detail-section p {
    margin: 0;
    color: #4b5563;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
}

/* VIP */

.coach-staff-vip-lock {
    text-align: center;
    padding: 38px 20px;
}

.coach-staff-vip-lock-icon {
    font-size: 34px;
    line-height: 1;
}

.coach-staff-vip-lock h2 {
    margin: 12px 0 6px 0;
    color: #174b18;
    font-size: 22px;
}

.coach-staff-vip-lock p {
    max-width: 620px;
    margin: 0 auto;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
}

.coach-staff-vip-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.coach-staff-vip-tool {
    padding: 16px;
    border-radius: 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.coach-staff-vip-tool strong {
    display: block;
    color: #92400e;
    font-size: 15px;
    font-weight: 1000;
}

.coach-staff-vip-tool span {
    display: block;
    margin-top: 6px;
    color: #78350f;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

/* Empty */

.coach-staff-empty-block {
    padding: 26px 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

/* Responsive */

@media (max-width: 1020px) {
    .coach-staff-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .coach-staff-hero {
        flex-direction: column;
    }

    .coach-staff-hero-side {
        flex: 0 1 auto;
        width: 100%;
    }
}

@media (max-width: 860px) {
    .coach-staff-browser-layout {
        grid-template-columns: 1fr;
    }

    .coach-staff-window-box,
    .coach-staff-vip-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 900px) {
    .coach-staff-effects-grid.coach-staff-effects-grid-hybrid3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .coach-staff-page {
        padding-right: 0;
    }

    .coach-staff-card {
        padding: 14px;
        border-radius: 14px;
    }

    .coach-staff-card-header {
        flex-direction: column;
        align-items: stretch;
    }

    .coach-staff-summary-grid,
    .coach-staff-effects-grid,
    .coach-staff-hero-side {
        grid-template-columns: 1fr;
    }

    .coach-staff-hero {
        padding: 18px;
        border-radius: 17px;
    }

    .coach-staff-hero-title {
        font-size: 24px;
    }

    .coach-staff-hero-stat {
        min-height: 76px;
    }
}

/* =========================================================
   A5-3｜WebP icon selector
   - Uses images/{style_key}.webp
   - Main .bh-tabs / .bh-tab stay in common-ui.css
   ========================================================= */

.coach-staff-selector-shell {
    overflow: visible;
}

.coach-staff-selector-head {
    align-items: center;
}

.coach-staff-selector-preview-badge {
    flex: 0 0 auto;
    padding: 7px 11px;
    border-radius: 999px;
    background: #eef7eb;
    border: 1px solid #cfe3cb;
    color: #145c22;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.coach-staff-mode-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 16px 0;
}

.coach-staff-mode-btn {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 70px;
    padding: 13px 15px;
    border-radius: 15px;
    border: 1px solid #d7dfd5;
    background: #ffffff;
    color: #174b18;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.05);
}

.coach-staff-mode-btn:hover {
    background: #f4fbf2;
    border-color: #b9d5b5;
}

.coach-staff-mode-btn.active {
    background: #145c22;
    border-color: #145c22;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(20, 92, 34, 0.18);
}

.coach-staff-mode-btn-title {
    font-size: 18px;
    font-weight: 1000;
    line-height: 1.2;
}

.coach-staff-mode-btn-sub {
    margin-top: 5px;
    font-size: 12px;
    font-weight: 800;
    opacity: 0.82;
    line-height: 1.45;
}

.coach-staff-icon-browser-layout {
    grid-template-columns: minmax(315px, 0.82fr) minmax(0, 1.18fr);
}

.coach-staff-style-list-panel {
    min-width: 0;
}

.coach-staff-selector-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.coach-staff-selector-toolbar-title {
    color: #174b18;
    font-size: 14px;
    font-weight: 1000;
}

.coach-staff-selector-toolbar-sub {
    margin-top: 3px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;
}

.coach-staff-selection-count {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    background: #145c22;
    color: #ffffff;
    font-size: 12px;
    font-weight: 1000;
    white-space: nowrap;
}

.coach-staff-style-row-with-icon {
    min-height: 64px;
    padding: 8px 10px;
}

.coach-staff-style-row-main {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.coach-staff-style-row-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid rgba(20, 92, 34, 0.16);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.coach-staff-style-row.active .coach-staff-style-row-icon {
    border-color: rgba(255, 255, 255, 0.56);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.coach-staff-style-row-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.coach-staff-style-row-position {
    color: #6b7280;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
}

.coach-staff-style-row.active .coach-staff-style-row-position {
    color: rgba(255, 255, 255, 0.78);
}

.coach-staff-style-row-side {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.coach-staff-style-row-pick {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #145c22;
    border: 1px solid rgba(20, 92, 34, 0.2);
    font-size: 12px;
    font-weight: 1000;
}

.coach-staff-style-row-pick.empty {
    background: #eef7eb;
    color: #8aa184;
}

.coach-staff-style-row.active .coach-staff-style-row-pick {
    background: #ffffff;
    color: #145c22;
    border-color: rgba(255, 255, 255, 0.76);
}

.coach-staff-icon-detail {
    position: sticky;
    top: 12px;
}

.coach-staff-detail-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.coach-staff-detail-icon-wrap {
    flex: 0 0 104px;
    width: 104px;
    height: 104px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4fbf2;
    border: 1px solid #d7dfd5;
}

.coach-staff-detail-icon {
    width: 92px;
    height: 92px;
    object-fit: contain;
    display: block;
}

.coach-staff-detail-main {
    min-width: 0;
}

.coach-staff-detail-mode-chip {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef7eb;
    color: #145c22;
    border: 1px solid #cfe3cb;
    font-size: 12px;
    font-weight: 950;
}

.coach-staff-detail-hero-hybrid {
    align-items: stretch;
}

.coach-staff-hybrid-icon-stack {
    flex: 0 0 286px;
    display: grid;
    grid-template-columns: repeat(3, 96px);
    gap: 11px;
    align-content: center;
    justify-content: start;
}

.coach-staff-hybrid-icon-slot {
    width: 96px;
    height: 96px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4fbf2;
    border: 1px solid #d7dfd5;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

.coach-staff-hybrid-icon-slot.empty {
    color: #8aa184;
    font-size: 24px;
    font-weight: 1000;
    border-style: dashed;
    box-shadow: none;
}

.coach-staff-hybrid-icon {
    width: 86px;
    height: 86px;
    object-fit: contain;
    display: block;
}

.coach-staff-hybrid-selected-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.coach-staff-hybrid-selected-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 13px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.coach-staff-hybrid-selected-no {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #145c22;
    color: #ffffff;
    font-size: 12px;
    font-weight: 1000;
}

.coach-staff-hybrid-selected-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.coach-staff-hybrid-selected-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.coach-staff-hybrid-selected-text strong {
    color: #174b18;
    font-size: 14px;
    font-weight: 1000;
}

.coach-staff-hybrid-selected-text em {
    color: #6b7280;
    font-size: 12px;
    font-style: normal;
    font-weight: 750;
}

.coach-staff-effect-title-wrap {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 9px;
}

.coach-staff-effect-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid rgba(20, 92, 34, 0.12);
}

@media (max-width: 860px) {
    .coach-staff-icon-detail {
        position: static;
    }
}

@media (max-width: 640px) {
    .coach-staff-mode-picker,
    .coach-staff-icon-browser-layout {
        grid-template-columns: 1fr;
    }

    .coach-staff-selector-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .coach-staff-style-row-with-icon {
        align-items: flex-start;
    }

    .coach-staff-style-row-side {
        flex-direction: column;
        align-items: flex-end;
        gap: 5px;
    }

    .coach-staff-detail-hero,
    .coach-staff-detail-hero-hybrid {
        flex-direction: column;
    }

    .coach-staff-hybrid-icon-stack {
        flex-basis: auto;
        grid-template-columns: repeat(3, 72px);
        gap: 9px;
    }

    .coach-staff-hybrid-icon-slot {
        width: 72px;
        height: 72px;
        border-radius: 16px;
    }

    .coach-staff-hybrid-icon {
        width: 64px;
        height: 64px;
    }
}


/* =========================================================
   A5-3C Current tab icon polish
   ========================================================= */

.coach-staff-hero-icon-box {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
}

.coach-staff-current-hero-icons {
    display: grid;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-bottom: 24px;
}

.coach-staff-current-hero-icons.single {
    grid-template-columns: 108px;
}

.coach-staff-current-hero-icons.hybrid {
    grid-template-columns: repeat(3, 78px);
    gap: 8px;
}

.coach-staff-current-hero-icon-slot {
    width: 108px;
    height: 108px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 24px;
    background: #f4fbf2;
    border: 1px solid #d7dfd5;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 10px 22px rgba(15, 23, 42, 0.14);
}

.coach-staff-current-hero-icon-label {
    position: absolute;
    left: 50%;
    top: calc(100% + 6px);
    transform: translateX(-50%);
    width: max-content;
    max-width: 112px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
}

.coach-staff-current-hero-icons.hybrid .coach-staff-current-hero-icon-label {
    max-width: 78px;
    font-size: 11px;
}

.coach-staff-current-hero-icons.hybrid .coach-staff-current-hero-icon-slot {
    width: 78px;
    height: 78px;
    border-radius: 18px;
}

.coach-staff-current-hero-icon {
    width: 96px;
    height: 96px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.18));
}

.coach-staff-current-hero-icons.hybrid .coach-staff-current-hero-icon {
    width: 68px;
    height: 68px;
}

.coach-staff-current-hero-icons.empty {
    width: 92px;
    height: 92px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    border: 1px dashed rgba(255, 255, 255, 0.34);
}

.coach-staff-current-hero-empty-mark {
    color: rgba(255, 255, 255, 0.82);
    font-size: 34px;
    font-weight: 1000;
}

.coach-staff-pending-notice-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.coach-staff-pending-icon-group {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 5px;
}

.coach-staff-pending-icon-slot {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(30, 58, 138, 0.13);
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.06);
}

.coach-staff-pending-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
}

@media (max-width: 1020px) {
    .coach-staff-hero {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .coach-staff-hero-icon-box {
        justify-content: flex-start;
        min-width: 0;
    }

    .coach-staff-hero-main {
        flex: 1 1 360px;
    }
}

@media (max-width: 640px) {
    .coach-staff-hero-icon-box {
        width: 100%;
        justify-content: center;
    }

    .coach-staff-current-hero-icons.single {
        grid-template-columns: 92px;
    }

    .coach-staff-current-hero-icon-slot {
        width: 92px;
        height: 92px;
        border-radius: 21px;
    }

    .coach-staff-current-hero-icon {
        width: 82px;
        height: 82px;
    }

    .coach-staff-current-hero-icons.hybrid {
        grid-template-columns: repeat(3, 70px);
    }

    .coach-staff-current-hero-icons.hybrid .coach-staff-current-hero-icon-slot {
        width: 70px;
        height: 70px;
        border-radius: 16px;
    }

    .coach-staff-current-hero-icons.hybrid .coach-staff-current-hero-icon {
        width: 62px;
        height: 62px;
    }


    .coach-staff-current-hero-icon-label {
        font-size: 11px;
        max-width: 96px;
    }

    .coach-staff-current-hero-icons.hybrid .coach-staff-current-hero-icon-label {
        font-size: 10px;
        max-width: 70px;
    }

    .coach-staff-pending-notice-content {
        align-items: flex-start;
    }
}
/* Hybrid3 selected module effect details */
.coach-staff-hybrid-selected-item {
    align-items: flex-start;
}

.coach-staff-hybrid-selected-no,
.coach-staff-hybrid-selected-icon {
    margin-top: 2px;
}

.coach-staff-hybrid-selected-effects {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #d7dfd5;
}

.coach-staff-hybrid-selected-effects-label {
    margin-bottom: 5px;
    color: #145c22;
    font-size: 12px;
    font-weight: 950;
}

.coach-staff-hybrid-selected-effect-row {
    position: relative;
    padding-left: 12px;
    color: #374151;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.55;
}

.coach-staff-hybrid-selected-effect-row::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #145c22;
    font-weight: 1000;
}

.coach-staff-hybrid-selected-tradeoff {
    margin-top: 6px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
}



/* A5-3D Coach change dry-run preview */
.coach-staff-change-action-box {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #dbe4d8;
}

.coach-staff-change-preview-btn {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 12px;
    background: #145c22;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(20, 92, 34, 0.18);
}

.coach-staff-change-preview-btn:hover:not(:disabled) {
    filter: brightness(1.07);
}

.coach-staff-change-preview-btn:disabled {
    cursor: not-allowed;
    opacity: 0.48;
    box-shadow: none;
}

.coach-staff-change-action-sub {
    margin-top: 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.coach-staff-change-preview-result {
    margin-top: 14px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid #bbdfbd;
    background: #f1fbf1;
}

.coach-staff-change-preview-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #145c22;
}

.coach-staff-change-preview-result-head strong {
    font-size: 15px;
    font-weight: 1000;
}

.coach-staff-change-preview-result-head span {
    padding: 3px 8px;
    border-radius: 999px;
    background: #dff2df;
    font-size: 11px;
    font-weight: 900;
}

.coach-staff-change-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 12px;
}

.coach-staff-change-preview-grid > div {
    padding: 9px 10px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #dbe8d9;
}

.coach-staff-change-preview-grid span,
.coach-staff-change-preview-grid strong {
    display: block;
}

.coach-staff-change-preview-grid span {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.coach-staff-change-preview-grid strong {
    margin-top: 3px;
    color: #174b18;
    font-size: 14px;
    font-weight: 1000;
}

.coach-staff-change-preview-note {
    margin-top: 10px;
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

@media (max-width: 720px) {
    .coach-staff-change-preview-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   A5-3E Formal Coach Change Confirmation
   ========================================================= */

.coach-staff-change-formal-action {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #cfe3cb;
}

.coach-staff-change-commit-btn {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    background: #9a3412;
    color: #ffffff;
    font-size: 15px;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 5px 12px rgba(154, 52, 18, 0.18);
}

.coach-staff-change-commit-btn:hover {
    filter: brightness(1.06);
}

.coach-staff-change-formal-action > div,
.coach-staff-change-formal-note {
    margin-top: 8px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.55;
}

.coach-staff-change-formal-note {
    padding-top: 10px;
    border-top: 1px dashed #cfe3cb;
}

body.coach-staff-modal-open {
    overflow: hidden;
}

.coach-staff-confirm-modal[hidden] {
    display: none !important;
}

.coach-staff-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.coach-staff-confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(2px);
}

.coach-staff-confirm-dialog {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 20px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #d7dfd5;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
    box-sizing: border-box;
}

.coach-staff-confirm-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.coach-staff-confirm-kicker {
    color: #9a3412;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.08em;
}

.coach-staff-confirm-head h3 {
    margin: 5px 0 0;
    color: #174b18;
    font-size: 23px;
    font-weight: 1000;
}

.coach-staff-confirm-x {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 1px solid #d7dfd5;
    border-radius: 10px;
    background: #f8fafc;
    color: #475569;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.coach-staff-confirm-body {
    margin-top: 16px;
}

.coach-staff-confirm-plan {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f0f8ed;
    border: 1px solid #cfe3cb;
    color: #145c22;
    font-size: 16px;
    font-weight: 950;
}

.coach-staff-confirm-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.coach-staff-confirm-grid > div {
    padding: 11px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.coach-staff-confirm-grid span,
.coach-staff-confirm-grid strong {
    display: block;
}

.coach-staff-confirm-grid span {
    color: #64748b;
    font-size: 11px;
    font-weight: 850;
}

.coach-staff-confirm-grid strong {
    margin-top: 4px;
    color: #111827;
    font-size: 16px;
    font-weight: 1000;
}

.coach-staff-confirm-warning {
    margin-top: 14px;
    padding: 11px 12px;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.6;
}

.coach-staff-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 10px;
    margin-top: 16px;
}

.coach-staff-confirm-actions button {
    appearance: none;
    -webkit-appearance: none;
    min-height: 44px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 950;
    cursor: pointer;
}

.coach-staff-confirm-cancel {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
}

.coach-staff-confirm-submit {
    border: 0;
    background: #9a3412;
    color: #ffffff;
}

.coach-staff-confirm-submit:disabled {
    opacity: 0.58;
    cursor: wait;
}

@media (max-width: 640px) {
    .coach-staff-confirm-modal {
        padding: 10px;
        align-items: flex-end;
    }

    .coach-staff-confirm-dialog {
        width: 100%;
        max-height: 88vh;
        border-radius: 18px 18px 12px 12px;
        padding: 16px;
    }

    .coach-staff-confirm-grid {
        grid-template-columns: 1fr;
    }

    .coach-staff-confirm-actions {
        grid-template-columns: 1fr;
    }
}

.coach-staff-change-confirm-preview-btn {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-height: 42px;
    border: 1px solid #145c22;
    border-radius: 12px;
    background: #f0f8ed;
    color: #145c22;
    font-size: 14px;
    font-weight: 950;
    cursor: pointer;
}

.coach-staff-change-confirm-preview-btn:hover {
    background: #e8f3e5;
}

/* =========================================================
   A5-3F State-aware Hire / Change Action
   ========================================================= */

.coach-staff-selector-preview-badge.disabled {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #6b7280;
}

.coach-staff-change-action-box.disabled {
    border-top-color: #e5e7eb;
}

.coach-staff-change-preview-btn:disabled {
    background: #9ca3af;
    color: #f9fafb;
    opacity: 1;
    cursor: not-allowed;
    box-shadow: none;
    filter: none;
}

.coach-staff-change-action-sub.disabled {
    color: #6b7280;
}

.coach-staff-change-commit-btn:hover:not(:disabled) {
    filter: brightness(1.06);
}

.coach-staff-change-commit-btn:disabled {
    background: #9ca3af;
    color: #f9fafb;
    cursor: not-allowed;
    box-shadow: none;
    filter: none;
}

/* =========================================================
   A5-3F4 Coach Style Four-Group Visual Categories
   - Pitching: yellow
   - Hitting: red
   - Tactics: blue
   - Development: green
   Selected state stays dark Baseball Hot green so category
   color never conflicts with the selection authority.
   ========================================================= */

.coach-staff-style-row.coach-staff-style-group-pitcher {
    background: #fff9e8;
    border-color: #e3c769;
}

.coach-staff-style-row.coach-staff-style-group-pitcher:hover {
    background: #fff2c9;
    border-color: #cba83a;
}

.coach-staff-style-row.coach-staff-style-group-hitting {
    background: #fff1f1;
    border-color: #e5a0a0;
}

.coach-staff-style-row.coach-staff-style-group-hitting:hover {
    background: #ffe2e2;
    border-color: #cf7373;
}

.coach-staff-style-row.coach-staff-style-group-tactics {
    background: #eef6ff;
    border-color: #9bbce4;
}

.coach-staff-style-row.coach-staff-style-group-tactics:hover {
    background: #deedff;
    border-color: #6697d0;
}

.coach-staff-style-row.coach-staff-style-group-development {
    background: #eef8ee;
    border-color: #9ec79e;
}

.coach-staff-style-row.coach-staff-style-group-development:hover {
    background: #e1f2e1;
    border-color: #70aa70;
}

/* Selection must remain unmistakable regardless of category. */
.coach-staff-style-row.coach-staff-style-group-pitcher.active,
.coach-staff-style-row.coach-staff-style-group-hitting.active,
.coach-staff-style-row.coach-staff-style-group-tactics.active,
.coach-staff-style-row.coach-staff-style-group-development.active,
.coach-staff-style-row.coach-staff-style-group-pitcher.active:hover,
.coach-staff-style-row.coach-staff-style-group-hitting.active:hover,
.coach-staff-style-row.coach-staff-style-group-tactics.active:hover,
.coach-staff-style-row.coach-staff-style-group-development.active:hover {
    background: #145c22;
    border-color: #145c22;
    color: #ffffff;
}



/* =========================================================
   A5-3F5 Right-side category colors
   - Single: the whole detail panel inherits its category tint.
   - Hybrid: every selected module keeps its own category tint.
   ========================================================= */

/* Single / 專精型：右側詳細卡直接對應分類色 */
.coach-staff-style-detail.coach-staff-style-detail-group-pitcher {
    background: #fff9e8;
    border-color: #e3c769;
}

.coach-staff-style-detail.coach-staff-style-detail-group-hitting {
    background: #fff1f1;
    border-color: #e5a0a0;
}

.coach-staff-style-detail.coach-staff-style-detail-group-tactics {
    background: #eef6ff;
    border-color: #9bbce4;
}

.coach-staff-style-detail.coach-staff-style-detail-group-development {
    background: #eef8ee;
    border-color: #9ec79e;
}

/* 保留內部資訊卡的可讀性，但讓分類色從外框與底色清楚露出 */
.coach-staff-style-detail.coach-staff-style-detail-group-pitcher .coach-staff-detail-hero {
    border-color: #e3c769;
}
.coach-staff-style-detail.coach-staff-style-detail-group-hitting .coach-staff-detail-hero {
    border-color: #e5a0a0;
}
.coach-staff-style-detail.coach-staff-style-detail-group-tactics .coach-staff-detail-hero {
    border-color: #9bbce4;
}
.coach-staff-style-detail.coach-staff-style-detail-group-development .coach-staff-detail-hero {
    border-color: #9ec79e;
}

/* 綜合型：上方三個 icon 與下方已選擇項目各自保留分類色 */
.coach-staff-hybrid-icon-slot.coach-staff-style-group-pitcher,
.coach-staff-hybrid-selected-item.coach-staff-style-group-pitcher {
    background: #fff9e8;
    border-color: #e3c769;
}

.coach-staff-hybrid-icon-slot.coach-staff-style-group-hitting,
.coach-staff-hybrid-selected-item.coach-staff-style-group-hitting {
    background: #fff1f1;
    border-color: #e5a0a0;
}

.coach-staff-hybrid-icon-slot.coach-staff-style-group-tactics,
.coach-staff-hybrid-selected-item.coach-staff-style-group-tactics {
    background: #eef6ff;
    border-color: #9bbce4;
}

.coach-staff-hybrid-icon-slot.coach-staff-style-group-development,
.coach-staff-hybrid-selected-item.coach-staff-style-group-development {
    background: #eef8ee;
    border-color: #9ec79e;
}


/* =========================================================
   A5-3F7 Current tab category colors
   - Current Hero icon slots inherit the same four-group palette.
   - Current active-effect cards inherit the same palette per style.
   - Pending Coach icons keep their own style category colors too.
   ========================================================= */

/* Current Hero */
.coach-staff-current-hero-icon-slot.coach-staff-style-group-pitcher,
.coach-staff-pending-icon-slot.coach-staff-style-group-pitcher,
.coach-staff-effect-card.coach-staff-style-group-pitcher {
    background: #fff9e8;
    border-color: #e3c769;
}

.coach-staff-current-hero-icon-slot.coach-staff-style-group-hitting,
.coach-staff-pending-icon-slot.coach-staff-style-group-hitting,
.coach-staff-effect-card.coach-staff-style-group-hitting {
    background: #fff1f1;
    border-color: #e5a0a0;
}

.coach-staff-current-hero-icon-slot.coach-staff-style-group-tactics,
.coach-staff-pending-icon-slot.coach-staff-style-group-tactics,
.coach-staff-effect-card.coach-staff-style-group-tactics {
    background: #eef6ff;
    border-color: #9bbce4;
}

.coach-staff-current-hero-icon-slot.coach-staff-style-group-development,
.coach-staff-pending-icon-slot.coach-staff-style-group-development,
.coach-staff-effect-card.coach-staff-style-group-development {
    background: #eef8ee;
    border-color: #9ec79e;
}

/* Effect-card icon border follows its category without tinting the icon artwork. */
.coach-staff-effect-card.coach-staff-style-group-pitcher .coach-staff-effect-icon {
    border-color: #e3c769;
}
.coach-staff-effect-card.coach-staff-style-group-hitting .coach-staff-effect-icon {
    border-color: #e5a0a0;
}
.coach-staff-effect-card.coach-staff-style-group-tactics .coach-staff-effect-icon {
    border-color: #9bbce4;
}
.coach-staff-effect-card.coach-staff-style-group-development .coach-staff-effect-icon {
    border-color: #9ec79e;
}

/* =========================================================
   A5-3G Day57-63 renewal reservation action
   ========================================================= */

.coach-staff-renewal-action-wrap {
    margin-top: 12px;
}

.coach-staff-renewal-action-btn {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 0;
    border-radius: 10px;
    background: #145c22;
    color: #ffffff;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.25;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(20, 92, 34, 0.15);
}

.coach-staff-renewal-action-btn:hover:not(:disabled) {
    filter: brightness(1.06);
}

.coach-staff-renewal-action-btn:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    box-shadow: none;
    cursor: not-allowed;
}

.coach-staff-renewal-action-btn.reserved:disabled {
    background: #e9f6e8;
    border: 1px solid #b9d5b5;
    color: #145c22;
}

.coach-staff-renewal-confirm-submit {
    background: #145c22;
}


/* =========================================================
   A5-4B VIP Team-fit Analyzer Frontend / 2026-08-26
   - Reuses Coach selector language and four-group palette.
   - Read-only: no hire/change action authority in this panel.
   ========================================================= */

.coach-staff-vip-main-head {
    margin-bottom: 12px;
}

.coach-staff-vip-readonly-badge {
    flex: 0 0 auto;
    padding: 7px 11px;
    border-radius: 999px;
    background: #fff7d6;
    border: 1px solid #e5c44f;
    color: #7a5a00;
    font-size: 11px;
    font-weight: 1000;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.coach-staff-vip-roster-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 16px 0;
}

.coach-staff-vip-roster-stat {
    min-width: 0;
    padding: 12px 13px;
    border-radius: 13px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.coach-staff-vip-roster-stat span,
.coach-staff-vip-roster-stat em {
    display: block;
}

.coach-staff-vip-roster-stat span {
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
}

.coach-staff-vip-roster-stat strong {
    display: block;
    margin-top: 4px;
    color: #174b18;
    font-size: 20px;
    font-weight: 1000;
}

.coach-staff-vip-roster-stat em {
    margin-top: 3px;
    color: #6b7280;
    font-size: 10px;
    font-style: normal;
    font-weight: 750;
}

.coach-staff-vip-roster-stat-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 94px;
}

.coach-staff-vip-roster-card-label {
    margin-bottom: 8px;
}

.coach-staff-vip-roster-metrics {
    display: grid;
    grid-template-columns: repeat(var(--vip-roster-columns, 3), minmax(0, 1fr));
    gap: 0;
}

.coach-staff-vip-roster-stat-group:nth-child(2),
.coach-staff-vip-roster-stat-group:nth-child(3) {
    --vip-roster-columns: 2;
}

.coach-staff-vip-roster-stat-group:nth-child(4) {
    --vip-roster-columns: 1;
}

.coach-staff-vip-roster-metric {
    min-width: 0;
    padding: 0 8px;
    border-left: 1px solid #e5e7eb;
}

.coach-staff-vip-roster-metric:first-child {
    padding-left: 0;
    border-left: 0;
}

.coach-staff-vip-roster-metric:last-child {
    padding-right: 0;
}

.coach-staff-vip-roster-metric em {
    margin: 0;
    color: #6b7280;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.coach-staff-vip-roster-metric strong {
    margin-top: 3px;
    font-size: 24px;
}

.coach-staff-vip-roster-direct-value {
    margin-top: 0;
    color: #174b18;
    font-size: 24px;
    font-weight: 1000;
    line-height: 1.15;
}

.coach-staff-vip-roster-sub {
    margin-top: 7px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 750;
}

.coach-staff-vip-mode-picker {
    margin-bottom: 14px;
}

.coach-staff-vip-browser-layout {
    margin-top: 0;
}

.coach-staff-vip-style-row .coach-staff-style-row-position {
    line-height: 1.35;
}

.coach-staff-vip-detail {
    align-self: stretch;
}

.coach-staff-vip-fit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 14px;
}

.coach-staff-vip-fit-grid > div {
    padding: 11px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.34);
}

.coach-staff-vip-fit-grid span,
.coach-staff-vip-fit-grid strong {
    display: block;
}

.coach-staff-vip-fit-grid span {
    color: #64748b;
    font-size: 11px;
    font-weight: 850;
}

.coach-staff-vip-fit-grid strong {
    margin-top: 3px;
    color: #174b18;
    font-size: 18px;
    font-weight: 1000;
}

.coach-staff-vip-hidden-policy {
    margin-top: 14px;
    padding: 12px;
    border-radius: 12px;
    background: #f4f7fb;
    border: 1px solid #cbd5e1;
}

.coach-staff-vip-hidden-policy strong,
.coach-staff-vip-hidden-policy span {
    display: block;
}

.coach-staff-vip-hidden-policy strong {
    color: #334155;
    font-size: 12px;
    font-weight: 1000;
}

.coach-staff-vip-hidden-policy span {
    margin-top: 5px;
    color: #64748b;
    font-size: 11px;
    
    line-height: 1.5;
}

.coach-staff-vip-comparison-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #cbd5e1;
}

.coach-staff-vip-comparison-strip > div {
    min-width: 0;
    padding: 10px;
    border-radius: 11px;
    background: #ffffff;
    border: 1px solid #dbe4da;
}

.coach-staff-vip-comparison-strip span,
.coach-staff-vip-comparison-strip strong,
.coach-staff-vip-comparison-strip em {
    display: block;
}

.coach-staff-vip-comparison-strip span {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}

.coach-staff-vip-comparison-strip strong {
    margin-top: 4px;
    color: #174b18;
    font-size: 15px;
    font-weight: 1000;
}

.coach-staff-vip-comparison-strip em {
    margin-top: 4px;
    color: #6b7280;
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.4;
}

.coach-staff-vip-compare-status {
    margin-top: 14px;
    padding: 11px 12px;
    border-radius: 11px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #475569;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.5;
}

.coach-staff-vip-compare-status.loading {
    background: #eff6ff;
    border-style: solid;
    border-color: #bfdbfe;
    color: #1e40af;
}

.coach-staff-vip-compare-status.error {
    background: #fef2f2;
    border-style: solid;
    border-color: #fecaca;
    color: #991b1b;
}

.coach-staff-vip-hybrid-analysis-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 14px;
}

.coach-staff-vip-hybrid-analysis-item {
    display: grid;
    grid-template-columns: 28px 48px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 11px;
    border-radius: 12px;
    border: 1px solid #d7dfd5;
    background: #f8fafc;
}

.coach-staff-vip-hybrid-analysis-item.coach-staff-style-group-pitcher {
    background: #fff9e8;
    border-color: #e3c769;
}
.coach-staff-vip-hybrid-analysis-item.coach-staff-style-group-hitting {
    background: #fff1f1;
    border-color: #e5a0a0;
}
.coach-staff-vip-hybrid-analysis-item.coach-staff-style-group-tactics {
    background: #eef6ff;
    border-color: #9bbce4;
}
.coach-staff-vip-hybrid-analysis-item.coach-staff-style-group-development {
    background: #eef8ee;
    border-color: #9ec79e;
}

.coach-staff-vip-hybrid-analysis-item > div strong,
.coach-staff-vip-hybrid-analysis-item > div span,
.coach-staff-vip-hybrid-analysis-item > div em {
    display: block;
}

.coach-staff-vip-hybrid-analysis-item > div strong {
    color: #174b18;
    font-size: 14px;
    font-weight: 1000;
}

.coach-staff-vip-hybrid-analysis-item > div span {
    margin-top: 3px;
    color: #374151;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.45;
}

.coach-staff-vip-hybrid-analysis-item > div em {
    margin-top: 4px;
    color: #6b7280;
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.45;
}

.coach-staff-vip-retry-btn {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    margin: 12px auto 0 auto;
    padding: 9px 16px;
    border: 0;
    border-radius: 10px;
    background: #145c22;
    color: #ffffff;
    font-size: 12px;
    font-weight: 950;
    cursor: pointer;
}

.coach-staff-vip-footer-note {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 11px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #78350f;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.5;
}

@media (max-width: 1020px) {
    .coach-staff-vip-roster-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .coach-staff-vip-comparison-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .coach-staff-vip-roster-grid,
    .coach-staff-vip-fit-grid {
        grid-template-columns: 1fr;
    }

    .coach-staff-vip-hybrid-analysis-item {
        grid-template-columns: 26px 42px minmax(0, 1fr);
        gap: 8px;
    }
}

/* A5-4B2 VIP summary readability */
.coach-staff-vip-roster-card-label {
    font-size: 13px !important;
}


/* =========================================================
   A5-4C VIP current active vs candidate actual comparison
   ========================================================= */
.coach-staff-vip-current-compare-shell {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed #cbd5e1;
}

.coach-staff-vip-current-compare-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.coach-staff-vip-current-compare-head > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.coach-staff-vip-current-compare-head strong {
    color: #174b18;
    font-size: 20px;
    font-weight: 1000;
}

.coach-staff-vip-current-compare-head span {
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
}

.coach-staff-vip-familiarity-chip {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.coach-staff-vip-familiarity-chip.same {
    background: #ecfdf5;
    border: 1px solid #86efac;
    color: #166534;
}

.coach-staff-vip-familiarity-chip.reset {
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
}

.coach-staff-vip-scheme-vs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
    margin-bottom: 12px;
}

.coach-staff-vip-scheme-vs > .current,
.coach-staff-vip-scheme-vs > .candidate {
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #dbe3ea;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.coach-staff-vip-scheme-vs > .candidate {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.coach-staff-vip-scheme-vs span {
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
}

.coach-staff-vip-scheme-vs strong {
    color: #174b18;
    font-size: 15px;
    font-weight: 1000;
    line-height: 1.4;
}

.coach-staff-vip-scheme-vs em {
    color: #64748b;
    font-size: 11px;
    font-style: normal;
    font-weight: 750;
}

.coach-staff-vip-scheme-vs .arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #166534;
    font-size: 22px;
    font-weight: 1000;
}

.coach-staff-vip-delta-table {
    overflow: hidden;
    border: 1px solid #dbe3ea;
    border-radius: 14px;
    background: #fff;
}

.coach-staff-vip-delta-table .head,
.coach-staff-vip-delta-table .row {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr .85fr;
    gap: 8px;
    align-items: center;
    padding: 9px 12px;
}

.coach-staff-vip-delta-table .head {
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 900;
}

.coach-staff-vip-delta-table .row {
    border-top: 1px solid #edf2f7;
    color: #374151;
    font-size: 12px;
    font-weight: 750;
}

.coach-staff-vip-delta-table .row > span:first-child {
    color: #174b18;
    font-weight: 900;
}

.coach-staff-vip-delta-table strong {
    text-align: right;
    font-weight: 1000;
}

.coach-staff-vip-delta-table strong.positive,
.coach-staff-vip-module-diff-row.positive em {
    color: #15803d;
}

.coach-staff-vip-delta-table strong.negative,
.coach-staff-vip-module-diff-row.negative em {
    color: #dc2626;
}

.coach-staff-vip-delta-table strong.neutral,
.coach-staff-vip-module-diff-row.neutral em {
    color: #64748b;
}

.coach-staff-vip-diff-section {
    margin-top: 12px;
}

.coach-staff-vip-diff-title {
    margin-bottom: 7px;
    color: #174b18;
    font-size: 13px;
    font-weight: 950;
}

.coach-staff-vip-module-diff-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.coach-staff-vip-module-diff-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 48px;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 12px;
}

.coach-staff-vip-module-diff-row strong {
    color: #174b18;
    font-weight: 900;
}

.coach-staff-vip-module-diff-row span {
    color: #475569;
    font-weight: 800;
}

.coach-staff-vip-module-diff-row em {
    text-align: right;
    font-style: normal;
    font-weight: 1000;
}

@media (max-width: 900px) {
    .coach-staff-vip-current-compare-head {
        flex-direction: column;
    }
    .coach-staff-vip-scheme-vs {
        grid-template-columns: 1fr;
    }
    .coach-staff-vip-scheme-vs .arrow {
        transform: rotate(90deg);
        min-height: 24px;
    }
    .coach-staff-vip-delta-table .head,
    .coach-staff-vip-delta-table .row {
        grid-template-columns: 1.15fr .9fr .9fr .8fr;
        padding-left: 8px;
        padding-right: 8px;
    }
}


/* =========================================================
   A5-4D VIP player-level benefit / Training gap analysis
   ========================================================= */

.coach-staff-vip-player-analysis-shell {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #cbd5e1;
}

.coach-staff-vip-player-analysis-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.coach-staff-vip-player-analysis-head > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.coach-staff-vip-player-analysis-head strong {
    color: #174b18;
    font-size: 20px;
    font-weight: 1000;
}

.coach-staff-vip-player-analysis-head span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.coach-staff-vip-player-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 12px;
}

.coach-staff-vip-player-summary-grid > div {
    min-height: 67px;
    padding: 10px 11px;
    border: 1px solid #dbe4ea;
    border-radius: 12px;
    background: #f8fafc;
    box-sizing: border-box;
}

.coach-staff-vip-player-summary-grid > div.warning {
    border-color: #fecaca;
    background: #fff7f7;
}

.coach-staff-vip-player-summary-grid > div.good {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.coach-staff-vip-player-summary-grid span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 850;
}

.coach-staff-vip-player-summary-grid strong {
    display: block;
    margin-top: 5px;
    color: #145c22;
    font-size: 19px;
    font-weight: 1000;
}

.coach-staff-vip-player-summary-grid > div.warning strong {
    color: #b91c1c;
}

.coach-staff-vip-player-details {
    margin-top: 9px;
    border: 1px solid #dbe4ea;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
}

.coach-staff-vip-player-details > summary {
    cursor: pointer;
    padding: 11px 13px;
    color: #174b18;
    font-size: 13px;
    font-weight: 950;
    background: #f8fafc;
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.coach-staff-vip-player-details > summary::-webkit-details-marker {
    display: none;
}

.coach-staff-vip-player-details > summary::after {
    content: "▼";
    flex: 0 0 auto;
    color: #145c22;
    font-size: 12px;
    font-weight: 1000;
    line-height: 1;
}

.coach-staff-vip-player-details[open] > summary::after {
    content: "▲";
}

.coach-staff-vip-player-details[open] > summary {
    border-bottom: 1px solid #e5e7eb;
}

.coach-staff-vip-player-list {
    display: flex;
    flex-direction: column;
}

.coach-staff-vip-player-row {
    display: grid;
    grid-template-columns: minmax(150px, 1.05fr) minmax(110px, 0.7fr) minmax(190px, 1.35fr);
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #edf1f4;
}

.coach-staff-vip-player-row:last-child {
    border-bottom: 0;
}

.coach-staff-vip-player-row.gap {
    background: #fffafa;
}

.coach-staff-vip-player-id,
.coach-staff-vip-player-focus,
.coach-staff-vip-player-reason {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.coach-staff-vip-player-id strong,
.coach-staff-vip-player-focus strong,
.coach-staff-vip-player-reason strong {
    color: #1f2937;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.4;
}

.coach-staff-vip-player-id span,
.coach-staff-vip-player-focus span,
.coach-staff-vip-player-reason span {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}

.coach-staff-vip-player-module-count {
    justify-self: start;
    padding: 4px 8px;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 11px;
    font-weight: 950;
    white-space: nowrap;
}

.coach-staff-vip-player-ok {
    padding: 12px 13px;
    color: #166534;
    background: #f0fdf4;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.5;
}

.coach-staff-vip-module-coverage-note {
    padding: 8px 12px;
    border-bottom: 1px solid #edf1f4;
    color: #64748b;
    background: #fbfdff;
    font-size: 11px;
    font-weight: 800;
}

.coach-staff-vip-player-analysis-shell.restricted .coach-staff-vip-hidden-policy {
    margin-top: 0;
}

@media (max-width: 980px) {
    .coach-staff-vip-player-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .coach-staff-vip-player-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }
}

@media (max-width: 560px) {
    .coach-staff-vip-player-summary-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* =========================================================
   A5-6｜Same-page public Coach viewer
   coach_staff.html?id=<team_id>
   ========================================================= */
body.coach-staff-public-mode .coach-staff-owner-only {
    display: none !important;
}

body.coach-staff-public-mode .coach-staff-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.coach-staff-public-mode #coachStaffTabCurrent {
    display: block;
}

@media (max-width: 640px) {
    body.coach-staff-public-mode .coach-staff-summary-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
