:root {
  --body-font: "Pretendard", sans-serif;
  --display: "Pretendard", sans-serif;
  --display-weight: 700; /* 손글씨 글꼴을 고르면 400 (굵은 꼴이 없다) */
  font-family: var(--body-font);
  font-size-adjust: var(--font-adjust, none);
  line-height: var(--lh); /* 어떤 글꼴을 골라도 같은 줄 간격 */
  color: var(--ink);
}
/* 색·크기 값은 ds/tokens.css (design/tokens.json에서 생성). 여기서는 단계 이름(--fs-*, --sp-*, --r-*)만 쓴다 */
/* 아이콘: Iconify lucide 선 아이콘(ds/icons.mjs). 글자 크기를 따른다 */
.i { width: 1em; height: 1em; flex: none; vertical-align: -.14em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; scrollbar-width: none; }
*::-webkit-scrollbar { display: none; }
/* 앱처럼: 페이지 자체는 움직이지 않고(튕김 없음) 가운데 #view만 필요할 때 스크롤된다 */
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body {
  margin: 0;
  touch-action: manipulation;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  background:
    radial-gradient(circle at 12% 8%, var(--soft) 0 140px, transparent 260px),
    radial-gradient(circle at 92% 30%, var(--soft2) 0 110px, transparent 230px),
    radial-gradient(circle at 20% 85%, var(--soft2) 0 90px, transparent 220px),
    var(--bg);
  background-attachment: fixed;
}
button, input, select { font: inherit; color: inherit; }
input, textarea, [contenteditable] { -webkit-user-select: text; user-select: text; }
button { cursor: pointer; }
h1, h2, h3, .display { font-family: var(--display); font-weight: var(--display-weight); }

