:root {
  --bg: #edf1f3;
  --surface: #ffffff;
  --surface-soft: #f6f8f9;
  --surface-strong: #e8eef1;
  --nav: #102a3a;
  --nav-deep: #0b202d;
  --ink: #152630;
  --muted: #697b86;
  --line: #d6e0e5;
  --line-strong: #bdcbd2;
  --teal: #0b756a;
  --teal-soft: #e2f2ef;
  --orange: #bb6428;
  --orange-soft: #f8eadf;
  --blue: #2b6982;
  --blue-soft: #e5eff4;
  --red: #a94b3c;
  --red-soft: #f7e6e2;
  --green: #2f7a51;
  --green-soft: #e3f0e7;
  --yellow: #8a6a1f;
  --yellow-soft: #f6efd9;
  --shadow: 0 10px 28px rgba(20, 45, 60, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
}

body[data-environment="production"] [data-action="seed-demo"],
body[data-environment="production"] [data-action="load-demo-script"] {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

svg.lucide {
  width: 18px;
  height: 18px;
  stroke-width: 1.9;
  flex: 0 0 auto;
}

.app-shell {
  min-height: 100vh;
  display: flex;
}

.sidebar {
  width: 230px;
  min-height: 100vh;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  background: var(--nav);
  color: #dce8ed;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #d8e9e5;
  color: #0c5d55;
  font-size: 18px;
  font-weight: 800;
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  color: #ffffff;
  font-size: 15px;
  white-space: nowrap;
}

.brand-copy small {
  margin-top: 2px;
  color: #8fa8b5;
  font-size: 10px;
}

.primary-nav {
  display: grid;
  gap: 3px;
  padding: 16px 11px;
}

.primary-nav a {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  border-radius: 6px;
  color: #b9cbd4;
  font-size: 13px;
  transition: background 140ms ease, color 140ms ease;
}

.primary-nav a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.primary-nav a.active {
  background: #e5efec;
  color: #0d4d47;
  font-weight: 700;
}

.primary-nav a.active svg {
  color: var(--teal);
}

.mobile-more-nav {
  display: none;
}

.sidebar-service {
  margin: auto 13px 15px;
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
}

.status-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #7a8f9a;
  box-shadow: 0 0 0 4px rgba(122, 143, 154, 0.13);
}

.status-dot.online {
  background: #55b784;
  box-shadow: 0 0 0 4px rgba(85, 183, 132, 0.13);
}

.status-dot.error {
  background: #d37061;
  box-shadow: 0 0 0 4px rgba(211, 112, 97, 0.13);
}

.sidebar-service strong,
.sidebar-service small {
  display: block;
}

.sidebar-service strong {
  color: #ecf4f6;
  font-size: 12px;
}

.sidebar-service small {
  margin-top: 3px;
  color: #8fa8b5;
  font-size: 10px;
}

.sidebar-footer {
  min-height: 65px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.sidebar-footer strong,
.sidebar-footer small {
  display: block;
}

.sidebar-footer strong {
  color: #dce8ed;
  font-size: 11px;
}

.sidebar-footer small {
  color: #849ba7;
  font-size: 9px;
}

.app-body {
  width: calc(100% - 230px);
  min-height: 100vh;
  margin-left: 230px;
}

.topbar {
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.topbar-context {
  min-width: 0;
}

.topbar-kicker {
  display: block;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.breadcrumbs {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.breadcrumbs .crumb {
  color: var(--muted);
  font-weight: 500;
}

.breadcrumbs .sep {
  color: #a4b1b8;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.global-search {
  width: 238px;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--muted);
}

.global-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.icon-button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: #405863;
}

.notification-button {
  position: relative;
}

.notification-button.has-unread {
  border-color: #d7b07c;
  color: #9a5d17;
}

.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #ffffff;
  border-radius: 9px;
  background: var(--red);
  color: #ffffff;
  font-size: 8px;
  font-weight: 800;
}

.notification-badge[hidden] {
  display: none;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.connection-chip {
  height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.connection-chip svg {
  width: 8px;
  height: 8px;
  fill: currentColor;
}

.connection-chip.online {
  background: var(--green-soft);
  color: var(--green);
}

.content {
  min-height: calc(100vh - 70px);
  padding: 22px 24px 34px;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.page-head h1 {
  margin: 0;
  color: #172d39;
  font-size: 22px;
  line-height: 1.25;
}

.page-head p {
  max-width: 720px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.account-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  margin-bottom: 14px;
  padding: 10px 13px;
  border: 1px solid #d6e2e5;
  border-radius: 6px;
  background: #f6faf9;
  color: #31515e;
}

.account-notice > svg {
  flex: 0 0 auto;
  color: var(--teal);
}

.account-notice > div {
  display: grid;
  flex: 1;
  gap: 3px;
}

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

.account-notice.warning {
  border-color: #ead7be;
  background: #fffaf2;
}

.account-notice.warning > svg {
  color: var(--orange);
}

.account-notice.info > svg {
  color: var(--blue);
}

.account-notice.danger {
  border-color: #eccfca;
  background: #fff7f5;
  color: #7f332a;
}

.account-notice.danger > svg {
  color: var(--red);
}

.button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--surface-strong);
  color: #29434f;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.button:hover {
  filter: brightness(0.98);
}

.button.primary {
  background: var(--teal);
  color: #ffffff;
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: #39515d;
}

.button.danger {
  background: var(--red-soft);
  color: var(--red);
}

.button.ghost {
  background: transparent;
  color: var(--muted);
}

.button.small {
  min-height: 30px;
  padding: 0 9px;
  font-size: 11px;
}

.button.full {
  width: 100%;
}

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

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.panel-head {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  margin: 0;
  color: #203a46;
  font-size: 14px;
}

.panel-head small {
  color: var(--muted);
  font-size: 10px;
}

.panel-head-actions,
.inline-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.panel-body {
  padding: 16px;
}

.panel-foot {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: #fafcfc;
}

.maintenance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 16px;
}

.backup-list {
  display: grid;
}

.backup-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

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

.backup-row > div {
  display: grid;
  gap: 3px;
}

.backup-row small {
  color: var(--muted);
}

.backup-icon {
  width: 32px;
  height: 32px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 5px;
  background: #edf2fb;
  color: var(--blue);
}

.readiness-panel {
  margin-bottom: 16px;
}

.readiness-score {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.readiness-progress {
  margin-bottom: 12px;
}

.readiness-blockers {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.readiness-blockers span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 4px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 10px;
}

.readiness-blockers svg {
  width: 13px;
  height: 13px;
}

.readiness-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.readiness-item {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafcfc;
}

.readiness-item > div {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}

.readiness-item small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.readiness-item em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}

.readiness-icon {
  display: grid;
  color: var(--teal);
}

.readiness-item.blocked {
  border-color: #edcfca;
  background: #fff8f6;
}

.readiness-item.blocked .readiness-icon {
  color: var(--red);
}

.readiness-item.warning {
  border-color: #eadcc9;
  background: #fffaf3;
}

.readiness-item.warning .readiness-icon {
  color: var(--orange);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric-card {
  min-height: 102px;
  position: relative;
  overflow: hidden;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.metric-card::before {
  content: "";
  width: 3px;
  position: absolute;
  inset: 13px auto 13px 0;
  border-radius: 0 3px 3px 0;
  background: var(--teal);
}

.metric-card:nth-child(2)::before {
  background: var(--orange);
}

.metric-card:nth-child(3)::before {
  background: var(--blue);
}

.metric-card:nth-child(4)::before {
  background: var(--green);
}

.metric-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}

.metric-label svg {
  width: 15px;
  height: 15px;
}

.metric-value {
  display: block;
  margin-top: 12px;
  color: #17323e;
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
}

.metric-detail {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
}

.commercial-panel,
.commercial-alerts-panel {
  margin-bottom: 16px;
}

.commercial-period {
  color: var(--muted);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 10px;
}

.commercial-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.commercial-kpi {
  min-width: 0;
  padding: 13px 15px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.commercial-kpi:nth-child(3n) {
  border-right: 0;
}

.commercial-kpi:nth-last-child(-n+3) {
  border-bottom: 0;
}

.commercial-kpi > span,
.commercial-kpi > small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.commercial-kpi strong {
  display: block;
  overflow: hidden;
  margin: 7px 0 5px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commercial-kpi strong.positive {
  color: var(--green);
}

.commercial-kpi strong.negative {
  color: var(--red);
}

.production-kpi-command {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(210px, 0.7fr) minmax(210px, 0.8fr);
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid #c7dcd7;
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(232, 247, 242, 0.96), rgba(247, 251, 252, 0.98)),
    var(--surface);
}

.production-kpi-command-copy > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
}

.production-kpi-command-copy > span svg {
  width: 15px;
  height: 15px;
}

.production-kpi-command-copy > strong {
  display: block;
  margin-top: 5px;
  color: #183b46;
  font-size: 20px;
}

.production-kpi-command-copy > small,
.production-kpi-command-value > span,
.production-kpi-command-value > small,
.production-kpi-score-head {
  color: var(--muted);
  font-size: 9px;
}

.production-kpi-command-copy > small {
  display: block;
  margin-top: 4px;
}

.production-kpi-score-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
}

.production-kpi-score-head strong {
  color: #264a55;
}

.production-kpi-command-value {
  padding-left: 18px;
  border-left: 1px solid #d4e4df;
}

.production-kpi-command-value > span,
.production-kpi-command-value > strong,
.production-kpi-command-value > small {
  display: block;
}

.production-kpi-command-value > strong {
  margin: 5px 0 4px;
  color: #173642;
  font-size: 23px;
}

.production-kpi-grid {
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.production-kpi-grid .commercial-kpi {
  min-height: 94px;
}

.production-kpi-grid .commercial-kpi:nth-child(3n) {
  border-right: 1px solid var(--line);
}

.production-kpi-grid .commercial-kpi:nth-child(4n) {
  border-right: 0;
}

.production-kpi-grid .commercial-kpi:nth-last-child(-n+3) {
  border-bottom: 1px solid var(--line);
}

.production-kpi-grid .commercial-kpi:nth-last-child(-n+4) {
  border-bottom: 0;
}

.production-kpi-grid .commercial-kpi strong {
  font-size: 19px;
}

.production-kpi-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.75fr);
  gap: 16px;
  margin-bottom: 16px;
}

.production-kpi-layout.secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.production-operator-panel {
  margin-bottom: 16px;
}

.production-attribution-summary {
  gap: 6px;
}

.production-attribution-summary span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #dce5e7;
  border-radius: 999px;
  background: #f7fafb;
  color: #526973;
  font-size: 9px;
  white-space: nowrap;
}

.production-attribution-summary span.warning {
  border-color: #eadcc9;
  background: #fff8ef;
  color: #956024;
}

.production-attribution-summary svg {
  width: 13px;
  height: 13px;
}

.production-operator-table {
  min-width: 760px;
}

.production-operator-table th {
  background: #f8fafb;
}

.production-operator-table td strong {
  color: #263f49;
  white-space: nowrap;
}

.production-operator-table td .muted {
  margin-top: 2px;
  font-size: 9px;
}

.positive-text {
  color: var(--green) !important;
}

.negative-text {
  color: var(--red) !important;
}

.production-operator-empty {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.production-operator-empty > svg {
  width: 28px;
  height: 28px;
  color: #8aa0a9;
}

.production-operator-empty strong,
.production-operator-empty span {
  display: block;
}

.production-operator-empty strong {
  color: #405962;
  font-size: 11px;
}

.production-operator-empty span {
  margin-top: 3px;
  font-size: 9px;
}

.production-operator-foot {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  background: #fbfcfc;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.production-operator-foot svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--blue);
}

.production-kpi-layout > .panel {
  min-width: 0;
  margin-bottom: 0;
}

.production-chart-scroll {
  overflow-x: auto;
  padding: 5px 2px 2px;
}

.production-day-chart {
  height: 218px;
  display: grid;
  align-items: stretch;
  gap: 5px;
}

.production-day-column {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 18px;
  gap: 5px;
}

.production-day-track {
  position: relative;
  overflow: hidden;
  align-self: stretch;
  border-radius: 3px 3px 0 0;
  background: #f0f4f5;
}

.production-day-track::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 24%,
    rgba(117, 139, 148, 0.09) 25%
  );
  pointer-events: none;
}

