/*
 * Nevon Hub dashboard styles.
 *
 * Tokens follow the Nevon design system (design/..._ds/colors_and_type.css) with
 * the two overrides the design mapping records (docs/design-mapping.md, 5.1):
 * page tone #FAFBFC instead of paper, card border #E6E8ED. One functional status
 * colour, --status-alert (#C8322B), exists for UI states only (decision of
 * 2026-10-08, "red as internal alert colour"); it never appears in documents or
 * mail. Radii and type sizes are tokens only; no raw values.
 */

@font-face {
  font-family: "Aeonik";
  src: url("/fonts/aeonik-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Aeonik";
  src: url("/fonts/aeonik-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Aeonik";
  src: url("/fonts/aeonik-regularitalic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Aeonik";
  src: url("/fonts/aeonik-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --nevon-navy: #051a4d;
  --nevon-light-blue: #82c2f7;
  --nevon-ink: #0b1226;
  --nevon-grey: #808285;
  --nevon-paper: #efeeea;
  --nevon-white: #ffffff;
  --page: #fafbfc;
  --border: #e6e8ed;
  --navy-12: rgba(5, 26, 77, 0.12);
  --navy-60: rgba(5, 26, 77, 0.6);
  --status-alert: #c8322b;

  --font-sans: "Aeonik", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-bold: 700;

  --h3-size: 24px;
  --h4-size: 18px;
  --body-size: 16px;
  --body-sm-size: 14px;
  --ui-sm-size: 13px;
  --eyebrow-size: 12px;
  --eyebrow-tracking: 0.12em;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;

  --radius-sm: 2px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  --shadow-2: 0 8px 24px rgba(5, 26, 77, 0.1);
  --shadow-3: 0 24px 60px -12px rgba(5, 26, 77, 0.18);

  --tap: 40px;
  --header-h: 56px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--page);
  color: var(--nevon-ink);
  font-family: var(--font-sans);
  font-size: var(--body-size);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--nevon-navy);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

button,
input {
  font-family: inherit;
  font-size: inherit;
}
input:focus,
button:focus-visible {
  outline: 2px solid var(--nevon-light-blue);
  outline-offset: 2px;
}

p {
  margin: 0;
}

/* ---------- Banners ---------- */

.reloadbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-3);
  background: var(--nevon-navy);
  color: var(--nevon-white);
  font-size: var(--eyebrow-size);
  padding: 6px var(--space-4);
}
.banner-test {
  background: var(--nevon-light-blue);
  color: var(--nevon-navy);
  font-size: var(--eyebrow-size);
  font-weight: var(--fw-bold);
  padding: 6px var(--space-4);
  text-align: center;
}

/* ---------- Header ---------- */

/* Preview badge next to the app name: light blue on navy, like the test banner. */
.header__badge--away { background: var(--light-blue); color: var(--navy); border: 0; cursor: pointer; }
/* Preview as the design's outlined pill (v8, 0.120.0): light blue line and text on the navy bar. */
.header__badge {
  font-size: var(--eyebrow-size);
  font-weight: var(--fw-bold);
  color: var(--nevon-light-blue);
  background: transparent;
  border: 1px solid var(--nevon-light-blue);
  border-radius: var(--radius-pill);
  padding: 1px 10px;
  margin-left: var(--space-2);
  white-space: nowrap;
}

.header {
  background: var(--nevon-navy);
  color: var(--nevon-white);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-4);
}
@media (min-width: 768px) {
  .header {
    gap: var(--space-4);
    padding: 0 var(--space-5);
  }
}
.header__logo {
  display: flex;
  align-items: center;
  min-height: 44px;
  flex-shrink: 0;
}
.header__logo img {
  height: 18px;
  width: auto;
  display: block;
}
/* The "| Hub" after the wordmark (design v8, 0.120.0) went in 0.199.0 (ADR 0177): the page link "Hub" next to it says the same. */
.header__app {
  display: inline-flex;
  align-items: center;
  font-size: var(--ui-sm-size);
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 10px;
  white-space: nowrap;
}
.header__app--active {
  color: var(--nevon-white);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
}
.header__spacer {
  flex: 1 1 0;
  min-width: 0;
}
.header__search {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: var(--radius-md);
  color: var(--nevon-white);
  padding: 0 var(--space-3);
  min-height: var(--tap);
  cursor: pointer;
  font-size: var(--ui-sm-size);
  white-space: nowrap;
}
.header__search:hover {
  background: rgba(255, 255, 255, 0.16);
}
.header__search span {
  display: none;
}
@media (min-width: 768px) {
  .header__search span {
    display: inline;
  }
}
.header__icon {
  background: none;
  border: none;
  color: var(--nevon-white);
  min-width: var(--tap);
  min-height: var(--tap);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header__icon:hover {
  background: rgba(255, 255, 255, 0.12);
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--nevon-light-blue);
  color: var(--nevon-navy);
  font-weight: var(--fw-bold);
  font-size: var(--ui-sm-size);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Menus and popovers ---------- */

.menu-host {
  position: relative;
}
.popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 300px;
  max-width: calc(100vw - 2 * var(--space-4));
  background: var(--nevon-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-3);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--nevon-ink);
  z-index: 5;
}
.popover__title {
  font-size: var(--ui-sm-size);
  font-weight: var(--fw-bold);
  color: var(--nevon-navy);
}
.popover__text {
  font-size: var(--eyebrow-size);
  line-height: 1.5;
}
.popover__item {
  text-align: left;
  background: none;
  border: none;
  border-radius: var(--radius-md);
  padding: 0 10px;
  min-height: 44px;
  font-size: var(--ui-sm-size);
  color: var(--nevon-navy);
  cursor: pointer;
}
.popover__item:hover {
  background: var(--page);
}
.scrim {
  position: fixed;
  inset: 0;
  z-index: 3;
}

/* ---------- Page ---------- */

.page {
  max-width: 1680px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-4) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
@media (min-width: 768px) {
  .page {
    padding: var(--space-5) var(--space-5) var(--space-6);
  }
}
.page__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-4);
}
.page__title {
  font-size: var(--h3-size);
  font-weight: var(--fw-bold);
  color: var(--nevon-navy);
  line-height: 1.2;
  letter-spacing: -0.006em;
}
.page__sub {
  font-size: var(--body-sm-size);
  color: var(--nevon-grey);
}

/* Connection pill (header and page top) */
.conn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--nevon-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0 14px;
  min-height: var(--tap);
  font-size: var(--eyebrow-size);
  color: var(--nevon-ink);
  cursor: pointer;
  white-space: nowrap;
}
.conn strong {
  color: var(--nevon-navy);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--nevon-grey);
  flex-shrink: 0;
}
.dot--ok {
  background: var(--nevon-light-blue);
  box-shadow: 0 0 0 3px rgba(130, 194, 247, 0.35);
}
.dot--navy {
  background: var(--nevon-navy);
}
.dot--alert {
  background: var(--status-alert);
}

/* ---------- Grid and tiles ---------- */

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.tile {
  background: var(--nevon-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-4) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}
.tile--2 {
  grid-column: span 1;
}
@media (min-width: 768px) {
  .tile--2 {
    grid-column: span 2;
  }
}

/* Round-4 home (feature home.layout): narrow left column with Today and
   Drafts, the inbox wide in the centre, Notes right. The inbox and the side
   lists scroll inside their tiles, so the page keeps one screen height on
   desktop; below 768 px the tiles stack with the inbox first. */
.grid--v4 {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
.grid--v4 .grid__col {
  display: contents;
}
.grid--v4 .grid__col--right {
  display: contents;
}
.grid--v4 #tile-inbox {
  grid-column: auto;
  order: -1;
}
/* Per-user layout (ADR 0039): the three columns are rendered only when a
   tile sits in them; data-cols names the present ones (L, C, R) and picks
   the column template. Phones stack the columns, centre first. */
.grid--v4 .grid__col--center {
  order: -1;
}
@media (min-width: 768px) {
  .grid--v4 .grid__col {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    min-width: 0;
    order: 0;
  }
  .grid--v4[data-cols="LCR"] {
    grid-template-columns: 280px minmax(0, 1fr);
  }
  .grid--v4[data-cols="LCR"] .grid__col--right {
    grid-column: 1 / -1;
  }
  .grid--v4[data-cols="LC"] {
    grid-template-columns: 280px minmax(0, 1fr);
  }
  .grid--v4[data-cols="CR"] {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .grid--v4[data-cols="LR"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .grid--v4[data-cols="LCR"] {
    grid-template-columns: 300px minmax(0, 1fr) 360px;
  }
  .grid--v4[data-cols="LCR"] .grid__col--right {
    grid-column: auto;
  }
  .grid--v4[data-cols="LC"] {
    grid-template-columns: 300px minmax(0, 1fr);
  }
  .grid--v4[data-cols="CR"] {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}
@media (min-width: 1400px) {
  .grid--v4[data-cols="LCR"] {
    grid-template-columns: 320px minmax(0, 1fr) 380px;
  }
}
/* Tile heights come from the layout as --tile-h on the tile (S, M, L, full
   screen, auto); the fallbacks are the round-4 values. */
.grid--v4 #tile-inbox .tile__scroll {
  max-height: var(--tile-h, calc(100vh - var(--header-h) - 316px));
  min-height: var(--tile-min, 240px);
}
.tile__scroll--side {
  max-height: var(--tile-h, 320px);
}
@media (min-width: 768px) {
  .tile__scroll--side {
    max-height: var(--tile-h, calc(50vh - 180px));
  }
  .grid--v4 #tile-notes .tile__scroll--side {
    max-height: var(--tile-h, calc(100vh - var(--header-h) - 316px));
    min-height: var(--tile-min, 240px);
  }
}
/* Layout panel */
.layout__intro {
  margin-bottom: var(--space-3);
}
.layout__tile {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.layout__tilehead {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.layout__name {
  flex: 1;
  font-weight: var(--fw-bold);
  color: var(--nevon-navy);
}
.layout__row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  font-size: var(--ui-sm-size);
}
.layout__label {
  min-width: 72px;
  color: var(--nevon-grey);
}
.layout__row select {
  font: inherit;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--nevon-white);
}
.layout__range {
  flex: 1;
  min-width: 140px;
  accent-color: var(--nevon-navy);
}
.layout__value {
  min-width: 120px;
  color: var(--nevon-navy);
}
.layout__actions {
  margin-top: var(--space-4);
}

/* To-dos board (ADR 0038): full width, one column per Zoho status. */
.board-row:empty {
  display: none;
}
.board {
  display: grid;
  grid-auto-flow: column;
  /* Five columns fit an 8-wide tile at 1280 px and up, as in design v8 (0.120.0); narrower tiles scroll. */
  grid-auto-columns: minmax(156px, 1fr);
  gap: var(--space-3);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  scrollbar-width: thin;
}
.board__col {
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}
.board__head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--ui-sm-size);
  font-weight: var(--fw-bold);
  color: var(--nevon-navy);
}
.board__count {
  font-size: var(--eyebrow-size);
  background: var(--nevon-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0 7px;
  color: var(--nevon-grey);
}
.board__cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-height: var(--board-h, 35vh);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.card {
  background: var(--nevon-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(5, 26, 77, 0.06);
}
.card:hover {
  border-color: var(--nevon-light-blue);
}
.card--comfortable {
  padding: 12px 14px;
}
.card--comfortable .card__meta {
  margin-top: 8px;
}
.card--dragging {
  opacity: 0.5;
}
.card__bang {
  color: var(--status-alert);
  font-weight: var(--fw-bold);
  margin-right: 4px;
}
.card__due,
.card__sub {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.card__due svg,
.card__sub svg {
  width: 13px;
  height: 13px;
}
.card__due--over {
  color: var(--status-alert);
  font-weight: var(--fw-bold);
}
.card__dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  margin-right: 4px;
}
.board--compact .card__title {
  font-size: var(--ui-sm-size);
}
.board__col--over {
  background: rgba(130, 194, 247, 0.18);
  border-color: var(--nevon-light-blue);
}
.board__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board__plus {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  width: 22px;
  height: 22px;
  line-height: 1;
  color: var(--nevon-navy);
  cursor: pointer;
  font-size: 15px;
}
.board__plus:hover {
  border-color: var(--nevon-navy);
}
.board__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}
.board__projects {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
}
.board__projects .chip {
  flex: 0 0 auto;
}
.todos__date {
  font: inherit;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--nevon-white);
  color: var(--nevon-navy);
}
.board__settings .popover {
  width: 300px;
}
.header__icon--navy {
  color: var(--nevon-navy);
}
.board__orderrow {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 10px;
  font-size: var(--ui-sm-size);
}
.board__orderrow .popover__item__label {
  flex: 1;
}
.board__arrow {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 26px;
  height: 24px;
  cursor: pointer;
  color: var(--nevon-navy);
}
.board__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}
.card--done .card__title {
  text-decoration: line-through;
  color: var(--nevon-grey);
}
.card__title {
  font-size: var(--body-sm-size);
  color: var(--nevon-ink);
  line-height: 1.35;
}
.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
  margin-top: 6px;
  font-size: var(--eyebrow-size);
  color: var(--nevon-grey);
}
/* Two classes: .card__tag further down would otherwise paint it white again. */
.card__tag.card__mandate {
  background: var(--nevon-navy);
  border-color: var(--nevon-navy);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.card__link {
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  gap: 3px;
}
.card__link svg {
  width: 12px;
  height: 12px;
}
.links__row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: 4px;
}
.row--static {
  cursor: default;
}
.card__tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0 8px;
  color: var(--nevon-navy);
  background: var(--nevon-white);
}
.board__add {
  display: flex;
  gap: 6px;
}
.board__add .todos__input {
  min-height: 32px;
  padding: 4px 10px;
}

/* To-dos tile (ADR 0038). */
.todos__row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.todos__row--done .todos__title {
  text-decoration: line-through;
  color: var(--nevon-grey);
}
.todos__check {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--nevon-navy);
  flex-shrink: 0;
  cursor: pointer;
}
.todos__title {
  font-size: var(--body-sm-size);
  color: var(--nevon-ink);
}
.todos__due--over {
  color: var(--status-alert);
  font-weight: var(--fw-bold);
}
.todos__add {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}
.todos__input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px var(--space-3);
  font: inherit;
  font-size: var(--body-sm-size);
  min-height: 36px;
}
.todos__input:focus {
  outline: none;
  border-color: var(--nevon-navy);
}

/* Collapsible tiles: the title is a button with a chevron; folded tiles keep
   the header and its meta, hide everything else. */
.tile__title--toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: var(--body-size);
  font-weight: var(--fw-bold);
  color: var(--nevon-navy);
  text-align: left;
}
.tile__title--toggle span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tile__title--toggle svg {
  transition: transform 0.15s ease;
  color: var(--nevon-grey);
  flex-shrink: 0;
}
.tile--collapsed .tile__title--toggle svg {
  transform: rotate(-90deg);
}
.tile--collapsed > :not(.tile__head) {
  display: none;
}
.tile--collapsed {
  padding-bottom: var(--space-4);
}

