:root { font: 15px/1.5 system-ui, -apple-system, sans-serif; color: #252525; background: #fff; color-scheme: light; }
:root[data-text-size=small] { font-size: 14px; }
:root[data-text-size=large] { font-size: 17px; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, input, select, textarea, summary { border-radius: 5px; }
button { padding: .45rem .8rem; min-height: 40px; border: 1px solid #ccc; background: #fff; color: inherit; cursor: pointer; }
button:hover { background: #f3f3f3; }
button:disabled { opacity: .5; cursor: default; }
button.primary, nav button[aria-current] { color: #fff; background: #282828; border-color: #282828; }
button.danger, .error, .overdue { color: #a32222; }
:focus-visible { outline: 2px solid #236ac0; outline-offset: 3px; }
header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1rem max(1rem, calc((100vw - 1120px) / 2)); border-bottom: 1px solid #ddd; }
nav, .actions, .toolbar, .row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
nav button { border-color: transparent; }
main { max-width: 1152px; margin: auto; padding: 2rem 1rem 5rem; }
h1 { font-size: 1.6rem; font-weight: 600; margin: 0; }
h2 { font-size: 1.1rem; margin: 0 0 .8rem; font-weight: 600; }
h3, p { margin: 0 0 .65rem; }
.page-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.muted, small, .meta { color: #666; }
.empty { padding: 1.5rem .25rem; color: #666; }
.sections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.section-heading { border-bottom: 1px solid #ddd; padding-bottom: .7rem; }
.count { font-size: .85rem; color: #666; margin-left: .4rem; font-weight: 400; }
.task { margin-bottom: 1rem; overflow-wrap: anywhere; }
.task h3 { font-size: 1rem; font-weight: 600; color: var(--class-color); margin: 0; }
.task-title, .task-meta { padding: 0; min-height: 0; border: 0; background: transparent; text-align: left; }
.task-title { font: inherit; color: inherit; }
.task-title:hover, .task-meta:hover { background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.task-meta { line-height: 1.7; }
.task .meta { font-size: .8rem; margin: 0; }
.task-line { display: flex; align-items: center; flex-wrap: wrap; column-gap: .3rem; }
.task-actions { display: inline-flex; align-items: center; flex-shrink: 0; }
.icon { width: 16px; height: 16px; vertical-align: middle; flex-shrink: 0; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 28px; min-height: 28px; padding: 4px; border: 0; background: transparent; color: #707070; }
.task-expanded { margin: .5rem 0; }
.task-notes { white-space: pre-wrap; font-size: .85rem; color: #666; }
.expanded-actions { display: flex; flex-wrap: wrap; gap: .2rem .6rem; margin-top: .4rem; }
.expanded-actions button { border: 0; padding: .25rem 0; min-height: 32px; color: #666; font-size: .8rem; }
.expanded-actions button:hover { background: transparent; text-decoration: underline; }
:root[data-row-spacing=comfortable] .task { margin-bottom: 1.7rem; }
:root[data-row-spacing=comfortable] .task h3 { margin-bottom: .25rem; }
.task-substeps { font-size: .85rem; }
.task-substeps .check { align-items: flex-start; }
.toolbar { margin-bottom: 1rem; }
.toolbar label { display: flex; gap: .5rem; align-items: center; }
input:not([type=checkbox]):not([type=color]), select, textarea { border: 1px solid #bbb; padding: .5rem .65rem; background: #fff; color: #252525; min-height: 40px; max-width: 100%; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: #333; flex-shrink: 0; }
input[type=color] { width: 46px; height: 40px; padding: 3px; background: #fff; border: 1px solid #bbb; }
textarea { resize: vertical; width: 100%; min-height: 90px; }
label.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.check { display: flex; align-items: center; gap: .5rem; padding: .3rem 0; }
fieldset { border: 1px solid #ddd; border-radius: 5px; margin: 1rem 0; padding: .8rem; min-width: 0; }
legend { padding: 0 .4rem; }
details { margin: .7rem 0; }
summary { cursor: pointer; padding: .4rem 0; }
.settings-section { max-width: 750px; border-bottom: 1px solid #ddd; margin-bottom: 1.5rem; padding-bottom: 1.5rem; }
.preferences-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem 1rem; }
.preferences-grid > .check { grid-column: 1 / -1; }
.class-form { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .7rem; }
.class-form input[name=name] { flex: 1; min-width: 120px; }
.class-form.archived { opacity: .75; }
.list { max-width: 850px; }
.calendar-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr); gap: 1.5rem; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid #ddd; border-left: 1px solid #ddd; }
.weekday { text-align: center; font-size: .8rem; color: #666; padding: .5rem 0; border-right: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.day { min-height: 100px; text-align: left; border: 0; border-radius: 0; border-right: 1px solid #ddd; border-bottom: 1px solid #ddd; padding: .4rem; display: flex; flex-direction: column; gap: .15rem; overflow: hidden; }
.day.outside { background: #fafafa; color: #777; }
.day.selected { box-shadow: inset 0 0 0 2px #333; background: #f6f6f6; }
.day.today .day-number { font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.calendar-event { display: flex; align-items: center; gap: .2rem; width: 100%; font-size: .68rem; color: var(--class-color); }
.calendar-event .icon { width: 12px; height: 12px; color: #707070; }
.calendar-event span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-key { display: inline-flex; color: #707070; }
dialog { border: 1px solid #bbb; border-radius: 8px; padding: 1.5rem; width: min(640px, calc(100% - 2rem)); max-height: 90dvh; overflow-y: auto; }
dialog::backdrop { background: #0005; }
dialog h2 { font-size: 1.3rem; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; gap: 1rem; }
.dialog-head h2 { margin: 0; }
.dialog-footer { border-top: 1px solid #ddd; margin-top: 1.2rem; padding-top: 1rem; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .5rem; }
.substep-edit { display: flex; gap: .35rem; align-items: center; margin-bottom: .5rem; }
.substep-edit input[type=text] { width: 100%; min-width: 0; }
.substep-edit button { padding: .3rem .5rem; }
.history { font-size: .9rem; padding-left: 1.2rem; }
.import-row { border-top: 1px solid #ddd; padding-top: 1rem; margin-top: 1rem; }
.import-row .fields { margin-top: .5rem; }
.warning { color: #795109; background: #fffaed; padding: .6rem; border-radius: 4px; }
.banner { background: #fffaed; padding: .7rem 1rem; text-align: center; }
#notice { position: fixed; z-index: 5; bottom: 1rem; left: 50%; transform: translateX(-50%); background: #292929; color: #fff; padding: .7rem 1rem; border-radius: 6px; max-width: calc(100% - 2rem); width: max-content; box-shadow: 0 2px 12px #0002; }
#notice button { margin-left: .75rem; color: #252525; }
#notice.error { background: #8d2020; }
.skip { position: absolute; top: -100px; }
.skip:focus { top: 0; background: #fff; z-index: 10; padding: 1rem; }
[hidden] { display: none !important; }
@media (max-width: 850px) { .sections { grid-template-columns: 1fr; gap: 1rem; } .calendar-layout { grid-template-columns: 1fr; } .day { min-height: 85px; } }
@media (max-width: 520px) { .preferences-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { header { padding: .65rem; gap: .6rem; } nav { width: 100%; justify-content: space-between; gap: .1rem; } nav button { padding: .45rem .55rem; } header > .actions { margin-left: auto; } main { padding-top: 1.2rem; } .fields { grid-template-columns: 1fr; gap: 0; } .day { min-height: 75px; padding: .25rem; } .calendar-event { font-size: .6rem; } dialog { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; padding: 1rem; } #choice { height: auto; margin: auto; width: calc(100% - 2rem); border-radius: 8px; } }
