/* 대강 매칭 앱 — 카카오/토스 스타일 (밝은 회색 배경 · 흰 카드 · 둥근 모서리 · 굵은 제목)
 * 색은 모두 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-bolt { 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; }
