/* From docs/design-system/tokens.css, the only place with raw colours. Additions (G8) are at the end of each block. */
:root,
[data-theme="dark"] {
  --bg: #0e0f11;
  --panel: #141518;
  --card: #1b1c20;
  --card-hover: #202126;
  --surface-2: #24262b;
  --border: #27292e;
  --border-strong: #3a3d44;
  --edge: rgba(255, 255, 255, 0.06);
  --text: #edeef0;
  --text-muted: #a9acb3;
  --text-faint: #8b8f97;
  --primary: #e9eaec;
  --primary-hover: #ffffff;
  --on-primary: #111214;
  --accent: #3b9be0;
  --accent-text: #7cc4ff;
  --on-accent: #06121c;
  --accent-soft: rgba(124, 196, 255, 0.14);
  --teal: #43d3c1;
  --teal-soft: rgba(61, 214, 195, 0.13);
  --on-teal: #06231f;
  --amber: #ffb224;
  --amber-soft: rgba(255, 178, 36, 0.14);
  --rose: #ff8fa3;
  --rose-soft: rgba(255, 143, 163, 0.13);
  --src-official: #9cc2ff;
  --src-community: #7ee2c8;
  --src-vendor: #c8cdd6;
  --src-media: #c9ced6;
  --story-from: rgba(124, 196, 255, 0.16);
  --story-to: rgba(67, 211, 193, 0.07);
  --glass: rgba(14, 15, 17, 0.52);
  --scrim-glass: rgba(0, 0, 0, 0.4);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-text: #ffffff;
  --glass-muted: rgba(255, 255, 255, 0.75);
  --shadow-pop: 0 18px 48px rgba(0, 0, 0, 0.55);
  --shadow-sheet: 0 24px 64px rgba(0, 0, 0, 0.45);
  --shadow-key: 0 2px 0 #3a3d44;
  --switch-thumb: #ffffff;
  --on-service: #0b0d12;
  --scrim: rgba(0, 0, 0, 0.5);
  --shadow-thumb: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-segment: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-card: none;
  --shadow-ring: none;
  --shadow-story: inset 0 0 0 1px rgba(124, 196, 255, 0.12);
  --portal-m365: #ff8a4c;
  --portal-entra: #6cb4ff;
  --portal-intune: #4fd1e8;
  --portal-exchange: #5b9bff;
  --portal-teams: #a99bff;
  --portal-sharepoint: #3fd0b4;
  --portal-defender: #7fa8ff;
  --portal-purview: #5fd38a;
  --portal-azure: #56b8ff;
  --portal-power: #a9abff;
  color-scheme: dark;
  /* Sign-in buttons in the dark look of each provider's guidelines */
  --ms-btn-bg: #2f2f2f;
  --ms-btn-border: #2f2f2f;
  --ms-btn-text: #fff;
  --google-btn-bg: #131314;
  --google-btn-border: #8e918f;
  --google-btn-text: #e3e3e3;
}
[data-theme="light"] {
  --bg: #eeeff1;
  --panel: #f8f8fa;
  --card: #ffffff;
  --card-hover: #ffffff;
  --surface-2: #f0f1f4;
  --border: #e4e5e9;
  --border-strong: #d4d6dc;
  --edge: rgba(22, 24, 28, 0.07);
  --text: #16181c;
  --text-muted: #4a4f58;
  --text-faint: #5e636c;
  --primary: #16181c;
  --primary-hover: #2a2d33;
  --on-primary: #ffffff;
  --accent: #0f6cbd;
  --accent-text: #0d63ad;
  --on-accent: #ffffff;
  --accent-soft: rgba(15, 108, 189, 0.09);
  --teal: #0b7d70;
  --teal-soft: rgba(13, 148, 136, 0.11);
  --on-teal: #ffffff;
  --amber: #9a4a00;
  --amber-soft: #fdefd5;
  --rose: #b4234a;
  --rose-soft: rgba(225, 29, 72, 0.09);
  --src-official: #1d4fb8;
  --src-community: #0b6b5f;
  --src-vendor: #4a515c;
  --src-media: #4a515c;
  --story-from: #e6f1fa;
  --story-to: #eaf7f4;
  --glass: rgba(255, 255, 255, 0.68);
  --scrim-glass: rgba(0, 0, 0, 0);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-text: #0e1016;
  --glass-muted: rgba(14, 16, 22, 0.72);
  --shadow-pop: 0 18px 48px rgba(14, 16, 22, 0.16);
  --shadow-sheet: 0 24px 64px rgba(14, 16, 22, 0.18);
  --shadow-key: 0 2px 0 #d4d6dc;
  --switch-thumb: #ffffff;
  --on-service: #0b0d12;
  --scrim: rgba(14, 16, 22, 0.35);
  --shadow-thumb: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-segment: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-ring: 0 0 0 1px var(--border);
  --shadow-card: var(--shadow-ring), 0 1px 2px rgba(22, 24, 28, 0.04);
  --shadow-story: var(--shadow-card);
  --portal-m365: #a63a05;
  --portal-entra: #0b5aa8;
  --portal-intune: #0a6577;
  --portal-exchange: #1a4fb5;
  --portal-teams: #5340bd;
  --portal-sharepoint: #0a6b5a;
  --portal-defender: #264da8;
  --portal-purview: #156f3a;
  --portal-azure: #095a9c;
  --portal-power: #4e51bd;
  color-scheme: light;
  /* Sign-in buttons in the light look of each provider's guidelines */
  --ms-btn-bg: #fff;
  --ms-btn-border: #8c8c8c;
  --ms-btn-text: #5e5e5e;
  --google-btn-bg: #fff;
  --google-btn-border: #747775;
  --google-btn-text: #1f1f1f;
}
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --radius-sm: 7px;
  --radius-md: 10px;
  --radius-image: 12px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 22px;
  --radius-pill: 999px;
  --sidebar-width: 248px;
  --rail-width: 340px;
  --sheet-width: 420px;
  --calm-slate: #3a4444;
  --calm-ink: #14161c;
  --calm-moss: #2f4a3a;
  --calm-plum: #4a3250;
  --on-photo: #ffffff;
  --scrim-photo: rgba(0, 0, 0, 0.6);
  --shadow-glass-text: 0 1px 3px rgba(0, 0, 0, 0.35);
  --content-max: 800px;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  /* The logos of the sign-in buttons, as Microsoft and Google draw them */
  --ms-red: #f25022;
  --ms-green: #7fba00;
  --ms-blue: #00a4ef;
  --ms-yellow: #ffb900;
  --google-red: #ea4335;
  --google-blue: #4285f4;
  --google-yellow: #fbbc05;
  --google-green: #34a853;
}

