/* 마이페이지 — index.html 톤(제설관제 변수)과 맞춤 */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.mypage-body {
    min-height: 100vh;
    /*background: var(--fx-page-grad, linear-gradient(155deg, #e1f5fe 0%, #b3e5fc 38%, #e3f2fd 72%, #f5fbff 100%));*/
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
}

#mypage-top-root {
  flex-shrink: 0;
}

.mypage-main {
  flex: 1 0 auto;
  width: 100%;
  padding: 22px 20px 32px;
  box-sizing: border-box;
}

/* 겨울 배경 — PNG 없이 index 라이트 톤 그라데이션 + 하단 은은한 눈빛 (눈 내림·스파클은 레이어 유지) */
.mypage-main--winter {
    --mypage-winter-sparkle-h: 34vh;
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - var(--top-header-match-h, 96px));
    /*background-color: #e8f4fc;
    background-image:
    radial-gradient(ellipse 88% 42% at 50% 100%, rgba(179, 229, 252, 0.72) 0%, transparent 58%),
    radial-gradient(ellipse 55% 38% at 0% 0%, rgba(255, 255, 255, 0.65) 0%, transparent 52%),
    radial-gradient(ellipse 48% 36% at 100% 8%, rgba(227, 242, 253, 0.55) 0%, transparent 48%),
    linear-gradient(
      165deg,
      #f8fcff 0%,
      #eef6fc 28%,
      #e3f2fd 52%,
      #d6ebf9 78%,
      #cfe8f7 100%
    );*/
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
}

.mypage-main--winter > .mypage-inner {
  position: relative;
  z-index: 2;
}

.mypage-snow-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* 하단 눈 더미(언덕) */
    .mypage-snow-bg .snow-layer {
        position: absolute;
        bottom: -150px;
        width: 110%;
        animation: sway 10s ease-in-out infinite;
    }

html[data-theme="dark"] .mypage-snow-bg .snow-layer {
    background: linear-gradient( to top, rgba(248, 250, 252, 0.22) 0%, rgba(148, 163, 184, 0.1) 55%, transparent 100% );
    box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.35), 0 -20px 40px rgba(56, 189, 248, 0.08);
    animation: sway 8s ease-in-out infinite;
}

.layer1 {
    animation: sway1 12s ease-in-out infinite;
}

.layer2 {
    animation: sway2 1s ease-in-out infinite;
}

.layer3 {
    animation: sway3 16s ease-in-out infinite;
}

@keyframes sway1 {
    0% {
        transform: translateX(0) translateY(0);
    }

    50% {
        transform: translateX(10px) translateY(-15px);
    }

    100% {
        transform: translateX(0) translateY(0);
    }
}

@keyframes sway2 {
    0% {
        transform: translateX(0) translateY(0);
    }

    50% {
        transform: translateX(-20px) translateY(10px);
    }

    100% {
        transform: translateX(0) translateY(0);
    }
}

@keyframes sway3 {
    0% {
        transform: translateX(0) translateY(0);
    }

    50% {
        transform: translateX(15px) translateY(-20px);
    }

    100% {
        transform: translateX(0) translateY(0);
    }
}

.mypage-snow-fall {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.mypage-snow-fall__flake {
  position: absolute;
  top: -6%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.75);
  animation: mypage-snow-fall linear infinite;
}

@keyframes mypage-snow-fall {
  0% {
    transform: translate3d(0, -8vh, 0);
    opacity: 0;
  }
  8% {
    opacity: 0.85;
  }
  100% {
    transform: translate3d(var(--snow-drift, 0), 108vh, 0);
    opacity: 0.12;
  }
}

.mypage-snow-sparkle {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--mypage-winter-sparkle-h, 38vh);
  min-height: 140px;
  z-index: 1;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 18%, #000 42%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 18%, #000 42%);
}

.mypage-snow-sparkle__shimmer {
  position: absolute;
  inset: -30% -15%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 38%,
    rgba(255, 255, 255, 0.18) 45%,
    rgba(255, 255, 255, 0.52) 50%,
    rgba(255, 255, 255, 0.18) 55%,
    transparent 62%,
    transparent 100%
  );
  background-size: 240% 100%;
  animation: mypage-snow-shimmer 7s ease-in-out infinite;
}

.mypage-snow-sparkle__shimmer--alt {
  inset: -20% -25%;
  transform: scaleX(-1);
  opacity: 0.75;
  animation-duration: 11s;
  animation-delay: -3.5s;
}

