*{box-sizing:border-box}body.mec-dashboard{margin:0;color:#163054;background:#f6f8fb;font-family:Inter,Arial,sans-serif;min-height:100vh}.account-header{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 max(20px,calc((100vw - 1020px)/2));background:#fff;border-bottom:1px solid #e9edf4}.account-brand{display:flex;align-items:center;gap:12px;color:#122c50;text-decoration:none;font-size:18px}.account-brand img{width:36px;height:36px;object-fit:contain}.account-header nav{display:flex;align-items:center;gap:23px}.account-header a{font-size:13px;text-decoration:none;color:#29415f}.mec-main{max-width:820px;margin:0 auto;padding:54px 22px 64px}.account-title>span,.eyebrow{font-size:10px;letter-spacing:.19em;font-weight:800;color:#c34b42}.account-title h1{font-size:clamp(30px,5vw,46px);letter-spacing:-.05em;margin:8px 0}.account-title p,.muted{color:#78869a;font-size:13px}.account-title{margin-bottom:26px}.panel.account-panel{background:#fff;border:1px solid #e8edf4;border-radius:13px;margin:0 0 13px;padding:22px;box-shadow:0 5px 21px #15325606;animation:appear .4s ease both}.account-intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.account-intro h2{margin:4px 0;font-size:23px}.account-intro small{color:#71809a}.switch{display:flex;gap:8px;border-bottom:1px solid #edf0f5;margin-bottom:18px}.switch button,.quiet-button{cursor:pointer;border:0;background:transparent;padding:9px 12px;color:#657891;font-size:13px}.switch button.active{color:#163a6a;border-bottom:2px solid #c7443b;font-weight:700}.account-form,.mini-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.account-form .register-only{display:contents}.account-form label,.mini-form label,.search-label{font-size:12px;font-weight:650;color:#51647d;display:flex;flex-direction:column;gap:6px}.account-form input,.account-form select,.mini-form input,.mini-form select,.search-label input{min-width:0;width:100%;border:1px solid #dfe6ee;border-radius:7px;background:#fff;padding:11px;color:#172e4f;font:inherit}.account-form button,.mini-form button{align-self:end}.primary{background:#163d70;color:#fff;border:0;border-radius:7px;padding:12px 15px;font-size:12px;font-weight:750;cursor:pointer;text-decoration:none;text-align:center}.primary:hover{background:#1f558e}.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 16px}.section-head h2{font-size:16px;letter-spacing:-.02em;margin:0}.section-head a{font-size:12px;color:#1d538c}.dog-grid{display:grid;gap:10px}.dog-card{border:1px solid #e9edf2;border-radius:9px;padding:12px;display:flex;align-items:center;gap:14px}.dog-photo{width:75px;height:60px;flex:0 0 75px;border-radius:6px;background:#eef2f6;object-fit:cover}.dog-info{flex:1;min-width:0}.dog-info strong{display:block;font-size:14px}.dog-info small{color:#8290a0;font-size:11px}.dog-editor{border-top:1px solid #e9edf2;margin-top:12px;padding-top:12px}.dog-card-wrap{border:1px solid #e9edf2;border-radius:9px;padding:12px}.dog-card-wrap .dog-card{border:0;padding:0}.dog-editor summary,.create-dog summary{font-size:12px;color:#285486;cursor:pointer;padding:7px 0}.search-label{margin:14px 0}.match,.result-row{padding:12px 0;border-bottom:1px solid #eef1f5;display:flex;align-items:center;justify-content:space-between;gap:10px}.match{width:100%;text-align:left;background:transparent;border-top:0;border-left:0;border-right:0;cursor:pointer}.match small,.result-row small{color:#8592a1;font-size:11px}.result-row strong{font-size:12px}.simple-list p{font-size:12px}.mini-form{margin:12px 0}.mini-form button{grid-column:1/-1}.create-dog{margin-top:15px;border-top:1px solid #ecf0f5;padding-top:9px}.register-link{display:inline-block;margin-top:8px}.account-footer{text-align:center;padding:0 0 35px;color:#a1acb9;font-size:12px}.account-footer a{color:inherit}#notice{padding:12px 15px;background:#fff4ed;color:#805135;border:1px solid #f1dcc7;border-radius:8px;margin-bottom:14px;font-size:12px}#notice.success{background:#edf8f3;color:#246a4a;border-color:#d2efde}#pending{margin-top:10px;font-size:12px;color:#806d3e}button:disabled{opacity:.6;cursor:wait}@keyframes appear{from{transform:translateY(7px);opacity:0}to{transform:translateY(0);opacity:1}}@media(max-width:600px){.account-header{height:63px;padding:0 18px}.account-header nav{gap:10px}.account-header nav a{font-size:11px}.mec-main{padding:31px 14px}.panel.account-panel{padding:17px}.account-form,.mini-form{grid-template-columns:1fr}.account-form .register-only{display:contents}.account-title{margin-bottom:20px}}@media(prefers-reduced-motion:reduce){.panel.account-panel{animation:none}}
[hidden]{display:none!important}

body.mec-dashboard{background:#f6f8fb}.site-header{position:relative}.mec-main{max-width:940px;margin:0 auto;padding:45px 22px 85px}.mec-intro{margin:0 0 25px}.mec-kicker{font-size:10px;letter-spacing:.19em;color:#bc473b;font-weight:800}.mec-intro h1{font-family:'Barlow Condensed',Inter,sans-serif;font-size:clamp(34px,5vw,50px);line-height:1;margin:6px 0 9px;color:#142e52;text-transform:uppercase}.mec-intro p{font-size:13px;color:#77879b;margin:0}.mec-content{width:100%}.mec-current{font-size:12px;font-weight:700;color:#143760!important;text-decoration:none}.account-intro{padding:5px 0 18px}.panel.account-panel{box-shadow:none;padding:23px;border-radius:12px}.dog-grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}.dog-card-wrap{padding:0;overflow:hidden;background:#fff}.dog-card-wrap .dog-card{display:block;padding:0}.dog-photo{width:100%;height:145px;object-fit:cover;border-radius:0;display:block}.dog-info{padding:13px 15px}.dog-editor{padding:0 15px 12px;margin:0}.dog-history{margin:0 0 22px}.dog-history h3{font-size:13px;margin:0 0 8px}.history-event{border-bottom:1px solid #e8edf4}.history-event summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 2px;list-style:none}.history-event summary::-webkit-details-marker{display:none}.history-event summary strong,.result-row strong{font-size:12px}.history-event small,.result-row small{display:block;font-size:11px;color:#8391a4;margin-top:3px}.history-points{font-size:12px;font-weight:700;white-space:nowrap;color:#143760}.history-details{padding:0 0 10px 10px}.history-discipline{display:flex;justify-content:space-between;gap:12px;padding:8px 3px;font-size:11px;color:#455e78;border-top:1px solid #f0f3f8}.history-discipline span:last-child{text-align:right}.history-discipline small{display:inline}.mec-foot{display:flex;gap:12px;justify-content:center;font-size:11px;color:#8896a6;padding:20px}.mec-foot a{color:inherit}.mec-dashboard .header-actions .mec-current{border:1px solid #d9e0e9;border-radius:7px;padding:9px 13px}.mec-dashboard .mec-main{animation:mec-in .35s ease both}@keyframes mec-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@media(max-width:600px){.mec-main{padding:29px 15px 45px}.dog-grid{grid-template-columns:1fr 1fr}.dog-photo{height:115px}.dog-info{padding:11px}.dog-info small{line-height:1.5}.panel.account-panel{padding:17px}.history-event summary{align-items:flex-start}.history-points{font-size:11px}}@media(max-width:390px){.dog-grid{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.mec-dashboard .mec-main{animation:none}}

/* Shared results-page header: no separate My EU Cup button styling. */
.mec-dashboard .site-header{position:relative}
.mec-loading{display:flex;gap:12px;align-items:center;justify-content:center;min-height:180px;color:#657994;font:600 13px Inter,Arial,sans-serif}
.mec-spinner{width:24px;height:24px;flex:0 0 24px;border:2px solid #d7e1ed;border-top-color:#b62e39;border-radius:50%;animation:mec-spin .75s linear infinite}
@keyframes mec-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.mec-spinner{animation:none;border-color:#b62e39}}

/* Do not show the dashboard beneath its initial loading indicator */
#mec-page:has(#mec-loading:not([hidden])) #signed-in,#mec-page:has(#mec-loading:not([hidden])) #signed-out{display:none!important}

/* Shared public-page chrome: header and footer are provided by ../styles.css. */
body.mec-dashboard.public-page .site-header{position:relative}
body.mec-dashboard.public-page footer#about{display:flex}
/* Square, compact dog portraits, cropped centrally at every width. */
body.mec-dashboard .dog-grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
body.mec-dashboard .dog-card-wrap .dog-card{display:flex;align-items:center;gap:12px;padding:12px}
body.mec-dashboard .dog-card-wrap .dog-photo{width:92px;height:92px;aspect-ratio:1/1;flex:0 0 92px;border-radius:7px;object-fit:cover;object-position:center center;display:block}
body.mec-dashboard .dog-card-wrap .dog-info{padding:0;min-width:0}
body.mec-dashboard .dog-card-wrap .dog-editor{margin:0;padding:5px 12px 10px}
@media(max-width:600px){body.mec-dashboard .dog-grid{grid-template-columns:1fr}body.mec-dashboard .dog-card-wrap .dog-photo{width:80px;height:80px;flex-basis:80px}}

/* Compact My EU Cup identity header; shared public header/footer remain untouched. */
body.mec-dashboard .mec-main{padding-top:30px}
body.mec-dashboard .mec-intro{margin:0 0 18px;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
body.mec-dashboard .mec-intro h1{font-size:clamp(27px,3.6vw,36px);margin:0;letter-spacing:-.025em}
body.mec-dashboard .mec-intro .mec-kicker{display:none}
body.mec-dashboard .mec-intro #mec-lead{width:100%;margin:-7px 0 0;font-size:12px}
body.mec-dashboard .mec-intro .account-intro{display:none;align-items:center;gap:16px;padding:0;margin:0 0 0 auto;flex-shrink:0}
body.mec-dashboard .mec-intro .account-intro > div{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
body.mec-dashboard .mec-intro .account-intro .eyebrow{display:none}
body.mec-dashboard .mec-intro .account-intro h2{font:700 13px Inter,Arial,sans-serif;letter-spacing:0;margin:0;color:#163054}
body.mec-dashboard .mec-intro .account-intro small{font-size:12px;line-height:1;color:#7a889a}
body.mec-dashboard .mec-intro #logout{font-size:12px;padding:7px 10px;border:1px solid #e2e8f0;border-radius:6px;white-space:nowrap}
body.mec-dashboard .mec-intro #logout:hover{background:#f0f3f8;color:#19365d}
body.mec-dashboard:has(#signed-in:not([hidden])) .mec-intro .account-intro{display:flex}
body.mec-dashboard:has(#signed-in:not([hidden])) .mec-intro #mec-lead{display:none}
@media(max-width:600px){body.mec-dashboard .mec-main{padding-top:22px}body.mec-dashboard .mec-intro{gap:10px;margin-bottom:14px}body.mec-dashboard .mec-intro h1{font-size:30px}body.mec-dashboard .mec-intro .account-intro{margin:0;width:100%;justify-content:space-between}body.mec-dashboard .mec-intro .account-intro > div{gap:6px}}

/* Compact account settings, visually consistent with My EU Cup */
.mec-settings-trigger{display:inline-flex;align-items:center;gap:6px}
.mec-account-settings{margin:12px auto 18px;max-width:850px;padding:20px}
.mec-settings-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
.mec-settings-form label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:600;color:#20385c}
.mec-settings-form input,.mec-settings-form select{width:100%;min-width:0;padding:10px;border:1px solid #d7e0eb;border-radius:6px;background:#fff;color:#122a50}
.mec-settings-actions{display:flex;align-items:center;gap:12px;grid-column:1/-1;flex-wrap:wrap}
.mec-settings-actions small{color:#667993}
@media(max-width:620px){.mec-settings-form{grid-template-columns:1fr}.mec-account-settings{padding:14px}}
