/*
 * Ambient Assist: the organisation admin dashboard (/admin/).
 *
 * The website's look (website/static/styles.css): its theme tokens, tracked
 * small capitals, 22 px bordered panels, segmented controls and the orb,
 * dark by default. System fonts, nothing loaded from anywhere else.
 */

/* Theme tokens: the website's -------------------------------------------- */

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070b14;
  --panel: #0b1221;
  --raised: #0f1729;
  --line: #172033;
  --edge: #1d2740;
  --edge-strong: #2a3654;
  --text: #eef2fa;
  --text-2: #a5b1c8;
  --text-3: #7d8aa4;
  --accent: #4353f5;
  --accent-hover: #5563ff;
  --accent-text: #8e9bff;
  --seg-active: #1d2851;
  --dot: #5b8cff;
  --ok: #4ad39b;
  --warn: #ffb65c;
  --danger: #ff8796;
  --scrim: rgba(3, 6, 14, 0.66);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f5f9;
  --panel: #ffffff;
  --raised: #f5f7fb;
  --line: #e6eaf0;
  --edge: #dce2eb;
  --edge-strong: #cdd5e2;
  --text: #0e1430;
  --text-2: #4a5670;
  --text-3: #5e6a82;
  --accent: #4353f5;
  --accent-hover: #3645e8;
  --accent-text: #3442e0;
  --seg-active: #e3e8f6;
  --dot: #4f7cff;
  --ok: #0b7a4f;
  --warn: #b45d00;
  --danger: #b4233a;
  --scrim: rgba(14, 20, 48, 0.4);
  --shadow: 0 30px 80px rgba(14, 20, 48, 0.18);
}

:root {
  --font: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, Menlo, monospace;
}

/* Base -------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
}

.page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent-text);
}

a:hover {
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 40;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 16px;
}

.noscript {
  padding: 40px 16px;
  text-align: center;
}

.label {
  color: var(--text-3);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.mono {
  font-family: var(--mono);
  font-size: 12.5px;
}

.muted {
  color: var(--text-3);
}

.count {
  color: var(--text-3);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.verdict {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 10%, transparent);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: 1px;
}

.verdict-accent { color: var(--accent-text); }
.verdict-ok { color: var(--ok); }
.verdict-warn { color: var(--warn); }
.verdict-muted { color: var(--text-3); }
.verdict-danger { color: var(--danger); }

/* Buttons and controls ---------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-quiet {
  border-color: var(--edge-strong);
  background: var(--raised);
  color: var(--text);
}

.btn-quiet:hover {
  border-color: var(--text-3);
  color: var(--text);
}

.btn-danger {
  border-color: color-mix(in srgb, var(--danger) 55%, transparent);
  background: transparent;
  color: var(--danger);
}

.btn-danger:hover {
  background: color-mix(in srgb, var(--danger) 12%, transparent);
}

.btn-danger-fill {
  background: var(--danger);
  color: #0b0f19;
}

[data-theme="light"] .btn-danger-fill {
  color: #fff;
}

.btn-sm {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.text-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--edge-strong);
  border-radius: 10px;
  background: var(--raised);
}

.seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}

.seg-btn:hover {
  background: color-mix(in srgb, var(--seg-active) 55%, transparent);
}

.seg-btn[aria-pressed="true"] {
  background: var(--seg-active);
}

.seg-sm {
  padding: 3px;
}

.seg-sm .seg-btn {
  min-height: 30px;
  padding: 0 11px;
  font-size: 13px;
}

@media (pointer: coarse) {
  .seg-btn,
  .seg-sm .seg-btn {
    min-height: 40px;
  }
}

.field {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--edge-strong);
  border-radius: 10px;
  background: var(--raised);
  color: var(--text);
  font-size: 14px;
}

.field::placeholder {
  color: var(--text-3);
}

.field:disabled {
  opacity: 0.6;
}

textarea.field {
  padding: 12px 14px;
  line-height: 1.6;
  resize: vertical;
}

select.field {
  padding-right: 10px;
}

.sel {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--edge-strong);
  border-radius: 8px;
  background: var(--raised);
  color: var(--text);
  font-size: 13.5px;
}

.sel:disabled {
  opacity: 0.6;
}

.switch {
  position: relative;
  flex: none;
  width: 46px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--edge-strong);
  border-radius: 999px;
  background: var(--raised);
  cursor: pointer;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text-3);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.switch[aria-checked="true"] {
  border-color: var(--accent);
  background: var(--accent);
}

.switch[aria-checked="true"]::after {
  transform: translateX(18px);
  background: #fff;
}

.switch:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* The frame ---------------------------------------------------------------- */

