:root {
color-scheme: dark;
  --paper: #161615;
  --ink: #f6f2ee;
  --sub: #d0cec5;
  --line: rgba(246,242,238,.20);
  --glass: linear-gradient(140deg,rgba(246,242,238,.16),rgba(246,242,238,.075) 43%,rgba(246,242,238,.04)),rgba(26,25,24,.58);
  --olive: #c3c6ae;
  --olive-dark: #939580;
  --gold: #dfbe87;
  --red: #ffb4a6;
  --radius: 15px;
  font-family: 'Century Gothic','Poppins','Segoe UI',system-ui,sans-serif;
}

button, input, select, textarea {
font: inherit;
  color: inherit;
}

button, select, input[type=month] {
cursor: pointer;
  touch-action: manipulation;
}

button {
background: none;
  border: 0;
}

button:disabled {
cursor: wait;
  opacity: .6;
}

a {
color: var(--gold);
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
position: fixed;
  left: 8px;
  top: -200px;
  z-index: 10;
  background: #262523;
  padding: 8px;
}

.skip:focus {
top: 8px;
}

.workspace {
min-width: 0;
}

.utility {
display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 2px 5px;
}

.crumb, .logout {
font-size: 12px;
  color: var(--sub);
}

.crumb span {
margin: 0 6px;
  color: #aaa797;
}

.crumb strong {
color: var(--ink);
}

.actions, .controls, .headline, .section-heading, .chip-row {
display: flex;
  align-items: center;
  gap: 9px;
}

.icon-button {
font-size: 18px;
  line-height: 1;
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff0b;
}

.logout {
padding: 6px;
}

.logout:hover {
text-decoration: underline;
}

.headline, .section-heading {
justify-content: space-between;
}

