.maestro-view {
  gap: 18px;
}

.maestro-hero,
.maestro-command,
.maestro-panel,
.maestro-kpis article {
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.028);
}

.maestro-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 18px 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.024);
}

.maestro-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.maestro-hero p,
.maestro-panel p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.5;
}

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

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

.maestro-kpis article {
  display: grid;
  gap: 8px;
  min-height: 72px;
  padding: 12px;
}

.maestro-kpis span,
.maestro-meta dt {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.maestro-kpis strong {
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.maestro-command {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 8px;
  padding: 12px;
}

.maestro-command select,
.maestro-schedule-form input,
.maestro-create input,
.maestro-create select,
.maestro-create textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  padding: 10px 11px;
  color: #fff;
  font: inherit;
}

.maestro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.maestro-tools,
.maestro-side,
.maestro-post-list,
.maestro-engines,
.maestro-create form {
  display: grid;
  gap: 12px;
}

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

.maestro-view[data-mode="projects"] .maestro-tools {
  display: none;
}

.maestro-view[data-mode="projects"] [data-maestro-feedback],
.maestro-view[data-mode="projects"] .maestro-project-only {
  display: none;
}

.maestro-view[data-mode="tools"] .maestro-project-hub {
  display: none;
}

.maestro-view[data-mode="projects"] .maestro-project-scripts,
.maestro-view[data-mode="projects"] .maestro-project-samples {
  display: none;
}

.maestro-view[data-mode="tools"] .maestro-command {
  grid-template-columns: repeat(2, minmax(120px, 1fr));
}

.maestro-view[data-mode="tools"] .maestro-command select[data-maestro-filter="engineId"] {
  display: none;
}

.maestro-view[data-mode="tools"] .maestro-tools {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.maestro-workspace {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.maestro-project-rail {
  position: sticky;
  top: 12px;
  display: grid;
  gap: 7px;
  min-width: 0;
  max-height: calc(100vh - 170px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
  padding: 8px;
}

.maestro-rail-item {
  display: grid;
  gap: 3px;
  min-height: 54px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.028);
  padding: 8px;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.maestro-rail-item:hover,
.maestro-rail-item.is-active {
  border-color: rgba(246, 211, 101, 0.34);
  background: rgba(246, 211, 101, 0.08);
}

.maestro-rail-item strong {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 0.74rem;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.maestro-rail-item span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.66rem;
  font-weight: 850;
}

.maestro-rail-item b {
  justify-self: start;
  min-width: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 2px 6px;
  color: rgba(246, 211, 101, 0.92);
  font-size: 0.66rem;
  line-height: 1;
}

.maestro-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.maestro-panel h2 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0;
}

.maestro-agenda {
  display: grid;
  gap: 12px;
}

.maestro-week-shell {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.maestro-queue-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.maestro-queue-tabs button {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.64);
  padding: 8px 10px;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.maestro-queue-tabs button.is-active {
  border-color: rgba(246, 211, 101, 0.46);
  background: rgba(246, 211, 101, 0.1);
  color: #fff;
}

.maestro-queue-tabs strong {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  min-height: 20px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  color: #f6d365;
  font-size: 0.72rem;
}

.maestro-approval-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.maestro-approval-card {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 7px;
  width: 100%;
  min-height: 136px;
  aspect-ratio: 1.05 / 1;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--maestro-format-border, rgba(255, 255, 255, 0.09));
  border-top-width: 3px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.026);
  padding: 12px;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.maestro-approval-card:hover,
.maestro-approval-card.is-active {
  border-color: rgba(246, 211, 101, 0.54);
  background: rgba(246, 211, 101, 0.08);
}

.maestro-approval-card .status-pill {
  justify-self: start;
  max-width: 100%;
}

.maestro-approval-card strong {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 0.88rem;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.maestro-approval-card small,
.maestro-approval-card em {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  line-height: 1.24;
  font-style: normal;
  font-weight: 750;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.maestro-approval-card em {
  margin-top: auto;
  -webkit-line-clamp: 1;
}

.maestro-approval-card.is-trash {
  --maestro-format-border: rgba(255, 141, 122, 0.62);
  --maestro-format-bg: rgba(255, 141, 122, 0.08);
}

.maestro-cost-shell {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.maestro-cost-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.maestro-cost-head strong {
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.2;
}

.maestro-cost-head span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.72rem;
  line-height: 1.35;
}

.maestro-cost-head em {
  flex: 0 0 auto;
  border: 1px solid rgba(246, 211, 101, 0.2);
  border-radius: 999px;
  background: rgba(246, 211, 101, 0.07);
  color: #f6d365;
  padding: 5px 8px;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 900;
}

.maestro-cost-head em.is-confirmed {
  border-color: rgba(82, 211, 137, 0.22);
  background: rgba(82, 211, 137, 0.07);
  color: #8ef0b8;
}

.maestro-cost-head em.is-unpriced {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.64);
}

.maestro-cost-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.maestro-cost-summary article,
.maestro-cost-panel {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
}

.maestro-cost-summary article {
  display: grid;
  gap: 4px;
  padding: 9px;
}

.maestro-cost-summary span,
.maestro-cost-summary small,
.maestro-cost-row small,
.maestro-cost-video small,
.maestro-cost-note span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  line-height: 1.32;
}

.maestro-cost-summary strong {
  color: #fff;
  font-size: 1rem;
  line-height: 1;
}

.maestro-cost-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 8px;
}

.maestro-cost-panel {
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 9px;
}

.maestro-cost-panel header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.maestro-cost-panel header strong {
  color: #fff;
  font-size: 0.78rem;
}

.maestro-cost-tool-list,
.maestro-cost-video-list,
.maestro-cost-note {
  display: grid;
  gap: 6px;
}

.maestro-cost-row,
.maestro-cost-video {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
  padding: 8px;
}

.maestro-cost-video {
  width: 100%;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.maestro-cost-video:hover {
  border-color: rgba(246, 211, 101, 0.32);
  background: rgba(246, 211, 101, 0.06);
}

.maestro-cost-row span,
.maestro-cost-video span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.maestro-cost-row b,
.maestro-cost-video b {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.74rem;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.maestro-cost-row strong,
.maestro-cost-video strong {
  color: #f6d365;
  font-size: 0.78rem;
  line-height: 1;
  white-space: nowrap;
}

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

.maestro-cost-note span {
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
  padding: 8px;
}

.maestro-trash-note {
  border: 1px solid rgba(255, 141, 122, 0.18);
  border-radius: 8px;
  background: rgba(255, 141, 122, 0.055);
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 10px;
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.35;
}

.maestro-week-nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.maestro-week-nav > div {
  display: grid;
  justify-items: center;
  min-width: 0;
}

.maestro-week-nav strong {
  color: #fff;
  font-size: 0.98rem;
}

.maestro-week-nav span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.74rem;
  font-weight: 800;
}

.maestro-format-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.maestro-format-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 4px 7px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  font-weight: 850;
}

.maestro-format-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--maestro-format-color, #f6d365);
}

.maestro-format-dot.is-feed,
.maestro-format-dot.is-foto,
.maestro-post.is-feed,
.maestro-post.is-foto,
.maestro-approval-card.is-feed,
.maestro-approval-card.is-foto {
  --maestro-format-color: #32d583;
  --maestro-format-bg: rgba(50, 213, 131, 0.14);
  --maestro-format-border: rgba(50, 213, 131, 0.72);
  --maestro-format-chip: rgba(50, 213, 131, 0.2);
}

.maestro-format-dot.is-reels,
.maestro-post.is-reels,
.maestro-approval-card.is-reels {
  --maestro-format-color: #38bdf8;
  --maestro-format-bg: rgba(56, 189, 248, 0.16);
  --maestro-format-border: rgba(56, 189, 248, 0.78);
  --maestro-format-chip: rgba(56, 189, 248, 0.22);
}

.maestro-format-dot.is-carrossel,
.maestro-post.is-carrossel,
.maestro-approval-card.is-carrossel {
  --maestro-format-color: #f6d365;
  --maestro-format-bg: rgba(246, 211, 101, 0.17);
  --maestro-format-border: rgba(246, 211, 101, 0.82);
  --maestro-format-chip: rgba(246, 211, 101, 0.22);
}

.maestro-format-dot.is-story,
.maestro-post.is-story,
.maestro-approval-card.is-story {
  --maestro-format-color: #f472b6;
  --maestro-format-bg: rgba(244, 114, 182, 0.16);
  --maestro-format-border: rgba(244, 114, 182, 0.78);
  --maestro-format-chip: rgba(244, 114, 182, 0.22);
}

.maestro-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  align-items: stretch;
  min-width: 0;
}

