:root {
  color-scheme: light;
  --orange: #f36f21;
  --orange-dark: #c44d09;
  --orange-soft: #fff1e8;
  --red: #d92d20;
  --red-soft: #fff0ee;
  --green: #16803c;
  --green-soft: #e9f8ef;
  --blue: #1677c8;
  --blue-soft: #eaf4ff;
  --navy: #12304a;
  --navy-2: #1c4563;
  --ink: #17212b;
  --muted: #667784;
  --line: #dbe3e8;
  --surface: #fff;
  --surface-2: #f5f8fa;
  --shadow: 0 16px 40px rgb(18 48 74 / .18);
  --shadow-soft: 0 8px 24px rgb(18 48 74 / .10);
  --header-height: 72px;
  --nav-height: 72px;
  --radius: 20px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body { overflow: hidden; background: var(--surface-2); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid #2f8be6; outline-offset: 3px; }
.is-hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 9999; padding: .8rem 1rem; background: var(--navy); color: #fff; border-radius: 10px; }
.skip-link:focus { top: 1rem; }

.app { width: 100%; height: 100dvh; display: grid; grid-template-rows: calc(var(--header-height) + var(--safe-top)) 1fr; overflow: hidden; }
.app-header { z-index: 1200; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: calc(10px + var(--safe-top)) 14px 10px; background: var(--navy); color: #fff; box-shadow: 0 3px 14px rgb(0 0 0 / .18); }
.brand { min-width: 0; display: flex; align-items: center; gap: 10px; }
.brand img { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 13px; object-fit: contain; background: #fff; padding: 3px; }
.brand-copy { min-width: 0; display: grid; gap: 2px; }
.brand-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; letter-spacing: .02em; }
.brand-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #c8d8e4; font-size: .68rem; }
.status-cluster { display: flex; align-items: center; gap: 8px; }
.network-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 9px; border-radius: 999px; background: rgb(255 255 255 / .13); color: #fff; font-size: .72rem; font-weight: 750; white-space: nowrap; }
.network-chip i { font-size: .48rem; }
.network-chip.is-online i { color: #5ddd8b; }
.network-chip.is-offline i { color: #ff8a7f; }
.network-chip.is-checking i { color: #fdbb66; }
.sync-time { display: none; color: #c8d8e4; font-size: .69rem; white-space: nowrap; }
.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 14px; background: rgb(255 255 255 / .12); color: inherit; cursor: pointer; }
.icon-button:hover { background: rgb(255 255 255 / .20); }
.icon-button.small { width: 36px; height: 36px; border-radius: 10px; }

.app-nav { position: fixed; z-index: 1300; left: 0; right: 0; bottom: 0; height: calc(var(--nav-height) + var(--safe-bottom)); display: grid; grid-template-columns: repeat(4, 1fr); align-items: start; padding: 5px 6px var(--safe-bottom); background: rgb(255 255 255 / .97); border-top: 1px solid var(--line); box-shadow: 0 -10px 28px rgb(18 48 74 / .10); backdrop-filter: blur(12px); }
.nav-item { position: relative; display: grid; place-items: center; align-content: center; gap: 4px; min-width: 0; min-height: 60px; padding: 5px 2px; border: 0; border-radius: 14px; background: transparent; color: var(--muted); cursor: pointer; }
.nav-item i { font-size: 1.18rem; }
.nav-item > span:last-child { overflow: hidden; text-overflow: ellipsis; max-width: 100%; font-size: .68rem; font-weight: 700; white-space: nowrap; }
.nav-item.is-active { color: var(--orange-dark); background: var(--orange-soft); }
.nav-icon-wrap { position: relative; display: inline-grid; place-items: center; }
.nav-badge { position: absolute; top: -9px; right: -14px; min-width: 19px; height: 19px; padding: 0 5px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 99px; background: var(--red); color: #fff; font-size: .62rem; font-weight: 800; }

.main-content { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app-view { display: none; width: 100%; height: 100%; }
.app-view.is-active { display: block; }
.map-view { position: relative; height: calc(100dvh - var(--header-height) - var(--safe-top) - var(--nav-height) - var(--safe-bottom)); overflow: hidden; }
#map { width: 100%; height: calc(100dvh - var(--header-height) - var(--safe-top) - var(--nav-height) - var(--safe-bottom)); background: #dfe8e1; }
.leaflet-container { font-family: inherit; }
.leaflet-control-zoom a { display: grid !important; place-items: center; width: 44px !important; height: 44px !important; line-height: 44px !important; color: var(--navy) !important; }
.leaflet-control-attribution { max-width: calc(100vw - 112px); padding: 2px 5px !important; background: rgb(255 255 255 / .88) !important; font-size: 9px !important; }
.leaflet-top.leaflet-left { top: 76px; }
.offline-grid-tile { background: #dfe7df; }

.demo-ribbon { position: absolute; z-index: 520; top: 10px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 120px); padding: 7px 10px; border: 1px solid #fbbf77; border-radius: 999px; background: rgb(255 248 232 / .94); color: #8a3c00; box-shadow: var(--shadow-soft); font-size: .63rem; font-weight: 850; letter-spacing: .025em; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.warning-banner { position: absolute; z-index: 610; top: 52px; left: 12px; right: 12px; min-height: 58px; display: grid; grid-template-columns: 36px 1fr 20px; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid #f9aaa3; border-radius: 16px; background: rgb(255 246 245 / .97); color: #86120a; box-shadow: var(--shadow); text-align: left; cursor: pointer; }
.warning-banner > i:first-child { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: var(--red); color: #fff; }
.warning-banner span { min-width: 0; display: grid; gap: 2px; }
.warning-banner strong, .warning-banner small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.warning-banner strong { font-size: .8rem; }
.warning-banner small { color: #96352e; font-size: .68rem; }

.map-actions { position: absolute; z-index: 600; left: 12px; bottom: 16px; display: flex; gap: 7px; max-width: calc(100% - 78px); overflow-x: auto; scrollbar-width: none; }
.map-actions::-webkit-scrollbar { display: none; }
.map-action { flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 14px; background: rgb(255 255 255 / .95); color: var(--navy); box-shadow: var(--shadow-soft); font-size: .71rem; font-weight: 780; cursor: pointer; }
.map-action.primary { border-color: var(--blue); background: var(--blue); color: #fff; }
.map-action i { font-size: .9rem; }
.map-tools-fab { position: absolute; z-index: 650; right: 14px; bottom: 15px; display: grid; place-items: center; width: 50px; height: 50px; border: 0; border-radius: 17px; background: var(--navy); color: #fff; box-shadow: var(--shadow); cursor: pointer; }
.map-tools { position: absolute; z-index: 700; right: 12px; bottom: 76px; width: min(330px, calc(100% - 24px)); max-height: calc(100% - 100px); overflow: auto; padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: rgb(255 255 255 / .98); box-shadow: var(--shadow); }
.tool-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.base-layer-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.layer-option { min-height: 66px; display: grid; place-items: center; align-content: center; gap: 5px; padding: 6px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--muted); cursor: pointer; }
.layer-option span { font-size: .68rem; font-weight: 720; }
.layer-option.is-active { border-color: var(--orange); background: var(--orange-soft); color: var(--orange-dark); }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 8px; }
.tool-grid button { min-height: 66px; display: grid; place-items: center; align-content: center; gap: 5px; padding: 7px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--navy); cursor: pointer; }
.tool-grid button[aria-pressed="false"] { background: var(--surface-2); color: #8a989f; text-decoration: line-through; }
.tool-grid span { font-size: .65rem; font-weight: 700; text-align: center; }
.overzoom-note { margin: 10px 2px 0; color: var(--muted); font-size: .67rem; line-height: 1.4; }
.map-legend { position: absolute; z-index: 640; left: 12px; bottom: 72px; display: grid; gap: 7px; min-width: 165px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: rgb(255 255 255 / .96); box-shadow: var(--shadow-soft); font-size: .72rem; }
.map-legend span { display: flex; align-items: center; gap: 8px; }
.legend-dot { width: 14px; height: 14px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #999; }
.legend-dot.assembly { background: var(--green); }
.legend-dot.shelter { background: var(--orange); }
.legend-dot.important { background: var(--navy); }
.legend-dot.user { background: var(--blue); }
.legend-line { width: 20px; border-top: 4px dashed var(--red); }
.legend-area { width: 20px; height: 14px; border: 2px solid var(--red); border-radius: 3px; background: rgb(217 45 32 / .2); }

.disaster-marker { position: relative; display: grid; place-items: center; border-style: solid; box-shadow: 0 6px 14px rgb(0 0 0 / .28); font-weight: 800; }
.disaster-marker.pin { border-radius: 50% 50% 50% 12%; transform: rotate(-45deg); }
.disaster-marker.pin > span, .disaster-marker.pin > i, .disaster-marker.pin > img { transform: rotate(45deg); }
.disaster-marker.circle { border-radius: 50%; }
.disaster-marker img { width: 65%; height: 65%; object-fit: contain; }
.disaster-marker.no-background { border: 0; border-radius: 0; background: transparent; box-shadow: none; line-height: 1; }
.disaster-marker.no-background img { width: 100%; height: 100%; object-fit: contain; }
.marker-pulse-wrap { position: relative; display: grid; place-items: center; overflow: visible; isolation: isolate; }
.marker-pulse-wrap > .disaster-marker { position: relative; z-index: 2; }
.marker-pulse-wrap::before, .marker-pulse-wrap::after { content: ''; position: absolute; z-index: 1; left: 50%; top: 50%; width: 88%; height: 88%; border: 2px solid var(--sigap-pulse-color, #f04438); border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%) scale(.55); opacity: .8; animation: sigapMarkerRadarPulse 2.15s ease-out infinite; box-shadow: 0 0 10px var(--sigap-pulse-color, #f04438); }
.marker-pulse-wrap::after { animation-delay: 1.075s; }
@keyframes sigapMarkerRadarPulse { 0% { transform: translate(-50%, -50%) scale(.55); opacity: .85; } 75%, 100% { transform: translate(-50%, -50%) scale(1.95); opacity: 0; } }
.sigap-geometry-pulse { animation: sigapGeometryPulse 1.85s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.sigap-geometry-pulse-area { animation-duration: 2.25s; }
@keyframes sigapGeometryPulse { 0%, 100% { opacity: .72; filter: drop-shadow(0 0 1px var(--sigap-pulse-color, #f04438)); } 50% { opacity: 1; filter: drop-shadow(0 0 8px var(--sigap-pulse-color, #f04438)); } }
@media (prefers-reduced-motion: reduce) { .marker-pulse-wrap::before, .marker-pulse-wrap::after, .sigap-geometry-pulse { animation: none !important; } .marker-pulse-wrap::before { transform: translate(-50%, -50%) scale(1.15); opacity: .45; } .marker-pulse-wrap::after { display: none; } }
.user-marker { display: grid; place-items: center; width: 28px; height: 28px; border: 4px solid #fff; border-radius: 50%; background: var(--blue); color: #fff; box-shadow: 0 0 0 4px rgb(22 119 200 / .24), 0 5px 13px rgb(0 0 0 / .25); }

.detail-sheet { position: fixed; z-index: 1400; left: 0; right: 0; bottom: calc(var(--nav-height) + var(--safe-bottom)); max-height: min(72dvh, 700px); overflow: auto; padding: 8px 18px calc(20px + var(--safe-bottom)); border-radius: 24px 24px 0 0; background: #fff; box-shadow: 0 -20px 60px rgb(18 48 74 / .24); }
.sheet-handle { width: 44px; height: 5px; margin: 2px auto 12px; border-radius: 99px; background: #ccd6dc; }
.detail-header { position: sticky; z-index: 2; top: -8px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 8px 0 10px; background: #fff; }
.eyebrow { display: block; color: var(--orange-dark); font-size: .69rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.detail-header h2 { margin: 3px 0 0; font-size: 1.28rem; line-height: 1.2; }
.detail-body { display: grid; gap: 14px; }
.detail-media { overflow: hidden; border-radius: 18px; background: #e8eef1; aspect-ratio: 16/9; }
.detail-media img, .detail-media iframe { width: 100%; height: 100%; border: 0; object-fit: cover; }
.location-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.meta-card { min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.meta-card span { display: block; margin-bottom: 3px; color: var(--muted); font-size: .68rem; }
.meta-card strong { font-size: .84rem; }
.detail-address { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: #344652; font-size: .84rem; line-height: 1.55; }
.detail-address i { margin-top: 3px; color: var(--orange); }
.facility-block h3 { margin: 0 0 9px; font-size: .9rem; }
.facility-list { display: flex; flex-wrap: wrap; gap: 7px; }
.facility-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 999px; background: var(--green-soft); color: #12612f; font-size: .7rem; font-weight: 700; }
.detail-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.offline-feature-note { padding: 10px 12px; border-radius: 12px; background: #fff6e8; color: #7c4200; font-size: .76rem; }

.content-view { height: calc(100dvh - var(--header-height) - var(--safe-top)); overflow-y: auto; padding: 18px 14px calc(var(--nav-height) + var(--safe-bottom) + 22px); background: var(--surface-2); }
.content-header { position: relative; overflow: hidden; display: flex; justify-content: space-between; gap: 20px; max-width: 1180px; margin: 0 auto 14px; padding: 20px; border-radius: 24px; color: #fff; box-shadow: var(--shadow-soft); }
.content-header > i { align-self: center; opacity: .24; font-size: 4.8rem; transform: rotate(-8deg); }
.content-header .eyebrow { color: #ffe1cb; }
.content-header h1 { margin: 4px 0 5px; font-size: clamp(1.55rem, 6vw, 2.5rem); }
.content-header p { max-width: 640px; margin: 0; color: rgb(255 255 255 / .82); font-size: .84rem; line-height: 1.55; }
.warning-theme { background: linear-gradient(135deg, #7b1b14, var(--red)); }
.offline-theme { background: linear-gradient(135deg, #0e527e, var(--blue)); }
.guide-theme { background: linear-gradient(135deg, var(--navy), #28638d); }
.official-disclaimer, .storage-card, .download-card, .action-card, .guide-card, .faq { max-width: 1180px; margin-left: auto; margin-right: auto; border: 1px solid var(--line); background: #fff; box-shadow: 0 5px 18px rgb(18 48 74 / .06); }
.official-disclaimer { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; padding: 14px; border-radius: 16px; color: #4b3b23; }
.official-disclaimer i { margin-top: 3px; color: var(--orange); }
.official-disclaimer p { margin: 0; font-size: .78rem; line-height: 1.55; }
.filter-row { max-width: 1180px; display: flex; gap: 8px; overflow-x: auto; margin: 0 auto 14px; padding-bottom: 3px; scrollbar-width: none; }
.filter-chip { flex: 0 0 auto; min-height: 40px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: .74rem; font-weight: 750; cursor: pointer; }
.filter-chip.is-active { border-color: var(--navy); background: var(--navy); color: #fff; }
.warning-list { max-width: 1180px; display: grid; gap: 10px; margin: 0 auto; }
.warning-card { display: grid; grid-template-columns: 46px 1fr 22px; align-items: start; gap: 12px; padding: 14px; border: 1px solid var(--line); border-left: 5px solid var(--level-color, var(--blue)); border-radius: 17px; background: #fff; box-shadow: 0 5px 18px rgb(18 48 74 / .06); cursor: pointer; text-align: left; }
.warning-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.warning-card-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: color-mix(in srgb, var(--level-color) 12%, white); color: var(--level-color); }
.warning-card-body { min-width: 0; }
.warning-card-top { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.level-badge { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 8px; border-radius: 999px; background: var(--level-color, var(--blue)); color: #fff; font-size: .64rem; font-weight: 800; text-transform: uppercase; }
.warning-card time { color: var(--muted); font-size: .66rem; }
.warning-card h2 { margin: 7px 0 4px; font-size: .97rem; line-height: 1.3; }
.warning-card p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.empty-state { padding: 34px 20px; border: 1px dashed #bdc9d0; border-radius: 20px; background: #fff; color: var(--muted); text-align: center; }
.empty-state i { display: block; margin-bottom: 10px; color: #91a3af; font-size: 2.2rem; }

.storage-card { margin-bottom: 14px; padding: 15px; border-radius: 17px; }
.storage-card > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .76rem; }
.storage-card strong { color: var(--navy); }
.storage-meter { overflow: hidden; height: 8px; margin: 11px 0 7px; border-radius: 99px; background: #e4ebef; }
.storage-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #43a0ec); transition: width .3s ease; }
.storage-card small { color: var(--muted); font-size: .68rem; }
.offline-layout { max-width: 1180px; display: grid; gap: 12px; margin: 0 auto; }
.package-list { display: grid; gap: 9px; }
.package-card { min-height: 80px; display: grid; grid-template-columns: 42px 1fr 22px; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 17px; background: #fff; cursor: pointer; text-align: left; }
.package-card > i:first-child { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--blue-soft); color: var(--blue); }
.package-card strong, .package-card span { display: block; }
.package-card strong { font-size: .83rem; }
.package-card span { margin-top: 3px; color: var(--muted); font-size: .68rem; }
.package-card.is-active { border-color: var(--blue); box-shadow: 0 0 0 2px rgb(22 119 200 / .1); }
.package-card.is-active > i:last-child { color: var(--blue); }
.download-card { padding: 16px; border-radius: 18px; }
.download-card h2 { margin: 0 0 11px; font-size: 1rem; }
.check-list { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; color: #42545f; font-size: .75rem; }
.check-list li { display: flex; gap: 8px; }
.check-list i { color: var(--green); }
.check-list i.muted { color: #8798a4; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; margin: 12px 0; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; }
.switch-row span { display: grid; gap: 2px; }
.switch-row strong { font-size: .8rem; }
.switch-row small { color: var(--muted); font-size: .68rem; }
.switch-row input { position: absolute; opacity: 0; }
.switch-row > i { position: relative; width: 48px; height: 28px; border-radius: 99px; background: #a9b6bd; transition: background .2s; }
.switch-row > i::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgb(0 0 0 / .2); transition: transform .2s; }
.switch-row input:checked + i { background: var(--blue); }
.switch-row input:checked + i::after { transform: translateX(20px); }
.download-progress { margin: 13px 0; padding: 12px; border-radius: 14px; background: var(--blue-soft); }
.progress-label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: .76rem; }
progress { width: 100%; height: 11px; overflow: hidden; border: 0; border-radius: 99px; background: #c9dbea; }
progress::-webkit-progress-bar { background: #c9dbea; }
progress::-webkit-progress-value { background: var(--blue); }
progress::-moz-progress-bar { background: var(--blue); }
.download-progress small { display: block; margin-top: 6px; color: var(--muted); font-size: .68rem; }

.guide-grid { max-width: 1180px; display: grid; gap: 10px; margin: 0 auto 12px; }
.managed-guide-cards { display: contents; }
.managed-guide-faqs { max-width: 1180px; margin: 0 auto; }
.managed-guide-faqs:empty { display: none; }
.action-card { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: start; padding: 15px; border-radius: 18px; }
.card-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--orange-soft); color: var(--orange-dark); font-size: 1.25rem; }
.action-card h2, .guide-card h2 { margin: 0 0 5px; font-size: .94rem; }
.action-card p, .guide-card p { margin: 0; color: var(--muted); font-size: .74rem; line-height: 1.55; }
.action-card .button { grid-column: 1 / -1; }
.status-text { display: inline-block; margin-top: 6px; color: var(--orange-dark); font-size: .68rem; font-weight: 800; }
.guide-card { padding: 15px; border-radius: 18px; }
.guide-card > i { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 10px; border-radius: 13px; background: var(--blue-soft); color: var(--blue); }
.guide-rich-content { margin-top: 10px; color: var(--text); font-size: .76rem; line-height: 1.6; }
.guide-rich-content > :first-child { margin-top: 0; }
.guide-rich-content > :last-child { margin-bottom: 0; }
.guide-rich-content ul, .guide-rich-content ol { padding-left: 20px; }
.guide-rich-content a { color: var(--blue); font-weight: 700; }
.text-link { display: inline-flex; margin-top: 9px; color: var(--orange-dark); font-size: .76rem; font-weight: 800; }
.faq { margin-bottom: 9px; padding: 0 15px; border-radius: 15px; }
.faq summary { min-height: 52px; display: flex; align-items: center; cursor: pointer; font-size: .8rem; font-weight: 800; }
.faq p, .faq ol { margin: 0 0 14px; color: var(--muted); font-size: .75rem; line-height: 1.65; }

.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border: 1px solid transparent; border-radius: 13px; font-size: .76rem; font-weight: 800; text-decoration: none; cursor: pointer; }
.button.primary { background: var(--orange); color: #fff; }
.button.primary:hover { background: var(--orange-dark); }
.button.secondary { border-color: var(--line); background: #fff; color: var(--navy); }
.button.danger-ghost { border-color: #f4aaa4; background: #fff; color: var(--red); }
.button.text { background: transparent; color: var(--muted); }
.button:disabled { cursor: not-allowed; opacity: .55; }
.button-row { display: flex; gap: 8px; }
.button-row.wrap { flex-wrap: wrap; }

dialog { max-width: calc(100% - 24px); border: 0; color: var(--ink); }
dialog::backdrop { background: rgb(9 26 39 / .66); backdrop-filter: blur(3px); }
.onboarding-dialog { width: min(470px, calc(100% - 24px)); padding: 0; border-radius: 26px; box-shadow: var(--shadow); }
.onboarding-dialog form { position: relative; padding: 24px 20px 18px; }
.dialog-close { position: absolute; top: 12px; right: 12px; background: var(--surface-2); color: var(--ink); }
.onboarding-art { height: 116px; display: flex; align-items: center; justify-content: center; gap: 9px; margin: -24px -20px 18px; border-radius: 26px 26px 40% 40%; background: linear-gradient(135deg, var(--navy), #276b97); color: #fff; }
.onboarding-art span { display: grid; place-items: center; width: 74px; height: 74px; border: 5px solid rgb(255 255 255 / .28); border-radius: 24px; background: var(--orange); font-size: 2rem; transform: rotate(-6deg); }
.onboarding-art > i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: rgb(255 255 255 / .16); }
.onboarding-dialog h2 { margin: 5px 0 8px; font-size: 1.5rem; }
.onboarding-dialog p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.65; }
.dialog-actions { display: grid; gap: 8px; margin-top: 18px; }
.ios-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 15px; }
.ios-steps span { display: grid; justify-items: center; gap: 6px; padding: 10px 5px; border-radius: 12px; background: var(--surface-2); color: #40515b; font-size: .64rem; text-align: center; }
.ios-steps i { color: var(--blue); font-size: 1rem; }
.warning-dialog { width: min(640px, calc(100% - 24px)); max-height: calc(100dvh - 30px); overflow: auto; padding: 20px; border-radius: 22px; box-shadow: var(--shadow); }
.dialog-detail-header { display: flex; justify-content: space-between; gap: 10px; }
.warning-dialog .icon-button { background: var(--surface-2); }
.warning-dialog h2 { margin: 14px 0 5px; font-size: 1.45rem; }
.warning-meta { margin: 0 0 12px; color: var(--muted); font-size: .72rem; }
.warning-summary { font-weight: 720; line-height: 1.55; }
.warning-content { color: #40515b; font-size: .82rem; line-height: 1.7; }
.instruction-box { margin: 16px 0; padding: 13px; border-radius: 15px; background: var(--orange-soft); color: #683006; }
.instruction-box p { margin: 6px 0 0; font-size: .8rem; line-height: 1.6; }
.detail-list { display: grid; grid-template-columns: max-content 1fr; gap: 7px 14px; margin: 0; font-size: .75rem; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.warning-map-action { margin-top: 16px; }
.warning-map-action .button { width: 100%; justify-content: center; }

.toast-stack { position: fixed; z-index: 3000; left: 12px; right: 12px; bottom: calc(var(--nav-height) + var(--safe-bottom) + 10px); display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.toast { width: min(460px, 100%); display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 8px; padding: 11px 13px; border-radius: 14px; background: #102b3e; color: #fff; box-shadow: var(--shadow); font-size: .76rem; animation: toast-in .2s ease both; }
.toast.success i { color: #64df90; }
.toast.error i { color: #ff8a7f; }
.toast.warning i { color: #ffc46f; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

.standalone-offline { display: grid; min-height: 100dvh; place-items: center; padding: 24px; overflow: auto; background: linear-gradient(160deg, #f1f6f8, #dfeaf0); }
.standalone-offline main { width: min(460px, 100%); display: grid; justify-items: center; gap: 14px; padding: 30px 22px; border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: var(--shadow); text-align: center; }
.standalone-offline img { border-radius: 23px; }
.standalone-offline .network-chip { background: var(--red-soft); color: var(--red); }
.standalone-offline h1 { margin: 4px 0 0; }
.standalone-offline p { margin: 0; color: var(--muted); line-height: 1.65; }

@media (min-width: 700px) {
  .brand-copy strong { font-size: 1rem; }
  .brand-copy span { font-size: .73rem; }
  .sync-time { display: inline; }
  .warning-banner { left: 50%; right: auto; width: min(540px, calc(100% - 150px)); transform: translateX(-50%); }
  .location-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .warning-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offline-layout { grid-template-columns: minmax(280px, .8fr) minmax(360px, 1.2fr); align-items: start; }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .action-card { grid-column: span 1; }
}

@media (min-width: 980px) {
  :root { --nav-width: 104px; }
  .app { grid-template-columns: var(--nav-width) minmax(0, 1fr); grid-template-rows: calc(var(--header-height) + var(--safe-top)) minmax(0, 1fr); }
  .app-header { grid-column: 1 / -1; }
  .app-nav { position: static; grid-column: 1; grid-row: 2; width: var(--nav-width); height: auto; display: flex; flex-direction: column; gap: 8px; padding: 14px 9px; border-top: 0; border-right: 1px solid var(--line); box-shadow: 5px 0 18px rgb(18 48 74 / .06); }
  .nav-item { width: 100%; min-height: 72px; padding: 9px 4px; }
  .nav-item i { font-size: 1.28rem; }
  .nav-item > span:last-child { white-space: normal; font-size: .7rem; text-align: center; }
  .main-content { grid-column: 2; grid-row: 2; }
  .map-view { height: calc(100dvh - var(--header-height) - var(--safe-top)); }
  #map { height: calc(100dvh - var(--header-height) - var(--safe-top)); }
  .content-view { height: calc(100dvh - var(--header-height) - var(--safe-top)); padding: 24px 28px 36px; }
  .demo-ribbon { top: 14px; }
  .map-actions { bottom: 18px; left: 18px; }
  .map-tools-fab { right: 18px; bottom: 18px; }
  .map-tools { right: 18px; bottom: 82px; }
  .map-legend { left: 18px; bottom: 76px; }
  .detail-sheet { position: absolute; top: 16px; right: 16px; bottom: 16px; left: auto; width: 390px; max-height: none; padding: 10px 18px 20px; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
  .sheet-handle { display: none; }
  .toast-stack { left: auto; right: 22px; bottom: 22px; width: 420px; }
  .warning-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .action-card { grid-column: span 3; grid-template-columns: 52px 1fr auto; align-items: center; }
  .action-card .button { grid-column: auto; min-width: 170px; }
}

@media (min-width: 1400px) {
  .warning-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .action-card { grid-column: span 3; }
}

@media (max-width: 430px) {
  .brand img { width: 40px; height: 40px; }
  .brand-copy strong { font-size: .78rem; }
  .brand-copy span { max-width: 190px; font-size: .6rem; }
  .status-cluster .icon-button { display: none; }
  .network-chip span { display: none; }
  .network-chip { width: 30px; justify-content: center; padding: 4px; }
  .network-chip i { font-size: .55rem; }
  .demo-ribbon { max-width: calc(100% - 98px); left: 48%; font-size: .56rem; }
  .map-action span { display: none; }
  .map-action { width: 46px; justify-content: center; padding: 8px; }
  .detail-actions { grid-template-columns: 1fr 1fr; }
  .button-row .button { flex: 1 1 46%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
