:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #21332f;
  background: #f4f6f3;
  font-synthesis: none;
  --green: #236b54;
  --border: #dce4dd;
  --muted: #6a7871;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 7px;
  padding: 9px 14px;
  color: inherit;
  font-size: 13px;
  font-weight: 600;
}
button:hover {
  border-color: #739c87;
  background: #f1f7f3;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #87b9a3;
  outline-offset: 3px;
}
input,
select,
textarea {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px;
  background: #fff;
  color: inherit;
  max-width: 100%;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
label input,
label select,
label textarea {
  display: block;
  margin-top: 6px;
  width: 100%;
}
textarea {
  resize: vertical;
}
header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  gap: 9px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -1px;
}
.clock {
  color: var(--green);
  font-size: 36px;
}
.brand-sub {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 600;
  margin-left: 18px;
  border-left: 1px solid var(--border);
  padding-left: 24px;
  color: var(--muted);
}
.header-right,
.actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.pill {
  font-size: 11px;
  font-weight: 650;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #edf3ee;
  padding: 6px 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.notice {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: #faf3dc;
  border-bottom: 1px solid #eadfba;
  padding: 11px 20px;
  font-size: 12px;
  color: #78612c;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b29545;
}
.notice strong {
  white-space: nowrap;
}
main {
  max-width: 1550px;
  margin: 0 auto;
  padding: 36px 4% 55px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.eyebrow,
.section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
  color: var(--muted);
  margin: 0 0 10px;
}
h1 {
  font-weight: 600;
  letter-spacing: -1.1px;
  font-size: 33px;
  margin: 0 0 9px;
}
h2 {
  font-size: 17px;
  font-weight: 650;
  margin: 0;
}
p {
  line-height: 1.5;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.page-heading p {
  margin-bottom: 0;
}
.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.primary:hover {
  background: #185540;
  color: #fff;
}
.secondary {
  background: #fff;
}
.layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 23px;
  margin-bottom: 20px;
  box-shadow: 0 2px 3px #243f2b02;
}
.sidebar {
  padding: 20px 14px;
  align-self: start;
  position: sticky;
  top: 18px;
}
.sidebar input {
  width: 100%;
  font-size: 12px;
  margin-bottom: 15px;
}
.target {
  display: block;
  width: 100%;
  text-align: left;
  margin-bottom: 4px;
  border-color: transparent;
  font-weight: 550;
  padding: 11px 12px;
}
.target small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
  font-size: 11px;
}
.target.selected {
  background: #eaf2eb;
  border-color: #d1e2d5;
  color: #22543d;
}
#targets {
  max-height: 480px;
  overflow: auto;
  margin-bottom: 15px;
}
.full {
  width: 100%;
}
.import-label {
  font-size: 11px;
  color: var(--green);
  margin-top: 20px;
}
.import-label input {
  font-size: 10px;
  padding: 6px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.section-heading p {
  margin: 6px 0 0;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  border-top: 1px solid var(--border);
  padding-top: 23px;
  gap: 24px;
}
.stats > div + div {
  border-left: 1px solid var(--border);
  padding-left: 24px;
}
.stat-label,
.stats small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.stats strong {
  display: block;
  font-size: 31px;
  font-weight: 550;
  letter-spacing: -1px;
  margin: 10px 0 5px;
}
.stats select {
  display: block;
  font-size: 14px;
  margin: 14px 0 10px;
  width: 100%;
  padding: 8px;
}
.chart-controls {
  display: flex;
  gap: 12px;
}
.chart-controls label {
  font-size: 10px;
  color: var(--muted);
}
.chart-controls input,
.chart-controls select {
  font-size: 11px;
  padding: 7px;
}
.legend {
  display: flex;
  gap: 22px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 16px;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.legend i {
  display: inline-block;
  width: 15px;
  height: 3px;
  background: var(--green);
}
.legend .published-line {
  background: #99a3af;
}
.legend .override-line {
  background: #ba8b38;
}
#chart {
  min-height: 230px;
}
#chart svg {
  width: 100%;
  display: block;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  font-weight: 600;
  background: #f7f9f6;
}
th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid #edf0ec;
}
td:last-child {
  text-align: right;
}
.table-scroll {
  overflow: auto;
}
td button {
  font-size: 11px;
  padding: 5px 9px;
  margin-left: 5px;
}
details {
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
}
details table {
  font-size: 11px;
}
summary {
  cursor: pointer;
}
.history-row,
.override-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid #edf0ec;
}
.history-row p,
.override-row p {
  margin: 4px 0;
  font-size: 12px;
}
.history-row small,
.override-row small {
  font-size: 11px;
  color: var(--muted);
}
.history-row button,
.override-row button {
  white-space: nowrap;
  font-size: 11px;
}
.empty {
  padding: 16px 0;
  color: var(--muted);
  font-size: 13px;
}
#message {
  padding: 13px 18px;
  border: 1px solid #a5c4b0;
  background: #e8f3eb;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 13px;
}
#message.error {
  background: #fff0e9;
  border-color: #ddada2;
  color: #8c3427;
}
.error {
  color: #a54134;
  font-size: 13px;
}
dialog {
  width: min(550px, 92vw);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  color: inherit;
  box-shadow: 0 25px 90px #17322230;
}
dialog::backdrop {
  background: #1e32285c;
  backdrop-filter: blur(3px);
}
dialog label {
  margin: 18px 0;
}
dialog .actions {
  justify-content: flex-end;
  margin-top: 24px;
}
.icon {
  border: 0;
  font-size: 24px;
  padding: 0 5px;
}
.days {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.days label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 400;
  margin: 5px 0;
}
.days input {
  width: auto;
  margin: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
#change-summary {
  background: #f3f6f1;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  max-height: 240px;
  overflow: auto;
}
footer {
  border-top: 1px solid var(--border);
  padding: 22px 4%;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  .layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .chart-card .section-heading {
    display: block;
  }
  .chart-controls {
    margin-top: 15px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading .actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  h1 {
    font-size: 27px;
  }
  .stats {
    gap: 12px;
  }
  .stats > div + div {
    padding-left: 12px;
  }
}
@media (max-width: 700px) {
  main {
    padding: 25px 16px;
  }
  .layout {
    display: block;
  }
  .sidebar {
    position: static;
  }
  #targets {
    max-height: 160px;
  }
  .page-heading {
    display: block;
  }
  .page-heading .actions {
    justify-content: flex-start;
    margin-top: 20px;
  }
  .notice {
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .brand-sub {
    display: none;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stats > div:last-child {
    grid-column: 1/-1;
    border-left: 0;
    padding-left: 0;
  }
  .section-heading {
    flex-wrap: wrap;
  }
  .card {
    padding: 18px;
  }
  .history-row {
    align-items: flex-start;
  }
  .chart-controls {
    flex-wrap: wrap;
  }
  footer span {
    display: none;
  }
}

.view-timezone {
  font-size: 10px;
  color: var(--muted);
}
.view-timezone select {
  font-size: 12px;
  padding: 6px;
  margin-top: 3px;
  max-width: 230px;
}
.region-picker {
  border: 0;
  border-top: 1px solid var(--border);
  padding: 18px 0;
  margin: 0 0 18px;
}
.region-picker legend {
  font-size: 12px;
  font-weight: 600;
  padding-right: 10px;
}
#region-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
#region-options label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  background: #f1f6f1;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
}
#region-options input {
  width: auto;
  margin: 0;
  accent-color: var(--green);
}
.region-picker button {
  font-size: 11px;
  padding: 5px 9px;
}
.region-chart {
  border-top: 1px solid var(--border);
  padding: 20px 0 0;
}
.region-chart h3 {
  font-size: 14px;
  margin: 0;
}
.region-chart .section-heading {
  margin-bottom: 5px;
}
.region-chart + .region-chart {
  margin-top: 16px;
}
.editor-context {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.editor-context label {
  flex: 1;
  min-width: 160px;
}
.editor-context p {
  width: 100%;
  margin: 0;
}
.editor-context button {
  order: 1;
}
@media (max-width: 700px) {
  .view-timezone select {
    max-width: 160px;
  }
  .view-timezone {
    font-size: 9px;
  }
  .brand {
    font-size: 22px;
  }
  .header-right {
    gap: 5px;
  }
}
