:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --sunken: #f2ede4;
  --ink: #1f1d1a;
  --ink-2: #57514a;
  --ink-3: #8c857b;
  --line: #ebe5da;
  --primary: #2f5d46;
  --primary-press: #244a37;
  --primary-soft: #e4eee6;
  --ember: #d9773f;
  --ember-soft: #fbeadd;
  --danger: #c2412d;
  --danger-soft: #fbe9e5;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow-1: 0 1px 2px rgba(40, 30, 15, .04), 0 4px 16px rgba(40, 30, 15, .06);
  --shadow-2: 0 8px 28px rgba(30, 40, 30, .18);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --tabbar-h: 64px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

#app { max-width: 560px; margin: 0 auto; min-height: 100dvh; }

h1, h2, h3, p { margin: 0; }
h1 { font-size: 28px; line-height: 1.25; font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: 21px; line-height: 1.3; font-weight: 800; letter-spacing: -.02em; }
button, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.ic { display: inline-flex; flex: none; width: 22px; height: 22px; }
.ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.view { animation: view-in .22s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-in { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- 버튼 ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 22px; border: 0; border-radius: var(--r-md);
  background: var(--primary); color: #fff; font-size: 17px; font-weight: 700;
  transition: transform .12s, background .12s;
}
.btn:active { transform: scale(.975); background: var(--primary-press); }
.btn:disabled { opacity: .5; }
.btn.block { display: flex; width: 100%; }
.btn.soft { background: var(--primary-soft); color: var(--primary); }
.btn.soft:active { background: #d5e4d8; }
.btn.plain { background: var(--sunken); color: var(--ink); }
.btn.plain:active { background: #e8e1d5; }
.btn.danger { background: var(--danger); }
.btn.danger-soft { background: var(--danger-soft); color: var(--danger); }
.btn.small { min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 15px; gap: 4px; }
.btn.small .ic { width: 18px; height: 18px; }

.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink);
}
.icon-btn:active { background: var(--sunken); }

/* ---------- 하단 탭바 ---------- */

#tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr 88px 1fr; align-items: center;
  max-width: 560px; margin: 0 auto;
  height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--line);
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  height: var(--tabbar-h); border: 0; background: none;
  color: var(--ink-3); font-size: 12px; font-weight: 600;
}
.tab .ic { width: 25px; height: 25px; }
.tab[aria-current="page"] { color: var(--primary); }
.tab[aria-current="page"] .ic svg { stroke-width: 2.3; }
.tab-add {
  justify-self: center; display: grid; place-items: center;
  width: 58px; height: 58px; margin-top: -22px; padding: 0;
  border: 4px solid var(--bg); border-radius: 50%;
  background: var(--primary); color: #fff; box-shadow: var(--shadow-2);
  transition: transform .12s;
}
.tab-add:active { transform: scale(.93); }
.tab-add .ic { width: 28px; height: 28px; }
.tab-add .ic svg { stroke-width: 2.4; }

/* ---------- 홈 ---------- */

