/* The workspace as it is now: one sidebar, one panel, light or dark. Loaded last, so it also
   re-points the older pages' variables (studio.css, docs.css, gate.css) at this theme. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("inter-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --page: #f0f2f1;
  --wash: radial-gradient(520px 420px at 0% 0%, rgba(111, 208, 176, 0.26), rgba(111, 208, 176, 0) 72%);
  --panel: #ffffff;
  --panel-shadow: 0 1px 2px rgba(16, 24, 20, 0.04), 0 4px 16px rgba(16, 24, 20, 0.04);
  --pop-shadow: 0 24px 64px rgba(16, 24, 20, 0.24), 0 2px 6px rgba(16, 24, 20, 0.08);
  --soft: #f4f5f5;
  --sel: rgba(16, 24, 20, 0.07);
  --hover: rgba(16, 24, 20, 0.04);
  --line: #eceeed;
  --line2: #dfe3e1;
  --text: #0e1513;
  --text2: #3c4643;
  /* Muted text still has to be read: 4.8:1 on the page colour, where #6c7672 was 4.2:1. */
  --text3: #626c68;
  --primary: #101715;
  --on-primary: #ffffff;
  --accent: #16946f;
  --accent-soft: #d9f2e8;
  --accent-text: #0b6149;
  --amber-c: #e0940f;
  --amber-soft: #fcf2de;
  --amber-text: #7d4b00;
  --green-c: #1f9c7a;
  --green-soft: #e0f4ec;
  --green-text: #0d6a50;
  --red-c: #d5493b;
  --red-soft: #fdeae7;
  --red-text: #b3382c;
  --track: #e1e5e3;
  --btn: #ffffff;
  --btn-shadow: 0 1px 2px rgba(16, 24, 20, 0.05);
  --tile-shadow: 0 0 0 1px rgba(16, 24, 20, 0.08), 0 1px 2px rgba(16, 24, 20, 0.06);
  --scrim: rgba(14, 21, 19, 0.34);
  --avatar: #27322f;
  /* The older pages' names for the same things. */
  --bg: var(--page);
  --stage: var(--panel);
  --raised: var(--soft);
  --raised-2: #e9eceb;
  --line-strong: var(--line2);
  --ink: var(--text);
  --body: var(--text2);
  --muted: var(--text3);
  --mint: var(--accent);
  --mint-ink: #ffffff;
  --amber: #b97a0a;
  --violet: #6d45c4;
  --blue: #2a63c9;
  --red: #c23f32;
  --radius: 14px;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    system-ui,
    sans-serif;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.006em;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #080b0a;
  --wash: radial-gradient(560px 460px at 0% 0%, rgba(31, 163, 127, 0.3), rgba(31, 163, 127, 0) 72%);
  --panel: #111514;
  --panel-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  --pop-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  --soft: #181d1c;
  --sel: rgba(255, 255, 255, 0.08);
  --hover: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.07);
  --line2: rgba(255, 255, 255, 0.12);
  --text: #edf1ef;
  --text2: #b9c3bf;
  --text3: #87948f;
  --primary: #6fd0b0;
  --on-primary: #06140f;
  --accent: #6fd0b0;
  --accent-soft: rgba(111, 208, 176, 0.15);
  --accent-text: #8fe3c6;
  --amber-c: #f0b14a;
  --amber-soft: rgba(240, 177, 74, 0.13);
  --amber-text: #f3c06b;
  --green-c: #58c896;
  --green-soft: rgba(88, 200, 150, 0.14);
  --green-text: #7fdcb2;
  --red-c: #f2766b;
  --red-soft: rgba(242, 118, 107, 0.15);
  --red-text: #f59a90;
  --track: #2a3331;
  --btn: #1b2120;
  --btn-shadow: none;
  --tile-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  --scrim: rgba(0, 0, 0, 0.58);
  --avatar: #3a4744;
  --raised-2: #20272a;
  --mint-ink: #06130f;
  --amber: #e5bc6c;
  --violet: #b9acdd;
  --blue: #96bde0;
  --red: #f0948a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #080b0a;
    --wash: radial-gradient(560px 460px at 0% 0%, rgba(31, 163, 127, 0.3), rgba(31, 163, 127, 0) 72%);
    --panel: #111514;
    --panel-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    --pop-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    --soft: #181d1c;
    --sel: rgba(255, 255, 255, 0.08);
    --hover: rgba(255, 255, 255, 0.05);
    --line: rgba(255, 255, 255, 0.07);
    --line2: rgba(255, 255, 255, 0.12);
    --text: #edf1ef;
    --text2: #b9c3bf;
    --text3: #87948f;
    --primary: #6fd0b0;
    --on-primary: #06140f;
    --accent: #6fd0b0;
    --accent-soft: rgba(111, 208, 176, 0.15);
    --accent-text: #8fe3c6;
    --amber-c: #f0b14a;
    --amber-soft: rgba(240, 177, 74, 0.13);
    --amber-text: #f3c06b;
    --green-c: #58c896;
    --green-soft: rgba(88, 200, 150, 0.14);
    --green-text: #7fdcb2;
    --red-c: #f2766b;
    --red-soft: rgba(242, 118, 107, 0.15);
    --red-text: #f59a90;
    --track: #2a3331;
    --btn: #1b2120;
    --btn-shadow: none;
    --tile-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
    --scrim: rgba(0, 0, 0, 0.58);
    --avatar: #3a4744;
    --raised-2: #20272a;
    --mint-ink: #06130f;
    --amber: #e5bc6c;
    --violet: #b9acdd;
    --blue: #96bde0;
    --red: #f0948a;
  }
}
body {
  background: var(--page);
  color: var(--text);
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---- Shell ---- */
.s-app {
  flex-direction: row;
  background: var(--page) var(--wash) no-repeat;
}
.s-side {
  flex: none;
  width: 256px;
  box-sizing: border-box;
  padding: 12px 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}
.s-grow {
  flex: 1;
  min-height: 8px;
}
.s-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0 10px 8px;
}
.s-home {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  font-size: 15px;
  font-weight: 600;
}
.s-mark-doors {
  fill: var(--text);
}
.s-iconbtn {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--text2);
}
.s-iconbtn:hover,
.s-iconbtn.on {
  background: var(--sel);
  color: var(--text);
}
.s-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.s-cap {
  margin: 0;
  padding: 18px 8px 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text3);
}
.s-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--text2);
  text-align: left;
}
.s-item > span:not(.s-tile):not(.s-avatar) {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s-item:hover {
  background: var(--hover);
}
.s-item.on {
  background: var(--sel);
  color: var(--text);
  font-weight: 500;
}
.s-item small {
  font-size: 12px;
  color: var(--text3);
  font-weight: 400;
}
.s-count {
  min-width: 20px;
  box-sizing: border-box;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--amber-soft);
  font-size: 12px;
  font-weight: 500 !important;
  text-align: center;
  color: var(--amber-text) !important;
}
.s-health i,
.s-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--text3);
}
.s-health i.ok {
  background: var(--green-c);
}
.s-health i.watch,
.s-dot.needs {
  background: var(--amber-c);
}
.s-tile {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--btn);
  box-shadow: var(--tile-shadow);
  color: var(--text2);
}
.s-ico {
  flex: none;
}
.s-ico.accent {
  color: var(--accent);
}
.s-g {
  flex: none;
  color: var(--text3);
}
.s-g.needs {
  color: var(--amber-c);
}
.s-g.working {
  color: var(--green-c);
}
.s-g.done {
  color: var(--accent);
}
.s-g.stuck {
  color: var(--red-c);
}
.s-health {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--panel-shadow);
  text-align: left;
}
.s-health span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
}
.s-health small {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text3);
}
.s-me {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}
.s-avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--avatar);
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
}
.s-avatar.lg {
  width: 36px;
  height: 36px;
  font-size: 13px;
}
.s-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.s-top,
.s-scrim {
  display: none;
}
.s-main {
  flex: 1;
  min-height: 0;
  box-sizing: border-box;
  padding: 8px 8px 8px 0;
  overflow: auto;
}
.s-main:focus {
  outline: none;
}
.s-panel {
  min-height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--panel-shadow);
}

