/* Compact, consistent local workspace across desktop and mobile. */
[hidden]{display:none!important}
:root{--surface:#242a30;--surface2:#1a2026;--line:#39444e;--link:#b0cee9}
main{max-width:1500px;padding:30px 34px}.top{margin-bottom:22px}.top h1{font-size:27px}.panel{padding:23px;border:1px solid #ffffff06;border-radius:10px}.toolbar{gap:9px}button{font-size:14px;padding:9px 12px;border-radius:6px;transition:background .12s}button.primary{background:#4a769d;border-color:#5c8bb4}input,select,textarea{font-size:14px}nav button{display:flex;gap:11px;align-items:center;font-size:13px;line-height:1.4;padding:12px 10px;margin-bottom:4px}nav button.active{border-radius:6px;background:#324a60}.navIcon{display:inline-grid;place-items:center;width:20px;font-size:19px;color:#9cb8cf;flex-shrink:0}.navcaption{padding:22px 9px 9px;letter-spacing:1.3px;font-size:9px}aside{padding:18px 12px}.localnote{padding:20px 10px}.tabs{gap:8px;margin-bottom:20px}.tabs button{font-size:13px;padding:11px 10px}.tabs button.active{background:#304353;border-radius:6px 6px 0 0}.actions{gap:8px}.actions button{font-size:13px}.globalSearchBar{display:flex;justify-content:flex-end;margin:-5px 0 18px}.globalSearchBar button{font-size:12px;color:#a6bacb;background:transparent;border:1px solid var(--line);padding:8px 13px}.welcomeLine{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:8px 0 24px}.welcomeLine h2{font-size:24px;margin:6px 0}.welcomeLine .eyebrow{color:#99afc1}.dashboardGrid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.dashboardGrid>.panel{text-align:center}.dashboardRing{--portion:0%;width:180px;height:180px;border-radius:50%;background:conic-gradient(#83aecb var(--portion),#3a4651 0);padding:17px;margin:10px auto 20px}.dashboardRing>div{width:100%;height:100%;border-radius:50%;background:var(--surface);display:flex;flex-direction:column;align-items:center;justify-content:center}.dashboardRing strong{font-size:37px;font-weight:500}.dashboardRing span{font-size:12px;color:#a8bbca;margin-top:6px}.ringLegend{font-size:12px;display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap}.ringLegend i{width:9px;height:9px;background:#83aecb;border-radius:50%;display:inline-block}.ringLegend span{color:#a7b9c8;margin-left:12px}.dashboardMetrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 5px}.dashboardMetrics>.panel{display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-height:155px}.dashboardMetrics small{font-size:12px;line-height:1.5}.dashboardMetrics strong{font-size:32px;color:#b5d1e5;font-weight:500}.dashboardMetrics .metricText{font-size:22px}.dashboardMetrics span{font-size:11px;color:var(--muted);line-height:1.6}.taskMetric{text-align:left;background:var(--surface);width:100%}.dashboardTrend .reportchart{margin:0;padding:0;border:0}.dashboardTrend .reportchart>svg{width:100%}.dashboardTrend h3{margin:0 0 12px}.taskRow{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:start;gap:13px;padding:18px 0;border-bottom:1px solid var(--line)}.taskRow p{white-space:pre-wrap;margin:0 0 8px;line-height:1.65;overflow-wrap:anywhere}.taskRow .actions{margin:0;justify-content:flex-end}.taskCheck{padding:3px;width:30px;height:30px;border-radius:50%;font-size:21px}.historyTable td{vertical-align:top}.historyTable td:first-child{width:32%}.historyLoan{border-bottom:1px solid var(--line);padding:8px 0}.historyLoan>span{display:block;font-size:13px}.historyLoan small{display:block;margin:6px 0}.historyLoan button{font-size:11px;padding:5px 8px}.historyTable details{padding:9px 0}.historyTable summary{cursor:pointer;font-size:12px;color:var(--link)}.savedViews{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;margin:12px 0 22px}.savedViews label{font-size:11px;display:flex;align-items:center;gap:10px;margin:0}.savedViews select{max-width:260px}.savedViews button{font-size:12px}.undoBar{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#2d414d;border:1px solid #526a7c;padding:12px 16px;border-radius:7px;font-size:12px;margin:20px 0}.splitAddresses{max-height:260px;overflow:auto;margin:14px 0;border:1px solid var(--line);padding:10px;border-radius:6px}.splitAddresses label{font-size:12px}.mobileMenu{display:none}.compactTools{border-bottom:1px solid var(--line);padding-bottom:16px}.report .metrics strong{overflow-wrap:anywhere}
@media(max-width:1100px){.dashboardMetrics{grid-template-columns:1fr 1fr}.taskRow{grid-template-columns:30px minmax(0,1fr)}.taskRow>.actions{grid-column:2;justify-content:flex-start}.workspace{grid-template-columns:1fr}.workspace>.details{margin-top:0}}
@media(max-width:750px){header{height:60px;position:sticky;top:0;z-index:90;padding:0 13px;gap:10px}.brand{gap:9px}.brand span{font-size:20px;padding:6px 10px}.brand b{font-size:18px}header #saveState{font-size:10px;line-height:1.5;max-width:44%}.mobileMenu{display:block;padding:6px 10px;font-size:19px}.brand small{display:none}aside{display:block;position:fixed;top:60px;bottom:0;left:0;width:230px;background:#1b2229;z-index:95;transform:translateX(-100%);transition:transform .15s;box-shadow:5px 0 25px #0006;overflow:auto}body.menuOpen aside{transform:translateX(0)}aside nav{display:block;overflow:visible}aside nav button{width:100%;white-space:normal;text-align:left}aside .navcaption{display:block}.localnote,#congregation{display:none}main{margin:0;padding:20px 14px}.top{margin-bottom:14px;gap:10px}.top h1{font-size:23px}.top p{font-size:11px}.top label{font-size:11px}.top select{font-size:12px;max-width:130px}.welcomeLine{align-items:flex-start;gap:12px}.welcomeLine h2{font-size:19px}.welcomeLine .primary{font-size:12px;max-width:135px}.globalSearchBar{justify-content:stretch}.globalSearchBar button{width:100%;text-align:left}.dashboardGrid{gap:10px}.dashboardGrid .panel{padding:16px 10px}.dashboardRing{width:125px;height:125px;padding:12px;margin:4px auto 14px}.dashboardRing strong{font-size:27px}.dashboardRing span{font-size:11px}.dashboardGrid .hint{font-size:10px}.ringLegend{font-size:10px}.dashboardMetrics{gap:9px}.dashboardMetrics>.panel{padding:16px 13px;min-height:145px}.dashboardMetrics strong{font-size:28px}.dashboardMetrics .metricText{font-size:19px}.panel{padding:17px}.tabs{gap:3px}.tabs button{padding:10px 7px;font-size:12px}.toolbar input{min-width:0;flex:1 1 150px}.toolbar select{flex:1 1 120px}.toolbar button{font-size:12px}.taskRow .actions button{font-size:11px;padding:7px 9px}.historyTable{min-width:600px}dialog{padding:22px;width:95vw;max-height:91vh}button,input,select{min-height:34px}.savedViews{align-items:stretch}.savedViews label{flex-wrap:wrap}.undoBar{align-items:flex-start}.undoBar button{white-space:nowrap}.compactTools button{flex:1 1 140px}.report{padding:17px}.report .metrics strong{font-size:23px}}
@media print{.globalSearchBar,.savedViews,.undoBar,.mobileMenu{display:none!important}}
@media(max-width:750px){aside .stop{display:block}.globalSearchBar{gap:6px}.globalSearchBar button:last-child{width:auto;flex-shrink:0;white-space:nowrap}.globalSearchBar button:first-child{flex:1}}

/* KML/GeoJSON review stays inside the import dialog. */
.boundaryImportMap{height:330px;min-height:240px;width:100%;border:1px solid #cdd9e2;border-radius:10px;margin-top:14px;overflow:hidden}.boundaryImportMap .leaflet-control-attribution{font-size:10px}.boundaryImportMap .leaflet-control-attribution svg,.boundaryImportMap .leaflet-control-attribution img{max-height:10px;max-width:16px;vertical-align:middle}
@media(max-width:600px){.boundaryImportMap{height:270px}}

.setupMap{height:440px;min-height:260px;border-radius:10px;border:1px solid #536576;margin:18px 0;overflow:hidden}.setupMap .leaflet-control-attribution{font-size:10px}.setupMap .leaflet-control-attribution svg{max-width:16px;max-height:10px}.setupFields{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}.setupFields label{display:flex;flex-direction:column;gap:6px}.setupArea{border:1px solid #526373;border-radius:10px;padding:18px;margin:18px 0}.setupArea h3{margin:0}.setupCardTable input{min-width:85px;width:100%;max-width:300px}.setupCardTable td:nth-child(2){min-width:250px}.setupFocused{outline:2px solid #7195b8;outline-offset:-2px}.setupConfirm{margin-top:22px;padding-top:18px;border-top:1px solid #637384}.setupConfirm input,#setupIBConfirm{max-width:300px}.setupIBRows{max-height:450px;overflow:auto;margin:18px 0}.setupSteps{flex-wrap:wrap}@media(max-width:600px){.setupMap{height:310px}.setupFields{grid-template-columns:1fr}.setupArea{padding:12px}.setupCardTable td:nth-child(2){min-width:200px}}
.languageChoice{display:block;margin:20px 12px 12px;font-size:12px;line-height:1.4}
.languageChoice select{display:block;width:100%;margin:6px 0}
.languageChoice small{display:block;color:inherit;opacity:.8;font-size:11px}

/* Dashboard and shared controls: restrained contrast, readable hierarchy, clear actions. */
.srOnly{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.dashboardHero{display:flex;justify-content:space-between;align-items:center;gap:28px;padding:30px 32px;margin:0 0 18px;border:1px solid #587f9e55;border-radius:14px;background:linear-gradient(125deg,#243b50,#1b2934 70%,#1c252d);box-shadow:0 10px 30px #00000012}
.dashboardHero h2{font-size:30px;letter-spacing:-.6px;margin:8px 0 10px;color:#e4eff8}.dashboardHero p{font-size:14px;line-height:1.6;margin:0 0 12px;color:#bbcbd7}.dashboardHero small{color:#99adbd;font-size:12px}.eyebrow{letter-spacing:.14em;font-size:10px;font-weight:650;color:#99bdd8}
.heroActions{display:flex;flex-direction:column;align-items:flex-end;gap:14px;flex-shrink:0}.heroActions .primary{min-height:44px;padding:11px 18px}.privacyBadge{font-size:11px;color:#b1cfbf;display:flex;align-items:center;gap:7px}.privacyBadge:before{content:'';width:6px;height:6px;border-radius:50%;background:#95cbb0}
.dashboardShortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:20px}.dashboardShortcuts button{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#1c252d;border-color:#3f526255;padding:16px 19px;text-align:left}.dashboardShortcuts button:hover{background:#263644;border-color:#6d99ba}.dashboardShortcuts button>span{font-size:12px;color:#b8cbd9}.dashboardShortcuts strong{font-size:22px;color:#d6e7f3;font-weight:600}
.dashboardGrid>.panel{border:1px solid #3f526240}.dashboardGrid h3{font-size:14px;letter-spacing:.01em;margin:0 0 18px;color:#cfdfeb}.dashboardRing{box-shadow:0 0 0 7px #84b6df06}.dashboardGrid{margin-bottom:16px}.dashboardMetrics>.panel{border:1px solid #3f526235}.dashboardMetrics strong{font-variant-numeric:tabular-nums}.dashboardMetrics small{color:#c5d6e3}.dashboardMetrics .metricText{line-height:1.4}
.dashboardLower{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr);gap:16px;margin-top:16px;align-items:start}.dashboardLower>.panel{min-width:0}.dashboardTrend .between{align-items:center}.dashboardTrend h3{margin:8px 0 0;font-size:16px}.trendPeriod{font-size:11px;color:#a6bac9;padding:5px 8px;border:1px solid #58718a55;border-radius:5px}.dashboardTrend svg{display:block;max-width:100%;height:auto;margin-top:12px}.chartData{border-top:1px solid var(--line);padding-top:14px;margin-top:8px}.chartData summary{font-size:12px;color:#b4cde1;cursor:pointer}.chartData table{font-size:12px;width:100%;min-width:0}.chartEmpty{margin:0 0 14px}
.dashboardAttention h3{font-size:18px;margin:8px 0 22px}.attentionSummary{display:flex;justify-content:space-between;align-items:center;gap:14px;font-size:12px;color:#c2d3e0}.attentionSummary b{background:#314454;color:#d2e7f7;border-radius:5px;padding:5px 9px;font-variant-numeric:tabular-nums}.dashboardAttention .hint{font-size:11px;line-height:1.7}.attentionCard{width:100%;display:flex;justify-content:space-between;align-items:center;text-align:left;background:#1b252d;border:1px solid #3e536333;padding:11px 12px;margin-top:7px;color:#d1e2ed;font-size:12px}.attentionCard small{display:block;font-size:11px;color:#a2b8c8;margin-top:4px}.attentionLink{margin-top:12px;padding:8px 0;border:0;background:transparent;font-size:11px;color:#b2d3eb;text-align:left}.attentionClear{font-size:12px;line-height:1.6;color:#afc9ba;padding:12px 0}.revisionSummary{border-top:1px solid var(--line);padding-top:20px;margin-top:14px}
.dashboardStart{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px;border:1px dashed #5a7891}.dashboardStart h3{font-size:18px;margin:0 0 8px}.dashboardStart .hint{margin:0;line-height:1.6}
.globalSearchBar{gap:8px;align-items:stretch}.globalSearchBar button{min-height:40px;border-color:#485e7155;background:#182129}.globalSearchBar button:first-child{display:flex;align-items:center;gap:9px}.globalSearchBar kbd{margin-left:20px;font-family:inherit;font-size:10px;white-space:nowrap;border:1px solid #48607966;border-radius:4px;padding:3px 5px;color:#7f9bb0}.globalSearchBar button:hover{background:#253541;color:#d2e6f5}
.connectionNotice{display:flex;justify-content:space-between;align-items:center;gap:20px;border:1px solid #a77e3855;background:#3c311f80;border-radius:8px;padding:15px 18px;margin:0 0 18px;color:#ead8b5}.connectionNotice.restored{background:#20372f80;border-color:#5a9b7d55;color:#c2e0d0}.connectionNotice strong{font-size:13px}.connectionNotice p{font-size:12px;line-height:1.6;margin:6px 0 0}.connectionNotice button{font-size:12px;flex-shrink:0}
#saveState{max-width:48%;line-height:1.5;overflow-wrap:anywhere}#saveState:before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:#71899a;margin-right:7px;vertical-align:middle}#saveState[data-save-kind=saved]:before{background:#88b69a}#saveState[data-save-kind=saving]:before{background:#d1b268}#saveState[data-save-kind=error]:before{background:#e4a385}.saveDetail{display:block;font-size:10px;max-width:54ch;color:#d7b09a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.searchHeading h2{margin:8px 0 20px}.searchEmpty{padding:28px 6px;color:#c7d9e7}.searchEmpty strong{font-size:16px}.searchEmpty p{font-size:13px;line-height:1.7;color:#9db2c3;max-width:44ch}.searchResult>span{min-width:0;overflow-wrap:anywhere}.searchResult small{display:block;margin-top:6px;color:#9ab0c1;font-size:11px}#workspaceSearch{width:100%;min-height:45px}
.menuBackdrop{display:none}
.territories>*{min-width:0}
@media(max-width:750px){.territories{grid-template-columns:minmax(0,1fr)}}
#saveState[data-save-kind=review]:before{background:#d1b268}
.startupError{max-width:650px;margin:8vh auto;line-height:1.7}.startupError h1{font-size:25px;line-height:1.3}.startupError button{margin-top:12px;min-height:42px}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid #8fc5ee;outline-offset:3px}
@media(max-width:1100px){.dashboardLower{grid-template-columns:minmax(0,1fr)}.dashboardHero{padding:26px}.dashboardHero h2{font-size:26px}}
@media(max-width:750px){.dashboardHero{padding:23px 19px;gap:20px;align-items:flex-start;flex-direction:column}.dashboardHero h2{font-size:24px}.dashboardHero p{font-size:12px}.heroActions{align-items:flex-start;flex-direction:row;align-items:center;flex-wrap:wrap;gap:12px}.heroActions .primary{font-size:12px;max-width:none}.privacyBadge{font-size:10px}.dashboardShortcuts{gap:7px;margin-bottom:14px}.dashboardShortcuts button{padding:13px 10px;align-items:flex-start;flex-direction:column;gap:9px}.dashboardShortcuts button>span{font-size:10px;line-height:1.5}.dashboardShortcuts strong{font-size:23px}.dashboardGrid .panel{padding:17px 10px}.dashboardGrid h3{font-size:11px;line-height:1.5;min-height:32px;margin-bottom:12px}.dashboardRing{width:116px;height:116px;padding:11px}.dashboardLower{gap:12px;margin-top:12px}.globalSearchBar kbd{display:none}.globalSearchBar button:first-child{font-size:11px;min-width:0}.connectionNotice{align-items:stretch;flex-direction:column;gap:12px;padding:14px}.connectionNotice button{align-self:flex-start}.dashboardStart{align-items:flex-start;flex-direction:column;gap:15px}.dashboardStart h3{font-size:16px}.saveDetail{max-width:18ch;font-size:9px}body.menuOpen .menuBackdrop{display:block;position:fixed;inset:60px 0 0;z-index:94;background:#0008;border:0;border-radius:0;width:100%;height:calc(100dvh - 60px);min-height:0}.dashboardMetrics .metricText{font-size:18px}}
@media(max-width:360px){.dashboardRing{width:104px;height:104px}.dashboardRing strong{font-size:24px}.heroActions{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){button,aside{transition:none!important}html{scroll-behavior:auto!important}}
@media print{.dashboardShortcuts,.heroActions,.connectionNotice,.menuBackdrop,.chartData{display:none!important}}
/* Settings sections are mutually exclusive and use the available panel width. */
.settingsGrid{display:grid;grid-template-columns:minmax(0,1fr)}.settingsGrid>.panel{min-width:0}.settingsGrid input[name=congregation]{width:100%}

/* First-use questions, local import review and the real-page guided tour. */
.welcomeChoice{display:flex;gap:12px;align-items:flex-start;border:1px solid var(--line,#d8e1e8);border-radius:12px;padding:15px;margin:10px 0;cursor:pointer}.welcomeChoice input{width:auto;flex:none;margin-top:4px}.welcomeChoice span{display:grid;gap:6px}.welcomeChoice small{font-size:.88rem;line-height:1.5;opacity:.8}.welcomeChoice.chosen{border-color:var(--accent,#477596);background:rgba(71,117,150,.08)}.welcomePlan{padding-left:24px}.welcomePlan li{margin:18px 0}.welcomePlan p{margin:5px 0 10px}.welcomePlan small{display:block}.cardImportCards{max-height:340px;overflow:auto;border-block:1px solid var(--line,#d8e1e8);margin:14px 0}.cardImportCards details{padding:12px 4px}.cardImportCards summary{cursor:pointer;font-weight:600}.cardImport .notice ul{max-height:200px;overflow:auto}.ltmTour{position:fixed;z-index:950;bottom:24px;right:24px;width:min(430px,calc(100vw - 32px));padding:22px;border:2px solid var(--accent,#477596);border-radius:16px;background:var(--surface,#242a30);color:var(--text,#e3e9ee);box-shadow:0 15px 60px #17374c30}.ltmTour h2{margin:8px 0}.ltmTour p{line-height:1.55}.ltmTour small{font-weight:600;opacity:.7}.tourHighlight{outline:3px solid var(--accent,#477596);outline-offset:8px;border-radius:4px}@media(max-width:600px){.ltmTour{bottom:12px;right:16px;padding:16px}.welcomeChoice{padding:12px}.welcomeSteps{flex-wrap:wrap}.welcomeGuide .between{gap:12px}}

/* Feedback åbnes hos Tally med synlig oplysning før åbning. */
nav a.navExternal{display:flex;align-items:center;gap:11px;padding:12px 10px;margin-bottom:4px;border-radius:6px;font-size:13px;line-height:1.4;color:#bfccd6;text-decoration:none;min-height:43px}
nav a.navExternal:hover,nav a.navExternal:focus-visible{background:#324a60;color:#fff;outline-offset:2px}
.navExternalLabel{min-width:0}.navExternalLabel small{display:block;font-size:11px;line-height:1.45;color:#bfccd6;margin-top:4px;white-space:normal;overflow-wrap:anywhere}
.navExternalMark{margin-left:auto;font-size:14px;color:#9cb8cf}

/* A fixed shell keeps desktop and mobile maps/tables below the same topbar. */
:root{--shell-height:72px}
body{padding-top:var(--shell-height)}
body>header{position:fixed;inset:0 0 auto;height:var(--shell-height);z-index:100;isolation:isolate}
body>aside{top:var(--shell-height)}
.brand{border:0;background:transparent;padding:0;min-width:0;flex-shrink:1;text-align:left}
.brand:hover{background:transparent}
.brand:focus-visible{outline:2px solid var(--link);outline-offset:3px}
.brand .brandWordmark{display:block;width:360px;max-width:100%;height:66px;object-fit:contain}
.brand .brandCompact,.brand b{display:none}
.betaChannel .brand b{display:block;white-space:nowrap;font-size:14px;color:var(--link)}
header #saveState{min-width:0;overflow-wrap:anywhere}
#app .leaflet-container{isolation:isolate;z-index:0}
html{scroll-padding-top:calc(var(--shell-height) + 15px)}
@media(max-width:750px){:root{--shell-height:60px}.brand .brandWordmark{display:none}.brand .brandCompact,.brand b{display:block}.brand .brandCompact{width:34px;height:34px}.brand{gap:8px;flex-shrink:0}.brand b{font-size:18px}.betaChannel .brand b{font-size:16px}header #saveState{max-width:none;flex:1;text-align:right}.mobileMenu{flex-shrink:0}.menuBackdrop{top:var(--shell-height)}}
@media print{body{padding-top:0}}

.districtMap.mapGestureLocked{touch-action:pan-y!important;cursor:default}.mapGestureHint{margin:8px 0;line-height:1.6}.mapGestureControls{margin:10px 0}.mapGestureControls button[aria-pressed=true]{background:#245840;border-color:#6ea98d}

.taskAlert{display:block;margin-top:7px;background:#523b20;color:#ffe0a6;border:1px solid #ae813e;font-weight:600}.issueTaskAlert{position:static;inset:auto;transform:none;width:auto;max-width:100%;padding:14px;margin:14px 0;background:#512f2d;border:2px solid #c98068;border-radius:6px;color:#ffe3d6;box-shadow:none;overflow-wrap:anywhere}.issueTaskAlert ul{padding-left:22px}.issueTaskAlert li{white-space:pre-wrap;margin:6px 0}.issueTaskAlert p{font-size:12px;line-height:1.6}.navTaskCount,.navFollowupCount{margin-left:auto;background:#493c26;border:1px solid #997737;border-radius:10px;padding:2px 7px;font-size:11px}

/* Choice radios must not inherit the full-width text-field rule in dialogs. */
.welcomeChoice>input[type=radio]{width:18px;height:18px;min-height:18px;flex:0 0 18px;margin:3px 0 0;accent-color:var(--accent)}
.welcomeChoice>span{min-width:0;flex:1;overflow-wrap:anywhere}

.onboardingChecklist{padding-left:24px;margin:16px 0}.onboardingChecklist li{padding:12px 0;border-bottom:1px solid var(--line);line-height:1.6;overflow-wrap:anywhere}.onboardingChecklist .actions{margin:10px 0 0;flex-wrap:wrap}.onboardingChecklist s{color:var(--muted,#b8c5d1)}

/* Canonical location values keep status colours independent of language. */
.statusBadge.issued{background:#493c26;color:#ffe3a8;border:1px solid #997737}.statusBadge.folder{background:#193f32;color:#b9f1d7;border:1px solid #4b8c72}.statusBadge.box{background:#283f56;color:#c9e7ff;border:1px solid #5b83a4}
.cardRow[data-location=issued]>td:first-child{box-shadow:inset 3px 0 #d9b85f}.cardRow[data-location=folder]>td:first-child{box-shadow:inset 3px 0 #78c8a7}.cardRow[data-location=box]>td:first-child{box-shadow:inset 3px 0 #8bb8df}
button.issueAction{background:#245840;color:#e1ffef;border-color:#6ea98d}button.issueAction:hover:not(:disabled){background:#306c51}button.returnAction{background:#594326;color:#fff0d1;border-color:#bd955e}button.returnAction:hover:not(:disabled){background:#705433}button.issueAction:disabled{opacity:.55}.rowActions{flex-wrap:wrap;margin:0;min-width:180px}.rowActions button{white-space:normal}

.publisherReturnGroup{padding:10px 0 20px;border-bottom:2px solid var(--line);margin-bottom:18px}.publisherReturnGroup h3{display:flex;gap:12px;flex-wrap:wrap;align-items:center;overflow-wrap:anywhere}.publisherReturns{min-width:0}.publisherReturnGroup table{min-width:0;width:100%;table-layout:fixed}.publisherReturnGroup td,.publisherReturnGroup th{padding:12px 5px;overflow-wrap:anywhere}.publisherReturnGroup th:last-child{width:36%}.publisherReturnGroup button{padding:8px 9px}

.brand{flex:1 1 auto;min-width:0}.brandIdentity{display:flex;align-items:center;gap:12px;min-width:0;flex:1 1 auto}.brand .brandWordmark{width:360px;max-width:none;height:66px;flex:0 0 360px;object-position:left center}.brandIdentity b{order:3;flex-shrink:0}header #saveState{flex:0 1 auto;max-width:30%;min-width:65px}
/* The unchanged 360 × 66 wordmark includes right-hand whitespace. Align the
   beta badge with the first text line, not with the two-line image's centre. */
@media(min-width:751px){.brand .brandWordmark{margin-right:-60px}.brandIdentity b{align-self:flex-start;margin-top:15px}}
@media(max-width:750px){.brand{flex:1 1 auto;gap:8px}.brandIdentity{gap:6px}.brand .brandCompact{width:34px;height:34px;flex:0 0 34px}.brandIdentity b{order:0;font-size:14px}.betaChannel .brandIdentity b{font-size:14px}header #saveState{flex:0 1 85px;max-width:30%;min-width:65px}}

.onboardingTasks{padding:12px 16px;margin-bottom:16px}.onboardingTasks>summary{font-size:14px;font-weight:600;cursor:pointer;line-height:1.5}.onboardingTasks>p{font-size:12px;line-height:1.5;margin:10px 0}.onboardingTasks .onboardingChecklist{margin:8px 0;padding-left:22px}.onboardingTasks .onboardingChecklist li{padding:7px 0;font-size:12px;line-height:1.4}.onboardingTasks .onboardingChecklist .actions{margin-top:5px;gap:5px}.onboardingTasks .onboardingChecklist button{padding:5px 8px;font-size:11px;min-height:28px}

@media(min-width:751px){.betaChannel .brandIdentity{padding-right:0}.betaChannel .brandIdentity b{position:static;font-size:12px}}

/* Touch screens need room for fingers and readable fields without automatic zoom. */
@media screen and (any-pointer:coarse){
 button,button.taskCheck,.onboardingTasks .onboardingChecklist button{min-width:44px;min-height:44px}
 input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px;min-height:44px}
 label.check{min-height:44px;padding:6px 0}
 .dialogClose{min-width:44px;min-height:44px}
 dialog{max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overscroll-behavior:contain;scroll-padding:14px}
 .leaflet-control-zoom a{width:44px;height:44px;line-height:44px}
 .navGroup summary,.chartData summary,.onboardingTasks>summary{min-height:44px;padding-top:12px;padding-bottom:12px}
 .toolbar>input,.toolbar>select{min-width:0}
}

.setupCellLabel{display:none}
@media screen and (max-width:600px){
 .setupCardTable,.setupCardTable tbody,.setupCardTable tr,.setupCardTable td{display:block;width:100%;min-width:0;max-width:100%}
 .setupCardTable thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .setupCardTable tbody tr{border:1px solid var(--line);border-radius:6px;padding:10px;margin:12px 0}
 .setupCardTable td{border:0;padding:8px 0;overflow-wrap:anywhere}
 .setupCardTable td input{width:100%;min-width:0}
 .setupCardTable .setupCellLabel{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}
 .setupCardTable .warning{white-space:normal;overflow-wrap:anywhere;line-height:1.6}
}

/* Keep the entire failure explanation readable without replacing an open form. */
.saveExplanation{display:inline-block;vertical-align:middle;max-width:calc(100% - 14px);text-align:inherit}
.saveExplanation>summary{cursor:pointer;min-height:44px;padding:6px 0;line-height:1.35;overflow-wrap:anywhere}
.saveExplanation>summary:focus-visible{outline:2px solid var(--link);outline-offset:2px}
.saveExplanationText{position:fixed;top:calc(var(--shell-height) + 8px);right:12px;width:min(560px,calc(100vw - 24px));max-height:calc(100vh - var(--shell-height) - 24px);max-height:calc(100dvh - var(--shell-height) - 24px);overflow:auto;overscroll-behavior:contain;white-space:normal;overflow-wrap:anywhere;text-overflow:clip;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:8px;box-shadow:0 12px 35px #0008;padding:18px;font-size:14px;line-height:1.6;color:var(--text);z-index:120}
.saveExplanationText p{white-space:pre-wrap;margin:12px 0}.saveExplanationText button{min-height:44px;min-width:44px}

.dialogSaveFeedback .saveExplanation{display:block;max-width:100%}.dialogSaveFeedback .saveExplanationText{position:static;width:100%;max-height:45vh;max-height:45dvh;margin-top:8px;z-index:auto}

/* Import and follow-up work stay usable on narrow phones. */
.importChoices{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:18px;margin-top:20px}.importChoices>section{border:1px solid var(--line);border-radius:8px;padding:18px;min-width:0}.importChoices p{line-height:1.6;overflow-wrap:anywhere}.importChoices button{max-width:100%;white-space:normal}
.followupRow{align-items:flex-start;gap:16px}.followupRow>div:first-child{flex:1;min-width:0;overflow-wrap:anywhere}.followupRow p{margin:7px 0;line-height:1.5}.followupRow small{display:block}.followupRow>.actions{flex-wrap:wrap;justify-content:flex-end;max-width:55%}.followupTabs{flex-wrap:wrap}
@media(max-width:600px){.followupRow{flex-direction:column}.followupRow>.actions{justify-content:flex-start;max-width:100%}.followupRow button{white-space:normal;max-width:100%}}

.photoSource{display:block;max-width:100%;max-height:340px;object-fit:contain;margin:12px auto;background:#fff}
.photoRow{padding:12px 0;border-bottom:1px solid var(--border,#6b7f90)}
.photoRow p{white-space:pre-wrap;overflow-wrap:anywhere}
#photoImport textarea{width:100%;box-sizing:border-box}
/* Incomplete IB rows remain readable when warnings wrap on a phone. */
.setupIBRows .line>span{min-width:0;width:100%}.setupIBRows .line small{display:block;white-space:normal;line-height:1.6}.setupIBRows .line small.notice{margin:10px 0 0;padding:10px;border-radius:5px}

.columnImport{margin:1rem 0;padding:1rem;border:1px solid var(--border,#d9dfe5);border-radius:10px}.columnImportFields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px;margin:1rem 0}.columnImportFields label{min-width:0;overflow-wrap:anywhere}.columnImport select,.columnImport input[type=number]{max-width:100%}.columnImport td{white-space:pre-wrap;overflow-wrap:anywhere;min-width:85px;max-width:240px}.columnImport .tablewrap{max-width:100%;overflow:auto}
