.ttp-shell{padding:48px 20px;min-height:60vh}.ttp-wrap{max-width:1100px;margin:auto}.ttp-form{display:grid;gap:16px;max-width:620px}.ttp-form label{display:grid;gap:6px;font-weight:700}.ttp-form input{padding:13px;border:1px solid #ccd2d8;border-radius:10px;font:inherit}.ttp-check{grid-template-columns:auto 1fr!important}.ttp-btn{display:inline-block;width:max-content;padding:12px 18px;border:0;border-radius:10px;background:#d8ff35;color:#07182b;font-weight:800;text-decoration:none}.ttp-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.ttp-card{padding:22px;border:1px solid #e1e5e8;border-radius:18px;background:#fff}@media(max-width:800px){.ttp-grid{grid-template-columns:1fr}}.ttp-inline-action{display:inline-block;margin:12px 0}.ttp-tournament-list{display:grid;gap:12px}.ttp-tournament{padding:15px;border:1px solid #e1e5e8;border-radius:14px}

.ttp-shell{padding:48px 0}.ttp-wrap{width:min(1120px,calc(100% - 32px));margin:auto}
.ttp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.ttp-card{padding:24px;border:1px solid #dce4e9;border-radius:18px;background:#fff}
.ttp-list{list-style:none;padding:0;margin:0}.ttp-list li{padding:12px 0;border-bottom:1px solid #e7ecef}
.ttp-list li:last-child{border-bottom:0}.ttp-list a{font-weight:800}.ttp-list small{display:block;margin-top:4px;color:#667485}
.ttp-dashboard-head{margin-bottom:22px}.ttp-check{display:flex!important;gap:10px;align-items:flex-start}
.ttp-check input{width:auto!important;min-height:auto!important;margin-top:4px}
@media(max-width:760px){.ttp-grid{grid-template-columns:1fr}}

/* v0.8.0 Mein Tennis dashboard */
.ttp-hero{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;padding:32px;border-radius:24px;background:#071d31;color:#fff;margin-bottom:18px}
.ttp-hero h1{color:#fff;margin:4px 0 8px;font-size:clamp(2rem,5vw,3.6rem)}.ttp-hero p{margin:0;color:#dbe5ed}.ttp-kicker{font-weight:900;letter-spacing:.12em;color:#c7ff24;font-size:.78rem}
.ttp-btn-light{background:#c7ff24!important;color:#071d31!important}.ttp-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:20px}
.ttp-stats div{padding:18px;border:1px solid #dce4e9;border-radius:16px;background:#fff}.ttp-stats strong{display:block;font-size:1.8rem;color:#071d31}.ttp-stats span{font-size:.82rem;color:#667485}
.ttp-card-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}.ttp-card-head h2{margin:0}.ttp-notifications{list-style:none;margin:0;padding:0}.ttp-notifications li{padding:10px 0;border-bottom:1px solid #e7ecef}.ttp-logout{text-align:right}
.ttp-favorite-form{display:inline-block;margin:0}.ttp-favorite-btn{border:1px solid #ccd6dc;border-radius:999px;background:#fff;padding:9px 13px;font-weight:800;cursor:pointer}.ttp-favorite-btn:hover{border-color:#071d31}
@media(max-width:760px){.ttp-hero{align-items:flex-start;flex-direction:column}.ttp-stats{grid-template-columns:repeat(2,1fr)}} 

.ttp-history article{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:14px 0;border-bottom:1px solid #e7ecef}.ttp-history small{display:block;color:#667485;margin-top:4px}.ttp-history article>div:last-child{text-align:right}@media(max-width:600px){.ttp-history article{grid-template-columns:1fr}.ttp-history article>div:last-child{text-align:left}}

/* v0.13 result history */
.ttp-history article b{font-size:1.05rem}.ttp-history article small{line-height:1.35}

.ttp-result-badge{display:inline-block;padding:3px 8px;border-radius:999px;font-size:.72rem;font-weight:900;vertical-align:2px}.ttp-result-badge.is-win{background:#e8f7ed;color:#146c35}.ttp-result-badge.is-loss{background:#fdecec;color:#a32727}

.ttp-results{margin:28px 0 38px}.ttp-result-group{border:1px solid #dfe5e8;border-radius:14px;margin:12px 0;background:#fff;overflow:hidden}.ttp-result-group summary{cursor:pointer;list-style:none;padding:18px 20px;font-weight:800;display:flex;justify-content:space-between;gap:12px}.ttp-result-group summary::-webkit-details-marker{display:none}.ttp-result-group summary:after{content:"⌄";margin-left:auto}.ttp-result-group[open] summary:after{content:"⌃"}.ttp-result-group summary span{font-size:.82em;color:#607080;font-weight:500;margin-left:8px}.ttp-result-scroll{overflow-x:auto}.ttp-result-group table{width:100%;border-collapse:collapse;min-width:480px}.ttp-result-group th,.ttp-result-group td{padding:11px 15px;border-top:1px solid #e8ecee;text-align:left}.ttp-result-group th{background:#f6f8f9}

/* beta24: personal season view */
.ttp-season-filter{margin:0 0 18px}.ttp-season-filter form{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.ttp-season-filter label{font-weight:700}.ttp-season-filter select{border:1px solid #dce4e9;border-radius:10px;padding:11px 13px;background:#fff;min-width:145px}.ttp-dashboard-recent{margin-bottom:20px}.ttp-dashboard-recent .ttp-card-head span{color:#667485;font-size:.88rem}.ttp-dashboard-recent .ttp-history article:last-child{border-bottom:0}

/* beta25: optional DTB-ID; clear status without misleading zero statistics */
.ttp-dtb-prompt{margin-bottom:20px}.ttp-dtb-prompt h2{margin-top:0}.ttp-dtb-prompt p{line-height:1.6;max-width:68ch}.ttp-dtb-info{padding:12px 15px;border-radius:12px;background:#f2f6f8;color:#193349;font-weight:500}.ttp-dtb-prompt .ttp-btn{margin-top:8px}


/* beta26: responsive Mein Tennis, touch targets and keyboard accessibility */
.ttp-shell,.ttp-shell *{box-sizing:border-box}
.ttp-wrap,.ttp-card,.ttp-hero,.ttp-grid,.ttp-history article{min-width:0}
.ttp-card-wide{grid-column:1/-1}
.ttp-shell a,.ttp-shell button,.ttp-shell select{touch-action:manipulation}
.ttp-shell :is(a,button,input,select,summary):focus-visible{outline:3px solid #1769aa;outline-offset:3px}
.ttp-shell :is(.ttp-btn,.ttp-favorite-btn){min-height:44px;display:inline-flex;align-items:center;justify-content:center;max-width:100%;text-align:center}
.ttp-shell :is(input,select,textarea){max-width:100%;font-size:16px}
.ttp-history article{overflow-wrap:anywhere}
.ttp-result-scroll{-webkit-overflow-scrolling:touch}
@media(max-width:760px){
 .ttp-shell{padding:22px 0 36px}
 .ttp-wrap{width:calc(100% - 28px)}
 .ttp-hero{padding:24px 20px;border-radius:18px;gap:18px}
 .ttp-hero h1{font-size:clamp(1.85rem,8vw,2.8rem);line-height:1.12}
 .ttp-hero .ttp-btn{width:100%}
 .ttp-card{padding:18px;border-radius:15px}
 .ttp-card-head{align-items:flex-start;flex-wrap:wrap}
 .ttp-card-head h2{font-size:1.18rem;line-height:1.3}
 .ttp-season-filter form{display:grid;grid-template-columns:1fr 1fr;gap:10px}
 .ttp-season-filter label{grid-column:1/-1}
 .ttp-season-filter select,.ttp-season-filter button{width:100%;min-width:0}
 .ttp-stats{gap:9px}
 .ttp-stats div{padding:14px 12px}
 .ttp-stats strong{font-size:clamp(1.3rem,5vw,1.7rem)}
 .ttp-stats span{font-size:.78rem;line-height:1.35;display:block}
 .ttp-dtb-prompt .ttp-btn{width:100%}
 .ttp-history article{gap:6px;padding:14px 0}
 .ttp-result-group summary{padding:15px 14px;flex-wrap:wrap}
 .ttp-result-group th,.ttp-result-group td{padding:10px}
}
@media(max-width:380px){
 .ttp-wrap{width:calc(100% - 20px)}
 .ttp-card{padding:15px}
 .ttp-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ttp-season-filter form{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){.ttp-shell *{scroll-behavior:auto!important;transition:none!important}}

/* beta27: focused personal dashboard refinements; no theme/header overrides */
.ttp-shell .ttp-stats .ttp-stat-win{border-color:#b8dfc8;background:#f3faf5}
.ttp-shell .ttp-stats .ttp-stat-loss{border-color:#efd0d0;background:#fff7f7}
.ttp-shell .ttp-stat-win strong{color:#16653b}
.ttp-shell .ttp-stat-loss strong{color:#9a3030}
.ttp-shell .ttp-rate-track{height:8px;margin-top:10px;background:#e4eaf0;border-radius:999px;overflow:hidden}
.ttp-shell .ttp-rate-track>span{display:block;height:100%;background:#2d8d5e;border-radius:inherit}
.ttp-shell .ttp-dashboard-recent{border-color:#cad8e1}
@media(max-width:760px){
 .ttp-shell .ttp-hero{padding:20px 18px}
 .ttp-shell .ttp-hero h1{font-size:clamp(1.65rem,7vw,2.3rem)}
 .ttp-shell .ttp-hero p{line-height:1.5}
 .ttp-shell .ttp-stats{margin-bottom:14px}
 .ttp-shell .ttp-dashboard-recent{margin-bottom:16px}
 .ttp-shell .ttp-stats .ttp-stat-rate{display:flex;flex-direction:column;justify-content:center}
}

/* beta28: personal performance, scoped to player dashboard */
.ttp-shell .ttp-performance{margin-bottom:16px}
.ttp-shell .ttp-performance-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}
.ttp-shell .ttp-performance-metrics>div{border:1px solid #dce5eb;border-radius:12px;padding:16px;background:#f8fafb}
.ttp-shell .ttp-performance-metrics strong{display:block;font-size:1.6rem;line-height:1.25;color:#153f58}
.ttp-shell .ttp-performance-metrics span{display:block;font-size:.84rem;margin-top:5px}
.ttp-shell .ttp-stat-note{font-size:.82rem;line-height:1.5;color:#526474}
.ttp-shell .ttp-year-table{width:100%;border-collapse:collapse;min-width:360px}
.ttp-shell .ttp-year-table th,.ttp-shell .ttp-year-table td{padding:10px;text-align:left;border-bottom:1px solid #e0e6eb}
@media(max-width:420px){.ttp-shell .ttp-performance-metrics{grid-template-columns:1fr}}

/* beta30: responsive personal records */
.ttp-record-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.ttp-record-grid>div{padding:16px;border-radius:12px;background:#f3f7f8;display:flex;flex-direction:column;gap:6px}
.ttp-record-grid strong{font-size:1.6rem;line-height:1.2;color:#173a48}
.ttp-record-grid span{font-size:.9rem;line-height:1.4}
@media(max-width:640px){.ttp-record-grid{grid-template-columns:1fr}.ttp-tournament-summary table{min-width:660px}}

/* 1.2.0 RC1: calendar export for bookmarked tournaments */
.ttp-calendar-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.ttp-calendar-link{display:inline-flex;align-items:center;min-height:40px;padding:7px 11px;border:1px solid #cbd7df;border-radius:8px;text-decoration:none;font-size:.9rem;font-weight:700}.ttp-calendar-link:hover,.ttp-calendar-link:focus-visible{border-color:#071d31;text-decoration:underline}

/* Mein Tennis UX 1.3.0 RC1 */
.ttp-shell-dashboard{background:#f5f8fb}.ttp-shell-dashboard .ttp-wrap{max-width:1120px}
.ttp-shell-dashboard .ttp-hero{background:#071d35;color:#fff;border-radius:22px;padding:32px;display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}
.ttp-shell-dashboard .ttp-hero h1{color:#fff;margin:4px 0 8px}.ttp-shell-dashboard .ttp-hero p{color:#dbe8f5;margin:0}.ttp-shell-dashboard .ttp-kicker{color:#d9f67d;letter-spacing:.12em;font-weight:800;font-size:.8rem}
.ttp-shell-dashboard .ttp-quicknav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 28px}
.ttp-shell-dashboard .ttp-quicklink{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid #dce5ed;border-radius:16px;padding:18px;text-decoration:none;color:#102d48;box-shadow:0 3px 14px #071d3508;min-height:86px}
.ttp-shell-dashboard .ttp-quicklink:hover{border-color:#46779e;transform:translateY(-1px)}.ttp-shell-dashboard .ttp-quicklink strong,.ttp-shell-dashboard .ttp-quicklink small{display:block}.ttp-shell-dashboard .ttp-quicklink small{color:#586c7e;font-size:.84rem;margin-top:4px}.ttp-shell-dashboard .ttp-quickicon{background:#edf4f9;border-radius:12px;width:44px;height:44px;display:grid;place-items:center;flex-shrink:0;font-size:1.25rem}.ttp-shell-dashboard .ttp-quickarrow{margin-left:auto;font-size:1.6rem;color:#53718b}.ttp-shell-dashboard .ttp-section-title{font-size:1.4rem;color:#102d48;margin:0 0 14px}
.ttp-shell-dashboard .ttp-advanced{border:1px solid #dce5ed;background:#fff;border-radius:16px;margin:16px 0;overflow:hidden}.ttp-shell-dashboard .ttp-advanced>summary{cursor:pointer;padding:18px 22px;font-weight:800;color:#102d48;list-style-position:inside}.ttp-shell-dashboard .ttp-advanced-content{padding:0 18px 18px}.ttp-shell-dashboard .ttp-advanced-content>.ttp-card{margin:12px 0}.ttp-shell-dashboard .ttp-success{padding:12px 16px;border-radius:10px;background:#e9f7ec;color:#174d29}
@media(max-width:680px){.ttp-shell-dashboard .ttp-hero{padding:22px 18px;align-items:flex-start;flex-direction:column}.ttp-shell-dashboard .ttp-quicknav{grid-template-columns:1fr}.ttp-shell-dashboard .ttp-quicklink{min-height:72px;padding:13px 15px}.ttp-shell-dashboard .ttp-advanced>summary{padding:16px}}
@media(prefers-reduced-motion:reduce){.ttp-shell-dashboard .ttp-quicklink:hover{transform:none}}

/* 1.5.0 RC1 – personal tournament companion */
.ttp-shell-dashboard .ttp-next-event{background:#fff;border:1px solid #dce5ed;border-radius:18px;padding:22px;margin:0 0 26px;box-shadow:0 3px 14px #071d3508}
.ttp-shell-dashboard .ttp-next-event h3{margin:10px 0;font-size:1.25rem}.ttp-shell-dashboard .ttp-next-meta{display:flex;flex-wrap:wrap;gap:10px 18px;color:#41576a}
.ttp-shell-dashboard .ttp-next-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:16px 0 10px}
.ttp-shell-dashboard .ttp-next-event .ttp-stat-note{margin-bottom:0}
@media(max-width:540px){.ttp-shell-dashboard .ttp-next-event{padding:17px}.ttp-shell-dashboard .ttp-next-actions>*{width:100%;justify-content:center;text-align:center}}