/* Tabs in the inbox card (All, Internal, later one per mandate) with the folder menu at the right. */
.tabs {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-2);
  border-bottom: 1px solid var(--border);
}
.tabs__list {
  display: flex;
  gap: var(--space-4);
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 1px;
}
.tabs__list::-webkit-scrollbar {
  display: none;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 6px 0 8px;
  font: inherit;
  font-size: var(--ui-sm-size);
  color: var(--nevon-ink);
  cursor: pointer;
  white-space: nowrap;
}
.tab--active {
  color: var(--nevon-navy);
  font-weight: var(--fw-bold);
  border-bottom-color: var(--nevon-navy);
}
.tab__count {
  font-size: var(--eyebrow-size);
  background: var(--nevon-paper);
  color: var(--nevon-navy);
  border-radius: var(--radius-pill);
  padding: 0 6px;
  min-width: 18px;
  text-align: center;
}
.tabs .menu-host {
  padding-bottom: 4px;
}
.chip--menu {
  gap: 4px;
}
.chip--menu svg {
  width: 14px;
  height: 14px;
  color: var(--nevon-grey);
}
.popover--left {
  right: 0;
  left: auto;
  width: 260px;
  max-height: 60vh;
  overflow-y: auto;
}
.popover__head {
  font-size: var(--eyebrow-size);
  letter-spacing: var(--eyebrow-tracking);
  text-transform: uppercase;
  color: var(--nevon-grey);
  padding: var(--space-2) 10px 0;
}
.popover__item--on {
  font-weight: var(--fw-bold);
  background: var(--page);
}
.popover__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.popover__item__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* One-field editor (build step 4.15). */
.editor__bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.editor__text {
  min-height: max(360px, 45vh);
  resize: vertical;
  font-family: var(--font-sans);
  line-height: 1.5;
}
/* Header like Outlook: label left, field right, Bcc folded away until asked for. */
.editor__head {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.editor__row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border-bottom: 1px solid var(--border);
  min-height: 40px;
}
.editor__row[hidden] {
  display: none;
}
.editor__label {
  width: 56px;
  flex-shrink: 0;
  font-size: var(--ui-sm-size);
  color: var(--nevon-grey);
}
.editor__row input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: var(--body-sm-size);
  color: var(--nevon-ink);
  padding: 8px 0;
  outline: none;
}
.editor__bcc {
  font-size: var(--eyebrow-size);
  color: var(--nevon-grey);
}
.editor__sig {
  padding: var(--space-2) 0 0;
}
.editor__claude {
  border: 1px solid var(--nevon-light-blue);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  background: var(--page);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.editor__claudehead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
}
.editor__instruction {
  flex: 1;
  min-width: 200px;
  font: inherit;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--nevon-white);
}
.editor__notes {
  font-size: var(--ui-sm-size);
  color: var(--nevon-ink);
  background: var(--nevon-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}
.editor__error {
  color: var(--status-alert);
}
.summary {
  border: 1px solid var(--nevon-light-blue);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  background: var(--page);
  margin-bottom: var(--space-3);
}
.summary__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
}
.summary__text {
  margin: var(--space-2) 0;
  line-height: 1.5;
}
.summary__head {
  font-weight: var(--fw-bold);
  color: var(--nevon-navy);
  font-size: var(--ui-sm-size);
  margin-top: var(--space-2);
}
.summary__list {
  margin: 4px 0 0;
  padding-left: 18px;
  line-height: 1.5;
}
.summary__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.summary__action {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.summary__label {
  flex: 1;
  min-width: 200px;
  line-height: 1.4;
}
.summary__btn {
  white-space: nowrap;
}
.summary__group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.summary__picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.summary__picker select {
  font: inherit;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--nevon-white);
}
/* Mandates (ADR 0043) */
.mandates__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-3);
}
.mandates__closed {
  margin-top: var(--space-4);
}
.mandates__closed summary {
  cursor: pointer;
  color: var(--nevon-grey);
  margin-bottom: var(--space-3);
}
.mandate-card {
  text-align: left;
  background: var(--nevon-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  font: inherit;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mandate-card:hover {
  border-color: var(--nevon-light-blue);
}
.mandate-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mandate-card__ref {
  font-size: var(--eyebrow-size);
  color: var(--nevon-grey);
  letter-spacing: 0.04em;
}
.mandate-card__name {
  font-weight: var(--fw-bold);
  color: var(--nevon-navy);
  font-size: 1.05rem;
}
.mandate-card__team {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}
.mandate__status {
  border: 1px solid;
  background: var(--nevon-white);
}
.avatar--sm {
  width: 24px;
  height: 24px;
  font-size: 10px;
  line-height: 24px;
}
.mandate__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-5);
  align-items: start;
}
.mandate__team {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.row__mandate {
  display: inline-block;
  margin-right: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--nevon-navy, #051a4d);
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.mandate-suggest {
  display: grid;
  gap: 4px;
}
.mandate-suggest__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
/* The reason is a sentence: it wraps instead of running out of the panel. */
.mandate-suggest__note .row__meta {
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
}
.mandate-suggest {
  min-width: 0;
  max-width: 100%;
}

.board__scope {
  margin-right: 8px;
}
.card__who {
  color: var(--nevon-navy, #051a4d);
}
/* Automatic to-dos (0.151.0): a light-blue edge and a small label on the card, the switch on the board's bar. */
.card--auto { border-left: 3px solid var(--nevon-light-blue); }
.card__auto { display: inline-flex; align-items: center; border-radius: var(--radius-pill); padding: 0 8px; background: rgba(130, 194, 247, 0.22); color: var(--nevon-navy); font-weight: 700; }
.board__auto { flex: none; }
.card__autodot { width: 8px; height: 8px; border-radius: 50%; background: var(--nevon-light-blue); flex: none; }
.board__auto:not(.chip--active) .card__autodot { background: transparent; border: 1px solid var(--nevon-light-blue); }

.crm__list {
  display: grid;
}
.crm__prio,
.crm__stage {
  margin-left: 6px;
  font-size: 11px;
}
.crm__stage {
  border-color: var(--nevon-navy, #051a4d);
  color: var(--nevon-navy, #051a4d);
  white-space: nowrap;
}
.crm__stage--off {
  border-color: var(--nevon-grey, #808285);
  color: var(--nevon-grey, #808285);
}
.crm-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.crm-field .row__meta {
  white-space: normal;
  overflow: visible;
}
.tile--wide {
  grid-column: 1 / -1;
}

.mandate-picker {
  font: inherit;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--nevon-white);
  max-width: 100%;
}
.header__app {
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.summary__done {
  color: var(--status-ok, #2E8B57);
}
.popover--menu {
  left: 0;
  right: auto;
  width: 280px;
}

/* Search inside the inbox card. */
.cardsearch {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 100%;
}
.cardsearch__field {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 var(--space-3);
  min-height: 36px;
  background: var(--nevon-white);
  color: var(--nevon-grey);
}
.cardsearch__field:focus-within {
  border-color: var(--nevon-navy);
  color: var(--nevon-navy);
}
.cardsearch__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: var(--body-sm-size);
  color: var(--nevon-ink);
  outline: none;
}
.cardsearch__input::-webkit-search-cancel-button {
  display: none;
}
.cardsearch__clear {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--nevon-grey);
  display: inline-flex;
}
.cardsearch__clear:hover {
  color: var(--nevon-navy);
}
.tile__filters__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  width: 100%;
}
.tile__head {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}
.tile__title {
  font-size: var(--body-size);
  font-weight: var(--fw-bold);
  color: var(--nevon-navy);
  flex: 1;
  min-width: 0;
}
.mandate__conversation {
  padding: 2px 0;
  border-bottom: 1px solid var(--line, #e6e8ed);
}
.mandate__conversation:last-child {
  border-bottom: 0;
}
.mandate__briefactions,
.mandate__briefmeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.tile__meta {
  font-size: var(--eyebrow-size);
  color: var(--nevon-grey);
}
.tile__link {
  font-size: var(--ui-sm-size);
  white-space: nowrap;
  background: none;
  border: none;
  color: var(--nevon-navy);
  cursor: pointer;
  padding: 0;
}
.tile__link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.tile__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Tile state box (S7): loading, empty, panel with dot, title, text, button */
.state {
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.state__title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--ui-sm-size);
  font-weight: var(--fw-bold);
  color: var(--nevon-navy);
}
.state__text {
  font-size: var(--eyebrow-size);
  line-height: 1.5;
  color: var(--nevon-ink);
}
.state__ref {
  font-size: var(--eyebrow-size);
  color: var(--nevon-grey);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.skeleton {
  height: 12px;
  border-radius: var(--radius-sm);
  background: var(--nevon-paper);
  animation: pulse 1.2s ease-in-out infinite;
}
.skeleton--short {
  width: 40%;
}
.skeleton--long {
  width: 70%;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: var(--fw-bold);
  font-size: var(--ui-sm-size);
  padding: 0 var(--space-4);
  min-height: var(--tap);
  border-radius: var(--radius-md);
  border: 1px solid var(--nevon-navy);
  background: var(--nevon-navy);
  color: var(--nevon-white);
  cursor: pointer;
  align-self: flex-start;
  white-space: nowrap;
}
.btn:hover {
  opacity: 0.9;
}
.btn--secondary {
  background: var(--nevon-white);
  color: var(--nevon-navy);
}
.btn--secondary:hover {
  background: var(--nevon-navy);
  color: var(--nevon-white);
  opacity: 1;
}
/* Secondary action in light blue (Create draft next to Send mail). */
.btn--light {
  background: var(--nevon-light-blue);
  border-color: var(--nevon-light-blue);
  color: var(--nevon-navy);
}
.btn--light:hover {
  opacity: 0.85;
}
.banner-test--inline {
  border-radius: var(--radius-md);
  text-align: left;
}
.senddlg__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: var(--space-2);
}
.senddlg__row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--ui-sm-size);
}
.senddlg__role {
  color: var(--nevon-grey);
  width: 28px;
}
.senddlg__addr {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.senddlg__kv {
  display: flex;
  gap: var(--space-2);
  font-size: var(--ui-sm-size);
}
.senddlg__k {
  color: var(--nevon-grey);
}
.btn--sm {
  min-height: 36px;
  font-size: var(--eyebrow-size);
}

/* List rows */
.row {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  min-width: 0;
  text-align: left;
  background: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
  width: 100%;
  cursor: pointer;
  color: inherit;
}
.row:first-child {
  border-top: none;
}
.row:hover .row__title {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.row__time {
  flex-shrink: 0;
  width: 52px;
  font-size: var(--ui-sm-size);
  font-weight: var(--fw-bold);
  color: var(--nevon-navy);
  font-variant-numeric: tabular-nums;
}
.row__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.row__title {
  font-size: var(--body-sm-size);
  color: var(--nevon-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row__title--unread {
  font-weight: var(--fw-bold);
  color: var(--nevon-navy);
}
.row__meta {
  font-size: var(--eyebrow-size);
  color: var(--nevon-grey);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row__preview {
  font-size: var(--eyebrow-size);
  color: var(--nevon-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.unread {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--nevon-light-blue);
  flex-shrink: 0;
  margin-top: 7px;
}
.unread.unread--read {
  background: transparent;
}
.tile__scroll {
  max-height: min(70vh, 720px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}
.tile__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  padding-top: var(--space-2);
}
.pill {
  font-size: var(--eyebrow-size);
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  background: var(--nevon-paper);
  color: var(--nevon-navy);
  white-space: nowrap;
  flex-shrink: 0;
}
.pill--kind {
  text-transform: uppercase;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
/* Filter row of the inbox tile: state chips left, range chips right (feature inbox.range). */
.tile__filters {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-2);
}
.tile__note {
  font-size: var(--ui-sm-size);
  color: var(--nevon-grey);
  padding-top: var(--space-2);
}
.chip {
  font-size: var(--eyebrow-size);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0 10px;
  min-height: 28px;
  background: var(--nevon-white);
  color: var(--nevon-navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}
.chip--active {
  background: var(--nevon-navy);
  color: var(--nevon-white);
  border-color: var(--nevon-navy);
}
.chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Search page */
.search {
  display: flex;
  gap: var(--space-2);
}
.search input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 var(--space-3);
  min-height: var(--tap);
  background: var(--nevon-white);
  color: var(--nevon-ink);
}
.search input:focus {
  border-color: var(--nevon-navy);
}

/* Side panel (note reader) */
/* Panel: an overlay on narrow screens, a docked split view from 1400 px, where
   the page shifts left and stays usable (reading-pane pattern). */
.panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(720px, 100vw);
  background: var(--nevon-white);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-3);
  z-index: 6;
  display: flex;
  flex-direction: column;
}
@media (min-width: 1400px) {
  .panel {
    width: 600px;
    top: var(--header-h);
    box-shadow: none;
  }
  body.panel-open .page {
    margin-right: 600px;
    max-width: none;
  }
}
/* A panel sits on white: its close button must not keep the header's white icon (2026-10-13, the profile panel looked unclosable). */
.panel__head .header__icon { color: var(--nevon-navy); }
.panel__head .header__icon:hover { background: rgba(5, 26, 77, 0.08); }
.panel__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
}
.panel__title {
  flex: 1;
  min-width: 0;
  font-weight: var(--fw-bold);
  color: var(--nevon-navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.panel__body {
  flex: 1;
  overflow: auto;
  padding: var(--space-4) var(--space-5) var(--space-6);
}
.note {
  font-size: var(--body-sm-size);
  line-height: 1.6;
  max-width: 72ch;
}
.note h1,
.note h2,
.note h3,
.note h4 {
  color: var(--nevon-navy);
  margin: var(--space-4) 0 var(--space-2);
  line-height: 1.25;
}
.note h1 {
  font-size: var(--h3-size);
}
.note h2 {
  font-size: var(--h4-size);
}
.note h3,
.note h4 {
  font-size: var(--body-size);
}
.note p {
  margin: 0 0 var(--space-2);
}
.note ul {
  margin: 0 0 var(--space-2);
  padding-left: 20px;
}
.note pre {
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  overflow: auto;
  font-size: var(--eyebrow-size);
}
/* Markdown blocks shared by the reading pane and chat answers (ADR 0098). */
.md ol {
  margin: 0 0 var(--space-2);
  padding-left: 22px;
}
.md ul ul {
  margin: var(--space-1) 0 0;
}
.md blockquote {
  margin: 0 0 var(--space-2);
  padding: 0 0 0 var(--space-3);
  border-left: 3px solid var(--border);
  color: var(--nevon-grey);
}
.md hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--space-3) 0;
}
.md__table {
  overflow-x: auto;
  margin: 0 0 var(--space-2);
}
.md table {
  border-collapse: collapse;
  width: 100%;
  font-size: var(--body-sm-size);
}
.md th,
.md td {
  text-align: left;
  vertical-align: top;
  padding: var(--space-1) var(--space-2);
  border-bottom: 1px solid var(--border);
}
.md th {
  color: var(--nevon-navy);
  font-weight: 600;
  background: var(--page);
}
.md__details {
  margin: 0 0 var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-1) var(--space-3);
  background: var(--nevon-white);
}
.md__details > summary {
  cursor: pointer;
  color: var(--nevon-navy);
  font-weight: 600;
  padding: var(--space-1) 0;
}
.md__details[open] > summary {
  margin-bottom: var(--space-2);
}
.note .frontmatter {
  font-size: var(--eyebrow-size);
  color: var(--nevon-grey);
  margin-bottom: var(--space-3);
}
.note__meta {
  font-size: var(--eyebrow-size);
  color: var(--nevon-grey);
  margin-bottom: var(--space-3);
}
/* Message panel and composer */
.meta-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px var(--space-3);
  font-size: var(--ui-sm-size);
  margin-bottom: var(--space-3);
}
.meta-grid dt {
  color: var(--nevon-grey);
}
.meta-grid dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.rowwrap { position: relative; }
.rowwrap > .row { width: 100%; }
.rowwrap__act { position: absolute; right: 6px; bottom: 6px; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--grey); opacity: 0; cursor: pointer; }
.rowwrap:hover .rowwrap__act, .rowwrap__act:focus-visible { opacity: 1; }
.rowwrap__act--on { opacity: 1; top: 50%; bottom: auto; transform: translateY(-50%); }
.snooze__picks--row { padding: 4px 8px 8px; }
.agents__label { margin: 8px 0; }
.agents__limit { display: inline-flex; flex-direction: column; gap: 2px; }
.agents__limit input { width: 120px; }
.stats { display: grid; gap: 12px; }
.stats__bars { width: 100%; height: 60px; display: block; margin-top: 8px; }
.stats__bar { fill: var(--nevon-navy); }
.stats__bar--zero { fill: var(--line); }
.agents__label input { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; min-width: 160px; }
.chatbox__people { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 0; }
.chatbox__people .avatar--sm { width: 18px; height: 18px; font-size: 9px; }
.chip__x { border: 0; background: none; color: var(--grey); cursor: pointer; padding: 0 2px; font-size: 14px; line-height: 1; }
.chat__author { font-size: 11px; color: var(--grey); margin-bottom: 2px; }
.snooze { display: flex; flex-direction: column; gap: 6px; }
.snooze__picks { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.snooze__picks input { font: inherit; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; }
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-3);
}
.mail-body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--body-sm-size);
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--nevon-ink);
}
.section-title {
  font-size: var(--eyebrow-size);
  letter-spacing: var(--eyebrow-tracking);
  text-transform: uppercase;
  color: var(--nevon-grey);
  margin: var(--space-4) 0 var(--space-2);
}
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
/* A hidden field stays hidden (0.150.0): display flex above beat the hidden attribute, so "Waiting for" showed in every column. */
.field[hidden] {
  display: none;
}
.field label {
  font-size: var(--eyebrow-size);
  color: var(--nevon-grey);
}
.field input,
.field textarea,
.field select {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px var(--space-3);
  background: var(--nevon-white);
  color: var(--nevon-ink);
  font-size: var(--body-sm-size);
  min-height: var(--tap);
}
.field textarea {
  min-height: 160px;
  resize: vertical;
  font-family: var(--font-sans);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--nevon-navy);
}
.field__hint {
  font-size: var(--eyebrow-size);
  color: var(--nevon-grey);
}
.check {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--body-sm-size);
  min-height: var(--tap);
}
.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--nevon-navy);
}
.inline {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-wrap: wrap;
}
/* Free-busy rows */
.fb__row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 0;
  border-top: 1px solid var(--border);
}
.fb__row:first-of-type {
  border-top: none;
}
.fb__name {
  width: 110px;
  flex-shrink: 0;
  font-size: var(--ui-sm-size);
  color: var(--nevon-navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fb__slots,
.fb__scale {
  display: flex;
  flex: 1;
  gap: 2px;
}
.fb__scale {
  gap: 0;
}
.fb__hour {
  flex: 1;
  font-size: var(--eyebrow-size);
  color: var(--nevon-grey);
}
.fb__slot {
  flex: 1;
  height: 18px;
  border-radius: var(--radius-sm);
}
.fb__windows {
  margin-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.fb__window__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.fb__window {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(130, 194, 247, 0.16);
}
.fb__window__time {
  font-weight: var(--fw-bold);
  color: var(--nevon-navy);
  flex: 1;
}
.fb__slot--free {
  background: var(--nevon-paper);
}
.fb__slot--tentative {
  background: var(--nevon-light-blue);
}
.fb__slot--busy {
  background: var(--nevon-navy);
}
.fb__slot--oof {
  background: var(--status-alert);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: var(--space-5);
  transform: translateX(-50%);
  background: var(--nevon-navy);
  color: var(--nevon-white);
  font-size: var(--ui-sm-size);
  padding: 10px var(--space-4);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2);
  z-index: 7;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---------- Dialog (small modal; bottom sheet on phones) ---------- */

.dialog {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  margin: auto 0 0;
  background: var(--nevon-white);
  color: var(--nevon-ink);
  box-shadow: var(--shadow-3);
}
.dialog::backdrop {
  background: rgba(5, 26, 77, 0.35);
}
.dialog__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-4) calc(var(--space-5) + env(safe-area-inset-bottom, 0px));
}
.dialog__title {
  font-size: var(--h4-size);
  font-weight: var(--fw-bold);
  color: var(--nevon-navy);
}
.dialog__text {
  font-size: var(--ui-sm-size);
  color: var(--nevon-grey);
  line-height: 1.5;
}
.dialog__row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.dialog__input {
  width: 6ch;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 var(--space-3);
  font-size: var(--h3-size);
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--nevon-navy);
  background: var(--nevon-white);
}
.dialog__input:focus {
  outline: none;
  border-color: var(--nevon-navy);
  box-shadow: 0 0 0 3px var(--navy-12);
}
.dialog__unit {
  font-size: var(--body-size);
  color: var(--nevon-grey);
}
.dialog__actions {
  display: flex;
  gap: var(--space-2);
  justify-content: flex-end;
  padding-top: var(--space-2);
}
.dialog__actions .btn {
  flex: 1 1 0;
  align-self: stretch;
}
@media (min-width: 768px) {
  .dialog {
    width: 360px;
    margin: auto;
    border-radius: var(--radius-lg);
  }
  .dialog__form {
    padding: var(--space-5);
  }
  .dialog__actions .btn {
    flex: 0 0 auto;
  }
}

