/* 숏폼 스튜디오 — 폰 우선(하단 탭·큰 터치 영역·하단 고정 버튼), 900px 이상은 사이드바 */
@font-face { font-family: "Jua"; src: url("/fonts/Jua-Regular.ttf") format("truetype"); font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #f7f6fb; --surface: #ffffff; --surface-2: #f1eff8; --text: #1c1a29; --muted: #6c6884; --line: #e6e3f0;
  --accent: #7b5cff; --accent-ink: #ffffff; --accent-soft: #efeaff; --pink: #ff5c9d;
  --ok: #0f9d77; --ok-soft: #e2f5ee; --warn: #b86e00; --warn-soft: #fff3d6; --bad: #df3f45; --bad-soft: #fde7e8;
  --m-cute: #ff5c9d; --m-funny: #ff8a1f; --m-heartwarming: #e0a400; --m-wow: #7b5cff; --m-calm: #16a382; --m-spooky: #4867e8;
  --radius: 18px; --radius-sm: 12px; --shadow: 0 1px 2px rgba(24, 18, 60, .05), 0 8px 24px rgba(24, 18, 60, .06);
  --tabbar-h: 62px; --gutter: 16px; --actionbar-h: 0px;
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --font-display: "Jua", var(--font);
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111018; --surface: #1b1a25; --surface-2: #252330; --text: #f2f0f9; --muted: #a3a0b8; --line: #302d3e;
    --accent: #9d86ff; --accent-soft: #2b2545; --ok: #3cc79c; --ok-soft: #12302a; --warn: #f0b03a; --warn-soft: #33290f;
    --bad: #ff6b70; --bad-soft: #3a1b1e; --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--tabbar-h) + var(--actionbar-h) + env(safe-area-inset-bottom) + 24px);
}
a { color: var(--accent); text-decoration: none; }
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font: 26px/1.2 var(--font-display); letter-spacing: -.2px; }
h2 { font-size: 18px; font-weight: 750; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.hidden { display: none !important; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.sm { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ 뼈대 */
.app { min-height: 100vh; }
.view { padding: 0 var(--gutter); max-width: 1120px; margin: 0 auto; outline: none; }
.sidebar { display: none; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px;
  margin: 0 calc(-1 * var(--gutter)); padding: calc(10px + env(safe-area-inset-top)) var(--gutter) 10px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.topbar h1 { font-size: 22px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .back { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--text); background: var(--surface); border: 1px solid var(--line); }
.page-intro { margin: 2px 0 16px; color: var(--muted); }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 600; position: relative; }
.tabbar a.on { color: var(--accent); }
.tabbar a .dot { position: absolute; top: 8px; right: calc(50% - 18px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--pink); color: #fff; font-size: 10px; line-height: 16px; text-align: center; }
.tabbar a.make .bubble { width: 46px; height: 46px; margin-top: -16px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--pink)); box-shadow: 0 8px 18px rgba(123, 92, 255, .35); }
.tabbar a.make.on { color: var(--text); }

@media (min-width: 900px) {
  body { padding-bottom: calc(var(--actionbar-h) + 32px); }
  .tabbar { display: none; }
  .app { display: grid; grid-template-columns: 240px 1fr; }
  .sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; padding: 22px 16px; border-right: 1px solid var(--line); background: var(--surface); }
  .view { width: 100%; padding: 0 32px; --gutter: 32px; }
  .brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
  .brand-logo { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; font: 16px var(--font-display); background: linear-gradient(135deg, var(--accent), var(--pink)); }
  .brand-text { display: flex; flex-direction: column; line-height: 1.2; }
  .brand-text small { color: var(--muted); font-size: 12px; }
  .side-nav { display: flex; flex-direction: column; gap: 4px; }
  .side-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; color: var(--muted); font-weight: 600; }
  .side-nav a:hover { background: var(--surface-2); color: var(--text); }
  .side-nav a.on { background: var(--accent-soft); color: var(--accent); }
  .side-foot { margin-top: auto; font-size: 13px; color: var(--muted); }
}

