:root {
  color-scheme: light;
  --ink: #111111;
  --paper: #ffffff;
  --muted: #707070;
  --line: #dedede;
  --soft: #f5f5f5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; }
button, input { font: inherit; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
[hidden] { display: none !important; }
main { min-height: 100svh; display: grid; place-items: center; padding: 48px 28px; }
.login-panel { width: 100%; max-width: 360px; }
label, legend { font-size: 14px; font-weight: 500; }
.animal-field { display: grid; gap: 12px; margin-bottom: 32px; }
input { width: 100%; min-height: 52px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: var(--paper); font-size: 17px; }
input:hover, input:focus { border-color: var(--ink); }
colour-picker { display: block; margin-bottom: 36px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0; margin-bottom: 18px; }
.selection-count { font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; font-weight: 400; color: var(--muted); }
.colour-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.colour-choice { display: grid; place-items: center; min-height: 48px; aspect-ratio: 1; padding: 0; border: 1px solid rgb(0 0 0 / 12%); border-radius: 5px; }
.colour-choice:hover { border-color: var(--ink); }
.colour-choice[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.colour-choice[aria-disabled="true"] { cursor: default; }
.choice-check { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 14px; opacity: 0; }
.colour-choice[aria-pressed="true"] .choice-check { opacity: 1; }
.colour-choice[data-colour="black"] { background: #101010; }
.colour-choice[data-colour="white"] { background: #ffffff; }
.colour-choice[data-colour="grey"] { background: #929292; }
.colour-choice[data-colour="red"] { background: #ef2828; }
.colour-choice[data-colour="orange"] { background: #ff8600; }
.colour-choice[data-colour="yellow"] { background: #ffe119; }
.colour-choice[data-colour="green"] { background: #168a28; }
.colour-choice[data-colour="blue"] { background: #2860f0; }
.colour-choice[data-colour="purple"] { background: #7400aa; }
.colour-choice[data-colour="pink"] { background: #ff8eba; }
.colour-choice[data-colour="brown"] { background: #9a6324; }
.colour-choice[data-colour="beige"] { background: #f6c798; }
.colour-choice[data-colour="cyan"] { background: #00cfff; }
.colour-choice[data-colour="teal"] { background: #006b5e; }
.colour-choice[data-colour="turquoise"] { background: #78ffd6; }
.colour-choice[data-colour="navy"] { background: #000075; }
.colour-choice[data-colour="maroon"] { background: #80002d; }
.colour-choice[data-colour="olive"] { background: #858500; }
.colour-choice[data-colour="magenta"] { background: #f000e8; }
.colour-choice[data-colour="lime"] { background: #aaff00; }
.primary-button { width: 100%; min-height: 52px; border: 1px solid var(--ink); border-radius: 4px; padding: 14px 18px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 500; }
.primary-button:hover:not(:disabled) { background: #333333; }
.primary-button:disabled { background: var(--soft); border-color: var(--line); color: #858585; }
.form-message { font-size: 13px; line-height: 1.6; padding: 14px 16px; background: var(--soft); border-left: 2px solid var(--ink); margin: 0 0 18px; }
.tracker-panel { width: 100%; max-width: 1080px; min-width: 0; }
activity-tracker { display: block; --cell: 13px; --cell-gap: 4px; }
.activity-header { margin-bottom: 32px; }
.activity-header h1 { font-size: 28px; font-weight: 500; letter-spacing: -.6px; margin: 0 0 10px; }
.activity-header h1:focus { outline: none; }
.activity-range, .today-date { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }
.activity-figure { margin: 0; }
.calendar-layout { display: flex; gap: 14px; }
.weekday-labels { flex: 0 0 80px; display: grid; grid-template-rows: repeat(7, var(--cell)); gap: var(--cell-gap); padding-top: 32px; font-size: 12px; color: var(--muted); line-height: var(--cell); }
.calendar-scroll { min-width: 0; overflow-x: auto; padding: 4px 4px 12px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.calendar-scroll:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.calendar-content { width: max-content; padding-right: 26px; }
.calendar-months, .activity-grid { display: grid; grid-auto-flow: column; grid-auto-columns: var(--cell); column-gap: var(--cell-gap); }
.calendar-months { height: 28px; font-size: 12px; color: var(--muted); }
.calendar-months span { white-space: nowrap; }
.activity-grid { grid-template-rows: repeat(7, var(--cell)); row-gap: var(--cell-gap); }
.activity-day { width: var(--cell); height: var(--cell); border: 1px solid #e2e2e2; border-radius: 2px; background: #eeeeee; }
.activity-day.day-done { background: var(--ink); border-color: var(--ink); }
.activity-day.day-today { outline: 1px solid var(--ink); outline-offset: 1px; }
.activity-day.day-padding { visibility: hidden; }
.activity-caption { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 12px 0 0 98px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.activity-legend { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.activity-legend i { display: block; width: 12px; height: 12px; border-radius: 2px; background: #eeeeee; border: 1px solid #e2e2e2; }
.activity-legend .legend-done { background: var(--ink); border-color: var(--ink); margin-left: 6px; }
.daily-action { width: 100%; max-width: 320px; margin: 48px auto 0; text-align: center; }
.today-date { margin-bottom: 12px; }
.activity-button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.activity-button[aria-pressed="true"]:hover { background: var(--soft); }
.activity-status { min-height: 18px; font-size: 12px; line-height: 1.5; color: var(--muted); margin: 14px 0 0; }
.activity-error { margin-top: 16px; text-align: left; }
@media (max-width: 360px) { .colour-grid { gap: 10px; } }
@media (max-width: 480px) { main { padding: 32px 20px; } }