/* Onboarding pop-up "Safe start" (ADR 0145): the dialog above, wider, with a scrolling body and a fixed foot. */
.onb {
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  /* Only the body scrolls; the head and the buttons stay in view. */
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
}
.onb:not([open]) {
  display: none;
}
.onb__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4) 0;
}
.onb__eyebrow {
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5f6266;
}
.onb__x {
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  border-radius: var(--radius-md);
  color: #5f6266;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.onb__x:hover {
  background: var(--navy-12);
}
.onb__news {
  margin: var(--space-2) var(--space-4) 0;
  background: #eaf4fe;
  border: 1px solid var(--nevon-light-blue);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: var(--ui-sm-size);
  color: var(--nevon-navy);
}
.onb__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: var(--space-2) var(--space-4) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.onb__title {
  margin: 0;
  font-size: var(--h4-size);
  font-weight: var(--fw-bold);
  color: var(--nevon-navy);
  line-height: 1.25;
}
.onb__text {
  margin: 0;
  color: var(--nevon-ink);
}
.onb__muted {
  margin: 0;
  font-size: var(--ui-sm-size);
  color: #5f6266;
}
.onb__rules {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.onb__rules li {
  position: relative;
  padding-left: 32px;
  min-height: 22px;
}
.onb__rules li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 11px;
  background: var(--nevon-navy);
  color: var(--nevon-white);
  font-size: 12px;
  font-weight: var(--fw-bold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.onb__group {
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5f6266;
  padding-top: var(--space-3);
}
.onb__sw {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.onb__swhint {
  display: block;
  font-size: 12px;
  color: #5f6266;
}
.onb__pill {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: var(--fw-bold);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  color: var(--nevon-navy);
  background: #eef0f4;
}
.onb__pill--propose {
  background: var(--nevon-light-blue);
}
.onb__pill--auto,
.onb__pill--on {
  background: var(--nevon-navy);
  color: var(--nevon-white);
}
.onb__modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}
.onb__mode {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  font-size: 12px;
  color: #5f6266;
}
.onb__mode b {
  display: block;
  font-size: var(--ui-sm-size);
  color: var(--nevon-navy);
}
.onb__stages {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: onb;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.onb__stages li {
  counter-increment: onb;
  position: relative;
  padding-left: 42px;
  min-height: 30px;
  font-size: var(--ui-sm-size);
  color: #5f6266;
}
.onb__stages li::before {
  content: counter(onb);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  box-sizing: border-box;
  border-radius: 15px;
  border: 2px solid var(--nevon-navy);
  color: var(--nevon-navy);
  font-weight: var(--fw-bold);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.onb__stages b,
.onb__help b {
  color: var(--nevon-navy);
}
.onb__stages b {
  display: block;
  font-size: 14px;
}
.onb__box {
  margin: 0;
  background: #fafbfc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: var(--ui-sm-size);
}
.onb__help {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.onb__link {
  align-self: flex-start;
  border: none;
  background: none;
  padding: 0;
  min-height: 44px;
  font: inherit;
  font-weight: var(--fw-bold);
  color: var(--nevon-navy);
  text-decoration: underline;
  cursor: pointer;
}
.onb__foot {
  border-top: 1px solid var(--border);
  padding: var(--space-3) var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.onb__dots {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.onb__dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: #c4c8d0;
}
.onb__dot--on {
  background: var(--nevon-navy);
}
/* On a phone the buttons stack at full width, the main action on top (design v11, artboard "Onboarding"). */
.onb__actions {
  display: flex;
  flex-direction: column-reverse;
  gap: var(--space-2);
}
.onb__actions .btn {
  width: 100%;
  min-height: 44px;
}
.onb__ghost {
  background: none;
  border-color: transparent;
  color: #5f6266;
}
.onb__ghost:hover {
  background: var(--navy-12);
}
/* The agents pop-up (ADR 0147, design v11 artboard "OnboardingAgents"): one card per agent with its switches. */
.onb__ag {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.onb__aghead {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding-bottom: 6px;
}
.onb__av {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: var(--nevon-navy);
  color: var(--nevon-white);
  font-size: 12px;
  font-weight: var(--fw-bold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.onb__agname {
  font-weight: var(--fw-bold);
  color: var(--nevon-navy);
  overflow-wrap: anywhere;
}
.onb__agline {
  margin: 0;
  font-size: 12px;
  color: #5f6266;
}
.onb__agline b {
  color: var(--nevon-ink);
}
/* Inside a card the switch rows sit under a rule, the last one without a bottom line. */
.onb__ag .onb__sw {
  border-bottom: none;
  border-top: 1px solid var(--border);
  padding: 8px 0;
  font-size: var(--ui-sm-size);
}
@media (min-width: 768px) {
  .onb {
    width: 560px;
  }
  .onb.onb--agents {
    width: 620px;
  }
  .onb__head {
    padding: var(--space-4) var(--space-5) 0;
  }
  .onb__news {
    margin: var(--space-2) var(--space-5) 0;
  }
  .onb__body {
    padding: var(--space-2) var(--space-5) var(--space-4);
  }
  .onb__title {
    font-size: 20px;
  }
  .onb__foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-5) var(--space-4);
  }
  .onb__actions {
    flex-direction: row;
    align-items: center;
  }
  .onb__actions .btn {
    width: auto;
  }
}

/* Settings panel and saved layouts (ADR 0050). */
.settings__row {
  flex-wrap: wrap;
}
.settings__hint {
  flex: 1 0 100%;
}
.settings__check {
  margin: 8px 0 12px;
}
.layout__savedsection {
  margin-top: 8px;
}
.layout__saved {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 6px 0 10px;
}
.layout__savedrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.layout__saveas {
  gap: 8px;
}
.layout__savedname {
  flex: 1 1 160px;
  min-width: 0;
}

/* Playbook proposals (ADR 0051). */
.playbook__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 12px;
}
.playbook__card {
  border: 1px solid var(--line, #e6e8ed);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.playbook__section {
  font-weight: 600;
}
.playbook__text {
  white-space: pre-wrap;
}
.playbook__evidence {
  white-space: pre-wrap;
}
.playbook__actions {
  margin-top: 4px;
}
.playbook__form textarea {
  width: 100%;
  box-sizing: border-box;
}

/* Comments and the bell (ADR 0052). */
.comments {
  margin-top: 16px;
}
.comments__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0 10px;
}
.comments__item {
  border-left: 3px solid var(--line, #e6e8ed);
  padding: 2px 10px;
}
.comments__body {
  white-space: pre-wrap;
}
/* Delete a comment (ADR 0140): a quiet word on the meta line, red once armed; always visible, a phone has no hover. */
.comments__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.comments__del {
  flex-shrink: 0;
  background: none;
  border: none;
  border-radius: var(--radius-md);
  padding: 2px 6px;
  color: var(--nevon-grey);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}
.comments__del:hover,
.comments__del:focus-visible {
  color: var(--status-alert);
  background: var(--page);
}
.comments__del--armed,
.comments__del--armed:hover {
  color: var(--nevon-white);
  background: var(--status-alert);
  font-weight: var(--fw-bold);
}
.comments textarea {
  width: 100%;
  box-sizing: border-box;
}
.header__bell {
  position: relative;
}
.header__count {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #82c2f7;
  color: #051a4d;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  box-sizing: border-box;
}
.popover--bell {
  width: 380px;
  max-width: 92vw;
  max-height: 70vh;
  overflow: auto;
}
.bell__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.bell__item--unread .popover__item__label {
  font-weight: 600;
}
/* Rows keep their height in the scrolling list (0.138.0): a long body overlapped its neighbours
   because the items shrank to their 44 px minimum. Each row is as tall as its content, and the
   body shows at most two lines, the full text on hover. */
.popover--bell > .bell__item {
  flex: none;
  min-height: 0;
  padding-top: 8px;
  padding-bottom: 8px;
  width: 100%;
  box-sizing: border-box;
}
.bell__item .popover__item__label {
  max-width: 100%;
}
.bell__body {
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  max-width: 100%;
}
.bell__tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border, #e6e8ed);
  margin: 4px 10px 4px;
  flex: none;
}
.bell__tab {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  font: inherit;
  font-size: var(--ui-sm-size);
  color: var(--nevon-grey, #808285);
  padding: 6px 8px;
  min-height: 36px;
  cursor: pointer;
}
.bell__tab--on {
  color: var(--nevon-navy);
  border-bottom-color: var(--nevon-navy);
  font-weight: 600;
}
.bell__limit {
  padding: 0 10px 4px;
}
.bell__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-2) 10px;
}
.bell__select {
  font: inherit;
  font-size: var(--body-sm-size);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-height: var(--tap);
  padding: 0 var(--space-2);
}
.bell__noteactions {
  margin-top: 4px;
}

/* Routines in the settings panel (ADR 0053). */
.routines__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 6px 0 12px;
}
.routines__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line, #e6e8ed);
  border-radius: 8px;
  padding: 10px 12px;
}

/* Global search groups (ADR 0055). */
.search__group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 6px;
}
.search__group:first-child {
  margin-top: 4px;
}

/* The morning briefing on the Today tile (ADR 0056). */
.briefing {
  border: 1px solid var(--line, #e6e8ed);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.briefing__head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.briefing__text {
  white-space: pre-wrap;
}

/* Usage panel (ADR 0058). */
/* Planned tiles (ADR 0067): greyed, marked, nothing to click. */
.tile--planned {
  opacity: 0.62;
  border-style: dashed;
}
.tile--planned .tile__title {
  color: var(--nevon-grey);
}
.pill--planned {
  background: var(--nevon-paper);
  color: var(--nevon-grey);
  border: 1px solid var(--border);
}
.planned__text {
  font-size: var(--body-sm-size);
  color: var(--nevon-grey);
  margin-bottom: var(--space-2);
}

/* The v5 home tiles (ADR 0061). */
.ask__form {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.ask__input {
  flex: 1;
  font: inherit;
  font-size: var(--body-sm-size);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 var(--space-3);
  min-height: var(--tap);
}
.ask__input:focus {
  outline: 2px solid var(--nevon-light-blue);
  border-color: var(--nevon-light-blue);
}
.row--unread .row__title {
  font-weight: var(--fw-bold);
}
.row--static .btn {
  align-self: center;
}

/* The Ask Claude page (ADR 0062). */
.askpage__chrome {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: var(--space-3) 0;
}
.askpage {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-4);
  align-items: start;
}
.askpage__side {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.askpage__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.askpage__main {
  min-height: 60vh;
}
.askpage__conversation {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.askpage__title {
  font-weight: var(--fw-bold);
  color: var(--nevon-navy);
}
.askpage__turns {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-height: 60vh;
  overflow-y: auto;
  padding-right: var(--space-2);
}
.askpage__send .chatbox__input {
  min-height: 64px;
}
@media (max-width: 900px) {
  .askpage {
    grid-template-columns: 1fr;
  }
}

/* The Claude chat box (ADR 0059): a floating button and a docked box bottom right. */
.chatfab {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--nevon-navy);
  color: var(--nevon-white);
  box-shadow: var(--shadow-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.chatfab svg {
  width: 22px;
  height: 22px;
}
.chatfab:hover {
  background: var(--nevon-light-blue);
  color: var(--nevon-navy);
}
.chatbox {
  position: fixed;
  right: var(--space-5);
  bottom: calc(var(--space-5) + 64px);
  width: min(440px, calc(100vw - 2 * var(--space-4)));
  height: min(640px, calc(100vh - var(--header-h) - 2 * var(--space-5) - 64px));
  background: var(--nevon-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  display: flex;
  flex-direction: column;
  z-index: 6;
  overflow: hidden;
}
.chatbox__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--border);
  background: var(--page);
  position: relative;
  z-index: 2;
}
.chatbox__title {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: none;
  border: none;
  font-weight: var(--fw-bold);
  color: var(--nevon-navy);
  cursor: pointer;
  padding: 0;
  max-width: 240px;
}
.chatbox__title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chatbox__title svg {
  width: 14px;
  height: 14px;
}
.chatbox__tools {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.chatbox__close {
  color: var(--nevon-navy);
}
.chatbox__close:hover {
  background: var(--navy-12);
}
.chatbox__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.popover--chat {
  left: auto;
  right: 0;
  width: 320px;
  max-width: calc(100vw - 72px);
  max-height: 50vh;
  overflow-y: auto;
}
.popover__searchrow {
  padding: 6px 6px 4px;
  position: sticky;
  top: 0;
  background: var(--nevon-white);
  z-index: 1;
}
.popover__search {
  width: 100%;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font: inherit;
  font-size: var(--body-sm-size);
  background: var(--page);
}
.popover__search:focus {
  outline: 2px solid var(--nevon-light-blue);
  outline-offset: 0;
}
.popover__item--hit {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.popover__snippet {
  font-size: var(--eyebrow-size);
  color: var(--nevon-grey);
  white-space: normal;
  text-align: left;
}
.popover--up {
  top: auto;
  bottom: calc(100% + 4px);
}
.chatbox__turns {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.chatbox__empty {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.chat__turn {
  max-width: 92%;
  border-radius: var(--radius-lg);
  padding: var(--space-2) var(--space-3);
  font-size: var(--body-sm-size);
  line-height: 1.45;
}
.chat__turn p {
  margin: 0 0 var(--space-2);
}
.chat__turn p:last-child {
  margin-bottom: 0;
}
.chat__turn--user {
  align-self: flex-end;
  background: var(--nevon-navy);
  color: var(--nevon-white);
}
.chat__turn--assistant {
  align-self: flex-start;
  background: var(--page);
  border: 1px solid var(--border);
}
/* Choices under an answer (stage three, 0.127.0): one button per option, the click sends it. */
.chat__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-2);
}
.chat__choice {
  border-color: var(--nevon-navy);
  color: var(--nevon-navy);
  font-weight: var(--fw-bold);
  text-align: left;
  white-space: normal;
}
.chat__choice:hover:not(:disabled) {
  background: var(--nevon-navy);
  color: var(--nevon-white);
}
.chat__choice:disabled {
  border-color: var(--border);
  color: var(--nevon-grey);
  font-weight: normal;
  cursor: default;
}
/* Delete from the archive list (0.126.0): the row picks, the × at its end deletes after a second click. */
.chatbox__archrow {
  display: flex;
  align-items: center;
  gap: 4px;
}
.chatbox__archrow > .popover__item {
  flex: 1;
  min-width: 0;
}
.chatbox__archdel {
  flex-shrink: 0;
  background: none;
  border: none;
  border-radius: var(--radius-md);
  padding: 4px 6px;
  color: var(--nevon-grey);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}
.chatbox__archdel:hover {
  color: var(--status-alert);
  background: var(--page);
}
.chatbox__archdel--armed {
  color: var(--nevon-white);
  background: var(--status-alert);
  font-weight: var(--fw-bold);
}
.chatbox__archdel--armed:hover {
  color: var(--nevon-white);
  background: var(--status-alert);
}
/* Edit and resend (0.125.0): a pencil left of the person's own message, shown on hover; the editor in its place. */
.chat__userwrap {
  align-self: flex-end;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  max-width: 92%;
}
.chat__userwrap > .chat__turn {
  max-width: 100%;
}
.chat__edit {
  background: none;
  border: none;
  color: var(--nevon-grey);
  padding: 4px;
  border-radius: var(--radius-md);
  cursor: pointer;
  opacity: 0;
  transition: opacity 120ms;
}
.chat__userwrap:hover .chat__edit,
.chat__edit:focus-visible {
  opacity: 1;
}
.chat__edit:hover {
  color: var(--nevon-navy);
  background: var(--page);
}
@media (hover: none) {
  .chat__edit {
    opacity: 1;
  }
}
.chat__editbox {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  border: 1px solid var(--nevon-navy);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  background: var(--nevon-white);
}
.chat__editbox textarea {
  width: 100%;
  resize: vertical;
}
/* A chat answer's Markdown (ADR 0098): compact headings, room for a table and a collapsible block. */
.chat__md h1,
.chat__md h2,
.chat__md h3,
.chat__md h4 {
  color: var(--nevon-navy);
  font-size: var(--body-size);
  line-height: 1.3;
  margin: var(--space-3) 0 var(--space-1);
}
.chat__md > :first-child {
  margin-top: 0;
}
.chat__md > :last-child {
  margin-bottom: 0;
}
.chat__md ul,
.chat__md ol {
  margin: 0 0 var(--space-2);
  padding-left: 20px;
}
.chat__md li {
  margin: 0 0 2px;
}
.chat__md pre {
  background: var(--nevon-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  overflow: auto;
  font-size: var(--eyebrow-size);
  margin: 0 0 var(--space-2);
}
.chat__md code {
  font-size: 0.92em;
}
.chat__sources {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-2);
}
.chat__source {
  font-size: var(--eyebrow-size);
  color: var(--nevon-navy);
  background: var(--navy-12);
  border-radius: var(--radius-pill);
  padding: 1px 8px;
}
.chat__card {
  margin-top: var(--space-2);
  border: 1px solid var(--nevon-light-blue);
  border-radius: var(--radius-md);
  background: var(--nevon-white);
  padding: var(--space-2) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.chat__card--run {
  border-color: var(--border);
}
.chat__card--dismissed,
.chat__card--obsolete,
.chat__card--failed {
  border-color: var(--border);
  opacity: 0.75;
}
.chat__cardhead {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  align-items: baseline;
}
/* The mail batch card (ADR 0103). */
.batch__who {
  margin: var(--space-1) 0;
}
.batch__who .chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0 4px 0 0;
}
.batch__pick,
.batch__drop {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 2px 6px;
}
.batch__drop {
  padding: 2px 4px;
  color: var(--nevon-grey);
}
.chip--warn {
  border-color: #b42318;
  color: #b42318;
}
.batch__fold {
  cursor: pointer;
  color: var(--nevon-navy);
  font-weight: 600;
  background: var(--nevon-white);
}
.batch__preview {
  background: var(--nevon-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  margin: var(--space-1) 0;
  font-size: var(--body-sm-size);
}
.batch__preview p {
  margin: 0 0 var(--space-2);
}
.batch__subject {
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.batch__warn {
  color: #b42318;
  font-size: var(--eyebrow-size);
  margin: var(--space-1) 0;
}
.batch__edit,
.batch__send {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: var(--space-1) 0;
}
.batch__field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.batch__input {
  font: inherit;
  font-size: var(--body-sm-size);
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--nevon-white);
}
.batch__input--area {
  min-height: 160px;
  resize: vertical;
}
.batch__count {
  max-width: 120px;
}
.batch__drafts,
.batch__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: var(--space-1) 0;
  font-size: var(--body-sm-size);
}
.batch__draft {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
}
.batch__draft--sent .row__meta {
  color: #027a48;
}
.batch__draft--failed .row__meta {
  color: #b42318;
}
.chat__cardfacts {
  font-size: var(--body-sm-size);
  color: var(--nevon-ink);
  overflow-wrap: anywhere;
  margin-bottom: var(--space-1);
}
.chat__cardfact {
  color: var(--nevon-grey);
}
.chat__carddetail {
  font-size: var(--eyebrow-size);
  color: var(--nevon-grey);
  overflow-wrap: anywhere;
}
.chat__cardactions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-1);
}
.chat__feedback {
  display: flex;
  gap: var(--space-1);
  margin-top: var(--space-2);
}
.chip--sm {
  min-height: 24px;
  padding: 0 8px;
}
.chatbox__foot {
  border-top: 1px solid var(--border);
  padding: var(--space-2) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: relative;
  z-index: 2;
}
.chatbox__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.chatbox__send {
  display: flex;
  gap: var(--space-2);
  align-items: flex-end;
}
.chatbox__input {
  flex: 1;
  resize: none;
  font: inherit;
  font-size: var(--body-sm-size);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  min-height: 44px;
}
.chatbox__input:focus {
  outline: 2px solid var(--nevon-light-blue);
  border-color: var(--nevon-light-blue);
}
@media (max-width: 600px) {
  .chatbox {
    right: var(--space-2);
    left: var(--space-2);
    width: auto;
    bottom: calc(var(--space-2) + 64px);
  }
}
.panel--wide {
  width: min(720px, 100vw);
}
.usage__table {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
}
.usage__row {
  display: grid;
  grid-template-columns: 1fr 70px 90px 90px 70px;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid var(--line, #e6e8ed);
  font-size: 13px;
}
.usage__row--head {
  color: #808285;
  font-size: 12px;
}
.usage__row span:nth-child(n + 2) {
  text-align: right;
}

/* The Claude bubble after design round 6 (ADR 0072): navy header with modes, tabs, context chips, resize. */
.chatfab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  font-weight: var(--fw-bold);
  font-size: var(--ui-sm-size);
  position: fixed;
}
.chatfab__badge {
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  box-sizing: border-box;
  border-radius: var(--radius-pill);
  background: var(--nevon-light-blue);
  color: var(--nevon-navy);
  border: 2px solid var(--nevon-white);
  font-size: 11px;
  font-weight: var(--fw-bold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.chatbox {
  width: min(440px, calc(100vw - 2 * var(--space-4)));
  height: min(640px, calc(100vh - var(--header-h) - 2 * var(--space-5) - 64px));
  border-radius: var(--radius-md);
}
.chatbox--big {
  /* The default of the large window; an inline width from the grip overrides it (0.100.1). */
  width: min(880px, calc(100vw - 48px));
  height: calc(100vh - 120px);
}
.chatbox__grip {
  position: absolute;
  /* Inside the box: the box clips its overflow, so a grip hanging out at -4px was mostly unreachable (0.101.2). */
  left: 0;
  top: 0;
  bottom: 0;
  width: 10px;
  touch-action: none;
  z-index: 20;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chatbox__grip span {
  width: 3px;
  height: 40px;
  border-radius: 2px;
  background: rgba(5, 26, 77, 0.18);
}
.chatbox__grip:hover span {
  background: var(--nevon-light-blue);
}
.chatbox__head {
  background: var(--nevon-navy);
  color: var(--nevon-white);
  border-bottom: none;
  padding: 10px 10px 10px 16px;
  gap: 10px;
  justify-content: flex-start;
}
.chatbox__spark {
  display: flex;
  color: var(--nevon-light-blue);
}
.chatbox__modes {
  flex: 1;
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 2px;
  max-width: 220px;
}
.chatbox__mode {
  flex: 1;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 4px;
  min-height: 30px;
  padding: 0 10px;
  font-size: var(--ui-sm-size);
  font-weight: var(--fw-bold);
  cursor: pointer;
  background: transparent;
  color: var(--nevon-white);
}
.chatbox__mode--on {
  background: var(--nevon-white);
  color: var(--nevon-navy);
}
.chatbox__badge {
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  box-sizing: border-box;
  border-radius: var(--radius-pill);
  background: var(--nevon-light-blue);
  color: var(--nevon-navy);
  font-size: 11px;
  font-weight: var(--fw-bold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.chatbox__badge--navy {
  background: var(--nevon-navy);
  color: var(--nevon-white);
}
.chatbox__headbtn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--nevon-white);
  border-radius: var(--radius-md);
  padding: 0 10px;
  min-height: 32px;
  font-size: var(--eyebrow-size);
  font-weight: var(--fw-bold);
  cursor: pointer;
}
.chatbox__headbtn svg {
  width: 14px;
  height: 14px;
}
.chatbox__iconbtn {
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  color: var(--nevon-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.chatbox__iconbtn:hover {
  background: rgba(255, 255, 255, 0.14);
}
.popover--right {
  left: auto;
  right: 0;
}
.popover--tab {
  left: auto;
  right: 0;
  width: 240px;
  top: calc(100% + 4px);
}
/* The project bar of the Claude mode (ADR 0102). */
.chatbox__projectbar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 12px 0;
}
.chatbox__projectbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 8px 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--nevon-white);
  color: var(--nevon-navy);
  font: inherit;
  font-size: var(--eyebrow-size);
  font-weight: 700;
  cursor: pointer;
  max-width: 100%;
}
.chatbox__projectbtn svg {
  width: 12px;
  height: 12px;
}
.chatbox__count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--nevon-navy);
  color: var(--nevon-white);
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}
.chatbox__projects {
  left: 0;
  right: auto;
}
.popover__sub {
  margin: 0 0 4px 12px;
  padding-left: 8px;
  border-left: 2px solid var(--border);
}
.popover__item--danger .popover__item__label {
  color: #b42318;
  font-weight: 600;
}
.popover--tab-left {
  left: -8px;
  right: auto;
}
.chatbox__tab--new,
.chatbox__tabsall {
  flex: 0 0 auto;
}
/* The new tab is a plus (Andreas, 2026-10-14): the title says what it opens. */
.chatbox__tab--new {
  min-width: 32px;
  width: 32px;
  padding: 0;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  color: var(--nevon-navy);
}
.chatbox__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.chatbox__tabbar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border-bottom: 1px solid var(--border);
  background: var(--page);
  padding: 4px var(--space-2) 0;
  position: relative;
  z-index: 2;
}
.chatbox__tabs {
  flex: 1;
  display: flex;
  gap: 2px;
  min-width: 0;
  overflow: visible;
  align-items: flex-end;
}
.chatbox__tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px 0 10px;
  min-height: 32px;
  max-width: 180px;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  font-size: var(--eyebrow-size);
  color: var(--nevon-ink);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.chatbox__tab--on {
  background: var(--nevon-white);
  color: var(--nevon-navy);
  font-weight: var(--fw-bold);
  border-color: var(--border);
}
.chatbox__tabtitle {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}
.chatbox__dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--nevon-light-blue);
  flex-shrink: 0;
}
.chatbox__tabmore {
  background: none;
  border: none;
  color: var(--nevon-grey);
  cursor: pointer;
  padding: 0 4px;
  font-size: 14px;
  line-height: 1;
}
.chatbox__tabmore:hover {
  color: var(--nevon-navy);
}
.chatbox__tabsall,
/* The recent list opens to the left of its button: at the right end of the tabs a right-opening popover was clipped by the box (0.100.1). */
.chatbox__recent .popover--chat {
  left: auto;
  right: 0;
  max-width: calc(100vw - 72px);
}
.chatbox__recentbtn {
  background: none;
  border: none;
  color: var(--nevon-navy);
  cursor: pointer;
  font-size: var(--eyebrow-size);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  min-height: 32px;
}
.chatbox__recentbtn svg {
  width: 12px;
  height: 12px;
}
.chatbox__rename {
  font: inherit;
  font-size: var(--eyebrow-size);
  border: 1px solid var(--nevon-light-blue);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  width: 140px;
}
.chatbox__thread {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px var(--space-3);
  border-bottom: 1px solid var(--border);
}
.chatbox__list {
  gap: var(--space-4);
}
.chatbox__section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.chatbox__eyebrow {
  font-size: var(--eyebrow-size);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nevon-grey);
}
.chatbox__ini {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--nevon-navy);
  color: var(--nevon-light-blue);
  font-size: var(--eyebrow-size);
  font-weight: var(--fw-bold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.chatbox__decision,
.chatbox__agent {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  background: var(--nevon-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
  cursor: pointer;
  min-height: 56px;
  color: var(--nevon-ink);
}
.chatbox__decision {
  border-color: var(--nevon-light-blue);
  background: rgba(130, 194, 247, 0.1);
}
.chatbox__decision:hover,
.chatbox__agent:hover {
  border-color: var(--nevon-navy);
}
.chatbox__decisiontext,
.chatbox__agenttext {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.chatbox__agentname {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}
.chatbox__agentlast {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chatbox__agentmeta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chatbox__status {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-pill);
  background: var(--nevon-grey);
}
.ctxrow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.ctxchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--nevon-white);
  padding: 0 4px 0 10px;
  min-height: 26px;
  font-size: var(--eyebrow-size);
  color: var(--nevon-navy);
}
.ctxchip--page {
  border-color: var(--nevon-light-blue);
  background: rgba(130, 194, 247, 0.16);
}
.ctxchip--off {
  padding-right: 10px;
  color: var(--nevon-grey);
}
.ctxchip__kind {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
  color: var(--nevon-grey);
}
.ctxchip__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}
.ctxchip__x {
  background: none;
  border: none;
  color: var(--nevon-navy);
  cursor: pointer;
  display: inline-flex;
  padding: 2px;
  border-radius: var(--radius-pill);
}
.ctxchip__x svg {
  width: 12px;
  height: 12px;
}
.ctxchip__use {
  background: none;
  border: none;
  color: var(--nevon-navy);
  cursor: pointer;
  font-size: var(--eyebrow-size);
  text-decoration: underline;
  padding: 0 0 0 6px;
}
.ctxrow__add {
  background: none;
  border: 1px dashed var(--border);
  border-radius: var(--radius-pill);
  color: var(--nevon-navy);
  cursor: pointer;
  font-size: var(--eyebrow-size);
  min-height: 26px;
  padding: 0 10px;
}
.ctxrow__add:hover {
  border-color: var(--nevon-navy);
}
.decision {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.decision__ini {
  margin-top: 2px;
}
.decision__detail {
  white-space: normal;
}
.decision__actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-top: var(--space-1);
}
.askpage__ctx {
  padding: var(--space-2) 0;
}
.cpk {
  position: fixed;
  right: var(--space-5);
  bottom: calc(var(--space-5) + 64px);
  width: min(440px, calc(100vw - 2 * var(--space-4)));
  max-height: min(560px, calc(100vh - 140px));
  background: var(--nevon-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-3);
  /* Above the chat box (31) and its button (30): at 8 the picker opened hidden behind the box (0.113.0). */
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
}
.cpk__head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.cpk__title {
  display: flex;
  flex-direction: column;
  font-weight: var(--fw-bold);
  color: var(--nevon-navy);
}
.cpk__search {
  font: inherit;
  font-size: var(--body-sm-size);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 10px;
}
.cpk__search:focus {
  outline: 2px solid var(--nevon-light-blue);
  border-color: var(--nevon-light-blue);
}
.cpk__list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  min-height: 120px;
}
.cpk__row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  text-align: left;
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  padding: 8px 4px;
  cursor: pointer;
  color: var(--nevon-ink);
  min-height: 44px;
}
.cpk__row--on {
  background: rgba(130, 194, 247, 0.12);
}
.cpk__check {
  color: var(--nevon-navy);
  font-weight: var(--fw-bold);
}
.cpk__label {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cpk__label > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cpk__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: var(--space-2);
}
/* The document pane (0.125.0): left of the chat box, like the Claude app's. */
.fpv {
  position: fixed;
  top: 72px;
  bottom: var(--space-4);
  left: var(--space-4);
  width: min(760px, calc(100vw - 2 * var(--space-4)));
  z-index: 41;
  display: flex;
  flex-direction: column;
  background: var(--nevon-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-3);
}
.fpv__head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  border-bottom: 1px solid var(--border);
}
.fpv__title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  font-weight: var(--fw-bold);
  color: var(--nevon-navy);
}
.fpv__title > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fpv__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: var(--space-4);
}
.fpv__text {
  white-space: pre-wrap;
  font-size: var(--body-sm-size);
  line-height: 1.5;
  color: var(--nevon-ink);
}
.fpv__frame {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: none;
}
.fpv__img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.fpv__note {
  padding-top: var(--space-3);
}
.ctxchip__open {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
}
@media (max-width: 767px) {
  .fpv {
    top: var(--space-2);
    bottom: var(--space-2);
    left: var(--space-2);
    width: calc(100vw - 2 * var(--space-2));
  }
}
/* OneDrive and SharePoint browser (ADR 0116) in the picker and the project sources. */
.drv {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 0;
}
.drv__crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 6px;
  font-size: var(--body-sm-size);
}
.drv__crumb {
  background: none;
  border: none;
  padding: 2px 0;
  color: var(--nevon-navy);
  font: inherit;
  cursor: pointer;
}
.drv__crumb:hover {
  text-decoration: underline;
}
.drv__list {
  display: flex;
  flex-direction: column;
}
.drv__row {
  cursor: default;
}
.drv__open {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  min-width: 0;
}
.drv__open:hover .cpk__label > span:first-child {
  color: var(--nevon-navy);
  text-decoration: underline;
}
.drv__addhere {
  align-self: flex-start;
}
.drv__addhere--on {
  background: var(--nevon-navy);
  color: var(--nevon-white);
}
.drv__note {
  padding: 8px 4px;
}
.cpk--sources {
  max-height: min(680px, calc(100vh - 120px));
}
.cpk__sources {
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
@media (max-width: 600px) {
  .chatfab__label {
    display: none;
  }
  .chatfab {
    padding: 0 16px;
  }
  .chatbox--big {
    width: auto !important;
  }
  .cpk {
    right: var(--space-2);
    left: var(--space-2);
    width: auto;
  }
}

/* Design parity with Claude Design v8 (2026-10-12, Andreas: take the design as it is): the floating
   button, the bubble, the decisions card. Values are the export's inline styles, not approximations. */
.chatfab {
  width: auto;
  height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  right: 24px;
  bottom: 24px;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 28px -10px rgba(5, 26, 77, 0.55);
  z-index: 30;
}
.chatfab svg {
  width: 20px;
  height: 20px;
}
.chatfab:hover {
  background: #0a2a78;
  color: var(--nevon-white);
}
.chatbox {
  right: 24px;
  bottom: 92px;
  width: min(400px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 130px));
  border-radius: 6px;
  border: 1px solid #e6e8ed;
  box-shadow: 0 24px 60px -20px rgba(5, 26, 77, 0.35);
  z-index: 31;
}
.chatbox--big {
  /* No important here: the grip sets an inline width in both sizes (0.101.2). */
  width: min(880px, calc(100vw - 48px));
  height: calc(100vh - 120px);
}
.chatbox__head {
  background: #051a4d;
  color: #ffffff;
  padding: 10px 10px 10px 16px;
  gap: 10px;
  min-height: 52px;
  box-sizing: border-box;
  border-bottom: none;
}
.chatbox__spark svg {
  width: 20px;
  height: 20px;
}
.chatbox__modes {
  flex: 1;
  max-width: 220px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}