/* ---- Shared pieces ---- */
/* The top of every page: what it is, the box that asks Warden, what you can do. The two sides
   share the room around the box evenly, so the box sits in the same place on every page; a side
   that needs more than its share takes it, and the box narrows before anything wraps. */
.s-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-height: 56px;
  box-sizing: border-box;
  padding: 8px 14px 8px 20px;
  border-bottom: 1px solid var(--line);
}
.s-bar-lead,
.s-bar-acts {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 8px 10px;
  min-width: max-content;
}
.s-bar-acts {
  justify-content: flex-end;
}
.s-bar h1 {
  max-width: min(36ch, 24vw);
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.s-barsub,
.s-crumb {
  font-size: 13px;
  color: var(--text3);
}
.s-crumb {
  font-size: 14px;
}
.s-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
}
.s-tools .s-tabs {
  padding: 0;
  border: 0;
}
.s-tabs button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text2);
}
.s-tabs button:hover {
  background: var(--hover);
}
.s-tabs button.on {
  background: var(--sel);
  color: var(--text);
  font-weight: 500;
}
.s-tabs small {
  font-size: 13px;
  font-weight: 400;
  color: var(--text3);
}
.s-btn,
.s-legacy .x-button,
.s-thread .x-button,
.dialog .x-button,
.dialog .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line2);
  background: var(--btn);
  box-shadow: var(--btn-shadow);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}