.mypage-snow-sparkle__dots {
  position: absolute;
  inset: 0;
  opacity: 0.78;
  background-image:
    radial-gradient(2px 2px at 6% 55%, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(1px 1px at 14% 72%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1.5px 1.5px at 22% 88%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 31% 64%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(2px 2px at 38% 78%, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(1px 1px at 45% 92%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 52% 58%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1px 1px at 58% 74%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(2px 2px at 64% 86%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 71% 62%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 78% 80%, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(1px 1px at 84% 68%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(2px 2px at 90% 90%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1px 1px at 96% 56%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(2.5px 2.5px at 4% 38%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 18% 48%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 27% 42%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1px 1px at 42% 35%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(2px 2px at 56% 46%, rgba(255, 255, 255, 0.92), transparent),
    radial-gradient(1px 1px at 68% 38%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 82% 44%, rgba(255, 255, 255, 0.88), transparent),
    radial-gradient(1px 1px at 93% 36%, rgba(255, 255, 255, 0.72), transparent);
  animation: mypage-snow-twinkle 2.4s ease-in-out infinite alternate;
}

.mypage-snow-sparkle__dots--alt {
  opacity: 0.55;
  transform: scale(1.04);
  animation-duration: 3.6s;
  animation-delay: -1.2s;
  background-image:
    radial-gradient(1px 1px at 9% 82%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(2px 2px at 17% 66%, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(1.5px 1.5px at 25% 94%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1px 1px at 33% 58%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(2px 2px at 41% 76%, rgba(255, 255, 255, 0.92), transparent),
    radial-gradient(1px 1px at 49% 88%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 57% 52%, rgba(255, 255, 255, 0.88), transparent),
    radial-gradient(1px 1px at 63% 70%, rgba(255, 255, 255, 0.72), transparent),
    radial-gradient(2px 2px at 69% 84%, rgba(255, 255, 255, 0.94), transparent),
    radial-gradient(1px 1px at 76% 60%, rgba(255, 255, 255, 0.78), transparent),
    radial-gradient(1.5px 1.5px at 83% 92%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 88% 54%, rgba(255, 255, 255, 0.76), transparent),
    radial-gradient(2px 2px at 94% 78%, rgba(255, 255, 255, 0.88), transparent),
    radial-gradient(1px 1px at 3% 64%, rgba(255, 255, 255, 0.82), transparent),
    radial-gradient(1.5px 1.5px at 12% 44%, rgba(255, 255, 255, 0.86), transparent),
    radial-gradient(1px 1px at 24% 52%, rgba(255, 255, 255, 0.74), transparent),
    radial-gradient(2px 2px at 36% 40%, rgba(255, 255, 255, 0.93), transparent),
    radial-gradient(1px 1px at 48% 62%, rgba(255, 255, 255, 0.77), transparent),
    radial-gradient(1.5px 1.5px at 61% 48%, rgba(255, 255, 255, 0.84), transparent),
    radial-gradient(1px 1px at 74% 42%, rgba(255, 255, 255, 0.73), transparent),
    radial-gradient(2px 2px at 86% 58%, rgba(255, 255, 255, 0.91), transparent),
    radial-gradient(1px 1px at 97% 46%, rgba(255, 255, 255, 0.79), transparent);
}

.mypage-snow-sparkle__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mypage-snow-sparkle__star {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 6px 1px rgba(255, 255, 255, 0.85),
    0 0 14px 2px rgba(200, 230, 255, 0.55);
  transform: translate(-50%, -50%) scale(var(--sparkle-scale, 1));
  animation: mypage-sparkle-pulse var(--sparkle-dur, 2.4s) ease-in-out infinite;
  animation-delay: var(--sparkle-delay, 0s);
}

.mypage-snow-sparkle__star--soft {
  box-shadow:
    0 0 4px 1px rgba(255, 255, 255, 0.65),
    0 0 10px 1px rgba(210, 235, 255, 0.4);
}

@keyframes mypage-snow-shimmer {
  0%,
  100% {
    background-position: 0% 0%;
    opacity: 0.5;
  }
  50% {
    background-position: 100% 0%;
    opacity: 1;
  }
}

@keyframes mypage-snow-twinkle {
  0% {
    opacity: 0.4;
    filter: brightness(1);
  }
  100% {
    opacity: 0.88;
    filter: brightness(1.22);
  }
}

@keyframes mypage-sparkle-pulse {
  0%,
  100% {
    opacity: 0.15;
    transform: translate(-50%, -50%) scale(calc(var(--sparkle-scale, 1) * 0.65));
  }
  45% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(calc(var(--sparkle-scale, 1) * 1.15));
  }
}

@media (prefers-reduced-motion: reduce) {
  .mypage-snow-fall__flake,
  .mypage-snow-sparkle__shimmer,
  .mypage-snow-sparkle__dots,
  .mypage-snow-sparkle__star {
    animation: none !important;
  }

  .mypage-snow-sparkle__dots,
  .mypage-snow-sparkle__dots--alt {
    opacity: 0.5;
  }

  .mypage-snow-sparkle__star {
    opacity: 0.55;
  }
}

.mypage-inner {
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
}

.mypage-grid {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

@media (max-width: 1100px) {
  .mypage-grid {
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  }

  .mypage-rail {
    grid-column: 1 / -1;
    max-width: 520px;
  }
}

@media (max-width: 900px) {
  .mypage-grid {
    grid-template-columns: 1fr;
  }

  .mypage-rail {
    max-width: none;
  }
}

/* mypage-layout.js 가 partial 을 넣기 전 — index 상단 블록 높이와 동일 */
#mypage-top-root:empty {
  flex-shrink: 0;
  min-height: var(--top-header-match-h, 96px);
  padding: 16px 26px;
  box-sizing: border-box;
  background: var(--fx-nav-grad);
  color: var(--fx-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 24px rgba(13, 71, 161, 0.28);
  position: relative;
  z-index: 9000;
}

@media (max-width: 576px) {
  #mypage-top-root:empty {
    padding: 10px 12px;
  }
}

#mypage-aside-root {
  min-width: 0;
}

#mypage-aside-root:empty {
  min-height: 22rem;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: var(--fx-radius);
  background-color: rgba(255, 255, 255, 0.92);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 12px,
    rgba(13, 71, 161, 0.045) 12px,
    rgba(13, 71, 161, 0.045) 48px
  );
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--fx-shadow-sm), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  padding: 18px 16px;
}

@media (prefers-reduced-motion: no-preference) {
  #mypage-aside-root:empty {
    animation: mypage-aside-skel-pulse 1.8s ease-in-out infinite;
  }
}

@keyframes mypage-aside-skel-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.88;
  }
}

.mypage-aside {
  background: var(--fx-glass);
  border-radius: var(--fx-radius);
  box-shadow: var(--fx-shadow-sm), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  border: 1px solid rgba(255, 255, 255, 0.95);
  padding: 18px 16px;
}

.mypage-aside-title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--fx-royal-deep);
}

.mypage-nav {
    flex-direction: column;
    gap: 4px;
}

.mypage-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  border-radius: var(--fx-radius-sm);
  font-size: 15px;
  font-weight: 600;
  color: var(--fx-text);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mypage-nav-link:hover {
  background: rgba(25, 118, 210, 0.08);
  color: var(--fx-royal-deep);
}

.mypage-nav-link.is-active {
  background: linear-gradient(135deg, rgba(25, 118, 210, 0.14), rgba(30, 136, 229, 0.1));
  border-color: rgba(25, 118, 210, 0.22);
  color: var(--fx-royal-deep);
}

.mypage-nav-link[aria-hidden="true"] {
  display: none !important;
}

.mypage-nav-link[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.mypage-nav-link--locked {
  opacity: 0.55;
  cursor: not-allowed;
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.45);
}

.mypage-nav-chev {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  opacity: 0.55;
}

.mypage-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.mypage-card {
  background: var(--fx-glass);
  border-radius: var(--fx-radius);
  box-shadow: var(--fx-shadow), 0 1px 0 rgba(255, 255, 255, 0.95) inset;
  border: 1px solid rgba(255, 255, 255, 0.95);
  padding: 22px 22px 24px;
}

.mypage-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.mypage-card-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fx-text);
}