.production-day-fill {
  position: absolute;
  right: 3px;
  bottom: 0;
  left: 3px;
  z-index: 1;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(to top, #188a78, #49b8a3);
}

.production-day-fill.reached {
  background: linear-gradient(to top, #1f6fa4, #58a7d3);
}

.production-day-track > i {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 2;
  border-top: 1px dashed rgba(207, 126, 51, 0.62);
}

.production-day-column > small {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-align: center;
  white-space: nowrap;
}

.production-chart-legend {
  display: flex;
  gap: 16px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 9px;
}

.production-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.production-chart-legend i {
  display: inline-block;
  width: 13px;
  height: 4px;
  border-radius: 2px;
  background: var(--teal);
}

.production-chart-legend i.goal {
  height: 0;
  border-top: 1px dashed var(--orange);
  border-radius: 0;
  background: transparent;
}

.production-target-list {
  padding-top: 4px;
  padding-bottom: 4px;
}

.production-target-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.production-target-row:last-child {
  border-bottom: 0;
}

.production-target-row > div {
  min-width: 0;
}

.production-target-row > div:last-child {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.production-target-row strong,
.production-target-row small {
  display: block;
}

.production-target-row strong {
  color: #294852;
  font-size: 11px;
}

.production-target-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.production-target-row b {
  color: #183844;
  font-size: 14px;
  white-space: nowrap;
}

.kpi-status {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
}

.kpi-status.on_track {
  background: #e5f6ef;
  color: #16705e;
}

.kpi-status.watch {
  background: #fff4e5;
  color: #9a5a16;
}

.kpi-status.off_track {
  background: #fff0ed;
  color: #ad4332;
}

.kpi-status.no_data {
  background: #eef2f3;
  color: #65777f;
}

.system-list.compact .system-row {
  padding-top: 8px;
  padding-bottom: 8px;
}

.system-list .system-row.total {
  margin-top: 3px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.system-list .system-row.total strong {
  color: var(--teal);
  font-size: 13px;
}

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

.production-definition-list > div {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  gap: 8px;
  color: #425d66;
  font-size: 10px;
  line-height: 1.55;
}

.production-definition-list svg {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  color: var(--teal);
}

.production-data-note {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  margin: 0 15px 15px;
  padding: 10px 11px;
  border: 1px solid #e5dcc8;
  border-radius: 6px;
  background: #fffaf2;
  color: #66593f;
}

.production-data-note svg {
  width: 18px;
  height: 18px;
  color: var(--orange);
}

.production-data-note strong,
.production-data-note span {
  display: block;
}

.production-data-note strong {
  font-size: 10px;
}

.production-data-note span {
  margin-top: 2px;
  font-size: 9px;
  line-height: 1.5;
}

.commercial-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-top: 16px;
}

.commercial-ledger {
  min-width: 0;
}

.commercial-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.commercial-section-head strong {
  color: var(--ink);
  font-size: 12px;
}

.commercial-section-head span {
  color: var(--muted);
  font-size: 9px;
}

.commercial-ledger-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(94px, auto) minmax(150px, 1.2fr);
  align-items: center;
  gap: 10px;
  min-height: 38px;
  border-bottom: 1px solid #edf1f2;
}

.commercial-ledger-row > span {
  color: #38505b;
  font-size: 10px;
}

.commercial-ledger-row > strong {
  color: var(--ink);
  font-size: 11px;
  text-align: right;
}

.commercial-ledger-row > small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commercial-ledger-row.total {
  border-bottom: 0;
}

.commercial-ledger-row.total > strong {
  color: var(--green);
  font-size: 14px;
}

.operations-alert-list {
  display: grid;
  gap: 0;
  padding-top: 4px;
  padding-bottom: 4px;
}

.operations-alert {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 7px 2px;
  border-bottom: 1px solid var(--line);
}

.operations-alert:last-child {
  border-bottom: 0;
}

.operations-alert-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: var(--yellow-soft);
  color: var(--yellow);
}

.operations-alert.critical .operations-alert-icon {
  background: var(--red-soft);
  color: var(--red);
}

.operations-alert > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.operations-alert strong {
  color: var(--ink);
  font-size: 11px;
}

.operations-alert small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commercial-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 2px;
  color: var(--green);
}

.commercial-empty > div {
  display: grid;
  gap: 3px;
}

.commercial-empty strong {
  color: var(--ink);
  font-size: 11px;
}

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

.quota-mini-track {
  width: 110px;
  max-width: 100%;
  height: 4px;
  overflow: hidden;
  margin-top: 5px;
  border-radius: 2px;
  background: #e7edef;
}

.quota-mini-track span {
  display: block;
  height: 100%;
  background: var(--teal);
}

.sales-pipeline-panel {
  margin-bottom: 16px;
}

.sales-pipeline-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sales-pipeline-strip > div {
  min-width: 0;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
}

.sales-pipeline-strip > div:last-child {
  border-right: 0;
}

.sales-pipeline-strip span,
.sales-pipeline-strip small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.sales-pipeline-strip strong {
  display: block;
  overflow: hidden;
  margin: 5px 0 3px;
  color: var(--ink);
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-pipeline-strip strong.negative {
  color: var(--red);
}

.lead-follow-up {
  font-size: 10px;
  font-weight: 700;
}

.lead-follow-up.overdue {
  color: var(--red);
}

.lead-follow-up.today {
  color: var(--orange);
}

.support-ticket-list {
  display: grid;
}

.support-ticket-row {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.support-ticket-row:last-child {
  border-bottom: 0;
}

.support-ticket-row:hover {
  background: #f8fafb;
}

.support-ticket-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--blue-soft);
  color: var(--blue);
}

.support-ticket-icon.overdue,
.support-ticket-icon.breached {
  background: var(--red-soft);
  color: var(--red);
}

.support-ticket-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.support-ticket-copy strong {
  color: var(--ink);
  font-size: 12px;
}

.support-ticket-copy small,
.support-ticket-copy em {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-ticket-state {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.support-ticket-state small,
.support-ticket-state em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}

.support-ticket-state small.overdue,
.support-ticket-state small.breached {
  color: var(--red);
  font-weight: 700;
}

.ticket-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ticket-detail-head > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
}

.ticket-sla {
  justify-self: end;
  white-space: nowrap;
}

.ticket-sla.overdue,
.ticket-sla.breached {
  color: var(--red);
}

.ticket-thread {
  max-height: 360px;
  overflow-y: auto;
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafb;
}

.ticket-message {
  max-width: 82%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.ticket-message.operator {
  justify-self: end;
  border-color: #b9dcd5;
  background: #f1fbf8;
}

.ticket-message.internal {
  justify-self: stretch;
  max-width: 100%;
  border-style: dashed;
  border-color: #eadcc9;
  background: #fffaf3;
}

.ticket-message-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}

.ticket-message-head strong {
  color: var(--ink);
  font-size: 10px;
}

.ticket-message-head span {
  color: var(--muted);
  font-size: 8px;
}

.ticket-message p {
  margin: 0;
  color: #38505b;
  font-size: 10px;
  line-height: 1.65;
  white-space: normal;
}

.ticket-operator-controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  align-items: end;
  gap: 8px;
  margin: 13px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

#supportReplyForm {
  margin-top: 13px;
}

.mobile-route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mobile-route-button {
  min-height: 94px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.mobile-route-button svg {
  color: var(--teal);
}

.mobile-route-button strong {
  font-size: 11px;
}

.mobile-route-button small {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.35;
}

.mobile-route-button.active {
  border-color: #9ecdc3;
  background: var(--teal-soft);
}

.onboarding-panel {
  margin-bottom: 16px;
}

.onboarding-count {
  color: var(--muted);
  font-size: 10px;
}

.onboarding-progress {
  margin-bottom: 12px;
}

.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.onboarding-step {
  min-width: 0;
  min-height: 66px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 7px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafcfc;
  color: var(--ink);
  text-align: left;
}

.onboarding-step > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--muted);
}

.onboarding-step > span em {
  font-size: 9px;
  font-style: normal;
}

.onboarding-step > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.onboarding-step strong,
.onboarding-step small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.onboarding-step strong {
  font-size: 10px;
}

.onboarding-step small {
  color: var(--muted);
  font-size: 8px;
}

.onboarding-step > svg {
  color: var(--muted);
}

.onboarding-step.done {
  border-color: #c8e4de;
  background: #f4fbf9;
}

.onboarding-step.done > span,
.onboarding-step.done > svg {
  color: var(--teal);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.8fr);
  gap: 16px;
}

.stack {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.overview-wide {
  grid-column: span 1;
}

.queue-lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.queue-lane {
  min-height: 118px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
}

.lane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
}

.lane-count {
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
}

.lane-job {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.lane-job strong {
  display: block;
  margin-bottom: 3px;
  color: #344d59;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.system-list {
  display: grid;
  gap: 9px;
}

.system-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  border-bottom: 1px solid #edf1f3;
}

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

.system-row span {
  color: var(--muted);
  font-size: 11px;
}

.system-row strong {
  min-width: 0;
  color: #29444f;
  font-size: 11px;
  text-align: right;
  overflow-wrap: anywhere;
}

.project-list {
  display: grid;
}

.project-row {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 110px 82px;
  align-items: center;
  gap: 18px;
  padding: 10px 14px;
  border-bottom: 1px solid #e8edef;
  cursor: pointer;
}

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

.project-row:hover {
  background: #f8fafb;
}

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

.project-thumb {
  width: 60px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 5px;
  background: #dfe8eb;
  color: #57707b;
}

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

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

.project-title {
  min-width: 0;
}

.project-title strong,
.project-title small {
  display: block;
}

.project-title strong {
  color: #1e3742;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-title small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ebee;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.project-stats {
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

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

.project-card {
  min-height: 224px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: #b9c8cf;
  box-shadow: var(--shadow);
}

.project-cover {
  height: 122px;
  position: relative;
  overflow: hidden;
  background: #dce6e9;
}

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

.project-cover-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #70848e;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.24) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.24) 1px, transparent 1px),
    #dce6e9;
  background-size: 24px 24px;
}

.project-cover-placeholder svg {
  width: 32px;
  height: 32px;
}

.project-kind {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(14, 38, 52, 0.82);
  color: #ffffff;
  font-size: 9px;
}

.project-card-body {
  padding: 13px 14px 14px;
}

.project-card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.project-card-title h3 {
  margin: 0;
  color: #1d3540;
  font-size: 14px;
}

.project-card-title small {
  color: var(--muted);
  font-size: 9px;
}

.project-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
}

.rights-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 8px;
}

.rights-chip svg {
  width: 11px;
  height: 11px;
}

.rights-chip.ready {
  background: var(--teal-soft);
  color: var(--teal);
}

.rights-chip.warning {
  background: var(--yellow-soft);
  color: var(--yellow);
}

.project-card-footer {
  margin-top: 13px;
  display: grid;
  gap: 6px;
}

.project-card-actions,
.studio-toolbar-actions,
.character-actions,
.shot-admin-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-card-actions {
  justify-content: space-between;
  padding-top: 7px;
  border-top: 1px solid var(--line);
}

.toolbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.segmented button {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.segmented button.active {
  background: var(--surface-strong);
  color: #284750;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.select-compact,
.input-compact {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: #334f5b;
  font-size: 11px;
  padding: 0 9px;
}

.input-compact {
  width: 220px;
}

.empty-state {
  min-height: 170px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.empty-state svg {
  width: 30px;
  height: 30px;
  margin-bottom: 9px;
  color: #8498a2;
}

.empty-state strong {
  display: block;
  color: #445c67;
  font-size: 13px;
}

.empty-state p {
  max-width: 380px;
  margin: 5px auto 13px;
  font-size: 11px;
}

.admin-table-panel .empty-state {
  min-height: 84px;
  padding: 10px 16px;
}

.admin-table-panel .empty-state svg {
  width: 20px;
  height: 20px;
  margin-bottom: 4px;
}

.admin-table-panel .empty-state p {
  margin-bottom: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: #4f6570;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill.succeeded,
.status-pill.completed,
.status-pill.ready,
.status-pill.approved,
.status-pill.online {
  background: var(--green-soft);
  color: var(--green);
}

.status-pill.running,
.status-pill.starting,
.status-pill.queued,
.status-pill.waiting {
  background: var(--blue-soft);
  color: var(--blue);
}

.status-pill.review,
.status-pill.pending,
.status-pill.paused {
  background: var(--yellow-soft);
  color: var(--yellow);
}

.status-pill.failed,
.status-pill.rejected {
  background: var(--red-soft);
  color: var(--red);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.data-table th {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
}

.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e8edef;
  color: #38505b;
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table tr:hover td {
  background: #f8fafb;
}

.truncate {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mono {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 10px;
}

.muted {
  color: var(--muted);
}

.studio-shell {
  min-height: calc(100vh - 128px);
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 350px;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.studio-episodes {
  min-width: 0;
  border-right: 1px solid var(--line);
  background: #f7f9fa;
}

.studio-side-head {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 13px;
  border-bottom: 1px solid var(--line);
}

.studio-side-head strong {
  color: #24404b;
  font-size: 12px;
}

.episode-list {
  padding: 9px;
}

.character-head {
  margin-top: 6px;
  border-top: 1px solid var(--line);
}

.character-list {
  display: grid;
  gap: 5px;
  padding: 9px;
}

.character-item {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.character-actions {
  margin-left: auto;
  opacity: 0;
  transition: opacity 120ms ease;
}

.character-item:hover .character-actions {
  opacity: 1;
}

.character-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--surface-strong);
  color: #607984;
}

.character-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.character-item strong {
  color: #2b4651;
  font-size: 10px;
}

.character-item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.character-empty {
  padding: 10px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.episode-item {
  width: 100%;
  min-height: 58px;
  display: grid;
  gap: 4px;
  margin-bottom: 5px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #3b5560;
  text-align: left;
}

.episode-item:hover {
  background: #edf2f4;
}

.episode-item.active {
  border-color: #bdd5d0;
  background: var(--teal-soft);
}

.episode-item strong {
  font-size: 11px;
}

.episode-item span {
  color: var(--muted);
  font-size: 9px;
}

.studio-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.studio-toolbar {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.studio-title {
  min-width: 0;
}

.studio-title h1 {
  margin: 0;
  color: #18343f;
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.studio-progress {
  width: 150px;
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
}

.studio-board {
  min-height: 0;
  flex: 1;
  padding: 16px;
  overflow: auto;
  background: #f2f5f6;
}

.episode-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.episode-summary h2 {
  margin: 0;
  color: #233e49;
  font-size: 14px;
}

.episode-summary p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.episode-summary-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.empty-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.studio-bulkbar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 9px 11px;
  border: 1px solid #c8dfda;
  border-radius: 7px;
  background: var(--teal-soft);
}

.studio-bulkbar.compact {
  background: #f5f8fa;
  border-color: var(--line);
}

.studio-bulkbar strong,
.studio-bulkbar span {
  display: block;
}

.studio-bulkbar strong {
  color: #25464e;
  font-size: 11px;
}

.studio-bulkbar span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.studio-bulk-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.production-run-panel {
  display: grid;
  gap: 11px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #c9ded9;
  border-radius: 7px;
  background: linear-gradient(120deg, #f1faf7 0%, #f9fbfc 100%);
}

.production-run-panel.failed,
.production-run-panel.review {
  border-color: #e5c58f;
  background: #fffaf0;
}

.production-run-head,
.production-run-title,
.production-run-actions,
.production-run-stats {
  display: flex;
  align-items: center;
  gap: 8px;
}

.production-run-head {
  justify-content: space-between;
}

.production-run-head > div:first-child {
  min-width: 0;
}

.production-run-head > div:first-child > span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.production-run-title strong {
  color: #24454f;
  font-size: 11px;
}

.production-stage-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.production-stage {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
}

.production-stage > span {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  font-size: 8px;
}

.production-stage.done > span {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.production-stage.current > span,
.production-stage.current strong {
  border-color: var(--teal);
  color: var(--teal);
}

.production-stage strong {
  overflow: hidden;
  color: #526973;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.production-run-progress {
  display: grid;
  gap: 5px;
}

.production-run-stats {
  justify-content: flex-end;
  color: var(--muted);
  font-size: 8.5px;
}

.production-run-stats strong {
  color: #24454f;
}

.production-profile-note {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.production-plan-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 7px;
}

.production-plan-preview-head strong,
.production-plan-preview-head small {
  display: block;
}

.production-plan-preview-head strong {
  color: var(--ink);
  font-size: 11px;
}

.production-plan-preview-head small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.production-plan-preview {
  max-height: 360px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f5f5f7;
}

.production-plan-profile {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
}

.production-plan-profile > div {
  padding: 10px;
  background: #ffffff;
}

.production-plan-profile span,
.production-plan-profile strong,
.production-plan-profile small {
  display: block;
}

.production-plan-profile span,
.production-plan-profile small {
  color: var(--muted);
  font-size: 8px;
}

.production-plan-profile strong {
  margin: 4px 0 2px;
  color: var(--ink);
  font-size: 12px;
}

.production-plan-warning {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 9px;
  border: 1px solid #f0dfc3;
  border-radius: 5px;
  background: #fffaf0;
  color: #795c2d;
  font-size: 8px;
  line-height: 1.5;
}

.production-plan-warning svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.production-plan-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.production-plan-counts span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 5px;
  background: #ffffff;
  color: var(--muted);
  font-size: 8px;
}

.production-plan-counts b {
  color: var(--ink);
  font-size: 12px;
}

.production-plan-task-list {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.production-plan-task {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(0, 1.8fr);
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid #e5e5ea;
  border-radius: 5px;
  background: #ffffff;
}

.production-plan-task > div:first-child {
  min-width: 0;
}

.production-plan-task strong,
.production-plan-task small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.production-plan-task strong {
  color: var(--ink);
  font-size: 9px;
}

.production-plan-task small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.production-plan-stage-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.production-plan-stage-pills span {
  padding: 3px 6px;
  border-radius: 999px;
  background: #f5f5f7;
  color: var(--muted);
  font-size: 7px;
  white-space: nowrap;
}

.production-plan-stage-pills span.run {
  background: #e8f1fc;
  color: #0071e3;
}

.production-plan-stage-pills span.cached {
  background: #edf8ef;
  color: #248a3d;
}

.production-plan-stage-pills span.reuse_pending {
  background: #fffaf0;
  color: #946200;
}

.production-plan-stage-pills span.skipped {
  background: #f5f5f7;
  color: #86868b;
  text-decoration: line-through;
}

.production-plan-more {
  margin-top: 6px;
  color: var(--muted);
  font-size: 8px;
  text-align: center;
}

.production-plan-modal-summary .production-plan-preview {
  max-height: 70vh;
}

.production-launch-summary {
  display: grid;
  gap: 4px;
  margin-bottom: 13px;
  padding: 11px 12px;
  border-left: 3px solid var(--teal);
  background: var(--teal-soft);
}

.production-launch-summary strong {
  color: #24454f;
  font-size: 13px;
}

.production-launch-summary span {
  color: #536b75;
  font-size: 9px;
  line-height: 1.6;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.shot-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.shot-card:hover,
.shot-card.active {
  border-color: #7faaa1;
  box-shadow: 0 7px 20px rgba(30, 68, 72, 0.1);
}

.shot-card.active {
  outline: 2px solid rgba(11, 117, 106, 0.15);
}

.shot-card.selected {
  border-color: var(--teal);
  background: #f2faf8;
}

.shot-preview {
  height: 116px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #152b35;
  color: #8ca2ad;
}

.shot-preview img,
.shot-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-preview svg {
  width: 28px;
  height: 28px;
}

.shot-index {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(10, 28, 38, 0.8);
  color: #ffffff;
  font-size: 9px;
}

.shot-status {
  position: absolute;
  top: 8px;
  right: 8px;
}

.shot-select-control {
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 5px;
  background: rgba(10, 28, 38, 0.82);
  cursor: pointer;
}

.shot-select-control input {
  width: 14px;
  height: 14px;
  accent-color: var(--teal);
}

.shot-body {
  padding: 10px 11px 11px;
}

.shot-body h3 {
  margin: 0;
  color: #203b46;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shot-prompt {
  height: 31px;
  margin: 5px 0 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.65;
}

.shot-steps {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.step-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #8b9ba3;
  font-size: 8px;
}

.step-chip.done {
  color: var(--green);
}

.step-chip svg {
  width: 11px;
  height: 11px;
}

.inspector {
  min-width: 0;
  border-left: 1px solid var(--line);
  background: var(--surface);
}

.inspector-head {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.inspector-head strong {
  color: #24404b;
  font-size: 12px;
}

.inspector-body {
  padding: 14px;
}

.inspector-empty {
  min-height: 260px;
}

.inspector-hero {
  width: 100%;
  max-height: 200px;
  overflow: hidden;
  border-radius: 7px;
  background: #142832;
}

.inspector-hero video,
.inspector-hero img {
  width: 100%;
  max-height: 200px;
  display: block;
  object-fit: contain;
}

.reference-preview {
  width: 100%;
  max-height: 150px;
  display: block;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
}

.reference-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reference-actions input[type="file"] {
  min-width: 0;
  flex: 1;
  color: var(--muted);
  font-size: 10px;
}

.inspector-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.inspector-section h3 {
  margin: 0 0 10px;
  color: #27434e;
  font-size: 11px;
}

.field-label {
  display: block;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.form-field {
  margin-bottom: 10px;
}

.text-input,
.text-area,
.select-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  background: #ffffff;
  color: var(--ink);
  font-size: 11px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.text-input,
.select-input {
  height: 36px;
  padding: 0 10px;
}

.text-area {
  min-height: 88px;
  padding: 9px 10px;
  resize: vertical;
}

.text-area.compact-text-area {
  min-height: 66px;
}

.inspector-project-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 9px;
}

.danger-icon {
  color: var(--red);
}

.danger-text {
  color: var(--red);
}

.callout-inline {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 12px;
  border-left: 3px solid var(--teal);
  background: var(--teal-soft);
  color: #365760;
  font-size: 10px;
  line-height: 1.6;
}

.experience-review {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 11px;
  border: 1px solid #e9c98e;
  border-radius: 6px;
  background: #fff8e8;
  color: #6f5628;
}

.experience-review.accepted {
  border-color: #b9d8cf;
  background: #eef8f5;
  color: #2e6658;
}

.experience-review.rejected {
  border-color: #e6c5c0;
  background: #fff4f2;
  color: #8a463b;
}

.experience-review-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.72);
}

.experience-review-icon svg {
  width: 15px;
  height: 15px;
}

.experience-review > div:not(.experience-review-actions) {
  min-width: 0;
  flex: 1;
}

.experience-review strong,
.experience-review small {
  display: block;
}

.experience-review strong {
  font-size: 10px;
}

.experience-review small {
  margin-top: 3px;
  font-size: 9px;
  line-height: 1.55;
}

.experience-review-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.demo-project-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.demo-option {
  position: relative;
  min-height: 126px;
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
  cursor: pointer;
}

.demo-option:has(input:checked) {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}

.demo-option input {
  position: absolute;
  top: 12px;
  right: 12px;
  accent-color: var(--teal);
}

.demo-option > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--surface-strong);
  color: var(--teal);
}

.demo-option strong {
  margin-top: 4px;
  color: #25434f;
  font-size: 12px;
}

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

.batch-production-head {
  display: grid;
  gap: 3px;
  margin-bottom: 12px;
}

.batch-production-head strong {
  color: #25434f;
  font-size: 13px;
}

.batch-production-head span {
  color: var(--muted);
  font-size: 9px;
}

.pipeline-stage-list {
  display: grid;
  gap: 8px;
}

.pipeline-stage {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafb;
}

.pipeline-index {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--teal);
  font: 700 10px/1 "Cascadia Code", Consolas, monospace;
}

.pipeline-stage strong,
.pipeline-stage small {
  display: block;
}

.pipeline-stage strong {
  color: #2b4853;
  font-size: 11px;
}

.pipeline-stage small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.warning-text {
  color: var(--orange) !important;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

textarea.text-input {
  height: auto;
  min-height: 78px;
  padding: 9px 10px;
  resize: vertical;
}

.talent-command {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  padding: 17px 18px;
  border: 1px solid #d6ded7;
  border-radius: 8px;
  background:
    linear-gradient(112deg, rgba(246, 242, 232, 0.92), rgba(247, 251, 250, 0.98)),
    var(--surface);
}

.talent-command-copy > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8a642e;
  font-size: 10px;
  font-weight: 800;
}

.talent-command-copy > span svg {
  width: 15px;
  height: 15px;
}

.talent-command-copy > strong {
  display: block;
  margin-top: 5px;
  color: #253e46;
  font-size: 20px;
}

.talent-command-copy > small {
  display: block;
  max-width: 620px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.talent-command-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #dfe5df;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
}

.talent-command-stats > div {
  min-width: 0;
  padding: 11px;
  border-right: 1px solid #e3e8e4;
}

.talent-command-stats > div:last-child {
  border-right: 0;
}

.talent-command-stats span,
.talent-command-stats strong {
  display: block;
}

.talent-command-stats span {
  color: var(--muted);
  font-size: 8px;
}

.talent-command-stats strong {
  margin-top: 5px;
  color: #2b4952;
  font-size: 17px;
}

.talent-roster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.talent-card {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.talent-card-head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}

.talent-portrait {
  width: 64px;
  height: 76px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid #dbe3e5;
  border-radius: 7px;
  background: #eef3f4;
  color: #80949c;
}

.talent-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.talent-portrait svg {
  width: 26px;
  height: 26px;
}

.talent-identity {
  min-width: 0;
}

.talent-identity > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.talent-identity strong {
  overflow: hidden;
  color: #233f49;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.talent-identity small,
.talent-identity > span {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.talent-asset-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.talent-asset-status > span {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 9px;
}

.talent-asset-status > span svg {
  width: 14px;
  height: 14px;
}

.talent-asset-status > span.ready {
  background: #eaf7f2;
  color: #1d745f;
}

.talent-asset-status > span.missing {
  background: #fff4e8;
  color: #9b642b;
}

.talent-audio {
  grid-column: 1 / -1;
  width: 100%;
  height: 32px;
}

.talent-card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.talent-card-stats > div {
  min-width: 0;
  padding: 9px 0;
  border-right: 1px solid var(--line);
}

.talent-card-stats > div:not(:first-child) {
  padding-left: 10px;
}

.talent-card-stats > div:last-child {
  border-right: 0;
}

.talent-card-stats span,
.talent-card-stats strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.talent-card-stats span {
  color: var(--muted);
  font-size: 8px;
}

.talent-card-stats strong {
  margin-top: 4px;
  color: #314c55;
  font-size: 11px;
}

.talent-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.talent-card-actions .button {
  flex: 1 1 auto;
}

.talent-empty {
  grid-column: 1 / -1;
}

.talent-ledger-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.talent-license-table,
.talent-distribution-table {
  min-width: 900px;
}

.talent-policy-note {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  margin-bottom: 16px;
  padding: 13px 15px;
  border: 1px solid #ded7c7;
  border-radius: 8px;
  background: #fffbf4;
  color: #5e5748;
}

.talent-policy-note > svg {
  width: 22px;
  height: 22px;
  color: #9a743a;
}

.talent-policy-note strong,
.talent-policy-note span {
  display: block;
}

.talent-policy-note strong {
  font-size: 10px;
}

.talent-policy-note span {
  margin-top: 3px;
  font-size: 9px;
  line-height: 1.6;
}

.talent-compliance-note,
.talent-verify-summary,
.talent-revoke-warning,
.talent-token-result {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  margin: 10px 0;
  padding: 11px 12px;
  border: 1px solid #dce5e1;
  border-radius: 7px;
  background: #f5faf8;
  color: #4f665f;
  font-size: 9px;
  line-height: 1.55;
}

.talent-compliance-note svg,
.talent-verify-summary svg,
.talent-revoke-warning svg,
.talent-token-result svg {
  width: 20px;
  height: 20px;
  color: var(--teal);
}

.talent-verify-summary strong,
.talent-verify-summary span,
.talent-revoke-warning strong,
.talent-revoke-warning span,
.talent-token-result strong,
.talent-token-result span {
  display: block;
}

.talent-verify-summary strong,
.talent-revoke-warning strong,
.talent-token-result strong {
  color: #2c4a53;
  font-size: 10px;
}

.talent-verify-summary span,
.talent-revoke-warning span,
.talent-token-result span {
  margin-top: 3px;
}

.talent-revoke-warning {
  border-color: #efd7cf;
  background: #fff5f1;
}

.talent-revoke-warning svg {
  color: var(--red);
}

.talent-media-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0;
}

.talent-capture-progress {
  display: grid;
  gap: 8px;
  margin: 10px 0 18px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
}

.talent-capture-link-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 10px 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--blue-soft);
}

.talent-capture-link-panel > div {
  display: grid;
  gap: 3px;
}

.talent-capture-link-panel strong {
  font-size: 11px;
}

.talent-capture-link-panel small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.capture-session-history {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.capture-session-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.capture-session-history-head strong {
  font-size: 10px;
}

.capture-session-history-head small,
.capture-session-empty {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.capture-session-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
}

.capture-session-state {
  width: fit-content;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--muted);
  background: var(--surface-strong);
  font-size: 9px;
  font-weight: 700;
}

.capture-session-state.active {
  color: var(--green);
  background: var(--green-soft);
}

.capture-session-state.submitted {
  color: var(--blue);
  background: var(--blue-soft);
}

.capture-session-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.capture-session-meta strong {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capture-session-meta small {
  color: var(--muted);
  font-size: 8px;
}

.capture-session-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.capture-session-actions .ghost-link {
  font-size: 9px;
}

.capture-session-actions .ghost-link.danger {
  color: var(--red);
}

.capture-link-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
}

.capture-link-result > div {
  display: grid;
  gap: 5px;
}

.capture-link-result strong {
  font-size: 13px;
}

.capture-link-result p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.capture-link-result img {
  display: block;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.capture-session-token {
  color: var(--muted);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 9px;
}

.capture-qr-unavailable {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #fff;
  font-size: 10px;
  text-align: center;
}

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

.talent-capture-progress span,
.talent-capture-progress small {
  color: var(--muted);
  font-size: 10px;
}

.talent-capture-progress strong {
  font-size: 17px;
}

.talent-capture-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.talent-capture-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width 180ms ease;
}

.talent-capture-guide {
  display: grid;
  gap: 18px;
}

.talent-capture-stage {
  display: grid;
  gap: 9px;
}

.talent-capture-stage + .talent-capture-stage {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.talent-capture-stage-head {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 24px;
}

.talent-capture-stage-head svg {
  width: 16px;
  height: 16px;
  color: var(--teal);
}

.talent-capture-stage-head strong {
  font-size: 12px;
}

.talent-capture-slots {
  display: grid;
  gap: 8px;
}

.talent-capture-slot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 220px);
  align-items: center;
  gap: 14px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.talent-capture-slot.ready {
  border-color: #9dc9bd;
}

.talent-capture-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.talent-capture-copy > span {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.talent-capture-copy strong {
  font-size: 11px;
}

.talent-capture-copy em {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 9px;
  font-style: normal;
}

.talent-capture-copy em.optional {
  background: var(--surface-strong);
  color: var(--muted);
}

.talent-capture-copy small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.talent-capture-reference {
  display: block;
  width: 100%;
  max-height: 180px;
  margin-top: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: contain;
  background: var(--surface-soft);
}

.talent-capture-control {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 5px 8px;
  min-width: 0;
}

.talent-capture-control > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
}

.talent-capture-control > span svg {
  width: 13px;
  height: 13px;
}

.talent-capture-control > span.ready {
  color: var(--green);
}

.talent-capture-control > span.missing,
.talent-capture-control .ghost-link {
  color: var(--muted);
}

.talent-capture-control .ghost-link {
  justify-self: end;
  font-size: 9px;
}

.talent-capture-control input[type="file"] {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  color: var(--muted);
  font-size: 9px;
}

.talent-capture-control input[type="file"]::file-selector-button {
  margin-right: 7px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--ink);
  cursor: pointer;
}

.talent-upload-field {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fafcfc;
}

.talent-upload-field > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #2f4b55;
  font-size: 11px;
  font-weight: 700;
}

.talent-upload-field > span svg {
  width: 16px;
  height: 16px;
  color: var(--teal);
}

.talent-upload-field small,
.talent-upload-field em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  line-height: 1.5;
}

.talent-upload-field input[type="file"] {
  min-width: 0;
  color: var(--muted);
  font-size: 9px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #455f68;
  font-size: 10px;
  line-height: 1.5;
}

.checkbox-row input {
  margin-top: 2px;
}

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

.talent-channel-grid label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafcfc;
  color: #435d66;
  font-size: 10px;
}

.talent-token-result {
  border-color: #d5e5df;
  background: #eef9f5;
}

.talent-token-icon {
  display: grid;
  place-items: center;
}

.talent-token-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f9fa;
}

.talent-token-box code {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  color: #2e4a53;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 9px;
}

.talent-manifest-link {
  display: block;
  overflow-wrap: anywhere;
  color: var(--teal);
  font-size: 9px;
}

.market-command {
  background:
    linear-gradient(112deg, rgba(235, 245, 243, 0.96), rgba(250, 250, 246, 0.98)),
    var(--surface);
}

.market-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.market-listing-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.market-listing-cover {
  height: 154px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(218, 232, 231, 0.8), rgba(241, 244, 241, 0.96)),
    #eef3f2;
  color: #7c949a;
}