.s-btn:hover {
  background: var(--soft);
}
.s-btn.sm {
  min-height: 30px;
  border-radius: 7px;
}
.s-btn.lg {
  min-height: 40px;
  padding: 0 16px;
}
.s-btn.wide {
  width: 100%;
}
.s-btn.pri,
.s-thread .x-button.go,
.dialog .x-button.go,
.dialog .x-button.primary,
.dialog .button.primary,
.s-legacy .x-button.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--on-primary);
}
.s-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 6px;
  background: var(--soft);
  font-size: 12px;
  font-weight: 500;
  color: var(--text2);
  white-space: nowrap;
}
.s-pill i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--text3);
}
.s-pill.needs,
.s-pill.watch {
  background: var(--amber-soft);
  color: var(--amber-text);
}
.s-pill.needs i,
.s-pill.watch i {
  background: var(--amber-c);
}
.s-pill.working,
.s-pill.ok {
  background: var(--green-soft);
  color: var(--green-text);
}
.s-pill.working i,
.s-pill.ok i {
  background: var(--green-c);
}
.s-pill.stuck {
  background: var(--red-soft);
  color: var(--red-text);
}
.s-pill.stuck i {
  background: var(--red-c);
}
.s-prog {
  display: inline-flex;
  gap: 2px;
}
.s-prog i {
  width: 8px;
  height: 4px;
  background: var(--track);
}
.s-prog i.on {
  background: var(--accent);
}
.s-prog.needs i.on {
  background: var(--amber-c);
}
.s-prog.waiting i.on {
  background: var(--text3);
}
.s-body {
  flex: 1;
  padding: 24px 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.s-card {
  box-sizing: border-box;
  border-radius: 14px;
  border: 1px solid var(--line2);
}
.s-card-head,
.s-sec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.s-card-head h2,
.s-sec h2,
.s-tabpage h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}
.s-sec small,
.s-card-head > small {
  font-size: 13px;
  color: var(--text3);
}
.s-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
}
.s-link:hover {
  color: var(--text);
  text-decoration: underline;
}
.s-quiet {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text3);
}
.s-pad {
  padding: 12px 8px;
}
.s-empty {
  margin: auto;
  padding: 48px 16px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  color: var(--text2);
}
.s-empty h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.s-seg {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 8px;
  background: var(--soft);
}
.s-seg button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text3);
}
.s-seg button.on {
  background: var(--btn);
  box-shadow: 0 1px 2px rgba(16, 24, 20, 0.14);
  color: var(--text);
  font-weight: 500;
}
.s-split {
  flex: 1;
  display: flex;
  align-items: stretch;
  min-height: 0;
}
.s-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.s-send {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--primary);
  color: var(--on-primary);
}