.mypage-req {
  color: var(--fx-accent-red);
  font-weight: 800;
  margin-right: 2px;
}

.mypage-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.mypage-select.fx-select-trigger,
.mypage-input {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--fx-text);
  border-radius: var(--fx-radius-sm);
  border: 1px solid rgba(13, 71, 161, 0.18);
  background: var(--fx-white);
  padding: 10px 12px;
  min-height: 42px;
  box-sizing: border-box;
}

.mypage-select.fx-select-trigger {
  min-width: 140px;
  cursor: pointer;
}

.mypage-input {
  min-width: 160px;
  width: 200px;
  max-width: 100%;
}

.mypage-input:focus,
.mypage-select.fx-select-trigger:focus-visible,
.fx-select-wrap.is-open .mypage-select.fx-select-trigger {
  outline: none;
  border-color: var(--fx-royal);
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.2);
}

.mypage-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  border: none;
  border-radius: var(--fx-radius-sm);
  padding: 10px 18px;
  min-height: 42px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  white-space:nowrap;
}

.mypage-btn:active {
  transform: translateY(1px);
}

.mypage-btn--primary {
  color: var(--fx-white);
  white-space: nowrap;
  background: linear-gradient(135deg, var(--fx-royal-mid), var(--fx-royal-deep));
  box-shadow: 0 4px 14px rgba(13, 71, 161, 0.35);
}

.mypage-btn--primary:hover {
  filter: brightness(1.05);
}

.mypage-btn--ghost {
  color: var(--fx-royal-deep);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(13, 71, 161, 0.2);
}

.mypage-btn--ghost:hover {
  background: var(--fx-white);
}

/* index.html vehicle-search__reset — 마이페이지 새로고침·초기화 */
.mypage-toolbar .vehicle-search__reset,
.unit-field--actions .vehicle-search__reset,
.stock-field--actions .vehicle-search__reset {
  flex-shrink: 0;
}

.unit-field--actions,
.stock-field--actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.mypage-btn--danger {
  color: var(--fx-white);
  background: linear-gradient(135deg, #ef5350, var(--fx-accent-red));
  box-shadow: 0 4px 14px rgba(229, 57, 53, 0.3);
}

.mypage-btn--danger:hover {
  filter: brightness(1.04);
}

.mypage-btn--sm {
  min-height: 36px;
  padding: 7px 14px;
  font-size: 14px;
}

.mypage-table-wrap {
  overflow-x: auto;
  border-radius: var(--fx-radius-sm);
  border: 1px solid rgba(13, 71, 161, 0.12);
}

.mypage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--fx-white);
}

.mypage-table th,
.mypage-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(13, 71, 161, 0.1);
}

.mypage-table th {
  font-weight: 700;
  color: var(--fx-text);
  background: linear-gradient(180deg, #e3f2fd 0%, #f0f7ff 100%);
  white-space: nowrap;
}

.mypage-table tbody tr:last-child th,
.mypage-table tbody tr:last-child td {
  border-bottom: none;
}

.mypage-table td {
  color: var(--fx-text);
}

.mypage-empty {
  text-align: center;
  color: var(--fx-text-muted);
  font-weight: 600;
  padding: 28px 16px !important;
}

.mypage-table-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* 지역·주변지역 목록: 레거시 표처럼 가운데 정렬 + 헤더 상단 강조선 */
#region-mgmt-card .mypage-table th,
#region-mgmt-card .mypage-table td,
#near-region-card .mypage-table th,
#near-region-card .mypage-table td {
  text-align: center;
  vertical-align: middle;
}

#region-mgmt-card .mypage-table thead tr th,
#near-region-card .mypage-table thead tr th {
  border-top: 3px solid var(--fx-royal-mid, #0d6efd);
}

/* 차량·재고·동원·단말기 관리 목록 표: th/td 가운데 정렬 */
body[data-mypage-active="car-list"] .mypage-table th,
body[data-mypage-active="car-list"] .mypage-table td,
body[data-mypage-active="stock-list02"] .mypage-table th,
body[data-mypage-active="stock-list02"] .mypage-table td,
body[data-mypage-active="mobilization-snowfall3"] .mypage-table th,
body[data-mypage-active="mobilization-snowfall3"] .mypage-table td,
body[data-mypage-active="unit-list"] .mypage-table th,
body[data-mypage-active="unit-list"] .mypage-table td {
  text-align: center;
  vertical-align: middle;
}

.mypage-near-icon-fallback {
  font-weight: 600;
  color: var(--fx-text-muted);
}

.mypage-near-symbol-img {
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
}

#near-region-card .mypage-table-wrap--scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#near-region-card .mypage-addr-cell {
  max-width: 14rem;
  text-align: left !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#near-region-card code.mypage-code {
  font-size: 0.78rem;
  font-weight: 600;
  word-break: break-all;
}

.mypage-pg {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 18px 0 0;
}

.mypage-pg a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--fx-text);
  background: var(--fx-white);
  border: 1px solid rgba(13, 71, 161, 0.15);
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.mypage-pg a:hover {
  border-color: var(--fx-royal);
  color: var(--fx-royal-deep);
}

.mypage-pg a.mypage-pg-ico {
  padding: 0 8px;
  color: var(--fx-text);
}

