@font-face {
    font-family: "Noto Sans KR";
    src: url("/font/NotoSansKR-Regular.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Noto Sans KR";
    src: url("/font/NotoSansKR-Bold.ttf") format("truetype");
    font-weight: 700 900;
    font-display: swap;
}

:root {
    color-scheme: light;
    --ink: #1A1A1A;
    --muted: #66665f;
    --line: #d9dbd2;
    --paper: #ffffff;
    --wash: #F4F5F0;
    --brand: #0055FF;
    --brand-dark: #003bb5;
    --lime: #D4FF00;
    --pink: #FF0066;
    --orange: #FF5500;
    --danger: #b00045;
    --shadow: 0 18px 48px rgba(26, 26, 26, .12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--wash); }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: radial-gradient(circle at 12% 0, rgba(212, 255, 0, .22) 0, transparent 30rem), var(--wash);
    font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }

.system-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(23, 111, 90, .14);
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(18px);
}
.system-header__inner, .system-main, .system-nav__inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}
.system-header__inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.system-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; }
.brand-logo { display: block; width: 42px; height: 42px; object-fit: contain; flex: 0 0 auto; }
.system-brand__mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 14px;
    color: white;
    background: linear-gradient(145deg, var(--brand), #319578);
    box-shadow: 0 10px 24px rgba(23, 111, 90, .25);
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions a { text-decoration: none; }
.system-nav { border-bottom: 1px solid var(--line); background: var(--paper); overflow-x: auto; }
.system-nav__inner { display: flex; align-items: center; gap: 4px; min-width: max-content; padding: 8px 0; }
.system-nav a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 12px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}
.system-nav a[aria-current="page"], .system-nav a:hover { color: var(--brand-dark); background: #e8f3ed; }
.system-nav a[aria-current="page"], .system-nav a:hover { background: rgba(212, 255, 0, .38); }

.system-main { padding: 40px 0 80px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 6px; color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(28px, 5vw, 44px); line-height: 1.12; }
.page-copy { margin: 9px 0 0; color: var(--muted); line-height: 1.7; }

.button, button.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 13px;
    color: var(--ink);
    background: var(--paper);
    font-weight: 800;
    text-decoration: none;
}
.button.primary { color: white; border-color: var(--brand); background: var(--brand); }
.button.ghost { color: var(--brand-dark); background: #edf2ff; }
.button.danger { color: var(--danger); border-color: #e8c9c5; background: #fff7f6; }
.button.small { min-height: 38px; padding: 0 12px; font-size: 13px; }

.toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
}
.field { display: grid; gap: 7px; min-width: 0; }
.field label, .field-label { font-size: 13px; font-weight: 800; }
.field small, .hint { color: var(--muted); font-size: 12px; line-height: 1.5; }
.field input, .field select, .field textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #ccd8d1;
    border-radius: 12px;
    color: var(--ink);
    background: white;
}
.field textarea { min-height: 96px; resize: vertical; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.choice { display: flex; align-items: center; gap: 9px; min-height: 44px; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.system-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--paper);
    box-shadow: 0 12px 35px rgba(24, 50, 40, .05);
}
.system-card h2, .system-card h3 { margin: 4px 0 8px; }
.system-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.card-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 15px 0; }
.badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 9px; border-radius: 999px; color: var(--brand-dark); background: #e6f3ec; font-size: 12px; font-weight: 800; }
.badge.user { color: #596263; background: #edf0ef; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.discovery-launch { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 24px; padding: 20px; border: 2px solid var(--ink); border-radius: 18px; background: var(--lime); box-shadow: 5px 5px 0 var(--ink); }
.discovery-launch h2, .discovery-launch p { margin: 0; }
.discovery-launch p { color: #3e3e39; }
.discovery-launch .card-actions { margin: 0; }
.button.discovery-food { border-color: var(--ink); color: white; background: var(--pink); }
.button.discovery-activity { border-color: var(--ink); color: white; background: var(--orange); }

.master-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.master-layout.has-map { grid-template-columns: minmax(320px, .9fr) minmax(420px, 1.1fr); align-items: start; }
.master-list { display: grid; gap: 12px; }
.master-section { display: grid; gap: 12px; }
.master-section + .master-section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.master-section__header { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.master-section__header h2 { margin: 0 0 5px; font-size: 21px; }
.master-section__header p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.master-section__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: 8px; }
.master-search { width: min(320px, 100%); }
.master-search input { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #ccd8d1; border-radius: 12px; background: var(--paper); }
.account-choice { min-height: 38px; display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 800; }
.account-choice input { width: 18px; height: 18px; accent-color: var(--brand); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.master-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 17px 18px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--paper);
}
.master-row h3 { margin: 0 0 5px; font-size: 17px; }
.master-row p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.master-map {
    position: sticky;
    top: 142px;
    min-height: 560px;
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    background: #e5eee8;
    box-shadow: var(--shadow);
}
.empty-state { padding: 36px 20px; border: 1px dashed #bfd0c6; border-radius: 18px; color: var(--muted); text-align: center; background: rgba(255,255,255,.65); }

/* 여행 목록의 정렬·숨김과 종료 보관함을 한 화면에서 구분함 by JS */
.workspace-settings { display: flex; align-items: end; gap: 14px; margin: 0 0 28px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.workspace-settings .field { width: min(260px, 100%); }
.workspace-group { display: grid; gap: 14px; margin-top: 28px; }
.workspace-group + .workspace-group { margin-top: 46px; }
.workspace-group__heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.workspace-group__heading h2 { margin: 0; font-size: 25px; }
.workspace-group__heading > span { color: var(--muted); font-weight: 800; }
.trip-workspace-card { transition: opacity 140ms ease, transform 140ms ease; }
.trip-workspace-card.is-ended { border-color: #cfd2d0; color: #595d5b; background: #eef0ef; box-shadow: none; }
.trip-workspace-card.is-ended .eyebrow { color: #747a77; }
.trip-workspace-card.is-locally-hidden { opacity: .52; }

/* 본인 정산 계좌는 은행을 로고형 아이콘과 이름으로 빠르게 선택하도록 구성함 by JS */
.account-page { width: min(860px, calc(100% - 32px)); }
.account-card { display: grid; gap: 24px; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.account-card h2 { margin: 10px 0 2px; }
.account-card p { margin: 0; color: var(--muted); }
.account-form { display: grid; gap: 20px; }
.bank-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; border: 0; }
.bank-picker legend { grid-column: 1 / -1; margin-bottom: 4px; font-size: 14px; font-weight: 800; }
.bank-choice { position: relative; min-height: 56px; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 13px; background: white; cursor: pointer; }
.bank-choice:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(0, 85, 255, .14); }
.bank-choice input { position: absolute; opacity: 0; pointer-events: none; }
.bank-symbol { min-width: 36px; height: 36px; display: grid; place-items: center; padding: 0 5px; border-radius: 10px; color: white; background: var(--bank-color); font-size: 11px; font-weight: 900; }
.bank-choice > span:last-child { min-width: 0; font-size: 13px; font-weight: 800; }
.account-status { min-height: 22px; color: var(--danger) !important; font-weight: 800; }
.account-status.is-success { color: #087b54 !important; }

.master-dialog { width: min(680px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 22px; box-shadow: var(--shadow); }
.master-dialog::backdrop { background: rgba(12, 27, 22, .5); backdrop-filter: blur(3px); }
.master-form { display: grid; max-height: calc(100dvh - 24px); }
.dialog-header, .dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; background: white; }
.dialog-header { border-bottom: 1px solid var(--line); }
.dialog-header h2 { margin: 0; }
.dialog-fields { display: grid; gap: 14px; padding: 20px; overflow-y: auto; background: #fbfdfb; }
.dialog-actions { border-top: 1px solid var(--line); }
.dialog-status { padding: 10px 20px; color: var(--danger); background: #fff2f0; font-weight: 700; }
.place-results { display: grid; gap: 8px; }
.place-result { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 12px; text-align: left; background: white; }
.place-result span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }

.login-page { display: grid; place-items: center; padding: 24px; }
.login-shell { width: min(980px, 100%); display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; border: 1px solid rgba(255,255,255,.7); border-radius: 28px; background: white; box-shadow: var(--shadow); }
.login-story { min-height: 610px; display: flex; flex-direction: column; justify-content: space-between; padding: 46px; color: white; background: linear-gradient(145deg, rgba(10,64,50,.92), rgba(20,116,91,.8)), url('/images/travel-login-bg.svg') center/cover; }
.login-story h1 { max-width: 440px; font-size: clamp(38px, 6vw, 68px); }
.login-story p { max-width: 450px; color: rgba(255,255,255,.8); line-height: 1.75; }
.login-panel { display: grid; align-content: center; gap: 22px; padding: 46px; }
.login-panel h2 { margin: 0; font-size: 30px; }
.login-form { display: grid; gap: 16px; }
.login-error { padding: 12px 14px; border-radius: 12px; color: #8b2923; background: #fff0ee; font-weight: 700; }

@media (max-width: 860px) {
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .master-layout.has-map { grid-template-columns: 1fr; }
    .master-map { position: relative; top: auto; min-height: 420px; order: -1; }
    .login-shell { grid-template-columns: 1fr; }
    .login-story { min-height: 290px; padding: 32px; }
    .login-story h1 { font-size: 42px; }
}

@media (max-width: 560px) {
    .system-header__inner, .system-main, .system-nav__inner { width: min(100% - 22px, 1180px); }
    .system-main { padding-top: 26px; }
    .page-heading, .toolbar { align-items: stretch; flex-direction: column; }
    .card-grid, .field-row { grid-template-columns: 1fr; }
    .master-row { grid-template-columns: 1fr; }
    .master-row .button { width: 100%; }
    .master-section__header { align-items: stretch; flex-direction: column; }
    .master-section__header .button { width: 100%; }
    .master-section__tools { display: grid; grid-template-columns: 1fr; align-items: stretch; }
    .master-search { width: 100%; }
    .master-map { min-height: 350px; }
    .login-page { padding: 0; align-items: stretch; }
    .login-shell { min-height: 100dvh; border: 0; border-radius: 0; }
    .login-story { min-height: 230px; padding: 28px 24px; }
    .login-story h1 { font-size: 36px; }
    .login-panel { padding: 30px 24px 44px; }
    .workspace-settings { align-items: stretch; flex-direction: column; }
    .bank-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 여행을 관리 버튼 모음이 아닌 빠른 진입 목록으로 제공함 by JS */
.trip-launcher { width: min(860px, calc(100% - 28px)); padding-top: 26px; }
.launcher-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.launcher-heading h1 { font-size: clamp(28px, 5vw, 38px); }
.launcher-heading p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.launcher-new { flex: 0 0 auto; }
.launcher-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.launcher-shortcuts a { min-height: 64px; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.84); text-decoration: none; }
.launcher-shortcuts a:hover { border-color: #b9c4dc; background: white; }
.launcher-shortcuts svg { width: 25px; height: 25px; flex: 0 0 auto; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.launcher-shortcuts span { min-width: 0; display: grid; gap: 2px; }
.launcher-shortcuts strong { font-size: 14px; }
.launcher-shortcuts small { color: var(--muted); font-size: 11px; }
.launcher-toolbar { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.launcher-toolbar > span { color: var(--muted); font-size: 13px; font-weight: 700; }
.launcher-filter-button { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; padding: 0 8px; border: 0; border-radius: 10px; color: var(--ink); background: transparent; font-size: 13px; font-weight: 800; }
.launcher-filter-button:hover { background: rgba(0,85,255,.07); }
.launcher-filter-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.launcher-filter-button i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.workspace-group { margin-top: 22px; }
.workspace-group__heading { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.workspace-group__heading h2 { margin: 0; font-size: 19px; }
.workspace-group__heading > span { min-width: 28px; min-height: 28px; display: grid; place-items: center; border-radius: 999px; color: var(--muted); background: #e9ebe7; font-size: 12px; font-weight: 800; }
.trip-launcher-list { display: grid; gap: 10px; }
.trip-launcher-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 14px 14px 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 8px 24px rgba(26,26,26,.045); transition: opacity 140ms ease, transform 140ms ease; }
.trip-launcher-card.is-ended { border-color: #d8d9d5; background: #eeefec; box-shadow: none; }
.trip-launcher-card.is-hidden-trip { border-style: dashed; opacity: .7; }
.trip-launcher-card.is-removing { opacity: 0; transform: translateY(-5px); }
.trip-launcher-card__main { min-width: 0; display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 4px 14px; color: inherit; text-decoration: none; }
.trip-launcher-card__date { grid-row: 1 / span 2; color: var(--brand-dark); font-size: 13px; font-weight: 800; }
.trip-launcher-card__copy { min-width: 0; display: grid; gap: 3px; }
.trip-launcher-card__copy strong { font-size: 17px; line-height: 1.35; }
.trip-launcher-card__copy small { max-width: 100%; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.trip-launcher-card__meta { display: flex; flex-wrap: wrap; gap: 5px; }
.trip-launcher-card__meta b { min-height: 24px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px; color: #59615e; background: #edf0ee; font-size: 10px; font-weight: 800; }
.trip-launcher-card__actions { display: flex; align-items: center; gap: 4px; }
.trip-launcher-card__actions > a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 11px; color: var(--brand); font-size: 13px; font-weight: 800; text-decoration: none; }
.trip-card-menu { position: relative; }
.trip-card-menu > summary { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px; color: var(--muted); font-weight: 900; list-style: none; cursor: pointer; }
.trip-card-menu > summary::-webkit-details-marker { display: none; }
.trip-card-menu[open] > summary { color: var(--brand); background: #edf2ff; }
.trip-card-menu > div { position: absolute; z-index: 30; top: calc(100% + 5px); right: 0; width: 180px; display: grid; gap: 3px; padding: 7px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.trip-card-menu :is(a, button) { width: 100%; min-height: 44px; display: flex; align-items: center; padding: 0 10px; border: 0; border-radius: 9px; color: var(--ink); background: transparent; font-size: 13px; font-weight: 700; text-align: left; text-decoration: none; }
.trip-card-menu :is(a, button):hover { background: var(--wash); }
.trip-card-menu button.is-danger { color: var(--danger); }
.launcher-empty { margin-top: 30px; }
.launcher-filter-dialog { width: min(440px, calc(100% - 24px)); padding: 0; border: 0; border-radius: 22px; background: var(--paper); box-shadow: 0 28px 80px rgba(26,26,26,.25); }
.launcher-filter-dialog::backdrop { background: rgba(20,24,22,.42); backdrop-filter: blur(3px); }
.launcher-filter-dialog form { display: grid; gap: 18px; padding: 22px; }
.launcher-filter-dialog header { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.launcher-filter-dialog h2 { margin: 0; font-size: 22px; }
.launcher-filter-dialog header button { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--wash); font-size: 23px; }
.launcher-filter-dialog fieldset { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; }
.launcher-filter-dialog legend { margin-bottom: 7px; font-size: 13px; font-weight: 800; }
.launcher-filter-dialog label { min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.launcher-filter-dialog label:has(input:checked) { border-color: #9bb8ff; background: #f1f5ff; }
.launcher-filter-dialog input { width: 20px; height: 20px; accent-color: var(--brand); }
.launcher-status { min-height: 20px; margin: 0; color: var(--danger); font-size: 13px; font-weight: 700; }
.launcher-dialog-actions { display: flex; justify-content: end; gap: 8px; }

@media (max-width: 620px) {
    .trip-launcher { width: calc(100% - 24px); padding-top: 20px; }
    .launcher-heading { align-items: center; }
    .launcher-heading p:last-child { display: none; }
    .launcher-shortcuts { gap: 8px; }
    .launcher-shortcuts a { min-height: 58px; padding: 8px 10px; }
    .launcher-shortcuts svg { width: 22px; height: 22px; }
    .trip-launcher-card { grid-template-columns: minmax(0, 1fr) auto; padding: 13px 10px 13px 13px; }
    .trip-launcher-card__main { grid-template-columns: minmax(0, 1fr); gap: 3px; }
    .trip-launcher-card__date { grid-row: auto; font-size: 12px; }
    .trip-launcher-card__actions > a { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); }
    .trip-launcher-card__copy strong { font-size: 16px; }
    .trip-card-menu > div { position: fixed; z-index: 80; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); top: auto; width: min(320px, calc(100vw - 24px)); padding: 10px; border-radius: 18px; }
    .trip-card-menu :is(a, button) { min-height: 48px; }
    .launcher-filter-dialog { width: 100%; max-width: none; margin: auto 0 0; border-radius: 22px 22px 0 0; }
    .launcher-filter-dialog form { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}

@media (max-width: 380px) {
    .launcher-shortcuts small { display: none; }
    .launcher-shortcuts strong { font-size: 13px; }
    .launcher-new { min-height: 42px; padding-inline: 12px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    .trip-launcher-card { transition: none; }
}

/* 다중 정산 계좌를 입력 Form이 아닌 개인 지갑 목록으로 제공함 by JS */
.wallet-page { width: min(760px, calc(100% - 28px)); padding-top: 28px; }
.wallet-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.wallet-heading h1 { font-size: clamp(28px, 5vw, 38px); }
.wallet-heading p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.wallet-empty { min-height: 280px; display: grid; place-items: center; align-content: center; gap: 10px; padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); text-align: center; }
.wallet-empty__icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; color: var(--brand); background: #edf2ff; }
.wallet-empty__icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wallet-empty h2 { margin: 5px 0 0; font-size: 20px; }
.wallet-empty p { max-width: 420px; margin: 0 0 9px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.wallet-group + .wallet-group { margin-top: 24px; }
.wallet-group > h2 { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.wallet-list { display: grid; gap: 9px; }
.wallet-account-row { min-height: 86px; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 12px; padding: 11px 12px 11px 14px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); box-shadow: 0 7px 24px rgba(26,26,26,.04); }
.wallet-account-row.is-primary { border-color: #aebff0; box-shadow: inset 3px 0 0 var(--brand), 0 7px 24px rgba(26,26,26,.04); }
.wallet-account-row__logo { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #e3e4df; border-radius: 12px; background: #fff; overflow: hidden; }
.wallet-account-row__logo img { width: 100%; height: 100%; padding: 5px; object-fit: contain; }
.wallet-account-row__logo b { color: var(--muted); }
.wallet-account-row__copy { min-width: 0; display: grid; gap: 2px; }
.wallet-account-row__copy > span { display: flex; align-items: center; gap: 7px; }
.wallet-account-row__copy strong { font-size: 15px; }
.wallet-account-row__copy b { min-height: 22px; display: inline-flex; align-items: center; padding: 0 7px; border-radius: 999px; color: var(--brand-dark); background: #edf2ff; font-size: 10px; }
.wallet-account-row__copy small { color: var(--muted); font-size: 12px; }
.wallet-account-row__copy em { color: #39403d; font-size: 13px; font-style: normal; font-variant-numeric: tabular-nums; }
.wallet-account-menu { position: relative; }
.wallet-account-menu > summary { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px; color: var(--muted); font-weight: 900; list-style: none; cursor: pointer; }
.wallet-account-menu > summary::-webkit-details-marker { display: none; }
.wallet-account-menu[open] > summary { color: var(--brand); background: #edf2ff; }
.wallet-account-menu > div { position: absolute; z-index: 30; top: calc(100% + 5px); right: 0; width: 190px; display: grid; gap: 3px; padding: 7px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.wallet-account-menu :is(button, span) { width: 100%; min-height: 44px; display: flex; align-items: center; padding: 0 10px; border: 0; border-radius: 9px; color: var(--ink); background: transparent; font-size: 13px; font-weight: 700; text-align: left; }
.wallet-account-menu button:hover { background: var(--wash); }
.wallet-account-menu span { color: var(--muted); }
.wallet-account-menu button.is-danger { color: var(--danger); }
.wallet-trip-overrides { display: grid; gap: 14px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.wallet-trip-overrides > header { display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.wallet-trip-overrides h2 { margin: 0; font-size: 21px; }
.wallet-trip-overrides header > p { margin: 0; color: var(--muted); font-size: 12px; }
.wallet-trip-list { display: grid; gap: 8px; }
.wallet-trip-list label { min-height: 68px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, .8fr); align-items: center; gap: 14px; padding: 10px 12px 10px 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.wallet-trip-list label > span { min-width: 0; display: grid; gap: 3px; }
.wallet-trip-list strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.wallet-trip-list small { color: var(--muted); font-size: 11px; }
.wallet-trip-list select { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #ccd1cb; border-radius: 11px; background: #fff; font-size: 13px; }
.wallet-dialog, .bank-sheet { width: min(500px, calc(100% - 24px)); max-height: min(760px, calc(100dvh - 28px)); padding: 0; border: 0; border-radius: 22px; background: var(--paper); box-shadow: 0 28px 80px rgba(26,26,26,.25); }
.wallet-dialog::backdrop, .bank-sheet::backdrop { background: rgba(20,24,22,.42); backdrop-filter: blur(3px); }
.wallet-dialog form, .bank-sheet__inner { display: grid; gap: 18px; padding: 22px; }
.wallet-dialog header, .bank-sheet header { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.wallet-dialog h2, .bank-sheet h2 { margin: 0; font-size: 22px; }
.wallet-dialog header button, .bank-sheet header button { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--wash); font-size: 23px; }
.wallet-bank-field { width: 100%; min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 12px; border: 1px solid #ccd1cb; border-radius: 12px; color: var(--ink); background: #fff; text-align: left; }
.wallet-bank-field > span { min-width: 0; display: flex; align-items: center; gap: 9px; font-weight: 700; }
.wallet-bank-field img { width: 34px; height: 34px; padding: 4px; border: 1px solid #e4e5df; border-radius: 9px; object-fit: contain; }
.wallet-bank-field > b { color: var(--muted); font-size: 23px; }
.wallet-primary-choice { min-height: 60px; display: flex; align-items: center; gap: 11px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; }
.wallet-primary-choice input { width: 20px; height: 20px; accent-color: var(--brand); }
.wallet-primary-choice span { display: grid; gap: 2px; }
.wallet-primary-choice strong { font-size: 13px; }
.wallet-primary-choice small { color: var(--muted); font-size: 11px; }
.wallet-dialog-actions { display: flex; justify-content: end; gap: 8px; }
.wallet-delete-dialog form > p { margin: 0; color: var(--muted); line-height: 1.6; }
.bank-sheet { width: min(580px, calc(100% - 24px)); }
.bank-sheet__inner { max-height: inherit; overflow-y: auto; overscroll-behavior: contain; }
.bank-search input { width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid #ccd1cb; border-radius: 13px; font-size: 16px; }
.bank-sheet section { display: grid; gap: 8px; }
.bank-sheet section h3 { margin: 0; color: var(--muted); font-size: 12px; }
.bank-quick-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.bank-quick-list button { min-height: 62px; display: grid; place-items: center; align-content: center; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.bank-quick-list img { width: 34px; height: 26px; object-fit: contain; }
.bank-quick-list span { overflow: hidden; max-width: 100%; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.bank-all-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.bank-all-list button { min-height: 50px; display: flex; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid transparent; border-radius: 11px; background: #f6f7f4; text-align: left; }
.bank-all-list button:hover { border-color: #aebff0; background: #f0f4ff; }
.bank-all-list img { width: 34px; height: 30px; padding: 3px; object-fit: contain; }
.bank-all-list span { min-width: 0; overflow: hidden; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.bank-no-result { margin: 0; padding: 18px; color: var(--muted); text-align: center; }
.wallet-toast { position: fixed; z-index: 900; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); max-width: calc(100vw - 28px); margin: 0; padding: 11px 15px; border-radius: 999px; color: white; background: #1a1a1a; box-shadow: 0 12px 35px rgba(26,26,26,.24); font-size: 13px; font-weight: 700; transform: translateX(-50%); }

@media (max-width: 620px) {
    .wallet-page { width: calc(100% - 24px); padding-top: 22px; }
    .wallet-heading { align-items: center; }
    .wallet-heading p:last-child { display: none; }
    .wallet-account-menu > div { position: fixed; z-index: 80; top: auto; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: min(320px, calc(100vw - 24px)); padding: 10px; border-radius: 18px; }
    .wallet-account-menu :is(button, span) { min-height: 48px; }
    .wallet-trip-overrides > header { align-items: start; flex-direction: column; }
    .wallet-trip-list label { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .wallet-dialog, .bank-sheet { width: 100%; max-width: none; max-height: calc(100dvh - 18px); margin: auto 0 0; border-radius: 22px 22px 0 0; }
    .wallet-dialog form, .bank-sheet__inner { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}

@media (max-width: 390px) {
    .wallet-heading .button { min-height: 48px; padding-inline: 12px; font-size: 13px; }
    .wallet-account-row { grid-template-columns: 40px minmax(0, 1fr) 44px; gap: 9px; padding-left: 11px; }
    .wallet-account-row__logo { width: 38px; height: 38px; }
    .bank-quick-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 가보자고 로그인은 브랜드 색과 계정 진입 행동만 남겨 간결하게 구성함 by JS */
.login-page {
    min-height: 100svh;
    background: var(--wash);
}
.login-shell {
    width: min(920px, 100%);
    border: 2px solid var(--ink);
    border-radius: 24px;
    background: #f7f8f7;
    box-shadow: 8px 8px 0 var(--ink);
}
.login-story {
    position: relative;
    min-height: 590px;
    isolation: isolate;
    overflow: hidden;
    color: var(--ink);
    background: var(--lime);
}
.login-story::before {
    position: absolute;
    z-index: -1;
    right: -12%;
    bottom: -26%;
    width: 72%;
    height: 82%;
    border-left: 3px solid var(--pink);
    border-radius: 50% 0 0;
    content: "";
    transform: rotate(-14deg);
}
.login-story::after {
    position: absolute;
    z-index: -1;
    right: 11%;
    bottom: -18%;
    width: 2px;
    height: 66%;
    background: repeating-linear-gradient(to bottom, var(--brand) 0 18px, transparent 18px 34px);
    content: "";
    transform: rotate(17deg);
}
.night-brand { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; letter-spacing: .04em; }
.night-brand .brand-logo { width: 104px; height: 104px; }
.night-copy { display: grid; gap: 12px; }
.night-copy .eyebrow { color: var(--brand); }
.night-copy h1 { margin: 0; max-width: 430px; font-size: clamp(40px, 6vw, 64px); line-height: 1.12; letter-spacing: -.04em; }
.night-copy p { margin: 0; color: #3c3c38; }
.night-caption { margin: 0; color: #4c4c47 !important; font-size: 11px; letter-spacing: .12em; }
.login-panel { gap: 24px; background: #f7f8f7; }
.login-panel h2 { font-size: 34px; letter-spacing: -.03em; }
.login-form .field input { min-height: 50px; border-color: #cbd4cf; border-radius: 11px; font-size: 16px; transition: border-color 150ms ease, box-shadow 150ms ease; }
.login-form .field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 85, 255, .16); }
.login-form .button.primary { min-height: 52px; border-radius: 11px; background: var(--brand); }

/* 키보드가 열린 모바일에서도 폼이 잘리거나 고정되지 않도록 일반 문서 흐름을 유지함 by JS */
@media (max-width: 860px) {
    .login-story { min-height: 260px; padding: 30px; }
    .night-copy h1 { font-size: 42px; }
}

@media (max-width: 560px) {
    .login-page { min-height: 100svh; }
    .login-shell { min-height: 100svh; }
    .login-story { min-height: 225px; padding: 24px; }
    .night-copy { gap: 6px; }
    .night-copy h1 { font-size: 34px; }
    .night-caption { display: none; }
    .login-panel { align-content: start; padding: 28px 22px max(38px, env(safe-area-inset-bottom)); }
    .discovery-launch { align-items: stretch; flex-direction: column; }
    .discovery-launch .card-actions, .discovery-launch .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .login-form .field input { transition: none; }
    .trip-workspace-card { transition: none; }
}

/* 만료·중지·폐기 링크에서 여행 정보 없이 다음 행동만 안내함 by JS */
.share-status-page { display: grid; min-height: 100svh; place-items: center; padding: 24px; background: #0b1117; }
.share-status-card { width: min(500px, 100%); padding: 36px; border-radius: 22px; background: #f7f8f7; box-shadow: 0 24px 70px rgba(0, 0, 0, .35); }
.share-status-card h1 { margin-bottom: 12px; }
.share-status-card > p:not(.eyebrow) { margin: 0 0 26px; color: var(--muted); line-height: 1.7; }
.share-status-icon { display: grid; width: 48px; height: 48px; margin-bottom: 24px; place-items: center; border-radius: 14px; color: #9fdac7; background: #17242d; font-size: 26px; }
.share-status-card .button { width: 100%; min-height: 50px; }

@media (max-width: 560px) {
    .share-status-page { padding: 0; align-items: stretch; }
    .share-status-card { min-height: 100svh; padding: 34px 22px; border-radius: 0; }
}

/* 실제 은행 로고를 원본 비율로 표시하면서 텍스트 이름을 항상 함께 유지함 by JS */
.bank-symbol {
    overflow: hidden;
    border: 1px solid #e2e7e4;
    background: #fff;
}
.bank-symbol img { width: 100%; height: 100%; padding: 5px; object-fit: contain; }
.bank-choice--empty .bank-symbol { color: var(--muted); background: var(--paper); font-size: 18px; }
.bank-picker--compact { max-height: 260px; padding: 2px 4px 4px 2px; overflow-y: auto; overscroll-behavior: contain; }
.bank-picker--compact legend { position: sticky; z-index: 1; top: 0; width: 100%; padding-block: 4px 8px; background: var(--paper); }
.bank-picker--compact .bank-choice { min-height: 52px; }

@media (max-width: 560px) {
    .bank-choice { min-height: 54px; padding: 7px 8px; gap: 8px; }
    .bank-symbol { min-width: 34px; width: 34px; height: 34px; }
    .bank-choice > span:last-child { font-size: 12px; line-height: 1.3; }
    .bank-picker--compact { max-height: min(43svh, 300px); }
}
