:root {
  --font-interface: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-editorial: Georgia, "Times New Roman", serif;
  --bg: #ffffff;
  --surface: #fbfaf7;
  --surface-strong: #ffffff;
  --text: #131311;
  --muted: #69665f;
  --line: rgba(19, 19, 17, 0.14);
  --line-strong: rgba(19, 19, 17, 0.28);
  --inverse: #fff;
  --accent: #1746a2;
  --success: #2b7351;
  --warning: #a15b21;
  --danger: #a43838;
  --shadow: 0 22px 70px rgba(44, 39, 31, 0.1);
}

/* Option 1: compact guided header and connected billing history. */
.workspace-next-step[hidden] {
  display: none;
}

.workspace-tabs [hidden] {
  display: none !important;
}

.workspace-conversation [hidden],
.workspace-roadmap [hidden],
.workspace-card--team[hidden] {
  display: none !important;
}

.billing-history__table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--workspace-panel);
}

.billing-history__table .billing-history__head {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.billing-history__table .billing-history__head[hidden] {
  display: none;
}

.billing-history__table .payment-list {
  border: 0;
  border-radius: 0;
}

.billing-history__table .billing-history__empty {
  display: flex;
  min-height: 0;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 0.8rem 0.9rem;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  text-align: left;
}

.billing-history__empty-icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-strong);
}

.billing-history__empty-icon img {
  width: 1.05rem;
  height: 1.05rem;
  opacity: 0.7;
}

.billing-history__empty strong {
  display: block;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
}

.billing-history__empty p {
  margin: 0.22rem 0 0;
  font-size: 0.68rem;
  line-height: 1.45;
}

.billing-history__table .billing-history__empty[hidden] {
  display: none;
}

.billing-history:has(.billing-history__empty:not([hidden])) [data-payment-history-help] {
  display: none;
}

.workspace-appointments__section-head[hidden] {
  display: none;
}

.workspace-conversation:has(.activity-list:empty) {
  height: auto;
  min-height: 0;
  grid-template-rows: auto auto auto;
}

body:has([data-workspace-tab="conversation"][aria-selected="true"])
  .workspace-command-center,
body:has([data-workspace-tab="appointments"][aria-selected="true"])
  .workspace-command-center:has([data-appointment-empty]:not([hidden])),
body:has([data-workspace-tab="appointments"][aria-selected="true"])
  .workspace-tab-panels:has([data-appointment-empty]:not([hidden])),
body:has([data-workspace-tab="appointments"][aria-selected="true"])
  .workspace-panel--appointments:has([data-appointment-empty]:not([hidden])) {
  min-height: 0;
}

@media (max-width: 680px) {
  .billing-history__table .payment-list {
    padding: 0.65rem;
  }

  .billing-history__table .billing-history__empty {
    min-height: 0;
    padding: 0.75rem;
  }
}

/* Keep Billing focused on the action inside the panel instead of repeating it above. */
body:has([data-workspace-tab="billing"][aria-selected="true"])
  .workspace-next-step[data-has-action="true"] {
  display: none;
}

@media (min-width: 821px) {
  .workspace-panel-grid--billing .billing-plan {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
  }

  .workspace-panel-grid--billing .billing-plan__kicker {
    grid-column: 1;
    grid-row: 1;
  }

  .workspace-panel-grid--billing .billing-plan__topline {
    grid-column: 1;
    grid-row: 2;
  }

  .workspace-panel-grid--billing .billing-plan__launch {
    grid-column: 2;
    grid-row: 1 / 3;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .workspace-panel-grid--billing .billing-plan__launch:has([data-payment-card-action]:not([hidden])) > div {
    display: none;
  }

  .workspace-panel-grid--billing .billing-plan__launch > [data-payment-card-action] {
    width: clamp(17rem, 25vw, 20rem);
  }
}

html[data-theme="dark"] {
  --bg: #0c0d0d;
  --surface: #131515;
  --surface-strong: #191b1b;
  --text: #f6f3ec;
  --muted: #a8a49c;
  --line: rgba(246, 243, 236, 0.14);
  --line-strong: rgba(246, 243, 236, 0.28);
  --inverse: #101111;
  --accent: #7da7ff;
  --success: #76c59e;
  --warning: #e2a46b;
  --danger: #ed8a8a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  background: var(--bg);
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 0%, color-mix(in srgb, var(--accent) 5%, transparent), transparent 35rem),
    var(--bg);
  font-family: var(--font-interface);
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

button,
select {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

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

::selection {
  color: var(--inverse);
  background: var(--text);
}

html[data-theme="dark"] ::selection {
  color: #000;
  background: #fff;
}

.workspace-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: minmax(11rem, 1fr) auto minmax(11rem, 1fr);
  min-height: 4.8rem;
  align-items: center;
  gap: 2rem;
  padding: 0 3vw;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(20px) saturate(1.25);
}

.workspace-customer-preview {
  position: relative;
  z-index: 19;
  top: auto;
  border-bottom: 1px solid #454645;
  color: #f8f6f0;
  background: #1a1b1a;
  box-shadow: 0 10px 28px rgba(16, 17, 17, 0.14);
}

.workspace-customer-preview[hidden] {
  display: none;
}

.workspace-customer-preview > div {
  display: grid;
  width: min(1500px, calc(100% - 3rem));
  min-height: 3.7rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin: 0 auto;
  padding: 0.65rem 0;
}

.workspace-customer-preview span {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.4rem 0.65rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.workspace-customer-preview p {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.45;
}
.workspace-customer-preview__copy { min-width: 0; overflow-wrap: anywhere; }
.workspace-customer-preview [data-preview-feedback]:empty { display: none; }
.workspace-customer-preview [data-preview-feedback]:not(:empty) { margin-top: .35rem; font-weight: 650; }
.workspace-customer-preview :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.workspace-customer-preview [hidden] { display: none; }

.workspace-customer-preview nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.workspace-customer-preview a,
.workspace-customer-preview button {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0 0.85rem;
  border-radius: 999px;
  color: #17130b;
  background: #f8f6f0;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.workspace-customer-preview button {
  border: 1px solid #7f817f;
  color: #f8f6f0;
  background: transparent;
}

html[data-theme="dark"] .workspace-customer-preview {
  color: #f8f6f0;
  background: #1a1b1a;
}

html[data-theme="dark"] .workspace-customer-preview a {
  color: #17130b;
  background: #f8f6f0;
}

@media (max-width: 1100px) {
  .workspace-customer-preview {
    top: auto;
  }

  .workspace-customer-preview > div {
    width: min(100% - 1.25rem, 1500px);
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.55rem 0.8rem;
    padding: 0.6rem 0;
  }

  .workspace-customer-preview span {
    justify-self: start;
  }

  .workspace-customer-preview nav {
    grid-column: 1 / -1;
    flex-wrap: wrap;
  }

  .workspace-customer-preview > div > a {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .workspace-customer-preview > div { grid-template-columns: minmax(0, 1fr); }
  .workspace-customer-preview > div > span { display: none; }
  .workspace-customer-preview p { font-size: .75rem; }
  .workspace-customer-preview nav { gap: .5rem; }
}

.workspace-brand {
  width: clamp(190px, 17vw, 250px);
}

.workspace-brand img {
  display: block;
  width: 100%;
}

html[data-theme="dark"] .workspace-brand img {
  filter: none;
}

.workspace-header nav {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.workspace-header a {
  color: inherit;
  font-size: 0.8rem;
  text-decoration: none;
}

.workspace-header nav a {
  position: relative;
  padding-block: 0.5rem;
  color: var(--muted);
  font-weight: 500;
  transition: color 180ms ease;
}

.workspace-header nav a::after {
  position: absolute;
  right: 0;
  bottom: 0.18rem;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.workspace-header nav a:hover,
.workspace-header nav a:focus-visible,
.workspace-header nav a[aria-current="page"] {
  color: var(--text);
}

.workspace-header nav a:hover::after,
.workspace-header nav a:focus-visible::after,
.workspace-header nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.workspace-header__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  justify-content: flex-end;
}

.account-entry,
.header-sign-out,
.theme-picker__trigger {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--text) 24%, transparent);
  border-radius: 50%;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  box-shadow: 0 9px 24px rgba(17, 17, 15, 0.08);
  cursor: pointer;
  backdrop-filter: blur(18px) saturate(1.15);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.account-entry {
  overflow: hidden;
}

.account-entry:hover,
.header-sign-out:hover,
.theme-picker__trigger:hover,
.theme-picker.is-open .theme-picker__trigger {
  border-color: color-mix(in srgb, var(--text) 48%, transparent);
  background: var(--surface);
  transform: translateY(-1px);
}

.account-entry:focus-visible,
.header-sign-out:focus-visible,
.theme-picker__trigger:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.account-entry svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.account-entry img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.account-entry img[hidden],
.account-entry svg[hidden],
.header-sign-out[hidden] {
  display: none;
}

.header-sign-out:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

.header-sign-out svg,
.theme-picker__trigger svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.theme-picker__trigger svg path {
  fill: currentColor;
  stroke: none;
}

.theme-picker {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
}

.theme-picker__panel {
  position: absolute;
  top: calc(100% + 13px);
  right: 0;
  width: min(276px, calc(100vw - 2rem));
  padding: 12px;
  visibility: hidden;
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  border-radius: 14px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: 0 24px 70px rgba(17, 17, 15, 0.18);
  opacity: 0;
  transform: translateY(-8px) scale(0.985);
  transform-origin: top right;
  pointer-events: none;
  backdrop-filter: blur(26px) saturate(1.2);
  transition: opacity 160ms ease, transform 200ms ease, visibility 160ms;
}

.theme-picker.is-open .theme-picker__panel {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.theme-picker__head {
  display: grid;
  gap: 3px;
  padding: 8px 9px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
}

.theme-picker__head strong {
  font-size: 13px;
  font-weight: 700;
}

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

.theme-picker__options {
  display: grid;
  gap: 3px;
  padding-top: 7px;
}

.theme-picker__options label {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 56px;
  grid-template-columns: 34px minmax(0, 1fr) 16px;
  gap: 11px;
  align-items: center;
  padding: 8px 9px;
  border: 0;
  border-radius: 9px;
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease;
}

.theme-picker__options label:hover,
.theme-picker__options label:has(input:checked) {
  background: color-mix(in srgb, var(--text) 7%, transparent);
}

.theme-picker__options label:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-picker__options input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.theme-picker__options label > span:nth-of-type(2) {
  display: grid;
  gap: 1px;
}

.theme-picker__options strong {
  font-size: 12px;
  font-weight: 700;
}

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

.theme-picker__options i {
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--text) 28%, transparent);
  border-radius: 50%;
}

.theme-picker__options input:checked ~ i {
  border-color: var(--text);
  background: var(--text);
  box-shadow: inset 0 0 0 3px var(--surface);
}

.theme-picker__icon {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
  border-radius: 50%;
}

.theme-picker__icon--light {
  background: #ffffff;
  box-shadow: inset 0 0 0 5px #f7f6f2;
}

.theme-picker__icon--dark {
  background: #11110f;
  box-shadow: inset 0 0 0 5px #2b2b29;
}

.theme-picker__icon--system {
  isolation: isolate;
  border-color: #d9d7d0;
  background: #ffffff;
  box-shadow: 0 2px 7px rgba(17, 17, 15, 0.07);
}

.theme-picker__icon--system::after {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 50%;
  background: #11110f;
  content: "";
}

html[data-theme="dark"] .theme-picker__icon--system {
  border-color: rgba(255, 255, 255, 0.24);
}

main {
  min-height: calc(100svh - 4.8rem);
}

.workspace-auth-gate {
  display: grid;
  width: min(34rem, calc(100% - 2rem));
  min-height: calc(100svh - 4.8rem);
  place-content: center;
  justify-items: center;
  margin: 0 auto;
  text-align: center;
}

.workspace-auth-gate[hidden] {
  display: none;
}

.workspace-auth-gate > img {
  width: 3.5rem;
  margin-bottom: 1.25rem;
}

.workspace-auth-gate > p:first-of-type,
.workspace-intro > div > p,
.workspace-stream > header p,
.request-history > header p,
.workspace-revisions > header p,
.workspace-card > p:first-child,
.workspace-card header p,
.workspace-request-summary > p,
.workspace-dialog header p {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.workspace-auth-gate h1,
.workspace-intro h1,
.workspace-empty h1,
.workspace-stream h2,
.request-history h2,
.workspace-revisions h3,
.workspace-card h2,
.workspace-dialog h2 {
  margin: 0;
  font-family: var(--font-editorial);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.workspace-auth-gate h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
}

.workspace-auth-gate > p:nth-of-type(2) {
  max-width: 28rem;
  margin: 1rem 0 1.5rem;
  color: var(--muted);
  line-height: 1.6;
}

.workspace-auth-gate__account {
  display: grid;
  width: min(100%, 28rem);
  gap: 0.35rem;
  margin: -0.25rem 0 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: 1rem;
  background: var(--surface-strong);
  text-align: left;
}

.workspace-auth-gate__account[hidden] {
  display: none;
}

.workspace-auth-gate__account span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.workspace-auth-gate__account strong {
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.workspace-auth-gate > button,
.account-status-dialog [data-auth-sign-in] {
  display: inline-flex;
  min-height: 3.1rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-strong);
}

.workspace-auth-gate > button {
  width: min(100%, 28rem);
  justify-content: center;
  border-color: #11110f;
  color: #fff;
  background: #11110f;
  font-weight: 700;
  cursor: pointer;
}

.workspace-auth-gate > button > svg {
  width: 1.1rem;
  margin-left: auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.workspace-auth-gate > button > img {
  margin-right: auto;
}

.workspace-auth-gate > button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgb(0 0 0 / 16%);
}

.workspace-auth-gate > button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--text) 28%, transparent);
  outline-offset: 3px;
}

.workspace-auth-gate button img,
.account-status-dialog [data-auth-sign-in] img {
  width: 1.25rem;
}

.workspace-auth-gate output {
  min-height: 1.4rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.workspace-shell {
  width: min(92rem, 94vw);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 6rem) 0 6rem;
}

.workspace-shell[hidden] {
  display: none;
}

.workspace-quick-shell {
  display: flex;
  width: min(92rem, 94vw);
  min-height: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 1rem auto;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 12px 30px rgb(0 0 0 / 6%);
}

.workspace-quick-shell[hidden] {
  display: none;
}

.workspace-quick-shell header {
  display: grid;
  max-width: 50rem;
  gap: 0.2rem;
}

.workspace-quick-shell header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.workspace-quick-shell header h1 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.05;
}

.workspace-quick-shell header span {
  display: block;
  max-width: 38rem;
  margin-top: 0.15rem;
  color: var(--muted);
  line-height: 1.45;
}

.workspace-quick-shell > div {
  flex: 0 0 auto;
  display: grid;
  width: min(10rem, 28vw);
  grid-template-columns: 1.3fr 1fr 0.8fr;
  gap: 0.35rem;
  margin: 0;
}

.workspace-quick-shell > div span {
  min-height: 0.4rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(110deg, var(--surface) 30%, color-mix(in srgb, var(--surface) 68%, var(--text)) 45%, var(--surface) 60%);
  background-size: 220% 100%;
  animation: workspace-quick-shimmer 1.4s ease-in-out infinite;
}

@keyframes workspace-quick-shimmer {
  to { background-position-x: -220%; }
}