.mypage-pg a.mypage-pg-ico svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mypage-pg a.mypage-pg-ico svg path {
  fill: none;
}

.mypage-pg a.mypage-pg-ico:hover {
  color: var(--fx-royal-deep);
}

.mypage-pg .is-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--fx-royal-mid), var(--fx-royal-deep));
  color: var(--fx-white);
  border: 1px solid transparent;
}

.mypage-card-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

/* 마이페이지 상단 — index .top-inner 실높이에 맞춤 (줄 수가 적어도 동일 블록 높이 유지) */
#mypage-top-root .top-inner {
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  min-height: var(--top-header-match-h, 96px);
  box-sizing: border-box;
}

#mypage-top-root .top-left {
  flex: 1 1 auto;
  min-width: 0;
  gap: 18px;
}

#mypage-top-root .top-brand {
  flex: 0 0 auto;
  min-width: 0;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
}

#mypage-top-root .top-brand:hover,
#mypage-top-root .top-brand:visited {
  color: inherit;
}

#mypage-top-root .top-right {
  flex: 0 0 auto;
  width: auto;
  margin-left: auto;
}

@media (max-width: 880px) {
  #mypage-top-root .top-inner {
    flex-direction: row;
    align-items: center;
  }

  #mypage-top-root .top-right {
    width: auto;
    justify-content: flex-end;
  }

  #mypage-top-root .top-brand {
    width: auto;
    border-left: none;
    padding-left: 0;
    margin-left: 0;
  }
}

@media (max-width: 576px) {
  #mypage-top-root .top-brand {
    width: auto;
    justify-content: flex-start;
    text-align: left;
  }

  #mypage-top-root .top-brand-text {
    align-items: flex-start;
  }
}

#mypage-top-root .mypage-top-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--fx-radius-sm);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 2px 8px rgba(0, 48, 120, 0.18);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

#mypage-top-root .mypage-top-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
}

#mypage-top-root .mypage-top-link:visited {
  color: rgba(255, 255, 255, 0.95);
}

#mypage-top-root .mypage-top-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

/* 차량 등록 폼 (mypage_car_input01.html) */
.mypage-car-page-title {
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--fx-royal-deep);
}

.mypage-card-subhead {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fx-royal-deep);
}

.mypage-card-subhead-mark {
  font-size: 0.95em;
  opacity: 0.95;
}

.mypage-card-subhead-mark--chev {
  font-weight: 900;
  letter-spacing: 0;
  margin-right: 2px;
}

.mypage-car-form.mypage-table th {
  width: 11rem;
  background: #eceff1;
  color: var(--fx-text);
  font-weight: 600;
  border-right: 1px solid rgba(84, 110, 122, 0.22);
  vertical-align: middle;
}

.mypage-car-form.mypage-table td {
  background: var(--fx-white);
  vertical-align: middle;
}

.mypage-th-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mypage-th-label .mypage-req {
  margin-right: 0;
  line-height: 1;
}

.mypage-form-table th {
  width: 14rem;
  vertical-align: middle;
}

.mypage-form-table td {
  vertical-align: middle;
}

.mypage-form-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mypage-form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.mypage-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--fx-text);
  cursor: pointer;
}

/* 체크·라디오 박스: css/fx-choice.css */
.mypage-radio-label input {
  margin: 0;
}

.mypage-textarea {
  width: 100%;
  max-width: 100%;
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--fx-text);
  border-radius: var(--fx-radius-sm);
  border: 1px solid rgba(13, 71, 161, 0.18);
  background: var(--fx-white);
  padding: 12px 14px;
  box-sizing: border-box;
}

.mypage-textarea:focus {
  outline: none;
  border-color: var(--fx-royal);
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.2);
}

.mypage-car-icon-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.mypage-car-icon-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--fx-radius-sm);
  border: 1px solid rgba(13, 71, 161, 0.15);
  background: #fafafa;
}

/* 주변지역 등록 (mypage_user_region_input02.html) */
.mypage-near-icon-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--fx-radius-sm);
  border: 1px solid rgba(13, 71, 161, 0.15);
  background: linear-gradient(180deg, #fafafa 0%, #eceff1 100%);
}

.mypage-near-map-cell {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 20px;
  align-items: start;
}

.mypage-near-map-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.mypage-map-placeholder {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  border-radius: var(--fx-radius-sm);
  border: 1px solid rgba(84, 110, 122, 0.28);
  background:
    linear-gradient(135deg, rgba(227, 242, 253, 0.9) 0%, rgba(207, 216, 220, 0.75) 50%, rgba(236, 239, 241, 0.95) 100%),
    repeating-linear-gradient(-12deg, transparent, transparent 8px, rgba(255, 255, 255, 0.35) 8px, rgba(255, 255, 255, 0.35) 9px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--fx-text-muted);
  box-sizing: border-box;
    overflow: hidden;
}

.mypage-map-placeholder.kakao-map-active {
  display: block;
  padding: 0;
  font-size: 1rem;
  font-weight: 400;
  color: #1f2937;
  cursor: crosshair;
  background: #e8eef3;
}

.mypage-near-address-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.mypage-near-address-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--fx-text);
}

.mypage-near-address-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.mypage-input--addr-search {
  cursor: pointer;
  background-color: #fff;
}

.mypage-input--addr-search:focus {
  outline: 2px solid rgba(33, 150, 243, 0.45);
  outline-offset: 1px;
}

.mypage-map-placeholder .map-sdk-error {
  margin: 0;
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: #b91c1c;
  text-align: center;
}

/* 주소 검색 레이어 (다음 우편번호 embed) */
.mypage-addr-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.mypage-addr-modal[hidden] {
  display: none !important;
}

.mypage-addr-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.mypage-addr-modal__panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(90vh, 640px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--fx-radius);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

.mypage-addr-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(13, 71, 161, 0.12);
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

.mypage-addr-modal__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--fx-royal-deep);
}

.mypage-addr-modal__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: var(--fx-text-muted);
  cursor: pointer;
}

