/* 어린이집 운영 앱 · 흰 배경 + 파스텔 톤 */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --soft: #f8f9fc;
  --line: #eceef3;
  --line-strong: #dfe3ea;
  --text: #2d3340;
  --text-2: #6b7280;
  --text-3: #9aa1ad;

  /* 파스텔 팔레트: fill(배경) / ink(글자) */
  --blue: #e3edff;   --blue-ink: #3d5fa8;   --blue-mid: #b9d0fb;
  --pink: #ffe3e6;   --pink-ink: #b8475a;   --pink-mid: #f8bcc5;
  --mint: #dcf5ea;   --mint-ink: #2f7d5c;   --mint-mid: #ade3cb;
  --lemon: #fff4cc;  --lemon-ink: #8a6a12;  --lemon-mid: #f5df92;
  --peach: #ffe9da;  --peach-ink: #a85a2a;  --peach-mid: #fac9a6;
  --lilac: #eee6ff;  --lilac-ink: #6a4fb0;  --lilac-mid: #d3c2fa;
  --gray: #eff1f5;   --gray-ink: #5b6372;   --gray-mid: #d6dae2;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(30, 40, 60, .04), 0 4px 16px rgba(30, 40, 60, .05);
  --shadow-lg: 0 12px 40px rgba(30, 40, 60, .16);
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; min-height: 100dvh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue-ink); }
[hidden] { display: none !important; }

