/* Shared navigation and the new task-oriented landing page. */
.sidebar { background: var(--primary-blue); box-shadow: none; }
.sidebar .nav-section {
    margin-top: 6px; padding-top: 4px;
    border-top: 1px solid rgba(255,255,255,.15);
}
.nav-section-toggle {
    display: block; width: 100%; padding: 10px 16px; cursor: pointer;
    border: 0; border-left: 3px solid transparent; background: transparent;
    color: #fff; text-align: left; text-transform: uppercase;
    font: 700 .98rem/1.15 var(--font-display, Arial, sans-serif);
    letter-spacing: .01em; transition: background-color .15s ease;
}
.nav-section-toggle:hover { background: rgba(255,255,255,.08); }
.nav-section-toggle.active-group { background: rgba(255,255,255,.06); border-left-color: #a9cbee; }
.nav-section-toggle:focus-visible { outline: 2px solid #a9cbee; outline-offset: -3px; }
.nav-development { margin: 4px 25px 12px; color: #a9bfd7; font-size: .8rem; }
.sidebar .nav-link { padding: 10px 16px; font-size: .98rem; text-transform: uppercase; }
.sidebar .nav-subsection-link { padding: 7px 16px 7px 28px; font-size: .88rem; line-height: 1.2; text-transform: none; color: #bdccdc; }
.sidebar .nav-link.active { background: rgba(255,255,255,.12); border-left-color: #a9cbee; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.07); }
.section-page-header { padding: 2px 0 12px; margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.2); }
.section-breadcrumb { font-size: .78rem; color: #cad8e8; margin-bottom: 6px; }
.section-breadcrumb a { color: inherit; text-decoration: none; }
.section-breadcrumb a:hover { text-decoration: underline; }
.section-page-title { font-family: var(--font-display, Arial, sans-serif); font-size: 2rem; font-weight: 600; margin: 0; color: #fff; }
.main-content { padding: 16px 20px; }
.main-header { margin: 4px 0 14px; text-align: center; }
.main-header .header-content { justify-content: center; gap: 12px; }
.main-header .header-logo { width: 38px; height: 38px; }
.main-header .header-title { font-size: 1.65rem; margin-bottom: 4px; }
.main-header .header-subtitle { margin-bottom: 0; font-size: .82rem; color: #c9d8e8; }
.main-header .header-instance-wrapper { display: none; }
.scouting-home { width: 100%; max-width: none; margin: 0; padding: 0 0 16px; }
.scouting-home .home-search-block { padding: 0; margin: 0 0 14px; background: transparent; border: 0; box-shadow: none; }
.home-search-label { display: block; font: 600 1.3rem var(--font-display, Arial, sans-serif); color: #fff; margin-bottom: 10px; }
.scouting-home .home-search-bar { display: flex; gap: 0; margin: 0; border-radius: 6px; background: #fff; overflow: hidden; border: 1px solid #cbd5e1; }
.scouting-home .home-search-input { flex: 1; min-width: 0; min-height: 52px; font-size: 1rem; background: #fff; border: 0; border-radius: 0; padding: 14px 18px; box-shadow: none; }
.scouting-home .home-search-input:focus { outline: 2px solid #88b8e8; outline-offset: -3px; }
.scouting-home .home-search-btn { background: var(--primary-blue); border: 0; border-radius: 0; padding: 12px 24px; color: #fff; box-shadow: none; }
.scouting-home .home-search-btn:hover { background: var(--accent-blue); }
.home-search-results:not(:empty) { margin-top: 16px; padding: 16px; background: rgba(255,255,255,.96); border-radius: 6px; }
.home-workspaces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; }
.scouting-home .home-workspace { min-width: 0; padding: 12px 16px; min-height: 0; background: rgba(255,255,255,.96); border: 0; border-radius: 6px; box-shadow: none; color: #172b43; }
.scouting-home .home-workspace h2 { font: 600 1.2rem var(--font-display, Arial, sans-serif); margin: -12px -16px 8px; padding: 10px 16px; background: #e8f0f8; border: 1px solid #c8d8e8; border-left: 4px solid #1764a0; border-radius: 6px 6px 0 0; color: #0d3b66; }
.home-workspace > p { margin: 0 0 5px; font-size: .78rem; color: #61758c; line-height: 1.35; }
.home-area-link { display: flex; align-items: baseline; gap: 8px; padding: 4px 0; color: #294766; text-decoration: none; font-size: .87rem; line-height: 1.35; border: 0; }
.home-area-link::before { content: '\203a'; color: #98a8b9; }
.home-area-link:hover { color: var(--primary-blue); text-decoration: underline; }
.home-area-link:focus-visible { outline: 2px solid #245b99; outline-offset: 4px; }
.home-development { padding: 10px 0 0; color: #778497; font-size: .75rem; }
.home-activity-details { margin-top: 20px; padding: 12px 0; border: 0; background: transparent; color: #d4dfeb; font-size: .82rem; }
.home-activity-details > summary { cursor: pointer; font-weight: 400; }
.home-activity-details[open] { padding: 18px; background: rgba(255,255,255,.96); border-radius: 8px; color: #172b43; }
.home-activity-details[open] > summary { margin-bottom: 20px; }
.home-activity-details .home-actividad-container h2,
.home-activity-details .home-actividad-container > div > span { color: #172b43 !important; }
.scouting-home .kpi-card, .scouting-home .dashboard-chart-card,
.scouting-home .compact-player-card { box-shadow: none; border: 1px solid #e3e8ef; transform: none; }
@media (max-width: 1000px) { .home-workspaces { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.home-workbench { margin-top: 14px; padding: 14px 16px; background: rgba(255,255,255,.98); border-radius: 6px; color: #172b43; }
.home-workbench-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.home-workbench h2 { font: 600 1.15rem var(--font-display, Arial, sans-serif); margin: 0 0 4px; }
.home-workbench p { color: #61758c; font-size: .78rem; line-height: 1.35; margin: 0 0 6px; }
.home-period { display: flex; flex-wrap: wrap; gap: 6px; }
.home-period label { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid #d5dfe9; border-radius: 4px; cursor: pointer; font-size: .8rem; }
.home-period label:has(input:checked) { background: #eaf2fa; border-color: #1764a0; color: #0d3b66; }
.home-period input { accent-color: #0d3b66; }
.home-work-range { padding-top: 8px; }
.home-work-metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); padding: 5px 0 9px; border-bottom: 1px solid #dce3eb; }
.home-work-metrics > div { display: flex; align-items: center; gap: 12px; padding: 0 14px; border-right: 1px solid #dce3eb; }
.home-work-metrics > div:first-child { padding-left: 0; }
.home-work-metrics > div:last-child { border: 0; }
.home-work-metrics strong { font: 600 1.4rem var(--font-display, Arial, sans-serif); color: #0d3b66; font-variant-numeric: tabular-nums; }
.home-work-metrics span { font-size: .82rem; }
.home-work-columns { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-top: 10px; }
.home-work-columns h3 { font: 600 1.2rem var(--font-display, Arial, sans-serif); margin-bottom: 8px; }
.home-work-count { margin-left: 6px; padding: 1px 7px; background: #eaf2fa; border-radius: 4px; color: #0d3b66; }
.home-work-columns small { color: #61758c; font-size: .72rem; }
.home-work-player { display: flex; gap: 8px; align-items: center; justify-content: space-between; border-top: 1px solid #e3e8ef; padding: 6px 0; text-decoration: none; color: #172b43; }
.home-work-player > div { min-width: 0; }
.home-work-player strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-work-more { margin-left: 8px; font-size: .75rem; color: #1764a0; }
.home-work-player strong { font-size: .85rem; }
.home-work-player small { display: block; margin-top: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-work-date { color: #61758c; font-size: .72rem; text-align: right; }
a.home-work-player:hover { background: #f0f5fa; color: #1764a0; }
.home-work-empty { padding: 14px 0; }
@media (max-width: 950px) { .home-work-columns { grid-template-columns: 1fr; } }
@media (min-width: 1001px) {
    .scouting-home .home-workspace { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; column-gap: 12px; }
    .home-workspace > h2, .home-workspace > p, .home-workspace > .home-development { grid-column: 1 / -1; }
    .home-workspace > p { min-height: 34px; }
    .home-work-player { padding: 4px 0; line-height: 1.2; }
    .home-work-columns h3 { margin-bottom: 4px; }
    .home-workbench { padding: 10px 16px; }
    .home-workbench-header h2 { margin: 0; }
    .home-period label { padding: 5px 8px; }
    .home-work-range { padding-top: 4px; }
    .home-work-metrics { padding: 2px 0 5px; }
    .home-work-columns { margin-top: 8px; }
    .home-search-label { margin-bottom: 6px; }
    .scouting-home { padding-bottom: 0; }
}
@media (max-width: 650px) { .home-work-metrics { grid-template-columns: 1fr; gap: 10px; } .home-work-metrics > div { padding: 0; border: 0; } .home-workbench { padding: 16px; } }
@media (max-width: 650px) {
    .home-workspaces { grid-template-columns: 1fr; }
    .scouting-home .home-workspace { min-height: 0; padding: 20px; }
    .scouting-home .home-search-bar { flex-direction: column; }
    .scouting-home .home-search-btn { min-height: 44px; }
    .main-header { margin-top: 6px; }
}

/* The landing page prioritizes destinations; personal activity is a utility. */
.home-followup { margin-top: 20px; padding: 14px 18px; background: rgba(247,250,253,.96); border-radius: 6px; color: #294766; }
.home-followup h2 { margin: 0; font: 600 1.1rem var(--font-display, sans-serif); }
.home-followup-period { width: 180px; font-size: .78rem; }
.home-followup-tabs { margin-top: 4px; border-bottom: 1px solid #d6e0eb; }
.home-followup .home-followup-tab { flex: 0 1 auto !important; width: auto !important; padding: 9px 16px !important; border: 0 !important; background: transparent !important; color: #61758c; font-size: .82rem; }
.home-followup .home-followup-tab-selected { color: #0d3b66; border-bottom: 2px solid #1764a0 !important; font-weight: 600; }
.home-followup-players { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; padding: 12px 0 8px; }
.home-followup .home-work-player { border: 0; padding: 4px 0; }
.home-followup .home-work-player small { color: #61758c; font-size: .75rem; }
.home-followup .home-work-player strong { font-size: .85rem; }
.home-followup-caption, .home-followup-empty { margin: 0; color: #61758c; font-size: .73rem; }
.home-followup-empty { grid-column: 1 / -1; }
.home-followup-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: .72rem; color: #61758c; }
.home-followup-footer a { color: #1764a0; text-decoration: none; }
.home-followup-footer a:hover { text-decoration: underline; }
@media (max-width: 950px) { .home-followup-players { grid-template-columns: 1fr; gap: 4px; } }
@media (max-width: 650px) { .home-followup-footer { flex-direction: column; } }
.scouting-home .home-workspace { padding: 16px 18px; border: 1px solid #d6e0eb; }
.scouting-home .home-workspace h2 { margin: -16px -18px 12px; padding: 13px 18px; font-size: 1.4rem; }
.home-area-link { padding: 9px 0; border-bottom: 1px solid #e5ebf2; font-size: .9rem; }
.home-area-link:hover { background: #edf3f9; text-decoration: none; }
.home-workbench { margin-top: 20px; background: rgba(247,250,253,.96); border: 1px solid #d6e0eb; }
.home-activity-disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; padding: 6px 0 2px; }
.home-activity-disclosure > summary::-webkit-details-marker { display: none; }
.home-activity-disclosure > summary:focus-visible { outline: 2px solid #1764a0; outline-offset: 4px; }
.home-activity-disclosure .home-work-metrics { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; border: 0; }
.home-activity-disclosure .home-work-metrics > div { padding: 0; border: 0; gap: 6px; }
.home-activity-disclosure .home-work-metrics strong { font: 600 .9rem var(--font-body, sans-serif); }
.home-detail-open, .home-detail-close { color: #1764a0; font-size: .8rem; white-space: nowrap; }
.home-detail-open::after { content: ' +'; }
.home-detail-close::after { content: ' −'; }
.home-detail-close, .home-activity-disclosure[open] .home-detail-open { display: none; }
.home-activity-disclosure[open] .home-detail-close { display: inline; }
.home-activity-disclosure[open] .home-work-columns { border-top: 1px solid #d6e0eb; padding-top: 12px; margin-top: 12px; }
@media (max-width: 650px) {
    .home-activity-disclosure > summary { align-items: flex-start; }
}

/* Personal activity: one quiet panel below the main destinations. */
.home-overview { margin-top: 18px; padding: 0; background: #fff; border: 1px solid #dce5ef; border-radius: 8px; overflow: hidden; color: #19334f; }
.home-overview-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; border-bottom: 1px solid #e4eaf1; background: #f7f9fc; }
.home-overview-heading > div { display: flex; align-items: baseline; gap: 12px; }
.home-overview-heading h2 { margin: 0; font: 600 1.2rem var(--font-display, Arial, sans-serif); color: #19334f; }
.home-overview-heading > div > span { color: #738398; font-size: .73rem; }
.home-pending-link { display: inline-flex; align-items: center; gap: 7px; color: #285a86; font-size: .74rem; text-decoration: none; }
.home-pending-count { font-weight: 600; }
.home-pending-link:hover { color: #0d3b66; text-decoration: underline; }
.home-overview-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 14px 0 10px; }
.home-period-card { min-width: 0; padding: 0 18px; border-right: 1px solid #e4eaf1; }
.home-period-card:last-child { border-right: 0; }
.home-period-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.home-period-heading h3 { margin: 0; font: 600 .84rem var(--font-body, Arial, sans-serif); }
.home-period-heading > span { color: #7a8ba0; font-size: .65rem; white-space: nowrap; }
.home-period-stat { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; background: #f1f6fc; border-radius: 6px; }
.home-period-total { display: flex; align-items: center; gap: 8px; }
.home-period-number { font: 600 1.6rem/1 var(--font-body, Arial, sans-serif); letter-spacing: -.05em; color: #173e65; font-variant-numeric: tabular-nums; }
.home-period-total > span { max-width: 60px; font-size: .67rem; color: #647b93; line-height: 1.3; }
.home-period-comparison { text-align: right; }
.home-period-change { font-size: .73rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.home-period-change.up { color: #187650; }
.home-period-change.down { color: #965366; }
.home-period-change.neutral { color: #6c7f93; font-weight: 400; }
.home-period-comparison small { display: block; margin-top: 2px; font-size: .6rem; color: #73869b; }
.home-period-ranking { margin-top: 12px; }
.home-ranking-labels { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.home-ranking-labels h4 { font: 500 .7rem var(--font-body, Arial, sans-serif); color: #687d92; margin: 0; }
.home-ranking-labels > span { font-size: .57rem; font-weight: 500; letter-spacing: .06em; color: #8091a4; padding-right: 8px; }
.home-ranking-row { display: flex; align-items: center; gap: 7px; }
.home-ranking-position { width: 12px; flex-shrink: 0; font-size: .62rem; font-variant-numeric: tabular-nums; color: #91a0b1; }
.home-ranking-row .home-work-player { display: flex; flex: 1; min-width: 0; gap: 9px; padding: 5px 0; border: 0; border-bottom: 1px solid #edf1f6; border-radius: 0; text-decoration: none; }
.home-ranking-row:last-child .home-work-player { border-bottom-color: transparent; }
.home-player-photo { display: block; width: 34px; height: 36px; flex: 0 0 34px; object-fit: contain; object-position: center; padding: 1px; border: 0; border-radius: 4px; background: #f4f6f9; }
.home-player-identity { flex: 1; min-width: 0; }
.home-ranking-row .home-work-player strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 .79rem/1.25 var(--font-body, Arial, sans-serif); color: #203c58; }
.home-ranking-row .home-work-player small { display: block; font-size: .66rem; color: #7a8a9c; margin-top: 2px; }
.home-player-score { flex: 0 0 42px; min-width: 42px; text-align: center; padding: 6px 4px; border-radius: 5px; background: #e7f0fa; border: 1px solid #d4e3f4; color: #135995; font: 600 .84rem/1 var(--font-body, Arial, sans-serif); font-variant-numeric: tabular-nums; }
.home-ranking-row .home-work-player:hover { background: #f3f7fc; }
.home-ranking-row .home-work-player:focus-visible { outline: 2px solid #1764a0; outline-offset: 2px; }
.home-ranking-empty { display: flex; min-height: 138px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; text-align: center; background: #fafbfd; border: 1px dashed #e0e7ef; border-radius: 5px; }
.home-ranking-empty strong { color: #7c8da0; font-size: .74rem; font-weight: 400; }
.home-ranking-empty span { color: #91a0b1; font-size: .67rem; }
.home-overview-footer { display: flex; justify-content: space-between; gap: 12px; padding: 8px 18px; border-top: 1px solid #edf1f5; color: #7b8b9d; font-size: .64rem; }
.home-overview-footer a { color: #326892; text-decoration: none; white-space: nowrap; }
.home-overview-footer a:hover { text-decoration: underline; }
.home-overview-note { margin: 0; padding: 14px 18px; font-size: .8rem; color: #687d92; }
@media (min-width: 1001px) and (max-height: 850px) {
    .scouting-home .home-workspace { padding: 12px 16px; }
    .scouting-home .home-workspace h2 { margin: -12px -16px 8px; padding: 10px 16px; }
    .home-area-link { padding: 5px 0; }
    .home-overview { margin-top: 12px; }
    .home-overview-heading { padding: 7px 16px; }
    .home-overview-grid { padding: 8px 0 4px; }
    .home-period-heading { margin-bottom: 6px; }
    .home-period-stat { padding: 7px 12px; }
    .home-period-ranking { margin-top: 6px; }
    .home-ranking-row .home-work-player { padding: 3px 0; }
    .home-player-photo { height: 34px; }
    .home-ranking-empty { min-height: 120px; }
    .home-overview-footer { padding-top: 6px; padding-bottom: 6px; }
}
@media (max-width: 1050px) {
    .home-period-card { padding: 0 12px; }
    .home-period-heading { flex-wrap: wrap; gap: 3px; }
}
@media (max-width: 950px) {
    .home-overview-grid { grid-template-columns: 1fr; padding: 0 16px; }
    .home-period-card { padding: 14px 0; border-right: 0; border-bottom: 1px solid #e4eaf1; }
    .home-period-card:last-child { border-bottom: 0; }
    .home-period-heading { flex-wrap: nowrap; }
    .home-overview-heading > div { flex-direction: column; gap: 2px; }
    .home-ranking-empty { min-height: 80px; }
    .home-overview-footer { flex-wrap: wrap; }
}