.mypage-addr-modal__close:hover {
  background: rgba(13, 71, 161, 0.08);
  color: var(--fx-royal-deep);
}

.mypage-addr-modal__embed {
  min-height: 420px;
  height: 420px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .mypage-near-map-cell {
    grid-template-columns: 1fr;
  }

  .mypage-map-placeholder {
    max-width: 100%;
  }
}

/* 창고 입출고 목록 (mypage_stock_inout_list03.html) · 재고 마스터 (mypage_stock_list02.html) */
.mypage-stock-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 12px;
  max-width: 100%;
}

.mypage-stock-qty-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--fx-text);
}

.mypage-input--stock-qty {
  width: 5.5rem;
  min-width: 4rem;
  min-height: 38px;
  padding: 8px 10px;
}

.mypage-io-in {
  color: var(--fx-royal-deep);
  font-weight: 800;
}

.mypage-io-out {
  color: #c62828;
  font-weight: 800;
}

/* 동원 관리 툴바 + 입력 표(.mypage-table) */
.mypage-mobilization-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px 20px;
  max-width: 100%;
}

.mypage-mobilization-tabs {
  margin: 0;
  padding: 0;
  border: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.mypage-radio-label--compact {
  font-size: 14px;
  gap: 6px;
}

.mypage-mobilization-dates {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.mypage-select--date.fx-select-trigger {
  min-width: 4.5rem;
  width: auto;
  padding-left: 10px;
  padding-right: 28px;
  font-size: 14px;
}

/* 동원 입력 표: 공통 .mypage-table 안 좁은 입력 */
.mypage-table .mypage-mobilization-snow {
  white-space: nowrap;
}

.mypage-table .mypage-mobilization-snow .mypage-input--snow {
  display: inline-block;
  width: 4.5rem;
  min-width: 4rem;
  min-height: 38px;
  padding: 8px 8px;
  text-align: left;
  vertical-align: middle;
}

.mypage-table .mypage-mobilization-unit {
  margin-left: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--fx-text-muted);
}

.mypage-table .mypage-input--qty {
  width: 3.5rem;
  min-width: 3rem;
  max-width: 100%;
  min-height: 38px;
  padding: 8px 6px;
  text-align: left;
}

.mypage-table .mypage-input--eq-name {
  width: 100%;
  min-width: 5rem;
  max-width: 8.5rem;
  min-height: 38px;
  padding: 8px 8px;
}

.mypage-btn--outline {
  border: 1px solid rgba(84, 110, 122, 0.45);
  background: #fafafa;
  color: var(--fx-text);
  box-shadow: none;
  font-weight: 700;
}

.mypage-btn--outline:hover {
  background: #fff;
  border-color: rgba(13, 71, 161, 0.35);
}

.mypage-btn--dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: linear-gradient(180deg, #546e7a 0%, #455a64 45%, #37474f 100%);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 8px rgba(38, 50, 56, 0.25);
}

.mypage-btn--dark:hover {
  filter: brightness(1.06);
}

.mypage-btn--dark:focus-visible {
  outline: 2px solid var(--fx-royal);
  outline-offset: 2px;
}

.mypage-btn--link {
  text-decoration: none;
}

.mypage-btn-ico {
  flex-shrink: 0;
  opacity: 0.95;
}

.mypage-card-footer--gap {
  gap: 10px;
  align-items: center;
}

/* 오른쪽 패널 — 제설현황·차량·지도 링크 */
.mypage-rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  position: sticky;
  top: 16px;

  display:none
}

.mypage-rail-block {
  background: var(--fx-glass);
  border-radius: var(--fx-radius);
  box-shadow: var(--fx-shadow-sm), 0 1px 0 rgba(255, 255, 255, 0.95) inset;
  border: 1px solid rgba(255, 255, 255, 0.95);
  padding: 16px;
  box-sizing: border-box;
}

.mypage-rail-heading {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fx-royal-deep);
}

.mypage-rail-snow-card {
  margin: 0;
}

.mypage-rail .snow-status-donut-wrap {
  width: 168px;
  height: 168px;
  margin-bottom: 10px;
}

.mypage-rail-vehicles.map-live-stats--stack {
  gap: 10px !important;
}

.mypage-rail-block--map {
  padding: 14px 16px;
}

.mypage-rail-map-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--fx-radius-sm);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--fx-royal-mid) 0%, var(--fx-royal-deep) 100%);
  border: 1px solid rgba(13, 71, 161, 0.35);
  box-shadow: 0 4px 16px rgba(13, 71, 161, 0.28);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.mypage-rail-map-btn:hover {
  filter: brightness(1.06);
  color: #fff;
}

.mypage-rail-map-btn:focus-visible {
  outline: 2px solid var(--fx-royal);
  outline-offset: 2px;
}

.mypage-rail-map-ico {
  flex-shrink: 0;
  opacity: 0.95;
}

/* 다크 모드 — index 다크 그라데이션과 통일 (PNG 없음) */
html[data-theme="dark"] body.mypage-body {
    /*background: var(--fx-page-grad);*/
    background-attachment: fixed;
}

html[data-theme="dark"] .mypage-main--winter {
  background-color: #1b2530;
  background-image:
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(56, 189, 248, 0.14) 0%, transparent 58%),
    radial-gradient(ellipse 50% 36% at 100% 0%, rgba(96, 165, 250, 0.1) 0%, transparent 52%),
    var(--fx-page-grad);
}

html[data-theme="dark"] .mypage-main--winter .mypage-snow-sparkle {
  opacity: 0.38;
}

html[data-theme="dark"] .mypage-snow-fall__flake {
  background: rgba(200, 230, 255, 0.55);
  box-shadow: 0 0 8px rgba(137, 202, 255, 0.35);
}