/* ---- Dashboard ---- */
/* The way to Warden. It is a button that opens the conversation, drawn as the box you will type in. */
.s-ask {
  flex: 1000 1 200px;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  box-sizing: border-box;
  padding: 0 8px 0 12px;
  border-radius: 9px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--text3);
  text-align: left;
  cursor: text;
}
.s-ask span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.s-composer {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  box-sizing: border-box;
  margin: 16px 0 0;
  padding: 0 8px 0 18px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line2);
  box-shadow:
    0 1px 2px rgba(16, 24, 20, 0.05),
    0 8px 24px rgba(16, 24, 20, 0.07);
}
.s-composer textarea {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 12px 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 15px;
  resize: none;
}
.s-composer textarea::placeholder {
  color: var(--text3);
}
.s-ask kbd {
  flex: none;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--panel);
  font: inherit;
  font-size: 11px;
  color: var(--text3);
}
.s-ask:hover,
.s-ask:focus-visible,
.s-composer:focus-within {
  border-color: var(--accent);
}
.s-dash {
  gap: 16px;
}
.s-cols {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 16px;
}
.s-sec {
  margin-bottom: 12px;
  align-items: baseline;
}
/* The app's health: the verdict, the week, and the one thing to watch beneath it. */
.s-vital-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 36px;
  padding: 18px 20px;
}
.s-verdict {
  flex: 1 1 200px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.s-verdict h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.s-verdict:hover h2 {
  text-decoration: underline;
}
.s-verdict small {
  font-size: 13px;
  color: var(--text3);
}
.s-health-badge {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--soft);
}
.s-health-badge.ok {
  background: var(--green-soft);
  color: var(--green-c);
}
.s-health-badge.watch {
  background: var(--amber-soft);
}
.s-fact {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.s-fact small {
  font-size: 12px;
  color: var(--text3);
}
.s-fact b {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.s-week {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 4px;
}
.s-week li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--green-soft);
  font-size: 11px;
  font-weight: 600;
  color: var(--green-text);
}
.s-week li.watch {
  background: var(--amber-soft);
  box-shadow: 0 0 0 1px var(--amber-c);
  color: var(--amber-text);
}
.s-watch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 6px 12px 6px 20px;
  border-radius: 0 0 13px 13px;
  background: var(--amber-soft);
}
.s-watch .s-g {
  color: var(--amber-c);
}
.s-watch p {
  flex: 1 1 240px;
  min-width: 0;
  color: var(--text2);
}
.s-watch strong {
  font-weight: 500;
  color: var(--amber-text);
}
.s-watch .s-link {
  min-height: 36px;
  padding: 0 8px;
  color: var(--amber-text);
}
/* What needs you: each decision as the question it is, with the one thing to do beside it. */
.s-needs {
  flex: 3 1 460px;
  min-width: 0;
  padding: 16px 20px 8px;
}
.s-need {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.s-card-head + .s-need {
  border-top: 0;
}
.s-need-main {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}
.s-need-main small {
  font-size: 12px;
  color: var(--text3);
}
.s-need-main strong {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.s-need-main:hover strong {
  text-decoration: underline;
}
.s-need-main > span {
  font-size: 13px;
  color: var(--text2);
}
.s-track {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 6px;
}
.s-track li {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text3);
}
.s-track li::before {
  content: "";
  height: 4px;
  border-radius: 999px;
  background: var(--track);
}
.s-track li.done {
  color: var(--green-text);
}
.s-track li.done::before {
  background: var(--green-c);
}
.s-track li.now {
  font-weight: 600;
  color: var(--amber-text);
}
.s-track li.now::before {
  background: var(--amber-c);
}
/* The teams: one line each, with what it has in hand and the state it is in. */
.s-teamcard {
  flex: 2 1 340px;
  min-width: 0;
  padding: 16px 12px 8px;
}
.s-teamcard .s-card-head {
  padding: 0 8px 8px;
}
.s-team {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 8px;
  border-radius: 9px;
  text-decoration: none;
}
.s-team:hover {
  background: var(--hover);
}
.s-team-doing {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.s-team-doing b {
  font-weight: 500;
}
.s-team-doing small {
  font-size: 12px;
  color: var(--text3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s-state {
  flex: none;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text2);
}
.s-state i {
  box-sizing: border-box;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 1.5px solid var(--text3);
}
.s-state.needs {
  color: var(--amber-text);
}
.s-state.needs i {
  border-color: var(--amber-c);
  background: var(--amber-c);
}
.s-state.working {
  color: var(--green-text);
}
.s-state.working i {
  border-color: var(--green-c);
  background: var(--green-c);
}
/* The calendar: a grid of whole weeks on a wide screen, the same entries as a list on a phone. */
.s-cal {
  padding: 12px 20px 16px;
}
.s-cal .s-card-head {
  padding-bottom: 8px;
}
.s-cal-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.s-cal-nav small {
  padding-right: 6px;
  font-size: 13px;
  color: var(--text3);
}
.s-cal-head,
.s-cal-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.s-cal-head {
  padding-bottom: 6px;
  font-size: 12px;
  color: var(--text3);
}
.s-cal-head span {
  padding-left: 8px;
}
.s-cal-week {
  border-top: 1px solid var(--line);
}
.s-cal-day {
  grid-row: 1 / -1;
  padding: 7px 8px;
  border-left: 1px solid var(--line);
  font-size: 12px;
  color: var(--text2);
}
.s-cal-day:first-child {
  border-left: 0;
}
.s-cal-day.past {
  color: var(--text3);
}
.s-cal-day.today {
  padding: 5px 6px;
  background: var(--hover);
}
.s-cal-day.today span {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--primary);
  font-weight: 600;
  color: var(--on-primary);
}
.s-ev {
  align-self: center;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 5px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 12px;
  line-height: 18px;
  color: var(--text3);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
a.s-ev:hover {
  text-decoration: underline;
}
.s-ev.shipped {
  background: var(--green-soft);
  color: var(--green-text);
}
.s-ev.needs,
.s-ev.watch {
  background: var(--amber-soft);
  color: var(--amber-text);
}
.s-ev.needs {
  font-weight: 500;
}
.s-ev.working {
  background: var(--raised-2);
  color: var(--text);
}
.s-ev.planned {
  border: 1px dashed var(--text3);
  color: var(--text2);
}
/* An entry that began in an earlier week, or carries on into the next, is cut square on that side. */
.s-ev.from-before {
  margin-left: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.s-ev.runs-on {
  margin-right: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.s-agenda {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-direction: column;
}
.s-agenda li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.s-agenda b {
  font-size: 12px;
  font-weight: 500;
  color: var(--text3);
}
.s-agenda li.today b {
  color: var(--text);
}
.s-agenda .s-ev {
  align-self: flex-start;
  margin: 0;
}
.s-row-g {
  flex: none;
  display: flex;
}
.s-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-height: 44px;
  text-decoration: none;
}
.s-row-main strong,
.s-task-main strong {
  font-weight: 500;
}
.s-row-main strong,
.s-row-main small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s-row-main small {
  font-size: 13px;
  color: var(--text3);
}
.s-history {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.s-history li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.s-history li > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.35;
}
.s-history small {
  font-size: 12px;
  color: var(--text3);
}
.s-history .s-g {
  margin-top: 1px;
}
.s-detail-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.s-detail-head small {
  font-size: 13px;
  color: var(--text3);
}
.s-detail-head h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.s-detail-head p {
  color: var(--text2);
}

/* ---- A team's tasks ---- */
.s-strip {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.s-strip > div {
  flex: 1 1 180px;
  min-width: 0;
  padding: 14px 20px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.s-strip > div:first-child {
  border-left: 0;
}
.s-strip small {
  font-size: 12px;
  color: var(--text3);
}
.s-strip span {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
}
.s-strip b {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s-strip span small {
  font-size: 14px;
}
.s-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 10px 14px;
}
.s-tools-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.s-teamlist {
  padding: 0 14px 14px;
  gap: 8px;
}
.s-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--soft);
  font-size: 13px;
}
.s-group-head h2 {
  font-size: 13px;
  font-weight: 600;
}
.s-group-head small {
  color: var(--text3);
}
.s-task {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 10px 0 12px;
  border-bottom: 1px solid var(--line);
}
.s-task:last-child {
  border-bottom: 0;
}
.s-task-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
}
.s-task-main strong {
  flex: 0 0 auto;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s-task-main small {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 13px;
  color: var(--text3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s-task-team {
  flex: none;
  width: 124px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text2);
}
.s-task-stage {
  flex: none;
  width: 210px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s-task-act {
  flex: none;
  min-width: 96px;
  display: flex;
  justify-content: flex-end;
}
.s-board {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
}
.s-kcol {
  flex: 1 1 200px;
  min-width: 0;
  padding: 8px;
  border-radius: 12px;
  background: var(--soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.s-kcol .s-group-head {
  padding: 0 4px;
  min-height: 30px;
  background: none;
}
.s-kcard {
  padding: 12px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line2);
  box-shadow: var(--btn-shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.s-kcard > div {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.s-kcard > div > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.s-kcard a {
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
}
.s-kcard small {
  font-size: 13px;
  color: var(--text3);
}
.s-kcard .s-task-stage {
  width: auto;
}

/* ---- One task ---- */
.s-taskmain {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.s-thread {
  flex: 1;
  padding: 28px 32px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.s-msg {
  display: flex;
  gap: 14px;
}
.s-msg > div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.s-msg header {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.s-msg header strong {
  font-size: 15px;
  font-weight: 600;
}
.s-msg time {
  font-size: 13px;
  color: var(--text3);
}
.s-msg p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text2);
}
.s-msg .s-tile {
  border-radius: 10px;
}
.s-assume {
  margin: 8px 0 0;
  padding: 12px 16px 12px 34px;
  max-width: 520px;
  box-sizing: border-box;
  border-radius: 10px;
  background: var(--soft);
  line-height: 1.6;
  color: var(--text2);
}
.s-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.s-chips span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid var(--line2);
  font-size: 13px;
  color: var(--text2);
}
.s-msg .s-acts {
  margin-top: 10px;
}
.s-stage {
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid var(--line2);
  overflow: hidden;
}
.s-stage-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px 8px 14px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--text3);
}
.s-stage-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.s-stage-tools select {
  min-height: 30px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid var(--line2);
  background: var(--btn);
  font-size: 13px;
}
.s-stage-body {
  position: relative;
  height: 460px;
  display: flex;
  flex-direction: column;
  background: var(--soft);
}
.s-stage-body .w-frame,
.s-stage-body .w-compare {
  flex: 1;
  min-height: 0;
  width: 100%;
  border: 0;
  border-radius: 0;
}
.s-stage-body .w-doc {
  overflow: auto;
  padding: 20px 24px;
}
.g-decide {
  margin-top: 12px;
  max-width: 640px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--amber-c);
  background: var(--amber-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.g-decide .g-kicker {
  font-size: 12px;
  font-weight: 600;
  color: var(--amber-text);
}
.g-decide h3 {
  font-size: 16px;
  font-weight: 600;
}
.g-decide p {
  font-size: 14px !important;
  color: var(--text2);
}
.g-decide .w-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.g-decide .g-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.g-strong,
.g-quiet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}
.g-strong {
  background: var(--primary);
  color: var(--on-primary);
}
.g-strong-ico {
  display: none;
}
.g-quiet {
  border: 1px solid var(--line2);
  background: var(--btn);
  color: var(--text);
}
.s-rail {
  flex: 0 0 292px;
  max-width: 100%;
  box-sizing: border-box;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.s-rail-sec {
  padding: 18px 20px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.s-rail-sec:first-child {
  border-top: 0;
}
.s-rail h2 {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text3);
}
.s-rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.s-rail-head small {
  font-size: 12px;
  color: var(--text3);
}
.s-kv {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
}
.s-kv > span:first-child {
  flex: none;
  width: 104px;
  color: var(--text3);
}
.s-kv > span:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.s-kv b {
  font-weight: 500;
}
.s-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}
.s-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
}
.s-steps b {
  flex: 1;
  font-weight: 400;
}
.s-steps small {
  font-size: 12px;
  color: var(--text3);
}
.s-steps li.next {
  color: var(--text3);
}
.s-steps li.now {
  margin: 2px -8px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--amber-soft);
}
.s-steps li.now b {
  font-weight: 500;
}
.s-steps li.now small {
  color: var(--amber-text);
}
.s-touch {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
}
.s-touch span {
  display: flex;
  flex-direction: column;
}
.s-touch small {
  font-size: 12px;
  color: var(--text3);
}
.s-tabpage {
  padding: 26px 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.s-tabpage h2 {
  font-size: 20px;
  letter-spacing: -0.015em;
}
.s-tabpage p {
  margin-top: 4px;
  color: var(--text2);
}
.s-checks > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border-top: 1px solid var(--line);
}
.s-checks > div:first-child {
  border-top: 0;
}
.s-checks strong {
  flex: 1;
  font-weight: 500;
}
.s-checks small {
  font-size: 13px;
  color: var(--text3);
}
.s-history {
  max-width: 680px;
  gap: 18px;
}
.s-history strong {
  font-weight: 500;
}
.s-thread .w-working,
.s-legacy .w-working {
  margin-top: 8px;
}

/* ---- Settings, and the new-task dialog ---- */
.s-settings {
  gap: 0;
  padding-top: 0;
}
.s-set {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.s-set > div:first-child {
  flex: 0 0 260px;
  max-width: 100%;
}
.s-set h2 {
  font-size: 15px;
  font-weight: 600;
}
.s-set p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text3);
}
.s-setrows {
  flex: 1 1 420px;
  min-width: 0;
  max-width: 680px;
  overflow: hidden;
}
.s-setrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  min-height: 60px;
  padding: 8px 16px;
  border-top: 1px solid var(--line);
}
.s-setrow:first-child {
  border-top: 0;
}
.s-setrow > span:first-child {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.s-setrow strong {
  font-weight: 500;
}
.s-setrow small {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text3);
}
.s-val {
  color: var(--text2);
}
.s-newtask {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.s-newtask > label,
.s-newtask legend {
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
}
.s-newtask textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line2);
  background: var(--panel);
  font-size: 15px;
  line-height: 1.5;
  resize: vertical;
}
.s-newtask fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.s-newtask legend {
  padding: 0 0 8px;
}
.s-newtask fieldset label {
  position: relative;
}
.s-newtask fieldset input {
  position: absolute;
  opacity: 0;
}
.s-newtask fieldset span {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line2);
  font-size: 13px;
  color: var(--text2);
  cursor: pointer;
}
.s-newtask fieldset input:checked + span {
  border-color: var(--text);
  background: var(--soft);
  color: var(--text);
  font-weight: 500;
}
.s-newtask fieldset input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.s-newtask .s-acts {
  justify-content: flex-end;
}

/* ---- The older pages, inside the panel ---- */
.s-legacy {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
}
.s-legacy .w-page {
  width: 100%;
  margin: 0;
  padding: 4px 0 16px;
}
.s-legacy .w-room,
.s-legacy .g-canvas {
  min-height: calc(100dvh - 150px);
}
.s-legacy.team {
  padding-bottom: 0;
}
.s-panel > .s-composer {
  margin: 12px 24px 20px;
}
dialog.dialog {
  border-color: var(--line2);
  border-radius: 16px;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--pop-shadow);
}
dialog.dialog::backdrop {
  background: var(--scrim);
  backdrop-filter: none;
}
#toast {
  background: var(--primary);
  color: var(--on-primary);
}
.dialog .button.danger {
  border-color: var(--red-c);
  background: var(--red-c);
  color: #ffffff;
}

