/* uschedule 시안 공통 — 모바일 앱 규격
   좌우 여백 16, 간격 4·8·12·16·24, 누르는 영역 44 이상, 목록 한 줄 56~72,
   화면 제목 24, 항목 제목 16, 본문 14~15, 보조 13, 최소 12, 상단 바 48, 주요 버튼 48. */

:root { --m: 16px; }

.m-stage { display: flex; justify-content: center; }
.m-col { width: 100%; max-width: 430px; }
.app { position: relative; min-height: 100vh; background: var(--paper); }
@media (max-width: 899px) { .demo { position: static; } }
@media (min-width: 900px) {
  .m-stage { padding: 18px 24px 28px; }
  .m-col { max-width: 390px; }
  .app { min-height: 100%; }
}
.demo-time { color: #bdbdbd; font-variant-numeric: tabular-nums; }

/* ── 상단 바 ── */
.bar48 {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 var(--m);
  border-bottom: 1px solid var(--line); background: var(--paper);
}
.bar48-mark { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.bar48-link { display: inline-flex; align-items: center; height: 44px; margin-left: -4px; padding: 0 4px; border: 0; background: none; font-size: 15px; color: var(--ink); text-decoration: none; }
.bar48-gap { flex: 1; }
.bar48-go { position: relative; height: 32px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 600; }
.bar48-go::after { content: ""; position: absolute; inset: -6px -4px; }
.bar48-go:disabled { background: var(--fill); color: var(--faint); }

.vw { display: flex; padding: 3px; border-radius: 8px; background: var(--fill); }
.vw button { position: relative; height: 30px; padding: 0 12px; border: 0; border-radius: 6px; background: none; font-size: 13px; color: var(--mute); }
.vw button::after { content: ""; position: absolute; inset: -8px 0; }
.vw button[aria-pressed="true"] { background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }

/* ── 제목과 날짜 ── */
.hd { padding: 16px var(--m) 12px; }
.hd-title { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; }
.hd-title-in { display: block; width: 100%; padding: 0; border: 0; outline: 0; background: none; font-size: 24px; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; }
.hd-title-in::placeholder { color: var(--faint); }
.hd-date { margin: 2px 0 0; font-size: 14px; color: var(--mute); }
.hd-date-btn { position: relative; display: inline-flex; align-items: center; min-height: 28px; margin-top: 2px; padding: 0; border: 0; background: none; font-size: 14px; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--faint); }
.hd-date-btn input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip2 { position: relative; height: 36px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 8px; background: var(--paper); font-size: 14px; font-weight: 600; overflow: hidden; }
.chip2::after { content: ""; position: absolute; inset: -4px 0; }
.chip2 input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; }

