/* ACAISAN PLAN — aba Solicitações (#requests.rq), aviso na barra lateral e cartão "Link de orçamento". */
#requests.rq, #rqLinkCard, .rq-nav, .rq-toast {
  --rq-bg: #0b0b0c; --rq-panel: #0f0f11; --rq-card: #141416; --rq-raise: #1a1a1d; --rq-field: #0e0e10;
  --rq-line: rgba(255, 255, 255, .075); --rq-line-2: rgba(255, 255, 255, .13);
  --rq-text: #f4f4f5; --rq-mute: #a1a1aa; --rq-dim: #71717a;
  --rq-lime: #a3e635; --rq-lime-2: #b5f04a; --rq-lime-soft: rgba(163, 230, 53, .1); --rq-lime-line: rgba(163, 230, 53, .34);
  --rq-amber: #fbbf24; --rq-red: #f87171; --rq-blue: #60a5fa;
  --rq-head: "Manrope", "Inter", system-ui, sans-serif; --rq-body: "Inter", system-ui, sans-serif; --rq-mono: "JetBrains Mono", ui-monospace, monospace;
}

/* ── Barra lateral: contador ── */
.rq-nav { position: relative; }
.rq-nav .rq-badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px;
  font: 700 11px/1 var(--rq-mono); color: #0a0a0a; background: var(--rq-lime); box-shadow: 0 0 0 3px rgba(163, 230, 53, .18);
}
.rq-nav .nav-icon { display: none; }
.rq-nav:not(:has(.acd-ico)) .nav-icon { display: inline; }
/* Menu recolhido (só ícones): o contador vira um ponto sobre o ícone. */
body:not(.ac52-expanded) .acd-side .rq-nav .rq-badge { position: absolute; top: 6px; right: 8px; min-width: 9px; height: 9px; padding: 0; font-size: 0; margin: 0; }
@media (max-width: 900px) { .rq-nav .rq-badge { position: absolute; top: 6px; right: 6px; min-width: 9px; height: 9px; padding: 0; font-size: 0; margin: 0; } }
/* Celular: ponto no botão que abre o menu. */
body.rq-has-new #ac518Open, body.rq-has-new [data-acd-menu] { position: relative; }
body.rq-has-new #ac518Open::after, body.rq-has-new [data-acd-menu]::after {
  content: ""; position: absolute; top: 6px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: #a3e635; box-shadow: 0 0 0 3px rgba(163, 230, 53, .2);
}

/* ── Página ── */
#requests.rq [hidden], #rqLinkCard [hidden] { display: none !important; }
#requests.rq { color: var(--rq-text); font-family: var(--rq-body); }
.rq-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-bottom: 20px; margin-bottom: 18px; border-bottom: 1px solid var(--rq-line); }
.rq-eyebrow { font: 600 10.5px/1 var(--rq-mono); letter-spacing: .16em; color: var(--rq-lime); }
.rq-eyebrow span { color: var(--rq-dim); }
.rq-head h1 { margin: 8px 0 6px !important; font: 800 clamp(26px, 2.8vw, 34px)/1.1 var(--rq-head) !important; letter-spacing: -.03em; color: var(--rq-text) !important; }
.rq-head p { margin: 0; color: var(--rq-mute); font-size: 13px; }
.rq-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.rq-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 11px; cursor: pointer;
  border: 1px solid var(--rq-lime); background: var(--rq-lime); color: #0a0a0a !important; font: 700 13px/1 var(--rq-body); text-decoration: none; white-space: nowrap;
}
.rq-btn:hover:not(:disabled) { background: var(--rq-lime-2); }
.rq-btn:disabled { opacity: .5; cursor: not-allowed; }
.rq-btn--ghost { background: var(--rq-raise); border-color: var(--rq-line-2); color: var(--rq-text) !important; font-weight: 600; }
.rq-btn--ghost:hover:not(:disabled) { background: var(--rq-card); border-color: var(--rq-lime-line); }
.rq-btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
#requests.rq :is(button, a, input):focus-visible, #rqLinkCard :is(button, a, input, select):focus-visible { outline: 2px solid var(--rq-lime); outline-offset: 2px; }

