:root {
  --bg: #f6f8fb;
  --ink: #17202f;
  --muted: #637083;
  --line: #d9e1ec;
  --surface: #ffffff;
  --brand: #0b6f6a;
  --brand-dark: #075653;
  --accent: #e9a23b;
  --good: #198754;
  --shadow: 0 18px 45px rgba(23, 32, 47, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

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

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

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

.eyebrow {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.85rem, 6vw, 3.35rem);
  line-height: 1;
}

h2 {
  margin-bottom: 4px;
  font-size: 1.32rem;
}

h3 {
  margin-bottom: 14px;
  font-size: 1rem;
}

.month-pill,
.status-chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 9px 12px;
  font-size: 0.85rem;
  font-weight: 700;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0 18px;
}

.tab-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  min-height: 44px;
  font-weight: 700;
}

.tab-button.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-heading p,
.setup-list p,
.form-note {
  color: var(--muted);
  line-height: 1.5;
}

.highlight-form,
.panel,
.setup-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.highlight-form {
  display: grid;
  gap: 16px;
  padding: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

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

textarea {
  resize: vertical;
  min-height: 92px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(11, 111, 106, 0.16);
  border-color: var(--brand);
}

.grid-two,
.filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

fieldset {
  display: grid;
  gap: 12px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

legend {
  padding: 0 6px;
  color: var(--brand-dark);
  font-weight: 800;
}

.primary-action,
.secondary-action {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.primary-action {
  min-height: 50px;
  background: var(--brand);
  color: #ffffff;
}

.primary-action:hover,
.primary-action:focus {
  background: var(--brand-dark);
}

.secondary-action {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--brand-dark);
}

.form-note {
  margin: 0;
  font-size: 0.9rem;
}

.form-note.success {
  color: var(--good);
  font-weight: 700;
}

.hidden-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
}

.filters {
  margin-bottom: 16px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.metric {
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
  box-shadow: var(--shadow);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
}

.panel {
  padding: 16px;
}

.bar-row {
  display: grid;
  grid-template-columns: 92px 1fr 42px;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.bar-track {
  overflow: hidden;
  height: 14px;
  border-radius: 999px;
  background: #e8edf3;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.entry-list {
  display: grid;
  gap: 10px;
}

.entry-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.entry-card strong {
  display: block;
  margin-bottom: 5px;
}

.entry-card p {
  margin-bottom: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.setup-list {
  display: grid;
  gap: 12px;
}

.setup-list article {
  padding: 16px;
}

.url-preview {
  color: var(--muted);
}

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

  .topbar,
  .section-heading {
    display: block;
  }

  .month-pill,
  .status-chip {
    display: inline-block;
    margin-top: 12px;
  }

  .grid-two,
  .filters,
  .metric-grid,
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .metric {
    padding: 14px;
  }

  .metric strong {
    font-size: 1.75rem;
  }
}
