:root {
  /* === Carbon v2 (2026-07-01) · Escala de elevacao real ===
     Fundo mais profundo, paineis 1 nivel acima, bordas visiveis.
     Tudo continua fluindo pelas mesmas variaveis. */
  --bg: #0B0B0E;
  --panel: #16161B;
  --panel-1: #1A1A20; /* usada em 5 pontos do CSS mas nunca existia — menus ficavam transparentes */
  --panel-2: #1F1F26;
  --border: #26262E;
  --border-strong: #34343E;
  --text: #F2F2F5;
  --muted: #9C9CAC;
  --muted-2: #7C7C8C;
  --accent: #6D56F0;
  --accent-2: #5A46D4;
  --green: #22C55E;
  --yellow: #EAB308;
  --red: #EF4444;
  --blue: #3B82F6;
  /* type scale — Carbon v2: hierarquia real de pesos */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;
  --fw-black: 800;
  /* raios padronizados: controle 8 / card 12 / pilula 999 */
  --radius-control: 8px;
  --radius-card: 12px;
  --radius-pill: 999px;
  /* profundidade sutil (barata de renderizar) */
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-raised: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-modal: 0 16px 48px rgba(0, 0, 0, 0.5);
}

/* Textos operacionais podem ser selecionados e copiados em toda a interface. */
html,
body,
#app,
#pageContent,
.modal-bg,
.modal {
  -webkit-user-select: text;
  user-select: text;
}

input,
textarea,
[contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}

.fluxo-selection-copy {
  position: fixed;
  left: 10px;
  top: 10px;
  z-index: 100000;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-pill);
  background: rgba(28, 28, 34, .92);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .32);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px) scale(.98);
  transition: opacity 140ms ease, transform 140ms ease, background-color 140ms ease;
  -webkit-user-select: none;
  user-select: none;
}

.fluxo-selection-copy.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.fluxo-selection-copy:hover {
  background: rgba(43, 43, 52, .97);
}

.fluxo-selection-copy:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 72%, white);
  outline-offset: 2px;
}

.fluxo-selection-copy svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 760px) {
  .fluxo-selection-copy {
    min-height: 38px;
    padding: 9px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fluxo-selection-copy {
    transition: none;
  }
}

/* Pulso: seletor de edição limpo e acima do dock nos apps iOS/iPadOS. */
@media (max-width: 760px) {
  body .modal-bg,
  body.fluxo-ios-app .modal-bg,
  body.fluxo-preview-ios .modal-bg {
    z-index: 1600 !important;
    padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(12px, env(safe-area-inset-bottom, 0px)) !important;
  }

  body.fluxo-ios-app .modal.fluxo-pulse-picker-modal,
  body.fluxo-preview-ios .modal.fluxo-pulse-picker-modal {
    width: 100% !important;
    max-width: 520px !important;
    max-height: calc(100dvh - max(24px, env(safe-area-inset-top, 0px)) - max(24px, env(safe-area-inset-bottom, 0px))) !important;
    padding: 20px 18px !important;
    border-radius: 22px !important;
    overscroll-behavior: contain;
  }

  body.fluxo-ios-app .fluxo-pulse-picker,
  body.fluxo-preview-ios .fluxo-pulse-picker {
    gap: 16px;
  }

  body.fluxo-ios-app .fluxo-pulse-picker-head h2,
  body.fluxo-preview-ios .fluxo-pulse-picker-head h2 {
    margin-bottom: 4px;
    font-size: 21px;
  }

  body.fluxo-ios-app .fluxo-pulse-picker-card,
  body.fluxo-preview-ios .fluxo-pulse-picker-card {
    min-height: 76px;
    border-color: rgba(148, 163, 184, .2);
    background: rgba(255,255,255,.035);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  body.fluxo-ios-app .fluxo-pulse-picker-card:active,
  body.fluxo-preview-ios .fluxo-pulse-picker-card:active {
    border-color: rgba(124,92,255,.5);
    background: rgba(124,92,255,.13);
  }
}

/* Acervo · distribuição externa dos aplicativos Clipevo */
.acervo-clipevo-apps {
  display: grid;
  gap: 18px;
  margin-bottom: 16px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 0%, rgba(109, 86, 240, .14), transparent 34%),
    var(--panel-1);
  box-shadow: var(--shadow-card);
}

.acervo-clipevo-apps-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.acervo-clipevo-apps-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: color-mix(in srgb, var(--accent) 58%, white);
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.acervo-clipevo-apps-header h3 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 27px);
  letter-spacing: -.025em;
}

.acervo-clipevo-apps-header p,
.acervo-distribution-modal-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.acervo-clipevo-apps-secure {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--green) 30%, var(--border));
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--green) 9%, transparent);
  color: color-mix(in srgb, var(--green) 62%, white);
  font-size: 12px;
  font-weight: var(--fw-semibold);
}

.acervo-clipevo-apps-secure svg,
.acervo-clipevo-channel-icon svg,
.acervo-clipevo-app-action svg,
.acervo-distribution-option svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.acervo-clipevo-apps-secure svg {
  width: 17px;
  height: 17px;
}

.acervo-clipevo-app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 12px;
}

.acervo-clipevo-app-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  min-width: 0;
  min-height: 224px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel-2) 76%, transparent);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
  transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.acervo-clipevo-app-card:hover {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--border));
  background: color-mix(in srgb, var(--panel-2) 90%, var(--accent) 10%);
  transform: translateY(-1px);
}

.acervo-clipevo-app-heading {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.acervo-clipevo-app-mark {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 12px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 78%, #111), color-mix(in srgb, var(--accent-2) 44%, #09090c));
  color: white;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 7px 18px rgba(0, 0, 0, .2);
  font-size: 18px;
  font-weight: var(--fw-extrabold);
  letter-spacing: -.04em;
}

.acervo-clipevo-app-mark-recflix {
  background: linear-gradient(145deg, #2a303c, #101216);
}

.acervo-clipevo-app-mark-clipevo-tp {
  background: linear-gradient(145deg, #292520, #0d0c0a);
  color: #ead3a8;
  font-size: 15px;
}

.acervo-clipevo-app-heading h4 {
  margin: 2px 0 0;
  font-size: 16px;
  letter-spacing: -.01em;
}

.acervo-clipevo-app-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.acervo-clipevo-app-channels {
  display: flex;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.acervo-clipevo-channel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .025);
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--fw-medium);
}

.acervo-clipevo-channel-icon svg {
  width: 14px;
  height: 14px;
}

.acervo-clipevo-channel.is-pending {
  border-style: dashed;
  color: var(--muted-2);
}

.acervo-clipevo-app-footer {
  display: grid;
  gap: 9px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.acervo-clipevo-app-footer > span {
  color: var(--muted-2);
  font-size: 11px;
}

.acervo-clipevo-app-action {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.acervo-clipevo-app-action svg {
  width: 18px;
  height: 18px;
}

.acervo-distribution-modal {
  display: grid;
  gap: 18px;
}

.acervo-distribution-modal-heading {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 13px;
}

.acervo-distribution-modal-heading h2 {
  margin: 1px 0 0;
  font-size: 22px;
  letter-spacing: -.025em;
}

.acervo-distribution-options {
  display: grid;
  gap: 9px;
}

.acervo-distribution-option {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-1);
  color: var(--text);
  text-align: left;
  transition: border-color 140ms ease, background-color 140ms ease, transform 120ms ease;
}

.acervo-distribution-option:hover {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--border));
  background: color-mix(in srgb, var(--panel-2) 88%, var(--accent) 12%);
}

.acervo-distribution-option:active {
  transform: scale(.985);
}

.acervo-distribution-option-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 14%, var(--panel-2));
  color: color-mix(in srgb, var(--accent) 55%, white);
}

.acervo-distribution-option-icon svg {
  width: 22px;
  height: 22px;
}

.acervo-distribution-option strong,
.acervo-distribution-option small {
  display: block;
}

.acervo-distribution-option strong {
  font-size: 14px;
}

.acervo-distribution-option small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.acervo-distribution-option-arrow {
  width: 19px;
  height: 19px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .acervo-clipevo-apps {
    gap: 16px;
    padding: 16px;
    border-radius: 14px;
  }

  .acervo-clipevo-apps-header {
    display: grid;
  }

  .acervo-clipevo-apps-secure {
    justify-self: start;
  }

  .acervo-clipevo-app-card {
    min-height: 0;
  }
}
/* nav icon sizing */
.ic svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-tap-highlight-color: transparent; }
body.fluxo-modal-open { overflow: hidden; }
a { color: var(--blue); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible,
summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 72%, white);
  outline-offset: 3px;
}
input, select, textarea {
  font-family: inherit; background: var(--panel-2); color: var(--text);
  border: 1px solid var(--border); padding: 10px 12px; border-radius: 8px; outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(109, 86, 240, 0.14);
}
input[disabled] { opacity: 0.6; }