.rq-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; margin-bottom: 16px; border-radius: 14px; font-size: 13px; }
.rq-banner > div { display: grid; gap: 3px; }
.rq-banner strong { font: 700 14px/1.3 var(--rq-head); }
.rq-banner.is-info { background: rgba(96, 165, 250, .08); border: 1px solid rgba(96, 165, 250, .3); color: #cfe0f7; }
.rq-banner.is-err { background: rgba(248, 113, 113, .08); border: 1px solid rgba(248, 113, 113, .3); color: #fecaca; }

.rq-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.rq-kpi { display: grid; gap: 8px; padding: 16px; border-radius: 16px; background: var(--rq-card); border: 1px solid var(--rq-line-2); }
.rq-kpi span { font: 600 10px/1 var(--rq-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--rq-dim); }
.rq-kpi strong { font: 800 28px/1 var(--rq-head); letter-spacing: -.02em; }
.rq-kpi.is-hot { border-color: var(--rq-lime-line); background: radial-gradient(120% 160% at 0% 0%, rgba(163, 230, 53, .12), transparent 60%), var(--rq-card); }
.rq-kpi.is-hot strong { color: var(--rq-lime); }

.rq-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.rq-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.rq-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; cursor: pointer; border: 1px solid var(--rq-line-2); background: var(--rq-card); color: var(--rq-mute); font: 600 12.5px/1 var(--rq-body); }
.rq-chip b { font: 600 11px/1 var(--rq-mono); color: var(--rq-dim); }
.rq-chip:hover { color: var(--rq-text); }
.rq-chip.is-on { background: var(--rq-lime); border-color: var(--rq-lime); color: #0a0a0a; }
.rq-chip.is-on b { color: rgba(10, 10, 10, .6); }
.rq-search input { width: min(300px, 100%); height: 38px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--rq-line-2); background: var(--rq-field); color: var(--rq-text); font-size: 13.5px; color-scheme: dark; }
.rq-search input:focus { outline: none; border-color: var(--rq-lime); box-shadow: 0 0 0 3px rgba(163, 230, 53, .14); }
.rq-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.rq-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
#requests.rq-detail-open .rq-body { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); }
.rq-list { display: grid; gap: 8px; min-width: 0; }
.rq-item {
  position: relative; display: grid; gap: 8px; width: 100%; padding: 14px 16px 14px 18px; text-align: left; cursor: pointer; border-radius: 14px;
  background: var(--rq-card); border: 1px solid var(--rq-line-2); color: var(--rq-text); font: inherit; transition: border-color .15s, background .15s;
}
.rq-item:hover { border-color: rgba(255, 255, 255, .22); }
.rq-item.is-on { border-color: var(--rq-lime); background: var(--rq-raise); }
.rq-item.is-unread::before { content: ""; position: absolute; left: 7px; top: 19px; width: 6px; height: 6px; border-radius: 50%; background: var(--rq-lime); }
.rq-item-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rq-item-name { font: 700 15px/1.3 var(--rq-head); overflow-wrap: anywhere; }
.rq-item.is-unread .rq-item-name { color: #fff; }
.rq-item-ago { flex: none; font: 500 11px/1 var(--rq-mono); color: var(--rq-dim); }
.rq-item-mid { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.rq-item-meta { font-size: 12.5px; color: var(--rq-mute); overflow-wrap: anywhere; }
.rq-svc { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; font: 600 11.5px/1 var(--rq-body); color: var(--rq-text); background: var(--rq-raise); border: 1px solid var(--rq-line-2); }
.rq-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font: 600 11px/1 var(--rq-body); }
.rq-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.rq-pill--new { color: var(--rq-lime); background: var(--rq-lime-soft); }
.rq-pill--review { color: var(--rq-amber); background: rgba(251, 191, 36, .1); }
.rq-pill--answered { color: var(--rq-blue); background: rgba(96, 165, 250, .1); }
.rq-pill--converted { color: #0a0a0a; background: var(--rq-lime); }
.rq-pill--archived { color: var(--rq-dim); background: var(--rq-raise); }
.rq-skel { height: 92px; border-radius: 14px; background: linear-gradient(90deg, var(--rq-card), var(--rq-raise), var(--rq-card)); background-size: 200% 100%; animation: rq-sk 1.2s linear infinite; }
@keyframes rq-sk { to { background-position: -200% 0; } }

.rq-empty { display: grid; justify-items: center; gap: 10px; padding: 48px 20px; text-align: center; border-radius: 18px; border: 1px dashed var(--rq-line-2); background: var(--rq-panel); }
.rq-empty strong { font: 800 18px/1.2 var(--rq-head); }
.rq-empty p { margin: 0; max-width: 420px; color: var(--rq-mute); font-size: 13.5px; }
.rq-empty-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--rq-lime-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3e635' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13l2.2-7.2A2 2 0 0 1 8.1 4.5h7.8a2 2 0 0 1 1.9 1.3L20 13'/%3E%3Cpath d='M4 13v5a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5h-4.5l-1.5 2.5h-4L8.5 13z'/%3E%3C/svg%3E") center / 26px no-repeat; border: 1px solid var(--rq-lime-line); }

/* Detalhe */
.rq-detail {
  position: sticky; top: 84px; display: grid; grid-auto-rows: max-content; align-content: start; gap: 14px; max-height: calc(100dvh - 100px); overflow: auto; padding: 20px; border-radius: 18px;
  background: var(--rq-card); border: 1px solid var(--rq-line-2); scrollbar-width: thin;
}
.rq-d-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rq-d-ttl { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.rq-d-ttl h2 { margin: 0 !important; font: 800 22px/1.15 var(--rq-head) !important; letter-spacing: -.02em; color: var(--rq-text) !important; overflow-wrap: anywhere; }
.rq-d-ttl small { font: 500 11px/1.3 var(--rq-mono); color: var(--rq-dim); }
.rq-d-close { flex: none; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--rq-line-2); background: var(--rq-raise); color: var(--rq-mute); font-size: 18px; cursor: pointer; }
.rq-d-close:hover { color: var(--rq-text); border-color: var(--rq-lime-line); }
.rq-d-contact { display: flex; flex-wrap: wrap; gap: 8px; }
.rq-kicker { font: 600 10px/1 var(--rq-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--rq-lime); }
.rq-d-status { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 4px; padding: 4px; margin-top: -6px; border-radius: 12px; background: var(--rq-panel); border: 1px solid var(--rq-line); }
.rq-seg { flex: 1 1 auto; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--rq-mute); font: 600 12px/1 var(--rq-body); cursor: pointer; white-space: nowrap; }
.rq-seg:hover { color: var(--rq-text); background: var(--rq-raise); }
.rq-seg.is-on { background: var(--rq-lime); color: #0a0a0a; }
.rq-d-grid { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border-radius: 14px; overflow: hidden; background: var(--rq-line); border: 1px solid var(--rq-line); }
.rq-dl { padding: 11px 12px; background: var(--rq-panel); min-width: 0; }
.rq-dl dt { font: 600 10px/1 var(--rq-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--rq-dim); margin-bottom: 6px; }
.rq-dl dd { margin: 0; font-size: 13.5px; overflow-wrap: anywhere; }
.rq-d-about { display: grid; gap: 8px; }
.rq-d-about p { margin: 0; padding: 14px; border-radius: 12px; background: var(--rq-panel); border: 1px solid var(--rq-line); font-size: 14px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.rq-d-refs { display: grid; gap: 6px; }
.rq-d-refs a { color: var(--rq-lime); font-size: 13px; overflow-wrap: anywhere; }
.rq-d-foot { padding-top: 14px; border-top: 1px solid var(--rq-line); }
.rq-d-foot .rq-btn { width: 100%; min-height: 46px; font-size: 14px; }

.rq-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 2147483000; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 12px; font: 600 13px/1.3 var(--rq-body); color: #0a0a0a; background: var(--rq-lime); box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
  transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px);
}
.rq-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ── Cartão "Link de orçamento" ── */
#rqLinkCard {
  display: grid; gap: 16px; margin-top: 16px; padding: 24px; border-radius: 18px; color: var(--rq-text); font-family: var(--rq-body);
  background: var(--rq-card); border: 1px solid var(--rq-line-2); border-top: 2px solid var(--rq-lime); max-width: 1080px;
}
.rq-lc-head { display: flex; align-items: flex-start; gap: 14px; }
.rq-lc-head > div { flex: 1 1 auto; min-width: 0; }
.rq-lc-head h2 { margin: 0 0 4px !important; font: 800 17px/1.2 var(--rq-head) !important; color: var(--rq-text) !important; }
.rq-lc-head p { margin: 0; color: var(--rq-mute); font-size: 13px; }
.rq-lc-ico { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--rq-lime-soft); border: 1px solid var(--rq-lime-line); }
.rq-lc-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--rq-lime); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rq-switch { flex: none; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; color: var(--rq-mute); }
.rq-switch input { position: absolute !important; opacity: 0 !important; width: 1px !important; height: 1px !important; }
.rq-switch span { width: 40px; height: 22px; border-radius: 999px; background: var(--rq-raise); border: 1px solid var(--rq-line-2); position: relative; transition: background .15s; }
.rq-switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--rq-mute); transition: transform .15s, background .15s; }
.rq-switch input:checked + span { background: var(--rq-lime); border-color: var(--rq-lime); }
.rq-switch input:checked + span::after { transform: translateX(18px); background: #0a0a0a; }
.rq-switch input:focus-visible + span { outline: 2px solid var(--rq-lime); outline-offset: 2px; }
.rq-switch b { font-weight: 600; }
.rq-f { display: grid; gap: 7px; font-size: 12px; font-weight: 600; color: var(--rq-mute); min-width: 0; }
.rq-f input, .rq-f select, .rq-add input {
  height: 44px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--rq-line-2); background: var(--rq-field); color: var(--rq-text); font-size: 14px; font-weight: 500; color-scheme: dark; width: 100%;
}
.rq-f input:focus, .rq-f select:focus, .rq-add input:focus { outline: none; border-color: var(--rq-lime); box-shadow: 0 0 0 3px rgba(163, 230, 53, .14); }
.rq-f small { font-weight: 500; color: var(--rq-dim); }
.rq-f small.is-ok { color: var(--rq-lime); }
.rq-f small.is-bad { color: var(--rq-red); }
.rq-slug { display: flex; align-items: stretch; border-radius: 11px; border: 1px solid var(--rq-line-2); background: var(--rq-field); overflow: hidden; }
.rq-slug:focus-within { border-color: var(--rq-lime); box-shadow: 0 0 0 3px rgba(163, 230, 53, .14); }
.rq-slug em { display: grid; place-items: center; padding: 0 4px 0 12px; font: 500 13px/1 var(--rq-mono); font-style: normal; color: var(--rq-dim); white-space: nowrap; }
.rq-slug input { flex: 1 1 auto; min-width: 0; height: 44px !important; border: 0 !important; border-radius: 0 !important; outline: none !important; box-shadow: none !important; padding: 0 12px 0 2px !important; font-family: var(--rq-mono) !important; color: var(--rq-lime) !important; background: transparent !important; }
.rq-svcs { display: flex; flex-wrap: wrap; gap: 6px; }
.rq-tag { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--rq-line-2); background: var(--rq-raise); color: var(--rq-mute); font-size: 12.5px; cursor: pointer; }
.rq-tag input { accent-color: var(--rq-lime); margin: 0 !important; padding: 0 !important; width: 15px !important; height: 15px !important; min-width: 0 !important; min-height: 0 !important; flex: 0 0 15px !important; box-shadow: none !important; }
.rq-tag:has(input:checked) { color: var(--rq-text); border-color: var(--rq-lime-line); background: var(--rq-lime-soft); }
.rq-add { display: flex; gap: 8px; }
.rq-add input { flex: 1 1 auto; }
.rq-lc-note { margin: 0; font-size: 12px; color: var(--rq-dim); }
.rq-lc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 16px; border-top: 1px solid var(--rq-line); }
.rq-lc-status { font-size: 12.5px; color: var(--rq-lime); }
#rqLinkCard .rq-banner { margin: 0; }