/* ---- Signing in, and choosing an app ---- */
.si-page {
  box-sizing: border-box;
  display: flex;
  min-height: 100dvh;
  padding: 12px;
  background: var(--page) var(--wash) no-repeat;
  color: var(--text);
}
.si-side {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 28px 40px;
}
.si-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}
.si-main {
  flex: 1;
  display: flex;
  align-items: center;
  outline: none;
}
.si-form {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.si-form h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.si-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.si-sub {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text2);
}
.si-sub strong {
  font-weight: 600;
  color: var(--text);
}
.si-field,
.p-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.si-field label,
.si-code legend,
.p-field label,
.p-label {
  padding: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
}
.si-input,
.p-input {
  box-sizing: border-box;
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line2);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.si-input:focus,
.si-digit:focus,
.p-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}
.si-form .s-btn.lg {
  min-height: 46px;
  font-size: 15px;
}
.si-form .s-btn:disabled {
  opacity: 0.6;
}
.si-problem {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--red-text);
}
.si-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.si-code {
  margin: 0;
  padding: 0;
  border: 0;
}
.si-code legend {
  margin-bottom: 8px;
}
.si-boxes {
  display: flex;
  align-items: center;
  gap: 8px;
}
.si-digit {
  box-sizing: border-box;
  flex: 1 1 0;
  min-width: 0;
  max-width: 48px;
  height: 56px;
  border-radius: 10px;
  border: 1px solid var(--line2);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
}
.si-dash {
  flex: none;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--line2);
}
.si-form .s-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-text);
  cursor: pointer;
}
.si-apps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.si-app {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line2);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.si-app:hover {
  background: var(--hover);
  border-color: var(--text3);
}
.si-app .s-avatar {
  border-radius: 10px;
}
.si-app-name {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.si-app-name strong {
  font-size: 15px;
  font-weight: 500;
}
.si-app-name small {
  font-size: 13px;
  color: var(--text3);
}
.si-art {
  flex: 1 1 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  border-radius: 14px;
  background:
    radial-gradient(520px 380px at 85% 10%, rgba(111, 208, 176, 0.28), rgba(111, 208, 176, 0) 70%),
    radial-gradient(420px 320px at 0% 100%, rgba(31, 163, 127, 0.22), rgba(31, 163, 127, 0) 70%), #0d1211;
}
.si-art > div {
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.si-kicker {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #8fe3c6;
}
.si-line {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: #edf1ef;
}

/* ---- People ---- */
.s-setrow > span.p-who {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.p-id {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.p-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 11px;
  font-weight: 600;
  vertical-align: 1px;
}
.p-envs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.p-envs span {
  padding: 1px 7px;
  border-radius: 6px;
  border: 1px solid var(--line2);
  font-size: 12px;
  color: var(--text2);
}
.p-form {
  gap: 16px;
}
.p-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.p-input {
  height: 42px;
  padding: 0 12px;
}
.p-static {
  display: flex;
  align-items: center;
  min-height: 42px;
  font-size: 15px;
  color: var(--text2);
  overflow-wrap: anywhere;
}
.s-newtask fieldset input:disabled + span {
  cursor: default;
  opacity: 0.7;
}
.p-danger {
  color: var(--red-text);
}

/* ---- Phone ---- */
@media (max-width: 820px) {
  .si-art {
    display: none;
  }
  .si-side {
    padding: 20px 16px;
  }
  .p-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .s-side {
    position: fixed;
    z-index: 30;
    inset: 0 auto 0 0;
    width: min(288px, 86vw);
    background: var(--page);
    box-shadow: var(--pop-shadow);
    transform: translateX(-105%);
    transition: transform 0.18s ease;
  }
  .s-app.menu-open .s-side {
    transform: none;
  }
  .s-app.menu-open .s-scrim {
    display: block;
    position: fixed;
    z-index: 20;
    inset: 0;
    background: var(--scrim);
  }
  .s-top {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 8px;
    font-weight: 600;
  }
  .s-forchip {
    min-height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    background: var(--amber-soft);
    font-size: 13px;
    font-weight: 500;
    color: var(--amber-text);
  }
  .s-main {
    padding: 0 8px 8px;
  }
  .s-body,
  .s-thread,
  .s-tabpage {
    padding: 18px 14px;
  }
  .s-split {
    flex-direction: column;
  }
  .s-rail {
    flex: none;
    border: 0;
    border-top: 1px solid var(--line);
  }
  .s-taskmain {
    flex: none;
  }
  .s-task {
    flex-wrap: wrap;
    padding: 8px 10px 8px 12px;
  }
  .s-task-main {
    flex: 1 1 60%;
  }
  .s-task-stage,
  .s-task-team {
    width: auto;
  }
  /* On a phone the bar stacks: the page and its buttons, then the box across the full width. */
  .s-bar {
    justify-content: space-between;
  }
  .s-bar-lead,
  .s-bar-acts {
    flex: 0 1 auto;
    flex-wrap: wrap;
    min-width: 0;
  }
  .s-bar h1 {
    max-width: none;
    white-space: normal;
  }
  .s-ask {
    order: 1;
    flex-basis: 100%;
    max-width: none;
  }
  .s-track li {
    font-size: 11px;
  }
  .s-ask kbd,
  .s-cal-grid {
    display: none;
  }
  .s-agenda {
    display: flex;
  }
  .s-stage-body {
    height: 380px;
  }
  .s-legacy {
    padding: 14px 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .s-side {
    transition: none;
  }
}

/* ---- Ask Warden ---- */
.s-taskmain > .s-composer {
  margin: 0 28px 20px;
}
.s-msg .w-msg-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text2);
}
.s-thread .w-drawer-note {
  margin-top: auto;
  text-align: center;
}
.s-rail .s-detail-head {
  align-items: center;
}
.s-rail .s-detail-head h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.s-rail .s-gap {
  margin-top: 14px;
}
.s-rail .g-chats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 -8px;
}
.s-rail .g-chats button {
  min-height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--text2);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s-rail .g-chats button.active {
  background: var(--sel);
  color: var(--text);
  font-weight: 500;
}
.s-rail .s-chips {
  margin-top: 0;
}

/* ---- Your app: readiness ---- */
.s-legacy .w-checks.s-checkspage {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: -20px -24px 0;
  padding: 0 0 20px;
}
.s-checkspage > section,
.s-checkspage > details {
  margin: 0 24px;
}
.s-openchecks {
  overflow: hidden;
}
.s-openchecks .s-card-head {
  padding: 10px 14px;
  background: var(--soft);
}
.s-openchecks .s-card-head > small {
  text-align: right;
}
.s-checkrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 4px 14px;
  border-top: 1px solid var(--line);
}
.s-checkrow .s-row-main {
  text-align: left;
}
.s-checkmore {
  flex: 1 1 100%;
  margin: 0 0 10px 28px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--text2);
  font-size: 13px;
  line-height: 1.6;
}
.s-checkmore ul {
  margin: 6px 0;
  padding-left: 18px;
}
.s-cgrid {
  columns: 3 240px;
  column-gap: 12px;
}
.s-cgroup {
  break-inside: avoid;
  margin-bottom: 12px;
  padding: 14px 16px 16px;
}
.s-cgroup h3 {
  font-size: 14px;
  font-weight: 600;
}
.s-cgroup .s-card-head small {
  font-size: 12px;
  color: var(--text3);
}
.s-cgroup .s-card-head small.warn {
  color: var(--amber-text);
  font-weight: 500;
}
.s-cgroup ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text2);
}
.s-cgroup li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.s-cgroup li .s-g {
  margin-top: 1px;
}

