:root {
  color-scheme: light;
  --bg: #f6f6f4; --surface-1: #fcfcfb; --surface-2: #efeee9; --line: #e2e1dc;
  --text-primary: #0b0b0b; --text-secondary: #52514e; --text-muted: #7a7974;
  --accent: #2a78d6; --accent-ink: #fff; --danger: #c93a39; --warn: #a86a00;
  --series-1: #2a78d6; --series-2: #eb6834;
  --seq-light: #b7d3f6; --seq-strong: #1c5cab;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #111110; --surface-1: #1a1a19; --surface-2: #262624; --line: #33332f;
    --text-primary: #f0efec; --text-secondary: #c3c2b7; --text-muted: #8f8e86;
    --accent: #3987e5; --danger: #e66767; --warn: #e0a43a;
    --series-1: #3987e5; --series-2: #d95926;
    --seq-light: #256abf; --seq-strong: #86b6ef;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text-primary); font: 15px/1.5 system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; -webkit-tap-highlight-color: transparent; }
#app { max-width: 640px; margin: 0 auto; min-height: 100vh; }
a { color: var(--accent); text-decoration: none; }
h1 { font-size: 24px; margin: 8px 0 4px; }
h3 { font-size: 15px; margin: 0 0 10px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
h4 { font-size: 13px; margin: 10px 0 4px; color: var(--text-secondary); }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.muted { color: var(--text-muted); } .small { font-size: 12.5px; } .center { text-align: center; } .pad { padding: 0 14px; }
.grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .row > label { flex: 1; min-width: 120px; }
.between { justify-content: space-between; }
.warn { color: var(--warn); }
.mono { font-family: ui-monospace, monospace; font-size: 12px; }

/* 버튼·입력 */
.btn { appearance: none; border: 1px solid var(--line); background: var(--surface-1); color: var(--text-primary); border-radius: 10px; padding: 9px 14px; font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.danger { color: var(--danger); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn.big { padding: 13px 22px; font-size: 17px; }
.btn:disabled { opacity: .6; }
.x { background: none; border: 0; color: var(--text-muted); font-size: 18px; cursor: pointer; padding: 4px 8px; }
.x.small { font-size: 13px; }
input, select, textarea { font: inherit; color: inherit; background: var(--surface-1); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-secondary); }
.form label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--text-primary); font-size: 14px; }
.form label.inline { display: inline-flex; margin-right: 12px; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--accent); }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
legend { font-size: 13px; color: var(--text-secondary); padding: 0 4px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg label, .emojis label { flex: none !important; min-width: 0 !important; }
.seg input, .emojis input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--text-primary); background: var(--surface-1); cursor: pointer; }
.seg input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.emojis { display: flex; gap: 4px; flex-wrap: wrap; }
.emojis span { display: inline-block; font-size: 22px; padding: 4px 6px; border-radius: 10px; border: 2px solid transparent; cursor: pointer; }
.emojis input:checked + span { border-color: var(--accent); background: var(--surface-2); }
.form:not(.is-hotel) .hotel-only, .form.is-hotel .not-hotel { display: none; }
.picks { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.pick { text-align: left; background: var(--surface-2); border: 0; border-radius: 8px; padding: 8px 10px; font: inherit; color: inherit; cursor: pointer; }

/* 큰 틀 */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 10px 12px; padding-top: max(10px, env(safe-area-inset-top)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top b { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .sp { flex: 1; }
.back { font-size: 28px; line-height: 1; padding: 0 6px; color: var(--text-primary); }
.card { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 12px; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-secondary); }
.chip { display: inline-block; font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid transparent; color: var(--text-primary); font: inherit; font-size: 13px; cursor: pointer; }
.chip.on { background: var(--accent); color: var(--accent-ink); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.empty { text-align: center; padding: 40px 20px; }
.center-page { padding: 48px 20px; text-align: center; }
.center-page .form { text-align: left; max-width: 380px; margin: 20px auto; }
.logo { font-size: 56px; }
#view { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.fab { position: fixed; right: max(20px, calc(50% - 300px)); bottom: calc(24px + env(safe-area-inset-bottom)); width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: 32px; box-shadow: 0 6px 18px rgb(0 0 0 / .22); cursor: pointer; }
.list { padding-bottom: 100px; }
.trip-card { display: flex; gap: 12px; align-items: center; color: inherit; }
.trip-card .emoji { font-size: 34px; }
.trip-card b { font-size: 16px; }

.tabs { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 640px; display: flex; background: var(--surface-1); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); z-index: 6; }
.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 6px 0 7px; font-size: 11px; color: var(--text-muted); position: relative; }
.tabs a span { font-size: 20px; line-height: 1.2; filter: grayscale(1); opacity: .7; }
.tabs a.on { color: var(--accent); font-weight: 700; }
.tabs a.on span { filter: none; opacity: 1; }
.tabs .dot { position: absolute; top: 3px; right: calc(50% - 22px); background: var(--danger); color: #fff; font-style: normal; font-size: 10px; min-width: 16px; height: 16px; border-radius: 8px; padding: 0 4px; line-height: 16px; }

/* 시트(아래에서 올라오는 창) */
.sheet-wrap { position: fixed; inset: 0; background: rgb(0 0 0 / .35); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--bg); width: 100%; max-width: 640px; max-height: 92vh; border-radius: 18px 18px 0 0; display: flex; flex-direction: column; animation: up .18s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: .5; } }
.sheet-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 6px 18px; }
.sheet-b { overflow: auto; padding: 4px 18px calc(24px + env(safe-area-inset-bottom)); }
.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: #222; color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 30; max-width: 90vw; font-size: 14px; box-shadow: 0 4px 14px rgb(0 0 0 / .25); }
.thumb { max-width: 100%; max-height: 220px; border-radius: 10px; display: block; margin: 0 auto 10px; }