.wrap {
  width: min(100% - 48px, 1280px);
  margin-inline: auto;
}

.topbar {
  border-bottom: 1px solid var(--line);
}

.topin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}

.wordmark {
  font-size: 19px;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.wordmark b {
  font-weight: 700;
}

.wordmark span {
  font-weight: 300;
}

.top-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.org-pick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.org-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.org-pick .sel {
  max-width: 220px;
}

.org-name {
  font-size: 14px;
  font-weight: 600;
}

.me {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-size: 13px;
}

.avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--seg-active);
  color: var(--accent-text);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.avatar-sm {
  width: 24px;
  height: 24px;
  font-size: 10px;
}

.avatar-ghost {
  border: 1px dashed var(--edge-strong);
  background: var(--raised);
  color: var(--text-3);
}

.shell {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 28px;
  padding: 28px 0 96px;
}

.side {
  display: flex;
  flex: 1 1 220px;
  flex-direction: column;
  gap: 22px;
  max-width: 252px;
}

/* Beside the page, the menu stays in view while the page scrolls under it
   (a long menu in a short window scrolls on its own). It sits beside the
   page once the frame has the menu's 220 + the gap's 28 + the page's 560
   px inside its 48 px of margins and the window's scrollbar (856 px and a
   scrollbar's 17 or so: 900 leaves room). Narrower, the page wraps below
   the menu, where a menu that stayed put would cover it. */
@media (min-width: 900px) {
  .side {
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  /* inside the menu's own box: a ring drawn outside a link would be cut */
  .side .navlink:focus-visible {
    outline-offset: -2px;
  }
}

.navgroup {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
}

.navlink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--text-2);
  font-size: 14px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.navlink:hover {
  background: var(--raised);
  color: var(--text);
}

.navlink[aria-current="page"],
.navlink[aria-current="true"] {
  background: var(--seg-active);
  color: var(--text);
  font-weight: 600;
}

.main {
  display: flex;
  flex: 999 1 560px;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.headrow {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
}

.headrow > div:first-child {
  max-width: 680px;
}

.title {
  margin-top: 10px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.018em;
}

.lead {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 15px;
}

.saved-line {
  margin-top: 8px;
  color: var(--text-3);
  font-size: 13px;
}

/* Panels ------------------------------------------------------------------- */

.panel {
  border: 1px solid var(--edge);
  border-radius: 22px;
  background: var(--panel);
  overflow: hidden;
  scroll-margin-top: 24px;
}

.phead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 20px 22px 18px;
}