/* ------------------------------------------------------------------ 공통 부품 */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card + .card, .section + .section, .card + .section, .section + .card { margin-top: 14px; }
.section { margin-top: 22px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.section-head a { font-size: 14px; font-weight: 600; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.nowrap { flex-wrap: nowrap; }
.grow { flex: 1; min-width: 0; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-weight: 700; font-size: 15.5px; cursor: pointer; text-align: center; touch-action: manipulation; user-select: none;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.grad { background: linear-gradient(135deg, var(--accent), var(--pink)); border: 0; color: #fff; }
.btn.soft { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--bad); }
.btn.sm { min-height: 38px; padding: 0 12px; font-size: 14px; border-radius: 11px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn .ic { width: 20px; height: 20px; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; font-size: 12.5px; font-weight: 700; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.run { background: var(--accent-soft); color: var(--accent); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 14px; font-weight: 700; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--surface); font-size: 16px; outline: none;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface-2); padding: 4px; border-radius: 14px; gap: 4px; }
.seg button { min-height: 42px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-weight: 700; font-size: 14.5px; cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; width: 52px; height: 32px; border-radius: 99px; background: var(--line); position: relative; flex: none; cursor: pointer; transition: background .2s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(20px); }

.hscroll { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 8px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: none; }

.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar > i { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--pink)); transition: width .8s ease; }
.bar.indet > i { width: 35%; animation: indet 1.4s ease-in-out infinite; }
@keyframes indet { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }

.empty { text-align: center; padding: 28px 12px; color: var(--muted); }
.empty .btn { margin-top: 12px; }
.skeleton { height: 160px; margin: 24px 0; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.error { border-color: var(--bad); color: var(--bad); white-space: pre-wrap; }
.note { display: flex; gap: 8px; padding: 11px 13px; border-radius: 12px; background: var(--surface-2); font-size: 14px; color: var(--muted); }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.note.bad { background: var(--bad-soft); color: var(--bad); }
.note.ok { background: var(--ok-soft); color: var(--ok); }
.list-clean { list-style: none; margin: 0; padding: 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ 홈 */
.hero { position: relative; overflow: hidden; border: 0; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #9a7bff 0%, #7b5cff 45%, #ff5c9d 100%); }
.hero h2 { font: 23px/1.3 var(--font-display); }
.hero p { opacity: .92; margin-top: 6px; font-size: 15px; }
.hero .btn { margin-top: 14px; background: #fff; color: #5a3fe0; border: 0; }
.env-chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 650; color: var(--text); }
.env-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.env-chip.ok i { background: var(--ok); }
.env-chip.warn i { background: var(--warn); }
.env-chip.bad i { background: var(--bad); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.stat b { display: block; font-size: 24px; line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ------------------------------------------------------------------ 작업(진행) */
.task { display: flex; flex-direction: column; gap: 8px; }
.task + .task { margin-top: 10px; }
.task-top { display: flex; align-items: center; gap: 8px; }
.task-title { font-weight: 750; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.task-line { font-family: var(--mono); font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-err { font-size: 13px; color: var(--bad); white-space: pre-wrap; max-height: 5.2em; overflow: hidden; }

/* ------------------------------------------------------------------ 영상 카드 */
.vgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .vgrid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); } }
.vcard { display: flex; flex-direction: column; gap: 8px; color: var(--text); min-width: 0; }
.thumb { position: relative; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .tag { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 8px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .55); }
.thumb .tag.r { left: auto; right: 8px; }
.thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.vtitle { font-weight: 700; font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pf-dots { display: flex; gap: 4px; flex-wrap: wrap; }
.pf { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 750; background: var(--surface-2); color: var(--muted); }
.pf::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; }
.pf.youtube { color: #ff2747; }
.pf.tiktok { color: var(--text); }
.pf.instagram { color: #e1306c; }
.pf.naver_clip { color: #03c75a; }
.pf.done { background: var(--ok-soft); }

/* ------------------------------------------------------------------ 만들기 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
.steps button { border: 0; background: transparent; padding: 0; text-align: left; cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 700; }
.steps button i { display: block; height: 5px; border-radius: 99px; background: var(--line); margin-bottom: 6px; }
.steps button.on { color: var(--text); }
.steps button.on i, .steps button.done i { background: linear-gradient(90deg, var(--accent), var(--pink)); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  --mood: var(--accent); display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 14px;
  border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text);
  font-size: 15px; font-weight: 650; cursor: pointer; touch-action: manipulation;
}
.chip.on { border-color: var(--mood); background: color-mix(in srgb, var(--mood) 15%, var(--surface)); }
.chip.on::before { content: "✓"; color: var(--mood); font-weight: 900; }
.chip.small { min-height: 34px; padding: 5px 11px; font-size: 13.5px; }
.chip-badge { font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); line-height: 1.5; }
.chip-badge.now { background: var(--bad-soft); color: var(--bad); }
.chip-badge.soon { background: var(--warn-soft); color: var(--warn); }
.batch-pf + .batch-pf { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
#hot-only { flex: none; }
.chip.cute { --mood: var(--m-cute); } .chip.funny { --mood: var(--m-funny); } .chip.heartwarming { --mood: var(--m-heartwarming); }
.chip.wow { --mood: var(--m-wow); } .chip.calm { --mood: var(--m-calm); } .chip.spooky { --mood: var(--m-spooky); }
.cat { padding: 14px 0 6px; }
.cat + .cat { border-top: 1px dashed var(--line); }
.cat-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.cat-icon { font-size: 24px; line-height: 1; }
.cat-blurb { font-size: 13px; color: var(--muted); }
.preset { width: 230px; text-align: left; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.preset b { font-size: 15.5px; }
.preset span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.preset.on { border-color: var(--accent); background: var(--accent-soft); }
.picked { display: flex; flex-direction: column; gap: 8px; }
.picked-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.picked-item .grow b { display: block; }
.picked-item .grow span { font-size: 13px; color: var(--muted); }
.picked-item button { border: 0; background: transparent; color: var(--muted); padding: 6px; cursor: pointer; }
.hook-opt { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; width: 100%; }
.hook-opt + .hook-opt { margin-top: 8px; }
.hook-opt b { display: block; font-size: 15.5px; }
.hook-opt span { font-size: 13.5px; color: var(--muted); }
.hook-opt i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; margin-top: 2px; }
.hook-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.hook-opt.on i { border: 7px solid var(--accent); }
.clip-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.clip-strip::-webkit-scrollbar { display: none; }
.clip-strip a { flex: none; width: 96px; }
.clip-strip img { width: 96px; height: 128px; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.clip-strip small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.trend-vid { display: flex; gap: 10px; align-items: center; color: var(--text); }
.trend-vid img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; background: var(--surface-2); }
.trend-vid b { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trend-vid + .trend-vid { margin-top: 10px; }

.actionbar {
  position: fixed; left: 0; right: 0; z-index: 45; display: flex; gap: 10px; align-items: center;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding: 10px var(--gutter);
  background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.actionbar .info { flex: 1; min-width: 0; font-size: 13.5px; color: var(--muted); line-height: 1.3; }
.actionbar .info b { color: var(--text); display: block; font-size: 15px; }
@media (min-width: 900px) { .actionbar { left: 240px; bottom: 0; padding: 12px 32px; } }
body.has-actionbar { --actionbar-h: 72px; }

/* ------------------------------------------------------------------ 영상 상세 */
.player-wrap { display: flex; flex-direction: column; gap: 10px; }
.player { width: 100%; max-height: 72vh; aspect-ratio: 9 / 16; margin: 0 auto; background: #000; border-radius: 18px; object-fit: contain; }
@media (min-width: 900px) { .detail { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 24px; align-items: start; } .detail .player-col { position: sticky; top: 72px; } }
.facts { display: flex; gap: 6px; flex-wrap: wrap; }
.pcard { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.pcard + .pcard { margin-top: 10px; }
.pcard > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px; cursor: pointer; min-height: 56px; }
.pcard > summary::-webkit-details-marker { display: none; }
.pcard > summary .pname { font-weight: 800; flex: 1; }
.pcard > summary::after { content: "›"; font-size: 22px; color: var(--muted); transform: rotate(90deg); transition: transform .2s; }
.pcard[open] > summary::after { transform: rotate(-90deg); }
.pcard .pbody { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.caption-box { position: relative; white-space: pre-wrap; font-size: 14px; line-height: 1.55; padding: 12px; border-radius: 12px; background: var(--surface-2); max-height: 9.6em; overflow: hidden; overflow-wrap: anywhere; }
.caption-box.open { max-height: none; }
.caption-box:not(.open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.4em; background: linear-gradient(transparent, var(--surface-2)); }
.step-list { counter-reset: s; display: flex; flex-direction: column; gap: 8px; }
.step-list > div { display: flex; gap: 10px; align-items: center; }
.step-list > div::before { counter-increment: s; content: counter(s); width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--accent-soft); color: var(--accent); }
.step-list .btn { flex: 1; }
.checks { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--warn); }
.shot { display: grid; grid-template-columns: 74px 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.shot:first-child { border-top: 0; }
.shot .role { font-weight: 800; font-size: 12.5px; color: var(--accent); text-transform: uppercase; }
.contact { border-radius: 14px; border: 1px solid var(--line); }
details.more > summary { cursor: pointer; font-weight: 750; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "펼치기"; font-size: 13px; color: var(--muted); font-weight: 600; }
details.more[open] > summary::after { content: "접기"; }

/* ------------------------------------------------------------------ 게시 현황 */
.pub-row { display: flex; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.pub-row:first-child { border-top: 0; }
.pub-row .grow b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pub-row .grow span { font-size: 12.5px; color: var(--muted); }

/* ------------------------------------------------------------------ 시트·토스트 */
.sheet-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(10, 8, 20, .45); animation: fade .2s; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 81; max-height: 86vh; overflow: auto; overscroll-behavior: contain;
  background: var(--surface); border-radius: 22px 22px 0 0; padding: 10px var(--gutter) calc(18px + env(safe-area-inset-bottom));
  animation: up .25s ease;
}
.sheet .grip { width: 40px; height: 5px; border-radius: 99px; background: var(--line); margin: 2px auto 12px; }
.sheet pre { white-space: pre-wrap; word-break: break-all; font: 12px/1.5 var(--mono); background: var(--surface-2); padding: 12px; border-radius: 12px; max-height: 60vh; overflow: auto; }
@media (min-width: 900px) { .sheet { left: 50%; right: auto; width: 640px; transform: translateX(-50%); bottom: 24px; border-radius: 22px; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.toasts { position: fixed; left: 0; right: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; bottom: calc(var(--tabbar-h) + var(--actionbar-h) + env(safe-area-inset-bottom) + 14px); padding: 0 var(--gutter); }
.toast { pointer-events: auto; max-width: 520px; padding: 12px 16px; border-radius: 14px; background: #1f1c2e; color: #fff; font-size: 14.5px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); animation: up .2s ease; transition: opacity .3s, transform .3s; }
.toast.ok { background: #0d7f60; }
.toast.bad { background: #c3343a; }
.toast.out { opacity: 0; transform: translateY(8px); }
@media (min-width: 900px) { .toasts { bottom: 24px; left: 240px; } }
.copy-buf { position: fixed; top: 0; left: 0; opacity: 0; font-size: 16px; }
.login { max-width: 420px; margin: 12vh auto 0; }
.login-logo { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; font: 16px var(--font-display); background: linear-gradient(135deg, var(--accent), var(--pink)); flex: none; }
