/* 집안일 화면: 종이색 바탕, 짙은 청록, 작은 금색 포인트. */
:root {
  --b900:#16392f; --b800:#234b40; --b700:#2d5d4e;
  --b600:#326852; --b500:#3d765e; --b300:#94b59e;
  --b200:#ccddcd; --b100:#e3ece0; --b50:#f1f5ed;
  --bg:#f5f3ed; --card:#fffefb; --ink:#21352d;
  --ink2:#3f5147; --ink3:#526257; --line:#d9dfd2;
  --pink:#e7c5cb; --pink-deep:#944e60;
  --gold:#dbb36e; --gold-deep:#805e20; --danger:#ab3e48; --ok:#27684b;
  --shadow:0 1px 2px #253a2d0a,0 8px 24px -12px #253a2d24;
  --shadow-lg:0 16px 44px -14px #1b362d40;
  --radius:22px; --nav-h:82px;
}
body {background:var(--bg);font-size:17px;line-height:1.7;}
:focus-visible {outline:3px solid #9c6d27;outline-offset:4px;}
input:focus,select:focus,textarea:focus {outline:2px solid #32685230;outline-offset:2px;}
input,select,textarea {border-width:1px;background:#fffefb;border-radius:12px;padding:13px 15px;min-height:48px;}
input::placeholder,textarea::placeholder {color:var(--ink3);opacity:1;}
label.f {font-size:15px;font-weight:700;line-height:1.6;margin-top:18px;}
button {touch-action:manipulation;}
.app {background:var(--bg);}

/* 제목과 캐릭터를 한 화면 안에 정리한 헤더. */
.header {
  background:linear-gradient(125deg,#234b40,#193c32);
  border-radius:0 0 26px 26px;
  padding:calc(22px + env(safe-area-inset-top)) 24px 24px;
  box-shadow:inset 0 -1px 0 #ffffff12,0 8px 20px -12px #1c342a45;
}
.header::before,.header::after {display:none;}
.header .row {align-items:flex-start;gap:16px;}
.header .title {text-align:left;font-size:24px;font-weight:800;letter-spacing:-.8px;line-height:1.35;color:#fffef4;}
.header .title small {font-size:14px;line-height:1.65;font-weight:400;color:#e1eadf;opacity:1;margin-top:8px;}
.header .who {background:#ffffff13;border:1px solid #ffffff29;padding:6px 12px 6px 6px;font-size:15px;max-width:42%;min-height:44px;}
.header .greet {align-items:center;gap:18px;margin-top:20px;}
.header .greet .chara-disc {width:104px;height:118px;}
.header .greet .chara {width:106px;height:122px;filter:drop-shadow(0 4px 4px #061b1630);}
.header .greet img.chara,.header .greet .chara-raster img {object-fit:cover;object-position:center top;}
img.chara {object-fit:contain;}
.chara-disc::before {display:none;}
.chara-raster {position:relative;}
.chara-raster .chara-art {display:block;width:100%;height:100%;pointer-events:none;}
.chara-raster .chara-preload {display:none;}
.chara-raster .chara-blink {opacity:0;}
.chara-raster.blink-ready .chara-blink {animation:ibara-eyes-closed 5.6s steps(1,end) infinite;}
.chara-raster .chara-mouth {opacity:0;}
.chara-raster.talk-ready.speaking .chara-mouth {animation:ibara-talk 5s ease-in-out 1;}
.chara-raster,.chara-disc > img.chara,.chara-pop > img.chara {transform-origin:50% 90%;animation:ibara-breathe 4s ease-in-out infinite;}
.chara-raster.happy,img.chara.happy {animation:ibara-sway 2.8s ease-in-out infinite;}
.chara-raster.cheer,img.chara.cheer {animation:ibara-celebrate 2.2s ease-in-out infinite;}
@keyframes ibara-eyes-closed {0%,42%,46%,74%,78%,100% {opacity:0;} 43%,75% {opacity:1;}}
/* 대사 한 번에 다섯 번: 짧은 연속 움직임과 긴 쉼을 섞습니다. */
@keyframes ibara-talk {
  0%,3%,15%,21%,30%,33%,44%,62%,76%,81%,96%,100% {opacity:0;}
  6%,9%,24%,26%,36%,39%,66%,70%,85%,90% {opacity:1;}
}
@keyframes ibara-breathe {0%,100% {transform:translateY(0) rotate(-.35deg);} 50% {transform:translateY(-2px) rotate(.35deg);}}
@keyframes ibara-sway {0%,100% {transform:translateY(0) rotate(-1deg);} 50% {transform:translateY(-3px) rotate(1deg);}}
@keyframes ibara-celebrate {0%,38%,100% {transform:translateY(0) rotate(0);} 14% {transform:translateY(-5px) rotate(-1deg);} 26% {transform:translateY(-2px) rotate(1deg);}}
@media(prefers-reduced-motion:reduce) {
  .chara-raster,.chara-disc > img.chara,.chara-pop > img.chara,.chara-raster.blink-ready .chara-blink,.chara-raster.talk-ready.speaking .chara-mouth {animation:none;}
  .chara .eye-open,.chara .head,.chara .arm-up,.chara .sparkle {animation:none;}
}
.bubble {background:#fffdf5;border:1px solid #ede9db;border-radius:16px;padding:16px 18px;font-size:16px;line-height:1.7;box-shadow:0 4px 8px #0b281b1a;animation:none;}
.bubble::before {border-right-color:#fffdf5;bottom:24px;}
.bubble b {color:#294f3c;}
.avatar {border:1px solid #20382d14;}

.view {max-width:none;padding:24px 22px 0;}
.card {border:1px solid var(--line);background:linear-gradient(145deg,#fff,#fffefb 70%);padding:24px;margin-bottom:20px;box-shadow:var(--shadow);animation:none;}
.card h3 {font-size:20px;line-height:1.5;letter-spacing:-.4px;flex-wrap:wrap;gap:10px;margin-bottom:18px;color:var(--ink);}
.card h3 .ic {color:var(--b700);}
.muted,.tiny {font-size:15px;line-height:1.8;font-weight:400;color:var(--ink2);}
.empty {font-size:16px;padding:34px 18px;line-height:1.8;}
.empty .em {color:var(--b700);}
.chip {padding:5px 10px;font-size:14px;line-height:1.4;font-weight:700;}
.chip.gray {background:#edf0e9;border-color:#d4dcd0;color:#455649;}
.chip.pink {background:#f8e9ec;color:#944e60;}
.chip.gold {background:#f6ecd6;color:#77571e;}
.chip.green {background:#e1efe3;color:#276346;}
.chip.magenta {background:#f3e4ef;color:#87447b;}
.chip.assignee {font-size:14px;}
.weeknav {gap:14px;margin:0 0 22px;}
.weeknav .lbl {font-size:21px;line-height:1.6;}
.weeknav .dates {font-size:14px;font-weight:400;margin-top:5px;color:var(--ink2);}
.weeknav .lbl .chip {font-size:14px;}
.iconbtn {width:46px;height:46px;border-radius:14px;border:1px solid var(--line);box-shadow:inset 0 1px 0 #fff,0 2px 3px #20382d0d;}
.iconbtn.ghost {border:1px solid var(--line);}
.iconbtn.sm,.item .acts .iconbtn.sm {width:38px;height:38px;border-radius:10px;}

.progress {gap:18px;margin-bottom:22px;}
.ring {width:72px;height:72px;}
.ring svg {width:72px;height:72px;}
.ring .pct {font-size:17px;}
.progress .txt b {font-size:23px;color:var(--ink);}
.bar {height:10px;background:#e3e9dd;box-shadow:inset 0 1px 3px #1e382d17;}
.bar i {background:linear-gradient(90deg,#326852,#80a381);box-shadow:inset 0 1px 0 #ffffff50;}
.tasks {gap:12px;}
.task {border:1px solid #dce3d6;border-radius:17px;padding:16px;background:#f6f8f1;gap:14px;box-shadow:inset 0 1px 0 #ffffffa0;}
.task.done {background:#fffefb;border-color:#b9cdb6;}
.task.verified {background:linear-gradient(115deg,#fafff8,#eaf1e3);border-color:#a9c3a4;}
.task .ico {width:52px;height:52px;border-radius:14px;box-shadow:inset 0 1px 0 #ffffff99,inset 0 -2px 2px #273f3010,0 2px 4px #273f3010;}
.task .t {font-size:18px;line-height:1.6;}
.task .s {font-size:15px;line-height:1.7;font-weight:400;margin-top:4px;}
.task .meta {font-size:14px;line-height:1.6;font-weight:400;flex-wrap:wrap;}
.checkbtn {width:48px;height:48px;border:2px solid #b5c9ae;border-radius:14px;box-shadow:inset 0 1px 0 #fff,0 2px 3px #253b2d10;}
.checkbtn.on,.checkbtn.on.v {border-color:#2d5d4e;background:linear-gradient(#3d765e,#2d5d4e);box-shadow:inset 0 1px 0 #ffffff40,0 2px 3px #253b2d1c;}
.checkbtn.lock {opacity:1;border-style:dashed;border-color:#9eab9a;background:#e9ede4;}
.checkbtn .badge {color:#664916;border-color:#fffefb;}
.checkbtn .badge .ic {fill:#664916;}
.mini {padding:14px;background:#f3f6ed;border:1px solid #e0e6d8;gap:12px;}
.mini .t {font-size:17px;line-height:1.6;}
.mini .t small {font-size:14px;font-weight:400;white-space:normal;}
.member .st {font-size:14px;}
.vbtn {font-size:15px;min-height:44px;padding:10px 12px;border-width:1px;border-color:#88a77f;}
.vbtn:disabled {border-width:1px;border-color:#c4d4bb;background:#e9f0e2;color:#425b3f;}
.note-box {border:1px solid #e6cbd0;background:#fbf0f0;}
.note-box .h,.note-box p {font-size:16px;line-height:1.8;}

.btn {font-size:16px;border-radius:12px;min-height:46px;line-height:1.5;padding:12px 18px;background:linear-gradient(#386d56,#2d5d4e);box-shadow:inset 0 1px 0 #ffffff25,0 2px 3px #253b2d17;}
.btn.ghost {border:1px solid #becdb8;background:#fffefb;box-shadow:0 1px 2px #253b2d0a;}
.btn.soft {border:1px solid #b7ccb0;background:#eaf1e4;}
.btn.sm,.btn.xs {font-size:14px;min-height:40px;padding:9px 12px;}
.btn.danger {background:#f9e7e8;color:#96323e;}
.btn.note {border:1px solid #aacdad;background:#e8f3e6;color:#285e3b;}
.btn.note .ic {color:inherit;}
.seg {border:1px solid #dbe2d3;background:#e9eee2;box-shadow:inset 0 1px 3px #253b2d12;padding:5px;gap:5px;margin-bottom:22px;}
.seg button {font-size:15px;min-height:44px;padding:10px;}
.seg button.on {background:linear-gradient(#fff,#fbfcf6);box-shadow:0 2px 4px #253b2d19;}
.pill {font-size:15px;border-width:1px;border-color:#c6d5be;padding:8px 14px 8px 8px;box-shadow:0 2px 3px #253b2d0b;}
.pill.on {background:#eaf1e4;border-color:#6d9567;}
.pills {padding-bottom:12px;gap:10px;margin-bottom:10px;}

/* 기록은 글자를 축소하는 대신 가로 스크롤로 폭을 확보합니다. */
.gridwrap {border:1px solid var(--line);border-radius:14px;margin:0;scrollbar-width:thin;}
.table-hint {font-size:14px;color:var(--ink2);margin:12px 0 0;}
table.grid {min-width:560px;table-layout:auto;}
table.grid th,table.grid td {padding:14px 10px;min-width:70px;}
table.grid th {font-size:14px;line-height:1.6;background:#edf2e6;}
table.grid th:first-child,table.grid td:first-child {width:110px;min-width:110px;}
table.grid td:first-child {font-size:15px;}
table.grid td:first-child small {font-size:14px;font-weight:400;}
table.grid th:first-child,table.grid td:first-child {position:sticky;left:0;z-index:1;background:#fffefb;box-shadow:1px 0 0 var(--line);}
table.grid th:first-child {background:#edf2e6;}
table.grid tr.cur td {background:#f0f5e9;}
table.grid tr.cur td:first-child small {color:var(--ink2);}
table.grid.sum {min-width:440px;}
table.grid.sum th,table.grid.sum td {font-size:15px;padding:14px 10px;}
table.grid.sum th:first-child,table.grid.sum td:first-child {font-size:15px;}
.cell {width:36px;height:36px;border-radius:10px;border-width:1px;box-shadow:inset 0 1px 0 #ffffff70,0 2px 3px #253b2d0b;}
.cell.done {border-color:#adc7a2;}
.cell.ver {background:linear-gradient(#3d765e,#2d5d4e);}
.cell.miss {background:#f8e8e8;border-color:#e0b9bf;color:#9b3d49;}
.cell.week-ok {background:linear-gradient(#efdaab,#e2c17e);border-color:#c9a360;color:#72521e;}
.cell.week-ok .ic {fill:#72521e;}
.cell.week-wait {background:#eaece6;border-color:#d2d8cc;color:#667361;}
.cell.week-wait .ic {fill:none;stroke:#667361;}
.cell.excused {background:#27684b;border-color:#27684b;}
.cell.week-excused {background:linear-gradient(#aa659b,#824678);border-color:#824678;}
.legend {font-size:14px;line-height:1.6;gap:12px 16px;margin-top:18px;}
.legend span.cell {width:24px;height:24px;}
.money {gap:12px;margin:12px 0 20px;}
.money div {background:linear-gradient(#f7f9f1,#ebf1e1);border:1px solid #dce4d2;padding:18px 10px;border-radius:14px;box-shadow:inset 0 1px 0 #fff;}
.money b {font-size:22px;line-height:1.5;letter-spacing:-.7px;}
.money small {display:block;font-size:14px;line-height:1.6;margin-top:6px;}
.wk {gap:12px;padding:18px 0;flex-wrap:wrap;}
.wk .d b {font-size:17px;}
.wk .d small {font-size:14px;font-weight:400;line-height:1.7;}
.wk .pt {font-size:17px;}
.wk .r .chip {font-size:14px;}
.item {padding:14px;background:#f4f6ef;border:1px solid #e1e6d9;border-radius:15px;flex-wrap:wrap;gap:12px;}
.item .t {font-size:17px;line-height:1.6;}
.item .t small {font-size:14px;font-weight:400;white-space:normal;}
.item.archived {opacity:1;background:#f0f1eb;color:var(--ink2);}
.item .acts {gap:6px;margin-left:auto;}
.radio-list label {font-size:16px;border-width:1px;line-height:1.7;}
.radio-list small {font-size:14px;line-height:1.7;}
.linkbox {font-size:14px;}
.feed div {font-size:16px;line-height:1.8;padding:14px;}
.feed small {display:block;margin:6px 0 0;font-size:14px;color:var(--ink2);}
.charslot {gap:14px;}
.charslot > div {padding:14px 10px;border:1px solid #dce4d3;background:#f4f7ef;}
.charslot .pv {height:148px;}
.charslot .pv img,.charslot .pv svg {max-height:140px;}
.charslot .pv img {height:140px;width:100%;object-fit:contain;}
.charslot small {font-size:15px;line-height:1.7;color:var(--ink2);margin-bottom:14px;}
.charslot small span {font-size:14px;}
.charslot .btn {width:100%;}
.nav {padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:#fffefbf5;gap:6px;box-shadow:0 -4px 20px #253b2d08;}
.nav button {border-radius:14px;gap:5px;font-size:14px;line-height:1.4;color:var(--ink2);}
.nav button .ic {width:22px;height:22px;}
/* 선택된 메뉴: 예전처럼 배경 없이 색만 진하게 + 아이콘이 살짝 떠오름 */
.nav button.on {background:transparent;color:var(--b700);font-weight:800;}
.nav button.on .ic {transform:translateY(-2px) scale(1.12);}
.modal {background:#122d2373;}
.modal .sheet {max-width:620px;background:#fffefb;padding:24px 24px calc(24px + env(safe-area-inset-bottom));}
.modal h2 {font-size:23px;line-height:1.5;color:var(--ink);}
.modal p {font-size:16px;line-height:1.8;color:var(--ink2);}
.toast {font-size:16px;line-height:1.6;border-radius:14px;background:#243e31;}
.toast.err {background:#96323e;}
.chara-pop .bubble {font-size:16px;line-height:1.7;border:1px solid #cbd8c1;max-width:260px;}
.chara-pop .bubble::before {border-left-color:#cbd8c1;}
.chara-pop .bubble::after {border-left-color:#fffdf5;}
.overlay {background:radial-gradient(circle at 50% 35%,#41674e,#17392f);}
.overlay p {opacity:1;font-size:17px;max-width:440px;}
.overlay .chara-disc {height:min(80vh,380px);width:min(70vw,300px);animation:none;}
.overlay .chara {height:min(76vh,360px);width:min(66vw,280px);}
.chara.happy .head {animation:nod 1.4s ease-in-out infinite alternate;}
.chara.cheer .arm-up {transform-origin:139px 146px;animation:wave 1.2s ease-in-out infinite alternate;}
.chara .blush {opacity:.75;}
.chara .glasses {vector-effect:non-scaling-stroke;}

/* 로그인과 초대 링크 안내도 앱과 같은 색·글자 크기를 씁니다. */
.entry-page {display:grid;place-items:center;min-height:100svh;padding:24px;background:var(--bg);color:var(--ink);}
.entry-page .card {width:100%;max-width:440px;padding:32px;text-align:left;border-radius:24px;margin:0;}
.entry-cat {display:block;width:72px;height:72px;border-radius:20px;margin:0 auto 24px;box-shadow:0 4px 8px #1c3b2820;}
.entry-page h1 {font-size:26px;color:var(--ink);line-height:1.4;text-align:center;margin:0 0 16px;}
.entry-page p {font-size:16px;line-height:1.8;color:var(--ink2);text-align:left;}
.entry-page label {font-size:15px;line-height:1.6;font-weight:700;color:var(--ink2);}
.entry-page button {font-size:16px;background:#2d5d4e;color:#fffef4;min-height:50px;}
.entry-page button:disabled {opacity:1;background:#dce5d5;color:#41553c;}
.entry-page .err {font-size:15px;color:#96323e;line-height:1.7;}
.entry-page .hint {font-size:15px;line-height:1.85;color:var(--ink2);background:#eef3e7;border:1px solid #dce4d1;}
@media(min-width:640px) {
  .table-hint {display:none;}
  body {background:#eeeee6;}
  .app {max-width:780px;box-shadow:0 0 60px #253b2d08;}
  .header {border-radius:0 0 28px 28px;padding-inline:32px;}
  .view {padding:28px 28px 0;}
  .nav {max-width:780px;border-radius:0;border-top:1px solid var(--line);border-inline:0;}
  .entry-page {background:#f5f3ed;}
}
@media(max-width:520px) {
  .header {padding-inline:20px;}
  .header .title {font-size:22px;}
  .header .who {max-width:36%;font-size:14px;padding-right:10px;}
  .header .greet {gap:12px;align-items:center;}
  .header .greet .chara-disc {width:82px;height:110px;}
  .header .greet .chara {width:86px;height:110px;}
  .bubble {font-size:15px;padding:14px;}
  .view {padding:20px 14px 0;}
  .card {padding:20px 16px;}
  .card h3 {font-size:19px;}
  .task {padding:14px 12px;gap:10px;}
  .task .ico {width:42px;height:46px;border-radius:12px;}
  .task .t {font-size:17px;}
  .checkbtn {width:44px;height:46px;}
  .money {gap:8px;}
  .money b {font-size:19px;}
  .money div {padding:14px 8px;}
  .wk .d {flex-basis:100%;}
  .wk .r {margin-left:auto;}
  .charslot {grid-template-columns:1fr;}
  .charslot > div {display:grid;grid-template-columns:112px minmax(0,1fr);column-gap:14px;align-items:center;}
  .charslot .pv {grid-row:span 3;height:132px;}
  .charslot small {text-align:left;margin:0 0 10px;}
  .charslot .btn {align-self:start;}
  .chara-pop {right:6px;gap:0;}
  .chara-pop .chara {width:128px;height:160px;flex:none;}
  .chara-pop .bubble {font-size:15px;max-width:220px;margin-bottom:48px;}
  .entry-page .card {padding:28px 24px;}
}
@media(max-width:360px) {
  .header .row {gap:10px;}
  .header .title {font-size:21px;}
  .header .who {padding:5px 8px 5px 5px;}
  .header .who .avatar {width:26px;height:26px;}
  .view {padding-inline:10px;}
  .card {padding:18px 12px;}
  .task .ico {width:36px;height:42px;}
  .task {gap:8px;}
  .task .ico .ic {width:24px;height:24px;}
  .seg button {font-size:14px;}
  .money {grid-template-columns:1fr;}
  .money div {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;}
  .money small {margin:0;}
}

/* ===== 2026-10-01 조정: 관리자 완료처리 색 분리 · 진한 헤더 흰 글씨 · 휴대폰 한 화면 맞춤 ===== */
/* 관리자 완료처리: 검수완료(짙은 녹색)와 구분되는 파란색 */
.cell.excused {background:#2f6fb3;border-color:#2f6fb3;color:#fff;}
/* 상단 헤더: 진한 배경 + 흰 글씨 */
.header .title,.header .title small,.header .who,.header .who span {color:#fff;}
.header .title small {opacity:.92;}
.header .who {background:#ffffff1f;border-color:#ffffff40;}
/* 표 머리행: 진한 배경 + 흰 글씨 (기록표·용돈 합계표 모두) */
table.grid th,table.grid th:first-child {background:var(--b800);color:#fff;}
table.grid th .ic {color:#e3eee4;}
table.grid th .icimg {filter:drop-shadow(0 0 1px #fff);}
/* 기록표는 가로 스크롤 없이 한 화면에 */
.table-hint {display:none;}
.gridwrap {overflow-x:auto;}
table.grid {min-width:0;table-layout:fixed;}
table.grid.sum {min-width:0;table-layout:auto;}
table.grid th,table.grid td {min-width:0;}
table.grid th:first-child,table.grid td:first-child {position:static;box-shadow:none;}
table.grid td:first-child {background:transparent;}
table.grid tr.cur td {background:#f0f5e9;}

@media (max-width:640px) {
  :root {--nav-h:64px;}
  body {font-size:16px;line-height:1.5;}
  label.f {font-size:14px;margin-top:12px;}
  input,select,textarea {min-height:44px;padding:11px 13px;}
  .header {padding:calc(14px + env(safe-area-inset-top)) 18px 18px;border-radius:0 0 24px 24px;}
  .header .row {gap:10px;}
  .header .title {font-size:21px;line-height:1.25;letter-spacing:-.5px;}
  .header .title small {font-size:12.5px;line-height:1.5;margin-top:4px;}
  .header .who {font-size:13px;min-height:40px;max-width:44%;padding:5px 10px 5px 5px;}
  .header .greet {gap:10px;margin-top:12px;}
  .header .greet .chara-disc {width:78px;height:92px;}
  .header .greet .chara {width:80px;height:92px;}
  .bubble {font-size:14px;line-height:1.55;padding:10px 14px;}
  .bubble::before {bottom:16px;}
  .view {padding:14px 12px 0;}
  .card {padding:16px 12px;margin-bottom:14px;border-radius:18px;}
  .card h3 {font-size:17px;margin-bottom:12px;gap:8px;}
  .muted,.tiny {font-size:13.5px;line-height:1.6;}
  .chip {font-size:12px;padding:3px 9px;}
  .weeknav {gap:8px;margin:0 0 14px;}
  .weeknav .lbl {font-size:16px;line-height:1.4;}
  .weeknav .dates {font-size:12.5px;margin-top:2px;}
  .weeknav .lbl .chip {font-size:12px;}
  .iconbtn {width:42px;height:42px;}
  .iconbtn.sm,.item .acts .iconbtn.sm {width:32px;height:32px;}
  .pills {gap:8px;padding-bottom:8px;margin-bottom:6px;}
  .pill {font-size:14px;padding:5px 12px 5px 5px;}
  /* 기록표 */
  table.grid th,table.grid td {padding:8px 2px;}
  table.grid th {font-size:11.5px;line-height:1.3;}
  table.grid th:first-child,table.grid td:first-child {width:70px;}
  table.grid td:first-child {font-size:13px;}
  table.grid td:first-child small {font-size:10.5px;}
  table.grid td:first-child .chip {font-size:10px;padding:1px 6px;}
  table.grid th .ic {width:18px;height:18px;}
  .cell {width:30px;height:30px;border-radius:9px;}
  .cell .ic {width:15px;height:15px;}
  .legend {font-size:12px;gap:8px 12px;margin-top:12px;}
  .legend span.cell {width:20px;height:20px;}
  .legend span.cell .ic {width:11px;height:11px;}
  table.grid.sum th,table.grid.sum td {font-size:12.5px;padding:8px 3px;}
  table.grid.sum th:first-child,table.grid.sum td:first-child {font-size:13px;width:auto;}
  /* 할일·검수 */
  .progress {gap:12px;margin-bottom:12px;}
  .ring,.ring svg {width:64px;height:64px;}
  .ring .pct {font-size:14px;}
  .progress .txt b {font-size:18px;}
  .tasks {gap:10px;}
  .task {padding:12px;gap:10px;}
  .task .ico {width:46px;height:46px;}
  .task .t {font-size:15.5px;line-height:1.4;}
  .task .s {font-size:13px;line-height:1.5;margin-top:2px;}
  .task .meta {font-size:12.5px;}
  .checkbtn {width:46px;height:46px;}
  .mini {padding:10px;gap:10px;}
  .mini .ico {width:36px;height:36px;}
  .mini .t {font-size:15px;line-height:1.35;}
  .mini .t small {font-size:12.5px;}
  .vbtn {font-size:14px;min-height:38px;padding:7px 12px;}
  .btn {font-size:15px;min-height:42px;padding:10px 16px;}
  .btn.sm,.btn.xs {font-size:13px;min-height:34px;padding:6px 10px;}
  .seg {padding:4px;gap:4px;margin-bottom:14px;}
  .seg button {font-size:13px;min-height:38px;padding:8px 6px;}
  /* 용돈 */
  .money {grid-template-columns:repeat(3,1fr);gap:8px;margin:6px 0 12px;}
  .money div {display:block;padding:10px 6px;}
  .money b {font-size:17px;line-height:1.4;}
  .money small {font-size:11.5px;margin-top:2px;}
  .wk {padding:10px 0;gap:8px;flex-wrap:nowrap;}
  .wk .d {flex-basis:auto;}
  .wk .d b {font-size:14.5px;}
  .wk .d small {font-size:12px;line-height:1.5;}
  .wk .pt {font-size:15px;}
  .wk .r .chip {font-size:12px;min-width:64px;}
  .wk .r .pt {min-width:72px;}
  /* 관리 */
  .item {padding:10px;gap:10px;flex-wrap:nowrap;}
  .item .t {font-size:14.5px;line-height:1.4;}
  .item .t small {font-size:12.5px;white-space:nowrap;}
  .feed div {font-size:14px;padding:10px;line-height:1.6;}
  .radio-list label {font-size:14.5px;}
  .radio-list small {font-size:12.5px;}
  .charslot .pv {height:110px;}
  .charslot .pv img,.charslot .pv svg {max-height:104px;height:auto;}
  .charslot small {font-size:13px;}
  /* 하단 메뉴·모달 */
  .nav {padding:4px 6px calc(4px + env(safe-area-inset-bottom));height:calc(var(--nav-h) + env(safe-area-inset-bottom));}
  .nav button {font-size:12px;gap:2px;}
  .nav button .ic {width:22px;height:22px;}
  .modal .sheet {padding:18px 16px calc(18px + env(safe-area-inset-bottom));}
  .modal h2 {font-size:19px;}
  .modal p {font-size:14.5px;line-height:1.6;}
  .toast {font-size:14px;}
  .chara-pop .chara {width:120px;height:140px;}
  .chara-pop .bubble {font-size:14px;margin-bottom:44px;}
  .overlay .chara-disc {height:min(56vh,300px);width:min(62vw,240px);}
  .overlay .chara {height:min(52vh,280px);width:min(58vw,220px);}
}
@media (max-width:360px) {
  .header .title {font-size:19px;}
  table.grid th:first-child,table.grid td:first-child {width:62px;}
  table.grid th {font-size:10.5px;}
  .cell {width:27px;height:27px;}
  .money b {font-size:15px;}
}

/* 부제: 제목 줄 아래 전체 폭으로 (계정 버튼 옆에서 접히지 않게) */
.header .row {align-items:center;}
.header .tagline {position:relative;z-index:1;margin:6px 0 0;color:#fff;opacity:.92;font-size:14px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;}
@media (max-width:640px) {.header .tagline {font-size:13px;margin-top:4px;}}
@media (max-width:360px) {.header .tagline {font-size:12px;}}
/* 제목 한 줄: 남는 폭을 모두 쓰고 줄바꿈하지 않음 (글씨 크기는 app.js fitTitle이 자동 조정) */
.header .title {flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0;background:none;border:0;text-align:left;}
.header .who {flex:none;}
/* 캐릭터 팝업: 말풍선을 캐릭터 바로 왼쪽에 붙임 (오른쪽 정렬, 내용 폭만큼만) */
.chara-pop {left:auto;right:10px;justify-content:flex-end;gap:0;}
.chara-pop .bubble {flex:0 1 auto;max-width:240px;position:relative;z-index:1;}
/* 캐릭터 그림은 좌우에 투명 여백이 있어서, 말풍선 꼬리가 몸에 닿도록 살짝 겹침 */
.chara-pop .chara {margin-left:-16px;}
@media (max-width:640px) {
  .chara-pop {left:auto;right:6px;}
  .chara-pop .bubble {max-width:220px;}
}
@media (max-width:360px) {
  .chara-pop .bubble {max-width:190px;}
}
/* 전체 점검 수정 (2026-10-01) */
/* 제목 줄의 '추가' 버튼 아이콘이 버튼 색과 같아 안 보이던 문제 */
.card h3 .btn .ic,.modal h2 .btn .ic {color:inherit;}
/* 보관된 할일은 예전처럼 흐리게 */
.item.archived {opacity:.6;}
/* 활동: 시간은 같은 줄 끝에 (새 줄로 내려가 높이가 두 배 되던 것 되돌림) */
.feed small {display:inline;margin:0 0 0 6px;font-size:12.5px;}
@media (max-width:640px) {
  /* 캐릭터 이미지 3칸 나란히 (예전 배치) */
  .charslot {grid-template-columns:repeat(3,1fr);gap:8px;}
  .charslot > div {display:block;text-align:center;padding:8px 6px;}
  .charslot .pv {grid-row:auto;height:110px;}
  .charslot small {text-align:center;margin:4px 0 6px;font-size:12px;}
  .charslot small span {font-size:11px;}
  .charslot .btn {width:100%;font-size:12px;padding:6px 4px;min-height:34px;}
}
/* 축하 화면: 캐릭터 뒤 흰 원 (예전 모습) — 원이 찌그러지지 않게 정사각형 */
.overlay .chara-disc {width:min(70vw,300px);height:min(70vw,300px);}
.overlay .chara-disc::before {display:block;content:'';position:absolute;inset:4%;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.95),rgba(255,255,255,.55) 70%,rgba(255,255,255,0) 72%);}
.overlay .chara {position:relative;width:100%;height:100%;}
@media (max-width:640px) {
  .overlay .chara-disc {width:min(66vw,260px);height:min(66vw,260px);}
  .overlay .chara {width:100%;height:100%;}
}
.overlay .chara {width:min(66vw,284px);height:min(66vw,284px);}
@media (max-width:640px) {.overlay .chara {width:min(62vw,244px);height:min(62vw,244px);}}
/* 축하 화면 흰 원 크게 */
.overlay .chara-disc {width:min(80vw,400px);height:min(80vw,400px);}
.overlay .chara {width:min(76vw,380px);height:min(76vw,380px);}
.overlay .chara-disc::before {inset:1%;}
@media (max-width:640px) {
  .overlay .chara-disc {width:min(86vw,360px);height:min(86vw,360px);}
  .overlay .chara {width:min(82vw,344px);height:min(82vw,344px);}
}
@media (max-height:700px) and (max-width:640px) {
  .overlay .chara-disc {width:min(74vw,300px);height:min(74vw,300px);}
  .overlay .chara {width:min(70vw,286px);height:min(70vw,286px);}
}
/* 축하 화면: 원과 캐릭터가 함께 통통 튀는 점프 (예전 모습) */
.overlay .chara-disc {animation:jump 1.1s ease-in-out infinite;}
@media (prefers-reduced-motion:reduce) {.overlay .chara-disc {animation:none;}}
/* 헤더 계정 버튼: 짙은 헤더 위에서 또렷하게 (크림색 바탕 + 진한 글씨) */
.header .who {background:#fffdf5;border:1px solid #fff;box-shadow:0 2px 6px #0b281b33;color:var(--b800);}
.header .who span {color:var(--b800);font-weight:800;}
.header .who .avatar {border:1px solid #20382d1f;}
.header .who:active {transform:scale(.97);}
/* 구성원 목록의 담당 표시(└) 진하게 */
.item .sub {color:var(--b600);}