/* 다크 모드 — 표·폼 표 가독성 (밝은 헤더/옅은 선 보정) */
html[data-theme="dark"] .mypage-card {
  border-color: rgba(137, 202, 255, 0.14);
  box-shadow: var(--fx-shadow), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

html[data-theme="dark"] .mypage-table-wrap {
  border-color: rgba(107, 183, 255, 0.32);
  background: rgba(28, 36, 48, 0.65);
}

html[data-theme="dark"] .mypage-table {
  background: rgba(32, 40, 52, 0.96);
}

html[data-theme="dark"] .mypage-table th,
html[data-theme="dark"] .mypage-table td {
  border-bottom-color: rgba(107, 183, 255, 0.26);
  color: var(--fx-text);
}

html[data-theme="dark"] .mypage-table th {
  background: linear-gradient(
    180deg,
    rgba(38, 72, 110, 0.92) 0%,
    rgba(32, 42, 56, 0.98) 100%
  );
  color: #e8f2fc;
}

html[data-theme="dark"] .mypage-table td {
  background: rgba(32, 40, 52, 0.96);
}

html[data-theme="dark"] .mypage-table tbody tr:nth-child(even) td {
  background: rgba(40, 50, 64, 0.88);
}

html[data-theme="dark"] .mypage-table tbody tr:hover td {
  background: rgba(56, 120, 180, 0.2);
}

html[data-theme="dark"] .mypage-table tbody tr:last-child th,
html[data-theme="dark"] .mypage-table tbody tr:last-child td {
  border-bottom-color: transparent;
}

html[data-theme="dark"] #region-mgmt-card .mypage-table thead tr th,
html[data-theme="dark"] #near-region-card .mypage-table thead tr th {
  border-top-color: var(--fx-royal-mid, #89caff);
}

html[data-theme="dark"] .mypage-car-form.mypage-table th {
  background: rgba(38, 58, 82, 0.95);
  color: #e8f2fc;
  border-right-color: rgba(107, 183, 255, 0.28);
  border-bottom-color: rgba(107, 183, 255, 0.26);
}

html[data-theme="dark"] .mypage-car-form.mypage-table td {
  background: rgba(32, 40, 52, 0.96);
}

html[data-theme="dark"] .mypage-form-table th {
  background: linear-gradient(
    180deg,
    rgba(38, 72, 110, 0.92) 0%,
    rgba(32, 42, 56, 0.98) 100%
  );
  color: #e8f2fc;
}

html[data-theme="dark"] .mypage-empty {
  color: var(--fx-text-muted);
}

html[data-theme="dark"] #near-region-card code.mypage-code {
  color: #b8d4f0;
  background: rgba(30, 58, 90, 0.55);
}

/* 다크 모드 — 어두운 고정 글자색 → 밝은 톤 (페이지 인라인 <style>·공통 UI) */
html[data-theme="dark"] .mypage-main,
html[data-theme="dark"] .mypage-content,
html[data-theme="dark"] .mypage-aside,
html[data-theme="dark"] .mypage-rail {
  color: var(--fx-text);
}

html[data-theme="dark"] .mypage-card-title,
html[data-theme="dark"] .mypage-card-subhead,
html[data-theme="dark"] .mypage-rail-heading {
  color: #e8f4fc;
}

html[data-theme="dark"] .mypage-aside-title {
  color: var(--fx-text-muted);
}

html[data-theme="dark"] .mypage-nav-link {
  color: var(--fx-text);
}

html[data-theme="dark"] .mypage-nav-link:hover,
html[data-theme="dark"] .mypage-nav-link.is-active {
  color: #bbdefb;
}

html[data-theme="dark"] .mypage-aside {
  border-color: rgba(137, 202, 255, 0.14);
}

html[data-theme="dark"] .mypage-rail-block {
  border-color: rgba(137, 202, 255, 0.14);
  background: var(--fx-glass);
}

html[data-theme="dark"] .profile-readonly-text,
html[data-theme="dark"] .car-quick-label,
html[data-theme="dark"] .unit-label,
html[data-theme="dark"] .stock-label {
  color: #e8f4fc !important;
}

html[data-theme="dark"] .profile-status,
html[data-theme="dark"] .car-status,
html[data-theme="dark"] .unit-status,
html[data-theme="dark"] .stock-status {
  color: var(--fx-text-muted) !important;
}

html[data-theme="dark"] .unit-detail-table th {
  color: #e8f2fc !important;
  background: rgba(38, 72, 110, 0.92) !important;
  border-bottom-color: rgba(107, 183, 255, 0.26) !important;
}

html[data-theme="dark"] .unit-detail-table td {
  color: var(--fx-text) !important;
}

html[data-theme="dark"] .mypage-radio-label,
html[data-theme="dark"] .mypage-main label,
html[data-theme="dark"] .mypage-near-address-label,
html[data-theme="dark"] .mypage-stock-qty-label {
  color: var(--fx-text);
}

html[data-theme="dark"] .mypage-main input[type="radio"] + label,
html[data-theme="dark"] .mypage-main input[type="checkbox"] + label {
  color: var(--fx-text);
}

html[data-theme="dark"] .mypage-io-in {
  color: #90caf9;
}

html[data-theme="dark"] .mypage-io-out {
  color: #ff8a80;
}

html[data-theme="dark"] .mypage-input,
html[data-theme="dark"] .mypage-select.fx-select-trigger,
html[data-theme="dark"] .mypage-input--addr-search {
  color: var(--fx-text);
  background: rgba(37, 44, 56, 0.96);
  border-color: rgba(107, 183, 255, 0.28);
}

html[data-theme="dark"] .mypage-input::placeholder {
  color: rgba(184, 194, 207, 0.7);
}

html[data-theme="dark"] .mypage-input[readonly],
html[data-theme="dark"] .mypage-input:disabled {
  color: var(--fx-text-muted);
  background: rgba(30, 38, 48, 0.88);
}

html[data-theme="dark"] .mypage-map-placeholder {
  color: var(--fx-text-muted);
}

html[data-theme="dark"] .mypage-map-placeholder.kakao-map-active {
  color: var(--fx-text-muted);
  background: rgba(32, 40, 52, 0.92);
}

