* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #faf9f5;
  color: #242735;
  font:
    16px/1.5 system-ui,
    sans-serif;
}
header,
main,
footer {
  max-width: 1080px;
  margin: auto;
  padding: 28px;
}
header {
  border-top: 10px solid var(--accent);
}
.yellow {
  --accent: #edbf30;
  --pale: #fff4c5;
}
.blue {
  --accent: #4285d9;
  --pale: #e4efff;
}
header span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin: 18px 0;
}
h2 {
  font-size: 1.25rem;
  margin-top: 0;
}
section {
  background: white;
  border: 1px solid #e2e2dc;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
}
.clocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
.clock {
  background: var(--pale);
  padding: 20px;
  border-radius: 10px;
}
.clock strong {
  display: block;
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
}
.clock small {
  display: block;
}
form {
  display: flex;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
  min-width: 180px;
  font-size: 0.9rem;
}
input,
select {
  font: inherit;
  padding: 10px;
  border: 1px solid #b9bfc8;
  border-radius: 6px;
  width: 100%;
}
button {
  font: inherit;
  font-weight: 600;
  background: var(--accent);
  color: #172033;
  border: 0;
  border-radius: 6px;
  padding: 11px 16px;
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #1c518a;
  outline-offset: 3px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
output {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
footer,
#sample {
  color: #596273;
  font-size: 0.85rem;
}
[hidden] {
  display: none !important;
}
#message {
  min-height: 1.5em;
}
fieldset {
  min-width: 0;
  width: 100%;
  border: 0;
  padding: 0;
}
legend {
  font-weight: 600;
  margin-bottom: 12px;
}
.zone-row {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.zone-row .zone-field {
  min-width: 0;
  flex-basis: 240px;
}
.source-field {
  flex: 1;
  min-width: 180px;
}
.source-field > label,
.zone-field > label {
  min-width: 0;
  margin-bottom: 7px;
}
.timezone-picker {
  position: relative;
  min-width: 0;
}
.timezone-picker:focus-within {
  z-index: 20;
}
.timezone-popup {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 10;
  background: white;
  border: 1px solid #b9bfc8;
  border-radius: 6px;
  box-shadow: 0 6px 18px #17203324;
}
.timezone-popup [role="listbox"] {
  max-height: 16rem;
  overflow-y: auto;
}
.timezone-popup [role="option"] {
  padding: 9px 10px;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.timezone-popup [role="option"][aria-selected="true"],
.timezone-popup [role="option"]:hover {
  background: var(--pale);
}
.timezone-popup [role="option"][aria-disabled="true"] {
  color: #667080;
  cursor: default;
}
.timezone-search-status {
  padding: 8px 10px;
  color: #596273;
  font-size: 0.85rem;
  border-top: 1px solid #e2e2dc;
}
.zone-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
.danger {
  background: #a32626;
  color: white;
}
.backup-selection,
.backup-row-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.backup-selection {
  margin-top: 18px;
}
.backup-selection label {
  flex-direction: row;
  align-items: center;
}
#backup-catalog input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
#backup-list {
  padding: 0;
  list-style: none;
}
.backup-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #e2e2dc;
}
.backup-details {
  min-width: 0;
  flex-basis: 260px;
  overflow-wrap: anywhere;
}
#backup-message {
  margin-bottom: 20px;
}
@media (max-width: 600px) {
  header,
  main,
  footer {
    padding: 18px;
  }
  section {
    padding: 18px;
  }
  form {
    display: block;
  }
  label,
  form button {
    margin-bottom: 12px;
  }
}
