@import url("https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700&display=swap");

@font-face {
  font-family: "Thamanyah Sans";
  src: url("/assets/fonts/thmanyahsans-Regular.otf") format("opentype");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "Thamanyah Sans";
  src: url("/assets/fonts/thmanyahsans-Bold.otf") format("opentype");
  font-display: swap;
  font-weight: 700;
}

:root {
  color-scheme: dark;
  --deep-navy: #071018;
  --navy: #0e1a26;
  --navy-raised: #142231;
  --blue: #5a7da6;
  --light-blue: #9cb9c8;
  --deep-blue: #315a80;
  --slate: #2a333c;
  --steel: #a7b0ba;
  --fog: #f2f4f7;
  --white: #fff;
  --danger: #df786f;
  --warning: #dbb36a;
  --success: #78b69a;
  --line: rgba(156, 185, 200, 0.16);
  --line-strong: rgba(156, 185, 200, 0.3);
  --radius-sm: 9px;
  --radius: 14px;
  --radius-lg: 20px;
  --rail-width: 236px;
  --shadow-dialog: 0 36px 100px rgba(0, 0, 0, 0.52);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--deep-navy);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--fog);
  background:
    radial-gradient(circle at 86% 2%, rgba(90, 125, 166, 0.12), transparent 26rem),
    var(--deep-navy);
  font-family: "Satoshi", Arial, sans-serif;
  font-size: 15px;
}

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

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

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: var(--deep-navy);
  background: var(--light-blue);
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  margin: 0;
  color: var(--light-blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 140ms cubic-bezier(0.23, 1, 0.32, 1), opacity 140ms ease;
}

.button--primary {
  color: var(--deep-navy);
  background: var(--light-blue);
}

.button--light {
  color: var(--deep-navy);
  background: var(--fog);
}

.button--quiet {
  color: var(--fog);
  border-color: var(--line-strong);
  background: transparent;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.button:not(:disabled):active {
  transform: scale(0.97);
}

:focus-visible {
  outline: 3px solid var(--light-blue);
  outline-offset: 3px;
}

.login-view {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
}

.login-mark {
  display: grid;
  min-height: 100vh;
  place-items: center;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(rgba(7, 16, 24, 0.2), rgba(7, 16, 24, 0.9)),
    url("/assets/images/dark-water-cta-web.webp") center / cover;
}

.login-mark img {
  width: min(250px, 48%);
}

.login-card {
  display: grid;
  width: min(520px, calc(100% - 48px));
  align-content: center;
  justify-items: start;
  gap: 20px;
  margin: auto;
}

.login-card h1 {
  max-width: 8ch;
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.88;
}

.login-card > p:not(.eyebrow) {
  max-width: 52ch;
  margin: 0;
  color: var(--steel);
  font-size: 1.05rem;
  line-height: 1.65;
}

.login-card .button {
  margin-top: 12px;
}

.login-card .login-note {
  font-size: 0.78rem !important;
}

.studio {
  display: grid;
  min-height: 100vh;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
}

.rail {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 24px 18px 18px;
  border-right: 1px solid var(--line);
  background: rgba(7, 16, 24, 0.88);
  backdrop-filter: blur(18px);
}

.rail-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 24px;
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
}

.rail-brand img {
  width: 88px;
}

.rail-brand span {
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
  color: var(--steel);
  font-size: 0.8rem;
}

.rail-nav {
  display: grid;
  gap: 4px;
  margin-top: 18px;
}

.rail-link,
.editor-index__item {
  display: grid;
  width: 100%;
  min-height: 44px;
  grid-template-columns: 28px 1fr;
  align-items: center;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--steel);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.rail-link span,
.editor-index__item span {
  color: #71808d;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}

.rail-link:hover,
.editor-index__item:hover {
  color: var(--fog);
  background: rgba(156, 185, 200, 0.06);
}

.rail-link.is-active {
  color: var(--white);
  background: rgba(90, 125, 166, 0.17);
  box-shadow: inset 2px 0 var(--light-blue);
}

.rail-foot {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding: 16px 8px 4px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

.rail-foot a {
  color: var(--steel);
  text-underline-offset: 3px;
}

.connection-state {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--steel);
}

.connection-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(120, 182, 154, 0.12);
}

.workspace {
  min-width: 0;
}

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  min-height: 88px;
  align-items: center;
  gap: 24px;
  padding: 16px 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 24, 0.84);
  backdrop-filter: blur(18px);
}

.topbar h1 {
  margin: 4px 0 0;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.save-state {
  margin-right: 6px;
  color: var(--steel);
  font-size: 0.78rem;
}

.mobile-menu {
  display: none;
}

.menu-scrim {
  display: none;
}

.workspace-body {
  width: min(1380px, 100%);
  margin: 0 auto;
  padding: 32px;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(2, minmax(180px, 0.35fr));
  gap: 16px;
}

.focus-card,
.metric-card,
.queue-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(14, 26, 38, 0.78);
}