.btn { background: var(--accent); color: white; border: none; padding: 11px 16px; border-radius: 8px; font-weight: 600; min-height: 44px; transition: background 140ms ease, transform 120ms ease, opacity 140ms ease; }
.btn:hover { background: var(--accent-2); }
.btn:active { transform: scale(0.96); opacity: 0.9; }
.btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn.secondary:hover { background: var(--panel-2); }
.btn.danger { background: var(--red); }
.btn.warning { background: var(--yellow); color: #1b1500; }
.btn.success { background: var(--green); color: #052915; }
.btn.small { padding: 8px 12px; font-size: 13px; border-radius: 8px; min-height: 36px; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.btn[disabled]:active { transform: none; opacity: 0.4; }
/* Layout v2 — variantes de botão para hierarquia (1 primária + ghost/ícone/⋯) */
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); font-weight: 600; }
.btn.ghost:hover { background: var(--panel-2); }
.btn.neutral { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn.neutral:hover { background: var(--panel-2); }
.btn.icon-only { width: 44px; min-width: 44px; padding: 0; display: grid; place-items: center; }
.btn.tile { display: inline-flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; min-height: 64px; font-size: 12px; font-weight: 600; background: var(--panel-2); color: var(--text); border: 1px solid var(--border); }
.btn.tile:hover { background: #232838; }
/* Layout v2 — menu "Mais ⋯": expande em fluxo (sem posicionamento/corte/z-index) e reaproveita os botões */
details.fx-menu { position: relative; }
details.fx-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; }
details.fx-menu > summary::-webkit-details-marker { display: none; }
details.fx-menu > summary::marker { content: ""; }
.fx-menu-pop { margin-top: 6px; display: grid; gap: 6px; padding: 8px; min-width: 176px; background: var(--panel-1); border: 1px solid var(--border); border-radius: 12px; }
.fx-menu-pop .btn { width: 100%; justify-content: flex-start; }
/* Card de produção — hierarquia estável: uma ação principal e pares secundários simétricos. */
.production-card {
  overflow: hidden;
  background: var(--panel-2);
}
.production-card-body {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
}
.production-card-main { min-width: 0; }
.production-card-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
}
.production-card-meta {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.52;
}
.production-card-actions {
  display: grid;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(138, 138, 154, .18);
}
.production-card-actions-primary,
.production-card-actions-secondary {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.production-card-actions-primary { grid-template-columns: minmax(0, 1fr); }
.production-card-actions-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.production-card-actions-secondary > .btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
.production-card-actions .btn,
.production-card-action-group .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 9px 10px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 760;
  line-height: 1.18;
  text-align: center;
  white-space: normal;
}
.production-card-actions .prod-action-label,
.production-card-action-group .prod-action-label {
  min-width: 0;
  overflow-wrap: anywhere;
}
.production-card-actions .production-advance-btn {
  min-height: 48px;
  border: 1px solid rgba(196, 181, 253, .25);
  background: linear-gradient(135deg, #7965f2 0%, #6855dc 100%);
  box-shadow: 0 7px 18px rgba(88, 69, 190, .18);
  color: #fff;
  font-size: 13px;
}
.production-card-actions .production-advance-btn:hover {
  background: linear-gradient(135deg, #846fff 0%, #725fe8 100%);
}
.production-card-actions-secondary > .btn {
  border-color: rgba(138, 138, 154, .28);
  background: rgba(255, 255, 255, .018);
}
.production-card-actions-secondary > .btn:hover {
  border-color: rgba(196, 181, 253, .42);
  background: rgba(124, 92, 255, .08);
}
.production-card-action-group {
  display: grid;
  gap: 8px;
  align-items: stretch;
}
.production-card-action-group.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.production-card-action-group.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Layout v2 — detalhe expandido: seções (Entregas/Ações) + ladrilhos */
.fx-section-label { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 10px 0 2px; }
.fx-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; }
.fx-tiles .btn.tile { min-height: 62px; }
.fx-tiles > details.fx-menu { min-width: 0; }
.fx-menu-tile > summary.btn.tile { width: 100%; min-height: 62px; }
.fx-menu-tile .fx-menu-pop { width: 100%; min-width: 0; box-sizing: border-box; }
.production-card-expanded-panel { flex: 1 1 100%; width: 100%; min-width: 0; padding-top: 10px; border-top: 1px solid var(--border); }
.production-card-expanded-info { color: var(--muted); line-height: 1.58; font-size: 13px; }
.production-card-pulse {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 10px;
  padding: 9px 10px;
  border: 1px solid rgba(96,165,250,.24);
  border-radius: 10px;
  background: rgba(59,130,246,.07);
}
.production-card-pulse.is-current {
  border-color: rgba(34,197,94,.48);
  background: rgba(34,197,94,.09);
}
.production-card-pulse-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.production-card-pulse-copy small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}
.production-card-pulse-copy strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.production-card-pulse-copy em {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}
.production-card-pulse .btn {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 7px 9px;
}
.production-terminal-column > summary,
.production-archived-section > summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
}
.production-terminal-column > summary::-webkit-details-marker,
.production-archived-section > summary::-webkit-details-marker {
  display: none;
}
.production-terminal-column:not([open]) {
  align-self: start;
  min-height: 0 !important;
  height: auto !important;
}
.production-terminal-column[open] > summary,
.production-archived-section[open] > summary {
  margin-bottom: 10px !important;
}
.production-terminal-hint {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.production-terminal-column[open] .production-terminal-hint,
.production-archived-section[open] .production-terminal-hint {
  font-size: 0;
}
.production-terminal-column[open] .production-terminal-hint::after,
.production-archived-section[open] .production-terminal-hint::after {
  content: "recolher";
  font-size: 11px;
}
.production-archived-section {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel-1);
  padding: 12px;
}
.production-no-cover-inline { display: flex; justify-content: flex-start; margin-top: 8px; }
.production-no-cover-mini-btn { min-height: 28px; padding: 5px 8px; border-radius: 999px; font-size: 11px; color: var(--muted); border-color: rgba(138,138,154,.34); background: transparent; }
.production-no-cover-mini-btn .prod-action-icon { width: 13px; height: 13px; }
/* Layout v2 — Entregas: grade de chips uniformes (mesmo tamanho, sem botões soltos) */
.fx-deliveries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 2px 0 4px; }
.fx-chip { display: flex; align-items: center; gap: 9px; min-height: 60px; margin: 0; padding: 10px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); text-decoration: none; cursor: pointer; box-sizing: border-box; text-align: left; font: inherit; width: 100%; -webkit-appearance: none; appearance: none; }
.fx-chip:hover { background: #232838; }
.fx-chip:active { transform: scale(0.98); }
.fx-chip.fx-chip-add { background: transparent; border-style: dashed; }
.fx-chip.fx-chip-add:hover { background: var(--panel-2); }
.fx-chip.fx-chip-static, .fx-chip.fx-chip-static:hover { cursor: default; background: var(--panel-2); transform: none; }
.fx-chip-ic { flex: none; display: grid; place-items: center; width: 22px; height: 22px; }
.fx-chip-ic .prod-action-icon { width: 20px; height: 20px; }
.fx-chip-tx { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fx-chip-name { font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-chip-sub { font-size: 11px; line-height: 1.2; }
.fx-deliveries-empty { font-size: 12px; color: var(--muted); padding: 8px 2px; }
.toolbar .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
}
.btn-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.money-privacy-btn {
  min-width: 156px;
  justify-content: center;
}
.prod-action-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  margin: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .78;
}
.production-change-stripe {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-align: center;
  padding: 4px 8px;
}
.production-card-notes {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 184, 77, .38);
  border-left-width: 4px;
  border-radius: 12px;
  background: rgba(255, 184, 77, .11);
  color: var(--text);
}
.production-card-notes[data-prod-act="open-text-detail"] {
  cursor: pointer;
}
.production-card-notes[data-prod-act="open-text-detail"]:focus-visible {
  outline: 2px solid rgba(125, 107, 255, .9);
  outline-offset: 2px;
}
.production-card-notes-title {
  display: block;
  margin-bottom: 5px;
  color: #fde68a;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}
.production-card-notes-body {
  color: #f8fafc;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  -webkit-user-select: text;
  user-select: text;
}
.production-card-notes-body a,
.production-text-detail-body a {
  color: #93c5fd;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.production-text-detail-body {
  max-height: min(58vh, 560px);
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 14px;
  line-height: 1.62;
  overflow-wrap: anywhere;
  -webkit-user-select: text;
  user-select: text;
}
.production-card-direct-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 9px;
}
.production-card-direct-links.count-1 { grid-template-columns: minmax(0, 1fr); }
.production-card-direct-links.count-3 > :last-child { grid-column: 1 / -1; }
.production-card-direct-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  min-width: 0;
  min-height: 46px;
  overflow: hidden;
  border: 1px solid rgba(138, 138, 154, .28);
  border-radius: 11px;
  background: rgba(255, 255, 255, .018);
  color: var(--text);
}
.production-card-direct-link.tone-purple {
  border-color: rgba(124, 92, 255, .34);
  background: rgba(124, 92, 255, .07);
  color: #ddd6fe;
}
.production-card-direct-link.tone-green {
  border-color: rgba(53, 201, 138, .32);
  background: rgba(53, 201, 138, .065);
  color: #c6f7df;
}
.production-card-direct-link > a,
.production-card-direct-link > button {
  min-width: 0;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
}
.production-card-direct-link > a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 760;
  text-decoration: none;
}
.production-card-direct-link > a span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.production-card-direct-link > button {
  display: grid;
  place-items: center;
  width: 42px;
  padding: 0;
  border-left: 1px solid currentColor;
  opacity: .74;
  cursor: pointer;
}
.production-card-direct-link > a:hover,
.production-card-direct-link > button:hover {
  background: rgba(255, 255, 255, .055);
  opacity: 1;
}
.btn.production-alteration-quick-btn {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn.production-alteration-quick-btn:hover {
  background: #232838;
}
.drive-ready-disabled {
  opacity: .48;
  filter: grayscale(.35);
}
.drive-ready-disabled:hover {
  background: var(--panel-2);
  border-color: var(--border);
}
.script-link-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px 52px;
  overflow: hidden;
  border-radius: 8px;
  margin: 0 0 8px;
}
.script-link-button.tone-purple {
  background: rgba(109,86,240,.12);
  border: 1px solid rgba(109,86,240,.36);
  color: #c4b5fd;
}
.script-link-button.tone-blue {
  background: rgba(59,130,246,.13);
  border: 1px solid rgba(59,130,246,.42);
  color: #bfdbfe;
}
.script-link-button.tone-green {
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.45);
  color: #bbf7d0;
}
.script-link-button a {
  padding: 9px 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 800;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.script-link-action {
  border: 0;
  border-left: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-weight: 900;
  min-width: 0;
}
.script-teleprompter-modal {
  max-width: 680px;
}
.script-teleprompter-full {
  width: 100%;
  resize: vertical;
  min-height: 360px;
  line-height: 1.5;
  white-space: pre-wrap;
  font-size: 15px;
}
.script-teleprompter-actions {
  justify-content: center;
  margin-top: 14px;
}
.script-teleprompter-actions .btn {
  min-width: 132px;
}
.pointer-hint {
  position: fixed;
  z-index: 1400;
  max-width: 260px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(14,14,16,.97);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 12px 28px rgba(0,0,0,.42);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.pointer-hint.show {
  opacity: 1;
  transform: translateY(0);
}
.drive-rules-page {
  display: grid;
  gap: 14px;
}
.drive-rules-panel,
.drive-rule-card {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 8px;
}
.drive-rules-panel {
  padding: 16px;
}
.drive-rules-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}
.drive-rules-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.drive-rules-header h2 {
  margin: 0 0 4px;
  font-size: 20px;
}
.drive-rules-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.drive-rule-placeholder-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.drive-rule-placeholder-row span {
  border: 1px solid var(--border);
  background: var(--panel-2);
  border-radius: 8px;
  padding: 6px 8px;
  color: var(--muted);
  font-size: 12px;
}
.drive-rules-list {
  display: grid;
  gap: 10px;
}
.drive-rule-card {
  overflow: hidden;
  border-left-width: 5px;
}
.drive-rule-card[data-drive-rule-tone="general"] { border-left-color: #38bdf8; }
.drive-rule-card[data-drive-rule-tone="manual"] { border-left-color: #34d399; }
.drive-rule-card[data-drive-rule-tone="exception"] { border-left-color: #f59e0b; }
.drive-rule-card[data-drive-rule-tone="fixed"] { border-left-color: #a78bfa; }
.drive-rule-card[data-drive-rule-tone="auto-a"] { border-left-color: #22c55e; }
.drive-rule-card[data-drive-rule-tone="auto-b"] { border-left-color: #06b6d4; }
.drive-rule-card[data-drive-rule-tone="auto-c"] { border-left-color: #f43f5e; }
.drive-rule-card[data-drive-rule-tone="auto-d"] { border-left-color: #eab308; }
.drive-rule-card summary {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}
.drive-rule-card summary::-webkit-details-marker {
  display: none;
}
.drive-rule-card summary strong {
  display: block;
}
.drive-rule-card summary small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}
.drive-rule-summary-actions,
.drive-rule-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.drive-rule-body {
  border-top: 1px solid var(--border);
  padding: 14px;
  display: grid;
  gap: 12px;
}
.drive-rule-main-config {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(220px, .75fr);
  gap: 12px;
}
.drive-rule-main-link,
.drive-rule-pathline,
.drive-rule-structure {
  border: 1px solid var(--border);
  background: var(--panel-2);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 8px;
}
.drive-rule-main-link span,
.drive-rule-pathline span,
.drive-rule-structure span {
  color: var(--muted);
  font-size: 12px;
}
.drive-rule-pathline strong,
.drive-rule-structure strong {
  overflow-wrap: anywhere;
  font-size: 12px;
}
.drive-rule-main-link {
  align-content: start;
}
.drive-rule-main-link input,
.drive-rule-card textarea {
  width: 100%;
}
.drive-rule-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.drive-rule-link-row .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.drive-rule-structure {
  display: grid;
  grid-column: 1 / -1;
}
.drive-rule-structure strong {
  padding: 7px 8px;
  border-radius: 8px;
  background: rgba(15,23,42,.36);
  border: 1px solid rgba(148,163,184,.16);
}
.drive-link-review-wrap {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.drive-link-review-wrap.needs-repair > div {
  border-color: rgba(239,68,68,.58) !important;
  color: #fecaca !important;
}
.drive-link-review-warning {
  color: #fca5a5;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.drive-link-review-status {
  border: 1px solid rgba(34,197,94,.45);
  background: rgba(34,197,94,.10);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 4px;
}
.drive-link-review-status.danger {
  border-color: rgba(239,68,68,.55);
  background: rgba(239,68,68,.10);
}
.drive-link-review-status strong,
.drive-link-review-status span {
  overflow-wrap: anywhere;
}
.drive-link-review-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.drive-link-review-grid > div {
  border: 1px solid var(--border);
  background: var(--panel-2);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 5px;
}
.drive-link-review-grid span,
.drive-link-review-grid small {
  color: var(--muted);
  line-height: 1.35;
}
.drive-link-review-grid strong {
  overflow-wrap: anywhere;
}

.app { display: flex; min-height: 100vh; }
.sidebar { width: 222px; background: var(--panel); border-right: 1px solid var(--border); padding: 20px 14px 20px 16px; }
.sidebar.menu-reorder-active { width: 276px; }
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.brand-logo { width: 36px; height: 36px; background: rgba(109,86,240,.16); border: 1px solid rgba(109,86,240,.32); border-radius: 12px; display: grid; place-items: center; font-weight: 600; color: var(--accent); }
.brand-name { font-weight: 700; font-size: 16px; }
.sidebar-pulse-indicator {
  --sidebar-pulse-tone: var(--red);
  width: 100%;
  appearance: none;
  border: 1px solid rgba(239,68,68,.72);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(239,68,68,.28), rgba(127,29,29,.12)),
    rgba(239,68,68,.08);
  color: var(--text);
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  margin: -14px 0 14px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(239,68,68,.18), 0 12px 26px rgba(239,68,68,.16);
}
.sidebar-pulse-indicator.running {
  --sidebar-pulse-tone: var(--green);
  border-color: rgba(34,197,94,.72);
  background:
    linear-gradient(135deg, rgba(34,197,94,.28), rgba(20,83,45,.14)),
    rgba(34,197,94,.08);
  box-shadow: 0 0 0 1px rgba(34,197,94,.20), 0 12px 26px rgba(34,197,94,.18);
}
.sidebar-pulse-indicator.paused {
  --sidebar-pulse-tone: var(--yellow);
  border-color: rgba(234,179,8,.72);
  background:
    linear-gradient(135deg, rgba(234,179,8,.25), rgba(113,63,18,.12)),
    rgba(234,179,8,.08);
  box-shadow: 0 0 0 1px rgba(234,179,8,.18), 0 12px 26px rgba(234,179,8,.14);
}
.sidebar-pulse-indicator.unknown {
  border-style: dashed;
  border-color: rgba(96,165,250,.76);
  background: linear-gradient(135deg, rgba(30,64,175,.28), rgba(15,23,42,.86));
  box-shadow: 0 0 0 1px rgba(96,165,250,.14), 0 12px 26px rgba(30,64,175,.13);
}
.sidebar-pulse-indicator:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}
.sidebar-pulse-beacon {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--sidebar-pulse-tone);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--sidebar-pulse-tone) 18%, transparent), 0 0 18px color-mix(in srgb, var(--sidebar-pulse-tone) 74%, transparent);
  animation: sidebar-pulse-beacon 1.4s ease-in-out infinite;
}
.sidebar-pulse-indicator.idle .sidebar-pulse-beacon,
.sidebar-pulse-indicator.paused .sidebar-pulse-beacon,
.sidebar-pulse-indicator.unknown .sidebar-pulse-beacon {
  animation: none;
}
.sidebar-pulse-indicator.unknown .sidebar-pulse-beacon {
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(59,130,246,.16);
}
.sidebar-pulse-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.sidebar-pulse-copy strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.05;
}
.sidebar-pulse-copy small {
  min-width: 0;
  color: rgba(240,240,242,.78);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@keyframes sidebar-pulse-beacon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.24); }
}
.nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--muted); margin-bottom: 4px; cursor: pointer; font-size: 14px; }
button.nav-item {
  width: 100%;
  border: 0;
  appearance: none;
  background: transparent;
  font: inherit;
  text-align: left;
}
.nav-item:hover { background: var(--panel-2); color: var(--text); }
.nav-item.active { background: var(--panel-2); color: var(--text); }
.nav-item .ic { width: 18px; text-align: center; }
.nav-snap-logo {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  background: rgba(59, 130, 246, .14);
}
.nav-snap-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.nav-item .nav-snap-logo {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  background: rgba(59, 130, 246, .14);
}
.nav-item .nav-snap-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.nav-icon-wrap {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 18px;
}
.mobile-nav-message-badge {
  position: absolute;
  top: -8px;
  right: -12px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fb7185;
  color: #fff;
  border: 2px solid var(--panel);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 0 4px rgba(251,113,133,.18);
}
.nav-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar.menu-reorder-active .nav-label {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.18;
}
.menu-reorder-panel {
  margin-top: 4px;
  padding-top: 0;
  border-top: 0;
}
.menu-fixed-action {
  background: transparent;
  color: var(--muted);
}
.sidebar.menu-reorder-active .menu-fixed-action {
  display: none !important;
}
.menu-reorder-toggle {
  width: 100%;
  min-height: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 400;
}
.menu-reorder-toggle:hover,
.menu-reorder-panel.active .menu-reorder-toggle {
  color: var(--text);
  background: var(--panel-2);
}
.menu-reorder-toggle-icon,
.menu-reorder-handle,
.menu-reorder-fixed-spacer,
.menu-reorder-move {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-grid;
  place-items: center;
}
.menu-reorder-toggle-icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}
.menu-reorder-toggle svg,
.menu-reorder-handle svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}
.menu-reorder-row {
  cursor: grab;
  gap: 8px;
}
.menu-reorder-row.dragging {
  opacity: .42;
  cursor: grabbing;
}
.menu-reorder-drop-indicator {
  position: relative;
  height: 12px;
  margin: -2px 0;
  pointer-events: none;
}
.menu-reorder-drop-indicator::before {
  content: "";
  position: absolute;
  left: 42px;
  right: 12px;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  background: rgba(231, 233, 238, .42);
  box-shadow: 0 0 0 1px rgba(15, 17, 21, .32), 0 0 18px rgba(231, 233, 238, .14);
  transform: translateY(-50%);
}
.menu-reorder-fixed-row {
  cursor: default;
}
.menu-reorder-handle,
.menu-reorder-move {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, .20);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  color: var(--muted);
  padding: 0;
}
.menu-reorder-handle:hover,
.menu-reorder-move:hover {
  border-color: rgba(109,86,240,.55);
  color: var(--text);
  background: rgba(109,86,240,.14);
}
.menu-reorder-actions {
  margin-left: auto;
  display: inline-flex;
  gap: 4px;
}
.menu-reorder-move svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mobile-more-nav {
  display: none;
  border: 0;
  appearance: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
}
.mobile-more-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(2, 6, 23, .54);
  padding: 24px 12px 0;
}
.mobile-more-overlay.show {
  display: flex;
}
.mobile-more-sheet {
  width: min(100%, 520px);
  max-height: min(76dvh, 620px);
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, .24);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: var(--panel);
  box-shadow: 0 -24px 60px rgba(0, 0, 0, .42);
  padding: 10px 12px max(14px, env(safe-area-inset-bottom, 0px));
}
.mobile-more-grabber {
  width: 38px;
  height: 4px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, .42);
}
.mobile-more-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 12px;
}
.mobile-more-head strong {
  font-size: 17px;
}
.mobile-more-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 23px;
  line-height: 1;
}
.mobile-more-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.mobile-more-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--text);
  padding: 10px;
  text-align: left;
  font-size: 13px;
  font-weight: 750;
}
.mobile-more-item.active {
  border-color: rgba(109,86,240,.60);
  background: rgba(109,86,240,.12);
}
.mobile-more-item-icon {
  width: 22px;
  text-align: center;
  flex: 0 0 22px;
  font-size: 18px;
}
.mobile-more-item-icon .ic {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}
.mobile-more-item-icon .nav-snap-logo {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 8px;
}
.mobile-more-item-icon .ic svg,
.mobile-more-reorder-icon svg {
  width: 20px;
  height: 20px;
}
.mobile-more-reorder-icon svg {
  fill: currentColor;
  stroke: none;
}
.mobile-more-compact-actions {
  grid-column: auto;
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}
.mobile-more-compact-actions .mobile-more-item {
  width: 100%;
  height: 100%;
  min-height: 50px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 7px 4px;
  text-align: center;
  font-size: 11px;
}
.mobile-more-compact-actions .mobile-more-item-icon {
  width: 18px;
  flex: 0 0 auto;
  font-size: 16px;
}
.mobile-more-compact-actions .mobile-more-item-icon .ic,
.mobile-more-compact-actions .mobile-more-reorder-icon svg,
.mobile-more-compact-actions .mobile-more-item-icon .ic svg {
  width: 18px;
  height: 18px;
}
@media (max-width: 760px) {
  .sidebar.menu-reorder-active {
    width: 100%;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 6px;
  }
  .sidebar .menu-reorder-panel:not(.active) {
    display: none;
  }
  .sidebar .menu-reorder-panel.active {
    display: block;
  }
  .sidebar.menu-reorder-active .menu-reorder-panel.active {
    order: 1;
    width: 100%;
  }
  .sidebar.menu-reorder-active .nav-item {
    order: 2;
    width: 100%;
    flex: 0 0 auto;
    flex-direction: row;
    justify-content: flex-start;
    min-height: 44px;
    padding: 9px 12px;
    text-align: left;
  }
  .sidebar.menu-reorder-active .nav-item.menu-reorder-group-start {
    border-top: 1px solid rgba(148,163,184,.16);
    padding-top: 14px;
    margin-top: 4px;
  }
  .sidebar .nav-item.mobile-secondary {
    display: none !important;
  }
  .sidebar .mobile-more-nav {
    display: flex !important;
  }
  .sidebar.menu-reorder-active .nav-item.mobile-secondary {
    display: flex !important;
  }
  .sidebar.menu-reorder-active .mobile-more-nav {
    display: none !important;
  }
  .sidebar-pulse-indicator {
    display: none;
  }
}
.main { flex: 1; padding: 24px 32px; overflow: auto; }

@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  .sidebar {
    position: sticky;
    top: 0;
    align-self: flex-start;
    flex: 0 0 240px;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .sidebar.menu-reorder-active {
    flex-basis: 300px;
  }
}

.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.page-title { font-size: 22px; font-weight: 700; margin: 0; }
.page-subtitle { color: var(--muted); margin: 4px 0 0 0; font-size: 14px; }
.page-subtitle:empty { display: none; }
.user-chip { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--border); padding: 6px 12px 6px 6px; border-radius: 999px; font-size: 14px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 12px; color: white; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.profile-view-as-row { display: flex; gap: 10px; align-items: stretch; }
.profile-view-as-select { min-height: 44px; }
.btn.profile-view-apply {
  min-width: 150px;
  min-height: 44px;
  padding: 10px 20px;
  background: var(--green);
  color: #052915;
  box-shadow: 0 10px 24px rgba(43,213,118,.18);
}
.btn.profile-view-apply:hover { background: #45e78a; }
.btn.profile-photo-save {
  background: var(--blue);
  color: #061421;
}
.btn.profile-photo-save:hover { background: #73b8ff; }
.btn.profile-photo-save-inline {
  width: auto;
  min-width: 132px;
  min-height: 40px;
  margin-top: 10px;
  padding: 9px 16px;
  font-size: 14px;
  align-self: flex-start;
}
.profile-photo-picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.profile-photo-picker-row input { display: none; }
.profile-photo-picker-row span {
  color: var(--muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#profilePhotoInput {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.profile-photo-reminder {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.profile-photo-reminder-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
}
.profile-photo-reminder h2 { margin-bottom: 6px; }
.profile-photo-reminder p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.profile-photo-reminder-actions { margin-top: 20px; }
.profile-photo-crop {
  margin-top: 10px;
  border: 1px solid rgba(77,163,255,.32);
  background: rgba(77,163,255,.07);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 12px;
}
.profile-photo-crop[hidden] { display: none; }
.profile-photo-crop-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.profile-photo-crop-frame {
  position: relative;
  width: min(220px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: #070911;
  border: 2px solid var(--blue);
  cursor: grab;
  touch-action: none;
  margin: 0 auto;
}
.profile-photo-crop-frame.dragging { cursor: grabbing; }
.profile-photo-crop-frame img {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none;
  user-select: none;
  pointer-events: none;
  transform-origin: center;
}
.profile-photo-crop-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.18);
  pointer-events: none;
}
.profile-photo-crop-controls { display: grid; gap: 10px; min-width: 0; }
.profile-photo-crop-controls label { color: var(--text); font-weight: 700; font-size: 13px; }
.profile-photo-crop-controls input[type="range"] { width: 100%; padding: 0; accent-color: var(--blue); }
.profile-photo-crop-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-photo-crop-actions .btn { flex: 1; min-width: 128px; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.toolbar input[type="search"] { flex: 1; min-width: 220px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-card); }
.card-img { aspect-ratio: 16/10; background: #0a0c12 center / cover no-repeat; position: relative; overflow: hidden; }
.card-img.placeholder { display: grid; place-items: center; color: var(--muted); font-size: 36px; }
.equipment-card-photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.equipment-photo-fallback { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 76px; line-height: 1; }
.card-img .badge { z-index: 2; }
.badge { position: absolute; top: 10px; left: 10px; padding: 4px 8px; border-radius: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
.badge.available { background: rgba(43,213,118,0.15); color: var(--green); }
.badge.reserved { background: rgba(255,184,77,0.15); color: var(--yellow); }
.badge.checked-out { background: rgba(77,163,255,0.15); color: var(--blue); }
.badge.blocked { background: rgba(255,91,107,0.15); color: var(--red); }
.card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card-title { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; line-height: 1.35; margin: 0; }
.card-cat { color: var(--muted); font-size: 12px; }
.card-actions { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); flex-wrap: wrap; }

.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal-bg.show { display: flex; }
.modal { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; width: 100%; max-width: 560px; padding: 24px; max-height: 90vh; overflow: auto; box-shadow: var(--shadow-modal); }
.modal:focus-visible { outline: 3px solid rgba(109,86,240,.62); outline-offset: 3px; }
.modal h2 { margin: 0 0 16px; font-size: 18px; }
.modal.production-costs-modal { max-width: min(1120px, calc(100vw - 32px)); }
.production-cost-list { border: 1px solid var(--border); border-radius: 12px; max-height: 58vh; overflow-y: auto; overflow-x: hidden; background: var(--panel); }
.production-cost-row { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(220px, 1.7fr) minmax(180px, 1.25fr) minmax(120px, .75fr) minmax(118px, .75fr) minmax(122px, .7fr); gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); min-width: 0; }
.production-cost-row:last-child { border-bottom: none; }
.production-cost-head { position: sticky; top: 0; z-index: 1; background: var(--panel-2); color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; padding-top: 10px; padding-bottom: 10px; }
.production-cost-main { font-weight: 800; color: var(--text); line-height: 1.25; overflow-wrap: anywhere; }
.production-cost-muted { color: var(--muted); font-size: 12px; line-height: 1.35; margin-top: 3px; overflow-wrap: anywhere; }
.production-cost-amount { font-size: 18px; font-weight: 900; white-space: nowrap; }
.production-cost-empty { margin: 0; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-row label { color: var(--muted); font-size: 13px; }
.form-row input, .form-row select, .form-row textarea { width: 100%; }

.recording-edit-link-panel {
  margin: 4px 0 16px;
  padding: 16px;
  border: 1px solid rgba(53, 201, 138, .38);
  border-radius: var(--radius-card);
  background: linear-gradient(145deg, rgba(53, 201, 138, .10), rgba(90, 167, 248, .055));
}
.recording-edit-link-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.recording-edit-link-heading > div { display: grid; gap: 4px; min-width: 0; }
.recording-edit-link-heading strong { color: var(--text); line-height: 1.35; }
.recording-edit-link-heading small { color: var(--muted); line-height: 1.45; }
.recording-edit-link-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.recording-edit-link-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  height: auto;
  min-height: 128px;
  padding: 14px 14px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  background: rgba(255,255,255,.025);
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}
.recording-edit-link-choice.is-highlighted { border-color: rgba(53, 201, 138, .42); }
.recording-edit-link-choice:has(input:checked) {
  border-color: var(--green);
  background: rgba(53, 201, 138, .12);
}
.recording-edit-link-choice input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green); }
.recording-edit-link-choice span { display: block; flex: 1 1 0; min-width: 0; }
.recording-edit-link-choice strong { display: block; color: var(--text); line-height: 1.3; overflow-wrap: anywhere; }
.recording-edit-link-choice small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.4; overflow-wrap: anywhere; }
.recording-edit-demand-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--panel-2);
}
.recording-edit-demand-box .form-row:last-of-type { margin-bottom: 8px; }
.recording-edit-demand-help { display: block; color: var(--muted); line-height: 1.45; }
.recording-shared-editing-summary { display: grid; gap: 8px; }
.recording-shared-editing-summary .pill { justify-self: start; }
.recording-shared-editing-summary strong { color: var(--text); }
.recording-shared-editing-summary small { color: var(--muted); line-height: 1.5; }
.recording-owner-send-editing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(53, 201, 138, .42);
  border-radius: var(--radius-card);
  background: linear-gradient(145deg, rgba(53, 201, 138, .12), rgba(109, 86, 240, .08));
}
.recording-owner-send-editing > div { display: grid; gap: 4px; min-width: 0; }
.recording-owner-send-editing strong { color: var(--text); line-height: 1.35; }
.recording-owner-send-editing small { color: var(--muted); line-height: 1.45; }
.recording-owner-send-editing .btn { min-width: 190px; }
.recording-owner-send-summary {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(53, 201, 138, .36);
  border-radius: var(--radius-card);
  background: rgba(53, 201, 138, .08);
}
.recording-owner-send-summary .pill { justify-self: start; }
.recording-owner-send-summary strong { color: var(--text); line-height: 1.45; }
.recording-owner-send-summary small { color: var(--muted); line-height: 1.5; }

