:root {
  --ops-junction: #b42318;
  --ops-crossing: #006d77;
  --ops-entry: #b76e00;
  --ops-staffed: #157f3b;
  --ops-unmanned: #2563a5;
  --ops-hq: #5b3ea8;
}

html.ops-access-pending {
  overflow: hidden;
  background: #07100b;
}

html.ops-access-pending body > :not(.ops-access-gate):not(noscript):not(script) {
  visibility: hidden;
}

.ops-access-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  overflow: auto;
  min-height: 100dvh;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  color: #fff;
  background:
    radial-gradient(circle at 15% 10%, rgba(246, 196, 67, 0.2), transparent 34%),
    linear-gradient(145deg, #050806, #102118 70%, #07100b);
}

.ops-access-gate[hidden],
html.ops-access-granted .ops-access-gate {
  display: none;
}

.ops-access-card {
  width: min(440px, 100%);
  padding: 34px;
  border: 1px solid rgba(246, 196, 67, 0.6);
  border-radius: 18px;
  background: rgba(7, 16, 11, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.ops-access-kicker {
  color: #f6c443;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.ops-access-card h1 {
  margin: 12px 0 10px;
  color: #fff;
  font-size: clamp(25px, 6vw, 34px);
  line-height: 1.2;
}

.ops-access-card > p:not(.ops-access-error) {
  margin: 0 0 24px;
  color: #cbd5ce;
  line-height: 1.65;
}

.ops-access-card label {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.ops-access-card input {
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 11px 14px;
  border: 2px solid #6f7d73;
  border-radius: 10px;
  color: #fff;
  background: #111b15;
  font-size: 20px;
  letter-spacing: 0.15em;
}

.ops-access-card input:focus {
  border-color: #f6c443;
  outline: 3px solid rgba(246, 196, 67, 0.24);
}

.ops-access-card input[aria-invalid="true"] {
  border-color: #ef665d;
}

.ops-access-card button {
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  border: 0;
  border-radius: 10px;
  color: #111;
  background: #f6c443;
  font-size: 15px;
  font-weight: 950;
  cursor: pointer;
}

.ops-access-card button:hover,
.ops-access-card button:focus-visible {
  background: #ffd66b;
  outline: 3px solid rgba(246, 196, 67, 0.26);
}

.ops-access-card button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.ops-access-error {
  min-height: 22px;
  margin: 10px 0 0;
  color: #ff9b94;
  font-size: 13px;
  font-weight: 800;
}

.ops-access-noscript {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px;
  color: #fff;
  background: #07100b;
  text-align: center;
}

@media (max-width: 520px) {
  .ops-access-gate {
    padding: 14px;
  }

  .ops-access-card {
    padding: 26px 20px;
    border-radius: 14px;
  }
}

body.map-expanded {
  overflow: hidden;
}

.operations-temporary-status {
  border-top-width: 6px;
  background:
    linear-gradient(90deg, rgba(180, 35, 24, 0.2), transparent 58%),
    #171c18;
}

.operations-temporary-status .page-status-inner {
  width: min(1480px, calc(100% - 48px));
  padding: 26px 0 28px;
}

.temporary-status-copy {
  display: flex;
  align-items: center;
  gap: 20px;
}

.temporary-status-label {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 8px;
  color: #fff;
  background: #b42318;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.operations-temporary-status h2 {
  margin: 0 0 4px;
  color: #f6cc5c;
  font-size: clamp(27px, 3vw, 42px);
  font-weight: 950;
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.operations-temporary-status .temporary-status-message {
  color: #fff;
  font-size: clamp(17px, 1.8vw, 25px);
  font-weight: 900;
  line-height: 1.35;
}

.operations-temporary-status .temporary-status-support {
  margin-top: 7px;
  color: #c8cec8;
  font-size: 13px;
}

.operations-temporary-status .status-date {
  align-self: start;
  padding-top: 7px;
}

.temporary-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: #fff;
  background: #b42318;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  vertical-align: 2px;
}

.operations-main {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 84px;
}

.operations-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: 28px;
  margin-bottom: 28px;
}

.operations-intro > div,
.timing-model {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.operations-intro h2,
.operations-section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.operations-intro p,
.operations-section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.timing-model {
  background: #0f1511;
  color: #fff;
}

.timing-model h3 {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 18px;
}

.timing-model dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.timing-model dl > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.timing-model dt {
  color: #bfc7c0;
  font-size: 13px;
  font-weight: 800;
}

.timing-model dd {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.operations-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 52px 0 18px;
}

.operations-section-head .section-note {
  max-width: 610px;
  font-size: 14px;
  text-align: right;
}

.operations-map-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid #272d29;
  border-radius: 22px;
  background: #111713;
  box-shadow: 0 22px 50px rgba(17, 20, 17, 0.16);
}

.operations-map-shell.is-expanded {
  position: fixed;
  z-index: 9999;
  inset: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 14px 18px;
  color: #fff;
  background: #111713;
}

.map-toolbar-left,
.map-toolbar-actions,
.map-filter-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.map-toolbar-title {
  margin-right: 8px;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.map-filter,
.map-action {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #465049;
  border-radius: 999px;
  color: #f5f7f5;
  background: #222a24;
  font-size: 13px;
  font-weight: 900;
}

.map-filter:hover,
.map-filter:focus-visible,
.map-action:hover,
.map-action:focus-visible {
  border-color: var(--gold);
  outline: 0;
}

.map-filter[aria-pressed="true"] {
  border-color: var(--gold);
  color: #111;
  background: var(--gold);
}

.map-action {
  border-radius: 8px;
  background: transparent;
}

.map-count {
  min-width: 58px;
  color: #bfc7c0;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.map-distance-status {
  min-width: 104px;
  padding: 5px 8px;
  border: 1px solid #465049;
  border-radius: 999px;
  color: #e6e9e6;
  background: #222a24;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.map-direction-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border: 1px solid #465049;
  border-radius: 999px;
  color: #e6e9e6;
  background: #222a24;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.map-direction-legend span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.map-direction-legend i {
  font-size: 16px;
  font-style: normal;
  line-height: 1;
  -webkit-text-stroke: 1px #fff;
}

.map-direction-legend .is-road { color: #00b8e6; }
.map-direction-legend .is-entry { color: #ffb000; }

.map-surface-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border: 1px solid #465049;
  border-radius: 999px;
  color: #e6e9e6;
  background: #222a24;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.map-surface-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.map-surface-legend i {
  width: 18px;
  height: 6px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
}

.map-surface-legend .is-numbered {
  background: linear-gradient(180deg, #111 0 50%, #8b5a2b 50% 100%);
}

.map-surface-legend .is-farm {
  background: #8b5a2b;
}

.map-surface-legend .is-forest {
  background: linear-gradient(180deg, #1769c2 0 50%, #8b5a2b 50% 100%);
}

.operations-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  height: 680px;
  min-height: 680px;
  background: #e7ebe7;
}

#operations-map {
  z-index: 1;
  height: 680px;
  min-height: 680px;
  background: #d8ddd7;
}

.operations-map-shell.is-expanded .operations-map-layout {
  height: calc(100vh - 72px);
  min-height: 0;
}

.operations-map-shell.is-expanded #operations-map {
  height: 100%;
  min-height: 0;
}

.point-detail {
  position: relative;
  z-index: 2;
  align-self: start;
  overflow-y: auto;
  max-height: 656px;
  margin: 12px;
  padding: 12px;
  color: #fff;
  background: #111713;
  border: 1px solid #344139;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(17, 24, 18, 0.16);
}

.point-detail > p {
  margin: 0;
  color: #dce6df;
  font-size: 12px;
  line-height: 1.5;
}

.point-detail .ops-popup h3 {
  margin: 8px 0 10px;
  font-size: 16px;
  line-height: 1.3;
}

.point-detail .ops-point-kicker > strong {
  font-size: 14px;
}

.point-detail .ops-category {
  padding: 3px 6px;
  font-size: 10px;
}

.point-detail .ops-popup-close {
  padding: 4px 6px;
  font-size: 10px;
}

.point-detail .ops-popup dl {
  gap: 10px;
}

.point-detail .ops-popup dl > div {
  padding-top: 10px;
}

.point-detail .ops-popup dt {
  margin-bottom: 5px;
  font-size: 11px;
}

.point-detail .ops-popup dd {
  font-size: 12px;
  line-height: 1.45;
}

.point-detail .operation-monitoring-note {
  margin-top: 3px;
  font-size: 8px;
  line-height: 1.3;
}

.ops-snapshot-action {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.ops-snapshot-action a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

.ops-snapshot-download {
  border: 1px solid var(--gold);
  color: #111;
  background: var(--gold);
}

.ops-snapshot-list {
  border: 1px solid #68756d;
  color: #fff;
  background: transparent;
}

.ops-snapshot-action a:hover {
  filter: brightness(1.08);
}

.ops-snapshot-action a:focus-visible {
  outline: 3px solid #f2a900;
  outline-offset: 2px;
}

.ops-detail-card h3,
.ops-popup h3 {
  margin: 12px 0 18px;
  letter-spacing: -0.03em;
}

.ops-detail-card h3 {
  color: #fff;
  font-size: 26px;
  line-height: 1.25;
}

.ops-route-offset {
  display: grid;
  gap: 3px;
  margin: -6px 0 16px;
  padding: 10px 12px;
  border: 1px solid #f6cc5c;
  border-left: 5px solid #f6cc5c;
  border-radius: 6px;
  color: #fff4cf;
  background: rgba(246, 204, 92, 0.12);
  font-size: 12px;
  line-height: 1.45;
}

.ops-route-offset strong {
  color: #f6cc5c;
  font-size: 13px;
}

.ops-popup .ops-route-offset {
  margin-top: -10px;
  color: #4b3b12;
  background: #fff7dc;
}

.ops-draft-warning {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.ops-draft-warning strong {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: 0.02em;
}

.ops-draft-warning.is-primary {
  border: 2px solid #ff8c83;
  color: #fff;
  background: #b42318;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
  transform: rotate(-0.45deg);
}

.ops-draft-warning.is-primary strong {
  color: #8a160e;
  background: #fff;
}

.ops-draft-warning.is-stamp {
  margin: -4px 0 18px 14px;
  border: 2px dashed #f6cc5c;
  color: #ffe8a8;
  background: rgba(246, 204, 92, 0.08);
  transform: rotate(0.55deg);
}

.ops-draft-warning.is-stamp strong {
  color: #111713;
  background: #f6cc5c;
}

.ops-draft-warning.is-final {
  margin: 22px 10px 0 0;
  border-left: 5px solid #ff5c50;
  color: #fff;
  background: rgba(180, 35, 24, 0.28);
  transform: rotate(-0.3deg);
}

.ops-draft-warning.is-final strong {
  color: #fff;
  background: #b42318;
}

.ops-point-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ops-point-kicker > strong {
  color: var(--gold);
  font-size: 17px;
}

.ops-popup .ops-point-kicker.is-popup {
  display: flex;
  justify-content: flex-start;
  min-height: 29px;
  padding-right: 58px;
  position: relative;
}

.ops-popup .ops-point-kicker.is-popup .ops-category {
  justify-self: start;
}

.ops-popup .ops-point-kicker.is-popup .ops-point-distance {
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.ops-popup-close {
  align-items: center;
  background: #ffffff;
  border: 1px solid #737b75;
  border-radius: 5px;
  color: #252b27;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 6px 8px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.ops-popup-close:hover,
.ops-popup-close:focus-visible {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
  outline: none;
}

.ops-category {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
}

.ops-category-junction { background: var(--ops-junction); }
.ops-category-crossing { background: var(--ops-crossing); }
.ops-category-entry { background: var(--ops-entry); }
.ops-category-staffed { background: var(--ops-staffed); }
.ops-category-unmanned { background: var(--ops-unmanned); }
.ops-category-hq { background: var(--ops-hq); }

.ops-times {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  margin: 0 0 20px;
  border: 1px solid #3c4941;
  border-radius: 12px;
}

.ops-times > div {
  min-width: 0;
  padding: 11px 8px;
  text-align: center;
}

.ops-times > div + div {
  border-left: 1px solid #3c4941;
}

.ops-times span,
.ops-times strong {
  display: block;
}

.ops-times span {
  margin-bottom: 5px;
  color: #aeb9b1;
  font-size: 11px;
  font-weight: 800;
}

.ops-times strong {
  color: #fff;
  font-size: 13px;
  line-height: 1.3;
}

.ops-times .taggeo-time-card {
  background: rgba(246, 196, 67, 0.12);
}

.ops-times .taggeo-time-card span,
.taggeo-time-col {
  color: #f6c443;
}

.ops-staff-shifts {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}

.ops-staff-shifts > div {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid #536159;
  border-radius: 10px;
  color: #fff;
  background: #172119;
}

.ops-staff-shifts span,
.ops-staff-shifts strong {
  color: inherit;
  font-size: 12px;
  line-height: 1.4;
}

.ops-popup .ops-staff-shifts > div {
  border-color: #c7d0ca;
  color: #111;
  background: #f1f5f2;
}

.ops-detail-card dl,
.ops-popup dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.ops-detail-card dl > div,
.ops-popup dl > div {
  padding-top: 16px;
  border-top: 1px solid #3c4941;
}

.ops-detail-card dt,
.ops-popup dt {
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 900;
}

.ops-detail-card dt {
  color: var(--gold);
}

.operation-monitoring-note {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
  white-space: normal;
}

.ops-detail-card dd,
.ops-popup dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.ops-detail-card dd {
  color: #e0e6e1;
}

.map-error {
  display: grid;
  min-height: 680px;
  margin: 0;
  place-items: center;
  padding: 24px;
  color: #fff;
  background: #303b34;
  text-align: center;
}

.ops-marker-shell {
  border: 0;
  background: transparent;
}

.ops-direction-arrow-shell {
  border: 0;
  background: transparent;
}

.ops-direction-arrow {
  position: absolute;
  top: 11px;
  left: 10px;
  display: block;
  width: 28px;
  height: 26px;
  color: #00b8e6;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.86));
  font-family: Arial, sans-serif;
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  transform:
    translate(var(--arrow-x), var(--arrow-y))
    rotate(var(--arrow-angle));
  transform-origin: center;
  -webkit-text-stroke: 2px #fff;
}

.ops-direction-arrow-entry {
  color: #ffb000;
}

.google-ops-overlay,
.google-distance-overlay {
  position: absolute;
  border: 0;
  background: transparent;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif;
  transform: translate(-50%, -100%);
}

.google-ops-overlay {
  z-index: 3;
  width: 48px;
  height: 48px;
  cursor: pointer;
}

.google-ops-overlay .ops-marker {
  position: absolute;
  right: 3px;
  bottom: 0;
}

.google-ops-label {
  position: absolute;
  bottom: 50px;
  left: 50%;
  display: none;
  width: max-content;
  max-width: 220px;
  padding: 5px 8px;
  border-radius: 7px;
  color: #fff;
  background: #111713;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  transform: translateX(-50%);
}

#operations-map.labels-visible .google-ops-label {
  display: block;
}

.google-distance-overlay {
  z-index: 2;
  pointer-events: none;
}

.map-provider-notice {
  display: grid;
  width: min(88%, 520px);
  min-height: 150px;
  margin: 90px auto;
  place-content: center;
  gap: 8px;
  padding: 24px;
  border: 1px solid #b38a20;
  color: #fff;
  background: #18221c;
  text-align: center;
}

.map-provider-notice strong {
  font-size: 20px;
}

.map-provider-notice span {
  color: #d5dbd6;
  font-size: 14px;
}

.map-provider-notice.is-error {
  border-color: #d45340;
}

.ops-marker {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 7px;
  color: #fff;
  background: #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.42);
  transform-origin: center;
  rotate: -45deg;
}

.ops-marker b,
.ops-marker em {
  position: absolute;
  rotate: 45deg;
  font-style: normal;
}

.ops-marker b {
  top: 6px;
  left: 8px;
  font-size: 12px;
}

.ops-marker em {
  right: 3px;
  bottom: 4px;
  padding: 1px 3px;
  border-radius: 4px;
  color: #111;
  background: rgba(255, 255, 255, 0.94);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
}

.ops-marker-junction { background: var(--ops-junction); }
.ops-marker-crossing { background: var(--ops-crossing); }
.ops-marker-entry { background: var(--ops-entry); }
.ops-marker-staffed { background: var(--ops-staffed); }
.ops-marker-unmanned { background: var(--ops-unmanned); }
.ops-marker-hq { background: var(--ops-hq); }

.route-km-marker-shell {
  border: 0;
  background: transparent;
}

.route-km-marker {
  display: inline-flex;
  min-width: 34px;
  height: 20px;
  align-items: baseline;
  justify-content: center;
  gap: 1px;
  padding: 1px 4px;
  border: 2px solid #244f3a;
  border-radius: 999px;
  color: #143523;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 6px rgba(15, 28, 20, 0.3);
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif;
  line-height: 1;
  white-space: nowrap;
}

.route-km-marker b {
  font-size: 10px;
  font-weight: 950;
}

.route-km-marker small {
  font-size: 7px;
  font-weight: 900;
}

.route-km-marker.is-major {
  height: 23px;
  border-color: #111713;
  color: #fff;
  background: #153e2a;
}

.route-km-marker.is-major b {
  font-size: 11px;
}

.route-km-marker.is-major small {
  color: #f6cc5c;
}

.leaflet-tooltip.ops-map-label {
  padding: 5px 8px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #111713;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.leaflet-tooltip.ops-map-label::before {
  border-top-color: #111713;
}

.leaflet-popup-content-wrapper {
  border-radius: 15px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.26);
}

.leaflet-popup-content {
  margin: 18px;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif;
}

.ops-popup h3 {
  color: #111;
  font-size: 20px;
}

.ops-popup .ops-point-kicker > strong {
  color: #8a5300;
}

.ops-popup .ops-times {
  border-color: #d3d6d3;
}

.ops-pass-list {
  display: grid;
  gap: 10px;
}

.ops-pass {
  display: grid;
  gap: 6px;
}

.ops-pass-label {
  color: #8a5300;
  font-size: 12px;
  font-weight: 900;
}

.table-pass-time {
  display: grid;
  gap: 1px;
  margin-bottom: 5px;
}

.table-pass-time:last-child {
  margin-bottom: 0;
}

.table-pass-time small {
  color: #6f766f;
  font-size: 10px;
  white-space: nowrap;
}

.table-pass-time strong {
  font-size: 12px;
  white-space: nowrap;
}

.ops-popup .ops-times > div + div {
  border-left-color: #d3d6d3;
}

.ops-popup .ops-times span {
  color: #616760;
}

.ops-popup .ops-times strong {
  color: #111;
}

.ops-popup dl > div {
  border-top-color: #d3d6d3;
}

.ops-popup dt {
  color: #8a5300;
}

.ops-popup dd {
  color: #343a35;
}

.operations-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(17, 20, 17, 0.08);
}

.staffing-download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: -4px 0 12px;
}

.staffing-time-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.staffing-time-adjust {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 18px;
  border: 2px solid #111;
  border-radius: 10px;
  color: #fff;
  background: #171717;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.staffing-time-adjust:hover,
.staffing-time-adjust:focus-visible {
  border-color: #b77900;
  color: #111;
  background: #f6c443;
  outline: 3px solid rgba(183, 121, 0, 0.2);
}

.staffing-time-current {
  color: #565c57;
  font-size: 12px;
  font-weight: 800;
}

.staffing-download-note {
  margin: -5px 0 12px;
  color: #6d726e;
  font-size: 11px;
  text-align: right;
}

.staffing-rotation-summary {
  display: grid;
  gap: 5px;
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid #c59a26;
  border-radius: 12px;
  color: #2f2816;
  background: #fff4d6;
  line-height: 1.55;
}

.staffing-rotation-summary strong {
  color: #0b3c27;
}

.staffing-download {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 16px;
  border: 2px solid #0b3c27;
  border-radius: 10px;
  color: #fff;
  background: #0b3c27;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.staffing-download:hover,
.staffing-download:focus-visible {
  color: #111;
  background: #f6c443;
  outline: 3px solid rgba(11, 60, 39, 0.22);
}

.staffing-plan-table {
  min-width: 1620px;
}

.staffing-plan-table th {
  color: #fff;
  background: #0b3c27;
}

.staffing-plan-table th:nth-child(1),
.staffing-plan-table th:nth-child(2),
.staffing-plan-table th:nth-child(4),
.staffing-plan-table th:nth-child(5),
.staffing-plan-table th:nth-child(6),
.staffing-plan-table th:nth-child(7),
.staffing-plan-table th:nth-child(8),
.staffing-plan-table th:nth-child(9),
.staffing-plan-table th:nth-child(10),
.staffing-plan-table th:nth-child(11),
.staffing-plan-table td:nth-child(1),
.staffing-plan-table td:nth-child(2),
.staffing-plan-table td:nth-child(4),
.staffing-plan-table td:nth-child(5),
.staffing-plan-table td:nth-child(6),
.staffing-plan-table td:nth-child(7),
.staffing-plan-table td:nth-child(8),
.staffing-plan-table td:nth-child(9),
.staffing-plan-table td:nth-child(10),
.staffing-plan-table td:nth-child(11) {
  text-align: center;
  white-space: nowrap;
}

.staffing-plan-table th:last-child {
  min-width: 230px;
}

.staffing-team {
  display: inline-block;
  min-width: 68px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: #171717;
  font-size: 12px;
}

.staffing-team-연 { background: #5b3ea8; }
.staffing-team-용 { background: #172033; }
.staffing-team-280 { background: #166534; }

.operations-table {
  width: 100%;
  min-width: 1340px;
  border-collapse: collapse;
  font-size: 13px;
}

.operations-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 13px 12px;
  color: #fff;
  background: #182019;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}

.operations-table th:nth-child(1),
.operations-table th:nth-child(4),
.operations-table th:nth-child(5),
.operations-table th:nth-child(6),
.operations-table th:nth-child(7),
.operations-table th:nth-child(8) {
  text-align: center;
}

.operations-table:not(.staffing-plan-table) th:last-child {
  min-width: 380px;
  white-space: normal;
}

.operations-table td {
  padding: 13px 12px;
  border-top: 1px solid #e4e3dc;
  vertical-align: top;
  line-height: 1.55;
}

.operations-table tr:hover td,
.operations-table tr.is-active td {
  background: #fff8e5;
}

.operations-table tr[hidden] {
  display: none;
}

.operations-table .km-cell {
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.operations-table td:nth-child(4),
.operations-table td:nth-child(5),
.operations-table td:nth-child(6),
.operations-table td:nth-child(7),
.operations-table td:nth-child(8) {
  text-align: center;
  white-space: nowrap;
}

.operations-table .taggeo-time-cell {
  color: #4d3600;
  background: #fff8df;
  font-weight: 900;
}

.operations-time-dialog {
  width: min(940px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  color: #f7f7f4;
  background: #151715;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
}

.operations-time-dialog::backdrop {
  background: rgba(4, 7, 5, 0.72);
  backdrop-filter: blur(3px);
}

.operations-time-dialog-shell {
  display: flex;
  max-height: calc(100dvh - 32px);
  flex-direction: column;
}

.operations-time-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 19px;
  border-bottom: 1px solid #353a36;
}

.operations-time-dialog-head span {
  display: block;
  margin-bottom: 5px;
  color: #f1c75b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.operations-time-dialog-head h2 {
  margin: 0;
  color: #fff;
  font-size: 27px;
}

.operations-time-dialog-close {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid #474d48;
  border-radius: 999px;
  color: #fff;
  background: #242724;
  font: inherit;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.operations-time-dialog-body {
  overflow: auto;
  padding: 22px 26px 26px;
}

.operations-time-dialog-body > p:first-child {
  margin: 0 0 18px;
  color: #c7cec8;
  font-size: 13px;
  line-height: 1.6;
}

.operations-time-adjust-grid {
  overflow: hidden;
  border: 1px solid #363b37;
  border-radius: 14px;
}

.operations-time-adjust-grid-head,
.operations-time-adjust-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.65fr) minmax(205px, 0.9fr) minmax(185px, 1fr) minmax(185px, 1fr);
  align-items: stretch;
}

.operations-time-adjust-grid-head {
  color: #b6beb8;
  background: #101210;
  font-size: 11px;
  font-weight: 900;
}

.operations-time-adjust-grid-head span {
  padding: 12px 14px;
}

.operations-time-adjust-row + .operations-time-adjust-row {
  border-top: 1px solid #363b37;
}

.operations-time-adjust-row > div {
  display: flex;
  min-width: 0;
  align-items: center;
  padding: 15px 14px;
}

.operations-time-adjust-row > div + div {
  border-left: 1px solid #2d322e;
}

.operations-time-adjust-row.is-fixed {
  background: #1b1e1b;
}

.operations-time-adjust-target {
  flex-direction: column;
  align-items: flex-start !important;
  justify-content: center;
  gap: 4px;
}

.operations-time-adjust-target strong {
  color: #fff;
  font-size: 17px;
}

.operations-time-adjust-target span {
  color: #9fa8a1;
  font-size: 10px;
  line-height: 1.35;
}

.operations-time-adjust-controls {
  justify-content: center;
  gap: 8px;
}

.operations-time-adjust-controls button,
.operations-time-confirm button,
.operations-time-final {
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid #555b56;
  border-radius: 9px;
  color: #fff;
  background: #2b2e2b;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.operations-time-adjust-controls button:hover,
.operations-time-adjust-controls button:focus-visible,
.operations-time-confirm button:hover,
.operations-time-confirm button:focus-visible,
.operations-time-final:hover,
.operations-time-final:focus-visible,
.operations-time-dialog-close:hover,
.operations-time-dialog-close:focus-visible {
  border-color: #f1c75b;
  color: #111;
  background: #f1c75b;
  outline: 3px solid rgba(241, 199, 91, 0.22);
}

.operations-time-adjust-controls button:disabled,
.operations-time-final:disabled,
.operations-time-confirm button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.operations-time-adjust-controls output,
.operations-time-fixed-badge {
  display: inline-flex;
  min-width: 62px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #111;
  background: #f1c75b;
  font-size: 12px;
  font-weight: 950;
}

.operations-time-fixed-badge {
  color: #d9ded9;
  background: #373c38;
}

.operations-time-preview {
  flex-direction: column;
  align-items: flex-start !important;
  justify-content: center;
  gap: 5px;
}

.operations-time-preview span {
  display: none;
  color: #89928b;
  font-size: 10px;
  font-weight: 900;
}

.operations-time-preview output {
  color: #dce1dd;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.operations-time-preview.is-after output {
  color: #f1c75b;
}

.operations-time-anchor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.operations-time-anchor-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(125px, 0.7fr);
  gap: 13px 14px;
  padding: 18px;
  border: 1px solid #3c433d;
  border-radius: 14px;
  background: #111411;
}

.operations-time-anchor-card > div,
.operations-time-anchor-card > output {
  grid-column: 1 / -1;
}

.operations-time-anchor-card > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.operations-time-anchor-card > div strong {
  color: #fff;
  font-size: 18px;
}

.operations-time-anchor-card > div span {
  color: #aeb7b0;
  font-size: 11px;
}

.operations-time-anchor-card label {
  display: grid;
  align-content: start;
  gap: 7px;
  color: #d9ded9;
  font-size: 12px;
  font-weight: 900;
}

.operations-time-anchor-card label > span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.operations-time-anchor-card label b {
  color: #cbd2cc;
  font-size: 12px;
}

.operations-time-anchor-card input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #5c635d;
  border-radius: 9px;
  color: #fff;
  background: #080a08;
  font: inherit;
  font-size: 17px;
  font-weight: 900;
}

.operations-time-anchor-card input:focus {
  border-color: #f1c75b;
  outline: 3px solid rgba(241, 199, 91, 0.22);
}

.operations-time-anchor-card input[aria-invalid="true"] {
  border-color: #ff7569;
  outline-color: rgba(255, 117, 105, 0.22);
}

.operations-time-anchor-preview {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 9px;
  color: #bfc7c1;
  background: #202420;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.operations-time-anchor-preview[data-tone="success"] {
  color: #fff2b8;
  background: #332b15;
}

.operations-time-anchor-preview[data-tone="error"] {
  color: #ffaaa2;
  background: #321b19;
}

.operations-time-anchor-rule {
  margin: 12px 0 0;
  color: #aeb7b0;
  font-size: 11px;
  line-height: 1.55;
}

.operations-time-linked-preview {
  display: grid;
  grid-template-columns: 0.65fr 1fr 1.8fr;
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid #3c433d;
  border-radius: 12px;
  background: #181b18;
}

.operations-time-linked-preview > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  padding: 13px 14px;
}

.operations-time-linked-preview > div + div {
  border-left: 1px solid #343934;
}

.operations-time-linked-preview strong {
  color: #f1c75b;
  font-size: 11px;
}

.operations-time-linked-preview span,
.operations-time-linked-preview output {
  color: #eef2ee;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.operations-time-saved-anchors {
  display: flex;
  gap: 9px 13px;
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 10px;
  color: #bec6bf;
  background: #202420;
  font-size: 11px;
  line-height: 1.5;
}

.operations-time-saved-anchors strong {
  flex: 0 0 auto;
  color: #fff;
}

.operations-time-adjust-warning {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 2px solid #ff7569;
  border-radius: 10px;
  color: #fff;
  background: #481c18;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.55;
}

.operations-time-adjust-warning[hidden] {
  display: none;
}

.operations-time-adjust-scope {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-left: 3px solid #f1c75b;
  color: #bfc7c1;
  background: #1d201d;
  font-size: 12px;
  line-height: 1.5;
}

.operations-time-adjust-scope strong {
  color: #fff;
}

.operations-time-dialog-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.operations-time-final {
  min-width: 150px;
  border-color: #0d5b3b;
  background: #0d5b3b;
}

.operations-time-confirm {
  display: grid;
  gap: 9px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #735c25;
  border-radius: 12px;
  background: #201d15;
}

.operations-time-confirm[hidden] {
  display: none;
}

.operations-time-confirm label {
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.operations-time-confirm p {
  margin: 0;
  color: #bdb8a8;
  font-size: 11px;
}

.operations-time-confirm input {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #5f635f;
  border-radius: 9px;
  color: #fff;
  background: #111311;
  font: inherit;
  font-size: 16px;
}

.operations-time-confirm input:focus {
  border-color: #f1c75b;
  outline: 3px solid rgba(241, 199, 91, 0.2);
}

.operations-time-confirm input[aria-invalid="true"] {
  border-color: #ff7569;
}

.operations-time-confirm > div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

#operations-time-adjust-save {
  border-color: #0d5b3b;
  background: #0d5b3b;
}

.operations-time-adjust-message {
  min-height: 20px;
  margin: 12px 0 0;
  color: #d7ddd8;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.operations-time-adjust-message[data-tone="error"] {
  color: #ff8a80;
}

.operations-time-adjust-message[data-tone="success"] {
  color: #83e0ae;
}

.table-time-line {
  display: block;
}

.table-time-line + .table-time-line {
  margin-top: 3px;
}

.point-jump {
  padding: 0;
  border: 0;
  color: #0c3e25;
  background: transparent;
  font-weight: 900;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: #8fac99;
  text-underline-offset: 3px;
}

.point-jump:hover,
.point-jump:focus-visible {
  color: #b42318;
  outline: 0;
  text-decoration-color: currentColor;
}

.operation-cell {
  min-width: 340px;
  color: #424943;
}

.table-route-offset {
  display: block;
  margin-bottom: 6px;
  color: #9d291e;
}

.operations-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.operations-downloads a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid #9da29c;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.operations-downloads a:first-child {
  border-color: #153e2a;
  color: #fff;
  background: #153e2a;
}

.operations-print-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 34px;
  padding: 26px 28px;
  border: 2px solid #153e2a;
  border-radius: 14px;
  background: #f3f8f3;
}

.operations-print-download h2 {
  margin: 5px 0 6px;
  color: #102f20;
  font-size: 22px;
}

.operations-print-download p {
  max-width: 760px;
  margin: 0;
  color: #4c5a51;
  font-size: 14px;
  line-height: 1.65;
}

.operations-print-eyebrow {
  color: #b42318;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.06em;
}

.junction-sheet-page {
  overflow: hidden;
  margin: 0;
  color: #111;
  background: #e7ebe7;
}

.junction-sheet {
  width: 100vw;
  height: 100vh;
}

.junction-sheet-map,
.junction-sheet-map .operations-map-shell,
.junction-sheet-map .operations-map-layout {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.junction-sheet-map .operations-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 366px;
  gap: 0;
  background: #e7ebe7;
}

.junction-sheet-map #operations-map {
  height: 100%;
  min-height: 100%;
  border: 0;
  border-radius: 0;
}

.junction-sheet-heading {
  display: none;
}

.junction-sheet-heading strong {
  color: #f4c849;
  font-size: 15px;
}

.junction-sheet-heading span {
  font-size: 12px;
  font-weight: 800;
}

.junction-sheet-map .point-detail {
  position: relative;
  align-self: start;
  overflow: auto;
  width: auto;
  height: auto;
  max-height: calc(100vh - 24px);
  margin: 12px;
  padding: 12px;
  border: 1px solid #cfd5d0;
  border-radius: 10px;
  color: #111;
  background: #fff;
  box-shadow: 0 8px 22px rgba(17, 24, 18, 0.16);
}

.junction-sheet-map .ops-detail-card {
  padding: 0;
  color: #111;
  background: transparent;
  box-shadow: none;
}

.junction-sheet-map .ops-detail-card h3 {
  margin: 8px 0 10px;
  color: #111;
  font-size: 16px;
  line-height: 1.3;
}

.junction-sheet-map .ops-point-distance {
  color: #995d00;
  font-size: 14px;
}

.junction-sheet-map .ops-times {
  border-color: #cbd4cd;
  background: #f4f7f5;
}

.junction-sheet-map .ops-times > div {
  border-color: #cbd4cd;
}

.junction-sheet-map .ops-times span {
  color: #667168;
}

.junction-sheet-map .ops-times strong {
  color: #111;
}

.junction-sheet-map .naver-info-window .ops-times span {
  color: #616760;
}

.junction-sheet-map .naver-info-window .ops-times strong {
  color: #111;
}

.junction-sheet-map .ops-detail-card dl > div {
  border-color: #d8ddd9;
  padding-top: 10px;
}

.junction-sheet-map .ops-detail-card dt {
  margin-bottom: 5px;
  color: #995d00;
  font-size: 11px;
}

.junction-sheet-map .ops-detail-card dd {
  color: #222;
  font-size: 12px;
  line-height: 1.45;
}

.junction-sheet-map .ops-draft-warning.is-primary {
  border-color: #e66a5d;
  color: #fff;
  background: #b42318;
}

.junction-sheet-map .ops-draft-warning.is-stamp {
  border-color: #f4c849;
  color: #f4d66d;
  background: rgba(244, 200, 73, 0.08);
}

.junction-sheet-map .ops-draft-warning.is-final {
  border-left-color: #f04438;
  color: #fff;
  background: #4c211b;
}

.junction-sheet-page .naver-ops-overlay:not(.is-sheet-target) .naver-ops-label {
  display: none;
}

.junction-sheet-page .naver-ops-overlay:not(.is-sheet-target) .ops-marker {
  opacity: 0.38;
  transform: scale(0.82);
  transform-origin: 50% 100%;
}

.junction-sheet-page .naver-ops-overlay.is-sheet-target .naver-ops-label {
  display: block !important;
}

.junction-sheet-page .naver-info-window {
  width: 360px;
  max-width: none;
  padding: 16px;
  border-radius: 3px;
  color: #111;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.26);
}

.junction-sheet-page:not(.sheet-ready) .junction-sheet-map {
  opacity: 0;
}

.junction-sheet-page.sheet-ready .junction-sheet-map {
  opacity: 1;
}

.junction-sheet-support {
  display: none !important;
}

.route-capture-page {
  overflow: hidden !important;
}

.route-capture-page .operations-map-shell {
  position: fixed !important;
  z-index: 99999 !important;
  inset: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.route-capture-page .map-toolbar,
.route-capture-page .point-detail {
  display: none !important;
}

.route-capture-page .operations-map-layout,
.route-capture-page #operations-map {
  display: block !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
}

.route-capture-page #operations-map a[href="#"],
.route-capture-page #operations-map a[href*="legal.html"] {
  display: none !important;
}

@media (max-width: 900px) {
  .operations-print-download {
    align-items: flex-start;
    flex-direction: column;
  }

  .junction-sheet-map .operations-map-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}

.operations-caution {
  margin-top: 34px;
  padding: 24px;
  border-left: 5px solid var(--danger);
  background: #fff;
}

.operations-caution h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.operations-caution p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 1120px) {
  .operations-map-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
  }

  .map-toolbar {
    align-items: flex-start;
  }

  .map-toolbar-left {
    align-items: flex-start;
  }

  .map-filter-list {
    max-width: 520px;
  }
}