.focus-card {
  position: relative;
  display: grid;
  min-height: 300px;
  grid-row: span 2;
  align-content: space-between;
  justify-items: start;
  gap: 28px;
  overflow: hidden;
  padding: 28px;
  background:
    radial-gradient(circle at 94% 2%, rgba(156, 185, 200, 0.18), transparent 20rem),
    linear-gradient(145deg, #14283b, #0e1a26 72%);
}

.focus-card h2 {
  max-width: 12ch;
  margin: 12px 0;
  font-size: clamp(2.1rem, 4vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.focus-card p:not(.eyebrow) {
  max-width: 60ch;
  color: #c0c9d1;
  line-height: 1.6;
}

.waterline {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  overflow: hidden;
  background: rgba(156, 185, 200, 0.1);
}

.waterline span {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--deep-blue), var(--light-blue));
}

.metric-card {
  display: grid;
  min-height: 142px;
  align-content: center;
  padding: 22px;
}

.metric-card strong {
  margin-top: 16px;
  font-size: 2.8rem;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.metric-card span {
  color: var(--steel);
}

.queue-card {
  grid-column: 2 / -1;
  padding: 24px;
}

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

.section-heading h2,
.section-heading h3 {
  margin: 7px 0 0;
  font-size: 1.35rem;
  font-weight: 500;
}

.text-button {
  appearance: none;
  padding: 4px;
  border: 0;
  color: var(--light-blue);
  background: transparent;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.queue-list {
  display: grid;
  margin-top: 18px;
}

.queue-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.queue-item button {
  border: 0;
  color: var(--fog);
  background: none;
  cursor: pointer;
  font-weight: 500;
  text-align: left;
}

.queue-item p {
  margin: 4px 0 0;
  color: var(--steel);
  font-size: 0.8rem;
}

.proof-number {
  color: var(--light-blue);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.list-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.search-field {
  flex: 1;
}

.search-field input,
.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--fog);
  background: rgba(7, 16, 24, 0.66);
}

.search-field input {
  min-height: 44px;
  padding: 10px 14px;
}

.filter-group {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.filter-chip {
  min-height: 34px;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  color: var(--steel);
  background: transparent;
  cursor: pointer;
}

.filter-chip.is-active {
  color: var(--deep-navy);
  background: var(--fog);
}

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

.project-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.3fr) minmax(160px, 0.7fr) 120px 100px auto;
  gap: 20px;
  align-items: center;
  min-height: 86px;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
}

.project-row__identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.project-thumb {
  width: 76px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--navy);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-thumb--empty {
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 1.4rem;
}

.project-row h2 {
  overflow: hidden;
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-row p {
  margin: 4px 0 0;
  color: var(--steel);
  font-size: 0.78rem;
}

.status-pill {
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--steel);
  font-size: 0.72rem;
  text-transform: capitalize;
}

.status-pill[data-status="published"] {
  color: #a9d4bd;
  border-color: rgba(120, 182, 154, 0.42);
}

.row-button,
.icon-button {
  min-width: 40px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--light-blue);
  background: transparent;
  cursor: pointer;
}

.placeholder-view {
  display: grid;
  min-height: 58vh;
  place-content: center;
  justify-items: start;
}

.placeholder-view h2 {
  max-width: 14ch;
  margin: 12px 0;
  font-size: clamp(2.6rem, 7vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.placeholder-view > p:last-child {
  max-width: 58ch;
  color: var(--steel);
  line-height: 1.7;
}

.seo-workspace {
  display: grid;
  gap: 18px;
}

.seo-hero {
  display: flex;
  min-height: 230px;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 18%, rgba(156, 185, 200, 0.2), transparent 16rem),
    linear-gradient(145deg, #14283b, #0e1a26 72%);
}

.seo-hero h2 {
  max-width: 15ch;
  margin: 10px 0 14px;
  font-size: clamp(2.2rem, 4.8vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.seo-hero > div > p:last-child {
  max-width: 70ch;
  margin: 0;
  color: #c0c9d1;
  line-height: 1.55;
}

.seo-score {
  --score: 0%;
  display: grid;
  width: 132px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, var(--navy) 82%, transparent 83%),
    conic-gradient(var(--light-blue) var(--score), rgba(156, 185, 200, 0.14) 0);
}

.seo-score strong {
  font-size: 2.3rem;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.seo-score span {
  color: var(--steel);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.seo-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 26, 38, 0.72);
}

.seo-metrics article {
  display: grid;
  gap: 5px;
  padding: 20px;
  border-right: 1px solid var(--line);
}

.seo-metrics article:last-child {
  border-right: 0;
}

.seo-metrics strong {
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.seo-metrics span {
  color: var(--steel);
  font-size: 0.75rem;
}

.seo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.seo-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--navy);
}

.seo-tabs button {
  min-height: 36px;
  padding: 7px 13px;
  border: 0;
  border-radius: 999px;
  color: var(--steel);
  background: transparent;
  cursor: pointer;
}

.seo-tabs button.is-active {
  color: var(--deep-navy);
  background: var(--light-blue);
}

.seo-filters {
  display: flex;
  gap: 8px;
}

.seo-filters .search-field input,
.seo-filters select {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--fog);
  background: var(--navy);
}

.seo-filters select {
  cursor: pointer;
}

.seo-panel {
  min-height: 260px;
}

.gsc-command,
.gsc-current,
.gsc-guidance,
.gsc-list,
.gsc-sitemap,
.gsc-index-list,
.gsc-connection-state,
.gsc-loading {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 26, 38, 0.76);
}

.gsc-command {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 22px;
}

.gsc-command h3,
.gsc-current h3,
.gsc-guidance h3,
.gsc-list h3,
.gsc-sitemap h3,
.gsc-connection-state h3,
.gsc-loading h3 {
  margin: 6px 0;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.gsc-command p:last-child,
.gsc-guidance p:last-child,
.gsc-list__heading p,
.gsc-connection-state p:last-child,
.gsc-loading p:last-child {
  margin: 0;
  color: var(--steel);
  line-height: 1.5;
}

.gsc-controls,
.gsc-command__actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
}

.gsc-command__actions {
  align-items: center;
}

.gsc-range {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.gsc-range button {
  min-height: 34px;
  padding: 7px 11px;
  border: 0;
  border-radius: 999px;
  color: var(--steel);
  background: transparent;
  cursor: pointer;
}

.gsc-range button.is-active {
  color: var(--deep-navy);
  background: var(--light-blue);
}

.gsc-controls label {
  display: grid;
  gap: 5px;
  color: var(--steel);
  font-size: 0.72rem;
}

.gsc-controls select {
  min-height: 42px;
  padding: 8px 32px 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--fog);
  background: var(--navy);
}

.gsc-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.gsc-metric {
  display: grid;
  min-height: 130px;
  align-content: space-between;
  gap: 10px;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: rgba(7, 16, 24, 0.34);
}

.gsc-metric:last-child {
  border-right: 0;
}

.gsc-metric > span,
.gsc-metric small {
  color: var(--steel);
  font-size: 0.76rem;
}

.gsc-metric strong {
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  font-weight: 400;
  letter-spacing: -0.055em;
}