@media (max-width: 760px) {
  .recording-edit-link-panel { padding: 14px; }
  .recording-edit-link-heading { display: grid; }
  .recording-edit-link-heading .pill { justify-self: start; }
  .recording-edit-link-choices { grid-template-columns: minmax(0, 1fr); }
  .recording-edit-link-choice { min-height: 112px; }
  .recording-owner-send-editing { grid-template-columns: minmax(0, 1fr); }
  .recording-owner-send-editing .btn { width: 100%; min-width: 0; }
}
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }

table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
th { background: var(--panel-2); color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
tr:last-child td { border-bottom: none; }

@media (max-width: 900px) {
  .modal.production-costs-modal { max-width: calc(100vw - 16px); padding: 16px; }
  .production-cost-head { display: none; }
  .production-cost-row { grid-template-columns: 1fr; gap: 8px; padding: 14px; }
  .production-cost-amount { font-size: 20px; }
}

.login-wrap { box-sizing: border-box; min-height: 100vh; width: 100vw; max-width: 100vw; display: grid; place-items: center; padding: 20px; overflow-x: hidden; }
.login-card { box-sizing: border-box; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 30px; width: 100%; max-width: min(400px, calc(100vw - 40px)); box-shadow: 0 22px 70px rgba(0,0,0,.28); }
.login-card h1 { margin: 0 0 8px; font-size: 22px; }
.login-card p { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.login-brand {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  margin: 0 0 22px;
}
.login-brand img {
  width: 82px;
  height: 82px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  box-shadow: 0 12px 32px rgba(109,86,240,.18);
}
.login-brand span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.login-brand strong {
  display: block;
  color: var(--text);
  font-size: 24px;
  line-height: 1.05;
}
.login-save-password-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin: -2px 0 14px;
  cursor: pointer;
}
.login-save-password-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--purple);
}
.login-apple-row {
  display: flex;
  justify-content: center;
  margin: 14px 0 2px;
}
.apple-icon-btn {
  width: 100%;
  max-width: 280px;
  min-height: 46px;
  border: 1px solid #000;
  border-radius: 8px;
  background: #000;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
  padding: 0 18px;
  font-size: 16px;
  font-weight: 650;
  line-height: 1;
}
.apple-icon-btn:hover { transform: translateY(-1px); background: #111; }
.apple-icon-btn:focus-visible { outline: 2px solid rgba(255,255,255,.52); outline-offset: 4px; border-radius: 12px; }
.apple-icon-btn svg { width: 18px; height: 22px; display: block; flex: 0 0 auto; }
.apple-icon-btn-label { display: inline-block; }
.profile-apple-box {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255,255,255,.035);
}
.profile-apple-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 12px;
}
.profile-apple-status small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.profile-apple-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #050505;
  color: #fff;
  flex: 0 0 auto;
}
.profile-apple-icon svg { width: 14px; height: 18px; display: block; }
.profile-apple-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.profile-apple-link-btn svg { width: 14px; height: 18px; }
.login-link-btn {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 12px 8px 0;
  font-weight: 700;
}
.login-link-btn:hover { color: #89c7ff; }

.platform-auth-screen {
  min-height: 100dvh;
  padding: clamp(18px, 4vw, 48px);
  background:
    radial-gradient(circle at 12% 8%, rgba(109, 86, 240, .18), transparent 34rem),
    radial-gradient(circle at 92% 88%, rgba(3, 105, 161, .15), transparent 30rem),
    var(--bg);
}
.platform-auth-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  width: min(940px, 100%);
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 24px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  box-shadow: 0 32px 90px rgba(0, 0, 0, .34);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.platform-auth-intro,
.platform-auth-actions {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px);
}
.platform-auth-intro {
  border-right: 1px solid rgba(148, 163, 184, .18);
  background: linear-gradient(145deg, rgba(109, 86, 240, .10), rgba(3, 105, 161, .04));
}
.platform-auth-intro .login-brand {
  justify-items: start;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  text-align: left;
  margin-bottom: 34px;
}
.platform-auth-intro .login-brand img {
  width: 72px;
  height: 72px;
}
.platform-auth-eyebrow {
  margin-bottom: 10px;
  color: #b8aefc;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.platform-auth-card h1 {
  max-width: 18ch;
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.platform-auth-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}
.platform-security-note,
.trial-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  margin-top: 26px;
  padding: 14px;
  border: 1px solid rgba(125, 107, 255, .26);
  border-radius: 14px;
  background: rgba(125, 107, 255, .075);
  color: color-mix(in srgb, var(--text) 86%, var(--muted));
  font-size: 12px;
  line-height: 1.5;
}
.platform-security-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: rgba(125, 107, 255, .14);
  color: #c8c0ff;
}
.platform-security-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.platform-auth-actions {
  gap: 12px;
}
.platform-password-form {
  display: grid;
  gap: 11px;
  margin: 0;
}
.platform-password-field {
  display: grid;
  gap: 6px;
}
.platform-password-field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}
.platform-password-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(148, 163, 184, .26);
  border-radius: 12px;
  outline: 0;
  background: rgba(2, 6, 23, .54);
  color: var(--text);
  padding: 0 13px;
  font: inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}
.platform-password-field input:focus-visible {
  border-color: rgba(196, 181, 253, .78);
  box-shadow: 0 0 0 3px rgba(109, 86, 240, .22);
}
.platform-password-field input:disabled {
  cursor: wait;
  opacity: .58;
}
.platform-password-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 2px;
}
.platform-auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}
.platform-auth-divider::before,
.platform-auth-divider::after {
  content: '';
  height: 1px;
  background: rgba(148, 163, 184, .20);
}
.social-login-btn {
  display: inline-flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 0 18px;
  font: inherit;
  font-size: 15px;
  font-weight: 760;
  transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease, opacity 150ms ease;
}
.social-login-btn svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}
.social-login-btn.google {
  background: #fff;
  color: #172033;
  border-color: rgba(255, 255, 255, .74);
}
.social-login-btn.apple {
  background: #050505;
  color: #fff;
  border-color: rgba(255, 255, 255, .20);
}
.social-login-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(196, 181, 253, .62);
}
.social-login-btn:disabled {
  cursor: wait;
  opacity: .58;
}
.platform-auth-status {
  min-height: 22px;
  padding-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}
.platform-auth-status.is-error {
  color: #fca5a5;
}
.platform-auth-status.is-success {
  color: #86efac;
}
.platform-auth-legal {
  padding-top: 4px;
  text-align: center;
  font-size: 11px !important;
  line-height: 1.5 !important;
}
.workspace-choice-list {
  display: grid;
  max-height: min(430px, 55dvh);
  gap: 10px;
  overflow: auto;
  padding: 2px;
}
.workspace-choice {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: var(--panel-2);
  color: var(--text);
  text-align: left;
  transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease;
}
.workspace-choice:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(125, 107, 255, .56);
  background: color-mix(in srgb, var(--panel-2) 88%, var(--accent) 12%);
}
.workspace-choice:disabled { cursor: wait; opacity: .64; }
.workspace-choice-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #7965f2, #4f46e5);
  color: #fff;
  font-weight: 900;
}
.workspace-choice-copy {
  min-width: 0;
}
.workspace-choice-copy strong,
.workspace-choice-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-choice-copy strong { font-size: 14px; }
.workspace-choice-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}
.workspace-choice-arrow {
  color: #c4b5fd;
  font-size: 19px;
}
.platform-auth-actions .form-row {
  margin: 0;
}
.platform-auth-actions > .btn {
  width: 100%;
  margin-top: 4px;
}
.workspace-slug-field {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--panel-2);
}
.workspace-slug-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(109, 86, 240, .14);
}
.workspace-slug-field input {
  min-width: 0;
  border: 0;
  box-shadow: none !important;
}
.workspace-slug-field span {
  padding: 0 12px 0 4px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.trial-summary {
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
}
.trial-summary strong { color: #ddd8ff; }
.trial-summary span { color: var(--muted); }
.provisioning-state {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(125, 107, 255, .30);
  border-radius: 14px;
  background: rgba(125, 107, 255, .075);
}
.provisioning-state strong,
.provisioning-state small {
  display: block;
}
.provisioning-state small {
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.provisioning-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(196, 181, 253, .22);
  border-top-color: #a78bfa;
  border-radius: 999px;
  animation: clipevo-auth-spin .9s linear infinite;
}
@keyframes clipevo-auth-spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .platform-auth-screen {
    align-items: start;
    padding: max(18px, env(safe-area-inset-top)) 14px max(22px, env(safe-area-inset-bottom));
    overflow-y: auto;
  }
  .platform-auth-card {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    border-radius: 19px;
  }
  .platform-auth-intro,
  .platform-auth-actions {
    padding: 24px 20px;
  }
  .platform-auth-intro {
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, .18);
  }
  .platform-auth-intro .login-brand {
    grid-template-columns: 58px minmax(0, 1fr);
    margin-bottom: 24px;
  }
  .platform-auth-intro .login-brand img {
    width: 58px;
    height: 58px;
  }
  .platform-auth-card h1 {
    max-width: none;
    font-size: 29px;
  }
  .workspace-slug-field {
    grid-template-columns: minmax(80px, 1fr);
  }
  .workspace-slug-field span {
    padding: 0 12px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .social-login-btn,
  .workspace-choice,
  .provisioning-spinner {
    transition: none;
    animation: none;
  }
}

.inventory-card-grid,
.team-card-list,
.history-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.inventory-card,
.team-card,
.history-card {
  min-width: 0;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 12px;
  padding: 12px;
}
.inventory-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: flex-start;
}
.inventory-card-photo {
  width: 92px;
  height: 92px;
  border-radius: 12px;
  background: var(--panel-2) center / cover no-repeat;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.inventory-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.inventory-card-photo-fallback {
  font-size: 34px;
  line-height: 1;
}
.inventory-card-photo.emoji {
  display: grid;
  place-items: center;
  font-size: 34px;
}
.equipment-current-photo {
  margin-top: 8px;
  width: 120px;
  height: 88px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--panel-2);
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 34px;
}
.equipment-current-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.inventory-card-main,
.team-card > *,
.history-card > * {
  min-width: 0;
}
.inventory-card-title-row,
.team-card-main,
.history-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.inventory-card-title-row > div {
  min-width: 0;
}
.inventory-card-title-row strong,
.team-card-main strong,
.history-card-title {
  display: block;
  overflow-wrap: anywhere;
}
.inventory-card-title-row strong {
  font-size: 16px;
  line-height: 1.18;
}
.inventory-card-title-row .pill {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
}
.inventory-card-title-row span,
.team-card-main span,
.history-card-meta,
.history-card-details,
.history-card time {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.inventory-card-actions,
.team-card-tags,
.team-card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.inventory-card-actions .btn,
.team-card-actions .btn {
  min-height: 38px;
}
.inventory-card-actions .btn {
  min-height: 30px;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.1;
  flex: 0 1 auto;
}
.team-card-list.compact {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.team-card {
  display: grid;
  gap: 10px;
}
.team-card-main {
  justify-content: flex-start;
  align-items: center;
}
.team-card-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  overflow: hidden;
}
.team-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-card-field {
  display: grid;
  gap: 6px;
}
.team-card-field label {
  color: var(--muted);
  font-size: 12px;
}
.history-card-list {
  grid-template-columns: 1fr;
}
.history-card {
  display: grid;
  gap: 7px;
}
.history-card-head {
  align-items: center;
}
.history-card-title {
  font-weight: 800;
  line-height: 1.35;
}

.general-chat-reply-box {
  width: 100%;
  display: grid;
  gap: 3px;
  text-align: left;
  border: 0;
  border-left: 3px solid var(--accent);
  background: rgba(109,86,240,.10);
  color: var(--text);
  border-radius: 8px;
  padding: 5px 8px;
  margin-bottom: 6px;
}
.general-chat-reply-box strong {
  color: #c7d2fe;
  font-size: 11px;
}
.general-chat-reply-box span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.general-chat-reply-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: stretch;
  margin: 0;
}
.snap-reply-preview-slot .general-chat-reply-preview {
  margin-bottom: 2px;
}
.general-chat-reply-cancel {
  border: 1px solid rgba(148,163,184,.24);
  background: rgba(15,23,42,.45);
  color: var(--muted);
  border-radius: 12px;
  font-size: 20px;
  line-height: 1;
}
.general-chat-reply-cancel:hover {
  color: var(--text);
  background: rgba(30,41,59,.72);
}
.general-chat-message-highlight {
  animation: snapMessageFocus 1.4s ease;
}
@keyframes snapMessageFocus {
  0%, 100% { box-shadow: none; }
  20%, 70% { box-shadow: 0 0 0 2px rgba(109,86,240,.32); }
}

.post-production-modal {
  max-width: min(560px, calc(100vw - 18px));
}
.post-production-choice-list {
  display: grid;
  gap: 8px;
}
.post-production-choice {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--panel-2);
  border-radius: 12px;
  padding: 10px;
}
.post-production-choice.featured {
  border-color: rgba(43,213,118,.40);
  background: rgba(43,213,118,.08);
}
.post-production-choice.decide-later {
  border-color: rgba(250,204,21,.62);
  background: rgba(250,204,21,.12);
}
.post-production-choice input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}
.post-production-choice.decide-later input {
  accent-color: var(--yellow);
}
.post-production-choice strong,
.post-production-choice small {
  display: block;
  overflow-wrap: anywhere;
}
.post-production-choice small {
  color: var(--muted);
  font-size: 12px;
}
.production-undo-status-toast {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(74px + max(0px, env(safe-area-inset-bottom, 0px)));
  z-index: 2147483000;
  border: 1px solid rgba(148,163,184,.42);
  background: rgba(15,23,42,.96);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,.34);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease, border-color .18s ease, background .18s ease;
}
.production-undo-status-toast.show {
  opacity: 1;
  transform: translateY(0);
}
.production-undo-status-toast:hover {
  border-color: rgba(124,92,255,.72);
  background: rgba(30,41,59,.98);
}
.production-undo-status-toast:disabled {
  opacity: .72;
  cursor: wait;
}

