:root{color-scheme:light;--navy:#122b50;--blue:#0d6efd;--green:#187347;--muted:#627087;--line:#dfe6ef;--surface:#fff}
*{box-sizing:border-box}body{margin:0;background:#f3f6fa;color:var(--navy);font-family:var(--bs-font-sans-serif);line-height:1.5}.navbar-brand img{height:32px}.navbar .nav-link{font-size:1rem}main{width:92%;max-width:1240px;margin:92px auto 36px}h1{font-size:36px;font-weight:700;letter-spacing:-1px;margin:0 0 6px}.intro{font-size:18px;color:var(--muted);margin:0 0 24px}#consulta-form{padding:20px 24px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 4px 16px #16325505}#consulta-form label{display:block;font-size:15px;font-weight:650;margin-bottom:8px}.search-row{display:flex;gap:12px}#numero{font:inherit;font-size:16px;padding:11px 14px;border:1px solid #afbed1;border-radius:7px;min-width:0;flex:1}#consulta-form button{font:inherit;padding:11px 26px;background:var(--blue);color:#fff;border:0;border-radius:7px;font-weight:600;cursor:pointer}#consulta-form button:hover{background:#0a58ca}#consulta-form button:disabled{opacity:.65;cursor:wait}:focus-visible{outline:3px solid #72a8ff;outline-offset:3px}.help{font-size:12px;color:var(--muted);margin:8px 0 0}#feedback{color:var(--muted);font-size:14px;margin:16px 0}#feedback:empty{margin:18px 0}#feedback.error{padding:14px;border:1px solid #f0c9c9;border-radius:8px;color:#962d2d;background:#fff4f4}.status-summary{display:grid;grid-template-columns:1.7fr 1fr;gap:24px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:22px 24px;box-shadow:0 4px 16px #16325505}.summary-title{border-left:4px solid var(--blue);padding-left:20px}.status-summary h2{font-size:14px;font-weight:700;margin:0 0 8px}.status{font-size:25px;line-height:1.3;font-weight:700;margin:0;color:var(--navy)}.interrupted .summary-title{border-color:#b46b16}.summary-info{border-left:1px solid var(--line);padding-left:24px;align-self:center;font-size:14px;color:var(--muted)}.summary-info p{margin:5px 0}.record-meta{display:flex;flex-wrap:wrap;gap:5px 18px;color:var(--muted);font-size:12px;margin-top:12px}.record-picker{font:inherit;max-width:100%;padding:10px;border:1px solid var(--line);border-radius:6px;background:#fff;margin:8px 0 20px}#results>label{font-weight:600;font-size:14px}.timeline-scroll{position:relative;overflow-x:auto;padding:20px 2px}.timeline{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:48px;min-width:750px;padding:0;margin:0}.phase{position:relative;min-width:0}.phase:after{content:'';position:absolute;top:50%;left:100%;height:2px;width:48px;background:#cad5e3}.phase.registered:after{background:#7ab99b}.phase:last-child:after{display:none}.phase-button{width:100%;min-height:82px;display:flex;align-items:center;gap:16px;text-align:left;padding:15px 18px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--navy);font:inherit;cursor:pointer;transition:background .15s,border-color .15s}.phase-button:hover{background:#eef4fc;border-color:#87a5d2}.phase.registered .phase-button{border-color:#8ebda6}.phase.selected .phase-button{background:#eaf2ff;border:2px solid var(--blue);padding:14px 17px;box-shadow:0 3px 12px #0d6efd0d}.phase.current .phase-state{color:var(--blue);font-weight:700}.phase-number{display:flex;align-items:center;justify-content:center;width:38px;height:38px;flex-shrink:0;border-radius:50%;background:#e8edf4;color:var(--muted);font-size:17px;font-weight:700}.phase.registered .phase-number{background:#e6f5ed;color:var(--green)}.phase.current .phase-number{background:var(--blue);color:#fff}.phase-title{display:block;font-size:14px;font-weight:700;line-height:1.3}.phase-state{display:block;font-size:12px;color:var(--muted);margin-top:5px}.phase.registered .phase-state{color:var(--green)}.phase-panel{background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 4px 16px #16325505;overflow:hidden}.phase-panel-header{display:flex;justify-content:space-between;align-items:start;gap:16px;padding:22px 24px 18px;border-bottom:1px solid var(--line)}.phase-panel-header h3{font-size:24px;font-weight:700;margin:0 0 4px}.phase-panel-header p{font-size:14px;color:var(--muted);margin:0}.selection-label{font-size:11px;color:#1554ae;background:#eaf2ff;border-radius:5px;padding:6px 9px;white-space:nowrap}.phase-columns{display:grid;grid-template-columns:1.1fr 1fr;padding:18px 24px 0;gap:28px}.phase-columns h4{font-size:14px;font-weight:700;margin:0 0 12px}.phase-history{border-left:1px solid var(--line);padding-left:28px}.steps{list-style:none;padding:0;margin:0}.step{display:grid;grid-template-columns:30px 1fr auto;align-items:start;gap:12px;border-bottom:1px solid var(--line);padding:11px 0}.step:last-child{border:0}.step-number{display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;width:29px;height:29px;background:#f0f4f9;border:1px solid #d1dce9;border-radius:50%;color:var(--muted)}.step.current .step-number{color:var(--blue);border-color:#9bc1fa;background:#eaf2ff}.step-title{font-size:13px;font-weight:600}.step-date{font-size:11px;color:var(--muted)}.status-tag{font-size:10px;font-weight:600;padding:5px 8px;border-radius:6px;white-space:nowrap;background:#edf0f5;color:#69758a}.status-tag.registrada{background:#e9f7ee;color:var(--green)}.status-tag.aguardando{background:#fff4d7;color:#865408}.status-tag.em_andamento{background:#eaf2ff;color:#1554ae}.status-tag.active-step{outline:1px solid #8bb7f7}.step-explanation summary{font-size:11px;color:var(--muted);cursor:pointer;margin:3px 0}.step-explanation p{font-size:12px;color:var(--muted);margin:5px 0 0}.latest-event,.history-events{list-style:none;padding:0;margin:0}.history-event{padding:12px 0;border-top:1px solid var(--line);font-size:13px}.latest-event .history-event{border:0;padding:0 0 18px}.history-event time{display:block;color:var(--muted);font-size:12px;margin-bottom:10px}.history-event strong{font-size:14px}.history-event p{color:var(--muted);font-size:12px;margin:8px 0 0}.full-history{border-top:1px solid var(--line);padding-top:16px;margin-top:12px}.full-history>summary{color:var(--blue);background:#f5f8fd;border:1px solid #cfdef4;border-radius:7px;padding:12px;font-size:13px;font-weight:600;cursor:pointer}.full-history[open]>summary{margin-bottom:14px}.source-notice{font-size:12px;color:var(--muted);margin:12px 0}.interpretation-note{margin:18px 24px 22px;padding:12px 16px;background:#f2f6fc;border:1px solid #d8e5f6;border-radius:7px;font-size:12px;color:#51637b}.warning{padding:12px 16px;border-left:3px solid #b2690d;background:#fff7e6;color:#845215;border-radius:5px;font-size:13px;margin:14px 0}.record-notice{margin:12px 0 0}footer{font-size:12px;color:var(--muted);padding-top:20px;margin-top:24px;border-top:1px solid var(--line)}[hidden]{display:none!important}@media(max-width:800px){.phase-columns{grid-template-columns:1fr}.phase-history{border-left:0;border-top:1px solid var(--line);padding:20px 0 0}.status-summary{grid-template-columns:1fr;gap:16px}.summary-info{border-left:0;border-top:1px solid var(--line);padding:12px 0 0}.timeline{gap:22px}.phase:after{width:22px}}@media(max-width:520px){main{width:auto;padding:0 16px;margin:82px auto 24px}h1{font-size:26px;letter-spacing:-.6px}.intro{font-size:15px;margin-bottom:20px}#consulta-form{padding:16px}.search-row{flex-direction:column}#consulta-form button{min-height:44px}.status-summary{padding:18px}.status{font-size:21px}.summary-title{padding-left:14px}.phase-panel-header{padding:18px;flex-wrap:wrap}.phase-panel-header h3{font-size:21px}.phase-columns{padding:16px 18px 0;gap:16px}.step{gap:8px;grid-template-columns:27px 1fr}.status-tag{grid-column:2;justify-self:start;margin-top:-5px}.interpretation-note{margin:16px 18px}.timeline{min-width:740px}.phase-button{padding:14px;gap:12px}.phase.selected .phase-button{padding:13px}.timeline-scroll{padding:18px 2px}.selection-label{white-space:normal}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.step-number.registrada{background:#e9f7ee;color:var(--green);border-color:#bce0cc}.other-steps{margin-top:12px}.other-steps>summary{padding:10px 0;font-size:12px;color:var(--muted);cursor:pointer}.other-steps[open]>summary{margin-bottom:6px}

.current-phase-callout{font-size:14px;font-weight:650;color:var(--blue);margin:12px 0 0}
.timeline-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:24px 0 0}
.timeline-heading h2{font-size:17px;font-weight:700;margin:0}.timeline-heading p{font-size:12px;color:var(--muted);margin:0}
.phase-purpose{display:block;color:var(--muted);font-size:11px;margin-top:7px;font-weight:400}
.phase-context{margin:16px 24px 0;padding:12px 16px;background:#f5f8fc;border-radius:8px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.phase-context p{margin:0;font-size:13px;color:#51637b}.return-current{border:1px solid #b7cff3;color:#135bbb;background:#fff;border-radius:6px;padding:8px 12px;font-size:12px;font-weight:600;white-space:nowrap}.return-current:hover{background:#eaf2ff}
.step.current{background:#f2f7ff;border-radius:8px;padding:14px 10px;margin:4px -10px;border:1px solid #c9ddfb}
.phase.current .phase-state{color:var(--blue)}
@media(max-width:800px){.timeline{min-width:0;gap:14px}.phase:after{width:14px}.phase-button{flex-direction:column;align-items:flex-start;min-height:142px;gap:10px;padding:12px}.phase.selected .phase-button{padding:11px}.phase-title{font-size:12px}.phase-state{font-size:11px}.phase-purpose{font-size:10px}.timeline-heading{display:block}.timeline-heading p{margin-top:6px}}
@media(max-width:520px){.phase-button{padding:10px;min-height:178px}.phase.selected .phase-button{padding:9px}.timeline{gap:8px}.phase:after{width:8px}.phase-number{width:29px;height:29px;font-size:14px}.phase-title{font-size:11px;overflow-wrap:anywhere}.phase-state{font-size:10px}.phase-context{margin:14px 18px 0;flex-direction:column;align-items:flex-start}.phase-context p{font-size:12px}.current-phase-callout{font-size:13px}}
