/* Generiert von golf_tracker/tailwind/build_dark_css.py — nicht von Hand ändern.
   Handgepflegtes gehört in golf_tracker/tailwind/dark-manual.css. */

/* ── _analysis_tabs.html ── */
html[data-theme="dark"] .form-seg { background: #12211a; }
html[data-theme="dark"] .form-seg-btn { color: #a1eec7; }
html[data-theme="dark"] .form-seg-btn.is-active { background: #2e6a4e; }
html[data-theme="dark"] .form-empty { color: #9ba6b7; }
html[data-theme="dark"] .analysis-tabs { border-bottom: 2px solid #293d33; }
html[data-theme="dark"] .analysis-tab.is-active { color: #eefaf7; }
html[data-theme="dark"] .trend-chip { border: 1.5px solid #2e4328; background: #0d1913; color: #b3bdcc; }
html[data-theme="dark"] .trend-chip.is-active { background: #2e6a4e; }
html[data-theme="dark"] .trend-matrix-wrap { border: 1px solid #293d33; }
html[data-theme="dark"] .trend-matrix th, html[data-theme="dark"] .trend-matrix td { border-bottom: 1px solid #263930; }
html[data-theme="dark"] .trend-matrix thead th { background: #101e18; color: #b3bdcc; }
html[data-theme="dark"] .trend-matrix thead a { color: #a1eec7; }
html[data-theme="dark"] .trend-matrix thead th.is-current { background: #2e6a4e; }
html[data-theme="dark"] .trend-matrix .tm-label { background: #0d1913; color: #c2ccda; }
html[data-theme="dark"] .trend-matrix thead .tm-label { background: #101e18; }
html[data-theme="dark"] .trend-matrix tr.is-selected .tm-label { color: #eefaf7; }
html[data-theme="dark"] .trend-matrix td { color: #eefaf7; }
html[data-theme="dark"] .trend-matrix td.tm-better { background: #1f3012; color: #b7f2d1; }
html[data-theme="dark"] .trend-matrix td.tm-worse { background: #28120f; color: #e98982; }
html[data-theme="dark"] .trend-matrix td.tm-all { background: #12211a; border-left: 1px solid #2e4328; }
html[data-theme="dark"] .trend-matrix td.tm-best::after { color: #ead385; }
html[data-theme="dark"] .heat-row-label { color: #a1eec7; }
html[data-theme="dark"] .heat-cell--empty { background: #13241c; }
html[data-theme="dark"] .heat-detail { background: #12211a; color: #c2ccda; }
html[data-theme="dark"] .heat-detail strong { color: #eefaf7; }
html[data-theme="dark"] .heat-empty { color: #9ba6b7; }
html[data-theme="dark"] .act-card { border: 1px solid #2e4328; background: #0d1913; }
html[data-theme="dark"] .act-card-val { color: #eefaf7; }
html[data-theme="dark"] .act-card-label { color: #9ba6b7; }
html[data-theme="dark"] .act-col-val { color: #eefaf7; }
html[data-theme="dark"] .act-row-label { color: #b3bdcc; }
html[data-theme="dark"] .act-row-bar { background: #13241c; }
html[data-theme="dark"] .act-row-val { color: #eefaf7; }
html[data-theme="dark"] .act-empty { color: #9ba6b7; }
html[data-theme="dark"] .hcp-fact { border: 1px solid #2e4328; background: #0d1913; }
html[data-theme="dark"] .hcp-fact-val { color: #eefaf7; }
html[data-theme="dark"] .hcp-fact-label { color: #9ba6b7; }
html[data-theme="dark"] .hcp-note { background: #12211a; color: #c2ccda; }
html[data-theme="dark"] .hcp-row { border: 1px solid #293d33; background: #0d1913; }
html[data-theme="dark"] .hcp-row.is-counted { background: #1c250e; }
html[data-theme="dark"] .hcp-mark { background: #13241c; }
html[data-theme="dark"] .hcp-row-date { color: #eefaf7; }
html[data-theme="dark"] .hcp-row-sd { color: #eefaf7; }
html[data-theme="dark"] .hcp-empty { color: #9ba6b7; }

/* ── _period.html ── */
html[data-theme="dark"] .period-arrow { background: #12211a; color: #eefaf7; }
html[data-theme="dark"] .period-title strong { color: #eefaf7; }
html[data-theme="dark"] .period-seg { background: #12211a; }
html[data-theme="dark"] .period-seg a { color: #a1eec7; }
html[data-theme="dark"] .period-seg a.is-active { background: #2e6a4e; }
html[data-theme="dark"] .period-note { background: #28220f; color: #f3e7be; }
html[data-theme="dark"] .pdelta--better { background: #1f3012; color: #b7f2d1; }
html[data-theme="dark"] .pdelta--worse { background: #28120f; color: #e98982; }
html[data-theme="dark"] .pdelta--flat { background: #13241c; color: #9ba6b7; }
html[data-theme="dark"] .review-row { border: 1px solid #293d33; background: #0d1913; }
html[data-theme="dark"] .review-row-label { color: #c2ccda; }
html[data-theme="dark"] .review-row-val { color: #eefaf7; }

/* ── _rounds_history.html ── */
html[data-theme="dark"] .mo-summary { color: #a1eec7; }
html[data-theme="dark"] .my-round-score { color: #eefaf7; }
html[data-theme="dark"] .my-round-route { color: #eefaf7; }
html[data-theme="dark"] .my-round-meta { color: #9ba6b7; }
html[data-theme="dark"] .my-round-status { color: #a1eec7; }
html[data-theme="dark"] .my-round-tag--mp { background: #101b2a; color: #829ae9; }
html[data-theme="dark"] .my-round-tag--sc { background: #322c13; color: #eebc9d; }

/* ── admin_gps_setup.html ── */
html[data-theme="dark"] .gps-tee-weiss { background: #0f1c16; color: #e1e7f4; }

/* ── base.html ── */
html[data-theme="dark"] { --fairway-soft: #192b10; --paper: #0f1c16; --ink: #e7f3ee; --line: #2e4328; --score-eagle-bg: #120e25; --score-birdie-bg: #102b19; --score-par-bg: #101b2a; --score-bogey-bg: #322c13; --score-double-bg: #2c2111; --score-bad-bg: #280f0f; --score-picked-bg: #162920; --score-open-bg: #0f1c16; }
html[data-theme="dark"] body { background: radial-gradient(circle at 14% 0%, rgba(184, 243, 72, 0.28), transparent 28rem),
                radial-gradient(circle at 100% 4%, rgba(15, 138, 75, 0.18), transparent 24rem),
                linear-gradient(180deg, #112019 0%, #13241c 48%, #101e17 100%); color: #e7f3ee; }
html[data-theme="dark"] .topbar-back { color: #eefaf7; }
html[data-theme="dark"] .topbar-glass { border: 1px solid rgba(35, 52, 44, 0.54); box-shadow: 0 18px 42px rgba(7,24,20,0.1), inset 0 1px 0 rgba(13, 25, 19, 0.62), inset 0 -1px 0 rgba(255,255,255,0.18); }
html[data-theme="dark"] .topbar-glass::before { background: radial-gradient(circle at 18% 0%, rgba(13, 25, 19, 0.72), transparent 9rem),
                linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent); }
html[data-theme="dark"] .brand-mark { color: #eefaf7; }
html[data-theme="dark"] .nav-link { color: #c5dcd3; }
html[data-theme="dark"] .nav-link:hover { color: #eefaf7; }
html[data-theme="dark"] .nav-link-active { background: #2e6a4e; }
html[data-theme="dark"] .score-card, html[data-theme="dark"] .stat-tile { background: #0f1c16; }
html[data-theme="dark"] .score-label { color: #abbeb6; }
html[data-theme="dark"] .score-value { color: #eefaf7; }
html[data-theme="dark"] .panel { background: rgba(15, 28, 22, 0.96); }
html[data-theme="dark"] .panel-title { color: #eefaf7; }
html[data-theme="dark"] .arcade-panel { background: linear-gradient(180deg, rgba(13, 25, 19, 0.76), rgba(15, 28, 22, 0.96)),
                var(--arcade-bg, #101e17); }
html[data-theme="dark"] .arcade-panel .panel-head { background: linear-gradient(90deg, rgba(7, 24, 20, 0.04), transparent),
                rgba(15, 28, 22, 0.72); }
html[data-theme="dark"] .arcade-label { color: var(--arcade-label-ink, #eefaf7); }
html[data-theme="dark"] .arcade-row:hover { background: var(--arcade-hover, #12211a); }
html[data-theme="dark"] .arcade-score { color: #eefaf7; }
html[data-theme="dark"] .arcade-scoreboard { --arcade-bg: #202b10; --arcade-label-ink: #eefaf7; }
html[data-theme="dark"] .arcade-members { --arcade-bg: #0e1c24; --arcade-label-ink: #eefaf7; }
html[data-theme="dark"] .arcade-weekly { --arcade-bg: #101e17; }
html[data-theme="dark"] .arcade-feed { --arcade-bg: #2a2510; --arcade-label-ink: #eefaf7; }
html[data-theme="dark"] .arcade-member-tile { background: linear-gradient(180deg, rgba(13, 25, 19, 0.7), transparent),
                #0d1b23; }
html[data-theme="dark"] .arcade-member-tile:hover { background: #0f1e27; }
html[data-theme="dark"] .highscore-card.rank-2 { border-color: rgba(40, 60, 50, 0.75); }
html[data-theme="dark"] .hole-chip.picked { color: #9ba6b7; }
html[data-theme="dark"] .stableford-badge { color: #eefaf7; }
html[data-theme="dark"] .pinball-total { color: #eefaf7; }
html[data-theme="dark"] .modern-section-title { color: #e1e7f4; }
html[data-theme="dark"] .leaderboard-card { background: rgba(13, 25, 19, 0.86); }
html[data-theme="dark"] .podium-card { background: #0f1c16; }
html[data-theme="dark"] .podium-card.first { background: linear-gradient(180deg, #2c2711, #0d1913); }
html[data-theme="dark"] .podium-card.second { background: linear-gradient(180deg, #0d1223, #0d1913); }
html[data-theme="dark"] .podium-card.third { background: linear-gradient(180deg, #25180e, #0d1913); }
html[data-theme="dark"] .podium-name { color: #e1e7f4; }
html[data-theme="dark"] .podium-score { color: #72e69c; }
html[data-theme="dark"] .podium-score-unit { color: #9ba6b7; }
html[data-theme="dark"] .leaderboard-row:hover { background: #112019; }
html[data-theme="dark"] .avatar-dot { background: #163a23; color: #b6efcc; }
html[data-theme="dark"] .rank-text { color: #9ba6b7; }
html[data-theme="dark"] .row-score { color: #72e69c; }
html[data-theme="dark"] .trend-arrow { color: #72e69c; }
html[data-theme="dark"] .member-card { background: rgba(13, 25, 19, 0.88); }
html[data-theme="dark"] .member-avatar { background: #0d1913; color: #e1e7f4; }
html[data-theme="dark"] .has-avatar-img { background: #162920 !important; }
html[data-theme="dark"] .member-hero-avatar { border: 3px solid rgba(35, 52, 44, 0.85); }
html[data-theme="dark"] .hcp-badge { background: #0d1223; color: #8f8adc; }
html[data-theme="dark"] .task-card { background: rgba(13, 25, 19, 0.9); }
html[data-theme="dark"] .task-title { color: #f0f2fc; }
html[data-theme="dark"] .task-description { color: #9ba6b7; }
html[data-theme="dark"] .task-icon { background: #0e241a; }
html[data-theme="dark"] .task-progress { background: #162920; }
html[data-theme="dark"] .xp-pill { background: #322c13; color: #eebc9d; }
html[data-theme="dark"] .scorecard-modern { background: rgba(13, 25, 19, 0.94); }
html[data-theme="dark"] .score-hole-card { background: #0f1c16; color: #e1e7f4; }
html[data-theme="dark"] .score-hole-cam { background: rgba(13, 25, 19, 0.92); color: #d2f2e7; }
html[data-theme="dark"] .score-hole-note { background: rgba(13, 25, 19, 0.92); color: #d2f2e7; }
html[data-theme="dark"] .score-hole-putts { color: rgba(179, 189, 204, 0.62); }
html[data-theme="dark"] .score-hole-putts:hover { color: #c2ccda; }
html[data-theme="dark"] .score-hole-putts-static { color: rgba(179, 189, 204, 0.62); }
html[data-theme="dark"] .score-hole-tag--gir { color: #a4efc0; }
html[data-theme="dark"] .score-hole-tag--ud { color: #6989e5; }
html[data-theme="dark"] .photo-lightbox-dot.is-active { background: #1f3a2d; }
html[data-theme="dark"] .score-hole-card.eagle { background: #120e25; }
html[data-theme="dark"] .score-hole-card.birdie { background: #102b19; }
html[data-theme="dark"] .score-hole-card.par { background: #101b2a; }
html[data-theme="dark"] .score-hole-card.bogey { background: #322c13; }
html[data-theme="dark"] .score-hole-card.double { background: #2c2111; }
html[data-theme="dark"] .score-hole-card.bad { background: #280f0f; }
html[data-theme="dark"] .score-hole-card.picked { background: #162920; color: #b3bdcc; }
html[data-theme="dark"] .score-hole-card.picked .score-hole-shots { color: #c2ccda; }
html[data-theme="dark"] .score-hole-top { color: #9ba6b7; }
html[data-theme="dark"] .score-hole-number { color: #e1e7f4; }
html[data-theme="dark"] .score-hole-shots { color: #e1e7f4; }
html[data-theme="dark"] .score-hole-label { color: #c2ccda; }
html[data-theme="dark"] .score-hole-points { background: rgba(13, 25, 19, 0.72); color: #b3bdcc; }
html[data-theme="dark"] .mp-summary-tile { background: rgba(13, 25, 19, 0.92); }
html[data-theme="dark"] .mp-summary-tile.is-win { background: #102b19; }
html[data-theme="dark"] .mp-summary-tile.is-loss { background: #280f0f; }
html[data-theme="dark"] .mp-summary-tile.is-halve { background: #162920; }
html[data-theme="dark"] .mp-summary-count { color: #e1e7f4; }
html[data-theme="dark"] .mp-summary-label { color: #abbeb6; }
html[data-theme="dark"] .mp-legend { color: #b3bdcc; }
html[data-theme="dark"] .mp-dot-halve { background: #313b4a; }
html[data-theme="dark"] .mp-dot-open { background: #1e2935; }
html[data-theme="dark"] .mp-dot-decided { background: #313b4a; }
html[data-theme="dark"] .score-hole-card.mp-win { background: #102b19; }
html[data-theme="dark"] .score-hole-card.mp-loss { background: #280f0f; }
html[data-theme="dark"] .score-hole-card.mp-halve { background: #12221b; }
html[data-theme="dark"] .score-hole-card.mp-open { background: #0f1c16; }
html[data-theme="dark"] .score-hole-card.mp-decided { background: #112019; }
html[data-theme="dark"] .score-hole-shots.mp-result { color: #e1e7f4; }
html[data-theme="dark"] .mp-result-who { color: #9ba6b7; }
html[data-theme="dark"] .mp-win .mp-outcome { color: #a4efc0; }
html[data-theme="dark"] .mp-loss .mp-outcome { color: #e87d7d; }
html[data-theme="dark"] .mp-halve .mp-outcome { color: #9ba6b7; }
html[data-theme="dark"] .mp-standing { background: rgba(13, 25, 19, 0.78); color: #b3bdcc; }
html[data-theme="dark"] .mp-standing.up { color: #a4efc0; }
html[data-theme="dark"] .mp-standing.down { color: #e87d7d; }
html[data-theme="dark"] .mp-standing.square { color: #b3bdcc; }
html[data-theme="dark"] .score-hole-input { background: rgba(13, 25, 19, 0.78); color: #e1e7f4; }
html[data-theme="dark"] .summary-pill { background: #112019; color: #e1e7f4; }
html[data-theme="dark"] .stat-tile-modern { background: rgba(13, 25, 19, 0.92); }
html[data-theme="dark"] .big-number { color: #e1e7f4; }
html[data-theme="dark"] .mini-bar { background: #162920; }
html[data-theme="dark"] .donut-indicator { background: conic-gradient(var(--green) var(--donut, 0%), #162920 0); }
html[data-theme="dark"] .donut-indicator::after { background: #0d1913; }
html[data-theme="dark"] .donut-value { color: #e1e7f4; }
html[data-theme="dark"] .admin-pill { background: #112019; color: #c2ccda; }
html[data-theme="dark"] .admin-pill-green { background: #102b19; color: #b6efcc; }
html[data-theme="dark"] .admin-pill-amber { background: #322c13; color: #eebc9d; }
html[data-theme="dark"] .admin-pill-red { background: #280f0f; color: #ec9191; }
html[data-theme="dark"] .admin-pill-indigo { background: #0f1528; color: #8f8adc; }
html[data-theme="dark"] .ghost-btn { background: rgba(20, 38, 30, 0.88); color: #eefaf7; }
html[data-theme="dark"] .dark-btn { background: #2e6a4e; }
html[data-theme="dark"] .danger-btn { background: #15281f; color: #e98099; }
html[data-theme="dark"] .danger-btn-solid:disabled { background: #4f1e1e; border-color: #582a2a; }
html[data-theme="dark"] .course-chip, html[data-theme="dark"] .hole-badge { background: #12211a; }
html[data-theme="dark"] .route-card { background: linear-gradient(180deg, #0f1c16, #17280f); }
html[data-theme="dark"] .route-card.is-selected { background: linear-gradient(180deg, #1c4934, #20542d); }
html[data-theme="dark"] .form-field { color: #eefaf7; }
html[data-theme="dark"] .form-input { border: 1px solid #34442f; background: #0d1913; }
html[data-theme="dark"] .app-toggle-track { background: #1e2935; }
html[data-theme="dark"] .app-toggle-track::after { background: #0d1913; }
html[data-theme="dark"] .app-toggle input:checked + .app-toggle-track { background: #2e6a4e; }
html[data-theme="dark"] .status-banner { background: #0e2417; color: #c3f1d5; }
html[data-theme="dark"] .status-banner-error { background: #101e17; color: #ec9191; }
html[data-theme="dark"] .bottom-nav { background: #0f1c16; }
html[data-theme="dark"] .bottom-link { color: #aec3bb; }
html[data-theme="dark"] .bottom-link-active { color: #eefaf7; }
html[data-theme="dark"] .live-link-glow { color: #8eebb0; }
html[data-theme="dark"] .chat-panel { background: rgba(13, 25, 19, 0.98); }
html[data-theme="dark"] .chat-title { color: #e1e7f4; }
html[data-theme="dark"] .chat-close { background: #112019; color: #c2ccda; }
html[data-theme="dark"] .chat-tab { background: #112019; color: #b3bdcc; }
html[data-theme="dark"] .chat-tab.is-active { background: #2e6a4e; }
html[data-theme="dark"] .chat-input { border: 1px solid #2a3f35; background: #0f1c16; }
html[data-theme="dark"] .mention-suggest button { background: #11182e; color: #8f8adc; }
html[data-theme="dark"] .message-avatar { background: #162920; color: #e1e7f4; }
html[data-theme="dark"] .message-row.is-horst .message-avatar { background: #322c13; color: #eebc9d; }
html[data-theme="dark"] .message-bubble { background: #112019; color: #e1e7f4; }
html[data-theme="dark"] .message-row.is-mine .message-bubble { background: #0f1c16; color: #e1e7f4; }
html[data-theme="dark"] .message-row.is-horst .message-bubble { background: #28220f; }
html[data-theme="dark"] .message-mention { color: #5983e2; }
html[data-theme="dark"] .message-row.is-mine .message-mention { color: #a4efc0; }
html[data-theme="dark"] .message-action-btn { background: rgba(19, 35, 27, 0.86); color: #b3bdcc; }
html[data-theme="dark"] .message-action-btn:hover { background: #13231b; color: #e1e7f4; }
html[data-theme="dark"] .message-row.is-mine .message-action-btn { background: #13231b; color: #a4efc0; }
html[data-theme="dark"] .message-action-btn.is-danger:hover { color: #e36161; }
html[data-theme="dark"] .reaction-btn { background: #13231b; }
html[data-theme="dark"] .reaction-names { color: #9ba6b7; }
html[data-theme="dark"] .message-row.is-mine .reaction-names { color: #a4efc0; }
html[data-theme="dark"] .dm-chat-head { background: rgba(13, 25, 19, 0.98); }
html[data-theme="dark"] .dm-chat-back { background: #112019; color: #c2ccda; }
html[data-theme="dark"] .dm-chat-name { color: #e1e7f4; }
html[data-theme="dark"] .dm-start-title { color: #e1e7f4; }
html[data-theme="dark"] .dm-count-pill { background: #112019; color: #b3bdcc; }
html[data-theme="dark"] .dm-person { background: #0f1c16; }
html[data-theme="dark"] .dm-person:hover, html[data-theme="dark"] .dm-person.is-active { background: #1c4934; }
html[data-theme="dark"] .dm-person-avatar { background: #0d1913; color: #e1e7f4; }
html[data-theme="dark"] .dm-person-name { color: #e1e7f4; }
html[data-theme="dark"] .dm-person-status { color: #9ba6b7; }
html[data-theme="dark"] .dm-empty { color: #9ba6b7; }
html[data-theme="dark"] .thread-row:hover, html[data-theme="dark"] .thread-row.is-active { background: #234133; }
html[data-theme="dark"] .online-dot { background: #313b4a; box-shadow: 0 0 0 2px #0d1913; }
html[data-theme="dark"] .thread-name { color: #e1e7f4; }
html[data-theme="dark"] .thread-last { color: #9ba6b7; }
html[data-theme="dark"] .matchplay-popup-btn { background: #14261e; color: #eefaf7; }
html[data-theme="dark"] .chat-dialog { background: #0d1913; }
html[data-theme="dark"] .chat-dialog-title { color: #e1e7f4; }
html[data-theme="dark"] .chat-dialog-copy { color: #9ba6b7; }
html[data-theme="dark"] .chat-dialog-input { border: 1px solid #2a3f35; background: #0f1c16; color: #e1e7f4; }
html[data-theme="dark"] .chat-dialog-btn.is-ghost { background: #172a21; color: #c2ccda; }
@media (max-width: 767px) {
  html[data-theme="dark"] .chat-compose { background: rgba(13, 25, 19, 0.98); }
}
html[data-theme="dark"] .ch-tabs { border-bottom: 2px solid #283c32; }
html[data-theme="dark"] .ch-tab { color: #9ba6b7; }
html[data-theme="dark"] .ch-tab.is-active { color: #a1eec7; }
html[data-theme="dark"] .ch-tab:hover:not(.is-active) { color: #d5dce9; }
html[data-theme="dark"] .ch-tab-badge { background: #162920; color: #b3bdcc; }
html[data-theme="dark"] .ch-tab.is-active .ch-tab-badge { background: #1e502f; color: #b6efcc; }
html[data-theme="dark"] .shot-card { background: #0d1913; }
html[data-theme="dark"] .shot-photo { background: #112019; }
html[data-theme="dark"] .shot-player { color: #e9f6ef; }
html[data-theme="dark"] .shot-meta-line { color: #9ba6b7; }
html[data-theme="dark"] .shot-shots { color: #e9f6ef; }
html[data-theme="dark"] .shot-par { color: #9ba6b7; background: #112019; }
html[data-theme="dark"] .shot-result-eagle { background: #101b2a; color: #829ae9; }
html[data-theme="dark"] .shot-result-birdie { background: #102b19; color: #b6efcc; }
html[data-theme="dark"] .shot-result-par { background: #111f18; color: #b6efcc; }
html[data-theme="dark"] .shot-result-bogey { background: #280f0f; color: #ec9191; }
html[data-theme="dark"] .shot-result-nr { background: #343114; color: #eebc9d; }
html[data-theme="dark"] .shot-reactions { border-top: 1px solid #25382f; }
html[data-theme="dark"] .shot-react-btn { border: 1.5px solid #283c32; background: #15261e; color: #c2ccda; }
html[data-theme="dark"] .shot-react-btn:hover { border-color: #293647; background: #172a21; }
html[data-theme="dark"] .shot-react-btn.is-active { background: #234032; }
html[data-theme="dark"] .shot-react-count { color: #b3bdcc; }
html[data-theme="dark"] .shot-react-btn.is-active .shot-react-count { color: #b6efcc; }
html[data-theme="dark"] .shot-comment { color: #c2ccda; }
html[data-theme="dark"] .shot-comment-author { color: #e9f6ef; }
html[data-theme="dark"] .shot-comment-input { border: 1.5px solid #283c32; background: #0f1c16; }
html[data-theme="dark"] .shot-comment-input:focus { background: #0d1913; }
html[data-theme="dark"] .shot-photo-del:hover { background: #101e17; }
html[data-theme="dark"] .shot-photo-avatar:hover { color: #a1eec7; background: #0e241a; }
html[data-theme="dark"] .shot-photo-avatar.is-active { color: #a1eec7; }
html[data-theme="dark"] .shot-avatar { background: #123021; color: #b6efcc; }
html[data-theme="dark"] .photo-del-dialog { background: #0d1913; }
html[data-theme="dark"] .photo-del-title { color: #e9f6ef; }
html[data-theme="dark"] .photo-del-body { color: #9ba6b7; }
html[data-theme="dark"] .photo-del-cancel { border: 1.5px solid #283c32; background: #0f1c16; color: #b3bdcc; }
html[data-theme="dark"] .photo-del-cancel:hover { background: #112019; border-color: #293647; }
html[data-theme="dark"] .weather-chip { background: rgba(15, 28, 22, .82); color: #eefaf7; }
html[data-theme="dark"] .weather-chip:hover { background: rgba(15, 28, 22, 1); }
html[data-theme="dark"] .theme-toggle { background: rgba(15, 28, 22, .82); color: #eefaf7; }
html[data-theme="dark"] .theme-toggle:hover { background: rgba(15, 28, 22, 1); }
html[data-theme="dark"] .notice-card { border: 1px solid #2e4328; background: #0f1c16; }
html[data-theme="dark"] .notice-card-title { color: #eefaf7; }
html[data-theme="dark"] .notice-card-text { color: #c2ccda; }
html[data-theme="dark"] .notice-card-muted { color: #9ba6b7; }
html[data-theme="dark"] .notice-btn-later { border: 1px solid #2e4328; background: #13231b; color: #c2ccda; }
html[data-theme="dark"] .notice-btn-try { background: #2e6a4e; }
html[data-theme="dark"] .weather-panel { background: rgba(15, 28, 22, .98); }
html[data-theme="dark"] .weather-panel-title { color: #aec3bb; }
html[data-theme="dark"] .weather-panel-close { background: #112019; color: #c2ccda; }
html[data-theme="dark"] .weather-tile { background: #0f1c16; border: 1px solid #283c32; }
html[data-theme="dark"] .weather-label { color: #9ba6b7; }
html[data-theme="dark"] .weather-val { color: #eefaf7; }
html[data-theme="dark"] .weather-hour { background: #0f1c16; border: 1px solid #283c32; }
html[data-theme="dark"] .weather-hour-temp { color: #eefaf7; }
html[data-theme="dark"] .rounds-icon-btn { background: rgba(20, 38, 30, .88); color: #aec3bb; }
html[data-theme="dark"] .rounds-icon-btn:hover { background: #172a21; color: #eefaf7; }
html[data-theme="dark"] .rounds-icon-del:hover { background: #101e17; color: #e98099; }
html[data-theme="dark"] .badge-filter button { color: #9ba6b7; }
html[data-theme="dark"] .badge-filter button.is-active { background: #1f3a2d; color: #eefaf7; }
html[data-theme="dark"] .badge-tile { background: #0d1913; }
html[data-theme="dark"] .badge-tile-name { color: #eefaf7; }
html[data-theme="dark"] .badge-tile-desc { color: #9ba6b7; }
html[data-theme="dark"] .badge-tile-xp { color: #a1eec7; }
html[data-theme="dark"] .badge-tile[data-rarity="common"] .badge-tile-icon { background: linear-gradient(135deg,#64748b,#313b4a); }
html[data-theme="dark"] .badge-tile[data-earned="0"] { background: #0f1c16; }
html[data-theme="dark"] .rank-master { color: #e4c368; }

/* ── clubhouse_compare.html ── */
html[data-theme="dark"] .vs-select { background: #0d1913; color: #eefaf7; }
html[data-theme="dark"] .cmp-win-a { color: #eefaf7; }
html[data-theme="dark"] .cmp-win-b { color: #eefaf7; }
html[data-theme="dark"] .duel-row-label { color: #a1eec7; }
html[data-theme="dark"] .duel-cell--empty { background: #13241c; }
html[data-theme="dark"] .duel-detail { background: #12211a; color: #c2ccda; }
html[data-theme="dark"] .duel-detail strong { color: #eefaf7; }

/* ── enter_score.html ── */
html[data-theme="dark"] .round-shell { background: radial-gradient(circle at 60% 12%, rgba(13, 25, 19, 0.92), transparent 21rem),
        linear-gradient(135deg, #112019, #13231b 58%, #162920); }
html[data-theme="dark"] .status-popover { border: 1px solid rgba(35, 52, 44, 0.55); background: rgba(13, 25, 19, 0.92); }
html[data-theme="dark"] .round-status-kicker { color: rgba(218, 242, 234, 0.5); }
html[data-theme="dark"] .status-popover-field { background: #0d1913; color: #d9eee7; }
html[data-theme="dark"] .status-popover-field::placeholder { color: rgba(217, 238, 231, 0.4); }
html[data-theme="dark"] .status-popover-hint { color: rgba(218, 242, 234, 0.45); }
html[data-theme="dark"] .stats-popover-label { color: rgba(218, 242, 234, 0.55); }
html[data-theme="dark"] .stats-popover-value { color: #d9eee7; }
html[data-theme="dark"] .stats-popover-empty { color: rgba(218, 242, 234, 0.55); }
html[data-theme="dark"] .mp-pop-confetti span:nth-child(2) { background: #0f1c16; }
html[data-theme="dark"] .mp-pop-confetti span:nth-child(6) { background: #0f1c16; }
html[data-theme="dark"] .tee-distance-hint { color: rgba(218, 242, 234, 0.42); }
html[data-theme="dark"] .tee-distance-hint #tee-distance-value { color: rgba(218, 242, 234, 0.62); }
html[data-theme="dark"] .stats-tab { color: rgba(218, 242, 234, 0.6); }
html[data-theme="dark"] .stats-tab.is-active { background: #213d30; color: #daf2ea; }
html[data-theme="dark"] .stats-score-cell { background: #0d1913; }
html[data-theme="dark"] .stats-score-hole { color: rgba(218, 242, 234, 0.55); }
html[data-theme="dark"] .stats-score-shots { color: #daf2ea; }
html[data-theme="dark"] .stats-score-par { color: rgba(218, 242, 234, 0.5); }
html[data-theme="dark"] .sc-eagle { background: #120e25; }
html[data-theme="dark"] .sc-birdie { background: #102b19; }
html[data-theme="dark"] .sc-par { background: #101b2a; }
html[data-theme="dark"] .sc-bogey { background: #322c13; }
html[data-theme="dark"] .sc-double { background: #2c2111; }
html[data-theme="dark"] .sc-bad { background: #280f0f; }
html[data-theme="dark"] .sc-picked { background: #162920; }
html[data-theme="dark"] .sc-open { background: #0f1c16; }
html[data-theme="dark"] .sc-open .stats-score-shots { color: rgba(218, 242, 234, 0.3); }
html[data-theme="dark"] .stats-live-row { background: #0d1913; }
html[data-theme="dark"] .stats-live-name { color: #daf2ea; }
html[data-theme="dark"] .stats-live-meta { color: rgba(218, 242, 234, 0.55); }
html[data-theme="dark"] .stats-live-total { color: #daf2ea; }
html[data-theme="dark"] .stats-live-topar { color: #c4e899; }
html[data-theme="dark"] .drive-live-label { color: rgba(218, 242, 234, 0.6); }
html[data-theme="dark"] .drive-live-value { color: #daf2ea; }
html[data-theme="dark"] .drive-mark-btn { background: linear-gradient(135deg, #123f2f, #2e6a4e); }
html[data-theme="dark"] .drive-mark-hint { color: rgba(218, 242, 234, 0.5); }
html[data-theme="dark"] .drive-club-title { color: #daf2ea; }
html[data-theme="dark"] .drive-club-distance { color: #c4e899; }
html[data-theme="dark"] .drive-club-btn { background: #13231b; color: #daf2ea; }
html[data-theme="dark"] .drive-club-btn:active { background: #455721; }
html[data-theme="dark"] .drive-club-cancel { color: rgba(218, 242, 234, 0.6); }
html[data-theme="dark"] #putt-count-sticky { background: #0f1c16; }
html[data-theme="dark"] .tag-step-block { background: rgba(13, 25, 19, 0.7); }
html[data-theme="dark"] .tag-step-title { color: #daf2ea; }
html[data-theme="dark"] .tag-step-hint { color: rgba(218, 242, 234, 0.55); }
html[data-theme="dark"] .tag-step-btn { background: #13231b; color: #daf2ea; }
html[data-theme="dark"] .tag-step-count { color: #daf2ea; }
html[data-theme="dark"] .tag-step-row-title { color: rgba(218, 242, 234, 0.5); }
html[data-theme="dark"] .tag-step-type-btn { background: #13231b; color: #daf2ea; }
html[data-theme="dark"] .tag-step-type-btn.is-on { background: #2e6a4e; }
html[data-theme="dark"] .drive-list-title { color: rgba(218, 242, 234, 0.5); }
html[data-theme="dark"] .drive-list-hole { color: #daf2ea; }
html[data-theme="dark"] .drive-list-club { color: rgba(218, 242, 234, 0.7); }
html[data-theme="dark"] .drive-list-dist { color: #daf2ea; }
html[data-theme="dark"] .score-tile-current { background: rgba(46, 106, 78, .88); }
html[data-theme="dark"] .score-tile-ace { background: #23190d; color: #f1ceaf; }
html[data-theme="dark"] .score-tile-eagle { background: #0e241a; color: #ccf6eb; }
html[data-theme="dark"] .score-tile-birdie { background: #111f18; color: #c3f1d5; }
html[data-theme="dark"] .score-tile-par { border-color: #244a31; background: #12211a; color: #e0f9ee; }
html[data-theme="dark"] .score-tile-par::before { background: linear-gradient(180deg, rgba(13, 25, 19, .62), transparent 58%); }
html[data-theme="dark"] .score-tile-bogey { background: #241f0e; color: #f0c5ac; }
html[data-theme="dark"] .score-tile-double { background: #23190d; color: #f0baa8; }
html[data-theme="dark"] .score-tile-over { background: #241f0e; color: #f0c5ac; }
html[data-theme="dark"] .score-tile-special { border-color: #233c49; background: #0d1622; color: #cde6f6; }
html[data-theme="dark"] .celebration-ace .score-burst { border-color: #24362d; }
html[data-theme="dark"] .celebration-ace .shape-b { border-color: #3e301e; }
html[data-theme="dark"] .celebration-birdie .score-burst { border-color: #24362d; }
html[data-theme="dark"] .celebration-par .score-burst { background: #0f1c16; color: #eefaf7; }
html[data-theme="dark"] .celebration-bogey .score-burst { border-color: #24362d; }
html[data-theme="dark"] .celebration-double-bogey .score-burst { border-color: #452121; }
html[data-theme="dark"] .celebration-gestrichen .score-burst { border-color: #384454; }
html[data-theme="dark"] .celebration-ace { color: #e2c659; }
html[data-theme="dark"] .autohole-toggle { color: #c2ccda; }
html[data-theme="dark"] .map3d-season-row select { border: 1px solid #454130; background: #0d1913; }
html[data-theme="dark"] .hole-map3d { background: #23371c; }
html[data-theme="dark"] .map3d-btn { background: rgba(46, 106, 78, 0.62); }
html[data-theme="dark"] .map3d-attr.is-open { background: rgba(46, 106, 78, 0.72); }

/* ── manage_rounds.html ── */
html[data-theme="dark"] .sb-card { background: rgba(13, 25, 19, .95); border: 1.5px solid #23342c; }
html[data-theme="dark"] .sb-avatar--me { background: #0d1913; color: #eefaf7; }
html[data-theme="dark"] .sb-num { color: #eefaf7; }
html[data-theme="dark"] .sb-name { color: #eefaf7; }
html[data-theme="dark"] .sb-mp { background: #101b2a; color: #829ae9; }
html[data-theme="dark"] .sb-route { color: #a1eec7; }
html[data-theme="dark"] .sb-date { color: #9ba6b7; }
html[data-theme="dark"] .sb-tee { background: #112019; color: #b3bdcc; }
html[data-theme="dark"] .sb-tee--weiss { background: #0d1913; color: #b3bdcc; border: 1px solid #293647; }
html[data-theme="dark"] .weather-tile { background: #0f1c16; border: 1px solid #283c32; }
html[data-theme="dark"] .weather-label { color: #9ba6b7; }
html[data-theme="dark"] .weather-val { color: #eefaf7; }
html[data-theme="dark"] .weather-hour { background: #0f1c16; border: 1px solid #283c32; }
html[data-theme="dark"] .weather-hour-temp { color: #eefaf7; }

/* ── round_detail.html ── */
html[data-theme="dark"] .round-stat { border: 1px solid #2e4328; background: #0f1c16; }
html[data-theme="dark"] .round-stat-label { color: #abbeb6; }
html[data-theme="dark"] .round-stat-value { color: #eefaf7; }
html[data-theme="dark"] .putt-dist-label { color: #abbeb6; }
html[data-theme="dark"] .putt-dist-track { background: #16281f; }
html[data-theme="dark"] .putt-dist-count { color: #eefaf7; }
html[data-theme="dark"] .tag-pill { color: #eec39c; }
html[data-theme="dark"] .tag-pill--hole { color: #daf2ea; }
html[data-theme="dark"] .score-hole-tag--lost { color: #eec39c; }
html[data-theme="dark"] .score-hole-tag--penalty { color: #e87d7d; }

/* ── stats.html ── */
html[data-theme="dark"] .club-bag-chip { border: 1.5px solid #2e4328; background: #0f1c16; color: rgba(218, 242, 234, 0.55); }

/* ── dark-manual.css ── */
/* Handgepflegter Teil des Dunkelmodus (wird an golf-dark.css angehängt).
   Hier: Grundfläche, Formularfelder und die Tailwind-Utilities aus dem Markup
   (die stehen nicht in <style>-Blöcken, die Automatik sieht sie nicht). */

html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] body {
    background:
        radial-gradient(circle at 14% 0%, rgba(184, 243, 72, 0.08), transparent 28rem),
        radial-gradient(circle at 100% 4%, rgba(15, 138, 75, 0.14), transparent 24rem),
        linear-gradient(180deg, #08130f 0%, #0a1712 48%, #08120e 100%);
    color: #e3efe8;
}

html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
    background-color: #0f211a;
    color: #e3efe8;
    border-color: #2a4136;
}
html[data-theme="dark"] ::placeholder { color: #6f8a7e; }

/* Tailwind: Flächen */
html[data-theme="dark"] .bg-white { background-color: #12241c; }
html[data-theme="dark"] .bg-white\/85 { background-color: rgba(18, 36, 28, 0.85); }
html[data-theme="dark"] .bg-slate-50 { background-color: #10201a; }
html[data-theme="dark"] .bg-slate-100 { background-color: #16291f; }
html[data-theme="dark"] .bg-slate-300 { background-color: #2a3d34; }
html[data-theme="dark"] .bg-\[\#fffdf6\] { background-color: #10201a; }
html[data-theme="dark"] .bg-\[\#f2f9ed\],
html[data-theme="dark"] .bg-\[\#f8fbf5\],
html[data-theme="dark"] .bg-\[\#eef7ec\] { background-color: #132a20; }
html[data-theme="dark"] .bg-emerald-50,
html[data-theme="dark"] .bg-emerald-100 { background-color: #123222; }
html[data-theme="dark"] .bg-red-50 { background-color: #2b1414; }

/* Tailwind: Rahmen */
html[data-theme="dark"] .border-slate-200,
html[data-theme="dark"] .border-\[\#d9e6d5\],
html[data-theme="dark"] .border-\[\#e7e2d2\],
html[data-theme="dark"] .border-\[\#dfe9dc\],
html[data-theme="dark"] .border-\[\#d9e6d5\] { border-color: #25392f; }
html[data-theme="dark"] .border-emerald-200,
html[data-theme="dark"] .border-emerald-300 { border-color: #1f4a35; }
html[data-theme="dark"] .border-red-200 { border-color: #5b2323; }

/* Tailwind: Schrift */
html[data-theme="dark"] .text-slate-950,
html[data-theme="dark"] .text-slate-800,
html[data-theme="dark"] .text-\[\#071814\] { color: #eef6f1; }
html[data-theme="dark"] .text-slate-700 { color: #d3e0d9; }
html[data-theme="dark"] .text-slate-600 { color: #b2c3ba; }
html[data-theme="dark"] .text-slate-500 { color: #93a69c; }
html[data-theme="dark"] .text-slate-400 { color: #7d8f86; }
html[data-theme="dark"] .text-\[\#0f8a4b\],
html[data-theme="dark"] .text-emerald-600,
html[data-theme="dark"] .text-emerald-700 { color: #4ade80; }
html[data-theme="dark"] .text-emerald-800,
html[data-theme="dark"] .text-emerald-900,
html[data-theme="dark"] .text-emerald-950 { color: #86efac; }
html[data-theme="dark"] .text-emerald-900\/80 { color: rgba(134, 239, 172, 0.8); }
html[data-theme="dark"] .text-red-600,
html[data-theme="dark"] .text-red-700,
html[data-theme="dark"] .text-rose-600 { color: #f87171; }
html[data-theme="dark"] .text-red-900 { color: #fca5a5; }
html[data-theme="dark"] .text-amber-700 { color: #fbbf24; }

/* Dunkle Schrift auf Lime/Weiß-Buttons, die hell bleiben */
html[data-theme="dark"] .bg-\[\#b8f348\].text-\[\#071814\],
html[data-theme="dark"] .bg-\[\#b8f348\] .text-\[\#071814\] { color: #071814; }

/* Umschalter in der Topbar */
.theme-toggle .theme-toggle__sun { display: none; }
html[data-theme="dark"] .theme-toggle .theme-toggle__sun { display: block; }
html[data-theme="dark"] .theme-toggle .theme-toggle__moon { display: none; }

/* Inline-Styles in Templates/JS (nur mit !important zu übersteuern) */
html[data-theme="dark"] [style*="color:#475569"] { color: #b2c3ba !important; }
html[data-theme="dark"] [style*="color:#94a3b8"] { color: #8fa298 !important; }
html[data-theme="dark"] [style*="color:#64748b"] { color: #93a69c !important; }
html[data-theme="dark"] .weather-hour [style*="color:#071814"] { color: #eef6f1 !important; }
html[data-theme="dark"] [style*="background:#eef2ee"] { background: #16291f !important; }
html[data-theme="dark"] [style*="background:#cbd5cb"] { background: #2a3d34 !important; }
html[data-theme="dark"] .gallery-spinner { border-color: #2a3d34 !important; border-top-color: #b8f348 !important; }

/* Chat-Button: dunkel auf dunkel braucht eine Kante */
html[data-theme="dark"] .chat-fab { box-shadow: 0 0 0 1px rgba(184, 243, 72, 0.35), 0 12px 28px rgba(0, 0, 0, 0.45); }

/* Glasflächen, die auf hellem Grund hell schimmern sollen — im Dunkeln dunkles Glas */
html[data-theme="dark"] .topbar-glass {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(20, 44, 34, 0.7), rgba(8, 19, 15, 0.55));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
html[data-theme="dark"] .topbar-glass::before { opacity: 0.08; }
html[data-theme="dark"] .round-stat-card { background: rgba(7, 24, 20, 0.6); border-color: rgba(255, 255, 255, 0.12); }
html[data-theme="dark"] .round-inline-chat-form { background: rgba(7, 24, 20, 0.6); }
html[data-theme="dark"] .round-inline-chat-form textarea { background: transparent; }

/* XP-Balken: Schrift über der Lime-Füllung bleibt dunkel */
html[data-theme="dark"] .bg-\[\#b8f348\] + .text-\[\#071814\] { color: #071814; }

/* Tiefdunkle Tailwind-Buttons/Links (bg-[#071814]) — sonst unsichtbar auf Dunkel */
html[data-theme="dark"] button.bg-\[\#071814\],
html[data-theme="dark"] a.bg-\[\#071814\],
html[data-theme="dark"] button.bg-slate-950,
html[data-theme="dark"] a.bg-slate-950 { background-color: #2e6a4e; }

/* Statistik-Graphen (_analysis_tabs.html: #form-chart, #trend-chart): Farben stehen als
   SVG-Attribute im JS — CSS schlägt Präsentationsattribute, daher hier per Attributwert. */
html[data-theme="dark"] .form-chart svg [stroke="#071814"] { stroke: #e3efe8; }
html[data-theme="dark"] .form-chart svg [fill="#071814"] { fill: #e3efe8; }
html[data-theme="dark"] .form-chart svg circle[stroke="#fff"] { stroke: #12241c; }
html[data-theme="dark"] .form-chart svg [stroke="#e2ece0"] { stroke: rgba(227, 239, 232, 0.1); }
html[data-theme="dark"] .form-chart svg [fill="#94a3b8"] { fill: #8ea69a; }
html[data-theme="dark"] .form-chart svg [stroke="#0f8a4b"] { stroke: #4cc47f; }
html[data-theme="dark"] .form-chart svg circle[fill="#0f8a4b"] { fill: #4cc47f; }
html[data-theme="dark"] .form-chart svg rect[fill="#f2f9ed"] { fill: rgba(184, 243, 72, 0.08); }
html[data-theme="dark"] .form-chart svg circle[fill="#b8f348"] { stroke: #e3efe8; }
/* Legenden darunter (Inline-Styles) */
html[data-theme="dark"] :is(#form-legend, #trend-legend) [style*="background:#071814"] { background: #e3efe8 !important; }
html[data-theme="dark"] :is(#form-legend, #trend-legend) [style*="box-shadow:0 0 0 1.5px #071814"] { box-shadow: 0 0 0 1.5px #e3efe8 !important; }
html[data-theme="dark"] :is(#form-legend, #trend-legend) [style*="border-color:#0f8a4b"] { border-color: #4cc47f !important; }
