:root{
  color-scheme:light;
  --navy:#071f2e;
  --ink:#102f41;
  --orange:#f47c35;
  --accent:#b94712;
  --muted:#516672;
  --line:#d6e1e7;
  --paper:#f1f5f7;
  --tint:#fff3eb;
  --on-light-focus:#a73c0c;
  font-family:Arial,Helvetica,sans-serif;
  color:var(--ink);
  background:var(--paper);
}
*{box-sizing:border-box}
body{margin:0}
button,input,select{font:inherit;color:inherit}
a{color:inherit}
button,select{cursor:pointer}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,textarea:focus-visible{outline:3px solid var(--on-light-focus);outline-offset:3px}
[hidden]{display:none!important}
.shell{max-width:1440px;margin-inline:auto;padding-inline:clamp(18px,4vw,68px)}
.skip{position:fixed;z-index:3;left:10px;top:-60px;background:white;padding:12px}.skip:focus{top:8px}
.topbar{background:white;color:var(--ink);border-bottom:1px solid var(--line)}
.top-inner{min-height:80px;padding-block:10px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:flex;align-items:center;gap:17px;flex:none}
.brand img{display:block;width:164px;height:auto}
.division{font-size:14px;font-weight:700;border-left:1px solid var(--line);padding:6px 0 6px 17px}
.demo{font-size:12px;font-weight:600;line-height:1.4;color:var(--muted);text-align:right}
.view-nav{display:flex;border-bottom:1px solid var(--line);gap:25px}
.view-nav a{display:inline-flex;align-items:center;min-height:55px;border-bottom:3px solid transparent;margin-bottom:-1px;text-decoration:none;font-size:14px;font-weight:600;color:var(--muted)}
.view-nav a[aria-current="page"]{color:var(--ink);border-color:var(--accent)}.view-nav a:hover{color:var(--ink)}
.heading{display:flex;justify-content:space-between;align-items:end;gap:16px;padding-block:clamp(28px,4vw,54px) 25px}
#attention,#visit-notices,#portfolio-topics{margin-bottom:16px;padding:14px 18px;border:1px solid var(--line);border-radius:8px;background:white}
#attention .section-head{margin-bottom:6px}
#attention-owner-filter{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:8px 0 12px}
#attention-owner-filter label{margin:0}
#attention-owner-filter select{min-width:0;max-width:100%}
#attention details{border-top:1px solid var(--line)}
#attention summary{padding:12px 4px;font-weight:650;cursor:pointer}
#attention summary::marker,#visit-notices summary::marker,#portfolio-topics summary::marker{color:var(--accent)}
#visit-notices>summary,#portfolio-topics>summary{font-weight:650;cursor:pointer;line-height:1.5}
#portfolio-topics .filter{margin-block:12px}
@media(max-width:680px){#portfolio-topics .filter{display:grid;gap:5px}#portfolio-topics select{width:100%;min-width:0}}
#portfolio-topic-list{list-style:none;margin:0;padding:0;overflow-wrap:anywhere}
#portfolio-topic-list li{display:grid;justify-items:start;gap:5px;border-top:1px solid var(--line);padding:12px 0}
#portfolio-topic-list button{margin-top:3px}
#visit-notices-list h3{font-size:1rem;margin:16px 0 6px}
#attention details[open] > div{padding-bottom:8px}
@media print{#attention,#visit-notices,#portfolio-topics{display:none!important}}
h1,h2,h3,p,dl{margin:0}
h1{font-size:clamp(34px,4.6vw,64px);font-weight:600;letter-spacing:-.045em;line-height:1.09}
.summary{margin-top:10px;color:var(--muted);font-size:15px;line-height:1.5}
.filter label,form label{display:block;font-size:12px;font-weight:650;margin-bottom:6px}
select,input{border:1px solid #8da2ae;border-radius:8px;background:#fff;min-height:42px;padding:6px 12px}
.board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:16px;padding-bottom:48px}
.lane{--lane:#335f73;border:1px solid var(--line);border-radius:14px;background:#eaf1f4;min-width:0;min-height:320px;padding:17px 13px}
.lane:nth-child(2){--lane:#6b78a2;background:#eff0f7}.lane:nth-child(3){--lane:#ae581d;background:#faf0e8}
.lane-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:0 4px;margin-bottom:16px}
.eyebrow{font-size:10px;font-weight:720;letter-spacing:.105em;text-transform:uppercase;color:var(--muted)}
.lane h2{font-size:20px;letter-spacing:-.045em;margin-top:3px}
.count{border:1px solid #b8c8d0;color:var(--muted);border-radius:40px;min-width:30px;text-align:center;padding:3px 8px;font-size:13px;font-variant-numeric:tabular-nums}
.cards{display:grid;gap:10px}
.card{width:100%;text-align:left;display:block;padding:16px 16px 13px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 2px 4px #23374406;transition:border-color .15s,box-shadow .15s}.card:hover{border-color:#8a9fa8;box-shadow:0 3px 12px #102f4112}
.card-top,.card-bottom{display:flex;justify-content:space-between;align-items:center;gap:8px}
.area{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:680;color:var(--ink)}.area:before{content:"";height:8px;width:8px;border-radius:2px;background:#20a17f}.area[data-area="educação"]:before{background:#8b70c1}
.sprint{font-size:11px;color:var(--muted);white-space:nowrap}.card-city{display:block;font-size:13px;color:var(--muted);margin-top:17px}.card-title{display:block;font-size:21px;font-weight:650;letter-spacing:-.044em;line-height:1.18;margin-top:3px}.card-action{display:block;color:var(--muted);font-size:14px;line-height:1.4;margin-top:9px}.card-bottom{border-top:1px solid var(--line);margin-top:14px;padding-top:11px;font-size:13px;font-weight:650;color:var(--ink)}.arrow{font-size:18px}.empty{border:1px dashed #aabcc6;border-radius:9px;padding:19px 14px;color:var(--muted);font-size:13px;line-height:1.45}
#management{padding:18px 20px;margin:0 0 22px;background:#fff;border-radius:12px;border:1px solid var(--line)}
.section-head{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:8px}.section-head h2{font-size:21px;letter-spacing:-.04em}.section-head span,.event-meta{font-size:12px;color:var(--muted)}
#changes{max-height:300px;overflow:auto}.event{padding:10px 0;display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px}.event+.event{border-top:1px solid var(--line)}.event-meta{margin-top:4px}.event-date{font-variant-numeric:tabular-nums;font-size:13px;color:var(--accent)}.history-empty{font-size:14px;color:var(--muted);padding:14px 0 2px}
.warning,.feedback{font-size:14px;line-height:1.45;padding:12px 15px;border-radius:8px;margin-bottom:16px}.warning{background:#fff1d5;color:#714d09}.feedback{background:#deefe5;color:#195642}
dialog{border:1px solid var(--line);border-radius:17px;padding:0;color:var(--ink);width:min(480px,calc(100% - 28px));max-height:calc(100dvh - 36px);box-shadow:0 22px 85px #071f2e44;overflow:auto}dialog::backdrop{background:#071f2eaa}
.detail-head{background:var(--navy);color:white;padding:12px 20px;display:flex;align-items:center;justify-content:space-between;font-size:14px;font-weight:650}
#close{width:40px;height:40px;border:0;background:transparent;color:#fff;border-radius:8px;font-size:28px;line-height:1}#close:hover{background:#ffffff18}#close:focus-visible{outline-color:white}
.detail-body{padding:22px}.detail-body h2{font-size:32px;font-weight:650;letter-spacing:-.055em;margin-top:4px}.action-panel{border-radius:10px;background:var(--tint);padding:14px;margin:18px 0}.action-panel h3{font-size:18px;margin:5px 0}.date-line{font-size:14px;font-weight:600;color:var(--accent)}
dl{display:grid;grid-template-columns:minmax(84px,auto) 1fr;gap:10px 14px;font-size:14px;line-height:1.45;margin-bottom:20px}dt{color:var(--muted)}dd{margin:0;overflow-wrap:anywhere}
.primary,.secondary{border:1px solid transparent;border-radius:8px;min-height:43px;padding:9px 15px;font-size:14px;font-weight:630}.primary{background:var(--orange);color:var(--navy)}.primary:hover:not(:disabled){background:#e56a23}.secondary{background:#fff;border-color:var(--line)}button:disabled{opacity:.65;cursor:wait}.form-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.notice{margin-top:12px;font-size:14px;line-height:1.45;color:#804309}
@media(max-width:850px){.board{gap:10px}.lane{padding:13px 9px}.card{padding:13px 11px}.lane h2{font-size:18px}}
@media(max-width:680px){.top-inner{min-height:64px}.brand img{width:135px}.board{grid-template-columns:1fr;gap:14px}.lane{min-height:0;padding:14px}.heading{display:block;padding-block:24px 17px}.filter{margin-top:16px;display:flex;gap:10px;align-items:center}.filter label{margin:0}.card{padding:14px}.event{align-items:start;flex-direction:column;gap:4px}.section-head span{font-size:11px}.view-nav a{min-height:48px}.detail-body{padding:17px}.division{display:none}.card-city{margin-top:12px}.lane-head{margin-bottom:12px}}
@media print{@page{size:A3 landscape;margin:10mm}.topbar,.view-nav,.filter,.demo,dialog,.skip,.feedback,.warning{display:none!important}.shell{padding:0;max-width:none}.board{grid-template-columns:repeat(3,minmax(0,1fr))}.lane,.card{break-inside:avoid}.heading{padding:10px 0 20px}.lane{min-height:0}}


.account {display:flex;align-items:center;gap:14px;min-width:0;font-size:13px}
#account-name {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account a {padding-block:10px;font-weight:650}
.account a,#test-logout{color:var(--accent);text-underline-offset:3px;flex:none}
.access {margin:clamp(38px,7vw,84px) 0;max-width:560px}
.access h1 {font-size:clamp(32px,4vw,48px)}
.access p {line-height:1.5;margin:14px 0 22px;color:var(--muted)}
.access a {display:inline-flex;align-items:center;text-decoration:none}

#email-login,#test-login {display:grid;gap:10px;max-width:340px}
#email-login label,#test-login label {margin:0}
#login-code-step {display:grid;gap:6px}
#email-login #login-notice {margin:0}
#test-login input,#test-login select {width:100%}
#test-login #test-submit {margin-top:6px}
#test-login #test-status {margin:0}
#test-logout {appearance:none;border:0;background:transparent;color:inherit;text-decoration:underline;padding:10px 0;font-weight:650}

.display-switch,.week-controls{display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px}
.display-switch{padding:4px;margin-bottom:20px;background:#e8eef2;border:1px solid var(--line);border-radius:11px}
.display-switch button,.week-controls button{border:1px solid transparent;border-radius:7px;background:transparent;min-height:42px;padding:8px 14px;font-weight:650;font-size:14px}
.display-switch button[aria-pressed="true"]{color:white;background:var(--navy);border-color:var(--navy)}
.agenda{border:1px solid var(--line);border-radius:14px;background:white;padding:clamp(15px,2vw,28px);margin-bottom:22px}
.agenda-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;border-bottom:1px solid var(--line);padding-bottom:16px}
#week-title{font-size:clamp(20px,2.2vw,30px);letter-spacing:-.04em;line-height:1.3;margin-top:3px;font-variant-numeric:tabular-nums}
.week-controls button{border-color:var(--line);background:var(--paper)}
.secondary:hover:not(:disabled),.display-switch button[aria-pressed="false"]:hover{border-color:#8a9fa8;background:white;color:var(--accent)}
.week-controls button:not(:disabled):hover,.agenda-action:hover{background:var(--tint);border-color:#8a9fa8}
.week-controls button:disabled{cursor:default}
.agenda-day{margin-top:20px}
.agenda-day h3{font-size:15px;margin-bottom:8px;color:var(--accent)}
.agenda-day h3::first-letter{text-transform:uppercase}
.agenda-action{width:100%;display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:12px;text-align:left;border:1px solid var(--line);border-radius:9px;padding:13px 16px;background:#f8fafb;overflow-wrap:anywhere}
.agenda-action+.agenda-action{margin-top:6px}
.agenda-description,.agenda-logistics{display:grid;align-content:center;gap:4px;font-size:13px;line-height:1.45;color:var(--muted)}
.agenda-description strong{font-size:17px;line-height:1.35;color:var(--ink)}
#agenda-list .agenda-week>.empty{margin-top:16px}
#week-jump{margin-top:12px}
@media(max-width:680px){.agenda-action{grid-template-columns:1fr;gap:8px}.week-controls{gap:3px}.week-controls button{font-size:13px;padding-inline:7px}}
@media print{.display-switch,.week-controls,#week-jump{display:none!important}.agenda-action{break-inside:avoid}.agenda-day h3{break-after:avoid}}

.detail-actions,.form-actions {display:flex;flex-wrap:wrap;gap:8px}
.record-section {margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}
.record-section h3,.record-form h3 {font-size:18px;letter-spacing:-.025em}
#diagnostic-example {margin-top:14px;padding:0 16px;border:1px solid var(--line);border-radius:10px;background:var(--paper)}
#diagnostic-example summary {padding:14px 0;cursor:pointer;color:var(--accent);font-weight:700}
#diagnostic-example h4 {margin:6px 0;font-size:15px}
#diagnostic-example blockquote {margin:8px 0;padding-left:12px;border-left:3px solid var(--accent);line-height:1.55}
#diagnostic-example p {margin:4px 0 14px;line-height:1.5}
#example-citation {font-size:13px;color:var(--muted)}
.record-form {margin:14px 0;padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--paper)}
.record-form label {margin-top:12px}
.record-form label:first-child {margin-top:0}
.record-form fieldset {min-width:0;margin:18px 0 0;padding:0;border:0}
.record-form legend {font-size:15px;font-weight:650;padding:0}
.record-form input,.record-form textarea,.record-form select {font:inherit;color:inherit;width:100%;min-width:0}
.record-form textarea {resize:vertical;border:1px solid #8da2ae;border-radius:8px;padding:10px 12px}
.record-form textarea:focus-visible {outline:3px solid var(--on-light-focus);outline-offset:3px}
.record-form .pending-choice {display:flex;align-items:center;gap:8px;min-height:42px;margin:4px 0;font-size:14px;cursor:pointer}
.record-form .pending-choice input {width:18px;height:18px;min-height:0;flex:none;accent-color:var(--accent)}
#meetings .filter,#meeting-project,#contacts .filter,#contacts select {max-width:100%;min-width:0}
@media(max-width:680px){
  #deadlines .filter {display:grid;width:100%;min-width:0}
  #deadlines select {width:100%;min-width:0}
}
.meeting-history-heading {margin:22px 0 4px;font-size:17px}
#meeting-current-record {overflow-wrap:anywhere}
#meeting-commands button:disabled {cursor:default}
@media(max-width:680px){#meetings .filter,#contacts .filter{display:grid;width:100%}#meeting-project,#contacts select{width:100%}}
.record-entry {margin-top:12px;border-left:3px solid #b6cad5;padding:4px 0 4px 12px;overflow-wrap:anywhere;font-size:14px;line-height:1.45}
.record-entry p {margin-top:4px;white-space:pre-wrap}
.record-entry h4 {margin:0;font-size:15px}
.record-entry .record-meta {color:var(--muted);font-size:12px}
#review-changes {margin-top:8px}
#detail-action,.card-action,.detail-body {overflow-wrap:anywhere}

.agenda-filters {display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin-top:14px}
.agenda-filters .filter {min-width:0}
.agenda-owner-filter,.agenda-project-filter {max-width:100%}
#agenda-project {max-width:100%;min-width:0}
#agenda-responsavel, #due-responsavel {min-width:0;max-width:min(100%,22rem);text-overflow:ellipsis}
@media print {#agenda-owner-notice {display:none}}
.agenda-preparo-control {display:inline-flex;align-items:center;gap:8px;min-height:43px;font-size:14px;cursor:pointer}
.agenda-preparo-control input {min-height:0;height:18px;width:18px;flex:none;padding:0;margin:0;accent-color:var(--accent)}
.agenda-preparo {display:grid;gap:4px;min-width:0}
.agenda-undated {margin-top:14px}
.agenda-comparison {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:12px;margin-top:18px}
.agenda-comparison .agenda-week {min-width:0;padding:14px;border:1px solid var(--line);border-radius:10px}
.agenda-week-heading {display:grid;gap:5px;margin:0;border-bottom:1px solid var(--line);padding-bottom:12px;overflow-wrap:anywhere}
.agenda-week-heading span {font-size:13px;color:var(--accent)}
.agenda-week-heading strong {font-size:17px;font-variant-numeric:tabular-nums;line-height:1.35}
.agenda-comparison .agenda-day h4 {font-size:15px;margin:0 0 8px;color:var(--accent)}
.agenda-comparison .agenda-day h4::first-letter {text-transform:uppercase}
.agenda-comparison .agenda-action {grid-template-columns:minmax(0,1fr);gap:8px}
@media screen and (max-width:850px) {
  .agenda-comparison {grid-template-columns:minmax(0,1fr)}
}
.print-heading {display:none}
.due-day {font-weight:700;color:var(--accent);font-variant-numeric:tabular-nums}
#due-overdue h3,#due-overdue .due-day {color:#8c391e}
#due-title {font-size:clamp(22px,2.4vw,32px);letter-spacing:-.04em}
#due-date {margin-top:4px}
@media print {
  .agenda-filters,#email-login,#test-login {display:none!important}
  #workspace[data-display="agenda"] > :not(#agenda) {display:none!important}
  #agenda {border:0;margin:0;padding:0}
  #agenda .print-heading {display:block;margin-bottom:5mm;font-size:16pt}
  #agenda .print-heading p {font-size:12pt;margin-top:2mm}
  #agenda .agenda-head {display:block;padding:0 0 4mm}
  #agenda .eyebrow {display:none}
  #week-title {font-size:20pt}
  #agenda .agenda-day h3 {font-size:13pt}
  #agenda .agenda-action {grid-template-columns:minmax(0,3fr) minmax(0,2fr);padding:3mm 4mm;background:white}
  #agenda .agenda-description,#agenda .agenda-logistics {font-size:11pt}
  #agenda .agenda-description strong {font-size:13pt}
  /* Let long weeks flow across sheets without clipping parallel grid columns. */
  #agenda-list.agenda-comparison {display:block}
  .agenda-comparison .agenda-week {margin-top:5mm;border:0;padding:0}
  .agenda-week-heading,.agenda-comparison .agenda-day h4 {break-after:avoid}
  .agenda-comparison .agenda-day h4 {font-size:13pt}
}

.portfolio-records .record-entry {margin-top:18px;padding:4px 0 6px 16px}
.portfolio-records .portfolio-project {margin:0 0 4px;color:var(--accent);font-weight:650}
.portfolio-records .record-entry h3 {margin:0;font-size:19px;line-height:1.35}
#plan-meetings-list .record-entry h5 {margin:0;font-size:15px}
.portfolio-records .record-entry button {margin-top:10px}

#sprint-project {max-width:100%;min-width:0}
.sprint-overview-links {display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.sprint-overview-links button {max-width:100%;white-space:normal;text-align:start}
#sprint-portfolio-back {margin-bottom:12px}
#sprints .filter {min-width:0;max-width:100%}
@media(max-width:680px){#sprints .filter{display:grid;width:100%}#sprint-project{width:100%}}
.sprint-cycles {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:16px;margin:20px 0}
.sprint-cycle,.sprint-unassigned {min-width:0;border:1px solid var(--line);border-radius:10px;padding:14px}
.sprint-cycle h3,.sprint-unassigned h3 {margin:0;font-size:17px}
.sprint-cycle ol {list-style:none;padding:0;margin:12px 0 0}
.sprint-cycle li + li {border-top:1px solid var(--line)}
.sprint-cycle summary {padding:12px 8px;border-radius:6px;cursor:pointer;font-size:15px}
.sprint-cycle summary::marker {color:var(--accent)}
.sprint-cycle summary:hover,.sprint-cycle details[open] > summary {background:var(--tint)}
.sprint-cycle summary:focus-visible {outline:3px solid var(--on-light-focus);outline-offset:1px}
.sprint-cycle summary span {display:block;margin:3px 0 0 17px;font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.sprint-cycle summary .sprint-recorded {font-weight:650;color:var(--accent)}
.sprint-body {padding:12px 8px;overflow-wrap:anywhere;font-size:14px;line-height:1.45}
.sprint-body section + section {margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.sprint-body h4 {margin:0 0 6px;font-size:15px}
.sprint-origin {margin:10px 0 4px;font-size:13px;color:var(--muted)}
.sprint-item,.sprint-body .record-entry {margin:7px 0;padding-left:10px;border-left:2px solid #b6cad5}
.sprint-item small {display:block;color:var(--muted);font-size:13px}
.sprint-body .record-entry h5 {margin:0;font-size:14px}
.sprint-body button {margin-top:10px}
.sprint-empty {color:var(--muted)}
.sprint-unassigned {margin-bottom:14px}
@media(max-width:780px){.sprint-cycles{grid-template-columns:1fr}}

#media-queue {margin-top:24px}
#media-queue .summary {margin-top:5px}
#media-queue .record-entry h4 {font-size:16px}
#media-queue .record-entry h5 {margin:16px 0 0;font-size:14px}
.media-project-topics {list-style:none;margin:0;padding:0}
.media-project-topics li + li {margin-top:8px}
#media a,#source-list a {color:var(--accent);text-underline-offset:2px}

.opportunity {min-width:0}
.opportunity .plan-launch {margin:4px 0 0;width:100%;color:var(--accent);font-size:13px}
#plan-panel {margin-bottom:28px;padding:clamp(14px,3vw,28px)}
#plan-panel .section-head {align-items:center}
#plan-project {margin:3px 0}
.plan-filters {display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr);gap:12px;margin:20px 0 10px}
.plan-filters select {width:100%;min-width:0}
.plan-front {margin:20px 0 0;min-width:0}
.plan-front h3 {font-size:17px;padding-bottom:8px;border-bottom:1px solid var(--line)}
.plan-action {display:block;width:100%;background:white;border:0;border-bottom:1px solid var(--line);overflow-wrap:anywhere;min-width:0;text-align:left;cursor:pointer;padding:12px 4px;font-size:15px}
.plan-action:hover {background:var(--paper)}
.plan-action small {display:block;margin-top:3px;color:var(--muted)}
.plan-action:focus-visible {outline:2px solid var(--on-light-focus)}
#action-title {font-size:clamp(21px,4vw,27px);line-height:1.2;margin:16px 0}
#action-context {margin:0}
.plan-action-body {font-size:14px;line-height:1.5}
.plan-action-body dl {margin:8px 0;grid-template-columns:minmax(65px,max-content) minmax(0,1fr);gap:4px 12px}
#action-body dt {font-weight:700;color:var(--ink)}
.plan-action-body button {margin:8px 6px 0 0}
@media(max-width:680px){.plan-filters {grid-template-columns:repeat(2,minmax(0,1fr))}.plan-filters > div:first-child {grid-column:1/-1}}

#detail {width:min(700px,calc(100% - 28px))}
.approach-panel {margin:16px 0 24px;padding:16px;border:1px solid var(--line);border-top:4px solid var(--accent);border-radius:12px;background:#fbfcfd}
.approach-panel h3 {font-size:20px;letter-spacing:-.035em}
.approach-panel h4 {margin:0;font-size:14px}
.approach-contact {display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:14px 0}
.approach-contact p,.approach-highlights p {margin-top:4px;font-size:14px;line-height:1.45}
.approach-options {display:grid;gap:5px;margin:14px 0}
.approach-options label {font-size:13px;font-weight:650}
.approach-options select {width:100%;min-width:0;margin-bottom:5px}
#approach-evidence {margin:0 0 14px;overflow-wrap:anywhere}
#approach-evidence blockquote {white-space:pre-wrap;margin:8px 0;padding-left:12px;border-left:3px solid #d4a17f;font-size:15px;line-height:1.45}
#approach-evidence .record-meta {font-size:13px;color:var(--muted);margin-top:4px}
.approach-script {font-size:16px;line-height:1.55;margin:7px 0 14px}
.approach-highlights {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));gap:10px}
.approach-highlights section {min-width:0;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fff}
.approach-highlights p {overflow-wrap:anywhere}
.approach-highlights button {margin-top:6px;padding:5px 0;color:var(--accent);font-size:13px;text-decoration:underline;background:transparent;border:0}

.agent-brief {margin:16px 0;padding:15px;background:white;border-left:4px solid var(--accent);border-radius:7px;overflow-wrap:anywhere}
.agent-brief h4 {font-size:18px}
.agent-brief dl {display:block;margin:0}
.agent-brief dt,.agent-brief-source h5 {margin:12px 0 2px;font-weight:650;font-size:13px;color:var(--accent)}
.agent-brief dd,.agent-brief-source p {font-size:15px;line-height:1.45;white-space:pre-wrap}
.agent-brief-source {margin-top:12px;padding-top:6px;border-top:1px solid var(--line)}
.agent-brief-source blockquote {margin:5px 0 8px;border-left:2px solid #c6d5de;padding-left:10px;white-space:pre-wrap;font-size:14px;line-height:1.45}
.agent-brief-source a,.agent-brief-source {font-size:13px}
#manual-approach {margin:14px 0 0;border-top:1px solid var(--line);padding-top:10px}
#manual-approach summary {min-height:40px;align-content:center;cursor:pointer;color:var(--accent);font-weight:650}

#kanban-print-tools {display:flex;flex-wrap:wrap;align-items:end;gap:8px 12px;margin:0 0 16px}
#kanban-print-tools > .filter, #kanban-print-project {max-width:100%;min-width:0}
#kanban-print-picker label {margin-top:18px}
#kanban-print-city {width:100%}
#kanban-report {display:none}
#download-kanban {margin-inline-start:8px;color:var(--accent);overflow-wrap:anywhere;max-width:100%}
@media print {#kanban-print-tools {display:none!important}}

.cycle-project {min-width:0;padding:13px;border:1px solid var(--line);border-top:3px solid var(--lane);border-radius:10px;background:white;overflow-wrap:anywhere}
.cycle-city {color:var(--muted);font-size:12px;font-weight:650;margin:0}
.cycle-project h3 {font-size:17px;margin:2px 0 10px}
.cycle-week {border-top:1px solid var(--line)}
.cycle-week > summary {padding:12px 2px;cursor:pointer;font-size:14px;font-weight:650}
.cycle-week > summary::marker {color:var(--lane)}
.cycle-week > summary small {float:right;font-weight:500;color:var(--muted)}
.cycle-period {display:block;margin-top:3px;font-size:12px;font-weight:500;color:var(--muted)}
.cycle-action {display:block;width:100%;min-height:44px;text-align:left;overflow-wrap:anywhere;border:0;border-left:3px solid var(--lane);border-radius:4px;background:#f4f7f9;margin:0 0 6px;padding:8px 10px}
.cycle-action strong,.cycle-action small {display:block}
.cycle-action small {color:var(--muted);font-size:12px;margin-top:3px}
.cycle-action:hover,.cycle-week > summary:hover {background:#e6edf1}
.cycle-action:focus-visible,.cycle-week > summary:focus-visible,#plan-title:focus-visible {outline:3px solid var(--on-light-focus);outline-offset:1px}
#plan-title,.plan-action {scroll-margin-top:15px}

.project-overview {margin:0 0 20px}
.project-overview > h2 {margin-bottom:8px;font-size:15px}
.project-overview-list {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px}
.project-overview .opportunity {display:grid;align-content:start;border:1px solid var(--line);border-top:3px solid var(--orange);border-radius:12px;background:white}
.project-overview .card {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;border:0;box-shadow:none;padding:12px 16px;border-radius:10px;overflow-wrap:anywhere}
.project-overview .card:hover {background:#f5f8fa}
.project-overview .card-top {grid-column:1/-1;grid-row:1;margin-bottom:4px}
.project-overview .card-city {grid-column:1/-1;margin:0}
.project-overview .card-title {grid-column:1/-1;margin:0;font-size:20px}
.project-overview .card-action {grid-column:1/-1;margin:2px 0 0}
.project-overview .card-bottom {grid-column:1/-1;margin:4px 0 0;padding-top:6px}
.project-overview .plan-launch {justify-self:start;align-self:center;width:auto;margin:0 16px 12px;min-height:44px;color:var(--navy)}
.project-overview .plan-launch:focus-visible,.project-overview .card:focus-visible {outline:3px solid var(--on-light-focus);outline-offset:2px}
.cycle-project > .cycle-context {color:var(--muted);font-size:13px}
.cycle-project > .cycle-week:first-child {border-top:0}
@media (min-width:760px) {
  .project-overview-list > .opportunity:only-child:has(.plan-launch) {grid-template-columns:minmax(0,1fr) auto;align-items:center}
  .project-overview-list > .opportunity:only-child .card {grid-template-columns:minmax(180px,1fr) minmax(160px,1fr);align-items:center}
  .project-overview-list > .opportunity:only-child .card-city {grid-column:1;grid-row:1}
  .project-overview-list > .opportunity:only-child .card-title {grid-column:1;grid-row:2}
  .project-overview-list > .opportunity:only-child .card-top {grid-column:1;grid-row:3;justify-content:flex-start;gap:12px;margin:3px 0 0}
  .project-overview-list > .opportunity:only-child .card-action {grid-column:2;grid-row:1/3;margin:0}
  .project-overview-list > .opportunity:only-child .card-bottom {grid-column:2;grid-row:3;border:0;margin:0;padding:0}
  .project-overview-list > .opportunity:only-child .plan-launch {margin:10px 16px}
}

#precadastro-list {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:12px;margin-top:16px}
#precadastro-status {margin:14px 0 0}
.prospect-entry {border:1px solid var(--line);border-radius:10px;padding:16px;overflow-wrap:anywhere}
.prospect-entry h3 {margin:2px 0 10px;font-size:19px}
.prospect-entry dl {margin:0;grid-template-columns:max-content minmax(0,1fr);gap:4px 12px}
.prospect-entry dt {color:var(--ink);font-weight:700}
.prospect-entry small {display:block;margin-top:12px;color:var(--muted)}
#precadastro-dialog {width:min(620px,calc(100% - 28px))}
.precadastro-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}
.precadastro-fields label {margin:0}
.precadastro-fields input,.precadastro-fields select {display:block;width:100%;min-width:0;margin-top:5px;font-size:16px;font-weight:400}
@media(max-width:600px){.precadastro-fields{grid-template-columns:1fr}}

#precadastro-delete-target {overflow-wrap:anywhere}
.prospect-entry .prospect-delete {color:#912d28}
.primary.prospect-danger {background:#9d302a;color:white}
.primary.prospect-danger:hover:not(:disabled) {background:#80231f}

.project-overview .card-contractor {grid-column:1/-1;font-size:13px;color:var(--muted)}
#precadastro-activate-target {overflow-wrap:anywhere}
#precadastro-activate-form input,#precadastro-activate-form select {width:100%}

.pauta-registro {margin-top:14px;padding-top:8px;border-top:1px solid var(--line);overflow-wrap:anywhere}
.pauta-registro p,#pauta-pergunta {white-space:pre-wrap}
#pauta-anterior {margin-top:12px}
#pauta-anterior summary {cursor:pointer}
#pauta-actions {flex-wrap:wrap}
#pauta-dialog .record-form {margin:0;border:0}

#contact-log-dialog .record-form {margin:0;border:0}
#contact-log-list,#contact-log-pauta-text,#contacts-list {overflow-wrap:anywhere}

/* Rótulos da ficha e das duas janelas de registro; os valores continuam legíveis no peso normal. */
#detail :is(dt, label, legend, .field-label),
#detail :is(.approach-contact, .approach-highlights, .agent-brief-source, .pauta-registro) :is(h4, h5),
#detail .action-panel .eyebrow,
:is(#pauta-dialog, #contact-log-dialog) :is(label, .field-label) {
  font-weight:700;
  color:var(--ink);
}
#detail :is(dd, .field-answer, #detail-action, .date-line),
:is(#detail, #pauta-dialog, #contact-log-dialog) :is(input, select, textarea, .field-answer) {
  font-weight:400;
}

#contact-return-dialog .record-form {margin:0;border:0}
#contact-return-form label,.contact-return-record h5 {font-weight:700}
#contact-return-form input {font-weight:400}
.contact-return-record {margin:8px 0;padding:9px 12px;border-left:3px solid var(--accent);background:var(--paper)}
.contact-return-record h5 {margin:0;font-size:14px}
#contact-log-list article:focus-visible {outline:2px solid var(--accent);outline-offset:2px}

/* A mesma hierarquia de leitura para formulários, filtros e registros em tela. */
@media screen {
  body :is(label, legend, dt, .field-label, .field-guide),
  body .record-form :is(label, legend),
  body .filter label,
  body .approach-options label {
    font-weight:700;
  }
  body :is(input, select, textarea, option, dd, .field-answer),
  body .record-form :is(input, select, textarea) {
    font-weight:400;
  }
  /* O seletor fechado apresenta a instrução até que seja escolhida uma resposta. */
  body option.input-prompt,
  body select:has(option.input-prompt:checked),
  #detail select:has(option.input-prompt:checked),
  #contact-log-dialog select:has(option.input-prompt:checked),
  input::placeholder, textarea::placeholder {
    font-weight:700;
  }
  body form :is([role="alert"], .notice),
  #detail-notice, #media-queue-notice {
    font-weight:700;
  }
}
/* A agenda impressa mantém o peso original das linhas de logística. */
@media print {
  #agenda-list .agenda-logistics :is(.field-label, .field-answer) {font-weight:inherit}
  #agenda-list .agenda-logistics .agenda-preparo .field-label {font-weight:700}
  #agenda-list .agenda-logistics .agenda-preparo .field-answer {font-weight:400}
}

#project-stage {margin:12px 0;padding:12px 14px;border:1px solid var(--line);border-radius:8px}
#project-stage-title {font-size:16px;margin:0}
#detail-stage {margin-top:4px;font-size:14px}
#sprint-advance-history {margin-top:10px}
#sprint-advance-history summary, #project-journey summary {cursor:pointer;font-weight:700}
#project-journey {margin-bottom:18px}
#journey-records > h4 {margin:16px 0 6px}
#journey-records h5 {margin:0;font-size:15px}
#journey-records .secondary, #journey-back {margin-top:8px}
#sprint-advance-dialog form {margin:0;border:0}
#sprint-advance-dialog dl {margin:14px 0}

/* Camada de apresentação da carteira. A folha de impressão tem composição própria. */
@media screen {
  :root {
    --canvas: #f5f4f0;
    --surface: #fff;
    --surface-raised: #fff;
    --surface-subtle: #f1f2ee;
    --ink: #102f41;
    --muted: #465e69;
    --tertiary: #576970;
    --line: #d3d9d7;
    --control-edge: #788888;
    --paper: var(--canvas);
    --tint: #fff1e6;
    --accent: #9e3b13;
    --selected: #254653;
    --hover: #edf1f0;
    --disabled: #637075;
    --success: #195642;
    --warning: #714d09;
    --error: #912d28;
    --info: #265970;
    --on-light-focus: #9e3b13;
    --radius-control: 6px;
    --radius-panel: 10px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --control-height: 42px;
    --type-caption: .8125rem;
    --type-ui: .875rem;
    --type-body: 1rem;
    --type-title: clamp(1.875rem, 3.25vw, 3rem);
    --ease: 150ms ease-out;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    line-height: 1.45;
    font-variant-numeric: tabular-nums;
  }

  .shell { max-width: 1680px; padding-inline: clamp(16px, 3vw, 48px); }
  .topbar { border-top: 3px solid var(--navy); background: var(--surface); }
  .top-inner { min-height: 68px; padding-block: 8px; }
  .brand { gap: var(--space-4); }
  .brand img { width: 140px; }
  .division { font-size: var(--type-ui); padding-left: var(--space-4); color: var(--muted); }
  .account { flex-wrap: wrap; justify-content: flex-end; gap: 2px 16px; }
  #account-name { white-space: normal; overflow-wrap: anywhere; text-align: end; }
  .account a, #test-logout { color: var(--accent); }
  .heading { padding-block: clamp(22px, 2.6vw, 40px) 24px; align-items: center; }
  .heading > div { min-width: 0; }
  h1 { font-size: var(--type-title); line-height: 1.05; font-weight: 680; letter-spacing: -.05em; }
  .heading .summary { margin-top: 6px; font-size: var(--type-ui); }
  .view-nav { gap: var(--space-6); }
  .view-nav a { min-height: 44px; }
  .filter label, .record-form label { color: var(--ink); }
  input:not([type="checkbox"]), select, textarea {
    min-width: 0;
    max-width: 100%;
    border: 1px solid var(--control-edge);
    border-radius: var(--radius-control);
    background-color: var(--surface);
    font-family: inherit;
    font-size: var(--type-ui);
    min-height: var(--control-height);
    padding: 8px 10px;
  }
  input[type="checkbox"] { accent-color: var(--accent); }
  .primary, .secondary, .week-controls button {
    min-height: var(--control-height);
    padding: 8px 14px;
    border-radius: var(--radius-control);
    font-size: var(--type-ui);
    line-height: 1.35;
    font-weight: 650;
    transition: border-color var(--ease), color var(--ease), background-color var(--ease);
  }
  .primary:not(.prospect-danger) { background: var(--orange); color: var(--navy); border-color: #c75a21; }
  .primary:not(.prospect-danger):hover:not(:disabled) { background: #f28b4e; border-color: var(--accent); }
  .secondary, .week-controls button { background: var(--surface); border-color: var(--control-edge); }
  .secondary:hover:not(:disabled), .week-controls button:hover:not(:disabled) { background: var(--hover); border-color: var(--muted); }
  .warning { color: var(--warning); border-inline-start: 3px solid currentColor; }
  .feedback { color: var(--success); border-inline-start: 3px solid currentColor; }
  button:disabled { cursor: default; }
  .week-controls { gap: var(--space-1); }
  .agenda-filters { gap: var(--space-3) var(--space-4); align-items: end; }
  .agenda-filters > .filter { display: grid; align-content: end; gap: 5px; margin: 0; max-width: 100%; }
  .agenda-filters label { margin-bottom: 0; }
  .agenda-head .filter { max-width: 100%; }
  .display-switch {
    background: var(--navy);
    border: 0;
    border-radius: var(--radius-panel);
    gap: 3px;
    padding: var(--space-2);
    margin-bottom: var(--space-4);
  }
  .display-switch button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    min-height: 40px;
    color: #e1e9ea;
    font-size: var(--type-ui);
    font-weight: 550;
    line-height: 1.25;
    text-align: start;
    transition: color var(--ease), background-color var(--ease);
  }
  .display-switch svg { width: 18px; height: 18px; flex: none; }
  .display-switch button[aria-pressed="true"] {
    background: var(--selected);
    border-color: transparent;
    box-shadow: inset 3px 0 0 var(--orange);
    color: white;
    font-weight: 700;
  }
  .display-switch button[aria-pressed="true"] svg { color: #ffad78; }
  .display-switch button[aria-pressed="false"]:hover { color: white; background: #193a49; border-color: transparent; }
  .display-switch button:focus-visible { outline-color: #ffc295; outline-offset: 1px; }
  :is(button, a, input, select, textarea, summary):focus-visible { scroll-margin-block: 8px; }
  .skip:focus-visible { z-index: 5; }
}

@media screen and (min-width: 1100px) {
  #conteudo.shell { padding-inline: 0 clamp(24px, 3vw, 48px); }
  #workspace {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 208px minmax(0, 1fr);
    column-gap: clamp(24px, 2.8vw, 48px);
    align-items: start;
    align-content: start;
    min-height: calc(100vh - 71px);
    padding-bottom: 32px;
  }
  #workspace::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 auto 0 0;
    width: 208px;
    background: var(--navy);
  }
  #workspace > * { grid-column: 2; min-width: 0; }
  #workspace > .display-switch {
    grid-column: 1;
    grid-row: 1 / span 16;
    position: sticky;
    top: 0;
    display: grid;
    padding: 24px 12px;
    margin: 0;
    border-radius: 0;
    background: transparent;
    max-height: 100vh;
    overflow-y: auto;
    scrollbar-width: thin;
  }
  .display-switch button { min-height: 44px; }
  .access { margin-inline: auto; }
}

@media screen and (max-width: 680px) {
  .top-inner { min-height: 60px; gap: 8px; }
  .brand { gap: 8px; }
  .brand img { width: clamp(82px, 24vw, 118px); }
  .account { font-size: .75rem; column-gap: 8px; }
  .heading { padding-block: 18px 16px; }
  .heading .filter, .agenda-filters > .filter { display: grid; gap: 4px; }
  .heading .filter { margin-top: 12px; }
  .heading select, .agenda-filters select, .agenda-filters input:not([type="checkbox"]) { width: 100%; }
  .display-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .display-switch button { min-height: 40px; padding-inline: 8px; gap: 7px; font-size: .8125rem; overflow-wrap: anywhere; }
  .display-switch svg { width: 16px; height: 16px; }
  .week-controls button { padding-inline: 8px; font-size: .8125rem; }
  .agenda-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
  .agenda-filters > * { min-width: 0; }
  .agenda-preparo-control { line-height: 1.35; }
  input:not([type="checkbox"]), select, textarea { font-size: 1rem; }
}

@media screen and (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .display-switch button[aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: -3px; }
}
/* Superfícies operacionais. As cores dos três ciclos seguem o plano municipal. */
@media screen {
  #board,
  #sprints-list {
    --cycle-1: #335f73;
    --cycle-2: #56638b;
    --cycle-3: #a6531d;
  }

  .project-overview {
    margin-block: 0 28px;
  }
  .project-overview > h2 {
    margin-block-end: 12px;
    font-size: 18px;
    letter-spacing: -.025em;
  }
  .project-overview-list {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 216px), 1fr));
    gap: 12px;
  }
  .project-overview .opportunity {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    grid-template-rows: 1fr auto;
    min-width: 0;
  }
  .project-overview .card {
    min-width: 0;
    align-content: start;
    background: transparent;
    border-radius: 8px;
    padding: 16px;
    gap: 4px 12px;
  }
  .project-overview .card-top {
    margin-bottom: 10px;
  }
  .project-overview .card-top .area,
  .project-overview .card-top .sprint {
    font-size: 12px;
  }
  .project-overview .card-city {
    font-weight: 600;
    color: var(--muted);
  }
  .project-overview .card-title {
    font-size: clamp(18px, 1.55vw, 22px);
    line-height: 1.16;
    letter-spacing: -.035em;
    color: var(--ink);
  }
  .project-overview .card-action {
    line-height: 1.45;
    margin-top: 4px;
  }
  .project-overview .card-bottom {
    margin-top: 10px;
    padding-top: 10px;
    font-variant-numeric: tabular-nums;
  }
  .project-overview .arrow {
    color: var(--accent);
  }
  .project-overview .plan-launch {
    margin: 0 16px 16px;
    max-width: calc(100% - 32px);
    min-height: 40px;
  }

  .cycle-columns {
    gap: 12px;
  }
  .cycle-columns .lane,
  .sprint-cycle {
    --lane: var(--cycle-1);
    --cycle-wash: #edf3f4;
    background: white;
    padding: 0;
    min-height: 0;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
  }
  .cycle-columns .lane:nth-child(2),
  .sprint-cycle:nth-child(2) {
    --lane: var(--cycle-2);
    --cycle-wash: #f0f0f6;
  }
  .cycle-columns .lane:nth-child(3),
  .sprint-cycle:nth-child(3) {
    --lane: var(--cycle-3);
    --cycle-wash: #f8efe6;
  }
  .lane-head,
  .sprint-cycle > h3 {
    background: var(--cycle-wash);
    border-block-start: 3px solid var(--lane);
    border-radius: 7px 7px 0 0;
    margin: 0;
    padding: 14px 16px;
  }
  .lane-head {
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 6px 12px;
  }
  .lane-head h2 {
    margin-top: 4px;
    font-size: clamp(18px, 1.55vw, 23px);
    line-height: 1.15;
    letter-spacing: -.035em;
  }
  .lane-head .eyebrow {
    font-size: 11px;
    color: var(--lane);
    font-weight: 700;
    letter-spacing: .08em;
  }
  .lane-head .count {
    border: 0;
    border-radius: 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.5;
    text-align: start;
    color: var(--muted);
  }
  .lane .cards {
    gap: 8px;
    padding: 12px;
  }
  .cycle-project {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
  }
  .cycle-project > .cycle-context {
    margin: 0;
    padding: 4px 4px 12px;
    color: var(--muted);
    line-height: 1.45;
    font-weight: 600;
  }
  .cycle-week > summary {
    padding: 12px 4px;
    font-size: 14px;
    border-radius: 4px;
  }
  .cycle-week > summary small,
  .cycle-period {
    font-variant-numeric: tabular-nums;
    font-size: 12px;
  }
  .cycle-week > summary small {
    margin-inline-start: 8px;
  }
  .cycle-week[open] {
    padding-bottom: 4px;
  }
  .cycle-action {
    background: #f8f8f5;
    border: 1px solid transparent;
    border-inline-start: 2px solid var(--lane);
    border-radius: 0 4px 4px 0;
    padding: 10px 12px;
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.4;
  }
  .cycle-action small {
    line-height: 1.45;
    font-variant-numeric: tabular-nums;
  }
  .cycle-action:hover,
  .cycle-week > summary:hover {
    background: var(--cycle-wash);
  }
  .cycle-action:hover {
    border-color: var(--lane);
  }
  .sprint-cycles {
    gap: 12px;
  }
  .sprint-cycle > h3 {
    padding: 14px 12px;
    font-size: 16px;
    letter-spacing: -.02em;
    line-height: 1.35;
  }
  .sprint-cycle ol {
    margin: 0;
    padding-inline: 8px;
  }
  .sprint-cycle summary:hover,
  .sprint-cycle details[open] > summary {
    background: var(--cycle-wash);
  }
  .sprint-cycle summary::marker {
    color: var(--lane);
  }
  .sprint-item,
  .sprint-body .record-entry {
    margin-block: 10px;
  }

  .agenda,
  #management {
    min-width: 0;
    padding: clamp(16px, 2.15vw, 28px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
  }
  .agenda-head,
  #management .section-head,
  #plan-panel .section-head {
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
    column-gap: 16px;
    row-gap: 12px;
  }
  .agenda-head > *,
  #plan-panel .section-head > * {
    min-width: 0;
    max-width: 100%;
  }
  .agenda-head h2,
  #week-title,
  #due-title,
  #management h2,
  #plan-title {
    margin: 0;
    line-height: 1.18;
    font-size: clamp(21px, 2vw, 30px);
    letter-spacing: -.035em;
  }
  #week-title {
    margin-top: 5px;
  }
  .agenda-day {
    margin-top: 24px;
  }
  .agenda-day h3,
  .agenda-comparison .agenda-day h4,
  .plan-front h3 {
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
    margin-bottom: 0;
    line-height: 1.4;
  }
  .agenda-action,
  .plan-action {
    padding: 12px 8px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: white;
  }
  .agenda-action + .agenda-action {
    margin-top: 0;
  }
  .agenda-action:hover,
  .plan-action:hover {
    background: #faf4ee;
  }
  .agenda-description strong {
    font-size: 15px;
    letter-spacing: -.012em;
    line-height: 1.4;
  }
  .agenda-logistics {
    font-variant-numeric: tabular-nums;
  }
  .agenda-preparo {
    border-inline-start: 2px solid var(--line);
    padding-inline-start: 12px;
    margin-top: 4px;
  }
  .agenda-comparison {
    gap: 16px;
  }
  .agenda-comparison .agenda-week {
    padding: 0;
    border: 0;
  }
  .agenda-week-heading {
    padding: 12px;
    border: 0;
    border-block-start: 2px solid var(--ink);
    border-radius: 0 0 3px 3px;
    background: #f4f5f3;
  }
  .agenda-comparison .agenda-day {
    margin-top: 16px;
  }
  .agenda-comparison .agenda-day h4 {
    font-size: 14px;
  }

  .meeting-history-heading {
    margin-block: 24px 12px;
    font-size: 17px;
    letter-spacing: -.02em;
  }
  .portfolio-records .record-entry {
    position: relative;
    padding: 4px 0 20px 18px;
    margin: 0 0 0 4px;
    border-inline-start: 1px solid var(--line);
    font-size: 14px;
    line-height: 1.5;
  }
  .portfolio-records .record-entry::before {
    content: "";
    position: absolute;
    left: -4px;
    top: 11px;
    width: 7px;
    height: 7px;
    background: white;
    border: 2px solid var(--accent);
    border-radius: 50%;
  }
  .portfolio-records .portfolio-project {
    font-size: 13px;
    line-height: 1.45;
  }
  .portfolio-records .record-entry h3 {
    margin-block: 4px 8px;
    font-size: 19px;
    letter-spacing: -.022em;
  }
  .portfolio-records .record-entry p {
    max-width: 76ch;
  }
  #management .event {
    padding: 12px 0;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  #management .event-date {
    flex-shrink: 0;
  }
  #precadastro-list {
    gap: 12px;
  }
  .prospect-entry {
    min-width: 0;
    border-radius: 6px;
    background: white;
    padding: 16px;
  }
  .prospect-entry > .record-meta {
    font-size: 13px;
    color: var(--muted);
  }
  .prospect-entry h3 {
    margin: 4px 0 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    letter-spacing: -.03em;
  }
  .prospect-entry dl {
    font-size: 14px;
    line-height: 1.45;
    row-gap: 8px;
  }

  @media (max-width: 680px) {
    .project-overview {margin-bottom: 20px}
    .cycle-columns {grid-template-columns: minmax(0, 1fr)}
    .cycle-columns .lane {padding: 0}
    .lane-head {align-items: center}
    .agenda-head .filter,
    .agenda-head select,
    .plan-filters select {min-width: 0; max-width: 100%}
    .plan-filters {display: grid; align-items: end}
    #management .event-date {white-space: normal}
  }
}
/* Fichas e edição: uma superfície de leitura, separada do quadro em uso. */
@media screen {
  .access {
    width: min(100%, 30rem);
    margin: clamp(24px, 7vh, 80px) auto;
    padding: clamp(20px, 4vw, 40px);
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--orange);
    border-radius: 10px;
    box-shadow: 0 8px 28px rgb(16 47 65 / 6%);
  }

  .access h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 650;
    line-height: 1.1;
    letter-spacing: -.038em;
  }

  .access p { margin: 12px 0 24px; }
  #test-login { max-width: none; gap: 8px; }
  #test-login label:not(:first-child) { margin-top: 8px; }

  dialog {
    --dialog-gutter: clamp(16px, 3vw, 28px);
    width: min(34rem, calc(100% - 24px));
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 24px 72px rgb(7 31 46 / 21%), 0 3px 12px rgb(7 31 46 / 12%);
    overscroll-behavior: contain;
    overflow-wrap: anywhere;
    text-align: start;
  }

  dialog::backdrop { background: rgb(7 31 46 / 49%); }
  #detail { width: min(44rem, calc(100% - 24px)); }
  #action-detail { width: min(38rem, calc(100% - 24px)); }

  dialog .detail-body,
  dialog > form.record-form {
    padding: var(--dialog-gutter);
  }

  dialog > form.record-form,
  dialog .detail-body > form.record-form:only-of-type:not([hidden]) {
    border: 0;
    border-radius: 0;
    background: #fff;
  }

  dialog > form.record-form { margin: 0; }
  dialog > .detail-body > form.record-form:only-of-type { padding: 0; }
  dialog :is(.detail-body, .record-form) h2 {
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    line-height: 1.17;
    letter-spacing: -.034em;
  }

  dialog .detail-head {
    min-height: 52px;
    padding: 6px var(--dialog-gutter);
    border-bottom: 2px solid var(--orange);
    background: var(--navy);
    color: #fff;
  }

  #detail-city { font-size: .9rem; letter-spacing: .015em; }
  #detail-title { font-size: clamp(1.65rem, 3.5vw, 2.15rem); }
  #action-context { max-width: 38ch; line-height: 1.45; }
  #action-title { margin: 16px 0 20px; }
  dialog .section-head { align-items: center; }
  dialog .form-actions { margin-top: 20px; }
  dialog .record-form { border-radius: 8px; }
  dialog form label { line-height: 1.45; }
  dialog label > :is(input:not([type="checkbox"]), select, textarea) {
    display: block;
    width: 100%;
    margin-top: 5px;
  }

  dialog :is(.detail-body, fieldset, label, select, input, textarea) { min-width: 0; }
  dialog :is(button, select, input, textarea) { max-width: 100%; }
  dialog form :is(fieldset, .form-actions) { padding-top: 12px; border-top: 1px solid var(--line); }
  dialog form legend { padding-inline-end: 8px; }

  #project-stage {
    margin: 18px 0 24px;
    padding: 12px 16px;
    border: 0;
    border-inline-start: 3px solid var(--navy);
    border-radius: 0 6px 6px 0;
    background: var(--paper);
  }

  #detail-stage,
  #detail .date-line,
  dialog .record-meta { font-variant-numeric: tabular-nums; }

  .approach-panel {
    margin: 0 0 24px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .approach-panel h3,
  #detail .record-section h3 {
    font-size: 1.18rem;
    line-height: 1.25;
    letter-spacing: -.028em;
  }

  .approach-panel > .approach-contact {
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .agent-brief {
    margin: 18px 0;
    padding: clamp(14px, 2.2vw, 20px);
    border: 0;
    border-inline-start: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
    background: var(--tint);
  }

  #agent-brief-title { font-size: 1.06rem; }
  .agent-brief dd,
  .agent-brief-source p,
  .approach-script { line-height: 1.55; }

  .agent-brief-source blockquote,
  #approach-evidence blockquote,
  #diagnostic-example blockquote {
    margin: 8px 0;
    padding: 4px 12px;
    border-inline-start: 2px solid var(--accent);
  }

  .approach-highlights {
    column-gap: 20px;
    row-gap: 12px;
    padding: 12px 0;
    border-block: 1px solid var(--line);
  }

  .approach-highlights section { padding: 0; border: 0; border-radius: 0; }
  .approach-highlights button { min-height: 32px; text-underline-offset: 3px; }
  #manual-approach { margin-top: 8px; padding: 0; border: 0; }
  #detail summary { line-height: 1.45; }
  #detail summary::marker { color: var(--accent); }

  .action-panel {
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-inline-start: 3px solid var(--accent);
    border-radius: 6px;
    background: #fff;
  }

  .plan-action-body dl,
  #detail-fields {
    grid-template-columns: minmax(0, 34%) minmax(0, 1fr);
    gap: 0;
    margin-block: 12px;
    border-top: 1px solid var(--line);
  }

  :is(.plan-action-body, #detail-fields) :is(dt, dd) {
    margin: 0;
    padding-block: 8px;
    border-bottom: 1px solid var(--line);
    line-height: 1.45;
  }

  :is(.plan-action-body, #detail-fields) dt { padding-inline-end: 12px; }
  #detail .record-section { margin-top: 24px; padding-top: 20px; }
  #detail .record-entry {
    margin-top: 12px;
    padding: 4px 0 4px 12px;
    border-inline-start: 2px solid var(--line);
  }

  #detail .record-entry .record-meta { margin-top: 6px; line-height: 1.45; }
  #detail .history-empty { color: var(--muted); }
}

@media screen and (max-width: 440px) {
  dialog .section-head > *,
  dialog .approach-contact > * { max-width: 100%; min-width: 0; }
  .approach-highlights { grid-template-columns: 1fr; }
  .approach-highlights section + section { padding-top: 12px; border-top: 1px solid var(--line); }
  #action-detail .plan-action-body dl,
  #detail-fields { grid-template-columns: minmax(0, 39%) minmax(0, 1fr); }
}

@media screen {
  #action-preparation {
    margin-top: var(--space-4);
    border-block: 1px solid var(--line);
    overflow-wrap: anywhere;
  }
  #action-preparation summary,
  #action-last-contact summary, #action-earlier-returns summary, #action-date-history summary, #completed-returns summary {
    padding-block: var(--space-3);
    color: var(--ink);
    font-weight: 700;
    cursor: pointer;
  }
  #action-preparation summary::marker, #action-last-contact summary::marker, #action-earlier-returns summary::marker, #action-date-history summary::marker { color: var(--accent); }
  #action-last-contact, #action-earlier-returns, #action-date-history { border-bottom: 1px solid var(--line); margin-bottom: var(--space-4); overflow-wrap: anywhere; }
  #completed-returns { border-bottom: 1px solid var(--line); padding-block: var(--space-2); }
  #completed-returns-list { padding-block-end: var(--space-2); }
  #action-earlier-list { margin: 0; padding: 0 0 var(--space-3) var(--space-4); font-size: var(--type-ui); }
  #action-earlier-list li + li { border-top: 1px solid var(--line); padding-top: var(--space-2); margin-top: var(--space-2); }
  #action-earlier-list p { margin: var(--space-1) 0 0; }
  #action-last-contact-summary { display: inline-block; margin-inline-start: var(--space-2); font-size: var(--type-ui); color: var(--muted); font-weight: 400; }
  #action-last-contact-body { padding-bottom: var(--space-3); font-size: var(--type-ui); }
  #action-last-contact-body p { margin: 0 0 var(--space-2); }
  #preparation-project { margin: 0 0 var(--space-3); }
  #action-preparation section { padding-block: var(--space-3); border-top: 1px solid var(--line); }
  #action-preparation h3 { font-size: var(--type-body); }
  #action-preparation .record-entry { margin-top: var(--space-2); }
  #action-preparation .history-empty { padding-block: var(--space-1); }
  #action-preparation a { color: var(--accent); text-underline-offset: 2px; }
}

@media screen {
  #action-topic {
    margin: 0 0 var(--space-4);
    padding: var(--space-3) var(--space-4);
    border-inline-start: 3px solid var(--accent);
    background: var(--tint);
    border-radius: 0 var(--radius-control) var(--radius-control) 0;
    overflow-wrap: anywhere;
  }
  #action-topic h3 { margin: 0; font-size: var(--type-body); }
  #action-topic-origin { color: var(--muted); font-size: var(--type-caption); }
  #action-topic-subject { margin-block: var(--space-2); font-size: 1.1rem; line-height: 1.4; }
  #action-topic-question, #action-topic-recipient, #action-topic-reason { margin-block: var(--space-2); font-size: var(--type-ui); }
  #action-topic-details summary { cursor: pointer; color: var(--ink); padding-block: 6px; font-size: var(--type-ui); font-weight: 700; }
  #action-topic-source a { color: var(--accent); text-underline-offset: 2px; }
}

/* A situação acompanha o texto da ação. A borda permanece visível em alto contraste. */
.status-marker {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  justify-self: start;
  border-inline-start: 3px solid currentColor;
  padding: 2px 7px;
  border-radius: 2px;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0;
  text-align: start;
  white-space: normal;
  overflow-wrap: anywhere;
}
@media screen {
  .status-marker[data-tone="recorded"], .status-marker[data-tone="past"] { color: #405460; background: #edf0f1; }
  .status-marker[data-tone="scheduled"] { color: var(--info); background: #eaf3f7; }
  .status-marker[data-tone="today"] { color: var(--accent); background: var(--tint); }
  .status-marker[data-tone="undated"] { color: var(--warning); background: #fbf3dc; }
  .status-marker[data-tone="overdue"] { color: var(--error); background: #fceeea; }
  .status-marker[data-tone="done"] { color: var(--success); background: #e8f3ec; }
}

@media screen {
  .contact-parties, .contact-next-logistics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: 2px 16px;
  }
  .contact-parties { margin-block: 6px; }
  :is(#contacts-list, #detail #contact-log-list) :is(.contact-parties, .contact-next-logistics) .field-answer {
    font-weight: 650;
    color: var(--ink);
  }
  .contact-return-record {
    max-width: 76ch;
    margin-block: 8px;
    padding: 8px 12px;
    border-inline-start: 3px solid var(--control-edge);
    border-radius: 2px;
    background: var(--surface-subtle);
  }
  :is(#contacts-list, #detail #contact-log-list) .contact-next-task .field-answer {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 700;
  }
  .contact-next-logistics {
    padding-block-end: 4px;
    font-variant-numeric: tabular-nums;
  }
}

@media screen {
  #action-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    margin: 10px 0 16px;
    padding: 12px 14px;
    border-block: 1px solid var(--line);
    background: var(--surface-subtle);
    overflow-wrap: anywhere;
  }
  #action-overview dt {
    margin: 0 0 3px;
    font-size: var(--type-caption);
    line-height: 1.3;
  }
  #action-overview dd {
    margin: 0;
    color: var(--ink);
    font-size: var(--type-ui);
    line-height: 1.4;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }
  #action-topic-subject {
    font-weight: 700;
    color: var(--ink);
  }
  #action-topic-question:not([hidden]) {
    margin-block: 8px;
    padding-block: 8px;
    border-block: 1px solid var(--line);
  }
  #action-topic-recipient .field-answer { font-weight: 600; }
  #detail .action-panel {
    padding: 12px 16px;
    background: var(--surface-subtle);
    border-color: var(--line);
    border-inline-start-color: var(--selected);
  }
  #detail #detail-action { font-weight: 700; }
  #detail #detail-date { font-weight: 650; font-variant-numeric: tabular-nums; }
}

@media screen {
  .project-overview .card-action {
    display: grid;
    gap: 2px;
    padding-block-start: 8px;
    font-size: .95rem;
    color: var(--ink);
  }
  .next-action-label {
    font-size: .75rem;
    font-weight: 700;
    color: var(--muted);
  }
  .operational-date {
    display: inline-block;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
    background: #edf2f3;
    border-radius: 3px;
    padding-inline: 4px;
  }
  .agenda-action .agenda-fact .field-answer { font-weight: 650; color: var(--ink); }
  .agenda-action .agenda-fact .field-label { color: var(--muted); }
  .portfolio-records .evidence-fact {
    display: block;
    padding: 6px 10px;
    border-inline-start: 2px solid var(--control-edge);
    background: var(--surface-subtle);
    overflow-wrap: anywhere;
  }
  .portfolio-records .evidence-fact .field-answer { color: var(--ink); font-weight: 600; }
}