.chatbox__mode {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
}
.chatbox__headbtn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 0 10px;
  min-height: 32px;
  font-size: 12px;
  font-weight: 700;
}
.chatbox__iconbtn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 20px;
  line-height: 1;
}
.chatbox__tabbar {
  background: #f2f2f2;
  border-bottom: 1px solid #e6e8ed;
  padding: 6px 8px 0;
  gap: 4px;
}
.chatbox__tabs {
  gap: 4px;
}
.chatbox__tab {
  height: 32px;
  min-height: 32px;
  /* Tabs share the row (0.101.0): a tab shrinks to its minimum before anything leaves the row. */
  flex: 1 1 120px;
  min-width: 56px;
  max-width: 180px;
  padding: 0 4px 0 10px;
  border-radius: 6px 6px 0 0;
  font-size: 12px;
  font-weight: 400;
  color: #0b1226;
  gap: 4px;
}
.chatbox__tab--on {
  background: #ffffff;
  color: #051a4d;
  font-weight: 700;
  border-color: #e6e8ed;
}
.chatbox__dot {
  width: 6px;
  height: 6px;
}
.chatbox__tabmore {
  width: 22px;
  height: 22px;
  padding: 0;
  color: #808285;
  border-radius: 4px;
}
.chatbox__tabsall,
.chatbox__recentbtn {
  color: #808285;
  font-size: 12px;
  min-height: 26px;
  padding: 0 6px;
  align-self: center;
}
.chatbox__recentbtn {
  color: #051a4d;
}
.popover--tab {
  width: 240px;
  padding: 6px;
  gap: 0;
  /* The menu sits inside the tab and would inherit its nowrap, its weight and its cursor (0.101.1). */
  white-space: normal;
  font-weight: 400;
  text-align: left;
  cursor: default;
  overflow-x: hidden;
}
.popover--tab .popover__item {
  min-height: 36px;
  font-size: 13px;
}
.popover--tab .popover__text {
  font-size: 12px;
  color: #808285;
  padding: 6px 10px 8px;
}
/* The context row sits between the tabs and the messages in Claude mode, in the footer of an agent topic (as in v8). */
.chatbox__ctx {
  flex-shrink: 0;
  padding: 10px 16px;
  border-bottom: 1px solid #e6e8ed;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.chatbox__ctx .ctxrow {
  gap: 6px;
}
.ctxrow__label {
  font-size: 12px;
  color: #808285;
}
.ctxchip {
  gap: 4px;
  border: none;
  background: rgba(130, 194, 247, 0.3);
  color: #051a4d;
  border-radius: 999px;
  padding: 0 2px 0 10px;
  min-height: 26px;
  font-size: 12px;
  box-sizing: border-box;
}
.ctxchip__kind {
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  color: #051a4d;
  white-space: nowrap;
}
.ctxchip--page {
  background: #051a4d;
  color: #ffffff;
  padding: 0 4px 0 10px;
}
.ctxchip--page .ctxchip__kind {
  color: #ffffff;
}
.ctxchip--page .ctxchip__x {
  color: #ffffff;
}
.ctxchip__x {
  width: 22px;
  height: 22px;
  padding: 0;
  color: #051a4d;
  justify-content: center;
}
.ctxchip--off {
  background: none;
  color: #0b1226;
  padding: 0;
  min-height: 0;
}
.ctxchip__use {
  font-size: 12px;
  color: #051a4d;
  text-underline-offset: 3px;
  padding: 0 0 0 6px;
}
.ctxrow__add {
  border: 1px dashed #808285;
  background: #ffffff;
  color: #051a4d;
  border-radius: 999px;
  min-height: 26px;
  padding: 0 10px;
  font-size: 12px;
  gap: 4px;
}
.chatbox__turns {
  padding: 16px;
  gap: 14px;
}
.chat__turn {
  max-width: 86%;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1.5;
}
.chat__turn--user {
  background: #051a4d;
  color: #ffffff;
}
.chat__turn--assistant {
  background: #f2f2f2;
  color: #0b1226;
  border: none;
}
.chatbox__empty .popover__text {
  font-size: 12px;
  color: #808285;
  line-height: 1.5;
}
.chatbox__empty .chip {
  font-size: 12px;
  padding: 0 10px;
  min-height: 28px;
  border: 1px solid #e6e8ed;
  background: #ffffff;
  color: #051a4d;
}
.chat__card {
  border: 1px solid #82c2f7;
  background: rgba(130, 194, 247, 0.1);
  border-radius: 6px;
  padding: 10px 12px;
  gap: 8px;
}
.chat__cardhead strong {
  font-size: 13px;
  color: #0b1226;
}
.chat__carddetail {
  background: #ffffff;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #0b1226;
}
.chat__cardactions {
  justify-content: flex-end;
  gap: 6px;
}
.chatbox__foot {
  border-top: 1px solid #e6e8ed;
  padding: 10px 12px 12px;
  gap: 8px;
}
.chatbox__input {
  border: 1px solid #e6e8ed;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #0b1226;
  min-height: 44px;
  max-height: 120px;
}
.chatbox__send .btn {
  min-height: 44px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
}
.chatbox__list {
  padding: 14px 16px;
  gap: 14px;
}
.chatbox__eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #808285;
  padding-bottom: 6px;
}
.chatbox__agent {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  border: none;
  border-top: 1px solid #e6e8ed;
  border-radius: 0;
  background: none;
  padding: 10px 4px;
  min-height: 56px;
}
.chatbox__agent:hover {
  background: #fafbfc;
  border-color: #e6e8ed;
}
.chatbox__agent .chatbox__ini {
  width: 34px;
  height: 34px;
  font-size: 14px;
}
.chatbox__agentname strong {
  font-size: 14px;
  font-weight: 700;
  color: #051a4d;
}
.chatbox__agentname .row__meta,
.chatbox__agentlast {
  font-size: 12px;
}
.chatbox__agentlast {
  color: #0b1226;
}
.chatbox__status {
  width: 8px;
  height: 8px;
}
.chatbox__decision {
  border: 1px solid #82c2f7;
  background: rgba(130, 194, 247, 0.1);
  border-radius: 6px;
  padding: 10px 12px;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  min-height: 0;
}
.chatbox__decision .chatbox__ini {
  width: 26px;
  height: 26px;
  font-size: 12px;
}
.chatbox__thread {
  padding: 10px 12px;
  gap: 10px;
  border-bottom: 1px solid #e6e8ed;
}
.chatbox__thread .chatbox__ini {
  width: 32px;
  height: 32px;
  font-size: 14px;
}
.chatbox__thread strong {
  font-size: 14px;
  color: #051a4d;
}
/* Decisions waiting on the start page: the v8 card (white, navy border, head with title and meta, rows with a tag). */
#tile-decisions {
  border-color: #051a4d;
  padding: 0;
  gap: 0;
}
#tile-decisions .tile__head {
  padding: 10px 10px 10px 18px;
}
#tile-decisions .tile__body {
  border-top: 1px solid #e6e8ed;
  padding: 0;
  gap: 0;
}
.decision {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 14px;
  padding: 10px 10px 10px 18px;
  border-top: 1px solid #e6e8ed;
  align-items: center;
}
.decision:first-child {
  border-top: none;
}
.decision__tag {
  justify-self: start;
  font-size: 12px;
  font-weight: 700;
  color: #051a4d;
  background: rgba(130, 194, 247, 0.3);
  border-radius: 999px;
  padding: 0 9px;
  line-height: 22px;
  white-space: nowrap;
}
.decision .row__title {
  font-size: 13px;
  color: #0b1226;
  line-height: 1.35;
}
.decision .row__meta {
  font-size: 12px;
  color: #808285;
  line-height: 1.4;
}
.decision__actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
  padding-top: 0;
}
.decision__actions .btn {
  font-size: 12px;
  font-weight: 700;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 6px;
}
#tile-decisions .tile__empty,
#tile-decisions .state {
  padding: 12px 18px;
}
@media (max-width: 600px) {
  .chatbox {
    right: 0;
    left: 0;
    bottom: 0;
    width: auto;
    height: 82vh;
    border-radius: 12px 12px 0 0;
  }
  .chatfab {
    right: 16px;
  }
}

/* Layout v3 (ADR 0074, design round 6): the home page as the design draws it. A card row above the grid,
   the 12-column grid with 320 px rows and 20 px gaps, the lower sections with an eyebrow label, folded
   tiles as chips. Values from the v8 export. */
.home {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hsection {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hsection__label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #808285;
  padding-top: 6px;
}
.hgrid {
  display: grid;
  gap: 20px;
  align-items: stretch;
}
.hcollapsed {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.tile--grid {
  overflow-y: auto;
  scrollbar-width: thin;
  position: relative;
  background: #ffffff;
  border: 1px solid #e6e8ed;
  border-radius: 6px;
  padding: 16px 18px;
  gap: 10px;
  min-width: 0;
  box-sizing: border-box;
  min-height: 0;
}
.tile--card {
  background: #ffffff;
  border-radius: 6px;
}
.tile__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.tile__title {
  font-size: 16px;
  font-weight: 700;
  color: #051a4d;
  flex: 1;
  min-width: 0;
  margin: 0;
}
.tile__headright {
  display: flex;
  gap: 10px;
  align-items: center;
}
.tile__meta {
  font-size: 12px;
  color: #808285;
}
.tile__link {
  font-size: 12px;
  color: #051a4d;
}
.tile__fold {
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  color: #051a4d;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.tile__fold svg {
  width: 14px;
  height: 14px;
  transform: rotate(180deg);
}
/* Inner lists scroll inside the cell; the board fills its tile. */
.tile--grid .tile__scroll,
.tile--grid .tile__scroll--side,
.tile--grid .board {
  max-height: var(--tile-h, 240px);
}
.tile--grid.tile--board .board {
  --board-h: var(--tile-h, 240px);
}
.sticky {
  background: rgba(130, 194, 247, 0.16);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: #0b1226;
}
.sticky--unread {
  border-left: 3px solid #051a4d;
}
.sticky__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.stickies {
  gap: 8px;
}
/* The header after v8: 56 px navy, the search box in the middle, bell and avatar right. */
.header__app {
  border-radius: 6px;
  padding: 0 10px;
  min-height: 34px;
  font-size: 13px;
  color: #ffffff;
  background: none;
  border: none;
  cursor: pointer;
}
.header__app--active {
  background: rgba(255, 255, 255, 0.14);
}
.header__searchbox {
  display: flex;
  flex: 0 1 440px;
  /* The box never shrinks below a usable field; below that the fit makes it an icon (ADR 0151). */
  min-width: 220px;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  height: 36px;
  margin: 0;
}
.header__searchgo {
  background: none;
  border: none;
  color: #ffffff;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.header__searchinput {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  height: 34px;
  padding: 0 10px 0 0;
}
.header__searchinput::placeholder {
  color: rgba(255, 255, 255, 0.7);
}
.header__searchinput:focus {
  outline: none;
}
@media (max-width: 767px) {
  .tile--grid {
    overflow: visible;
  }
  .tile--grid .tile__scroll,
  .tile--grid .tile__scroll--side {
    max-height: 320px;
  }
}

/* Parity pass 1 (ADR 0075, design round 6): the header's navigation, favourites, source switch, palette hint
   and help; the Today tile's deadlines and "Prepare"; the decisions card's filters and buttons; the heading
   before the lower rows. Values from the v8 export. */
.header__app--later {
  color: rgba(255, 255, 255, 0.45);
  cursor: default;
}
.header__app--later:hover {
  background: none;
}
.header__divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.25);
  margin: 0 4px;
  flex-shrink: 0;
}
.header__fav {
  border-radius: 6px;
  padding: 0 8px;
  min-height: 30px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #82c2f7;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.header__fav:hover {
  background: rgba(255, 255, 255, 0.1);
}
.header__fav--active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}
.header__favs {
  display: flex;
  flex: none;
  align-items: center;
  gap: 2px;
}
.header__src {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font: inherit;
  font-size: 12px;
  height: 36px;
  padding: 0 8px 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}
.header__src svg {
  width: 12px;
  height: 12px;
}
.header__searchbox .menu-host {
  display: contents;
}
.header__kbd {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.8);
  font: inherit;
  font-size: 11px;
  line-height: 18px;
  padding: 0 6px;
  margin-right: 8px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.header__kbd:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.7);
}
.popover--src {
  width: 220px;
  padding: 6px;
  gap: 0;
  left: 0;
  right: auto;
  top: 44px;
}
.popover--src .popover__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.popover--src .popover__check {
  width: 14px;
  display: inline-flex;
  color: #051a4d;
}
.popover--src .popover__item--later {
  color: #808285;
}
.popover--help {
  width: 360px;
}
.popover--help .popover__text {
  font-size: 13px;
  line-height: 1.5;
}
.help__list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.5;
  color: #0b1226;
}
.help__eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #808285;
}
.help__kbd {
  display: inline-block;
  border: 1px solid #e6e8ed;
  border-radius: 4px;
  padding: 0 5px;
  font-size: 11px;
  line-height: 18px;
  margin-right: 6px;
  color: #051a4d;
}
.header__help {
  display: flex;
}
/* A tile link rendered as the design's bordered pill button (Free/busy, Open vault, New). */
.tile__link--btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e6e8ed;
  border-radius: 6px;
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: #051a4d;
  background: #ffffff;
}
.tile__link--btn:hover {
  text-decoration: none;
  border-color: #051a4d;
}
.tile__link--btn svg {
  width: 14px;
  height: 14px;
}
/* Today: the deadlines block above the meetings, "Prepare" on the next meeting. */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #808285;
  margin-top: 4px;
}
.dl {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dl__row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 5px 6px;
  border-radius: 6px;
  background: none;
  border: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
  color: #0b1226;
}
.dl__row:hover {
  background: #fafbfc;
}
.dl__when {
  font-size: 12px;
  font-weight: 700;
  color: #051a4d;
  white-space: nowrap;
}
.dl__when--urgent {
  color: #c8322b;
}
.dl__label {
  font-size: 13px;
  line-height: 1.4;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* The mandate in a list line is the bold codename as text (design v8, 0.120.0); filled chips are for the inbox and the to-do cards. */
.dl__chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #051a4d;
  background: none;
  padding: 0;
  line-height: 18px;
  margin-right: 6px;
  vertical-align: 1px;
}
.row__prep {
  font-size: 12px;
  font-weight: 700;
  color: #051a4d;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
  align-self: center;
}
.row__prep:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.today__cal {
  font-size: 12px;
  color: #051a4d;
  text-decoration: underline;
  text-underline-offset: 3px;
  align-self: flex-start;
}
/* Decisions card: filters in the head, three columns per row, the buttons at the right. */
.decision__filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.decision__filter {
  font-size: 12px;
  font-weight: 700;
  padding: 0 10px;
  min-height: 26px;
  border-radius: 999px;
  border: 1px solid #e6e8ed;
  background: #ffffff;
  color: #051a4d;
  cursor: pointer;
  white-space: nowrap;
}
.decision__filter--on {
  background: #051a4d;
  border-color: #051a4d;
  color: #ffffff;
}
.decision__filter--later {
  color: #808285;
  cursor: default;
}
/* Decisions by project (0.104.0): a head per project, the rows under it. */
.decision__project {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
}
.decision__project:last-child {
  margin-bottom: 0;
}
.decision__projecthead {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  /* The rows of the card start 18 px in (.decision); the head lines up with them (0.119.0). */
  padding: 10px 18px 4px;
}
.decision__projectname {
  font-size: var(--eyebrow-size);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nevon-navy);
}
@media (min-width: 768px) {
  .decision {
    grid-template-columns: 112px minmax(0, 1fr) auto;
    gap: 6px 14px;
  }
  .decision__actions {
    grid-column: auto;
    justify-self: end;
  }
}
.decision__more {
  background: none;
  border: none;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: #051a4d;
  cursor: pointer;
  padding: 10px 18px;
  text-align: left;
  border-top: 1px solid #e6e8ed;
}
.decision__more:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* The heading before the lower rows ("More from the Hub"). */
.hmore {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 8px;
}
.hmore__title {
  font-size: 20px;
  font-weight: 700;
  color: #051a4d;
  letter-spacing: -0.01em;
  margin: 0;
}
.hmore__sub {
  font-size: 13px;
  color: #808285;
}
/* The favourite star on the mandate page. */
.fav-btn svg {
  width: 14px;
  height: 14px;
}
.fav-btn--on svg {
  fill: currentColor;
}

/* The Agents page (ADR 0076, design round 6): approvals, the team with a detail, the log. */
.agents {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.agents__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.page__actions {
  display: flex;
  /* On a phone the buttons wrap instead of pushing the page wider (0.165.0: the agents pop-up button). */
  flex-wrap: wrap;
  max-width: 100%;
  gap: 8px;
  align-items: center;
}
.agents__approvals .tile__head {
  align-items: baseline;
}
.agents__none {
  padding: 6px 0;
}
.agents__org .org {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.org__person {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--nevon-white);
  font-weight: 600;
  color: var(--nevon-navy);
}
.org__line {
  width: 1px;
  height: 18px;
  background: var(--border);
}
.org__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
  width: 100%;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}
