/* ── 여지 여름 하늘 디자인 토큰 (2-0) ── */
:root {
  /* ── 배경: 여름 하늘 ── */
  --sky-top: #AEE8FF;
  --sky-mid: #BDEEEC;
  --sky-bot: #B8F0D6;

  /* ── 브랜드 / 민트 ── */
  --mint-a: #31C690;
  --mint-b: #67D9AC;
  --mint-text: #143b37;
  --brand: #0f6e56;
  --brand-soft: rgba(15,110,86,0.10);

  /* ── 코랄 / 경고 ── */
  --coral: #FF6B5E;
  --coral-bg: #FFEDEA;
  --coral-text: #E0463A;

  /* ── 텍스트(잉크) ── */
  --ink: #12302b;
  --ink-2: #3c5a53;
  --ink-3: #7f968f;
  --line: #e9f0ee;

  /* ── 표면 ── */
  --card: #ffffff;
  --card-soft: rgba(255,255,255,0.62);

  /* ── radius ── */
  --r-card: 20px;
  --r-soft: 16px;
  --r-icon: 14px;
  --r-pill: 999px;

  /* ── 그림자 (청록 잉크 기반) ── */
  --shadow:    0 8px 24px -10px rgba(20,80,68,0.22), 0 2px 6px -2px rgba(20,80,68,0.10);
  --shadow-sm: 0 4px 14px -8px rgba(20,80,68,0.22);
}

