:root {
  color-scheme: light;
  background: #f7f4ee;
  color: #332a24;
  font: 16px/1.55 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: Georgia, serif; line-height: 1.2; font-weight: 400; }
h1 { margin: 0 0 .7rem; font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { margin-top: 0; font-size: clamp(1.55rem, 4vw, 2.1rem); }
h3 { margin: 1.5rem 0 .6rem; font-size: 1.35rem; }
p { margin: .5rem 0 1rem; }
a { color: #5e4132; text-underline-offset: .2rem; }
.eyebrow { margin: 0 0 .35rem; color: #69574a; text-transform: uppercase; letter-spacing: .17em; font-size: .76rem; }
.topbar { padding: 1.3rem max(1rem, calc((100% - 66rem) / 2)); background: #ede6dc; }
.topbar, .topbar form, .toolbar, nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem; }
.topbar h1 { margin: 0; }
.dashboard { width: min(calc(100% - 2rem), 66rem); margin: 1.5rem auto; }
.dashboard nav { justify-content: flex-start; margin-bottom: 1rem; }
.login { width: min(calc(100% - 2rem), 28rem); margin: clamp(2rem, 12vh, 8rem) auto; }
.panel { padding: clamp(1rem, 4vw, 2rem); margin-bottom: 1.2rem; border: 1px solid #d8ccbf; background: #fffdf9; }
form, .field-grid { display: grid; gap: .8rem; min-width: 0; }
.field-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.toolbar { align-items: end; margin-bottom: 1rem; }
.toolbar label { flex: 1 1 15rem; }
label { display: grid; gap: .25rem; min-width: 0; font-weight: 550; }
label.check { display: flex; align-items: center; gap: .5rem; }
input, textarea, select, button {
  font: inherit;
  color: inherit;
  border: 1px solid #aa9787;
  border-radius: .25rem;
  min-height: 44px;
  padding: .45rem .65rem;
  min-width: 0;
  max-width: 100%;
}
input, textarea, select { background: #fff; width: 100%; }
input[type="checkbox"] { width: 1.2rem; min-height: 1.2rem; accent-color: #604437; }
textarea { resize: vertical; }
button { justify-self: start; background: #4e382e; border-color: #4e382e; color: #fff; cursor: pointer; }
button.secondary { background: #f1ebe2; color: #48362b; }
button:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 2px solid #7a4c36; outline-offset: 2px; }
#notice { padding: .8rem; background: #e8efe4; overflow-wrap: anywhere; }
.error, #notice.error { background: #f7e4e1; color: #731f19; padding: .7rem; }
#duration-form { border-top: 1px solid #e2d6c7; padding-top: 1rem; margin-top: 1rem; }
ul { list-style: none; padding: 0; }
li { padding: .55rem 0; border-bottom: 1px solid #e9e0d6; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; overflow-wrap: anywhere; }
li span { flex: 1 1 16rem; }
@media (max-width: 480px) {
  .topbar { align-items: flex-start; }
  .topbar form { justify-content: flex-start; }
  .login button, .toolbar button { width: 100%; }
}