.recflow-ref-label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: 100%;
}
.recflow-ref-label label {
  margin: 0;
}
.recflow-help-inline {
  width: auto;
}
.recflow-help-dot {
  width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(148,163,184,.35);
  border-radius: 999px;
  background: rgba(15,23,42,.50);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  cursor: help;
  user-select: none;
}
.recflow-help-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: min(340px, calc(100vw - 44px));
  display: none;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 16px 40px rgba(0,0,0,.42);
  z-index: 20;
}
.recflow-help-popover strong,
.recflow-help-popover span {
  display: block;
  line-height: 1.35;
}
.recflow-help-popover span {
  color: var(--muted);
  font-size: 12px;
}
.recflow-help-dot:hover + .recflow-help-popover,
.recflow-help-dot:focus + .recflow-help-popover,
.recflow-ref-label:focus-within .recflow-help-popover {
  display: grid;
}

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.pill { display: inline-flex; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.pill.green { background: rgba(43,213,118,0.15); color: var(--green); }
.pill.yellow { background: rgba(255,184,77,0.15); color: var(--yellow); }
.pill.blue { background: rgba(77,163,255,0.15); color: var(--blue); }
.pill.red { background: rgba(255,91,107,0.15); color: var(--red); }
.pill.purple { background: rgba(109,86,240,0.15); color: #c4b5fd; }
.pill.muted { background: var(--panel-2); color: var(--muted); }
.guest-privacy-blur {
  display: inline-block;
  min-width: 108px;
  max-width: 180px;
  color: transparent !important;
  text-shadow: 0 0 9px rgba(231,233,238,.82);
  background: rgba(154,163,178,.14);
  border-radius: 8px;
  user-select: none;
  white-space: nowrap;
}

.modal.meta-bulk-modal {
  max-width: min(1240px, calc(100vw - 28px));
  width: 100%;
  padding: 18px;
}
.meta-bulk-shell { display: grid; gap: 14px; }
.meta-bulk-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.meta-bulk-title-row h2 { margin-bottom: 4px; }
.meta-bulk-title-row p { margin: 0; color: var(--muted); font-size: 13px; }
.meta-bulk-top-grid { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(180px, .8fr); gap: 10px; align-items: end; }
.meta-bulk-top-grid .form-row { margin: 0; }
.meta-bulk-dropzone {
  border: 1px dashed rgba(109,86,240,.40);
  background: rgba(109,86,240,.06);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px 12px;
  align-items: center;
}
.meta-bulk-dropzone.dragging,
.meta-bulk-preview.dragging { border-color: var(--green); background: rgba(43,213,118,.10); }
.meta-bulk-dropzone strong,
.meta-bulk-dropzone span { min-width: 0; overflow-wrap: anywhere; }
.meta-bulk-dropzone span { color: var(--muted); font-size: 13px; }
.meta-bulk-dropzone input,
.meta-bulk-file-actions input,
.meta-bulk-cover-wrap input,
#metaBulkScheduleFile { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.meta-bulk-note-list { display: grid; gap: 8px; }
.meta-bulk-note { border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.4; }
.meta-bulk-note.yellow { border: 1px solid rgba(255,184,77,.38); background: rgba(255,184,77,.10); color: #fde68a; }
.meta-bulk-note.red { border: 1px solid rgba(255,91,107,.44); background: rgba(127,29,29,.25); color: #fecaca; }
.meta-bulk-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(460px, 1fr)); gap: 12px; }
.meta-bulk-card {
  border: 1px solid var(--border);
  background: var(--panel-2);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 10px;
  min-width: 0;
}
.meta-bulk-card-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.meta-bulk-card-head > div { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; min-width: 0; }
.meta-bulk-card-head span { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.meta-bulk-card-grid { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; }
.meta-bulk-preview {
  min-height: 220px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.meta-bulk-preview video,
.meta-bulk-preview img { width: 100%; height: 100%; max-height: 260px; object-fit: contain; display: block; background: #070911; }
.meta-bulk-drop-hint { display: grid; gap: 4px; text-align: center; color: var(--muted); padding: 20px; }
.meta-bulk-drop-hint strong { color: var(--text); }
.meta-bulk-carousel-preview { width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 4px; }
.meta-bulk-carousel-preview img,
.meta-bulk-carousel-preview video { aspect-ratio: 1 / 1; height: auto; object-fit: cover; border-radius: 8px; }
.meta-bulk-file-actions,
.meta-bulk-cover-wrap { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.meta-bulk-cover-preview {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
}
.meta-bulk-cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.meta-bulk-fields { min-width: 0; }
.meta-bulk-platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.meta-bulk-platforms .choice-row { margin: 0; background: var(--panel); }
.meta-bulk-warnings { display: grid; gap: 5px; margin-top: 2px; }
.meta-bulk-warnings span {
  border: 1px solid rgba(255,184,77,.35);
  background: rgba(255,184,77,.08);
  color: #fde68a;
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 12px;
  line-height: 1.35;
}
.meta-bulk-actions { position: sticky; bottom: -18px; background: linear-gradient(180deg, rgba(19,19,22,.72), var(--panel)); padding-top: 12px; padding-bottom: 2px; }

@media (max-width: 820px) {
  .modal.meta-bulk-modal { max-width: calc(100vw - 12px); padding: 12px; }
  .meta-bulk-top-grid,
  .meta-bulk-dropzone,
  .meta-bulk-list,
  .meta-bulk-card-grid { grid-template-columns: 1fr; }
  .meta-bulk-preview { min-height: 190px; }
  .meta-bulk-platforms { grid-template-columns: 1fr; }
}

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.stat .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.stat .value { font-size: 26px; font-weight: 700; margin-top: 6px; }

.filter-chip { padding: 6px 12px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border); font-size: 13px; cursor: pointer; }
.filter-chip.active { background: var(--accent); border-color: var(--accent); color: white; }

.item-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.img-upload { display: flex; align-items: center; gap: 10px; }
.img-upload .preview { width: 80px; height: 60px; border-radius: 8px; background: var(--panel-2); border: 1px dashed var(--border); display: grid; place-items: center; color: var(--muted); font-size: 22px; background-size: cover; background-position: center; }

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: min(420px, calc(100vw - 32px));
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  padding: 12px 16px 12px 12px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  color: var(--text);
  line-height: 1.4;
  transform: translateY(20px);
  opacity: 0;
  transition: 0.25s;
  z-index: 999;
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.toast-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.toast-message { min-width: 0; overflow-wrap: anywhere; }
.toast-green .toast-icon { color: var(--green); background: rgba(34,197,94,.12); }
.toast-red .toast-icon { color: var(--red); background: rgba(239,68,68,.14); }
.toast-yellow .toast-icon { color: var(--yellow); background: rgba(245,158,11,.14); }
.toast-blue .toast-icon { color: var(--accent); background: rgba(124,92,255,.14); }

.global-loader {
  position: fixed;
  inset: 0;
  background: rgba(8,8,10,0.65);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.global-loader-card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 18px 22px;
  border-radius: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: min(320px, 100%);
  box-shadow: 0 18px 44px rgba(0,0,0,.42);
}
.global-loader-card strong { display: block; font-size: 14px; }
.global-loader-card small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.global-loader-spinner {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,.14);
  border-top-color: var(--accent);
  animation: fluxoSpin .8s linear infinite;
}
@keyframes fluxoSpin { to { transform: rotate(360deg); } }

.fluxo-page-skeleton {
  display: grid;
  gap: 16px;
}
.skeleton-loading-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.skeleton-shimmer {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.07);
}
.skeleton-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.10), transparent);
  animation: fluxoSkeleton 1.15s ease-in-out infinite;
}
@keyframes fluxoSkeleton { to { transform: translateX(100%); } }
.skeleton-toolbar,
.skeleton-card,
.skeleton-calendar,
.skeleton-filter-panel,
.skeleton-kanban-column {
  background: var(--panel-1);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.skeleton-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
}
.skeleton-line { height: 12px; border-radius: 999px; }
.skeleton-line.title { width: 180px; height: 18px; }
.skeleton-line.short { width: 110px; margin-top: 8px; }
.skeleton-pill { width: 116px; height: 34px; border-radius: 999px; }
.skeleton-calendar {
  padding: 14px;
  display: grid;
  gap: 10px;
}
.skeleton-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.skeleton-calendar-day {
  min-height: 62px;
  border-radius: 12px;
}
.skeleton-card-list { display: grid; gap: 12px; }
.skeleton-card {
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 16px;
}
.skeleton-card-actions {
  display: grid;
  gap: 8px;
  align-content: start;
}
.skeleton-button { height: 34px; border-radius: 8px; }
.skeleton-filter-panel {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.skeleton-filter-control { height: 44px; border-radius: 12px; }
.skeleton-kanban {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 12px;
  overflow: hidden;
}
.skeleton-kanban-column {
  padding: 10px;
  min-height: 330px;
  display: grid;
  align-content: start;
  gap: 10px;
}
.skeleton-kanban-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.skeleton-kanban-card {
  height: 112px;
  border-radius: 12px;
}
@media (max-width: 760px) {
  .toast {
    left: 14px;
    right: 14px;
    bottom: calc(16px + max(0px, env(safe-area-inset-bottom, 0px)));
    max-width: none;
  }
  .skeleton-card {
    grid-template-columns: 1fr;
  }
  .skeleton-calendar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .skeleton-kanban {
    grid-auto-columns: minmax(260px, calc(100vw - 56px));
    overflow-x: hidden;
  }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton-shimmer::after,
  .global-loader-spinner {
    animation: none;
  }
}

/* Seleção em lote */
.card { position: relative; }
.card-select { position: absolute; top: 10px; right: 10px; z-index: 5; background: rgba(15,17,21,0.7); padding: 6px; border-radius: 8px; cursor: pointer; backdrop-filter: blur(4px); }
.card-select input { width: 18px; height: 18px; cursor: pointer; accent-color: var(--accent); margin: 0; }
.card-selected { outline: 2px solid var(--accent); outline-offset: -1px; }
.card-selected .card-select { background: var(--accent); }

.selection-bar {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 20px; display: flex; gap: 16px; align-items: center;
  box-shadow: 0 14px 40px rgba(0,0,0,0.5); z-index: 100;
  animation: slideUp 0.2s ease-out;
}
.selection-bar .sb-info { font-size: 14px; color: var(--text); }
.selection-bar .sb-info strong { color: var(--accent); }
.selection-bar .sb-actions { display: flex; gap: 8px; }
@keyframes slideUp { from { transform: translate(-50%, 30px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@media (max-width: 720px) {
  .selection-bar { flex-direction: column; left: 12px; right: 12px; transform: none; }
  .selection-bar .sb-actions { flex-wrap: wrap; justify-content: center; }
  @keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
}

.general-chat-gif-results,
.announcement-gif-results {
  grid-template-columns: repeat(auto-fill, minmax(92px, 118px)) !important;
  justify-content: start !important;
  align-items: start !important;
  max-height: 250px !important;
}
.general-chat-gif-result,
.announcement-gif-result {
  width: 100% !important;
  aspect-ratio: 16 / 10 !important;
  min-height: 0 !important;
}
.general-chat-gif-result img,
.announcement-gif-result img {
  object-fit: cover !important;
}

.general-chat-attachments,
.general-chat-gif-grid,
.general-chat-media-preview {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.general-chat-media-preview {
  overflow: hidden;
}
.general-chat-media-preview img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 720px) {
  html,
  body {
    height: 100dvh;
    overflow: hidden;
  }
  .app {
    flex-direction: column;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }
  body.fluxo-ios-app,
  body.fluxo-preview-ios {
    height: 100dvh;
    overflow: hidden;
    overscroll-behavior-y: none;
  }
  body.fluxo-ios-app .app,
  body.fluxo-preview-ios .app {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }
  body.fluxo-ios-app .app {
    height: 100vh;
    min-height: 100vh;
  }
  .sidebar {
    order: 2;
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px max(12px, calc(12px + env(safe-area-inset-right, 0px))) max(8px, env(safe-area-inset-bottom, 0px)) max(12px, calc(12px + env(safe-area-inset-left, 0px)));
    border-right: 0;
    border-bottom: 0;
    border-top: 1px solid var(--border);
    background: var(--bg);
    z-index: 30;
  }
  body.fluxo-ios-app .sidebar,
  body.fluxo-preview-ios .sidebar {
    padding-top: 8px;
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
  }
  body.fluxo-ios-app,
  body.fluxo-preview-ios,
  body.fluxo-ios-app .app,
  body.fluxo-preview-ios .app {
    background: #0E0E10 !important;
  }
  body.fluxo-ios-app .sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(-1 * env(safe-area-inset-bottom, 0px));
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    padding: 8px 8px calc(30px + env(safe-area-inset-bottom, 0px));
    background: #0E0E10;
    -webkit-backdrop-filter: saturate(220%) blur(36px);
    backdrop-filter: saturate(220%) blur(36px);
    border: 0;
    border-top: 0.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateZ(0);
    transition: opacity .16s ease, transform .18s ease, visibility .18s step-end;
    overflow: hidden;
  }
  body.fluxo-ios-app.fluxo-keyboard-open .sidebar,
  body.fluxo-preview-ios.fluxo-keyboard-open .sidebar {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translate3d(0, 110%, 0) !important;
  }
  body.fluxo-ios-app .sidebar .nav-item {
    position: relative;
    z-index: 1;
    background: transparent !important;
    transition: color 220ms ease, transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  body.fluxo-ios-app .sidebar .nav-item:active {
    transform: scale(0.94);
  }
  body.fluxo-ios-app .sidebar .nav-item.active {
    color: var(--text);
    background: transparent !important;
  }
  body.fluxo-ios-app .nav-glass-pill {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(109, 86, 240, 0.22), rgba(59, 130, 246, 0.18));
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 24px -8px rgba(109, 86, 240, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: saturate(200%) blur(14px);
    backdrop-filter: saturate(200%) blur(14px);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transform: translate3d(0, 0, 0);
    transition: transform 420ms cubic-bezier(0.32, 0.72, 0.24, 1.2),
                width 420ms cubic-bezier(0.32, 0.72, 0.24, 1.2),
                height 420ms cubic-bezier(0.32, 0.72, 0.24, 1.2),
                opacity 220ms ease;
    will-change: transform, width, height;
  }
  body.fluxo-ios-app .nav-glass-pill.ready {
    opacity: 1;
  }
  body.fluxo-ios-app .sidebar .nav-item .ic,
  body.fluxo-ios-app .sidebar .nav-item .nav-snap-logo,
  body.fluxo-ios-app .sidebar .nav-item .nav-label {
    transition: color 220ms ease, transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  body.fluxo-ios-app .sidebar .nav-item.active .ic,
  body.fluxo-ios-app .sidebar .nav-item.active .nav-snap-logo {
    transform: translateY(-1px) scale(1.06);
  }
  /* === iOS refinement — hit targets, feedback, motion === */
  input, select, textarea {
    min-height: 44px;
    padding: 12px 14px !important;
    font-size: 16px; /* evita zoom no iOS */
  }
  body.fluxo-ios-app .btn,
  body.fluxo-ios-app button {
    min-height: 44px;
    transition: background 140ms ease, transform 120ms ease, opacity 140ms ease;
  }
  body.fluxo-ios-app .btn:active,
  body.fluxo-ios-app button:active {
    transform: scale(0.96);
    opacity: 0.92;
  }
  body.fluxo-ios-app .card {
    transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
  }
  body.fluxo-ios-app .card.tappable:active,
  body.fluxo-ios-app .card[onclick]:active {
    transform: scale(0.985);
    background: rgba(255,255,255,0.03);
  }
  body.fluxo-ios-app .mobile-more-item {
    min-height: 44px;
    transition: background 140ms ease, transform 140ms ease;
  }
  body.fluxo-ios-app .mobile-more-compact-actions .mobile-more-item {
    min-height: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 6px 4px;
    font-size: 11px;
  }
  body.fluxo-ios-app .mobile-more-item:active {
    background: var(--panel-2);
    transform: scale(0.98);
  }
  body.fluxo-ios-app .mobile-more-close {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
  }
  body.fluxo-ios-app .badge { font-size: 12px; padding: 5px 10px; }
  body.fluxo-ios-app .sidebar .nav-item {
    transition: color 160ms ease, transform 160ms cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  /* respeitar reduce motion no glass pesado */
  @media (prefers-reduced-motion: reduce) {
    body.fluxo-ios-app .nav-glass-pill {
      transition: opacity 200ms ease;
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
      background: rgba(109, 86, 240, 0.34);
    }
    body.fluxo-ios-app .sidebar {
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
      background: rgba(14,14,16,0.94);
    }
  }
  /* containers internos com inércia iOS */
  .production-cost-list,
  .choice-list,
  .unit-chip-list,
  .modal-body-scroll,
  .general-chat-panel-body {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  /* selection bar respeita o tab bar fixo iOS */
  body.fluxo-ios-app .selection-bar {
    bottom: 96px;
  }
  /* scroll-top bem posicionado e arredondado iOS */
  body.fluxo-ios-app .scroll-top-btn {
    bottom: 96px !important;
    border-radius: 16px;
  }
  body.fluxo-ios-app.fluxo-keyboard-open .scroll-top-btn,
  body.fluxo-preview-ios.fluxo-keyboard-open .scroll-top-btn {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(14px) !important;
  }
  /* modais respeitando safe area */
  .modal {
    padding: max(20px, calc(12px + env(safe-area-inset-top, 0px))) 16px max(20px, calc(16px + env(safe-area-inset-bottom, 0px)));
  }
  .modal.equipment-modal .modal-actions,
  .modal.post-production-modal .modal-actions {
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }
  /* responsive tables → cards no mobile */
  table.responsive-table {
    display: block;
  }
  table.responsive-table thead {
    display: none;
  }
  table.responsive-table tbody,
  table.responsive-table tr {
    display: block;
  }
  table.responsive-table tr {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: minmax(110px, auto) 1fr;
    column-gap: 12px;
    row-gap: 6px;
  }
  table.responsive-table td {
    display: contents;
    font-size: 14px;
  }
  table.responsive-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: center;
  }
  /* iOS large title (page-title cresce no topo, encolhe ao rolar) */
  body.fluxo-ios-app .page-title {
    font-size: 28px !important;
    font-weight: 800 !important;
    line-height: 1.1;
    margin: 6px 0 4px;
    transition: font-size 220ms ease, transform 220ms ease, opacity 220ms ease;
    transform-origin: left center;
  }
  body.fluxo-ios-app.fluxo-scrolled .page-title {
    font-size: 18px !important;
    transform: translateY(-2px);
  }
  body.fluxo-ios-app.fluxo-scrolled .page-subtitle {
    opacity: 0;
    height: 0;
    margin: 0;
    overflow: hidden;
  }
  .page-subtitle:empty,
  body.fluxo-ios-app .page-subtitle {
    display: none;
    transition: opacity 200ms ease, height 200ms ease, margin 200ms ease;
  }
  /* Context menu (long-press) */
  @keyframes fluxoCtxIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
  }
  /* Pull-to-refresh indicator */
  .fluxo-pull-spinner {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2.5px solid rgba(255,255,255,0.16);
    border-top-color: var(--accent);
  }
  .fluxo-pull-refresh-indicator.fluxo-pull-refreshing .fluxo-pull-spinner {
    animation: fluxoPullSpin 0.9s linear infinite;
  }
  @keyframes fluxoPullSpin {
    to { transform: rotate(360deg); }
  }
  /* Toast iOS-style — sobrescreve para mobile/iOS */
  body.fluxo-ios-app .toast,
  body.fluxo-ios-app .toast-host {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: calc(90px + max(8px, env(safe-area-inset-bottom, 0px))) !important;
    transform: translateX(-50%);
    max-width: 90vw;
    background: rgba(28, 28, 34, 0.86) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border: 0.5px solid rgba(255,255,255,0.1) !important;
    border-radius: 12px;
    box-shadow: 0 12px 32px -10px rgba(0,0,0,0.6);
    padding: 12px 18px;
    color: var(--text);
    font-size: 14px;
    z-index: 9000;
    animation: fluxoToastIn 240ms cubic-bezier(0.32,0.72,0.24,1);
  }
  @keyframes fluxoToastIn {
    from { transform: translateX(-50%) translateY(20px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
  }
  /* swipe action items */
  .fluxo-swipe-content {
    background: inherit;
  }
  /* (scrim do topo removido — estava cobrindo conteúdo sem função clara) */

  /* === Transições de entrada/saída — sheets, modais, abas, cards === */
  body.fluxo-ios-app .mobile-more-overlay {
    display: flex !important;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 280ms cubic-bezier(0.32, 0.72, 0.24, 1), visibility 0s linear 280ms !important;
  }
  body.fluxo-ios-app .mobile-more-overlay.show {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transition: opacity 280ms cubic-bezier(0.32, 0.72, 0.24, 1), visibility 0s linear 0s !important;
  }
  body.fluxo-ios-app .mobile-more-sheet {
    transform: translateY(40px);
    opacity: 0.6;
    transition: transform 360ms cubic-bezier(0.32, 0.72, 0.24, 1.05), opacity 280ms ease;
    will-change: transform, opacity;
  }
  body.fluxo-ios-app .mobile-more-overlay.show .mobile-more-sheet {
    transform: translateY(0);
    opacity: 1;
  }

  body.fluxo-ios-app .global-search-box {
    transform: scale(0.96) translateY(-8px);
    opacity: 0;
    transition: transform 320ms cubic-bezier(0.32, 0.72, 0.24, 1.1), opacity 220ms ease;
  }
  body.fluxo-ios-app .global-search-overlay.show .global-search-box {
    transform: scale(1) translateY(0);
    opacity: 1;
  }

  body.fluxo-ios-app .modal-bg {
    display: flex !important;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 240ms cubic-bezier(0.32, 0.72, 0.24, 1), visibility 0s linear 240ms;
  }
  body.fluxo-ios-app .modal-bg.show {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transition: opacity 240ms cubic-bezier(0.32, 0.72, 0.24, 1), visibility 0s linear 0s;
  }
  body.fluxo-ios-app .modal-bg .modal {
    transform: scale(0.94) translateY(12px);
    opacity: 0;
    transition: transform 340ms cubic-bezier(0.32, 0.72, 0.24, 1.08), opacity 240ms ease;
    will-change: transform, opacity;
  }
  body.fluxo-ios-app .modal-bg.show .modal {
    transform: scale(1) translateY(0);
    opacity: 1;
  }

  /* Cross-fade ao trocar de aba (.main contents) */
  body.fluxo-ios-app #pageContent {
    animation: fluxoPageFade 320ms cubic-bezier(0.32, 0.72, 0.24, 1);
  }
  @keyframes fluxoPageFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }
  /* respeita reduce motion */
  @media (prefers-reduced-motion: reduce) {
    body.fluxo-ios-app #pageContent,
    body.fluxo-ios-app .mobile-more-sheet,
    body.fluxo-ios-app .modal-bg .modal,
    body.fluxo-ios-app .global-search-box {
      animation: none !important;
      transition: opacity 120ms ease !important;
      transform: none !important;
    }
  }
  /* iOS liquid glass — tap feedback no card "Início" tipo cards */
  body.fluxo-ios-app .home-quick-item,
  body.fluxo-ios-app .recordings-row,
  body.fluxo-ios-app .general-chat-direct-row {
    transition: transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1),
                background-color 220ms ease,
                border-color 220ms ease;
    -webkit-tap-highlight-color: transparent;
  }
  body.fluxo-ios-app .home-quick-item:active,
  body.fluxo-ios-app .recordings-row:active,
  body.fluxo-ios-app .general-chat-direct-row:active {
    transform: scale(0.985);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(109, 86, 240, 0.32);
  }
  /* iOS liquid glass — search bar topo */
  body.fluxo-ios-app .home-search,
  body.fluxo-ios-app .toolbar input[type="search"] {
    background: rgba(28, 28, 34, 0.62) !important;
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    border: 0.5px solid rgba(255, 255, 255, 0.08) !important;
  }
  /* iOS liquid glass — botão flutuante "voltar ao topo" */
  body.fluxo-ios-app .scroll-top-btn {
    background: rgba(28, 28, 34, 0.7) !important;
    -webkit-backdrop-filter: saturate(200%) blur(20px);
    backdrop-filter: saturate(200%) blur(20px);
    border: 0.5px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.6);
  }
  /* === LIQUID GLASS v2 — sistema "vidrificado" === */
  /* Tab bar refinado — mais transparente, com reflexo de luz no topo */
  body.fluxo-ios-app .sidebar {
    background: #0E0E10 !important;
    -webkit-backdrop-filter: saturate(220%) blur(36px) !important;
    backdrop-filter: saturate(220%) blur(36px) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: calc(-1 * env(safe-area-inset-bottom, 0px)) !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    padding: 8px 8px calc(30px + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 0 !important;
    border: 0 !important;
    border-top: 0.5px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 -8px 24px -12px rgba(0, 0, 0, 0.4);
  }
  body.fluxo-ios-app .sidebar.menu-reorder-active {
    position: fixed !important;
    inset: 0 !important;
    display: flex !important;
    grid-template-columns: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding: max(12px, env(safe-area-inset-top, 0px)) 14px max(12px, env(safe-area-inset-bottom, 0px)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    transform: none !important;
    z-index: 120 !important;
  }
  body.fluxo-ios-app .sidebar.menu-reorder-active .nav-glass-pill {
    display: none !important;
  }
  body.fluxo-ios-app .sidebar.menu-reorder-active .nav-item {
    width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    min-height: 46px !important;
    padding: 9px 12px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    text-align: left !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }
  body.fluxo-ios-app .sidebar.menu-reorder-active .nav-label {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
  body.fluxo-ios-app .sidebar.menu-reorder-active .menu-reorder-handle,
  body.fluxo-ios-app .sidebar.menu-reorder-active .menu-reorder-fixed-spacer {
    flex: 0 0 24px !important;
  }
  body.fluxo-ios-app.fluxo-keyboard-open .sidebar,
  body.fluxo-preview-ios.fluxo-keyboard-open .sidebar {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translate3d(0, 110%, 0) !important;
  }
  /* Pill da nav — vidro mais "vivo" com gradient sutil */
  body.fluxo-ios-app .nav-glass-pill {
    background: linear-gradient(135deg, rgba(149, 128, 255, 0.30), rgba(96, 158, 255, 0.22)) !important;
    border: 0.5px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow:
      0 6px 22px -6px rgba(109, 86, 240, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      inset 0 -1px 0 rgba(0, 0, 0, 0.15) !important;
    -webkit-backdrop-filter: saturate(220%) blur(18px) !important;
    backdrop-filter: saturate(220%) blur(18px) !important;
  }

  /* === Bottom sheet (Mais) — overlay e box totalmente vidrificados === */
  body.fluxo-ios-app .mobile-more-overlay {
    background: rgba(2, 6, 16, 0.42) !important;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
  body.fluxo-ios-app .mobile-more-overlay {
    align-items: flex-end !important;
    padding: 24px 10px max(14px, env(safe-area-inset-bottom, 0px)) !important;
  }
  body.fluxo-ios-app .mobile-more-sheet {
    background: rgba(20, 20, 26, 0.62) !important;
    -webkit-backdrop-filter: saturate(200%) blur(40px);
    backdrop-filter: saturate(200%) blur(40px);
    border: 0.5px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 26px !important;
    box-shadow:
      0 12px 40px rgba(0, 0, 0, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  body.fluxo-ios-app .mobile-more-grabber {
    background: rgba(255, 255, 255, 0.3) !important;
  }
  /* Cada item do Mais vira um vidro individual */
  body.fluxo-ios-app .mobile-more-item {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 0.5px solid rgba(255, 255, 255, 0.08) !important;
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
  body.fluxo-ios-app .mobile-more-item.active {
    background: linear-gradient(135deg, rgba(149, 128, 255, 0.22), rgba(109, 86, 240, 0.12)) !important;
    border: 0.5px solid rgba(149, 128, 255, 0.4) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      0 4px 18px -6px rgba(109, 86, 240, 0.45);
  }
  body.fluxo-ios-app .mobile-more-close {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 0.5px solid rgba(255, 255, 255, 0.14) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
  }

  /* === Busca global — overlay + box + command bar tudo vidro === */
  body.fluxo-ios-app .global-search-overlay {
    background: rgba(2, 6, 16, 0.55) !important;
    -webkit-backdrop-filter: saturate(160%) blur(18px) !important;
    backdrop-filter: saturate(160%) blur(18px) !important;
  }
  body.fluxo-ios-app .global-search-box {
    background: rgba(22, 22, 28, 0.62) !important;
    border: 0.5px solid rgba(255, 255, 255, 0.14) !important;
    -webkit-backdrop-filter: saturate(200%) blur(40px);
    backdrop-filter: saturate(200%) blur(40px);
    box-shadow:
      0 24px 60px rgba(0, 0, 0, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  body.fluxo-ios-app .global-search-input-row {
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.08) !important;
  }
  body.fluxo-ios-app .global-search-esc {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 0.5px solid rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.75) !important;
  }
  body.fluxo-ios-app .global-search-hint {
    background: rgba(255, 255, 255, 0.04) !important;
    border-top: 0.5px solid rgba(255, 255, 255, 0.06) !important;
  }
  body.fluxo-ios-app .global-search-hint kbd {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 0.5px solid rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.85) !important;
  }
  body.fluxo-ios-app .global-search-result-item:hover,
  body.fluxo-ios-app .global-search-result-item.active {
    background: rgba(149, 128, 255, 0.14) !important;
  }

  /* === Stat cards da home (4, 39, 36, 4) — vidro com brilho === */
  body.fluxo-ios-app .home-quick-item,
  body.fluxo-ios-app .card {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 0.5px solid rgba(255, 255, 255, 0.08) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 4px 20px -8px rgba(0, 0, 0, 0.4);
  }
  body.fluxo-ios-app .home-quick-item:hover,
  body.fluxo-ios-app .home-quick-item:active {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(149, 128, 255, 0.4) !important;
  }

  /* === Search bar topo (pill grande) === */
  body.fluxo-ios-app .home-search-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 0.5px solid rgba(255, 255, 255, 0.1) !important;
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    backdrop-filter: saturate(180%) blur(24px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
  body.fluxo-ios-app .home-search-icon {
    background: rgba(149, 128, 255, 0.16) !important;
  }

  /* === Pills coloridos de data (27/05/26) e badges === */
  body.fluxo-ios-app .pill.blue,
  body.fluxo-ios-app .badge,
  body.fluxo-ios-app .home-quick-badge {
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  body.fluxo-ios-app .pill.blue {
    background: rgba(59, 130, 246, 0.18) !important;
    color: rgba(195, 222, 255, 0.95) !important;
  }
  body.fluxo-ios-app .home-quick-badge.badge-yellow {
    background: rgba(234, 179, 8, 0.16) !important;
  }
  body.fluxo-ios-app .home-quick-badge.badge-red {
    background: rgba(239, 68, 68, 0.18) !important;
  }
  body.fluxo-ios-app .home-quick-badge.badge-green {
    background: rgba(34, 197, 94, 0.16) !important;
  }
  body.fluxo-ios-app .home-quick-badge.badge-blue {
    background: rgba(59, 130, 246, 0.16) !important;
  }

  /* === Notification panel & bell === */
  body.fluxo-ios-app .notification-bell {
    width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 0.5px solid rgba(255, 255, 255, 0.1) !important;
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
  }
  body.fluxo-ios-app .notification-panel {
    background: rgba(20, 20, 26, 0.62) !important;
    border: 0.5px solid rgba(255, 255, 255, 0.14) !important;
    -webkit-backdrop-filter: saturate(220%) blur(42px);
    backdrop-filter: saturate(220%) blur(42px);
    box-shadow:
      0 24px 60px rgba(0, 0, 0, 0.6),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
    border-radius: 18px !important;
  }
  body.fluxo-ios-app .notification-panel .notification-item,
  body.fluxo-ios-app .notification-panel li,
  body.fluxo-ios-app .notification-panel a {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    transition: background 140ms ease;
  }
  body.fluxo-ios-app .notification-panel .notification-item:active,
  body.fluxo-ios-app .notification-panel a:active {
    background: rgba(255, 255, 255, 0.06) !important;
  }
  body.fluxo-ios-app .notification-count {
    box-shadow: 0 2px 8px -2px rgba(251, 113, 133, 0.55);
  }
  body.fluxo-ios-app .search-topbar-btn {
    width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 0.5px solid rgba(255, 255, 255, 0.1) !important;
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
  }

  /* === Modais — base também vidrificada === */
  body.fluxo-ios-app .modal-bg {
    background: rgba(2, 6, 16, 0.5) !important;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
  body.fluxo-ios-app .modal {
    background: rgba(20, 20, 26, 0.74) !important;
    border: 0.5px solid rgba(255, 255, 255, 0.12) !important;
    -webkit-backdrop-filter: saturate(200%) blur(40px);
    backdrop-filter: saturate(200%) blur(40px);
    box-shadow:
      0 24px 60px rgba(0, 0, 0, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  body.fluxo-ios-app .modal-actions {
    background: rgba(20, 20, 26, 0.92) !important;
    border-top: 0.5px solid rgba(255, 255, 255, 0.08) !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }

  /* === Toast com pulso de luz === */
  body.fluxo-ios-app .toast {
    background: rgba(28, 28, 34, 0.72) !important;
    border: 0.5px solid rgba(255, 255, 255, 0.14) !important;
    -webkit-backdrop-filter: saturate(200%) blur(28px) !important;
    backdrop-filter: saturate(200%) blur(28px) !important;
    box-shadow:
      0 12px 32px -10px rgba(0, 0, 0, 0.65),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  /* === Scroll-top com mais brilho === */
  body.fluxo-ios-app .scroll-top-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 0.5px solid rgba(255, 255, 255, 0.14) !important;
    -webkit-backdrop-filter: saturate(200%) blur(24px) !important;
    backdrop-filter: saturate(200%) blur(24px) !important;
    box-shadow:
      0 8px 28px -8px rgba(0, 0, 0, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.16);
  }
  body.fluxo-ios-app.fluxo-keyboard-open .scroll-top-btn,
  body.fluxo-preview-ios.fluxo-keyboard-open .scroll-top-btn {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(14px) !important;
  }

  /* === Reduce motion respeitado (preserva legibilidade em devices sem GPU) === */
  @media (prefers-reduced-motion: reduce) {
    body.fluxo-ios-app .mobile-more-sheet,
    body.fluxo-ios-app .global-search-box,
    body.fluxo-ios-app .modal,
    body.fluxo-ios-app .notification-panel {
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
      background: rgba(20, 20, 26, 0.96) !important;
    }
  }
  body.fluxo-ios-app .main,
  body.fluxo-preview-ios .main {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }
  body.fluxo-ios-app .main {
    padding-top: 0 !important;
    padding-bottom: 136px !important;
  }
  .brand { width: 100%; margin-bottom: 8px; }
  .nav-item { flex: 1; justify-content: center; min-width: 100px; }
  body.fluxo-ios-app .nav-item {
    min-width: 0;
    width: 100%;
    flex: none;
    min-height: 50px;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }
  .sidebar .menu-reorder-panel {
    width: 100%;
    order: 98;
  }
  .sidebar.menu-reorder-active .nav-item {
    flex: 1 1 100%;
    justify-content: flex-start;
    min-width: 0;
  }
  body.fluxo-ios-app .sidebar.menu-reorder-active {
    position: fixed !important;
    inset: 0 !important;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    height: 100vh !important;
    max-height: 100vh !important;
    padding: max(12px, env(safe-area-inset-top, 0px)) 14px max(12px, env(safe-area-inset-bottom, 0px)) !important;
    overflow-y: auto !important;
    transform: none;
    z-index: 120;
  }
  .sidebar.menu-reorder-active .nav-item.menu-reorder-group-start {
    border-top: 1px solid rgba(148,163,184,.16);
    padding-top: 14px !important;
    margin-top: 4px;
  }
  .sidebar.menu-reorder-active .nav-icon-wrap {
    width: 18px;
    min-width: 18px;
  }
  .sidebar.menu-reorder-active .nav-snap-logo {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 5px;
  }
  .sidebar.menu-reorder-active .mobile-more-nav {
    display: none !important;
  }
  .sidebar.menu-reorder-active .nav-item.mobile-secondary {
    display: flex !important;
  }
  .sidebar .nav-item.mobile-secondary {
    display: none !important;
  }
  .sidebar .mobile-more-nav {
    display: flex !important;
  }
  .main {
    order: 1;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    padding: max(12px, env(safe-area-inset-top, 0px)) max(16px, calc(16px + env(safe-area-inset-right, 0px))) 14px max(16px, calc(16px + env(safe-area-inset-left, 0px)));
  }
  .scroll-top-btn {
    bottom: calc(74px + max(8px, env(safe-area-inset-bottom, 0px)));
  }
  .toolbar {
    align-items: stretch;
  }
  .toolbar .btn,
  .toolbar button,
  .toolbar input,
  .toolbar select {
    width: 100%;
    min-height: 42px;
  }
  .drive-rules-header,
  .drive-rules-header-actions,
  .drive-rule-main-config,
  .drive-rule-link-row {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
  .drive-rule-link-row .btn {
    justify-content: center;
  }
  .inventory-card-grid,
  .team-card-list {
    grid-template-columns: 1fr;
  }
  .inventory-card {
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: flex-start;
    padding: 11px;
  }
  .inventory-card-photo {
    width: 78px;
    height: 78px;
  }
  .inventory-card-actions .btn,
  .team-card-actions .btn {
    flex: 0 1 auto;
  }
  .history-card-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .modal.equipment-modal,
  .modal.post-production-modal {
    width: calc(100vw - 14px);
    max-width: calc(100vw - 14px);
    max-height: calc(100dvh - 14px);
    padding: 16px;
  }
  .modal.equipment-modal .modal-actions,
  .modal.post-production-modal .modal-actions {
    position: sticky;
    bottom: -16px;
    margin-left: -16px;
    margin-right: -16px;
    padding: 12px 16px 4px;
    background: linear-gradient(180deg, rgba(19,19,22,.72), var(--panel));
  }
  .modal.equipment-modal .modal-actions .btn,
  .modal.post-production-modal .modal-actions .btn {
    flex: 1 1 140px;
    min-height: 42px;
  }
  .script-teleprompter-full {
    min-height: 46vh;
  }
  .script-teleprompter-actions {
    justify-content: center;
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
  }
  .general-chat-reply-preview {
    grid-template-columns: minmax(0, 1fr) 38px;
  }
  .profile-view-as-row { flex-direction: column; }
  .profile-photo-crop-grid { grid-template-columns: 1fr; }
  .profile-view-as-row .btn { width: 100%; }
  .profile-photo-save-inline {
    width: auto;
    max-width: 190px;
  }
}

/* =====================================================
   Dashboard Início (home page)
   ===================================================== */
.home-page {
  display: grid;
  gap: 20px;
  width: 100%;
  max-width: none;
}
.home-pulse-panel,
.home-search-card,
.home-nav-section {
  grid-column: 1 / -1;
}
@media (min-width: 1100px) {
  .home-page {
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
    align-items: start;
  }
  .home-day-panel,
  .home-upcoming-section {
    grid-column: 1;
  }
  .home-week-section,
  .home-urgent-section {
    grid-column: 2;
  }
}
@media (min-width: 1440px) {
  .home-page {
    grid-template-columns: minmax(0, 1.35fr) minmax(380px, .65fr);
    gap: 22px;
  }
  .home-day-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: none;
  }
  .home-nav-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}
.home-pulse-panel {
  --home-pulse-tone: var(--red);
  min-height: 92px;
  border: 1px solid rgba(248,113,113,.42);
  border-left: 4px solid var(--home-pulse-tone);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(127,29,29,.22), rgba(15,23,42,.88)),
    var(--panel-1);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  box-shadow: 0 14px 34px rgba(0,0,0,.16);
}
.home-pulse-panel.running {
  --home-pulse-tone: var(--green);
  border-color: rgba(34,197,94,.46);
  background:
    radial-gradient(circle at 20% 0%, rgba(34,197,94,.18), transparent 36%),
    linear-gradient(135deg, rgba(20,83,45,.24), rgba(15,23,42,.88)),
    var(--panel-1);
  box-shadow: 0 0 0 1px rgba(34,197,94,.08), 0 16px 38px rgba(34,197,94,.10);
}
.home-pulse-panel.paused {
  --home-pulse-tone: var(--yellow);
  border-color: rgba(234,179,8,.48);
  background:
    linear-gradient(135deg, rgba(113,63,18,.24), rgba(15,23,42,.88)),
    var(--panel-1);
}
.home-pulse-panel.unknown {
  --home-pulse-tone: var(--blue);
  border-style: dashed;
  border-color: rgba(96,165,250,.62);
  background:
    linear-gradient(135deg, rgba(30,64,175,.20), rgba(15,23,42,.90)),
    var(--panel-1);
}
.pulse-connection-warning {
  border: 1px dashed rgba(96,165,250,.58);
  border-radius: 10px;
  background: rgba(59,130,246,.10);
  color: #bfdbfe;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
}
.pulse-review-section {
  margin: 14px 0 4px;
  border: 1px solid rgba(234,179,8,.28);
  border-radius: 12px;
  background: rgba(234,179,8,.05);
  overflow: hidden;
}
.pulse-review-section > summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}
.pulse-review-section > summary::-webkit-details-marker { display: none; }
.pulse-review-section > summary span:first-child { min-width: 0; display: grid; gap: 2px; }
.pulse-review-section > summary small { color: var(--muted); font-size: 12px; font-weight: 500; }
.pulse-review-note {
  margin: 0 12px 10px;
  padding: 9px 10px;
  border-left: 3px solid var(--yellow);
  background: rgba(15,23,42,.38);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.pulse-review-section .pulse-table-wrap { border-width: 1px 0 0; border-radius: 0; }
.home-pulse-status {
  min-width: 0;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.home-pulse-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--home-pulse-tone);
  box-shadow: 0 0 18px color-mix(in srgb, var(--home-pulse-tone) 62%, transparent);
}
.home-pulse-status strong,
.home-pulse-status span,
.home-pulse-clock strong,
.home-pulse-clock span {
  display: block;
  min-width: 0;
}
.home-pulse-status strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.15;
}
.home-pulse-status span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.home-pulse-clock {
  min-width: 96px;
  text-align: right;
}
.home-pulse-clock strong {
  color: var(--home-pulse-tone);
  font-size: 24px;
  line-height: 1;
}
.home-pulse-clock span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.home-pulse-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.home-pulse-actions .btn {
  min-height: 40px;
}
.fluxo-pulse-picker-modal {
  max-width: min(980px, calc(100vw - 28px));
}
.fluxo-pulse-picker {
  display: grid;
  gap: 18px;
  width: 100%;
  min-width: 0;
}
.fluxo-pulse-picker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.fluxo-pulse-picker-head h2 {
  margin-bottom: 5px;
  font-size: 22px;
}
.fluxo-pulse-picker-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}
.fluxo-pulse-picker-close {
  appearance: none;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: var(--muted);
  cursor: pointer;
}
.fluxo-pulse-picker-close svg,
.fluxo-pulse-picker-chevron {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fluxo-pulse-picker-label {
  display: block;
  margin: 0 0 8px 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.fluxo-pulse-picker-grid {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  gap: 16px;
  min-height: 360px;
  min-width: 0;
}
.fluxo-pulse-picker-client-section,
.fluxo-pulse-picker-card-section {
  min-width: 0;
}
.fluxo-pulse-picker-clients,
.fluxo-pulse-picker-cards {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-2);
  padding: 8px;
  overflow: auto;
  max-height: min(52vh, 520px);
}
.fluxo-pulse-picker-client,
.fluxo-pulse-picker-card {
  appearance: none;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.fluxo-pulse-picker-client {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px;
  font-weight: 850;
}
.fluxo-pulse-picker-card {
  border-color: var(--border);
  background: rgba(255,255,255,.025);
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 14px;
}
.fluxo-pulse-picker-cards {
  display: grid;
  gap: 8px;
  align-content: start;
}
.fluxo-pulse-picker-client small,
.fluxo-pulse-picker-card small {
  color: var(--muted);
  font-size: 12px;
}
.fluxo-pulse-picker-client.active,
.fluxo-pulse-picker-client:hover,
.fluxo-pulse-picker-card:hover {
  border-color: rgba(124,92,255,.42);
  background: rgba(124,92,255,.12);
}
.fluxo-pulse-picker-card strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.fluxo-pulse-picker-card-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 4px;
}
.fluxo-pulse-picker-card-copy small {
  display: block;
  line-height: 1.35;
}
.fluxo-pulse-picker-assigned {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #67d7aa;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
}
.fluxo-pulse-picker-assigned i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}
.fluxo-pulse-picker-chevron {
  flex: 0 0 auto;
  color: var(--muted);
}
@media (max-width: 900px) {
  .home-pulse-panel {
    grid-template-columns: 1fr;
  }
  .home-pulse-clock {
    text-align: left;
  }
  .home-pulse-actions {
    justify-content: flex-start;
  }
  .fluxo-pulse-picker-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 0;
  }
  .fluxo-pulse-picker-clients {
    max-height: none;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .fluxo-pulse-picker-clients::-webkit-scrollbar {
    display: none;
  }
  .fluxo-pulse-picker-client {
    flex: 0 0 auto;
    width: auto;
    min-height: 44px;
    padding: 9px 12px;
    gap: 9px;
    border-color: var(--border);
    background: rgba(255,255,255,.025);
    scroll-snap-align: start;
    white-space: nowrap;
  }
  .fluxo-pulse-picker-client small {
    min-width: 22px;
    min-height: 22px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
  }
  .fluxo-pulse-picker-cards {
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
}

@media (max-width: 720px) {
  .sidebar-pulse-indicator {
    display: grid;
    position: fixed;
    right: max(10px, env(safe-area-inset-right, 0px));
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    z-index: 34;
    width: min(280px, calc(100vw - 20px));
    min-height: 48px;
    margin: 0;
    padding: 8px 10px;
    box-shadow: 0 12px 34px rgba(0,0,0,.38);
  }
  body.fluxo-ios-app .sidebar-pulse-indicator,
  body.fluxo-preview-ios .sidebar-pulse-indicator {
    bottom: calc(98px + env(safe-area-inset-bottom, 0px));
  }
  body.fluxo-keyboard-open .sidebar-pulse-indicator {
    display: none;
  }
  input,
  select,
  textarea,
  .btn.small,
  .production-card-mobile-inline-details,
  .production-no-cover-mini-btn {
    min-height: 44px;
  }
  .home-pulse-actions,
  .modal-actions {
    gap: 8px;
  }
  .production-card-pulse {
    align-items: stretch;
    flex-direction: column;
  }
  .production-card-pulse .btn {
    width: 100%;
    min-height: 44px;
  }
}

@media (hover: none), (pointer: coarse) {
  button,
  [role="button"],
  summary,
  a.fx-chip {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .sidebar-pulse-beacon,
  .mention-alert-btn {
    animation: none !important;
  }
}
.home-search-card {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.home-search-card:hover {
  border-color: rgba(109,86,240,.55);
  background: var(--panel-2);
  color: var(--text);
}
.home-search-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(109,86,240,.10);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.home-search-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-search-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 800;
}
.home-search-shortcut {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  padding: 4px 7px;
}
.home-card-title,
.home-card-subtitle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.home-card-title {
  font-size: 17px;
  line-height: 1.2;
}
.home-card-subtitle {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}
.home-card-title-icon,
.home-card-subtitle-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 10px rgba(109,86,240,.28));
}
.home-card-subtitle-icon {
  width: 20px;
  height: 20px;
}
.home-day-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 560px;
}
.home-day-chip {
  min-width: 0;
  min-height: 64px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--home-day-tone, var(--accent));
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.018));
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color .15s ease, background .15s ease, opacity .15s ease;
}
.home-day-chip:hover {
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.05);
}
.home-day-chip-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.055);
}
.home-day-chip-img {
  width: 23px;
  height: 23px;
  object-fit: contain;
  display: block;
}
.home-day-chip-main {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.home-day-chip-main strong {
  color: var(--home-day-tone, var(--accent));
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
}
.home-day-chip-main span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.16;
  overflow-wrap: anywhere;
}
@media (max-width: 520px) {
  .home-day-chip {
    min-height: 62px;
    padding: 8px;
    gap: 8px;
  }
}
@media (max-width: 360px) {
  .home-day-chip {
    grid-template-columns: 30px minmax(0, 1fr);
  }
  .home-day-chip-icon {
    width: 30px;
    height: 30px;
    border-radius: 12px;
  }
  .home-day-chip-img {
    width: 21px;
    height: 21px;
  }
  .home-day-chip-main strong {
    font-size: 19px;
  }
  .home-day-chip-main span {
    font-size: 11px;
  }
}
.home-section-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.home-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.home-kpi-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.home-kpi-card:hover { border-color: var(--accent); background: var(--panel-2); }
.home-kpi-icon {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
}
.home-kpi-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(109,86,240,.18));
}
.home-kpi-value {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  color: var(--text);
}
.home-kpi-label {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}
.home-kpi-card.accent .home-kpi-value { color: var(--accent); }
.home-kpi-card.green .home-kpi-value { color: var(--green); }
.home-kpi-card.yellow .home-kpi-value { color: var(--yellow); }
.home-kpi-card.red .home-kpi-value { color: var(--red); }
.home-kpi-card.blue .home-kpi-value { color: var(--blue); }
.home-quick-list {
  display: grid;
  gap: 8px;
}
.home-quick-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color .15s ease;
}
.home-quick-item:hover { border-color: var(--accent); }
.home-quick-item-name {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-quick-item-meta { font-size: 12px; color: var(--muted); }
.home-quick-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.home-quick-badge.badge-yellow { background: rgba(255,184,77,.18); color: var(--yellow); }
.home-quick-badge.badge-red { background: rgba(255,91,107,.18); color: var(--red); }
.home-quick-badge.badge-green { background: rgba(43,213,118,.18); color: var(--green); }
.home-quick-badge.badge-blue { background: rgba(77,163,255,.18); color: var(--blue); }
.home-quick-badge.badge-muted { background: var(--panel-2); color: var(--muted); }
.home-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.home-nav-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  user-select: none;
}
.home-nav-card:hover { border-color: var(--accent); background: var(--panel-2); }
.home-nav-card-icon { font-size: 22px; line-height: 1; }
.home-nav-card-label { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.2; }
@media (min-width: 1440px) {
  .home-day-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: none;
  }
  .home-nav-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

/* =====================================================
   Busca Global (Cmd+K)
   ===================================================== */
.global-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(8,8,10,.76);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 16px 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}
.global-search-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.global-search-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  max-height: calc(100dvh - 120px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.global-search-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.global-search-icon {
  color: var(--muted);
  flex-shrink: 0;
  font-size: 16px;
}
.global-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  padding: 0;
}
.global-search-esc {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 7px;
  flex-shrink: 0;
}
.global-search-results {
  overflow-y: auto;
  flex: 1;
  padding: 8px;
}
.global-search-group-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 8px 4px;
}
.global-search-result-item {
  display: grid;
  grid-template-columns: 32px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .12s ease;
}
.global-search-result-item:hover,
.global-search-result-item.focused { background: var(--panel-2); }
.global-search-result-icon { font-size: 18px; text-align: center; }
.global-search-result-name {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.global-search-result-sub {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.global-search-result-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.global-search-empty {
  text-align: center;
  color: var(--muted);
  padding: 32px 16px;
  font-size: 14px;
}
.global-search-hint {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}
.global-search-hint span {
  font-size: 11px;
  color: var(--muted);
}
.global-search-hint kbd {
  font-size: 10px;
  font-weight: 700;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  margin-right: 3px;
}
/* botão de busca na topbar */
.search-topbar-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--muted);
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
  flex-shrink: 0;
}
.search-topbar-btn:hover { border-color: var(--accent); color: var(--text); }
.search-topbar-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* =====================================================
   PDF Print
   ===================================================== */
