:root {
  --bg: #F7F3EE; --card: #FFFFFF; --line: #E8DFD4; --line2: #D9CFC3; --beige: #EFE6DA;
  --petrol: #0F5960; --petrol-d: #0B4449; --petrol-l: #E3EEEE;
  --berry: #A45F72; --berry-d: #8C4860; --berry-l: #F3E6EA;
  --ink: #1F2A29; --ink2: #3A4746; --mute: #5E6B69;
  --serif: 'Playfair Display', Georgia, serif; --sans: 'DM Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
a { color: var(--petrol); text-decoration: none; }
.shell { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.loading { padding: 40px 24px; color: var(--mute); }
.page { flex: 1; padding: 20px 20px 110px; display: flex; flex-direction: column; gap: 18px; }
.page.plain { padding-bottom: 32px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.brand { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--petrol); }
.pill { font-size: 13px; font-weight: 600; color: var(--berry-d); background: var(--berry-l); padding: 6px 12px; border-radius: 999px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--berry-d); text-transform: uppercase; }
h1 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.15; }
h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.2; }
h3 { margin: 0; font-size: 17px; font-weight: 700; }
p { margin: 0; line-height: 1.5; }
.muted { color: var(--mute); font-size: 13px; line-height: 1.45; }
.label { font-size: 13px; font-weight: 600; color: var(--mute); }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 10px; align-items: center; }
.wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.card.beige { background: var(--beige); border-color: var(--beige); }
.card.berry { background: var(--berry-l); border-color: var(--berry-l); }
.card.petrol { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.card.petrol .muted, .card.petrol .eyebrow { color: #CFE1E2; }
.mark { flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--petrol); display: inline-flex; align-items: center; justify-content: center; }
.chip { min-height: 40px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; background: #fff; color: var(--ink); border: 1px solid var(--line2); }
.chip.on { background: var(--petrol); color: #fff; border-color: var(--petrol); }
.chip.berryon { background: var(--berry-d); color: #fff; border-color: var(--berry-d); }
.tchips { display: flex; gap: 6px; }
.tchips .chip { flex: 1; padding: 8px 0; border-radius: 12px; min-height: 44px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 20px; border-radius: 999px; border: none; cursor: pointer; background: var(--petrol); color: #fff; font-size: 16px; font-weight: 700; width: 100%; }
.btn:disabled { background: #8FA9AB; cursor: default; }
.btn.small { min-height: 44px; font-size: 14px; width: auto; padding: 0 16px; }
.btn.ghost { background: #fff; color: var(--petrol); border: 1px solid var(--petrol); }
.btn.berry { background: var(--berry-d); }
.btn.text { background: none; color: var(--petrol); min-height: 44px; font-size: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field input, .field textarea, .field select { min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line2); background: #fff; font-size: 16px; }
.field textarea { min-height: 110px; resize: vertical; line-height: 1.45; }
.option { display: flex; flex-direction: column; gap: 2px; text-align: left; min-height: 56px; padding: 14px 16px; border-radius: 14px; cursor: pointer; background: #fff; border: 2px solid var(--line); width: 100%; }
.option.on { background: var(--berry-l); border-color: var(--berry-d); }
.option b { font-size: 16px; }
.option span { font-size: 13px; color: var(--mute); }
.progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress > div { height: 6px; background: var(--petrol); border-radius: 999px; transition: width .3s; }
.task { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; min-height: 56px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; }
.box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid #B9AFA3; display: flex; align-items: center; justify-content: center; background: #fff; }
.task.done .box { background: var(--petrol); border-color: var(--petrol); }
.task .t { flex: 1; font-size: 15px; line-height: 1.35; }
.task.done .t { text-decoration: line-through; color: #6B7675; }
.task .m { flex: none; font-size: 12px; color: var(--mute); }
.taskdetail { font-size: 14px; line-height: 1.45; color: var(--ink2); background: var(--beige); border-radius: 12px; padding: 12px; margin-top: -4px; white-space: pre-line; }
.reelcard { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; color: var(--ink); }
.thumb { flex: none; width: 84px; height: 150px; border-radius: 12px; background: var(--petrol); display: flex; flex-direction: column; justify-content: space-between; padding: 10px; color: #fff; font-size: 10px; font-weight: 700; line-height: 1.3; }
.sos { display: flex; flex-direction: column; gap: 4px; align-items: center; border: 2px solid var(--berry-d); border-radius: 16px; padding: 14px; color: var(--berry-d); text-align: center; }
.nav { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; background: #fff; border-top: 1px solid var(--line); padding: 8px 4px calc(10px + env(safe-area-inset-bottom)); z-index: 10; }
.nav .in { width: 100%; max-width: 480px; display: flex; justify-content: space-around; }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 50px; padding: 4px; font-size: 11px; font-weight: 500; color: var(--mute); }
.nav a.on { color: var(--petrol); font-weight: 700; }
.back { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 5; }
.back a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.tile { display: flex; flex-direction: column; justify-content: space-between; height: 130px; border-radius: 12px; padding: 8px; color: #fff; }
.tile .k { align-self: flex-start; font-size: 10px; font-weight: 700; color: var(--ink); background: rgba(255,255,255,.85); padding: 3px 6px; border-radius: 6px; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.day { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 72px; padding: 8px 0; border-radius: 12px; cursor: pointer; background: #fff; border: 1px solid var(--line); }
.day.on { background: var(--petrol); color: #fff; border-color: var(--petrol); }
.day b { font-size: 17px; } .day span { font-size: 11px; }
.switch { flex: none; width: 52px; height: 32px; border-radius: 999px; border: none; cursor: pointer; padding: 3px; display: flex; background: #B9AFA3; }
.switch.on { background: var(--petrol); justify-content: flex-end; }
.switch i { width: 26px; height: 26px; border-radius: 50%; background: #fff; display: block; }
.list { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.list > * { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid #F0E9E0; font-size: 14px; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; }
.list > *:last-child { border-bottom: none; }
.notice { font-size: 13px; line-height: 1.45; color: var(--ink2); background: var(--beige); border-radius: 12px; padding: 12px 14px; }
.error { font-size: 14px; color: #8A2E3B; background: #FBE9EC; border-radius: 12px; padding: 12px 14px; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px; z-index: 50; max-width: 90vw; }
.demo { font-size: 12px; text-align: center; color: var(--berry-d); background: var(--berry-l); padding: 6px; }
