:root {
  --ink: #3e3027;
  --muted: #786b61;
  --cream: #fff9ed;
  --paper: #fffef9;
  --orange: #eb7f36;
  --orange-dark: #bd5728;
  --gold: #f5b84d;
  --green: #63834d;
  --green-dark: #446339;
  --rust: #a9482f;
  --line: #eadfce;
  --shadow: 0 18px 48px rgba(94, 64, 38, .12);
  --radius-lg: 28px;
  --radius-md: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  background:
    radial-gradient(circle at 7% 22%, rgba(245,184,77,.16) 0 7%, transparent 7.2%),
    radial-gradient(circle at 92% 8%, rgba(218,112,53,.12) 0 9%, transparent 9.2%),
    linear-gradient(180deg, #fbf4e3 0%, #fffaf1 52%, #f7f1df 100%);
  overflow-x: hidden;
}
button, input { font: inherit; }
button { color: inherit; }
button, .brand { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, .brand:focus-visible { outline: 3px solid rgba(235,127,54,.36); outline-offset: 3px; }
.topbar { background: rgba(255,253,247,.86); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(198,174,142,.34); position: relative; z-index: 5; }
.topbar-inner { max-width: 1160px; margin: auto; min-height: 78px; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; background: #fff2d5; border-radius: 15px; transform: rotate(-3deg); }
.brand-mark svg { width: 38px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 18px; letter-spacing: -.6px; }
.brand small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.season-chip, .date-chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 13px; font-size: 13px; font-weight: 750; white-space: nowrap; }
.season-chip { color: #9b4d2d; background: #fff3df; border-color: #f2d4a7; }
.date-chip { color: var(--muted); }
.page-shell { max-width: 1160px; margin: 0 auto; padding: 30px 24px 36px; }
.welcome { min-height: 188px; position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 33px 38px; display: flex; align-items: center; background: linear-gradient(125deg, #fff9e9 0%, #f8e8c4 100%); border: 1px solid #ead8b6; box-shadow: 0 10px 28px rgba(95,67,40,.08); }
.welcome::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.38); right: 12%; top: -100px; }
.welcome-copy { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 7px; color: var(--orange-dark); font-size: 13px; font-weight: 850; letter-spacing: .06em; }
.welcome h1 { margin: 0; max-width: 560px; font-size: clamp(28px, 3.1vw, 42px); line-height: 1.23; letter-spacing: -1.8px; }
.welcome h1 em { color: var(--orange-dark); font-style: normal; }
.welcome-copy > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.week-nav { margin: 22px 0; }
.week-tabs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.day-tab { min-width: 0; border: 1px solid var(--line); border-radius: 17px; padding: 12px 6px 10px; background: rgba(255,255,255,.72); cursor: pointer; transition: transform .18s, background .18s, border-color .18s, box-shadow .18s; }
.day-tab:hover { transform: translateY(-2px); background: #fff; }
.day-tab .short { display: block; color: var(--muted); font-size: 11px; font-weight: 700; margin-bottom: 4px; }
.day-tab .kor { font-size: 16px; font-weight: 850; }
.day-tab .done-dot { display: block; width: 18px; height: 4px; margin: 7px auto 0; border-radius: 99px; background: #e9dece; overflow: hidden; }
.day-tab .done-dot::after { content: ""; display: block; width: var(--day-progress, 0%); height: 100%; background: var(--orange); transition: width .25s; }
.day-tab.active { color: #fff; border-color: var(--orange); background: linear-gradient(145deg, #f59645, #dc6b31); box-shadow: 0 9px 19px rgba(211,103,45,.25); transform: translateY(-2px); }
.day-tab.active .short { color: rgba(255,255,255,.78); }
.day-tab.active .done-dot { background: rgba(255,255,255,.28); }
.day-tab.active .done-dot::after { background: #fff; }
.day-tab.today:not(.active) { border-color: #dfa970; background: #fff9eb; }
.dashboard { display: grid; grid-template-columns: 310px minmax(0,1fr); gap: 20px; align-items: start; }
.progress-card, .tasks-card { background: rgba(255,254,249,.94); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.progress-card { padding: 25px 24px 22px; position: sticky; top: 20px; text-align: center; }
.progress-topline { display: flex; justify-content: space-between; align-items: center; }
.mini-label { color: var(--green-dark); font-size: 13px; font-weight: 850; }
.progress-fraction { background: #f4eddf; border-radius: 999px; padding: 5px 9px; color: var(--muted); font-size: 12px; font-weight: 800; }
.ring-wrap { width: 172px; height: 172px; margin: 16px auto 8px; display: grid; place-items: center; position: relative; }
.progress-ring { width: 150px; height: 150px; transform: rotate(-90deg); }
.progress-ring circle { fill: none; stroke-width: 12; }
.ring-track { stroke: #f0e8da; }
.ring-value { stroke: var(--orange); stroke-linecap: round; stroke-dasharray: 358.14; stroke-dashoffset: 358.14; transition: stroke-dashoffset .45s cubic-bezier(.2,.8,.2,1); }
.ring-center { position: absolute; display: flex; flex-direction: column; }
.ring-center strong { font-size: 29px; line-height: 1; letter-spacing: -1.5px; }
.ring-center span { margin-top: 5px; color: var(--muted); font-size: 11px; }
.ring-leaf { position: absolute; filter: drop-shadow(0 3px 3px rgba(80,50,20,.12)); }
.ring-leaf-a { right: 6px; top: 25px; font-size: 24px; transform: rotate(20deg); }
.ring-leaf-b { left: 9px; bottom: 25px; font-size: 19px; transform: rotate(-30deg); }
.progress-card h2 { margin: 5px 0 4px; font-size: 19px; letter-spacing: -.5px; }
.progress-card > p { color: var(--muted); margin: 0; font-size: 13px; line-height: 1.6; }
.acorn-row { min-height: 27px; margin: 14px 0 15px; display: flex; justify-content: center; gap: 4px; }
.acorn { width: 22px; height: 22px; opacity: .22; transition: opacity .2s, transform .2s; }
.acorn.on { opacity: 1; transform: translateY(-2px) rotate(-5deg); }
.reset-button { width: 100%; border: 1px solid var(--line); border-radius: 13px; padding: 10px; color: var(--muted); background: #fff; font-size: 12px; font-weight: 750; cursor: pointer; }
.reset-button:hover { border-color: #d9b786; color: var(--orange-dark); }
.reset-button svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; margin-right: 4px; }
.tasks-card { padding: 23px 26px 20px; min-height: 500px; }
.submission { display: flex; align-items: center; gap: 13px; padding: 13px 15px; border-radius: 17px; background: linear-gradient(100deg, #fff0d4, #fff7e8); border: 1px solid #efd0a2; }
.submission.none { background: #f5f2eb; border-color: #e3ded4; }
.submission-icon { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: #d97930; }
.submission.none .submission-icon { background: #8f877d; }
.submission-icon svg { width: 31px; }
.submission div:nth-child(2) { min-width: 0; }
.submission span:not(.submission-badge) { display: block; color: #9a5a31; font-size: 11px; font-weight: 750; }
.submission strong { display: block; font-size: 16px; margin-top: 2px; white-space: normal; }
.submission-badge { margin-left: auto; flex: 0 0 auto; border-radius: 99px; padding: 6px 9px; background: #fff; color: #a75328; font-size: 11px; font-weight: 800; }
.tasks-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 24px 1px 14px; }
.section-kicker { margin: 0 0 2px; color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.tasks-heading h2 { margin: 0; font-size: 23px; letter-spacing: -.7px; }
.add-button { display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: 12px; padding: 9px 12px; color: #fff; background: var(--green); font-size: 12px; font-weight: 800; cursor: pointer; box-shadow: 0 6px 12px rgba(68,99,57,.18); }
.add-button:disabled { background: #b9b3aa; cursor: not-allowed; box-shadow: none; }
.add-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.add-form { margin: -2px 0 13px; padding: 14px; background: #f4f7ee; border: 1px solid #dce6d3; border-radius: 15px; }
.add-form label { display: block; margin-bottom: 7px; color: var(--green-dark); font-size: 12px; font-weight: 850; }
.add-form-row { display: flex; gap: 7px; }
.add-form input { min-width: 0; flex: 1; border: 1px solid #cfdac6; border-radius: 10px; padding: 10px 11px; background: #fff; }
.add-form-row button { border: 0; border-radius: 10px; padding: 0 13px; background: var(--green); color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
.add-form-row .cancel-add { color: var(--muted); background: #e9e7e0; }
.add-form small { display: block; color: var(--muted); margin-top: 7px; font-size: 11px; }
.task-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.task-item { min-height: 57px; display: flex; align-items: center; gap: 11px; border: 1px solid #e8dfd2; border-radius: 16px; padding: 9px 9px 9px 13px; background: #fff; transition: transform .18s, opacity .18s, background .18s, border-color .18s; }
.task-item:hover { transform: translateX(2px); border-color: #ddc3a2; }
.task-item.completed { background: #faf8f2; opacity: .72; }
.task-check { flex: 0 0 29px; width: 29px; height: 29px; padding: 0; border: 2px solid #d7c8b3; border-radius: 10px; background: #fffaf2; cursor: pointer; display: grid; place-items: center; transition: background .18s, border-color .18s, transform .18s; }
.task-check:hover { transform: scale(1.05); border-color: var(--orange); }
.task-check svg { width: 17px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.6); transition: opacity .18s, transform .18s; }
.completed .task-check { border-color: var(--green); background: var(--green); }
.completed .task-check svg { opacity: 1; transform: scale(1); }
.task-name { min-width: 0; flex: 1; font-size: 14px; font-weight: 720; line-height: 1.35; word-break: keep-all; }
.completed .task-name { color: #958b82; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.custom-tag { display: inline-block; margin-left: 6px; padding: 2px 5px; border-radius: 5px; color: var(--green-dark); background: #e9f0e2; font-size: 9px; vertical-align: 2px; }
.task-actions { display: flex; gap: 4px; }
.icon-button { width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: #9a8e83; display: grid; place-items: center; cursor: pointer; }
.icon-button:hover { color: var(--orange-dark); background: #fff0dd; }
.icon-button.delete:hover { color: #a84539; background: #fceae7; }
.icon-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.task-help { margin: 14px 2px 0; color: #9a8c7e; font-size: 11px; }
footer { min-height: 88px; margin-top: 24px; padding: 12px 28px; border-radius: 24px; display: flex; align-items: center; gap: 18px; color: #fff; background: linear-gradient(110deg, #536f42, #71894f); overflow: hidden; position: relative; }
footer::after { content: ""; position: absolute; width: 220px; height: 220px; border: 30px solid rgba(255,255,255,.06); border-radius: 50%; right: -90px; top: -88px; }
footer p { margin: 0; position: relative; z-index: 1; }
footer strong, footer span { display: block; }
footer strong { font-size: 15px; }
footer p span { margin-top: 4px; color: rgba(255,255,255,.73); font-size: 12px; }
.footer-leaves { margin-left: auto; font-size: 22px; letter-spacing: 6px; position: relative; z-index: 1; }
.move-dialog { width: min(430px, calc(100% - 32px)); border: 0; border-radius: 25px; padding: 0; color: var(--ink); background: #fffdf8; box-shadow: 0 30px 90px rgba(53,38,27,.28); }
.move-dialog::backdrop { background: rgba(49,36,28,.47); backdrop-filter: blur(3px); }
.move-dialog form { padding: 28px 24px 22px; text-align: center; }
.dialog-close { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; color: #998d84; font-size: 28px; cursor: pointer; }
.dialog-icon { width: 54px; height: 54px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 18px; background: #fff0d7; font-size: 28px; }
.move-dialog h2 { margin: 0; font-size: 21px; }
.move-dialog p { margin: 6px 0 16px; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.move-days { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.move-day-button { border: 1px solid var(--line); border-radius: 12px; padding: 10px 5px; background: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
.move-day-button:hover { color: #fff; background: var(--orange); border-color: var(--orange); }
.move-day-button:disabled { color: #bbb; background: #f3f0eb; cursor: not-allowed; }
.dialog-cancel { width: 100%; margin-top: 12px; padding: 10px; border: 0; border-radius: 12px; color: var(--muted); background: #f1ede6; font-size: 12px; font-weight: 800; cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 30; transform: translate(-50%, 20px); padding: 11px 17px; border-radius: 999px; color: #fff; background: #3d342e; box-shadow: 0 10px 30px rgba(0,0,0,.2); font-size: 13px; font-weight: 750; opacity: 0; visibility: hidden; transition: .25s; }
.toast.show { transform: translate(-50%,0); opacity: 1; visibility: visible; }
.celebration { position: fixed; inset: 0; z-index: 25; pointer-events: none; overflow: hidden; }
.confetti { position: absolute; top: -30px; animation: fall var(--duration) ease-in forwards; font-size: var(--size); left: var(--left); animation-delay: var(--delay); }
@keyframes fall { 0% { transform: translateY(-20px) rotate(0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translateY(105vh) rotate(540deg); opacity: .85; } }
@media (max-width: 800px) {
  .topbar-inner { min-height: 68px; padding: 10px 16px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand strong { font-size: 15px; }
  .brand small, .season-chip { display: none; }
  .date-chip { padding: 8px 10px; font-size: 11px; }
  .page-shell { padding: 18px 14px 26px; }
  .welcome { min-height: 164px; padding: 24px 22px; }
  .welcome h1 { font-size: 27px; }
  .welcome-copy > p:last-child { font-size: 12px; max-width: 190px; }
  .week-nav { margin: 15px -14px; padding: 3px 14px 6px; overflow-x: auto; scrollbar-width: none; }
  .week-nav::-webkit-scrollbar { display: none; }
  .week-tabs { width: max-content; display: flex; gap: 7px; }
  .day-tab { width: 65px; padding: 10px 5px 8px; }
  .dashboard { grid-template-columns: 1fr; gap: 14px; }
  .progress-card { position: static; padding: 17px 18px; display: grid; grid-template-columns: 106px 1fr; grid-template-rows: auto auto auto; column-gap: 15px; text-align: left; align-items: center; }
  .progress-topline { grid-column: 1/-1; }
  .ring-wrap { width: 106px; height: 106px; grid-row: 2/4; margin: 7px 0 0; }
  .progress-ring { width: 100px; height: 100px; }
  .progress-ring circle { stroke-width: 13px; }
  .ring-center strong { font-size: 22px; }
  .ring-center span { font-size: 9px; }
  .ring-leaf { display: none; }
  .progress-card h2 { align-self: end; margin: 8px 0 2px; }
  .progress-card > p { align-self: start; }
  .acorn-row { display: none; }
  .reset-button { grid-column: 1/-1; margin-top: 11px; }
  .tasks-card { min-height: 0; padding: 17px 14px; border-radius: 23px; }
  .submission { padding: 11px; }
  .submission-badge { display: none; }
  .tasks-heading { margin-top: 20px; }
  .tasks-heading h2 { font-size: 20px; }
  .task-item { min-height: 55px; padding-left: 10px; }
  .task-name { font-size: 13px; }
  footer { margin-top: 16px; padding: 11px 16px; border-radius: 20px; }
  .footer-leaves { display: none; }
  footer strong { font-size: 13px; }
}
@media (max-width: 430px) {
  .welcome { min-height: 150px; }
  .welcome h1 { font-size: 24px; }
  .add-form-row { flex-wrap: wrap; }
  .add-form input { flex-basis: 100%; }
  .add-form-row button { min-height: 36px; flex: 1; }
  .move-days { grid-template-columns: repeat(3,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
/* illustration-free icon system */
.season-chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; margin-right: 2px; }
.welcome-icon { position: absolute; right: 42px; bottom: 7px; width: 210px; height: 180px; pointer-events: none; filter: drop-shadow(0 12px 18px rgba(111,72,37,.12)); }
.welcome-icon svg { width: 100%; height: 100%; overflow: visible; }
.icon-blob { fill: #F5C45E; }
.icon-sheet { fill: #FFFDF7; stroke: #8A492D; stroke-width: 4; stroke-linejoin: round; }
.icon-clip { fill: #63834D; }
.icon-check { fill: none; stroke: #D96F31; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.icon-line { fill: none; stroke: #D8C9B5; stroke-width: 5; stroke-linecap: round; }
.icon-star { fill: #D96F31; }
.icon-leaf { fill: #63834D; stroke: #446339; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ring-leaf svg { width: 25px; height: 25px; fill: #D96F31; stroke: #9B4D2D; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ring-leaf-b svg { width: 20px; height: 20px; fill: #F5B84D; }
.task-help { display: flex; align-items: center; gap: 5px; }
.task-help svg { flex: 0 0 15px; width: 15px; height: 15px; fill: none; stroke: #9A8C7E; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-icon { flex: 0 0 60px; width: 60px; height: 60px; position: relative; z-index: 1; }
.footer-leaves svg { width: 48px; height: 28px; fill: #F5B84D; stroke: rgba(255,255,255,.75); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dialog-icon svg { width: 30px; height: 30px; fill: none; stroke: #A75328; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 800px) {
  .welcome-icon { right: 4px; bottom: 2px; width: 157px; height: 145px; }
  .footer-icon { flex-basis: 49px; width: 49px; height: 49px; }
}
@media (max-width: 430px) {
  .welcome-icon { right: -8px; width: 145px; opacity: .96; }
}