@media print {
  .no-print { display: none !important; }
}

@media (max-width: 760px) {
  body.fluxo-ios-app .sidebar:not(.menu-reorder-active),
  body.fluxo-preview-ios .sidebar:not(.menu-reorder-active) {
    position: fixed !important;
    left: max(18px, calc(env(safe-area-inset-left, 0px) + 14px)) !important;
    right: max(18px, calc(env(safe-area-inset-right, 0px) + 14px)) !important;
    bottom: calc(32px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    max-width: none !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 6px 8px !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.026)),
      rgba(14, 14, 16, 0.92) !important;
    -webkit-backdrop-filter: blur(18px) saturate(155%) contrast(108%) brightness(103%) !important;
    backdrop-filter: blur(18px) saturate(155%) contrast(108%) brightness(103%) !important;
    border: 0.75px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 29px !important;
    box-shadow:
      0 8px 22px rgba(0, 0, 0, 0.20),
      0 0 0 0.5px rgba(255, 255, 255, 0.11),
      inset 0 1px 0 rgba(255, 255, 255, 0.30),
      inset 0 -1px 0 rgba(0, 0, 0, 0.14) !important;
    isolation: isolate;
    overflow: hidden !important;
    transform: translateZ(0);
  }
  body.fluxo-ios-app .sidebar:not(.menu-reorder-active)::before,
  body.fluxo-preview-ios .sidebar:not(.menu-reorder-active)::before {
    content: "";
    position: absolute;
    inset: 1px 18px auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.30), transparent);
    opacity: 0.58;
    pointer-events: none;
    z-index: 0;
  }
  body.fluxo-ios-app .sidebar:not(.menu-reorder-active)::after,
  body.fluxo-preview-ios .sidebar:not(.menu-reorder-active)::after {
    content: "";
    position: absolute;
    inset: -20px;
    height: auto;
    box-sizing: border-box;
    border-radius: 44px;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 24%, rgba(255, 255, 255, 0.045) 58%, transparent 86%);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    filter: none;
    mix-blend-mode: screen;
    opacity: 0.16;
    pointer-events: none;
    transform: translate3d(-2.4px, 0, 0) scaleX(1.07);
    z-index: 0;
  }
  body.fluxo-ios-app .app::after,
  body.fluxo-preview-ios .app::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(154px + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
    z-index: 29;
    background: linear-gradient(180deg, rgba(14, 14, 16, 0), rgba(14, 14, 16, 0.82) 42%, #0E0E10 100%);
  }
  body.fluxo-ios-app.fluxo-keyboard-open .app::after,
  body.fluxo-preview-ios.fluxo-keyboard-open .app::after {
    display: none;
  }
  body.fluxo-ios-app .sidebar:not(.menu-reorder-active) .nav-item,
  body.fluxo-preview-ios .sidebar:not(.menu-reorder-active) .nav-item {
    position: relative;
    z-index: 2;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    width: 100% !important;
    min-height: 46px !important;
    padding: 5px 4px !important;
    margin: 0 !important;
    gap: 0 !important;
    border-radius: 16px !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 0 !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: visible !important;
    -webkit-tap-highlight-color: transparent;
  }
  body.fluxo-ios-app .sidebar:not(.menu-reorder-active) .nav-item.mobile-secondary,
  body.fluxo-preview-ios .sidebar:not(.menu-reorder-active) .nav-item.mobile-secondary,
  body.fluxo-ios-app .sidebar:not(.menu-reorder-active) .menu-fixed-action,
  body.fluxo-preview-ios .sidebar:not(.menu-reorder-active) .menu-fixed-action {
    display: none !important;
  }
  body.fluxo-ios-app .sidebar:not(.menu-reorder-active) .mobile-more-nav,
  body.fluxo-preview-ios .sidebar:not(.menu-reorder-active) .mobile-more-nav {
    display: flex !important;
  }
  body.fluxo-ios-app .sidebar:not(.menu-reorder-active) .nav-item.active,
  body.fluxo-preview-ios .sidebar:not(.menu-reorder-active) .nav-item.active {
    color: #fff !important;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.24);
  }
  body.fluxo-ios-app .sidebar:not(.menu-reorder-active) .nav-icon-wrap,
  body.fluxo-preview-ios .sidebar:not(.menu-reorder-active) .nav-icon-wrap,
  body.fluxo-ios-app .sidebar:not(.menu-reorder-active) .ic,
  body.fluxo-preview-ios .sidebar:not(.menu-reorder-active) .ic {
    width: 31px !important;
    min-width: 31px !important;
    height: 31px !important;
    display: inline-grid !important;
    place-items: center !important;
    font-size: 27px !important;
    line-height: 1 !important;
    transform: none !important;
    transition: color 160ms ease, opacity 160ms ease, filter 180ms ease !important;
    will-change: auto !important;
  }
  body.fluxo-ios-app .sidebar:not(.menu-reorder-active) .nav-item.active .nav-icon-wrap,
  body.fluxo-ios-app .sidebar:not(.menu-reorder-active) .nav-item.active .ic,
  body.fluxo-ios-app .sidebar:not(.menu-reorder-active) .nav-item.active .nav-snap-logo,
  body.fluxo-preview-ios .sidebar:not(.menu-reorder-active) .nav-item.active .nav-icon-wrap,
  body.fluxo-preview-ios .sidebar:not(.menu-reorder-active) .nav-item.active .ic,
  body.fluxo-preview-ios .sidebar:not(.menu-reorder-active) .nav-item.active .nav-snap-logo {
    transform: none !important;
  }
  body.fluxo-ios-app .sidebar:not(.menu-reorder-active) .ic svg,
  body.fluxo-preview-ios .sidebar:not(.menu-reorder-active) .ic svg {
    width: 25px !important;
    height: 25px !important;
    stroke-width: 1.9 !important;
  }
  body.fluxo-ios-app .sidebar:not(.menu-reorder-active) .nav-label,
  body.fluxo-preview-ios .sidebar:not(.menu-reorder-active) .nav-label {
    display: none !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  body.fluxo-ios-app .sidebar:not(.menu-reorder-active) .mobile-more-nav .ic,
  body.fluxo-preview-ios .sidebar:not(.menu-reorder-active) .mobile-more-nav .ic {
    letter-spacing: 0;
    transform: none;
  }
  body.fluxo-ios-app .sidebar:not(.menu-reorder-active) .ios-dock-png-icon img,
  body.fluxo-preview-ios .sidebar:not(.menu-reorder-active) .ios-dock-png-icon img {
    width: 28px !important;
    height: 28px !important;
    display: block !important;
    object-fit: contain !important;
    filter: invert(1) brightness(1.08) drop-shadow(0 0 8px rgba(255, 255, 255, 0.16)) !important;
    opacity: 0.92;
  }
  body.fluxo-ios-app .sidebar:not(.menu-reorder-active) .nav-item.active .ios-dock-png-icon img,
  body.fluxo-preview-ios .sidebar:not(.menu-reorder-active) .nav-item.active .ios-dock-png-icon img {
    opacity: 1;
    filter: invert(1) brightness(1.18) drop-shadow(0 0 10px rgba(255, 255, 255, 0.28)) !important;
  }
  body.fluxo-ios-app .sidebar:not(.menu-reorder-active) .nav-glass-pill,
  body.fluxo-preview-ios .sidebar:not(.menu-reorder-active) .nav-glass-pill {
    z-index: 1 !important;
    border-radius: 19px !important;
    background:
      linear-gradient(135deg, rgba(124, 92, 255, 0.58), rgba(72, 118, 255, 0.42)),
      rgba(20, 18, 34, 0.74) !important;
    border: 0.5px solid rgba(255, 255, 255, 0.32) !important;
    box-shadow:
      0 0 0 0.5px rgba(255, 255, 255, 0.14),
      0 6px 15px rgba(0, 0, 0, 0.20),
      inset 0 1px 0 rgba(255, 255, 255, 0.38),
      inset 0 -8px 14px rgba(0, 0, 0, 0.10) !important;
    -webkit-backdrop-filter: blur(12px) saturate(155%) contrast(112%) brightness(106%) !important;
    backdrop-filter: blur(12px) saturate(155%) contrast(112%) brightness(106%) !important;
    overflow: hidden !important;
    transition:
      transform 390ms cubic-bezier(0.32, 0.72, 0.24, 1.12),
      opacity 180ms ease,
      filter 220ms ease !important;
    will-change: transform;
  }
  body.fluxo-ios-app .sidebar:not(.menu-reorder-active) .nav-glass-pill::before,
  body.fluxo-preview-ios .sidebar:not(.menu-reorder-active) .nav-glass-pill::before,
  body.fluxo-ios-app .sidebar:not(.menu-reorder-active) .nav-glass-pill::after,
  body.fluxo-preview-ios .sidebar:not(.menu-reorder-active) .nav-glass-pill::after {
    content: "";
    position: absolute;
    border-radius: inherit;
    pointer-events: none;
  }
  body.fluxo-ios-app .sidebar:not(.menu-reorder-active) .nav-glass-pill::before,
  body.fluxo-preview-ios .sidebar:not(.menu-reorder-active) .nav-glass-pill::before {
    inset: -16px;
    background:
      linear-gradient(100deg, rgba(255, 255, 255, 0.15), transparent 30%, rgba(255, 255, 255, 0.055) 64%, transparent);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    filter: none;
    mix-blend-mode: screen;
    opacity: 0.22;
    transform: translate3d(2.2px, 0, 0) scaleX(1.09);
    z-index: 1;
  }
  body.fluxo-ios-app .sidebar:not(.menu-reorder-active) .nav-glass-pill::after,
  body.fluxo-preview-ios .sidebar:not(.menu-reorder-active) .nav-glass-pill::after {
    inset: 0.5px;
    box-shadow:
      inset -1px 0 0 rgba(255, 255, 255, 0.13),
      inset 1px 0 0 rgba(255, 255, 255, 0.10),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
    opacity: 0.74;
    z-index: 2;
  }
  body.fluxo-ios-app .sidebar:not(.menu-reorder-active) .nav-glass-pill.is-transitioning,
  body.fluxo-preview-ios .sidebar:not(.menu-reorder-active) .nav-glass-pill.is-transitioning {
    animation: fluxoDockPillChromaShift 520ms cubic-bezier(0.28, 1.42, 0.32, 1) both;
  }
  body.fluxo-ios-app .sidebar:not(.menu-reorder-active) .nav-glass-pill.is-transitioning::before,
  body.fluxo-preview-ios .sidebar:not(.menu-reorder-active) .nav-glass-pill.is-transitioning::before {
    animation: fluxoDockFringeFlash 520ms cubic-bezier(0.28, 1.42, 0.32, 1) both;
  }
  body.fluxo-ios-app .sidebar:not(.menu-reorder-active).dock-liquid-transitioning::after,
  body.fluxo-preview-ios .sidebar:not(.menu-reorder-active).dock-liquid-transitioning::after {
    opacity: 0.42;
    filter: none;
    transform: translate3d(-3.6px, 0, 0) scaleX(1.11);
  }
  body.fluxo-ios-app .sidebar:not(.menu-reorder-active) .nav-item.liquid-jump .nav-icon-wrap,
  body.fluxo-ios-app .sidebar:not(.menu-reorder-active) .nav-item.liquid-jump .nav-label,
  body.fluxo-preview-ios .sidebar:not(.menu-reorder-active) .nav-item.liquid-jump .nav-icon-wrap,
  body.fluxo-preview-ios .sidebar:not(.menu-reorder-active) .nav-item.liquid-jump .nav-label {
    animation: none !important;
    transform: none !important;
  }
  @keyframes fluxoDockPillChromaShift {
    0% { filter: saturate(120%) contrast(100%); scale: 0.985; }
    42% { filter: saturate(132%) contrast(112%); scale: 1.03; }
    68% { filter: saturate(116%) contrast(106%); scale: 0.996; }
    100% { filter: saturate(100%) contrast(100%); scale: 1; }
  }
  @keyframes fluxoDockFringeFlash {
    0% { opacity: 0.18; filter: none; transform: translate3d(-1px, 0, 0) scaleX(1.04); }
    38% { opacity: 0.40; filter: none; transform: translate3d(3px, -0.2px, 0) scaleX(1.12); }
    70% { opacity: 0.30; filter: none; transform: translate3d(-1.6px, 0.2px, 0) scaleX(1.08); }
    100% { opacity: 0.22; filter: none; transform: translate3d(2.2px, 0, 0) scaleX(1.09); }
  }
  @keyframes fluxoDockIconMicroJump {
    0% { transform: translateY(0) scale(1); filter: saturate(100%); }
    42% { transform: translateY(-2px) scale(1.07); filter: saturate(180%) drop-shadow(0 0 7px rgba(122, 170, 255, 0.36)); }
    74% { transform: translateY(1px) scale(0.985); filter: saturate(125%); }
    100% { transform: translateY(0) scale(1); filter: saturate(100%); }
  }
  body.fluxo-ios-app .main,
  body.fluxo-preview-ios .main {
    padding-bottom: 148px !important;
  }
}

/* =========================================================
   FLUXO DESIGN SYSTEM 2026.07
   Camada visual aditiva: preserva seletores e comportamento.
   ========================================================= */
:root {
  --bg: #0a0b0f;
  --panel: #101218;
  --panel-1: #151820;
  --panel-2: #1a1e27;
  --border: #292e39;
  --border-strong: #3a4251;
  --text: #f5f7fa;
  --muted: #a7afbd;
  --muted-2: #7e8898;
  --accent: #7765f2;
  --accent-2: #6755dd;
  --green: #35c98a;
  --yellow: #f0b84b;
  --red: #f1646c;
  --blue: #5aa7f8;
  --radius-control: 10px;
  --radius-card: 14px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .28), 0 10px 30px rgba(0, 0, 0, .08);
  --shadow-raised: 0 12px 32px rgba(0, 0, 0, .22);
  --shadow-modal: 0 24px 80px rgba(0, 0, 0, .58);
  color-scheme: dark;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -.005em;
}