.maestro-week-day {
  display: grid;
  grid-template-rows: auto minmax(132px, 1fr);
  gap: 5px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
  padding: 6px;
}

.maestro-week-day > header {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.maestro-week-day > header span {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.7rem;
  font-weight: 850;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.maestro-week-day > header strong {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.maestro-day {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.maestro-day:first-child {
  border-top: 0;
  padding-top: 0;
}

.maestro-day-date {
  display: grid;
  align-content: start;
  gap: 3px;
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.026);
  padding: 9px;
}

.maestro-day-date strong {
  color: #fff;
  font-size: 0.96rem;
  line-height: 1;
}

.maestro-day-date span,
.maestro-day-date small,
.maestro-post-time {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.72rem;
  font-weight: 850;
}

.maestro-day-date span,
.maestro-day-date small {
  text-transform: uppercase;
}

.maestro-day-posts {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
}

.maestro-post {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 2px 5px;
  align-items: center;
  position: relative;
  width: 100%;
  min-height: 24px;
  border: 1px solid var(--maestro-format-border, rgba(255, 255, 255, 0.09));
  border-left-width: 4px;
  border-radius: 6px;
  background: var(--maestro-format-bg, rgba(0, 0, 0, 0.16));
  padding: 3px 5px;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.maestro-post.is-published-confirmed {
  opacity: 0.46;
  filter: saturate(0.62);
}

.maestro-post.is-published-confirmed:hover,
.maestro-post.is-published-confirmed.is-active {
  opacity: 0.74;
}

.maestro-post:hover,
.maestro-post.is-active {
  border-color: rgba(246, 211, 101, 0.48);
  background: rgba(246, 211, 101, 0.09);
}

.maestro-post strong,
.maestro-engine strong {
  min-width: 0;
  color: #fff;
  font-size: 0.66rem;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.maestro-post small,
.maestro-post em,
.maestro-engine span,
.maestro-engine small,
.maestro-history span,
.maestro-blockers span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-style: normal;
}

.maestro-post em {
  display: none;
}

.maestro-post-badges {
  display: flex;
  grid-column: 3;
  grid-row: 1;
  gap: 3px;
  align-items: center;
  justify-content: end;
  min-width: 0;
}

.maestro-post small {
  display: block;
  max-width: 36px;
  overflow: hidden;
  border: 1px solid var(--maestro-format-border, rgba(255, 255, 255, 0.12));
  border-radius: 999px;
  background: var(--maestro-format-chip, rgba(255, 255, 255, 0.08));
  padding: 2px 4px;
  color: var(--maestro-format-color, #f6d365);
  font-size: 0.49rem;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.maestro-post-attention {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(246, 211, 101, 0.82);
  border-radius: 999px;
  background: rgba(246, 211, 101, 0.15);
  color: #f6d365;
  font-size: 0.56rem;
  font-weight: 950;
  line-height: 1;
}

.maestro-post em {
  display: none;
}

.maestro-post-time {
  grid-row: 1;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.58rem;
  line-height: 1;
  font-weight: 900;
}

.maestro-week-empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.32);
  font-size: 0.72rem;
  font-weight: 800;
}

.maestro-detail-card {
  display: grid;
  gap: 10px;
}

.maestro-detail-card > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  padding: 0 0 2px;
}

.maestro-detail-card > header > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.maestro-detail-card > header .status-pill {
  width: max-content;
  max-width: 100%;
  padding: 4px 10px;
  line-height: 1;
}

.maestro-detail-card > header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(0.98rem, 1.45vw, 1.16rem);
  line-height: 1.16;
  letter-spacing: 0;
}

.maestro-detail-card > header p {
  margin: -2px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  line-height: 1.35;
}

.maestro-preview-link {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 10px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.maestro-preview-link.is-muted {
  color: rgba(255, 255, 255, 0.46);
}

.maestro-media-preview {
  container-type: inline-size;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
  padding: 10px;
}

.maestro-media-preview header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.maestro-media-preview strong {
  color: #fff;
  font-size: 0.86rem;
}

.maestro-media-preview small,
.maestro-media-card span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.74rem;
}

.maestro-instagram-review {
  display: grid;
  grid-template-columns: minmax(240px, 0.48fr) minmax(260px, 0.52fr);
  gap: 12px;
  align-items: start;
}

.maestro-instagram-phone {
  display: grid;
  min-width: 0;
  max-width: 430px;
  width: 100%;
  justify-self: center;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #050505;
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.28);
}

.maestro-instagram-phone.is-reels,
.maestro-instagram-phone.is-story {
  max-width: 350px;
}

.maestro-instagram-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  background: #0b0b0d;
}

