/* 혜안 팀소개 — 회색 배경 + 흰 카드 + 초록 포인트 */
:root {
  --green: #0a9a55; --green-d: #088548; --green-bg: #e6f6ed; --green-t: #087443;
  --t1: #191f28; --t2: #4e5968; --t3: #8b95a1; --t4: #b0b8c1;
  --line: #e5e8eb; --line2: #d5dae0; --fill: #f2f4f6; --fill2: #f8f9fa; --bg: #f2f4f6;
  --red: #e5404d; --red-bg: #feecee; --amber: #b86e00; --amber-bg: #fff4de;
  --ring: 0 0 0 3px rgba(10, 154, 85, .16);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--t1);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  font-size: 15px; line-height: 1.55; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; letter-spacing: inherit; }
input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid rgba(10, 154, 85, .55); outline-offset: 2px; }
::selection { background: #c9eedb; }
b, strong { font-weight: 600; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-in { max-width: 1080px; margin: 0 auto; height: 56px; padding: 0 24px; display: flex; align-items: center; gap: 36px; }
.brand { display: flex; align-items: center; gap: 8px; flex: none; }
.brand-icon { height: 26px; width: auto; display: block; }
.brand-logo { height: 24px; width: auto; display: block; }
.brand-sub { font-size: 13px; color: var(--t3); font-weight: 500; }
.tabs { display: flex; gap: 24px; height: 100%; }
.tabs a { position: relative; display: flex; align-items: center; height: 100%; color: var(--t3); font-size: 15px; font-weight: 600; white-space: nowrap; transition: color .15s; }
.tabs a:hover { color: var(--t2); }
.tabs a.on { color: var(--t1); font-weight: 700; }
.tabs a.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--t1); }

main { max-width: 1080px; margin: 0 auto; padding: 32px 24px 120px; }
.narrow { max-width: 420px; margin: 24px auto 0; }
.narrow-l { max-width: 720px; margin: 0 auto; }

/* ---------- type ---------- */
.h1 { font-size: 26px; font-weight: 700; line-height: 1.3; margin: 0; letter-spacing: -0.03em; }
.h2 { font-size: 17px; font-weight: 700; margin: 0; letter-spacing: -0.02em; }
.h3 { font-size: 15px; font-weight: 700; margin: 0; }
.sub { color: var(--t2); }
.muted { color: var(--t3); font-size: 13px; }
.sec-title { display: flex; align-items: center; justify-content: space-between; margin: 28px 4px 10px; }
.sec-title .muted { font-weight: 600; margin-left: 2px; }
.page-head { margin: 0 4px 20px; }
.page-head .sub { margin: 6px 0 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--green-t); background: var(--green-bg); border-radius: 6px; padding: 3px 8px; margin-bottom: 10px; }

