/* V5 presentation layer. Workflow and transport contracts remain unchanged. */
:root {
  color-scheme: dark;
  --v5-bg: #080f1b;
  --v5-panel: #111f30;
  --v5-edge: #2b4057;
  --v5-muted: #a9bfd3;
  --v5-blue: #62c5ff;
  --v5-violet: #bdabff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 75% 0, #182b4c 0, transparent 50%), var(--v5-bg);
  color: #f3f7fc;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 14px;
  line-height: 1.55;
}
a {
  color: #b7ddff;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
.button {
  min-height: 44px;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #65e0ed;
  outline-offset: 3px;
}
button:hover,
.button:hover {
  filter: brightness(1.12);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h2 {
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 16px;
  line-height: 1.4;
}
p {
  color: #b8c9da;
}
small,
.meta {
  font-size: 12px;
  color: var(--v5-muted);
}
strong {
  color: #f3f7fc;
}
.study {
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px 14px;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: #a5b6ce;
  background: #0a1320;
  border-bottom: 1px solid #25364d;
  text-align: center;
}
.studio-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  max-width: 1680px;
  margin: auto;
  min-height: calc(100vh - 26px);
}
.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  width: auto;
  height: calc(100vh - 26px);
  background: linear-gradient(180deg, #0d1b2b, #080e18);
  border-right: 1px solid #23384b;
  padding: 26px 16px 16px;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -1.5px;
  color: #fff;
  padding: 0 10px 22px;
  display: block;
}
.brand em {
  color: #f05d70;
  font-style: normal;
}
.sidebar nav {
  display: grid;
  gap: 3px;
  max-height: none;
  overflow: auto;
  flex: 1;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  min-height: 40px;
  border-radius: 7px;
  color: #aebece;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}
.sidebar nav a:hover {
  background: #162b42;
  color: white;
}
.sidebar nav a[aria-current="page"] {
  background: linear-gradient(105deg, #634aa055, #1979b76b);
  border-color: #7ca8e44d;
  color: #fff;
  box-shadow:
    inset 3px 0 #b89afa,
    0 3px 18px #387dcb16;
}
.nav-symbol {
  font-size: 17px;
  width: 18px;
  text-align: center;
  color: #c6d7ef;
}
.sidebar small {
  font-size: 10px;
  margin: 16px 10px 0;
  color: #7f96b0;
}
.sidebar > p {
  display: flex;
  gap: 12px;
  margin: 8px 10px 0;
  align-items: center;
}
.sidebar > p a {
  font-size: 10px;
  min-height: 30px;
  padding: 0;
  display: flex;
  align-items: center;
}
.sidebar #menu {
  display: none;
}
.studio-main {
  padding: 27px 34px 50px;
  min-width: 0;
  max-width: none;
  background: none;
}
.workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  padding: 0;
  background: none;
  box-shadow: none;
  min-height: 0;
  margin: 0;
}
.workspace-head h1 {
  font-size: 30px;
  letter-spacing: -0.05em;
  line-height: 1.15;
  margin: 4px 0 7px;
}
.workspace-head p {
  margin: 0;
  font-size: 12px;
}
.workspace-head .eyebrow {
  font-size: 9px;
  letter-spacing: 0.22em;
  color: #87b5d7;
}
.workspace-head .button {
  padding: 9px 20px;
  min-width: 110px;
}
.button,
button.quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 7px;
  padding: 9px 14px;
  border: 1px solid #3a526a;
  background: #142a3e;
  color: #dfedfc;
  font-size: 12px;
  font-weight: 650;
  text-align: center;
}
.button.primary {
  border: 1px solid #818ef4;
  background: linear-gradient(110deg, #287ecc, #7555d1);
  box-shadow: 0 5px 18px #3545b42b;
  color: white;
}
.button.quiet {
  background: #132438;
}
.actions,
.publish-bar {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.publish-bar {
  padding-top: 18px;
  border-top: 1px solid var(--v5-edge);
}
#status {
  min-height: 22px;
  font-size: 10px;
  letter-spacing: 0.02em;
  margin: 10px 0 17px;
  color: #85b9d8;
}
#status.error {
  color: #ffc0cd;
  font-size: 13px;
  padding: 12px;
  border: 1px solid #b7687b;
  border-radius: 6px;
  background: #482333;
}
.panel {
  background: linear-gradient(145deg, #172a3e, #101e2f);
  border: 1px solid #2b4057;
  border-radius: 11px;
  padding: 23px;
  margin: 0;
  min-width: 0;
  box-shadow: 0 10px 24px #00000014;
}
.panel h2 {
  margin-bottom: 18px;
}
.panel p,
.panel strong {
  overflow-wrap: anywhere;
}
.section-label {
  display: block;
  color: #9abdd9;
  font-size: 9px;
  letter-spacing: 0.17em;
  font-weight: 750;
  margin-bottom: 12px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.section-heading h2,
.section-heading p {
  margin: 0;
}
.section-heading a {
  font-size: 12px;
  white-space: nowrap;
}
.badge {
  display: inline-flex;
  border: 1px solid #53718c70;
  background: #19354a70;
  color: #bbd9eb;
  border-radius: 30px;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.025em;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.metric {
  padding: 16px 20px;
  border: 1px solid #2b4560;
  border-radius: 9px;
  background: linear-gradient(125deg, #18314b, #132436);
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.metric strong {
  font-size: 31px;
  line-height: 1.2;
  letter-spacing: -0.05em;
}
.metric > span {
  font-size: 11px;
  color: #c3d4e7;
}
.metric small {
  font-size: 9px;
  color: #8aa7c2;
}
.metric-1 {
  background: linear-gradient(120deg, #312c51, #19283f);
}
.metric-2 {
  background: linear-gradient(120deg, #193c48, #15283c);
}
.metric-3 {
  background: linear-gradient(120deg, #293450, #15263c);
}
.cinematic-hero {
  height: 280px;
  border: 1px solid #365877;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  background: #0e2038;
}
.cinematic-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 48%;
  z-index: -2;
}
.cinematic-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    #071423fa 5%,
    #0c1c31de 32%,
    #10213c27 76%
  );
}
.cinematic-hero > div {
  padding: 30px 34px;
  max-width: 510px;
}
.cinematic-hero h2 {
  font-size: 35px;
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin-bottom: 12px;
  color: #fff;
}
.cinematic-hero p {
  font-size: 13px;
  max-width: 340px;
  margin-bottom: 19px;
  color: #cbd8e8;
}
.cinematic-hero .section-label {
  color: #9cd8fd;
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.quick-actions > a {
  position: relative;
  border: 1px solid #344b65;
  border-radius: 9px;
  padding: 17px;
  background: linear-gradient(145deg, #20354e, #152437);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.15s;
}
.quick-actions > a:hover {
  transform: translateY(-2px);
}
.quick-actions b {
  font-size: 25px;
  line-height: 1.2;
  color: #9fbdff;
  margin-bottom: 7px;
}
.quick-actions strong {
  font-size: 12px;
}
.quick-actions small {
  font-size: 10px;
}
.quick-actions > a > span {
  position: absolute;
  right: 16px;
  top: 16px;
  color: #a6cbed;
}
.quick-actions > a:first-child {
  background: linear-gradient(135deg, #573871, #22426a);
}
.split-wide {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 20px;
  margin: 20px 0;
}
.recent-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid #2c4053;
}
.recent-item:last-child {
  border: 0;
}
.recent-item > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.recent-item strong {
  display: block;
  font-size: 12px;
}
.recent-item small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
}
.provider {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #dce9f8;
  font-size: 12px;
  font-weight: 700;
}
.provider b {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  background: #3c4470;
  border-radius: 7px;
  color: #fff;
  font-size: 18px;
}
.provider-twitch b {
  background: linear-gradient(130deg, #954aea, #573bad);
}
.provider-youtube b {
  background: linear-gradient(130deg, #f03d56, #a9233b);
}
.provider-discord b {
  background: linear-gradient(130deg, #6382fb, #435ec4);
}
.provider-line {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #2b4057;
}
.provider-line > span:nth-child(2) {
  margin-left: auto;
  font-size: 10px;
  text-align: right;
}
.provider-line small {
  display: block;
  font-size: 9px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #79d6c4;
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.fields {
  display: grid;
  gap: 16px;
}
.fields label,
.library-toolbar label {
  display: grid;
  gap: 7px;
  font-size: 11px;
  color: #b8cbe0;
  font-weight: 550;
}
.fields input,
.fields select,
.fields textarea,
.library-toolbar input,
.library-toolbar select {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #37516b;
  border-radius: 6px;
  background: #0b1929;
  color: #f2f6fc;
  font: inherit;
  min-height: 44px;
}
.fields textarea {
  min-height: 110px;
  resize: vertical;
  font-size: 13px;
  line-height: 1.6;
}
.fields input[type="color"] {
  padding: 5px;
  max-width: 120px;
}
.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.fields > button {
  margin-top: 5px;
}
.creative-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.35fr);
  gap: 26px;
  align-items: start;
}
.composer {
  border-top: 2px solid #8f80e5;
}
.composer textarea {
  min-height: 195px;
}
.composer .button.primary {
  min-height: 49px;
}
.output-space {
  min-width: 0;
  padding: 7px 0;
}
.output-space h2 {
  font-size: 26px;
  max-width: 360px;
}
.output-space > .section-heading {
  align-items: end;
}
.output-options {
  display: grid;
  gap: 13px;
}
.output-option {
  border: 1px solid #37516f;
  border-radius: 11px;
  padding: 22px 24px;
  background: linear-gradient(115deg, #253655, #152438);
  position: relative;
}
.output-option:nth-child(2) {
  background: linear-gradient(115deg, #29314f, #162638);
}
.output-option:nth-child(3) {
  background: linear-gradient(115deg, #193e50, #162738);
}
.option-number {
  font-size: 11px;
  color: #bcaafa;
  margin-right: 10px;
}
.output-option p {
  font-size: 18px;
  line-height: 1.5;
  color: #edf4ff;
  margin: 18px 0;
}
.output-option button {
  font-size: 11px;
}
.output-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 18px 0;
}
.output-footer > span {
  font-size: 11px;
  color: #b4d6d3;
}
.history-strip {
  margin-top: 25px;
  border-top: 1px solid #2c4055;
  padding-top: 17px;
}
.history-strip h3 {
  font-size: 12px;
  color: #b8cde0;
}
.history-strip a {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 12px;
  border-bottom: 1px solid #23394f;
}
.creative-empty {
  padding: 60px 25px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0, #30436988, transparent);
  border: 1px dashed #3b5370;
  border-radius: 12px;
}
.creative-empty > span {
  font-size: 48px;
  color: #b8a4ff;
}
.creative-empty p {
  max-width: 350px;
  margin: 15px auto;
}
.creative-empty h3 {
  font-size: 24px;
}
.library-toolbar {
  display: flex;
  align-items: end;
  gap: 15px;
  margin-bottom: 23px;
}
.library-toolbar label:first-child {
  flex: 1;
}
.library-toolbar > span {
  font-size: 11px;
  margin-bottom: 12px;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.media-card {
  border: 1px solid #2d4660;
  background: #122236;
  border-radius: 10px;
  overflow: hidden;
}
.media-card-body {
  padding: 19px;
}
.media-card h2 {
  font-size: 18px;
  margin: 15px 0 9px;
}
.media-card-body > p {
  font-size: 12px;
}
.media-card-body .actions {
  gap: 7px;
}
.media-card-body details {
  margin-top: 14px;
}
.content-art {
  height: 185px;
  position: relative;
  background: linear-gradient(130deg, #334774, #66497e);
  overflow: hidden;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.content-art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.content-art > span,
.content-art > small {
  position: relative;
  z-index: 1;
}
.content-art > span {
  font-size: 26px;
  color: #e9f2ff;
}
.content-art > strong {
  font-size: 23px;
  max-width: 250px;
  letter-spacing: -0.045em;
  line-height: 1.12;
}
.content-art > small {
  margin-top: 14px;
  font-size: 9px;
  color: #d4e4ff;
  letter-spacing: 0.1em;
}
.art-thumbnail:after,
.art-clip:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0a182cb5, transparent);
}
.content-art.small {
  height: 58px;
  width: 84px;
  flex: none;
  padding: 8px;
  border-radius: 6px;
}
.content-art.small strong,
.content-art.small small {
  display: none;
}
.content-art.small span {
  font-size: 24px;
}
.draft-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 25px;
}
.draft-list {
  padding: 4px 0;
}
.draft-list h2 {
  font-size: 16px;
}
.draft-list > a {
  font-size: 12px;
  display: block;
  padding: 14px;
}
.draft-choice {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 9px;
  width: 100%;
  background: #102033;
  border: 1px solid #2c435d;
  border-radius: 9px;
  padding: 16px;
  text-align: left;
  margin-bottom: 10px;
  color: white;
}
.draft-choice strong {
  font-size: 13px;
}
.draft-choice small {
  font-size: 10px;
}
.draft-choice.selected {
  background: linear-gradient(105deg, #382e58, #153451);
  border-color: #947bc1;
  box-shadow: inset 3px 0 #b7a3ff;
}
.draft-editor {
  max-width: 860px;
}
.draft-editor h2 {
  font-size: 25px;
}
.draft-editor textarea {
  min-height: 135px;
}
.readback {
  display: grid;
  grid-template-columns: 120px 1fr;
  font-size: 12px;
}
.readback dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.tool-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 20px 0;
}
.tool-tiles a {
  padding: 22px 20px;
  border: 1px solid #39526f;
  border-radius: 10px;
  background: linear-gradient(140deg, #253c59, #142236);
}
.tool-tiles a > span {
  font-size: 30px;
  color: #c8aff9;
}
.tool-tiles h2 {
  font-size: 16px;
  margin: 16px 0 9px;
}
.tool-tiles p {
  font-size: 11px;
}
.tool-tiles b {
  font-size: 10px;
  color: #95cefb;
}
.checklist > div {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #2c4154;
}
.checklist strong {
  font-size: 12px;
  flex: 1;
}
.checklist > div > span {
  color: #a8dcdb;
}
.checklist .button {
  font-size: 10px;
}
.widget-preview {
  border: 1px solid #5d6597;
  border-radius: 9px;
  background: linear-gradient(125deg, #2d5075, #483661);
  padding: 27px 20px;
  text-align: center;
}
.widget-preview h3 {
  font-size: 24px;
  margin: 13px 0 8px;
}
.widget-preview p {
  font-size: 12px;
  margin: 0;
}
.thumbnail-layout {
  grid-template-columns: minmax(250px, 0.65fr) minmax(0, 1.5fr);
}
.canvas-space {
  min-width: 0;
}
.thumbnail-canvas {
  aspect-ratio: 16/9;
  position: relative;
  display: grid;
  align-items: center;
  background:
    linear-gradient(100deg, #0a1439e8, #23375938),
    url("/ui/assets/cinematic/studio-showcase-1600.webp") center/cover;
  border: 1px solid #5b709c;
  border-radius: 10px;
  overflow: hidden;
}
.thumbnail-canvas.portrait {
  aspect-ratio: 9/16;
  max-height: 560px;
  margin: auto;
  width: min(100%, 315px);
}
.safe-region {
  margin: 9% 10%;
  padding: 12px;
  border: 1px dashed #c7dcff77;
  color: white;
}
.safe-region > span {
  font-size: 9px;
  letter-spacing: 0.15em;
}
.safe-region h3 {
  font-size: clamp(24px, 3vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  max-width: 430px;
  margin: 15px 0;
}
.safe-region small {
  font-size: 8px;
  color: #d8defc;
}
.variant-1.thumbnail-canvas {
  background:
    linear-gradient(100deg, #132c44ec, #48597366),
    url("/ui/assets/cinematic/studio-showcase-1600.webp") center/cover;
}
.variant-2.thumbnail-canvas {
  background: linear-gradient(135deg, #1b374d, #443b61);
}
.variant-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 15px 0;
}
.variant-strip button {
  padding: 15px;
  text-align: left;
  color: #e1e8ff;
  background: linear-gradient(140deg, #253e62, #4b3964);
  border: 1px solid #516884;
  border-radius: 7px;
  display: grid;
  gap: 8px;
}
.variant-strip button:nth-child(2) {
  background: linear-gradient(140deg, #23444a, #2d415d);
}
.variant-strip button:nth-child(3) {
  background: #25374a;
}
.variant-strip button[aria-pressed="true"] {
  outline: 2px solid #b59bfd;
  outline-offset: 2px;
}
.variant-strip span {
  font-size: 10px;
  color: #bcd4ed;
}
.variant-strip strong {
  font-size: 12px;
}
.clip-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(250px, 0.75fr);
  gap: 24px;
}
.video-stage {
  position: relative;
  aspect-ratio: 16/9;
  border: 1px solid #526b87;
  border-radius: 10px;
  overflow: hidden;
  background: #091625;
}
.video-stage > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
}
.video-stage > div {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: linear-gradient(0deg, #0b102adb, transparent);
}
.play-symbol {
  width: 62px;
  height: 62px;
  border: 1px solid #9fb5df;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 29px;
  background: #1a294b88;
}
.video-stage strong {
  font-size: 22px;
}
.video-stage small {
  font-size: 10px;
  color: #e1e8f5;
  text-align: center;
}
.timeline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  color: #bccfea;
  padding: 20px 0;
}
.timeline-track {
  height: 52px;
  flex: 1;
  border: 1px solid #7a72d4;
  background: repeating-linear-gradient(
    90deg,
    #4c47994d 0 5px,
    #337c8c55 5px 8px
  );
  border-radius: 6px;
  display: grid;
  place-items: center;
}
.timeline-track b {
  font-size: 8px;
  letter-spacing: 0.12em;
  background: #10243acc;
  padding: 6px;
}
.clip-candidate {
  display: flex;
  gap: 18px;
  padding: 20px;
  background: #172b3f;
  border-radius: 8px;
  margin-bottom: 20px;
}
.score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  border: 1px solid #4a677f;
  border-radius: 9px;
  font-size: 24px;
  color: #9edce9;
}
.score small {
  font-size: 9px;
}
.clip-candidate h3 {
  margin: 0 0 5px;
}
.clip-candidate p {
  font-size: 12px;
  margin: 0 0 8px;
}
.vertical-preview {
  aspect-ratio: 9/12;
  max-height: 230px;
  margin: 24px auto 16px;
  max-width: 173px;
  border: 1px solid #71658c;
  border-radius: 8px;
  background:
    linear-gradient(0deg, #231e44c9, #30425955),
    url("/ui/assets/creator-landscape.svg") center/cover;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  text-align: center;
}
.vertical-preview strong {
  font-size: 19px;
}
.vertical-preview span,
.vertical-preview small {
  font-size: 9px;
  color: #d5dff0;
}
.broadcast-head {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 21px 24px;
  border: 1px solid #2e4b60;
  background: #132b39;
  border-radius: 10px;
  margin-bottom: 22px;
}
.broadcast-head h2 {
  margin: 0 0 5px;
  font-size: 19px;
}
.broadcast-head p {
  margin: 0;
  font-size: 11px;
}
.broadcast-head > .button {
  margin-left: auto;
}
.signal {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #90a1b4;
  flex: none;
}
.signal.online {
  background: #80dcc7;
  box-shadow: 0 0 15px #80dcc744;
}
.obs-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 22px;
}
.scene-monitor {
  position: relative;
  aspect-ratio: 16/10;
  border: 1px solid #466180;
  border-radius: 10px;
  overflow: hidden;
}
.scene-monitor > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scene-monitor > div {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #081527f5, transparent 85%);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: end;
}
.scene-monitor h2 {
  font-size: 32px;
  margin: 12px 0 3px;
}
.scene-monitor .badge {
  align-self: start;
}
.scene-monitor p {
  margin: 0;
}
.scene-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.scene-buttons button {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 14px;
  background: #152b42;
  border: 1px solid #3c5471;
  color: #dce8f7;
  border-radius: 7px;
  font-size: 11px;
}
.scene-buttons button[aria-pressed="true"] {
  border-color: #bca2fa;
  background: #392f58;
}
.scene-buttons span {
  font-size: 23px;
  color: #b3c7fb;
}
.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #31475b;
  padding: 16px 0;
}
.control-row strong {
  font-size: 12px;
}
.control-row small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
}
.audio-unavailable {
  margin-top: 25px;
  color: #a3bed0;
}
.audio-unavailable > span {
  font-size: 27px;
  margin-right: 12px;
}
.audio-unavailable p {
  font-size: 11px;
  margin: 10px 0 0;
}
.platform-stack {
  display: grid;
  gap: 19px;
}
.platform-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 0.7fr;
  gap: 27px;
  padding: 27px;
  border: 1px solid #3d5068;
  border-radius: 11px;
  background: linear-gradient(110deg, #282342, #13263a 55%);
}
.platform-card.provider-youtube {
  background: linear-gradient(110deg, #392735, #13263a 55%);
}
.platform-card.provider-discord {
  background: linear-gradient(110deg, #262f57, #13263a 55%);
}
.platform-identity h2 {
  font-size: 25px;
  margin: 15px 0 7px;
}
.platform-identity p {
  font-size: 11px;
}
.platform-identity > .provider {
  font-size: 0;
}
.platform-identity > .provider b {
  width: 45px;
  height: 45px;
  font-size: 27px;
}
.platform-health h3 {
  margin: 12px 0 5px;
}
.platform-health p {
  font-size: 11px;
}
.platform-actions {
  display: grid;
  align-content: start;
  gap: 8px;
}
.platform-actions details {
  font-size: 10px;
}
.chart-panel {
  min-width: 0;
}
.activity-chart {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 35px;
}
.chart-grid {
  stroke: #37516b;
  stroke-width: 1;
  stroke-dasharray: 3 7;
}
.activity-chart text {
  fill: #aebfd3;
  font-size: 11px;
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: #a8d7f0;
}
.credit-ring {
  width: 170px;
  height: 170px;
  border: 10px solid #49629a;
  border-right-color: #a88ddd;
  border-bottom-color: #58b6d3;
  border-radius: 50%;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(#263b62, #132134);
}
.credit-ring strong {
  font-size: 42px;
}
.credit-ring span {
  font-size: 10px;
  color: #bcd1e4;
}
.list-row {
  padding: 12px 0;
  border-bottom: 1px solid #2b4055;
}
.list-row strong {
  font-size: 11px;
}
.list-row p {
  font-size: 10px;
  margin: 5px 0 0;
}
.settings-layout {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 32px;
  max-width: 1000px;
}
.settings-index {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 20px 0;
  gap: 15px;
}
.settings-index h2 {
  margin: 0;
}
.settings-index a {
  display: block;
  border-bottom: 1px solid #263a50;
  width: 100%;
  padding: 8px 0;
  font-size: 12px;
}
.avatar {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  background: linear-gradient(130deg, #317491, #735392);
  border: 1px solid #8da7d0;
  border-radius: 50%;
  font-size: 27px;
  color: #fff;
}
.settings-layout .panel {
  margin-bottom: 18px;
}
.setting-row {
  display: flex;
  align-items: center;
  gap: 20px;
}
.setting-row p {
  font-size: 12px;
  margin-bottom: 0;
}
.setting-row .button {
  flex: none;
  max-width: 190px;
}
.onboarding-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 45px;
  max-width: 1060px;
}
.onboarding-layout aside > h2 {
  font-size: 18px;
}
.journey-steps {
  list-style: none;
  padding: 0;
  margin: 22px 0;
}
.journey-steps button {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: #b6c8dc;
  display: flex;
  align-items: center;
  gap: 13px;
  border-radius: 8px;
}
.journey-steps span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #57708b;
  border-radius: 50%;
  font-size: 10px;
}
.journey-steps button[aria-current="step"] {
  background: linear-gradient(90deg, #493965, #1b354e);
  color: white;
}
.journey-task {
  border: 1px solid #485c7f;
  border-radius: 15px;
  padding: 48px;
  background:
    radial-gradient(ellipse at 85% 0, #493c7444, transparent),
    linear-gradient(150deg, #1e3954, #102033);
  display: flex;
  align-items: start;
  flex-direction: column;
  justify-content: center;
  min-height: 510px;
}
.journey-symbol {
  font-size: 64px;
  color: #b9a9f6;
  margin-bottom: 28px;
}
.journey-task h2 {
  font-size: 37px;
  max-width: 450px;
  line-height: 1.12;
  margin: 0 0 20px;
}
.journey-task p {
  max-width: 440px;
  font-size: 14px;
}
.journey-task .meta {
  margin-top: 25px;
  font-size: 10px;
}
.brand-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
}
.brand-preview {
  padding: 20px 0;
}
.brand-poster {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #4d668d;
  border-radius: 13px;
  padding: 45px 32px;
  min-height: 365px;
  background:
    linear-gradient(0deg, #101b33e8, #233d6477),
    url("/ui/assets/cinematic/home-hero-1600.webp") center/cover;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: end;
}
.brand-poster h2 {
  font-size: 31px;
  margin: 21px 0 7px;
}
.brand-poster > span {
  background: #4c4584;
  padding: 8px 15px;
  border-radius: 6px;
  font-size: 12px;
}
.palette {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 17px 0;
}
.palette span {
  height: 60px;
  padding: 12px 8px;
  border-radius: 6px;
  background: #285e85;
  color: #d3e4fb;
  font-size: 9px;
  display: flex;
  align-items: end;
}
.palette span:nth-child(2) {
  background: #5d4d89;
}
.palette span:nth-child(3) {
  background: #142538;
  border: 1px solid #405672;
}
.notification-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 30px;
}
.notification-layout > aside {
  align-self: start;
}
.notification-layout > aside a {
  display: block;
  margin-top: 20px;
  font-size: 12px;
}
.feed-heading {
  font-size: 11px;
  color: #a3b8d0;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  margin: 27px 0 15px;
}
.notification {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border: 1px solid #36516e;
  border-radius: 9px;
  background: linear-gradient(110deg, #213752, #152539);
  margin: 10px 0;
}
.notification.read {
  background: #122134;
  opacity: 0.8;
}
.notification-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2e5263;
  display: grid;
  place-items: center;
  color: #a6e6d7;
  flex: none;
}
.notification h3 {
  font-size: 13px;
  margin: 0 0 6px;
}
.notification p {
  font-size: 10px;
  margin: 0;
}
.notification > .button {
  margin-left: auto;
  flex: none;
}
.empty-feed {
  font-size: 12px;
  padding: 24px;
  border: 1px dashed #364b61;
  border-radius: 8px;
}
.schedule-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 27px;
}
.schedule-layout > aside {
  align-self: start;
}
.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  margin-bottom: 24px;
}
.week-strip > div {
  padding: 13px 5px;
  text-align: center;
  background: #172b42;
  border: 1px solid #36526b;
  border-radius: 8px;
  display: grid;
  gap: 5px;
}
.week-strip > div:first-child {
  background: linear-gradient(150deg, #514173, #254b6e);
  border-color: #9c90d4;
}
.week-strip small {
  font-size: 10px;
}
.week-strip strong {
  font-size: 21px;
}
.schedule-timeline article {
  display: flex;
  gap: 20px;
  padding: 23px 0;
  border-bottom: 1px solid #3b4f66;
}
.schedule-date {
  width: 53px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #b8cde7;
}
.schedule-date strong {
  font-size: 31px;
}
.schedule-date span {
  font-size: 11px;
}
.schedule-timeline h3 {
  margin: 12px 0 8px;
}
.schedule-timeline p {
  font-size: 12px;
}
.website-entry {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  border: 1px solid #355272;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(130deg, #172f46, #28314d);
  align-items: center;
}
.website-entry > div {
  padding: 40px;
}
.website-entry h2 {
  font-size: 33px;
  line-height: 1.12;
}
.website-entry img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}
.website-entry p {
  font-size: 13px;
}
.readback,
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
details {
  margin-top: 18px;
  border-top: 1px solid #30465e;
  padding-top: 12px;
  font-size: 12px;
  color: #adc2d7;
}
summary {
  cursor: pointer;
  min-height: 36px;
  align-content: center;
  color: #bed4e7;
  font-size: 11px;
}
details .fields {
  margin-top: 15px;
}
details p {
  font-size: 11px;
  margin: 10px 0;
}
.button,
button,
a,
input,
select,
textarea {
  transition:
    border-color 0.15s,
    background-color 0.15s,
    box-shadow 0.15s;
}
#content {
  min-width: 0;
}
img,
svg {
  max-width: 100%;
}
.skip {
  position: absolute;
  left: 15px;
  top: -80px;
  z-index: 100;
  background: #173f60;
  color: white;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
@media (min-width: 1600px) {
  .studio-main {
    padding-left: 45px;
    padding-right: 45px;
  }
  .cinematic-hero {
    height: 310px;
  }
}
@media (max-width: 1100px) {
  .studio-shell {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 9px;
    padding-right: 9px;
  }
  .sidebar nav a {
    font-size: 10px;
    gap: 8px;
  }
  .studio-main {
    padding: 24px;
  }
  .creative-layout,
  .clip-layout {
    gap: 18px;
    grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1fr);
  }
  .clip-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.8fr);
  }
  .panel {
    padding: 19px;
  }
  .platform-card {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 18px;
  }
  .platform-actions {
    grid-column: 1/-1;
    grid-template-columns: repeat(3, 1fr);
  }
  .platform-actions details {
    grid-column: 1/-1;
  }
  .draft-layout {
    grid-template-columns: 210px 1fr;
    gap: 17px;
  }
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick-actions a {
    padding: 15px;
  }
  .quick-actions b {
    font-size: 22px;
  }
  .obs-layout {
    grid-template-columns: 1fr;
  }
  .broadcast-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
  .broadcast-controls > h2,
  .audio-unavailable {
    grid-column: 1/-1;
  }
  .tool-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
  .onboarding-layout {
    grid-template-columns: 190px 1fr;
    gap: 22px;
  }
  .journey-task {
    padding: 30px;
  }
  .brand-layout {
    gap: 20px;
  }
  .setting-row {
    flex-wrap: wrap;
  }
  .settings-layout {
    grid-template-columns: 190px 1fr;
    gap: 22px;
  }
  .output-space > .section-heading {
    display: block;
  }
  .output-space > .section-heading > a {
    display: inline-block;
    margin-top: 10px;
  }
  .output-option {
    padding: 18px;
  }
  .notification-layout {
    grid-template-columns: 1fr;
  }
  .notification-layout > aside {
    max-width: 600px;
  }
  .schedule-layout {
    grid-template-columns: 1fr;
  }
  .review-grid {
    grid-template-columns: 1fr 1fr;
  }
  .website-entry > div {
    padding: 25px;
  }
}
@media (max-width: 820px) {
  .studio-shell {
    display: block;
  }
  .sidebar {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: auto;
    padding: 12px 20px;
    border-bottom: 1px solid #2c4257;
    border-right: 0;
    flex-wrap: wrap;
  }
  .brand {
    padding: 0;
    font-size: 24px;
  }
  .sidebar #menu {
    display: block;
    border: 1px solid #425970;
    background: #152a40;
    color: #d9e8f8;
    border-radius: 7px;
    padding: 8px 14px;
    font-size: 11px;
    min-height: 38px;
  }
  .sidebar nav {
    display: none;
    flex-basis: 100%;
    padding-top: 16px;
    grid-template-columns: 1fr 1fr;
  }
  .sidebar nav.open {
    display: grid;
  }
  .sidebar nav a {
    font-size: 12px;
    min-height: 44px;
  }
  .sidebar small,
  .sidebar > p {
    display: none;
  }
  .sidebar:has(nav.open) > p {
    display: flex;
    flex-basis: 100%;
    margin-top: 10px;
  }
  .sidebar > p a {
    min-height: 44px;
    font-size: 12px;
  }
  .studio-main {
    padding: 23px;
  }
  .workspace-head h1 {
    font-size: 29px;
  }
  .creative-layout {
    grid-template-columns: 1fr 1.2fr;
  }
  .thumbnail-layout {
    grid-template-columns: 1fr;
  }
  .thumbnail-layout .canvas-space {
    grid-row: 1;
  }
  .thumbnail-layout .brief {
    max-width: none;
  }
  .thumbnail-layout .brief .fields {
    grid-template-columns: 1fr 1fr;
  }
  .thumbnail-layout .brief .fields > label:nth-child(2) {
    grid-row: span 2;
  }
  .thumbnail-layout .brief .fields > .button {
    align-self: end;
  }
  .thumbnail-canvas {
    max-height: 420px;
  }
  .brand-layout {
    grid-template-columns: 1.15fr 1fr;
  }
  .brand-poster {
    padding: 25px;
    min-height: 330px;
  }
  .brand-poster h2 {
    font-size: 25px;
  }
  .cinematic-hero {
    height: 290px;
  }
  .split-wide {
    gap: 16px;
  }
  .draft-layout {
    grid-template-columns: 210px 1fr;
  }
  .workspace-head .button {
    min-width: auto;
    padding: 9px 15px;
  }
  .study {
    font-size: 8px;
  }
  .settings-layout {
    grid-template-columns: 190px 1fr;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 13px;
  }
  .study {
    font-size: 7px;
    letter-spacing: 0.07em;
    height: 23px;
  }
  .sidebar {
    padding: 11px 17px;
  }
  .studio-main {
    padding: 19px 16px 35px;
  }
  .workspace-head {
    align-items: center;
  }
  .workspace-head h1 {
    font-size: 27px;
  }
  .workspace-head .eyebrow {
    font-size: 8px;
  }
  .workspace-head #subtitle {
    font-size: 11px;
    max-width: 235px;
    line-height: 1.4;
  }
  .workspace-head > .button {
    font-size: 10px;
    padding: 7px 12px;
    min-height: 38px;
  }
  .workspace-head p {
    max-width: 240px;
  }
  #status {
    font-size: 9px;
    margin: 9px 0 14px;
  }
  .cinematic-hero {
    height: 310px;
  }
  .cinematic-hero > div {
    padding: 25px 23px;
    max-width: 330px;
  }
  .cinematic-hero h2 {
    font-size: 30px;
    max-width: 280px;
  }
  .cinematic-hero p {
    font-size: 12px;
    max-width: 245px;
  }
  .cinematic-hero > img {
    object-position: 66% center;
  }
  .cinematic-hero:after {
    background: linear-gradient(90deg, #081829ed, #0f1d30a8 62%, #15233822);
  }
  .section-label {
    font-size: 8px;
    margin-bottom: 10px;
  }
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    margin: 15px 0;
  }
  .metric {
    padding: 12px 15px;
  }
  .metric strong {
    font-size: 28px;
  }
  .metric small {
    font-size: 8px;
  }
  .metric > span {
    font-size: 10px;
  }
  .quick-actions {
    gap: 9px;
    margin: 15px 0;
  }
  .quick-actions a {
    padding: 14px;
  }
  .quick-actions strong {
    font-size: 11px;
  }
  .quick-actions small {
    font-size: 9px;
  }
  .quick-actions b {
    margin-bottom: 3px;
  }
  .split-wide,
  .review-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 15px 0;
  }
  .panel {
    padding: 19px;
    border-radius: 9px;
  }
  .panel h2 {
    font-size: 19px;
  }
  .creative-layout,
  .clip-layout,
  .brand-layout,
  .settings-layout,
  .onboarding-layout {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
  .creative-layout > *,
  .clip-layout > *,
  .brand-layout > *,
  .settings-layout > *,
  .onboarding-layout > * {
    width: 100%;
    min-width: 0;
  }
  .generate-layout .composer textarea {
    min-height: 130px;
  }
  .generate-layout .composer h2 {
    margin-bottom: 15px;
  }
  .generate-layout .fields {
    gap: 12px;
  }
  .fields textarea {
    min-height: 100px;
  }
  .output-space h2 {
    font-size: 24px;
  }
  .output-option p {
    font-size: 17px;
  }
  .output-options {
    gap: 11px;
  }
  .output-footer {
    align-items: start;
    font-size: 10px;
  }
  .output-footer > span {
    max-width: 170px;
  }
  .library-toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .library-toolbar label:first-child {
    flex-basis: 100%;
  }
  .library-toolbar label:nth-child(2) {
    flex: 1;
  }
  .library-toolbar > span {
    display: none;
  }
  .media-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .content-art {
    height: 185px;
  }
  .media-card-body {
    padding: 18px;
  }
  .media-card-body h2 {
    font-size: 20px;
  }
  .draft-layout {
    display: block;
  }
  .draft-list {
    margin-bottom: 20px;
  }
  .draft-list .draft-choice {
    display: inline-flex;
    width: 100%;
    padding: 12px;
    gap: 6px;
  }
  .draft-list .section-heading {
    margin-bottom: 10px;
  }
  .draft-list > a {
    padding: 8px;
  }
  .draft-editor h2 {
    font-size: 23px;
  }
  .draft-editor .two-fields {
    grid-template-columns: 1fr;
  }
  .tool-tiles {
    gap: 10px;
    margin: 15px 0;
  }
  .tool-tiles a {
    padding: 17px 14px;
  }
  .tool-tiles a > span {
    font-size: 25px;
  }
  .tool-tiles h2 {
    font-size: 14px;
    margin: 9px 0 7px;
  }
  .tool-tiles p {
    font-size: 10px;
  }
  .thumbnail-layout .canvas-space {
    order: -1;
  }
  .thumbnail-layout .brief .fields {
    display: grid;
    grid-template-columns: 1fr;
  }
  .thumbnail-canvas {
    min-height: 190px;
  }
  .safe-region h3 {
    font-size: 28px;
    max-width: 240px;
  }
  .variant-strip {
    gap: 8px;
  }
  .variant-strip button {
    padding: 10px;
    min-height: 75px;
  }
  .variant-strip strong {
    font-size: 10px;
  }
  .canvas-space > .section-heading h2 {
    font-size: 19px;
  }
  .thumbnail-layout .canvas-space .history-strip {
    display: none;
  }
  .video-stage strong {
    font-size: 19px;
  }
  .video-stage .play-symbol {
    width: 44px;
    height: 44px;
    font-size: 23px;
  }
  .video-stage > div {
    gap: 8px;
    padding: 15px;
  }
  .video-stage small {
    font-size: 8px;
  }
  .clip-stage .section-heading h2 {
    font-size: 19px;
  }
  .clip-candidate {
    padding: 15px;
    gap: 13px;
  }
  .vertical-preview {
    max-height: 200px;
  }
  .broadcast-head {
    padding: 17px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .broadcast-head > div {
    flex: 1;
  }
  .broadcast-head h2 {
    font-size: 17px;
  }
  .broadcast-head .button {
    margin-left: 24px;
  }
  .broadcast-head p {
    font-size: 10px;
  }
  .obs-layout {
    gap: 18px;
  }
  .scene-monitor {
    aspect-ratio: 16/10;
  }
  .scene-monitor > div {
    padding: 20px;
  }
  .scene-monitor h2 {
    font-size: 27px;
  }
  .scene-buttons {
    gap: 8px;
  }
  .scene-buttons button {
    font-size: 10px;
    padding: 11px;
  }
  .broadcast-controls {
    display: block;
  }
  .control-row {
    padding: 13px 0;
  }
  .platform-card {
    display: block;
    padding: 22px;
  }
  .platform-identity {
    margin-bottom: 20px;
  }
  .platform-identity .provider {
    float: left;
    margin-right: 15px;
  }
  .platform-identity h2 {
    font-size: 23px;
    margin: 3px 0 6px;
  }
  .platform-identity p {
    min-height: 25px;
  }
  .platform-actions {
    display: flex;
    flex-wrap: wrap;
    margin-top: 18px;
  }
  .platform-actions > .button {
    flex: 1;
    min-width: 110px;
  }
  .platform-actions details {
    flex-basis: 100%;
  }
  .activity-chart {
    margin-top: 15px;
  }
  .settings-index {
    padding: 0;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 9px 15px;
  }
  .settings-index .avatar {
    width: 60px;
    height: 60px;
    grid-row: span 2;
  }
  .settings-index h2 {
    font-size: 20px;
    align-self: end;
  }
  .settings-index > .badge {
    justify-self: start;
  }
  .settings-index > a {
    grid-column: 1/-1;
    padding: 5px 0;
    min-height: 36px;
  }
  .journey-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin: 15px 0 0;
  }
  .journey-steps button {
    flex-direction: column;
    gap: 6px;
    padding: 9px 3px;
    font-size: 9px;
    text-align: center;
    min-height: 69px;
  }
  .journey-steps span {
    width: 23px;
    height: 23px;
    font-size: 9px;
  }
  .onboarding-layout aside > h2 {
    font-size: 19px;
    margin-bottom: 0;
  }
  .journey-task {
    min-height: 340px;
    padding: 27px;
  }
  .journey-symbol {
    font-size: 44px;
    margin-bottom: 17px;
  }
  .journey-task h2 {
    font-size: 30px;
    margin-bottom: 15px;
  }
  .journey-task p {
    font-size: 12px;
  }
  .brand-preview {
    order: -1;
    padding: 0;
  }
  .brand-poster {
    min-height: 230px;
    padding: 24px;
  }
  .brand-poster .avatar {
    width: 47px;
    height: 47px;
    font-size: 21px;
  }
  .brand-poster h2 {
    font-size: 26px;
    margin: 13px 0 5px;
  }
  .brand-poster p {
    font-size: 12px;
  }
  .palette {
    margin: 11px 0;
  }
  .palette span {
    height: 38px;
    padding: 8px;
  }
  .brand-preview > p {
    font-size: 11px;
  }
  .notification-layout {
    gap: 18px;
  }
  .notification {
    padding: 15px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .notification > div {
    flex: 1;
  }
  .notification > .button {
    margin-left: 42px;
    min-height: 36px;
    font-size: 10px;
  }
  .notification h3 {
    font-size: 12px;
  }
  .schedule-layout {
    gap: 20px;
  }
  .week-strip {
    gap: 5px;
  }
  .week-strip > div {
    padding: 10px 3px;
  }
  .week-strip strong {
    font-size: 18px;
  }
  .week-strip small {
    font-size: 8px;
  }
  .creative-empty {
    padding: 35px 20px;
  }
  .creative-empty h3 {
    font-size: 23px;
  }
  .website-entry {
    display: flex;
    flex-direction: column;
  }
  .website-entry > div {
    padding: 28px 24px;
  }
  .website-entry h2 {
    font-size: 29px;
  }
  .website-entry img {
    height: 180px;
    object-fit: cover;
  }
  .section-heading {
    gap: 10px;
  }
  .section-heading > .badge {
    font-size: 8px;
  }
  .section-heading a {
    font-size: 10px;
  }
  .readback {
    grid-template-columns: 85px 1fr;
  }
  details {
    margin-top: 16px;
  }
  details .fields {
    gap: 12px;
  }
  .two-fields {
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Explicitly replace the V4 mobile header inheritance, keeping focus on controls. */
#main:focus {
  outline: none;
}
.workspace-head {
  flex-direction: row;
  flex-wrap: nowrap;
}
.workspace-head > div {
  min-width: 0;
}
.workspace-head > .button {
  align-self: center;
  flex: none;
}
.history-strip button {
  margin: 6px 7px 0 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: left;
}
#content[aria-busy="true"] {
  opacity: 0.76;
}
button:disabled {
  cursor: wait;
  filter: saturate(0.6);
}
@media (max-width: 600px) {
  .workspace-head {
    align-items: start;
    gap: 10px;
  }
  .workspace-head > .button {
    align-self: start;
    margin-top: 16px;
  }
  .workspace-head > div {
    flex: 1;
  }
  .workspace-head #subtitle {
    max-width: 250px;
  }
  .thumbnail-layout .canvas-space .history-strip {
    display: block;
  }
}
/* V4 used this name for an inner grid; V5 uses it for the complete editor. */
.draft-editor {
  display: block;
}
