:root {
  --purple: #1b0732;
  --purple-deep: #120321;
  --violet: #7c4cf2;
  --violet-deep: #6633d7;
  --violet-wash: #f0eaff;
  --surface: #e8e9ed;
  --card: #ffffff;
  --ink: #2d2e38;
  --muted: #9696a0;
  --muted-deep: #686a75;
  --line: #e6e5eb;
  --green: #24b485;
  --green-wash: #e5f8f1;
  --coral: #ed6c73;
  --coral-wash: #ffe7e8;
  --blue: #4285f4;
  --naver: #03c75a;
  --nol: #f15b75;
  --page-max-width: 1480px;
  --display: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --card-shadow: 0 14px 34px rgba(42, 35, 65, 0.07);
}

* {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .56; }
[hidden] { display: none !important; }

.app-shell { width: 100%; max-width: var(--page-max-width); min-height: 100vh; margin: 0 auto; background: var(--surface); }

.sidebar {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 88px;
  padding: 0 clamp(22px, 4vw, 58px);
  display: flex;
  align-items: center;
  gap: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 81% -100%, rgba(145, 91, 255, .43), transparent 34%),
    linear-gradient(105deg, var(--purple-deep), var(--purple) 58%, #250746);
  overflow: hidden;
}

.sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .13;
  background-image: radial-gradient(rgba(255,255,255,.35) .65px, transparent .65px);
  background-size: 12px 12px;
  mask-image: linear-gradient(90deg, black, transparent 72%);
}