::selection {
  color: #fff;
  background: rgba(119, 101, 242, .52);
}

body .app {
  min-height: 100dvh;
  background: var(--bg);
}

body .main {
  min-width: 0;
  padding: 24px 30px 48px;
  background: var(--bg);
}

body #pageContent {
  width: min(100%, 1440px);
  margin-inline: auto;
}

body[data-fluxo-page="production"] #pageContent,
body[data-fluxo-page="my_editions"] #pageContent,
body[data-fluxo-page="production_deadlines"] #pageContent,
body[data-fluxo-page="recordings"] #pageContent {
  width: 100%;
  max-width: none;
}

body .sidebar {
  position: sticky;
  top: 0;
  align-self: flex-start;
  flex: 0 0 248px;
  width: 248px;
  height: 100dvh;
  max-height: 100dvh;
  padding: 18px 14px 22px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  background: #0f1117;
  border-right: 1px solid var(--border);
}

body .sidebar.menu-reorder-active {
  flex-basis: 300px;
  width: 300px;
}

body .brand {
  min-height: 44px;
  margin: 0 4px 18px;
  gap: 11px;
}

body .brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: #b8adff;
  background: rgba(119, 101, 242, .12);
  border-color: rgba(119, 101, 242, .30);
  box-shadow: none;
}