.gsc-metric small[data-trend="up"] {
  color: #a9d4bd;
}

.gsc-metric small[data-trend="down"] {
  color: #e8c98e;
}

.gsc-current {
  margin-top: 14px;
  padding: 20px;
  overflow: hidden;
}

.gsc-section-heading,
.gsc-list__heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.gsc-section-heading > small,
.gsc-list__heading > span {
  color: var(--steel);
  font-size: 0.72rem;
}

.gsc-chart {
  margin-top: 12px;
}

.gsc-chart svg {
  display: block;
  width: 100%;
  min-width: 560px;
  overflow: visible;
}

.gsc-chart__baseline {
  stroke: var(--line-strong);
  stroke-width: 1;
}

.gsc-chart__clicks,
.gsc-chart__impressions {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.gsc-chart__clicks {
  stroke: var(--fog);
  stroke-width: 2.5;
}

.gsc-chart__impressions {
  stroke: var(--light-blue);
  stroke-width: 5;
  opacity: 0.46;
}

.gsc-chart__legend {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-top: 10px;
  color: var(--steel);
  font-size: 0.72rem;
}

.gsc-chart__legend small {
  margin-left: auto;
}

.gsc-chart__legend span::before {
  display: inline-block;
  width: 16px;
  height: 2px;
  margin-right: 7px;
  content: "";
  vertical-align: middle;
  background: var(--fog);
}

.gsc-chart__legend span[data-series="impressions"]::before {
  height: 4px;
  background: var(--light-blue);
  opacity: 0.6;
}

.gsc-guidance {
  position: relative;
  margin-top: 14px;
  padding: 20px 20px 20px 26px;
  overflow: hidden;
}

.gsc-guidance::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
  background: var(--light-blue);
}

.gsc-guidance p:last-child {
  max-width: 74ch;
}

.gsc-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.gsc-list {
  overflow: hidden;
}

.gsc-list__heading {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.gsc-list__heading h3,
.gsc-list__heading p {
  margin: 0;
}

.gsc-list__heading p {
  margin-top: 5px;
  font-size: 0.78rem;
}

.gsc-list__rows article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}

.gsc-list__rows article:last-child {
  border-bottom: 0;
}

.gsc-list__rows article > div {
  min-width: 0;
}

.gsc-list__rows strong,
.gsc-list__rows small,
.gsc-list__rows span {
  display: block;
}

.gsc-list__rows strong {
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gsc-list__rows small,
.gsc-list__rows span {
  color: var(--steel);
  font-size: 0.7rem;
}

.gsc-list__rows article > div:last-child {
  text-align: right;
}

.gsc-sitemap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-top: 14px;
  padding: 20px;
}

.gsc-sitemap h3 {
  overflow-wrap: anywhere;
}

.gsc-sitemap dl,
.gsc-index-row dl {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--line);
}

.gsc-sitemap dl div,
.gsc-index-row dl div {
  min-width: 0;
  padding: 12px;
  background: var(--navy);
}

.gsc-sitemap dt,
.gsc-index-row dt {
  color: var(--steel);
  font-size: 0.68rem;
}

.gsc-sitemap dd,
.gsc-index-row dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}

.gsc-index-list {
  margin-top: 14px;
  overflow: hidden;
}

.gsc-index-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.gsc-index-row:last-child {
  border-bottom: 0;
}

.gsc-index-row[data-state="ready"] .signal-dot {
  background: var(--success);
}

.gsc-index-row[data-state="warning"] .signal-dot {
  background: var(--warning);
}

.gsc-index-row[data-state="error"] .signal-dot {
  background: var(--danger);
}

.gsc-index-row__main,
.gsc-index-row__status {
  min-width: 0;
}

.gsc-index-row__main strong,
.gsc-index-row__main small,
.gsc-index-row__status small {
  display: block;
}

.gsc-index-row__main strong {
  font-weight: 500;
}

.gsc-index-row__main small,
.gsc-index-row__status small {
  overflow: hidden;
  color: var(--steel);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gsc-index-row__status {
  text-align: right;
}

.gsc-index-row__status small {
  margin-top: 5px;
}

.gsc-index-row details {
  grid-column: 2 / -1;
  padding-top: 2px;
}

.gsc-index-row summary {
  width: fit-content;
  color: var(--light-blue);
  font-size: 0.75rem;
  cursor: pointer;
}

.gsc-index-row dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 12px 0;
}

.gsc-connection-state,
.gsc-loading {
  display: grid;
  min-height: 260px;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  gap: 20px;
  padding: 28px;
}

.gsc-connection-state__mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--light-blue);
  font-size: 0.72rem;
}

.gsc-connection-state .button {
  margin-top: 16px;
}

.gsc-loading__line {
  width: 4px;
  min-height: 92px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, var(--light-blue), transparent);
  background-size: 100% 200%;
  animation: gsc-current 1.2s linear infinite;
}

.gsc-inline-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(219, 179, 106, 0.35);
  border-radius: var(--radius-sm);
  color: #e8c98e;
  background: rgba(219, 179, 106, 0.08);
}

@keyframes gsc-current {
  to { background-position: 0 200%; }
}

.seo-page-list,
.seo-card,
.seo-opportunity {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 26, 38, 0.76);
}

.seo-page-list {
  overflow: hidden;
}

.seo-page-row {
  display: grid;
  width: 100%;
  grid-template-columns: 48px minmax(0, 1fr) 50px 100px;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.seo-page-row:last-child {
  border-bottom: 0;
}

.seo-page-row__score,
.seo-detail-score {
  display: grid;
  width: 44px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--steel);
  font-weight: 700;
}

[data-tone="critical"] {
  color: #f3a39c;
  border-color: rgba(223, 120, 111, 0.48);
}

[data-tone="warning"] {
  color: #e8c98e;
  border-color: rgba(219, 179, 106, 0.5);
}

[data-tone="ready"] {
  color: #a9d4bd;
  border-color: rgba(120, 182, 154, 0.5);
}

.seo-page-row__main {
  min-width: 0;
}

