/* IAprova — Resumão v404.25 (visual moderno, responsivo; iOS/Android/Windows/macOS/Linux) */
#resumao-container{--rm-navy:#122d6a;--rm-blue:#1d4fa8;--rm-ink:#17243b;--rm-muted:#52627a;--rm-line:#dce3ed;--rm-card:#fff;
 color:var(--rm-ink);background:linear-gradient(180deg,#eef3fb 0,#f5f7fb 340px);
 height:calc(100vh - 68px);height:calc(100dvh - 68px - env(safe-area-inset-bottom,0px));min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;
 font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;text-size-adjust:100%}
#resumao-container *{box-sizing:border-box}
.resumao-main{max-width:1200px;width:100%;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;margin:0 auto;padding:32px 24px 110px;overscroll-behavior:contain;scroll-padding-bottom:110px}

/* Cabeçalho */
.resumao-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:24px}
.resumao-heading>section:first-child{border-left:4px solid var(--rm-blue);padding-left:18px;min-width:0}
.resumao-heading h1{font-size:clamp(28px,4vw,38px);line-height:1.1;font-weight:800;letter-spacing:-.02em;color:var(--rm-navy);margin:6px 0 12px;overflow-wrap:anywhere}
.resumao-heading p{line-height:1.6;margin:6px 0;max-width:620px;font-size:15px}
.resumao-kicker{font-size:11px!important;font-weight:700;letter-spacing:.14em;color:#486585;margin:0!important;text-transform:uppercase}
.resumao-credit{display:flex;align-items:center;gap:14px;border:1px solid #cddcf3;border-radius:16px;background:linear-gradient(135deg,#e9f1fd,#dbe8fb);padding:16px 20px;max-width:440px;flex:0 1 auto;box-shadow:0 4px 18px #1d4fa81a}
.resumao-credit-icon{flex:none;width:44px;height:44px;border-radius:12px;background:rgba(255,255,255,.7);color:var(--rm-blue);display:inline-flex;align-items:center;justify-content:center;font-size:20px}
.resumao-credit-text{min-width:0}
.resumao-credit strong{display:block;font-size:17px;color:var(--rm-navy);line-height:1.3}
.resumao-credit p{margin:4px 0 0!important;font-size:12px!important;line-height:1.5!important;color:#3f5679}
.resumao-note{border:1px solid #d6e0ee;border-radius:12px;padding:16px 20px;background:#edf3fc;line-height:1.6;margin:22px 0}
.resumao-warning{background:#fff7e9;border-color:#ecd6ac;color:#6d4a15}

/* Ferramentas */
.resumao-tools{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:28px 0 14px}
.resumao-search{flex:1 1 260px;min-width:0;position:relative;display:block}
.resumao-search>i{position:absolute;left:16px;top:50%;transform:translateY(-50%);color:#5b6d86;font-size:15px;pointer-events:none}
.resumao-tools input{width:100%;min-width:0;height:48px;border:1px solid #cfd9e7;border-radius:14px;background:#fff;color:var(--rm-ink);padding:0 16px 0 44px;font:inherit;font-size:16px;-webkit-appearance:none;appearance:none;box-shadow:0 1px 2px #122d6a0a;transition:border-color .15s,box-shadow .15s}
.resumao-tools input::-webkit-search-decoration,.resumao-tools input::-webkit-search-cancel-button{-webkit-appearance:none}
.resumao-tools input::placeholder{color:#74839a}
.resumao-select{position:relative;flex:0 0 auto}
.resumao-select select{height:48px;min-width:190px;border:1px solid #cfd9e7;border-radius:14px;background:#fff;color:var(--rm-ink);padding:0 42px 0 16px;font:inherit;font-size:16px;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;box-shadow:0 1px 2px #122d6a0a;max-width:100%}
.resumao-select>i{position:absolute;right:16px;top:50%;transform:translateY(-50%);font-size:12px;color:#3f5679;pointer-events:none}
.resumao-tools input:hover,.resumao-select select:hover{border-color:#a9bbd3}
.resumao-tools input:focus,.resumao-select select:focus{border-color:var(--rm-blue);box-shadow:0 0 0 3px #1d4fa826;outline:none}
.resumao-subtle{font-size:13px;color:var(--rm-muted);line-height:1.5}
#resumao-list-status{margin:0 0 18px}

/* Botões */
.resumao-button{border:1px solid var(--rm-blue);border-radius:12px;padding:0 18px;min-height:46px;font:600 14px/1.2 inherit;font-family:inherit;cursor:pointer;background:var(--rm-blue);color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation;transition:background .15s,border-color .15s,transform .05s,box-shadow .15s}
.resumao-button:hover:not(:disabled){background:#17408a;border-color:#17408a;box-shadow:0 4px 12px #1d4fa833}
.resumao-button:active:not(:disabled){transform:translateY(1px)}
.resumao-button.secondary{background:#fff;color:var(--rm-navy);border-color:#c3d0e2}
.resumao-button.secondary:hover:not(:disabled){background:#f1f5fb;border-color:#9fb3d1;box-shadow:none}
.resumao-button:disabled{opacity:.55;cursor:not-allowed}
.resumao-button:focus-visible,.resumao-tools input:focus-visible,.resumao-select select:focus-visible{outline:3px solid #3785d6;outline-offset:2px}
.resumao-actions{display:flex;flex-wrap:wrap;gap:8px}
.resumao-tools .resumao-button{height:48px}

/* Grade e cards */
.resumao-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:20px;align-items:stretch}
.resumao-card{background:var(--rm-card);border:1px solid var(--rm-line);border-radius:20px;padding:22px;display:flex;flex-direction:column;align-items:stretch;gap:14px;box-shadow:0 2px 6px #122d6a08,0 8px 24px #122d6a08;transition:box-shadow .2s,transform .2s,border-color .2s;min-width:0}
.resumao-card:hover{box-shadow:0 4px 10px #122d6a0d,0 14px 32px #122d6a14;border-color:#c9d6e8}
.resumao-card h2{font-size:20px;line-height:1.25;color:var(--rm-navy);font-weight:750;letter-spacing:-.01em;margin:0;overflow-wrap:anywhere}
.resumao-card p{font-size:14px;line-height:1.6;margin:0}
.resumao-card small{color:var(--rm-muted);line-height:1.6;font-size:13px}
.resumao-status{align-self:flex-start;display:inline-flex;align-items:center;font-size:12px;font-weight:700;background:#eef2f8;color:#3d4f68;border-radius:999px;padding:5px 12px}
.resumao-status[data-status=completed]{background:#e1f5e9;color:#16653d}
.resumao-status[data-status=failed]{background:#fde8e4;color:#a03422}
.resumao-status[data-status=generating]{background:#e4edff;color:#1d4c99}
.resumao-status[data-status=unavailable]{background:#f1efe9;color:#6b5a38}
.resumao-meta{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
.resumao-meta li{display:flex;gap:11px;align-items:flex-start;font-size:14px;line-height:1.5;color:#2b3a52}
.resumao-meta li>i{flex:none;width:18px;margin-top:3px;text-align:center;color:#40597f;font-size:14px}
.resumao-meta li>span{min-width:0;overflow-wrap:anywhere}
.resumao-card-body{border-top:1px solid #e6ecf4;padding-top:14px;display:flex;flex-direction:column;gap:10px}
.resumao-card-foot{margin-top:auto;border-top:1px solid #e6ecf4;padding-top:16px;display:flex;flex-direction:column;gap:12px;align-items:stretch}
.resumao-card-foot .resumao-actions{align-items:stretch}
.resumao-card-foot .resumao-actions .resumao-button:first-child{flex:1 1 auto}
.resumao-card-foot .resumao-actions .resumao-button.secondary{flex:0 0 auto;padding:0 14px}
.resumao-card-foot .resumao-actions .resumao-button:only-child{width:100%}
.resumao-foot{text-align:center;font-size:12px!important;color:#6a7a92!important}
.resumao-card progress{width:100%;height:8px;border:0;border-radius:99px;overflow:hidden;background:#e6edf7;accent-color:var(--rm-blue);-webkit-appearance:none;appearance:none}
.resumao-card progress::-webkit-progress-bar{background:#e6edf7;border-radius:99px}
.resumao-card progress::-webkit-progress-value{background:linear-gradient(90deg,var(--rm-navy),#3785d6);border-radius:99px}
.resumao-card progress::-moz-progress-bar{background:linear-gradient(90deg,var(--rm-navy),#3785d6);border-radius:99px}
.resumao-empty{grid-column:1/-1;padding:35px;background:#fff;border:1px solid var(--rm-line);border-radius:16px;line-height:1.7;text-align:center}

/* Chat dock, diálogo, leitor, geração em tela */
.resumao-chat-dock{position:relative;justify-self:end;z-index:42;padding:10px 18px;background:#f5f7fb}
.resumao-chat-dock button{border:0;border-radius:26px;min-height:52px;padding:12px 20px;background:var(--rm-navy);color:#fff;box-shadow:0 4px 14px #122d6a30;cursor:pointer;font:600 14px inherit;font-family:inherit;display:flex;gap:10px;align-items:center}
body.sv2-modal-open .resumao-chat-dock{display:none}
.resumao-dialog{border:0;border-radius:20px;max-width:480px;width:calc(100vw - 32px);padding:26px;color:var(--rm-ink);background:#fff;box-shadow:0 20px 80px #122d6a40}
.resumao-dialog::backdrop{background:#091b3a80}
.resumao-dialog h2{font:700 22px inherit;font-family:inherit;color:var(--rm-navy)}
.resumao-dialog p{font:16px/1.6 inherit;font-family:inherit}
.resumao-dialog .resumao-actions{margin-top:24px}
.resumao-reader-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:20px;margin-top:24px}
.resumao-toc{position:sticky;top:15px;align-self:start;max-height:72vh;overflow:auto;background:#fff;border:1px solid var(--rm-line);border-radius:14px;padding:15px;font-size:14px;line-height:1.7}
.resumao-toc summary{cursor:pointer;font-weight:700;color:var(--rm-navy)}
.resumao-toc a{display:block;color:#234e86;padding:7px 0}
.resumao-toc ul{padding-left:14px;list-style:disc}
.resumao-toc ul ul{font-size:12px}
.resumao-reader-content{background:#fff;border:1px solid var(--rm-line);border-radius:14px;min-width:0}
.resumao-alert{color:#8d3024;line-height:1.5}
.resumao-print-frame{position:fixed;width:1px;height:1px;border:0;left:-10000px;top:0}
.resumao-reader-content .rm-toc{display:none}
.resumao-loading{padding:60px 20px;text-align:center;color:#425c7e}
.resumao-progress{margin-top:26px;background:#fff;border:1px solid var(--rm-line);border-radius:20px;padding:26px;box-shadow:0 3px 10px #122d6a0a;max-width:760px}
.resumao-progress-phase{font:700 18px inherit;font-family:inherit;color:var(--rm-navy);margin:0 0 14px}
.resumao-progress-track{height:10px;background:#e8eef7;border-radius:999px;overflow:hidden}
.resumao-progress-bar{height:100%;width:2%;background:linear-gradient(90deg,var(--rm-navy),#3785d6);border-radius:999px;transition:width .35s ease}
.resumao-progress-detail{font-size:14px;color:#41556f;margin:14px 0 6px;line-height:1.6}
.resumao-progress-topic{font-size:13px;color:var(--rm-muted);margin:0 0 14px;min-height:18px;font-style:italic}
.resumao-progress .resumao-actions{margin:6px 0 12px}
.resumao-progress .resumao-subtle{display:block;margin-top:6px}

/* Telas largas: credit alinhado à direita; tablets */
@media(max-width:980px){
 .resumao-heading{flex-direction:column;gap:18px}
 .resumao-credit{max-width:none;width:100%}
}
/* Celulares */
@media(max-width:760px){
 .resumao-main{padding:20px 16px 120px}
 .resumao-heading>section:first-child{padding-left:14px}
 .resumao-heading p{font-size:14px}
 .resumao-credit{padding:14px 16px}
 .resumao-tools{gap:10px;margin-top:22px}
 .resumao-search{flex:1 1 100%}
 .resumao-select{flex:1 1 100%}
 .resumao-select select{width:100%}
 .resumao-tools .resumao-button{flex:1 1 calc(50% - 5px);padding:0 12px}
 .resumao-grid{grid-template-columns:1fr;gap:16px}
 .resumao-card{padding:18px;border-radius:18px}
 .resumao-card:hover{transform:none}
 .resumao-reader-layout{grid-template-columns:1fr}
 .resumao-toc{position:static;max-height:320px}
 .resumao-chat-dock button span{display:none}
 .resumao-chat-dock button{width:52px;padding:0;justify-content:center}
 .resumao-reader-content{margin:0 -8px}
 .resumao-heading>.resumao-actions{width:100%}
 .resumao-heading>.resumao-actions .resumao-button{flex:1 1 auto}
}
@media(max-width:380px){
 .resumao-tools .resumao-button{flex:1 1 100%}
 .resumao-card-foot .resumao-actions .resumao-button.secondary{flex:1 1 auto}
}
/* Preferências do sistema */
@media(prefers-reduced-motion:reduce){
 .resumao-card,.resumao-button,.resumao-progress-bar,.resumao-tools input{transition:none!important}
}
@media(hover:none){.resumao-button:hover:not(:disabled){box-shadow:none}.resumao-card:hover{box-shadow:0 2px 6px #122d6a08,0 8px 24px #122d6a08}}
@media print{.resumao-chat-dock,.resumao-heading,.resumao-tools,.resumao-toc{display:none!important}}