/* ---------- surfaces ---------- */
.card { background: #fff; border-radius: 16px; padding: 20px; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 40px; padding: 0 16px; border-radius: 10px; font-size: 15px; font-weight: 600; white-space: nowrap; transition: background .15s, transform .08s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-d); }
.btn-primary:disabled { background: #a8d9bf; cursor: not-allowed; transform: none; }
.btn-light { background: var(--green-bg); color: var(--green-t); }
.btn-light:hover { background: #d5f0e1; }
.btn-gray { background: #fff; color: var(--t2); box-shadow: inset 0 0 0 1px var(--line2); }
.btn-gray:hover { background: var(--fill2); }
.btn-danger { background: var(--red-bg); color: var(--red); }
.btn-danger:hover { background: #fddde0; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; height: 48px; border-radius: 12px; font-size: 16px; }
.link { color: var(--green-t); font-size: 13px; font-weight: 600; }
.link:hover { text-decoration: underline; }
p .link { font-size: inherit; }
.icon-btn { width: 22px; height: 20px; border-radius: 5px; display: grid; place-items: center; color: var(--t3); }
.icon-btn:hover { background: var(--fill); color: var(--t1); }
.icon-btn:disabled { opacity: .3; cursor: default; background: none; }

/* ---------- notice ---------- */
.hl { color: var(--t1); font-weight: 600; background: linear-gradient(transparent 58%, #c5efd8 58%); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font-size: 13px; font-weight: 500; padding: 4px 10px; border-radius: 99px; background: var(--fill); color: var(--t2); transition: background .12s, color .12s; }
button.chip { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
button.chip:hover { background: var(--green-bg); color: var(--green-t); box-shadow: none; }

/* ---------- team list ---------- */
.progress-row { display: flex; align-items: center; gap: 20px; }
.progress-row .pg { flex: 1; min-width: 0; }
.pg-text { font-size: 14px; color: var(--t2); margin-bottom: 10px; }
.pg-text b { color: var(--t1); font-size: 22px; font-weight: 800; margin-left: 6px; letter-spacing: -0.02em; }
.bar { height: 6px; border-radius: 6px; background: var(--fill); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: var(--green); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.tlist { background: #fff; border-radius: 16px; padding: 8px; }
.trow { display: flex; align-items: center; gap: 12px; padding: 11px 12px; width: 100%; text-align: left; border-radius: 12px; transition: background .12s; }
.trow:hover { background: var(--fill); }
.trow .meta { flex: 1; min-width: 0; }
.trow .name { font-weight: 700; font-size: 15px; }
.trow .name .leader { font-weight: 500; color: var(--t3); font-size: 13px; margin-left: 6px; }
.trow .books { color: var(--t3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .chev { color: var(--t4); flex: none; display: flex; }
.badge { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 0 8px; height: 24px; border-radius: 6px; white-space: nowrap; flex: none; }
.badge.done { color: var(--green-t); background: var(--green-bg); }
.badge.writing { color: var(--t2); background: var(--fill); }
.empty { text-align: center; padding: 36px 12px; color: var(--t3); }

/* ---------- editor ---------- */
.ed-top { display: flex; align-items: center; gap: 10px; margin: -8px 0 16px; }
.ed-top .muted { font-weight: 500; }
.ed-top .h1 { font-size: 22px; }
.back { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--t2); flex: none; }
.back:hover { background: #e5e8eb; }
.ed-top .save-state { margin-left: auto; font-size: 13px; color: var(--t3); display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.ed-grid { display: grid; grid-template-columns: minmax(0, 1fr) 392px; gap: 16px; align-items: start; }
.ed-form { min-width: 0; }
.ed-preview { position: sticky; top: 72px; }
.pv-card { padding: 16px; }
.pv-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pv-head .h3 { font-size: 14px; }
.pv-frame { border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); margin: 0 auto; }
.pv-note { font-size: 12px; color: var(--t3); margin: 10px auto 0; }
.hc-host { position: relative; overflow: hidden; width: 100%; }
/* 카드 원본(1080px)이 부모 칸 너비를 밀어내지 않도록 흐름에서 뺌 */
.hc-scale { position: absolute; left: 0; top: 0; width: 1080px; height: 1350px; transform-origin: 0 0; }

.banner { display: flex; gap: 12px; align-items: center; padding: 12px 12px 12px 16px; border-radius: 12px; margin-bottom: 12px; font-size: 14px; }
.banner.done { background: var(--green-bg); color: var(--green-t); }
.banner .tx { flex: 1; }
.banner .tx b { font-weight: 700; margin-right: 8px; }
.banner .ic { display: none; }
.banner .btn { background: #fff; color: var(--green-t); }
.banner .btn:hover { background: #f4fbf7; }

.fsec + .fsec { margin-top: 12px; }
.fsec-h { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.fsec-h .num { width: 22px; height: 22px; border-radius: 50%; background: var(--green-bg); color: var(--green-t); font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; }
.fsec-h > div { display: flex; align-items: baseline; gap: 10px; flex: 1; flex-wrap: wrap; }
.fsec-h p { margin: 0; color: var(--t3); font-size: 13px; }

.field { display: block; }
.field + .field, .row2 + .field, .field + .row2, .row2 + .row2 { margin-top: 14px; }
.lbl { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; font-size: 13px; font-weight: 600; color: var(--t2); margin-bottom: 6px; }
.lbl .opt { color: var(--t3); font-weight: 400; }
.inp { width: 100%; height: 44px; border: 1px solid var(--line2); background: #fff; border-radius: 10px; padding: 0 12px; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s; }
.inp::placeholder { color: var(--t4); }
.inp:hover:not(:disabled) { border-color: #b9c1c9; }
.inp:focus { border-color: var(--green); box-shadow: var(--ring); }
textarea.inp { height: auto; min-height: 96px; padding: 10px 12px; line-height: 1.6; resize: none; overflow: hidden; display: block; }
textarea.inp.tall { min-height: 180px; }
.inp:disabled { background: var(--fill); border-color: transparent; color: var(--t2); cursor: default; }
.sess .inp:disabled { background: #eceef1; }
.inp.err { border-color: var(--red); }
.inp.err:focus { box-shadow: 0 0 0 3px rgba(229, 64, 77, .14); }
.count { font-size: 12px; font-weight: 500; color: var(--t3); font-variant-numeric: tabular-nums; }
.count.over { color: var(--red); font-weight: 700; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hint { font-size: 12.5px; margin-top: 6px; color: var(--t3); }
.hint:empty { display: none; }
.hint.err { color: var(--red); }
.hint.warn { color: var(--amber); }
.tip { background: var(--fill2); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; color: var(--t2); margin-bottom: 14px; }
.tip b { color: var(--t1); }
.tip.warn { background: var(--amber-bg); color: #8a5300; }
.locked .tip, .locked .hint, .locked .lbl .opt { display: none; }
.locked textarea.inp { min-height: 0; }

.seg { display: inline-flex; background: #e5e8eb; border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { height: 32px; padding: 0 14px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--t3); transition: color .15s; }
.seg button:hover:not(.on) { color: var(--t2); }
.seg button.on { background: #fff; color: var(--t1); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }

.sess { background: var(--fill2); border-radius: 14px; padding: 16px; }
.sess + .sess { margin-top: 10px; }
.sess-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; min-height: 32px; }
.sess-h .h3 { display: inline; font-size: 16px; }
.sess-h .preview-line { display: inline; font-size: 13px; color: var(--t3); margin-left: 8px; }
.sess .divider { margin: 16px 0; }
.add-sess { width: 100%; margin-top: 10px; height: 44px; border-radius: 12px; background: var(--fill); color: var(--t2); font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 4px; transition: background .15s; }
.add-sess:hover { background: #e9ecef; }

.cover-row { display: flex; gap: 12px; align-items: flex-start; }
.cover-drop { width: 84px; height: 119px; border-radius: 8px; flex: none; background: #fff; border: 1.5px dashed var(--t4); display: grid; place-items: center; text-align: center; font-size: 12px; color: var(--t3); position: relative; overflow: hidden; cursor: pointer; transition: border-color .15s, background .15s; }
.cover-drop:hover, .cover-drop.drag { border-color: var(--green); background: var(--green-bg); color: var(--green-t); }
.cover-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-drop:has(img) { border: 0; box-shadow: 0 0 0 1px var(--line); }
.cover-drop .plus { font-size: 20px; display: block; color: var(--t4); line-height: 1.1; }
.cover-side { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cover-side .muted { font-size: 12.5px; }

.ed-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 10px 24px calc(10px + env(safe-area-inset-bottom)); }
.ed-cta-in { max-width: 1080px; margin: 0 auto; display: flex; justify-content: flex-end; }
.ed-cta-in > div { display: flex; gap: 8px; }
.ed-cta-in > div:empty { display: none; }
.ed-cta .btn { height: 44px !important; border-radius: 12px !important; }
.ed-cta .btn-block { width: auto; min-width: 240px; font-size: 15px; }
.mobile-pv { display: none; }
.only-mo { display: none; }

/* ---------- modal ---------- */
.dim { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .15s ease; }
.modal { background: #fff; border-radius: 20px; width: 100%; max-width: 380px; padding: 24px 22px 20px; box-shadow: 0 16px 48px rgba(0, 0, 0, .16); animation: pop .2s cubic-bezier(.2, .9, .3, 1.1); max-height: calc(100vh - 40px); overflow: auto; }
.modal > .h2 { font-size: 19px; }
.modal p { color: var(--t2); margin: 6px 0 0; font-size: 14px; }
.modal .acts { display: flex; gap: 8px; margin-top: 22px; }
.modal .acts .btn { flex: 1; height: 48px; border-radius: 12px; }
.modal .btn-gray { background: var(--fill); box-shadow: none; }
.modal .btn-gray:hover { background: #e9ecef; }
.modal.wide { max-width: 900px; padding: 0; overflow: hidden; display: grid; grid-template-columns: 1fr 340px; max-height: calc(100vh - 40px); }
.rv-left { background: var(--fill); padding: 24px; display: flex; align-items: center; justify-content: center; overflow: auto; max-height: calc(100vh - 40px); }
.rv-left .hc-host { box-shadow: 0 6px 24px rgba(0, 0, 0, .1); border-radius: 4px; }
.rv-host { width: 100%; max-width: min(520px, calc((100vh - 90px) * 0.8)); }
.rv-right { padding: 26px 22px 20px; display: flex; flex-direction: column; overflow: auto; }
.rv-right .acts { margin-top: auto; padding-top: 16px; }
.checks { list-style: none; padding: 0; margin: 16px 0 0; }
.checks li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks .ci { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; flex: none; margin-top: 2px; }
.checks .ok .ci { background: var(--green); }
.checks .err .ci { background: var(--red); }
.checks .warn .ci { background: #e59a1c; }
.checks small { display: block; color: var(--t3); font-size: 12.5px; font-weight: 400; }
.pin-inputs { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.pin-inputs input { width: 50px; height: 58px; text-align: center; font-size: 24px; font-weight: 700; border-radius: 12px; border: 1.5px solid transparent; background: var(--fill); outline: none; transition: border-color .15s, background .15s; }
.pin-inputs input:focus { border-color: var(--green); background: #fff; }
.pin-err { text-align: center; color: var(--red); font-size: 13px; min-height: 20px; margin-top: 10px; }
.shake { animation: shake .3s; }
.big-preview { max-width: min(520px, calc((100vh - 140px) * 0.8)); width: 100%; margin: 0 auto; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }

/* ---------- success ---------- */
.success { text-align: center; background: #fff; border-radius: 20px; padding: 40px 24px 28px; max-width: 480px; }
.success .check { width: 56px; height: 56px; border-radius: 50%; background: var(--green); display: grid; place-items: center; margin: 0 auto 16px; animation: pop .4s cubic-bezier(.2, .9, .3, 1.4); }
.success .check svg { width: 30px; height: 30px; }
.success .h1 { font-size: 22px; }
.success p { color: var(--t2); margin: 8px 0 0; }
.success .acts { display: flex; gap: 8px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.success .thumb { max-width: 260px; margin: 28px auto 0; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 8px 24px rgba(0, 0, 0, .08); }

/* ---------- gallery / admin ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin-top: 14px; }
.g-item { cursor: zoom-in; background: #fff; border-radius: 12px; padding: 8px 8px 10px; transition: transform .15s, box-shadow .15s; }
.g-item:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .07); }
.g-item .hc-host { border-radius: 6px; }
.g-cap { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 4px 0; font-size: 14px; }
.g-cap b { font-weight: 700; }
.adm-top { flex-wrap: wrap; margin-top: 0; }
.adm-top .h1 { font-size: 26px; }
.adm-top-acts { margin-left: auto; display: flex; gap: 8px; }
.adm-top-acts .btn { height: 40px; font-size: 14px; padding: 0 16px; border-radius: 10px; }
.adm-grid { grid-template-columns: minmax(0, 1fr) 320px; }
.adm-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.adm-row:first-of-type { border-top: 0; padding-top: 0; }
.adm-info { flex: 1; min-width: 0; }
.adm-info b { font-weight: 700; }
.adm-info .badge { margin-left: 4px; height: 20px; padding: 0 6px; font-size: 11.5px; }
.adm-books { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-acts { display: flex; gap: 6px; flex: none; }
.ord { display: flex; flex-direction: column; flex: none; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 10px); background: rgba(25, 31, 40, .94); color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; z-index: 200; max-width: calc(100vw - 40px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.spinner { width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shake { 25%, 75% { transform: translateX(-6px); } 50% { transform: translateX(6px); } }

/* ---------- 창 높이에 맞춰 미리보기 카드 크기 제한 ---------- */
.ed-preview .pv-frame, .ed-preview .pv-note { width: min(100%, calc((100vh - 272px) * 0.8)); }
@media (max-height: 720px) {
  .ed-preview .pv-note { display: none; }
  .ed-preview .pv-frame { width: min(100%, calc((100vh - 226px) * 0.8)); }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .only-mo { display: inline; }
  .btn.only-mo { display: inline-flex; }
  .only-pc { display: none !important; }
  .cta-pair .btn { flex: 1; min-width: 0; }
  .ed-grid, .adm-grid { grid-template-columns: minmax(0, 1fr); }
  .adm-grid > div { min-width: 0; }
  .ed-preview { display: none; }
  .mobile-pv { display: inline-flex; }
  .ed-cta-in > div { width: 100%; }
  .ed-cta .btn-block { flex: 1; min-width: 0; }
  .modal.wide { display: block; overflow-y: auto; }
  .rv-left { padding: 16px; max-height: none; }
  .rv-host { max-width: min(300px, calc((100vh - 280px) * 0.8)); }
  .rv-right { padding: 20px 18px 16px; }
  .rv-right .acts { position: sticky; bottom: 0; background: #fff; padding-bottom: 2px; }
}
@media (max-width: 640px) {
  .nav-in { gap: 18px; padding: 0 16px; height: 52px; }
  .brand-sub { display: none; }
  .tabs { gap: 16px; }
  .tabs a { font-size: 14.5px; }
  main { padding: 20px 14px 110px; }
  .h1 { font-size: 22px; }
  .card { padding: 18px 16px; }
  .row2 { grid-template-columns: 1fr; gap: 14px; }
  .fsec-h p { display: none; }
  .inp,   .sess { padding: 14px 12px; }
  .sess-h { flex-wrap: wrap; }
  .sess-h .preview-line { display: block; margin: 0; }
  .progress-row { gap: 12px; }
  .ed-top { margin-top: 0; }
  .ed-top .h1 { font-size: 20px; }
  .ed-cta { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
  .ed-cta .btn { height: 48px !important; }
  .banner { flex-wrap: wrap; }
  .adm-row { flex-wrap: wrap; }
  .adm-acts { width: 100%; padding-left: 32px; }
  .adm-acts .btn { flex: 1; }
  .adm-top-acts { margin-left: 0; width: 100%; }
  .adm-top-acts .btn { flex: 1; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .success { padding: 32px 18px 22px; }
  .dim.sheet { align-items: flex-end; padding: 0; }
  .dim.sheet .modal { border-radius: 20px 20px 0 0; max-width: none; padding-bottom: calc(20px + env(safe-area-inset-bottom)); animation: up .22s ease; }
}
@keyframes up { from { transform: translateY(24px); opacity: 0; } }

/* 운영진 목록의 삭제 버튼은 평소엔 조용하게, 올렸을 때만 빨갛게 */
.adm-acts .btn-danger { background: transparent; color: var(--t3); }
.adm-acts .btn-danger:hover { background: var(--red-bg); color: var(--red); }

/* 운영진 표지 미리보기는 작게 */
[data-cover-pv] { max-width: 280px; }
.g-item { min-width: 0; }

/* 완료된 카드 가로 목록 */
.strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 4px 12px; margin: 0 -4px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #cfd4da transparent; }
.strip::-webkit-scrollbar { height: 6px; }
.strip::-webkit-scrollbar-thumb { background: #cfd4da; border-radius: 6px; }
.strip-item { flex: none; width: 156px; background: #fff; border-radius: 12px; padding: 6px 6px 9px; text-align: left; scroll-snap-align: start; cursor: zoom-in; transition: transform .15s, box-shadow .15s; }
.strip-item:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .08); }
.strip-item .hc-host { border-radius: 7px; pointer-events: none; }
.strip-item span { display: block; margin: 7px 4px 0; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .strip-item { width: 132px; } .sec-title > .muted { display: none; } }

/* '이전 회차와 동일한 책' 선택 */
.book-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--t2); padding: 5px 4px; border-radius: 8px; }
.check i { width: 20px; height: 20px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line2); display: grid; place-items: center; transition: background .12s, box-shadow .12s; }
.check:hover:not(:disabled) i { box-shadow: inset 0 0 0 1.5px var(--green); }
.check.on { color: var(--green-t); }
.check.on i { background: var(--green); box-shadow: none; }
.check.on i::after { content: ''; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.check:disabled { cursor: default; opacity: .75; }
.same-book { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.same-book img, .same-book .ph { width: 40px; height: 57px; object-fit: cover; border-radius: 4px; background: var(--fill); flex: none; }
.same-book b { display: block; font-weight: 700; }
.same-book span { font-size: 13px; color: var(--t2); }
.same-book small { display: block; font-size: 12px; color: var(--t3); margin-top: 2px; }

/* 완료된 카드에서는 표지를 눌러도 반응하지 않게 */
.locked .cover-drop { pointer-events: none; cursor: default; }

/* ---------- 공지사항 (게시글 형태) ---------- */
.post { background: #fff; border-radius: 16px; padding: 28px 32px 32px; }
.post-head { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.post-title { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.35; margin: 0; }
.post-lead { margin: 20px 0 0; font-size: 15.5px; color: var(--t1); line-height: 1.7; }
.post-sec { margin-top: 26px; }
.post-sec h3 { font-size: 17px; font-weight: 700; margin: 0 0 10px; letter-spacing: -0.02em; }
.post-sec ul { margin: 0; padding: 14px 18px 14px 36px; background: var(--fill2); border: 1px solid var(--line); border-radius: 12px; color: var(--t2); line-height: 1.7; }
.post-sec li + li { margin-top: 6px; }
.post-sec li::marker { color: var(--t4); }
.post-sec strong { color: var(--t1); }
.post-ex { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; gap: 20px; align-items: flex-start; }
.post-ex-card { width: 168px; flex: none; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 6px 18px rgba(0, 0, 0, .07); cursor: zoom-in; transition: transform .15s; }
.post-ex-card:hover { transform: translateY(-2px); }
.post-ex-card .hc-host { pointer-events: none; }
.post-ex-tx { flex: 1; min-width: 0; }
.post-ex-tx h3 { font-size: 17px; font-weight: 700; margin: 0; }
.post-ex-tx p { margin: 4px 0 12px; color: var(--t2); }
.post-ex-tx dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0 0 14px; font-size: 14px; }
.post-ex-tx dt { color: var(--t3); font-weight: 600; white-space: nowrap; }
.post-ex-tx dd { margin: 0; color: var(--t1); }
.post-next { margin-top: 12px; background: #fff; border-radius: 16px; padding: 16px 20px; display: flex; align-items: center; gap: 16px; }
.post-next > div { flex: 1; min-width: 0; }
.post-next b { display: block; font-weight: 700; }
.post-next span { font-size: 13.5px; color: var(--t2); }
@media (max-width: 640px) {
  .post { padding: 22px 18px 24px; }
  .post-title { font-size: 21px; }
  .post-sec ul { padding: 12px 14px 12px 30px; }
  .post-ex { flex-direction: column; }
  .post-ex-card { width: 150px; }
  .post-next { flex-direction: column; align-items: stretch; }
}

/* 본인 팀 삭제 (편집 화면 맨 아래, 눈에 덜 띄게) */
.del-team { text-align: center; margin-top: 16px; }
.del-team button { font-size: 13px; font-weight: 600; color: var(--red); padding: 6px 10px; border-radius: 8px; }
.del-team button:hover { background: var(--red-bg); }
.locked .del-team { display: block; }

/* 날짜 · 시간 한 줄 */
.time-row { display: flex; align-items: center; gap: 6px; }
.time-row .inp { flex: 1; min-width: 0; }
.time-row span { color: var(--t3); flex: none; }
.time-row .note { font-size: 12.5px; margin-left: 2px; }
.post-head { padding-bottom: 16px; }

/* ---------- 모바일: 작게, "라벨 : 입력칸" 한 줄씩 ---------- */
@media (max-width: 640px) {
  body { font-size: 14px; }
  main { padding: 14px 12px 96px; }
  .nav-in { height: 46px; gap: 14px; padding: 0 12px; }
  .brand-icon { height: 22px; }
  .tabs { gap: 14px; }
  .tabs a { font-size: 14px; }
  .h1 { font-size: 19px; }
  .h2 { font-size: 15px; }
  .h3 { font-size: 14px; }
  .card { padding: 14px 12px; border-radius: 14px; }
  .btn { height: 36px; font-size: 14px; padding: 0 12px; }
  .btn-sm { height: 28px; font-size: 12.5px; padding: 0 10px; }
  .btn-block { height: 44px; font-size: 15px; }
  .sec-title { margin: 20px 2px 8px; }
  .page-head { margin: 0 2px 14px; }
  .page-head .sub { font-size: 13.5px; }

  /* 입력 폼 */
  .ed-top { margin-bottom: 10px; gap: 6px; }
  .ed-top .h1 { font-size: 18px; }
  .ed-top .muted { font-size: 12px; }
  .back { width: 30px; height: 30px; }
  .fsec + .fsec { margin-top: 8px; }
  .fsec-h { margin-bottom: 10px; gap: 8px; }
  .fsec-h .num { width: 20px; height: 20px; font-size: 11px; }
  .inp { height: 36px; font-size: 14px; padding: 0 10px; border-radius: 8px; }
  textarea.inp { padding: 8px 10px; min-height: 68px; line-height: 1.55; }
  textarea.inp.tall { min-height: 120px; }
  .lbl { font-size: 12.5px; margin-bottom: 4px; }
  .field + .field, .row2 + .field, .field + .row2, .row2 + .row2 { margin-top: 8px; }
  .row2 { gap: 8px; }
  .hint { font-size: 12px; margin-top: 4px; }
  .tip { padding: 8px 10px; font-size: 12.5px; margin-bottom: 10px; }
  .ed-form label:has(> input.inp), .ed-form .tfield, .ed-form .field:has(> .cover-row) { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 8px; align-items: center; }
  .ed-form label:has(> input.inp) > *, .ed-form .tfield > *, .ed-form .field:has(> .cover-row) > * { grid-column: 2; }
  .ed-form label:has(> input.inp) > .lbl, .ed-form .tfield > .lbl, .ed-form .field:has(> .cover-row) > .lbl { grid-column: 1; grid-row: 1; margin: 0; white-space: nowrap; }
  .ed-form label:has(> input.inp) > .lbl .opt { display: none; }
  .ed-form .field:has(> .cover-row) { align-items: start; margin-top: 8px !important; }
  .ed-form .field:has(> .cover-row) > .lbl { padding-top: 4px; }
  .time-row .inp { flex: 0 1 68px; text-align: center; padding: 0 4px; }
  .time-row .note { font-size: 12px; }
  .chips { gap: 4px; margin-top: 6px; }
  .chip { font-size: 12px; padding: 3px 8px; }
  .sess { padding: 12px 10px; border-radius: 12px; }
  .sess + .sess { margin-top: 8px; }
  .sess-h { margin-bottom: 8px; min-height: 0; }
  .sess-h .h3 { font-size: 14.5px; }
  .sess-h .preview-line { font-size: 12px; }
  .sess .divider, .divider { margin: 12px 0; }
  .book-head { margin-bottom: 8px; }
  .check { font-size: 13px; padding: 2px; }
  .check i { width: 18px; height: 18px; }
  .cover-row { flex-direction: row; gap: 10px; align-items: center; }
  .cover-drop { width: 56px; height: 79px; font-size: 10.5px; border-radius: 6px; }
  .cover-drop .plus { font-size: 16px; }
  .cover-side .muted { display: none; }
  .same-book { padding: 8px 10px; margin-bottom: 8px; }
  .add-sess { height: 38px; font-size: 13px; margin-top: 8px; }
  .banner { padding: 10px 12px; font-size: 13px; }
  .ed-cta { padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
  .ed-cta .btn { height: 44px !important; font-size: 15px; }

  /* 목록 · 공지 · 창 */
  .progress-row { gap: 10px; }
  .pg-text { font-size: 13px; margin-bottom: 8px; }
  .pg-text b { font-size: 18px; }
  .tlist { padding: 4px; border-radius: 14px; }
  .trow { padding: 9px 10px; gap: 8px; }
  .trow .name { font-size: 14px; }
  .trow .name .leader, .trow .books { font-size: 12px; }
  .badge { font-size: 11px; height: 20px; padding: 0 6px; }
  .strip-item { width: 112px; padding: 5px 5px 7px; border-radius: 10px; }
  .strip-item span { font-size: 12px; margin: 5px 3px 0; }
  .post { padding: 18px 14px 20px; border-radius: 14px; }
  .post-title { font-size: 19px; }
  .post-lead { font-size: 14px; margin-top: 14px; line-height: 1.6; }
  .post-sec { margin-top: 18px; }
  .post-sec h3 { font-size: 15px; margin-bottom: 8px; }
  .post-sec ul { padding: 10px 12px 10px 26px; line-height: 1.6; border-radius: 10px; }
  .post-ex { margin-top: 20px; padding-top: 16px; gap: 12px; }
  .post-ex-tx h3 { font-size: 15px; }
  .post-ex-tx dl { font-size: 13px; }
  .post-next { padding: 14px 12px; border-radius: 14px; }
  .modal { padding: 20px 16px 16px; }
  .modal > .h2 { font-size: 17px; }
  .modal .acts { margin-top: 16px; }
  .modal .acts .btn { height: 44px; }
  .modal .inp { height: 40px; }
  .pin-inputs input { width: 44px; height: 50px; font-size: 20px; }
  .checks li { font-size: 13px; padding: 7px 0; }
  .rv-right { padding: 16px 14px 14px; }
  .rv-right .h2 { font-size: 18px !important; }
  .success { padding: 26px 14px 18px; }
  .success .check { width: 46px; height: 46px; }
  .success .h1 { font-size: 19px; }
  .toast { font-size: 13px; padding: 9px 14px; bottom: 76px; }
  .adm-top .h1 { font-size: 20px; }
  .del-team { margin-top: 10px; }
}

.tabs a[hidden] { display: none; }