.market-listing-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.market-listing-cover > svg {
  width: 36px;
  height: 36px;
}

.market-listing-cover > span {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(20, 47, 58, 0.84);
  color: #f4faf9;
  font-size: 8px;
  font-weight: 800;
  backdrop-filter: blur(6px);
}

.market-listing-body {
  display: grid;
  gap: 10px;
  padding: 13px;
}

.market-listing-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
}

.market-listing-title > div {
  min-width: 0;
}

.market-listing-title strong,
.market-listing-title small {
  display: block;
}

.market-listing-title strong {
  color: #263f49;
  font-size: 14px;
}

.market-listing-title small {
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-listing-body > p {
  min-height: 31px;
  margin: 0;
  color: #566d76;
  font-size: 9px;
  line-height: 1.55;
}

.market-scene-pills,
.market-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.market-scene-pills span {
  padding: 4px 6px;
  border-radius: 4px;
  background: #edf5f2;
  color: #35695d;
  font-size: 8px;
}

.market-capabilities span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #7a6a4f;
  font-size: 8px;
}

.market-capabilities svg {
  width: 12px;
  height: 12px;
}

.market-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.market-price-row span,
.market-price-row strong {
  display: block;
}

.market-price-row span {
  color: var(--muted);
  font-size: 8px;
}

.market-price-row strong {
  margin-top: 3px;
  color: #204a45;
  font-size: 18px;
}

.market-form-section {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fafcfc;
}

.market-form-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.market-form-section-head strong {
  color: #314d57;
  font-size: 10px;
}

.market-form-section-head span {
  color: var(--muted);
  font-size: 8px;
}

.market-scene-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.market-scene-selector label {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #455f68;
  font-size: 9px;
}

.market-scene-selector label span {
  min-width: 0;
}

.market-scene-selector em {
  display: block;
  margin-top: 2px;
  color: #98703b;
  font-style: normal;
  font-size: 8px;
}

.listing-publish-row {
  margin: 10px 0;
  padding: 10px;
  border-radius: 6px;
  background: #eff8f5;
}

