:root {
  --ink: #171816;
  --ink-solid: #171816;
  --paper: #f7f7f2;
  --surface: #ffffff;
  --white: #ffffff;
  --mist: #e9eae5;
  --line: #d4d6ce;
  --muted: #6e716b;
  --text-soft: #4e514c;
  --blue: #244cc8;
  --blue-dark: #18368f;
  --blue-soft: #f1f4ff;
  --red: #e44d38;
  --red-soft: #fff1ee;
  --mint: #b7e6d1;
  --yellow: #f1c84b;
  --success: #2d7b55;
  --danger: #b63426;
  --danger-soft: #fff8f7;
  --header-bg: rgba(247, 247, 242, 0.96);
  --focus-ring: rgba(36, 76, 200, 0.11);
  --principle-line: rgba(23, 24, 22, 0.35);
  --shadow: 0 14px 40px rgba(23, 24, 22, 0.09);
  --radius: 6px;
  --shell: min(1440px, calc(100vw - 72px));
  --sans: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f0f2ec;
  --paper: #10120f;
  --surface: #181b16;
  --mist: #252920;
  --line: #3a4036;
  --muted: #a4aa9f;
  --text-soft: #c0c5ba;
  --blue: #8da9ff;
  --blue-dark: #b6c7ff;
  --blue-soft: #20283d;
  --red: #ff7b66;
  --red-soft: #35231f;
  --mint: #486b59;
  --yellow: #e9c44e;
  --success: #75c99e;
  --danger: #ff8c7b;
  --danger-soft: #35211e;
  --header-bg: rgba(16, 18, 15, 0.96);
  --focus-ring: rgba(141, 169, 255, 0.2);
  --principle-line: rgba(240, 242, 236, 0.28);
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.34);
}

html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="dark"] .button-primary {
  color: var(--ink-solid);
}

html[data-theme="dark"] .hero-visual img {
  filter: brightness(0.88) contrast(1.04);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  transition: color 160ms ease, background-color 160ms ease;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

button,
select {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
  flex: 0 0 auto;
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  width: var(--shell);
  margin-inline: auto;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  display: grid;
  grid-template-columns: 240px 1fr auto;
  min-height: 72px;
  align-items: center;
  padding: 0 36px;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--white);
  background: var(--ink-solid);
  font-family: var(--serif);
  font-size: 20px;
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand strong {
  font-family: var(--serif);
  font-size: 18px;
}

.brand small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  min-width: 92px;
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.site-nav .profile-nav,
.site-nav .theme-nav {
  position: relative;
  display: inline-flex;
  min-width: 92px;
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 650;
}

.site-nav .profile-nav:hover,
.site-nav .theme-nav:hover {
  color: var(--ink);
}

.profile-nav-state,
.theme-nav-state {
  position: absolute;
  top: -2px;
  right: 0;
  padding: 1px 4px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 8px;
  font-weight: 800;
  line-height: 1.4;
}

.theme-switcher {
  position: relative;
  display: flex;
}

.theme-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 13px);
  right: 0;
  display: grid;
  width: 260px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.theme-menu[hidden] {
  display: none;
}

.theme-menu button {
  display: grid;
  width: 100%;
  min-height: 57px;
  grid-template-columns: 22px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.theme-menu button:last-child {
  border-bottom: 0;
}

.theme-menu button:hover,
.theme-menu button.is-active {
  background: var(--blue-soft);
}

.theme-menu button > span {
  display: grid;
}

.theme-menu button strong {
  font-size: 11px;
}

.theme-menu button small {
  color: var(--muted);
  font-size: 9px;
}

.theme-menu button > svg:last-child {
  width: 15px;
  color: var(--blue);
  opacity: 0;
}

.theme-menu button.is-active > svg:last-child {
  opacity: 1;
}

.site-nav a::after {
  position: absolute;
  right: 16px;
  bottom: -16px;
  left: 16px;
  height: 3px;
  background: var(--blue);
  content: "";
  opacity: 0;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}

.site-nav a.is-active::after {
  opacity: 1;
}

.site-header .nav-toggle {
  display: none;
}

.button,
.icon-button,
.text-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  gap: 8px;
  font-weight: 720;
}