@media (max-width: 860px) {
  .operations-temporary-status .page-status-inner {
    width: calc(100% - 28px);
  }

  .temporary-status-copy {
    align-items: flex-start;
  }

  .operations-main {
    width: min(100% - 28px, 720px);
    padding-top: 28px;
  }

  .operations-intro {
    grid-template-columns: 1fr;
  }

  .operations-section-head {
    display: block;
  }

  .operations-section-head .section-note {
    margin-top: 8px;
    text-align: left;
  }

  .map-toolbar {
    display: block;
    padding: 13px;
  }

  .map-toolbar-left {
    display: block;
  }

  .map-filter-list {
    margin-top: 10px;
  }

  .map-toolbar-actions {
    margin-top: 10px;
  }

  .map-count {
    margin-left: auto;
  }

  .map-distance-status {
    margin-left: 0;
  }

  .operations-map-layout {
    display: block;
    height: auto;
    min-height: 0;
  }

  #operations-map {
    height: 66vh;
    min-height: 66vh;
  }

  .point-detail {
    margin: 10px;
    max-height: none;
    border-top: 1px solid #cfd5d0;
    border-left: 1px solid #cfd5d0;
  }

  .operations-map-shell.is-expanded .operations-map-layout {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    height: calc(100vh - 132px);
  }

  .operations-map-shell.is-expanded #operations-map {
    min-height: 0;
  }

  .operations-map-shell.is-expanded .point-detail {
    max-height: 38vh;
  }
}