body .brand-name {
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -.02em;
}

body .sidebar-pulse-indicator {
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 9px;
  min-height: 48px;
  margin: 0 2px 14px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--panel-1);
  box-shadow: none;
  transition: border-color .16s ease, background .16s ease;
}

body .sidebar-pulse-indicator.running,
body .sidebar-pulse-indicator.paused,
body .sidebar-pulse-indicator.unknown {
  background: var(--panel-1);
  box-shadow: none;
}

body .sidebar-pulse-indicator.running { border-color: rgba(53, 201, 138, .34); }
body .sidebar-pulse-indicator.paused { border-color: rgba(240, 184, 75, .34); }
body .sidebar-pulse-indicator.unknown { border-color: rgba(90, 167, 248, .34); }

body .sidebar-pulse-indicator:hover {
  transform: none;
  filter: none;
  background: var(--panel-2);
}

body .sidebar-pulse-beacon {
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--sidebar-pulse-tone) 13%, transparent);
}

body .sidebar-pulse-copy strong { font-size: 12px; font-weight: 700; }
body .sidebar-pulse-copy small { color: var(--muted); font-size: 10px; font-weight: 600; }

body .nav-item {
  position: relative;
  min-height: 42px;
  margin: 2px 0;
  padding: 9px 11px;
  gap: 11px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 610;
  transition: color .14s ease, background .14s ease;
}

body .nav-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .045);
}

body .nav-item.active {
  color: #fff;
  background: rgba(119, 101, 242, .14);
}

body .nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #8d7df7;
}

body .nav-item .nav-icon-wrap,
body .nav-item .ic {
  width: 20px;
  min-width: 20px;
  height: 20px;
}

body .nav-item .ic svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.7;
}

body .topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid !important;
  grid-template-columns: minmax(210px, 1fr) minmax(230px, 360px) auto auto !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 64px;
  margin: -8px 0 24px;
  padding: 8px 0 10px;
  background: rgba(10, 11, 15, .88);
  border-bottom: 1px solid rgba(41, 46, 57, .72);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
}

/* No app nativo, a topbar — e nao o conteudo rolavel — ocupa a area
   reservada pela status bar. Esta regra fica fora do breakpoint para cobrir
   tambem iPad em retrato e paisagem sem alterar a grade desktop. */
html body.fluxo-ios-app .topbar,
html body.fluxo-preview-ios .topbar {
  min-height: calc(64px + max(env(safe-area-inset-top, 0px), var(--fluxo-native-safe-area-top, 0px))) !important;
  padding-top: calc(8px + max(env(safe-area-inset-top, 0px), var(--fluxo-native-safe-area-top, 0px))) !important;
  background: #0a0b0f !important;
}

body .page-title {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.1;
  font-weight: 760;
  letter-spacing: -.035em;
}

body .page-subtitle {
  max-width: 700px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

body .search-topbar-btn {
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 10px 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  background: var(--panel-1);
  border: 1px solid var(--border);
  border-radius: 11px;
  box-shadow: none;
  text-align: left;
}

body .search-topbar-btn:hover {
  color: var(--text);
  background: var(--panel-2);
  border-color: var(--border-strong);
  transform: none;
}

body .search-topbar-btn svg {
  width: 17px;
  min-width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.search-topbar-label {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 560;
}

.search-topbar-shortcut {
  min-width: 34px;
  padding: 3px 6px;
  color: var(--muted-2);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  border-radius: 6px;
  font: 600 11px/1.2 inherit;
  text-align: center;
}

body .notification-bell {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--panel-1);
  border-color: var(--border);
  box-shadow: none;
}

body .notification-bell:hover {
  transform: none;
  background: var(--panel-2);
  border-color: var(--border-strong);
}

body .notification-bell.has-items {
  border-color: rgba(240, 184, 75, .42);
  box-shadow: inset 0 0 0 1px rgba(240, 184, 75, .08);
}

body .notification-count {
  top: -5px;
  right: -5px;
  background: var(--red);
  border: 2px solid var(--bg);
}

body .user-chip {
  min-height: 42px;
  padding: 5px 11px 5px 5px;
  gap: 8px;
  background: var(--panel-1);
  border-color: var(--border);
  border-radius: 11px;
  font-size: 12px;
  font-weight: 650;
}

body .avatar {
  width: 30px;
  height: 30px;
  background: var(--accent);
}

body input,
body select,
body textarea {
  min-height: 42px;
  padding: 10px 12px;
  color: var(--text);
  background: var(--panel-2);
  border-color: var(--border);
  border-radius: 10px;
}

body textarea { line-height: 1.5; }

body input:hover,
body select:hover,
body textarea:hover { border-color: var(--border-strong); }

body input:focus-visible,
body select:focus-visible,
body textarea:focus-visible {
  border-color: rgba(119, 101, 242, .82);
  box-shadow: 0 0 0 3px rgba(119, 101, 242, .14);
}

body .btn {
  min-height: 42px;
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: none;
}

body .btn:hover { background: var(--accent-2); }
body .btn:active { transform: translateY(1px); opacity: .92; }

body .btn.secondary,
body .btn.neutral,
body .btn.ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--border);
}

body .btn.secondary:hover,
body .btn.neutral:hover,
body .btn.ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, .055);
  border-color: var(--border-strong);
}

body .btn.danger {
  color: #fff;
  background: rgba(241, 100, 108, .12);
  border-color: rgba(241, 100, 108, .34);
}

body .btn.danger:hover { background: rgba(241, 100, 108, .22); }

body .btn.small {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}

body .pill {
  min-height: 24px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .01em;
}

body .toolbar {
  min-height: 48px;
  margin-bottom: 14px;
  gap: 8px;
  align-items: center;
}

body .card,
body .modal,
body .login-card {
  border-color: var(--border);
  border-radius: var(--radius-card);
  background: var(--panel-1);
  box-shadow: var(--shadow-card);
}

body .modal-overlay {
  background: rgba(3, 4, 7, .76);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

body .modal { box-shadow: var(--shadow-modal); }

body .fx-menu-pop {
  border-color: var(--border-strong);
  background: #1b1f28;
  box-shadow: var(--shadow-raised);
}

.fluxo-error-state {
  min-height: 148px;
  padding: 22px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  color: var(--text);
  background: var(--panel-1);
  border: 1px solid rgba(241, 100, 108, .32);
  border-radius: var(--radius-card);
}

.fluxo-error-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #ffc3c6;
  background: rgba(241, 100, 108, .13);
  border: 1px solid rgba(241, 100, 108, .28);
  border-radius: 12px;
  font-size: 20px;
  font-weight: 800;
}

.fluxo-error-state strong { display: block; margin-bottom: 4px; font-size: 16px; }
.fluxo-error-state p { margin: 0; color: var(--muted); }

/* Início */
body[data-fluxo-page="home"] #pageContent { max-width: 1240px; }