.button {
  min-height: 42px;
  padding: 9px 17px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 13px;
}

.button-primary {
  color: var(--white);
  background: var(--blue);
}

.button-primary:hover {
  background: var(--blue-dark);
}

.button-quiet {
  border-color: var(--line);
  background: var(--surface);
}

.button-quiet:hover {
  border-color: var(--ink);
}

.button-danger {
  border-color: var(--red);
  color: var(--danger);
  background: var(--danger-soft);
}

.button-full {
  width: 100%;
}

.icon-button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.icon-button:hover,
.icon-button.is-active {
  border-color: var(--ink);
  background: var(--ink-solid);
  color: var(--white);
}

.text-button,
.text-link {
  padding: 4px 0;
  color: var(--blue);
  font-size: 13px;
}

.text-button:hover,
.text-link:hover {
  color: var(--blue-dark);
}

.dashboard-hero {
  display: grid;
  min-height: min(690px, calc(100vh - 72px));
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 1.05fr);
  align-items: center;
  gap: clamp(40px, 6vw, 92px);
  padding-block: 56px 64px;
}

.hero-copy {
  padding-left: clamp(0px, 3vw, 54px);
}

.hero-copy h1,
.page-intro h1,
.publish-intro h1 {
  margin-bottom: 28px;
  font-family: var(--serif);
  font-size: clamp(46px, 5.2vw, 78px);
  font-weight: 600;
}

.hero-intro {
  max-width: 560px;
  margin-bottom: 32px;
  color: var(--text-soft);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-stats {
  display: grid;
  max-width: 590px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 52px;
  border-top: 1px solid var(--line);
}

.hero-stat {
  padding: 20px 18px 0 0;
}

.hero-stat + .hero-stat {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.hero-stat strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--serif);
  font-size: 31px;
  line-height: 1;
}

.hero-stat span {
  color: var(--muted);
  font-size: 12px;
}

.hero-visual {
  position: relative;
  margin: 0;
}

.hero-visual::before {
  position: absolute;
  z-index: -1;
  top: -18px;
  right: 22px;
  width: 88%;
  height: 58%;
  background: var(--mint);
  content: "";
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 1.23;
  object-fit: cover;
  object-position: 54% center;
  box-shadow: var(--shadow);
}

.hero-visual figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 13px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.hero-visual figcaption span {
  color: var(--red);
}

.workflow-band {
  padding-block: 72px 78px;
  background: var(--ink-solid);
  color: var(--white);
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 43px);
  font-weight: 600;
}

.section-heading > p:last-child {
  max-width: 620px;
  margin-top: 12px;
  margin-bottom: 0;
  color: var(--muted);
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.split-heading > p {
  max-width: 460px;
  margin-bottom: 4px;
  color: #a6aaa2;
}

.process-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 0;
  margin: 48px 0 0;
  list-style: none;
}

.process-step {
  position: relative;
  min-height: 156px;
  padding: 24px 18px 18px;
  border-top: 1px solid #4b4d49;
}

.process-step::before {
  position: absolute;
  top: -5px;
  left: 18px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--ink);
  background: #6c6f69;
  content: "";
}

.process-step.is-complete::before {
  background: var(--mint);
}

.process-step.is-active::before {
  background: var(--red);
}

.process-step .step-index {
  color: #858982;
  font-family: var(--serif);
  font-size: 13px;
}

.process-step h3 {
  margin: 32px 0 7px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
}

.process-step p {
  margin-bottom: 0;
  color: #a8aca5;
  font-size: 12px;
  line-height: 1.55;
}

.dashboard-content {
  padding-block: 88px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.6fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.featured-project,
.platform-overview {
  min-width: 0;
  background: var(--surface);
}

.featured-project {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 40px;
  padding: 42px;
}

.featured-project h3 {
  max-width: 690px;
  margin: 10px 0 18px;
  font-family: var(--serif);
  font-size: clamp(27px, 3vw, 42px);
  font-weight: 600;
}

.featured-project .project-description {
  max-width: 680px;
  margin-bottom: 32px;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--text-soft);
  background: var(--paper);
  font-size: 11px;
  font-weight: 650;
}

