    .chips {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-bottom: 8px;
    }

    .chip {
      padding: 4px 9px;
      border-radius: 999px;
      border: 1px solid rgba(245, 179, 66, 0.7);
      font-size: 11px;
      color: var(--text-main);
      background: rgba(6, 6, 14, 0.95);
      cursor: pointer;
      opacity: 0.7;
      transition: opacity 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease,
        background 0.18s ease;
    }

    .chip:hover {
      opacity: 1;
      transform: translateY(-1px);
      box-shadow: 0 0 16px rgba(245, 179, 66, 0.5);
      background: rgba(10, 10, 18, 1);
    }

    .status {
      font-size: 12px;
      min-height: 18px;
      margin-bottom: 10px;
      color: var(--text-soft);
    }

    .status.error {
      color: var(--error);
    }

    .status.success {
      color: var(--success);
    }

    .portal-output {
      max-height: 320px;
      overflow: hidden auto;
      padding: 12px 10px 4px;
      border-radius: 16px;
      background: radial-gradient(circle at top, rgba(0, 0, 0, 0.4), transparent 55%);
      border: 1px solid rgba(245, 179, 66, 0.35);
      font-size: 13px;
      line-height: 1.55;
      color: var(--text-main);
      position: relative;
    }

    .portal-output h2 {
      font-size: 15px;
      margin-bottom: 8px;
      color: var(--accent);
      text-transform: uppercase;
      letter-spacing: 0.12em;
    }

    .portal-output h3 {
      font-size: 14px;
      margin-top: 10px;
      margin-bottom: 4px;
      color: var(--accent);
    }

    .portal-output p + p {
      margin-top: 7px;
    }

    .portal-output::-webkit-scrollbar {
      width: 6px;
    }

    .portal-output::-webkit-scrollbar-track {
      background: transparent;
    }

    .portal-output::-webkit-scrollbar-thumb {
      background: rgba(245, 179, 66, 0.8);
      border-radius: 999px;
    }

    .portal-output .watermark {
      position: absolute;
      inset: auto -60px 8px auto;
      font-size: 10px;
      letter-spacing: 0.28em;
      text-transform: uppercase;
      color: rgba(245, 179, 66, 0.4);
      writing-mode: vertical-rl;
      opacity: 0.6;
    }

    .footer-note {
      margin-top: 16px;
      font-size: 11px;
      color: var(--text-soft);
      display: flex;
      justify-content: space-between;
      gap: 10px;
      flex-wrap: wrap;
      opacity: 0.9;
    }

    .footer-note strong {
      color: var(--accent);
      font-weight: 500;
    }
  
    /* ====== PATCH RESPONSIVO (Amanda) ====== */
    /* 1) No celular, não centraliza travando o scroll */
    @media (max-width: 820px) {
      body{
        align-items: flex-start;   /* em vez de center */
        justify-content: flex-start;
        padding: 16px;
      }
      .card{
        padding: 18px 14px 14px;
        border-radius: 18px;
      }
    }

    /* 2) A caixa do texto do portal precisa respirar e rolar */
    .portal-output{
      max-height: min(62vh, 560px); /* era baixo demais no mobile */
      overflow: auto;              /* rola sem cortar */
      -webkit-overflow-scrolling: touch;
    }

    /* 3) ESSENCIAL: quebrar linha do <pre> */
    .portal-output pre{
      white-space: pre-wrap;
      word-break: break-word;
      overflow-wrap: anywhere;
    }

    /* 4) Pequeno ganho de leitura */
    .portal-output{
      font-size: 14px;
      line-height: 1.65;
    }
    /* ====== FIM PATCH ====== */


    /* ====== AMANDA CHAT — EXAGERADO.LINK ====== */
    .amanda-section {
      margin-top: 26px;
      border-radius: 22px;
      border: 1px solid rgba(245, 179, 66, 0.34);
      background:
        radial-gradient(circle at top left, rgba(245, 179, 66, 0.16), transparent 58%),
        linear-gradient(135deg, rgba(255,255,255,0.025), rgba(245,179,66,0.025)),
        rgba(4, 4, 10, 0.88);
      padding: 18px;
      box-shadow: 0 18px 42px rgba(0,0,0,0.72), 0 0 28px rgba(245,179,66,0.14);
    }

    .amanda-section-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 14px;
      margin-bottom: 14px;
      flex-wrap: wrap;
    }

    .amanda-kicker {
      font-size: 11px;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 6px;
    }

    .amanda-title {
      font-size: clamp(18px, 2.4vw, 24px);
      line-height: 1.2;
      font-weight: 640;
      margin-bottom: 6px;
    }

    .amanda-copy {
      color: var(--text-soft);
      font-size: 14px;
      line-height: 1.6;
      max-width: 680px;
    }

    .amanda-login {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
      gap: 10px;
      margin-top: 14px;
      align-items: center;
    }

    .amanda-login input,
    .amanda-chat-input input {
      width: 100%;
      padding: 11px 13px;
      border-radius: 999px;
      border: 1px solid rgba(245, 179, 66, 0.45);
      background: rgba(5, 5, 12, 0.95);
      color: var(--text-main);
      outline: none;
      font-size: 14px;
    }

    .amanda-login input:focus,
    .amanda-chat-input input:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 1px rgba(245, 179, 66, 0.45), 0 0 18px rgba(245, 179, 66, 0.2);
    }

    .amanda-login small {
      grid-column: 1 / -1;
      color: rgba(184,186,198,0.82);
      font-size: 11px;
      line-height: 1.4;
    }

    .amanda-chat {
      display: none;
      margin-top: 14px;
      border-radius: 18px;
      border: 1px solid rgba(245, 179, 66, 0.28);
      background: rgba(2, 2, 8, 0.72);
      overflow: hidden;
    }

    .amanda-chat.active {
      display: block;
    }

    .amanda-chat-top {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: center;
      padding: 12px 14px;
      border-bottom: 1px solid rgba(245,179,66,0.22);
      background: rgba(245,179,66,0.06);
    }

    .amanda-chat-top strong {
      color: var(--accent);
      letter-spacing: 0.04em;
    }

    .amanda-chat-top span {
      color: var(--text-soft);
      font-size: 12px;
    }

    .amanda-messages {
      height: min(48vh, 420px);
      min-height: 280px;
      overflow: auto;
      padding: 14px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      -webkit-overflow-scrolling: touch;
    }

    .amanda-msg {
      max-width: 88%;
      padding: 10px 12px;
      border-radius: 15px;
      font-size: 14px;
      line-height: 1.55;
      white-space: pre-wrap;
    }

    .amanda-msg.user {
      align-self: flex-end;
      color: #170d03;
      background: linear-gradient(135deg, #ffd891, #f5b342);
      box-shadow: 0 8px 20px rgba(245,179,66,0.22);
      border-bottom-right-radius: 5px;
    }

    .amanda-msg.assistant {
      align-self: flex-start;
      color: var(--text-main);
      background: rgba(255,255,255,0.055);
      border: 1px solid rgba(245,179,66,0.18);
      border-bottom-left-radius: 5px;
    }

    .amanda-msg.system {
      align-self: center;
      max-width: 96%;
      color: var(--text-soft);
      background: transparent;
      border: 1px dashed rgba(245,179,66,0.22);
      font-size: 12px;
      text-align: center;
    }

    .amanda-chat-input {
      display: flex;
      gap: 8px;
      padding: 12px;
      border-top: 1px solid rgba(245,179,66,0.22);
      background: rgba(0,0,0,0.22);
    }

    .amanda-mini-btn {
      background: transparent;
      color: var(--accent);
      border: 1px solid rgba(245,179,66,0.35);
      box-shadow: none;
      padding: 8px 12px;
      font-size: 11px;
    }

    .amanda-mini-btn:hover {
      box-shadow: 0 0 18px rgba(245,179,66,0.24);
    }

    .amanda-error {
      color: var(--error);
      font-size: 12px;
      margin-top: 10px;
      min-height: 16px;
    }

    @media (max-width: 720px) {
      .amanda-login {
        grid-template-columns: 1fr;
      }
      .amanda-chat-input {
        flex-direction: column;
      }
      .amanda-msg {
        max-width: 95%;
      }
    }
    /* ====== FIM AMANDA CHAT ====== */