/* The viewport in the px of the page: the text size zooms the root, and viewport units do not follow that. */
:root {
  --view-width: calc(100vw / var(--zoom, 1));
  --view-height: calc(100dvh / var(--zoom, 1));
}
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
.cr-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.cr-grow {
  flex: 1;
}
.cr-mono {
  font-family: var(--font-mono);
}
.cr-faint {
  color: var(--text-faint);
}
.cr-strong {
  font-weight: 600;
  color: var(--text);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.cr-row-wrap {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: center;
}
.cr-muted {
  color: var(--text-muted);
}
.cr-accent {
  color: var(--accent-text);
}
.cr-overline {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.cr-btn:disabled,
.cr-ib:disabled {
  cursor: default;
  opacity: 0.5;
}
/* Links and buttons share these classes, so they must share the box model. */
.cr-btn,
.cr-nav,
.cr-ib {
  box-sizing: border-box;
}

/* wordmark */
.cr-wm {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  text-decoration: none;
}
.cr-key {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12.5px;
  line-height: 1;
  padding: 4px 7px 5px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-key);
}
.cr-wm-r {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.cr-wm-lg .cr-key {
  font-size: 22px;
  padding: 7px 12px 9px;
  border-radius: 11px;
  border-width: 2px;
  box-shadow: 0 3px 0 var(--border-strong);
}
.cr-wm-lg .cr-wm-r {
  font-size: 32px;
}
.cr-wm-lg {
  gap: 11px;
}
/* buttons */
.cr-btn {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  color: var(--text);
  background: var(--surface-2);
}
.cr-btn:hover {
  background: var(--border-strong);
}
.cr-btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}
.cr-btn-primary:hover {
  background: var(--primary-hover);
}
.cr-btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
}
.cr-btn-ghost:hover {
  background: var(--surface-2);
}
.cr-btn-danger {
  background: transparent;
  border: 1px solid var(--rose);
  color: var(--rose);
}
.cr-btn-danger:hover {
  background: var(--rose-soft);
}
.cr-ib {
  font: inherit;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius-md);
  border: 0;
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
}
.cr-ib:hover {
  background: var(--surface-2);
  color: var(--text);
}
.cr-ib-sm {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.cr-ib.is-on {
  color: var(--accent-text);
}
.cr-flip svg {
  transform: rotate(180deg);
}
.cr-ia {
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 6px;
  border-radius: 7px;
  border: 0;
  background: transparent;
  color: var(--text-faint);
  font-size: 12px;
  cursor: pointer;
}
.cr-ia:hover {
  color: var(--text);
  background: var(--surface-2);
}
.cr-ia.is-on {
  color: var(--accent-text);
}
.cr-ia.is-teal {
  color: var(--teal);
}
/* switch */
.cr-switch {
  position: relative;
  width: 36px;
  height: 22px;
  border-radius: var(--radius-pill);
  border: 0;
  background: var(--border-strong);
  cursor: pointer;
  flex: 0 0 auto;
}
.cr-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--switch-thumb);
  box-shadow: var(--shadow-thumb);
}
.cr-switch.is-on {
  background: var(--accent);
}
.cr-switch.is-on::after {
  transform: translateX(14px);
}
/* segmented */
.cr-seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: var(--surface-2);
  border-radius: var(--radius-md);
}
.cr-seg-btn {
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: 7px;
  height: 28px;
  padding: 0 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.cr-seg-icons .cr-seg-btn {
  width: 32px;
  padding: 0;
  justify-content: center;
}
.cr-seg-btn:disabled {
  cursor: default;
  opacity: 0.45;
}
.cr-seg-btn:hover:not(:disabled) {
  color: var(--text);
}
.cr-seg-btn.is-on {
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow-segment);
}
/* chips */
.cr-chip {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cr-chip:hover {
  color: var(--text);
}
.cr-chip.is-sel {
  background: var(--accent-soft);
  color: var(--accent-text);
  border-color: transparent;
}
.cr-chip.is-muted {
  color: var(--text-faint);
  text-decoration: line-through;
}
.cr-chip-x {
  border: 0;
  background: transparent;
  color: var(--text-faint);
  padding: 0;
  display: inline-flex;
  cursor: pointer;
}

/* nav */
.cr-nav {
  font: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 9px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 13.5px;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}
.cr-nav:hover {
  background: var(--surface-2);
}
/* "Show all" below a long section: the size of a nav row, text in line with the labels */
.cr-side-more {
  font: inherit;
  font-size: 12.5px;
  min-height: 30px;
  padding: 0 10px 0 37px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  text-align: left;
  cursor: pointer;
}
.cr-side-more:hover {
  background: var(--surface-2);
  color: var(--text);
}
.cr-nav.is-on {
  background: var(--surface-2);
  color: var(--text);
}
.cr-nav-ic {
  color: var(--text-faint);
  display: inline-flex;
}
.cr-nav.is-on .cr-nav-ic {
  color: var(--accent-text);
}
.cr-nav-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}
.cr-nav-t {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cr-nav-n {
  font-size: 12px;
  color: var(--text-faint);
}
.cr-side {
  flex: 0 0 var(--sidebar-width);
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 12px 18px 16px;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
.cr-side:hover {
  scrollbar-color: var(--border-strong) transparent;
}
.cr-side-top {
  padding: 0 6px;
}
.cr-side-sec {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cr-side-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-faint);
  padding: 0 4px 6px 10px;
}
.cr-favbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 2px;
  box-sizing: border-box;
  height: 50px;
  padding: 0 14px;
  border-bottom: 1px solid var(--edge);
  overflow-x: auto;
  white-space: nowrap;
}
.cr-fav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 10px 0 4px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}
.cr-fav:hover {
  background: var(--surface-2);
  color: var(--text);
}
.cr-fav-i {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}
/* text-faint is below 4.5:1 on bg */
.cr-side-h,
.cr-side-h .cr-ia,
.cr-side .cr-nav-n {
  color: var(--text-muted);
}
.cr-nav-pending {
  visibility: hidden;
}