/* ── 공통 글자 ── */
.tm { font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.nm { font-size: 16px; line-height: 1.3; font-weight: 600; }
.sub { display: block; font-size: 13px; line-height: 1.35; font-weight: 400; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tap { width: 100%; border: 0; background: none; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.grow { min-width: 0; }
.ft { padding: 20px var(--m) 28px; font-size: 12px; color: var(--mute); }
.make { display: flex; align-items: center; justify-content: center; height: 48px; margin: 24px var(--m) 0; border: 1px solid var(--ink); border-radius: 8px; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; }

/* ── 사진 보기 ── */
.b-day { margin: 8px var(--m) 10px; padding-top: 12px; border-top: 2px solid var(--ink); font-size: 14px; font-weight: 700; }
.b-card { display: block; width: calc(100% - var(--m) * 2); margin: 0 var(--m) 16px; }
.b-shot { position: relative; display: block; }
.b-photo { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; object-fit: cover; background: var(--fill); }
.b-wait { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: var(--fill); }
.b-pill { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 6px; background: var(--ink); color: var(--paper); font-size: 13px; }
.b-pill.none { background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--ink); }
.b-text { display: flex; align-items: baseline; gap: 8px; padding: 8px 2px 0; }
.b-text .tm { font-size: 16px; }
.b-text .tm.none { font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.b-card .sub { padding: 0 2px; }
.b-card.no-photo { padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.b-card.no-photo .b-text { padding: 0; }
.b-card.no-photo .sub { padding: 0; margin-top: 2px; }
.b-note { display: flex; align-items: center; gap: 10px; width: calc(100% - var(--m) * 2); min-height: 44px; margin: 0 var(--m) 16px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--fill); font-size: 14px; text-align: left; color: inherit; }
.b-note .tm { font-size: 14px; }

/* ── 목록 보기 ── */
.c-cover { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--fill); }
.c-day { display: flex; align-items: center; height: 32px; margin: 0; padding: 0 var(--m); background: var(--fill); font-size: 13px; font-weight: 700; }
.c-list { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.c-day + .c-list { border-top: 0; }
.c-row { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; min-height: 60px; padding: 8px var(--m); }
.c-row + .c-row { box-shadow: inset 0 1px 0 var(--line); }
.c-row .tm { font-size: 16px; }
.c-row .tm.none { font-size: 12px; font-weight: 600; color: var(--mute); }
.c-plain { min-height: 48px; }
.txt15 { font-size: 15px; }
.c-thumb { width: 44px; height: 44px; margin-left: 10px; border-radius: 8px; object-fit: cover; background: var(--fill); }

/* ── 작성: 빈 화면, 추가 버튼 ── */
.empty { padding: 8px var(--m) 0; }
.find { display: flex; align-items: center; width: 100%; height: 52px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 10px; background: var(--paper); font-size: 16px; color: var(--mute); text-align: left; }
.empty-say { margin: 12px 2px 0; font-size: 13px; color: var(--mute); }
.more-add { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px var(--m) 0; }
.btn44 { height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-size: 14px; font-weight: 600; }
.dock { position: sticky; bottom: 0; z-index: 4; padding: 10px var(--m) calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.btn48 { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; border: 0; border-radius: 8px; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 600; }
.btn48.line { border: 1px solid var(--ink); background: var(--paper); color: var(--ink); }
.pad-end { height: 24px; }

/* ── 장소 찾기 (전체 화면) ── */
.screen { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; background: var(--paper); }
@media (min-width: 900px) { .screen { position: absolute; } }
.find-bar { display: flex; align-items: center; gap: 4px; height: 56px; padding: 0 var(--m) 0 4px; border-bottom: 1px solid var(--line); }
.back { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); }
.find-in { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--fill); font-size: 16px; outline: 0; }
.find-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.find-row { display: block; width: 100%; min-height: 64px; padding: 11px var(--m); border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; color: inherit; }
.find-row b { display: block; font-size: 16px; font-weight: 600; }
.find-row span { display: block; font-size: 13px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.find-row i { margin-right: 6px; font-style: normal; color: var(--ink); }
.find-row.plain b { font-weight: 500; }
.find-say { margin: 0; padding: 16px var(--m); font-size: 14px; color: var(--mute); }

/* ── 시트 공통 (../style.css 의 .overlay .sheet 위에 얹는다) ── */
.sheet-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin: -8px 0 4px; }
.sheet-h { margin: 0; font-size: 17px; font-weight: 700; }
.sheet-x { height: 44px; margin-right: -4px; padding: 0 4px; border: 0; background: none; font-size: 15px; color: var(--mute); }
.bar48-back { display: inline-flex; align-items: center; gap: 8px; height: 44px; margin-left: -6px; padding: 0 6px; border: 0; background: none; font-size: 15px; color: var(--ink); text-decoration: none; }
.place-photo { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; object-fit: cover; background: var(--fill); }
.place-name { margin: 12px 0 0; font-size: 18px; font-weight: 700; }
.place-addr { margin: 2px 0 0; font-size: 14px; color: var(--mute); }
.place-memo { margin: 8px 0 0; font-size: 15px; }
.place-go { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.place-go a { display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 8px; font-size: 15px; font-weight: 600; text-decoration: none; }
.place-go a:first-child { background: var(--ink); color: var(--paper); }
.place-go a:last-child { border: 1px solid var(--ink); color: var(--ink); }

/* 몇 시? */
.ts-name { margin: 0; font-size: 14px; color: var(--mute); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-show { margin: 4px 0 10px; font-size: 44px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; text-align: center; }
.ts-show.blank { color: var(--faint); }
.ts-chips { display: flex; justify-content: center; gap: 8px; margin-bottom: 12px; }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.key { height: 52px; border: 0; border-radius: 10px; background: var(--fill); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.key.soft { background: none; font-size: 14px; font-weight: 600; color: var(--mute); }
.key:active { background: var(--line); }
.ts-ok { margin-top: 10px; }

/* 항목 고치기 */
.ed-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; }
.ed-thumb { flex: none; width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--fill); }
.ed-rows { border-top: 1px solid var(--line); }
.ed-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 15px; }
.ed-row > span:first-child { flex: none; }
.ed-val { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ed-in { flex: 1; min-width: 0; height: 44px; padding: 0; border: 0; outline: 0; background: none; font-size: 16px; text-align: right; }
.ed-seg { display: flex; padding: 3px; border-radius: 8px; background: var(--fill); }
.ed-seg button { height: 32px; padding: 0 12px; border: 0; border-radius: 6px; background: none; font-size: 13px; color: var(--mute); }
.ed-seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.sw { position: relative; flex: none; width: 48px; height: 28px; border: 0; border-radius: 14px; background: var(--line); }
.sw::before { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); transition: transform 0.15s; }
.sw::after { content: ""; position: absolute; inset: -8px 0; }
.sw[aria-checked="true"] { background: var(--ink); }
.sw[aria-checked="true"]::before { transform: translateX(20px); }
.ed-links { display: flex; gap: 14px; padding: 12px 0 0; font-size: 14px; }
.ed-links a { color: var(--ink); text-underline-offset: 3px; }
.ed-foot { display: grid; grid-template-columns: auto 1fr; gap: 8px; margin-top: 16px; }
.ed-del { height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-size: 15px; color: var(--mute); }

/* 공유 */
.sh-say { margin: 0 0 12px; font-size: 15px; }
.sh-link { display: flex; gap: 8px; }
.sh-link input { flex: 1; min-width: 0; height: 48px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--fill); font-size: 16px; color: var(--mute); }
.sh-link button { flex: none; height: 48px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 8px; background: var(--paper); font-size: 14px; font-weight: 600; }
.sh-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.sh-cap { margin: 18px 0 8px; font-size: 13px; font-weight: 700; }
.sh-chat { padding: 12px; border-radius: 12px; background: var(--fill); }
.sh-card { max-width: 250px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.sh-card img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; background: var(--fill); }
.sh-card div { padding: 10px 12px; }
.sh-card b { display: block; font-size: 15px; }
.sh-card span { display: block; font-size: 13px; color: var(--mute); }

@media (prefers-reduced-motion: reduce) { .sw::before { transition: none; } }
