/* 대강 매칭 앱 — 카카오/토스 스타일 (밝은 회색 배경 · 흰 카드 · 둥근 모서리 · 굵은 제목)
 * 색은 모두 CSS 변수. 센터 화면 꾸미기(관리웹)에서 바꾼 색이 app.js applyBrand() 로 덮어써짐 */
@import url('/vendor/pretendard/pretendardvariable-dynamic-subset.css');

:root {
  --bg: #f5f6f8; --card: #fff; --soft: #f2f3f6; --soft2: #e9ebef; --line: #eceef2; --line2: #d9dde3;
  --text: #191f28; --sub: #4e5968; --muted: #8b95a1;
  --accent: #5b4bd6; --accent-ink: #5b4bd6; --accent2: #8b7cf6; --accent-bg: #efedfd; --accent-text: #3f32a8;
  --btn: #5b4bd6; --btn-text: #fff; --tab: #5b4bd6;
  --hero-text: #fff; --bubble: #5b4bd6; --bubble-text: #fff; --chat-bg: #e8ebf0;
  --danger: #f04452; --danger-bg: #ffeef0; --ok: #12a26a; --ok-bg: #e6f7ef; --warn: #f59f00; --warn-bg: #fff6e0;
  --r-card: 20px; --r: 14px; --tabbar: 60px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --shadow: 0 2px 10px rgba(25, 31, 40, .05);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #101113; --card: #1c1d21; --soft: #26282d; --soft2: #2f3238; --line: #2a2c31; --line2: #3a3d44;
    --text: #eceef1; --sub: #b0b8c1; --muted: #7e8590; --chat-bg: #15171b;
    --danger: #ff6b76; --danger-bg: #3a1f23; --ok: #4fd39a; --ok-bg: #17332a; --warn: #ffc046; --warn-bg: #3a3020; --shadow: none; }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 15px; line-height: 1.5; letter-spacing: -0.2px; -webkit-font-smoothing: antialiased; word-break: keep-all; }
#app { max-width: 560px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(var(--tabbar) + var(--safe-b) + 24px); background: var(--bg); }
body.no-tab #app { padding-bottom: calc(var(--safe-b) + 24px); }
body.has-act #app { padding-bottom: calc(var(--safe-b) + 110px); }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.4px; }
p { margin: 0; }
[hidden] { display: none !important; }
button { font-family: inherit; }

/* ---------- 상단 바 ---------- */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 6px; height: 56px; padding: 0 12px 0 20px; background: var(--bg); }
.top h1 { font-size: 22px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; }
.top.sub { background: var(--card); padding: 0 8px; height: 52px; }
.top.sub h1 { font-size: 17px; font-weight: 600; text-align: center; justify-content: center; }
.top.sub .sp { width: 40px; flex: none; }
.top .ic { width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; color: var(--text); background: none; border: 0; border-radius: 12px; position: relative; cursor: pointer; }
.top .ic:active { background: var(--soft); }
.top .dot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); }

