/* Mission A — Agenda, with the optional C — Por local organization. */
:is(#s-minha-missao,.ma-dialog){--ma-bg:#101827;--ma-surface:#1c2738;--ma-ink:#f2f5fa;--ma-muted:#b3bfd0;--ma-line:#38445a;--ma-accent:#ecc792;--ma-tint:#3a3228;--ma-red:#ffb5bd;--ma-green:#9bdbc0;--ma-gold:#ecc792;color:var(--ma-ink);font:600 1rem/1.5 Manrope,system-ui,sans-serif}
html[data-theme=light] :is(#s-minha-missao,.ma-dialog){--ma-bg:#f1f3f7;--ma-surface:#fff;--ma-ink:#202648;--ma-muted:#58667c;--ma-line:#d7dce5;--ma-accent:#795424;--ma-tint:#f0e5d3;--ma-red:#a33138;--ma-green:#24684c}
html:root body #s-minha-missao{background:var(--ma-bg);padding:var(--sat,0px) 0 calc(var(--mobile-nav-space,110px) + 20px);overflow-x:hidden}
#missionAgendaRootM{max-width:720px;margin:auto}
:is(#missionAgendaRootM,.ma-dialog) *{box-sizing:border-box}
:is(#missionAgendaRootM,.ma-dialog) :is(button,input,select,textarea){font:inherit;color:inherit}
:is(#missionAgendaRootM,.ma-dialog) button{cursor:pointer;touch-action:manipulation;border:0;background:none;min-height:44px;padding:8px 12px;border-radius:10px}
:is(#missionAgendaRootM,.ma-dialog) :is(button,summary):hover{background:var(--ma-tint)}
:is(#missionAgendaRootM,.ma-dialog) button:active{opacity:.72}
:is(#missionAgendaRootM,.ma-dialog) button:disabled{opacity:.5;cursor:default}
:is(#missionAgendaRootM,.ma-dialog) :is(button,input,select,textarea,summary):focus-visible{outline:3px solid var(--ma-accent);outline-offset:3px}
:is(#missionAgendaRootM,.ma-dialog) :is(h1,h2,h3,strong,b){font-weight:600;margin:0}
:is(#missionAgendaRootM,.ma-dialog) p{margin:0}
:is(#missionAgendaRootM,.ma-dialog) svg{width:22px;height:22px;flex-shrink:0;vertical-align:middle}
:is(#missionAgendaRootM,.ma-dialog) [hidden]{display:none!important}
.ma-heading{display:flex;align-items:center;gap:14px;justify-content:space-between;padding:22px 20px 12px}
.ma-heading>div{min-width:0;flex:1}.ma-heading h1{font-size:1.9rem;line-height:1.2;letter-spacing:-.055em;overflow-wrap:anywhere}
.ma-heading p{font-size:.75rem;color:var(--ma-muted);margin-top:8px!important;overflow-wrap:anywhere}
#missionAgendaRootM .ma-avatar{width:44px;height:44px;min-width:44px;padding:0;display:grid;place-items:center;border-radius:50%;border:1px solid var(--ma-line);background:var(--ma-tint);color:var(--ma-accent);font-size:.8rem;white-space:nowrap}
.ma-content{padding:0 16px 22px}.ma-date{display:flex;align-items:center;justify-content:space-between;gap:4px;margin:2px 0 9px}.ma-date>button:nth-child(2){font-size:.875rem;min-width:0;overflow-wrap:anywhere}
:is(#missionAgendaRootM,.ma-dialog) .ma-icon{display:grid;place-items:center;width:44px;min-width:44px;padding:9px;color:var(--ma-accent)}
.ma-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;margin:2px 0 15px}
#missionAgendaRootM .ma-week button{min-width:0;min-height:62px;padding:7px 1px;color:var(--ma-muted);font-size:.7rem}.ma-week b{display:block;color:var(--ma-ink);font-size:1rem;margin-top:3px!important}
#missionAgendaRootM .ma-week [aria-pressed=true]{color:var(--ma-accent);background:var(--ma-tint)}.ma-week [aria-pressed=true] b{color:var(--ma-accent)}
.ma-tabs{display:flex;padding:4px;background:var(--ma-line);border-radius:13px;gap:3px;margin:4px 0 12px}#missionAgendaRootM .ma-tabs button{flex:1;min-width:0;padding:8px 3px;font-size:.75rem}#missionAgendaRootM .ma-tabs [aria-pressed=true]{background:var(--ma-surface);color:var(--ma-accent);box-shadow:0 1px 3px #0001}
.ma-search-row{display:flex;gap:7px;align-items:center}.ma-search{display:flex;align-items:center;gap:8px;flex:1;min-width:0;padding-left:11px;border:1px solid var(--ma-line);border-radius:12px;background:var(--ma-surface);color:var(--ma-muted)}.ma-search svg{width:18px!important;height:18px!important}
#missionAgendaRootM .ma-search input{width:100%;min-width:0;min-height:46px;border:0;background:none;padding:8px 4px;font-size:.82rem;box-shadow:none;color:var(--ma-ink)}.ma-search input::placeholder{color:var(--ma-muted);opacity:1}
#missionAgendaRootM :is(.ma-filter,.ma-locations){position:relative;min-height:48px;border:1px solid var(--ma-line);border-radius:12px;background:var(--ma-surface)}#missionAgendaRootM :is(.ma-filter,.ma-locations)[aria-pressed=true]{background:var(--ma-tint);outline:1px solid var(--ma-accent)}
.ma-filter-count{position:absolute;right:-4px;top:-6px;min-width:18px;min-height:18px;padding:1px 4px;font-size:11px;line-height:16px;border-radius:6px;background:var(--ma-accent);color:var(--ma-surface);border:1px solid var(--ma-surface)}
.ma-sync{font-size:.75rem;color:var(--ma-muted);margin-top:10px}.ma-sync:empty{display:none}.ma-sync button{color:var(--ma-accent)!important;text-decoration:underline}
.ma-caption{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:16px 0 10px;color:var(--ma-muted);font-size:.73rem}.ma-caption strong{flex-shrink:0;color:var(--ma-ink)}
.ma-group{margin:22px 0 0}.ma-group h2{display:flex;justify-content:space-between;gap:12px;font-size:.83rem;margin:0 2px 9px!important}.ma-group h2 span{color:var(--ma-muted)}.ma-group>div{background:var(--ma-surface);border:1px solid var(--ma-line);border-radius:12px;overflow:hidden}
#missionAgendaRootM .ma-order{display:block;width:100%;padding:15px 14px;text-align:left;background:var(--ma-surface);border-radius:0;white-space:normal;overflow-wrap:anywhere}
.ma-order+.ma-order{border-top:1px solid var(--ma-line)!important}.ma-order-top{display:flex;justify-content:space-between;gap:8px;align-items:start;font-size:.7rem;flex-wrap:wrap}.ma-place{display:flex;gap:5px;align-items:center;color:var(--ma-accent)}.ma-order-top svg{width:14px!important;height:14px!important}.ma-status{display:flex;gap:4px;align-items:center;color:var(--ma-muted)}.ma-status.is-stopped,.is-critical{color:var(--ma-red)}.ma-status.is-progress{color:var(--ma-green)}
.ma-order>strong{display:block;font-size:1rem;letter-spacing:-.02em;line-height:1.45;margin:7px 0!important}.ma-meta{display:block;color:var(--ma-muted);font-size:.72rem;line-height:1.6}.ma-order-tail{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:.7rem;color:var(--ma-muted);margin-top:9px}.ma-order-tail>span{display:flex;align-items:center;gap:5px}.ma-order-tail svg{width:14px!important;height:14px!important}
.ma-empty{text-align:center;padding:38px 16px;color:var(--ma-muted)}.ma-empty h2{font-size:1rem;color:var(--ma-ink);margin:10px 0 6px!important}.ma-empty p{font-size:.8rem;margin-bottom:14px!important}
.ma-local-caption{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.83rem;margin:18px 0}.ma-local-caption>span{display:flex;gap:6px;align-items:center}.ma-local-caption>small{font-size:.7rem;color:var(--ma-muted)}
.ma-local-group{border:1px solid var(--ma-line);border-radius:12px;background:var(--ma-surface);overflow:hidden;margin-bottom:12px}.ma-local-group summary{list-style:none;cursor:pointer;min-height:94px;display:flex;align-items:center;gap:14px;padding:16px}.ma-local-group summary::-webkit-details-marker{display:none}.ma-local-group summary>span:nth-child(2){flex:1;min-width:0}.ma-local-group summary strong{display:block;font-size:1.03rem;overflow-wrap:anywhere}.ma-local-group summary p{font-size:.73rem;color:var(--ma-muted);margin-top:4px!important}.ma-local-group .ma-critical-note{color:var(--ma-red)}.ma-local-tile{min-width:58px;width:58px;text-align:center;font-size:1.4rem;letter-spacing:-.05em;color:var(--ma-accent);overflow-wrap:anywhere}.ma-local-tile small{display:block;font-size:.7rem;letter-spacing:0}.ma-local-group[open] summary{border-bottom:1px solid var(--ma-line)}.ma-local-group[open] summary>svg{transform:rotate(90deg)}#missionAgendaRootM .ma-local-group .ma-order{padding-left:24px}.ma-local-group .ma-order .ma-place{display:none}
.ma-dialog{position:fixed;margin:auto;padding:0;width:440px;max-width:calc(100vw - 24px);max-height:90dvh;border:1px solid var(--ma-line);border-radius:22px;background:var(--ma-surface);color:var(--ma-ink);overflow:auto;overscroll-behavior:contain}.ma-dialog::backdrop{background:#090f1c99}.ma-sheet-head{display:flex;justify-content:space-between;align-items:center;gap:12px;position:sticky;top:0;padding:16px 20px;border-bottom:1px solid var(--ma-line);background:var(--ma-surface);z-index:1}.ma-sheet-head h2{font-size:1.25rem;letter-spacing:-.035em}.ma-sheet-body{padding:20px}.ma-sheet-body>p{font-size:.82rem;color:var(--ma-muted);margin-bottom:16px!important;overflow-wrap:anywhere}.ma-sheet-footer{position:sticky;bottom:0;display:flex;gap:10px;flex-wrap:wrap;align-items:center;padding:14px 20px calc(14px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--ma-line);background:var(--ma-surface)}
:is(#missionAgendaRootM,.ma-dialog) .ma-primary{background:var(--ma-gold);color:#202648;border:1px solid var(--ma-gold);min-height:48px;padding:12px 16px;border-radius:10px;font-size:.86rem;flex:1}:is(#missionAgendaRootM,.ma-dialog) .ma-secondary{border:1px solid var(--ma-line);background:var(--ma-surface);color:var(--ma-accent);font-size:.86rem;min-height:48px}.ma-full{width:100%;margin-top:18px}
.ma-field{display:block;font-size:.82rem;margin:15px 0}.ma-field :is(select,input){display:block;width:100%;min-width:0;min-height:48px;border:1px solid var(--ma-line);border-radius:10px;background:var(--ma-bg);padding:11px;margin-top:7px}.ma-dates{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ma-dialog summary{font-size:.82rem;min-height:44px;cursor:pointer;padding:10px 0}.ma-detail-title{font-size:1.4rem;letter-spacing:-.04em;line-height:1.35;margin-bottom:10px!important;overflow-wrap:anywhere}.ma-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:18px 0;padding:18px 0;border-block:1px solid var(--ma-line)}.ma-detail-grid dt{font-size:.72rem;color:var(--ma-muted)}.ma-detail-grid dd{font-size:.85rem;margin:5px 0 0;overflow-wrap:anywhere}.ma-instruction{padding:15px;background:var(--ma-bg);border-radius:10px;font-size:.83rem;margin:12px 0;overflow-wrap:anywhere}.ma-instruction p{color:var(--ma-muted);margin-top:7px!important}.ma-report-person{padding-bottom:17px;margin-bottom:18px;border-bottom:1px solid var(--ma-line)}.ma-report-person p{font-size:.75rem;color:var(--ma-muted);margin-top:5px!important}.ma-report-summary{padding:14px;background:var(--ma-bg);border:1px solid var(--ma-line);border-radius:10px;margin-top:20px}.ma-report-summary p{font-size:.75rem;color:var(--ma-muted);margin-top:6px!important}
.ma-large .ma-tabs{flex-wrap:wrap}.ma-large .ma-tabs button{flex-basis:100%}.ma-large .ma-week{grid-template-columns:repeat(4,minmax(0,1fr))}.ma-large .ma-date{flex-wrap:wrap}.ma-large .ma-date>button:nth-child(2){order:-1;flex-basis:100%}.ma-large .ma-heading{align-items:start}.ma-large .ma-heading h1{font-size:1.45rem}.ma-large .ma-search-row{flex-wrap:wrap}.ma-large .ma-search{flex-basis:100%}.ma-large .ma-order-tail{flex-wrap:wrap}.ma-large .ma-local-group summary{flex-wrap:wrap}.ma-large .ma-local-group summary>span:nth-child(2){flex-basis:60%}.ma-large .ma-local-caption{flex-wrap:wrap}
html:has(.ma-large) .ma-dialog .ma-dates,html:has(.ma-large) .ma-detail-grid{grid-template-columns:1fr}html:has(.ma-large) .ma-dialog :is(.ma-sheet-head,.ma-sheet-footer){position:static}
@media(max-width:520px){.ma-heading{padding-inline:16px}.ma-content{padding-inline:12px}.ma-dialog{margin:auto 0 0;width:100%;max-width:100%;max-height:92dvh;border-radius:22px 22px 0 0}.ma-sheet-body{padding:18px 16px}.ma-sheet-head,.ma-sheet-footer{padding-inline:16px}}
@media(prefers-reduced-motion:reduce){:is(#missionAgendaRootM,.ma-dialog) *{transition:none!important;scroll-behavior:auto!important}}
@media(prefers-contrast:more){:is(#s-minha-missao,.ma-dialog){--ma-muted:var(--ma-ink);--ma-line:var(--ma-muted)}}
#missionAgendaRootM.ma-large .ma-tabs button{flex:1 1 100%;white-space:normal;overflow-wrap:anywhere}
#missionAgendaRootM.ma-large .ma-local-tile{width:auto;min-width:82px;white-space:nowrap;overflow-wrap:normal}
.ma-large .ma-local-group summary>span:nth-child(2){flex-basis:50%;overflow-wrap:anywhere}
html:root body #s-minha-missao{background:var(--ma-bg)!important}
.ma-search{overflow:hidden}