/* 홈 */
.clocks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.clock { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.clock .time { font-size: 30px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.clock .big-w { font-size: 18px; font-weight: 600; margin-top: 4px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.sw.s1 { background: var(--series-1); } .sw.s2 { background: var(--series-2); }
.wx { width: 100%; border-collapse: collapse; font-size: 14px; }
.wx th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--text-secondary); padding: 4px 4px 6px; }
.wx td { padding: 6px 4px; border-top: 1px solid var(--line); }
.fx-line { font-size: 17px; margin: 0 0 8px; }
.conv label { display: flex; flex-direction: column; font-size: 12.5px; color: var(--text-secondary); gap: 2px; }
.next { display: block; padding: 8px 0; color: inherit; border-top: 1px solid var(--line); }
.next:first-of-type { border-top: 0; }
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tool { display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--surface-2); border: 0; border-radius: 12px; padding: 12px 4px; font: inherit; font-size: 12px; color: inherit; cursor: pointer; }
.tool span { font-size: 24px; }
.tool:disabled { opacity: .6; }

/* 차트 */
.viz-root { position: relative; }
.viz { width: 100%; height: auto; display: block; touch-action: pan-y; }
.viz .grid { stroke: var(--line); stroke-width: 1; }
.viz .grid.v { stroke-dasharray: 2 3; }
.viz .tick { fill: var(--text-muted); font-size: 10px; }
.viz .tick.day { fill: var(--text-secondary); font-weight: 600; }
.viz .rowname { font-size: 9.5px; font-weight: 700; fill: var(--text-secondary); }
.viz .s1f { fill: var(--series-1); } .viz .s2f { fill: var(--series-2); }
.viz .midnight { stroke: var(--text-muted); stroke-width: 1; }
.viz .midnight.minor { stroke: var(--line); }
.viz .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.viz .line.s1 { stroke: var(--series-1); } .viz .line.s2 { stroke: var(--series-2); }
.viz .dot { stroke: var(--surface-1); stroke-width: 2; }
.viz .dot.s1 { fill: var(--series-1); } .viz .dot.s2 { fill: var(--series-2); }
.viz .endlab { font-size: 11px; font-weight: 700; fill: var(--text-primary); }
.viz .now { stroke: var(--text-primary); stroke-width: 1; stroke-dasharray: 3 3; }
.viz .cross { stroke: var(--text-secondary); stroke-width: 1; }
.viz .wico { font-size: 12px; }
.viz .hit { fill: transparent; cursor: crosshair; }
.viz .bar { fill: var(--seq-light); } .viz .bar.hot { fill: var(--seq-strong); }
.viz-legend { display: flex; gap: 14px; font-size: 12.5px; margin-bottom: 2px; flex-wrap: wrap; }
.viz-tip { position: absolute; pointer-events: none; background: var(--surface-1); border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; font-size: 12px; box-shadow: 0 4px 12px rgb(0 0 0 / .14); white-space: nowrap; z-index: 2; }
.hbars { display: flex; flex-direction: column; gap: 8px; }
.hb { display: grid; grid-template-columns: 92px 1fr auto; gap: 8px; align-items: center; font-size: 13px; }
.hb-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-t { height: 10px; }
.hb-b { display: block; height: 10px; background: var(--series-1); border-radius: 0 4px 4px 0; }
.hb-v { font-variant-numeric: tabular-nums; color: var(--text-secondary); font-size: 12.5px; }