.maestro-instagram-bar span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.maestro-instagram-bar i {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95), transparent 18%),
    linear-gradient(135deg, #f6d365, #52d389 55%, #38bdf8);
}

.maestro-slide-stage {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  min-height: 320px;
  background: #050505;
  overflow: visible;
}

.maestro-slide-stage video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.maestro-slide-stage.is-reels,
.maestro-slide-stage.is-story {
  aspect-ratio: 9 / 16;
}

.maestro-slide-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

.maestro-slide-nav svg {
  width: 18px;
  height: 18px;
}

.maestro-slide-nav.is-prev {
  left: 10px;
}

.maestro-slide-nav.is-next {
  right: 10px;
}

.maestro-slide-nav:hover {
  border-color: rgba(246, 211, 101, 0.34);
  color: #f6d365;
}

.maestro-slide-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 9px 12px 7px;
  background: #0b0b0d;
}

.maestro-slide-dots button {
  width: 6px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
  padding: 0;
  cursor: pointer;
}

.maestro-slide-dots button.is-active {
  background: #f6d365;
}

.maestro-slide-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 10px 10px;
  background: #0b0b0d;
  scrollbar-width: thin;
}

.maestro-slide-thumb {
  position: relative;
  flex: 0 0 54px;
  width: 54px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  padding: 0;
  cursor: pointer;
}

.maestro-slide-thumb.is-active {
  border-color: rgba(246, 211, 101, 0.78);
  box-shadow: 0 0 0 1px rgba(246, 211, 101, 0.28);
}

.maestro-slide-thumb.is-evaluated::after {
  content: "";
  position: absolute;
  right: 5px;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #52d389;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.55);
}

.maestro-slide-thumb img,
.maestro-slide-thumb > span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  object-fit: cover;
}

.maestro-slide-thumb svg {
  width: 18px;
  height: 18px;
  transform: rotate(90deg);
}

.maestro-slide-thumb small {
  position: absolute;
  left: 5px;
  bottom: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.58rem;
  font-weight: 900;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.72);
}