body .home-page {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

body .home-search-card { display: none; }

body .home-pulse-panel {
  grid-column: 1 / -1;
  min-height: 84px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  align-items: center;
  gap: 18px;
  background: var(--panel-1);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

body .home-pulse-panel.running { border-color: var(--border); border-left-color: var(--green); background: var(--panel-1); }
body .home-pulse-panel.paused { border-color: var(--border); border-left-color: var(--yellow); background: var(--panel-1); }
body .home-pulse-panel.unknown { border-color: var(--border); border-left-color: var(--blue); background: var(--panel-1); }
body .home-pulse-clock { padding-inline: 18px; border-inline: 1px solid var(--border); }
body .home-pulse-clock strong { font-variant-numeric: tabular-nums; letter-spacing: -.03em; }

body .home-day-panel {
  grid-column: 1 / 9;
  margin: 0;
  padding: 18px !important;
  background: var(--panel-1) !important;
  border: 1px solid var(--border) !important;
  border-left: 3px solid var(--accent) !important;
  border-radius: var(--radius-card) !important;
  box-shadow: var(--shadow-card);
}

body .home-day-stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

body .home-day-chip {
  min-height: 76px;
  padding: 11px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  box-shadow: none;
}

body .home-day-chip:hover {
  transform: none;
  border-color: var(--border-strong);
  background: #20242e;
}

body .home-week-section {
  grid-column: 9 / -1;
  margin: 0;
  padding: 16px;
  background: var(--panel-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

body .home-kpi-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body .home-kpi-card {
  min-height: 112px;
  padding: 13px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  box-shadow: none;
}

body .home-kpi-card:hover { transform: none; border-color: var(--border-strong); }
body .home-kpi-card::before { opacity: .55; }
body .home-kpi-value { font-size: 29px; letter-spacing: -.04em; }
body .home-kpi-label { color: var(--muted); font-size: 11px; }

body .home-upcoming-section { grid-column: 1 / 7; }
body .home-urgent-section { grid-column: 7 / -1; }
body .home-nav-section { grid-column: 1 / -1; }

body .home-upcoming-section,
body .home-urgent-section,
body .home-nav-section {
  margin: 0;
  padding: 16px;
  background: var(--panel-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

body .home-section-title {
  margin-bottom: 11px;
  color: var(--text);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body .home-quick-list { gap: 6px; }

body .home-quick-item {
  min-height: 56px;
  padding: 10px 11px;
  background: var(--panel-2);
  border: 1px solid transparent;
  border-radius: 10px;
}

body .home-quick-item:hover { transform: none; border-color: var(--border); }

body .home-nav-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

body .home-nav-card {
  min-height: 72px;
  padding: 12px 14px;
  flex-direction: row;
  justify-content: flex-start;
  text-align: left;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  box-shadow: none;
}

body .home-nav-card:hover { transform: none; border-color: var(--border-strong); }
body .home-nav-card-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(119, 101, 242, .11);
}
body .home-nav-card-icon > svg,
body .home-nav-card-icon > img {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
}

/* Produção e Prazos */
body[data-fluxo-page="production"] .toolbar,
body[data-fluxo-page="my_editions"] .toolbar {
  padding: 0;
  background: transparent;
}

body .production-filter-shell { gap: 8px !important; }

body .production-filter-toggle,
body .production-filter-grid {
  background: var(--panel-1) !important;
  border-color: var(--border) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

body .production-filter-toggle:hover { border-color: var(--border-strong) !important; }
body .production-filter-toggle-icon { color: #b9afff !important; background: rgba(119, 101, 242, .11) !important; }

body .production-board-scroll {
  padding: 2px 2px 16px;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--border-strong) transparent !important;
  scrollbar-width: thin !important;
}

body .production-board-scroll::-webkit-scrollbar { height: 8px !important; }
body .production-board-scroll::-webkit-scrollbar-track { background: transparent !important; }
body .production-board-scroll::-webkit-scrollbar-thumb { background: var(--border-strong) !important; border: 2px solid var(--bg) !important; }

body .production-board-grid {
  grid-auto-columns: minmax(304px, 328px) !important;
  gap: 10px !important;
}

body .production-kanban-column {
  scroll-snap-align: start;
  padding: 10px !important;
  background: #111319 !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

body .production-kanban-card-stack { gap: 8px !important; }

body .production-card {
  padding: 0 !important;
  border-radius: 11px !important;
  transition: border-color .14s ease, transform .14s ease !important;
}

body .production-card:hover { transform: translateY(-1px); border-color: var(--border-strong) !important; }
body .production-card-title { font-size: 14px !important; line-height: 1.3 !important; }
body .production-card-actions { gap: 8px !important; }
body .production-card-actions .btn { min-height: 44px !important; }
body .production-card-actions .production-advance-btn { min-height: 48px !important; }
body .production-card-pulse { background: rgba(90, 167, 248, .06); border-color: rgba(90, 167, 248, .20); }
body .production-card-pulse.is-current { background: rgba(53, 201, 138, .06); border-color: rgba(53, 201, 138, .28); }

body .production-deadlines-dashboard { gap: 14px !important; }
body .production-deadline-summary { gap: 10px !important; }
body .production-deadline-summary-card {
  min-height: 92px !important;
  padding: 15px !important;
  background: var(--panel-1) !important;
  border-color: var(--border) !important;
  border-radius: 12px !important;
}

body .production-deadline-summary-card strong { font-size: 28px !important; letter-spacing: -.04em; }

body .production-deadline-center,
body .production-schedule-shell,
body .production-editor-queue {
  background: var(--panel-1) !important;
  border-color: var(--border) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

body .production-deadline-center:not(.ok) {
  border-left: 3px solid var(--red) !important;
  background: var(--panel-1) !important;
}

body .production-deadline-center.ok { border-left: 3px solid var(--green) !important; }
body .production-deadline-alert { background: var(--panel-2) !important; border-color: var(--border) !important; }
body .production-schedule-row > div { background: var(--panel-2) !important; border-color: var(--border) !important; }
body .production-schedule-row.head > div { color: #c8c1ff !important; background: rgba(119, 101, 242, .09) !important; }

/* Gravações */
body .recording-calendar-shell {
  padding: 14px !important;
  background: var(--panel-1) !important;
  border-color: var(--border) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

body .recording-calendar-day,
body .recording-calendar-weekday {
  border-color: var(--border) !important;
  background: #12151b !important;
}

body .recording-calendar-day:hover { background: var(--panel-2) !important; }
body .recording-calendar-event { background: var(--panel-2) !important; border: 1px solid var(--border) !important; }
body .recording-calendar-range-event { box-shadow: none !important; }

body .recording-card {
  background: var(--panel-1) !important;
  border-color: var(--border) !important;
  border-radius: 14px !important;
  box-shadow: var(--shadow-card);
}

body .recording-card-layout { padding: 16px !important; gap: 18px !important; }
body .recording-card-main h3 { font-size: 19px !important; letter-spacing: -.02em; }
body .recording-card-actions { min-width: 208px !important; }
body .recording-card-actions .btn { width: 100%; }

/* Inventário */
body .inventory-toolbar {
  padding: 6px;
  overflow-x: auto;
  flex-wrap: nowrap;
  background: var(--panel-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  scrollbar-width: none;
  scroll-behavior: auto !important;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}

body .inventory-toolbar::-webkit-scrollbar { display: none; }
body .inventory-toolbar .btn { flex: 0 0 auto; min-height: 38px; white-space: nowrap; }
body .inventory-toolbar.is-horizontal-panning,
body .inventory-toolbar.is-horizontal-gliding { cursor: grabbing; }
body .inventory-toolbar.is-horizontal-panning,
body .inventory-toolbar.is-horizontal-panning * {
  user-select: none;
  -webkit-user-select: none;
}

body .inventory-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

body .inventory-card {
  background: var(--panel-1);
  border-color: var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

body .inventory-card:hover { transform: none; border-color: var(--border-strong); }
body .inventory-card-photo { background: #0d0f14; }
body .inventory-card-main { padding: 14px; }
body .inventory-card-actions { gap: 6px; }

/* Planejamento */
body .planning-critical-alert {
  padding: 14px 16px !important;
  background: var(--panel-1) !important;
  border: 1px solid rgba(241, 100, 108, .34) !important;
  border-left: 3px solid var(--red) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

body .planning-critical-alert > strong { font-size: 14px !important; letter-spacing: .03em; }
body .planning-filter-panel {
  padding: 14px !important;
  background: var(--panel-1) !important;
  border-color: var(--border) !important;
  border-radius: 12px !important;
}

body .planning-group { margin-bottom: 24px !important; }
body .planning-group-head h3 { font-size: 14px; letter-spacing: .02em; }
body .planning-card-grid { gap: 10px !important; }
body .planning-card {
  padding: 14px !important;
  background: var(--panel-1) !important;
  border-color: var(--border) !important;
  border-left: 3px solid var(--planning-tone) !important;
  border-radius: 12px !important;
  box-shadow: var(--shadow-card);
}

/* Fluxo IA */
body[data-fluxo-page="ai_flow"] #pageContent { max-width: 1180px; }

body .ai-hero {
  padding: 22px !important;
  background: var(--panel-1) !important;
  border: 1px solid var(--border) !important;
  border-left: 3px solid var(--accent) !important;
  border-radius: 14px !important;
  box-shadow: var(--shadow-card) !important;
}

body .ai-hero::before { display: none !important; }
body .ai-hero h2 { font-size: 28px !important; letter-spacing: -.04em; }

.ai-workspace-nav {
  position: sticky;
  top: 66px;
  z-index: 35;
  margin: 0 0 14px;
  padding: 5px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  background: rgba(21, 24, 32, .92);
  border: 1px solid var(--border);
  border-radius: 12px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  scrollbar-width: none;
}

.ai-workspace-nav::-webkit-scrollbar { display: none; }

.ai-workspace-link {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.ai-workspace-link:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.ai-workspace-link.active { color: #fff; background: rgba(119, 101, 242, .18); }

body .ai-panel {
  padding: 16px !important;
  background: var(--panel-1) !important;
  border-color: var(--border) !important;
  border-radius: 14px !important;
  box-shadow: var(--shadow-card) !important;
  scroll-margin-top: 120px;
}

body .ai-panel h3 { font-size: 16px; letter-spacing: -.015em; }
body .ai-kpi { background: var(--panel-2) !important; border-color: var(--border) !important; border-radius: 11px !important; }
body .ai-output-card { background: var(--panel-2) !important; border-color: var(--border) !important; }
body .ai-chat-log { background: #11141a !important; border-color: var(--border) !important; }
body .ai-chat-bubble { border-color: var(--border) !important; }

/* Sobreposições e alertas globais */
body #postingGlobalAlert {
  max-width: min(420px, calc(100vw - 28px)) !important;
  border: 1px solid rgba(241, 100, 108, .34) !important;
  border-left: 3px solid var(--red) !important;
  border-radius: 12px !important;
  background: rgba(21, 24, 32, .96) !important;
  box-shadow: var(--shadow-raised) !important;
}

body .toast {
  border: 1px solid var(--border) !important;
  border-left-width: 3px !important;
  border-radius: 12px !important;
  background: #1b1f28 !important;
  box-shadow: var(--shadow-raised) !important;
}

/* Tablet: rail compacto, sem transformar o iPad em telefone. */
@media (min-width: 761px) and (max-width: 1180px) {
  body .sidebar:not(.menu-reorder-active) {
    flex: 0 0 82px;
    width: 82px;
    padding: 16px 10px;
  }

  body .sidebar:not(.menu-reorder-active) .brand {
    justify-content: center;
    margin-inline: 0;
  }

  body .sidebar:not(.menu-reorder-active) .brand-name,
  body .sidebar:not(.menu-reorder-active) .nav-label,
  body .sidebar:not(.menu-reorder-active) .sidebar-pulse-copy,
  body .sidebar:not(.menu-reorder-active) .menu-reorder-toggle span:last-child {
    display: none;
  }

  body .sidebar:not(.menu-reorder-active) .sidebar-pulse-indicator {
    width: 42px;
    min-height: 42px;
    margin: 0 auto 14px;
    padding: 0;
    display: grid;
    place-items: center;
    grid-template-columns: 1fr;
  }

  body .sidebar:not(.menu-reorder-active) .nav-item {
    width: 48px;
    min-height: 46px;
    margin-inline: auto;
    padding: 0;
    justify-content: center;
  }

  body .sidebar:not(.menu-reorder-active) .nav-item.active::before { left: -10px; }
  body .main { padding: 20px 22px 42px; }
  body .topbar { grid-template-columns: minmax(180px, 1fr) 44px auto auto !important; }
  body .search-topbar-btn { width: 42px; justify-self: end; padding: 0; justify-content: center; }
  body .search-topbar-label,
  body .search-topbar-shortcut { display: none; }
  body .user-chip > span { display: none; }
  body .user-chip { padding-right: 5px; }
  body .home-page { grid-template-columns: 1fr; }
  body .home-pulse-panel,
  body .home-day-panel,
  body .home-week-section,
  body .home-upcoming-section,
  body .home-urgent-section,
  body .home-nav-section { grid-column: 1; }
  body .home-nav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .production-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* Celular e apps nativos de iPhone. */
@media (max-width: 760px) {
  html { scroll-padding-bottom: 104px; }
  body { font-size: 14px; }
  body .app {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  body .main {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    padding: max(12px, env(safe-area-inset-top)) 12px calc(104px + env(safe-area-inset-bottom)) !important;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  html body.fluxo-ios-app .main,
  html body.fluxo-preview-ios .main {
    width: 100%;
    padding: 0 12px calc(104px + env(safe-area-inset-bottom, 0px)) !important;
    overflow-y: auto;
  }

  body .topbar {
    top: 0;
    grid-template-columns: minmax(0, 1fr) 42px 42px 34px !important;
    gap: 7px !important;
    min-height: 58px;
    margin: 0 0 14px;
    padding: 5px 0 9px;
  }

  html body.fluxo-ios-app .topbar,
  html body.fluxo-preview-ios .topbar {
    top: 0 !important;
    min-height: calc(58px + max(env(safe-area-inset-top, 0px), var(--fluxo-native-safe-area-top, 0px))) !important;
    margin: 0 0 14px !important;
    padding: calc(5px + max(env(safe-area-inset-top, 0px), var(--fluxo-native-safe-area-top, 0px))) 0 9px !important;
    background: #0a0b0f !important;
    border-bottom-color: rgba(58, 66, 81, .82) !important;
  }

  body .page-title { font-size: 21px; }
  body .page-subtitle { display: none; }
  body .search-topbar-btn { width: 42px; height: 42px; padding: 0; justify-content: center; border-radius: 11px; }
  body .search-topbar-label,
  body .search-topbar-shortcut { display: none; }
  body .notification-bell { width: 42px; height: 42px; }
  body .user-chip { min-height: 34px; padding: 2px; background: transparent; border: 0; }
  body .user-chip > span { display: none; }
  body .avatar { width: 30px; height: 30px; }

  body .sidebar:not(.menu-reorder-active),
  html body.fluxo-ios-app .sidebar:not(.menu-reorder-active),
  html body.fluxo-preview-ios .sidebar:not(.menu-reorder-active) {
    position: fixed !important;
    inset: auto 10px calc(8px + env(safe-area-inset-bottom)) 10px !important;
    z-index: 1000 !important;
    width: auto !important;
    height: 70px !important;
    min-height: 70px !important;
    max-height: 70px !important;
    padding: 6px !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    overflow: visible !important;
    background: rgba(18, 21, 28, .94) !important;
    border: 1px solid rgba(70, 78, 94, .72) !important;
    border-radius: 20px !important;
    box-shadow: 0 16px 44px rgba(0, 0, 0, .42) !important;
    -webkit-backdrop-filter: blur(22px) saturate(140%) !important;
    backdrop-filter: blur(22px) saturate(140%) !important;
  }

  body .sidebar:not(.menu-reorder-active) .brand,
  body .sidebar:not(.menu-reorder-active) .sidebar-pulse-indicator,
  body .sidebar:not(.menu-reorder-active) .mobile-secondary,
  body .sidebar:not(.menu-reorder-active) .menu-reorder-panel,
  body .sidebar:not(.menu-reorder-active) [data-menu-action],
  body .sidebar:not(.menu-reorder-active) .sidebar-footer,
  body .sidebar:not(.menu-reorder-active) .nav-glass-pill {
    display: none !important;
  }

  body .sidebar:not(.menu-reorder-active) .mobile-primary,
  body .sidebar:not(.menu-reorder-active) .mobile-more-nav,
  html body.fluxo-ios-app .sidebar:not(.menu-reorder-active) .mobile-primary,
  html body.fluxo-ios-app .sidebar:not(.menu-reorder-active) .mobile-more-nav,
  html body.fluxo-preview-ios .sidebar:not(.menu-reorder-active) .mobile-primary,
  html body.fluxo-preview-ios .sidebar:not(.menu-reorder-active) .mobile-more-nav {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 58px !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 5px 2px 4px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 3px !important;
    color: var(--muted) !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 14px !important;
    box-shadow: none !important;
  }

  body .sidebar:not(.menu-reorder-active) .nav-item.active,
  html body.fluxo-ios-app .sidebar:not(.menu-reorder-active) .nav-item.active,
  html body.fluxo-preview-ios .sidebar:not(.menu-reorder-active) .nav-item.active {
    color: #fff !important;
    background: rgba(119, 101, 242, .18) !important;
    text-shadow: none !important;
  }

  body .sidebar:not(.menu-reorder-active) .nav-item.active::before { display: none; }

  body .sidebar:not(.menu-reorder-active) .nav-icon-wrap,
  body .sidebar:not(.menu-reorder-active) .ic,
  html body.fluxo-ios-app .sidebar:not(.menu-reorder-active) .nav-icon-wrap,
  html body.fluxo-ios-app .sidebar:not(.menu-reorder-active) .ic,
  html body.fluxo-preview-ios .sidebar:not(.menu-reorder-active) .nav-icon-wrap,
  html body.fluxo-preview-ios .sidebar:not(.menu-reorder-active) .ic {
    width: 23px !important;
    min-width: 23px !important;
    height: 23px !important;
    font-size: 21px !important;
  }

  body .sidebar:not(.menu-reorder-active) .ic svg,
  html body.fluxo-ios-app .sidebar:not(.menu-reorder-active) .ic svg,
  html body.fluxo-preview-ios .sidebar:not(.menu-reorder-active) .ic svg {
    width: 22px !important;
    height: 22px !important;
    stroke-width: 1.8 !important;
  }

  html body.fluxo-ios-app .sidebar:not(.menu-reorder-active) .ios-dock-png-icon img,
  html body.fluxo-preview-ios .sidebar:not(.menu-reorder-active) .ios-dock-png-icon img {
    width: 23px !important;
    height: 23px !important;
    filter: invert(1) brightness(1.04) !important;
  }

  body .sidebar:not(.menu-reorder-active) .nav-label,
  html body.fluxo-ios-app .sidebar:not(.menu-reorder-active) .nav-label,
  html body.fluxo-preview-ios .sidebar:not(.menu-reorder-active) .nav-label {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    color: inherit !important;
    font-size: 9.5px !important;
    font-weight: 680 !important;
    line-height: 1.05 !important;
    text-align: center !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body #pageContent { width: 100%; }
  body .toolbar { align-items: stretch; }
  body .btn { min-height: 44px; }
  body .home-page { display: grid; grid-template-columns: 1fr; gap: 12px; }
  body .home-pulse-panel,
  body .home-day-panel,
  body .home-week-section,
  body .home-upcoming-section,
  body .home-urgent-section,
  body .home-nav-section { grid-column: 1; }

  body .home-pulse-panel {
    min-height: 0;
    padding: 13px;
    grid-template-columns: 1fr auto;
    gap: 11px;
  }

  body .home-pulse-clock { padding: 0; border: 0; text-align: right; }
  body .home-pulse-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .home-pulse-actions .btn:only-child { grid-column: 1 / -1; }
  body .home-day-panel,
  body .home-week-section,
  body .home-upcoming-section,
  body .home-urgent-section,
  body .home-nav-section { padding: 13px !important; }
  body .home-day-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .home-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .home-kpi-card { min-height: 104px; }
  body .home-nav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .home-nav-card { min-height: 66px; padding: 10px; }

  body .production-create-actions { grid-template-columns: 1fr 1fr !important; }
  body .production-filter-grid { grid-template-columns: 1fr !important; }
  body .production-board-grid { grid-auto-columns: calc(100vw - 34px) !important; gap: 8px !important; }
  body .production-board-scroll { margin-inline: -1px; scroll-snap-type: x mandatory; }
  body .production-kanban-column { min-height: 420px !important; scroll-snap-align: center; }
  body .production-card:hover { transform: none; }

  body .production-deadline-summary { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  body .production-schedule-shell { padding: 10px !important; }
  body .production-deadline-alert { display: grid !important; }

  body .recording-calendar-shell { padding: 10px !important; }
  body .recording-card-layout { display: grid !important; padding: 13px !important; }
  body .recording-card-main { min-width: 0 !important; }
  body .recording-card-actions { min-width: 0 !important; display: grid !important; grid-template-columns: 1fr 1fr !important; }
  body .recording-card-actions > * { min-width: 0; }
  body .recording-card-actions .fx-menu { grid-column: 1 / -1; }
  body .recording-card-actions .fx-menu > summary { width: 100%; }

  body .inventory-toolbar { margin-inline: -2px; }
  body .inventory-card-grid { grid-template-columns: 1fr; }
  body .inventory-card-actions { display: grid; grid-template-columns: 1fr 1fr; }
  body .inventory-card-actions .fx-menu { grid-column: 1 / -1; }

  body .planning-filter-panel { grid-template-columns: 1fr !important; }
  body .planning-filter-panel .choice-row { margin-top: 0 !important; }
  body .planning-card-grid { grid-template-columns: 1fr !important; }
  body .planning-toolbar .btn { width: 100%; }

  body .ai-hero { padding: 16px !important; }
  body .ai-hero h2 { font-size: 25px !important; }
  .ai-workspace-nav { top: 59px; margin-inline: -1px; }
  body .ai-panel { padding: 14px !important; scroll-margin-top: 110px; }
  body .ai-grid { grid-template-columns: 1fr !important; }

  .fluxo-error-state {
    padding: 17px;
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .fluxo-error-icon { width: 36px; height: 36px; }
  .fluxo-error-state .btn { grid-column: 1 / -1; width: 100%; }

  body #postingGlobalAlert {
    inset: auto 12px calc(92px + env(safe-area-inset-bottom)) 12px !important;
    max-width: none !important;
  }

  body .toast {
    left: 12px !important;
    right: 12px !important;
    bottom: calc(92px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-width: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body *, body *::before, body *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Ajustes finais encontrados na validação responsiva. */
@media (max-width: 760px) {
  body #postingGlobalAlert {
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    bottom: calc(92px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-width: none !important;
    min-height: 54px !important;
    padding: 8px 9px 8px 12px !important;
    transform: none !important;
    grid-template-columns: minmax(0, 1fr) 32px !important;
    gap: 6px !important;
  }

  body #postingGlobalAlert [data-posting-alert-open] {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  body #postingGlobalAlert [data-posting-alert-open] strong {
    overflow: hidden !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    letter-spacing: .035em !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body #postingGlobalAlert [data-posting-alert-open] span {
    display: block !important;
    overflow: hidden !important;
    margin-top: 2px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body .production-deadlines-dashboard {
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body .production-deadlines-dashboard > *,
  body .production-deadline-summary,
  body .production-schedule-shell,
  body .production-schedule-head,
  body .production-schedule-query,
  body .production-schedule-query-result,
  body .production-schedule-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body .production-schedule-shell { overflow: hidden !important; }
  body .production-schedule-table { overflow-x: auto !important; }

  body .production-schedule-inline-actions {
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    gap: 7px !important;
  }

  body .production-schedule-inline-actions > .btn {
    width: 100% !important;
    min-width: 0 !important;
    padding-inline: 8px !important;
  }

  body .production-schedule-week-label,
  body .production-schedule-tabs {
    grid-column: 1 / -1 !important;
  }

  body .production-schedule-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body .production-schedule-tabs .btn { width: 100% !important; }

  body .inventory-toolbar .btn {
    width: auto !important;
    min-width: max-content !important;
    flex: 0 0 auto !important;
    padding-inline: 12px !important;
  }

  .ai-workspace-nav { gap: 2px; }
  .ai-workspace-link {
    flex: 1 1 auto;
    min-width: max-content;
    padding-inline: 8px;
    font-size: 11px;
  }
}
