:root { --ink:#20221f; --muted:#7d8178; --paper:#f7f5ef; --card:#fff; --line:#e8e5dc; --green:#36765a; --green-soft:#e4f0e8; --terracotta:#c96f4b; --shadow:0 12px 35px rgba(50,45,36,.08); }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; min-height:100vh; color:var(--ink); background:var(--paper); font-family:Inter,Manrope,system-ui,sans-serif; }
button { font:inherit; color:inherit; }
button:focus-visible { outline:3px solid rgba(54,118,90,.28); outline-offset:2px; }
.page-shell { width:min(100%,720px); min-height:100vh; margin:auto; padding:0 18px 40px; }
.topbar { height:78px; display:flex; align-items:center; justify-content:space-between; }
.brand { display:flex; gap:9px; align-items:center; color:inherit; text-decoration:none; font-weight:800; font-size:19px; }
.brand-mark { display:grid; place-items:center; width:34px; height:34px; border-radius:11px; color:#fff; background:var(--green); font-family:Georgia,serif; }
.profile-button { display:flex; align-items:center; gap:8px; border:0; background:transparent; cursor:pointer; font-weight:700; }
.avatar { display:grid; place-items:center; width:34px; height:34px; border-radius:50%; color:#fff; background:var(--terracotta); }
.chevron { color:var(--muted); font-size:18px; }
.week-heading { padding:28px 0 23px; text-align:center; }
.eyebrow { margin:0 0 7px; color:var(--green); font-size:11px; letter-spacing:.16em; font-weight:800; }
.week-nav { display:grid; grid-template-columns:44px 1fr 44px; align-items:center; gap:8px; }
h1 { margin:0; font-family:Georgia,serif; font-weight:500; font-size:clamp(30px,8vw,42px); line-height:1.1; }
.week-nav p:last-child { margin:7px 0 0; color:var(--muted); font-size:13px; }
.nav-button { width:42px; height:42px; border:1px solid var(--line); border-radius:50%; background:rgba(255,255,255,.5); cursor:pointer; font-size:20px; }
.status-panel { padding:17px; background:var(--card); border:1px solid var(--line); border-radius:20px; box-shadow:var(--shadow); }
.people { display:flex; justify-content:space-around; gap:6px; }
.person { min-width:0; text-align:center; }
.person-face { position:relative; display:grid; place-items:center; width:44px; height:44px; margin:0 auto 6px; border-radius:50%; background:#eeeae1; color:#9b9c96; font-size:19px; font-weight:800; transition:.2s; }
.person.complete .person-face { color:#fff; background:var(--green); }
.person.complete .person-face::after { content:'✓'; position:absolute; right:-2px; bottom:-1px; display:grid; place-items:center; width:17px; height:17px; border:2px solid #fff; border-radius:50%; background:#76a98d; font-size:10px; }
.person-name { display:block; overflow:hidden; text-overflow:ellipsis; font-size:11px; font-weight:700; }
.person-count { color:var(--muted); font-size:10px; }
.my-progress { margin-top:15px; padding-top:14px; border-top:1px solid var(--line); }
.progress-copy { display:flex; justify-content:space-between; margin-bottom:8px; font-size:12px; }
.progress-track { height:7px; overflow:hidden; border-radius:9px; background:#eeeae1; }
.progress-track span { display:block; width:0; height:100%; border-radius:inherit; background:var(--green); transition:width .3s; }
.complete-banner { display:flex; gap:12px; align-items:center; margin-top:15px; padding:15px 17px; border-radius:17px; background:var(--green); color:#fff; }
.complete-banner > span { display:grid; place-items:center; width:30px; height:30px; border-radius:50%; color:var(--green); background:#fff; font-weight:800; }
.complete-banner strong,.complete-banner small { display:block; }
.complete-banner small { opacity:.75; font-size:11px; }
.schedule-section { margin-top:29px; }
.section-title { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
h2 { margin:0; font-family:Georgia,serif; font-size:23px; font-weight:500; }
.section-title span { color:var(--muted); font-size:12px; }
.days { display:grid; gap:9px; }
.day { width:100%; min-height:77px; padding:12px 14px; display:grid; grid-template-columns:48px 1fr auto; align-items:center; gap:12px; border:1px solid var(--line); border-radius:17px; background:var(--card); text-align:left; cursor:pointer; transition:transform .15s,border-color .15s,box-shadow .15s; }
.day:hover:not(:disabled) { border-color:#bdcfc3; box-shadow:0 8px 24px rgba(50,45,36,.07); transform:translateY(-1px); }
.day:disabled { cursor:default; }
.date-box { padding-right:11px; border-right:1px solid var(--line); text-align:center; }
.date-number { display:block; font-family:Georgia,serif; font-size:25px; line-height:1; }
.date-month { color:var(--muted); font-size:9px; text-transform:uppercase; }
.day-name { display:block; margin-bottom:4px; font-weight:800; font-size:13px; }
.assignee { color:var(--muted); font-size:12px; }
.day.occupied .assignee { color:var(--green); font-weight:700; }
.day.mine { border-color:#a9c4b4; background:#f8fcf9; }
.day-action { display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:#f1eee7; color:#aaa99f; font-size:16px; }
.day.mine .day-action { color:#fff; background:var(--green); }
.day.editable .day-action { color:var(--green); }
.settings-link { width:100%; margin-top:22px; padding:15px 17px; display:grid; grid-template-columns:30px 1fr auto; align-items:center; gap:10px; border:1px solid var(--line); border-radius:16px; background:transparent; text-align:left; cursor:pointer; }
.settings-link strong,.settings-link small { display:block; }
.settings-link small { margin-top:2px; color:var(--muted); }
.toast { position:fixed; left:50%; bottom:24px; z-index:10; max-width:calc(100% - 32px); padding:11px 17px; transform:translate(-50%,30px); border-radius:12px; background:#252724; color:#fff; opacity:0; pointer-events:none; transition:.2s; font-size:13px; box-shadow:var(--shadow); }
.toast.show { opacity:1; transform:translate(-50%,0); }
.modal { width:min(calc(100% - 28px),490px); padding:24px; border:0; border-radius:24px; background:var(--paper); box-shadow:0 30px 80px rgba(0,0,0,.23); }
.modal::backdrop { background:rgba(29,31,28,.44); backdrop-filter:blur(3px); }
.modal-head { display:flex; justify-content:space-between; align-items:start; }
.modal-intro { margin:10px 0 20px; color:var(--muted); font-size:13px; }
.close-button { width:36px; height:36px; border:0; border-radius:50%; background:#eae7df; cursor:pointer; font-size:24px; line-height:1; }
.user-picker { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.user-option { padding:16px 10px; border:1px solid var(--line); border-radius:16px; background:#fff; cursor:pointer; font-weight:700; }
.user-option span { display:grid; place-items:center; width:39px; height:39px; margin:0 auto 8px; border-radius:50%; background:var(--green-soft); color:var(--green); }
.limit-rows { display:grid; gap:9px; }
.limit-row { display:flex; align-items:center; justify-content:space-between; padding:12px 14px; border:1px solid var(--line); border-radius:15px; background:#fff; }
.stepper { display:flex; align-items:center; gap:13px; }
.stepper button { width:32px; height:32px; border:0; border-radius:9px; background:#eeeae2; cursor:pointer; font-size:18px; }
.stepper strong { width:15px; text-align:center; }
.limit-total { display:flex; justify-content:space-between; margin:16px 0; padding:0 4px; }
.limit-total.invalid strong { color:#b64e3f; }
.primary-button,.danger-button { width:100%; padding:13px; border-radius:13px; cursor:pointer; font-weight:800; }
.primary-button { border:0; background:var(--green); color:#fff; }
.primary-button:disabled { opacity:.45; cursor:not-allowed; }
.danger-button { margin-top:9px; border:1px solid #e5c8bf; background:transparent; color:#a34e38; }
.assign-options { display:grid; gap:8px; }
.assign-option { width:100%; padding:12px 14px; display:flex; align-items:center; gap:12px; border:1px solid var(--line); border-radius:14px; background:#fff; cursor:pointer; text-align:left; }
.assign-option:hover { border-color:#adc6b6; }
.assign-option.current { border-color:var(--green); background:#f4faf6; }
.assign-option span:first-child { display:grid; place-items:center; width:34px; height:34px; flex:none; border-radius:50%; background:var(--green-soft); color:var(--green); font-weight:800; }
.assign-option span:last-child { margin-left:auto; color:var(--green); font-size:12px; font-weight:700; }
.assign-option.free span:first-child { background:#eeeae2; color:#a35340; }
@media (min-width:600px) { .page-shell { padding-inline:28px; } .days { grid-template-columns:1fr 1fr; } .day:last-child { grid-column:1/-1; } }
@media (max-width:370px) { .page-shell { padding-inline:12px; } .status-panel { padding-inline:10px; } .day { grid-template-columns:43px 1fr auto; gap:9px; } }