/* ── Responsivo ── */
@media (max-width: 1100px) {
  #requests.rq-detail-open .rq-body { grid-template-columns: minmax(0, 1fr); }
  .rq-detail { position: fixed; inset: 0; z-index: 2147482000; max-height: none; border-radius: 0; border: 0; padding: 18px 16px calc(24px + env(safe-area-inset-bottom)); }
  #requests.rq-detail-open .rq-list { display: none; }
}
@media (max-width: 760px) {
  .rq-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rq-head-actions, .rq-head-actions .rq-btn { flex: 1 1 auto; }
  .rq-search, .rq-search input { width: 100%; }
  .rq-filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -2px; padding: 2px; scrollbar-width: none; max-width: 100%; }
  .rq-chip { flex: none; }
  .rq-d-grid { grid-template-columns: minmax(0, 1fr); }
  .rq-d-contact .rq-btn { flex: 1 1 100%; }
  #rqLinkCard { padding: 18px; }
  .rq-lc-head { flex-wrap: wrap; }
  .rq-slug { flex-direction: column; }
  .rq-slug em { place-items: start; padding: 10px 12px 0; font-size: 11.5px; }
  .rq-slug input { padding-left: 12px; }
  .rq-lc-actions .rq-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .rq-skel { animation: none; } .rq-toast, .rq-item, .rq-switch span, .rq-switch span::after { transition: none; } }