/* 체크리스트 */
.progress { height: 8px; background: var(--surface-2); border-radius: 4px; margin-top: 6px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--series-1); border-radius: 4px; }
.ck { display: flex; align-items: center; gap: 4px; padding: 6px 0; border-top: 1px solid var(--line); }
.ck:first-of-type { border-top: 0; }
.ck label { flex: 1; display: flex; gap: 10px; align-items: center; cursor: pointer; min-width: 0; }
.ck input { width: 20px; height: 20px; flex: none; }
.ck.done label span { color: var(--text-muted); text-decoration: line-through; }
.who { flex: none; font: inherit; font-size: 12px; background: var(--surface-2); border: 0; border-radius: 999px; padding: 3px 9px; color: var(--text-secondary); cursor: pointer; }
.add-ck { flex-direction: row; flex-wrap: nowrap; }
.add-ck select { width: auto; flex: none; }

/* 항공 */
.flight .route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin: 10px 0; text-align: center; }
.flight .route > div { display: flex; flex-direction: column; }
.flight .ap { font-size: 22px; letter-spacing: 1px; }
.flight .t { font-size: 20px; font-variant-numeric: tabular-nums; }
.flight .plane { color: var(--text-muted); letter-spacing: -1px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 8px 0; }
.facts div { background: var(--surface-2); border-radius: 10px; padding: 6px 9px; }
.facts dt { font-size: 11px; color: var(--text-muted); } .facts dd { margin: 0; font-weight: 700; }
.icn { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 4px; }