/* counts, labels */
.cr-count {
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 0 7px;
  line-height: 18px;
  display: inline-block;
}
.cr-count-accent {
  color: var(--accent-text);
  background: var(--accent-soft);
}
.cr-count-teal {
  color: var(--on-teal);
  background: var(--teal);
  font-weight: 700;
}
.cr-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.cr-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--text-faint);
}
.cr-dot-act {
  background: var(--amber);
}
.cr-dot-ret {
  background: var(--rose);
}
.cr-dot-new {
  background: var(--teal);
}
.cr-dot-plan {
  background: var(--accent-text);
}
.cr-src {
  font-size: 12px;
  font-weight: 500;
}
.cr-src-official {
  color: color-mix(in srgb, var(--src-official) 55%, var(--text-muted));
}
.cr-src-community {
  color: color-mix(in srgb, var(--src-community) 55%, var(--text-muted));
}
.cr-src-vendor {
  color: color-mix(in srgb, var(--src-vendor) 55%, var(--text-muted));
}
.cr-src-media {
  color: color-mix(in srgb, var(--src-media) 55%, var(--text-muted));
}
.cr-av {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* a key of a keyboard, like the logo */
  border-radius: 24%;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-key);
  box-sizing: border-box;
  font-family: var(--font-mono);
  font-weight: 600;
  flex: 0 0 auto;
}
/* an icon has no key around it */
.cr-av-icon {
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
.cr-av-icon img {
  object-fit: contain;
  border-radius: 3px;
  display: block;
}
.cr-svc {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
/* cards */
.cr-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
  min-width: 0;
}
.cr-card {
  box-shadow: var(--shadow-card);
}
.cr-post:hover {
  background: var(--card-hover);
}
.cr-post-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}
.cr-post-src {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  font-size: 12px;
  color: var(--text-faint);
}
.cr-post-src > a,
.cr-post-src > .cr-strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cr-post-title,
.cr-story-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.42;
  font-weight: 600;
}
.cr-story-title {
  font-size: 17px;
  line-height: 1.38;
}
/* four columns on a screen of 1920px or less: smaller, so no title is cut off or runs behind the image */
@media (max-width: 1920px) {
  .cr-grid.cols-4 :is(.cr-post-title, .cr-story-title) {
    font-size: 16px;
  }
}
.cr-post-title a,
.cr-story-title a {
  color: var(--text);
  text-decoration: none;
}
.cr-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-image);
  overflow: hidden;
  background: var(--surface-2);
}
.cr-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cr-thumb.is-empty {
  background: linear-gradient(160deg, var(--surface-2), var(--card));
}
.cr-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-faint);
}
.cr-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
  min-height: 24px;
}
.cr-post-foot {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.cr-tag {
  color: var(--text-faint);
  text-decoration: none;
  margin-right: 6px;
}
.cr-tag:hover {
  color: var(--text);
}
.cr-mi {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.cr-link {
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}
.cr-why {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  font-size: 12.5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text-muted);
}
.cr-why strong {
  color: var(--text);
  font-weight: 600;
}
.cr-why-acts {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-1);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border-strong);
}
.cr-why-acts > button {
  font: inherit;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 0 0 auto;
  min-height: 28px;
  margin: 0 calc(-1 * var(--space-1));
  padding: 0 var(--space-1);
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  text-align: left;
  cursor: pointer;
}
.cr-why-acts > button:hover {
  background: var(--card);
  color: var(--text);
}
.cr-why-acts svg {
  flex: 0 0 auto;
}
.cr-why-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  padding: var(--space-1) 0;
}
/* chips on --surface-2: a border that shows */
.cr-why-chips .cr-chip {
  border-color: var(--border-strong);
}
.cr-why-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-2);
  padding: var(--space-1) 0;
}
.cr-why-result:not(:empty) {
  padding-top: var(--space-1);
  color: var(--text);
}
.cr-story {
  background: linear-gradient(160deg, var(--story-from) 0%, var(--story-to) 58%, var(--card) 100%);
}
.cr-story {
  box-shadow: var(--shadow-story);
}
.cr-takes {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--edge);
  padding-top: 10px;
}
.cr-take {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  margin: 0 -8px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text);
  text-decoration: none;
}
.cr-take:hover {
  background: var(--edge);
}
/* stays right when the row wraps */
.cr-meta-a {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
}