.market-order-options {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfc;
}

.market-quote-panel,
.market-order-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #d4e3df;
  border-radius: 7px;
  background: #f1f9f6;
}

.market-quote-panel > div {
  padding: 11px;
  border-right: 1px solid #dce8e4;
}

.market-quote-panel > div:last-child {
  border-right: 0;
}

.market-quote-panel span,
.market-quote-panel strong {
  display: block;
}

.market-quote-panel span {
  color: var(--muted);
  font-size: 8px;
}

.market-quote-panel strong {
  margin-top: 4px;
  color: #234944;
  font-size: 14px;
}

.market-order-summary {
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 14px;
}

.market-order-summary span,
.market-order-summary strong,
.market-order-summary small {
  display: block;
}

.market-order-summary span,
.market-order-summary small {
  color: var(--muted);
  font-size: 9px;
}

.market-order-summary strong {
  color: #1f4c45;
  font-size: 23px;
}

.market-own-table,
.market-order-table,
.market-settlement-table {
  min-width: 920px;
}

.quota-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
  padding: 15px 16px;
  border: 1px solid #c9ded9;
  border-radius: 8px;
  background: linear-gradient(115deg, #edf8f5 0%, #f8fbfc 100%);
}

.quota-copy > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-size: 9px;
  font-weight: 700;
}

.quota-copy strong {
  display: block;
  margin-top: 4px;
  color: #1f3c47;
  font-size: 17px;
}

.quota-copy small,
.quota-progress-head {
  color: var(--muted);
  font-size: 9px;
}

.quota-progress-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.quota-progress-head strong {
  color: #324f5a;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.plan-card {
  min-height: 178px;
  position: relative;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
}

.plan-card.featured {
  border-color: var(--teal);
  background: #eff9f6;
  box-shadow: 0 0 0 3px var(--teal-soft);
}

.plan-card > strong {
  color: #264550;
  font-size: 12px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.plan-price b {
  color: #173642;
  font-size: 23px;
}

.plan-price span,
.plan-card p,
.plan-card small {
  color: var(--muted);
  font-size: 9px;
}

.plan-card p {
  margin: 5px 0 0;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

.plan-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--teal);
  color: white;
  font-size: 8px;
  font-weight: 700;
}

.tenant-key-result {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 8px 0;
  text-align: center;
}

.tenant-key-result > svg {
  width: 34px;
  height: 34px;
  color: var(--green);
}

.tenant-key-result h3 {
  margin: 0;
  color: #24414c;
  font-size: 15px;
}

.tenant-key-result p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.tenant-key-result code {
  width: 100%;
  overflow-wrap: anywhere;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f5f8fa;
  color: #173a45;
  font: 10px/1.6 "Cascadia Code", Consolas, monospace;
}

.toggle-row {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafb;
  color: #3e5964;
  font-size: 10px;
}

.toggle-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}

.episode-export-result {
  display: grid;
  gap: 12px;
}

.episode-export-result video {
  width: 100%;
  max-height: 440px;
  border-radius: 7px;
  background: #0e202b;
}

.text-input:focus,
.text-area:focus,
.select-input:focus {
  border-color: #75a69d;
  box-shadow: 0 0 0 3px rgba(11, 117, 106, 0.08);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.action-grid .button:first-child {
  grid-column: span 2;
}

.qa-summary {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.qa-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.qa-score {
  color: var(--teal);
  font-size: 18px;
  font-weight: 800;
}

.qa-meta {
  color: var(--muted);
  font-size: 9px;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.asset-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.asset-preview {
  height: 132px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #142832;
  color: #90a5af;
}

.asset-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asset-preview audio {
  width: calc(100% - 20px);
}

.asset-preview.pending {
  background: #eef2f4;
  color: #6c818c;
}

.asset-meta {
  padding: 10px;
}

.asset-meta-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.asset-meta strong {
  font-size: 11px;
}

.asset-meta p {
  height: 32px;
  margin: 7px 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

.asset-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

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

.review-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.review-thumb {
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #e8eef1;
  color: #6f8490;
}

.review-copy {
  min-width: 0;
}

.review-copy strong {
  display: block;
  color: #27414c;
  font-size: 11px;
}

.review-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.usage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 16px;
}

.usage-bars {
  display: grid;
  gap: 12px;
}

.usage-bar-row {
  display: grid;
  gap: 5px;
}

.usage-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
}

.usage-bar-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ecef;
}

.usage-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.usage-bar-fill.orange {
  background: var(--orange);
}

.usage-bar-fill.blue {
  background: var(--blue);
}

.usage-bar-fill.gray {
  background: #718792;
}

.subscription-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  gap: 16px;
}

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

.pending-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.pending-order-row:last-child {
  border-bottom: 0;
}

.pending-order-row > div {
  display: grid;
  gap: 4px;
}

.pending-order-row > div:last-child {
  justify-items: end;
}

.pending-order-row small {
  color: var(--muted);
}

.billing-history {
  margin-top: 16px;
}

.billing-order-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.billing-order-summary > div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8faf9;
}

.billing-order-summary span,
.order-confirmation span {
  color: var(--muted);
  font-size: 10px;
}

.billing-order-summary strong {
  color: #29434f;
  font-size: 13px;
}

.invoice-facts {
  margin: 12px 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfc;
}

.order-confirmation {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px 14px;
  align-items: center;
  margin-bottom: 14px;
}

.order-confirmation > div {
  display: grid;
  gap: 3px;
}

.order-status-mark {
  grid-row: 1 / span 3;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
}

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

.settings-item {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #e8edef;
}

.settings-item:last-child {
  border-bottom: 0;
}

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

.settings-grid-secondary {
  margin-top: 14px;
}

.settings-item strong {
  color: #29434f;
  font-size: 11px;
}

.settings-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.team-role-value {
  font-size: 24px;
}

.member-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}

.member-cell > div {
  display: grid;
  gap: 3px;
}

.member-cell small {
  color: var(--muted);
}

.avatar.small {
  width: 34px;
  height: 34px;
  font-size: 11px;
}

.self-chip {
  display: inline-flex;
  margin-left: 7px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(23, 106, 82, 0.1);
  color: var(--success);
  font-size: 10px;
  font-style: normal;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 4px;
  background: #eef2f4;
  color: #41505a;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.role-owner {
  background: #e9f3ef;
  color: #176a52;
}

.role-admin {
  background: #edf2fb;
  color: #355a8f;
}

.role-producer {
  background: #fff3e5;
  color: #9a5d17;
}

.role-reviewer {
  background: #f2edf9;
  color: #6d4b92;
}

.role-viewer {
  background: #eef1f3;
  color: #5e6a72;
}

.team-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 18px;
}

.role-matrix,
.audit-list {
  display: grid;
}

.role-row,
.audit-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.role-row:last-child,
.audit-row:last-child {
  border-bottom: 0;
}

.role-row > div,
.audit-row > div {
  display: grid;
  flex: 1;
  gap: 4px;
}

.role-row small,
.audit-row small {
  color: var(--muted);
  line-height: 1.55;
}

.audit-row code {
  padding: 3px 6px;
  border-radius: 4px;
  background: #f3f6f7;
  color: #60717b;
  font-size: 10px;
}

.audit-dot {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: #bf7a28;
  box-shadow: 0 0 0 4px rgba(191, 122, 40, 0.1);
}

.account-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8faf9;
}

.account-card > div {
  display: grid;
  flex: 1;
  gap: 4px;
}

.account-card small {
  color: var(--muted);
}

.account-facts {
  margin-top: 14px;
}

.session-list {
  display: grid;
  margin-bottom: 14px;
}

.session-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

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

.session-icon {
  width: 36px;
  height: 36px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 6px;
  background: var(--teal-soft);
  color: var(--teal);
}

.session-row > div {
  display: grid;
  flex: 1;
  gap: 4px;
}

.session-row small {
  color: var(--muted);
}

.session-actions {
  justify-items: end;
}

.notification-list {
  max-height: min(540px, 65vh);
  overflow-y: auto;
  margin: -4px 0 12px;
}

.notification-row {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 8px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  text-align: left;
}

.notification-row:hover {
  background: #f7faf9;
}

.notification-row.read {
  opacity: 0.68;
}

.notification-icon {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 6px;
  background: var(--teal-soft);
  color: var(--teal);
}

.notification-row.warning .notification-icon {
  background: #fff3e5;
  color: var(--orange);
}

.notification-row.critical .notification-icon {
  background: var(--red-soft);
  color: var(--red);
}

.notification-copy {
  display: grid;
  flex: 1;
  gap: 3px;
}

.notification-copy small {
  color: #526771;
  font-size: 10px;
  line-height: 1.45;
}

.notification-copy em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}

.unread-dot {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--orange);
}

.notification-empty {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 40px 16px;
  color: var(--muted);
  text-align: center;
}

.notification-empty svg {
  color: #9aabb3;
}

.notification-empty small {
  max-width: 300px;
  line-height: 1.55;
}

.version-list {
  max-height: min(520px, 62vh);
  overflow-y: auto;
  margin-bottom: 12px;
}

.version-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

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

.version-number {
  min-width: 38px;
  display: inline-grid;
  place-items: center;
  padding: 4px 6px;
  border-radius: 5px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
}

.version-row > div {
  display: grid;
  flex: 1;
  gap: 4px;
  min-width: 0;
}

.version-row small {
  display: -webkit-box;
  overflow: hidden;
  color: #526771;
  font-size: 10px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.version-row em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(9, 25, 35, 0.56);
  backdrop-filter: blur(4px);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(4, 20, 30, 0.25);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.modal-head h2 {
  margin: 0;
  color: #1c3540;
  font-size: 16px;
}

.modal-body {
  padding: 18px;
}

.modal-foot {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.modal.modal-wide {
  width: min(1180px, 100%);
}

.script-studio {
  display: grid;
  gap: 12px;
}

.script-studio-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #d7e2dd;
  border-radius: 8px;
  background:
    linear-gradient(112deg, rgba(237, 247, 243, 0.96), rgba(249, 250, 247, 0.98)),
    var(--surface);
}

.script-studio-hero > div:first-child {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 4px;
}

.script-studio-hero > div:first-child > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-size: 9px;
  font-weight: 800;
}

.script-studio-hero > div:first-child > span svg {
  width: 15px;
  height: 15px;
}

.script-studio-hero > div:first-child > strong {
  color: #233f49;
  font-size: 17px;
}

.script-studio-hero > div:first-child > small {
  color: var(--muted);
  font-size: 9px;
}

.script-score-card {
  min-width: 116px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.8);
}

.script-score-card > span,
.script-score-card > small {
  color: var(--muted);
  font-size: 8px;
}

.script-score-card > strong {
  color: #526b73;
  font-size: 27px;
  line-height: 1;
}

.script-score-card.excellent {
  border-color: #bddfd4;
  background: #effaf6;
}

.script-score-card.excellent > strong {
  color: var(--green);
}

.script-score-card.good > strong {
  color: var(--teal);
}

.script-score-card.developing {
  border-color: #eadcc9;
  background: #fff9ef;
}

.script-score-card.developing > strong {
  color: var(--orange);
}

.script-score-card.weak {
  border-color: #edcfca;
  background: #fff7f5;
}

.script-score-card.weak > strong {
  color: var(--red);
}

.script-method-composer {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.script-method-composer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.script-method-composer-head strong,
.script-method-composer-head small {
  display: block;
}

.script-method-composer-head strong {
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 600;
}

.script-method-composer-head small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.script-method-selector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.script-method-note-field {
  grid-column: 1 / -1;
}

.script-method-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 11px;
}

.script-method-preview-grid article {
  min-width: 0;
  padding: 11px;
  border: 1px solid #e5e5ea;
  border-radius: 6px;
  background: #f5f5f7;
}

.script-method-preview-grid article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.script-method-preview-grid strong {
  color: #1d1d1f;
  font-size: 10px;
  font-weight: 600;
}

.script-method-preview-grid article > div span {
  color: #0071e3;
  font-size: 8px;
}

.script-method-preview-grid p {
  margin: 6px 0;
  color: #3a3a3c;
  font-size: 9px;
  line-height: 1.55;
}