/* ---------- 레이아웃 ---------- */
.app { display: flex; min-height: 100vh; min-height: 100dvh; }
.sidebar { width: 236px; flex-shrink: 0; border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; height: 100dvh; background: var(--bg); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; padding: 2px 6px 10px; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--blue); color: var(--blue-ink); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.me-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--radius-sm); background: var(--soft); border: 1px solid var(--line); margin-bottom: 10px; text-align: left; width: 100%; }
.me-card:hover { background: var(--blue); }
.me-card .nm { font-weight: 700; font-size: 14px; }
.me-card .sub { font-size: 12px; color: var(--text-2); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; padding: 9px 10px; border-radius: 9px; text-align: left; color: var(--text); font-size: 14px; }
.nav button:hover { background: var(--soft); }
.nav button.active { background: var(--blue); color: var(--blue-ink); font-weight: 700; }
.nav .count { margin-left: auto; background: var(--pink); color: var(--pink-ink); font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.sidebar-foot { margin-top: auto; font-size: 12px; color: var(--text-3); padding: 0 6px; }

.main { flex: 1; min-width: 0; }
.page { max-width: 1180px; margin: 0 auto; padding: 36px 40px 80px; }
.topbar { display: none; }
.tabbar { display: none; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.page-head h1 { font-size: 30px; margin: 0 0 6px; letter-spacing: -.02em; }
.page-head .desc { color: var(--text-2); margin: 0; max-width: 560px; line-height: 1.55; font-size: 14px; }
.eyebrow { font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.head-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ---------- 카드 ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-head h2 { font-size: 16px; margin: 0; }
.card-head .hint { font-size: 12px; color: var(--text-3); }
.grid-2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; margin-top: 16px; }
.grid-2.even { grid-template-columns: 1fr 1fr; }
.grid-2 > .card + .card { margin-top: 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { border-radius: var(--radius); padding: 16px 18px; border: 1px solid var(--line); background: var(--soft); text-align: left; }
button.stat:hover { border-color: var(--line-strong); }
.stat .lbl { font-size: 13px; color: var(--text-2); }
.stat .val { font-size: 28px; font-weight: 800; margin: 6px 0 4px; letter-spacing: -.02em; }
.stat .val small { font-size: 15px; color: var(--text-3); font-weight: 600; }
.stat .sub { font-size: 12px; color: var(--text-3); }
.stat.blue { background: var(--blue); } .stat.pink { background: var(--pink); } .stat.mint { background: var(--mint); } .stat.lemon { background: var(--lemon); } .stat.lilac { background: var(--lilac); } .stat.peach { background: var(--peach); }
.stat.pink .val { color: var(--pink-ink); }
.bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.8); overflow: hidden; margin-top: 8px; }
.bar > i { display: block; height: 100%; background: var(--mint-mid); border-radius: 999px; }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line-strong); background: #fff; color: var(--text); padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--soft); }
.btn.primary { background: var(--blue); border-color: var(--blue-mid); color: var(--blue-ink); }
.btn.primary:hover { background: var(--blue-mid); }
.btn.mint { background: var(--mint); border-color: var(--mint-mid); color: var(--mint-ink); }
.btn.mint:hover { background: var(--mint-mid); }
.btn.danger { background: var(--pink); border-color: var(--pink-mid); color: var(--pink-ink); }
.btn.danger:hover { background: var(--pink-mid); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--soft); }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn.lg { padding: 12px 18px; font-size: 15px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { border: 0; background: transparent; width: 32px; height: 32px; border-radius: 8px; display: inline-grid; place-items: center; color: var(--text-2); position: relative; }
.icon-btn:hover { background: var(--soft); color: var(--text); }
.icon-btn .dot { position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; border-radius: 999px; background: var(--pink-mid); color: var(--pink-ink); font-size: 10px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.btn svg.i { width: 16px; height: 16px; }

/* ---------- 배지 · 아바타 ---------- */
.tag { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1.5; }
.tag.blue { background: var(--blue); color: var(--blue-ink); }
.tag.pink { background: var(--pink); color: var(--pink-ink); }
.tag.mint { background: var(--mint); color: var(--mint-ink); }
.tag.lemon { background: var(--lemon); color: var(--lemon-ink); }
.tag.peach { background: var(--peach); color: var(--peach-ink); }
.tag.lilac { background: var(--lilac); color: var(--lilac-ink); }
.tag.gray { background: var(--gray); color: var(--gray-ink); }
.tag.outline { background: #fff; border: 1px dashed var(--line-strong); color: var(--text-3); }
.load-bars { display: inline-flex; gap: 1px; align-items: flex-end; height: 10px; }
.load-bars i { width: 2.5px; background: currentColor; border-radius: 1px; opacity: .3; }
.load-bars i:nth-child(1) { height: 4px; } .load-bars i:nth-child(2) { height: 7px; } .load-bars i:nth-child(3) { height: 10px; }
.load-bars i.on { opacity: 1; }

.av { width: 22px; height: 22px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.av.lg { width: 36px; height: 36px; font-size: 14px; }
.av.c0 { background: var(--peach); color: var(--peach-ink); } .av.c1 { background: var(--pink); color: var(--pink-ink); }
.av.c2 { background: var(--lilac); color: var(--lilac-ink); } .av.c3 { background: var(--blue); color: var(--blue-ink); }
.av.c4 { background: var(--mint); color: var(--mint-ink); } .av.c5 { background: var(--lemon); color: var(--lemon-ink); }
.who { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.late { color: var(--pink-ink); font-weight: 700; }
.soon { color: var(--peach-ink); font-weight: 700; }
.strike { text-decoration: line-through; color: var(--text-3); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }

/* ---------- 목록 ---------- */
.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-weight: 600; font-size: 14px; }
.row .meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 4px; font-size: 13px; color: var(--text-2); }
.row.click { cursor: pointer; }
.row.click:hover { background: var(--soft); margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 8px; }
.bullet { width: 6px; height: 6px; border-radius: 999px; background: var(--pink-mid); flex-shrink: 0; }
.bullet.soon { background: var(--peach-mid); } .bullet.ok { background: var(--mint-mid); }
.empty { padding: 28px 10px; text-align: center; color: var(--text-3); font-size: 14px; }

/* ---------- 표 ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-weight: 500; color: var(--text-3); font-size: 12px; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: var(--soft); }
table.t td.r, table.t th.r { text-align: right; }
.cell-name { font-weight: 600; }

/* 제출 현황표 */
.matrix { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.matrix th, .matrix td { padding: 8px 6px; text-align: center; border-bottom: 1px solid var(--line); }
.matrix th:first-child, .matrix td:first-child { text-align: left; }
.matrix th { color: var(--text-3); font-weight: 500; font-size: 12px; }
.matrix .now { background: var(--soft); }
.matrix .now-h { color: var(--text); font-weight: 700; }
.cellbox { display: inline-grid; place-items: center; min-width: 46px; height: 26px; border-radius: 7px; font-size: 12px; font-weight: 700; border: 0; }
.cellbox.done { background: var(--mint); color: var(--mint-ink); }
.cellbox.late { background: var(--pink); color: var(--pink-ink); }
.cellbox.today { background: var(--lemon); color: var(--lemon-ink); }
.cellbox.plan { background: #fff; border: 1px dashed var(--line-strong); color: var(--text-3); }
.cellbox.none { background: transparent; color: var(--text-3); }
button.cellbox { cursor: pointer; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); margin-top: 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* 업무량 막대 */
.load-row { display: grid; grid-template-columns: 90px 1fr 24px; gap: 10px; align-items: center; padding: 6px 0; font-size: 13px; }
.load-track { height: 8px; background: var(--gray); border-radius: 999px; overflow: hidden; display: flex; }
.load-track .done { background: var(--mint-mid); }
.load-track .left { background: var(--blue-mid); }

/* ---------- 탭 · 칩 · 필터 ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: transparent; padding: 10px 12px; font-size: 14px; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.active { color: var(--text); font-weight: 700; border-bottom-color: var(--blue-ink); }
.tabs .n { color: var(--text-3); font-size: 12px; margin-left: 3px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chips .lbl { font-size: 12px; color: var(--text-3); margin-right: 4px; }
.chip { border: 1px solid var(--line-strong); background: #fff; padding: 5px 11px; border-radius: 999px; font-size: 13px; color: var(--text-2); }
.chip.active { background: var(--blue); border-color: var(--blue-mid); color: var(--blue-ink); font-weight: 700; }
.seg { display: inline-flex; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 7px; font-size: 13px; color: var(--text-2); }
.seg button.active { background: #fff; color: var(--text); font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .right { display: flex; gap: 8px; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 10px; background: #fff; min-width: 220px; }
.search input { border: 0; outline: 0; padding: 8px 0; flex: 1; min-width: 0; background: transparent; }

/* ---------- 폼 ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > label, .field > .lbl { font-size: 13px; color: var(--text-2); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.field .opt { color: var(--text-3); font-weight: 400; font-size: 12px; }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 12px; background: #fff; outline: 0; }
.input:focus { border-color: var(--blue-mid); box-shadow: 0 0 0 3px var(--blue); }
textarea.input { min-height: 96px; resize: vertical; line-height: 1.5; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input { -moz-appearance: textfield; }
.stepper { align-self: flex-start; display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.stepper button { border: 0; background: var(--soft); width: 40px; height: 40px; font-size: 18px; }
.stepper input { width: 64px; border: 0; text-align: center; font-weight: 700; font-size: 16px; outline: 0; }
.auto { font-size: 11px; background: var(--blue); color: var(--blue-ink); padding: 1px 6px; border-radius: 5px; font-weight: 600; }
.notice-box { background: var(--blue); color: var(--blue-ink); border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; }
.notice-box.pink { background: var(--pink); color: var(--pink-ink); }
.notice-box.lemon { background: var(--lemon); color: var(--lemon-ink); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 12px; font-size: 14px; cursor: pointer; background: #fff; }
.check.on { background: var(--blue); border-color: var(--blue-mid); }
.check input { accent-color: #8fb0ef; width: 16px; height: 16px; margin: 0; }
.switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--gray-mid); border-radius: 999px; transition: .15s; cursor: pointer; }
.switch span::after { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 999px; transition: .15s; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.switch input:checked + span { background: #9bbcf5; }
.switch input:checked + span::after { transform: translateX(18px); }

.tickbox { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-strong); background: #fff; display: grid; place-items: center; flex-shrink: 0; padding: 0; }
.tickbox.on { background: var(--mint); border-color: var(--mint-mid); color: var(--mint-ink); }
.tickbox svg { width: 14px; height: 14px; stroke-width: 2.6; }
.tickbox:disabled { cursor: default; }

/* ---------- 보드 ---------- */
.board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.col { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; min-height: 160px; }
.col-head { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.col-head .n { color: var(--text-3); font-weight: 500; }
.col-head .dotc { width: 8px; height: 8px; border-radius: 999px; }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; margin-bottom: 8px; cursor: pointer; }
.tcard:hover { border-color: var(--line-strong); }
.tcard .top { display: flex; gap: 8px; justify-content: space-between; align-items: flex-start; }
.tcard .ttl { font-size: 14px; font-weight: 700; line-height: 1.4; }
.tcard .tags { display: flex; gap: 4px; flex-wrap: wrap; margin: 8px 0; }
.tcard .bot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-2); }

/* ---------- 공지 ---------- */
.notice-item { padding: 16px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.notice-item:hover { background: var(--soft); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 10px; }
.notice-item:last-child { border-bottom: 0; }
.notice-item h3 { font-size: 16px; margin: 6px 0 4px; }
.notice-item p { margin: 0; font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--text-2); }
.progress .track { width: 140px; height: 5px; background: var(--gray); border-radius: 999px; overflow: hidden; }
.progress .track i { display: block; height: 100%; background: var(--blue-mid); }

/* ---------- 설정 ---------- */
.class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 14px; }
.class-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; text-align: left; }
.class-card:hover { border-color: var(--line-strong); background: var(--soft); }
.class-card .nm { font-weight: 700; }
.class-card .age { font-size: 13px; color: var(--text-2); margin: 3px 0 8px; }
.class-card .people { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form .input { flex: 1; min-width: 140px; }
.rule { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rule:last-child { border-bottom: 0; }
.rule .nm { font-weight: 600; font-size: 14px; }
.rule .sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.preview-noti { display: flex; gap: 10px; background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; max-width: 360px; margin-top: 8px; font-size: 13px; }
.preview-noti .brand-mark { flex-shrink: 0; }

/* ---------- 모달 · 서랍 · 토스트 ---------- */
.overlay { position: fixed; inset: 0; background: rgba(40, 48, 64, .28); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .12s ease-out; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 560px; max-height: calc(100dvh - 32px); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: pop .14s ease-out; }
.modal.sm { max-width: 420px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 18px 20px 6px; gap: 10px; }
.modal-head h2 { font-size: 19px; margin: 0; }
.modal-head .eyebrow { margin-bottom: 2px; font-size: 12px; }
.modal-body { padding: 10px 20px 6px; overflow-y: auto; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); }
.modal-foot .left { margin-right: auto; }
.overlay.drawer { justify-content: flex-end; align-items: stretch; padding: 0; }
.overlay.drawer .modal { max-width: 440px; height: 100dvh; max-height: none; border-radius: 0; animation: slide .16s ease-out; }
.kv { display: grid; grid-template-columns: 80px 1fr; gap: 10px 12px; font-size: 14px; margin: 6px 0 16px; align-items: center; }
.kv .k { color: var(--text-3); font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: #3a4252; color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 14px; z-index: 80; box-shadow: var(--shadow-lg); animation: up .16s ease-out; max-width: calc(100vw - 32px); }
.menu { position: fixed; z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 180px; }
.menu button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 9px 12px; border-radius: 8px; font-size: 14px; }
.menu button:hover { background: var(--soft); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
@keyframes up { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ---------- 로그인 ---------- */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: linear-gradient(160deg, #ffffff 0%, #ffffff 55%, var(--blue) 100%); }
.auth-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px 24px; box-shadow: var(--shadow); }
.auth-card .brand { justify-content: center; font-size: 18px; padding-bottom: 6px; }
.auth-card h1 { text-align: center; font-size: 22px; margin: 6px 0 4px; }
.auth-card .desc { text-align: center; color: var(--text-2); font-size: 14px; margin: 0 0 20px; line-height: 1.5; }
.auth-links { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13px; }
.auth-links button { border: 0; background: transparent; color: var(--blue-ink); padding: 4px 0; }
.demo-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--lemon); color: var(--lemon-ink); font-size: 13px; padding: 7px 16px; }
.demo-bar .seg { background: rgba(255,255,255,.6); border-color: transparent; }
.demo-bar .seg button { padding: 3px 10px; font-size: 12px; }

/* ---------- 휴대폰 ---------- */
@media (max-width: 899px) {
  .sidebar { display: none; }
  .topbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); z-index: 20; }
  .topbar .brand { padding: 0; }
  .topbar .actions { display: flex; align-items: center; gap: 4px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.97); border-top: 1px solid var(--line); z-index: 20; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); backdrop-filter: blur(8px); }
  .tabbar button { flex: 1; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--text-3); padding: 4px 0; position: relative; }
  .tabbar button.active { color: var(--blue-ink); font-weight: 700; }
  .tabbar button .dot { position: absolute; top: 0; left: calc(50% + 6px); min-width: 16px; height: 16px; border-radius: 999px; background: var(--pink-mid); color: var(--pink-ink); font-size: 10px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }
  .tabbar svg.i { width: 22px; height: 22px; }
  .page { padding: 20px 16px 110px; }
  .page-head { flex-direction: column; align-items: stretch; margin-bottom: 16px; }
  .page-head h1 { font-size: 24px; }
  .head-actions .btn { flex: 1; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px; }
  .stat .val { font-size: 24px; }
  .grid-2, .grid-2.even { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  .board { grid-template-columns: repeat(4, 82vw); scroll-snap-type: x mandatory; }
  .col { scroll-snap-align: start; }
  .form-2 { grid-template-columns: 1fr; }
  .search { min-width: 0; flex: 1; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .hide-m { display: none !important; }
  .overlay { align-items: flex-end; padding: 0; }
  .modal { max-width: none; border-radius: 20px 20px 0 0; max-height: 92dvh; animation: sheet .18s ease-out; }
  .overlay.drawer .modal { max-width: none; height: auto; max-height: 92dvh; border-radius: 20px 20px 0 0; animation: sheet .18s ease-out; }
  .modal-foot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .load-row { grid-template-columns: 70px 1fr 20px; }
  .matrix { font-size: 12px; }
  .cellbox { min-width: 34px; }
}
@media (min-width: 900px) { .show-m { display: none !important; } }
@keyframes sheet { from { transform: translateY(30px); opacity: .4; } }
