/* S.S.R — calm operational UI. Loaded last; print artwork keeps its own layout. */
@font-face{font-family:SSR Arabic;src:url('/assets/fonts/NotoSansArabic-Regular.ttf') format('truetype');font-weight:400 600;font-display:swap}
@font-face{font-family:SSR Arabic;src:url('/assets/fonts/NotoSansArabic-Bold.ttf') format('truetype');font-weight:650 900;font-display:swap}
:root:root,:root:root[data-theme=light]{
 --canvas:#f3f6f5;--surface:#ffffff;--soft:#eaf1ee;--ink:#192f29;--muted:#52665e;
 --teal:#17644d;--forest:#103b2e;--gold:#d9c391;--outer:#e4ebe7;--line:#cbd8d1;
 --action:#17644d;--action-ink:#ffffff;--control-line:#7b9186;--focus:#135fa7;
 --danger:#9c3329;--danger-soft:#fff0ed;--info:#175c87;--info-soft:#eaf3fa;
 --warning:#78500d;--warning-soft:#fff3d9;--success:#176047;--success-soft:#e8f4ed;
 --text:var(--ink);--accent:var(--teal);--app-width:960px;
 color-scheme:light;
}
:root:root[data-theme=dark]{
 --canvas:#101b18;--surface:#182822;--soft:#21372e;--ink:#ecf4ef;--muted:#b1c5b9;
 --teal:#98d9b9;--forest:#0d2d22;--gold:#e6cf9c;--outer:#09130f;--line:#3d584b;
 --action:#a2dfbf;--action-ink:#102f22;--control-line:#789c88;--focus:#8bc7ff;
 --danger:#ffb7a9;--danger-soft:#492620;--info:#b2d9fc;--info-soft:#19374c;
 --warning:#f2d18b;--warning-soft:#3e331c;--success:#afe4c6;--success-soft:#203e2e;
 color-scheme:dark;
}
.skip-link{position:fixed;inset:8px 12px auto auto;z-index:2000;transform:translateY(-180%);background:var(--surface);color:var(--ink);padding:10px 16px;border:2px solid var(--focus);border-radius:10px}
.skip-link:focus{transform:none}
@media screen{
 body{background:var(--outer);color:var(--ink);font-size:14px;font-family:SSR Arabic,-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,sans-serif;line-height:1.75}
 body .shell{max-width:var(--app-width);background:var(--canvas);border-radius:0;padding-bottom:calc(var(--bottom-nav-height) + 24px);box-shadow:0 0 50px #09291b0a}
 body .page{padding:18px 18px 0}
 :is(button,a,input,select,textarea,summary){-webkit-tap-highlight-color:transparent}
 :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid var(--focus);outline-offset:3px}
 #app-header :is(button,a,input,select,summary):focus-visible{outline-color:#f4d99c}
 :is(.page,.sheet-body) :is(h1,h2,h3){color:var(--ink);line-height:1.6;letter-spacing:0}
 .page :is(h1,h2){font-size:18px}
 .page h3{font-size:17px}
 :is(.page,.sheet-body) :is(.subtext,.fieldhint,.hint49,.muted-note){color:var(--muted);font-size:12px;line-height:1.8}
 :is(.page,.sheet-body) :is(.primary,.outline,.chip,.icon-action,.locate-me,.linkbutton){min-height:44px;font-size:13px;line-height:1.6;border-radius:12px}
 :is(.page,.sheet-body) .primary{background:var(--action);color:var(--action-ink);border:1px solid var(--action);box-shadow:none;font-weight:700}
 :is(.page,.sheet-body) .outline{background:var(--surface);color:var(--teal);border:1px solid var(--control-line);box-shadow:none}
 :is(.page,.sheet-body) .linkbutton{text-decoration:underline;text-underline-offset:4px}
 :is(.page,.sheet-body) button:disabled{opacity:.55;cursor:not-allowed}
 :is(.page,.sheet-body) input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),
 :is(.page,.sheet-body) select,
 :is(.page,.sheet-body) textarea{min-height:46px;border:1px solid var(--control-line);border-radius:11px;background:var(--surface);color:var(--ink);padding:10px 12px;font-size:16px;box-shadow:none}
 :is(.page,.sheet-body) textarea{min-height:96px;height:auto;line-height:1.75}
 :is(.page,.sheet-body) :is(input,textarea)::placeholder{color:var(--muted);opacity:1}
 :is(.page,.sheet-body) label:not(.check-label):not(.check49){font-size:13px;line-height:1.7}
 :is(.page,.sheet-body) :is(.check-label,.check49){min-height:44px;align-items:center;font-size:13px;line-height:1.75;gap:10px}
 :is(.page,.sheet-body) input:is([type=checkbox],[type=radio]){width:20px;height:20px;min-height:20px;accent-color:var(--action);flex-shrink:0}
 :is(.error-inline,.connection.error,.required){color:var(--danger)}
 :is(.page,.sheet-body) :is(.card,.list-card,.news-card,.posted49,.member,.activity-entry,.admin-section131){background:var(--surface);color:var(--ink);border-color:var(--line);border-radius:16px;box-shadow:0 3px 12px #12281c04}
 :is(.news-card,.list-card,.posted49) p{color:var(--muted);font-size:13px;line-height:1.85}
 :is(.page,.sheet-body) :is(.news-meta,.caseid,.meta,.cardfoot){color:var(--muted);font-size:11px}
 :is(.empty,.empty-awards,.lock){background:var(--surface);color:var(--muted);border:1px dashed var(--control-line);border-radius:16px;font-size:13px;line-height:1.9;padding:24px 16px}
 :is(.fieldgroup,.upload-box,.account-notice,.location-strip){border-radius:12px;background:var(--soft);color:var(--ink);border-color:var(--line)}

 /* Compact identity bar; secondary tools open only when requested. */
 body #app-header.app-header{background:#103b2e!important;color:#fff;border:0;border-bottom:1px solid #466b59;border-radius:0 0 14px 14px;padding:calc(8px + env(safe-area-inset-top)) 14px 9px!important;box-shadow:none;isolation:isolate;overflow:visible}
 :root[data-theme=dark] body #app-header.app-header{background:#0d2d22!important}
 body #app-header::before,body #app-header::after{display:none}
 body #app-header .topbar{padding:0;margin:0;display:flex;gap:8px;align-items:center;min-height:58px}
 body #app-header .brand{display:flex!important;grid-template-columns:none!important;gap:9px;min-width:0;align-items:center;flex:1}
 body #app-header .brand>div{display:flex;flex-direction:column;min-width:0}
 body #app-header .brand strong{order:1;color:#fff!important;font-size:18px!important;line-height:1.45;white-space:nowrap!important}
 body #app-header .brand small{order:2;font-size:10px;color:#d4e5db!important;line-height:1.65;letter-spacing:0}
 body #app-header .brand .nationality{order:3;display:flex;justify-content:flex-start;gap:4px;margin:2px 0 0;font-size:8px;color:#d4e5db;white-space:nowrap;line-height:1.5;text-align:start}
 body #app-header .nationality img{width:16px;height:12px;object-fit:contain;flex-shrink:0}
 body #app-header .nationality .saudi-emblem{width:12px;height:16px}
 body #app-header .brand .official-logo{width:44px!important;height:44px!important;object-fit:contain!important;aspect-ratio:1;flex-shrink:0;border:0!important;padding:0;background:transparent;box-shadow:none;clip-path:circle(48%);border-radius:50%}
 body #app-header .header-actions{position:relative;display:flex;flex-direction:row!important;align-items:center;gap:2px;flex-shrink:0}
 body #app-header .header-more{order:2;position:static;margin:0;border:0;padding:0}
 body #app-header .header-more>summary,body #app-header .header-actions>.inbox-bell{display:flex;align-items:center;justify-content:center;list-style:none;width:40px!important;min-width:40px!important;height:44px!important;min-height:44px!important;border:0;padding:10px!important;background:transparent;color:#e8f2ec;border-radius:9px;cursor:pointer}
 body #app-header .header-more>summary::-webkit-details-marker{display:none}
 body #app-header .header-actions>.inbox-bell{order:1;position:relative}
 body #app-header .header-more>summary svg,body #app-header .header-actions>.inbox-bell svg{width:19px!important;height:19px!important}
 body #app-header .header-more[open]>summary{background:#254e3d}
 body #app-header .inbox-count{top:2px;right:2px;min-width:12px;line-height:13px;font-size:8px;background:#e4d0a1;color:#183b29}
 body #app-header .header-more-panel{position:absolute;top:calc(100% + 7px);inset-inline-end:0;z-index:70;width:min(254px,calc(100vw - 28px));padding:12px;border:1px solid var(--line);border-radius:13px;background:var(--surface);color:var(--ink);box-shadow:0 10px 28px #041b1933;max-height:65dvh;overflow:auto}
 body #app-header .header-more-title{display:block;margin:0 0 9px;font-size:12px;font-weight:700;color:var(--ink)}
 body #app-header .header-more-panel .header-utility{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px!important;flex-wrap:wrap!important}
 body #app-header .header-more-panel .header-utility :is(.topicon,.sos-button){position:relative;display:flex;align-items:center;justify-content:center;gap:6px;width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;padding:7px!important;border:1px solid var(--line);border-radius:9px;background:var(--soft);color:var(--teal);font-size:12px!important;line-height:1.5}
 body #app-header .header-more-panel .header-utility :is(.topicon,.sos-button) svg{width:18px!important;height:18px!important;flex-shrink:0}
 body #app-header .utility-label{font-size:11px;white-space:nowrap}
 body #app-header .header-more-panel .header-utility .sos-button{color:var(--danger)}
 body #app-header .header-more-panel .permission-granted31::after{content:'✓';position:absolute;top:2px;right:3px;font:700 10px/1 sans-serif;color:var(--teal)}
 body #app-header .header-logout{display:block;width:100%;min-height:40px;margin:8px 0 0;padding:6px;border:0;border-top:1px solid var(--line);color:var(--muted);font-size:12px;background:transparent;text-decoration:none}
 body #app-header .site-clock{display:flex;flex-wrap:wrap;align-items:center;gap:4px 9px;font-size:9px;color:#d4e5db;line-height:1.5;margin:5px 0 0;min-height:18px}
 body #app-header .site-clock-time{margin-inline-start:auto;gap:5px}
 body #app-header .site-clock small{display:none}
 body #app-header .news-ticker{height:32px;min-height:32px;border-radius:7px;margin-top:7px;border:0;background:#1c4435;box-shadow:none;display:flex;overflow:hidden}
 body #app-header .news-ticker strong{display:flex;align-items:center;min-height:32px;padding:4px 8px;font-size:10px;background:#244f3b;color:#e8f2eb;white-space:nowrap;flex-shrink:0}
 body #app-header .ticker-link{min-height:32px;height:auto;flex:1;min-width:0;font-size:11px;color:#f1f6f3;padding:5px 8px;text-align:start;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
 body #app-header .ticker-link span{display:block;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:11px;animation:none}
 body #app-header .radio-strip{color:#c9dfd1;font-size:9px;line-height:1.5;margin:0;gap:5px}
 body #app-header .radio-strip b{color:#e5d1a3;font-size:10px}
 body.signed-member #app-header.app-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 8px}
 body.signed-member #app-header .topbar,body.signed-member #app-header :is(.news-ticker,#map-header,#community-header,#membership-header){grid-column:1/-1}
 body.signed-member #app-header .radio-strip{grid-column:1;grid-row:2}
 body.signed-member #app-header .site-clock{grid-column:2;grid-row:2;margin:0}
 body.signed-member #app-header .site-clock #site-date{display:none}

 /* Home actions scroll with content, outside the sticky identity header. */
 body .home-tools{position:relative;margin:0 0 16px}
 body .home-tools .compact-member-bar{position:relative;display:block;margin:0 0 10px;min-height:0}
 body .home-tools #welcome-name{display:block;margin:0 0 9px;font-size:12px;line-height:1.7;color:var(--muted)}
 body .home-tools .member-alert-actions{display:flex;flex-wrap:wrap!important;gap:6px;overflow:visible!important;max-width:100%;padding:0}
 body .home-tools .member-alert-actions>.compact-action{display:flex;align-items:center;justify-content:center;flex:1 1 calc(25% - 6px);max-width:none;min-width:64px;min-height:40px;margin:0;padding:6px 7px;gap:5px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--teal);font-size:11px;line-height:1.5;white-space:nowrap;box-shadow:none}
 body .home-tools .compact-action svg{display:block;width:18px;height:18px;flex-shrink:0}
 body .home-tools .compact-action small{font-size:11px}
 body .home-tools .member-alert-actions>.locate-me{flex:1 1 60px}
 body .home-tools .member-alert-actions>#alert-radius-toggle{flex:1.5 1 90px}
 body .home-tools .member-alert-actions>#alert-enable{flex:1 1 80px}
 body .home-tools #alert-enable-label{display:inline;font-size:10px}
 body .home-tools .compact-action[aria-pressed=true]{background:var(--soft);border-color:var(--teal)}
 body .home-tools #alert-radius-panel{top:calc(100% + 5px);left:0;width:min(290px,100%);padding:13px;border:1px solid var(--control-line);border-radius:12px;background:var(--surface);color:var(--ink);z-index:35;box-shadow:0 8px 22px #041b1920}
 body .home-tools #alert-radius-panel label{font-size:12px;margin:0}
 body .home-tools #alert-radius-panel small{color:var(--muted);font-size:11px;line-height:1.7}
 body .home-tools #member-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0}
 body .home-tools .stat{position:relative;display:grid;grid-template-columns:19px minmax(0,1fr) auto;grid-template-rows:1fr;align-items:center;text-align:start;gap:5px;min-height:58px;margin:0;padding:9px 8px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--ink);box-shadow:none}
 body .home-tools .stat::before,body .home-tools .stat::after{display:none}
 body .home-tools .stat-icon{grid-column:1;grid-row:1;display:grid;place-items:center;width:19px;height:23px;color:var(--teal)}
 body .home-tools .stat-icon svg{width:19px;height:19px}
 body .home-tools .stat .caption{grid-column:2;grid-row:1;margin:0;font-size:11px;line-height:1.5;color:var(--ink);font-weight:400}
 body .home-tools .stat .num{grid-column:3;grid-row:1;padding:0;font:600 19px/1.3 Arial,sans-serif;color:var(--ink);font-variant-numeric:tabular-nums}
 body .home-tools .stat.selected{outline:0;border:2px solid var(--teal);background:var(--soft);padding:8px 7px}
 body .home-tools .stat.selected .caption{font-weight:700;text-decoration:underline;text-underline-offset:5px}

 /* Visitor contact channels share a compact, predictable row. */
 body:not(.signed-member) #app-header.app-header{position:fixed;top:0;left:50%;right:auto;transform:translateX(-50%);width:100%;max-width:var(--app-width);margin:0;max-height:none;overflow:visible;overscroll-behavior:contain}
 body:not(.signed-member) #app-header .topbar{display:block;padding-bottom:9px}
 body:not(.signed-member) #app-header #guest-contact{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px 0;margin:0;border-block:1px solid #5f806d}
 body:not(.signed-member) #app-header .guest-hotline{grid-row:auto;justify-self:start;margin:0;min-height:48px;gap:7px}
 body:not(.signed-member) #app-header .guest-hotline>div{display:block}
 body:not(.signed-member) #app-header .guest-hotline span{color:#d4e5db!important;font-size:10px;font-weight:400}
 body:not(.signed-member) #app-header .guest-hotline b{font-size:20px!important;color:#fff;letter-spacing:.5px;line-height:1.6}
 body:not(.signed-member) #app-header .direct-phone112{display:none}
 body:not(.signed-member) #app-header .hotline-actions{grid-row:auto;display:flex;gap:5px;border:0;padding:0;margin:0;justify-content:flex-end}
 body:not(.signed-member) #app-header .hotline-actions a{display:flex;min-width:44px;min-height:48px;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:5px 6px;border:1px solid #91ac9e;background:#214c3c;color:#fff!important;border-radius:10px;font-size:10px;line-height:1.5}
 body:not(.signed-member) #app-header .hotline-actions svg{width:20px;height:20px}
 body #app-header .saqr-contact111{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;padding:10px 0;margin:0;border-bottom:1px solid #5f806d}
 body #app-header .saqr-title111{display:flex;flex-direction:column;gap:2px}
 body #app-header .saqr-title111 strong{font-size:16px;color:#fff!important}
 body #app-header .saqr-title111>span{padding:0;border:0;border-radius:0;color:#d4e5db;font-size:9px;white-space:normal;text-align:start;max-width:none}
 body #app-header .saqr-report111{min-height:44px;border:1px solid #9ad5b6;background:#d4eddf;color:#123b29;font-size:12px;gap:6px;border-radius:11px;padding:7px 9px}
 body:not(.signed-member) #app-header .site-clock{display:grid;grid-template-columns:1fr auto auto;gap:4px 9px}
 body:not(.signed-member) #app-header .site-clock .header-actions{position:static;display:flex;padding:0;margin:0}
 body:not(.signed-member) #app-header .site-clock .header-utility{flex-direction:row;display:flex}
 body:not(.signed-member) #app-header .site-clock .header-utility :is(.topicon,.sos-button){width:40px!important;min-width:40px!important;height:44px!important}
 body:not(.signed-member) #app-header .site-clock-time{margin:0}
 body:not(.signed-member) .shell{padding-top:calc(var(--app-header-height) + 2px)}
 body:not(.signed-member) .public-search-links114{display:flex;justify-content:center;gap:8px;margin:0 0 14px}
 body:not(.signed-member) .public-search-links114 a{display:flex;align-items:center;justify-content:center;flex:1;min-height:44px;border:1px solid var(--line);border-radius:11px;background:var(--surface);font-size:12px;color:var(--teal);text-decoration:none}
 body:not(.signed-member) .home-intro{padding:20px!important;border:1px solid var(--line);border-inline-start:3px solid var(--teal);border-radius:18px!important;background:var(--surface);color:var(--ink);box-shadow:none}
 body:not(.signed-member) .intro-copy115{max-height:none;overflow:visible;padding:0}
 body:not(.signed-member) .home-intro .eyebrow{color:var(--teal);font-size:11px}
 body:not(.signed-member) .home-intro h1{color:var(--ink);font-size:22px;line-height:1.7;margin:5px 0 10px}
 body:not(.signed-member) .home-intro p{font-size:14px;color:var(--muted);line-height:1.95}
 body:not(.signed-member) .intro-contact111{border-color:var(--line);gap:12px;padding-top:14px;margin-top:15px}
 body:not(.signed-member) .intro-contact111 .outline{min-height:44px;font-size:12px;padding:8px 12px;color:var(--teal);background:var(--soft);border:1px solid var(--control-line);border-radius:11px}
 body:not(.signed-member) .intro-email111{border-color:var(--line);gap:5px;padding-inline-start:10px}
 body:not(.signed-member) .intro-email111>span{color:var(--muted);font-size:11px}
 body:not(.signed-member) .intro-email111 a{color:var(--teal);font-size:11px;gap:5px}
 body:not(.signed-member) .intro-email111 svg{width:17px;height:17px}
 body:not(.signed-member) .visitor-entry{background:var(--surface);border:1px solid var(--line);padding:16px;border-radius:16px}
 body:not(.signed-member) .visitor-entry>span{color:var(--muted);font-size:12px}
 body:not(.signed-member) .visitor-entry .small-actions{margin-top:10px;gap:9px}
 body:not(.signed-member) .visitor-entry button{min-height:46px;font-size:13px}
 body:not(.signed-member) .visitor-entry .join-team{background:var(--soft);color:var(--teal);border:1px solid var(--control-line);box-shadow:none}
 body:not(.signed-member) #about .about-team{max-height:none;overflow:visible;font-size:14px;line-height:2}

 /* Stable navigation: text plus icon and a visible selection bar. */
 body .bottom{max-width:740px;width:100%;bottom:0;gap:4px;border:1px solid var(--line);border-radius:18px 18px 0 0;background:var(--surface);box-shadow:0 -3px 16px #09291b0b;padding:7px 8px calc(7px + env(safe-area-inset-bottom))}
 body .bottom .nav{position:relative;min-height:48px!important;min-width:0;gap:4px;font-size:10px!important;color:var(--muted);padding:8px 3px 5px;border-radius:12px;line-height:1.5}
 body .bottom .nav .ico,body .bottom .nav svg{width:19px!important;height:19px!important}
 body .bottom .nav-label{font-size:10px!important;white-space:nowrap}
 body .bottom .nav.on{color:var(--teal);background:var(--soft);font-weight:700}
 body .bottom .nav.on::before{content:'';position:absolute;top:2px;left:calc(50% - 11px);width:22px;height:3px;border-radius:3px;background:currentColor}
 .page .chips{gap:8px;padding-block:3px 9px;scroll-padding-inline:4px}
 :is(.page,.sheet-body) .chip{background:var(--surface);border:1px solid var(--control-line);color:var(--muted);padding:8px 13px;box-shadow:none}
 :is(.page,.sheet-body) .chip.on{background:var(--soft);color:var(--teal);border:2px solid var(--teal);font-weight:700;padding:7px 12px}
 body #app-header .news-sections{gap:8px;flex-wrap:wrap;margin-top:10px}
 body #app-header .news-subnav{min-height:46px;border:1px solid #91ac9e;color:#e8f2eb;background:#214c3c;font-size:12px;border-radius:11px}
 body #app-header .news-subnav.on{border:2px solid #e4cd9a;color:#fff;background:#315c44;font-weight:700}
 body #app-header .community-title h1{font-size:18px;color:#fff}

 /* Status is conveyed by a word and a distinct symbol, in both themes. */
 body .badge{display:inline-flex;align-items:center;gap:5px;border:1px solid currentColor;border-radius:8px;font-size:11px;line-height:1.7;padding:3px 8px;background:var(--info-soft);color:var(--info);font-weight:600;white-space:normal}
 body .badge::before{content:'i';font:700 12px/1 sans-serif}
 body .badge.urgent{background:var(--danger-soft);color:var(--danger)}
 body .badge.urgent::before{content:'!'}
 body .badge.active{background:var(--success-soft);color:var(--success)}
 body .badge.active::before{content:'↻'}
 body .badge.new{background:var(--warning-soft);color:var(--warning)}
 body .badge.new::before{content:'◷'}
 body .badge.closed{background:var(--soft);color:var(--muted)}
 body .badge.closed::before{content:'✓'}
 body .compact-report32{padding:14px!important;border:1px solid var(--line)!important;border-inline-start:3px solid var(--control-line)!important;border-radius:16px!important;background:var(--surface);color:var(--ink);margin:0 0 10px!important}
 body .compact-report32.joined32{border-inline-start-color:var(--teal)!important}
 body .compact-head32{font-size:12px;gap:10px;align-items:center}
 body .compact-head32>strong{color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
 body .compact-head32 .badge{font-size:11px!important;padding:3px 7px!important}
 body .compact-place32{min-height:44px;text-align:start;font-size:16px!important;padding:8px 0!important;line-height:1.75;color:var(--ink)}
 body .compact-meta32{color:var(--muted);font-size:12px!important;line-height:1.9;margin:2px 0 10px!important}
 body .compact-actions32{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;border-color:var(--line);padding-top:10px;align-items:stretch}
 body .tiny-action32{min-height:52px!important;min-width:0;padding:7px 4px!important;gap:5px;border:1px solid var(--control-line);border-radius:10px;background:var(--soft)!important;color:var(--teal);line-height:1.5;text-align:center;box-sizing:border-box}
 body .tiny-action32>span{display:grid;place-items:center;width:22px;height:22px}
 body .tiny-action32 svg{display:block;width:22px;height:22px}
 body .tiny-action32 small{font-size:11px;font-weight:600;line-height:1.6}
 body .tiny-action32.join32{color:var(--action-ink);background:var(--action)!important;border:1px solid var(--action);border-radius:10px}
 body .joined32 .tiny-action32:last-child,body .compact-detail32 .tiny-action32:last-child{color:var(--teal)}
 body .compact-detail32 .tiny-action32.join32{color:var(--action-ink)}
 body .tiny-action32[aria-disabled=true]{color:var(--muted);opacity:.6;cursor:default;border-style:dashed}
 body .phone32{min-height:44px;color:var(--teal);font-size:14px;gap:6px;line-height:1.7}
 body .report-contact32{gap:8px;font-size:12px;line-height:1.85}
 body :is(.pending32,.location-stale){color:var(--warning);font-size:11px}
 body .closed-label32{color:var(--muted);font-size:12px}
 body .compact-detail32 .detailrow{background:transparent;color:var(--ink);border-color:var(--line)}
 body .compact-detail32 .detailrow small{font-size:12px;color:var(--muted)}
 body .compact-detail32 .detailrow strong{font-size:14px;line-height:1.8}

 /* Member rank stays prominent; menus and management use the shared system. */
 body[data-page=team] .member-summary{border-color:var(--line);background:var(--surface);padding:16px;border-radius:18px}
 body[data-page=team] .member-identity h1{font-size:21px;line-height:1.7}
 body[data-page=team] :is(.member-team-label,.member-specialist-label){font-size:12px;line-height:1.8}
 body[data-page=team] .member-scoreline{padding-block:12px;border-color:var(--line);gap:8px}
 body[data-page=team] :is(.member-stat,.member-standing) small{font-size:11px;color:var(--muted)}
 body[data-page=team] :is(.member-stat strong,.member-standing-value){font-size:16px}
 body[data-page=team] .member-next-rank{font-size:11px}
 body .membership-menu{gap:8px}
 body .membership-menu-row{min-height:60px;grid-template-columns:24px minmax(0,1fr) 10px;gap:8px;padding:11px;border-color:var(--line);background:var(--surface);border-radius:13px}
 body .membership-menu-row strong{font-size:13px;line-height:1.7}
 body .membership-menu-row .menu-symbol,body .membership-menu-row .menu-symbol svg{width:24px;height:24px;color:var(--teal)}
 body .member-admin-panel{border-color:var(--line);border-radius:14px;background:var(--surface)}
 body .member-admin-panel>summary{font-size:13px;min-height:48px;color:var(--ink)}
 body #member-tools>button{min-height:48px;padding:9px;font-size:13px;border-radius:11px}
 body .admin-tab131{color:var(--muted);border-color:var(--control-line);font-size:13px;min-height:46px}
 body .admin-tab131[aria-selected=true]{border:2px solid var(--teal);background:var(--soft);font-weight:700}
 body .admin-status131{font-size:11px;color:var(--teal);border:1px solid var(--control-line);border-radius:7px}
 body .admin-record-copy131 strong{font-size:14px}
 body .admin-record-copy131 small{font-size:12px;color:var(--muted)}
 body .admin-section131>summary{font-size:14px;min-height:48px}
 body .admin-permissions131 .check-label{font-size:13px;min-height:44px}
 body .admin-save131{background:var(--surface);padding-block:12px}
 body .overlay{background:#071d17b8}
 body .overlay .sheet{border:1px solid var(--line);border-radius:22px 22px 0 0;background:var(--canvas)}
 body .overlay .sheethead{padding:13px 16px;border-color:var(--line);background:var(--surface)}
 body .overlay .sheethead h2{font-size:18px;color:var(--ink)}
 body .overlay .sheethead .close{min-height:44px;min-width:68px;background:var(--soft);color:var(--ink);border:1px solid var(--control-line);border-radius:11px;font-size:13px}
 body .overlay .sheet-body{padding:16px 16px calc(22px + env(safe-area-inset-bottom));scroll-padding-block:16px}
 body .sheet-body :is(.form49,.workspace-compact) :is(.tabs49 button,.mini49,.actions49 button){min-height:44px;font-size:13px}
 body .sheet-body .form49 :is(h3,.label49){font-size:14px}
 body .sheet-body .form49 .hint49{font-size:12px}
 body .page-footer{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:2px 14px;margin-top:18px;padding-top:10px;font-size:10px;border-color:var(--line);color:var(--muted);line-height:1.8}body .page-footer>span,body .page-footer>.app-version,body .page-footer>.connection{flex-basis:100%;margin:0}
 body .page-footer .linkbutton{font-size:11px;min-height:36px;padding:5px 0}
 body .toast{background:var(--ink);color:var(--surface);font-size:13px;line-height:1.8;border-radius:12px}
 body .app-update-banner{background:var(--surface);color:var(--ink);border-color:var(--control-line)}

 /* Map categories remain identifiable without color. */
 .field-marker svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
 .field-marker.incident{border-radius:8px;background:#923729!important;color:#fff}
 .field-marker.responder{background:#175c87!important;color:#fff}
 .field-marker.stale{border-radius:9px;border-style:dashed;background:#77500f!important;color:#fff}
 .field-marker.self{background:#176047!important;color:#fff;box-shadow:0 0 0 3px #fff,0 0 0 5px #175c87}
 .map-legend{font-size:12px;line-height:1.8;color:var(--muted);gap:12px}
 .legend-dot{display:inline-grid;place-items:center;width:18px;height:18px;color:#fff;font:700 12px/1 sans-serif;vertical-align:middle}
 .legend-dot.incident{background:#923729;border-radius:4px}
 .legend-dot.incident::after{content:'⚑'}
 .legend-dot.responder{background:#175c87;border-radius:50%}
 .legend-dot.responder::after{content:'●'}
 .legend-dot.stale{background:#77500f;border-radius:4px}
 .legend-dot.stale::after{content:'◷'}
 body .map-tools-toggle43{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;border-radius:11px;background:var(--surface);color:var(--ink);border:1px solid var(--control-line)}
 body .map-tools31{top:65px;gap:8px}
 body .map-tools31 :is(input,select,button){min-height:44px;max-width:180px;background:var(--surface);color:var(--ink);border-color:var(--control-line)}
 body .map-card31{background:var(--surface);color:var(--ink);border-color:var(--control-line);border-radius:13px}
 body .map-card31 :is(button,a){min-height:44px;color:var(--teal)}
 body .map-card31 .map-selection-close53{width:44px;height:44px;min-height:44px;color:var(--ink);background:var(--soft)}
 body .map-card31 strong{padding-left:40px}
 body .map-fullscreen #map-collapse{left:64px;min-height:44px}
 body .map-actions :is(.map-fit,.map-expand){min-height:44px;font-size:11px;background:var(--surface);color:var(--ink);border-color:var(--control-line)}
 body .map-filter-label{color:#d4e5db;font-size:11px}
 body .map-filter-label select{min-height:44px;height:auto;font-size:14px;background:#214c3c;color:#fff;border-color:#91ac9e}
 body .map-intro{font-size:12px;color:#d4e5db;line-height:1.85}
 body .field-map:focus-visible{outline:3px solid var(--focus)}

 @media(max-width:699px){
  body.signed-member #app-header .topbar{display:flex;gap:8px}
  body.signed-member #app-header .brand .official-logo{width:42px!important;height:42px!important}
 }
 @media(min-width:700px){
  body .page{padding:24px 28px 0}
  body #app-header.app-header{padding-inline:28px!important}
  body #app-header .topbar{display:flex}
  body #app-header .header-actions{flex-direction:row;gap:12px}
  body .compact-actions32{grid-template-columns:repeat(6,minmax(0,1fr))}
  body .overlay .sheet{border-radius:22px}
  body .home-intro p br{display:none}
 }
 @media(max-width:359px){
  body .page{padding-inline:12px}
  body #app-header.app-header{padding-inline:12px!important}
  body #app-header .brand{gap:7px}
  body.signed-member #app-header .brand .official-logo{width:42px!important;height:42px!important}
  body.signed-member #app-header .brand strong{font-size:17px!important}
  body.signed-member #app-header .brand small{font-size:10px}
  body.signed-member #app-header .brand .nationality{font-size:7px;gap:3px}
  body:not(.signed-member) #app-header .site-clock{grid-template-columns:1fr auto}
  body:not(.signed-member) #app-header .site-clock .site-clock-time{grid-column:1;grid-row:2}
  body:not(.signed-member) #app-header .site-clock .header-actions{grid-column:2;grid-row:1/3}
  body:not(.signed-member) #app-header .guest-hotline b{font-size:18px!important}
  body:not(.signed-member) .home-intro{padding:16px!important}
  body:not(.signed-member) .home-intro h1{font-size:20px}
  body .bottom{padding-inline:5px;gap:2px}
  body .bottom .nav-label{font-size:10px}
 }
 @media(max-height:560px) and (orientation:landscape){
  body:not(.signed-member) #app-header.app-header{position:relative;transform:none;left:auto;max-height:none;overflow:visible}
  body:not(.signed-member) .shell{padding-top:0}
  body.signed-member #app-header.app-header{position:relative;top:auto}
 }
 @media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
 }
 @media(forced-colors:active){
  :is(.stat.selected,.chip.on,.nav.on,.news-subnav.on,.admin-tab131[aria-selected=true]){outline:2px solid Highlight;outline-offset:-2px}
  :is(.badge,.tiny-action32,.membership-menu-row){border:1px solid ButtonText}
 }
}
