/* CTRL-00 static prototype — independently authored from the approved v02 PNG */
:root {
  /* Primitive tokens */
  --navy-950: #020d18;
  --navy-925: #031423;
  --navy-900: #041a2d;
  --navy-875: #06233a;
  --navy-850: #082b47;
  --blue-600: #087fe2;
  --blue-500: #1595ff;
  --cyan-400: #18c8ff;
  --teal-400: #18d7c2;
  --violet-400: #8270ff;
  --amber-400: #ffaf19;
  --red-400: #ff4257;
  --lavender-400: #a598ef;
  --white: #ffffff;
  --slate-100: #e7f4fc;
  --slate-300: #9db7ca;
  --slate-500: #6687a0;
  --line-strong: #225678;
  --line: #174566;
  --line-soft: rgba(64, 139, 188, .25);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 9px;
  --font-user-min: 13px;
  --font-ui: 14px;
  --font-heading: 16px;

  /* Semantic tokens */
  --screen-bg: var(--navy-950);
  --panel-bg: rgba(3, 22, 38, .96);
  --panel-bg-soft: rgba(5, 30, 49, .93);
  --text: var(--slate-100);
  --muted: var(--slate-300);
  --faint: var(--slate-500);
  --accent: var(--blue-500);
  --success: var(--teal-400);
  --warning: var(--amber-400);
  --danger: var(--red-400);

  /* Component tokens */
  --header-height: 72px;
  --left-width: 332px;
  --right-width: 400px;
  --brand-width: 332px;
  --header-tools-width: 430px;
  --panel-border: 1px solid var(--line);
  --panel-shadow: 0 12px 28px rgba(0, 0, 0, .32);
}

/* Actual CTRL-00 integration: the approved shell remains unchanged and only
   the prototype map surface is replaced by the existing Cesium viewer. */
