/* Postychat — protótipo da direção "Nautilus" (Bela, 19/11/2026).
   Referência do Roger (19/11/2026 10:26): design/referencias/nautilus_arco_iris.png.
   O app é o painel de comando do Nautilus: casco de aço azul-noite, latão escovado SÓ nas molduras e nas placas das abas,
   escotilha para o "hoje" e o avatar, o farol (ciano-branco) como a única luz de ação e seleção, lanternas âmbar no que
   espera o Roger, status com as cores do recife, raios de sol abrindo em arco-íris e cáusticas arco-íris atrás do conteúdo.
   Textura nunca atrás de texto. Grade de dados: 0 raio e 0 sombra (CLAUDIA).
   Sem flag de prioridade e sem estilo inline (a CSP do app é style-src 'self'). */

@font-face { font-family: "Inter"; src: url("assets/fontes/inter-var-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("assets/fontes/roboto.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("assets/fontes/fraunces-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

@property --giro { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

:root {
  color-scheme: dark;
  /* o mar (da referência: #00466d no alto, #027eaf na luz, #153957 no casco) */
  --mar-raso: #0a4a70;
  --mar-meio: #06304d;
  --mar-fundo: #041b2e;
  /* o casco: superfícies */
  --painel: #0b2236;
  --painel-2: #10293f;
  --painel-3: #163450;
  --linha: #1f3d57;
  --linha-forte: #2b506e;
  /* texto */
  --texto: #eaf3f8;      /* 14,4:1 no painel */
  --texto-2: #a7bfcf;    /* 8,5:1 */
  --texto-3: #86a2b5;    /* 6,0:1 (4,8:1 no painel-3) */
  /* o farol: a única luz de ação, seleção e foco */
  --farol: #6fdcff;      /* 10,3:1 no painel; tinta sobre ele 12,0:1 */
  --farol-tinta: #03121e;
  --farol-fraco: rgba(111, 220, 255, 0.14);
  /* as lanternas: só o que espera o Roger */
  --lanterna: #ffb84a;   /* 9,4:1 */
  /* o recife: status */
  --agua-viva: #ff8fd0;  /* agendado, 7,8:1 */
  --alga: #9be15d;       /* publicado, 10,3:1 */
  --coral: #ff6a55;      /* falhou, 5,7:1 */
  --cardume: #aebdc9;    /* cancelado, 8,4:1 */
  /* latão escovado: só moldura e placa */
  --latao: #b8903f;
  --latao-claro: #e2c172;
  --latao-escovado: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px),
                    linear-gradient(180deg, #ecd08a 0%, #d4ad5a 40%, #b8903f 65%, #dcb96a 100%);  /* pior ponto #b8903f: tinta 5,7:1 */
  --latao-moldura: linear-gradient(135deg, #e9cd84 0%, #8a6524 22%, #d4b061 46%, #6e4d17 70%, #e2c172 100%);
  /* madrepérola: o vidro da escotilha */
  --nacar: conic-gradient(from var(--giro), #e9f3f5, #f3d7ea, #d5e2ff, #cdf6ec, #fbecd2, #e9f3f5);
  /* movimento */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --t-hover: 120ms;
  --t-botao: 160ms;
  --t-folha: 380ms;
  --r-painel: 12px;
  --r-ctrl: 8px;
  --topo: 58px;
  --caustica: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='160'%3E%3Cfilter id='c' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.016 0.04' numOctaves='2' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  1 0 0 0 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='0 0 0 0 0 0 1 0 0 0 0 0 0'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");
  --espectro: linear-gradient(100deg, #ff5f6d, #ffb84a, #ffe66d, #7dff9a, #59d6ff, #8b7bff, #ff7ad9, #ff5f6d);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; color: var(--texto);
  background: linear-gradient(180deg, var(--mar-raso) 0, var(--mar-meio) 420px, var(--mar-fundo) 1100px, #03131f 100%) var(--mar-fundo);
  font: 400 13px/1.45 "Inter", system-ui, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 16px; height: 16px; flex: none; }
.ic-14 { width: 14px; height: 14px; flex: none; }
.ic-12 { width: 12px; height: 12px; flex: none; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--farol); outline-offset: 2px; }

/* ================= a água: raios de sol em arco-íris e cáusticas arco-íris, atrás de tudo ================= */
.agua { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.raios { position: absolute; top: -80px; right: -6%; width: 78%; height: 115%;
  -webkit-mask-image: linear-gradient(180deg, #000 0, rgba(0,0,0,.6) 40%, transparent 78%);
  mask-image: linear-gradient(180deg, #000 0, rgba(0,0,0,.6) 40%, transparent 78%); }
.raios i {
  position: absolute; top: 0; height: 100%; transform-origin: 50% 0; mix-blend-mode: screen;
  background: linear-gradient(90deg, transparent, rgba(255,95,109,.10) 18%, rgba(255,230,109,.12) 34%, rgba(125,255,154,.12) 50%, rgba(89,214,255,.14) 66%, rgba(139,123,255,.10) 82%, transparent);
  animation: raio 13s ease-in-out infinite alternate;
}
.raios i:nth-child(1) { left: 8%;  width: 70px;  transform: rotate(24deg); animation-duration: 15s; }
.raios i:nth-child(2) { left: 26%; width: 120px; transform: rotate(19deg); animation-delay: -4s; }
.raios i:nth-child(3) { left: 44%; width: 54px;  transform: rotate(15deg); animation-duration: 17s; animation-delay: -9s; }
.raios i:nth-child(4) { left: 58%; width: 150px; transform: rotate(11deg); animation-delay: -2s; }
.raios i:nth-child(5) { left: 76%; width: 64px;  transform: rotate(7deg);  animation-duration: 19s; animation-delay: -12s; }
.raios i:nth-child(6) { left: 90%; width: 96px;  transform: rotate(3deg);  animation-delay: -6s; }
@keyframes raio { from { opacity: 0.35; } to { opacity: 1; } }
.causticas {
  position: absolute; left: 0; bottom: -10%; width: calc(100% + 720px); height: 75%;
  background: var(--espectro); background-size: 900px 100%; opacity: 0.16; mix-blend-mode: screen;
  -webkit-mask-image: var(--caustica); mask-image: var(--caustica);
  -webkit-mask-size: 720px 240px; mask-size: 720px 240px;
  animation: correnteza 110s linear infinite;
}
@keyframes correnteza { to { transform: translate3d(-720px, 0, 0); } }

/* ================= o casco: o topo é a ponte de comando ================= */
.topo {
  position: sticky; top: 0; z-index: 30; height: var(--topo);
  display: flex; align-items: center; gap: 22px; padding: 0 16px;
  background: linear-gradient(180deg, #0e2a42, #0a1f33);
  box-shadow: 0 1px 0 rgba(0,0,0,.5), 0 8px 24px rgba(2, 10, 20, 0.45);
}
/* a faixa de latão sob a ponte */
.topo::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--latao-moldura); pointer-events: none; }
.marca { display: flex; align-items: center; gap: 10px; white-space: nowrap; font: 600 19px/1 "Fraunces", Georgia, serif; letter-spacing: 0.01em; color: var(--latao-claro); }
/* escotilha do símbolo: anel de latão, vidro de madrepérola, rosa dos ventos */
.simbolo {
  position: relative; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #10263a;
  background: var(--nacar); animation: gira 14s linear infinite;
  box-shadow: 0 0 0 3px #b8903f, 0 0 0 4px #5a3f12, inset 0 0 6px rgba(0,0,0,.35);
}
.simbolo .rosa { width: 22px; height: 22px; animation: agulha 7s ease-in-out infinite; }
@keyframes gira { to { --giro: 360deg; } }
@keyframes agulha { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }

/* as abas são placas de latão: a ativa é a placa polida, com dois rebites */
.abas { position: relative; display: flex; gap: 6px; height: 100%; align-items: center; }
.aba {
  position: relative; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px;
  border-radius: 6px; color: var(--texto-2); font-weight: 600; font-size: 12.5px; letter-spacing: 0.02em; white-space: nowrap;
  border: 1px solid rgba(184, 144, 63, 0.28); overflow: hidden;
  transition: color var(--t-hover) var(--ease-out), background-color var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out), transform var(--t-botao) var(--ease-out);
}
.aba:active { transform: scale(0.97); }
.aba[aria-current="page"] {
  color: #2a1a04; background: var(--latao-escovado); border-color: #6e4d17;
  box-shadow: inset 0 1px 0 rgba(255, 244, 205, 0.7), inset 0 -1px 0 rgba(70, 45, 8, 0.5), 0 2px 6px rgba(0, 0, 0, 0.35);
}
.aba[aria-current="page"]::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(circle at 5px 50%, #fff3cf 0 1px, #6e4d17 1.6px, transparent 2.4px),
    radial-gradient(circle at calc(100% - 5px) 50%, #fff3cf 0 1px, #6e4d17 1.6px, transparent 2.4px);
}
.indicador { display: none; }
.topo-dir { margin-left: auto; display: flex; align-items: center; gap: 8px; }
/* avatar: escotilha */
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: var(--texto);
  background: radial-gradient(circle at 35% 30%, #2b5f86, #0d2a42 70%);
  box-shadow: 0 0 0 2.5px #b8903f, 0 0 0 3.5px #5a3f12, inset 0 0 8px rgba(0, 0, 0, 0.5);
}
.btn-icone {
  position: relative; width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: var(--r-ctrl);
  border: 0; background: transparent; color: var(--texto-2); overflow: hidden;
  transition: background-color var(--t-hover) var(--ease-out), color var(--t-hover) var(--ease-out), transform var(--t-botao) var(--ease-out);
}
.btn-icone:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .aba:not([aria-current="page"]):hover { color: var(--latao-claro); border-color: rgba(226, 193, 114, 0.55); background: rgba(184, 144, 63, 0.08); }
  .btn-icone:hover { background: rgba(255, 255, 255, 0.07); color: var(--texto); }
}

/* ================= área de trabalho ================= */
.tela { position: relative; display: grid; gap: 14px; padding: 16px 16px 30px; max-width: 1600px; margin: 0 auto; }
.tela-fila { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.coluna { display: grid; gap: 14px; min-width: 0; }
/* painel: casco de aço com moldura de latão (borda de 2 px) e 4 rebites nos cantos */
.painel {
  position: relative; min-width: 0; border-radius: var(--r-painel); border: 2px solid transparent;
  background: linear-gradient(180deg, #0d263c, var(--painel)) padding-box, var(--latao-moldura) border-box;
  box-shadow: 0 18px 40px rgba(1, 8, 16, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.painel::before {
  content: ""; position: absolute; inset: 5px; pointer-events: none; z-index: 1; border-radius: 8px;
  background:
    radial-gradient(circle at 3px 3px, #fff0c2 0 0.8px, #b8903f 1.4px, #4a330e 2.4px, transparent 3px),
    radial-gradient(circle at calc(100% - 3px) 3px, #fff0c2 0 0.8px, #b8903f 1.4px, #4a330e 2.4px, transparent 3px),
    radial-gradient(circle at 3px calc(100% - 3px), #fff0c2 0 0.8px, #b8903f 1.4px, #4a330e 2.4px, transparent 3px),
    radial-gradient(circle at calc(100% - 3px) calc(100% - 3px), #fff0c2 0 0.8px, #b8903f 1.4px, #4a330e 2.4px, transparent 3px);
}
.painel-cab { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 10px 16px 10px 20px; border-bottom: 1px solid var(--linha); }
.painel-cab h1, .painel-cab h2 { margin: 0; white-space: nowrap; font: 600 17px/1.1 "Fraunces", Georgia, serif; letter-spacing: 0.005em; color: var(--texto); }
.painel-cab .cont { color: var(--texto-3); font-weight: 600; font-size: 12px; }
.empurra { margin-left: auto; }

.entra { animation: emerge 640ms var(--ease-out) both; }
.entra:nth-child(2) { animation-delay: 90ms; }
.entra:nth-child(3) { animation-delay: 180ms; }
@keyframes emerge { from { opacity: 0; transform: translate3d(0, 16px, 0); } }

/* ================= calendário: tábua de marés na carta náutica ================= */
.mes { font: 600 19px/1.1 "Fraunces", Georgia, serif; white-space: nowrap; }
.mare { display: block; height: 10px; margin: 0 12px; overflow: hidden; color: var(--farol); opacity: 0.45; }
.mare svg { width: 1800px; height: 10px; display: block; }
.mare path { animation: mare 14s linear infinite; }
@keyframes mare { to { transform: translate3d(-120px, 0, 0); } }
.semana { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 0 12px; }
.semana span { padding: 8px 6px 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--texto-3); }
.cal {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 0 12px;
  border-top: 1px solid var(--linha); border-left: 1px solid var(--linha);
  background-color: rgba(4, 20, 34, 0.5);
  background-image: linear-gradient(rgba(111, 220, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(111, 220, 255, 0.045) 1px, transparent 1px);
  background-size: 13px 13px;
}
.dia {
  min-height: 104px; padding: 6px; border-right: 1px solid var(--linha); border-bottom: 1px solid var(--linha);
  display: flex; flex-direction: column; gap: 4px; min-width: 0; transition: background-color var(--t-hover) var(--ease-out);
}
.dia-num { font-size: 12px; font-weight: 600; color: var(--texto-2); font-variant-numeric: tabular-nums; align-self: flex-start; padding: 1px 2px; }
.dia.fora { background: rgba(2, 12, 22, 0.55); }
.dia.fora .dia-num { color: #6f8ea3; }   /* 4,7:1 */
/* hoje: escotilha de latão com vidro de madrepérola, e o feixe do farol na célula */
.dia.hoje { background: linear-gradient(180deg, rgba(111, 220, 255, 0.13), rgba(111, 220, 255, 0.02) 70%); }
.dia.hoje .dia-num {
  width: 26px; height: 26px; padding: 0; border-radius: 50%; display: grid; place-items: center;
  color: #0b2236; font-weight: 700; background: var(--nacar);
  box-shadow: 0 0 0 2px #b8903f, 0 0 0 3px #5a3f12, 0 0 16px rgba(111, 220, 255, 0.45);
  animation: gira 14s linear infinite, boia 3.2s ease-in-out infinite;
}
@keyframes boia { 50% { transform: translate3d(0, -2px, 0); } }
.post {
  position: relative; display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 6px; min-width: 0;
  background: var(--painel-2); border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  font-size: 11.5px; font-weight: 600; color: var(--texto); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden;
  transition: background-color var(--t-hover) var(--ease-out), transform var(--t-botao) var(--ease-out);
}
.post:active { transform: scale(0.97); }
/* bandeira de sinalização (rabo de andorinha) na cor do recife */
.post::before, .destino::after, .legenda i { clip-path: polygon(0 0, 100% 0, 62% 50%, 100% 100%, 0 100%); }
.post::before { content: ""; width: 9px; height: 8px; background: var(--sinal, var(--agua-viva)); flex: none; }
.post .redes { display: flex; gap: 3px; margin-left: auto; }
.post .redes svg { width: 13px; height: 13px; }
.st-agendado { --sinal: var(--agua-viva); }
.st-aguardando { --sinal: var(--lanterna); animation: lanterna 2.6s ease-in-out infinite; }
.st-publicado { --sinal: var(--alga); }
.st-falhou { --sinal: var(--coral); }
.st-cancelado { --sinal: var(--cardume); color: var(--texto-3); }
.st-cancelado .hora { text-decoration: line-through; }
@keyframes lanterna { 50% { box-shadow: inset 0 0 0 1px rgba(255, 184, 74, 0.7), 0 0 14px rgba(255, 184, 74, 0.35); } }
.legenda { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 20px 14px; font-size: 12px; color: var(--texto-2); }
.legenda span { display: inline-flex; align-items: center; gap: 6px; }
.legenda i { width: 10px; height: 9px; background: var(--agua-viva); }
.legenda .l-aguardando { background: var(--lanterna); }
.legenda .l-publicado { background: var(--alga); }
.legenda .l-falhou { background: var(--coral); }
.legenda .l-cancelado { background: var(--cardume); }
@media (hover: hover) and (pointer: fine) {
  .dia:not(.fora):not(.hoje):hover { background: rgba(111, 220, 255, 0.04); }
  .post:hover { background: var(--painel-3); }
}

/* ================= compositor (Novo post) ================= */
.compositor { position: sticky; top: calc(var(--topo) + 16px); }
.form { display: grid; gap: 12px; padding: 14px 18px 18px; }
.campo { display: grid; gap: 6px; min-width: 0; }
.campo > span { font-size: 12px; font-weight: 600; color: var(--texto-2); }
.entrada {
  width: 100%; min-width: 0; height: 36px; padding: 0 10px; border-radius: var(--r-ctrl);
  background: #081b2c; border: 1px solid var(--linha-forte); color: var(--texto); font-size: 13px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: border-color var(--t-hover) var(--ease-out), box-shadow var(--t-hover) var(--ease-out);
}
textarea.entrada { height: auto; min-height: 76px; padding: 8px 10px; resize: vertical; line-height: 1.45; }
.entrada::placeholder { color: var(--texto-3); }
.entrada:focus { outline: none; border-color: var(--farol); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35), 0 0 0 3px var(--farol-fraco); }
.com-icone { position: relative; }
.com-icone .ic { position: absolute; left: 10px; top: 10px; color: var(--texto-3); pointer-events: none; }
.com-icone .entrada { padding-left: 32px; }
.dupla { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.contas { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.contas legend { padding: 0; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--texto-2); }
.conta { position: relative; min-width: 0; }
.conta input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.conta label {
  position: relative; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; border-radius: var(--r-ctrl);
  background: var(--painel-2); border: 1px solid var(--linha); font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden;
  transition: border-color var(--t-hover) var(--ease-out), background-color var(--t-hover) var(--ease-out), transform var(--t-botao) var(--ease-out);
}
.conta label > span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.conta .marcado { margin-left: auto; color: var(--farol); opacity: 0; transform: scale(0.8); transition: opacity var(--t-botao) var(--ease-out), transform var(--t-botao) var(--ease-out); }
/* conta escolhida: o feixe do farol entra pela esquerda */
.conta input:checked + label {
  border-color: rgba(111, 220, 255, 0.7);
  background: linear-gradient(90deg, rgba(111, 220, 255, 0.22), rgba(111, 220, 255, 0.04) 75%), var(--painel-2);
  box-shadow: 0 0 14px rgba(111, 220, 255, 0.14);
}
.conta input:checked + label .marcado { opacity: 1; transform: none; }
.conta input:focus-visible + label { outline: 2px solid var(--farol); outline-offset: 2px; }
.conta input:active + label { transform: scale(0.98); }
.conta.desligada label { color: var(--texto-3); }
.conta.desligada .ic-desl { margin-left: auto; color: var(--texto-3); }
.conta.desligada input { cursor: not-allowed; }
.acoes { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 2px; }

/* o botão principal é o farol: a luz mais forte da tela. Geometria e giro do botão oficial (anel de 2 px, 4 s) */
.btn-anel {
  display: inline-flex; padding: 2px; border-radius: 999px;
  background: conic-gradient(from var(--giro), rgba(255,255,255,0) 0deg, rgba(255,255,255,0) 210deg, #ff5f6d 250deg, #ffe66d 280deg, #7dff9a 305deg, #59d6ff 328deg, #8b7bff 348deg, rgba(255,255,255,0) 360deg);
  animation: gira 4s linear infinite;
}
.btn-principal {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 22px; border: 0; border-radius: 999px;
  background: radial-gradient(120% 140% at 30% 20%, #d9f7ff, var(--farol) 55%, #3fbfe8);
  color: var(--farol-tinta); font-weight: 700; font-size: 13.5px; letter-spacing: 0.01em; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 22px rgba(111, 220, 255, 0.45);
  transition: transform var(--t-botao) var(--ease-out), filter var(--t-hover) var(--ease-out);
}
.btn-principal::after {
  content: ""; position: absolute; inset: -6px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 26px 6px rgba(111, 220, 255, 0.42); opacity: 0.25; animation: respira 4.8s ease-in-out infinite;
}
@keyframes respira { 50% { opacity: 0.9; } }
.btn-principal:active { transform: scale(0.97); }
.btn-principal:focus-visible { outline: 2px solid var(--texto); outline-offset: 4px; }
.btn-sec {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: var(--r-ctrl);
  background: var(--painel-2); border: 1px solid rgba(184, 144, 63, 0.45); color: var(--texto); font-weight: 600; white-space: nowrap; overflow: hidden;
  transition: background-color var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out), transform var(--t-botao) var(--ease-out);
}
.btn-sec .ic { color: var(--latao-claro); }
.btn-sec:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn-principal:hover { filter: brightness(1.08); }
  .btn-sec:hover { background: var(--painel-3); border-color: var(--latao-claro); }
  .conta:not(.desligada) label:hover { border-color: var(--linha-forte); }
}

/* ================= fila: a rota do Nautilus ================= */
.fila { list-style: none; margin: 0; padding: 0 0 8px; }
.rota { position: relative; }
.rota::before { content: ""; position: absolute; left: 24px; top: 22px; bottom: 28px; border-left: 1px dashed rgba(226, 193, 114, 0.45); }
.fila-dia { position: relative; padding: 12px 16px 6px 44px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--texto-3); }
/* cada porto é uma mini escotilha */
.fila-dia::before { content: ""; position: absolute; left: 19px; top: 12px; width: 11px; height: 11px; border-radius: 50%; background: #0b2236; box-shadow: 0 0 0 2px #b8903f, inset 0 0 0 2px #0b2236; }
.fila-dia.porto-hoje::before { background: var(--farol); box-shadow: 0 0 0 2px #b8903f, 0 0 10px rgba(111, 220, 255, 0.6); }
.item {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px 12px 10px 44px; border-top: 1px solid var(--linha); transition: background-color var(--t-hover) var(--ease-out);
}
.fila-dia + .item { border-top: 0; }
.miniatura {
  width: 36px; height: 64px; border-radius: 6px; display: grid; place-items: center; color: var(--texto-3);
  background: linear-gradient(160deg, #18476a, #0b2741); box-shadow: inset 0 0 0 1px rgba(111, 220, 255, 0.12);
}
.item-titulo { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-meta { font-size: 12px; color: var(--texto-2); margin-top: 1px; font-variant-numeric: tabular-nums; }
.destinos { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.destino {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px 0 6px; border-radius: 999px;
  background: var(--painel-2); font-size: 11px; font-weight: 600; color: var(--texto-2); white-space: nowrap;
}
.destino svg { width: 13px; height: 13px; }
.destino::after { content: ""; width: 9px; height: 8px; background: var(--agua-viva); order: -1; margin-right: 1px; }
.destino.d-aguardando { color: #ffd38f; box-shadow: inset 0 0 0 1px rgba(255, 184, 74, 0.55); animation: lanterna 2.6s ease-in-out infinite; }
.destino.d-aguardando::after { background: var(--lanterna); }
.destino.d-falhou { color: #ff9c8f; }
.destino.d-falhou::after { background: var(--coral); }
.destino.d-publicado::after { background: var(--alga); }
.item-acoes { display: flex; gap: 2px; align-self: start; }
@media (hover: hover) and (pointer: fine) { .item:hover { background: rgba(111, 220, 255, 0.035); } }

/* botão flutuante e folha (celular) */
.fab { display: none; }
.veu { display: none; }
.folha-cab { display: none; }

/* ================= CRM: a planilha (o diário de bordo) ================= */
.barra { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 16px 12px 20px; }
.barra h1 { margin: 0; white-space: nowrap; font: 600 20px/1.1 "Fraunces", Georgia, serif; }
.filtros { display: flex; flex-wrap: wrap; gap: 6px; }
.filtro {
  position: relative; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border-radius: 999px; overflow: hidden;
  border: 1px solid var(--linha-forte); background: transparent; color: var(--texto-2); font-size: 12px; font-weight: 600; white-space: nowrap;
  transition: background-color var(--t-hover) var(--ease-out), color var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out), transform var(--t-botao) var(--ease-out);
}
.filtro b { font-weight: 700; color: var(--texto-3); font-variant-numeric: tabular-nums; }
.filtro i { width: 8px; height: 8px; border-radius: 2px; }
.filtro[aria-pressed="true"] { background: var(--latao-escovado); border-color: #6e4d17; color: #2a1a04; }
.filtro[aria-pressed="true"] b { color: #2a1a04; }
.filtro:active { transform: scale(0.97); }
.busca { width: 220px; }
.busca .entrada { height: 32px; }
.busca .ic { top: 8px; }
.btn-csv .rotulo-curto { display: none; }
@media (hover: hover) and (pointer: fine) { .filtro[aria-pressed="false"]:hover { color: var(--texto); border-color: var(--latao); } }

.e-novo { background: #bfe1f6; color: #0a53a8; }
.e-conversando { background: #a9cbfd; color: #000; }
.e-interessado { background: #e6cff2; color: #5a3286; }
.e-comprou { background: #92fb92; color: #000; }
.e-naoquis { background: #e06666; color: #000; }

.planilha-moldura { padding: 0 16px 18px 20px; }
.planilha { border-collapse: collapse; table-layout: fixed; width: 100%; max-width: 1218px; font: 400 13px/1 "Roboto", "Inter", sans-serif; color: var(--texto); background: rgba(6, 22, 36, 0.6); }
.planilha th, .planilha td { height: 32px; padding: 0 8px; border: 1px solid var(--linha); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; vertical-align: middle; }
.planilha thead .letras th { height: 20px; padding: 0; text-align: center; font: 600 11px/1 "Inter", sans-serif; color: var(--texto-3); background: #0a2034; }
.planilha thead .nomes th { height: 30px; font: 700 12px/1 "Inter", sans-serif; color: var(--texto); background: var(--painel-3); position: sticky; top: calc(var(--topo) + 3px); z-index: 2; }
.planilha .lin { width: 36px; padding: 0; text-align: center; font: 600 11px/1 "Inter", sans-serif; color: var(--texto-3); background: #0a2034; }
.planilha tbody tr { cursor: default; }
/* seleção: o feixe do farol varre a linha */
.planilha tbody tr.sel { background: linear-gradient(90deg, rgba(111, 220, 255, 0.16), rgba(111, 220, 255, 0.03) 60%, transparent); }
.planilha tbody tr.sel .lin { background: var(--farol); color: var(--farol-tinta); font-weight: 800; }
.planilha td.ativa { outline: 2px solid var(--farol); outline-offset: -2px; }
.planilha .c-contato { display: flex; align-items: center; gap: 7px; min-width: 0; }
.planilha .c-contato svg { width: 14px; height: 14px; flex: none; }
.planilha .c-contato span { overflow: hidden; text-overflow: ellipsis; }
.planilha .saiu-nome { color: #ff8a8a; }   /* quem saiu tem o NOME pintado (regra do CLAUDIA), clareado para o casco */
.planilha .secundario { color: var(--texto-2); }
.planilha .centro { text-align: center; }
.chip-etapa { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 5px 0 8px; border-radius: 9px; font: 400 12px/1 "Roboto", sans-serif; }
.chip-etapa .ic-12 { opacity: 0.7; }
.planilha td.optout { background: #e06666; color: #000; text-align: center; }
.fu-hora::before { content: " "; }
.detalhe { display: none; }
.planilha .w-contato { width: 210px; }
.planilha .w-email { width: 210px; }
.planilha .w-etapa { width: 128px; }
.planilha .w-tags { width: 150px; }
.planilha .w-fu { width: 112px; }
.planilha .w-optout { width: 72px; }
@media (hover: hover) and (pointer: fine) { .planilha tbody tr:not(.sel):not(.detalhe):hover { background: rgba(111, 220, 255, 0.04); } }

/* follow-up planejado */
.fluxos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 18px 18px 20px; }
.fluxo { border: 1px solid var(--linha-forte); border-radius: 10px; padding: 14px; min-width: 0; background: rgba(6, 22, 36, 0.6); }
.fluxo-cab { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fluxo-cab h3 { margin: 0; font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fluxo-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 12px; color: var(--texto-2); }
.fluxo-meta span { display: inline-flex; align-items: center; gap: 6px; }
.passos { display: flex; align-items: flex-start; margin: 16px 0 4px; padding: 0; list-style: none; }
.passo { flex: 1 1 0; min-width: 0; display: grid; justify-items: center; gap: 7px; position: relative; text-align: center; font-size: 12px; color: var(--texto-2); }
.passo + .passo::before { content: ""; position: absolute; top: 15px; right: 50%; width: 100%; height: 1px; background: rgba(226, 193, 114, 0.4); z-index: 0; }
.no { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--painel-3); color: var(--texto); box-shadow: 0 0 0 1.5px #b8903f, 0 0 0 4px #0a1f31; }
.no.fim { background: transparent; color: var(--texto-3); }
.passo span { overflow: hidden; text-overflow: ellipsis; max-width: 100%; white-space: nowrap; }
.passo span.falta { border: 1px dashed var(--linha-forte); border-radius: 6px; padding: 2px 6px; color: var(--texto-2); white-space: normal; line-height: 1.3; }
.segmento { display: inline-flex; padding: 3px; border-radius: var(--r-ctrl); background: #081b2c; margin-left: auto; flex: none; border: 1px solid var(--linha); }
.segmento button { height: 26px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--texto-2); font-size: 12px; font-weight: 600; transition: background-color var(--t-hover) var(--ease-out), color var(--t-hover) var(--ease-out); }
.segmento button[aria-pressed="true"] { background: var(--latao-escovado); color: #2a1a04; }

/* ================= toque e transições de água ================= */
.onda { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; pointer-events: none; z-index: 0; border: 1.5px solid rgba(111, 220, 255, 0.6); background: rgba(111, 220, 255, 0.1); }
.bolha { position: fixed; z-index: 80; width: 6px; height: 6px; border-radius: 50%; pointer-events: none; border: 1px solid rgba(220, 247, 255, 0.9); background: rgba(111, 220, 255, 0.25); }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 260ms var(--ease-out) both afunda; }
::view-transition-new(root) { animation: 560ms var(--ease-out) both sobe; }
@keyframes afunda { to { opacity: 0; transform: translate3d(0, 10px, 0); } }
@keyframes sobe { from { opacity: 0; transform: translate3d(0, -8px, 0); } }

/* ================= larguras intermediárias ================= */
@media (max-width: 1120px) { .planilha .col-tags { display: none; } }
@media (max-width: 920px) { .planilha .col-email { display: none; } .tela-fila { grid-template-columns: minmax(0, 1fr) 320px; } .aba { padding: 0 9px; } }

/* ================= celular ================= */
@media (max-width: 720px) {
  :root { --topo: 54px; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .topo { gap: 12px; padding: 0 12px; }
  .marca { font-size: 18px; }
  .abas {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(66px + env(safe-area-inset-bottom));
    padding: 6px 6px env(safe-area-inset-bottom); gap: 6px; align-items: stretch;
    background: linear-gradient(180deg, #0e2a42, #081a2b); box-shadow: 0 -8px 24px rgba(2, 10, 20, 0.5);
  }
  .abas::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--latao-moldura); }
  .aba { flex: 1 1 0; min-width: 0; height: 54px; flex-direction: column; justify-content: center; gap: 3px; padding: 0 2px; font-size: 11px; letter-spacing: 0; margin-top: 4px; }
  .aba .ic { width: 20px; height: 20px; }
  .aba[aria-current="page"]::before { background: radial-gradient(circle at 6px 6px, #fff3cf 0 1px, #6e4d17 1.6px, transparent 2.4px), radial-gradient(circle at calc(100% - 6px) 6px, #fff3cf 0 1px, #6e4d17 1.6px, transparent 2.4px); }
  .btn-icone { width: 44px; height: 44px; }
  .tela { padding: 12px 10px 24px; gap: 12px; }
  .tela-fila { grid-template-columns: minmax(0, 1fr); }
  .painel-cab { padding: 8px 8px 8px 16px; }
  .semana { padding: 0 6px; }
  .semana span { padding: 8px 0 6px; text-align: center; letter-spacing: 0.04em; }
  .cal { margin: 0 6px; }
  .dia { min-height: 56px; padding: 4px 2px; align-items: center; gap: 3px; }
  .dia-num { align-self: center; }
  .dia.hoje .dia-num { width: 24px; height: 24px; }
  .post { height: auto; padding: 0; background: transparent; box-shadow: none; justify-content: center; overflow: visible; }
  .post::before { display: none; }
  .post .hora { display: none; }
  .post .redes { margin: 0; gap: 2px; }
  .post .redes svg { width: 12px; height: 12px; }
  .post.st-aguardando { animation: none; }
  .post.st-aguardando .redes { border-radius: 4px; box-shadow: 0 0 0 1.5px var(--lanterna), 0 0 10px rgba(255, 184, 74, 0.4); padding: 1px; }
  .post.st-falhou .redes { border-radius: 4px; box-shadow: 0 0 0 1.5px var(--coral); padding: 1px; }
  .post.st-cancelado { opacity: 0.45; }
  .post:nth-of-type(n + 3) { display: none; }
  .legenda { padding: 10px 16px 12px; gap: 6px 12px; }
  .rota::before { left: 20px; }
  .fila-dia { padding-left: 38px; }
  .fila-dia::before { left: 15px; }
  .item { padding: 10px 6px 10px 38px; }
  .item-acoes .btn-icone { width: 44px; height: 44px; }
  .entrada, textarea.entrada { font-size: 16px; }
  .entrada { height: 44px; }
  .com-icone .ic { top: 14px; }
  .conta label { height: 44px; }
  .compositor {
    position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 60; max-height: 88dvh; overflow-y: auto;
    border-radius: 16px 16px 0 0; border-bottom: 0;
    transform: translate3d(0, 104%, 0); visibility: hidden;
    transition: transform var(--t-folha) var(--ease-drawer), visibility 0s linear var(--t-folha);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .compositor.aberta { transform: none; visibility: visible; transition: transform var(--t-folha) var(--ease-drawer), visibility 0s; }
  .compositor .painel-cab { position: sticky; top: 0; z-index: 2; background: #0d263c; border-radius: 14px 14px 0 0; }
  .compositor .acoes { position: sticky; bottom: 0; z-index: 2; margin: 0 -18px -18px; padding: 12px 18px 14px; background: linear-gradient(180deg, rgba(11, 34, 54, 0), var(--painel) 30%); }
  .compositor .btn-principal { height: 44px; }
  .folha-cab { display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--latao); margin: 8px auto 0; }
  .veu { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(1, 8, 16, 0.6); opacity: 0; pointer-events: none; transition: opacity 220ms var(--ease-out); }
  .veu.aberto { opacity: 1; pointer-events: auto; }
  body.folha-aberta .fab { visibility: hidden; }
  .fab { display: inline-flex; position: fixed; right: 14px; bottom: calc(66px + 16px + env(safe-area-inset-bottom)); z-index: 45; }
  .fab .btn-principal { height: 48px; padding: 0 20px; font-size: 14.5px; }
  /* planilha: menos colunas, a linha abre o resto embaixo (nada de rolagem lateral) */
  .barra { padding: 12px 12px 12px 16px; }
  .barra h1 { font-size: 19px; }
  .busca { width: auto; flex: 1 1 160px; }
  .busca .entrada { height: 44px; }
  .busca .ic { top: 14px; }
  .btn-csv { height: 44px; }
  .btn-csv .rotulo-longo { display: none; }
  .btn-csv .rotulo-curto { display: inline; }
  .filtro { height: 36px; padding: 0 8px; overflow: visible; }
  .filtro::before { content: ""; position: absolute; inset: -4px 0; }  /* alvo de 44 px, visual de 36 */
  .planilha-moldura { padding: 0 8px 12px; }
  .planilha .col-email, .planilha .col-tags, .planilha .col-msg, .planilha .col-optout { display: none; }
  .planilha th, .planilha td { height: 44px; padding: 0 6px; }
  .planilha thead .nomes th { height: 32px; padding: 0 4px; }
  .planilha .lin { width: 28px; }
  .planilha .w-contato { width: auto; }
  .planilha .w-etapa { width: 100px; }
  .planilha .w-fu { width: 74px; }
  .chip-etapa { padding: 0 8px; }
  .chip-etapa .ic-12 { display: none; }
  .planilha td.c-fu { line-height: 1.25; font-size: 12.5px; }
  .fu-hora { display: block; }
  .fu-hora::before { content: none; }
  .planilha tr.detalhe.aberto { display: table-row; }
  .planilha tr.detalhe td { height: auto; padding: 10px 10px 12px; white-space: normal; background: rgba(4, 18, 30, 0.8); }
  .det { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 6px 10px; font: 400 13px/1.4 "Roboto", sans-serif; }
  .det dt { color: var(--texto-3); font-family: "Inter", sans-serif; font-size: 12px; }
  .det dd { margin: 0; overflow-wrap: anywhere; }
  .fluxos { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .fluxo-cab { flex-wrap: wrap; }
  .fluxo-cab h3 { flex: 1 1 100%; font-size: 12.5px; letter-spacing: -0.01em; }
  .segmento { margin-left: 0; }
  .segmento button { height: 44px; padding: 0 14px; }
  .passos { flex-direction: column; gap: 10px; margin-top: 14px; }
  .passo { display: flex; align-items: center; gap: 12px; text-align: left; font-size: 13px; }
  .passo + .passo::before { top: auto; bottom: 30px; right: auto; left: 15px; width: 1px; height: 10px; }
  .passo span { white-space: normal; }
  /* bateria: no celular a água fica parada */
  .raios i, .causticas { animation: none; }
  .raios i:nth-child(n + 4) { display: none; }
}

/* fim do arquivo: o movimento reduzido vence tudo o que veio antes */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms; }
  .raios i, .causticas, .simbolo, .simbolo .rosa, .mare path, .dia.hoje .dia-num, .st-aguardando, .destino.d-aguardando,
  .btn-anel, .btn-principal::after, .entra, .entra:nth-child(2), .entra:nth-child(3) { animation: none; }
  .onda, .bolha { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ================= a janela panorâmica do Nautilus: o painel do calendário deixa ver o mar (raios e cáusticas) ================= */
.painel.janela { background: linear-gradient(180deg, rgba(13, 38, 60, 0.74), rgba(11, 34, 54, 0.66)) padding-box; }
/* a moldura de latão da janela vem num anel separado, para o vidro não deixar o latão aparecer por baixo */
.painel.janela::after {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; pointer-events: none; background: var(--latao-moldura);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.painel.janela .cal { background-color: rgba(4, 20, 34, 0.28); }
.painel.janela .dia.fora { background: rgba(2, 12, 22, 0.5); }
.raios i { background: linear-gradient(90deg, transparent, rgba(255,95,109,.22) 16%, rgba(255,230,109,.26) 33%, rgba(125,255,154,.24) 50%, rgba(89,214,255,.28) 67%, rgba(139,123,255,.22) 84%, transparent); }
@media (max-width: 720px) {
  .aba:first-child { flex-grow: 1.3; }
  .abas { gap: 4px; }
  .fluxo-cab h3 { font-size: 12px; font-weight: 600; }
}
