/* Shared reading rhythm for the white page surfaces. Keep pitch graphics, video
   overlays and export layouts in their own component styles. */
.platform-ui {
    --app-control-border: #a3a3a3;
    margin: 0;
    font-family: var(--app-font-family);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.platform-ui #app-container > main { min-width: 0; background: var(--app-bg); }
.platform-ui .content-section { min-width: 0; }
.platform-ui .page-title {
    position: relative;
    margin-top: 0;
    padding-left: 15px;
    color: var(--app-text);
    font-size: clamp(1.6rem, 2.2vw, 2rem);
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}
.platform-ui .page-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .17em;
    bottom: .17em;
    width: 2px;
    border-radius: 2px;
    background: var(--app-text-muted);
    box-shadow: none;
}
.platform-ui .page-title + p,
.platform-ui .page-description {
    margin-top: 10px;
    max-width: 75ch;
    color: var(--app-text-muted);
    font-size: 15px;
    line-height: 1.65;
}
.platform-ui .content-section :is(p, label) { overflow-wrap: anywhere; }
.platform-ui :is(.content-section, .app-shell-modal) :is(.text-xs, [class~="text-[8px]"], [class~="text-[9px]"], [class~="text-[10px]"], [class~="text-[11px]"]) {
    font-size: .8125rem;
    line-height: 1.5;
}
.platform-ui :is(.content-section, .app-shell-modal) label.uppercase {
    letter-spacing: .065em;
    font-weight: 600;
}
.platform-ui .navigation-card {
    min-width: 0;
    min-height: 240px;
    height: 100%;
    padding: 26px;
    border: 1px solid var(--app-border);
    border-radius: 18px;
    background: var(--app-surface);
    box-shadow: none;
    transition: border-color .18s, background-color .18s;
}
.platform-ui .navigation-card:hover {
    transform: none;
    border-color: #a3a3a3;
    background-color: var(--app-surface-raised);
    box-shadow: none;
}
.platform-ui .navigation-card > div:first-child:not(:has(h3)) {
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
    border: 1px solid var(--app-border);
    border-radius: 12px;
    color: var(--app-text-secondary);
    background: var(--app-surface-raised);
}
.platform-ui .navigation-card > div:first-child > i { font-size: 21px; }
.platform-ui .navigation-card h3 {
    color: var(--app-text);
    font-size: 22px;
    line-height: 1.3;
    font-weight: 650;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}