/* 일정 */
.day-h { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.day-h b { flex: 1; }
.day.today { border-color: var(--accent); }
.stay { background: var(--surface-2); border-radius: 10px; padding: 6px 10px; margin-bottom: 6px; font-size: 14px; cursor: pointer; }
.pl { display: flex; gap: 8px; align-items: flex-start; padding: 7px 0; border-top: 1px solid var(--line); cursor: pointer; }
.pl-t { width: 44px; flex: none; font-variant-numeric: tabular-nums; color: var(--text-secondary); font-size: 13px; padding-top: 2px; }
.pl-i { font-size: 18px; flex: none; }

/* 대화 */
.tab-chat { display: flex; flex-direction: column; height: calc(100vh - 56px); height: calc(100dvh - 56px); padding-bottom: 0 !important; }
.msgs { flex: 1; overflow: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 82%; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.who-n { font-size: 12px; color: var(--text-secondary); margin: 0 0 2px 4px; }
.bubble { background: var(--surface-1); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 8px 12px; word-break: break-word; }
.msg.me .bubble { background: var(--accent); border-color: var(--accent); color: #fff; border-radius: 16px 16px 4px 16px; }
.msg.me .bubble a { color: #fff; }
.when { font-size: 10.5px; color: var(--text-muted); margin: 1px 4px 0; }
.msg-day, .msg-sys { align-self: center; font-size: 12px; color: var(--text-muted); background: var(--surface-2); padding: 2px 10px; border-radius: 999px; margin: 6px 0; }
.loc-msg { display: flex; flex-direction: column; color: inherit; }
.map { width: 240px; max-width: 100%; height: 150px; border: 0; border-radius: 10px; margin-top: 6px; display: block; }
.photo { max-width: 220px; max-height: 260px; border-radius: 10px; display: block; }
.say { display: flex; gap: 6px; padding: 8px 10px; padding-bottom: calc(68px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface-1); }
.say input { flex: 1; }
.ico { width: 40px; flex: none; border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; font-size: 20px; cursor: pointer; color: inherit; }
.say-more { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(126px + env(safe-area-inset-bottom)); width: min(620px, 94vw); background: var(--surface-1); border: 1px solid var(--line); border-radius: 14px; padding: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; box-shadow: 0 6px 18px rgb(0 0 0 / .15); z-index: 7; }
.say-more[hidden] { display: none; }
.say-more button { font: inherit; padding: 12px 8px; border: 0; border-radius: 10px; background: var(--surface-2); color: inherit; cursor: pointer; }
.locs { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px 0; }
.loc-chip { flex: none; background: var(--surface-1); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13px; color: inherit; }

/* 정산 */
.summary .big-n { font-size: 26px; }
.move { display: flex; gap: 6px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.move:first-of-type { border-top: 0; }
.move.mine { font-size: 16px; }
.ex { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); cursor: pointer; }
.ex:first-of-type { border-top: 0; }
.amt { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.items { list-style: none; padding: 0; margin: 6px 0 0; font-size: 13px; }
.items li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-top: 1px solid var(--line); }

/* 도구 결과 */
.menu-list { list-style: none; padding: 0; margin: 0; }
.menu-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.menu-list p { margin: 2px 0 0; }
.tips { background: var(--surface-2); border-radius: 10px; padding: 4px 12px; font-size: 13.5px; }
.tr-out { margin: 12px 0 0; }
.tr-big { font-size: 20px; font-weight: 600; margin: 4px 0; white-space: pre-wrap; }
.invite-code { font-size: 34px; font-weight: 800; letter-spacing: 6px; text-align: center; margin: 10px 0; font-family: ui-monospace, monospace; }

/* ───── 다이어리 ───── */
:root { --paper: #fffdf7; --paper-line: #efe9da; --ink-soft: #6b5f4b; }
@media (prefers-color-scheme: dark) { :root { --paper: #1d1c19; --paper-line: #2c2a25; --ink-soft: #b9ad95; } }
.top-gap { margin-top: 12px; }
.busy-bar { margin: 12px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); font-size: 14px; animation: pulse 1.6s ease-in-out infinite; }
.busy-bar[hidden] { display: none; }
@keyframes pulse { 50% { opacity: .55; } }
.ai-note { background: var(--paper); }
.ai-note summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.ai-box { background: var(--surface-2); border-color: transparent; display: flex; flex-direction: column; gap: 10px; }
.page { margin: 14px 12px; padding: 16px 16px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px 16px 16px 6px; box-shadow: inset 6px 0 0 var(--paper-line), 0 1px 2px rgb(0 0 0 / .04); }
.page.today { box-shadow: inset 6px 0 0 var(--accent), 0 1px 2px rgb(0 0 0 / .04); }
.page-h { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.page-date { display: flex; flex-direction: column; align-items: center; min-width: 54px; line-height: 1.1; color: var(--ink-soft); }
.page-date b { font-size: 34px; color: var(--text-primary); font-family: Georgia, "Times New Roman", serif; }
.page-date .dno { font-size: 10px; letter-spacing: 1.5px; font-weight: 700; color: var(--accent); }
.page-date span:last-child { font-size: 11.5px; }
.page-t { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.theme { text-align: left; background: none; border: 0; padding: 0; font: inherit; font-size: 16.5px; font-weight: 700; color: var(--text-primary); cursor: pointer; font-family: Georgia, "Apple SD Gothic Neo", serif; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--series-2) 16%, transparent); color: var(--text-primary); margin-left: 4px; vertical-align: 1px; }
.tag.priv { background: var(--surface-2); }
.stay { background: color-mix(in srgb, var(--series-1) 10%, var(--paper)); border-radius: 10px; padding: 7px 10px; margin-bottom: 8px; font-size: 14px; cursor: pointer; }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 61px; top: 6px; bottom: 6px; border-left: 2px dotted var(--paper-line); }
.tl-i { display: grid; grid-template-columns: 44px 34px 1fr; gap: 0 4px; padding: 6px 0; cursor: pointer; position: relative; }
.tl-time { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--ink-soft); padding-top: 4px; text-align: right; }
.tl-dot { font-size: 17px; text-align: center; background: var(--paper); position: relative; z-index: 1; height: 26px; line-height: 26px; }
.tl-body { min-width: 0; padding-top: 2px; }
.tl-body > div > b { font-size: 15px; }
.tl-body p { margin: 2px 0 0; }
.tl-i.mine .tl-body > div > b { color: var(--text-primary); }
.pc { margin-top: 6px; padding: 9px 11px; border-radius: 10px; background: var(--surface-1); border: 1px solid var(--line); }
.pc p { margin: 3px 0 0; }
.pc.lite { font-size: 13.5px; }
.pc-links { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 13px; }
.pc-links a { font-weight: 600; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; font-weight: 600; }
.empty-day { padding: 6px 0 10px; }
.notes { margin-top: 8px; border-top: 1px dashed var(--paper-line); padding-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.note { font-family: Georgia, "Apple SD Gothic Neo", serif; }
.note p { margin: 2px 0 0; font-size: 14.5px; line-height: 26px; background-image: repeating-linear-gradient(to bottom, transparent 0 25px, var(--paper-line) 25px 26px); }
.note.my { cursor: pointer; }
.shots { display: flex; gap: 6px; overflow-x: auto; }
.shots img { height: 90px; border-radius: 8px; border: 1px solid var(--line); }
.row.nowrap { flex-wrap: nowrap; }
.row.nowrap input { flex: 1; }
.moves { font-size: 13.5px; padding: 6px 10px; margin-bottom: 8px; border-radius: 10px; background: color-mix(in srgb, var(--series-2) 12%, var(--paper)); }
.who-dates { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.form label.check.top { align-items: flex-start; }
.form label.check.top input { margin-top: 4px; }
.more { margin-top: 4px; }
.more summary { font-size: 12.5px; color: var(--accent); cursor: pointer; font-weight: 600; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "▸ "; }
.more[open] summary::before { content: "▾ "; }
.more p { margin: 3px 0 0; }

.pc-photo { margin: -9px -11px 8px; }
.pc-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px 10px 0 0; display: block; background: var(--surface-2); }
.pc-photo figcaption { font-size: 10.5px; color: var(--text-muted); padding: 2px 11px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 12px; }
.pg-i { padding: 0; border: 2px solid transparent; border-radius: 10px; background: var(--surface-2); cursor: pointer; overflow: hidden; text-align: left; font: inherit; color: inherit; }
.pg-i img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.pg-i span { display: block; font-size: 10.5px; color: var(--text-muted); padding: 3px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-i.on { border-color: var(--accent); opacity: .7; }

.ask-bar { padding: 8px; margin-top: 12px; position: sticky; top: 58px; z-index: 4; box-shadow: 0 2px 8px rgb(0 0 0 / .06); }
.ask-row { display: flex; gap: 6px; align-items: flex-end; }
.ask-row textarea { flex: 1; resize: none; height: 40px; min-height: 40px; line-height: 1.4; white-space: pre-wrap; text-overflow: ellipsis; }
.ask-row .ico, .ask-row .btn { height: 40px; flex: none; }
.ask-bar .shots:empty, .ask-bar [data-msg][hidden] { display: none; }
.ask-bar .shots { margin-top: 6px; }
.ask-bar .shots img { height: 56px; }
.ask-bar [data-msg] { margin: 6px 4px 0; }

/* ───── 달력 보기 ───── */
.chips.no-gap { margin-top: 0; }
.view-seg span { padding: 5px 10px; font-size: 12.5px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin: 10px 12px 0; }
.cal-wrap { overflow-x: auto; margin: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.cal { display: grid; grid-template-columns: 30px repeat(var(--n), minmax(84px, 1fr)); min-width: calc(30px + var(--n) * 84px); }
.cal-corner { border-bottom: 1px solid var(--line); text-align: center; padding-top: 4px; }
.cal-day { border: 0; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); background: none; font: inherit; color: inherit; padding: 6px 2px; display: flex; flex-direction: column; align-items: center; cursor: pointer; line-height: 1.2; }
.cal-day b { font-size: 15px; font-family: Georgia, serif; }
.cal-day span { font-size: 11px; color: var(--ink-soft); }
.cal-day .dno { font-size: 9px; letter-spacing: 1px; font-weight: 700; color: var(--accent); }
.cal-day.today { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.cal-top { border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 3px; display: flex; flex-direction: column; gap: 2px; min-height: 22px; }
.cal-stay, .cal-move, .cal-untimed { font-size: 10.5px; border-radius: 5px; padding: 1px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.cal-stay { background: color-mix(in srgb, var(--series-1) 14%, transparent); }
.cal-move { background: color-mix(in srgb, var(--series-2) 14%, transparent); cursor: default; }
.cal-untimed { background: var(--surface-2); }
.cal-hours { position: relative; height: var(--h); }
.cal-hours span { position: absolute; right: 4px; font-size: 10px; color: var(--text-muted); transform: translateY(-50%); }
.cal-hours span:first-child { transform: none; }
.cal-col { position: relative; height: var(--h); border-left: 1px solid var(--line);
  background-image: repeating-linear-gradient(to bottom, var(--paper-line) 0 1px, transparent 1px 46px); }
.cal-col.today { background-color: color-mix(in srgb, var(--accent) 5%, transparent); }
.cal-now { position: absolute; left: 0; right: 0; border-top: 2px solid var(--danger); z-index: 2; }
.cal-ev { position: absolute; box-sizing: border-box; padding: 2px 4px; border-radius: 6px; font-size: 11px; line-height: 1.25; overflow: hidden; cursor: pointer;
  background: color-mix(in srgb, var(--series-1) 16%, var(--paper)); border: 1px solid color-mix(in srgb, var(--series-1) 45%, transparent); border-left: 3px solid var(--series-1); }
.cal-ev.mine { background: color-mix(in srgb, var(--series-2) 14%, var(--paper)); border-color: color-mix(in srgb, var(--series-2) 45%, transparent); border-left-color: var(--series-2); }
.cal-ev.priv { border-style: dashed; }
.cal-ev.fl { font-weight: 600; }
.cal-ev .cal-t { font-variant-numeric: tabular-nums; color: var(--text-secondary); font-weight: 600; }
.cal-ev i { display: block; font-style: normal; font-size: 10px; color: var(--text-secondary); }
.cal-ev { word-break: keep-all; overflow-wrap: anywhere; }

.toair .seg { margin-bottom: 6px; }
.toair .seg span { font-size: 12.5px; padding: 5px 9px; }
.toair .steps { margin: 4px 0; padding-left: 18px; }
.toair .steps li { margin: 1px 0; }