.org__agent {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--nevon-white);
  cursor: pointer;
  font: inherit;
}
.org__agent--on {
  border-color: var(--nevon-navy);
  box-shadow: 0 0 0 1px var(--nevon-navy) inset;
}
.org__agenthead {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.org__name {
  font-weight: 700;
  color: var(--nevon-navy);
  flex: 1;
}
.org__budget {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.org__budget::before {
  content: "";
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
}
.org__budgetbar {
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  border-radius: 2px;
  background: var(--nevon-light-blue);
}
.org__counts {
  display: flex;
  gap: var(--space-3);
  font-size: var(--eyebrow-size);
  color: var(--nevon-ink);
}
.org__wakes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.org__handovers {
  margin-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.agents__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
@media (min-width: 900px) {
  .agents__grid {
    grid-template-columns: 300px minmax(0, 1fr);
  }
}
.agents__team {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.agent-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  background: #ffffff;
  border: 1px solid #e6e8ed;
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.agent-card:hover {
  border-color: #051a4d;
}
.agent-card--on {
  border-color: #051a4d;
  box-shadow: inset 0 0 0 1px #051a4d;
}
.agent-card__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.agent-card__name {
  font-size: 13px;
  font-weight: 700;
  color: #051a4d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.agent__ini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #051a4d;
  color: #82c2f7;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.agent__ini--lg {
  width: 44px;
  height: 44px;
  font-size: 15px;
}
.agent__ini--sm {
  width: 22px;
  height: 22px;
  font-size: 10px;
}
.agent__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #808285;
  white-space: nowrap;
}
.agent__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #808285;
}
.agent__status--ready .agent__dot {
  background: #2e8bd2;
}
.agent__status--throttled .agent__dot {
  background: #c8322b;
}
.agents__detail {
  gap: 14px;
}
.agents__detailhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.agents__who {
  display: flex;
  align-items: center;
  gap: 12px;
}
.agents__name {
  font-size: 16px;
  font-weight: 700;
  color: #051a4d;
}
.agents__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #0b1226;
}
.agents__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.agents__stat {
  border: 1px solid #e6e8ed;
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.agents__statv {
  font-size: 18px;
  font-weight: 700;
  color: #051a4d;
}
.agents__rights {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.agents__right {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding: 6px 0;
  border-top: 1px solid #e6e8ed;
}
.agents__right:first-child {
  border-top: none;
}
.agents__runs {
  display: flex;
  flex-direction: column;
}
.agents__run {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: baseline;
  font-size: 13px;
  padding: 6px 0;
  border-top: 1px solid #e6e8ed;
}
.agents__run:first-child {
  border-top: none;
}
.agents__outcome {
  font-size: 12px;
  font-weight: 700;
  color: #051a4d;
  white-space: nowrap;
}
.agents__outcome--failed {
  color: #c8322b;
}
.agents__outcome--partial {
  color: #8a66d0;
}
.agents__outcome--running {
  color: #808285;
}
.agents__cost {
  text-align: right;
  white-space: nowrap;
}
.agents__log {
  gap: 12px;
}
.agents__budget {
  height: 6px;
  border-radius: 3px;
  background: #f2f2f2;
  overflow: hidden;
}
.agents__budgetfill {
  height: 100%;
  background: #051a4d;
}
.agents__table {
  display: flex;
  flex-direction: column;
}
.agents__trow {
  display: grid;
  grid-template-columns: 120px 200px minmax(0, 1fr) 160px 90px;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  padding: 8px 0;
  border-top: 1px solid #e6e8ed;
}
.agents__trow--head {
  border-top: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #808285;
}
.agents__tagent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 767px) {
  .agents__trow {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .agents__trow--head {
    display: none;
  }
  .agents__run {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .agents__stats {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Parity pass 2 (ADR 0077, design round 6): the inbox's navy button and switch, the time at the right, the
   board's "New" input, the mandate cards, the sticky grid, the notes ask box, the waiting and week tiles. */
.tile__link--primary {
  background: #051a4d;
  border-color: #051a4d;
  color: #ffffff;
}
.tile__link--primary:hover {
  background: #0a2a78;
  border-color: #0a2a78;
}
.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #051a4d;
  cursor: pointer;
  user-select: none;
}
.switch__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.switch__track {
  position: relative;
  width: 30px;
  height: 16px;
  border-radius: 999px;
  background: #c9cdd4;
  transition: background 150ms;
  flex-shrink: 0;
}
.switch__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  transition: left 150ms;
}
.switch--on .switch__track {
  background: #051a4d;
}
.switch--on .switch__knob {
  left: 16px;
}
.switch__input:focus-visible + .switch__track {
  outline: 2px solid #82c2f7;
  outline-offset: 2px;
}
.row__when {
  flex-shrink: 0;
  font-size: 12px;
  color: #808285;
  white-space: nowrap;
  align-self: flex-start;
  padding-top: 2px;
}
.row__chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}
/* The mail row of design v8 (0.119.0): sender, subject, preview, chips; unread
   is bold plus a 3 px navy bar at the left edge, read rows keep the space so
   the text never jumps. */
.row.row--mail {
  padding: 10px 12px 10px 14px;
  border-left: 3px solid transparent;
  gap: 12px;
}
.row.row--mail.row--unread {
  border-left-color: var(--nevon-navy);
}
/* Each mail row sits in its own .rowwrap (snooze button), so :first-child would drop every line; the line goes between wraps. */
.rowwrap + .rowwrap > .row--mail {
  border-top: 1px solid var(--border);
}
.row--mail .row__sender {
  font-size: var(--body-sm-size);
  color: var(--nevon-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row--mail .row__title {
  color: var(--nevon-ink);
}
.row--mail.row--unread .row__sender,
.row--mail.row--unread .row__title {
  font-weight: var(--fw-bold);
  color: var(--nevon-navy);
}
.row--mail .row__preview {
  color: var(--nevon-grey);
}
.row--mail .row__chips {
  margin-top: 4px;
}
.row--mail .row__mandate {
  margin-right: 0;
  padding: 1px 8px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.chip--att {
  color: #808285;
}
.chip--att svg {
  width: 12px;
  height: 12px;
}
.todos__input--new {
  border: 1px dashed #e6e8ed;
  background: #fafbfc;
  font-size: 12px;
  min-height: 34px;
  width: 100%;
  box-sizing: border-box;
}
.todos__input--new:focus {
  border-style: solid;
  background: #ffffff;
}
.board__add {
  margin-top: 6px;
  display: flex;
  gap: 6px;
  align-items: center;
}
/* The add button next to a column's "New" input (0.150.0): the way to add on a phone, a click on the PC. */
.board__addbtn {
  flex: none;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e6e8ed;
  border-radius: 8px;
  background: #ffffff;
  color: var(--nevon-navy);
  cursor: pointer;
}
.board__addbtn:hover,
.board__addbtn:focus-visible {
  border-color: var(--nevon-navy);
}
.board__addbtn svg {
  width: 14px;
  height: 14px;
}
.mandate-minis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.mandate-mini {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  background: #ffffff;
  border: 1px solid #e6e8ed;
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  min-width: 0;
}
.mandate-mini:hover {
  border-color: #051a4d;
}
.mandate-mini__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.mandate-mini__ref {
  font-size: 12px;
  font-weight: 700;
  color: #808285;
  letter-spacing: 0.04em;
}
.mandate-mini__name {
  font-size: 14px;
  font-weight: 700;
  color: #051a4d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mandate-mini__due {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid #e6e8ed;
  min-width: 0;
}
.mandate-mini__due .row__meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stickies--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.stickies--grid .sticky {
  min-height: 96px;
  background: #fff6c7;
  justify-content: space-between;
}
.stickies--grid .sticky--unread {
  border-left: none;
  box-shadow: inset 0 0 0 2px #051a4d;
}
.stickies--grid .popover__text {
  grid-column: 1 / -1;
}
.notes__ask {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid #e6e8ed;
  border-radius: 6px;
  padding: 8px 10px;
  background: #fafbfc;
}
.notes__asktag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #051a4d;
}
.notes__asktag svg {
  width: 14px;
  height: 14px;
}
.notes__askinput {
  font: inherit;
  font-size: 13px;
  border: none;
  background: transparent;
  resize: none;
  min-width: 0;
  padding: 0;
}
.notes__askinput:focus {
  outline: none;
}
.week__day {
  font-size: 12px;
  font-weight: 700;
  color: #051a4d;
  padding-top: 8px;
}
.week__day:first-of-type {
  padding-top: 0;
}

/* Flightdeck phases on the mandate cards and page (ADR 0078). */
.phases {
  display: flex;
  gap: 3px;
  margin-top: 4px;
}
.phases--lg {
  gap: 6px;
}
.phases__bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #e6e8ed;
  overflow: hidden;
  position: relative;
}
.phases--lg .phases__bar {
  height: 8px;
}
.phases__fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: #051a4d;
}
.phases__labels {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.phases__label {
  flex: 1;
  font-size: 11px;
  color: #808285;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.phases__label--current {
  color: #051a4d;
  font-weight: 700;
}
.mandate-mini__wait {
  font-size: 12px;
  color: #c8322b;
  font-weight: 700;
}
.dl__row--static {
  cursor: default;
}
.dl__row--static:hover {
  background: none;
}

/* Agent profiles (ADR 0080): the profile line and the approval panel. */
.agents__profile {
  font-size: 12px;
  color: #808285;
}
.agents__differs {
  color: #c8322b;
  font-weight: 700;
}
.profile__text {
  width: 100%;
  min-height: 320px;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid #e6e8ed;
  border-radius: 6px;
  padding: 10px 12px;
  box-sizing: border-box;
  resize: vertical;
}
.profile__text:focus {
  outline: none;
  border-color: #051a4d;
}
.profile__status {
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #fafbfc;
  border: 1px solid #e6e8ed;
}
.profile__status--differs {
  border-color: #c8322b;
  color: #c8322b;
}
.profile__issues {
  margin: 0;
  padding-left: 18px;
  color: #c8322b;
  font-size: 13px;
}
.profile__pillars {
  white-space: pre-wrap;
  font-size: 12px;
  color: #808285;
  max-height: 200px;
  overflow: auto;
  border-top: 1px solid #e6e8ed;
  padding-top: 8px;
}
.profile__version {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  padding: 6px 0;
  border-top: 1px solid #e6e8ed;
}

/* The Vault page (ADR 0082). */
.vault {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.vault__searchform {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e6e8ed;
  border-radius: 6px;
  padding: 0 10px;
  background: #ffffff;
  min-width: 260px;
}
.vault__search {
  border: none;
  font: inherit;
  font-size: 13px;
  height: 34px;
  min-width: 0;
  flex: 1;
  background: transparent;
}
.vault__search:focus {
  outline: none;
}
.vault__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
@media (min-width: 1000px) {
  .vault__grid {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}
.vault__browser {
  --tile-h: 640px;
}
.vault__browser .tile__scroll,
.vault__browser .tile__scroll--side {
  max-height: 640px;
}
.vault__side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Edit mode of the start page (ADR 0083): the banner, the tile chrome, the drop zones. */
.editbanner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #ffffff;
  border: 1px solid #051a4d;
  border-radius: 6px;
  padding: 12px 16px;
}
.editbanner__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.editbanner__title {
  font-size: 14px;
  font-weight: 700;
  color: #051a4d;
}
.editbanner__hidden {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  flex-basis: 100%;
}
.tile--editing {
  cursor: grab;
  outline: 1px dashed #82c2f7;
  outline-offset: 2px;
}
.tile--dragging {
  opacity: 0.5;
}
.tile--over {
  outline: 2px solid #051a4d;
}
.tile__editbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 8px;
  margin: -8px -10px 6px;
  background: #f2f2f2;
  border-radius: 6px;
  font-size: 12px;
}
.tile__handle {
  font-weight: 700;
  color: #051a4d;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tile__sizes {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.tile__sizesep {
  width: 1px;
  height: 16px;
  background: #e6e8ed;
  margin: 0 4px;
}
.hgrid--editing {
  min-height: 80px;
  border: 1px dashed #e6e8ed;
  border-radius: 6px;
  padding: 6px;
}
.hgrid--over {
  border-color: #051a4d;
  background: #fafbfc;
}
.hgrid__empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #808285;
  font-size: 13px;
  min-height: 68px;
}

/* The command palette (ADR 0084). */
.palette__scrim {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 38, 0.35);
  z-index: 60;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 16px 16px;
}
.palette {
  width: 620px;
  max-width: 100%;
  max-height: 70vh;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(11, 18, 38, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.palette__search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #e6e8ed;
  color: #808285;
}
.palette__input {
  flex: 1;
  min-width: 0;
  border: none;
  font: inherit;
  font-size: 15px;
  height: 32px;
  background: transparent;
}
.palette__input:focus {
  outline: none;
}
.palette__list {
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.palette__head {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #808285;
  padding: 8px 10px 2px;
}
.palette__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  cursor: pointer;
  color: #0b1226;
}
.palette__item--on {
  background: #f2f2f2;
}
.palette__label {
  font-size: 14px;
  font-weight: 700;
  color: #051a4d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.palette__sub {
  font-size: 12px;
  color: #808285;
  white-space: nowrap;
}
.palette__none {
  padding: 16px;
  color: #808285;
  font-size: 13px;
  text-align: center;
}
.palette__foot {
  display: flex;
  gap: 14px;
  padding: 8px 14px;
  border-top: 1px solid #e6e8ed;
  font-size: 12px;
  color: #808285;
}
.palette__key {
  display: inline-flex;
  align-items: center;
}

/* Files in chats (ADR 0085). */
.cpk__file {
  display: none;
}
.cpk__upload {
  display: inline-flex;
}
.chatbox--drop {
  outline: 2px dashed #051a4d;
  outline-offset: -4px;
}
a.ctxchip__label {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.note__versions {
  margin-bottom: var(--space-3);
}

/* @-mentions (0.113.0): the colleague list under the composer, and the mention mark on a row. */
.chatbox__mentions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 0 6px;
}
.chatbox__mentions:empty {
  display: none;
}
.decision__tag--mention {
  background: #82c2f7;
  color: #051a4d;
}
.chatbox__composer {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.chatbox__composer .chatbox__input {
  width: 100%;
  box-sizing: border-box;
}

/* A branched chat (ADR 0102 slice two): where it came from, above the first message. */
.chat__branch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px dashed #e6e8ed;
  border-radius: 6px;
  margin-bottom: 8px;
}

/* Documents an answer created (ADR 0108): download chips under the answer. */
.chat__files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 4px;
}
.chat__file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #e6e8ed;
  border-radius: 6px;
  background: #ffffff;
  color: #051a4d;
  text-decoration: none;
  font-size: 13px;
}
.chat__file:hover {
  border-color: #82c2f7;
}
.chat__filename {
  font-weight: 600;
}

/* The greeting row of design v8 (0.121.0): the greeting at the left, the
   Urgent panel taking the rest of the row; on a phone the panel wraps below. */
.page__greet .page__title {
  font-size: 30px;
  letter-spacing: -0.012em;
}
.urgent {
  flex: 1 1 520px;
  max-width: 1040px;
  min-width: 0;
  background: #ffffff;
  border: 1px solid var(--nevon-light-blue);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.urgent__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 16px;
  background: var(--nevon-light-blue);
  color: var(--nevon-navy);
}
.urgent__title {
  font-size: 14px;
  font-weight: 700;
}
.urgent__count {
  font-size: 12px;
}
.urgent__rows {
  display: flex;
  flex-direction: column;
}
.urgent__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 16px;
  border-top: 1px solid var(--border);
}
.urgent__row:first-child {
  border-top: none;
}
.urgent__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--nevon-light-blue);
  flex-shrink: 0;
}
.urgent__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.urgent__text {
  font-size: 13px;
  color: var(--nevon-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.urgent__text strong {
  color: var(--nevon-navy);
}
.urgent__actions {
  display: inline-flex;
  gap: 6px;
  flex-shrink: 0;
}
.urgent__more {
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--nevon-navy);
  text-align: left;
  padding: 8px 16px;
  cursor: pointer;
}
.urgent__more:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.urgent__empty {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--nevon-grey);
}
.urgent .bell__form {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
/* Open | Sent (0.142.0): the segmented switch on the light-blue head, a done note greyed, the reference above the form. */
.urgent__seg .seg__btn {
  min-height: 26px;
  padding: 2px 10px;
}
.urgent__row--done .urgent__dot {
  background: var(--border);
}
.urgent__row--done .urgent__text {
  color: var(--nevon-grey);
}
.urgent__quote {
  margin-bottom: 6px;
}
/* The connection state as two dots in the header (0.121.0). */
.header__conn {
  gap: 4px;
}
.header__conn .dot {
  width: 7px;
  height: 7px;
}
/* A connection needs attention (0.124.0): the dots stay, the button is ringed in status red. */
.header__conn--attention {
  box-shadow: inset 0 0 0 1.5px var(--status-alert);
}
@media (max-width: 767px) {
  .urgent__row {
    flex-wrap: wrap;
  }
  .urgent__actions {
    width: 100%;
    justify-content: flex-end;
  }
}
.page__greet {
  align-self: flex-start;
  padding-top: 6px;
}

/* My mandates as a list (design v8, D8, 0.122.0): codename and ref, phase
   "3/6" at the right, the phase bars, the next step and the next milestone. */
.pipes {
  display: flex;
  flex-direction: column;
}
.pipe {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0;
  border: none;
  border-top: 1px solid var(--border);
  background: none;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  width: 100%;
}
.pipe:first-child {
  border-top: none;
}
.pipe:hover .pipe__name {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.pipe__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.pipe__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--nevon-navy);
  letter-spacing: 0.02em;
}
.pipe__ref {
  font-size: 12px;
  color: var(--nevon-grey);
}
.pipe__line {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 13px;
  color: var(--nevon-ink);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pipe__label {
  color: var(--nevon-grey);
  flex-shrink: 0;
}
.pipe .phases {
  width: 100%;
}

/* Waiting on you, as design v8 lists it (D9, 0.123.0): mandate, kind and age,
   the cockpit path at the right, the thing itself below. */
.cwait {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.cwait:first-child {
  border-top: none;
}
.cwait__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.cwait__name {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--nevon-navy);
  cursor: pointer;
}
.cwait__name:hover,
.cwait__link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cwait__link {
  font-size: 12px;
  color: var(--nevon-navy);
  white-space: nowrap;
}
.cwait__text {
  font-size: 13px;
  color: var(--nevon-ink);
}

/* A routine as design v8 lists it (D10, 0.123.0). */
.routine {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.routine:first-child {
  border-top: none;
}
.routine__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.routine__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.routine__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--nevon-navy);
}
.routine__state {
  font-size: 12px;
  color: var(--nevon-grey);
}
.routine__state--on {
  color: var(--nevon-navy);
}
/* On a phone the decision filters take their own line under the title, which they covered before (0.123.2). */
@media (max-width: 767px) {
  .tile__head .decision__filters {
    order: 3;
    flex-basis: 100%;
  }
}

/* The feedback dialog (0.127.0): the picker's layer with a text field. */
.fbk {
  gap: var(--space-3);
}
.fbk__text {
  width: 100%;
  min-height: 120px;
  resize: vertical;
}
.fbk .cpk__title {
  flex: 1;
  min-width: 0;
}
.fbk .cpk__title .row__meta {
  white-space: normal;
  font-weight: normal;
}

/* ---------------------------------------------------------------------------
   The new start page (ADR 0120, design v11): "Now", "Today", "New since
   yesterday", and the Mail and Tasks pages. Ported from the design's own
   rules (prefix nw-); the design's container queries are media queries here,
   because the page is the viewport. */