@media (max-width: 700px) {
  .workspace-quick-shell {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .workspace-quick-shell > div {
    width: 100%;
    grid-template-columns: 1.3fr 1fr 0.8fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .workspace-quick-shell > div span {
    animation: none;
  }
}

.workspace-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.8rem;
}

.workspace-intro h1 {
  max-width: 54rem;
  font-size: clamp(2.7rem, 5.8vw, 6rem);
  line-height: 0.98;
}

.workspace-intro > div > p:last-child {
  max-width: 47rem;
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.workspace-intro__new {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
  font-size: 0.76rem;
  text-decoration: none;
}

.workspace-invite {
  margin: -0.6rem 0 2.5rem;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 1.45rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  scroll-margin-top: 6rem;
}

.workspace-invite[hidden] {
  display: none;
}

.workspace-invite > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.35rem 1.45rem;
  border-bottom: 1px solid var(--line);
}

.workspace-invite > header > div > p:first-child,
.workspace-invite__quote > p:first-child {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.workspace-invite h2,
.workspace-invite h3 {
  margin: 0;
  font-family: var(--font-editorial);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.workspace-invite h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.workspace-invite h3 {
  font-size: 1.7rem;
}

.workspace-invite > header > div > p:last-child {
  max-width: 46rem;
  margin: 0.7rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.workspace-invite > header > span {
  flex: 0 0 auto;
  padding: 0.48rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
  white-space: nowrap;
}

.workspace-invite form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.45rem;
}

.workspace-invite form.has-side {
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
}

.workspace-invite__fields {
  display: grid;
  gap: 0.85rem;
}

.workspace-invite__side {
  display: grid;
  align-self: start;
  gap: 1rem;
}

.workspace-invite__side[hidden],
.working-preview[hidden] {
  display: none;
}

.workspace-invite label {
  display: grid;
  gap: 0.42rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.workspace-invite label small {
  font-weight: 500;
}

.workspace-invite input,
.workspace-invite textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.85rem;
  color: var(--text);
  background: var(--surface-strong);
  font: inherit;
  font-weight: 500;
  line-height: 1.5;
}

.workspace-invite select {
  width: 100%;
  min-height: 3rem;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.85rem 2.7rem 0.85rem 0.85rem;
  color: var(--text);
  background-color: var(--surface-strong);
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 1.08rem) calc(50% - 0.08rem),
    calc(100% - 0.78rem) calc(50% - 0.08rem);
  background-repeat: no-repeat;
  background-size: 0.34rem 0.34rem, 0.34rem 0.34rem;
  font: inherit;
  font-weight: 600;
  line-height: 1.5;
}

.workspace-invite textarea {
  resize: vertical;
}

.workspace-invite__contact-grid,
.workspace-invite__phone {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.workspace-invite__phone[hidden],
.workspace-invite__phone-preference[hidden],
.workspace-invite [data-invite-clarification-field][hidden],
.workspace-invite__quote[hidden],
.workspace-card[hidden] {
  display: none;
}

.workspace-invite__phone-choice {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  line-height: 1.45;
}

.workspace-invite__phone-choice input {
  width: 1rem;
  height: 1rem;
  padding: 0;
}

.workspace-invite__phone-preference {
  display: grid;
  gap: 0.48rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.workspace-invite__phone-preference > legend {
  padding: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.workspace-invite__phone-preference > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.22rem;
  padding: 0.24rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: color-mix(in srgb, var(--surface-strong) 74%, var(--surface));
}

.workspace-invite__phone-preference label {
  position: relative;
  display: block;
  color: var(--muted);
}

.workspace-invite__phone-preference input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.workspace-invite__phone-preference span {
  display: grid;
  min-height: 2.5rem;
  place-items: center;
  border-radius: 0.72rem;
  font-size: 0.74rem;
  font-weight: 750;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.workspace-invite__phone-preference input:checked + span {
  color: var(--inverse);
  background: var(--text);
  box-shadow: 0 0.15rem 0.7rem rgba(0, 0, 0, 0.1);
}

.workspace-invite__phone-preference input:focus-visible + span {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.workspace-invite__intake {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 1rem;
  background: var(--surface-strong);
}

.workspace-invite__intake[hidden] {
  display: none;
}

.workspace-invite__intake > header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
}

.workspace-invite__intake-icon {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.workspace-invite__intake-icon img {
  width: 1.15rem;
  height: 1.15rem;
}

html[data-theme="dark"] .workspace-invite__intake-icon {
  background: var(--surface-strong);
}

html[data-theme="dark"] .workspace-invite__intake-icon img {
  filter: invert(1);
}

.workspace-invite__intake header p,
.workspace-invite__intake > p {
  margin: 0;
}

.workspace-invite__intake header p {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.workspace-invite__intake header h3 {
  margin-top: 0.15rem;
  font-size: 1.45rem;
}

.workspace-invite__intake header > span:last-child {
  padding: 0.4rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.workspace-invite__intake > p {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.workspace-invite__intake-slots {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.workspace-invite__intake-slots[hidden] {
  display: none;
}

.workspace-invite__intake-slots legend {
  margin-bottom: 0.55rem;
  padding: 0;
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 750;
}

.workspace-invite__intake-slots > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.workspace-invite__intake-slots label {
  position: relative;
  display: block;
}

.workspace-invite__intake-slots input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.workspace-invite__intake-slots label > span {
  display: grid;
  gap: 0.2rem;
  min-height: 4.3rem;
  align-content: center;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  color: var(--text);
  background: #fff;
  cursor: pointer;
}

html[data-theme="dark"] .workspace-invite__intake-slots label > span {
  background: var(--surface);
}

.workspace-invite__intake-slots label > span strong {
  font-size: 0.76rem;
}

.workspace-invite__intake-slots label > span small {
  color: var(--muted);
  font-size: 0.66rem;
}

.workspace-invite__intake-slots input:checked + span {
  color: var(--inverse);
  border-color: var(--text);
  background: var(--text);
}

.workspace-invite__intake-slots input:checked + span small {
  color: color-mix(in srgb, var(--inverse) 72%, transparent);
}

.workspace-invite__intake-slots input:focus-visible + span {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.workspace-invite__intake-contact {
  display: grid;
  grid-template-columns: minmax(12rem, 0.65fr) minmax(0, 1.35fr);
  gap: 0.65rem;
  align-items: stretch;
}

.workspace-invite__intake-zone {
  font-size: 0.68rem !important;
}

.workspace-invite__intake-unavailable {
  padding: 0.8rem;
  border: 1px solid color-mix(in srgb, var(--danger) 28%, var(--line));
  border-radius: 0.8rem;
  color: var(--danger) !important;
  background: color-mix(in srgb, var(--danger) 5%, #fff);
}

.workspace-invite__quote {
  align-self: start;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface-strong);
}

.workspace-invite__quote dl,
.workspace-quote-prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 1rem 0;
}

.workspace-invite__quote dl div,
.workspace-quote-prices div {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
}

.workspace-invite__quote dt,
.workspace-quote-prices dt {
  color: var(--muted);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.workspace-invite__quote dd,
.workspace-quote-prices dd {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: 1.35rem;
}

.workspace-invite__quote > p:not(:first-child),
.workspace-invite__quote small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.workspace-invite footer,
.workspace-invite output {
  grid-column: 1 / -1;
}

.workspace-invite footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.workspace-invite footer p {
  max-width: 40rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.workspace-invite footer button,
.workspace-invite footer a[data-invite-submit] {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 999px;
  color: var(--inverse);
  background: var(--text);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.workspace-invite output {
  min-height: 1.25em;
  color: var(--muted);
  font-size: 0.76rem;
}

.request-history {
  margin-bottom: 2rem;
  padding: 1.3rem 0 1.45rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.request-history[hidden] {
  display: none;
}

.request-history > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.request-history h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
}

.request-history > header > span {
  color: var(--muted);
  font-size: 0.74rem;
}

.request-history__scroller {
  overflow-x: auto;
  padding: 0.15rem 0 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.request-history__scroller:focus-visible {
  border-radius: 1rem;
}

.request-history ol {
  display: grid;
  min-width: min-content;
  grid-auto-columns: minmax(16rem, 21rem);
  grid-auto-flow: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.request-history li {
  min-width: 0;
}

.request-history button {
  display: grid;
  width: 100%;
  min-height: 7rem;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.05rem;
  color: var(--text);
  background: var(--surface);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.request-history button:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.request-history button[aria-current="true"] {
  border-color: var(--text);
  color: var(--inverse);
  background: var(--text);
}

.request-history__status-mark {
  width: 0.58rem;
  height: 0.58rem;
  margin-top: 0.25rem;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--warning) 65%, transparent);
}

.request-history__status-mark[data-stage="launched"] {
  background: var(--success);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--success) 65%, transparent);
}

.request-history__status-mark[data-stage="attention"] {
  background: var(--danger);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--danger) 65%, transparent);
}

.request-history button[aria-current="true"] .request-history__status-mark {
  border-color: var(--text);
}

.request-history button > span:last-child {
  display: grid;
  min-width: 0;
  gap: 0.42rem;
}

.request-history button > span:last-child > span {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.request-history small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.request-history button[aria-current="true"] small {
  color: color-mix(in srgb, var(--inverse) 68%, transparent);
}

.request-history button strong {
  overflow: hidden;
  font-family: var(--font-editorial);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-shell.is-empty {
  width: min(78rem, 94vw);
  padding-top: clamp(1.5rem, 4vw, 3.5rem);
}

.workspace-shell.is-unavailable {
  width: min(72rem, 94vw);
  padding-top: clamp(1.5rem, 4vw, 3.5rem);
}

.workspace-shell.is-empty .workspace-intro {
  display: none;
}

.workspace-unavailable {
  position: relative;
  min-height: min(40rem, calc(100svh - 9rem));
  align-content: center;
  justify-items: center;
  overflow: hidden;
  padding: clamp(2rem, 7vw, 6rem) clamp(1.25rem, 6vw, 5rem);
  border: 1px solid var(--line);
  border-radius: 1.7rem;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 25rem),
    var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.workspace-unavailable:not([hidden]) {
  display: grid;
}

.workspace-unavailable:focus {
  outline: none;
}

.workspace-unavailable__mark {
  display: grid;
  width: 3.65rem;
  height: 3.65rem;
  place-items: center;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text);
  background: var(--surface-strong);
  box-shadow: 0 14px 35px color-mix(in srgb, var(--text) 9%, transparent);
}

.workspace-unavailable__mark svg {
  width: 1.9rem;
  height: 1.9rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.workspace-unavailable > p:first-of-type {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.workspace-unavailable h1 {
  max-width: 15ch;
  margin: 0;
  font-family: var(--font-editorial);
  font-size: clamp(3rem, 6vw, 5.4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.workspace-unavailable > p[data-workspace-unavailable-copy] {
  max-width: 42rem;
  margin: 1.3rem 0 0;
  color: var(--muted);
  font-size: clamp(0.92rem, 1.35vw, 1.05rem);
  line-height: 1.65;
}

.workspace-unavailable__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.7rem;
}

.workspace-unavailable__actions a,
.workspace-unavailable__actions button {
  min-height: 3.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
}

.workspace-unavailable__actions button[hidden] {
  display: none;
}

.workspace-unavailable__actions .workspace-unavailable__primary {
  color: var(--inverse);
  border-color: var(--text);
  background: var(--text);
}

.workspace-unavailable__actions .workspace-unavailable__secondary {
  background: var(--surface-strong);
}

.workspace-unavailable__support {
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.workspace-unavailable__support a {
  color: inherit;
  text-underline-offset: 0.22rem;
}

.workspace-empty {
  position: relative;
  min-height: min(40rem, calc(100svh - 9rem));
  grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.72fr);
  gap: clamp(1.25rem, 4vw, 4rem);
  align-items: center;
  overflow: hidden;
  padding: clamp(1.35rem, 5vw, 4.5rem);
  border: 1px solid var(--line);
  border-radius: 1.7rem;
  background:
    radial-gradient(circle at 12% 6%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 22rem),
    var(--surface);
  box-shadow: var(--shadow);
  text-align: left;
}

.workspace-empty:not([hidden]) {
  display: grid;
}

.workspace-empty__intro {
  display: grid;
  justify-items: start;
}

.workspace-empty__mark {
  display: grid;
  width: 3.65rem;
  height: 3.65rem;
  place-items: center;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 50%;
  color: var(--inverse);
  background: var(--text);
  box-shadow: 0 14px 35px color-mix(in srgb, var(--text) 16%, transparent);
}

.workspace-empty__mark svg {
  width: 1.85rem;
  height: 1.85rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.workspace-empty__intro > p:first-of-type,
.workspace-empty__path > p {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.workspace-empty h1 {
  margin: 0;
  font-family: var(--font-editorial);
  font-weight: 400;
  letter-spacing: -0.035em;
  max-width: 9ch;
  font-size: clamp(3.2rem, 6.2vw, 5.8rem);
  line-height: 0.95;
}

.workspace-empty__intro > p:last-of-type {
  max-width: 37rem;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: clamp(0.92rem, 1.35vw, 1.08rem);
  line-height: 1.65;
}

.workspace-empty__intro > a {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  gap: 1rem;
  margin-top: 1.65rem;
  padding: 0 1.15rem 0 1.25rem;
  border: 1px solid var(--text);
  border-radius: 999px;
  color: var(--inverse);
  background: var(--text);
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
  transition: gap 180ms ease, transform 180ms ease;
}

.workspace-empty__intro > a:hover {
  gap: 1.3rem;
  transform: translateY(-1px);
}

.workspace-empty__intro > a svg {
  width: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.workspace-empty__path {
  position: relative;
  padding: clamp(1.15rem, 2.6vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
  box-shadow: 0 18px 55px color-mix(in srgb, var(--text) 7%, transparent);
}

.workspace-empty__path ol {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workspace-empty__path li {
  display: grid;
  grid-template-columns: 2.15rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  padding: 1rem 0;
}

.workspace-empty__path li + li {
  border-top: 1px solid var(--line);
}

.workspace-empty__path li > span {
  display: grid;
  width: 2.05rem;
  height: 2.05rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 750;
}

.workspace-empty__path li div {
  display: grid;
  gap: 0.3rem;
}

.workspace-empty__path strong {
  font-family: var(--font-editorial);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.workspace-empty__path small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.project-timeline {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.project-timeline li {
  position: relative;
  display: grid;
  gap: 0.55rem;
  padding-right: 0.75rem;
  color: var(--muted);
  font-size: 0.68rem;
}

.project-timeline li::before {
  position: absolute;
  z-index: 0;
  top: 0.52rem;
  right: 0;
  left: 1.45rem;
  height: 1px;
  background: var(--line);
  content: "";
}

.project-timeline li:last-child::before {
  display: none;
}

.project-timeline span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 1.15rem;
  height: 1.15rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  font-size: 0;
}

.project-timeline span::after {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--line-strong);
  content: "";
}

.project-timeline li.is-complete,
.project-timeline li.is-active {
  color: var(--text);
}

.project-timeline li.is-complete span,
.project-timeline li.is-active span {
  border-color: var(--text);
  background: var(--text);
}

.project-timeline li.is-complete span::after,
.project-timeline li.is-active span::after {
  background: var(--inverse);
}

.project-timeline li.is-complete::before {
  background: var(--text);
}

.workspace-review-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  margin: 1.4rem 0 2rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

.workspace-review-note > span {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 0 0.35rem color-mix(in srgb, var(--warning) 12%, transparent);
}

.workspace-review-note[data-state="launched"] > span {
  background: var(--success);
  box-shadow: 0 0 0 0.35rem color-mix(in srgb, var(--success) 12%, transparent);
}

.workspace-review-note[data-state="attention"] > span {
  background: var(--danger);
  box-shadow: 0 0 0 0.35rem color-mix(in srgb, var(--danger) 12%, transparent);
}

.workspace-review-note strong {
  font-size: 0.86rem;
}

.workspace-review-note p {
  margin: 0.22rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.workspace-review-note small {
  color: var(--muted);
  text-align: right;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(19rem, 0.78fr);
  gap: 1.25rem;
  align-items: start;
}

.workspace-stream,
.workspace-card {
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.workspace-stream {
  overflow: hidden;
}

.workspace-stream > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.workspace-stream h2 {
  font-size: 1.8rem;
}

.workspace-stream > header button,
.workspace-card > button,
.workspace-card > a,
.workspace-dialog footer button {
  min-height: 2.7rem;
  padding: 0 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: inherit;
  background: transparent;
  font-size: 0.76rem;
  text-decoration: none;
}

.workspace-request-summary {
  padding: 1.4rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong) 65%, transparent);
}

.workspace-request-summary blockquote {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.2;
}

.workspace-request-summary details {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.workspace-request-summary details p {
  margin-bottom: 0;
  line-height: 1.55;
}

.workspace-revisions {
  border-bottom: 1px solid var(--line);
  padding: 1.35rem 1.5rem;
}

.workspace-roadmap {
  min-height: 100%;
}

.workspace-roadmap > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.workspace-roadmap > header p {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.workspace-roadmap > header h2 {
  margin: 0;
  font: 400 clamp(1.8rem, 3vw, 2.65rem)/1 var(--font-editorial);
  letter-spacing: -0.04em;
}

.workspace-roadmap > header button {
  min-height: 2.7rem;
  flex: 0 0 auto;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  color: var(--inverse);
  background: var(--text);
  font-size: 0.74rem;
  font-weight: 700;
}

.workspace-roadmap > p {
  max-width: 48rem;
  margin: 1rem 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.workspace-roadmap__summary {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.workspace-roadmap__summary > span {
  display: flex;
  min-width: 5.25rem;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--workspace-panel);
}

.workspace-roadmap__summary strong {
  color: var(--text);
  font: 400 1.25rem/1 var(--font-editorial);
}

.workspace-roadmap__summary small {
  color: var(--muted);
  font-size: 0.62rem;
}

.roadmap-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.roadmap-list[hidden],
.workspace-roadmap__empty[hidden],
.workspace-revisions[hidden] {
  display: none;
}

.roadmap-list > li {
  display: grid;
  align-content: start;
  gap: 0.58rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--surface-strong);
}

.roadmap-list > li > div:first-child,
.roadmap-list > li > div:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.roadmap-list__kind,
.roadmap-list__status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.61rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.roadmap-list__kind::before,
.roadmap-list__status::before {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--workspace-gold);
  content: "";
}

.roadmap-list > li[data-kind="glitch"] .roadmap-list__kind::before,
.roadmap-list > li[data-kind="bug"] .roadmap-list__kind::before,
.roadmap-list__status[data-state="not-planned"]::before {
  background: var(--danger);
}

.roadmap-list > li[data-kind="performance"] .roadmap-list__kind::before {
  background: #d87812;
}

.roadmap-list__status::before {
  background: var(--warning);
}

.roadmap-list__status[data-state="in-progress"]::before {
  background: #2672d8;
}

.roadmap-list__status[data-state="completed"]::before {
  background: var(--success);
}

.roadmap-list > li > strong {
  font: 400 1.3rem/1.15 var(--font-editorial);
}

.roadmap-list > li > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.roadmap-list .roadmap-list__note {
  padding: 0.65rem 0.72rem;
  border-left: 2px solid var(--workspace-gold);
  color: var(--text);
  background: color-mix(in srgb, var(--workspace-gold) 7%, transparent);
}

.roadmap-list > li > div:last-child {
  margin-top: 0.15rem;
  padding-top: 0.62rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.62rem;
}

.workspace-roadmap__empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--workspace-panel);
}

.workspace-roadmap__empty > span {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--workspace-gold) 32%, var(--line));
  border-radius: 50%;
  color: var(--workspace-gold);
}

.workspace-roadmap__empty svg {
  width: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.workspace-roadmap__empty strong,
.workspace-roadmap__empty p {
  display: block;
  margin: 0;
}

.workspace-roadmap__empty p {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.workspace-roadmap + .workspace-revisions {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
}

.workspace-roadmap-dialog__type {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.workspace-roadmap-dialog__type legend {
  grid-column: 1 / -1;
  margin-bottom: 0.15rem;
  font-size: 0.7rem;
  font-weight: 750;
}

.workspace-roadmap-dialog__type label {
  position: relative;
  margin: 0;
}

.workspace-roadmap-dialog__type input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.workspace-roadmap-dialog__type span {
  display: grid;
  gap: 0.22rem;
  min-height: 5rem;
  align-content: center;
  padding: 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.75rem;
  cursor: pointer;
}

.workspace-roadmap-dialog__type small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.4;
}

.workspace-roadmap-dialog__type input:checked + span {
  border-color: var(--workspace-gold);
  box-shadow: inset 0 0 0 1px var(--workspace-gold);
  background: color-mix(in srgb, var(--workspace-gold) 7%, transparent);
}

.workspace-roadmap-dialog__type input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.workspace-revisions > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.workspace-revisions h3 {
  margin: 0;
  font-size: 1.55rem;
}

.workspace-revisions > header button {
  min-height: 2.7rem;
  flex: 0 0 auto;
  padding: 0 0.95rem;
  border: 0;
  border-radius: 999px;
  color: var(--inverse);
  background: var(--text);
  font-size: 0.76rem;
}

.revision-list {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.revision-list li {
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface-strong);
}

.revision-list strong {
  font-size: 0.84rem;
}

.revision-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.revision-list .revision-list__studio-note {
  margin-top: 0.15rem;
  padding: 0.65rem 0.75rem;
  border-left: 2px solid var(--text);
  color: var(--text);
  background: color-mix(in srgb, var(--text) 4%, transparent);
}

.revision-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.revision-list span,
.revision-list time {
  color: var(--muted);
  font-size: 0.68rem;
}

.revision-list span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
  font-weight: 700;
}

.revision-list span::before {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--warning);
  content: "";
}

.revision-list span[data-state="completed"]::before,
.revision-list span[data-state="approved"]::before {
  background: var(--success);
}

.revision-list span[data-state="declined"]::before {
  background: var(--danger);
}

.revision-list .revision-list__variation {
  width: fit-content;
  border: 1px solid color-mix(in srgb, var(--workspace-gold) 34%, var(--line));
  border-radius: 999px;
  padding: 0.28rem 0.48rem;
  color: var(--muted);
  background: color-mix(in srgb, var(--workspace-gold) 6%, var(--surface));
  font-size: 0.62rem;
}

.revision-list .revision-list__variation::before {
  display: none;
}

.activity-list {
  margin: 0;
  padding: 0 1.5rem;
  list-style: none;
}

.activity-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.9rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.activity-list__mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.65rem;
  color: var(--inverse);
  background: var(--text);
  font-size: 0.67rem;
}

.activity-list strong {
  display: block;
  font-size: 0.84rem;
}

.activity-list p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.activity-list time {
  color: var(--muted);
  font-size: 0.7rem;
}

.workspace-list-empty {
  margin: 0;
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.8rem;
}

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

.workspace-message-form {
  display: grid;
  gap: 0.7rem;
  padding: 1.5rem;
}

.workspace-message-form label {
  font-size: 0.78rem;
  font-weight: 700;
}

.workspace-message-form textarea,
.workspace-dialog textarea,
.workspace-dialog input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface-strong);
}

.workspace-message-form textarea {
  min-height: 7.5rem;
  padding: 0.95rem;
  resize: vertical;
}

.workspace-message-form > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.workspace-message-form span {
  color: var(--muted);
  font-size: 0.74rem;
}

.workspace-message-form button {
  min-height: 2.8rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  color: var(--inverse);
  background: var(--text);
}

.workspace-message-form output,
.workspace-card output,
.workspace-dialog output {
  min-height: 1.2em;
  color: var(--muted);
  font-size: 0.75rem;
}

.workspace-rail {
  display: grid;
  gap: 1rem;
}

.workspace-card {
  padding: 1.25rem;
  box-shadow: none;
}

.workspace-card--next {
  color: var(--inverse);
  background: var(--text);
}

.workspace-card--next > p:first-child,
.workspace-card--next > p:last-child {
  color: color-mix(in srgb, var(--inverse) 70%, transparent);
}

.workspace-card h2 {
  font-size: 1.55rem;
}

.workspace-card > p:not(:first-child) {
  margin: 0.75rem 0 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.workspace-card header {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.workspace-card header > [data-drive-workspace-count] {
  margin-left: auto;
  padding: 0.32rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
  font-size: 0.66rem;
  font-weight: 700;
  white-space: nowrap;
}

.workspace-card__icon {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--surface-strong);
}

.workspace-card__icon svg {
  width: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.workspace-card > button,
.workspace-card > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.4rem 0.35rem 0 0;
}

.workspace-card__policy-links {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.55;
}

.workspace-card__policy-links a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.workspace-card__policy-links a:hover,
.workspace-card__policy-links a:focus-visible {
  color: var(--text);
}

.workspace-card__button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.workspace-card__button-row button {
  min-height: 2.7rem;
  padding: 0 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: inherit;
  background: transparent;
  font-size: 0.76rem;
}

.workspace-panel-grid--billing {
  grid-template-columns: minmax(0, 1fr);
}

.billing-empty[hidden],
.billing-plan[hidden],
.billing-plan [hidden] {
  display: none;
}

.billing-plan {
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.billing-plan__kicker,
.billing-history > header p,
.billing-action-row > div > p:first-child {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.billing-plan__topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.billing-plan__topline h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.5vw, 2.25rem);
}

.billing-plan__topline > div:first-child > p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.billing-plan__price {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.75rem;
  text-align: right;
}

.billing-plan__price > span {
  display: flex;
  align-items: baseline;
  gap: 0.22rem;
}

.billing-plan__price strong {
  font: 400 clamp(1.6rem, 2.4vw, 2.1rem)/1 var(--font-editorial);
  letter-spacing: -0.035em;
}

.billing-plan__price small {
  color: var(--muted);
  font-size: 0.72rem;
}

.billing-plan__price i {
  padding: 0.4rem 0.58rem;
  border-radius: 999px;
  color: var(--success);
  background: color-mix(in srgb, var(--success) 12%, transparent);
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 750;
  text-transform: capitalize;
}

.billing-plan__price i:not([data-state="active"]):not([data-state="trialing"]) {
  color: var(--warning);
  background: color-mix(in srgb, var(--warning) 12%, transparent);
}

.billing-plan__launch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.billing-plan__launch p,
.billing-plan__launch strong,
.billing-plan__launch small {
  display: block;
  margin: 0;
}

.billing-plan__launch p {
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.billing-plan__launch strong {
  font-family: var(--font-editorial);
  font-size: 1.2rem;
  font-weight: 400;
}

.billing-plan__launch small {
  margin-top: 0.22rem;
  color: var(--muted);
  font-size: 0.68rem;
}

.billing-plan__launch > button {
  min-height: 2.9rem;
  padding: 0 1rem;
  border-color: var(--text);
  color: var(--inverse);
  background: var(--text);
}

.billing-change {
  display: grid;
  gap: 0.8rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, #c49c3f 50%, var(--line));
  border-radius: 1rem;
  background: color-mix(in srgb, #c49c3f 7%, var(--surface-strong));
}

.billing-change[hidden],
.billing-change [hidden] {
  display: none;
}

.billing-change h3,
.billing-change p {
  margin: 0;
}

.billing-change > div > p:first-child {
  color: color-mix(in srgb, #9a731e 86%, var(--text));
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.billing-change h3 {
  margin-top: 0.2rem;
  font: 400 1.35rem/1.1 var(--font-editorial);
}

.billing-change > div > p:last-child {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.billing-change dl {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.billing-change dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}

.billing-change dt {
  color: var(--muted);
  font-size: 0.7rem;
}

.billing-change dd {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  text-align: right;
}

.transport-launch-confirm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.85fr);
  gap: 1.2rem;
  margin: 1rem 0;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface-strong);
}
.transport-launch-confirm[hidden] { display: none; }
.transport-launch-confirm > div { min-width: 0; display: grid; gap: 0.7rem; align-content: start; }
.transport-launch-confirm h3, .transport-launch-confirm p { margin: 0; }
.transport-launch-confirm h3 { font: 400 1.45rem/1.15 var(--font-editorial); }
.transport-launch-confirm p, .transport-launch-confirm label { color: var(--muted); font-size: 0.85rem; line-height: 1.5; }
.transport-launch-confirm a { color: var(--text); text-underline-offset: 0.2em; }
.transport-launch-confirm label { display: flex; align-items: flex-start; gap: 0.55rem; }
.transport-launch-confirm label input { margin-top: 0.2rem; accent-color: var(--text); }
.transport-launch-confirm button { justify-self: start; min-height: 2.7rem; border: 0; border-radius: 0.7rem; padding: 0.7rem 1rem; color: var(--inverse); background: var(--text); }
.transport-launch-confirm button:disabled { opacity: 0.5; cursor: not-allowed; }
.transport-launch-confirm output { color: var(--muted); font-size: 0.8rem; }
@media (max-width: 720px) { .transport-launch-confirm { grid-template-columns: minmax(0, 1fr); } }

.billing-frequency-change {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface-strong);
}

.billing-action-row {
  border-radius: 0.85rem;
  background: transparent;
}

.billing-action-row h3 {
  font-size: 1.18rem;
}

.billing-action-row--service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin: 0.6rem 0 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
}

.billing-action-row--service h3,
.billing-action-row--service p {
  margin: 0;
}

.billing-action-row--service > div > p:last-child {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.billing-action-row__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.billing-action-row__buttons button {
  min-height: 2.7rem;
  padding: 0 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: inherit;
  background: transparent;
  font-size: 0.76rem;
  white-space: nowrap;
}

.billing-action-row__buttons [data-billing-portal][aria-busy="true"] {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.billing-action-row__buttons [data-billing-portal][aria-busy="true"]::after {
  width: 0.75rem;
  height: 0.75rem;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: workspace-boot-spin 700ms linear infinite;
  content: "";
}

.billing-action-row__buttons button:hover,
.billing-action-row__buttons button:focus-visible {
  color: var(--inverse);
  border-color: var(--text);
  background: var(--text);
}


.billing-frequency-change[hidden] {
  display: none;
}

.billing-frequency-change p,
.billing-frequency-change h3 {
  margin: 0;
}

.billing-frequency-change > div > p:first-child {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.billing-frequency-change h3 {
  margin-top: 0.2rem;
  font: 400 1.25rem/1.15 var(--font-editorial);
}

.billing-frequency-change > div > p:last-child {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.billing-frequency-change > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: inherit;
  background: transparent;
  font-size: 0.76rem;
  white-space: nowrap;
}

.billing-frequency-change > button:hover,
.billing-frequency-change > button:focus-visible {
  color: var(--surface);
  border-color: var(--text);
  background: var(--text);
}

.billing-frequency-change > button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

@media (max-width: 680px) {
  .billing-frequency-change {
    grid-template-columns: 1fr;
  }

  .billing-frequency-change button {
    width: 100%;
  }

  .billing-plan__topline,
  .billing-plan__launch,
  .billing-history > header {
    align-items: stretch;
    flex-direction: column;
  }

  .billing-action-row--service {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 0.9rem;
  }

  .billing-plan__topline,
  .billing-plan__launch,
  .billing-history > header {
    display: flex;
  }

  .billing-plan__price {
    justify-content: space-between;
    text-align: left;
  }

  .billing-plan__launch > button,
  .billing-action-row__buttons,
  .billing-action-row__buttons button {
    width: 100%;
  }

  .billing-action-row__buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
  }

  .billing-action-row__buttons button {
    min-height: 2.9rem;
    border-radius: 0.7rem;
  }

  .billing-history__head {
    display: none;
  }

  .payment-list {
    gap: 0.5rem;
    border: 0;
    border-radius: 0;
  }

  .payment-list li {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem 0.75rem;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 0.7rem;
  }

  .payment-list li:last-child {
    border-bottom: 1px solid var(--line);
  }

  .payment-list li > time {
    grid-column: 1;
    grid-row: 2;
  }

  .payment-list li > strong {
    grid-column: 1;
    grid-row: 1;
  }

  .payment-list li > span:nth-of-type(1) {
    grid-column: 2;
    grid-row: 1;
    color: var(--text);
    font-weight: 700;
  }

  .payment-list li > span:nth-of-type(2) {
    grid-column: 2;
    grid-row: 2;
  }

  .payment-list li > span:nth-of-type(3) {
    grid-column: 1 / -1;
    grid-row: 3;
    padding-top: 0.35rem;
    border-top: 1px solid var(--line);
  }
}

.drive-file-list {
  display: grid;
  gap: 0.55rem;
  margin: 0.8rem 0;
  padding: 0;
  list-style: none;
}

.drive-file-list li {
  display: grid;
  gap: 0.4rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--surface-strong);
}

.drive-file-list strong {
  overflow: hidden;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-file-list small {
  color: var(--muted);
  font-size: 0.68rem;
}

.billing-history {
  margin: 0 0 1rem;
}

.billing-history > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.billing-history > header h3,
.billing-history > header p {
  margin-top: 0;
}

.billing-history > header h3 {
  margin-bottom: 0;
  font: 400 1.35rem/1.1 var(--font-editorial);
}

.billing-history > header > span {
  color: var(--muted);
  font-size: 0.64rem;
}

.billing-history__head,
.payment-list li {
  display: grid;
  grid-template-columns: minmax(5.5rem, 0.8fr) minmax(10rem, 2fr) minmax(5rem, 0.8fr) minmax(4.5rem, 0.7fr) minmax(5.5rem, 0.8fr);
  gap: 0.75rem;
  align-items: center;
}

.billing-history__head {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 0.7rem 0.7rem 0 0;
  color: var(--muted);
  background: color-mix(in srgb, var(--text) 3%, var(--workspace-panel));
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.payment-list {
  display: grid;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0 0 0.7rem 0.7rem;
  list-style: none;
}

.payment-list:empty {
  display: none;
}

.payment-list li {
  min-width: 0;
  padding: 0.72rem 0.75rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.7rem;
}

.payment-list li:last-child {
  border-bottom: 0;
}

.payment-list strong {
  overflow: hidden;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-list time,
.payment-list > li > span {
  color: var(--muted);
  font-size: 0.68rem;
}

.payment-list > li > span[data-state] {
  width: fit-content;
  padding: 0.3rem 0.45rem;
  border-radius: 999px;
  color: var(--success);
  background: color-mix(in srgb, var(--success) 11%, transparent);
  font-weight: 700;
  text-transform: capitalize;
}

.payment-list a {
  color: inherit;
  font-weight: 650;
  text-underline-offset: 0.18em;
}

.billing-history__empty {
  margin: 0;
  padding: 0.9rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.billing-history__empty[hidden] {
  display: none;
}

@media (max-width: 680px) {
  .billing-history__head {
    display: none;
  }

  .payment-list {
    gap: 0.5rem;
    border: 0;
    border-radius: 0;
  }

  .payment-list li {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem 0.75rem;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 0.7rem;
  }

  .payment-list li:last-child {
    border-bottom: 1px solid var(--line);
  }

  .payment-list li > time {
    grid-column: 1;
    grid-row: 2;
  }

  .payment-list li > strong {
    grid-column: 1;
    grid-row: 1;
  }

  .payment-list li > span:nth-of-type(1) {
    grid-column: 2;
    grid-row: 1;
    color: var(--text);
    font-weight: 700;
  }

  .payment-list li > span:nth-of-type(2) {
    grid-column: 2;
    grid-row: 2;
  }

  .payment-list li > span:nth-of-type(3) {
    grid-column: 1 / -1;
    grid-row: 3;
    padding-top: 0.35rem;
    border-top: 1px solid var(--line);
  }
}

.drive-file-list div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.drive-file-list a,
.drive-file-list button {
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: inherit;
  background: transparent;
  font-size: 0.68rem;
  text-decoration: none;
}

.drive-file-list [data-state="lost"] {
  color: var(--danger);
}

.workspace-card--actions button {
  width: 100%;
}

.workspace-card--quote {
  border-color: var(--line-strong);
}

.workspace-quote-prices {
  margin-bottom: 0.35rem;
}

.workspace-quote-note {
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.workspace-card--quote [data-quote-accept] {
  color: var(--inverse);
  background: var(--text);
}

.workspace-team-list {
  display: grid;
  gap: 0.55rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.workspace-team-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  padding: 0.72rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--surface-strong);
}

.workspace-team-list li > span:first-child {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  border-radius: 50%;
  color: var(--inverse);
  background: var(--text);
  font-family: var(--font-editorial);
}

.workspace-team-list li > span:last-child {
  display: grid;
  gap: 0.18rem;
}

.workspace-team-list strong {
  font-size: 0.8rem;
}

.workspace-team-list small {
  color: var(--muted);
  font-size: 0.7rem;
}

body.reference-links-dialog-open {
  overflow: hidden;
}

.workspace-drive-dialog {
  width: min(44rem, calc(100% - 2rem));
  max-height: min(50rem, calc(100dvh - 2rem));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.workspace-drive-dialog::backdrop {
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(8px);
}

.workspace-drive-dialog__surface {
  display: grid;
  max-height: min(50rem, calc(100dvh - 2rem));
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.workspace-drive-dialog header,
.workspace-drive-dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
}

.workspace-drive-dialog header {
  border-bottom: 1px solid var(--line);
}

.workspace-drive-dialog footer {
  border-top: 1px solid var(--line);
  justify-content: flex-end;
}

.workspace-reference-form {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.workspace-reference-form label {
  display: grid;
  gap: 0.42rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.workspace-reference-form input,
.workspace-reference-form textarea {
  width: 100%;
  padding: 0.78rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.78rem;
  color: var(--text);
  background: var(--surface-strong);
  font: inherit;
}

.workspace-reference-form textarea {
  resize: vertical;
}

.workspace-reference-form > div {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
  gap: 0.55rem;
}

.workspace-reference-form button,
.workspace-reference-list button {
  min-height: 2.35rem;
  padding: 0 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface-strong);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.workspace-reference-form [type="submit"] {
  color: var(--inverse);
  border-color: var(--text);
  background: var(--text);
}

.workspace-reference-form output {
  min-height: 1.2rem;
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.72rem;
}

.workspace-reference-list {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.workspace-reference-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface-strong);
}

.workspace-reference-list li > div:first-child,
.workspace-reference-list a {
  display: grid;
  min-width: 0;
  gap: 0.25rem;
}

.workspace-reference-list a strong,
.workspace-reference-list a span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-reference-list a strong {
  color: var(--text);
  font-size: 0.8rem;
}

.workspace-reference-list a span,
.workspace-reference-list small {
  color: var(--muted);
  font-size: 0.68rem;
}

.workspace-reference-list p {
  margin: 0.3rem 0 0;
  font-size: 0.76rem;
  line-height: 1.5;
}

.workspace-reference-list li > div:last-child {
  display: flex;
  gap: 0.4rem;
}

@media (max-width: 680px) {
  .workspace-reference-form {
    grid-template-columns: 1fr;
  }

  .workspace-reference-form > div,
  .workspace-reference-form output {
    grid-column: 1;
  }

  .workspace-reference-list li {
    grid-template-columns: 1fr;
  }

  .workspace-reference-list li > div:last-child {
    justify-content: flex-end;
  }
}

.workspace-drive-dialog header p {
  margin: 0 0 0.3rem;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.workspace-drive-dialog h2,
.workspace-drive-dialog h3 {
  margin: 0;
}

.workspace-drive-dialog h2 {
  font-family: var(--font-editorial);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.workspace-drive-dialog h3 {
  font-size: 0.84rem;
}

.workspace-drive-dialog button {
  min-height: 2.6rem;
  padding: 0 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: inherit;
  background: transparent;
}

.workspace-drive-dialog button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.workspace-drive-dialog header > button {
  width: 2.6rem;
  padding: 0;
  font-size: 1.15rem;
}

.workspace-drive-dialog__body {
  overflow: auto;
  padding: 1.25rem;
}

.workspace-drive-dialog__body > p:first-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.workspace-drive-dialog__privacy {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.9rem;
  align-items: start;
  margin: 1.1rem 0 1.35rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface-strong);
}

.workspace-drive-dialog__privacy svg {
  width: 2.4rem;
  height: 2.4rem;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
}

.workspace-drive-dialog__privacy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.workspace-drive-dialog__privacy strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--text);
}

.workspace-drive-dialog__why {
  margin: -0.45rem 0 1.35rem;
  padding: 0 0.15rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.workspace-drive-dialog__why strong {
  color: var(--text);
}

.workspace-drive-dialog__files-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.workspace-drive-dialog__files-head > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.workspace-drive-dialog__files-head span {
  padding: 0.32rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.workspace-drive-dialog__list {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.workspace-drive-dialog__list li {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface-strong);
}

.workspace-drive-dialog__list .drive-attachment-card__icon {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  color: var(--text);
  background: color-mix(in srgb, currentColor 5%, transparent);
}

.workspace-drive-dialog__list .drive-attachment-card__icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.workspace-drive-dialog__list li > div:first-child {
  display: grid;
  min-width: 0;
  gap: 0.22rem;
}

.workspace-drive-dialog__list strong {
  overflow: hidden;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-drive-dialog__list span,
.workspace-drive-dialog__list small {
  color: var(--muted);
  font-size: 0.7rem;
}

.workspace-drive-dialog__list small[data-state="shared"] {
  color: var(--success);
}

.workspace-drive-dialog__list small[data-state="error"],
.workspace-drive-dialog__list small[data-state="lost"] {
  color: var(--danger);
}

.workspace-drive-dialog__list small[data-state="manual-share-required"] {
  color: var(--text);
}

.workspace-drive-dialog__list .drive-attachment-card__manual-share {
  margin: 0.45rem 0 0;
  padding: 0.65rem 0.75rem;
  border-left: 2px solid currentColor;
  border-radius: 0 0.75rem 0.75rem 0;
  color: var(--muted);
  background: color-mix(in srgb, currentColor 5%, transparent);
  font-size: 0.72rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.workspace-drive-dialog__list li > div:last-child,
.workspace-drive-dialog footer > div {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.workspace-drive-dialog__list a,
.workspace-drive-dialog__list button {
  display: inline-flex;
  min-height: 2.6rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: inherit;
  background: transparent;
  font-family: inherit;
  font-size: 0.76rem;
  text-decoration: none;
  cursor: pointer;
}

.workspace-drive-dialog__list a {
  color: var(--inverse);
  background: var(--text);
}

.workspace-drive-dialog__status {
  min-height: 1.3rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.workspace-drive-dialog__status[data-state="error"] {
  color: var(--danger);
}

.workspace-drive-dialog footer > span {
  color: var(--muted);
  font-size: 0.74rem;
}

.workspace-drive-dialog [data-drive-commit] {
  color: var(--inverse);
  background: var(--text);
}

.workspace-dialog {
  width: min(39rem, calc(100% - 2rem));
  max-height: min(48rem, calc(100dvh - 2rem));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.workspace-dialog::backdrop,
.account-status-dialog::backdrop {
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(8px);
}

.workspace-dialog form {
  display: grid;
  gap: 1rem;
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 1.35rem;
}

.workspace-dialog header {
  position: sticky;
  z-index: 5;
  top: -1.35rem;
  display: flex;
  align-items: start;
  justify-content: space-between;
  margin: -1.35rem -1.35rem 0;
  padding: 1.35rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(16px);
}

.workspace-dialog header button {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}

.workspace-dialog label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.78rem;
}

.workspace-dialog label > span {
  font-weight: 700;
}

.workspace-dialog label small,
.workspace-dialog > form > p {
  color: var(--muted);
}

.workspace-dialog__context {
  margin: -0.25rem 0 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--surface-strong);
  font-size: 0.78rem;
}

.workspace-dialog__context strong {
  color: var(--text);
}

.workspace-dialog input,
.workspace-dialog textarea {
  padding: 0.85rem;
}

.workspace-dialog fieldset {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.workspace-dialog fieldset legend {
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.workspace-dialog fieldset label {
  grid-template-columns: auto minmax(0, 1fr);
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
}

.workspace-dialog fieldset small {
  display: block;
  margin-top: 0.2rem;
}

.workspace-dialog__check {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  color: var(--muted);
  line-height: 1.5;
}

.workspace-dialog footer {
  position: sticky;
  z-index: 5;
  bottom: -1.35rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  margin: 0 -1.35rem -1.35rem;
  padding: 1rem 1.35rem 1.35rem;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(16px);
}

.workspace-dialog footer button:last-child {
  color: var(--inverse);
  background: var(--text);
}

.workspace-service-dialog {
  width: min(43rem, calc(100% - 2rem));
}

.workspace-service-dialog form {
  gap: 1.1rem;
}

.workspace-service-dialog__heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.85rem;
}

.workspace-service-dialog__mark {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.8rem;
  color: var(--inverse);
  background: var(--text);
}

.workspace-service-dialog__mark svg {
  width: 1.45rem;
  fill: currentColor;
  stroke: none;
}

.workspace-service-dialog__intro {
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface-strong);
}

.workspace-service-dialog__intro > strong,
.workspace-service-dialog__intro > p {
  margin: 0;
}

.workspace-service-dialog__intro > strong {
  display: block;
  font-size: 0.83rem;
}

.workspace-service-dialog__intro > p {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.55;
}

.workspace-service-dialog fieldset {
  gap: 0.72rem;
}

.workspace-service-dialog fieldset label {
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  padding: 0.95rem;
  border-radius: 0.9rem;
  background: var(--workspace-panel);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.workspace-service-dialog fieldset label:hover {
  border-color: var(--line-strong);
}

.workspace-service-dialog fieldset label:has(input:checked) {
  border-color: var(--text);
  background: var(--workspace-canvas);
  box-shadow: inset 3px 0 0 var(--text);
}

.workspace-service-dialog fieldset input[type="radio"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--text);
}

.workspace-service-dialog__option-icon {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0.72rem;
  color: var(--text);
  background: var(--workspace-canvas);
}

.workspace-service-dialog__option-icon svg {
  width: 1.22rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.workspace-service-dialog fieldset label:has(input:checked) .workspace-service-dialog__option-icon {
  color: var(--inverse);
  background: var(--text);
}

.workspace-service-dialog fieldset strong {
  display: block;
  font-size: 0.8rem;
}

.workspace-service-dialog fieldset small {
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.45;
}

.workspace-service-dialog .workspace-dialog__check {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: color-mix(in srgb, var(--workspace-gold) 4%, var(--surface));
  font-size: 0.7rem;
}

.workspace-global-status {
  display: block;
  width: min(92rem, 94vw);
  margin: 1rem auto;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 10px 26px rgb(0 0 0 / 6%);
  font-size: 0.78rem;
  line-height: 1.45;
}

.workspace-global-status:empty {
  display: none;
}

.workspace-global-status[data-state="error"] {
  border-color: color-mix(in srgb, #b42318 38%, var(--line));
}

.account-status-dialog {
  width: min(30rem, calc(100% - 2rem));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  color: var(--text);
  background: var(--surface);
}

.account-status-dialog > div {
  display: grid;
  gap: 0.9rem;
  padding: 1.25rem;
}

.account-status-dialog > div > [data-account-close]:first-child {
  justify-self: end;
}

.account-status-dialog button,
.account-status-dialog a {
  min-height: 2.8rem;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: inherit;
  background: var(--surface-strong);
  text-decoration: none;
}

.account-status-dialog [data-auth-profile] {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.account-status-dialog [data-auth-profile][hidden] {
  display: none !important;
}

.account-status-dialog [data-auth-profile] img {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
}

.account-status-dialog [data-auth-profile] span {
  display: grid;
}

.account-status-dialog__deletion {
  border: 1px solid color-mix(in srgb, #b23a3a 38%, var(--line));
  border-radius: 0.9rem;
}

.account-status-dialog__deletion[hidden] {
  display: none;
}

.account-status-dialog__deletion summary {
  padding: 0.9rem 1rem;
  color: #b23a3a;
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
}

.account-status-dialog__deletion-body {
  display: grid;
  gap: 0.75rem;
  padding: 0 1rem 1rem;
}

.account-status-dialog__deletion-body p,
.account-status-dialog__deletion-body output {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.account-status-dialog__deletion-body label {
  font-size: 0.75rem;
}

.account-status-dialog__deletion-body input {
  min-height: 2.8rem;
  padding: 0 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  color: var(--text);
  background: var(--surface-strong);
}

.account-status-dialog__deletion-body button {
  color: #fff;
  background: #a32929;
  border-color: #a32929;
}

.account-status-dialog__deletion-body button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.account-status-dialog__deletion-body output[data-state="error"] {
  color: #cf6464;
}

.account-status-dialog__deletion-body output[data-state="success"] {
  color: #62b681;
}

@media (max-width: 1000px) {
  .workspace-header {
    grid-template-columns: 1fr auto;
  }

  .workspace-header nav {
    display: none;
  }

  .workspace-brand {
    width: clamp(184px, 24vw, 230px);
  }

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

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

  .workspace-invite form,
  .workspace-invite form.has-side {
    grid-template-columns: 1fr;
  }

  .workspace-invite__quote {
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .workspace-header {
    min-height: 4.25rem;
    gap: 0.65rem;
    padding: 0 1rem;
  }

  .workspace-brand {
    width: min(184px, 48vw);
  }

  main {
    min-height: calc(100svh - 4.25rem);
  }

  .workspace-shell {
    width: min(100% - 1.2rem, 42rem);
    padding: 2.2rem 0 4rem;
  }

  .workspace-shell.is-empty {
    width: min(100% - 1rem, 42rem);
    padding: 0.5rem 0 1rem;
  }

  .workspace-shell.is-unavailable {
    width: min(100% - 1rem, 42rem);
    padding: 0.5rem 0 1rem;
  }

  .workspace-unavailable {
    min-height: calc(100svh - 5.25rem);
    align-content: center;
    padding: 1.5rem 1.15rem;
    border-radius: 1.35rem;
  }

  .workspace-unavailable__mark {
    width: 3.2rem;
    height: 3.2rem;
    margin-bottom: 1.2rem;
  }

  .workspace-unavailable h1 {
    max-width: 12ch;
    font-size: clamp(2.6rem, 12vw, 3.7rem);
  }

  .workspace-unavailable > p[data-workspace-unavailable-copy] {
    margin-top: 1rem;
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .workspace-unavailable__actions {
    width: 100%;
    display: grid;
    margin-top: 1.4rem;
  }

  .workspace-unavailable__actions a,
  .workspace-unavailable__actions button {
    width: 100%;
  }

  .workspace-empty {
    min-height: calc(100svh - 5.25rem);
    grid-template-columns: 1fr;
    gap: 1rem;
    align-content: center;
    padding: 1.1rem;
    border-radius: 1.35rem;
  }

  .workspace-empty__intro {
    padding: 0.3rem 0.25rem 0.45rem;
  }

  .workspace-empty__mark {
    width: 3.15rem;
    height: 3.15rem;
    margin-bottom: 1.25rem;
  }

  .workspace-empty__mark svg {
    width: 1.55rem;
    height: 1.55rem;
  }

  .workspace-empty h1 {
    max-width: 10ch;
    font-size: clamp(2.7rem, 12vw, 3.7rem);
  }

  .workspace-empty__intro > p:last-of-type {
    margin-top: 0.9rem;
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .workspace-empty__intro > a {
    width: 100%;
    justify-content: space-between;
    margin-top: 1.15rem;
  }

  .workspace-empty__path {
    padding: 0.75rem 1rem;
    border-radius: 1.05rem;
    box-shadow: none;
  }

  .workspace-empty__path > p {
    margin: 0.25rem 0 0.2rem;
  }

  .workspace-empty__path li {
    grid-template-columns: 1.8rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.7rem 0;
  }

  .workspace-empty__path li > span {
    width: 1.7rem;
    height: 1.7rem;
    font-size: 0.57rem;
  }

  .workspace-empty__path strong {
    font-size: 1rem;
  }

  .workspace-empty__path small {
    font-size: 0.69rem;
    line-height: 1.4;
  }

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

  .workspace-intro h1 {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .workspace-intro__new {
    justify-self: start;
  }

  .workspace-invite {
    margin-top: -0.8rem;
  }

  .workspace-invite > header,
  .workspace-invite form {
    padding: 1rem;
  }

  .workspace-invite > header,
  .workspace-invite footer {
    align-items: stretch;
    flex-direction: column;
  }

  .workspace-invite > header > span {
    align-self: start;
  }

  .workspace-invite__contact-grid,
  .workspace-invite__phone,
  .workspace-invite__quote dl,
  .workspace-quote-prices {
    grid-template-columns: 1fr;
  }

  .workspace-invite footer button,
  .workspace-invite footer a[data-invite-submit] {
    width: 100%;
  }

  .request-history > header {
    align-items: start;
  }

  .request-history ol {
    grid-auto-columns: minmax(15.5rem, calc(100vw - 2.8rem));
  }

  .project-timeline {
    display: flex;
    overflow: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x proximity;
  }

  .project-timeline li {
    min-width: 6.1rem;
    scroll-snap-align: start;
  }

  .workspace-review-note {
    grid-template-columns: auto 1fr;
  }

  .workspace-review-note small {
    grid-column: 2;
    text-align: left;
  }

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

  .workspace-stream > header,
  .workspace-request-summary,
  .workspace-revisions,
  .workspace-message-form {
    padding: 1.1rem;
  }

  .workspace-revisions > header {
    align-items: stretch;
    flex-direction: column;
  }

  .workspace-revisions > header button {
    width: 100%;
  }

  .activity-list {
    padding: 0 1.1rem;
  }

  .activity-list li {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .activity-list time {
    grid-column: 2;
  }

  .workspace-message-form > div {
    align-items: stretch;
    flex-direction: column;
  }

  .workspace-drive-dialog header,
  .workspace-drive-dialog footer,
  .workspace-drive-dialog__body {
    padding: 1rem;
  }

  .workspace-drive-dialog__files-head,
  .workspace-drive-dialog footer {
    align-items: stretch;
    flex-direction: column;
  }

  .workspace-drive-dialog__files-head > div:last-child {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .workspace-drive-dialog__files-head > div:last-child button {
    width: 100%;
  }

  .workspace-drive-dialog footer > span {
    display: none;
  }

  .workspace-drive-dialog footer > div,
  .workspace-drive-dialog footer button {
    flex: 1;
  }

  .workspace-drive-dialog__list li {
    grid-template-columns: 1fr;
  }

  .workspace-drive-dialog__list .drive-attachment-card__icon {
    display: none;
  }

  .workspace-drive-dialog__list .drive-attachment-card__actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (forced-colors: active) {
  .workspace-stream,
  .workspace-card,
  .workspace-review-note,
  .workspace-dialog,
  .workspace-header {
    border: 1px solid CanvasText;
  }
}

/* Final cascade for the selected open records direction. */
.workspace-panel--overview .workspace-overview-grid { grid-template-columns: 1fr; gap: 0; }
.workspace-panel--overview .workspace-overview-summary,
.workspace-panel--overview .workspace-card { padding: 0; border: 0; border-radius: 0; background: transparent; }
.workspace-panel--overview .workspace-overview-summary { padding-bottom: 1.5rem; }
.workspace-panel--overview .workspace-overview-summary h2 { font-size: clamp(1.9rem, 3vw, 2.65rem); }
.workspace-panel--overview .workspace-request-summary { display: grid; grid-template-columns: minmax(8rem, .28fr) minmax(0, 1fr); gap: .9rem 1.5rem; }
.workspace-panel--overview .workspace-request-summary blockquote,
.workspace-panel--overview .workspace-request-summary details { grid-column: 2; }
.workspace-panel--overview .workspace-card { grid-column: 1 / -1; padding-block: 1.5rem; border-top: 1px solid var(--line); }
.workspace-panel--overview .workspace-card--team { display: grid; grid-template-columns: minmax(12rem, .38fr) minmax(0, 1fr); gap: .5rem 1.5rem; }
.workspace-panel--overview .workspace-card--team > header,
.workspace-panel--overview .workspace-card--team > p { grid-column: 1; }
.workspace-panel--overview .workspace-card--team .workspace-team-list,
.workspace-panel--overview .workspace-card--team .workspace-list-empty { grid-column: 2; grid-row: 1 / span 3; }

.workspace-panel--appointments .workspace-appointments__header { padding-bottom: 0; border-bottom: 0; }
.workspace-panel--appointments .workspace-appointments__layout { display: flex; flex-direction: column; gap: 0; padding-top: 1.45rem; }
.workspace-panel--appointments .workspace-appointments__request,
.workspace-panel--appointments .workspace-appointments__records { width: 100%; padding: 1.1rem 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.workspace-panel--appointments .workspace-appointments__request { position: static; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.workspace-panel--appointments .workspace-appointments__request button { width: auto; min-width: 11rem; margin: 0; }
.workspace-panel--appointments .workspace-appointment-list { gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: .68rem; }
.workspace-panel--appointments .workspace-appointment { padding: 1rem; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.workspace-panel--appointments .workspace-appointment:last-child { border-bottom: 0; }
.workspace-panel--appointments .workspace-appointment[data-status="scheduled"] { border-color: var(--line); box-shadow: inset 3px 0 0 var(--workspace-gold); }
.workspace-panel--appointments .workspace-appointment > header { align-items: center; }
.workspace-panel--appointments .workspace-appointment > header h4 { font-family: var(--font-interface); font-size: .86rem; font-weight: 650; letter-spacing: -.01em; }
.workspace-panel--appointments .workspace-appointment > header > span { min-width: 5.5rem; border: 0; text-align: right; }
.workspace-panel--appointments .workspace-appointment__details { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.workspace-panel--appointments .workspace-appointment-choice fieldset { grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); }
.workspace-panel--appointments .workspace-appointment-choice fieldset label > span { min-height: 4.55rem; text-align: center; }
.workspace-panel--appointments .workspace-appointment-choice__contact { grid-template-columns: minmax(12rem, .55fr) minmax(15rem, 1fr); }

@media (max-width: 760px) {
  .workspace-panel--overview .workspace-request-summary,
  .workspace-panel--overview .workspace-card--team { display: block; }
  .workspace-panel--overview .workspace-request-summary blockquote,
  .workspace-panel--overview .workspace-request-summary details { margin-top: .65rem; }
  .workspace-panel--appointments .workspace-appointments__request { align-items: stretch; flex-direction: column; gap: .9rem; }
  .workspace-panel--appointments .workspace-appointments__request button { width: 100%; }
  .workspace-panel--appointments .workspace-appointment__details,
  .workspace-panel--appointments .workspace-appointment-choice__contact { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .workspace-panel--appointments .workspace-appointments__header { gap: .35rem; }
  .workspace-panel--appointments .workspace-appointments__section-head,
  .workspace-panel--appointments .workspace-appointment > header { align-items: flex-start; flex-direction: row; }
  .workspace-panel--appointments .workspace-appointment > header > span { min-width: 0; }
  .workspace-panel--appointments .workspace-appointment-choice fieldset { display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .workspace-panel--appointments .workspace-appointment-choice fieldset legend { flex: 0 0 100%; }
  .workspace-panel--appointments .workspace-appointment-choice fieldset label { min-width: 8.5rem; scroll-snap-align: start; }
}

/* Light dialogs use the same true-white surface as the public homepage. */
html:not([data-theme="dark"]) .workspace-drive-dialog,
html:not([data-theme="dark"]) .workspace-dialog,
html:not([data-theme="dark"]) .account-status-dialog {
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --workspace-panel: #ffffff;
  background: #ffffff;
}

@media (max-width: 680px) {
  .workspace-invite__intake > header,
  .workspace-invite__intake-contact,
  .workspace-invite__intake-slots > div {
    grid-template-columns: 1fr;
  }

  .workspace-invite__intake > header {
    justify-items: start;
  }
}

/* Selected Overview concept one — concise project brief, current direction, and team. */
.workspace-panel--overview {
  padding: clamp(1.45rem, 2.6vw, 2.2rem);
}

.workspace-panel--overview .workspace-overview-grid {
  display: block;
}

.workspace-panel--overview .workspace-overview-summary {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.workspace-panel--overview .workspace-overview-summary > header {
  align-items: flex-start;
  margin: 0;
}

.workspace-panel--overview .workspace-overview-summary > header p,
.workspace-panel--overview .workspace-overview-direction__copy > div > p:first-child,
.workspace-panel--overview .workspace-card--team > header p,
.workspace-overview-facts article p {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font: 750 0.62rem/1 var(--font-interface);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.workspace-panel--overview .workspace-overview-summary h2 {
  font-size: clamp(2rem, 3.3vw, 2.85rem);
  line-height: 0.98;
}

.workspace-panel--overview .workspace-overview-summary > header > span {
  margin-top: 0.2rem;
  border-color: color-mix(in srgb, var(--workspace-gold) 62%, var(--line));
  color: color-mix(in srgb, var(--workspace-gold) 88%, var(--text));
  background: color-mix(in srgb, var(--workspace-gold) 5%, transparent);
}

.workspace-overview-summary__brief {
  max-width: 36rem;
  margin: 1.05rem 0 0;
  color: var(--muted);
  font: 400 0.82rem/1.55 var(--font-interface);
}

.workspace-overview-summary__context {
  display: none;
}

.workspace-overview-summary__context summary {
  width: fit-content;
  cursor: pointer;
}

.workspace-overview-summary__context p {
  margin: 0.45rem 0 0;
  line-height: 1.5;
}

.workspace-overview-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.3rem;
  padding: 1.1rem 0 1.25rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.workspace-overview-facts article {
  display: grid;
  min-width: 0;
  grid-template-columns: 1.2rem minmax(0, 1fr);
  gap: 0.65rem;
  align-content: start;
  padding: 0 1.4rem;
  border-left: 1px solid var(--line);
}

.workspace-overview-facts article:first-child {
  padding-left: 0;
  border-left: 0;
}

.workspace-overview-facts article > img {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.05rem;
}

.workspace-overview-facts article > div {
  display: grid;
  min-width: 0;
}

.workspace-overview-facts article strong {
  color: var(--text);
  font: 500 0.8rem/1.3 var(--font-interface);
}

.workspace-overview-facts article:nth-child(2) strong {
  color: color-mix(in srgb, var(--workspace-gold) 88%, var(--text));
}

.workspace-overview-facts article span {
  max-width: 15rem;
  margin-top: 0.28rem;
  color: var(--muted);
  font: 400 0.68rem/1.45 var(--font-interface);
}

.workspace-panel--overview .workspace-card--preview {
  display: grid;
  grid-template-columns: minmax(16rem, 0.82fr) minmax(20rem, 1.18fr);
  gap: 0.9rem 2rem;
  align-items: start;
  padding: 1.55rem 0 1.25rem;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.workspace-panel--overview .working-preview[hidden] {
  display: none;
}

.workspace-panel--overview .workspace-overview-direction__copy {
  display: block;
  grid-column: 1;
  margin: 0;
  padding: 0;
}

.workspace-panel--overview .workspace-overview-direction__copy > div > div {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.6rem;
}

.workspace-panel--overview .workspace-overview-direction__copy h2 {
  font-size: clamp(1.55rem, 2vw, 1.9rem);
}

.workspace-panel--overview .workspace-overview-direction__copy [data-preview-status] {
  padding: 0.3rem 0.55rem;
  border: 1px solid color-mix(in srgb, #3d8b55 40%, var(--line));
  border-radius: 999px;
  color: color-mix(in srgb, #3d8b55 86%, var(--text));
  background: color-mix(in srgb, #3d8b55 7%, transparent);
  font: 700 0.62rem/1 var(--font-interface);
  white-space: nowrap;
}

.workspace-panel--overview .workspace-overview-direction__copy [data-preview-note] {
  max-width: 27rem;
  margin: 0.8rem 0 0;
  color: var(--muted);
  font: 400 0.76rem/1.55 var(--font-interface);
  letter-spacing: 0;
  text-transform: none;
}

.workspace-panel--overview .working-preview__variations {
  grid-column: 1 / -1;
  padding: 0.8rem 0 0;
}

.workspace-panel--overview .working-preview__pages {
  min-width: 0;
  grid-column: 1;
  padding: 0.1rem 0 0;
}

.workspace-panel--overview .working-preview__view-switcher {
  grid-column: 1;
  margin: 0.1rem 0 0;
}

.workspace-panel--overview .working-preview__browser {
  grid-column: 2;
  grid-row: 1 / span 5;
  width: 100%;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--text) 90%, transparent);
  border-radius: 0.65rem;
  background: var(--workspace-panel);
  box-shadow: 0 0.55rem 1.5rem rgba(17, 17, 15, 0.08);
}

.workspace-panel--overview .working-preview__bar {
  display: none;
}

.workspace-panel--overview .working-preview__viewport {
  height: clamp(13.5rem, 20vw, 17rem);
}

.workspace-panel--overview .working-preview__viewport img {
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: top center;
}

.workspace-panel--overview .workspace-card--preview > footer {
  display: flex;
  grid-column: 1;
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0;
}

.workspace-panel--overview .workspace-card--preview > footer small {
  display: none;
}

.workspace-panel--overview .workspace-card--preview [data-preview-open] {
  display: inline-flex;
  width: fit-content;
  min-height: 2.45rem;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  padding: 0 0.85rem;
  color: var(--text);
  background: transparent;
  font: 650 0.68rem/1 var(--font-interface);
  text-decoration: none;
}

.workspace-panel--overview .workspace-card--preview [data-preview-open][hidden] {
  display: none;
}

.workspace-panel--overview .workspace-card--preview [data-preview-open] img {
  width: 0.8rem;
  height: 0.8rem;
}

.workspace-panel--overview .workspace-card--team {
  display: block;
  padding: 1rem 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.workspace-panel--overview .workspace-card--team > header {
  margin: 0;
}

.workspace-panel--overview .workspace-team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.25rem;
  margin: 0.7rem 0 0;
}

.workspace-panel--overview .workspace-team-list li {
  display: grid;
  min-width: 13rem;
  flex: 0 1 16rem;
  grid-template-columns: 2.8rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.workspace-panel--overview .workspace-team-list__avatar {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-strong);
}

.workspace-panel--overview .workspace-team-list__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.workspace-panel--overview .workspace-team-list strong {
  font-family: var(--font-interface);
  font-size: 0.78rem;
  font-weight: 650;
}

.workspace-panel--overview .workspace-team-list small {
  margin-top: 0.15rem;
  font-size: 0.68rem;
}

@media (max-width: 760px) {
  .workspace-panel--overview .workspace-overview-summary > header {
    align-items: flex-start;
    flex-direction: row;
  }

  .workspace-overview-facts {
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: 0.55rem;
  }

  .workspace-overview-facts article,
  .workspace-overview-facts article:first-child {
    padding: 0.85rem 0;
    border: 0;
    border-top: 1px solid var(--line);
  }

  .workspace-overview-facts article:first-child {
    border-top: 0;
  }

  .workspace-panel--overview .workspace-card--preview {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .workspace-panel--overview .workspace-overview-direction__copy,
  .workspace-panel--overview .working-preview__variations,
  .workspace-panel--overview .working-preview__pages,
  .workspace-panel--overview .working-preview__view-switcher,
  .workspace-panel--overview .working-preview__browser,
  .workspace-panel--overview .workspace-card--preview > footer {
    grid-column: 1;
    grid-row: auto;
  }

  .workspace-panel--overview .working-preview__browser {
    order: 2;
  }

  .workspace-panel--overview .workspace-card--preview > footer {
    order: 3;
  }

  .workspace-panel--overview .working-preview__viewport {
    height: clamp(14rem, 62vw, 20rem);
    min-height: 0;
  }

}

/* Wider records canvas used by the selected Files reference. */
@media (min-width: 901px) {
  :root {
    --workspace-command-height: clamp(32rem, calc(100dvh - 20rem), 48rem) !important;
  }

  .workspace-command-center {
    grid-template-columns: minmax(0, 3fr) minmax(18.5rem, 0.9fr) !important;
  }
}

/* Files tab — connected materials and visual reference board. */
.workspace-files-board {
  display: grid;
  min-height: 100%;
  grid-template-columns: minmax(0, 1.55fr) minmax(16rem, 0.85fr);
}

.workspace-files-materials,
.workspace-files-references {
  min-width: 0;
}

.workspace-files-materials {
  padding-right: clamp(1.25rem, 2.4vw, 2rem);
  border-right: 1px solid var(--line);
}

.workspace-files-materials__head > p,
.workspace-files-references > header p,
.workspace-files-recent > div > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.workspace-files-materials__identity {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  margin-top: 1rem;
}

.workspace-files-materials__identity > img {
  width: 3.2rem;
  height: 3.2rem;
  object-fit: contain;
}

.workspace-files-materials__identity h2,
.workspace-files-references h2 {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.workspace-files-materials__identity > div > p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0.42rem 0 0;
  color: var(--muted);
  font-size: 0.64rem;
}

.workspace-files-materials__identity > div > p i {
  font-style: normal;
}

.workspace-files-materials__identity [data-drive-folder-state] {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.workspace-files-materials__identity [data-drive-folder-state]::before {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--muted);
  content: "";
}

.workspace-files-materials__identity [data-drive-folder-state][data-state="active"]::before {
  background: var(--success);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--success) 12%, transparent);
}

.workspace-files-materials__primary-actions {
  display: grid;
  min-width: 9.7rem;
  gap: 0.45rem;
}

.workspace-files-materials__primary-actions [hidden] {
  display: none;
}

.workspace-files-materials__primary-actions a,
.workspace-files-materials__primary-actions button,
.workspace-files-materials__tools button,
.workspace-files-references > header button {
  display: inline-flex;
  min-height: 2.55rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.55rem;
  padding: 0 0.85rem;
  color: var(--text);
  background: transparent;
  font: 700 0.68rem/1 var(--font-interface);
  text-decoration: none;
  cursor: pointer;
}

.workspace-files-materials__primary-actions a {
  border-color: var(--text);
  color: var(--inverse);
  background: var(--text);
}

.workspace-files-materials__primary-actions img {
  width: 0.9rem;
  height: 0.9rem;
}

.workspace-files-materials__copy {
  max-width: 46rem;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.5;
}

.workspace-files-materials__tools {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.workspace-files-materials__tools button {
  min-height: 2.25rem;
  border: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
}

.workspace-files-materials__tools button + button {
  margin-left: 0.35rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--line);
  border-radius: 0;
}

.workspace-files-recent {
  margin-top: 1.35rem;
}

.workspace-files-recent > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.workspace-files-recent > div > span,
.workspace-files-references__count {
  color: var(--muted);
  font-size: 0.62rem;
}

.workspace-files-recent ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.workspace-files-recent li {
  position: relative;
  display: grid;
  min-height: 4.8rem;
  grid-template-columns: 4.6rem minmax(0, 1fr) auto 2.25rem;
  gap: 0.8rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.workspace-drive-file__preview {
  display: grid;
  width: 4.6rem;
  height: 3.65rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--workspace-panel);
}

.workspace-drive-file__preview img {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
  opacity: 0.8;
}

.workspace-files-recent li > div {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.workspace-files-recent li strong {
  overflow: hidden;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-files-recent li small,
.workspace-files-recent li time {
  color: var(--muted);
  font-size: 0.61rem;
}

.workspace-files-recent li time {
  min-width: 5.5rem;
  text-align: right;
}

.workspace-drive-file__menu {
  position: relative;
  justify-self: end;
}

.workspace-drive-file__menu summary {
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  list-style: none;
}

.workspace-drive-file__menu summary::-webkit-details-marker {
  display: none;
}

.workspace-drive-file__menu summary:hover,
.workspace-drive-file__menu summary:focus-visible,
.workspace-drive-file__menu[open] summary {
  background: color-mix(in srgb, var(--text) 7%, transparent);
}

.workspace-drive-file__menu summary img {
  width: 1.15rem;
  height: 1.15rem;
}

.workspace-drive-file__menu > div {
  position: absolute;
  z-index: 8;
  top: calc(100% + 0.25rem);
  right: 0;
  display: grid;
  width: 9.4rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.62rem;
  background: var(--workspace-canvas);
  box-shadow: 0 0.8rem 2.2rem rgba(20, 18, 14, 0.14);
}

.workspace-drive-file__menu button {
  min-height: 2.55rem;
  border: 0;
  padding: 0 0.75rem;
  color: var(--text);
  background: transparent;
  font: 650 0.68rem/1 var(--font-interface);
  text-align: left;
}

.workspace-drive-file__menu button:hover,
.workspace-drive-file__menu button:focus-visible {
  background: color-mix(in srgb, var(--text) 6%, transparent);
}

.workspace-drive-file__menu button:last-child {
  border-top: 1px solid var(--line);
  color: var(--danger);
}

.workspace-files-materials > [data-drive-empty],
.workspace-files-recent > [data-drive-recent-empty] {
  margin: 0;
  padding: 1rem 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.workspace-files-materials > output {
  display: block;
  min-height: 1rem;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.66rem;
}

.workspace-files-references {
  position: relative;
  padding-left: clamp(1.25rem, 2.4vw, 2rem);
}

.workspace-files-references > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.workspace-files-references > header p {
  margin-bottom: 0.55rem;
}

.workspace-files-references > header button {
  flex: 0 0 auto;
  border-radius: 999px;
}

.workspace-files-references > p {
  max-width: 24rem;
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.workspace-files-references__count {
  display: block;
  margin-top: 0.4rem;
}

.workspace-files-references .workspace-reference-form {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 0.85rem;
}

.workspace-files-references .workspace-reference-form[hidden] {
  display: none;
}

.workspace-files-references .workspace-reference-form > div,
.workspace-files-references .workspace-reference-form output {
  grid-column: auto;
}

.workspace-files-references .workspace-reference-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.workspace-files-references .workspace-reference-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: transparent;
}

.workspace-reference-list__preview {
  display: grid;
  height: 8.5rem;
  grid-column: 1 / -1;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--workspace-gold) 5%, var(--workspace-panel));
}

.workspace-reference-list__preview img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.workspace-files-references .workspace-reference-list li > div:first-of-type {
  padding: 0.72rem;
}

.workspace-files-references .workspace-reference-list li > div:last-child {
  align-self: end;
  padding: 0.55rem;
}

.workspace-files-references .workspace-reference-list a span {
  display: none;
}

@media (max-width: 1120px) {
  .workspace-files-board {
    grid-template-columns: 1fr;
  }

  .workspace-files-materials {
    padding-right: 0;
    padding-bottom: 1.35rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workspace-files-references {
    padding: 1.35rem 0 0;
  }

  .workspace-files-references .workspace-reference-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .workspace-files-materials__identity {
    grid-template-columns: 2.8rem minmax(0, 1fr);
  }

  .workspace-files-materials__identity > img {
    width: 2.55rem;
    height: 2.55rem;
  }

  .workspace-files-materials__primary-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .workspace-files-materials__tools {
    flex-wrap: wrap;
  }

  .workspace-files-recent li {
    min-height: 4.5rem;
    grid-template-columns: 3.4rem minmax(0, 1fr) 2.1rem;
    gap: 0.65rem;
  }

  .workspace-drive-file__preview {
    width: 3.4rem;
    height: 3rem;
  }

  .workspace-files-recent li time {
    display: none;
  }

  .workspace-files-references .workspace-reference-list {
    grid-template-columns: 1fr;
  }
}

/* Files tab fidelity pass — Drive browser rows and a deliberate connection state. */
.workspace-files-board {
  grid-template-columns: minmax(0, 1.82fr) minmax(17rem, 0.96fr);
}

.workspace-files-connect[hidden],
[data-drive-connected][hidden],
.workspace-files-materials__footer [hidden] {
  display: none;
}

.workspace-files-connect {
  display: grid;
  max-width: 39rem;
  min-height: 25rem;
  align-content: center;
  justify-items: start;
  padding: clamp(2.4rem, 6vw, 5.5rem) clamp(0rem, 3vw, 2rem);
}

.workspace-files-connect > img {
  width: 3.8rem;
  height: 3.8rem;
  margin-bottom: 1.25rem;
  object-fit: contain;
}

.workspace-files-connect h2 {
  max-width: 28rem;
  margin: 0;
  font-family: var(--font-editorial);
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.workspace-files-connect p {
  max-width: 34rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.workspace-files-connect > button {
  min-height: 2.85rem;
  margin-top: 1.5rem;
  border: 1px solid var(--text);
  border-radius: 0.55rem;
  padding: 0 1.1rem;
  color: var(--inverse);
  background: var(--text);
  font: 750 0.72rem/1 var(--font-interface);
  cursor: pointer;
}

.workspace-files-connect > small {
  max-width: 31rem;
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.5;
}

.workspace-files-materials__identity {
  grid-template-columns: 3.6rem minmax(0, 1fr) 10rem;
  gap: 1rem;
  margin-top: 1.3rem;
}

.workspace-files-materials__identity > img {
  width: 3.5rem;
  height: 3.5rem;
}

.workspace-files-materials__identity h2 {
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  line-height: 1.08;
}

.workspace-files-materials__copy {
  margin-top: 1.3rem;
  font-size: 0.72rem;
}

.workspace-files-recent {
  margin-top: 1.7rem;
}

.workspace-files-recent > div {
  padding-bottom: 0.75rem;
}

.workspace-files-recent li {
  min-height: 5.9rem;
  grid-template-columns: 9.2rem minmax(0, 1fr) 5.8rem 2.2rem;
  gap: 0.9rem;
}

.workspace-drive-file__preview {
  width: 9.2rem;
  height: 5.15rem;
  background: color-mix(in srgb, var(--workspace-gold) 4%, var(--workspace-panel));
}

.workspace-drive-file__preview.has-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.workspace-files-recent li strong {
  font-size: 0.73rem;
}

.workspace-files-recent li small,
.workspace-files-recent li time {
  font-size: 0.62rem;
}

.workspace-drive-file__date {
  display: grid;
  gap: 0.34rem;
  justify-items: start;
  min-width: 0;
}

.workspace-drive-file__date time {
  min-width: 0;
  text-align: left;
}

.workspace-drive-file__menu > div {
  top: calc(50% + 0.7rem);
}

.workspace-files-materials__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
}

.workspace-files-materials__footer > a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
  font: 650 0.66rem/1 var(--font-interface);
  text-decoration: none;
}

.workspace-files-materials__footer > a img {
  width: 0.8rem;
  height: 0.8rem;
}

.workspace-files-materials__tools {
  margin-top: 0;
}

.workspace-files-materials__tools button {
  min-height: 1.9rem;
  font-size: 0.62rem;
}

.workspace-files-references > header {
  align-items: center;
}

.workspace-files-references > header h2 {
  font-family: var(--font-interface);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.workspace-files-references > header p {
  max-width: 15rem;
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.workspace-files-references__count {
  height: 0;
  margin: 0;
  overflow: hidden;
}

.workspace-files-references .workspace-reference-list {
  gap: 1rem;
  margin-top: 1.25rem;
}

.workspace-files-references .workspace-reference-list li {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  border-radius: 0.55rem;
  background: var(--workspace-canvas);
}

.workspace-reference-list__preview {
  height: 12.5rem;
  padding: 0;
  background: var(--workspace-panel);
}

.workspace-reference-list__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.workspace-reference-list__preview.is-fallback img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.workspace-files-references .workspace-reference-list li > div:first-of-type {
  padding: 0.75rem 0.8rem;
  padding-right: 4.25rem;
}

.workspace-files-references .workspace-reference-list li > div:first-of-type > small {
  display: none;
}

.workspace-files-references .workspace-reference-list li > div:last-child {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  opacity: 0;
  transition: opacity 160ms ease;
}

.workspace-files-references .workspace-reference-list li:hover > div:last-child,
.workspace-files-references .workspace-reference-list li:focus-within > div:last-child {
  opacity: 1;
}

@media (max-width: 1120px) {
  .workspace-files-board {
    grid-template-columns: 1fr;
  }

  .workspace-files-references .workspace-reference-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .workspace-files-connect {
    min-height: 20rem;
    padding: 2.5rem 0;
  }

  .workspace-files-connect > button {
    width: 100%;
  }

  .workspace-files-materials__identity {
    grid-template-columns: 2.8rem minmax(0, 1fr);
  }

  .workspace-files-materials__primary-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  .workspace-files-recent li {
    min-height: 5rem;
    grid-template-columns: 4.5rem minmax(0, 1fr) 2.1rem;
    gap: 0.7rem;
  }

  .workspace-drive-file__preview {
    width: 4.5rem;
    height: 3.8rem;
  }

  .workspace-drive-file__date {
    display: none;
  }

  .workspace-files-materials__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-files-references .workspace-reference-list {
    grid-template-columns: 1fr;
  }
}

/* Client records refinement — open overview and streamlined appointment scheduling. */
.workspace-overview-grid {
  grid-template-columns: 1fr;
  gap: 0;
}

.workspace-overview-summary,
.workspace-panel--overview .workspace-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.workspace-overview-summary {
  padding-bottom: 1.5rem;
}

.workspace-overview-summary > header {
  margin-bottom: 0.55rem;
}

.workspace-overview-summary h2 {
  font-size: clamp(1.9rem, 3vw, 2.65rem);
}

.workspace-overview-summary > header > span {
  border-color: color-mix(in srgb, var(--workspace-gold) 30%, var(--line));
  background: transparent;
}

.workspace-overview-summary__expectation {
  max-width: 46rem;
}

.workspace-request-summary {
  display: grid;
  grid-template-columns: minmax(8rem, 0.28fr) minmax(0, 1fr);
  gap: 0.9rem 1.5rem;
  margin-top: 1.3rem;
  padding-top: 1.05rem;
}

.workspace-request-summary > p {
  margin: 0;
}

.workspace-request-summary blockquote,
.workspace-request-summary details {
  grid-column: 2;
}

.workspace-panel--overview .workspace-card {
  grid-column: 1 / -1;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}

.workspace-panel--overview .workspace-card > header {
  margin-bottom: 1rem;
}

.workspace-panel--overview .workspace-card--team {
  display: grid;
  grid-template-columns: minmax(12rem, 0.38fr) minmax(0, 1fr);
  gap: 0.5rem 1.5rem;
}

.workspace-panel--overview .workspace-card--team > header,
.workspace-panel--overview .workspace-card--team > p {
  grid-column: 1;
}

.workspace-panel--overview .workspace-card--team .workspace-team-list,
.workspace-panel--overview .workspace-card--team .workspace-list-empty {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.workspace-appointments__header {
  padding-bottom: 0;
  border-bottom: 0;
}

.workspace-appointments__intro {
  max-width: 38rem;
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.workspace-appointments__layout {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 1.45rem;
}

.workspace-appointments__request,
.workspace-appointments__records {
  width: 100%;
  padding: 1.1rem 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.workspace-appointments__request {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.workspace-appointments__request > div {
  max-width: 36rem;
}

.workspace-appointments__request > div > p:first-child {
  margin: 0 0 0.3rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.workspace-appointments__request > div > p:last-child {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.workspace-appointments__request h3 {
  font-size: 1.42rem;
}

.workspace-appointments__request button {
  width: auto;
  min-width: 11rem;
  margin: 0;
  flex: 0 0 auto;
}

.workspace-appointments__section-head {
  align-items: end;
  margin-bottom: 0.8rem;
}

.workspace-appointments__section-head h3 {
  font-family: var(--font-interface);
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.workspace-appointment-list {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.68rem;
}

.workspace-appointment {
  padding: 1rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.workspace-appointment:last-child {
  border-bottom: 0;
}

.workspace-appointment[data-status="scheduled"] {
  border-color: var(--line);
  box-shadow: inset 3px 0 0 var(--workspace-gold);
}

.workspace-appointment > header {
  align-items: center;
}

.workspace-appointment > header h4 {
  font-family: var(--font-interface);
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.workspace-appointment > header p {
  margin-bottom: 0.2rem;
}

.workspace-appointment > header > span {
  min-width: 5.5rem;
  border: 0;
  text-align: right;
}

.workspace-appointment__details {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workspace-appointment-choice {
  gap: 1rem;
  margin-top: 0.85rem;
}

.workspace-appointment-choice fieldset {
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
}

.workspace-appointment-choice fieldset label > span {
  min-height: 4.55rem;
  text-align: center;
}

.workspace-appointment-choice__contact {
  grid-template-columns: minmax(12rem, 0.55fr) minmax(15rem, 1fr);
}

.workspace-appointments__empty {
  padding: 1rem 0;
}

@media (max-width: 760px) {
  .workspace-request-summary,
  .workspace-panel--overview .workspace-card--team {
    display: block;
  }

  .workspace-request-summary blockquote,
  .workspace-request-summary details {
    margin-top: 0.65rem;
  }

  .workspace-panel--overview .workspace-card--team > p,
  .workspace-panel--overview .workspace-card--team .workspace-team-list,
  .workspace-panel--overview .workspace-card--team .workspace-list-empty {
    margin-top: 0.65rem;
  }

  .workspace-appointments__request {
    align-items: stretch;
    flex-direction: column;
    gap: 0.9rem;
  }

  .workspace-appointments__request button {
    width: 100%;
  }

  .workspace-appointment__details,
  .workspace-appointment-choice__contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .workspace-appointments__header {
    gap: 0.35rem;
  }

  .workspace-appointments__section-head,
  .workspace-appointment > header {
    align-items: flex-start;
    flex-direction: row;
  }

  .workspace-appointment > header > span {
    min-width: 0;
  }

  .workspace-appointment-choice fieldset {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .workspace-appointment-choice fieldset legend {
    flex: 0 0 100%;
  }

  .workspace-appointment-choice fieldset label {
    min-width: 8.5rem;
    scroll-snap-align: start;
  }
}

/* Selected option 1 keeps Billing as one calm, continuous surface. */
.workspace-panel-grid--billing .billing-account {
  padding: 1.35rem 1.55rem;
  border: 0;
  border-radius: 0;
  background: var(--workspace-panel);
}

.workspace-panel-grid--billing .billing-frequency-change,
.workspace-panel-grid--billing .billing-action-row--service {
  margin: 0;
  padding: 1.1rem 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

@media (max-width: 680px) {
  .workspace-panel-grid--billing .billing-account {
    padding: 1rem;
  }

  .workspace-panel-grid--billing .billing-frequency-change,
  .workspace-panel-grid--billing .billing-action-row--service {
    padding: 1rem 0;
  }
}

/* Project-linked phone appointments */
.workspace-appointments {
  min-height: 100%;
}

.workspace-appointments__header,
.workspace-appointments__section-head,
.workspace-appointment > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.workspace-appointments__header {
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}

.workspace-appointments__header p,
.workspace-appointments__section-head p,
.workspace-appointment > header p,
.workspace-appointments__request > p:first-of-type {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.workspace-appointments__header h2,
.workspace-appointments__section-head h3,
.workspace-appointments__request h3,
.workspace-appointment > header h4 {
  margin: 0;
  font-family: var(--font-editorial);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.workspace-appointments__header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.workspace-appointments__header > span,
.workspace-appointments__section-head > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.68rem;
}

.workspace-appointments__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(15rem, 0.72fr);
  gap: 1.1rem;
  padding-top: 1.15rem;
  align-items: start;
}

.workspace-appointments__records,
.workspace-appointments__request {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--workspace-panel);
}

.workspace-appointments__records {
  padding: 1rem;
}

.workspace-appointments__section-head {
  margin-bottom: 0.85rem;
}

.workspace-appointments__section-head h3 {
  font-size: 1.4rem;
}

.workspace-appointment-list {
  display: grid;
  gap: 0.75rem;
}

.workspace-appointment-list[hidden],
.workspace-appointments__empty[hidden] {
  display: none;
}

.workspace-appointment {
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.72rem;
  background: var(--workspace-canvas);
}

.workspace-appointment[data-status="scheduled"] {
  border-color: color-mix(in srgb, var(--workspace-gold) 42%, var(--line));
  box-shadow: inset 3px 0 0 var(--workspace-gold);
}

.workspace-appointment > header h4 {
  font-size: clamp(1.15rem, 2vw, 1.48rem);
}

.workspace-appointment > header > span {
  flex: 0 0 auto;
  padding: 0.32rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
}

.workspace-appointment > header > span[data-state="scheduled"],
.workspace-appointment > header > span[data-state="awaiting-client"],
.workspace-appointment > header > span[data-state="reschedule-offered"] {
  border-color: color-mix(in srgb, var(--workspace-gold) 42%, var(--line));
  color: var(--text);
  background: color-mix(in srgb, var(--workspace-gold) 7%, transparent);
}

.workspace-appointment__intro {
  margin: 0.75rem 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.workspace-appointment__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  margin: 0.85rem 0 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.workspace-appointment__details div {
  min-width: 0;
}

.workspace-appointment__details dt {
  margin-bottom: 0.18rem;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.workspace-appointment__details dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.74rem;
  line-height: 1.45;
}

.workspace-appointment__calendar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem 0.8rem;
  align-items: center;
  margin-top: 0.85rem;
  padding: 0.78rem;
  border: 1px solid var(--line);
  border-radius: 0.62rem;
  background: color-mix(in srgb, var(--workspace-gold) 4%, var(--workspace-panel));
}

.workspace-appointment__calendar-copy strong,
.workspace-appointment__calendar-copy p,
.workspace-appointment__calendar-note {
  margin: 0;
}

.workspace-appointment__calendar-copy strong {
  display: block;
  font-size: 0.72rem;
}

.workspace-appointment__calendar-copy p,
.workspace-appointment__calendar-note {
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.45;
}

.workspace-appointment__calendar-copy p {
  margin-top: 0.18rem;
}

.workspace-appointment__calendar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.workspace-appointment__calendar-actions a,
.workspace-appointment__calendar-actions button {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 0.72rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.5rem;
  color: var(--text);
  background: var(--workspace-canvas);
  font: inherit;
  font-size: 0.66rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.workspace-appointment__calendar-actions a:hover,
.workspace-appointment__calendar-actions button:hover {
  border-color: var(--workspace-gold);
  color: var(--text);
}

.workspace-appointment__calendar-actions a:focus-visible,
.workspace-appointment__calendar-actions button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.workspace-appointment__calendar-note {
  grid-column: 1 / -1;
  padding-top: 0.52rem;
  border-top: 1px solid var(--line);
}

.workspace-appointment__actions,
.workspace-appointment-choice__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.workspace-appointment__actions button,
.workspace-appointment-choice button,
.workspace-appointments__request button {
  min-height: 2.45rem;
  padding: 0.62rem 0.82rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.5rem;
  background: transparent;
  font-size: 0.7rem;
  font-weight: 700;
}

.workspace-appointment__actions button:last-child {
  color: var(--danger);
}

.workspace-appointments__request {
  position: sticky;
  top: calc(4.8rem + 3.45rem + 4rem);
  padding: 1.1rem;
}

.workspace-appointments__phone {
  display: grid;
  width: 3.05rem;
  height: 3.05rem;
  place-items: center;
  margin-bottom: 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text);
  background: var(--workspace-canvas);
  box-shadow: 0 0 0 0.28rem var(--workspace-canvas);
}

.workspace-appointments__phone svg {
  width: 1.35rem;
  fill: currentColor;
  stroke: none;
}

.workspace-appointments__request h3 {
  font-size: 1.65rem;
}

.workspace-appointments__request > p:not(:first-of-type),
.workspace-appointments__request li,
.workspace-appointments__request small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.workspace-appointments__request ul {
  display: grid;
  gap: 0.42rem;
  margin: 0.9rem 0;
  padding-left: 1.15rem;
}

.workspace-appointments__request button {
  width: 100%;
  margin: 0.15rem 0 0.6rem;
  border-color: var(--text);
  color: var(--inverse);
  background: var(--text);
}

.workspace-appointments__empty {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 0.2rem 0.2rem;
  color: var(--muted);
}

.workspace-appointments__empty > span {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.workspace-appointments__empty svg {
  width: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.workspace-appointments__empty strong,
.workspace-appointments__empty p {
  margin: 0;
  font-size: 0.74rem;
}

.workspace-appointments__empty p {
  margin-top: 0.22rem;
  line-height: 1.45;
}

.workspace-appointment-choice {
  display: grid;
  gap: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.workspace-appointment-choice fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.workspace-appointment-choice legend {
  grid-column: 1 / -1;
  margin-bottom: 0.2rem;
  font-size: 0.7rem;
  font-weight: 750;
}

.workspace-appointment-choice fieldset label {
  position: relative;
  display: block;
}

.workspace-appointment-choice fieldset input {
  position: absolute;
  opacity: 0;
}

.workspace-appointment-choice fieldset label > span {
  display: grid;
  gap: 0.2rem;
  min-height: 4.2rem;
  align-content: center;
  padding: 0.68rem;
  border: 1px solid var(--line);
  border-radius: 0.58rem;
  cursor: pointer;
}

.workspace-appointment-choice fieldset input:checked + span {
  border-color: var(--workspace-gold);
  box-shadow: inset 0 0 0 1px var(--workspace-gold);
  background: color-mix(in srgb, var(--workspace-gold) 6%, transparent);
}

.workspace-appointment-choice fieldset input:focus-visible + span {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.workspace-appointment-choice fieldset strong {
  font-size: 0.69rem;
}

.workspace-appointment-choice fieldset small {
  color: var(--muted);
  font-size: 0.6rem;
}

.workspace-appointment-choice__contact {
  display: grid;
  grid-template-columns: minmax(10rem, 0.8fr) minmax(0, 1.2fr);
  gap: 0.6rem;
  align-items: end;
}

.workspace-appointment-choice__contact label {
  display: grid;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.64rem;
}

.workspace-appointment-choice__contact input[type="tel"] {
  width: 100%;
  min-height: 2.45rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--workspace-panel);
}

.workspace-appointment-choice__contact .workspace-appointment-choice__consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.45rem;
  line-height: 1.45;
}

.workspace-appointment-choice__footer small {
  color: var(--muted);
  font-size: 0.62rem;
}

.workspace-appointment-choice__footer button {
  border-color: var(--text);
  color: var(--inverse);
  background: var(--text);
}

.workspace-appointment-choice output {
  min-height: 1rem;
  color: var(--muted);
  font-size: 0.66rem;
}

.workspace-appointment-dialog__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(8.5rem, 0.65fr);
  gap: 0.7rem;
}

.workspace-appointment-dialog select {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.72rem 2.5rem 0.72rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.72rem;
  background: var(--surface-strong);
}

.workspace-appointment-dialog__timezone {
  margin: 0;
  font-size: 0.7rem;
}

@media (max-width: 1180px) {
  .workspace-appointments__layout {
    grid-template-columns: 1fr;
  }

  .workspace-appointments__request {
    position: static;
  }
}

@media (max-width: 640px) {
  .workspace-appointments__header,
  .workspace-appointments__section-head,
  .workspace-appointment > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-appointments__records,
  .workspace-appointments__request,
  .workspace-appointment {
    border-radius: 0.7rem;
  }

  .workspace-appointment__details,
  .workspace-appointment-choice fieldset,
  .workspace-appointment-choice__contact,
  .workspace-appointment-dialog__grid {
    grid-template-columns: 1fr;
  }

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

  .workspace-appointment__calendar-actions {
    justify-content: stretch;
  }

  .workspace-appointment__calendar-actions a,
  .workspace-appointment__calendar-actions button {
    flex: 1 1 9.5rem;
  }

  .workspace-appointment__actions,
  .workspace-appointment-choice__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .workspace-appointment__actions button,
  .workspace-appointment-choice__footer button {
    width: 100%;
  }
}

@media (forced-colors: active) {
  .workspace-appointments__records,
  .workspace-appointments__request,
  .workspace-appointment,
  .workspace-appointment-choice fieldset label > span {
    border: 1px solid CanvasText;
  }
}

/* Hybrid client workspace — compact journey, focused records, live conversation. */
:root {
  --workspace-gold: #b58a2a;
  --workspace-gold-soft: #eadbb8;
  --workspace-canvas: #ffffff;
  --workspace-panel: #fcfbf8;
  --workspace-track: #d8d4ca;
  --workspace-command-height: clamp(28rem, calc(100dvh - 28rem), 39rem);
}

html[data-theme="dark"] {
  --workspace-gold: #e2c06c;
  --workspace-gold-soft: #4b4027;
  --workspace-canvas: #101212;
  --workspace-panel: #151717;
  --workspace-track: #41413d;
}

body {
  background: var(--bg);
}

.workspace-header {
  border-bottom-color: rgba(255, 255, 255, 0.14);
  color: #f7f3e8;
  background: rgba(8, 9, 8, 0.96);
  backdrop-filter: blur(20px) saturate(1.15);
}

.workspace-header nav a {
  color: rgba(247, 243, 232, 0.68);
}

.workspace-header nav a:hover,
.workspace-header nav a:focus-visible,
.workspace-header nav a[aria-current="page"] {
  color: #fff;
}

.workspace-header .account-entry,
.workspace-header .header-sign-out,
.workspace-header .theme-picker__trigger {
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.workspace-shell {
  width: 100%;
  overflow-x: clip;
  padding: 0 0 3rem;
}

.workspace-invite,
.workspace-empty,
.workspace-global-status {
  width: min(92rem, 94vw);
  margin-right: auto;
  margin-left: auto;
}

.request-history {
  position: sticky;
  z-index: 8;
  top: 4.8rem;
  display: block;
  margin: 0;
  padding: 0.55rem 0 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(20px) saturate(1.12);
}

.request-history[hidden] {
  display: none;
}

.project-switcher {
  position: relative;
  z-index: 20;
  flex: 0 0 auto;
}

.project-switcher > summary {
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--workspace-panel);
  list-style: none;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.project-switcher > summary::-webkit-details-marker {
  display: none;
}

.project-switcher > summary > strong {
  position: absolute;
}

.project-switcher > summary > img {
  width: 0.92rem;
  height: 0.92rem;
  opacity: 0.72;
  transition: transform 180ms ease;
}

.project-switcher > summary:hover,
.project-switcher > summary:focus-visible,
.project-switcher[open] > summary {
  color: var(--inverse);
  border-color: var(--text);
  background: var(--text);
}

.project-switcher > summary:hover > img,
.project-switcher > summary:focus-visible > img,
.project-switcher[open] > summary > img {
  filter: invert(1);
}

html[data-theme="dark"] .project-switcher > summary > img {
  filter: invert(1);
}

.project-switcher[open] > summary > img {
  transform: rotate(180deg);
}

.project-switcher__panel {
  position: absolute;
  z-index: 2;
  top: calc(100% + 0.55rem);
  right: auto;
  left: 0;
  width: min(31rem, calc(100vw - 2rem));
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 0.8rem;
  background: #fff;
  box-shadow: 0 24px 60px rgba(18, 17, 14, 0.18);
  isolation: isolate;
  opacity: 1;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-theme="dark"] .project-switcher__panel {
  background: #101212;
}

.project-switcher__panel > header {
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
}

.project-switcher__panel > header strong {
  font-size: 0.8rem;
}

.project-switcher__panel > header span {
  color: var(--muted);
  font-size: 0.68rem;
}

.project-switcher__panel .request-history__scroller {
  max-height: min(25rem, 58vh);
  padding: 0.45rem;
  overflow: auto;
}

.project-switcher__panel ol {
  display: grid;
  min-width: 0;
  grid-auto-columns: auto;
  grid-auto-flow: row;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.project-switcher__panel li {
  width: 100%;
}

.project-switcher__panel button {
  width: 100%;
  min-height: 4.25rem;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 0.7rem 0.75rem;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  box-shadow: none;
}

.project-switcher__panel button:hover,
.project-switcher__panel button[aria-current="true"] {
  border-color: transparent;
  color: var(--text);
  background: color-mix(in srgb, var(--text) 6%, transparent);
}

.project-switcher__panel button[aria-current="true"] small {
  color: var(--muted);
}

.request-history__utility {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 0.2rem;
}

.request-history__utility > button {
  min-height: 2.35rem;
  padding: 0 0.7rem;
  border: 0;
  border-radius: 0.45rem;
  color: var(--muted);
  background: transparent;
  font-size: 0.72rem;
}

.request-history__utility > button:hover,
.request-history__utility > button:focus-visible {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 6%, transparent);
}

.workspace-live-state {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 0.55rem;
  align-items: center;
  color: var(--success);
  font-size: 0.72rem;
  font-weight: 650;
}

.workspace-live-state i {
  width: 0.48rem;
  height: 0.48rem;
  grid-row: 1 / span 2;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0.25rem color-mix(in srgb, currentColor 11%, transparent);
}

.workspace-live-state small {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 450;
}

.workspace-project {
  width: min(96rem, 94vw);
  margin: 0 auto;
  padding-top: 0;
}

.workspace-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0 0 0.3rem;
}

.workspace-intro > div > p:first-child {
  margin-bottom: 0.2rem;
  font-size: 0.58rem;
}

.workspace-intro h1 {
  max-width: none;
  font-size: clamp(1.8rem, 2.8vw, 2.7rem);
  line-height: 1;
}

.workspace-intro__identity {
  min-width: 0;
}

.workspace-intro__title-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: clamp(0.65rem, 1.4vw, 1rem);
}

.workspace-intro__title-row h1 {
  min-width: 0;
  margin: 0;
}

.workspace-intro > div > p:last-child {
  max-width: none;
  margin-top: 0.3rem;
  font-size: 0.68rem;
}

.project-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, minmax(5.5rem, 1fr));
  gap: 0;
  margin: 0;
  padding: 0.15rem 1rem 0.38rem;
  overflow: visible;
  border-bottom: 0;
}

.project-timeline::before {
  position: absolute;
  z-index: 0;
  top: 1.72rem;
  right: calc(6.25% + 1rem);
  left: calc(6.25% + 1rem);
  height: 1px;
  background: var(--workspace-track);
  content: "";
}

.project-timeline li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.14rem;
  padding: 0;
  color: var(--muted);
  text-align: center;
}

.project-timeline li::before {
  display: none;
}

.project-timeline__icon,
.project-timeline span.project-timeline__icon {
  position: relative;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text);
  background: var(--workspace-canvas);
  box-shadow: 0 0 0 0.2rem var(--workspace-canvas);
}

.project-timeline__icon > img:first-child {
  width: 1.25rem;
  height: 1.25rem;
}

.project-timeline__icon::after {
  display: none;
}

html[data-theme="dark"] .project-timeline__icon > img:first-child {
  filter: invert(1);
}

.project-timeline .project-timeline__check {
  position: absolute;
  top: -0.22rem;
  right: -0.22rem;
  display: none;
  width: 1.18rem;
  height: 1.18rem;
  padding: 0;
  border: 2px solid var(--workspace-canvas);
  border-radius: 50%;
  color: #090909;
  background: #fff;
  filter: none;
}

html[data-theme="dark"] .project-timeline .project-timeline__check {
  color: #090909;
  background: #fff;
  filter: none;
}

.project-timeline li.is-complete .project-timeline__check {
  display: block;
}

.project-timeline li.is-complete .project-timeline__icon {
  border-color: var(--line-strong);
  background: var(--workspace-canvas);
}

.project-timeline li.is-active .project-timeline__icon {
  border-color: var(--workspace-gold);
  color: var(--text);
  background: var(--workspace-canvas);
  box-shadow:
    0 0 0 0.2rem var(--workspace-canvas),
    0 0 0 0.28rem color-mix(in srgb, var(--workspace-gold) 45%, transparent);
}

.project-timeline li strong {
  margin-top: 0.2rem;
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 650;
}

.project-timeline li small {
  color: var(--muted);
  font-size: 0.56rem;
}

.project-timeline li.is-active small {
  color: var(--text);
  font-weight: 700;
}

.workspace-next-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  align-items: center;
  gap: 1rem;
  margin: 0.65rem 0 0.75rem;
  padding: 1rem 1.05rem;
  border: 1px solid color-mix(in srgb, var(--workspace-gold) 26%, var(--line));
  border-radius: 0.8rem;
  background: color-mix(in srgb, var(--workspace-gold) 5%, var(--surface));
  box-shadow: 0 0.4rem 1.2rem color-mix(in srgb, var(--shadow) 9%, transparent);
}

.workspace-next-step > div {
  display: grid;
  min-width: 0;
  gap: 0.16rem;
}

.workspace-next-step > div > p:first-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.workspace-next-step h2 {
  margin: 0;
  font-family: var(--font-interface);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
}

.workspace-next-step > div > p:last-child {
  max-width: 48rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.5;
}

.workspace-next-step > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  flex: 0 0 auto;
  padding: 0 1rem;
  border: 1px solid var(--text);
  border-radius: 999px;
  color: var(--inverse);
  background: var(--text);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.workspace-next-step > button[hidden] {
  display: none;
}

.workspace-next-step[data-state="waiting"] {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: none;
}

.workspace-next-step[data-state="waiting"] > div > p:first-child {
  color: var(--muted);
}

.workspace-next-step[data-state="complete"] {
  border-color: color-mix(in srgb, var(--success) 28%, var(--line));
  background: color-mix(in srgb, var(--success) 5%, var(--surface));
}

.workspace-next-step[data-state="complete"] > div > p:first-child {
  color: var(--success);
}

.workspace-next-step[data-state="attention"] {
  border-color: color-mix(in srgb, var(--warning) 34%, var(--line));
  background: color-mix(in srgb, var(--warning) 5%, var(--surface));
}

.workspace-next-step[data-state="attention"] > div > p:first-child {
  color: var(--warning);
}

.workspace-tabs {
  position: relative;
  z-index: 4;
  top: auto;
  display: flex;
  align-items: end;
  gap: clamp(1.2rem, 3vw, 2.7rem);
  min-height: 2.75rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  border-top: 0;
  background: transparent;
  scrollbar-width: none;
  scroll-margin-top: 4.8rem;
}

.workspace-tabs::-webkit-scrollbar {
  display: none;
}

.workspace-tabs button {
  position: relative;
  display: block;
  width: auto;
  min-height: 2.75rem;
  flex: 0 0 auto;
  grid-template-columns: none;
  padding: 0 0.12rem;
  border: 0;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
  font-size: 0.76rem;
}

.workspace-tabs button::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 99px 99px 0 0;
  background: var(--text);
  content: "";
  opacity: 0;
  transform: scaleX(0.55);
  transition: opacity 160ms ease, transform 180ms ease;
}

.workspace-tabs button:hover,
.workspace-tabs button:focus-visible,
.workspace-tabs button[aria-selected="true"] {
  color: var(--text);
}

.workspace-tabs button[aria-selected="true"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.workspace-tabs button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: -4px;
  border-radius: 6px;
}

.workspace-tabs .workspace-tabs__conversation {
  display: none;
}

.workspace-command-center {
  display: grid;
  min-height: var(--workspace-command-height);
  grid-template-columns: minmax(0, 1.8fr) minmax(21rem, 0.92fr);
  background: var(--workspace-canvas);
}

.workspace-tab-panels {
  height: var(--workspace-command-height);
  min-width: 0;
  overflow: auto;
  border-right: 1px solid var(--line);
}

.workspace-tab-panels[hidden],
.workspace-panel[hidden],
.workspace-conversation[hidden] {
  display: none;
}

.workspace-panel {
  min-height: 100%;
  padding: clamp(1.35rem, 2.5vw, 2.2rem);
}

.workspace-overview-grid,
.workspace-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.8fr);
  gap: 1.15rem;
  align-items: start;
}

.workspace-overview-summary {
  min-width: 0;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--workspace-panel);
}

.workspace-overview-summary > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.workspace-overview-summary > header p,
.workspace-conversation > header p,
.workspace-overview-summary .workspace-request-summary > p {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.workspace-overview-summary h2,
.workspace-conversation h2,
.workspace-revisions h2 {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.workspace-overview-summary > header > span {
  flex: 0 0 auto;
  padding: 0.35rem 0.58rem;
  border: 1px solid color-mix(in srgb, var(--workspace-gold) 38%, var(--line));
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--workspace-gold) 8%, transparent);
  font-size: 0.64rem;
  font-weight: 700;
}

.workspace-overview-summary__expectation {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.workspace-request-summary {
  margin-top: 1.15rem;
  padding: 1rem 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.workspace-request-summary blockquote {
  margin: 0;
  font-family: var(--font-interface);
  font-size: 0.84rem;
  line-height: 1.62;
}

.workspace-card {
  min-width: 0;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--workspace-panel);
  box-shadow: none;
}

.workspace-card--team,
.workspace-card--wide {
  grid-column: 1 / -1;
}

.workspace-card--next {
  border-color: color-mix(in srgb, var(--workspace-gold) 28%, var(--line));
  color: var(--text);
  background: color-mix(in srgb, var(--workspace-gold) 5%, var(--workspace-panel));
}

.workspace-card--next > p:first-child,
.workspace-card--next > p:last-child {
  color: var(--muted);
}

.workspace-card h2 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.workspace-card > p:not(:first-child),
.workspace-card--next > p:last-child {
  font-size: 0.78rem;
  line-height: 1.55;
}

.workspace-features {
  min-height: 100%;
}

.workspace-features > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.workspace-features > header p {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.workspace-features > header h2 {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.workspace-features > header > span {
  flex: 0 0 auto;
  padding: 0.38rem 0.62rem;
  border: 1px solid color-mix(in srgb, var(--workspace-gold) 34%, var(--line));
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--workspace-gold) 7%, transparent);
  font-size: 0.64rem;
  font-weight: 700;
}

.workspace-features > p {
  max-width: 48rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.workspace-feature-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.5rem;
  margin-top: 1rem;
  border-bottom: 1px solid var(--line);
}

.workspace-feature-groups[hidden],
.workspace-features__empty[hidden],
.working-preview [data-preview-open][hidden] {
  display: none;
}

.workspace-feature-groups > section {
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.workspace-feature-groups h3 {
  margin: 0 0 0.78rem;
  font: 400 1.32rem/1.15 var(--font-editorial);
  letter-spacing: -0.025em;
}

.workspace-feature-groups ul {
  display: grid;
  gap: 0.62rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workspace-feature-groups li {
  display: grid;
  grid-template-columns: 1.05rem minmax(0, 1fr);
  gap: 0.52rem;
  align-items: start;
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.45;
}

.workspace-feature-groups li img {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.05rem;
}

html[data-theme="dark"] .workspace-feature-groups li img {
  filter: invert(1);
}

.workspace-features__empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  margin-top: 1.25rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--workspace-panel);
}

.workspace-features__empty > span {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--workspace-gold) 32%, var(--line));
  border-radius: 50%;
  color: var(--workspace-gold);
}

.workspace-features__empty svg {
  width: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.workspace-features__empty strong,
.workspace-features__empty p {
  display: block;
  margin: 0;
}

.workspace-features__empty p,
.workspace-features > small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.workspace-features > small {
  display: block;
  margin-top: 1rem;
}

.workspace-card--preview {
  grid-column: 1 / -1;
  overflow: hidden;
  padding: 0;
}

.working-preview > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
}

.working-preview > header p {
  margin: 0 0 0.3rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.working-preview > header h2,
.working-preview > header h3 {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.working-preview > header > span {
  flex: 0 0 auto;
  padding: 0.38rem 0.58rem;
  border: 1px solid color-mix(in srgb, var(--workspace-gold) 34%, var(--line));
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--workspace-gold) 7%, transparent);
  font-size: 0.62rem;
  font-weight: 700;
}

.working-preview > header > span[data-state="live"],
.working-preview > header > span[data-state="review-ready"] {
  border-color: color-mix(in srgb, #3d8b55 40%, var(--line));
  color: color-mix(in srgb, #3d8b55 86%, var(--text));
  background: color-mix(in srgb, #3d8b55 8%, transparent);
}

.working-preview__variations {
  display: grid;
  gap: 0.8rem;
  padding: 0 1.2rem 1rem;
}

.working-preview__variations[hidden] {
  display: none;
}

.working-preview__pages {
  display: grid;
  gap: 0.65rem;
  padding: 0 1.2rem 1rem;
}

.working-preview__pages[hidden] {
  display: none;
}

.working-preview__pages-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
}

.working-preview__pages-heading p,
.working-preview__pages-heading h3,
.working-preview__pages-heading h4 {
  margin: 0;
}

.working-preview__pages-heading p {
  margin-bottom: 0.15rem;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.working-preview__pages-heading h3,
.working-preview__pages-heading h4 {
  font: 500 0.82rem/1.2 var(--font-interface);
  letter-spacing: -0.01em;
}

.working-preview__pages-heading > span {
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 700;
}

.working-preview__page-list {
  display: flex;
  max-width: 100%;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0 0 0.2rem;
  scrollbar-width: thin;
}

.working-preview__page-list button {
  display: grid;
  min-width: 9.5rem;
  min-height: 3.35rem;
  flex: 0 0 auto;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.58rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 0.72rem;
  padding: 0.55rem 0.65rem;
  color: var(--text);
  background: var(--surface-strong);
  text-align: left;
}

.working-preview__page-list button[aria-pressed="true"] {
  border-color: var(--text);
  background: color-mix(in srgb, var(--text) 5%, var(--surface-strong));
  box-shadow: inset 3px 0 0 var(--text);
}

.working-preview__page-list button > span:first-child {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.working-preview__page-list button > span:last-child {
  display: grid;
  min-width: 0;
  gap: 0.08rem;
}

.working-preview__page-list small,
.working-preview__page-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.working-preview__page-list small {
  color: var(--muted);
  font-size: 0.56rem;
  text-transform: uppercase;
}

.working-preview__page-list strong {
  font-size: 0.7rem;
}

.working-preview__variations-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.15rem;
}

.working-preview__variations-heading p,
.working-preview__variations-heading h3 {
  margin: 0;
}

.working-preview__variations-heading p {
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.working-preview__variations-heading h3 {
  font-family: var(--font-editorial);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.working-preview__variations-heading > span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
}

.working-preview__variation-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.55rem;
}

.working-preview__variation-list button {
  display: grid;
  min-height: 4.5rem;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.62rem 0.72rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.72rem 0.78rem;
  color: var(--text);
  background: var(--surface-strong);
  text-align: left;
}

.working-preview__variation-list button[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--workspace-gold) 58%, var(--line));
  background: color-mix(in srgb, var(--workspace-gold) 7%, var(--surface-strong));
  box-shadow: inset 3px 0 0 var(--workspace-gold);
}

.working-preview__variation-list button > span:first-child {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.working-preview__variation-list button > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 0.15rem;
}

.working-preview__variation-list strong,
.working-preview__variation-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.working-preview__variation-list strong {
  font-size: 0.76rem;
}

.working-preview__variation-list small {
  color: var(--muted);
  font-size: 0.63rem;
  text-transform: capitalize;
}

.working-preview__variation-list button > span:last-child {
  grid-column: 2;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.24rem 0.42rem;
  color: var(--muted);
  background: var(--surface);
  font-size: 0.56rem;
  font-weight: 750;
}

.working-preview__variation-list button > span:last-child[data-state="selected"] {
  border-color: color-mix(in srgb, #3d8b55 40%, var(--line));
  color: color-mix(in srgb, #3d8b55 86%, var(--text));
  background: color-mix(in srgb, #3d8b55 8%, var(--surface));
}

.working-preview__selection {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
}

.working-preview__selection p {
  max-width: 64ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.5;
}

.working-preview__selection button {
  min-height: 2.55rem;
  flex: 0 0 auto;
  border: 1px solid var(--text);
  border-radius: 999px;
  padding: 0 0.9rem;
  color: var(--inverse);
  background: var(--text);
  font: 700 0.68rem/1 var(--font-interface);
}

.working-preview__selection button:disabled {
  border-color: color-mix(in srgb, #3d8b55 38%, var(--line));
  color: color-mix(in srgb, #3d8b55 86%, var(--text));
  background: color-mix(in srgb, #3d8b55 8%, var(--surface));
  cursor: default;
}

.working-preview__selection output {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.66rem;
}

.working-preview__selection output:empty {
  display: none;
}

.working-preview__browser {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #f3f3f1;
}

.working-preview__browser[data-kind="mobile-app"],
.working-preview__browser[data-kind="desktop-app"] {
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.95), rgba(232, 232, 228, 0.9) 62%, rgba(215, 215, 210, 0.96));
}

.working-preview__browser[data-kind="mobile-app"] .working-preview__bar,
.working-preview__browser[data-kind="desktop-app"] .working-preview__bar {
  display: none;
}

.working-preview__view-switcher {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.2rem;
  margin: 0 1rem 0.8rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.working-preview__view-switcher[hidden] {
  display: none;
}

.working-preview__view-switcher button {
  min-height: 2rem;
  border: 0;
  border-radius: 999px;
  padding: 0 0.78rem;
  color: var(--muted);
  background: transparent;
  font-size: 0.64rem;
  font-weight: 750;
}

.working-preview__view-switcher button[aria-pressed="true"] {
  color: var(--inverse);
  background: var(--text);
}

.working-preview__bar {
  display: flex;
  min-height: 2.15rem;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.8rem;
  border-bottom: 1px solid rgba(17, 17, 15, 0.12);
  color: #5d5d58;
  background: #e8e8e5;
  font: 600 0.63rem/1 var(--font-interface);
}

.working-preview__bar i {
  width: 0.48rem;
  height: 0.48rem;
  border: 1px solid rgba(17, 17, 15, 0.24);
  border-radius: 50%;
  background: #f9f9f7;
}

.working-preview__bar span {
  min-width: 0;
  margin-left: 0.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.working-preview__viewport {
  position: relative;
  height: clamp(19rem, 38vw, 31rem);
  background: #fff;
}

.working-preview__viewport iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.working-preview__viewport img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  object-position: top center;
  background: #f3f3f1;
}

.working-preview__viewport iframe[hidden],
.working-preview__viewport img[hidden],
.working-preview__loading[hidden] {
  display: none;
}

.working-preview__viewport.is-image {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.working-preview__browser[data-kind="mobile-app"] .working-preview__viewport,
.working-preview__browser[data-kind="desktop-app"] .working-preview__viewport {
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.2rem);
  overflow: hidden;
  background: transparent;
}

.working-preview__browser[data-kind="mobile-app"] .working-preview__viewport img,
.working-preview__browser[data-kind="desktop-app"] .working-preview__viewport img {
  width: auto;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  border: 1px solid rgba(17, 17, 15, 0.14);
  border-radius: 0.7rem;
  object-fit: contain;
  object-position: center;
  box-shadow: 0 1.2rem 3rem rgba(17, 17, 15, 0.18);
}

.working-preview__browser[data-kind="mobile-app"] .working-preview__viewport img {
  border-radius: 1.35rem;
}

.working-preview__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  color: #5d5d58;
  background: linear-gradient(110deg, #f7f7f5 25%, #ecece9 45%, #f7f7f5 65%);
  background-size: 220% 100%;
  font: 650 0.72rem/1.4 var(--font-interface);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.working-preview.is-loading .working-preview__loading {
  opacity: 1;
}

.workspace-card--preview > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem 1.1rem;
}

.workspace-card--preview > footer p,
.workspace-card--preview > footer small,
.working-preview--invite > p,
.working-preview--invite > small {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.workspace-card--preview > footer p {
  margin-bottom: 0.18rem;
  color: var(--text);
  font-size: 0.78rem;
}

.working-preview [data-preview-open] {
  display: inline-flex;
  min-height: 2.55rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0 0.9rem;
  border: 1px solid var(--text);
  border-radius: 0.45rem;
  color: var(--inverse);
  background: var(--text);
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: none;
}

.working-preview [data-preview-open] svg {
  width: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.working-preview--invite {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface-strong);
}

.working-preview--invite > header {
  padding: 1rem;
}

.working-preview--invite > header h3 {
  font-size: 1.55rem;
}

.working-preview--invite .working-preview__viewport {
  height: 16rem;
}

.working-preview--invite > p,
.working-preview--invite > small,
.working-preview--invite > a {
  margin: 0.85rem 1rem 0;
}

.working-preview--invite > small {
  margin-bottom: 1rem;
}

@media (prefers-reduced-motion: no-preference) {
  .working-preview.is-loading .working-preview__loading {
    animation: working-preview-shimmer 1.6s linear infinite;
  }
}

@keyframes working-preview-shimmer {
  to { background-position: -220% 0; }
}

.workspace-team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.workspace-team-list li {
  min-width: min(15rem, 100%);
  flex: 0 1 17rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--workspace-canvas);
}

.workspace-revisions {
  min-height: 100%;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--workspace-panel);
}

.workspace-revisions > header {
  padding: 0 0 1rem;
}

.workspace-revisions > header button,
.workspace-conversation > header button {
  min-height: 2.55rem;
  padding: 0 0.85rem;
  border: 1px solid var(--text);
  border-radius: 0.45rem;
  color: var(--inverse);
  background: var(--text);
  font-size: 0.68rem;
}

.workspace-conversation {
  display: grid;
  height: var(--workspace-command-height);
  min-width: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--workspace-canvas);
}

.workspace-conversation > header {
  display: flex;
  min-height: 4.6rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--line);
}

.workspace-conversation h2 {
  font-size: 1.55rem;
}

.workspace-conversation__scroll {
  min-height: 0;
  padding: 0 1.15rem;
  overflow: auto;
  overscroll-behavior: contain;
}

.activity-list {
  display: grid;
  gap: 0;
  padding: 0;
}

.activity-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.activity-list__mark {
  width: 2rem;
  height: 2rem;
  grid-row: 1 / span 2;
  overflow: hidden;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--workspace-panel);
  font-size: 0.5rem;
}

.activity-list__mark[data-actor="studio"] {
  border-color: #28251f;
  background: #080908;
}

.activity-list__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-list__mark[data-provider="stripe"] {
  border-color: #000;
  background: #000;
}

.activity-list__mark[data-provider="stripe"] img {
  width: calc(100% - 0.45rem);
  height: auto;
  object-fit: contain;
}

.activity-list__mark[data-icon="ongoing-care"] {
  color: var(--text);
  background: var(--workspace-panel);
}

.activity-list__mark[data-icon="ongoing-care"] img {
  width: 1.08rem;
  height: 1.08rem;
  object-fit: contain;
}

html[data-theme="dark"] .activity-list__mark[data-icon="ongoing-care"] img {
  filter: invert(1);
}

.activity-list strong {
  font-size: 0.73rem;
}

.activity-list p {
  margin-top: 0.28rem;
  font-size: 0.72rem;
  line-height: 1.55;
}

.activity-list time {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.58rem;
}

.workspace-conversation .workspace-list-empty {
  padding: 1.25rem 0;
}

.workspace-message-form {
  display: grid;
  gap: 0.7rem;
  padding: 1rem 1.15rem 1.1rem;
  border-top: 1px solid var(--line);
  background: var(--workspace-canvas);
}

.workspace-message-form textarea {
  min-height: 5.4rem;
  resize: vertical;
  border-radius: 0.65rem;
  background: var(--workspace-panel);
  font-size: 0.76rem;
}

.workspace-message-form > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.workspace-message-form > div span {
  font-size: 0.6rem;
}

.workspace-message-form button {
  min-height: 2.45rem;
  padding: 0 1.1rem;
  border-radius: 0.42rem;
}

.workspace-message-form output,
.workspace-card output {
  min-height: 0;
}

@media (max-width: 1180px) {
  .workspace-command-center {
    grid-template-columns: minmax(0, 1.5fr) minmax(19rem, 0.85fr);
  }

  .workspace-overview-grid,
  .workspace-panel-grid {
    grid-template-columns: 1fr;
  }

  .workspace-card--team,
  .workspace-card--wide,
  .workspace-card--preview {
    grid-column: auto;
  }

  .workspace-live-state small {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --workspace-command-height: auto;
  }

  .request-history {
    top: 4.25rem;
    padding-top: 0.5rem;
  }

  .request-history__utility {
    flex: 0 0 auto;
    gap: 0.75rem;
  }

  .request-history__utility > button {
    display: none;
  }

  .workspace-live-state {
    grid-template-columns: auto auto;
  }

  .workspace-live-state small {
    display: none;
  }

  .workspace-project {
    width: min(100% - 1.4rem, 56rem);
    padding-top: 1.45rem;
  }

  .workspace-intro h1 {
    font-size: clamp(1.75rem, 6vw, 2.55rem);
  }

  .request-history .project-timeline {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-auto-columns: 5.75rem;
    grid-auto-flow: column;
    grid-template-columns: none;
    justify-content: start;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .project-timeline::-webkit-scrollbar {
    display: none;
  }

  .project-timeline::before {
    right: 2.875rem;
    left: 2.875rem;
    width: 40.25rem;
  }

  .project-timeline li {
    min-width: 5.75rem;
    scroll-snap-align: center;
  }

  .workspace-tabs {
    top: auto;
    gap: 1.5rem;
    padding-inline: 0.15rem;
    scroll-margin-top: 4.25rem;
  }

  .workspace-tabs .workspace-tabs__conversation {
    display: block;
  }

  .workspace-command-center {
    display: block;
    min-height: 31rem;
  }

  .workspace-tab-panels {
    height: auto;
    min-height: 31rem;
    overflow: visible;
    border-right: 0;
  }

  .workspace-panel {
    min-height: 31rem;
    padding: 1.1rem 0;
  }

  .workspace-conversation {
    height: min(39rem, calc(100dvh - 10.5rem));
    min-height: 31rem;
    border: 1px solid var(--line);
    border-top: 0;
  }
}

@media (max-width: 680px) {
  .working-preview__variations,
  .working-preview__pages {
    padding-inline: 0.85rem;
  }

  .working-preview__page-list button {
    min-width: min(11rem, 72vw);
    scroll-snap-align: start;
  }

  .working-preview__page-list {
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
  }

  .working-preview__variation-list {
    grid-auto-columns: min(17rem, 82vw);
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 0.25rem;
    scroll-snap-type: inline proximity;
    scrollbar-width: thin;
  }

  .working-preview__variation-list button {
    scroll-snap-align: start;
  }

  .working-preview__selection {
    align-items: stretch;
    flex-direction: column;
  }

  .working-preview__selection button {
    width: 100%;
  }

  .workspace-card--preview > footer {
    align-items: stretch;
    flex-direction: column;
  }

  .working-preview [data-preview-open] {
    width: 100%;
  }

  .working-preview__viewport,
  .working-preview--invite .working-preview__viewport {
    height: min(22rem, 50dvh);
    min-height: 16rem;
  }
}

@media (max-width: 640px) {
  .workspace-project {
    width: min(100% - 1rem, 42rem);
  }

  .project-switcher > summary {
    width: 2rem;
    height: 2rem;
  }

  .project-switcher__panel {
    position: fixed;
    top: 7.2rem;
    right: 0.5rem;
    left: 0.5rem;
    width: auto;
  }

  .workspace-live-state > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .workspace-live-state i {
    width: 0.55rem;
    height: 0.55rem;
  }

  .workspace-intro {
    position: relative;
    margin-bottom: 0.25rem;
  }

  .workspace-intro .request-history__utility {
    position: absolute;
    top: 0.25rem;
    right: 0;
  }

  .workspace-intro__identity {
    width: 100%;
    padding-right: 1.3rem;
  }

  .workspace-tabs {
    top: auto;
    scroll-margin-top: 4.25rem;
  }

  .workspace-intro h1 {
    font-size: clamp(1.65rem, 8vw, 2.3rem);
  }

  .workspace-intro > div > p:last-child {
    font-size: 0.72rem;
  }

  .project-timeline {
    margin-inline: -0.5rem;
    padding-inline: 0.5rem;
  }

  .workspace-next-step {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0.8rem;
    margin-block: 0.55rem 0.7rem;
    padding: 0.9rem;
  }

  .workspace-next-step > div {
    gap: 0.15rem;
  }

  .workspace-next-step > button {
    width: 100%;
    max-width: none;
    white-space: normal;
  }

  .workspace-tabs {
    margin-inline: -0.5rem;
    padding-inline: 0.5rem;
  }

  .workspace-panel {
    padding-block: 0.8rem;
  }

  .workspace-overview-summary,
  .workspace-card,
  .workspace-revisions {
    padding: 1rem;
    border-radius: 0.7rem;
  }

  .workspace-overview-summary > header {
    align-items: start;
    flex-direction: column;
  }

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

  .roadmap-list,
  .workspace-roadmap-dialog__type {
    grid-template-columns: 1fr;
  }

  .workspace-roadmap > header {
    align-items: stretch;
    flex-direction: column;
  }

  .workspace-roadmap > header button {
    width: 100%;
  }

  .workspace-roadmap__summary {
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
  }

  .workspace-features > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-card__button-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .workspace-conversation > header,
  .workspace-conversation__scroll,
  .workspace-message-form {
    padding-right: 0.9rem;
    padding-left: 0.9rem;
  }

  .workspace-conversation > header button {
    min-height: 2.4rem;
    padding-inline: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-switcher > summary > img,
  .workspace-tabs button::after {
    transition: none;
  }
}

@media (forced-colors: active) {
  .request-history,
  .project-switcher__panel,
  .workspace-command-center,
  .workspace-overview-summary,
  .workspace-conversation,
  .workspace-card,
  .workspace-revisions,
  .project-timeline__icon {
    border: 1px solid CanvasText;
  }
}

/* Selected open records direction — authoritative final cascade. */
.workspace-panel--appointments .workspace-appointments__request[hidden] { display: none; }
.workspace-panel--overview .workspace-overview-grid { grid-template-columns: 1fr; gap: 0; }
.workspace-panel--overview .workspace-overview-summary,
.workspace-panel--overview .workspace-card { padding: 0; border: 0; border-radius: 0; background: transparent; }
.workspace-panel--overview .workspace-overview-summary { padding-bottom: 1.5rem; }
.workspace-panel--overview .workspace-overview-summary h2 { font-size: clamp(1.9rem, 3vw, 2.65rem); }
.workspace-panel--overview .workspace-request-summary { display: grid; grid-template-columns: minmax(8rem, .28fr) minmax(0, 1fr); gap: .9rem 1.5rem; }
.workspace-panel--overview .workspace-request-summary blockquote,
.workspace-panel--overview .workspace-request-summary details { grid-column: 2; }
.workspace-panel--overview .workspace-card { grid-column: 1 / -1; padding-block: 1.5rem; border-top: 1px solid var(--line); }
.workspace-panel--overview .workspace-card--team { display: grid; grid-template-columns: minmax(12rem, .38fr) minmax(0, 1fr); align-items: start; gap: 0 1.5rem; }
.workspace-panel--overview .workspace-card--team > header,
.workspace-panel--overview .workspace-card--team > p { grid-column: 1; }
.workspace-panel--overview .workspace-card--team .workspace-team-list,
.workspace-panel--overview .workspace-card--team .workspace-list-empty { grid-column: 2; grid-row: 1 / span 3; margin: 0; }

.workspace-panel--appointments .workspace-appointments__header { padding-bottom: 0; border-bottom: 0; }
.workspace-panel--appointments .workspace-appointments__layout { display: flex; flex-direction: column; gap: 0; padding-top: 1.45rem; }
.workspace-panel--appointments .workspace-appointments__request,
.workspace-panel--appointments .workspace-appointments__records { width: 100%; padding: 1.1rem 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.workspace-panel--appointments .workspace-appointments__request { position: static; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.workspace-panel--appointments .workspace-appointments__request button { width: auto; min-width: 11rem; margin: 0; }
.workspace-panel--appointments .workspace-appointment-list { gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: .68rem; }
.workspace-panel--appointments .workspace-appointment { padding: 1rem; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.workspace-panel--appointments .workspace-appointment:last-child { border-bottom: 0; }
.workspace-panel--appointments .workspace-appointment[data-status="scheduled"] { border-color: var(--line); box-shadow: inset 3px 0 0 var(--workspace-gold); }
.workspace-panel--appointments .workspace-appointment > header { align-items: center; }
.workspace-panel--appointments .workspace-appointment > header h4 { font-family: var(--font-interface); font-size: .86rem; font-weight: 650; letter-spacing: -.01em; }
.workspace-panel--appointments .workspace-appointment > header > span { min-width: 5.5rem; border: 0; text-align: right; }
.workspace-panel--appointments .workspace-appointment__details { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.workspace-panel--appointments .workspace-appointment-choice fieldset { grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); }
.workspace-panel--appointments .workspace-appointment-choice fieldset label > span { min-height: 4.55rem; text-align: center; }
.workspace-panel--appointments .workspace-appointment-choice__contact { grid-template-columns: minmax(12rem, .55fr) minmax(15rem, 1fr); }

@media (max-width: 760px) {
  .workspace-panel--overview .workspace-request-summary,
  .workspace-panel--overview .workspace-card--team { display: block; }
  .workspace-panel--overview .workspace-card--team .workspace-team-list,
  .workspace-panel--overview .workspace-card--team .workspace-list-empty { margin-top: .65rem; }
  .workspace-panel--overview .workspace-request-summary blockquote,
  .workspace-panel--overview .workspace-request-summary details { margin-top: .65rem; }
  .workspace-panel--appointments .workspace-appointments__request { align-items: stretch; flex-direction: column; gap: .9rem; }
  .workspace-panel--appointments .workspace-appointments__request button { width: 100%; }
  .workspace-panel--appointments .workspace-appointment__details,
  .workspace-panel--appointments .workspace-appointment-choice__contact { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .workspace-panel--appointments .workspace-appointments__header { gap: .35rem; }
  .workspace-panel--appointments .workspace-appointments__section-head,
  .workspace-panel--appointments .workspace-appointment > header { align-items: flex-start; flex-direction: row; }
  .workspace-panel--appointments .workspace-appointment > header > span { min-width: 0; }
  .workspace-panel--appointments .workspace-appointment-choice fieldset { display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .workspace-panel--appointments .workspace-appointment-choice fieldset legend { flex: 0 0 100%; }
  .workspace-panel--appointments .workspace-appointment-choice fieldset label { min-width: 8.5rem; scroll-snap-align: start; }
}

/* Keep records readable before the permanent conversation rail has enough room. */
@media (max-width: 1240px) {
  :root {
    --workspace-command-height: auto;
  }

  .request-history {
    position: static;
  }

  .workspace-tabs .workspace-tabs__conversation {
    display: block;
  }

  .workspace-command-center {
    display: block;
    min-height: 31rem;
  }

  .workspace-tab-panels {
    height: auto;
    min-height: 31rem;
    overflow: visible;
    border-right: 0;
  }

  .workspace-panel {
    min-height: 31rem;
    padding: 1.35rem 0;
  }

  .workspace-conversation {
    height: min(39rem, calc(100dvh - 10.5rem));
    min-height: 31rem;
    border: 1px solid var(--line);
    border-top: 0;
  }
}
