@import url('data:text/css,');

:root {
  --ink: #173b34;
  --muted: #687a75;
  --green: #245c4f;
  --green-2: #2f7765;
  --mint: #dfeee7;
  --mint-soft: #eff7f3;
  --cream: #fbf7ef;
  --paper: #fffdfa;
  --line: #dfe5df;
  --amber: #e9a638;
  --coral: #d76458;
  --done: #dff2e4;
  --done-strong: #26744b;
  --blocked: #f8dfdc;
  --blocked-strong: #a63e36;
  --pending: #f3ead6;
  --shadow: 0 10px 30px rgba(25, 60, 51, .09);
  --radius: 20px;
  font-family: Inter, ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--cream); }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--cream); color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid rgba(233,166,56,.55); outline-offset: 2px; }
button:disabled { opacity: .48; cursor: not-allowed; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.noscript { padding: 1rem; color: white; background: var(--blocked-strong); text-align: center; }

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: .5rem; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.04; letter-spacing: -.05em; }
h2 { letter-spacing: -.025em; }
.eyebrow { margin-bottom: .65rem; color: var(--green-2); font-size: .75rem; font-weight: 800; letter-spacing: .15em; }
.lead { color: var(--muted); font-size: 1.07rem; line-height: 1.5; }

.login-shell { display: grid; grid-template-columns: minmax(320px, .92fr) minmax(440px, 1.08fr); min-height: 100vh; }
.login-art { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: clamp(2rem,5vw,4.5rem); background: var(--green); color: white; }
.login-art::after { content: ""; position: absolute; inset: auto -20% -18% 25%; height: 56%; border-radius: 50%; background: rgba(255,255,255,.035); }
.login-art p { position: relative; z-index: 2; margin: 0; font-size: clamp(1.45rem, 3vw, 2.45rem); font-weight: 650; line-height: 1.18; letter-spacing: -.035em; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--amber); color: #17352e; font-size: .85rem; font-weight: 900; letter-spacing: -.03em; box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.brand-mark--large { position: relative; z-index: 3; width: 58px; height: 58px; border-radius: 17px; font-size: 1.1rem; }
.login-illustration { position: relative; width: min(100%, 520px); height: 320px; margin: 0 auto; }
.sun { position: absolute; top: 18px; right: 18%; width: 72px; height: 72px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 15px rgba(233,166,56,.12); }
.hill { position: absolute; bottom: 0; left: -10%; width: 110%; height: 54%; border-radius: 55% 55% 0 0; background: #347363; transform: rotate(-4deg); }
.hill--two { left: 35%; width: 80%; height: 44%; background: #2d6a5b; transform: rotate(6deg); }
.house { position: absolute; z-index: 2; right: 20%; bottom: 54px; width: 122px; height: 104px; border-radius: 8px 8px 3px 3px; background: #f7e9c8; box-shadow: inset 0 -10px rgba(0,0,0,.03); }
.house::before { content: ""; position: absolute; left: -13px; top: -50px; border-left: 74px solid transparent; border-right: 74px solid transparent; border-bottom: 62px solid #d76558; }
.house i { position: absolute; left: 22px; bottom: 0; width: 34px; height: 59px; border-radius: 17px 17px 0 0; background: #e9a638; }
.person { position: absolute; z-index: 4; bottom: 35px; left: 22%; width: 30px; height: 76px; border-radius: 18px 18px 9px 9px; background: #f1c8a8; box-shadow: inset 0 -48px #e9a638; }
.person::before { content: ""; position: absolute; top: -19px; left: 4px; width: 23px; height: 23px; border-radius: 50%; background: #f1c8a8; box-shadow: inset 0 7px #633d31; }
.person--two { left: 36%; height: 83px; box-shadow: inset 0 -53px #d76458; }
.person--small { left: 31%; bottom: 25px; width: 24px; height: 56px; box-shadow: inset 0 -35px #71a9a0; }
.person--small::before { width: 19px; height: 19px; }
.login-panel { display: grid; place-items: center; padding: 2rem; }
.login-card { width: min(100%, 440px); }
.login-card form { margin-top: 2.1rem; }
label { display: block; margin: 0 0 .45rem; font-size: .87rem; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 11px; background: white; transition: border-color .15s, box-shadow .15s; }
input, select { min-height: 44px; padding: .72rem .85rem; }
textarea { resize: vertical; padding: .7rem .8rem; line-height: 1.4; }
input:hover, select:hover, textarea:hover { border-color: #a9bbb5; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin-bottom: 1.2rem; }
.segmented label { margin: 0; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented span { display: block; padding: .78rem; border: 1px solid var(--line); border-radius: 12px; background: white; text-align: center; }
.segmented input:checked + span { border-color: var(--green); background: var(--mint); color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.segmented input:focus-visible + span { outline: 3px solid rgba(233,166,56,.55); outline-offset: 2px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 3.2rem; }
.password-wrap .icon-button { position: absolute; top: 3px; right: 3px; }
.field-help { margin: .4rem 0 .4rem; color: var(--muted); font-size: .79rem; }
.form-error { min-height: 1.2em; margin: .4rem 0; color: var(--blocked-strong); font-size: .84rem; font-weight: 700; }
.privacy-note { margin-top: 1.5rem; color: var(--muted); font-size: .78rem; text-align: center; }
.privacy-note span { color: var(--green-2); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 42px; padding: .68rem 1rem; border: 1px solid transparent; border-radius: 11px; font-weight: 750; text-decoration: none; transition: transform .12s, filter .12s, background .12s; }
.button:hover { filter: brightness(.98); transform: translateY(-1px); }
.button--wide { width: 100%; margin-top: .8rem; }
.button--primary { background: var(--green); color: white; box-shadow: 0 7px 18px rgba(36,92,79,.18); }
.button--secondary { border-color: var(--line); background: white; color: var(--green); }
.button--quiet { background: transparent; color: var(--green); }
.button--success { background: var(--done-strong); color: white; }
.button--danger { border-color: #e8b1ab; background: #fff6f4; color: var(--blocked-strong); }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: transparent; }
.icon-button:hover { background: rgba(36,92,79,.08); }
.icon-button--border { border: 1px solid var(--line); background: white; }

.app-shell { min-height: 100vh; }
.topbar { position: sticky; z-index: 20; top: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 72px; padding: .65rem clamp(1rem,4vw,3rem); border-bottom: 1px solid rgba(223,229,223,.85); background: rgba(255,253,250,.94); backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: .75rem; width: max-content; color: var(--ink); text-decoration: none; }
.brand strong, .brand small { display: block; line-height: 1.05; }
.brand strong { font-size: 1.05rem; }
.brand small { color: var(--muted); font-size: .76rem; }
.main-nav { display: flex; gap: .25rem; padding: .3rem; border-radius: 14px; background: #f0eee7; }
.nav-button { display: flex; align-items: center; gap: .45rem; min-height: 38px; padding: .55rem .9rem; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 750; }
.nav-button.is-active { background: white; color: var(--green); box-shadow: 0 2px 9px rgba(28,63,54,.1); }
.user-menu { display: flex; align-items: center; justify-content: flex-end; gap: .55rem; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--mint); color: var(--green); font-weight: 850; }
.user-name { font-weight: 750; }
.install-button { min-height: 36px; padding: .45rem .7rem; font-size: .82rem; }
.app-main { width: min(100%, 1560px); margin: 0 auto; padding: clamp(1.15rem,3vw,2.3rem) clamp(.85rem,3vw,2.2rem) 4rem; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.2rem; }
.page-heading h1 { font-size: clamp(2rem,4vw,3rem); }
.page-heading p { margin: 0; color: var(--muted); }
.week-heading-actions { display: grid; justify-items: end; gap: .5rem; }
.week-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.week-picker { display: flex; align-items: center; gap: .5rem; }
.week-current { min-width: 218px; margin: 0; padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: white; text-align: center; }
.week-current span { display: block; color: var(--muted); font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.week-current input { min-height: 25px; padding: 0; border: 0; background: transparent; color: var(--ink); font-weight: 800; text-align: center; }
.status-legend { display: flex; flex-wrap: wrap; gap: 1.1rem; margin: -.55rem 0 .85rem; color: var(--muted); font-size: .76rem; font-weight: 650; }
.status-legend span { display: flex; align-items: center; gap: .35rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pending); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.dot--done { background: var(--done-strong); }
.dot--blocked { background: var(--blocked-strong); }
.days-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-rows: 1fr; gap: .8rem; align-items: stretch; }
.day-card { display: flex; flex-direction: column; width: 100%; height: 100%; min-width: 0; min-height: 438px; overflow: hidden; border: 1px solid var(--line); border-top: 4px solid var(--amber); border-radius: 16px; background: var(--paper); box-shadow: 0 7px 22px rgba(25,60,51,.08); transition: border-color .18s, background .18s; }
.day-card.is-today { box-shadow: 0 0 0 2px rgba(36,92,79,.22), var(--shadow); }
.day-card.status-done { border-color: #a9d8b8; border-top-color: var(--done-strong); background: var(--done); }
.day-card.status-blocked { border-color: #e7aaa4; border-top-color: var(--blocked-strong); background: var(--blocked); }
.day-head { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .72rem .82rem .6rem; }
.day-head > div { display: flex; align-items: baseline; gap: .5rem; }
.day-name { font-size: .98rem; font-weight: 850; text-transform: capitalize; }
.day-date { color: var(--muted); font-size: .76rem; }
.day-status { padding: .22rem .43rem; border-radius: 999px; background: var(--pending); color: #7b601f; font-size: .64rem; font-weight: 800; }
.status-done .day-status { background: white; color: var(--done-strong); }
.status-blocked .day-status { background: white; color: var(--blocked-strong); }
.day-assignee-row { display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding: .52rem .82rem; border-top: 1px solid rgba(190,205,198,.6); border-bottom: 1px solid rgba(190,205,198,.6); background: rgba(255,255,255,.62); }
.day-assignee-row > span { color: var(--muted); font-size: .73rem; font-weight: 700; }
.day-assignee { display: inline-flex; align-items: center; gap: .3rem; padding: .31rem .58rem; border-radius: 999px; background: var(--green); color: white; font-size: .8rem; font-weight: 850; }
.day-assignee::before { content: "●"; color: var(--amber); font-size: .62rem; }
.day-assignee.is-unassigned { background: #eee8da; color: #725c2e; }
.day-assignee.is-unassigned::before { color: #a99464; }
.day-tasks { display: grid; align-content: start; flex: 1 1 auto; gap: .5rem; padding: .62rem .82rem 0; }
.day-tasks:empty::before { content: "Cap tasca assignada"; display: block; padding: .72rem; border: 1px dashed #c8d2cc; border-radius: 10px; color: var(--muted); font-size: .76rem; text-align: center; }
.scheduled-task { padding: .55rem; border: 1px solid rgba(193,207,200,.85); border-radius: 11px; background: rgba(255,255,255,.83); }
.task-topline { display: grid; grid-template-columns: 1fr auto; gap: .4rem; }
.scheduled-description { min-height: 31px; padding: .25rem .35rem; border-color: transparent; background: transparent; font-size: .86rem; font-weight: 800; }
.scheduled-description:hover, .scheduled-description:focus { border-color: var(--line); background: white; }
.remove-scheduled { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 1.1rem; }
.remove-scheduled:hover { background: var(--blocked); color: var(--blocked-strong); }
.task-fields { display: grid; grid-template-columns: 1.1fr .62fr .9fr; gap: .38rem; margin-top: .34rem; }
.task-fields label { margin: 0; color: var(--muted); font-size: .61rem; }
.task-fields label > span { display: block; margin: 0 0 .23rem .15rem; }
.task-fields input, .task-fields select { min-height: 32px; padding: .32rem .38rem; border-radius: 8px; font-size: .72rem; }
.task-fields textarea { min-height: 47px; padding: .35rem .4rem; border-radius: 8px; font-size: .72rem; }
.comments-label { grid-column: 1 / -1; }
.add-task-row { display: grid; grid-template-columns: 1fr auto; gap: .4rem; padding: .58rem .82rem; }
.add-task-row select { min-width: 0; }
.add-task-row select, .add-task-row .button { min-height: 36px; padding-top: .42rem; padding-bottom: .42rem; font-size: .74rem; }
.day-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .42rem; padding: 0 .82rem .65rem; }
.day-actions .button { min-height: 34px; padding: .38rem .48rem; font-size: .68rem; }
.reset-day { grid-column: 1 / -1; justify-self: center; border: 0; background: transparent; color: var(--muted); font-size: .66rem; text-decoration: underline; }
.status-pending .reset-day { visibility: hidden; }

.master-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.master-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; border-bottom: 1px solid var(--line); }
.search-field { position: relative; width: min(100%, 420px); margin: 0; }
.search-field > span:first-child { position: absolute; top: 10px; left: 13px; color: var(--muted); font-size: 1.2rem; }
.search-field input { padding-left: 2.4rem; }
.count-chip { white-space: nowrap; padding: .35rem .65rem; border-radius: 999px; background: var(--mint); color: var(--green); font-size: .75rem; font-weight: 800; }
.master-list { display: grid; }
.master-item { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.master-item:last-child { border-bottom: 0; }
.master-item:hover { background: #fffefa; }
.master-description { font-weight: 800; }
.master-minutes { display: flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .85rem; }
.master-minutes::before { content: "◷"; color: var(--amber); font-size: 1.1rem; }
.master-actions { display: flex; gap: .25rem; }
.master-actions button { border: 0; border-radius: 9px; background: transparent; padding: .5rem; color: var(--green); }
.master-actions button:hover { background: var(--mint); }
.master-actions .delete-master { color: var(--blocked-strong); }
.master-actions .delete-master:hover { background: var(--blocked); }
.empty-state { padding: 4rem 1rem; text-align: center; }
.empty-state > span { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 1rem; border-radius: 50%; background: var(--mint); color: var(--green); font-size: 1.6rem; }
.empty-state h2 { margin-bottom: .35rem; }
.empty-state p { color: var(--muted); }
.data-tools { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.55); }
.data-tools p { margin: .25rem 0 0; color: var(--muted); font-size: .82rem; }
.data-actions { display: flex; gap: .5rem; }
.data-actions label { margin: 0; }

.dialog { width: min(calc(100% - 2rem), 500px); padding: 0; border: 0; border-radius: 19px; background: var(--paper); color: var(--ink); box-shadow: 0 25px 80px rgba(17,45,38,.26); }
.dialog::backdrop { background: rgba(16,40,34,.54); backdrop-filter: blur(3px); }
.dialog form { padding: 1.4rem; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.3rem; }
.dialog-head h2 { margin: 0; }
.dialog label { margin-top: 1rem; }
.minutes-input { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .6rem; }
.minutes-input span { color: var(--muted); font-size: .85rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1.4rem; }
.dialog--wide { width: min(calc(100% - 2rem), 720px); }
.dialog-intro { margin-bottom: 1rem; color: var(--muted); line-height: 1.45; }
.week-assignment-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .65rem; }
.assignment-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: .7rem; min-width: 0; margin: 0; padding: .65rem .72rem; border: 1px solid var(--line); border-radius: 13px; background: white; }
.assignment-row legend { display: contents; }
.assignment-row legend strong { min-width: 0; text-transform: capitalize; }
.assignment-row legend span { display: none; color: var(--muted); font-size: .72rem; }
.assignment-options { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; }
.assignment-options label { margin: 0; }
.assignment-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.assignment-options span { display: block; min-width: 62px; padding: .48rem .55rem; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); text-align: center; }
.assignment-options input:checked + span { border-color: var(--green); background: var(--mint); color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.assignment-options input:focus-visible + span { outline: 3px solid rgba(233,166,56,.55); outline-offset: 2px; }
.toast { position: fixed; z-index: 100; right: 1rem; bottom: 1rem; max-width: min(380px, calc(100% - 2rem)); padding: .8rem 1rem; border-radius: 12px; background: var(--ink); color: white; box-shadow: var(--shadow); font-size: .86rem; font-weight: 650; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

.celebration { position: fixed; z-index: 500; inset: 0; display: grid; place-items: center; overflow: auto; padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)); background: radial-gradient(circle at 50% 12%, #fff7c7 0 12%, transparent 37%), linear-gradient(145deg, #1f705a, #143f39 72%); color: white; isolation: isolate; }
.celebration::before, .celebration::after { content: ""; position: fixed; z-index: 0; width: 42vmin; height: 42vmin; border: 5vmin solid rgba(255,255,255,.06); border-radius: 50%; pointer-events: none; }
.celebration::before { top: -17vmin; left: -12vmin; }
.celebration::after { right: -12vmin; bottom: -18vmin; }
.celebration-close { position: fixed; z-index: 30; top: max(.65rem, env(safe-area-inset-top)); right: max(.65rem, env(safe-area-inset-right)); display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; background: rgba(8,34,29,.36); color: rgba(255,255,255,.92); line-height: 1; box-shadow: 0 5px 16px rgba(0,0,0,.16); backdrop-filter: blur(8px); }
.celebration-close:hover { background: rgba(8,34,29,.58); color: white; }
.celebration-close span { translate: 0 -1px; font-size: 1.55rem; font-weight: 400; line-height: 1; }
.celebration-content { position: relative; z-index: 10; width: 100%; max-width: 1180px; min-width: 0; text-align: center; }
.celebration-kicker { margin: 0 0 .25rem; color: #ffd46f; font-size: clamp(.75rem, 1.6vw, 1rem); font-weight: 900; letter-spacing: .18em; }
.celebration h2 { max-width: 100%; margin: 0; overflow-wrap: anywhere; color: white; font-size: clamp(2.35rem, 7vw, 5.8rem); line-height: .98; letter-spacing: -.055em; text-shadow: 0 5px 0 rgba(0,0,0,.12); }
.celebration-content > p:not(.celebration-kicker) { max-width: 660px; margin: .7rem auto 0; color: #e9fff6; font-size: clamp(.95rem, 2vw, 1.25rem); font-weight: 650; }
.kids-scene { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: clamp(.35rem, 2vw, 1.5rem); min-height: 330px; margin: .8rem auto 0; padding: 70px .25rem 0; }
.kid { --skin: #d99063; --shirt: #e9a638; position: relative; width: 104px; height: 218px; flex: 0 0 104px; filter: drop-shadow(0 10px 5px rgba(0,0,0,.18)); animation: kid-bounce 1.15s ease-in-out infinite alternate; }
.kid-head { position: absolute; z-index: 3; top: 17px; left: 22px; width: 62px; height: 68px; border-radius: 46% 46% 44% 44%; background: var(--skin); }
.kid-hair { position: absolute; top: -5px; left: -3px; width: 68px; height: 27px; border-radius: 48% 55% 32% 35%; background: #3d2925; transform: rotate(-3deg); }
.kid-eye { position: absolute; top: 31px; width: 6px; height: 7px; border-radius: 50%; background: #173b34; }
.kid-eye--left { left: 17px; }
.kid-eye--right { right: 17px; }
.kid-smile { position: absolute; bottom: 12px; left: 22px; width: 20px; height: 10px; border-bottom: 3px solid #7a352d; border-radius: 0 0 50% 50%; }
.kid-body { position: absolute; z-index: 2; top: 78px; left: 17px; width: 72px; height: 83px; border-radius: 27px 27px 13px 13px; background: var(--shirt); }
.kid-arm { position: absolute; z-index: 1; top: 90px; width: 23px; height: 82px; border-radius: 14px; background: var(--skin); transform-origin: 50% 10%; }
.kid-arm--left { left: 9px; transform: rotate(18deg); }
.kid-arm--right { right: 9px; transform: rotate(-18deg); }
.kid-leg { position: absolute; top: 153px; width: 24px; height: 62px; border-radius: 0 0 12px 12px; background: #e9dbc5; }
.kid-leg::after { content: ""; position: absolute; bottom: -2px; width: 32px; height: 14px; border-radius: 10px 13px 7px 7px; background: #203c54; }
.kid-leg--left { left: 23px; }
.kid-leg--right { right: 23px; }
.kid--two { --skin: #8f543c; --shirt: #e76d63; animation-delay: -.55s; transform: scale(.96); }
.kid--two .kid-hair { height: 33px; border-radius: 50% 50% 25% 25%; background: #1e1716; }
.kid--three { --skin: #ebb18d; --shirt: #5fa8dc; animation-delay: -.35s; }
.kid--three .kid-hair { top: -7px; height: 31px; border-radius: 60% 38% 45% 30%; background: #b76f2e; }
.speech { position: absolute; z-index: 6; width: max-content; max-width: 165px; padding: .55rem .72rem; border-radius: 14px; background: white; color: var(--green); font-size: .78rem; font-weight: 900; box-shadow: 0 6px 16px rgba(0,0,0,.16); }
.speech::after { content: ""; position: absolute; bottom: -8px; left: 38%; border: 8px solid transparent; border-top-color: white; border-bottom: 0; }
.speech--left { top: -48px; left: -32px; transform: rotate(-4deg); }
.speech--top { top: -60px; left: -22px; transform: rotate(3deg); }
.banner-holder { position: relative; width: min(620px, 62vw); height: 244px; flex: 0 1 620px; min-width: 360px; }
.kid--banner-holder { position: absolute; z-index: 7; bottom: 0; left: 0; animation-delay: -.35s; }
.kid--banner-holder .kid-arm--left { top: 91px; left: 11px; height: 72px; transform: rotate(12deg); }
.kid--banner-holder .kid-arm--right { z-index: 8; top: 99px; right: 6px; height: 91px; transform: rotate(180deg); transform-origin: 50% 9%; }
.banner-pole { position: absolute; z-index: 5; top: 12px; right: 0; left: 76px; height: 9px; border: 2px solid #70401f; border-radius: 99px; background: linear-gradient(#bd7a42, #8e542b); box-shadow: 0 4px 5px rgba(0,0,0,.22); transform: rotate(-.6deg); }
.banner-pole::before, .banner-pole::after { content: ""; position: absolute; top: 50%; width: 14px; height: 14px; border: 2px solid #70401f; border-radius: 50%; background: #c98a4f; transform: translateY(-50%); }
.banner-pole::before { left: -9px; }
.banner-pole::after { right: -9px; }
.banner-hand { position: absolute; z-index: 9; top: 6px; left: 73px; width: 18px; height: 20px; border: 2px solid rgba(91,48,32,.25); border-radius: 48%; background: #ebb18d; box-shadow: 0 2px 3px rgba(0,0,0,.18); transform: rotate(-8deg); }
.banner { position: absolute; z-index: 6; top: 19px; right: 8px; left: 86px; min-height: 166px; padding: 1.05rem 1.25rem 1.35rem; border: 0; background: linear-gradient(90deg, rgba(127,73,15,.12), transparent 7% 92%, rgba(127,73,15,.14)), repeating-linear-gradient(0deg, rgba(255,255,255,.07) 0 2px, transparent 2px 7px), #ffd164; clip-path: polygon(0 0, 100% 0, 99% 94%, 94% 97%, 87% 94%, 79% 98%, 71% 95%, 62% 99%, 52% 96%, 43% 99%, 34% 95%, 24% 98%, 15% 94%, 7% 97%, 1% 93%); color: #173b34; font-size: clamp(.9rem, 1.45vw, 1.16rem); font-weight: 950; line-height: 1.2; letter-spacing: .02em; text-shadow: 0 1px rgba(255,255,255,.55); filter: drop-shadow(0 9px 4px rgba(0,0,0,.2)); transform: rotate(-.6deg); }
.banner::before, .banner::after { content: ""; position: absolute; top: 0; bottom: 7%; width: 7%; pointer-events: none; }
.banner::before { left: 6%; background: linear-gradient(90deg, transparent, rgba(120,72,15,.1), transparent); }
.banner::after { right: 8%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent); }
.banner span { position: relative; z-index: 1; display: block; text-wrap: balance; overflow-wrap: anywhere; }
.banner span + span { margin-top: .5rem; }
.celebration-confetti { position: fixed; z-index: 18; inset: 0; overflow: hidden; pointer-events: none; }
.celebration-confetti i { position: absolute; top: -14vh; left: calc(var(--x) * 1%); width: calc(11px * var(--scale)); height: calc(23px * var(--scale)); border-radius: 3px; background: #ffd164; opacity: .96; animation: confetti-fall var(--duration) linear var(--delay) infinite; will-change: transform; }
.celebration-confetti i:nth-child(4n) { border-radius: 50%; background: #78d7c0; }
.celebration-confetti i:nth-child(4n+1) { background: #ff7b70; }
.celebration-confetti i:nth-child(4n+2) { height: calc(11px * var(--scale)); background: #8eb8ff; transform: rotate(45deg); }
.celebration-confetti i:nth-child(4n+3) { background: #fff2a8; }
body.celebration-open { overflow: hidden; }
@keyframes confetti-fall { from { transform: translate3d(0,-8vh,0) rotate(0); } to { transform: translate3d(var(--drift),124vh,0) rotate(760deg); } }
@keyframes kid-bounce { from { translate: 0 0; rotate: -1deg; } to { translate: 0 -9px; rotate: 1deg; } }

@media (min-width: 1040px) {
  .days-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-panel { min-height: 100vh; padding: 1.3rem; }
  .topbar { grid-template-columns: 1fr auto; padding: .55rem 1rem; }
  .main-nav { position: fixed; z-index: 30; top: auto; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); left: 1rem; justify-content: stretch; border: 1px solid var(--line); box-shadow: 0 8px 30px rgba(20,50,43,.19); }
  .nav-button { flex: 1; justify-content: center; }
  .user-name, .install-button { display: none; }
  .app-main { padding-bottom: 7rem; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .week-heading-actions { width: 100%; justify-items: stretch; }
  .week-actions { justify-content: stretch; }
  .week-actions .button { flex: 1 1 210px; }
  .week-picker { width: 100%; }
  .week-current { flex: 1; min-width: 0; }
  .days-grid { grid-template-columns: 1fr; }
  .data-tools { align-items: flex-start; flex-direction: column; }
  .kids-scene { gap: 0; margin: .25rem auto -.5rem; padding-right: 0; padding-left: 0; }
  .kid--one { margin-right: -24px; scale: .86; }
  .kid--two { margin-right: -28px; scale: .86; }
  .banner-holder { width: min(540px, calc(100vw - 170px)); min-width: 330px; flex-basis: 540px; }
  .banner { font-size: clamp(.86rem, 2.05vw, 1.02rem); }
}

@media (max-width: 520px) {
  .brand small { display: none; }
  .brand strong { font-size: .9rem; }
  .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
  .app-main { padding-right: .75rem; padding-left: .75rem; }
  .page-heading h1 { font-size: 2rem; }
  .status-legend { gap: .7rem; }
  .day-head, .day-assignee-row, .day-tasks, .add-task-row, .day-actions { padding-right: .85rem; padding-left: .85rem; }
  .task-fields { grid-template-columns: 1fr 1fr; }
  .task-fields label:nth-child(3), .comments-label { grid-column: 1 / -1; }
  .add-task-row { grid-template-columns: 1fr; }
  .day-actions { grid-template-columns: 1fr; }
  .reset-day { grid-column: 1; }
  .master-item { grid-template-columns: 1fr auto; gap: .55rem; }
  .master-minutes { grid-row: 2; }
  .master-actions { grid-column: 2; grid-row: 1 / 3; }
  .data-actions { width: 100%; flex-direction: column; }
  .data-actions .button { width: 100%; }
  .week-assignment-grid { grid-template-columns: 1fr; }
  .assignment-row { grid-template-columns: minmax(90px,1fr) auto; }
  .celebration { align-items: start; padding-top: max(3.6rem, env(safe-area-inset-top)); }
  .celebration-content { width: calc(100vw - 2rem); }
  .celebration h2 { font-size: clamp(2.15rem, 12vw, 3.35rem); }
  .celebration-content > p:not(.celebration-kicker) { font-size: .92rem; }
  .kids-scene { width: 100%; min-height: 278px; margin: -.25rem 0 -.75rem; padding: 58px 0 0; gap: 0; }
  .speech { display: none; }
  .kid--one, .kid--two { display: none; }
  .banner-holder { width: 100%; height: 248px; min-width: 0; flex-basis: 100%; }
  .kid--banner-holder { bottom: -10px; left: -10px; scale: .72; transform-origin: left bottom; }
  .banner-pole { top: 15px; right: 3px; left: 57px; }
  .banner-hand { top: 9px; left: 55px; scale: .85; }
  .banner { top: 22px; right: 7px; left: 65px; min-height: 178px; padding: .82rem .72rem 1.2rem; font-size: clamp(.74rem, 3.35vw, .9rem); line-height: 1.18; letter-spacing: .006em; }
  .banner span + span { margin-top: .42rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .kid { animation: none !important; }
  .celebration-confetti { display: none; }
}