.project-progress-figure {
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring {
  --progress: 0%;
  position: relative;
  display: grid;
  width: 138px;
  height: 138px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--blue) var(--progress), var(--mist) 0);
}

.progress-ring::before {
  position: absolute;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--surface);
  content: "";
}

.progress-ring span {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.progress-ring strong {
  font-family: var(--serif);
  font-size: 29px;
  line-height: 1;
}

.progress-ring small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
}

.platform-overview {
  padding: 36px 32px;
}

.panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

.panel-heading h3,
.preview-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
}

.status-dot i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.coverage-row {
  margin-bottom: 24px;
}

.coverage-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
}

.coverage-label span:last-child {
  color: var(--muted);
}

.coverage-bar {
  height: 5px;
  background: var(--mist);
}

.coverage-bar i {
  display: block;
  height: 100%;
  background: var(--blue);
}

.coverage-row:nth-child(2n) .coverage-bar i {
  background: var(--red);
}

.coverage-row:nth-child(3n) .coverage-bar i {
  background: var(--success);
}

.principles-band {
  padding-block: 74px;
  border-top: 1px solid var(--line);
  background: var(--mint);
}

.principles-layout {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(270px, 0.55fr);
  align-items: center;
  gap: 42px;
}

.vertical-label {
  margin: 0;
  writing-mode: vertical-rl;
}

.principles-layout blockquote {
  max-width: 780px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 43px);
  line-height: 1.38;
}

.principle-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--principle-line);
}

.principle-list span {
  padding: 13px 0;
  border-bottom: 1px solid var(--principle-line);
  font-size: 12px;
  font-weight: 700;
}

.site-footer {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  padding: 15px 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--paper);
  font-size: 11px;
}

/* Projects */
.page-intro,
.publish-intro {
  display: grid;
  grid-template-columns: 1.1fr 0.65fr;
  align-items: end;
  gap: 60px;
  padding-block: 74px 54px;
}

.page-intro h1,
.publish-intro h1 {
  margin-bottom: 0;
  font-size: clamp(43px, 5vw, 68px);
}

.page-intro > p {
  max-width: 520px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 16px;
}

.project-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px auto;
  gap: 10px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.search-field,
.select-field {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  background: var(--surface);
}

.search-field > svg {
  position: absolute;
  left: 14px;
  color: var(--muted);
}

.search-field input,
.select-field select {
  width: 100%;
  height: 44px;
  padding: 8px 38px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  outline: none;
  background: transparent;
  appearance: none;
}

.search-field input {
  padding-left: 43px;
}

.search-field input:focus,
.select-field select:focus,
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--focus-ring);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.72;
}

.select-field > svg {
  position: absolute;
  right: 12px;
  width: 16px;
  pointer-events: none;
}

.projects-section {
  min-height: 580px;
  padding-block: 28px 90px;
}