.ptitle {
  margin-top: 8px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.psub {
  max-width: 640px;
  margin-top: 4px;
  color: var(--text-2);
  font-size: 14px;
}

.pfoot {
  padding: 14px 22px 18px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 13px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fact {
  padding: 18px 22px 20px;
}

.fact + .fact {
  border-left: 1px solid var(--line);
}

.fact-n {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.fact-text {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.fact-note {
  color: var(--text-2);
  font-size: 13px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 18px 22px;
}

.toolbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.search {
  width: 240px;
  min-height: 40px;
}

/* Tables ------------------------------------------------------------------- */

.tblbox {
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.tbl th {
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--text-3);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.tbl td {
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.tbl tr:last-child td {
  border-bottom: 0;
}

.tbl .c-act {
  text-align: right;
  white-space: nowrap;
}

.tbl .c-act .btn + .btn {
  margin-left: 6px;
}

.who {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.who-text {
  min-width: 0;
}

.who-name {
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.who-sub {
  color: var(--text-3);
  overflow-wrap: anywhere;
}

.empty {
  padding: 28px 22px 32px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 14px;
}

/* Settings rows ------------------------------------------------------------ */

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
}

.row-text {
  flex: 1 1 300px;
  min-width: 0;
}

.row-title {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
}

.row-help {
  margin-top: 3px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.5;
}

.row-warn {
  margin-top: 4px;
  color: var(--warn);
  font-size: 13px;
}

.ctl {
  display: flex;
  flex: 0 1 380px;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.ctl-end {
  align-items: flex-end;
}

.ctl-row {
  display: flex;
  gap: 8px;
}

.group {
  padding: 12px 22px 4px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
}

.group span {
  color: var(--text-3);
  font-weight: 400;
}

.content-box {
  margin: 8px 22px 18px;
  border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--warn) 6%, transparent);
  overflow: hidden;
}

.content-box .row {
  border-color: color-mix(in srgb, var(--warn) 22%, transparent);
}

.content-box .row:first-child {
  border-top: 0;
}

.tiers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 4px 22px 22px;
}

.tier {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 44px;
  padding: 14px;
  border: 1px solid var(--edge-strong);
  border-radius: 14px;
  background: var(--raised);
  text-align: left;
  cursor: pointer;
}

.tier[aria-pressed="true"] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--raised));
  box-shadow: inset 0 0 0 1px var(--accent);
}

.tier-name {
  font-size: 14.5px;
  font-weight: 600;
}

.tier-help {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.45;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 6px 0 12px;
  border: 1px solid var(--edge-strong);
  border-radius: 999px;
  background: var(--raised);
  font-size: 13px;
}

.chip button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
}

.chip button:hover {
  background: var(--seg-active);
  color: var(--text);
}

.picks {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.prompt-edit {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 22px 18px;
}

.prompt-edit textarea {
  min-height: 260px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.65;
}

.prompt-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  color: var(--text-3);
  font-size: 12.5px;
}

.local {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.local > div {
  padding: 16px 22px 20px;
}

.local > div + div {
  border-left: 1px solid var(--line);
}

/* The slot sticks (its containing block is the page's column); the bar
   inside it is only drawn while there is something to save. */
.savebar-slot {
  position: sticky;
  bottom: 16px;
  z-index: 10;
}

.savebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 12px 12px 20px;
  border: 1px solid var(--edge-strong);
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.savebar-actions {
  display: flex;
  gap: 8px;
}

/* Dialogs ------------------------------------------------------------------ */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--scrim);
  overflow-y: auto;
}

.dialog {
  width: min(100%, 540px);
  border: 1px solid var(--edge-strong);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.dialog-head {
  padding: 22px 22px 0;
}

.dialog-title {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.dialog-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 22px 22px;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
}

.note {
  color: var(--text-3);
  font-size: 13px;
}

.ticks {
  display: grid;
  gap: 10px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
}

.ticks li {
  display: flex;
  gap: 10px;
}

.ticks li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  margin-top: 0.6em;
  border-radius: 50%;
  background: var(--dot);
}

.results {
  display: grid;
  gap: 10px;
}

.result {
  padding: 12px 14px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--raised);
}

.result-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
}

