/* 0.9M 입주사 포털 — site.css 위에 얹는다 */
.portal { background: var(--stone); min-height: 100vh; }
.logo { display: block; width: 61px; height: 22px; }
.boot { padding: 40vh 0; text-align: center; color: var(--muted); }
.muted { color: var(--muted); font-size: 15px; }
.form-err { min-height: 1.4em; font-size: 14px; color: var(--danger); }
.hint { font-size: 13px; color: var(--muted); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: #b93232; }

/* ── 로그인 ── */
.auth { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth__art { position: relative; isolation: isolate; background: #111 center / cover no-repeat; color: #fff; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; }
.auth__art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,.1) 40%, rgba(0,0,0,.72)); }
.auth__logo { color: #fff; width: max-content; }
.auth__logo .logo { width: 84px; height: 30px; }
.auth__quote { font-size: clamp(26px, 2.6vw, 40px); font-weight: 700; letter-spacing: -.045em; line-height: 1.3; }
.auth__main { display: grid; place-items: center; padding: 48px var(--gut); background: var(--paper); }
.auth__form { width: 100%; max-width: 400px; display: grid; gap: 18px; }
.auth__home { display: inline-flex; align-items: center; gap: 4px; width: max-content; margin-bottom: 20px; font-size: 14px; color: var(--muted); text-decoration: none; }
.auth__home:hover { color: var(--ink); }
.auth__home .i { width: 16px; height: 16px; }
.auth__form h1 { font-size: 34px; letter-spacing: -.05em; line-height: 1.2; }
.auth__form > .muted { margin: -8px 0 10px; }
.auth__help { font-size: 14px; color: var(--muted); text-align: center; line-height: 1.7; }
.auth__help a { color: var(--ink); font-weight: 600; text-decoration: none; }
.auth__legal { display: flex; justify-content: center; gap: 18px; font-size: 13px; }
.auth__legal a { color: var(--muted); text-decoration: none; }
.auth__legal a:hover { color: var(--ink); }
.auth__legal b { font-weight: 700; color: var(--ink-3); }
.demo { margin-top: 12px; padding: 18px; border-radius: var(--r); background: var(--stone); display: grid; gap: 12px; }
.demo p { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; }
.demo p .i { width: 18px; height: 18px; color: var(--accent); }
.demo div { display: flex; gap: 8px; }
.demo .btn { flex: 1; background: #fff; }
.auth--single { grid-template-columns: 1fr; }
.auth--single .logo { width: 84px; height: 30px; margin-bottom: 20px; color: var(--ink); }

/* ── 로그인 뒤 틀 ── */
.top { position: sticky; top: 0; z-index: 30; background: rgba(250,250,247,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.top__in { max-width: calc(1200px + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); height: 64px; display: flex; align-items: center; gap: 16px; }
.top__logo { color: var(--ink); }
.top__tag { font-size: 14px; font-weight: 600; color: var(--muted); padding-left: 16px; border-left: 1px solid var(--line-2); line-height: 1.2; }
.top__me { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: 14px; }
.top__who { color: var(--ink-3); }
.demo-bar { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 9px var(--gut); background: var(--ink); color: rgba(255,255,255,.78); font-size: 13px; text-align: center; }
.demo-bar .i { width: 16px; height: 16px; color: #8fa6ff; }
.demo-bar button { border: 0; background: rgba(255,255,255,.12); color: #fff; border-radius: 999px; padding: 4px 12px; font-size: 12px; cursor: pointer; }
.demo-bar button:hover { background: rgba(255,255,255,.22); }
/* 칸 폭은 화면을 넘지 않는다 — 안쪽(탭 줄·시간표·표)이 길면 그 안에서만 옆으로 민다(대표 11-03 "관리자 드래그 안 되고 사이즈 안 맞음") */
.pmain { max-width: calc(1200px + var(--gut) * 2); margin: 0 auto; padding: 36px var(--gut) 160px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.pmain > *, .hello > * { min-width: 0; }
.tabs { max-width: 100%; }
.hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding: 12px 0 8px; }
.hello__date { font-size: 14px; color: var(--muted); font-weight: 600; }
.hello h1 { margin-top: 6px; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.05em; line-height: 1.2; }
.quota { display: flex; align-items: center; gap: 14px; background: #fff; padding: 12px 24px 12px 12px; border-radius: 999px; }
.ring { width: 56px; height: 56px; transform: rotate(-90deg); flex: none; }
.ring circle { fill: none; stroke-width: 6; }
.ring__bg { stroke: var(--stone-2); }
.ring__fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .8s var(--ease); }
.quota small, .quota span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.quota b { display: block; font-size: 18px; letter-spacing: -.03em; line-height: 1.35; }
.panel { background: #fff; border-radius: 24px; padding: clamp(20px, 3vw, 36px); min-width: 0; }
.panel__head { margin-bottom: 22px; }
.panel__head h2 { font-size: 22px; letter-spacing: -.04em; line-height: 1.3; }
.panel__head p { margin-top: 4px; }
/* 자동 삭제 안내 — 작게(대표 11-04 "1년 뒤 삭제라고 작게") */
.panel__head .keep { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.keep .i { width: 14px; height: 14px; flex: none; }
.lead__when { display: grid; justify-items: end; gap: 2px; }
.lead__ttl { font-size: 11.5px; opacity: .75; }
@media (max-width: 640px) { .lead__when { justify-items: start; } }
.panel__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.cols { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: start; }

/* ── 날짜 띠 ── */
.days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px 2px 4px; margin: -10px 0 20px; }
.days::-webkit-scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) { .days { cursor: grab; } }
.days.is-drag, .days.is-drag .day { cursor: grabbing; user-select: none; }
.day { position: relative; flex: none; width: 62px; height: 74px; border-radius: 16px; border: 1px solid var(--line); background: #fff; display: grid; place-content: center; justify-items: center; gap: 1px; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.day span { font-size: 12px; color: var(--muted); font-weight: 600; }
.day b { font-size: 20px; letter-spacing: -.03em; line-height: 1.15; }
.day em { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 0 6px; background: #fff; font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.day.is-sun span { color: var(--danger); }
.day.is-sat span { color: var(--accent); }
.day:hover { border-color: var(--ink); }
.day.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.day.is-on span { color: rgba(255,255,255,.7); }
/* 2주 뒤 날짜 — '더보기' 달력(대표 11-03) */
.day--more { border-style: dashed; border-color: var(--line-2); color: var(--ink); }
.day--more .i { width: 20px; height: 20px; }
.day--more.is-open { border-style: solid; border-color: var(--ink); background: var(--stone); }
.rcal { margin: -8px 0 20px; }
/* 관리자 탭 숫자 · 시간 더 요청 */
.tabn { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff; font-style: normal; font-size: 12px; font-weight: 700; }
.xreq.is-hot { box-shadow: 0 0 0 2px var(--accent); }
.xlist { display: grid; }
.xlist li { display: grid; grid-template-columns: minmax(0, 1.4fr) auto auto auto; align-items: center; gap: 12px 20px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.xlist li:first-child { border-top: 0; padding-top: 0; }
.xlist__who b { display: block; }
.xlist__who small { font-size: 13px; font-weight: 500; color: var(--muted); }
.xlist__slot { display: block; margin-top: 3px; font-size: 13.5px; color: var(--ink-3); }
.xlist__slot b { display: inline; color: var(--accent); font-weight: 700; }
.xlist__slot em { font-style: normal; font-weight: 600; }
.xask { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-radius: 14px; background: var(--stone); font-size: 15px; }
.xask b { font-size: 17px; }
.xask span { color: var(--ink-3); }
.xlist__min { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
/* 줄 시간 조절(−/+) */
.xstep { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 999px; background: var(--stone); }
.xstep button { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; }
.xstep button:disabled { opacity: .35; cursor: default; }
.xstep button .i { width: 16px; height: 16px; }
.xstep b { min-width: 74px; text-align: center; font-size: 14.5px; }
.xstep--lg { display: flex; justify-content: space-between; padding: 6px; }
.xstep--lg button { width: 48px; height: 48px; }
.xstep--lg button .i { width: 20px; height: 20px; }
.xstep--lg b { flex: 1; font-size: 20px; letter-spacing: -.02em; }
/* 그날 '시간 더 요청' 상태 띠 */
.xbanner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -6px 0 16px; padding: 12px 16px; border-radius: 14px; font-size: 14.5px; }
.xbanner .i { width: 18px; height: 18px; flex: none; }
.xbanner span { flex: 1; min-width: 200px; }
.xbanner.is-wait { background: var(--accent-soft); color: var(--accent-2); }
.xbanner.is-ok { background: rgba(19,138,67,.1); color: var(--ok); }
.xbanner .linkbtn { margin-left: 0; color: var(--danger); }
.xlist__act { display: flex; gap: 6px; justify-content: flex-end; }

/* ── 시간표 ── */
.tl { --pp: clamp(20px, 3vw, 36px); overflow-x: auto; margin: 0 calc(var(--pp) * -1); padding: 0 var(--pp) 6px; scrollbar-width: thin; }
.tl__inner { min-width: 880px; display: grid; gap: 10px; }
.tl__head, .tl__row { --tlg: 12px; display: grid; grid-template-columns: 172px 1fr; align-items: center; gap: var(--tlg); }
.tl__head > span { position: sticky; left: 0; z-index: 3; align-self: stretch; background: #fff; }
/* 옆으로 밀 때 회의실 이름 칸 왼쪽 여백·오른쪽 틈으로 시간 칸이 비쳐 '튀어나와' 보이지 않게 흰 바탕을 넓힌다(대표 11-03) */
.tl__head > span::before, .tl__room::before { content: ""; position: absolute; top: 0; bottom: 0; right: 100%; width: var(--pp); background: #fff; }
.tl__head > span::after, .tl__room::after { content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: var(--tlg); background: linear-gradient(90deg, #fff 55%, rgba(255,255,255,0)); }
.tl__hours { display: grid; grid-template-columns: repeat(var(--n), 1fr); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl__hours span { padding-left: 4px; border-left: 1px solid var(--line-2); line-height: 1.1; }
.tl__room { position: sticky; left: 0; z-index: 3; align-self: stretch; display: flex; align-items: center; gap: 12px; background: #fff; }
.tl__room img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex: none; }
.tl__room b { display: block; font-size: 15px; letter-spacing: -.02em; line-height: 1.3; }
.tl__room small { display: block; font-size: 12px; color: var(--muted); }
/* 색 구분(대표 11-03 "색이 비슷하다"): 예약 가능 = 흰 칸 · 예약 불가 = 진한 회색 · 내 예약 = 검정 · 고른 시간 = 파랑 */
.tl__track { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); height: 60px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 12px; overflow: hidden; }
.tl__track > * { grid-row: 1; }
.slot { border: 0; padding: 0; background: transparent; cursor: pointer; border-left: 1px solid rgba(13,13,13,.05); transition: background .15s; min-width: 0; }
.slot:nth-child(2n+1) { border-left-color: rgba(13,13,13,.13); }
.slot:first-child { border-left: 0; }
.slot:not(:disabled):hover { background: var(--accent-soft); }
.slot:disabled { cursor: default; }
.slot.is-past { background: #f2f1ec repeating-linear-gradient(135deg, transparent 0 6px, rgba(13,13,13,.07) 6px 7px); }
.blk { z-index: 1; margin: 6px 2px; min-width: 0; border: 0; border-radius: 9px; display: flex; align-items: center; padding: 0 10px; font-size: 12.5px; font-weight: 600; text-align: left; overflow: hidden; }
.blk span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blk--taken { background: #8f8d86; color: #fff; pointer-events: none; }
.blk--mine { background: var(--ink); color: #fff; cursor: pointer; }
.blk--mine:hover { background: #2b2b29; }
.blk--admin { background: #d7deff; color: #1c2c7a; cursor: pointer; }
.blk--admin:hover { background: #c4cfff; }
.blk--sel { z-index: 2; background: var(--accent); color: #fff; pointer-events: none; box-shadow: 0 8px 20px rgba(47,91,255,.35); animation: selIn .25s var(--ease) both; }
@keyframes selIn { from { opacity: 0; transform: scaleY(.6); } }
/* 보낸 '시간 더 요청' — 고른 칸과 같은 파랑에 줄무늬(기다리는 중), 승인되면 초록 */
.blk--req { z-index: 2; background: var(--accent) repeating-linear-gradient(135deg, transparent 0 8px, rgba(255,255,255,.2) 8px 11px); color: #fff; cursor: pointer; }
.blk--req:hover { background-color: var(--accent-2); }
.blk--ok { z-index: 2; background: var(--ok); color: #fff; cursor: pointer; box-shadow: 0 6px 16px rgba(19,138,67,.28); }
.blk--ok:hover { filter: brightness(.94); }
.blk--req .i, .blk--ok .i { width: 15px; height: 15px; flex: none; }
.blk.is-short { justify-content: center; padding: 0; }
.tl__now { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--danger); z-index: 2; pointer-events: none; }
.tl__total { margin-top: 18px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; }
.lg-free { background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.lg-taken { background: #8f8d86; }
.lg-mine { background: var(--ink); }
.lg-sel { background: var(--accent); }

/* ── 고른 시간 띠(아래 고정) ── */
.sumbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px var(--gut) calc(14px + env(safe-area-inset-bottom)); pointer-events: none; }
.sumbar:not([hidden]) .sumbar__in { animation: up .35s var(--ease) both; }
@keyframes up { from { transform: translateY(110%); } }
.sumbar__in { pointer-events: auto; max-width: 1200px; margin: 0 auto; background: var(--ink); color: #fff; border-radius: 20px; padding: 14px 14px 14px 24px; display: flex; align-items: center; gap: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.sumbar__info { flex: 1; min-width: 0; }
.sumbar__info b { display: block; font-size: 16px; letter-spacing: -.02em; }
.sumbar__info span { font-size: 14px; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.sumbar__warn { margin-top: 4px; font-size: 13px; color: #ffb3a7; }
.sumbar__note.is-wait { color: #a9bbff; }
.sumbar__btns { display: flex; gap: 8px; flex: none; }
.sumbar .btn--ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.sumbar .btn--ghost:hover { border-color: #fff; }

/* ── 내 예약 · 안내 ── */
.bk { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.bks > .bk:first-child { border-top: 0; padding-top: 0; }
.bk__date b { display: block; font-size: 15.5px; letter-spacing: -.02em; }
.bk__date span { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bk__room { font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--stone); white-space: nowrap; }
.empty { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; padding: 8px 0; }
/* 내 '시간 더 요청' 기록 — 예약 목록 위에 따로 */
.bks__label { margin-bottom: 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.bks--x { margin-bottom: 24px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.bk--x.is-wait .bk__date span { color: var(--accent-2); }
.bk--x.is-ok .bk__date span { color: var(--ok); }
.past { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.past summary { cursor: pointer; font-size: 14px; color: var(--muted); font-weight: 600; width: max-content; }
.past .bks { margin-top: 12px; }
.past .bk { opacity: .55; }
.rules li { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-3); line-height: 1.6; }
.rules li:first-child { border-top: 0; padding-top: 0; }
.rules .i { color: var(--muted); margin-top: 2px; }
.rules a { font-weight: 700; color: var(--ink); text-decoration: none; }

/* ── 관리자 ── */
.tabs { display: inline-flex; padding: 4px; gap: 4px; background: #fff; border-radius: 999px; }
.tabs button { height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: none; font-size: 15px; font-weight: 600; color: var(--ink-3); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.search--sm { display: block; max-width: 420px; margin-bottom: 8px; }
.search--sm input { height: 48px; font-size: 15px; background: var(--paper); }
.tbl { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.tbl th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tbl td { padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl td small { display: block; font-size: 13px; color: var(--muted); }
.tbl code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; background: var(--stone); padding: 3px 8px; border-radius: 6px; }
.tbl__act { text-align: right; white-space: nowrap; }
.tbl__act .btn { margin-left: 6px; }
.tbl tr[hidden] { display: none; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--ok { background: rgba(19,138,67,.1); color: var(--ok); }
.badge--new { background: var(--accent-soft); color: var(--accent); }
.badge--off { background: var(--stone); color: var(--muted); }
.badge--warn { background: rgba(183,121,31,.12); color: var(--warn); }

/* ── 관리자 예약 현황 ── */
[data-admin] { display: grid; gap: 20px; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { position: relative; overflow: hidden; background: #fff; border-radius: 20px; padding: 20px 22px 22px; }
.kpi small { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
.kpi b { display: block; margin-top: 8px; font-size: 34px; line-height: 1; font-weight: 700; letter-spacing: -.04em; }
.kpi b em { font-style: normal; font-size: 15px; font-weight: 600; margin-left: 4px; color: var(--muted); letter-spacing: -.01em; }
.kpi span { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }
.kpi__bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--stone); }
.kpi__bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--accent); border-radius: 0 4px 4px 0; transition: width .8s var(--ease); }

.board { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: start; }
.cal__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.cal__head h2 { font-size: 22px; letter-spacing: -.04em; }
.cal__nav { display: flex; align-items: center; gap: 6px; }
.cal__nav .icon-btn { width: 40px; height: 40px; }
.cal__dow, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal__dow span { padding: 0 8px 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.cal__dow .is-sun, .cal__day.is-sun .cal__n { color: var(--danger); }
.cal__dow .is-sat, .cal__day.is-sat .cal__n { color: var(--accent); }
.cal__day { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 84px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: left; cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.cal__day:hover { border-color: var(--ink); }
.cal__n { font-size: 15px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cal__c { margin-top: auto; font-size: 12.5px; font-weight: 700; }
.cal__m { font-size: 11.5px; color: var(--muted); }
.cal__day.lv-1 { background: rgba(47,91,255,.05); }
.cal__day.lv-2 { background: rgba(47,91,255,.11); }
.cal__day.lv-3 { background: rgba(47,91,255,.2); }
.cal__day.lv-4 { background: var(--accent); border-color: var(--accent); }
.cal__day.lv-4 .cal__n, .cal__day.lv-4 .cal__c { color: #fff; }
.cal__day.lv-4 .cal__m { color: rgba(255,255,255,.75); }
.cal__day.is-out { opacity: .32; pointer-events: none; }
.cal__day.is-today .cal__n::after { content: "오늘"; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 10.5px; font-weight: 600; vertical-align: 2px; }
.cal__day.is-sel { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.cal__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; font-size: 12.5px; color: var(--muted); }
.cal__legend li { display: flex; align-items: center; gap: 6px; }
.cal__legend i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line); }
.cal__legend .lv-0 { background: #fff; }
.cal__legend .lv-1 { background: rgba(47,91,255,.05); }
.cal__legend .lv-2 { background: rgba(47,91,255,.11); }
.cal__legend .lv-3 { background: rgba(47,91,255,.2); }
.cal__legend .lv-4 { background: var(--accent); border-color: var(--accent); }

.agenda-wrap { position: sticky; top: 84px; }
.agenda__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.agenda__kicker { font-size: 13px; font-weight: 600; color: var(--muted); }
.agenda__head h2 { margin-top: 2px; font-size: 26px; letter-spacing: -.045em; line-height: 1.2; }
.live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(19,138,67,.08); color: var(--ok); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: livePing 2s var(--ease) infinite; }
.live time { color: var(--muted); font-weight: 500; }
@keyframes livePing { 0% { box-shadow: 0 0 0 0 rgba(19,138,67,.5); } 80%, 100% { box-shadow: 0 0 0 7px rgba(19,138,67,0); } }
.agenda { display: grid; gap: 6px; max-height: 520px; overflow-y: auto; margin: 0 -8px; padding: 0 8px; }
.agr { border-radius: 14px; background: var(--paper); border-left: 3px solid var(--accent); transition: background .2s; }
.agr:hover { background: var(--stone); }
.agr.is-past { border-left-color: var(--stone-2); opacity: .6; }
.agr.is-live { border-left-color: var(--ok); background: rgba(19,138,67,.06); }
.ag { width: 100%; display: grid; grid-template-columns: 58px 1fr 18px; align-items: center; gap: 14px; padding: 14px 14px 14px 12px; border: 0; border-radius: 14px; background: none; text-align: left; cursor: pointer; }
/* 시간 연장 — 회사 이름 아래 이름표(회의실 · 예약 시간)와 값. 사용 중인 회의는 초록 글자로 먼저 눈에 띄게 */
.xlist li.is-live .xlist__min { color: var(--ok); font-weight: 700; }
.xreq .xlist__who > b { font-size: 16px; letter-spacing: -.02em; }
.xmeta { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 10px; }
/* 시간 연장 줄 — 입주사(호실)를 제목으로 올리지 않고 회의실·예약 시간과 같은 줄 맨 앞에(대표 11-05) */
.xmeta:first-child { margin-top: 0; }
.xmeta div { display: grid; gap: 2px; }
.xmeta dt { font-size: 12px; font-weight: 500; color: var(--muted); }
.xmeta dd { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.xmeta dd.is-room { color: var(--accent); }
.ag__time { font-size: 16px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.ag__time small { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.ag__body b { display: block; font-size: 15px; letter-spacing: -.02em; }
.ag__body small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.ag__go { width: 16px; height: 16px; color: var(--muted); }
.agenda__empty { display: grid; justify-items: center; gap: 10px; padding: 56px 0; color: var(--muted); font-size: 15px; }
.agenda__empty .i { width: 32px; height: 32px; }

.cols--even { grid-template-columns: 1fr 1fr; }
.bars { display: grid; gap: 14px; }
.bars li { display: grid; grid-template-columns: minmax(84px, 140px) 1fr auto; align-items: center; gap: 14px; font-size: 14.5px; }
.bars__k { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars__v { height: 10px; border-radius: 999px; background: var(--stone); overflow: hidden; }
.bars__v i { display: block; height: 100%; width: var(--p); border-radius: inherit; background: var(--ink); transition: width .8s var(--ease); }
.bars li:first-child .bars__v i { background: var(--accent); }
.bars__n { font-size: 13px; color: var(--muted); white-space: nowrap; }

.leads { display: grid; }
.lead { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.lead:first-child { border-top: 0; padding-top: 0; }
.lead.is-done { opacity: .5; }
.lead__who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.lead__who b { font-size: 16px; }
.lead__who a { font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.lead__meta { margin-top: 4px; font-size: 14px; color: var(--ink-3); }
.lead__memo { margin-top: 8px; padding: 10px 14px; border-radius: 12px; background: var(--stone); font-size: 14px; color: var(--ink-3); white-space: pre-wrap; }
.lead__side { display: grid; justify-items: end; align-content: start; gap: 8px; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .lead { grid-template-columns: 1fr; } .lead__side { justify-items: start; grid-auto-flow: column; align-items: center; justify-content: space-between; } }

.vac { display: grid; max-width: 560px; }
.vac__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 16px; font-weight: 600; }
.vac__row:first-child { border-top: 0; padding-top: 0; }
.vac__in { display: inline-flex; align-items: center; gap: 8px; }
.vac__in input { width: 132px; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--paper); font-size: 16px; text-align: right; font-variant-numeric: tabular-nums; }
.vac__in input:focus { outline: none; border-color: var(--ink); background: #fff; }
.vac__in small { font-size: 14px; color: var(--muted); font-weight: 500; }
.vac .dlg__foot { justify-content: flex-start; margin-top: 20px; }

/* ── 예약 티켓 ── */
.bk__act { display: flex; gap: 6px; }
.bk__act .i { width: 16px; height: 16px; }
dialog:has(.dlg--ticket) { width: min(420px, calc(100vw - 24px)); background: var(--stone); }
.dlg--ticket { padding: 22px; gap: 14px; }
.ticket__ok { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ok); }
.ticket__ok .i { width: 20px; height: 20px; }
/* 위아래 가장자리를 우표처럼 톱니로(대표 11-03 '티켓처럼 테두리') — 바탕색 반원으로 물어뜯어 사진 저장에도 그대로 나온다 */
.ticket { position: relative; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 12px 32px rgba(0,0,0,.1); }
.ticket::before, .ticket::after { content: ""; position: absolute; left: 0; right: 0; z-index: 2; height: 8px; pointer-events: none; background-size: 18px 8px; background-repeat: repeat-x; }
.ticket::before { top: 0; background-image: radial-gradient(circle at 50% 0, var(--stone) 5.5px, transparent 6px); background-position: center top; }
.ticket::after { bottom: 0; background-image: radial-gradient(circle at 50% 100%, var(--stone) 5.5px, transparent 6px); background-position: center bottom; }
/* 사진으로 저장할 때(복제본) — 무늬 대신 portal.js 가 구멍을 직접 뚫는다 */
.ticket.is-capture::before, .ticket.is-capture::after { display: none; }
.ticket.is-capture .ticket__cut { background: #fff; }
.ticket__top { padding-top: 30px !important; }
.ticket__foot { padding-bottom: 28px !important; }
.ticket__top { background: var(--ink); color: #fff; padding: 24px 26px 28px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ticket__brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ticket__brand .logo { width: 64px; height: 23px; color: #fff; }
.ticket__brand span { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.62); }
.ticket__top h2 { margin-top: 30px; font-size: 30px; letter-spacing: -.045em; line-height: 1.2; }
.ticket__date { margin-top: 4px; font-size: 15px; color: rgba(255,255,255,.7); }
.ticket__time { margin-top: 16px; font-size: clamp(32px, 10vw, 46px); font-weight: 700; letter-spacing: -.04em; line-height: 1; white-space: nowrap; }
.ticket__info dd.tnum { white-space: nowrap; letter-spacing: 0; }
.ticket__time i { font-style: normal; font-weight: 300; color: rgba(255,255,255,.4); margin: 0 .12em; }
/* 절취선 — 양옆 반원은 바깥 바탕색 */
.ticket__cut { position: relative; height: 26px; background: radial-gradient(circle at 0 50%, var(--stone) 12px, transparent 12.5px), radial-gradient(circle at 100% 50%, var(--stone) 12px, transparent 12.5px), #fff; }
.ticket__cut::before { content: ""; position: absolute; left: 22px; right: 22px; top: 50%; border-top: 2px dashed var(--stone-2); }
.ticket__info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; padding: 6px 26px 20px; }
.ticket__info dt { font-size: 12px; font-weight: 600; color: var(--muted); }
.ticket__info dd { margin-top: 3px; font-size: 15.5px; font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
.ticket__foot { padding: 14px 26px 22px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.65; color: var(--muted); }
.ticket__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ticket__actions .btn { flex-direction: column; height: auto; padding: 14px 6px; gap: 6px; border: 0; border-radius: 16px; background: #fff; font-size: 13px; }
.ticket__actions .btn:hover { background: var(--paper); }
.ticket__actions .i { width: 22px; height: 22px; }
.ticket__actions .btn.is-on { background: var(--ink); color: #fff; }
.ticket__cal { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px; border-radius: 16px; background: #fff; animation: dlgIn .25s var(--ease) both; }
.ticket__cal[hidden] { display: none; }
.saveimg img { width: 100%; height: auto; border-radius: 6px; -webkit-touch-callout: default; user-select: auto; }
.saveimg__how { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; text-align: center; }
.saveimg__how .i { width: 18px; height: 18px; flex: none; }
/* 달력 고르기 — 둘 다 같은 흰 단추(검정이면 '이미 골라진 것'으로 보여 그냥 닫는다 — 대표 11-04) */
.ticket__calq { grid-column: 1 / -1; font-size: 13.5px; font-weight: 700; text-align: center; }
.calpick { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.calpick:hover { border-color: var(--ink); box-shadow: 0 6px 16px rgba(13, 13, 13, .08); }
.calpick > .i { width: 20px; height: 20px; flex: none; }
.calpick > .i:last-child { width: 15px; height: 15px; color: var(--muted); }
.calpick span { flex: 1; min-width: 0; display: grid; gap: 1px; }
.calpick b { font-size: 14.5px; letter-spacing: -.02em; }
.calpick small { font-size: 12px; color: var(--muted); }
@media print {
  body.is-printing #app, body.is-printing .toast { display: none !important; }
  body.is-printing { background: #fff; }
  body.is-printing dialog { position: static; display: block; margin: 0 auto; box-shadow: none; max-height: none; background: #fff; animation: none; }
  body.is-printing dialog::backdrop { display: none; }
  body.is-printing .ticket__actions, body.is-printing .ticket__cal, body.is-printing [data-close], body.is-printing .ticket__ok { display: none !important; }
  body.is-printing .ticket { box-shadow: none; border: 1px solid #ccc; }
}

/* ── 회의실 기본 시간 · 사용량 · 청구(대표 11-03) ── */
.quota.is-over .ring__fg { stroke: var(--danger); }
.quota.is-over b { color: var(--danger); }
.sumbar__note { margin-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--accent); }
.vac__row > span:first-child { display: grid; gap: 2px; }
.vac__hint { font-size: 13px; font-weight: 500; color: var(--muted); }
.vac__in select { height: 48px; min-width: 132px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--paper); font-size: 16px; }
.seg { display: inline-flex; padding: 4px; gap: 4px; background: #fff; border-radius: 999px; }
.seg button, .seg label span { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 18px; border: 0; border-radius: 999px; background: none; font-size: 14px; font-weight: 600; color: var(--ink-3); cursor: pointer; }
.seg button[aria-pressed="true"], .seg input:checked + span { background: var(--ink); color: #fff; }
.seg label { position: relative; flex: 1; display: flex; }
.seg label span { flex: 1; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg--full { display: flex; background: var(--stone); }
.qfield { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.qfield__hours { display: flex; align-items: center; gap: 10px; }
.qfield__hours input { width: 140px; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); font-size: 16px; text-align: right; }
.qfield__hours[hidden] { display: none; }
.qfield small { font-size: 13px; }
.qchip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px dashed var(--line-2); background: none; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.qchip .i { width: 14px; height: 14px; opacity: .6; }
.qchip.is-set { border-style: solid; color: var(--ink); background: #fff; }
.qchip:hover { border-color: var(--ink); color: var(--ink); }
.uhead { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.uhead h2 { min-width: 132px; text-align: center; font-size: 22px; letter-spacing: -.04em; }
.uhint { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.uhint .i { width: 16px; height: 16px; color: var(--accent); flex: none; }
.over { color: var(--danger); }
small.over { display: block; font-size: 12.5px; }
.utbl td:nth-child(5) b { font-size: 16px; }
.ybars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; align-items: end; height: 200px; }
.ybars li { display: grid; grid-template-rows: 1fr auto auto; height: 100%; text-align: center; gap: 6px; }
.ybars__v { position: relative; display: flex; align-items: flex-end; justify-content: center; }
.ybars__v i { display: block; width: min(36px, 70%); height: var(--p); min-height: 2px; border-radius: 8px 8px 3px 3px; background: var(--ink); transition: height .8s var(--ease); }
.ybars b { font-size: 12.5px; min-height: 1em; }
.ybars small { font-size: 12.5px; color: var(--muted); }
.ywrap { overflow-x: auto; margin: 0 -8px; padding: 0 8px; }
.ytbl { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 14px; }
.ytbl th, .ytbl td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.ytbl thead th { font-size: 12.5px; font-weight: 600; color: var(--muted); border-bottom-color: var(--line-2); }
.ytbl th:first-child, .ytbl td:nth-child(2) { text-align: left; }
.ytbl tbody th { font-weight: 700; position: sticky; left: 0; background: #fff; }
.ytbl tbody th small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.ytbl td.is-over { color: var(--danger); font-weight: 700; background: rgba(212,60,60,.06); }

/* ── 입주사 계정 목록 → 상세 창(대표 11-03) ── */
.afilter { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; }
.afilter::-webkit-scrollbar { display: none; }
.afilter button { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 13.5px; font-weight: 600; color: var(--ink-3); cursor: pointer; white-space: nowrap; }
.afilter button b { font-weight: 700; color: var(--muted); }
.afilter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.afilter button[aria-pressed="true"] b { color: rgba(255,255,255,.7); }
/* 쪽 나누기 — 왼쪽 몇 개 중 어디, 가운데 번호, 오른쪽 몇 개씩 */
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.pager__info { font-size: 13px; color: var(--muted); }
.pager__nums { display: flex; align-items: center; gap: 2px; }
.pager__nums button { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 6px; border: 0; border-radius: 10px; background: none; color: var(--ink-3); font: inherit; font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; transition: background .15s, color .15s; }
.pager__nums button:hover:not(:disabled):not([aria-current]) { background: var(--stone); color: var(--ink); }
.pager__nums button[aria-current] { background: var(--ink); color: #fff; }
.pager__nums button:disabled { opacity: .25; cursor: default; }
.pager__nums .i { width: 16px; height: 16px; }
.pager__nums span { min-width: 18px; text-align: center; color: var(--muted); }
.pager__size { justify-self: end; }
.pager__size select { height: 38px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 13.5px; cursor: pointer; }
@media (max-width: 640px) {
  .pager { grid-template-columns: 1fr auto; }
  .pager__nums { grid-column: 1 / -1; grid-row: 1; justify-content: center; }
  .pager__nums button { min-width: 36px; }
}
.alist { margin-top: 8px; }
.alist li + li { border-top: 1px solid var(--line); }
.alist li[hidden] { display: none; }
.arow { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 14px; padding: 14px 4px; border: 0; background: none; text-align: left; cursor: pointer; border-radius: 12px; transition: background .15s; }
.arow:hover { background: var(--paper); }
.arow__main b { display: block; font-size: 16px; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arow__main small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arow__q { font-size: 13px; color: var(--muted); white-space: nowrap; }
.arow__q.is-set { color: var(--ink); font-weight: 600; }
.arow__go { width: 18px; height: 18px; color: var(--muted); }
.adlg__sub { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.adl { display: grid; margin: 4px 0; }
.adl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 15px; }
.adl dt { color: var(--muted); }
.adl dd { font-weight: 600; overflow-wrap: anywhere; }
.adl dd small { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--muted); }
.adl dd small.warn { color: var(--warn); }
.adl dd a { color: var(--accent); text-decoration: none; }
.adl code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; background: var(--stone); padding: 3px 8px; border-radius: 6px; }
.linkbtn { margin-left: 8px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.adlg__act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.adlg__off { color: var(--danger); }

/* ── 창 · 알림 ── */
dialog { border: 0; padding: 0; border-radius: 24px; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: #fff; color: var(--ink); box-shadow: 0 40px 100px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(13,13,13,.45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
/* 소식 글쓰기 창 — 넓게, 본문은 바로 쓰는 칸(굵게·목록·링크) */
dialog:has(.dlg--wide) { width: min(820px, calc(100vw - 24px)); }
.ptool { display: flex; gap: 6px; margin: 6px 0 8px; }
.ptool button { height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; font: inherit; font-size: 13.5px; cursor: pointer; }
.ptool button:hover { border-color: var(--ink); }
.peditor { min-height: 220px; max-height: 46vh; overflow: auto; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 14px; background: #fff; font-size: 15px; line-height: 1.75; outline: none; }
.peditor:focus { border-color: var(--ink); }
.peditor p + p { margin-top: 6px; }
.peditor ul, .peditor ol { padding-left: 1.3em; }
.peditor ul { list-style: disc; }
.peditor ol { list-style: decimal; }
.peditor table { border-collapse: collapse; width: 100%; margin: 8px 0; }
.peditor td, .peditor th { border: 1px solid var(--line-2); padding: 6px 8px; vertical-align: top; }
.peditor img { max-width: 100%; height: auto; }
.peditor a { color: var(--accent); text-decoration: underline; }
.pfiles { display: grid; gap: 6px; margin: 6px 0 10px; }
.pfiles li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--paper); font-size: 14px; }
.pfiles li small { margin-left: 8px; color: var(--muted); font-size: 12.5px; }
.pfiles__add { cursor: pointer; width: max-content; }
.pdel { margin-right: auto; color: var(--danger); }
dialog[open] { animation: dlgIn .3s var(--ease) both; }
@keyframes dlgIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.dlg { padding: 32px; display: grid; gap: 16px; }
.dlg__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.dlg h2 { font-size: 24px; letter-spacing: -.045em; line-height: 1.3; }
.dlg .muted b { color: var(--ink); }
.dlg__foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.dlg .form-grid { gap: 14px; }
.dlg .field input { height: 48px; }
.dlg .icon-btn { width: 40px; height: 40px; }
.dlg__ok { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; animation: pop .5s var(--ease) both; }
.dlg__ok .i { width: 26px; height: 26px; }
.cred { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cred div { background: var(--stone); border-radius: 14px; padding: 14px 16px; }
.cred dt { font-size: 12.5px; color: var(--muted); }
.cred dd { margin-top: 2px; font-size: 22px; font-weight: 700; letter-spacing: .03em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.msg { margin: 0; white-space: pre-wrap; font: inherit; font-size: 14px; line-height: 1.7; background: var(--stone); border-radius: 14px; padding: 16px; color: var(--ink-3); }
.toast { position: fixed; left: 50%; top: 84px; z-index: 60; transform: translate(-50%, -12px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 13px 22px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; box-shadow: 0 16px 40px rgba(0,0,0,.25); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast .i { width: 18px; height: 18px; color: #8fa6ff; }
.toast.is-err .i { color: #ff9b8f; }

/* ── 반응형 ── */
@media (max-width: 1080px) {
  .board { grid-template-columns: 1fr; }
  .agenda-wrap { position: static; }
}
@media (max-width: 900px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .cols--even { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth__art { min-height: 220px; padding: 24px var(--gut); }
  .auth__quote { font-size: 24px; }
  .cols { grid-template-columns: 1fr; }
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; }
  .tbl tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .tbl td { border: 0; padding: 4px 0; display: flex; gap: 12px; align-items: baseline; }
  .tbl td::before { content: attr(data-l); width: 72px; flex: none; font-size: 13px; color: var(--muted); }
  .tbl td small { display: inline; margin-left: 8px; }
  .tbl__act { padding-top: 10px !important; flex-wrap: wrap; }
  .tbl__act::before { display: none; }
  .tbl__act .btn { margin: 0; }
}
@media (max-width: 640px) {
  .top__who, .top__tag { display: none; }
  .hello { align-items: stretch; }
  .quota, .tabs { width: 100%; }
  .quota { border-radius: 20px; }
  /* 탭 5개 — 휴대폰은 한 줄로 두고 옆으로 민다 */
  .tabs { overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; padding: 0 16px; white-space: nowrap; }
  .tl__head, .tl__row { --tlg: 8px; grid-template-columns: 84px 1fr; }
  .tl__room img { display: none; }
  /* 1시간 칸에 '예약 불가'가 다 들어가게 조금 넓게 */
  .tl__inner { min-width: 920px; }
  .blk { padding: 0 6px; font-size: 12px; justify-content: center; }
  .sumbar__in { flex-wrap: wrap; padding: 16px; }
  .sumbar__btns { width: 100%; }
  .sumbar__btns .btn { flex: 1; }
  .cred { grid-template-columns: 1fr; }
  .kpi { padding: 16px 16px 18px; }
  .kpi b { font-size: 26px; }
  .cal__dow, .cal__grid { gap: 4px; }
  .cal__dow span { padding: 0 2px 6px; text-align: center; }
  .cal__day { min-height: 54px; padding: 6px; border-radius: 10px; align-items: center; }
  .cal__m { display: none; }
  .cal__c { font-size: 11px; }
  .cal__day.is-today .cal__n::after { display: none; }
  .cal__day.is-today { box-shadow: inset 0 0 0 2px var(--ink); }
  .bars li { grid-template-columns: 84px 1fr; }
  .bars__n { grid-column: 2; }
  .arow { grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; }
  .arow__q { display: none; }
  .adl div { grid-template-columns: 92px 1fr; }
  /* 휴대폰: 요청 하나 = 카드 한 장 — 회사·요청 시간 → 날짜·회의실·시각 → 시간 조절 → 승인/거절(대표 11-03 "요청 목록 예쁘게") */
  .xlist { gap: 10px; }
  .xlist li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who min" "step step" "act act"; gap: 14px; padding: 16px; border: 0; border-radius: 18px; background: var(--paper); }
  .xlist li:first-child { padding-top: 16px; }
  .xlist__who { grid-area: who; }
  .xlist__who b { font-size: 16px; }
  .xlist__slot { margin-top: 6px; font-size: 14px; line-height: 1.5; }
  .xlist__min { grid-area: min; align-self: start; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); font-size: 12.5px; font-weight: 700; }
  .xlist .xstep { grid-area: step; display: flex; justify-content: space-between; padding: 4px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
  .xlist .xstep button { width: 44px; height: 44px; background: var(--stone); }
  .xlist .xstep b { flex: 1; font-size: 17px; }
  .xlist__act { grid-area: act; display: flex; gap: 8px; }
  .xlist__act .btn { --h: 46px; flex: 1; font-size: 15px; }
  .xlist__act .btn--solid { flex: 2; }
  .uhead { flex-direction: column; align-items: stretch; }
  .uhead .cal__nav { justify-content: space-between; }
  .uhead .seg { width: 100%; }
  .uhead .seg button { flex: 1; }
  .ybars { gap: 4px; height: 160px; }
  .ybars b { font-size: 10.5px; }
  .dlg { padding: 24px; }
  .dlg .form-grid { grid-template-columns: 1fr; }
  .bk { grid-template-columns: 1fr auto; }
  .bk__room { grid-column: 1; grid-row: 2; width: max-content; }
  .bk > :last-child { grid-row: 1 / span 2; grid-column: 2; }
}