.platform-ui .navigation-card > p { margin-top: 12px; color: var(--app-text-muted); font-size: 15px; line-height: 1.65; }
.platform-ui .navigation-card > span { margin-top: 24px; color: var(--app-text-secondary); font-size: 14px; font-weight: 600; }
.platform-ui :is(.content-section, .app-shell-modal) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]), select, textarea) {
    border-color: var(--app-control-border);
}
.platform-ui :is(.content-section, .app-shell-modal) :is(input, select, textarea):focus-visible {
    outline: 2px solid var(--app-text-secondary) !important;
    outline-offset: 3px;
    box-shadow: none;
}
.platform-ui :is(button, a, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--app-text-secondary) !important;
    outline-offset: 3px;
}
.platform-ui .app-shell-modal > :first-child {
    border-color: var(--app-border);
    box-shadow: 0 24px 80px rgb(0 0 0 / .15);
}
.platform-ui .app-shell-modal h2 { font-weight: 650; letter-spacing: -.025em; line-height: 1.35; }
.platform-ui :is(.content-section, .app-shell-modal) :is(input, select, textarea)::placeholder { color: var(--app-text-muted); }
.platform-ui .content-section :is(table:not(.planning-table):not(.fc-scrollgrid)) { font-variant-numeric: tabular-nums; }
.platform-ui .content-section :is(table:not(.planning-table):not(.fc-scrollgrid)) th { letter-spacing: .045em; }
.platform-ui .content-section :is(table:not(.planning-table):not(.fc-scrollgrid)) td { line-height: 1.5; }
/* The weather summary must be allowed to grow instead of shrinking its text. */
.platform-ui #dashboard .weather-card { height: auto; min-height: 360px; overflow: visible; }
.platform-ui #dashboard .weather-card-body { --weather-text-scale: 1 !important; overflow: visible; }
.platform-ui #dashboard #weatherUpdatedAt { font-size: 13px !important; }
/* Page headers with a back button wrap as a unit on narrow screens. */
@media (max-width: 767px) {
    .platform-ui .content-section div.flex:has(> .page-title),
    .platform-ui #comparisonView > div:first-child { flex-wrap: wrap; gap: 12px; }
    .platform-ui #comparisonView > div:first-child > div:last-child { flex-wrap: wrap; gap: 8px; }
    .platform-ui .navigation-card { min-height: 0; padding: 22px; }
    .platform-ui .page-title { font-size: 26px; }
    .platform-ui #profile > div:has(#profPreview) { flex-wrap: wrap; gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .platform-ui *, .platform-ui *::before, .platform-ui *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
/* Account and public sharing screens use the same surfaces and readable labels. */
.platform-ui :is(.login-card, .bulk-invite-panel, .qr-signup-panel) {
    border: 1px solid var(--app-border);
    border-radius: 20px;
    background: var(--app-surface);
}
.platform-ui :is(.bulk-invite-title, .qr-signup-title) { font-weight: 650; letter-spacing: -.035em; }
.platform-ui :is(.bulk-invite-label, .qr-signup-label) { font-size: 13px; letter-spacing: .04em; color: var(--app-text-secondary); }
.platform-ui :is(.bulk-invite-subtitle, .qr-signup-subtitle) { color: var(--app-text-muted); font-size: 15px; line-height: 1.65; }
.platform-ui .viewer-heading span { font-size: 12px; }
/* Screen-only planning rules deliberately exclude the exported clone. */
.platform-ui #planning .planning-button { font-size: 14px; line-height: 1.35; }
.platform-ui #planning :is(.planning-eyebrow, .planning-save-status, .planning-week-label) { font-size: 13px; }
.platform-ui #planningExportSurface .planning-player-name { font-size: 13px; line-height: 1.4; }
.platform-ui #planningExportSurface .planning-cell textarea { font-size: 14px; line-height: 1.5; }
.platform-ui #planningExportSurface .planning-table thead th { font-size: 12px; line-height: 1.4; letter-spacing: .035em; }
.platform-ui #planningExportSurface .planning-table thead th small { font-size: 12px; }
.platform-ui #planningExportSurface .planning-cell::before { font-size: 12px; }
@media (min-width: 1200px) {
    .platform-ui #planningExportSurface .planning-table-scroll { overflow-x: auto; }
    .platform-ui #planningExportSurface .planning-table { min-width: 1100px; }
}
.platform-ui .navigation-card { display: flex; flex-direction: column; align-items: flex-start; }
.platform-ui .navigation-card > span { margin-top: auto; padding-top: 24px; }
.platform-ui #team > div:first-child { flex-direction: column; }
.platform-ui #team > div:first-child > div:last-child { flex-shrink: 1; justify-content: flex-start; }
.platform-ui #planning :is(.planning-week-picker span, .planning-import-copy span, .planning-footnote) { font-size: 13px; line-height: 1.6; }
/* Let the overview toolbar take its natural height. Detail playback retains its
   own fixed controls and fullscreen behavior. */
.platform-ui #videos:not(.video-overview-detail-active) { padding-top: 0; }
.platform-ui #videos:not(.video-overview-detail-active) #videoOverviewStickyHeader {
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    right: auto !important;
    width: auto;
    padding: 16px !important;
    border: 1px solid var(--app-border) !important;
    border-radius: 14px;
    background: var(--app-surface) !important;
    overflow: visible;
    z-index: 40;
}
.platform-ui #videos:not(.video-overview-detail-active) #videoOverviewStickyHeader > div { flex-direction: column; align-items: stretch; gap: 12px; }
.platform-ui #videoOverviewSearchContainer { flex-wrap: wrap; }
.platform-ui #videoOverviewSearchContainer .video-overview-search-field { min-width: 0; }
.platform-ui #videos.video-overview-detail-active > header { display: none; }
.platform-ui .iop-plan-tab { height: auto; min-height: 46px; padding: 10px; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; }
/* Editing uses full-size fields; export clones keep the A4 presentation grid. */
.platform-ui #individuele_ontwikkeling_plan .iop-a4-screen-page { aspect-ratio: auto; overflow: visible; border: 0; background: transparent; box-shadow: none; }
.platform-ui #individuele_ontwikkeling_plan .iop-a4-screen-content { position: static; width: 100% !important; height: auto !important; min-height: 0 !important; transform: none !important; }
.platform-ui #individuele_ontwikkeling_plan .iop-sheet { padding: 0; background: transparent; box-shadow: none; }
.platform-ui #individuele_ontwikkeling_plan .iop-panel { border: 1px solid var(--app-border); border-radius: 14px; background: var(--app-surface); box-shadow: none; }
.platform-ui #individuele_ontwikkeling_plan .iop-top-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.platform-ui #individuele_ontwikkeling_plan .iop-top-content-panel { min-height: 280px; }
.platform-ui #individuele_ontwikkeling_plan :is(.iop-line-input, .iop-line-textarea, .iop-focus-control) { font-size: 15px; font-weight: 500; }
.platform-ui #individuele_ontwikkeling_plan :is(h3, .iop-focus-field-label) { letter-spacing: .025em; font-weight: 650; }
.platform-ui #individuele_ontwikkeling_plan .iop-pitch-player { width: 28px; height: 28px; font-size: 12px; }
.platform-ui #individuele_ontwikkeling_plan .iop-focus-row[data-category="development"] { --iop-focus-bg: var(--app-surface-raised); }
@media (min-width: 1500px) {
    .platform-ui #individuele_ontwikkeling_plan .iop-top-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .platform-ui #individuele_ontwikkeling_plan .iop-top-grid { grid-template-columns: minmax(0, 1fr); }
}

