:root {
  color-scheme: dark;
  background: #16132a;
  color: #f7eaf1;
  font:
    16px/1.5 system-ui,
    sans-serif;
  --panel: #211c34;
  --line: #4a3b55;
  --pink: #f9a9c8;
  --muted: #c9b5cf;
  --square: 13px;
  --gap: 4px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  width: min(1120px, calc(100% - 36px));
  margin: auto;
  padding-bottom: 55px;
}
a {
  color: inherit;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
button,
input,
select {
  font: inherit;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  background: #2c233e;
  color: inherit;
  border-radius: 6px;
  padding: 8px 11px;
}
button {
  cursor: pointer;
}
button:hover {
  border-color: var(--pink);
}
:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}
h1,
p {
  margin: 0;
}
.hero {
  padding: 42px 0 30px;
}
h1 {
  font:
    700 clamp(58px, 11vw, 138px)/0.9 Georgia,
    serif;
  letter-spacing: -0.09em;
}
.hero em {
  color: var(--pink);
}
.hero p {
  color: var(--muted);
  margin-top: 15px;
}
.dashboard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(12px, 3vw, 27px);
}
label {
  display: grid;
  gap: 5px;
  font-size: 0.84rem;
  color: var(--muted);
}
form,
.toolbar {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
}
form label,
.toolbar label {
  flex: 1 1 125px;
}
.toolbar label:nth-child(2),
#entry-form label:first-child {
  flex: 0 1 140px;
}
.toolbar {
  margin-top: 20px;
}
#stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  color: var(--muted);
  margin: 20px 0 12px;
  font-size: 0.9rem;
}
#stats strong {
  color: var(--pink);
  font-size: 1.15rem;
}
#chart-wrap {
  overflow-x: auto;
  padding-bottom: 9px;
}
#chart {
  display: grid;
  width: max-content;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, var(--square));
  grid-auto-columns: var(--square);
  gap: var(--gap);
  padding: 5px;
}
.cell {
  min-height: 0;
  padding: 0;
  width: var(--square);
  height: var(--square);
  border: 0;
  background: #3e304e;
  border-radius: 3px;
  position: relative;
}
.cell.done {
  background: #ef89ba;
}
.cell.today {
  box-shadow: 0 0 0 1px #fac1dc;
}
.cell.selected {
  box-shadow: 0 0 0 2px #fff;
}
.cell:hover {
  background: #bc84aa;
}
#entry-form {
  margin-top: 17px;
}
#toggle {
  background: #f9a9c8;
  color: #25162a;
  font-weight: 700;
}
#list {
  padding-left: 20px;
  max-height: 300px;
  overflow: auto;
}
#list li {
  margin: 5px 0;
}
#list button {
  margin-right: 10px;
}
#status:not(:empty) {
  color: var(--pink);
  margin-top: 10px;
}
footer {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.87rem;
}
.import input {
  max-width: 235px;
}
[hidden] {
  display: none !important;
}