.list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.list-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.view-switch {
  display: flex;
  gap: 5px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.project-grid.list-view {
  grid-template-columns: 1fr;
}

.project-card {
  position: relative;
  display: flex;
  min-height: 310px;
  flex-direction: column;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card:hover {
  z-index: 1;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.project-card::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 7px;
  height: 100%;
  background: var(--blue);
  content: "";
}

.project-card[data-accent="red"]::after {
  background: var(--red);
}

.project-card[data-accent="mint"]::after {
  background: var(--success);
}

.project-card[data-accent="yellow"]::after {
  background: var(--yellow);
}

.project-card-top,
.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stage-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 760;
}

.stage-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.project-date {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.project-card h2 {
  margin: 34px 0 13px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
}

.project-card .project-theme {
  display: -webkit-box;
  margin-bottom: 25px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-card-footer {
  margin-top: auto;
  padding-top: 19px;
  border-top: 1px solid var(--mist);
}

.mini-progress {
  flex: 1;
}

.mini-progress-line {
  height: 4px;
  margin-top: 6px;
  background: var(--mist);
}

.mini-progress-line i {
  display: block;
  height: 100%;
  background: var(--blue);
}

.mini-progress span {
  color: var(--muted);
  font-size: 10px;
}

.project-card.list-card {
  min-height: 170px;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 260px;
  align-items: center;
  gap: 30px;
}

.project-card.list-card h2 {
  margin: 0 0 8px;
}

.project-card.list-card .project-theme {
  margin: 0;
}

.project-card.list-card .project-card-footer {
  margin: 0;
  border: 0;
}

.empty-state {
  min-height: 420px;
  padding: 70px 20px;
  text-align: center;
}

.empty-state[hidden] {
  display: none;
}

.empty-number {
  color: var(--line);
  font-family: var(--serif);
  font-size: 84px;
  line-height: 1;
}

.empty-state h2 {
  margin: 18px 0 10px;
  font-family: var(--serif);
  font-size: 30px;
}

.empty-state p {
  margin-bottom: 24px;
  color: var(--muted);
}

/* Workflow */
.workflow-page {
  min-height: calc(100vh - 140px);
}

.workflow-header {
  display: flex;
  min-height: 154px;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding-block: 28px;
}

.project-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.project-picker select {
  max-width: min(720px, 70vw);
  padding: 0 38px 0 0;
  overflow: hidden;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--serif);
  font-size: clamp(29px, 3vw, 43px);
  font-weight: 600;
  text-overflow: ellipsis;
  appearance: none;
}

.project-picker svg {
  position: absolute;
  right: 2px;
  pointer-events: none;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
}

.project-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.save-state {
  display: inline-flex;
  min-width: fit-content;
  align-items: center;
  gap: 8px;
  color: var(--success);
  font-size: 11px;
}

.save-state.is-saving {
  color: var(--muted);
}

.stage-nav {
  position: sticky;
  z-index: 30;
  top: 72px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.stage-tab {
  position: relative;
  min-height: 76px;
  padding: 13px 14px;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
}

.stage-tab:last-child {
  border-right: 0;
}

.stage-tab .tab-index {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}

.stage-tab strong {
  display: block;
  font-size: 13px;
}

.stage-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 4px;
  background: var(--blue);
  content: "";
  opacity: 0;
}

.stage-tab.is-active {
  background: var(--blue-soft);
}

.stage-tab.is-active::after {
  opacity: 1;
}

.stage-tab.is-complete .tab-index::after {
  margin-left: 8px;
  color: var(--success);
  content: "✓";
}

.workspace-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 900px);
  justify-content: center;
  gap: clamp(30px, 5vw, 80px);
  padding-block: 54px 100px;
}

.stage-rail {
  position: sticky;
  top: 175px;
  height: fit-content;
}

.stage-summary {
  margin-top: 24px;
}

.stage-summary strong {
  display: block;
  margin-bottom: 9px;
  font-family: var(--serif);
  font-size: 24px;
}

.stage-summary p {
  color: var(--muted);
  font-size: 12px;
}