.seo-page-row__main strong,
.seo-page-row__main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seo-page-row__main strong {
  font-weight: 500;
}

.seo-page-row__main small,
.seo-page-row__locale,
.seo-page-row__issues {
  color: var(--steel);
  font-size: 0.76rem;
}

.seo-page-row__locale,
.seo-page-row__issues {
  justify-self: end;
}

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

.seo-card {
  overflow: hidden;
}

.seo-card__heading {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.seo-card__heading h3 {
  margin: 8px 0 0;
  font-size: 1.15rem;
  font-weight: 500;
}

.seo-finding,
.seo-intent {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.seo-finding:last-child,
.seo-intent:last-child {
  border-bottom: 0;
}

.seo-finding strong,
.seo-intent strong {
  font-weight: 500;
}

.seo-finding p,
.seo-intent p {
  margin: 6px 0;
  color: var(--steel);
  line-height: 1.5;
}

.seo-finding small {
  color: var(--light-blue);
}

.seo-finding[data-severity="critical"] {
  box-shadow: inset 3px 0 var(--danger);
}

.seo-finding[data-severity="warning"] {
  box-shadow: inset 3px 0 var(--warning);
}

.seo-finding .text-button {
  margin-top: 8px;
}

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

.seo-opportunity {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.seo-opportunity > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.seo-opportunity > div:first-child small,
.seo-opportunity > small,
.seo-opportunity p {
  color: var(--steel);
}

.seo-opportunity h3,
.seo-opportunity p {
  margin: 0;
}

.seo-opportunity h3 {
  font-size: 1.2rem;
  font-weight: 500;
}

.seo-opportunity p {
  line-height: 1.55;
}

.seo-opportunity dl,
.seo-technical dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.seo-opportunity dl div,
.seo-technical dl div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
}

.seo-opportunity dt,
.seo-technical dt {
  color: var(--steel);
  font-size: 0.75rem;
}

.seo-opportunity dd,
.seo-technical dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.seo-empty {
  padding: 28px 20px;
  color: var(--steel);
}

.seo-empty strong {
  color: var(--fog);
  font-weight: 500;
}

.seo-empty p {
  max-width: 56ch;
  margin: 6px 0 0;
  line-height: 1.5;
}

.seo-limitations {
  color: var(--steel);
}

.seo-limitations details {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.seo-limitations summary {
  color: var(--light-blue);
  cursor: pointer;
}

.seo-limitations ul {
  margin-bottom: 0;
  line-height: 1.65;
}

.seo-dialog {
  width: min(780px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--fog);
  background: var(--deep-navy);
  box-shadow: var(--shadow-dialog);
}

.seo-dialog::backdrop {
  background: rgba(3, 9, 14, 0.8);
  backdrop-filter: blur(6px);
}

.seo-dialog__frame {
  display: grid;
  max-height: calc(100vh - 32px);
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.seo-dialog__body {
  display: grid;
  gap: 24px;
  padding: 24px;
  overflow: auto;
}

.seo-detail-summary {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.seo-detail-score {
  width: 62px;
  font-size: 1.3rem;
}

.seo-detail-summary p {
  margin: 6px 0 0;
  color: var(--steel);
  line-height: 1.5;
}

.seo-components {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.seo-components div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 12px;
  color: var(--steel);
  font-size: 0.78rem;
}

.seo-components strong {
  color: var(--fog);
}

.seo-components i {
  display: block;
  height: 4px;
  grid-column: 1 / -1;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--light-blue) var(--value), rgba(156, 185, 200, 0.12) var(--value));
}

.seo-technical {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.seo-technical summary {
  cursor: pointer;
}

.publishing-view {
  display: grid;
  gap: 18px;
}

.release-hero {
  display: flex;
  min-height: 210px;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 4%, rgba(156, 185, 200, 0.16), transparent 22rem),
    linear-gradient(145deg, #14283b, #0e1a26 72%);
}

.release-hero h2 {
  max-width: 13ch;
  margin: 10px 0 14px;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.release-hero [role="status"] {
  max-width: 68ch;
  margin: 0;
  color: #c0c9d1;
  line-height: 1.6;
}

.release-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.release-waterline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 26, 38, 0.7);
}

.release-waterline li {
  position: relative;
  display: grid;
  min-height: 92px;
  align-content: center;
  gap: 3px;
  padding: 16px 20px 18px;
  border-right: 1px solid var(--line);
}

.release-waterline li:last-child {
  border-right: 0;
}

.release-waterline li::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(156, 185, 200, 0.08);
  content: "";
}

.release-waterline li[data-state="ready"]::after,
.release-waterline li[data-state="complete"]::after {
  background: linear-gradient(90deg, var(--deep-blue), var(--light-blue));
}

.release-waterline li[data-state="blocked"]::after {
  background: rgba(219, 179, 106, 0.62);
}

.release-waterline span,
.release-waterline small {
  color: var(--steel);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.release-waterline strong {
  font-size: 0.92rem;
  font-weight: 500;
}

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

.release-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(14, 26, 38, 0.78);
}

.release-card--summary,
.release-card--history {
  grid-column: 1 / -1;
}

.release-card > h3 {
  margin: 8px 0 22px;
  font-size: 1.35rem;
  font-weight: 500;
}

.release-state-pill {
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--steel);
  font-size: 0.72rem;
}

.release-state-pill[data-state="ready"] {
  color: #b9ddca;
  border-color: rgba(120, 182, 154, 0.42);
}

.release-state-pill[data-state="blocked"],
.release-state-pill[data-state="failed"] {
  color: #ead5ab;
  border-color: rgba(219, 179, 106, 0.42);
}

.release-facts,
.confirm-summary dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.release-facts > div,
.confirm-summary dl > div {
  min-width: 0;
  padding: 14px;
  background: var(--navy);
}

.release-facts dt,
.confirm-summary dt {
  color: var(--steel);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.release-facts dd,
.confirm-summary dd {
  overflow: hidden;
  margin: 7px 0 0;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
}

.affected-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.affected-list span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #cbd2d8;
  background: rgba(7, 16, 24, 0.44);
  font-size: 0.76rem;
}

.release-disclosure {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.release-disclosure summary {
  color: var(--light-blue);
  cursor: pointer;
}

.file-list {
  display: grid;
  gap: 0;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.file-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.file-list code,
.confirm-summary code {
  overflow-wrap: anywhere;
}

.file-list span {
  color: var(--steel);
  font-size: 0.74rem;
  text-transform: capitalize;
}

.release-signal,
.check-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.signal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--steel);
  box-shadow: 0 0 0 4px rgba(167, 176, 186, 0.1);
}

[data-state="success"] > .signal-dot,
.check-row[data-state="passed"] > .signal-dot {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(120, 182, 154, 0.12);
}

[data-state="failure"] > .signal-dot,
.check-row[data-state="failed"] > .signal-dot,
.check-row[data-state="cancelled"] > .signal-dot {
  background: var(--danger);
}

.check-row[data-state="pending"] > .signal-dot,
.check-row[data-state="warnings"] > .signal-dot {
  background: var(--warning);
}

.release-signal p,
.check-row p,
.history-row p,
.release-history > p,
.check-list > p {
  margin: 4px 0 0;
  color: var(--steel);
  font-size: 0.78rem;
  line-height: 1.45;
}

.check-list,
.release-history {
  display: grid;
  margin-top: 18px;
}

.check-row,
.history-row {
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.check-row > a,
.history-row a {
  color: var(--light-blue);
  font-size: 0.76rem;
  text-underline-offset: 3px;
}

.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.history-row > div:last-child {
  display: flex;
  align-items: center;
  gap: 12px;
}

.confirm-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--fog);
  background: var(--deep-navy);
  box-shadow: var(--shadow-dialog);
}

