/* Composições do domínio MAN. O shell compartilhado permanece intacto. */
button { font-family: inherit; }
.man-icon { width: 20px; height: 20px; flex: 0 0 20px; vertical-align: middle; }
.man-btn, .man-icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.man-skip { position: fixed; top: -100px; left: 16px; z-index: 1000; padding: 12px; background: var(--surface); color: var(--accent); }
.man-skip:focus { top: 8px; }
.man-mobile-overlay { position: fixed; inset: 0; background: #08192388; z-index: 150; }
.man-global-search { display: flex; align-items: center; gap: 8px; position: relative; }
.man-global-search input { width: 190px; padding: 8px; }
.man-page-heading { margin-bottom: 20px; }
.man-page-heading h1 { font-size: 22px; }
.man-page-heading p { max-width: 760px; }
.man-workspace { min-width: 0; }
.man-dashboard { display: grid; gap: 20px; }
.man-dashboard > * { margin: 0; }
.man-hero { display: flex; justify-content: space-between; gap: 24px; padding: 24px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 10px; min-height: 0; }
.man-hero h2 { font-size: 22px; line-height: 1.35; margin: 8px 0; max-width: 750px; }
.man-hero p { color: var(--muted); max-width: 700px; margin-bottom: 20px; }
.man-hero button { color: var(--surface); background: var(--accent); border-radius: 6px; }
.man-hero-state { min-width: 180px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; border-left: 1px solid var(--border); padding-left: 24px; }
.man-hero-state strong { font-size: 32px; color: var(--accent); }
.man-hero-state span, .man-hero-state small { color: var(--muted); }
.man-card h2 { font-size: 18px; }
.man-card h3 { font-size: 15px; }
.man-task-list { display: grid; gap: 12px; }
.man-task { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.man-task h2 { margin: 8px 0; }
.man-task p { margin: 6px 0; }
.man-task small { color: var(--muted); }
.man-task-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.man-deliverables { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.man-delivery-column { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
.man-delivery-column > h2 { font-size: 14px; margin-bottom: 16px; text-transform: capitalize; }
.man-delivery-column .man-card { padding: 16px; margin-bottom: 12px; }
.man-guide { max-width: 1080px; display: grid; gap: 20px; }
.man-project-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.man-project-actions .man-btn { white-space: normal; }
.man-guide .man-card { margin: 0; }
.man-guide p { line-height: 1.65; margin: 10px 0; }
.man-guide-section > summary { cursor: pointer; font-size: 18px; font-weight: 700; }
.man-guide-section > summary small { display: block; margin: 6px 0 0 22px; color: var(--muted); font-size: 13px; font-weight: 400; }
.man-guide-section[open] > summary { margin-bottom: 20px; }
.man-guide ol { padding-left: 24px; margin-bottom: 0; }
.man-guide li { padding: 16px 0 20px 8px; border-bottom: 1px solid var(--border); }
.man-guide li:last-child { border-bottom: 0; padding-bottom: 0; }
.man-guide li::marker { color: var(--muted); font-weight: 700; }
.man-guide h3 { font-size: 16px; line-height: 1.5; margin: 0; }
.man-guide .man-guide-result { border-left: 3px solid var(--border); padding-left: 12px; }
.man-guide .man-text-btn { display: inline-flex; align-items: center; min-height: 44px; white-space: normal; text-align: left; }
.man-guide-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 8px 24px; }
.man-guide summary:focus-visible, .man-guide .man-text-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.man-login { min-height: 100vh; margin: 0; display: grid; place-items: center; padding: 32px; background: #f1f4f7; color: #20303d; }
.man-login-layout { width: min(100%, 1000px); display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; border: 1px solid #dce3e9; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 40px #1429360a; }
.man-login-context { padding: 48px; background: #eaf2f3; display: flex; flex-direction: column; justify-content: center; }
.man-wordmark { font-size: 28px; font-weight: 800; letter-spacing: .06em; color: #155961; display: block; }
.man-login-context h1 { font-size: 27px; line-height: 1.35; margin: 32px 0 16px; }
.man-login-context p { color: #465b68; line-height: 1.7; }
.man-login-context ol { padding-left: 18px; color: #465b68; margin: 24px 0 0; }
.man-login-context li { padding: 6px 0; }
.man-login-form { padding: 48px; align-self: center; }
.man-login-form h2 { font-size: 22px; margin: 0 0 12px; }
.man-login-form > p { color: #617180; margin-bottom: 24px; }
.man-login-form form { display: grid; gap: 16px; }
.man-login-form label { margin: 0; }
.man-login-form input { margin-top: 8px; padding: 12px; }
.man-login-form .man-btn { width: 100%; padding: 12px; margin: 8px 0 20px; }
.man-login-form .man-note { font-size: 13px; line-height: 1.6; }
@media (max-width: 1150px) {
 .man-deliverables { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .man-task { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 768px) {
 .man-hero { flex-direction: column; padding: 20px; }
 .man-hero-state { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--border); }
 .man-hero h2 { font-size: 20px; }
 .man-global-search { flex: 1; }
 .man-global-search input { width: 100%; }
 .man-deliverables { grid-template-columns: 1fr; }
 .man-task-actions { flex-wrap: wrap; }


 .man-login { padding: 16px; }
 .man-login-layout { grid-template-columns: 1fr; }
 .man-login-context, .man-login-form { padding: 24px; }
 .man-login-context h1 { font-size: 22px; margin: 16px 0 12px; }
 .man-login-context ol { display: none; }
}
/* Controles próprios acomodados na anatomia compartilhada. */
.man-global-search { width: auto; margin-left: 0; max-width: none; }
.man-plain-control { border: 0; background: transparent; }
.man-hero .man-eyebrow { color: var(--accent); }
.man-hero::after { display: none; }
.man-hero-state > span:last-child { color: var(--muted); }
.man-modal-backdrop { z-index: 300; }
.man-member-list > div { flex-wrap: wrap; }
.man-member-list button { margin-left: 0; }
.man-card-heading p, .man-note { font-size: 12px !important; }
.man-phase b, .man-record-title { font-size: 13px; }
.man-phase small { font-size: 11px; }
.man-phase .man-badge { font-size: 10px; }
@media (max-width: 768px) {
 .man-global-search { flex: 1; min-width: 0; }
 .man-hero-state { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Árvore integral inspirada na Secretaria; conteúdo e relações pertencem ao GT MAN. */
.man-org-toolbar { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:16px; }
.man-org-toolbar .man-org-search { flex:1 1 240px; max-width:360px; margin:0; }
.man-org-search input { margin:0; }
.man-org-zoom { display:flex; align-items:center; gap:6px; margin-left:auto; }
.man-org-zoom label { margin:0; }
.man-org-zoom select { margin:0; width:88px; }
.man-org-scroll { overflow:auto; max-width:100%; max-height:64vh; min-height:300px; padding:24px 12px 36px; background:var(--surface); border:1px solid var(--border); border-radius:8px; overscroll-behavior:contain; }
.man-org-canvas { position:relative; width:max-content; min-width:100%; }
.man-org-level { list-style:none; display:flex; justify-content:center; align-items:flex-start; gap:24px; padding:48px 0 0; margin:0; }
.man-org-roots { padding-top:0; }
.man-org-item { display:flex; flex-direction:column; align-items:center; flex-shrink:0; }
.man-unit { position:relative; z-index:1; width:210px; background:var(--surface); border:1px solid var(--border); border-top:2px solid var(--accent); border-radius:6px; box-shadow:0 2px 5px #142c4210; }
.man-unit-open { display:flex; flex-direction:column; gap:5px; width:100%; padding:12px 12px 8px; background:transparent; border:0; border-radius:5px; color:var(--text); text-align:left; cursor:pointer; }
.man-unit-open strong { font-size:13px; line-height:1.4; overflow-wrap:anywhere; }
.man-unit-open:hover { background:var(--surface2); }
.man-unit-open:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
.man-unit-name { font-size:11px; line-height:1.5; color:var(--muted); overflow-wrap:anywhere; }
.man-unit-owner { font-size:10px; color:var(--muted); margin-top:4px; overflow-wrap:anywhere; }
.man-unit-metrics { display:flex; align-items:center; gap:8px; width:100%; padding-top:7px; margin-top:3px; border-top:1px solid var(--border); font-size:10px; }
.man-unit-metrics > span { display:inline-flex; align-items:center; gap:4px; }
.man-unit-metrics .man-icon { width:12px; height:12px; }
.man-unit-pending { color:var(--warning,#9b5e00); }
.man-org-toggle { position:absolute; left:50%; bottom:-12px; transform:translateX(-50%); min-width:24px; height:24px; padding:0 5px; line-height:22px; border:1px solid var(--border); border-radius:14px; background:var(--surface); color:var(--accent); font-size:12px; cursor:pointer; }
.man-org-toggle[aria-expanded="false"] { border-color:var(--accent); background:var(--surface2); }
.man-unit-match { outline:2px solid var(--accent); outline-offset:3px; }
.man-org-lines { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.man-org-lines path { fill:none; stroke:var(--border); stroke-width:1.5; }
.man-org-legend { display:flex; flex-wrap:wrap; align-items:center; gap:16px; color:var(--muted); font-size:11px; margin:16px 0 0; }
.man-org-legend span { display:flex; gap:5px; align-items:center; }
.man-org-legend .man-icon { width:14px; height:14px; }
.man-org-sheet-nav,.man-org-sheet-heading,.man-org-section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.man-org-sheet-nav { padding-bottom:20px; margin-bottom:24px; border-bottom:1px solid var(--border); }
.man-org-sheet-nav label { min-width:0; max-width:100%; width:360px; }
.man-org-sheet-heading h2 { font-size:24px; margin-top:6px; overflow-wrap:anywhere; }
.man-unit-details { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 32px; padding:24px 0; }
.man-unit-details dt,.man-unit-history dt { font-size:12px; color:var(--muted); margin-bottom:6px; }
.man-unit-details dd,.man-unit-history dd { margin:0; overflow-wrap:anywhere; }
.man-unit-section { padding:24px 0; border-top:1px solid var(--border); }
.man-unit-section h3 { margin:0 0 12px; font-size:16px; }
.man-unit-section h3 span { font-weight:400; color:var(--muted); margin-left:8px; }
.man-preserve-lines,.man-unit-history dd { white-space:pre-wrap; }
.man-unit-links { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr)); gap:12px; list-style:none; padding:0; }
.man-unit-links button { display:flex; flex-direction:column; gap:6px; text-align:left; width:100%; height:100%; padding:16px; color:var(--text); background:var(--surface); border:1px solid var(--border); border-radius:8px; cursor:pointer; overflow-wrap:anywhere; }
.man-unit-links small,.man-unit-people span { color:var(--muted); font-size:12px; }
.man-unit-form .man-form-grid { gap:18px 20px; }
.man-unit-form .man-form-grid > div > label { margin-bottom:6px; }
.man-org-person-actions { display:flex; flex-wrap:wrap; gap:12px; }
.man-unit-people { list-style:none; padding:0; }
.man-unit-people li { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 0; border-bottom:1px solid var(--border); }
.man-unit-people li div { display:flex; flex-direction:column; gap:5px; }
.man-unit-history { margin-top:12px; padding:12px; border:1px solid var(--border); border-radius:6px; }
.man-unit-history dl > div { margin:14px 0; }
.man-sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media (max-width:768px) {
 .man-org-zoom { margin-left:0; flex-wrap:wrap; }
 .man-org-scroll { min-height:260px; max-height:60vh; }
 .man-org-toolbar .man-org-search { max-width:none; flex-basis:100%; }
 .man-unit-details { grid-template-columns:1fr; }
 .man-org-sheet-nav label { width:100%; }
}

/* Keep the screenshot option aligned with its label, not a full-width text input. */
#capture-form label:has(input[type="checkbox"]) { display: flex; align-items: center; gap: 10px; }
#capture-form input[type="checkbox"] { width: 20px; height: 20px; min-height: 20px; flex: 0 0 20px; margin: 0; padding: 0; accent-color: var(--accent); }

/* A cadeia da evidência preserva legibilidade de UUIDs e hashes em telas estreitas. */
.man-evidence > a { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.man-evidence > a > img { width: 100%; height: 160px; object-fit: contain; }
.man-evidence > button { margin-top: 12px; text-align: left; }
.man-trace { overflow-wrap: anywhere; }
.man-trace h3 { margin: 28px 0 12px; }
.man-trace dl { margin: 20px 0; }
.man-trace dt { font-weight: 700; margin-top: 14px; }
.man-trace dd { margin: 4px 0 12px; }
.man-trace small { display: block; margin: 5px 0; }
.man-trace ul, .man-trace ol { padding-left: 22px; }
.man-trace li { margin: 0 0 18px; }
.man-trace pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }
.man-trace-events { border-left: 2px solid var(--line); }

#obs-man .man-trace h3 { font-size: 18px; font-weight: 700; line-height: 1.4; margin: 28px 0 12px; }
#obs-man .man-trace dt { font-weight: 700; font-size: 13px; }
#obs-man .man-trace p { margin-bottom: 10px; }
#obs-man .man-trace-events b { font-weight: 700; }

/* Pesquisa de referências: os textos digitados filtram, somente a seleção é salva. */
.man-catalog-search { display: grid; grid-template-columns: minmax(0, 1fr) minmax(100px, .3fr); gap: 12px; margin-bottom: 10px; }
.man-form-grid > div { min-width: 0; }
.man-form-grid select { max-width: 100%; }
.man-form-grid input[readonly] { background: var(--bg); }
@media (max-width: 560px) { .man-catalog-search { grid-template-columns: 1fr; } }

/* Referência do menu: leitura contínua no portal, sem alterar as demais telas. */
.man-menu-reference { min-width: 0; }
.man-menu-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-bottom: 24px; }
.man-menu-tools > div { flex: 1 1 380px; }
.man-menu-tools > .man-note { flex-basis: 100%; margin: 0; }
.man-menu-reference .manual-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.man-menu-reference .manual-toc { position: sticky; top: 16px; max-height: calc(100vh - 115px); overflow: auto; padding: 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.man-menu-reference .manual-toc summary { cursor: pointer; font-weight: 700; }
.man-menu-reference .manual-toc nav { display: grid; gap: 12px; margin-top: 16px; }
.man-menu-reference .manual-toc a { font-size: 14px; line-height: 1.5; }
.man-menu-reference a { color: var(--accent); text-underline-offset: 3px; }
.man-menu-reference a:focus-visible, .man-menu-reference summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.man-menu-reference a[aria-disabled=true] { color: var(--muted); cursor: default; text-decoration: none; }
.man-menu-reference a[aria-disabled=true]::after { content: ' — acesso não concedido'; font-size: 0.88em; }
.man-menu-reference .manual-article { min-width: 0; padding: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; font-size: 16px; line-height: 1.75; }
.man-menu-reference .manual-article h1 { font-size: 30px; line-height: 1.3; margin: 0 0 20px; }
.man-menu-reference .manual-article h2 { font-size: 24px; line-height: 1.4; margin: 42px 0 18px; padding-top: 20px; border-top: 1px solid var(--border); scroll-margin-top: 20px; }
.man-menu-reference .manual-article h3 { font-size: 20px; line-height: 1.4; margin: 32px 0 16px; scroll-margin-top: 20px; }
.man-menu-reference .manual-article p { margin: 0 0 1.1em; max-width: 78ch; overflow-wrap: anywhere; }
.man-menu-reference .manual-figure { display: grid; gap: 16px; margin: 24px 0; padding: 16px; border: 1px solid var(--border); border-radius: 8px; }
.man-menu-reference .manual-figure > a { display: block; justify-self: center; max-width: 100%; line-height: 0; cursor: zoom-in; }
.man-menu-reference .manual-figure img { display: block; max-width: 100%; max-height: 380px; width: auto; height: auto; object-fit: contain; }
.man-menu-reference .manual-figure--diagram-flow img { max-height: 570px; }
.man-menu-reference .manual-figure figcaption { font-size: 14px; line-height: 1.65; }
.man-menu-reference .manual-figure figcaption > strong:first-child { display: block; margin-bottom: 6px; }
@media (max-width: 1150px) {
  .man-menu-reference .manual-layout { display: block; }
  .man-menu-reference .manual-toc { position: static; max-height: 320px; margin-bottom: 20px; }
}
@media (max-width: 600px) {
  .man-menu-reference .manual-article { padding: 20px; }
  .man-menu-reference .manual-article h1 { font-size: 25px; }
  .man-menu-reference .manual-article h2 { font-size: 22px; }
  .man-menu-reference .manual-figure { padding: 10px; }
  .man-menu-tools .man-btn { white-space: normal; }
}
@font-face { font-family: 'MAN Reference'; src: url("fonts/LiberationSans-Regular.83ccce97cdf8.ttf") format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'MAN Reference'; src: url("fonts/LiberationSans-Bold.b1be8d9e42b2.ttf") format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
.man-menu-reference .manual-article, .man-menu-reference .manual-toc { font-family: 'MAN Reference', system-ui, sans-serif; }
.man-menu-reference .manual-article :is(h1,h2,h3,strong), .man-menu-reference .manual-toc summary { font-weight: 700; }