.control-screen[data-map-engine="cesium"] .map-viewport { cursor: default; touch-action: auto; }
.control-screen[data-map-engine="cesium"] .region-labels,
.control-screen[data-map-engine="cesium"] .map-markers { pointer-events: none; }
.control-screen[data-map-engine="cesium"] .map-world {
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
  transition: none;
  will-change: auto;
}
#cesium-container,
#cesium-container .cesium-widget,
#cesium-container .cesium-widget canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#cesium-container .cesium-widget-credits { display: none !important; }
.control-screen[data-map-engine="cesium"] .service-cards small[data-state="error"] { color: #ff7b8a; }
.control-screen[data-map-engine="cesium"] .service-cards small[data-state="loading"] { color: #ffca63; }
.control-screen[data-map-engine="cesium"] .object-tab-content { overflow: auto; }
.control-screen[data-map-engine="cesium"] .object-detail dd { overflow-wrap: anywhere; }

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: var(--screen-bg); }
body {
  color: var(--text);
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button, input { font: inherit; }
button { color: inherit; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.svg-sprite symbol { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.viewport-frame { position: relative; width: 100vw; height: 100vh; overflow: hidden; }
.control-screen { position: absolute; inset: 0; width: 1920px; height: 1080px; overflow: hidden; background: var(--screen-bg); }

/* Header */
.global-header {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: var(--left-width) 1fr 430px;
  width: 100%;
  height: var(--header-height);
  border-bottom: 1px solid #126a9e;
  background:
    linear-gradient(110deg, rgba(8, 48, 79, .98), rgba(2, 22, 39, .98) 55%, rgba(3, 28, 47, .98)),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(21, 149, 255, .04) 18px 19px);
  box-shadow: 0 5px 22px rgba(0, 0, 0, .28);
}
.brand { display: flex; align-items: center; gap: 14px; padding-left: 24px; border-right: 1px solid rgba(56, 130, 177, .12); }
.brand > span:last-child { display: grid; gap: 4px; }
.brand strong { font-size: 18px; font-weight: 800; letter-spacing: -.4px; white-space: nowrap; }
.brand small { color: #7898af; font-size: 13px; letter-spacing: .8px; }
.brand-mark { display: block; width: 48px; height: 48px; border-radius: 50%; object-fit: contain; outline: 0; }

.gnb { display: flex; align-items: stretch; min-width: 0; }
.gnb-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 118px;
  padding: 0 15px;
  border: 0;
  background: transparent;
  color: #b9cedd;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.gnb-item svg { width: 17px; height: 17px; fill: none; stroke: #638aa5; stroke-width: 1.8; }
.gnb-item.active { color: var(--white); background: linear-gradient(180deg, rgba(18, 103, 164, .62), rgba(7, 50, 83, .44)); }
.gnb-item.active::after { content: ""; position: absolute; right: 12px; bottom: 0; left: 12px; height: 3px; border-radius: 3px 3px 0 0; background: var(--blue-500); box-shadow: 0 0 14px rgba(21, 149, 255, .8); }
.gnb-item.active svg { stroke: var(--cyan-400); }
.header-tools { display: flex; align-items: center; justify-content: flex-end; gap: 20px; padding-right: 20px; }
.header-tools time { margin-right: 10px; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.icon-button { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: transparent; }
.icon-button svg { width: 22px; height: 22px; fill: none; stroke: #d5e5ef; stroke-width: 1.7; }
.notification b { position: absolute; top: 1px; right: 0; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #ff304b; color: #fff; font-size: 13px; }

/* Main three-column shell */
.dashboard-grid { display: grid; grid-template-columns: var(--left-width) minmax(0, 1fr) var(--right-width); width: 100%; height: calc(1080px - var(--header-height)); }

/* Left layer panel */
.layer-panel { position: relative; z-index: 20; height: 100%; overflow: hidden; border-right: 1px solid #17618d; background: linear-gradient(180deg, #041b2e, #031421); box-shadow: 8px 0 22px rgba(0, 0, 0, .24); }
.panel-tabs { display: grid; grid-template-columns: 1fr 1fr; height: 53px; border-bottom: 1px solid var(--line); }
.panel-tabs button { border: 0; background: transparent; color: #8ca8bb; font-size: 13px; font-weight: 800; }
.panel-tabs button.active { position: relative; color: #fff; background: linear-gradient(180deg, #168ef0, #0c6fc9); }
.panel-tabs button.active::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: #36cfff; }
.layer-search { display: flex; align-items: center; gap: 10px; height: 48px; margin: 9px 12px; padding: 0 12px; border: 1px solid #22587c; border-radius: 5px; background: #0a2942; }
.layer-search svg { width: 17px; height: 17px; fill: none; stroke: #8caec4; stroke-width: 1.8; }
.layer-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: #d9eaf4; background: transparent; font-size: 13px; }
.layer-search input::placeholder { color: #7192a9; opacity: 1; }
.layer-group { margin: 0 12px; border-bottom: 1px solid #154765; }
.layer-group > header { display: flex; align-items: center; min-height: 38px; border-bottom: 1px solid #1b5476; }
.layer-group > header strong { flex: 1; margin-left: 7px; font-size: 14px; }
.layer-group > header em, .layer-row mark { min-width: 27px; padding: 3px 7px; border: 1px solid #2d6e97; border-radius: 12px; color: #a9ddff; background: #0f3a58; font-size: 13px; font-style: normal; text-align: center; }
.chevron { display: inline-block; width: 7px; height: 7px; margin: 0 5px 2px 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
.layer-group > header .chevron { transform: rotate(45deg); }
.check { position: relative; display: inline-grid; place-items: center; flex: 0 0 18px; width: 18px; height: 18px; }
.check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.check span { width: 17px; height: 17px; border: 1px solid #56809b; border-radius: 3px; background: #061b2d; }
.check input:checked + span { position: relative; border-color: #2a9fff; background: #188ef0; box-shadow: 0 0 8px rgba(21, 149, 255, .24); }
.check input:checked + span::after { content: ""; position: absolute; top: 3px; left: 5px; width: 4px; height: 7px; border-right: 2px solid white; border-bottom: 2px solid white; transform: rotate(45deg); }
.check input:indeterminate + span { position: relative; border-color: #2a9fff; background: #147ed2; }
.check input:indeterminate + span::after { content: ""; position: absolute; top: 7px; left: 3px; width: 9px; height: 2px; border: 0; background: white; transform: none; }
.group-check input:checked + span { background: #147ed2; }
.layer-row { position: relative; display: flex; align-items: center; gap: 8px; min-height: 28px; padding: 0 2px 0 10px; border-bottom: 1px solid rgba(47, 103, 139, .34); color: #bdd1df; }
.layer-row:last-child { border-bottom: 0; }
.layer-row b { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; white-space: nowrap; }
.layer-row > em { width: 34px; color: #d9e9f3; font-size: 13px; font-style: normal; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.row-plus { width: 9px; margin-left: -8px; color: #7b9db2; font-size: 15px; line-height: 1; }
.layer-symbol { width: 17px; height: 19px; border: 1px solid #9fa3ff; border-radius: 4px; background: linear-gradient(90deg, #ffda62 0 28%, #ff6868 28% 55%, #7f82ff 55% 100%); }
.slider { position: relative; flex: 0 0 76px; height: 4px; border-radius: 4px; background: #24425a; }
.slider i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: #38aaf9; }
.slider u { position: absolute; top: -4px; width: 12px; height: 12px; border-radius: 50%; background: #edf8ff; text-decoration: none; box-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.slider.muted i { background: #39a7ee; }
.precision-group .layer-row { min-height: 27px; }
.expand-all { display: flex; align-items: center; height: 25px; margin-left: auto; border: 0; background: transparent; color: #19a5ff; font-size: 13px; }
.expand-all .chevron { margin-left: 5px; transform: rotate(-45deg); }
.additional-group { border-bottom: 0; }
.additional-group .layer-row { min-height: 27px; }
.additional-group mark { margin-left: auto; }

/* Map */
.map-stage { position: relative; min-width: 0; overflow: hidden; background: #092538; }
.map-stage::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 28, 46, .2), transparent 16%, transparent 74%, rgba(2, 17, 29, .72)); pointer-events: none; z-index: 2; }
.map-scene { position: absolute; z-index: 1; top: 80px; left: 0; width: 1188px; height: 696px; object-fit: fill; outline: 1px solid rgba(255, 255, 255, .1); outline-offset: -1px; }
.service-cards { position: absolute; z-index: 8; top: 12px; right: 10px; left: 10px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) 150px; gap: 5px; height: 73px; }
.service-cards article { display: grid; grid-template-columns: 52px 1fr; align-items: center; min-width: 0; padding: 8px 10px; border: 1px solid #205272; border-radius: 8px; background: linear-gradient(135deg, rgba(7, 39, 63, .98), rgba(4, 24, 41, .96)); box-shadow: 0 8px 20px rgba(0, 0, 0, .28); }
.service-cards article > div { min-width: 0; }
.service-cards strong { display: block; overflow: hidden; color: #f4fbff; font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.service-cards small { display: flex; align-items: center; gap: 5px; margin-top: 7px; color: #7f9db0; font-size: 13px; white-space: nowrap; }
.service-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(11, 96, 155, .4); box-shadow: inset 0 0 0 1px rgba(61, 174, 255, .15), 0 0 18px rgba(21, 149, 255, .12); }
.service-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.service-icon.cyan { color: #38cbff; }.service-icon.teal { color: #1de0c6; background: rgba(0, 111, 105, .42); }.service-icon.blue { color: #3c8dff; background: rgba(18, 66, 144, .48); }.service-icon.violet { color: #9179ff; background: rgba(68, 42, 140, .48); }
.ok, .prototype-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-400); box-shadow: 0 0 7px rgba(24, 215, 194, .6); }.violet-dot { background: var(--violet-400); }.prototype-dot { background: var(--amber-400); box-shadow: 0 0 7px rgba(255, 175, 25, .55); }
.service-cards .region-card { display: block; padding: 8px 10px; }
.region-card label { display: block; margin-bottom: 7px; color: #8eabbf; font-size: 13px; font-weight: 700; }
.region-card button { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 34px; padding: 0 10px; border: 1px solid #306486; border-radius: 4px; background: #0b3351; color: #fff; font-size: 13px; font-weight: 700; }
.select-caret { width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-2px); }

/* Bottom summaries */
.bottom-panels { position: absolute; z-index: 10; right: 8px; bottom: 14px; left: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; height: 216px; }
.summary-panel { overflow: hidden; border: 1px solid #235675; border-radius: 8px; background: linear-gradient(135deg, rgba(3, 29, 49, .97), rgba(4, 22, 37, .95)); box-shadow: var(--panel-shadow); }
.summary-panel > header { display: grid; grid-template-columns: 1fr auto auto; align-items: center; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line-soft); }
.summary-panel h2 { margin: 0; font-size: 15px; }
.summary-panel > header span { color: #718fa5; font-size: 13px; }
.summary-panel > header button { display: flex; align-items: center; border: 0; background: transparent; color: #16a8ff; font-size: 13px; }
.summary-panel > header .chevron { transform: rotate(-45deg); }
.summary-content { display: grid; grid-template-columns: 150px 120px minmax(0, 1fr); align-items: center; height: 171px; padding: 12px 14px; }
.donut { position: relative; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 0 24px rgba(0, 0, 0, .25); }
.donut::after { content: ""; position: absolute; inset: 15px; border-radius: 50%; background: #061b2c; box-shadow: inset 0 0 10px rgba(0, 0, 0, .55); }
.donut > div { position: relative; z-index: 1; display: grid; justify-items: center; }
.donut small { color: #8ba6b8; font-size: 13px; }.donut strong { margin-top: 3px; color: #f2fbff; font-size: 23px; font-variant-numeric: tabular-nums; }.donut strong em { margin-left: 1px; font-size: 13px; font-style: normal; }
.traffic-donut, .coverage-donut { width: 112px; height: 112px; }
.traffic-donut { background: conic-gradient(var(--teal-400) 0 68%, var(--amber-400) 68% 90%, var(--red-400) 90% 100%); }
.coverage-donut { background: conic-gradient(var(--teal-400) 0 82.6%, var(--amber-400) 82.6% 89%, var(--red-400) 89% 96.1%, var(--lavender-400) 96.1% 100%); }
.chart-legend { display: grid; gap: 11px; margin: 0; padding: 0 13px 0 0; border-right: 1px solid var(--line-soft); list-style: none; }
.chart-legend li { display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: 7px; font-size: 13px; }
.chart-legend i, .status-legend i { width: 9px; height: 9px; border-radius: 3px; }.mint { background: var(--teal-400); }.amber { background: var(--amber-400); }.red { background: var(--red-400); }.lavender { background: var(--lavender-400); }
.chart-legend b { font-size: 13px; font-variant-numeric: tabular-nums; }
.rank-list, .coverage-preview { align-self: stretch; padding-left: 16px; }
.rank-list h3, .coverage-preview h3 { margin: 1px 0 9px; font-size: 13px; }.rank-list h3 em, .coverage-preview h3 em { color: #20aaf8; font-style: normal; }
.rank-list ol { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rank-list li { display: grid; grid-template-columns: 25px minmax(0, 1fr) 62px; align-items: center; min-height: 31px; border: 1px solid #164867; border-radius: 4px; background: rgba(7, 41, 65, .62); }
.rank-list li > b { display: grid; place-items: center; width: 19px; height: 19px; margin-left: 5px; border-radius: 3px; color: #b6ddf4; background: #15557e; font-size: 13px; }
.rank-list li span { overflow: hidden; color: #9eb5c5; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.rank-list li strong { padding-right: 8px; color: var(--red-400); font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }.rank-list li:nth-child(3) strong { color: var(--amber-400); }
.coverage-preview img { width: 100%; height: 105px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 5px; object-fit: cover; outline: 1px solid rgba(0, 0, 0, .14); outline-offset: -1px; }

/* Right context */
.pending-panel { position: relative; }
.pending-panel > [inert] { opacity: .42; }
.implementation-mask { position: absolute; z-index: 30; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border-radius: inherit; background: rgba(3, 21, 35, .68); cursor: not-allowed; }
.implementation-mask strong { padding: 7px 20px; border: 1px solid #47768f; border-radius: 5px; color: #d9eaf5; background: #0a2a40; font-size: 16px; white-space: nowrap; }
.implementation-mask span { color: #a0b8c9; font-size: 12px; white-space: nowrap; }
.modal-body.pending-panel { min-height: 190px; }
.context-panel { position: relative; z-index: 20; display: grid; grid-template-rows: 480px minmax(0, 1fr); gap: 10px; height: 100%; padding: 12px; border-left: 1px solid #155f8b; background: linear-gradient(180deg, #041a2c, #031421); box-shadow: -8px 0 22px rgba(0, 0, 0, .26); }
.status-panel, .object-panel { overflow: hidden; border: var(--panel-border); border-radius: 8px; background: linear-gradient(145deg, rgba(4, 28, 47, .98), rgba(2, 20, 34, .98)); box-shadow: 0 8px 18px rgba(0, 0, 0, .2); }
.status-panel > header, .object-panel > header { display: flex; align-items: center; height: 44px; padding: 0 14px; }
.status-panel > header svg { width: 16px; height: 16px; margin-right: 8px; fill: none; stroke: #38adf2; stroke-width: 1.8; }
.status-panel h2, .object-panel h2 { margin: 0; font-size: 15px; }
.status-tabs { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 14px; border: 1px solid #255a7c; border-radius: 4px; overflow: hidden; }
.status-tabs button { height: 36px; border: 0; border-right: 1px solid #1d4d6d; background: #082a44; color: #89a7bb; font-size: 13px; }
.status-tabs button:last-child { border-right: 0; }.status-tabs button.active { color: white; background: linear-gradient(180deg, #168eef, #0d6fc9); box-shadow: inset 0 -3px #14c8ff; }
.status-overview { display: grid; grid-template-columns: 144px 1fr; align-items: center; min-height: 145px; margin: 0 14px; border-bottom: 1px solid var(--line-soft); }
.status-donut { width: 104px; height: 104px; margin-left: 9px; background: conic-gradient(var(--teal-400) 0 95.2%, var(--amber-400) 95.2% 98.4%, var(--red-400) 98.4% 100%); }
.status-donut strong { font-size: 22px; }.status-donut small { margin-top: 1px; }
.status-legend { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.status-legend li { display: grid; grid-template-columns: 10px 1fr 28px 43px; align-items: center; gap: 7px; font-size: 13px; }.status-legend b { text-align: right; font-variant-numeric: tabular-nums; }.status-legend em { color: #c7d9e5; font-style: normal; text-align: right; font-variant-numeric: tabular-nums; }
.events-head { display: grid; grid-template-columns: 1fr 67px 60px; align-items: center; height: 47px; margin: 0 14px; border-bottom: 1px solid var(--line-soft); }
.events-head h3 { margin: 0; font-size: 14px; }.events-head button { display: flex; align-items: center; justify-content: space-between; height: 30px; padding: 0 9px; border: 1px solid #245778; border-radius: 4px; background: #0b2f4b; color: #b6cbd9; font-size: 13px; }.events-head a { display: flex; align-items: center; justify-content: flex-end; color: #1caaff; font-size: 13px; text-decoration: none; }.events-head a .chevron { transform: rotate(-45deg); }
.event-list { margin: 0 14px; padding: 7px 0 0; list-style: none; }
.event-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr) 39px; align-items: center; min-height: 31px; gap: 8px; }
.event-list mark { display: grid; place-items: center; height: 24px; border-radius: 4px; color: white; font-size: 13px; font-weight: 800; }.event-list mark.danger { background: #f43047; }.event-list mark.warning { background: #f59d0b; }.event-list mark.info { background: #238ee8; }
.event-list span { overflow: hidden; color: #c9d9e4; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.event-list time { color: #94acbd; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }

.object-panel > header { border-bottom: 1px solid var(--line-soft); }.object-panel > header h2 { flex: 1; }.object-panel > header button { display: flex; align-items: center; border: 0; background: transparent; color: #22adff; font-size: 13px; }.object-panel > header button .chevron { transform: rotate(-45deg); }.object-panel > header .close { width: 30px; height: 30px; justify-content: center; color: #d0e0ea; font-size: 25px; font-weight: 200; }
.object-title { display: flex; align-items: center; gap: 11px; height: 58px; padding: 0 14px; }.object-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #2ab8ff; background: rgba(15, 93, 143, .52); }.object-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; }.object-title strong { font-size: 17px; }.object-title mark { padding: 6px 10px; border-radius: 13px; color: white; background: #ff3a50; font-size: 13px; font-weight: 800; }
.object-tabs { display: grid; grid-template-columns: repeat(4, 1fr); height: 39px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }.object-tabs button { position: relative; border: 0; background: transparent; color: #7999af; font-size: 13px; }.object-tabs button.active { color: white; background: rgba(18, 91, 145, .45); }.object-tabs button.active::after { content: ""; position: absolute; right: 8px; bottom: 0; left: 8px; height: 2px; background: #1595ff; }
.object-detail { display: grid; gap: 0; margin: 8px 15px 0; }.object-detail div { display: grid; grid-template-columns: 103px minmax(0, 1fr); min-height: 25px; align-items: center; }.object-detail dt { color: #7898ae; font-size: 13px; }.object-detail dd { margin: 0; color: #dce9f2; font-size: 13px; font-weight: 600; }.object-detail .danger-text { color: var(--red-400); }.object-detail .danger-text span { color: #e2edf4; }.object-detail dd svg { width: 14px; height: 14px; margin-left: 3px; fill: #ffac24; stroke: #ffac24; vertical-align: -3px; }
.object-actions { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 7px; margin: 12px 14px 0; }.object-actions button { height: 40px; border: 1px solid #265a7d; border-radius: 4px; background: #0a2b45; color: #d7e7f0; font-size: 13px; font-weight: 800; }.object-actions button.primary { border-color: #198ff0; background: linear-gradient(180deg, #1b8ef0, #0c6dce); color: white; box-shadow: 0 0 16px rgba(21, 149, 255, .2); }

button, .check { cursor: default; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--cyan-400); outline-offset: 2px; }

@media (max-width: 1919px), (max-height: 1079px) {
  .viewport-frame { overflow: auto; }
}

/* ================================================================
   Interactive prototype layer
   ================================================================ */
[hidden] { display: none !important; }
html, body { min-width: 0; overflow: hidden; }
.control-screen { position: relative; width: 100%; height: 100dvh; min-height: 0; }
.global-header { grid-template-columns: var(--brand-width) minmax(0, 1fr) var(--header-tools-width); }
.brand { color: inherit; text-decoration: none; }
.dashboard-grid { height: calc(100dvh - var(--header-height)); }
.drawer-title, .mobile-panel-button, .desktop-panel-button { display: none; }
.demo-ribbon { position: fixed; z-index: 120; right: 12px; bottom: 8px; display: flex; align-items: center; gap: 7px; padding: 5px 8px; border: 1px solid rgba(255, 175, 25, .45); border-radius: 4px; color: #ffd470; background: rgba(38, 27, 7, .88); font-size: 13px; pointer-events: none; }.demo-ribbon span { color: #bba56f; }

/* Data-driven layer tree */
.left-tab-panel { height: calc(100% - 53px); min-height: 0; }
.left-tab-panel[data-left-panel="layers"] { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.layer-global-actions { display: flex; justify-content: flex-end; gap: 10px; min-height: 23px; padding: 0 13px 4px; }.layer-global-actions button { border: 0; color: #2bb3ff; background: transparent; font-size: 13px; }
.layer-groups { min-height: 0; overflow: auto; }
:is(.layer-groups,.rsu-analysis-panel,.analysis-results-panel,.rsu-analysis-panel *,.analysis-results-panel *) { scrollbar-width: thin; scrollbar-color: #28658c transparent; }
:is(.layer-groups,.rsu-analysis-panel,.analysis-results-panel,.rsu-analysis-panel *,.analysis-results-panel *)::-webkit-scrollbar { width: 6px; }
:is(.layer-groups,.rsu-analysis-panel,.analysis-results-panel,.rsu-analysis-panel *,.analysis-results-panel *)::-webkit-scrollbar-thumb { border-radius: 5px; background: #28658c; }
.layer-group > header { gap: 5px; }
.group-toggle { display: flex; flex: 1; align-items: center; min-width: 0; height: 37px; padding: 0; border: 0; background: transparent; text-align: left; }.group-toggle strong { flex: 1; margin-left: 1px; color: var(--text); }.group-toggle em { min-width: 27px; padding: 3px 7px; border: 1px solid #2d6e97; border-radius: 12px; color: #a9ddff; background: #0f3a58; font-size: 13px; font-style: normal; text-align: center; }.group-toggle .chevron { transform: rotate(45deg); transition: transform 150ms ease-in-out; }.layer-group:not(.expanded) .group-toggle .chevron { transform: rotate(-45deg); }
.group-items[hidden], .category-items[hidden] { display: none; }
.background-type-row { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 9px; min-height: 30px; padding: 0 9px 0 25px; color: #bdd1df; cursor: pointer; }
.background-type-row input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.background-type-row > span { width: 15px; height: 15px; border: 1px solid #56809b; border-radius: 50%; background: #061b2d; }
.background-type-row input:checked + span { border: 4px solid #188ef0; background: #e8f7ff; box-shadow: 0 0 8px rgba(21,149,255,.28); }
.background-type-row b { font-size: 13px; font-weight: 600; }
.background-type-row.disabled { opacity: .46; cursor: default; }
.background-service-state { margin: 2px 10px 8px 25px; color: #79a3bd; font-size: 12px; line-height: 1.35; }
.background-service-state[data-state="ready"] { color: #54d8c5; }
.background-service-state[data-state="error"] { color: #ff9a85; }
.layer-row { grid-template-columns: 13px 18px minmax(0, 1fr) 112px; display: grid; gap: 7px; min-height: 29px; padding: 0 2px; }
.range-placeholder { display: block; min-width: 0; }
.row-expander { width: 18px; height: 24px; padding: 0; border: 0; color: #7ca2b8; background: transparent; font-size: 15px; }.row-spacer { width: 13px; }
.range-control { display: grid; grid-template-columns: minmax(48px, 1fr) 35px; align-items: center; gap: 6px; min-width: 0; }
.range-control input[type="range"] { --range-value: 100%; width: 100%; height: 18px; margin: 0; appearance: none; background: transparent; cursor: pointer; touch-action: none; }
.range-control input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #38aaf9 var(--range-value), #24425a var(--range-value)); }
.range-control input[type="range"]::-webkit-slider-thumb { width: 14px; height: 14px; margin-top: -5px; appearance: none; border: 0; border-radius: 50%; background: #eef8ff; box-shadow: 0 1px 5px rgba(0,0,0,.65); }
.range-control input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: #24425a; }.range-control input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: #38aaf9; }.range-control input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #eef8ff; }
.range-control span { color: #dcebf5; font-size: 13px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.layer-category { border-bottom: 1px solid rgba(47,103,139,.28); }.category-header { display: grid; grid-template-columns: 16px minmax(0,1fr) 28px; align-items: center; width: 100%; min-height: 29px; padding: 0 7px 0 13px; border: 0; color: #bdd1df; background: rgba(5,32,52,.6); text-align: left; }.category-header strong { font-size: 13px; }.category-header em { border-radius: 10px; color: #9ed9ff; background: #0e3b5a; font-size: 13px; font-style: normal; text-align: center; }.category-header .chevron { transform: rotate(-45deg); }.layer-category.expanded .category-header .chevron { transform: rotate(45deg); }.category-items .layer-row { padding-left: 14px; background: rgba(3,22,38,.7); }
.layer-tree { border-bottom: 0; }.layer-tree > .layer-row { border-bottom: 1px solid rgba(47,103,139,.34); }.layer-children .layer-row { padding-left: 18px; background: rgba(2,18,31,.72); }.layer-children .layer-row b { color: #8faabd; font-size: 13px; }
.layer-empty { display: grid; justify-items: center; align-content: center; min-height: 180px; gap: 9px; color: #7596ad; }.layer-empty svg { width: 28px; height: 28px; fill: none; stroke: currentColor; }.layer-empty button { border: 0; color: #20aaff; background: transparent; }
.layer-search button { display: grid; place-items: center; width: 28px; height: 28px; border: 0; color: #7092a9; background: transparent; }.layer-search button svg { width: 14px; height: 14px; }
.analysis-tools { padding: 14px; }.analysis-tools header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }.analysis-tools header span, .sample-badge { padding: 3px 6px; border: 1px solid rgba(255,175,25,.42); border-radius: 3px; color: #ffca62; background: rgba(73,50,8,.34); font-size: 13px; }.analysis-tools > button { width: 100%; height: 42px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 5px; color: #b6cedd; background: #082a44; text-align: left; padding: 0 13px; }.analysis-tools > button.active { border-color: #1595ff; color: white; background: #0b4e7b; }.analysis-tools p { color: #7797ad; font-size: 13px; line-height: 1.6; }

/* Map renderer ownership: one transformed world, fixed UI chrome */
.map-stage { isolation: isolate; }
.map-stage::before { z-index: 2; pointer-events: none; }
.map-viewport { position: absolute; z-index: 1; inset: 0; overflow: hidden; background: #0a293d; cursor: grab; touch-action: none; user-select: none; }.map-viewport.dragging { cursor: grabbing; }.map-viewport:focus-visible { outline: 2px solid #24c8ff; outline-offset: -3px; }
.map-world { --marker-scale: 1; position: absolute; transform-origin: 50% 50%; transition-property: transform; transition-duration: 180ms; transition-timing-function: ease-out; will-change: transform; }.map-viewport.dragging .map-world { transition-duration: 0ms; }
.map-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; outline: 1px solid rgba(255,255,255,.08); outline-offset: -1px; transition: opacity 150ms ease-in-out; }
.map-overlay--ui-demo { isolation: isolate; }
.map-overlay { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }.map-overlay g { opacity: 0; transition: opacity 150ms ease-in-out; }.road-main { fill: none; stroke: #ff8b1a; stroke-width: 7; stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(255,118,0,.8)); }.road-secondary { fill: none; stroke: #16d1b5; stroke-width: 5; stroke-linecap: round; }.road-mark { fill: none; stroke: #ffe39a; stroke-width: 1.5; stroke-dasharray: 9 7; }.boundary-line { fill: none; stroke: #25c8ff; stroke-width: 2; stroke-dasharray: 8 7; }
.region-labels, .map-markers { position: absolute; inset: 0; }.region-label { position: absolute; transform: translate(-50%,-50%) scale(var(--marker-scale)); transform-origin: center; padding: 6px 13px; border: 1px solid rgba(137,201,238,.42); border-radius: 6px; color: white; background: rgba(3,24,41,.86); box-shadow: 0 4px 12px rgba(0,0,0,.42); font-size: 13px; font-weight: 800; white-space: nowrap; }
.map-marker { position: absolute; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 3px solid white; border-radius: 50%; color: white; background: #118df0; box-shadow: 0 0 0 4px rgba(21,149,255,.22), 0 6px 15px rgba(0,0,0,.48); transform: translate(-50%,-50%) scale(var(--marker-scale)); transform-origin: center; }.map-marker svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }.map-marker > span { position: absolute; top: 38px; left: 50%; padding: 4px 8px; border-radius: 4px; background: rgba(3,22,38,.92); font-size: 13px; font-weight: 800; white-space: nowrap; transform: translateX(-50%); }.map-marker.danger { background: #f6374d; }.map-marker.warning { background: #ff9f15; }.map-marker.info { background: #1e8ce7; }.map-marker:hover, .map-marker:focus-visible, .map-marker.selected { z-index: 5; box-shadow: 0 0 0 7px rgba(21,149,255,.35), 0 8px 22px rgba(0,0,0,.55); }.map-marker.selected { border-color: #ffe36a; }
.map-popup { position: absolute; z-index: 22; width: 232px; min-height: 132px; padding: 14px; border: 1px solid #2d81b6; border-radius: 7px; color: #e8f5fc; background: rgba(3,24,41,.97); box-shadow: 0 14px 32px rgba(0,0,0,.48); }.map-popup::after { content: ""; position: absolute; right: 100%; bottom: 16px; border: 8px solid transparent; border-right-color: #2d81b6; }.map-popup.flip-x::after { right: auto; left: 100%; border-right-color: transparent; border-left-color: #2d81b6; }.map-popup.flip-y::after { top: 16px; bottom: auto; }.map-popup.offscreen { visibility: hidden; }.map-popup small, .map-popup strong { display: block; }.map-popup small { color: #6fa4c6; font-size: 13px; }.map-popup strong { margin-top: 5px; font-size: 16px; }.popup-status { display: inline-flex; margin-top: 8px; padding: 4px 7px; border-radius: 3px; color: #9de9df; background: rgba(24,215,194,.15); font-size: 13px; }.popup-status.danger { color: #ff7b8a; background: rgba(255,66,87,.16); }.popup-status.warning { color: #ffca63; background: rgba(255,175,25,.16); }.popup-detail { width: 100%; height: 30px; margin-top: 9px; border: 1px solid #167ec5; border-radius: 4px; color: white; background: #0d6fc5; }.popup-close { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 28px; height: 28px; border: 0; color: #adc5d5; background: transparent; }.popup-close svg { width: 14px; height: 14px; }
.map-tooltip { position: absolute; z-index: 25; max-width: 180px; padding: 6px 8px; border-radius: 4px; color: white; background: rgba(1,15,26,.95); box-shadow: 0 5px 12px rgba(0,0,0,.36); font-size: 13px; pointer-events: none; }
.map-toolbar { position: absolute; z-index: 14; top: 164px; right: 12px; display: grid; gap: 1px; width: 43px; padding: 4px; border: 1px solid #285f80; border-radius: 7px; background: rgba(4,28,47,.94); box-shadow: 0 8px 18px rgba(0,0,0,.34); }.map-toolbar button { display: grid; place-items: center; width: 33px; height: 36px; border: 0; border-radius: 4px; color: #d6e7f1; background: transparent; }.map-toolbar button:hover:not(:disabled) { background: #0b4b76; }.map-toolbar button.active { color: white; background: #147cdf; }.map-toolbar button:disabled { opacity: .72; cursor: not-allowed; }.map-toolbar svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.region-card select { width: 100%; height: 34px; padding: 0 26px 0 10px; border: 1px solid #306486; border-radius: 4px; color: #fff; background: #0b3351; font-size: 13px; font-weight: 700; }








/* Dynamic right panel */
.status-panel > header { gap: 0; }.status-panel > header h2 { flex: 1; }
.events-head select { height: 30px; padding: 0 8px; border: 1px solid #245778; border-radius: 4px; color: #b6cbd9; background: #0b2f4b; font-size: 13px; }.events-head button { display: flex; align-items: center; justify-content: flex-end; border: 0; color: #1caaff; background: transparent; font-size: 13px; }.events-head button .chevron { transform: rotate(-45deg); }
.event-list .event-empty { display: grid; place-items: center; min-height: 105px; color: #7897ab; }
.event-analysis-link { min-width: 0; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; font: inherit; line-height: 1.4; overflow-wrap: anywhere; cursor: pointer; }
.event-analysis-link:hover { color: var(--cyan-400); text-decoration: underline; }
.modal-event-list mark { display: grid; place-items: center; height: 24px; border-radius: 4px; color: white; font-size: 13px; font-weight: 800; background: #238ee8; }
.modal-event-list mark.danger { background: #f43047; }
.event-list li,.modal-event-list li { grid-template-columns: 37px minmax(0,1fr) 44px; }
.event-list time,.modal-event-list time { font-size: 13px; line-height: 1.4; white-space: nowrap; }
.event-list .event-notice { display: block; color: #ffd66b; font-size: 13px; }
.map-toolbar .map-north { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; }
.map-north svg { width: 22px; height: 22px; transform: rotate(var(--north-rotation,0deg)); }
.map-north > span { font-size: 10px; line-height: 1; font-weight: 800; }
.object-panel { display: flex; min-height: 0; flex-direction: column; }.object-panel > header { flex: 0 0 44px; }.object-panel > header .close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; }.object-panel > header button:disabled { color: #55778d; cursor: not-allowed; }
.object-empty { display: grid; flex: 1; justify-items: center; align-content: center; padding: 20px; color: #7e9bae; text-align: center; }.object-empty svg { width: 44px; height: 44px; margin-bottom: 14px; fill: none; stroke: #3f86b4; stroke-width: 1.5; }.object-empty strong { color: #d0e0ea; }.object-empty p { font-size: 13px; }
.object-content { display: flex; min-height: 0; flex: 1; flex-direction: column; }.object-title mark.normal, .object-title mark.info { background: #168bba; }.object-title mark.warning { background: #e8930a; }.object-title mark.danger { background: #ff3a50; }.object-tab-content { min-height: 0; flex: 1; overflow: auto; }.object-tab-empty { display: grid; justify-items: center; align-content: center; min-height: 210px; color: #7898ae; text-align: center; }.object-tab-empty strong { margin-top: 9px; color: #dbeaf4; }.object-tab-empty p { font-size: 13px; }.object-actions { flex: 0 0 52px; margin-top: 6px; }.object-actions button:disabled { opacity: .55; cursor: not-allowed; }

/* Placeholder, modal, toast */
.screen-placeholder { position: absolute; z-index: 30; inset: 0; display: grid; justify-items: center; align-content: center; color: #8eabbf; background: radial-gradient(circle at 50% 42%, rgba(14,91,145,.33), transparent 32%), rgba(2,17,29,.96); text-align: center; }.screen-placeholder h2 { margin: 12px 0 5px; color: white; font-size: 25px; }.screen-placeholder p { margin: 0 0 18px; }.screen-placeholder button { height: 39px; padding: 0 18px; border: 1px solid #168fe9; border-radius: 4px; color: white; background: #0d6ec2; }
.status-badge { padding: 4px 8px; border: 1px solid #ffaf19; border-radius: 4px; color: #ffce70; background: rgba(85,55,5,.36); font-size: 13px; }
.modal { position: fixed; z-index: 150; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(0,10,18,.7); backdrop-filter: blur(5px); }.modal-card { width: min(580px, 94vw); max-height: min(700px, 88vh); overflow: hidden; border: 1px solid #2b668c; border-radius: 9px; background: #051d31; box-shadow: 0 24px 60px rgba(0,0,0,.6); }.modal-card > header { display: flex; align-items: center; height: 53px; padding: 0 16px; border-bottom: 1px solid var(--line); }.modal-card h2 { flex: 1; margin: 0; font-size: 16px; }.modal-card header button { display: grid; place-items: center; width: 38px; height: 38px; border: 0; color: #adc5d5; background: transparent; }.modal-card header svg { width: 18px; height: 18px; }.modal-body { max-height: calc(88vh - 116px); overflow: auto; padding: 18px; }.modal-card footer { display: flex; justify-content: flex-end; height: 54px; padding: 8px 16px; border-top: 1px solid var(--line); }.modal-card footer button { min-width: 82px; border: 1px solid #2672a3; border-radius: 4px; background: #0b4a76; }.modal-note { padding: 10px; border-left: 3px solid #ffaf19; color: #c6d8e4; background: rgba(82,55,7,.28); }.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.modal-grid article { padding: 16px; border: 1px solid var(--line); border-radius: 5px; background: #082840; }.modal-grid strong, .modal-grid b { display: block; }.modal-grid b { margin-top: 8px; font-size: 23px; }.modal-preview { width: 100%; border-radius: 6px; }.modal-event-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }.modal-event-list li { display: grid; grid-template-columns: 45px 1fr 45px; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 4px; }.modal-event-list time { text-align: right; }.modal-detail div { display: grid; grid-template-columns: 130px 1fr; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }.modal-detail dt { color: #7898ae; }.modal-detail dd { margin: 0; }
.toast { position: fixed; z-index: 170; left: 50%; bottom: 26px; max-width: calc(100vw - 32px); padding: 10px 14px; border: 1px solid #2b7bab; border-radius: 5px; color: white; background: rgba(4,31,51,.98); box-shadow: 0 12px 26px rgba(0,0,0,.45); transform: translateX(-50%); }
.drawer-backdrop { position: fixed; z-index: 80; inset: var(--header-height) 0 0; background: rgba(0,9,16,.58); backdrop-filter: blur(2px); }

/* Desktop compression */
@media (max-width: 1600px) {
  :root { --left-width: 300px; --right-width: 350px; }
  .global-header { grid-template-columns: var(--left-width) minmax(0,1fr) 360px; }.brand { padding-left: 16px; }.brand strong { font-size: 15px; }.gnb-item { min-width: 98px; padding: 0 9px; font-size: 13px; }.header-tools { gap: 10px; padding-right: 10px; }.header-tools time { font-size: 13px; }
  .service-cards { grid-template-columns: repeat(6, minmax(128px,1fr)) 136px; overflow: hidden; }.service-cards article { grid-template-columns: 44px 1fr; padding: 7px; }.service-icon { width: 37px; height: 37px; }.service-icon svg { width: 21px; height: 21px; }
  .context-panel { padding: 9px; }.status-overview { grid-template-columns: 118px 1fr; }.status-donut { width: 92px; height: 92px; }.object-detail div { grid-template-columns: 88px 1fr; }.range-control { grid-template-columns: minmax(36px,1fr) 32px; }
}

@media (max-width: 1280px) {
  :root { --left-width: 274px; --right-width: 310px; }.global-header { grid-template-columns: var(--left-width) minmax(0,1fr) 292px; }.brand strong { font-size: 13px; }.brand small { display: none; }.brand-mark { width: 41px; height: 41px; }.gnb { overflow-x: auto; scrollbar-width: none; }.gnb-item { min-width: 84px; font-size: 13px; }.gnb-item svg { width: 14px; }.header-tools time { font-size: 13px; }.icon-button { width: 34px; }
  .service-cards { overflow-x: auto; grid-template-columns: repeat(6, 142px) 130px; scrollbar-width: none; }.bottom-panels { height: 196px; }.summary-content { grid-template-columns: 118px 100px minmax(0,1fr); padding: 8px; }.traffic-donut,.coverage-donut { width: 96px; height: 96px; }.donut::after { inset: 13px; }.rank-list { padding-left: 9px; }.context-panel { grid-template-rows: 47% minmax(0,1fr); }.event-list li { grid-template-columns: 37px minmax(0,1fr) 33px; gap: 5px; }.event-list span { font-size: 13px; }.object-actions { grid-template-columns: 1fr; height: auto; overflow: auto; }.object-actions button { min-height: 32px; }
}

/* Tablet drawers */
@media (max-width: 1024px) {
  :root { --header-height: 62px; --left-width: 330px; --right-width: 360px; }
  .global-header { grid-template-columns: 230px minmax(0,1fr) 176px; height: var(--header-height); }.brand { min-width: 0; overflow: hidden; padding-left: 52px; }.brand-mark { width: 36px; height: 36px; }.brand strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.gnb-item { min-width: 74px; min-height: 62px; }.gnb-item span { font-size: 13px; }.header-tools time { display: none; }.notification { margin-left: auto; }
  .mobile-panel-button { position: absolute; top: 10px; z-index: 5; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 5px; color: #d5e7f2; background: #0a3454; }.mobile-panel-button.left { left: 7px; }.mobile-panel-button.right { right: 7px; }.mobile-panel-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; }
  .header-tools { padding-right: 51px; }.dashboard-grid { grid-template-columns: 1fr; height: calc(100dvh - var(--header-height)); }.map-stage { grid-column: 1; }
  .layer-panel, .context-panel { position: fixed; z-index: 100; top: var(--header-height); bottom: 0; height: auto; transition: transform 200ms ease-out; }.layer-panel { left: 0; width: min(86vw, var(--left-width)); transform: translateX(-105%); }.context-panel { right: 0; display: grid; grid-template-rows: 44px minmax(250px,46%) minmax(0,1fr); width: min(92vw, var(--right-width)); transform: translateX(105%); }.left-drawer-open .layer-panel { transform: translateX(0); }.right-drawer-open .context-panel { transform: translateX(0); }.drawer-title { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 13px; border-bottom: 1px solid var(--line); }.drawer-title button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; color: #abc2d1; background: transparent; }.drawer-title svg { width: 17px; height: 17px; }
  .left-tab-panel { height: calc(100% - 97px); }.service-cards { top: 9px; right: 54px; left: 9px; height: 68px; }.map-toolbar { top: 88px; right: 9px; }.bottom-panels { right: 6px; bottom: 7px; left: 6px; height: 178px; overflow-x: auto; grid-template-columns: repeat(2, minmax(430px, 1fr)); scroll-snap-type: x mandatory; }.summary-panel { scroll-snap-align: start; }.summary-panel > header { height: 38px; }.summary-content { height: 139px; }.demo-ribbon { display: none; }
}

@media (max-width: 768px) {
  .global-header { grid-template-columns: 210px minmax(0,1fr) 90px; }.brand { padding-left: 48px; }.brand strong { font-size: 13px; }.gnb { overflow-x: auto; }.gnb-item { min-width: 66px; padding: 0 5px; }.gnb-item svg { display: none; }.header-tools .icon-button:last-child { display: none; }
  .context-panel { top: auto; bottom: 0; width: 100%; height: min(72dvh, 650px); border-top: 1px solid #2574a3; border-left: 0; border-radius: 13px 13px 0 0; transform: translateY(105%); }.right-drawer-open .context-panel { transform: translateY(0); }.context-panel { grid-template-rows: 44px minmax(230px,43%) minmax(0,1fr); }.drawer-backdrop { inset: var(--header-height) 0 0; }
  .service-cards { right: 8px; display: flex; gap: 5px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }.service-cards article { flex: 0 0 142px; scroll-snap-align: start; }.service-cards .region-card { flex-basis: 134px; }
  .map-toolbar { top: 85px; }.bottom-panels { height: 164px; grid-template-columns: repeat(2, minmax(345px, 92vw)); }.summary-content { grid-template-columns: 105px 95px minmax(0,1fr); height: 127px; }.traffic-donut,.coverage-donut { width: 86px; height: 86px; }.donut strong { font-size: 18px; }.rank-list li { min-height: 25px; }
  .map-popup { position: absolute; right: 8px !important; bottom: 174px; left: 8px !important; top: auto !important; width: auto; min-height: 118px; }.map-popup::after { display: none; }
  .region-label { font-size: 13px; }.map-marker > span { display: none; }
}

@media (max-width: 520px) {
  .global-header { grid-template-columns: minmax(0,1fr) 72px; }.brand { padding-left: 50px; }.brand strong { font-size: 13px; }.brand-mark { width: 34px; height: 34px; }.gnb { position: absolute; top: var(--header-height); right: 0; left: 0; z-index: 40; display: flex; height: 43px; border-bottom: 1px solid #17618d; background: rgba(3,24,41,.97); }.gnb-item { flex: 0 0 75px; min-height: 43px; }.gnb-item::after { height: 2px !important; }.header-tools { grid-column: 2; padding-right: 47px; }.dashboard-grid { height: calc(100dvh - var(--header-height)); }.map-stage { padding-top: 43px; }.map-viewport { top: 43px; }.service-cards { top: 51px; }.map-toolbar { top: 128px; }.drawer-backdrop { top: calc(var(--header-height) + 43px); }.layer-panel { top: calc(var(--header-height) + 43px); }
  .bottom-panels { bottom: 5px; height: 154px; grid-template-columns: repeat(2, minmax(340px, 92vw)); }.summary-panel > header { height: 36px; padding: 0 10px; }.summary-panel h2 { font-size: 13px; }.summary-panel > header span { display: none; }.summary-content { height: 117px; grid-template-columns: 92px 82px minmax(0,1fr); padding: 5px; }.chart-legend { gap: 7px; padding-right: 7px; }.chart-legend li { gap: 4px; font-size: 13px; }.traffic-donut,.coverage-donut { width: 78px; height: 78px; }.rank-list h3,.coverage-preview h3 { margin-bottom: 5px; font-size: 13px; }.rank-list ol { gap: 3px; }.rank-list li { min-height: 22px; }.coverage-preview img { height: 76px; }
  .map-popup { bottom: 164px; }.modal { padding: 8px; }.modal-card { width: 100%; max-height: 92dvh; }.modal-grid { grid-template-columns: 1fr; }.demo-ribbon { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ================================================================
   Final desktop-only responsive contract
   Mobile/tablet layouts are intentionally out of scope.
   ================================================================ */
.viewport-frame { overflow: hidden; }
.control-screen { min-width: 0; height: 100vh; }
.global-header { grid-template-columns: var(--brand-width) minmax(0, 1fr) var(--header-tools-width); }
.dashboard-grid { grid-template-columns: var(--left-width) minmax(0, 1fr) var(--right-width); min-width: 0; height: calc(100vh - var(--header-height)); overflow: hidden; }
.dashboard-grid > * { min-height: 0; }
.layer-panel, .context-panel { min-width: 0; min-height: 0; }
.drawer-backdrop, .drawer-title, .mobile-panel-button { display: none !important; }

@media (max-width: 1600px) and (min-width: 1320px) {
  :root { --brand-width: var(--left-width); --header-tools-width: 320px; }
  .global-header { grid-template-columns: var(--brand-width) minmax(0, 1fr) var(--header-tools-width); }
  .service-cards { grid-template-columns: repeat(6, minmax(0, 1fr)) 116px; gap: 4px; overflow: hidden; }
  .service-cards article { grid-template-columns: 34px minmax(0,1fr); padding: 6px; }
  .service-icon { width: 31px; height: 31px; }.service-icon svg { width: 18px; height: 18px; }
  .service-cards strong { font-size: 13px; }.service-cards small { gap: 3px; font-size: 13px; }
  .region-card label { margin-bottom: 4px; }.region-card select { height: 31px; padding-left: 7px; font-size: 13px; }
}

@media (max-width: 1400px) and (min-width: 1320px) {
  :root { --left-width: 280px; --right-width: 320px; --brand-width: 280px; --header-tools-width: 320px; }
  .brand { gap: 9px; padding-left: 14px; }.brand-mark { width: 40px; height: 40px; }.brand strong { font-size: 13px; }.brand small { display: none; }
  .gnb-item { min-width: 88px; padding: 0 7px; font-size: 13px; }.gnb-item svg { width: 14px; height: 14px; }
  .header-tools { gap: 8px; padding-right: 9px; }.header-tools time { margin-right: 4px; font-size: 13px; }
  .context-panel { padding: 8px; }.status-overview { grid-template-columns: 108px 1fr; }.status-donut { width: 86px; height: 86px; }
}

@media (max-height: 800px) and (min-width: 1320px) {
  :root { --header-height: 64px; }
  .gnb-item { min-height: 64px; }
  .service-cards { top: 8px; height: 62px; }.service-cards article { padding-top: 4px; padding-bottom: 4px; }
  .map-toolbar { top: 82px; }
  .bottom-panels { bottom: 8px; height: 178px; }.summary-panel > header { height: 38px; }.summary-content { height: 139px; padding: 7px 9px; grid-template-columns: 108px 92px minmax(0,1fr); }
  .traffic-donut, .coverage-donut { width: 88px; height: 88px; }.donut::after { inset: 12px; }.donut strong { font-size: 18px; }
  .chart-legend { gap: 7px; padding-right: 7px; }.rank-list, .coverage-preview { padding-left: 8px; }.rank-list ol { gap: 3px; }.rank-list li { min-height: 24px; }.coverage-preview img { height: 77px; }
  .context-panel { grid-template-rows: minmax(310px, 47%) minmax(0, 1fr); }.status-panel, .object-panel { overflow: auto; }.status-panel > header, .object-panel > header { height: 38px; }.status-tabs button { height: 30px; }.status-overview { min-height: 112px; }.events-head { height: 38px; }.event-list li { min-height: 26px; }
}

@media (max-width: 1319px) {
  :root { --header-height: 64px; --left-width: 280px; --right-width: 320px; --brand-width: 230px; --header-tools-width: 176px; }
  .global-header { position: relative; grid-template-columns: var(--brand-width) minmax(0, 1fr) var(--header-tools-width); height: var(--header-height); }
  .brand { min-width: 0; gap: 8px; overflow: hidden; padding-left: 13px; }.brand-mark { width: 38px; height: 38px; }.brand strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.brand small { display: none; }
  .gnb { position: static; display: flex; height: auto; overflow: hidden; border: 0; background: transparent; }
  .gnb-item { flex: 1 1 0; min-width: 70px; min-height: 64px; padding: 0 5px; font-size: 13px; }.gnb-item span { font-size: 13px; }.gnb-item svg { display: block; width: 13px; height: 13px; }
  .header-tools { grid-column: auto; gap: 4px; padding-right: 42px; }.header-tools time { display: none; }.icon-button { width: 32px; }.header-tools .icon-button:last-child { display: grid; }
  .dashboard-grid { grid-template-columns: var(--left-width) minmax(0,1fr) var(--right-width); height: calc(100vh - var(--header-height)); overflow: hidden; }
  .layer-panel, .context-panel { position: relative; z-index: 20; top: auto; right: auto; bottom: auto; left: auto; width: auto; height: 100%; transform: none; transition: none; border-radius: 0; }
  .context-panel { display: grid; grid-template-rows: minmax(300px, 47%) minmax(0,1fr); padding: 7px; border-top: 0; border-left: 1px solid #155f8b; }
  .left-tab-panel { height: calc(100% - 53px); }
  .desktop-panel-button { position: fixed; top: 12px; z-index: 85; display: grid; place-items: center; width: 34px; height: 40px; border: 1px solid #28658c; border-radius: 4px; color: #d5e7f2; background: #0a3454; box-shadow: 0 5px 14px rgba(0,0,0,.3); }
  .desktop-panel-button.left { left: 4px; }.desktop-panel-button.right { right: 4px; }.desktop-panel-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; }
  .desktop-left-collapsed { --left-width: 44px; }.desktop-right-collapsed { --right-width: 44px; }
  .desktop-left-collapsed .layer-panel > *, .desktop-right-collapsed .context-panel > * { display: none !important; }
  .desktop-left-collapsed .layer-panel::after, .desktop-right-collapsed .context-panel::after { position: absolute; top: 18px; right: 0; left: 0; color: #6e9bb8; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-align: center; writing-mode: vertical-rl; }
  .desktop-left-collapsed .layer-panel::after { content: "레이어"; }.desktop-right-collapsed .context-panel::after { content: "관제 정보"; }
  .map-stage { grid-column: auto; min-width: 0; padding-top: 0; }
  .map-viewport { top: 0; }
  .service-cards { top: 8px; right: 8px; left: 8px; display: grid; height: 64px; grid-template-columns: repeat(6, 112px) 110px; gap: 4px; overflow-x: auto; overflow-y: hidden; padding-bottom: 3px; scroll-snap-type: none; scrollbar-width: thin; }
  .service-cards article, .service-cards .region-card { flex: none; min-width: 0; padding: 5px; scroll-snap-align: none; }.service-cards article { grid-template-columns: 32px minmax(0,1fr); }.service-icon { width: 29px; height: 29px; }.service-icon svg { width: 17px; height: 17px; }.service-cards strong { font-size: 13px; }.service-cards small { margin-top: 4px; font-size: 13px; }
  .region-card label { margin-bottom: 3px; }.region-card select { height: 29px; padding-left: 6px; font-size: 13px; }
  .map-toolbar { top: 82px; right: 8px; }
  .bottom-panels { right: 6px; bottom: 7px; left: 6px; display: grid; height: 168px; grid-template-columns: repeat(2, minmax(420px,1fr)); gap: 6px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: none; }
  .summary-panel { scroll-snap-align: none; }.summary-panel > header { height: 37px; padding: 0 9px; }.summary-panel h2 { font-size: 13px; }.summary-content { height: 130px; grid-template-columns: 100px 88px minmax(0,1fr); padding: 6px; }.traffic-donut,.coverage-donut { width: 82px; height: 82px; }.donut::after { inset: 11px; }.donut strong { font-size: 17px; }.chart-legend { gap: 6px; padding-right: 6px; }.rank-list,.coverage-preview { padding-left: 7px; }.rank-list ol { gap: 3px; }.rank-list li { min-height: 22px; }.coverage-preview img { height: 70px; }
  .map-popup { position: absolute; width: 232px; min-height: 132px; }.map-popup::after { display: block; }
  .region-label { font-size: 13px; }.map-marker > span { display: block; }
  .demo-ribbon { display: flex; }
}

@media (min-width: 2400px) {
  :root { --header-height: 82px; --left-width: 17.3vw; --right-width: 20.8vw; --brand-width: 17.3vw; --header-tools-width: 22.4vw; }
  body { font-size: 14px; }
  .brand strong { font-size: 21px; }.brand small { font-size: 13px; }.brand-mark { width: 56px; height: 56px; }
  .gnb-item { min-width: 140px; font-size: 15px; }.gnb-item svg { width: 20px; height: 20px; }.header-tools time { font-size: 16px; }
  .panel-tabs { height: 61px; }.panel-tabs button { font-size: 15px; }.left-tab-panel { height: calc(100% - 61px); }.layer-search { height: 54px; }.layer-group > header { min-height: 43px; }.layer-group > header strong { font-size: 15px; }.layer-row { min-height: 33px; }.layer-row b { font-size: 13px; }
  .service-cards { height: 86px; grid-template-columns: repeat(6,minmax(0,1fr)) 175px; }.service-cards article { grid-template-columns: 58px 1fr; }.service-icon { width: 50px; height: 50px; }.service-cards strong { font-size: 14px; }.service-cards small { font-size: 13px; }
  .map-toolbar { top: 180px; transform: scale(1.12); transform-origin: top right; }
  .bottom-panels { height: 260px; }.summary-panel > header { height: 51px; }.summary-panel h2 { font-size: 17px; }.summary-content { height: 208px; grid-template-columns: 175px 145px minmax(0,1fr); }.traffic-donut,.coverage-donut { width: 130px; height: 130px; }.donut strong { font-size: 27px; }
  .context-panel { grid-template-rows: 550px minmax(0,1fr); }.status-panel h2,.object-panel h2 { font-size: 17px; }.status-overview { min-height: 165px; }.status-donut { width: 120px; height: 120px; }.event-list li { min-height: 35px; }
}

@media (min-width: 3200px) {
  :root { --header-height: 96px; --left-width: 17.3vw; --right-width: 20.8vw; --brand-width: 17.3vw; --header-tools-width: 22.4vw; }
  body { font-size: 16px; }
  .brand strong { font-size: 24px; }.brand-mark { width: 64px; height: 64px; }.gnb-item { min-width: 164px; font-size: 17px; }.gnb-item svg { width: 23px; height: 23px; }.header-tools time { font-size: 18px; }
  .panel-tabs { height: 70px; }.panel-tabs button { font-size: 17px; }.left-tab-panel { height: calc(100% - 70px); }.layer-search { height: 62px; }.layer-group > header { min-height: 50px; }.layer-group > header strong { font-size: 17px; }.layer-row { min-height: 39px; }.layer-row b { font-size: 14px; }
  .service-cards { top: 16px; height: 100px; grid-template-columns: repeat(6,minmax(0,1fr)) 205px; gap: 7px; }.service-cards article { grid-template-columns: 66px 1fr; padding: 11px; }.service-icon { width: 58px; height: 58px; }.service-cards strong { font-size: 16px; }.service-cards small { font-size: 13px; }
  .map-toolbar { top: 210px; transform: scale(1.3); }
  .bottom-panels { right: 14px; bottom: 20px; left: 14px; height: 310px; gap: 12px; }.summary-panel > header { height: 60px; }.summary-panel h2 { font-size: 20px; }.summary-content { height: 249px; grid-template-columns: 205px 175px minmax(0,1fr); }.traffic-donut,.coverage-donut { width: 154px; height: 154px; }.donut strong { font-size: 32px; }
  .context-panel { grid-template-rows: 650px minmax(0,1fr); gap: 14px; padding: 16px; }.status-panel h2,.object-panel h2 { font-size: 19px; }.status-tabs button { height: 44px; font-size: 13px; }.status-overview { min-height: 190px; }.status-donut { width: 142px; height: 142px; }.event-list li { min-height: 42px; }.event-list span { font-size: 13px; }
}

/* RSU real-source integration.  The approved CTRL-00 shell and map proportions
   are retained; only the task-specific panel bodies are switched. */
.rsu-analysis-panel { min-height: 0; color: var(--text); background: var(--panel-bg); }
.show-rsu-analysis .layer-panel > :not(.drawer-title):not(#rsu-analysis-left),
.show-rsu-analysis .context-panel > :not(.drawer-title):not(#rsu-analysis-right) { display: none !important; }
.show-rsu-analysis #rsu-analysis-left,
.show-rsu-analysis #rsu-analysis-right,
.show-rsu-analysis #rsu-map-legend:not([hidden]) { display: flex !important; }
.show-rsu-analysis .bottom-panels { display: none; }
.show-rsu-analysis .context-panel { display: block; padding: 10px; }

.show-analysis-results .layer-panel > :not(.drawer-title):not(#analysis-results-left),
.show-analysis-results .context-panel > :not(.drawer-title):not(#analysis-results-right) { display: none !important; }
.show-analysis-results #analysis-results-left,
.show-analysis-results #analysis-results-right { display: flex !important; }
.show-analysis-results .bottom-panels { display: none; }
.show-analysis-results .context-panel { display: block; padding: 10px; }
.analysis-results-panel { height: 100%; min-height: 0; flex-direction: column; gap: 9px; color: var(--text); overflow: hidden; }
.analysis-results-panel > header { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #041d30; }
.analysis-results-panel > header small { display: block; margin-bottom: 3px; color: var(--cyan-400); font-size: 13px; font-weight: 800; letter-spacing: .14em; }
.analysis-results-panel > header h2 { margin: 0; font-size: 14px; }
.analysis-results-panel > header > span { padding: 4px 7px; border: 1px solid #1786c3; border-radius: 3px; color: #8edcff; font-size: 13px; }
.results-overview { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; padding: 0 10px; }
.results-overview span { display: grid; gap: 2px; min-height: 45px; place-content: center; border: 1px solid var(--line-soft); border-radius: 3px; color: var(--muted); text-align: center; background: #051c2e; font-size: 13px; }
.results-overview strong { color: var(--text); font-size: 14px; }
.results-filter { display: grid; grid-template-columns: 1fr 100px; gap: 5px; padding: 0 10px; }
.results-filter input,.results-filter select { min-width: 0; height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 3px; color: var(--text); background: #031726; font-size: 13px; }
.results-export-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 0 10px; }
.results-export-actions a { display: grid; place-items: center; min-height: 30px; border: 1px solid #168bd0; border-radius: 3px; color: #a8e5ff; background: #06304a; font-size: 13px; text-decoration: none; }
.analysis-results-list { display: grid; gap: 5px; min-height: 0; margin: 0; padding: 0 10px 12px; overflow: auto; list-style: none; }
.analysis-results-list button { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 7px; width: 100%; min-height: 46px; padding: 6px 8px; border: 1px solid var(--line-soft); border-radius: 3px; color: var(--text); text-align: left; background: #051c2e; }
.analysis-results-list button.active { border-color: var(--cyan-400); background: #07304a; }
.analysis-results-list b { color: var(--cyan-400); font-size: 13px; }
.analysis-results-list span { min-width: 0; }
.analysis-results-list strong { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.analysis-results-list small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.analysis-results-list em { color: var(--amber-400); font-size: 13px; font-style: normal; }
.analysis-results-detail { overflow: hidden; }
.analysis-results-detail > :not(.analysis-results-detail-content) { flex-shrink: 0; }
.results-map-layers,.analysis-results-detail-content { margin: 0 2px; padding: 10px; border: 1px solid var(--line-soft); border-radius: 4px; background: #051c2e; }
.results-map-layers h3,.analysis-results-detail-content h3 { margin: 0 0 8px; font-size: 13px; }
.results-map-layers { display: grid; grid-template-columns: repeat(2,1fr); gap: 6px; }
.results-map-layers h3 { grid-column: 1/-1; }
.results-map-layers label { color: var(--muted); font-size: 13px; }
.analysis-results-detail-content { flex: 1; min-height: 0; overflow-y: auto; }
.analysis-results-detail-content p,.analysis-results-detail-content li,.analysis-results-detail-content dt,.analysis-results-detail-content dd { color: var(--muted); font-size: 13px; line-height: 1.55; }
.analysis-results-detail-content .results-warning { padding: 8px; border: 1px solid #bd8b24; border-radius: 3px; color: #ffd66b; background: #2b210d; }
.analysis-results-detail-content ul { margin: 0; padding-left: 17px; }
.analysis-results-detail-content dl { display: grid; grid-template-columns: 92px 1fr; gap: 5px 8px; margin: 0; }
.analysis-results-detail-content dt { color: #7fa1b8; }
.analysis-results-detail-content dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.analysis-results-detail-content table { width: 100%; border-collapse: collapse; font-size: 13px; }
.analysis-results-detail-content th,.analysis-results-detail-content td { padding: 5px 3px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.analysis-results-detail-content th { color: #7fa1b8; }.analysis-results-detail-content td { color: var(--text); }
.results-compare-controls,.results-screen-actions { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; margin: 0 2px; }
.results-screen-actions { grid-template-columns: 1fr 1fr; }
.results-compare-controls button,.results-screen-actions button { min-height: 31px; border: 1px solid var(--line); border-radius: 3px; color: var(--text); background: #06243a; font-size: 13px; }
.results-compare-controls button.active { border-color: var(--cyan-400); color: var(--cyan-400); background: #07304a; }
.results-quality-note { margin: 0 2px; padding: 8px; border: 1px solid #6f5211; border-radius: 3px; color: #d7b85c; background: rgba(90,58,0,.18); font-size: 13px; line-height: 1.45; }
.rsu-result-detail-link { position: absolute; z-index: 18; right: 18px; bottom: 235px; min-height: 34px; padding: 0 13px; border: 1px solid var(--cyan-400); border-radius: 3px; color: white; background: rgba(5,45,72,.94); box-shadow: 0 4px 14px rgba(0,0,0,.32); font-size: 13px; }
.show-analysis-results .rsu-result-detail-link { display: none; }
.rsu-analysis-panel { height: 100%; flex-direction: column; overflow: hidden; }
.rsu-analysis-panel > header { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #05253c; }
.rsu-analysis-panel header small { display: block; color: var(--cyan-400); font-size: 13px; font-weight: 800; letter-spacing: .13em; }
.rsu-analysis-panel header h2 { margin: 3px 0 0; font-size: 15px; }
.rsu-analysis-panel header > span { padding: 4px 7px; border: 1px solid #2179a8; border-radius: 3px; color: #8fdcff; font-size: 13px; }
.rsu-search { display: flex; align-items: center; gap: 8px; height: 42px; margin: 10px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; background: #021522; }
.rsu-search svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); }
.rsu-search input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 13px; }
.rsu-source-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; padding: 0 10px 9px; }
.rsu-source-summary span { padding: 7px 5px; border: 1px solid var(--line-soft); border-radius: 4px; color: var(--muted); font-size: 13px; text-align: center; background: #06243a; }
.rsu-source-summary strong { display: block; margin-top: 2px; color: var(--text); font-size: 14px; }
.rsu-source-summary span:last-child { grid-column: 1 / -1; }
.rsu-source-summary span:last-child strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.rsu-list { min-height: 0; margin: 0; padding: 0 10px 16px; overflow-y: auto; list-style: none; }
.rsu-list button { display: grid; width: 100%; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; min-height: 54px; margin-bottom: 5px; padding: 8px; border: 1px solid var(--line-soft); border-radius: 4px; color: var(--text); text-align: left; background: #062036; }
.rsu-list button:hover,.rsu-list button.active { border-color: var(--cyan-400); background: #08324e; }
.rsu-list .rsu-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber-400); box-shadow: 0 0 7px currentColor; }
.rsu-list .use-y .rsu-dot { color: var(--teal-400); background: var(--teal-400); }
.rsu-list b { display: block; font-size: 13px; }.rsu-list small { color: var(--muted); font-size: 13px; }.rsu-list em { color: #7fa9c3; font-size: 13px; font-style: normal; }
.rsu-analysis-detail { gap: 9px; overflow: hidden; }
.rsu-analysis-scroll { min-height: 0; flex: 1; overflow-y: auto; }
.rsu-execution-conditions { padding: 0 12px; }
.rsu-execution-actions { flex-shrink: 0; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--panel-bg); }
.rsu-execution-actions .rsu-primary { width: 100%; }
.rsu-execution-actions .rsu-analysis-preview { margin: 0 0 6px; }
.rsu-selection-empty { margin: 12px; padding: 22px 10px; border: 1px dashed var(--line); color: var(--muted); font-size: 13px; text-align: center; }
#rsu-selection-content { padding: 0 12px; }
.rsu-detail-fields { margin: 0; border: 1px solid var(--line-soft); }
.rsu-detail-fields div { display: grid; grid-template-columns: 42% 58%; min-height: 28px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }.rsu-detail-fields div:last-child { border-bottom: 0; }
.rsu-detail-fields dt,.rsu-detail-fields dd { margin: 0; padding: 7px; }.rsu-detail-fields dt { color: var(--muted); background: #06253c; }.rsu-detail-fields dd { overflow-wrap: anywhere; }
#rsu-analysis-parameters { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; margin: 10px 0; padding: 9px; border: 1px solid var(--line); }
#rsu-analysis-parameters legend { padding: 0 5px; color: var(--cyan-400); font-size: 13px; }
#rsu-analysis-parameters label { color: var(--muted); font-size: 13px; }
#rsu-analysis-parameters input { width: 100%; height: 28px; margin-top: 3px; padding: 0 6px; border: 1px solid var(--line); border-radius: 3px; color: var(--text); background: #031726; }
.rsu-primary { width: 100%; min-height: 38px; border: 1px solid #24bde9; border-radius: 4px; color: white; font-size: 13px; font-weight: 800; background: linear-gradient(135deg,#087fe2,#08a8c9); }
.rsu-primary:disabled { opacity: .45; cursor: wait; }
.rsu-limit-note { color: #87a4b7; font-size: 13px; line-height: 1.5; }
.rsu-result-layers,.rsu-analysis-result { margin: 0 12px; padding: 10px; border: 1px solid var(--line-soft); border-radius: 4px; background: #051c2e; }
.rsu-result-layers h3,.rsu-analysis-result h3 { margin: 0 0 8px; color: var(--text); font-size: 13px; }
#rsu-prototype-layers { display: grid; grid-template-columns: repeat(2,1fr); gap: 5px; }
#rsu-prototype-layers label { display: flex; gap: 5px; align-items: center; color: var(--muted); font-size: 13px; }
#rsu-prototype-layers .rsu-layer-control { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr 66px; }
#rsu-prototype-layers .rsu-layer-control input[type="range"] { width: 66px; accent-color: var(--cyan-400); }
.rsu-analysis-result p,.rsu-analysis-result li { color: var(--muted); font-size: 13px; line-height: 1.5; }.rsu-analysis-result ul { margin: 0; padding-left: 16px; }
.rsu-analysis-result h4 { margin: 9px 0 5px; color: var(--cyan-400); font-size: 13px; }
.rsu-shadow-candidate-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.rsu-shadow-candidate-list button { width: 100%; min-height: 27px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 3px; color: var(--text); text-align: left; background: #06243a; font-size: 13px; }
.rsu-batch-toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 0 10px 8px; }
.rsu-batch-toolbar select,.rsu-batch-toolbar button,.rsu-batch-actions button,.rsu-candidate-compare button { min-height: 29px; border: 1px solid var(--line); border-radius: 3px; color: var(--text); background: #06243a; font-size: 13px; }
.rsu-batch-toolbar span { grid-column: 1 / -1; color: var(--cyan-400); font-size: 13px; text-align: right; }
.rsu-batch-toolbar small { grid-column: 1 / -1; color: #8faabd; font-size: 13px; line-height: 1.4; }
.rsu-batch-toolbar #rsu-run-selected { grid-column: 1 / -1; border-color: var(--cyan-400); color: #dff8ff; background: #073653; font-weight: 800; }
.rsu-batch-toolbar button:disabled { opacity: .45; cursor: not-allowed; }
.rsu-candidate-compare button:disabled { opacity: .45; cursor: not-allowed; }
.rsu-list li { position: relative; }
.rsu-list li.selected-for-analysis > button { border-color: #3b8cff; box-shadow: inset 3px 0 #3b8cff; }
.rsu-list li.analysis-unavailable > button { opacity: .72; }
.rsu-list button { position: relative; padding-left: 31px; }
.rsu-list input[data-rsu-batch-select] { position: absolute; z-index: 2; top: 18px; left: 8px; width: 17px; height: 17px; accent-color: var(--cyan-400); cursor: pointer; }
.rsu-list input[data-rsu-batch-select]:disabled { cursor: not-allowed; }
.rsu-list button:disabled { cursor: not-allowed; }
.rsu-batch-actions { display: grid; grid-template-columns: repeat(2,1fr); gap: 6px; margin-top: 7px; }
.rsu-batch-actions button { border-color: #2179a8; color: #b9e9ff; }
.rsu-radius-toggle { grid-column: 1 / -1; display: flex; align-items: center; gap: 7px; min-height: 30px; }
.rsu-radius-toggle input { width: 17px !important; height: 17px !important; margin: 0 !important; accent-color: #b678ff; }
.rsu-analysis-preview { margin: 7px 0; padding: 8px 10px; border: 1px solid rgba(182,120,255,.42); border-radius: 4px; color: #dcc6ff; background: rgba(89,48,128,.18); font-size: 13px; }
.rsu-candidate-review,.rsu-candidate-compare { margin: 0 12px; padding: 10px; border: 1px solid var(--line-soft); border-radius: 4px; background: #051c2e; }
.rsu-candidate-review h3,.rsu-candidate-compare h3 { margin: 0 0 7px; font-size: 13px; }
.rsu-candidate-review p { margin: 0 0 7px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.rsu-candidate-review ol { display: grid; gap: 5px; margin: 0 0 7px; padding: 0; list-style: none; }
.rsu-candidate-review li { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 5px; padding: 5px; border: 1px solid var(--line); border-radius: 3px; background: #06243a; }
.rsu-candidate-review li.active { border-color: var(--cyan-400); background: #07304a; }
.rsu-candidate-review li > button { padding: 0; border: 0; color: var(--text); text-align: left; background: transparent; font-size: 13px; }
.rsu-candidate-review li > button small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.rsu-candidate-review li em { color: var(--amber-400); font-size: 13px; font-style: normal; }
.rsu-candidate-location { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.rsu-candidate-location > button { flex: none; padding: 5px 8px; border: 1px solid var(--line); border-radius: 3px; color: var(--text); background: #06243a; font-size: 12px; }
.rsu-candidate-review > button { width: 100%; min-height: 29px; border: 1px solid var(--line); border-radius: 3px; color: var(--text); background: #06243a; font-size: 13px; }
.rsu-candidate-review small { display: block; margin-top: 6px; color: #8ca5b6; font-size: 13px; }
.rsu-candidate-compare p { margin: 0 0 7px; color: var(--muted); font-size: 13px; }
.rsu-candidate-compare > div { display: grid; grid-template-columns: repeat(2,1fr); gap: 5px; }
.rsu-candidate-compare .rsu-compare-view-controls { grid-template-columns: repeat(3,1fr); margin-top: 5px; }
.rsu-compare-view-controls button.active { border-color: var(--cyan-400); color: var(--cyan-400); background: #07304a; }
.rsu-candidate-compare small { display: block; margin-top: 6px; color: #8ca5b6; font-size: 13px; }
.rsu-candidate-marker { color: var(--amber-400); }
.rsu-map-legend { position: absolute; z-index: 8; right: 14px; bottom: 16px; display: none; flex-direction: column; gap: 7px; width: 202px; padding: 11px; border: 1px solid var(--line); border-radius: 5px; color: var(--text); background: rgba(3,22,38,.94); box-shadow: var(--panel-shadow); }
.rsu-map-legend strong { font-size: 13px; }.rsu-map-legend span { color: var(--muted); font-size: 13px; }.rsu-map-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; }.rsu-map-legend .use-y { background: var(--teal-400); }.rsu-map-legend .use-n { background: var(--amber-400); }.rsu-map-legend em { color: #7899ae; font-size: 13px; font-style: normal; }
.rsu-map-popup { position: absolute; z-index: 15; width: 210px; padding: 11px 28px 11px 12px; border: 1px solid var(--cyan-400); border-radius: 5px; color: var(--text); background: rgba(3,24,40,.96); box-shadow: 0 8px 22px rgba(0,0,0,.45); pointer-events: auto; transform: translate(14px,-108%); }
.rsu-map-popup button { position: absolute; top: 5px; right: 7px; border: 0; color: var(--muted); background: transparent; }.rsu-map-popup small,.rsu-map-popup strong,.rsu-map-popup span { display: block; }.rsu-map-popup small { color: var(--cyan-400); font-size: 13px; }.rsu-map-popup strong { margin: 4px 0; font-size: 13px; }.rsu-map-popup span { color: var(--muted); font-size: 13px; }

/* The former map-top service cards duplicated the layer panel and obscured the
   Cesium scene. Region navigation now belongs to the global header. */
.header-region-control { display: flex; align-items: center; gap: 7px; min-width: 0; }
.header-region-control span { color: #8eabbf; font-size: 13px; font-weight: 800; white-space: nowrap; }
.header-region-control select { width: 122px; height: 34px; padding: 0 24px 0 9px; border: 1px solid #306486; border-radius: 4px; outline: 0; color: #fff; background: #0b3351; font-size: 13px; font-weight: 700; }
.header-region-control select:focus-visible { border-color: var(--cyan-400); box-shadow: 0 0 0 2px rgba(24,200,255,.2); }
.header-tools { gap: 10px; }
.header-tools time { margin-right: 0; font-size: 13px; }
.map-toolbar { top: 16px; }


@media (max-width: 1500px) {
  .header-region-control span { display: none; }
  .header-region-control select { width: 120px; }
}

@media (max-width: 1319px) {
  .header-region-control { display: none; }
  .map-toolbar { top: 14px; }

}

/* RSU analysis usability: keep the CTRL-00 shell while making the workflow readable. */
.show-rsu-analysis .rsu-analysis-panel { font-size: 13px; line-height: 1.45; }
.show-rsu-analysis .rsu-analysis-panel > header { min-height: 66px; padding: 11px 13px; }
.show-rsu-analysis .rsu-analysis-panel header small { max-width: 250px; color: #9bdfff; font-size: 13px; font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.show-rsu-analysis .rsu-analysis-panel header h2 { margin-top: 2px; font-size: 17px; }
.show-rsu-analysis .rsu-analysis-panel header > span { font-size: 13px; white-space: nowrap; }
.show-rsu-analysis .rsu-search { height: 44px; }
.show-rsu-analysis .rsu-search input { font-size: 13px; }
.show-rsu-analysis .rsu-source-summary { grid-template-columns: repeat(3,1fr); gap: 6px; }
.show-rsu-analysis .rsu-source-summary span { padding: 7px 3px; color: #b5cad8; font-size: 13px; }
.show-rsu-analysis .rsu-source-summary strong { font-size: 16px; }
.show-rsu-analysis .rsu-source-summary span:last-child { grid-column: auto; }
.show-rsu-analysis .rsu-source-summary span:last-child strong { font-size: 16px; }
.show-rsu-analysis .rsu-batch-toolbar select,
.show-rsu-analysis .rsu-batch-toolbar button,
.show-rsu-analysis .rsu-batch-actions button,
.show-rsu-analysis .rsu-candidate-compare button { min-height: 34px; font-size: 13px; }
.show-rsu-analysis .rsu-batch-toolbar span { font-size: 13px; }
.show-rsu-analysis .rsu-batch-toolbar small { font-size: 13px; }
.show-rsu-analysis .rsu-list button { min-height: 64px; padding-top: 9px; padding-bottom: 9px; }
.show-rsu-analysis .rsu-list b { font-size: 14px; }
.show-rsu-analysis .rsu-list small { display: -webkit-box; margin-top: 3px; overflow: hidden; color: #abc2d2; font-size: 13px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.show-rsu-analysis .rsu-list em { font-size: 13px; }
.show-rsu-analysis .rsu-list input[data-rsu-batch-select] { top: 23px; }
.show-rsu-analysis .rsu-selection-empty { font-size: 13px; }
.show-rsu-analysis #rsu-selection-content { padding: 0 12px; }
.rsu-card-title { margin: 2px 0 7px; font-size: 15px; }
.show-rsu-analysis .rsu-detail-fields div { min-height: 35px; font-size: 13px; }
.show-rsu-analysis .rsu-detail-fields dt,
.show-rsu-analysis .rsu-detail-fields dd { padding: 8px; }
.rsu-tech-details,.rsu-help,#rsu-prototype-layers > details,.rsu-analysis-result details { border: 1px solid var(--line-soft); border-radius: 4px; background: #041a2b; }
.rsu-tech-details { margin-top: 8px; }
.rsu-tech-details summary,.rsu-help summary,#rsu-prototype-layers summary,.rsu-analysis-result summary { padding: 8px 10px; color: #a9dff4; font-size: 13px; font-weight: 700; cursor: pointer; }
.rsu-tech-details[open] summary,.rsu-help[open] summary,#rsu-prototype-layers details[open] summary { border-bottom: 1px solid var(--line-soft); }
.rsu-help { margin: 0 12px; }
.rsu-help ol { margin: 0; padding: 9px 12px 10px 30px; color: #b6cbd9; font-size: 13px; line-height: 1.55; }
.show-rsu-analysis #rsu-analysis-parameters { gap: 8px; padding: 10px; }
.show-rsu-analysis #rsu-analysis-parameters legend { font-size: 14px; font-weight: 800; }
.show-rsu-analysis #rsu-analysis-parameters label { color: #b5cad8; font-size: 13px; }
.show-rsu-analysis #rsu-analysis-parameters label > span { color: #7898ac; }
.show-rsu-analysis #rsu-analysis-parameters input { height: 34px; font-size: 13px; }
.show-rsu-analysis #rsu-analysis-parameters p { grid-column: 1/-1; margin: 0; padding: 7px; border-radius: 3px; color: #e5c980; background: rgba(117,77,0,.18); font-size: 13px; line-height: 1.45; }
.show-rsu-analysis .rsu-primary { min-height: 46px; font-size: 14px; box-shadow: 0 0 18px rgba(24,200,255,.16); }
.show-rsu-analysis .rsu-limit-note { color: #a7bbc9; font-size: 13px; }
.show-rsu-analysis .rsu-result-layers,
.show-rsu-analysis .rsu-analysis-result,
.show-rsu-analysis .rsu-candidate-review,
.show-rsu-analysis .rsu-candidate-compare { padding: 11px; }
.show-rsu-analysis .rsu-result-layers h3,
.show-rsu-analysis .rsu-analysis-result h3,
.show-rsu-analysis .rsu-candidate-review h3,
.show-rsu-analysis .rsu-candidate-compare h3 { font-size: 15px; }
.show-rsu-analysis .rsu-analysis-result p,
.show-rsu-analysis .rsu-analysis-result li,
.show-rsu-analysis .rsu-candidate-review p,
.show-rsu-analysis .rsu-candidate-compare p { font-size: 13px; line-height: 1.5; }
.rsu-result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 12px; }
.rsu-result-actions button { min-height: 38px; border: 1px solid #2179a8; border-radius: 4px; color: #c9edff; background: #06304a; font-size: 13px; font-weight: 700; }
#rsu-prototype-layers { display: block; }
.rsu-layer-primary { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; margin-bottom: 7px; }
#rsu-prototype-layers label { min-height: 30px; color: #b7ccda; font-size: 13px; }
#rsu-prototype-layers > details > div { display: grid; grid-template-columns: repeat(2,1fr); gap: 6px; padding: 8px; }
#rsu-prototype-layers .rsu-layer-control { grid-template-columns: auto 1fr 76px; }
.show-rsu-analysis .rsu-candidate-review li > button { font-size: 13px; }
.show-rsu-analysis .rsu-candidate-review li > button small,
.show-rsu-analysis .rsu-candidate-review li em,
.show-rsu-analysis .rsu-candidate-review small,
.show-rsu-analysis .rsu-candidate-compare small { font-size: 13px; line-height: 1.45; }




.rsu-map-legend { width: 220px; padding: 0; }
.rsu-map-legend details { width: 100%; }
.rsu-map-legend summary { padding: 10px; color: #e7f4fc; font-size: 13px; font-weight: 800; cursor: pointer; }
.rsu-map-legend details > div { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 0 10px 8px; }
.rsu-map-legend span { font-size: 13px; }
.rsu-map-legend em { display: block; padding: 0 10px 10px; font-size: 13px; line-height: 1.4; }
.rsu-map-legend .visible { background: var(--teal-400); }
.rsu-map-legend .blocked { background: var(--red-400); }
.rsu-map-legend .unknown { background: var(--lavender-400); }
.rsu-map-legend .candidate { background: var(--amber-400); }
.show-rsu-analysis .rsu-map-popup small { font-size: 13px; }
.show-rsu-analysis .rsu-map-popup strong { font-size: 14px; }
.show-rsu-analysis .rsu-map-popup span { font-size: 13px; }

@media (max-width: 1500px) {
  .show-rsu-analysis .rsu-analysis-panel { font-size: 13px; }
  .show-rsu-analysis .rsu-analysis-panel > header { min-height: 58px; padding: 8px 10px; }
  .show-rsu-analysis .rsu-analysis-panel header small { font-size: 13px; }
  .show-rsu-analysis .rsu-analysis-panel header h2 { font-size: 16px; }
  .show-rsu-analysis #rsu-selection-content { padding: 0 8px; }
  .show-rsu-analysis .rsu-result-layers,
  .show-rsu-analysis .rsu-analysis-result,
  .show-rsu-analysis .rsu-candidate-review,
  .show-rsu-analysis .rsu-candidate-compare,
  .rsu-result-actions,.rsu-help { margin-right: 8px; margin-left: 8px; }
}

/* Shared RSU result semantics: the same CSS variables are supplied by RSU_DISPLAY to map, legend and layer controls. */
.rsu-map-legend:not([hidden]) { display: flex; }
.rsu-map-legend { right: 14px; bottom: 18px; width: 286px; max-height: min(460px,70vh); overflow: auto; }
.rsu-map-legend details > div { display: grid; grid-template-columns: 1fr; gap: 0; padding: 0 10px 8px; }
.rsu-map-legend span { display: grid; grid-template-columns: 22px 1fr; align-items: center; padding: 6px 0; border-top: 1px solid rgba(96,151,184,.14); color: #d7e8f2; font-size: 13px; }
.rsu-map-legend span b { font-size: 13px; }
.rsu-map-legend span small { grid-column: 2; margin-top: 2px; color: #89a5b8; font-size: 13px; line-height: 1.35; }
.rsu-map-legend.compact { width: 230px; }
.rsu-map-legend.compact span small { display: none; }
.rsu-map-legend.compact details > div { grid-template-columns: 1fr; }
.legend-symbol,.layer-legend-icon,[data-rsu-style] { --legend-color:#8fa5b5; display: inline-block; width: 15px; height: 10px; margin-right: 6px; border: 2px solid var(--legend-color); border-radius: 2px; background: color-mix(in srgb,var(--legend-color) 34%,transparent); vertical-align: middle; }
.legend-symbol.line,.layer-legend-icon.line,.legend-symbol.line-dashed,.layer-legend-icon.line-dashed,.legend-symbol.line-dotted,.layer-legend-icon.line-dotted { height: 0; border-width: 2px 0 0; border-radius: 0; background: none; }
.legend-symbol.line-dashed,.layer-legend-icon.line-dashed { border-top-style: dashed; }
.legend-symbol.line-dotted,.layer-legend-icon.line-dotted { border-top-style: dotted; }
.legend-symbol.area-striped,.layer-legend-icon.area-striped { background: repeating-linear-gradient(135deg,color-mix(in srgb,var(--legend-color) 50%,transparent) 0 3px,transparent 3px 6px); }
.legend-symbol.area-outline,.layer-legend-icon.area-outline { background: transparent; }
.legend-symbol.point,.layer-legend-icon.point { width: 10px; height: 10px; border-radius: 50%; background: var(--legend-color); }
.layer-row b { display: flex; align-items: center; }
.layer-legend-icon { flex: 0 0 auto; margin-right: 5px; }
.results-map-layers label { display: flex; align-items: center; gap: 4px; }
.rsu-map-popup { width: 292px; }
.rsu-popup-details { display: grid; grid-template-columns: 78px 1fr; gap: 4px 8px; margin: 9px 0 0; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.rsu-popup-details div { display: contents; }
.rsu-popup-details dt,.rsu-popup-details dd { margin: 0; font-size: 13px; line-height: 1.4; }
.rsu-popup-details dt { color: #7fa1b8; }.rsu-popup-details dd { color: #dcebf4; }
.rsu-help p { margin: 0; padding: 0 12px 10px; color: #9fb8c8; font-size: 13px; line-height: 1.5; }

.show-analysis-results .analysis-results-panel { font-size: 13px; line-height: 1.45; }
.show-analysis-results .analysis-results-panel > header small { font-size: 13px; letter-spacing: .04em; }
.show-analysis-results .analysis-results-panel > header h2 { font-size: 17px; }
.show-analysis-results .analysis-results-panel > header > span { font-size: 13px; }
.show-analysis-results .results-overview span { font-size: 13px; }.show-analysis-results .results-overview strong { font-size: 16px; }
.show-analysis-results .results-filter input,.show-analysis-results .results-filter select,.show-analysis-results .results-export-actions a { min-height: 36px; font-size: 13px; }
.show-analysis-results .analysis-results-list button { min-height: 62px; }.show-analysis-results .analysis-results-list b,.show-analysis-results .analysis-results-list strong { font-size: 13px; }.show-analysis-results .analysis-results-list small,.show-analysis-results .analysis-results-list em { font-size: 13px; }
.show-analysis-results .results-map-layers h3,.show-analysis-results .analysis-results-detail-content h3 { font-size: 15px; }
.show-analysis-results .results-map-layers label,.show-analysis-results .analysis-results-detail-content p,.show-analysis-results .analysis-results-detail-content li,.show-analysis-results .analysis-results-detail-content dt,.show-analysis-results .analysis-results-detail-content dd { font-size: 13px; }
.show-analysis-results .analysis-results-detail-content table { font-size: 13px; }
.show-analysis-results .results-compare-controls button,.show-analysis-results .results-screen-actions button { min-height: 38px; font-size: 13px; }
.show-analysis-results .results-quality-note { font-size: 13px; }

@media (max-width: 1500px) {
  .rsu-map-legend { right: 10px; bottom: 12px; max-height: 58vh; }
  .show-analysis-results .analysis-results-panel { font-size: 13px; }
  .show-analysis-results .analysis-results-detail-content p,.show-analysis-results .analysis-results-detail-content li,.show-analysis-results .analysis-results-detail-content dt,.show-analysis-results .analysis-results-detail-content dd { font-size: 14px; }
}

/* UX-004: one readable type floor across control, RSU and result screens. */
#dt-app { font-size: var(--font-ui); }
#dt-app :is(button,input,select,textarea,label,p,li,dt,dd,summary,th,td) { font-size: var(--font-ui); }
#dt-app :is(small,time,em,mark) { font-size: var(--font-user-min); }
#dt-app :is(h2,h3) { font-size: var(--font-heading); }
#dt-app :is(button,select,input[type="text"],input[type="search"],input[type="number"]) { min-height: 34px; }
#dt-app :is(.muted,.rsu-limit-note,.results-quality-note) { color: #b8ccd9; }

/* Short legend labels stay visible; optional help holds the longer meaning. */
.rsu-map-legend { width: 264px; background: rgba(2,18,31,.97); border-color: #2d6f98; }
.rsu-map-legend .legend-main > summary { min-height: 38px; padding: 9px 11px; font-size: 14px; }
.rsu-map-legend .legend-main > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px 10px; padding: 0 11px 9px; }
.rsu-map-legend .legend-main > div > span { display: grid; grid-template-columns: 22px minmax(0,1fr); min-height: 32px; padding: 5px 0; border-top: 1px solid rgba(96,151,184,.18); color: #f1f8fc; }
.rsu-map-legend .legend-main > div > span b { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.rsu-map-legend .legend-help { width: auto; margin: 0 11px 8px; border-top: 1px solid var(--line); }
.rsu-map-legend .legend-help > summary { min-height: 34px; padding: 8px 0; color: #a9dff4; font-size: 13px; }
.rsu-map-legend .legend-help > div { display: block; padding: 0 0 7px; }
.rsu-map-legend .legend-help p { display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 7px; margin: 0; padding: 4px 0; color: #b9cdd9; font-size: 13px; line-height: 1.35; }
.rsu-map-legend .legend-help p b { color: #edf8fd; font-size: 13px; }
.rsu-map-legend .legend-help p span { display: block; padding: 0; border: 0; color: #b9cdd9; font-size: 13px; }
.rsu-map-legend .legend-main > em { padding: 0 11px 10px; color: #ffd985; font-size: 13px; line-height: 1.4; }
.legend-symbol,.layer-legend-icon,[data-rsu-style] { width: 18px; height: 12px; border-width: 3px; }
.legend-symbol.line,.layer-legend-icon.line,.legend-symbol.line-dashed,.layer-legend-icon.line-dashed,.legend-symbol.line-dotted,.layer-legend-icon.line-dotted { border-width: 3px 0 0; }

@media (max-width: 1400px) and (min-width: 1320px) {
  .gnb-item { min-width: 92px; padding: 0 6px; }
  .rsu-map-legend { width: 250px; max-height: 54vh; }
  .rsu-map-legend .legend-main > div { grid-template-columns: 1fr 1fr; gap: 3px 8px; }
}

/* UX-005: stable desktop header, unobstructed map and one readable control row per result layer. */
.header-tools {
  display: grid;
  grid-template-columns: minmax(108px,auto) minmax(112px,auto) 34px 34px;
  align-items: center;
  justify-content: end;
  gap: 8px;
  padding-right: 12px;
}
.header-tools time {
  display: grid;
  min-width: 112px;
  margin: 0;
  justify-items: end;
  color: #dcecf5;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
}
.header-tools .current-date { color: #a8c0cf; font-size: 13px; font-weight: 700; }
.header-tools .current-time { color: #f1f8fc; font-size: 14px; font-weight: 800; }
.header-tools .icon-button { width: 34px; }
.demo-ribbon { display: none !important; }

#rsu-prototype-layers .rsu-layer-primary,
#rsu-prototype-layers > details > div { display: grid; grid-template-columns: 1fr; gap: 5px; }
#rsu-prototype-layers .rsu-layer-primary { margin-bottom: 7px; }
#rsu-prototype-layers > details > div { padding: 8px; }
#rsu-prototype-layers .rsu-layer-control {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  min-height: 34px;
  padding: 4px 6px;
  border: 1px solid rgba(65,118,151,.34);
  border-radius: 3px;
  background: rgba(5,33,53,.72);
}
#rsu-prototype-layers .rsu-layer-control > label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  color: #d4e5ef;
  line-height: 1.35;
}
#rsu-prototype-layers .rsu-layer-control > label span { min-width: 0; white-space: normal; }
#rsu-prototype-layers .rsu-layer-opacity { position: relative; margin-left: 7px; }
#rsu-prototype-layers .rsu-layer-opacity > summary {
  min-height: 28px;
  padding: 5px 6px;
  border: 1px solid #285e80;
  border-radius: 3px;
  color: #a9dff4;
  font-size: 13px;
  line-height: 16px;
  list-style: none;
  white-space: nowrap;
}
#rsu-prototype-layers .rsu-layer-opacity > summary::-webkit-details-marker { display: none; }
#rsu-prototype-layers .rsu-layer-opacity[open] > summary { border-color: var(--cyan-400); }
#rsu-prototype-layers .rsu-layer-opacity input[type="range"] {
  position: absolute;
  z-index: 2;
  top: 31px;
  right: 0;
  width: 132px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid #2b668c;
  border-radius: 4px;
  background: #061f33;
  accent-color: var(--cyan-400);
}

.rsu-map-legend { width: 304px; overflow-x: hidden; }
.rsu-map-legend .legend-main > div { grid-template-columns: 1fr; gap: 2px; }
.rsu-map-legend .legend-main > div > span { grid-template-columns: 24px minmax(0,1fr); }
.rsu-map-legend .legend-main > div > span b {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  line-height: 1.35;
}
.rsu-map-legend .legend-help p { grid-template-columns: 98px minmax(0,1fr); }
.results-map-layers { grid-template-columns: 1fr; }
.results-map-layers label { min-height: 32px; line-height: 1.35; white-space: normal; }

@media (max-width: 1600px) {
  :root { --header-tools-width: 340px; }
  .header-region-control span { display: none; }
  .header-region-control select { width: 108px; }
}

@media (max-width: 1319px) and (min-width: 1025px) {
  :root { --header-tools-width: 340px; }
  .global-header { grid-template-columns: var(--brand-width) minmax(0,1fr) var(--header-tools-width); }
  .header-region-control { display: flex; }
  .header-region-control select { width: 108px; }
  .header-tools { grid-template-columns: 108px 112px 32px 32px; gap: 6px; padding-right: 8px; }
  .header-tools time { display: grid; }
  .header-tools .icon-button { width: 32px; }
}

@media (max-width: 1400px) and (min-width: 1320px) {
  :root { --header-tools-width: 340px; }
  .rsu-map-legend { width: 286px; }
  .rsu-map-legend .legend-main > div { grid-template-columns: 1fr; }
}

/* Keep dashboard labels on one line without squeezing their values. */
.status-tabs button, .status-legend span, .status-legend b, .status-legend em { white-space: nowrap; }
.status-legend { min-width: 0; }
.status-legend li { grid-template-columns: 10px minmax(0, 1fr) auto; gap: 3px 7px; }
.status-legend em { grid-column: 2 / -1; font-size: 11px; color: #8faec2; }
.events-head { grid-template-columns: minmax(0, 1fr) 67px 76px; gap: 4px; }
.events-head h3, .events-head button { white-space: nowrap; }
.events-head button { padding: 0 4px; gap: 7px; }
.events-head button .chevron { flex: 0 0 7px; margin: 0; }
.summary-panel { container-type: inline-size; }
.summary-panel > header { grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; }
.summary-panel h2, .summary-panel > header span, .summary-panel > header button { white-space: nowrap; }
.summary-panel > header button { padding: 0; }
.summary-panel > header button .chevron { flex: 0 0 7px; }
.coverage-summary .summary-content { grid-template-columns: minmax(78px, .8fr) 132px minmax(0, 1.2fr); }
.coverage-summary .chart-legend { padding-right: 8px; }
.coverage-summary .chart-legend li { grid-template-columns: 9px minmax(0, 1fr) auto; gap: 5px; }
.coverage-summary .chart-legend span, .coverage-summary .chart-legend b, .coverage-summary .coverage-preview h3, .coverage-summary .donut small { white-space: nowrap; }
.coverage-summary .coverage-preview { min-width: 0; }
.coverage-summary .coverage-preview h3 { font-size: clamp(11px, 2.3cqi, 13px); }
@container (max-width: 490px) {
  .summary-panel > header span { display: none; }
  .coverage-summary .summary-content { grid-template-columns: 82px 122px minmax(0, 1fr); }
  .coverage-summary .chart-legend li, .coverage-summary .chart-legend b { font-size: 12px; }
}

/* All desktop widths retain a visible panel restore control. */
.control-screen .desktop-panel-button { position: fixed; top: calc(50vh + var(--header-height) / 2 - 15px); z-index: 85; display: grid; place-items: center; width: 28px; height: 30px; padding: 4px; border: 1px solid #28658c; border-radius: 4px; color: #d5e7f2; background: #0a3454; }
.control-screen .desktop-panel-button.left { left: var(--left-width); }
.control-screen .desktop-panel-button.right { right: var(--right-width); }
.control-screen .desktop-panel-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; }
.control-screen.desktop-left-collapsed { --left-width: 36px; }
.control-screen.desktop-right-collapsed { --right-width: 36px; }
.control-screen.desktop-left-collapsed #layer-panel > *, .control-screen.desktop-right-collapsed #context-panel > * { display: none !important; }
.summary-panel > header { grid-template-columns: minmax(0, 1fr) auto auto auto; padding-right: 8px; }
.summary-panel > header .summary-close { display: grid; place-items: center; width: 24px; height: 26px; font-size: 21px; }
.traffic-summary { grid-column: 1; }
.coverage-summary { grid-column: 2; }
.summary-restore-actions { position: absolute; z-index: 35; right: 8px; bottom: 14px; left: 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; pointer-events: none; }
.summary-restore-actions [data-summary-open="traffic"] { grid-column: 1; }
.summary-restore-actions [data-summary-open="coverage"] { grid-column: 2; }
.summary-restore-actions button { justify-self: start; align-self: end; pointer-events: auto; padding: 6px 9px; border: 1px solid #28658c; border-radius: 4px; color: #d5e7f2; background: #0a3454; }
.show-rsu-analysis .summary-restore-actions, .show-analysis-results .summary-restore-actions, .show-placeholder .summary-restore-actions { display: none; }

/* CTRL-00 PNG icon set and analysis-condition help reuse the approved tokens. */
:root { --ui-icon-size: 20px; --rsu-help-bg: var(--navy-875); --rsu-help-border: var(--line-strong); }
.ui-icon-pair { position: relative; display: inline-flex; flex: 0 0 auto; width: var(--ui-icon-size); height: var(--ui-icon-size); vertical-align: middle; pointer-events: none; }
.ui-icon-pair img { display: block; width: 100%; height: 100%; object-fit: contain; transition: opacity .12s ease; }
.ui-icon-pair .ui-icon-active { position: absolute; inset: 0; opacity: 0; }
:is(button:hover,button:focus-visible,.gnb-item.active) .ui-icon-default { opacity: 0; }
:is(button:hover,button:focus-visible,.gnb-item.active) .ui-icon-active { opacity: 1; }
button:disabled .ui-icon-pair { opacity: .45; }
.gnb-item .ui-icon-pair { width: 18px; height: 18px; }
.layer-search > .ui-icon-pair,.rsu-search > .ui-icon-pair { width: 17px; height: 17px; }
.status-panel > header > .ui-icon-pair { width: 18px; height: 18px; margin-right: 8px; }
.object-empty > .ui-icon-pair { width: 52px; height: 52px; margin: 0 auto 18px; }
.row-expander .ui-icon-pair,.ui-icon-pair.ui-icon-xs { width: 13px; height: 13px; }
.layer-symbol.road-symbol { width: 20px; height: 20px; border: 0; border-radius: 0; background: url("../icons/ui/route.png?v=20261105") center / contain no-repeat; }
#dt-app .rsu-param-caption { display: flex; align-items: center; gap: 4px; min-height: 40px; }
#dt-app #rsu-analysis-parameters .rsu-param-caption label { min-width: 0; color: var(--text); font-size: 14px; line-height: 19px; word-break: keep-all; }
#dt-app .rsu-param-help,.rsu-param-help-close { display: inline-grid; flex: 0 0 24px; place-items: center; width: 24px; height: 24px; min-height: 24px; padding: 3px; border: 0; border-radius: 4px; color: var(--text); background: transparent; cursor: pointer; }
#dt-app .rsu-param-help .ui-icon-pair { width: 18px; height: 18px; }
#dt-app .rsu-param-help:hover,.rsu-param-help-close:hover { background: var(--navy-850); }
#dt-app .rsu-param-help:focus-visible,.rsu-param-help-close:focus-visible { outline: 2px solid var(--cyan-400); outline-offset: 2px; }
.rsu-param-field { min-width: 0; }
.rsu-param-input { position: relative; }
#dt-app #rsu-analysis-parameters .rsu-param-input input { height: 36px; margin-top: 0; padding-right: 42px; color: var(--text); font-size: 14px; }
.rsu-param-input > span { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; pointer-events: none; }
.rsu-parameter-popover { position: fixed; z-index: 150; width: 456px; max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); margin: 0; padding: 16px; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--rsu-help-border); border-radius: var(--radius-lg); color: var(--text); background: var(--rsu-help-bg); box-shadow: var(--panel-shadow); }
.rsu-parameter-popover > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rsu-parameter-popover h3 { margin: 0; color: var(--cyan-400); font-size: 16px; line-height: 1.5; }
.rsu-parameter-popover p { margin: 10px 0 0; color: var(--text); font-size: 14px; line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; }
.rsu-help-diagram { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; margin-top: 12px; border-radius: var(--radius-sm); }
.rsu-parameter-popover .rsu-help-note { color: var(--muted); font-size: 13px; }
.rsu-parameter-popover .rsu-help-image-fallback { padding: 14px; border: 1px dashed var(--rsu-help-border); color: var(--muted); }

/* UX-006: approved RSU panel palette; other screens retain their tokens. */
:is(.show-rsu-analysis,.rsu-usage-modal) {
  --rsu-panel-bg: #071F32;
  --rsu-search-bg: #09283E;
  --rsu-search-border: #28516C;
  --rsu-search-muted: #89A6B9;
  --rsu-card-bg: #0B3048;
  --rsu-card-border: #24506B;
  --rsu-card-label: #AEC5D3;
  --rsu-heading: #FFFFFF;
  --rsu-select-bg: #075884;
  --rsu-select-border: #1598D2;
  --rsu-selected-text: #5BD3F4;
  --rsu-step-title: #58C9F3;
  --rsu-step-track: #24465C;
  --rsu-step-fill: #29BAF2;
  --rsu-step-body: #DBE9F2;
  --rsu-usage-icon: #7DCBEA;
  --rsu-step-counter: #91AEBF;
  --rsu-usage-text: #A3C5D8;
}
.show-rsu-analysis :is(#layer-panel,#context-panel,.rsu-analysis-panel,.rsu-analysis-panel > header) { background: var(--rsu-panel-bg); }
.show-rsu-analysis .rsu-analysis-panel > header { min-height: 62px; border-color: var(--rsu-step-track); }
.show-rsu-analysis .rsu-analysis-panel > header h2 { margin: 0; color: var(--rsu-heading); font-size: 17px; white-space: nowrap; }
.show-rsu-analysis .rsu-search { background: var(--rsu-search-bg); border-color: var(--rsu-search-border); }
.show-rsu-analysis .rsu-search input { min-width: 0; font-size: 14px; color: var(--rsu-heading); }
.show-rsu-analysis .rsu-search input::placeholder { color: var(--rsu-search-muted); opacity: 1; }
.show-rsu-analysis .rsu-search > .ui-icon-pair { background: var(--rsu-search-muted); mask: url('../icons/ui/search.png?v=20261105') center / contain no-repeat; }
.show-rsu-analysis .rsu-search > .ui-icon-pair img { visibility: hidden; }
.show-rsu-analysis .rsu-source-summary span { border-color: var(--rsu-card-border); background: var(--rsu-card-bg); color: var(--rsu-card-label); font-size: 14px; white-space: nowrap; }
.show-rsu-analysis .rsu-source-summary strong { color: var(--rsu-heading); }
.show-rsu-analysis .rsu-batch-toolbar { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 8px; }
.show-rsu-analysis .rsu-batch-toolbar button { min-width: 0; min-height: 38px; padding: 6px 5px; white-space: nowrap; color: var(--rsu-heading); font-size: 14px; line-height: 20px; border-color: var(--rsu-card-border); background: var(--rsu-card-bg); }
.show-rsu-analysis #rsu-select-ready { border-color: var(--rsu-select-border); background: var(--rsu-select-bg); }
.show-rsu-analysis .rsu-batch-toolbar #rsu-selection-count { color: var(--rsu-selected-text); font-size: 14px; }
.show-rsu-analysis #rsu-usage-help { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; min-height: 32px; padding: 4px 0 4px 6px; border: 0; color: var(--rsu-usage-text); background: transparent; font-size: 14px; white-space: nowrap; }
.rsu-usage-icon { width: 18px; height: 18px; flex: 0 0 18px; background: var(--rsu-usage-icon); mask: url('../icons/ui/circle-help.png?v=20261105') center / contain no-repeat; }
.show-rsu-analysis #rsu-usage-help:focus-visible { outline: 2px solid var(--rsu-step-fill); outline-offset: 2px; }
.rsu-current-workflow { flex: 0 0 auto; margin: 0; padding: 15px 13px; border-bottom: 1px solid var(--rsu-step-track); }
.rsu-step-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rsu-step-heading h3 { margin: 0; color: var(--rsu-step-title); font-size: 16px; line-height: 1.5; white-space: nowrap; }
.rsu-step-heading > span { flex: 0 0 auto; color: var(--rsu-step-counter); font-size: 13px; white-space: nowrap; }
.rsu-step-progress { height: 5px; margin-top: 10px; overflow: hidden; border-radius: 3px; background: var(--rsu-step-track); }
.rsu-step-progress > span { display: block; height: 100%; background: var(--rsu-step-fill); }
.rsu-current-workflow p { margin: 11px 0 0; color: var(--rsu-step-body); font-size: 14px; line-height: 1.6; word-break: keep-all; }
.rsu-usage-modal .modal-card { background: var(--rsu-panel-bg); }
.rsu-usage-steps { margin: 0; padding-left: 26px; color: var(--rsu-step-title); font-size: 15px; }
.rsu-usage-steps li + li { margin-top: 14px; }
.rsu-usage-steps strong { color: var(--rsu-heading); font-size: 15px; }
.rsu-usage-steps p { margin: 5px 0 0; color: var(--rsu-step-body); font-size: 14px; line-height: 1.6; word-break: keep-all; }
@media (max-width: 1500px) { .gnb-item .ui-icon-pair { width: 16px; height: 16px; } }

/* TTA user screens: readable controls and complete labels in desktop panels. */
:is(.show-rsu-analysis,.show-analysis-results) :is(.rsu-list b,.rsu-detail-fields dd,.rsu-primary,.rsu-analysis-result li,.rsu-result-layers h3,.rsu-batch-actions button,.rsu-candidate-compare button,.analysis-results-list strong,.results-map-layers label,.analysis-results-detail-content dd,.analysis-results-detail-content h3,.results-compare-controls button,.results-screen-actions button,.results-export-actions a) { font-size: 14px; }
.show-analysis-results .analysis-results-list strong { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
:is(.show-rsu-analysis,.show-analysis-results) :is(.analysis-results-detail-content dd,.results-filter select) { min-width: 0; overflow-wrap: anywhere; }
.show-analysis-results .analysis-results-detail-content dl { min-width: 0; }

.show-analysis-results .analysis-results-detail-content dt { word-break: keep-all; }

/* Analysis dialog is outside the inert app so every map and menu control is covered. */
.rsu-execution-modal { z-index: 250; padding: 20px; color: var(--text); }
.rsu-execution-modal .modal-card { width: min(580px,100%); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; outline: none; }
.rsu-execution-modal .modal-card > header { flex: 0 0 auto; min-height: 58px; height: auto; padding: 16px 20px; }
.rsu-execution-modal .modal-card h2 { font-size: 20px; line-height: 1.4; }
.rsu-execution-modal .modal-body { min-height: 0; max-height: none; overflow: auto; padding: 18px 20px; font-size: 14px; line-height: 1.65; }
.rsu-execution-modal p { margin: 0 0 12px; overflow-wrap: anywhere; }
.rsu-execution-modal .modal-note,.rsu-execution-modal details { font-size: 13px; }
.rsu-execution-modal summary { cursor: pointer; }
.rsu-execution-modal details p { margin-top: 8px; color: var(--muted); }
.rsu-execution-modal .modal-card footer { flex: 0 0 auto; gap: 10px; height: auto; min-height: 62px; padding: 12px 20px; }
.rsu-execution-modal footer button { min-height: 38px; font-size: 14px; color: var(--text); }
.rsu-execution-modal footer .rsu-primary { width: auto; padding: 0 22px; }
.rsu-execution-modal button:focus-visible,.rsu-execution-modal summary:focus-visible { outline: 2px solid var(--cyan-400); outline-offset: 3px; }
.rsu-execution-modal ol { display: grid; gap: 7px; margin: 16px 0; padding: 0; list-style: none; }
.rsu-execution-modal li { padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); }
.rsu-execution-modal li[aria-current="step"] { border-color: var(--cyan-400); color: var(--text); background: #08324b; font-weight: 700; }
.rsu-progress-status { display: flex; align-items: center; gap: 10px; min-height: 26px; }
.rsu-progress-spinner { flex: 0 0 19px; width: 19px; height: 19px; border: 2px solid var(--line); border-top-color: var(--cyan-400); border-radius: 50%; animation: rsu-progress-spin 1s linear infinite; }
.rsu-progress-note { color: var(--muted); font-size: 13px; }
@keyframes rsu-progress-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rsu-progress-spinner { animation: none; } }

/* Selected-object browsing and result actions follow the existing RSU workflow. */
.rsu-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rsu-detail-heading .rsu-card-title { margin: 8px 0; }
#rsu-detail-nav { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
#rsu-detail-nav button { width: 30px; min-height: 30px; border: 1px solid var(--line); border-radius: 4px; color: var(--text); background: #06304a; font-size: 20px; }
#rsu-detail-nav button:disabled { opacity: .4; cursor: not-allowed; }
.rsu-detail-context { margin: 0 0 9px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.rsu-radius-preview-control { margin: 6px 0; }
#rsu-toggle-radius,#rsu-load-candidate-source { min-height: 34px; border: 1px solid var(--line); border-radius: 4px; padding: 5px 10px; color: var(--text); background: #06304a; font-size: 14px; }
.rsu-analysis-limits { margin-bottom: 10px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.rsu-analysis-limits summary,.rsu-execution-options summary { color: var(--cyan-400); font-size: 14px; cursor: pointer; }
.rsu-analysis-limits p { margin: 8px 0; }
.rsu-execution-options { margin-bottom: 8px; }
.rsu-execution-options label { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 14px; }
.rsu-execution-options p { margin: 6px 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.rsu-execution-options input { accent-color: var(--cyan-400); }
.rsu-stored-conditions { margin: 0 12px; padding: 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--text); font-size: 14px; line-height: 1.55; }
.rsu-stored-conditions p { margin: 0 0 7px; overflow-wrap: anywhere; }
.rsu-stored-conditions small { color: var(--muted); font-size: 13px; }
.rsu-stored-conditions details > p { margin-top: 7px; }
.show-rsu-analysis .rsu-analysis-result .rsu-summary-heading h3 { font-size: 18px; line-height: 1.4; }
.show-rsu-analysis .rsu-analysis-result .rsu-summary-heading p { margin: 0 0 12px; font-size: 14px; line-height: 1.6; }
.rsu-summary-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.rsu-summary-metric { min-width: 0; padding: 12px 9px; border: 1px solid var(--line-soft); border-top: 3px solid var(--metric-color); border-radius: 4px; background: #08283c; }
.rsu-summary-metric span { display: block; font-size: 14px; line-height: 1.5; }
.rsu-summary-metric strong { display: block; margin-top: 6px; color: var(--metric-color); font-size: 24px; line-height: 1.3; overflow-wrap: anywhere; }
.show-rsu-analysis .rsu-analysis-result :is(.rsu-summary-caption,.rsu-summary-caution) { margin: 10px 0; font-size: 13px; line-height: 1.6; }
.show-rsu-analysis .rsu-analysis-result .rsu-summary-caution { padding: 9px; color: #e5c980; background: rgba(117,77,0,.18); border-radius: 3px; }
.rsu-summary-details { margin-top: 10px; min-width: 0; }
.rsu-summary-details dl,#rsu-stored-parameter-summary { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.35fr); gap: 8px; margin: 10px; font-size: 14px; line-height: 1.6; }
.rsu-summary-details dt,#rsu-stored-parameter-summary dt { color: var(--muted); overflow-wrap: anywhere; }
.rsu-summary-details dd,#rsu-stored-parameter-summary dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.rsu-summary-details a { display: inline-block; margin: 8px 10px; color: var(--cyan-400); font-size: 14px; text-decoration: underline; }
.show-rsu-analysis :is(.rsu-summary-details,.rsu-stored-conditions) summary { padding: 10px; font-size: 14px; cursor: pointer; }
.show-rsu-analysis :is(.rsu-summary-details,.rsu-stored-conditions) summary:focus-visible { outline: 2px solid var(--cyan-400); outline-offset: -2px; }
@media (max-width: 1400px) {
  .rsu-summary-metrics { grid-template-columns: 1fr; }
  .rsu-summary-metric { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .rsu-summary-metric strong { margin: 0; font-size: 23px; }
}
#rsu-candidate-edit { display: block; }
#rsu-candidate-edit > div { display: grid; grid-template-columns: 1fr; gap: 5px; }
.bottom-panels { height: auto; grid-template-rows: auto; align-items: end; pointer-events: none; }
.bottom-panels > .summary-panel { pointer-events: auto; }
.traffic-summary { height: 216px; }
.coverage-summary { display: flex; flex-direction: column; height: auto; min-height: 0; }
.coverage-summary > header { flex: 0 0 38px; grid-template-columns: minmax(0,1fr) auto auto; padding-left: 10px; }
.coverage-summary h2 { font-size: 14px; }
.summary-panel > header .summary-close .ui-icon-pair { display: inline-flex; }
.coverage-summary .summary-content { display: block; flex: none; min-height: 0; height: auto; overflow-y: auto; padding: 7px 10px; }
.coverage-summary .rsu-summary-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.coverage-summary .rsu-summary-metric { display: block; padding: 4px 8px; }
.coverage-summary .rsu-summary-metric span { font-size: 14px; line-height: 1.4; }
.coverage-summary .rsu-summary-metric strong { margin-top: 1px; font-size: 21px; line-height: 1.25; }
.control-status-meta { margin: 0 0 5px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.control-status-notice,.control-status-error { font-size: 14px; line-height: 1.5; }
.control-status-error { color: #ffd66b; }
.control-status-actions { flex: 0 0 38px; padding: 0 10px 6px; }
.control-status-actions button,.coverage-summary [data-control-status="retry"] { min-height: 30px; border: 1px solid #2179a8; border-radius: 4px; color: var(--text); background: #06304a; font-size: 14px; }
.control-status-actions button { width: 100%; }
.coverage-summary button:disabled { opacity: .45; cursor: not-allowed; }
.show-control-result #rsu-map-legend { left: 44px; right: auto; bottom: 266px; }
@media (max-width: 1919px) { .traffic-summary { height: 196px; } }
