/* 로피 연습 기록 시안 — 값은 lopi-app 실제 코드에서 가져왔다(노트 "스타일 출처" 절). */
:root {
  --bg: #000;
  --card: #161616;          /* 카드 bg-[#161616] */
  --card-2: #1a1a1a;        /* bg-[#1A1A1A] */
  --line: #2a2a2a;          /* bg-[#2A2A2A] */
  --border: #4f4f4f;        /* border-[#4F4F4F] */
  --text: #fff;
  --sub: rgba(255, 255, 255, .5);  /* text-white/50 */
  --muted: #7f7f7f;         /* text-[#7F7F7F] */
  --soft: #ababab;          /* text-[#ABABAB] */
  --brand: #bef264;         /* tailwind brand */
  --chip-muted: #52525b;    /* status-chip muted */
  --danger: #ef4444;        /* text-red-500 */
  --heat-0: #1f1f1f;
  --kr: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif;
  --num: "Outfit", var(--kr);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: #0b0b0b; color: var(--text); font-family: var(--kr); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
a { color: inherit; }

/* ---------- 바깥 레이아웃 (데스크톱: 목록 | 폰 | 노트) ---------- */
.stage { display: grid; grid-template-columns: 240px 390px minmax(320px, 1fr); gap: 40px; padding: 40px; align-items: start; max-width: 1400px; margin: 0 auto; }
.toc { position: sticky; top: 40px; font-size: 14px; }
.toc h1 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.toc .meta { color: var(--muted); font-size: 12px; line-height: 1.5; margin-bottom: 20px; }
.toc ol { list-style: none; display: grid; gap: 2px; }
.toc li button { width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; color: var(--soft); }
.toc li button[aria-current="true"] { background: var(--card); color: var(--text); }
.toc li button:hover { color: var(--text); }
.toc .cond { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.toc .cond p { color: var(--muted); font-size: 12px; }
.seg { display: flex; background: var(--card); border-radius: 999px; padding: 3px; }
.seg button { flex: 1; padding: 7px 0; border-radius: 999px; font-size: 13px; color: var(--soft); }
.seg button[aria-pressed="true"] { background: var(--line); color: var(--text); }

.phone { width: 390px; height: 844px; background: var(--bg); border-radius: 44px; overflow: hidden; position: relative; box-shadow: 0 0 0 10px #1c1c1c, 0 30px 80px rgba(0,0,0,.6); }
.statusbar { height: 47px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px 0 34px; font-family: var(--num); font-weight: 600; font-size: 15px; position: relative; z-index: 5; }
.statusbar .dots { display: flex; gap: 5px; align-items: center; }
.statusbar .dots i { display: block; width: 17px; height: 10px; border-radius: 2px; background: #fff; }
.statusbar .dots i:first-child { width: 16px; height: 10px; background: none; border-bottom: 10px solid #fff; border-left: 16px solid transparent; border-radius: 0; height: 0; }

.notes { font-size: 14px; line-height: 1.65; color: #d4d4d4; max-width: 640px; }

@media (max-width: 1100px) {
  .stage { grid-template-columns: 390px 1fr; }
  .toc { grid-column: 1 / -1; position: static; }
  .toc ol { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (max-width: 760px) {
  html, body { background: var(--bg); }
  .stage { display: flex; flex-direction: column; padding: 0; }
  .phone { order: -1; }
  .toc { padding: 16px 20px; }
  .phone { width: 100%; height: 100svh; border-radius: 0; box-shadow: none; }
  .notes { padding: 32px 20px 80px; }
}

/* ---------- 화면 공통 ---------- */
.screen { position: absolute; inset: 0; top: 47px; display: none; flex-direction: column; background: var(--bg); }
.screen.on { display: flex; }
.scroll { flex: 1; overflow-y: auto; padding: 0 20px 24px; scrollbar-width: none; align-content: start; }
.scroll::-webkit-scrollbar { display: none; }
.header { display: flex; align-items: center; gap: 16px; padding: 12px 20px; min-height: 52px; }
.header .title { flex: 1; font-size: 17px; font-weight: 500; }
.header .icon-btn { width: 28px; height: 28px; display: grid; place-items: center; color: #fff; }
.icon { width: 22px; height: 22px; display: inline-block; flex: none; }
.icon svg { width: 100%; height: 100%; display: block; }

.card { background: var(--card); border-radius: 12px; padding: 20px; }
.gap-12 { display: grid; gap: 12px; }
.sub { color: var(--sub); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.num { font-family: var(--num); }

.cta-bar { padding: 12px 20px 30px; background: linear-gradient(to top, #000 70%, rgba(0,0,0,0)); display: flex; gap: 8px; }
.btn { height: 50px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 16px; font-weight: 600; flex: 1; transition: opacity .3s ease; }
.btn-brand { background: var(--brand); color: #000; }
.btn-dark { background: var(--line); color: #fff; }
.btn-ghost { background: transparent; color: var(--soft); flex: 0 0 auto; padding: 0 18px; }
.btn[disabled] { opacity: .5; cursor: default; }
.link { color: var(--brand); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 2px; }

.chip { display: inline-flex; align-items: center; border-radius: 4px; padding: 3px 8px; font-size: 12px; font-weight: 500; line-height: 1.4; }
.chip-brand { background: var(--brand); color: #000; }
.chip-muted { background: var(--chip-muted); color: rgba(255,255,255,.8); }
.chip-line { border: 1px solid var(--border); color: var(--soft); }

/* ---------- 홈 ---------- */
.visibility-line { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px 14px; border-radius: 12px; background: var(--card-2); font-size: 14px; text-align: left; }
.visibility-line .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.visibility-line.public .dot { background: var(--brand); }
.visibility-line .grow { flex: 1; }


.heat-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.heat-head h2 { font-size: 15px; font-weight: 600; }
.scroll > * { min-width: 0; }

.nudge { display: flex; gap: 12px; align-items: flex-start; }
.nudge p { font-size: 14px; line-height: 1.55; }

.section-title { font-size: 15px; font-weight: 600; margin: 8px 0 -2px; display: flex; justify-content: space-between; align-items: baseline; }
.rec { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 12px 0; border-bottom: 1px solid #1f1f1f; }
.rec:last-child { border-bottom: 0; }
.thumb { width: 64px; height: 64px; border-radius: 10px; flex: none; position: relative; overflow: hidden; display: grid; place-items: center; }
.thumb .icon { width: 22px; height: 22px; color: rgba(255,255,255,.9); }
.thumb .len { position: absolute; right: 4px; bottom: 4px; font-family: var(--num); font-size: 10px; background: rgba(0,0,0,.6); padding: 1px 4px; border-radius: 3px; }
.t-video { background: radial-gradient(circle at 30% 30%, #3f3f46, #18181b 70%); }
.t-photo { background: linear-gradient(135deg, #27272a, #3f3f46 60%, #52525b); }
.t-audio { background: #1f1f1f; }
.t-text { background: #1f1f1f; }
.rec .body { flex: 1; min-width: 0; }
.rec .body .t { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec .body .m { display: flex; gap: 6px; align-items: center; margin-top: 6px; font-size: 12px; color: var(--muted); }
.rec .state { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.rec .state .icon { width: 14px; height: 14px; }
.progress { height: 3px; border-radius: 3px; background: var(--line); margin-top: 8px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--brand); }
.retry { color: var(--brand); font-size: 13px; font-weight: 500; }

/* ---------- 빈 상태 ---------- */
.empty { text-align: center; padding: 28px 8px 8px; }
.empty h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.empty p { font-size: 14px; color: var(--sub); line-height: 1.6; }

/* ---------- 바텀시트·모달 ---------- */
.dim { position: absolute; inset: 0; background: rgba(0,0,0,.62); z-index: 10; display: flex; flex-direction: column; justify-content: flex-end; }
.sheet { background: var(--card); border-radius: 14px 14px 0 0; padding: 8px 20px 34px; }
.sheet .grab { width: 36px; height: 4px; border-radius: 2px; background: var(--border); margin: 0 auto 16px; }
.sheet .btn { width: 100%; }
.sheet h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 14px; }
.type-btn { background: var(--card-2); border: 1px solid #262626; border-radius: 12px; padding: 16px; text-align: left; display: grid; gap: 10px; }
.type-btn .icon { color: var(--brand); }
.type-btn b { font-size: 15px; font-weight: 600; display: block; }
.type-btn span { font-size: 12px; color: var(--muted); line-height: 1.45; }
.modal { margin: auto 24px; background: var(--card); border-radius: 14px; padding: 28px 20px 20px; text-align: center; }
.modal h3 { font-size: 18px; font-weight: 600; margin: 12px 0 8px; }
.modal p { font-size: 14px; color: var(--sub); line-height: 1.6; }
.modal .row { display: flex; gap: 8px; margin-top: 22px; }
.alert-icon { width: 44px; height: 44px; margin: 0 auto; color: var(--danger); }

/* 가짜 갤러리 */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin: 14px -20px 0; }
.gallery button { aspect-ratio: 1; position: relative; display: grid; place-items: center; }
.gallery .size { position: absolute; left: 6px; bottom: 6px; font-family: var(--num); font-size: 11px; background: rgba(0,0,0,.65); padding: 1px 5px; border-radius: 3px; }
.gallery .size.big { color: #fca5a5; }
.audio-list { display: grid; margin-top: 10px; }
.audio-list button { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #262626; text-align: left; }
.audio-list .grow { flex: 1; }

/* ---------- 업로드 폼 ---------- */
.field { display: grid; gap: 10px; }
.field > label, .field > .label { font-size: 14px; font-weight: 500; color: #fff; }
.field .req { color: var(--brand); font-size: 12px; margin-left: 4px; }
.media-slot { height: 200px; border-radius: 12px; border: 1px dashed var(--border); display: grid; place-items: center; text-align: center; color: var(--soft); font-size: 14px; position: relative; overflow: hidden; width: 100%; }
.media-slot .icon { margin: 0 auto 8px; width: 28px; height: 28px; color: var(--brand); }
.media-slot.filled .icon { color: #fff; }
.media-slot.filled { border: 0; }
.media-slot .meta { position: absolute; left: 12px; bottom: 12px; right: 12px; display: flex; justify-content: space-between; font-size: 12px; color: #fff; }
.media-slot .change { position: absolute; top: 10px; right: 10px; font-size: 12px; background: rgba(0,0,0,.6); padding: 5px 10px; border-radius: 999px; }
.limit-note { font-size: 12px; color: var(--muted); line-height: 1.6; }
.toggle-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tog { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); font-size: 14px; color: var(--soft); display: inline-flex; align-items: center; gap: 6px; }
.tog[aria-pressed="true"] { border-color: var(--brand); color: var(--brand); background: rgba(190,242,100,.08); }
.tog input[type="date"] { background: transparent; border: 0; color: inherit; font-size: 14px; color-scheme: dark; width: 120px; }
.textarea { width: 100%; min-height: 110px; background: var(--card-2); border: 1px solid #262626; border-radius: 12px; padding: 14px; font-size: 15px; line-height: 1.55; resize: none; }
.textarea:focus { outline: 1px solid var(--border); }
.textarea::placeholder { color: #5f5f5f; }
.count { text-align: right; font-size: 12px; color: var(--muted); font-family: var(--num); }
.vis-row { display: flex; align-items: center; gap: 12px; background: var(--card-2); border-radius: 12px; padding: 14px; text-align: left; width: 100%; }
.vis-row .grow { flex: 1; }
.vis-row b { display: block; font-size: 14px; font-weight: 500; }
.vis-row span { font-size: 12px; color: var(--muted); }
.switch { width: 46px; height: 28px; border-radius: 999px; background: var(--chip-muted); position: relative; flex: none; transition: background .2s ease; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.switch[aria-checked="true"] { background: var(--brand); }
.switch[aria-checked="true"]::after { transform: translateX(18px); background: #000; }
.switch[disabled] { opacity: .4; }
.toast { position: absolute; left: 20px; right: 20px; bottom: 100px; background: #262626; border-radius: 12px; padding: 14px 16px; font-size: 14px; display: flex; gap: 10px; align-items: center; z-index: 9; }
.toast .icon { color: var(--danger); width: 20px; height: 20px; }

/* ---------- 완료 ---------- */
.done-hero { text-align: center; padding: 48px 0 28px; }
.done-hero .ring { width: 72px; height: 72px; border-radius: 50%; background: var(--brand); color: #000; display: grid; place-items: center; margin: 0 auto 20px; }
.done-hero .ring .icon { width: 34px; height: 34px; }
.done-hero h2 { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.done-hero p { color: var(--sub); font-size: 15px; }

/* ---------- 상세 ---------- */
.player { height: 420px; margin: 0 -20px; position: relative; display: grid; place-items: center; }
.player .play { width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.15); display: grid; place-items: center; backdrop-filter: blur(6px); }
.player .bar { position: absolute; left: 20px; right: 20px; bottom: 16px; display: flex; gap: 10px; align-items: center; font-family: var(--num); font-size: 12px; }
.player .bar .track { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.25); }
.player .bar .track i { display: block; width: 32%; height: 100%; background: #fff; }
.kv { display: grid; grid-template-columns: 76px 1fr; gap: 10px 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.memo { font-size: 15px; line-height: 1.65; white-space: pre-wrap; }
.menu { position: absolute; right: 16px; top: 52px; background: #262626; border-radius: 12px; padding: 6px; width: 200px; z-index: 11; display: grid; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.menu button { text-align: left; padding: 11px 12px; border-radius: 8px; font-size: 14px; }
.menu button:hover { background: #303030; }
.menu .danger { color: var(--danger); }
.wave { display: flex; gap: 3px; align-items: center; height: 80px; }
.wave i { display: block; width: 4px; border-radius: 2px; background: var(--brand); opacity: .85; }

/* ---------- 공개 범위·동의 ---------- */
.lead { font-size: 22px; font-weight: 600; line-height: 1.4; margin: 8px 0 8px; }
.radio { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 12px; background: var(--card); border: 1px solid transparent; text-align: left; width: 100%; }
.radio[aria-checked="true"] { border-color: var(--brand); }
.radio .r { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); flex: none; margin-top: 1px; display: grid; place-items: center; }
.radio[aria-checked="true"] .r { border-color: var(--brand); }
.radio[aria-checked="true"] .r::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.radio b { display: block; font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.radio span { font-size: 13px; color: var(--sub); line-height: 1.55; display: block; }
.see-list { display: grid; gap: 10px; font-size: 14px; }
.see-list li { display: flex; gap: 10px; list-style: none; line-height: 1.5; }
.see-list .icon { width: 18px; height: 18px; color: var(--brand); margin-top: 2px; }
.see-list .no .icon { color: var(--muted); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 400; width: 84px; padding: 10px 10px 10px 0; vertical-align: top; }
.tbl td { padding: 10px 0; line-height: 1.55; }
.tbl tr + tr th, .tbl tr + tr td { border-top: 1px solid #262626; }
.check { display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%; padding: 16px; border-radius: 12px; background: var(--card-2); }
.check .box { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--border); flex: none; display: grid; place-items: center; color: #000; }
.check[aria-checked="true"] .box { background: var(--brand); border-color: var(--brand); }
.check .box .icon { width: 16px; height: 16px; opacity: 0; }
.check[aria-checked="true"] .box .icon { opacity: 1; }
.check b { font-size: 15px; font-weight: 500; display: block; }
.check span { font-size: 12px; color: var(--muted); display: block; margin-top: 4px; line-height: 1.5; }
.input { width: 100%; height: 48px; background: var(--card-2); border: 1px solid #262626; border-radius: 10px; padding: 0 14px; font-size: 15px; }
.input::placeholder { color: #5f5f5f; }
.banner { display: flex; gap: 10px; padding: 14px; border-radius: 12px; background: rgba(190,242,100,.08); border: 1px solid rgba(190,242,100,.25); font-size: 13px; line-height: 1.55; }
.banner .icon { color: var(--brand); width: 18px; height: 18px; margin-top: 1px; }
.banner.warn { background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.3); }
.banner.warn .icon { color: #fbbf24; }

/* ---------- 노트 ---------- */
.notes section { padding: 28px 0; border-top: 1px solid #222; }
.notes section:first-child { border-top: 0; padding-top: 0; }
.notes h2 { font-size: 18px; color: #fff; font-weight: 600; margin-bottom: 12px; }
.notes h3 { font-size: 14px; color: #fff; font-weight: 600; margin: 16px 0 6px; }
.notes p + p { margin-top: 8px; }
.notes ul, .notes ol { padding-left: 18px; display: grid; gap: 6px; }
.notes code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: #1a1a1a; padding: 1px 5px; border-radius: 4px; color: #e5e5e5; word-break: break-all; }
.notes table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.notes th, .notes td { text-align: left; padding: 8px 8px 8px 0; border-bottom: 1px solid #222; vertical-align: top; }
.notes th { color: var(--muted); font-weight: 500; }
.notes a { color: var(--brand); }
.tag-check { color: var(--brand); }
.tag-warn { color: #fbbf24; }

/* 한글은 어절 단위로 줄바꿈("있/어요"처럼 끊기지 않게) */
.phone { word-break: keep-all; overflow-wrap: anywhere; }

/* ---------- v2: 시안 조건 3단 ---------- */
.toc h1 .v { font-family: var(--num); font-size: 12px; color: var(--brand); margin-left: 4px; }
.seg-3 button { font-size: 12px; }

/* ---------- v2: 마이 (lopi-app my-screen · my-menu 값) ---------- */
.my-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; }
.my-title { font-family: var(--num); font-size: 28px; font-weight: 500; line-height: 33.6px; }
.my-head .icon { width: 24px; height: 24px; }
.my-scroll { padding: 0 0 110px; }
.my-card { margin: 7px 20px 0; height: 220px; border-radius: 16px; position: relative; overflow: hidden; background: linear-gradient(160deg, #3f3f46, #18181b 70%); }
.my-photo { position: absolute; inset: 0; background: radial-gradient(circle at 50% 38%, #52525b 0 22%, transparent 23%), linear-gradient(transparent 55%, #000); }
.my-name { position: absolute; left: 18px; bottom: 16px; display: grid; gap: 4px; }
.my-name b { font-size: 22px; font-weight: 600; }
.my-name span { font-size: 13px; color: var(--sub); }
.my-sec { padding: 40px 16px 0; display: grid; gap: 16px; }
.my-sec h3 { font-size: 22px; font-weight: 600; line-height: 26.4px; }
.my-row { display: flex; justify-content: space-between; align-items: center; font-size: 15px; line-height: 21px; text-align: left; width: 100%; }
.my-row .icon { width: 20px; height: 20px; color: var(--sub); }
.my-row.muted-row { color: var(--sub); }
.my-row .new { font-style: normal; font-family: var(--num); font-size: 10px; font-weight: 600; color: #000; background: var(--brand); border-radius: 999px; padding: 2px 6px; margin-left: 6px; vertical-align: 2px; }
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; padding: 12px 8px 30px; display: flex; justify-content: space-around; background: #0a0a0a; border-top: 1px solid #1f1f1f; font-family: var(--num); font-size: 11px; color: var(--muted); z-index: 4; }
.tabbar .on { color: #fff; }

/* ---------- v2: 달력 ---------- */
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cal-head h2 { font-size: 16px; font-weight: 600; }
.icon-btn.sm { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #fff; }
.icon-btn.sm .icon { width: 18px; height: 18px; }
.icon-btn.sm[disabled] { opacity: .25; cursor: default; }
.icon-btn.flip .icon { transform: scaleX(-1); }
.cal-wd, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.cal-wd { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.cal-grid { row-gap: 2px; }
.cal-day { height: 44px; display: grid; grid-template-rows: 30px 8px; justify-items: center; align-content: center; padding: 0; }
.cal-day b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--num); font-size: 14px; font-weight: 500; }
.cal-day .dots { display: flex; gap: 3px; align-items: center; height: 8px; }
.cal-day .dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--brand); display: block; }
.cal-day.today b { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.cal-day.sel b { background: var(--brand); color: #000; box-shadow: none; }
.cal-day.future b { color: #3f3f3f; }
.cal-sum { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.cal-sum b { color: var(--soft); font-weight: 500; }
.day-empty { font-size: 14px; color: var(--muted); padding: 14px 0; line-height: 1.6; }

/* ---------- v2: 종류 시트·유튜브 ---------- */
.type-btn.wide { grid-column: span 2; grid-template-columns: auto 1fr; align-items: center; }
.yt-input { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 8px 0 14px; background: var(--card-2); border: 1px solid #262626; border-radius: 12px; }
.yt-input.bad { border-color: rgba(239,68,68,.6); }
.yt-input > .icon { width: 20px; height: 20px; color: var(--muted); flex: none; }
.yt-input input { flex: 1; min-width: 0; background: transparent; border: 0; font-size: 15px; outline: none; }
.yt-input input::placeholder { color: #5f5f5f; }
.yt-paste { height: 34px; padding: 0 12px; border-radius: 999px; background: var(--line); font-size: 13px; flex: none; }
.yt-clear { width: 32px; height: 32px; display: grid; place-items: center; color: var(--muted); flex: none; }
.yt-clear .icon { width: 16px; height: 16px; }
.err { font-size: 12px; color: #fca5a5; line-height: 1.6; }
.yt-card { border-radius: 12px; overflow: hidden; background: var(--card); }
.yt-thumb { aspect-ratio: 16 / 9; position: relative; display: grid; place-items: center; background: linear-gradient(135deg, #3b1f2b, #18181b 55%, #27272a); }
.yt-thumb > .icon { width: 44px; height: 44px; color: #fff; }
.yt-thumb .len { position: absolute; right: 8px; bottom: 8px; font-size: 11px; background: rgba(0,0,0,.75); padding: 2px 5px; border-radius: 4px; }
.yt-thumb .change { position: absolute; top: 10px; right: 10px; font-size: 12px; background: rgba(0,0,0,.6); padding: 5px 10px; border-radius: 999px; }
.yt-meta { padding: 12px 14px 14px; display: grid; gap: 4px; }
.yt-meta b { font-size: 15px; font-weight: 500; }
.yt-meta span { font-size: 12px; color: var(--muted); }
.yt-ghost { height: 160px; border-radius: 12px; border: 1px dashed var(--border); display: grid; place-items: center; align-content: center; gap: 8px; color: var(--muted); font-size: 13px; }
.yt-ghost .icon { width: 28px; height: 28px; margin: 0 auto; }
.t-youtube { background: linear-gradient(135deg, #3b1f2b, #18181b 70%); }
.yt-player { background: linear-gradient(135deg, #3b1f2b, #18181b 55%, #27272a); }
.yt-badge { position: absolute; top: 14px; left: 20px; display: flex; gap: 6px; align-items: center; font-family: var(--num); font-size: 12px; background: rgba(0,0,0,.55); padding: 4px 10px 4px 6px; border-radius: 999px; }
.yt-badge .icon { width: 16px; height: 16px; }

/* ---------- v2: 날짜 칩·하루 3개 ---------- */
.date-strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.dchip { display: grid; gap: 2px; justify-items: center; padding: 8px 0 7px; border-radius: 10px; border: 1px solid #262626; font-size: 11px; color: var(--muted); }
.dchip b { font-size: 15px; font-weight: 500; color: #fff; }
.dchip i { font-style: normal; font-size: 10px; }
.dchip[aria-pressed="true"] { border-color: var(--brand); background: rgba(190,242,100,.08); }
.dchip[aria-pressed="true"] b { color: var(--brand); }
.dchip.full i { color: #fca5a5; }
.limit-list { display: grid; gap: 6px; margin-top: 16px; text-align: left; }
.limit-list .mini { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: var(--card-2); border-radius: 10px; font-size: 13px; }
.limit-list .mini .icon { width: 16px; height: 16px; color: var(--brand); flex: none; }

/* ---------- v2: 공개 범위·보호자 ---------- */
.radio b small { font-size: 11px; font-weight: 500; vertical-align: 2px; margin-left: 4px; }
.radio .lock-note { display: flex; gap: 6px; align-items: center; font-style: normal; color: #fbbf24; margin-top: 8px; font-size: 12px; }
.lock-note .icon { width: 14px; height: 14px; }
.consent-row { display: flex; justify-content: space-between; align-items: center; }
.danger-link { color: #fca5a5; }
.steps { list-style: none; display: grid; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.steps li > b { width: 24px; height: 24px; border-radius: 50%; background: var(--line); display: grid; place-items: center; font-size: 12px; flex: none; }
.steps em { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 3px; }
.code-row { display: flex; gap: 10px; align-items: center; }
.code-row .input { flex: 1; }
