@font-face {
  font-family: "DM Sans";
  src: url("type/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("type/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #f3f5ef;
  --paper: #fbfcf8;
  --ink: #263830;
  --muted: #52635a;
  --line: #cdd7cb;
  --accent: #3f6355;
  --tint: #e3ebe1;
  --focus: #75521f;
  --on-accent: #ffffff;
  --error: #813f38;
  --control-border: #687b70;
  --deep: var(--tint);
  --sideink: var(--ink);
  --sidemuted: var(--muted);
  --siderule: var(--line);
  --heading: "Instrument Serif", Georgia, serif;
  --radius: 18px;
  --shadow: 0 6px 22px #263f3010;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 100%;
  line-height: 1.5;
}
:root[data-palette="blue"] {
  --bg: #f0f3f5;
  --paper: #fafbfc;
  --ink: #283a46;
  --muted: #50616e;
  --line: #ccd8dd;
  --accent: #436277;
  --tint: #e1e9ed;
  --focus: #75521f;
  --on-accent: #ffffff;
  --error: #813f38;
  --control-border: #647986;
}
:root[data-palette="plum"] {
  --bg: #f5f1f3;
  --paper: #fcf9fa;
  --ink: #3b303a;
  --muted: #685963;
  --line: #d9cfd5;
  --accent: #705467;
  --tint: #ede4e9;
  --focus: #75521f;
  --on-accent: #ffffff;
  --error: #813f38;
  --control-border: #806e79;
}
:root[data-palette="dark"] {
  color-scheme: dark;
  --bg: #222a29;
  --paper: #293330;
  --ink: #e2ebe6;
  --muted: #bdcac3;
  --line: #4f625a;
  --accent: #b0d0bf;
  --tint: #33433c;
  --focus: #eac996;
  --on-accent: #21372d;
  --error: #f1b7ad;
  --control-border: #91a199;
}
:root[data-palette="sand"] {
  --bg: #f5f2ec;
  --paper: #fcfaf6;
  --ink: #3d352c;
  --muted: #665c50;
  --line: #dbd3c6;
  --accent: #705a40;
  --tint: #ebe5d8;
  --focus: #75521f;
  --on-accent: #ffffff;
  --error: #813f38;
  --control-border: #807360;
}
body.briefing {
  --heading: "DM Sans", Arial, sans-serif;
  --radius: 10px;
  --shadow: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}
button,
select,
input,
textarea {
  font: inherit;
  color: inherit;
}
button,
select,
summary {
  cursor: pointer;
}
button:focus-visible,
select:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
button {
  border: 0;
  background: none;
}
select {
  appearance: none;
  background-color: var(--paper);
  padding: 0.55rem 2rem 0.55rem 0.75rem;
  border: 1px solid var(--control-border);
  border-radius: 8px;
  background-image:
    linear-gradient(
      45deg,
      transparent 37%,
      var(--muted) 38% 61%,
      transparent 62%
    ),
    linear-gradient(
      -45deg,
      transparent 37%,
      var(--muted) 38% 61%,
      transparent 62%
    );
  background-size: 5px 5px;
  background-position:
    right calc(0.7rem + 5px) center,
    right 0.7rem center;
  background-repeat: no-repeat;
  max-width: 100%;
}
button,
input,
textarea,
select {
  min-height: 44px;
}
.sr,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  z-index: 10;
  left: 1rem;
  top: 1rem;
  padding: 1rem;
  background: var(--paper);
}
.mast {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.mast-inner,
main,
footer {
  width: min(1160px, calc(100% - 80px));
  margin: 0 auto;
}
.mast-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 84px;
}
.identity,
.mast nav,
.theme-label,
.pill-row,
.action-row,
.linehead,
.byline,
.crumb,
.rule-row,
.choices-inline {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.wordmark,
.footmark {
  font-size: 2.55rem;
  font-weight: 700;
  letter-spacing: -0.1em;
  line-height: 1;
}
.workspace {
  border-left: 1px solid var(--line);
  margin-left: 0.65rem;
  padding-left: 1.1rem;
  font-size: 0.94rem;
  color: var(--muted);
}
.mast nav {
  gap: 4px;
}
.mast nav button {
  padding: 0.48rem 1.05rem;
  color: var(--muted);
  font-weight: 600;
  border-radius: 22px;
}
.mast nav button[aria-current="page"] {
  color: var(--accent);
  background: var(--tint);
}
.theme-label {
  justify-self: end;
  font-size: 0.88rem;
  color: var(--muted);
}
.theme-label select {
  color: var(--ink);
  font-size: 0.92rem;
}
main {
  padding: clamp(2rem, 5vw, 4.4rem) 0 3rem;
  min-height: calc(100vh - 161px);
  outline: 0;
}
footer {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0 1.6rem;
  color: var(--muted);
  font-size: 0.86rem;
}
.footmark {
  font-size: 1.4rem;
  color: var(--accent);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: var(--heading);
  font-weight: 400;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(2.75rem, 4.8vw, 4.15rem);
  line-height: 1.03;
}
h2 {
  font-size: clamp(1.9rem, 2.8vw, 2.55rem);
  line-height: 1.12;
}
h3 {
  font-size: 1.1rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.briefing h1,
.briefing h2 {
  font-weight: 600;
  letter-spacing: -0.048em;
}
.briefing h1 {
  font-size: clamp(2.4rem, 3.7vw, 3.35rem);
}
.briefing h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.15rem);
}
.sub,
.muted,
.hint {
  color: var(--muted);
}
.hint {
  font-size: 0.92rem;
}
.lead {
  font-size: 1.04rem;
  max-width: 58ch;
}
.crumb {
  font-size: 0.88rem;
  color: var(--muted);
  gap: 0.7rem;
  margin-bottom: 1.05rem;
}
.crumb em {
  width: 24px;
  height: 2px;
  background: var(--accent);
}
.intro {
  margin-bottom: 1.9rem;
}
.intro .sub {
  margin-top: 0.55rem;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(245px, 0.38fr);
  gap: 24px;
  align-items: start;
}
.briefing .employee-layout {
  grid-template-columns: minmax(210px, 0.31fr) minmax(0, 1fr);
}
.briefing .employee-layout .agenda {
  grid-column: 1;
  grid-row: 1;
}
.briefing .employee-layout .form-card {
  grid-column: 2;
  grid-row: 1;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.35rem, 3.3vw, 2.75rem);
}
.form-card h1 {
  max-width: 18ch;
}
.briefing .form-card h1 {
  max-width: 22ch;
}
.form-card .lead {
  margin-top: 1rem;
}
.form-card {
  min-width: 0;
}
.togglebar {
  display: inline-flex;
  flex-wrap: wrap;
  padding: 3px;
  background: var(--tint);
  border-radius: 12px;
  gap: 2px;
}
.togglebar button {
  font-size: 0.9rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9px;
  color: var(--muted);
  font-weight: 600;
}
.togglebar button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 4px #142e261c;
}
.top-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.caption {
  font-size: 0.89rem;
  color: var(--muted);
  font-weight: 600;
}
.scale {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 5px;
  margin-top: 0.7rem;
}
.scale label,
.pref label {
  position: relative;
  cursor: pointer;
}
.scale input,
.pref input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  opacity: 0;
}
.scale span,
.pref span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  background: var(--paper);
  border: 1px solid var(--control-border);
  border-radius: 8px;
  font-size: 1.04rem;
  font-weight: 600;
}
.scale input:focus-visible + span,
.pref input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.scale input:checked + span,
.pref input:checked + span {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px currentColor;
}
.scale span:hover,
.pref span:hover {
  border-color: var(--accent);
}
fieldset {
  border: none;
  padding: 0;
  margin: 0;
  min-width: 0;
}
legend {
  padding: 0;
  font-weight: 600;
}
.field {
  margin: 1.65rem 0 0;
}
.endpoint {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}
.pref {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.7rem;
}
.pref span {
  padding: 0.65rem 0.8rem;
  justify-content: flex-start;
  font-size: 0.94rem;
}
.barrier {
  border-top: 1px solid var(--line);
  margin: 1.45rem 0 0;
  padding-top: 1.15rem;
}
.action-row {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 1.45rem;
}
.primary,
.secondary,
.textbtn {
  border-radius: 9px;
  min-height: 45px;
  padding: 0.6rem 1.05rem;
  font-weight: 600;
  font-size: 0.96rem;
}
.primary {
  background: var(--accent);
  color: var(--on-accent);
}
.primary:hover {
  filter: brightness(0.92);
}
.secondary {
  border: 1px solid var(--line);
  background: var(--paper);
}
.textbtn {
  padding: 0.5rem 0.35rem;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.reader-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.94rem;
}
.ico {
  width: 19px;
  height: 19px;
  display: inline-block;
  vertical-align: middle;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.error {
  font-weight: 600;
  color: var(--error);
  margin-top: 1rem;
}
.options {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.8rem;
}
.options label,
.checkline {
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
}
.options input,
.checkline input {
  min-height: auto;
  accent-color: var(--accent);
  width: 1rem;
  height: 1rem;
  flex: none;
}
.checkline {
  margin-top: 0.7rem;
}
.privacy-select {
  display: block;
  width: min(100%, 420px);
  margin: 0.5rem 0;
}
.info {
  background: var(--tint);
  padding: 0.85rem 1rem;
  border-radius: 9px;
  margin-top: 1rem;
  color: var(--ink);
}
.info p + p {
  margin-top: 0.45rem;
}
.agenda {
  background: var(--deep);
  color: var(--sideink);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.3rem;
  border: 1px solid var(--siderule);
}
.agenda .crumb,
.agenda .hint,
.agenda .muted {
  color: var(--sidemuted);
}
.agenda .crumb em {
  background: var(--sidemuted);
}
.agenda h2 {
  font-size: 2.18rem;
}
.agenda .side-row {
  border-top: 1px solid var(--siderule);
  padding: 0.95rem 0;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  margin: 1rem 0;
}
.calendar span {
  border: 1px solid transparent;
  text-align: center;
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 6px 1px;
  font-size: 0.79rem;
  color: var(--sidemuted);
}
.calendar b {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sideink);
}
.calendar .on {
  border-color: var(--siderule);
  background: #ffffff16;
}
.calendar .on b {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.side-row small {
  display: block;
  font-size: 0.83rem;
  color: var(--sidemuted);
  margin-bottom: 0.14rem;
}
.side-row strong {
  font-size: 0.98rem;
  font-weight: 600;
}
.initial {
  display: inline-grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 1px solid var(--siderule);
  font-size: 0.8rem;
  font-weight: 600;
}
.side-card {
  margin-top: 1rem;
}
.review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(285px, 1fr);
  gap: 20px;
  align-items: start;
}
.briefing .review-grid {
  grid-template-columns: minmax(300px, 1fr) minmax(0, 1.12fr);
}
.briefing .queue-card {
  grid-column: 1;
  grid-row: 1;
}
.briefing .trend-card {
  grid-column: 2;
  grid-row: 1;
}
.linehead {
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}
.linehead h2 {
  font-size: 2rem;
}
.trend-number {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 1rem 0 0.2rem;
}
.trend-number strong {
  font-size: 3rem;
  letter-spacing: -0.07em;
  line-height: 1.1;
}
.chart {
  display: block;
  width: 100%;
  height: auto;
  margin: 0.7rem 0 0.35rem;
  color: var(--accent);
}
.chart text {
  font:
    12px "DM Sans",
    sans-serif;
  fill: var(--muted);
}
.chart .row {
  stroke: var(--line);
}
details {
  margin: 1rem 0 0;
}
summary {
  font-weight: 600;
  color: var(--accent);
  padding: 0.3rem 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 0.55rem;
  text-align: left;
  font-size: 0.92rem;
}
td,
th {
  padding: 0.4rem;
  border-bottom: 1px solid var(--line);
}
.queue-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.queue-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.queue-item .hint {
  margin: 0.25rem 0 0.55rem;
}
.queue-item .secondary {
  min-height: 38px;
  padding: 0.35rem 0.7rem;
}
.review-actions {
  margin: 1.2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.review-actions label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
}
.lower {
  margin-top: 1.2rem;
}
.sample-note {
  padding-top: 0.9rem;
}
.settings {
  max-width: 780px;
}
.settings .field {
  margin-top: 1.2rem;
}
.settings label.fieldname {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
textarea,
input[type="text"] {
  border: 1px solid var(--control-border);
  border-radius: 7px;
  padding: 0.65rem 0.75rem;
  background: var(--paper);
  width: 100%;
  max-width: 100%;
}
textarea {
  resize: vertical;
  min-height: 80px;
}
.receipt .info {
  margin-bottom: 1.3rem;
}
.receipt h1 {
  max-width: 18ch;
}
.flag {
  font-weight: 600;
  color: var(--accent);
}
.subsection {
  margin-top: 1.2rem;
}
@media (max-width: 950px) {
  .mast-inner,
  main,
  footer {
    width: calc(100% - 46px);
  }
  .layout {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 15px;
  }
  .briefing .employee-layout {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .agenda {
    padding: 1.15rem;
  }
  .scale {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (max-width: 740px) {
  .mast-inner,
  main,
  footer {
    width: calc(100% - 32px);
  }
  .mast-inner {
    grid-template-columns: 1fr auto;
    gap: 0.2rem 0.5rem;
    padding: 0.65rem 0 0.45rem;
  }
  .wordmark {
    font-size: 2.2rem;
  }
  .workspace {
    font-size: 0.82rem;
    margin-left: 0.25rem;
    padding-left: 0.6rem;
  }
  .theme-label {
    grid-column: 2;
    grid-row: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    font-size: 0.83rem;
  }
  .theme-label select {
    font-size: 0.86rem;
  }
  .mast nav {
    grid-row: 2;
    grid-column: 1/-1;
  }
  .mast nav button {
    padding: 0.35rem 0.8rem;
  }
  .layout,
  .briefing .employee-layout,
  .review-grid,
  .briefing .review-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .layout > *,
  .review-grid > * {
    width: 100%;
  }
  .briefing .queue-card {
    order: -1;
  }
  .agenda .calendar {
    max-width: 280px;
  }
  .card {
    padding: 1.25rem;
  }
  .form-card h1 {
    font-size: clamp(2.55rem, 9vw, 3.2rem);
  }
  .briefing .form-card h1 {
    font-size: clamp(2.05rem, 7.4vw, 2.8rem);
  }
  main {
    padding: 1.5rem 0 2rem;
  }
  .top-controls {
    gap: 0.45rem;
  }
  .review-actions label {
    flex-wrap: wrap;
  }
  .pref {
    grid-template-columns: 1fr;
  }
  .endpoint {
    font-size: 0.82rem;
  }
  .calendar span {
    font-size: 0.85rem;
  }
  .review-grid .linehead {
    gap: 0.25rem;
  }
  footer {
    align-items: flex-start;
  }
  .scale {
    gap: 6px;
  }
  .intro {
    margin-bottom: 1rem;
  }
}
@media (min-width: 951px) and (max-width: 1100px) {
  .briefing .scale {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

footer .reset {
  margin-left: auto;
  flex: none;
  font-size: 0.86rem;
}
.fieldname {
  display: block;
}
@media (max-width: 480px) {
  footer {
    flex-wrap: wrap;
  }
  footer .reset {
    margin-left: 0;
  }
}

.scale input:checked + span::after,
.pref input:checked + span::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 5px;
  height: 9px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.follow-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}
.pilot-strip {
  width: min(1160px, calc(100% - 32px));
  margin: 0.65rem auto 0;
  color: var(--muted);
  font-size: 0.9rem;
}
@media (forced-colors: active) {
  .scale input:checked + span,
  .pref input:checked + span {
    border: 3px solid Highlight;
  }
  .scale input:focus-visible + span,
  .pref input:focus-visible + span {
    outline: 3px solid Highlight;
  }
  .chart {
    color: CanvasText;
  }
  .chart text {
    fill: CanvasText;
  }
  select {
    appearance: auto;
  }
}

.site-foot {
  display: block;
  font-size: 0.875rem;
  line-height: 1.5;
}
.footer-context, .footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.3rem;
}
.footer-context {
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.footer-context .reset { margin: 0; }
.footer-links a, .information a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
.information { max-width: 46rem; }
.information h2 { margin: 1.6rem 0 0.5rem; }
.information p { max-width: 65ch; }
.information p + p { margin-top: 0.65rem; }
@media (max-width: 480px) {
  .footer-links { gap: 0.4rem 1rem; }
}