.maestro-active-review {
  position: sticky;
  top: 10px;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.maestro-media-card {
  display: grid;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

.maestro-media-card.is-evaluated img,
.maestro-media-card.is-evaluated video {
  border-color: rgba(82, 211, 137, 0.36);
  box-shadow: 0 0 0 1px rgba(82, 211, 137, 0.08);
}

.maestro-media-missing {
  display: none;
  min-height: 220px;
  place-items: center;
  border: 1px solid rgba(246, 211, 101, 0.16);
  border-radius: 8px;
  background: rgba(246, 211, 101, 0.045);
  color: rgba(246, 211, 101, 0.78);
  font-size: 0.78rem;
  font-weight: 850;
}

.maestro-media-card.is-missing .maestro-media-missing {
  display: grid;
}

.maestro-media-card.is-missing-required {
  min-height: 300px;
  border: 1px solid rgba(255, 106, 106, 0.18);
  border-radius: 8px;
  background: rgba(255, 106, 106, 0.045);
  padding: 12px;
}

.maestro-media-required-missing {
  display: grid;
  place-content: center;
  gap: 8px;
  min-height: 230px;
  text-align: center;
}

.maestro-media-required-missing strong {
  color: #fff;
  font-size: 0.88rem;
}

.maestro-media-required-missing span {
  color: rgba(255, 210, 210, 0.9);
  font-size: 0.76rem;
  font-weight: 850;
}

.maestro-media-required-missing small {
  max-width: 100%;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.64rem;
  overflow-wrap: anywhere;
}

.maestro-video-shell {
  position: relative;
  display: grid;
  min-width: 0;
  pointer-events: none;
}

.maestro-video-shell video {
  pointer-events: auto;
}

.maestro-video-shell button,
.maestro-video-audio-state {
  pointer-events: auto;
}

.maestro-media-card figcaption {
  display: grid;
  gap: 7px;
}

.maestro-media-card figcaption em {
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(82, 211, 137, 0.2);
  border-radius: 999px;
  background: rgba(82, 211, 137, 0.08);
  padding: 3px 7px;
  color: rgba(126, 231, 176, 0.92);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.maestro-video-shell button,
.maestro-video-audio-state {
  position: absolute;
  right: 10px;
  top: 10px;
  min-height: 30px;
  border: 1px solid rgba(246, 211, 101, 0.24);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #f6d365;
  padding: 0 10px;
  font-size: 0.68rem;
  font-weight: 900;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.maestro-video-audio-state {
  display: grid;
  place-items: center;
  border-color: rgba(255, 106, 106, 0.24);
  background: rgba(0, 0, 0, 0.7);
  color: rgba(255, 210, 210, 0.92);
}

.maestro-video-shell button:hover,
.maestro-video-shell button.is-active {
  border-color: rgba(82, 211, 137, 0.34);
  background: rgba(82, 211, 137, 0.16);
  color: rgba(126, 231, 176, 0.96);
  transform: translateY(-1px);
}

.maestro-media-card figcaption button {
  min-height: 34px;
  border: 1px solid rgba(246, 211, 101, 0.18);
  border-radius: 8px;
  background: rgba(246, 211, 101, 0.07);
  color: #f6d365;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.maestro-media-card img,
.maestro-media-card video {
  width: 100%;
  max-height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  object-fit: contain;
}

.maestro-media-card.is-stage {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #050505;
}

.maestro-media-card.is-stage img,
.maestro-media-card.is-stage video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  border: 0;
  border-radius: 0;
  background: #050505;
  object-fit: contain;
}

.maestro-media-card.is-stage .maestro-video-shell {
  height: 100%;
}

.maestro-media-card.is-stage figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 34px 10px 10px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.68));
}

.maestro-media-card.is-stage figcaption span {
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.64);
}

.maestro-media-card img,
.maestro-video-shell {
  cursor: zoom-in;
}

.maestro-fullscreen-open {
  overflow: hidden;
}

.maestro-fullscreen-media {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(18px);
}

.maestro-fullscreen-stage {
  position: relative;
  display: grid;
  gap: 10px;
  width: min(100%, 1180px);
  max-height: 100%;
  place-items: center;
}

.maestro-fullscreen-stage img,
.maestro-fullscreen-stage video {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 104px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #050505;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.maestro-fullscreen-stage video {
  width: min(100%, 980px);
}

.maestro-fullscreen-stage button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  padding: 0 12px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.maestro-fullscreen-stage span {
  max-width: min(100%, 980px);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  line-height: 1.35;
  text-align: center;
}

.maestro-media-evaluation,
.maestro-global-evaluation {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(246, 211, 101, 0.14);
  border-radius: 8px;
  background: rgba(246, 211, 101, 0.035);
  padding: 9px;
}

.maestro-global-evaluation {
  border-color: rgba(82, 211, 137, 0.16);
  background: rgba(82, 211, 137, 0.045);
}

.maestro-media-evaluation > header,
.maestro-global-evaluation > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.maestro-media-evaluation > header div,
.maestro-global-evaluation > header div,
.maestro-evaluation-step > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.maestro-media-evaluation > header span,
.maestro-media-evaluation > header em,
.maestro-global-evaluation > header span,
.maestro-global-evaluation > header em {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 850;
}

.maestro-media-evaluation > header em,
.maestro-global-evaluation > header em {
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  padding: 4px 7px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1;
}

.maestro-media-evaluation > header em.is-done,
.maestro-global-evaluation > header em.is-done {
  border-color: rgba(82, 211, 137, 0.18);
  background: rgba(82, 211, 137, 0.07);
  color: rgba(126, 231, 176, 0.92);
}

.maestro-evaluation-step {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
  padding: 7px;
}

.maestro-evaluation-step > b {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(246, 211, 101, 0.12);
  color: #f6d365;
  font-size: 0.66rem;
  line-height: 1;
}

