/* 회의실 예약 — A(타임라인·파랑, 기본) / B(사진 카드·베이지) / 좁은 화면은 D(모바일) 배치 */
:root {
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Noto Sans KR", sans-serif;
  --bg: #f5f6fa; --surf: #fff; --line: #e7e9f0; --line2: #f0f1f5; --ink: #0f172a; --mut: #64748b; --mut2: #94a3b8;
  --pri: #3d5afe; --pri-d: #2c44d8; --pri-w: #eef1ff; --pri-b: #c9d2ff; --pri-grad: linear-gradient(135deg, #4b66ff, #3048e8);
  --pri-shadow: 0 10px 22px -10px rgba(61, 90, 254, .9); --dark: #0f172a; --chip: #f3f5f9;
  --ok: #15803d; --ok-w: #effbf3; --warn: #a16207; --warn-w: #fff7e0; --err: #be123c; --err-w: #fff1f3;
  --mine-grad: linear-gradient(135deg, #4b66ff, #3348e6); --mine-b: #1f33c2;
  --r: 14px; --r-sm: 10px; --focus: 0 0 0 3px rgba(61, 90, 254, .35);
  --tab-h: 70px;
}
body[data-style="b"] {
  --bg: #faf6f0; --surf: #fff; --line: #ecdfd0; --line2: #f4ebe0; --ink: #2a2018; --mut: #7d6e60; --mut2: #a8988a;
  --pri: #e5603b; --pri-d: #c94a27; --pri-w: #fdebe3; --pri-b: #f6c8b6; --pri-grad: linear-gradient(135deg, #ec7350, #d9512c);
  --pri-shadow: 0 10px 22px -10px rgba(201, 74, 39, .8); --dark: #2a2018; --chip: #f8f1e8;
  --mine-grad: linear-gradient(135deg, #ec7350, #d9512c); --mine-b: #b8401f; --focus: 0 0 0 3px rgba(229, 96, 59, .35);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; letter-spacing: -0.01em; }
a { color: var(--pri-d); }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
svg { display: block; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { letter-spacing: -0.03em; }
:focus-visible { outline: none; box-shadow: var(--focus); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mut { color: var(--mut); }
.nowrap { white-space: nowrap; }
.sp { flex: 1; }
.ico { display: inline-grid; place-items: center; }
.ico svg { width: 18px; height: 18px; }

/* ---------- 기본 부품 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--line); background: var(--surf); font-weight: 650; font-size: 14px; color: var(--ink); white-space: nowrap; text-decoration: none; }
.btn svg { width: 16px; height: 16px; }
.btn:hover { border-color: var(--mut2); }
.btn.primary { background: var(--pri-grad); border-color: transparent; color: #fff; box-shadow: var(--pri-shadow); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.dark { background: var(--dark); border-color: var(--dark); color: #fff; }
.btn.danger { background: #e11d48; border-color: #e11d48; color: #fff; }
.btn.danger-ghost { color: var(--err); border-color: #fecdd3; background: var(--surf); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--mut); }
.btn.ghost:hover { background: var(--chip); }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 9px; }
.btn.lg { height: 48px; font-size: 15.5px; border-radius: 13px; padding: 0 22px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; box-shadow: none; }
.icon-btn { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); background: var(--surf); display: inline-grid; place-items: center; color: var(--ink); position: relative; flex: none; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .n { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; background: #ff4d5e; color: #fff; font-size: 10.5px; font-weight: 750; border-radius: 10px; padding: 0 5px; border: 2px solid var(--bg); display: grid; place-items: center; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--pri-d); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }

.f { display: flex; flex-direction: column; gap: 6px; }
.f > label, .f > .lab { font-size: 12.5px; font-weight: 700; color: var(--mut); }
.f .hint { font-size: 12px; color: var(--mut); }
.f .err { font-size: 12.5px; color: var(--err); font-weight: 600; }
.in { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 11px; background: var(--surf); padding: 0 12px; font-size: 14.5px; font-weight: 550; }
textarea.in { height: auto; min-height: 76px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
select.in { padding-right: 30px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
.in:focus { outline: none; border-color: var(--pri); box-shadow: var(--focus); }
.in[aria-invalid="true"] { border-color: #f43f5e; }
.in:disabled, .in[readonly] { background: var(--chip); color: var(--mut); }
.in-suffix { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 11px; background: var(--surf); overflow: hidden; }
.in-suffix:focus-within { border-color: var(--pri); box-shadow: var(--focus); }
.in-suffix .in { border: 0; box-shadow: none; border-radius: 0; min-width: 0; }
.in-suffix span { display: flex; align-items: center; padding: 0 12px; background: var(--chip); color: var(--mut); font-weight: 650; font-size: 13.5px; white-space: nowrap; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; font-weight: 600; cursor: pointer; line-height: 1.45; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--pri); flex: none; }

.switch { position: relative; display: inline-block; vertical-align: middle; width: 42px; height: 24px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 12px; background: #d4d9e3; transition: background .15s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .15s; }
.switch input:checked + i { background: var(--pri); }
.switch input:checked + i::after { left: 21px; }
.switch input:focus-visible + i { box-shadow: var(--focus); }
.switch input:disabled + i { opacity: .5; }

.chip { height: 34px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surf); border-radius: 999px; padding: 0 12px; font-size: 13px; font-weight: 650; color: var(--ink); white-space: nowrap; }
.chip svg { width: 15px; height: 15px; color: var(--mut); }
.chip[aria-pressed="true"], .chip.on { background: var(--pri-w); border-color: var(--pri-b); color: var(--pri-d); }
.chip[aria-pressed="true"] svg, .chip.on svg { color: var(--pri-d); }
select.chip { appearance: none; padding-right: 28px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; background-size: 14px; }
.seg { display: inline-flex; background: color-mix(in srgb, var(--line) 70%, var(--bg)); border-radius: 11px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 650; color: var(--mut); }
.seg button[aria-pressed="true"] { background: var(--surf); color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }

.card { background: var(--surf); border: 1px solid var(--line); border-radius: 18px; }
.card.pad { padding: 20px 22px; }
.notice { border-radius: 14px; padding: 14px 16px; font-size: 13.5px; line-height: 1.6; border: 1px solid transparent; }
.notice b { font-weight: 750; }
.notice h3 { margin: 0 0 6px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.notice h3 svg { width: 18px; height: 18px; }
.notice ul { margin: 6px 0 0; padding-left: 18px; }
.notice li { margin: 2px 0; }
.notice p { margin: 4px 0 0; }
.notice.info { background: var(--pri-w); border-color: var(--pri-b); color: color-mix(in srgb, var(--pri-d) 70%, var(--ink)); }
.notice.warn { background: var(--warn-w); border-color: #fde3a7; color: #713f12; }
.notice.danger { background: var(--err-w); border-color: #fecdd3; color: #881337; }
.notice.ok { background: var(--ok-w); border-color: #bbf0cf; color: #14532d; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; border-radius: 6px; padding: 2px 7px; background: var(--chip); color: var(--mut); white-space: nowrap; }
.badge.ok { background: #e3f8ec; color: #15803d; }
.badge.warn { background: #fff1d6; color: #a16207; }
.badge.err { background: #ffe4e8; color: #be123c; }
.badge.pri { background: var(--pri-w); color: var(--pri-d); }
.empty { text-align: center; color: var(--mut); padding: 36px 16px; font-size: 14px; }
.empty svg { width: 34px; height: 34px; margin: 0 auto 10px; color: var(--mut2); }
.loading { display: flex; justify-content: center; padding: 40px; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--pri); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #ffd29d, #ff9f7a); display: grid; place-items: center; font-weight: 750; color: #7a3413; font-size: 15px; flex: none; border: 0; padding: 0; }

#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92vw, 520px); }
.toast { background: #111827; color: #fff; border-radius: 12px; padding: 11px 16px; font-size: 14px; font-weight: 600; box-shadow: 0 12px 30px -10px rgba(0,0,0,.45); pointer-events: auto; animation: rise .2s ease-out; max-width: 100%; }
.toast.err { background: #9f1239; }
.toast.ok { background: #166534; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
body.m #toasts { bottom: calc(var(--tab-h) + 34px + env(safe-area-inset-bottom)); }

dialog.dlg { border: 0; border-radius: 18px; padding: 0; width: min(92vw, 440px); box-shadow: 0 30px 70px -20px rgba(15, 23, 42, .5); color: var(--ink); background: var(--surf); }
dialog.dlg::backdrop { background: rgba(15, 23, 42, .45); }
.dlg form { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.dlg h2 { margin: 0; font-size: 18px; }
.dlg p { margin: 0; color: var(--mut); line-height: 1.6; white-space: pre-line; }
.dlg .acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }

/* ---------- 겉틀: A (왼쪽 레일) ---------- */
.shell { min-height: 100vh; }
.shell.a { display: grid; grid-template-columns: 76px minmax(0, 1fr); }
.rail { position: sticky; top: 0; height: 100vh; background: #0f172a; display: flex; flex-direction: column; align-items: center; padding: 18px 0; gap: 6px; z-index: 30; }
.logo-m { width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(135deg, #6d83ff, #3d5afe 55%, #2a3fd6); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 19px; box-shadow: 0 8px 20px -6px rgba(61, 90, 254, .7); text-decoration: none; flex: none; }
body[data-style="b"] .logo-m { background: #e5603b; box-shadow: 0 8px 18px -8px rgba(201, 74, 39, .8); }
.rail .logo-m { margin-bottom: 18px; }
.rail .nav { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #8b97ad; position: relative; text-decoration: none; }
.rail .nav svg { width: 21px; height: 21px; }
.rail .nav:hover { color: #fff; background: rgba(255,255,255,.06); }
.rail .nav[aria-current="page"] { background: rgba(255,255,255,.1); color: #fff; }
.rail .nav[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: #7b8fff; }
.rail .nav .dot { position: absolute; top: 9px; right: 9px; min-width: 16px; height: 16px; border-radius: 8px; background: #ff5d6c; color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; box-shadow: 0 0 0 2px #0f172a; }
.rail .nav .tip { position: absolute; left: 58px; top: 50%; transform: translateY(-50%); background: #111827; color: #fff; font-size: 12.5px; font-weight: 650; padding: 5px 9px; border-radius: 7px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; }
.rail .nav:hover .tip, .rail .nav:focus-visible .tip { opacity: 1; }
.rail .avatar { margin-top: 8px; width: 40px; height: 40px; text-decoration: none; }
.main { min-width: 0; padding: 24px 28px 48px; }
.shell.a .main { transition: margin-right .2s; }
body.docked .shell.a .main { margin-right: 372px; }

/* ---------- 겉틀: B (위쪽 메뉴) ---------- */
.topnav { position: sticky; top: 0; z-index: 30; height: 72px; display: flex; align-items: center; padding: 0 48px; gap: 34px; border-bottom: 1px solid var(--line); background: rgba(250, 246, 240, .92); backdrop-filter: blur(12px); }
.topnav .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.topnav .brand .logo-m { width: 34px; height: 34px; border-radius: 10px; font-size: 16px; }
.topnav .links { display: flex; gap: 26px; font-size: 14.5px; font-weight: 650; height: 100%; }
.topnav .links a { color: var(--mut); text-decoration: none; display: flex; align-items: center; position: relative; gap: 5px; }
.topnav .links a:hover { color: var(--ink); }
.topnav .links a[aria-current="page"] { color: var(--ink); }
.topnav .links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 2px; background: var(--pri); }
.topnav .links .c { background: var(--pri); color: #fff; border-radius: 9px; font-size: 11px; padding: 0 6px; line-height: 18px; }
.topnav .user { display: flex; align-items: center; gap: 10px; font-size: 13px; text-decoration: none; color: var(--ink); }
.topnav .user b { display: block; font-size: 14px; }
.topnav .user small { color: var(--mut); }
.topnav .icon-btn { border-radius: 50%; width: 40px; height: 40px; }
.topnav .avatar { background: linear-gradient(135deg, #ffd9a8, #f4a26b); color: #7a3a0e; width: 40px; height: 40px; }
.shell.b { overflow-x: clip; }
.shell.b .main > :first-child:not(.hero) { margin-top: 28px; }
.shell.b .main { max-width: 1440px; margin: 0 auto; padding: 0 48px 56px; }

/* ---------- 겉틀: 모바일 (D 배치) ---------- */
body.m { --r: 16px; }
.shell.m { overflow-x: clip; padding-bottom: calc(var(--tab-h) + 40px + env(safe-area-inset-bottom)); }
.mhead { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 18px 10px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); }
.mhead .t { min-width: 0; }
.mhead .t small { display: block; color: var(--mut); font-size: 12.5px; font-weight: 650; }
.mhead .t b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mhead .icon-btn { border-radius: 14px; }
.mhead .avatar { border-radius: 14px; width: 40px; height: 40px; text-decoration: none; }
.shell.m .main { padding: 4px 16px 24px; }
.tabbar { position: fixed; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); height: var(--tab-h); border-radius: 26px; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); box-shadow: 0 12px 34px -12px rgba(30, 30, 80, .35), 0 0 0 1px var(--line); display: flex; align-items: center; justify-content: space-around; padding: 0 6px; z-index: 35; }
.tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; color: var(--mut2); width: 58px; text-decoration: none; border: 0; background: none; padding: 0; }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--pri); }
.tabbar .fab { width: 56px; height: 56px; border-radius: 19px; background: var(--pri-grad); display: grid; place-items: center; color: #fff; box-shadow: var(--pri-shadow); margin-top: -30px; }
.tabbar .fab svg { width: 26px; height: 26px; }

/* ---------- 오른쪽 패널 / 아래 시트 ---------- */
.scrim { position: fixed; inset: 0; background: rgba(15, 23, 42, .38); z-index: 39; opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.open { opacity: 1; pointer-events: auto; }
body[data-style="a"]:not(.m) .scrim { display: none; }
.panel { position: fixed; top: 0; right: 0; bottom: 0; width: 372px; background: var(--surf); border-left: 1px solid var(--line); z-index: 40; transform: translateX(105%); transition: transform .22s ease; overflow-y: auto; overscroll-behavior: contain; visibility: hidden; }
.panel.open { transform: none; visibility: visible; }
body[data-style="b"]:not(.m) .panel { width: 420px; box-shadow: -30px 0 60px -30px rgba(60, 30, 10, .4); }
body.m .panel { top: auto; left: 0; width: 100%; max-height: 90vh; border-left: 0; border-radius: 26px 26px 0 0; transform: translateY(105%); box-shadow: 0 -20px 40px -20px rgba(30, 20, 80, .4); padding-bottom: env(safe-area-inset-bottom); }
body.m .panel.open { transform: none; }
.panel .grab { width: 42px; height: 5px; border-radius: 3px; background: var(--line); margin: 10px auto 0; display: none; }
body.m .panel .grab { display: block; }
.pf { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.pf-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pf-head .eb { font-size: 12px; font-weight: 750; color: var(--pri); }
.pf-head h3 { margin: 3px 0 0; font-size: 21px; font-weight: 800; }
.pf-head .icon-btn { width: 34px; height: 34px; border-radius: 10px; color: var(--mut); }
.pf-photo { height: 132px; border-radius: 14px; overflow: hidden; position: relative; background: var(--chip); flex: none; }
.pf-photo img, .pf-photo svg { width: 100%; height: 100%; object-fit: cover; }
.pf-photo .pc { position: absolute; right: 10px; bottom: 10px; background: rgba(15, 23, 42, .6); color: #fff; font-size: 11.5px; font-weight: 650; border-radius: 7px; padding: 3px 8px; }
.meta { display: flex; gap: 6px; flex-wrap: wrap; }
.meta span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; background: var(--chip); border-radius: 7px; padding: 4px 8px; color: var(--ink); }
.meta svg { width: 13px; height: 13px; color: var(--mut); }
.times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.times button { border: 1px solid var(--line); background: var(--surf); border-radius: 10px; padding: 8px 0; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.times button:hover:not(:disabled) { border-color: var(--pri-b); }
.times button.rng { background: var(--pri-w); border-color: var(--pri-b); color: var(--pri-d); }
.times button.on { background: var(--pri); border-color: var(--pri); color: #fff; }
.times button:disabled { background: var(--chip); border-color: transparent; color: var(--mut2); text-decoration: line-through; }
.times-more { font-size: 12.5px; }
.durs { display: flex; gap: 6px; flex-wrap: wrap; }
.durs button { flex: 1 1 0; min-width: 62px; border: 1px solid var(--line); background: var(--surf); border-radius: 9px; padding: 7px 4px; font-size: 12.5px; font-weight: 650; color: var(--ink); }
.durs button[aria-pressed="true"] { background: var(--pri); border-color: var(--pri); color: #fff; }
.avail { display: flex; gap: 7px; align-items: flex-start; font-size: 13px; font-weight: 650; border-radius: 10px; padding: 9px 11px; line-height: 1.45; }
.avail svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.avail.ok { color: var(--ok); background: var(--ok-w); }
.avail.bad { color: var(--err); background: var(--err-w); }
.avail.info { color: var(--mut); background: var(--chip); }
.rules { font-size: 12px; color: var(--mut); line-height: 1.55; }
.pf .acts { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.kv { display: grid; grid-template-columns: 74px 1fr; gap: 8px 12px; font-size: 14px; }
.kv dt { color: var(--mut); font-weight: 650; font-size: 13px; }
.kv dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.form-err { color: var(--err); background: var(--err-w); border-radius: 10px; padding: 9px 12px; font-size: 13.5px; font-weight: 650; }

/* ---------- 쪽 머리 ---------- */
.ph { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.ph h1 { font-size: 24px; margin: 0; font-weight: 800; }
.ph .sub { color: var(--mut); font-size: 13.5px; }
.sec-h { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 800; margin: 22px 0 10px; }
.sec-h a, .sec-h button.linkbtn { font-size: 12.5px; font-weight: 700; color: var(--pri); text-decoration: none; }

/* ---------- A: 타임라인 ---------- */
.tl-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.datebox { display: flex; align-items: center; gap: 2px; background: var(--surf); border: 1px solid var(--line); border-radius: 11px; height: 38px; padding: 0 4px; position: relative; }
.datebox > button { width: 30px; height: 30px; border: 0; background: none; border-radius: 8px; color: var(--mut); display: grid; place-items: center; }
.datebox > button:hover { background: var(--chip); }
.datebox > button svg { width: 16px; height: 16px; }
.datebox label { font-size: 14px; padding: 0 6px; font-weight: 750; cursor: pointer; white-space: nowrap; position: relative; }
.datebox input[type="date"] { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.board { background: var(--surf); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.board-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.board-in { min-width: 760px; position: relative; }
body.m .board-in { min-width: 980px; }
.hours { display: grid; grid-template-columns: var(--rc, 196px) 1fr; border-bottom: 1px solid var(--line); height: 40px; position: sticky; top: 0; background: var(--surf); z-index: 4; }
.hours .lab { display: flex; align-items: center; padding: 0 16px; font-size: 12px; font-weight: 700; color: var(--mut2); background: var(--surf); position: sticky; left: 0; z-index: 2; }
.hours .scale { position: relative; }
.hours .scale span { position: absolute; top: 12px; transform: translateX(-50%); font-size: 12px; font-weight: 650; color: var(--mut); font-variant-numeric: tabular-nums; }
.hours .scale span { transform: none; margin-left: 5px; }
.tl-row { display: grid; grid-template-columns: var(--rc, 196px) 1fr; min-height: 74px; border-bottom: 1px solid var(--line2); }
.tl-row:last-child { border-bottom: 0; }
.roomcell { display: flex; align-items: center; gap: 11px; padding: 0 12px 0 14px; border: 0; border-right: 1px solid var(--line); background: var(--surf); text-align: left; position: sticky; left: 0; z-index: 3; min-width: 0; color: var(--ink); text-decoration: none; }
.roomcell:hover b { color: var(--pri-d); }
.roomcell .th { width: 44px; height: 44px; border-radius: 11px; overflow: hidden; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); background: var(--chip); }
.roomcell .th img, .roomcell .th svg { width: 100%; height: 100%; object-fit: cover; }
.roomcell b { display: block; font-size: 14px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.roomcell small { display: block; font-size: 12px; color: var(--mut); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.roomcell > div { min-width: 0; }
.track { position: relative; background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(var(--hw) - 1px), var(--line2) calc(var(--hw) - 1px), var(--line2) var(--hw)); touch-action: pan-x pan-y; user-select: none; -webkit-user-select: none; }
.track .past { position: absolute; top: 0; bottom: 0; left: 0; background: repeating-linear-gradient(135deg, rgba(148, 163, 184, .1) 0 6px, transparent 6px 12px); pointer-events: none; }
.track .off { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--line2) 80%, transparent); pointer-events: none; }
.slot { position: absolute; top: 6px; bottom: 6px; border: 0; background: transparent; border-radius: 9px; padding: 0; z-index: 1; color: var(--pri-d); display: grid; place-items: center; }
.slot svg { width: 14px; height: 14px; opacity: 0; }
.slot:hover, .slot:focus-visible { background: color-mix(in srgb, var(--pri) 9%, transparent); outline: 1.5px dashed color-mix(in srgb, var(--pri) 60%, transparent); outline-offset: -1.5px; }
.slot:hover svg, .slot:focus-visible svg { opacity: .9; }
.bk { position: absolute; top: 8px; bottom: 8px; border-radius: 10px; padding: 7px 8px; overflow: hidden; font-size: 12px; line-height: 1.3; border: 0; border-left: 3px solid; white-space: nowrap; text-align: left; z-index: 2; background: #e7f7f3; border-color: #14b8a6; color: #0f5e55; }
.bk b { display: block; font-size: 12.5px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; }
.bk span { display: block; opacity: .82; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; margin-top: 2px; }
.bk:hover { filter: brightness(.97); }
.bk.teal { background: #e7f7f3; border-color: #14b8a6; color: #0f5e55; }
.bk.amber { background: #fff4e0; border-color: #f59e0b; color: #7a4a05; }
.bk.violet { background: #f2edff; border-color: #8b5cf6; color: #4c2a9e; }
.bk.rose { background: #ffeef1; border-color: #f43f5e; color: #8a1d33; }
.bk.sky { background: #e8f4ff; border-color: #0ea5e9; color: #0b4a6e; }
.bk.mine { background: var(--mine-grad); border-color: var(--mine-b); color: #fff; box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--pri) 80%, transparent); }
.bk.closure { background: repeating-linear-gradient(135deg, #f1f3f7 0 7px, #e6e9ef 7px 14px); border-color: #94a3b8; color: #475569; cursor: default; }
.bk.ghost { background: color-mix(in srgb, var(--pri) 10%, transparent); border: 2px dashed var(--pri); color: var(--pri-d); display: flex; align-items: center; justify-content: center; font-weight: 750; font-size: 12.5px; pointer-events: none; z-index: 5; }
.bk.tiny { padding: 0; display: grid; place-items: center; }
.bk.tiny b, .bk.tiny span { display: none; }
.bk .ti { display: none; }
.bk.tiny .ti { display: grid; place-items: center; }
.bk.tiny .ti svg { width: 14px; height: 14px; }
.nowline { position: absolute; top: 0; bottom: 0; width: 2px; background: #ff4d5e; z-index: 6; pointer-events: none; }
.nowline::after { content: ""; position: absolute; top: -4px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: #ff4d5e; }
.nowwrap { position: absolute; top: 40px; bottom: 0; left: var(--rc, 196px); right: 0; pointer-events: none; z-index: 2; }
.hours .scale .nowlab { top: 10px; transform: translateX(-50%); margin-left: 0; background: #ff4d5e; color: #fff; font-size: 11px; font-weight: 750; border-radius: 6px; padding: 2px 6px; z-index: 1; }
.tl-bottom { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.free-now { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.free-now > b { font-size: 13px; margin-right: 4px; }
.free-now button { display: flex; align-items: center; gap: 7px; background: var(--surf); border: 1px solid var(--line); border-radius: 10px; padding: 6px 11px; font-size: 12.5px; font-weight: 650; }
.free-now button i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px #dcfce7; }
.free-now button em { font-style: normal; color: var(--mut); font-weight: 500; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--mut); flex-wrap: wrap; margin-left: auto; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: block; }
.up-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.up { background: var(--surf); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; text-align: left; min-width: 0; color: var(--ink); }
.up:hover { border-color: var(--pri-b); }
.dbadge { width: 46px; height: 46px; border-radius: 12px; background: var(--pri-w); color: var(--pri-d); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; line-height: 1.05; flex: none; }
.dbadge small { font-size: 10.5px; font-weight: 750; }
.up b, .up span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up b { font-size: 13.5px; }
.up span { font-size: 12px; color: var(--mut); margin-top: 2px; }
.up > div:nth-child(2) { min-width: 0; }
.next-card { border-radius: 24px; padding: 18px 20px; background: var(--pri-grad); color: #fff; position: relative; overflow: hidden; box-shadow: var(--pri-shadow); margin-bottom: 14px; border: 0; width: 100%; text-align: left; display: block; }
.next-card::before { content: ""; position: absolute; right: -50px; top: -60px; width: 190px; height: 190px; border-radius: 50%; background: rgba(255,255,255,.12); }
.next-card small { font-size: 12.5px; font-weight: 750; opacity: .9; display: flex; gap: 6px; align-items: center; }
.next-card small i { width: 7px; height: 7px; border-radius: 50%; background: #8dffd9; box-shadow: 0 0 0 3px rgba(141,255,217,.3); }
.next-card h3 { margin: 6px 0 0; font-size: 20px; font-weight: 800; position: relative; }
.next-card p { margin: 3px 0 0; font-size: 13.5px; opacity: .92; position: relative; }
.days { display: flex; gap: 6px; margin-bottom: 12px; }
.days button { flex: 1; text-align: center; border-radius: 15px; padding: 7px 0 7px; background: var(--surf); border: 1px solid var(--line); font-size: 11.5px; color: var(--mut); font-weight: 650; }
.days button b { display: block; font-size: 16px; color: var(--ink); margin-top: 1px; }
.days button[aria-pressed="true"] { background: var(--dark); border-color: var(--dark); color: #c9cbe0; }
.days button[aria-pressed="true"] b { color: #fff; }
.days button.su { color: #ef4466; }

/* ---------- B: 사진 카드 ---------- */
.hero { padding: 36px 0 22px; position: relative; }
.hero::before { content: ""; position: absolute; right: -120px; top: -160px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--pri) 18%, transparent) 0, transparent 70%); pointer-events: none; }
.hero h1 { position: relative; font-size: 38px; line-height: 1.18; margin: 0; font-weight: 800; letter-spacing: -0.045em; }
.hero h1 em { font-style: normal; color: var(--pri); }
.hero p { position: relative; margin: 8px 0 0; color: var(--mut); font-size: 15.5px; }
.search { position: relative; margin-top: 22px; display: flex; align-items: stretch; background: var(--surf); border-radius: 20px; box-shadow: 0 18px 40px -22px rgba(90, 50, 20, .45), 0 0 0 1px var(--line); padding: 8px; max-width: 1040px; flex-wrap: wrap; gap: 0; }
.search .sf { flex: 1 1 150px; padding: 6px 16px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.search .sf:first-child { border-left: 0; }
.search .sf label { font-size: 12px; font-weight: 700; color: var(--mut); }
.search .sf select, .search .sf input { border: 0; background: transparent; font-size: 15px; font-weight: 750; padding: 2px 0; width: 100%; min-width: 0; }
.search .sf select:focus, .search .sf input:focus { outline: none; }
.search .sf .tw { display: flex; align-items: center; gap: 4px; }
.search .go { border: 0; border-radius: 14px; background: var(--pri); color: #fff; font-weight: 750; font-size: 15px; padding: 0 26px; display: flex; align-items: center; gap: 8px; min-height: 52px; }
.search .go svg { width: 18px; height: 18px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.filters .chip { height: 36px; padding: 0 15px; font-size: 13.5px; }
body[data-style="b"] .filters .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
body[data-style="b"] .filters .chip[aria-pressed="true"] svg { color: #fff; }
.sec-b { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 26px 0 14px; }
.sec-b h2 { margin: 0; font-size: 21px; font-weight: 800; }
.sec-b h2 small { font-size: 14px; color: var(--mut); font-weight: 650; margin-left: 8px; }
.sec-b span { font-size: 13px; color: var(--mut); font-weight: 650; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.rcard { background: var(--surf); border-radius: 22px; overflow: hidden; box-shadow: 0 14px 34px -24px rgba(90, 50, 20, .5), 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.rphoto { height: 200px; position: relative; display: block; background: var(--chip); }
.rphoto img, .rphoto svg { width: 100%; height: 100%; object-fit: cover; }
.rbadge { position: absolute; left: 14px; top: 14px; display: flex; align-items: center; gap: 7px; background: rgba(255,255,255,.95); border-radius: 999px; padding: 6px 12px 6px 10px; font-size: 12.5px; font-weight: 750; box-shadow: 0 4px 12px rgba(0,0,0,.12); color: #1f8a5b; }
.rbadge i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px #d9f7e5; }
.rbadge.busy { color: #c2410c; }
.rbadge.busy i { background: #f97316; box-shadow: 0 0 0 3px #ffe7d6; }
.rbadge.off { color: #64748b; }
.rbadge.off i { background: #94a3b8; box-shadow: 0 0 0 3px #e2e8f0; }
.fav { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; color: #a8988a; border: 0; }
.fav svg { width: 18px; height: 18px; }
.fav[aria-pressed="true"] { color: #e5603b; }
.fav[aria-pressed="true"] svg { fill: currentColor; }
.rphoto .pcnt { position: absolute; right: 14px; bottom: 12px; background: rgba(42, 32, 24, .72); color: #fff; font-size: 11.5px; font-weight: 700; border-radius: 7px; padding: 3px 8px; }
.rbody { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.rt { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rt h3 { margin: 0; font-size: 18px; font-weight: 800; }
.rt h3 a { color: inherit; text-decoration: none; }
.rt h3 a:hover { color: var(--pri-d); }
.rt span { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--mut); white-space: nowrap; }
.rt span svg { width: 15px; height: 15px; }
.rloc { font-size: 13px; color: var(--mut); margin-top: 3px; }
.req { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.req span { display: inline-flex; align-items: center; gap: 5px; background: var(--chip); border-radius: 8px; padding: 4px 8px; font-size: 12px; font-weight: 650; color: var(--ink); }
.req svg { width: 13px; height: 13px; color: var(--mut); }
.strip { margin-top: 14px; height: 10px; border-radius: 5px; background: #e9f6ee; position: relative; overflow: hidden; }
.strip i { position: absolute; top: 0; bottom: 0; background: #f3b49b; }
body[data-style="a"] .strip i { background: #b9c4f5; }
.strip i.me { background: var(--pri); }
.strip i.cl { background: repeating-linear-gradient(135deg, #cbd5e1 0 4px, #e2e8f0 4px 8px); }
.strip b { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); }
.strip-l { display: flex; justify-content: space-between; font-size: 11px; color: var(--mut2); font-weight: 650; margin-top: 5px; font-variant-numeric: tabular-nums; }
.rfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; }
.rfoot-in { border-top: 1px dashed var(--line); padding-top: 14px; margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rfoot-in div { font-size: 13px; color: var(--mut); }
.rfoot-in div b { display: block; color: #1f8a5b; font-size: 14px; }
.rfoot-in div b.no { color: #b9472b; }

/* ---------- 회의실 상세 ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--mut); font-weight: 650; text-decoration: none; margin: 4px 0 12px; font-size: 13.5px; }
.back svg { width: 16px; height: 16px; }
.rd { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.gallery { border-radius: 20px; overflow: hidden; position: relative; aspect-ratio: 16 / 10; background: var(--chip); }
.gallery img, .gallery svg { width: 100%; height: 100%; object-fit: cover; }
.gallery .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.gallery .nav svg { width: 18px; height: 18px; }
.gallery .nav.l { left: 12px; }
.gallery .nav.r { right: 12px; }
.gallery .cnt { position: absolute; right: 14px; bottom: 12px; background: rgba(15,23,42,.65); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 8px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 2px; }
.thumbs button { width: 74px; height: 52px; border-radius: 9px; overflow: hidden; border: 2px solid transparent; padding: 0; flex: none; background: var(--chip); }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button[aria-current="true"] { border-color: var(--pri); }
.rd-info h1 { margin: 0; font-size: 28px; font-weight: 800; }
.rd-info .sub { color: var(--mut); margin-top: 4px; font-size: 14px; }
.rd-info .desc { margin: 14px 0 0; line-height: 1.7; white-space: pre-line; }
.rd-info .meta { margin-top: 12px; }
.rules-list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 13px; }
.rules-list li { display: flex; gap: 6px; align-items: center; color: var(--mut); }
.rules-list li b { color: var(--ink); font-weight: 700; }
.rules-list svg { width: 14px; height: 14px; }
.week { margin-top: 8px; }
.week-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 26px 0 10px; }
.week-head h2 { margin: 0; font-size: 18px; font-weight: 800; }
.wk { display: grid; grid-template-columns: 52px repeat(7, minmax(84px, 1fr)); background: var(--surf); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.wk-scroll { overflow-x: auto; }
.wk .hd { padding: 8px 4px; text-align: center; font-size: 12px; font-weight: 700; color: var(--mut); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line2); }
.wk .hd b { display: block; font-size: 15px; color: var(--ink); }
.wk .hd.today b { color: var(--pri); }
.wk .hd.we { color: #ef4466; }
.wk .axis { position: relative; }
.wk .axis span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 11px; color: var(--mut2); font-weight: 650; font-variant-numeric: tabular-nums; }
.wk .col { position: relative; border-left: 1px solid var(--line2); background-image: repeating-linear-gradient(180deg, transparent 0, transparent calc(var(--hh) - 1px), var(--line2) calc(var(--hh) - 1px), var(--line2) var(--hh)); cursor: pointer; }
.wk .col.dis { cursor: default; background-color: color-mix(in srgb, var(--line2) 60%, transparent); }
.wk .col .bk { left: 3px; right: 3px; top: auto; bottom: auto; padding: 4px 6px; white-space: normal; }
.wk .col .bk b { white-space: nowrap; }
.wk .col .past { position: absolute; left: 0; right: 0; top: 0; background: repeating-linear-gradient(135deg, rgba(148, 163, 184, .1) 0 6px, transparent 6px 12px); pointer-events: none; }
.book-box { position: sticky; top: 90px; }
.book-box .times { grid-template-columns: repeat(4, 1fr); }

/* ---------- 내 예약 / 알림 ---------- */
.res-group { margin-bottom: 18px; }
.res-group h3 { font-size: 13px; color: var(--mut); margin: 0 0 8px; font-weight: 750; }
.res-item { display: flex; align-items: center; gap: 14px; background: var(--surf); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-bottom: 8px; }
.res-item .bar { width: 4px; align-self: stretch; border-radius: 2px; background: var(--pri); flex: none; }
.res-item.cancelled .bar { background: var(--mut2); }
.res-item .body { flex: 1; min-width: 0; }
.res-item b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-item small { display: block; color: var(--mut); font-size: 12.5px; margin-top: 2px; }
.res-item .acts { display: flex; gap: 6px; flex: none; }
.noti { display: flex; gap: 12px; align-items: flex-start; background: var(--surf); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; width: 100%; text-align: left; color: var(--ink); }
.noti.unread { border-color: var(--pri-b); background: color-mix(in srgb, var(--pri-w) 55%, var(--surf)); }
.noti .dot { width: 8px; height: 8px; border-radius: 50%; background: transparent; margin-top: 7px; flex: none; }
.noti.unread .dot { background: var(--pri); }
.noti p { margin: 0; font-size: 14px; line-height: 1.5; font-weight: 550; }
.noti small { color: var(--mut); font-size: 12px; }
.narrow { max-width: 860px; }

/* ---------- 설정 ---------- */
.set-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 18px; align-items: start; }
.group { background: var(--surf); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.group h2 { margin: 0; font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.group h2 svg { width: 18px; height: 18px; color: var(--pri); }
.group .gdesc { margin: -6px 0 0; font-size: 12.5px; color: var(--mut); line-height: 1.55; }
.set-row { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 650; }
.set-row small { display: block; font-size: 12px; color: var(--mut); font-weight: 500; margin-top: 1px; }
.set-row > div { flex: 1; min-width: 0; }
.style-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.style-pick label { border: 2px solid var(--line); border-radius: 16px; padding: 10px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; position: relative; }
.style-pick input { position: absolute; opacity: 0; }
.style-pick label:has(input:checked) { border-color: var(--pri); box-shadow: var(--focus); }
.style-pick label:has(input:focus-visible) { box-shadow: var(--focus); }
.style-pick b { font-size: 14px; }
.style-pick small { color: var(--mut); font-size: 12px; }
.mini { height: 74px; border-radius: 10px; overflow: hidden; display: grid; }
.mini.a { grid-template-columns: 16px 1fr; background: #f5f6fa; }
.mini.a i { background: #0f172a; }
.mini.a div { padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.mini.a div span { height: 9px; border-radius: 4px; background: #e2e6f0; position: relative; }
.mini.a div span::after { content: ""; position: absolute; top: 0; bottom: 0; left: 30%; width: 28%; border-radius: 4px; background: #3d5afe; }
.mini.a div span:nth-child(2)::after { left: 52%; width: 22%; background: #14b8a6; }
.mini.a div span:nth-child(3)::after { left: 12%; width: 18%; background: #f59e0b; }
.mini.b { background: #faf6f0; grid-template-columns: 1fr 1fr 1fr; gap: 6px; padding: 8px; }
.mini.b span { border-radius: 7px; background: linear-gradient(180deg, #f3c9a6 0 55%, #fff 55%); box-shadow: 0 0 0 1px #ecdfd0; }
.mini.b span:nth-child(2) { background: linear-gradient(180deg, #b9d7c8 0 55%, #fff 55%); }
.mini.b span:nth-child(3) { background: linear-gradient(180deg, #c9c3ee 0 55%, #fff 55%); }
.svc-list { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.svc-list li { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.6); border-radius: 10px; padding: 8px 10px; font-weight: 650; }
.svc-list li svg { width: 16px; height: 16px; }
.svc-list li small { color: inherit; opacity: .75; font-weight: 500; margin-left: auto; }

/* ---------- 로그인·가입 ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.auth-side { background: radial-gradient(700px 500px at 20% 0%, #7b8fff 0, transparent 60%), radial-gradient(600px 500px at 100% 100%, #2a3fd6 0, transparent 60%), #1e2a78; color: #fff; padding: 56px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth-side .brand { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 800; }
.auth-side h1 { font-size: 40px; line-height: 1.2; margin: auto 0 12px; font-weight: 800; letter-spacing: -0.045em; }
.auth-side p { margin: 0; opacity: .85; font-size: 15.5px; line-height: 1.65; max-width: 420px; }
.auth-side .art { position: absolute; right: -60px; bottom: -40px; width: 420px; height: 252px; border-radius: 28px; overflow: hidden; opacity: .28; transform: rotate(-8deg); }
.auth-side .art svg { width: 100%; height: 100%; }
.auth-side .foot { margin-top: 28px; font-size: 13px; opacity: .7; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: min(100%, 440px); display: flex; flex-direction: column; gap: 16px; }
.auth-card.wide { width: min(100%, 520px); }
.auth-card h2 { margin: 0; font-size: 26px; font-weight: 800; }
.auth-card .lead { margin: -6px 0 0; color: var(--mut); line-height: 1.6; }
.auth-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
.auth-links a { color: var(--pri-d); font-weight: 650; text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }
body.m .auth { grid-template-columns: 1fr; }
body.m .auth-side { padding: calc(28px + env(safe-area-inset-top)) 24px 26px; min-height: 0; }
body.m .auth-side h1 { font-size: 26px; margin: 18px 0 6px; }
body.m .auth-side p { font-size: 14px; }
body.m .auth-side .art, body.m .auth-side .foot { display: none; }
body.m .auth-main { padding: 22px 18px 40px; align-items: flex-start; }

/* ---------- 관리 ---------- */
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-tabs a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surf); font-weight: 650; font-size: 13.5px; color: var(--ink); text-decoration: none; }
.admin-tabs a[aria-current="page"] { background: var(--dark); border-color: var(--dark); color: #fff; }
.admin-tabs a .c { background: #ff4d5e; color: #fff; border-radius: 9px; font-size: 11px; padding: 0 6px; line-height: 18px; }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .in { width: auto; height: 36px; font-size: 13.5px; }
.tbl-wrap { overflow-x: auto; background: var(--surf); border: 1px solid var(--line); border-radius: 16px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 12px; color: var(--mut); font-weight: 750; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: color-mix(in srgb, var(--chip) 60%, var(--surf)); }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td small { display: block; color: var(--mut); font-size: 12px; }
.tbl .acts { display: flex; gap: 6px; justify-content: flex-end; white-space: nowrap; }
.tbl select.in { height: 32px; font-size: 13px; width: auto; }
.site-card { margin-bottom: 16px; }
.site-card .sh { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.site-card .sh h3 { margin: 0; font-size: 17px; }
.site-card .rooms-l { display: flex; flex-direction: column; }
.room-line { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line2); color: var(--ink); text-decoration: none; }
.room-line:last-child { border-bottom: 0; }
.room-line:hover { background: color-mix(in srgb, var(--chip) 50%, var(--surf)); }
.room-line .th { width: 52px; height: 38px; border-radius: 8px; overflow: hidden; flex: none; background: var(--chip); }
.room-line .th img, .room-line .th svg { width: 100%; height: 100%; object-fit: cover; }
.room-line b { display: block; }
.room-line small { color: var(--mut); font-size: 12px; }
.room-line > div { flex: 1; min-width: 0; }
.room-line > svg { width: 18px; height: 18px; color: var(--mut2); flex: none; }
.eq-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.eq-checks label { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px; }
.eq-checks input { accent-color: var(--pri); width: 16px; height: 16px; }
.hue-row { display: flex; align-items: center; gap: 14px; }
.hue-row input[type="range"] { flex: 1; accent-color: var(--pri); }
.hue-row .prev { width: 120px; height: 72px; border-radius: 10px; overflow: hidden; flex: none; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photo-grid figure { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surf); }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-grid figcaption { display: flex; gap: 4px; padding: 6px; align-items: center; flex-wrap: wrap; }
.upload { border: 2px dashed var(--line); border-radius: 14px; padding: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.upload input[type="file"] { font-size: 13px; max-width: 100%; }
.affected { max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; font-size: 13px; }
.affected div { padding: 6px 0; border-bottom: 1px solid var(--line2); }
.affected div:last-child { border-bottom: 0; }
.more { display: flex; justify-content: center; margin-top: 12px; }
.admin-2col { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }

/* ---------- 연결 없음 쪽 ---------- */
.offline-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.offline-box { max-width: 420px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.offline-box h1 { font-size: 22px; margin: 6px 0 0; }
.offline-box p { margin: 0; color: var(--mut); line-height: 1.6; }
.brand-mark { width: 56px; height: 56px; border-radius: 17px; background: linear-gradient(135deg, #6d83ff, #3d5afe 55%, #2a3fd6); color: #fff; font-weight: 800; font-size: 24px; display: grid; place-items: center; }

/* ---------- 좁은 화면 다듬기 ---------- */
@media (max-width: 1180px) {
  .up-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .up-list > :nth-child(3) { display: none; }
  .rd { grid-template-columns: 1fr; }
  .book-box { position: static; }
  .admin-2col { grid-template-columns: 1fr; }
  .shell.b .main, .topnav { padding-left: 28px; padding-right: 28px; }
  .topnav { gap: 20px; }
  .topnav .user > div { display: none; }
}
body.m .ph h1 { font-size: 22px; }
body.m .up-list { grid-template-columns: 1fr; }
body.m .up-list > :nth-child(3) { display: flex; }
body.m .hero { padding: 12px 0 10px; }
body.m .hero h1 { font-size: 23px; }
body.m .hero p { font-size: 14px; }
body.m .search { border-radius: 18px; flex-direction: column; }
body.m .search .sf { flex: none; border-left: 0; border-top: 1px solid var(--line); padding: 8px 10px; }
body.m .search .sf:first-child { border-top: 0; }
body.m .search .go { justify-content: center; margin-top: 4px; }
body.m .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
body.m .filters .chip { flex: none; }
body.m .cards { grid-template-columns: 1fr; gap: 16px; }
body.m .rphoto { height: 180px; }
body.m .set-grid { grid-template-columns: 1fr; }
body.m .row2, body.m .row3 { grid-template-columns: 1fr; }
body.m .rules-list { grid-template-columns: 1fr; }
body.m .res-item { flex-wrap: wrap; }
body.m .res-item .acts { width: 100%; justify-content: flex-end; }
body.m .legend { margin-left: 0; }
body.m .tl-tools { gap: 8px; }
body.m .tl-tools .eq-chips { display: flex; gap: 6px; overflow-x: auto; width: 100%; padding-bottom: 2px; flex-wrap: nowrap; scrollbar-width: none; }
body.m .tl-tools .eq-chips .chip { flex: none; }
body.m .hours, body.m .tl-row { --rc: 132px; }
body.m .roomcell .th { display: none; }
body.m .gallery { border-radius: 16px; }
body.m .rd-info h1 { font-size: 23px; }
body.m .cta-bar { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: var(--surf); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; z-index: 36; }
.cta-bar { display: none; }
body.m .cta-bar small { display: block; color: var(--mut); font-size: 12px; font-weight: 650; }
body.m .cta-bar b { font-size: 15px; }
body.m.has-cta .tabbar { display: none; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
