.ideas-entry { margin-bottom:12px; }
.ideas-entry[hidden], .ideas-slide[hidden], .ideas-slide-art img[hidden], .idea-draft-dialog [hidden] { display:none !important; }
.ideas-entry-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0 0 11px; }
.ideas-entry-heading h2 { font-size:23px; letter-spacing:-.025em; }
.ideas-entry-heading p:last-child { margin:3px 0 0; color:var(--muted); font-size:12px; }
.ideas-entry-actions { display:flex; flex-wrap:wrap; gap:8px; }
.ideas-entry-actions .btn { min-height:36px; }
.ideas-slides { height:clamp(210px,24dvh,310px); border-radius:19px; overflow:hidden; background:#092b55; }
.ideas-slides-loading { display:flex; align-items:center; background:radial-gradient(circle at 78% 45%,rgba(40,153,199,.23),transparent 34%),linear-gradient(110deg,#092b55,#0b426a); color:#fff; }
.ideas-loading-copy { width:min(520px,100%); padding:20px clamp(24px,3vw,48px); }
.ideas-loading-copy p { margin:9px 0 18px; font-size:18px; font-weight:650; }
.ideas-loading-progress { display:block; width:180px; max-width:100%; height:4px; overflow:hidden; border-radius:99px; background:rgba(255,255,255,.18); }
.ideas-loading-progress::after { content:""; display:block; width:40%; height:100%; border-radius:inherit; background:#69e0ed; animation:ideas-loading-sweep 1.5s ease-in-out infinite alternate; }
@keyframes ideas-loading-sweep { from { transform:translateX(0); } to { transform:translateX(150%); } }
.ideas-slide { position:relative; display:flex; align-items:center; height:100%; overflow:hidden; border-radius:19px; background:radial-gradient(circle at 83% 20%,#177d9a 0%,transparent 34%),linear-gradient(115deg,#092b55 0%,#0c4774 75%,#096989 100%); color:#fff; box-shadow:var(--shadow-soft); }
.ideas-slide:not([hidden]) { animation:ideas-slide-reveal .38s cubic-bezier(.2,.7,.2,1) both; }
@keyframes ideas-slide-reveal { from { opacity:.25; } to { opacity:1; } }
.ideas-slide-service { background:radial-gradient(circle at 83% 14%,rgba(63,169,239,.42),transparent 28%),linear-gradient(115deg,#071f3c,#0c355b 74%,#0e5879); }
.ideas-slide-service .ideas-slide-art::before { content:""; position:absolute; width:300px; height:300px; right:4%; top:-58%; border:44px solid rgba(84,217,235,.18); border-radius:50%; }
.ideas-slide::after { content:""; position:absolute; width:340px; height:340px; right:-95px; top:-155px; border:45px solid rgba(87,213,234,.1); border-radius:50%; pointer-events:none; }
.ideas-slide-copy { position:relative; z-index:2; display:flex; flex-direction:column; align-items:start; justify-content:center; width:min(720px,72%); padding:20px clamp(24px,3vw,48px); }
.ideas-kicker { color:#69e0ed; font-size:11px; font-weight:750; letter-spacing:.09em; text-transform:uppercase; }
.ideas-slide h3 { margin:8px 0 0; font-size:clamp(22px,1.9vw,29px); line-height:1.18; letter-spacing:-.025em; }
.ideas-slide p { max-width:600px; margin:8px 0 12px; color:#d0e6f3; font-size:13px; line-height:1.5; }
.ideas-slide .btn.primary { background:#5d9eff; border-color:#5d9eff; font-size:12px; }
.ideas-slide-actions { display:flex; flex-wrap:wrap; gap:8px; }
.ideas-slide .btn.secondary { border-color:rgba(255,255,255,.3); background:rgba(255,255,255,.09); color:#fff; }
.ideas-slide-art { position:absolute; inset:0; overflow:hidden; }
.ideas-slide-art::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,#092b55 0%,rgba(9,43,85,.94) 42%,rgba(9,43,85,.34) 100%); }
.ideas-slide-art img { width:100%; height:100%; object-fit:cover; opacity:.72; }
.ideas-slide-campaign { background:#092b55; }
.ideas-slide-campaign::after { display:none; }
/* Artes de campanha panorâmicas (3:1), sem texto incorporado; a cópia fica no HTML. */
.ideas-campaign-media { position:absolute; inset:0; overflow:hidden; background:#092b55; }
.ideas-campaign-media::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(5,28,59,.9) 0%,rgba(7,33,68,.78) 26%,rgba(9,43,85,.27) 54%,transparent 78%); pointer-events:none; }
.ideas-campaign-media img[hidden] { display:none !important; }
.ideas-campaign-image { display:block; width:100%; height:100%; object-fit:cover; object-position:center; }
.ideas-slide-campaign .ideas-slide-copy { width:min(710px,60%); }
.ideas-slide-campaign h3 { max-width:620px; }
.ideas-slide-campaign p { max-width:520px; }
.ideas-carousel-controls { display:flex; align-items:center; justify-content:center; gap:12px; margin-top:10px; }
.ideas-carousel-controls .btn { min-height:32px; padding:4px 12px; }
.ideas-carousel-dots { display:flex; gap:8px; }
.ideas-carousel-dots button { width:9px; height:9px; padding:0; border:0; border-radius:99px; background:var(--line-strong); cursor:pointer; }
.ideas-carousel-dots button[aria-current="true"] { width:25px; background:var(--blue); }
.ideas-entry-message { padding:20px 22px; border:1px solid var(--line); border-radius:14px; background:var(--surface); color:var(--muted); font-size:13px; }
.ideas-entry-message .btn { margin-left:12px; }
@media (min-width:821px) and (max-height:1000px) {
  .shell main:has(> .page[data-section="home"].active) { padding-block:20px; }
  .page[data-section="home"] .stats { margin-bottom:12px; }
  .page[data-section="home"] .stat { padding:12px; }
  .page[data-section="home"] .stat-value { margin:6px 0 2px; }
  .page[data-section="home"] .ticket-row { min-height:52px; }
  .page[data-section="home"] .card-head { padding-block:12px 8px; }
  .page[data-section="home"] .work-row { margin-top:11px; }
  .page[data-section="home"] .workload { padding-bottom:12px; }
  .page[data-section="home"] .quick-links { padding-block:11px; }
}
.idea-draft-dialog { position:relative; width:min(680px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); padding:0; overflow-y:auto; border:1px solid var(--line-strong); border-radius:18px; background:var(--surface); color:var(--text); box-shadow:0 30px 90px rgba(0,16,38,.4); }
.idea-draft-dialog .idea-operation { position:fixed; z-index:3; border-radius:18px; }
.idea-draft-dialog::backdrop { background:rgba(2,15,33,.7); backdrop-filter:blur(3px); }
.idea-draft-head { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:22px 24px 12px; }
.idea-draft-head h2 { font-size:22px; }
.idea-draft-notice { margin:0 24px 16px; padding:11px 13px; border-radius:9px; background:color-mix(in srgb,var(--blue) 8%,var(--surface)); color:var(--muted); font-size:12px; line-height:1.5; }
.idea-draft-dialog form, .idea-draft-preview { padding:0 24px 24px; }
.idea-draft-campaign { margin:0 0 15px; color:var(--muted); font-size:12px; }
.idea-draft-campaign strong { color:var(--text); }
.idea-draft-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.idea-draft-grid .field { display:flex; flex-direction:column; gap:6px; font-size:12px; font-weight:650; }
.idea-draft-grid .idea-draft-full { grid-column:1/-1; }
.idea-draft-grid textarea { min-height:84px; resize:vertical; }
.idea-draft-similarity { min-width:0; padding:14px; border:1px solid var(--line); border-radius:11px; background:var(--surface-2); }
.idea-draft-similarity-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.idea-draft-similarity-head h3 { margin:0 0 4px; font-size:13px; }
.idea-draft-similarity-head p,.idea-draft-similarity > p { margin:0; color:var(--muted); font-size:11px; line-height:1.5; }
.idea-draft-similarity-head .btn { flex:none; }
.idea-draft-similarity > p { margin-top:11px; }
.idea-draft-similarity ol { display:grid; gap:8px; margin:12px 0 0; padding:0; list-style:none; }
.idea-draft-similarity li { padding:11px 12px; border:1px solid var(--line); border-radius:9px; background:var(--surface); }
.idea-draft-similarity li strong,.idea-draft-similarity li small { display:block; }
.idea-draft-similarity li strong { font-size:12px; line-height:1.4; }
.idea-draft-similarity li small { margin-top:4px; color:var(--muted); font-size:10px; }
.idea-draft-similarity li p { margin:8px 0 0; color:var(--text); font-size:11px; line-height:1.5; white-space:pre-wrap; overflow-wrap:anywhere; }
.idea-draft-similarity .btn:disabled { opacity:.6; cursor:progress; }
.idea-draft-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:9px; margin-top:20px; }
.idea-draft-actions [data-idea-send] { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-width:126px; }
.idea-draft-actions [data-idea-send][data-loading="true"] { cursor:progress; opacity:1; }
.idea-send-spinner { width:15px; height:15px; flex:none; border:2px solid rgba(255,255,255,.45); border-top-color:#fff; border-radius:50%; animation:idea-send-spin .75s linear infinite; }
@keyframes idea-send-spin { to { transform:rotate(360deg); } }
.idea-draft-preview h3 { margin-bottom:12px; }
.idea-draft-preview #ideaDraftPreviewText { padding:15px; border:1px solid var(--line); border-radius:10px; background:var(--surface-2); font-size:13px; line-height:1.55; white-space:pre-wrap; }
.idea-draft-preview .idea-draft-notice { margin:16px 0 0; }
.idea-draft-preview .idea-draft-notice[data-kind="success"] { background:rgba(26,160,107,.13); color:var(--text); }
.idea-draft-preview .idea-draft-notice[data-kind="warning"] { background:rgba(224,162,40,.14); color:var(--text); }
.idea-draft-preview .idea-draft-notice[data-kind="error"] { background:rgba(215,73,78,.13); color:var(--text); }
@media (max-width:820px) {
  .ideas-entry-heading { align-items:flex-start; flex-direction:column; }
  .ideas-slides { height:290px; }
  .ideas-slide-service { min-height:238px; }
  .ideas-slide-copy { width:100%; }
  .ideas-slide-art::after { background:linear-gradient(90deg,#092b55 0%,rgba(9,43,85,.82) 100%); }
  .ideas-campaign-media::after { background:linear-gradient(90deg,rgba(9,43,85,.98) 0%,rgba(9,43,85,.9) 46%,rgba(9,43,85,.43) 100%); }
  .ideas-slide-campaign .ideas-slide-copy { width:100%; }
}
@media (max-width:540px) {
  .ideas-entry-heading h2 { font-size:20px; }
  .ideas-entry-actions { width:100%; }
  .ideas-entry-actions .btn { flex:1; }
  .ideas-slide-copy { padding:24px; }
  .ideas-slide h3 { font-size:25px; }
  .ideas-slide p { font-size:13px; }
  .ideas-slides { height:320px; }
  .ideas-campaign-media::after { background:linear-gradient(90deg,rgba(9,43,85,.98),rgba(9,43,85,.78)); }
  .idea-draft-grid { grid-template-columns:1fr; }
  .idea-draft-head { padding:18px 18px 12px; }
  .idea-draft-dialog form, .idea-draft-preview { padding:0 18px 18px; }
  .idea-draft-dialog > .idea-draft-notice { margin:0 18px 16px; }
  .idea-draft-similarity-head { align-items:flex-start; flex-direction:column; }
}
@media (prefers-reduced-motion:reduce) {
  .ideas-loading-progress::after { animation:none; width:100%; }
  .ideas-slide:not([hidden]) { animation:none; }
  .idea-send-spinner { animation:none; border-top-color:rgba(255,255,255,.45); }
}
