*{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}}

/* Account access is available immediately, independently of dashboard data. */
#mec-page:has(#mec-loading:not([hidden])) :is(#signed-in,#signed-out){display:none!important}
.mec-dashboard .mec-loading{min-height:32px;justify-content:flex-start;font-size:12px;margin-bottom:16px}
.mec-dashboard .mec-spinner{width:15px;height:15px;flex-basis:15px}
.mec-dashboard .shared-account-entry{display:flex;align-items:center;gap:22px;padding:28px}
.shared-account-mark img{width:76px;height:76px;object-fit:contain}
.shared-account-entry h2{margin:0 0 8px;font-size:19px;color:#142e52}
.shared-account-entry p{margin:0 0 20px;color:#71809a;font-size:13px;line-height:1.6}
.shared-account-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
@media(max-width:560px){.mec-dashboard .shared-account-entry{align-items:flex-start;gap:14px;padding:20px}.shared-account-mark img{width:46px;height:46px}.shared-account-actions{align-items:stretch;flex-direction:column}.shared-account-entry h2{font-size:17px}}

/* 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}}

/* Shared account tools use the same compact EU Cup panels. */
.dog-access-note{font-size:11px;line-height:1.6;color:#71809a;margin:0;padding:0 12px 12px}
.shared-new-dog-fields{display:contents}
.mini-form>p{grid-column:1/-1;margin:0;font-weight:400;line-height:1.6}
.dog-editor .mini-form{grid-template-columns:repeat(2,minmax(0,1fr))}
.dog-editor>small{display:block;color:#71809a;font-size:11px;line-height:1.5}
.mec-account-security{border-top:1px solid #e5eaf1;margin-top:18px;padding-top:14px}
.mec-account-security>summary{font-size:12px;font-weight:650;cursor:pointer;color:#163d70}
.mec-account-security .mec-settings-form{margin-top:14px}
.mec-verify{background:#fff8ed;border:1px solid #efdfc1;border-radius:10px;padding:20px;margin-bottom:16px}
.mec-verify h2,.mec-history h2{font-size:16px;margin:0}
.mec-verify p{font-size:12px;color:#6f6049;line-height:1.6}
.mec-history-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
#history-dogs{display:grid;gap:14px;margin:16px 0}
#history-dogs fieldset{border:1px solid #e1e7ef;border-radius:8px;padding:14px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#history-dogs legend{font-size:12px;font-weight:700;padding:0 6px;color:#163d70}
#history-dogs label,.mec-history-events{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:600;color:#51647d}
#history-dogs input,.mec-history-events textarea{width:100%;min-width:0;border:1px solid #dfe6ee;border-radius:7px;background:#fff;padding:10px;color:#172e4f;font:inherit}
.mec-history-events{margin:14px 0}.mec-history-events textarea{resize:vertical;font-weight:400;line-height:1.6}
@media(max-width:600px){.dog-editor .mini-form,#history-dogs fieldset{grid-template-columns:1fr}.mec-verify{padding:16px}}
.mec-privacy-form{display:grid;gap:12px;margin:18px 0}.mec-privacy-form label{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.5}.mec-privacy-form input[type=checkbox]{width:17px;height:17px;flex:0 0 17px;margin:2px 0;accent-color:#173e70}.mec-privacy-form button{justify-self:start}#privacy-request-form textarea{width:100%;min-width:0;border:1px solid #dfe6ee;border-radius:7px;padding:10px;font:inherit;resize:vertical}#token-panel{margin-bottom:20px}#token-description{line-height:1.6;color:#536984}

/* Self-service results connection: compact, accessible cascading selections. */
.eucup-previous-choice{display:flex;flex-direction:column;gap:6px;grid-column:1/-1}
.eucup-link-widget{grid-column:1/-1;padding:11px 12px;background:#f6f8fb;border:1px solid #dce4ee;border-radius:8px}
.eucup-link-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.eucup-link-fields label{min-width:0;display:flex;flex-direction:column;gap:6px;font-size:12px;color:#183759;font-weight:600}
.eucup-link-fields select{width:100%;min-width:0;border-radius:7px;border:1px solid #d7e0ec;padding:11px;background:#fff;color:#153050;font:inherit}
.eucup-link-fields select:disabled{background:#eef2f7;color:#8a97a7}
.eucup-link-status{font-size:12px;line-height:1.5;color:#687c94;margin:8px 0 0}
.eucup-link-status:empty{display:none}.eucup-link-status.error{color:#ae4141}
.eucup-link-details{margin:10px 0;border-top:1px solid #e7edf3;padding-top:11px}
.eucup-link-details summary{cursor:pointer;font-size:12px;font-weight:700;color:#174578}
.eucup-link-details form{display:grid;gap:10px;margin-top:10px}
.eucup-link-connected{margin-top:10px;padding:10px;background:#eff7f3;border-radius:7px;font-size:12px;color:#1c6449}
.eucup-link-connected button{margin-left:10px}
@media(max-width:690px){.eucup-link-fields{grid-template-columns:1fr}.eucup-link-widget{padding:10px}}

/* Self-service removal is deliberate, visually secondary, and touch-friendly. */
.dog-removal-row{display:flex;justify-content:flex-end;margin:14px 0 0;padding-top:10px;border-top:1px solid #e6ebf2}
.dog-removal-button{border:1px solid #efd4d4;border-radius:7px;color:#9b2932;background:#fff;padding:9px 13px;font-size:12px;font-weight:600;cursor:pointer}
.dog-removal-button:hover{background:#fff2f2;border-color:#dca9a9}
.dog-removal-button:disabled{opacity:.55;cursor:wait}
@media(max-width:600px){.dog-removal-button{min-height:42px}}

/* V4: restrained icon-based My EU Cup dog overview; no editor or results on the overview. */
body.mec-dashboard #dogs.dog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(108px,1fr));gap:16px 12px;align-items:start}
body.mec-dashboard .dog-avatar-card{display:flex;flex-direction:column;align-items:center;gap:9px;min-width:0;width:100%;border:1px solid transparent;background:transparent;border-radius:12px;padding:8px 5px 10px;color:#152e50;cursor:pointer;text-align:center;transition:background .16s ease,border-color .16s ease,transform .16s ease}
body.mec-dashboard .dog-avatar-card img{display:block;width:min(100%,108px);aspect-ratio:1/1;object-fit:cover;object-position:center;border-radius:11px;background:#edf1f0}
body.mec-dashboard .dog-avatar-card span{display:block;max-width:100%;font:650 12px/1.35 Inter,Arial,sans-serif;overflow-wrap:anywhere}
body.mec-dashboard .dog-avatar-card:hover{background:#f6f8fb;border-color:#e6edf4;transform:translateY(-2px)}
body.mec-dashboard .dog-avatar-card:focus-visible,.dog-profile-back:focus-visible{outline:2px solid #234f87;outline-offset:3px}
body.mec-dashboard .dog-profile-panel{padding:25px 27px 27px}
.dog-profile-back{display:inline-flex;align-items:center;border:0;background:transparent;padding:0;color:#526a83;font:650 12px Inter,Arial,sans-serif;cursor:pointer;margin:0 0 22px}
.dog-profile-back:hover{color:#173e70}
.dog-profile-hero{display:flex;align-items:flex-start;gap:23px;padding-bottom:24px}
.dog-profile-photo{width:150px;height:150px;flex:0 0 150px;object-fit:cover;object-position:center;border-radius:13px;background:#edf1f0}
.dog-profile-meta{flex:1;min-width:0}
.dog-profile-meta h2{font:750 clamp(23px,3vw,33px)/1.08 'Barlow Condensed',Inter,sans-serif;color:#162d4e;margin:4px 0 5px;overflow-wrap:anywhere}
.dog-profile-code{font-size:11px;color:#8491a2}
.dog-profile-meta dl{display:flex;flex-wrap:wrap;gap:18px 38px;margin:21px 0 0}
.dog-profile-meta dl>div{min-width:110px}
.dog-profile-meta dt{font:650 11px Inter,Arial,sans-serif;color:#8795a7;margin-bottom:5px}
.dog-profile-meta dd{margin:0;font:650 13px Inter,Arial,sans-serif;color:#223c5d}
.dog-profile-meta dd small{display:block;margin-top:5px;max-width:240px;color:#90a0af;font:400 11px/1.5 Inter,Arial,sans-serif}
.dog-profile-section{padding:19px 0;border-top:1px solid #e8edf3}
.dog-profile-section h3{margin:0 0 11px;font:700 14px Inter,Arial,sans-serif;color:#173253}
.dog-profile-section .history-event:last-child{border-bottom:0}
.dog-profile-section .history-event summary{padding:14px 2px}
.dog-profile-section .history-team-total{display:flex;justify-content:space-between;gap:16px;padding:12px 4px;border-top:1px solid #e6ebf2;color:#677f98;font-size:11px}
.dog-profile-section .history-team-total strong{color:#1a3a60}
.dog-profile-edit .dog-editor{border:0;margin:0;padding:0}
.dog-profile-edit .dog-editor>summary{font-size:13px;font-weight:700;color:#184574;list-style:none;cursor:pointer;padding:3px 0 7px}
.dog-profile-edit .dog-editor>summary::after{content:'  +';font-size:17px;font-weight:500}
.dog-profile-edit .dog-editor[open]>summary::after{content:'  −'}
.dog-profile-edit .dog-editor>summary::-webkit-details-marker{display:none}
.dog-profile-edit .dog-editor .mini-form{margin:16px 0 8px}
.dog-height-locked{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#536a83}
.dog-height-locked strong{font-size:12px;color:#233e5e}
.dog-height-locked span{font-size:13px}
.dog-height-locked small{font-size:11px;color:#8191a5;line-height:1.4}
.eucup-new-height{min-width:0}
@media(max-width:600px){
 body.mec-dashboard #dogs.dog-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 8px}
 body.mec-dashboard .dog-avatar-card{padding:5px 3px 7px;gap:7px}
 body.mec-dashboard .dog-avatar-card img{width:min(100%,108px);border-radius:9px}
 body.mec-dashboard .dog-avatar-card span{font-size:11px}
 body.mec-dashboard .dog-profile-panel{padding:18px 16px}
 .dog-profile-hero{gap:15px;padding-bottom:18px}
 .dog-profile-photo{width:105px;height:105px;flex-basis:105px}
 .dog-profile-meta h2{font-size:24px}
 .dog-profile-meta dl{gap:11px;margin:12px 0 0;flex-direction:column}
 .dog-profile-meta dl>div{min-width:0}
 .dog-profile-section{padding:17px 0}
}
@media(max-width:365px){body.mec-dashboard #dogs.dog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dog-profile-photo{width:90px;height:90px;flex-basis:90px}}
@media(prefers-reduced-motion:reduce){body.mec-dashboard .dog-avatar-card{transition:none}}