/* ---- Switches, the first read in New task, search groups ---- */
.s-switch {
  flex: none;
  display: flex;
  justify-content: flex-start;
  width: 40px;
  height: 24px;
  box-sizing: border-box;
  padding: 2px;
  border-radius: 999px;
  background: var(--track);
}
.s-switch[aria-checked="true"] {
  justify-content: flex-end;
  background: var(--accent);
}
.s-switch i {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.s-read {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--soft);
  font-size: 13px;
  color: var(--text2);
}
.s-asksplit .w-team-chat,
.s-asksplit .w-profile {
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
}
.s-asksplit .w-team-chat {
  border: 0;
}
.s-tabs.w-channels button {
  border: 0;
  background: none;
}
.s-tabs.w-channels button.on {
  background: var(--sel);
}
.s-thread .x-button.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--on-primary);
}

/* ---- A connected app: Your app, costs, and what is true of a task right now ---- */
/* Said across the top of every page while the board on screen is not being kept up to date. */
.s-stale {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 28px;
  border-bottom: 1px solid var(--line2);
  background: var(--amber-soft);
  color: var(--amber-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}
.s-stale .s-g {
  flex: none;
  margin-top: 1px;
  color: var(--amber-c);
}
.s-livepage {
  max-width: 880px;
  gap: 16px;
}
.s-livevital .s-verdict {
  cursor: default;
}
.s-livenotes {
  display: grid;
  gap: 6px;
  padding: 0 20px 18px 78px;
  color: var(--text2);
  line-height: 1.5;
}
.s-livenotes p {
  margin: 0;
}
.s-rowcard .s-card-head {
  padding: 14px 16px 10px;
}
.s-rows > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 16px;
  box-sizing: border-box;
  border-top: 1px solid var(--line);
}
.s-rows .s-g {
  flex: none;
  color: var(--text3);
}
.s-rows .s-g.done {
  color: var(--green-c);
}
.s-rows .s-g.stuck {
  color: var(--red-c);
}
.s-rows > div > span {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}
.s-rows strong {
  font-weight: 500;
  color: var(--text);
  overflow-wrap: anywhere;
}
.s-rows small {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text3);
}
.s-rows b {
  flex: none;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.s-rowcard > .s-pad {
  padding: 12px 16px 16px;
}
.s-rowcard > .s-rows + .s-pad {
  border-top: 1px solid var(--line);
}
.s-rowcard .s-quiet strong {
  color: var(--text);
}
/* The month's total, and what it does not include: said as plainly as the figures above it. */
.s-rowcard > .s-total {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.s-rowcard > .s-total + .s-pad {
  padding-top: 0;
  border-top: 0;
}
.s-caveat {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 13px 13px;
  background: var(--amber-soft);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text2);
}
.s-caveat p {
  margin: 0;
}
.s-caveat strong {
  font-weight: 600;
  color: var(--amber-text);
}
.s-caveat ul {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  padding: 0 0 0 18px;
}
.s-caveat li {
  overflow-wrap: anywhere;
}
/* What is true of one task right now, under what the team said about it. */
.s-facts {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  max-width: 560px;
  list-style: none;
}
.s-facts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line2);
  color: var(--text2);
  line-height: 1.5;
}
.s-facts .s-g {
  flex: none;
  margin-top: 2px;
  color: var(--text3);
}
.s-facts .s-g.done {
  color: var(--green-c);
}
.s-facts .s-g.stuck {
  color: var(--red-c);
}
.s-facts .s-g.waiting,
.s-facts .s-g.working {
  color: var(--amber-c);
}
.s-facts span {
  min-width: 0;
  overflow-wrap: anywhere;
}
/* A confirmation names the task it is about, and lists what a deploy carries. */
.s-confirm-task {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--text);
  font-weight: 500;
  overflow-wrap: anywhere;
}
.s-ships {
  margin: 8px 0 12px;
  padding-left: 20px;
  line-height: 1.6;
  color: var(--text);
}
.s-confirm-note {
  margin-top: 10px;
}
@media (max-width: 820px) {
  .s-stale {
    padding: 10px 16px;
  }
  .s-livenotes {
    padding: 0 16px 16px;
  }
}

