:root {
  --paper: #f5f7f8;
  --surface: #ffffff;
  --ink: #171b1f;
  --muted: #69727a;
  --line: #dce1e4;
  --line-strong: #b8c0c5;
  --accent: #ef4a23;
  --accent-deep: #c92f13;
  --signal: #ffb03a;
  --ok: #16825d;
  --dark: #151a1e;
  --dark-soft: #20272c;
  --radius: 18px;
  --shadow: 0 20px 60px rgb(22 27 31 / 8%);
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(90deg, rgb(23 27 31 / 3%) 1px, transparent 1px) 50% 0 / 112px 100%,
    var(--paper);
}

a {
  color: inherit;
}

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

.platform-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: auto minmax(320px, 1fr) auto;
  align-items: stretch;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 4px 24px rgb(22 27 31 / 4%);
  backdrop-filter: blur(18px);
}

.platform-brand {
  display: flex;
  gap: 13px;
  align-items: center;
  min-width: 230px;
  padding: 12px 28px;
  border-right: 1px solid var(--line);
  text-decoration: none;
}

.platform-brand__mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 25px rgb(239 74 35 / 22%);
  font-size: 24px;
  font-weight: 850;
}

.platform-brand > span:last-child {
  display: grid;
  gap: 2px;
}

.platform-brand strong {
  font-size: 20px;
  letter-spacing: 0.04em;
}

.platform-brand small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.platform-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.platform-nav a {
  position: relative;
  display: grid;
  min-width: 125px;
  place-items: center;
  padding: 12px 20px;
  color: #485159;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.platform-nav a::after {
  position: absolute;
  right: 20px;
  bottom: -1px;
  left: 20px;
  height: 3px;
  background: transparent;
  content: "";
}

.platform-nav a:hover,
.platform-nav a[aria-current="page"] {
  color: var(--ink);
  background: #f8f9fa;
}

.platform-nav a[aria-current="page"]::after {
  background: var(--accent);
}

.platform-runtime {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 230px;
  padding: 0 28px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.platform-runtime i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 5px rgb(255 176 58 / 15%);
}

.platform-runtime.is-live i {
  background: var(--ok);
  box-shadow: 0 0 0 5px rgb(22 130 93 / 12%);
}

.platform-runtime.is-limited i {
  background: var(--accent);
  box-shadow: 0 0 0 5px rgb(239 74 35 / 12%);
}

#platform-app {
  outline: none;
}

.platform-boot {
  display: grid;
  min-height: calc(100vh - 150px);
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
}

.platform-boot span,
.platform-overline,
.platform-definition span,
.platform-featured > span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.platform-boot p {
  color: var(--muted);
}

.platform-hero {
  display: grid;
  grid-template-columns: minmax(90px, 0.22fr) minmax(520px, 1.45fr) minmax(290px, 0.7fr);
  min-height: 520px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.platform-hero__index {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 88px;
  border-right: 1px solid var(--line);
  color: #d7dde0;
  font-size: clamp(38px, 5vw, 76px);
  font-weight: 250;
  letter-spacing: -0.08em;
}

.platform-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px clamp(44px, 7vw, 120px);
}

.platform-hero__copy h1 {
  max-width: 920px;
  margin: 22px 0 24px;
  font-size: clamp(46px, 5.4vw, 86px);
  font-weight: 740;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.platform-lead {
  max-width: 770px;
  margin: 0;
  color: #4f5961;
  font-size: clamp(17px, 1.7vw, 23px);
  line-height: 1.55;
}

.platform-facts {
  display: grid;
  align-content: center;
  margin: 0;
  border-left: 1px solid var(--line);
}

.platform-facts > div {
  display: grid;
  gap: 8px;
  padding: 24px 32px;
  border-bottom: 1px solid var(--line);
}

.platform-facts > div:last-child {
  border-bottom: 0;
}

.platform-facts dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.platform-facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.45;
}

