:root {
  color-scheme: light;
  --green: #03c75a;
  --green-dark: #00a94f;
  --ink: #17211b;
  --muted: #68736c;
  --line: #e5ebe7;
  --surface: #ffffff;
  --canvas: #f4f7f5;
  --shadow: 0 10px 30px rgba(18, 47, 31, 0.08);
}

* { box-sizing: border-box; }

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
canvas,
svg,
iframe { max-width: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.modal-scroll-locked { position: fixed; width: 100%; overflow: hidden; overscroll-behavior: none; }

.pull-refresh-indicator { position: fixed; z-index: 30; top: max(8px, env(safe-area-inset-top)); left: 50%; display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 7px 11px; border: 1px solid #d8e8de; border-radius: 999px; background: rgba(255, 255, 255, 0.96); color: #4e6658; box-shadow: 0 8px 24px rgba(18, 47, 31, 0.14); font-size: 11px; font-weight: 800; opacity: 0; pointer-events: none; transform: translate(-50%, -22px); transition: opacity 150ms ease, transform 150ms ease; }
.pull-refresh-icon { display: inline-grid; width: 16px; height: 16px; place-items: center; color: var(--green-dark); font-size: 18px; line-height: 1; transition: transform 150ms ease; }
body.pull-refresh-pulling .pull-refresh-indicator, body.pull-refresh-ready .pull-refresh-indicator, body.pull-refresh-loading .pull-refresh-indicator { opacity: 1; transform: translate(-50%, 0); }
body.pull-refresh-ready .pull-refresh-indicator { border-color: #bde8cc; color: #087a3f; }
body.pull-refresh-ready .pull-refresh-icon { transform: rotate(180deg); }
body.pull-refresh-loading .pull-refresh-icon { animation: pull-refresh-spin 760ms linear infinite; }

a { color: inherit; }

.app-header {
  position: sticky;
  z-index: 20;
  top: 0;
  padding: 9px max(18px, env(safe-area-inset-left)) 8px;
  border-bottom: 1px solid rgba(229, 235, 231, 0.9);
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(18px) saturate(1.15);
}

.header-main { display: flex; align-items: center; justify-content: space-between; min-height: 38px; }
.header-brand-cluster { display: inline-flex; min-width: 0; align-items: center; gap: 9px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: var(--green);
  color: #fff;
  font-size: 20px;
  letter-spacing: -1px;
}

.naver-account-pill {
  display: inline-flex;
  min-width: 0;
  max-width: min(47vw, 260px);
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid #e4e9e6;
  border-radius: 999px;
  background: #f7f9f8;
  color: #778078;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}
.naver-account-pill > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.naver-account-pill.connected { border-color: #cdeedb; background: #ecfaf1; color: #087a3f; }
.naver-account-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 99px; background: #abb5af; }
.naver-account-pill.connected .naver-account-dot { background: var(--green); box-shadow: 0 0 0 3px rgba(3, 199, 90, 0.12); }
.naver-account-arrow { color: currentColor; font-size: 16px; line-height: 9px; }

.header-badge,
.subtle {
  color: var(--muted);
  font-size: 12px;
}

.header-nav { display: grid; align-items: center; gap: 5px; margin: 9px -4px -2px; padding: 0 4px 2px; }
.header-nav--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.header-nav--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.header-nav::-webkit-scrollbar { display: none; }
.header-nav a {
  min-width: 0;
  padding: 8px 4px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
}
.header-nav a.active { background: #e7faef; color: #008f43; box-shadow: inset 0 0 0 1px rgba(3, 199, 90, 0.12); }

.header-badge {
  padding: 6px 9px;
  border-radius: 999px;
  background: #edf3ef;
  font-weight: 700;
}

.page-shell {
  width: min(100% - 32px, 760px);
  min-width: 0;
  margin: 0 auto;
  padding: 28px 0 60px;
}

.page-shell > *,
.service-card,
.service-hub-card,
.batch-runner,
.batch-start-card,
.operation-list,
.operation-row { min-width: 0; max-width: 100%; }

.operation-row strong,
.operation-row span,
.batch-current-card strong,
.batch-current-card span{ overflow-wrap: anywhere; word-break: break-word; }

.hero {
  display: grid;
  gap: 24px;
  padding: 10px 2px 32px;
}

.service-home-hero { padding: 10px 2px 26px; }
.service-home-hero h1 { margin: 0; font-size: clamp(31px, 8.2vw, 48px); line-height: 1.15; letter-spacing: -0.052em; }
.service-home-hero > p:last-child { margin: 13px 0 0; color: var(--muted); font-size: 14px; }
.service-card { display: grid; gap: 18px; margin: 0 0 14px; padding: 21px; border: 1px solid var(--line); border-radius: 25px; background: var(--surface); box-shadow: var(--shadow); }
.service-card--naver { border-color: #cdeedb; background: linear-gradient(145deg, #ffffff 0%, #f0fbf4 100%); }
.service-card--hpoint { border-color: #e7ddff; background: linear-gradient(145deg, #fff 0%, #f7f3ff 100%); }
.service-card--dpg { background: linear-gradient(145deg, #fff 0%, #f2f7ff 100%); }
.service-card--aliexpress { background: linear-gradient(145deg, #fffaf5 0%, #fff1e4 100%); }
.service-symbol--orange { background: #ff6a2c; }
.service-job-list { margin: 12px 0; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.72); color: #565d5a; font-size: .9rem; line-height: 1.65; list-style: none; }
.service-card-heading { display: flex; min-width: 0; align-items: center; gap: 11px; }
.service-card-heading > div { min-width: 0; flex: 1; }
.service-card-heading .eyebrow { margin-bottom: 3px; font-size: 10px; }
.service-card-heading h2 { margin: 0; font-size: 20px; letter-spacing: -0.04em; }
.service-symbol { display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; border-radius: 13px; background: var(--green); color: #fff; font-size: 20px; font-weight: 900; }
.service-symbol--purple { background: #6b4eff; }
.service-symbol--blue { background: #3975d6; }
.service-status { flex: 0 0 auto; padding: 6px 8px; border-radius: 999px; background: #e8faef; color: #087a3f; font-size: 11px; font-weight: 800; }
.service-status.muted { background: #f0f3f1; color: #6f7772; }
.service-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.service-metrics > div { display: grid; gap: 3px; padding: 13px; border: 1px solid rgba(19, 56, 35, 0.08); border-radius: 15px; background: rgba(255, 255, 255, 0.68); }
.service-metrics strong { font-size: 24px; letter-spacing: -0.05em; }
.service-metrics span, .service-card > p, .service-note { color: var(--muted); font-size: 12px; line-height: 1.55; }
.service-card > p { margin: -4px 0 0; }
.service-note { margin-top: -8px; font-size: 11px; }
.service-card > .service-availability { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; align-items: center; margin: -6px 0 0; padding: 11px 13px; border: 1px solid rgba(18, 101, 61, 0.1); border-radius: 14px; background: rgba(255, 255, 255, 0.62); color: var(--text); }
.service-availability > span { grid-row: 1 / span 2; color: var(--green); font-size: 16px; }
.service-availability > strong { min-width: 0; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.service-availability > small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.service-section-heading { margin-top: 34px; }
.home-mode-switcher { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 0 0 22px; }
.home-mode-switcher button { display: flex; min-width: 0; align-items: center; gap: 9px; padding: 13px 11px; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--muted); font: inherit; text-align: left; box-shadow: 0 6px 18px rgba(18,47,31,.04); }
.home-mode-switcher button > span:last-child { display: grid; min-width: 0; gap: 2px; }
.home-mode-switcher strong { color: inherit; font-size: 13px; letter-spacing: -0.04em; white-space: nowrap; }
.home-mode-switcher small { overflow: hidden; font-size: 10px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.home-mode-icon { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border-radius: 9px; background: #eff4f1; color: #718078; font-weight: 900; }
.home-mode-switcher button.active { border-color: #bceacb; background: #f0fbf4; color: #087a3f; box-shadow: inset 0 0 0 1px rgba(3,199,90,.08); }
.home-mode-switcher button.active .home-mode-icon { background: var(--green); color: #fff; }
.android-panel-heading { display: flex; align-items: center; justify-content: space-between; margin: 2px 2px 14px; }
.android-panel-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.android-panel-heading span { padding: 5px 8px; border-radius: 99px; background: #edf3ef; color: #65736a; font-size: 10px; font-weight: 800; }
.earn-page-heading { padding: 10px 2px 18px; }
.earn-page-heading h1 { margin: 0; font-size: clamp(31px, 8vw, 44px); line-height: 1.1; letter-spacing: -0.055em; }
.earn-page-heading > div > p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.service-switcher { display: flex; gap: 6px; margin: 0 -16px 23px; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
.service-switcher::-webkit-scrollbar { display:none; }
.service-switcher a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; padding: 9px 11px; border: 1px solid #e1e8e3; border-radius: 12px; background: #fff; color: #6a756e; font-size: 12px; font-weight: 800; text-decoration: none; }
.service-switcher a.active { border-color: #bceacb; background: #e9f9ef; color: #087a3f; }
.service-switcher em { display: grid; min-width: 17px; height: 17px; place-items: center; border-radius: 99px; background: #edf2ee; color: #68756d; font-size: 10px; font-style: normal; }
.service-switcher a.active em { background: var(--green); color: #fff; }
.service-hub-list { display: grid; gap: 10px; }
.service-hub-card, .service-focus-card { display: grid; gap: 14px; padding: 17px; border: 1px solid var(--line); border-radius: 21px; background: var(--surface); box-shadow: 0 8px 24px rgba(18,47,31,.055); }
.service-hub-heading { display: flex; min-width: 0; align-items: center; gap: 10px; }
.service-hub-heading > div { min-width: 0; flex: 1; }
.service-hub-heading p { margin: 0 0 2px; color: var(--muted); font-size: 11px; font-weight: 750; }
.service-hub-card h2, .service-focus-card h2 { margin: 0; font-size: 18px; letter-spacing: -0.045em; }
.service-focus-card > p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.service-hub-summary { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-radius: 14px; background: #f5f8f6; }
.service-hub-summary strong { font-size: 21px; letter-spacing: -0.05em; }
.service-hub-summary span { min-width: 0; flex: 1; color: var(--muted); font-size: 12px; }
.service-hub-summary a { color: #087a3f; font-size: 12px; font-weight: 850; text-decoration: none; white-space: nowrap; }
.service-hub-summary b { font-size: 18px; line-height: 0; }
.service-focus-card { min-height: 230px; align-content: start; }
.service-focus-card .button { margin-top: auto; }
.naver-list-hero { padding-top: 8px; }
.queue-banner { display: grid; gap: 12px; }
.queue-banner-summary { color: var(--ink); }
.queue-banner-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.queue-banner-actions a { display: grid; gap: 3px; min-width: 0; padding: 12px; border: 1px solid #ccebd9; border-radius: 15px; background: rgba(255, 255, 255, 0.72); color: var(--ink); text-decoration: none; }
.queue-banner-actions a:last-child { border-color: #aee5c7; background: #03c75a; color: #fff; }
.queue-banner-actions strong { font-size: 13px; letter-spacing: -0.03em; }
.queue-banner-actions span { font-size: 11px; line-height: 1.35; color: var(--muted); }
.queue-banner-actions a:last-child span { color: rgba(255, 255, 255, 0.84); }

.eyebrow {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1, h2, h3, p { overflow-wrap: anywhere; }

.hero h1,
.detail-card h1 {
  margin: 0;
  font-size: clamp(30px, 8vw, 48px);
  line-height: 1.16;
  letter-spacing: -0.045em;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.summary-card {
  display: flex;
  min-height: 108px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.summary-card.accent {
  border-color: transparent;
  background: var(--ink);
  color: #fff;
}

.summary-card strong {
  font-size: 28px;
  letter-spacing: -0.04em;
}

.summary-card span { color: var(--muted); font-size: 13px; }
.summary-card.accent span { color: #b7c5bd; }

.filters {
  display: flex;
  gap: 8px;
  margin: 0 -16px 30px;
  padding: 0 16px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar { display: none; }
.status-filters { margin-top: -20px; }
.lifecycle-filters { margin-top: -20px; }

.filter-chip {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.filter-chip.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.queue-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -12px 0 30px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #e7faef;
  color: #08733b;
  font-size: 13px;
  text-decoration: none;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 2px 14px;
}

.section-heading h2 { margin: 0; font-size: 22px; letter-spacing: -0.035em; }

.reward-list { display: grid; gap: 12px; }
.reward-loader { display: flex; min-height: 56px; align-items: center; justify-content: center; margin: 14px 0 2px; color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; }

.reward-card,
.detail-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.reward-card { padding: 19px; }

.reward-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.badge-row { display: flex; align-items: center; gap: 7px; }
.detail-badges { margin-bottom: 18px; }
.detail-badges .amount.large { margin-bottom: 0; }

.amount {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e7faef;
  color: #008f43;
  font-size: 13px;
  font-weight: 800;
}

.amount.unknown { background: #f0f2f1; color: var(--muted); }
.amount.large { margin-bottom: 18px; padding: 8px 13px; font-size: 15px; }
.event-code { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: #f0f2f1; color: #59625e; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; letter-spacing: -0.02em; }

.status-badge {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  background: #f0f2f1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.status-attempted { background: #fff4d8; color: #9a6500; }
.status-confirmed { background: #e7faef; color: #008f43; }
.status-failed { background: #feeceb; color: #b43b35; }
.status-skipped { background: #edf0f6; color: #5c6577; }

.auth-card {
  max-width: 620px;
  margin: 32px auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}
.auth-card h1 { margin: 4px 0 12px; }
.auth-card form { display: grid; gap: 12px; margin-top: 20px; }
.auth-card label { display: grid; gap: 7px; color: var(--muted); font-weight: 700; }
.auth-card input[type="email"] { padding: 13px; border: 1px solid var(--line); border-radius: 12px; font: inherit; }
.auth-card li { margin: 8px 0; color: var(--muted); }
.compact-auth { max-width: none; margin: 18px 0; }
.compact-auth form { grid-template-columns: minmax(180px, 1fr) auto; align-items: end; }
.inline-form { display: inline; margin-left: 8px; }
.text-button { border: 0; background: transparent; color: #087a3f; font: inherit; font-weight: 800; cursor: pointer; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.user-row { align-items: flex-start; }
.notification-card hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.push-actions { display: grid; gap: 10px; margin-top: 16px; }
.push-status { padding: 12px 14px; border-radius: 12px; background: #f0f5f2; }
.notification-card ol { padding-left: 20px; }

@media (max-width: 640px) {
  .brand-name { display: none; }
  .app-header { padding-right: max(14px, env(safe-area-inset-right)); padding-left: max(14px, env(safe-area-inset-left)); }
  .header-nav {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
    overflow: visible;
    flex-wrap: nowrap;
  }
  .header-nav.header-nav--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .header-nav.header-nav--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .header-nav a {
    min-width: 0;
    padding: 9px 3px;
    font-size: 12px;
    letter-spacing: -0.025em;
    text-align: center;
    white-space: nowrap;
  }
  .compact-auth form { grid-template-columns: 1fr; }
  .auth-card { margin: 18px 0; padding: 20px; }
  .consent-card { padding: 18px 20px 20px; }
  .consent-card h1 { margin: 3px 0 8px; }
  .consent-heading > p:last-child { font-size: 13px; line-height: 1.55; }
  .consent-status { margin-top: 16px; }
  .consent-status-row { padding: 11px 14px; }
  .consent-summary { margin-top: 18px; }
  .consent-summary h2 { margin-bottom: 9px; }
  .consent-summary ul { gap: 7px; }
  .consent-summary li span { line-height: 1.45; }
  .consent-card .button.wide { margin-top: 16px; }
  .consent-details { margin-top: 14px; padding-top: 12px; }
  .consent-card { padding-bottom: 112px; }
  .consent-card .consent-action-dock {
    position: fixed;
    z-index: 30;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    left: max(16px, env(safe-area-inset-left));
    margin: 0;
    padding: 10px;
    border: 1px solid rgba(3, 199, 90, 0.2);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 28px rgba(18, 47, 31, 0.18);
    backdrop-filter: blur(16px);
  }
  .consent-card .consent-action-dock .button.wide { min-height: 52px; margin: 0; }
  .connection-callout { align-items: flex-start; padding: 16px; }
  .connection-callout h2, .batch-start-card h2, .batch-runner h2 { font-size: 19px; }
  .connection-callout .button { margin-top: 4px; padding: 0 11px; }
  .batch-runner, .batch-start-card { padding: 18px; }
  .batch-metrics { gap: 5px; }
  .batch-metrics div { padding: 10px 4px; }
  .batch-metrics strong { font-size: 14px; }
}

.lifecycle-badge {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.lifecycle-expired { background: #ecebea; color: #645f5c; }
.lifecycle-invalid { background: #feeceb; color: #b43b35; }
.reward-expired { background: #f7f7f6; box-shadow: none; }
.reward-expired .amount { background: #ecebea; color: #645f5c; }
.expired-note { display: flex; align-items: center; color: #756f6b; font-size: 12px; font-weight: 700; }
.expired-panel { margin: 22px 0 0; padding: 15px; border-radius: 14px; background: #f0efee; color: #645f5c; font-size: 13px; line-height: 1.55; }

.source-list,
.meta {
  color: var(--muted);
  font-size: 12px;
}

.reward-card h3 {
  margin: 17px 0 8px;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.reward-subtitle { margin: -2px 0 8px; color: #3e6d55; font-size: 12px; font-weight: 700; line-height: 1.5; }
.detail-subtitle { margin: -8px 0 20px; font-size: 13px; }
.meta { margin: 0; }

.card-actions {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
  margin-top: 18px;
}

.card-actions form { display: flex; margin: 0; }
.card-actions form .button { width: 100%; }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.button.primary { background: var(--green); color: #fff; }
.button.primary:hover { background: var(--green-dark); }
.button.secondary { background: #edf2ef; color: var(--ink); }
.button.success { background: #e7faef; color: #008f43; }
.button.danger { background: #feeceb; color: #b43b35; }
.button.wide { width: 100%; margin-top: 24px; }
.button:disabled { cursor: wait; opacity: 0.65; }

.empty-state { padding: 48px 22px; text-align: center; }
.empty-state h2 { margin: 14px 0 8px; }
.empty-state p { margin: 0; color: var(--muted); }
.empty-icon { font-size: 32px; color: var(--green); }
.empty-action { width: fit-content; margin: 20px auto 0; }

.back-link {
  display: inline-block;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.detail-card { padding: 24px; }
.detail-actions form { margin: 0; }
.split-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.split-actions .button { width: 100%; }

.detail-list { margin: 28px 0 0; }
.detail-list div { padding: 14px 0; border-top: 1px solid var(--line); }
.detail-list dt { color: var(--muted); font-size: 12px; }
.detail-list dd { margin: 6px 0 0; font-size: 13px; }
.detail-list code { word-break: break-all; }

.sightings { margin-top: 34px; }
.history-section { margin-top: 34px; }
.history-list { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.history-list div { display: flex; justify-content: space-between; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--line); font-size: 12px; }
.history-list div:first-child { border-top: 0; }
.history-list span { color: var(--muted); }

.sighting-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 10px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.sighting-card strong { color: var(--ink); font-size: 15px; line-height: 1.45; }
.source-tag { color: var(--green-dark); font-weight: 800; }

.app-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 18px calc(32px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.queue-header { margin: 8px 2px 30px; }
.queue-header h1 { margin: 0; font-size: clamp(30px, 8vw, 46px); line-height: 1.16; letter-spacing: -0.045em; }
.queue-header > p:last-child { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.queue-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.queue-progress div { display: flex; flex-direction: column; gap: 3px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.queue-progress strong { font-size: 22px; }
.queue-progress span { color: var(--muted); font-size: 11px; }
.queue-card { padding: 22px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.queue-card.awaiting-confirmation { border-color: #f0cf7c; }
.queue-card h2 { margin: 20px 0 8px; font-size: 26px; line-height: 1.3; letter-spacing: -0.04em; }
.queue-card > p { margin: 0; color: var(--muted); font-size: 12px; }
.queue-card > .reward-subtitle { margin: 8px 0; color: #3e6d55; font-weight: 700; }
.queue-attempt { margin-top: 26px; }
.queue-attempt .button { margin-top: 0; }
.confirmation-panel { margin-top: 24px; padding: 17px; border-radius: 17px; background: #fff8e6; }
.confirmation-panel > strong { font-size: 16px; }
.confirmation-panel > p { margin: 7px 0 14px; color: #78684a; font-size: 12px; line-height: 1.5; }
.confirmation-panel .split-actions { margin-top: 0; }
.text-link { display: block; margin-top: 18px; color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; }
.queue-empty .button { margin: 24px auto 0; max-width: 260px; }

.connection-callout,
.batch-start-card,
.batch-runner { border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.connection-callout { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding: 20px; border-color: #cdeedb; background: linear-gradient(135deg, #f5fff8, #fff); }
.connection-callout .eyebrow, .batch-start-card .eyebrow, .batch-runner .eyebrow { margin-bottom: 5px; }
.connection-callout h2, .batch-start-card h2, .batch-runner h2 { margin: 0; font-size: 21px; letter-spacing: -0.035em; }
.connection-callout p:last-child, .batch-start-card p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.connection-callout .button { flex: 0 0 auto; min-height: 42px; padding: 0 14px; font-size: 13px; text-decoration: none; }
.batch-start-card { padding: 24px; }
.batch-start-card form { margin-top: 22px; }
.batch-start-card .button { margin-top: 0; }
.batch-last-result { display: grid; gap: 5px; margin-top: 18px; padding: 13px 14px; border: 1px solid #f1d59a; border-radius: 14px; font-size: 12px; font-weight: 650; line-height: 1.5; }
.batch-last-result-kicker { font-weight: 850; }
.batch-runner { padding: 22px; border-color: #a7e5c1; }
.batch-runner-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.batch-progress-label { min-width: 50px; padding: 7px 9px; border-radius: 999px; background: #e7faef; color: #087a3f; font-size: 12px; font-weight: 850; text-align: center; }
.batch-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 20px 0 12px; }
.batch-metrics div { min-width: 0; padding: 11px 8px; border: 1px solid var(--line); border-radius: 14px; background: #fbfdfb; text-align: center; }
.batch-metrics strong { display: block; overflow: hidden; font-size: 16px; letter-spacing: -0.035em; text-overflow: ellipsis; white-space: nowrap; }
.batch-metrics span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.batch-progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: #e8efea; }
.batch-progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--green); transition: width 0.35s ease; }
.batch-current-card { display: grid; gap: 5px; margin-top: 16px; padding: 16px; border: 1px solid #e0e8e3; border-radius: 17px; background: #f9fbfa; }
.batch-current-card.is-running { border-color: var(--green); background: #f1fff6; animation: batch-active-outline 1.1s ease-in-out infinite alternate; }
.batch-current-kicker { color: #087a3f; font-size: 11px; font-weight: 800; }
.batch-current-card > strong { font-size: 16px; line-height: 1.35; }
.batch-elapsed { color: var(--muted); font-size: 12px; } .operation-detail-link { flex: 0 0 auto; color: #087a3f; font-size: 11px; font-weight: 800; text-decoration: none; }
.batch-result-card { margin-top: 20px; padding: 20px; border: 1px solid #f1d1ca; border-radius: 22px; background: #fffdfc; box-shadow: var(--shadow); }
.batch-result-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.batch-result-heading .eyebrow { margin-bottom: 5px; color: #a34a38; }
.batch-result-heading h2 { margin: 0; font-size: 17px; letter-spacing: -0.03em; }
.batch-result-heading > a { color: var(--muted); font-size: 12px; font-weight: 750; text-decoration: none; }
.batch-result-card > p { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.batch-cancel-form { margin-top: 16px; text-align: center; }
.batch-history { margin-top: 30px; }
@keyframes batch-active-outline { from { box-shadow: 0 0 0 0 rgba(3, 199, 90, 0.05); } to { box-shadow: 0 0 0 4px rgba(3, 199, 90, 0.18); } }

.admin-header { margin-bottom: 22px; }
.notice { margin-bottom: 16px; padding: 14px 16px; border-radius: 15px; font-size: 13px; font-weight: 750; }
.success-notice { background: #e7faef; color: #08733b; }
.warning-notice { background: #fff4d8; color: #8a6209; }
[hidden] { display: none !important; }
.muted-copy { color: var(--muted); font-size: 11px; line-height: 1.6; }
.danger-text { color: #a33d37; }
.consent-card { max-width: 560px; padding: 30px; box-shadow: var(--shadow); }
.consent-heading > p:last-child { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.consent-heading > p strong { color: var(--ink); }
.consent-status { display: grid; gap: 0; margin-top: 20px; overflow: hidden; border: 1px solid #dcece2; border-radius: 17px; background: #f7fcf8; }
.consent-status-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 15px; }
.consent-status-row + .consent-status-row { border-top: 1px solid #dcece2; }
.consent-status-row > div { display: grid; gap: 3px; }
.consent-status-row span:first-child { color: var(--muted); font-size: 11px; font-weight: 700; }
.consent-status-row strong { font-size: 14px; }
.consent-status-icon { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 999px; background: var(--green); color: #fff; font-size: 14px; font-weight: 900; }
.consent-status-wait { padding: 5px 8px; border-radius: 999px; background: #edf2ef; color: #66736b; font-size: 10px; font-weight: 800; }
.consent-summary { margin-top: 20px; }
.consent-summary h2 { margin: 0 0 12px; font-size: 16px; letter-spacing: -0.02em; }
.consent-summary ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.consent-summary li { position: relative; display: grid; gap: 3px; margin: 0; padding: 0 0 0 18px; color: var(--ink); }
.consent-summary li::before { position: absolute; top: 5px; left: 1px; width: 8px; height: 8px; border-radius: 999px; background: var(--green); content: ""; }
.consent-summary li strong { font-size: 13px; }
.consent-summary li span { color: var(--muted); font-size: 12px; line-height: 1.55; }
.consent-details { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.consent-details summary { color: #367050; font-size: 12px; font-weight: 800; cursor: pointer; }
.consent-details p { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.consent-card .button.wide { margin-top: 18px; }
.consent-card .consent-revoke { margin-top: 8px; }
.consent-action-dock { margin-top: 20px; }
.remote-login-page { height: var(--remote-visible-height, 100dvh); min-height: 0; overflow: hidden; background: #eaf2ed; }
.remote-login-shell { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: var(--remote-visible-height, 100dvh); min-height: 0; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.remote-login-header { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; min-height: 56px; padding: 8px 16px; border-bottom: 1px solid #dce9e0; background: rgba(255, 255, 255, 0.94); }
.remote-login-back { overflow: hidden; color: #537062; font-size: 13px; font-weight: 750; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.remote-login-title { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; letter-spacing: -0.025em; white-space: nowrap; }
.remote-login-mark { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; background: var(--green); color: #fff; font-size: 15px; font-weight: 900; }
.remote-login-step { justify-self: end; padding: 5px 8px; border-radius: 999px; background: #e8f9ee; color: #098442; font-size: 10px; font-weight: 800; }
.remote-login-stage { min-height: 0; padding: 10px 10px 6px; }
.remote-login-frame { display: block; width: 100%; height: 100%; border: 1px solid #cadbd0; border-radius: 20px; background: #f6faf7; box-shadow: 0 8px 24px rgba(18, 47, 31, 0.12); }
.remote-keyboard-bridge { position: fixed; z-index: 1; bottom: 74px; left: 50%; width: 24px; height: 24px; padding: 0; border: 0; opacity: 0.01; font-size: 16px; line-height: 24px; pointer-events: none; transform: translateX(-50%); }
.remote-login-dock { padding: 10px 16px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid #dce9e0; background: rgba(255, 255, 255, 0.96); box-shadow: 0 -8px 22px rgba(18, 47, 31, 0.08); }
.remote-login-dock p { margin: 0 0 8px; color: var(--muted); font-size: 11px; line-height: 1.35; text-align: center; }
.remote-login-dock form { margin: 0; }
.remote-login-actions { display: grid; grid-template-columns: minmax(126px, 0.82fr) minmax(0, 1.18fr); gap: 8px; }
.remote-login-actions .button { min-width: 0; min-height: 50px; padding: 0 10px; }
.remote-keyboard-button { color: #29724f; box-shadow: inset 0 0 0 1px #c7dfcf; touch-action: manipulation; }
.remote-keyboard-open .remote-login-shell { grid-template-rows: auto minmax(0, 1fr); padding-bottom: 0; }
.remote-keyboard-open .remote-login-header { min-height: 44px; padding-top: 4px; padding-bottom: 4px; }
.remote-keyboard-open .remote-login-stage { padding: 4px 6px 6px; }
.remote-keyboard-open .remote-login-frame { border-radius: 14px; }
.remote-keyboard-open .remote-login-dock { display: none; }
.account-session-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px 0; padding: 17px 18px; border: 1px solid #dcece2; border-radius: 18px; background: #f7fcf8; }
.account-session-card .eyebrow { margin-bottom: 4px; font-size: 10px; }
.account-session-card h2 { margin: 0; font-size: 17px; letter-spacing: -0.02em; }
.account-session-card p:not(.eyebrow) { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.account-session-card form { flex: 0 0 auto; margin: 0; }
.account-session-card .button { min-height: 40px; padding: 0 13px; }
.naver-connection-card { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 14px; border-color: #cdeedb; background: linear-gradient(135deg, #f5fff8, #ffffff); }
.naver-connection-card > div:first-child { min-width: 0; }
.account-connection-actions { display: grid; width: 100%; gap: 8px; }
.account-connection-actions form, .account-connection-actions > a { width: 100%; margin: 0; }
.account-connection-actions .button { width: 100%; }
.account-discovery-notice { margin: 12px 0 0; }
.remote-account-id-label input { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid #d6e1da; border-radius: 11px; background: #fff; color: var(--ink); font: inherit; }
.remote-account-id-label { display: grid; gap: 5px; margin: 0 0 8px; color: var(--muted); font-size: 11px; font-weight: 750; }
.app-modal { width: min(calc(100% - 40px), 420px); max-height: calc(100dvh - 40px); overflow: visible; border: 0; border-radius: 26px; padding: 0; color: var(--ink); background: transparent; box-shadow: 0 24px 70px rgba(18, 47, 31, 0.28); }
.app-modal::backdrop { background: rgba(19, 33, 25, 0.44); backdrop-filter: blur(8px) saturate(0.8); }
.operation-row-button { width: 100%; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.modal-card { display: grid; gap: 16px; padding: 24px; border: 1px solid rgba(255, 255, 255, 0.72); border-radius: inherit; background: rgba(255, 255, 255, 0.98); }
.modal-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 13px; background: #e7faef; color: #008f43; font-size: 18px; font-weight: 900; }
.confirmation-dialog.is-danger .modal-icon { background: #feeceb; color: #b43b35; }
.modal-eyebrow { margin: 0 0 5px; color: #087a3f; font-size: 11px; font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase; }
.confirmation-dialog.is-danger .modal-eyebrow { color: #b43b35; }
.app-modal h2 { margin: 0; font-size: 21px; letter-spacing: -0.04em; }
.app-modal h2 + p { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.modal-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; margin-top: 3px; }
.modal-actions .button { min-height: 48px; padding: 0 12px; font-size: 13px; text-decoration: none; }
.confirmation-dialog.is-danger [data-confirmation-accept] { background: #d94d44; }
.toast-region { position: fixed; z-index: 100; top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); left: max(14px, env(safe-area-inset-left)); display: grid; gap: 8px; margin: 0 auto; pointer-events: none; }
.toast { display: grid; grid-template-columns: 25px minmax(0, 1fr) 25px; align-items: center; gap: 8px; width: min(100%, 440px); margin: 0 auto; padding: 12px 11px 12px 12px; border: 1px solid #dce7df; border-radius: 17px; background: rgba(255, 255, 255, 0.96); box-shadow: 0 14px 35px rgba(18, 47, 31, 0.2); backdrop-filter: blur(16px); animation: toast-enter 180ms ease-out; pointer-events: auto; }
.toast-success { border-color: #bde8cc; background: rgba(247, 255, 250, 0.98); }
.toast-error { border-color: #f1d1ca; background: rgba(255, 250, 248, 0.98); }
.toast-icon { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 9px; background: #eef2ef; color: #54705e; font-size: 13px; font-weight: 900; }
.toast-success .toast-icon { background: var(--green); color: #fff; }
.toast-error .toast-icon { background: #feeceb; color: #b43b35; }
.toast p { margin: 0; font-size: 12px; font-weight: 750; line-height: 1.45; }
.toast-close { width: 25px; height: 25px; border: 0; border-radius: 9px; color: #7a847e; background: transparent; font: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.toast.is-leaving { animation: toast-leave 180ms ease-in forwards; }
@keyframes toast-enter { from { opacity: 0; transform: translateY(-9px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toast-leave { to { opacity: 0; transform: translateY(-8px) scale(0.98); } }
.admin-grid { display: grid; gap: 12px; }
.admin-card { padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.admin-card h2 { margin: 0; font-size: 24px; }
.admin-card > p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.admin-card .button.wide { margin-top: 18px; }
.compact-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 18px 0 0; }
.compact-stats div { padding: 10px; border-radius: 12px; background: var(--canvas); }
.compact-stats dt { color: var(--muted); font-size: 10px; }
.compact-stats dd { margin: 4px 0 0; font-size: 14px; font-weight: 800; }
.source-results { display: grid; gap: 6px; margin-top: 12px; }
.source-results div { display: grid; grid-template-columns: auto 1fr auto; gap: 7px; padding: 9px 10px; border-radius: 11px; background: var(--canvas); font-size: 10px; }
.source-results span { min-width: 0; color: var(--muted); }
.source-results em { color: #b43b35; font-style: normal; font-weight: 800; }
.operation-error { color: #a33d37 !important; white-space: pre-line; }
.ops-overview { margin-top: 34px; }
.ops-count-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.ops-count-grid a { display: flex; min-width: 0; flex-direction: column; gap: 3px; padding: 13px 9px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; }
.ops-count-grid strong { font-size: 21px; }
.ops-count-grid span { color: var(--muted); font-size: 10px; }
.observer-card { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); font-size: 12px; }
.observer-card span { color: var(--muted); }
.operation-list { display: grid; gap: 8px; }
.operation-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.operation-row > div { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.operation-row > div span { color: var(--muted); font-size: 11px; }
.operation-row > p { grid-column: 1 / -1; margin: 0; color: #a33d37; font-size: 11px; white-space: pre-line; }
.operation-status { align-self: start; padding: 5px 8px; border-radius: 999px; background: #edf0f6; color: #5c6577; font-size: 10px; font-weight: 800; }
.operation-success { background: #e7faef; color: #008f43; }
.operation-partial, .operation-running, .operation-queued { background: #fff4d8; color: #9a6500; }
.operation-failed { background: #feeceb; color: #b43b35; }
.compact-empty { padding: 28px 18px; }

@media (min-width: 680px) {
  .page-shell { padding-top: 44px; }
  .hero { grid-template-columns: 1.25fr 1fr; align-items: end; }
  .reward-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reward-card { display: flex; flex-direction: column; }
  .card-actions { margin-top: auto; padding-top: 18px; }
  .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .naver-connection-card { flex-direction: row; align-items: center; }
  .naver-connection-card > div:first-child { flex: 1 1 auto; }
  .account-connection-actions { width: auto; grid-template-columns: repeat(2, max-content); }
  .account-connection-actions form, .account-connection-actions > a, .account-connection-actions .button { width: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  .reward-card { transition: transform 160ms ease, box-shadow 160ms ease; }
  .reward-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(18, 47, 31, 0.12); }
}

@keyframes pull-refresh-spin { to { transform: rotate(360deg); } }