.headline {
align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.headline p, .section-heading p, .card-head p, .muted {
color: var(--sub);
  margin: 4px 0 0;
}

.eyebrow {
font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 0 0 5px;
}

.controls, .chip-row {
flex-wrap: wrap;
}

.controls {
align-items: flex-end;
}

.field, .field-inline {
display: grid;
  gap: 5px;
  color: var(--sub);
  font-size: 13px;
  font-weight: 650;
}

.field-inline {
font-size: 11px;
}

.field input, .field select, .field textarea, .field-inline input, .field-inline select {
height: 39px;
  border: 1px solid #77766c;
  border-radius: 7px;
  padding: 7px 10px;
  font-weight: 450;
  background: #2d2c29;
  color: var(--ink);
  min-width: 0;
}

.field textarea {
height: auto;
  resize: vertical;
}

.field input[type=date], .field-inline input[type=month] {
min-width: 142px;
}

.primary, .secondary, .plain {
border-radius: 7px;
  font-size: 12px;
  padding: 10px 13px;
  font-weight: 750;
}

.primary {
background: var(--olive);
  color: #20211a;
  border: 1px solid var(--olive);
}

.primary:hover {
background: #d6d9c1;
}

.secondary {
border: 1px solid #858477;
  background: rgba(246,242,238,.08);
}

.secondary:hover {
background: rgba(246,242,238,.16);
}

.plain, .table-link {
text-decoration: underline;
  text-underline-offset: 3px;
}

.grid {
display: grid;
  gap: 12px;
}

.small {
font-size: 11px;
  color: var(--sub);
}

.section-heading h2 {
font-size: 20px;
  letter-spacing: -.035em;
  font-weight: 700;
  margin: 0;
}

.panel p, .section-heading p {
font-size: 13px;
}

.split {
display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
}

.split>.panel {
margin-bottom:0; margin-inline:0; width:100%; min-width:0;
}

.section {
margin-top: 18px;
}

.section-heading {
align-items: flex-start;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.section-note {
font-size: 12px;
  color: var(--sub);
  margin: 9px 0;
}

.tone {
border-radius: 999px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 650;
  padding: 3px 8px;
  background: #b9bfa420;
  color: #d5d9c3;
  border: 1px solid #b9bfa450;
}

.tone.dev {
background: #bb9f6e22;
  color: #ecd1a2;
  border-color: #bb9f6e52;
}

.bar-list {
display: grid;
  gap: 6px;
}

.bar-row {
display: grid;
  grid-template-columns: minmax(0,1fr) 31px;
  gap: 10px;
  align-items: center;
  border-radius: 5px;
  padding: 1px 2px;
  text-align: left;
  width: 100%;
}

.bar-row[aria-pressed=true] {
outline: 2px solid var(--olive);
  outline-offset: 2px;
}

button.bar-row:hover .bar-track {
background: #66665a;
}

.bar-row span:first-child {
min-width: 0;
}

.bar-label {
font-size: 12px;
  display: block;
  margin-bottom: 3px;
}

.bar-track {
display: block;
  background: #f6f2ee1e;
  width: 100%;
  height: 5px;
  border-radius: 3px;
  overflow: hidden;
}

.bar-fill {
height: 100%;
  display: block;
  background: #b9be99;
  border-radius: 3px;
}

.development .bar-fill {
background: #d0ac78;
}

.bar-value {
font-variant-numeric: tabular-nums;
  font-weight: 650;
  text-align: right;
}

.dialog-body table {
border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}

.table-wrap {
overflow: auto;
  max-width: 100%;
}

.table-link {
padding: 0;
  text-align: left;
  color: var(--gold);
  font-weight: 650;
}

.empty {
padding: 16px 12px;
  text-align: center;
  color: var(--sub);
  font-size: 13px;
  background: #ffffff08;
  border: 1px dashed #ffffff25;
  border-radius: 8px;
  margin: 7px 0;
}

.filters {
display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 10px 0 13px;
  align-items: flex-end;
}

.filters .grow {
flex: 1;
  min-width: 160px;
}

.warning, .err {
color: var(--red);
  font-weight: 650;
}

.stack {
display: grid;
  gap: 9px;
}

.range-note {
font-size: 12px;
  color: var(--sub);
}

.terms {
font-size: 13px;
}

.terms summary {
cursor: pointer;
  font-weight: 650;
}

.terms dl {
display: grid;
  grid-template-columns: minmax(110px,1fr) minmax(180px,3fr);
  gap: 8px 18px;
}

.terms dt {
font-weight: 650;
}

.terms dd {
margin: 0;
  color: var(--sub);
}

.terms a {
overflow-wrap: anywhere;
}

.loading {
padding: 30px 0;
  color: var(--sub);
}

dialog {
border: 1px solid #827e71;
  border-radius: 16px;
  color: var(--ink);
  background: #2b2a27;
  box-shadow: 0 16px 70px #0008;
  width: min(625px,calc(100% - 24px));
  max-height: 90dvh;
  overflow: auto;
  padding: 0;
}

dialog::backdrop {
background: #0a0a0ad1;
}

.dialog-head {
padding: 20px 22px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.dialog-head h2 {
font-size: 24px;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -.04em;
}

.dialog-body {
padding: 0 22px 22px;
}

.dialog-body form {
display: grid;
  gap: 13px;
}

.dialog-body h3 {
font-size: 15px;
  margin: 16px 0 6px;
}

.form-grid {
display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}

.end {
display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.err {
font-size: 13px;
  white-space: pre-line;
}

.notice {
position: fixed;
  bottom: 20px;
  right: 20px;
  background: #444637;
  color: #fff;
  border: 1px solid var(--olive-dark);
  border-radius: 9px;
  max-width: min(440px,90vw);
  font-size: 14px;
  padding: 12px 18px;
  z-index: 10;
}

.notice:empty, .err:empty, [hidden] {
display: none!important;
}

.history {
list-style: none;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.history li {
border-left: 3px solid #969c83;
  padding: 4px 9px;
  background: #ffffff08;
  overflow-wrap: anywhere;
}

.history small {
display: block;
  color: var(--sub);
}

.section-gap {
margin-top: 14px;
}

.subnav {
display: inline-flex;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: 8px;
}

.subnav button {
padding: 6px 10px;
  font-size: 12px;
  border-radius: 5px;
}

.subnav button[aria-pressed=true] {
background: var(--olive-dark);
  color: #141610;
}

.num {
font-variant-numeric: tabular-nums;
}

.trend {
display: grid;
  gap: 8px;
}

.trend-row {
display: grid;
  grid-template-columns: 70px 1fr minmax(40px,max-content);
  align-items: center;
  gap: 12px;
  font-size: 12px;
}

.trend-row .bar-track {
height: 7px;
}

.trend-row b {
text-align: right;
}

.pair {
display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 7px 0;
}

.pair:last-child {
border: 0;
}

@media(max-width:690px) {
.split {
grid-template-columns: 1fr;
}

.headline {
align-items: flex-start;
}
}

@media(max-width:450px) {
.headline .controls {
width: 100%;
}

.form-grid {
grid-template-columns: 1fr;
}

.terms dl {
display: block;
}

.terms dd {
margin: 1px 0 9px;
}

.controls .field-inline {
flex: 1;
}

.controls input {
width: 100%;
}

.dialog-head {
padding: 16px 14px 9px;
}

.dialog-body {
padding: 0 14px 16px;
}

.filters .field-inline {
width: 100%;
}
}

@media print {
:root {
color-scheme: light;
  --ink: #161616;
  --sub: #434343;
  --line: #ccc;
}

.controls, .actions, .terms {
display: none!important;
}

.utility {
display: none;
}
}

.source-flow {
margin-top: 12px;
}

.source-flow img {
display: block; width: min(100%, 525px); height: auto; margin-top: 16px; background: white; border-radius: 5px;
}
.workspace {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}
.utility {
  margin: -8px 0 10px;
  padding: 0;
  align-items: center;
  gap: 10px;
}
.utility #identity {
  color: rgba(246,242,238,.72);
  font-size: 11px;
}
main {
  min-width: 0;
  outline: none;
}
.headline {
  align-items: center;
  margin-bottom: 16px;
}
.headline h1 {
  margin: 0;
  text-align: left;
}
.card h2, .section-heading h2 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #f6f2ee;
  text-align: left;
  letter-spacing: -.2px;
}
.metrics .kpi-val, .metrics .kpi-lbl, .metrics .kpi-sub {
  display: block;
}
.metrics .kpi-val {
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.table-wrap {
  min-width: 0;
}
dialog {
  margin: auto;
}
.card > .card-head, .card > .table-wrap, .card > form {
  position: relative;
}
@media(max-width:560px) {
  .utility #identity { display:none; }
  .crumb { font-size:10.5px; }
  .headline h1 { font-size: 24px; }
  .grid.kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }

}
@media print {
  .utility { display:none; }
}