.stage-completion {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.stage-completion .coverage-bar {
  margin-top: 9px;
}

.rail-note {
  margin-top: 42px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.rail-note svg {
  color: var(--red);
}

.rail-note p {
  margin: 10px 0 0;
  font-size: 11px;
}

.editor-surface {
  min-width: 0;
}

.editor-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.editor-heading h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(35px, 4vw, 52px);
  font-weight: 600;
}

.editor-heading p:last-child {
  max-width: 390px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.editor-form {
  display: grid;
  gap: 26px;
}

.form-section {
  padding: 30px 0 34px;
  border-top: 1px solid var(--ink);
}

.form-section:first-child {
  border-top-width: 3px;
}

.form-section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.form-section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
}

.form-section-heading p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field > span,
.field > label {
  font-size: 11px;
  font-weight: 760;
}

.field small {
  color: var(--muted);
  font-size: 10px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 3px;
  outline: none;
  background: var(--surface);
}

.field input,
.field select {
  height: 44px;
  padding: 8px 12px;
}

.field textarea {
  min-height: 120px;
  padding: 12px 14px;
  line-height: 1.75;
  resize: vertical;
}

.field textarea.editor-tall {
  min-height: 420px;
  font-family: var(--serif);
  font-size: 16px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.check-option {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12px;
}

.check-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.rating-grid {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.rating-row {
  display: grid;
  grid-template-columns: 180px 1fr 38px;
  align-items: center;
  gap: 18px;
  padding: 14px;
  background: var(--surface);
}

.rating-row label {
  font-size: 12px;
  font-weight: 700;
}

.rating-row input {
  width: 100%;
  accent-color: var(--blue);
}

.rating-value {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  background: var(--ink-solid);
  color: var(--white);
  font-family: var(--serif);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.form-actions-right {
  display: flex;
  gap: 9px;
}

.stage-callout {
  display: flex;
  align-items: start;
  gap: 13px;
  padding: 17px 18px;
  border-left: 4px solid var(--red);
  background: var(--red-soft);
}

.stage-callout svg {
  color: var(--red);
}

.stage-callout p {
  margin: 0;
  font-size: 12px;
}

/* Publish */
.publish-project-control {
  padding-bottom: 8px;
}

.publish-project-control > label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.select-field.large {
  min-width: min(460px, 100%);
}

.select-field.large select {
  height: 50px;
  font-family: var(--serif);
  font-size: 17px;
}

.publish-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(350px, 0.65fr);
  align-items: start;
  gap: 58px;
  padding-block: 50px 96px;
  border-top: 1px solid var(--line);
}

.channel-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.channel-item {
  position: relative;
  display: flex;
  min-height: 118px;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.channel-item.is-selected {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.channel-item input {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 17px;
  height: 17px;
  accent-color: var(--blue);
}

.channel-name {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 780;
}

.channel-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--white);
  background: var(--ink-solid);
  font-family: var(--serif);
  font-size: 12px;
}

.channel-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}

.channel-state select {
  padding: 3px 20px 3px 5px;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size: 10px;
  font-weight: 720;
}

.publish-copy-heading {
  margin-top: 62px;
}

.publish-form {
  display: grid;
  gap: 18px;
  padding-top: 25px;
  border-top: 3px solid var(--ink);
}

.publish-sidebar {
  position: sticky;
  top: 96px;
  min-width: 0;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.article-preview {
  max-height: 630px;
  padding: 34px;
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.article-preview h1 {
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 600;
}

.article-preview .preview-summary {
  margin-bottom: 27px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.article-preview .preview-body {
  white-space: pre-wrap;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.95;
}

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 27px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.export-actions {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}

.import-label {
  cursor: pointer;
}

.import-label input {
  display: none;
}

.future-integrations {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.future-integrations h3 {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: 22px;
}

.future-integrations button {
  display: grid;
  width: 100%;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  text-align: left;
  font-size: 12px;
}

.future-integrations button span {
  font-size: 9px;
}

/* Dialogs and notifications */
.modal-backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  padding: 24px;
  overflow-y: auto;
  place-items: center;
  background: rgba(23, 24, 22, 0.72);
}

.modal {
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px 22px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
}

.modal-body {
  padding: 28px 30px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 18px 30px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

/* Writer profile onboarding */
.onboarding-backdrop {
  padding: 24px;
  background: rgba(23, 24, 22, 0.82);
}

.onboarding-modal {
  display: grid;
  width: min(1180px, 100%);
  min-height: min(760px, calc(100vh - 48px));
  max-height: calc(100vh - 48px);
  grid-template-columns: 286px minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.onboarding-rail {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 30px 26px 24px;
  color: var(--white);
  background: var(--ink-solid);
}

.onboarding-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.onboarding-brand .brand-mark {
  color: var(--ink-solid);
  background: var(--white);
}

.onboarding-brand > span:last-child {
  display: flex;
  flex-direction: column;
}

.onboarding-brand strong {
  font-family: var(--serif);
  font-size: 17px;
}

.onboarding-brand small {
  margin-top: 3px;
  color: #aeb1aa;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.onboarding-progress-copy {
  display: flex;
  justify-content: space-between;
  margin-top: 35px;
  color: #c7cac3;
  font-size: 10px;
}

.onboarding-progress-copy strong {
  color: var(--white);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.onboarding-progress {
  height: 3px;
  margin-top: 9px;
  background: #3b3d39;
}

.onboarding-progress i {
  display: block;
  height: 100%;
  background: var(--yellow);
  transition: width 180ms ease;
}

.onboarding-steps {
  display: grid;
  gap: 3px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.onboarding-steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: #898d85;
}

.onboarding-steps li > span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}

.onboarding-steps li div {
  display: grid;
}

.onboarding-steps li strong {
  font-size: 11px;
}

.onboarding-steps li small {
  color: inherit;
  font-size: 8px;
}

.onboarding-steps li.is-active {
  color: var(--white);
}

.onboarding-steps li.is-active > span {
  color: var(--yellow);
}

.onboarding-steps li.is-complete {
  color: #b9daca;
}

.onboarding-privacy {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: auto 0 0;
  color: #aeb1aa;
  font-size: 9px;
  line-height: 1.55;
}

.onboarding-privacy svg {
  width: 15px;
  height: 15px;
  color: var(--mint);
}

.onboarding-content {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.onboarding-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 38px 23px;
  border-bottom: 1px solid var(--line);
}

.onboarding-header h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 600;
}

.onboarding-header > div > p:last-child {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.onboarding-pause-top {
  min-width: fit-content;
}

.onboarding-fields {
  min-height: 0;
  padding: 28px 38px 40px;
  overflow-y: auto;
}

.field-help {
  margin: -4px 0 2px;
  color: var(--muted);
  font-size: 10px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.choice-option {
  min-width: 0;
}

.choice-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.choice-option > span {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 7px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
  font-size: 11px;
  line-height: 1.35;
}

.choice-option svg {
  width: 14px;
  height: 14px;
  opacity: 0;
}

.choice-option input:checked + span {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
  font-weight: 720;
}

.choice-option input:checked + span svg {
  opacity: 1;
}

.choice-option input:focus-visible + span {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.profile-scales {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.profile-scale {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  background: var(--surface);
}

.profile-scale > span,
.profile-scale small {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-scale strong {
  font-size: 11px;
}

.profile-scale output {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.profile-scale input {
  width: 100%;
  accent-color: var(--blue);
}

.profile-scale small {
  color: var(--muted);
  font-size: 8px;
}

.question-note {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 28px;
  padding: 16px 18px;
  border-left: 4px solid var(--blue);
  background: var(--blue-soft);
}

.question-note svg {
  color: var(--blue);
}

.question-note strong {
  font-size: 12px;
}

.question-note p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.platform-group + .platform-group {
  margin-top: 27px;
}

.platform-group-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.platform-group-heading h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 17px;
}

.platform-group-heading span {
  color: var(--muted);
  font-size: 9px;
}

.platform-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.platform-choice {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 62px;
  grid-template-columns: 31px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.platform-choice input {
  position: absolute;
  opacity: 0;
}

.platform-choice-mark {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: var(--white);
  background: var(--ink-solid);
  font-family: var(--serif);
  font-size: 14px;
}

.platform-choice-copy {
  display: grid;
  min-width: 0;
}

.platform-choice-copy strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-choice-copy small {
  color: var(--muted);
  font-size: 8px;
}

.platform-choice > svg {
  width: 15px;
  height: 15px;
  color: var(--blue);
  opacity: 0;
}

.platform-choice:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.platform-choice:has(input:checked) > svg {
  opacity: 1;
}

.platform-choice.is-recommended {
  border-left: 3px solid var(--blue);
}

.platform-choice.is-recommended .platform-choice-copy small {
  color: var(--blue);
  font-weight: 800;
}

.platform-choice.is-owned {
  color: var(--muted);
  background: var(--mist);
  cursor: default;
}

.platform-choice.is-owned > svg {
  color: var(--success);
  opacity: 1;
}

.profile-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-summary > div {
  min-width: 0;
  padding: 20px 16px;
  border-right: 1px solid var(--line);
}

.profile-summary > div:last-child {
  border-right: 0;
}

.profile-summary span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.profile-summary strong {
  display: block;
  margin: 4px 0;
  font-family: var(--serif);
  font-size: 26px;
}

.profile-summary p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.onboarding-footer {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 38px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.onboarding-footer-actions {
  display: flex;
  gap: 9px;
}

.toast-region {
  position: fixed;
  z-index: 120;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: min(360px, calc(100vw - 44px));
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border-left: 4px solid var(--blue);
  color: var(--white);
  background: var(--ink-solid);
  box-shadow: var(--shadow);
  font-size: 12px;
  animation: toast-in 180ms ease-out;
}

.toast.is-error {
  border-left-color: var(--red);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 1100px) {
  :root {
    --shell: min(100% - 44px, 1040px);
  }

  .site-header {
    grid-template-columns: 190px 1fr auto;
    padding-inline: 22px;
  }

  .site-nav a {
    min-width: 78px;
  }

  .site-nav .profile-nav,
  .site-nav .theme-nav {
    min-width: 78px;
  }

  .choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .platform-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-hero {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 35px;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-toolbar {
    grid-template-columns: 1fr 160px 160px;
  }

  .toolbar-create {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .workspace-shell {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 35px;
  }

  .publish-layout {
    gap: 30px;
  }

  .channel-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  :root {
    --shell: calc(100% - 32px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 64px;
    padding-inline: 16px;
  }

  .site-header .nav-toggle {
    display: inline-flex;
  }

  .header-action {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    display: none;
    padding: 8px 16px 15px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .site-nav.is-open {
    position: static;
    display: grid;
    width: calc(100% + 32px);
    grid-template-columns: repeat(6, 1fr);
    grid-column: 1 / -1;
    margin-inline: -16px;
  }

  .site-nav a,
  .site-nav .profile-nav,
  .site-nav .theme-nav {
    min-width: 0;
  }

  .site-nav a::after {
    bottom: -7px;
  }

  .dashboard-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 48px;
  }

  .hero-copy {
    padding: 0;
  }

  .hero-visual {
    width: 92%;
    margin-left: auto;
  }

  .hero-visual img {
    aspect-ratio: 1.6;
  }

  .process-track {
    grid-template-columns: repeat(3, 1fr);
  }

  .dashboard-grid,
  .principles-layout,
  .page-intro,
  .publish-intro,
  .publish-layout {
    grid-template-columns: 1fr;
  }

  .principles-layout {
    gap: 32px;
  }

  .vertical-label {
    writing-mode: initial;
  }

  .project-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .search-field {
    grid-column: 1 / -1;
  }

  .project-card.list-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stage-nav {
    top: 64px;
    overflow-x: auto;
    grid-template-columns: repeat(6, minmax(120px, 1fr));
  }

  .workspace-shell {
    grid-template-columns: 1fr;
  }

  .stage-rail {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    border-bottom: 1px solid var(--line);
  }

  .rail-note {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .publish-sidebar {
    position: static;
  }

  .article-preview {
    max-height: none;
  }

  .onboarding-backdrop {
    padding: 0;
  }

  .onboarding-modal {
    width: 100%;
    min-height: 100dvh;
    max-height: 100dvh;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    border-radius: 0;
  }

  .onboarding-rail {
    padding: 17px 20px 12px;
  }

  .onboarding-brand .brand-mark {
    width: 30px;
    height: 30px;
  }

  .onboarding-brand strong {
    font-size: 14px;
  }

  .onboarding-progress-copy {
    margin-top: 13px;
  }

  .onboarding-steps {
    display: flex;
    gap: 17px;
    margin: 10px 0 0;
    overflow-x: auto;
  }

  .onboarding-steps li {
    min-width: fit-content;
    grid-template-columns: 20px auto;
    gap: 4px;
    padding: 3px 0;
  }

  .onboarding-steps li small,
  .onboarding-privacy {
    display: none;
  }

  .onboarding-content {
    min-height: 0;
  }

  .onboarding-header,
  .onboarding-fields,
  .onboarding-footer {
    padding-inline: 24px;
  }

  .onboarding-header {
    padding-block: 22px 17px;
  }

  .onboarding-fields {
    padding-block: 22px 30px;
  }
}

@media (max-width: 560px) {
  :root {
    --shell: calc(100% - 24px);
  }

  body {
    font-size: 14px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand strong {
    font-size: 16px;
  }

  .site-nav.is-open {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-nav a {
    justify-content: flex-start;
    padding-left: 14px;
  }

  .site-nav .profile-nav,
  .site-nav .theme-nav {
    justify-content: flex-start;
    padding-left: 14px;
  }

  .theme-switcher {
    width: 100%;
  }

  .site-nav .theme-nav {
    width: 100%;
  }

  .theme-menu {
    top: calc(100% + 5px);
    right: 0;
    width: min(260px, calc(100vw - 28px));
  }

  .hero-copy h1,
  .page-intro h1,
  .publish-intro h1 {
    font-size: 40px;
  }

  .hero-intro {
    font-size: 16px;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-stats {
    margin-top: 38px;
  }

  .hero-stat {
    padding-right: 8px;
  }

  .hero-stat + .hero-stat {
    padding-left: 10px;
  }

  .hero-stat strong {
    font-size: 25px;
  }

  .hero-stat span {
    font-size: 10px;
  }

  .hero-visual {
    width: 100%;
  }

  .split-heading {
    display: block;
  }

  .split-heading > p,
  .split-heading > .text-link {
    margin-top: 16px;
  }

  .process-track {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-project {
    grid-template-columns: 1fr;
    padding: 27px 22px;
  }

  .project-progress-figure {
    justify-content: flex-start;
  }

  .principles-layout blockquote {
    font-size: 27px;
  }

  .page-intro,
  .publish-intro {
    gap: 28px;
    padding-block: 50px 38px;
  }

  .project-toolbar {
    grid-template-columns: 1fr;
  }

  .search-field,
  .toolbar-create {
    grid-column: auto;
    width: 100%;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 280px;
    padding: 23px;
  }

  .workflow-header {
    min-height: 145px;
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }

  .project-picker select {
    max-width: calc(100vw - 56px);
    font-size: 28px;
  }

  .stage-rail {
    grid-template-columns: 1fr;
  }

  .editor-heading,
  .form-section-heading,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .editor-heading p:last-child,
  .form-section-heading p {
    max-width: none;
  }

  .field-grid,
  .field-grid.three,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .rating-row {
    grid-template-columns: 1fr 42px;
  }

  .rating-row input {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .rating-value {
    grid-column: 2;
    grid-row: 1;
  }

  .form-actions-right,
  .form-actions-right .button {
    width: 100%;
  }

  .form-actions-right {
    flex-direction: column-reverse;
  }

  .channel-matrix {
    grid-template-columns: 1fr;
  }

  .select-field.large {
    min-width: 0;
  }

  .article-preview {
    padding: 25px 20px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 17px 16px;
  }

  .modal-backdrop {
    padding: 0;
    place-items: end center;
  }

  .modal {
    max-height: 92vh;
    border-radius: 6px 6px 0 0;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding-inline: 20px;
  }

  .onboarding-rail {
    padding-inline: 14px;
  }

  .onboarding-brand small {
    display: none;
  }

  .onboarding-header,
  .onboarding-fields,
  .onboarding-footer {
    padding-inline: 16px;
  }

  .onboarding-header h2 {
    font-size: 26px;
  }

  .onboarding-header > div > p:last-child {
    display: none;
  }

  .onboarding-pause-top {
    font-size: 11px;
  }

  .choice-grid,
  .platform-choice-grid {
    grid-template-columns: 1fr 1fr;
  }

  .choice-option > span {
    min-height: 44px;
    padding-inline: 8px;
    font-size: 10px;
  }

  .platform-choice-grid {
    grid-template-columns: 1fr;
  }

  .profile-summary {
    grid-template-columns: 1fr;
  }

  .profile-summary > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .profile-summary > div:last-child {
    border-bottom: 0;
  }

  .onboarding-footer {
    min-height: 70px;
  }

  .onboarding-footer-actions .pause-button {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