/*
 * The question after a post was opened: a bar laid over the footer, which stays in place (hidden), so the card
 * keeps its size. It runs to the card edges at the right and the bottom.
 */
.cr-post-foot {
  position: relative;
}
.is-asking .cr-post-foot > :not(.cr-ask),
.is-recommended .cr-post-foot > :not(.cr-ask) {
  visibility: hidden;
}
.cr-ask {
  position: absolute;
  inset: 0 calc(-1 * var(--space-4)) calc(-1 * var(--ask-bottom, var(--space-4))) calc(-1 * var(--space-4));
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 0 var(--space-4);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 12px;
}
.cr-post.is-magazine .cr-ask {
  left: 0;
  padding-left: var(--space-1);
  border-radius: 0 0 var(--radius-xl) 0;
}
.cr-ask.is-done {
  background: var(--teal-soft);
}
.cr-ask-q {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  /* room under the question; the hidden variants below are out of the flow, so it does nothing there */
  margin-top: -4px;
  margin-bottom: 4px;
}
.cr-ask-q.cr-sr {
  margin: 0;
}
/* without tags the footer has room for one line only: the buttons; on a narrow card too. Still read out. */
.cr-post-foot:not(.has-tags) .cr-ask-q {
  position: absolute;
  margin: 0;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
}
@media (max-width: 599px) {
  .cr-post .cr-ask-q {
    position: absolute;
    margin: 0;
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
  }
}
.cr-ask-r {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cr-ask-x {
  margin-left: auto;
}
.cr-ask-b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--card);
  color: var(--accent-text);
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  flex: 0 0 auto;
  cursor: pointer;
}
.cr-ask-b:hover {
  background: var(--surface-2);
}
.cr-ask-main,
.cr-ask-main:hover {
  background: var(--primary);
  color: var(--on-primary);
}
.cr-ask.is-done .cr-ask-main,
.cr-ask.is-done .cr-ask-main:hover {
  background: var(--teal);
  color: var(--on-teal);
}
.cr-ask-x {
  width: 28px;
  padding: 0;
  background: transparent;
  color: var(--text);
}
.cr-ask-x:hover {
  background: var(--surface-2);
}
/* the ring is a layer inside the card, so it changes no size and is not cut off by the grid */
.cr-post.is-asking::after,
.cr-post.is-recommended::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
.cr-post.is-asking::after {
  box-shadow: inset 0 0 0 2px var(--accent);
}
.cr-post.is-recommended::after {
  box-shadow: inset 0 0 0 2px var(--teal);
}
/* Titles: the row itself is the bar; only the buttons are in it */
.cr-trow {
  position: relative;
  isolation: isolate;
}
/* the row is the bar: a layer behind the row that reaches into the padding of the card, so nothing moves */
.cr-trow.is-asking,
.cr-trow.is-recommended {
  border-bottom-color: transparent;
}
.cr-trow.is-asking::before,
.cr-trow.is-recommended::before {
  content: "";
  position: absolute;
  inset: 0 calc(-1 * var(--space-3));
  z-index: -1;
  border-radius: var(--radius-md);
  pointer-events: none;
}
.cr-trow.is-asking::before {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.cr-trow.is-recommended::before {
  background: var(--teal-soft);
  box-shadow: inset 0 0 0 2px var(--teal);
}
.cr-trow .cr-ask {
  position: static;
  flex-direction: row;
  align-items: center;
  gap: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.cr-trow .cr-ask-r {
  gap: 4px;
}
.cr-trow .cr-ask-main {
  min-width: 128px;
}
.cr-trow .cr-ask-2,
.cr-trow .cr-ask-x {
  width: 28px;
  padding: 0;
  background: transparent;
  color: var(--text);
}
.cr-trow .cr-ask-2:hover {
  background: var(--surface-2);
}
/* a softer ring on dark surfaces */
[data-theme="dark"] .cr-post.is-asking::after,
[data-theme="dark"] .cr-trow.is-asking::before {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent);
}
[data-theme="dark"] .cr-post.is-recommended::after,
[data-theme="dark"] .cr-trow.is-recommended::before {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--teal) 45%, transparent);
}

