:root {
  color-scheme: light;
  --bg: #f5f6f2;
  --surface: #fffefa;
  --ink: #211f1d;
  --muted: #68625c;
  --soft: #8a8179;
  --line: rgba(40, 36, 32, .16);
  --line-strong: rgba(40, 36, 32, .30);
  --added: #4f806c;
  --deleted: #b26459;
  --changed: #3f5365;
  --paper: #725e70;
  --axis: rgba(33, 31, 29, .56);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
}

.suite-header {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line-strong);
}

.ao-home,
.app-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  text-decoration: none;
}

.ao-home img,
.app-mark img {
  width: 34px;
  height: 34px;
  display: block;
}

.app-name {
  font-size: 17px;
  line-height: 1;
  font-weight: 780;
  text-decoration: none;
  letter-spacing: 0;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 56px;
}

.graph-section,
.queue-section {
  padding: 0;
}

.queue-section {
  margin-top: 30px;
  border-top: 1px solid var(--line-strong);
  padding-top: 22px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 18px;
}

.section-head.compact {
  margin-bottom: 12px;
}

.section-head > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--paper);
  font-size: 13px;
  line-height: 1.1;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h2 {
  font-size: 28px;
  line-height: 1.05;
}

.source-line {
  max-width: 390px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 680;
  text-align: right;
  overflow-wrap: break-word;
}

.graph-wrap {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 16px 18px 12px;
}

.chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line);
}

.chart-head h1 {
  font-size: 19px;
  line-height: 1.1;
}

.chart-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
  text-align: right;
}

#wordGraph {
  display: block;
  width: 100%;
  height: 300px;
  margin-top: 8px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend i {
  width: 24px;
  height: 7px;
  display: inline-block;
}

.legend .added {
  background: var(--added);
}

.legend .deleted {
  background: var(--deleted);
}

.task-list {
  border-top: 1px solid var(--line);
}

.task-section {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.task-section h3 {
  color: var(--paper);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 840;
}

.task-rows {
  min-width: 0;
}

.task-row {
  display: grid;
  grid-template-columns: minmax(150px, 240px) minmax(0, 1fr);
  gap: 18px;
  padding: 9px 0;
  border-top: 1px solid rgba(40, 36, 32, .10);
}

.task-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.task-row:last-of-type {
  padding-bottom: 0;
}

.task-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 850;
  overflow-wrap: break-word;
}

.task-detail {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  overflow-wrap: break-word;
}

.axis-line,
.grid-line {
  stroke: var(--axis);
  stroke-width: 1;
}

.grid-line {
  opacity: .20;
}

.bar-added {
  fill: var(--added);
}

.bar-deleted {
  fill: var(--deleted);
}

.tick-label,
.bar-label,
.segment-label,
.empty-label {
  fill: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tick-label,
.bar-label {
  font-size: 13px;
  font-weight: 760;
}

.bar-label.changed {
  fill: #405d73;
}

.segment-label {
  fill: rgba(255, 254, 250, .92);
  font-size: 12px;
  font-weight: 820;
}

.empty-label {
  font-size: 15px;
  font-weight: 760;
}

@media (max-width: 760px) {
  .suite-header {
    width: calc(100% - 24px);
    padding-top: 14px;
  }

  main {
    width: calc(100% - 24px);
    padding-top: 20px;
  }

  .section-head,
  .chart-head,
  .task-section,
  .task-row {
    display: block;
  }

  .chart-head h1 {
    font-size: 20px;
    line-height: 1.12;
  }

  .source-line,
  .chart-head p {
    max-width: none;
    margin-top: 8px;
    text-align: left;
  }

  .graph-wrap {
    padding: 14px 12px 10px;
  }

  #wordGraph {
    height: 260px;
  }

  .task-section h3 {
    margin-bottom: 12px;
  }

  .task-row {
    padding: 10px 0;
  }

  .task-detail {
    margin-top: 4px;
  }
}
