:root{--bg: #fff8f3;--surface: #ffffff;--surface-2: #f6ede6;--line: #e5d8cf;--ink: #2b2420;--ink-2: #7a6a60;--primary: #e06d53;--ok: #047857;--ok-bg: #d1fae5;--warn: #b45309;--warn-bg: #fef3c7;--danger: #b91c1c;--radius: 20px;--shadow: 0 2px 10px rgb(120 70 40 / .08);color-scheme:light}*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--ink);font-family:Rubik,system-ui,sans-serif;-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;border:0;background:none;cursor:pointer}button:disabled{cursor:default}.screen{max-width:480px;margin:0 auto;padding:calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 24px)}.center{min-height:100dvh;display:grid;place-content:center;gap:12px;padding:24px;text-align:center;color:var(--ink-2)}.topbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.brand{margin:0;font-size:22px;font-weight:800;color:var(--primary)}.me-chip{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:6px 14px;border-radius:999px;background:var(--surface);box-shadow:var(--shadow);border:2px solid var(--c);font-weight:600}.icon-btn{width:44px;height:44px;border-radius:50%;background:var(--surface);box-shadow:var(--shadow);font-size:20px}.banner{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px;border-radius:14px;margin-bottom:10px;font-size:14px;background:var(--surface-2)}.banner button{min-height:36px;padding:6px 12px;border-radius:10px;background:var(--surface);font-weight:700}.banner.offline{background:var(--warn-bg);color:var(--warn)}.week-nav{display:flex;align-items:center;justify-content:space-between;padding:6px;margin-bottom:14px;border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);font-weight:700}.week-nav button{width:44px;height:44px;border-radius:50%;background:var(--surface-2);font-size:22px}.days{display:grid;gap:12px}.day{display:grid;gap:10px;padding:14px;border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow)}.day.today{outline:3px solid var(--primary)}.day.past{opacity:.5}.day-head{display:flex;align-items:center;justify-content:space-between}.day-head h2{margin:0;font-size:18px}.day-head small{margin-inline-start:6px;color:var(--ink-2);font-weight:400}.badge{padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700}.badge.ok{background:var(--ok-bg);color:var(--ok)}.badge.missing{background:var(--warn-bg);color:var(--warn)}.kids{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.kid{display:grid;gap:6px;align-content:start}.kid-name{text-align:center;font-size:14px;font-weight:700;color:color-mix(in srgb,var(--c) 70%,black)}.cell{display:grid;justify-items:center;align-content:center;gap:4px;min-height:68px;padding:6px 4px;border-radius:14px;background:var(--surface-2);transition:transform .08s,background .15s;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:manipulation}.cell:active:not(:disabled){transform:scale(.97)}.cell.mine{background:color-mix(in srgb,var(--c) 18%,white);box-shadow:inset 0 0 0 2px var(--c)}.cell.off{background:repeating-linear-gradient(135deg,#efe9e4 0 6px,#e6dfd9 6px 12px);color:var(--ink-2)}.cell-label{font-size:12px;font-weight:600;color:var(--ink-2)}.plus{color:var(--primary);font-size:20px;font-weight:700;line-height:1}.off-text{font-size:11px;font-weight:600}.dots{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:2px}.dot{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:color-mix(in srgb,var(--c) 25%,white);font-size:15px}.check{font-size:13px;font-weight:700;color:var(--c)}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.empty{color:var(--primary);font-size:14px;font-weight:600}.toast{position:fixed;inset-inline:16px;bottom:calc(env(safe-area-inset-bottom) + 16px);max-width:448px;margin:0 auto;padding:12px 16px;border-radius:14px;background:var(--ink);color:#fff;text-align:center}.whoami{text-align:center}.logo{margin-top:12px;font-size:56px}.whoami h1{margin:8px 0 4px;font-size:24px}.sub{margin:0 0 18px;color:var(--ink-2)}.member-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:20px}.member-card{display:grid;justify-items:center;gap:6px;padding:16px 8px;border:2px solid transparent;border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow)}.member-card.selected{border-color:var(--primary)}.avatar{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:color-mix(in srgb,var(--c) 25%,white);font-size:30px}.role{padding:2px 8px;border-radius:999px;background:var(--surface-2);color:var(--ink-2);font-size:12px}.name{font-size:17px;font-weight:700}.primary{width:100%;min-height:56px;border-radius:999px;background:var(--primary);color:#fff;font-size:18px;font-weight:700;box-shadow:0 6px 16px #e06d5359}.primary:disabled{opacity:.5;box-shadow:none}.secondary{width:100%;min-height:52px;border:2px dashed var(--line);border-radius:16px;color:var(--primary);font-weight:700}.list{display:grid;gap:10px;margin-bottom:16px}.row{display:flex;align-items:center;gap:12px;width:100%;padding:12px;border-radius:16px;background:var(--surface);box-shadow:var(--shadow);text-align:start}.row .avatar{width:44px;height:44px;font-size:24px}.row .meta{display:grid;flex:1}.row .meta small{color:var(--ink-2)}.form{display:grid;gap:14px;padding:16px;margin-bottom:16px;border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow)}.form label{display:grid;gap:6px;font-size:14px;font-weight:600}.form input{padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--bg);font:inherit;font-size:16px}.swatches{display:flex;flex-wrap:wrap;gap:8px}.swatch{width:36px;height:36px;border-radius:50%;background:var(--c)}.swatch[aria-checked=true]{box-shadow:0 0 0 3px var(--bg),0 0 0 5px var(--ink)}.segmented{display:flex;gap:6px}.segmented button{flex:1;min-height:44px;border-radius:12px;background:var(--surface-2);font-weight:600}.segmented button[aria-pressed=true]{background:var(--primary);color:#fff}.actions{display:flex;gap:8px}.actions button{flex:1;min-height:48px;border-radius:14px;background:var(--surface-2);font-weight:700}.actions .save{background:var(--primary);color:#fff}.actions .danger{color:var(--danger)}.illustrated{object-fit:cover;border-radius:50%}img.avatar{padding:0}.chip-avatar{display:inline-grid;place-items:center;width:30px;height:30px;margin-inline-start:-8px;border-radius:50%}.kid-name{display:grid;justify-items:center;gap:2px}.kid-avatar{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;font-size:22px;box-shadow:0 0 0 2px var(--c)}.dot{overflow:hidden}.dot-face{display:grid;place-items:center;width:100%;height:100%}.photo-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.photo-row .avatar{width:64px;height:64px;font-size:34px}.photo-btn{min-height:40px;padding:8px 12px;border-radius:12px;background:var(--surface-2);font-size:14px;font-weight:700;cursor:pointer;display:inline-grid;place-items:center}.sheet-backdrop{position:fixed;inset:0;z-index:10;display:grid;align-items:end;background:#00000059}.sheet{display:grid;gap:14px;justify-items:center;max-width:480px;width:100%;margin:0 auto;padding:18px 16px calc(env(safe-area-inset-bottom) + 18px);border-radius:24px 24px 0 0;background:var(--surface)}.sheet h2{margin:0;font-size:18px}.sheet .actions{width:100%}.crop-view{position:relative;overflow:hidden;border-radius:16px;background:#222;touch-action:none;cursor:grab}.crop-view img{position:absolute;max-width:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.crop-mask{position:absolute;inset:0;border-radius:50%;box-shadow:0 0 0 999px #00000080;pointer-events:none}.cropper input[type=range]{width:100%}.sheet h2 small{margin-inline-start:6px;color:var(--ink-2);font-weight:400;font-size:14px}.sheet-members{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}.sheet-member{display:flex;align-items:center;gap:8px;min-height:52px;padding:6px 10px;border-radius:14px;background:var(--surface-2);font-weight:600;text-align:start}.sheet-member .avatar{width:36px;height:36px;font-size:20px}.sheet-member.on{background:color-mix(in srgb,var(--ok) 15%,white);box-shadow:inset 0 0 0 2px var(--ok)}.sheet-member:disabled{opacity:.45}.sheet-member .check{margin-inline-start:auto;color:var(--ok)}
