/* Handovers portal: one token set for light and dark, used by every page.
   Values are the approved mockups' .t-light / .t-dark rules (design/2026-10-21).
   The theme follows the device until the toggle is used; then the `theme`
   cookie sets data-theme on <html> on the server, so there is no flash. */
:root {
  --bg: #ffffff;
  --surface: #f5f6f8;
  --ink: #15171c;
  --text: #3d4250;
  --muted: #5a6070;
  --rule: #e3e5ea;
  --rule-soft: #eceef1;
  --line: #c9cdd5;
  --accent: #26365f;
  --on-accent: #ffffff;
  --accent-soft: #e9edf6;
  --link: #26365f;
  --pub-bg: #e6f3ec;
  --pub-fg: #1e5e3e;
  --draft-bg: #fbf0dc;
  --draft-fg: #7a4a00;
  --warn-bg: #fdf3f1;
  --warn-edge: #b03a26;
  --console-bar: #15171c;
  --console-bar-ink: #ffffff;
  --console-bar-muted: #a3a8b3;
  --console-bar-text: #c9cdd5;
  --focus: #26365f;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #14161b;
    --surface: #1c1f26;
    --ink: #f1f2f4;
    --text: #c9cdd5;
    --muted: #a3a8b3;
    --rule: #2c3038;
    --rule-soft: #252930;
    --line: #3a3f49;
    --accent: #9db2ee;
    --on-accent: #14161b;
    --accent-soft: #253049;
    --link: #a9bcf2;
    --pub-bg: #173a29;
    --pub-fg: #9ddcb8;
    --draft-bg: #3d2d10;
    --draft-fg: #f3c97c;
    --warn-bg: #2c1f1c;
    --warn-edge: #e0866f;
    --console-bar: #0d0f13;
    --console-bar-ink: #f1f2f4;
    --console-bar-muted: #a3a8b3;
    --console-bar-text: #c9cdd5;
    --focus: #a9bcf2;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #14161b;
  --surface: #1c1f26;
  --ink: #f1f2f4;
  --text: #c9cdd5;
  --muted: #a3a8b3;
  --rule: #2c3038;
  --rule-soft: #252930;
  --line: #3a3f49;
  --accent: #9db2ee;
  --on-accent: #14161b;
  --accent-soft: #253049;
  --link: #a9bcf2;
  --pub-bg: #173a29;
  --pub-fg: #9ddcb8;
  --draft-bg: #3d2d10;
  --draft-fg: #f3c97c;
  --warn-bg: #2c1f1c;
  --warn-edge: #e0866f;
  --console-bar: #0d0f13;
  --console-bar-ink: #f1f2f4;
  --console-bar-muted: #a3a8b3;
  --console-bar-text: #c9cdd5;
  --focus: #a9bcf2;
  color-scheme: dark;
}
.ico {
  display: inline-flex;
}
/* Which theme icon shows: the sun in dark, the moon in light. */
:root .when-dark {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .when-dark {
    display: inline-flex;
  }
  :root:not([data-theme='light']) .when-light {
    display: none;
  }
}
:root[data-theme='dark'] .when-dark {
  display: inline-flex;
}
:root[data-theme='dark'] .when-light {
  display: none;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a {
  color: var(--link);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--ink);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 10px;
  color: var(--on-accent);
}

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--muted);
  color: var(--ink);
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  padding: 0 20px;
}
.btn-primary:hover {
  color: var(--on-accent);
  filter: brightness(1.08);
}
.btn-small {
  font-size: 14px;
}
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-link {
  border: 0;
  background: none;
  padding: 0 4px;
  color: var(--link);
  font-weight: 500;
  font-size: 14px;
  min-height: 44px;
  cursor: pointer;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}
