/* Gyeongsangbuk-do Policy Office visual refinement */
:root {
  --gb-blue: #0068b7;
  --gb-blue-deep: #004f8d;
  --gb-ink: #0b2036;
  --gb-night: #061b30;
  --gb-cloud: #f3f6f8;
  --gb-line: #dde5ea;
  --gb-glow: rgba(0, 104, 183, .16);
  --shadow-soft: 0 12px 34px rgba(8, 34, 56, .07);
  --shadow-float: 0 24px 60px rgba(5, 28, 49, .13);
}

body {
  background:
    radial-gradient(circle at 84% 3%, rgba(0, 104, 183, .055), transparent 23rem),
    linear-gradient(145deg, #f7f9fa 0%, #f1f5f7 52%, #f5f7f8 100%);
  color: var(--gb-ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Pretendard', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.sidebar {
  width: 272px;
  padding: 26px 18px 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 18%),
    linear-gradient(160deg, #061d34 0%, #082743 58%, #061b30 100%);
  border-right: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 14px 0 38px rgba(8, 28, 46, .08);
}

.main-content {
  margin-left: 272px;
  width: calc(100% - 272px);
  padding: 40px 48px 26px;
}

.brand {
  gap: 13px;
  margin: 0 5px 43px;
  min-height: 58px;
}

.brand .official-mark,
.brand-lockup .official-mark {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: 0 9px 24px rgba(0, 0, 0, .17);
}

.brand .official-mark {
  width: 52px;
  height: 52px;
  border-radius: 15px;
}

.brand .official-mark img {
  display: block;
  width: 35px;
  height: auto;
}

.brand b {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.045em;
  white-space: nowrap;
}

.brand small {
  margin-top: 5px;
  color: #8ea5b7;
  font: 600 9px/1.2 'Noto Sans KR', sans-serif;
  letter-spacing: .02em;
}

nav { gap: 6px; }

nav a {
  padding: 13px 13px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 600;
  letter-spacing: -.02em;
}

nav a:hover {
  background: rgba(255, 255, 255, .065);
  border-color: rgba(255, 255, 255, .055);
}

nav a.active {
  background: linear-gradient(100deg, rgba(0, 104, 183, .38), rgba(0, 104, 183, .13));
  border-color: rgba(111, 189, 237, .2);
  box-shadow: inset 3px 0 0 #44a9e8;
}

nav a.active i { color: #6fc0ef; }

.side-bottom {
  border-color: rgba(255, 255, 255, .09);
}

.live-dot span,
.news-live {
  background: #55d6ad;
  box-shadow: 0 0 0 4px rgba(85, 214, 173, .12), 0 0 16px rgba(85, 214, 173, .42);
}

.eyebrow {
  color: #77c6f1;
  letter-spacing: .17em;
}

.eyebrow.dark { color: #648096; }

.topbar {
  margin-bottom: 25px;
}

.topbar h1,
.admin-header h1,
.users-header h1 {
  color: var(--gb-ink);
  font-weight: 750;
  letter-spacing: -.055em;
}

.topbar h1 em { color: var(--gb-blue-deep); }

.topbar-identity { min-width: 0; }

.province-vision {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 9px 0 0;
  color: #6b7f8f;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1;
  white-space: nowrap;
}

.province-vision > span {
  width: 27px;
  height: 2px;
  flex: 0 0 auto;
  border-radius: 99px;
  background: linear-gradient(90deg, #d5a047 0 38%, var(--gb-blue) 38% 100%);
  box-shadow: 0 0 10px rgba(24, 94, 154, .18);
}

.province-vision b {
  color: var(--gb-blue-deep);
  font-weight: 800;
}

.situation-ticker {
  min-height: 48px;
  margin: -7px 0 16px;
  padding: 10px 15px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  overflow: hidden;
  color: #d8e9f4;
  border: 1px solid rgba(81, 165, 216, .19);
  border-radius: 12px;
  background: linear-gradient(100deg, #071e35, #0a3558 70%, #075f94);
  box-shadow: 0 9px 26px rgba(5, 37, 63, .12);
}

.ticker-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7fd0f8;
  font: 600 9px 'DM Mono', monospace;
  letter-spacing: .12em;
}

.ticker-label span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #58e1b5;
  box-shadow: 0 0 0 5px rgba(88, 225, 181, .11), 0 0 16px rgba(88, 225, 181, .65);
}

.situation-ticker > strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: 11px;
  font-weight: 650;
}

.ticker-meta {
  display: flex;
  gap: 14px;
  color: #aac0cf;
  font: 500 9px 'DM Mono', monospace;
}

.ticker-meta span { color: #8dd5fa; }

.display-button,
.icon-button {
  border-color: var(--gb-line);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 4px 13px rgba(9, 40, 65, .035);
}

.display-button.active,
.primary-link,
.back-link,
.save-button,
.new-user-card form > button,
.login-button {
  background: linear-gradient(135deg, var(--gb-blue-deep), var(--gb-blue));
  box-shadow: 0 10px 25px rgba(0, 94, 164, .18);
}

.hero {
  min-height: 302px;
  padding: 42px 46px;
  border: 1px solid rgba(114, 187, 232, .16);
  border-radius: 22px;
  background:
    linear-gradient(116deg, rgba(4, 30, 52, .97) 0%, rgba(0, 74, 127, .96) 64%, rgba(0, 105, 181, .88) 100%);
  box-shadow: 0 25px 55px rgba(5, 41, 70, .19);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49.86%, rgba(255, 255, 255, .04) 50%, transparent 50.14%),
    linear-gradient(0deg, transparent 49.86%, rgba(255, 255, 255, .035) 50%, transparent 50.14%);
  background-size: 88px 88px;
  mask-image: linear-gradient(90deg, transparent 36%, #000 100%);
}

.hero::before {
  border-color: rgba(115, 197, 241, .2);
  box-shadow: 0 0 0 80px rgba(55, 166, 224, .055), 0 0 0 170px rgba(80, 190, 236, .035);
}

.hero-copy h2 {
  font-size: clamp(30px, 2.15vw, 38px);
  line-height: 1.24;
  letter-spacing: -.055em;
}

.hero-copy h2 em { color: #b9e6ff; }
.hero-copy > p:not(.eyebrow) { color: #b9ccda; }
.hero-copy a { color: #b9e6ff; }

.hero-progress {
  width: min(340px, 31%);
  padding: 21px 22px 19px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 15px;
  background: rgba(2, 24, 44, .25);
  backdrop-filter: blur(8px);
}

.field-intelligence {
  margin: 22px 0 0;
}

.intelligence-heading {
  margin-bottom: 15px;
  padding: 0 2px;
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.intelligence-heading h2 {
  margin: 0 0 6px;
  color: var(--gb-ink);
  font-size: 22px;
  letter-spacing: -.05em;
}

.intelligence-heading > div:first-child > p:last-child {
  margin: 0;
  color: #748797;
  font-size: 11px;
}

.source-status {
  display: grid;
  grid-template-columns: 8px auto;
  gap: 2px 7px;
  align-items: center;
  text-align: right;
}

.source-status b {
  color: #527187;
  font: 600 9px 'DM Mono', monospace;
  letter-spacing: .08em;
}

.source-status small {
  grid-column: 1 / -1;
  color: #91a0ac;
  font-size: 9px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #42bc96;
  box-shadow: 0 0 0 4px rgba(66, 188, 150, .12);
}

.intelligence-grid {
  display: grid;
  grid-template-columns: minmax(480px, 1.85fr) minmax(210px, .72fr) minmax(270px, 1fr);
  gap: 15px;
  align-items: stretch;
}

.weather-command,
.risk-radar,
.incident-command {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--gb-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-soft);
}

.weather-command { padding: 24px 25px 20px; }
.risk-radar, .incident-command { padding: 23px 22px 19px; }

.weather-top,
.radar-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.card-kicker {
  margin: 0 0 7px;
  color: #668196;
  font: 600 8px 'DM Mono', monospace;
  letter-spacing: .15em;
}

.weather-top h3,
.radar-heading h3 {
  margin: 0;
  color: var(--gb-ink);
  font-size: 16px;
  letter-spacing: -.045em;
}

.province-extremes {
  display: flex;
  align-items: center;
  gap: 15px;
}

.province-extremes > i {
  width: 1px;
  height: 46px;
  background: #dce5ea;
}

.province-extremes > div {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 0 7px;
}

.province-extremes span {
  grid-column: 1 / -1;
  color: #8294a2;
  font-size: 8px;
}

.province-extremes strong {
  color: var(--gb-ink);
  font: 500 27px/1 'DM Mono', monospace;
}

.province-extremes strong small { font-size: 12px; }

.province-extremes em {
  color: #7790a1;
  font-size: 9px;
  font-style: normal;
}

.temperature-chart {
  position: relative;
  margin: 20px 0 15px;
  padding: 14px 15px 10px;
  border: 1px solid #dfebf1;
  border-radius: 13px;
  background:
    radial-gradient(circle at 82% 10%, rgba(49, 165, 224, .1), transparent 13rem),
    linear-gradient(155deg, #f5fafd, #edf6fb);
}

.chart-title {
  display: flex;
  justify-content: space-between;
  color: #718797;
  font-size: 9px;
}

.chart-title b {
  color: var(--gb-blue-deep);
  font-weight: 700;
}

#temperature-svg {
  display: block;
  width: 100%;
  height: 112px;
  overflow: visible;
}

.chart-grid line {
  stroke: #cbdde8;
  stroke-width: 1;
  stroke-dasharray: 4 6;
}

#temperature-line {
  stroke: #0582ca;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 5px rgba(0, 104, 183, .2));
}

#temperature-points circle {
  fill: #fff;
  stroke: #0582ca;
  stroke-width: 3;
}

#temperature-points text {
  fill: #31566f;
  font: 600 10px 'DM Mono', monospace;
  text-anchor: middle;
}

.temperature-axis {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  color: #879aa8;
  font: 500 8px 'DM Mono', monospace;
  text-align: center;
}

.weather-regions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.weather-region {
  min-width: 0;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  border: 1px solid #e2eaee;
  border-radius: 10px;
  background: #fbfcfd;
}

.weather-icon {
  width: 31px;
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #eaf5fb;
  color: #167eb6;
  font-size: 15px;
}

.weather-region b,
.weather-region small { display: block; }
.weather-region b { margin-bottom: 3px; font-size: 10px; }
.weather-region small { color: #8b9aa5; font-size: 8px; white-space: nowrap; }
.weather-region strong { font: 500 19px 'DM Mono', monospace; }

.weather-loading,
.incident-skeleton {
  min-height: 53px;
  border-radius: 9px;
  background: linear-gradient(90deg, #edf2f4, #f8fafb, #edf2f4);
  background-size: 200% 100%;
  animation: weatherShimmer 1.2s linear infinite;
}

@keyframes weatherShimmer { to { background-position: -200% 0; } }

.risk-radar {
  color: #dceaf3;
  border-color: rgba(58, 139, 192, .26);
  background:
    radial-gradient(circle at 50% 40%, rgba(44, 153, 216, .24), transparent 42%),
    linear-gradient(155deg, #071f37, #0a3657);
  box-shadow: 0 18px 40px rgba(5, 37, 62, .17);
}

.risk-radar .card-kicker { color: #77bfe8; }
.risk-radar .radar-heading h3 { color: #fff; }

.risk-grade {
  padding: 5px 7px;
  color: #8bd7ff;
  border: 1px solid rgba(114, 201, 248, .22);
  border-radius: 6px;
  background: rgba(56, 152, 207, .12);
  font-size: 8px;
  font-weight: 700;
}

.risk-dial {
  --risk-angle: 120deg;
  width: 142px;
  height: 142px;
  margin: 24px auto 18px;
  padding: 11px;
  border-radius: 50%;
  background: conic-gradient(#53c6ed 0deg, #0b78b4 var(--risk-angle), rgba(255, 255, 255, .09) var(--risk-angle));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 0 38px rgba(35, 157, 214, .15);
}

.risk-dial > div {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #092742;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, .18);
}

.risk-dial strong { font: 500 36px/1 'DM Mono', monospace; }
.risk-dial span { margin-top: 7px; color: #7595a9; font: 600 7px 'DM Mono', monospace; letter-spacing: .11em; }

.risk-note {
  min-height: 32px;
  margin: 0 0 14px;
  color: #9db5c5;
  font-size: 9px;
  line-height: 1.6;
  text-align: center;
}

.risk-signals { border-top: 1px solid rgba(255, 255, 255, .1); }

.risk-signals > div {
  padding: 10px 1px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  color: #a9bdca;
  font-size: 9px;
}

.risk-signals b { color: #fff; font: 500 10px 'DM Mono', monospace; }

.signal-dot {
  width: 6px;
  height: 6px;
  margin-right: 7px;
  display: inline-block;
  border-radius: 50%;
}

.signal-dot.red { background: #e17067; }
.signal-dot.amber { background: #dbad55; }
.signal-dot.blue { background: #54afe1; }

.incident-count {
  min-width: 29px;
  padding: 6px;
  color: #a96f20;
  border-radius: 7px;
  background: #fbf1df;
  font: 600 9px 'DM Mono', monospace;
  text-align: center;
}

.incident-list { margin-top: 13px; }

.incident-item {
  padding: 10px 0;
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  color: var(--gb-ink);
  border-top: 1px solid #e3e9ed;
  text-decoration: none;
}

.incident-item > i {
  width: 7px;
  height: 27px;
  border-radius: 5px;
  background: #96a8b5;
}

.incident-item > i.critical { background: #d75c54; }
.incident-item > i.watch { background: #d5a047; }
.incident-item > i.info { background: #428ebc; }
.incident-item b { overflow: hidden; display: block; font-size: 10px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.incident-item small { display: block; margin-top: 3px; color: #8a9aa5; font-size: 8px; }
.incident-item em { color: #7890a1; font-size: 13px; font-style: normal; }

.incident-more {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  color: #52738a;
  font-size: 9px;
  font-weight: 700;
  text-decoration: none;
}

.hero-line span { background: linear-gradient(90deg, #47ace8, #c1eaff); }
.progress-top small { color: #8ed3f7; }

.metrics { gap: 15px; margin: 20px 0; }

.metric,
.panel,
.news-column,
.input-methods article,
.entry-card,
.guide-card,
.format-card,
.records-card,
.role-summary article,
.new-user-card,
.account-list-card,
.audit-card {
  border-color: var(--gb-line);
  box-shadow: var(--shadow-soft);
}

.metric {
  overflow: hidden;
  padding: 22px 22px 19px;
  border-radius: 15px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.metric::after {
  content: '';
  position: absolute;
  right: -28px;
  bottom: -36px;
  width: 95px;
  height: 95px;
  border: 1px solid rgba(0, 104, 183, .08);
  border-radius: 50%;
}

.metric:hover {
  transform: translateY(-2px);
  box-shadow: 0 17px 38px rgba(7, 38, 63, .095);
}

.metric-tone.blue,
.thin-line span,
.flag.navy { background: var(--gb-blue); }

.panel {
  padding: 27px 28px;
  border-radius: 17px;
}

.decision,
.policy-row,
.instruction,
.news-item {
  transition: background-color .18s ease;
}

.decision:hover,
.policy-row:hover,
.instruction:hover,
.news-item:hover {
  background: rgba(0, 104, 183, .035);
}

.decision:hover { margin: 0 -12px; padding-left: 12px; padding-right: 12px; }

.date-chip {
  color: var(--gb-blue-deep);
  background: #e9f4fb;
}

.news-section {
  padding: 31px;
  border: 1px solid #d8e4ea;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(235, 243, 247, .96), rgba(225, 238, 245, .88));
  box-shadow: inset 0 1px rgba(255, 255, 255, .76);
}

.news-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.news-column {
  min-width: 0;
  padding: 20px 22px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .83);
  backdrop-filter: blur(8px);
}

.news-column-title h3 { font-size: 14px; }
.news-item h4 { font-size: 13px; }
.news-item p { font-size: 10.5px; }

footer {
  color: #71889a;
  border-top: 1px solid rgba(97, 126, 148, .13);
  margin-top: 24px;
  padding-top: 17px;
}

.admin-header,
.users-header {
  padding-bottom: 21px;
  border-bottom: 1px solid var(--gb-line);
}

.input-methods article > span {
  color: var(--gb-blue-deep);
  background: #eaf5fb;
}

.type-picker input:checked + span {
  border-color: var(--gb-blue);
  background: #eff8fd;
  box-shadow: 0 0 0 3px var(--gb-glow);
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus,
.password-field input:focus,
.login-input:focus,
.new-user-card input:focus,
.new-user-card select:focus {
  border-color: var(--gb-blue);
  box-shadow: 0 0 0 4px var(--gb-glow);
}

.storage-card {
  background: linear-gradient(145deg, #05223b, #075486);
  border-color: rgba(0, 104, 183, .42);
}

.login-page { background: #051a2e; }

.login-shell { grid-template-columns: minmax(0, 60%) minmax(410px, 40%); }

.login-brand {
  padding: 48px 7vw;
  background:
    radial-gradient(circle at 74% 38%, rgba(43, 170, 231, .18), transparent 28%),
    linear-gradient(145deg, #04182b 0%, #06395d 64%, #0068b7 140%);
}

.login-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(120deg, transparent 0%, #000 64%, transparent 100%);
}

.login-brand::after {
  border-color: rgba(104, 202, 246, .2);
  box-shadow: 0 0 0 75px rgba(63, 173, 225, .055), 0 0 0 185px rgba(72, 181, 231, .035);
}

.brand-lockup {
  gap: 15px;
  letter-spacing: 0;
}

.brand-lockup .official-mark {
  width: 66px;
  height: 66px;
  border-radius: 19px;
}

.brand-lockup .official-mark img {
  display: block;
  width: 45px;
  height: auto;
}

.brand-lockup > span:last-child b,
.brand-lockup > span:last-child small {
  display: block;
}

.brand-lockup b {
  color: #fff;
  font: 700 17px/1.35 'Noto Sans KR', sans-serif;
  letter-spacing: -.04em;
}

.brand-lockup small {
  margin-top: 4px;
  color: #95b5c9;
  font: 600 10px/1.3 'Noto Sans KR', sans-serif;
}

.login-copy h1 {
  max-width: 800px;
  font-size: clamp(41px, 4vw, 68px);
  letter-spacing: -.065em;
}

.login-copy h1 em { color: #b9e7ff; }
.login-copy p:not(.eyebrow) { color: #bfd0dd; }

.login-panel {
  position: relative;
  background: rgba(251, 253, 254, .98);
  box-shadow: -24px 0 70px rgba(1, 21, 38, .17);
}

.login-panel::before {
  content: 'POLICY OPERATIONS · SECURE ACCESS';
  position: absolute;
  top: 32px;
  right: 34px;
  color: #8aa0b0;
  font: 500 8px 'DM Mono', monospace;
  letter-spacing: .12em;
}

body.display-mode .brand .official-mark {
  display: flex;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  margin: 0 auto;
}

body.display-mode .brand {
  width: 100%;
  min-height: 48px;
  margin: 0 auto 43px;
  justify-content: center;
  overflow: hidden;
}

body.display-mode .brand > span:last-child {
  display: none;
}

body.display-mode .brand .official-mark img {
  display: block;
  width: 32px;
  height: auto;
}

body.app-fullscreen .sidebar { display: none; }
body.app-fullscreen .main-content { width: 100%; max-width: none; margin-left: 0; padding-left: 42px; padding-right: 42px; }
body.app-fullscreen .icon-button#fullscreen { color: #fff; background: var(--gb-blue); box-shadow: 0 8px 18px rgba(0, 104, 183, .2); }

body.display-mode .field-intelligence,
body.display-mode .situation-ticker {
  animation: screenDrift 150s ease-in-out infinite alternate;
}

#field-intelligence { scroll-margin-top: 18px; }

@media (max-width: 1450px) {
  .intelligence-grid { grid-template-columns: minmax(470px, 1.75fr) minmax(210px, .75fr); }
  .incident-command { grid-column: 1 / -1; }
  .incident-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
  .incident-item { padding: 11px; grid-template-columns: 6px minmax(0, 1fr); border: 1px solid #e3e9ed; border-radius: 10px; }
  .incident-item > em { display: none; }
  .incident-item > i { height: 34px; }
}

@media (min-width: 1700px) {
  .main-content { padding-left: 60px; padding-right: 60px; }
  .hero { min-height: 325px; }
  .hero-copy h2 { font-size: 40px; }
  .metrics { gap: 18px; }
}

@media (max-width: 1100px) {
  .sidebar { width: 220px; }
  .main-content { margin-left: 220px; width: calc(100% - 220px); padding: 30px; }
  .brand { margin-left: 0; }
  .brand .official-mark { width: 46px; height: 46px; }
  .brand .official-mark img { width: 31px; }
  .brand b { font-size: 12px; }
  .hero-progress { width: 270px; }
  .intelligence-grid { grid-template-columns: minmax(0, 1.65fr) minmax(205px, .7fr); }
  .weather-regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .incident-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .intelligence-grid { grid-template-columns: 1fr; }
  .incident-command { grid-column: auto; }
  .risk-radar { min-height: 360px; }
  .risk-signals { display: grid; grid-template-columns: repeat(3, 1fr); }
  .risk-signals > div { padding: 10px; display: grid; gap: 4px; text-align: center; }
}

@media (max-width: 760px) {
  .province-vision { gap: 6px; margin-top: 7px; font-size: 9px; }
  .province-vision > span { width: 18px; }
  .main-content { margin-left: 0; width: 100%; padding: 22px 16px; }
  .hero { padding: 29px 25px; border-radius: 17px; }
  .hero-progress { width: 100%; }
  .panel, .news-section { border-radius: 15px; }
  .login-shell { display: block; }
  .login-brand { min-height: 46vh; padding: 30px 28px; }
  .brand-lockup .official-mark { width: 54px; height: 54px; border-radius: 15px; }
  .brand-lockup .official-mark img { width: 36px; }
  .brand-lockup b { font-size: 14px; }
  .login-copy h1 { font-size: 36px; }
  .login-panel { min-height: 54vh; padding: 46px 32px 30px; }
  .situation-ticker { grid-template-columns: auto minmax(0, 1fr); }
  .ticker-meta { display: none; }
  .intelligence-heading { align-items: start; }
  .source-status { display: none; }
  .weather-command, .risk-radar, .incident-command { border-radius: 15px; }
  .weather-command { padding: 20px 17px 17px; }
  .weather-top { display: block; }
  .province-extremes { margin-top: 15px; justify-content: flex-start; }
  .weather-regions { grid-template-columns: 1fr 1fr; }
  .incident-list { grid-template-columns: 1fr; }
}

/* Field intelligence command view */
.field-intelligence {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(0, 104, 183, .1);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(245, 250, 252, .98), rgba(231, 241, 247, .88));
  box-shadow: inset 0 1px rgba(255, 255, 255, .9), 0 22px 55px rgba(8, 47, 72, .06);
}

.intelligence-heading { margin: 0 3px 18px; }
.intelligence-heading h2 { font-size: clamp(25px, 2vw, 33px); letter-spacing: -.055em; }
.intelligence-heading > div:first-child > p:last-child { margin-top: 6px; color: #708696; font-size: 11px; }

.map-dashboard-grid {
  grid-template-columns: minmax(0, 2.25fr) minmax(300px, .72fr);
  gap: 16px;
  align-items: stretch;
}

.incident-map-command {
  position: relative;
  min-width: 0;
  padding: 22px;
  overflow: hidden;
  color: #eaf6fc;
  border: 1px solid rgba(82, 175, 229, .25);
  border-radius: 20px;
  background:
    radial-gradient(circle at 18% 12%, rgba(37, 145, 210, .22), transparent 30%),
    linear-gradient(145deg, #061c30 0%, #082c48 58%, #061c30 100%);
  box-shadow: 0 22px 45px rgba(4, 31, 51, .18), inset 0 1px rgba(255, 255, 255, .06);
}

.incident-map-command::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 68%, rgba(69, 184, 239, .05) 68% 69%, transparent 69%);
}

.map-command-heading,
.map-summary,
.map-monitor,
.operations-side { position: relative; z-index: 1; }

.map-command-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.map-command-heading h3 { margin: 3px 0 0; color: #fff; font-size: 21px; letter-spacing: -.045em; }
.map-command-heading > div > p:last-child { margin-top: 5px; color: #86a8bc; font-size: 9px; }
.incident-map-command .card-kicker { color: #68c7f4; }

.map-summary {
  flex: 0 0 auto;
  min-width: 116px;
  padding: 9px 13px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  border: 1px solid rgba(105, 201, 246, .2);
  border-radius: 12px;
  background: rgba(4, 24, 41, .48);
}

.map-summary span { color: #8dafc2; font-size: 8px; }
.map-summary strong { grid-row: 1 / 3; grid-column: 2; color: #77d2ff; font: 600 26px/1 'DM Mono', monospace; }
.map-summary small { color: #56829a; font: 500 6px 'DM Mono', monospace; letter-spacing: .08em; }

.map-monitor {
  height: 445px;
  display: grid;
  grid-template-columns: minmax(330px, 1.23fr) minmax(245px, .77fr);
  gap: 13px;
}

.gyeongbuk-map-stage {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(93, 182, 231, .19);
  border-radius: 16px;
  background:
    radial-gradient(circle at 52% 42%, rgba(27, 142, 207, .17), transparent 40%),
    linear-gradient(rgba(91, 181, 226, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 181, 226, .035) 1px, transparent 1px),
    rgba(2, 19, 33, .78);
  background-size: auto, 28px 28px, 28px 28px, auto;
}

.gyeongbuk-map-stage::after {
  content: 'GYEONGBUK · SITUATION GRID / 36.5760°N 128.5056°E';
  position: absolute;
  top: 13px;
  left: 15px;
  color: rgba(130, 195, 228, .46);
  font: 500 6px 'DM Mono', monospace;
  letter-spacing: .1em;
}

.gyeongbuk-map {
  position: absolute;
  inset: 30px 4% 28px;
  width: 92%;
  height: calc(100% - 58px);
  filter: drop-shadow(0 16px 25px rgba(0, 0, 0, .33));
}

.map-grid-lines { opacity: .13; fill: none; stroke: #76c6ee; stroke-width: 1; stroke-dasharray: 4 8; }
.province-halo { fill: none; stroke: rgba(83, 187, 236, .18); stroke-width: 10; filter: url(#map-glow); }
.province-shape { fill: url(#map-fill); stroke: #66c4ef; stroke-width: 2.2; stroke-linejoin: round; filter: url(#map-glow); }
.terrain-lines { fill: none; stroke: rgba(123, 195, 230, .17); stroke-width: 1; stroke-dasharray: 3 7; }
.coast-highlight { fill: none; stroke: #8cdbff; stroke-width: 3; stroke-linecap: round; filter: url(#map-glow); }
.island-route { fill: none; stroke: rgba(110, 205, 248, .42); stroke-width: 1; stroke-dasharray: 4 5; }
.island-feature path { fill: #0b4268; stroke: #7ad2f8; stroke-width: 1.5; filter: url(#map-glow); }
.island-feature text { fill: #e8f8ff; stroke: #05243c; stroke-width: 3px; paint-order: stroke; font: 800 11px 'Noto Sans KR', sans-serif; text-anchor: middle; }
.dokdo path { fill: #1b709f; stroke-width: 1; }
.dokdo text { fill: #ffd977; }
.map-place-labels text { fill: rgba(173, 220, 240, .5); font: 700 7px 'Noto Sans KR', sans-serif; text-anchor: middle; }
.map-place-labels .metro-label { fill: rgba(119, 164, 186, .4); font-size: 6px; letter-spacing: .08em; }
.sea-label { fill: rgba(112, 186, 224, .3); font: 600 7px 'DM Mono', 'Noto Sans KR', sans-serif; letter-spacing: .14em; transform: rotate(90deg); transform-origin: 555px 280px; }

.map-scan-line {
  position: absolute;
  z-index: 2;
  top: -10%;
  left: 4%;
  width: 92%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(105, 209, 255, .7), transparent);
  box-shadow: 0 0 18px rgba(105, 209, 255, .45);
  animation: mapScan 8s linear infinite;
}

@keyframes mapScan { to { transform: translateY(480px); } }

.map-markers { position: absolute; z-index: 4; inset: 30px 4% 28px; pointer-events: none; }
.map-marker {
  position: absolute;
  width: 15px;
  height: 15px;
  padding: 0;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.map-marker::before,
.map-marker::after {
  content: '';
  position: absolute;
  inset: -5px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .45;
  animation: markerPulse 2.4s ease-out infinite;
}

.map-marker::after { inset: -12px; opacity: .17; animation-delay: .65s; }
.map-marker > span { position: absolute; inset: 3px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.map-marker.critical { color: #ff7068; }
.map-marker.watch { color: #ffc15a; }
.map-marker.info { color: #65cdfb; }
.map-marker.active { z-index: 5; transform: translate(-50%, -50%) scale(1.25); }
.map-marker.active > span { box-shadow: 0 0 18px 3px currentColor; }
.map-marker b {
  position: absolute;
  left: 18px;
  top: -4px;
  display: none;
  padding: 4px 7px;
  color: #fff;
  border: 1px solid rgba(124, 205, 244, .28);
  border-radius: 6px;
  background: rgba(3, 21, 36, .88);
  box-shadow: 0 7px 18px rgba(0, 0, 0, .24);
  font: 700 8px 'Noto Sans KR', sans-serif;
  white-space: nowrap;
}
.map-marker.active b, .map-marker:hover b { display: block; }

@keyframes markerPulse { 0% { transform: scale(.55); opacity: .65; } 80%, 100% { transform: scale(1.35); opacity: 0; } }

.map-legend {
  position: absolute;
  z-index: 5;
  right: 13px;
  bottom: 12px;
  padding: 6px 8px;
  display: flex;
  gap: 10px;
  border: 1px solid rgba(115, 197, 237, .16);
  border-radius: 8px;
  background: rgba(2, 19, 33, .72);
  backdrop-filter: blur(7px);
}
.map-legend span { display: flex; gap: 5px; align-items: center; color: #88a9bb; font-size: 7px; }
.map-legend i { width: 5px; height: 5px; border-radius: 50%; box-shadow: 0 0 7px currentColor; }
.map-legend i.critical { color: #ff7068; background: currentColor; }
.map-legend i.watch { color: #ffc15a; background: currentColor; }
.map-legend i.info { color: #65cdfb; background: currentColor; }

.map-incident-feed {
  min-width: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(93, 182, 231, .15);
  border-radius: 16px;
  background: rgba(3, 21, 36, .55);
}
.map-incident-feed .radar-heading h3 { color: #fff; font-size: 14px; }
.feed-live { padding: 4px 6px; color: #83d6fc; border: 1px solid rgba(105, 201, 246, .18); border-radius: 6px; font: 600 6px 'DM Mono', monospace; }
.feed-live i { display: inline-block; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: #5cd6a6; box-shadow: 0 0 8px #5cd6a6; }

.map-feed-list {
  min-height: 0;
  margin-top: 9px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
}
.map-feed-list .incident-item {
  min-height: 0;
  padding: 8px 7px;
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr) auto;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #dcebf3;
  background: rgba(8, 44, 70, .25);
}
.map-feed-list .incident-item:first-child { border-top: 1px solid transparent; }
.map-feed-list .incident-item.active,
.map-feed-list .incident-item:hover { border-color: rgba(104, 201, 247, .24); background: rgba(31, 109, 152, .24); }
.map-feed-list .incident-item > i { width: 4px; height: 100%; min-height: 34px; }
.map-feed-list .incident-item b { color: #eaf5fa; font-size: 9px; }
.map-feed-list .incident-item small { margin-top: 2px; color: #6f96ab; font-size: 7px; }
.map-feed-list .incident-item em { color: #5e93af; font-size: 10px; }
.incident-region { display: inline-block; margin-bottom: 2px; color: #71caf4; font: 600 6px 'DM Mono', 'Noto Sans KR', sans-serif; letter-spacing: .06em; }
.map-incident-feed .incident-more { margin-top: auto; padding-top: 8px; color: #6eb9dd; border-top: 1px solid rgba(97, 174, 212, .1); }

.operations-side {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
}

.compact-weather,
.compact-risk { border-radius: 17px; }
.compact-weather { padding: 17px 16px 14px; }
.compact-weather .weather-top { gap: 10px; }
.compact-weather .weather-top h3 { font-size: 14px; }
.compact-weather .province-extremes { gap: 6px; }
.compact-weather .province-extremes > div { min-width: 44px; }
.compact-weather .province-extremes span { font-size: 6px; }
.compact-weather .province-extremes strong { font-size: 19px; }
.compact-weather .province-extremes em { font-size: 7px; }
.compact-weather .temperature-chart { margin: 12px 0 10px; padding: 9px 9px 6px; }
.compact-weather .chart-title { margin-bottom: 3px; }
.compact-weather .chart-title span { font-size: 7px; }
.compact-weather #temperature-svg { height: 58px; }
.compact-weather .temperature-axis { margin-top: 0; }
.compact-weather .temperature-axis span { font-size: 5px; }
.compact-weather .weather-regions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.compact-weather .weather-region { padding: 7px; gap: 6px; }
.compact-weather .weather-region:nth-child(n+5) { display: none; }
.compact-weather .weather-region .weather-icon { font-size: 13px; }
.compact-weather .weather-region b { font-size: 8px; }
.compact-weather .weather-region small { font-size: 6px; }
.compact-weather .weather-region strong { font-size: 11px; }

.compact-risk { min-height: 0; padding: 17px 16px 14px; }
.compact-risk .risk-dial { width: 112px; height: 112px; margin: 15px auto 10px; }
.compact-risk .risk-dial::before { inset: 11px; }
.compact-risk .risk-dial::after { inset: 25px; }
.compact-risk .risk-dial strong { font-size: 30px; }
.compact-risk .risk-note { min-height: 30px; margin: 0 0 11px; font-size: 7px; line-height: 1.55; }
.compact-risk .risk-signals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.compact-risk .risk-signals > div { padding: 7px 4px; display: grid; gap: 3px; text-align: center; }
.compact-risk .risk-signals span { font-size: 6px; }
.compact-risk .risk-signals b { font-size: 10px; }

.field-intelligence + .hero { margin-top: 20px; }
.field-intelligence + .hero { min-height: 225px; padding: 30px 39px; }
.field-intelligence + .hero .hero-copy h2 { font-size: clamp(28px, 2.4vw, 35px); }
.field-intelligence + .hero .hero-copy > p:not(.eyebrow) { margin-top: 10px; }
.field-intelligence + .hero .hero-copy a { margin-top: 19px; }

@media (max-width: 1450px) {
  .map-dashboard-grid { grid-template-columns: 1fr; }
  .operations-side { grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); grid-template-rows: auto; }
  .compact-risk { display: grid; grid-template-columns: 1fr 120px; column-gap: 12px; align-items: center; }
  .compact-risk .radar-heading { grid-column: 1 / -1; }
  .compact-risk .risk-dial { grid-column: 2; grid-row: 2 / 4; margin: 8px auto; }
  .compact-risk .risk-note { grid-column: 1; grid-row: 2; }
  .compact-risk .risk-signals { grid-column: 1; grid-row: 3; }
  .map-feed-list { display: flex; }
  .map-feed-list .incident-item { padding: 8px 7px; grid-template-columns: 4px minmax(0, 1fr) auto; }
  .map-feed-list .incident-item > em { display: block; }
}

@media (min-width: 1700px) {
  .field-intelligence + .hero { min-height: 240px; }
  .field-intelligence + .hero .hero-copy h2 { font-size: 36px; }
  .map-monitor { height: 485px; }
}

@media (max-width: 900px) {
  .field-intelligence { padding: 16px; border-radius: 18px; }
  .map-monitor { height: auto; grid-template-columns: 1fr; }
  .gyeongbuk-map-stage { min-height: 420px; }
  .map-incident-feed { min-height: 360px; }
  .operations-side { grid-template-columns: 1fr; }
  .compact-risk { display: grid; }
}

@media (max-width: 620px) {
  .field-intelligence { margin-left: 0; margin-right: 0; padding: 12px; }
  .map-command-heading { display: block; }
  .map-summary { width: 120px; margin-top: 12px; }
  .incident-map-command { padding: 14px; }
  .gyeongbuk-map-stage { min-height: 360px; }
  .map-marker b { display: none !important; }
  .field-intelligence + .hero { padding: 27px 24px; }
}
