/* Extensões do portal. A identidade e a composição aprovadas ficam em styles.css. */
#noesis-preview { --p-border: #28536a; --p-surface: #0b1e2c; --p-soft: #071622; --p-warning: #f2c676; }
#noesis-preview .n-portal { min-height: 100svh; display: flex; flex-direction: column; }
#noesis-preview .n-main { flex: 1; min-width: 0; padding-bottom: 38px; }
#noesis-preview .n-nav [aria-current="page"] { color: var(--n-cyan); box-shadow: inset 0 -2px var(--n-cyan); }
#noesis-preview :is(input, textarea, select) { font: inherit; }
#noesis-preview button { cursor: pointer; }
#noesis-preview button:disabled { cursor: not-allowed; opacity: .5; }
#noesis-preview :is(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid #e4faff; outline-offset: 4px; }
#noesis-preview .p-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
#noesis-preview .p-skip-link { position: fixed; z-index: 20; top: 10px; left: 10px; padding: 12px 18px; background: #072636; border: 2px solid var(--n-cyan); color: white; transform: translateY(-150%); }
#noesis-preview .p-skip-link:focus { transform: translateY(0); }
#noesis-preview .p-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 24px 0 0; font-size: 12px; color: #92b1c4; overflow-wrap: anywhere; }
#noesis-preview .p-breadcrumbs a { color: #c2d9e8; padding: 5px 0; }
#noesis-preview .p-breadcrumbs a:hover { color: var(--n-cyan); }
#noesis-preview .p-breadcrumbs > span[aria-hidden] { color: #4f829b; }
#noesis-preview .p-page-head { padding: 32px 0 37px; max-width: 1030px; }
#noesis-preview .p-page-head h1 { font-size: clamp(32px,4.1cqw,56px); line-height: 1.12; overflow-wrap: anywhere; }
#noesis-preview .p-page-head > p:not(.n-kicker):not(.p-eyebrow) { max-width: 760px; margin: 19px 0 0; color: var(--n-muted); font-size: 17px; line-height: 1.65; }
#noesis-preview .p-page-head-compact { padding-bottom: 28px; max-width: none; }
#noesis-preview .p-page-head-compact h1 { font-size: clamp(30px,3.4cqw,44px); }
#noesis-preview .p-eyebrow { margin: 0 0 12px; color: var(--n-cyan); text-transform: uppercase; font-size: 11px; letter-spacing: .15em; font-weight: 700; }
#noesis-preview .p-heading-row, #noesis-preview .p-section-title { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
#noesis-preview .p-section-title { margin-bottom: 19px; }
#noesis-preview .p-section-title h2 { margin: 0; }
#noesis-preview .p-section-title > svg { color: var(--n-cyan); }
#noesis-preview .p-heading-row > h1 { flex: 1; min-width: 0; }
#noesis-preview .p-section { margin-block: 30px; }
#noesis-preview .p-content-panel { padding: 28px; min-width: 0; border: 1px solid var(--p-border); border-radius: 5px; background: linear-gradient(145deg,#102b3b,#071622 70%); box-shadow: inset 0 1px #5e91a729; }
#noesis-preview .p-content-panel h2 { font-size: 24px; line-height: 1.25; }
#noesis-preview .p-content-panel h3 { font-size: 17px; line-height: 1.4; }
#noesis-preview .p-content-panel p { color: #b9cee0; line-height: 1.7; font-size: 14px; }
#noesis-preview .p-content-panel > :first-child { margin-top: 0; }
#noesis-preview .p-content-panel > :last-child { margin-bottom: 0; }
#noesis-preview .p-page-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
#noesis-preview .p-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
#noesis-preview .p-split > * { min-width: 0; }
#noesis-preview .p-stack { display: flex; flex-direction: column; gap: 18px; }
#noesis-preview .p-stack > :last-child { margin-bottom: 0; }
#noesis-preview .p-prose { color: #c2d7e5; font-size: 15px; line-height: 1.85; }
#noesis-preview .p-prose p { font-size: 15px; }
#noesis-preview .p-prose h2:not(:first-child) { margin-top: 30px; }
#noesis-preview .p-prose h3 { color: #e8f5ff; margin: 25px 0 8px; }
#noesis-preview .p-prose ul { padding-left: 22px; }
#noesis-preview .p-prose li { margin-block: 7px; }
#noesis-preview .p-callout { background: #0c2a38; border-left: 3px solid var(--n-cyan); padding: 22px 25px; color: #cee6ef; }
#noesis-preview .p-callout h2 { font-size: 24px; }
#noesis-preview .p-callout p { line-height: 1.7; font-size: 14px; }
#noesis-preview .p-callout > :first-child { margin-top: 0; }
#noesis-preview .p-callout > :last-child { margin-bottom: 0; }
#noesis-preview .p-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-block: 23px; }
#noesis-preview .p-actions form { margin: 0; max-width: 100%; }
#noesis-preview .p-actions .n-button { width: auto; }
#noesis-preview .p-small { font-size: 12px !important; line-height: 1.65; }
#noesis-preview .p-muted { color: #a8c1d2 !important; }
#noesis-preview .p-inline-link, #noesis-preview .p-inline-button { display: inline-flex; align-items: center; gap: 8px; color: #65e2f2; font-size: 13px; line-height: 1.5; min-height: 44px; }
#noesis-preview .p-inline-link:hover, #noesis-preview .p-inline-button:hover { color: #d9fcff; }
#noesis-preview .p-inline-button { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; }
#noesis-preview .p-inline-link svg, #noesis-preview .p-inline-button svg { width: 18px; height: 18px; flex-shrink: 0; }
#noesis-preview .p-compact-button { min-height: 46px; font-size: 12px; padding: 11px 17px; }
#noesis-preview .p-badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; max-width: 100%; color: #b8d2e2; background: #091c29; border: 1px solid #365b70; padding: 5px 9px; border-radius: 3px; font-size: 10px; font-weight: 600; line-height: 1.5; }
#noesis-preview .p-badge svg { width: 13px; height: 13px; flex-shrink: 0; }
#noesis-preview .p-badge-success { color: #80e2bf; background: #082b28; border-color: #235e50; }
#noesis-preview .p-badge-warning { color: #f6d393; background: #302716; border-color: #705c32; }
#noesis-preview .p-code { font-family: Consolas,'Liberation Mono',monospace; font-size: 11px; letter-spacing: .02em; overflow-wrap: anywhere; }
#noesis-preview .p-messages { padding-top: 22px; display: grid; gap: 10px; }
#noesis-preview .p-notice { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; margin-bottom: 20px; border: 1px solid #347888; border-radius: 4px; background: #0a2a36; color: #d5eff5; font-size: 14px; line-height: 1.6; }
#noesis-preview .p-notice > svg { width: 23px; height: 23px; flex-shrink: 0; margin-top: 2px; }
#noesis-preview .p-notice h2 { font-size: 21px; margin-bottom: 9px; }
#noesis-preview .p-notice p { margin: 5px 0 10px; font-size: 14px; color: inherit; }
#noesis-preview .p-notice p:last-child { margin-bottom: 0; }
#noesis-preview .p-notice-warning { border-color: #736136; background: #282519; color: #f2dba7; }
#noesis-preview .p-notice-error, #noesis-preview .p-form-summary { border-color: #9d5d64; background: #332028; color: #ffd4d9; }
#noesis-preview .p-notice-success { border-color: #287b66; background: #082c29; color: #a2efd3; }
#noesis-preview .p-message-page { max-width: 760px; margin-inline: auto; padding: 35px 15px 45px; text-align: center; }
#noesis-preview .p-message-page h1 { font-size: clamp(30px,4cqw,46px); line-height: 1.15; }
#noesis-preview .p-message-page .p-prose { max-width: 650px; margin: 23px auto; }
#noesis-preview .p-message-page .p-actions { justify-content: center; }
#noesis-preview .p-message-icon { display: grid; place-items: center; width: 78px; height: 78px; margin: 0 auto 25px; border: 1px solid #267a92; border-radius: 13px; background: radial-gradient(#174357,#081c2a); box-shadow: inset 0 0 16px #16d7ed19; }
#noesis-preview .p-message-icon svg { width: 35px; height: 35px; color: var(--n-cyan); }
/* Bibliotecas e consulta */
#noesis-preview .p-library-collections { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
#noesis-preview .p-collection-card .n-panel-core { padding: 33px; }
#noesis-preview .p-collection-icon { margin-bottom: 19px; width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid #2d6882; background: radial-gradient(#114354,#081d2b); border-radius: 6px; box-shadow: 0 0 30px #06d8ed0b; }
#noesis-preview .p-collection-icon svg { width: 37px; height: 37px; color: var(--n-cyan); }
#noesis-preview .p-collection-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 17px; }
#noesis-preview .p-collection-topline .n-panel-label { margin: 0; font-size: 10px; }
#noesis-preview .p-collection-card h2 { font-size: 32px; }
#noesis-preview .p-collection-card .n-button { margin-top: auto; }
#noesis-preview .p-collection-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 6px 0 27px; }
#noesis-preview .p-collection-tags span { color: #a1bdce; border: 1px solid #294b61; padding: 4px 8px; border-radius: 3px; font-size: 11px; }
#noesis-preview .p-library-guide { margin-top: 27px; display: grid; grid-template-columns: 1fr 1.25fr; gap: 35px; align-items: center; }
#noesis-preview .p-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
#noesis-preview .p-steps li { display: flex; align-items: start; gap: 17px; }
#noesis-preview .p-steps li > span { color: #55d4e8; font-family: monospace; font-size: 13px; border: 1px solid #2b697c; border-radius: 4px; display: grid; place-items: center; width: 35px; height: 35px; flex-shrink: 0; }
#noesis-preview .p-steps h3 { margin: 0 0 4px; color: #e1eff7; font-size: 14px; }
#noesis-preview .p-steps p { margin: 0; font-size: 12px; color: #a6c1d2; }
#noesis-preview .p-library-tabs { display: flex; gap: 7px; border-bottom: 1px solid #2c5d73; margin-bottom: 21px; }
#noesis-preview .p-library-tabs a { display: flex; gap: 9px; align-items: center; padding: 14px 20px; min-height: 50px; font-size: 14px; border-bottom: 2px solid transparent; color: #a9c3d5; }
#noesis-preview .p-library-tabs svg { width: 20px; height: 20px; color: #6ea4bd; flex-shrink: 0; }
#noesis-preview .p-library-tabs [aria-current="page"] { color: #a0f5ff; border-color: var(--n-cyan); background: linear-gradient(transparent,#0f3a4b70); }
#noesis-preview .p-library-tabs [aria-current="page"] svg { color: var(--n-cyan); }
#noesis-preview .p-search-panel { padding: 23px; border: 1px solid #2a5d73; border-radius: 5px; background: #0b2332; }
#noesis-preview .p-search-main > label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: #def2fa; }
#noesis-preview .p-search-line { display: flex; align-items: stretch; gap: 12px; }
#noesis-preview .p-search-input { display: flex; align-items: center; flex: 1; min-width: 0; padding-left: 16px; background: #061521; border: 1px solid #3a6980; border-radius: 3px; }
#noesis-preview .p-search-input > svg { width: 21px; height: 21px; color: #60b7d2; flex-shrink: 0; }
#noesis-preview .p-search-input input { width: 100%; min-width: 0; color: #e7f4fc; background: transparent; border: 0; padding: 15px; font-size: 15px; }
#noesis-preview .p-search-input:focus-within { outline: 2px solid #9ef5ff; outline-offset: 2px; }
#noesis-preview .p-search-input input:focus-visible { outline: none; }
#noesis-preview .p-search-line .n-button { min-width: 145px; }
#noesis-preview .p-filter-grid { display: grid; grid-template-columns: 1fr 1fr auto auto; align-items: end; gap: 18px; margin-top: 19px; }
#noesis-preview .p-filter-grid .p-field { margin: 0; }
#noesis-preview .p-favorite-filter { min-height: 48px; margin: 0 !important; font-size: 12px; }
#noesis-preview .p-favorite-filter > svg { width: 16px; height: 16px; flex-shrink: 0; color: #80bacd; }
#noesis-preview .p-clear-filters { display: flex; align-items: center; min-height: 48px; color: #b7d8e5; text-decoration: underline; text-underline-offset: 4px; font-size: 12px; }
#noesis-preview .p-results-heading { display: flex; gap: 16px; justify-content: space-between; align-items: center; margin: 25px 0 20px; color: #a9c7d7; font-size: 12px; }
#noesis-preview .p-results-heading p { margin: 0; overflow-wrap: anywhere; }
#noesis-preview .p-results-heading strong { color: #e5f7ff; }
#noesis-preview .p-results-heading > span { color: #779bb1; flex-shrink: 0; font-size: 11px; }
#noesis-preview .p-document-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 19px; }
#noesis-preview .p-document-card .n-panel-core { padding: 25px 22px 18px; }
#noesis-preview .p-card-top { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; color: #8ab6cc; }
#noesis-preview .p-kind-icon { width: 32px; height: 32px; display: grid; place-items: center; color: var(--n-cyan); border: 1px solid #255a71; border-radius: 4px; flex-shrink: 0; }
#noesis-preview .p-kind-icon > svg { width: 21px; height: 21px; }
#noesis-preview .p-document-card h2 { margin-top: 12px; margin-bottom: 10px; font-size: 21px; overflow-wrap: anywhere; }
#noesis-preview .p-document-card h2 a:hover { color: #8feaff; }
#noesis-preview .p-document-card p.p-application { font-size: 12px; color: #97c4d9; margin-bottom: 15px; }
#noesis-preview .p-card-meta { margin: 0 0 23px; display: grid; gap: 9px; }
#noesis-preview .p-card-meta > div { display: flex; align-items: start; justify-content: space-between; gap: 15px; font-size: 11px; }
#noesis-preview .p-card-meta dt { color: #7d9db0; flex-shrink: 0; }
#noesis-preview .p-card-meta dd { color: #bad1df; margin: 0; text-align: right; overflow-wrap: anywhere; }
#noesis-preview .p-card-actions { margin-top: auto; padding-top: 12px; border-top: 1px solid #214b60; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
#noesis-preview .p-card-actions .p-inline-link { font-size: 12px; }
#noesis-preview .p-card-actions form { margin: 0; }
#noesis-preview .p-icon-button { display: inline-flex; justify-content: center; align-items: center; min-width: 44px; min-height: 44px; padding: 10px; border: 1px solid #335e73; border-radius: 4px; background: #0b2331; color: #b9deed; }
#noesis-preview .p-icon-button svg { width: 20px; height: 20px; flex-shrink: 0; }
#noesis-preview .p-icon-button[aria-pressed="true"] { color: #69e7f4; background: #0c3a47; border-color: #3c9daf; }
#noesis-preview .p-icon-button[aria-pressed="true"] svg { fill: #1a6270; }
#noesis-preview .p-empty-state { padding: 52px 25px; text-align: center; border: 1px dashed #345a6e; border-radius: 5px; background: #0a1d2a66; }
#noesis-preview .p-empty-state > svg { width: 44px; height: 44px; color: #5db1ce; margin-bottom: 20px; }
#noesis-preview .p-empty-state h2 { font-size: 27px; line-height: 1.25; }
#noesis-preview .p-empty-state h3 { margin: 0 0 10px; color: #e0f1f9; font-size: 20px; }
#noesis-preview .p-empty-state p { max-width: 560px; margin: 0 auto 22px; color: #a5c1d1; font-size: 14px; line-height: 1.75; }
#noesis-preview .p-empty-state-small { padding: 30px 17px; border: 0; background: none; }
#noesis-preview .p-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 22px; margin-block: 30px; }
#noesis-preview .p-pagination > span { color: #b3cfde; font-size: 13px; }
#noesis-preview .p-pagination .n-button { min-height: 46px; font-size: 12px; }
#noesis-preview .p-technical-note { display: flex; align-items: flex-start; gap: 10px; margin: 28px 0 0; padding: 17px 0 0; border-top: 1px solid #214a5f; color: #8fb0c4; font-size: 11px; line-height: 1.8; }
#noesis-preview .p-technical-note svg { width: 17px; height: 17px; margin-top: 2px; flex-shrink: 0; }
/* Formulários e conta */
#noesis-preview .p-auth-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 7%; padding: 25px 35px 20px; align-items: start; }
#noesis-preview .p-auth-intro { padding-top: 35px; min-width: 0; }
#noesis-preview .p-auth-intro h1 { font-size: clamp(36px,4.6cqw,59px); line-height: 1.1; }
#noesis-preview .p-auth-intro > .n-lead { font-size: 18px; line-height: 1.65; margin-top: 25px; }
#noesis-preview .p-auth-benefits { display: grid; gap: 22px; padding: 24px 0 28px; margin-top: 18px; border-top: 1px solid #255568; }
#noesis-preview .p-auth-benefits > div { display: flex; align-items: center; gap: 15px; color: #bed8e6; font-size: 14px; }
#noesis-preview .p-auth-benefits svg { color: var(--n-cyan); width: 24px; height: 24px; flex-shrink: 0; }
#noesis-preview .p-auth-card .n-panel-core { padding: 32px; }
#noesis-preview .p-auth-card h2 { font-size: 28px; margin-top: 4px; }
#noesis-preview .p-form { margin-top: 13px; }
#noesis-preview .p-form > .n-button { margin-top: 9px; }
#noesis-preview .p-field { margin-bottom: 20px; min-width: 0; }
#noesis-preview .p-field > label { display: block; font-size: 13px; color: #d7eaf5; font-weight: 600; margin-bottom: 8px; }
#noesis-preview .p-required { color: #5bcbdc; }
#noesis-preview .p-field :is(input:not([type="checkbox"]):not([type="hidden"]), select, textarea) { display: block; width: 100%; min-width: 0; min-height: 48px; background: #051521; color: #e5f2f9; border: 1px solid #426a7f; border-radius: 3px; padding: 11px 12px; font-size: 15px; }
#noesis-preview input::placeholder { color: #7698ad; opacity: 1; }
#noesis-preview .p-field select { padding-right: 25px; }
#noesis-preview .p-field textarea { min-height: 130px; resize: vertical; }
#noesis-preview .p-field input[type="checkbox"], #noesis-preview .p-checkbox input { width: 18px; height: 18px; accent-color: #19b9d2; margin: 0; flex-shrink: 0; }
#noesis-preview .p-checkbox { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #bcd4e3; line-height: 1.6; min-height: 44px; }
#noesis-preview .p-checkbox label { cursor: pointer; }
#noesis-preview .p-checkbox a { color: #6cdded; text-decoration: underline; text-underline-offset: 3px; }
#noesis-preview .p-input-wrap { position: relative; }
#noesis-preview .p-input-wrap:has(.p-password-toggle) input { padding-right: 49px; }
#noesis-preview .p-password-toggle { position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: #8fc6db; border-radius: 2px; }
#noesis-preview .p-password-toggle svg { width: 20px; height: 20px; }
#noesis-preview .p-field-help { color: #8faec1; font-size: 11px; line-height: 1.7; margin-top: 7px; }
#noesis-preview .p-field-help ul { padding-left: 17px; margin: 5px 0; }
#noesis-preview .p-field-errors { color: #ffbbc6; font-size: 12px; line-height: 1.5; margin-top: 7px; }
#noesis-preview .p-field-errors .errorlist, #noesis-preview .p-form-summary .errorlist { list-style: none; padding: 0; margin: 0; }
#noesis-preview .p-field-invalid :is(input,select,textarea) { border-color: #d88694 !important; }
#noesis-preview .p-form-summary { border: 1px solid #a35a68; padding: 15px; border-radius: 3px; font-size: 12px; line-height: 1.6; margin-bottom: 20px; }
#noesis-preview .p-form-summary p { font-size: 13px; color: #ffd8df; font-weight: 700; margin-bottom: 8px; }
#noesis-preview .p-auth-links { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 22px; font-size: 12px; }
#noesis-preview .p-auth-links a { color: #7bdfed; text-decoration: underline; text-underline-offset: 4px; padding: 5px 0; }
#noesis-preview .p-form-footnote { margin: 23px 0 0 !important; padding-top: 17px; border-top: 1px solid #254b61; font-size: 11px !important; color: #8faec3 !important; }
#noesis-preview .p-form-footnote a { color: #a7e6f1; text-decoration: underline; text-underline-offset: 3px; }
#noesis-preview .p-account-layout { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 25px; align-items: start; }
#noesis-preview .p-account-sidebar, #noesis-preview .p-account-content { display: grid; gap: 25px; min-width: 0; }
#noesis-preview .p-profile-card { padding: 25px; }
#noesis-preview .p-profile-icon { width: 54px; height: 54px; border: 1px solid #2a7992; border-radius: 50%; background: #0b3346; display: grid; place-items: center; color: #65dfed; margin-bottom: 18px; }
#noesis-preview .p-profile-card h2 { font-size: 22px; }
#noesis-preview .p-profile-card .p-email { overflow-wrap: anywhere; font-size: 12px; margin-bottom: 16px; }
#noesis-preview .p-profile-actions { display: grid; gap: 2px; border-top: 1px solid #2b4e61; margin-top: 23px; padding-top: 10px; }
#noesis-preview .p-profile-actions form { margin: 0; }
#noesis-preview .p-help-panel h2 { font-size: 19px; }
#noesis-preview .p-help-panel p { font-size: 12px; }
#noesis-preview .p-access-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
#noesis-preview .p-access-card { min-width: 0; border: 1px solid #2f6479; background: linear-gradient(135deg,#102f40,#071a27); border-radius: 5px; padding: 22px; }
#noesis-preview .p-access-card > svg { width: 30px; height: 30px; color: var(--n-cyan); }
#noesis-preview .p-access-card h3 { font-size: 21px; margin: 15px 0 13px; color: #e5f1fa; }
#noesis-preview .p-access-card .n-button { margin-top: 24px; font-size: 12px; padding-inline: 13px; }
#noesis-preview .p-grant-list { margin-top: 19px; }
#noesis-preview .p-grant { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 0; border-top: 1px solid #284c5d; }
#noesis-preview .p-grant h3 { margin: 0 0 4px; font-size: 14px; }
#noesis-preview .p-grant p { margin: 0; font-size: 11px; color: #91b0c2; }
#noesis-preview .p-grant-dates { display: grid; gap: 3px; color: #9ebdce; font-size: 11px; }
#noesis-preview .p-bookmark-list { margin: 0; padding: 0; list-style: none; }
#noesis-preview .p-bookmark-list > li { display: flex; align-items: center; gap: 12px; padding-block: 14px; border-bottom: 1px solid #24485b; }
#noesis-preview .p-bookmark-list > li:last-child { border-bottom: 0; padding-bottom: 0; }
#noesis-preview .p-bookmark-list li > a { display: flex; align-items: center; gap: 13px; flex: 1; min-width: 0; }
#noesis-preview .p-bookmark-list li > a > svg { width: 22px; height: 22px; color: #4fd4e7; flex-shrink: 0; }
#noesis-preview .p-bookmark-list li > a > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
#noesis-preview .p-bookmark-list strong { font-size: 14px; font-weight: 600; }
#noesis-preview .p-bookmark-list small { display: block; color: #91b4c9; font-size: 11px; margin-top: 6px; }
#noesis-preview .p-bookmark-list form { margin: 0; }
/* Visualizador: a rolagem ampliada permanece dentro da área do documento. */
#noesis-preview .p-document-heading-actions { margin-bottom: 0; justify-content: space-between; }
#noesis-preview .p-document-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 24px; align-items: start; }
#noesis-preview .p-viewer { min-width: 0; max-width: 100%; background: #06131d; border: 1px solid #346a80; border-radius: 5px; overflow: hidden; }
#noesis-preview .p-viewer-heading { padding: 18px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; border-bottom: 1px solid #2b5469; background: linear-gradient(135deg,#153547,#0b2130); }
#noesis-preview .p-viewer-heading h2 { font-size: 17px; margin: 0; overflow-wrap: anywhere; flex: 1; min-width: 0; }
#noesis-preview .p-viewer-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 10px 13px; background: #0b202e; border-bottom: 1px solid #264a5d; }
#noesis-preview .p-zoom-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
#noesis-preview .p-viewer-toolbar output { width: 49px; text-align: center; color: #beddec; font-size: 12px; }
#noesis-preview .p-viewer-toolbar .p-icon-button { border-color: #31566a; background: #0a1c29; }
#noesis-preview .p-viewer-text-button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; border: 0; background: transparent; color: #a5d9e9; padding: 10px; font-size: 12px; }
#noesis-preview .p-viewer-text-button[aria-pressed="true"] { color: #87efff; box-shadow: inset 0 0 0 1px #2b98ad; background: #0b3544; }
#noesis-preview .p-viewer-text-button > svg { width: 18px; height: 18px; flex-shrink: 0; }
#noesis-preview .p-viewer-canvas { width: 100%; max-width: 100%; min-width: 0; max-height: 74vh; overflow: auto; overscroll-behavior: contain; background: #dce4e8; }
#noesis-preview .p-viewer-canvas img { display: block; width: 100%; max-width: none; height: auto; margin-inline: auto; }
#noesis-preview .p-viewer-canvas iframe { display: block; width: 100%; height: 680px; max-height: 74vh; border: 0; background: #dce4e8; }
#noesis-preview .p-viewer-loading { padding: 14px 19px; color: #91c9dc; font-size: 12px; border-bottom: 1px solid #25485d; }
#noesis-preview .p-viewer-error { text-align: center; padding: 32px 20px; color: #e6c5c8; }
#noesis-preview .p-viewer-error h3 { font-size: 20px; }
#noesis-preview .p-viewer-error p { font-size: 13px; line-height: 1.7; }
#noesis-preview .p-viewer-hint { padding: 13px 18px; font-size: 10px; color: #8caec3; margin: 0; border-top: 1px solid #24485c; }
#noesis-preview .p-viewer:fullscreen { background: #06131d; display: flex; flex-direction: column; width: 100%; height: 100%; border: 0; border-radius: 0; }
#noesis-preview .p-viewer:fullscreen .p-viewer-canvas { flex: 1; max-height: none; }
#noesis-preview .p-viewer:fullscreen .p-viewer-canvas iframe { height: 100%; max-height: none; }
#noesis-preview .p-document-sidebar { display: grid; gap: 20px; min-width: 0; }
#noesis-preview .p-document-sidebar .p-content-panel { padding: 22px; }
#noesis-preview .p-document-sidebar h2 { font-size: 20px; }
#noesis-preview .p-detail-list { display: grid; gap: 15px; margin: 20px 0 0; }
#noesis-preview .p-detail-list > div { min-width: 0; }
#noesis-preview .p-detail-list dt { color: #7fa7bd; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 5px; }
#noesis-preview .p-detail-list dd { margin: 0; color: #d1e5f0; font-size: 13px; overflow-wrap: anywhere; }
#noesis-preview .p-document-description { font-size: 12px; color: #a8c5d5; margin-top: 24px; padding-top: 18px; border-top: 1px solid #294e62; line-height: 1.8; overflow-wrap: anywhere; }
#noesis-preview .p-asset-list { display: grid; gap: 7px; margin-top: 17px; }
#noesis-preview .p-asset-list a { display: flex; align-items: center; gap: 10px; padding: 12px; background: #091e2c; border: 1px solid #2b5368; border-radius: 3px; color: #b5d1e0; min-width: 0; font-size: 12px; }
#noesis-preview .p-asset-list a > svg { width: 17px; height: 17px; flex-shrink: 0; }
#noesis-preview .p-asset-list a > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
#noesis-preview .p-asset-list [aria-current="page"] { color: #8eefff; border-color: #3d9eb3; background: #103747; }
/* Gestão */
#noesis-preview .p-stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; margin-bottom: 24px; }
#noesis-preview .p-stat { display: grid; gap: 12px; padding: 24px; border: 1px solid #316478; background: linear-gradient(135deg,#123448,#081c2b); border-radius: 5px; }
#noesis-preview .p-stat > svg { color: var(--n-cyan); width: 24px; height: 24px; }
#noesis-preview .p-stat > strong { font-size: 33px; font-weight: 600; line-height: 1; color: #e0f5fc; }
#noesis-preview .p-stat > span { color: #93b9cc; font-size: 12px; }
#noesis-preview .p-management-list { list-style: none; margin: 0; padding: 0; }
#noesis-preview .p-management-list li { display: flex; align-items: center; gap: 20px; justify-content: space-between; padding: 17px 0; border-top: 1px solid #284c61; }
#noesis-preview .p-management-list li > div { min-width: 0; overflow-wrap: anywhere; }
#noesis-preview .p-management-list strong { display: block; font-size: 14px; font-weight: 600; }
#noesis-preview .p-management-list span { display: block; font-size: 11px; color: #8fb8ce; margin-top: 5px; }
#noesis-preview .p-management-list .p-inline-link { flex-shrink: 0; }
.p-admin-return { color: #8fefff !important; font-size: 12px; padding: 8px 12px; }
body:has(#site-name) { --primary: #123a4e; --secondary: #071c2a; --accent: #81edff; --header-bg: #081c2a; --header-color: #d5f3fa; --link-fg: #147b9b; --link-selected-fg: #116981; }
/* Adaptação real ao viewport e ao contêiner. */
@container noesis (max-width: 1100px) {
  #noesis-preview .p-filter-grid { grid-template-columns: 1fr 1fr; }
  #noesis-preview .p-clear-filters { justify-content: end; }
  #noesis-preview .p-document-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #noesis-preview .p-document-layout { grid-template-columns: minmax(0,1fr) 260px; gap: 18px; }
  #noesis-preview .p-auth-layout { padding-inline: 0; gap: 35px; }
  #noesis-preview .p-account-layout { grid-template-columns: 240px minmax(0,1fr); gap: 20px; }
  #noesis-preview .p-access-grid { grid-template-columns: 1fr; }
  #noesis-preview .p-library-guide { grid-template-columns: 1fr 1fr; gap: 25px; }
}
@container noesis (max-width: 760px) {
  #noesis-preview .p-page-grid, #noesis-preview .p-split, #noesis-preview .p-library-collections, #noesis-preview .p-auth-layout, #noesis-preview .p-account-layout, #noesis-preview .p-document-layout, #noesis-preview .p-library-guide { grid-template-columns: 1fr; }
  #noesis-preview .p-page-head { padding: 26px 0 29px; }
  #noesis-preview .p-page-head h1, #noesis-preview .p-page-head-compact h1 { font-size: 35px; }
  #noesis-preview .p-page-head > p:not(.n-kicker):not(.p-eyebrow) { font-size: 15px; }
  #noesis-preview .p-breadcrumbs { padding-top: 19px; font-size: 10px; gap: 6px; }
  #noesis-preview .p-content-panel { padding: 23px; }
  #noesis-preview .p-content-panel h2 { font-size: 23px; }
  #noesis-preview .p-section-title { align-items: flex-start; }
  #noesis-preview .p-section-title h2 { font-size: 23px; }
  #noesis-preview .p-auth-layout { margin-top: 0; gap: 25px; padding-top: 25px; }
  #noesis-preview .p-auth-intro { padding-top: 0; }
  #noesis-preview .p-auth-intro h1 { font-size: 38px; }
  #noesis-preview .p-auth-intro h1 br { display: none; }
  #noesis-preview .p-auth-intro .n-lead { font-size: 15px; margin-block: 15px; }
  #noesis-preview .p-auth-benefits { display: none; }
  #noesis-preview .p-auth-intro > .p-small { margin-block: 15px 3px; }
  #noesis-preview .p-auth-card .n-panel-core { padding: 28px 23px; }
  #noesis-preview .p-collection-card .n-panel-core { padding: 28px 24px; }
  #noesis-preview .p-collection-card h2 { font-size: 28px; }
  #noesis-preview .p-library-tabs { gap: 0; }
  #noesis-preview .p-library-tabs a { flex: 1; padding: 13px 10px; gap: 7px; font-size: 12px; }
  #noesis-preview .p-library-tabs svg { width: 18px; height: 18px; }
  #noesis-preview .p-search-panel { padding: 18px; }
  #noesis-preview .p-search-line { flex-direction: column; gap: 10px; }
  #noesis-preview .p-search-line .n-button { min-height: 48px; }
  #noesis-preview .p-search-input input { font-size: 14px; padding: 14px 11px; }
  #noesis-preview .p-filter-grid { gap: 14px 12px; }
  #noesis-preview .p-filter-grid .p-field { grid-column: 1 / -1; }
  #noesis-preview .p-favorite-filter { font-size: 11px; gap: 7px; }
  #noesis-preview .p-clear-filters { font-size: 11px; }
  #noesis-preview .p-results-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  #noesis-preview .p-document-grid { grid-template-columns: 1fr; }
  #noesis-preview .p-document-card h2 { font-size: 23px; }
  #noesis-preview .p-card-meta > div { font-size: 12px; }
  #noesis-preview .p-empty-state { padding: 35px 19px; }
  #noesis-preview .p-empty-state h2 { font-size: 25px; }
  #noesis-preview .p-pagination { gap: 14px; }
  #noesis-preview .p-pagination .n-button { padding: 11px 15px; }
  #noesis-preview .p-account-sidebar { grid-template-columns: 1fr; }
  #noesis-preview .p-profile-card { padding: 24px; }
  #noesis-preview .p-profile-actions { display: flex; gap: 28px; flex-wrap: wrap; }
  #noesis-preview .p-help-panel { padding: 18px 24px; }
  #noesis-preview .p-account-content { gap: 24px; }
  #noesis-preview .p-document-heading-actions { gap: 10px; align-items: flex-start; }
  #noesis-preview .p-document-heading-actions .n-button { font-size: 11px; }
  #noesis-preview .p-viewer-heading { padding: 16px; }
  #noesis-preview .p-viewer-heading h2 { font-size: 15px; }
  #noesis-preview .p-viewer-heading .p-badge { font-size: 9px; }
  #noesis-preview .p-viewer-toolbar { padding: 9px; gap: 5px; }
  #noesis-preview .p-viewer-text-button { padding: 9px 5px; font-size: 10px; }
  #noesis-preview .p-viewer-text-button > svg { width: 16px; height: 16px; }
  #noesis-preview .p-zoom-controls { gap: 3px; }
  #noesis-preview .p-viewer-toolbar output { width: 39px; font-size: 11px; }
  #noesis-preview .p-viewer-canvas { max-height: 65vh; }
  #noesis-preview .p-viewer-canvas iframe { max-height: 65vh; }
  #noesis-preview .p-stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  #noesis-preview .p-stat { padding: 20px; }
  #noesis-preview .p-stat > span { font-size: 11px; }
  #noesis-preview .p-message-page { padding-inline: 0; }
  #noesis-preview .p-message-page .p-actions { align-items: stretch; flex-direction: column; }
  #noesis-preview .p-message-page .p-actions .n-button { width: 100%; }
}
@container noesis (max-width: 380px) {
  #noesis-preview .p-library-tabs a { font-size: 11px; padding-inline: 7px; }
  #noesis-preview .p-library-tabs svg { width: 16px; height: 16px; }
  #noesis-preview .p-viewer-toolbar { justify-content: center; }
  #noesis-preview .p-heading-row > h1 { flex-basis: 100%; }
}
html:not(.has-js) #noesis-preview .p-password-toggle,
html:not(.has-js) #noesis-preview .p-viewer-toolbar,
html:not(.has-js) #noesis-preview .p-viewer-loading,
html:not(.has-js) #noesis-preview .n-menu-toggle { display: none; }
html:not(.has-js) #noesis-preview .n-nav { display: flex; }
@container noesis (max-width: 960px) {
  html:not(.has-js) #noesis-preview .n-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2px 10px; }
  html:not(.has-js) #noesis-preview .n-nav a { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { #noesis-preview .p-skip-link { transition: none; } }
@media (forced-colors: active) {
  #noesis-preview :is(.p-content-panel,.p-search-panel,.p-access-card,.p-stat,.p-viewer,.p-badge) { border-color: CanvasText; }
  #noesis-preview :is(.p-inline-link,.p-inline-button) { color: LinkText; }
}
/* Dados técnicos estruturados: preservam o conteúdo sem simular o diagrama original. */
#noesis-preview .p-technical-data { padding: 24px; min-width: 0; }
#noesis-preview .p-content-panel > .p-technical-data { padding: 0; }
#noesis-preview .p-technical-intro h2 { font-size: 24px; line-height: 1.25; overflow-wrap: anywhere; }
#noesis-preview .p-technical-source { display: flex; flex-wrap: wrap; gap: 9px 17px; color: #9bc4d6; font-size: 12px; line-height: 1.7; }
#noesis-preview .p-technical-intro .p-notice { margin-top: 20px; font-size: 12px; padding: 16px; }
#noesis-preview .p-technical-intro .p-notice p { font-size: 12px; }
#noesis-preview .p-technical-tools { margin-block: 24px 18px; }
#noesis-preview .p-technical-tools > label { display: block; margin-bottom: 9px; font-size: 12px; color: #d1e8f2; }
#noesis-preview .p-technical-tools .p-search-input input { font-size: 13px; }
#noesis-preview .p-technical-tools [data-technical-result] { margin: 8px 0 0; }
#noesis-preview .p-technical-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 20px; }
#noesis-preview .p-technical-toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 13px; border: 1px solid #2b5d74; border-radius: 3px; color: #9ddbe9; background: #0c2838; font-size: 11px; }
#noesis-preview .p-technical-section { min-width: 0; margin-top: 28px; scroll-margin-top: 22px; }
#noesis-preview .p-technical-section h3 { color: #dfedf5; font-size: 17px; font-weight: 600; margin: 0; }
#noesis-preview .p-technical-section .p-section-title { margin-bottom: 13px; }
#noesis-preview .p-table-scroll { max-width: 100%; min-width: 0; max-height: 520px; overflow: auto; overscroll-behavior: contain; border: 1px solid #2c5268; border-radius: 3px; background: #061723; }
#noesis-preview .p-technical-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 620px; font-size: 11px; line-height: 1.65; }
#noesis-preview .p-technical-table th { position: sticky; top: 0; z-index: 1; background: #143345; color: #b3e4ef; text-align: left; vertical-align: top; padding: 11px 13px; border-bottom: 1px solid #3a6a80; font-weight: 600; }
#noesis-preview .p-technical-table td { color: #c2d5e0; padding: 11px 13px; vertical-align: top; border-bottom: 1px solid #244455; font-family: Consolas,'Liberation Mono',monospace; white-space: pre-wrap; overflow-wrap: anywhere; min-width: 80px; max-width: 400px; }
#noesis-preview .p-technical-table tbody tr:nth-child(even) { background: #0c2230; }
#noesis-preview .p-technical-table tbody tr:hover { background: #153345; }
#noesis-preview .p-table-hint { font-size: 10px; color: #86a6bc; margin: 9px 0 0; }
#noesis-preview .p-asset-list small.p-code { display: block; margin-top: 4px; font-size: 9px; color: #83aec2; }
@container noesis (max-width: 760px) {
  #noesis-preview .p-technical-data { padding: 18px 14px; }
  #noesis-preview .p-technical-intro h2 { font-size: 22px; }
  #noesis-preview .p-technical-table { min-width: 560px; font-size: 11px; }
  #noesis-preview .p-table-scroll { max-height: 420px; }
  #noesis-preview .p-technical-toc a { padding-inline: 10px; }
}

/* O modo de ajuste do leitor PDF não é uma porcentagem de zoom fixa. */
#noesis-preview .p-viewer-toolbar output { min-width: 50px; }

#noesis-preview .p-pdf-scale { min-height: 44px; max-width: 170px; padding: 9px 11px; background: #0a1c29; color: #c4e7f2; border: 1px solid #31566a; border-radius: 3px; font-size: 12px; }
@container noesis (max-width: 760px) { #noesis-preview .p-pdf-scale { max-width: 145px; font-size: 11px; padding-inline: 7px; } }