.icon-btn:hover {
  border-color: var(--line);
  color: var(--ink);
}
.icon-btn.is-on {
  color: var(--link);
}
/* The account button is round: its hover and focus follow the circle. */
.account .icon-btn {
  border-radius: 50%;
}
.account .icon-btn:hover {
  border-color: transparent;
}
.account .icon-btn:hover .avatar {
  border-color: var(--muted);
  color: var(--ink);
}
.account .icon-btn:focus-visible {
  border-radius: 50%;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--link);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.pill-admin {
  background: var(--accent-soft);
  color: var(--link);
}
.pill-plain {
  background: var(--surface);
  color: var(--text);
}
.pill-published {
  background: var(--pub-bg);
  color: var(--pub-fg);
}
.pill-draft {
  background: var(--draft-bg);
  color: var(--draft-fg);
}
.badge-latest {
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--link);
  font-size: 12px;
  font-weight: 600;
  vertical-align: 2px;
  white-space: nowrap;
}

/* ---- Client header ---------------------------------------------------- */
.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}
.bar {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.bar-start {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  min-width: 0;
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  min-height: 44px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.wordmark strong {
  font-weight: 700;
  font-size: 16px;
}
.wordmark span {
  font-size: 14px;
  color: var(--muted);
}
.wordmark:hover {
  color: var(--ink);
}
.tabs {
  display: flex;
  gap: 24px;
}
.tab {
  display: inline-flex;
  align-items: center;
  min-height: 64px;
  padding: 0 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.tab:hover {
  color: var(--ink);
}
.tab[aria-current='page'] {
  color: var(--ink);
  border-bottom-color: var(--link);
}
.bar-end {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}
.who {
  overflow-wrap: anywhere;
}
.signout {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* The client header and footer run 24px wider each side than the page
   column, as in the mockups. */
.site-header > .bar,
.site-footer > .bar {
  max-width: 1088px;
}
.account {
  position: relative;
}
.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 5;
  min-width: 240px;
  padding: 8px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
}
.account-menu p {
  margin: 0;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.account-menu a,
.account-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}
.account-menu a:hover,
.account-menu button:hover {
  background: var(--surface);
}
.narrow-only {
  display: none;
}
.switcher select {
  max-width: 160px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  font-size: 14px;
}
.owner-note {
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 14px;
}
.owner-note .bar {
  min-height: 48px;
}
.owner-note-message:not(:empty) {
  display: block;
  color: var(--warn-edge);
}
@media (max-width: 640px) {
  .owner-note .bar {
    flex-wrap: wrap;
    row-gap: 0;
    padding-top: 8px;
    padding-bottom: 4px;
  }
}
.owner-note-actions {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.owner-note .btn-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.owner-note a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ---- Library ---------------------------------------------------------- */
.page {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}
.page h1 {
  margin: 0 0 40px;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-label {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pinned {
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.card-text {
  flex: 999 1 420px;
  min-width: 0;
}
.card-date {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--muted);
}
.card h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.card-summary {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  max-width: 560px;
}
.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  justify-content: flex-end;
  align-items: center;
}
.list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.list-label {
  margin-bottom: 8px;
}
.lib-row {
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 16px 8px;
  position: relative;
}
.lib-row:hover {
  background: var(--surface);
}
.lib-row-main {
  line-height: 1.25;
}
.lib-row-date {
  font-size: 14px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.lib-row-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  /* A 44px tall target without changing the row's layout. */
  display: inline-block;
  padding: 12px 0;
  margin: -12px 0;
}
.lib-row-title:hover {
  text-decoration: underline;
}
.lib-row-summary {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.lib-row-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.lib-row-chevron {
  display: none;
  color: var(--muted);
}
.empty-note {
  color: var(--text);
}
.site-footer {
  border-top: 1px solid var(--rule);
}
.site-footer .bar {
  min-height: 0;
  padding: 20px 24px;
  font-size: 13px;
  color: var(--muted);
  justify-content: space-between;
  gap: 12px;
}
.site-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-footer span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-footer__links {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.site-footer .site-footer__linkedin {
  justify-content: center;
  min-width: 44px;
  color: var(--muted);
}
.site-footer .site-footer__linkedin:hover {
  color: var(--ink);
}
@media (max-width: 640px) {
  .site-footer .bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 20px 24px 8px;
  }
  .site-footer .bar > span {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .bar {
    padding: 0 8px 0 16px;
    min-height: 56px;
    flex-wrap: nowrap;
  }
  .wordmark strong {
    font-size: 15px;
  }
  .wordmark span {
    font-size: 13px;
  }
  .wide-only {
    display: none;
  }
  .narrow-only {
    display: inline-flex;
  }
  .bar-end {
    gap: 0;
  }
  .page {
    padding: 28px 16px 32px;
  }
  .page h1 {
    font-size: 30px;
    margin-bottom: 24px;
  }
  .section-label {
    font-size: 14px;
    margin-bottom: 10px;
  }
  .pinned {
    margin-bottom: 36px;
  }
  .card {
    padding: 20px;
    gap: 16px;
  }
  .card h3 {
    font-size: 20px;
    margin-bottom: 6px;
  }
  .card-summary {
    font-size: 15px;
  }
  .card-actions {
    flex-wrap: nowrap;
    width: 100%;
    gap: 10px;
  }
  .card-actions .btn {
    flex: 1 1 0;
  }
  .card-actions .icon-btn {
    display: none;
  }
  .list-label {
    margin-bottom: 6px;
  }
  /* On a phone each row is one link: date above the title, then a chevron. */
  .lib-row {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    row-gap: 2px;
    padding: 10px 0;
    min-height: 84px;
    align-content: center;
  }
  .section-label .ico {
    display: none;
  }
  .narrow-only .avatar {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  .lib-row:hover {
    background: none;
  }
  .lib-row-date {
    grid-column: 1;
    grid-row: 1;
    font-size: 13px;
  }
  .lib-row-main {
    grid-column: 1;
    grid-row: 2;
  }
  .lib-row-title {
    font-size: 15px;
    line-height: 1.35;
  }
  .lib-row-title::after {
    content: '';
    position: absolute;
    inset: 0;
  }
  .lib-row-summary,
  .lib-row-actions,
  .lib-row .badge-latest {
    display: none;
  }
  .lib-row-chevron {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .latest-inline {
    display: inline !important;
  }
}
.latest-inline {
  display: none;
  color: var(--link);
  font-weight: 600;
}

/* ---- Sign in ---------------------------------------------------------- */
.signin {
  max-width: 440px;
  margin: 0 auto;
  padding: 72px 24px 72px;
  flex: 1 0 auto;
  width: 100%;
}
.signin h1 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.signin p {
  color: var(--text);
  margin: 0 0 24px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}
.field input,
.input {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.message {
  display: block;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text);
}
.message:empty,
.flash:empty {
  display: none;
}
.message.error {
  color: var(--warn-edge);
}

/* ---- Team ------------------------------------------------------------- */
.page-wide {
  max-width: 1088px;
}
.lede {
  margin: -32px 0 40px;
  font-size: 16px;
  color: var(--text);
}
.panel-box {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 40px;
}
.panel-box h2,
.block-title {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 600;
}
.add-form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}
.add-form .field {
  flex: 999 1 320px;
}
.check {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  min-height: 44px;
}
.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
/* position: relative keeps the visually hidden header labels inside the
   scroll box, so a wide table never widens the page. */
.table-wrap,
.scroll-x {
  position: relative;
  overflow-x: auto;
}
.table-wrap {
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.data th {
  padding: 12px 20px;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  text-align: left;
  background: var(--surface);
}
.data td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: middle;
}
.data tr:last-child td {
  border-bottom: 0;
}
.data .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.dim {
  color: var(--muted);
}
.soft {
  color: var(--text);
}

/* ---- Console ---------------------------------------------------------- */
.console {
  background: var(--surface);
  min-height: 100vh;
}
.console-header {
  background: var(--console-bar);
  color: var(--console-bar-ink);
}
.console-header .bar {
  max-width: 1228px;
}
.console-header .btn-link {
  color: var(--console-bar-ink);
}
.console-header .brand {
  font-weight: 700;
  font-size: 15px;
}
.console-header .brand span {
  font-weight: 500;
  color: var(--console-bar-muted);
}
.console-header .tab {
  color: var(--console-bar-text);
}
.console-header .tab:hover {
  color: var(--console-bar-ink);
}
.console-header .tab[aria-current='page'] {
  color: var(--console-bar-ink);
  border-bottom-color: var(--console-bar-ink);
}
.console-header .bar-end {
  color: var(--console-bar-text);
}
.console-header a,
.console-header .icon-btn {
  color: var(--console-bar-ink);
}
.console-header :focus-visible {
  outline-color: var(--console-bar-ink);
}
.console-main {
  max-width: 1228px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}
.console-main h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.console-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.console-tools {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.console-tools .check {
  flex: 0 0 auto;
}
.box {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.box-pad {
  padding: 20px 24px;
}
.attention {
  margin-bottom: 24px;
}
.attention h2 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
}
.attention ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: 15px;
}
.attention li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.attention a {
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.console-table th {
  background: transparent;
  padding: 14px 16px;
}
.console-table td {
  padding: 6px 16px;
  height: 56px;
}
.console-table th:first-child,
.console-table td:first-child {
  padding-left: 24px;
}
.console-table th:last-child,
.console-table td:last-child {
  padding-right: 24px;
}
.console-table a.strong {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}
.console-table a.strong:hover {
  text-decoration: underline;
}
.console-table tbody tr:hover {
  background: var(--surface);
}
.footnote {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.crumbs {
  font-size: 14px;
  margin-bottom: 8px;
}
.crumbs a {
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.box-head {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.box-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}
.docs-table th {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  padding: 12px 16px;
}
.docs-table td {
  padding: 14px 16px;
  font-size: 15px;
}
.docs-table th:first-child,
.docs-table td:first-child {
  padding-left: 24px;
}
.docs-table th:last-child,
.docs-table td:last-child {
  padding-right: 24px;
  text-align: right;
}
.docs-table .sub {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.checks {
  font-size: 14px;
  color: var(--text);
}
.checks ul {
  margin: 0;
  padding-left: 18px;
}
.two-col {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin-top: 24px;
}
.two-col > .people {
  flex: 3 1 520px;
  min-width: 0;
}
.two-col > .feed {
  flex: 2 1 340px;
  min-width: 0;
}
.people-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.people-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.people-list .name {
  display: block;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.people-list .meta {
  font-size: 13px;
  color: var(--muted);
}
.people-list .controls {
  display: flex;
  gap: 8px;
}
.select {
  max-width: 100%;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  font-size: 14px;
  font-weight: 500;
}
.feed ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
}
.feed li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
}
.feed li span:first-child {
  color: var(--muted);
}
.feed li span:last-child {
  color: var(--text);
  overflow-wrap: anywhere;
}
.default-pin {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
dialog.confirm {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 24px;
  max-width: 440px;
  width: calc(100% - 32px);
  background: var(--bg);
  color: var(--ink);
}
dialog.confirm::backdrop {
  background: rgb(0 0 0 / 0.4);
}
dialog.confirm h2 {
  margin: 0 0 8px;
  font-size: 18px;
}
dialog.confirm p {
  margin: 0 0 20px;
  color: var(--text);
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.flash {
  display: block;
  margin: 0 0 16px;
  font-size: 14px;
  white-space: pre-line;
}
.flash.error {
  color: var(--warn-edge);
}

/* ---- A handover ------------------------------------------------------- */
.doc-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.doc-header .bar {
  max-width: 1132px;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  min-width: 0;
}
.crumb a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 500;
  text-decoration: none;
}
.crumb .sep {
  color: var(--line);
}
.crumb .crumb-title {
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.doc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.doc-actions .btn-primary {
  font-size: 14px;
  padding: 0 16px;
}
.doc-layout {
  max-width: 1132px;
  margin: 0 auto;
  padding: 48px 24px 96px;
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  column-gap: 56px;
}
.toc {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  position: sticky;
  top: 112px;
  font-size: 14px;
  padding-top: 6px;
  max-height: calc(100vh - 136px);
  overflow-y: auto;
}
.toc-label {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0 0 0 2px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--rule);
}
.toc li {
  margin-left: -1px;
  border-left: 2px solid transparent;
}
.toc a {
  display: block;
  padding: 4px 0 4px 14px;
  color: var(--text);
  text-decoration: none;
  line-height: 1.35;
}
.toc a:hover {
  color: var(--link);
}
.toc li:has(a[aria-current='true']) {
  border-left-color: var(--link);
}
.toc a[aria-current='true'] {
  font-weight: 600;
  color: var(--ink);
}
.toc-mobile {
  display: none;
}
.doc-title {
  grid-column: -2;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 32px;
  margin-bottom: 32px;
}
.doc-meta {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
}
.doc-title h1 {
  margin: 0 0 12px;
  font-size: 36px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.doc-intro {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
}
.doc-body {
  grid-column: -2;
  min-width: 0;
  font-size: 16px;
  line-height: 1.6;
}
@media (max-width: 960px) {
  .doc-layout {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 32px;
  }
  .toc {
    display: none;
  }
  .crumb .crumb-title,
  .crumb .sep {
    display: none;
  }
  .toc-mobile {
    display: block;
    grid-column: 1;
    margin: 0 0 28px;
    border: 1px solid var(--rule);
    border-radius: 10px;
  }
  .toc-mobile summary {
    min-height: 48px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
  }
  .toc-mobile ol {
    margin: 0;
    padding: 0 16px 12px 34px;
    font-size: 15px;
  }
  .toc-mobile li a {
    display: block;
    padding: 8px 0;
    min-height: 44px;
  }
  .doc-title h1 {
    font-size: 30px;
  }
}
@media (max-width: 640px) {
  .doc-layout {
    padding: 24px 16px 64px;
  }
  .doc-actions .btn-primary .label-long {
    display: none;
  }
}

/* The handover's own content: the house format, now on the shared tokens. */
.doc-body section {
  scroll-margin-top: 88px;
}
.doc-body section + section {
  margin-top: 40px;
}
.doc-body h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.doc-body h3 {
  margin: 28px 0 8px;
  font-size: 17px;
  font-weight: 600;
}
.doc-body h4 {
  margin: 20px 0 6px;
  font-size: 16px;
  font-weight: 600;
}
.doc-body p {
  margin: 0 0 16px;
}
.doc-body ul,
.doc-body ol {
  margin: 0 0 20px;
  padding-left: 22px;
}
.doc-body li {
  margin-bottom: 8px;
}
.doc-body a {
  color: var(--link);
  overflow-wrap: anywhere;
}
.doc-body code {
  font-size: 0.9em;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  background: var(--surface);
  border-radius: 4px;
  padding: 1px 4px;
}
.doc-body figure {
  margin: 20px 0;
}
.doc-body figure img,
.doc-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.doc-body figure img {
  width: 100%;
}
.doc-body figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}
.doc-body figure.narrow {
  max-width: 240px;
}
.doc-body figure.half {
  max-width: 480px;
}
.doc-body .row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.doc-body .row > * {
  min-width: 0;
  flex: 1 1 300px;
}
.doc-body .row figure {
  margin: 20px 0 0;
}
.doc-body .table-scroll {
  overflow-x: auto;
  margin: 0 0 20px;
  border: 1px solid var(--rule);
  border-radius: 10px;
}
.doc-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.doc-body > section > div > table,
.doc-body section > table {
  margin-bottom: 20px;
}
.doc-body th {
  text-align: left;
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}
.doc-body td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
  color: var(--text);
}
.doc-body tr:last-child td {
  border-bottom: 0;
}
.doc-body .panel {
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.doc-body .warn {
  background: var(--warn-bg);
  border-left: 4px solid var(--warn-edge);
  padding: 14px 16px;
  margin: 12px 0 16px;
}
.doc-body .warn strong {
  color: var(--warn-edge);
}
.doc-body .panel p:last-child,
.doc-body .warn p:last-child {
  margin-bottom: 0;
}
.doc-body blockquote {
  margin: 18px 0 12px;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--line);
  color: var(--muted);
}
.doc-body blockquote p {
  margin: 0 0 6px;
}
.doc-body .sub {
  color: var(--muted);
}
@media (max-width: 640px) {
  .console-header .bar {
    flex-wrap: wrap;
    row-gap: 0;
    padding: 0 8px 0 16px;
  }
  .console-header .who {
    display: none;
  }
  .console-header .tabs {
    width: 100%;
  }
  .console-main {
    padding: 32px 16px 64px;
  }
  .console-main h1 {
    font-size: 28px;
  }
}
