/* Preserve the existing muted town, with bounded content and bilingual layout. */
:root{--ink:#294b48;--green:#295c68;--paper:#fbf9f0;--line:#e3e5d7;--muted:#6e7e70}body{background:#f7f6ee;color:var(--ink)}[hidden]{display:none!important}button,input,select{font:inherit}button{touch-action:manipulation}header{height:auto;min-height:76px;padding:14px 28px;background:#fdfbf5;gap:18px}.brand img{width:76px;height:40px}.brand strong{font-size:17px;font-weight:600;letter-spacing:.03em}.brand small{font-size:8px;letter-spacing:1px}.header-actions{gap:9px;flex-wrap:wrap}.header-actions .badge{display:none}.btn{border-radius:26px;min-height:42px;padding:9px 14px;font-size:12px;background:#fffdf5;border:1px solid #dfe4d9}.btn.primary{background:#2c5e69;border-color:#2c5e69;color:#fffdf0}.language-toggle{display:inline-flex;align-items:center;gap:2px;padding:3px;border:1px solid #dce3d7;border-radius:24px;background:#f0f1e8;flex-shrink:0}.language-toggle button{background:none;border:0;border-radius:20px;min-height:34px;padding:7px 11px;font-size:12px;line-height:1.4;color:#5e7169}.language-toggle button[aria-pressed=true]{background:#fffdf5;box-shadow:0 1px 4px #324e3414;color:#244f59;font-weight:600}.intro{padding:18px 28px;background:#fdfbf5;align-items:center}.intro h1{font-size:27px;font-weight:500;letter-spacing:.035em}.intro p{font-size:12px;color:#6d7f70}.eyebrow{color:#a08e69;letter-spacing:2px;font-size:8px}.search{border-radius:24px;background:#f1f2e8;border-color:#e2e6da;min-width:220px}.search input{font-size:13px}.district-toolbar{display:flex;align-items:center;gap:14px;padding:10px 28px;background:#fbf9f0;border-block:1px solid #e4e5d9}.district-lead{flex-shrink:0}.district-lead strong,.district-lead small{display:block;font-size:12px}.district-lead small{font-size:9px;color:#7d8d80;margin-top:4px}#district-nav{display:flex;overflow-x:auto;gap:7px;flex:1;padding:4px 2px;scrollbar-width:thin}.district-tab{flex-shrink:0;border:1px solid transparent;background:#eeeee3;border-radius:25px;padding:9px 12px;font-size:11px;min-height:40px}.district-tab[aria-pressed=true]{background:#fffdf5;border-color:var(--district-color);color:var(--district-color)}.mobile-district{display:none}.community-status{display:flex;justify-content:space-between;gap:12px;padding:8px 28px;background:#f9f8f0;color:#6c7b6d;font-size:10px;line-height:1.6}.workspace{display:block;position:relative;padding:0;margin:0;max-width:none}.mapbox{width:100%;border:0;border-radius:0;height:calc(100dvh - 290px);min-height:590px;max-height:1000px;background:#eeeada;flex:none}.mapbar{top:18px;left:25px;right:25px;align-items:start}.segmented{border-radius:28px;background:#fffcf0f0;border:1px solid #fffaf0;padding:4px}.segmented button{border-radius:22px;padding:10px 16px;font-size:12px;min-height:38px}.mapbar #motion{border-radius:50%;height:42px;width:42px;min-height:42px;padding:0;font-size:0}.mapbar #motion-label{display:none}.map-count{top:78px;left:28px;max-width:calc(100% - 56px);font-size:11px;color:#617465;background:#fffdf0d9;border:0;border-radius:16px;padding:5px 10px;line-height:1.5;pointer-events:none}canvas#world{display:block;width:100%;height:100%;touch-action:none;cursor:grab}canvas#world:active{cursor:grabbing}.workspace>aside{position:absolute;right:24px;top:114px;width:290px;max-height:calc(100% - 190px);z-index:4;overflow:auto;scrollbar-width:thin;pointer-events:none;display:flex}.workspace>aside>*{pointer-events:auto}.info-dismissed .workspace>aside{display:none}.info-card.place-info{display:block;background:#fffdf3f5;border:1px solid #ffffffc4;border-radius:24px 24px 30px 12px;padding:20px;box-shadow:0 6px 24px #475d3c0b}.info-top{justify-content:flex-start;gap:9px}.info-symbol{width:33px;height:33px;border-radius:50%;background:#e7ecdf}.info-top .badge{background:transparent;color:#8b805f;font-size:10px}.close-info{display:block!important;margin-left:auto;border:0;background:none;min-width:36px;min-height:36px;font-size:23px;color:#738579}.info-card h2{font-size:21px;font-weight:500;line-height:1.4;margin:10px 0 4px}.info-card .english{font-size:11px;color:#5b786d;letter-spacing:0;line-height:1.65}.description{font-size:12px;line-height:1.8;color:#6e7e70}.chip{border-radius:18px;background:#eeefe4;color:#647a61;border:0;padding:5px 9px;font-size:10px}.skill-chip{font-size:11px;min-height:35px;border:1px solid #dce3d6}.skill-chip[aria-pressed=true]{background:#2c5e69;color:#fffdf0;border-color:#2c5e69}.people-heading{display:flex;gap:6px;flex-wrap:wrap;font-size:12px;align-items:baseline;margin:17px 0 4px}.people-heading span{font-size:10px;color:#687c71}.display-count{font-size:10px;color:#697c6b;line-height:1.7;margin:6px 0}.person{display:flex;width:100%;max-width:none;padding:9px 0;gap:9px;text-align:left;border:0;border-top:1px solid #e7ebdf;background:none}.person canvas{width:33px;height:40px;flex-shrink:0;background:transparent}.person>span{min-width:0}.person strong{font-size:12px}.person small{font-size:10px;line-height:1.65;color:#71806d;overflow-wrap:anywhere}.batch-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.batch-actions .btn{font-size:11px;min-height:38px;flex:1}.place-action{width:100%;margin-top:12px;font-size:12px}.landmark-note,.source-link,.privacy{font-size:10px;line-height:1.8;color:#7f836e}.my-card,.workspace>aside>.my-card{display:none!important}.map-title{left:25px;bottom:23px;background:none;border:0;padding:0;max-width:calc(100% - 200px)}.map-title strong{font-size:9px;color:#8b805e;letter-spacing:2px}.map-title small{font-size:9px;color:#7c8e78}.mapcontrols{bottom:20px;right:24px;gap:7px}.mapcontrols button{border-radius:50%;height:42px;width:42px;border:1px solid #fffaf0;background:#fffcf0f0}.keyhint{left:46%;bottom:28px;background:none;border:0;padding:0;font-size:10px;color:#7a8a73}.my-home{position:absolute;left:25px;bottom:74px;z-index:2;background:#fffdf0e6;font-size:11px}.open-info{display:none}.info-dismissed .open-info{display:block;position:absolute;right:24px;top:117px;background:#fffdf0ed;border:1px solid #fffaf0;border-radius:25px;padding:11px 16px;font-size:12px;z-index:3}.directory{margin:0;padding:12px 25px;background:#faf8f0;border-top:1px solid #e4e5d9;overflow-x:auto;display:flex;gap:7px}.directory button{border-radius:24px;padding:9px 13px;border:0;background:#eeeee3;font-size:11px;white-space:nowrap}.directory button[aria-pressed=true]{background:#2b5b66;color:#fffaf0}.map-disclaimer{padding:6px 28px 17px;margin:0;background:#faf8f0;color:#82907a;font-size:10px;line-height:1.7}.map-load{position:absolute;inset:0;z-index:8;display:flex;flex-direction:column;justify-content:center;align-items:center;background:#f5f3e8;text-align:center;padding:24px}.map-load strong{font-size:19px}.map-load p{font-size:12px}.dpad button{border-radius:50%;background:#fffcf0ec}.route-box{border-radius:18px;padding:14px;background:#fffcf0ed;border:1px solid #e3e5d7}.route-box strong,.route-box span{display:block;font-size:12px}.route-box span{font-size:11px;margin:6px 0;line-height:1.7}.route-box .btn{font-size:11px;min-height:35px}
dialog{border-radius:24px;border:1px solid #e4e5d7;background:#fbf9f0;max-height:90dvh;overflow:auto}dialog::backdrop{background:#173f3d66;backdrop-filter:blur(3px)}.modal-header{position:sticky;top:0;background:#fbf9f0;z-index:2;display:flex;align-items:center;gap:12px;padding:18px 22px;flex-wrap:wrap}.modal-header h2{font-size:20px;flex:1;min-width:120px;margin:0}.modal-language{margin-left:auto}.modal-header .close{margin-left:0;flex-shrink:0}.modal-footer{position:sticky;bottom:0;background:#fbf9f0;z-index:2;gap:14px;flex-wrap:wrap}.modal-footer small{color:#697d6d;font-size:11px}.avatar-preview{border-radius:70px 70px 22px 22px;background:#e6ecd9;border:0}.choice{border-radius:20px;min-height:36px}.swatch{height:32px;width:32px}.professional-editor{grid-column:1/-1;border-top:1px solid #dce2d3;padding-top:18px}.professional-editor h3{font-size:17px;margin:0 0 8px}.editor-note,#my-district-preview{font-size:12px;line-height:1.8;color:#6c7e6c}.professional-editor label,.settings-body label{display:grid;gap:7px;font-size:13px}.professional-editor input,.professional-editor select,.roster-controls input,.roster-controls select,.settings-body select,.mobile-district select{width:100%;min-width:0;min-height:43px;border:1px solid #d2ddcd;border-radius:9px;padding:9px;background:#fffdf7;color:#36584d;font:inherit}.professional-editor fieldset{border:0;margin:18px 0;padding:0}.professional-editor legend{font-size:12px;font-weight:600;margin-bottom:9px}.profession-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px}#avatar-modal{width:740px}.toast{border-radius:24px}#profile-details{display:grid;grid-template-columns:100px 1fr;gap:10px 12px;text-align:left;font-size:12px;margin:20px 0;padding:15px 0;border-block:1px solid #e0e7d7}#profile-details dt{color:#7b8b76}#profile-details dd{margin:0;color:#355847;overflow-wrap:anywhere}.profile-actions{display:flex;justify-content:center;gap:9px;flex-wrap:wrap}#roster-modal{width:820px}.roster-body{padding:20px}.roster-body>p{font-size:12px;line-height:1.8;color:#72826c}.roster-controls{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:12px;margin:16px 0;font-size:12px}.roster-controls label{display:grid;gap:6px;min-width:0}.roster-controls select{width:100%!important;min-height:43px!important}.roster-controls .btn{justify-self:start}#roster-count{display:block;font-size:13px;margin-bottom:10px}#roster-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}.roster-result{border:1px solid #e1e6d9;border-radius:15px;padding:10px 13px;background:#fffdf6;min-width:0}.roster-result .person{border:0;padding:5px 0;max-width:none!important}.locate-result{font-size:11px;min-height:35px;margin-left:42px;margin-top:5px}.roster-pages{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:20px;font-size:12px}.settings-body{padding:20px 24px;display:grid;gap:15px}.settings-body p{font-size:12px;line-height:1.85;margin:0}.settings-body label:has(input[type=checkbox]){display:flex;align-items:center;gap:9px}.settings-body input[type=checkbox]{width:20px;height:20px;accent-color:#295c68}.settings-body .btn{justify-self:start}
@media(max-width:1050px){.district-lead{display:none}.workspace>aside{width:270px}.keyhint{display:none}.brand small{letter-spacing:.3px}}
@media(max-width:740px){header{padding:12px 15px;min-height:0;flex-wrap:wrap;gap:10px}.brand{flex:1 1 100%;gap:9px}.brand img{width:54px;height:28px}.brand strong{font-size:14px}.brand small{font-size:7px}.header-actions{width:100%;display:flex;gap:6px;justify-content:space-between;flex-wrap:nowrap}.header-actions .btn,.header-actions #edit-avatar{font-size:11px;min-height:40px;height:auto;width:auto;border-radius:24px;padding:8px 11px;white-space:normal}.language-toggle button{font-size:11px;min-height:34px;padding:7px 10px}.intro{padding:12px 16px;gap:10px;align-items:stretch;flex-direction:column}.intro h1{font-size:23px;letter-spacing:0;margin:4px 0}.intro p{font-size:11px;line-height:1.7}.search{width:100%;height:39px;min-width:0}.search input{font-size:16px}.district-toolbar{padding:9px 15px;gap:9px}.district-lead,#district-nav{display:none}.mobile-district{display:block;flex:1;min-width:0}.mobile-district select{font-size:16px;border-radius:24px}.community-status{padding:7px 16px;display:block;font-size:10px}.community-status span{display:block}.mapbox{height:65svh;height:65dvh;min-height:490px;max-height:760px}.mapbar{left:12px;right:12px;top:12px}.mapbar .segmented button{font-size:10px;padding:9px 12px;min-height:36px}.mapbar #motion{width:38px;height:38px;min-height:38px}.map-count{top:66px;left:14px;max-width:calc(100% - 28px);font-size:10px;line-height:1.6}.workspace>aside{display:none;position:absolute;top:auto;bottom:10px;right:10px;left:10px;width:auto;max-height:70%;border-radius:22px;z-index:5;pointer-events:auto}.has-selection .workspace>aside{display:flex}.info-dismissed .workspace>aside{display:none}.info-card.place-info{display:block;padding:18px}.info-card h2{font-size:21px}.info-card .description{font-size:12px}.person{display:flex;width:100%;max-width:none}.person small{font-size:11px}.people-heading{font-size:12px}.display-count{font-size:11px}.workspace>aside>.privacy{display:none}.my-home{left:14px;bottom:132px;max-width:calc(100% - 150px);min-height:38px;padding:8px 12px;font-size:10px;line-height:1.5}.open-info,.info-dismissed .open-info{display:block;position:absolute;left:14px;right:auto;top:auto;bottom:83px;border-radius:24px;border:1px solid #fff8e7;background:#fffcf0e8;font-size:11px;padding:11px 13px;z-index:2;max-width:calc(100% - 150px)}.map-title{left:16px;bottom:18px;max-width:170px}.map-title strong{font-size:7px;letter-spacing:.7px}.map-title small{font-size:8px}.mapcontrols{right:12px;bottom:17px;gap:5px}.mapcontrols button{height:36px;width:36px;min-height:36px}.dpad{display:grid;right:13px;bottom:72px;grid-template-columns:repeat(3,39px);grid-template-rows:repeat(2,39px);gap:4px}.dpad button{height:39px;width:39px}.directory{padding:11px 15px}.directory button{font-size:10px}.map-disclaimer{padding:5px 16px 16px;font-size:9px}dialog{max-width:calc(100% - 20px);max-height:94dvh;border-radius:18px}.modal-header{padding:14px 16px;gap:8px}.modal-header h2{font-size:18px;min-width:100px}.modal-language{order:2;flex:0 0 auto;margin-left:0}.modal-header .close{margin-left:auto}.modal-header .language-toggle button{min-height:32px}.modal-body,#avatar-modal .modal-body{padding:16px;grid-template-columns:88px minmax(0,1fr);gap:12px}.avatar-preview{padding:8px;position:static}.avatar-preview canvas{height:140px}.professional-editor input,.professional-editor select{font-size:16px}.profession-fields{grid-template-columns:1fr}.professional-editor h3{font-size:16px}.modal-footer{padding:14px 16px}.modal-footer .btn{margin-left:auto}#profile .modal-body{display:block}#profile-details{grid-template-columns:85px 1fr}.roster-body{padding:16px}.roster-controls{grid-template-columns:1fr 1fr;gap:10px}.roster-controls label:first-child{grid-column:1/-1}.roster-controls input,.roster-controls select{font-size:16px}#roster-list{grid-template-columns:1fr;gap:10px}.roster-pages{gap:9px;font-size:11px}.roster-pages .btn{font-size:11px}.settings-body{padding:18px}.settings-body select{font-size:16px}html[lang=en] .brand strong{font-size:13px}html[lang=en] .intro h1{font-size:23px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Keep the close control reachable while a long district card scrolls. */
.info-card .info-top{position:sticky;top:0;z-index:2;background:#fffdf3f5}.community-status{flex-wrap:wrap}@media(max-width:740px){.workspace>aside{max-height:52%}.info-card .info-top{margin-top:-3px}.info-card h2{font-size:20px}}
