/* 나른 스케쥴 — 모바일 우선 스타일. 색은 config.js 의 theme 값으로 덮어쓴다. */
:root {
  --brand: #33546B;
  --brand-soft: #E7EEF3;
  --accent: #8FB3A3;
  --accent-soft: #EDF4F0;
  --bg: #F6F8F9;
  --card: #FFFFFF;
  --text: #1B2529;
  --muted: #6B7A85;
  --line: #E3E9ED;
  --danger: #C0392B;
  --radius: 14px;
  --sheet-radius: 20px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* 반응형 스케일 — 아래 미디어쿼리에서 화면이 넓어질수록 함께 커진다.
     --chip-fs: 달력 칩 이름 글자 크기(카테고리·시간은 이 값의 em 비율) */
  --app-max: 1200px;
  --chip-fs: 7.4px;
  --cell-min-h: 84px;
  --daynum-fs: 11.5px;
  --sheet-max: 560px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard",
    "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  overscroll-behavior-y: contain;
}

button { font: inherit; color: inherit; }

/* ---------------------------------------------------------------- gate */
.gate {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(160deg, var(--brand) 0%, #24343f 100%);
  z-index: 50;
}
.gate-card {
  width: 100%;
  max-width: 360px;
  background: var(--card);
  border-radius: 22px;
  padding: 28px 22px 20px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
}
.gate-logo { display: flex; justify-content: center; margin-bottom: 10px; }
.gate-title { font-size: 20px; margin: 0 0 6px; letter-spacing: -.02em; }
.gate-sub { margin: 0 0 18px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.gate-form { display: flex; gap: 8px; }
.gate-input {
  flex: 1;
  min-width: 0;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 17px;
  letter-spacing: .18em;
  text-align: center;
  background: #FBFCFD;
}
.gate-input:focus { outline: none; border-color: var(--brand); background: #fff; }
.gate-error { color: var(--danger); font-size: 13px; margin: 12px 0 0; }
.gate-foot { color: var(--muted); font-size: 11.5px; margin: 18px 0 0; line-height: 1.5; }

/* ---------------------------------------------------------------- layout */
.app {
  max-width: var(--app-max);
  margin: 0 auto;
  padding: calc(var(--safe-top) + 6px) 10px calc(var(--safe-bottom) + 84px);
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px 10px;
}
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  flex: 0 0 auto;
}
.brand-name {
  font-weight: 700; font-size: 16.5px; letter-spacing: -.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.top-actions { display: flex; gap: 4px; }
.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: none; background: transparent; border-radius: 12px; color: var(--brand);
}
.icon-btn:active { background: var(--brand-soft); }

/* 달력 아래 검색 바: [전체 ▾] [검색어] [검색] [×] */
.searchbar {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 720px;
  margin: 10px auto 0;
  padding: 8px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(16, 32, 40, .05);
}
.searchbar .q-cat {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 8px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #FBFCFD;
  color: var(--text);
  font-size: 14px;
  -webkit-appearance: none;
  appearance: none;
}
.searchbar input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #FBFCFD;
  color: var(--text);
  font-size: 15px;
  -webkit-appearance: none;
  appearance: none;
}
.searchbar input[type="search"]:focus,
.searchbar .q-cat:focus { outline: none; border-color: var(--brand); background: #fff; }
.searchbar .q-btn {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
}
.searchbar .q-btn:active { opacity: .86; }
.searchbar .q-clear {
  flex: 0 0 auto;
  width: 34px;
  height: 40px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
}

/* 검색 줄 양 끝에 하나 더 둔 이전/다음 달 버튼(상단 버튼과 같은 모양·기능).
   두 쌍 사이 정중앙에는 다른 앱(나른 스케쥴)으로 넘어가는 알약 버튼을 둔다.
   모든 폭에서 같은 구성 — 첫 줄: 왼쪽 쌍 · 가운데 알약 · 오른쪽 쌍 / 둘째 줄: 검색창 한 줄 전체.
   1fr auto 1fr 이라 양옆 칸 폭이 같아 알약이 늘 정확히 가운데에 선다(오른쪽 쌍의 auto 여백 같은 보정이 필요 없다). */
.searchrow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px 10px;
  margin: 10px 0 0;
}
.searchrow .searchrow-left { grid-column: 1; grid-row: 1; justify-self: start; }
.searchrow .searchrow-right { grid-column: 3; grid-row: 1; justify-self: end; }
.searchrow .searchrow-nav { flex: 0 0 auto; }
.searchrow .searchbar { grid-column: 1 / -1; grid-row: 2; width: 100%; min-width: 0; justify-self: center; margin: 0; }

/* 왼쪽 쌍과 오른쪽 쌍 사이 정중앙(가운데 칸) — [전환 알약] 바로 오른쪽에 새로고침 버튼을
   한 묶음으로 세운다. 1fr auto 1fr 격자의 가운데 칸이라 묶음이 늘 정확히 가운데에 선다. */
.switch-center-group {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

/* 전환 알약 — 글자는 줄바꿈하지 않는다. */
.switch-app-btn {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.switch-app-btn:hover, .switch-app-btn:focus-visible { background: var(--card); border-color: var(--brand); }
.switch-app-btn:active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* 알약 오른쪽 새로고침 — 상단 헤더의 #btnRefresh 와 같은 동작(이번 달을 서버에서 새로 읽기).
   월 이동 버튼과 같은 높이·테두리·모서리로 알약과 나란히 선다. */
.refresh-btn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--brand);
}
.refresh-btn:active { background: var(--brand-soft); }
/* 누를 때 한 바퀴 도는 표시 — spinner 와 같은 회전(spin)을 쓴다(상단 헤더 버튼도 같다). */
.refresh-btn.spinning svg,
.icon-btn.spinning svg { animation: spin .6s linear; }

@media (max-width: 560px) {
  /* 폰에서는 두 쌍의 버튼과 알약·새로고침이 달력 바로 아래 한 줄, 검색창은 그 아래 한 줄 전체를 쓴다. */
  .searchrow { gap: 6px 8px; }
  .searchrow .searchrow-nav .nav-btn { width: 40px; height: 40px; }
  .searchrow .searchbar { max-width: none; }
  .switch-center-group { gap: 5px; }
  .switch-app-btn { height: 40px; padding: 0 12px; font-size: 12px; }
}
@media (max-width: 340px) {
  /* 320px 폰: 양쪽 두 쌍(83px+83px)과 [알약][새로고침] 묶음이 한 줄에 겹치지 않게 한 번 더 조인다. */
  .switch-center-group { gap: 4px; }
  .switch-app-btn { padding: 0 8px; font-size: 11px; }
  .refresh-btn { width: 34px; height: 34px; border-radius: 10px; }
  .refresh-btn svg { width: 17px; height: 17px; }
}

.monthbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px;
  padding: 2px 2px 10px;
}
/* 네 모서리에 < 한 쌍씩 — 왼쪽·오른쪽 끝에서 두 버튼을 나란히 둔다. */
.nav-pair {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
/* 검색 줄 바로 아래·기간별 정리 위 — 자주 쓰는 예약 사이트 바로가기.
   두 줄(윗줄 4개 · 아랫줄 1개)을 세로로 쌓고, 두 줄 모두 오른쪽 끝을 같은 선에 맞춘다
   (아랫줄은 윗줄 마지막 버튼 아래). 한 줄 안에서 넘치면 다음 줄로 흘러넘치지 않고 접힌다. */
.quicklinks {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin: 8px 2px 12px;
}
.quick-links-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 100%;
}
.quicklinks a,
.quicklinks .quick-link-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.quicklinks a:hover, .quicklinks a:focus-visible,
.quicklinks .quick-link-btn:hover, .quicklinks .quick-link-btn:focus-visible { background: var(--brand-soft); outline: none; }
.quicklinks a:active,
.quicklinks .quick-link-btn:active { background: var(--brand-soft); }
/* 안내복사 — 누른 직후 1.5초 동안 "복사됨 ✓" 로 바뀌며 색이 채워진다. */
.quicklinks .quick-link-btn { cursor: pointer; }
.quicklinks .quick-link-btn.copied {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.month-center { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ym { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.today-btn {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--brand);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12.5px;
  font-weight: 600;
}
.nav-btn {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  font-size: 20px;
  line-height: 1;
  color: var(--brand);
  display: grid; place-items: center;
}
.nav-btn:active { background: var(--brand-soft); }

.status {
  margin: 0 2px 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: #40525a;
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.status.warn { background: #FDF1EC; color: #8A3B22; }
.status .status-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.status button, .status a {
  border: 1px solid rgba(0, 0, 0, .12);
  background: #fff;
  border-radius: 9px;
  padding: 6px 9px;
  font-size: 12px;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- calendar */
.calwrap {
  background: var(--card);
  border-radius: var(--radius);
  padding: 8px 4px 4px;
  box-shadow: 0 1px 2px rgba(16, 32, 40, .05);
}
.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  padding: 2px 0 6px;
}
.weekdays .sun { color: #C0564B; }
.weekdays .sat { color: #4C7EA8; }

.grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}
.cell {
  position: relative;
  min-height: var(--cell-min-h);
  border-radius: 9px;
  border: none;
  background: transparent;
  padding: 3px 1px 4px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.cell.out { opacity: .38; }
.cell.today { background: var(--brand-soft); }
.cell.selected { outline: 2px solid var(--brand); outline-offset: -2px; }
.cell .dnum {
  font-size: var(--daynum-fs);
  font-weight: 700;
  color: #43525c;
  margin-bottom: 1px;
}
.cell.sun .dnum { color: #C0564B; }
.cell.sat .dnum { color: #4C7EA8; }
.cell.today .dnum {
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  align-self: flex-start;
  min-width: 1.75em;
  height: 1.75em;
  padding: 0 .35em;
  display: inline-grid; place-items: center;
  font-size: .95em;
}
/* 날짜 칸 첫 줄: 날짜 숫자(왼쪽) + 그 날 일정을 지우는 연한 회색 ×(오른쪽 끝).
   × 는 일정이 있는 칸에만 두고, 배경·테두리 없이 글자만 보이게 한다(눌러도 한 번 더 묻는다). */
.cell-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1px;
  width: 100%;
  min-height: 1em;
}
.cell-head .dnum { flex: 0 0 auto; margin-bottom: 0; }
.cell-del {
  flex: 0 0 auto;
  margin: -.15em 0 0 0;
  padding: 0 0 0 .25em;
  font: inherit;
  font-size: calc(var(--daynum-fs) * 1.05);
  line-height: 1.1;
  font-weight: 500;
  color: #c4c9d0;
  background: none;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.cell-del:hover, .cell-del:focus-visible { color: #98a1ab; }
.cell-del:active { color: #7f8791; }
/* 칩은 KBoard 와 같은 '한 줄' 플레인 텍스트: [구분 코드] 16:00~18:00 김ㄷㅈ (이름이 맨 뒤)
   - 배경·테두리·둥근 배지 없이 흰 바탕에 검은 글씨만.
   - 구분 코드(H·W·S·※)만 굵게(800), 시간·이름은 보통 굵기(400).
   - 카테고리와 시간은 줄어들지 않고(flex: 0 0 auto) 늘 다 보인다.
   - 이름만 남는 폭을 차지하고, 좁은 모바일에서는 오른쪽 끝이 칸 경계에서 잘린다.
   - 글자 크기는 --chip-fs 로 화면 폭에 따라 함께 커진다(모바일 ~7.4px → PC 16px). */
.chip {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 3px;
  width: 100%;
  min-width: 0;
  padding: 0;
  font-size: var(--chip-fs);
  line-height: 1.45;
  font-weight: 400;
  color: #222;
  background: none;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  white-space: nowrap;
}
.chip-cat {
  flex: 0 0 auto;
  font-size: 1em;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: inherit;
  color: #111;
}
.chip-time {
  flex: 0 0 auto;
  /* 나츠리만: 달력 시간 글씨가 너무 작다는 요청으로 기존(.8em)보다 크게 — 이름(chip-name) 크기는 그대로.
     2026-11-28: 정각(:00)이면 '11~14'처럼 짧아져 자리가 남으므로 1.04em → 1.18em 으로 더 키웠다. */
  font-size: 1.18em;
  font-weight: 400;
  line-height: inherit;
  color: #222;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.chip-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1em;
  font-weight: 400;
  line-height: inherit;
  letter-spacing: -.02em;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
/* 시간이 없는 일정(메모만)은 이름이 칸 전체를 쓴다 */
.chip .chip-name:only-child { flex: 1 1 auto; }
/* 일정 내용 키워드별 글씨색 — 서버가 일정마다 colorTag(roof·rental·furo)로 알려 준다.
   구분 코드·시간·이름이 각자 색을 갖고 있으므로 칩 안쪽 요소까지 같은 색으로 함께 지정한다.
   지붕 = 파랑, 대여 = 진한 분홍, 후리소데 = 주황. 일반 일정은 지금처럼 검정 그대로. */
.chip.tag-roof,
.chip.tag-roof .chip-cat,
.chip.tag-roof .chip-time,
.chip.tag-roof .chip-name { color: #1d4ed8; }
.chip.tag-rental,
.chip.tag-rental .chip-cat,
.chip.tag-rental .chip-time,
.chip.tag-rental .chip-name { color: #be185d; }
.chip.tag-furo,
.chip.tag-furo .chip-cat,
.chip.tag-furo .chip-time,
.chip.tag-furo .chip-name { color: #ea580c; }
.more {
  font-size: 9.5px;
  color: var(--muted);
  padding-left: 4px;
}

/* ---------------------------------------------------------------- search results */
.resultlist { margin: 10px auto 0; max-width: 720px; display: flex; flex-direction: column; gap: 6px; }
.result-head { font-size: 12px; font-weight: 700; color: var(--muted); padding: 2px 4px 0; }
.result-cat { flex: 0 0 auto; font-size: 13px; font-weight: 800; color: #111; }
.result-group { background: var(--card); border-radius: 12px; padding: 10px 12px; }
.result-group h3 { margin: 0 0 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.result-row {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  border: none; background: transparent;
  padding: 8px 0; text-align: left;
  border-top: 1px solid var(--line);
}
.result-row:first-of-type { border-top: none; }
.result-time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.result-title { font-size: 14.5px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-empty { background: var(--card); border-radius: 12px; padding: 16px; text-align: center; color: var(--muted); font-size: 13.5px; }
.result-empty button { margin-top: 10px; }

/* 범례: 색 배지 없이 구분 코드만 — 달력 칸도 색을 쓰지 않으므로 글자로만 보여 준다. */
.legend {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  padding: 10px 4px 0;
  font-size: 11.5px;
  color: #4a5a63;
}
.legend span { display: inline-flex; align-items: baseline; gap: 4px; }
.legend b { font-weight: 800; color: #111; }
.legend i { display: none; }

/* ---------------------------------------------------------------- fab */
.fab {
  position: fixed;
  right: max(16px, calc(50% - var(--app-max) / 2 + 16px));
  bottom: calc(var(--safe-bottom) + 18px);
  height: 50px;
  padding: 0 20px 0 16px;
  border: none;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(30, 60, 80, .28);
  z-index: 20;
}
.fab:active { transform: translateY(1px); }

/* ---------------------------------------------------------------- sheet */
.backdrop {
  position: fixed; inset: 0;
  background: rgba(14, 24, 30, .42);
  z-index: 30;
  animation: fade .16s ease-out;
}
.sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  max-height: 88vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--card);
  border-radius: var(--sheet-radius) var(--sheet-radius) 0 0;
  padding: 8px 16px calc(var(--safe-bottom) + 18px);
  box-shadow: 0 -8px 30px rgba(10, 25, 35, .22);
  animation: rise .2s cubic-bezier(.2, .8, .3, 1);
  max-width: var(--sheet-max);
  margin: 0 auto;
}
@keyframes rise { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.sheet-handle { width: 40px; height: 4px; border-radius: 999px; background: #DDE4E8; margin: 6px auto 12px; }
.sheet h2 { font-size: 16px; margin: 0 0 2px; letter-spacing: -.02em; }
.sheet .sub { color: var(--muted); font-size: 12.5px; margin: 0 0 14px; }
/* 날짜 시트: 'N건의 일정' 줄 오른클에 펴기 / 접기 */
.sheet .sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 14px;
}
.sheet .sub-row .sub { margin: 0; }
/* 날짜 시트 머리: [✕] 11월 26일 (목) — 왼손도 닫을 수 있게 제목 왼쪽에도 같은 ✕.
   (오른쪽 ✕ 는 지금처럼 시트 오른쪽 끝에 그대로 둔다.) */
.sheet .sheet-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding-right: 40px;            /* 오른쪽 ✕ 자리 */
}
.sheet .sheet-head h2 { margin: 0; }
.sheet .sheet-close.is-left {
  position: static;
  flex: 0 0 auto;
  margin-left: -4px;              /* 오른쪽 ✕(오른쪽 12px)와 좌우 대칭 */
}
.sheet-bulk { display: flex; gap: 6px; flex: 0 0 auto; }
.bulk-btn {
  border: 1px solid var(--line);
  background: #F6F8F9;
  color: var(--brand);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.bulk-btn:active { background: var(--brand-soft); }
.sheet-close {
  position: absolute; top: 10px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: #F1F4F6; color: #64757f; font-size: 16px;
}

.event-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 11px 12px;
  margin-bottom: 8px;
  background: #fff;
}
.event-card .row { display: flex; align-items: baseline; justify-content: flex-start; gap: 8px; }
/* 카드 상단 줄 오른쪽 끝: 접기/펼치기 */
.event-card .card-toggle {
  margin-left: auto;
  align-self: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #F6F8F9;
  color: var(--brand);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.event-card .card-toggle:active { background: var(--brand-soft); }
.event-card.collapsed { padding-bottom: 10px; }
.event-card.collapsed .card-body { display: none; }
.badge {
  font-size: 10.5px; font-weight: 700;
  border-radius: 6px; padding: 2px 6px;
  background: var(--brand-soft); color: var(--brand);
  flex: 0 0 auto;
  white-space: nowrap;
}
.event-card .name { font-size: 15px; font-weight: 700; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-card .time { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; flex: 0 0 auto; white-space: nowrap; }
.event-card .memo { margin-top: 6px; font-size: 12.5px; color: #4a5b64; white-space: pre-wrap; word-break: break-word; line-height: 1.5; }
.event-card .memo .memo-text.empty { color: var(--muted); }
.event-card .memo .memo-meta { margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.event-card .memo.memo-fail { color: var(--muted); }
/* 카드 하단 수정/삭제 — 양손 사용성을 위해 왼쪽·오른쪽 양끝에 한 벌씩 */
.event-card .card-actions { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.event-card .card-actions .action-group { display: flex; gap: 6px; flex: 0 0 auto; }
.event-card.calm { border-style: dashed; color: var(--muted); }

.btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13.5px;
  font-weight: 600;
}
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--danger); border-color: #EBD3CF; background: #FDF3F1; }
.btn-block { width: 100%; padding: 13px; font-size: 15px; border-radius: 12px; }

/* ------------------------------------------- 게시판 하단: 기간별 정리 + 지난예약 */
.purge {
  max-width: 720px;
  margin: 14px auto 88px;
  padding: 14px 12px;
  background: var(--card);
  border-radius: var(--radius);
}
.purge-head h2 { margin: 0; font-size: 15px; font-weight: 700; }
.purge-head p { margin: 4px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.purge-range { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.purge-range input[type="date"] {
  flex: 1 1 0;
  min-width: 0;
  height: 38px;
  padding: 0 8px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #FBFCFD;
  color: var(--text);
  font-size: 13.5px;
  -webkit-appearance: none;
  appearance: none;
}
.purge-range input[type="date"]:focus { outline: none; border-color: var(--brand); background: #fff; }
.purge-range .btn { flex: 0 0 auto; height: 38px; }
.purge-tilde { flex: 0 0 auto; color: var(--muted); font-size: 13px; }
.purge-list { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.purge-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.purge-all { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text); }
.purge-all input, .purge-row input { width: 18px; height: 18px; accent-color: var(--brand); }
.purge-rows { margin-top: 6px; max-height: 320px; overflow-y: auto; }
.purge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.purge-row input { flex: 0 0 auto; }
.purge-row-date { flex: 0 0 auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.purge-row-time { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.purge-row-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.purge-row-cat { flex: 0 0 auto; font-weight: 800; color: #111; }
.purge-empty { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.purge-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.purge-progress { font-size: 12.5px; font-weight: 600; color: var(--brand); }
.purge-past {
  display: block;
  margin-top: 10px;
  background: var(--brand-soft);
  border-color: transparent;
  color: var(--brand);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.purge-past:active { opacity: .86; }
.btn:disabled { opacity: .55; }
.btn-sm { padding: 6px 10px; font-size: 12.5px; }

.field { margin-bottom: 12px; }
.field > label { display: block; font-size: 12.5px; font-weight: 600; color: #56666f; margin-bottom: 5px; }
.field input[type="text"], .field input[type="date"], .field input[type="time"], .field textarea, .field select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 11px;
  border: 1.5px solid var(--line);
  background: #FBFCFD;
  font-size: 15px;
  color: var(--text);
  -webkit-appearance: none;
  appearance: none;
}
.field select { background-image: none; }
.field textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
/* 메모 칸은 10줄 이상 한 번에 보이게 크게 둔다(등록·수정 공통, 폰에서는 화면 폭에 맞춰 조금 줄임). */
#fContent { min-height: 252px; height: 252px; line-height: 1.45; font-size: 15px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.checkline { display: flex; align-items: center; gap: 8px; padding: 9px 2px; font-size: 14px; }
.checkline input { width: 18px; height: 18px; accent-color: var(--brand); }
.swatches { display: flex; gap: 7px; flex-wrap: wrap; }
.swatch {
  width: 26px; height: 26px; border-radius: 8px;
  border: 2px solid transparent;
  padding: 0;
}
.swatch.on { border-color: #26343c; }

/* ------------------------------------------------- 연도·월 선택 */
.ym-picker { display: flex; align-items: center; gap: 2px; }
.ym-select {
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%23808e96' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 2px center;
  background-size: 9px 6px;
  border: 0;
  border-radius: 9px;
  padding: 4px 14px 4px 4px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  max-width: 42vw;
}
.ym-select:active, .ym-select:focus { background-color: var(--brand-soft); outline: none; }
.ym-select option { font-weight: 600; }
.ym-picker .ym-select + .ym-select { margin-left: -2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------- 사진 첨부 */
.attach-drop {
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #FBFCFD;
  transition: border-color .12s, background .12s;
}
.attach-drop.over { border-color: var(--brand); background: var(--brand-soft); }
.attach-hint { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 0 0 8px; }
.attach-hint b { color: #45565f; }
.attach-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.attach-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.attach-empty { font-size: 12px; color: var(--muted); margin: 2px 0 0; }
.attach-item {
  position: relative; margin: 0; width: 72px;
  display: flex; flex-direction: column; gap: 3px;
}
.attach-thumb {
  display: grid; place-items: center;
  width: 72px; height: 72px; border-radius: 10px;
  border: 1px solid var(--line);
  background: #EEF2F4 center/cover no-repeat;
  color: var(--muted); font-size: 20px; overflow: hidden;
}
.attach-item figcaption {
  font-size: 10.5px; color: var(--muted); line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center;
}
.attach-del {
  position: absolute; top: -6px; right: -6px;
  width: 22px; height: 22px; border-radius: 50%;
  border: 0; background: #2A3942; color: #fff;
  font-size: 14px; line-height: 1; padding: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.attach-note { font-size: 11px; color: var(--muted); margin: 8px 0 0; line-height: 1.45; }
/* 일정 상세에 붙은 사진 */
.memo-images { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.memo-image { display: block; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #EEF2F4; }
.memo-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.memo-files { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; font-size: 12px; }
.memo-files a { color: var(--brand); text-decoration: none; }

.sheet-actions { display: flex; gap: 8px; margin-top: 16px; }
.sheet-actions .btn { flex: 1; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--safe-bottom) + 84px);
  transform: translateX(-50%);
  background: #1E2C34;
  color: #fff;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  max-width: 88vw;
  z-index: 60;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
  text-align: center;
  line-height: 1.45;
}
.toast.err { background: #8E2F21; }

.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: spin .7s linear infinite;
  vertical-align: -3px;
  margin-right: 6px;
}
.spinner.dark { border-color: rgba(0,0,0,.15); border-top-color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }

.kv { display: grid; grid-template-columns: 62px 1fr; gap: 6px 10px; font-size: 13.5px; margin-bottom: 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }

.sheet-note { font-size: 12px; color: var(--muted); line-height: 1.55; margin: 10px 0 0; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }

@media (max-width: 560px) {
  /* 상단: 양 끝에 버튼 한 쌍씩, 가운데 연도·월·오늘 — 360~390px 에서도 잘리지 않게 폭을 줄인다. */
  .monthbar { gap: 4px; }
  .nav-pair { gap: 3px; }
  .monthbar .nav-btn { width: 30px; height: 36px; font-size: 17px; border-radius: 10px; }
  .month-center { gap: 6px; }
  .ym-picker { min-width: 0; }
  .ym-select { font-size: 16px; padding: 3px 12px 3px 3px; max-width: 28vw; min-width: 0; }
  .ym, .ym-select { min-width: 0; }
  .today-btn { padding: 4px 8px; font-size: 11.5px; }
}
/* 좁은 화면: 320~380px 에서도 카테고리 글자와 16:00~18:00 이 잘리지 않게 여백을 줄인다. */
@media (max-width: 380px) {
  .app { padding-left: 4px; padding-right: 4px; }
  .calwrap { padding: 6px 2px 3px; }
  .grid { gap: 0; }
  .cell { padding: 3px 0 4px; }
  .chip { gap: 1px; }
  /* 시간 글씨만 30% 크게(.74em→.962em). 칸 폭은 그대로라 이름이 사라지지 않게 시간 자간만 조금 조인다. */
  .chip-time { font-size: .962em; letter-spacing: -.08em; }
  .brand-name { font-size: 15.5px; }
  .monthbar .nav-btn { width: 28px; height: 34px; }
  .ym-select { font-size: 15px; padding-right: 11px; }
  .today-btn { padding: 4px 7px; font-size: 11px; }
}
@media (max-width: 360px) {
  /* 바로가기 줄: 아주 좁은 폰(320~360px)에서도 윗줄이 한 줄에 들어가게 한 번 더 조인다. */
  .quick-links-row { gap: 3px; }
  .quicklinks a, .quicklinks .quick-link-btn { padding: 3px 5px; font-size: 11px; }
}
@media (max-width: 340px) {
  :root { --chip-fs: 7px; }
  .chip { gap: 1px; }
  .chip-time { font-size: .962em; }
  .monthbar .nav-btn { width: 26px; height: 32px; font-size: 15px; }
  .ym-select { font-size: 14px; }
}

/* ---------------------------------------------------- 반응형: 모바일 → 태블릿 → PC
   화면이 넓어질수록 달력 칸·글자 크기가 함께 커져서,
   PC(1280px)에서는 'H 16:00~18:00 김ㄷㅈ' 전체가 한 줄로 크게 보인다. */
@media (min-width: 390px) { :root { --chip-fs: 7.9px; } }

/* 폰(390~479px): 시간을 30% 키운 만큼 칩 사이 여백과 시간 자간만 좀 좁혀,
   '14:00~16:00 오ㅈㅅ' 에서 이름 두 글자가 그대로 보이게 한다(글자 크기는 이름 그대로). */
@media (min-width: 390px) and (max-width: 479px) {
  .chip { gap: 1px; }
  .chip-time { letter-spacing: -.08em; }
}

@media (min-width: 480px) {
  :root { --chip-fs: 9px; --cell-min-h: 88px; --daynum-fs: 12px; }
  .chip { gap: 4px; }
}

@media (min-width: 640px) {
  :root { --chip-fs: 10px; --cell-min-h: 94px; --daynum-fs: 12.5px; }
  .app { padding-left: 14px; padding-right: 14px; }
  .calwrap { padding: 10px 6px 6px; }
  .grid { gap: 2px; }
  .cell { padding: 4px 2px 5px; }
  .weekdays { font-size: 12.5px; }
  .ym, .ym-select { font-size: 21px; }
  .brand-name { font-size: 19px; }
}

@media (min-width: 768px) {
  :root { --chip-fs: 11px; --cell-min-h: 104px; --daynum-fs: 13px; }
  .app { padding-left: 18px; padding-right: 18px; }
  .calwrap { padding: 12px 8px 8px; border-radius: 18px; }
  .cell { padding: 5px 3px 6px; border-radius: 11px; }
  .weekdays { font-size: 13.5px; padding-bottom: 8px; }
  .ym, .ym-select { font-size: 23px; }
  .brand-name { font-size: 21px; }
  .monthbar { padding-bottom: 14px; }
  .more { font-size: 11px; }
  .legend { font-size: 12.5px; }
  .fab { height: 54px; font-size: 16px; }
  .searchbar { max-width: 760px; padding: 10px; }
  .searchbar .q-cat, .searchbar input[type="search"], .searchbar .q-btn, .searchbar .q-clear { height: 44px; }
  .searchbar input[type="search"] { font-size: 16px; }
  .resultlist { max-width: 760px; }
}

@media (min-width: 1024px) {
  /* 2026-11-28 지시 — 일반 모니터에서는 일정 글씨를 16px 로 크게. (768px 단계는 12.5px 그대로) */
  :root { --chip-fs: 16px; --cell-min-h: 108px; --daynum-fs: 14px; --sheet-max: 640px; }
  .app { padding-left: 22px; padding-right: 22px; }
  .calwrap { padding: 14px 10px 10px; }
  .ym, .ym-select { font-size: 26px; }
  .brand-name { font-size: 23px; }
  .icon-btn { width: 44px; height: 44px; }
  .nav-btn { width: 44px; height: 44px; }
  .switch-app-btn { height: 44px; padding: 0 16px; font-size: 13px; }
  .refresh-btn { width: 44px; height: 44px; }
  .sheet h2 { font-size: 18px; }
  .event-card .name { font-size: 16px; }
  .event-card .time { font-size: 13.5px; }
}

@media (min-width: 1200px) {
  /* 더 넓은 모니터에서도 16px 유지 — 좁아지는 일이 없게(2026-11-28 지시). */
  :root { --chip-fs: 16px; --cell-min-h: 116px; --daynum-fs: 15px; }
  .ym, .ym-select { font-size: 28px; }
  .brand-name { font-size: 24px; }
  .weekdays { font-size: 14.5px; }
  .chip { gap: 5px; line-height: 1.5; }
}

@media (prefers-color-scheme: dark) {
  /* 다크 모드에서도 흰 카드가 읽기 쉽도록 최소 대응만 */
  body { background: var(--bg); }
}

@media (max-width: 479px) {
  /* 메모 칸: 폰에서도 10줄 이상 보이게 */
  #fContent { min-height: 232px; height: 232px; }
  /* 바로가기 두 줄: 360px 폰에서도 윗줄이 한 줄에 들어가도록 여백·글자를 조금 줄인다. */
  .quicklinks { gap: 5px; }
  .quick-links-row { gap: 4px; }
  .quicklinks a, .quicklinks .quick-link-btn { padding: 4px 7px; font-size: 11.5px; }
}

/* --------------------------- 모바일: 꾹 눌러 누른 자리 확대(2배 미리보기)
   달력 칸을 250ms 이상 꾹 누르면 JS 가 .calwrap 에 transform-origin(누른 지점)과
   scale(2) 를 걸어 달력 자체를 확대한다. 손을 떼면 바로 원래 크기로 돌아온다.
   PC(> 900px)·마우스에서는 JS 가 이 클래스를 붙이지 않는다. */
.calwrap {
  transform-origin: 50% 50%;
  transition: transform .16s ease-out;
}
.calwrap.zoomed {
  transform: scale(2);
  position: relative;
  z-index: 25;
  will-change: transform;
}
/* 안드로이드 크롬이 가로 스와이프를 '페이지 넘김/스크롤'로 가로채 touchcancel 을 보내던 문제 —
   달력 위에서는 세로 스크롤만 브라우저에 맡기고 가로 손짓은 앱(스와이프)이 그대로 받는다.
   세 화면(관리자 `/` · 지난예약 `/archive/` · 손님용 `/public`) 모두 이 규칙을 쓴다 — 2026-11-28 지시. */
.calwrap, .calwrap .grid { touch-action: pan-y; }
/* 확대 중에는 뒷배경이 흔들리지 않게 페이지 스크롤을 잠근다. */
body.zoomed-body { overflow: hidden; touch-action: none; }
/* 꾹 누를 때 뜨는 텍스트 선택·콜아웃(복사/저장) 메뉴를 막는다. */
.calwrap, .cell {
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* --------------------------- 모바일: 달을 넘길 때 좌우 슬라이드 전환
   shiftMonth() 가 넘기는 방향에 맞춰 .calwrap 에 방향 클래스를 붙인다(폰 폭 900px 이하에서만).
   slide-out-* : 지금 달력이 넘기는 쪽으로 짧게(0.14s) 밀려 나간다.
   slide-in-*  : 새 달을 다 그린 뒤 새 달력이 반대쪽에서 들어온다(0.20s).
   month-wait  : 새 달이 늦게 올 때 밀려 나간 자리 대신 제자리에서 살짝 흐려진다(옛 달로 튀는 스냅백 없음).
   dragging    : 손가락으로 미는 동안 달력이 살짝 따라온다(전환은 끈다).
   PC(> 900px)에는 이 규칙이 아예 적용되지 않아 지금처럼 즉시 바뀐다. */
@media (max-width: 900px) {
  /* 밀려 나고 들어오는 동안 옆으로 넘친 부분이 페이지를 가로로 늘리지 않게 자른다. */
  .app { overflow-x: hidden; overflow-x: clip; }
  .calwrap.dragging {
    transition: none;
    will-change: transform;
  }
  .calwrap.slide-out-next {
    transform: translate3d(-26%, 0, 0) scale(.99);
    opacity: .4;
    transition: transform .14s ease-in, opacity .14s ease-in;
    will-change: transform;
  }
  .calwrap.slide-out-prev {
    transform: translate3d(26%, 0, 0) scale(.99);
    opacity: .4;
    transition: transform .14s ease-in, opacity .14s ease-in;
    will-change: transform;
  }
  .calwrap.month-wait { opacity: .55; transition: opacity .12s ease-out; }
  .calwrap.slide-in-next { animation: monthSlideInNext .2s ease-out both; will-change: transform; }
  .calwrap.slide-in-prev { animation: monthSlideInPrev .2s ease-out both; will-change: transform; }
}
/* 다음 달(왼쪽으로 넘김): 새 달력이 오른쪽에서 들어온다. */
@keyframes monthSlideInNext {
  from { transform: translate3d(26%, 0, 0); opacity: .4; }
  to { transform: translate3d(0, 0, 0); opacity: 1; }
}
/* 이전 달(오른쪽으로 넘김): 새 달력이 왼쪽에서 들어온다. */
@keyframes monthSlideInPrev {
  from { transform: translate3d(-26%, 0, 0); opacity: .4; }
  to { transform: translate3d(0, 0, 0); opacity: 1; }
}

/* 바로가기 윗줄 6개(플레이스·톡톡·네이버·아워·전체스클·스클)가 좁은 폰에서도 한 줄에 남도록
   320~360px 에서 한 번 더 조인다. 앞쪽 @media (max-width: 479px) 규칙보다 뒤에 두어야 적용된다. */
@media (max-width: 360px) {
  .quick-links-row { gap: 3px; }
  .quicklinks a, .quicklinks .quick-link-btn { padding: 3px 5px; font-size: 11px; }
}
@media (max-width: 340px) {
  /* 320px 폰: 세로 스크롤바가 폭을 조금 먹어도 윗줄 6개가 한 줄에 남는다. */
  .quick-links-row { gap: 2px; }
  .quicklinks a, .quicklinks .quick-link-btn { padding: 2px 4px; font-size: 10.5px; }
}

/* ── 지난예약 보관함 (앱 안 시트 · /archive/ 독립 화면) ───────────────── */
.arc-tools { display: flex; gap: 8px; margin: 0 0 10px; }
.arc-tools input[type="search"] {
  flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line, #EADCE1); background: #fff; font-size: 14px; color: var(--text, #241D1F);
}
.arc-tools input[type="search"]:focus { outline: none; border-color: var(--brand); background: #fff; }
.arc-tools .btn { flex: 0 0 auto; }
.arc-row {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 10px 12px; margin-bottom: 6px; border-radius: 11px; background: #fff;
  border: 1px solid #F1E4E8; font-size: 14px; cursor: pointer; color: var(--text, #241D1F);
}
.arc-row:active { background: var(--brand-soft, #FBEFF2); }
.arc-row .arc-date { flex: 0 0 auto; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.arc-row .arc-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.arc-row .arc-time { flex: 0 0 auto; color: #4A3F42; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.arc-actions { display: flex; gap: 8px; margin-top: 16px; }
.arc-actions .btn { flex: 1 1 0; }
@media (max-width: 400px) {
  .arc-row { gap: 7px; padding: 9px 10px; font-size: 13.5px; }
  .arc-row .arc-time { font-size: 12px; }
}