html[data-theme="dark"] .mypage-addr-modal__panel {
  background: rgba(32, 40, 52, 0.98);
  border: 1px solid rgba(107, 183, 255, 0.25);
}

html[data-theme="dark"] .mypage-addr-modal__head {
  background: linear-gradient(180deg, rgba(38, 58, 82, 0.95) 0%, rgba(32, 40, 52, 0.98) 100%);
  border-bottom-color: rgba(107, 183, 255, 0.26);
}

html[data-theme="dark"] .mypage-addr-modal__title {
  color: #e8f2fc;
}

html[data-theme="dark"] .mypage-addr-modal__close {
  color: var(--fx-text-muted);
}

html[data-theme="dark"] .mypage-addr-modal__close:hover {
  color: #e8f4fc;
  background: rgba(56, 120, 180, 0.2);
}

html[data-theme="dark"] .mypage-table td,
html[data-theme="dark"] .mypage-table td *:not(.mypage-btn):not([class*="btn--"]) {
  color: inherit;
}

html[data-theme="dark"] .mypage-table a:not(.mypage-btn) {
  color: #90caf9;
}

html[data-theme="dark"] .mypage-near-icon-fallback {
  color: var(--fx-text-muted);
}

/* 다크 모드 — 버튼 (var(--fx-white)·--fx-royal-deep 는 다크에서 카드색/밝은글자라 primary 깨짐) */
html[data-theme="dark"] .mypage-btn--primary {
  color: #ffffff;
  background: linear-gradient(135deg, #42a5f5 0%, #1e88e5 48%, #1565c0 100%);
  border: 1px solid rgba(144, 202, 249, 0.45);
  box-shadow: 0 4px 16px rgba(13, 71, 161, 0.5);
}

html[data-theme="dark"] .mypage-btn--primary:hover {
  filter: brightness(1.08);
  color: #ffffff;
}

html[data-theme="dark"] .mypage-btn--ghost {
  color: #e3f2fd;
  background: rgba(48, 58, 72, 0.92);
  border: 1px solid rgba(107, 183, 255, 0.42);
  box-shadow: none;
}

html[data-theme="dark"] .mypage-btn--ghost:hover {
  color: #ffffff;
  background: rgba(56, 90, 130, 0.55);
  border-color: rgba(144, 202, 249, 0.55);
}

html[data-theme="dark"] .mypage-btn--outline {
  color: #e8f4fc;
  background: rgba(40, 48, 60, 0.75);
  border: 1px solid rgba(107, 183, 255, 0.45);
}

html[data-theme="dark"] .mypage-btn--outline:hover {
  color: #ffffff;
  background: rgba(30, 136, 229, 0.28);
  border-color: rgba(144, 202, 249, 0.55);
}

html[data-theme="dark"] .mypage-btn--danger {
  color: #ffffff;
  background: linear-gradient(135deg, #ef5350 0%, #e53935 55%, #c62828 100%);
  border: 1px solid rgba(239, 83, 80, 0.45);
  box-shadow: 0 4px 14px rgba(198, 40, 40, 0.35);
}

html[data-theme="dark"] .mypage-btn--danger:hover {
  color: #ffffff;
}

html[data-theme="dark"] .mypage-btn--dark {
  color: #ffffff;
  background: linear-gradient(180deg, #607d8b 0%, #455a64 50%, #37474f 100%);
  border: 1px solid rgba(176, 190, 197, 0.35);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .mypage-btn--dark:hover {
  color: #ffffff;
  filter: brightness(1.1);
}

html[data-theme="dark"] .mypage-table .mypage-btn--primary,
html[data-theme="dark"] .mypage-table .mypage-btn--ghost,
html[data-theme="dark"] .mypage-table .mypage-btn--outline,
html[data-theme="dark"] .mypage-table .mypage-btn--danger,
html[data-theme="dark"] .mypage-table .mypage-btn--dark {
  color: #ffffff;
}

html[data-theme="dark"] .mypage-table .mypage-btn--ghost {
  color: #e3f2fd;
}

html[data-theme="dark"] .mypage-table .mypage-btn--ghost:hover {
  color: #ffffff;
}

html[data-theme="dark"] .mypage-toolbar .vehicle-search__reset {
  color: #90caf9;
  background: rgba(48, 58, 72, 0.95);
  border-color: rgba(107, 183, 255, 0.4);
}

html[data-theme="dark"] .mypage-toolbar .vehicle-search__reset:hover {
  color: #bbdefb;
  background: rgba(56, 90, 130, 0.6);
}

html[data-theme="dark"] .mypage-rail-map-btn {
  color: #ffffff;
  background: linear-gradient(135deg, #42a5f5 0%, #1565c0 100%);
  border-color: rgba(144, 202, 249, 0.4);
}

/* 다크 — 마이페이지 상단(top) 플레이스홀더도 본문과 맞춤 */
html[data-theme="dark"] #mypage-top-root:empty {
  background: var(--fx-nav-grad);
  border-bottom-color: rgba(137, 202, 255, 0.1);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] #mypage-top-root .top {
  background-color: #263548;
  background-image: linear-gradient(
    90deg,
    #212c3e 0%,
    #263548 38%,
    #2a3e52 72%,
    #2e4558 100%
  );
  border-bottom-color: rgba(137, 202, 255, 0.14);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}

/* 가로형 막대그래프 스타일 */
.mypage-visual-chart-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.5);
    border-radius: 12px;
}

.mypage-chart-row {
    display: grid;
    grid-template-columns: 100px 1fr 40px;
    align-items: center;
    gap: 15px;
}

.mypage-chart-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--fx-royal-deep);
}

.mypage-chart-bar-bg {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.mypage-chart-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #42a5f5 0%, #1976d2 100%); /* 도넛 차트와 동일한 로열 블루 */
    border-radius: 6px;
    transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1); /* 애니메이션 효과 */
}

.mypage-chart-value {
    font-size: 14px;
    font-weight: 800;
    text-align: right;
    color: var(--fx-royal-mid);
}

