/* ==========================================================================
   EXTREMOREC • PORTAL DE PRODUÇÃO — Design System
   Identidade: Lime #DBFC02 sobre Grafite #1D1D1D
   ========================================================================== */

:root {
  --lime: #DBFC02;
  --lime-hover: #E6FF4D;
  --lime-ink: #121212;
  --lime-soft: rgba(219, 252, 2, 0.12);
  --lime-line: rgba(219, 252, 2, 0.35);

  --bg: #0F0F0F;
  --surface: #1D1D1D;
  --card: #262626;
  --card-2: #303030;
  --field: #161616;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.14);

  --text: #F4F4F2;
  --muted: #A3A3A0;
  --faint: #6E6E6B;

  --sky: #8CCBFF;
  --sky-soft: rgba(140, 203, 255, 0.12);
  --amber: #FFC76B;
  --amber-soft: rgba(255, 199, 107, 0.12);
  --red: #FF7A6B;
  --red-soft: rgba(255, 122, 107, 0.12);

  --r-xl: 32px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --pill: 999px;

  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --font: 'Urbanist', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--lime); color: var(--lime-ink); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
button:disabled { opacity: .55; cursor: progress; }
h1, h2, h3, h4, p { margin: 0; }
svg.lucide { width: 18px; height: 18px; stroke-width: 1.75; flex-shrink: 0; }

.hidden { display: none !important; }
.min0 { min-width: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.lime { color: var(--lime); }
.strong { color: var(--text); font-weight: 600; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.grow { flex: 1; }

/* ------------------------------ Marca ------------------------------ */
.wordmark { height: 22px; width: auto; aspect-ratio: 757.33 / 93.8; color: var(--text); display: block; align-self: flex-start; }
.o-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: .78em; height: .78em; margin: 0 .02em;
  border: .09em solid var(--lime); border-radius: 50%;
  vertical-align: -.04em;
}
.o-mark svg { width: .36em; height: .42em; color: var(--lime); }

/* ------------------------------ Topbar ------------------------------ */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(15, 15, 15, .82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--lime); color: var(--lime-ink);
  display: grid; place-items: center;
}
.brand-icon svg { width: 14px; height: 17px; }

.user-pill {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--pill); padding: 4px 6px 4px 4px;
  font-size: 13px; max-width: 420px;
}
.user-pill .avatar { width: 32px; height: 32px; font-size: 12px; }
.top-actions { display: flex; align-items: center; gap: 8px; }

/* ------------------------------ Botões ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px;
  border-radius: var(--pill);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn:active { transform: scale(.98); }
.btn--sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--lime { background: var(--lime); color: var(--lime-ink); }
.btn--lime:hover { background: var(--lime-hover); }
.btn--white { background: #fff; color: var(--lime-ink); }
.btn--white:hover { background: #e9e9e6; }
.btn--ink { background: var(--lime-ink); color: #fff; }
.btn--ink:hover { background: #000; }
.btn--dark { background: var(--card-2); color: var(--text); }
.btn--dark:hover { background: #3a3a3a; }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .04); }
.btn--ghost-lime { border: 1px solid var(--lime-line); color: var(--lime); }
.btn--ghost-lime:hover { background: var(--lime); color: var(--lime-ink); }
.btn--sky { background: var(--sky); color: var(--lime-ink); }

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-grid; place-items: center; flex-shrink: 0;
  border: 1px solid var(--line-2); color: var(--text);
  transition: background .18s, color .18s, border-color .18s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .28); }
.icon-btn--sm { width: 34px; height: 34px; }
.icon-btn--sm svg.lucide { width: 16px; height: 16px; }
.icon-btn--lime { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.icon-btn--lime:hover { background: var(--lime-hover); }
.icon-btn--ink { background: var(--lime-ink); color: #fff; border-color: var(--lime-ink); }
.icon-btn--danger:hover { background: var(--red-soft); color: var(--red); border-color: var(--red); }

/* ------------------------------ Chips ------------------------------ */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 11px; border-radius: var(--pill);
  font-size: 12px; font-weight: 600; white-space: nowrap;
  background: rgba(255, 255, 255, .06); color: var(--muted);
  border: 1px solid var(--line);
}
.chip svg.lucide { width: 13px; height: 13px; }
.chip--lime { background: var(--lime-soft); color: var(--lime); border-color: var(--lime-line); }
.chip--solid { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.chip--sky { background: var(--sky-soft); color: var(--sky); border-color: rgba(140, 203, 255, .3); }
.chip--amber { background: var(--amber-soft); color: var(--amber); border-color: rgba(255, 199, 107, .3); }
.chip--red { background: var(--red-soft); color: var(--red); border-color: rgba(255, 122, 107, .3); }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ------------------------------ Filtros em pílula ------------------------------ */
.pills { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pill {
  height: 40px; padding: 0 18px; border-radius: var(--pill);
  border: 1px solid var(--line-2); color: var(--text);
  font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .18s, color .18s, border-color .18s;
}
.pill:hover { border-color: rgba(255, 255, 255, .3); }
.pill.is-active { background: #fff; color: var(--lime-ink); border-color: #fff; font-weight: 700; }
.pill .count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--pill);
  background: var(--lime); color: var(--lime-ink);
  font-size: 12px; font-weight: 700; display: inline-grid; place-items: center;
}
.pill.is-active .count { background: var(--lime-ink); color: var(--lime); }

.seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 4px; border-radius: var(--pill);
  background: var(--field); border: 1px solid var(--line);
}
.seg button { height: 40px; border-radius: var(--pill); font-weight: 600; font-size: 14px; color: var(--muted); }
.seg button.is-active { background: var(--lime); color: var(--lime-ink); }