.confirm-dialog::backdrop {
  background: rgba(1, 8, 13, 0.78);
  backdrop-filter: blur(4px);
}

.confirm-frame {
  display: grid;
  max-height: calc(100vh - 34px);
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.pages-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--steel);
  font-size: 0.78rem;
}

.pages-summary strong {
  color: var(--light-blue);
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

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

.page-row {
  display: grid;
  min-height: 86px;
  grid-template-columns: minmax(280px, 1.35fr) minmax(140px, 0.7fr) 100px 58px auto;
  gap: 20px;
  align-items: center;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
}

.page-row__identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.page-row h2,
.page-row p {
  margin: 0;
}

.page-row h2 {
  overflow: hidden;
  font-size: 1rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-row p {
  margin-top: 4px;
  color: var(--steel);
  font-size: 0.78rem;
}

.page-type-mark {
  display: grid;
  width: 54px;
  aspect-ratio: 1;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--light-blue);
  background: linear-gradient(145deg, rgba(90, 125, 166, 0.16), rgba(7, 16, 24, 0.25));
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.page-dialog {
  width: min(1260px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--fog);
  background: var(--deep-navy);
  box-shadow: var(--shadow-dialog);
}

.page-dialog::backdrop {
  background: rgba(1, 8, 13, 0.78);
  backdrop-filter: blur(4px);
}

.page-dialog-frame {
  min-height: min(820px, calc(100vh - 34px));
}

.page-editor-layout {
  display: grid;
  min-height: 0;
  grid-template-columns: 212px minmax(0, 1fr);
  overflow: hidden;
}

.page-editor-canvas {
  overflow: auto;
  padding: 28px;
  background:
    radial-gradient(circle at 100% 0, rgba(90, 125, 166, 0.1), transparent 24rem),
    #0b151f;
}

.page-editor-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -28px -28px 22px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 24, 0.72);
}

.page-editor-status > div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--steel);
  font-size: 0.78rem;
}

.page-editor-status > p {
  overflow: hidden;
  margin: 0;
  color: var(--light-blue);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-locale-tabs {
  width: fit-content;
  margin-bottom: 24px;
}

.page-editor-panel {
  display: grid;
  max-width: 900px;
  gap: 18px;
}

.page-section-list,
.page-link-list,
.page-seo-fields,
.featured-list {
  display: grid;
  gap: 12px;
}

.page-section-card,
.featured-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 16, 24, 0.48);
}

.page-section-card summary {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
}

.page-section-card summary::-webkit-details-marker {
  display: none;
}

.page-section-card summary > span,
.featured-card header > div:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-section-card summary small,
.featured-card header small {
  color: var(--blue);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}

.page-section-card summary strong,
.featured-card h4 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
}

.page-section-actions,
.featured-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-section-actions button,
.featured-actions button {
  min-width: 34px;
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--light-blue);
  background: transparent;
  cursor: pointer;
}

.page-section-actions button:disabled,
.featured-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.section-visibility {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
  color: var(--steel);
  font-size: 0.74rem;
}

.page-field-grid,
.featured-card .field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 18px 16px;
  border-top: 1px solid var(--line);
}

.field > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.field-badge {
  padding: 3px 7px;
  border: 1px solid rgba(219, 179, 106, 0.36);
  border-radius: 999px;
  color: var(--warning);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.field-help {
  color: var(--steel);
  font-size: 0.7rem;
  line-height: 1.45;
}

.page-intent,
.switch-field {
  margin-top: 16px;
}

.featured-card header {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
}

.featured-actions button:last-child {
  color: var(--danger);
}

.featured-add {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.confirm-body {
  display: grid;
  gap: 20px;
  overflow: auto;
  padding: 26px 24px;
}

.confirm-summary dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.project-dialog {
  width: min(1180px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--fog);
  background: var(--deep-navy);
  box-shadow: var(--shadow-dialog);
}

.project-dialog::backdrop {
  background: rgba(1, 8, 13, 0.78);
  backdrop-filter: blur(4px);
}

.dialog-frame {
  display: grid;
  max-height: calc(100vh - 34px);
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.dialog-header,
.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.dialog-header h2 {
  margin: 5px 0 0;
  font-size: 1.2rem;
  font-weight: 500;
}

.dialog-header .icon-button {
  font-size: 1.45rem;
}

.dialog-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.dialog-footer > p {
  margin: 0;
  color: var(--steel);
  font-size: 0.8rem;
}

.dialog-footer > div {
  display: flex;
  gap: 8px;
}

.editor-layout {
  display: grid;
  min-height: 0;
  grid-template-columns: 196px minmax(0, 1fr);
  overflow: hidden;
}

.editor-index {
  padding: 22px 14px;
  border-right: 1px solid var(--line);
}

.editor-index__item.is-active {
  color: var(--white);
  background: rgba(90, 125, 166, 0.16);
}

.editor-canvas {
  overflow: auto;
  padding: 28px;
  background:
    radial-gradient(circle at 100% 0, rgba(90, 125, 166, 0.08), transparent 20rem),
    #0b151f;
}

.editor-status {
  position: relative;
  display: grid;
  gap: 14px;
  margin: -28px -28px 28px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 24, 0.7);
}

.editor-status > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--steel);
  font-size: 0.78rem;
}

