.map-shell { min-height: 0; }
.map-toolbar { height: auto; min-height: 64px; gap: 12px; padding-block: 10px; flex-wrap: wrap; }
.map-toolbar-left, .map-toolbar-right { flex-wrap: wrap; }
.map-toolbar .map-status { font-size: .875rem; }
.map-toolbar .map-scale { font-size: .875rem; font-weight: 600; letter-spacing: .01em; }
.map-toolbar .map-scale-note { font-size: .8125rem; opacity: .72; flex-basis: 100%; }
.map-button { height: 38px; font-size: .875rem; }
#map-zoom-value { min-width: 3.4em; text-align: center; font-size: .875rem; }
.map-area { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 400px); grid-template-rows: minmax(0, 1fr) auto; height: 610px; }
.decision-viewport { min-width: 0; min-height: 0; position: relative; overflow: hidden; touch-action: none; cursor: grab; outline-offset: -4px; }
.decision-viewport.dragging { cursor: grabbing; user-select: none; }
.map-canvas { inset: 0; width: 100%; height: 100%; transition: none; }
.map-canvas { display: block; transform: none; }
.map-renderer-status { position: absolute; left: 16px; top: 14px; right: 16px; color: #a4c2ce; font-size: .8125rem; pointer-events: none; }
.map-explorer { display: flex; gap: 14px; align-items: end; padding: 12px 20px; color: #c5dce6; border-bottom: 1px solid #ffffff14; position: relative; flex-wrap: wrap; }
.map-explorer label { display: grid; gap: 6px; font-size: .875rem; }
.map-explorer label:first-child { flex: 1 1 230px; }
.map-explorer input, .map-explorer select { height: 38px; width: 100%; color: #e7f4f7; background: #132d3e; border: 1px solid #496675; border-radius: 6px; font: inherit; padding: 0 10px; }
.map-find-results { position: absolute; top: 100%; left: 20px; z-index: 8; max-height: 320px; overflow: auto; width: min(600px,calc(100% - 40px)); padding: 12px; background: #102738; border: 1px solid #527586; border-radius: 8px; box-shadow: 0 12px 28px #0008; }
.map-find-results p { margin: 0 0 8px; font-size: .8125rem; }
.map-find-results button { display: block; width: 100%; padding: 10px; text-align: left; color: #e2f1f7; background: transparent; border: 0; font-size: .875rem; }
.map-find-results button:hover, .map-find-results button:focus-visible { background: #244453; }
.map-canvas svg { width: 100%; height: 100%; display: block; }
.map-preview { position: relative; inset: auto; width: auto; max-height: calc(100% - 34px); align-self: start; margin: 18px 18px 16px 0; overflow: auto; }
.map-preview p { font-size: .875rem; }
/* 미리보기는 호버로 읽는 화면이므로 질문·선택지·입력 상태까지 한눈에 들어와야 한다. */
.map-preview .preview-lede { font-size: .9rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.map-preview .preview-block { margin-top: 13px; padding-top: 11px; border-top: 1px solid rgba(16, 36, 51, .1); }
.map-preview .preview-block h4 { margin: 0 0 5px; font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #6d7d8a; }
.map-preview .preview-block p { margin: 0; line-height: 1.55; }
.map-preview .preview-options { margin: 0; padding-left: 17px; display: grid; gap: 3px; font-size: .84rem; line-height: 1.45; }
.map-preview .button { margin-top: 14px; width: 100%; }
.map-area > .map-legend { position: static; grid-column: 1; align-self: center; padding: 16px 20px; flex-wrap: wrap; font-size: .875rem; }
.map-side-action { position: static; grid-column: 2; padding: 0 18px 16px 0; align-self: end; }
.map-shell:fullscreen, .map-shell.expanded-map { display: flex; flex-direction: column; width: 100vw; height: 100dvh; max-width: none; border-radius: 0; background: #081725; }
.map-shell:fullscreen .map-area, .map-shell.expanded-map .map-area { flex: 1; min-height: 0; height: auto; }
.map-shell.expanded-map { position: fixed; z-index: 60; inset: 0; }
.map-node:focus { outline: none; }
.map-node:focus .halo { opacity: .7; stroke: white; stroke-width: 2; }
.world-page { font-size: 1rem; }
.world-page .page-heading p { max-width: 780px; font-size: 1rem; }
.world-date { border: 1px solid var(--line); border-radius: 7px; padding: 8px 12px; color: var(--muted); font-size: .875rem; white-space: nowrap; }
.world-summary { display: flex; gap: 24px; flex-wrap: wrap; padding: 4px 0 18px; color: var(--muted); font-size: .875rem; }
.world-summary strong { color: var(--ink); font-size: 1.5rem; margin-right: 3px; }
.world-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card, white); margin-bottom: 18px; }
.world-toolbar label { display: grid; gap: 7px; flex: 1 1 180px; font-size: .875rem; font-weight: 600; }
.world-toolbar label:first-child { flex-grow: 2; }
.world-toolbar input, .world-toolbar select { width: 100%; height: 44px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 8px; padding: 0 12px; font: inherit; font-size: 1rem; }
.world-page .button { font-size: .875rem; min-height: 42px; }
.world-page button:disabled { opacity: .48; cursor: not-allowed; }
.world-page button:focus-visible, .world-page a:focus-visible, .world-page input:focus-visible, .world-page select:focus-visible { outline: 3px solid #4f9aaf; outline-offset: 3px; }
.world-page .world-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; }
.world-map-panel { padding: 16px; min-width: 0; }
.world-map-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; font-size: .875rem; }
.world-map-wrap { height: 510px; min-height: 420px; background: #c5e1e5; border: 1px solid var(--line); border-radius: 10px; }
.google-world-map { height: 100%; min-height: 420px; }
.map-loading, .map-error { min-height: 420px; font-size: 1rem; line-height: 1.7; }
.map-error strong { font-size: 1rem; }
.world-layer-status { font-size: .8125rem; color: var(--muted); margin: 10px 0; }
.world-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .875rem; line-height: 1.6; }
.world-legend span { display: inline-flex; align-items: center; gap: 6px; }
.world-legend i { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.world-note { font-size: .8125rem !important; line-height: 1.7; color: var(--muted); margin: 14px 0 0; }
.world-list-panel { padding: 18px 14px; }
.world-list-panel h2 { margin: 0 6px 14px; font-size: 1.0625rem; }
.world-list { max-height: 627px; overflow-y: auto; padding: 4px; display: grid; gap: 9px; scrollbar-width: thin; }
.world-location-card { display: grid; text-align: left; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: var(--card, white); color: var(--ink); }
.world-location-card:hover { border-color: #82a9b4; }
.world-location-card[aria-pressed=true] { background: #eaf4f5; border-color: #3b8395; box-shadow: inset 3px 0 #3b8395; }
.world-location-card strong { font-size: 1rem; }
.world-location-card > span:not(.world-category) { font-size: .875rem; line-height: 1.5; color: var(--muted); }
.world-location-card small { font-size: .8125rem; color: var(--muted); line-height: 1.5; }
.world-category { color: var(--category-color); font-size: .8125rem; font-weight: 700; }
.world-detail, .world-posture { margin-top: 18px; }
.world-detail-top { display: flex; justify-content: space-between; align-items: start; gap: 18px; }
.world-detail h2 { margin: 8px 0; font-size: 1.7rem; line-height: 1.4; }
.world-detail h2 small { font-size: .9375rem; font-weight: 400; color: var(--muted); }
.world-location { color: var(--muted); font-size: .875rem; }
.world-detail-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; margin-top: 8px; }
.world-detail h3 { font-size: .875rem; margin: 22px 0 8px; color: var(--muted); }
.world-detail p, .world-posture p { font-size: 1rem; line-height: 1.75; }
.world-source { border-left: 1px solid var(--line); padding-left: 28px; }
.world-source a { display: inline-block; color: var(--blue); font-size: .9375rem; line-height: 1.7; text-decoration: underline; text-underline-offset: 3px; }
.world-source dl, .world-integration dl { display: grid; gap: 10px; font-size: .875rem; line-height: 1.6; }
.world-source dl > div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
.world-source dt { color: var(--muted); }
.world-source dd, .world-integration dd { margin: 0; }
.world-table-wrap { overflow-x: auto; }
.world-posture table { width: 100%; border-collapse: collapse; font-size: .875rem; text-align: left; min-width: 530px; }
.world-posture th, .world-posture td { padding: 14px 10px; border-bottom: 1px solid var(--line); }
.world-posture caption { text-align: left; color: var(--muted); padding: 0 0 12px; font-size: .875rem; }
.world-posture thead { color: var(--muted); }
.world-integration { margin-top: 22px; color: var(--muted); font-size: .875rem; line-height: 1.7; }
.world-integration summary { cursor: pointer; color: var(--ink); }
.world-integration dl > div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; }
body.dark .world-location-card[aria-pressed=true] { background: #173b48; }
body.dark .world-category { color: #dfb175; }
.embedded-world { padding: 0 !important; max-width: none !important; }
.monitor-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.monitor-tabs button { font: inherit; padding: 12px 18px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.monitor-tabs button[aria-pressed=true] { color: white; background: #23576b; border-color: #23576b; }
.monitor-notice { padding: 18px 22px; border: 1px solid #85acb5; border-left: 4px solid #357b91; border-radius: 10px; background: #eaf3f4; margin-bottom: 18px; line-height: 1.7; }
.monitor-notice.unverified { border-color: #c1a370; border-left-color: #986529; background: #faf4e8; }
.monitor-notice p { margin: 5px 0 0; font-size: .9375rem; }
.feed-health { margin: 0 0 22px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--card,white); }
#feed-status { margin: 0 0 15px; font-size: .9375rem; font-weight: 600; }
.feed-clocks { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.feed-clocks div { display: grid; gap: 8px; min-width: 0; }
.feed-clocks span { color: var(--muted); font-size: .8125rem; }
.feed-clocks strong { font-size: .875rem; line-height: 1.6; overflow-wrap: anywhere; font-weight: 500; }
.monitor-pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; font-size: .875rem; }
.evidence-tag { display: inline-block; color: #7a591b; background: #f3e8cf; border: 1px solid #d9c593; border-radius: 5px; font-size: .8125rem; padding: 5px 8px; }
.evidence-facts { display: grid; gap: 12px; font-size: .875rem; line-height: 1.6; }
.evidence-facts > div { display: grid; grid-template-columns: 125px minmax(0,1fr); gap: 14px; }
.evidence-facts dt { color: var(--muted); }
.evidence-facts dd { margin: 0; overflow-wrap: anywhere; }
.document-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 18px; }
.document-card h2 { font-size: 1.2rem; line-height: 1.6; }
.document-card p { line-height: 1.75; font-size: .9375rem; }
.document-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; }
.document-links a, .world-integration a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.source-citation { font-size: .875rem !important; overflow-wrap: anywhere; max-height: 220px; overflow: auto; }
body.dark .monitor-notice { background: #15313e; }
body.dark .monitor-notice.unverified { background: #362e20; }
body.dark .evidence-tag { background: #42351d; color: #ecd294; border-color: #8e753c; }
@media (max-width: 900px) { .feed-clocks { grid-template-columns: repeat(2,minmax(0,1fr)); } .document-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .feed-clocks { grid-template-columns: 1fr; } .evidence-facts > div { grid-template-columns: 95px minmax(0,1fr); } }
@media (max-width: 1100px) {
  .world-page .world-layout { grid-template-columns: minmax(0, 1fr) 290px; }
  .map-area { grid-template-columns: minmax(0, 1fr) 275px; }
  .map-toolbar .map-status { display: none; }
  .map-toolbar .map-scale-note { display: none; }
}
@media (max-width: 800px) {
  .world-page .world-layout { grid-template-columns: 1fr; }
  .world-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 380px; }
  .world-map-wrap { height: 430px; }
  .world-detail-grid { grid-template-columns: 1fr; gap: 8px; }
  .world-source { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .map-area { height: auto; grid-template-columns: 1fr; grid-template-rows: 450px auto auto auto; }
  .map-preview { margin: 0 18px 14px; max-height: 260px; width: auto; }
  .map-area > .map-legend, .map-side-action { grid-column: 1; padding: 12px 18px; }
  .map-shell:fullscreen .map-area, .map-shell.expanded-map .map-area { overflow-y: auto; grid-template-rows: minmax(280px, 1fr) auto auto auto; }
}
@media (max-width: 480px) {
  .world-list { grid-template-columns: 1fr; }
  .world-detail-top { flex-direction: column; }
  .world-integration dl > div { grid-template-columns: 1fr; gap: 3px; }
  .world-summary { gap: 12px; }
  .world-toolbar label { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .map-canvas #orbit-group, .map-canvas #orbit-group.rotating { animation: none; }
  .map-loading::before { animation: none; }
}

.aegis-infowin { font: 13px/1.5 "DM Sans", "Noto Sans KR", sans-serif; color: #102433; max-width: 360px; padding: 2px 4px 4px 0; }
.aegis-infowin-head { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 2px 8px; align-items: center; margin-bottom: 6px; }
.aegis-infowin-head i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.aegis-infowin-head i.gap-swatch { border-radius: 2px; }
.aegis-infowin .evidence-precision { color: #3d6070; }
.evidence-clocks { margin: 6px 0; }
.aegis-infowin-head strong { font-size: 14px; line-height: 1.35; }
.aegis-infowin-head strong small { font-weight: 400; color: #6d7d8a; font-size: 11px; }
.aegis-infowin-head span { grid-column: 2; color: #6d7d8a; font-size: 11px; }
.aegis-infowin ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; max-height: 240px; overflow-y: auto; }
.aegis-infowin li { border-top: 1px solid #e6edf0; padding-top: 6px; }
.aegis-infowin li b { color: #9a6d2d; font-weight: 700; }
.aegis-infowin small { color: #6d7d8a; }
.aegis-infowin p { margin: 8px 0 0; color: #6d7d8a; font-size: 11.5px; line-height: 1.5; }
.aegis-infowin a { color: #3d81a4; font-weight: 700; text-decoration: underline; }
.aegis-infowin-note { border-top: 1px dashed #e6edf0; padding-top: 6px; }
.aegis-infowin ul { max-height: 300px; }
.aegis-infowin details summary { cursor: pointer; list-style: none; }
.aegis-infowin details summary::-webkit-details-marker { display: none; }
.aegis-infowin details[open] summary b { color: #3d81a4; }
.aegis-infowin-detail { margin-top: 6px; padding: 8px 10px; background: #f4f7f8; border-radius: 8px; }
.aegis-infowin-detail p { margin: 0 0 4px; color: #102433; font-size: 12px; }
.aegis-infowin-detail dl { display: grid; gap: 3px; margin: 6px 0; font-size: 11.5px; }
.aegis-infowin-detail dl > div { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 6px; }
.aegis-infowin-detail dt { color: #6d7d8a; } .aegis-infowin-detail dd { margin: 0; overflow-wrap: anywhere; }
/* The control sits in Google's own absolutely-positioned holder, which sizes itself to its widest content: a
   max-width clamped the panel's box but left its grid column at the head line's full width, so every layer name ran
   out over the map with no ground under it. A definite width and one fractional column keep the rows inside. */
.cop-map-control { margin: 10px; padding: 8px 10px; background: rgba(255,255,255,.94); border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.25); font: 12px/1.5 "DM Sans", "Noto Sans KR", sans-serif; color: #102433; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; width: min(272px, calc(100vw - 52px)); overflow: hidden; }
.cop-map-control-head { display: flex; justify-content: space-between; gap: 8px; font-size: 10.5px; color: #6d7d8a; line-height: 1.4; }
.cop-map-control-head span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cop-map-control-head strong { color: #102433; font-size: 12px; }
.cop-map-control label { display: grid; grid-template-columns: auto 10px minmax(0, 1fr) auto; gap: 6px; align-items: center; cursor: pointer; min-width: 0; }
/* A layer's name wraps inside the panel instead of running out over the map: the English names are long enough to
   have spilled past the panel's 260px and printed themselves on the map with no ground under them. */
.cop-map-control label em { font-style: normal; min-width: 0; word-break: keep-all; overflow-wrap: anywhere; }
.cop-map-control i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.cop-map-control span { color: #6d7d8a; font-variant-numeric: tabular-nums; font-size: 11px; }

/* 전체화면에서는 읽을 자리가 넉넉하므로 패널을 더 넓힌다. */
.map-shell:fullscreen .map-area, .map-shell.expanded-map .map-area { grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); }
