/* =========================================================
   총무팀 앱 공통 스타일
   색상은 :root 변수만 바꾸면 전체에 적용됩니다.
   ========================================================= */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

:root {
  --brand: #008738;
  --brand-strong: #006b2c;
  --brand-soft: #e8f5ec;
  --brand-ink: #0b3d1f;
  --bg: #f4f6f3;
  --surface: #ffffff;
  --line: #e3e7e2;
  --ink: #1b221d;
  --ink-2: #4d5a51;
  --ink-3: #8a958d;
  --danger: #d1372f;
  --danger-soft: #fdecea;
  --warn: #b26b00;
  --warn-soft: #fff4dc;
  --info: #1f6fd1;
  --info-soft: #e9f1fc;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 32, 20, .04), 0 4px 16px rgba(16, 32, 20, .05);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

/* ---------- 레이아웃 ---------- */
.app { max-width: 560px; margin: 0 auto; min-height: 100dvh; padding-bottom: calc(84px + var(--safe-bottom)); }
.page { padding: 0 16px; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  height: 56px; padding: 0 8px 0 4px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.topbar h1 { flex: 1; margin: 0; font-size: 17px; font-weight: 700; }
.icon-btn {
  width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent;
  display: inline-grid; place-items: center; cursor: pointer; color: var(--ink);
}
.icon-btn:active { background: rgba(0,0,0,.06); }
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 하단 탭 ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: center;
  background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-bottom);
}
.tabbar nav { display: flex; width: 100%; max-width: 560px; }
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 0 10px; font-size: 11px; font-weight: 600; color: var(--ink-3);
}
.tabbar a .icon { width: 24px; height: 24px; }
.tabbar a.on { color: var(--brand); }