.app { max-width: 480px; height: 100%; margin: 0 auto; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top); }
.top { flex: none; padding: 10px 20px 6px; }
.top h1 { margin: 0; font-size: var(--fs-2xl); letter-spacing: -.3px; }
/* 오프라인 띠와 같은 상단 안내 모양 */
.notice-band { flex: none; display: flex; align-items: center; gap: var(--sp-2); margin: 0 16px 6px; padding: 6px 8px 6px 14px; border-radius: var(--r-lg); background: color-mix(in srgb, var(--ink) 85%, transparent); color: #fff; font-size: var(--fs-md); }
.notice-band[hidden] { display: none; }
.notice-band span { flex: 1; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.notice-band button { flex: none; width: 44px; height: 44px; border: 0; border-radius: var(--r-full); background: none; color: inherit; font-size: var(--fs-xl); }
/* 내용은 탭바 위에서 끝난다: 내용이 짧으면 스크롤 자체가 생기지 않는다. 내용 영역은 각 OS처럼 끝에서 튕긴다(contain: 바깥으로 번지지 않게만) */
#view { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; padding: 2px 16px 0; margin-bottom: calc(80px + env(safe-area-inset-bottom)); }
#view > :last-child { margin-bottom: 0; }
.top h1 span { color: var(--accent); }
.loading { text-align: center; color: var(--muted); padding: 80px 0; }

.card { background: var(--card); border-radius: var(--radius); padding: 24px; margin-bottom: 8px; box-shadow: var(--shadow-card); backdrop-filter: blur(6px); }
.card h2 { margin: 0 0 10px; font-size: var(--fs-lg); }
.card h2 small { font-family: var(--body-font); font-size: var(--fs-md); color: var(--muted); margin-left: 6px; }
.muted { color: var(--muted); font-size: var(--fs-base); }
.empty { color: var(--muted); font-size: var(--fs-base); text-align: center; padding: 10px 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-1);
  border: 0; border-radius: var(--r-full); padding: 12px 20px;
  background: var(--accent-ink); color: #fff; font-family: var(--display); font-weight: var(--display-weight); font-size: var(--fs-lg);
  box-shadow: 0 6px 16px var(--shadow);
  transition: transform .15s ease;
  text-decoration: none;
}
.btn:active, .bounce:active { transform: scale(.95); }
.btn.soft { background: var(--soft); color: var(--accent-ink); box-shadow: none; }
.btn.small { padding: 7px 14px; font-size: var(--fs-base); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; }
.link { border: 0; background: none; color: var(--muted); font-size: var(--fs-md); text-decoration: underline; padding: 4px; }

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: var(--fs-md); color: var(--muted); margin: 0 0 6px 6px; }
.field input, .field select, .input {
  width: 100%; padding: 12px 16px; border: 2px solid transparent; border-radius: var(--r-md);
  background: var(--bg); outline: none; transition: border-color .15s;
}
.field input:focus, .field select:focus, .input:focus { border-color: var(--accent); }
.field > .picker-input, .picker-input {
  position: relative; display: flex; align-items: center; gap: var(--sp-2);
  min-width: 0; margin: 0; font: inherit; color: inherit;
}
.picker-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-value.muted { font-size: inherit; }
.picker-input > .i { flex: none; color: var(--muted); font-size: var(--fs-base); }
.picker-input:focus-within { border-color: var(--accent); }
.field .picker-input input, .picker-input input {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer;
}
.picker-clear { position: relative; z-index: 1; flex: none; border: 0; background: none; padding: 0; color: var(--muted); line-height: 1; }
.picker-clear[hidden] { display: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.grid2:has(> .field input[type="date"]) { grid-template-columns: 1fr; }
.row { display: flex; gap: var(--sp-2); align-items: center; }
.row > .input { flex: 1; min-width: 0; }

/* 처음 화면 */
.welcome { text-align: center; padding: 28px 20px; }
.welcome .logo { display: block; margin: 0 auto var(--sp-3); border-radius: 18px; box-shadow: var(--shadow-raised); }
.welcome h2 { font-size: var(--fs-2xl); margin: 8px 0 6px; }
.segment { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-1); background: var(--bg); padding: 5px; border-radius: var(--r-full); margin-bottom: var(--sp-4); }
.segment button { border: 0; background: none; border-radius: var(--r-full); padding: 9px; font-family: var(--display); font-weight: var(--display-weight); color: var(--muted); }
.segment button[aria-pressed="true"] { background: #fff; color: var(--accent-ink); box-shadow: var(--shadow-raised); }

/* 홈 */
.hero { padding: 24px; background: linear-gradient(160deg, var(--soft), var(--soft2)); }
/* 홈 첫 카드: 왼쪽 두 사람, 오른쪽 D-day 한 줄 + 오늘 둘의 근무 */
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: var(--display-weight); font-size: var(--fs-xl); background: #fff; color: var(--accent-ink); box-shadow: var(--shadow-raised); }
.avatar.b { color: var(--ink); }
/* D-day 카드와 캐릭터 무대: 흰 바탕, 장식 없이 */
.dday-card { text-align: center; background: #fff; }
.dday-card .dday { font-family: var(--display); font-weight: var(--display-weight); font-size: var(--fs-display); line-height: 1.1; color: var(--accent-ink); }
.dday-card .next { margin-top: 4px; font-size: var(--fs-md); color: var(--muted); }
.stage { background: #fff; }
.stage .actors { display: flex; justify-content: center; align-items: flex-start; }
.stage .actor { flex: 0 1 46%; display: grid; justify-items: center; gap: var(--sp-1); min-width: 0; }
.stage .figure { border: 0; background: none; padding: 0; cursor: pointer; transform-origin: 50% 100%; -webkit-tap-highlight-color: transparent; }
.stage .figure.hop { animation: hop .45s ease-out; }
.stage .figure:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@keyframes hop { 0% { transform: translateY(0) scale(1, 1); } 25% { transform: translateY(0) scale(1.06, .92); } 55% { transform: translateY(-14px) scale(.97, 1.04); } 100% { transform: translateY(0) scale(1, 1); } }
.poke-hint { margin: 10px 0 0; text-align: center; font-size: var(--fs-sm); color: var(--muted); }
.stage .actor img { height: 188px; max-width: 100%; width: auto; object-fit: contain; object-position: bottom; display: block; }
.stage .actor .avatar { width: 72px; height: 72px; font-size: var(--fs-3xl); margin: 60px 0 10px; box-shadow: none; background: var(--bg); }
.stage .actor .actor-name { font-size: var(--fs-sm); color: var(--muted); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 말풍선: 오늘 근무, 꼬리는 캐릭터 머리 쪽 */
.stage .bubble { position: relative; display: flex; align-items: center; gap: var(--sp-1); background: var(--bg); border-radius: var(--r-md); padding: 6px 12px; margin-bottom: 8px; max-width: 100%; }
.stage .bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--bg); border-bottom: 0; }
.stage .bubble .chip { font-size: var(--fs-xl); line-height: 1.3; padding: 3px 16px; }
.stage .bubble .kind-info { font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; }
.stage .heart { align-self: center; margin: 0 -8px; font-size: var(--fs-lg); color: var(--accent); }
.poked { display: inline-flex; align-items: center; gap: var(--sp-1); max-width: 100%; font-size: var(--fs-sm); color: var(--accent-ink); background: var(--soft); border-radius: var(--r-full); padding: 2px 10px; }
.poked > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 상호작용 버튼 */
.interact { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); margin-top: var(--sp-4); }
.interact button { border: 0; border-radius: var(--r-full); background: var(--bg); padding: 10px 4px; font-size: var(--fs-md); color: var(--ink); display: flex; align-items: center; justify-content: center; gap: var(--sp-1); white-space: nowrap; }
.people-card { background: #fff; }
.people-card .people { margin-top: 0; }
.char-person { background: var(--bg); border-radius: var(--r-lg); padding: 12px; margin-bottom: 10px; }
.char-head { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: 10px; }
.char-head .char-now { width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px var(--shadow); }
.char-head b { font-family: var(--display); font-weight: var(--display-weight); font-size: var(--fs-base); max-width: 30%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.char-head small { color: var(--muted); font-size: var(--fs-sm); }
.segment.mini { margin: 0 0 0 auto; padding: 3px; gap: 2px; background: #fff; }
.segment.mini button { padding: 5px 12px; font-size: var(--fs-md); }
.segment.mini button[aria-pressed="true"] { background: var(--soft); box-shadow: none; }
.chars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-1); }
.chars button { display: grid; justify-items: center; gap: 2px; padding: 8px 2px 6px; border: 2px solid transparent; border-radius: var(--r-md); background: #fff; font-size: var(--fs-sm); color: var(--muted); transition: transform .15s; }
.chars button:active { transform: scale(.95); }
.chars button img { width: 52px; height: 52px; }
.chars.special { margin-top: 6px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chars button[aria-pressed="true"] { border-color: var(--accent-ink); background: var(--soft); color: var(--accent-ink); }
.char-person .note { margin: 0; }
.field > span small { color: var(--muted); font-size: var(--fs-xs); margin-left: 4px; }
.seg-radio { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-1); background: var(--bg); padding: 4px; border-radius: var(--r-full); }
.seg-radio label { position: relative; }
.seg-radio input { position: absolute; inset: 0; opacity: 0; margin: 0; }
.seg-radio span { display: block; text-align: center; padding: 9px 0; border-radius: var(--r-full); color: var(--muted); }
.seg-radio input:checked + span { background: #fff; color: var(--accent-ink); font-weight: 700; box-shadow: var(--shadow-raised); }
.seg-radio input:focus-visible + span { outline: 2px solid var(--accent); }
.heart { color: var(--accent); font-size: var(--fs-lg); animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } }
.hero .names { font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero .dday { font-family: var(--display); font-weight: var(--display-weight); font-size: var(--fs-3xl); line-height: 1.1; color: var(--accent-ink); }
.hero .next { display: inline-block; white-space: nowrap; background: rgba(255, 255, 255, .7); border-radius: var(--r-full); padding: 3px 10px; font-size: var(--fs-sm); }
.hero .people { margin-top: 12px; }
.hero .person { background: rgba(255, 255, 255, .7); padding: 8px 10px; display: flex; align-items: center; justify-content: center; gap: var(--sp-2); }
.hero.people-card .person { flex-direction: column; min-width: 0; }
.hero .person .name { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.people-card .person .name { max-width: 100%; }
.hero .person .chip { font-size: var(--fs-base); padding: 3px 12px; flex: none; }
.hero .person .kind-info { display: none; }

.invite { background: var(--accent-ink); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.invite small { opacity: .85; font-size: var(--fs-sm); }
.invite .code { font-family: var(--display); font-weight: var(--display-weight); font-size: var(--fs-2xl); letter-spacing: 3px; }
.invite .btn { background: #fff; color: var(--accent-ink); }

.people { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.person { background: var(--bg); border-radius: var(--r-lg); padding: 12px 10px; text-align: center; }
.person .name { font-size: var(--fs-md); color: var(--muted); margin-bottom: 6px; }
.person .chip { font-size: var(--fs-lg); padding: 5px 14px; }

.pills { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.pills.one-line { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--sp-5)); padding: 0 var(--sp-5); }
.pills.one-line .pill { flex: none; }
.pill { border: 0; border-radius: var(--r-full); padding: 9px 14px; background: var(--soft); color: var(--accent-ink); font-size: var(--fs-base); }
.pill b { font-family: var(--display); font-weight: var(--display-weight); margin-left: 4px; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); padding: 11px 4px; border-top: 1.5px dashed var(--line); }
.list li:first-child { border-top: 0; }
.list .when { font-family: var(--display); font-weight: var(--display-weight); color: var(--accent-ink); white-space: nowrap; }
.who.ext { background: #e3ebf8; color: #4a6390; }
.who { display: inline-block; font-size: var(--fs-xs); border-radius: var(--r-full); padding: 2px 8px; background: var(--soft2); margin-right: 6px; vertical-align: 1px; }

.strip { display: flex; gap: var(--sp-2); overflow-x: auto; margin: 0 calc(-1 * var(--sp-5)); padding: 0 var(--sp-5); }
.strip button { flex: none; width: 92px; }
.strip button, .photos a { position: relative; display: block; aspect-ratio: 1; border: 0; padding: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--soft) center / cover; }
.strip span { position: absolute; left: 8px; bottom: 6px; font-size: var(--fs-xs); color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .4); }

/* 근무 칩 */
.chip { display: inline-block; border-radius: var(--r-full); padding: 2px 9px; font-family: var(--display); font-weight: var(--display-weight); font-size: var(--fs-md); line-height: 1.4; white-space: nowrap; }
:root { --me: var(--accent); }
.k0 { background: var(--k0b); color: var(--k0f); } .k1 { background: var(--k1b); color: var(--k1f); }
.k2 { background: var(--k2b); color: var(--k2f); } .k3 { background: var(--k3b); color: var(--k3f); }
.k4 { background: var(--k4b); color: var(--k4f); } .k5 { background: var(--k5b); color: var(--k5f); }
.k6 { background: var(--k6b); color: var(--k6f); } .k7 { background: var(--k7b); color: var(--k7f); }
.chip.none { background: transparent; color: var(--muted); border: 1.5px dashed var(--muted); }

/* 달력 */
.month { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.month h2 { margin: 0; font-size: var(--fs-xl); }
.round { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg); font-size: var(--fs-xl); color: var(--accent-ink); display: inline-grid; place-items: center; }
.painter { background: var(--bg); border-radius: var(--r-lg); padding: 10px; margin-bottom: 12px; }
.painter .row { flex-wrap: wrap; gap: var(--sp-1); }
.painter .row + .row { margin-top: 8px; }
.palette { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.palette button { border: 2.5px solid transparent; border-radius: var(--r-full); padding: 1px; background: none; }
.palette button[aria-pressed="true"] { border-color: var(--accent-ink); }
.palette .chip { font-size: var(--fs-base); padding: 4px 11px; }
.toggle { border: 0; border-radius: var(--r-full); padding: 7px 14px; background: var(--soft); color: var(--accent-ink); font-family: var(--display); font-weight: var(--display-weight); font-size: var(--fs-base); }
.toggle[aria-pressed="true"] { background: var(--accent-ink); color: #fff; }

.weekdays, .grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.weekdays span { text-align: center; font-size: var(--fs-sm); color: var(--muted); padding-bottom: 6px; }
.weekdays span:first-child { color: var(--accent); }
.grid { gap: var(--sp-1); }
.cell {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-height: 66px; padding: 5px 1px 4px; border: 0; border-radius: var(--r-md);
  background: var(--bg) center / cover; font-size: var(--fs-sm); overflow: hidden;
  transition: transform .12s ease;
}
.cell:active { transform: scale(.93); }
.cell.other { opacity: .38; }
.cell .num { font-family: var(--display); font-weight: var(--display-weight); font-size: var(--fs-base); line-height: 1.3; padding: 0 6px; border-radius: var(--r-full); }
.cell.sun .num { color: var(--accent-ink); }
.cell.today { box-shadow: inset 0 0 0 2.5px var(--accent); }
.cell.photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(255, 255, 255, .55), rgba(255, 255, 255, .1)); }
.cell > * { position: relative; }
.cell.photo .num { background: rgba(255, 255, 255, .85); }
/* 일정 달력 칸: 맨 위 숫자 줄 + 모양별 근무 표시 */
.cell.sched { display: grid; grid-template-rows: 18px 1fr 1fr; gap: var(--sp-1); align-items: stretch; min-height: 76px; padding: 4px 3px; }
.cell.sched .ctop { position: relative; display: flex; justify-content: center; align-items: center; }
.cell.sched .num { font-size: var(--fs-sm); padding: 0 4px; }
.cell.sched .dots { position: absolute; left: 2px; top: 6px; margin: 0; }
.cell.sched .lb { font-family: var(--display); font-weight: var(--display-weight); font-size: var(--fs-sm); line-height: 1; }
.cell.sched .pair { display: flex; justify-content: space-evenly; align-items: center; }
/* 칸 채우기 */
.cell.st-split .ctop { justify-content: flex-end; padding: 0 2px; }
.cell.st-split .half { display: flex; min-width: 0; border-radius: var(--r-sm); background: rgba(255, 255, 255, .55); }
.cell.st-split .half + .half { background: rgba(54, 59, 71, .04); }
.cell.st-split .half .chip { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--r-sm); padding: 0 2px; font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; }
/* 두 줄형 */
.cell.st-lines .ln { display: flex; align-items: center; gap: var(--sp-1); min-width: 0; padding-left: 3px; }
.cell.st-lines .ln i { flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--me); }
.cell.st-lines .ln.you i { background: var(--you); }
.cell.st-lines .chip { min-width: 0; font-size: var(--fs-2xs); padding: 0 4px; overflow: hidden; text-overflow: ellipsis; }
/* 좌우형 */
.cell.st-side { grid-template-rows: 18px 1fr; }
.cell.st-side .chip { min-width: 18px; padding: 2px 3px; border-radius: var(--r-sm); font-size: var(--fs-2xs); text-align: center; }
.cell.st-side .chip.ghost { background: rgba(54, 59, 71, .05); height: 18px; }
/* 미니바형 */
.cell.st-bars .bar { display: flex; align-items: center; min-width: 0; border-radius: var(--r-sm); font-family: var(--display); font-weight: var(--display-weight); font-size: var(--fs-2xs); overflow: hidden; }
.cell.st-bars .bar.empty { background: rgba(54, 59, 71, .05); }
.cell.st-bars .bar b { flex: none; font-weight: 400; padding: 0 3px; height: 100%; display: flex; align-items: center; background: rgba(255, 255, 255, .55); color: var(--muted); }
.cell.st-bars .bar.me b { color: var(--accent-ink); }
.cell.st-bars .bar span { flex: 1; min-width: 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 위아래 배경 */
.cell.st-bgv { background-image: linear-gradient(var(--t) 0 52%, var(--u) 52% 100%); justify-items: center; }
.cell.st-bgv .lb { align-self: center; }
/* 좌우 배경 */
.cell.st-bgh { grid-template-rows: 18px 1fr; background-image: linear-gradient(90deg, var(--t) 0 50%, var(--u) 50% 100%); }
/* 양옆 라인 */
.cell.st-edge { grid-template-rows: 18px 1fr; }
.cell.st-edge::before, .cell.st-edge::after { content: ""; position: absolute; top: 7px; bottom: 7px; width: 4px; border-radius: 4px; opacity: .5; }
.cell.st-edge::before { left: 2px; background: var(--t); }
.cell.st-edge::after { right: 2px; background: var(--u); }
.cell.sched .plan-heart { color: var(--accent); font-size: var(--fs-xs); line-height: 1; margin-right: -2px; }
.plan-toggle { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-1) 6px; width: 100%; margin-top: 12px; padding: 12px 16px; border: 2px dashed var(--accent); border-radius: var(--r-md); background: none; color: var(--accent-ink); font-family: var(--display); font-weight: var(--display-weight); font-size: var(--fs-base); text-align: left; }
.plan-toggle b { font-weight: 400; font-size: var(--fs-xl); color: var(--accent); }
.plan-toggle small { width: 100%; font-family: var(--body-font); font-size: var(--fs-sm); color: var(--muted); }
.plan-toggle[aria-pressed="true"] { border-style: solid; background: var(--soft); }
.cell.sched .tight { font-size: var(--fs-2xs); letter-spacing: -.5px; }
.lg { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin: 0 3px 0 6px; vertical-align: 1px; background: var(--me); }
.lg.you { background: var(--you); }
/* 칸 모양 고르기 */
.styles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); }
.style-opt { display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); border: 0; background: none; padding: 6px 2px; border-radius: var(--r-md); }
.style-opt .cell { width: 100%; pointer-events: none; }
.style-opt[aria-pressed="true"] { background: var(--soft); }
.style-opt[aria-pressed="true"] .cell { box-shadow: inset 0 0 0 2px var(--accent-ink); }
.style-name { font-size: var(--fs-sm); color: var(--muted); }
.style-opt[aria-pressed="true"] .style-name { color: var(--accent-ink); font-family: var(--display); font-weight: var(--display-weight); }
.legend-me, .legend-you { font-weight: 400; color: var(--ink); }
.cell.selected { background-color: var(--soft); background-image: none; }
.cell.selected .num { background: var(--soft); color: var(--accent-ink); }
.cell.sched .together-marker { position: absolute; right: 0; top: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--k3f); }
.cell.sched:has(.off-count) { padding-bottom: 20px; min-height: 92px; }
.off-count { position: absolute; bottom: 3px; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 2px; font-size: 10px; line-height: 14px; color: var(--muted); }
.plan-details { margin-top: 10px; }
.plan-details .row > .field { flex: 1; min-width: 0; }
.promise-badge { color: var(--accent-ink); background: var(--soft); padding: 2px 5px; border-radius: var(--r-sm); white-space: nowrap; }
.available-days li { display: block; padding: 14px 0; }
.available-days .plan-toggle { margin-top: 8px; padding: 8px; font-size: var(--fs-sm); }
.sheet:has(.day-panel) .day-panel { box-shadow: none; padding: 0; margin: 0 0 12px; }
.cell .dots { display: flex; gap: var(--sp-1); margin-top: auto; }
.cell .dot { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.cell .dot.ext { background: var(--ext); }
.legend { display: flex; flex-wrap: wrap; gap: var(--sp-1) 14px; margin-top: 12px; font-size: var(--fs-sm); color: var(--muted); }

/* 시트 */
.sheet {
  width: 100%; max-width: 480px; max-height: 88dvh; margin: auto auto 0;
  border: 0; border-radius: var(--r-xl) 32px 0 0; padding: 12px 20px calc(20px + env(safe-area-inset-bottom));
  background: #fff; color: var(--ink);
}
.sheet[open] { animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet::backdrop { background: rgba(54, 59, 71, .28); }
.sheet .handle { width: 44px; height: 5px; border-radius: var(--r-full); background: var(--line); margin: 0 auto 14px; }
.sheet h3 { margin: 0 0 14px; font-size: var(--fs-2xl); }
.sheet h3 em { font-style: normal; font-size: var(--fs-base); color: var(--accent-ink); background: var(--soft); border-radius: var(--r-full); padding: 3px 10px; margin-left: 6px; vertical-align: 3px; }
.sheet section { margin-bottom: 20px; }
.sheet .label { font-family: var(--display); font-weight: var(--display-weight); margin-bottom: 8px; }
.shift-row { display: grid; grid-template-columns: 64px 1fr; gap: var(--sp-2); align-items: start; margin-bottom: 10px; }
.shift-row .name { padding-top: 6px; }
.shift-row .name { font-size: var(--fs-base); }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); margin-bottom: 10px; }
.photos .x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ink); font-size: var(--fs-base); line-height: 1; }
.upload { position: relative; overflow: hidden; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.record-new > .btn { flex: 1; min-width: 0; padding-left: var(--sp-2); padding-right: var(--sp-2); }
.bulk-group { margin: 0; padding: var(--sp-3) 0; border-top: 1px solid var(--line); }
.bulk-group:first-child { border-top: 0; }
.bulk-head { display: flex; gap: var(--sp-2); align-items: flex-start; cursor: pointer; }
.bulk-head input { margin-top: 3px; accent-color: var(--accent); }
.bulk-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-1); margin: var(--sp-2) 0; }
.bulk-photos span { aspect-ratio: 1; border-radius: var(--r-sm); background: var(--soft) center / cover; display: grid; place-items: center; color: var(--accent-ink); font-size: var(--fs-sm); font-weight: 700; }
.bulk-group:has(.bulk-head input:not(:checked)) > :not(.bulk-head) { opacity: .4; pointer-events: none; }
.bulk .btn.block { margin-top: var(--sp-3); }
.bulk-into { margin-bottom: var(--sp-2); }
.bulk-group:has(.bulk-into option:checked:not([value=""])) .bulk-target { display: none; }
.merge { margin: var(--sp-4) 0 var(--sp-3); }
.merge .row { gap: var(--sp-2); }
.merge .row .input { flex: 1; min-width: 0; }