.script-method-preview-grid ul {
  display: grid;
  gap: 3px;
  margin: 6px 0;
  padding-left: 15px;
  color: #6e6e73;
  font-size: 8px;
  line-height: 1.45;
}

.script-method-preview-grid small {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid #d2d2d7;
  color: #86868b;
  font-size: 8px;
  line-height: 1.45;
}

.script-method-preview-grid small svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.script-method-empty {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 6px;
  background: #f5f5f7;
  color: #6e6e73;
  font-size: 8px;
}

.script-method-empty svg {
  width: 16px;
  height: 16px;
}

.script-studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.72fr);
  gap: 12px;
  align-items: start;
}

.script-blueprint-column,
.script-quality-column {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.script-studio-panel {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.script-studio-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}

.script-studio-panel-head strong,
.script-studio-panel-head small {
  display: block;
}

.script-studio-panel-head strong {
  color: #284550;
  font-size: 12px;
}

.script-studio-panel-head small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.script-studio-panel-head > svg {
  width: 20px;
  height: 20px;
  color: #8aa0a8;
}

.script-quality-column .script-studio-panel {
  position: sticky;
  top: 0;
  background: #fbfcfc;
}

.script-score-breakdown {
  display: grid;
  gap: 8px;
}

.script-score-breakdown > div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 7px;
}

.script-score-breakdown span,
.script-score-breakdown strong {
  color: #526a72;
  font-size: 8px;
}

.script-score-breakdown strong {
  text-align: right;
}

.script-quality-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
}

.script-quality-metrics > div {
  min-width: 0;
  padding: 8px;
  background: #ffffff;
}

.script-quality-metrics span,
.script-quality-metrics strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.script-quality-metrics span {
  color: var(--muted);
  font-size: 8px;
}

.script-quality-metrics strong {
  margin-top: 3px;
  color: #344f59;
  font-size: 10px;
}

.script-issue-list {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 8px;
  line-height: 1.5;
}

.script-issue-list > strong {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
}

.script-issue-list > strong svg {
  width: 13px;
  height: 13px;
}

.script-issue-list > span::before {
  content: "·";
  margin-right: 5px;
}

.script-issue-list.blockers {
  background: #fff2ef;
  color: #9b4a3c;
}

.script-issue-list.warnings {
  background: #fff8ed;
  color: #8e6329;
}

.script-issue-list.suggestions {
  background: #eff8f5;
  color: #35685d;
}

.script-beat-sheet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.script-beat-sheet > label {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fafcfc;
}

.script-beat-sheet > label > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #35535d;
  font-size: 10px;
  font-weight: 700;
}

.script-beat-sheet > label b {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 5px;
  background: var(--teal-soft);
  color: var(--teal);
  font: 700 8px/1 "Cascadia Code", Consolas, monospace;
}

.script-beat-sheet > label em {
  margin-left: auto;
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
  font-weight: 400;
}

.script-studio-textarea {
  width: 100%;
  min-height: 430px;
  padding: 12px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfc;
  color: #2e4852;
  font: 11px/1.75 "Microsoft YaHei", sans-serif;
}

.script-studio-textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}

.script-compliance-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: end;
  gap: 8px;
  margin-bottom: 11px;
}

.script-compliance-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
}

.script-compliance-summary > div {
  padding: 11px;
  background: #f5f5f7;
}

.script-compliance-summary > div:first-child {
  background: #ffffff;
}

.script-compliance-summary.pass > div:first-child {
  background: #f2faf3;
}

.script-compliance-summary.warning > div:first-child {
  background: #fffaf0;
}

.script-compliance-summary.blocked > div:first-child {
  background: #fff3f4;
}

.script-compliance-summary span,
.script-compliance-summary strong,
.script-compliance-summary small {
  display: block;
}

.script-compliance-summary span,
.script-compliance-summary small {
  color: var(--muted);
  font-size: 8px;
}

.script-compliance-summary strong {
  margin: 4px 0 2px;
  color: var(--ink);
  font-size: 16px;
}

.script-compliance-issues {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.script-compliance-issue {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e5e5ea;
  border-left: 3px solid #86868b;
  border-radius: 5px;
  background: #ffffff;
}

.script-compliance-issue.high {
  border-left-color: var(--orange);
}

.script-compliance-issue.critical {
  border-left-color: var(--red);
}

.script-compliance-issue.medium {
  border-left-color: var(--yellow);
}

.script-compliance-issue.low {
  border-left-color: var(--blue);
}

.script-compliance-issue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 8px;
}

.script-compliance-issue > strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 10px;
}

.script-compliance-issue p {
  margin: 5px 0;
  color: #3a3a3c;
  font-size: 8px;
  line-height: 1.5;
}

.script-compliance-issue > small {
  display: block;
  color: #6e6e73;
  font-size: 8px;
  line-height: 1.5;
}

.script-compliance-pass,
.script-compliance-applied {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 10px 11px;
  border-radius: 6px;
  background: #f2faf3;
  color: #248a3d;
  font-size: 9px;
}

.script-compliance-pass svg,
.script-compliance-applied svg {
  width: 16px;
  height: 16px;
}

.script-compliance-changes {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 6px;
  background: #f5f5f7;
}

.script-compliance-changes strong {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-size: 9px;
}

.script-compliance-changes strong svg {
  width: 14px;
  height: 14px;
  color: var(--blue);
}

.script-compliance-changes span {
  color: #3a3a3c;
  font-size: 8px;
}

.script-compliance-changes em {
  margin-left: 4px;
  color: var(--muted);
  font-style: normal;
}

.script-compliance-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.script-compliance-disclaimer svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.script-version-table {
  min-width: 760px;
}

.script-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.45fr);
  gap: 14px;
  align-items: stretch;
}

.script-source-card,
.script-preview-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
}

.script-source-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

.script-source-head,
.script-preview-head,
.script-preview-actions,
.script-file-row,
.script-shot-options {
  display: flex;
  align-items: center;
  gap: 9px;
}

.script-source-head,
.script-preview-head {
  justify-content: space-between;
}

.script-source-head strong,
.script-preview-head strong {
  display: block;
  color: #243f4a;
  font-size: 12px;
}

.script-source-head span,
.script-preview-head span,
.script-file-row span {
  color: var(--muted);
  font-size: 9px;
}

.script-textarea {
  width: 100%;
  min-height: 430px;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: #2d4753;
  font: 11px/1.75 "Microsoft YaHei", sans-serif;
}

.script-textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}

.script-file-row {
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.file-button {
  position: relative;
  cursor: pointer;
}

.file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.script-preview-card {
  min-height: 560px;
  padding: 14px;
  background: #ffffff;
}

.script-preview-empty {
  min-height: 520px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  color: var(--muted);
  text-align: center;
}

.script-preview-empty svg {
  width: 32px;
  height: 32px;
}

.script-preview-empty strong {
  color: #405b66;
  font-size: 13px;
}

.script-preview-empty p {
  max-width: 340px;
  margin: 0;
  font-size: 10px;
}

.script-fallback {
  margin-top: 10px;
  padding: 8px 10px;
  border-left: 3px solid var(--yellow);
  background: var(--yellow-soft);
  color: #765a19;
  font-size: 9px;
  line-height: 1.55;
}

.script-preview-list {
  max-height: 56vh;
  display: grid;
  gap: 9px;
  margin-top: 11px;
  padding-right: 4px;
  overflow-y: auto;
}

.script-shot-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
}

.script-shot-index {
  padding-top: 8px;
  color: var(--teal);
  font: 700 10px/1.2 "Cascadia Code", Consolas, monospace;
}

.script-shot-fields {
  display: grid;
  gap: 7px;
}

.script-shot-options {
  flex-wrap: wrap;
}

.script-shot-options label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
}

.script-shot-options .select-input {
  height: 30px;
  min-width: 92px;
}

.script-shot-scene {
  flex: 1;
  min-width: 130px;
  color: var(--muted);
  font-size: 9px;
}

.script-preview-actions {
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.token-gate {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(120deg, rgba(16, 42, 58, 0.96), rgba(13, 83, 76, 0.94)),
    #102a3a;
}

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

.token-card {
  width: min(560px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 18px 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-strong);
}

.auth-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.auth-tabs button.active {
  background: #ffffff;
  color: var(--teal);
  box-shadow: 0 2px 8px rgba(24, 62, 72, 0.08);
}

.auth-form {
  display: grid;
  gap: 10px;
}

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

.auth-link {
  justify-self: center;
  padding: 3px 8px;
  border: 0;
  background: transparent;
  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
}

.trial-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 9px 10px;
  border-radius: 6px;
  background: var(--teal-soft);
  color: #496570;
  font-size: 9px;
  line-height: 1.55;
}

.token-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #27434f;
  font-size: 12px;
  font-weight: 700;
}

.token-card h1 {
  margin: 26px 0 7px;
  color: #172e3a;
  font-size: 23px;
}