.brand-lockup, .sidebar-bottom { position: relative; z-index: 1; }
.brand-lockup { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #8e5bff, #6334d4);
  box-shadow: 0 7px 18px rgba(106, 57, 213, .35);
  font-size: 18px;
  line-height: 1;
}
.brand-name { margin: 0; color: #fff; font-size: 15px; font-weight: 800; letter-spacing: -.06em; white-space: nowrap; }
.brand-caption { margin: 5px 0 0; color: #a998bf; font-size: 10px; letter-spacing: .08em; line-height: 1; }
.sidebar-rule { display: none; }

.sidebar-bottom { margin-left: auto; }
.account-card { width: max-content; min-width: 0; max-width: 100%; padding: 7px 12px 8px; border: 1px solid rgba(255,255,255,.14); border-radius: 15px; background: rgba(255,255,255,.08); }
.account-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.account-kicker { color: #a998bf; font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.account-state { color: #6ff0bf; font-size: 9px; font-weight: 700; }
.account-content { display: flex; align-items: center; gap: 12px; }
.alert-actions { display: flex; align-items: center; gap: 5px; }
.profile-alert-button { position: relative; min-width: 62px; height: 29px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; color: #d9cceb; border: 1px solid rgba(255,255,255,.16); border-radius: 9px; background: rgba(255,255,255,.06); font-size: 9px; font-weight: 700; }
.profile-alert-button:hover { color: #fff; background: rgba(255,255,255,.14); }
.profile-alert-button.is-enabled { color: #fff; border-color: rgba(111,240,191,.5); background: rgba(111,240,191,.14); }
.profile-alert-button:disabled { cursor: not-allowed; }
.profile-alert-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.profile-alert-button .notification-indicator { top: 4px; right: 4px; width: 4px; height: 4px; }
.profile-alert-button.is-enabled .notification-indicator { background: #6ff0bf; box-shadow: 0 0 0 3px rgba(111,240,191,.14); }
.kakao-alert-glyph { width: 15px; height: 15px; display: grid; place-items: center; color: #3b3300; border-radius: 50%; background: #fee500; font-size: 8px; font-weight: 900; }
.profile-area { min-width: 0; display: flex; align-items: center; gap: 8px; }
.auth-avatar { width: 30px; height: 30px; display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: linear-gradient(135deg, #8e5bff, #6334d4); font-size: 11px; font-weight: 800; }
.auth-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-copy { min-width: 0; display: grid; gap: 3px; }
.auth-user { max-width: 180px; overflow: hidden; color: #fff; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.account-alert-status { max-width: 210px; overflow: hidden; color: #b9abc8; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.auth-controls { min-width: 0; display: flex; align-items: center; gap: 7px; }
.kakao-login-button, .logout-button { min-height: 28px; padding: 0 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.kakao-login-button { color: #191600; border-color: #fee500; background: #fee500; }
.kakao-login-button:hover { background: #ffed3b; }
.kakao-login-button:disabled { color: #b6aec2; border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.08); cursor: not-allowed; }
.logout-button { color: #d6c9e2; background: rgba(255,255,255,.08); }
.logout-button:hover { color: #fff; background: rgba(255,255,255,.15); }

.main-content { position: relative; min-width: 0; min-height: calc(100vh - 88px); background: var(--surface); }
.topbar {
  position: relative;
  z-index: 2;
  height: 56px;
  padding: 0 clamp(22px, 4vw, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #c7b9d3;
  border-top: 1px solid rgba(255,255,255,.08);
  background: var(--purple);
}
.topbar-date { color: #aa9aba; font-size: 10px; letter-spacing: .06em; }
.icon-button { position: relative; width: 30px; height: 30px; padding: 6px; color: #fff; border: 1px solid rgba(255,255,255,.17); border-radius: 10px; background: rgba(255,255,255,.08); }
.icon-button:hover { background: rgba(255,255,255,.15); }
.icon-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.notification-indicator { position: absolute; top: 4px; right: 4px; width: 5px; height: 5px; border-radius: 50%; background: #8d829b; }
.icon-button[aria-pressed="true"] .notification-indicator { background: #6ff0bf; box-shadow: 0 0 0 3px rgba(111,240,191,.14); }

.content-wrap { position: relative; z-index: 1; max-width: var(--page-max-width); min-height: calc(100vh - 144px); padding: 28px clamp(22px, 4vw, 58px) 72px; margin: 0 auto; }
.content-wrap::before { content: ""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: 185px; border-radius: 0 0 27px 27px; background: var(--purple); }

.eyebrow { display: flex; align-items: center; gap: 8px; color: #b2a4c2; font-size: 9px; font-weight: 700; letter-spacing: .2em; }
.eyebrow-line { width: 17px; height: 2px; border-radius: 2px; background: var(--violet); }
.eyebrow.compact { font-size: 9px; letter-spacing: .18em; }
h1, h2, p { margin-top: 0; }
h1 { margin: 16px 0 13px; color: #fff; font-size: clamp(35px, 4vw, 58px); font-weight: 600; letter-spacing: -.065em; line-height: .99; }
h1 em { color: #a779ff; font-family: var(--display); font-style: italic; font-weight: 500; letter-spacing: -.04em; }
.heading-copy { margin: 0; color: #b7a9c5; font-size: 12px; line-height: 1.75; }
.status-ring { position: relative; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #8e6ce4; border-radius: 50%; }
.status-ring::after { content: ""; position: absolute; inset: 3px; border: 1px dashed #9779ec; border-radius: 50%; animation: spin 9s linear infinite; }
.status-ring i { position: relative; z-index: 1; width: 5px; height: 5px; border-radius: 50%; background: #6ff0bf; }
.status-kicker { display: block; color: #a998bf; font-size: 9px; letter-spacing: .15em; }

.monitor-list-section { position: relative; margin-bottom: 15px; padding: 18px 20px 20px; border: 1px solid rgba(44,43,56,.05); border-radius: 18px; background: var(--card); box-shadow: var(--card-shadow); animation: reveal-up .55s .04s ease both; }
.monitor-list-heading { align-items: center; }
.monitor-list-section h2 { margin-top: 7px; }
.monitor-list-intro { margin: 5px 0 0; color: #a0a0aa; font-size: 11px; }
.monitor-list-actions { display: flex; align-items: center; gap: 9px; }
.monitor-count { color: #9696a0; font-size: 10px; font-weight: 700; white-space: nowrap; }
.add-monitor-button { padding: 8px 11px; display: inline-flex; align-items: center; gap: 4px; color: var(--violet-deep); border: 1px solid #d9cef5; border-radius: 9px; background: #fbf9ff; font-size: 11px; font-weight: 700; white-space: nowrap; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.add-monitor-button span { color: var(--violet); font-size: 14px; line-height: .7; }
.add-monitor-button:hover { border-color: #b9a4ee; background: var(--violet-wash); transform: translateY(-1px); }
.add-monitor-button:disabled { cursor: not-allowed; opacity: .48; transform: none; }
.monitor-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.monitor-card { min-width: 0; position: relative; border: 1px solid #e8e6ee; border-radius: 14px; background: #fafafd; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease; }
.monitor-card:hover { border-color: #cdbcf3; box-shadow: 0 9px 22px rgba(42,35,65,.08); transform: translateY(-1px); }
.monitor-card.is-selected { border-color: #a987ed; background: linear-gradient(135deg, #fff, #f4efff); box-shadow: 0 8px 20px rgba(124,76,242,.12); }
.monitor-card-select { width: 100%; min-width: 0; padding: 13px 12px 12px; display: block; color: var(--ink); border: 0; background: transparent; text-align: left; }
.monitor-card-select:focus-visible { outline: 2px solid var(--violet); outline-offset: -3px; border-radius: 13px; }
.monitor-card-top { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.monitor-card-label { overflow: hidden; color: #9a9aa4; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-overflow: ellipsis; white-space: nowrap; }
.monitor-card-status { flex: 0 0 auto; padding: 3px 5px; color: #1ba579; border-radius: 999px; background: var(--green-wash); font-size: 8px; font-weight: 700; white-space: nowrap; }
.monitor-card-status.is-paused, .monitor-card-status.is-empty { color: #94949f; background: #f0f0f3; }
.monitor-card-status.is-collecting { color: #7041d5; background: var(--violet-wash); }
.monitor-card-route { min-width: 0; margin-top: 10px; overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 700; letter-spacing: -.045em; text-overflow: ellipsis; white-space: nowrap; }
.monitor-card-route span { padding: 0 4px; color: #b0a7bd; font-size: 11px; }
.monitor-card-meta { min-width: 0; margin-top: 5px; display: flex; align-items: center; gap: 5px; overflow: hidden; color: #a0a0aa; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.monitor-card-meta i { width: 3px; height: 3px; flex: 0 0 auto; border-radius: 50%; background: #c7c2d0; }
.monitor-card-price { margin-top: 10px; color: var(--violet-deep); font-size: 16px; font-weight: 800; letter-spacing: -.05em; white-space: nowrap; }
.monitor-card-price.is-empty { color: #a4a4ae; }
.monitor-card-delete { position: absolute; right: 8px; bottom: 8px; width: 22px; height: 22px; padding: 0; color: #aaaab3; border: 0; border-radius: 7px; background: transparent; font-size: 12px; line-height: 1; }
.monitor-card-delete:hover { color: var(--coral); background: var(--coral-wash); }
.monitor-card-delete:disabled { cursor: wait; }
.monitor-list-empty { margin-top: 14px; padding: 14px; color: #92929d; border: 1px dashed #d8d3e3; border-radius: 12px; background: #fbfaff; font-size: 10px; line-height: 1.55; }

.route-banner {
  position: relative;
  min-height: 102px;
  padding: 19px 25px;
  display: grid;
  grid-template-columns: 1fr minmax(160px, 1.2fr) 1fr auto;
  align-items: center;
  gap: 15px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 19px;
  background: linear-gradient(110deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
  box-shadow: 0 12px 30px rgba(8,2,22,.1);
  overflow: hidden;
  animation: reveal-up .55s .08s ease both;
}
.route-banner::before { content: ""; position: absolute; top: -180px; right: 20%; width: 310px; height: 310px; border: 1px solid rgba(172,137,255,.22); border-radius: 50%; box-shadow: 0 0 0 20px rgba(172,137,255,.05), 0 0 0 43px rgba(172,137,255,.03); }
.route-flag { position: relative; z-index: 1; align-self: start; display: grid; gap: 7px; color: #c9b7ff; font-size: 8px; letter-spacing: .16em; }
.route-flag b { width: max-content; padding: 4px 6px; color: #6ff0bf; border: 1px solid rgba(111,240,191,.28); border-radius: 999px; font-size: 7px; letter-spacing: .12em; }
.route-point { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 8px; }
.route-label { grid-column: 1 / -1; margin-bottom: 6px; color: #a998bf; font-size: 9px; letter-spacing: .17em; }
.route-point strong { font-family: var(--display); font-size: 27px; font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.route-point small { color: #c3adff; font-size: 10px; letter-spacing: .15em; }
.route-point-right { grid-template-columns: 1fr auto; text-align: right; }
.route-point-right .route-label { grid-column: 1 / -1; }
.route-point-right strong { order: 1; }
.route-point-right small { order: 0; margin-right: 8px; }
.route-flight-line { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; }
.route-plane { color: #c3a2ff; font-size: 13px; transform: rotate(45deg); }
.return-plane { color: #6ff0bf; transform: rotate(-135deg); }
.route-dash { flex: 1; max-width: 65px; height: 1px; background: repeating-linear-gradient(to right, #886ea7 0 4px, transparent 4px 8px); }
.route-roundtrip { color: #a998bf; font-size: 8px; letter-spacing: .14em; white-space: nowrap; }
.route-meta { align-self: end; position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; color: #c4b6d0; font-size: 10px; white-space: nowrap; }
.route-meta-divider { width: 1px; height: 11px; background: #634a7a; }

.metrics-grid { position: relative; display: grid; grid-template-columns: 1.42fr 1fr 1fr 1fr; gap: 13px; margin-top: 14px; animation: reveal-up .55s .16s ease both; }
.ad-slot { display: block; overflow: hidden; border: 1px solid rgba(44,43,56,.06); border-radius: 14px; background: rgba(255,255,255,.8); }
.ad-slot-wide { min-height: 92px; margin-top: 15px; }
.ad-slot-sidebar { min-height: 120px; margin-top: 18px; }
.ad-slot ins { min-height: inherit; }
.metric-card { min-height: 126px; padding: 17px 18px 15px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(44,43,56,.06); border-radius: 17px; background: var(--card); box-shadow: var(--card-shadow); }
.featured-metric { border-color: #dfd1ff; background: linear-gradient(135deg, #fff 0%, #f1eaff 100%); }
.metric-head, .metric-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.metric-head { color: #8e8f99; font-size: 10px; }
.mini-label { padding: 4px 6px; color: #9b9ca6; border-radius: 999px; background: #f1f1f4; font-size: 8px; font-weight: 700; letter-spacing: .13em; }
.mini-label.green { color: #19a878; background: var(--green-wash); }
.metric-icon { color: #b0adb8; font-size: 15px; line-height: 1; }
.metric-value { margin: 8px 0; color: var(--ink); font-size: 27px; font-weight: 700; letter-spacing: -.06em; line-height: 1; white-space: nowrap; }
.metric-value.small { font-size: 20px; }
.metric-value small { color: #a1a0ab; font-size: 11px; font-weight: 500; letter-spacing: 0; }
.metric-foot { color: #20a97d; font-size: 10px; }
.metric-foot.muted { color: #a0a0a9; }
.delta { padding: 4px 7px; border-radius: 999px; background: var(--green-wash); color: #1ca579; }
.delta.down { color: #159b73; background: var(--green-wash); }
.delta.up { color: #dc626b; background: var(--coral-wash); }
.delta.neutral { color: #7e7e89; background: #f0f0f3; }
.source-count-value { display: flex; align-items: baseline; gap: 5px; }
.source-mini-list { display: flex; align-items: center; gap: 5px; color: #9999a3; font-size: 10px; }
.source-mini { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: var(--source-color, var(--violet)); }
.source-mini.is-disabled { opacity: .35; filter: grayscale(1); }

.dashboard-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(305px, 360px); gap: 18px; align-items: start; margin-top: 26px; }
.left-column, .right-column { min-width: 0; display: grid; gap: 19px; }
.panel { border: 1px solid rgba(44,43,56,.05); border-radius: 18px; background: var(--card); box-shadow: var(--card-shadow); }
.history-panel { padding: 22px 24px 17px; }
.panel-heading, .section-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
h2 { margin: 8px 0 0; color: var(--ink); font-size: 19px; font-weight: 700; letter-spacing: -.05em; }
.chart-legend { display: flex; align-items: center; gap: 6px; padding-top: 7px; color: #8c8d98; font-size: 9px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px rgba(124,76,242,.12); }
.legend-range { padding-left: 6px; color: #b1b1b9; }
.chart-wrap { position: relative; height: 226px; margin-top: 20px; }
.price-chart { width: 100%; height: 100%; overflow: visible; }
.chart-grid-line { stroke: #e7e6eb; stroke-width: 1; stroke-dasharray: 3 5; }
.chart-area { fill: url(#areaFill); }
.chart-line { fill: none; stroke: var(--violet); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 8px 7px rgba(124,76,242,.16)); }
.chart-point { fill: #fff; stroke: var(--violet); stroke-width: 2; cursor: pointer; transition: r .2s ease; }
.chart-point:hover { r: 5.5; }
.chart-axis-label { fill: #b3b2bb; font: 10px var(--sans); }
.chart-empty-label { fill: #aaaab3; font: 11px var(--sans); }
.chart-tooltip { position: absolute; z-index: 4; padding: 8px 10px; color: #fff; border-radius: 10px; background: var(--purple); box-shadow: 0 10px 25px rgba(24,6,47,.18); font-size: 10px; pointer-events: none; transform: translate(-50%, -120%); }
.chart-footer { display: flex; justify-content: space-between; padding-top: 11px; color: #aaaab3; border-top: 1px solid var(--line); font-size: 9px; }
.section-heading-row { align-items: flex-end; }
.source-section h2 { margin-top: 8px; }
.text-button { padding: 6px 0; color: var(--violet-deep); border: 0; background: transparent; font-size: 10px; font-weight: 600; white-space: nowrap; }
.text-button:hover { color: var(--purple); }
.refresh-symbol { display: inline-block; margin-right: 5px; color: var(--violet); font-size: 16px; vertical-align: -2px; transition: transform .35s ease; }
.source-cards { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 13px; }
.source-card { min-width: 0; padding: 13px 17px; display: grid; grid-template-columns: minmax(145px, 1.15fr) minmax(120px, .8fr) minmax(190px, 1.3fr) minmax(145px, 1fr); align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.source-card:hover { border-color: #d3c5f7; box-shadow: 0 13px 28px rgba(42,35,65,.1); transform: translateY(-2px); }
.source-card.is-error { background: #fafafd; }
.source-card.is-error .source-price { color: #a1a1ac; }
.source-card.is-error .airline-label { color: #db7f85; }
.source-card.is-pending { opacity: .72; }
.source-card.is-disabled { opacity: .45; filter: grayscale(.55); background: #f5f5f8; }
.source-card.is-disabled:hover { border-color: var(--line); box-shadow: none; transform: none; }
.source-card.is-disabled .source-mark { filter: grayscale(.8); }
.source-card.is-disabled .source-price, .source-card.is-disabled .source-change, .source-card.is-disabled .airline-label { color: #a4a4ae; }
.source-card.is-disabled .open-provider { color: #a4a4ae; cursor: not-allowed; }
.source-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; }
.source-identity { display: flex; align-items: center; gap: 8px; min-width: 0; }
.source-mark, .collector-source-mark { display: grid; place-items: center; flex: 0 0 auto; color: #fff; border-radius: 10px; background: var(--source-color, var(--violet)); font-size: 10px; font-weight: 800; }
.source-mark { width: 28px; height: 28px; }
.source-name { display: block; overflow: hidden; color: var(--ink); font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.source-description { display: block; margin-top: 3px; overflow: hidden; color: #a3a3ad; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.source-freshness { padding-top: 4px; color: #8a8b96; font-size: 9px; white-space: nowrap; }
.source-price-row { min-width: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 7px; padding: 0; border: 0; }
.source-price { color: var(--ink); font-size: 19px; font-weight: 700; letter-spacing: -.065em; white-space: nowrap; }
.source-change { font-size: 9px; white-space: nowrap; }
.source-change.down { color: #1ca579; }.source-change.up { color: #df6870; }.source-change.neutral { color: #a2a2ac; }.source-change.error { color: #dc7e84; }
.flight-route-row { min-width: 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 0; }
.flight-route-row span { display: block; }
.leg-time { color: var(--ink); font-size: 11px; font-weight: 700; }
.leg-airport { margin-top: 2px; color: #a2a2ac; font-size: 9px; letter-spacing: .06em; }
.align-right { text-align: right; }
.leg-line { min-width: 20px; display: flex; align-items: center; gap: 5px; }
.leg-line::before, .leg-line::after { flex: 1; content: ""; border-top: 1px dashed #d4d2dc; }
.leg-line i { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: var(--violet); }
.stop-label { margin-top: 5px; color: #9999a3; font-size: 9px; text-align: center; white-space: nowrap; }
.source-card-footer { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 0; border: 0; }
.airline-label { min-width: 0; overflow: hidden; color: #83838e; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.source-branding { flex: 0 0 auto; color: #7a918f; font-size: 9px; white-space: nowrap; }
.source-branding strong { font-weight: 700; }
.open-provider { padding: 0; color: var(--violet-deep); border: 0; background: transparent; font-size: 9px; white-space: nowrap; }
.open-provider:hover { color: var(--purple); }
.open-provider span { padding-left: 2px; color: var(--violet); font-size: 11px; }
.activity-panel { padding: 20px 24px 13px; }
.activity-heading { align-items: center; }
.log-live { display: inline-flex; align-items: center; gap: 5px; color: #1eac7d; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.log-live i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(36,180,133,.13); }
.activity-list { margin-top: 17px; }
.activity-item { min-height: 41px; display: grid; grid-template-columns: 9px 82px 1fr; align-items: center; gap: 9px; color: #83838d; border-top: 1px solid var(--line); font-size: 10px; }
.activity-item:first-child { border-top: 0; }
.activity-marker { width: 6px; height: 6px; border-radius: 50%; background: #c7c7cf; }
.activity-marker.drop { background: var(--coral); box-shadow: 0 0 0 3px rgba(237,108,115,.14); }
.activity-marker.refresh { background: var(--violet); }
.activity-marker.notification { background: #d9a900; box-shadow: 0 0 0 3px rgba(217,169,0,.14); }
.activity-time { color: #aaaab2; }
.activity-copy strong { display: block; color: #62636d; font-weight: 600; }
.activity-copy span { display: block; margin-top: 2px; color: #a5a5ae; }

.search-panel { padding: 21px 20px 18px; background: #fff; }
.search-panel-top { display: flex; align-items: center; justify-content: space-between; }
.form-index { color: #a4a4af; font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.search-panel h2 { margin-top: 15px; color: var(--ink); font-family: var(--display); font-size: 27px; font-weight: 500; letter-spacing: -.055em; }
.panel-intro { margin: 6px 0 19px; color: #9797a1; font-size: 10px; }
.panel-intro strong { color: var(--violet-deep); font-weight: 700; }
.form-group { min-width: 0; }
.form-group label { display: block; margin-bottom: 6px; color: #777883; font-size: 10px; font-weight: 600; }
.required-mark { color: var(--coral); }
.form-group input { width: 100%; height: 38px; padding: 0 11px; color: var(--ink); border: 1px solid #dedde5; border-radius: 10px; outline: none; background: #fafafd; font-size: 11px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.form-group input:disabled { color: #a4a4ae; border-color: #e5e3eb; background: #f4f3f7; cursor: not-allowed; opacity: .7; }
.form-group input:focus { border-color: #9a77f0; background: #fff; box-shadow: 0 0 0 4px rgba(124,76,242,.11); }
.form-group input::placeholder { color: #b4b4bd; }
.form-group input.is-locked { color: #777883; border-color: #e3deed; background: #f4f2f8; cursor: not-allowed; }
.form-group input.is-locked:focus { border-color: #e3deed; background: #f4f2f8; box-shadow: none; }
.interval-group { margin-top: 15px; }
.input-help { display: block; margin-top: 5px; color: #aaaab3; font-size: 9px; line-height: 1.5; }
.number-input-wrap { position: relative; }
.number-input-wrap input { padding-right: 30px; }
.number-input-wrap > span { position: absolute; top: 10px; right: 11px; color: #aaaab3; font-size: 10px; }
.input-with-icon { position: relative; }
.input-with-icon input { padding-left: 32px; }
.input-pin { position: absolute; z-index: 1; top: 9px; left: 11px; color: var(--violet); font-size: 12px; }
.location-grid { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); align-items: end; gap: 7px; }
.autocomplete-field { position: relative; }
.suggestion-list { position: absolute; z-index: 20; top: calc(100% + 7px); right: 0; left: 0; padding: 5px; overflow: hidden; border: 1px solid #e1dced; border-radius: 13px; background: #fff; box-shadow: 0 15px 33px rgba(34, 19, 61, .16); }
.airport-suggestion { width: 100%; padding: 8px 7px; display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 7px; color: var(--ink); border: 0; border-radius: 9px; background: transparent; text-align: left; }
.airport-suggestion:hover, .airport-suggestion.is-active { background: var(--violet-wash); }
.airport-suggestion-icon { width: 23px; height: 23px; display: grid; place-items: center; color: var(--violet); border-radius: 8px; background: #f0eaff; font-size: 14px; }
.airport-suggestion-copy { min-width: 0; }
.airport-suggestion-copy strong, .airport-suggestion-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.airport-suggestion-copy strong { font-size: 10px; font-weight: 700; }
.airport-suggestion-copy small { margin-top: 2px; color: #a0a0aa; font-size: 9px; }
.airport-suggestion > b { color: var(--violet-deep); font-size: 9px; letter-spacing: .08em; }
.swap-button { width: 28px; height: 28px; padding: 0; color: var(--violet-deep); border: 1px solid #d8cdf5; border-radius: 50%; background: var(--violet-wash); font-size: 15px; transform: translateY(-3px); transition: transform .2s ease, background .2s ease; }
.swap-button:hover { background: #e4d9ff; transform: translateY(-3px) rotate(180deg); }
.swap-button:disabled { color: #b9b3c7; border-color: #e8e4ef; background: #f3f1f7; cursor: not-allowed; opacity: .72; transform: translateY(-3px); }
.form-divider { display: flex; align-items: center; gap: 9px; margin: 18px 0 11px; color: #aaaab3; font-size: 9px; font-weight: 700; letter-spacing: .18em; }
.form-divider i { flex: 1; height: 1px; background: #e5e3eb; }
.return-divider { margin-top: 16px; }
.range-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 7px; }
.range-heading label { margin: 0; color: #777883; font-size: 10px; font-weight: 600; }
.range-heading small { color: #aaaab3; font-size: 9px; white-space: nowrap; }
.date-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.date-grid input { font-size: 10px; }
input[type="datetime-local"]::-webkit-calendar-picker-indicator { opacity: .46; cursor: pointer; }
.alert-setting { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding: 12px 0; border-top: 1px solid #e8e6ed; border-bottom: 1px solid #e8e6ed; }
.alert-setting-icon { width: 24px; height: 24px; display: grid; place-items: center; color: var(--violet); border: 1px solid #ded1ff; border-radius: 9px; background: var(--violet-wash); font-size: 15px; }
.kakao-alert-setting { margin-top: 0; border-top: 0; }
.kakao-alert-icon { color: #3b3300; border-color: #fee500; background: #fee500; font-size: 8px; font-weight: 800; }
.alert-setting div:nth-child(2) { flex: 1; }
.alert-setting strong, .alert-setting span { display: block; }
.alert-setting strong { color: #666773; font-size: 10px; font-weight: 700; }
.alert-setting div:nth-child(2) span { margin-top: 2px; color: #a0a0aa; font-size: 9px; }
.switch { position: relative; display: block; width: 32px; height: 18px; }
.switch input { position: absolute; width: 0; height: 0; opacity: 0; }
.switch span { position: absolute; inset: 0; border-radius: 20px; background: #d2d1d9; transition: .2s; }
.switch span::before { position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; content: ""; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.14); transition: .2s; }
.switch input:checked + span { background: var(--violet); }
.switch input:checked + span::before { transform: translateX(14px); }
.primary-button { width: 100%; margin-top: 15px; padding: 13px 14px; display: flex; align-items: center; justify-content: space-between; color: #fff; border: 0; border-radius: 11px; background: linear-gradient(135deg, var(--violet), var(--violet-deep)); box-shadow: 0 10px 20px rgba(124,76,242,.2); font-size: 11px; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease; }
.primary-button:hover { box-shadow: 0 14px 26px rgba(124,76,242,.28); transform: translateY(-1px); }
.primary-button:disabled, .primary-button.is-locked { cursor: not-allowed; opacity: .58; box-shadow: none; transform: none; }
.primary-button.is-auth-disabled, .pause-button.is-auth-disabled, .text-button.is-auth-disabled, .alert-setting.is-auth-disabled { opacity: .48; }
.monitor-control-row { display: grid; grid-template-columns: minmax(0, 1fr) 145px; gap: 8px; margin-top: 15px; }
.monitor-control-row .primary-button { margin-top: 0; }
.monitor-control-row .pause-button { width: 100%; height: auto; min-height: 46px; padding: 0 11px; color: #7f808b; border-color: #d8d7df; background: #fff; }
.monitor-control-row .pause-button:hover { color: var(--ink); border-color: #b9a6ec; background: #f6f2ff; }
.secondary-button { width: 100%; margin-top: 8px; padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; color: var(--violet-deep); border: 1px solid #d9cef5; border-radius: 11px; background: #fbf9ff; font-size: 11px; font-weight: 700; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.secondary-button:hover { border-color: #b9a4ee; background: var(--violet-wash); transform: translateY(-1px); }
.secondary-button:disabled { cursor: wait; opacity: .62; transform: none; }
.button-arrow { color: #d8c7ff; font-size: 15px; line-height: 1; }
.secondary-button .button-arrow { color: var(--violet); font-size: 16px; }
.form-footnote { margin: 10px 0 0; color: #aaaab3; font-size: 9px; text-align: center; }
.form-footnote.is-locked { color: #8b78b6; }
.secure-dot { display: inline-block; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: var(--green); }
.source-status-panel { padding: 19px 20px 16px; }
.panel-heading.tight { align-items: center; }
.status-count { padding: 5px 7px; color: #1ba579; border-radius: 999px; background: var(--green-wash); font-size: 9px; font-weight: 700; }
.collector-status-list { margin-top: 15px; }
.collector-row { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-top: 1px solid var(--line); }
.collector-row.is-disabled { opacity: .45; }
.collector-row:first-child { border-top: 0; }
.collector-source-mark { width: 24px; height: 24px; border-radius: 8px; }
.collector-row div { flex: 1; min-width: 0; }
.collector-row strong, .collector-row small { display: block; }
.collector-row strong { color: #666773; font-size: 10px; font-weight: 700; }
.collector-row small { margin-top: 3px; overflow: hidden; color: #a2a2ab; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.row-status { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(36,180,133,.12); }
.row-status.waiting { background: #c4c4cc; box-shadow: 0 0 0 3px rgba(196,196,204,.14); }
.row-status.disabled { background: #b7b7c0; box-shadow: 0 0 0 3px rgba(183,183,192,.14); }
.row-status.error { background: var(--coral); box-shadow: 0 0 0 3px rgba(237,108,115,.13); }
.live-notice { display: flex; align-items: flex-start; gap: 8px; margin-top: 11px; padding: 10px; color: #888993; border: 1px solid #ebe9f0; border-radius: 10px; background: #fafafd; }
.live-notice > span { width: 15px; height: 15px; flex: 0 0 auto; color: #fff; border-radius: 50%; background: var(--violet); font-size: 9px; line-height: 15px; text-align: center; }
.live-notice p { margin: 0; font-size: 9px; line-height: 1.55; }
.pause-button { width: 215px; height: 72px; min-height: 72px; padding: 0 24px; display: flex; align-items: center; gap: 9px; color: #d8cceb; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(255,255,255,.07); font-size: 10px; text-align: left; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.pause-button:hover { color: #fff; border-color: #b9a6ec; background: rgba(255,255,255,.13); }
.pause-icon { padding-right: 3px; color: var(--coral); font-size: 13px; letter-spacing: -4px; }
.pause-button.is-active .pause-icon { letter-spacing: 0; }

.toast-stack { position: fixed; z-index: 30; right: 24px; bottom: 24px; width: min(340px, calc(100vw - 48px)); display: grid; gap: 8px; }
.toast { padding: 13px 15px; color: #fff; border-left: 3px solid var(--green); border-radius: 12px; background: var(--purple); box-shadow: 0 14px 35px rgba(19,4,34,.22); animation: toast-in .3s ease both; }
.toast.drop { border-left-color: var(--coral); }
.toast strong, .toast span { display: block; }
.toast strong { font-size: 11px; font-weight: 600; }
.toast span { margin-top: 3px; color: #c0b2ce; font-size: 10px; }

@keyframes reveal-up { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toast-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 1120px) {
  .sidebar { padding-left: 24px; padding-right: 24px; gap: 18px; }
  .nav-item { padding-left: 11px; padding-right: 11px; }
  .content-wrap { padding-left: 28px; padding-right: 28px; }
  .route-banner { grid-template-columns: auto 1fr minmax(125px, .85fr) 1fr; padding-left: 19px; padding-right: 19px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .source-card { padding-left: 12px; padding-right: 12px; }
  .source-card { grid-template-columns: minmax(120px, 1.15fr) minmax(100px, .8fr) minmax(145px, 1.3fr) minmax(120px, 1fr); gap: 11px; padding-right: 13px; padding-left: 13px; }
  .monitor-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .sidebar { height: auto; min-height: 76px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
  .sidebar-bottom { width: max-content; max-width: 100%; margin-left: auto; }
  .account-card { min-width: 0; }
  .content-wrap::before { height: 210px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .right-column { grid-template-columns: minmax(0, 1fr) minmax(250px, .8fr); align-items: start; }
  .search-panel { grid-row: span 2; }
  .pause-button { grid-column: auto; }
}

@media (max-width: 660px) {
  .sidebar { padding: 15px; gap: 12px; }
  .sidebar-bottom { width: 100%; margin-left: 0; }
  .account-card { width: 100%; }
  .brand-caption { display: none; }
  .account-content { align-items: flex-start; flex-direction: column; gap: 10px; }
  .alert-actions { width: 100%; }
  .profile-alert-button { flex: 1; }
  .profile-area { width: 100%; }
  .profile-copy { flex: 1; }
  .auth-controls { margin-left: auto; }
  .nav-item { flex: 0 0 auto; height: 36px; font-size: 10px; }
  .topbar { height: 52px; padding: 0 15px; }
  .breadcrumbs { font-size: 8px; gap: 6px; }
  .topbar-date { display: none; }
  .content-wrap { padding: 18px 15px 48px; }
  .content-wrap::before { height: 240px; border-radius: 0 0 20px 20px; }
  .monitor-control-row { grid-template-columns: 1fr; }
  .route-banner { grid-template-columns: 1fr 1fr; gap: 14px 8px; padding: 17px 15px; }
  .monitor-list-section { padding: 15px; }
  .monitor-list-heading { align-items: flex-start; }
  .monitor-list-intro { max-width: 220px; line-height: 1.5; }
  .monitor-list-actions { flex-direction: column; align-items: flex-end; gap: 6px; }
  .monitor-cards { grid-template-columns: 1fr; margin-top: 13px; }
  .route-flag { grid-column: 1 / -1; }
  .route-flight-line { grid-column: 1 / -1; grid-row: 3; }
  .route-point-right { text-align: right; }
  .route-meta { grid-column: 1 / -1; justify-self: end; }
  .route-point strong { font-size: 24px; }
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 11px; }
  .metric-card { min-height: 112px; padding: 14px; }
  .metric-value { font-size: 22px; }
  .metric-value.small { font-size: 18px; }
  .ad-slot-wide { min-height: 82px; margin-top: 11px; }
  .dashboard-grid { margin-top: 19px; gap: 18px; }
  .history-panel, .activity-panel { padding-right: 15px; padding-left: 15px; }
  .chart-wrap { height: 190px; }
  .source-cards { grid-template-columns: 1fr; }
  .source-card { display: block; padding: 15px; }
  .source-price-row { padding: 16px 0 12px; border-bottom: 1px solid var(--line); }
  .flight-route-row { padding: 13px 0 11px; }
  .source-card-footer { padding-top: 11px; border-top: 1px solid var(--line); }
  .source-description { display: none; }
  .right-column { display: block; }
  .search-panel, .source-status-panel, .pause-button { margin-top: 18px; }
  .ad-slot-sidebar { min-height: 90px; margin-top: 18px; }
  .search-panel { margin-top: 0; }
  .pause-button { width: 100%; }
  .location-grid { grid-template-columns: 1fr; gap: 8px; }
  .swap-button { justify-self: center; transform: rotate(90deg); }
  .swap-button:hover { transform: rotate(270deg); }
  .activity-item { grid-template-columns: 9px 62px 1fr; }
  .desktop-only { display: none; }
}