.maestro-evaluation-step strong {
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.2;
}

.maestro-rating-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.maestro-rating-options label,
.maestro-tag-options label {
  cursor: pointer;
}

.maestro-rating-options input,
.maestro-tag-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.maestro-rating-options span {
  display: grid;
  place-items: center;
  min-height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 900;
}

.maestro-rating-options input:checked + span {
  border-color: rgba(246, 211, 101, 0.42);
  background: rgba(246, 211, 101, 0.14);
  color: #f6d365;
}

.maestro-tag-options {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-height: 70px;
  overflow: auto;
}

.maestro-tag-options span {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  padding: 5px 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.64rem;
  font-weight: 850;
  line-height: 1;
}

.maestro-tag-options input:checked + span {
  border-color: rgba(246, 211, 101, 0.34);
  background: rgba(246, 211, 101, 0.12);
  color: #f6d365;
}

.maestro-evaluation-step textarea {
  width: 100%;
  min-height: 62px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  padding: 8px;
  font: inherit;
  font-size: 0.74rem;
  line-height: 1.35;
}

.maestro-media-evaluation > button,
.maestro-global-evaluation > button {
  min-height: 32px;
  border: 1px solid rgba(246, 211, 101, 0.34);
  border-radius: 8px;
  background: rgba(246, 211, 101, 0.13);
  color: #f6d365;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 900;
  cursor: pointer;
}

.maestro-media-card audio {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.maestro-media-file {
  display: grid;
  align-content: center;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.maestro-media-card.is-audio,
.maestro-media-card.is-file {
  min-height: auto;
}

@container (max-width: 680px) {
  .maestro-instagram-review {
    grid-template-columns: 1fr;
  }

  .maestro-active-review {
    position: static;
  }

  .maestro-slide-stage {
    min-height: 260px;
  }
}

.maestro-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.maestro-meta div,
.maestro-caption,
.maestro-history,
.maestro-blockers,
.maestro-engine {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.14);
  padding: 10px;
}

.maestro-meta div {
  min-height: 58px;
  align-content: start;
  gap: 4px;
  padding: 7px 8px;
}

.maestro-meta dd {
  display: -webkit-box;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.68rem;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.maestro-schedule-edit {
  grid-column: span 2;
}

.maestro-schedule-edit dd {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.maestro-schedule-form {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(96px, 0.75fr) auto;
  gap: 7px;
  align-items: end;
  min-width: 0;
}

.maestro-schedule-form label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.maestro-schedule-form span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.58rem;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.maestro-schedule-form input {
  min-height: 32px;
  padding: 6px 8px;
  font-size: 0.72rem;
}

.maestro-schedule-form button {
  min-height: 32px;
  border: 1px solid rgba(246, 211, 101, 0.34);
  border-radius: 8px;
  background: rgba(246, 211, 101, 0.13);
  color: #f6d365;
  padding: 0 10px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.maestro-meta dt {
  font-size: 0.58rem;
  line-height: 1;
}

.maestro-caption strong,
.maestro-history strong,
.maestro-blockers strong,
.maestro-review-summary strong {
  color: #fff;
  font-size: 0.86rem;
}

.maestro-caption p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
}

.maestro-review-flow {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(246, 211, 101, 0.12);
  border-radius: 8px;
  background: rgba(246, 211, 101, 0.035);
  padding: 9px;
}

.maestro-review-flow.is-approve {
  animation: maestroDecisionApprove 620ms ease both;
}

.maestro-review-flow.is-reject {
  animation: maestroDecisionReject 620ms ease both;
  border-color: rgba(231, 76, 60, 0.35);
  background: rgba(231, 76, 60, 0.06);
}

.maestro-detail-card.is-rejected {
  border-left: 3px solid #e74c3c;
}

.maestro-rejection-stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  font-size: 0.78rem;
  font-weight: 700;
}

.maestro-review-again {
  margin-top: 6px;
  padding: 6px 14px;
  border: 1px solid rgba(246, 211, 101, 0.28);
  border-radius: 6px;
  background: rgba(246, 211, 101, 0.08);
  color: #f6d365;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.maestro-review-again:hover {
  background: rgba(246, 211, 101, 0.16);
}

.maestro-review-flow > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.maestro-review-flow > header strong {
  color: #fff;
  font-size: 0.92rem;
}

.maestro-review-flow > header small,
.maestro-review-step p,
.maestro-review-step > span {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.72rem;
  line-height: 1.35;
}

.maestro-review-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.maestro-decision-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.5fr);
  gap: 10px;
  align-items: center;
}

.maestro-decision-panel > div:first-child {
  display: grid;
  gap: 4px;
}

.maestro-decision-panel strong {
  color: #fff;
  font-size: 0.82rem;
}

.maestro-decision-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  line-height: 1.35;
}

.maestro-review-step {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 9px 11px;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  padding: 12px;
}

.maestro-review-step > b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(246, 211, 101, 0.13);
  color: #f6d365;
  font-size: 0.72rem;
}

.maestro-review-step strong {
  color: #fff;
  font-size: 0.82rem;
}

