/* ============================================================
   PRESCRIÇÃO ILUSTRADA · Painel (01/out/2026)
   Linguagem do handoff v2: palco claro, cartão branco, Mirante
   no título, rótulo em caixa alta pequena, dourado só no detalhe.
   ============================================================ */
.prx-ov { position: fixed; inset: 0; z-index: 99990; background: rgba(33,29,24,.45); display: flex; align-items: center; justify-content: center; padding: 18px; }
.prx { background: #F6F2EE; border-radius: 18px; width: 100%; max-width: 860px; max-height: calc(100vh - 36px); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px rgba(20,15,10,.35); }
.prx-top { display: flex; justify-content: space-between; gap: 16px; padding: 22px 26px 16px; background: #FFFFFF; border-bottom: 1px solid rgba(46,42,38,.08); }
.prx-kicker { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: #8A6E38; font-weight: 700; }
.prx-top h3 { font-family: var(--font-display, 'Mirante', serif); font-weight: 500; font-size: 23px; color: #1E1915; margin: 6px 0 4px; }
.prx-top p { font-size: 12.5px; color: #6B6152; line-height: 1.5; max-width: 560px; margin: 0; }
.prx-x { background: transparent; border: 0; font-size: 26px; line-height: 1; color: #8D7B6A; cursor: pointer; padding: 2px 6px; align-self: flex-start; }
.prx-corpo { overflow-y: auto; padding: 16px 26px 8px; flex: 1; }
.prx-sec { background: #FFFFFF; border: 1px solid rgba(46,42,38,.08); border-radius: 14px; padding: 14px 18px; margin-bottom: 12px; }
.prx-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; list-style: none; cursor: default; }
details.prx-sec > summary.prx-sec-h { cursor: pointer; margin-bottom: 0; }
details.prx-sec[open] > summary.prx-sec-h { margin-bottom: 10px; }
.prx-sec-h::-webkit-details-marker { display: none; }
.prx-sec-h b { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: #2E2A26; font-weight: 700; }
.prx-sec-h span { font-size: 11.5px; color: #8D7B6A; }
.prx-sem { display: block; width: 100%; height: 100%; opacity: .55; background: url('simbolo-ouro.png') center/40% no-repeat; }
.prx-msg { font-size: 12px; color: #8D7B6A; margin-top: 8px; font-style: italic; }
.prx-msg.erro { color: #9A4A3A; font-style: normal; }
.prx-cands { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.prx-cand { width: 74px; height: 74px; border-radius: 10px; background: #FFFFFF; border: 1px solid rgba(46,42,38,.14); padding: 3px; cursor: pointer; overflow: hidden; transition: border-color .15s, transform .15s; }
.prx-cand:hover { border-color: #8A6E38; transform: translateY(-1px); }
.prx-cand img { width: 100%; height: 100%; object-fit: contain; border-radius: 7px; }
.prx-acoes { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.prx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: #FFFFFF; color: #1E1915; border: 1px solid rgba(46,42,38,.18); border-radius: 9px; padding: 7px 12px; font-size: 11.5px; font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap; }
.prx-btn:hover { border-color: #8A6E38; }
.prx-btn[disabled] { opacity: .5; cursor: default; }
.prx-btn.leve { border-color: transparent; color: #8D7B6A; font-weight: 500; }
.prx-btn.escuro { background: #211D18; color: #F6F2EE; border-color: #211D18; }
.prx-btn.grande { padding: 11px 22px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; }
.prx-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 8px; }
.prx-opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid rgba(46,42,38,.12); border-radius: 11px; padding: 11px 13px; cursor: pointer; background: #FFFFFF; }
.prx-opt input { margin-top: 2px; accent-color: #8A6E38; }
.prx-opt b { display: block; font-size: 13px; color: #1E1915; }
.prx-opt i { display: block; font-style: normal; font-size: 11.5px; color: #8D7B6A; margin-top: 1px; }
.prx-opt.mini { padding: 8px 12px; }
.prx-check { display: flex; gap: 9px; align-items: center; font-size: 12.5px; color: #2E2A26; margin-top: 10px; cursor: pointer; }
.prx-check input { accent-color: #8A6E38; }
.prx-campos { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 14px; }
.prx-campo { display: flex; flex-direction: column; gap: 4px; }
.prx-campo.largo { grid-column: 1 / -1; }
.prx-campo > span { font-size: 11px; color: #6B6152; font-weight: 600; }
.prx-campo > span i { font-weight: 400; color: #A89A8A; font-style: normal; }
.prx-campo input, .prx-campo textarea { font-family: inherit; font-size: 13px; color: #1E1915; background: #FDFBF7; border: 1px solid rgba(46,42,38,.14); border-radius: 9px; padding: 8px 10px; resize: vertical; }
.prx-campo input:focus, .prx-campo textarea:focus { outline: none; border-color: #8A6E38; }
.prx-salvar { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.prx-salvo { font-size: 11.5px; color: #4E5A40; font-weight: 600; }
.prx-rodape { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 26px; background: #FFFFFF; border-top: 1px solid rgba(46,42,38,.08); }
.prx-rodape > span { font-size: 11.5px; color: #8D7B6A; }
@media (max-width: 640px) {
  .prx-ov { padding: 0; align-items: stretch; }
  .prx { border-radius: 0; max-height: none; }
  .prx-top, .prx-corpo, .prx-rodape { padding-left: 16px; padding-right: 16px; }
  .prx-acoes { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .prx-campos { grid-template-columns: 1fr; }
}

/* grade de fotos (02/out): chegam sozinhas, toque só pra trocar */
.prx-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-bottom: 12px; }
.prx-tile { position: relative; background: #FFFFFF; border: 1px solid rgba(46,42,38,.1); border-radius: 14px; transition: border-color .15s, transform .15s, opacity .15s; }
.prx-tile-b { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; background: transparent; border: 0; padding: 14px 8px 10px; cursor: pointer; font-family: inherit; text-align: center; }
.prx-tile.fora { opacity: .45; }
.prx-vai { position: absolute; top: 8px; left: 8px; z-index: 1; cursor: pointer; }
.prx-vai input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.prx-vai span { display: block; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid rgba(46,42,38,.28); background: #FFFFFF; }
.prx-vai input:checked + span { background: #211D18 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23F6F2EE' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat; border-color: #211D18; }
.prx-vai input:focus-visible + span { outline: 2px solid #8A6E38; outline-offset: 2px; }
.prx-tile:hover { border-color: #8A6E38; transform: translateY(-1px); }
.prx-tile.on { border-color: #8A6E38; box-shadow: 0 0 0 2px rgba(138,110,56,.18); }
.prx-tile-f { position: relative; width: 84px; height: 84px; display: flex; align-items: flex-end; justify-content: center; }
.prx-tile-f::before { content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 72px; height: 72px; border-radius: 50%; background: #F2EADF; }
.prx-tile-f img { position: relative; max-width: 72px; max-height: 82px; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(30,25,21,.14)); }
.prx-tile-f .prx-sem { position: relative; width: 72px; height: 72px; }
.prx-tile-n { font-size: 12px; font-weight: 600; color: #1E1915; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prx-tile-s { font-size: 11px; color: #8D7B6A; }
.prx-tile-s.erro { color: #9A4A3A; }
.prx-giro { position: absolute; inset: 6px; border-radius: 50%; border: 2px solid rgba(138,110,56,.18); border-top-color: #8A6E38; animation: prxGiro .9s linear infinite; }
@keyframes prxGiro { to { transform: rotate(360deg); } }
.prx-troca { background: #FFFFFF; border: 1px solid rgba(138,110,56,.35); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; }
.prx-troca-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.prx-troca-h b { font-size: 14px; color: #1E1915; }
.prx-troca-h span { font-size: 12px; color: #8D7B6A; }
.prx-troca .prx-acoes { flex-direction: row; flex-wrap: wrap; margin-top: 12px; }