/* cards: equal-height cards in a grid of at most --cols columns, none narrower than --card-min. The height follows the
   width: --card-chrome (everything but the image: head, 3 title lines, tags, footer) plus a 16:9 image. */
.cr-grid {
  --gap: var(--space-4);
  --card-min: 250px;
  --card-chrome: 222px;
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(
      auto-fill,
      minmax(max(var(--card-min), calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols))), 1fr)
    );
}
.cr-grid.cols-3 {
  --cols: 3;
}
.cr-grid.cols-4 {
  --cols: 4;
}
.cr-grid > * {
  min-width: 0;
  container-type: inline-size;
}
.cr-grid .cr-card {
  box-sizing: border-box;
  height: calc(var(--card-chrome) + (100cqw - 2 * var(--space-4)) * 9 / 16);
  padding-bottom: var(--space-3);
  overflow: hidden;
}
.cr-grid .cr-post-title {
  flex: 1;
  min-height: 0;
}
.cr-grid .cr-post-foot {
  gap: 2px;
}
.cr-grid .cr-card {
  --ask-bottom: var(--space-3);
}
.cr-grid :is(.cr-post-title, .cr-story-title) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.cr-grid .cr-takes {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.cr-grid .cr-take > span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
/* the open Why box floats over the card instead of pushing it taller */
.cr-grid .cr-why {
  position: absolute;
  inset: auto var(--space-3) 48px;
  z-index: 2;
  box-shadow: var(--shadow-sheet);
  /* a small card with Report open: the box scrolls in place of running out of it */
  max-height: calc(100% - 60px);
  overflow-y: auto;
}

/* hide and ?, top right of every card; hide covers the end of the source name only while it shows */
.cr-card-acts {
  display: inline-flex;
  flex: 0 0 auto;
  position: relative;
}
.cr-hide {
  opacity: 0;
}
:is(.cr-card, .cr-trow):is(:hover, :focus-within) > :is(.cr-post-head, .cr-trow-a) .cr-hide {
  opacity: 1;
}
@media (hover: hover) {
  .cr-hide {
    position: absolute;
    right: 100%;
    background: var(--surface-2);
  }
}
@media (hover: none) {
  .cr-hide {
    opacity: 1;
  }
}
.cr-card-acts.is-solo .cr-hide {
  right: 0;
}
/* alone in the corner: its static position starts at the middle of the head, so this centres it */
@media (hover: hover) {
  .cr-card-acts.is-solo .cr-hide {
    margin-top: -15px;
  }
}

/* a title row has the bookmark button there: the hide button keeps a place of its own */
.cr-trow > .cr-trow-a .cr-card-acts .cr-hide {
  position: static;
}

.cr-trow .cr-why {
  grid-column: 2 / -1;
  margin: var(--space-1) 0;
}

/* magazine: a list with a 208px thumbnail (G3) */
.cr-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.cr-post.is-magazine {
  display: grid;
  grid-template: "thumb head" auto "thumb why" auto "thumb title" 1fr "thumb meta" auto / 208px minmax(0, 1fr);
  column-gap: var(--space-4);
  row-gap: 0;
}
.is-magazine .cr-thumb {
  grid-area: thumb;
  align-self: start;
}
.cr-post.is-magazine .cr-post-head {
  grid-area: head;
}
.cr-post.is-magazine .cr-why {
  grid-area: why;
  margin-top: var(--space-2);
}
.cr-post.is-magazine .cr-post-title {
  grid-area: title;
  margin: var(--space-2) 0;
}
.cr-post.is-magazine .cr-post-foot {
  grid-area: meta;
}
@media (max-width: 599px) {
  .cr-post.is-magazine {
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: var(--space-3);
  }
}

/* titles only: rows in one card (G3) */
.cr-titles {
  container-type: inline-size;
  padding: var(--space-1) var(--space-4);
  gap: 0;
}
.cr-trow {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: var(--space-3);
  padding: 7px 0;
  border-bottom: 1px solid var(--edge);
}
:last-child > .cr-trow {
  border-bottom: 0;
}
.cr-trow > .cr-av {
  justify-self: center;
}
.cr-trow-t {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 600;
}
.cr-trow-t a {
  color: var(--text);
  text-decoration: none;
}
.cr-trow-t a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cr-trow-s {
  font-size: 12px;
  color: var(--text-faint);
  white-space: nowrap;
}
.cr-trow-a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  /* room for "Recommended" plus Share and Close, so the title does not move when the row asks */
  min-width: 192px;
}
/* the source goes under the title when there is no room next to it */
@container (max-width: 780px) {
  .cr-trow {
    grid-template-columns: 26px minmax(0, 1fr) auto;
  }
  .cr-trow-s {
    grid-area: 2 / 2;
    white-space: normal;
  }
  .cr-trow-a {
    grid-area: 1 / 3 / span 2;
  }
}

