:root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; color: #213b34; background: #f5f5f0; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: 1px solid #d4dcd6; border-radius: 9px; padding: 10px 15px; background: white; color: #24463b; font-weight: 600; }
button:hover { background: #e9eee7; }
button:disabled { cursor: wait; opacity: .55; }
button.primary { background: #245944; color: white; border-color: #245944; }
button.primary:hover { background: #193f30; }
button.danger { color: #a13830; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #bd8a39; outline-offset: 3px; }
a { color: #245944; }
h1,h2,h3,p { margin-top: 0; }
h1,h2,h3 { letter-spacing: -.035em; }
.shell { max-width: 1380px; margin: auto; padding: 0 44px 40px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 25px 0; border-bottom: 1px solid #dce0d7; }
.brand { display: flex; gap: 12px; align-items: center; font-size: 19px; font-weight: 750; letter-spacing: -.04em; }
.crest { display: grid; place-items: center; width: 38px; height: 43px; background: #245944; color: #e9d7a6; border-radius: 5px 5px 15px 15px; font-size: 20px; }
.top-actions,.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.muted { color: #6c7b70; font-size: 14px; line-height: 1.6; }
.eyebrow { text-transform: uppercase; font-size: 11px; letter-spacing: .16em; font-weight: 750; color: #627461; margin-bottom: 12px; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 38px 0 25px; }
.hero h1 { font-size: clamp(27px,4vw,40px); margin-bottom: 8px; }
.hero p { margin: 0; }
.banner { background: #fff3d8; border: 1px solid #eadbb9; padding: 12px 18px; border-radius: 10px; margin-top: 20px; font-size: 13px; line-height: 1.5; }
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 4px 0 28px; }
.stat { padding: 19px 22px; border: 1px solid #dce2d7; border-radius: 12px; background: #fff; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stat strong { display: block; font-size: 29px; font-weight: 650; }
.stat .symbol { background: #eef2e9; border-radius: 10px; padding: 12px; color: #56724b; }
.grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(300px,1fr); gap: 24px; align-items: start; }
.panel { border: 1px solid #dce2d7; border-radius: 14px; background: #fff; overflow: hidden; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px; border-bottom: 1px solid #e9ece4; }
.panel-heading h2 { font-size: 19px; margin: 0; }
.weeknav { display: flex; justify-content: space-between; padding: 17px 22px; align-items: center; gap: 8px; background: #fbfcf8; border-bottom: 1px solid #e9ece4; }
.weeknav button { padding: 6px 10px; }
.weeknav strong { font-size: 13px; }
.day { display: grid; grid-template-columns: 65px minmax(0,1fr); padding: 19px 22px; gap: 17px; border-bottom: 1px solid #edf0e9; }
.day:last-child { border: 0; }
.day-date { font-size: 12px; color: #75816f; text-transform: uppercase; }
.day-date strong { display: block; font-size: 25px; color: #344f3c; margin-top: 3px; }
.day.today .day-date strong { color: #b47b27; }
.event { background: #eef3ea; padding: 13px 15px; border-left: 3px solid #7c966b; border-radius: 3px 9px 9px 3px; margin-bottom: 8px; }
.event:last-child { margin-bottom: 0; }
.event h3 { font-size: 15px; margin-bottom: 5px; }
.event p { font-size: 13px; color: #60715f; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.event .time { color: #47643d; font-size: 11px; font-weight: 750; margin-bottom: 6px; }
.description { white-space: pre-wrap; overflow-wrap: anywhere; }
.task { padding: 20px 22px; border-bottom: 1px solid #edf0e9; }
.task:last-child { border-bottom: 0; }
.task h3 { font-size: 15px; margin: 0 0 7px; overflow-wrap: anywhere; }
.task p { margin-bottom: 9px; }
.task-title { display: flex; gap: 12px; align-items: flex-start; }
.task-title > div { flex: 1; min-width: 0; }
.task input[type=checkbox] { width: 19px; height: 19px; margin: 1px 0 0; accent-color: #245944; flex-shrink: 0; cursor: pointer; }
.complete h3 { text-decoration: line-through; color: #879382; }
.badge { display: inline-block; border-radius: 5px; padding: 4px 7px; font-size: 10px; letter-spacing: .02em; font-weight: 700; background: #edf2e8; color: #5b7150; }
.badge.late { background: #fbede5; color: #9e5034; }
.completion { margin-top: 10px; padding-top: 10px; border-top: 1px solid #edf0e9; font-size: 12px; color: #667761; }
.completion span { display: block; margin: 5px 0; }
.small-button { padding: 4px 8px; font-size: 11px; margin-top: 8px; }
.empty { color: #7e8978; font-size: 13px; padding: 8px 0; }
.panel > .empty { padding: 25px; }
.footer { display: flex; justify-content: space-between; gap: 15px; margin-top: 26px; font-size: 12px; color: #77836f; }
.login { max-width: 440px; margin: 8vh auto; padding: 30px; }
.login .brand { margin-bottom: 38px; }
.login h1 { font-size: 34px; }
.login .panel { padding: 25px; margin-top: 24px; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 15px; }
input:not([type=checkbox]),textarea,select { display: block; width: 100%; border: 1px solid #ced8cc; border-radius: 7px; padding: 11px; background: white; margin-top: 7px; color: #213b34; }
textarea { resize: vertical; min-height: 75px; }
.login button { width: 100%; margin-bottom: 10px; }
dialog { width: min(540px,calc(100% - 30px)); max-height: 88vh; overflow: auto; border: 1px solid #dce2d7; border-radius: 15px; padding: 26px; color: #213b34; }
dialog::backdrop { background: #122d25a1; }
dialog h2 { margin-bottom: 22px; }
fieldset { border: 1px solid #dce2d7; border-radius: 8px; padding: 13px; margin: 0 0 20px; max-height: 180px; overflow: auto; }
legend { font-size: 13px; padding: 0 5px; }
fieldset label { font-weight: 400; display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
#notice:not(:empty) { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); padding: 14px 22px; background: #213b34; color: white; border-radius: 10px; box-shadow: 0 8px 25px #0002; max-width: calc(100% - 30px); z-index: 10; font-size: 14px; }
@media(max-width:900px) { .shell { padding: 0 22px 30px; } .grid { grid-template-columns: 1fr; } .top-actions .muted { display: none; } }
@media(max-width:540px) { .shell { padding: 0 14px 25px; } .topbar { padding: 18px 0; } .top-actions { gap: 5px; } .top-actions button { font-size: 11px; padding: 8px; } .brand { font-size: 16px; } .crest { width: 28px; height: 33px; font-size: 15px; } .hero { align-items: flex-start; flex-direction: column; padding-top: 26px; } .stats { gap: 7px; } .stat { padding: 13px 10px; } .stat strong { font-size: 24px; } .stat .muted { font-size: 11px; } .stat .symbol { display: none; } .day { padding: 16px 14px; grid-template-columns: 44px minmax(0,1fr); gap: 10px; } .panel-heading,.task { padding: 18px; } .weeknav { padding: 14px 12px; } .footer { flex-direction: column; } .login { padding: 20px; } }