.maestro-review-buttons {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.maestro-review-buttons button {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  padding: 0 10px;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.maestro-review-buttons button:active {
  transform: scale(0.98);
}

.maestro-review-buttons button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  filter: grayscale(0.25);
  transform: none;
}

.maestro-review-buttons button.is-requested,
.maestro-review-buttons button.approve.is-requested:disabled {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.62);
  opacity: 0.52;
  box-shadow: none;
}

.maestro-review-buttons button.primary,
.maestro-review-buttons button.approve {
  border-color: rgba(246, 211, 101, 0.34);
  background: rgba(246, 211, 101, 0.12);
  color: #f6d365;
}

.maestro-review-buttons button.reject {
  border-color: rgba(255, 106, 106, 0.22);
  background: rgba(255, 106, 106, 0.06);
  color: rgba(255, 210, 210, 0.92);
}

.maestro-review-buttons button.is-confirmed {
  transform: translateY(-1px) scale(1.01);
}

.maestro-review-buttons button.approve.is-confirmed {
  border-color: rgba(82, 211, 137, 0.44);
  background: rgba(82, 211, 137, 0.14);
  box-shadow: 0 0 0 1px rgba(82, 211, 137, 0.12), 0 12px 30px rgba(82, 211, 137, 0.08);
  color: rgba(126, 231, 176, 0.96);
}

.maestro-review-buttons button.reject.is-confirmed {
  border-color: rgba(255, 106, 106, 0.42);
  background: rgba(255, 106, 106, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 106, 106, 0.1), 0 12px 30px rgba(255, 106, 106, 0.07);
}

.maestro-decision-toast {
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(246, 211, 101, 0.22);
  border-radius: 999px;
  background: rgba(246, 211, 101, 0.1);
  padding: 7px 10px;
  color: #f6d365;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
  animation: maestroDecisionToast 460ms ease both;
}

.maestro-review-flow.is-approve .maestro-decision-toast {
  border-color: rgba(82, 211, 137, 0.28);
  background: rgba(82, 211, 137, 0.1);
  color: rgba(126, 231, 176, 0.98);
}

.maestro-review-flow.is-reject .maestro-decision-toast {
  border-color: rgba(255, 106, 106, 0.28);
  background: rgba(255, 106, 106, 0.09);
  color: rgba(255, 210, 210, 0.96);
}

@keyframes maestroDecisionApprove {
  0% { border-color: rgba(246, 211, 101, 0.12); transform: translateY(0); }
  42% { border-color: rgba(82, 211, 137, 0.34); transform: translateY(-2px); }
  100% { border-color: rgba(246, 211, 101, 0.12); transform: translateY(0); }
}

@keyframes maestroDecisionReject {
  0% { border-color: rgba(246, 211, 101, 0.12); transform: translateY(0); }
  42% { border-color: rgba(255, 106, 106, 0.3); transform: translateY(-2px); }
  100% { border-color: rgba(246, 211, 101, 0.12); transform: translateY(0); }
}

@keyframes maestroDecisionToast {
  from { opacity: 0; transform: translateY(4px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.maestro-review-more {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.1);
  padding: 10px;
}

.maestro-review-summary {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
  padding: 10px;
}

.maestro-review-summary header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.maestro-review-summary small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  font-weight: 850;
}

.maestro-review-summary > div {
  display: grid;
  gap: 5px;
}

.maestro-review-summary span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  line-height: 1.35;
}

.maestro-review-summary b {
  margin-right: 6px;
  color: rgba(255, 255, 255, 0.86);
}

.maestro-learning[hidden] {
  display: none;
}

.maestro-learning > header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.maestro-learning > header p {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.76rem;
}

.maestro-learning > header span {
  flex: 0 0 auto;
  border: 1px solid rgba(246, 211, 101, 0.16);
  border-radius: 999px;
  background: rgba(246, 211, 101, 0.06);
  padding: 5px 8px;
  color: #f6d365;
  font-size: 0.68rem;
  font-weight: 900;
}

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

.maestro-learning-grid article {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.13);
  padding: 9px;
}

.maestro-learning-grid article strong {
  color: #fff;
  font-size: 0.78rem;
}

.maestro-learning-grid article span {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.maestro-motor-panel {
  gap: 10px;
}

.maestro-motor-panel:empty {
  display: none;
}

.maestro-motor-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.maestro-motor-head h2 {
  margin: 0;
  font-size: 1.02rem;
}

.maestro-motor-head p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  line-height: 1.35;
}

.maestro-motor-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr 0.82fr 1fr;
  gap: 8px;
}

.maestro-motor-card {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.14);
  padding: 10px;
}

.maestro-motor-card strong {
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.2;
}

.maestro-motor-card span,
.maestro-motor-card small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.7rem;
  line-height: 1.35;
}

.maestro-motor-card small {
  overflow-wrap: anywhere;
}

.maestro-motor-alerts {
  display: grid;
  gap: 6px;
}

.maestro-motor-alert {
  border: 1px solid rgba(255, 106, 106, 0.18);
  border-radius: 8px;
  background: rgba(255, 106, 106, 0.055);
  padding: 8px;
  color: rgba(255, 220, 220, 0.92);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
}

.maestro-motor-alert.is-warning {
  border-color: rgba(246, 211, 101, 0.2);
  background: rgba(246, 211, 101, 0.055);
  color: rgba(246, 211, 101, 0.9);
}

.maestro-motor-metrics,
.maestro-api-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.maestro-motor-metrics span,
.maestro-api-chip {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.028);
  padding: 7px;
}

