* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: sans-serif;
  line-height: 1.5;
  color: #222;
  background: #f5f5f5;
}

button,
input {
  font: inherit;
}

button {
  padding: 0.6rem 1rem;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

[hidden] {
  display: none !important;
}

.app-shell {
  width: min(100% - 2rem, 720px);
  margin: 2rem auto;
}

.screen {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #ccc;
}

.status-screen {
  text-align: center;
}

.screen h1 {
  margin-top: 0;
}

.screen-header,
.button-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-actions {
  display: flex;
  gap: 0.5rem;
}

fieldset {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 1rem;
}

label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.message {
  min-height: 1.5rem;
  color: #9b1c1c;
}

.message[data-tone="info"] {
  color: #333;
}

.message[data-tone="success"] {
  color: #176b34;
}

.action-list {
  display: grid;
  gap: 1rem;
}

.action-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #ccc;
}

.action-card h2,
.action-card p {
  margin: 0;
}

.action-value {
  margin-top: 0.25rem !important;
  font-weight: 700;
}

#current-date {
  margin-bottom: 0;
}

@media (max-width: 520px) {
  .screen-header,
  .button-row,
  .header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .action-card {
    grid-template-columns: 1fr;
  }
}
