/* 쇼츠 레시피 — 「가을 청명」 라이트(맑은 하늘 바탕 · 흰 카드 · 감색 글자) + 코랄 한 색 강조. 폰 기준 360px */
:root {
  --bg: #f4f9ff;
  --bg2: #eaf3fb;
  --card: #ffffff;
  --ink: #1f2a37;
  --dim: #5b6b7c;
  --line: #dbe7f3;
  --pri: #e8402f;          /* 단추(코랄 #FF4D3D 보다 한 톤 진하게 — 흰 글자 대비) */
  --coral: #ff4d3d;
  --pri-soft: #ffeceb;
  --sky: #2f7fd6;
  --sky-soft: #edf5fd;
  --good: #16a075;
  --warn-bg: #fff6d6;
  --warn-line: #f2d77a;
  --bad: #d93a3f;
  --r: 18px;
  --shadow: 0 2px 12px rgba(40, 80, 120, 0.07);
  --tabh: 58px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg) 0, var(--bg2) 100%) fixed;
  background-color: var(--bg);
  color: var(--ink);
  font-family: Pretendard, "Pretendard Variable", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
body.has-tabs { padding-bottom: calc(var(--tabh) + env(safe-area-inset-bottom) + 12px); }
a { color: var(--sky); text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

/* 머리줄 */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px max(16px, calc((100vw - 960px) / 2 + 16px));
  background: rgba(244, 249, 255, 0.9);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 8px; color: var(--ink); min-width: 0; flex-wrap: wrap; row-gap: 0; }
.brand .mark { width: 30px; height: 30px; flex: none; align-self: center; }
.brand .name { font-weight: 800; font-size: 18px; letter-spacing: -0.4px; white-space: nowrap; }
.brand .model { color: var(--dim); font-size: 12px; font-weight: 600; white-space: nowrap; }
.topr { display: flex; align-items: center; gap: 12px; font-size: 14px; flex: none; }
.topr .who { color: var(--dim); max-width: 7em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topr .out { color: var(--dim); padding: 10px 0; }
@media (max-width: 400px) { .topr .who { display: none; } }

.wrap { max-width: 960px; margin: 0 auto; padding: 14px 16px 32px; }
.pageh { font-size: 22px; letter-spacing: -0.6px; margin: 6px 0 14px; }
.pageh.sm { font-size: 19px; margin: 0 0 12px; }
.h2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; font-size: 18px; letter-spacing: -0.4px; margin: 0 0 12px; }
.h2 small { font-size: 13px; font-weight: 500; }
.h2 .n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 14px; align-self: center; }
.dim { color: var(--dim); }
.hint { color: var(--dim); font-size: 14px; margin: 8px 0 0; }
.bad-t { color: var(--bad); }
.back { display: inline-block; padding: 8px 0 10px; color: var(--dim); font-size: 15px; }

/* 카드 */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 16px; margin: 0 0 14px; }
.card.narrow { max-width: 440px; margin: 28px auto; }
.card h1 { font-size: 22px; margin: 4px 0 6px; letter-spacing: -0.5px; }
.lead { color: var(--dim); }
.sec { margin: 18px 0 8px; }
.empty { background: var(--card); border: 1px dashed var(--line); border-radius: var(--r); padding: 18px 16px; color: var(--dim); }
.alert { background: var(--sky-soft); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; margin: 10px 0; font-size: 15px; }
.alert.bad { background: #fdecec; border-color: #f5c2c4; color: #8a1f23; }

/* 입력 */
input[type="text"], input[type="url"], input[type="search"], input[type="password"], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); min-height: 46px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 13px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(47, 127, 214, 0.14); }
.lbl { display: block; font-weight: 700; font-size: 15px; margin: 14px 0 6px; }
.lbl em { font-style: normal; color: var(--pri); font-size: 13px; margin-left: 4px; }
.lbl small { font-weight: 500; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 4px; font-size: 15px; cursor: pointer; min-height: 44px; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--pri); }
.check small { display: block; color: var(--dim); }
.row { display: flex; gap: 8px; margin: 10px 0 0; }
.row > input { flex: 1; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }

/* 단추 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px;
  border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; font-size: 15px;
  cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: #c4d6ea; }
.btn.primary { background: var(--pri); border-color: var(--pri); color: #fff; }
.btn.primary:hover { background: #d4372a; }
.btn.ghost { background: transparent; color: var(--dim); }
.btn.sm { min-height: 44px; padding: 0 12px; font-size: 14px; }
.btn.wide { width: 100%; }
.btn.big { min-height: 54px; font-size: 18px; }
.btn[disabled] { opacity: 0.55; cursor: default; }

/* 주제 칩 · 가로 스크롤 줄 */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 10px; margin: 0 -16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--line); color: var(--ink); font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap; }
.chip .n { font-size: 12px; font-weight: 700; color: var(--dim); background: var(--bg2); border-radius: 999px; padding: 1px 7px; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.on .n { background: rgba(255, 255, 255, 0.18); color: #fff; }
.chip.add { color: var(--pri); border-style: dashed; }
.search { display: flex; gap: 8px; margin: 2px 0 10px; }
.search input { flex: 1; min-width: 0; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.seg { display: inline-flex; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; max-width: 100%; }
.seg a, .seg label > span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 11px; border-radius: 9px; color: var(--dim); font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.seg a.on, .seg input:checked + span { background: var(--sky-soft); color: var(--sky); }
.seg.pick { flex-wrap: wrap; }
.seg label input { position: absolute; opacity: 0; width: 1px; height: 1px; }

/* 상태 띠 */
.band { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 8px 8px 8px 14px; font-size: 14px; margin: 0 0 6px; }
.band b { color: var(--good); }
.band small { display: block; color: var(--dim); }
.band.warn { background: var(--warn-bg); border-color: var(--warn-line); }
.band-txt { min-width: 0; }

/* 레시피 카드 줄 */
.rail { display: flex; gap: 12px; overflow-x: auto; padding: 2px 16px 12px; margin: 0 -16px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rcard { flex: none; width: min(300px, 82vw); scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.rcard h3 { margin: 0; font-size: 17px; letter-spacing: -0.3px; line-height: 1.35; }
.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.nums div { background: var(--pri-soft); border-radius: 12px; padding: 8px 6px; text-align: center; }
.nums b { display: block; font-size: 18px; color: var(--pri); letter-spacing: -0.4px; }
.nums span { font-size: 12px; color: var(--dim); }
.why { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink); }
.why li { margin: 2px 0; }
.ev { display: flex; align-items: center; gap: 6px; }
.evt { position: relative; width: 44px; height: 70px; border-radius: 8px; overflow: hidden; background: var(--bg2); flex: none; }
.evt img { width: 100%; height: 100%; object-fit: cover; }
.evt span { position: absolute; left: 0; right: 0; bottom: 0; font-size: 10px; color: #fff; background: rgba(0,0,0,.5); text-align: center; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.more { width: 100%; font-size: 14px; }
.more summary { cursor: pointer; color: var(--sky); font-weight: 700; padding: 10px 0; min-height: 44px; }
.kv { display: grid; grid-template-columns: 5.5em 1fr; gap: 6px 10px; margin: 6px 0 0; font-size: 15px; }
.kv dt { color: var(--dim); font-weight: 700; }
.kv dd { margin: 0; min-width: 0; }
.sw { display: inline-block; width: 13px; height: 13px; border-radius: 4px; border: 1px solid var(--line); vertical-align: -2px; margin-right: 3px; }

/* 영상 카드 2열 */
.tog { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--dim); display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.tog input { width: 18px; height: 18px; accent-color: var(--pri); }
.vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .vgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.vcard { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--ink); box-shadow: var(--shadow); }
.vcard.off { opacity: 0.5; filter: grayscale(0.8); }
.vgrid.hide-off .vcard.off { display: none; }
.vth { position: relative; aspect-ratio: 9 / 13; background: var(--bg2); }
.vth img { width: 100%; height: 100%; object-fit: cover; }
.pf { position: absolute; left: 6px; top: 6px; font-size: 11px; font-weight: 800; color: #fff; background: rgba(20, 24, 33, 0.66); border-radius: 6px; padding: 1px 6px; }
.badge { display: inline-block; font-size: 12px; font-weight: 800; border-radius: 7px; padding: 2px 7px; background: var(--bg2); color: var(--dim); }
.vth .badge { position: absolute; right: 6px; bottom: 6px; }
.badge.ok { background: #e3f6ee; color: #0d7a57; }
.badge.wait { background: var(--sky-soft); color: var(--sky); }
.badge.off { background: #eceff3; color: #6b7685; }
.badge.bad { background: #fdecec; color: var(--bad); }
.vmeta { padding: 8px 10px 10px; }
.vt { font-weight: 700; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vs { font-size: 12.5px; color: var(--dim); margin-top: 2px; }

.fold summary { cursor: pointer; min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.fold .row input[type="file"] { padding: 8px; }
.prog { position: relative; height: 10px; background: var(--bg2); border-radius: 99px; overflow: hidden; margin: 10px 0 0; }
.prog i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--pri); transition: width .2s; }
.prog span { position: absolute; right: 6px; top: -20px; font-size: 12px; color: var(--dim); }

/* 영상 상세 */
.vhead { display: flex; gap: 14px; align-items: flex-start; }
.vhthumb { width: 96px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; flex: none; background: var(--bg2); }
.vh1 { font-size: 18px !important; line-height: 1.35; }
.mgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mgrid div { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 9px 6px; text-align: center; }
.mgrid b { display: block; font-size: 18px; }
.mgrid span { font-size: 12px; color: var(--dim); }
.tl { position: relative; height: 34px; margin: 16px 0 6px; background: var(--bg2); border-radius: 8px; overflow: hidden; }
.tl i { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; }
.tl i.cut { background: var(--pri); }
.tl i.beat { top: 60%; background: var(--sky); width: 3px; border-radius: 2px; }
.tl-leg { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--dim); }
.tl-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.tl-leg i.cut { background: var(--pri); } .tl-leg i.beat { background: var(--sky); }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 10px; }
.keys img { border-radius: 10px; }
.sheet { width: 100%; border-radius: 10px; border: 1px solid var(--line); margin: 8px 0; }

/* 만들기 */
.step .h2 { margin-bottom: 10px; }
.rlist { display: grid; gap: 8px; margin-top: 4px; }
.ropt { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; cursor: pointer; background: #fff; }
.ropt input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--pri); flex: none; }
.ropt span { min-width: 0; }
.ropt b { display: block; }
.ropt small { display: block; font-size: 13px; color: var(--ink); }
.ropt small.dim { color: var(--dim); }
.ropt:has(input:checked) { border-color: var(--pri); background: var(--pri-soft); }
.drop { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 110px; border: 2px dashed #b9cde3; border-radius: 16px; background: var(--sky-soft); cursor: pointer; padding: 12px; }
.drop.over { border-color: var(--pri); background: var(--pri-soft); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop b { display: block; font-size: 17px; }
.drop small { color: var(--dim); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 10px; }
.th { position: relative; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: var(--bg2); }
.th img, .th video { width: 100%; height: 100%; object-fit: cover; }
.th .k { position: absolute; left: 4px; top: 4px; font-size: 11px; font-weight: 800; color: #fff; background: rgba(0,0,0,.55); border-radius: 5px; padding: 0 5px; }
.th .x { position: absolute; right: 2px; top: 2px; width: 30px; height: 30px; border: 0; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; font-size: 16px; cursor: pointer; }
.stick { position: sticky; bottom: calc(var(--tabh) + env(safe-area-inset-bottom) + 8px); z-index: 5; background: rgba(244, 249, 255, 0.92); padding: 8px 0 4px; }

/* 만들기 v2 (2026-10-11 msg 7785) — 세 덩어리: 링크/자료 · 스타일 갤러리 · 전체 프롬프트 */
[hidden] { display: none !important; }
.mkhead .lead { margin: -8px 0 14px; font-size: 15px; }
.blk .h2 { align-items: center; }
.hi { width: 22px; height: 22px; color: var(--pri); flex: none; }
.blk .drop { flex-direction: column; gap: 6px; min-height: 150px; transition: background .15s, border-color .15s, min-height .2s; }
.blk .drop.has { min-height: 92px; flex-direction: row; gap: 12px; }
.blk .drop.has .dropi { width: 30px; height: 30px; }
.dropi { width: 42px; height: 42px; color: var(--sky); flex: none; }
.drop.over .dropi { color: var(--pri); }
.drop:focus-within { outline: 3px solid var(--sky); outline-offset: 2px; }
.linkf { margin-top: 12px; }
.ok-t { color: var(--good); }
textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.gtools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0 0 12px; }
.gtools .chips { margin: 0; padding: 2px 0 4px; flex: 1 1 220px; min-width: 0; }
.chips.sm .chip { min-height: 40px; padding: 0 12px; font-size: 14px; }
.seg button { display: inline-flex; align-items: center; min-height: 38px; padding: 0 11px; border: 0; border-radius: 9px; background: transparent;
  color: var(--dim); font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.seg button.on { background: var(--sky-soft); color: var(--sky); }
.ggrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .ggrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 880px) { .ggrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gcard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--line); border-radius: 16px;
  overflow: hidden; cursor: pointer; transition: transform .15s ease, border-color .15s, box-shadow .15s; min-width: 0; }
.gcard input { position: absolute; opacity: 0; width: 1px; height: 1px; }
@media (hover: hover) { .gcard:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(40, 80, 120, 0.13); } }
.gcard.on, .gcard:has(input:checked) { border-color: var(--pri); box-shadow: 0 0 0 3px rgba(232, 64, 47, 0.22); }
.gcard:has(input:focus-visible) { outline: 3px solid var(--sky); outline-offset: 2px; }
.gv { position: relative; aspect-ratio: 9 / 16; background: #0f1218; overflow: hidden; }
.gv video, .gv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gviews { position: absolute; left: 8px; bottom: 8px; font-size: 12px; font-weight: 800; color: #fff; background: rgba(0, 0, 0, 0.55);
  border-radius: 7px; padding: 2px 7px; }
.badge.newb { position: absolute; left: 8px; top: 8px; background: var(--coral); color: #fff; box-shadow: 0 2px 8px rgba(255, 77, 61, 0.4); }
.gm { padding: 9px 10px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gm b { font-size: 14.5px; line-height: 1.35; letter-spacing: -0.2px; }
.gm small { font-size: 12.5px; line-height: 1.4; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gm small.dim { color: var(--dim); display: block; }
.gm a.src { color: var(--sky); font-weight: 700; display: inline-block; padding: 4px 0; }
.gchk { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border-radius: 99px; background: rgba(255, 255, 255, 0.82);
  border: 2px solid #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.28); transition: background .15s, transform .15s; }
.gcard.on .gchk, .gcard:has(input:checked) .gchk { transform: scale(1.06);
  background: var(--pri) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 17px no-repeat; }
.ai-v { background: linear-gradient(160deg, #ff7a52 0%, #e8402f 38%, #6a5cff 100%); display: grid; place-items: center; align-content: center; gap: 12px; color: #fff; }
.ai-orb { width: 74px; height: 74px; border-radius: 24px; background: rgba(255, 255, 255, 0.18); display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); animation: aiPulse 2.6s ease-in-out infinite; }
.ai-orb svg { width: 44px; height: 44px; }
.ai-t { font-weight: 900; font-size: 20px; letter-spacing: -0.5px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2); }
@keyframes aiPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@media (prefers-reduced-motion: reduce) { .ai-orb { animation: none; } }
.dropveil { position: fixed; inset: 0; z-index: 80; background: rgba(232, 64, 47, 0.10); border: 4px dashed var(--pri); display: grid;
  place-items: center; pointer-events: none; }
.dropveil div { background: #fff; padding: 14px 20px; border-radius: 14px; font-weight: 800; box-shadow: var(--shadow); }
.vth video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* msg 7822 — 쇼릴 모션그래픽 만들기 화면과 같은 짜임(① 프롬프트 ② 링크·자료 ③ 스타일 창고) */
.hint.top0 { margin: -4px 0 4px; }
.cnt-row { display: flex; justify-content: flex-end; margin-top: 4px; }
.cnt { font-size: 12px; color: var(--dim); font-weight: 600; }
.step .lbl { margin-top: 12px; }
.drop .dzi { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #fff; color: var(--sky);
  box-shadow: var(--shadow); margin-bottom: 4px; }
.drop.over .dzi { color: var(--pri); }
.drop .dz-m { display: none; }
@media (hover: none) and (pointer: coarse) { .drop .dz-pc { display: none; } .drop .dz-m { display: block; } }
.blk .drop, .step .drop { flex-direction: column; gap: 4px; min-height: 150px; transition: background .15s, border-color .15s; }
.step .drop.has { min-height: 96px; }
.step .drop.has .dzi { width: 40px; height: 40px; }
.gtools { justify-content: flex-start; }
.gsort { display: inline-flex; gap: 4px; padding: 3px; background: var(--bg2); border-radius: 12px; }
.gs { min-height: 40px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--dim); font-weight: 700; font-size: 14px; cursor: pointer; }
.gs.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(18, 18, 42, 0.1); }
.gref { display: block; margin-top: 4px; font-size: 11.5px; color: #7d8a99; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gref a.src { padding: 0; display: inline; }
.ai-v { position: relative; background: radial-gradient(120% 120% at 20% 10%, #ff7a52 0%, #e8402f 45%, #3a1f6e 100%); overflow: hidden; }
.ai-v i { position: absolute; border-radius: 99px; filter: blur(1px); opacity: .9; }
.ai-v i:nth-child(1) { width: 34%; aspect-ratio: 1; left: 10%; top: 22%; background: rgba(255, 214, 102, 0.55); animation: gfloat 5s ease-in-out infinite; }
.ai-v i:nth-child(2) { width: 24%; aspect-ratio: 1; right: 14%; top: 14%; background: rgba(120, 190, 255, 0.55); animation: gfloat 6s ease-in-out -2s infinite; }
.ai-v i:nth-child(3) { width: 20%; aspect-ratio: 1; right: 30%; bottom: 12%; background: rgba(255, 255, 255, 0.45); animation: gfloat 7s ease-in-out -4s infinite; }
.ai-v em { position: relative; font-style: normal; font-weight: 900; letter-spacing: 3px; color: #fff; font-size: 20px; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25); }
@keyframes gfloat { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(8%, -10%); } }
@media (prefers-reduced-motion: reduce) { .ai-v i { animation: none; } }
.namebox { border: 2px solid var(--warn-line); background: var(--warn-bg); }

/* 작업 화면 */
.steps { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0 0 10px; font-size: 12px; color: var(--dim); }
.steps li { flex: 1; text-align: center; padding-top: 6px; border-top: 3px solid var(--line); min-width: 0; }
.steps li.on { color: var(--pri); border-color: var(--pri); font-weight: 800; }
.steps li.past { color: var(--ink); border-color: #8fb3db; }
.bar { height: 12px; background: var(--bg2); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--coral), var(--pri)); border-radius: 99px; transition: width .4s; }
.stage { margin: 10px 0 0; }
.notes { margin: 8px 0 0; padding-left: 18px; font-size: 14px; color: #8a5a00; }
.cuts { display: grid; gap: 8px; }
.cutc { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 8px; background: #fff; }
.cutc .cth { width: 54px; height: 96px; border-radius: 8px; object-fit: cover; background: var(--bg2); }
.cutc .ci { min-width: 0; }
.cutc .cm { font-size: 12.5px; color: var(--dim); }
.cutc input { min-height: 42px; font-size: 15px; margin-top: 4px; }
.cutc .mv { display: flex; flex-direction: column; gap: 4px; }
.cutc .mv button { width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: 15px; }
.unused { font-size: 13px; color: var(--dim); margin-top: 8px; }
.player { background: #0f1218; border-radius: 16px; overflow: hidden; max-width: 380px; margin: 0 auto 12px; }
.player video { width: 100%; aspect-ratio: 9 / 16; display: block; background: #000; }

/* 보관함 */
.libhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
@media (min-width: 720px) { .lgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lcard { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.lth { position: relative; display: block; aspect-ratio: 9 / 13; background: var(--bg2); }
.lth img { width: 100%; height: 100%; object-fit: cover; }
.lth .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); font-size: 14px; }
.lth .badge { position: absolute; left: 6px; top: 6px; }
.lmeta { padding: 8px 10px 4px; }
.lacts { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 8px 10px; margin-top: auto; }
.lacts .btn { flex: 1 1 auto; padding: 0 8px; }

/* 로그인 */
.login { text-align: center; }
.login-mark svg { width: 64px; height: 64px; margin: 4px auto 6px; }
.login form { text-align: left; margin-top: 10px; }
.pin { font-size: 22px !important; text-align: center; letter-spacing: 6px; }
.staff { margin-top: 18px; text-align: left; }
.staff summary { cursor: pointer; color: var(--sky); font-weight: 700; min-height: 44px; display: flex; align-items: center; justify-content: center; }

/* 하단 탭 */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: center;
  height: calc(var(--tabh) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tab { flex: 1; max-width: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--dim); font-size: 12.5px; font-weight: 700; }
.tab svg { width: 24px; height: 24px; }
.tab.on { color: var(--pri); }

.toast { position: fixed; left: 50%; bottom: calc(var(--tabh) + env(safe-area-inset-bottom) + 18px); transform: translate(-50%, 20px);
  max-width: min(92vw, 520px); background: #1f2a37; color: #fff; padding: 11px 16px; border-radius: 12px; font-size: 15px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