/* ------------------------------ Cards ------------------------------ */
.card {
  position: relative;
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 22px;
}
.card--surface { background: var(--surface); }
.card--lime { background: var(--lime); color: var(--lime-ink); }
.card--lime .muted, .card--lime .card-sub { color: rgba(18, 18, 18, .62); }
.card--lime .strong { color: var(--lime-ink); }

/* Recorte no canto superior direito com botão flutuante (assinatura da referência) */
.notch-wrap { position: relative; }
.card--notch {
  -webkit-mask: radial-gradient(circle at calc(100% - 23px) 23px, transparent 29px, #000 29.5px);
          mask: radial-gradient(circle at calc(100% - 23px) 23px, transparent 29px, #000 29.5px);
}
.notch-btn {
  position: absolute; top: 0; right: 0;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); color: var(--text);
  border: 1px solid var(--line-2);
  transition: background .18s, color .18s, transform .18s;
}
.notch-btn:hover { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); transform: rotate(8deg); }
.notch-btn.is-disabled { opacity: .35; pointer-events: none; }
.notch-wrap--lime .notch-btn { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }

.card-head { display: flex; align-items: center; gap: 14px; padding-right: 48px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card-title { font-size: 22px; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
.card-sub { font-size: 13px; color: var(--muted); }

.panel {
  background: var(--field); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 16px;
}

.avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  font-weight: 700; font-size: 15px; color: var(--lime-ink);
  background: var(--av, #e9e9e6);
  border: 2px solid rgba(255, 255, 255, .9);
}

/* Bolinhas de etapa (nível de interesse na referência) */
.dots { display: inline-flex; gap: 4px; padding: 4px 6px; border-radius: var(--pill); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #4a4a48; display: block; }
.dots i.on:nth-child(1) { background: #FF8A7A; }
.dots i.on:nth-child(2) { background: #FFB36B; }
.dots i.on:nth-child(3) { background: #FFE066; }
.dots i.on:nth-child(4) { background: #B9F27A; }
.dots i.on:nth-child(5) { background: var(--lime); }

.meta { display: flex; flex-wrap: wrap; gap: 18px 28px; }
.meta-item { display: flex; flex-direction: column; gap: 6px; }
.meta-label { font-size: 12px; color: var(--faint); }

/* Barra de etapas (Roteiro > Gravação > Edição > Aprovação > Concluído) */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.step { display: flex; flex-direction: column; gap: 8px; }
.step-bar { height: 8px; border-radius: var(--pill); background: var(--card-2); }
.step.done .step-bar { background: var(--lime); }
.step.current .step-bar { background: linear-gradient(90deg, var(--lime) 0 50%, var(--card-2) 50%); }
.step span { font-size: 11px; color: var(--faint); font-weight: 600; }
.step.done span, .step.current span { color: var(--text); }

/* ------------------------------ Formulários ------------------------------ */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 13px; color: var(--muted); font-weight: 500; }
.hint { font-size: 12px; color: var(--faint); }
.input, .select, .textarea {
  width: 100%;
  background-color: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0 14px; height: 46px;
  font-size: 14px; color: var(--text);
  transition: border-color .18s, box-shadow .18s;
}
.textarea { height: auto; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--lime);
  box-shadow: 0 0 0 3px var(--lime-soft);
}
.select {
  appearance: none; -webkit-appearance: none;
  padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A3A3A0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.select option { background: var(--surface); color: var(--text); }
.select--pill { height: 40px; border-radius: var(--pill); border-color: var(--line-2); background-color: transparent; font-weight: 600; width: auto; }
.select--lime { color: var(--lime); border-color: var(--lime-line); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Campos dentro de card lime */
.card--lime .field > label { color: rgba(18, 18, 18, .7); }
.card--lime .input, .card--lime .select, .card--lime .textarea {
  background-color: rgba(18, 18, 18, .08); border-color: rgba(18, 18, 18, .14); color: var(--lime-ink);
}
.card--lime .input::placeholder, .card--lime .textarea::placeholder { color: rgba(18, 18, 18, .45); }
.card--lime .input:focus, .card--lime .select:focus, .card--lime .textarea:focus { border-color: var(--lime-ink); box-shadow: 0 0 0 3px rgba(18, 18, 18, .12); }
.card--lime .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23121212' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.card--lime .select option { background: #fff; color: var(--lime-ink); }

/* ------------------------------ Layout ------------------------------ */
.page { flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 28px 24px 64px; display: flex; flex-direction: column; gap: 28px; }

.hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hero-title {
  font-size: clamp(42px, 7vw, 76px); font-weight: 500;
  letter-spacing: -.02em; line-height: .95; text-transform: uppercase;
}
.hero-left { display: flex; flex-direction: column; gap: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.stats { display: flex; gap: 32px; flex-wrap: wrap; }
.stat { display: flex; align-items: flex-start; gap: 8px; }
.stat-num { font-size: 52px; font-weight: 500; line-height: .9; letter-spacing: -.03em; }
.stat-side { display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }
.stat-tag { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: var(--pill); background: var(--lime); color: var(--lime-ink); align-self: flex-start; }
.stat-tag--amber { background: var(--amber); }
.stat-tag--sky { background: var(--sky); }
.stat-label { font-size: 13px; color: var(--muted); }

.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.section-title { font-size: 26px; font-weight: 500; letter-spacing: -.01em; display: flex; align-items: center; gap: 12px; }
.section-title small { font-size: 13px; color: var(--muted); font-weight: 500; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 16px; }
.cards-grid--sm { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

.split { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; }
.split > .sticky { position: sticky; top: 96px; }

.empty {
  border: 1px dashed var(--line-2); border-radius: var(--r-lg);
  padding: 40px 24px; text-align: center; color: var(--muted); font-size: 14px;
  grid-column: 1 / -1;
}

/* ------------------------------ Pedido (editor) ------------------------------ */
.pedido { display: flex; flex-direction: column; gap: 18px; }
.pedido-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.pedido-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }
.pedido-body .panel { display: flex; flex-direction: column; gap: 10px; }
.link-inline { display: inline-flex; align-items: center; gap: 6px; color: var(--lime); font-weight: 600; font-size: 13px; }
.link-inline:hover { text-decoration: underline; }

/* Bloco "vídeo pronto" (estilo cartão lime da referência) */
.ready {
  background: var(--lime); color: var(--lime-ink);
  border-radius: var(--r-md); padding: 18px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
}
.ready-title { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.ready a { font-weight: 600; text-decoration: underline; }
.ready-icon { width: 46px; height: 46px; border-radius: 50%; background: rgba(18, 18, 18, .1); display: grid; place-items: center; }

.roteiro-text { font-size: 14px; line-height: 1.6; color: #dcdcd8; max-height: 260px; overflow-y: auto; }

/* Conteúdo formatado do roteiro (editor e visualização) */
.rich > :first-child { margin-top: 0; }
.rich > :last-child { margin-bottom: 0; }
.rich h1 { font-size: 1.6em; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; margin: .8em 0 .35em; color: var(--text); }
.rich h2 { font-size: 1.25em; font-weight: 600; line-height: 1.25; margin: .8em 0 .3em; color: var(--lime); }
.rich p, .rich div { margin: 0 0 .55em; }
.rich ul, .rich ol { margin: 0 0 .6em; padding-left: 1.3em; }
.rich li { margin: .15em 0; }
.rich b, .rich strong { font-weight: 700; color: var(--text); }
.rich a { color: var(--lime); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }

/* Card compacto da fila */
.pedido--click { cursor: pointer; transition: background .18s; }
.pedido--click:hover { background: #2b2b2b; }
.pedido-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.pedido-resumo { font-size: 13px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* Pop-up do card (estilo Trello) */
.modal-card.modal-card--xl { max-width: 1040px; padding: 28px; gap: 24px; }
.detalhe-head { display: flex; align-items: flex-start; gap: 14px; }
.title-input {
  width: 100%; margin-top: 4px; padding: 4px 8px; margin-left: -8px;
  background: transparent; border: 1px solid transparent; border-radius: 10px;
  font-size: 28px; font-weight: 500; letter-spacing: -.01em; color: var(--text);
}
.title-input:hover { border-color: var(--line); }
.title-input:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); }
.detalhe { display: grid; grid-template-columns: 1fr 260px; gap: 28px; align-items: start; }
.detalhe-main { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.detalhe-side { display: flex; flex-direction: column; gap: 14px; background: var(--card); border-radius: var(--r-md); padding: 18px; position: sticky; top: 0; }
.detalhe-acoes { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.detalhe-titulo { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 8px; }

.link-field { display: flex; align-items: center; gap: 8px; position: relative; }
.link-field .input { padding-left: 42px; }
.link-field-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); display: flex; pointer-events: none; }
.link-field-ico svg.lucide { width: 16px; height: 16px; }

/* Editor de texto */
.rte { background: var(--field); border: 1px solid var(--line); border-radius: var(--r-sm); transition: border-color .18s, box-shadow .18s; }
.rte:focus-within { border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); }
.rte-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); }
.rte-btn { min-width: 34px; height: 34px; padding: 0 8px; border-radius: 10px; display: inline-grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.rte-btn svg.lucide { width: 16px; height: 16px; }
.rte-btn:hover { background: var(--card-2); color: var(--text); }
.rte-btn.is-on { background: var(--lime); color: var(--lime-ink); }
.rte-sep { width: 1px; height: 20px; background: var(--line-2); margin: 0 4px; }
.rte-area { min-height: 300px; max-height: 52vh; overflow-y: auto; padding: 16px 18px; font-size: 15px; line-height: 1.65; color: #e6e6e2; outline: none; }
.rte-area:empty::before { content: attr(data-placeholder); color: var(--faint); pointer-events: none; }

/* ------------------------------ Auth ------------------------------ */
.auth { flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 32px 24px 56px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.auth-hero { position: relative; min-height: 560px; display: flex; align-items: center; }
.auth-hero h1 { font-size: clamp(54px, 6.4vw, 92px); font-weight: 400; line-height: .98; letter-spacing: -.03em; position: relative; z-index: 2; }
.auth-hero h1 span { color: var(--lime); }
.auth-hero p { margin-top: 22px; color: var(--muted); font-size: 17px; max-width: 420px; position: relative; z-index: 2; }
.float { position: absolute; z-index: 1; width: 250px; box-shadow: var(--shadow); }
.float--a { top: 0; left: 4%; transform: rotate(-3deg); }
.float--b { bottom: 2%; right: 4%; width: 280px; transform: rotate(2deg); }
.float--c { top: 6%; right: 0; width: 210px; }
.auth-card { width: 100%; max-width: 440px; justify-self: center; padding: 32px; border-radius: var(--r-xl); display: flex; flex-direction: column; gap: 22px; }
.auth-card .wordmark { height: 26px; }

/* ------------------------------ Modais ------------------------------ */
.modal {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.modal-card {
  width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 26px;
  display: flex; flex-direction: column; gap: 20px;
  box-shadow: var(--shadow);
}
.modal-card--lg { max-width: 560px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-title { font-size: 22px; font-weight: 500; display: flex; align-items: center; gap: 12px; }
.modal-title .ico { width: 42px; height: 42px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center; }
.modal-title .ico--sky { background: var(--sky); }
.modal form { display: flex; flex-direction: column; gap: 14px; }

/* Teleprompter */
.teleprompter { position: fixed; inset: 0; z-index: 70; background: #050505; display: flex; flex-direction: column; padding: 24px; }
.teleprompter-head { max-width: 860px; width: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.teleprompter-body { max-width: 860px; width: 100%; margin: 0 auto; flex: 1; overflow-y: auto; padding: 36px 0; font-size: clamp(26px, 3.4vw, 40px); font-weight: 500; line-height: 1.5; }

/* ------------------------------ Toast ------------------------------ */
.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  max-width: 380px; padding: 14px 18px 14px 16px;
  background: var(--surface); border: 1px solid var(--lime-line);
  border-radius: var(--r-md); box-shadow: var(--shadow);
  font-size: 14px; line-height: 1.45;
  display: flex; gap: 12px; align-items: flex-start;
}
.toast::before { content: ''; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--lime); flex-shrink: 0; box-shadow: 0 0 0 4px var(--lime-soft); }

@keyframes pulse { 50% { opacity: .35; } }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: pulse 1.6s ease-in-out infinite; }

/* ==========================================================================
   FEED SOCIAL
   ========================================================================== */

/* Avatares com foto e status */
.avatar { position: relative; overflow: visible; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar--xl { width: 76px; height: 76px; font-size: 24px; border-width: 3px; }
.avatar--sm { width: 32px; height: 32px; font-size: 11px; border-width: 1.5px; }
.avatar--xs { width: 24px; height: 24px; font-size: 9px; border-width: 1px; }
.status-dot {
  position: absolute; right: -1px; bottom: -1px;
  width: 28%; height: 28%; min-width: 9px; min-height: 9px; max-width: 16px; max-height: 16px;
  border-radius: 50%; background: #6b6b68; border: 2px solid var(--bg);
}
.status-dot.is-online { background: var(--lime); box-shadow: 0 0 0 3px rgba(219, 252, 2, .18); }

/* Topo estilo perfil */
.perfil-topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.perfil-info { display: flex; align-items: center; gap: 16px; min-width: 0; }
.perfil-nome { font-size: clamp(26px, 3.4vw, 36px); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; margin: 2px 0 4px; }
.equipe-online { display: flex; align-items: center; gap: 10px; }
.avatar-stack { display: flex; }
.avatar-stack > span + span { margin-left: -8px; }
.avatar-stack .avatar { border-color: var(--bg); }

.hero-title--md { font-size: clamp(34px, 5vw, 54px); }
.section-count { font-size: 15px; color: var(--muted); font-weight: 600; letter-spacing: 0; margin-left: 6px; vertical-align: super; }

.banner {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px; border-radius: var(--r-md);
  background: var(--amber-soft); border: 1px solid rgba(255, 199, 107, .3); color: #f3dcb2; font-size: 14px;
}
.banner svg.lucide { color: var(--amber); margin-top: 2px; }
.banner--lime { align-items: center; flex-wrap: wrap; background: var(--lime-soft); border-color: var(--lime-line); color: var(--text); }
.banner--lime .grow { min-width: 200px; }
.capa--marca { display: grid; place-items: center; }
.capa--marca .avatar { width: 96px; height: 96px; font-size: 32px; border-width: 4px; }
/* Com capa: a imagem ocupa o card e o logo vai para o canto inferior */
.capa--marca.tem-capa::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 35%, transparent 55%, rgba(0, 0, 0, .55)); }
.capa--marca.tem-capa .avatar { position: absolute; left: 12px; bottom: 12px; z-index: 2; width: 52px; height: 52px; font-size: 18px; border-width: 3px; }
.pasta--marca { cursor: pointer; }
.capa-editar {
  position: absolute; right: 10px; bottom: 10px; z-index: 3;
  background: rgba(15, 15, 15, .7); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .18s;
}
.pasta--marca:hover .capa-editar, .capa-editar:focus-visible { opacity: 1; }
@media (hover: none) { .capa-editar { opacity: 1; } }
.capa-preview {
  aspect-ratio: 16 / 10; border-radius: var(--r-md); overflow: hidden;
  background: var(--field); border: 1px dashed var(--line-2);
  display: grid; place-items: center;
}
.capa-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.capa-preview .hint { display: inline-flex; align-items: center; gap: 6px; }
.banner code { background: rgba(0, 0, 0, .3); padding: 1px 6px; border-radius: 6px; font-size: 13px; }

/* Stories / atividades */
.stories { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
.story { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 72px; flex-shrink: 0; color: var(--text); }
.story-ring {
  position: relative; padding: 3px; border-radius: 50%;
  background: conic-gradient(var(--lime), #9be15d, var(--lime));
}
.story.is-lida .story-ring { background: var(--line-2); }
.story-ring .avatar { width: 58px; height: 58px; border: 3px solid var(--bg); font-size: 18px; }
.story-ico {
  position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); border: 2px solid var(--bg); color: var(--lime);
}
.story-ico svg.lucide { width: 12px; height: 12px; }
.story--ajuste .story-ico { color: var(--red); }
.story--aprovacao .story-ico { background: var(--lime); color: var(--lime-ink); }
.story-nome { font-size: 12px; font-weight: 600; max-width: 72px; }
.story-quando { font-size: 11px; color: var(--faint); }

/* Urgentes */
.chip--hot { background: rgba(255, 106, 61, .16); color: #FF8A5C; border-color: rgba(255, 138, 92, .4); }
.urgentes { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.urgente-card {
  flex: 0 0 280px; text-align: left; color: var(--text);
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px; border-radius: var(--r-md);
  background: var(--card); border: 1px solid var(--line);
  transition: transform .18s, border-color .18s;
}
.urgente-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.urgente-card.nivel-3, .urgente-card.nivel-4 { border-color: rgba(255, 138, 92, .45); background: linear-gradient(160deg, rgba(255, 106, 61, .12), var(--card) 60%); }
.urgente-titulo { font-size: 18px; font-weight: 500; line-height: 1.25; }
.pedido--hot { box-shadow: inset 0 0 0 1px rgba(255, 138, 92, .35); }

/* Acesso rápido */
.acessos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.acesso {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .18s, background .18s;
}
.acesso .min0 { display: flex; flex-direction: column; }
.acesso:hover:not(.is-vazio) { border-color: var(--lime-line); background: #222; }
.acesso.is-vazio { opacity: .5; }
.acesso-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--lime-soft); color: var(--lime); flex-shrink: 0; }
.acesso-seta { margin-left: auto; color: var(--faint); }

/* Contatos da empresa */
.contatos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.contatos--lista { grid-template-columns: 1fr; max-height: 46vh; overflow-y: auto; }
.contato {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); text-align: left; color: var(--text);
}
.contato .avatar { width: 40px; height: 40px; font-size: 13px; }
.contato-acoes { display: flex; gap: 6px; flex-shrink: 0; }
.contato--vazio { grid-column: 1 / -1; border-style: dashed; color: var(--muted); font-size: 14px; }
.contato--vazio:hover { border-color: var(--lime-line); }
.icon-btn--whats { background: #25D366; border-color: #25D366; color: #0b2e17; }
.icon-btn--whats:hover { background: #3be07a; border-color: #3be07a; }
#form-contato { display: flex; flex-direction: column; gap: 12px; }
#form-contato.hidden { display: none; }

/* Acessos, convites e importação */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.convite { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.convite-link { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); background: var(--field); padding: 4px 8px; border-radius: 8px; max-width: 100%; }
.imp-exemplo { font-size: 12px; color: var(--lime); background: var(--field); padding: 8px 12px; border-radius: 10px; }
.imp-tabela { max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-sm); }
.tabela { width: 100%; border-collapse: collapse; font-size: 13px; }
.tabela th, .tabela td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tabela th { position: sticky; top: 0; background: var(--card); color: var(--muted); font-weight: 600; font-size: 12px; }
.tabela code { color: var(--lime); font-size: 13px; }
.tabela tr.is-erro td { color: var(--red); }
.auth--convite { grid-template-columns: 1fr; }
#seletor-empresas .meta-label { align-self: center; flex-shrink: 0; }

/* Agenda de captações */
.captacoes { display: flex; flex-direction: column; gap: 8px; }
.captacao { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.captacao--pendente { border-color: rgba(255, 199, 107, .35); }
.captacao--confirmada { border-color: var(--lime-line); }
.captacao-data { width: 54px; flex-shrink: 0; text-align: center; border-radius: 14px; background: var(--card-2); padding: 6px 0; display: flex; flex-direction: column; }
.captacao-data span { font-size: 22px; font-weight: 700; line-height: 1.1; }
.captacao-data small { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.captacao-acoes { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex-shrink: 0; }
.agenda-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
.cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; text-transform: capitalize; }
.cal-semana, .cal-grade { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-info { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.cal-semana span { font-size: 11px; color: var(--faint); text-align: center; padding-bottom: 4px; }
.cal-dia { min-height: 54px; border-radius: 10px; background: var(--field); border: 1px solid transparent; color: var(--text); display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 6px; text-align: left; }
.cal-dia.is-vazio { background: none; }
.cal-dia:disabled { cursor: default; }
.cal-dia.is-off, .cal-dia.is-passado { opacity: .35; }
.cal-dia.is-livre { border-color: var(--lime-line); }
.cal-dia.is-parcial { border-color: rgba(255, 199, 107, .45); }
.cal-dia.is-bloq { background: repeating-linear-gradient(45deg, var(--field), var(--field) 6px, #222 6px, #222 12px); }
.cal-dia.is-sel { border-color: var(--lime); box-shadow: 0 0 0 2px var(--lime-soft); }
.cal-num { font-size: 13px; font-weight: 700; }
.cal-info { font-size: 10px; color: var(--muted); line-height: 1.2; }
.cal-pontos { display: flex; gap: 3px; }
.cal-ponto { width: 8px; height: 8px; border-radius: 50%; display: block; }
.cal-ponto.is-ok { background: var(--lime); }
.cal-ponto.is-pend { background: var(--amber); }
.periodos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.periodo { background: var(--field); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.periodo.is-off { opacity: .45; }
.periodos--mini .periodo { gap: 2px; }
#form-agendar { display: flex; flex-direction: column; gap: 14px; }

/* Agência: projetos em andamento */
.seg--vis { display: inline-grid; grid-template-columns: repeat(3, auto); padding: 3px; }
.seg--vis button { height: 34px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.seg--vis button svg.lucide { width: 15px; height: 15px; }
.lista-projetos { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.lp-head, .lp-linha { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) 100px 140px minmax(0, 1.7fr); gap: 14px; align-items: center; padding: 12px 16px; }
.lista-projetos--fila .lp-head, .lista-projetos--fila .lp-linha { grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1fr) 100px 150px minmax(0, 1.5fr); }
#cli-ordem { align-items: center; }
.lp-linha > span { min-width: 0; }
.lp-linha .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.lp-head { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line); }
.lp-linha { text-align: left; color: var(--text); border-bottom: 1px solid var(--line); transition: background .15s; }
.lp-linha:last-child { border-bottom: 0; }
.lp-linha:hover { background: var(--card); }
.lp-titulo { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lp-cliente { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--muted); }

/* Central de notificações */
.notif-btn { position: relative; }
.notif-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: var(--pill); background: var(--red); color: #fff; border: 2px solid var(--bg);
  font-size: 11px; font-weight: 800; display: grid; place-items: center; line-height: 1;
}
@keyframes notifPulse { 0% { transform: scale(1); } 30% { transform: scale(1.18) rotate(-12deg); } 60% { transform: scale(1.05) rotate(10deg); } 100% { transform: scale(1); } }
.notif-btn.is-pulse { animation: notifPulse .7s ease; }
.notif-fundo { position: fixed; inset: 0; z-index: 64; background: rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity .25s; }
.notif-fundo.is-aberto { opacity: 1; pointer-events: auto; }
.notif-painel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 65;
  width: min(420px, 100vw); background: var(--surface); border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px -20px rgba(0, 0, 0, .8);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.notif-painel.is-aberto { transform: translateX(0); }
.notif-head { padding: 18px 18px 12px; display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid var(--line); }
.seg--mini { display: inline-grid; grid-template-columns: auto auto; padding: 3px; }
.seg--mini button { height: 32px; padding: 0 14px; font-size: 13px; }
.notif-lista { flex: 1; overflow-y: auto; padding: 8px 10px 16px; }
.notif-grupo { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 12px 8px 6px; }
.notif {
  width: 100%; display: flex; gap: 12px; align-items: flex-start; text-align: left; color: var(--text);
  padding: 12px 10px; border-radius: var(--r-sm); transition: background .15s;
}
.notif:hover { background: var(--card); }
.notif.is-nova { background: rgba(219, 252, 2, .05); }
.notif.is-nova:hover { background: rgba(219, 252, 2, .09); }
.notif-ico { position: relative; width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--card-2); }
.notif-ico .avatar { width: 38px; height: 38px; }
.notif-ico-mini { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--surface); }
.notif-ico-mini svg.lucide { width: 11px; height: 11px; }
.notif-ico--lime { color: var(--lime); }
.notif-ico--lime.notif-ico-mini, .notif-ico--lime:not(:has(.avatar)) { background: var(--lime-soft); }
.notif-ico--amber { color: var(--amber); }
.notif-ico--amber.notif-ico-mini, .notif-ico--amber:not(:has(.avatar)) { background: var(--amber-soft); }
.notif-ico--sky { color: var(--sky); }
.notif-ico--sky.notif-ico-mini, .notif-ico--sky:not(:has(.avatar)) { background: var(--sky-soft); }
.notif-ico--red { color: var(--red); }
.notif-ico--red.notif-ico-mini, .notif-ico--red:not(:has(.avatar)) { background: var(--red-soft); }
.notif-ico-mini { background: var(--card-2); }
.notif-titulo { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.notif-texto { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.notif-quando { display: block; font-size: 11px; color: var(--faint); margin-top: 4px; }
.notif-ponto { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); flex-shrink: 0; margin-top: 6px; }
.notif-vazio { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 60px 20px; }
.notif-rodape { padding: 12px 16px; border-top: 1px solid var(--line); }

/* Seletor de marcas (agência) */
.marcas { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.marca {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  height: 46px; padding: 0 14px 0 6px; border-radius: var(--pill);
  border: 1px solid var(--line-2); color: var(--text); font-weight: 600; font-size: 14px;
}
.marca.is-active { background: #fff; color: var(--lime-ink); border-color: #fff; }
.marca .count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--pill); background: var(--lime); color: var(--lime-ink); font-size: 12px; display: inline-grid; place-items: center; }
.marca.is-active .count { background: var(--lime-ink); color: var(--lime); }
.marca-todas { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); }
.marca.is-active .marca-todas { background: var(--lime); }

/* Pastas (galeria de projetos) */
.pastas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.pasta {
  position: relative; text-align: left; color: var(--text);
  display: flex; flex-direction: column;
  background: var(--card); border-radius: 6px var(--r-lg) var(--r-lg) var(--r-lg);
  margin-top: 14px; transition: transform .2s, box-shadow .2s;
}
.pasta::before {
  content: ''; position: absolute; left: 0; top: -14px; width: 42%; height: 18px;
  background: var(--card); border-radius: 14px 18px 0 0;
}
.pasta:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .8); }
.pasta-capa { position: relative; margin: 8px 8px 0; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 10; }
.pasta-tags { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.pasta-tags .chip { backdrop-filter: blur(8px); background-color: rgba(15, 15, 15, .7); }
.pasta-tags .chip--solid { background: var(--lime); }
.pasta-status { position: absolute; left: 10px; bottom: 10px; }
.pasta-status .chip { backdrop-filter: blur(8px); background-color: rgba(15, 15, 15, .7); }
.pasta-status .chip--solid { background-color: var(--lime); }
.pasta-info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.pasta-titulo { font-size: 18px; font-weight: 500; line-height: 1.25; }

.capa {
  position: relative; width: 100%; height: 100%;
  background: radial-gradient(120% 90% at 0% 0%, var(--capa) 0%, transparent 55%), linear-gradient(135deg, #2c2c2c, #1a1a1a);
  display: grid; place-items: center; overflow: hidden;
}
.capa img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.capa-letra { font-size: 46px; font-weight: 600; letter-spacing: -.03em; color: rgba(255, 255, 255, .85); mix-blend-mode: overlay; }
.capa-mini { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; flex-shrink: 0; }
.capa-mini .capa-letra { font-size: 22px; }

/* Botão flutuante */
.fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 50;
  height: 58px; padding: 0 24px 0 20px; border-radius: var(--pill);
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--lime); color: var(--lime-ink); font-weight: 700; font-size: 15px;
  box-shadow: 0 18px 40px -12px rgba(219, 252, 2, .45), 0 8px 20px rgba(0, 0, 0, .5);
  transition: transform .18s, background .18s;
}
.fab:hover { background: var(--lime-hover); transform: translateY(-2px); }
.fab svg.lucide { width: 22px; height: 22px; }
body:has(#tela-cliente:not(.hidden)) .page { padding-bottom: 110px; }

/* Player e comentários */
.player { position: relative; border-radius: var(--r-md); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player--vazio { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; color: var(--muted); font-size: 14px; background: var(--field); border: 1px dashed var(--line-2); }
.player--vazio svg.lucide { width: 30px; height: 30px; color: var(--faint); }
.config-corpo { flex: 1; overflow-y: auto; padding: 8px 12px 24px; display: flex; flex-direction: column; gap: 6px; }
.config-secao { display: flex; flex-direction: column; gap: 2px; padding: 10px 0 8px; border-bottom: 1px solid var(--line); }
.config-secao:last-child { border-bottom: 0; }
.config-rotulo { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 4px 8px 6px; }
.config-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 8px; border-radius: 12px; text-align: left; color: var(--text); transition: background .15s; }
.config-item:hover { background: var(--card); }
.config-item .strong { display: block; font-size: 14px; }
.config-item .card-sub { display: block; }
.config-item--estatico:hover { background: transparent; }
.config-item.is-vazio { opacity: .55; cursor: default; }
.config-item.is-vazio:hover { background: transparent; }
.config-item--sair, .config-item--sair .config-ico { color: var(--red); }
.config-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--field); color: var(--muted); flex-shrink: 0; }
.config-ico svg.lucide { width: 17px; height: 17px; }
.config-seta { width: 16px; height: 16px; color: var(--faint); flex-shrink: 0; }
.config-seg { margin: 4px 8px 4px 54px; }
.config-push { padding: 4px 8px 8px; }
.config-toggle { width: 40px; height: 22px; border-radius: 99px; background: var(--line-2); position: relative; flex-shrink: 0; transition: background .2s; }
.config-toggle span { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.config-toggle.is-on { background: var(--lime); }
.config-toggle.is-on span { transform: translateX(18px); background: var(--lime-ink); }
.push-dica { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.45; }
.push-dica > svg.lucide { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--faint); }
.push-dica span svg.lucide { width: 14px; height: 14px; vertical-align: -2px; }
.push-dica--ok > svg.lucide { color: var(--lime); }
.player-bloco { display: flex; flex-direction: column; gap: 10px; }
.player-acoes { display: flex; justify-content: flex-end; gap: 8px; }
.girando { animation: girar 1s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.comentar { display: flex; gap: 8px; align-items: center; }
.comentar-tempo { display: flex; align-items: center; gap: 4px; width: 118px; flex-shrink: 0; }
.comentar-tempo .input { text-align: center; padding: 0 8px; font-variant-numeric: tabular-nums; }
.comentarios { display: flex; flex-direction: column; gap: 6px; }
.comentario { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: var(--r-sm); background: var(--field); border: 1px solid var(--line); }
.comentario.is-resolvido { opacity: .5; }
.comentario--ajuste { border-color: rgba(255, 122, 107, .3); }
.comentario--aprovacao { border-color: var(--lime-line); }
.comentario-texto { font-size: 14px; margin-top: 4px; color: #dcdcd8; white-space: pre-line; }
.tempo-chip {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px;
  border-radius: var(--pill); background: var(--lime); color: var(--lime-ink);
  font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.tempo-chip svg.lucide { width: 11px; height: 11px; }
.side-info { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 4px 0; }
.side-info > div { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }

/* Versões */
.versoes { display: flex; flex-direction: column; gap: 6px; }
.versao { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--field); border: 1px solid var(--line); }
.versao:hover { border-color: var(--line-2); }
.versao.is-atual { border-color: var(--lime-line); }
.versao-nome { font-weight: 700; min-width: 34px; }
.versao.is-atual .versao-nome { color: var(--lime); }
.versao svg.lucide { margin-left: auto; color: var(--faint); }
.versao--click { cursor: pointer; }
.versao-abrir { margin-left: auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--pill); }
.versao-abrir:hover { background: var(--card); }
.versao-abrir svg.lucide { margin-left: 0; }

/* Kanban */
.seg--icons { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; }
.seg--icons button { height: 34px; width: 40px; display: grid; place-items: center; }
.pill--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 10px; align-items: start; }
.kanban-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px; display: flex; flex-direction: column; gap: 10px; min-height: 160px; transition: border-color .18s, background .18s; }
.kanban-col.is-over { border-color: var(--lime); background: #1f2210; }
.kanban-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 0; }
.kanban-head .count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--pill); background: var(--card-2); font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.kanban-lista { display: flex; flex-direction: column; gap: 8px; }
.kanban-card { background: var(--card); border-radius: var(--r-sm); padding: 12px; display: flex; flex-direction: column; gap: 8px; cursor: grab; border: 1px solid transparent; }
.kanban-card:hover { border-color: var(--line-2); }
.kanban-card:active { cursor: grabbing; }
.kanban-vazio { border: 1px dashed var(--line-2); border-radius: var(--r-sm); padding: 18px; text-align: center; font-size: 12px; color: var(--faint); }

/* ------------------------------ Responsivo ------------------------------ */
@media (max-width: 1080px) {
  .split { grid-template-columns: 1fr; }
  .split > .sticky { position: static; }
  .auth { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
}
@media (max-width: 760px) {
  .topbar-inner { padding: 12px 16px; }
  .page { padding: 20px 16px 48px; gap: 22px; }
  .auth { padding: 20px 16px 40px; }
  .auth-card { padding: 24px; }
  .user-pill .user-text, #badge-cargo { display: none !important; }
  .user-pill { padding: 3px; }
  #user-header-info { flex-wrap: nowrap; gap: 6px; }
  .top-actions { gap: 4px; }
  .top-actions .icon-btn { width: 36px; height: 36px; }
  .wordmark { height: 18px; }
  .pedido-body { grid-template-columns: 1fr; }
  .detalhe { grid-template-columns: 1fr; }
  .detalhe-side { position: static; }
  .modal-card.modal-card--xl { padding: 20px; }
  .title-input { font-size: 22px; }
  .pedido-foot .pedido-resumo { display: none; }
  .pedido-foot { justify-content: flex-end; }
  .avatar--xl { width: 60px; height: 60px; font-size: 20px; }
  .acessos { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .lp-head { display: none; }
  .lp-linha { grid-template-columns: 1fr auto; gap: 6px 10px; }
  .lp-linha > span:nth-child(3), .lp-linha > span:nth-child(5) { display: none; }
  .lista-projetos--fila .lp-linha { grid-template-columns: 1fr auto; }
  .lista-projetos--fila .lp-linha > span:nth-child(n+2) { display: none; }
  .lista-projetos--fila .lp-linha > span:nth-child(5) { display: block; }
  .seg--vis button span { display: none; }
  .agenda-grid, .periodos { grid-template-columns: 1fr; }
  .captacao { flex-wrap: wrap; }
  .captacao-acoes { flex-direction: row; width: 100%; justify-content: flex-end; }
  .acesso { padding: 10px; gap: 10px; }
  .acesso .card-sub, .acesso-seta { display: none; }
  .fab { right: 16px; bottom: 16px; height: 54px; }
  .urgente-card { flex-basis: 250px; }
  .comentar { flex-wrap: wrap; }
  .comentar-tempo { width: 100%; }
  .comentar-tempo .input { width: 90px; flex: none; }
  .side-info { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stat-num { font-size: 40px; }
  .stats { gap: 22px; }
  .card { padding: 18px; }
  .card-title { font-size: 19px; }
  .toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  .steps span { font-size: 10px; }
}