.header__seg { display: inline-flex; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 6px; overflow: hidden; flex: none; }
.header__segbtn { background: none; border: 0; color: rgba(255, 255, 255, 0.7); font: inherit; font-size: 12px; padding: 0 10px; min-height: 28px; cursor: pointer; }
.header__segbtn + .header__segbtn { border-left: 1px solid rgba(255, 255, 255, 0.24); }
.header__segbtn--on { background: #ffffff; color: var(--nevon-navy); font-weight: 700; cursor: default; }
/* Up to 1440 px Flightdeck keeps its name, small under the icon (0.148.0, Andreas, 2026-10-30: the bare icon did not say where it leads).
   The source switch and the shortcut hint now go by measurement, not at 1440 px (ADR 0151, step fit-src). */
@media (max-width: 1440px) {
  .header__ext { flex-direction: column-reverse; justify-content: center; gap: 2px; }
  .header__ext .header__exttext { font-size: 10px; line-height: 1; letter-spacing: 0.02em; }
}
.phonenav { display: none; }
/* The header on a phone (0.137.1, Andreas' Android, 2026-10-23): it must fit the viewport, or the
   page scrolls sideways and cuts its left edge. Wordmark, a badge and the three icons fit 320 px:
   "| Hub" goes (the page row below names the page), the gaps tighten, the icons never shrink and a
   badge (Preview, away) gives way with an ellipsis instead of pushing the avatar out. The smoke
   test fails every page wider than a 360 px frame (scripts/preview.mjs, PHONE_SMOKE). */
@media (max-width: 479px) {
  .header { gap: 4px; padding: 0 12px; min-width: 0; }
  .header__badge { margin-left: 0; padding: 1px 6px; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header__spacer { flex: 1 1 0; min-width: 0; }
}
@media (max-width: 479px) {
  .phonenav:not(:empty) { display: flex; gap: 4px; overflow-x: auto; background: var(--nevon-navy); padding: 0 12px 10px; scrollbar-width: none; }
  .phonenav__item { flex: none; background: none; border: 0; color: rgba(255, 255, 255, 0.7); font: inherit; font-size: 13px; padding: 0 10px; min-height: 36px; border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
  .phonenav__item--on { color: #ffffff; background: rgba(255, 255, 255, 0.12); }
  /* The pages are in the row under the bar (ADR 0120): the bar shows no page links then (ADR 0151). */
  .header--phonerow .header__nav { display: none; }
}

/* ---------------------------------------------------------------------------
   The header fits the window (ADR 0151, 0.171.0): ui/src/headerfit.ts lays it
   out step by step and stops at the first step that fits. Each step is one
   class on .header (cumulative) or one page link marked .is-over. Nothing here
   is a width breakpoint; the widths come from the measurement. */
.header__nav { display: flex; flex: none; align-items: center; gap: var(--space-2); }
@media (min-width: 768px) { .header__nav { gap: var(--space-4); } }
.header > .menu-host, .header > .header__icon, .header__logo, .header__badge { flex: none; }
.header__more, .header__searchicon { display: none; }
.header__app.is-over { display: none !important; }
/* 1: the search box's source switch and the Ctrl K hint. */
.header.fit-src .header__src, .header.fit-src .header__kbd { display: none; }
/* 2: the pages wrap into a second row under the bar (ADR 0177, from 480 px; the fit offers it there only).
   The break is a full-width line between the rows; the pages, "More" and the favourites move after it, every
   other item keeps row one. Row one keeps the bar's 56 px (the logo holds it, a literal: --header-h follows the
   whole header's height while it has two rows). The first link's text lines up with the wordmark. */
.header__break { display: none; }
/* The resize observer's line (ADR 0177): as wide as the header, no height, so the fit never changes its size. */
.header-probe { display: block; height: 0; }
.header.fit-tworow { flex-wrap: wrap; height: auto; align-content: flex-start; row-gap: 0; padding-bottom: 6px; }
.header.fit-tworow > .header__logo { min-height: 56px; }
.header.fit-tworow > .header__break { display: block; flex: 0 0 100%; height: 0; order: 1; border-top: 1px solid rgba(255, 255, 255, 0.12); margin-bottom: 4px; }
.header.fit-tworow > .header__nav, .header.fit-tworow > .header__more, .header.fit-tworow > .header__favs { order: 2; }
.header.fit-tworow > .header__nav { margin-left: -10px; }
/* The second row has room: Flightdeck's name sits next to its icon again (the stacked small label is for one tight row). */
.header.fit-tworow .header__ext { flex-direction: row; gap: 6px; }
.header.fit-tworow .header__ext .header__exttext { font-size: inherit; line-height: inherit; letter-spacing: normal; }
/* 3: the favourite mandates (the Ctrl+K palette lists them too). */
.header.fit-favs .header__favs { display: none; }
/* 4: tighter gaps. */
.header.fit-tight { gap: var(--space-2); }
.header.fit-tight .header__nav { gap: 2px; }
/* The gap shorthand above also sets the row gap; the two rows sit flush, the break line separates them. */
.header.fit-tworow { row-gap: 0; }
/* 5: the start page switch, the Preview badge and the away chip; all three are in the initials menu. */
.header.fit-meta .header__seg, .header.fit-meta > .header__badge { display: none; }
/* 6: the search box becomes its icon, which opens the palette. */
.header.fit-searchicon .header__searchbox { display: none; }
.header.fit-searchicon .header__searchicon { display: flex; }
/* 7 to 9: "More" holds the moved pages, then help, then the search. */
.header.fit-more > .header__more { display: flex; }
.header.fit-help > .header__help { display: none; }
.header.fit-search .header__searchicon { display: none; }
.popover--more .header__morehelp, .popover--more .header__moresearch { display: none; }
.header.fit-help .popover--more .header__morehelp, .header.fit-search .popover--more .header__moresearch { display: block; }
/* Help opened from "More" opens there; while help has its own button its popover is shown there instead. */
.header:not(.fit-help) .header__more > .popover--help { display: none; }
.popover--more { width: 240px; padding: 6px; gap: 0; left: 0; right: auto; }
.popover--more .popover__item { display: block; width: 100%; text-align: left; font-size: 14px; text-decoration: none; }
.popover--more .popover__item[hidden] { display: none; }
.popover--more .popover__item:focus-visible, .header__morebtn:focus-visible, .header__searchicon:focus-visible { outline: 2px solid var(--nevon-light-blue); outline-offset: 2px; }
.header__more > .popover--help { left: 0; right: auto; }
/* The Preview badge as a small pill next to the name in the initials menu. */
.header__badge--menu { color: var(--nevon-navy); border-color: var(--nevon-navy); margin-left: var(--space-2); vertical-align: middle; }
.nw-split > .tile { grid-column: auto; }
.header__ext { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; border-left: 1px solid rgba(255, 255, 255, 0.14); border-radius: 0; margin-left: 6px; padding-left: 14px; }
.header__ext:hover { text-decoration: none; }
.header__ext svg { width: 14px; height: 14px; }

.nw-start, .nw-page { display: flex; flex-direction: column; gap: 24px; }
.nw-top { align-items: flex-start; }
.nw-greet { display: flex; flex-direction: column; gap: 4px; }
.nw-greet .page__title { font-size: 28px; margin: 0; }
.nw-summary { font-size: 16px; color: var(--nevon-ink); margin-top: 4px; }
.nw-mtabs { display: none; }
.nw-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
.nw-main, .nw-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.nw-card { background: #ffffff; border: 1px solid #e6e8ed; border-radius: 6px; padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.nw-card__head { display: flex; align-items: center; gap: 12px; }
.nw-card__title { font-size: 18px; font-weight: 700; color: var(--nevon-navy); margin: 0; flex: 1; min-width: 0; }
.nw-card__meta { font-size: 13px; color: #5f6266; }
.nw-linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--nevon-navy); cursor: pointer; text-decoration: none; }
.nw-linkbtn:hover { text-decoration: underline; text-underline-offset: 4px; }
.nw-fold { width: 32px; height: 32px; border: 1px solid #e6e8ed; border-radius: 6px; background: #ffffff; color: var(--nevon-navy); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.nw-fold svg { transition: transform 200ms cubic-bezier(0.2, 0.6, 0.2, 1); }
.nw-fold.is-closed svg { transform: rotate(180deg); }
.nw-start .ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.nw-group { display: flex; flex-direction: column; }
.nw-group + .nw-group { margin-top: 12px; }
.nw-group__head { display: flex; align-items: center; gap: 8px; padding: 4px 0 8px; border-bottom: 1px solid #e6e8ed; }
.nw-group__name { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #5f6266; }
.nw-count { font-size: 12px; font-weight: 700; color: var(--nevon-navy); background: #f2f2f2; border-radius: 999px; padding: 0 8px; line-height: 20px; }
.nw-count--alert { background: #c8322b; color: #ffffff; }
.nw-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid #e6e8ed; }
.nw-ico { width: 36px; height: 36px; border-radius: 6px; background: #f2f2f2; color: var(--nevon-navy); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.nw-ico .ico { width: 18px; height: 18px; }
/* Overdue is calm (Andreas, 2026-11-11, ADR 0152): Nevon light blue, no red; the word "overdue" in its badge carries the urgency. */
.nw-ico--alert { background: var(--nevon-light-blue); color: var(--nevon-navy); }
/* A follow-up card shows the text label "FUP" instead of an icon. */
.nw-ico--fup { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; line-height: 1; }
.nw-open { display: flex; flex-direction: column; gap: 2px; text-align: left; background: none; border: 0; padding: 0; font: inherit; color: var(--nevon-ink); cursor: pointer; min-width: 0; }
.nw-open:hover .nw-line1__text { text-decoration: underline; text-underline-offset: 4px; }
.nw-line1 { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.nw-line1__text { font-size: 15px; line-height: 1.4; color: var(--nevon-ink); overflow-wrap: anywhere; min-width: 0; }
.nw-line2 { font-size: 13px; color: #5f6266; line-height: 1.4; }
/* #2A72B0: the light blue family darkened for text, 4.91:1 on the page (#FAFBFC) and 5.08:1 on white, WCAG AA at 13px. */
.nw-line2--alert { color: #2a72b0; }
/* The detail line breaks only between segments: each segment is one atomic box; one wider than the row still wraps inside (max-width). */
.nw-seg { display: inline-block; max-width: 100%; vertical-align: top; }
.nw-seg__sep { color: #808285; font-weight: 400; }
.nw-seg__badge { display: inline-block; padding: 0 6px; border-radius: 4px; background: #e8f3fd; color: var(--nevon-navy); font-weight: 700; }
/* A to-do whose conversation shows the ball with the other side (ADR 0153): calm, light blue, never red. */
.nw-line2--calm { color: var(--nevon-navy); }
.nw-line2--calm::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--nevon-light-blue); margin-right: 6px; vertical-align: 1px; }
.nw-chip { flex: none; display: inline-block; padding: 0 8px; border-radius: 999px; background: var(--nevon-navy); color: #ffffff; font-size: 11px; line-height: 20px; font-weight: 700; letter-spacing: 0.04em; }
.nw-chip--light { background: #f2f2f2; color: var(--nevon-navy); }
.nw-back { flex: none; display: inline-block; padding: 0 8px; border-radius: 999px; background: #82c2f7; color: var(--nevon-navy); font-size: 11px; line-height: 20px; font-weight: 700; }
.nw-acts { display: grid; grid-template-columns: 112px 128px 36px; gap: 8px; align-items: center; position: relative; }
.nw-acts .btn { width: 100%; padding: 0 10px; white-space: nowrap; justify-content: center; text-decoration: none; }
.nw-more { width: 36px; height: 36px; border: 1px solid #e6e8ed; border-radius: 6px; background: #ffffff; color: var(--nevon-navy); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.nw-more:hover { border-color: var(--nevon-navy); }
.nw-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; width: 240px; background: #ffffff; border: 1px solid #e6e8ed; border-radius: 6px; box-shadow: 0 8px 24px rgba(5, 26, 77, 0.1); padding: 6px; display: flex; flex-direction: column; }
.nw-menu__label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #5f6266; padding: 8px 10px 4px; }
.nw-menu button { text-align: left; background: none; border: 0; border-radius: 6px; padding: 0 10px; min-height: 36px; font: inherit; font-size: 14px; color: var(--nevon-navy); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nw-menu button:hover { background: #fafbfc; }
.nw-menu button span { font-size: 12px; color: #5f6266; }
/* A link candidate (ADR 0153): subject, who, day on up to two lines. */
.nw-menu button.nw-menu__cand { justify-content: flex-start; white-space: normal; line-height: 1.35; padding: 6px 10px; font-size: 13px; }
.nw-menu__sep { height: 1px; background: #e6e8ed; margin: 4px 0; }
.nw-morerow { align-self: flex-start; background: none; border: 0; padding: 10px 0 2px 50px; font: inherit; font-size: 13px; font-weight: 700; color: var(--nevon-navy); cursor: pointer; }
.nw-morerow:hover { text-decoration: underline; text-underline-offset: 4px; }
.nw-snoozed { margin-top: 4px; }
.nw-snoozed__toggle { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; padding: 12px 0 6px; font: inherit; font-size: 13px; color: #5f6266; cursor: pointer; text-align: left; }
.nw-snoozed__toggle:hover span { text-decoration: underline; text-underline-offset: 4px; }
.nw-snoozed__chev { margin-left: auto; display: inline-flex; transition: transform 200ms cubic-bezier(0.2, 0.6, 0.2, 1); }
.nw-snoozed__chev.is-closed { transform: rotate(180deg); }
.nw-snrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0 10px 50px; border-top: 1px solid #e6e8ed; }
.nw-snrow .nw-line1__text { color: #5f6266; }
.nw-empty { padding: 48px 24px; align-items: flex-start; gap: 8px; }
.nw-empty h2 { margin: 0; font-size: 24px; color: var(--nevon-navy); line-height: 1.2; }
.nw-empty p { margin: 0; font-size: 16px; color: var(--nevon-ink); max-width: 560px; }
.nw-empty .nw-snoozed { align-self: stretch; margin-top: 16px; border-top: 1px solid #e6e8ed; }
.nw-quiet { font-size: 14px; color: #5f6266; padding: 8px 0; }
.nw-newrow { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border: 0; border-top: 1px solid #e6e8ed; background: none; text-align: left; font: inherit; color: var(--nevon-ink); cursor: pointer; width: 100%; }
.nw-newrow:hover .nw-newrow__text { text-decoration: underline; text-underline-offset: 4px; }
.nw-newrow .nw-ico { width: 28px; height: 28px; }
.nw-newrow .nw-ico .ico { width: 15px; height: 15px; }
.nw-newrow__main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nw-newrow__text { font-size: 14px; overflow-wrap: anywhere; }
.nw-newrow__when { font-size: 12px; color: #5f6266; white-space: nowrap; }

.nw-brief { display: flex; flex-direction: column; gap: 8px; background: #fafbfc; border: 1px solid #e6e8ed; border-radius: 6px; padding: 14px 16px; align-items: flex-start; }
.nw-brief__head { display: flex; align-items: center; gap: 8px; }
.nw-brief__text { font-size: 15px; line-height: 1.5; color: var(--nevon-ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nw-brief.is-open .nw-brief__text { display: block; }
.nw-meets { display: flex; flex-direction: column; position: relative; }
.nw-meet { display: grid; grid-template-columns: 48px 16px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 0; position: relative; }
.nw-meet__time { font-size: 13px; font-weight: 700; color: var(--nevon-navy); line-height: 20px; }
.nw-meet__rail { position: relative; align-self: stretch; }
.nw-meet__rail::before { content: ""; position: absolute; left: 7px; top: -8px; bottom: -8px; width: 2px; background: #e6e8ed; }
.nw-meet:first-child .nw-meet__rail::before { top: 10px; }
.nw-meet:last-child .nw-meet__rail::before { bottom: calc(100% - 10px); }
.nw-meet__dot { position: absolute; left: 3px; top: 5px; width: 10px; height: 10px; border-radius: 999px; background: #ffffff; border: 2px solid #808285; box-sizing: border-box; }
.nw-meet__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nw-meet__title { font-size: 14px; color: var(--nevon-ink); line-height: 20px; text-decoration: none; }
a.nw-meet__title:hover { text-decoration: underline; }
.nw-meet__meta { font-size: 12px; color: #5f6266; }
.nw-meet.is-past .nw-meet__title, .nw-meet.is-past .nw-meet__time { color: #808285; }
.nw-meet.is-past .nw-meet__dot { background: #808285; }
.nw-meet.is-next { background: #fafbfc; border: 1px solid #e6e8ed; border-radius: 6px; padding: 10px 10px 12px 0; margin: 4px 0; }
.nw-meet.is-next .nw-meet__time { padding-left: 10px; }
.nw-meet.is-next .nw-meet__title { font-weight: 700; color: var(--nevon-navy); }
.nw-meet.is-next .nw-meet__dot { background: #82c2f7; border-color: var(--nevon-navy); }
.nw-meet__next { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.nw-meet__label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--nevon-navy); }
/* The meeting brief (0.143.0): the confirmation and the brief under a meeting; tomorrow folded below today. */
.mb-panel:empty { display: none; }
.mb-panel { margin-top: 8px; }
.mb-confirm, .mb-brief { display: flex; flex-direction: column; gap: 8px; background: #ffffff; border: 1px solid #e6e8ed; border-radius: 6px; padding: 12px 14px; }
.mb-confirm__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mb-confirm__label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #5f6266; }
.mb-select { min-width: 0; max-width: 100%; flex: 1 1 200px; font: inherit; font-size: 14px; padding: 4px 8px; border: 1px solid #e6e8ed; border-radius: 4px; background: #ffffff; color: var(--nevon-ink); }
.mb-confirm__why { margin: 0; font-size: 13px; color: #5f6266; }
.mb-confirm__actions { display: flex; align-items: center; gap: 12px; }
.mb-purpose { margin: 0; font-size: 14px; line-height: 1.5; color: var(--nevon-ink); }
.mb-sec { display: flex; flex-direction: column; gap: 2px; }
.mb-sec__title { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--nevon-navy); }
.mb-sec__text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--nevon-ink); }
.mb-people, .mb-points { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.45; color: var(--nevon-ink); }
.mb-person { display: flex; flex-direction: column; }
.mb-person__name { font-weight: 700; color: var(--nevon-navy); }
.mb-person__note, .mb-person__also { font-size: 13px; color: #5f6266; }
.mb-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid #e6e8ed; padding-top: 8px; }
.mb-meta { font-size: 12px; color: #808285; margin-right: auto; }
.mb-srcs { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.mb-src { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 6px 0; border-top: 1px solid #e6e8ed; }
.mb-src:first-child { border-top: 0; }
.mb-src__main { display: flex; flex-direction: column; min-width: 0; flex: 1 1 200px; }
.mb-src__kind { font-size: 12px; color: #808285; }
.mb-src__title { font-size: 13px; color: var(--nevon-ink); overflow-wrap: anywhere; }
.mb-src__acts { display: flex; gap: 12px; }
.mb-src__text:empty { display: none; }
.mb-src__text { flex: 1 1 100%; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.5; color: var(--nevon-ink); background: #fafbfc; border: 1px solid #e6e8ed; border-radius: 4px; padding: 8px 10px; max-height: 320px; overflow-y: auto; }
.nw-tomorrow { margin-top: 8px; border-top: 1px solid #e6e8ed; padding-top: 8px; }
/* The fold slides: rows 0fr to 1fr animates to the content's own height, no measuring in script. */
.nw-tomorrow__body { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 240ms cubic-bezier(0.2, 0.6, 0.2, 1), opacity 200ms ease; }
.nw-tomorrow.is-open .nw-tomorrow__body { grid-template-rows: 1fr; opacity: 1; }
.nw-tomorrow__inner { overflow: hidden; min-height: 0; }
.nw-tomorrow:not(.is-open) .nw-tomorrow__body { visibility: hidden; transition: grid-template-rows 240ms cubic-bezier(0.2, 0.6, 0.2, 1), opacity 200ms ease, visibility 0s 240ms; }
/* The brief, its confirmation and an unfolded source fade in instead of popping. */
@keyframes mb-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.mb-confirm, .mb-brief, .mb-panel > .state, .mb-src__text:not(:empty) { animation: mb-in 200ms cubic-bezier(0.2, 0.6, 0.2, 1); }
@media (prefers-reduced-motion: reduce) {
  .nw-tomorrow__body, .nw-tomorrow:not(.is-open) .nw-tomorrow__body { transition: none; }
  .mb-confirm, .mb-brief, .mb-panel > .state, .mb-src__text:not(:empty) { animation: none; }
}
.nw-tomorrow__head { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; padding: 4px 0; cursor: pointer; text-align: left; font: inherit; }
.nw-tomorrow__title { font-size: 14px; font-weight: 700; color: var(--nevon-navy); margin-right: auto; }

.nw-dock { position: fixed; left: 0; right: 0; bottom: 0; height: 0; z-index: 60; }
.nw-toast { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; background: var(--nevon-navy); color: #ffffff; border-radius: 6px; padding: 10px 12px 10px 18px; font-size: 14px; box-shadow: 0 8px 24px rgba(5, 26, 77, 0.1); white-space: nowrap; animation: nw-in 200ms cubic-bezier(0.2, 0.6, 0.2, 1); overflow: hidden; }
.nw-toast__undo { background: none; border: 1px solid rgba(255, 255, 255, 0.14); color: #82c2f7; font: inherit; font-weight: 700; font-size: 13px; border-radius: 6px; padding: 0 12px; min-height: 32px; cursor: pointer; }
.nw-toast__bar { position: absolute; left: 0; bottom: 0; height: 2px; background: #82c2f7; animation: nw-bar 5s linear forwards; }
@keyframes nw-bar { from { width: 100%; } to { width: 0; } }
@keyframes nw-in { from { opacity: 0; } to { opacity: 1; } }

/* Mail and Tasks */
.nw-pagehead { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.nw-pagehead__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nw-pagehead .page__title { margin: 0; }
.nw-split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.nw-week { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.tile--free { --tile-h: none; --tile-min: 0px; }
.tile--free .tile__scroll { max-height: 70vh; }

@media (max-width: 1400px) {
  .nw-grid { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 1100px) {
  .nw-grid { grid-template-columns: minmax(0, 1fr); }
  .nw-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .nw-greet .page__title { font-size: 22px; }
  .nw-summary { font-size: 15px; }
  .nw-mtabs { display: flex; gap: 20px; border-bottom: 1px solid #e6e8ed; }
  .nw-start.is-m-now .nw-side, .nw-start.is-m-now .nw-newcard { display: none; }
  .nw-start.is-m-today .nw-main { display: none; }
  .nw-start.is-m-new .nw-side, .nw-start.is-m-new .nw-nowcard { display: none; }
  .nw-start.is-m-new .nw-newcard .nw-fold { display: none; }
  .nw-card { padding: 16px; }
  .nw-row { grid-template-columns: 36px minmax(0, 1fr); align-items: start; }
  .nw-line1 { flex-wrap: wrap; }
  .nw-acts { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px; }
  .nw-morerow, .nw-snrow { padding-left: 0; }
  .nw-toast { white-space: normal; width: calc(100% - 32px); justify-content: space-between; }
  .nw-week { grid-template-columns: minmax(0, 1fr); }
  .nw-top .urgent { width: 100%; }
}

/* The mandate page (0.128.2): overview and phase side by side, the brief and the CRM list at full width,
   the lists below in a grid that stacks; the brief folded to four lines and two columns until opened. */
.mandate { display: flex; flex-direction: column; gap: var(--space-5); }
.mandate__pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.mandate__briefclamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.mandate__briefcols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.mandate__briefmeta { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.crm__search { margin-bottom: var(--space-2); }
@media (max-width: 900px) {
  .mandate__pair, .mandate__briefcols { grid-template-columns: minmax(0, 1fr); }
}

/* The client's suggestion panels (ADR 0121). */
.nw-form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.nw-form .field { display: flex; flex-direction: column; gap: 4px; }
.nw-form .field__label { font-size: 13px; font-weight: 700; color: var(--nevon-navy); }
.nw-select { border: 1px solid #e6e8ed; border-radius: 6px; padding: 0 10px; min-height: 40px; font: inherit; font-size: 14px; color: var(--nevon-ink); background: #ffffff; }
.cockpit__rules { margin: 0; padding-left: 18px; }

/* The client's suggestions on the mandate page (0.133.3): the name wraps, the buttons keep their size; on a phone they go below. */
.mandate__suggestion { display: flex; align-items: center; gap: 12px; }
.mandate__suggestion .dl__label { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; white-space: normal; overflow: visible; text-overflow: clip; }
.mandate__suggestion .inline { flex: 0 0 auto; }
@media (max-width: 479px) {
  .mandate__suggestion { flex-wrap: wrap; }
}

/* ---------------------------------------------------------------------------
   The settings page (0.139.0, for everyone since 0.139.1; "Settings Layout - Proposal"):
   a navigation on the left from 768 px, one section at a time on the right,
   cards on the page tone; on a phone the section list first. Switches are
   drawn as toggles; every control keeps its native element underneath. */

.stg { width: 100%; box-sizing: border-box; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-5); max-width: 1120px; margin: 0 auto; padding: var(--space-5) var(--space-4); align-items: start; }
.stg__nav { background: var(--nevon-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-3); position: sticky; top: var(--space-4); display: flex; flex-direction: column; gap: 2px; }
.stg__navtitle { font-size: var(--eyebrow-size); letter-spacing: var(--eyebrow-tracking); text-transform: uppercase; color: var(--nevon-grey); padding: var(--space-2) var(--space-2) var(--space-3); }
.stg__navitem { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: var(--space-2); padding: 9px var(--space-3); border-radius: var(--radius-md); color: var(--nevon-ink); text-decoration: none; font-size: var(--body-sm-size); }
.stg__navitem:hover { background: var(--page); text-decoration: none; }
.stg__navitem--on { background: var(--navy-12); color: var(--nevon-navy); font-weight: var(--fw-bold); box-shadow: inset 3px 0 0 var(--nevon-navy); }
.stg__navstate { display: none; color: var(--nevon-grey); font-size: var(--ui-sm-size); font-weight: var(--fw-regular); }
.stg__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--status-alert); }
.stg__content { min-width: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.stg__back { display: none; align-self: flex-start; background: none; border: 0; color: var(--nevon-navy); font: inherit; font-size: var(--body-sm-size); padding: 0; min-height: var(--tap); cursor: pointer; }
.stg__titlerow { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.stg__titlerow .stg__title { flex: 1 1 auto; }
/* Close (0.139.2): back to the page the settings were opened from; on the navy-free page the icon is navy. */
.stg__close { color: var(--nevon-navy); flex: none; }
.stg__close:hover { background: var(--navy-12); }
.stg__navtitle { display: flex; align-items: center; justify-content: space-between; }
.stg__close--list { display: none; }
.stg__title { font-size: var(--h3-size); color: var(--nevon-navy); margin: 0; }
.stg__lead { margin: calc(-1 * var(--space-2)) 0 0; color: var(--nevon-grey); font-size: var(--body-sm-size); }
.stg__card { background: var(--nevon-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5); display: flex; flex-direction: column; }
.stg__cardtitle { font-size: var(--eyebrow-size); letter-spacing: var(--eyebrow-tracking); text-transform: uppercase; color: var(--nevon-grey); font-weight: var(--fw-bold); margin: 0 0 var(--space-2); }
/* The panel's rows as a label column and a control column, with lines between them. */
.stg .settings__row { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: center; gap: var(--space-1) var(--space-4); padding: var(--space-3) 0; border-top: 1px solid var(--border); margin: 0; }
.stg .settings__row .settings__hint { grid-column: 2; }
.stg .settings__row select,
.stg .settings__row input[type="text"],
.stg .settings__row input[type="date"] { max-width: 360px; width: 100%; box-sizing: border-box; }
.stg .settings__check { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) 0; border-top: 1px solid var(--border); margin: 0; cursor: pointer; }
.stg__cardtitle + .settings__row,
.stg__cardtitle + .settings__check,
.stg__card > .settings__row:first-child,
.stg__card > .settings__check:first-child { border-top: 0; }
/* Onboarding (ADR 0150): the hint, then one button per window; the buttons wrap on a phone instead of widening the page. */
.stg__onb { flex-wrap: wrap; margin-top: var(--space-3); }
.stg__card .routines,
.stg__card .routines__list { border: 0; padding: 0; margin: 0; }
/* A checkbox as a toggle: the native input stays, only its look changes. */
.stg input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex: none; width: 38px; height: 22px; border-radius: 11px; background: var(--border); position: relative; cursor: pointer; transition: background 0.15s; margin: 0; }
.stg input[type="checkbox"]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--nevon-white); box-shadow: 0 1px 2px rgba(5, 26, 77, 0.3); transition: left 0.15s; }
.stg input[type="checkbox"]:checked { background: var(--nevon-navy); }
.stg input[type="checkbox"]:checked::after { left: 19px; }
.stg input[type="checkbox"]:focus-visible { outline: 2px solid var(--nevon-light-blue); outline-offset: 2px; }

/* The phone (below 768 px): the section list first, a section with "All settings" above it. */
@media (max-width: 767px) {
  .stg { grid-template-columns: minmax(0, 1fr); padding: var(--space-3) var(--space-3) var(--space-5); gap: var(--space-3); }
  .stg:not(.stg--list) .stg__nav { display: none; }
  .stg__nav { position: static; padding: 0; overflow: hidden; gap: 0; }
  .stg__navtitle { padding: var(--space-3) var(--space-4) var(--space-2); }
  .stg__navitem { grid-template-columns: 1fr auto auto; padding: 14px var(--space-4); border-radius: 0; border-top: 1px solid var(--border); min-height: 48px; box-sizing: border-box; }
  .stg__navitem--on { box-shadow: none; background: none; font-weight: var(--fw-regular); color: var(--nevon-ink); }
  .stg__navstate { display: block; }
  .stg__back { display: inline-flex; align-items: center; }
  .stg--list .stg__close--list { display: inline-flex; }
  .stg__saved { display: none; }
  .stg__card { padding: var(--space-3) var(--space-4); }
  .stg .settings__row { grid-template-columns: minmax(0, 1fr); }
  .stg .settings__row .settings__hint { grid-column: 1; }
}

/* Feature switches (0.139.0): one compact row per key, a segmented switch, the edit area only while a row has a change. */
.fsw { display: flex; flex-direction: column; gap: var(--space-3); }
.fsw__tools { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: center; }
.fsw__search { flex: 1 1 220px; min-width: 0; font: inherit; font-size: var(--body-sm-size); border: 1px solid var(--border); border-radius: var(--radius-md); min-height: var(--tap); padding: 0 var(--space-3); box-sizing: border-box; }
.fsw__filters { flex: 0 1 auto; }
.fsw__list { display: flex; flex-direction: column; }
.fsw__row { border-top: 1px solid var(--border); padding: var(--space-3) 0; display: flex; flex-direction: column; gap: var(--space-2); }
.fsw__main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2) var(--space-4); align-items: center; }
.fsw__text { min-width: 0; }
.fsw__key { font-weight: var(--fw-bold); color: var(--nevon-navy); font-size: var(--body-sm-size); display: flex; gap: var(--space-2); align-items: center; }
.fsw__warn { color: var(--status-alert); font-size: var(--ui-sm-size); font-weight: var(--fw-regular); }
.fsw__desc { font-size: var(--ui-sm-size); color: var(--nevon-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsw__who { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); align-items: center; }
.fsw__add { font: inherit; font-size: var(--ui-sm-size); border: 1px dashed var(--navy-60); border-radius: var(--radius-pill); padding: 2px 10px; background: var(--nevon-white); color: var(--nevon-navy); }
.fsw__edit { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; background: var(--page); border-radius: var(--radius-md); padding: var(--space-2); }
.fsw__reason { flex: 1 1 220px; min-width: 0; font: inherit; font-size: var(--ui-sm-size); border: 1px solid var(--border); border-radius: var(--radius-md); min-height: 32px; padding: 0 var(--space-2); }
/* CRM export guard card (ADR 0164): two numbers and Save in one row, wrapping on a phone. */
.cguard { display: flex; flex-direction: column; gap: var(--space-2); }
.cguard__row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: flex-end; }
.cguard__field { display: flex; flex-direction: column; gap: var(--space-1); font-size: var(--ui-sm-size); }
.cguard__num { width: 9rem; font: inherit; font-size: var(--body-sm-size); border: 1px solid var(--border); border-radius: var(--radius-md); min-height: var(--tap); padding: 0 var(--space-2); box-sizing: border-box; }
/* CRM changes list (ADR 0165): one block per change, fields as name and before > after, scrolling inside the card. */
.cchg { display: flex; flex-direction: column; gap: var(--space-2); }
.cchg__list { display: flex; flex-direction: column; gap: var(--space-2); max-height: 28rem; overflow-y: auto; }
.cchg__row { border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-2) var(--space-3); display: flex; flex-direction: column; gap: var(--space-1); }
.cchg__head { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: space-between; align-items: baseline; }
.cchg__label { font-weight: 700; overflow-wrap: anywhere; }
.cchg__field { display: flex; flex-wrap: wrap; gap: var(--space-2); font-size: var(--ui-sm-size); }
.cchg__name { min-width: 9rem; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 2px; background: var(--page); }
.seg__btn { background: none; border: 0; font: inherit; font-size: var(--ui-sm-size); color: var(--nevon-grey); padding: 4px 12px; border-radius: var(--radius-pill); cursor: pointer; white-space: nowrap; min-height: 28px; }
.seg__btn--sel { background: var(--nevon-white); color: var(--nevon-navy); font-weight: var(--fw-bold); box-shadow: 0 1px 3px rgba(5, 26, 77, 0.15); }
/* "On for everyone" reads at a glance: navy when chosen. */
.seg__btn--state-on.seg__btn--sel { background: var(--nevon-navy); color: var(--nevon-white); }
.seg__btn--state-preview.seg__btn--sel { box-shadow: inset 0 0 0 1px var(--nevon-light-blue); }
@media (max-width: 767px) {
  .fsw__main { grid-template-columns: minmax(0, 1fr); }
  .fsw__desc { white-space: normal; }
}

/* Inside a settings card (0.139.0) the older blocks (devices, routines, the Claude connection) read
   as rows: a heading like the card titles, one line per device or routine, its button on the right. */
.stg__card .routines { display: flex; flex-direction: column; gap: var(--space-2); }
.stg__card .popover__head { font-size: var(--eyebrow-size); letter-spacing: var(--eyebrow-tracking); text-transform: uppercase; color: var(--nevon-grey); font-weight: var(--fw-bold); margin: var(--space-4) 0 0; padding: 0; }
.stg__card .routines > .popover__head:first-child { margin-top: 0; }
.stg__card .popover__text { color: var(--nevon-grey); font-size: var(--body-sm-size); margin: 0; }
.stg__card .routines__list { gap: 0; margin: 0; }
.stg__card .routines__row { border: 0; border-top: 1px solid var(--border); border-radius: 0; padding: var(--space-3) 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-4); align-items: center; }
.stg__card .routines__row > .layout__name { grid-column: 1; font-weight: var(--fw-bold); color: var(--nevon-navy); }
.stg__card .routines__row > .row__meta { grid-column: 1; }
.stg__card .routines__row > .inline { grid-column: 2; grid-row: 1 / span 3; }
.stg__card .routines input[type="text"] { font: inherit; font-size: var(--body-sm-size); border: 1px solid var(--border); border-radius: var(--radius-md); min-height: var(--tap); padding: 0 var(--space-3); box-sizing: border-box; max-width: 280px; }
.stg__card .routines .check { padding: var(--space-3) 0; border-top: 1px solid var(--border); }
.stg__card .routines input[type="time"] { font: inherit; border: 1px solid var(--border); border-radius: var(--radius-md); min-height: 36px; padding: 0 var(--space-2); }

/* Follow-up drafts (ADR 0126): the mandate page tile, the state chips, the confirmation. */
.fu-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-2); }
.fu-cadence { white-space: normal; }
.fu-cadence__edit { margin-bottom: var(--space-2); }
.fu-cadence__edit summary { cursor: pointer; font-size: 13px; color: var(--nevon-navy, #051a4d); }
.fu-cadence__input { width: 9em; }
.fu-list { display: grid; }
.fu-row { display: flex; align-items: center; gap: var(--space-3); padding: 10px 0; border-top: 1px solid #e6e8ed; min-width: 0; }
.fu-row:first-child { border-top: 0; }
.fu-row--obsolete { box-shadow: inset 3px 0 0 var(--status-alert, #c8322b); padding-left: 10px; }
.fu-row__main { display: grid; gap: 2px; flex: 1; min-width: 0; }
.fu-row__main .row__title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fu-row__acts { display: flex; gap: var(--space-2); flex-shrink: 0; }
.fu-reason { font-size: 13px; color: var(--nevon-grey, #808285); }
.fu-reason--alert { color: var(--status-alert, #c8322b); font-weight: 600; }
.fu-overdue { color: var(--status-alert, #c8322b); }
.fu-chip { font-size: 11px; border: 1px solid currentColor; background: transparent; }
.fu-chip--draft_ready { color: var(--nevon-navy, #051a4d); background: #e8f3fd; border-color: #82c2f7; }
.fu-chip--sent { color: var(--nevon-grey, #808285); }
.fu-chip--obsolete { color: #fff; background: var(--status-alert, #c8322b); border-color: var(--status-alert, #c8322b); }
.fu-chip--postponed { color: var(--nevon-grey, #808285); }
.fu-dlg__list { margin: var(--space-2) 0; padding-left: 1.2em; max-height: 40vh; overflow: auto; }
.fu-dlg__list li { margin: 2px 0; }
@media (max-width: 600px) {
  .fu-row { flex-direction: column; align-items: stretch; }
  .fu-row__acts { justify-content: flex-start; }
}

/* "Next follow-up in N days" (ADR 0126 addendum): the box in a follow-up row and in the start page's row menu. */
.fu-next { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 4px; font-size: 13px; color: var(--nevon-grey, #808285); }
.fu-next__input { width: 4.5em; min-height: 32px; padding: 4px 8px; }
.nw-menu .fu-next { padding: 6px 10px; border-top: 1px solid #e6e8ed; margin-top: 4px; }
.nw-menu .fu-next button { display: inline-flex; min-height: 32px; padding: 0 10px; border: 1px solid var(--nevon-navy, #051a4d); justify-content: center; }

/* Keeping the start page current (0.144.0): "Updated 14:32" and the refresh button in the Now card's head. */
.nw-tools { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.nw-stamp { font-size: 12px; color: #808285; white-space: nowrap; }
.nw-refresh { width: 32px; height: 32px; border: 1px solid #e6e8ed; border-radius: 6px; background: #ffffff; color: var(--nevon-navy); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.nw-refresh:hover { border-color: var(--nevon-navy); }
.nw-refresh.is-busy { cursor: progress; }
.nw-refresh.is-busy .ico { animation: nw-spin 900ms linear infinite; }
@keyframes nw-spin { to { transform: rotate(360deg); } }
.nw-empty__tools { display: flex; width: 100%; }
@media (prefers-reduced-motion: reduce) { .nw-refresh.is-busy .ico { animation: none; opacity: 0.5; } }

/* The meeting brief in the side panel (0.144.0): the head carries the meeting's time and project; the brief fills the width without its card frame. */
.panel__titles { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.panel__sub { font-size: 13px; color: #5f6266; }
.panel--brief .mb-brief { border: 0; padding: 0; gap: 16px; animation: none; }
.panel--brief .mb-purpose, .panel--brief .mb-sec__text, .panel--brief .mb-people, .panel--brief .mb-points { font-size: 15px; }
.panel--brief .mb-confirm { margin: 0; }

/* The reader's formatted view (0.145.0, ADR 0129): the mail in a sandboxed frame, held images named above it. */
.mail-frame { display: flex; flex-direction: column; gap: 8px; margin: var(--space-3) 0; }
.mail-frame__view { display: block; width: 100%; min-height: 80px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #ffffff; }
.mail-frame__note { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #5f6266; background: #fafbfc; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 8px 12px; }
.mail-frame__note span { flex: 1 1 240px; }

/* Editing a draft (0.145.0): the composer's look; a draft the hub cannot edit says why and points to Outlook. */
.draft-edit__blocked, .draft-edit__conflict { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: var(--space-3) 0; }
.draft-edit__blocked p { margin: 0; flex: 1 1 100%; }

/* The morning briefing's time and "Make again" (0.146.0): a meeting added after 05:30 is in after one click. */
.nw-brief__tools { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; white-space: nowrap; }
.nw-brief__tools .nw-refresh { width: 28px; height: 28px; }
/* The structured morning briefing (0.148.0): focus lines, a row of figures, short sections on Details. */
.nw-brief__head { align-self: stretch; }
.nw-bfocus { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; align-self: stretch; }
.nw-bfocus li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.4; color: var(--nevon-ink); }
.nw-bfocus li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--nevon-light-blue); }
.nw-bfocus li:first-child { font-weight: 700; color: var(--nevon-navy); }
.nw-bfocus li:first-child::before { background: var(--nevon-navy); }
.nw-bquiet { font-size: 14px; color: #5f6266; }
.nw-bstats { display: flex; flex-wrap: wrap; gap: 6px; align-self: stretch; }
.nw-bstat { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: var(--radius-pill); background: #fff; border: 1px solid #e6e8ed; font: inherit; font-size: 13px; color: #5f6266; cursor: pointer; }
.nw-bstat b { font-weight: 700; color: var(--nevon-navy); }
.nw-bstat:hover { border-color: var(--nevon-light-blue); }
.nw-bstat.is-alert { border-color: rgba(180, 35, 24, 0.35); color: var(--status-alert); }
.nw-bstat.is-alert b { color: var(--status-alert); }
.nw-start .nw-bstat .ico, .nw-start .nw-bsec__head .ico { width: 14px; height: 14px; }
.nw-bdetails { display: flex; flex-direction: column; gap: 14px; align-self: stretch; border-top: 1px solid #e6e8ed; padding-top: 12px; }
.nw-bsec { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nw-bsec__head { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #5f6266; }
.nw-bsec__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.nw-bitem { display: flex; align-items: baseline; gap: 8px; min-width: 0; font-size: 14px; line-height: 1.4; color: var(--nevon-ink); }
.nw-bitem--wrap { flex-wrap: wrap; row-gap: 2px; }
.nw-bitem__link { flex: 1; min-width: 0; background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-bitem__link b { font-weight: 700; }
.nw-bitem__link:hover { color: var(--nevon-navy); text-decoration: underline; }
.nw-btag { flex: none; font-size: 12px; color: #5f6266; white-space: nowrap; }
.nw-btag.is-alert { color: var(--status-alert); font-weight: 700; }
.nw-btag.is-strong { color: var(--nevon-navy); font-weight: 700; }
.nw-bchips { display: flex; flex-wrap: wrap; gap: 6px; }
.nw-bchip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: var(--radius-pill); background: #fff; border: 1px solid #e6e8ed; font: inherit; font-size: 12px; color: var(--nevon-ink); cursor: pointer; }
.nw-bchip b { font-weight: 700; color: var(--nevon-navy); }
.nw-bchip.is-muted { cursor: default; color: #5f6266; }
.nw-bmore { font-size: 12px; color: #5f6266; }
.nw-bfoot { font-size: 12px; color: #808285; }

/* The lock after a sign-out (0.151.0): over everything, the page behind is inert. */
.signout { position: fixed; inset: 0; z-index: 10000; background: rgba(11, 18, 38, 0.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.signout__card { background: #ffffff; border: 1px solid #e6e8ed; border-radius: 8px; padding: 24px; max-width: 460px; width: 100%; box-shadow: 0 12px 40px rgba(5, 26, 77, 0.25); display: flex; flex-direction: column; gap: 12px; }
.signout__title { margin: 0; font-size: 20px; font-weight: 700; color: var(--nevon-navy); }
.signout__text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--nevon-ink); }
.signout__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.signout__status { font-size: 13px; color: #5f6266; }

/* "Go through the inbox" under the greeting (0.152.0). */
.nw-run { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.nw-run__meta { font-size: 12px; color: #808285; }

/* The Mail Desk on a mandate's page (0.154.0), in the page's top row. */
.nw-run--inline { margin-top: 0; margin-left: auto; }
.nw-run__tick { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #5f6266; }

/* Waiting for (ADR 0138, 0.155.0): how long a card waits, the person filter in the column head, the picker. */
.card__since {
  font-size: var(--eyebrow-size);
  color: var(--nevon-grey);
  white-space: nowrap;
}
.card__since--warn {
  color: var(--status-alert);
  font-weight: var(--fw-bold);
}
/* The initials take a line of their own under the name and count: a narrow column keeps its name readable. */
.board__head:has(.board__people) {
  flex-wrap: wrap;
  row-gap: var(--space-1);
}
.board__people {
  display: flex;
  flex-wrap: wrap;
  flex-basis: 100%;
  gap: 3px;
}
/* Kind by colour, as in the card design proposal: team navy filled, client light-blue outline, CRM and free text grey outline. */
.board__person {
  min-width: 24px;
  height: 24px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--nevon-grey);
  background: var(--nevon-white);
  color: var(--nevon-navy);
  font: inherit;
  font-size: 11px;
  font-weight: var(--fw-bold);
  line-height: 22px;
  cursor: pointer;
}
.board__person--team {
  background: var(--nevon-navy);
  border-color: var(--nevon-navy);
  color: var(--nevon-white);
}
.board__person--client {
  border-color: var(--nevon-light-blue);
}
.board__person:focus-visible {
  outline: 2px solid var(--nevon-light-blue);
  outline-offset: 1px;
}
.board__person--active {
  box-shadow: 0 0 0 2px var(--nevon-light-blue);
}
.wfpop {
  z-index: 60;
  padding: var(--space-3);
}
.wfpick {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.wfpick input {
  width: 100%;
}
.wfpick__list {
  display: flex;
  flex-direction: column;
  max-height: 240px;
  overflow-y: auto;
}
.wfpick__list:empty {
  display: none;
}
.wfpick__opt {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--space-2);
  align-items: baseline;
  padding: 6px var(--space-2);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--nevon-ink);
  font-size: var(--ui-sm-size);
}
.wfpick__opt:hover,
.wfpick__opt--active {
  background: var(--navy-12);
}
.wfpick__kind {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--eyebrow-tracking);
  color: var(--nevon-grey);
}
.wfpick__kind--team {
  color: var(--nevon-navy);
}
.wfpick__detail {
  grid-column: 2;
  font-size: var(--eyebrow-size);
  color: var(--nevon-grey);
}
.wfpick__note:empty {
  display: none;
}

/* The card in the waiting column (card design, Andreas 2026-11-09, ADR 0138): three fixed lines, so every
   card there has the same height. Other columns keep their compact layout. */
.card--waiting .card__wmain {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.card__wtitle {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card__wline2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-width: 0;
  min-height: 20px;
}
/* The chip takes what the waiting time leaves; the time never shrinks. A block, so the ellipsis applies.
   The chip size of .card__meta, which this line sits outside of: without it the chip inherits the card
   text size and the navy mandate chip turns into an oversized button (Andreas, 2026-12-02). */
.card__wchip {
  display: inline-block;
  font-size: var(--eyebrow-size);
  line-height: 1.55;
  flex: 0 1 auto;
  min-width: 3em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card__wline2 .card__since {
  flex: 0 0 auto;
}
.card__topic {
  border-style: dashed;
}
.card__wgap {
  flex: 1;
}
.card__wline3 {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--eyebrow-size);
  color: var(--nevon-ink);
  text-align: left;
  cursor: help;
}
.card__wline3:focus-visible {
  outline: 2px solid var(--nevon-light-blue);
  outline-offset: 1px;
}
.card__wline3--none {
  color: var(--nevon-grey);
}
/* Dot by kind: a colleague navy, the client light blue, anyone outside grey. */
.card__wdot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nevon-grey);
}
.card__wdot--team {
  background: var(--nevon-navy);
}
.card__wdot--client {
  background: var(--nevon-light-blue);
}
.card__wdot--none {
  background: transparent;
  border: 1px solid var(--nevon-grey);
}
/* The company takes at most 60 % of the line, the name the rest; each ends with an ellipsis only when needed. */
.card__wco {
  flex: 0 1 auto;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: var(--fw-bold);
  color: var(--nevon-navy);
}
.card__wsep {
  flex: 0 0 auto;
  color: var(--nevon-grey);
}
.card__wname {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Apollo contact requests (ADR 0148): the form beside the lists, the check's figures, the lines. */
.ap-split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.ap-form, .ap-detail, .ap-side { background: var(--nevon-white); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.ap-side { display: flex; flex-direction: column; gap: 20px; }
.ap-form { display: flex; flex-direction: column; gap: 14px; }
.ap-detail { display: flex; flex-direction: column; gap: 14px; }
.ap-block { display: flex; flex-direction: column; gap: 10px; }
.ap-block[hidden], .ap-list[hidden] { display: none; }
.ap-row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.ap-label { font-size: var(--eyebrow-size); letter-spacing: var(--eyebrow-tracking); text-transform: uppercase; color: var(--nevon-grey); font-weight: var(--fw-bold); }
.ap-types { display: flex; flex-direction: column; gap: 6px; }
.ap-type { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 8px; cursor: pointer; }
.ap-num { max-width: 80px; }
.chip.is-on { background: var(--nevon-navy); border-color: var(--nevon-navy); color: var(--nevon-white); }
.ap-result { display: flex; flex-direction: column; gap: 12px; }
.ap-result:empty { display: none; }
.ap-criteria { font-size: var(--h4-size); color: var(--nevon-ink); }
.ap-desc { margin: 0; color: var(--nevon-ink); }
.ap-figures { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--page); }
.ap-figures__col { display: flex; flex-direction: column; gap: 4px; }
.ap-line { font-size: var(--body-sm-size); color: var(--nevon-ink); }
.ap-line--short { color: var(--status-alert); font-weight: var(--fw-bold); }
.ap-warnings { grid-column: 1 / -1; margin: 0; padding-left: 18px; font-size: var(--ui-sm-size); color: var(--navy-60); }
.ap-stale, .ap-note { padding: 8px 12px; border-radius: 8px; background: var(--navy-12); color: var(--nevon-navy); font-size: var(--body-sm-size); }
.ap-items { display: flex; flex-direction: column; gap: 8px; }
.ap-item { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.ap-state--buy { border-color: var(--nevon-navy); color: var(--nevon-navy); }
.ap-state--in_crm, .ap-state--no_signal, .ap-state--not_found, .ap-state--unchecked { color: var(--nevon-grey); }
.ap-crm { text-decoration: none; }
.ap-list { display: flex; flex-direction: column; gap: 6px; }
.ap-req { text-align: left; width: 100%; background: none; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.ap-req:hover { border-color: var(--nevon-light-blue); }
@media (max-width: 767px) {
  .ap-split, .ap-figures, .ap-row2 { grid-template-columns: minmax(0, 1fr); }
  .ap-form, .ap-detail, .ap-side { padding: 16px; }
}
/* On a phone "More" sits near the left edge: its menu (and help opened from it) spans the bar instead of running past the right edge (ADR 0151). */
@media (max-width: 479px) {
  .header { position: relative; }
  /* The phone's 4 px gap stays when the fit tightens (step 3 would widen it to 8 px). */
  .header.fit-tight { gap: 4px; }
  .header__more { position: static; }
  .popover--more, .header__more > .popover--help { left: 12px; right: 12px; width: auto; max-width: none; }
}

/* The contact status tracker on the mandate page (ADR 0156): a table at desktop width, cards on a phone. */
.ct__filters { display: grid; gap: var(--space-2); margin: var(--space-2) 0; }
.ct__selects { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.ct__select { width: auto; max-width: 100%; font-size: 13px; padding: 4px 8px; }
.ct__nlabel { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--nevon-ink, #0b1226); }
.ct__n { width: 4.5em; padding: 4px 6px; font-size: 13px; }
.ct__gap { border: 1px solid var(--nevon-light-blue, #82c2f7); background: #e8f3fd; border-radius: var(--radius-md); padding: var(--space-2) var(--space-3); margin-bottom: var(--space-3); font-size: 13px; color: var(--nevon-navy, #051a4d); display: grid; gap: var(--space-2); }
.ct__gapitems { display: flex; flex-wrap: wrap; gap: var(--space-2); }
/* The primary contact line (ADR 0161): who receives the mandate's mail, their sync, "Change". */
.ct__primary { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2); font-size: 13px; color: var(--nevon-navy, #051a4d); }
.ct__primary--none { border: 1px dashed var(--nevon-light-blue, #82c2f7); border-radius: var(--radius-md); padding: var(--space-2) var(--space-3); }
.ct__sync--on { background: #e6f4ea; color: #1e6b34; }
.ct__sync--off { background: #fdecea; color: #a12d22; }
/* Colleagues with the sync off while the primary contact's runs: a note, not a gap. */
.ct__gap--hint { border-color: var(--border); background: #f6f7f9; }
.ct__gapitem { display: inline-flex; align-items: center; gap: var(--space-2); background: #fff; }
.ct__bar { display: none; }
.ct__bar--on { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); position: sticky; top: 0; z-index: 2; background: var(--nevon-white, #fff); border: 1px solid var(--border, #e6e8ed); border-radius: var(--radius-md); padding: var(--space-2) var(--space-3); margin: var(--space-2) 0; box-shadow: var(--shadow-2); }
.ct__barcount { font-weight: var(--fw-bold); font-size: 13px; margin-right: var(--space-2); }
.ct__resultbox { border: 1px solid var(--border, #e6e8ed); border-radius: var(--radius-md); padding: var(--space-2) var(--space-3); margin: var(--space-2) 0; font-size: 13px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px var(--space-2); }
.ct__resulthead { grid-column: 1; }
.ct__resultlist { grid-column: 1; margin: 0; padding-left: 18px; color: var(--nevon-grey, #808285); }
.ct__resultbox > .nw-linkbtn { grid-column: 2; grid-row: 1; }
.ct__list { display: flex; flex-direction: column; }
.ct__row { display: grid; grid-template-columns: var(--ct-cols, 28px minmax(170px, 1.6fr) 130px 140px 96px minmax(150px, 1.4fr) 92px 44px 120px auto); gap: 10px; align-items: start; padding: 8px 0; border-top: 1px solid var(--border, #e6e8ed); font-size: 13px; min-width: 0; }
/* Slice 3 (ADR 0171): the contacts page puts a "Mandate" column in front; the narrow layouts below set their own columns. */
.ct__list--cross { --ct-cols: 28px 92px minmax(160px, 1.5fr) 130px 140px 96px minmax(110px, 1fr) 92px 44px auto; }
.ct__mandate { font-size: 11px; align-self: flex-start; }
/* Slice 5 (ADR 0174): leads and prospects, number, company, partner, first contact, last activity, quiet, next step. */
.ct__list--pipe { --ct-cols: 92px minmax(180px, 1.6fr) 130px 100px 150px 80px minmax(150px, 1.3fr) auto; }
.ctp__tabs { margin-bottom: var(--space-2); }
/* Slice 4 (ADR 0173): the line above the list while a deep link shows one company. */
.ct__focus { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: var(--space-2) 0; padding: var(--space-2) var(--space-3); border: 1px solid var(--nevon-light-blue, #82c2f7); background: #e8f3fd; border-radius: var(--radius-md); font-size: 13px; color: var(--nevon-navy, #051a4d); }
.ct__focus[hidden] { display: none; }
.ct__row--head { border-top: 0; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--nevon-grey, #808285); align-items: end; }
.ct__row--over { box-shadow: inset 3px 0 0 #2a72b0; }
.ct__row--off { opacity: 0.7; }
.ct__cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.ct__cell--company .row__title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ct__cell--muted { color: var(--nevon-grey, #808285); font-style: italic; }
.ct__cell--strong { color: #2a72b0; font-weight: var(--fw-bold); }
.ct__cell--num { text-align: right; }
.ct__cell--acts { flex-direction: row; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.ct__cell--check { align-items: center; }
.ct__check { width: 16px; height: 16px; margin: 2px 0 0; }
.ct__over { font-size: 11px; background: #e8f3fd; color: var(--nevon-navy, #051a4d); border: 1px solid var(--nevon-light-blue, #82c2f7); }
.ct__status { font-size: 11px; align-self: flex-start; }
.ct__status--ball { background: #e8f3fd; color: var(--nevon-navy, #051a4d); border-color: var(--nevon-light-blue, #82c2f7); }
.ct__ask { white-space: normal; }
/* What the last contact was (ADR 0158): channel and direction under the date; automated mails and their mails set apart. */
.ct__kind { white-space: normal; }
.ct__kind--auto { font-style: italic; }
.ct__kind--them { color: #2a72b0; }
.ct__logrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.ct__logfield { display: grid; gap: 4px; font-size: 13px; margin: var(--space-2) 0 0; min-width: 0; }
.ct__logfield .input { width: 100%; min-width: 0; }
.ct__logtext { resize: vertical; min-height: 4.5em; font: inherit; }
@media (max-width: 560px) { .ct__logrow { grid-template-columns: minmax(0, 1fr); } }
.ct__empty { padding: var(--space-3) 0; }
.ct__consent, .ct__nextopt { display: flex; align-items: center; gap: var(--space-2); font-size: 14px; margin: var(--space-2) 0; flex-wrap: wrap; }
.ct__nextopt .input { width: auto; }
/* The contacts page carries two more columns than a mandate's tracker, so it takes the stacked layout earlier (ADR 0171). */
@media (max-width: 1440px) {
  .ct__list--cross .ct__row { grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 4px 10px; }
  .ct__list--cross .ct__row--head { display: none; }
  .ct__list--cross .ct__cell--check { grid-row: span 4; }
  .ct__list--cross .ct__cell--company { grid-column: 2 / -1; }
  .ct__list--cross .ct__cell[data-label]::before { content: attr(data-label); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--nevon-grey, #808285); }
  .ct__list--cross .ct__cell--num { text-align: left; }
  .ct__list--cross .ct__cell--acts { grid-column: 2 / -1; justify-content: flex-start; }
}
@media (max-width: 1100px) {
  .ct__row, .ct__list--cross .ct__row { grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1fr); gap: 4px 10px; }
  .ct__list--pipe .ct__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ct__list--pipe .ct__row--head { display: none; }
  .ct__list--pipe .ct__cell--company, .ct__list--pipe .ct__cell--acts { grid-column: 1 / -1; }
  .ct__row--head { display: none; }
  .ct__cell--check { grid-row: span 6; }
  .ct__cell--company { grid-column: 2 / -1; }
  .ct__cell[data-label]::before { content: attr(data-label); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--nevon-grey, #808285); }
  .ct__cell--num { text-align: left; }
  .ct__cell--acts { grid-column: 2 / -1; justify-content: flex-start; }
}
@media (max-width: 560px) {
  .ct__row, .ct__list--cross .ct__row { grid-template-columns: 24px minmax(0, 1fr); }
  .ct__list--pipe .ct__row { grid-template-columns: minmax(0, 1fr); }
  .ct__list--pipe .ct__cell--company, .ct__list--pipe .ct__cell--acts { grid-column: 1 / -1; }
  .ct__cell--company, .ct__cell--acts { grid-column: 2; }
  .ct__bar--on .btn { flex: 1 1 auto; }
}

/* ---------- Admin cockpit (ADR 0162, slice S1) ----------
 * Decision C3 (Andreas, 2026-11-13): real traffic-light green, amber and red for the lamp dots of the
 * cockpit only, always with the word beside them; grey is an empty ring. The rest of the page keeps the
 * house palette. Canvas artboards AdminCockpit and CockpitPhone. */
:root { --lamp-ok: #1e8e4e; --lamp-warn: #e3a008; --lamp-bad: var(--status-alert); }
.lamp { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; box-sizing: border-box; }
.lamp--ok { background: var(--lamp-ok); box-shadow: 0 0 0 3px rgba(30, 142, 78, 0.18); }
.lamp--warn { background: var(--lamp-warn); box-shadow: 0 0 0 3px rgba(227, 160, 8, 0.22); }
.lamp--bad { background: var(--lamp-bad); box-shadow: 0 0 0 3px rgba(200, 50, 43, 0.2); }
.lamp--unknown { background: var(--nevon-white); border: 2px solid var(--nevon-grey); }
.lamp--big { width: 14px; height: 14px; }
.ckp { display: flex; flex-direction: column; gap: var(--space-4); max-width: 1200px; margin: 0 auto; padding: var(--space-5, 24px) var(--space-4) 48px; box-sizing: border-box; width: 100%; }
.ckp-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; }
.ckp-head__text { flex: 1 1 360px; min-width: 0; }
.ckp-head__side { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
/* S3 (ADR 0168): the checked line also names the watcher; it wraps instead of widening the page on a phone. */
.ckp-head__side { min-width: 0; max-width: 100%; }
.ckp-head__side > .row__meta { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; }
.ckp-cap { font-size: var(--eyebrow-size); letter-spacing: var(--eyebrow-tracking); text-transform: uppercase; color: #6b6e72; }
.ckp-title { margin: 4px 0 0; font-size: 32px; line-height: 1.2; color: var(--nevon-navy); display: flex; align-items: center; gap: 12px; }
.ckp-line { margin: 4px 0 0; font-size: 15px; color: #5f6266; }
.ckp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ckp-tile { background: var(--nevon-white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; font: inherit; text-align: left; color: var(--nevon-ink); cursor: pointer; }
.ckp-tile:hover, .ckp-tile:focus-visible { border-color: var(--nevon-light-blue); }
.ckp-tile--bad { border-color: var(--lamp-bad); box-shadow: inset 0 0 0 1px var(--lamp-bad); }
.ckp-tile__top { display: flex; align-items: center; gap: 8px; font-size: var(--body-sm-size); font-weight: var(--fw-bold); color: var(--nevon-navy); min-width: 0; }
.ckp-tile__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ckp-tile__word { margin-left: auto; font-size: 12px; font-weight: var(--fw-regular); color: #5f6266; white-space: nowrap; }
.ckp-tile__meta { font-size: var(--ui-sm-size); color: #5f6266; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ckp-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ckp-st { display: inline-flex; align-items: center; gap: 6px; }
.ckp-later { margin: 0; }
/* Notes on this page are sentences: they wrap instead of ending in an ellipsis like a list row's meta line. */
.ckp p.row__meta, .ckp-legend { white-space: normal; overflow: visible; }
.ckp-sec { background: var(--nevon-white); border: 1px solid var(--border); border-radius: var(--radius-lg); scroll-margin-top: 72px; }
.ckp-sec__head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 20px; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; color: var(--nevon-ink); min-height: 56px; }
.ckp-sec__title { font-size: var(--h4-size); font-weight: var(--fw-bold); color: var(--nevon-navy); flex: none; }
.ckp-sec__sum { font-size: var(--body-sm-size); color: #5f6266; flex: 1 1 auto; min-width: 0; }
.ckp-chev { width: 10px; height: 10px; flex: none; border-right: 2px solid var(--nevon-navy); border-bottom: 2px solid var(--nevon-navy); transform: rotate(45deg); margin: 0 6px 4px; }
.ckp-chev--open { transform: rotate(-135deg); margin: 4px 6px 0; }
.ckp-sec__body { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.ckp-prob { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 16px; font-size: var(--body-sm-size); }
.ckp-prob--bad { border-color: var(--lamp-bad); }
.ckp-prob > summary { list-style: none; cursor: pointer; }
.ckp-prob > summary::-webkit-details-marker { display: none; }
.ckp-prob__t { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--nevon-navy); }
.ckp-prob__word { font-size: 12px; color: #5f6266; }
.ckp-prob__since { font-size: var(--ui-sm-size); color: #5f6266; }
.ckp-prob__body { display: flex; flex-direction: column; gap: 10px; margin: 10px 0 0 20px; }
.ckp-kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 12px; margin: 0; }
.ckp-kv dt { color: #5f6266; }
.ckp-kv dd { margin: 0; overflow-wrap: anywhere; }
.ckp-tblwrap { overflow-x: auto; }
.ckp-tbl { width: 100%; border-collapse: collapse; font-size: var(--body-sm-size); min-width: 720px; }
.ckp-tbl th { text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #6b6e72; font-weight: var(--fw-regular); padding: 6px 8px; border-bottom: 1px solid var(--border); }
.ckp-tbl td { padding: 9px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.ckp-tbl strong { color: var(--nevon-navy); }
/* Anmeldungen (ADR 0170): eight columns; wider than the routines table, it scrolls sideways on a phone. */
.ckp-tbl--access { min-width: 940px; }
.ckp-tbl--access td { white-space: nowrap; }
.ckp-row--off td { color: #5f6266; }
/* Fehlerzähler (ADR 0176): a small table under "Was nicht läuft". */
.ckp-subtitle { font-size: var(--body-size); color: var(--nevon-navy); margin: 12px 0 0; }
.ckp-tbl--narrow { min-width: 0; max-width: 560px; }
.ckp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ckp-kpi { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ckp-kpi__n { font-size: var(--h3-size); font-weight: var(--fw-bold); color: var(--nevon-navy); }
.ckp-kpi__l { font-size: var(--ui-sm-size); color: #5f6266; }
/* Code und Releases (ADR 0171): a bar per repository, code navy, tests light blue (their own colour, spec 5.5). */
.ckp-bar { display: inline-flex; width: 140px; height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; vertical-align: middle; }
.ckp-bar__code { background: var(--nevon-navy); }
.ckp-bar__tests { background: var(--nevon-light-blue); }
.ckp-bar__n { margin-left: 8px; }
.ckp-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.ckp-swatch--code { background: var(--nevon-navy); }
.ckp-swatch--tests { background: var(--nevon-light-blue); }
.ckp-warnline { display: flex; align-items: center; gap: 8px; margin: 0; }
/* Architektur und Stack (ADR 0171): layers top to bottom, boxes wrap; readable on a phone without sideways scrolling. */
.ckp-arch { display: flex; flex-direction: column; gap: 12px; }
.ckp-arch__layer { display: flex; flex-direction: column; gap: 6px; }
.ckp-arch__name { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #6b6e72; }
.ckp-arch__boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.ckp-arch__box { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ckp-arch__box--bad { border-color: var(--status-alert); }
.ckp-arch__title { color: var(--nevon-navy); font-weight: var(--fw-bold); font-size: var(--body-sm-size); }
.ckp-stack { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ckp-chip { border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; font-size: var(--ui-sm-size); color: var(--nevon-navy); }
/* The fault chip in the header (C5): lamp and count on a narrow bar, the words where there is room. */
.header__alert { display: inline-flex; align-items: center; gap: 8px; flex: none; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: var(--radius-pill); padding: 3px 12px 3px 10px; background: transparent; color: var(--nevon-white); font: inherit; font-size: var(--ui-sm-size); cursor: pointer; white-space: nowrap; }
.header__alert:hover, .header__alert:focus-visible { border-color: var(--nevon-white); }
.header__alertnum { display: none; }
@media (max-width: 1100px) {
  .header__alertword { display: none; }
  .header__alertnum { display: inline; }
  .header__alert { padding: 2px 10px 2px 8px; gap: 6px; }
}
/* The narrowest phones (320 to 400 px): the lamp alone, so the bar still fits (ADR 0151); the count stays in its label. */
@media (max-width: 400px) {
  .header__alertnum { display: none; }
  .header__alert { border: 0; padding: 0 1px; gap: 0; min-height: 24px; }
}
/* The calm cockpit lamp (ADR 0177): the way to the cockpit while nothing is red, quieter than the fault chip.
   "Cockpit" where there is room, the lamp alone in a round 28 px target on a narrower bar. */
.header__alert--calm { border-color: rgba(255, 255, 255, 0.24); color: rgba(255, 255, 255, 0.85); }
.header__alert--on { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.4); color: var(--nevon-white); }
@media (max-width: 1100px) {
  .header__alert--calm { justify-content: center; width: 28px; height: 28px; padding: 0; gap: 0; }
}
/* On a phone (below 480 px) the bar keeps what it had (ADR 0177): no calm lamp, the initials menu has
   "Admin-Cockpit". The red fault chip stays at every width (ADR 0151, 0162). */
@media (max-width: 479px) {
  .header__alert--calm { display: none; }
}
@media (max-width: 760px) {
  .ckp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ckp-tile { padding: 10px; }
  /* C3 keeps the word beside every lamp; on a phone it moves under the name so the name is not cut. */
  .ckp-tile__top { flex-wrap: wrap; row-gap: 0; }
  .ckp-tile__name { flex: 1 1 0; }
  .ckp-tile__word { margin-left: 18px; flex-basis: 100%; }
  .ckp-title { font-size: 26px; }
  .ckp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ckp-kv { grid-template-columns: minmax(0, 1fr); }
  .ckp-kv dt { margin-top: 4px; }
  .ckp-prob__body { margin-left: 0; }
  .ckp-sec__head { padding: 12px 14px; flex-wrap: wrap; }
  .ckp-sec__sum { order: 3; flex-basis: 100%; }
  .ckp-sec__body { padding: 0 14px 14px; }
}

/* The send blocklist card in the settings (ADR 0180). */
.blk { display: flex; flex-direction: column; gap: var(--space-2); }
.blk__list { display: flex; flex-direction: column; gap: var(--space-1); max-height: 24rem; overflow-y: auto; }
.blk__row { border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-2) var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: baseline; }
.blk__row--off { opacity: 0.6; }
.blk__value { font-weight: 600; overflow-wrap: anywhere; }
.blk__row .btn { margin-left: auto; }
.blk__form { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.blk__form .input { flex: 1 1 12rem; min-width: 0; }
.blk__proposals, .blk__history { display: flex; flex-direction: column; gap: var(--space-1); }