.token-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.input-with-icon {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.input-with-icon:focus-within {
  border-color: #6c9f97;
  box-shadow: 0 0 0 3px rgba(11, 117, 106, 0.08);
}

.input-with-icon input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.token-card .button {
  margin-top: 12px;
  min-height: 42px;
}

.token-hint {
  margin-top: 14px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.token-hint code {
  color: #395662;
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 150;
  display: grid;
  gap: 8px;
}

.toast {
  width: min(360px, calc(100vw - 36px));
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: 7px;
  background: #ffffff;
  color: #2b4752;
  box-shadow: var(--shadow);
  font-size: 11px;
}

.toast.error {
  border-left-color: var(--red);
}

.toast strong {
  display: block;
  margin-bottom: 2px;
}

.loading-line {
  height: 2px;
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  overflow: hidden;
  background: transparent;
}

.loading-line.active::after {
  content: "";
  width: 34%;
  height: 100%;
  display: block;
  background: var(--teal);
  animation: loading 1.1s ease-in-out infinite;
}

@keyframes loading {
  from { transform: translateX(-100%); }
  to { transform: translateX(390%); }
}

@media (max-width: 1240px) {
  .sidebar {
    width: 78px;
  }

  .brand {
    justify-content: center;
    padding: 0;
  }

  .brand-copy,
  .primary-nav a span,
  .sidebar-service div,
  .sidebar-footer div {
    display: none;
  }

  .primary-nav a {
    justify-content: center;
    padding: 0;
  }

  .sidebar-service {
    justify-content: center;
  }

  .sidebar-footer {
    justify-content: center;
    padding: 0;
  }

  .app-body {
    width: calc(100% - 78px);
    margin-left: 78px;
  }

  .studio-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .inspector {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

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

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

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

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

  .script-quality-column .script-studio-panel {
    position: static;
  }
}

@media (max-width: 900px) {
  .content {
    padding: 16px;
  }

  .topbar {
    padding: 0 16px;
  }

  .global-search {
    display: none;
  }

  .talent-command {
    grid-template-columns: 1fr;
  }

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

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

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

  .commercial-kpi,
  .commercial-kpi:nth-child(3n) {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .commercial-kpi:nth-child(2n) {
    border-right: 0;
  }

  .commercial-kpi:nth-last-child(-n+2) {
    border-bottom: 0;
  }

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

  .production-kpi-command-value {
    grid-column: 1 / -1;
    padding-top: 12px;
    padding-left: 0;
    border-top: 1px solid #d4e4df;
    border-left: 0;
  }

  .production-kpi-grid .commercial-kpi:nth-child(3n),
  .production-kpi-grid .commercial-kpi:nth-child(4n) {
    border-right: 1px solid var(--line);
  }

  .production-kpi-grid .commercial-kpi:nth-child(2n) {
    border-right: 0;
  }

  .production-kpi-grid .commercial-kpi:nth-last-child(-n+3),
  .production-kpi-grid .commercial-kpi:nth-last-child(-n+4) {
    border-bottom: 1px solid var(--line);
  }

  .production-kpi-grid .commercial-kpi:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .production-kpi-layout,
  .production-kpi-layout.secondary {
    grid-template-columns: 1fr;
  }

  .production-operator-panel .panel-head {
    align-items: flex-start;
    gap: 8px;
  }

  .production-attribution-summary {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .commercial-detail-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

  .sales-pipeline-strip > div:nth-child(2n) {
    border-right: 0;
  }

  .sales-pipeline-strip > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

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

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

  .dashboard-grid,
  .usage-layout,
  .team-layout,
  .subscription-grid,
  .maintenance-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

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

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

  .project-row .project-stats:nth-child(3) {
    display: none;
  }

  .studio-shell {
    display: block;
  }

  .studio-episodes {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .episode-list {
    display: flex;
    overflow-x: auto;
  }

  .episode-item {
    width: 190px;
    flex: 0 0 auto;
  }

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

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

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

@media (max-width: 640px) {
  .sidebar {
    width: 100%;
    height: 58px;
    min-height: 0;
    inset: auto 0 0;
    flex-direction: row;
    align-items: center;
  }

  .brand,
  .sidebar-service,
  .sidebar-footer {
    display: none;
  }

  .primary-nav {
    width: 100%;
    display: flex;
    justify-content: space-around;
    padding: 6px;
  }

  .primary-nav a {
    width: 42px;
    min-height: 42px;
  }

  .primary-nav a:nth-child(n+6) {
    display: none;
  }

  .mobile-more-nav {
    width: 42px;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #b9cbd4;
  }

  .mobile-more-nav span {
    display: none;
  }

  .mobile-more-nav svg {
    width: 19px;
    height: 19px;
  }

  .app-body {
    width: 100%;
    margin-left: 0;
    padding-bottom: 58px;
  }

  .topbar {
    height: 60px;
  }

  .topbar-kicker,
  .connection-chip {
    display: none;
  }

  .content {
    min-height: calc(100vh - 118px);
    padding: 12px;
  }

  .page-head {
    display: block;
  }

  .page-actions {
    margin-top: 12px;
  }

  .form-grid,
  .talent-media-form,
  .talent-capture-slot,
  .capture-link-result,
  .talent-roster-grid,
  .talent-channel-grid,
  .market-listing-grid,
  .market-scene-selector {
    grid-template-columns: 1fr;
  }

  .talent-capture-link-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .capture-link-result img {
    justify-self: center;
  }

  .capture-session-row {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .capture-session-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 63px;
  }

  .talent-command {
    padding: 14px;
  }

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

  .talent-command-stats > div:nth-child(2n) {
    border-right: 0;
  }

  .talent-command-stats > div:nth-child(-n+2) {
    border-bottom: 1px solid #e3e8e4;
  }

  .talent-card-actions .button {
    flex: 1 1 calc(50% - 3px);
  }

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

  .market-quote-panel > div:nth-child(2n) {
    border-right: 0;
  }

  .market-quote-panel > div:nth-child(-n+2) {
    border-bottom: 1px solid #dce8e4;
  }

  .script-studio-hero {
    flex-direction: column;
  }

  .script-score-card {
    width: 100%;
    min-height: 82px;
  }

  .script-beat-sheet {
    grid-template-columns: 1fr;
  }

  .script-method-selector-grid,
  .script-method-preview-grid {
    grid-template-columns: 1fr;
  }

  .script-compliance-toolbar {
    grid-template-columns: 1fr;
  }

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

  .script-compliance-issues {
    grid-template-columns: 1fr;
  }

  .script-quality-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .account-notice {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .account-notice > div {
    min-width: 190px;
  }

  .metric-grid {
    gap: 8px;
  }

  .commercial-kpi-grid {
    grid-template-columns: 1fr;
  }

  .commercial-kpi,
  .commercial-kpi:nth-child(2n),
  .commercial-kpi:nth-child(3n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .commercial-kpi:last-child {
    border-bottom: 0;
  }

  .commercial-kpi strong {
    font-size: 19px;
  }

  .production-kpi-command {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  .production-kpi-command-value {
    grid-column: auto;
  }

  .production-kpi-grid .commercial-kpi,
  .production-kpi-grid .commercial-kpi:nth-child(2n),
  .production-kpi-grid .commercial-kpi:nth-child(3n),
  .production-kpi-grid .commercial-kpi:nth-child(4n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .production-kpi-grid .commercial-kpi:last-child {
    border-bottom: 0;
  }

  .production-day-chart {
    height: 180px;
  }

  .production-target-row {
    gap: 8px;
  }

  .production-chart-legend {
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .production-operator-panel .table-wrap {
    overflow: visible;
  }

  .production-operator-panel .table-wrap .production-operator-table {
    width: 100%;
    display: block;
    min-width: 0;
  }

  .production-operator-table thead {
    display: none;
  }

  .production-operator-table tbody {
    display: grid;
    gap: 9px;
    padding: 10px;
  }

  .production-operator-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 14px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fbfcfc;
  }

  .production-operator-table td,
  .production-operator-table tr:hover td {
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .production-operator-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 8px;
  }

  .production-operator-table td:first-child {
    grid-column: 1 / -1;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
  }

  .production-operator-table td strong {
    white-space: normal;
  }

  .talent-ledger-grid .table-wrap {
    overflow: visible;
  }

  .talent-ledger-grid .table-wrap .talent-license-table,
  .talent-ledger-grid .table-wrap .talent-distribution-table,
  .talent-ledger-grid .table-wrap .market-own-table,
  .talent-ledger-grid .table-wrap .market-order-table,
  .talent-ledger-grid .table-wrap .market-settlement-table {
    width: 100%;
    display: block;
    min-width: 0;
  }

  .talent-license-table thead,
  .talent-distribution-table thead,
  .market-own-table thead,
  .market-order-table thead,
  .market-settlement-table thead {
    display: none;
  }

  .talent-license-table tbody,
  .talent-distribution-table tbody,
  .market-own-table tbody,
  .market-order-table tbody,
  .market-settlement-table tbody {
    display: grid;
    gap: 9px;
    padding: 10px;
  }

  .talent-license-table tr,
  .talent-distribution-table tr,
  .market-own-table tr,
  .market-order-table tr,
  .market-settlement-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 14px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fbfcfc;
  }

  .talent-license-table td,
  .talent-distribution-table td,
  .market-own-table td,
  .market-order-table td,
  .market-settlement-table td,
  .talent-license-table tr:hover td,
  .talent-distribution-table tr:hover td,
  .market-own-table tr:hover td,
  .market-order-table tr:hover td,
  .market-settlement-table tr:hover td {
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .talent-license-table td::before,
  .talent-distribution-table td::before,
  .market-own-table td::before,
  .market-order-table td::before,
  .market-settlement-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 8px;
  }

  .talent-license-table td:first-child,
  .talent-distribution-table td:first-child,
  .market-own-table td:first-child,
  .market-order-table td:first-child,
  .market-settlement-table td:first-child {
    grid-column: 1 / -1;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
  }

  .talent-license-table td:last-child,
  .talent-distribution-table td:last-child,
  .market-own-table td:last-child,
  .market-order-table td:last-child,
  .market-settlement-table td:last-child {
    grid-column: 1 / -1;
  }

  .script-studio .table-wrap {
    overflow: visible;
  }

  .script-studio .table-wrap .script-version-table {
    width: 100%;
    display: block;
    min-width: 0;
  }

  .script-version-table thead {
    display: none;
  }

  .script-version-table tbody {
    display: grid;
    gap: 8px;
    padding: 8px 0;
  }

  .script-version-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fbfcfc;
  }

  .script-version-table td,
  .script-version-table tr:hover td {
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .script-version-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 8px;
  }

  .script-version-table td:first-child,
  .script-version-table td:last-child {
    grid-column: 1 / -1;
  }

  .commercial-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .commercial-ledger-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 10px;
    padding: 7px 0;
  }

  .commercial-ledger-row > small {
    grid-column: 1 / -1;
    text-align: left;
  }

  .operations-alert {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .operations-alert .button {
    grid-column: 2;
    justify-self: start;
  }

  .support-ticket-row {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 10px;
  }

  .support-ticket-icon {
    width: 30px;
    height: 30px;
  }

  .support-ticket-state {
    grid-column: 2;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    justify-items: start;
    gap: 7px;
  }

  .support-ticket-state em {
    justify-self: end;
  }

  .ticket-detail-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ticket-detail-head > div {
    flex-wrap: wrap;
  }

  .ticket-thread {
    max-height: 46vh;
    padding: 8px;
  }

  .ticket-message {
    max-width: 96%;
  }

  .ticket-message-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .ticket-operator-controls {
    grid-template-columns: 1fr;
  }

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

  .onboarding-steps {
    grid-template-columns: 1fr;
  }

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

  .table-wrap .data-table {
    min-width: 620px;
  }

  .admin-table-panel .table-wrap .data-table {
    min-width: 0;
  }

  .admin-customer-table thead,
  .admin-sales-table thead {
    display: none;
  }

  .admin-customer-table tbody,
  .admin-sales-table tbody {
    display: grid;
  }

  .admin-customer-table tbody tr,
  .admin-sales-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
  }

  .admin-customer-table tbody tr:last-child,
  .admin-sales-table tbody tr:last-child {
    border-bottom: 0;
  }

  .admin-customer-table td,
  .admin-sales-table td {
    min-width: 0;
    padding: 9px 10px;
    border-bottom: 1px solid #edf1f2;
    overflow-wrap: anywhere;
  }

  .admin-customer-table td:first-child,
  .admin-customer-table td:last-child,
  .admin-sales-table td:first-child,
  .admin-sales-table td:last-child {
    grid-column: 1 / -1;
  }

  .admin-customer-table td:first-child,
  .admin-sales-table td:first-child {
    background: #f8fafb;
  }

  .admin-customer-table td:last-child,
  .admin-sales-table td:last-child {
    border-bottom: 0;
    text-align: right;
  }

  .admin-customer-table td::before,
  .admin-sales-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .metric-card {
    min-height: 92px;
    padding: 12px;
  }

  .metric-value {
    font-size: 21px;
  }

  .sales-pipeline-strip {
    grid-template-columns: 1fr;
  }

  .sales-pipeline-strip > div,
  .sales-pipeline-strip > div:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sales-pipeline-strip > div:last-child {
    border-bottom: 0;
  }

  .sales-pipeline-strip > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .billing-order-summary {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .shot-grid,
  .asset-grid {
    grid-template-columns: 1fr;
  }

  .project-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .project-row > *:not(.project-identity) {
    display: none;
  }

  .studio-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px;
  }

  .studio-progress {
    width: 100%;
  }

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

  .review-item {
    grid-template-columns: 1fr;
  }
}

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

  .script-textarea {
    min-height: 260px;
  }

  .script-preview-card,
  .script-preview-empty {
    min-height: 300px;
  }

  .script-preview-list {
    max-height: none;
  }

  .quota-banner {
    grid-template-columns: 1fr auto;
  }

  .quota-progress {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .modal-backdrop {
    padding: 8px;
  }

  .modal {
    max-height: calc(100vh - 16px);
  }

  .modal-body {
    padding: 12px;
  }

  .modal-foot {
    flex-wrap: wrap;
    padding: 12px;
  }

  .modal-foot .button {
    flex: 1 1 auto;
  }

  .script-source-head,
  .script-preview-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .script-shot-row {
    grid-template-columns: 1fr;
  }

  .script-shot-index {
    padding-top: 0;
  }

  .script-shot-options label {
    flex: 1 1 120px;
  }

  .demo-project-options {
    grid-template-columns: 1fr;
  }

  .studio-bulkbar {
    align-items: stretch;
    flex-direction: column;
  }

  .studio-bulk-actions {
    align-items: stretch;
  }

  .studio-bulk-actions .button {
    flex: 1 1 140px;
  }

  .character-actions {
    opacity: 1;
  }

  .production-stage-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .production-run-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .production-run-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .production-run-stats {
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .production-plan-profile {
    grid-template-columns: 1fr;
  }

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

  .production-plan-task {
    grid-template-columns: 1fr;
  }

  .production-plan-preview-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .pipeline-stage {
    grid-template-columns: 26px minmax(0, 1fr);
  }

  .pipeline-stage .status-pill,
  .pipeline-stage .button {
    grid-column: 2;
    justify-self: start;
  }

  .quota-banner,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .quota-banner .button {
    justify-self: start;
  }

  .quota-progress {
    grid-column: auto;
  }
}

/* Jobs-inspired product direction: monochrome hierarchy, one interaction accent,
   Apple-like typography and controls, with operational density preserved. */
:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #f5f5f7;
  --surface-strong: #e8e8ed;
  --nav: #000000;
  --nav-deep: #000000;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --line-strong: #86868b;
  --teal: #0071e3;
  --teal-soft: #e8f1fc;
  --orange: #b86200;
  --orange-soft: #fff4e5;
  --blue: #0071e3;
  --blue-soft: #e8f1fc;
  --red: #d70015;
  --red-soft: #fff0f1;
  --green: #248a3d;
  --green-soft: #edf8ef;
  --yellow: #946200;
  --yellow-soft: #fff8e8;
  --shadow: none;
  --radius: 6px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "SF Pro Display",
    "PingFang SC",
    "Microsoft YaHei",
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(0, 113, 227, 0.18);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(0, 113, 227, 0.72);
  outline-offset: 2px;
}

.sidebar {
  width: 216px;
  background: #000000;
  color: #f5f5f7;
  border-right: 0;
}

.brand {
  min-height: 64px;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid #1d1d1f;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #ffffff;
  color: #000000;
  font-size: 16px;
  font-weight: 700;
}

.brand-copy strong {
  color: #f5f5f7;
  font-size: 13px;
  font-weight: 600;
}

.brand-copy small {
  color: #86868b;
  font-size: 9px;
}

.primary-nav {
  gap: 2px;
  padding: 12px 8px;
}

.primary-nav a {
  min-height: 38px;
  gap: 10px;
  padding: 0 11px;
  border-radius: 5px;
  color: #a1a1a6;
  font-size: 12px;
  font-weight: 500;
  transition: background 160ms ease, color 160ms ease;
}

.primary-nav a:hover {
  background: #1d1d1f;
  color: #f5f5f7;
}

.primary-nav a.active {
  background: #ffffff;
  color: #000000;
  font-weight: 600;
}

.primary-nav a.active svg {
  color: #000000;
}

.sidebar-service {
  margin: auto 10px 12px;
  padding: 11px;
  border: 1px solid #1d1d1f;
  border-radius: 6px;
  background: #111111;
}

.sidebar-service strong {
  color: #f5f5f7;
  font-size: 11px;
  font-weight: 600;
}

.sidebar-service small,
.sidebar-footer small {
  color: #86868b;
}

.sidebar-footer {
  min-height: 58px;
  padding: 0 15px;
  border-top: 1px solid #1d1d1f;
}

.sidebar-footer strong {
  color: #f5f5f7;
  font-size: 10px;
  font-weight: 600;
}

.avatar {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  font-size: 10px;
}

.app-body {
  width: calc(100% - 216px);
  margin-left: 216px;
}

.topbar {
  height: 56px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(20px);
}

.topbar-kicker {
  display: none;
}

.breadcrumbs {
  margin-top: 0;
  color: #1d1d1f;
  font-size: 12px;
  font-weight: 600;
}

.breadcrumbs .crumb,
.breadcrumbs .sep {
  color: #86868b;
  font-weight: 400;
}

.topbar-actions {
  gap: 7px;
}

.global-search {
  width: 226px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f5f5f7;
}

.global-search:focus-within {
  border-color: #0071e3;
  background: #ffffff;
}

.global-search input {
  font-size: 11px;
}

.icon-button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f5f5f7;
  color: #1d1d1f;
}

.icon-button:hover {
  border: 0;
  background: #e8e8ed;
}

.notification-badge {
  border-color: #ffffff;
  background: #d70015;
}

.connection-chip {
  height: 28px;
  border-radius: 999px;
  background: #f5f5f7;
  color: #6e6e73;
  font-size: 9px;
}

.connection-chip.online {
  background: #edf8ef;
  color: var(--green);
}

.content {
  min-height: calc(100vh - 56px);
  padding: 26px 28px 42px;
}

.page-head {
  align-items: flex-end;
  gap: 22px;
  margin-bottom: 22px;
}

.page-head h1 {
  color: #1d1d1f;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.12;
}

.page-head p {
  max-width: 760px;
  margin-top: 7px;
  color: #6e6e73;
  font-size: 12px;
}

.button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f5f5f7;
  color: #1d1d1f;
  font-size: 11px;
  font-weight: 600;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 120ms ease;
}

.button:hover {
  filter: none;
  background: #e8e8ed;
}

.button:active {
  transform: scale(0.985);
}

.button.primary {
  background: #000000;
  color: #ffffff;
}

.button.primary:hover {
  background: #1d1d1f;
}

.button.secondary {
  border-color: #d2d2d7;
  background: #ffffff;
  color: #1d1d1f;
}

.button.secondary:hover {
  border-color: #86868b;
  background: #ffffff;
}

.button.ghost {
  background: transparent;
  color: #0071e3;
}

.button.ghost:hover {
  background: #f5f5f7;
}

.button.danger {
  border-color: #ffd5d8;
  background: #fff0f1;
  color: #d70015;
}

.button.small {
  min-height: 28px;
  padding: 0 10px;
  font-size: 10px;
}

.panel,
.project-card,
.shot-card,
.asset-card,
.review-item,
.talent-card,
.market-listing-card,
.plan-card,
.settings-item,
.readiness-item,
.metric-card,
.commercial-kpi-grid,
.production-kpi-grid,
.quota-banner,
.production-kpi-command,
.talent-command,
.market-command,
.script-studio-hero {
  border-color: var(--line);
  border-radius: 6px;
  box-shadow: none;
}

.panel,
.project-card,
.shot-card,
.asset-card,
.review-item,
.talent-card,
.market-listing-card,
.settings-item {
  background: #ffffff;
}

.panel-head {
  min-height: 48px;
  padding: 0 16px;
}

.panel-head h2 {
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 600;
}

.panel-head small {
  color: #6e6e73;
  font-size: 9px;
}

.panel-body {
  padding: 16px;
}

.panel-foot {
  background: #f5f5f7;
}

.quota-banner,
.production-kpi-command,
.talent-command,
.market-command,
.script-studio-hero {
  background: #ffffff;
}

.talent-command-copy > span,
.production-kpi-command-copy > span,
.script-studio-hero > div:first-child > span {
  color: #0071e3;
}

.talent-command-copy > strong,
.production-kpi-command-copy > strong,
.script-studio-hero > div:first-child > strong {
  color: #1d1d1f;
  font-weight: 600;
}

.talent-command-copy > small,
.production-kpi-command-copy > small,
.script-studio-hero > div:first-child > small {
  color: #6e6e73;
}

.metric-card {
  min-height: 96px;
  padding: 15px 16px;
}

.metric-card::before {
  display: none;
}

.metric-label {
  color: #6e6e73;
  font-size: 10px;
}

.metric-value {
  margin-top: 11px;
  color: #1d1d1f;
  font-size: 27px;
  font-weight: 600;
}

.metric-detail {
  color: #86868b;
  font-size: 9px;
}

.project-card,
.shot-card,
.asset-card,
.review-item {
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.project-card:hover,
.shot-card:hover,
.asset-card:hover,
.review-item:hover {
  border-color: var(--line-strong);
  transform: none;
}

.market-listing-cover,
.talent-portrait {
  background: #e8e8ed;
}

.market-listing-cover {
  border-bottom: 1px solid #e5e5ea;
}

.segmented {
  padding: 2px;
  border: 0;
  border-radius: 8px;
  background: #e8e8ed;
}

.segmented button {
  min-height: 28px;
  padding: 0 11px;
  border-radius: 6px;
  color: #6e6e73;
  font-size: 9px;
  font-weight: 600;
}

.segmented button.active {
  background: #ffffff;
  color: #1d1d1f;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.text-input,
.text-area,
.select-input,
.select-compact,
.input-compact,
.script-textarea,
.script-studio-textarea {
  border-color: #d2d2d7;
  border-radius: 5px;
  background: #ffffff;
  color: #1d1d1f;
}

.text-input,
.select-input,
.select-compact,
.input-compact {
  min-height: 36px;
}

.text-input:focus,
.text-area:focus,
.select-input:focus,
.script-textarea:focus,
.script-studio-textarea:focus {
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.field-label {
  color: #6e6e73;
  font-size: 9px;
  font-weight: 600;
}

.toggle-row,
.checkbox-row {
  color: #3a3a3c;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: #0071e3;
}

.status-pill {
  min-height: 21px;
  border: 1px solid #e5e5ea;
  border-radius: 999px;
  background: #f5f5f7;
  color: #6e6e73;
  font-size: 8px;
  font-weight: 600;
}

.status-pill.succeeded,
.status-pill.completed,
.status-pill.ready,
.status-pill.approved,
.status-pill.online {
  border-color: #d9eddd;
  background: #f2faf3;
  color: #248a3d;
}

.status-pill.running,
.status-pill.starting,
.status-pill.queued,
.status-pill.waiting {
  border-color: #d5e6fb;
  background: #f1f7ff;
  color: #0071e3;
}

.status-pill.review,
.status-pill.pending,
.status-pill.paused {
  border-color: #f0e2c7;
  background: #fffaf0;
  color: #946200;
}

.status-pill.failed,
.status-pill.rejected {
  border-color: #ffd7db;
  background: #fff3f4;
  color: #d70015;
}

.data-table {
  font-size: 10px;
}

.data-table th {
  padding: 9px 12px;
  border-bottom: 1px solid #d2d2d7;
  background: #f5f5f7;
  color: #6e6e73;
  font-size: 9px;
  font-weight: 600;
  text-transform: none;
}

.data-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #e5e5ea;
  color: #1d1d1f;
}

.data-table tr:hover td {
  background: #f5f5f7;
}

.progress-track {
  overflow: hidden;
  border-radius: 999px;
  background: #e8e8ed;
}

.progress-fill {
  border-radius: 999px;
  background: #0071e3;
}

.production-day-fill,
.production-day-fill.reached {
  border-radius: 2px 2px 0 0;
  background: #0071e3;
}

.production-day-fill.reached {
  background: #000000;
}

.modal-backdrop {
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
}

.modal {
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
}

.modal-head {
  border-bottom: 1px solid #e5e5ea;
}

.modal-head h2 {
  color: #1d1d1f;
  font-size: 17px;
  font-weight: 600;
}

.modal-foot {
  border-top: 1px solid #e5e5ea;
  background: #f5f5f7;
}

.toast {
  border: 1px solid #d2d2d7;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(16px);
}

.toast strong {
  color: #1d1d1f;
}

.empty-state {
  color: #6e6e73;
}

.empty-state svg {
  color: #86868b;
}

.empty-state strong {
  color: #1d1d1f;
  font-weight: 600;
}

.token-gate {
  background: #f5f5f7;
}

.token-card {
  border: 1px solid #d2d2d7;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
}

.token-card .brand-mark {
  background: #000000;
  color: #ffffff;
}

.auth-tabs {
  background: #e8e8ed;
}

.auth-tabs button.active {
  background: #ffffff;
  color: #1d1d1f;
}

@media (max-width: 1240px) {
  .sidebar {
    width: 76px;
  }

  .app-body {
    width: calc(100% - 76px);
    margin-left: 76px;
  }
}

@media (max-width: 900px) {
  .content {
    padding: 18px;
  }

  .page-head h1 {
    font-size: 26px;
  }

  .topbar {
    padding: 0 18px;
  }
}

@media (max-width: 640px) {
  .sidebar {
    width: 100%;
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(18px);
  }

  .app-body {
    width: 100%;
    margin-left: 0;
  }

  .topbar {
    height: 54px;
    padding: 0 14px;
  }

  .content {
    padding: 16px 12px 28px;
  }

  .page-head h1 {
    font-size: 25px;
  }

  .button {
    min-height: 34px;
  }

  .modal {
    border-radius: 8px 8px 0 0;
  }
}