/* ---- Setting up: a founder before they are a client (live/setup.js) ---- */
.su-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--page) var(--wash) no-repeat;
  color: var(--text);
}
.su-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  padding: 20px 32px;
}
.su-brand,
.su-me {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  min-width: 0;
}
.su-brand span {
  color: var(--text3);
}
.su-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 24px 16px 56px;
  outline: none;
}
.su-card {
  width: 100%;
  max-width: 460px;
  box-sizing: border-box;
  background: var(--panel);
  box-shadow: var(--panel-shadow);
  border-radius: 20px;
  overflow: hidden;
}
.su-in {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.su-h {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.su-p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text2);
}
.su-acts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.su-acts .s-btn {
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
}
.su-q {
  margin: 0;
  color: var(--text3);
  font-size: 13px;
}
.su-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.su-box div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.su-box small {
  color: var(--text3);
  font-size: 13px;
}
.su-hero {
  position: relative;
  height: 196px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
}
.su-hero.slim {
  height: 48px;
}
.su-hero .s-pill {
  position: absolute;
  top: 16px;
  left: 16px;
}
.su-hero.slim .s-pill {
  top: 12px;
}
.su-n {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 12px;
  color: var(--accent-text);
  font-weight: 600;
}
.su-hero.slim .su-n {
  top: 15px;
}
.su-pic {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}
.su-end {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 84px;
}
.su-tile {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  box-shadow:
    var(--tile-shadow),
    0 6px 18px rgba(20, 18, 28, 0.1);
  color: var(--text);
}
.su-cap {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-text);
  white-space: nowrap;
}
.su-link {
  position: relative;
  width: 132px;
  height: 30px;
  display: flex;
  align-items: center;
  margin-bottom: 22px;
  color: var(--accent);
}
.su-line {
  position: absolute;
  left: 4px;
  right: 6px;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, currentColor 0 6px, transparent 6px 12px);
  background-size: 12px 2px;
}
.su-arrow {
  position: absolute;
  right: 0;
  top: 9px;
}
.su-chip {
  position: relative;
  margin: 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  box-shadow: 0 0 0 1.5px currentColor;
  color: var(--accent-text);
}
.su-off .su-link,
.su-off .su-chip {
  color: var(--text3);
}
.su-dots {
  display: flex;
  gap: 6px;
}
.su-dots i {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--track);
  transition: width 0.2s;
}
.su-dots i.done {
  background: var(--accent);
  opacity: 0.5;
}
.su-dots i.now {
  width: 24px;
  background: var(--accent);
}
@media (prefers-reduced-motion: reduce) {
  .su-dots i {
    transition: none;
  }
}
@media (max-width: 820px) {
  .su-top {
    padding: 16px;
  }
  .su-in {
    padding: 24px 20px;
  }
}
@media (max-width: 480px) {
  .su-me > span:not(.s-avatar) {
    display: none;
  }
  .su-link {
    width: 84px;
  }
  .su-end {
    width: 72px;
  }
  .su-tile {
    width: 56px;
    height: 56px;
  }
}

/* ---- Warden's team: Setups (live/staff.js) ---- */
.st-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.st-me {
  flex: 1;
  min-width: 0;
  cursor: default;
}