.platform-ui :is(.public-download-pill, .public-video-meta, .public-kicker) { font-size: 13px; line-height: 1.5; letter-spacing: .025em; }
.platform-ui .public-download-button { min-height: 44px; font-size: 14px; }
.platform-ui .public-video-title { font-size: 15px; line-height: 1.5; }
.platform-ui :is(.public-share-title, #publicPlaylistTitle) { font-weight: 650; letter-spacing: -.035em; }
.platform-ui :is(.public-match-card, .public-download-main > section) { border-color: var(--app-border); border-radius: 18px; }
.platform-ui .upload-panel { border-color: var(--app-border); border-radius: 18px; }
.platform-ui .upload-panel-header { min-width: 0; }
.platform-ui .upload-panel-header > div:first-child { min-width: 0; }
.platform-ui .upload-panel-header > div:last-child { flex-shrink: 0; width: 48px; height: 48px; border: 1px solid var(--app-border); border-radius: 12px; color: var(--app-text-secondary); background: var(--app-surface-raised); }
.platform-ui .upload-panel-header h3 { font-size: 24px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
@media (max-width: 767px) {
    .platform-ui .upload-panel { padding: 20px; }
    .platform-ui .upload-panel-header { flex-wrap: wrap; }
    .platform-ui .upload-panel-header > div:last-child { display: none; }
}

.platform-ui .login-page, .platform-ui .login-page *, .platform-ui .login-page *::before, .platform-ui .login-page *::after { box-sizing: border-box; }
.platform-ui :is(.login-label, .reset-account-label) { font-size: 13px; line-height: 1.5; letter-spacing: .06em; color: var(--app-text-secondary); }
.platform-ui .login-input { border-color: #a3a3a3; }