.maestro-motor-metrics b,
.maestro-api-chip b {
  color: #fff;
  font-size: 0.82rem;
  line-height: 1;
}

.maestro-api-chip.is-ok {
  border-color: rgba(82, 211, 137, 0.22);
  background: rgba(82, 211, 137, 0.055);
}

.maestro-api-chip.is-warning {
  border-color: rgba(246, 211, 101, 0.22);
  background: rgba(246, 211, 101, 0.05);
}

.maestro-api-chip.is-blocked {
  border-color: rgba(255, 106, 106, 0.2);
  background: rgba(255, 106, 106, 0.05);
}

.maestro-motor-tips {
  display: grid;
  gap: 5px;
}

.maestro-motor-tips span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.maestro-review-more summary {
  color: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.maestro-review-more[open] summary {
  margin-bottom: 8px;
}

.maestro-project {
  display: grid;
  gap: 10px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.14);
  min-height: 116px;
  padding: 12px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.maestro-project:hover,
.maestro-project.is-active {
  border-color: rgba(246, 211, 101, 0.32);
  background: rgba(246, 211, 101, 0.075);
  transform: translateY(-1px);
}

.maestro-project header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.maestro-project h3 {
  margin: 6px 0 2px;
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0;
}

.maestro-project header > strong {
  color: #fff;
  font-size: 1rem;
}

.maestro-project-meta,
.maestro-project-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.maestro-project-meta span,
.maestro-project-totals span {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 7px 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.maestro-project-meta span,
.maestro-project-totals span {
  display: grid;
  gap: 2px;
}

.maestro-project-totals span {
  background: rgba(255, 255, 255, 0.026);
}

.maestro-project b {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.76rem;
}

.maestro-project-path {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.maestro-tool-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

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

.maestro-actions button {
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  padding: 0 10px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  cursor: pointer;
}

.maestro-create summary {
  color: #fff;
  cursor: pointer;
  font-weight: 850;
}

/* Maestro compact polish: smaller cards, calmer borders, smoother focus motion. */
.maestro-view {
  gap: 12px;
}

.maestro-hero,
.maestro-command,
.maestro-panel,
.maestro-kpis article {
  border-color: rgba(255, 255, 255, 0.055);
  background: rgba(255, 255, 255, 0.02);
}

.maestro-hero {
  gap: 14px;
  padding: 14px 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.016);
}

.maestro-hero h1 {
  font-size: clamp(1.22rem, 2vw, 1.7rem);
}

.maestro-hero p,
.maestro-panel p {
  font-size: 0.8rem;
  line-height: 1.38;
}

.maestro-kpis,
.maestro-command,
.maestro-workspace,
.maestro-week-shell,
.maestro-project-meta,
.maestro-project-totals,
.maestro-motor-grid,
.maestro-learning-grid {
  gap: 6px;
}

.maestro-kpis article {
  min-height: 54px;
  padding: 9px 10px;
}

.maestro-kpis span,
.maestro-meta dt {
  font-size: 0.62rem;
}

.maestro-kpis strong {
  font-size: 1.18rem;
}

.maestro-command {
  padding: 8px;
}

.maestro-command select,
.maestro-schedule-form input,
.maestro-create input,
.maestro-create select,
.maestro-create textarea {
  min-height: 34px;
  padding: 7px 9px;
  font-size: 0.76rem;
}

.maestro-view[data-mode="tools"] .maestro-tools {
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 9px;
}

.maestro-project-rail {
  gap: 5px;
  border-color: rgba(255, 255, 255, 0.055);
  padding: 6px;
}

.maestro-rail-item {
  min-height: 46px;
  gap: 2px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.02);
}

.maestro-rail-item strong {
  font-size: 0.66rem;
}

.maestro-rail-item span,
.maestro-rail-item b {
  font-size: 0.58rem;
}

.maestro-panel {
  gap: 8px;
  padding: 10px;
}

.maestro-panel h2,
.maestro-motor-head h2 {
  font-size: 0.9rem;
}

.maestro-queue-tabs button {
  min-height: 32px;
  padding: 6px 8px;
  font-size: 0.68rem;
}

.maestro-queue-tabs strong {
  min-width: 20px;
  min-height: 18px;
  font-size: 0.62rem;
}

.maestro-approval-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.maestro-approval-card {
  align-content: start;
  min-height: 126px;
  gap: 5px;
  border-top-width: 2px;
  background: rgba(255, 255, 255, 0.018);
  padding: 9px;
  transition:
    opacity 220ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 180ms ease,
    background 180ms ease;
}

.maestro-approval-card:hover,
.maestro-approval-card.is-active {
  transform: translateY(-1px);
}

.maestro-approval-card.is-active {
  box-shadow:
    inset 0 0 0 1px rgba(246, 211, 101, 0.22),
    0 12px 34px rgba(0, 0, 0, 0.18);
}

.maestro-approval-card .status-pill {
  justify-self: start;
  padding: 4px 8px;
  font-size: 0.56rem;
}

.maestro-approval-card strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.76rem;
  line-height: 1.14;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.maestro-approval-card small,
.maestro-approval-card em {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.62rem;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.maestro-week-nav strong {
  font-size: 0.86rem;
}

.maestro-week-nav span,
.maestro-format-dot,
.maestro-week-empty {
  font-size: 0.64rem;
}

.maestro-format-dot {
  padding: 3px 6px;
}

.maestro-week-grid {
  gap: 5px;
}

.maestro-week-day {
  grid-template-rows: auto minmax(104px, 1fr);
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.016);
}

.maestro-week-day > header span,
.maestro-week-day > header strong {
  font-size: 0.64rem;
}

.maestro-post {
  grid-template-columns: 28px minmax(0, 1fr) auto;
  min-height: 21px;
  border-left-width: 3px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.maestro-post:hover,
.maestro-post.is-active {
  transform: translateX(1px);
}

.maestro-post strong,
.maestro-engine strong {
  font-size: 0.6rem;
}

.maestro-post-time {
  font-size: 0.54rem;
}

.maestro-post small {
  max-width: 34px;
  font-size: 0.45rem;
}

.maestro-detail-card {
  gap: 8px;
}

.maestro-detail-card > header h2 {
  font-size: clamp(0.92rem, 1.2vw, 1.08rem);
}

.maestro-detail-card > header p,
.maestro-preview-link {
  font-size: 0.72rem;
}

.maestro-media-preview {
  gap: 8px;
  padding: 8px;
}

.maestro-instagram-review {
  grid-template-columns: minmax(220px, 0.44fr) minmax(260px, 0.56fr);
  gap: 10px;
}

.maestro-instagram-phone {
  max-width: 382px;
}

.maestro-instagram-phone.is-reels,
.maestro-instagram-phone.is-story {
  max-width: 306px;
}

.maestro-slide-stage {
  min-height: 260px;
}

.maestro-slide-nav {
  width: 30px;
  height: 30px;
}

.maestro-slide-thumb {
  flex-basis: 46px;
  width: 46px;
}

.maestro-active-review,
.maestro-media-evaluation,
.maestro-global-evaluation {
  gap: 7px;
}

.maestro-media-evaluation,
.maestro-global-evaluation,
.maestro-review-flow,
.maestro-review-summary,
.maestro-review-more,
.maestro-caption,
.maestro-history,
.maestro-blockers,
.maestro-engine,
.maestro-motor-card {
  border-color: rgba(255, 255, 255, 0.055);
  background: rgba(0, 0, 0, 0.12);
}

.maestro-evaluation-step {
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 6px;
  padding: 6px;
}

.maestro-evaluation-step > b {
  width: 18px;
  height: 18px;
  font-size: 0.58rem;
}

.maestro-evaluation-step strong {
  font-size: 0.72rem;
}

.maestro-rating-options span {
  min-height: 24px;
  border-radius: 7px;
  font-size: 0.7rem;
}

.maestro-tag-options {
  max-height: 60px;
}

.maestro-tag-options span {
  padding: 4px 7px;
  font-size: 0.58rem;
}

.maestro-evaluation-step textarea {
  min-height: 54px;
  padding: 7px;
  font-size: 0.68rem;
}

.maestro-media-evaluation > button,
.maestro-global-evaluation > button {
  min-height: 30px;
  font-size: 0.68rem;
}

.maestro-decision-panel {
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.44fr);
}

.maestro-review-buttons button {
  min-height: 32px;
  font-size: 0.68rem;
}

.maestro-motor-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.maestro-motor-card {
  gap: 5px;
  padding: 8px;
}

.maestro-motor-card strong {
  font-size: 0.72rem;
}

.maestro-motor-card span,
.maestro-motor-card small,
.maestro-motor-alert {
  font-size: 0.64rem;
}

.maestro-projects {
  grid-template-columns: repeat(4, minmax(148px, 1fr));
  gap: 8px;
}

.maestro-project {
  min-height: 118px;
  gap: 7px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.11);
}