/* rail */
.cr-rail {
  gap: 6px;
}
.cr-rail-h {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cr-rail-h h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}
.cr-mcrow {
  display: flex;
  gap: 10px;
  padding: 9px 8px;
  margin: 0 -8px;
  border-radius: 10px;
  align-items: flex-start;
  color: var(--text);
  text-decoration: none;
}
.cr-mcrow:hover {
  background: var(--surface-2);
}
.cr-mcrow-b {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cr-mcrow-t {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--text-muted);
}
.cr-mcrow.is-unread .cr-mcrow-t {
  font-weight: 650;
  color: var(--text);
}
.cr-mcrow-s {
  font-size: 11.5px;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 4px;
}
.cr-mcrow-s .cr-cat {
  font-size: 11.5px;
  color: var(--text-faint);
}
.cr-mcrow-t.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.cr-mcrow-s strong {
  font-weight: 650;
  color: var(--text);
}
.cr-mcrow.is-opened .cr-mcrow-t {
  font-weight: 400;
  color: var(--text-faint);
}
.cr-udot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex: 0 0 auto;
  margin-top: 6px;
}
.cr-udot.is-off {
  background: transparent;
}
.cr-tl {
  align-items: center;
}
/* the service icon takes the width of the date block (38px), so the texts of both cards line up */
.cr-mcrow > .cr-svc {
  margin-inline: 6px;
}
.cr-tl-d {
  flex: 0 0 38px;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.cr-tl-d b {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.1;
}
.cr-tl-d b.is-word {
  font-size: 11px;
  line-height: 1.4;
}
.cr-tl-d span {
  font-size: 10px;
  color: var(--text-faint);
  text-transform: uppercase;
}
.cr-rail-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-faint);
}
.cr-rail-sub b {
  color: var(--accent-text);
}
.cr-rail-g {
  font-size: 12px;
  color: var(--text-faint);
  padding: 8px 0 2px;
}
.cr-srow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--edge);
}
.cr-srow:last-child {
  border-bottom: 0;
}
.cr-srow.is-stacked {
  flex-direction: column;
  align-items: flex-start;
}
.cr-srow-l {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cr-srow-l b {
  font-weight: 550;
  font-size: 13.5px;
}
.cr-srow-l span {
  font-size: 12px;
  color: var(--text-faint);
}
/* text-faint is below 4.5:1 on surface-2 */
.cr-mcrow:hover :is(.cr-mcrow-s, .cr-cat, .cr-tl-d span) {
  color: var(--text-muted);
}
.cr-rail-scope {
  font: inherit;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
}
.cr-rail-scope:hover {
  color: var(--text);
}
.cr-rail-scope[aria-pressed="true"] {
  font-weight: 700;
  color: var(--accent-text);
}
p.cr-rail-g {
  margin: 0;
}
.cr-rail-more {
  display: block;
  padding: 8px 0 2px;
  font-size: 12px;
  color: var(--accent-text);
  text-decoration: none;
}
.cr-rail-more:hover {
  text-decoration: underline;
}
.cr-page-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.cr-exact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: var(--radius-xl);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.cr-exact:hover {
  background: var(--surface-2);
}
.cr-exact-id {
  color: var(--accent-text);
}
.cr-search-h {
  margin: 16px 0 8px;
  font-size: 14px;
  font-weight: 650;
}

/* the story page: the text, with the dates and related messages beside it from 1200px, else under it */
.cr-story-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: var(--space-6);
}
.cr-story-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 760px;
}
.cr-story-aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
@media (max-width: 1199px) {
  .cr-story-page {
    grid-template-columns: minmax(0, 1fr);
  }
}
.cr-story-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}
.cr-actbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}
/* a little smaller than other buttons, so the five fit in one row; a finger keeps the bigger targets */
@media (pointer: fine) {
  .cr-actbar .cr-btn {
    min-height: 32px;
    padding: 0 10px;
  }
}
.cr-actbar .cr-btn.is-on {
  color: var(--accent-text);
  background: var(--accent-soft);
}
.cr-callout {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--amber-soft);
  color: var(--amber);
}
.cr-story-sec h2 {
  margin: 0 0 var(--space-2);
  font-size: 15px;
  font-weight: 650;
}
.cr-story-sec p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}
.cr-story-sec p + p {
  margin-top: var(--space-2);
}
.cr-checks {
  margin: 0;
  padding: 0;
  list-style: none;
}
.cr-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: 6px var(--space-3);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 15px;
  line-height: 1.5;
}
.cr-check:hover {
  background: var(--surface-2);
}
.cr-check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}
.cr-story-posts {
  margin-top: var(--space-6);
}
/* a saved message on the Bookmarks page: the row, and the way to remove it */
.cr-saved {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.cr-saved > .cr-mcrow {
  flex: 1;
  min-width: 0;
}
/* "Written by AI…": a quiet line under the actions, not a part of its own */
.cr-story-note {
  margin: 0 0 calc(-1 * var(--space-1));
  font-size: 12px;
  color: var(--text-faint);
}

/* Variable fonts (OFL) of the app, the latin files only. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2");
}

/* The Message Center pages of the site (made by the worker), laid out as the app: published as /assets/mc.css after
   the app's own styles of packages/ui. The page scrolls as a document; the sidebar stays beside it. */
.mc-shell {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}
.mc-side {
  position: sticky;
  top: 0;
  height: 100vh;
}
.mc-get {
  justify-content: center;
}
.mc-main {
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
  padding: 18px var(--space-6) 32px;
  background: var(--panel);
  box-shadow: inset 1px 0 0 var(--edge);
}
.mc-main a:not(.cr-btn) {
  color: inherit;
  text-decoration: none;
}
.mc-main :is(.cr-story-sec, .mc-foot, .mc-lead) a,
.mc-callout-link {
  color: var(--accent-text);
}
.mc-h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.mc-lead {
  margin: var(--space-2) 0 0;
  max-width: 760px;
  color: var(--text-muted);
  font-size: 15px;
}
.cr-callout .mc-callout-link {
  margin-left: auto;
  font-size: 13px;
}
.mc-actions {
  margin: 0;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.6;
}
.mc-foot {
  margin-top: var(--space-8);
  color: var(--text-faint);
  font-size: 13px;
}
.mc-foot p {
  margin: 0 0 var(--space-2);
}
.mc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: var(--space-4) 0 0;
}
.mc-chip {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
}
.mc-chip:hover {
  color: var(--accent-text);
}
.mc-list {
  margin-top: var(--space-5);
  max-width: 900px;
}

