/* 공유 공간 예약 — 디자인 토큰 (Lucid Link 체계와 동일) */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

:root {
  --font-sans: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --canvas: #F7F8FA; --surface: #FFFFFF; --surface-muted: #F2F4F7;
  --line: #E4E7EC; --line-strong: #D0D5DD;
  --ink: #101828; --ink-2: #344054; --ink-3: #667085; --ink-4: #98A2B3;
  --accent: #2563EB; --accent-hover: #1D4ED8; --accent-soft: #EFF4FF;
  --ok: #067647; --ok-soft: #ECFDF3; --warn: #B54708; --warn-soft: #FFFAEB;
  --risk: #B42318; --risk-soft: #FEF3F2; --info: #175CD3; --info-soft: #EFF8FF;
  --brand: #17233C;
  --r-sm: 4px; --r: 6px; --r-card: 8px; --r-lg: 12px;
  --shadow-card: 0 1px 3px rgba(0,0,0,.06), 0 0 0 1px rgba(0,0,0,.04);
  --shadow-modal: 0 8px 32px rgba(30,27,75,.12), 0 0 0 1px rgba(30,27,75,.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans); font-size: 14px; line-height: 1.5; color: var(--ink);
  background: var(--canvas); word-break: keep-all; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
code { font-family: ui-monospace, monospace; font-size: 12px; background: var(--surface-muted); padding: 1px 5px; border-radius: var(--r-sm); }
.hidden { display: none !important; }
.muted { color: var(--ink-3); font-size: 13px; }
.center { text-align: center; }
.mt { margin-top: 12px; }

/* ── 레이아웃 ── */
.wrap { max-width: 480px; margin: 0 auto; padding: 16px; }
.wrap.wide { max-width: 1120px; }
header.top {
  background: var(--brand); color: #fff; padding: 0 16px; height: 56px;
  display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 20;
}
header.top .logo { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; flex: none; }
header.top .logo svg { width: 34px; height: 34px; display: block; }
header.top h1 { font-size: 16px; font-weight: 600; }
header.top .sub { font-size: 12px; opacity: .7; margin-top: 1px; }
header.top .right { margin-left: auto; font-size: 12px; opacity: .8; display: flex; gap: 10px; align-items: center; }
header.top .right button { background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff; }

/* ── 카드 ── */
.card { background: var(--surface); border-radius: var(--r-card); padding: 20px; box-shadow: var(--shadow-card); margin-bottom: 12px; }
.card h2 { font-size: 15px; color: var(--ink); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.card h2 .muted { font-weight: 400; }
.card > .muted { margin-bottom: 12px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }

/* ── 폼 ── */
label { display: block; font-size: 12px; font-weight: 500; color: var(--ink-2); margin: 0 0 6px; }
.field { margin-top: 14px; }
input[type=text], input[type=password], input[type=tel], input[type=time], input[type=date], input[type=number], input[type=email], select, textarea {
  width: 100%; height: 40px; padding: 0 12px; font-size: 14px; font-family: inherit; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder { color: var(--ink-4); }
textarea { height: auto; min-height: 96px; padding: 10px 12px; line-height: 1.5; }
select { appearance: none; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 32px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.row > * { flex: 1 1 160px; min-width: 0; }
.row > .auto { flex: 0 0 auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }

/* ── 버튼 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px;
  font-size: 14px; font-weight: 600; font-family: inherit; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent; border-radius: var(--r); background: var(--accent); color: #fff; transition: background .15s;
}
.btn:hover { background: var(--accent-hover); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.block { width: 100%; height: 48px; font-size: 16px; margin-top: 14px; }
.btn.secondary { background: var(--surface); color: var(--ink-2); border-color: var(--line-strong); }
.btn.secondary:hover { background: var(--surface-muted); }
.btn.ghost { background: transparent; color: var(--ink-3); border-color: transparent; }
.btn.ghost:hover { background: var(--surface-muted); color: var(--ink); }
.btn.small { height: 34px; padding: 0 12px; font-size: 13px; }
.btn.danger { background: var(--risk); }
.btn.ok { background: var(--ok); }
.btn svg { width: 16px; height: 16px; flex: none; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar .spacer { flex: 1; }

/* ── 칩 (선택 버튼) ── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  font-size: 14px; font-family: inherit; cursor: pointer; color: var(--ink-2); white-space: nowrap;
}
.chip:hover { background: var(--surface-muted); }
.chip.active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); font-weight: 600; }

/* ── 배지 ── */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.badge.night, .badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.day, .badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.open, .badge.info { background: var(--info-soft); color: var(--info); }
.badge.unknown, .badge.risk { background: var(--risk-soft); color: var(--risk); }
.badge.gray { background: var(--surface-muted); color: var(--ink-2); }

/* ── 탭 ── */
.tabs { display: flex; gap: 4px; margin: 16px 0 12px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button {
  height: 40px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; background: none; margin-bottom: -1px;
  font-size: 14px; font-weight: 500; font-family: inherit; color: var(--ink-3); cursor: pointer; white-space: nowrap;
}
.tabs button:hover { color: var(--ink); }
.tabs button.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

/* ── 표 ── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); }
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--surface); }
table.grid th, table.grid td { padding: 10px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.grid th { background: var(--surface-muted); font-weight: 600; color: var(--ink-2); font-size: 12px; }
table.grid tr:last-child td { border-bottom: 0; }
table.grid tr:hover td { background: #FAFBFC; }
table.grid td.num { text-align: right; font-variant-numeric: tabular-nums; }
.inline-actions { display: flex; gap: 6px; }

/* ── KPI ── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.stat { background: var(--surface); border-radius: var(--r-card); padding: 14px 16px; border: 1px solid var(--line); }
.stat .n { font-size: 24px; font-weight: 600; color: var(--ink); white-space: nowrap; letter-spacing: -.02em; }
.stat .l { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.stat .d { font-size: 11px; color: var(--ink-4); margin-top: 2px; }

/* ── 차트 ── */
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.charts .card { margin: 0; min-width: 0; }
.charts .span2 { grid-column: 1 / -1; }
.charts canvas { max-height: 240px; width: 100% !important; }
@media (max-width: 760px) { .charts { grid-template-columns: 1fr; } }
.empty-note { color: var(--ink-4); font-size: 13px; text-align: center; padding: 36px 0; }
.heatmap { display: grid; grid-template-columns: 36px repeat(16, minmax(0, 1fr)); gap: 3px; font-size: 11px; }
.heatmap .hl { color: var(--ink-4); text-align: center; line-height: 20px; }
.heatmap .hr { color: var(--ink-3); line-height: 24px; text-align: right; padding-right: 6px; font-weight: 500; }
.heatmap .hc { height: 24px; border-radius: var(--r-sm); background: var(--surface-muted); position: relative; }
.heatmap .hc.night { box-shadow: inset 0 0 0 1.5px #F7C87A; }
.heatmap .hc[data-n]:not([data-n="0"])::after { content: attr(data-n); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; }

/* ── 달력 ── */
.cal-nav { display: flex; align-items: center; gap: 8px; margin: 16px 0 8px; }
.cal-nav strong { font-size: 15px; min-width: 100px; text-align: center; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; max-width: 560px; }
.calendar .dow { text-align: center; font-size: 12px; color: var(--ink-4); padding: 4px 0; }
.calendar .day {
  height: 56px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: pointer;
  display: flex; flex-direction: column; align-items: flex-start; padding: 5px 7px; font-size: 13px; color: var(--ink-2);
}
.calendar .day:hover { border-color: var(--line-strong); }
.calendar .day.other { opacity: .35; }
.calendar .day.weekend { background: var(--surface-muted); color: var(--ink-3); }
.calendar .day.off { background: var(--warn-soft); border-color: #F7C87A; color: var(--warn); font-weight: 600; }
.calendar .day.today { box-shadow: inset 0 0 0 2px var(--accent); }
.calendar .day .lbl { font-size: 10px; font-weight: 500; margin-top: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ── 이용자 앱 ── */
.app-hero { display: flex; align-items: center; gap: 14px; }
.app-hero .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 600; font-size: 18px; flex: none; }
.app-hero .name { font-size: 18px; font-weight: 600; }
.app-hero .meta { font-size: 13px; color: var(--ink-3); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-card); font-size: 13px; line-height: 1.5; margin-top: 14px; }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.info { background: var(--info-soft); color: var(--info); }
.pw-box { background: var(--surface); border: 1px dashed #F7C87A; border-radius: var(--r-card); padding: 14px; margin-top: 14px; text-align: center; }
.pw-box .l { font-size: 12px; color: var(--ink-3); }
.pw-box .pw { font-size: 34px; letter-spacing: .25em; font-weight: 700; color: var(--warn); font-variant-numeric: tabular-nums; margin: 4px 0; }
.check-list label { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 400; color: var(--ink); padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-card); margin: 0 0 8px; cursor: pointer; }
.check-list label:has(input:checked) { background: var(--ok-soft); border-color: #A6E0C0; }
.check-list input { width: 20px; height: 20px; accent-color: var(--ok); }
.rules { font-size: 13px; color: var(--ink-2); padding-left: 18px; margin: 0; }
.rules li { margin: 4px 0; }
.big { font-size: 20px; font-weight: 600; }
.done-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 8px auto 14px; }
.done-icon.ok { background: var(--ok-soft); color: var(--ok); }
.done-icon svg { width: 32px; height: 32px; }
.install-steps { display: grid; gap: 8px; margin-top: 10px; }
.install-steps .s { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.install-steps .s > b { width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 12px; flex: none; }
.install-steps svg { width: 16px; height: 16px; vertical-align: -3px; }
.foot-links { text-align: center; font-size: 12px; color: var(--ink-4); padding: 8px 0 20px; }
.foot-links a { color: var(--ink-3); margin: 0 6px; }

.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; margin: 8px auto 12px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 원우 상단 탭 (세그먼트) ── */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--surface-muted); padding: 4px; border-radius: 10px; margin-bottom: 12px; }
.seg button { height: 38px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-3); cursor: pointer; }
.seg button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); }

/* ── 주간 달력 ── */
.wk-nav { display: flex; gap: 4px; }
.wk { display: grid; grid-template-columns: 30px repeat(7, minmax(0, 1fr)); gap: 2px; user-select: none; }
.wk-h { text-align: center; font-size: 11px; color: var(--ink-3); padding: 2px 0 4px; line-height: 1.2; display: flex; flex-direction: column; }
.wk-h .dw { font-weight: 600; font-size: 12px; color: var(--ink-2); }
.wk-h.sun .dw { color: #D92D20; } .wk-h.sat .dw { color: #175CD3; }
.wk-h.today { background: var(--accent-soft); border-radius: 6px; } .wk-h.today .dw, .wk-h.today .dn { color: var(--accent); }
.wk-t { font-size: 10px; color: var(--ink-4); text-align: right; padding-right: 4px; line-height: 26px; font-variant-numeric: tabular-nums; }
.wk-c { height: 26px; border: 0; border-radius: 3px; padding: 0 2px; font: inherit; font-size: 10px; font-weight: 600; line-height: 26px; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.wk-c.open { background: #DCFAE6; } .wk-c.closed { background: #EAECF0; }
.wk-c.past { opacity: .35; cursor: default; }
.wk-c.taken { background: repeating-linear-gradient(135deg, #D0D5DD 0 4px, #E4E7EC 4px 8px); color: var(--ink-2); }
.wk-c.mine-pending { background: #FEDF89; color: #93370D; } .wk-c.mine-approved { background: #2563EB; color: #fff; }
.wk-c.sel { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.wk-c.r-pending { background: #FEDF89; color: #93370D; } .wk-c.r-approved { background: #2563EB; color: #fff; }
.wk-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; font-size: 11px; color: var(--ink-3); }
.wk-legend i.lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 4px; }
.lg.open { background: #DCFAE6; } .lg.closed { background: #EAECF0; } .lg.taken { background: repeating-linear-gradient(135deg, #D0D5DD 0 3px, #E4E7EC 3px 6px); }
.lg.mine-pending, .lg.r-pending { background: #FEDF89; } .lg.mine-approved, .lg.r-approved { background: #2563EB; }
.bk-form { margin-top: 14px; padding: 14px; border: 1px solid var(--accent); border-radius: var(--r-card); background: #F8FAFF; }
.bk-sum { font-size: 15px; font-weight: 600; color: var(--ink); }
.res-row { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.res-row:last-child { border-bottom: 0; }
.res-when { font-weight: 600; font-size: 14px; }
.res-act { display: flex; align-items: center; gap: 4px; flex: none; }
.pw-age { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tab-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: #F04438; color: #fff; font-size: 11px; font-weight: 700; }

.wk-admin { grid-template-columns: 40px repeat(7, minmax(0, 1fr)); }
.wk-admin .wk-c { height: 24px; line-height: 24px; font-size: 11px; }
label.check { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 400; color: var(--ink-2); margin: 8px 0 0; }
label.check input { width: 16px; height: 16px; accent-color: var(--accent); }

/* ── 모달 ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(16,24,40,.45); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow: auto; }
.modal { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-modal); width: 100%; max-width: 1000px; padding: 18px 20px 20px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.modal-head h2 { font-size: 16px; }
.modal .table-wrap { max-height: 60vh; overflow: auto; }

.foot-brand { text-align: center; font-size: 12px; color: var(--ink-3); padding: 0 0 72px; line-height: 1.6; }
.foot-brand .by { color: var(--ink-4); font-size: 11px; }
.fab-admin {
  position: fixed; right: 16px; bottom: 16px; z-index: 30; display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 14px 0 12px; border-radius: 999px; background: var(--surface); color: var(--ink-3);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-card); font-size: 13px; font-weight: 500;
}
.fab-admin:hover { color: var(--ink); background: var(--surface-muted); }
.fab-admin svg { width: 16px; height: 16px; }

/* ── 토스트 ── */
#toast { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 99; width: 90%; max-width: 420px; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--r-card); margin-bottom: 8px; font-size: 13px; box-shadow: var(--shadow-modal); }
.toast.error { background: var(--risk); }
.toast.ok { background: var(--ok); }

/* ── 관리자 로그인 ── */
.login-box { max-width: 380px; margin: 60px auto; text-align: center; }
.login-box .logo { width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 16px; }
.login-box .logo svg { width: 56px; height: 56px; display: block; }

@media print { .no-print { display: none !important; } body { background: #fff; } }


/* ═════════════ 타이포그래피 · 크기 (2026 개편) ═════════════
   Pretendard Variable · 본문 15px(모바일 16px) · 제목 굵게 + 자간 좁게 · 숫자 고정폭 · 터치 영역 44px */
:root {
  --fs-xs: 12px; --fs-sm: 13px; --fs-base: 15px; --fs-md: 16px; --fs-lg: 18px; --fs-xl: 22px; --fs-2xl: 28px;
  --r: 8px; --r-card: 14px; --r-lg: 16px;
  --shadow-card: 0 1px 2px rgba(16,24,40,.04), 0 0 0 1px rgba(16,24,40,.05);
}
body { font-size: var(--fs-base); line-height: 1.55; letter-spacing: -0.011em; font-feature-settings: "ss06"; text-rendering: optimizeLegibility; }
@media (max-width: 640px) { body { font-size: var(--fs-md); } }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.025em; }
.muted { font-size: 14px; color: var(--ink-3); }
.mt { margin-top: 14px; }

header.top { height: 60px; }
header.top h1 { font-size: 17px; font-weight: 700; }
header.top .sub { font-size: 12.5px; opacity: .72; }

.card { padding: 22px; border-radius: var(--r-card); margin-bottom: 14px; }
.card h2 { font-size: var(--fs-lg); margin-bottom: 12px; }
.card h2 .muted { font-size: 13.5px; font-weight: 500; letter-spacing: -0.01em; }

label { font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
input[type=text], input[type=password], input[type=tel], input[type=time], input[type=date], input[type=number], input[type=email], select, textarea {
  height: 46px; font-size: var(--fs-md); border-radius: 10px; padding: 0 14px; letter-spacing: -0.01em;
}
textarea { padding: 12px 14px; }

.btn { height: 44px; font-size: var(--fs-base); font-weight: 600; border-radius: 10px; padding: 0 18px; letter-spacing: -0.01em; }
.btn.block { height: 54px; font-size: 17px; font-weight: 700; border-radius: 12px; }
.btn.small { height: 36px; font-size: 13.5px; padding: 0 13px; border-radius: 8px; }

.chip { height: 40px; padding: 0 16px; font-size: var(--fs-base); font-weight: 500; }
.chip.active { font-weight: 700; }
.badge { font-size: 12px; font-weight: 600; padding: 3px 10px; }

.tabs { gap: 2px; margin: 18px 0 0; }
.tabs button { height: 48px; padding: 0 18px; font-size: var(--fs-md); font-weight: 600; letter-spacing: -0.02em; }
.tabs button.active { font-weight: 700; }
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 0 2px; }
.subtabs button { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface);
  font: inherit; font-size: 14px; font-weight: 500; color: var(--ink-3); cursor: pointer; }
.subtabs button.active { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
#view-admin > div[id^="tab-"] { margin-top: 14px; }

table.grid { font-size: 14px; }
table.grid th { font-size: 13px; font-weight: 600; }
table.grid td, table.grid th { padding: 12px 14px; }
.num, .stat .n, .pw, .wk-t, .wk-h .dn, table.grid td { font-variant-numeric: tabular-nums; }

.stat { padding: 16px 18px; border-radius: var(--r-card); }
.stat .n { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -0.03em; }
.stat .l { font-size: 13.5px; font-weight: 500; }
.stat .d { font-size: 12px; }

.notice { font-size: 14.5px; border-radius: 12px; padding: 14px 16px; }
.app-hero .avatar { width: 52px; height: 52px; font-size: 20px; font-weight: 700; }
.app-hero .name { font-size: 21px; font-weight: 700; letter-spacing: -0.03em; }
.app-hero .meta { font-size: 14px; }
.big { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.03em; }
.pw-box .pw { font-size: 38px; letter-spacing: .2em; }
.rules { font-size: 14.5px; line-height: 1.65; }

.seg { padding: 5px; border-radius: 14px; }
.seg button { height: 44px; font-size: var(--fs-md); font-weight: 600; border-radius: 10px; letter-spacing: -0.02em; }
.seg button.active { font-weight: 700; }
.wk-h .dw { font-size: 13px; font-weight: 700; } .wk-h { font-size: 11.5px; }
.wk-t { font-size: 11px; line-height: 28px; } .wk-c { height: 28px; line-height: 28px; font-size: 11px; border-radius: 4px; }
.wk-legend { font-size: 12px; }
.bk-form { border-radius: 14px; padding: 16px; }
.bk-sum { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.res-when { font-size: 15px; font-weight: 700; }
.check-list label { font-size: var(--fs-md); border-radius: 12px; }
.modal { border-radius: 18px; }
.modal-head h2 { font-size: var(--fs-lg); }
.foot-brand { font-size: 12.5px; }
.save-bar { position: sticky; bottom: 0; padding: 12px 0 16px; background: linear-gradient(to top, var(--canvas) 70%, transparent); z-index: 5; }
.save-bar .btn.block { margin-top: 0; }
label.check { font-size: 14px; font-weight: 500; }


/* ═════════════ 휴대폰 화면 (720px 이하) ═════════════ */
.head-search { max-width: 260px; }
header.top h1, header.top .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
header.top > div:nth-child(2) { min-width: 0; }

@media (max-width: 720px) {
  .wrap { padding: 12px; }
  .card { padding: 18px 16px; }
  .card-head { gap: 10px; }
  .head-search { max-width: none; flex: 1 1 100%; }

  /* 헤더: 한 줄 유지, 이메일 숨김 */
  header.top { height: 56px; padding: 0 12px; gap: 10px; }
  header.top .logo, header.top .logo svg { width: 30px; height: 30px; }
  header.top h1 { font-size: 16px; }
  header.top .sub { font-size: 12px; }
  header.top .right { gap: 6px; }
  header.top .right #admin-email { display: none; }
  header.top .right .btn.small { height: 32px; padding: 0 10px; font-size: 13px; }

  /* 상단 탭: 5개가 한 줄에 꽉 차게 */
  .tabs { overflow: visible; }
  .tabs button { flex: 1 1 0; padding: 0 4px; font-size: 15px; height: 46px; }
  .subtabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .subtabs::-webkit-scrollbar { display: none; }
  .subtabs button { flex: none; }

  /* 표 → 카드 */
  .table-wrap { border: 0; border-radius: 0; overflow: visible; }
  table.grid:not(.kv), table.grid:not(.kv) tbody { display: block; background: transparent; }
  table.grid:not(.kv) thead { display: none; }
  table.grid:not(.kv) tr {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px;
    padding: 14px 16px; margin-bottom: 10px; background: var(--surface);
    border: 1px solid var(--line); border-radius: 14px;
  }
  table.grid:not(.kv) tr:last-child { margin-bottom: 0; }
  table.grid:not(.kv) tr:hover td { background: none; }
  table.grid:not(.kv) td {
    display: block; padding: 0; border: 0; min-width: 0; white-space: normal;
    font-size: 14.5px; line-height: 1.4; color: var(--ink); word-break: keep-all; overflow-wrap: anywhere;
  }
  table.grid:not(.kv) td::before {
    content: attr(data-label); display: block; margin-bottom: 3px;
    font-size: 12px; font-weight: 500; color: var(--ink-4); letter-spacing: -0.01em;
  }
  table.grid:not(.kv) td.ttl { grid-column: 1 / -1; order: -2; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
  table.grid:not(.kv) td.ttl::before { display: none; }
  table.grid:not(.kv) td.wide { grid-column: span 2; }
  table.grid:not(.kv) td.blank { display: none; }
  table.grid:not(.kv) td.act {
    grid-column: 1 / -1; order: 99; display: flex; gap: 8px; padding-top: 10px; margin-top: 2px; border-top: 1px solid var(--line);
  }
  table.grid:not(.kv) td.act::before { display: none; }
  table.grid:not(.kv) td.act .btn { flex: 1; height: 40px; font-size: 14.5px; }
  table.grid:not(.kv) td input[type=checkbox] { width: 20px; height: 20px; }
  table.grid:not(.kv) tr.msg { display: block; text-align: center; color: var(--ink-3); background: var(--surface-muted); border-style: dashed; }
  table.grid:not(.kv) tr.msg td { color: var(--ink-3); }
  table.grid:not(.kv) tr.msg td::before { display: none; }

  /* 통계 · 요약 숫자 */
  .stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat { padding: 14px; }
  .stat .n { font-size: 24px; }
  .charts { gap: 10px; }

  /* 주간 달력 (관리자) */
  .wk-admin { grid-template-columns: 28px repeat(7, minmax(0, 1fr)); }
  .wk-admin .wk-c { font-size: 10px; }
  .card-head .wk-nav { width: 100%; justify-content: space-between; }

  /* 모달 */
  .modal-overlay { padding: 12px; align-items: flex-end; }
  .modal { padding: 16px; border-radius: 18px 18px 14px 14px; }
  .modal .table-wrap { max-height: 70vh; }
}

/* ═════════════ 플랫폼 (2026-12): 공간 · 입장 코드 · Lucid Link ═════════════ */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; word-break: break-all; }
.code-input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 22px !important; letter-spacing: .3em; text-transform: uppercase; text-align: center; }
.code-chip { display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; letter-spacing: .12em;
  font-size: 13.5px; padding: 3px 9px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
.code-chip.off { background: var(--surface-muted); color: var(--ink-4); }
.org-switch { height: 32px !important; width: auto !important; padding: 0 8px !important; font-size: 13px !important; border-radius: 8px !important;
  background: rgba(255,255,255,.08) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.3) !important; }
.org-switch option { color: var(--ink); }
.mg-log { margin: 14px 0 0; font-size: 12.5px; color: var(--ink-2); white-space: pre-wrap; background: var(--surface-muted); border-radius: 10px; padding: 0 12px; }
.mg-log:not(:empty) { padding: 12px; }
.admin-foot { padding: 20px 0 32px; }
.foot-brand a { color: inherit; }
.foot-brand a b { color: var(--ink-2); }

/* 완료 화면 한 줄 소개 */
.promo { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; margin-bottom: 14px;
  background: linear-gradient(120deg, #F0F6FF, #EEFBF6); border: 1px solid #DCE8FB; color: var(--ink); }
.promo-logo svg { width: 36px; height: 36px; display: block; border-radius: 9px; }
.promo-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.promo-txt b { font-size: 14.5px; letter-spacing: -0.02em; }
.promo-txt span { font-size: 12.5px; color: var(--ink-3); }
.promo-go { font-size: 22px; color: var(--ink-4); }

@media (max-width: 720px) {
  table.grid:not(.kv) td.act { flex-wrap: wrap; }
  table.grid:not(.kv) td.act .btn { flex: 1 1 calc(50% - 4px); }
  header.top .right .org-switch { max-width: 110px; }
  header.top .right #link-console { display: none; }
}

/* ═════════════ 소개 · 도입 신청 / 운영사 콘솔 ═════════════ */
.lp { background: var(--surface); }
.lp-nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 20px;
  background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.lp-nav .logo svg { width: 30px; height: 30px; display: block; }
.lp-nav .nm { font-weight: 700; letter-spacing: -0.02em; font-size: 16px; }
.lp-nav .nm small { font-weight: 500; color: var(--ink-3); margin-left: 6px; font-size: 13px; }
.lp-nav .sp { flex: 1; }
.lp-hero { max-width: 1040px; margin: 0 auto; padding: 72px 20px 56px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.lp-eyebrow { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; }
.lp-hero h1 { font-size: 44px; line-height: 1.2; letter-spacing: -0.04em; margin: 18px 0 16px; }
.lp-hero h1 em { font-style: normal; background: linear-gradient(90deg, #185FA5, #2BA37F); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero p.lead { font-size: 18px; color: var(--ink-2); line-height: 1.65; }
.lp-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.lp-cta .btn { height: 52px; padding: 0 22px; font-size: 16px; border-radius: 12px; }
.lp-phone { justify-self: center; width: 280px; border-radius: 34px; padding: 12px; background: #0F172A; box-shadow: 0 30px 60px rgba(23,35,60,.25); }
.lp-phone .scr { border-radius: 24px; background: var(--canvas); overflow: hidden; }
.lp-phone .bar { background: var(--brand); color: #fff; padding: 14px 16px; font-weight: 700; font-size: 14px; }
.lp-phone .bar small { display: block; font-weight: 500; opacity: .7; font-size: 11px; }
.lp-phone .body { padding: 12px; display: grid; gap: 8px; }
.lp-mini { background: #fff; border-radius: 12px; padding: 12px; box-shadow: var(--shadow-card); font-size: 12px; }
.lp-mini .t { font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.lp-mini .g { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.lp-mini .g i { height: 14px; border-radius: 3px; background: #E7EEF9; }
.lp-mini .g i.a { background: #2563EB; } .lp-mini .g i.b { background: #F5B55B; } .lp-mini .g i.c { background: #CBD5E1; }
.lp-mini .pw { font-size: 24px; font-weight: 800; letter-spacing: .2em; text-align: center; color: var(--brand); }
.lp-sec { max-width: 1040px; margin: 0 auto; padding: 56px 20px; }
.lp-sec h2 { font-size: 30px; letter-spacing: -0.035em; text-align: center; }
.lp-sec > p.sub { text-align: center; color: var(--ink-3); margin-top: 10px; font-size: 16px; }
.lp-feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
.lp-feat .f { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: #fff; }
.lp-feat .f .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.lp-feat .f .ic svg { width: 22px; height: 22px; }
.lp-feat .f h3 { font-size: 17px; margin-bottom: 6px; }
.lp-feat .f p { color: var(--ink-3); font-size: 14.5px; line-height: 1.6; }
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; counter-reset: st; }
.lp-steps .s { padding: 22px; border-radius: 16px; background: var(--canvas); }
.lp-steps .s::before { counter-increment: st; content: counter(st); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 12px; }
.lp-steps .s b { display: block; font-size: 16px; margin-bottom: 4px; }
.lp-steps .s span { color: var(--ink-3); font-size: 14.5px; }
.lp-band { background: var(--canvas); }
.lp-form { max-width: 620px; margin: 28px auto 0; }
.lp-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin-top: 24px; color: var(--ink-3); font-size: 14px; }
.lp-trust span::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 6px; }
.lp-foot { border-top: 1px solid var(--line); padding: 28px 20px 40px; text-align: center; color: var(--ink-3); font-size: 13px; line-height: 1.8; }
.lp-foot b { color: var(--ink-2); }
@media (max-width: 860px) {
  .lp-hero { grid-template-columns: 1fr; padding-top: 40px; gap: 32px; }
  .lp-hero h1 { font-size: 32px; }
  .lp-hero p.lead { font-size: 16px; }
  .lp-feat, .lp-steps { grid-template-columns: 1fr; }
  .lp-sec { padding: 40px 16px; }
  .lp-sec h2 { font-size: 24px; }
  .lp-nav .nm small { display: none; }
}
.req-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.req-row:first-child { border-top: 0; }
.req-row .who { font-weight: 700; }
.req-row .meta { color: var(--ink-3); font-size: 13.5px; }
.req-row .act { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
@media (max-width: 720px) { .req-row { grid-template-columns: 1fr; } }