.platform-facts code {
  color: var(--accent-deep);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.platform-definition {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  max-width: 1560px;
  margin: 0 auto;
  padding: 54px clamp(28px, 5vw, 80px);
}

.platform-definition article {
  min-height: 184px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.platform-definition article + article {
  border-left: 0;
}

.platform-definition article:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.platform-definition article:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.platform-definition p,
.platform-definition strong {
  display: block;
  margin: 22px 0 0;
  font-size: 16px;
  line-height: 1.62;
}

.platform-definition__flow {
  color: #fff;
  background: var(--dark) !important;
  border-color: var(--dark) !important;
}

.platform-definition__flow span {
  color: #ff8a68;
}

.platform-definition__flow strong {
  font-size: 20px;
}

.platform-definition__boundary {
  background: #fff9f6 !important;
}

.platform-featured {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 34px;
  align-items: center;
  max-width: calc(1560px - clamp(56px, 10vw, 160px));
  margin: 0 auto 70px;
  padding: 30px 34px;
  border: 1px solid #ffc8b8;
  border-radius: var(--radius);
  background: linear-gradient(120deg, #fff 0%, #fff7f3 100%);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.platform-featured h2 {
  margin: 0 0 8px;
  font-size: 25px;
  letter-spacing: -0.025em;
}

.platform-featured p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.platform-featured b {
  color: var(--accent);
  font-size: 13px;
}

.platform-modules,
.platform-relations {
  max-width: 1560px;
  margin: 0 auto;
  padding: 62px clamp(28px, 5vw, 80px) 82px;
}

.platform-modules > header,
.platform-relations > header {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: baseline;
  margin-bottom: 34px;
}

.platform-modules h2,
.platform-relations h2,
.platform-core h2 {
  margin: 0;
  font-size: clamp(31px, 3.2vw, 48px);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.platform-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.module-card {
  position: relative;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: 18px;
  min-height: 162px;
  padding: 26px;
  border: 0;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
  text-decoration: none;
}

.module-card--link {
  padding-right: 56px;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.module-card--link:hover {
  color: #fff;
  background: var(--dark);
}

.module-card__code {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 750;
}

.module-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.module-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.module-card--link:hover p {
  color: #aeb7bd;
}

.module-card__status {
  align-self: start;
  padding: 6px 9px;
  border-radius: 999px;
  color: #596269;
  background: #f0f2f3;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module-card__status[data-tone="live"] {
  color: #0f684a;
  background: #e4f5ed;
}

.module-card__status[data-tone="frame"] {
  color: #a33c21;
  background: #fff0ea;
}

.module-card__status[data-tone="locked"] {
  color: #fff;
  background: #3c444a;
}

.module-card b {
  position: absolute;
  right: 24px;
  bottom: 22px;
  color: var(--accent);
  font-size: 20px;
}

.platform-relations {
  border-top: 1px solid var(--line);
}

.platform-relations nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
}

.platform-relations a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: center;
  min-height: 92px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
}

.platform-relations a:last-child {
  border-right: 0;
}

.platform-relations a:hover {
  background: #fff7f3;
}

.platform-relations span {
  color: #a0a8ad;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.platform-relations strong {
  font-size: 13px;
  line-height: 1.35;
}

.platform-relations b {
  color: var(--accent);
}

.platform-core {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 42px;
  align-items: center;
  min-height: 300px;
  padding: 62px clamp(38px, 8vw, 140px);
  color: #fff;
  background:
    radial-gradient(circle at 13% 50%, rgb(239 74 35 / 24%), transparent 24%),
    var(--dark);
}

.platform-core__pulse {
  position: relative;
  width: 126px;
  height: 126px;
}

.platform-core__pulse i {
  position: absolute;
  inset: 0;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 50%;
}

.platform-core__pulse i:nth-child(2) {
  inset: 22px;
  border-color: rgb(239 74 35 / 65%);
}

.platform-core__pulse i:nth-child(3) {
  inset: 48px;
  border: 0;
  background: var(--accent);
  box-shadow: 0 0 36px rgb(239 74 35 / 55%);
}

.platform-core .platform-overline {
  color: #ff8c6d;
}

.platform-core h2 {
  margin: 16px 0;
}

.platform-core p:last-child {
  margin: 0;
  color: #aeb7bd;
  line-height: 1.6;
}

.platform-core > span {
  padding-left: 32px;
  border-left: 1px solid #3e464b;
  color: #aeb7bd;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  line-height: 1.8;
  text-transform: uppercase;
}

.platform-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items: center;
  min-height: 76px;
  padding: 18px 34px;
  border-top: 1px solid #30373c;
  color: #99a3aa;
  background: #101417;
  font-size: 11px;
}

.platform-footer span {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.platform-footer p {
  margin: 0;
}

.platform-footer a {
  color: #ff8c6d;
  font-weight: 750;
}

body[data-page="ops"] .platform-hero {
  color: #fff;
  background:
    radial-gradient(circle at 70% 30%, rgb(239 74 35 / 12%), transparent 35%),
    var(--dark);
}

body[data-page="ops"] .platform-hero__index,
body[data-page="ops"] .platform-facts {
  border-color: #343c41;
}

body[data-page="ops"] .platform-hero__index {
  color: #343c41;
}

body[data-page="ops"] .platform-lead,
body[data-page="ops"] .platform-facts dt {
  color: #aeb7bd;
}

body[data-page="ops"] .platform-facts > div {
  border-color: #343c41;
}

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

  .platform-runtime {
    display: none;
  }

  .platform-nav {
    justify-content: flex-end;
  }

  .platform-hero {
    grid-template-columns: 84px 1fr;
  }

  .platform-facts {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .platform-facts > div:last-child {
    border-right: 0;
  }

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

  .platform-definition article + article {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .platform-definition article:first-child {
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .platform-definition article:last-child {
    border-radius: 0 0 var(--radius) var(--radius);
  }

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

  .platform-relations a:nth-child(2) {
    border-right: 0;
  }

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

@media (max-width: 760px) {
  body {
    background: var(--paper);
  }

  .platform-header {
    position: static;
    display: block;
    min-height: 0;
  }

  .platform-brand {
    min-width: 0;
    padding: 13px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .platform-brand__mark {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }

  .platform-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow-x: auto;
  }

  .platform-nav a {
    min-width: 0;
    padding: 13px 6px;
    font-size: 10px;
  }

  .platform-nav a::after {
    right: 8px;
    left: 8px;
  }

  .platform-hero {
    display: block;
    min-height: 0;
  }

  .platform-hero__index {
    display: none;
  }

  .platform-hero__copy {
    padding: 54px 22px 44px;
  }

  .platform-hero__copy h1 {
    margin: 18px 0 22px;
    font-size: clamp(40px, 12vw, 58px);
  }

  .platform-lead {
    font-size: 17px;
    line-height: 1.55;
  }

  .platform-facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .platform-facts > div,
  .platform-facts > div:last-child {
    min-width: 0;
    padding: 18px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .platform-facts > div:nth-child(2n) {
    border-right: 0;
  }

  .platform-facts > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .platform-facts dd {
    overflow-wrap: anywhere;
    font-size: 12px;
  }

  .platform-definition,
  .platform-modules,
  .platform-relations {
    padding: 34px 16px 54px;
  }

  .platform-definition article {
    min-height: 0;
    padding: 24px 22px;
  }

  .platform-definition p,
  .platform-definition strong {
    margin-top: 16px;
    font-size: 15px;
  }

  .platform-featured {
    display: block;
    max-width: none;
    margin: 0 16px 48px;
    padding: 24px 22px;
  }

  .platform-featured h2 {
    margin-top: 16px;
    font-size: 23px;
  }

  .platform-featured b {
    display: block;
    margin-top: 20px;
  }

  .platform-modules > header,
  .platform-relations > header {
    display: block;
    margin-bottom: 24px;
  }

  .platform-modules h2,
  .platform-relations h2,
  .platform-core h2 {
    margin-top: 13px;
    font-size: 34px;
  }

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

  .module-card {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 0;
    padding: 22px 18px;
  }

  .module-card__status {
    grid-column: 2;
    justify-self: start;
  }

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

  .platform-relations a,
  .platform-relations a:nth-child(2),
  .platform-relations a:nth-child(-n + 2) {
    min-height: 76px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .platform-relations a:last-child {
    border-bottom: 0;
  }

  .platform-core {
    display: block;
    min-height: 0;
    padding: 52px 24px;
  }

  .platform-core__pulse {
    width: 90px;
    height: 90px;
    margin-bottom: 32px;
  }

  .platform-core__pulse i:nth-child(2) {
    inset: 17px;
  }

  .platform-core__pulse i:nth-child(3) {
    inset: 36px;
  }

  .platform-core > span {
    display: block;
    margin-top: 30px;
    padding-top: 24px;
    padding-left: 0;
    border-top: 1px solid #3e464b;
    border-left: 0;
  }

  .platform-footer {
    display: block;
    padding: 26px 20px;
  }

  .platform-footer p {
    margin: 10px 0 18px;
    line-height: 1.5;
  }
}

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

  .module-card--link {
    transition: none;
  }
}


.media-studio {
  max-width: 1560px;
  margin: 0 auto;
  padding: 72px clamp(28px, 5vw, 80px) 88px;
  border-top: 1px solid var(--line);
}

.media-studio__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, auto);
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.media-studio__header h2 {
  max-width: 900px;
  margin: 13px 0 18px;
  font-size: clamp(34px, 4vw, 58px);
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.media-studio__header > div:first-child > p:last-child {
  max-width: 770px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.media-studio__mode {
  max-width: 340px;
  padding: 16px 18px;
  border: 1px solid #ffd5c8;
  border-radius: 14px;
  color: #8b341f;
  background: #fff7f3;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.media-studio__mode[data-state="guarded"] {
  border-color: #b9dfcf;
  color: #0f684a;
  background: #eef9f4;
}

.media-studio__mode[data-state="error"] {
  border-color: #efb5a8;
  color: #9b2f18;
  background: #fff2ee;
}

.media-workflow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 0 28px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  list-style: none;
  background: var(--surface);
}

.media-workflow li {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 20px 22px;
  border-right: 1px solid var(--line);
}

.media-workflow li:last-child {
  border-right: 0;
}

.media-workflow span {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
}

.media-workflow strong {
  font-size: 13px;
  line-height: 1.3;
}

.media-toolbar {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

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

.media-filters button,
.media-upload {
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: #4e585f;
  background: var(--surface);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.media-filters button:hover,
.media-filters button[aria-pressed="true"] {
  border-color: var(--dark);
  color: #fff;
  background: var(--dark);
}

.media-upload {
  max-width: 330px;
  border-color: var(--line);
  border-radius: 12px;
  color: #7e878d;
  background: #eceff1;
  cursor: not-allowed;
  text-align: left;
  line-height: 1.35;
}

.media-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}

.media-summary > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
  min-height: 78px;
  padding: 18px 22px;
  border-right: 1px solid var(--line);
}

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

.media-summary dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.media-summary dd {
  margin: 0;
  color: var(--accent);
  font-size: 28px;
  font-weight: 760;
  letter-spacing: -0.04em;
}

.media-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.media-card {
  display: grid;
  align-content: start;
  min-width: 0;
  min-height: 330px;
  padding: 28px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
}

.media-card > header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.media-card__code {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
}

.media-card__status {
  padding: 7px 10px;
  border-radius: 999px;
  color: #5d666c;
  background: #eef0f1;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.media-card__status[data-status="released"] {
  color: #0f684a;
  background: #e4f5ed;
}

.media-card__status[data-status="review"] {
  color: #8a5800;
  background: #fff3d8;
}

.media-card__status[data-status="rejected"] {
  color: #9b2f18;
  background: #ffece7;
}

.media-card__type {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.media-card h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 25px;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.media-card__module {
  margin: 10px 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.media-card__facts,
.media-card__specialization {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.media-card__facts span,
.media-card__specialization span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #596269;
  background: #fafbfb;
  font-size: 10px;
  line-height: 1.3;
}

.media-card__specialization {
  margin-top: 8px;
}

.media-card__blockers {
  display: grid;
  gap: 7px;
  margin: 24px 0 0;
  padding: 17px 18px 17px 34px;
  border-left: 3px solid var(--signal);
  color: #5d4b2d;
  background: #fff9ee;
  font-size: 12px;
  line-height: 1.4;
}

.media-card__blockers[data-ready="true"] {
  border-left-color: var(--ok);
  color: #0f684a;
  background: #eef9f4;
}

.media-empty {
  display: grid;
  grid-column: 1 / -1;
  min-height: 250px;
  place-content: center;
  justify-items: center;
  padding: 40px 24px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
  text-align: center;
}

.media-empty > span {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 18px;
  color: var(--accent);
  background: #fff0ea;
  font-size: 24px;
  font-weight: 800;
}

.media-empty h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.media-empty p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.media-empty--error > span {
  color: #9b2f18;
  background: #ffece7;
}

@media (max-width: 1120px) {
  .media-studio__header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .media-studio__mode {
    max-width: 560px;
  }

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

  .media-workflow li:nth-child(3) {
    border-right: 0;
  }

  .media-workflow li:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .media-library-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .media-studio {
    padding: 42px 16px 58px;
  }

  .media-studio__header {
    gap: 22px;
    margin-bottom: 26px;
  }

  .media-studio__header h2 {
    font-size: 36px;
  }

  .media-workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 14px;
  }

  .media-workflow li,
  .media-workflow li:nth-child(3) {
    min-height: 82px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .media-workflow li:nth-child(2n) {
    border-right: 0;
  }

  .media-workflow li:last-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }

  .media-toolbar {
    display: block;
  }

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

  .media-filters button {
    min-width: 0;
    padding: 10px 6px;
  }

  .media-upload {
    width: 100%;
    max-width: none;
    margin-top: 14px;
  }

  .media-summary > div {
    display: block;
    min-width: 0;
    min-height: 86px;
    padding: 14px 12px;
  }

  .media-summary dt {
    overflow-wrap: anywhere;
    font-size: 9px;
  }

  .media-summary dd {
    margin-top: 8px;
    font-size: 25px;
  }

  .media-card {
    min-height: 0;
    padding: 23px 19px;
  }

  .media-card h3 {
    font-size: 23px;
  }

  .media-card__facts,
  .media-card__specialization {
    display: grid;
  }

  .media-card__facts span,
  .media-card__specialization span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
