/* SHIFT ON — Modern Light design system (mobile only) */
:root {
  --primary: #1665E8; --primary-weak: #E8F0FE; --primary-ink: #0F4FBF;
  --secondary: #7654D6; --secondary-weak: #F0EBFC;
  --success: #16A34A; --success-weak: #E7F6EC;
  --hold: #F59E0B; --hold-weak: #FEF3DC;
  --danger: #DC2626; --danger-weak: #FDECEC;
  --pending: #94A3B8; --pending-weak: #EEF2F6;
  --bg: #F5F7FB; --surface: #FFFFFF; --surface-2: #F8FAFC; --ink: #111827; --ink-2: #374151; --muted: #6B7280; --line: #E5E9F0;
  --shadow: 0 2px 10px rgba(17, 37, 79, .06); --shadow-lg: 0 18px 48px rgba(17, 37, 79, .18);
  --radius: 20px; --radius-sm: 14px;
  --nav-h: 64px; --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
  --d: #1665E8; --d-weak: #E8F0FE; --an: #7654D6; --an-weak: #F0EBFC; --w: #16A34A; --w-weak: #E7F6EC; --off: #94A3B8; --off-weak: #F1F4F8;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #4C8DFF; --primary-weak: #172A4D; --primary-ink: #9DC0FF; --secondary: #9B7FF0; --secondary-weak: #2A2347;
    --success: #34C26B; --success-weak: #12301F; --hold: #F7B23B; --hold-weak: #3A2C0E; --danger: #F05252; --danger-weak: #3B1616; --pending: #8A97AB; --pending-weak: #232B36;
    --bg: #0E131B; --surface: #171D27; --surface-2: #1D2430; --ink: #F1F4F9; --ink-2: #CBD3DF; --muted: #95A0B2; --line: #283141;
    --shadow: 0 2px 10px rgba(0,0,0,.3); --d: #4C8DFF; --d-weak: #172A4D; --an: #9B7FF0; --an-weak: #2A2347; --w: #34C26B; --w-weak: #12301F; --off: #8A97AB; --off-weak: #212835;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --primary: #4C8DFF; --primary-weak: #172A4D; --primary-ink: #9DC0FF; --secondary: #9B7FF0; --secondary-weak: #2A2347;
  --success: #34C26B; --success-weak: #12301F; --hold: #F7B23B; --hold-weak: #3A2C0E; --danger: #F05252; --danger-weak: #3B1616; --pending: #8A97AB; --pending-weak: #232B36;
  --bg: #0E131B; --surface: #171D27; --surface-2: #1D2430; --ink: #F1F4F9; --ink-2: #CBD3DF; --muted: #95A0B2; --line: #283141;
  --shadow: 0 2px 10px rgba(0,0,0,.3); --d: #4C8DFF; --d-weak: #172A4D; --an: #9B7FF0; --an-weak: #2A2347; --w: #34C26B; --w-weak: #12301F; --off: #8A97AB; --off-weak: #212835;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0 auto; max-width: 480px; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Pretendard', 'Noto Sans KR', 'Malgun Gothic', sans-serif; letter-spacing: -.2px; overscroll-behavior-y: none; }
@media (min-width: 481px) { body { box-shadow: 0 0 60px rgba(17,37,79,.08); } }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: not-allowed; opacity: .45; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 50%, transparent); outline-offset: 2px; }
a { color: var(--primary); text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* layout */
.app { min-height: 100dvh; padding: calc(var(--safe-top) + 8px) 16px calc(var(--nav-h) + var(--safe-bottom) + 24px); }
.app.nonav { padding-bottom: calc(var(--safe-bottom) + 24px); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 52px; position: sticky; top: 0; z-index: 5; background: var(--bg); margin: 0 -16px; padding: 0 16px; }
.topbar h1 { font-size: 20px; font-weight: 800; letter-spacing: -.6px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 19px; letter-spacing: -.5px; color: var(--ink); }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(140deg, var(--primary), var(--secondary)); color: #fff; font-size: 14px; font-weight: 900; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--ink-2); }
.icon-btn:active { background: var(--surface-2); }
.icon-btn .dot { position: absolute; top: 6px; right: 5px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 5px; border: 2px solid var(--bg); }
.back { margin-left: -10px; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.sm { width: 18px; height: 18px; }

.page { animation: pageIn .26s cubic-bezier(.2,.8,.2,1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .page, .sheet, .toast { animation: none !important; } }

/* bottom nav */
.bottom-nav { position: fixed; z-index: 20; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 480px);
  display: grid; grid-template-columns: repeat(6, 1fr); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); padding: 6px 2px calc(6px + var(--safe-bottom)); }
.bottom-nav button { min-height: 52px; display: grid; justify-items: center; align-content: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--muted); border-radius: 12px; position: relative; }
.bottom-nav button.active { color: var(--primary); font-weight: 800; }
.bottom-nav button .badge-dot { position: absolute; top: 6px; left: calc(50% + 6px); width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }

/* cards & sections */
.card { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.card.flat { box-shadow: none; }
.card + .card, .stack > * + * { margin-top: 10px; }
.section { margin-top: 26px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 8px; }
.section-head h2 { font-size: 17px; font-weight: 800; letter-spacing: -.5px; }
.section-head .more { font-size: 13px; color: var(--muted); font-weight: 600; padding: 6px 0 6px 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.bold { font-weight: 800; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.top { align-items: flex-start; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.empty { text-align: center; color: var(--muted); padding: 28px 16px; font-size: 14px; background: var(--surface); border-radius: var(--radius); border: 1px dashed var(--line); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

/* hero */
.hero { position: relative; overflow: hidden; border-radius: 24px; padding: 20px; color: #fff; background: linear-gradient(135deg, #1665E8 0%, #3B5FE0 55%, #7654D6 100%); box-shadow: 0 12px 30px rgba(22,101,232,.28); }
.hero .plant { position: absolute; right: -6px; bottom: -2px; width: 190px; opacity: .22; color: #fff; pointer-events: none; }
.hero .date { font-size: 13px; opacity: .9; font-weight: 600; }
.hero .hello { font-size: 21px; font-weight: 800; letter-spacing: -.6px; margin-top: 4px; }
.hero .meta { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.hero .chip { background: rgba(255,255,255,.18); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; font-weight: 700; }
.hero .today { margin-top: 16px; background: rgba(255,255,255,.14); border-radius: 16px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; position: relative; }
.hero .today b { font-size: 26px; font-weight: 900; min-width: 44px; }

.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.quick button { text-align: left; border-radius: var(--radius); padding: 16px; min-height: 104px; display: flex; flex-direction: column; justify-content: space-between; background: var(--surface); box-shadow: var(--shadow); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.quick button .qi { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-weak); color: var(--primary); }
.quick button.purple .qi { background: var(--secondary-weak); color: var(--secondary); }
.quick button b { font-size: 16px; font-weight: 800; display: block; margin-top: 10px; }
.quick button span { font-size: 12px; color: var(--muted); }
.quick button:active, .card.tap:active, .list-item:active { transform: scale(.985); }
.card.tap, .quick button, .list-item { transition: transform .12s; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--surface); border-radius: 16px; padding: 12px; box-shadow: var(--shadow); text-align: center; }
.stat b { display: block; font-size: 21px; font-weight: 900; color: var(--primary); }
.stat span { font-size: 11.5px; color: var(--muted); font-weight: 600; }

/* tags / chips */
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--pending-weak); color: var(--ink-2); white-space: nowrap; }
.tag.primary { background: var(--primary-weak); color: var(--primary); }
.tag.secondary { background: var(--secondary-weak); color: var(--secondary); }
.tag.success { background: var(--success-weak); color: var(--success); }
.tag.hold { background: var(--hold-weak); color: color-mix(in srgb, var(--hold) 75%, var(--ink)); }
.tag.danger { background: var(--danger-weak); color: var(--danger); }
.tag.pending { background: var(--pending-weak); color: var(--pending); }
.tag.solid { background: var(--primary); color: #fff; }
.shift { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 7px; border-radius: 8px; font-size: 12px; font-weight: 800; }
.shift.D { background: var(--d-weak); color: var(--d); }
.shift.AN, .shift.A, .shift.N { background: var(--an-weak); color: var(--an); }
.shift.W { background: var(--w-weak); color: var(--w); }
.shift.OFF { background: var(--off-weak); color: var(--off); }
.shift.ETC { background: var(--hold-weak); color: var(--hold); }
.shift.NONE { background: transparent; color: var(--muted); border: 1px dashed var(--line); }

.datebox { width: 52px; flex: none; text-align: center; border-radius: 14px; background: var(--primary-weak); color: var(--primary); padding: 7px 0; line-height: 1.15; }
.datebox b { display: block; font-size: 20px; font-weight: 900; }
.datebox span { font-size: 11px; font-weight: 700; }
.datebox.night { background: var(--an-weak); color: var(--an); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 18px; border-radius: 14px; font-weight: 800; font-size: 15px; background: var(--primary); color: #fff; transition: filter .15s, transform .1s; white-space: nowrap; }
.btn:active:not(:disabled) { transform: scale(.98); filter: brightness(.95); }
.btn.block { width: 100%; }
.btn.secondary { background: var(--primary-weak); color: var(--primary); }
.btn.purple { background: var(--secondary); }
.btn.ghost { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.btn.success { background: var(--success); }
.btn.hold { background: var(--hold); color: #2b1d00; }
.btn.danger { background: var(--danger); }
.btn.danger-weak { background: var(--danger-weak); color: var(--danger); }
.btn.sm { min-height: 38px; padding: 0 13px; font-size: 13.5px; border-radius: 11px; }
.btn.xs { min-height: 32px; padding: 0 10px; font-size: 12.5px; border-radius: 10px; }
.btn-row { display: flex; gap: 8px; }
.btn-row > .btn { flex: 1; }
.sticky-cta { position: sticky; bottom: calc(var(--nav-h) + var(--safe-bottom) + 8px); z-index: 4; margin-top: 14px; }

/* segmented tabs */
.seg { display: flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.seg button { flex: 1; min-height: 38px; border-radius: 10px; font-weight: 700; font-size: 13.5px; color: var(--muted); white-space: nowrap; padding: 0 10px; }
.seg button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* lists */
.list-item { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--surface); border-radius: 16px; border: 1px solid var(--line); width: 100%; text-align: left; }
.list-item.disabled { opacity: .62; background: var(--surface-2); }
.list-item.selected { border: 2px solid var(--primary); background: color-mix(in srgb, var(--primary-weak) 60%, var(--surface)); padding: 13px; }
.avatar { width: 40px; height: 40px; border-radius: 13px; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--primary-weak); color: var(--primary); }
.avatar.purple { background: var(--secondary-weak); color: var(--secondary); }
.avatar.gray { background: var(--pending-weak); color: var(--pending); }
.check { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line); flex: none; display: grid; place-items: center; color: #fff; }
.selected .check { background: var(--primary); border-color: var(--primary); }
.group-label { font-size: 12.5px; font-weight: 800; color: var(--muted); margin: 16px 2px 8px; }
.star { color: var(--hold); }

/* forms */
.field { display: grid; gap: 6px; margin-top: 14px; }
.field > label, .label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.input, .field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-size: 16px; color: var(--ink); }
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px var(--primary-weak); }
.hint { font-size: 12px; color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-btn { white-space: nowrap; flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 13px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); min-height: 38px; }
.chip-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip-btn.night.active { background: var(--secondary); border-color: var(--secondary); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.toggle-row:last-child { border-bottom: 0; }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; position: absolute; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 15px; background: var(--line); transition: .2s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .2s; }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { transform: translateX(20px); }
.checkline { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.checkline input { width: 20px; height: 20px; accent-color: var(--primary); }

/* notices */
.notice { border-radius: 14px; padding: 12px 14px; font-size: 13px; background: var(--primary-weak); color: var(--primary-ink); line-height: 1.55; }
.notice.warn { background: var(--hold-weak); color: color-mix(in srgb, var(--hold) 60%, var(--ink)); }
.notice.danger { background: var(--danger-weak); color: var(--danger); }
.notice.gray { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.banner { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; padding: 8px 12px; border-radius: 12px; margin: 4px 0 10px; }
.banner.test { background: var(--hold-weak); color: color-mix(in srgb, var(--hold) 60%, var(--ink)); }
.banner.offline { background: var(--danger-weak); color: var(--danger); }

/* timeline / progress */
.progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: 3px; }
.kv { display: grid; grid-template-columns: 92px 1fr; gap: 8px 10px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.resp-summary { display: flex; gap: 6px; flex-wrap: wrap; }

/* calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head b { font-size: 17px; font-weight: 800; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { text-align: center; font-size: 11.5px; color: var(--muted); font-weight: 700; padding: 4px 0; }
.cal .dow:first-child { color: var(--danger); }
.cal .day { min-height: 62px; border-radius: 12px; background: var(--surface-2); padding: 5px 3px; display: flex; flex-direction: column; align-items: center; gap: 3px; border: 1px solid transparent; }
.cal .day.blank { background: transparent; }
.cal .day.today { border-color: var(--primary); background: var(--primary-weak); }
.cal .day .n { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.cal .day .shift { min-width: 30px; height: 22px; font-size: 11px; padding: 0 4px; }
.cal .day .mark { font-size: 9.5px; font-weight: 800; border-radius: 5px; padding: 0 4px; line-height: 15px; }
.mark.cover { background: var(--hold); color: #2b1d00; }
.mark.leave { background: var(--success); color: #fff; }
.mark.req { background: var(--primary); color: #fff; }
.legend { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); align-items: center; margin-top: 12px; }
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
table.sched { border-collapse: separate; border-spacing: 0; font-size: 12px; width: 100%; }
table.sched th, table.sched td { padding: 7px 5px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.sched th { background: var(--surface-2); font-weight: 700; color: var(--muted); position: sticky; top: 0; }
table.sched td:first-child, table.sched th:first-child { position: sticky; left: 0; background: var(--surface); text-align: left; z-index: 1; font-weight: 700; padding-left: 10px; }
table.sched th:first-child { background: var(--surface-2); }
table.sched tr.me td { background: color-mix(in srgb, var(--primary-weak) 70%, var(--surface)); }

/* sheet (bottom modal) */
.overlay { position: fixed; inset: 0 0 var(--kb, 0px) 0; z-index: 50; background: rgba(10, 18, 32, .45); display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .18s; }
@keyframes fadeIn { from { opacity: 0; } }
.sheet { width: min(100%, 480px); max-height: calc(100dvh - var(--kb, 0px) - var(--safe-top) - 24px); overflow: auto; background: var(--surface); border-radius: 26px 26px 0 0; padding: 10px 18px calc(22px + var(--safe-bottom)); animation: sheetUp .28s cubic-bezier(.2,.8,.2,1); overscroll-behavior: contain; }
@keyframes sheetUp { from { transform: translateY(40px); opacity: .6; } }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.sheet h2 { font-size: 19px; font-weight: 800; letter-spacing: -.5px; }

.toast { position: fixed; z-index: 70; left: 50%; bottom: calc(var(--nav-h) + var(--safe-bottom) + 16px); transform: translateX(-50%); max-width: min(92vw, 440px); background: #111827; color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); animation: toastIn .22s; text-align: center; }
.toast.error { background: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } }

/* kakao preview */
.kakao { background: #B2C7DA; border-radius: 16px; padding: 12px; }
.kakao .bubble { background: #fff; color: #111; border-radius: 12px; overflow: hidden; font-size: 13.5px; }
.kakao .bubble .hd { background: #FEE500; padding: 9px 12px; font-weight: 800; color: #3A1D1D; }
.kakao .bubble .bd { padding: 12px; white-space: pre-line; }
.kakao .bubble .bt { margin: 0 12px 12px; border-radius: 8px; background: #F2F3F5; text-align: center; padding: 10px; font-weight: 700; }

.loading { display: grid; place-items: center; min-height: 60dvh; color: var(--muted); gap: 14px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.splash-logo { font-size: 28px; font-weight: 900; letter-spacing: -1px; color: var(--ink); }
.slogan { color: var(--muted); font-size: 14px; }

.steps { display: flex; gap: 6px; margin: 6px 0 16px; }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.steps i.on { background: var(--primary); }
.count-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 11px; background: var(--danger); color: #fff; font-size: 12px; font-weight: 800; padding: 0 6px; }
.footer-note { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 28px; line-height: 1.6; }
/* 카카오 로그인 버튼 (Kakao design guide: #FEE500 background, black 85% label) */
.btn.kakao-btn { background: #FEE500; color: rgba(0, 0, 0, 0.85); border-color: #FEE500; gap: 8px; }
.btn.kakao-btn:hover { background: #F5DC00; }
.kakao-mark { width: 18px; height: 18px; display: inline-block; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3C6.48 3 2 6.58 2 11c0 2.86 1.88 5.37 4.71 6.79l-.96 3.53c-.09.31.27.56.54.38l4.2-2.78c.5.05 1 .08 1.51.08 5.52 0 10-3.58 10-8S17.52 3 12 3z' fill='%23000' fill-opacity='.9'/%3E%3C/svg%3E"); }
details.card > summary { cursor: pointer; list-style: none; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after { content: '▾'; float: right; color: var(--muted); }
.check.on { background: var(--primary); border-color: var(--primary); }

/* keyboard open: sheet sits on top of the keyboard, no extra bottom inset */
html.kb-open .sheet { padding-bottom: 16px; }

/* 공지사항 (home top) */
.notice-board { margin: 4px 0 12px; display: grid; gap: 6px; }
.notice-item { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font-size: 14px; color: var(--text); }
.notice-badge { flex: none; font-size: 11px; font-weight: 800; color: #fff; background: var(--primary); border-radius: 6px; padding: 2px 6px; }
.notice-item .ellipsis { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.sched td.cell-edit { cursor: pointer; }
table.sched td.cell-edit:hover, table.sched td.cell-edit:focus-visible { background: var(--surface-2, rgba(0,0,0,.05)); outline: none; }