/* 설정 */
.themes { display: flex; gap: var(--sp-3); }
.themes button { width: 48px; height: 48px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .08); }
.themes button[aria-pressed="true"] { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.themes [data-theme-pick="cloud"] { background: linear-gradient(135deg, #e3ecfb, #5b8def); }
.themes [data-theme-pick="peach"] { background: linear-gradient(135deg, #ffd2c9, #f0838a); }
.themes [data-theme-pick="mint"] { background: linear-gradient(135deg, #c9f0dd, #48b892); }
.themes [data-theme-pick="lavender"] { background: linear-gradient(135deg, #e3dcff, #9481e8); }
.themes [data-theme-pick="sky"] { background: linear-gradient(135deg, #d3e6ff, #5b9ee8); }
.code-box { font-family: var(--display); font-weight: var(--display-weight); font-size: var(--fs-3xl); letter-spacing: 4px; text-align: center; background: var(--bg); border-radius: var(--r-lg); padding: 12px; margin: 8px 0 10px; }
.actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* 탭 */
.tabs {
  position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: calc(100% - 32px); max-width: 448px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 255, 255, .94); border-radius: var(--r-xl); padding: 6px;
  box-shadow: 0 12px 30px var(--shadow);
}
.tabs[hidden] { display: none; }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 0; border-radius: var(--r-lg); font-size: var(--fs-sm); color: var(--muted); text-decoration: none; transition: background .15s; }
.tabs a .i { width: 22px; height: 22px; margin-bottom: 1px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs a[aria-current="page"] { background: var(--soft); color: var(--accent-ink); font-family: var(--display); font-weight: var(--display-weight); }

.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; border-radius: var(--r-full); padding: 10px 18px; font-size: var(--fs-base);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); z-index: 10;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 버킷리스트 */
.masonry { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); align-items: start; }
.col { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; }
.bucket { border-radius: var(--r-lg); padding: 14px 14px 10px; box-shadow: 0 8px 22px var(--shadow); }
.tint-0 { background: #ffe4de; } .tint-1 { background: #fff0c4; } .tint-2 { background: #d9f2e1; }
.tint-3 { background: #dbeaff; } .tint-4 { background: #e8e2ff; } .tint-5 { background: #ffdcec; }
.bucket header { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-1); margin-bottom: 8px; }
.bucket h3 { margin: 0; font-size: var(--fs-xl); word-break: keep-all; overflow-wrap: anywhere; }
.bucket .edit { flex: none; border: 0; border-radius: var(--r-full); min-width: 30px; height: 30px; padding: 0 8px; background: rgba(255, 255, 255, .7); color: var(--ink); font-size: var(--fs-md); }
.bucket-name { width: 100%; min-width: 0; border: 0; border-radius: var(--r-sm); padding: 6px 10px; font-family: var(--display); font-weight: var(--display-weight); font-size: var(--fs-lg); background: rgba(255, 255, 255, .85); }
.progress { height: 6px; border-radius: var(--r-full); background: rgba(255, 255, 255, .7); overflow: hidden; margin-bottom: 2px; }
.progress i { display: block; height: 100%; border-radius: var(--r-full); background: var(--accent-ink); transition: width .3s ease; }
.todos { list-style: none; margin: 6px 0 0; padding: 0; }
.todos li { display: flex; align-items: flex-start; gap: var(--sp-1); padding: 5px 0; }
.todos label { flex: 1; display: flex; align-items: flex-start; gap: var(--sp-2); cursor: pointer; font-size: var(--fs-base); line-height: 1.45; word-break: keep-all; overflow-wrap: anywhere; }
.todos input {
  appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border-radius: 50%;
  border: 2px solid rgba(54, 59, 71, .25); background: #fff center / 12px no-repeat; transition: background-color .15s;
}
.todos input:checked {
  border-color: var(--accent-ink); background-color: var(--accent-ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.todos li.done .todo-title { text-decoration: line-through; color: var(--muted); }
.todo-region { display: block; color: var(--muted); font-size: var(--fs-xs); text-decoration: none; }
.todos .x { flex: none; border: 0; background: none; color: var(--muted); padding: 0 2px; }
.add-todo { display: flex; align-items: center; gap: var(--sp-1); margin-top: 4px; border-top: 1.5px dashed rgba(54, 59, 71, .15); padding-top: 6px; }
.add-todo input { flex: 1; min-width: 0; border: 0; background: none; padding: 6px 0; font-size: var(--fs-base); outline: none; }
.add-todo button { flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .8); color: var(--accent-ink); font-size: var(--fs-lg); }
.tints { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin: 10px 0 4px; }
.tints button { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; padding: 0; }
.tints button[aria-pressed="true"] { outline: 2px solid var(--accent-ink); outline-offset: 1px; }

/* 고른 날 */
.day-head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); margin-bottom: 12px; }
.day-head h2 { margin: 0; }
.day-panel .person { padding: 12px 8px; }

/* 근무 종류 */
.kind-info { margin-top: 6px; font-size: var(--fs-sm); color: var(--muted); }
.kinds { list-style: none; margin: 0 0 12px; padding: 0; }
.kinds li { border-top: 1.5px dashed var(--line); }
.kinds li:first-child { border-top: 0; }
.kinds summary { display: flex; align-items: center; gap: var(--sp-2); padding: 11px 2px; cursor: pointer; list-style: none; }
.kinds summary::-webkit-details-marker { display: none; }
.kinds summary::after { content: "✎"; margin-left: auto; color: var(--muted); font-size: var(--fs-md); }
.kinds details[open] summary::after { content: "접기"; }
.kinds .kind-name { font-size: var(--fs-base); }
.kind-edit { padding: 4px 2px 14px; }
.swatches { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 2px 0 12px; }
.swatches button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .1); padding: 0; }
.swatches button[aria-pressed="true"] { outline: 2px solid var(--accent-ink); outline-offset: 1px; }
.check { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-base); margin-bottom: 8px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent-ink); }
.check .muted { font-size: var(--fs-sm); }

/* 데이트 기록 */
.map-head { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: 8px; }
.map-head h2 { margin: 0; flex: 1; }
.kmap-wrap { overflow: auto; border-radius: var(--r-lg); background: var(--bg); max-height: 70dvh; -webkit-overflow-scrolling: touch; }
.kmap { display: block; width: 100%; height: auto; }
.kmap .region { fill: #fff; stroke: #d8cdc6; stroke-width: .6; stroke-linejoin: round; cursor: pointer; transition: fill .2s; }
.kmap .region:hover { fill: var(--soft2); }
.kmap .region.v1 { fill: color-mix(in srgb, var(--accent) 45%, #fff); }
.kmap .region.v2 { fill: color-mix(in srgb, var(--accent) 70%, #fff); }
.kmap .region.v3 { fill: var(--accent); }
.kmap .sticker { cursor: pointer; }
.kmap .sticker .ring { fill: #fff; stroke: var(--accent-ink); stroke-width: 1.5; filter: drop-shadow(0 1.5px 2px rgba(0, 0, 0, .25)); }
.kmap .sticker text { fill: var(--accent-ink); font-size: var(--fs-sm); pointer-events: none; }
.kmap .count { fill: var(--accent-ink); }
.kmap .sticker .count-text { fill: #fff; font-size: var(--fs-2xs); font-family: var(--display); font-weight: var(--display-weight); }
.kmap .wanted-pin { cursor: pointer; }
.kmap .wanted-pin circle { fill: #fff; stroke: var(--accent-ink); stroke-width: 1.5; }
.kmap .wanted-pin text { fill: var(--accent-ink); font-size: 12px; pointer-events: none; }
.kmap .inset { fill: none; stroke: #d8cdc6; stroke-dasharray: 3 3; }
.kmap .inset-label { fill: var(--muted); font-size: var(--fs-2xs); }
.kmap .gu-label { fill: var(--muted); font-size: var(--fs-sm); text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.source { margin: 8px 4px 0; font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }
.segment.record-modes { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 14px; }
.segment.record-modes button { padding: 9px 2px; font-size: clamp(12px, 3.7vw, var(--fs-md)); }
.timeline-list { list-style: none; padding: 0; margin: 0; }
.timeline-list li + li { border-top: 1px dashed var(--line); }
.timeline-record { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 14px 0; border: 0; background: none; text-align: left; }
.timeline-text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.timeline-text > .muted { font-size: var(--fs-sm); }
.timeline-text b { font-family: var(--display); font-weight: var(--display-weight); }
.timeline-text b, .timeline-where, .timeline-memo { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.timeline-memo { white-space: pre-wrap; }
.timeline-photo { flex: 0 0 88px; height: 88px; border-radius: var(--r-md); background: var(--bg) center / cover; }
.cell .rtitle { max-width: 100%; padding: 1px 4px; border-radius: var(--r-sm); background: var(--soft); color: var(--accent-ink); font-size: var(--fs-2xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell.photo .rtitle { background: rgba(255, 255, 255, .88); }
.cell .more { font-size: var(--fs-2xs); color: var(--accent-ink); }
.cell.has-record:not(.photo) { background-color: var(--soft2); }
.row-link { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); width: 100%; border: 0; background: none; padding: 0; text-align: left; color: inherit; text-decoration: none; }
.row-link b { font-family: var(--display); font-weight: var(--display-weight); }
.strip .nophoto { background: linear-gradient(150deg, var(--soft), var(--soft2)); }
.strip .nophoto span { color: var(--accent-ink); text-shadow: none; }
.strip span { right: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.geo-results { margin-top: 8px; max-height: 220px; overflow-y: auto; }
.field textarea { width: 100%; padding: 12px 16px; border: 2px solid transparent; border-radius: var(--r-md); background: var(--bg); outline: none; resize: vertical; font: inherit; color: inherit; }
.field textarea:focus { border-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.error { color: #c0392b; }
.howto { margin-top: 16px; font-size: var(--fs-base); color: var(--muted); }
.howto summary { cursor: pointer; color: var(--accent-ink); font-family: var(--display); font-weight: var(--display-weight); }
.howto p { margin: 10px 0 0; line-height: 1.6; }
.howto b { color: var(--ink); font-family: var(--display); font-weight: var(--display-weight); }
.note { color: var(--muted); font-size: var(--fs-sm); margin: 4px 0 0; }
.note + .btn { margin-top: 16px; }
.lightbox { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(30, 20, 20, .85); padding: 16px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--r-md); }
.lightbox .muted { color: #fff; }

/* AI로 근무표 넣기 */
.prompt { white-space: pre-wrap; word-break: keep-all; font: 12px/1.5 var(--body-font); background: var(--bg); border-radius: var(--r-md); padding: 10px 12px; margin: 0 0 8px; max-height: 160px; overflow: auto; -webkit-user-select: text; user-select: text; }
.ai-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--sp-1); margin: 4px 0 8px; }
.ai-day { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 46px; padding: 4px 2px; border-radius: var(--r-sm); background: var(--bg); border: 2px solid transparent; }
.ai-day b { font-size: var(--fs-xs); font-weight: 400; color: var(--muted); }
.ai-day .chip { font-size: var(--fs-xs); padding: 1px 6px; }
.ai-day.changed { border-color: var(--accent); }
.ai-day.unknown { background: #fff3c4; }
.ai-day select { width: 100%; font-size: var(--fs-xs); border: 0; background: transparent; padding: 0; }
.ai-answer { width: 100%; font-size: var(--fs-md); line-height: 1.5; resize: vertical; }
.btn.google { background: #fff; color: #3c4043; border: 1px solid #dadce0; box-shadow: none; font-family: var(--body-font); }
.btn.google b { color: #4285f4; font-family: Arial, sans-serif; margin-right: 4px; }

/* 더보기 메뉴 · 꾸미기 · 새 소식 */
.notify-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; cursor: pointer; }
.notify-row input { appearance: none; flex: 0 0 44px; width: 44px; height: 26px; margin: 0; border: 2px solid var(--muted); border-radius: 20px; background: var(--muted); cursor: pointer; }
.notify-row input::before { content: ''; display: block; width: 18px; height: 18px; margin: 2px; border-radius: 50%; background: white; }
.notify-row input:checked { background: var(--accent-ink); border-color: var(--accent-ink); }
.notify-row input:checked::before { transform: translateX(18px); }
.notify-row input:disabled { opacity: .5; cursor: wait; }
.menu .row-link { display: flex; align-items: center; gap: var(--sp-3); width: 100%; padding: 14px 4px; border: 0; background: none; text-align: left; border-bottom: 1px dashed var(--line); }
.menu .row-link:last-child { border-bottom: 0; }
.menu .row-link .ic { font-size: var(--fs-2xl); width: 28px; display: grid; place-items: center; color: var(--accent-ink); }
.menu .row-link b { font-family: var(--display); font-weight: var(--display-weight); font-size: var(--fs-lg); }
.menu .row-link small { display: block; color: var(--muted); font-size: var(--fs-sm); }
.menu .row-link .go { margin-left: auto; color: var(--muted); }
.menu .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); vertical-align: 3px; margin-left: 4px; }
.subhead { display: flex; align-items: center; gap: var(--sp-2); margin: 2px 0 10px; }
.subhead h2 { margin: 0; font-size: var(--fs-xl); }
.fonts { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); }
.fonts button { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); border: 2px solid transparent; border-radius: var(--r-md); background: var(--bg); padding: 12px 14px; text-align: left; }
.fonts button[aria-pressed="true"] { border-color: var(--accent-ink); }
.fonts .sample { font-size: var(--fs-xl); line-height: 1.45; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fonts .fname { font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; }
.note-item h3 { margin: 0 0 2px; font-size: var(--fs-lg); }
.note-item ul { margin: 6px 0 0; padding-left: 18px; }
.note-item li { margin: 2px 0; }

/* ---------- v3: 공간(혼자·친구·연인) ---------- */
.top { display: flex; align-items: center; gap: var(--sp-2); }
.space-switch { display: inline-flex; align-items: center; gap: var(--sp-1); max-width: 60%; border: 0; border-radius: var(--r-full); background: var(--surface); box-shadow: var(--shadow-raised); padding: 6px 10px 6px 12px; font-size: var(--fs-md); color: var(--ink); }
.space-switch span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.space-switch .i:first-child { color: var(--accent-ink); }
.space-switch .i:last-child { color: var(--muted); }
.space-row { display: flex; align-items: center; gap: var(--sp-1); }
.space-row .row-link { flex: 1; min-width: 0; }
.space-row > .round { flex-shrink: 0; }
.space-list .row-link[aria-current="true"] b { color: var(--accent-ink); }
.space-list .row-link .go .i { color: var(--accent-ink); }
.add-space { margin-top: var(--sp-3); }

/* 온보딩 */
.onb-steps { display: flex; gap: 6px; margin: 0 0 var(--sp-3); }
.onb-steps i { height: 4px; flex: 1; border-radius: var(--r-full); background: var(--bg); }
.onb-steps i.on { background: var(--accent); }
.onb-invite { display: flex; align-items: center; gap: 6px; background: var(--soft); color: var(--accent-ink); border-radius: var(--r-md); padding: var(--sp-2) var(--sp-3); margin: var(--sp-2) 0 0; font-size: var(--fs-md); }
.uses { display: grid; gap: var(--sp-2); margin: var(--sp-4) 0; }
.use { display: flex; align-items: center; gap: var(--sp-3); width: 100%; border: 2px solid transparent; border-radius: var(--r-lg); background: var(--bg); padding: var(--sp-3) var(--sp-4); text-align: left; color: var(--ink); }
.use .ic { font-size: var(--fs-2xl); color: var(--accent-ink); display: grid; }
.use b { display: block; font-size: var(--fs-lg); }
.use small { color: var(--muted); font-size: var(--fs-sm); }
.use .check { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: transparent; font-size: var(--fs-base); }
.use[aria-pressed="true"] { border-color: var(--accent); background: var(--soft); }
.use[aria-pressed="true"] .check { background: var(--accent); color: #fff; }
.space-pick { background: var(--bg); border-radius: var(--r-lg); padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-3); }
.space-pick > b { display: flex; align-items: center; gap: 6px; margin-bottom: var(--sp-2); }
.space-pick .field { margin-bottom: 0; }
.space-pick .field input { background: var(--surface); }
.space-pick .picker-input { background: var(--surface); }
.segment.mini.wide { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 var(--sp-3); }
.onb-nav { display: grid; grid-template-columns: 1fr 2fr; gap: var(--sp-2); margin-top: var(--sp-2); }

/* 홈: 친구 그룹 이름, 사람이 많을 때 */
.dday-card .space-name { font-family: var(--display); font-weight: var(--display-weight); font-size: var(--fs-2xl); color: var(--accent-ink); }
.people.many { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--sp-2); }
.people-card .people.many .person { padding-inline: 0; }
.stage.many .actors { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: var(--sp-3) var(--sp-2); }
.stage.many .actor img { height: 120px; }
.stage.many .bubble .chip { font-size: var(--fs-lg); padding: 2px 10px; }
.stage.many .bubble .kind-info { display: none; }

/* 달력: 혼자·친구는 칸에 내 근무 하나 + 그날 쉬는 친구 수 */
.cell.st-one .half { display: flex; justify-content: center; align-items: center; }
.plan-dot { color: var(--accent); font-size: var(--fs-2xs); display: inline-grid; }
.paint-hint { font-size: var(--fs-sm); align-self: center; }
.space-switch[hidden] { display: none; }
