:root{color-scheme:dark;--bg:#050505;--side:#101214;--panel:#16191b;--line:#343a3d;--white:#f5f5f5;--muted:#adb4b8;--soft:#282d30;--ok:#9fc9b7;--bad:#e6aaa5}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--white);font:14px/1.55 Inter,"Segoe UI",system-ui,Arial,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.55}a{color:#e4e6e8}h1{font-size:29px;letter-spacing:-.8px;margin:3px 0 5px}h2{font-size:19px;margin:0 0 12px}h3{font-size:15px;margin:0 0 9px}p{margin:8px 0}small,.muted{color:var(--muted)}.eyebrow{color:#b1b7bb;letter-spacing:2px;font-size:10px;font-weight:750}.layout{display:flex;min-height:100vh}.sidebar{width:262px;flex-shrink:0;position:sticky;top:0;height:100vh;overflow:auto;background:var(--side);border-right:1px solid var(--line);padding:18px 13px}.brand{display:flex;gap:12px;align-items:center;border-bottom:1px solid var(--line);padding:6px 5px 19px;margin-bottom:16px}.brand img{width:59px;height:59px;object-fit:contain;mix-blend-mode:screen}.brand strong{display:block;letter-spacing:1.6px}.brand span{font-size:10px;color:var(--muted)}.nav{border:0;border-radius:8px;padding:10px 12px;margin:2px 0;width:100%;text-align:left;color:#bec4c7;background:transparent;display:flex;gap:12px;align-items:center}.nav i{font-style:normal;width:22px;text-align:center;font-size:17px}.nav:hover{color:white;background:#202528}.nav.active{background:#2a2f32;color:white;border-left:3px solid #f3f3f3}.navgroup{margin:16px 10px 8px;color:#899198;font-size:10px;letter-spacing:1.4px;font-weight:700}.stage{min-width:0;flex:1;padding:26px clamp(15px,3vw,45px)}.top{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding-bottom:19px;margin-bottom:22px}.top small{display:block}.panel{border:1px solid var(--line);background:var(--panel);padding:20px;border-radius:11px;margin:15px 0;min-width:0}.grid{display:grid;gap:14px}.twocol{grid-template-columns:repeat(2,minmax(0,1fr))}.four{grid-template-columns:repeat(4,minmax(0,1fr))}.metric{background:#171b1d;border:1px solid #3a4044;padding:17px;border-radius:11px}.metric small{display:block;font-size:10px;text-transform:uppercase;letter-spacing:1px}.metric strong{display:block;font-size:clamp(18px,2.2vw,25px);margin:10px 0 3px;overflow-wrap:anywhere}.metric em{font-size:11px;color:#a7afb3;font-style:normal}.ok{color:var(--ok)}.bad{color:var(--bad)}.btn{border:1px solid #4d5458;background:#272c2f;color:#f5f5f5;border-radius:8px;padding:9px 13px;display:inline-flex;align-items:center;gap:7px;justify-content:center;font-weight:650;text-decoration:none}.btn:hover{background:#353b3e}.btn.primary{color:#080909;background:#f5f5f5;border-color:#f5f5f5}.btn.danger{border-color:#87494d;background:#392325;color:#ffd2cf}.btn.sm{font-size:11px;padding:5px 8px}.flex{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.between{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.note{border:1px solid #4a5357;border-left:3px solid #c7ccce;background:#1b2022;padding:12px 16px;border-radius:8px;font-size:12px;color:#d2d7d9;margin:15px 0}.tablewrap{overflow:auto;border:1px solid #353c3f;border-radius:8px}table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}th{background:#24292c;text-align:left;padding:11px;color:#d0d5d8}td{border-top:1px solid #363d40;padding:11px}tbody tr:hover{background:#202527}.tag{display:inline-block;border:1px solid #535b60;color:#cdd2d4;border-radius:6px;padding:3px 8px;font-size:11px}.tag.ok{border-color:#47745d}.tag.bad{border-color:#865559}.hero{background:linear-gradient(120deg,#2a2f32,#101314);border:1px solid #51595e;border-radius:12px;padding:27px;display:flex;justify-content:space-between;align-items:center}.hero img{max-width:138px;max-height:134px;mix-blend-mode:screen;object-fit:contain}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:13px}.tile{border:1px solid #3c4346;background:#15191b;border-radius:10px;padding:19px;text-align:left;color:white;min-height:124px}.tile b{display:block;font-size:15px;margin:9px 0}.tile small{display:block}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.field{display:block;min-width:0;font-size:12px;color:#d4d8da}.field span{display:block;margin-bottom:5px}.field input,.field select,.field textarea,input[type=file]{width:100%;padding:9px 10px;border-radius:7px;border:1px solid #555d61;background:#0f1112;color:#f5f5f5;outline:none}.field textarea{min-height:90px}.field input:focus,.field select:focus,.field textarea:focus{border-color:white}.wide{grid-column:1/-1}.actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:9px;border-top:1px solid #454b4e;padding-top:15px;margin-top:18px}.checkrow{display:flex;align-items:flex-start;gap:10px;margin:9px 0;font-size:12px}.login{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(ellipse at top,#282c2e,#050505 65%)}.loginCard{max-width:430px;width:100%;border:1px solid #42484b;background:linear-gradient(150deg,#1e2224,#0f1112);border-radius:14px;padding:35px;box-shadow:0 26px 90px #000a}.loginCard img{width:145px;height:145px;object-fit:contain;display:block;margin:auto;mix-blend-mode:screen}.loginCard h1{text-align:center;font-size:22px}.loginCard>p,.loginCard>.eyebrow{text-align:center}.loginCard .field{margin:15px 0}.authlinks{display:flex;justify-content:center;gap:10px;margin-top:16px}.authlinks button{background:transparent;color:#d3d7d8;border:0;text-decoration:underline;padding:8px;font-size:12px}.overlay{position:fixed;inset:0;background:#000c;z-index:100;display:grid;place-items:center;padding:15px}.modal{width:min(740px,100%);max-height:92vh;overflow:auto;border:1px solid #60686a;border-radius:14px;background:#1b1f21;padding:24px;box-shadow:0 20px 80px #000c}.modal .wide{grid-column:1/-1}.fileitem{display:flex;gap:12px;align-items:center;border-bottom:1px solid #353b3e;padding:10px}.fileitem span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}.fileitem small{white-space:nowrap}.signature{width:100%;height:170px;touch-action:none;background:white;display:block;border:2px solid #9ba3a5;border-radius:7px}.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.calday{min-height:82px;padding:7px;border:1px solid #343c3f;border-radius:5px;min-width:0}.calday strong{font-size:12px}.calday button{display:block;width:100%;background:#373f43;color:white;padding:4px;font-size:10px;text-align:left;border:0;border-radius:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.calhead{text-align:center;font-size:11px;color:#a9b1b4}.map{height:350px;background:#202426;border-radius:9px;overflow:hidden}.chart{height:280px;position:relative}.legacy{width:100%;height:81vh;min-height:750px;border:1px solid var(--line);border-radius:9px;background:#101214}.foot{padding:35px 0;font-size:10px;letter-spacing:1.2px;color:#818b91}#toast{position:fixed;bottom:16px;right:16px;z-index:150;background:#f5f5f5;color:#101010;padding:12px 18px;border-radius:8px;display:none;max-width:85vw}#toast.err{background:#ffcece}@media(max-width:1150px){.four{grid-template-columns:repeat(2,minmax(0,1fr))}.twocol{grid-template-columns:1fr}}@media(max-width:760px){.layout{display:block}.sidebar{width:100%;height:auto;position:sticky;top:0;z-index:30;padding:8px 11px 3px;overflow:hidden}.brand{padding:3px 0 8px;margin:0}.brand img{width:42px;height:42px}.navgroup{display:none}.sidebar nav{display:flex;overflow:auto;gap:5px;padding:7px 0}.nav{width:auto;white-space:nowrap;min-width:max-content;padding:7px 11px}.stage{padding:16px 12px}.hero img{display:none}.fields{grid-template-columns:1fr}.wide{grid-column:auto}.modal{padding:18px}.calday{min-height:62px;padding:3px}.calday button{font-size:9px}.calhead{font-size:9px}.loginCard{padding:24px}}

.notice-recipients{display:grid;gap:7px;max-height:310px;overflow:auto;border:1px solid var(--line);border-radius:9px;padding:10px;background:#101214;margin:12px 0}
.notice-member{display:flex;gap:12px;align-items:center;padding:9px 12px;border:1px solid #363d40;border-radius:7px;cursor:pointer;font-size:12px}
.notice-member:hover{background:#252b2e}
.notice-member input{accent-color:#eee}
.notice-member b,.notice-recipient b{display:block}
.notice-member small,.notice-recipient small{display:block;color:#b5bdc0}
.notice-recipient{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px;border-bottom:1px solid var(--line)}
.notice-text{white-space:pre-wrap;background:#101315;border:1px solid #40474b;border-radius:9px;padding:19px;line-height:1.8;max-height:250px;overflow:auto}
@media(max-width:600px){.notice-recipient{flex-direction:column;align-items:flex-start}}


.club-dashboard{max-width:1450px;margin:auto}
.club-hero{display:flex;align-items:center;justify-content:space-between;gap:25px;min-height:180px;background:linear-gradient(110deg,#272d30,#151719);border:1px solid #41474a;border-radius:12px;padding:28px 35px;margin-bottom:17px}
.club-hero h2{font-size:clamp(24px,2.1vw,34px);letter-spacing:-.6px;line-height:1.18;margin:10px 0 12px}
.club-hero p{color:#bfc7cc;max-width:630px}
.club-hero img{width:142px;height:142px;object-fit:contain;mix-blend-mode:screen}
.club-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:19px}
.club-stat{display:flex;flex-direction:column;min-width:0;min-height:125px;padding:18px;background:#161a1c;border:1px solid #3b4246;border-radius:10px}
.club-stat span{font-size:10px;letter-spacing:1.15px;color:#aeb9bf}
.club-stat strong{font-size:clamp(19px,2vw,29px);line-height:1.18;margin:10px 0 7px;overflow-wrap:anywhere}
.club-stat small{font-size:11px;color:#aeb8bd}
.club-columns{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);gap:16px}
.club-main,.club-side{display:flex;flex-direction:column;gap:16px;min-width:0}
.club-panel{padding:20px;background:#16191b;border:1px solid #373e41;border-radius:11px;min-width:0}
.club-heading{margin-bottom:15px}
.club-heading small{color:#aeb7bc;font-size:10px;letter-spacing:1.3px}
.club-heading h3{font-size:18px;margin:5px 0}
.club-road-map{height:340px;background:#22282a;border:1px solid #353e42;border-radius:8px;z-index:0}
.club-map-locked{height:300px;border:1px solid #394145;border-radius:8px;display:flex;align-items:center;justify-content:center;text-align:center;padding:20px;color:#b4bec1;background:#202629}
.club-destinations{display:flex;gap:7px;flex-wrap:wrap;margin-top:13px}
.club-destinations a{padding:7px 10px;background:#252a2d;border:1px solid #3b4448;color:#e3e7e9;font-size:11px;border-radius:7px;text-decoration:none}
.club-destinations a:hover{border-color:#e9edef}
.club-note{color:#aeb8bc;font-size:11px;line-height:1.6}
.club-birthday{display:flex;gap:12px;align-items:center;padding:11px 0;border-bottom:1px solid #333a3d}
.club-birthday>span{width:42px;height:42px;flex-shrink:0;display:flex;align-items:center;justify-content:center;border:1px solid #444b4e;background:#282d30;border-radius:8px;font-weight:800}
.club-birthday b,.club-birthday small{display:block}
.club-birthday small{color:#aeb7bc;font-size:11px}
.club-fuel strong{display:block;font-size:29px;margin:6px 0 7px}
.club-fuel strong small{font-size:12px;color:#aeb8bc;font-weight:400}
.club-fuel p{color:#abb4b9;font-size:11px;margin:6px 0}
.club-fuel a{display:inline-block;margin-top:11px}
@media(max-width:1150px){.club-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.club-columns{grid-template-columns:1fr}}
@media(max-width:590px){.club-hero{padding:21px;min-height:153px}.club-hero img{width:75px;height:75px}.club-hero h2{font-size:22px}.club-stat{padding:14px;min-height:110px}.club-stat strong{font-size:20px}.club-panel{padding:15px}.club-road-map{height:290px}}


.club-hero h2{font-size:clamp(23px,2.15vw,33px);line-height:1.17;max-width:660px}
.club-media{margin:22px 0 21px;padding:24px;background:#111416;border:1px solid #353b3f;border-radius:13px}
.club-media-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.club-media-heading h3{font-size:clamp(18px,1.5vw,23px);margin:6px 0 2px;font-weight:750;letter-spacing:-.3px}
.club-media-heading p{font-size:12px;color:#aeb7bc;margin:5px 0}
.club-media-heading .btn{white-space:nowrap}
.club-media-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.club-photo-card{display:block;position:relative;overflow:hidden;min-height:240px;aspect-ratio:4/5;max-height:340px;background:#292e31;border:1px solid #42484b;border-radius:9px;color:#fff;text-decoration:none;isolation:isolate}
.club-photo-card img{position:absolute;width:100%;height:100%;inset:0;object-fit:cover;filter:grayscale(.28) brightness(.82);transition:transform .35s ease,filter .35s ease}
.club-photo-card:hover img{transform:scale(1.04);filter:grayscale(.08) brightness(.9)}
.club-photo-card::after{content:"";position:absolute;z-index:1;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.92) 0%,rgba(0,0,0,.34) 43%,transparent 79%)}
.club-photo-overlay{position:absolute;z-index:2;left:17px;right:17px;bottom:18px;display:flex;flex-direction:column;gap:4px}
.club-photo-overlay small{font-size:9px;letter-spacing:1.5px;color:#d0d3d5;font-weight:750}
.club-photo-overlay b{font-size:18px;line-height:1.15;letter-spacing:-.25px;color:#fff}
.club-photo-overlay em{font-size:11px;font-style:normal;color:#dadcdd}
.club-media-footer{display:flex;align-items:center;justify-content:space-between;gap:22px;padding-top:17px;flex-wrap:wrap}
.club-media-footer p{max-width:610px;font-size:11px;color:#aeb7bc;margin:0;line-height:1.6}
.club-media-footer a{color:inherit}
.club-instagram-link{display:flex;gap:6px;flex-direction:column;text-decoration:none;padding:11px 18px;border:1px solid #424a4e;border-radius:9px;background:#1c2022;min-width:192px;transition:border-color .2s}
.club-instagram-link:hover{border-color:#d8dce0}
.club-instagram-link span{font-size:9px;letter-spacing:1.5px;color:#b5bdc1}
.club-instagram-link b{font-size:16px;color:#f5f5f5}
.club-instagram-link small{font-size:11px;color:#aeb8bd}
@media(max-width:1200px){.club-media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.club-photo-card{min-height:235px;aspect-ratio:16/10}}
@media(max-width:610px){.club-media{padding:16px;margin:16px 0}.club-media-heading{align-items:flex-start;flex-direction:column}.club-media-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding:0 0 9px;gap:10px}.club-photo-card{min-width:78%;max-width:78%;aspect-ratio:4/5;scroll-snap-align:start;min-height:255px}.club-media-footer{align-items:stretch}.club-instagram-link{width:100%}}

.club-upcoming-item{display:flex;align-items:center;gap:10px;border-top:1px solid #343c3e;padding:12px 0}.club-upcoming-item>span{border:1px solid #465053;border-radius:7px;padding:11px 9px;font-size:10px;font-weight:700;min-width:55px;text-align:center;color:#f5f5f5}.club-upcoming-item>div{flex:1;min-width:0}.club-upcoming-item b{display:block;font-size:13px}.club-upcoming-item small{font-size:10px;color:#aeb7bc}.club-upcoming-item a{font-size:11px;color:#e0e4e5}.fuel-badge{font-size:9px;letter-spacing:1px;color:#acb5bc;font-weight:800}.fuel-address{display:block;font-size:11px;color:#a5b0b6}.fuel-date,.fuel-warning{font-size:10px!important;color:#abb3b7!important}.rota-custom-pin{border-radius:50%;background:#080909;border:2px solid #f5f5f5;box-shadow:0 0 0 5px #0008;display:grid!important;place-items:center}.rota-pin-dot{display:block;width:10px;height:10px;background:#f5f5f5;border-radius:50%}@media(min-width:960px){.club-columns{grid-template-columns:minmax(0,1.7fr) minmax(310px,1fr)}.club-road-map{height:410px}}

.membership-queue{display:grid;gap:10px}.membership-entry{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#191d1f;border:1px solid #3a4043;padding:13px;border-radius:8px}.membership-entry>div:first-child{display:flex;flex-direction:column;gap:3px;min-width:0}.membership-entry small{font-size:11px;color:#b2bac0;overflow-wrap:anywhere}.membership-entry .actions{flex-shrink:0}@media(max-width:740px){.membership-entry{flex-direction:column;align-items:stretch}.membership-entry .actions{justify-content:flex-start}}

body:has(#eventForm) #map{visibility:hidden}.event-map-note{font-size:11px;color:#aeb8bd}

#clubRoadMap .leaflet-tile-pane{filter:grayscale(100%) invert(94%) hue-rotate(180deg) contrast(83%) brightness(85%)}#clubRoadMap .leaflet-control-zoom a{background:#1a1e21;color:#fff}#clubRoadMap .leaflet-popup-content-wrapper,#clubRoadMap .leaflet-popup-tip{background:#171c1e;color:#fff}
.club-photos-uploaded{margin-top:18px}.club-photo-desc{color:#9b9b9b;font-size:.88rem;margin:0 0 18px}.club-rides-photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.club-ride-photo{position:relative;display:block;aspect-ratio:4/5;overflow:hidden;border:1px solid #3b3b3b;border-radius:10px;background:#262626;color:#f5f5f5}.club-ride-photo img{width:100%;height:100%;object-fit:cover;filter:saturate(.68);transition:transform .35s,filter .35s}.club-ride-photo:hover img{transform:scale(1.035);filter:saturate(1)}.club-ride-photo-label{position:absolute;inset:auto 0 0;display:flex;flex-direction:column;gap:3px;padding:30px 12px 12px;background:linear-gradient(transparent,rgba(5,5,5,.9))}.club-ride-photo-label strong{font-size:.83rem}.club-ride-photo-label small{font-size:.68rem;color:#d8d4cd}@media(max-width:800px){.club-rides-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:450px){.club-rides-photo-grid{gap:9px}}

.access-head{display:flex;gap:16px;justify-content:space-between;align-items:center;flex-wrap:wrap}.access-cards{display:grid;gap:12px;margin:16px 0}.access-user{border:1px solid #384147;border-radius:12px;padding:15px;background:#171b1d;display:grid;grid-template-columns:minmax(160px,1fr) minmax(230px,1.2fr) auto;align-items:center;gap:14px;min-width:0}.access-user>div:first-child{display:flex;flex-direction:column;gap:5px;overflow-wrap:anywhere}.access-user>div:first-child small{color:#b2bbc1}.access-user-info{display:grid;grid-template-columns:1fr 1fr .8fr;gap:9px}.access-user-info span{display:block;color:#9ea9b0;font-size:10px;margin-bottom:6px;letter-spacing:.09em}.access-user-info b{font-size:12px;overflow-wrap:anywhere}.access-user-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}.access-user-actions .btn{min-height:42px}.modal:has(#userForm){max-width:760px;width:min(760px,calc(100vw - 22px));max-height:93dvh;overflow-y:auto}.access-permissions{display:grid;gap:8px}.access-permission-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(170px,220px);align-items:center;gap:10px;min-width:0;background:#202528;border:1px solid #3d454b;border-radius:8px;padding:9px 12px}.access-flag{display:flex;align-items:center;gap:10px;min-width:0}.access-flag span{overflow-wrap:anywhere;font-size:13px}.access-flag input{width:17px;height:17px;flex-shrink:0;accent-color:#c7d3db}.access-mode{min-width:0}.access-mode select{width:100%;max-width:100%;font-size:12px;min-height:42px;background:#30383c;color:#f5f5f5;border:1px solid #4a555b;border-radius:7px;padding:8px}.access-master-note{color:#c6ccd2;font-size:12px;padding:11px;border-left:3px solid #c4cdd3}.access-footer{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap;margin-top:17px;padding-top:15px;border-top:1px solid #414a4e}.access-footer .btn{min-height:44px}.visually-hidden{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden}.permission-readonly{padding:12px;border-left:3px solid #bac5cc;border-radius:6px;background:#252b2e;color:#e7ecf0}@media(max-width:900px){.access-user{grid-template-columns:1fr}.access-user-actions{justify-content:flex-start}.access-user-info{grid-template-columns:repeat(3,1fr)}}@media(max-width:600px){.access-user-info{grid-template-columns:repeat(2,1fr)}.access-permission-row{grid-template-columns:1fr;gap:8px}.access-head>.btn{width:100%}.access-footer{flex-direction:column-reverse}.access-footer .btn{width:100%}#userForm .fields{grid-template-columns:1fr}.modal:has(#userForm){width:calc(100vw - 16px);max-height:96dvh}}

/* Rota 040 MC · responsividade editorial · desktop, notebook e celular */
:root{--r40-layout-line:#3d454a}
html,body{width:100%;max-width:100%;overflow-x:clip}
*,*::before,*::after{box-sizing:border-box}
.layout,.shell,.stage,.content,#content,.panel,.club-dashboard,.fin-dash,.club-hero,.club-side,.club-main,.club-panel,.fin-dash-panel,.fin-kpi,.fin-kpi-grid,.formgrid,.fields,.access-user,.r40-atlas,.r40-map-area{min-width:0;max-width:100%}
.layout>.stage,.shell>.content{flex:1;min-width:0;width:100%;max-width:none!important}
.layout>.stage{padding-inline:clamp(14px,2.2vw,27px)}
.shell>.content{padding-inline:clamp(14px,2.2vw,29px)}
.stage #content,.content #content{min-width:0;max-width:100%;width:100%}
.layout .stage .top,.shell .content .finance-header{min-width:0;flex-wrap:wrap;row-gap:12px}
.top>*,.finance-header>*,.between>*,.toolbar>*,.rowhead>*,.fin-hero>*,.club-hero>*{min-width:0}
.between,.toolbar,.rowhead,.fin-header-actions,.filters{flex-wrap:wrap;max-width:100%}
.between .btn,.toolbar .btn,.filters .btn,.rowhead .btn{max-width:100%;white-space:normal}
.panel,.club-panel,.fin-dash-panel{overflow-wrap:anywhere}
.panel input,.panel select,.panel textarea,.modal input,.modal select,.modal textarea{max-width:100%;min-width:0}
#content .grid,#content .twocol,#content .four,#content .split,#content .club-stats,#content .club-dashboard-grid,#content .club-media-grid,#content .fin-dash-columns,#content .fin-kpi-grid{min-width:0}
#content img,#content svg,#content video{max-width:100%;height:auto}
.stage .tablewrap,.content .datawrap{max-width:100%;min-width:0}
.tablewrap table,.datawrap table{width:100%;max-width:100%;white-space:normal!important}
.tablewrap table th,.datawrap table th,.tablewrap table td,.datawrap table td{overflow-wrap:anywhere;word-break:normal;white-space:normal}
.tablewrap table .flex,.datawrap table .flex{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.tablewrap table button,.datawrap table button{min-height:38px;white-space:normal}
.club-hero,.fin-hero{overflow:hidden}
.club-hero>div,.fin-hero>div{min-width:0}
.club-hero h2,.fin-hero h2{overflow-wrap:anywhere}
.r40-mobile-menu-button{display:none;width:100%;min-height:44px;padding:10px 13px;color:#f5f5f5;background:#242a2e;border:1px solid #485159;border-radius:9px;cursor:pointer;font:700 13px/1.2 inherit;justify-content:space-between;align-items:center;gap:12px}
.r40-mobile-menu-button .r40-menu-chevron{font-size:18px;transition:transform .15s ease}
.r40-mobile-menu-button[aria-expanded="true"] .r40-menu-chevron{transform:rotate(180deg)}
.r40-mobile-menu-button:focus-visible{outline:2px solid #bbc7cd;outline-offset:3px}
@media(max-width:1650px){
 .layout>.sidebar{width:clamp(205px,18vw,247px)}
 .fin-shell>.sidebar{width:clamp(205px,18vw,240px);max-width:none!important}
 .layout>.stage,.shell>.content{padding-inline:clamp(13px,1.6vw,25px)}
}
@media(max-width:1550px){
 .datawrap,.tablewrap{overflow:visible!important;border:0!important;border-radius:0!important;background:transparent!important}
 .datawrap>table,.tablewrap>table{display:block;width:100%!important;max-width:100%;white-space:normal!important;border:0}
 .datawrap>table>thead,.tablewrap>table>thead{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
 .datawrap>table>tbody,.tablewrap>table>tbody{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));align-items:stretch;gap:11px;max-width:100%}
 .datawrap>table>tbody>tr,.tablewrap>table>tbody>tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 15px;align-content:start;padding:15px;background:#171c20;border:1px solid #39434b;border-radius:12px;min-width:0;max-width:100%;box-shadow:0 2px 8px #0001}
 .datawrap>table>tbody>tr>td,.tablewrap>table>tbody>tr>td{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:5px;padding:0!important;min-width:0;max-width:100%;border:0!important;background:transparent!important;white-space:normal!important;font-size:12px;line-height:1.45;overflow-wrap:anywhere}
 .datawrap>table>tbody>tr>td[data-label]:before,.tablewrap>table>tbody>tr>td[data-label]:before{content:attr(data-label);display:block;color:#acb8c1;font-size:10px;line-height:1.2;letter-spacing:.055em;font-weight:750;text-transform:uppercase}
 .datawrap>table>tbody>tr>td[data-r40-primary],.tablewrap>table>tbody>tr>td[data-r40-primary]{grid-column:1/-1;padding-bottom:11px!important;border-bottom:1px solid #39434b!important;font-size:14px;font-weight:750;line-height:1.4}
 .datawrap>table>tbody>tr>td[data-r40-actions],.tablewrap>table>tbody>tr>td[data-r40-actions]{grid-column:1/-1;display:block;padding-top:11px!important;border-top:1px solid #39434b!important}
 .datawrap>table>tbody>tr>td[data-r40-actions]>.flex,.tablewrap>table>tbody>tr>td[data-r40-actions]>.flex{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
 .datawrap>table>tbody>tr>td[data-r40-actions] button,.tablewrap>table>tbody>tr>td[data-r40-actions] button{min-height:42px;padding:8px 12px;flex:0 1 auto;font-size:12px}
 .datawrap>table>tbody>tr>td[colspan],.tablewrap>table>tbody>tr>td[colspan]{grid-column:1/-1!important}
 .datawrap>table>tbody>tr>td[colspan]:before,.tablewrap>table>tbody>tr>td[colspan]:before{display:none}
 .datawrap>table>tbody>tr:hover,.tablewrap>table>tbody>tr:hover{background:#1d2428}
 .datawrap>table>tbody>tr>td .tag,.tablewrap>table>tbody>tr>td .tag{max-width:100%;white-space:normal}
 .datawrap>table>tbody>tr>td .btn,.tablewrap>table>tbody>tr>td .btn{white-space:normal}
 .datawrap>table>tbody>tr>td[data-label] .small,.tablewrap>table>tbody>tr>td[data-label] .small{font-size:11px}
}
@media(max-width:1080px){
 .layout>.stage,.shell>.content{padding:17px 17px 45px}
 .club-hero{padding:20px!important;min-height:0!important;gap:14px!important}
 .club-hero img{width:102px!important;height:102px!important}
 .club-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 .club-dashboard .club-side,.club-dashboard .club-main,.club-dashboard .club-grid{min-width:0;max-width:100%}
 .fin-dash-columns{grid-template-columns:1fr!important}
 .fin-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .formgrid,.fields{gap:11px}
}
@media(max-width:900px){
 .layout,.shell,.fin-shell{display:block!important;min-height:100dvh!important}
 .layout>.sidebar,.shell>.sidebar,.fin-shell>.sidebar{position:relative!important;top:auto!important;left:auto!important;align-self:initial!important;z-index:18!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;overflow:visible!important;padding:12px 14px!important;border-right:0!important;border-bottom:1px solid #353d43!important}
 .layout>.sidebar .brand,.shell>.sidebar .mark{margin:0 0 9px!important;padding:3px 0 10px!important}
 .layout>.sidebar .brand img,.shell>.sidebar .brandlogo{width:43px!important;height:43px!important}
 .layout>.sidebar .brand strong,.shell>.sidebar .mark strong{font-size:13px!important}
 .layout>.stage,.shell>.content,.fin-shell>.content{width:100%!important;max-width:100%!important;padding:17px 14px 48px!important}
 .r40-mobile-menu-button{display:flex!important}
 .sidebar.r40-menu-enhanced nav:not(.is-open){display:none!important}
 .sidebar.r40-menu-enhanced nav.is-open{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;padding:10px 0!important;margin:0!important;overflow:visible!important;max-width:100%!important}
 .sidebar nav .nav{display:flex!important;align-items:center;gap:7px;justify-content:flex-start;min-width:0!important;width:100%!important;max-width:100%!important;min-height:44px!important;margin:0!important;padding:9px 10px!important;white-space:normal!important;text-align:left!important;overflow-wrap:anywhere!important;font-size:12px!important}
 .sidebar nav .nav .ic,.sidebar nav .nav i{flex-shrink:0}
 .sidebarfoot{display:none!important}.sidebar .navgroup{display:none!important}
 .fin-navigation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .club-dashboard{max-width:100%}
 .club-hero{padding:19px!important}
 .top,.finance-header{gap:10px!important;padding-bottom:14px!important;margin-bottom:17px!important}
 .fin-header-actions{gap:8px!important}
 .fin-header-actions .btn{min-height:40px}
 .access-list,.access-cards{width:100%;max-width:100%}
 .access-user,.access-card{grid-template-columns:1fr!important;min-width:0;overflow-wrap:anywhere}
 .access-user-info,.access-facts{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .access-user-actions,.access-card-actions{justify-content:flex-start!important}
}
@media(max-width:650px){
 .layout>.stage,.shell>.content,.fin-shell>.content{padding:13px 11px 37px!important}
 .panel,.club-panel,.fin-dash-panel{padding:14px!important;margin-block:11px}
 .club-hero{padding:16px!important}
 .club-hero img{max-width:84px!important;max-height:84px!important}
 .club-hero h2{font-size:22px!important}
 .club-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .club-stat{padding:12px!important;min-width:0}
 .club-stat strong{font-size:23px!important;overflow-wrap:anywhere}
 .club-media-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;overflow:visible!important;scroll-snap-type:none!important;gap:9px!important}
 .club-photo-card{min-width:0!important;max-width:none!important;width:100%!important;min-height:0!important;scroll-snap-align:none!important}
 .datawrap>table>tbody,.tablewrap>table>tbody{grid-template-columns:1fr!important}
 .formgrid,.fields,#userForm .fields{grid-template-columns:1fr!important}
 .modalback,.overlay{padding:7px!important;overflow-x:hidden}
 .modal{width:calc(100vw - 14px)!important;max-width:calc(100vw - 14px)!important;max-height:calc(100dvh - 14px)!important;overflow-x:hidden!important;padding:15px!important;border-radius:11px!important}
 .modalhead,.modalfoot{flex-wrap:wrap;gap:10px}
 .modalfoot>.btn{flex:1 1 auto;min-height:44px}
 .toolbar,.filters,.between{gap:9px}
 .filters input[data-search],.filters input{width:100%!important;min-width:0;flex:1 1 180px}
 .filters .btn{flex:1 1 auto}
 .fin-subnav{gap:6px!important;flex-wrap:wrap!important;overflow:visible!important}
 .fin-subnav .fin-sub{min-height:39px;font-size:11px;white-space:normal}
 .fin-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 .fin-kpi{padding:12px!important;min-height:0!important}
 .fin-kpi strong{font-size:clamp(17px,5.2vw,23px)!important}
 .fin-kpi small{font-size:10px!important}
 .fin-hero{padding:18px!important}
 .fin-dash-panel{padding:14px!important}
 .fin-chart{overflow-x:hidden!important;grid-auto-columns:minmax(0,1fr)!important;gap:3px!important}
 .fin-chart-col{min-width:0!important}
 .fin-chart-col b{font-size:9px!important}
 .fin-due-row{gap:9px!important}
 .fin-due-row>div:first-child{max-width:65%}
 .access-permission-row,.access-row{grid-template-columns:1fr!important}
 .r40-atlas{max-width:100%!important}
}
@media(max-width:365px){
 .sidebar.r40-menu-enhanced nav.is-open{grid-template-columns:1fr!important}
 .fin-kpi-grid,.club-stats{grid-template-columns:1fr!important}
 .club-media-grid{grid-template-columns:1fr!important}
}
@media(prefers-reduced-motion:reduce){.r40-mobile-menu-button .r40-menu-chevron{transition:none}}


html,body{max-width:100%;overflow-x:clip}
@media(max-width:900px){
.fin-shell .sidebar{max-width:100%!important;width:100%!important;overflow:visible!important}
.fin-shell .sidebar nav.fin-navigation{display:none!important;flex-direction:column!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow:visible!important;padding:0!important;margin:0!important}
.fin-shell .sidebar.r40-menu-enhanced nav.fin-navigation.is-open{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:10px 0!important}
.fin-shell .sidebar nav.fin-navigation button.nav{display:flex!important;flex-direction:row!important;min-width:0!important;width:100%!important;max-width:100%!important;align-items:center!important;gap:10px!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;line-height:1.4!important;padding:11px!important;min-height:50px!important}
.fin-shell .sidebar nav.fin-navigation button.nav>span:first-child{flex:0 0 22px!important;min-width:22px!important}
.fin-shell .sidebar nav.fin-navigation button.nav>span:last-child{flex:1!important;min-width:0!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;font-size:13px!important}
.fin-shell .finance-subnav{display:flex!important;flex-wrap:wrap!important;overflow:visible!important;gap:7px!important}
.fin-shell .finance-subnav button{min-height:44px!important;white-space:normal!important}
.fin-shell main.content{width:100%!important;max-width:100%!important;padding:14px 12px calc(98px + env(safe-area-inset-bottom))!important}
}
@media(max-width:410px){.fin-shell .sidebar.r40-menu-enhanced nav.fin-navigation.is-open{grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:768px){
html,body{overflow-x:hidden}
input:not([type=checkbox]):not([type=radio]),textarea,select{font-size:16px!important}
button,.btn,[role=button]{min-height:44px}
.fin-shell .formgrid,.fin-shell .fields,.layout .fields{grid-template-columns:minmax(0,1fr)!important}
.modalback .modal,.overlay .modal{max-height:calc(100dvh - 14px)!important;max-width:calc(100vw - 14px)!important;overflow-y:auto!important}
.modal .actions{position:sticky;bottom:0;z-index:7;background:#171c1f;border-top:1px solid #394147;padding:12px 0;display:flex;flex-wrap:wrap}
.r40-bottom-nav{display:grid!important}
body.r40-mobile-nav-visible{padding-bottom:calc(74px + env(safe-area-inset-bottom))}
}
.r40-bottom-nav{display:none;position:fixed;bottom:0;left:0;right:0;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;padding:6px 5px calc(6px + env(safe-area-inset-bottom));background:#101417fb;border-top:1px solid #464f54;box-shadow:0 -6px 26px #0009;z-index:2000}
.r40-bottom-nav button{min-width:0;min-height:54px;border:0;border-radius:8px;background:transparent;color:#d2dce1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:4px 1px;font:600 10px/1.2 system-ui}
.r40-bottom-nav button span:first-child{font-size:20px;line-height:1}
.r40-bottom-nav button.is-active{background:#2b3439;color:#fff}
.r40-bottom-nav button:focus-visible{outline:2px solid white;outline-offset:-2px}

.r40-photo-card{display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:14px;margin:13px 0;border:1px solid #465157;border-radius:12px;background:#1a2225}.r40-photo-preview{width:90px;height:90px;border-radius:50%;border:2px solid #84949b;display:grid;place-items:center;overflow:hidden;background:#2d383f;color:white;font-size:25px;font-weight:750;flex-shrink:0}.r40-photo-preview img{width:100%;height:100%;object-fit:cover}.r40-photo-options{min-width:160px;flex:1;display:grid;gap:8px}.r40-photo-options small{font-size:11px;color:#aebdc6;line-height:1.5}.r40-photo-options input{max-width:100%;min-height:44px}.r40-photo-options button{max-width:max-content}.r40-personal-recipient{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;padding:12px 0;border-bottom:1px solid #3d474c}.r40-personal-recipient strong{font-size:13px}.r40-personal-recipient small{font-size:11px;color:#aebdc4}.r40-personal-actions{display:flex;flex-wrap:wrap;gap:7px}.r40-personal-actions a{display:inline-flex;align-items:center;min-height:44px;padding:10px 12px;background:#e5ebef;color:#11171a!important;border:1px solid #cbd5db;border-radius:8px;font-size:12px;font-weight:750;text-decoration:none!important}.r40-personal-actions a+a{background:#29343b;color:#fff!important}.r40-comm-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:10px 0;padding:12px;background:#262e32;border-radius:10px}.r40-comm-tools select{flex:1;min-width:170px;min-height:44px}.r40-fin-audit{background:#22211f;border:1px solid #7f6a50;border-radius:12px;padding:17px;margin:12px 0}.r40-fin-audit h3{margin:0 0 9px;font-size:15px}.r40-fin-audit p{font-size:12px;color:#d7cfc1;line-height:1.5}.r40-fin-audit summary{font-size:12px;min-height:44px;padding:12px 0;cursor:pointer}.r40-fin-audit-row{display:flex;align-items:center;flex-wrap:wrap;gap:9px;padding:9px 0;border-top:1px solid #51483b;font-size:12px}.r40-fin-audit-row strong{flex:1;min-width:165px}.r40-fin-audit-row button{min-height:44px;padding:9px 13px;border:0;border-radius:8px;background:#dfe7eb;color:#121819;font-weight:700}@media(max-width:570px){.r40-personal-actions{width:100%}.r40-personal-actions a{flex:1;justify-content:center}}

body.r40-mural-shown .club-photos-uploaded{display:none!important}
.r40-mural-panel{padding:20px!important;min-width:0;max-width:100%;border:1px solid #38434a;border-radius:13px;background:#171c20}
.r40-mural-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;border-bottom:1px solid #39444b;padding-bottom:14px}
.r40-mural-header h3{font-size:clamp(18px,2.3vw,24px);margin:7px 0;color:#f5f5f5}
.r40-mural-header p{font-size:12px;color:#aebdc5;line-height:1.4}
.r40-mural-header strong{font-size:11px;color:#dbe7ed;white-space:nowrap}
.r40-mural-upload{margin:15px 0;border:1px solid #45535b;border-radius:10px;background:#21292e;padding:14px}
.r40-mural-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.r40-mural-fields label{display:grid;gap:8px;font-size:11px;font-weight:700;min-width:0;color:#d1dde5}
.r40-mural-fields select,.r40-mural-fields input{width:100%;min-width:0;max-width:100%;font-size:16px;min-height:44px;border:1px solid #596a75;border-radius:8px;background:#121719;color:#f5f5f5;padding:9px}
.r40-mural-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:12px}
.r40-mural-actions button{min-height:44px!important}
.r40-mural-actions small{font-size:11px;color:#bdcbd3;flex:1;line-height:1.5}
.r40-mural-status{margin:13px 0;color:#b6c4ce;font-size:12px}
.r40-mural-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;border:1px solid #3b474e;background:#20282c;border-radius:9px;padding:10px;margin:10px 0}
.r40-mural-tools[hidden]{display:none!important}
.r40-mural-tools span{font-size:11px;flex:1;min-width:100px;color:#dce8ec;font-weight:700}
.r40-mural-tools button{min-height:44px!important}
.r40-mural-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr));gap:12px}
.r40-mural-card{min-width:0;background:#212a2f;border:1px solid #3a4850;border-radius:10px;overflow:hidden}
.r40-mural-card>a,.r40-mural-unavailable{display:block;aspect-ratio:4/3;background:#29343b}
.r40-mural-card>a img{width:100%;height:100%;object-fit:cover;display:block}
.r40-mural-unavailable{display:grid;place-items:center;font-size:11px;text-align:center;padding:12px;color:#bccbd1}
.r40-mural-caption{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px;padding:10px}
.r40-mural-caption strong{font-size:12px;display:block;overflow-wrap:anywhere}
.r40-mural-caption small{font-size:10px;display:block;color:#b5c3cb;margin-top:4px}
.r40-mural-caption label{display:inline-flex;align-items:center;gap:6px;font-size:11px;min-height:44px;cursor:pointer}
.r40-mural-caption input{width:19px;height:19px;accent-color:#d7e5ec}
@media(max-width:700px){.r40-mural-fields{grid-template-columns:1fr}.r40-mural-panel{padding:13px!important}.r40-mural-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.r40-mural-tools button{flex:1}}
@media(max-width:365px){.r40-mural-grid{grid-template-columns:1fr}.r40-mural-actions button{width:100%}}


/* Foto de perfil — layout 360px–desktop, escolha + confirmação separadas */
.r40-photo-native{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap!important;border:0!important}
.r40-photo-action-row{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:8px;min-width:0;width:100%}
.r40-photo-action-row>.btn,.r40-photo-action-row>button,.r40-photo-action-row>label{display:inline-flex;justify-content:center;align-items:center;min-height:46px!important;padding:11px 14px!important;border-radius:9px;flex:1 1 142px;max-width:100%;cursor:pointer;text-align:center;line-height:1.25;white-space:normal}
.r40-photo-action-row .r40-photo-choose{color:#f5f5f5!important;border:1px solid #7b858c!important;background:#2b343a!important}
.r40-photo-action-row #r40-photo-save{background:#ebeff2!important;color:#11181c!important;font-weight:750}
.r40-photo-action-row #r40-photo-save:disabled{opacity:.4!important;cursor:not-allowed}
.r40-photo-action-row .r40-photo-remove-action{flex:0 1 auto!important;min-width:105px}
.r40-photo-feedback{font-size:12px!important;line-height:1.5!important;color:#b6d0db;overflow-wrap:anywhere;word-break:normal;margin:3px 0 0!important}
.r40-photo-feedback[data-error=true]{color:#ffc8bc}
.r40-photo-card .r40-photo-options{min-width:0!important;flex:1 1 180px}
.r40-photo-card .r40-photo-preview{flex:0 0 90px;max-width:90px;max-height:90px}
.r40-photo-card .r40-photo-preview img{object-fit:cover;width:100%;height:100%;display:block}
.r40-photo-card .r40-photo-preview img[hidden]{display:none}
@media(max-width:460px){
.r40-photo-card{padding:12px!important;gap:12px!important}
.r40-photo-card .r40-photo-preview{width:75px!important;height:75px!important;flex-basis:75px}
.r40-photo-action-row>.btn,.r40-photo-action-row>button,.r40-photo-action-row>label{font-size:13px!important;flex-basis:130px}
.r40-photo-action-row .r40-photo-remove-action{flex:1 1 100%!important}
}


/* Rota 040 MC — atas oficiais, assinatura e editor responsive */
.ata-list-intro{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;padding:18px 22px;border:1px solid #37434b;border-radius:15px;background:#171c1f;margin-bottom:14px}
.ata-list-intro h2{font-size:clamp(19px,2.7vw,25px);margin:6px 0}
.ata-list-intro p,.ata-editor-head p{color:#b2c0c6;font-size:13px;line-height:1.5;margin:7px 0}
.ata-list-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;min-width:0;margin-top:17px}
.ata-list-card{padding:19px;border:1px solid #38454d;border-radius:13px;background:#161b1e;min-width:0;display:flex;flex-direction:column;gap:11px}
.ata-list-top{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#b1c2c9;font-size:11px;font-weight:750}
.ata-list-card h3{font-size:17px;line-height:1.3;margin:0;overflow-wrap:anywhere}
.ata-list-card p{font-size:12px;color:#b9c7ce;line-height:1.5;margin:0;overflow-wrap:anywhere}
.ata-doc-chip{color:#bbc9d0;background:#222b30;padding:6px 8px;border:1px solid #41515a;border-radius:7px;font-size:10px;overflow-wrap:anywhere;align-self:flex-start}
.ata-list-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:auto}
#modal .modal:has(.ata-preview),#modal .modal:has(.ata-editor-layout){width:min(1060px,95vw);max-width:95vw;max-height:min(94vh,1100px);overflow:auto}
.ata-editor-layout,.ata-preview,.ata-sign-modal{min-width:0;width:100%}
.ata-editor-head{margin-bottom:18px}
.ata-editor-head h2{margin:5px 0;font-size:25px}
.ata-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.ata-editor-grid label,.ata-wide-label,.ata-file-box label{display:grid;gap:7px;font-weight:700;font-size:12px;color:#becbd2;min-width:0}
.ata-editor-grid input,.ata-editor-grid select,.ata-wide-label textarea,.ata-file-box input{width:100%;min-width:0;background:#101315;border:1px solid #4d5a62;color:#f6f7f7;border-radius:9px;padding:12px;font-size:16px;min-height:46px}
.ata-wide-label{margin:17px 0}.ata-wide-label textarea{min-height:95px;resize:vertical}
.ata-editor-layout h3,.ata-editor-people h3,.ata-file-box h3{font-size:16px;margin:18px 0 6px}
.ata-editor-hint,.ata-editor-people p,.ata-file-box p{font-size:12px;color:#b2bfc7;line-height:1.6}
.ata-toolbar{display:flex;gap:6px;flex-wrap:wrap;padding:9px;border:1px solid #48545b;background:#222a2e;border-radius:10px 10px 0 0}
.ata-editor-button{border:1px solid #56646d;border-radius:7px;padding:8px 12px;min-height:44px;min-width:44px;cursor:pointer;background:#2b353a;color:#f5f5f5;font-weight:800}
.ata-editor-button.ata-structure{min-width:auto;margin-left:auto;font-size:12px}
.ata-rich-edit{min-height:250px;max-height:440px;overflow:auto;background:#fdfdfc;color:#202326;border:1px solid #46545b;border-top:0;padding:23px;outline:0;border-radius:0 0 10px 10px;line-height:1.7;font:16px/1.7 Georgia,serif;overflow-wrap:anywhere}
.ata-rich-edit:focus-visible{outline:2px solid #9cc4da;outline-offset:0}
.ata-rich-edit h3,.ata-rich-view h3{margin:19px 0 7px;font-size:17px;color:#202326}
.ata-rich-edit p,.ata-rich-view p{margin:0 0 12px}
.ata-editor-people{border:1px solid #414c54;padding:15px;border-radius:10px;margin-top:19px}
.ata-people-actions{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.ata-people-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ata-check{display:flex;gap:11px;align-items:center;background:#1b2327;border:1px solid #3d4b53;padding:12px;border-radius:9px;min-width:0;cursor:pointer}
.ata-check input,.ata-consent input{width:20px;height:20px;flex:0 0 20px}
.ata-check span{display:grid;gap:3px;min-width:0}.ata-check strong{overflow-wrap:anywhere;font-size:12px}.ata-check small{font-size:11px;color:#b2c0c8}
.ata-file-box{padding:17px;background:#1b2226;border:1px solid #3a474d;border-radius:11px;margin:19px 0}
.ata-current-file{overflow-wrap:anywhere}.ata-form-buttons{display:flex;justify-content:flex-end;align-items:center;gap:9px;flex-wrap:wrap;padding-top:15px;border-top:1px solid #455056}
.ata-preview-top{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-bottom:12px}
.ata-preview-top h2{margin:7px 0}.ata-view-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0}
.ata-view-tabs button{background:#263137;border:1px solid #4d5d66;color:#dfe6e9;border-radius:8px;padding:12px 17px;min-height:44px;font-weight:800;cursor:pointer}
.ata-view-tabs button.active{background:#edf0f1;color:#11181b}
.ata-sheet{background:#fdfcf9;color:#181c1e;max-width:850px;margin:auto;min-height:570px;padding:clamp(17px,4vw,45px);border:1px solid #d3d5d6;box-shadow:0 6px 32px #0004;font:15px/1.68 Georgia,serif;overflow-wrap:anywhere}
.ata-letter-head{display:flex;align-items:center;justify-content:center;gap:21px;text-align:center;border-bottom:2px solid #30383a;padding-bottom:20px}
.ata-letter-head img{width:78px;height:78px;object-fit:contain;filter:grayscale(1)}
.ata-letter-head h2{font:800 26px/1.15 Arial,sans-serif;margin:6px 0 3px}
.ata-letter-head span{font:700 10px Arial,sans-serif;letter-spacing:.13em}.ata-letter-head p{font:700 11px Arial,sans-serif;margin:2px}
.ata-letter-info{border-bottom:1px solid #d5d7d8;padding-bottom:15px;margin-bottom:23px;font:12px/1.5 Arial,sans-serif}
.ata-letter-info h1{font-size:18px;line-height:1.35;margin:20px 0 9px}
.ata-letter-info p{margin:5px 0}
.ata-letter-attendees{font-size:13px;margin:13px 0 22px}.ata-letter-attendees>div{display:flex;gap:7px;flex-wrap:wrap;margin-top:7px}
.ata-person{border:1px solid #d0d4d4;padding:5px 8px;border-radius:6px;font:11px Arial,sans-serif}.ata-person small{display:block;font-size:9px;color:#60666a}
.ata-rich-view{font:15px/1.75 Georgia,serif;min-height:160px}.ata-rich-view p{margin:0 0 12px}.ata-rich-view ul,.ata-rich-view ol{padding-left:25px}
.ata-letter-extra{margin:24px 0;font-size:13px}.ata-letter-extra h3{font-size:14px;margin-bottom:7px}.ata-letter-footer{border-top:1px solid #cdd1d4;margin-top:28px;padding-top:20px;font-size:12px}
.ata-letter-footer>small{display:block;color:#697177;font:9px/1.5 Arial,sans-serif;margin-top:25px}
.ata-signatures{display:flex;gap:12px;align-items:flex-start;flex-wrap:wrap;margin-top:18px}
.ata-signatures>h3{flex:0 0 100%;font:700 14px Arial,sans-serif}
.ata-signature-block{min-width:190px;max-width:240px;width:46%;text-align:center;display:grid;justify-items:center;gap:4px;padding:12px;background:#f8f8f7;border:1px solid #d0d3d5;color:#1b2226;page-break-inside:avoid}
.ata-signature-block img{height:58px;max-width:100%;object-fit:contain}.ata-signature-block strong{font:700 11px Arial,sans-serif}.ata-signature-block span{font:10px Arial,sans-serif}.ata-signature-block small{font:9px Arial,sans-serif;color:#4a565d}
.ata-old-signature{opacity:.65;border-style:dashed}.ata-signature-placeholder{height:58px;display:grid;place-items:center;color:#687078;font-size:10px}
.ata-signature-empty{font-size:12px;color:#495056}
.ata-external{background:#f1f3f4;color:#182227;padding:12px;min-width:0}
.ata-external-top{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;font:12px Arial,sans-serif;margin-bottom:11px}
.ata-external-top span{overflow-wrap:anywhere}.ata-pdf-frame{display:block;border:1px solid #bec8ce;width:100%;height:clamp(350px,55vh,780px);background:#fff}
.ata-attachment-img{display:block;max-width:100%;height:auto;margin:auto}
.ata-open-file{display:inline-flex;margin:10px 0}
.ata-external>p{font:11px/1.5 Arial,sans-serif;color:#4c5960}
.ata-bottom-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:15px}
.ata-sign-preview{max-height:370px;overflow:auto;background:#f7f8f8;border:1px solid #45525b;padding:10px}
.ata-sign-modal .signature{width:100%;height:auto;max-width:100%;touch-action:none;background:#fff;display:block;margin:12px 0}
.ata-sign-modal>h2{font-size:22px;margin:0 0 12px}.ata-sign-modal form p{margin:7px 0}.ata-consent{display:flex;gap:9px;align-items:flex-start;margin:14px 0;font-size:12px}
.ata-preview [hidden]{display:none!important}
@media(max-width:700px){
 .ata-list-grid,.ata-people-list,.ata-editor-grid{grid-template-columns:1fr}
 .ata-list-intro,.ata-list-card{padding:15px}
 #modal .modal:has(.ata-preview),#modal .modal:has(.ata-editor-layout){position:fixed;inset:0 0 env(safe-area-inset-bottom) 0;max-height:100dvh;max-width:100vw;width:100vw;height:100dvh;border-radius:0;padding:17px;overflow-y:auto}
 .ata-sheet{padding:17px;min-height:430px}
 .ata-letter-head{gap:9px}.ata-letter-head img{width:52px;height:52px}.ata-letter-head h2{font-size:19px}
 .ata-letter-info h1{font-size:15px}
 .ata-signature-block{min-width:130px;width:100%;max-width:none}
 .ata-bottom-actions .btn,.ata-form-buttons .btn{min-height:44px}
 .ata-pdf-frame{height:58vh}
}
@media print{
 @page{size:A4;margin:14mm}
 body>*:not(#modal){display:none!important}
 #modal,#modal .overlay,#modal .modal{position:static!important;inset:auto!important;max-height:none!important;width:100%!important;max-width:100%!important;margin:0!important;border:0!important;padding:0!important;background:#fff!important;box-shadow:none!important;overflow:visible!important}
 #modal .ata-preview-top,#modal .ata-view-tabs,#modal .ata-bottom-actions,#modal #ata-sign-tab{display:none!important}
 #modal #ata-doc-tab{display:block!important}
 #modal .ata-sheet{box-shadow:none!important;border:0!important;padding:0!important;width:100%!important;max-width:none!important}
 #modal .ata-signature-block{break-inside:avoid}
}


/* Fotos de Calendário & KM integradas em Memórias do Clube */
.club-media-grid .club-event-memory{min-width:0}
.club-event-memory-info{gap:5px}
.club-event-memory-info b{font-size:clamp(15px,1.55vw,19px);line-height:1.22;overflow-wrap:anywhere}
.club-event-memory-place{display:block;color:#eef0f0;font-weight:550;font-size:clamp(10px,.96vw,12px);line-height:1.4;overflow-wrap:anywhere}
.club-event-memory-meta{font-style:normal;display:flex;gap:7px;flex-wrap:wrap;align-items:center;color:#d7dfe1;font-size:10px;line-height:1.4}
.club-event-memory:focus-visible{outline:2px solid #f5f5f5;outline-offset:3px}
@media(min-width:611px) and (max-width:1199px){
  .club-media-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,215px),1fr));overflow:visible}
}
@media(max-width:610px){
  .club-media-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;overflow:visible!important;scroll-snap-type:none!important}
  .club-media-grid .club-photo-card{box-sizing:border-box;min-width:0!important;max-width:none!important;width:100%!important;flex:none!important;min-height:225px;aspect-ratio:3/4;max-height:none;scroll-snap-align:none}
  .club-media-grid .club-photo-overlay{left:11px;right:9px;bottom:12px;gap:4px}
  .club-media-grid .club-photo-overlay b{font-size:clamp(13px,3.5vw,17px);line-height:1.18}
  .club-event-memory-place{font-size:10px}
  .club-event-memory-meta{font-size:10px;gap:5px}
}
@media(max-width:365px){
  .club-media-grid{gap:8px!important}
  .club-media-grid .club-photo-card{min-height:222px}
  .club-media-grid .club-photo-overlay{left:9px;right:7px;bottom:10px}
  .club-media-grid .club-photo-overlay b{font-size:13px}
}

#clubRoadMap,#map{width:100%;height:clamp(335px,52vh,520px);max-width:100%;border-radius:12px;overflow:hidden;background:#d7e2e3}
.r40-km-popup{min-width:190px;max-width:290px;color:#1a2428;font:12px/1.4 system-ui,sans-serif}
.r40-km-popup>small{display:block;font-size:9px;letter-spacing:.09em;color:#597077;font-weight:800;margin-bottom:6px}
.r40-km-popup>strong{display:block;font-size:17px;line-height:1.26;margin-bottom:5px;overflow-wrap:anywhere}
.r40-km-popup>span{display:block;color:#53656d;font-size:11px;margin-bottom:11px}
.r40-km-pop-facts{border-top:1px solid #dce2e5;border-bottom:1px solid #dce2e5;padding:5px 0}
.r40-km-pop-facts p{display:flex;justify-content:space-between;gap:10px;align-items:baseline;margin:7px 0}
.r40-km-pop-facts b{color:#56676f;font-size:10px}
.r40-km-pop-people{background:#eff2f4;border-radius:8px;padding:10px;margin:9px 0}
.r40-km-pop-people ul{margin:5px 0 0;padding-left:19px;max-height:125px;overflow:auto}
.r40-km-pop-people li{margin:3px 0}
.r40-km-pop-people p{color:#66777e;margin:4px 0}
.r40-km-popup>a{display:inline-block;color:#21516a;text-decoration:underline;font-weight:800}
.r40-km-additions{display:grid;gap:16px;min-width:0;border-top:1px solid #47515a;padding-top:18px;margin-top:12px}
.r40-km-duration{display:grid;gap:7px;max-width:380px;font-size:12px}
.r40-km-duration input{min-height:46px;font-size:16px;padding:10px;border-radius:8px;background:#111619;border:1px solid #4c5961;color:#f7f7f7}
.r40-km-duration small,.r40-km-photo small{font-size:11px;color:#adbdc5}
.r40-km-roster-head{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px}
.r40-km-roster-head h3{margin:0 0 6px;font-size:17px}
.r40-km-roster-head p{font-size:12px;color:#c2ced3;margin:0}
.r40-km-roster-tools{display:flex;flex-wrap:wrap;gap:7px}
.r40-km-roster-tools button{min-height:44px}
.r40-km-roster{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.r40-km-member{display:flex;align-items:center;gap:10px;min-height:49px;background:#20292d;border:1px solid #44545e;border-radius:9px;padding:12px;font-size:12px;overflow-wrap:anywhere}
.r40-km-member input{width:20px;height:20px;flex:0 0 20px;accent-color:#b7cbd2}
.r40-km-historic{font-size:11px;color:#b9c6cc}
.r40-km-photo{border:1px solid #48565d;border-radius:10px;background:#1b2428;padding:15px}
.r40-km-photo label{display:grid;gap:9px}
.r40-km-photo input{min-height:46px;font-size:16px;max-width:100%;padding:8px;border-radius:8px;border:1px solid #586670;background:#101416;color:#f5f5f5}
.r40-km-photo p{color:#bac6cc;font-size:11px;margin:7px 0}
.r40-km-event-details{padding:14px;border:1px solid #3d4c53;border-radius:10px;background:#1a2225;margin:12px 0}
.r40-km-event-details h3{margin:0 0 10px}
.r40-km-event-details p{line-height:1.6}
.r40-km-person{display:inline-block;border:1px solid #55656e;border-radius:20px;padding:5px 9px;margin:3px}
@media(max-width:640px){.r40-km-roster{grid-template-columns:1fr}#clubRoadMap,#map{height:350px}.r40-km-duration{max-width:100%}}


/* Galeria limpa - somente dois links discretos */
.club-mini-links{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin:-5px 0 15px}
.club-mini-links a{display:inline-flex;justify-content:center;align-items:center;padding:8px 14px;
 min-height:40px;border:1px solid #4a5358;border-radius:8px;background:#252a2d;
 font-size:11px;font-weight:750;letter-spacing:.02em;color:#f5f5f5!important;text-decoration:none}
.club-mini-links a:hover{background:#3a4246;border-color:#85949a}
.club-mini-links a:focus-visible{outline:2px solid #f5f5f5;outline-offset:3px}
/* Painel e KM: o mesmo mapa com clipping correto e enquadramento */
.club-columns,.club-columns>*{min-width:0;max-width:100%}
#clubRoadMap.club-road-map,#map.map{
 box-sizing:border-box!important;display:block!important;
 position:relative!important;
 width:100%!important;min-width:0!important;max-width:100%!important;
 height:clamp(330px,45vh,440px)!important;
 min-height:330px!important;max-height:440px!important;
 overflow:hidden!important;border-radius:10px!important;
 z-index:0!important;isolation:isolate;contain:layout paint;
 background:#dce5e7;
}
#clubRoadMap .leaflet-tile-pane{filter:none!important}
#clubRoadMap .leaflet-control-zoom a{background:#fff!important;color:#1b2529!important}
#clubRoadMap .leaflet-popup-content-wrapper,#clubRoadMap .leaflet-popup-tip{
 background:#fff!important;color:#1b2529!important
}
#clubRoadMap .leaflet-popup-content{color:#1b2529!important}
@media(max-width:650px){
 .club-mini-links{justify-content:flex-start;margin:0 0 12px}
 .club-mini-links a{min-height:44px}
 #clubRoadMap.club-road-map,#map.map{height:340px!important;min-height:340px!important;max-height:340px!important}
}