.maestro-project p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.maestro-project h3 {
  margin: 4px 0 0;
  font-size: 0.82rem;
}

.maestro-project header > strong {
  font-size: 0.86rem;
}

.maestro-project-meta span,
.maestro-project-totals span {
  padding: 5px 6px;
  font-size: 0.62rem;
}

.maestro-project b {
  font-size: 0.66rem;
}

.maestro-project-path {
  font-size: 0.62rem;
}

.maestro-project,
.maestro-rail-item,
.maestro-queue-tabs button,
.maestro-review-buttons button,
.maestro-media-evaluation > button,
.maestro-global-evaluation > button {
  transition:
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 180ms ease,
    background 180ms ease,
    opacity 180ms ease;
}

.maestro-panel,
.maestro-project,
.maestro-approval-card,
.maestro-week-day,
.maestro-detail-card {
  animation: maestroSoftEnter 300ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.maestro-approval-card:nth-child(2),
.maestro-project:nth-child(2) {
  animation-delay: 24ms;
}

.maestro-approval-card:nth-child(3),
.maestro-project:nth-child(3) {
  animation-delay: 48ms;
}

.maestro-approval-card:nth-child(4),
.maestro-project:nth-child(4) {
  animation-delay: 72ms;
}

@keyframes maestroSoftEnter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .maestro-panel,
  .maestro-project,
  .maestro-approval-card,
  .maestro-week-day,
  .maestro-detail-card {
    animation: none;
  }

  .maestro-project,
  .maestro-approval-card,
  .maestro-post {
    transition: none;
  }
}