/* ---------- 하단 탭 ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; background: var(--card);
  border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
.tabbar a { flex: 1; max-width: 112px; height: var(--tabbar); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  font-size: 11px; color: var(--muted); position: relative; font-weight: 500; }
.tabbar a i { font-size: 25px; }
.tabbar a.on { color: var(--tab); font-weight: 700; }
.badge { position: absolute; top: 6px; left: 56%; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff;
  font-size: 10px; line-height: 17px; font-style: normal; font-weight: 700; text-align: center; }
.fab { position: fixed; z-index: 19; bottom: calc(var(--tabbar) + var(--safe-b) + 16px); right: max(16px, calc(50% - 280px + 16px));
  height: 52px; padding: 0 20px 0 16px; border-radius: 26px; border: 0; background: var(--btn); color: var(--btn-text);
  display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; box-shadow: 0 6px 20px rgba(0,0,0,.18); cursor: pointer; }
.fab i { font-size: 22px; }
.fab:active { transform: scale(.96); }

/* ---------- 카드·리스트 ---------- */
.card { background: var(--card); border-radius: var(--r-card); margin: 0 16px 12px; padding: 20px; box-shadow: var(--shadow); }
.card.tight { padding: 6px 0; }
.card-h { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.card-h h3 { font-size: 18px; flex: 1; }
.card-h .more { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; }
.list .item, .card.tight .item { display: flex; align-items: center; gap: 12px; padding: 14px 20px; }
.card.tight .item + .item { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 8px; }
.col { display: flex; flex-direction: column; }
.grow { flex: 1; min-width: 0; }
.wrap { flex-wrap: wrap; }
.s { font-size: 13px; color: var(--sub); }
.xs { font-size: 12px; color: var(--muted); }
.b { font-weight: 700; }
.m { font-weight: 600; }
.big { font-size: 24px; font-weight: 800; letter-spacing: -0.6px; }
.accent { color: var(--accent-ink); }
.danger-t { color: var(--danger); }
.ok-t { color: var(--ok); }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sec-title { font-size: 15px; font-weight: 700; margin: 22px 20px 10px; display: flex; align-items: center; gap: 6px; }
.sec-title .xs { font-weight: 400; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile { background: var(--soft); border-radius: 14px; padding: 12px 14px; }
.tile .s { font-size: 12px; color: var(--muted); }
.tile .v { font-weight: 700; font-size: 15px; margin-top: 2px; }
.stat { text-align: center; padding: 12px 4px; background: var(--soft); border-radius: 14px; }
.stat .v { font-size: 18px; font-weight: 800; }
.stat .l { font-size: 12px; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 48px 20px; font-size: 14px; }
.empty i { font-size: 44px; display: block; margin-bottom: 10px; color: var(--line2); }
.loading { text-align: center; color: var(--muted); padding: 60px 20px; }
.loading:before { content: ""; display: block; width: 28px; height: 28px; margin: 0 auto 10px; border-radius: 50%; border: 3px solid var(--soft2); border-top-color: var(--accent-ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.spacer { height: 12px; }
.hr { height: 1px; background: var(--line); margin: 16px 0; }
.kv { display: flex; gap: 12px; padding: 9px 0; font-size: 14px; }
.kv .k { width: 76px; flex: none; color: var(--muted); }
.kv .v { flex: 1; min-width: 0; }

/* ---------- 칩·태그 ---------- */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding: 4px 16px 12px; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; padding: 5px 11px; border-radius: 999px; background: var(--soft); color: var(--sub);
  white-space: nowrap; border: 1px solid transparent; font-weight: 500; line-height: 1.4; }
.chip.sm { font-size: 12px; padding: 2px 8px; }
button.chip { cursor: pointer; }
.chip.on { background: var(--accent-bg); color: var(--accent-text); font-weight: 600; }
.chip.sel { background: var(--text); color: var(--card); font-weight: 600; }
.chip.line { background: var(--card); border-color: var(--line2); color: var(--sub); }
.chip i { font-size: 15px; }
.tag { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--soft); color: var(--sub); white-space: nowrap; }
.tag.urg { background: var(--danger-bg); color: var(--danger); }
.tag.acc { background: var(--accent-bg); color: var(--accent-text); }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.no { background: var(--soft); color: var(--muted); }

/* ---------- 세그먼트 ---------- */
.seg { display: flex; background: var(--soft2); border-radius: 12px; padding: 3px; margin: 0 16px 12px; }
.seg a, .seg button { flex: 1; text-align: center; padding: 8px 0; font-size: 14px; border-radius: 10px; color: var(--muted); font-weight: 600; border: 0; background: none; cursor: pointer; }
.seg .on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.seg.in { margin: 0 0 12px; }

/* ---------- 버튼·입력 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 48px; padding: 0 18px; border-radius: var(--r); border: 0;
  background: var(--soft); color: var(--text); font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn i { font-size: 19px; }
.btn.sm { height: 36px; font-size: 13px; padding: 0 12px; border-radius: 11px; }
.btn.sm i { font-size: 16px; }
.btn.pri { background: var(--btn); color: var(--btn-text); }
.btn.acc { background: var(--accent-bg); color: var(--accent-text); }
.btn.line { background: var(--card); border: 1px solid var(--line2); }
.btn.danger { background: var(--danger-bg); color: var(--danger); }
.btn.block { width: 100%; height: 54px; border-radius: 16px; font-size: 16px; }
.btn:active { transform: scale(.98); filter: brightness(.97); }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn.ic-only { width: 48px; padding: 0; }
.field { margin-bottom: 18px; }
.field > label, .lbl { display: block; font-size: 14px; color: var(--sub); margin-bottom: 8px; font-weight: 600; }
.lbl .xs, .field > label .xs { font-weight: 400; }
input, select, textarea { width: 100%; height: 52px; padding: 0 16px; border: 1.5px solid transparent; border-radius: var(--r); background: var(--soft); color: var(--text);
  font-size: 16px; font-family: inherit; -webkit-appearance: none; appearance: none; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
textarea { height: auto; min-height: 96px; padding: 14px 16px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-ink); background: var(--card); }
input::placeholder, textarea::placeholder { color: var(--muted); }
input[type=checkbox], input[type=radio] { width: 22px; height: 22px; padding: 0; accent-color: var(--accent-ink); -webkit-appearance: auto; appearance: auto; flex: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.err { color: var(--danger); font-size: 13px; margin: 6px 0; min-height: 18px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; padding: 8px 0; cursor: pointer; }
.unit { position: relative; }
.unit input { padding-right: 40px; }
.unit span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.rrn { display: flex; align-items: center; gap: 8px; }
.rrn input:first-child { flex: 1.4; letter-spacing: 2px; }
.rrn input:nth-child(3) { width: 52px; text-align: center; padding: 0; }
.rrn .mask { color: var(--muted); letter-spacing: 3px; font-size: 18px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.opt + .opt { border-top: 1px solid var(--line); }
.opt .t { font-weight: 600; }

/* 토글 스위치 */
.toggle { position: relative; width: 50px; height: 30px; flex: none; display: inline-block; }
.toggle input { opacity: 0; width: 100%; height: 100%; margin: 0; position: absolute; z-index: 1; cursor: pointer; }
.toggle span { position: absolute; inset: 0; border-radius: 15px; background: var(--line2); transition: .2s; }
.toggle span:after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle input:checked + span { background: var(--accent); }
.toggle input:checked + span:after { transform: translateX(20px); }

/* ---------- 홈 ---------- */
.hero { margin: 4px 16px 12px; border-radius: 24px; padding: 22px 20px 18px; color: var(--hero-text, #fff); background: linear-gradient(135deg, var(--accent), var(--accent2)); position: relative; overflow: hidden; }
.hero:after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.12); }
.hero .hi { font-size: 14px; opacity: .9; }
.hero .ttl { font-size: 22px; font-weight: 800; margin: 4px 0 16px; line-height: 1.35; letter-spacing: -0.6px; position: relative; z-index: 1; }
.hero .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: relative; z-index: 1; }
.hero .btns a { height: 46px; border-radius: 14px; background: rgba(255,255,255,.95); color: #191f28; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 15px; }
.hero .btns a i { font-size: 19px; color: var(--accent-ink); }
.qmenu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 16px 8px; }
.qmenu a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--sub); font-weight: 500; text-align: center; }
.qmenu .qi { width: 50px; height: 50px; border-radius: 17px; display: flex; align-items: center; justify-content: center; font-size: 25px; background: var(--accent-bg); color: var(--accent-ink); position: relative; }
.qmenu .qi .on { position: absolute; right: -4px; top: -4px; font-size: 9px; font-weight: 800; background: var(--ok); color: #fff; padding: 1px 4px; border-radius: 6px; }
.hscroll { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 4px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.hscroll::-webkit-scrollbar { display: none; }
.hcard { flex: 0 0 78%; max-width: 300px; scroll-snap-align: start; background: var(--card); border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow); display: block; }
.tcard { flex: 0 0 104px; scroll-snap-align: start; background: var(--card); border-radius: 18px; padding: 14px 8px; text-align: center; box-shadow: var(--shadow); display: block; }
.tcard .avatar { margin: 0 auto 8px; }
.offer-card { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--accent-bg); margin-bottom: 8px; }
.offer-card i.ti { font-size: 24px; color: var(--accent-ink); }
.mini-sched { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.mini-sched + .mini-sched { border-top: 1px solid var(--line); }
.mini-sched .d { width: 48px; flex: none; text-align: center; border-radius: 12px; background: var(--soft); padding: 6px 0; line-height: 1.2; }
.mini-sched .d b { display: block; font-size: 17px; }
.mini-sched .d span { font-size: 11px; color: var(--muted); }

/* ---------- 오더 카드 ---------- */
.ocard { display: block; background: var(--card); border-radius: var(--r-card); margin: 0 16px 10px; padding: 18px 18px 16px; box-shadow: var(--shadow); position: relative; }
.ocard .tags { display: flex; gap: 4px; margin-bottom: 6px; flex-wrap: wrap; }
.ocard .name { font-size: 17px; font-weight: 700; letter-spacing: -0.4px; }
.ocard .when { font-size: 14px; color: var(--sub); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 2px 8px; }
.ocard .when i { font-size: 15px; vertical-align: -2px; color: var(--muted); }
.ocard .foot { display: flex; align-items: flex-end; gap: 8px; margin-top: 12px; }
.ocard .fee { text-align: right; white-space: nowrap; }
.ocard .fee b { font-size: 18px; font-weight: 800; letter-spacing: -0.5px; }
.ocard .fee .xs { display: block; }
.ocard .st { position: absolute; right: 16px; top: 16px; }
.flash { animation: flash 2.4s ease-out; }
@keyframes flash { 0%, 30% { box-shadow: 0 0 0 2px var(--accent); } 100% { box-shadow: var(--shadow); } }
.auto-banner { display: flex; align-items: center; gap: 10px; margin: 0 16px 12px; padding: 14px 16px; border-radius: 16px; background: var(--card); font-size: 14px; box-shadow: var(--shadow); }
.auto-banner i.ti-bell-ringing { width: 32px; height: 32px; border-radius: 10px; background: var(--accent-bg); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }

/* ---------- 오더 상세 ---------- */
.d-hero { background: var(--card); padding: 8px 20px 22px; margin-bottom: 12px; }
.d-hero h2 { font-size: 24px; margin: 8px 0 4px; letter-spacing: -0.7px; }
.feebox { margin-top: 16px; padding: 16px; border-radius: 16px; background: var(--soft); display: flex; align-items: center; gap: 10px; }
.feebox .big { color: var(--accent-ink); }
.pay-conds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dgroup { padding: 12px 0; }
.dgroup + .dgroup { border-top: 1px solid var(--line); }
.dgroup .dd { font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.sess { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--soft); margin-bottom: 6px; font-size: 14px; }
.sess .tm { font-weight: 700; font-variant-numeric: tabular-nums; }
.sess.pick { cursor: pointer; }
.sess.pick.on { background: var(--accent-bg); box-shadow: inset 0 0 0 1.5px var(--accent); }
.sess.off { opacity: .55; }
.sess.mine { box-shadow: inset 0 0 0 1.5px var(--ok); background: var(--ok-bg); }
.att { display: flex; gap: 4px; }
.att button { height: 28px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--line2); background: var(--card); font-size: 12px; color: var(--sub); cursor: pointer; }
.att button.on.OK { background: var(--ok); border-color: var(--ok); color: #fff; }
.att button.on.LATE { background: var(--warn); border-color: var(--warn); color: #fff; }
.att button.on.NOSHOW { background: var(--danger); border-color: var(--danger); color: #fff; }
.notice { font-size: 13px; color: var(--sub); background: var(--soft); border-radius: 14px; padding: 12px 14px; line-height: 1.6; margin-bottom: 14px; display: flex; gap: 8px; }
.notice i { font-size: 18px; color: var(--muted); flex: none; margin-top: 1px; }
.notice.acc { background: var(--accent-bg); color: var(--accent-text); }
.notice.acc i { color: var(--accent-ink); }
.notice.warn { background: var(--warn-bg); color: #8a5a00; }
.notice.danger { background: var(--danger-bg); color: var(--danger); }
.qcard { padding: 16px 0; }
.qcard + .qcard { border-top: 1px solid var(--line); }
.cover { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--soft); color: var(--sub); }
.cover.all { background: var(--ok-bg); color: var(--ok); }
.rel { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 700; color: var(--ok); }
.rel.low { color: var(--danger); }
.actbar { position: fixed; z-index: 21; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + var(--safe-b)); }
.actbar .in { max-width: 528px; margin: 0 auto; display: flex; gap: 8px; align-items: center; }
.actbar .btn { height: 54px; border-radius: 16px; font-size: 16px; }

/* ---------- 아바타 ---------- */
.avatar { width: 48px; height: 48px; border-radius: 40%; background: var(--soft2); color: var(--sub); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; overflow: hidden; font-size: 17px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 40px; height: 40px; font-size: 15px; }
.avatar.lg { width: 72px; height: 72px; font-size: 24px; }
.avatar.first { background: var(--accent-bg); color: var(--accent-text); }

/* ---------- 쌤찾기 ---------- */
.search { display: flex; align-items: center; gap: 8px; margin: 0 16px 10px; padding: 0 14px; height: 46px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.search i { color: var(--muted); font-size: 20px; }
.search input { background: none; height: 44px; padding: 0; border: 0; }
.search input:focus { background: none; }
.tlist { display: block; background: var(--card); border-radius: var(--r-card); margin: 0 16px 10px; padding: 16px 18px; box-shadow: var(--shadow); }
.tlist .nm { font-size: 16px; font-weight: 700; }
.verified { color: var(--accent-ink); font-size: 16px; vertical-align: -2px; }
.avail-days { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.avail-days > div { flex: none; width: 52px; text-align: center; padding: 8px 0; border-radius: 12px; background: var(--soft); font-size: 12px; line-height: 1.3; }
.avail-days > div b { display: block; font-size: 15px; }
.avail-days > div.on { background: var(--accent-bg); color: var(--accent-text); }

/* ---------- 구인 등록 ---------- */
.form-card { background: var(--card); border-radius: var(--r-card); margin: 0 16px 12px; padding: 20px; box-shadow: var(--shadow); }
.form-card > h3 { font-size: 17px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.form-card > h3 .xs { font-weight: 400; margin-left: auto; }
.paste-cta { display: flex; align-items: center; gap: 12px; margin: 0 16px 12px; padding: 16px 18px; border-radius: 18px; background: linear-gradient(135deg, var(--accent-bg), var(--card)); border: 1.5px dashed var(--accent); cursor: pointer; }
.paste-cta i { font-size: 26px; color: var(--accent-ink); }
.time-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--soft); margin-bottom: 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.time-row .xs { font-weight: 400; }
.time-row button { margin-left: auto; border: 0; background: none; color: var(--muted); font-size: 18px; cursor: pointer; padding: 2px; }
.mcal { user-select: none; }
.mcal .hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-weight: 700; }
.mcal .hd button { border: 0; background: var(--soft); width: 34px; height: 34px; border-radius: 10px; font-size: 18px; color: var(--sub); cursor: pointer; }
.mcal .g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mcal .w { text-align: center; font-size: 12px; color: var(--muted); padding: 4px 0; }
.mcal .w:first-child { color: var(--danger); }
.mcal .c { aspect-ratio: 1; max-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 14px; cursor: pointer; font-weight: 500; }
.mcal .c.past { color: var(--line2); pointer-events: none; }
.mcal .c.today { color: var(--accent-ink); font-weight: 800; }
.mcal .c.on { background: var(--btn); color: var(--btn-text); font-weight: 700; }
.wd-pick { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.wd-pick button { height: 42px; border-radius: 12px; border: 0; background: var(--soft); font-size: 14px; font-weight: 600; color: var(--sub); cursor: pointer; }
.wd-pick button.on { background: var(--btn); color: var(--btn-text); }
.sum-box { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--accent-bg); color: var(--accent-text); font-size: 14px; }
.sum-box b { font-size: 16px; }
.pv-dates { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.pv-dates > div { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.pv-dates > div > b { width: 76px; flex: none; }
.pv-dates .chip { cursor: pointer; }
.choice { display: flex; gap: 6px; flex-wrap: wrap; }
.choice button { height: 40px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line2); background: var(--card); font-size: 14px; font-weight: 600; color: var(--sub); cursor: pointer; }
.choice button.on { border-color: var(--accent-ink); background: var(--accent-bg); color: var(--accent-text); }

/* ---------- 달력(일정) ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal .w { text-align: center; font-size: 12px; color: var(--muted); padding: 6px 0; }
.cal .w:first-child { color: var(--danger); }
.cal .d { min-height: 60px; border-radius: 12px; padding: 5px 1px; text-align: center; font-size: 13px; color: var(--sub); cursor: pointer; border: 1.5px solid transparent; }
.cal .d.past { opacity: .35; }
.cal .d.today .n { color: var(--accent-ink); font-weight: 800; }
.cal .d.sel { border-color: var(--accent-ink); background: var(--accent-bg); }
.cal .slots { display: flex; flex-direction: column; gap: 2px; margin-top: 3px; align-items: center; }
.cal .slots b { font-weight: 600; font-size: 10px; width: 92%; max-width: 40px; height: 16px; line-height: 16px; border-radius: 5px; }
.cal .slots .a { background: var(--accent-bg); color: var(--accent-text); }
.cal .slots .c { background: var(--accent); color: var(--hero-text); }
.cal .slots .p { background: var(--soft2); color: var(--sub); }
.sched { display: flex; gap: 12px; padding: 14px 0; }
.sched + .sched { border-top: 1px solid var(--line); }
.sched .bar { width: 4px; border-radius: 2px; background: var(--accent); flex: none; }
.sched .bar.p { background: var(--line2); }
.fab-wrap { position: sticky; bottom: calc(var(--safe-b) + 8px); padding: 10px 16px; z-index: 5; }
.wk { display: grid; grid-template-columns: 40px 1fr 1fr; gap: 6px; align-items: center; margin-bottom: 6px; }

/* ---------- 미디어 ---------- */
.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.media-grid > div, .media-grid > label { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--soft); }
.media-grid img, .media-grid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-grid .del { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 14px; }
.media-grid .proc { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--sub); }
.media-grid .add { border: 1.5px dashed var(--line2); background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; cursor: pointer; }
.media-grid .add i { font-size: 24px; }

/* ---------- 채팅 ---------- */
.room { display: flex; align-items: center; gap: 12px; padding: 12px 20px; }
.room:active { background: var(--soft); }
.room .nm { font-weight: 700; font-size: 15px; }
.room .last { font-size: 14px; color: var(--muted); }
.room .cnt { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; }
.chat { display: flex; flex-direction: column; height: 100vh; height: 100dvh; max-width: 560px; margin: 0 auto; background: var(--chat-bg); }
.chat .top { background: var(--chat-bg); }
.chat .msgs { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.chat .inbar { display: flex; gap: 8px; padding: 8px 10px calc(8px + var(--safe-b)); background: var(--card); align-items: flex-end; }
.chat .inbar textarea { min-height: 42px; height: 42px; max-height: 120px; padding: 10px 14px; border-radius: 21px; resize: none; background: var(--soft); }
.chat .inbar .btn { height: 42px; width: 42px; padding: 0; border-radius: 50%; flex: none; }
.msg { display: flex; align-items: flex-end; gap: 6px; }
.msg.me { justify-content: flex-end; }
.bub { max-width: 74%; padding: 9px 13px; border-radius: 4px 18px 18px 18px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; background: var(--card); color: var(--text); }
.msg.me .bub { background: var(--bubble); color: var(--bubble-text); border-radius: 18px 4px 18px 18px; }
.msg .meta { font-size: 11px; color: var(--muted); text-align: right; line-height: 1.3; flex: none; }
.msg .unread { color: var(--warn); font-weight: 700; }
.day-sep { align-self: center; font-size: 12px; color: var(--sub); background: rgba(0,0,0,.06); padding: 3px 12px; border-radius: 12px; margin: 8px 0; }
.sys { align-self: center; font-size: 12px; color: var(--sub); background: var(--card); padding: 7px 14px; border-radius: 14px; font-weight: 600; }

/* ---------- 시트(하단 모달) ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.sheet { width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; background: var(--card); border-radius: 24px 24px 0 0; padding: 10px 20px calc(20px + var(--safe-b)); animation: up .25s ease-out; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line2); margin: 0 auto 16px; }
.sheet h3 { font-size: 20px; margin-bottom: 6px; }
.sheet .desc { font-size: 14px; color: var(--sub); margin-bottom: 18px; }
.sheet.full { height: 90vh; display: flex; flex-direction: column; }
@keyframes up { from { transform: translateY(40px); opacity: .5; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } }
.pick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.pick-grid button { height: 44px; border-radius: 12px; border: 0; background: var(--soft); color: var(--text); font-size: 14px; font-weight: 500; }
.pick-grid button.on { background: var(--accent-bg); color: var(--accent-text); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--accent); }
.pick-row { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.pick-row.dis { opacity: .5; pointer-events: none; }

/* ---------- 토스트 ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + var(--safe-b) + 84px); transform: translateX(-50%); z-index: 60; max-width: 90%; width: max-content;
  padding: 13px 18px; border-radius: 14px; background: rgba(25,31,40,.92); color: #fff; font-size: 14px; text-align: center; font-weight: 500; animation: up .2s; }

/* ---------- 로그인 ---------- */
.auth { max-width: 440px; margin: 0 auto; padding: 64px 24px 24px; }
.auth h2 { font-size: 28px; letter-spacing: -0.8px; line-height: 1.3; }
.logo { width: 64px; height: 64px; border-radius: 22px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--hero-text); display: flex; align-items: center; justify-content: center; font-size: 34px; margin-bottom: 20px; }

/* ---------- 내 정보 ---------- */
.me-head { display: flex; align-items: center; gap: 14px; }
.menu a, .menu label { display: flex; align-items: center; gap: 14px; padding: 15px 20px; font-size: 15px; cursor: pointer; }
.menu a + a, .menu a + label, .menu label + a { border-top: 1px solid var(--line); }
.menu i.ti:first-child { font-size: 22px; color: var(--sub); }

/* ---------- 센터 화면 (브랜드) ---------- */
.brand-logo { height: 28px; max-width: 120px; object-fit: contain; margin-right: 8px; }
.login-logo { height: 64px; max-width: 200px; object-fit: contain; display: block; margin-bottom: 20px; }
body[data-hs="solid"] .top:not(.sub) { background: var(--accent); }
body[data-hs="gradient"] .top:not(.sub) { background: linear-gradient(120deg, var(--accent), var(--accent2)); }
body[data-hs="solid"] .top:not(.sub), body[data-hs="gradient"] .top:not(.sub),
body[data-hs="solid"] .top:not(.sub) .ic, body[data-hs="gradient"] .top:not(.sub) .ic { color: #fff; }
body[data-hs="solid"] .top:not(.sub) .dot, body[data-hs="gradient"] .top:not(.sub) .dot { background: #fff; }
body[data-hs="solid"] .top:not(.sub) + *, body[data-hs="gradient"] .top:not(.sub) + * { margin-top: 12px; }
.banners { position: relative; margin: 0 16px 12px; border-radius: 20px; overflow: hidden; background: var(--accent-bg); }
.bn-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.bn-track::-webkit-scrollbar { display: none; }
.bn-slide { flex: 0 0 100%; aspect-ratio: 27 / 10; scroll-snap-align: start; position: relative; cursor: pointer; }
.bn-slide .fimg { position: absolute; inset: 0; }
.bn-text { position: absolute; left: 16px; bottom: 14px; right: 16px; color: #fff; font-weight: 700; font-size: 17px; text-shadow: 0 1px 4px rgba(0,0,0,.55); }
.bn-count { position: absolute; right: 12px; bottom: 12px; font-size: 11px; color: #fff; background: rgba(0,0,0,.4); padding: 2px 8px; border-radius: 10px; }
.intro { position: fixed; inset: 0; z-index: 100; background: #000; display: flex; align-items: center; justify-content: center; transition: opacity .3s; }
.intro.out { opacity: 0; }
.intro .fimg { position: absolute; inset: 0; }
.intro-text { position: relative; font-size: 26px; font-weight: 800; text-align: center; padding: 0 24px; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.intro-skip { position: absolute; right: 16px; bottom: calc(24px + var(--safe-b)); font-size: 12px; color: #fff; background: rgba(0,0,0,.35); padding: 5px 12px; border-radius: 14px; }
.popup-bg { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; padding: 24px; }
.popup { width: 100%; max-width: 360px; background: var(--card); border-radius: 24px; overflow: hidden; }
.popup .pimg { position: relative; overflow: hidden; display: flex; justify-content: center; background: #000; }
.popup .pimg .fg { position: relative; display: block; max-width: 100%; max-height: 60vh; width: auto; height: auto; }
.popup .pimg .bg { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); object-fit: cover; filter: blur(24px) brightness(.8); }
.popup .pimg.cover .fg { width: 100%; max-height: 50vh; object-fit: cover; }
.popup .pimg.cover .bg { display: none; }
.popup-body { padding: 20px; max-height: 40vh; overflow-y: auto; }
.popup-title { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.popup-text { white-space: pre-wrap; font-size: 14px; line-height: 1.6; color: var(--sub); }
.popup-foot { display: flex; border-top: 1px solid var(--line); }
.popup-foot button { flex: 1; height: 52px; border: 0; background: none; font-size: 14px; color: var(--muted); }
.popup-foot button + button { border-left: 1px solid var(--line); color: var(--text); font-weight: 700; }

/* ---------- 관리웹 설정: 모서리 · 아이콘 ---------- */
body[data-corner="normal"] { --r-card: 12px; --r: 10px; }
body[data-corner="square"] { --r-card: 4px; --r: 4px; }
body[data-corner="normal"] .hero, body[data-corner="normal"] .hcard, body[data-corner="normal"] .tcard, body[data-corner="normal"] .sheet { border-radius: 12px; }
body[data-corner="square"] .hero, body[data-corner="square"] .hcard, body[data-corner="square"] .tcard, body[data-corner="square"] .banners { border-radius: 4px; }
body[data-corner="square"] .sheet { border-radius: 6px 6px 0 0; }
body[data-corner="square"] .btn.block, body[data-corner="square"] .actbar .btn, body[data-corner="square"] .fab { border-radius: 6px; }
.title-ic { font-size: 26px; color: var(--accent-ink); margin-right: 6px; }
body[data-hs="solid"] .top:not(.sub) .title-ic, body[data-hs="gradient"] .top:not(.sub) .title-ic { color: inherit; }
.card-h .h-ic { font-size: 20px; }
.seg button i { font-size: 16px; vertical-align: -2px; margin-right: 3px; }
.sec-title i { font-size: 18px; }

/* 비율 유지 이미지 (인트로·배너): 찌그러짐 없음 */
.fimg { position: relative; overflow: hidden; width: 100%; height: 100%; background: #000; }
.fimg .fg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.fimg.contain .fg { object-fit: contain; }
.fimg .bg { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); object-fit: cover; filter: blur(24px) brightness(.75); }

/* ================= 일정 (캘린더) ================= */
.calv { min-height: 100vh; background: var(--card); padding-bottom: 96px; }
.cal-top { position: sticky; top: 0; z-index: 12; display: flex; align-items: center; gap: 4px; height: 58px; padding: 0 8px; background: var(--card); }
.cal-top .ic { width: 40px; height: 40px; border: 0; background: none; font-size: 24px; color: var(--text); border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.cal-ttl { border: 0; background: none; font-family: inherit; font-size: 26px; font-weight: 800; letter-spacing: -0.8px; color: var(--text); display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 6px; cursor: pointer; }
.cal-ttl small { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: -0.3px; }
.cal-ttl i { font-size: 18px; color: var(--muted); align-self: center; }
.cal-today { position: relative; width: 40px; height: 40px; border: 0; background: none; color: var(--text); cursor: pointer; }
.cal-today i { font-size: 30px; }
.cal-today b { position: absolute; left: 0; right: 0; top: 15px; font-size: 11px; font-weight: 800; text-align: center; }
.cal-bar { padding: 0 16px 8px; }
.cal-views { display: flex; background: var(--soft2); border-radius: 12px; padding: 3px; }
.cal-views button { flex: 1; border: 0; background: none; padding: 7px 0; border-radius: 10px; font-family: inherit; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; }
.cal-views button.on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.cal-legend { display: flex; gap: 6px; overflow-x: auto; padding: 2px 16px 10px; scrollbar-width: none; }
.cal-legend::-webkit-scrollbar { display: none; }
.cl-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); font-family: inherit; font-size: 12px; font-weight: 600; color: var(--sub); cursor: pointer; }
.cl-chip i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.cl-chip.off { opacity: .4; text-decoration: line-through; }
.cal-body { animation: calIn .22s ease-out; }
.cal-body.go-l { animation: none; transform: translateX(-12px); opacity: .5; transition: .15s; }
.cal-body.go-r { animation: none; transform: translateX(12px); opacity: .5; transition: .15s; }
@keyframes calIn { from { opacity: .4; } }

/* 월 보기 */
.mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 0 6px; }
.mw { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); padding: 4px 0 8px; }
.mw.sun, .mn.sun { color: var(--danger); }
.mw.sat, .mn.sat { color: #3b82f6; }
.mc { min-height: 86px; border-top: 1px solid var(--line); padding: 4px 2px 3px; cursor: pointer; overflow: hidden; position: relative; }
.mc.out { opacity: .35; }
.mc.past .mn span { opacity: .6; }
.mn { display: flex; align-items: center; justify-content: center; gap: 2px; font-size: 13px; font-weight: 600; height: 24px; }
.mn span { width: 24px; height: 24px; line-height: 24px; text-align: center; border-radius: 50%; }
.mc.today .mn span { background: var(--accent); color: var(--hero-text, #fff); font-weight: 800; opacity: 1; }
.mc.sel { background: var(--accent-bg); border-radius: 10px; }
.mc.sel + .mc, .mc.sel { border-top-color: transparent; }
.mn .av { position: absolute; top: 6px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--c); opacity: .55; }
.mh { font-size: 9px; color: var(--danger); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; margin-top: -1px; }
.mbs { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.mb { display: block; font-size: 10px; line-height: 15px; height: 16px; padding: 0 3px; border-radius: 4px; background: var(--c); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: clip; font-weight: 600; letter-spacing: -0.4px; }
.mb.wait { background: transparent; color: var(--c); border: 1px dashed var(--c); line-height: 13px; }
.mb.personal { background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.mbs .more { font-size: 10px; color: var(--muted); padding-left: 3px; font-weight: 700; }

/* 선택한 날 */
.agenda { margin-top: 10px; padding: 16px 16px 8px; border-top: 8px solid var(--bg); }
.ag-h { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.ag-h > div:first-child { flex: 1; font-size: 17px; }
.ag-hol { font-size: 12px; font-weight: 700; color: var(--danger); background: var(--danger-bg); padding: 2px 7px; border-radius: 6px; vertical-align: 2px; }
.ag-av { display: flex; align-items: center; gap: 4px; }
.ag-av .xs { margin-right: 2px; }
.ag-av button { height: 32px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line2); background: var(--card); font-family: inherit; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.ag-av button.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--card)); color: var(--accent-ink); }
.ag-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 0 14px; color: var(--muted); font-size: 14px; }
.ag-empty i { font-size: 32px; color: var(--line2); }
.evc { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.evc:last-child { border-bottom: 0; }
.evt { width: 44px; flex: none; text-align: right; line-height: 1.25; font-variant-numeric: tabular-nums; }
.evt b { display: block; font-size: 14px; }
.evt span { font-size: 12px; color: var(--muted); }
.evbar { width: 4px; align-self: stretch; border-radius: 2px; background: var(--c); flex: none; }
.evc.wait .evbar { background: repeating-linear-gradient(var(--c) 0 4px, transparent 4px 7px); }

/* 주·일 보기 */
.tg { border-top: 1px solid var(--line); }
.tgheads { display: flex; position: sticky; top: 58px; z-index: 6; background: var(--card); border-bottom: 1px solid var(--line); }
.tgsp { width: 44px; flex: none; }
.tgh { flex: 1; min-width: 0; border: 0; background: none; font-family: inherit; padding: 6px 0 8px; cursor: pointer; color: var(--sub); display: flex; flex-direction: column; align-items: center; gap: 1px; }
.tgh span { font-size: 11px; font-weight: 600; }
.tgh b { width: 30px; height: 30px; line-height: 30px; border-radius: 50%; font-size: 16px; }
.tgh em { font-style: normal; font-size: 9px; color: var(--danger); max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tgh.sun { color: var(--danger); } .tgh.sat { color: #3b82f6; }
.tgh.today b { background: var(--accent); color: var(--hero-text, #fff); }
.tgs { height: calc(100vh - 230px); min-height: 360px; overflow-y: auto; }
.tg.day .tgs { height: 420px; }
.tgin { position: relative; }
.tgl { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.tgl span { position: absolute; left: 0; width: 40px; top: -8px; text-align: right; font-size: 10px; color: var(--muted); background: var(--card); padding-right: 4px; font-variant-numeric: tabular-nums; }
.tgl:first-child span { top: 2px; }
.tgcols { position: absolute; left: 44px; right: 4px; top: 0; bottom: 0; display: flex; }
.tgc { flex: 1; position: relative; border-left: 1px solid var(--line); cursor: copy; }
.tgav { position: absolute; left: 0; right: 0; background: color-mix(in srgb, var(--c) 6%, transparent); pointer-events: none; }
.tgav span { position: absolute; top: 3px; left: 4px; font-size: 9px; font-weight: 700; color: var(--c); opacity: .7; }
.tg.week .tgav span { display: none; }
.tge { position: absolute; border-radius: 6px; padding: 3px 5px; background: var(--c); color: #fff; overflow: hidden; font-size: 11px; line-height: 1.25; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0,0,0,.12); cursor: pointer; }
.tge b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tge span { opacity: .9; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg.day .tge { font-size: 13px; padding: 6px 9px; } .tg.day .tge span { font-size: 12px; }
.tge.wait { background: color-mix(in srgb, var(--c) 10%, var(--card)); color: var(--sub); border: 1.5px dashed var(--c); box-shadow: none; }
.tge.personal { background: color-mix(in srgb, var(--c) 20%, var(--card)); color: var(--c); box-shadow: none; border-left: 3px solid var(--c); }
.tgnow { position: absolute; left: -4px; right: 0; height: 2px; background: var(--danger); z-index: 3; pointer-events: none; }
.tgnow:before { content: ""; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--danger); }

/* 목록 보기 */
.clist { padding: 4px 16px; }
.cl-day { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cl-date { width: 42px; flex: none; text-align: center; padding-top: 2px; }
.cl-date b { display: block; font-size: 22px; font-weight: 800; line-height: 1.1; }
.cl-date span { font-size: 12px; color: var(--muted); }
.cl-date.sun, .cl-date.sun span { color: var(--danger); } .cl-date.sat, .cl-date.sat span { color: #3b82f6; }
.cl-dh { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.cl-day .evc { padding: 10px 0; }

.cal-fab { position: fixed; z-index: 19; right: max(18px, calc(50% - 280px + 18px)); bottom: calc(var(--safe-b) + 22px); width: 58px; height: 58px; border-radius: 20px; border: 0;
  background: var(--btn); color: var(--btn-text); font-size: 28px; box-shadow: 0 8px 22px rgba(0,0,0,.2); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cal-fab:active { transform: scale(.95); }
@media (prefers-color-scheme: dark) { .mw.sat, .mn.sat, .tgh.sat, .cl-date.sat, .cl-date.sat span { color: #6aa5ff; } }

/* ================= 관리웹 설정: 글자 크기 · 그림자 · 폰트 ================= */
body[data-fs="sm"] #app, body[data-fs="sm"] .tabbar, body[data-fs="sm"] .sheet-root, body[data-fs="sm"] #sheet-root, body[data-fs="sm"] .actbar, body[data-fs="sm"] .fab { zoom: .93; }
body[data-fs="lg"] #app, body[data-fs="lg"] .tabbar, body[data-fs="lg"] #sheet-root, body[data-fs="lg"] .actbar, body[data-fs="lg"] .fab { zoom: 1.1; }
body[data-shadow="none"] { --shadow: none; }
body[data-shadow="strong"] { --shadow: 0 6px 20px rgba(25, 31, 40, .12); }
body[data-font="system"] { font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Samsung One Korean", "Malgun Gothic", "Noto Sans KR", sans-serif; }

/* ===== 하단 메뉴 항상 표시 (v11) ===== */
.actbar { bottom: calc(var(--tabbar) + var(--safe-b)); padding-bottom: 10px; }
body.no-tab .actbar { bottom: 0; padding-bottom: calc(10px + var(--safe-b)); }
body.has-act #app { padding-bottom: calc(var(--tabbar) + var(--safe-b) + 110px); }
body.chat-on #app { padding-bottom: 0; }
.chat { height: calc(100vh - var(--tabbar) - var(--safe-b)); height: calc(100dvh - var(--tabbar) - var(--safe-b)); }
.chat .inbar { padding-bottom: 8px; }
.cal-fab { bottom: calc(var(--tabbar) + var(--safe-b) + 18px); }

/* ===== 팝업 겹치기 · 닫기 버튼 (v11) ===== */
.sheet-wrap { width: 100%; max-width: 560px; position: relative; animation: up .25s ease-out; }
.sheet-wrap .sheet { animation: none; max-width: none; }
.sheet-x { position: absolute; top: 12px; right: 12px; z-index: 3; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: var(--soft); color: var(--sub); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.sheet-x i { font-size: 20px; }
.sheet h3 { padding-right: 44px; }
#sheet-root > .sheet-bg + .sheet-bg { background: rgba(0,0,0,.25); }
/* 팝업 하단 고정 버튼줄 (저장/닫기) */
.sheet-foot { position: sticky; bottom: calc(-20px - var(--safe-b)); margin: 16px -20px calc(-20px - var(--safe-b)); padding: 12px 20px calc(14px + var(--safe-b));
  background: var(--card); border-top: 1px solid var(--line); display: flex; gap: 8px; z-index: 2; }
.sheet-foot .btn { flex: 1; height: 52px; border-radius: 14px; font-size: 16px; }
.sheet-foot .btn.pri { flex: 2; }
.sheet.full .sheet-foot { margin-top: auto; }

/* ===== 자동매칭 (v11) ===== */
/* "자동매칭 중..." 점이 차례로 늘어나는 애니메이션 */
.dots::after { content: ''; display: inline-block; width: 1.3em; text-align: left; animation: dots 1.4s steps(4, end) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75%, 100% { content: '...'; } }
/* 홈 빠른메뉴: 켜져 있으면 아이콘이 깜빡이며 빛남 */
.qmenu a.auto-on .qi { background: var(--accent); color: var(--hero-text, #fff); position: relative; animation: autoGlow 1.8s ease-in-out infinite; }
.qmenu a.auto-on .qi i { animation: autoBolt 1.8s ease-in-out infinite; }
.qmenu a.auto-on .auto-txt { color: var(--text); font-weight: 700; white-space: nowrap; font-size: 11.5px; letter-spacing: -.4px; }
.qmenu a.auto-on .auto-txt .dots::after { width: .9em; }
.qmenu a { min-width: 0; }
@keyframes autoGlow { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 0%, transparent); } }
@keyframes autoBolt { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18) rotate(-8deg); } }
/* 자동매칭 팝업 */
.am-status { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--soft); margin: 4px 0 12px; }
.am-status .am-bolt { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--line); color: var(--sub); flex: none; }
.am-status .am-bolt i { font-size: 24px; }
.am-status b { font-size: 16px; }
.am-status.on { background: var(--accent-bg); }
.am-status.on .am-bolt { background: var(--accent); color: var(--hero-text, #fff); animation: autoGlow 1.8s ease-in-out infinite; }
.am-status.on .am-bolt i { animation: autoBolt 1.8s ease-in-out infinite; }
.am-guide { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: #fff7e0; color: #7a5a00; font-size: 14px; margin-bottom: 12px; }
.am-guide i { font-size: 18px; margin-top: 1px; }
.am-step { padding: 14px 0; border-top: 1px solid var(--line); }
.am-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.am-h b { font-size: 15px; }
.num { width: 24px; height: 24px; border-radius: 50%; background: var(--line); color: var(--sub); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.num.ok { background: var(--accent); color: var(--hero-text, #fff); }
.num i { font-size: 15px; }
.am-steps { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 4px; }
.am-steps > div { display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; align-items: center; }
.am-steps .num { grid-row: span 2; width: 28px; height: 28px; }
.am-steps .xs { grid-column: 2; }
.am-sel { display: flex; flex-wrap: wrap; gap: 6px; min-height: 34px; padding: 10px; border-radius: 14px; background: var(--soft); }

/* ===== 카카오 로그인 (v11) ===== */
.btn.kakao { background: #FEE500; color: rgba(0,0,0,.85); border: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; }
.btn.kakao svg { width: 20px; height: 20px; fill: #000; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 18px 0 12px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.kk-ic { width: 26px; height: 26px; border-radius: 8px; background: #FEE500; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.kk-ic svg { width: 16px; height: 16px; fill: #000; }
.menu a .kk-ic { margin-right: 2px; }
.kk-note { align-items: flex-start; }

/* ===== 카카오 로그인 진행 화면 (v12) ===== */
.kk-ov { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; animation: fade .2s; }
.kk-box { width: min(300px, 82vw); background: var(--card); border-radius: 22px; padding: 26px 20px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; animation: up .25s ease-out; }
.kk-box b { font-size: 17px; margin-top: 8px; }
.kk-box span { font-size: 13px; color: var(--sub); line-height: 1.5; }
.kk-logo { width: 60px; height: 60px; border-radius: 18px; background: #FEE500; display: flex; align-items: center; justify-content: center; }
.kk-logo svg { width: 34px; height: 34px; fill: #191919; }
.kk-box.wait .kk-logo { animation: kkPulse 1.2s ease-in-out infinite; }
.kk-box.done .kk-logo { background: #22b573; animation: kkPop .35s ease-out; }
.kk-box.done .kk-logo i { color: #fff; font-size: 34px; }
.kk-spin { width: 22px; height: 22px; margin-top: 10px; border: 3px solid var(--line); border-top-color: #191919; border-radius: 50%; animation: kkRot .8s linear infinite; }
@keyframes kkPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes kkPop { 0% { transform: scale(.6); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes kkRot { to { transform: rotate(360deg); } }

/* ===== 홈 개편: 히어로 자동매칭 · 지원/등록 구역 · 제안 단계 ===== */
.hero .hero-link { display: inline-flex; align-items: center; gap: 2px; color: inherit; margin-bottom: 4px; }
.hero .hero-link i { font-size: 20px; opacity: .8; }
.hero .hero-sub { font-size: 13px; opacity: .9; position: relative; z-index: 1; }
.hero .hi { padding-right: 120px; position: relative; z-index: 1; }
.hero-auto { position: absolute; right: 14px; top: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 11px; border-radius: 16px; border: 0;
  background: rgba(255,255,255,.22); color: inherit; font-size: 13px; font-weight: 700; cursor: pointer; backdrop-filter: blur(4px); }
.hero-auto i { font-size: 16px; }
.hero-auto em { font-style: normal; font-size: 10px; font-weight: 800; background: rgba(0,0,0,.18); padding: 1px 5px; border-radius: 6px; margin-left: 2px; }
.hero-auto.on { background: #fff; color: var(--accent-ink); box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.hero-auto.on i { animation: zap 1.2s ease-in-out infinite; }
@keyframes zap { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
.area-h { display: flex; align-items: center; gap: 6px; margin: 22px 20px 10px; font-size: 17px; }
.area-h i.ti { font-size: 20px; color: var(--accent-ink); }
.area-h .xs { margin-left: auto; }
.area-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 16px 12px; }
.area-btns .btn { height: 50px; font-size: 15px; }
.mini-sched .d.jul { background: var(--soft); }
.mini-sched .d.jul.on { background: var(--accent-bg); color: var(--accent-text); }
.mini-sched .d.jul.on span { color: var(--accent-text); }
.offer-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.card-h + .offer-row { border-top: 0; }
.offer-row.hot .m { color: var(--accent-ink); }
.ostep { display: inline-flex; gap: 3px; margin-top: 5px; }
.ostep i { width: 16px; height: 4px; border-radius: 2px; background: var(--soft2); }
.ostep i.on { background: var(--accent); }
.ostep.x i.on { background: var(--muted); }
.offer-head .row { gap: 12px; }
.offer-msg { margin-top: 12px; background: var(--soft); border-radius: 14px; padding: 12px 14px; font-size: 14px; white-space: pre-wrap; color: var(--sub); }
.offer-order { display: block; }
.offer-order .when { font-size: 14px; color: var(--sub); }
.tl { position: relative; padding-left: 2px; }
.tl-i { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; position: relative; color: var(--muted); }
.tl-i:not(:last-child):before { content: ""; position: absolute; left: 13px; top: 36px; bottom: -6px; width: 2px; background: var(--soft2); }
.tl-i.on:not(:last-child):before { background: var(--accent); }
.tl-dot { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--soft2); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.tl-i.on { color: var(--text); }
.tl-i.on .tl-dot { background: var(--accent); color: #fff; }
.tl-i.x .tl-dot { background: var(--danger); }
.tl-i.cur .tl-dot { box-shadow: 0 0 0 3px var(--accent-bg); color: var(--accent-ink); background: var(--card); border: 2px solid var(--accent); }
/* 지난 기록: 회색 */
.ocard.past, .card.past { background: var(--soft); box-shadow: none; }
.ocard.past .name, .ocard.past .when, .ocard.past b, .ocard.past .fee b { color: var(--muted) !important; }
.ocard.past .tag { background: var(--soft2); color: var(--muted); }
.sec-title.past-t { color: var(--muted); }
.empty.sm { padding: 26px 20px; }
.empty.sm i { font-size: 34px; }
/* 공개 단계 */
.lv-badge { display: inline-flex; align-items: center; gap: 3px; margin-top: 6px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: var(--soft); color: var(--sub); cursor: default; }
#lvBadge { cursor: pointer; }
.lv-badge.lv2 { background: var(--accent-bg); color: var(--accent-text); }
.lv-badge.lv3 { background: var(--accent); color: #fff; }
.lv-card { border: 1.5px solid var(--line2); border-radius: 16px; padding: 13px 14px; margin-bottom: 8px; cursor: pointer; }
.lv-card.on { border-color: var(--accent); background: var(--accent-bg); }
.locked { display: flex; align-items: center; gap: 8px; padding: 14px; border-radius: 14px; background: var(--soft); color: var(--muted); font-size: 13px; }
.locked i { font-size: 18px; }
.stat.tap { cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--accent-bg); }
.cert-link { text-decoration: underline; text-underline-offset: 3px; }
.avatar video { width: 100%; height: 100%; object-fit: cover; }
.hist { max-height: 60vh; overflow: auto; }
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg3 button { height: 42px; border-radius: 12px; border: 1.5px solid var(--line2); background: var(--card); color: var(--sub); font-weight: 700; font-size: 14px; cursor: pointer; }
.seg3 button.on { border-color: var(--accent); background: var(--accent-bg); color: var(--accent-text); }
.ob-q { font-weight: 700; margin: 12px 0 6px; }
/* 활동 유형 슬라이더  대강지원 [---ㅁ---●] 대강등록 */
.role-sl { padding: 4px 2px 0; }
.role-sl .ends { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--sub); margin-bottom: 8px; }
.role-sl .ends i { font-size: 16px; vertical-align: -3px; margin: 0 3px; color: var(--accent-ink); }
.role-sl .track { position: relative; height: 28px; display: flex; align-items: center; }
.role-sl .track:before { content: ""; position: absolute; left: 11px; right: 11px; height: 6px; border-radius: 3px; background: var(--soft2); }
.role-sl .mid { position: absolute; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 3px; background: var(--card); border: 2px solid var(--line2); }
.role-sl input[type=range] { position: relative; width: 100%; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; height: 28px; padding: 0; border: 0; }
.role-sl input[type=range]::-webkit-slider-runnable-track { height: 6px; background: transparent; }
.role-sl input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); margin-top: -9px; box-shadow: 0 2px 6px rgba(0,0,0,.25); border: 3px solid #fff; }
.role-sl input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; }
.role-sl .ticks { display: flex; justify-content: space-between; padding: 0 9px; margin-top: 2px; }
.role-sl .ticks i { width: 6px; height: 6px; border-radius: 50%; background: var(--line2); cursor: pointer; }
.role-now { text-align: center; font-size: 14px; font-weight: 700; color: var(--accent-ink); margin-top: 8px; }

/* ===== 관리웹 폰트 · 빠른 메뉴 · 인트로 3줄 ===== */
body[data-font="custom"], body[data-font="custom"] button, body[data-font="custom"] input, body[data-font="custom"] textarea, body[data-font="custom"] select { font-family: "BrandFont", "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif; }
body[data-tfont="custom"] h1, body[data-tfont="custom"] h2, body[data-tfont="custom"] h3, body[data-tfont="custom"] .hero .ttl, body[data-tfont="custom"] .hero .hi,
body[data-tfont="custom"] .sec-title, body[data-tfont="custom"] .area-h b, body[data-tfont="custom"] .popup-title, body[data-tfont="custom"] .intro-text,
body[data-tfont="custom"] .bn-text, body[data-tfont="custom"] .login-title { font-family: "BrandFont", "Pretendard Variable", Pretendard, sans-serif; }
.qmenu { grid-template-columns: repeat(4, 1fr); row-gap: 14px; }
.qmenu.n1 { grid-template-columns: 1fr; } .qmenu.n2 { grid-template-columns: repeat(2, 1fr); } .qmenu.n3 { grid-template-columns: repeat(3, 1fr); }
.intro { flex-direction: column; }
.intro .intro-text { position: relative; z-index: 1; line-height: 1.3; }
.intro .it-top { position: absolute; top: calc(18% + env(safe-area-inset-top, 0px)); left: 0; right: 0; }
.intro .it-bottom { position: absolute; bottom: calc(80px + var(--safe-b)); left: 0; right: 0; }

/* ===== 홈 구역 (대강 지원 / 대강 등록) · 접기 · 탭 ===== */
.zone.folded { margin: 0 16px 6px; background: var(--card); border-radius: var(--r-card, 20px); padding: 2px 0 12px; box-shadow: var(--shadow); }
.zone.folded .area-h { margin: 12px 16px 8px; }
.zone.folded .area-btns { margin: 8px 12px 0; }
.zone.folded .area-btns .btn { height: 42px; font-size: 14px; }
.zone-sum { display: flex; gap: 14px; align-items: center; margin: 0 16px; font-size: 13px; color: var(--sub); cursor: pointer; }
.zone-sum b { color: var(--text); font-size: 15px; }
.zone-sum i { margin-left: auto; color: var(--muted); }
.area-h.tap { cursor: pointer; }
.area-h .fold-ic { font-size: 18px !important; color: var(--muted) !important; margin-left: 4px; }
.area-h .xs { margin-left: auto; }
.hot-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); display: inline-block; margin-left: 2px; flex: none; }
.home-tabs { margin: 18px 16px 4px; }
.home-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 10px 0; font-size: 15px; }
.home-tabs button i.ti { font-size: 18px; }
.zone.bottom { margin-top: 14px; }

/* ===== 홈 상단 카드 이미지·GIF·영상 ===== */
.hero.has-media.hm-bg:after { display: none; }
.hero .hero-media { position: absolute; inset: 0; z-index: 0; }
.hero .hero-media img, .hero .hero-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero .hero-dim { position: absolute; inset: 0; z-index: 0; }
.hero.hm-bg { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.35); }
.hero > *:not(.hero-media):not(.hero-dim):not(.hero-auto):not(.hero-pic) { position: relative; z-index: 1; }
.hero .hero-auto { position: absolute; z-index: 2; }
.hero.hm-circle, .hero.hm-square { padding-left: 96px; min-height: 112px; }
.hero .hero-pic { position: absolute; z-index: 1; left: 18px; top: 50%; transform: translateY(-50%); width: 64px; height: 64px; border-radius: 50%; overflow: hidden; border: 2.5px solid rgba(255,255,255,.85); background: rgba(255,255,255,.2); box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.hero.hm-square .hero-pic { border-radius: 16px; }
.hero .hero-pic img, .hero .hero-pic video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero.hm-circle .hi, .hero.hm-square .hi { padding-right: 104px; }
.hero.hm-circle .ttl, .hero.hm-square .ttl { font-size: 19px; }

/* ===== 떠 있는 채팅 버튼 · 새 메시지 미리보기 ===== */
.fab.chat-fab { width: 58px; height: 58px; padding: 0; border-radius: 50%; justify-content: center; }
.fab.chat-fab i { font-size: 28px; }
.fab.chat-fab .badge { top: -3px; left: auto; right: -3px; border: 2px solid var(--bg); height: 21px; line-height: 17px; min-width: 21px; }
body[data-corner="square"] .fab.chat-fab { border-radius: 14px; }
body.has-act .fab, body.fab-up .fab { bottom: calc(var(--tabbar) + var(--safe-b) + 92px); }
.fab.ping { animation: fabPing .6s ease 2; }
@keyframes fabPing { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.14); } }
.chat-peek { position: fixed; z-index: 21; right: max(16px, calc(50% - 280px + 16px)); bottom: calc(var(--tabbar) + var(--safe-b) + 84px); max-width: min(300px, 78vw);
  background: var(--card); color: var(--text); border-radius: 18px 18px 6px 18px; padding: 11px 34px 11px 14px; box-shadow: 0 8px 28px rgba(0,0,0,.18);
  transform: translateY(12px) scale(.96); opacity: 0; pointer-events: none; transition: .22s; cursor: pointer; }
.chat-peek.up { bottom: calc(var(--tabbar) + var(--safe-b) + 160px); }
.chat-peek.show { transform: none; opacity: 1; pointer-events: auto; }
.chat-peek .cp-n { font-size: 13px; font-weight: 800; color: var(--accent-ink); }
.chat-peek .cp-b { font-size: 14px; margin-top: 2px; color: var(--sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chat-peek .cp-x { position: absolute; right: 6px; top: 6px; border: 0; background: none; color: var(--muted); font-size: 16px; width: 26px; height: 26px; cursor: pointer; }

/* 자동매칭 설정 중 다른 화면에서 돌아가기 */
.am-back { position: fixed; z-index: 21; left: max(16px, calc(50% - 280px + 16px)); bottom: calc(var(--tabbar) + var(--safe-b) + 18px); height: 46px; padding: 0 16px 0 10px;
  border-radius: 23px; border: 0; background: var(--text); color: var(--card); display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700;
  box-shadow: 0 6px 18px rgba(0,0,0,.2); cursor: pointer; animation: up .25s ease; }
.am-back i { font-size: 18px; }

/* ===== 홈 상단: 세로 사진형 (A 버튼 세로 / B 버튼 2×2) ===== */
.hero-tall { display: grid; grid-template-columns: 43% minmax(0, 1fr); margin: 4px 16px 12px; border-radius: 24px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); min-height: 292px; }
.hero-tall .ht-pic { position: relative; background: var(--soft2); }
.hero-tall .ht-pic img, .hero-tall .ht-pic video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-tall .ht-name { position: absolute; left: 10px; right: 10px; bottom: 10px; color: #fff; font-size: 12px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.55); }
.hero-tall .ht-rt { padding: 12px 10px 10px; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.hero-tall .ht-sum { display: block; border-radius: 15px; padding: 10px 12px; color: var(--hero-text, #fff); background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.hero-tall .ht-sum .hi { font-size: 12px; opacity: .9; }
.hero-tall .ht-sum .ttl { font-size: 16px; font-weight: 800; line-height: 1.3; margin-top: 2px; letter-spacing: -.4px; }
.hero-tall .ht-sum .hero-sub { font-size: 11px; opacity: .9; margin-top: 2px; }
.hero-tall .ht-btn { display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 10px; border-radius: 12px; border: 0; background: var(--accent-bg); color: var(--accent-text);
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-align: left; }
.hero-tall .ht-btn i { font-size: 19px; color: var(--accent-ink); flex: none; }
.hero-tall .ht-btn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-tall .ht-btn em { font-style: normal; font-size: 10px; font-weight: 800; background: rgba(0,0,0,.08); padding: 1px 5px; border-radius: 6px; margin-left: 2px; }
.hero-tall .ht-btn.auto.on { background: var(--accent); color: var(--hero-text, #fff); }
.hero-tall .ht-btn.auto.on i { color: inherit; animation: zap 1.2s ease-in-out infinite; }
/* B: 카드 전체 대표색, 버튼 2×2 흰색 */
.hero-tall.tB { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--hero-text, #fff); min-height: 252px; grid-template-columns: 40% minmax(0, 1fr); }
.hero-tall.tB .ht-sum { background: none; padding: 4px 4px 0; }
.hero-tall.tB .ht-auto { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; border: 0; background: rgba(255,255,255,.22); color: inherit; font: inherit; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 13px; cursor: pointer; margin-left: 4px; }
.hero-tall.tB .ht-auto.on { background: #fff; color: var(--accent-ink); }
.hero-tall.tB .ht-auto em { font-style: normal; font-size: 10px; opacity: .8; }
.hero-tall.tB .ht-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: auto; }
.hero-tall.tB .ht-btn { flex-direction: column; justify-content: center; gap: 2px; min-height: 58px; padding: 6px 4px; background: rgba(255,255,255,.95); color: #191f28; font-size: 12px; text-align: center; }
.hero-tall.tB .ht-btn span { white-space: normal; line-height: 1.2; }

/* ===== 채팅: 지우기·나가기 ===== */
a.room { position: relative; }
.room-more { flex: none; width: 34px; height: 34px; margin-right: -6px; border: 0; background: none; color: var(--muted); font-size: 20px; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.room-more:active { background: var(--soft); }
.menu-row { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; border: 0; background: var(--soft); border-radius: 16px; padding: 14px; margin-bottom: 8px; font: inherit; color: var(--text); cursor: pointer; }
.menu-row i.ti { font-size: 22px; color: var(--accent-ink); margin-top: 1px; }
.menu-row.danger i.ti, .menu-row.danger b { color: var(--danger); }
.menu-row .xs { line-height: 1.45; }
.msg-sys { align-self: center; margin: 8px 0; }
.msg-sys span { display: inline-block; font-size: 12px; color: var(--sub); background: rgba(0,0,0,.06); padding: 5px 12px; border-radius: 12px; }

/* 회원 탈퇴 */
.wd-box { background: var(--danger-bg); border-radius: 16px; padding: 14px 16px; margin: 12px 0 16px; font-size: 13px; color: var(--sub); }
.wd-box b { color: var(--text); }
.wd-box ul { margin: 8px 0 0; padding-left: 18px; line-height: 1.6; }

/* 대강 제안받기 토글 (빠른 메뉴·세로 사진형) */
.qmenu .qi .on.off { background: var(--muted); }
.hero-tall .ht-btn.on { background: var(--accent); color: var(--hero-text, #fff); }
.hero-tall .ht-btn.on i { color: inherit; }
.hero-tall.tB .ht-btn.on { background: #fff; color: var(--accent-ink); box-shadow: inset 0 0 0 2px var(--accent); }
.qmenu a.tog-on .qi { background: var(--accent); color: var(--hero-text, #fff); position: relative; }

/* MY 맨 아래 사업자 정보 · 약관 링크 */
.biz-foot { font-size: 11.5px; line-height: 1.7; color: var(--sub); text-align: center; margin: 14px 20px 8px; word-break: keep-all; }
.biz-foot a { color: var(--sub); text-decoration: underline; cursor: pointer; }
.check .doc-link { margin-left: 4px; color: var(--sub); text-decoration: underline; cursor: pointer; }

/* 종목 고르기 (큰 분류 → 세부 종목) */
.tp-step { font-size: 12.5px; font-weight: 700; color: var(--sub); margin: 2px 2px 8px; }
.tp-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); gap: 8px; margin-bottom: 14px; }
.tp-cat { height: 46px; border-radius: 14px; border: 1.5px solid var(--line2); background: var(--card); color: var(--sub); font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 5px; }
.tp-cat i { font-size: 19px; }
.tp-cat.on { border-color: var(--accent); background: var(--accent-bg); color: var(--accent-text, var(--accent-ink)); }
.tp-grp { margin-bottom: 12px; }
.tp-h { font-size: 13px; font-weight: 700; margin: 0 2px 6px; color: var(--text); }
/* 대강찾기·쌤찾기 종목 필터: 큰 분류 탭 + 세부 칩 */
.tf-tabs { display: flex; gap: 4px; margin: 2px 16px 8px; padding: 4px; background: var(--soft); border-radius: 14px; }
.tf-tabs button { flex: 1; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--sub); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; }
.tf-tabs button i { font-size: 16px; }
.tf-tabs button.on { background: var(--card); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.tf-sub { padding-top: 0; }

/* 커뮤니티 */
.c-card { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; align-items: center; }
.c-card:last-child { border-bottom: 0; }
.c-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }
.c-title { font-weight: 700; font-size: 15.5px; }
.c-snip { font-size: 13px; color: var(--sub); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-meta { display: flex; gap: 10px; font-size: 12px; color: var(--sub); margin-top: 6px; align-items: center; flex-wrap: wrap; }
.c-meta i { font-size: 14px; vertical-align: -2px; margin-right: 1px; }
.c-thumb { width: 72px; height: 72px; border-radius: 12px; background: var(--soft) center/cover; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.c-post { background: var(--card); margin: 8px 16px 12px; border-radius: 20px; padding: 18px 16px; }
.c-post h2 { font-size: 20px; margin: 4px 0 6px; line-height: 1.35; }
.c-body { font-size: 15px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; margin: 14px 0; }
.c-link { color: var(--accent-ink); text-decoration: underline; cursor: pointer; word-break: break-all; }
.c-mention { color: var(--accent-ink); }
.c-video { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #000; margin-top: 12px; cursor: pointer; }
.c-video img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; }
.c-video iframe { width: 100%; height: 100%; display: block; }
.c-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.c-play i { font-size: 30px; color: #fff; background: rgba(255,0,0,.88); width: 64px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.c-yt-out { display: inline-block; margin-top: 6px; color: var(--sub); text-decoration: underline; cursor: pointer; }
.c-linkcard { display: flex; gap: 8px; align-items: center; padding: 12px; border: 1px solid var(--line2); border-radius: 12px; margin-top: 12px; color: var(--text); cursor: pointer; font-size: 13.5px; }
.c-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.c-imgs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; cursor: pointer; }
.c-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.c-cmt { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.c-cmt.reply { padding-left: 38px; background: var(--soft); }
.c-cmt.acc { background: var(--accent-bg); }
.c-cmt-h { display: flex; gap: 6px; align-items: center; font-size: 13.5px; }
.c-cmt-h .xs { margin-left: 2px; }
.c-cmt-h .ic { margin-left: auto; width: 28px; height: 28px; }
.c-cmt-b { font-size: 14.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; margin-top: 4px; }
.c-cmt-a { display: flex; gap: 12px; margin-top: 4px; }
.c-cmt-a button { border: 0; background: none; padding: 0; font: inherit; font-size: 12.5px; color: var(--sub); cursor: pointer; }
.c-inbar { width: 100%; }
.c-inbar textarea { flex: 1; min-height: 42px; height: 42px; max-height: 120px; resize: none; border: 1px solid var(--line2); border-radius: 14px; padding: 10px 12px; font: inherit; font-size: 15px; background: var(--card); color: var(--text); }
.c-inbar .btn { width: 44px; height: 42px; padding: 0; flex: none; }
.c-rpto { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--sub); margin-bottom: 6px; }
.c-rpto button { border: 0; background: none; color: var(--sub); cursor: pointer; }
.c-mbox { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.c-mbox button { border: 1px solid var(--line2); background: var(--card); color: var(--accent-ink); border-radius: 999px; padding: 5px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.c-wimgs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.c-wimgs > div, .c-wadd { aspect-ratio: 1; border-radius: 10px; background: var(--soft) center/cover; position: relative; }
.c-wimgs > div button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.c-wadd { border: 1.5px dashed var(--line2); color: var(--sub); font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.seg3 button.on { border-color: var(--accent); background: var(--accent-bg); color: var(--accent-text, var(--accent-ink)); }
/* 커뮤니티 목록: 게시판 밑줄 탭 + 검색·종목 한 줄 + 현재 위치 */
.c-btabs { display: flex; margin: 0 16px 10px; border-bottom: 1px solid var(--line2); overflow-x: auto; scrollbar-width: none; }
.c-btabs::-webkit-scrollbar { display: none; }
.c-btabs button { flex: 1 0 auto; padding: 10px 10px 9px; border: 0; background: none; font: inherit; font-size: 14.5px; font-weight: 700; color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.c-btabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.c-tools { display: flex; gap: 6px; align-items: center; margin: 0 16px 8px; }
.c-tools .search { flex: 1; min-width: 0; margin: 0; height: 40px; }
.c-tools .search input { height: 38px; }
.c-tools .chip { flex: none; height: 40px; }
.c-where { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 18px 8px; font-size: 12.5px; color: var(--sub); min-height: 18px; }
.c-where i { font-size: 12px; vertical-align: -1px; }
.c-where button { border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--accent-ink); cursor: pointer; white-space: nowrap; padding: 0; }
/* 누른 버튼 아래 작은 선택창 (dropPop) */
.dd-bg { position: fixed; inset: 0; z-index: 900; background: transparent; }
.dd-pop { position: fixed; background: var(--card); border-radius: 16px; padding: 14px 14px 12px; box-shadow: 0 10px 34px rgba(0,0,0,.18), 0 0 0 1px var(--line); animation: ddIn .14s ease-out; }
.dd-pop::before { content: ''; position: absolute; top: -6px; left: var(--arrow, 50%); width: 12px; height: 12px; margin-left: -6px; background: var(--card); transform: rotate(45deg); box-shadow: -1px -1px 0 var(--line); }
.dd-pop.up::before { top: auto; bottom: -6px; box-shadow: 1px 1px 0 var(--line); }
.dd-pop .dd-h { font-size: 13px; font-weight: 700; color: var(--sub); margin-bottom: 10px; }
.dd-pop .chips { flex-wrap: wrap; gap: 6px; }
@keyframes ddIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
/* 최신 배지 · 홈 새 무료영상 카드 */
.tag.new { background: linear-gradient(135deg, #ff5a5f, #ff8a3d); color: #fff; margin-right: 4px; }
.hv-row { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.hv-row:first-of-type { border-top: 0; }
.hv-th { flex: none; width: 88px; height: 50px; border-radius: 10px; background: #222 center/cover; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.hv-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; font-size: 14px; line-height: 1.35; }
.hv-row .xs { display: block; margin-top: 2px; }
/* 세로 사진형: 오른쪽 버튼들이 사진 높이에 맞춰 늘어나 아래 빈 공간이 없게 */
.hero-tall .ht-rt { justify-content: stretch; }
.hero-tall.tA .ht-rt > .ht-sum { flex: 1.25 1 auto; display: flex; flex-direction: column; justify-content: center; }
.hero-tall.tA .ht-rt > .ht-btn { flex: 1 1 40px; }
.hero-tall.tB .ht-grid { flex: 1 1 auto; grid-auto-rows: 1fr; }
/* 대강 상세: 폐강·노쇼 페이 규정 (분쟁이 많은 부분이라 눈에 띄게) */
.pay-rule { display: flex; gap: 6px; align-items: flex-start; margin-top: 10px; padding: 9px 11px; border-radius: 12px; background: #fff6e8; color: #8a5300; font-size: 13px; line-height: 1.45; }
.pay-rule i { font-size: 16px; margin-top: 1px; flex: none; }
.pay-rule b { margin-right: 4px; }
/* 자격증 확인 박스 */
.cert-box { border: 1px solid var(--line2); border-radius: 14px; padding: 10px 12px; margin: 8px 0; }
.cert-box.ok { border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent) 4%, var(--card)); }
.cert-box .cb-h { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.cert-box .cb-h .tag i { font-size: 13px; margin-right: 2px; vertical-align: -2px; }
.cert-box .cb-r { display: flex; gap: 10px; font-size: 13px; padding: 3px 0; }
.cert-box .cb-r .k { flex: none; width: 104px; color: var(--sub); }
.cert-box .cb-r .v { flex: 1; min-width: 0; word-break: break-all; min-height: 18px; border-bottom: 1px dashed var(--line); }
.pq-list { max-height: 240px; overflow-y: auto; }
.pq-list button { display: block; width: 100%; text-align: left; }
.c-mbox.pq-list { display: block; border: 1px solid var(--line2); border-radius: 12px; padding: 4px; background: var(--card); }
.c-mbox.pq-list button { border: 0; border-radius: 8px; color: var(--text); padding: 8px 10px; margin: 0; }
.c-mbox.pq-list button:hover { background: var(--soft); }
/* 자격증 등록: 파일 힌트 · 확인 중 · 결과 */
.cert-hint { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--accent-bg); color: var(--text); line-height: 1.6; }
.cert-hint .ti { color: var(--accent-ink); }
.cert-hint span { color: var(--sub); }
.cert-check { text-align: center; padding: 18px 4px 4px; }
.cert-check .loading { padding: 14px 0 4px; }
.cert-check h3 { margin: 6px 0 6px; }
.cert-check .desc { margin-bottom: 16px; }
.cert-check .cc-ic { font-size: 54px; color: var(--muted); }
.cert-check.ok .cc-ic { color: var(--ok); }
.cert-check.warn .cc-ic { color: var(--warn); }
.cc-rows { text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; margin: 0 0 16px; }
.cc-row { display: flex; align-items: center; gap: 8px; font-weight: 600; padding: 9px 0; font-size: 14px; }
.cc-row + .cc-row { border-top: 1px solid var(--line); }
.cc-row .ti { font-size: 20px; } .cc-row.ok .ti { color: var(--ok); } .cc-row.no .ti { color: var(--danger); }
.cc-row.no { color: var(--sub); }
/* 올리는 중 팝업 */
.up-wait { text-align: center; padding: 14px 4px 4px; }
.up-wait .loading { padding: 10px 0 2px; }
.up-wait h3 { margin: 6px 0; }
.up-wait .cc-ic { font-size: 50px; color: var(--danger); }
.up-wait .desc { margin-bottom: 14px; }
/* 활동 모드 고르기 · 홈 모드 전환 */
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.role-opt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text); font: inherit; cursor: pointer; text-align: center; }
.role-opt .ti { font-size: 26px; color: var(--muted); }
.role-opt b { font-size: 15px; }
.role-opt span { font-size: 11.5px; color: var(--sub); line-height: 1.4; }
.role-opt.on { border-color: var(--accent); background: var(--accent-bg); }
.role-opt.on .ti { color: var(--accent-ink); }
.mode-sw { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin: 6px 16px 14px; font-size: 12.5px; }
.mode-sw a { color: var(--sub); display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.mode-sw a .ti { font-size: 15px; }
/* 마이 메뉴: 한 줄·두 줄·세 줄 줄 간격 같게 (줄 높이 고정 + 위아래 여백 같게) */
/* 한 줄·두 줄·토글 줄 모두 같은 높이 (위아래 여백 대신 높이 고정 + 가운데 정렬) */
.menu > a, .menu > label { height: 60px; min-height: 60px; padding-top: 0; padding-bottom: 0; box-sizing: border-box; }
.menu .grow .xs { line-height: 1.3; }
/* 홈: 커뮤니티 새 글 카드 */
.hc-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 2px 0 6px; scrollbar-width: none; }
.hc-tabs::-webkit-scrollbar { display: none; }
.hc-tabs button { flex: 0 0 auto; border: 0; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; background: var(--soft); color: var(--sub); position: relative; cursor: pointer; }
.hc-tabs button.on { background: var(--accent); color: #fff; font-weight: 700; }
.hc-tabs .hot-dot { position: absolute; top: 3px; right: 3px; }
.hc-row { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--text); min-width: 0; }
.hc-row .tag.new { margin-right: 5px; }
.hc-row .xs { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 2px; }
/* 마이 메뉴 안의 토글 스위치는 줄(label) 규칙을 받지 않게 → 토글이 커져 줄이 높아지던 문제 */
.menu label.toggle, .menu .toggle { display: inline-block; width: 50px; height: 30px; min-height: 0; padding: 0; gap: 0; border-top: 0; font-size: 0; }
.menu label + label.toggle, .menu a + label.toggle { border-top: 0; }
/* 대강 상세: 한눈에 보이는 요약 (라벨 왼쪽 · 값 오른쪽, 줄 간격 촘촘하게) */
.dsum { padding-top: 14px; padding-bottom: 12px; }
.dsum-t { font-size: 19px; margin: 2px 0 2px; letter-spacing: -0.5px; }
.dsum-r { font-size: 14px; font-weight: 500; color: var(--sub); }
.dsum .fee { font-size: 17px; color: var(--accent-ink); }
.kv { padding: 5px 0; gap: 10px; line-height: 1.45; }
.kv .k { width: 72px; font-size: 13.5px; }
.card-h { margin-bottom: 6px; }
.dsum-one { padding-top: 6px; padding-bottom: 6px; }
.dsum-one .dgroup .dd { margin-top: 0; }
/* 프로필·경력 수정: 라벨 왼쪽 · 입력 오른쪽 */
.frm h3 { font-size: 15px; margin: 0 0 6px; }
.frow { display: flex; align-items: center; gap: 10px; padding: 5px 0; min-height: 40px; }
.frow.ftop { align-items: flex-start; }
.frow > label { flex: 0 0 68px; font-size: 13.5px; color: var(--muted); padding-top: 0; }
.frow.ftop > label { padding-top: 7px; }
.frow > input, .frow > textarea { flex: 1; min-width: 0; padding: 8px 10px; font-size: 14px; }
.frow > textarea { min-height: 54px; }
.frow .chips { flex: 1; min-width: 0; gap: 5px; }
.frow .chip.sm { padding: 5px 10px; font-size: 13px; }
.frow .choice.sm button { padding: 7px 14px; font-size: 13.5px; }
.frow .unit.sm { width: 110px; }
.frow .unit.sm input { padding: 8px 10px; font-size: 14px; }
.frow + .frow { border-top: 1px solid var(--line); }
/* 마이: 활동 모드 토글 (오른쪽 위) */
.mode-pill { display: inline-flex; border: 0; padding: 3px; border-radius: 999px; background: var(--soft2, #e9ebef); cursor: pointer; font: inherit; }
.mode-pill span { padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--muted); transition: .15s; }
.mode-pill span.on { background: var(--accent); color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
/* 마이: 수업 현황 탭 줄 */
.menu > .menu-tabs { display: flex; align-items: center; gap: 8px; height: 60px; padding: 0 20px; border-top: 1px solid var(--line); box-sizing: border-box; }
.menu-tabs .mt-l { display: inline-flex; align-items: center; gap: 14px; font-size: 15px; flex: 1; }
.menu > .menu-tabs a.mt { height: auto; min-height: 0; padding: 6px 12px; border: 0; border-radius: 999px; background: var(--soft); font-size: 13px; gap: 5px; display: inline-flex; color: var(--text); }
.menu-tabs a.mt b { color: var(--accent-ink); }
.menu > .menu-tabs + a { border-top: 1px solid var(--line); }
.frow .chips { flex-wrap: wrap; height: auto; overflow: visible; padding: 2px 0; }
.frow > input, .frow .unit.sm input, .frm .frow input { height: 40px; min-height: 0; }
.frow .unit.sm { height: 40px; }
.frow .choice.sm button { height: 36px; }
/* 구인 등록: 라벨 왼쪽 · 입력 오른쪽 (줄 간격 촘촘하게) */
.form-card.hz { padding-top: 14px; padding-bottom: 12px; }
.form-card.hz h3 { margin-bottom: 8px; font-size: 15px; }
.hz .field { display: flex; align-items: center; gap: 10px; margin: 0; padding: 6px 0; }
.hz .field.ftop { align-items: flex-start; }
.hz .field + .field { border-top: 1px solid var(--line); }
.hz .field > label { flex: 0 0 70px; margin: 0; font-size: 13.5px; color: var(--muted); font-weight: 500; line-height: 1.3; }
.hz .field.ftop > label { padding-top: 9px; }
.hz .field > input, .hz .field > select, .hz .field > textarea, .hz .field > .unit, .hz .field > .choice, .hz .field > .chips, .hz .field > .fv { flex: 1; min-width: 0; }
.hz .field input, .hz .field select { height: 40px; min-height: 0; padding: 0 10px; font-size: 14px; }
.hz .field textarea { padding: 8px 10px; font-size: 14px; min-height: 0; }
.hz .unit input { height: 40px; }
.hz .choice { gap: 4px; flex-wrap: wrap; }
.hz .choice button { height: 34px; padding: 0 10px; font-size: 13px; flex: 0 0 auto; min-width: 0; }
.hz .chips .chip { padding: 5px 10px; font-size: 13px; }
.hz .opt { padding: 8px 0; }
.hz .opt .xs { font-size: 11.5px; }
.hz .time-row { padding: 6px 10px; margin-bottom: 4px; }
.hz .sum-box { margin-top: 8px; }
.hz .seg.in { margin-bottom: 6px; }
/* 홈: 내 등록수업 한 줄 */
.hm-row { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--text); min-width: 0; }
.hm-row .hm-w { flex: 0 0 auto; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 8px; background: var(--soft); color: var(--muted); }
.hm-row .hm-w.on { background: var(--accent-bg); color: var(--accent-ink); }
.hm-row .xs { flex: 0 0 auto; }
.hm-row .tag { flex: 0 0 auto; }
/* 홈: 새로 온 쌤 (한 줄 가로) */
.nc-h { display: flex; align-items: center; gap: 6px; font-size: 14px; padding: 10px 0 6px; border-top: 1px solid var(--line); margin-top: 4px; }
.card > .nc-h:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.nc-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.nc-row::-webkit-scrollbar { display: none; }
.nc-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; background: var(--soft); font-size: 13.5px; color: var(--text); white-space: nowrap; }
.nc-chip .tag { padding: 1px 6px; font-size: 11px; }
.nc-chip .xs { color: var(--muted); }
/* 구인 등록: 최근 등록 불러오기 */
.recent-cta { display: flex; align-items: center; gap: 10px; margin: -4px 16px 12px; padding: 11px 14px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); font-size: 14px; color: var(--text); cursor: pointer; }
.recent-cta .ti { font-size: 20px; color: var(--accent-ink); }
.recent-cta[hidden] { display: none; }
/* 샵 위치 버튼 · 장소 검색 */
.map-btn { flex: 0 0 auto; height: 32px; padding: 0 10px; font-size: 13px; gap: 3px; }
.pl-list { margin-top: 10px; display: flex; flex-direction: column; }
.pl-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; color: var(--text); cursor: pointer; }
.pl-item b { font-size: 14.5px; }
.kmap { width: 100%; height: 260px; border-radius: 14px; overflow: hidden; background: var(--soft); }
/* 수업 등록: 칸 묶음 제목 오른쪽 "저장" */
.form-card.hz h3 { display: flex; align-items: center; gap: 6px; }
.sec-save { margin-left: auto; height: 30px; padding: 0 10px; font-size: 12.5px; gap: 3px; }
/* 센터 인증 */
.cv-cta { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--accent-bg); cursor: pointer; font-size: 14px; }
.cv-cta > .ti { font-size: 24px; color: var(--accent-ink); }
.tag .ti-rosette-discount-check { font-size: 12px; margin-right: 2px; }

/* 구독 안내 (2026-11-13) */
.pw-ic { width: 56px; height: 56px; margin: 4px auto 10px; border-radius: 50%; background: var(--accent-soft, #efeafd); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.pw-price { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px 0 12px; font-size: 20px; }
.pw-list { list-style: none; padding: 0; margin: 0 0 14px; }
.pw-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.5; padding: 4px 0; }
.pw-list li i { color: var(--accent); margin-top: 2px; }

/* 찜영상 (2026-11-16) */
.fav-btn { display: inline-flex; align-items: center; gap: 3px; height: 32px; padding: 0 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--card, #fff); font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.fav-btn i { font-size: 17px; }
.fav-btn.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft, #efeafd); }
.fav-btn span { font-size: 11px; font-weight: 600; margin-left: 2px; }
.fav-list .fav-row { display: flex; align-items: center; gap: 8px; padding: 13px 16px; min-width: 0; color: inherit; text-decoration: none; }
.fav-row .fav-d { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.fav-row .fav-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14.5px; }
.fav-row.gone { opacity: .5; }

/* 홈 이벤트 (2026-11-18) */
.ev-bar { display: flex; align-items: center; gap: 10px; width: calc(100% - 32px); margin: 10px 16px 12px; padding: 11px 14px; border: 0; border-radius: 16px; cursor: pointer; font: inherit; text-align: left;
  background: linear-gradient(100deg, #fff4e0 0%, #ffe6ef 55%, #ece8ff 100%); color: var(--text, #1d1b2e); box-shadow: 0 2px 10px rgba(91,75,214,.08); }
.ev-bar .grow { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ev-bar b { font-size: 15px; }
.ev-ic { width: 36px; height: 36px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 21px; color: #ff5d73; flex: 0 0 auto; animation: evWiggle 2.4s infinite; }
.ev-n { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ff5d73; color: #fff; font-size: 11px; margin-left: 2px; vertical-align: 2px; }
.ev-pt { font-size: 13px; font-weight: 800; color: var(--accent); white-space: nowrap; }
@keyframes evWiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-12deg); } 90% { transform: rotate(10deg); } 95% { transform: rotate(-6deg); } }
.ev-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; margin-top: 10px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card, #fff); font: inherit; text-align: left; cursor: pointer; }
.ev-card .grow { display: flex; flex-direction: column; gap: 2px; }
.ev-card b { font-size: 15.5px; }
.ev-num { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ev-card.done { filter: grayscale(1); opacity: .55; background: #f3f3f5; }
.ro-head { display: flex; align-items: center; gap: 8px; padding-right: 44px; min-height: 36px; }
.ro-head h3 { margin: 0; flex: 1; }
.att-btn { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px 0 10px; border-radius: 16px; font: inherit; font-size: 12.5px; font-weight: 800; letter-spacing: -.2px; cursor: pointer;
  color: #3b2a08; border: 1px solid #c99a3b; background: linear-gradient(135deg, #fff6d6, #f1d28a 55%, #e2b65a); box-shadow: 0 2px 8px rgba(150,105,25,.25), inset 0 1px 0 rgba(255,255,255,.7); }
.att-btn i { font-size: 16px; color: #7a5212; }
.wheel-stage { margin: 12px -4px 16px; padding: 22px 0 20px; border-radius: 22px; background: radial-gradient(circle at 50% 40%, #3a2f7e 0%, #1c1745 62%, #120f2e 100%); box-shadow: inset 0 0 0 1px rgba(247,220,138,.25); }
.wheel-box { position: relative; width: min(290px, 74vw); aspect-ratio: 1; margin: 0 auto; }
.wheel { position: absolute; inset: 5.6%; border-radius: 50%; box-shadow: 0 10px 30px rgba(0,0,0,.45); will-change: transform; }
.wheel-svg { width: 100%; height: 100%; display: block; font-family: inherit; }
.wheel-rim { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
.wheel-rim .wl { fill: #fff3c4; filter: drop-shadow(0 0 3px #ffd770); animation: wlBlink 1.6s ease-in-out infinite; }
.wheel-rim .wl.b { animation-delay: .8s; }
.wheel-box.spinning .wl { animation-duration: .35s; }
.wheel-box.landed .wl { animation: wlWin .5s ease-in-out 4; }
@keyframes wlBlink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes wlWin { 0%,100% { opacity: 1; fill: #fff3c4; } 50% { opacity: .5; fill: #ff8aa6; } }
.wheel-pin { position: absolute; top: -18px; left: 50%; width: 34px; height: 44px; transform: translateX(-50%); transform-origin: 50% 30%; z-index: 2; filter: drop-shadow(0 3px 3px rgba(0,0,0,.4)); }
.wheel-box.spinning .wheel-pin { animation: pinTick .12s ease-in-out infinite alternate; }
@keyframes pinTick { from { transform: translateX(-50%) rotate(-7deg); } to { transform: translateX(-50%) rotate(4deg); } }
.ro-go { height: 52px; border: 0; border-radius: 26px; font-size: 17px; font-weight: 900; letter-spacing: 1px; color: #2a1e05;
  background: linear-gradient(180deg, #fff1b8 0%, #e8bd5a 48%, #c99532 100%); box-shadow: 0 6px 16px rgba(150,105,25,.35), inset 0 1px 0 rgba(255,255,255,.8); }
.ro-go:disabled { filter: grayscale(.6); opacity: .6; }
.att-msg { margin: 6px 0 4px; padding: 10px 12px; border-radius: 12px; text-align: center; font-weight: 700; font-size: 14px; background: linear-gradient(135deg, #fff8e1, #fdecc0); color: #6b4a10; }
.att-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 12px; }
.att-sum > div { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 14px; background: linear-gradient(160deg, #2c2464, #1b1640); color: #f7dc8a; }
.att-sum b { font-size: 20px; font-weight: 900; }
.att-sum span { font-size: 11px; color: #d8cfff; margin-top: 2px; }
.att-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 8px; }
.att-nav b { font-size: 15px; min-width: 100px; text-align: center; }
.att-nav .ib { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--card, #fff); color: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.att-nav .ib:disabled { opacity: .3; }
.att-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.att-cal .aw { text-align: center; font-size: 11px; color: var(--sub, #888); padding: 2px 0 4px; }
.att-cal .aw:first-child { color: #e0475f; }
.att-cal .ac { position: relative; aspect-ratio: 1 / 1.08; border-radius: 10px; background: var(--soft, #f5f5f8); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 3px; }
.att-cal .ac.empty { background: none; }
.att-cal .ac em { font-style: normal; font-size: 11px; color: var(--sub, #888); }
.att-cal .ac.fut { opacity: .45; }
.att-cal .ac.today { box-shadow: inset 0 0 0 1.5px #c99a3b; }
.att-cal .ac.on { background: #fff8e6; }
.att-cal .stamp { margin-top: 2px; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 900; letter-spacing: -.5px;
  color: #b3194a; border: 2px solid #b3194a; transform: rotate(-12deg); background: rgba(255,255,255,.6); }
.att-cal .ac.big .stamp { color: #fff; border-color: #c99a3b; background: linear-gradient(135deg, #f7dc8a, #c99532); text-shadow: 0 1px 1px rgba(0,0,0,.25); font-size: 11.5px; }
.att-cal .stamp.pop { animation: stampIn .55s .25s both cubic-bezier(.2,1.8,.4,1); }
@keyframes stampIn { from { transform: rotate(-12deg) scale(2.6); opacity: 0; } to { transform: rotate(-12deg) scale(1); opacity: 1; } }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9999; }
.sp-win { text-align: center; }
.sp-burst { display: inline-block; padding: 6px 16px; border-radius: 20px; background: linear-gradient(90deg, #ff5d73, #ffb86b); color: #fff; font-weight: 900; font-size: 18px; animation: spPop .6s cubic-bezier(.2,1.6,.4,1); }
.sp-img { display: block; width: min(220px, 60vw); aspect-ratio: 1; object-fit: cover; margin: 14px auto 0; border-radius: 24px; animation: spPop .7s .1s both cubic-bezier(.2,1.6,.4,1); }
@keyframes spPop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ref-my { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px; border-radius: 14px; background: var(--accent-soft, #efeafd); }
.ref-my > b { font-size: 30px; letter-spacing: 4px; color: var(--accent); }
.ref-done { margin-top: 14px; padding: 14px; border-radius: 12px; background: #f3f3f5; color: var(--muted); text-align: center; font-weight: 700; }

/* 나만 보는 티칭메모 (찜영상) */
.memo-open { display: flex; align-items: center; gap: 10px; width: 100%; margin: 12px 0 4px; padding: 11px 14px; border: 1.5px dashed #d9c48f; border-radius: 14px; background: #fffaf0; font: inherit; text-align: left; cursor: pointer; color: inherit; }
.memo-open span { flex: 1; display: flex; flex-direction: column; }
.memo-open b { font-size: 14px; }
.memo-open em { font-style: normal; font-size: 11.5px; color: #9a7b3a; }
.memo-open i { color: #b08a35; font-size: 18px; }
.memo-box { margin: 12px 0 4px; padding: 12px; border-radius: 14px; background: #fffaf0; border: 1px solid #ecdcb2; }
.memo-h { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: #7a5a18; }
.memo-h b { font-size: 14px; flex: 1; }
.memo-st { font-size: 11px; color: #9a7b3a; }
.memo-box textarea { width: 100%; min-height: 96px; resize: none; border: 1px solid #ecdcb2; border-radius: 10px; padding: 10px; font: inherit; font-size: 14px; line-height: 1.55; background: #fff; box-sizing: border-box; color: inherit; }
.memo-f { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.memo-f .xs { flex: 1; }
.fav-row .fav-memo { margin-left: 6px; color: #b08a35; font-size: 16px; flex: none; }
.memo-view { padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid #ecdcb2; font-size: 14px; line-height: 1.75; white-space: normal; word-break: break-word; }
.ts-chip { display: inline-flex; align-items: center; gap: 3px; margin: 0 2px; padding: 1px 8px 1px 6px; border: 0; border-radius: 11px; background: #3b2f7a; color: #f7dc8a; font: inherit; font-size: 12.5px; font-weight: 800; line-height: 1.6; cursor: pointer; vertical-align: 1px; }
.ts-chip i { font-size: 11px; }
.memo-f .ts-add { background: #fff3d6; color: #6b4a10; border: 1px solid #e2c47a; }
/* 대강 이력 배지 · 센터 후기 */
.bdg-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.bdg { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 12px; font-size: 11.5px; font-weight: 700; white-space: nowrap; background: var(--soft); color: var(--sub); }
.bdg.green { background: #e7f7ee; color: #12804f; }
.bdg.silver { background: linear-gradient(135deg, #f4f6f9, #dfe4ea); color: #475467; box-shadow: inset 0 0 0 1px #cfd6df; }
.bdg.gold { background: linear-gradient(135deg, #fff6d6, #f1d28a); color: #6b4a10; box-shadow: inset 0 0 0 1px #e2c47a; }
.bdg.dia { background: linear-gradient(135deg, #e9f3ff, #d9d2ff); color: #3b2f7a; box-shadow: inset 0 0 0 1px #b9b0f5; }
.bdg.acc { background: var(--accent-bg); color: var(--accent-text); }
.bdg.ok { background: var(--ok-bg); color: var(--ok); }
.bdg.line { background: var(--card, #fff); box-shadow: inset 0 0 0 1px var(--line); color: var(--sub); }
.bdg.more { background: none; color: var(--muted); }
.bdg-next { margin-top: 8px; font-size: 12px; color: var(--sub); }
.bdg-next i { color: var(--accent-ink); }
.card.tight.rv-card { padding: 4px 16px; }
.rv-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rv-row:last-child { border-bottom: 0; }
.rv-again { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card, #fff); font: inherit; text-align: left; cursor: pointer; color: inherit; }
.rv-again .grow { display: flex; flex-direction: column; }
.rv-again .hrt { font-size: 22px; filter: grayscale(1); opacity: .5; }
.rv-again i { color: transparent; font-size: 20px; }
.rv-again.on { border-color: var(--accent); background: var(--accent-bg); }
.rv-again.on .hrt { filter: none; opacity: 1; }
.rv-again.on i { color: var(--accent-ink); }
.rv-tags { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.rv-tags button { padding: 11px 8px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card, #fff); font: inherit; font-size: 13px; font-weight: 700; color: var(--sub); cursor: pointer; }
.rv-tags button.on { border-color: var(--accent); background: var(--accent-bg); color: var(--accent-text); }
.rv-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.rv-cm { margin-top: 8px; padding: 9px 11px; border-radius: 10px; background: #fffaf0; font-size: 13px; color: #6b4a10; }
/* 시퀀스 노트 */
.seq-intro { display: flex; gap: 10px; margin: 0 16px 12px; padding: 12px 14px; border-radius: 14px; background: var(--accent-bg); font-size: 13.5px; line-height: 1.5; }
.seq-intro > i { font-size: 22px; color: var(--accent-ink); }
.seq-list { display: flex; flex-direction: column; gap: 8px; margin: 0 16px; }
.seq-card { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 16px; background: var(--card, #fff); box-shadow: var(--shadow); color: inherit; }
.seq-card b { font-size: 15px; }
.seq-min { display: flex; align-items: baseline; gap: 1px; font-size: 12px; color: var(--sub); }
.seq-min b { font-size: 20px; color: var(--accent-ink); }
.seq-play { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--accent); color: var(--hero-text, #fff); font-size: 18px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.sq-head .sq-title { width: 100%; border: 0; border-bottom: 1.5px solid var(--line); padding: 6px 2px; font: inherit; font-size: 18px; font-weight: 800; background: none; color: inherit; outline: none; }
.sq-head select { height: 34px; border-radius: 10px; border: 1px solid var(--line); padding: 0 8px; font: inherit; background: var(--card, #fff); color: inherit; }
.sq-total { font-size: 13px; color: var(--sub); white-space: nowrap; }
.sq-head select { flex: 1; min-width: 0; }
.sq-total b { color: var(--accent-ink); font-size: 16px; }
.sq-st { min-width: 50px; text-align: right; }
.sq-items { margin: 0 16px; display: flex; flex-direction: column; gap: 6px; }
.sq-sec { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 4px 6px 10px; border-left: 4px solid var(--accent); }
.sq-sec > i { color: var(--accent-ink); }
.sq-sec .sq-t { flex: 1; border: 0; background: none; font: inherit; font-weight: 800; font-size: 15px; color: var(--accent-ink); outline: none; min-width: 0; }
.sq-move { display: flex; gap: 8px; align-items: flex-start; padding: 10px; border-radius: 14px; background: var(--card, #fff); box-shadow: var(--shadow); }
.sq-move .sq-no { flex: none; width: 24px; height: 24px; margin-top: 6px; border-radius: 50%; background: var(--soft); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; color: var(--sub); }
.sq-move .grow { min-width: 0; }
.sq-move .sq-t { flex: 1; min-width: 0; height: 36px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font: inherit; font-size: 14.5px; font-weight: 700; background: var(--card, #fff); color: inherit; }
.sq-m { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.sq-m b { min-width: 26px; text-align: center; font-size: 15px; }
.sq-m button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--card, #fff); font-size: 16px; color: inherit; cursor: pointer; }
.sq-n { width: 100%; margin-top: 6px; border: 0; border-radius: 8px; background: var(--soft); padding: 7px 10px; font: inherit; font-size: 13px; resize: none; color: inherit; box-sizing: border-box; min-height: 32px; }
.sq-vid { margin-top: 6px; max-width: 100%; }
.sq-vid .ellipsis { max-width: 180px; font-weight: 600; opacity: .9; }
.sq-ctl { display: inline-flex; gap: 2px; flex: none; }
.sq-ctl.col { flex-direction: column; }
.sq-ctl button { width: 26px; height: 24px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 15px; padding: 0; }
.sq-add { display: flex; gap: 6px; margin: 12px 16px 14px; }
.sq-add .btn { flex: 1; }
.sq-memo { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: inherit; font-size: 14px; resize: vertical; box-sizing: border-box; background: var(--card, #fff); color: inherit; }
.fp-list { display: flex; flex-direction: column; margin-top: 8px; }
.fp-row { display: flex; align-items: center; gap: 8px; padding: 12px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; text-align: left; color: inherit; cursor: pointer; }
.fp-row .grow { min-width: 0; }
.fp-lines { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.fp-line { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; background: var(--soft); font-size: 13.5px; }
/* 수업 모드 */
.sp-play { padding: 4px 2px 10px; }
.spp-top { display: flex; align-items: center; gap: 8px; padding-right: 44px; font-size: 14px; }
.spp-top b { flex: 1; }
.spp-top span { font-size: 13px; color: var(--sub); font-weight: 700; }
.spp-bar { height: 6px; border-radius: 3px; background: var(--soft); margin: 10px 0 18px; overflow: hidden; }
.spp-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2, var(--accent))); transition: width .9s linear; }
.spp-sec { text-align: center; font-size: 13px; font-weight: 800; color: var(--accent-ink); letter-spacing: 1px; min-height: 18px; }
.spp-t { text-align: center; font-size: 28px; font-weight: 900; letter-spacing: -.6px; line-height: 1.25; margin-top: 4px; }
.spp-clock { text-align: center; font-size: 64px; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -1px; margin: 10px 0 6px; color: var(--text, #1d1d1f); }
.spp-clock.warn { color: #e0475f; }
.spp-n { margin: 6px 6px 0; padding: 12px 14px; border-radius: 14px; background: #fffaf0; font-size: 16px; line-height: 1.6; text-align: center; color: #5b430f; }
.spp-v { display: flex; margin: 12px auto 0; font-size: 14px; padding: 6px 14px; }
.spp-ctl { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 20px; }
.spp-ctl button { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); background: var(--card, #fff); font-size: 22px; color: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.spp-ctl button:disabled { opacity: .3; }
.spp-ctl button.main { width: 78px; padding-left: 2px; height: 78px; border: 0; background: var(--accent); color: var(--hero-text, #fff); font-size: 32px; box-shadow: 0 6px 18px rgba(91,75,214,.35); }
.spp-next { text-align: center; margin-top: 18px; font-size: 14px; color: var(--sub); }

/* 동영상 검색: 전체 / 제목 / 채널명 · 채널 칩 */
.c-sfield { display: flex; align-items: center; gap: 6px; margin: -2px 16px 8px; }
.c-sfield .xs { margin-right: 2px; }
.c-sfield button { display: inline-flex; align-items: center; gap: 3px; height: 28px; padding: 0 11px; border-radius: 14px; border: 1px solid var(--line); background: var(--card, #fff); font: inherit; font-size: 12.5px; font-weight: 700; color: var(--sub); cursor: pointer; }
.c-sfield button i { font-size: 14px; }
.c-sfield button.on { background: var(--accent); border-color: var(--accent); color: var(--hero-text, #fff); }
.c-ch { display: inline-flex; align-items: center; gap: 3px; max-width: 100%; padding: 1px 8px 1px 6px; border-radius: 10px; background: #fff0f0; color: #c4302b; font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-ch i { font-size: 14px; flex: none; }
.c-chbtn { display: flex; align-items: center; gap: 6px; width: 100%; margin: 10px 0 2px; padding: 10px 12px; border: 0; border-radius: 12px; background: #fff4f4; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.c-chbtn > i:first-child { color: #e02020; font-size: 20px; }
.c-chbtn b { font-size: 14px; }
.c-chbtn span { flex: 1; font-size: 12px; color: var(--sub); }
.c-rhythm { display: flex; align-items: center; gap: 6px; margin: -2px 16px 8px; overflow-x: auto; scrollbar-width: none; }
.c-rhythm .xs { white-space: nowrap; margin-right: 2px; }
.c-rhythm button { flex: none; height: 28px; padding: 0 12px; border-radius: 14px; border: 1px solid #f3c6a6; background: #fff6ef; font: inherit; font-size: 12.5px; font-weight: 800; color: #b4561a; cursor: pointer; }
.c-rhythm button.on { background: #f07a2c; border-color: #f07a2c; color: #fff; }
/* 홈 상단: LP + 이벤트 버튼 (2026-11-26) */
.ev-hd { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0; margin-right: 2px; border: 0; background: none; font: inherit; cursor: pointer; flex: none; }
.ev-lp { font-size: 13px; font-weight: 900; color: var(--accent-ink); letter-spacing: -.2px; white-space: nowrap; }
.ev-lp small { font-size: 10px; font-weight: 800; margin-left: 1px; opacity: .8; }
.ev-pill { position: relative; display: inline-flex; align-items: center; gap: 3px; height: 30px; padding: 0 10px 0 8px; border-radius: 15px; font-size: 12.5px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #ff7a8a, #ff5d73 55%, #f0447a); box-shadow: 0 3px 10px rgba(255,93,115,.35); white-space: nowrap; }
.ev-pill i { font-size: 16px; animation: evWiggle 2.4s infinite; }
.ev-cnt { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ffd23f; color: #5a3d00; font-style: normal; font-size: 11px; font-weight: 900;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--bg, #f3f4f7); }
/* 가운데 팝업 */
.pop-bg { display: flex; align-items: center; justify-content: center; padding: 20px; }
.pop-card { position: relative; width: 100%; max-width: 380px; max-height: 86vh; overflow: auto; padding: 20px 18px 18px; border-radius: 22px; background: var(--card, #fff); box-shadow: 0 20px 60px rgba(0,0,0,.25); animation: popIn .22s cubic-bezier(.2,1.3,.4,1); }
@keyframes popIn { from { transform: scale(.88); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.pop-x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--soft); color: var(--sub); font-size: 18px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.pop-hero { text-align: center; margin-bottom: 6px; }
.pop-hero .pop-ic { display: inline-flex; width: 52px; height: 52px; border-radius: 18px; align-items: center; justify-content: center; font-size: 28px; color: #fff; background: linear-gradient(135deg, #ff7a8a, #f0447a); box-shadow: 0 6px 16px rgba(255,93,115,.35); }
.pop-hero h3 { margin: 8px 0 2px; }
.pop-hero p { margin: 0; font-size: 13.5px; color: var(--sub); }
.pop-hero p b { color: var(--accent-ink); }
.pop-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.pop-links button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px; border: 0; border-radius: 12px; background: var(--soft); font: inherit; font-size: 12px; font-weight: 700; color: var(--sub); cursor: pointer; position: relative; }
.pop-links button i { font-size: 20px; color: var(--accent-ink); }
.pop-links button b { position: absolute; top: 4px; right: 10px; min-width: 16px; height: 16px; border-radius: 8px; background: #ff5d73; color: #fff; font-size: 10px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
/* 내 쿠폰 */
.cp-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.cp-item { display: flex; gap: 12px; padding: 14px; border-radius: 16px; background: var(--soft); }
.cp-item.ok { background: linear-gradient(135deg, #fff8e6, #fdecc0); }
.cp-l { width: 42px; height: 42px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #b4561a; flex: none; }
.cp-kv { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; }
.cp-kv span { color: var(--sub); min-width: 52px; }
.cp-code { font-size: 15px; letter-spacing: .5px; flex: 1; word-break: break-all; }
.cp-wait { margin-top: 6px; font-size: 12.5px; color: var(--sub); }
.att-cal .stamp.cp { color: #fff; border-color: #f0447a; background: linear-gradient(135deg, #ff8aa6, #f0447a); font-size: 11px; }
/* 노트 탭: 찜영상 | 시퀀스노트 */
.note-tabs { display: flex; gap: 4px; margin: 0 16px 12px; padding: 4px; border-radius: 14px; background: var(--soft); }
.note-tabs a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; height: 40px; border-radius: 11px; font-size: 14.5px; font-weight: 700; color: var(--sub); }
.note-tabs a i { font-size: 18px; }
.note-tabs a.on { background: var(--card, #fff); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.note-tabs a.on i { color: var(--accent-ink); }
