* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: #f3f6f8;
  color: #173044;
  font: 15px/1.4 "Segoe UI", "Helvetica Neue", sans-serif;
  overflow-x: hidden;
}

h1,
p {
  margin: 0;
}

.card {
  width: 100%;
  max-width: 340px;
  min-height: 100%;
  padding: 16px 16px 14px;
  background: #fff;
  border-right: 1px solid #d5e0ea;
}

.eyebrow {
  margin-bottom: 4px;
  color: #1f5f99;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  color: #173044;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.region {
  margin-top: 3px;
  color: #4d6274;
  font-size: 13px;
}

#panel {
  margin-top: 16px;
}

.loading {
  color: #4d6274;
  font-size: 14px;
}

.clock {
  color: #173044;
  font-size: 32px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.clock-date {
  margin-top: 4px;
  color: #4d6274;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.fact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e1e8ee;
}

.fact-label {
  color: #4d6274;
  font-size: 13px;
  font-weight: 600;
}

.fact-value {
  color: #173044;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  overflow-wrap: anywhere;
}

.iso .fact-value {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 12px;
  font-weight: 600;
}

.notice {
  padding: 12px;
  background: #fff6e8;
  border: 1px solid #e6c48a;
  border-radius: 12px;
}

.notice-title {
  color: #3d2910;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.notice-copy {
  margin-top: 6px;
  color: #4a3416;
  font-size: 14px;
  line-height: 1.45;
}

.problem {
  padding: 12px;
  background: #f4f7f9;
  border: 1px solid #d5e0ea;
  border-radius: 12px;
}

.problem .notice-title,
.problem .notice-copy {
  color: #173044;
}

.field {
  display: block;
  margin-top: 10px;
  color: #4d6274;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input,
textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  color: #173044;
  background: #fff;
  border: 1px solid #d5e0ea;
  border-radius: 8px;
  font: 14px/1.4 "Segoe UI", "Helvetica Neue", sans-serif;
  text-transform: none;
  letter-spacing: 0;
}

textarea {
  resize: vertical;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 12px;
}

button {
  margin-top: 10px;
  padding: 7px 12px;
  color: #fff;
  background: #1f5f99;
  border: 0;
  border-radius: 8px;
  font: 14px/1.2 "Segoe UI", "Helvetica Neue", sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.zone-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.zone-row input {
  flex: 1;
}

.zone-row button,
.zone-shortcuts button {
  margin-top: 0;
}

.zone-shortcuts {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.zone-shortcuts button {
  color: #1f5f99;
  background: #e8f1f8;
}

#zone-form {
  margin-top: 14px;
}

#zone-form[hidden],
[hidden] {
  display: none !important;
}

.foot {
  margin-top: 16px;
  color: #4d6274;
  font-size: 12px;
}

@media (max-width: 220px) {
  h1 {
    font-size: 16px;
  }

  .clock {
    font-size: 24px;
  }
}
