.side-h { font-size: 12px; color: #5c6570; font-weight: 700; letter-spacing: .04em; margin: 14px 14px 4px; }
.side-h:first-child { margin-top: 0; }
.mob-menu { display: none; margin-left: auto; }
@media (max-width: 860px) {
  .mob-menu { display: inline-flex; }
  .side.open { display: flex; position: fixed; inset: 64px 0 0 0; z-index: 30; background: var(--bg); overflow: auto; }
  .nav .right { display: none; }
}
.drop { display: grid; gap: 6px; place-items: center; text-align: center; padding: 34px 16px; border: 2px dashed var(--line); border-radius: 14px; cursor: pointer; background: var(--bg2); transition: border-color .2s; }
.drop:hover, .drop.over { border-color: var(--mint-d); }
.drop.has b { color: var(--mint); }
.range { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); display: grid; gap: 10px; }
.note { margin: 10px 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; line-height: 1.5; background: rgba(61,255,176,.08); border: 1px solid rgba(61,255,176,.25); }
.note.warn { background: rgba(255,216,77,.08); border-color: rgba(255,216,77,.3); }
.sub-d { margin-top: 12px; background: transparent; border: 0; padding: 0; }
.sub-d summary { font-size: 14px; color: var(--muted); font-weight: 600; }
.sub-d summary::after { content: ""; }
.inp { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; outline: none; color: var(--text); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters input, .filters select { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; outline: none; color: var(--text); }
.filters input:not([type=checkbox]) { flex: 1; min-width: 180px; }
.filters input[type=checkbox] { padding: 0; }
.chk { display: flex; gap: 6px; align-items: center; font-size: 14px; color: #cfd6dd; cursor: pointer; padding: 0 6px; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.vcard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.vthumb { position: relative; aspect-ratio: 16/9; background: #000; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vthumb .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.8); font-size: 12px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.vthumb .badges { position: absolute; left: 8px; top: 8px; display: flex; gap: 4px; }
.badge-s { font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 5px; }
.b-hot { background: var(--hot); color: #fff; } .b-cc { background: var(--mint); color: #04130c; }
.vbody { padding: 12px; display: grid; gap: 6px; flex: 1; }
.vbody .t { font-weight: 700; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vbody .m { color: var(--muted); font-size: 13px; }
.vbody .k { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.vbody .k b { color: var(--mint); }
.vact { display: flex; gap: 6px; padding: 0 12px 12px; }
.vact .btn { flex: 1; }
.star.on { color: var(--yellow); border-color: var(--yellow); }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; line-height: 1.7; }
.tpl-layout { display: grid; grid-template-columns: 1fr 420px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .tpl-layout { grid-template-columns: 1fr; } }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.tcard { background: var(--card); border: 2px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; transition: border-color .15s; }
.tcard:hover { border-color: #3a424e; } .tcard.on { border-color: var(--mint); }
.tcard img { width: 100%; aspect-ratio: 9/16; object-fit: cover; display: block; background: #000; }
.tcard .tb { padding: 10px; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.tcard .tb span { font-size: 12px; color: var(--muted); }
.tcard .del { background: none; border: 0; color: var(--muted); cursor: pointer; }
.tpl-editor { position: sticky; top: 84px; }
.ed-grid { display: grid; grid-template-columns: 150px 1fr; gap: 14px; }
.ed-prev img { width: 150px; aspect-ratio: 9/16; border-radius: 10px; background: #000; display: block; object-fit: cover; }
.ed-prev span { font-size: 12px; display: block; margin-top: 6px; text-align: center; }
.ed-fields { display: grid; gap: 9px; max-height: 470px; overflow: auto; padding-right: 4px; }
.ed-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; font-size: 13px; color: #cfd6dd; }
.ed-row input[type=color] { width: 40px; height: 28px; border: 1px solid var(--line); border-radius: 6px; background: none; padding: 0; cursor: pointer; }
.ed-row input[type=range] { width: 120px; accent-color: var(--mint); }
.ed-row select, .ed-row input[type=text] { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; color: var(--text); width: 130px; }
.lf { display: grid; grid-template-columns: minmax(280px, 640px) 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .lf { grid-template-columns: 1fr; } }
.lf video { width: 100%; border-radius: 14px; background: #000; display: block; }
.stat { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat div { background: var(--bg2); border-radius: 12px; padding: 12px; } .stat b { display: block; font-size: 22px; color: var(--mint); }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal-box { width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; }
.clip .pick { position: absolute; margin: 10px; z-index: 2; }

.plan-note { margin: -6px 0 14px; font-size: 14px; color: var(--muted); }
.react-box { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); }
.react-box.locked { opacity: .55; }
.tier-b { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; background: var(--line); color: var(--text); }
.tier-b.pro { background: var(--mint); color: #04130c; } .tier-b.lite { background: #5fd0ff; color: #04130c; }
.timg { position: relative; } .timg .tier-b { position: absolute; top: 8px; right: 8px; }
.chip-s { background: var(--bg2); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 5px 10px; font-size: 12px; cursor: pointer; }
.chip-s:hover { border-color: var(--mint-d); }
.cands { gap: 6px; }

.radar { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.radar-h { font-weight: 800; font-size: 13px; color: var(--mint); white-space: nowrap; padding-top: 5px; }
.radar-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.radar .new { color: var(--hot); font-size: 10px; }
.fmt-tabs { margin-bottom: 12px; }
.score-b { position: absolute; right: 8px; top: 8px; width: 46px; height: 46px; border-radius: 50%; background: rgba(11,13,16,.85); border: 2px solid var(--mint); display: grid; place-items: center; align-content: center; line-height: 1; }
.score-b b { font-size: 16px; color: var(--mint); } .score-b i { font-style: normal; font-size: 9px; color: var(--muted); margin-top: 2px; }
.b-short { background: #5fd0ff; color: #04130c; }
.why { display: flex; gap: 4px; flex-wrap: wrap; }
.why span { font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px; background: rgba(61,255,176,.1); color: var(--mint); }

/* ---------- 앱형 화면 (로그인 · 상단바 · 하단 탭 · 홈) ---------- */
.w100 { width: 100%; }
.auth2 { min-height: calc(100vh - 64px); display: grid; grid-template-columns: 1fr 440px; align-items: center; gap: 48px; max-width: 1040px; margin: 0 auto; padding: 32px max(20px, env(safe-area-inset-left, 0px)); }
.auth-hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.15; letter-spacing: -.03em; margin: 18px 0 12px; }
.auth-hero h1 em { font-style: normal; color: var(--mint); }
.auth-hero p { color: var(--muted); font-size: 18px; margin: 0; } .auth-hero p b { color: var(--text); }
.logo.big { font-size: 24px; } .logo.big i { width: 34px; height: 34px; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: grid; gap: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.social { display: grid; gap: 10px; }
.sbtn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 54px; border-radius: 14px; font-weight: 800; font-size: 16px; position: relative; }
.sbtn svg, .sbtn > b { position: absolute; left: 18px; width: 22px; height: 22px; display: grid; place-items: center; }
.sbtn.k { background: #FEE500; color: #191600; } .sbtn.k svg { fill: #191600; }
.sbtn.n { background: #03C75A; color: #fff; } .sbtn.n > b { font-size: 18px; font-weight: 900; }
.sbtn.g { background: #fff; color: #1f1f1f; } .sbtn.g .gg { font-size: 18px; font-weight: 900; color: #4285F4; }
.sbtn:active { transform: scale(.98); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 4px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg2); border-radius: 12px; padding: 4px; }
.seg button { border: 0; background: none; color: var(--muted); padding: 10px; border-radius: 9px; font-weight: 700; cursor: pointer; }
.seg button.on { background: var(--card); color: var(--text); }
.fine { color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; margin: 6px 0 0; }
.fine a { text-decoration: underline; }
@media (max-width: 860px) { .auth2 { grid-template-columns: 1fr; gap: 22px; padding-top: 18px; min-height: auto; } .auth-hero { text-align: center; } .auth-hero h1 { font-size: 34px; } }

.app-nav .right { display: flex !important; gap: 10px; }
.credit-pill { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; }
.credit-pill b { color: var(--mint); } .credit-pill span { color: var(--muted); font-size: 12px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, var(--mint), #23a8ff); color: #04130c; flex: none; }
.avatar.lg { width: 64px; height: 64px; font-size: 26px; }
.hello { color: var(--muted); font-size: 15px; margin: 0 0 4px; }

.tabbar { display: none; }
@media (max-width: 860px) {
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: rgba(18,21,26,.96); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
    padding: 6px max(6px, env(safe-area-inset-left, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-right, 0px)); }
  .tabbar.hide { display: none; }
  .tabbar a { display: grid; justify-items: center; gap: 3px; padding: 6px 0; color: var(--muted); font-size: 11px; font-weight: 700; min-height: 48px; }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a.on { color: var(--mint); }
  .main { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important; }
  .app-nav .credit-pill span { display: none; }
  .main h1 { font-size: 22px; }
  input, select, textarea { font-size: 16px !important; }  /* iOS 확대 방지 */
  .btn-sm { padding: 10px 14px; }
  .cta-row .btn { width: 100%; }
}

.tstrip-wrap { margin-top: 16px; }
.tstrip-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 14px; }
.tstrip-h a { color: var(--mint); font-size: 13px; }
.tstrip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.tpick { flex: none; width: 96px; scroll-snap-align: start; position: relative; border: 2px solid var(--line); border-radius: 12px; padding: 0; overflow: hidden; background: #000; cursor: pointer; color: var(--text); }
.tpick img { width: 100%; aspect-ratio: 9/16; object-fit: cover; display: block; }
.tpick .tn { display: block; font-size: 12px; font-weight: 700; padding: 6px 4px; background: var(--card); }
.tpick.on { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(61,255,176,.25); }
.tpick.locked img { opacity: .45; }
.tpick .tier-b { position: absolute; top: 6px; right: 6px; }
.adv { margin-top: 14px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.adv summary { font-size: 15px; }
.adv summary .muted { font-weight: 400; font-size: 13px; margin-left: 6px; }
.cta-row { margin-top: 18px; }

.install-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 14px; border-radius: 12px; background: rgba(61,255,176,.1); border: 1px solid rgba(61,255,176,.3); font-size: 14px; }
.install-bar span { flex: 1; }
.install-bar .x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 16px; padding: 4px 6px; }

.me-card { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.me-credit { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.big-n { font-size: 32px; font-weight: 800; color: var(--mint); }
.me-list { padding: 6px 0; display: grid; }
.me-list a, .me-list button { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 16px; cursor: pointer; text-align: left; }
.me-list > :last-child { border-bottom: 0; }
.me-list i { font-style: normal; color: var(--muted); font-size: 20px; }
.ios-tip { margin-top: 14px; font-size: 14px; line-height: 1.6; }
/* 가독성: 보조 글자색을 조금 더 밝게 */
:root { --muted: #a9b3be; }
@media (max-width: 860px) { .side { display: none !important; } .app-shell { display: block; } }
@media (max-width: 860px) {
  .toast { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); width: max-content; max-width: calc(100% - 32px); text-align: center; }
  .auth-hero .logo.big { display: none; }
}

.agree { display: grid; gap: 2px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.ag { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; cursor: pointer; }
.ag span { flex: 1; } .ag em { font-style: normal; color: var(--mint); font-weight: 700; } .ag em.opt { color: var(--muted); }
.ag a { color: var(--muted); font-size: 12px; text-decoration: underline; }
.ag.all { border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 4px; font-size: 15px; }
.ag input { width: 20px; height: 20px; }
#vConsent { padding: 32px 16px; }
.consent { max-width: 440px; margin: 0 auto; display: grid; gap: 14px; padding: 28px; }
.consent h1 { margin: 6px 0 0; font-size: 26px; } .consent p { margin: 0; }
.me-foot { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }
.me-foot a { color: var(--muted); } .me-foot button { background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; }

.cap-box { max-width: 640px; }
.cap-box .x { background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; }
.cap-lines { display: grid; gap: 8px; max-height: 55vh; overflow: auto; padding-right: 4px; }
.cap-line { display: grid; grid-template-columns: 48px 1fr; gap: 8px; align-items: start; }
.cap-line .t { color: var(--muted); font-size: 12px; padding-top: 10px; font-variant-numeric: tabular-nums; }
.cap-line textarea { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; color: var(--text); resize: vertical; font-size: 15px; line-height: 1.5; }
.cap-line textarea.changed { border-color: var(--mint-d); }
#voiceOpt.locked { opacity: .55; }
/* 세부 설정이 휴대폰 화면 밖으로 넘치지 않게 */
.opts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.field { min-width: 0; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; }
@media (max-width: 900px) { .opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .opts { grid-template-columns: minmax(0, 1fr); } }
.adv, .react-box, .tstrip-wrap, #newForm { min-width: 0; max-width: 100%; }