.waterline--compact {
  position: relative;
  height: 3px;
  border-radius: 999px;
}

.editor-section {
  display: grid;
  max-width: 820px;
  gap: 20px;
}

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

.field {
  display: grid;
  gap: 8px;
  color: #cbd2d8;
  font-size: 0.82rem;
}

.field input,
.field textarea,
.field select {
  min-height: 44px;
  padding: 11px 12px;
  resize: vertical;
}

.field select {
  color: var(--fog);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--navy);
}

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

.field textarea {
  line-height: 1.55;
}

.field input:hover,
.field textarea:hover,
.field select:hover,
.search-field input:hover {
  border-color: rgba(156, 185, 200, 0.5);
}

.field-set {
  margin: 6px 0 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field-set legend {
  padding: 0 8px;
  font-size: 0.84rem;
}

.service-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-option {
  position: relative;
}

.service-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.service-option span {
  display: block;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--steel);
  cursor: pointer;
  text-transform: capitalize;
}

.service-option input:checked + span {
  color: var(--deep-navy);
  border-color: var(--light-blue);
  background: var(--light-blue);
}

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

.locale-tabs {
  display: flex;
  gap: 4px;
  width: fit-content;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.locale-tabs button {
  min-width: 88px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  color: var(--steel);
  background: transparent;
  cursor: pointer;
}

.locale-tabs button[aria-selected="true"] {
  color: var(--deep-navy);
  background: var(--fog);
}

[data-locale-panel] {
  display: grid;
  gap: 16px;
}

[data-locale-panel="ar"] {
  font-family: "Thamanyah Sans", Arial, sans-serif;
}

.supporting-copy {
  max-width: 66ch;
  margin: 0;
  color: var(--steel);
  line-height: 1.6;
}

.module-list {
  display: grid;
  gap: 10px;
}

.module-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--navy);
}

.module-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.module-card__actions,
.evidence-item__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.module-card__actions button,
.evidence-item__actions button {
  min-width: 34px;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.module-card__actions button:hover,
.evidence-item__actions button:hover {
  border-color: var(--line-strong);
  background: rgba(156, 185, 200, 0.08);
}

.module-card__body {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.module-number {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: var(--light-blue);
  background: rgba(90, 125, 166, 0.16);
  font-size: 0.72rem;
}

.module-card h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: capitalize;
}

.module-card p {
  margin: 4px 0 0;
  color: var(--steel);
  font-size: 0.77rem;
}

.module-card button {
  border: 0;
  color: var(--light-blue);
  background: transparent;
  cursor: pointer;
}

.module-card button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.evidence-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.evidence-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(156, 185, 200, 0.14);
  border-radius: 10px;
  background: rgba(7, 16, 24, 0.5);
}

.evidence-item__index {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--steel);
  background: rgba(156, 185, 200, 0.08);
  font-size: 0.68rem;
}

.evidence-item strong,
.evidence-item small {
  display: block;
}

.evidence-item strong {
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.evidence-item small {
  margin-top: 3px;
  color: var(--steel);
  font-size: 0.7rem;
  text-transform: capitalize;
}

.module-empty {
  padding: 10px 12px;
  border: 1px dashed rgba(156, 185, 200, 0.2);
  border-radius: 10px;
  color: var(--steel);
  font-size: 0.76rem;
}

.add-evidence-button {
  justify-self: start;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--line-strong) !important;
  border-radius: 9px;
}

.hero-fields {
  margin-top: 0;
}

.preview-project-button {
  justify-self: start;
}

.evidence-dialog {
  width: min(680px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--fog);
  background: var(--deep-navy);
  box-shadow: var(--shadow-dialog);
}

.evidence-dialog::backdrop {
  background: rgba(1, 8, 13, 0.78);
  backdrop-filter: blur(4px);
}

.evidence-frame {
  display: grid;
  max-height: calc(100vh - 34px);
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.evidence-body {
  display: grid;
  gap: 18px;
  overflow: auto;
  padding: 24px;
}

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

.evidence-safety {
  padding: 14px;
  border: 1px solid rgba(219, 179, 106, 0.28);
  border-radius: 10px;
  background: rgba(219, 179, 106, 0.07);
}

.evidence-safety strong {
  font-size: 0.8rem;
}

.evidence-safety p {
  margin: 5px 0 0;
  color: #d0c4ae;
  font-size: 0.76rem;
  line-height: 1.55;
}

.seo-readiness {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(219, 179, 106, 0.32);
  border-radius: var(--radius);
  color: #ead5ab;
  background: rgba(219, 179, 106, 0.07);
}

.seo-readiness strong {
  color: var(--fog);
}

.seo-readiness ul {
  margin: 4px 0 0;
  padding-left: 20px;
  color: #d0c4ae;
  line-height: 1.55;
}

.switch-field {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbd2d8;
}

.switch-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--light-blue);
}

.toast-region {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100% - 40px));
}

.toast {
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--fog);
  background: var(--navy-raised);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

