:root {
  --bg: #f7f5f0;
  --card: #ffffff;
  --ink: #23302b;
  --muted: #6d7671;
  --line: #e6e2d9;
  --pri: #3f6b5c;
  --pri-soft: #e5efe9;
  --warm: #c9855a;
  --warm-soft: #f6e9de;
  --danger: #b5523f;
  --r: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
body {
  font-family: 'Pretendard', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
a { color: inherit; }
.ms { font-family: 'Material Symbols Outlined'; font-weight: normal; font-style: normal; font-size: 20px; line-height: 1; display: inline-block; -webkit-font-smoothing: antialiased; font-feature-settings: 'liga'; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* 상단 / 하단 바 */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(247,245,240,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 640px; margin: 0 auto; padding: 10px 16px; }
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; }
.brand-ico { width: 36px; height: 36px; border-radius: 9px; display: block; box-shadow: 0 0 0 1px #e4dfd5; }
.brand b { display: block; font-size: 17px; }
.brand small { color: var(--muted); font-size: 12px; }

.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; display: flex; justify-content: center; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { flex: 1; max-width: 160px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 0 8px; text-decoration: none; font-size: 12px; color: var(--muted); }
.tabbar a .ms { font-size: 24px; }
.tabbar a.active { color: var(--pri); font-weight: 700; }
.tabbar a.active .ms { font-variation-settings: 'FILL' 1; }

.view { max-width: 640px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
h1, h2 { margin: 0; }
.h1s { font-size: 21px; margin-bottom: 4px; }
h2 { font-size: 16px; display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
h2 .ms { color: var(--pri); }
h2 small { font-weight: 500; margin-left: auto; }
.eyebrow { margin: 0 0 4px; font-size: 13px; color: var(--pri); font-weight: 600; }

/* 오늘 */
.hero { display: flex; gap: 14px; align-items: center; justify-content: space-between; background: linear-gradient(135deg, #fff, var(--pri-soft)); }
.hero h1 { font-size: 21px; line-height: 1.35; }
.hero em { font-style: normal; color: var(--pri); }
.hero p { margin: 6px 0 0; font-size: 14px; }
.ring-wrap { position: relative; width: 80px; height: 80px; flex: none; }
.ring { width: 80px; height: 80px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring-bg { stroke: #fff; }
.ring-fg { stroke: var(--pri); stroke-linecap: round; transition: stroke-dashoffset .4s; }
.ring-num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; }
.ring-num small { font-size: 11px; }

.weekstrip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.weeknav { display: flex; align-items: center; gap: 6px; margin: 2px 0 -4px; }
.weeknav b { flex: 1; text-align: center; font-size: 14px; }
.weeknav .btn.sm { padding: 4px 10px; font-size: 12.5px; min-height: 0; }
.wday { font: inherit; color: var(--ink, inherit); cursor: pointer; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 7px 2px 8px; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.wday.today .wn { color: var(--pri); }
.wday.sel { border-color: var(--pri); box-shadow: 0 0 0 1px var(--pri); }
.wday.off { background: #efede7; border-color: transparent; color: #a9a59c; }
.wday.off.sel { border-color: var(--pri); }
.wd { font-size: 11.5px; font-weight: 600; opacity: .8; }
.wn { font-size: 17px; font-weight: 700; line-height: 1.2; }
.dot.org { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--pri); }
.check.locked { opacity: .55; cursor: default; }
.org-line { display: flex; align-items: center; gap: 8px; padding: 10px 4px; text-decoration: none; color: inherit; border-top: 1px solid var(--line); }
.org-line:first-of-type { border-top: 0; }
.org-line > .ms:first-child { color: var(--pri); }
.org-line b { flex: 1; }
.center { text-align: center; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.dot.half { background: #9fc2b2; }
.dot.full { background: var(--pri); }
.dot.miss { background: var(--warm-soft); border: 1px solid var(--warm); }

.checks { display: flex; flex-direction: column; gap: 6px; }
.check { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: #faf9f6; cursor: pointer; }
.check input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.check .box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid #c9cfcb; color: transparent; display: grid; place-items: center; font-size: 16px; flex: none; margin-top: 1px; transition: .15s; }
.check.on .box { background: var(--pri); border-color: var(--pri); color: #fff; }
.check.on .txt { color: var(--muted); text-decoration: line-through; }
.check .txt small { display: block; color: var(--muted); font-size: 12.5px; text-decoration: none; }
.check .min { font-style: normal; font-size: 12px; color: var(--warm); margin-left: 4px; }
.check input:focus-visible + .box { outline: 2px solid var(--pri); outline-offset: 2px; }

.cta { display: flex; align-items: center; gap: 12px; text-decoration: none; background: var(--warm-soft); border-color: #eedac8; }
.cta > .ms:first-child { font-size: 28px; color: var(--warm); }
.cta b { display: block; }
.cta small { color: var(--muted); }
.cta > .ms:last-child { margin-left: auto; color: var(--muted); }

/* 폼 / 버튼 */
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; font-size: 14px; font-weight: 600; }
.field small { color: var(--muted); font-weight: 400; }
input, textarea, select { font: inherit; font-weight: 400; color: inherit; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; background: #fff; width: 100%; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--pri); outline-offset: -1px; }
textarea { resize: vertical; }
.btn { font: inherit; font-weight: 700; border: 0; border-radius: 14px; padding: 13px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.btn.block { width: 100%; margin-top: 14px; }
.btn.primary { background: var(--pri); color: #fff; }
.btn.primary:disabled { opacity: .7; cursor: wait; }
.btn.ghost { background: var(--pri-soft); color: var(--pri); }
.btn.danger { color: var(--danger); background: transparent; border: 1px solid var(--line); }
.inline { display: flex; gap: 8px; margin-top: 12px; }
.inline .btn { flex: none; padding: 11px 14px; }
.icon-btn { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; display: grid; place-items: center; }
.icon-btn:hover { background: #f1efe9; }
.note { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; color: var(--muted); background: #faf9f6; padding: 10px 12px; border-radius: 12px; margin: 12px 0 0; }
.note .ms { font-size: 18px; color: var(--warm); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 공간 분석 */
.photo { margin-top: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 180px; border: 2px dashed #cdd6d1; border-radius: 16px; background: #fafbf9; color: var(--pri); cursor: pointer; overflow: hidden; }
.photo .ms { font-size: 40px; }
.photo.has { border-style: solid; padding: 0; }
.photo img { width: 100%; max-height: 360px; object-fit: cover; display: block; }
.hist { display: flex; flex-direction: column; gap: 8px; }
.hist-item { display: flex; gap: 12px; align-items: center; text-decoration: none; padding: 6px; border-radius: 12px; }
.hist-item:hover { background: #faf9f6; }
.hist-item img, .hist-item > .ms { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: #eee; display: grid; place-items: center; flex: none; }
.hist-item b { display: block; }
.hist-item small { color: var(--muted); }

.back { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: var(--muted); font-size: 14px; }
.result-head { display: flex; flex-direction: column; gap: 14px; }
.result-head p { margin: 6px 0 0; }
.result-img { width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; }
.bullets { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.groups { display: grid; gap: 10px; }
.group { border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.group-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.group p { margin: 8px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { background: #f3f1ec; border-radius: 999px; padding: 3px 10px; font-size: 13px; }
.tag { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 9px; background: var(--pri-soft); color: var(--pri); white-space: nowrap; flex: none; }
.tag.store { background: #e8edf5; color: #3d5a80; }
.tag.move { background: var(--warm-soft); color: #9a5b33; }
.tag.toss { background: #f7e3de; color: var(--danger); }
.zones { display: grid; gap: 8px; }
.zone { display: grid; gap: 2px; padding: 12px; border-left: 4px solid var(--pri); background: #faf9f6; border-radius: 0 12px 12px 0; }
.zone small { color: var(--muted); }
.products { display: grid; gap: 10px; margin-top: 10px; }
.product { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 4px; }
.product small { color: var(--muted); }
.qty { color: var(--warm); font-weight: 700; }
.shop { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.shop a { font-size: 13px; font-weight: 600; text-decoration: none; color: var(--pri); background: var(--pri-soft); padding: 5px 10px; border-radius: 999px; }
.routines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.routines li { display: flex; gap: 8px; align-items: center; }

/* 정리 4단계 */
.why { margin-top: 10px; font-size: 14px; }
.why summary { cursor: pointer; color: var(--pri); font-weight: 600; }
.why ul { margin-top: 6px; }
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; position: sticky; top: 57px; z-index: 5; background: var(--bg); padding: 4px 0; }
.st { font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 2px; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.st-n { width: 24px; height: 24px; border-radius: 50%; background: #efede7; display: grid; place-items: center; font-size: 13px; }
.st-n .ms { font-size: 16px; }
.st.done .st-n { background: var(--pri-soft); color: var(--pri); }
.st.cur { border-color: var(--pri); color: var(--pri); box-shadow: 0 0 0 1px var(--pri); }
.st.cur .st-n { background: var(--pri); color: #fff; }
.tip { display: flex; gap: 6px; align-items: flex-start; background: var(--warm-soft); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 10px 0; }
.tip .ms { color: var(--warm); font-size: 18px; }
.tally { display: flex; gap: 6px; margin: 12px 0 8px; flex-wrap: wrap; }
.tally span { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--pri-soft); color: var(--pri); }
.tally .give, .seg .on.give { background: #e8edf5; color: #3d5a80; }
.tally .toss, .seg .on.toss { background: #f7e3de; color: var(--danger); }
.tally .move, .seg .on.move { background: var(--warm-soft); color: #9a5b33; }
.items { display: grid; gap: 8px; }
.item { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: grid; gap: 6px; }
.item-top { display: flex; align-items: center; gap: 6px; }
.item-top b { flex: 1; }
.item-top .icon-btn { padding: 2px; }
.ai { font-size: 11px; color: var(--muted); background: #f3f1ec; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.ai.mine { background: var(--warm-soft); color: #9a5b33; }
.item select { padding: 8px 10px; font-size: 14px; }
.seg { display: flex; gap: 4px; background: #f3f1ec; border-radius: 12px; padding: 3px; }
.seg button { flex: 1; font: inherit; font-size: 13.5px; font-weight: 600; border: 0; background: transparent; color: var(--muted); border-radius: 9px; padding: 8px 4px; display: flex; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
.seg button .ms { font-size: 17px; }
.seg .on { background: #fff; color: var(--pri); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.seg .on.keep, .seg .on.here { background: var(--pri); color: #fff; }
.step-nav { display: flex; justify-content: space-between; gap: 8px; }
.step-nav .btn { flex: none; }
.step-nav .btn.primary { flex: 1; max-width: 70%; margin-left: auto; }
.done-badge { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; font-weight: 700; color: var(--pri); background: var(--pri-soft); padding: 12px 16px; border-radius: 14px; }
.dest { display: flex; align-items: center; gap: 6px; font-weight: 700; margin: 12px 0 6px; }
.dest .ms { color: var(--warm); }
.zone p.chips { margin: 4px 0 0; }
.zone.unset { border-left-color: var(--warm); }

/* 셀프 정리 */
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.type { font: inherit; font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 12px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.type .ms { color: var(--pri); font-size: 22px; }
.type.on { background: var(--pri); border-color: var(--pri); color: #fff; }
.type.on .ms { color: #fff; }
.eyebrow .ms { font-size: 16px; vertical-align: -3px; }
.tips { list-style: none; padding: 10px 12px; margin: 10px 0 4px; background: var(--warm-soft); border-radius: 12px; display: grid; gap: 6px; font-size: 14px; }
.tips li { display: flex; gap: 6px; align-items: flex-start; }
.tips .ms { color: var(--warm); font-size: 17px; margin-top: 1px; }
h3.sub { font-size: 15px; margin: 16px 0 2px; display: flex; gap: 6px; align-items: baseline; }
h3.sub small { font-weight: 500; }
.checks + .tips { margin-top: 12px; }
img.missing { visibility: hidden; }
.noimg { display: grid; place-items: center; color: #c5c2ba; font-size: 28px; background: #f3f1ec; }

/* 상단 설정 버튼 */
.topbar-in { display: flex; align-items: center; justify-content: space-between; }
.top-set { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--muted); text-decoration: none; }
.top-set:hover, .top-set.active { background: var(--pri-soft); color: var(--pri); }
.top-set .ms { font-size: 24px; }

/* 정리하기: 바로 시작 */
.hero-org { text-align: center; padding: 26px 18px; background: linear-gradient(160deg, #fff, var(--pri-soft)); }
.hero-org .eyebrow { display: inline-flex; gap: 4px; align-items: center; }
.hero-org h1 { font-size: 25px; line-height: 1.35; margin: 4px 0 6px; }
.hero-org h1 em { font-style: normal; color: var(--pri); }
.hero-org .btn.big { margin-top: 18px; text-decoration: none; }
.go-btn { font-size: 19px !important; padding: 18px !important; box-shadow: 0 6px 18px rgba(63,107,92,.28); }
.quick-list { display: flex; flex-wrap: wrap; gap: 6px; }
.qbtn { font: inherit; font-size: 14px; font-weight: 600; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 14px 8px 10px; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.qbtn .ms { color: var(--pri); font-size: 18px; }
.qbtn:hover { border-color: var(--pri); }
.mini-photo { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--pri); background: var(--pri-soft); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.mini-photo .ms { font-size: 17px; }
.ph-none { aspect-ratio: 3 / 2; border-radius: 10px; background: #f3f1ec; display: grid; place-items: center; align-content: center; gap: 2px; color: #b5b2aa; margin-bottom: 4px; }
.ph-none .ms { font-size: 30px; color: var(--pri); opacity: .6; }

/* 우리집: 펼치는 공간 */
details.sp { background: #faf9f6; border-radius: 12px; }
details.sp summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; }
details.sp summary::-webkit-details-marker { display: none; }
.sp-ico { color: var(--pri); }
details.sp summary .chev { margin-left: auto; color: var(--muted); transition: transform .2s; }
details.sp[open] summary .chev { transform: rotate(180deg); }
.sp-body { padding: 0 12px 12px; }
.sp-row2 { display: flex; gap: 8px; align-items: flex-end; }
.sp-row2 label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; flex: 1; }
.sp-row2 select { padding: 7px 8px; font-size: 13px; }
.sp-body .task-list li { background: #fff; }

/* 설정 */
.row-between { display: flex; align-items: center; justify-content: space-between; }
.row-between h2 { margin: 0; }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #d6d3cb; 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(--pri); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--pri); outline-offset: 2px; }
.dim { opacity: .45; }
.pill.on.pri { background: var(--pri); border-color: var(--pri); color: #fff; }
.rem-sum { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--pri); background: var(--pri-soft); padding: 10px 12px; border-radius: 12px; margin: 14px 0 0; }
.how { display: grid; gap: 12px; }
.how > div { border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.how p { margin: 4px 0 0; }
.how .btn.block { margin-top: 10px; }
.ok-line { display: flex; gap: 6px; align-items: center; color: var(--pri); font-weight: 600; font-size: 14px; margin: 8px 0 0 !important; }

/* 작은 행동 + 타이머 */
.st.locked { opacity: .55; cursor: not-allowed; background: transparent; }
.st:disabled { cursor: not-allowed; }
.acts { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 6px; }
.acts li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #faf9f6; }
.acts .dotn { width: 24px; height: 24px; border-radius: 50%; background: #efede7; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.acts .dotn .ms { font-size: 16px; }
.acts .t { flex: 1; }
.acts .m { font-size: 13px; color: var(--warm); font-weight: 700; }
.acts li.ok { color: var(--muted); }
.acts li.ok .t { text-decoration: line-through; }
.acts li.ok .dotn { background: var(--pri); color: #fff; }
.acts li.cur { background: var(--pri-soft); box-shadow: inset 0 0 0 1.5px var(--pri); }
.acts li.cur .dotn { background: var(--pri); color: #fff; }
.btn.big { padding: 16px; font-size: 17px; border-radius: 16px; }
.focus { text-align: center; }
.focus .eyebrow { justify-content: center; }
.focus-title { font-size: 24px; justify-content: center; margin: 2px 0 4px; display: block; }
.focus > p.muted { margin: 0; }
.timer { position: relative; width: 210px; height: 210px; margin: 18px auto 8px; }
.timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer circle { fill: none; stroke-width: 9; }
.tr-bg { stroke: #efede7; }
.tr-fg { stroke: var(--pri); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.timer b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.tm-state { position: absolute; left: 0; right: 0; bottom: 56px; color: var(--muted); font-weight: 600; }
.over-msg { display: none; color: #9a5b33; font-weight: 600; margin: 0 0 4px; }
.focus.over .over-msg { display: block; }
.focus.over .timer b { color: var(--warm); }
.focus.over .tr-bg { stroke: var(--warm-soft); }
.focus.over .tr-fg { opacity: 0; }
.focus-sub { display: flex; gap: 8px; margin-top: 8px; }
.focus-sub .btn { flex: 1; }
.done-card { text-align: center; }
.big-ok { font-size: 56px; color: var(--pri); font-variation-settings: 'FILL' 1; }
.done-card .slots { text-align: center; }

/* 사진 칸 */
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.slots.one { grid-template-columns: 1fr; }
.slot { margin: 0; display: grid; gap: 6px; text-align: center; font-size: 13px; font-weight: 700; }
.slot-pick { aspect-ratio: 3 / 4; border: 2px dashed #cdd6d1; border-radius: 14px; background: #fafbf9; color: var(--pri); cursor: pointer; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px; }
.slots.one .slot-pick { aspect-ratio: 4 / 3; }
.slot-pick .ms { font-size: 34px; }
.slot-pick small { color: var(--muted); font-weight: 500; }
.slot.has .slot-pick { border-style: solid; border-color: var(--line); padding: 0; }
.slot-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slot figcaption .muted { font-weight: 500; }

/* 앨범 */
.album { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.album figure { margin: 0; display: grid; gap: 4px; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.album img, .album .noimg { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.stats div { background: var(--pri-soft); border-radius: 14px; padding: 10px 4px; text-align: center; display: grid; }
.stats b { font-size: 24px; color: var(--pri); line-height: 1.2; }
.stats em { font-style: normal; font-size: 13px; margin-left: 1px; }
.stats small { font-size: 12px; color: var(--muted); }
.album-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.album-list > p { grid-column: 1 / -1; }
.album-card { text-decoration: none; display: grid; gap: 2px; }
.album-card small { color: var(--muted); font-size: 12px; }
.ba-mini { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2px; margin-bottom: 4px; }
.ba-mini img, .ba-mini .noimg { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; }
.ba-mini > .ms { font-size: 16px; color: var(--warm); }
.ba-mini.big { gap: 6px; margin: 8px 0; }
.ba-mini.big > .ms { font-size: 22px; }
.album-home { text-decoration: none; display: block; }
.album-home p { margin: 4px 0 0; }
.hist-item > .ms:last-child { margin-left: auto; color: var(--muted); }

/* 청소 순서 */
.rest { display: flex; align-items: center; gap: 6px; margin-top: 14px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.rest > span { flex-basis: 100%; margin: 0 0 2px; }
.pill { font: inherit; font-size: 13px; border: 1px solid var(--line); background: #fff; border-radius: 999px; width: 36px; height: 36px; cursor: pointer; }
.pill.on { background: var(--warm); color: #fff; border-color: var(--warm); }
.day { padding: 14px 16px; }
.day.today { border-color: var(--pri); box-shadow: 0 0 0 1px var(--pri); }
.day.rest { background: transparent; }
.day-h { display: flex; gap: 8px; align-items: baseline; }
.day-h small { color: var(--muted); }
.day-p { margin-left: auto; font-size: 13px; color: var(--pri); font-weight: 700; }
.day-sp { display: grid; gap: 6px; margin-top: 8px; }
.day-sp p { margin: 0; }
.sp-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #faf9f6; border-radius: 12px; }
.sp-row .ms { color: var(--pri); }
.sp-row small { color: var(--muted); }
.sp-row select { margin-left: auto; width: auto; padding: 6px 8px; font-size: 13px; }

/* 내 공간 */
.space-h { display: flex; align-items: center; gap: 8px; position: relative; }
.space-h .big { font-size: 26px; color: var(--pri); width: 40px; height: 40px; border-radius: 12px; background: var(--pri-soft); display: grid; place-items: center; }
.space-h b { font-size: 17px; }
.space-h .icon-btn { margin-left: auto; }
.icon-pick { position: absolute; left: 0; top: 0; width: 40px; height: 40px; opacity: 0; cursor: pointer; padding: 0; }
.task-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.task-list li { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; background: #faf9f6; border-radius: 12px; }
.task-list li span { flex: 1; }
.task-list select { width: auto; padding: 5px 6px; font-size: 12.5px; }

.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 12px; font-size: 14px; z-index: 20; max-width: calc(100% - 32px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }

/* 앨범 상세 */
.album.edit .slot-pick { padding: 0; border-radius: 10px; }
.album.edit .slot-pick:has(img) { border-style: solid; border-color: var(--line); }
.album.edit .slot-pick .ms { font-size: 26px; }
.done-sum { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 4px 0 12px; }
.done-sum div { background: var(--pri-soft); border-radius: 14px; padding: 10px 4px; text-align: center; display: grid; }
.done-sum b { font-size: 22px; color: var(--pri); line-height: 1.2; }
.done-sum em { font-style: normal; font-size: 13px; margin-left: 1px; }
.done-sum small { font-size: 12px; color: var(--muted); }
.done-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.done-steps > li > b { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.done-steps > li > b .ms { font-size: 19px; color: var(--pri); }
.done-steps ul { list-style: none; margin: 6px 0 0; padding: 0 0 0 4px; display: grid; gap: 4px; }
.done-steps ul li { display: flex; gap: 6px; align-items: center; font-size: 14px; color: var(--muted); }
.done-steps ul li .ms { font-size: 17px; }
.done-steps ul li.ok { color: inherit; }
.done-steps ul li.ok .ms { color: var(--pri); }
.ad-slot { margin: 0 0 14px; text-align: center; }
.ad-slot iframe { width: 100%; border: 0; display: block; border-radius: 12px; background: #fff; }
.ad-note { font-size: 11px; color: var(--muted); margin: 0 4px 6px; line-height: 1.4; }
.ad-empty { border: 2px dashed #d9d5cb; border-radius: 14px; padding: 22px 12px; font-size: 12.5px; color: var(--muted); }

/* 사진 안내 · 계정 */
.note-lock { display: flex; gap: 5px; align-items: flex-start; font-size: 12.5px; color: var(--muted); margin: 8px 0; line-height: 1.45; }
.note-lock .ms { font-size: 15px; color: var(--pri); margin-top: 1px; }
.note-lock a { color: var(--pri); }
.notice { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.notice li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.notice li > .ms { flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--pri-soft); color: var(--pri); display: grid; place-items: center; font-size: 18px; }
.notice li b { display: block; }
.btn.google { background: #fff; border: 1px solid var(--line); color: inherit; font-weight: 700; gap: 8px; }
.btn.google .g { font-weight: 800; color: #4285f4; font-size: 17px; }
.acct-row { display: flex; align-items: center; gap: 12px; margin: 4px 0 8px; }
.acct-row span { display: grid; }
.avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--pri-soft); color: var(--pri); display: grid; place-items: center; }
.sync-line { display: flex; gap: 6px; align-items: center; font-size: 13.5px; margin: 6px 0; color: var(--muted); }
.sync-line .ms { font-size: 18px; }
.sync-line.ok { color: var(--pri); }
.sync-line.err, .err-line { color: #b2453a; font-size: 13px; }
.top-set.signed::after { content: ''; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--pri); top: 7px; right: 7px; box-shadow: 0 0 0 2px #fff; }
.top-set { position: relative; }
.noimg.missing { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 100%; aspect-ratio: 3 / 4; background: #f1efe9; border-radius: 10px; color: #a9a59c; text-align: center; }
.noimg.missing .ms { font-size: 22px; }
.noimg.missing small { font-size: 10.5px; line-height: 1.3; }

/* 앱 정보 · 계정 삭제 */
.info-links { display: grid; }
.info-links a { display: flex; align-items: center; gap: 10px; padding: 12px 2px; text-decoration: none; color: inherit; border-top: 1px solid var(--line); font-size: 15px; }
.info-links a:first-child { border-top: 0; }
.info-links a > .ms:first-child { color: var(--pri); font-size: 20px; }
.info-links a > .ms:last-child { margin-left: auto; color: var(--muted); }
.link-danger { display: block; margin: 10px auto 0; background: none; border: 0; color: #b2453a; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; padding: 6px; }

/* ===== 타이머 캐릭터 ===== */
.buddy { width: 100%; max-width: 280px; margin: 10px auto 0; }
.buddy svg { display: block; width: 100%; height: auto; overflow: visible; }
.buddy * { transform-box: view-box; }
.buddy + .timer { width: 168px; height: 168px; margin-top: 6px; }
.buddy + .timer b { font-size: 40px; }
.buddy + .timer .tm-state { bottom: 40px; }
.buddy .shd { fill: #0000000f; }
.buddy .lg { fill: #6b574a; }
.buddy .skin { fill: #F7E3C8; stroke: #E9C9A3; stroke-width: 1.5; }
.buddy .apron { fill: var(--pri); }
.buddy .pocket { fill: #ffffff33; }
.buddy .eyes { fill: #3b302a; transform-origin: 120px 77px; animation: bd-blink 4s infinite; }
.buddy .blush { fill: #F2A48A; opacity: .7; }
.buddy .mouth { fill: none; stroke: #3b302a; stroke-width: 1.8; stroke-linecap: round; }
.buddy .scarf { fill: #E8A87C; }
.buddy .dotw { fill: #fff; opacity: .8; }
.buddy .arm .limb { fill: none; stroke: #E9C9A3; stroke-width: 6.5; stroke-linecap: round; }
.buddy .arm > circle { fill: #F7E3C8; stroke: #E9C9A3; stroke-width: 1.5; }
.buddy .al { transform-origin: 101px 88px; }
.buddy .ar { transform-origin: 139px 88px; }
.buddy .bd { animation: bd-bob .9s ease-in-out infinite alternate; }
.buddy .shelf rect, .buddy .cab rect { fill: #FBF7EF; stroke: #C9B9A0; stroke-width: 2; }
.buddy .shelf path, .buddy .cab path { stroke: #C9B9A0; stroke-width: 2; stroke-linecap: round; }
.buddy .mat rect { fill: #F2D8A7; }
.buddy .mat path { stroke: #E8A87C; stroke-width: 2; stroke-dasharray: 6 6; }
.buddy .box { fill: #C9A27A; } .buddy .box.g { fill: #8FB8A6; }
.buddy .lid { stroke: #00000030; stroke-width: 3; stroke-linecap: round; }
.buddy .bag { fill: #A8B8D8; } .buddy .bag-in { fill: #6F82A8; }
.buddy .cloth { fill: #8FB8A6; }
.buddy .road { stroke: #C9B9A0; stroke-width: 2.5; stroke-dasharray: 10 8; stroke-linecap: round; animation: bd-road .6s linear infinite; }
.buddy .spk { fill: #F2C96B; animation: bd-spk 1.5s ease-in-out infinite; transform: scale(0); }
.buddy .pop { animation: bd-pop 3s ease-out infinite both; }
.buddy .fx { animation-name: bd-fx; animation-timing-function: linear; animation-iteration-count: infinite; animation-fill-mode: both; }
.buddy .fy { animation-name: bd-fy; animation-iteration-count: infinite; animation-fill-mode: both; }

/* 동작별 */
.p-mat .mat { transform-origin: 28px 116px; animation: bd-mat 3s ease-out infinite; }
.p-roll .mat { transform-origin: 212px 116px; animation: bd-roll 3s ease-in infinite; }
.p-mat .al, .p-roll .al { animation: bd-swing-l .6s ease-in-out infinite alternate; --a: 10deg; --b: 40deg; }
.p-mat .ar, .p-roll .ar { animation: bd-swing-r .6s ease-in-out infinite alternate; --a: -10deg; --b: -40deg; }
.p-out .al { animation: bd-swing-l .45s ease-in-out infinite alternate; --a: 30deg; --b: 85deg; }
.p-out .ar { animation: bd-swing-r .9s ease-in-out infinite alternate; --a: 0deg; --b: -20deg; }
.p-wipe .ar { animation: bd-swing-r .35s ease-in-out infinite alternate; --a: -50deg; --b: -85deg; }
.p-wipe .al { transform: rotate(15deg); }
.p-shelf .ar { animation: bd-swing-r 1s ease-in-out infinite alternate; --a: -10deg; --b: -95deg; }
.p-boxes .al { animation: bd-swing-l .5s ease-in-out infinite alternate; --a: 20deg; --b: 120deg; }
.p-boxes .ar { animation: bd-swing-r .5s ease-in-out infinite alternate; --a: -20deg; --b: -120deg; }
.p-boxes .bd { animation-duration: .5s; }
.p-sort .ar { animation: bd-throw .8s ease-in-out infinite; animation-delay: -.24s; }
.p-sort .al { transform: rotate(15deg); }
.p-walk .bd { animation-duration: .3s; }
.p-walk .lg.l { animation: bd-step .6s ease-in-out infinite; transform-origin: 111px 104px; }
.p-walk .lg.r { animation: bd-step .6s ease-in-out infinite; animation-delay: -.3s; transform-origin: 129px 104px; }
.p-walk .ar { animation: bd-swing-r .6s ease-in-out infinite alternate; --a: 6deg; --b: -6deg; }
.p-walk .al { animation: bd-swing-l .6s ease-in-out infinite alternate; --a: -15deg; --b: 25deg; }

.buddy.paused *, .focus.over .buddy * { animation-play-state: paused !important; }

@keyframes bd-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes bd-bob { to { transform: translateY(-2.5px); } }
@keyframes bd-swing-l { from { transform: rotate(var(--a)); } to { transform: rotate(var(--b)); } }
@keyframes bd-swing-r { from { transform: rotate(var(--a)); } to { transform: rotate(var(--b)); } }
@keyframes bd-throw { 0%, 100% { transform: rotate(15deg); } 30% { transform: rotate(-115deg); } 55% { transform: rotate(-60deg); } }
@keyframes bd-step { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px) rotate(8deg); } }
@keyframes bd-road { to { stroke-dashoffset: 18; } }
@keyframes bd-mat { 0% { transform: scaleX(0); } 55%, 90% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes bd-roll { 0%, 10% { transform: scaleX(1); opacity: 1; } 65% { transform: scaleX(0); opacity: 1; } 100% { transform: scaleX(0); opacity: 0; } }
@keyframes bd-spk { 0%, 100% { transform: scale(0) rotate(0); } 50% { transform: scale(1) rotate(45deg); } }
@keyframes bd-pop { 0% { transform: scale(0); opacity: 0; } 12% { transform: scale(1.15); opacity: 1; } 18%, 85% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
@keyframes bd-fx { 0% { transform: translateX(0); opacity: 0; } 6% { opacity: 1; } 70% { transform: translateX(var(--dx)); opacity: 1; } 85%, 100% { transform: translateX(var(--dx)); opacity: 0; } }
@keyframes bd-fy {
  0% { transform: translateY(0); animation-timing-function: ease-out; }
  35% { transform: translateY(var(--h)); animation-timing-function: ease-in; }
  70%, 100% { transform: translateY(var(--dy)); }
}
@media (prefers-reduced-motion: reduce) {
  .buddy * { animation: none !important; }
}

/* ===== 정리 소감 ===== */
.feel-box { text-align: left; margin: 14px 0 12px; padding: 14px; border-radius: 14px; background: #faf8f3; }
.feel-box h2 { font-size: 16px; margin-top: 0; }
.feels { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.feel { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--line, #e4dfd5); background: #fff; font: inherit; font-size: 14px; color: inherit; cursor: pointer; }
.feel .fe { font-size: 17px; line-height: 1; }
.feel.on { border-color: var(--pri); background: #e3eee8; color: var(--pri); font-weight: 700; }
.memo { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line, #e4dfd5); font: inherit; font-size: 15px; resize: vertical; background: #fff; }
.memo:focus { outline: none; border-color: var(--pri); }
.card-feel { margin: 4px 0 0; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-feel .fe { margin-right: 4px; }

/* ===== 비워낸 물건 개수 ===== */
.cnt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 2px 0 16px; }
.cnt-row p { margin: 0; }
.cnt { display: inline-flex; align-items: center; gap: 6px; }
.cnt button { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line, #e4dfd5); background: #fff; color: var(--pri); display: grid; place-items: center; cursor: pointer; font: inherit; font-weight: 700; padding: 0; }
.cnt button.plus5 { width: auto; padding: 0 12px; border-radius: 999px; background: #e3eee8; border-color: transparent; }
.cnt b { min-width: 34px; text-align: center; font-size: 24px; color: var(--pri); font-variant-numeric: tabular-nums; }
.cnt em { font-style: normal; color: var(--muted); margin-left: -4px; margin-right: 2px; }

/* ===== 아이콘 고르기 ===== */
.icon-cur { display: flex; align-items: center; gap: 6px; width: 100%; padding: 6px 8px; border: 1.5px solid var(--line, #e4dfd5); border-radius: 10px; background: #fff; font: inherit; font-size: 13px; color: var(--ink, #2b2b2b); cursor: pointer; text-align: left; }
.icon-cur .ms { color: var(--pri); font-size: 20px; }
.icon-cur .chev2 { margin-left: auto; color: var(--muted); transition: transform .15s; }
.icon-cur.open { border-color: var(--pri); }
.icon-cur.open .chev2 { transform: rotate(180deg); }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; margin: 8px 0 4px; padding: 8px; background: #fff; border-radius: 12px; border: 1px solid var(--line, #e4dfd5); }
.icon-grid button { display: grid; justify-items: center; gap: 2px; padding: 8px 2px; border: 1.5px solid transparent; border-radius: 10px; background: #faf8f3; cursor: pointer; font: inherit; color: inherit; }
.icon-grid button .ms { font-size: 26px; color: var(--pri); }
.icon-grid button small { font-size: 11px; color: var(--muted); }
.icon-grid button.on { border-color: var(--pri); background: #e3eee8; }
.icon-grid button.on small { color: var(--pri); font-weight: 700; }