.copy {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.copy code {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--edge);
  border-radius: 8px;
  background: var(--panel);
  font-family: var(--mono);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.code-big {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* Forms in panels (the organisation's overview and sign-in; the account
   pages) -------------------------------------------------------------------- */

/* a panel's body when it holds a form, not a table */
.pbody {
  display: grid;
  gap: 14px;
  padding: 0 22px 22px;
}

.pbody:empty {
  display: none;
}

/* a part of a panel, under a line of its own */
.section {
  display: grid;
  gap: 10px;
  padding: 18px 22px 20px;
  border-top: 1px solid var(--line);
}

.section-title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
}

.section-sub {
  max-width: 640px;
  color: var(--text-2);
  font-size: 13.5px;
}

.form,
.fields {
  display: grid;
  gap: 12px;
}

.form > .seg {
  justify-self: start;
}

/* fields side by side, the button at their foot */
.formrow {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 12px;
}

.formrow > .stack {
  flex: 1 1 240px;
  min-width: 0;
}

.formrow > .btn {
  min-height: 40px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* something to copy, under its name */
.copyrow {
  display: grid;
  gap: 2px;
}

.copyrow .copy {
  margin-top: 0;
}

/* the organisation's domains */
.domains {
  border-top: 1px solid var(--line);
}

.domain {
  display: grid;
  gap: 10px;
  padding: 16px 22px;
}

.domain + .domain {
  border-top: 1px solid var(--line);
}

.domain-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.domain-name {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.domain .copy code {
  background: var(--raised);
}

/* what a sign-in is */
.kv {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 18px;
  margin: 0;
  font-size: 14px;
}

.kv dt {
  color: var(--text-3);
}

.kv dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

/* what cannot be undone */
.danger-zone {
  border-color: color-mix(in srgb, var(--danger) 35%, var(--edge));
}

.danger-zone .ptitle {
  color: var(--danger);
}

/* Signed out, loading, problems -------------------------------------------- */

.center {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px 16px;
}

.signin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: min(100%, 440px);
  padding: 40px 28px 32px;
  border: 1px solid var(--edge);
  border-radius: 22px;
  background: var(--panel);
  text-align: center;
}

.signin .wordmark {
  margin-top: 10px;
  font-size: 34px;
}

.signin .tagline {
  color: var(--text-2);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.signin .btn {
  width: 100%;
  margin-top: 10px;
}

.notice {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--edge-strong);
  border-radius: 12px;
  background: var(--raised);
  color: var(--text-2);
  font-size: 14px;
  text-align: left;
}

.notice-error {
  border-color: color-mix(in srgb, var(--danger) 55%, transparent);
  color: var(--text);
}

.loading {
  padding: 40px 0;
  color: var(--text-3);
}

.toasts {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: grid;
  gap: 8px;
  width: min(100% - 32px, 420px);
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px 12px 16px;
  border: 1px solid var(--edge-strong);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
  font-size: 14px;
}

.toast span {
  flex: 1 1 auto;
}

.toast-ok {
  border-color: color-mix(in srgb, var(--ok) 55%, transparent);
}

.toast-error {
  border-color: color-mix(in srgb, var(--danger) 60%, transparent);
}

.x {
  flex: none;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--text-3);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.x:hover {
  background: var(--raised);
  color: var(--text);
}

/* The orb (the website's, still) ------------------------------------------- */

.orb {
  --w: max(1.4px, 0.014em);
  position: relative;
  flex: none;
  width: 1em;
  height: 1em;
  font-size: 26px;
  line-height: 0;
}

.orb i {
  position: absolute;
  display: block;
}

.orb-halo {
  inset: 14%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(70, 118, 255, 0.5), rgba(96, 76, 255, 0.26) 52%, rgba(150, 80, 255, 0));
}

.orb-ring {
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 92deg, #ffd2f6 0deg, #f38af0 16deg, #d45cf4 45deg, #9848fa 80deg, #6a40ff 105deg, rgba(80, 64, 255, 0.4) 128deg, rgba(60, 84, 255, 0.1) 144deg, rgba(56, 104, 255, 0.55) 162deg, #3a6cff 184deg, #3f86ff 232deg, #58a6ff 272deg, #9ad8ff 312deg, #c8ecff 332deg, transparent 332deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(80% - var(--w) / 2 - 0.5px), #000 calc(80% - var(--w) / 2 + 0.5px), #000 calc(80% + var(--w) / 2 - 0.5px), transparent calc(80% + var(--w) / 2 + 0.5px));
  mask: radial-gradient(closest-side, transparent calc(80% - var(--w) / 2 - 0.5px), #000 calc(80% - var(--w) / 2 + 0.5px), #000 calc(80% + var(--w) / 2 - 0.5px), transparent calc(80% + var(--w) / 2 + 0.5px));
}

.orb-sat {
  top: 41.684%;
  left: 89.126%;
  width: max(3px, 0.092em);
  height: max(3px, 0.092em);
  margin: calc(max(3px, 0.092em) / -2) 0 0 calc(max(3px, 0.092em) / -2);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffff 0%, #d9f6ff 22%, #bcc8ff 56%, #f29be9 100%);
  box-shadow: 0 0 max(2px, 0.018em) rgba(255, 255, 255, 0.8), 0 0 max(5px, 0.06em) rgba(170, 140, 255, 0.75);
}

.orb-core {
  top: 23%;
  left: 23%;
  width: 54%;
  height: 54%;
  border-radius: 50%;
  background:
    radial-gradient(55% 45% at 72% 14%, rgba(246, 232, 255, 0.8) 0%, rgba(226, 204, 255, 0.36) 42%, rgba(210, 180, 255, 0) 76%),
    radial-gradient(100% 100% at 22% 30%, rgba(255, 110, 230, 0) 56%, rgba(255, 112, 228, 0.85) 78%, rgba(255, 214, 246, 0.95) 92%),
    radial-gradient(80% 55% at 42% 102%, rgba(20, 8, 110, 0.7) 0%, rgba(20, 8, 110, 0) 72%),
    radial-gradient(100% 100% at 74% 80%, rgba(90, 225, 255, 0) 56%, rgba(92, 226, 255, 0.85) 78%, rgba(214, 255, 255, 0.95) 92%),
    linear-gradient(140deg, #2f9bff 0%, #2956ff 26%, #2629e2 55%, #4419cc 78%, #9a34ee 100%);
}

.orb-lg {
  font-size: 120px;
}

.orb-lg .orb-halo {
  inset: 8%;
}

/* Narrow screens ------------------------------------------------------------ */

@media (max-width: 860px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact:nth-child(3) {
    border-left: 0;
  }

  .fact:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .tiers,
  .local {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .local > div:nth-child(3) {
    border-left: 0;
  }

  .local > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 32px, 1280px);
  }

  .shell {
    gap: 18px;
    padding-top: 16px;
  }

  /* the menu becomes rows that scroll sideways, never wider than the page */
  .side {
    flex-basis: 100%;
    min-width: 0;
    max-width: 100%;
    gap: 14px;
  }

  .side > div {
    min-width: 0;
  }

  .navgroup {
    flex-direction: row;
    gap: 6px;
    margin-top: 8px;
    padding-bottom: 2px;
    overflow-x: auto;
  }

  .navlink {
    flex: none;
    border: 1px solid var(--edge);
  }

  .navlink .count {
    display: none;
  }

  .title {
    font-size: 28px;
  }

  .headrow {
    flex-direction: column;
    align-items: stretch;
  }

  .search {
    width: 100%;
  }

  .toolbar-right {
    width: 100%;
  }

  .ctl {
    flex-basis: 100%;
  }

  .ctl-end {
    align-items: flex-start;
  }

  .chips,
  .picks {
    justify-content: flex-start;
  }

  .hide-sm {
    display: none;
  }

  .tbl thead {
    display: none;
  }

  .tbl tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }

  .tbl tr:last-child {
    border-bottom: 0;
  }

  .tbl td {
    padding: 0;
    border: 0;
  }

  .tbl td.c-wide {
    grid-column: 1 / -1;
  }

  .tbl td.c-meta {
    grid-column: 1 / -1;
    color: var(--text-2);
    font-size: 13px;
  }

  .tbl td.c-meta[data-label]::before {
    content: attr(data-label) " · ";
    color: var(--text-3);
  }

  /* a role's switch (Org, Team): said what it is, beside it */
  .tbl td.c-switch {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  .tbl td.c-switch[data-label]::before {
    content: attr(data-label);
    color: var(--text-3);
    font-size: 13px;
  }

  .tbl .c-act {
    grid-column: 1 / -1;
    text-align: left;
  }

  .phead,
  .row,
  .toolbar,
  .fact,
  .pfoot,
  .empty,
  .local > div,
  .pbody,
  .section,
  .domain {
    padding-right: 16px;
    padding-left: 16px;
  }

  .group {
    padding-right: 16px;
    padding-left: 16px;
  }

  .content-box {
    margin-right: 16px;
    margin-left: 16px;
  }

  .tiers {
    padding-right: 16px;
    padding-left: 16px;
  }

  .prompt-edit {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (max-width: 480px) {
  .tiers,
  .local {
    grid-template-columns: minmax(0, 1fr);
  }

  .local > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

/* A member's assistant (views.js): the desktop's tabs, on the web ------------- */

.vtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--edge-strong);
  border-radius: 12px;
  background: var(--raised);
}

.vtab {
  flex: none;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.vtab:hover {
  background: color-mix(in srgb, var(--seg-active) 55%, transparent);
  color: var(--text);
}

.vtab[aria-selected="true"] {
  background: var(--seg-active);
  color: var(--text);
}

.vtab:focus-visible,
.cal-day:focus-visible,
.cal-step:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.vbody {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.vempty {
  padding: 26px 22px 30px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 14px;
}

.vnote {
  margin: 0 22px 16px;
  color: var(--warn);
  font-size: 13px;
}

.pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.facts-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* a day: its entries, and the month beside them */

.day {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  align-items: start;
  gap: 24px;
}

.day-main {
  min-width: 0;
}

.day-head {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.day-title {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

.day-sub,
.day-count {
  margin-top: 2px;
  color: var(--text-3);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.cal {
  padding: 16px 16px 14px;
  border: 1px solid var(--edge);
  border-radius: 22px;
  background: var(--panel);
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.cal-month {
  font-size: 14px;
  font-weight: 600;
}

.cal-step {
  width: 32px;
  height: 32px;
  border: 1px solid var(--edge-strong);
  border-radius: 8px;
  background: var(--raised);
  color: var(--text);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}

.cal-dow {
  padding-bottom: 4px;
  color: var(--text-3);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.cal-day {
  position: relative;
  aspect-ratio: 1;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-3);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.cal-day:hover {
  background: var(--raised);
  color: var(--text);
}

.cal-has {
  color: var(--text);
  font-weight: 600;
}

.cal-has::after {
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--dot);
  content: "";
}

.cal-today {
  box-shadow: inset 0 0 0 1px var(--accent);
}

.cal-day[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
}

.cal-day[aria-pressed="true"]::after {
  background: #fff;
}

.cal-note {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 12.5px;
}

.cal-jump {
  font-size: 12.5px;
}

/* the timeline (and what intelligence learned when): a line of moments */

.tl {
  padding: 4px 22px 14px;
  border-top: 1px solid var(--line);
}

.tl-row {
  display: grid;
  grid-template-columns: 64px 14px minmax(0, 1fr);
  gap: 0 12px;
  padding: 10px 0;
}

.tl-row + .tl-row {
  border-top: 1px dashed var(--line);
}

.tl-time {
  padding-top: 1px;
  color: var(--text-3);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.tl-dot {
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--dot);
}

.tl-doing .tl-dot {
  border: 1.5px solid var(--text-3);
  background: transparent;
}

.tl-kind {
  color: var(--text-3);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tl-text p {
  margin-top: 1px;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.tl-doing .tl-text p {
  color: var(--text-2);
}

/* notes and action items: one card each */

/* a meeting's record (views.js: meetings): back to the list, its
   recordings' players, its transcript */
.vnav {
  margin: 0 0 12px;
}

.player:empty {
  display: none;
}

.player {
  margin-top: 10px;
}

.media {
  display: block;
  width: 100%;
  max-width: 720px;
  border-radius: 8px;
}

.transcript {
  list-style: none;
  margin: 0;
  padding: 0 22px 18px;
  display: grid;
  gap: 6px;
  line-height: 1.55;
}

.cards {
  display: grid;
  gap: 10px;
  padding: 0 22px 18px;
}

.card {
  padding: 13px 16px 14px;
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: var(--raised);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  color: var(--text-3);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.card-tag {
  color: var(--accent-text);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card-text {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.action {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.action-body {
  min-width: 0;
}

.action-check {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 2px solid var(--edge-strong);
  border-radius: 50%;
}

.action-done .action-check {
  border-color: var(--ok);
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22%3E%3Cpath d=%22M4 8.5l2.5 2.5L12 5.5%22 fill=%22none%22 stroke=%22white%22 stroke-width=%222.2%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E") center / 12px no-repeat;
}

.action-done .card-text {
  color: var(--text-2);
  text-decoration: line-through;
  text-decoration-color: var(--text-3);
}

.action-done .card-tag {
  color: var(--ok);
}

/* heads-ups (heads.py): amber while they stand */

.heads {
  border-color: color-mix(in srgb, var(--warn) 40%, var(--edge));
  background: color-mix(in srgb, var(--warn) 6%, var(--raised));
}

.heads .card-tag {
  color: var(--warn);
}

.heads-done {
  border-color: var(--edge);
  background: var(--raised);
}

.heads-done .card-tag {
  color: var(--text-3);
}

.heads-done .card-text {
  color: var(--text-2);
}

/* a journal citation, as what it points to (views.js: cite) */
.cite {
  display: inline-block;
  padding: 0 6px;
  border: 1px solid var(--edge);
  border-radius: 6px;
  background: var(--raised);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
  white-space: nowrap;
}

a.cite-link {
  text-decoration: none;
}

a.cite-link:hover {
  border-color: var(--edge-strong);
  color: var(--text);
}

/* a wiki page */

.wiki-head .ctl-row {
  flex-wrap: nowrap;
}

.wiki-body {
  padding: 4px 22px 20px;
  border-top: 1px solid var(--line);
}

.md {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.md > * + * {
  margin-top: 12px;
}

.md > :first-child {
  margin-top: 14px;
}

.md-h {
  font-weight: 650;
  line-height: 1.3;
}

h2.md-h {
  margin-top: 22px;
  font-size: 21px;
}

h3.md-h {
  margin-top: 20px;
  font-size: 17px;
}

h4.md-h,
h5.md-h,
h6.md-h {
  margin-top: 18px;
  font-size: 15px;
}

.md-list {
  display: grid;
  gap: 4px;
  padding-left: 22px;
}

ul.md-list {
  list-style: disc;
}

ol.md-list {
  list-style: decimal;
}

.md-list li::marker {
  color: var(--text-3);
}

.md-nested {
  margin-left: 20px;
}

.md-task {
  margin-left: -20px;
  list-style: none;
}

.md-check {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 8px;
  border: 1.5px solid var(--edge-strong);
  border-radius: 3px;
  vertical-align: -1px;
}

.md-checked {
  border-color: var(--ok);
  background: var(--ok);
}

.md code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--raised);
  font-family: var(--mono);
  font-size: 0.88em;
}

.md pre {
  padding: 12px 14px;
  overflow-x: auto;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--raised);
}

.md pre code {
  padding: 0;
  background: none;
}

.md blockquote {
  padding: 2px 0 2px 14px;
  border-left: 3px solid var(--edge-strong);
  color: var(--text-2);
}

.md hr {
  border: 0;
  border-top: 1px solid var(--line);
}

.md-table {
  overflow-x: auto;
}

.md-table table {
  border-collapse: collapse;
  font-size: 14px;
}

.md-table th,
.md-table td {
  padding: 6px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.md-table th {
  color: var(--text-2);
  font-weight: 600;
}

.md-link {
  text-decoration-color: color-mix(in srgb, var(--accent-text) 45%, transparent);
  text-underline-offset: 3px;
}

/* work: offers and jobs */

.jobs {
  display: grid;
}

.job {
  display: grid;
  gap: 8px;
  padding: 16px 22px 18px;
  border-top: 1px solid var(--line);
}

.job-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 16px;
}

.job-head > div:first-child {
  flex: 1 1 280px;
  min-width: 0;
}

.job-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.job-why {
  max-width: 720px;
  color: var(--text-2);
  font-size: 14px;
}

.job-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 4px 3px 10px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--raised);
  font-size: 12.5px;
}

.job-held {
  color: var(--text-2);
  font-size: 13px;
}

.job-result {
  max-width: 720px;
  padding: 10px 12px;
  border-left: 3px solid var(--edge-strong);
  border-radius: 0 10px 10px 0;
  background: var(--raised);
  color: var(--text-2);
  font-size: 13.5px;
}

.job-more {
  font-size: 13.5px;
}

.job-spec {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 16px;
  margin: 10px 0 0;
}

.job-spec dt {
  color: var(--text-3);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  line-height: 2.1;
  text-transform: uppercase;
}

.job-spec dd {
  margin: 0;
  color: var(--text-2);
}

.job-evidence {
  display: grid;
  gap: 2px;
  font-family: var(--mono);
  font-size: 12.5px;
}

.runs {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.run {
  padding: 10px 12px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--raised);
}

.run-out {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 13.5px;
}

@media (max-width: 980px) {
  .day {
    grid-template-columns: minmax(0, 1fr);
  }

  .cal {
    order: -1;
  }
}

@media (max-width: 760px) {
  .facts-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts-3 .fact + .fact {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .tl,
  .cards,
  .wiki-body,
  .job,
  .vempty {
    padding-right: 16px;
    padding-left: 16px;
  }

  .vnote {
    margin-right: 16px;
    margin-left: 16px;
  }

  .tl-row {
    grid-template-columns: 52px 12px minmax(0, 1fr);
    gap: 0 10px;
  }

  .job-spec {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* the chat (views.js): the conversation the desktop's window has ---------- */

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 160px;
  max-height: min(62vh, 640px);
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.chat-log:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.chat-log > .vempty {
  padding: 6px 0;
  border-top: 0;
}

.chat-more,
.chat-day {
  align-self: center;
}

.chat-day {
  margin: 6px 0 2px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chat-msg {
  max-width: min(82%, 680px);
  padding: 10px 14px 12px;
  border: 1px solid var(--edge);
  border-radius: 16px;
  background: var(--raised);
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.55;
}

.chat-you {
  align-self: flex-end;
  border-color: transparent;
  border-bottom-right-radius: 6px;
  background: var(--accent);
  color: #fff;
}

.chat-ai {
  align-self: flex-start;
  border-bottom-left-radius: 6px;
}

.chat-who {
  margin-bottom: 4px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
}

.chat-you .chat-who {
  color: rgba(255, 255, 255, 0.8);
}

.chat-text p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat-text p + p {
  margin-top: 6px;
}

.chat-text code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--bg);
  font-family: var(--mono);
  font-size: 0.88em;
}

.chat-text a {
  color: var(--accent-text);
}

.chat-wait,
.chat-none {
  align-self: flex-start;
  color: var(--text-3);
  font-size: 13px;
}

.chat-dots {
  display: inline-flex;
  gap: 3px;
  margin-right: 8px;
  vertical-align: middle;
}

.chat-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dot);
  animation: chat-dot 1.2s ease-in-out infinite;
}

.chat-dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.chat-dots i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes chat-dot {
  0%,
  80%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-dots i {
    animation: none;
    opacity: 0.6;
  }
}

.chat-state {
  padding: 0 22px 14px;
}

.chat-state:empty {
  display: none;
}

.chat-compose {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 14px 22px 16px;
  border-top: 1px solid var(--line);
}

.chat-input {
  flex: 1;
  min-height: 48px;
  max-height: 220px;
}

@media (max-width: 760px) {
  .chat-log {
    max-height: 58vh;
    padding: 14px 16px;
  }

  .chat-msg {
    max-width: 92%;
  }

  .chat-state {
    padding: 0 16px 12px;
  }

  .chat-compose {
    padding: 12px 16px 14px;
  }
}

/* a team's and the organisation's knowledge (views.js mountShared) */
.vlead {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
}

.wiki-edit {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 22px 20px;
  border-top: 1px solid var(--line);
}

.wiki-edit textarea {
  min-height: 420px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
}

.wiki-edit-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wiki-edit-foot .note {
  margin: 0;
}

.comments {
  margin: 0;
  padding: 0 22px;
  list-style: none;
  border-top: 1px solid var(--line);
}

.comment {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 0;
}

.comment + .comment {
  border-top: 1px solid var(--line);
}

.comment-quote {
  margin: 0;
  padding: 2px 0 2px 12px;
  border-left: 3px solid var(--accent);
  color: var(--text-2);
  font-size: 13.5px;
  overflow-wrap: anywhere;
}

.comment-body {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.comment-replies {
  margin: 4px 0 0;
  padding: 0 0 0 14px;
  list-style: none;
  border-left: 1px solid var(--edge);
}

.comment-replies li + li {
  margin-top: 8px;
}

.comment-reply,
.comment-new {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-reply {
  margin-top: 4px;
}

.comment-reply .ctl-row,
.comment-new .ctl-row {
  justify-content: flex-end;
}

.comment-new {
  padding: 14px 22px 18px;
  border-top: 1px solid var(--line);
}

.comment-new .note {
  margin: 0;
}

.select-bar {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 16px;
  border: 1px solid var(--edge-strong);
  border-radius: 14px;
  background: var(--raised);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  font-size: 14px;
}

.select-bar[hidden] {
  display: none;
}

/* the admin dashboard's teams */
.picklist {
  display: flex;
  flex-direction: column;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--edge);
  border-radius: 12px;
}

.pick {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
}

.pick + .pick {
  border-top: 1px solid var(--line);
}

.pick input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.pick-sub {
  color: var(--text-3);
  font-size: 12.5px;
}

.team-desc {
  margin: 2px 0 0;
  color: var(--text-2);
  font-size: 13px;
}

@media (max-width: 760px) {
  .comments,
  .comment-new,
  .wiki-edit {
    padding-right: 16px;
    padding-left: 16px;
  }
}