@media (max-width: 560px) {
  .staffing-download-row,
  .staffing-time-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .staffing-time-adjust,
  .staffing-download {
    justify-content: center;
    width: 100%;
  }

  .staffing-time-current,
  .staffing-download-note {
    text-align: center;
  }

  .operations-time-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 14px;
  }

  .operations-time-dialog-shell {
    max-height: calc(100dvh - 20px);
  }

  .operations-time-dialog-head {
    padding: 19px 17px 15px;
  }

  .operations-time-dialog-head h2 {
    font-size: 23px;
  }

  .operations-time-dialog-body {
    padding: 17px;
  }

  .operations-time-adjust-grid-head {
    display: none;
  }

  .operations-time-adjust-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .operations-time-adjust-row > div {
    padding: 13px 12px;
  }

  .operations-time-adjust-row > div + div {
    border-left: 0;
  }

  .operations-time-adjust-controls {
    border-left: 1px solid #2d322e !important;
  }

  .operations-time-anchor-grid,
  .operations-time-linked-preview {
    grid-template-columns: 1fr;
  }

  .operations-time-anchor-card {
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .operations-time-anchor-card > div,
  .operations-time-anchor-card > output {
    grid-column: auto;
  }

  .operations-time-linked-preview > div + div {
    border-top: 1px solid #343934;
    border-left: 0;
  }

  .operations-time-saved-anchors {
    flex-direction: column;
  }

  .operations-time-preview {
    grid-column: auto;
    border-top: 1px solid #2d322e;
  }

  .operations-time-preview + .operations-time-preview {
    border-left: 1px solid #2d322e !important;
  }

  .operations-time-preview span {
    display: block;
  }

  .operations-time-preview output {
    font-size: 11px;
  }

  .operations-time-dialog-actions,
  .operations-time-confirm > div {
    display: grid;
    grid-template-columns: 1fr;
  }

  .operations-time-final,
  .operations-time-confirm button {
    width: 100%;
  }

  .operations-temporary-status .page-status-inner {
    width: calc(100% - 20px);
    padding: 22px 0;
  }

  .temporary-status-copy {
    display: block;
  }

  .temporary-status-label {
    display: inline-flex;
    margin-bottom: 13px;
  }

  .operations-temporary-status h2 {
    font-size: 28px;
  }

  .operations-main {
    width: min(100% - 20px, 520px);
  }

  .operations-intro > div,
  .timing-model {
    padding: 20px;
    border-radius: 14px;
  }

  .timing-model dl > div {
    grid-template-columns: 74px 1fr;
  }

  .operations-map-shell {
    border-radius: 14px;
  }

  .map-filter,
  .map-action {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 12px;
  }

  #operations-map {
    height: 60vh;
    min-height: 60vh;
  }

  .point-detail {
    padding: 10px;
  }

  .ops-detail-card h3 {
    font-size: 22px;
  }

  .ops-times {
    grid-template-columns: 1fr;
  }

  .ops-times > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 10px;
    text-align: left;
  }

  .ops-times > div + div {
    border-top: 1px solid #3c4941;
    border-left: 0;
  }

  .ops-times span {
    margin: 0;
  }

  .ops-popup .ops-times > div + div {
    border-top-color: #d3d6d3;
  }

  .leaflet-popup-content {
    width: 250px !important;
    margin: 15px;
  }

  .operations-caution {
    padding: 20px;
  }
}
.naver-ops-overlay {
  cursor: pointer;
  position: relative;
  width: 44px;
  height: 42px;
}