/* A phone: the sidebar is a bar on top with the wordmark and the way into the app. */
@media (max-width: 899px) {
  .mc-shell {
    flex-direction: column;
  }
  .mc-side {
    position: static;
    height: auto;
    flex: none;
    width: auto;
    flex-direction: row;
    align-items: center;
    padding: 12px var(--space-4);
  }
  .mc-side-links {
    display: none;
  }
  .mc-main {
    box-shadow: none;
  }
}
@media (max-width: 599px) {
  .mc-main {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
}

/* The sizes of the app's avatars (it sets them inline; the site's policy allows no inline style). */
.mc-av-30 {
  width: 30px;
  height: 30px;
  font-size: 11px;
  background: var(--surface-2);
}
.mc-av-20 {
  width: 20px;
  height: 20px;
  font-size: 7px;
  background: var(--surface-2);
}

/* Three cards beside each other in the column of the text. */
.mc-main .cr-grid {
  --card-min: 220px;
}

/* The page of a message: the posts right under the text, the dates and related messages beside both. */
@media (min-width: 1200px) {
  .mc-story-page > .cr-story-aside {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .mc-story-page > .cr-story-posts {
    grid-column: 1;
  }
}
.mc-story-page > .cr-story-posts {
  margin-top: 0;
}
/* Other messages of the service: there to browse, quieter than the related ones. */
.mc-more .cr-mcrow-t {
  font-weight: 400;
  color: var(--text-muted);
}