/* ---------- 카드 / 리스트 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px;
}
.card + .card, .stack > * + * { margin-top: 12px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 24px 4px 10px; }
.section-title h2 { margin: 0; font-size: 15px; font-weight: 700; }
.section-title small { color: var(--ink-3); font-size: 13px; }

.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.item-main { flex: 1; min-width: 0; }
.item-title { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.item-sub { color: var(--ink-2); font-size: 13px; margin-top: 2px; word-break: break-all; }
.item-meta { color: var(--ink-3); font-size: 12px; margin-top: 4px; }
.item-side { text-align: right; flex-shrink: 0; }
.big-num { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.empty { text-align: center; color: var(--ink-3); padding: 36px 16px; font-size: 14px; }

.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.badge.green { background: var(--brand-soft); color: var(--brand-strong); }
.badge.gray { background: #eef0ee; color: var(--ink-2); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.red { background: var(--danger-soft); color: var(--danger); }
.badge.blue { background: var(--info-soft); color: var(--info); }

/* ---------- 폼 ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 0 0 6px 2px; }
.field > span em { font-style: normal; color: var(--ink-3); font-weight: 500; }
.input, .select, .textarea {
  width: 100%; height: 50px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fbfcfb;
  font-size: 16px; outline: none; transition: border-color .15s, background .15s;
  -webkit-appearance: none; appearance: none;
}
.textarea { height: auto; min-height: 84px; padding: 12px 14px; resize: vertical; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238a958d' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); background: #fff; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; min-width: 0; }
.hint { font-size: 12.5px; color: var(--ink-3); margin: -6px 2px 14px; }
.calc { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--brand-soft); border-radius: 12px; color: var(--brand-ink); font-weight: 600; margin-bottom: 14px; }
.calc b { font-size: 18px; font-variant-numeric: tabular-nums; }

/* 선택 칩 */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer;
}
.chip.on { border-color: var(--brand); background: var(--brand); color: #fff; }

/* 차량 선택 카드 */
.vehicle-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-bottom: 14px; }
.vehicle-pick button {
  text-align: left; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer;
}
.vehicle-pick button b { display: block; font-size: 15px; }
.vehicle-pick button small { color: var(--ink-3); font-size: 12px; }
.vehicle-pick button.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 50px; padding: 0 18px; border-radius: 14px; border: 0; cursor: pointer;
  font-size: 16px; font-weight: 700; background: var(--brand); color: #fff; width: 100%;
  transition: background .15s, transform .05s;
}
.btn:active { transform: scale(.985); }
.btn:hover { background: var(--brand-strong); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn.secondary { background: #eef1ee; color: var(--ink); }
.btn.secondary:hover { background: #e3e7e3; }
.btn.danger { background: var(--danger-soft); color: var(--danger); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; width: auto; }
.btn-row { display: flex; gap: 8px; }
.btn-row .btn { flex: 1; }
.link-btn { border: 0; background: none; padding: 4px 6px; color: var(--ink-3); font-size: 13px; font-weight: 600; cursor: pointer; }
.link-btn.red { color: var(--danger); }

/* ---------- 세그먼트 탭 ---------- */
.segment { display: flex; padding: 4px; background: #e8ebe7; border-radius: 12px; margin: 4px 0 16px; }
.segment button { flex: 1; height: 38px; border: 0; border-radius: 9px; background: transparent; font-size: 14px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.segment button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* ---------- 홈 ---------- */
.hero {
  margin: 4px 0 0; padding: 22px 20px 20px; border-radius: 22px; color: #fff;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.18) 0%, transparent 55%),
    linear-gradient(150deg, #009a41 0%, var(--brand) 45%, #00632a 100%);
  box-shadow: 0 10px 30px rgba(0, 107, 44, .25);
}
.hero small { opacity: .85; font-size: 13px; font-weight: 500; }
.hero h2 { margin: 2px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.hero p { margin: 10px 0 0; font-size: 13px; opacity: .9; }
.home-logo { height: 26px; width: auto; margin: 6px 4px 14px; }

.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.menu-tile {
  display: flex; flex-direction: column; justify-content: space-between; min-height: 132px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: var(--shadow);
  transition: transform .1s;
}
.menu-tile:active { transform: scale(.98); }
.menu-tile .tile-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.menu-tile .tile-icon .icon { width: 24px; height: 24px; }
.menu-tile b { display: block; font-size: 16px; margin-top: 14px; }
.menu-tile small { color: var(--ink-3); font-size: 12.5px; line-height: 1.35; }
.menu-tile.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 0; gap: 14px; }
.menu-tile.wide b { margin-top: 0; }
.menu-tile.wide .grow { flex: 1; }

/* ---------- 식당 QR ---------- */
.qr-wrap { text-align: center; padding: 26px 20px 22px; }
/* 리더기에 핸드폰을 넣는 방식 → QR을 화면 위쪽에 */
.qr-top { padding-top: 14px; }
.qr-top .qr-box { margin-top: 0; margin-bottom: 10px; }
.qr-box { --qr: 170px; width: var(--qr); height: var(--qr); margin: 18px auto 14px; padding: calc(var(--qr) * .06); border-radius: 20px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.qr-box svg, .qr-box img { width: 100%; height: 100%; }
.qr-name { font-size: 20px; font-weight: 800; }
.qr-dept { color: var(--ink-3); font-size: 13px; }
.qr-clock { font-size: 34px; font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--brand-ink); }
.qr-clock small { font-size: 15px; color: var(--ink-3); font-weight: 600; margin-left: 4px; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--brand); }
.live-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .35; transform: scale(.8);} }

/* ---------- 로그인 ---------- */
.auth { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 24px 20px calc(24px + var(--safe-bottom)); max-width: 420px; margin: 0 auto; }
.auth .logo { height: 34px; width: auto; margin: 0 auto 10px; }
.auth .lead { text-align: center; color: var(--ink-3); font-size: 14px; margin: 0 0 26px; }

/* ---------- 토스트 / 시트 ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-bottom)); transform: translate(-50%, 20px);
  background: #1d2620; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: all .25s; z-index: 100; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--danger); }

.sheet-backdrop { position: fixed; inset: 0; background: rgba(10, 20, 14, .4); z-index: 60; display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.sheet { width: 100%; max-width: 560px; max-height: 92dvh; overflow: auto; background: var(--surface); border-radius: 22px 22px 0 0; padding: 10px 18px calc(18px + var(--safe-bottom)); animation: up .25s ease-out; }
.sheet .grabber { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.sheet h3 { margin: 0 0 16px; font-size: 18px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: .5; } }

.guide-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: #eef0ee; margin-top: 12px; }
.switch { position: relative; width: 50px; height: 30px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #d5dad5; transition: .2s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .2s; }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(20px); }

.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); color: #6b4300; font-size: 13.5px; margin-bottom: 14px; }
.notice.info { background: var(--info-soft); color: #124a8f; }
.muted { color: var(--ink-3); }
.mt-0 { margin-top: 0 !important; }
.center { text-align: center; }

/* ---------- 홈 화면 앱으로 실행 중일 때 ---------- */
@media (display-mode: standalone) {
  .app { padding-top: env(safe-area-inset-top, 0px); }
  .topbar { top: env(safe-area-inset-top, 0px); }
}
.install-card b { font-size: 15px; }

/* ---------- 세차 포인트 ---------- */
.point-hero { margin-top: 4px; padding: 20px; border-radius: 22px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.18) 0%, transparent 55%), linear-gradient(150deg, #009a41 0%, var(--brand) 45%, #00632a 100%);
  box-shadow: 0 10px 30px rgba(0, 107, 44, .22); }
.point-hero small { opacity: .85; font-size: 13px; }
.point-hero .amount { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.point-hero .amount span { font-size: 20px; margin-left: 2px; }
.point-hero p { margin: 6px 0 0; font-size: 12.5px; opacity: .9; }
.vendor-card { display: flex; align-items: center; gap: 12px; }
.vendor-card .price { font-weight: 800; font-variant-numeric: tabular-nums; }
.plus { color: var(--brand-strong); }
.minus { color: var(--ink); }
.handoff { text-align: center; padding: 8px 0 4px; }
.handoff .who { font-size: 13px; color: var(--ink-3); }
.handoff .big { font-size: 30px; font-weight: 800; margin: 4px 0; font-variant-numeric: tabular-nums; }
.pin-input { text-align: center; font-size: 28px; letter-spacing: .5em; height: 64px; font-weight: 800; }
.done { text-align: center; padding: 6px 0 4px; }
.done .check { width: 76px; height: 76px; margin: 4px auto 10px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; animation: pop .35s ease-out; }
.done .check .icon { width: 40px; height: 40px; stroke-width: 2.6; }
.done .clock { font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--brand-ink); letter-spacing: .02em; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }

/* 라디오 버튼을 칩 모양으로 */
.radio-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.radio-chips label { position: relative; }
.radio-chips input { position: absolute; opacity: 0; pointer-events: none; }
.radio-chips span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.radio-chips input:checked + span { border-color: var(--brand); background: var(--brand); color: #fff; }
.radio-chips input[value="이상"]:checked + span { border-color: var(--danger); background: var(--danger); }
.radio-chips input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

/* 운행 후 점검 체크리스트 */
.checklist { display: grid; gap: 8px; margin-bottom: 14px; }
.checklist label { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fbfcfb; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.checklist input { width: 22px; height: 22px; accent-color: var(--brand); flex-shrink: 0; margin: 0; }
.checklist label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.qr-banner { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); font-size: 14px; font-weight: 600; margin-bottom: 12px; }

/* 차량 가이드북 */
.sos { border: 1.5px solid #f5c2c0; background: #fff6f5; border-radius: var(--radius); padding: 14px; }
.sos h3 { margin: 0 0 10px; font-size: 14.5px; color: var(--danger); display: flex; align-items: center; gap: 6px; }
.sos a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border: 1px solid #f3dcdb; border-radius: 12px; font-size: 14px; }
.sos a + a { margin-top: 8px; }
.sos a b { font-size: 15.5px; color: var(--info); font-variant-numeric: tabular-nums; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.sos a.urgent b { color: var(--danger); }
.sos a .icon { width: 18px; height: 18px; }
.guide-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.guide-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #eef0ee; display: block; }
.guide-card .body { padding: 14px 16px 16px; }
.guide-card .head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.guide-card .head b { font-size: 16px; }
.guide-card .label { font-size: 13px; font-weight: 700; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.guide-card .where { font-size: 15px; font-weight: 700; margin: 2px 0 8px; display: flex; gap: 6px; align-items: flex-start; }
.guide-card .where .icon { width: 18px; height: 18px; color: var(--danger); flex-shrink: 0; margin-top: 2px; }
.guide-card .items { font-size: 13px; color: var(--ink-3); }
.badge.orange { background: #fff1e0; color: #c25e00; }

/* 검색창 */
.search { position: relative; margin-bottom: 10px; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-3); pointer-events: none; }
.search input { padding-left: 44px; padding-right: 40px; }
.search button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); font-size: 18px; cursor: pointer; }
.search-info { font-size: 13px; color: var(--ink-3); margin: -2px 4px 10px; }
.search input::-webkit-search-cancel-button, .search input::-webkit-search-decoration { -webkit-appearance: none; display: none; }

/* 앱 알림 카드 */
.push-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #eef0ee; color: var(--ink-2); flex: none; }
.push-ico.on { background: var(--brand-soft); color: var(--brand-strong); }
.push-ico .icon { width: 22px; height: 22px; }
.auto-list { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); line-height: 1.9; }
.auto-list b { color: var(--brand-strong); font-weight: 700; margin-right: 4px; }
#push:empty { display: none; }

/* ===== 자원 예약 ===== */
.rv-datebar { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.rv-date { position: relative; flex: 1; text-align: center; font-size: 17px; font-weight: 800; cursor: pointer; }
.rv-date input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.rv-datebar .chip { height: 32px; padding: 0 12px; font-size: 13px; }
.rv-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.rv-week button { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 6px 0 5px; display: flex; flex-direction: column; align-items: center; gap: 1px; cursor: pointer; color: var(--ink); font: inherit; }
.rv-week small { font-size: 11px; color: var(--ink-3); }
.rv-week b { font-size: 16px; }
.rv-week i { font-style: normal; font-size: 10.5px; color: var(--brand); height: 14px; font-weight: 700; }
.rv-week .sun b, .rv-week .sun small { color: var(--danger); }
.rv-week .sat b, .rv-week .sat small { color: #2563c9; }
.rv-week .today { border-color: var(--brand); }
.rv-week button.on { background: var(--brand); border-color: var(--brand); }
.rv-week button.on b, .rv-week button.on small, .rv-week button.on i { color: #fff; }
.rv-card { padding: 14px 16px 12px; margin-bottom: 10px; }
.rv-head { display: flex; align-items: center; gap: 10px; }
.rv-head b { font-size: 15.5px; }
.rv-head .chip { height: 32px; padding: 0 12px 0 8px; font-size: 13px; gap: 2px; display: inline-flex; align-items: center; flex: none; }
.rv-head .chip .icon { width: 16px; height: 16px; }
.rv-line { position: relative; height: 12px; border-radius: 6px; background: #eef1ee; margin: 12px 0 2px; overflow: hidden; }
.rv-block { position: absolute; top: 0; bottom: 0; background: #9fbfab; border-radius: 3px; }
.rv-block.mine { background: var(--brand); }
.rv-now { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--danger); }
.rv-hours { position: relative; height: 14px; font-size: 10px; color: var(--ink-3); }
.rv-hours span { position: absolute; transform: translateX(-50%); }
.rv-hours span:first-child { transform: none; }
.rv-hours span:last-child { transform: translateX(-100%); }
.rv-rows { margin-top: 8px; border-top: 1px solid var(--line); }
.rv-row { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; align-items: baseline; width: 100%; text-align: left; border: 0; background: none; padding: 9px 2px; border-bottom: 1px solid var(--line); font: inherit; color: var(--ink); cursor: pointer; }
.rv-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.rv-time { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 14px; white-space: nowrap; }
.rv-who { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.rv-what { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-row em, .rv-time em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--brand); background: var(--brand-soft); border-radius: 6px; padding: 1px 5px; margin-left: 2px; }
.rv-row.mine .rv-time { color: var(--brand-strong); }
.rv-free { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.rv-detail { display: grid; gap: 12px; }
.rv-detail div { display: flex; gap: 12px; }
.rv-detail span { width: 70px; flex: none; color: var(--ink-3); font-size: 13.5px; }
.rv-detail b { font-weight: 600; word-break: break-all; }
.rv-multi { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: -2px 2px 14px; color: var(--ink-2); }
.rv-multi input { width: 18px; height: 18px; accent-color: var(--brand); }
.rv-taken { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; font-size: 12.5px; }
.rv-taken:empty { display: none; }
.rv-taken b { width: 100%; font-size: 12.5px; color: var(--warn); }
.rv-taken b.ok { color: var(--brand); }
.rv-taken span { background: var(--warn-soft); color: var(--warn); border-radius: 8px; padding: 3px 8px; font-weight: 600; }
.rv-cat { width: 38px; height: 38px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.rv-steps { margin: 0 0 12px; padding-left: 20px; font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
.rv-preview { margin-top: 8px; font-size: 12px; color: var(--ink-2); background: #f4f6f3; border-radius: 10px; padding: 8px 10px; line-height: 1.7; }
.rv-preview:empty { display: none; }
.rv-preview.bad { background: var(--danger-soft); color: var(--danger); }

/* ===== 사용 안내 ===== */
.guide-sec { padding: 0; margin-bottom: 10px; overflow: hidden; }
.guide-sec summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; font-size: 15.5px; }
.guide-sec summary::-webkit-details-marker { display: none; }
.guide-sec summary b { flex: 1; }
.guide-ico { width: 38px; height: 38px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.guide-chev .icon { width: 18px; height: 18px; transition: transform .2s; }
.guide-sec[open] .guide-chev .icon { transform: rotate(90deg); }
.guide-item { padding: 4px 16px 14px; border-top: 1px solid var(--line); }
.guide-item h4 { margin: 12px 0 6px; font-size: 14px; color: var(--brand-strong); }
.guide-item ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.guide-item b { color: var(--ink); }
.guide-contact { display: flex; justify-content: space-between; align-items: center; padding: 10px 2px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; }
.guide-contact:first-child { border-top: 0; padding-top: 0; }
.guide-contact b { color: var(--brand); }
