:root {
  color-scheme: light;
  --bg: #f5f2ea;
  --ink: #161616;
  --muted: #6d6a63;
  --line: #ddd5c7;
  --panel: #fffaf0;
  --accent: #c7353a;
  --accent-dark: #9f2429;
  --green: #217a5b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0 18px;
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.statusLine {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.1;
}

h2 {
  font-size: 18px;
}

.iconButton {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--green);
  cursor: pointer;
  font-size: 22px;
}

.summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.summary div {
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.summary span {
  display: block;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.summary small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.panel {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.field {
  display: grid;
  gap: 6px;
}

.field span,
.counter span {
  color: var(--muted);
  font-size: 13px;
}

select,
textarea,
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

select,
input {
  height: 46px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  padding: 10px 12px;
}

.counterGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.counter {
  display: grid;
  gap: 6px;
}

.counter input {
  font-size: 24px;
  font-weight: 800;
}

.primaryButton,
.textButton {
  border: 0;
  cursor: pointer;
}

.primaryButton {
  min-height: 48px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.primaryButton:active {
  background: var(--accent-dark);
}

.primaryButton:disabled,
.iconButton:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.hours {
  margin-top: 20px;
}

.sectionTitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.textButton {
  background: transparent;
  color: var(--accent);
  font-weight: 700;
}

.hourList {
  display: grid;
  gap: 8px;
}

.hourRow {
  display: grid;
  grid-template-columns: 112px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.78);
}

.hourRow strong {
  font-size: 15px;
}

.hourRow span {
  color: var(--muted);
  font-size: 13px;
}

.hourRow button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

@media (max-width: 560px) {
  .app {
    padding: 14px;
  }

  .summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .counterGrid {
    grid-template-columns: 1fr;
  }

  .hourRow {
    grid-template-columns: 104px 1fr 36px;
  }
}
