:root {
    --navy: #142B60;
    --navy-deep: #0c1d42;
    --blue: #2563B8;
    --blue-soft: #E9F1FA;
    --gold: #D5A52B;
    --page: #F5F7FB;
    --white: #fff;
    --text: #1B2C47;
    --muted: #6F7B8F;
    --line: #E3EAF2;
    --green: #1F875D;
    --danger: #B63C49;
    --shadow: 0 8px 30px rgba(21, 46, 87, .065);
    font-family: 'Segoe UI', Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--page);
    font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--blue); }
input, select, textarea { min-width: 0; }
:focus-visible { outline: 3px solid #73A8ED; outline-offset: 2px; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 252px; flex: 0 0 252px; background: linear-gradient(165deg, var(--navy), var(--navy-deep)); color: #fff; padding: 29px 18px 20px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 12px; padding: 6px 12px 42px; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border: 2px solid var(--gold); border-radius: 13px; font-weight: 900; font-size: 17px; letter-spacing: -.8px; transform: rotate(-3deg); }
.brand-mark span { transform: rotate(3deg); }
.brand strong { display: block; font-size: 24px; letter-spacing: -.7px; line-height: 1; }
.brand em { color: var(--gold); font-style: normal; }
.brand small { display: block; margin-top: 6px; font-size: 9px; font-weight: 700; letter-spacing: 2px; color: #9CB2D6; }
.side-nav { display: grid; gap: 8px; }
.nav-link { border: 0; color: #C6D3E9; background: transparent; padding: 14px 15px; border-radius: 10px; display: flex; align-items: center; text-align: left; gap: 14px; font-size: 14px; font-weight: 600; }
.nav-link span { width: 22px; font-size: 20px; font-weight: 600; text-align: center; }
.nav-link:hover { background: rgba(255,255,255,.09); color: #fff; }
.nav-link.active { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 3px 0 var(--gold); }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 14px; color: #8CA3CB; font-size: 12px; }
.side-foot-dot { background: #6DCAAB; width: 7px; height: 7px; border-radius: 50%; }
.main-shell { flex: 1; min-width: 0; }
.topbar { height: 64px; background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 240px, #F5F7FB 83%, #fff 92%); display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 42px; border-bottom: 1px solid var(--line); }
.top-title { min-width: 0; font-size: 15px; font-weight: 750; color: #fff; display: flex; align-items: center; gap: 12px; }
#topbar-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#back-button { flex: 0 0 auto; background: #fff; color: var(--navy); border-color: #fff; }
.app-logo { display: block; width: 156px; height: auto; flex: 0 0 auto; }
.home-tagline { margin: 0; color: var(--navy); font-size: 25px; font-weight: 800; line-height: 1.15; letter-spacing: -.5px; }
.home-tagline span:last-child { color: var(--gold); }
/* Einheitlicher Verlauf auf jeder Seite; die Startseite tauscht nur Zurück gegen das Motto. */
.topbar-home .home-tagline { color: #fff; }
.topbar-home .top-title, .topbar-home .today-label { display: none; }
.top-actions { display: flex; align-items: center; gap: 20px; margin-left: auto; flex: 0 0 auto; }
.today-label { font-size: 12px; font-weight: 650; color: var(--navy); }
@media (max-width: 1000px) { .topbar .today-label { display: none; } }
.main-content { max-width: 1460px; padding: 38px 42px 56px; margin: 0 auto; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.page-heading h1 { font-size: clamp(25px, 3vw, 32px); margin: 0; letter-spacing: -.9px; font-weight: 800; color: #152849; }
.page-heading p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.eyebrow { color: var(--blue); text-transform: uppercase; font-size: 11px; letter-spacing: 1.8px; font-weight: 850; margin: 0 0 8px; }
.hero { background: linear-gradient(116deg, #142B60, #2456A1); color: #fff; border-radius: 21px; padding: 34px 36px; margin-bottom: 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; overflow: hidden; position: relative; }
.hero::after { content: ''; position: absolute; width: 270px; height: 270px; border: 25px solid rgba(255,255,255,.055); border-radius: 50%; right: 6%; top: -120px; pointer-events: none; }
.hero::before { content: ''; position: absolute; border: 2px solid rgba(255,255,255,.12); width: 180px; height: 240px; border-radius: 50%; right: 13%; bottom: -170px; transform: rotate(-25deg); }
.hero .eyebrow { color: #E8BF55; }
.hero h1 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -1.2px; margin: 0 0 8px; line-height: 1.13; }
.hero p { max-width: 520px; color: #D8E4F7; margin: 0; font-size: 14px; line-height: 1.65; }
.hero > * { position: relative; z-index: 1; }
.hero .button { background: white; color: var(--navy); border-color: white; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { border: 1px solid var(--line); background: white; border-radius: 15px; padding: 23px; box-shadow: var(--shadow); }
.stat-card strong { display: block; font-weight: 850; font-size: 30px; letter-spacing: -1.2px; color: var(--navy); }
.stat-card span { font-size: 12px; font-weight: 650; color: var(--muted); }
.section-card { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 17px; padding: 23px; margin-bottom: 18px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.section-head h2, .section-card h2 { margin: 0; font-size: 17px; letter-spacing: -.3px; }
.section-head p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.button { border: 1px solid #CFDAEA; color: var(--navy); background: white; border-radius: 10px; padding: 11px 16px; font-size: 13px; font-weight: 750; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none; }
.button:hover { border-color: var(--blue); background: #F7FAFE; }
.button:disabled { cursor: not-allowed; opacity: .45; }
.button-primary { background: var(--blue); border-color: var(--blue); color: white; }
.button-primary:hover { background: #1B4F9A; color: white; }
.button-gold { background: var(--gold); color: #172747; border-color: var(--gold); }
.button-small { padding: 8px 12px; font-size: 12px; }
.button-ghost { border-color: transparent; background: transparent; }
.button-danger { color: var(--danger); }
.button-danger:hover { background: #fff2f2; border-color: #F6CBCE; }
.button-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 5px 9px; background: var(--blue-soft); color: #1d4c90; font-size: 11px; font-weight: 750; }
.pill-gold { background: #FCF2D5; color: #84600D; }
.pill-grey { background: #F1F3F6; color: #526177; }
.pill-green { background: #DCF5E9; color: #156645; }
.empty { border: 1px dashed #C6D3E4; background: #F9FBFD; color: var(--muted); padding: 25px; border-radius: 12px; text-align: center; font-size: 13px; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 15px 0; border-top: 1px solid var(--line); }
.list-row:first-child { border-top: 0; padding-top: 3px; }
.list-row strong { display: block; color: #233650; font-size: 14px; }
.list-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.list-row-main { display: flex; align-items: center; gap: 13px; min-width: 0; }
.date-chip { width: 54px; height: 51px; border-radius: 11px; display: grid; place-items: center; background: var(--blue-soft); flex: 0 0 54px; color: var(--navy); }
.date-chip strong { font-size: 19px; line-height: 1; }
.date-chip small { font-size: 10px; font-weight: 800; margin: -5px 0 0; text-transform: uppercase; }
.split { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 18px; }
.tip-card { padding: 22px; border-radius: 16px; background: #EDF4FE; border: 1px solid #D7E7FA; }
.tip-card h3 { margin: 0 0 8px; font-size: 15px; color: var(--navy); }
.tip-card p { font-size: 13px; line-height: 1.65; margin: 0; color: #4C668A; }
.filter-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 750; color: #40526D; font-size: 12px; }
.field input, .field select, .field textarea { width: 100%; color: var(--text); background: #fff; border: 1px solid #CBD6E5; border-radius: 10px; padding: 10px 12px; font-size: 13px; outline: none; }
.field textarea { min-height: 78px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,184,.12); }
.field-compact { min-width: 158px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field-wide { grid-column: 1 / -1; }
.check-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.check-label { display: inline-flex; gap: 7px; align-items: center; border: 1px solid var(--line); padding: 8px 10px; border-radius: 8px; font-size: 12px; }
.calendar-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 18px; }
.calendar-month { display: flex; gap: 9px; align-items: center; }
.calendar-month strong { min-width: 145px; text-align: center; font-size: 15px; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.calendar-weekdays { margin-bottom: 7px; }
.calendar-weekdays span { text-align: center; font-size: 11px; color: var(--muted); font-weight: 800; padding: 8px 0; }
.calendar-cell { position: relative; min-height: 92px; border: 1px solid #E5EBF3; background: #fff; border-radius: 10px; text-align: left; padding: 10px 7px; overflow: hidden; }
.calendar-cell:hover { border-color: #92B7E3; background: #F8FBFF; }
.calendar-cell.muted { background: #F8FAFD; opacity: .5; }
.calendar-cell.selected { background: #F1F6FE; border: 2px solid var(--blue); padding: 9px 6px; }
.calendar-cell.today .cal-day { background: var(--navy); color: white; }
.cal-day { display: inline-grid; place-items: center; min-width: 25px; height: 25px; border-radius: 7px; font-size: 12px; font-weight: 800; }
.cal-entry { display: block; font-size: 10px; color: #1D559C; background: #E1EDFB; font-weight: 750; border-radius: 5px; padding: 5px 4px; margin-top: 7px; line-height: 1.15; overflow-wrap: anywhere; }
.day-side h3 { font-size: 18px; margin: 0 0 5px; }
.day-side .date-sub { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.day-session { border: 1px solid var(--line); padding: 14px; border-radius: 12px; margin: 10px 0; background: #FBFCFE; }
.day-session strong { font-size: 13px; display: block; }
.day-session p { margin: 4px 0 12px; color: var(--muted); font-size: 12px; }
.exercise-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 17px; }
.exercise-card { border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: white; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.exercise-diagram { background: #E5F1EA; padding: 12px; }
.exercise-diagram svg { width: 100%; display: block; height: auto; max-height: 185px; }
.exercise-info { padding: 17px 18px 19px; flex: 1; display: flex; flex-direction: column; }
.exercise-info h3 { font-size: 16px; margin: 10px 0 8px; color: #1B2F50; }
.exercise-info p { font-size: 12px; line-height: 1.55; color: #56677E; margin: 4px 0; }
.exercise-info .button-row { margin-top: auto; padding-top: 14px; }
.exercise-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.progress-track { width: 100%; height: 13px; background: #E8EDF4; border-radius: 20px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #2D65B9, #65A0EF); border-radius: inherit; transition: width .2s; }
.progress-fill.complete { background: var(--green); }
.time-hero { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 11px 20px; }
.time-hero strong { font-size: 23px; color: var(--navy); }
.time-hero .sub { font-size: 12px; color: var(--muted); }
.time-hero .progress-track { grid-column: 1/-1; }
.plan-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.plan-item:first-of-type { border-top: 0; }
.plan-thumb { width: 92px; flex: 0 0 92px; border-radius: 8px; overflow: hidden; background: #E8F4EA; }
.plan-thumb svg { display: block; width: 100%; }
.plan-desc { flex: 1; min-width: 0; }
.plan-desc strong { font-size: 14px; display: block; }
.plan-desc small { font-size: 12px; color: var(--muted); margin-top: 4px; display: block; }
.plan-actions { display: flex; gap: 7px; align-items: center; }
.minute-input { width: 60px; font-size: 13px; border-radius: 8px; border: 1px solid #C8D4E3; padding: 8px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.settings-grid > .section-card:last-child { grid-column: 1 / -1; }
.mini-number { background: var(--blue-soft); color: var(--navy); display: inline-grid; place-items: center; min-width: 35px; height: 35px; border-radius: 10px; font-size: 15px; font-weight: 800; }
.modal-backdrop { background: rgba(7,24,54,.62); position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; }
.modal { background: white; border-radius: 19px; width: min(660px, 100%); max-height: min(92vh, 900px); overflow: auto; box-shadow: 0 30px 100px rgba(0,0,0,.2); }
.modal-header { padding: 24px 27px 15px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-header h2 { margin: 0; font-size: 21px; letter-spacing: -.5px; }
.modal-body { padding: 8px 27px 27px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 24px; }
.icon-button { width: 31px; height: 31px; border: 0; border-radius: 8px; background: #EFF3F8; color: #334C6D; font-size: 18px; }
.info-line { background: #EDF5FF; border-left: 3px solid var(--blue); padding: 12px; font-size: 12px; line-height: 1.5; border-radius: 7px; color: #3D5A7C; }
.helper { color: var(--muted); font-size: 12px; line-height: 1.6; }
.loading-state { display: flex; align-items: center; gap: 12px; color: var(--muted); padding: 60px 0; }
.loader { width: 18px; height: 18px; border: 3px solid #CBD9EB; border-top-color: var(--blue); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-state { background: #FFF2F2; color: #842B36; border: 1px solid #F1C2C8; border-radius: 12px; padding: 18px; font-size: 14px; line-height: 1.6; }
#toast-root { position: fixed; bottom: 24px; right: 24px; z-index: 40; }
.toast { padding: 13px 18px; border-radius: 11px; background: #17325F; color: white; font-size: 13px; box-shadow: 0 12px 30px #142B6050; max-width: 340px; }
.toast.error { background: #933B45; }
.mobile-nav { display: none; }
@media (max-width: 1100px) {
    .sidebar { width: 215px; flex-basis: 215px; }
    .topbar { padding: 0 24px; }
    .main-content { padding: 28px 24px 54px; }
    .calendar-layout { grid-template-columns: 1fr; }
    .calendar-cell { min-height: 80px; }
}
@media (max-width: 760px) {
    .sidebar { display: none; }
    .topbar { height: 65px; padding: 0 16px; }
    .top-title { font-size: 16px; }
    .today-label { display: none; }
    .main-content { padding: 20px 15px 103px; }
    .mobile-nav { display: grid; position: fixed; bottom: 0; left: 0; right: 0; grid-template-columns: repeat(4, 1fr); padding: 8px 5px max(8px, env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); z-index: 10; box-shadow: 0 -7px 28px rgba(29,50,84,.06); }
    .mobile-nav button { border: 0; border-radius: 8px; background: white; color: #66758B; font-size: 11px; font-weight: 700; padding: 12px 2px; }
    .mobile-nav button.active { color: var(--blue); background: #EAF3FF; }
    .hero { padding: 26px 24px; align-items: flex-start; flex-direction: column; }
    .stats { gap: 8px; }
    .stat-card { padding: 15px 10px; }
    .stat-card strong { font-size: 23px; }
    .stat-card span { font-size: 10px; }
    .split, .settings-grid { grid-template-columns: 1fr; }
    .settings-grid > .section-card:last-child { grid-column: auto; }
    .section-card { padding: 17px; }
    .page-heading { align-items: flex-start; }
    .calendar-weekdays, .calendar-grid { gap: 3px; }
    .calendar-cell { min-height: 56px; padding: 5px 2px; border-radius: 7px; }
    .calendar-cell.selected { padding: 4px 1px; }
    .cal-day { font-size: 11px; min-width: 21px; height: 21px; }
    .cal-entry { margin-top: 3px; padding: 3px 1px; font-size: 8px; text-align: center; }
    .field-grid { grid-template-columns: 1fr; }
    .modal-backdrop { padding: 10px; align-items: end; }
    .modal { border-radius: 20px 20px 10px 10px; max-height: 92vh; }
    .modal-header { padding: 20px 20px 13px; }
    .modal-body { padding: 8px 20px 22px; }
    .plan-thumb { width: 82px; flex: 0 0 82px; display: block; }
    .plan-actions { flex-direction: column; }
    .time-hero strong { font-size: 19px; }
    #toast-root { bottom: 88px; left: 15px; right: 15px; }
}

.exercise-progression { font-size: 12px; margin-top: 7px; color: var(--muted); }
.indoor-control { margin:14px 0;padding-top:12px;border-top:1px solid var(--line); }
.indoor-control select { width:100%;min-height:48px;font-size:16px; }
.indoor-chooser-filter { margin:8px 0 14px; }
.indoor-chooser-filter summary { cursor:pointer;min-height:48px;padding:12px 0;font-weight:650; }
.practice-badges { display:inline-flex;flex-wrap:wrap;gap:5px; }
.practice-row { display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px; }
.practice-row > div { min-width:0;flex:1 1 240px; }
.practice-row h2 { font-size:18px;margin:0 0 6px;overflow-wrap:anywhere; }
.practice-row p { font-size:14px;margin:0;line-height:1.5;color:var(--muted); }
.practice-row details { flex-basis:100%; }
.practice-row summary { cursor:pointer;min-height:48px;padding:12px 0; }
.practice-row li { padding:5px 0;overflow-wrap:anywhere; }
.practice-mastery { min-height:48px;white-space:normal; }
.practice-mastery[aria-pressed=true] { color:#155331;background:#E9F5ED;border-color:#267A50; }
.practice-choices { display:grid;gap:8px;margin:16px 0; }
.practice-choice { display:flex;align-items:center;gap:12px;min-height:48px;padding:10px;border:1px solid var(--line);border-radius:10px; }
.practice-choice input { width:24px;height:24px;flex:0 0 24px;accent-color:var(--navy); }
.practice-choice span { overflow-wrap:anywhere; }

#exercise-search { min-width: 140px; max-width: 210px; }

[hidden] { display: none !important; }
.simple-shell .main-shell { width: 100%; }
.simple-shell .main-content { max-width: 1180px; padding-bottom: 28px; }
.offline-status { text-align: center; padding: 12px 16px; color: var(--muted); font-size: 13px; }
.offline-status:empty { display: none; }
@media (max-width: 760px) {
    .simple-shell .topbar { min-height: 64px; height: auto; padding: 3px 12px; gap: 12px; flex-wrap: nowrap; background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 96px, #F5F7FB 76%, #fff 86%); }
    .simple-shell .top-title { flex-wrap: nowrap; }
    .simple-shell .app-logo { width: 142.5px; }
    .home-tagline { min-width: 0; font-size: clamp(18px, 5vw, 20px); }
    .home-tagline span { display: block; white-space: nowrap; }
    .simple-shell .topbar:has(#back-button:not([hidden])) .app-logo { max-width: calc(100vw - 164px); }
    /* Die Seitenüberschrift steht direkt im Inhalt; Logo und Zurück bleiben einzeilig. */
    .simple-shell #topbar-title { display: none; }
    .simple-shell .main-content { padding: 20px 14px 28px; }
    .simple-shell .page-heading { flex-direction: column; align-items: stretch; gap: 12px; }
    .simple-shell .button, .simple-shell .icon-button { min-height: 48px; min-width: 48px; font-size: 15px; }
    .simple-shell .field input, .simple-shell .field select, .simple-shell .field textarea { font-size: 16px; min-height: 48px; }
    .simple-shell .field label { font-size: 14px; }
    .simple-shell .plan-desc strong { font-size: 17px; }
    .simple-shell .plan-desc small, .simple-shell .exercise-info p { font-size: 16px; line-height: 1.5; }
    .simple-shell .plan-item { align-items: flex-start; }
    .simple-shell .plan-thumb { flex-basis: 100%; width: 100%; max-width: 280px; }
    .simple-shell .plan-desc { flex-basis: 100%; }
    .simple-shell .minute-input { font-size: 16px; min-height: 48px; }
    .simple-shell .section-head { flex-wrap: wrap; }
    .simple-shell .list-row { flex-wrap: wrap; }
    .simple-shell .list-row .button { margin-left: auto; }
    .simple-shell #exercise-search { max-width: none; }
    #toast-root { bottom: 16px; }
}

.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 22px 0; }
.module-card { text-align: left; display: grid; gap: 9px; border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: white; color: var(--navy); }
.module-card strong { font-size: 20px; }
.module-card span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.module-card:hover { border-color: var(--blue); }
.dashboard-intro { margin: 0 0 24px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.dashboard-intro p { margin: 0 0 12px; }
.plan-order { display: flex; gap: 4px; }
.print-review-card .field { margin-top: 14px; }
.print-review-card h2 { line-height: 1.5; }
.print-review-diagram { max-width: 320px; margin: 18px auto; }
.print-review-diagram svg { display: block; width: 100%; }
.print-check { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; font-size: 16px; line-height: 1.5; }
.print-check input { width: 24px; height: 24px; flex-shrink: 0; margin-top: 1px; accent-color: var(--blue); }
.print-options .button-row { margin-top: 16px; }
.paper-preview-frame { width: 100%; height: 850px; border: 1px solid var(--line); margin-top: 16px; background: white; }
.print-frame { position: fixed; top: 0; left: -10000px; width: 794px; height: 1123px; border: 0; }
.plan-order button { min-width: 44px; min-height: 44px; }
@media (max-width: 760px) {
    .module-grid { grid-template-columns: 1fr; gap: 10px; }
    .module-card { padding: 20px; }
    .plan-item { flex-wrap: wrap; }
    .plan-desc { min-width: 0; }
    .plan-actions { width: 100%; flex-direction: row; justify-content: flex-end; align-items: end; flex-wrap: wrap; }
    .plan-actions .field { margin-right: auto; }
}

/* Dateiauswahl und lange Sicherungsnamen bleiben auch bei 320 px bedienbar. */
.backup-panel input[type="file"] { display: block; width: 100%; min-width: 0; max-width: 100%; font: inherit; }
.backup-panel input[type="file"]::file-selector-button { min-height: 48px; max-width: 100%; margin: 8px 8px 8px 0; font: inherit; }
.backup-panel summary { min-height: 48px; padding: 12px 0; cursor: pointer; }
.backup-panel p { overflow-wrap: anywhere; }
.backup-panel .print-check input { flex: 0 0 24px; }
.backup-panel .button { max-width: 100%; white-space: normal; }
@media (max-width: 760px) {
    [data-form="copy_session"] .field input, [data-form="copy_session"] .field select { min-height: 48px; font-size: 16px; }
    [data-form="copy_session"] .helper { font-size: 16px; line-height: 1.5; }
    [data-form="copy_session"] .modal-actions .button { min-height: 48px; }
}

.guide-page { max-width: 780px; margin: 0 auto; }
.guide-page p, .guide-page li { font-size: 16px; line-height: 1.6; }
.guide-chapter summary { min-height: 48px; padding: 10px 0; font-size: 18px; font-weight: 750; color: var(--navy); cursor: pointer; }
.guide-chapter ol { padding-left: 24px; }
.guide-chapter li + li { margin-top: 12px; }
.guide-page .button { min-height: 48px; max-width: 100%; white-space: normal; }

.chooser-diagram { width: 82px; flex: 0 0 82px; }
.chooser-diagram svg { width: 100%; display: block; height: auto; }
.chooser-description { min-width: 0; overflow-wrap: anywhere; }
.chooser-actions { justify-content: flex-end; flex: 0 0 auto; }
.chooser-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.chooser-filters .field:last-child { grid-column: 1 / -1; }
.exercise-info { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) {
    .exercise-grid { grid-template-columns: minmax(0, 1fr); }
    .exercise-info h3 { font-size: 19px; }
    .exercise-meta .pill { font-size: 14px; white-space: normal; }
    .exercise-chooser .helper, .exercise-chooser .list-row-main small { font-size: 16px; line-height: 1.5; }
    .exercise-chooser .list-row-main strong { font-size: 17px; }
    .exercise-chooser .field label { font-size: 14px; }
    .exercise-chooser .field input, .exercise-chooser .field select { font-size: 16px; min-height: 48px; }
    .exercise-chooser .button, #modal-root .modal-header .icon-button { min-width: 48px; min-height: 48px; font-size: 16px; }
    .chooser-item, .chooser-item .list-row-main { display: flex; flex-direction: column; align-items: stretch; width: 100%; }
    .chooser-item { gap: 14px; padding: 20px 0; }
    .chooser-diagram { width: 100%; max-width: 280px; flex: none; align-self: center; }
    .chooser-actions { width: 100%; justify-content: space-between; }
    .chooser-filters { grid-template-columns: minmax(0, 1fr); }
}

.phase-warmup { background: #fbefca; color: #674900; }
.phase-main { background: #dcefe3; color: #155331; }
.phase-finish { background: #e4eafa; color: #142b60; }
.phase-cooldown { background: #142b60; color: #fff; }
.catalog-notice { font-size: 15px; line-height: 1.5; color: var(--muted); }
.catalog-notes summary { min-height: 48px; padding: 12px 0; cursor: pointer; font-weight: 700; }
.catalog-notes p, .catalog-safety { font-size: 14px; line-height: 1.5; }
.sequence-preview, .plan-desc small { white-space: pre-line; overflow-wrap: anywhere; }
.sequence-controls { width: 100%; }
.chooser-description > .pill { margin: 4px 4px 8px 0; }
.chooser-description > strong { display: block; }
.sequence-controls .button { white-space: normal; }
@media (max-width: 760px) {
    .catalog-notes p, .catalog-safety, .sequence-controls p { font-size: 16px; }
}
.phase-unassigned { background: #edf0f5; color: #42526a; }

.review-tools summary { min-height: 48px; padding: 12px 0; cursor: pointer; font-weight: 750; }
.review-tools p, .review-form p { font-size: 16px; line-height: 1.5; }
.review-tools .field { max-width: 320px; }
.review-form .field { margin-top: 16px; }
@media (max-width: 760px) {
    .review-form .field input, .review-form .field select, .review-form .field textarea { font-size: 16px; min-height: 48px; }
    .review-form .button { min-height: 48px; }
    .review-tools .field { max-width: 100%; }
}

.favorite-filter { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 0; font-size: 16px; line-height: 1.4; cursor: pointer; }
.favorite-filter input { width: 24px; height: 24px; flex: 0 0 24px; accent-color: var(--blue); }
.favorite-toggle[aria-pressed="true"] { background: #e9f1fa; border-color: var(--blue); color: var(--navy); }

.finder-primary-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }
.finder-result-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.finder-extra { border-top: 1px solid var(--line); margin-top: 4px; }
.finder-extra > summary { min-height: 48px; padding: 14px 0; font-size: 15px; font-weight: 700; color: var(--navy); cursor: pointer; overflow-wrap: anywhere; }
.finder-extra > summary small { display: block; margin: 6px 0 0 16px; font-size: 14px; font-weight: 500; }
.finder-extra .review-tools { box-shadow: none; margin: 16px 0 0; padding: 12px; }
.finder-extra .filter-row { align-items: end; margin-top: 8px; }
@media (max-width: 760px) {
    .finder-primary-grid { grid-template-columns: minmax(0, 1fr); }
    .finder-extra .field-compact { min-width: 0; width: 100%; }
    .finder-extra > summary { font-size: 16px; }
}
.finder-primary-grid #exercise-search { max-width: none; }

.plan-desc > .pill { display: inline-block; margin-bottom: 8px; }
.plan-phase-warmup { border-left: 4px solid #d5a52b; padding-left: 12px; }
.plan-phase-main { border-left: 4px solid #267a50; padding-left: 12px; }
.plan-phase-finish { border-left: 4px solid #142b60; padding-left: 12px; }
.plan-phase-cooldown { border-left: 4px solid #142b60; padding-left: 12px; }
.plan-phase-unassigned { border-left: 4px solid #cbd6e5; padding-left: 12px; }

/* Dialoge liegen außerhalb der einfachen App-Shell und brauchen dieselben mobilen Bediengrößen. */
@media (max-width: 760px) {
    .modal .field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .modal .field select, .modal .field textarea { min-height: 48px; min-width: 0; font-size: 16px; }
    .modal .field label { font-size: 15px; }
    .modal .button, .modal .icon-button { min-width: 48px; min-height: 48px; max-width: 100%; white-space: normal; font-size: 16px; }
    .modal .helper, .modal .info-line, .modal .check-label { font-size: 16px; line-height: 1.5; }
    .modal .check-label { min-height: 48px; }
    .modal .check-label input { width: 24px; height: 24px; min-height: 24px; flex: 0 0 24px; }
    .modal .modal-actions { flex-wrap: wrap; }
    .modal .field-grid > * { min-width: 0; }
    .modal-header { position: sticky; top: 0; z-index: 1; background: white; }
}

.calendar-mobile { display: none; }
.calendar-agenda-day { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px; margin: 8px 0; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--navy); text-align: left; font-size: 16px; }
.calendar-agenda-day[aria-pressed="true"] { border-color: var(--blue); background: #e9f1fa; }
.calendar-agenda-day span { color: var(--muted); }
@media (max-width: 600px) {
    .calendar-desktop-grid { display: none; }
    .calendar-mobile { display: block; }
    .calendar-mobile h3 { font-size: 17px; margin: 18px 0 10px; }
    .calendar-mobile p { font-size: 16px; line-height: 1.5; }
    .calendar-mobile input[type="date"] { width: 100%; min-width: 0; min-height: 48px; font-size: 16px; }
    .calendar-month { width: 100%; justify-content: space-between; }
    .calendar-month strong { min-width: 0; flex: 1; white-space: normal; }
    .calendar-month .button { flex: 0 0 48px; }
    .day-session strong, .day-session p, .day-side .date-sub { font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
    .day-side .button-row { flex-wrap: wrap; }
    .day-side .button { white-space: normal; }
}
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.team-card { min-width: 0; overflow-wrap: anywhere; }
.team-card .button-row { flex-wrap: wrap; }
.team-card .button { min-height: 48px; font-size: 16px; white-space: normal; }
.team-entry { margin: 12px 0; }

.lineup-workspace { max-width:640px;margin:0 auto; }
.lineup-heading { display:flex;align-items:center;gap:12px;margin-bottom:10px; }
.lineup-heading h1 { flex:1;min-width:0;margin:0;font-size:22px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.lineup-heading .button { flex-shrink:0; }
.lineup-tactics { margin-bottom:12px; }
.lineup-tactics-row { display:flex;gap:8px; }
.lineup-tactics-row select { min-width:0;flex:1; }
.lineup-tactics-row .button { flex-shrink:0; }
.lineup-pitch { position:relative;height:490px;background:repeating-linear-gradient(0deg,#24683d 0 55px,#2a7344 55px 110px);border:3px solid white;outline:2px solid #24683d;border-radius:8px; }
.lineup-pitch::before { content:'';position:absolute;left:0;right:0;top:50%;border-top:2px solid #ffffff99; }
.pitch-markings { position:absolute;inset:0;pointer-events:none;color:#ffffffe0; }
.pitch-markings span { position:absolute;display:block; }
.pitch-centre { width:23%;aspect-ratio:1;border:2px solid currentColor;border-radius:50%;left:50%;top:50%;transform:translate(-50%,-50%); }
.pitch-spot { width:5px;height:5px;background:currentColor;border-radius:50%;left:50%;top:50%;transform:translate(-50%,-50%); }
.pitch-area { width:62%;height:19%;left:19%;border:2px solid currentColor; }
.pitch-area-top { top:0;border-top:0; }
.pitch-area-bottom { bottom:0;border-bottom:0; }
.pitch-goalbox { width:32%;height:8%;left:34%;border:2px solid currentColor; }
.pitch-goalbox-top { top:0;border-top:0; }
.pitch-goalbox-bottom { bottom:0;border-bottom:0; }
.pitch-goal { width:22%;height:10px;left:39%;border:2px solid #fff;background:repeating-linear-gradient(90deg,#fff4 0 1px,transparent 1px 7px),repeating-linear-gradient(0deg,#fff4 0 1px,transparent 1px 5px); }
.pitch-goal-top { top:-7px; }
.pitch-goal-bottom { bottom:-7px; }
.lineup-token { position:absolute;transform:translate(-50%,-50%);width:54px;height:60px;min-width:48px;padding:0;border:0;background:transparent;color:var(--kit-ink);cursor:pointer; }
.kit-svg { position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;filter:drop-shadow(0 1px 1px #0008); }
.kit-svg path { fill:var(--kit-fill);stroke:#fff;stroke-width:1.5;stroke-linejoin:round; }
.kit-number { position:absolute;left:11px;right:11px;top:24px;line-height:20px;font-size:16px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none; }
.lineup-token small { position:absolute;top:43px;left:0;right:0;font-size:10px;pointer-events:none; }
.lineup-token[aria-pressed=true],.lineup-sub[aria-pressed=true] { outline:3px solid #D5A52B;outline-offset:3px;border-radius:6px; }
.lineup-bench { margin-top:14px; }
.lineup-bench h2 { font-size:18px;margin:0 0 8px; }
.lineup-bank { display:flex;flex-wrap:wrap;gap:12px; }
.lineup-sub { display:flex;flex-direction:column;align-items:center;width:78px;min-height:88px;border:0;background:transparent;cursor:pointer;padding:0;color:var(--text); }
.kit-body { position:relative;display:block;width:54px;height:60px;color:var(--kit-ink); }
.kit-name { max-width:78px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.lineup-moves { flex-wrap:wrap;margin:12px 0; }
.lineup-moves .button { min-width:48px;min-height:48px;font-size:16px; }
.lineup-help { margin-top:14px; }
.lineup-help summary { cursor:pointer;min-height:48px;padding:12px 0; }
.lineup-status { font-size:13px;color:var(--muted); }
@media(max-width:760px) { .lineup-pitch { height:clamp(300px,48svh,420px); } .lineup-heading h1 { font-size:18px; } .simple-shell .lineup-workspace .lineup-heading .button { min-height:48px; } }

.team-swatch { display:inline-block;width:24px;height:24px;border:1px solid #64748b;border-radius:50%;vertical-align:middle; }
.field input[type="color"] { min-height:48px;max-width:160px;padding:5px;cursor:pointer; }

.home-modules { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px; }
.home-module { --module-accent:#142B60;display:flex;flex-direction:column;gap:10px;padding:20px;text-align:left;border:1px solid #dce3ed;border-top:4px solid var(--module-accent);border-radius:16px;background:white;color:var(--navy);min-width:0;box-shadow:0 6px 18px #142B6007;transition:transform .15s,box-shadow .15s; }
.home-module-gold { --module-accent:#B68713; }
.home-module-green { --module-accent:#237142; }
.home-module-blue { --module-accent:#2563B8; }
.home-module-top { display:flex;justify-content:space-between;align-items:center;gap:6px;color:var(--module-accent); }
.home-module-top svg { width:48px;height:48px;flex-shrink:0; }
.home-module-preview { display:none; }
@media(min-width:801px) {
    .home-module-preview { display:flex;width:100%;height:116px;align-items:center;justify-content:center;border-radius:10px;overflow:hidden;background:#F0F4FA; }
    .home-module-preview > svg { display:block;width:100%;height:100%;max-height:116px;object-fit:contain; }
}
.home-module-state { font-size:12px;font-weight:700; }
.home-module strong { font-size:19px;line-height:1.25;overflow-wrap:anywhere; }
.home-module-hint { color:#576479;font-size:14px;line-height:1.45; }
.home-module:not(:disabled):hover { transform:translateY(-2px);box-shadow:0 8px 20px #142B6015; }
.home-module:disabled { --module-accent:#8993a3;background:#edf0f4;color:#667182;border-color:#d8dee7;cursor:default;box-shadow:none; }
.home-module:disabled .home-module-state { background:#dfe4eb;border-radius:12px;padding:3px 7px;color:#596577; }
.home-module:disabled .home-module-hint { color:#667182; }
.lineup-token { touch-action:none;user-select:none;cursor:grab; }
.lineup-token.is-dragging { cursor:grabbing;z-index:5;filter:drop-shadow(0 5px 4px #0005); }
@media(max-width:1000px) { .home-modules { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .home-modules { gap:10px; } .home-module { padding:14px;gap:8px;min-height:154px; } .home-module strong { font-size:17px; } .home-module-hint { font-size:14px; } .home-module-state { font-size:10px; } .home-module-top svg { width:36px;height:36px; } }
.test-notice { display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 16px;color:var(--navy);font-size:14px;line-height:1.5; }

.exercise-card-title { margin:0;padding:16px 18px;font-size:19px;line-height:1.3;color:var(--navy);overflow-wrap:anywhere; }
.exercise-instructions { margin-top:10px; }
.exercise-instructions > summary { min-height:48px;display:list-item;cursor:pointer;padding:12px 0;font-size:16px;font-weight:700;color:var(--navy); }
.exercise-instructions .button-row { flex-wrap:wrap; }
.exercise-instructions[open] > summary { margin-bottom:8px;border-bottom:1px solid var(--line); }

.calendar-actions { flex-wrap:wrap; }

/* Eigenständiger Taktikplaner: Feld und Werkzeugwahl bleiben vor den Zusatzoptionen. */
.tactic-workspace { max-width:1000px;margin:auto; }
.exercise-editor { max-width:740px;margin:auto; }
.exercise-editor h1 { font-size:24px; }
.editor-tabs { display:flex;gap:8px;margin:12px 0; }
.editor-tabs .button { flex:1;min-height:48px; }
.editor-tabs .button[aria-pressed=true] { background:var(--navy);color:white; }
.exercise-editor input,.exercise-editor select { min-height:48px;font-size:16px;min-width:0;width:100%; }
.exercise-editor textarea { font-size:16px;min-height:100px; }
.exercise-editor .field { margin-bottom:10px; }
.exercise-editor .field > span { display:block;font-size:14px;font-weight:650;margin-bottom:5px; }
.exercise-editor summary { cursor:pointer;min-height:48px;padding:12px 0;font-weight:650; }
.sketch-area-options { display:grid;grid-template-columns:minmax(120px,1.5fr) repeat(2,minmax(60px,1fr));gap:8px; }
.exercise-sketch-pitch { position:relative;width:min(100%,520px,calc(48svh * var(--sketch-ratio)));aspect-ratio:var(--sketch-ratio);margin:0 auto;background:#267A50;border-radius:10px;touch-action:manipulation; }
.exercise-sketch-pitch > svg { position:absolute;inset:0;width:100%;height:100%; }
.sketch-piece svg { width:42px;height:44px; }
.sketch-add { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:10px 0; }
.sketch-add .button { min-height:48px;padding:8px 4px;font-size:14px; }
.editor-standard > svg { display:block;width:100%;max-width:440px;margin:auto; }
@media(max-width:600px) { .exercise-editor h1 { font-size:21px; } .exercise-editor .field-grid { grid-template-columns:1fr 1fr; } }
.tactic-layout { display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,320px);gap:24px;align-items:start; }
.tactic-setup { display:grid;grid-template-columns:96px minmax(100px,1fr) auto;gap:8px;align-items:end;margin-bottom:10px; }
.tactic-setup .field { margin:0;min-width:0; }
.tactic-setup .field label { font-size:14px; }
.tactic-setup .field select { width:100%;min-height:48px;font-size:16px; }
.tactic-setup > .button { min-height:48px; }
@media (max-width:379px) { .tactic-setup { grid-template-columns:90px minmax(0,1fr); } .tactic-setup > .button { grid-column:1 / -1;justify-self:end; } }
.tactic-board { min-width:0; }
.tactic-formation { margin-bottom:10px; }
.tactic-formation select { width:100%; }
.tactic-modes { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:10px 0; }
.tactic-modes .button { padding:8px 3px;min-width:0;min-height:48px;font-size:13px; }
.tactic-modes .button[aria-pressed=true] { background:var(--navy);color:white;border-color:var(--navy); }
.tactic-modes.has-number { grid-template-columns:repeat(4,minmax(0,1fr)) 64px; }
.tactic-modes.has-number .button { font-size:12px; }
.tactic-number-control { position:relative;min-width:0; }
.tactic-number-control > span { position:absolute;left:5px;top:18px;font-size:10px;pointer-events:none;color:var(--muted); }
.tactic-number-control select { width:100%;height:48px;min-height:48px;padding:6px 2px 6px 20px;font-size:16px;border-color:var(--gold); }
.tactic-pitch { position:relative;width:min(100%,340px,calc(52svh * .7142857));aspect-ratio:5 / 7;margin:0 auto;border-radius:10px;background:#267A50;touch-action:manipulation; }
.tactic-pitch > svg { position:absolute;inset:0;width:100%;height:100%;border-radius:10px; }
.tactic-pitch > svg[data-tactic-orientation=landscape] { display:none; }
.tactic-pitch .tactic-piece,.tactic-pitch .tactic-anchor { left:calc(var(--tactic-x) * 1%);top:calc(var(--tactic-y) * 1%); }
@media(min-width:801px) {
 .tactic-pitch { width:min(100%,900px,calc(56svh * 1.4));aspect-ratio:7 / 5; }
 .tactic-pitch > svg[data-tactic-orientation=portrait] { display:none; }
 .tactic-pitch > svg[data-tactic-orientation=landscape] { display:block; }
 .tactic-pitch .tactic-piece,.tactic-pitch .tactic-anchor { left:calc((100 - var(--tactic-y)) * 1%);top:calc(var(--tactic-x) * 1%); }
}
.tactic-piece { position:absolute;transform:translate(-50%,-50%);width:44px;height:48px;border:0;background:transparent;padding:0;touch-action:none;z-index:2;display:grid;place-items:center; }
.tactic-piece > svg { pointer-events:none; }
.tactic-piece .kit-number { left:6px;right:6px;top:17px;font-size:14px;line-height:18px;color:white; }
.tactic-piece.tactic-two-digits .kit-number { font-size:12px; }
.tactic-ball > svg { width:32px;height:34px; }
.tactic-piece[aria-pressed=true] { outline:3px solid var(--gold);outline-offset:1px;border-radius:8px; }
.tactic-pitch-hint { position:absolute;left:50%;top:4px;transform:translateX(-50%);background:#142B60e8;color:white;padding:5px 9px;border-radius:12px;font-size:12px;white-space:nowrap;pointer-events:none;z-index:3; }
.tactic-anchor { position:absolute;width:12px;height:12px;border:3px solid var(--gold);border-radius:50%;transform:translate(-50%,-50%);pointer-events:none;z-index:3; }
.tactic-arrow-hit { pointer-events:stroke;cursor:pointer; }
.tactic-opponents { display:flex;gap:10px;align-items:center;min-height:48px;margin-top:5px;font-size:15px; }
.tactic-opponents input { width:24px;height:24px;accent-color:var(--navy); }
.tactic-history { margin-top:8px; }
.tactic-history .button { min-height:48px; }
.tactic-moves { justify-content:center;margin:5px 0; }
.tactic-moves .button { min-width:48px;min-height:48px; }
.tactic-status,.tactic-local-hint { font-size:13px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere; }
.tactic-library h2 { font-size:18px;margin:0 0 12px; }
.tactic-saved-row { border-top:1px solid var(--line);padding:12px 0;display:grid;gap:8px; }
.tactic-saved-row strong { overflow-wrap:anywhere; }
.tactic-workspace summary { cursor:pointer;min-height:48px;padding:12px 0;font-weight:650; }
.tactic-path-row { display:flex;justify-content:space-between;align-items:center;gap:8px;padding:5px 0; }
@media(max-width:800px) {
 .tactic-layout { grid-template-columns:1fr;gap:16px; }
 .tactic-workspace .lineup-heading h1 { font-size:19px; }
 .tactic-library { margin-top:4px; }
 .tactic-history .button { font-size:13px; }
}

/* Gemeinsamer Kalender: Terminart auch ohne Farbe erkennbar. */
.calendar-controls { display:block; }
.calendar-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:16px; }
.calendar-filters .field { margin:0; min-width:0; }
.calendar-filters select { width:100%; min-width:0; max-width:100%; }
.calendar-kind { display:inline-flex; border-radius:5px; padding:2px 5px; font-size:11px; font-weight:750; line-height:1.4; }
.calendar-kind-training { color:#1e6242; background:#edf7f1; }
.calendar-kind-match { color:#142B60; background:#eef2fa; }
.calendar-kind-tournament { color:#735300; background:#fbf3dc; }
.calendar-day-kinds { display:flex; gap:3px; flex-wrap:wrap; margin-top:4px; }
.calendar-agenda-summary { display:flex; flex-direction:column; align-items:flex-end; flex:0 1 auto; }
.calendar-agenda-day > strong { min-width:0; }
.calendar-agenda-day .calendar-kind-training { color:#1e6242; }
.calendar-agenda-day .calendar-kind-match { color:#142B60; }
.calendar-agenda-day .calendar-kind-tournament { color:#735300; }
.calendar-appointment { overflow-wrap:anywhere; }
.calendar-appointment > strong { display:block; margin-top:6px; }
.calendar-day-actions { flex-wrap:wrap; margin-top:16px; }

.calendar-kind-other { color:#495365; background:#edf0f5; }
.calendar-agenda-day .calendar-kind-other { color:#495365; }
.calendar-cancelled { margin-top:20px; }
.calendar-cancelled summary { cursor:pointer; font-weight:750; min-height:48px; padding:12px 0; }

.app-footer { padding:0 16px 12px; text-align:center; }
.footer-link { min-height:48px; padding:10px 12px; border:0; background:transparent; color:var(--navy); font-size:16px; font-weight:650; text-decoration:underline; text-underline-offset:3px; border-radius:6px; }
.footer-link:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
.legal-page { max-width:780px; margin:0 auto; }
.legal-page h1 { overflow-wrap:anywhere; }
.legal-draft { background:#fbf3dc; color:var(--navy); border-left:4px solid var(--gold); padding:16px; border-radius:10px; margin-bottom:20px; font-size:16px; }
.legal-draft p { margin:6px 0 0; line-height:1.6; }
.legal-details { margin:0; font-size:16px; line-height:1.7; overflow-wrap:anywhere; }
.legal-details dt { font-weight:750; color:var(--navy); }
.legal-details dd { margin:4px 0 24px; }
.legal-details dd:last-child { margin-bottom:0; }
.legal-placeholder { color:var(--muted); }

.calendar-export-kinds { border:1px solid var(--line); border-radius:10px; padding:12px; margin:8px 0 16px; display:flex; flex-wrap:wrap; gap:8px 16px; }
.calendar-export-kinds legend { font-size:16px; font-weight:750; }
#calendar-export-form .print-check { display:flex; align-items:center; gap:10px; min-height:48px; font-size:16px; line-height:1.5; margin:0; }
#calendar-export-form .print-check input { width:24px; height:24px; flex:0 0 24px; }
.calendar-export-options summary, .calendar-export-preview summary { min-height:48px; padding:12px 0; cursor:pointer; font-weight:750; font-size:16px; }
.calendar-export-preview { margin-top:18px; border-top:1px solid var(--line); padding-top:16px; }
.calendar-export-preview ol { padding-left:24px; }
.calendar-export-preview li { padding:12px 0; border-bottom:1px solid var(--line); overflow-wrap:anywhere; font-size:16px; }
.calendar-export-preview li strong { white-space:pre-line; }
.calendar-export-preview li p { margin:6px 0; line-height:1.6; }
#calendar-export-form .button { white-space:normal; }

.phase-summary { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
