* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f6f3ed;
  color: #252321;
  font:
    16px/1.6 system-ui,
    sans-serif;
}
header,
main {
  max-width: 1180px;
  margin: auto;
  padding: 28px 24px;
}
header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #d7d0c7;
}
a {
  color: #98402d;
}
h1 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.15;
  margin: 16px 0;
}
h2 {
  font-size: 22px;
}
p {
  max-width: 760px;
}
.eyebrow {
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}
.toolbar,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
  align-items: center;
}
button,
.button {
  font: inherit;
  font-weight: 600;
  border: 1px solid #c8beb1;
  background: #fcfaf6;
  color: #252321;
  padding: 10px 15px;
  border-radius: 9px;
  cursor: pointer;
  text-decoration: none;
}
button.primary {
  background: #a43f28;
  border-color: #a43f28;
  color: white;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
:focus-visible {
  outline: 3px solid #a43f28;
  outline-offset: 3px;
}
input,
select,
textarea {
  display: block;
  font: inherit;
  width: 100%;
  padding: 10px;
  border: 1px solid #b8afa5;
  border-radius: 7px;
  background: #fff;
  color: #252321;
}
input[type="color"] {
  height: 46px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 12px 0;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
.notice {
  color: #635b54;
  font-size: 14px;
}
.panel,
.card {
  background: #fcfaf6;
  border: 1px solid #d7d0c7;
  border-radius: 14px;
  padding: 20px;
}
.board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.column {
  background: #eae4db;
  border-radius: 15px;
  padding: 15px;
  min-width: 0;
}
.column h2 {
  margin: 0 0 15px;
}
.card {
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.card h3 {
  font-size: 18px;
  margin: 0 0 8px;
}
.card p {
  white-space: pre-wrap;
  font-size: 14px;
}
.card .actions button {
  padding: 6px 10px;
  font-size: 13px;
}
.badge {
  font-size: 12px;
  background: #f0c1a9;
  border-radius: 15px;
  padding: 4px 8px;
}
.split {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
dialog {
  width: min(620px, 94vw);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid #c8beb1;
  border-radius: 16px;
  padding: 26px;
  background: #fcfaf6;
  color: #252321;
}
dialog::backdrop {
  background: #25232170;
}
#message {
  min-height: 28px;
  color: #98402d;
  font-weight: 600;
}
.empty {
  font-size: 14px;
  color: #635b54;
  padding: 14px 0;
}
canvas {
  width: 100%;
  height: auto;
  display: block;
  max-height: 720px;
  object-fit: contain;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}
.day {
  min-height: 120px;
  border: 1px solid #d7d0c7;
  border-radius: 8px;
  padding: 8px;
  background: #fcfaf6;
  overflow-wrap: anywhere;
}
.day button {
  font-size: 11px;
  padding: 4px;
  margin: 4px 0;
  width: 100%;
  text-align: left;
}
.day strong {
  font-size: 12px;
}
.hidden {
  display: none !important;
}
.file-label {
  border: 1px solid #c8beb1;
  padding: 10px 15px;
  border-radius: 9px;
  background: #fcfaf6;
  cursor: pointer;
  font-size: 16px;
  margin: 0;
}
.file-label input {
  max-width: 240px;
  font-size: 12px;
  margin-top: 6px;
}
.warning {
  border-left: 3px solid #a43f28;
  padding-left: 12px;
}
footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #d7d0c7;
  font-size: 13px;
  color: #635b54;
}
@media (max-width: 760px) {
  header,
  main {
    padding: 20px 16px;
  }
  .board,
  .split {
    grid-template-columns: 1fr;
  }
  .calendar {
    grid-template-columns: 1fr;
  }
  .calendar .day.blank {
    display: none;
  }
  .day {
    min-height: 70px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .toolbar input {
    min-width: 0;
  }
  header {
    font-size: 13px;
  }
}
@media (prefers-color-scheme: dark) {
  body {
    background: #191817;
    color: #eee9e0;
  }
  .panel,
  .card,
  dialog,
  .day,
  button,
  .button,
  .file-label {
    background: #26231f;
    color: #eee9e0;
    border-color: #514a43;
  }
  .column {
    background: #302b25;
  }
  input,
  select,
  textarea {
    background: #191817;
    color: #eee9e0;
    border-color: #665c52;
  }
  .notice,
  .empty,
  footer {
    color: #bfb6ab;
  }
  a,
  #message {
    color: #e6a18a;
  }
  .badge {
    background: #56382b;
    color: #f4d4c1;
  }
  :focus-visible {
    outline-color: #e6a18a;
  }
}