/* ── 마이페이지 팝업 공통 슬라이드 애니메이션 ─────────────────── */

@keyframes mp-panel-slide-in {
    from { opacity: 0; transform: translateX(-100%) translateY(-50%); }
    to   { opacity: 1; transform: translateX(-50%) translateY(-50%); }
}
@keyframes mp-panel-slide-out {
    from { opacity: 1; transform: translateX(-50%) translateY(-50%); }
    to   { opacity: 0; transform: translateX(calc(-50% + 100vw)) translateY(-50%); }
}
@keyframes mp-flex-slide-in {
    from { opacity: 0; transform: translateX(-60px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes mp-flex-slide-out {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(60px); }
}
@keyframes mp-backdrop-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes mp-backdrop-out { from { opacity: 1; } to { opacity: 0; } }

/* video-modal 타입 (날씨 모달) */
.video-modal.is-modal-entering .video-modal-backdrop {
    opacity: 0;
    animation: mp-backdrop-in 0.38s ease forwards;
}
.video-modal.is-modal-leaving .video-modal-backdrop {
    animation: mp-backdrop-out 0.3s ease forwards;
    pointer-events: none;
}
.video-modal.is-modal-entering .video-modal-panel {
    animation: mp-panel-slide-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.video-modal.is-modal-leaving .video-modal-panel {
    animation: mp-panel-slide-out 0.3s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

/* flex 오버레이 타입 (재고 차트, 차량 수정, 단말기 연결) */
:not(.video-modal).is-modal-entering {
    animation: mp-backdrop-in 0.38s ease forwards;
}
:not(.video-modal).is-modal-leaving {
    animation: mp-backdrop-out 0.3s ease forwards;
    pointer-events: none;
}
:not(.video-modal).is-modal-entering > :first-child {
    animation: mp-flex-slide-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
:not(.video-modal).is-modal-leaving > :first-child {
    animation: mp-flex-slide-out 0.3s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

@media (prefers-reduced-motion: reduce) {
    .video-modal.is-modal-entering .video-modal-panel,
    .video-modal.is-modal-entering .video-modal-backdrop,
    :not(.video-modal).is-modal-entering,
    :not(.video-modal).is-modal-entering > :first-child {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* weather modal 섹션 공통 수평 패딩 */
.weather-modal-forecast-section {
    padding: 0 1.25rem .75rem;
}

/* ── 시간별 날씨 타임라인 ─────────────────────────────────── */

.wm-hourly-section {
    padding: .75rem 1.25rem .25rem;
    border-bottom: 1px solid rgba(33, 150, 243, .1);
    margin-bottom: .25rem;
}

.wm-hourly-tabs {
    display: flex;
    gap: 4px;
    background: rgba(148, 163, 184, .12);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: .65rem;
}

.wm-hourly-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 6px 8px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #607d8b;
    cursor: pointer;
    transition: all .17s;
    white-space: nowrap;
}

.wm-hourly-tab.is-active {
    background: #fff;
    color: #1565c0;
    box-shadow: 0 1px 6px rgba(13, 71, 161, .14);
    font-weight: 800;
}

html[data-theme="dark"] .wm-hourly-tab.is-active {
    background: rgba(255, 255, 255, .1);
    color: #90caf9;
}

.wm-hourly-scroll {
    display: flex;
    overflow-x: auto;
    gap: 2px;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.wm-hourly-scroll::-webkit-scrollbar { height: 3px; }
.wm-hourly-scroll::-webkit-scrollbar-track { background: transparent; }
.wm-hourly-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, .4);
    border-radius: 2px;
}

.wm-hourly-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 50px;
    padding: 6px 4px 4px;
    border-radius: 8px;
    scroll-snap-align: start;
    flex-shrink: 0;
    transition: background .15s;
    cursor: default;
}

.wm-hourly-item:hover {
    background: rgba(148, 163, 184, .12);
}

.wm-hourly-item.is-current {
    background: rgba(21, 101, 192, .09);
}

html[data-theme="dark"] .wm-hourly-item.is-current {
    background: rgba(144, 202, 249, .13);
}

.wm-hourly-time {
    font-size: 11px;
    font-weight: 600;
    color: #90a4ae;
    white-space: nowrap;
}

.wm-hourly-item.is-current .wm-hourly-time {
    color: #1565c0;
    font-weight: 800;
}

html[data-theme="dark"] .wm-hourly-item.is-current .wm-hourly-time {
    color: #90caf9;
}

.wm-hourly-icon {
    font-size: 20px;
    line-height: 1;
}

.wm-hourly-value {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text, #1e293b);
    white-space: nowrap;
}

/* 바 차트 (강수 / 바람 / 습도) */
.wm-hourly-bar-wrap {
    width: 22px;
    height: 36px;
    background: rgba(148, 163, 184, .15);
    border-radius: 4px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.wm-hourly-bar {
    width: 100%;
    border-radius: 3px;
    transition: height .4s cubic-bezier(.34, 1.56, .64, 1);
}

.wm-hourly-bar--precip { background: linear-gradient(180deg, #42a5f5 0%, #1976d2 100%); }
.wm-hourly-bar--wind   { background: linear-gradient(180deg, #4dd0e1 0%, #0097a7 100%); }
.wm-hourly-bar--humid  { background: linear-gradient(180deg, #66bb6a 0%, #388e3c 100%); }

/* 예보 모달 내 시간별 섹션 */
.wm-fc-hourly-section {
    border-top: 1px solid rgba(33, 150, 243, .1);
    border-bottom: none;
    margin-top: .25rem;
    padding-top: .6rem;
}

.wm-fc-hourly-heading {
    font-size: .78rem;
    font-weight: 700;
    color: #607d8b;
    letter-spacing: .03em;
    text-transform: uppercase;
    margin: 0 0 .5rem;
    padding: 0 1.25rem;
}

.wm-fc-source {
    padding: .35rem 1.25rem .75rem;
    margin: 0;
    display: block !important;
}