.page { padding: calc(18px + var(--safe-t)) 20px calc(var(--tabbar-h) + 48px + var(--safe-b)); }
.brand { display: flex; align-items: center; gap: 8px; color: var(--primary); font-size: 15px; font-weight: 800; }
.brand .ic { width: 20px; height: 20px; }
.home-head { margin: 18px 0 22px; }
.home-head h1 { font-size: 30px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; padding: 16px 0; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); }
.stat { text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.stat b small { margin-left: 1px; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.stat span { font-size: 13px; color: var(--ink-3); font-weight: 600; }

.cards { display: grid; gap: 26px; }
.camp-card { display: block; transition: transform .15s; }
.camp-card:active { transform: scale(.985); }
.camp-card .cover { aspect-ratio: 4 / 3; border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.camp-card .text { padding: 13px 4px 0; }
.camp-card h2 { font-size: 21px; }
.camp-card .meta { display: flex; align-items: center; gap: 4px; margin-top: 3px; color: var(--ink-2); font-size: 15.5px; }
.camp-card .meta .ic { width: 16px; height: 16px; color: var(--ink-3); }
.camp-card .meta i { font-style: normal; color: var(--line); margin: 0 3px; }

.cover { position: relative; display: block; width: 100%; overflow: hidden; background: linear-gradient(150deg, #dfeade, #c9dccc); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover.empty { display: grid; place-items: center; color: #8aa692; }
.cover.empty .ic { width: 64px; height: 64px; }
.cover.empty .ic svg { stroke-width: 1.4; }
.badge {
  position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: 999px;
  background: rgba(20, 20, 15, .52); color: #fff; font-size: 13px; font-weight: 700;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

.empty-state { display: grid; justify-items: center; gap: 8px; padding: 48px 20px; text-align: center; }
.empty-state .art { display: grid; place-items: center; width: 108px; height: 108px; margin-bottom: 10px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); }
.empty-state .art .ic { width: 52px; height: 52px; }
.empty-state .art .ic svg { stroke-width: 1.5; }
.empty-state p { color: var(--ink-2); }
.empty-state .btn { margin-top: 16px; }

.skeleton { border-radius: var(--r-lg); background: linear-gradient(100deg, #efe9df 40%, #f7f3ec 50%, #efe9df 60%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- 캠핑장 화면 ---------- */

.hero { position: relative; }
.hero .cover { aspect-ratio: 1 / 1; max-height: 62vh; border: 0; padding: 0; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 120px; z-index: 1; background: linear-gradient(rgba(0, 0, 0, .32), transparent); pointer-events: none; }
.hero.no-photo .cover { aspect-ratio: 16 / 9; }
.hero.no-photo::before { display: none; }
.float-bar { position: absolute; z-index: 2; top: calc(10px + var(--safe-t)); left: 14px; right: 14px; display: flex; justify-content: space-between; }
.float-btn {
  display: inline-flex; align-items: center; gap: 2px; height: 42px; padding: 0 16px 0 8px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 15.5px; font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.float-btn.round { width: 42px; padding: 0; justify-content: center; }
.float-btn:active { transform: scale(.95); }
.float-btn .ic { width: 20px; height: 20px; }
.photo-count { position: absolute; z-index: 2; right: 14px; bottom: 38px; padding: 4px 11px; border-radius: 999px; background: rgba(20, 20, 15, .55); color: #fff; font-size: 13px; font-weight: 700; }

.sheet-body { position: relative; z-index: 3; margin-top: -24px; padding: 26px 20px calc(48px + var(--safe-b)); border-radius: 26px 26px 0 0; background: var(--bg); }
.place-meta { display: flex; align-items: center; gap: 4px; margin-top: 6px; color: var(--ink-2); font-size: 16px; }
.place-meta .ic { width: 17px; height: 17px; color: var(--ink-3); }
.place-meta i { font-style: normal; color: var(--line); margin: 0 3px; }

.card { margin-top: 18px; padding: 18px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); }
.addr { display: flex; gap: 12px; align-items: flex-start; }
.addr .ic { margin-top: 2px; color: var(--primary); }
.addr p { flex: 1; font-weight: 600; overflow-wrap: anywhere; }
.map-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.map-links .btn { min-height: 46px; font-size: 15.5px; border-radius: var(--r-sm); }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.fact { padding: 15px 16px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-1); min-width: 0; }
.fact.wide { grid-column: 1 / -1; }
.fact .k { display: flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 13.5px; font-weight: 600; }
.fact .k .ic { width: 17px; height: 17px; color: var(--primary); }
.fact .v { margin-top: 5px; font-size: 17px; font-weight: 700; overflow-wrap: anywhere; white-space: pre-wrap; }
.hint-line { margin-top: 18px; padding: 16px; border-radius: var(--r-md); background: var(--sunken); color: var(--ink-2); font-size: 15.5px; }

.section-head { display: flex; align-items: center; justify-content: space-between; margin: 40px 0 14px; }
.section-head h2 span { margin-left: 6px; color: var(--primary); }

.visit { margin-bottom: 18px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); overflow: hidden; }
.mosaic { display: grid; gap: 3px; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 3 / 2; }
.mosaic button { position: relative; padding: 0; border: 0; background: var(--sunken); overflow: hidden; }
.mosaic button:first-child { grid-row: 1 / -1; }
.mosaic.n1 { grid-template-columns: 1fr; aspect-ratio: 16 / 10; }
.mosaic.n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; aspect-ratio: 2 / 1; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20, 20, 15, .5); color: #fff; font-size: 20px; font-weight: 800; }
.add-photo-strip { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 22px; background: var(--sunken); color: var(--ink-3); font-size: 15px; font-weight: 600; }

.visit .body { padding: 16px 18px 14px; }
.visit .date { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.visit .sub { margin-top: 2px; color: var(--ink-2); font-size: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { padding: 5px 11px; border-radius: 999px; background: var(--sunken); color: var(--ink-2); font-size: 14px; font-weight: 600; }
.tag.type { background: var(--ember-soft); color: #a34f1c; }

.quick { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; padding: 12px 0; border-radius: var(--r-sm); background: var(--bg); }
.quick div { text-align: center; border-left: 1px solid var(--line); padding: 0 4px; }
.quick div:first-child { border-left: 0; }
.quick span { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.quick b { font-size: 15.5px; font-weight: 700; }
.quick b.yes { color: var(--primary); }
.quick b.no { color: var(--danger); }

.notes { display: grid; gap: 14px; margin-top: 16px; }
.note .k { font-size: 13.5px; font-weight: 700; color: var(--ink-3); }
.note .v { margin-top: 2px; white-space: pre-wrap; overflow-wrap: anywhere; }
details.more > summary { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 14px; padding: 10px; border-radius: var(--r-sm); background: var(--bg); color: var(--ink-2); font-size: 15px; font-weight: 700; list-style: none; cursor: pointer; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary .ic { width: 18px; height: 18px; transition: transform .2s; }
details.more[open] > summary .ic { transform: rotate(180deg); }
details.more[open] > summary .closed, details.more:not([open]) > summary .opened { display: none; }

.visit .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.author { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14.5px; font-weight: 600; }
.avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 800; }
.avatar.big { width: 76px; height: 76px; font-size: 30px; }
.text-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 8px; border: 0; border-radius: 10px; background: none; color: var(--ink-2); font-size: 15px; font-weight: 700; }
.text-btn:active { background: var(--sunken); }
.text-btn .ic { width: 17px; height: 17px; }

/* ---------- 폼 ---------- */

.navbar {
  position: sticky; top: 0; z-index: 8; display: grid; grid-template-columns: 56px 1fr 56px; align-items: center;
  height: calc(54px + var(--safe-t)); padding: var(--safe-t) 6px 0;
  background: rgba(250, 247, 242, .9); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.navbar h1 { font-size: 17px; font-weight: 700; text-align: center; letter-spacing: -.01em; }
.form-page { padding: 6px 16px calc(120px + var(--safe-b)); }
form { display: block; }
.group { margin-top: 26px; }
.group > h2 { margin: 0 4px 10px; font-size: 14px; font-weight: 700; color: var(--ink-3); letter-spacing: 0; }
.group > .box { padding: 4px 16px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); }
.field { padding: 16px 0; border-top: 1px solid var(--line); }
.field:first-child { border-top: 0; }
.field .label { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; font-size: 16px; font-weight: 700; }
.field .label em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.field .label em.req { color: var(--ember); }
.field .hint { margin: -6px 0 10px; font-size: 14px; color: var(--ink-3); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

input[type="text"], input[type="password"], input[type="number"], input[type="date"], input[type="time"], textarea {
  display: block; width: 100%; min-height: 52px; padding: 13px 14px;
  border: 1.5px solid transparent; border-radius: var(--r-sm); background: var(--sunken);
  font-size: 17px; appearance: none; -webkit-appearance: none; transition: border-color .15s, background .15s;
}
input::placeholder, textarea::placeholder { color: #a9a297; }
textarea { min-height: 104px; resize: none; line-height: 1.5; }
input:focus, textarea:focus { outline: 0; border-color: var(--primary); background: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2);
  font-size: 16px; font-weight: 600; transition: transform .1s, background .12s, border-color .12s, color .12s;
}
.chip:active { transform: scale(.95); }
.chip .ic { width: 16px; height: 16px; margin-left: -4px; }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip.add { border-style: dashed; color: var(--primary); }
.add-row { display: flex; gap: 8px; margin-top: 10px; }
.add-row input { flex: 1; min-width: 0; }
.add-row .btn { min-height: 52px; border-radius: var(--r-sm); }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--sunken); }
.seg button { min-height: 44px; padding: 0 6px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font-size: 16px; font-weight: 600; transition: background .15s, color .15s; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--primary); font-weight: 800; box-shadow: 0 1px 4px rgba(40, 30, 15, .14); }

.stepper { display: flex; align-items: center; justify-content: space-between; padding: 4px; border-radius: 14px; background: var(--sunken); }
.stepper button { display: grid; place-items: center; width: 48px; height: 44px; border: 0; border-radius: 10px; background: #fff; color: var(--primary); box-shadow: 0 1px 4px rgba(40, 30, 15, .14); }
.stepper button:active { transform: scale(.94); }
.stepper output { font-size: 18px; font-weight: 800; }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-grid .cell { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--sunken); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid .remove { position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: rgba(20, 20, 15, .62); color: #fff; }
.photo-grid .remove .ic { width: 16px; height: 16px; }
.photo-grid .pick { display: grid; place-items: center; aspect-ratio: 1; border: 1.5px dashed #c9c1b3; border-radius: var(--r-sm); color: var(--ink-2); font-size: 14px; font-weight: 700; text-align: center; cursor: pointer; }
.photo-grid .pick .ic { display: flex; width: 28px; height: 28px; margin: 0 auto 4px; color: var(--primary); }
.photo-grid .pick.first { grid-column: 1 / -1; aspect-ratio: auto; padding: 30px 0; }

.savebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; padding: 12px 16px calc(12px + var(--safe-b)); background: rgba(250, 247, 242, .92); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
.savebar .btn { max-width: 528px; margin: 0 auto; }
.delete-row { margin-top: 30px; text-align: center; }
.delete-row .text-btn { color: var(--danger); min-height: 48px; padding: 0 16px; }

/* ---------- 로그인 ---------- */

.login { display: flex; flex-direction: column; min-height: 100dvh; padding: calc(13vh + var(--safe-t)) 24px calc(28px + var(--safe-b)); }
.login .logo { display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 26px; border-radius: 22px; background: var(--primary); color: #fff; box-shadow: var(--shadow-2); }
.login .logo .ic { width: 40px; height: 40px; }
.login h1 { font-size: 32px; }
.login .lead { margin-top: 8px; color: var(--ink-2); font-size: 17px; }
.login form, .login .who { display: grid; gap: 12px; margin-top: 36px; }
.login input { min-height: 58px; background: #fff; border-color: var(--line); font-size: 18px; }
.login .btn { min-height: 58px; font-size: 18px; }
.who-btn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: #fff; font-size: 19px; font-weight: 700; text-align: left; }
.who-btn:active { border-color: var(--primary); background: var(--primary-soft); }
.who-btn .avatar { width: 44px; height: 44px; font-size: 18px; }
.who-btn .ic { margin-left: auto; color: var(--ink-3); }
.divider { margin: 10px 0 0; color: var(--ink-3); font-size: 14.5px; font-weight: 600; }
.error { padding: 12px 14px; border-radius: var(--r-sm); background: var(--danger-soft); color: var(--danger); font-size: 15px; font-weight: 600; }

/* ---------- 내 정보 ---------- */

.profile { display: grid; justify-items: center; gap: 10px; padding: 26px 0 8px; }
.list { margin-top: 12px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 16px; border: 0; border-top: 1px solid var(--line); background: none; font-size: 17px; font-weight: 600; text-align: left; }
.row:first-child { border-top: 0; }
button.row:active, a.row:active { background: var(--sunken); }
.row .grow { flex: 1; min-width: 0; }
.row .grow small { display: block; font-size: 14px; font-weight: 500; color: var(--ink-3); }
.row > .ic { color: var(--ink-3); }
.row .lead-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.row .thumb { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; background: var(--sunken); }
.row.danger { color: var(--danger); }
.row.danger > .ic { color: var(--danger); }
.caption { margin: 26px 4px 0; font-size: 14px; font-weight: 700; color: var(--ink-3); }
.me-tag { padding: 3px 9px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 12.5px; font-weight: 700; }

/* ---------- 겹쳐 뜨는 화면 ---------- */

.scrim { position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center; background: rgba(20, 20, 15, .46); animation: fade-in .2s both; }
.sheet { width: 100%; max-width: 560px; max-height: 86dvh; overflow-y: auto; padding: 10px 20px calc(20px + var(--safe-b)); border-radius: 26px 26px 0 0; background: var(--bg); animation: sheet-in .28s cubic-bezier(.2, .8, .2, 1) both; }
.sheet .grabber { width: 40px; height: 5px; margin: 0 auto 18px; border-radius: 3px; background: #d9d2c5; }
.sheet h2 { margin-bottom: 6px; }
.sheet .msg { color: var(--ink-2); white-space: pre-line; }
.sheet .actions { display: grid; gap: 8px; margin-top: 22px; }
.sheet .list { box-shadow: none; border: 1px solid var(--line); }

.lightbox { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; background: #0d0c0a; animation: fade-in .18s both; }
.lightbox .bar { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; padding: calc(6px + var(--safe-t)) 6px 6px; color: #fff; text-align: center; font-size: 15.5px; font-weight: 700; }
.lightbox .icon-btn { color: #fff; }
.lightbox .icon-btn:active { background: rgba(255, 255, 255, .14); }
.lightbox .strip { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lightbox .strip::-webkit-scrollbar { display: none; }
.lightbox .slide { flex: none; width: 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; }
.lightbox .slide img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox .foot { display: grid; justify-items: center; gap: 14px; padding: 12px 16px calc(16px + var(--safe-b)); }
.dots { display: flex; gap: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .32); transition: background .2s, transform .2s; }
.dots i.on { background: #fff; transform: scale(1.25); }
.cover-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 20px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font-size: 15.5px; font-weight: 700; }
.cover-btn .ic { width: 18px; height: 18px; }
.cover-btn:disabled { background: transparent; color: #9fd0b1; }

.toast { position: fixed; bottom: calc(var(--tabbar-h) + 28px + var(--safe-b)); z-index: 50; left: 0; right: 0; margin: 0 auto; width: max-content; max-width: 86vw; padding: 12px 18px; border-radius: 14px; background: rgba(31, 29, 26, .94); color: #fff; font-size: 15px; font-weight: 600; box-shadow: var(--shadow-2); animation: view-in .2s both; }

.time-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 8px; }
.time-pair label { display: block; min-width: 0; }
.time-pair label span { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.time-pair i { padding-bottom: 14px; font-style: normal; color: var(--ink-3); }
.time-pair input { text-align: center; }
