/* Deprem Hazır · restrained, accessible mobile interface */
:root{--dh-bg:#0d141b;--dh-surface:#141e28;--dh-raised:#1c2935;--dh-border:#2b3946;--dh-text:#f1f5f7;--dh-muted:#a4b1bc;--dh-accent:#75d6bf;--dh-danger:#f18b91;--sat:env(safe-area-inset-top,0px);--sab:env(safe-area-inset-bottom,0px);--sal:env(safe-area-inset-left,0px)}
html.dark body,body{background:var(--dh-bg)!important;color:var(--dh-text);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;font-size:15px;line-height:1.5;letter-spacing:0}
body{padding-bottom:0!important}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{touch-action:manipulation}button:focus-visible,a:focus-visible,[role=button]:focus-visible{outline:2px solid var(--dh-accent);outline-offset:3px}
input,select,textarea{font-size:16px!important;min-height:48px;max-width:100%}input:focus,select:focus,textarea:focus{outline:2px solid var(--dh-accent);outline-offset:2px}input[type=checkbox]{min-height:24px;min-width:24px;accent-color:var(--dh-accent)}
.dh-icon{width:20px;height:20px;display:inline-block;flex-shrink:0;vertical-align:middle}
.dh-header{padding:calc(10px + var(--sat)) 16px 10px!important;border-radius:0!important;background:var(--dh-bg)!important;border-bottom:1px solid #26313c!important;box-shadow:none!important}
.dh-header-inner{max-width:648px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;position:relative}.dh-brand{display:flex;align-items:center;gap:9px;min-width:0}.dh-logo{width:28px;height:32px;display:grid;place-items:center;color:var(--dh-accent);flex-shrink:0}.dh-logo svg{width:27px;height:27px}.dh-brand h1{font-size:17px;font-weight:650;letter-spacing:-.4px;line-height:1.3;display:flex;align-items:center;gap:6px;min-width:0}.dh-brand-center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);max-width:calc(100% - 200px);text-align:center;pointer-events:none}.dh-brand-center h1{font-size:18px;font-weight:650;letter-spacing:-.4px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dh-brand-tagline{font-size:13px;font-weight:450;color:var(--dh-muted);letter-spacing:-.2px;white-space:nowrap}.dh-brand p{display:none}.dh-header-actions{display:flex;gap:4px}.dh-icon-btn{width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:12px;background:transparent;color:var(--dh-muted)}.dh-icon-btn:hover{background:var(--dh-surface);color:var(--dh-text)}.dh-icon-btn svg{width:21px;height:21px}
main{max-width:680px!important;margin-top:0!important;padding:22px max(16px,var(--sal)) calc(108px + var(--sab))!important}
#dashboard-content>.tab-content{padding:0!important;border:0!important;background:transparent!important;border-radius:0!important;box-shadow:none!important;overflow:visible}.tab-content>div{margin-top:18px!important}.tab-content>div:first-child{margin-top:0!important}
.tab-content h3{font-size:23px!important;font-weight:650!important;letter-spacing:-.6px!important;line-height:1.3!important}.tab-content h4{font-weight:600!important;letter-spacing:0!important}.tab-content .font-black{font-weight:650!important}.tab-content .uppercase{letter-spacing:0!important;text-transform:none!important}.tab-content .text-xs{font-size:14px!important}.tab-content [class*="text-[9px]"],.tab-content [class*="text-[10px]"],.tab-content [class*="text-[11px]"]{font-size:12px!important;line-height:1.5!important}
.tab-content .flex>div{min-width:0}.tab-content input{width:100%}.tab-content .shadow,.tab-content [class*="shadow-"],.tab-content [class*="ring-"]{box-shadow:none!important}.tab-content [class*="bg-gradient"]{background-image:none!important;background-color:var(--dh-surface)!important}.tab-content .animate-pulse,.tab-content .animate-ping,.tab-content .animate-bounce{animation:none!important}
.tab-content [class*="dark:bg-slate-800"],.tab-content [class*="dark:bg-slate-900"],.tab-content .bg-slate-800\/90{background-color:var(--dh-surface)!important}.tab-content [class*="dark:bg-slate-950"]{background-color:var(--dh-bg)!important}.tab-content [class*="border-slate"]{border-color:var(--dh-border)!important}.tab-content [class*="text-slate-400"],.tab-content [class*="dark:text-slate-400"]{color:var(--dh-muted)!important}.tab-content :is(.text-blue-400,.text-blue-500,.text-indigo-400){color:var(--dh-accent)!important}.tab-content [class*="rounded-2xl"],.tab-content [class*="rounded-3xl"]{border-radius:14px!important}
.tab-content button{min-height:48px}.dh-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.dh-section-heading button{width:48px;height:48px;border:1px solid var(--dh-border);border-radius:12px;background:var(--dh-surface);color:var(--dh-muted)}
#dh-data-status{font-size:12px;color:var(--dh-muted);margin:6px 0 16px}.dh-status-dot{width:6px;height:6px;border-radius:50%;background:var(--dh-accent)}
.dh-scope{background:var(--dh-surface)!important;padding:4px!important;border:1px solid var(--dh-border)!important;border-radius:12px!important}.dh-scope>div{gap:3px!important}.scope-btn{min-width:0!important;min-height:44px!important;padding:8px 4px!important;font-size:14px!important;border-radius:8px!important;font-weight:500!important}.scope-btn svg{display:none}.scope-btn.bg-red-600{background:var(--dh-raised)!important;color:var(--dh-text)!important;box-shadow:none!important}.scope-btn>span{white-space:nowrap}
#earthquake-map-card{border-color:var(--dh-border)!important;border-radius:14px!important;box-shadow:none!important;min-height:250px!important}#earthquake-map{height:250px!important}#earthquake-map-card.dh-map-expanded,#earthquake-map-card.dh-map-expanded #earthquake-map{height:520px!important;min-height:520px!important}
#earthquake-map-card button{min-width:44px;min-height:44px;background:#18232fec!important;border-color:var(--dh-border)!important;color:#d1dbe2!important;border-radius:10px}#earthquake-map-card button svg{width:18px;height:18px}.dh-map-caption{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:var(--dh-muted);margin:8px 0!important}.dh-map-caption>span{display:flex;align-items:center;gap:6px}.dh-map-caption i{height:6px;width:6px;border-radius:50%;background:var(--dh-accent)}#toggle-faults-btn{min-height:44px;background:transparent;color:var(--dh-muted);display:flex;align-items:center;gap:6px;font-size:12px;padding:0 4px}#toggle-faults-btn[aria-pressed=true]{color:#e9b582}
html.dark :is(#earthquake-map,#map,#family-live-map) img.leaflet-tile{filter:invert(100%) hue-rotate(180deg) brightness(82%) saturate(45%) contrast(92%)}html.dark :is(#earthquake-map,#map,#family-live-map) img.google-satellite-tile{filter:none!important}
#eq-source-filters-bar{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px!important;overflow:visible!important;padding:0!important;margin:0!important}#eq-source-filters-bar:has(#src-filter-usgs){grid-template-columns:repeat(3,minmax(0,1fr))}#eq-source-filters-bar button{min-height:46px;padding:8px 3px!important;border-radius:10px!important;font-size:13px!important;justify-content:center;transform:none!important;box-shadow:none!important;font-weight:500!important;min-width:0}#eq-source-filters-bar button svg,#eq-source-filters-bar .text-sm{display:none}#eq-source-filters-bar .bg-blue-600{background:#75d6bf14!important;color:var(--dh-accent)!important;border-color:#75d6bf65!important}#earthquake-source-badge{font-family:inherit!important;font-size:12px!important;max-width:50%!important;white-space:normal!important;line-height:1.35;text-align:right}
.eq-card{background:transparent!important;border:0!important;border-bottom:1px solid var(--dh-border)!important;border-radius:0!important;padding:16px 0!important;box-shadow:none!important;gap:10px}.eq-card>div:first-child{min-width:0;flex:1;gap:12px!important}.eq-card>div:first-child>div:last-child{min-width:0;flex:1}.eq-card .truncate{white-space:normal!important;overflow-wrap:anywhere;max-width:none!important}.eq-card .leading-snug{font-size:15px!important;line-height:1.4!important}.eq-card .leading-snug>span:first-child{display:none}.eq-card [class*="text-[11px]"]{font-size:12px!important;flex-wrap:wrap;gap:4px!important;font-weight:400!important}.eq-card .font-mono{height:50px;width:50px;font-family:inherit;font-size:23px!important;font-weight:600!important;border-radius:12px!important;box-shadow:none!important;border:0!important;background:#75d6bf0c}.eq-card>div:last-child>div{display:none}.eq-card button{width:44px;min-height:48px;padding:6px!important;background:transparent!important;color:var(--dh-muted)!important;font-size:12px!important}.eq-card button svg{width:20px;height:20px}.eq-card.selected{background:var(--dh-surface)!important}.eq-card .text-indigo-300{color:var(--dh-muted)!important}.eq-card [class*="text-[9px]"]{background:transparent!important;padding:0!important;color:var(--dh-muted)!important;font-size:11px!important;font-weight:500!important;margin-left:3px!important}
.dh-empty{border:1px solid var(--dh-border);border-radius:14px;padding:28px 20px;text-align:center;color:var(--dh-muted);font-size:14px}.dh-empty strong{display:block;color:var(--dh-text);margin-bottom:7px}.dh-empty button{display:block;margin:16px auto 0;padding:10px 18px;border:1px solid var(--dh-border);border-radius:10px;background:var(--dh-raised);color:var(--dh-accent);min-height:48px}#earthquake-pagination-container button,#nearby-pagination-container button{min-width:44px;min-height:44px}
#content-map>.dh-map-toolbar{display:flex;flex-direction:column;gap:16px;align-items:stretch;padding-bottom:0!important}.dh-map-toolbar>div:first-child{display:flex;justify-content:space-between;gap:8px}.dh-map-tools{display:flex;gap:8px}.dh-map-tools>button{min-height:48px!important;border-radius:10px!important;font-size:14px!important;box-shadow:none!important;justify-content:center}.dh-map-tools>button:first-child{flex:1;background:var(--dh-raised)!important;border-color:var(--dh-border)!important;color:var(--dh-text)!important}.dh-map-tools>button:last-child{padding:10px 16px;background:var(--dh-surface)!important;border-color:var(--dh-border)!important}.dh-saved-location{min-height:72px;border-radius:12px!important;background:var(--dh-surface)!important;border-color:var(--dh-border)!important;padding:12px!important;box-shadow:none!important}.dh-saved-location>div{min-width:0}.dh-saved-location>div>div:first-child{background:transparent!important;border:0!important;color:var(--dh-muted)!important}.dh-saved-location>div>div:first-child svg{color:var(--dh-muted)!important}.dh-saved-location>div>div:last-child>span:first-child{font-size:12px!important;text-transform:none!important;font-weight:400!important;letter-spacing:0!important}.dh-saved-location .truncate{white-space:normal;overflow-wrap:anywhere}.dh-saved-location button{background:transparent!important;color:var(--dh-accent)!important;border:0!important;min-height:48px;box-shadow:none!important}
#content-map #map{height:280px!important}.dh-place-filters{background:transparent!important;border:0!important;padding:0!important;gap:6px!important}.cat-filter-btn{min-height:52px!important;font-size:12px!important;box-shadow:none!important}.cat-filter-btn svg{display:none}.cat-filter-btn.bg-blue-600{background:#75d6bf14!important;color:var(--dh-accent)!important;border-color:#75d6bf65!important}.dh-routes-heading{font-size:16px;font-weight:600;color:var(--dh-text);margin:24px 0 12px}#quick-routes-list>div{display:flex!important;flex-direction:column;align-items:stretch!important;gap:12px!important;padding:16px!important;background:var(--dh-surface)!important;border-color:var(--dh-border)!important;box-shadow:none!important}#quick-routes-list>div>div:first-child>div:first-child{flex-wrap:wrap;gap:7px!important}#quick-routes-list .truncate{white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere}#quick-routes-list>div>div:last-child{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important}#quick-routes-list button,#quick-routes-list a{min-height:48px;justify-content:center;background:var(--dh-raised)!important;color:var(--dh-text)!important;border:1px solid var(--dh-border);box-shadow:none!important}#quick-routes-list button{color:var(--dh-accent)!important}
.dh-family-summary{background:var(--dh-surface)!important;border:1px solid var(--dh-border)!important;border-radius:14px;padding:16px!important}.dh-family-summary>div:first-child{padding:0 0 14px!important;margin:0!important;border-radius:0!important}.dh-family-summary #family-my-avatar{background:var(--dh-raised)!important;color:var(--dh-muted)!important;border-radius:50%!important;width:44px;height:44px}.dh-family-summary #family-my-email{white-space:normal!important;overflow-wrap:anywhere;font-size:13px!important}.dh-family-summary #family-my-name{white-space:normal!important;font-size:16px!important}.dh-family-summary button{min-height:48px;background:transparent!important;border:1px solid var(--dh-border)!important;border-radius:10px!important;color:var(--dh-text)!important;box-shadow:none!important;font-size:13px!important}.dh-family-code-row{padding:14px 0 0!important;border:0!important;border-radius:0!important;background:transparent!important;flex-wrap:wrap}.dh-family-code-row>div:first-child{flex:1;min-width:140px}#family-code-display{font-size:19px;font-weight:600;letter-spacing:.5px;color:var(--dh-accent)!important;white-space:nowrap}#content-family button,#content-family a{white-space:normal}.dh-family-status{display:flex!important;flex-direction:column;gap:8px;margin-top:14px;padding-top:14px;border-top:1px solid var(--dh-border)}.dh-family-status>div{background:transparent!important;padding:0!important;border:0!important}.dh-family-status span{white-space:normal!important;overflow-wrap:anywhere;font-size:13px!important}.dh-family-connections>div:first-child{gap:10px;align-items:center}.dh-family-connections>div:first-child>span{font-size:17px!important;color:var(--dh-text)!important;font-weight:600!important}.dh-family-connections>div:first-child>button{font-weight:500!important;font-size:13px!important}.dh-family-connections>button:last-child{background:var(--dh-raised)!important;color:var(--dh-text)!important;border:1px solid var(--dh-border);font-size:14px!important;border-radius:12px!important;box-shadow:none!important}
#family-search-input{padding:12px 14px!important;background:var(--dh-surface)!important;border-color:var(--dh-border)!important}#family-members-list>div{background:transparent!important;border:0!important;border-bottom:1px solid var(--dh-border)!important;border-radius:0!important;padding:16px 0!important;box-shadow:none!important}#family-members-list .truncate{white-space:normal!important;overflow-wrap:anywhere}#family-members-list button,#family-members-list a{min-width:44px;min-height:48px!important;box-shadow:none!important;border-radius:10px!important}#family-members-list [class*=shadow]{box-shadow:none!important}#family-members-list .flex-wrap{row-gap:6px!important}
.dh-family-map{border:1px solid var(--dh-border);border-radius:14px;overflow:hidden;margin-top:24px}.dh-family-map>summary{padding:16px;min-height:54px;font-size:15px;color:var(--dh-text);cursor:pointer;font-weight:500}.dh-family-map>div{border:0!important;border-radius:0!important}.dh-family-map .dh-family-map-header{display:flex;align-items:center;gap:10px;padding:12px;border-bottom:1px solid var(--dh-border)}.dh-family-map-header>div:first-child{flex:1}.dh-family-map-header button{font-size:12px!important;background:var(--dh-raised)!important;border-color:var(--dh-border)!important}.dh-family-map-header>div:last-child>span{display:none}#family-live-map{height:240px!important}
.dh-plan-heading{margin-bottom:20px}.dh-plan-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:8px}.dh-plan-shortcuts button{display:flex;align-items:center;gap:10px;padding:12px;background:var(--dh-surface);border:1px solid var(--dh-border);border-radius:12px;text-align:left;color:var(--dh-text);min-height:64px;font-size:14px;font-weight:500}.dh-plan-shortcuts svg{color:var(--dh-muted);width:22px;height:22px}.dh-plan-shortcuts small{display:block;font-size:12px;color:var(--dh-muted);margin-top:2px;font-weight:400}.dh-bag-overview{display:block;width:100%;padding:18px;background:var(--dh-surface);border:1px solid var(--dh-border);border-radius:14px;text-align:left}.dh-bag-overview>span:first-child{display:flex;align-items:center;gap:10px;color:var(--dh-text);font-size:16px}.dh-bag-overview #score-val-bag{margin-left:auto;font-size:13px!important;color:var(--dh-muted)}.dh-bag-overview .dh-chevron{color:var(--dh-muted);width:18px;height:18px}.dh-bag-progress{display:block;height:4px;background:var(--dh-raised);border-radius:4px;overflow:hidden;margin-top:16px}.dh-bag-progress>span{display:block;height:100%;background:var(--dh-accent);border-radius:4px}
.dh-prep-links{border-top:1px solid var(--dh-border);margin-top:16px}.dh-prep-links button{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:14px 0;border-bottom:1px solid var(--dh-border);min-height:52px;font-size:14px;color:var(--dh-text);background:transparent;text-align:left}.dh-prep-links svg{width:18px;height:18px;color:var(--dh-muted)}
#personal-action-guide-section{scroll-margin-top:90px;border:0!important;padding-top:8px!important}#personal-action-guide-section>h4{font-size:18px!important;margin:8px 0 14px;color:var(--dh-text)}.dh-guide-phases{padding:4px!important;background:var(--dh-surface)!important;border:1px solid var(--dh-border)!important;border-radius:12px!important}.phase-btn{min-height:44px!important;font-size:14px!important;border-radius:8px!important;box-shadow:none!important;font-weight:500!important;background:transparent!important;color:var(--dh-muted)!important}.phase-btn[aria-pressed=true]{background:var(--dh-raised)!important;color:var(--dh-text)!important}
#guide-phase-content>div{background:var(--dh-surface);border:1px solid var(--dh-border);border-radius:14px;overflow:hidden;padding:0 16px}#guide-phase-content>div>div{padding:18px 0!important;border:0!important;border-bottom:1px solid var(--dh-border)!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;gap:12px!important;margin-top:0!important}#guide-phase-content>div>div:last-child{border-bottom:0!important}#guide-phase-content>div>div>div:first-child{width:28px;height:28px;margin-top:2px;background:var(--dh-raised)!important;color:var(--dh-muted)!important;font-size:13px!important;font-weight:500!important;border-radius:50%!important;box-shadow:none!important}#guide-phase-content h4{font-size:16px!important;font-weight:600!important;line-height:1.45;text-transform:none!important}#guide-phase-content p{font-size:14px!important;line-height:1.6!important;color:var(--dh-muted)!important}#guide-phase-content h4+span{display:none}
.dh-first-aid{background:transparent!important;border:1px solid var(--dh-border)!important;border-radius:12px;padding:0 16px;margin-top:18px}.dh-first-aid>summary{min-height:54px;padding:16px 0;font-size:15px;font-weight:500;cursor:pointer}.dh-first-aid>div{padding:0 0 16px}.dh-first-aid p{font-size:14px!important;line-height:1.6!important}.dh-first-aid .text-sm{display:none}
#bottom-dock{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center!important;max-width:680px;left:50%!important;right:auto!important;transform:translateX(-50%);background:var(--dh-bg)!important;border-color:var(--dh-border)!important;padding:8px 8px calc(8px + var(--sab))!important;box-shadow:none!important}.dock-btn{min-height:60px;padding:7px 2px!important;color:var(--dh-muted)!important;gap:6px;border-radius:10px!important}.dock-btn>div{width:32px;height:26px}.dock-btn svg{width:23px!important;height:23px!important;transform:none!important}.dock-btn span{font-size:12px!important;font-weight:500!important;letter-spacing:0!important;line-height:1.3!important;margin-top:0!important}.dock-btn.active{background:transparent!important;color:var(--dh-accent)!important}.dock-btn.active svg,.dock-btn.active span{color:var(--dh-accent)!important;filter:none!important}.dock-indicator{display:none!important}#dock-sos{transform:none!important;min-height:60px;padding:7px 0!important;gap:6px}#dock-sos>div{background:#f18b9114;width:38px;height:26px;border-radius:8px;display:grid;place-items:center;color:var(--dh-danger)}#dock-sos svg{width:23px;height:23px}#dock-sos>span{font-size:11px!important;color:var(--dh-danger);font-weight:500;letter-spacing:0}
.dh-disclaimer{font-size:12px;line-height:1.7;color:var(--dh-muted);border-top:1px solid var(--dh-border);padding-top:18px;margin-top:28px}.dh-disclaimer p{margin:0}.dh-disclaimer .dh-disclaimer-emergency{margin-top:8px}.dh-disclaimer a{color:inherit;text-underline-offset:3px}.dh-disclaimer-emergency a{font-weight:600;text-decoration:underline}.dh-disclaimer-links{display:flex;flex-wrap:wrap;align-items:center;gap:0 20px;margin-top:6px}.dh-disclaimer-links :is(a,button){display:inline-flex;align-items:center;min-height:44px;padding:0;background:none;border:0;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.dh-disclaimer-links :is(a,button):focus-visible{outline:2px solid var(--dh-accent);outline-offset:4px;border-radius:3px}
/* Secondary sheets use the same quiet surfaces. Emergency controls retain red. */
:is(#sos-modal,#bina-tahminim-modal,#tahliye-location-modal,#deprem-cantasi-modal,#item-expiry-modal,#member-details-modal,#location-disclosure-modal) [class*=bg-gradient]{background-image:none!important;background-color:var(--dh-surface)!important}
:is(#sos-modal,#bina-tahminim-modal,#tahliye-location-modal,#deprem-cantasi-modal,#item-expiry-modal,#member-details-modal,#location-disclosure-modal) [class*=shadow]{box-shadow:none!important}
:is(#sos-modal,#bina-tahminim-modal,#tahliye-location-modal,#deprem-cantasi-modal,#item-expiry-modal,#member-details-modal,#location-disclosure-modal) :is(button,a){min-height:48px;font-size:14px!important;line-height:1.4}
:is(#bina-tahminim-modal,#tahliye-location-modal,#deprem-cantasi-modal,#item-expiry-modal,#member-details-modal,#location-disclosure-modal)>div{background:var(--dh-surface)!important;border-color:var(--dh-border)!important;border-radius:20px!important;max-height:calc(100dvh - 24px);overflow-y:auto;color:var(--dh-text)}
:is(#bina-tahminim-modal,#tahliye-location-modal,#deprem-cantasi-modal,#item-expiry-modal,#member-details-modal) [class*=dark:bg-slate]{background-color:var(--dh-surface)!important}:is(#bina-tahminim-modal,#tahliye-location-modal,#deprem-cantasi-modal,#item-expiry-modal,#member-details-modal) [class*=border-slate]{border-color:var(--dh-border)!important}:is(#bina-tahminim-modal,#tahliye-location-modal,#deprem-cantasi-modal,#item-expiry-modal,#member-details-modal) [class*=uppercase]{text-transform:none!important;letter-spacing:0!important}:is(#bina-tahminim-modal,#tahliye-location-modal,#deprem-cantasi-modal,#item-expiry-modal,#member-details-modal) .font-black{font-weight:600!important}
#deprem-cantasi-modal>div>div:first-child{flex-wrap:wrap;gap:12px;padding:16px!important}#deprem-cantasi-modal>div>div:first-child>div:first-child{flex:1;min-width:180px}#deprem-cantasi-modal h3{font-size:18px!important}#deprem-cantasi-modal button.w-8{min-width:48px}#deprem-cantasi-modal #bag-modal-total-badge{display:none}#bag-modal-progress-bar,#bag-progress-bar{background:var(--dh-accent)!important;background-image:none!important}.bag-filter-btn{min-height:44px!important;box-shadow:none!important;font-size:13px!important}.bag-filter-btn.bg-amber-500{background:var(--dh-raised)!important;color:var(--dh-text)!important}.bag-item-text{white-space:normal!important;overflow-wrap:anywhere;font-size:14px!important}.bag-item-checkbox{min-height:24px!important;min-width:24px!important}
#sos-modal{background:var(--dh-bg)!important;padding:calc(16px + var(--sat)) 16px calc(20px + var(--sab))!important}#sos-modal .animate-ping,#sos-modal .animate-pulse{animation:none!important}#sos-modal .font-mono{font-family:inherit!important}#sos-modal>div:first-child{margin-bottom:12px!important;gap:12px}#sos-modal h2{font-size:22px!important;font-weight:600!important;letter-spacing:0!important}#sos-modal .my-auto{margin-top:0!important;margin-bottom:0!important}#sos-modal .grid>button,#sos-modal .grid>a{background:var(--dh-surface)!important;border:1px solid var(--dh-border)!important;box-shadow:none!important;border-radius:14px!important;color:var(--dh-text)!important}#sos-modal .grid>a[href="tel:112"]{background:#f18b9114!important;color:var(--dh-danger)!important;border-color:#f18b9160!important}#sos-modal .grid .dh-icon{width:26px;height:26px}#sos-modal .text-3xl,#sos-modal .text-2xl{font-size:23px!important}#big-whistle-btn{background:var(--dh-raised)!important;border:1px solid var(--dh-border)!important;border-radius:14px!important;padding:22px 16px!important;box-shadow:none!important;color:var(--dh-text)!important}#whistle-main-text{font-size:24px!important;font-weight:600!important;letter-spacing:0!important}#whistle-main-sub{background:transparent!important;border:0!important;color:var(--dh-muted)!important;font-size:13px!important}#whistle-main-icon{font-size:28px!important}#sos-modal #sos-quick-addr{white-space:normal!important;overflow-wrap:anywhere}#sos-modal>div:last-child{margin-top:16px!important}
#location-disclosure-modal h3{color:var(--dh-text)!important;font-size:21px}#location-disclosure-modal [class*=text-slate]{color:var(--dh-muted)!important}#location-disclosure-modal .dark\:bg-slate-800\/60{background:var(--dh-bg)!important}#location-disclosure-modal button{width:100%;min-height:48px;border-radius:12px;font-size:15px;font-weight:500}#location-disclosure-modal button:first-of-type{background:var(--dh-accent)!important;color:#10251f!important;box-shadow:none!important}#location-disclosure-modal .dh-defer-btn{border:1px solid var(--dh-border);color:var(--dh-text)}.dh-permission-note{font-size:12px;line-height:1.6;color:var(--dh-muted)}
.dh-auth{background:var(--dh-bg)!important}.dh-auth>div{background:var(--dh-surface)!important;border:1px solid var(--dh-border);box-shadow:none!important}.dh-auth h2,.dh-auth label{color:var(--dh-text)!important}.dh-auth input{background:var(--dh-bg)!important;border-color:var(--dh-border)!important;color:var(--dh-text)!important}.dh-auth form button[type=submit]{background:var(--dh-accent)!important;color:#10251f!important;box-shadow:none}.dh-auth .bg-slate-50{background:var(--dh-raised)!important}.dh-auth p{color:var(--dh-muted)}.dh-auth>div>div:first-child{background:var(--dh-bg)!important}.dh-auth>div>div:first-child>svg{width:44px;height:44px;margin:0 auto 14px;color:var(--dh-accent)}
.leaflet-popup-content{min-width:150px!important;max-width:250px!important}.leaflet-popup-content-wrapper{box-shadow:0 6px 18px #0003!important}.leaflet-control-attribution{display:block!important;background:#141e28dd!important;color:var(--dh-muted)!important;font-size:9px!important}.leaflet-control-attribution a{color:var(--dh-muted)!important}.dh-fal-error{padding:16px;border:1px solid var(--dh-border);border-radius:10px;color:var(--dh-muted);font-size:14px;line-height:1.6}
@media(min-width:768px){main{padding-top:28px!important}#earthquake-map{height:300px!important}#earthquake-map-card{min-height:300px!important}#bottom-dock{border-left:1px solid var(--dh-border);border-right:1px solid var(--dh-border);border-radius:16px 16px 0 0}}
@media(max-width:359px){main{padding-left:12px!important;padding-right:12px!important}.dh-header{padding-left:12px!important;padding-right:12px!important}.dh-brand h1{font-size:16px}.dh-brand-center h1{font-size:16px}.dh-brand{gap:7px}.dh-header-actions{gap:0}.dock-btn span{font-size:11px!important}#dock-sos>span{font-size:10px!important}.dh-map-caption{font-size:11px}.dh-family-code-row>div:first-child{flex-basis:100%}.dh-family-code-row>div:last-child{width:100%;justify-content:flex-start!important;gap:8px}.dh-family-code-row button{flex:1}.dh-plan-shortcuts{grid-template-columns:1fr}.dh-plan-shortcuts button{min-height:56px}.dh-plan-shortcuts small{display:none}.eq-card .leading-snug{font-size:14px!important}.eq-card .font-mono{width:44px;height:48px;font-size:21px!important}.eq-card>div:first-child{gap:9px!important}.dh-place-filters{grid-template-columns:repeat(2,1fr)!important}#earthquake-source-badge{font-size:11px!important}#sos-modal>div:first-child{align-items:start}#sos-modal h2{font-size:20px!important}#sos-modal .grid{gap:8px!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Final hierarchy and density refinements after the small-phone review. */
.tab-content .eq-card{background:transparent!important;border-radius:0!important}.tab-content .eq-card .leading-snug{color:var(--dh-text)!important}.tab-content .eq-card .leading-snug>span:last-child{color:var(--dh-text)!important}.tab-content .eq-card[class*=ring-blue]{background:var(--dh-surface)!important}
.dh-plan-shortcuts{display:block}.dh-plan-shortcuts button{width:100%;min-height:56px!important}.dh-plan-shortcuts button small{display:none}.dh-plan-shortcuts button>span{flex:1}.dh-plan-shortcuts button::after{content:'›';font-size:23px;color:var(--dh-muted)}
.dh-family-summary #family-my-name{color:var(--dh-text)!important}.dh-family-summary #family-my-email{display:none}.dh-family-code-row{flex-wrap:nowrap!important;gap:8px!important}.dh-family-code-row>div:first-child{min-width:0;flex:1}.dh-family-code-row>div:last-child{width:auto;flex-wrap:nowrap!important;gap:6px;flex-shrink:0}.dh-family-code-row button{width:44px;min-width:44px;min-height:48px;padding:8px!important}.dh-family-summary>div:first-child{padding-bottom:12px!important}.dh-family-status{margin-top:12px;padding-top:12px}.dh-family-summary>div:first-child h4{font-size:16px!important}.dh-family-summary button[onclick*=openProfileModal]{padding-left:10px!important;padding-right:10px!important}.dh-family-status svg{width:16px;height:16px}.dh-meeting{margin-top:18px}.dh-meeting h4{font-size:16px!important;font-weight:600!important;margin-bottom:5px}.dh-meeting #family-meeting-address{font-size:15px;font-weight:500;color:var(--dh-accent)}.tab-content .dh-meeting-note{font-size:13px!important;line-height:1.6!important}
.leaflet-control-attribution{opacity:1!important;visibility:visible!important;pointer-events:auto!important}.dh-map-caption{margin:4px 0!important}.tab-content #eq-source-filters-bar{margin-top:4px!important}
@media(max-width:359px){.dh-family-code-row>div:first-child{flex-basis:auto}.dh-family-code-row>div:last-child{width:auto}.dh-family-code-row button{flex:none}.dh-family-code-row #family-code-display{font-size:17px}.dh-family-summary>div:first-child>div:first-child{gap:9px!important}}

/* Keep useful visual landmarks while avoiding crowded headings. */
#earthquake-map-card{min-height:290px!important}#earthquake-map{height:290px!important}
.tab-content .eq-card{background:var(--dh-surface)!important;border:1px solid var(--dh-border)!important;border-radius:14px!important;padding:14px 12px!important;margin-top:10px!important}.tab-content .eq-card:hover{border-color:#536475!important}.tab-content .eq-card .font-mono{background:#75d6bf14!important}.tab-content .eq-card[class*=ring-blue]{border-color:var(--dh-accent)!important;background:#182b30!important}
.dh-map-caption #toggle-faults-btn{font-size:12px}.dh-map-caption #toggle-faults-btn[aria-pressed=true]::before{content:'';width:16px;height:2px;background:#edaa79;display:block}
@media(max-width:359px){#earthquake-map{height:270px!important}#earthquake-map-card{min-height:270px!important}.tab-content .eq-card{padding:12px 10px!important}}

/* Compact pagination remains usable without hidden off-screen controls. */
.dh-page-position{flex:1;min-width:48px;text-align:center;color:var(--dh-muted);font-size:14px}
#earthquake-pagination-container>div>div:first-child{gap:8px!important}
#earthquake-pagination-container button{flex-shrink:0;justify-content:center;min-width:88px}
@media(min-width:1000px){
  main{max-width:1080px!important;padding-left:28px!important;padding-right:28px!important}
  .dh-header-inner{max-width:1024px}
  #content-earthquakes.active{display:grid!important;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);grid-template-areas:"heading heading" "status status" "scope sources" "map records" "caption pages";gap:12px 28px;align-items:start}
  #content-earthquakes>div{margin-top:0!important}
  #content-earthquakes>.dh-section-heading{grid-area:heading}
  #content-earthquakes>#dh-data-status{grid-area:status}
  #content-earthquakes>.dh-scope{grid-area:scope}
  #content-earthquakes>.dh-source-controls{grid-area:sources}
  #content-earthquakes>#earthquake-map-card{grid-area:map;height:500px!important;min-height:500px!important}
  #content-earthquakes #earthquake-map{height:500px!important}
  #content-earthquakes>.dh-map-caption{grid-area:caption}
  #earthquakes-full-list{grid-area:records}
  #earthquakes-full-list>.eq-card:first-child{margin-top:0!important}
  #earthquake-pagination-container{grid-area:pages}
  #content-plan,#content-family,#content-map{max-width:760px;margin-left:auto;margin-right:auto}
  #bottom-dock{max-width:760px}
}

@media(max-width:480px){
  .dh-family-map-header{flex-wrap:wrap;gap:12px}
  .dh-family-map-header>div:first-child{flex-basis:100%}
  .dh-family-map-header .truncate{white-space:normal!important;overflow:visible!important}
  .dh-family-map-header>div:last-child{width:100%}
  .dh-family-map-header>div:last-child>button{flex:1;justify-content:center;min-height:48px}
}

/* Keep map overlays inside their card's stacking context, below the app navigation. */
#earthquake-map-card,#tahliye-map-card,#family-map-card{position:relative;z-index:0;isolation:isolate}
#family-map-card>.relative{position:relative;overflow:hidden;isolation:isolate}
.dh-family-map-controls{position:absolute;top:10px;right:10px;bottom:auto;left:auto;z-index:400}
