/* Drinkit-inspired neutral shell: color comes exclusively from actual content. */
:root {
  color-scheme: light;
  --bg: #fafafa;
  --panel: #ffffffb8;
  --line: #17171913;
  --muted: #808084;
  --text: #202024;
  --accent: #202024;
  --mint: #55605b;
  --danger: #b53845;
  font:
    15px/1.55 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
html {
  overscroll-behavior-x: none;
}
body {
  background: #fafafa;
  color: #202024;
  overflow-x: hidden;
}
button {
  background: #202024;
  color: #fff;
  border-radius: 999px;
  font-weight: 500;
  padding: 13px 21px;
  transition:
    background 0.18s,
    box-shadow 0.18s,
    opacity 0.18s;
}
button:hover {
  filter: none;
  background: #343438;
}
button.secondary {
  background: #ffffff9e;
  color: #2a2a2e;
  border: 1px solid #10101516;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}
button.secondary:hover {
  background: #ffffffd9;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #55545b;
  outline-offset: 4px;
}
button.danger {
  color: #a53141;
  background: #b5384509;
  border-color: #b5384517;
}
input,
select,
textarea {
  background: #ffffff86;
  border: 1px solid #18181d20;
  border-radius: 18px;
  padding: 14px;
  color: #242429;
}
select option {
  background: white;
  color: #222;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #17171b60;
  box-shadow: 0 0 0 3px #17171b07;
}
label {
  color: #646469;
  font-size: 12px;
  font-weight: 400;
}
textarea {
  min-height: 160px;
}
.eyebrow {
  color: #8c8b90;
  font-size: 8px;
  letter-spacing: 1.5px;
  font-weight: 500;
}
.brand {
  font-size: 20px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.8px;
  color: #25252a;
}
.logo {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  letter-spacing: -2px;
  font-size: 31px;
  padding: 0 4px 4px 0;
  background: #fff;
  color: #24242a;
  box-shadow: 0 2px 20px #00000007;
  border: 1px solid #00000009;
  position: relative;
}
.logo > span {
  position: absolute;
  font-size: 12px;
  right: 6px;
  top: 8px;
  letter-spacing: 0;
}
.shell {
  grid-template-columns: 220px 1fr;
  position: relative;
  z-index: 1;
  background: transparent;
}
aside {
  background: #ffffff7a;
  border-color: #19191f0d;
  padding: 33px 20px;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  z-index: 20;
}
aside .brand {
  margin: 0 8px;
}
.workspace {
  margin: 42px 0 29px;
}
.workspace .eyebrow {
  color: #919097;
  font-size: 8px;
  letter-spacing: 1px;
}
.workspace select {
  background: #ffffff98;
  border-color: #19191f13;
  border-radius: 999px;
  font-size: 11px;
  padding: 12px 14px;
}
nav {
  gap: 8px;
}
nav button {
  font-size: 18px;
  gap: 13px;
  padding: 11px 16px;
  color: #85838a;
  justify-content: flex-start;
  background: transparent;
  border-radius: 999px;
  font-weight: 350;
}
nav button span {
  font-size: 12px;
}
nav button.active {
  color: #232329;
  background: #ffffffc4;
  border-color: #16161b0e;
  box-shadow: 0 4px 20px #00000005;
}
nav button:hover {
  background: #ffffffa6;
}
.nav-separator {
  background: #17171b0d;
  margin: 15px 10px;
}
.aside-footer {
  font-size: 10px;
  color: #85838a;
  gap: 14px;
}
.aside-footer small {
  font-size: 8px;
  color: #aaa8af;
}
.text-button {
  background: none;
  color: #747179;
  padding: 0;
  font-size: 11px;
}
.text-button:hover {
  background: none;
  color: #1e1e24;
}
.mobile-more,
.mobile-logout {
  display: none;
}
main {
  padding: 0 44px;
  position: relative;
  background: transparent;
  min-width: 0;
}
header {
  height: 88px;
  border-bottom-color: #19191d0c;
  position: relative;
  z-index: 2;
}
.breadcrumb {
  font-size: 11px;
  color: #96929a;
}
.breadcrumb strong {
  color: #333139;
  font-weight: 450;
}
.breadcrumb span {
  color: #cbc7ce;
}
.header-right {
  gap: 10px;
}
.badge {
  border-radius: 999px;
  background: #ffffff8a;
  border-color: #1c1c2117;
  color: #79757d;
  padding: 6px 10px;
  font-size: 8px;
  letter-spacing: 0.8px;
  font-weight: 500;
  backdrop-filter: blur(24px);
}
.chip {
  border-radius: 999px;
  background: #ffffffa6;
  border-color: #19191e14;
  color: #333138;
  font-size: 11px;
  padding: 11px 16px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.chip:hover {
  background: #fff;
}
.map-button {
  background: #fff9;
  color: #555059;
  border: 1px solid #19191c13;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 23px;
  font-weight: 300;
  backdrop-filter: blur(20px);
}
.map-button:hover {
  background: #fff;
}
.screen-stage {
  position: relative;
  min-height: calc(100dvh - 110px);
  background: transparent;
  will-change: transform;
}
.screen-stage.is-dragging {
  user-select: none;
  cursor: grabbing;
}
.screen-snapshot {
  overflow: hidden;
  background: #fafafaef;
  backdrop-filter: blur(25px);
}
.screen-snapshot video,
.screen-snapshot canvas {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.page-heading {
  margin: 34px 0 8px;
}
.page-heading h1 {
  font-weight: 430;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 10px;
}
.page-heading .eyebrow {
  font-size: 8px;
  color: #9a969e;
  letter-spacing: 1.7px;
  margin-bottom: 11px;
}
.page-heading p:empty {
  display: none;
}
.page-heading p {
  font-size: 12px;
  color: #827e86;
}
.status-dot {
  font-size: 10px;
  color: #8e8993;
}
.status-dot:before {
  background: #858580;
  width: 5px;
  height: 5px;
}
.window-location {
  font-size: 10px;
  color: #a49fa8;
  letter-spacing: 0.15px;
  margin: 8px 0 26px;
  min-height: 15px;
  line-height: 1.7;
}
.window-location:empty {
  display: none;
}
.studio-view .screen-stage {
  max-width: 1100px;
  margin: auto;
}
.studio-view .page-heading h1 {
  font-size: 35px;
}
.ambient-media {
  position: fixed;
  inset: -15%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  filter: blur(75px);
  opacity: 0.16;
}
.ambient-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.studio-canvas {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  max-height: 60vh;
  border-radius: 38px;
  overflow: hidden;
  background: #ffffff80;
  border: 1px solid #fff;
  box-shadow: 0 15px 70px #00000003;
}
.studio-canvas > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.studio-canvas.has-media {
  aspect-ratio: 16/8.5;
  background: transparent;
  border-color: #ffffffad;
}
.canvas-content {
  width: 100%;
  padding: 42px;
  z-index: 1;
  position: relative;
}
.studio-canvas.has-media .canvas-content {
  background: linear-gradient(0deg, #00000062, transparent);
  color: #fff;
  align-self: flex-end;
}
.canvas-content h2 {
  font-size: 29px;
  font-weight: 430;
  line-height: 1.15;
  letter-spacing: -1px;
  max-width: 680px;
  margin-bottom: 17px;
}
.canvas-content > .eyebrow {
  font-size: 8px;
  color: #8b858f;
  margin-bottom: 20px;
}
.has-media .eyebrow {
  color: #ffffffae;
}
.canvas-excerpt {
  font-size: 13px;
  color: #8b858e;
  white-space: pre-line;
  line-height: 1.85;
  max-width: 680px;
  margin-bottom: 25px;
}
.canvas-open {
  color: #27242b;
  background: #ffffff9e;
  border: 1px solid #ffffffa6;
  backdrop-filter: blur(25px);
  font-size: 11px;
  padding: 11px 20px;
}
.canvas-open:hover {
  background: #fff;
}
.is-empty {
  display: flex;
  flex-direction: column;
  text-align: center;
  min-height: 400px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.is-empty .empty-mark {
  color: #ddd9df;
  font-size: 52px;
  margin-bottom: 22px;
}
.is-empty h2 {
  font-size: 39px;
  letter-spacing: -1.6px;
  font-weight: 400;
  margin-bottom: 15px;
}
.is-empty p {
  color: #a29ca7;
  white-space: pre-line;
  font-size: 12px;
  line-height: 1.9;
}
.create-content {
  display: flex;
  margin: 27px auto 17px;
  min-width: 240px;
  justify-content: center;
  font-size: 13px;
  padding: 16px 26px;
  background: #27252c;
  color: #fff;
  box-shadow: 0 9px 25px #17131b12;
}
.studio-summary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  font-size: 10px;
  color: #a59da9;
  margin: 22px 0 8px;
}
.studio-summary .text-button {
  font-size: 10px;
  color: #746c7c;
}
.stats {
  gap: 14px;
}
.stat {
  border-radius: 25px;
  background: #ffffff80;
  border-color: #ffffffd9;
  backdrop-filter: blur(28px);
  padding: 22px;
}
.stat .label {
  color: #a19aa6;
  font-size: 9px;
  letter-spacing: 0.6px;
}
.stat .number {
  font-size: 28px;
  font-weight: 400;
  color: #27222d;
  margin: 10px 0 0;
  letter-spacing: -1px;
}
.number.accent,
.number.mint {
  color: #45404d;
}
.grid {
  gap: 22px;
}
.panel {
  border-radius: 29px;
  background: #ffffff9e;
  border: 1px solid #ffffffeb;
  box-shadow: 0 8px 45px #00000003;
  padding: 28px;
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
}
.panel.highlight {
  background: #ffffff9e;
  border-color: white;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.6px;
  font-weight: 450;
  color: inherit;
}
h3 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.2px;
}
.note {
  font-size: 11px;
  line-height: 1.8;
  color: #98909d;
}
.tag {
  border-radius: 999px;
  color: #96909d;
  border-color: #1b142d16;
  font-size: 8px;
  padding: 5px 9px;
  letter-spacing: 0.7px;
}
.form-row {
  gap: 16px;
}
.item {
  border-color: #201b2e0c;
  padding: 22px 0;
}
.item h3 {
  line-height: 1.5;
}
.item p {
  color: #928a99;
  font-size: 12px;
  line-height: 1.8;
}
.item pre {
  font-family: inherit;
  font-size: 13px;
  line-height: 1.9;
  padding: 23px;
  background: #f8f7f9a6;
  border: 1px solid #21192b08;
  border-radius: 22px;
  color: #55505c;
}
.state {
  background: #27212f07;
  color: #77707f;
  font-size: 9px;
  letter-spacing: 0.3px;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 400;
}
.state.succeeded,
.state.published {
  background: #3d664809;
  color: #607967;
}
.state.review,
.state.failed {
  background: #a02b4307;
  color: #ad6e7c;
}
video {
  background: transparent;
  border-radius: 24px;
}
.table-wrap {
  border-radius: 19px;
}
table {
  font-size: 11px;
  color: #5d5467;
}
th {
  color: #a199aa;
  font-weight: 400;
}
td,
th {
  padding: 14px 11px;
  border-color: #23172f0b;
}
details summary {
  font-size: 11px;
  color: #6d617b;
}
.toast {
  background: #ffffffcf;
  color: #43384f;
  border: 1px solid #ffffffed;
  border-radius: 24px;
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  box-shadow: 0 12px 50px #20112f12;
  font-size: 12px;
}
.error {
  color: #b53845;
}
.empty {
  font-size: 12px;
  color: #a49aaa;
  padding: 35px 10px;
}
.empty .symbol {
  font-size: 35px;
  color: #c5becb;
  margin-bottom: 15px;
}
.actions {
  gap: 12px;
}
.download-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #211a2e16;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 12px;
  color: #60556e;
}
a {
  color: #665b74;
}
.switch-control {
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 64px;
  cursor: pointer;
}
.switch-control input {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 99px;
  padding: 0;
  background: #201b2a10;
  border: 1px solid #201b2a0a;
  cursor: pointer;
  transition: background 0.2s;
}
.switch-control input:before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px #0001;
  transition: transform 0.2s;
}
.switch-control input:checked {
  background: #302936;
  border-color: #302936;
}
.switch-control input:checked:before {
  transform: translateX(18px);
}
.switch-control input:focus-visible {
  outline: 2px solid #686071;
  outline-offset: 5px;
}
footer {
  color: #b6adbf;
  border-color: #25182f08;
  font-size: 9px;
  margin-top: 28px;
  padding-bottom: 30px;
}
footer span {
  color: #a296ad;
}
.auth {
  background: #fff;
}
.auth-card {
  padding: 50px max(40px, 8vw);
}
.auth-card .brand {
  margin-bottom: 60px;
}
.auth-card h1 {
  font-size: 60px;
  font-weight: 420;
  line-height: 1.02;
  letter-spacing: -3px;
}
.auth-card .eyebrow {
  color: #a49ba9;
  font-size: 8px;
}
.auth-card .muted {
  font-size: 12px;
  line-height: 1.8;
  color: #a298aa;
}
.auth-art {
  background: transparent;
  border-color: #21172d08;
  isolation: isolate;
}
.auth-art .orb,
.auth-art .orbit {
  display: none;
}
.glass-caption {
  padding: 50px;
  color: #d7d1dc;
  position: relative;
}
.glass-caption > span {
  font-size: 60px;
  display: block;
  margin-bottom: 45px;
}
.glass-caption strong {
  font-size: 47px;
  line-height: 1.1;
  letter-spacing: -2px;
  font-weight: 400;
}
.glass-caption small {
  display: block;
  margin-top: 30px;
  font-size: 8px;
  letter-spacing: 2.5px;
  color: #c6bdcf;
}
.auth-art > span {
  color: #b7acbf;
  font-size: 7px;
  letter-spacing: 3px;
}
.admin-main .page-heading h1 {
  font-size: 37px;
}
.admin-body .auth-card {
  padding: 40px;
}
.gesture-sheet {
  padding: 0;
  border: 0;
  background: transparent;
  color: #29232f;
  max-width: 580px;
  width: calc(100% - 28px);
  max-height: 88dvh;
  overflow: auto;
  border-radius: 33px;
  box-shadow: 0 35px 100px #160e2220;
}
.gesture-sheet::backdrop {
  background: #20162c1c;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.sheet-inner {
  background: #ffffffed;
  border: 1px solid #fff;
  border-radius: 33px;
  padding: 0 30px 30px;
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  transition: transform 0.15s;
}
.sheet-handle {
  height: 29px;
  position: relative;
  cursor: grab;
  touch-action: none;
}
.sheet-handle:before {
  content: "";
  position: absolute;
  top: 10px;
  left: calc(50% - 18px);
  width: 36px;
  height: 4px;
  border-radius: 9px;
  background: #d8d3dd;
}
.sheet-header {
  height: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border: 0;
  padding: 7px 0 23px;
  position: sticky;
  top: 0;
  background: #ffffffed;
  z-index: 2;
}
.sheet-header h2 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.8px;
  font-weight: 450;
}
.sheet-close {
  background: #24172d06;
  color: #6a5d76;
  width: 35px;
  height: 35px;
  padding: 0;
  border: 1px solid #24172d08;
  font-size: 25px;
  font-weight: 300;
}
.sheet-close:hover {
  background: #24172d0e;
}
.creation-modes {
  display: flex;
  gap: 8px;
  margin-bottom: 5px;
}
.mode-pill {
  background: #24162e04;
  color: #a398ae;
  border: 1px solid #24162e08;
  font-size: 11px;
  padding: 10px 15px;
  font-weight: 400;
}
.mode-pill.selected {
  color: #3b2c49;
  background: #24162e0a;
  border-color: #24162e18;
}
.mode-pill:hover {
  background: #24162e0a;
}
.material-detail > video {
  width: 100%;
  max-height: 50dvh;
  object-fit: contain;
  display: block;
  margin: 0 0 25px;
}
.detail-kind {
  font-size: 10px;
  color: #aa9bb5;
  display: block;
  margin: 20px 0 13px;
}
.material-detail h3 {
  font-size: 22px;
  font-weight: 430;
  line-height: 1.25;
  letter-spacing: -0.5px;
}
.detail-copy {
  white-space: pre-wrap;
  font-size: 13px;
  color: #8c7b9b;
  line-height: 1.9;
}
.window-map-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 25px;
}
.map-cell {
  border-radius: 17px;
  background: #21112d05;
  color: #9d8baa;
  border: 1px solid #21112d08;
  font-size: 9px;
  font-weight: 400;
  min-height: 70px;
  padding: 8px 4px;
  line-height: 1.4;
  word-break: normal;
}
.map-cell:hover {
  background: #21112d0a;
}
.map-cell.current {
  color: #302039;
  background: #21112d0e;
  border-color: #21112d1a;
}
.window-map-content > .note {
  font-size: 11px;
}
body:has(dialog[open]) {
  overflow: hidden;
}
@media (min-width: 1500px) {
  main {
    padding: 0 68px;
  }
  .studio-canvas {
    min-height: 440px;
  }
  .canvas-content {
    padding: 48px;
  }
  .canvas-content h2 {
    font-size: 36px;
  }
}
@media (max-width: 1000px) {
  .shell {
    grid-template-columns: 190px 1fr;
  }
  aside {
    padding: 27px 13px;
  }
  main {
    padding: 0 25px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .studio-canvas {
    min-height: 360px;
  }
  .canvas-content {
    padding: 32px;
  }
  .canvas-content h2 {
    font-size: 27px;
  }
  .auth-card {
    padding: 35px;
  }
  .auth-card h1 {
    font-size: 50px;
  }
  .glass-caption {
    padding: 30px;
  }
  .glass-caption strong {
    font-size: 36px;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  body {
    background: #fafafa;
  }
  .shell {
    display: block;
  }
  aside {
    height: auto;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 18px;
    background: transparent;
    backdrop-filter: none;
    border: 0;
    padding: 22px 20px 0;
  }
  aside .brand {
    margin: 0;
    font-size: 18px;
  }
  .logo {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    font-size: 28px;
  }
  .logo > span {
    font-size: 11px;
    top: 8px;
  }
  .workspace {
    margin: 0;
  }
  .workspace select {
    font-size: 10px;
    border-radius: 999px;
    padding: 11px 13px;
    background: #fff9;
  }
  .workspace .eyebrow,
  .aside-footer {
    display: none;
  }
  nav {
    position: fixed;
    z-index: 90;
    left: 13px;
    right: 13px;
    bottom: max(12px, env(safe-area-inset-bottom));
    display: flex;
    justify-content: space-around;
    gap: 0;
    overflow: visible;
    border: 1px solid #ffffffee;
    border-radius: 29px;
    background: #ffffffb5;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    padding: 8px 5px;
    box-shadow: 0 8px 40px #21122d0a;
  }
  nav button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    gap: 4px;
    padding: 8px 7px;
    border-radius: 20px;
    font-size: 17px;
    min-height: 49px;
    min-width: 0;
    font-weight: 300;
    white-space: nowrap;
  }
  nav button span {
    font-size: 8px;
    line-height: 1.1;
    font-weight: 400;
  }
  nav button.active {
    background: #29202e08;
    border-color: #29202e04;
    box-shadow: none;
    color: #403447;
  }
  nav button[data-view="sources"],
  nav button[data-view="campaigns"],
  nav button[data-view="analytics"],
  nav button[data-view="models"],
  nav button[data-view="team"] {
    display: none;
  }
  .mobile-more {
    display: flex !important;
    justify-content: center;
  }
  .mobile-logout {
    display: none;
  }
  .nav-separator {
    display: none;
  }
  nav.expanded {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    padding: 14px 7px;
    border-radius: 28px;
  }
  nav.expanded button[data-view],
  nav.expanded .mobile-logout {
    display: flex;
  }
  nav.expanded .mobile-more {
    grid-column: span 2;
  }
  main {
    padding: 0 20px 95px;
  }
  header {
    height: 63px;
    border: 0;
  }
  .breadcrumb {
    font-size: 9px;
    white-space: nowrap;
  }
  .breadcrumb span {
    margin: 0 6px;
  }
  .header-right {
    gap: 7px;
  }
  .badge {
    font-size: 7px;
    padding: 5px 8px;
  }
  .chip {
    font-size: 10px;
    padding: 9px 12px;
  }
  .map-button {
    width: 29px;
    height: 29px;
    font-size: 20px;
  }
  .screen-stage {
    min-height: calc(100dvh - 220px);
  }
  .page-heading,
  .studio-view .page-heading {
    margin: 17px 0 5px;
  }
  .page-heading h1,
  .studio-view .page-heading h1 {
    font-size: 32px;
    font-weight: 430;
    letter-spacing: -1.25px;
  }
  .page-heading .eyebrow {
    font-size: 7px;
    margin-bottom: 11px;
    letter-spacing: 1.4px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .status-dot {
    display: none;
  }
  .window-location {
    font-size: 8px;
    letter-spacing: 0.1px;
    margin: 10px 0 21px;
    color: #b1a4b9;
    white-space: normal;
    min-height: 13px;
  }
  .studio-canvas {
    border-radius: 32px;
    min-height: 330px;
    max-height: none;
  }
  .studio-canvas.has-media {
    aspect-ratio: 4/5;
    min-height: 350px;
    max-height: 49dvh;
  }
  .canvas-content {
    padding: 27px;
  }
  .canvas-content h2 {
    font-size: 24px;
    font-weight: 430;
    letter-spacing: -0.8px;
    line-height: 1.15;
    max-width: 90%;
  }
  .canvas-content .eyebrow {
    font-size: 7px;
    letter-spacing: 1.3px;
    margin-bottom: 18px;
  }
  .canvas-excerpt {
    font-size: 12px;
    line-height: 1.85;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .canvas-open {
    font-size: 10px;
    padding: 10px 17px;
  }
  .is-empty {
    min-height: 350px;
    max-height: 49dvh;
  }
  .is-empty h2 {
    font-size: 36px;
    letter-spacing: -1.4px;
  }
  .is-empty p {
    font-size: 11px;
    line-height: 1.9;
    max-width: 260px;
  }
  .is-empty .empty-mark {
    font-size: 45px;
    margin-bottom: 28px;
  }
  .create-content {
    min-width: 210px;
    font-size: 12px;
    margin-top: 23px;
    padding: 15px 24px;
  }
  .studio-summary {
    gap: 20px;
    font-size: 9px;
    margin: 20px 0 10px;
  }
  .studio-summary .text-button {
    font-size: 9px;
  }
  .studio-view footer {
    display: none;
  }
  .panel {
    padding: 23px 21px;
    border-radius: 28px;
    margin-bottom: 17px;
  }
  h2 {
    font-size: 20px;
  }
  .stats {
    gap: 8px;
    margin-bottom: 20px;
  }
  .stat {
    padding: 17px 13px;
    border-radius: 23px;
  }
  .stat .label {
    font-size: 8px;
    line-height: 1.5;
    min-height: 23px;
    white-space: normal;
    letter-spacing: 0.25px;
  }
  .stat .number {
    font-size: 22px;
    margin-top: 8px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  form {
    gap: 20px;
  }
  form > button {
    width: 100%;
    padding: 15px;
    font-size: 12px;
  }
  label {
    font-size: 12px;
  }
  input,
  textarea,
  select {
    font-size: 14px;
    padding: 14px;
    border-radius: 18px;
  }
  .note {
    font-size: 10.5px;
    line-height: 1.8;
  }
  .item h3 {
    font-size: 14px;
    line-height: 1.5;
  }
  .item p {
    font-size: 10px;
  }
  .item pre {
    font-size: 12px;
    padding: 20px;
  }
  .item-top {
    gap: 10px;
  }
  .state {
    font-size: 8px;
  }
  .toast {
    left: 18px;
    right: 18px;
    top: 15px;
    font-size: 11px;
  }
  .gesture-sheet {
    position: fixed;
    top: auto;
    bottom: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    max-height: 90dvh;
    left: 0;
    right: 0;
    border-radius: 32px 32px 0 0;
    overscroll-behavior: contain;
  }
  .sheet-inner {
    border-radius: 32px 32px 0 0;
    padding: 0 24px max(28px, env(safe-area-inset-bottom));
  }
  .sheet-header {
    padding: 8px 0 25px;
  }
  .sheet-header h2 {
    font-size: 25px;
  }
  .sheet-handle {
    height: 31px;
  }
  .sheet-close {
    width: 33px;
    height: 33px;
    font-size: 23px;
  }
  .creation-modes {
    gap: 9px;
    margin-bottom: 3px;
  }
  .mode-pill {
    font-size: 11px;
    padding: 11px 16px;
  }
  .material-detail > video {
    max-height: 48dvh;
  }
  .material-detail h3 {
    font-size: 24px;
  }
  .detail-copy {
    font-size: 12px;
    line-height: 1.85;
  }
  .window-map-grid {
    gap: 5px;
  }
  .map-cell {
    min-height: 70px;
    border-radius: 16px;
    font-size: 8px;
    padding: 8px 2px;
  }
  footer {
    font-size: 8px;
    padding-bottom: 18px;
    margin-top: 22px;
  }
  .auth {
    display: block;
    background: #fff;
  }
  .auth-card {
    padding: 35px 29px;
    min-height: 100dvh;
  }
  .auth-card .brand {
    margin-bottom: 55px;
  }
  .auth-card h1 {
    font-size: 58px;
    letter-spacing: -3px;
  }
  .auth-card form {
    margin-top: 28px;
  }
  .auth-art {
    display: none;
  }
  .admin-main {
    padding: 0 18px 35px;
  }
  .admin-main .page-heading h1 {
    font-size: 29px;
  }
  .admin-main header {
    height: 84px;
  }
  .admin-body .auth-card {
    padding: 30px;
  }
  .admin-body .auth-card h1 {
    font-size: 48px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 650px) {
  .studio-canvas {
    height: 360px;
    min-height: 0;
    max-height: 48dvh;
  }
  .studio-canvas.has-media {
    height: 360px;
    min-height: 0;
  }
  .canvas-content {
    padding: 25px;
  }
  .canvas-content h2 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .canvas-excerpt {
    -webkit-line-clamp: 3;
  }
  .window-location {
    font-size: 10.5px;
    line-height: 1.65;
  }
  .map-cell {
    font-size: 10px;
  }
  .window-map-grid {
    gap: 6px;
  }
  nav button span {
    font-size: 9.5px;
  }
  .breadcrumb {
    font-size: 10px;
  }
}

/* Media derives its color from the content; production forms stay neutral. */
.production-entry {
  width: 100%;
  margin: 12px 0;
}
.media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.media-tile {
  background: #f7f7f7;
  color: #191919;
  border: 0;
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  text-align: left;
}
.media-tile img,
.media-tile video {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}
.media-tile span {
  display: block;
  padding: 12px;
}
.asset-preview img,
.asset-preview video {
  display: block;
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: 16px;
}
.slide-editor,
.segment-editor {
  border: 1px solid #e7e7e7;
  border-radius: 18px;
  padding: 14px;
  margin: 12px 0;
}
.production-estimate {
  padding: 16px;
  background: #f5f5f5;
  border-radius: 16px;
}
.source-tools {
  margin-bottom: 18px;
}

.campaign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}
.campaign-intro {
  padding: 24px 0;
}
.campaign-intro h2 {
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.04em;
}
.campaign-intro .stats {
  margin: 24px 0;
}
.campaign-filters {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}
.campaign-item {
  padding: 24px 0;
  border-bottom: 1px solid #ededed;
}
.campaign-item .item-top {
  align-items: flex-start;
  gap: 14px;
}
.campaign-item .item-top label {
  font-size: 0;
  width: 24px;
  min-width: 24px;
}
.campaign-item .item-top input {
  width: 20px;
  height: 20px;
}
.campaign-strategy {
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  margin-bottom: 20px;
}
.platform-choice {
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  padding: 14px;
}
.platform-choice label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.platform-choice input {
  width: 18px;
  height: 18px;
}
.campaign-bulk {
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .campaign-filters {
    grid-template-columns: 1fr;
  }
  .campaign-intro .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.campaign-settings {
  margin-top: 20px;
}
.campaign-settings summary {
  cursor: pointer;
  color: #666;
}
.campaign-settings .actions {
  margin-top: 14px;
}
.campaign-bulk {
  position: sticky;
  bottom: 20px;
  z-index: 6;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  padding: 14px;
  border: 1px solid #ececec;
  border-radius: 20px;
  box-shadow: 0 8px 40px #0000000b;
}
.campaign-bulk[hidden] {
  display: none;
}
.recipe-source-preview {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 16px;
  margin: 14px 0;
  background: #f7f7f7;
}
@media (max-width: 780px) {
  .campaign-bulk {
    bottom: 94px;
  }
}

.campaign-intro .stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.campaign-intro .stat {
  padding: 18px;
}
@media (max-width: 600px) {
  .campaign-intro .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.automation-weekdays { display: flex; flex-wrap: wrap; gap: .5rem; border: 0; padding: .5rem 0; }
.automation-weekdays label { display: flex; align-items: center; gap: .3rem; margin: 0; }
.automation-weekdays input { width: auto; }

.subtitle-edit-row { padding: 1rem 0; border-bottom: 1px solid #eee; }
.subtitle-times { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; }
.subtitle-times label { max-width: 9rem; }
.framing-preview { width: min(100%, 320px); aspect-ratio: 9 / 16; margin: 16px auto; overflow: hidden; border-radius: 16px; }
.framing-preview video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gesture-sheet.calendar-sheet {width:min(1120px,calc(100vw - 24px));max-width:1120px}
.calendar-tools {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.calendar-nav {display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.calendar-grid {display:grid;grid-template-columns:repeat(7,minmax(90px,1fr));gap:6px;overflow:auto;max-width:100%}
.calendar-day {min-height:120px;border:1px solid #e7e7e7;border-radius:12px;padding:6px;min-width:0}
.calendar-day>button:first-child {font-size:11px;padding:5px;white-space:normal}
.calendar-other-month {background:#fafafa;color:#777}
.calendar-event {display:block;width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere;background:#fff;color:var(--text);border:1px solid #ddd;border-radius:8px;padding:8px 5px;margin:6px 0;font-size:12px}
.calendar-event small {display:block;font-size:10px;color:#777;margin-top:5px}
.calendar-view-week .calendar-day {min-height:300px}
.calendar-view-day {grid-template-columns:minmax(0,1fr)}
@media(max-width:650px){.calendar-tools{grid-template-columns:repeat(2,minmax(0,1fr))}.gesture-sheet.calendar-sheet{width:calc(100vw - 12px)}.calendar-view-day{display:block}}
.publication-order {max-height:320px;overflow:auto;padding-left:24px}
.publication-order li {padding:8px 0;border-bottom:1px solid var(--line)}
.publication-order li>span {display:block;margin-bottom:6px}
.publication-order button {margin:2px}

/* Launch chat: a plain workspace; content and decisions supply visual hierarchy. */
.run-workspace{max-width:880px;margin:0 auto 2rem}.run-history{display:grid;gap:1rem;margin:1.5rem 0}.run-message{padding:1.1rem 1.25rem;border:1px solid #e7e7e7;border-radius:18px;background:#fff;max-width:95%;overflow-wrap:anywhere}.run-message-user{margin-left:auto;background:#f7f7f7}.run-message-system{border-style:dashed}.run-copy{white-space:pre-wrap;line-height:1.6}.run-question{font-weight:600}.run-composer textarea{min-height:110px}.run-composer{margin-top:1.25rem}.run-status:empty{display:none}.run-execution{padding:1rem 0;border-top:1px solid #eee}.run-execution button{margin:.25rem}.run-workspace details p{line-height:1.5}#manual-studio{margin:2rem auto;max-width:1100px}#manual-studio>summary{cursor:pointer;padding:1rem 0}
.run-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:1rem;margin:1rem 0}.run-results>.note{grid-column:1/-1}.run-result,.run-edit-action{padding:1rem;border:1px solid #e7e7e7;border-radius:16px;background:white;overflow-wrap:anywhere}.run-result h3,.run-edit-action h3{font-size:1rem;line-height:1.4}.run-result button{margin:.25rem}.run-edit-history{display:grid;gap:1rem;margin:1rem 0}
.run-publishing{margin:1.5rem 0}.run-publication-list{display:grid;gap:.75rem;margin:1rem 0}.run-publication-row{display:flex;gap:1rem;align-items:flex-start;padding:1rem;border:1px solid #e7e7e7;border-radius:16px;cursor:pointer}.run-publication-row input{width:20px;min-width:20px;height:20px;margin:2px 0}.run-publication-row span{display:grid;gap:.25rem}