.naver-ops-label {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 5px;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.2);
  display: none;
  font-size: 12px;
  left: 22px;
  padding: 3px 6px;
  position: absolute;
  top: -5px;
  white-space: nowrap;
}

.naver-ops-label.is-stacked {
  left: 44px;
  line-height: 1.25;
  min-width: 0;
  width: max-content;
  white-space: nowrap;
}

.naver-ops-label.is-stacked strong,
.naver-ops-label.is-stacked .naver-ops-name {
  display: block;
}

.naver-ops-label.is-stacked .naver-ops-name {
  overflow: visible;
}

.naver-ops-label.is-stacked .naver-ops-name-line {
  display: block;
  white-space: nowrap;
}

.labels-visible .naver-ops-label {
  display: block;
}

.naver-distance-overlay {
  display: block;
  transform: translate(-50%, -50%);
}

.naver-info-window {
  max-height: 380px;
  max-width: 400px;
  overflow: auto;
  padding: 12px;
}

.route-surface-label {
  border-radius: 5px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.32);
  display: block;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  padding: 2px 5px;
  pointer-events: none;
  position: absolute;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.route-surface-label-forest {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #1769c2;
  color: #0b4f9c;
}

.route-surface-label-numbered {
  background: #111111;
  border: 1px solid #ffffff;
  color: #ffffff;
  min-width: 22px;
  text-align: center;
}