@media (max-width: 980px) {
  .studio {
    grid-template-columns: 1fr;
  }

  .rail {
    position: fixed;
    z-index: 30;
    width: min(280px, calc(100% - 48px));
    transform: translateX(-105%);
  }

  .studio.is-menu-open .rail {
    transform: translateX(0);
  }

  .studio.is-menu-open .menu-scrim {
    position: fixed;
    z-index: 20;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(1, 8, 13, 0.68);
  }

  .mobile-menu {
    display: grid;
    width: 42px;
    height: 42px;
    place-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
  }

  .mobile-menu span {
    width: 16px;
    height: 1px;
    background: var(--fog);
  }

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

  .focus-card,
  .queue-card {
    grid-column: 1 / -1;
  }

  .focus-card {
    grid-row: auto;
  }

  .project-row {
    grid-template-columns: minmax(220px, 1fr) 120px 90px auto;
  }

  .page-row {
    grid-template-columns: minmax(240px, 1fr) 110px 58px auto;
  }

  .project-row__industry,
  .page-row__family {
    display: none;
  }

  .release-hero {
    align-items: start;
    flex-direction: column;
  }

  .release-actions {
    justify-content: flex-start;
  }

  .seo-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .seo-tabs {
    width: fit-content;
  }

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

  .seo-metrics article:nth-child(3) {
    border-right: 0;
  }

  .seo-metrics article:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .gsc-command {
    align-items: start;
    flex-direction: column;
  }

  .gsc-controls,
  .gsc-command__actions {
    justify-content: flex-start;
  }

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

  .gsc-metric:nth-child(2) {
    border-right: 0;
  }

  .gsc-metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .login-view {
    grid-template-columns: 1fr;
  }

  .login-mark {
    display: none;
  }

  .topbar {
    min-height: 74px;
    padding: 12px 16px;
  }

  .topbar-actions .save-state,
  .topbar-actions .button--quiet {
    display: none;
  }

  .workspace-body {
    padding: 20px 14px;
  }

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

  .focus-card,
  .queue-card {
    grid-column: auto;
  }

  .list-toolbar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .search-field {
    flex-basis: 100%;
  }

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

  .project-row__industry,
  .project-row__status,
  .project-row__proof {
    display: none;
  }

  .project-dialog {
    width: 100%;
    max-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .page-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .page-row__family,
  .page-row > .status-pill,
  .page-row > .proof-number {
    display: none;
  }

  .page-dialog {
    width: 100%;
    max-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .page-dialog-frame {
    min-height: 100vh;
    max-height: 100vh;
  }

  .page-editor-layout {
    grid-template-columns: 1fr;
  }

  .page-editor-index {
    display: flex;
    overflow-x: auto;
    padding: 8px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .page-editor-index .editor-index__item {
    min-width: 122px;
  }

  .page-editor-canvas {
    padding: 20px 14px;
  }

  .page-editor-status {
    align-items: flex-start;
    flex-direction: column;
    margin: 0 -14px 20px;
    padding: 14px;
  }

  .page-field-grid,
  .featured-card .field-grid,
  .featured-add {
    grid-template-columns: 1fr;
  }

  .page-section-card summary,
  .featured-card header {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-section-actions,
  .featured-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .dialog-frame {
    max-height: 100vh;
  }

  .editor-layout {
    grid-template-columns: 1fr;
  }

  .editor-index {
    display: flex;
    overflow-x: auto;
    padding: 8px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .editor-index__item {
    min-width: 104px;
  }

  .editor-canvas {
    padding: 20px 14px;
  }

  .editor-status {
    margin: -20px -14px 20px;
    padding: 14px;
  }

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

  .evidence-dialog {
    width: 100%;
    max-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .evidence-frame {
    max-height: 100vh;
  }

  .evidence-fields {
    grid-template-columns: 1fr;
  }

  .evidence-item {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .evidence-item__actions {
    grid-column: 2;
    justify-self: start;
  }

  .dialog-footer > p {
    display: none;
  }

  .dialog-footer {
    justify-content: flex-end;
  }

  .release-hero {
    min-height: 0;
    padding: 22px 18px;
  }

  .seo-hero {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 18px;
  }

  .seo-hero h2 {
    font-size: clamp(2.3rem, 13vw, 4rem);
  }

  .seo-score {
    width: 104px;
  }

  .seo-score strong {
    font-size: 1.8rem;
  }

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

  .seo-metrics article,
  .seo-metrics article:nth-child(3) {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .seo-metrics article:nth-child(even) {
    border-right: 0;
  }

  .seo-metrics article:last-child {
    border-bottom: 0;
  }

  .seo-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .seo-tabs button {
    min-width: max-content;
  }

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

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

  .seo-filters input,
  .seo-filters select {
    width: 100%;
  }

  .seo-page-row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 13px 12px;
  }

  .seo-page-row__locale {
    display: none;
  }

  .seo-page-row__issues {
    font-size: 0.68rem;
  }

  .seo-split,
  .seo-opportunity-grid,
  .seo-components {
    grid-template-columns: 1fr;
  }

  .gsc-command,
  .gsc-current,
  .gsc-guidance,
  .gsc-sitemap {
    padding: 16px;
  }

  .gsc-controls {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .gsc-range {
    width: 100%;
  }

  .gsc-range button {
    flex: 1;
  }

  .gsc-controls select {
    width: 100%;
  }

  .gsc-command__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .gsc-metric {
    min-height: 116px;
    padding: 14px;
  }

  .gsc-current {
    overflow-x: auto;
  }

  .gsc-chart {
    min-width: 560px;
  }

  .gsc-evidence-grid {
    grid-template-columns: 1fr;
  }

  .gsc-list__rows article {
    grid-template-columns: minmax(0, 1fr);
  }

  .gsc-list__rows article > div:last-child {
    display: flex;
    gap: 12px;
    text-align: left;
  }

  .gsc-sitemap {
    grid-template-columns: minmax(0, 1fr);
  }

  .gsc-sitemap .status-pill {
    justify-self: start;
  }

  .gsc-sitemap dl,
  .gsc-index-row dl {
    grid-template-columns: 1fr;
  }

  .gsc-index-row {
    grid-template-columns: 10px minmax(0, 1fr);
    align-items: start;
    padding: 14px;
  }

  .gsc-index-row__status {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }

  .gsc-index-row details {
    grid-column: 2;
  }

  .gsc-connection-state,
  .gsc-loading {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .gsc-loading__line {
    width: 100%;
    min-height: 4px;
    background: linear-gradient(90deg, transparent, var(--light-blue), transparent);
    background-size: 200% 100%;
  }

  .seo-dialog {
    width: 100%;
    max-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .seo-dialog__frame {
    max-height: 100vh;
  }

  .seo-dialog__body {
    padding: 20px 14px;
  }

  .release-hero h2 {
    font-size: clamp(2.35rem, 13vw, 4rem);
  }

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

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

  .release-waterline li:nth-child(2) {
    border-right: 0;
  }

  .release-waterline li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

  .release-card--summary,
  .release-card--history {
    grid-column: auto;
  }

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

  .history-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .confirm-dialog {
    width: 100%;
    max-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .confirm-frame {
    max-height: 100vh;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .rail {
    transition: transform 180ms ease;
  }

  .toast {
    animation: toast-in 160ms ease-out;
  }

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

@media (prefers-reduced-motion: reduce) {
  .rail,
  .button,
  .row-button,
  .icon-button,
  .toast,
  .gsc-loading__line {
    transition-duration: 0.01ms;
    animation: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .button:not(:disabled),
  .row-button,
  .icon-button {
    transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
  }

  .button--primary:hover,
  .button--light:hover {
    background: var(--white);
  }

  .row-button:hover,
  .icon-button:hover {
    border-color: var(--light-blue);
    background: rgba(156, 185, 200, 0.08);
  }
}

/* Media field -------------------------------------------------------------
   Wraps a plain path input with a real upload control. The preview keeps the
   4:3 ratio of the homepage cards so the crop is obvious before saving. */

.media-field {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 16, 24, 0.42);
}

.media-field__preview {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 78% 16%, rgba(90, 125, 166, 0.2), transparent 32%),
    linear-gradient(135deg, #101d2a 0%, #071018 100%);
}

.media-field__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-field__empty {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--steel);
  text-align: center;
  padding: 0 8px;
}

.media-field__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.media-field__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.media-field__button {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--deep-navy);
  background: var(--light-blue);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  /* Only transform and opacity, so the press stays off the layout path. */
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), opacity 160ms ease;
}

.media-field__button--quiet {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--steel);
}

.media-field__button:active {
  transform: scale(0.97);
}

.media-field__button:disabled {
  opacity: 0.5;
  cursor: progress;
  transform: none;
}

.media-field__button:focus-visible {
  outline: 2px solid var(--light-blue);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .media-field__button:not(:disabled):hover {
    opacity: 0.88;
  }
}

.media-field__status {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--steel);
  min-height: 1.1em;
}

.media-field__status[data-tone="ok"] { color: var(--success); }
.media-field__status[data-tone="warn"] { color: var(--warning); }
.media-field__status[data-tone="error"] { color: var(--danger); }

.media-field__path {
  font-size: 0.72rem;
  color: var(--steel);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 0 0;
  cursor: default;
  text-overflow: ellipsis;
}

.media-field__path:focus {
  outline: none;
}

.media-field[data-busy="true"] .media-field__preview {
  opacity: 0.6;
  transition: opacity 160ms ease;
}

@media (max-width: 620px) {
  .media-field {
    grid-template-columns: minmax(0, 1fr);
  }

  .media-field__preview {
    max-width: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .media-field__button,
  .media-field[data-busy="true"] .media-field__preview {
    transition: none;
  }

  .media-field__button:active {
    transform: none;
  }
}

.media-field__path[hidden] {
  display: none;
}

/* Beat the generic field-input styling: the path is a caption, not an input. */
.media-field .media-field__path,
.media-field input.media-field__path {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 8px 0 0;
  font-size: 0.72rem;
  color: var(--steel);
  cursor: default;
  width: 100%;
}

/* Featured Work rows -------------------------------------------------------
   Selection and order only. The card's words and image come from the project,
   so anything missing is reported here with a way back to fix it. */

.featured-row {
  display: grid;
  grid-template-columns: auto 84px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 16, 24, 0.42);
}

.featured-row + .featured-row {
  margin-top: 10px;
}

.featured-row[data-incomplete="true"] {
  border-color: rgba(219, 179, 106, 0.45);
}

.featured-row__position {
  font-size: 0.72rem;
  color: var(--steel);
  font-variant-numeric: tabular-nums;
}

.featured-row__thumb {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #101d2a 0%, #071018 100%);
}

.featured-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-row__thumb span {
  font-size: 0.62rem;
  color: var(--steel);
}

.featured-row__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.featured-row__body strong {
  font-size: 0.95rem;
}

.featured-row__meta {
  font-size: 0.74rem;
  color: var(--steel);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-row__missing {
  font-size: 0.74rem;
  color: var(--warning);
}

.featured-row__actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.featured-row__actions button {
  font: inherit;
  font-size: 0.76rem;
  color: var(--steel);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), opacity 160ms ease;
}

.featured-row__actions button[data-edit-project] {
  color: var(--deep-navy);
  background: var(--warning);
  border-color: transparent;
}

.featured-row__actions button:active:not(:disabled) {
  transform: scale(0.97);
}

.featured-row__actions button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.featured-row--broken {
  grid-template-columns: minmax(0, 1fr) auto;
  border-color: rgba(223, 120, 111, 0.5);
}

@media (max-width: 720px) {
  .featured-row {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas: "thumb body" "actions actions";
    row-gap: 10px;
  }

  .featured-row__position { display: none; }
  .featured-row__thumb { grid-area: thumb; }
  .featured-row__body { grid-area: body; }
  .featured-row__actions { grid-area: actions; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .featured-row__actions button { transition: none; }
  .featured-row__actions button:active:not(:disabled) { transform: none; }
}

/* Quiet explanation under a field, for settings whose effect is not obvious. */
.field-hint {
  display: block;
  margin-top: 5px;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--steel);
}

/* Dashboard actions ------------------------------------------------------- */

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