@font-face{
  font-family:'Pretendard Variable';
  font-weight:45 920;
  font-style:normal;
  font-display:swap;
  src:url('./fonts/PretendardVariable.woff2') format('woff2-variations'),
      url('./fonts/PretendardVariable.woff2') format('woff2');
}

    :root {
      --navy: #0B1120;
      --navy2: #1A2640;
      --red: #E8002D;
      --red-soft: #FFF0F3;
      --red-mid: #FFB3C1;
      --gold: #C8972B;
      --gold-soft: #FFF8EC;
      --cream: #F7F7F4;
      --white: #FFFFFF;
      --muted: #6B7280;
      --border: #E5E7EB;
      --border2: #D1D5DB;
      --success: #0F6E56;
      --success-soft: #E1F5EE;
      --info-soft: #EFF6FF;
      --info: #185FA5;
      --bnav-h: 60px;
      /* ── 추가 색상 토큰 ── */
      --bg-light: #F3F4F6;
      --success-mid: #5DCAA5;
      --muted-light: #9CA3AF;
      --danger-dark: #B91C1C;
      --danger-soft: #FECACA;
      --danger-mid: #E24B4A;
      --danger-bg: #FCEBEB;
      --budget-ok: #1D9E75;
      --budget-warn: #EF9F27;
      --budget-spent: #D85A30;
      /* ── 그림자 ── */
      --shadow-card: 0 1px 6px rgba(11, 17, 32, 0.05);
      /* ── 트랜지션 ── */
      --trans-fade: opacity 0.15s;
      --trans-all: all 0.15s;
      --trans-slide: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      /* ── 모서리 반경 ── */
      --radius-sm: 8px;
      --radius-md: 10px;
      --radius-lg: 16px;
      --radius-xl: 20px;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      -webkit-tap-highlight-color: transparent;
    }

    html,
    body {
      height: 100%;
      overflow: hidden;
    }

    body {
      font-family: 'Pretendard Variable','Pretendard',-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",sans-serif;
      background: var(--cream);
      color: var(--navy);
      max-width: 430px;
      margin: 0 auto;
      position: relative;
      height: 100%;
    }

    /* ═══════════════════════════════
   PAGE SYSTEM
═══════════════════════════════ */
    .page {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      background:
        radial-gradient(120% 70% at 88% -8%, rgba(255,255,255,.85) 0%, rgba(255,255,255,0) 42%),
        radial-gradient(90% 50% at 70% 4%, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 38%),
        linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 46%, var(--sky-bot) 100%);
      transform: translateX(100%);
      transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
      will-change: transform;
      overflow: hidden;
    }

    .page.active {
      transform: translateX(0);
    }

    .page.behind {
      transform: translateX(-30%);
    }

    /* #page-home은 ID 특이도로 .page.behind를 무력화하므로, 홈일 때 .behind가 제대로 적용되도록 보정 */
    #page-home.behind { transform: translateX(-30%); }

    #page-home {
      transform: translateX(0);
      background: linear-gradient(180deg, #8EDBFF 0%, #B8F5E5 60%, #EFFFF8 100%);
    }

    /* ═══════════════════════════════
   HOME
═══════════════════════════════ */
    .home-header {
      background: var(--navy);
      padding: env(safe-area-inset-top, 0px) 20px 18px;
      padding-top: calc(env(safe-area-inset-top, 0px) + 20px);
      flex-shrink: 0;
    }

    .home-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 10px;
    }

    .logo-mark {
      width: 38px;
      height: 38px;
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.12);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
    }

    .logo-text .t1 {
      font-size: 17px;
      font-weight: 700;
      color: var(--white);
      letter-spacing: -0.3px;
    }

    .logo-text .t2 {
      font-size: 10px;
      color: rgba(255, 255, 255, 0.4);
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }

    .offline-pill {
      display: flex;
      align-items: center;
      gap: 5px;
      background: rgba(15, 110, 86, 0.25);
      border: 1px solid rgba(15, 110, 86, 0.45);
      color: var(--success-mid);
      font-size: 10px;
      font-weight: 500;
      padding: 4px 10px;
      border-radius: 20px;
    }

    .offline-dot {
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: var(--success-mid);
    }

    .header-meta {
      margin-left: auto;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 3px;
    }

    .last-updated {
      font-size: 9px;
      color: #9aa8a3;
      font-variant-numeric: tabular-nums;
      letter-spacing: 0.3px;
      padding-right: 2px;
    }

    @keyframes taglineScroll {
      0% {
        transform: translateX(0);
      }

      100% {
        transform: translateX(-33.333%);
      }
    }

    .home-tagline {
      margin: 0 -16px 14px;
      padding: 6px 0;
      overflow: hidden;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .home-tagline-track {
      display: inline-flex;
      white-space: nowrap;
      animation: taglineScroll 12s linear infinite;
      will-change: transform;
    }

    .home-tagline-item {
      font-size: 12px;
      color: var(--gold);
      font-weight: 400;
      letter-spacing: -0.1px;
      line-height: 1.5;
      flex-shrink: 0;
      padding-right: 48px;
    }

    .home-tagline-item .tag-dot {
      opacity: 0.5;
      margin: 0 4px;
    }

    .new-trip-btn {
      width: 100%;
      display: flex;
      align-items: center;
      gap: 12px;
      background: linear-gradient(90deg, #31C690, #67D9AC);
      border: none;
      border-radius: 14px;
      padding: 14px 16px;
      cursor: pointer;
      font-family: inherit;
      text-align: left;
      min-height: 56px;
      transition: var(--trans-fade);
    }

    .new-trip-btn:active {
      opacity: 0.88;
    }

    .new-trip-btn .plus {
      width: 32px;
      height: 32px;
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.2);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      color: var(--white);
      flex-shrink: 0;
    }

    .new-trip-btn .txt {
      font-size: 14px;
      font-weight: 700;
      color: #143b37;
    }

    .new-trip-btn .sub {
      font-size: 11px;
      color: #2F6F63;
      margin-top: 2px;
    }

    .home-body {
      flex: 1;
      overflow-y: auto;
      padding: 16px 20px calc(20px + env(safe-area-inset-bottom, 0px));
      -webkit-overflow-scrolling: touch;
    }

    .section-label {
      font-size: 11px;
      font-weight: 700;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.7px;
      margin-bottom: 10px;
      margin-top: 4px;
    }

    /* Trip card */
    .trip-card {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 14px 16px;
      margin-bottom: 10px;
      cursor: pointer;
      transition: transform 0.12s, border-color 0.12s;
      display: flex;
      align-items: flex-start;
      gap: 12px;
      min-height: 44px;
      position: relative;
    }

    .trip-section-hdr {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 10px;
    }

    .trip-section-hdr .section-label {
      margin-bottom: 0;
    }

    .trip-del-x {
      display: none;
      position: absolute;
      top: -8px;
      right: -8px;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: var(--danger-dark);
      color: var(--white);
      border: none;
      font-size: 14px;
      line-height: 1;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 2;
      box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    }

    .trip-del-mode .trip-del-x {
      display: flex;
    }

    .trip-del-mode {
      border-color: var(--danger-soft) !important;
    }

    .trip-card:active {
      transform: scale(0.985);
    }

    .trip-card.is-next {
      border: 1.5px solid var(--navy);
    }

    .trip-card-icon {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      flex-shrink: 0;
      margin-top: 1px;
    }

    .icon-upcoming {
      background: var(--info-soft);
    }

    .icon-past {
      background: var(--bg-light);
    }

    .icon-now {
      background: var(--success-soft);
    }

    .trip-card-info {
      flex: 1;
      min-width: 0;
    }

    .trip-card-name {
      font-size: 15px;
      font-weight: 700;
      color: var(--navy);
      margin-bottom: 2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .trip-card-date {
      font-size: 12px;
      color: var(--muted);
      margin-bottom: 6px;
    }

    .prog-wrap {
      margin-top: 2px;
    }

    .prog-meta {
      display: flex;
      justify-content: space-between;
      font-size: 11px;
      color: var(--muted);
      margin-bottom: 4px;
    }

    .prog-bar {
      height: 4px;
      background: var(--border);
      border-radius: 2px;
      overflow: hidden;
    }

    .prog-fill {
      height: 100%;
      border-radius: 2px;
      background: var(--navy);
      transition: width 0.4s;
    }


    /* --- Trip Card Image Preview --- */
    .tci-wrap {
      margin-top: 12px;
      width: 100%;
      min-width: 0;
    }

    .tci-toggle {
      padding: 10px 12px;
      background: #F9FAFB;
      border: 0.5px solid var(--border);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      cursor: pointer;
      min-height: 44px;
    }

    .tci-wrap.is-open .tci-toggle {
      border-radius: 10px 10px 0 0;
      border-bottom: none;
    }

    .tci-toggle-l {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
      flex: 1;
    }

    .tci-toggle-r {
      display: flex;
      align-items: center;
      gap: 4px;
      color: var(--muted);
      font-size: 11px;
      flex-shrink: 0;
    }

    .tci-count {
      font-size: 12px;
      color: #374151;
      font-weight: 500;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .tci-mini-stack {
      display: flex;
      flex-shrink: 0;
    }

    .tci-mini {
      width: 22px;
      height: 22px;
      border-radius: 5px;
      overflow: hidden;
      border: 1.5px solid var(--white);
      background: var(--bg-light);
    }

    .tci-mini img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .tci-icon {
      display: none;
      font-size: 14px;
      color: var(--muted);
    }

    .tci-wrap.is-open .tci-mini-stack {
      display: none;
    }

    .tci-wrap.is-open .tci-icon {
      display: block;
    }

    .tci-chev {
      font-size: 14px;
      transition: transform 0.2s;
    }

    .tci-wrap.is-open .tci-chev {
      transform: rotate(180deg);
    }

    .tci-body {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.28s ease, padding 0.28s ease;
      background: #F9FAFB;
      border: 0.5px solid var(--border);
      border-top: none;
      border-radius: 0 0 10px 10px;
      padding: 0 12px;
    }

    .tci-wrap.is-open .tci-body {
      max-height: 200px;
      padding: 10px 12px 12px;
    }

    .tci-track {
      display: flex;
      gap: 6px;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      margin-bottom: 8px;
    }

    .tci-track::-webkit-scrollbar {
      display: none;
    }

    .tci-thumb {
      flex: 0 0 110px;
      height: 78px;
      border-radius: 8px;
      overflow: hidden;
      scroll-snap-align: start;
      position: relative;
      background: var(--bg-light);
      cursor: pointer;
    }

    .tci-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .tci-chip {
      position: absolute;
      bottom: 3px;
      left: 3px;
      font-size: 9px;
      color: var(--white);
      background: rgba(0, 0, 0, 0.5);
      padding: 2px 5px;
      border-radius: 4px;
      font-weight: 500;
    }

    /* PDF 썸네일 카드 */
    .tci-thumb-pdf {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      background: var(--bg-light);
      border: 1px solid var(--border);
    }

    .tci-pdf-icon {
      font-size: 26px;
      line-height: 1;
      pointer-events: none;
    }

    /* miniStack PDF 아이콘 */
    .tci-mini-pdf {
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      background: var(--bg-light);
      border: 1.5px solid var(--white);
    }

    .tci-dots {
      display: flex;
      justify-content: center;
      gap: 4px;
    }

    /* ═══════════════════════════════
   SAMPLE TRIP PAGE
═══════════════════════════════ */
    .sample-banner {
      background: rgba(255, 200, 50, 0.13);
      border-bottom: 1.5px solid rgba(255, 200, 50, 0.4);
      color: #000000;
      font-size: 13px;
      font-weight: 600;
      text-align: center;
      padding: 10px 16px;
      flex-shrink: 0;
    }

    .sample-trip-hdr {
      background: var(--navy);
      padding: 14px 20px 16px;
      flex-shrink: 0;
    }

    .sample-trip-row {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .sample-trip-emoji {
      font-size: 28px;
      line-height: 1;
      flex-shrink: 0;
    }

    .sample-trip-meta {
      flex: 1;
      min-width: 0;
    }

    .sample-trip-name {
      font-size: 16px;
      font-weight: 700;
      color: var(--white);
    }

    .sample-trip-dates {
      font-size: 12px;
      color: rgba(255, 255, 255, 0.5);
      margin-top: 2px;
    }

    .sample-progress {
      font-size: 13px;
      font-weight: 700;
      color: var(--mint);
      flex-shrink: 0;
    }

    #sample-body {
      flex: 1;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .sample-scroll {
      flex: 1;
      min-height: 0;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }

    .sample-doc-list {
      padding: 8px 0 4px;
    }

    .sample-img-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      padding: 10px 16px 12px;
    }

    .sample-note-ro {
      font-size: 14px;
      color: rgba(255, 255, 255, 0.75);
      line-height: 1.65;
      padding: 10px 16px 14px;
    }

    .sample-empty {
      font-size: 13px;
      color: rgba(255, 255, 255, 0.35);
      padding: 10px 16px 14px;
    }

    .sample-cta {
      padding: 12px 20px 20px;
    }

    .tci-dots .d {
      width: 3px;
      height: 3px;
      border-radius: 50%;
      background: var(--border2);
      transition: width 0.2s;
    }

    .tci-dots .d.on {
      width: 12px;
      border-radius: 2px;
      background: var(--navy);
    }

    .tci-dots .d.more {
      font-size: 10px;
      color: var(--muted);
      background: transparent;
      width: auto;
      height: auto;
    }

    /* --- Lightbox --- */
    #lightbox {
      position: fixed;
      inset: 0;
      z-index: 2000;
      background: #000;
      display: none;
      flex-direction: column;
      overflow: hidden;
    }

    #lightbox.lb-open {
      display: flex;
    }

    .lb-header {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      z-index: 10;
      padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    }

    .lb-label {
      font-size: 13px;
      color: var(--white);
      font-weight: 600;
    }

    .lb-counter {
      font-size: 12px;
      color: rgba(255, 255, 255, 0.7);
    }

    .lb-close {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: none;
      background: rgba(255, 255, 255, 0.15);
      color: var(--white);
      font-size: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }

    .lb-track {
      flex: 1;
      display: flex;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      overscroll-behavior-x: contain;
    }

    .lb-track::-webkit-scrollbar {
      display: none;
    }

    .lb-slide {
      flex: 0 0 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      scroll-snap-align: start;
      padding: calc(60px + env(safe-area-inset-top, 0px)) 16px 100px;
      box-sizing: border-box;
      touch-action: pan-x;
    }

    .lb-slide img {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      border-radius: 6px;
      touch-action: none;
      user-select: none;
      -webkit-user-select: none;
      -webkit-user-drag: none;
    }

    /* viewer img도 동일하게 제스처 차단 */
    #viewer img {
      touch-action: none;
      user-select: none;
      -webkit-user-select: none;
      -webkit-user-drag: none;
    }

    .lb-footer {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
      background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
    }

    .lb-fdots {
      display: flex;
      gap: 5px;
    }

    .lb-fdots .d {
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.4);
      transition: width 0.2s, background 0.2s;
    }

    .lb-fdots .d.on {
      width: 14px;
      border-radius: 2px;
      background: var(--white);
    }

    .lb-fdots .d.more {
      font-size: 11px;
      color: rgba(255, 255, 255, 0.7);
      background: transparent;
      width: auto;
      height: auto;
    }

    .lb-open-btn {
      padding: 8px 20px;
      background: rgba(255, 255, 255, 0.15);
      border: 1px solid rgba(255, 255, 255, 0.3);
      color: var(--white);
      border-radius: 20px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      white-space: nowrap;
    }

    /* ─── Lightbox bright-mode (QR 인식 최적화) ─── */
    #lightbox.bright-mode {
      background: var(--white);
    }

    #lightbox.bright-mode .lb-header {
      background: linear-gradient(to bottom, rgba(255, 255, 255, 0.92) 0%, transparent 100%);
    }

    #lightbox.bright-mode .lb-footer {
      background: linear-gradient(to top, rgba(255, 255, 255, 0.92) 0%, transparent 100%);
    }

    #lightbox.bright-mode .lb-label {
      color: var(--navy);
    }

    #lightbox.bright-mode .lb-counter {
      color: rgba(0, 0, 0, 0.5);
    }

    #lightbox.bright-mode .lb-close {
      background: rgba(0, 0, 0, 0.08);
      color: var(--navy);
    }

    #lightbox.bright-mode .lb-open-btn {
      background: rgba(0, 0, 0, 0.07);
      border-color: rgba(0, 0, 0, 0.18);
      color: var(--navy);
    }

    #lightbox.bright-mode .lb-fdots .d {
      background: rgba(0, 0, 0, 0.18);
    }

    #lightbox.bright-mode .lb-fdots .d.on {
      background: var(--navy);
      width: 14px;
    }

    #lightbox.bright-mode .lb-fdots .d.more {
      color: rgba(0, 0, 0, 0.5);
      background: transparent;
    }

    #lightbox.bright-mode .lb-slide {
      background: var(--white);
    }

    /* 줌 상태에서 슬라이드 전환 차단 (Android touch-action 포함) */
    .lb-track.lb-zoomed {
      scroll-snap-type: none !important;
      overflow: hidden !important;
      touch-action: none !important;
    }

    .lb-track.lb-zoomed .lb-slide {
      touch-action: none !important;
    }

    .trip-card-unreg {
      font-size: 10px;
      font-weight: 600;
      color: var(--red);
      margin-top: 4px;
    }

    .trip-badge {
      font-size: 10px;
      font-weight: 700;
      padding: 4px 9px;
      border-radius: 8px;
      flex-shrink: 0;
      margin-top: 3px;
      text-transform: uppercase;
      letter-spacing: 0.3px;
    }

    .badge-upcoming {
      background: var(--info-soft);
      color: var(--info);
    }

    .badge-past {
      background: var(--bg-light);
      color: var(--muted);
    }

    .badge-now {
      background: var(--success-soft);
      color: var(--success);
    }

    .badge-soon {
      background: var(--gold-soft);
      color: var(--gold);
    }

    .empty-state {
      text-align: center;
      padding: 40px 20px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.6;
    }

    .empty-icon {
      font-size: 40px;
      margin-bottom: 12px;
    }

    /* ── 빈 상태 (Empty State) ── */
    .es-wrap {
      display: flex;
      flex-direction: column;
      gap: 16px;
      padding: 8px 0 24px;
    }

    .es-headline {
      font-size: 26px;
      font-weight: 800;
      color: var(--navy);
      line-height: 1.25;
      letter-spacing: -0.5px;
    }

    .es-hl { color: var(--success-mid); }

    .es-marquee-track {
      overflow: hidden;
      background: var(--navy2);
      border-radius: var(--radius-md);
      padding: 10px 0;
    }
    .es-marquee-inner {
      display: inline-flex;
      white-space: nowrap;
      animation: es-marquee 22s linear infinite;
    }
    .es-marquee-inner span {
      display: inline-block;
      font-size: 12px;
      color: #0f6e56;
      padding: 0 16px;
    }
    @keyframes es-marquee {
      0%   { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }
    @media (prefers-reduced-motion: reduce) {
      .es-marquee-inner { animation: none; display: flex; flex-wrap: wrap; white-space: normal; gap: 6px; }
      .es-marquee-inner .es-doc-pill:nth-child(n+6) { display: none; }
      .home-cloud { animation: none; }
      .logo-plane { animation: none; }
      .es-banner  { animation: none; opacity: 1; transform: none; }
    }

    .es-cards { display: flex; flex-direction: column; gap: 10px; }

    .es-card {
      width: 100%;
      display: flex;
      align-items: center;
      gap: 12px;
      background: var(--navy2);
      border: none;
      border-radius: 14px;
      padding: 14px 16px;
      cursor: pointer;
      font-family: inherit;
      text-align: left;
      min-height: 56px;
      transition: var(--trans-fade);
    }
    .es-card:active { opacity: 0.88; }

    .es-card--primary { border-left: 3px solid var(--success-mid); }

    .es-card-ico { font-size: 22px; flex-shrink: 0; }

    .es-card-txt {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 3px;
    }
    .es-card-title {
      font-size: 14px;
      font-weight: 700;
      color: var(--white);
    }
    .es-card-sub {
      font-size: 11px;
      color: rgba(255, 255, 255, 0.6);
    }
    .es-card-arr {
      font-size: 20px;
      color: rgba(255, 255, 255, 0.35);
      flex-shrink: 0;
    }

    .es-badges { display: flex; flex-wrap: nowrap; gap: 8px; }

    .es-badge {
      flex: 1;
      justify-content: center;
      white-space: nowrap;
      text-align: center;
      font-size: 11px;
      font-weight: 500;
      color: var(--navy);
      background: rgba(11, 17, 32, 0.06);
      border: 1px solid rgba(11, 17, 32, 0.12);
      border-radius: 20px;
      padding: 5px 12px;
    }

    .es-tip {
      background: var(--info-soft);
      border-radius: var(--radius-md);
      padding: 12px 14px;
      font-size: 12px;
      font-weight: 500;
      color: var(--info);
    }

    .es-cta-btn {
      width: 100%;
      display: flex;
      align-items: center;
      gap: 10px;
      background: #0f6e56;
      border: none;
      border-radius: 14px;
      padding: 14px 16px;
      cursor: pointer;
      font-family: inherit;
      text-align: left;
      margin-top: 4px;
    }
    .es-cta-btn:active { opacity: 0.88; }
    .es-cta-plus {
      width: 24px;
      height: 24px;
      background: rgba(255,255,255,0.2);
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      color: var(--white);
      flex-shrink: 0;
    }
    .es-cta-inner {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    .es-cta-label {
      font-size: 14px;
      font-weight: 700;
      color: var(--white);
    }
    .es-cta-sub {
      font-size: 10px;
      color: rgba(255,255,255,0.72);
    }

    /* ═══════════════════════════════
   HOME 2B: 하늘 배경 A안
═══════════════════════════════ */

    /* 1. 헤더 투명화 + 텍스트 어두운 톤 */
    #page-home .home-header   { background: transparent; position: relative; z-index: 1; }
    #page-home .logo-text .t1 { color: #143b37; }
    #page-home .logo-text .t2 { color: #1f5249; font-size: 11px; font-weight: 500; opacity: .65; text-transform: none; letter-spacing: 0; }

    /* 2. 하늘 데코 레이어 */
    .home-sky {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 160px;
      pointer-events: none;
      z-index: 0;
      overflow: hidden;
    }
    .home-sun {
      position: absolute;
      top: -30px;
      right: -20px;
      width: 150px;
      height: 150px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(255,255,255,.28), transparent 70%);
    }
    .home-cloud {
      position: absolute;
      border-radius: 50px;
      background: rgba(255,255,255,.45);
      filter: blur(3px);
      animation: cloud-float 26s ease-in-out infinite;
    }
    .home-cloud:nth-child(2) { width: 90px; height: 32px; top: 30px; left: 10%; animation-duration: 28s; }
    .home-cloud:nth-child(3) { width: 60px; height: 22px; top: 55px; left: 45%; animation-duration: 24s; animation-delay: -8s; }
    .home-cloud:nth-child(4) { width: 75px; height: 26px; top: 20px; left: 65%; animation-duration: 30s; animation-delay: -14s; }
    @keyframes cloud-float {
      0%, 100% { transform: translateX(0); }
      50%       { transform: translateX(6px); }
    }
    .home-path {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      opacity: .12;
    }
    .logo-plane { display: inline-block; animation: logo-plane-float 8s ease-in-out infinite; }
    @keyframes logo-plane-float {
      0%, 100% { transform: translateY(0); }
      50%       { transform: translateY(-2px); }
    }

    /* 3. 헤드라인 / 서브 / 구분선 */
    #page-home .es-headline { color: #143b37; letter-spacing: -0.02em; text-align: center; }
    .es-sub {
      color: #2F6F63;
      font-size: 14px;
      font-weight: 600;
      text-align: center;
    }
    .es-divider {
      width: 40px;
      height: 3px;
      border-radius: 2px;
      background: rgba(47, 111, 99, .3);
      margin: 14px auto;
      align-self: center;
    }

    /* 4. 배너 */
    .es-banner {
      background: rgba(15, 110, 86, .12);
      border: 1px solid rgba(15, 110, 86, .18);
      border-radius: 14px;
      text-align: center;
      padding: 10px 14px;
      color: #1f5249;
      font-weight: 600;
      font-size: 13px;
      animation: es-banner-in .4s ease-out 1 both;
    }
    @keyframes es-banner-in {
      from { opacity: 0; transform: translateY(4px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* 4. 마퀴 칩 */
    .es-marquee {
      overflow: hidden;
      border-radius: var(--radius-md);
      padding: 8px 0;
      -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
      mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    }
    .es-doc-pill {
      display: inline-flex;
      align-items: center;
      background: rgba(255, 255, 255, .78);
      border: 1px solid rgba(255, 255, 255, .9);
      border-radius: 13px;
      padding: 8px 13px;
      font-size: 13px;
      white-space: nowrap;
      color: #143b37;
      font-weight: 500;
      margin-right: 8px;
    }

    /* 5. CTA (홈 전용 오버라이드) */
    #page-home .es-cta-btn {
      background: linear-gradient(90deg, #31C690, #67D9AC);
      border: 1px solid rgba(0, 0, 0, .05);
      box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
      border-radius: 16px;
    }
    #page-home .es-cta-btn:hover  { transform: scale(1.01); }
    #page-home .es-cta-btn:active { transform: scale(.98); opacity: 1; }
    #page-home .es-cta-label {
      font-size: 22px;
      font-weight: 700;
      color: #143b37;
    }
    #page-home .es-cta-sub {
      font-size: 14px;
      font-weight: 500;
      color: #2F6F63;
      opacity: .75;
    }

    /* 6. 카드 위계 */
    #page-home .es-cards    { gap: 14px; }
    #page-home .es-card     { background: #EFF2F0; transition: transform 0.15s ease; }
    #page-home .es-card--sec     { background: #EFF2F0; }
    #page-home .es-card--primary { background: #fff; }
    #page-home .es-card:hover  { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.05); }
    #page-home .es-card:active { transform: scale(.98); opacity: 1; }
    #page-home .es-card-title  { color: #143b37; word-break: keep-all; }
    #page-home .es-card-sub    { color: #2F6F63; word-break: keep-all; }
    #page-home .es-card-arr    { color: rgba(20, 59, 55, .4); }

    /* 7. 배지 한 줄 */
    #page-home .es-badges { justify-content: center; gap: 6px; }
    #page-home .es-badge  {
      height: 28px;
      display: inline-flex;
      align-items: center;
      font-weight: 600;
      color: #1f5249;
      background: rgba(15, 110, 86, .1);
      border-color: rgba(15, 110, 86, .2);
    }

    /* ═══════════════════════════════
   NEW TRIP MODAL (bottom sheet)
═══════════════════════════════ */
    .sheet-overlay {
      position: fixed;
      inset: 0;
      background: rgba(11, 17, 32, 0.55);
      z-index: 200;
      display: none;
      align-items: flex-end;
      justify-content: center;
      overflow-x: hidden;
      padding: 0;
    }

    .sheet-overlay.open {
      display: flex;
    }

    .sheet {
      background: var(--white);
      border-radius: 24px 24px 0 0;
      padding: 0 20px calc(40px + env(safe-area-inset-bottom, 0px));
      width: 100%;
      max-width: 430px;
      margin: 0 auto;
      box-sizing: border-box;
      transform: translateY(100%);
      transition: var(--trans-slide);
      overflow-x: hidden;
      max-height: 90vh;
      overflow-y: auto;
    }

    .sheet-overlay.open .sheet {
      transform: translateY(0);
    }

    .sheet-handle {
      width: 40px;
      height: 4px;
      background: var(--border);
      border-radius: 2px;
      margin: 14px auto 20px;
    }

    .sheet-title {
      font-size: 18px;
      font-weight: 700;
      margin-bottom: 20px;
    }

    .form-group {
      margin-bottom: 16px;
    }

    .form-label {
      font-size: 12px;
      font-weight: 600;
      color: var(--muted);
      margin-bottom: 6px;
      display: block;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    /* ── Input base: 공통 스타일 ── */
    .form-input,
    .cv-rate-in,
    .cl-add-input,
    .note-ta {
      background: var(--cream);
      border: 1px solid var(--border);
      font-family: inherit;
      color: var(--navy);
      outline: none;
    }

    .form-input:focus,
    .cv-rate-in:focus,
    .cl-add-input:focus,
    .note-ta:focus {
      border-color: var(--navy);
    }

    .form-input {
      width: 100%;
      border-radius: 10px;
      padding: 11px 14px;
      font-size: 16px;
      min-height: 44px;
    }


    /* iOS date placeholder */
    .date-input-wrap {
      position: relative;
    }

    .date-ph {
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 14px;
      color: #b0b8c1;
      pointer-events: none;
      display: none;
    }

    input[type="date"].date-empty::-webkit-datetime-edit,
    input[type="date"].date-empty::-webkit-datetime-edit-fields-wrapper {
      color: transparent;
    }

    input[type="date"].date-empty:focus::-webkit-datetime-edit,
    input[type="date"].date-empty:focus::-webkit-datetime-edit-fields-wrapper {
      color: var(--navy);
    }

    input[type="date"].date-empty+.date-ph {
      display: block;
    }

    input[type="date"].date-empty:focus+.date-ph {
      display: none;
    }

    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .emoji-grid {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 8px;
      width: 100%;
      min-width: 0;
    }

    .emoji-btn {
      aspect-ratio: 1;
      border-radius: 10px;
      background: var(--cream);
      border: 1.5px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      cursor: pointer;
      font-family: inherit;
      transition: border-color 0.15s, background 0.15s;
      min-height: 44px;
    }

    .emoji-btn.sel {
      background: var(--navy);
      border-color: var(--navy);
      font-size: 22px;
    }

    #nt-emoji-grid .emoji-btn.sel {
      background: #31C690;
      border-color: #31C690;
    }

    .sheet-submit {
      width: 100%;
      padding: 14px;
      background: linear-gradient(90deg, #31C690, #67D9AC);
      color: #143b37;
      border: none;
      border-radius: 12px;
      font-size: 15px;
      font-weight: 700;
      font-family: inherit;
      cursor: pointer;
      margin-top: 8px;
      min-height: 52px;
    }

    .sheet-submit:active {
      opacity: 0.85;
    }

    /* ═══════════════════════════════
   QR SAVE PAGE
═══════════════════════════════ */
    .qrs-header {
      background: transparent;
      padding: env(safe-area-inset-top, 0px) 20px 14px;
      padding-top: calc(env(safe-area-inset-top, 0px) + 14px);
      flex-shrink: 0;
    }

    .qrs-header .back-btn {
      background: rgba(255, 255, 255, 0.85);
      border: 0.5px solid rgba(20, 60, 50, 0.12);
      border-radius: 9px;
      padding: 7px 11px;
      color: var(--mint-text);
    }

    .qrs-title {
      font-size: 18px;
      font-weight: 700;
      color: var(--mint-text);
      margin-top: 2px;
    }

    .qrs-body {
      flex: 1;
      overflow-y: auto;
      background: transparent;
      padding: 24px 20px 32px;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    /* QR 미리보기 박스 */
    .qrs-preview-box {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 14px;
      border: 2px dashed var(--mint-a);
      border-radius: 16px;
      padding: 28px 20px 24px;
      background: rgba(255, 255, 255, 0.55);
    }

    .qrs-preview-icon {
      opacity: 0.85;
    }

    .qrs-preview-text {
      font-size: 14px;
      color: #5f7d77;
      text-align: center;
      line-height: 1.55;
    }

    /* 버튼 영역 */
    .qrs-btns {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    /* 아웃라인 업로드 버튼 */
    .qrs-upload-btn {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      background: rgba(15, 110, 86, 0.06);
      border: 1.5px solid rgba(15, 110, 86, 0.3);
      border-radius: 12px;
      padding: 14px 16px;
      cursor: pointer;
      font-family: inherit;
      font-size: 14px;
      font-weight: 600;
      color: var(--brand);
      min-height: 52px;
      transition: var(--trans-fade);
    }

    .qrs-upload-btn:active {
      opacity: 0.75;
    }

    .qrs-upload-ico {
      font-size: 18px;
    }

    #page-qr-save .es-cta-btn {
      border-radius: 12px;
      margin-top: 0;
      background: linear-gradient(90deg, #31C690, #67D9AC);
      color: #143b37;
    }
    #page-qr-save .es-cta-label { color: #143b37; }
    #page-qr-save .es-cta-sub   { color: #2F6F63; }
    #page-qr-save .es-cta-plus  { color: #143b37; background: rgba(20, 59, 55, 0.12); }

    /* 3단계 안내 카드 */
    .qrs-guide {
      background: rgba(255, 255, 255, 0.8);
      border: 0.5px solid rgba(20, 60, 50, 0.08);
      border-radius: 14px;
      padding: 18px 18px 16px;
    }

    .qrs-guide-title {
      font-size: 13px;
      font-weight: 700;
      color: var(--mint-text);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 14px;
    }

    .qrs-steps {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .qrs-step {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .qrs-step-num {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: rgba(15, 110, 86, 0.1);
      color: var(--brand);
      font-size: 12px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .qrs-step-txt {
      font-size: 14px;
      color: var(--mint-text);
      line-height: 1.4;
    }

    /* 하단 안심 문구 */
    .qrs-privacy {
      text-align: center;
      font-size: 12px;
      color: #5f7d77;
      padding: 4px 0 8px;
    }

    /* QR 화면 재배치 (작업 B) */
    .qrs-preview-box { cursor: pointer; }
    .qrs-s1-links { display: flex; gap: 7px; margin-top: 8px; }
    .qrs-link-fill, .qrs-link-outline {
      flex: 1; display: inline-flex; align-items: center; justify-content: center;
      gap: 4px; font-size: 12px; font-weight: 500; text-decoration: none;
      padding: 8px 6px; border-radius: 8px;
    }
    .qrs-link-fill { background: var(--mint-a); color: #fff; }
    .qrs-link-outline { background: rgba(255,255,255,0.6); border: 0.5px solid rgba(15,110,86,0.45); color: var(--brand); }
    .qrs-newtrip-link {
      display: block; margin: 14px auto 0; background: none; border: none;
      font-size: 12.5px; color: #6b8580; text-decoration: underline; cursor: pointer;
    }

    /* ═══════════════════════════════
   WALLET PAGE
═══════════════════════════════ */
    .wallet-header {
      background: transparent;
      padding: env(safe-area-inset-top, 0px) 20px 14px;
      padding-top: calc(env(safe-area-inset-top, 0px) + 14px);
      flex-shrink: 0;
    }

    .back-btn {
      display: flex;
      align-items: center;
      gap: 6px;
      background: none;
      border: none;
      color: rgba(18,48,43,0.5);
      font-size: 12px;
      font-family: inherit;
      cursor: pointer;
      padding: 4px 0;
      margin-bottom: 8px;
      min-height: 44px;
      align-self: flex-start;
    }

    .back-btn:hover {
      color: var(--brand);
    }

    .wallet-title {
      font-size: 18px;
      font-weight: 700;
      color: var(--ink);
      margin-bottom: 10px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      border-bottom: 2px dashed transparent;
      transition: border-color 0.15s;
    }

    .wallet-title:hover {
      border-bottom-color: rgba(18,48,43,0.25);
    }

    .wallet-title::after {
      content: '✏️';
      font-size: 13px;
      opacity: 0;
      transition: opacity 0.15s;
    }

    .wallet-title:hover::after {
      opacity: 0.7;
    }

    .wallet-title-input {
      font-size: 18px;
      font-weight: 700;
      color: var(--ink);
      background: rgba(18,48,43,0.06);
      border: none;
      border-bottom: 2px solid rgba(18,48,43,0.3);
      border-radius: 4px 4px 0 0;
      padding: 2px 6px;
      outline: none;
      font-family: inherit;
      width: 100%;
      max-width: 280px;
      margin-bottom: 10px;
      caret-color: var(--ink);
    }

    .wallet-title-input::selection {
      background: rgba(18,48,43,0.12);
    }

    .trip-bar {
      background: var(--card-soft);
      border-radius: 10px;
      display: flex;
      overflow: hidden;
    }

    .trip-bar-item {
      flex: 1;
      padding: 8px 10px;
    }

    .trip-bar-item+.trip-bar-item {
      border-left: 1px solid var(--line);
    }

    .tbl {
      font-size: 9px;
      color: var(--ink-3);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 2px;
    }

    .tbv {
      font-size: 12px;
      font-weight: 600;
      color: var(--ink);
    }

    .tbv input {
      background: none;
      border: none;
      color: var(--ink);
      font-size: 12px;
      font-weight: 600;
      font-family: inherit;
      width: 100%;
      cursor: pointer;
      outline: none;
    }

    .tbv input::placeholder {
      color: var(--ink-3);
    }

    .wallet-body {
      flex: 1;
      overflow-y: auto;
      padding: 14px 20px calc(var(--bnav-h) + 16px + env(safe-area-inset-bottom, 0px));
      -webkit-overflow-scrolling: touch;
      overscroll-behavior: contain;
    }

    /* ── panels ── */
    .wpanel {
      display: none;
    }

    .wpanel.on {
      display: block;
    }

    /* section header */
    .sec-hdr {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
    }

    .sec-title {
      font-size: 11px;
      font-weight: 700;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.7px;
    }

    .add-btn {
      display: flex;
      align-items: center;
      gap: 4px;
      background: linear-gradient(90deg, #31C690, #67D9AC);
      color: #143b37;
      border: none;
      border-radius: 20px;
      padding: 8px 14px;
      font-size: 11px;
      font-weight: 500;
      cursor: pointer;
      font-family: inherit;
      min-height: 36px;
    }

    .sos-taxi-btn {
      background: var(--success-mid);
      color: var(--white);
      width: 100%;
      justify-content: center;
      border: none;
    }

    .sos-card-hint {
      font-size: 10px;
      color: var(--muted);
      margin-bottom: 8px;
    }

    /* doc cards */
    .doc-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--r-card);
      margin-bottom: 10px;
      overflow: hidden;
      box-shadow: var(--shadow);
      transition: transform 0.12s;
      -webkit-tap-highlight-color: transparent;
      /* user-select/touch-callout은 헤더에만 — 자식 input long-press 메뉴 보호 */
    }

    /* 들여쓰기가 적용된 버전 */
    input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="date"]),
    textarea,
    [contenteditable="true"],
    .sheet input,
    .sheet textarea,
    .add-sheet input {
      -webkit-user-select: text !important;
      user-select: text !important;
      -webkit-touch-callout: default !important;
      touch-action: manipulation !important;
      cursor: text;
    }

    .doc-card:active {
      transform: scale(0.99);
    }

    .doc-card.dragging {
      position: fixed;
      z-index: 9999;
      margin: 0;
      outline: none;
      box-shadow: 0 14px 44px rgba(0, 0, 0, 0.22);
      transform: scale(1.03);
      opacity: 0.95;
      pointer-events: none;
      touch-action: none;
      transition: box-shadow 0.15s, transform 0.15s, opacity 0.15s;
      user-select: none;
      -webkit-user-select: none;
      -webkit-touch-callout: none;
    }

    .reorder-placeholder {
      border: 2px dashed rgba(0, 0, 0, 0.13);
      border-radius: 16px;
      background: rgba(0, 0, 0, 0.025);
      box-sizing: border-box;
      pointer-events: none;
      margin-bottom: 10px;
    }

    .doc-card-hdr {
      padding: 14px 15px;
      display: flex;
      align-items: center;
      gap: 11px;
      cursor: pointer;
      min-height: 64px;
      /* Android FIX: pan-y → none.
         pan-y가 있으면 Android Chrome이 포인터 이벤트보다 먼저 세로 스크롤 제스처를
         선점해 pointercancel을 발생시킨다. none으로 바꾸면 브라우저가 스크롤을
         가져가지 않아 400ms long-press 타이머가 안정적으로 완료된다.
         헤더 안 버튼은 하위 규칙 touch-action:manipulation이 유지된다. */
      touch-action: none;
      -webkit-tap-highlight-color: transparent;
      user-select: none;
      -webkit-user-select: none;
      -webkit-touch-callout: none;
    }

    /* 헤더 내 버튼(▼·✕)은 탭 응답성 유지 */
    .doc-card-hdr button {
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
    }

    /* 헤더 안에 우연히 들어간 입력 필드는 touch-action: none 예외 */
    .doc-card-hdr input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="date"]),
    .doc-card-hdr textarea {
      touch-action: manipulation !important;
    }

    .doc-ico {
      width: 44px;
      height: 44px;
      border-radius: var(--r-icon);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      flex-shrink: 0;
    }

    .ico-red {
      background: #fdeaf3;
    }

    .ico-blue {
      background: #e4f0ff;
    }

    .ico-gold {
      background: #fdeede;
    }

    .ico-green {
      background: #eafaf2;
      color: var(--brand);
    }

    .ico-purple {
      background: #efeafe;
    }

    /* VJapan QR — primary card emphasis */
    #dc-vjqr {
      border: 1.5px solid var(--brand) !important;
      box-shadow: 0 8px 24px -10px rgba(15,110,86,.32), 0 0 0 3px rgba(15,110,86,.08) !important;
    }

    .vjqr-top-label {
      display: flex;
      align-items: center;
      gap: 7px;
      margin-bottom: 3px;
    }

    .vjqr-primary-badge {
      background: var(--brand);
      color: var(--white);
      font-size: 9px;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 4px;
      text-transform: uppercase;
      letter-spacing: 0.4px;
    }

    .doc-meta-wrap {
      flex: 1;
      min-width: 0;
    }

    .doc-name {
      font-size: 14px;
      font-weight: 600;
      color: var(--ink);
      margin-bottom: 2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .doc-sub {
      font-size: 11px;
      color: var(--ink-3);
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .d-badge {
      display: inline-block;
      padding: 2px 7px;
      border-radius: 5px;
      font-size: 9px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.3px;
    }

    .db-ready {
      background: var(--success-soft);
      color: var(--success);
    }

    .db-pend {
      background: var(--coral-bg);
      color: var(--coral-text);
    }

    .doc-chevron {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: var(--cream);
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      color: var(--muted);
      cursor: pointer;
      transition: transform 0.2s;
      flex-shrink: 0;
    }

    .doc-chevron.open {
      transform: rotate(180deg);
    }

    .doc-body {
      display: none;
      padding: 0 15px 15px;
      border-top: 1px solid var(--border);
    }

    .doc-body.open {
      display: block;
    }

    /* QR area */
    .qr-zone {
      background: var(--navy);
      border-radius: 12px;
      padding: 16px;
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-top: 12px;
    }

    .qr-box {
      width: 100%;
      max-width: 140px;
      height: 120px;
      border-radius: 8px;
      background: var(--white);
      border: 2px dashed var(--border);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: var(--muted);
      font-size: 11px;
      gap: 7px;
      cursor: pointer;
      transition: border-color 0.15s;
    }

    .qr-box:active {
      border-color: var(--navy);
    }

    .qr-box .qi {
      font-size: 26px;
    }

    .qr-img-wrap {
      width: 100%;
      max-width: 140px;
      height: 120px;
      position: relative;
      overflow: visible;
      display: none;
      cursor: pointer;
    }

    .qr-img-wrap img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      background: var(--white);
      border-radius: 8px;
      display: block;
    }

    /* ⋯ 더보기 버튼 */
    .qr-more-btn {
      position: absolute;
      top: -8px;
      right: -8px;
      width: 44px;
      height: 44px;
      border: none;
      background: transparent;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
      z-index: 10;
      padding: 0;
    }

    .qr-more-btn::after {
      content: '⋯';
      width: 26px;
      height: 26px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(18, 22, 48, 0.80);
      border: 1.5px solid rgba(255, 255, 255, 0.28);
      border-radius: 50%;
      color: var(--white);
      font-size: 13px;
      letter-spacing: 1px;
      line-height: 1;
      backdrop-filter: blur(4px);
    }

    .qr-more-btn:active::after {
      background: rgba(18, 22, 48, 0.95);
    }

    /* QR 옵션 바텀시트 */
    .qr-menu-overlay {
      position: fixed;
      inset: 0;
      background: rgba(11, 17, 32, 0.55);
      z-index: 300;
      display: none;
      align-items: flex-end;
      justify-content: center;
    }

    .qr-menu-overlay.open {
      display: flex;
    }

    .qr-menu-sheet {
      background: var(--white);
      border-radius: 24px 24px 0 0;
      padding: 0 16px calc(32px + env(safe-area-inset-bottom, 0px));
      width: 100%;
      max-width: 430px;
      transform: translateY(100%);
      transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    }

    .qr-menu-overlay.open .qr-menu-sheet {
      transform: translateY(0);
    }

    .qr-menu-handle {
      width: 40px;
      height: 4px;
      background: var(--border);
      border-radius: 2px;
      margin: 12px auto 4px;
    }

    .qr-menu-title {
      font-size: 13px;
      font-weight: 700;
      color: var(--text-muted);
      text-align: center;
      padding: 8px 0 14px;
      letter-spacing: 0.2px;
    }

    .qr-menu-item {
      display: flex;
      align-items: center;
      gap: 12px;
      width: 100%;
      padding: 15px 16px;
      background: none;
      border: none;
      border-radius: 14px;
      font-size: 16px;
      font-weight: 500;
      color: var(--navy);
      cursor: pointer;
      font-family: inherit;
      text-align: left;
      -webkit-tap-highlight-color: transparent;
      transition: background 0.12s;
    }

    .qr-menu-item.qr-menu-danger {
      color: var(--danger-dark);
    }

    .qr-menu-icon {
      font-size: 20px;
      width: 28px;
      text-align: center;
    }

    .qr-menu-sep {
      height: 1px;
      background: var(--border);
      margin: 6px 0;
    }

    .qr-menu-cancel {
      display: block;
      width: 100%;
      padding: 15px;
      background: none;
      border: none;
      border-radius: 14px;
      font-size: 16px;
      font-weight: 600;
      color: var(--text-muted);
      cursor: pointer;
      font-family: inherit;
      text-align: center;
      -webkit-tap-highlight-color: transparent;
      transition: background 0.12s;
    }

    .view-large-btn {
      display: none;
      width: 100%;
      max-width: 140px;
      padding: 7px 8px;
      background: rgba(255, 255, 255, 0.13);
      border: 1px solid rgba(255, 255, 255, 0.25);
      border-radius: 8px;
      color: var(--white);
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
      font-family: inherit;
      text-align: center;
      margin-top: 4px;
      min-height: 36px;
      transition: background 0.15s;
    }

    .view-large-btn.visible {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
    }

    .view-large-btn:active {
      background: rgba(255, 255, 255, 0.22);
    }

    .qr-hint {
      font-size: 10px;
      color: rgba(255, 255, 255, 0.4);
      margin-top: 10px;
      text-align: center;
      line-height: 1.5;
    }

    .storage-warning {
      background: rgba(200, 151, 43, 0.18);
      border: 1px solid rgba(200, 151, 43, 0.32);
      border-radius: 8px;
      padding: 8px 10px;
      font-size: 10px;
      color: rgba(255, 255, 255, 0.55);
      margin-top: 10px;
      line-height: 1.6;
      text-align: left;
      display: flex;
      gap: 7px;
      align-items: flex-start;
      width: 100%;
    }

    .storage-warning strong {
      color: rgba(255, 255, 255, 0.85);
    }

    /* image upload */
    .img-upload {
      border: 2px dashed var(--border);
      border-radius: 12px;
      padding: 18px;
      text-align: center;
      cursor: pointer;
      margin-top: 12px;
      background: var(--cream);
      min-height: 80px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }

    .img-upload .ui {
      font-size: 26px;
    }

    .img-upload p {
      font-size: 12px;
      color: var(--muted);
    }

    .img-upload small {
      font-size: 10px;
      color: var(--muted-light);
    }

    .imgs-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-top: 10px;
    }

    .img-thumb {
      border-radius: 10px;
      overflow: hidden;
      aspect-ratio: 4/3;
      position: relative;
      background: var(--border);
      cursor: pointer;
    }

    .img-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .del-img {
      position: absolute;
      top: 6px;
      right: 6px;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: rgba(0, 0, 0, 0.6);
      color: var(--white);
      border: none;
      cursor: pointer;
      font-size: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .pdf-thumb {
      border-radius: 10px;
      overflow: hidden;
      aspect-ratio: 4/3;
      position: relative;
      background: var(--cream);
      border: 1px solid var(--border);
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 8px;
    }

    .pdf-thumb:active {
      opacity: 0.75;
    }

    .pdf-thumb-ico {
      font-size: 28px;
      line-height: 1;
    }

    .pdf-thumb-name {
      font-size: 11px;
      color: var(--text-sub);
      text-align: center;
      overflow: hidden;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      word-break: break-all;
      line-height: 1.3;
    }

    /* note */
    .note-wrap {
      margin-top: 12px;
    }

    .note-lbl {
      font-size: 11px;
      font-weight: 600;
      color: var(--muted);
      margin-bottom: 5px;
    }

    .note-ta {
      width: 100%;
      border-radius: 10px;
      padding: 9px 12px;
      font-size: 12px;
      resize: none;
      line-height: 1.5;
    }


    /* ── checklist progress ── */
    .cl-prog-header {
      background: var(--navy);
      border-radius: 16px;
      padding: 18px 18px 16px;
      margin-bottom: 14px;
    }

    .cl-prog-label {
      font-size: 11px;
      font-weight: 600;
      color: rgba(255, 255, 255, 0.45);
      text-transform: uppercase;
      letter-spacing: 0.6px;
      margin-bottom: 6px;
    }

    .cl-prog-pct-row {
      display: flex;
      align-items: baseline;
      gap: 6px;
      margin-bottom: 12px;
    }

    .cl-prog-num {
      font-size: 36px;
      font-weight: 700;
      color: var(--white);
      line-height: 1;
    }

    .cl-prog-unit {
      font-size: 14px;
      font-weight: 500;
      color: rgba(255, 255, 255, 0.55);
    }

    .cl-prog-bar-wrap {
      height: 7px;
      background: rgba(255, 255, 255, 0.15);
      border-radius: 4px;
      overflow: hidden;
      margin-bottom: 10px;
    }

    .cl-prog-fill {
      height: 100%;
      background: var(--success-mid);
      border-radius: 4px;
      transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .cl-summary {
      font-size: 11px;
      color: rgba(255, 255, 255, 0.45);
      line-height: 1.55;
    }

    .cl-summary strong {
      color: rgba(255, 255, 255, 0.82);
    }

    /* checklist */
    .cl-wrap {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 4px 16px;
      margin-bottom: 10px;
      box-shadow: var(--shadow-card);
    }

    .cl-group-lbl {
      font-size: 10px;
      font-weight: 700;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.6px;
      padding: 11px 0 4px;
    }

    .cl-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 11px 0;
      border-bottom: 1px solid var(--border);
      cursor: pointer;
      min-height: 44px;
    }

    .cl-item:last-child {
      border-bottom: none;
    }

    .cl-box {
      width: 22px;
      height: 22px;
      border-radius: 6px;
      border: 2px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: background 0.15s, border-color 0.15s, color 0.15s;
      font-size: 11px;
    }

    .cl-box.chk {
      background: var(--navy);
      border-color: var(--navy);
      color: var(--white);
    }

    .cl-txt {
      font-size: 13px;
      flex: 1;
      line-height: 1.4;
    }

    .cl-item.done .cl-txt {
      color: var(--muted);
      text-decoration: line-through;
    }

    .cl-item.edit-mode {
      cursor: default;
    }

    /* checklist edit controls */
    .cl-edit-btn {
      display: flex;
      align-items: center;
      gap: 4px;
      background: none;
      border: 1.5px solid var(--border2);
      border-radius: 20px;
      padding: 5px 12px;
      font-size: 11px;
      font-weight: 600;
      color: var(--muted);
      cursor: pointer;
      font-family: inherit;
      min-height: 34px;
      transition: background 0.15s, border-color 0.15s, color 0.15s;
    }

    .cl-edit-btn.editing {
      background: var(--success-soft);
      border-color: var(--success);
      color: var(--success);
    }

    .cl-del-btn {
      width: 26px;
      height: 26px;
      border-radius: 50%;
      border: none;
      background: var(--red-soft);
      color: var(--red);
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      font-family: inherit;
      transition: background 0.12s;
    }

    .cl-del-btn:active {
      background: var(--red-mid);
    }

    .cl-add-row {
      display: flex;
      gap: 8px;
      align-items: center;
      padding: 10px 0 8px;
      border-top: 1px solid var(--border);
      margin-top: 2px;
    }

    .cl-add-input {
      flex: 1;
      border-radius: 8px;
      padding: 8px 10px;
      font-size: 12px;
      min-height: 36px;
    }


    .cl-add-input::placeholder {
      color: var(--muted-light);
    }

    .cl-add-btn {
      padding: 8px 14px;
      background: var(--navy);
      color: var(--white);
      border: none;
      border-radius: 8px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      font-family: inherit;
      white-space: nowrap;
      min-height: 36px;
      transition: var(--trans-fade);
    }

    .cl-add-btn:active {
      opacity: 0.82;
    }

    /* converter */
    .converter {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 16px;
      margin-bottom: 10px;
      box-shadow: var(--shadow-card);
    }

    .cv-title {
      font-size: 11px;
      font-weight: 700;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.7px;
      margin-bottom: 12px;
    }

    .cv-row {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 8px;
    }

    .cv-flag {
      font-size: 16px;
      font-weight: 600;
      color: var(--mint-b);
      flex-shrink: 0;
    }

    .cv-input {
      flex: 1;
      background: var(--cream);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 11px 11px;
      font-size: 18px;
      font-weight: 700;
      font-family: inherit;
      color: var(--navy);
      outline: none;
      text-align: right;
      width: 100%;
      min-height: 48px;
    }

    .cv-input:focus {
      border-color: var(--navy);
    }

    .cv-unit {
      font-size: 13px;
      font-weight: 600;
      color: var(--muted);
      flex-shrink: 0;
      min-width: 24px;
    }

    .cv-divider {
      text-align: center;
      font-size: 18px;
      color: var(--muted);
      margin: -2px 0;
    }

    .cv-rate-row {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-top: 8px;
      padding-top: 10px;
      border-top: 1px solid var(--border);
    }

    .cv-rate-row label {
      font-size: 12px;
      color: var(--muted);
      white-space: nowrap;
    }

    .cv-rate-in {
      flex: 1;
      border-radius: 8px;
      padding: 8px 10px;
      font-size: 13px;
      min-height: 44px;
    }


    .cv-rate-hint {
      font-size: 10px;
      color: var(--muted);
      text-align: center;
      margin-top: 6px;
    }

    /* emergency */
    .emg-card {
      background: var(--red-soft);
      border: 1px solid var(--red-mid);
      border-radius: 16px;
      padding: 15px;
      margin-bottom: 10px;
    }

    .emg-title {
      font-size: 13px;
      font-weight: 700;
      color: var(--red);
      margin-bottom: 11px;
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .emg-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 9px 0;
      border-bottom: 1px solid var(--red-mid);
      font-size: 12px;
      min-height: 44px;
    }

    .emg-row:last-child {
      border-bottom: none;
    }

    .emg-key {
      color: var(--muted);
    }

    .emg-val {
      font-weight: 700;
      color: var(--navy);
    }

    .emg-val a {
      color: var(--red);
      text-decoration: none;
      font-size: 15px;
    }

    /* ─── 여행 가계부 ─── */
    .budget-card {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 16px;
      margin-bottom: 10px;
      box-shadow: var(--shadow-card);
    }
    .budget-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 14px;
    }
    .budget-title {
      font-size: 13px;
      font-weight: 700;
      color: var(--navy);
    }
    .budget-currency-toggle {
      display: flex;
      border: 1px solid var(--border);
      border-radius: 8px;
      overflow: hidden;
    }
    .bcur-btn {
      padding: 5px 12px;
      font-size: 11px;
      font-weight: 600;
      background: transparent;
      border: none;
      cursor: pointer;
      color: var(--muted);
      font-family: inherit;
      min-height: 32px;
    }
    .bcur-btn.active {
      background: var(--cream);
      color: var(--navy);
    }
    .budget-summary {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 6px;
      margin-bottom: 12px;
    }
    .b-metric {
      background: var(--cream);
      border-radius: 8px;
      padding: 8px 6px;
      text-align: center;
    }
    .b-metric-lbl {
      font-size: 10px;
      color: var(--muted);
      margin-bottom: 3px;
    }
    .b-metric-val {
      font-size: 14px;
      font-weight: 700;
      color: var(--navy);
    }
    .b-metric-val.spent { color: var(--budget-spent); }
    .b-metric-val.remain { color: var(--budget-ok); }
    .b-metric-val.remain.warn { color: #BA7517; }
    .b-metric-val.remain.over { color: var(--danger-mid); }
    .budget-bar-section { margin-bottom: 14px; }
    .budget-bar-header {
      display: flex;
      justify-content: space-between;
      font-size: 11px;
      color: var(--muted);
      margin-bottom: 5px;
    }
    .budget-bar-bg {
      height: 6px;
      background: var(--cream);
      border-radius: 99px;
      overflow: hidden;
    }
    .budget-bar-fill {
      height: 100%;
      border-radius: 99px;
      transition: width 0.4s, background 0.3s;
    }
    .budget-bar-fill.bar-ok   { background: var(--budget-ok); }
    .budget-bar-fill.bar-warn { background: var(--budget-warn); }
    .budget-bar-fill.bar-over { background: var(--danger-mid); }
    .budget-sec-label {
      font-size: 11px;
      font-weight: 600;
      color: var(--muted);
      margin-bottom: 8px;
      text-transform: uppercase;
      letter-spacing: 0.3px;
    }
    .budget-row {
      display: flex;
      gap: 6px;
      margin-bottom: 8px;
    }
    .budget-input {
      flex: 1;
      background: var(--cream);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 9px 10px;
      font-size: 13px;
      font-family: inherit;
      color: var(--navy);
      outline: none;
      min-height: 40px;
      min-width: 0;
    }
    .budget-input:focus { border-color: var(--navy); }
    .budget-add-btn {
      padding: 0 14px;
      background: var(--navy);
      color: var(--white);
      border: none;
      border-radius: 8px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      font-family: inherit;
      white-space: nowrap;
      min-height: 40px;
    }
    .budget-add-btn:active { opacity: 0.82; }
    .budget-add-full {
      width: 100%;
      margin-top: 4px;
      margin-bottom: 4px;
    }
    .budget-divider {
      border-top: 1px solid var(--border);
      margin: 14px 0;
    }
    .budget-txn {
      display: flex;
      align-items: center;
      gap: 8px;
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 9px 11px;
      margin-bottom: 6px;
    }
    .budget-txn-dot {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      flex-shrink: 0;
    }
    .budget-txn-info { flex: 1; min-width: 0; }
    .budget-txn-date-row {
      display: flex;
      gap: 4px;
      margin-bottom: 2px;
      flex-wrap: wrap;
    }
    .budget-txn-badge {
      display: inline-block;
      background: var(--cream);
      border-radius: 4px;
      padding: 1px 6px;
      font-size: 10px;
      color: var(--muted);
    }
    .budget-txn-name {
      font-size: 12px;
      font-weight: 600;
      color: var(--navy);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .budget-txn-cat {
      font-size: 10px;
      color: var(--muted);
      margin-top: 1px;
    }
    .budget-txn-amt {
      font-size: 13px;
      font-weight: 700;
      color: var(--budget-spent);
      white-space: nowrap;
    }
    .budget-txn-del {
      background: none;
      border: none;
      color: var(--muted);
      cursor: pointer;
      font-size: 14px;
      opacity: 0.45;
      padding: 0 4px;
      min-height: 32px;
    }
    .budget-txn-del:active { opacity: 1; color: var(--danger-mid); }
    .budget-empty {
      text-align: center;
      padding: 20px 12px;
      color: var(--muted);
      font-size: 12px;
    }

    /* 날짜 빠른 선택 칩 */
    .budget-date-chips {
      display: flex;
      gap: 4px;
      flex-shrink: 0;
    }
    .budget-chip {
      padding: 0 10px;
      min-height: 38px;
      background: var(--cream);
      border: 1px solid var(--border);
      border-radius: 8px;
      font-size: 11px;
      font-weight: 600;
      color: var(--navy);
      cursor: pointer;
      white-space: nowrap;
    }
    .budget-chip:active { opacity: 0.7; }

    /* free memo */
    .memo-box {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 15px;
      margin-bottom: 10px;
      box-shadow: var(--shadow-card);
    }

    .memo-title {
      font-size: 11px;
      font-weight: 700;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.7px;
      margin-bottom: 10px;
    }

    /* delete btn */
    .del-btn {
      width: 100%;
      padding: 11px;
      border-radius: 10px;
      border: 1px solid var(--border2);
      background: none;
      color: var(--muted);
      font-size: 12px;
      font-weight: 500;
      cursor: pointer;
      font-family: inherit;
      margin-top: 20px;
      transition: color 0.15s, border-color 0.15s, background 0.15s;
      min-height: 44px;
    }

    .del-btn:active {
      color: var(--red);
      border-color: var(--red-mid);
      background: var(--red-soft);
    }

    /* tips */
    .tips-card {
      background: var(--navy);
      border-radius: 16px;
      padding: 16px;
      margin-bottom: 10px;
      color: var(--white);
    }

    .tips-title {
      font-size: 12px;
      font-weight: 700;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .tip-item {
      display: flex;
      gap: 8px;
      padding: 8px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      font-size: 12px;
      line-height: 1.5;
    }

    .tip-item:last-child {
      border-bottom: none;
    }

    .tip-em {
      flex-shrink: 0;
      font-size: 14px;
    }

    .tip-tx {
      color: rgba(255, 255, 255, 0.75);
    }

    .tip-tx strong {
      color: var(--white);
    }

    /* phrases */
    .phrase-card {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 16px;
      overflow: hidden;
      margin-bottom: 8px;
      box-shadow: var(--shadow-card);
    }

    .phrase-hdr {
      padding: 13px 15px;
      display: flex;
      align-items: center;
      gap: 9px;
      cursor: pointer;
      font-size: 13px;
      font-weight: 600;
      min-height: 48px;
    }

    .phrase-hdr .ph-icon {
      font-size: 17px;
    }

    .phrase-hdr .ph-chev {
      margin-left: auto;
      color: var(--muted);
    }

    .phrase-list {
      display: none;
      padding: 0 12px 10px;
    }

    .phrase-list.open {
      display: block;
    }

    .phrase-item {
      padding: 11px 8px;
      border-bottom: 1px solid var(--border);
      cursor: pointer;
      border-radius: 8px;
      transition: background 0.1s;
      min-height: 44px;
    }

    .phrase-item:last-child {
      border-bottom: none;
    }

    .phrase-item:active {
      background: var(--cream);
    }

    .p-kr {
      font-size: 13px;
      font-weight: 500;
      margin-bottom: 2px;
    }

    .p-jp {
      font-size: 15px;
      font-weight: 600;
      margin: 2px 0;
    }

    .p-ph {
      font-size: 10px;
      color: var(--muted-light);
      margin-top: 1px;
    }

    /* fullscreen viewer */
    .viewer {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(11, 17, 32, 0.96);
      z-index: 500;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }

    .viewer.open {
      display: flex;
    }

    .viewer img {
      max-width: 95vw;
      max-height: 82vh;
      object-fit: contain;
      border-radius: 8px;
    }

    .viewer-close {
      position: absolute;
      top: calc(20px + env(safe-area-inset-top, 0px));
      right: 20px;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.15);
      border: none;
      color: var(--white);
      font-size: 20px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .viewer-lbl {
      color: rgba(255, 255, 255, 0.5);
      font-size: 12px;
      margin-top: 10px;
    }

    /* ─── Viewer bright-mode (QR 인식 최적화) ─── */
    .viewer.bright-mode {
      background: var(--white);
    }

    .viewer.bright-mode .viewer-close {
      background: rgba(0, 0, 0, 0.08);
      color: var(--navy);
    }

    .viewer.bright-mode .viewer-lbl {
      color: rgba(0, 0, 0, 0.45);
    }

    .viewer.bright-mode img {
      background: var(--white);
    }

    /* add-doc modal */
    .add-overlay {
      position: fixed;
      inset: 0;
      background: rgba(11, 17, 32, 0.55);
      z-index: 300;
      display: none;
      align-items: flex-end;
      justify-content: center;
      overflow-x: hidden;
      padding: 0;
    }

    .add-overlay.open {
      display: flex;
    }

    .add-sheet {
      background: var(--white);
      border-radius: 24px 24px 0 0;
      padding: 0 20px calc(40px + env(safe-area-inset-bottom, 0px));
      width: 100%;
      max-width: 430px;
      margin: 0 auto;
      box-sizing: border-box;
      transform: translateY(100%);
      transition: var(--trans-slide);
      overflow-x: hidden;
      max-height: 90vh;
      overflow-y: auto;
    }

    .add-overlay.open .add-sheet {
      transform: translateY(0);
    }

    .add-handle {
      width: 40px;
      height: 4px;
      background: var(--border);
      border-radius: 2px;
      margin: 14px auto 18px;
    }

    .add-title {
      font-size: 17px;
      font-weight: 700;
      margin-bottom: 14px;
    }

    .type-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .type-btn {
      background: var(--cream);
      border: 1.5px solid var(--border);
      border-radius: 14px;
      padding: 16px 10px;
      cursor: pointer;
      text-align: center;
      font-family: inherit;
      transition: background 0.15s, border-color 0.15s;
      min-height: 88px;
    }

    .type-btn:active {
      border-color: var(--navy);
      background: var(--white);
    }

    .type-btn .te {
      font-size: 22px;
      margin-bottom: 5px;
    }

    .type-btn .tn {
      font-size: 12px;
      font-weight: 600;
      color: var(--navy);
    }

    .type-btn .td {
      font-size: 10px;
      color: var(--muted);
      margin-top: 1px;
    }

    /* ─── Add Modal — 탭 ─── */
    .add-tabs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-bottom: 14px;
    }

    .add-tab {
      background: var(--cream);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 9px 6px;
      font-size: 12px;
      font-weight: 600;
      color: var(--muted);
      cursor: pointer;
      font-family: inherit;
      transition: background 0.15s, color 0.15s, border-color 0.15s;
      line-height: 1.3;
    }

    .add-tab.active {
      background: linear-gradient(90deg, #31C690, #67D9AC);
      color: #143b37;
      border-color: #31C690;
    }

    /* ─── 탭A: 기본 서류 복원 ─── */
    .restore-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding-bottom: 4px;
    }

    .restore-item {
      background: var(--white);
      border: 1.5px solid var(--border);
      border-radius: 14px;
      padding: 12px 14px;
      display: flex;
      align-items: center;
      gap: 12px;
      cursor: pointer;
      transition: border-color 0.15s;
    }

    .restore-item:active {
      border-color: var(--navy);
    }

    .restore-item-ico {
      font-size: 24px;
      width: 32px;
      text-align: center;
      flex-shrink: 0;
    }

    .restore-item-info {
      flex: 1;
      min-width: 0;
    }

    .restore-item-name {
      font-size: 14px;
      font-weight: 600;
      color: var(--navy);
    }

    .restore-item-desc {
      font-size: 11px;
      color: var(--muted);
      margin-top: 2px;
    }

    .restore-item-plus {
      font-size: 20px;
      color: var(--navy);
      flex-shrink: 0;
    }

    .restore-empty {
      text-align: center;
      color: var(--muted);
      padding: 24px 8px 16px;
    }

    .restore-empty p {
      font-size: 14px;
      font-weight: 600;
      margin-bottom: 5px;
      color: var(--navy2);
    }

    .restore-empty small {
      font-size: 11px;
    }

    /* ─── 탭B: 자유 항목 폼 ─── */
    .free-form {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .free-icon-row {
      display: flex;
      gap: 10px;
      align-items: center;
    }

    .free-icon-btn {
      width: 52px;
      height: 52px;
      border-radius: 12px;
      border: 2px dashed var(--border);
      background: var(--cream);
      font-size: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      position: relative;
      flex-shrink: 0;
      font-family: inherit;
      transition: border-color 0.15s;
    }

    .free-icon-btn:active {
      border-color: var(--navy);
    }

    .free-icon-btn .edit-dot {
      position: absolute;
      bottom: -5px;
      right: -5px;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: var(--navy);
      color: var(--white);
      font-size: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 2px solid var(--white);
    }

    .free-icon-btn+.form-input {
      flex: 1;
    }

    .free-section-lbl {
      font-size: 11px;
      font-weight: 600;
      color: var(--muted);
      margin-bottom: 6px;
      text-transform: uppercase;
      letter-spacing: 0.3px;
    }

    /* ─── 이모지 그리드 팝업 ─── */
    .emoji-grid-pop {
      display: none;
      grid-template-columns: repeat(7, 1fr);
      gap: 2px;
      padding: 10px;
      background: var(--cream);
      border-radius: 12px;
      border: 1px solid var(--border);
    }

    .emoji-grid-pop.open {
      display: grid;
    }

    .ep-item {
      font-size: 20px;
      padding: 6px;
      text-align: center;
      cursor: pointer;
      border-radius: 8px;
      border: none;
      background: transparent;
      font-family: inherit;
      transition: background 0.1s;
      line-height: 1;
    }

    .ep-item:active {
      background: rgba(11, 17, 32, 0.08);
    }

    .ep-item.selected {
      background: rgba(11, 17, 32, 0.1);
    }

    /* ─── 커스텀 카드 링크 영역 ─── */
    .link-wrap {
      margin-top: 10px;
    }

    /* toast */
    .toast {
      position: fixed;
      bottom: calc(var(--bnav-h) + 12px + env(safe-area-inset-bottom, 0px));
      left: 50%;
      transform: translateX(-50%);
      background: var(--navy);
      color: var(--white);
      padding: 10px 20px;
      border-radius: 22px;
      font-size: 12px;
      font-weight: 500;
      z-index: 400;
      opacity: 0;
      transition: opacity 0.22s;
      pointer-events: none;
      white-space: nowrap;
      box-shadow: 0 4px 16px rgba(11, 17, 32, 0.3);
    }

    .toast.show {
      opacity: 1;
    }

    /* undo toast */
    .undo-toast {
      position: fixed;
      bottom: calc(var(--bnav-h) + 56px + env(safe-area-inset-bottom, 0px));
      left: 50%;
      transform: translateX(-50%) translateY(8px);
      background: var(--navy2);
      color: var(--white);
      padding: 9px 8px 9px 16px;
      border-radius: 22px;
      font-size: 12px;
      font-weight: 500;
      z-index: 401;
      opacity: 0;
      transition: opacity 0.22s, transform 0.22s;
      pointer-events: none;
      white-space: nowrap;
      box-shadow: 0 4px 16px rgba(11, 17, 32, 0.35);
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .undo-toast.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
      pointer-events: auto;
    }

    .undo-toast-btn {
      background: rgba(255, 255, 255, 0.18);
      border: 1px solid rgba(255, 255, 255, 0.28);
      color: var(--white);
      border-radius: 14px;
      padding: 5px 11px;
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
      font-family: inherit;
      white-space: nowrap;
    }

    .undo-toast-btn:active {
      background: rgba(255, 255, 255, 0.32);
    }

    /* file inputs */
    .fi {
      display: none;
    }

    /* screenshot-blocked alert */
    .ss-alert {
      background: var(--gold-soft);
      border: 1px solid #F5D485;
      border-radius: 10px;
      padding: 10px 12px;
      margin-top: 12px;
      display: flex;
      gap: 8px;
      align-items: flex-start;
    }

    .ss-alert-icon {
      font-size: 14px;
      flex-shrink: 0;
      margin-top: 1px;
    }

    .ss-alert-text {
      font-size: 11px;
      color: #7C5C00;
      line-height: 1.5;
    }

    .ss-alert-text strong {
      color: #5C3E00;
    }

    /* site link buttons */
    .site-links {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 10px;
    }

    .site-link {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: var(--navy);
      color: var(--white);
      border-radius: 20px;
      padding: 8px 14px;
      font-size: 11px;
      font-weight: 600;
      text-decoration: none;
      transition: var(--trans-fade);
      min-height: 36px;
    }

    .site-link:active {
      opacity: 0.8;
    }

    .site-link.alt {
      background: var(--white);
      color: var(--navy);
      border: 1.5px solid var(--border);
    }

    .site-link .sl-icon {
      font-size: 12px;
    }

    /* ═══════════════════════════════
   BOTTOM NAV
═══════════════════════════════ */
    .bottom-nav {
      position: fixed;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 100%;
      max-width: 430px;
      background: var(--white);
      border-top: 1px solid var(--border);
      display: none;
      grid-template-columns: repeat(5, 1fr);
      z-index: 150;
      padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .bottom-nav.visible {
      display: grid;
    }

    .bnav-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 8px 4px 9px;
      cursor: pointer;
      border: none;
      background: none;
      font-family: inherit;
      min-height: var(--bnav-h);
      gap: 3px;
      color: var(--muted);
      transition: color 0.15s;
      position: relative;
    }

    .bnav-item.on {
      color: var(--navy);
    }

    .bnav-item.on::before {
      content: '';
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 28px;
      height: 2.5px;
      background: var(--navy);
      border-radius: 0 0 3px 3px;
    }

    .bnav-icon {
      font-size: 22px;
      line-height: 1;
    }

    .bnav-lbl {
      font-size: 10px;
      font-weight: 500;
    }

    /* ─── SOS 네비 버튼 ─── */
    .bnav-sos {
      position: relative;
    }

    .bnav-sos-circle {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      background: var(--danger-mid);
      border-radius: 50%;
      font-size: 18px;
      line-height: 1;
      margin-bottom: 1px;
      color: var(--white);
    }

    .bnav-sos .bnav-lbl {
      color: var(--danger-mid);
      font-weight: 600;
    }

    .bnav-sos.on .bnav-lbl {
      color: var(--danger-mid);
    }

    .bnav-sos.on::before {
      background: var(--danger-mid);
    }

    /* ─── SOS 안내 배너 ─── */
    .sos-banner {
      background: var(--danger-bg);
      border-radius: 12px;
      padding: 12px 14px;
      margin-bottom: 14px;
      display: flex;
      align-items: flex-start;
      gap: 10px;
    }

    .bnav-sos-icon-wrap {
      width: 32px;
      height: 32px;
      flex-shrink: 0;
    }

    .sos-banner-icon {
      width: 32px;
      height: 32px;
      background: var(--danger-mid);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      flex-shrink: 0;
    }

    .sos-banner-title {
      font-size: 13px;
      font-weight: 600;
      color: #501313;
      margin-bottom: 3px;
    }

    .sos-banner-desc {
      font-size: 11px;
      color: #791F1F;
      line-height: 1.5;
    }

    /* ─── 편집 힌트 ─── */
    .sos-edit-hint {
      display: none;
      background: #E6F1FB;
      color: var(--info);
      border-radius: 8px;
      padding: 8px 10px;
      font-size: 11px;
      margin-bottom: 10px;
      align-items: center;
      gap: 6px;
    }

    #wp-sos.edit-mode .sos-edit-hint {
      display: flex;
    }

    .sos-edit-btn.editing { color: var(--danger-mid); }

    /* ─── 카드 추가 버튼 ─── */
    .sos-add-card-btn {
      display: none;
      width: 100%;
      padding: 14px;
      border: 1.5px dashed var(--border);
      border-radius: 14px;
      background: none;
      color: var(--muted);
      font-size: 12px;
      font-family: inherit;
      margin-bottom: 12px;
      cursor: pointer;
      min-height: 48px;
    }

    #wp-sos.edit-mode .sos-add-card-btn {
      display: block;
    }

    /* ─── SOS 카드 ─── */
    .sos-card {
      background: var(--white);
      border: 0.5px solid var(--border);
      border-radius: 14px;
      padding: 12px 14px;
      margin-bottom: 8px;
      box-shadow: var(--shadow-card);
    }

    #wp-sos.edit-mode .sos-card {
      border: 1.5px dashed #B5D4F4;
    }

    #wp-sos.edit-mode .sos-card-body {
      display: none;
    }

    .sos-card.dragging {
      position: fixed;
      z-index: 9999;
      margin: 0;
      opacity: 0.95;
      box-shadow: 0 14px 44px rgba(0, 0, 0, 0.22);
      pointer-events: none;
      touch-action: none;
    }

    .sos-card-head {
      display: flex;
      align-items: center;
      gap: 7px;
      margin-bottom: 10px;
    }

    #wp-sos.edit-mode .sos-card-head {
      margin-bottom: 0;
    }

    .sos-card-title {
      font-size: 13px;
      font-weight: 600;
      color: var(--navy);
      flex: 1;
    }

    .sos-drag-handle {
      display: none;
      color: #B4B2A9;
      font-size: 16px;
      cursor: grab;
      touch-action: none;
    }

    .sos-del-x {
      display: none;
      width: 24px;
      height: 24px;
      background: var(--danger-bg);
      border-radius: 50%;
      border: none;
      align-items: center;
      justify-content: center;
      color: var(--danger-mid);
      font-size: 12px;
      cursor: pointer;
      flex-shrink: 0;
    }

    #wp-sos.edit-mode .sos-drag-handle,
    #wp-sos.edit-mode .sos-del-x {
      display: flex;
    }

    /* ─── 지도 그리드 ─── */
    .map-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    .map-slot {
      border-radius: 10px;
      overflow: hidden;
      aspect-ratio: 4/3;
      cursor: pointer;
      position: relative;
    }

    .map-slot img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .map-slot-empty {
      border: 1.5px dashed var(--border);
      background: var(--cream);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      color: var(--muted);
    }

    .map-slot-empty span {
      font-size: 22px;
    }

    .map-slot-lbl {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: rgba(0, 0, 0, 0.45);
      color: var(--white);
      font-size: 10px;
      text-align: center;
      padding: 3px 4px;
    }

    .map-slot-empty .map-slot-lbl {
      position: static;
      background: none;
      color: var(--muted);
      font-size: 10px;
    }

    /* ─── SOS 경고 박스 ─── */
    .sos-alert {
      background: var(--danger-bg);
      border-left: 3px solid var(--danger-mid);
      border-radius: 0 8px 8px 0;
      padding: 10px 12px;
      margin-top: 12px;
    }

    .sos-alert-title {
      font-size: 11px;
      font-weight: 600;
      color: #791F1F;
      margin-bottom: 3px;
    }

    .sos-alert-desc {
      font-size: 11px;
      color: #501313;
      line-height: 1.5;
    }

    /* ─── 택시 풀스크린 ─── */
    .taxi-fullscreen {
      display: none;
      position: fixed;
      inset: 0;
      background: var(--navy);
      z-index: 9999;
      flex-direction: column;
      padding: env(safe-area-inset-top, 16px) 20px env(safe-area-inset-bottom, 32px);
    }

    .taxi-fullscreen.open {
      display: flex;
    }

    .taxi-fs-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 0 10px;
    }

    .taxi-fs-close {
      color: rgba(255, 255, 255, 0.5);
      font-size: 14px;
      background: none;
      border: none;
      cursor: pointer;
      font-family: inherit;
    }

    .taxi-fs-body {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      text-align: center;
      padding: 20px 0;
    }

    .taxi-fs-hotel-en {
      font-size: 13px;
      color: rgba(255, 255, 255, 0.45);
      margin-bottom: 22px;
      line-height: 1.4;
    }

    .taxi-fs-jp-label {
      font-size: 12px;
      color: var(--success-mid);
      margin-bottom: 14px;
    }

    .taxi-fs-jp-address {
      font-size: 32px;
      font-weight: 600;
      color: var(--white);
      line-height: 1.5;
      margin-bottom: 28px;
    }

    .taxi-fs-hint {
      background: rgba(255, 255, 255, 0.06);
      border-radius: 10px;
      padding: 12px 16px;
      font-size: 12px;
      color: rgba(255, 255, 255, 0.5);
      line-height: 1.6;
    }

    /* ─── 길 묻기 전광판 ─── */
    .phrase-board {
      display: none;
      position: fixed;
      inset: 0;
      background: var(--navy);
      z-index: 9999;
      flex-direction: column;
      padding: env(safe-area-inset-top, 16px) 20px env(safe-area-inset-bottom, 32px);
    }

    .phrase-board.open {
      display: flex;
    }

    .pb-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 0 10px;
    }

    .pb-close {
      color: rgba(255, 255, 255, 0.5);
      font-size: 14px;
      background: none;
      border: none;
      cursor: pointer;
      font-family: inherit;
    }

    .pb-body {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      text-align: center;
      padding: 20px 0;
    }

    .pb-jp {
      font-size: 42px;
      font-weight: 700;
      color: var(--white);
      line-height: 1.4;
      margin-bottom: 20px;
    }

    .pb-kr {
      font-size: 16px;
      color: rgba(255, 255, 255, 0.6);
      margin-bottom: 8px;
    }

    .pb-ph {
      font-size: 14px;
      color: var(--success-mid);
      margin-bottom: 32px;
    }

    .pb-hint {
      background: rgba(255, 255, 255, 0.06);
      border-radius: 10px;
      padding: 12px 16px;
      font-size: 12px;
      color: rgba(255, 255, 255, 0.5);
      line-height: 1.6;
    }

    /* ─── 가로 모드 글자 확대 ─── */
    @media (orientation: landscape) {
      .taxi-fs-jp-address {
        font-size: 52px;
      }
      .pb-jp {
        font-size: 68px;
      }
    }

    /* scrollbar hide */
    .wallet-body::-webkit-scrollbar,
    .home-body::-webkit-scrollbar {
      width: 0;
    }

    /* ── doc delete mode ── */
    .del-mode-btn {
      background: var(--card-soft);
      color: var(--ink-2);
      border: none;
      border-radius: 20px;
      padding: 7px 13px;
      font-size: 11px;
      font-weight: 500;
      cursor: pointer;
      font-family: inherit;
      min-height: 36px;
      box-shadow: var(--shadow-sm);
    }

    .del-mode-btn.active {
      background: #FEE2E2;
      color: var(--danger-dark);
      border-color: var(--danger-soft);
    }

    .doc-del-hint {
      font-size: 11px;
      color: var(--danger-dark);
      text-align: center;
      margin-bottom: 8px;
      padding: 6px 10px;
      background: #FEF2F2;
      border-radius: 8px;
      display: none;
    }

    .doc-del-hint.show {
      display: block;
    }

    /* 드래그 중 전역 텍스트 선택 완전 차단 */
    body.is-reordering * {
      user-select: none !important;
      -webkit-user-select: none !important;
    }

    .doc-card.del-mode {
      border-color: var(--danger-soft) !important;
    }

    .del-inner-btn {
      display: none;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: #FEE2E2;
      border: none;
      color: var(--danger-dark);
      font-size: 15px;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      flex-shrink: 0;
      transition: background 0.15s, transform 0.15s;
    }

    .del-inner-btn:hover {
      background: var(--danger-soft);
      transform: scale(1.1);
    }

    .doc-card.del-mode .del-inner-btn {
      display: flex;
    }

    .doc-card.del-mode .doc-chevron {
      display: none;
    }

    /* ── rail blocks ── */
    #rail-block-list:empty+.rail-add-row {
      margin-top: 0;
    }

    /* rail-block 내부는 long-press 컨텍스트 메뉴 항상 허용 (Android Chrome 필수) */
    .rail-block,
    .rail-block-body,
    .rail-link-list,
    .rail-link-row {
      touch-action: auto !important;
      -webkit-user-select: auto !important;
      user-select: auto !important;
      -webkit-touch-callout: default !important;
    }

    .rail-block {
      border: 1px solid var(--border);
      border-radius: 12px;
      margin-bottom: 8px;
      background: var(--white);
      overflow: hidden;
    }

    .rail-block-hdr {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 9px 12px;
      background: var(--cream);
      border-bottom: 1px solid var(--border);
    }

    .rail-drag {
      color: var(--border2);
      font-size: 16px;
      cursor: grab;
      user-select: none;
      flex-shrink: 0;
    }

    .rail-block-ico {
      font-size: 15px;
      flex-shrink: 0;
    }

    .rail-block-label {
      flex: 1;
      font-size: 12px;
      font-weight: 600;
      color: var(--navy);
    }

    .rail-block-del {
      background: none;
      border: none;
      color: var(--muted);
      cursor: pointer;
      font-size: 13px;
      padding: 3px 5px;
      border-radius: 5px;
      line-height: 1;
      flex-shrink: 0;
    }

    .rail-block-del:hover {
      background: var(--red-soft);
      color: var(--red);
    }

    .rail-block-body {
      padding: 12px;
    }

    .rail-add-row {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      padding-top: 4px;
      margin-top: 2px;
    }

    .rail-add-chip {
      background: var(--cream);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 6px 12px;
      font-size: 12px;
      font-weight: 500;
      color: var(--navy);
      cursor: pointer;
      white-space: nowrap;
      font-family: inherit;
    }

    .rail-add-chip:hover {
      background: var(--border);
    }

    .rail-add-chip:active {
      transform: scale(0.97);
    }

    /* link block */
    .rail-link-list {
      display: flex;
      flex-direction: column;
      gap: 6px;
      touch-action: auto !important;
    }

    .rail-link-row {
      display: flex;
      align-items: center;
      gap: 6px;
      touch-action: auto !important;
      -webkit-user-select: auto;
      user-select: auto;
    }

    .rail-link-input {
      flex: 1;
      min-width: 0;
      background: transparent;
      border: none;
      border-radius: 0;
      padding: 7px 4px;
      text-overflow: ellipsis;
      white-space: nowrap;
      overflow: hidden;
      font-size: 12px;
      font-family: inherit;
      color: var(--navy);
      outline: none;
      touch-action: manipulation !important;
      -webkit-touch-callout: default !important;
      -webkit-user-select: text !important;
      user-select: text !important;
      -webkit-user-modify: read-write-plaintext-only;
      -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
      pointer-events: auto;
    }

    .rail-link-input:focus {
      border-color: transparent;
    }

    .rail-link-open {
      background: var(--brand);
      color: var(--white);
      border: none;
      border-radius: 8px;
      padding: 0 12px;
      height: 32px;
      font-size: 14px;
      cursor: pointer;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      white-space: nowrap;
    }

    .rail-link-open:disabled {
      background: var(--border);
      color: var(--muted);
      cursor: default;
    }

    .tickets-link-section {
      padding: 10px 0 4px;
    }

    .custom-link-row {
      display: flex;
      gap: 6px;
      align-items: center;
    }
    .custom-link-row .form-input {
      flex: 1;
    }

    .rail-link-rm {
      background: none;
      border: none;
      color: var(--muted);
      cursor: pointer;
      font-size: 14px;
      padding: 4px;
      flex-shrink: 0;
      line-height: 1;
    }

    .rail-add-link-btn {
      background: none;
      border: none;
      border-radius: 6px;
      padding: 7px 6px;
      font-size: 12px;
      font-weight: 500;
      color: var(--brand);
      cursor: pointer;
      width: auto;
      margin-top: 4px;
      font-family: inherit;
    }

    .rail-add-link-btn:hover {
      background: none;
      text-decoration: underline;
    }

    .rail-link-field {
      flex: 1;
      min-width: 0;
      display: flex;
      align-items: center;
      gap: 7px;
      background: var(--cream);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 0 4px;
    }

    .rail-link-field:focus-within {
      border-color: var(--brand);
    }

    .rail-paste-btn {
      flex-shrink: 0;
      background: var(--white);
      border: none;
      border-radius: 6px;
      padding: 5px 9px;
      font-size: 11.5px;
      font-weight: 500;
      color: var(--brand);
      cursor: pointer;
      font-family: inherit;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      white-space: nowrap;
    }

    .rail-paste-btn:active {
      transform: scale(0.97);
    }

    .rail-paste-ico {
      font-size: 12px;
      line-height: 1;
    }

    /* alert/info block */
    .rail-alert-type-row {
      display: flex;
      gap: 6px;
      margin-bottom: 8px;
    }

    .rail-at-btn {
      flex: 1;
      background: var(--cream);
      border: 1.5px solid var(--border);
      border-radius: 8px;
      padding: 5px 8px;
      font-size: 11px;
      cursor: pointer;
      font-family: inherit;
      color: var(--navy);
    }

    .rail-at-btn.active[data-atype="warn"] {
      background: #FFFBEB;
      border-color: #F59E0B;
      color: #92400E;
      font-weight: 600;
    }

    .rail-at-btn.active[data-atype="info"] {
      background: var(--success-soft);
      border-color: var(--success);
      color: var(--success);
      font-weight: 600;
    }

    .rail-alert-banner {
      border-radius: 10px;
      padding: 10px;
    }

    .rail-alert-banner.warn {
      background: #FFFBEB;
      border: 1px solid #FDE68A;
    }

    .rail-alert-banner.info {
      background: var(--success-soft);
      border: 1px solid #6EE7B7;
    }

    .rail-alert-banner .note-ta {
      background: transparent;
      border-color: transparent;
    }

    .rail-alert-banner .note-ta:focus {
      border-color: rgba(0, 0, 0, 0.15);
    }

    /* ═══ 첫 방문 안내 모달 ═══ */
    .onb-overlay {
      position: fixed;
      inset: 0;
      background: rgba(11, 17, 32, 0.55);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      z-index: 9999;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      padding: 16px;
      padding-bottom: max(16px, env(safe-area-inset-bottom));
      animation: onbFadeIn 0.25s ease-out;
    }

    @keyframes onbFadeIn {
      from {
        opacity: 0;
      }

      to {
        opacity: 1;
      }
    }

    .onb-sheet {
      background: var(--white);
      border-radius: 20px;
      padding: 28px 22px 20px;
      width: 100%;
      max-width: 380px;
      box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
      animation: onbSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes onbSlideUp {
      from {
        transform: translateY(40px);
        opacity: 0;
      }

      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    .onb-icon {
      font-size: 40px;
      text-align: center;
      margin-bottom: 14px;
      line-height: 1;
    }

    .onb-title {
      font-size: 17px;
      font-weight: 700;
      color: var(--navy);
      text-align: center;
      line-height: 1.45;
      margin-bottom: 12px;
      letter-spacing: -0.02em;
    }

    .onb-sub {
      font-size: 13px;
      color: var(--muted);
      text-align: center;
      line-height: 1.65;
      margin-bottom: 22px;
      font-weight: 400;
    }

    .onb-btn {
      width: 100%;
      background: var(--navy);
      color: var(--white);
      border: none;
      border-radius: 12px;
      padding: 15px;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      font-family: inherit;
      transition: transform 0.1s, opacity 0.2s;
    }

    .onb-btn:active {
      transform: scale(0.98);
      opacity: 0.9;
    }

    .onb-skip {
      display: block;
      width: 100%;
      background: transparent;
      border: none;
      color: var(--muted);
      font-size: 13px;
      font-weight: 400;
      padding: 12px;
      margin-top: 4px;
      cursor: pointer;
      font-family: inherit;
      text-decoration: underline;
      text-decoration-color: rgba(0, 0, 0, 0.15);
      text-underline-offset: 3px;
    }

    .onb-skip:active {
      opacity: 0.6;
    }

    /* ═══ 최상단 핵심 경고 박스 ═══ */
    .onb-warn {
      background: var(--gold-soft);
      border: 1px solid #E8C97B;
      border-radius: 12px;
      padding: 14px;
      margin-bottom: 18px;
    }

    .onb-warn-head {
      display: flex;
      gap: 8px;
      align-items: center;
      margin-bottom: 8px;
    }

    .onb-warn-icon {
      font-size: 16px;
      line-height: 1;
    }

    .onb-warn-title {
      font-size: 13px;
      font-weight: 700;
      color: #2C2416;
      line-height: 1.4;
      letter-spacing: -0.01em;
    }

    .onb-warn-body {
      font-size: 11.5px;
      color: #6B5A2E;
      line-height: 1.6;
      padding-left: 24px;
    }

    .onb-warn-body b {
      color: #2C2416;
      font-weight: 600;
    }

    /* ═══ 설치 단계 안내 ═══ */
    .onb-steps {
      background: var(--cream);
      border-radius: 12px;
      padding: 14px 14px 12px;
      margin-bottom: 18px;
    }

    .onb-steps:empty {
      display: none;
    }

    .onb-steps-title {
      font-size: 11px;
      font-weight: 600;
      color: var(--navy);
      letter-spacing: 0.02em;
      margin-bottom: 10px;
      text-align: center;
      opacity: 0.7;
    }

    .onb-step {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      margin-bottom: 8px;
      font-size: 12.5px;
      line-height: 1.5;
      color: var(--navy);
    }

    .onb-step:last-child {
      margin-bottom: 0;
    }

    .onb-step-num {
      flex-shrink: 0;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: var(--navy);
      color: var(--white);
      font-size: 10px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-top: 1px;
    }

    .onb-step-text {
      flex: 1;
    }

    .onb-step-text b {
      font-weight: 600;
      color: var(--navy);
    }

    .onb-icon-inline {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 18px;
      height: 18px;
      background: var(--navy);
      color: white;
      border-radius: 4px;
      font-size: 11px;
      margin: 0 2px;
      vertical-align: -3px;
    }

    /* ═══ 새 경고 박스 (주황, 데이터 분리 안내) ═══ */
    .onb-warn:empty {
      display: none;
    }

    .onb-warn-install {
      background: #FAEEDA;
      border-color: #e8a84a;
      color: #633806;
      font-size: 12.5px;
      line-height: 1.6;
    }

    .onb-warn-install b {
      color: #412402;
      font-weight: 700;
      display: block;
      margin-bottom: 2px;
    }

    /* ═══ 다크 설치 방법 카드 ═══ */
    .onb-steps-dark {
      background: #1a2336;
    }

    .onb-steps-dark .onb-steps-title {
      opacity: 1;
    }

    .onb-steps-dark .onb-step {
      color: #C8CDDB;
    }

    .onb-steps-dark .onb-step-num {
      background: var(--success-mid);
      color: #04342C;
    }

    .onb-steps-dark .onb-step-text {
      color: #C8CDDB;
    }

    .onb-steps-dark .onb-step-text b {
      color: var(--white);
      font-weight: 600;
    }

    .onb-steps-divider {
      height: 1px;
      background: #2a3a52;
      margin: 10px 0 8px;
    }

    .onb-steps-hint {
      font-size: 11.5px;
      color: var(--muted);
      line-height: 1.55;
    }

    .onb-steps-hint b {
      color: #9AA3B8;
      font-weight: 600;
    }

    /* ═══ Android 원탭 설치 (Case A) ═══ */
    .onb-steps-wrapper {
      margin-bottom: 18px;
    }

    .onb-install-box {
      background: rgba(93, 202, 165, 0.12);
      border: 1.5px solid var(--success-mid);
      border-radius: 14px;
      padding: 16px;
      text-align: center;
    }

    .onb-install-btn {
      width: 100%;
      background: var(--success-mid);
      color: #04342C;
      border: none;
      border-radius: 12px;
      padding: 15px;
      font-size: 16px;
      font-weight: 700;
      cursor: pointer;
      font-family: inherit;
      margin-bottom: 8px;
      letter-spacing: -0.01em;
      transition: transform 0.1s, opacity 0.2s;
    }

    .onb-install-btn:active {
      transform: scale(0.98);
      opacity: 0.9;
    }

    .onb-install-hint {
      font-size: 12px;
      color: var(--success-mid);
      opacity: 0.85;
    }

    /* ═══ 확인했어요 버튼 — 민트 오버라이드 ═══ */
    .onb-btn-mint {
      background: var(--success-mid);
      color: #04342C;
    }

    /* ═══ 나중에 버튼 ═══ */
    .onb-later {
      display: block;
      width: 100%;
      background: transparent;
      border: none;
      color: var(--muted);
      font-size: 13px;
      font-weight: 400;
      padding: 10px 12px 6px;
      cursor: pointer;
      font-family: inherit;
      text-align: center;
    }

    .onb-later:active {
      opacity: 0.6;
    }

    .onb-later-small {
      font-size: 11px;
      opacity: 0.6;
      margin-left: 4px;
    }

    /* ═══════════════════════════════
       TEXT INPUT — 복사/붙여넣기 컨텍스트 메뉴 보장
       (모든 입력·편집 영역에서 롱프레스·더블탭·더블클릭 동작 안정화)
    ═══════════════════════════════ */
    input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="date"]):not([type="button"]):not([type="submit"]),
    textarea,
    [contenteditable="true"],
    [contenteditable=""] {
      -webkit-user-select: text !important;
      -moz-user-select: text !important;
      -ms-user-select: text !important;
      user-select: text !important;
      -webkit-touch-callout: default !important;
      touch-action: manipulation;
      cursor: text;
    }

    /* 부모에 user-select:none이 있어도 입력 필드는 항상 선택 가능 */
    .wallet-body input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="date"]),
    .wallet-body textarea,
    .wallet-body [contenteditable="true"],
    .wallet-body [contenteditable=""],
    .sheet input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="date"]),
    .sheet textarea {
      -webkit-user-select: text !important;
      user-select: text !important;
      -webkit-touch-callout: default !important;
    }

    /* 드래그 정렬 중에도 입력 영역은 텍스트 선택·붙여넣기 허용 */
    body.is-reordering input,
    body.is-reordering textarea,
    body.is-reordering [contenteditable] {
      user-select: text !important;
      -webkit-user-select: text !important;
      -webkit-touch-callout: default !important;
    }

    /* ═══════════════════════════════════════
       PWA 설치 유도 요소
    ═══════════════════════════════════════ */

    /* ── 헤더 모드 칩 (요소 2+3) ── */
    .header-mode-chip {
      display: flex;
      align-items: center;
      gap: 5px;
      font-size: 10px;
      font-weight: 500;
      padding: 4px 10px;
      border-radius: 20px;
      border: 1px solid;
      cursor: default;
      text-decoration: none;
      background: none;
      font-family: inherit;
    }
    .header-mode-chip.chip-web {
      background: #854f0b;
      border-color: transparent;
      color: #faeeda;
      cursor: pointer;
    }
    .header-mode-chip.chip-app {
      background: #0f6e56;
      border-color: transparent;
      color: #e1f5ee;
      cursor: pointer;
    }
    .chip-dot {
      width: 5px;
      height: 5px;
      border-radius: 50%;
      flex-shrink: 0;
    }
    .chip-dot-web { background: currentColor; }
    .chip-dot-app { background: currentColor; }
    .chip-arrow {
      font-size: 12px;
      line-height: 1;
      opacity: 0.8;
    }

    /* ── 설치 권유 띠 (요소 4) ── */
    .install-pill {
      display: none;
      align-items: center;
      gap: 10px;
      width: 100%;
      background: rgba(93, 202, 165, 0.10);
      border: 1px solid rgba(93, 202, 165, 0.30);
      border-radius: 12px;
      padding: 10px 12px;
      margin-bottom: 10px;
      cursor: pointer;
      position: relative;
    }
    .install-pill-icon {
      font-size: 20px;
      flex-shrink: 0;
    }
    .install-pill-body {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
    }
    .install-pill-title {
      font-size: 13px;
      font-weight: 600;
      color: var(--white);
      line-height: 1.3;
    }
    .install-pill-sub {
      font-size: 11px;
      color: rgba(255, 255, 255, 0.55);
      line-height: 1.3;
    }
    .install-pill-arrow {
      font-size: 18px;
      color: var(--success-mid);
      flex-shrink: 0;
    }
    .install-pill-close {
      position: absolute;
      top: 6px;
      right: 6px;
      width: 22px;
      height: 22px;
      border: none;
      background: none;
      color: rgba(255, 255, 255, 0.4);
      font-size: 13px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      font-family: inherit;
      padding: 0;
      line-height: 1;
    }
    .install-pill-close:active { background: rgba(255,255,255,0.1); }

    /* ── 여행 지갑 페이지 상단 sticky 설치 바 ── */
    .wallet-install-bar {
      position: sticky;
      top: 0;
      z-index: 50;
      background: var(--navy);
      padding: 0 20px 10px;
    }
    .wallet-install-bar:empty {
      display: none;
      padding: 0;
    }
    .wallet-install-item {
      display: flex;
      align-items: center;
      gap: 11px;
      width: 100%;
      background: rgba(93, 202, 165, 0.12);
      border: 1px solid rgba(93, 202, 165, 0.40);
      border-radius: 12px;
      padding: 12px 13px;
      cursor: pointer;
      font-family: inherit;
      text-align: left;
    }
    .wallet-install-item.installed {
      cursor: default;
      background: rgba(15, 110, 86, 0.18);
      border-color: rgba(93, 202, 165, 0.30);
    }
    .wallet-install-item .tools-install-icon { font-size: 21px; flex-shrink: 0; }
    .wallet-install-item .tools-install-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
    .wallet-install-item .tools-install-name { font-size: 13px; font-weight: 600; color: var(--success-soft); }
    .wallet-install-item .tools-install-name.installed-name { color: var(--success-mid); }
    .wallet-install-item .tools-install-desc { font-size: 10.5px; color: rgba(225, 245, 238, 0.65); }
    .wallet-install-item .tools-install-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
    .wallet-install-item .tools-install-badge { font-size: 9.5px; font-weight: 600; padding: 3px 8px; border-radius: 7px; }
    .wallet-install-item .tools-install-badge.badge-pending { background: rgba(226, 75, 74, 0.20); color: #F09595; }
    .wallet-install-item .tools-install-badge.badge-done { background: rgba(93, 202, 165, 0.20); color: var(--success-mid); }
    .wallet-install-item .tools-install-chevron { font-size: 17px; color: rgba(255, 255, 255, 0.4); flex-shrink: 0; }

    /* ── tools 패널 설치 메뉴 (요소 1) ── */
    .tools-install-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 12px 0;
      border-bottom: 1px solid var(--border);
      margin-bottom: 12px;
      cursor: pointer;
      background: none;
      border-radius: 0;
      width: 100%;
      font-family: inherit;
      text-align: left;
    }
    .tools-install-item.installed { cursor: default; }
    .tools-install-icon {
      font-size: 20px;
      flex-shrink: 0;
    }
    .tools-install-body {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
    }
    .tools-install-name {
      font-size: 14px;
      font-weight: 600;
      color: var(--navy);
    }
    .tools-install-name.installed-name { color: var(--success-mid); }
    .tools-install-desc {
      font-size: 11px;
      color: var(--muted);
    }
    .tools-install-right {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-shrink: 0;
    }
    .tools-install-badge {
      font-size: 10px;
      font-weight: 600;
      padding: 2px 7px;
      border-radius: 10px;
    }
    .tools-install-badge.badge-pending {
      background: rgba(226, 75, 74, 0.14);
      color: var(--danger-mid);
    }
    .tools-install-badge.badge-done {
      background: rgba(93, 202, 165, 0.18);
      color: var(--success-mid);
    }
    .tools-install-chevron {
      font-size: 16px;
      color: var(--muted);
    }

    /* ── 저장 직후 설치 유도 토스트 (요소 5) ── */
    @keyframes saveToastIn {
      from { opacity: 0; transform: translateX(-50%) translateY(20px); }
      to   { opacity: 1; transform: translateX(-50%) translateY(0); }
    }
    @keyframes saveToastOut {
      from { opacity: 1; transform: translateX(-50%) translateY(0); }
      to   { opacity: 0; transform: translateX(-50%) translateY(20px); }
    }
    .save-toast {
      position: fixed;
      left: 50%;
      transform: translateX(-50%) translateY(0);
      bottom: calc(var(--bnav-h) + 16px + env(safe-area-inset-bottom, 0px));
      width: min(360px, calc(100vw - 32px));
      background: var(--navy);
      border: 1px solid rgba(93, 202, 165, 0.25);
      border-radius: 14px;
      padding: 18px 16px 14px;
      z-index: 9000;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      box-shadow: 0 8px 32px rgba(11, 17, 32, 0.55);
      animation: saveToastIn 0.28s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
    }
    .save-toast.hiding {
      animation: saveToastOut 0.22s ease-in forwards;
    }
    .save-toast-check {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: rgba(93, 202, 165, 0.18);
      border: 1.5px solid rgba(93, 202, 165, 0.45);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      color: var(--success-mid);
      flex-shrink: 0;
    }
    .save-toast-title {
      font-size: 14px;
      font-weight: 700;
      color: var(--white);
      text-align: center;
      line-height: 1.3;
    }
    .save-toast-body {
      font-size: 12px;
      color: rgba(255, 255, 255, 0.65);
      text-align: center;
      line-height: 1.55;
    }
    .save-toast-body .highlight {
      color: #F0B544;
      font-weight: 600;
    }
    .save-toast-actions {
      display: flex;
      flex-direction: column;
      gap: 6px;
      width: 100%;
    }
    .save-toast-install-btn {
      width: 100%;
      padding: 11px;
      border-radius: 10px;
      border: none;
      background: var(--success-mid);
      color: var(--navy);
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      font-family: inherit;
    }
    .save-toast-install-btn:active { opacity: 0.85; }
    .save-toast-later-btn {
      width: 100%;
      padding: 9px;
      border-radius: 10px;
      border: none;
      background: transparent;
      color: rgba(255, 255, 255, 0.4);
      font-size: 13px;
      cursor: pointer;
      font-family: inherit;
    }
    .save-toast-later-btn:active { color: rgba(255,255,255,0.6); }

    @media (prefers-reduced-motion: reduce) {
      .save-toast, .save-toast.hiding {
        animation: none;
      }
    }

    /* ═══════════════════════════════
       SHOPPING TAB — 전용 스타일
       ═══════════════════════════════ */

    /* 면세 한도 띠 */
    .shop-duty-band {
      background: #E1F5EE;
      border-radius: 14px;
      padding: 14px 16px 10px;
      margin: 4px 0 14px;
    }
    .shop-duty-title {
      font-size: 13px;
      font-weight: 700;
      color: #085041;
      margin-bottom: 8px;
    }
    .shop-duty-row {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      padding: 3px 0;
      border-bottom: 1px solid rgba(8,80,65,0.1);
    }
    .shop-duty-row:last-of-type { border-bottom: none; }
    .shop-duty-item {
      font-size: 12px;
      font-weight: 600;
      color: #085041;
      min-width: 60px;
    }
    .shop-duty-val {
      font-size: 12px;
      color: #085041;
      text-align: right;
    }
    .shop-duty-src {
      font-size: 10px;
      color: rgba(8,80,65,0.6);
      margin-top: 8px;
      text-align: right;
    }

    /* 빈 화면 */
    .shop-empty {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 32px 16px 24px;
      text-align: center;
    }
    .shop-empty-icon { font-size: 40px; margin-bottom: 12px; }
    .shop-empty-ttl {
      font-size: 15px;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 6px;
    }
    .shop-empty-desc {
      font-size: 13px;
      color: var(--muted);
      line-height: 1.5;
      margin-bottom: 10px;
    }
    .shop-empty-hint {
      font-size: 12px;
      color: var(--border);
      margin-bottom: 20px;
    }

    /* 추가 버튼 (점선) */
    .shop-add-dashed {
      width: 100%;
      padding: 14px;
      border: none;
      border-radius: 12px;
      background: linear-gradient(90deg, #31C690, #67D9AC);
      color: #143b37;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      font-family: inherit;
      margin-top: 4px;
      margin-bottom: 12px;
    }
    /* 목록 상단 헤더 */
    .shop-top-hdr {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;
    }
    .shop-top-summary {
      font-size: 12px;
      font-weight: 600;
      color: var(--muted);
    }

    /* 사람별 그룹 */
    .shop-group {
      margin-bottom: 12px;
    }
    .shop-group-hdr {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 4px 2px 6px;
      border-bottom: 1.5px solid var(--border);
      margin-bottom: 2px;
    }
    .shop-group-name {
      font-size: 13px;
      font-weight: 700;
      color: var(--text);
    }
    .shop-group-stat {
      font-size: 11px;
      color: var(--muted);
    }

    /* 항목 행 */
    .shop-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 9px 4px;
    }
    .shop-item.bought .shop-item-name { text-decoration: line-through; color: var(--muted); }
    .shop-chk {
      font-size: 18px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 0;
      flex-shrink: 0;
      color: var(--text);
      font-family: inherit;
    }
    .shop-del-x {
      font-size: 14px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 0 4px;
      flex-shrink: 0;
      color: #e55;
      font-family: inherit;
      font-weight: 700;
    }
    .shop-item-main { flex: 1; min-width: 0; cursor: pointer; }
    .shop-item-name {
      font-size: 14px;
      font-weight: 600;
      color: var(--text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .shop-item-sub {
      font-size: 11px;
      color: var(--muted);
      margin-top: 2px;
    }

    /* 시트 내 환산 힌트 */
    .shop-price-krw {
      font-size: 12px;
      color: var(--success);
      font-weight: 600;
      margin: -8px 0 10px;
      min-height: 16px;
    }

    /* 개수 배지 (qty >= 2) */
    .shop-qty {
      display: inline-block;
      margin-left: 5px;
      padding: 1px 5px;
      border-radius: 10px;
      background: #E1F5EE;
      color: #0f6e56;
      font-size: 11px;
      font-weight: 600;
      vertical-align: middle;
      line-height: 1.4;
    }
    .shop-qty-done {
      background: #e8e8e8;
      color: #aaa;
    }

    /* ═══════════════════════════════════════
       SOS 2단 구조 전용 스타일 (.sos2-*)
       기존 .emg-*, .sos-* 는 수정하지 않음
       ═══════════════════════════════════════ */

    /* 결정 2: #sos-card-list 스코프 안에서만 ✕·드래그 숨김 */
    #sos-card-list .sos-del-x      { display: none; }
    #sos-card-list .sos-drag-handle { display: none; }
    /* 결정 3: 회화 섹션 전체삭제 버튼 숨김 — 체크리스트·쇼핑의 cl-edit-btn은 미영향 */
    #sos-phrases-block .cl-edit-btn { display: none; }

    /* 섹션 헤더 */
    .sos2-section-hdr {
      font-size: 13px;
      font-weight: 700;
      color: var(--navy);
      margin: 16px 0 10px;
      display: flex;
      align-items: center;
      gap: 5px;
    }

    /* eSIM 경고 띠 */
    .sos2-esim {
      font-size: 12px;
      color: #92400E;
      background: #FFFBEB;
      border: 1px solid #FCD34D;
      border-radius: 10px;
      padding: 10px 12px;
      margin-bottom: 10px;
      line-height: 1.5;
    }

    /* 119 / 110 전화 카드 */
    .sos2-call-card {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: #FFF0F3;
      border: 1px solid #FFB3C1;
      border-radius: 14px;
      padding: 14px;
      margin-bottom: 8px;
      gap: 10px;
    }
    .sos2-call-info {
      flex: 1;
      min-width: 0;
    }
    .sos2-call-label {
      font-size: 14px;
      font-weight: 700;
      color: var(--navy);
      margin-bottom: 2px;
    }
    .sos2-call-desc {
      font-size: 12px;
      color: var(--muted);
      margin-bottom: 6px;
    }
    .sos2-interp-badge {
      font-size: 11px;
      color: var(--success);
      background: var(--success-soft);
      border-radius: 8px;
      padding: 4px 8px;
      line-height: 1.4;
    }
    .sos2-interp-note {
      font-size: 12px;
      color: #0f6e56;
      background: rgba(15, 110, 86, 0.08);
      border-radius: 8px;
      padding: 8px 12px;
      line-height: 1.5;
      margin: 6px 0 10px;
    }
    .sos2-call-btn {
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: var(--red);
      color: #fff;
      font-size: 22px;
      font-weight: 700;
      border-radius: 12px;
      padding: 10px 16px;
      text-decoration: none;
      letter-spacing: -0.5px;
      min-width: 64px;
    }

    /* 통역사 보조 안내 */
    .sos2-note {
      font-size: 11px;
      color: var(--muted);
      text-align: center;
      margin: 2px 0 12px;
    }

    /* 영사 지원 카드 */
    .sos2-consular {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 14px;
      margin-bottom: 10px;
      box-shadow: 0 1px 4px rgba(0,0,0,.06);
    }
    .sos2-consular-head {
      display: flex;
      align-items: center;
      gap: 7px;
      margin-bottom: 10px;
    }
    .sos2-consular-title {
      font-size: 14px;
      font-weight: 700;
      color: var(--navy);
    }
    .sos2-consular-tag {
      font-size: 11px;
      color: var(--muted);
      background: var(--bg-light);
      border-radius: 6px;
      padding: 2px 7px;
    }
    .sos2-consular-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 9px 0;
      border-bottom: 1px solid var(--border);
      font-size: 12px;
      min-height: 44px;
    }
    .sos2-consular-row:last-of-type {
      border-bottom: none;
    }
    .sos2-consular-lbl {
      color: var(--muted);
    }
    .sos2-consular-tel {
      font-weight: 700;
      color: var(--success);
      text-decoration: none;
      font-size: 14px;
    }
    .sos2-messenger-note {
      font-size: 11px;
      color: var(--muted);
      margin-top: 8px;
      padding-top: 8px;
      border-top: 1px solid var(--border);
    }

    /* 구분선 */
    .sos2-divider {
      border: none;
      border-top: 1px solid var(--border);
      margin: 16px 0;
    }

    /* 푸터 확인일 */
    .sos2-footer {
      font-size: 11px;
      color: var(--muted);
      text-align: center;
      margin-top: 12px;
      padding-bottom: 8px;
    }

    /* 구글 지도 버튼 */
    .sos-maps-btn {
      display: block;
      width: 100%;
      text-align: center;
      background: var(--success);
      color: #fff;
      font-size: 14px;
      font-weight: 600;
      border-radius: 12px;
      padding: 12px 0;
      margin: 10px 0;
      text-decoration: none;
      border: none;
      cursor: pointer;
    }
    .sos-maps-btn-disabled {
      background: var(--bg-light);
      color: var(--muted);
      cursor: default;
    }
    .sos-maps-hint {
      font-size: 11px;
      color: var(--muted);
      text-align: center;
      margin-top: -4px;
      margin-bottom: 6px;
    }

    /* ═══════════════════════════════════════
       샘플 전용 탭 내비 · CTA · 패널
       (공유 선택자 .page / .bottom-nav / .bnav-item / .wpanel / .es-cta-btn 수정 없음)
    ═══════════════════════════════════════ */
    .sample-nav {
      display: flex;
      flex-shrink: 0;
      background: var(--white);
      border-top: 1px solid var(--border);
    }
    .snv {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 2px;
      padding: 8px 4px 9px;
      border: none;
      background: none;
      font-family: inherit;
      cursor: pointer;
      min-height: 52px;
    }
    .snv-icon { font-size: 20px; line-height: 1; }
    .snv-lbl  { font-size: 10px; color: var(--muted); }
    .snv.on .snv-lbl { color: #0f6e56; font-weight: 600; }
    .sample-cta-bar {
      flex-shrink: 0;
      width: 100%;
      background: #0f6e56;
      color: #fff;
      border: none;
      font-family: inherit;
      font-size: 15px;
      font-weight: 700;
      padding: 14px;
      padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
      text-align: center;
      cursor: pointer;
    }
    .sample-cta-bar:active { opacity: 0.88; }
    /* 패널 전환 */
    .spn { display: none; }
    .spn.on { display: block; }
    /* 체크 패널 */
    .scl-header { padding: 14px 16px 4px; }
    .scl-progress-bar { height: 6px; background: var(--border); border-radius: 3px; margin-bottom: 6px; }
    .scl-progress-fill { height: 100%; background: #0f6e56; border-radius: 3px; }
    .scl-progress-lbl { font-size: 12px; color: var(--muted); }
    .scl-group { padding: 10px 16px 4px; }
    .scl-group-title { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
    .scl-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
    .scl-row:last-child { border-bottom: none; }
    .scl-chk { font-size: 16px; flex-shrink: 0; }
    .scl-done { color: var(--muted); text-decoration: line-through; }
    /* SOS 패널 */
    .ssos-section { padding: 14px 16px 6px; }
    .ssos-title { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
    .ssos-card { background: var(--bg-light); border-radius: 10px; overflow: hidden; }
    .ssos-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); }
    .ssos-row:last-child { border-bottom: none; }
    .ssos-lbl { font-size: 13px; color: var(--muted); }
    .ssos-num { font-size: 15px; font-weight: 700; letter-spacing: 0.05em; }
    .ssos-phrase { background: var(--bg-light); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; }
    .ssos-kor { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
    .ssos-jpn { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
    .ssos-rom { font-size: 11px; color: var(--muted); font-style: italic; }
    /* 머니 패널 */
    .smn-section { padding: 14px 16px 6px; }
    .smn-title { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
    .smn-rate-card { background: var(--bg-light); border-radius: 10px; padding: 14px 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
    .smn-from { font-size: 20px; font-weight: 700; }
    .smn-arrow { font-size: 18px; color: var(--muted); }
    .smn-to { font-size: 20px; font-weight: 700; color: #0f6e56; }
    .smn-rate-note { width: 100%; font-size: 11px; color: var(--muted); margin-top: 4px; }
    .smn-budget-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 10px; }
    .smn-bitem { background: var(--bg-light); border-radius: 10px; padding: 10px; text-align: center; }
    .smn-bval { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
    .smn-blbl { font-size: 11px; color: var(--muted); }
    .smn-spent { color: #e03e3e; }
    .smn-remain { color: #0f6e56; }
    .smn-usage-bar { height: 6px; background: var(--border); border-radius: 3px; margin-bottom: 6px; }
    .smn-usage-fill { height: 100%; background: #e03e3e; border-radius: 3px; }
    .smn-usage-lbl { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
    .smn-expense-list { border-top: 1px solid var(--border); padding-top: 8px; }
    .smn-exp-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
    .smn-exp-row:last-child { border-bottom: none; }
    .smn-exp-day { font-size: 11px; color: var(--muted); flex-shrink: 0; width: 36px; }
    .smn-exp-name { flex: 1; }
    .smn-exp-amt { font-weight: 600; }
    /* 쇼핑 패널 */
    .sshp-list { padding: 8px 16px 12px; }
    .sshp-row { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
    .sshp-row:last-child { border-bottom: none; }
    .sshp-chk { font-size: 16px; flex-shrink: 0; }
    .sshp-name { flex: 1; }
    .sshp-bought { text-decoration: line-through; color: var(--muted); }
    .sshp-tag { font-size: 11px; color: #0f6e56; font-weight: 600; flex-shrink: 0; }

/* === mode-info-pop (신규 전용) === */
.home-logo { position: relative; }
.chip-info{ font-size:11px; opacity:.9; margin-left:1px; }
.mode-info-pop{ position:absolute; right:8px; top:calc(100% + 6px); z-index:50;
  background:#fff; border:1px solid rgba(0,0,0,.12); border-radius:10px;
  padding:10px 12px; max-width:280px; box-shadow:0 4px 14px rgba(0,0,0,.12); }
.mode-info-pop[hidden]{ display:none; }
.mode-info-pop__row{ display:flex; gap:8px; padding:6px 0; }
.mode-info-pop__row + .mode-info-pop__row{ border-top:1px solid rgba(0,0,0,.07); }
.mode-info-pop__tag{ font-size:11px; font-weight:600; padding:2px 7px; border-radius:6px;
  white-space:nowrap; height:fit-content; }
.mode-info-pop__tag--web{ background:#faeeda; color:#854f0b; }
.mode-info-pop__tag--app{ background:#e1f5ee; color:#0f6e56; }
.mode-info-pop__txt{ font-size:12.5px; line-height:1.5; margin:0; color:#222; }
.mode-info-pop__cta{ margin-top:8px; width:100%; border:none; cursor:pointer;
  background:#0f6e56; color:#e1f5ee; font:inherit; font-size:12px; font-weight:600;
  padding:7px 10px; border-radius:8px; }
/* X 닫기 버튼 (신규) */
.mode-info-pop__close{
  position:absolute; top:6px; right:6px;
  width:24px; height:24px; padding:0; border:none; cursor:pointer;
  background:#eef1ef; color:#7f968f; border-radius:50%;
  font-family:inherit; font-size:13px; line-height:1;
  display:flex; align-items:center; justify-content:center;
}
.mode-info-pop__row:first-child{ padding-right:26px; }

/* ── 2-B 체크탭 ── */

/* 1. 체크리스트 프로그레스 헤더 → 흰 카드 + 민트 바 (시안2) */
.cl-prog-header { background: var(--card); box-shadow: var(--shadow); }
.cl-prog-label  { color: var(--ink-3); }
.cl-prog-num    { color: var(--ink); }
.cl-prog-unit   { color: var(--ink-3); }
.cl-prog-bar-wrap { background: var(--line); }
.cl-summary     { color: var(--ink-3); }
.cl-summary strong { color: var(--ink); }

/* 1a. 미완료 체크박스 → 연회녹 테두리 (시안2) */
.cl-box { border-color: var(--line); }

/* 2. 체크박스 체크 상태 → 브랜드 딥그린 */
.cl-box.chk { background: var(--brand); border-color: var(--brand); }

/* 3. 바텀 네비 → 반투명 유리 + 민트 액티브 */
.bottom-nav {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top-color: rgba(20,80,68,0.10);
}
.bnav-item.on        { color: var(--brand); }
.bnav-item.on::before { background: var(--brand); }

/* 4. 샘플 탭 네비 동일 */
.sample-nav {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top-color: rgba(20,80,68,0.10);
}

/* ── 2-C SOS 탭 ── */

/* 1. 섹션 헤더 */
.sos2-section-hdr { color: var(--brand); }

/* 2. 긴급 전화 카드 → 코랄 그라디언트 */
.sos2-call-card {
  background: linear-gradient(135deg, #ff5b5b, #ff7a59);
  border: none;
  box-shadow: 0 14px 30px -12px rgba(255,75,75,.6);
}
.sos2-call-label { color: var(--card); }
.sos2-call-btn {
  background: rgba(255,255,255,.92);
  color: var(--coral-text);
  font-size: 24px;
  font-weight: 800;
}

/* 3. 영사 지원 카드 → 흰 카드 + 민트 전화버튼 */
.sos2-consular {
  background: var(--card);
  border: none;
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
}
.sos2-consular-title { color: var(--ink); }
.sos2-consular-tag   { color: var(--ink-3); background: var(--brand-soft); }
.sos2-consular-row   { border-bottom-color: var(--line); }
.sos2-consular-lbl   { color: var(--ink-3); }
.sos2-consular-tel {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--mint-a), var(--mint-b));
  color: var(--card);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.sos2-messenger-note { color: var(--ink-3); border-top-color: var(--line); }
.sos2-divider        { border-top-color: var(--line); }

/* 4. 긴급 시 한마디 → 흰 카드 */
.phrase-card        { background: var(--card); border: none; box-shadow: var(--shadow-sm); }
.phrase-item:active { background: var(--brand-soft); }
.p-kr               { color: var(--ink); }
.p-jp               { color: var(--ink); }
.p-ph               { color: var(--ink-3); }

/* ── 2-D 머니(Tools) 탭 ── */

/* 1. 환율 카드 → 딥민트 그라디언트 */
.converter {
  background: linear-gradient(135deg, #0f6e56, #19926f);
  border: none;
  border-radius: var(--r-card);
  box-shadow: 0 14px 30px -14px rgba(15,110,86,.7);
}
.cv-title          { color: var(--card); }
.cv-unit           { color: var(--mint-b); }
.cv-divider        { color: var(--card-soft); }
.cv-input {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.25);
  color: var(--card);
}
.cv-input:focus    { border-color: rgba(255,255,255,.55); }
.cv-rate-row       { border-top-color: rgba(255,255,255,.2); }
.cv-rate-row label { color: var(--mint-b); }
.cv-rate-in        { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); color: var(--card); }
.cv-rate-hint      { color: var(--card-soft); }
#cv-fetch-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  min-height: 36px;
  cursor: pointer;
  background: rgba(255,255,255,.2);
  color: var(--mint-b);
}

/* 2. 예산 카드 → 흰 카드 */
.budget-card {
  background: var(--card);
  border: none;
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
}
.budget-title           { color: var(--ink); }
.budget-currency-toggle { border-color: var(--line); }
.bcur-btn               { color: var(--ink-3); }
.bcur-btn.active        { background: var(--brand-soft); color: var(--brand); }
.b-metric               { background: var(--line); }
.b-metric-lbl           { color: var(--ink-3); }
.b-metric-val           { color: var(--ink); }
.budget-bar-header      { color: var(--ink-3); }
.budget-bar-bg          { background: var(--line); }
.budget-bar-fill.bar-ok { background: linear-gradient(90deg, var(--mint-a), var(--mint-b)); }
.budget-sec-label       { font-size: 13px; font-weight: 800; color: var(--brand); text-transform: none; letter-spacing: normal; }
.budget-input           { background: var(--line); border-color: var(--line); color: var(--ink); }
.budget-input:focus     { border-color: var(--brand); }
.budget-add-btn         { background: var(--brand); }
.budget-divider         { border-top-color: var(--line); }
.budget-chip            { background: var(--line); border-color: var(--line); color: var(--ink); }
.budget-empty           { color: var(--ink-3); }

/* 3. 지출 항목 → 흰 카드 리스트 */
.budget-txn       { background: var(--card); border: none; box-shadow: var(--shadow-sm); }
.budget-txn-dot   { border-radius: var(--r-icon); }
.budget-txn-name  { color: var(--ink); }
.budget-txn-cat   { color: var(--ink-3); }
.budget-txn-badge { background: var(--line); color: var(--ink-3); }
.budget-txn-del   { color: var(--ink-3); }

/* ── 2-E 쇼핑 탭 ── */

/* 1. 면세 한도 띠 → 살구 틴트 카드 */
.shop-duty-band  { background: #fdeede; border-radius: var(--r-soft); box-shadow: var(--shadow-sm); }
.shop-duty-title { color: var(--brand); }
.shop-duty-row   { border-bottom-color: var(--line); }
.shop-duty-item  { color: var(--ink); }
.shop-duty-val   { color: var(--ink); }
.shop-duty-src   { color: var(--ink-3); }

/* 2. 섹션 헤더 (사람별 그룹) */
.shop-group-hdr   { border-bottom-color: var(--line); }
.shop-group-name  { color: var(--brand); font-weight: 800; }
.shop-group-stat  { color: var(--ink-3); }
.shop-top-summary { color: var(--ink-3); }

/* 3. 항목 행 → 흰 카드 */
.shop-item {
  background: var(--card);
  border-radius: var(--r-soft);
  box-shadow: var(--shadow-sm);
  border-bottom: none;
  margin-bottom: 6px;
}
.shop-item-name { color: var(--ink); }
.shop-item-sub  { color: var(--ink-3); }
/* 완료 항목: 취소선 없음(시안5) */
.shop-item.bought .shop-item-name { text-decoration: none; color: var(--ink-3); }

/* 4. 체크박스 → cl-box 동일 시각 스타일
   .shop-chk은 이모지(☐/☑) 텍스트 버튼이므로
   font-size:0 으로 이모지 숨기고 CSS 박스 + ::after ✓ 로 교체 */
.shop-chk {
  font-size: 0;
  width: 22px;
  min-width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--line);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.shop-item.bought .shop-chk {
  background: var(--brand);
  border-color: var(--brand);
}
.shop-item.bought .shop-chk::after {
  content: '✓';
  font-size: 13px;
  color: var(--card);
  line-height: 1;
}

/* 5. 삭제 × 버튼 */
.shop-del-x { color: var(--coral-text); }

/* 6. 개수 배지 */
.shop-qty      { background: var(--brand-soft); color: var(--brand); }
.shop-qty-done { background: var(--line); color: var(--ink-3); }

/* 7. 원화 환산 힌트 */
.shop-price-krw { color: var(--brand); }

/* 8. 빈 화면 */
.shop-empty-ttl  { color: var(--ink); }
.shop-empty-desc { color: var(--ink-3); }
.shop-empty-hint { color: var(--ink-3); }

/* 9. 추가 버튼 → 점선 테두리 (시안5) */
.shop-add-dashed {
  background: transparent;
  border: 1.5px dashed var(--line);
  border-radius: var(--r-soft);
  color: var(--ink-3);
}
.shop-add-dashed:active { background: var(--brand-soft); }

/* ── 2-F .note-ta 공통 전환 ── */
/* 서류·SOS·머니 탭 전부 라이트 전환 완료 확인 후 적용 */
.note-ta {
  background: var(--card-soft);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: var(--r-soft);
  caret-color: var(--brand);
}
.note-ta::placeholder { color: var(--ink-3); }

/* ── 2-G 샘플 트립 날짜 헤더 라이트 전환 ── */
.sample-trip-hdr {
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  margin: 12px 16px 8px;
}
.sample-trip-name  { color: var(--ink); }
.sample-trip-dates { color: var(--ink-3); }
.sample-progress   { color: var(--brand); }
.note-ta:focus        { border-color: var(--brand); }

/* ── 2-H PWA 설치 바 라이트 전환 ── */
.wallet-install-bar {
  background: #fdeede;
  border-radius: var(--r-soft);
  box-shadow: var(--shadow-sm);
}
.wallet-install-item {
  background: var(--card);
  border: 1px solid var(--line);
}
.wallet-install-item.installed {
  background: var(--brand-soft);
  border-color: var(--line);
}
.wallet-install-item .tools-install-name          { color: var(--ink); }
.wallet-install-item .tools-install-name.installed-name { color: var(--brand); }
.wallet-install-item .tools-install-desc          { color: var(--ink-3); }
.wallet-install-item .tools-install-badge.badge-pending { background: var(--coral-bg); color: var(--coral-text); }
.wallet-install-item .tools-install-badge.badge-done    { background: var(--brand-soft); color: var(--brand); }
.wallet-install-item .tools-install-chevron       { color: var(--ink-3); }

/* ════════════════════════════════════════════════════
   iOS 설치 안내 풀스크린 시트
   모든 선택자는 .install-sheet- 접두사 전용
════════════════════════════════════════════════════ */

/* ── 애니메이션 ── */
@keyframes cloudDrift1 {
  from { transform: translateX(0); }
  to   { transform: translateX(9px); }
}
@keyframes cloudDrift2 {
  from { transform: translateX(0); }
  to   { transform: translateX(-7px); }
}
@keyframes dashFade {
  0%, 100% { opacity: .25; }
  50%       { opacity: .7; }
}
@keyframes ctaPulse {
  0%, 92%, 100% { transform: scale(1); }
  96%            { transform: scale(1.015); }
}
@keyframes bubbleBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}
@keyframes bubbleFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 오버레이 (z-index 10000: .icon-notice 등 9999 요소보다 항상 위) ── */
.install-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.install-sheet-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ── 시트 본체 (풀스크린: 헤더 포함 전체 덮음) ── */
.install-sheet {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.install-sheet-overlay.open .install-sheet {
  transform: translateY(0);
}

/* ── 하늘 헤더 ── */
.install-sheet-sky {
  flex-shrink: 0;
  position: relative;
  height: 140px;
  background: linear-gradient(180deg, #8FD8FA 0%, #AEE8FF 55%, #D6F3FF 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.install-sheet-cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
}
.install-sheet-cloud--1 {
  width: 80px; height: 26px;
  top: 28px; left: 18px;
  animation: cloudDrift1 26s ease-in-out infinite alternate;
}
.install-sheet-cloud--1::before {
  content: '';
  position: absolute;
  width: 46px; height: 38px;
  background: rgba(255,255,255,0.85);
  border-radius: 999px;
  top: -16px; left: 14px;
}
.install-sheet-cloud--2 {
  width: 64px; height: 20px;
  top: 22px; right: 28px;
  animation: cloudDrift2 30s ease-in-out infinite alternate;
}
.install-sheet-cloud--2::before {
  content: '';
  position: absolute;
  width: 36px; height: 30px;
  background: rgba(255,255,255,0.85);
  border-radius: 999px;
  top: -12px; left: 10px;
}
.install-sheet-cloud--3 {
  width: 50px; height: 16px;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  opacity: 0.6;
  animation: cloudDrift1 22s ease-in-out infinite alternate;
}
.install-sheet-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: dashFade 12s ease-in-out infinite;
}
.install-sheet-sky-text {
  position: relative;
  text-align: center;
  z-index: 1;
}
.install-sheet-sky-name {
  font-size: 26px;
  font-weight: 500;
  color: #0B4D3C;
  line-height: 1.2;
}
.install-sheet-sky-sub {
  font-size: 13.5px;
  color: #1D6B55;
  margin-top: 2px;
}

/* ── 흰색 본문 ── */
.install-sheet-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border-radius: 28px 28px 0 0;
  padding: 0 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.install-sheet-grab {
  width: 36px;
  height: 4px;
  border-radius: 99px;
  background: #D1DAD6;
  align-self: center;
  margin: 12px 0 4px;
  flex-shrink: 0;
}
.install-sheet-title {
  font-size: 20px;
  font-weight: 500;
  color: #153028;
  text-align: center;
  line-height: 1.45;
  margin: 0;
}
.install-sheet-sub {
  font-size: 13.5px;
  color: #6B8278;
  text-align: center;
  line-height: 1.55;
  margin: 0;
}
.install-sheet-brand {
  background: linear-gradient(135deg, #EAF9FF 0%, #F0FCF6 100%);
  border-radius: 20px;
  padding: 14px 16px;
  font-size: 13.5px;
  color: #0F6E56;
  text-align: center;
  line-height: 1.6;
}

/* ── 단계 카드 ── */
.install-sheet-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.install-sheet-card {
  background: #F7FFFC;
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .04);
  border: 1px solid rgba(0, 0, 0, .03);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.install-sheet-card-title {
  font-size: 15px;
  font-weight: 500;
  color: #153028;
}

/* ── 모형 컨테이너 ── */
.install-sheet-mockup {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .03);
  overflow: hidden;
}

/* ── ① Safari 하단 툴바 모형 ── */
.install-sheet-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px 8px;
}
.install-sheet-tb-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #8A9BA4;
}
.install-sheet-tb-dim {
  opacity: 0.35;
}
.install-sheet-tb-share {
  background: #E1F5EE;
  border: 2px solid #67D9AC;
  color: #0F6E56;
  opacity: 1;
}

/* ── ② 공유 메뉴 모형 ── */
.install-sheet-menu {
  padding: 4px 0;
}
.install-sheet-menu-row {
  padding: 11px 16px;
  font-size: 14px;
  color: #1C2B26;
}
.install-sheet-menu-dim {
  opacity: 0.4;
}
.install-sheet-menu-active {
  background: #E1F5EE;
  color: #085041;
  font-weight: 500;
}

/* ── ③ 상단 바 모형 ── */
.install-sheet-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 8px;
}
.install-sheet-topbar-cancel {
  font-size: 14px;
  color: #8A9BA4;
  flex: 1;
}
.install-sheet-topbar-label {
  font-size: 14px;
  font-weight: 500;
  color: #153028;
  flex: 2;
  text-align: center;
}
.install-sheet-topbar-add {
  flex: 1;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #0F6E56;
  border-radius: 999px;
  padding: 4px 14px;
}

/* ── 도움말 박스 ── */
.install-sheet-help {
  background: #FFF8EC;
  border-radius: 20px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.install-sheet-help-title {
  font-size: 14px;
  font-weight: 500;
  color: #8A6420;
}
.install-sheet-help-body {
  font-size: 13px;
  color: #9C7A38;
  line-height: 1.5;
}

/* ── 인앱 변형 영역 ── */
.install-sheet-inapp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.install-sheet-inapp-msg {
  font-size: 14px;
  color: #3D5A52;
  line-height: 1.6;
  margin: 0;
}

/* ── CTA 버튼 ── */
.install-sheet-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #0F6E56;
  color: #fff;
  font-size: 15.5px;
  font-weight: 500;
  border-radius: 16px;
  padding: 16px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 110, 86, .22);
  animation: ctaPulse 6s ease-in-out infinite;
}
.install-sheet-cta:active {
  transform: scale(0.97);
  opacity: 0.9;
}

/* ── [hidden] 가드 (JS의 element.hidden=true가 먹히도록) ── */
.install-sheet-steps[hidden],
.install-sheet-help[hidden],
.install-sheet-cta[hidden]{ display: none; }

/* ── X 닫기 (하늘 헤더 왼쪽 위 오버레이) ── */
.install-sheet-close{
  position:absolute; top:12px; left:12px; z-index:5;
  width:34px; height:34px; border:none; border-radius:50%;
  background:rgba(255,255,255,0.6);
  display:flex; align-items:center; justify-content:center;
  color:#2a4a42; font-size:19px; line-height:1; cursor:pointer;
}
.install-sheet-close:active{ background:rgba(255,255,255,0.85); }

/* ── 닫기 텍스트 ── */
.install-sheet-later {
  background: none;
  border: none;
  color: #9AAFA6;
  font-size: 13px;
  text-align: center;
  cursor: pointer;
  padding: 4px;
  align-self: center;
}

/* ── ① 주소창 모형 ── */
.install-sheet-addressbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 999px;
  padding: 9px 10px 9px 16px;
  margin: 4px 8px;
}
.install-sheet-ab-url {
  font-size: 13px;
  color: #3A4A44;
  flex: 1;
}
.install-sheet-ab-more {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #E1F5EE;
  border: 2px solid #67D9AC;
  color: #0F6E56;
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 1px;
}

/* ── ② 메뉴 행에 아이콘 지원 ── */
.install-sheet-menu-active {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── ③ 더보기 행 (좌우 spread) ── */
.install-sheet-menu-spread {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── ④ 완료 카드 ── */
.install-sheet-card--final {
  padding: 14px 16px;
}
.install-sheet-card-title--final {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.install-sheet-add-pill {
  background: #0F6E56;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  padding: 4px 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── CTA ··· 원형 글리프 ── */
.install-sheet-cta-more {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  flex-shrink: 0;
  line-height: 1;
}

/* ── ··· 버튼 말풍선 (우측 하단, 주소창 ··· 위치) ── */
.install-sheet-bubble {
  position: fixed;
  bottom: 72px;
  right: 24px;
  transform: translateY(8px);
  z-index: 10000;
  background: #153028;
  color: #fff;
  font-size: 13px;
  border-radius: 12px;
  padding: 10px 16px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.install-sheet-bubble.visible {
  opacity: 1;
  transform: translateY(0);
  animation: bubbleBounce 1.6s ease-in-out infinite;
}
.install-sheet-bubble-tail {
  position: absolute;
  bottom: -7px;
  right: 12px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #153028;
}

/* ── reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  .install-sheet * { animation: none !important; }
  .install-sheet-overlay,
  .install-sheet,
  .install-sheet-bubble { transition: none !important; }
}

/* ── 설치 튜토리얼(코치마크) ── */
.install-tutorial-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(8, 30, 25, 0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 350ms ease;
}
.install-tutorial-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.install-tutorial-skip {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  cursor: pointer;
}
.install-tutorial-stage {
  position: relative;
  width: 100%;
  height: calc(100% - 160px);
  pointer-events: none;
}

/* 강조 영역 공통 */
.install-tutorial-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 30px;
  gap: 10px;
  pointer-events: none;
}

/* STEP 1 — 주소창 모형 */
.install-tutorial-addressbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px 10px 20px;
  width: 260px;
  gap: 10px;
}
.install-tutorial-addressbar-text {
  font-size: 14px;
  color: #153028;
  flex: 1;
}
.install-tutorial-addressbar-dots {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #E1F5EE;
  border: 2px solid #67D9AC;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #0F6E56;
  flex-shrink: 0;
}
.install-tutorial-caption {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}
.install-tutorial-arrow {
  animation: install-tutorial-arrow-bob 1.4s ease-in-out infinite;
}

/* STEP 2/3 — 메뉴 모형 */
.install-tutorial-menu {
  background: #fff;
  border-radius: 14px;
  width: 210px;
  overflow: hidden;
}
.install-tutorial-menu--wide {
  width: calc(100% - 40px);
  max-width: 340px;
}
.install-tutorial-menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: 15px;
  color: #153028;
  position: relative;
}
.install-tutorial-menu-row--dim {
  opacity: 0.4;
}
.install-tutorial-menu-row--active {
  background: #E1F5EE;
  color: #085041;
  font-weight: 500;
}
.install-tutorial-pulse-ring {
  position: absolute;
  inset: 4px;
  border-radius: 10px;
  border: 2px solid #67D9AC;
  pointer-events: none;
  animation: install-tutorial-pulse-ring 1.8s ease-out infinite;
}

/* 안내 카드 */
.install-tutorial-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  margin: 0 20px;
  text-align: center;
  pointer-events: none;
}
.install-tutorial-card-title {
  font-size: 17px;
  font-weight: 500;
  color: #153028;
  margin: 0 0 8px;
}
.install-tutorial-card-body {
  font-size: 14px;
  color: #6B8278;
  margin: 0;
  line-height: 1.6;
}

/* STEP 3 — 확인 바 미니 모형 */
.install-tutorial-confirm-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(21, 48, 40, 0.1);
}
.install-tutorial-confirm-cancel {
  font-size: 14px;
  color: rgba(21, 48, 40, 0.35);
}
.install-tutorial-confirm-title {
  font-size: 14px;
  font-weight: 500;
  color: #153028;
}
.install-tutorial-confirm-add {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #0F6E56;
  padding: 5px 14px;
  border-radius: 999px;
}

/* 하단 푸터 */
.install-tutorial-footer {
  position: absolute;
  bottom: 24px;
  left: 20px;
  right: 20px;
}
.install-tutorial-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.install-tutorial-prev {
  flex: 0 0 auto;
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.install-tutorial-prev[disabled] {
  opacity: 0.35;
  pointer-events: none;
}
.install-tutorial-next {
  flex: 1;
  padding: 14px 22px;
  background: #67D9AC;
  border: none;
  border-radius: 14px;
  color: #0B3D2E;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 6px 16px rgba(103, 217, 172, 0.4);
  cursor: pointer;
}
.install-tutorial-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.install-tutorial-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  display: inline-block;
}
.install-tutorial-dot.active {
  background: #67D9AC;
}
.install-tutorial-counter {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-left: 4px;
}

/* 애니메이션 */
@keyframes install-tutorial-arrow-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@keyframes install-tutorial-pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .install-tutorial-arrow { animation: none !important; }
  .install-tutorial-pulse-ring { animation: none !important; }
  .install-tutorial-overlay { transition: none !important; }
}

/* ── 설치 튜토리얼 v2 — 실제 스크린샷 방식 ── */
.install-tutorial-stage-real {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 20px 16px;
  box-sizing: border-box;
  gap: 14px;
}
.install-tutorial-screenshot-wrap {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}
.install-tutorial-img-container {
  position: relative;
  display: inline-block;
}
.install-tutorial-screenshot {
  width: auto;
  max-width: min(240px, calc(100vw - 80px));
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
  pointer-events: none;
}
.install-tutorial-img-container .install-tutorial-highlight {
  position: absolute;
  border: 3px solid #67D9AC;
  border-radius: 12px;
  display: block;
  padding: 0;
  gap: 0;
  pointer-events: none;
  animation: install-tutorial-pulse-ring 1.8s ease-out infinite;
}
.install-tutorial-img-container .install-tutorial-highlight.round {
  border-radius: 999px;
}
.install-tutorial-arrow-svg {
  position: absolute;
  pointer-events: none;
  animation: install-tutorial-arrow-bob 1.4s ease-in-out infinite;
}
.install-tutorial-card-real {
  width: 100%;
  background: #fff;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  pointer-events: none;
  flex-shrink: 0;
  box-sizing: border-box;
}
.install-tutorial-card-real .install-tutorial-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #153028;
  margin: 0 0 6px;
  text-align: left;
}
.install-tutorial-card-real .install-tutorial-card-body {
  font-size: 13.5px;
  color: #6B8278;
  margin: 0;
  line-height: 1.55;
  text-align: left;
}
@media (prefers-reduced-motion: reduce) {
  .install-tutorial-arrow-svg { animation: none !important; }
  .install-tutorial-img-container .install-tutorial-highlight { animation: none !important; }
}

/* ═══ 신뢰 배지 토스트 (홈 빈 상태 전용) ═══ */
.es-badge-scrim{
  position: fixed; inset: 0; z-index: 480;
  background: rgba(20, 59, 55, .16);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .3s ease;
  pointer-events: none;
}
.es-badge-scrim.show{ opacity: 1; }

.es-badge-toast{
  position: fixed; z-index: 490;
  top: 50%; left: 50%;
  transform: translate(-50%, -46%);
  max-width: 290px;
  white-space: pre; text-align: center;
  background: #0f6e56; color: #fff;
  font-size: 13px; line-height: 1.6; font-family: inherit;
  padding: 13px 18px; border-radius: 16px;
  box-shadow: 0 8px 26px rgba(4, 52, 44, .28);
  opacity: 0; transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.es-badge-toast.show{ opacity: 1; transform: translate(-50%, -50%); }

@media (prefers-reduced-motion: reduce){
  .es-badge-scrim, .es-badge-toast{ transition: opacity .15s ease; }
  .es-badge-toast, .es-badge-toast.show{ transform: translate(-50%, -50%); }
}
