:root {
  --blue: #003865;
  --blue-2: #00507f;
  --sky: #32a6e6;
  --green: #1e9f7f;
  --lime: #7fe06c;
  --yellow: #fbd300;
  --orange: #f78344;
  --purple: #9f4bb9;
  --gray: #bdccd4;
  --surface: #f2f5f6;
  --surface-2: #e5ebee;
  --line: #cad6dd;
  --ink: #123047;
  --muted: #627888;
  --white: #ffffff;
  --danger: #bd3f3f;
  --danger-soft: #fff0ed;
  --success-soft: #e9f8f2;
  --shadow: 0 18px 50px rgba(0, 56, 101, 0.1);
  --radius: 18px;
  --font: Verdana, Geneva, Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.auth-checking body { visibility: hidden; pointer-events: none; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  background: var(--yellow);
  color: var(--blue);
  font-weight: 700;
  border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; }
.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;
}

.site-header {
  min-height: 76px;
  padding: 0 clamp(20px, 4vw, 64px);
  background: var(--blue);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}
.brand img { width: 92px; height: auto; display: block; }
.brand span { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.35); }
.primary-nav { display: flex; align-self: stretch; }
.primary-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 132px;
  padding: 0 22px;
  color: rgba(255,255,255,.68);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  justify-content: center;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 4px;
  left: 22px;
  right: 22px;
  border-radius: 4px 4px 0 0;
  background: transparent;
}
.primary-nav a.active { color: var(--white); }
.primary-nav a.active::after { background: var(--lime); }
.primary-nav a span {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
}
.save-state { justify-self: end; font-size: 11px; color: rgba(255,255,255,.64); }
.save-state::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--lime); }
.header-tools { justify-self: end; display: flex; align-items: center; gap: 14px; }
.theme-toggle { min-height: 38px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; color: var(--white); background: rgba(255,255,255,.08); cursor: pointer; }
.theme-toggle:hover { border-color: var(--lime); background: rgba(255,255,255,.14); }
.theme-toggle:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.theme-toggle span { color: var(--lime); font-size: 17px; line-height: 1; }
.theme-toggle b { font-size: 10px; white-space: nowrap; }
.auth-button { min-height: 38px; padding: 0 13px; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; color: var(--blue); background: var(--lime); cursor: pointer; font-size: 10px; font-weight: 700; white-space: nowrap; }
.auth-button:hover { background: #92eb80; }
.auth-button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.page-hero {
  min-height: 360px;
  padding: 68px max(24px, calc((100vw - 1280px) / 2));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  background-color: var(--blue);
  color: var(--white);
  overflow: hidden;
}
.planning-hero {
  position: relative;
  background-image:
    radial-gradient(circle at 79% 35%, rgba(127,224,108,.22) 0 2px, transparent 3px),
    linear-gradient(118deg, transparent 0 59%, rgba(50,166,230,.12) 59% 72%, transparent 72%),
    linear-gradient(155deg, var(--blue) 0 70%, #004575 70% 100%);
}
.planning-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: 7%;
  top: -210px;
  border: 58px solid rgba(127,224,108,.08);
  border-radius: 50%;
}
.page-hero > * { position: relative; z-index: 1; }
.eyebrow, .section-kicker {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.page-hero .eyebrow { color: var(--lime); }
.page-hero h1 {
  max-width: 790px;
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -.045em;
}
.hero-copy { max-width: 640px; margin: 20px 0 0; color: rgba(255,255,255,.73); font-size: 16px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; padding-bottom: 6px; }

.button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .icon-button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(50,166,230,.35);
  outline-offset: 2px;
}
.button-accent { color: var(--blue); background: var(--lime); box-shadow: 0 8px 22px rgba(127,224,108,.18); }
.button-accent:hover { background: #92eb80; }
.button-light { color: var(--blue); background: var(--white); }
.button-secondary { color: var(--white); background: var(--green); }
.button-secondary:hover { background: #178c70; }
.button-ghost { border-color: var(--line); color: var(--blue); background: var(--white); }
.button.large { min-height: 52px; padding-inline: 24px; }
.button:disabled { cursor: not-allowed; opacity: .52; transform: none; box-shadow: none; }

.workspace, .execution-workspace {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 70px;
}
.workspace-topline, .execution-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
}
.workspace-topline h2, .execution-heading h1 { margin: 0; color: var(--blue); font-size: clamp(26px, 3vw, 38px); letter-spacing: -.035em; }
.execution-heading p:last-child { margin: 8px 0 0; color: var(--muted); }
.plan-switcher { display: flex; gap: 8px; align-items: center; }
.plan-switcher label { font-size: 11px; font-weight: 700; color: var(--muted); margin-right: 4px; }
select, input, textarea {
  width: 100%;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
}
select, input { height: 44px; padding: 0 12px; }
textarea { padding: 11px 12px; resize: vertical; }
input:disabled, select:disabled, textarea:disabled { background: #edf1f3; color: #546c7b; opacity: 1; cursor: not-allowed; }
.plan-switcher select { min-width: 270px; }
.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--blue);
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
}
.danger-quiet { color: var(--danger); }

.lock-banner {
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(30,159,127,.35);
  background: var(--success-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.lock-banner[hidden] { display: none; }
.lock-icon { width: 34px; height: 34px; display: grid; place-items: center; background: var(--green); color: white; border-radius: 50%; font-weight: 700; }
.lock-banner > div:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.lock-banner span { color: var(--muted); font-size: 12px; }
.planning-revision-banner, .execution-revision-banner { margin-bottom: 22px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; border: 1px solid #e2ba58; border-radius: 12px; background: #fff7dc; }
.planning-revision-banner[hidden], .execution-revision-banner[hidden] { display: none; }
.planning-revision-banner > div:nth-child(2), .execution-revision-banner > span { flex: 1; }
.planning-revision-banner > div:nth-child(2) { display: grid; gap: 2px; }
.planning-revision-banner span, .execution-revision-banner span { color: var(--muted); font-size: 11px; }
.execution-revision-banner strong { color: var(--blue); }

.panel {
  margin-bottom: 22px;
  background: var(--white);
  border: 1px solid #dbe4e8;
  border-radius: var(--radius);
  box-shadow: 0 6px 28px rgba(0,56,101,.045);
}
.panel-heading {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.panel-heading > div:first-child, .finalize-panel > div:first-child { display: flex; align-items: flex-start; gap: 15px; }
.panel-heading h3, .panel-heading h2, .finalize-panel h3 { margin: 0; color: var(--blue); font-size: 18px; }
.panel-heading p, .finalize-panel p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.step-number {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--lime);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}
.step-number.light { background: rgba(255,255,255,.14); color: var(--white); border: 1px solid rgba(255,255,255,.28); }
.form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 24px 28px 30px; }
.field { display: grid; gap: 7px; }
.field > span { color: var(--blue); font-size: 11px; font-weight: 700; }
.field-help { color: var(--muted); font-size: 10px; line-height: 1.35; }
.field-span-2 { grid-column: span 2; }
.schedule-actions, .data-actions, .execution-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.validation-summary { margin: 18px 28px 0; min-height: 0; }
.validation-summary:not(:empty) { padding: 12px 14px; border-radius: 8px; font-size: 12px; }
.validation-summary.valid { color: #126a57; background: var(--success-soft); }
.validation-summary.warning { color: #8b4a19; background: #fff5e8; }
.validation-summary.error { color: #8e3030; background: var(--danger-soft); }

.schedule-table-wrap { overflow-x: auto; padding: 12px 28px 24px; }
.schedule-table { width: 100%; border-collapse: collapse; min-width: 800px; }
.schedule-table th {
  padding: 12px 9px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.schedule-table td { padding: 10px 8px; border-bottom: 1px solid var(--surface-2); vertical-align: middle; }
.schedule-table tbody tr:last-child td { border-bottom: 0; }
.schedule-table td:first-child { width: 94px; color: var(--muted); font-size: 11px; font-weight: 700; }
.schedule-table td:nth-child(2) { min-width: 300px; }
.schedule-table td:nth-child(3), .schedule-table td:nth-child(4) { width: 130px; }
.schedule-table td:nth-child(5) { width: 110px; color: var(--blue); font-weight: 700; font-size: 12px; white-space: nowrap; }
.schedule-table td:last-child { width: 150px; }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; }
.sequence-select { width: 68px; min-width: 68px; padding-inline: 8px; font-weight: 700; text-align: center; }
/* Dia da etapa: derivado da sequencia, visivel e corrigivel. */
.day-select { width: 132px; min-width: 132px; padding-inline: 8px; }
.day-select.is-shifted { border-color: var(--orange); color: #8a4a12; font-weight: 700; }
html[data-theme="dark"] .day-select.is-shifted { color: #fadfc6; }
.row-action {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 7px;
  color: var(--blue);
  background: var(--surface);
  cursor: pointer;
}
.row-action.delete { color: var(--danger); }
.row-action:disabled { opacity: .35; cursor: not-allowed; }
.empty-state { margin: 10px 28px 28px; padding: 34px; border: 1px dashed var(--line); border-radius: 12px; display: grid; justify-items: center; text-align: center; gap: 6px; }
.empty-state[hidden] { display: none; }
.empty-state span { color: var(--muted); font-size: 12px; margin-bottom: 10px; }

.gantt-section { margin: 0 28px 28px; padding-top: 24px; border-top: 1px solid var(--surface-2); }
.subsection-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 18px; }
.subsection-heading h4 { margin: 0; color: var(--blue); font-size: 15px; }
.subsection-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.window-total { color: var(--blue); font-size: 12px; font-weight: 700; }
.gantt { display: grid; gap: 9px; }
.gantt-row { display: grid; grid-template-columns: minmax(140px, 260px) 1fr 78px; gap: 12px; align-items: center; }
.gantt-label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink); font-size: 11px; }
.gantt-track { position: relative; height: 22px; background: var(--surface); border-radius: 5px; overflow: hidden; }
.gantt-track::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(0,56,101,.08) calc(25% - 1px) 25%); }
.gantt-bar { position: absolute; min-width: 4px; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--sky), var(--green)); }
.gantt-time { color: var(--muted); font-size: 10px; text-align: right; }
.gantt-empty { color: var(--muted); padding: 18px; background: var(--surface); border-radius: 8px; text-align: center; font-size: 12px; }

.finalize-panel {
  margin: 22px 0;
  padding: 26px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: var(--white);
  background: var(--blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.finalize-panel h3 { color: var(--white); }
.finalize-panel p { color: rgba(255,255,255,.68); }
.data-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 12px;
  font-size: 11px;
}
.data-tools > div:first-child { display: grid; gap: 3px; }
.data-tools strong { color: var(--blue); font-size: 12px; }
.page-export-bar { width: min(100% - 48px, 1280px); margin: 18px auto 0; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.page-export-bar > div:first-child { min-width: 0; display: grid; gap: 3px; }
.page-export-bar strong { color: var(--blue); font-size: 12px; }
.page-export-bar span { color: var(--muted); font-size: 10px; }
.page-export-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.page-export-actions .button { min-height: 40px; padding-inline: 14px; white-space: nowrap; }
.portal-export-bar { margin-top: 16px; }
.portal-print-header { display: none; }

.confirm-dialog { max-width: 520px; padding: 0; border: 0; border-radius: 18px; box-shadow: 0 30px 90px rgba(0,38,68,.28); }
.confirm-dialog::backdrop { background: rgba(0,35,62,.7); backdrop-filter: blur(3px); }
.confirm-dialog form { padding: 34px; text-align: center; }
.dialog-mark { width: 54px; height: 54px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--blue); font-size: 24px; font-weight: 700; }
.confirm-dialog h2 { margin: 0; color: var(--blue); }
.confirm-dialog p { margin: 12px 0 26px; color: var(--muted); font-size: 13px; }
.dialog-actions { display: flex; justify-content: center; gap: 10px; }

.status-hero {
  min-height: 390px;
  padding: 44px max(24px, calc((100vw - 1280px) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 28px;
  color: var(--white);
  transition: background .25s ease;
}
.status-neutral { background: linear-gradient(120deg, var(--blue), #07517d); }
.status-delay { background: linear-gradient(120deg, #752e24, #b84837); }
.status-ahead { background: linear-gradient(120deg, #075f4b, var(--green)); }
.status-on-time { background: linear-gradient(120deg, var(--blue), #176c7a); }
.status-warn { background: linear-gradient(120deg, #7d4a15, #c07526); }
.status-label { margin: 0 0 4px; color: rgba(255,255,255,.72); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.status-value { display: flex; align-items: baseline; gap: 5px; line-height: 1; }
.status-value strong { font-size: clamp(72px, 10vw, 122px); letter-spacing: -.08em; }
.status-value span:first-child { font-size: 42px; }
.status-value span:last-child { font-size: 24px; font-weight: 700; margin-left: 8px; }
.status-readable { width: fit-content; margin: 10px 0 0; padding: 6px 10px; border: 1px solid rgba(255,255,255,.28); border-radius: 7px; color: var(--white); background: rgba(0,0,0,.1); font-size: 13px; font-weight: 700; }
.status-clocks { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.status-clock { min-width: 0; padding: 20px 24px; border: 1px solid rgba(255,255,255,.22); border-radius: 16px; background: rgba(0,0,0,.09); display: grid; text-align: center; }
.status-clock span { color: rgba(255,255,255,.62); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.status-clock strong { margin: 3px 0; font-size: 34px; letter-spacing: -.03em; }
.status-clock small { color: rgba(255,255,255,.7); }
.status-forecast-clock { background:rgba(0,0,0,.16); border-color:rgba(255,255,255,.34); }
.status-forecast-clock strong { color:var(--lime); }

.execution-workspace { padding-top: 38px; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(186px, 1fr)); gap: 14px; margin-bottom: 22px; }
.metric-card { min-height: 132px; padding: 20px; background: var(--white); border: 1px solid #dbe4e8; border-radius: 14px; display: flex; flex-direction: column; justify-content: center; }
.metric-card > span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.metric-card strong { margin: 8px 0 3px; color: var(--blue); font-size: 21px; line-height: 1.15; }
.metric-card small { color: var(--muted); font-size: 10px; }
.metric-card.emphasis { background: var(--blue); border-color: var(--blue); }
.metric-card.emphasis > span, .metric-card.emphasis small { color: rgba(255,255,255,.65); }
.metric-card.emphasis strong { color: var(--lime); font-size: 28px; }
.progress-track { width: 100%; height: 7px; margin-top: 12px; background: var(--surface-2); border-radius: 8px; overflow: hidden; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--green); border-radius: inherit; transition: width .3s ease; }
.blocked-state { padding: 28px; margin-bottom: 22px; display: flex; align-items: center; gap: 18px; background: #fff6e5; border: 1px solid #efd7a5; border-radius: 16px; }
.blocked-state[hidden] { display: none; }
.blocked-state > div:nth-child(2) { flex: 1; }
.blocked-state h2 { margin: 0; color: var(--blue); font-size: 19px; }
.blocked-state p { margin: 4px 0 0; color: var(--muted); }
.blocked-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--blue); font-weight: 700; font-size: 20px; }
.execution-panel-heading { align-items: flex-start; }
.legend { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 10px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 11px; height: 11px; border-radius: 3px; }
.legend-programmed { background: var(--blue); }
.legend-realized { background: var(--green); }
.execution-list { padding: 8px 28px 28px; }
.execution-step { border-bottom: 1px solid var(--surface-2); padding: 22px 0; }
.execution-step:last-child { border-bottom: 0; }
.execution-step-header { display: grid; grid-template-columns: 44px minmax(220px, 1fr) auto; gap: 12px; align-items: center; margin-bottom: 18px; }
.execution-index { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--blue); font-size: 11px; font-weight: 700; }
.execution-step.is-complete .execution-index { background: var(--green); color: var(--white); }
.execution-step.is-active .execution-index { background: var(--yellow); color: var(--blue); }
.execution-step.is-skipped { opacity: .82; }
.execution-step.is-skipped .execution-index { background: var(--surface-2); color: var(--muted); }
.execution-step-title h3 { margin: 0; color: var(--blue); font-size: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.execution-step-title span { color: var(--muted); font-size: 10px; }
.execution-step.is-critical { background: var(--danger-soft); box-shadow: inset 4px 0 0 #b84837; padding-left: 14px; }
.execution-step.is-critical .execution-index { background: #b84837; color: var(--white); }
.critical-flag { padding: 3px 8px; border-radius: 20px; background: #b84837; color: var(--white); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.step-forecast { display: block; margin-top: 5px; color: var(--blue); font-size: 9px; font-weight: 700; }
.step-variance { padding: 7px 10px; border-radius: 7px; font-size: 10px; font-weight: 700; background: var(--surface); color: var(--muted); }
.step-variance.delay { background: var(--danger-soft); color: #a43b32; }
.step-variance.ahead { background: var(--success-soft); color: #13735d; }
.step-variance.skipped { background: var(--surface-2); color: var(--muted); }
.execution-step-grid { display: grid; grid-template-columns: 1fr 1.35fr 1.55fr; gap: 18px; }
.programmed-block, .realized-block { padding: 16px; border-radius: 11px; }
.programmed-block { background: var(--surface); border-left: 4px solid var(--blue); }
.realized-block { background: #f2fbf8; border-left: 4px solid var(--green); }
.block-label { display: block; margin-bottom: 10px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.time-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 9px; }
.time-pair strong { color: var(--blue); font-size: 18px; }
.time-pair span { color: var(--muted); }
.realized-times { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.realized-duration { display: block; margin-top: 9px; color: var(--muted); font-size: 9px; }
.realized-duration.is-over { color: #a43b32; font-weight: 700; }
.time-entry { display: grid; grid-template-columns: minmax(112px, 1fr) auto; gap: 6px; align-items: end; min-width: 0; }
.time-entry label { min-width: 0; display: grid; gap: 5px; color: var(--blue); font-size: 10px; font-weight: 700; }
.time-entry input { min-width: 0; padding: 0 10px; background: var(--white); color: var(--ink); }
.now-button { position: static; min-width: 48px; height: 44px; padding: 0 8px; border: 0; border-radius: 7px; background: var(--green); color: var(--white); cursor: pointer; font-size: 9px; font-weight: 700; }
.now-button:disabled { opacity: .42; cursor: not-allowed; }
.step-status-button { margin-top: 9px; padding: 6px 0; border: 0; border-bottom: 1px solid currentColor; color: var(--muted); background: transparent; cursor: pointer; font-size: 9px; font-weight: 700; }
.step-status-button:disabled { opacity: .4; cursor: not-allowed; }
.notes-block textarea { min-height: 96px; }
.execution-notes { padding-bottom: 26px; }
.execution-notes .field { margin: 20px 28px 0; }
.panel-heading.compact { padding-bottom: 18px; }

.toast { position: fixed; z-index: 50; left: 50%; bottom: 24px; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 8px; background: var(--blue); color: var(--white); box-shadow: var(--shadow); font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.site-footer { min-height: 100px; padding: 24px max(24px, calc((100vw - 1280px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 30px; color: var(--muted); background: var(--white); border-top: 1px solid var(--surface-2); font-size: 11px; }
.site-footer img { width: 78px; }

/* Dashboard */
.dashboard-hero { min-height: 300px; padding: 58px max(24px, calc((100vw - 1280px) / 2)); display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; color: var(--white); background: linear-gradient(135deg, var(--blue) 0 66%, #00507f 66% 100%); }
.dashboard-hero h1 { margin: 0; font-size: clamp(34px, 4vw, 54px); line-height: 1.08; letter-spacing: -.04em; }
.dashboard-hero > div > p:last-child { max-width: 690px; margin: 18px 0 0; color: rgba(255,255,255,.72); }
.dashboard-plan-picker { min-width: 330px; display: grid; gap: 8px; color: rgba(255,255,255,.7); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dashboard-plan-picker select { min-height: 50px; padding: 0 42px 0 14px; border: 1px solid rgba(255,255,255,.34); border-radius: 9px; color: var(--blue); background: var(--white); font-weight: 700; text-transform: none; letter-spacing: 0; }
.dashboard-workspace { width: min(100% - 48px, 1280px); margin: 0 auto; padding: 36px 0 70px; }
.dashboard-context { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.dashboard-context h2 { margin: 0; color: var(--blue); font-size: 25px; }
.dashboard-context > div > p:last-child { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.dashboard-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.dashboard-kpi { min-height: 145px; padding: 22px; display: flex; flex-direction: column; justify-content: center; border: 1px solid #dbe4e8; border-radius: 14px; background: var(--white); }
.dashboard-kpi > span { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dashboard-kpi strong { margin: 7px 0 2px; color: var(--blue); font-size: 30px; line-height: 1.15; }
.dashboard-kpi small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.dashboard-kpi.featured { border-color: var(--blue); background: var(--blue); }
.dashboard-kpi.featured > span, .dashboard-kpi.featured small { color: rgba(255,255,255,.66); }
.dashboard-kpi.featured strong { color: var(--lime); }
.dashboard-kpi.featured.variance-positive strong { color: #ffae7b; }
.dashboard-kpi.featured.variance-negative strong { color: var(--lime); }
.dashboard-kpi.featured.variance-zero strong { color: #82d8ff; }
.dashboard-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.chart-card { min-width: 0; padding: 24px; border: 1px solid #dbe4e8; border-radius: 16px; background: var(--white); box-shadow: 0 8px 24px rgba(0,56,101,.04); }
.chart-card-wide { grid-column: 1 / -1; }
.chart-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.chart-heading h2 { margin: 0; color: var(--blue); font-size: 19px; }
.chart-legend { display: flex; gap: 15px; color: var(--muted); font-size: 10px; }
.chart-legend span { display: flex; align-items: center; gap: 6px; }
.chart-legend i { width: 11px; height: 11px; border-radius: 3px; }
.chart-legend .planned, .chart-bar-line .planned { background: var(--blue); }
.chart-legend .actual, .chart-bar-line .actual { background: var(--green); }
.timeline-comparison-card .chart-heading { margin-bottom: 8px; }
.timeline-comparison-card .chart-heading small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.timeline-help { margin: 0 0 18px; color: var(--muted); font-size: 11px; }
.timeline-legend { flex-wrap: wrap; justify-content: flex-end; }
.timeline-legend i { border-radius: 2px; }
.timeline-planned-key { background: var(--sky); }
.timeline-realized-key { background: var(--green); }
.timeline-running-key { background: var(--orange); }
.timeline-comparison { display: grid; gap: 10px; }
.timeline-compare-row, .timeline-axis { display: grid; grid-template-columns: minmax(180px, 25%) minmax(260px, 1fr) minmax(150px, 18%); gap: 14px; align-items: center; }
.timeline-compare-label { min-width: 0; display: flex; align-items: center; gap: 9px; }
.timeline-compare-label span { flex: 0 0 auto; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: var(--surface); font-size: 9px; font-weight: 700; }
.timeline-compare-label strong { min-width: 0; overflow: hidden; color: var(--ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.timeline-compare-track { position: relative; min-width: 0; display: grid; gap: 3px; padding: 3px 0; background-repeat: no-repeat; }
.timeline-lane { position: relative; height: 9px; overflow: hidden; border-radius: 3px; background: var(--surface); }
.timeline-lane i { position: absolute; top: 0; height: 100%; min-width: 3px; border-radius: 3px; cursor: pointer; transition: filter .12s ease, box-shadow .12s ease; }
.timeline-lane i:hover, .timeline-lane i:focus-visible { outline: none; filter: brightness(1.08); box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--blue); }
.timeline-planned-lane i { background: linear-gradient(90deg, var(--sky), var(--blue-2)); }
.timeline-actual-lane i.complete { background: var(--green); }
.timeline-actual-lane i.running { background: repeating-linear-gradient(135deg, var(--orange) 0 7px, #ffad72 7px 14px); }
.timeline-compare-times { min-width: 0; display: grid; gap: 2px; color: var(--muted); font-size: 9px; }
.timeline-compare-times span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline-compare-times b { display: inline-grid; width: 17px; height: 17px; margin-right: 5px; place-items: center; border-radius: 4px; color: var(--blue); background: var(--surface-2); font-size: 8px; }
.timeline-compare-times .complete { color: var(--green); }
.timeline-compare-times .running { color: #b85e23; font-weight: 700; }
.timeline-axis { color: var(--muted); font-size: 8px; }
.timeline-axis > i { display: block; }
.timeline-axis-scale { position: relative; min-width: 0; height: 13px; }
.timeline-axis-scale span { position: absolute; top: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.timeline-axis-scale span::before { content: ""; position: absolute; top: -4px; left: 50%; width: 1px; height: 3px; background: var(--line); }
.timeline-axis-scale span:first-child::before { left: 0; }
.timeline-axis-scale span:last-child::before { left: auto; right: 0; }

.chart-tooltip { position: fixed; z-index: 90; max-width: 290px; padding: 11px 13px; display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); box-shadow: 0 12px 30px rgba(0,32,58,.22); color: var(--ink); font-size: 11px; pointer-events: none; }
.chart-tooltip.is-pinned { border-color: var(--sky); box-shadow: 0 16px 38px rgba(0,32,58,.3); pointer-events: auto; }
.chart-tooltip[hidden] { display: none; }
.chart-tooltip .tip-head { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 3px; padding-bottom: 6px; border-bottom: 1px solid var(--surface-2); }
.chart-tooltip .tip-head b { flex: 0 0 auto; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--blue); font-size: 9px; }
.chart-tooltip .tip-head span { flex: 1 1 auto; min-width: 0; color: var(--blue); font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.chart-tooltip .tip-head i { flex: 0 0 auto; padding: 2px 7px; border-radius: 20px; background: var(--surface-2); color: var(--muted); font-size: 8px; font-style: normal; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.chart-tooltip .tip-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: baseline; }
.chart-tooltip .tip-row span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }
.chart-tooltip .tip-row strong { color: var(--ink); font-size: 11px; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.chart-tooltip .tip-delay { color: #a43b32; }
.chart-tooltip .tip-ahead { color: #13735d; }
.chart-tooltip .tip-on-time { color: var(--blue); }
.chart-tooltip .tip-cursor { margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--surface-2); color: var(--muted); font-size: 9px; }
.chart-tooltip .tip-pinned-hint { margin-top: 4px; padding-top: 6px; border-top: 1px dashed var(--line); color: var(--blue); font-size: 9px; font-weight: 700; text-align: center; }
.duration-chart { display: grid; gap: 14px; }
.duration-row { display: grid; grid-template-columns: minmax(180px, 28%) 1fr; gap: 18px; align-items: center; }
.duration-label { min-width: 0; display: flex; align-items: center; gap: 10px; }
.duration-label span { flex: 0 0 auto; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: var(--surface); font-size: 9px; font-weight: 700; }
.duration-label strong { overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.duration-bars { display: grid; gap: 5px; }
.chart-bar-line { height: 15px; display: flex; align-items: center; gap: 8px; background: linear-gradient(90deg, var(--surface) 0 100%); border-radius: 4px; }
.chart-bar-line i { display: block; height: 100%; border-radius: 4px; }
.chart-bar-line b { min-width: 62px; padding: 2px 5px; color: var(--muted); background: rgba(255,255,255,.86); font-size: 9px; }
.completion-chart { min-height: 270px; display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 30px; }
.completion-ring { --progress: 0deg; width: 180px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--green) 0 var(--progress), var(--surface-2) var(--progress) 360deg); }
.completion-ring::before { content: ""; width: 126px; aspect-ratio: 1; grid-area: 1 / 1; border-radius: 50%; background: var(--white); }
.completion-ring > div { z-index: 1; grid-area: 1 / 1; display: grid; text-align: center; }
.completion-ring strong { color: var(--blue); font-size: 31px; }
.completion-ring span { color: var(--muted); font-size: 10px; }
.completion-breakdown { display: grid; gap: 14px; }
.completion-breakdown span { display: grid; grid-template-columns: 10px 28px 1fr; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.completion-breakdown i { width: 9px; height: 9px; border-radius: 50%; }
.completion-breakdown i.complete { background: var(--green); }
.completion-breakdown i.running { background: var(--yellow); }
.completion-breakdown i.waiting { background: var(--gray); }
.completion-breakdown i.skipped { background: var(--muted); }
.completion-breakdown strong { color: var(--blue); font-size: 17px; }
.variance-chart { min-height: 270px; display: grid; align-content: center; gap: 13px; }
.variance-row { display: grid; grid-template-columns: 24px 1fr 60px; align-items: center; gap: 8px; color: var(--muted); font-size: 9px; }
.variance-row > strong { text-align: right; color: var(--ink); }
.variance-axis { position: relative; height: 17px; background: linear-gradient(90deg, transparent 49.7%, var(--line) 49.7% 50.3%, transparent 50.3%); }
.variance-axis i { position: absolute; top: 3px; height: 11px; border-radius: 3px; }
.variance-axis i.delay { background: var(--orange); }
.variance-axis i.ahead { background: var(--green); }
.variance-axis i.on-time { background: var(--blue); }
.chart-empty { min-height: 180px; display: grid; place-items: center; color: var(--muted); text-align: center; font-size: 12px; }
.dashboard-table-card { margin-top: 18px; }
.dashboard-print-header { display: none; }
.dashboard-pdf-button { flex: 0 0 auto; }
.dashboard-table-wrap { overflow-x: auto; }
.dashboard-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.dashboard-table th { padding: 10px 12px; color: var(--muted); background: var(--surface); text-align: left; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.dashboard-table td { padding: 13px 12px; border-bottom: 1px solid var(--surface-2); }
.dashboard-table td:first-child { min-width: 260px; }
.dashboard-table td strong, .dashboard-table td small { display: block; }
.dashboard-table td strong { color: var(--blue); }
.dashboard-table td small { margin-top: 3px; color: var(--muted); }
.table-status { display: inline-flex; padding: 6px 9px; border-radius: 99px; font-size: 9px; font-weight: 700; }
.table-status.delay { color: #a43b32; background: var(--danger-soft); }
.table-status.ahead, .table-status.on-time { color: #13735d; background: var(--success-soft); }
.table-status.running { color: var(--blue); background: #fff5c7; }
.table-status.waiting { color: var(--muted); background: var(--surface-2); }
.table-status.skipped { color: var(--muted); background: var(--surface-2); }
.cloud-dialog { width: min(92vw, 480px); padding: 0; border: 0; border-radius: 17px; color: var(--ink); background: var(--white); box-shadow: 0 24px 80px rgba(0,35,62,.35); }
.cloud-dialog::backdrop { background: rgba(0,35,62,.76); backdrop-filter: blur(4px); }
.cloud-dialog-content { position: relative; margin: 0; padding: 32px; display: grid; gap: 17px; }
.cloud-dialog-content h2 { margin: 0; color: var(--blue); font-size: 23px; }
.cloud-dialog-content > p:not(.section-kicker) { margin: 0; color: var(--muted); font-size: 12px; }
.dialog-close { position: absolute; top: 13px; right: 13px; width: 36px; height: 36px; border: 0; border-radius: 50%; color: var(--muted); background: var(--surface); cursor: pointer; font-size: 20px; }
.cloud-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 3px; }
.auth-feedback { min-height: 18px; color: var(--green); font-size: 11px; }
.account-email { padding: 12px; border-radius: 8px; color: var(--blue) !important; background: var(--surface); font-weight: 700; overflow-wrap: anywhere; }
.account-hero { padding: 60px max(24px, calc((100vw - 1280px) / 2)); color: white; background: linear-gradient(135deg, var(--blue) 0 72%, var(--blue-2) 72%); }
.account-hero h1 { margin: 0; font-size: clamp(36px,5vw,58px); line-height: 1.05; letter-spacing: -.04em; }
.account-hero > p:last-child { max-width: 650px; color: rgba(255,255,255,.72); }
.account-workspace { width: min(100% - 48px,1280px); margin: 0 auto; padding: 36px 0 70px; display: grid; gap: 18px; }
.account-gate { padding: 42px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); text-align: center; }
.account-gate h2 { color: var(--blue); }
.account-gate p { color: var(--muted); }
.account-summary { margin-bottom: 18px; padding: 25px; display: flex; align-items: center; justify-content: space-between; border-radius: 16px; color: white; background: var(--blue); }
.account-summary h2 { margin: 0; color: var(--lime); }.account-summary p:last-child { margin: 5px 0 0; color: rgba(255,255,255,.7); }
.role-badge { padding: 8px 12px; border-radius: 99px; color: var(--blue); background: var(--lime); font-size: 10px; font-weight: 700; }
.history-list,.users-list { display: grid; gap: 10px; }
.history-item,.user-row { padding: 14px; display: grid; grid-template-columns: minmax(220px,1fr) auto auto; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 10px; }
.history-item strong,.history-item span,.user-row strong,.user-row span { display: block; }.history-item strong,.user-row strong { color: var(--blue); }.history-item span,.user-row span,.history-item small { color: var(--muted); font-size: 10px; }
.history-item > div:nth-child(2) { text-align: center; }.history-item b { display: block; color: var(--green); font-size: 18px; }
.history-main { min-width: 0; }
.history-main .share-state { width: max-content; max-width: 100%; margin-top: 7px; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; }
.history-main .share-state.active { color: var(--green); font-weight: 700; }
.history-main .share-state i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.history-actions { display: flex; gap: 8px; }
.button-share-active { border: 1px solid #76c967; color: var(--blue); background: #dff7d9; }
.button-share-active:hover { background: #c9efc0; }
.share-active-card { padding: 14px; display: grid; gap: 4px; border: 1px solid #76c967; border-radius: 9px; color: var(--blue); background: #eefbea; }
.share-active-card span { color: var(--muted); font-size: 10px; }
.share-dialog-actions { flex-wrap: wrap; }
.editor-panel { margin-top: 18px; }.user-create-form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: end; gap: 12px; margin-bottom: 22px; }
.account-switch { display: flex; align-items: center; gap: 8px; cursor: pointer; }.account-switch input { position: absolute; opacity: 0; }.account-switch i { width: 38px; height: 21px; padding: 3px; border-radius: 20px; background: var(--gray); }.account-switch i::after { content:""; display:block; width:15px; height:15px; border-radius:50%; background:white; transition:.2s; }.account-switch input:checked + i { background:var(--green); }.account-switch input:checked + i::after { transform:translateX(17px); }.account-switch b { font-size:9px; }
/* Login e solicitacao de acesso: um cartao unico centralizado. A marca ocupa
   uma faixa, nao a tela inteira -- antes o azul dominava o viewport e o
   formulario ficava isolado do outro lado. */
/* Profundidade no fundo para a tela nao virar um bloco azul chapado. */
.login-page { min-height:100vh; background:radial-gradient(1200px 680px at 16% 8%, #00537f 0%, transparent 62%), radial-gradient(900px 520px at 88% 92%, #0a6a52 0%, transparent 58%), var(--blue); }
.login-layout { min-height:100vh; padding:clamp(16px,3vw,44px); display:grid; place-items:center; }
.login-shell { width:min(100%,940px); display:grid; grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr); overflow:hidden; border-radius:22px; box-shadow:0 26px 64px rgba(0,18,36,.38); }
.login-brand-panel { position:relative; padding:clamp(26px,3vw,36px); display:flex; flex-direction:column; justify-content:space-between; gap:24px; overflow:hidden; color:white; background:linear-gradient(155deg,#003865 0 60%,#00507f 60%); }
.login-brand-panel::after { content:""; position:absolute; width:320px; height:320px; right:-140px; bottom:-90px; border:46px solid rgba(127,224,108,.12); border-radius:50%; }
.login-brand-panel > * { position:relative; z-index:1; }
.login-brand-panel > img { width:94px; }
.login-brand-panel .eyebrow { margin:0 0 8px; color:rgba(255,255,255,.66); }
.login-brand-panel h1 { margin:0; font-size:clamp(25px,2.7vw,33px); line-height:1.14; letter-spacing:-.035em; }
.login-brand-panel div > p:last-child { margin:12px 0 0; color:rgba(255,255,255,.7); font-size:12px; line-height:1.55; }
.login-brand-panel small { color:rgba(255,255,255,.5); font-size:10.5px; line-height:1.5; }
.login-form-panel { padding:clamp(24px,3vw,38px); display:grid; align-content:center; background:var(--white); }
.login-card { width:100%; display:grid; gap:14px; }
/* display explicito vence o display:none do atributo hidden; sem isto os dois
   formularios aparecem empilhados. */
.login-card[hidden] { display:none; }
.login-card-head { display:flex; align-items:center; gap:13px; }
.login-card-head .section-kicker { margin:0 0 2px; }
.login-card h2 { margin:0; color:var(--blue); font-size:23px; letter-spacing:-.02em; }
.login-note { margin:-4px 0 0; color:var(--muted); font-size:11.5px; line-height:1.5; }
/* Duas colunas na solicitacao para o formulario caber sem rolagem. */
.login-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.login-fields .field-wide { grid-column:1 / -1; }
.login-mark { width:40px; height:40px; flex:none; display:grid; place-items:center; border-radius:50%; color:var(--blue); background:var(--lime); font-size:19px; font-weight:700; }
.login-submit { width:100%; margin-top:2px; }
.login-feedback { min-height:16px; color:var(--danger); font-size:11px; text-align:center; }

/* Acompanhamento compartilhado somente leitura */
.shared-header { min-height: 76px; padding: 0 max(24px, calc((100vw - 1280px) / 2)); display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px; color: white; background: var(--blue); }
.shared-header .brand { position: static; }
.read-only-badge { padding: 8px 12px; border: 1px solid rgba(255,255,255,.28); border-radius: 99px; color: white; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.shared-page { min-height: calc(100vh - 76px); background: var(--surface); }
.shared-loading,.shared-error { min-height: calc(100vh - 76px); padding: 40px 20px; display: grid; place-content: center; justify-items: center; text-align: center; }
.shared-loading[hidden],.shared-error[hidden] { display: none; }
.shared-loading h1,.shared-error h1 { margin: 18px 0 5px; color: var(--blue); }.shared-loading p,.shared-error p { max-width: 520px; color: var(--muted); }
.shared-loader { width: 42px; height: 42px; border: 4px solid var(--surface-2); border-top-color: var(--green); border-radius: 50%; animation: shared-spin .8s linear infinite; }
@keyframes shared-spin { to { transform: rotate(360deg); } }
.shared-error > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--orange); font-size: 24px; font-weight: 700; }.shared-error .button { margin-top: 12px; }
.shared-hero { padding: 42px max(24px, calc((100vw - 1280px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 30px; color: white; background: linear-gradient(135deg,var(--blue) 0 70%,var(--blue-2) 70%); }
.shared-hero h1 { margin: 3px 0 8px; font-size: clamp(30px,4vw,48px); letter-spacing: -.035em; }.shared-hero > div > p:last-child { margin: 0; color: rgba(255,255,255,.72); }
.shared-live-state { min-width: 210px; padding: 14px 17px; display: flex; align-items: center; gap: 11px; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; background: rgba(0,30,55,.18); }
.shared-live-state i { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(127,224,108,.13); }.shared-live-state strong,.shared-live-state span { display: block; }.shared-live-state strong { font-size: 10px; }.shared-live-state span { margin-top: 3px; color: rgba(255,255,255,.7); font-size: 9px; }
.shared-tabs { padding: 0 max(24px, calc((100vw - 1280px) / 2)); display: flex; gap: 4px; border-bottom: 1px solid var(--line); background: var(--white); }.shared-tabs button { min-width: 145px; padding: 17px 20px 14px; border: 0; border-bottom: 3px solid transparent; color: var(--muted); background: transparent; cursor: pointer; font-weight: 700; }.shared-tabs button.active { border-bottom-color: var(--green); color: var(--blue); }
.shared-view { width: min(100% - 48px,1280px); margin: 0 auto; padding: 28px 0 10px; }
.shared-status { min-height: 390px; padding: 38px 42px; display: grid; grid-template-columns: minmax(0,1fr); align-items: end; gap: 28px; border-radius: 16px; color: white; background: var(--blue); }.shared-status.status-delay { background: linear-gradient(135deg,#8e352b,#b94b3b); }.shared-status.status-ahead { background: linear-gradient(135deg,#116e5b,#20a17f); }.shared-status.status-on-time { background: linear-gradient(135deg,var(--blue),#176c7a); }.shared-status.status-warn { background: linear-gradient(135deg,#7d4a15,#c07526); }.shared-status .section-kicker { color: rgba(255,255,255,.72); }
.shared-status-main { min-width: 0; }.shared-delay-value { display: flex; align-items: baseline; gap: 6px; line-height: 1; }.shared-delay-value > span { font-size: 42px; }.shared-delay-value strong { font-size: clamp(72px,10vw,112px); letter-spacing: -.07em; }.shared-delay-value b { margin-left: 6px; font-size: 24px; }.shared-status-clocks { width: 100%; }
.shared-kpis { margin: 18px 0 28px; display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }.shared-kpis article { padding: 20px; display: grid; gap: 5px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }.shared-kpis span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }.shared-kpis strong { color: var(--blue); font-size: 21px; }.shared-kpis small { color: var(--muted); }
.shared-section-heading { margin: 0 0 15px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }.shared-section-heading h2 { margin: 3px 0 0; color: var(--blue); }.shared-section-heading > p { color: var(--muted); font-size: 10px; }
.shared-steps { display: grid; gap: 12px; }.shared-step { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }.shared-step > header { padding: 14px 18px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--surface-2); }
.shared-step > header > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: var(--surface); font-size: 9px; font-weight: 700; }.shared-step header h3 { margin: 0; color: var(--blue); font-size: 14px; }.shared-step header small { color: var(--muted); }.shared-step header > b { padding: 6px 9px; border-radius: 99px; color: var(--muted); background: var(--surface); font-size: 9px; }.shared-step.delay header > b { color: #a43b32; background: var(--danger-soft); }.shared-step.ahead header > b,.shared-step.on-time header > b { color: #13735d; background: var(--success-soft); }
.shared-step-times { padding: 15px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.shared-step-times p { margin: 0; padding: 12px; display: grid; gap: 4px; border-radius: 9px; background: var(--surface); }.shared-step-times p:nth-child(2) { background: var(--success-soft); }.shared-step-times span { color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }.shared-step-times strong { color: var(--blue); }.shared-step-times small { color: var(--muted); }
.shared-step-note { margin: 0 18px 16px; padding: 12px; color: var(--muted); border-left: 3px solid var(--green); background: var(--surface); font-size: 10px; }.shared-step-note span { display: block; margin-bottom: 4px; color: var(--blue); font-weight: 700; }.shared-dashboard-kpis { margin-bottom: 18px; }.shared-duration-card { margin-top: 18px; }
.shared-security-note { width: min(100% - 48px,1280px); margin: 20px auto 40px; padding: 17px 20px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }.shared-security-note strong { color: var(--blue); }.shared-security-note span,.shared-security-note small { color: var(--muted); font-size: 9px; }

/* Tema escuro — azul operacional Rumo com acentos institucionais */
/* Portal gerencial, administração e detalhes organizacionais */
.primary-nav { max-width: 62vw; overflow-x: auto; scrollbar-width: none; }
.primary-nav::-webkit-scrollbar { display: none; }
.primary-nav a { min-width: 108px; padding-inline: 14px; }
.primary-nav a::after { left: 14px; right: 14px; }
.save-state[data-sync-state="error"]::before { background: #ff8d83; }
.save-state[data-sync-state="offline"]::before { background: var(--gray); }
.save-state[data-sync-state="syncing"]::before { background: var(--yellow); animation: state-pulse 1s infinite alternate; }
@keyframes state-pulse { to { opacity: .35; } }

.management-hero, .admin-hero {
  min-height: 310px; padding: 64px max(24px, calc((100vw - 1280px) / 2)); color: white;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  background: linear-gradient(135deg, var(--blue) 0 62%, #00517f 62% 100%);
}
.management-hero h1, .admin-hero h1 { margin: 0; font-size: clamp(38px, 5vw, 62px); line-height: 1.04; letter-spacing: -.045em; }
.management-hero > div:first-child > p:last-child, .admin-hero > p:last-child { max-width: 720px; margin: 18px 0 0; color: rgba(255,255,255,.72); }
.hero-snapshot { min-width: 250px; padding: 24px; display: grid; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; background: rgba(255,255,255,.08); }
.hero-snapshot span { color: var(--lime); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hero-snapshot strong { font-size: 54px; line-height: 1; margin: 11px 0 5px; }
.hero-snapshot small { color: rgba(255,255,255,.68); }
.admin-hero { min-height: 260px; display: block; }

.management-tabs, .admin-tabs { min-height: 64px; padding: 0 max(24px, calc((100vw - 1280px) / 2)); display: flex; gap: 4px; border-bottom: 1px solid var(--line); background: var(--white); overflow-x: auto; }
.management-tabs button, .admin-tabs button, .detail-tabs button { position: relative; min-width: 165px; padding: 0 20px; border: 0; color: var(--muted); background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.management-tabs button::after, .admin-tabs button::after, .detail-tabs button::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; }
.management-tabs button.active, .admin-tabs button.active, .detail-tabs button.active { color: var(--blue); }
.management-tabs button.active::after, .admin-tabs button.active::after, .detail-tabs button.active::after { background: var(--green); }
.management-workspace, .admin-workspace { width: min(100% - 48px, 1280px); margin: 0 auto; padding: 36px 0 70px; }

.portal-filters { margin-bottom: 42px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 12px 34px rgba(0,56,101,.06); }
.portal-filters-heading, .portal-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.portal-filters-heading { margin-bottom: 20px; }
.portal-filters-heading h2, .portal-section-heading h2 { margin: 0; color: var(--blue); font-size: 25px; letter-spacing: -.025em; }
.portal-section-heading { margin: 42px 0 22px; }
.portal-section-heading p:last-child { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.portal-filter-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.portal-filter-grid .field span { font-size: 9px; }
.portal-filter-grid input, .portal-filter-grid select { min-width: 0; width: 100%; min-height: 42px; }
.portal-search { grid-column: span 2; }
.result-count { flex: 0 0 auto; padding: 8px 12px; border-radius: 99px; color: var(--blue); background: var(--surface-2); font-size: 10px; font-weight: 700; }

.interval-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.interval-card { position: relative; min-width: 0; min-height: 315px; padding: 20px; display: flex; flex-direction: column; gap: 11px; text-align: left; color: var(--ink); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 15px; background: var(--white); box-shadow: 0 12px 28px rgba(0,56,101,.07); cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.interval-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.interval-card:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.interval-card.is-late { border-left-color: #d7584e; background: linear-gradient(105deg, var(--danger-soft), var(--white) 34%); }
.interval-card.is-ahead { border-left-color: var(--green); }
.interval-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.interval-card-top b { color: var(--blue); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.interval-card-top i { font-style: normal; color: var(--muted); font-size: 9px; }
.interval-card-title { color: var(--blue); font-size: 18px; line-height: 1.25; }
.interval-card-location { min-height: 36px; color: var(--muted); font-size: 11px; }
.interval-card-people { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 4px 9px; padding: 11px 0; border-block: 1px solid var(--surface-2); }
.interval-card-people small { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.interval-card-people b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.interval-card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.interval-card-tags i { max-width: 100%; padding: 4px 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 6px; color: var(--muted); background: var(--surface); font-size: 8px; font-style: normal; }
.interval-card-progress { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.interval-card-progress > span { height: 6px; overflow: hidden; border-radius: 99px; background: var(--surface-2); }
.interval-card-progress > span i { display: block; height: 100%; border-radius: inherit; background: var(--sky); }
.interval-card-progress b { color: var(--blue); font-size: 10px; }
.deadline { width: fit-content; margin-top: auto; padding: 6px 9px; border-radius: 7px; font-size: 9px; font-style: normal; font-weight: 700; }
.deadline.late { color: #a83431; background: #ffe1dc; }
.deadline.ahead { color: #126d58; background: var(--success-soft); }
.deadline.ontime { color: var(--blue); background: #e5f4fb; }
.deadline.neutral { color: var(--muted); background: var(--surface-2); }
.running-group { margin-top: 28px; }
.group-title { margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.group-title h3, .group-title p { margin: 0; }
.group-title p { color: var(--muted); font-size: 10px; }
.type-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; font-weight: 700; }
.type-mark.infra { color: var(--blue); background: #dff1fb; }
.type-mark.super { color: #653579; background: #f1e3f5; }
.type-mark.modernization { color: #805d00; background: #fff2bd; }
.portal-empty { grid-column: 1 / -1; min-height: 150px; padding: 28px; display: grid; place-content: center; text-align: center; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); background: var(--white); }
.portal-empty strong { color: var(--blue); }
.portal-empty span { margin-top: 5px; font-size: 11px; }

.overview-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.overview-kpis .dashboard-kpi { min-height: 130px; }
.dashboard-kpi.alert { border-color: #efaaa3; background: var(--danger-soft); }
.dashboard-kpi.alert strong { color: var(--danger); }
.overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.portal-bars { display: grid; gap: 13px; }
.portal-bar { display: grid; grid-template-columns: minmax(110px, .45fr) 1fr 45px; align-items: center; gap: 12px; font-size: 10px; }
.portal-bar > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-bar > div { height: 10px; overflow: hidden; border-radius: 99px; background: var(--surface-2); }
.portal-bar i { display: block; height: 100%; border-radius: inherit; background: var(--sky); }
.portal-bar i.deadline-tone { background: var(--green); }
.portal-bar b { color: var(--blue); text-align: right; }
.trend-list { display: grid; gap: 7px; }
.trend-list > button { padding: 11px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; border: 0; border-bottom: 1px solid var(--surface-2); color: inherit; background: transparent; cursor: pointer; }
.trend-list > button > span { display: grid; }
.trend-list small { color: var(--muted); }

.interval-detail-dialog { width: min(980px, calc(100% - 30px)); max-height: min(92vh, 920px); max-height: min(92dvh, 920px); padding: 0; overflow: hidden; border: 0; border-radius: 18px; color: var(--ink); background: var(--white); box-shadow: 0 28px 90px rgba(0,31,55,.35); }
.interval-detail-dialog::backdrop { background: rgba(0,31,55,.7); backdrop-filter: blur(3px); }
.interval-detail-dialog > div { max-height: inherit; display: flex; flex-direction: column; }
.detail-dialog-header { flex: 0 0 auto; min-width: 0; padding: 25px 28px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.detail-dialog-header > div { min-width: 0; }
.detail-dialog-header h2 { margin: 0; color: var(--blue); font-size: 25px; }
.detail-dialog-header > div > span { color: var(--muted); font-size: 11px; }
.detail-dialog-header > button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 9px; color: var(--blue); background: var(--surface); font-size: 22px; cursor: pointer; }
.detail-full-page-bar { flex: 0 0 auto; padding: 10px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); background: var(--success-soft); }
.detail-full-page-bar > span { min-width: 0; display: grid; gap: 2px; }
.detail-full-page-bar strong { color: var(--blue); font-size: 11px; }
.detail-full-page-bar small { color: var(--muted); font-size: 9px; }
.detail-full-page-bar .button { flex: 0 0 auto; min-height: 40px; padding-inline: 15px; text-decoration: none; }
.detail-full-page-bar .button i { font-size: 13px; font-style: normal; }
.detail-tabs { flex: 0 0 58px; min-height: 58px; display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; }
.detail-dialog-body { flex: 1 1 auto; min-height: 0; padding: 26px 28px max(34px, env(safe-area-inset-bottom)); overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.detail-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.detail-summary-grid > div { min-width: 0; padding: 13px; display: grid; border-radius: 10px; background: var(--surface); }
.detail-summary-grid span, .detail-note > span { color: var(--muted); font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.detail-summary-grid strong { margin-top: 5px; overflow-wrap: anywhere; color: var(--blue); font-size: 11px; }
.detail-note { margin: 18px 0; padding: 15px; border-left: 3px solid var(--sky); border-radius: 0 9px 9px 0; background: var(--surface); }
.detail-note p { margin: 5px 0 0; white-space: pre-wrap; }
.detail-step-list { display: grid; gap: 8px; }
.detail-step-list > article { padding: 12px; display: grid; grid-template-columns: 34px 1fr; gap: 10px; border: 1px solid var(--line); border-radius: 10px; }
.detail-step-list > article > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--blue); background: var(--lime); font-size: 10px; font-weight: 700; }
.detail-step-list > article > div { min-width: 0; display: grid; gap: 3px; }
.detail-step-list small { color: var(--muted); }
.detail-step-list p { margin: 5px 0 0; white-space: pre-wrap; font-size: 11px; }
.detail-status { margin-bottom: 16px; padding: 14px; display: flex; align-items: center; gap: 12px; border-radius: 11px; background: var(--surface); }
.detail-status > strong { margin-left: auto; color: var(--blue); }
.detail-status > span:last-child { color: var(--muted); font-size: 10px; }
.detail-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.detail-progress-list { display: grid; gap: 10px; }
.detail-progress-list > div { display: grid; grid-template-columns: minmax(140px, .55fr) 1fr 90px; align-items: center; gap: 12px; font-size: 10px; }
.detail-progress-list > div > div { height: 9px; overflow: hidden; border-radius: 99px; background: var(--surface-2); }
.detail-progress-list i { display: block; height: 100%; background: var(--green); }
.detail-progress-list b { text-align: right; }
.comments-panel { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.comments-panel > header { display: flex; justify-content: space-between; align-items: center; }
.comments-panel h3 { margin: 0; color: var(--blue); }
.comments-panel > header > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: var(--lime); font-size: 10px; font-weight: 700; }
.comments-list { margin: 15px 0; display: grid; gap: 9px; }
.interval-comment { padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.interval-comment header { display: flex; justify-content: space-between; gap: 12px; }
.interval-comment header > span { display: flex; gap: 8px; align-items: center; }
.interval-comment header i { padding: 3px 6px; border-radius: 5px; color: var(--blue); background: #dff1fb; font-size: 8px; font-style: normal; }
.interval-comment time { color: var(--muted); font-size: 9px; }
.interval-comment p { margin: 9px 0 0; white-space: pre-wrap; }
.interval-comment button { margin-top: 8px; padding: 0; border: 0; color: var(--danger); background: transparent; font-size: 9px; cursor: pointer; }
#detail-comment-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; }
#detail-comment-form .auth-feedback { grid-column: 1 / -1; }
.comments-locked { padding: 10px; color: var(--muted); background: var(--surface); font-size: 10px; }
.execution-comments-body { padding: 0 26px 26px; }
.execution-comments .comments-list { margin-top: 0; }
.execution-comments #execution-comment-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; }
.execution-comments #execution-comment-form > div { display: grid; gap: 6px; }
.interval-comment.is-pending { border-style: dashed; opacity: .82; }
.detail-share { margin-top: 20px; display: flex; align-items: center; gap: 12px; }

.admin-tabs { margin-bottom: 24px; padding-inline: 0; border: 1px solid var(--line); border-radius: 12px; }
.admin-form-card { margin-bottom: 34px; }
.admin-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.admin-form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.admin-list { display: grid; gap: 10px; }
.admin-row { padding: 14px; display: grid; grid-template-columns: 1.15fr repeat(5, minmax(115px, 1fr)) auto; align-items: end; gap: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.admin-row label { min-width: 0; display: grid; gap: 4px; }
.admin-row label > span { color: var(--muted); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.admin-row input, .admin-row select { min-width: 0; width: 100%; min-height: 38px; padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); font-size: 10px; }
.admin-form select[multiple], .admin-row select[multiple] { min-height: 104px; padding: 4px; }
.admin-form select[multiple] option, .admin-row select[multiple] option { padding: 5px 7px; border-radius: 4px; }
.admin-form select[multiple] option:checked, .admin-row select[multiple] option:checked { color: var(--white); background: var(--blue) linear-gradient(0deg, var(--blue), var(--blue)); }
.admin-row-identity { min-width: 0; display: grid; align-self: center; }
.admin-row-identity strong, .admin-row-identity span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-row-identity strong { color: var(--blue); }
.admin-row-identity span { color: var(--muted); font-size: 9px; }
.admin-row-identity i { width: fit-content; margin-top: 4px; padding: 3px 5px; border-radius: 4px; color: #8d5217; background: #fff1ce; font-size: 8px; font-style: normal; }
.admin-enabled { justify-items: center; }
.admin-enabled input { width: 20px; min-height: 20px; accent-color: var(--green); }
.admin-row-actions { display: grid; gap: 3px; }
.admin-row-actions .auth-feedback { max-width: 110px; }
.sub-admin-row { grid-template-columns: repeat(4, minmax(120px, 1fr)) auto auto; }
.compact-search { min-width: 250px; }
/* Solicitacoes de acesso pendentes na Administracao. */
.access-requests-card { margin-bottom: 34px; }
.pending-badge { min-width: 26px; padding: 4px 9px; border-radius: 999px; color: var(--white); background: var(--orange); font-size: 12px; font-weight: 700; text-align: center; }
.access-request-row { grid-template-columns: 1.3fr minmax(150px, 1fr) minmax(140px, 1fr) 1.2fr auto; }
.access-request-row .access-request-value { color: var(--blue); font-size: 11px; }
.access-request-message { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.access-request-row .admin-row-actions { gap: 6px; }
/* Troca de senha em Minha conta. */
.account-password-card { margin-bottom: 20px; }
.account-password-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.account-password-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
/* Alternancia entre entrar e solicitar acesso na tela de login. */
.login-switch { margin: 6px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.link-button { padding: 0; border: 0; background: none; color: var(--blue); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
html[data-theme="dark"] .link-button { color: var(--green); }
.org-chart-card { margin-bottom: 34px; }
.org-chart-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
/* A legenda nao acompanha a reducao dos chips dentro dos cards. */
.org-chart-legend .org-chip { padding: 2px 6px; font-size: 8px; letter-spacing: .04em; }
.org-chart { overflow-x: auto; padding: 4px 2px 14px; }
.org-tree, .org-tree ul { margin: 0; padding: 0; list-style: none; }
/* Hierarquia desce na vertical; quem esta no mesmo nivel fica lado a lado. */
/* Cada Gerente Executivo (e o Diretor) forma um bloco proprio, empilhado na
   vertical. Lado a lado, as larguras dos blocos se somavam numa unica linha e
   exigiam rolagem horizontal longa. */
.org-tree { width: max-content; min-width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.org-tree li { position: relative; display: flex; flex-direction: column; align-items: center; }
.org-tree ul { padding-top: 17px; display: flex; align-items: flex-start; justify-content: center; gap: 6px; position: relative; }
/* Descida do card do gestor ate a barra dos subordinados. */
.org-tree ul::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 9px; background: var(--line); }
/* Barra horizontal entre irmaos e subida de cada um ate ela. */
.org-tree ul > li::before { content: ""; position: absolute; top: -9px; left: 50%; width: 1px; height: 9px; background: var(--line); }
.org-tree ul > li::after { content: ""; position: absolute; top: -9px; left: 0; right: 0; height: 1px; background: var(--line); }
.org-tree ul > li:first-child::after { left: 50%; }
.org-tree ul > li:last-child::after { right: 50%; }
.org-tree ul > li:only-child::after { display: none; }
.org-node { width: 132px; padding: 5px 6px; display: grid; gap: 1px; border: 1px solid var(--line); border-top: 2px solid var(--blue); border-radius: 7px; background: var(--white); text-align: center; justify-items: center; }
.org-node[data-role="director"], .org-node[data-role="editor"] { border-top-color: var(--ink); }
.org-node[data-role="executive_manager"] { border-top-color: var(--blue); }
.org-node[data-role="manager"] { border-top-color: var(--green); }
.org-node[data-role="coordinator"] { border-top-color: var(--orange); }
.org-node[data-role="specialist"], .org-node[data-role="consultant"] { border-top-color: var(--muted); }
.org-node.is-disabled { opacity: .55; }
.org-node-role { color: var(--muted); font-size: 6.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.org-node strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--blue); font-size: 10px; line-height: 1.25; }
.org-node-email { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 7px; }
.org-node-meta { margin-top: 1px; color: var(--muted); font-size: 7px; line-height: 1.3; }
.org-node-meta b { color: var(--ink); }
.org-node-chips { margin-top: 2px; display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; }
.org-node-flag { width: fit-content; max-width: 100%; margin-top: 2px; padding: 1px 4px; border-radius: 4px; color: #8d5217; background: #fff1ce; font-size: 6.5px; line-height: 1.35; }
/* Gestores que respondem pelo mesmo time ficam lado a lado num bloco unico;
   os subordinados descem do centro dele, sem card repetido por gestor. */
.org-coheads { display: grid; justify-items: center; gap: 3px; padding: 5px 6px 6px; border: 1px dashed var(--blue); border-radius: 10px; background: var(--surface); }
.org-coheads-label { color: var(--blue); font-size: 6.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.org-coheads-cards { display: flex; align-items: flex-start; gap: 6px; }
html[data-theme="dark"] .org-coheads { border-color: var(--muted); background: transparent; }
html[data-theme="dark"] .org-coheads-label { color: var(--muted); }
.org-chip { padding: 1px 5px; border-radius: 999px; font-size: 6.5px; font-style: normal; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.org-chip-superstructure { color: #0b4a6f; background: #d7ecfa; }
.org-chip-infrastructure { color: #0d5c48; background: #d5f0e7; }
.org-chip-modernization { color: #8a4a12; background: #fde6d2; }
.account-details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.account-details > div { min-width: 0; padding: 15px; display: grid; gap: 5px; border-radius: 10px; background: var(--surface); }
.account-details span { color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.account-details strong { overflow-wrap: anywhere; color: var(--blue); font-size: 11px; }
.account-session { margin-top: 18px; padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
.account-session > div { display: grid; }
.account-session span { color: var(--muted); font-size: 10px; }
.shared-plan-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.shared-plan-summary > div { padding: 14px; display: grid; gap: 4px; border-radius: 10px; background: var(--white); box-shadow: 0 8px 24px rgba(0,56,101,.06); }
.shared-plan-summary span { color: var(--muted); font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.shared-plan-summary strong { overflow-wrap: anywhere; color: var(--blue); }
.shared-comments { margin-top: 28px; }

html[data-theme="dark"] {
  --surface: #081b29;
  --surface-2: #132b3b;
  --line: #294758;
  --ink: #e7f0f4;
  --muted: #9db1bd;
  --white: #102737;
  --danger-soft: #3b2226;
  --success-soft: #12382f;
  --shadow: 0 18px 50px rgba(0,0,0,.28);
}
html[data-theme="dark"] body { background: var(--surface); }
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .page-hero,
html[data-theme="dark"] .dashboard-hero,
html[data-theme="dark"] .status-hero,
html[data-theme="dark"] .finalize-panel { --white: #ffffff; }
html[data-theme="dark"] .panel,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .dashboard-kpi,
html[data-theme="dark"] .chart-card,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .data-tools,
html[data-theme="dark"] .page-export-bar,
html[data-theme="dark"] .confirm-dialog form { border-color: var(--line); background: var(--white); }
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea { border-color: #355363; color: var(--ink); background: #0b2130; }
html[data-theme="dark"] input:disabled,
html[data-theme="dark"] select:disabled,
html[data-theme="dark"] textarea:disabled { color: #a9bbc5; background: #162d3c; }
html[data-theme="dark"] .programmed-block { background: #152f40; }
html[data-theme="dark"] .realized-block { background: #11372f; }
html[data-theme="dark"] .realized-block input,
html[data-theme="dark"] .realized-block textarea { background: #0d2a26; }
html[data-theme="dark"] .chart-bar-line { background: #193343; }
html[data-theme="dark"] .chart-bar-line b { background: rgba(16,39,55,.9); }
html[data-theme="dark"] .completion-ring::before { background: var(--white); }
html[data-theme="dark"] .blocked-state { border-color: #65542d; background: #302b1d; }
html[data-theme="dark"] .lock-banner { border-color: #276755; background: #12382f; }
html[data-theme="dark"] .planning-revision-banner, html[data-theme="dark"] .execution-revision-banner { border-color:#705d2c; background:#342d19; }
html[data-theme="dark"] .table-status.running { color: #fbe66b; background: #40391a; }
html[data-theme="dark"] .table-status.delay { color: #ffaaa0; background: #3b2226; }
html[data-theme="dark"] .table-status.ahead,
html[data-theme="dark"] .table-status.on-time { color: #79dfbd; background: #12382f; }
html[data-theme="dark"] .step-variance.delay { color: #ffaaa0; background: #3b2226; }
html[data-theme="dark"] .step-variance.ahead { color: #79dfbd; background: #12382f; }
html[data-theme="dark"] .execution-step.is-critical { background: #3b2226; }
html[data-theme="dark"] .step-forecast { color: #8ed1f5; }
html[data-theme="dark"] .realized-duration.is-over { color:#ffaaa0; }
html[data-theme="dark"] .chart-tooltip { border-color:#1d3f56; background:#0f2739; box-shadow:0 12px 30px rgba(0,0,0,.5); }
html[data-theme="dark"] .chart-tooltip .tip-head span, html[data-theme="dark"] .chart-tooltip .tip-on-time { color:#8ed1f5; }
html[data-theme="dark"] .chart-tooltip .tip-delay { color:#ffaaa0; }
html[data-theme="dark"] .chart-tooltip .tip-ahead { color:#79dfbd; }
html[data-theme="dark"] .timeline-lane i:hover, html[data-theme="dark"] .timeline-lane i:focus-visible { box-shadow:0 0 0 2px #0b2130, 0 0 0 3px #8ed1f5; }
html[data-theme="dark"] .dashboard-plan-picker select { color: var(--ink); background: #0b2130; }
html[data-theme="dark"] .cloud-dialog { color: var(--ink); background: var(--white); }
html[data-theme="dark"] .cloud-dialog-content h2,
html[data-theme="dark"] .account-email { color: #8ed1f5 !important; }
html[data-theme="dark"] .account-gate h2,html[data-theme="dark"] .history-item strong,html[data-theme="dark"] .user-row strong { color:#8ed1f5; }
html[data-theme="dark"] .login-card h2 { color:#8ed1f5; }
html[data-theme="dark"] .workspace-topline h2,
html[data-theme="dark"] .execution-heading h1,
html[data-theme="dark"] .panel-heading h2,
html[data-theme="dark"] .panel-heading h3,
html[data-theme="dark"] .field > span,
html[data-theme="dark"] .schedule-table td:nth-child(5),
html[data-theme="dark"] .subsection-heading h4,
html[data-theme="dark"] .window-total,
html[data-theme="dark"] .data-tools strong,
html[data-theme="dark"] .confirm-dialog h2,
html[data-theme="dark"] .metric-card:not(.emphasis) strong,
html[data-theme="dark"] .blocked-state h2,
html[data-theme="dark"] .execution-step-title h3,
html[data-theme="dark"] .time-pair strong,
html[data-theme="dark"] .time-entry label,
html[data-theme="dark"] .dashboard-context h2,
html[data-theme="dark"] .dashboard-kpi:not(.featured) strong,
html[data-theme="dark"] .chart-heading h2,
html[data-theme="dark"] .completion-ring strong,
html[data-theme="dark"] .completion-breakdown strong,
html[data-theme="dark"] .dashboard-table td strong { color: #8ed1f5; }
html[data-theme="dark"] .button-ghost,
html[data-theme="dark"] .button-light,
html[data-theme="dark"] .icon-button { border-color: #426273; color: var(--ink); background: #173244; }
html[data-theme="dark"] .button-ghost:hover,
html[data-theme="dark"] .button-light:hover,
html[data-theme="dark"] .icon-button:hover { border-color: var(--sky); background: #1e4054; }
html[data-theme="dark"] .danger-quiet { color: #ff9c94; }
html[data-theme="dark"] .row-action { color: #8ed1f5; background: #173244; }
html[data-theme="dark"] .row-action.delete { color: #ff9c94; }
html[data-theme="dark"] .execution-index,
html[data-theme="dark"] .duration-label span { color: #8ed1f5; }
html[data-theme="dark"] .execution-step.is-active .execution-index,
html[data-theme="dark"] .blocked-icon,
html[data-theme="dark"] .dialog-mark,
html[data-theme="dark"] .button-accent,
html[data-theme="dark"] .button-share-active { color: #bcebb2; border-color: #4d8f44; background: #173c2d; }
html[data-theme="dark"] .share-active-card { color: #bcebb2; border-color: #4d8f44; background: #173c2d; }
html[data-theme="dark"] .shared-header,
html[data-theme="dark"] .shared-hero,
html[data-theme="dark"] .shared-status { --white: #ffffff; }
html[data-theme="dark"] .shared-loading h1,
html[data-theme="dark"] .shared-error h1,
html[data-theme="dark"] .shared-tabs button.active,
html[data-theme="dark"] .shared-kpis strong,
html[data-theme="dark"] .shared-section-heading h2,
html[data-theme="dark"] .shared-step header h3,
html[data-theme="dark"] .shared-step-times strong,
html[data-theme="dark"] .shared-step-note span,
html[data-theme="dark"] .shared-security-note strong { color: #8ed1f5; }
html[data-theme="dark"] .legend-programmed,
html[data-theme="dark"] .chart-legend .planned,
html[data-theme="dark"] .chart-bar-line .planned,
html[data-theme="dark"] .variance-axis i.on-time { background: var(--sky); }
html[data-theme="dark"] .validation-summary.valid { color: #79dfbd; }
html[data-theme="dark"] .validation-summary.warning { color: #ffd37a; background: #3b2e19; }
html[data-theme="dark"] .validation-summary.error { color: #ffaaa0; }
html[data-theme="dark"] ::placeholder { color: #78909d; opacity: 1; }
html[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator,
html[data-theme="dark"] input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(1) brightness(1.5); }
html[data-theme="dark"] .site-footer img { filter: brightness(0) invert(1); }
html[data-theme="dark"] .management-tabs,
html[data-theme="dark"] .admin-tabs,
html[data-theme="dark"] .portal-filters,
html[data-theme="dark"] .interval-card,
html[data-theme="dark"] .portal-empty,
html[data-theme="dark"] .interval-detail-dialog,
html[data-theme="dark"] .admin-row { border-color: var(--line); background: var(--white); }
html[data-theme="dark"] .org-node { border-color: var(--line); background: var(--white); }
html[data-theme="dark"] .org-node strong { color: var(--ink); }
html[data-theme="dark"] .org-chip-superstructure { color: #cfe8f8; background: #14405c; }
html[data-theme="dark"] .org-chip-infrastructure { color: #cdefe2; background: #12503f; }
html[data-theme="dark"] .org-chip-modernization { color: #fadfc6; background: #5c3c1b; }
html[data-theme="dark"] .interval-card.is-late { background: linear-gradient(105deg, #3b2226, var(--white) 38%); }
html[data-theme="dark"] .interval-card-title,
html[data-theme="dark"] .portal-filters-heading h2,
html[data-theme="dark"] .portal-section-heading h2,
html[data-theme="dark"] .detail-dialog-header h2,
html[data-theme="dark"] .detail-summary-grid strong,
html[data-theme="dark"] .comments-panel h3,
html[data-theme="dark"] .admin-row-identity strong { color: #8ed1f5; }
html[data-theme="dark"] .account-details > div,
html[data-theme="dark"] .account-details strong,
html[data-theme="dark"] .account-session { background: var(--white); }
html[data-theme="dark"] .shared-plan-summary > div { background: var(--white); }
html[data-theme="dark"] .shared-plan-summary strong { color: #8ed1f5; }
html[data-theme="dark"] .interval-card-tags i,
html[data-theme="dark"] .detail-summary-grid > div,
html[data-theme="dark"] .detail-note,
html[data-theme="dark"] .detail-status,
html[data-theme="dark"] .interval-comment,
html[data-theme="dark"] .comments-locked { background: var(--surface); }
html[data-theme="dark"] .deadline.late { color: #ffaaa0; background: #3b2226; }
html[data-theme="dark"] .deadline.ahead { color: #79dfbd; background: #12382f; }
html[data-theme="dark"] .deadline.ontime { color: #8ed1f5; background: #173244; }
html[data-theme="dark"] .dashboard-kpi.alert { background: #3b2226; }
html[data-theme="dark"] .interval-comment header i { color: #8ed1f5; background: #173244; }
html[data-theme="dark"] .admin-row input,
html[data-theme="dark"] .admin-row select { background: #0b2130; }
html[data-theme="dark"] .portal-empty strong { color: #8ed1f5; }

@media (max-width: 1000px) {
  .site-header { min-height: auto; padding: 12px 20px 0; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; }
  .brand { min-width: 0; grid-column: 1; grid-row: 1; }
  .brand img { max-width: 100%; }
  .primary-nav { grid-column: 1 / -1; grid-row: 2; width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .primary-nav a { min-width: 0; min-height: 52px; padding: 7px 6px 9px; gap: 5px; flex-direction: column; line-height: 1.1; text-align: center; }
  .primary-nav a::after { left: 6px; right: 6px; }
  .header-tools { position: static; grid-column: 2; grid-row: 1; justify-self: end; min-width: 0; gap: 8px; }
  .save-state { display: none; }
  .page-hero { align-items: flex-start; flex-direction: column; min-height: auto; padding-top: 56px; padding-bottom: 56px; }
  .hero-actions { justify-content: flex-start; }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .execution-step-grid { grid-template-columns: 1fr 1fr; }
  .notes-block { grid-column: span 2; }
  .dashboard-kpis { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .login-shell { grid-template-columns:1fr; }.login-brand-panel { gap:16px; }.login-brand-panel small { display:none; }
}

@media (max-width: 720px) {
  html, body { max-width: 100%; overflow-x: clip; }
  body { font-size: 14px; }
  select, input { min-height: 48px; font-size: 16px; }
  textarea { font-size: 16px; }
  .button, .theme-toggle, .auth-button { min-height: 44px; }
  .login-layout { padding:0; }.login-shell { width:100%; border-radius:0; box-shadow:none; }.login-brand-panel { padding:22px 20px; }.login-brand-panel > img { width:82px; }.login-brand-panel h1 { font-size:24px; }.login-brand-panel div > p:last-child { display:none; }.login-form-panel { padding:24px 20px 32px; }.login-fields { grid-template-columns:1fr; }.login-card h2 { font-size:21px; }
  .site-header { padding: 10px 12px 0; gap: 8px 10px; }
  .brand { justify-content: flex-start; }
  .brand img { width: 76px; }
  .brand span { display: none; }
  .primary-nav a { min-height: 56px; padding: 7px 2px 9px; gap: 4px; font-size: 10px; white-space: nowrap; }
  .primary-nav a span { width: 21px; height: 21px; font-size: 9px; }
  .theme-toggle b { display: none; }
  .theme-toggle { width: 44px; padding: 0; justify-content: center; }
  .auth-button { min-width: 0; max-width: 112px; padding-inline: 10px; overflow: hidden; text-overflow: ellipsis; }
  .page-hero { padding: 42px 18px; gap: 28px; }
  .page-hero h1 { font-size: clamp(31px, 9vw, 40px); overflow-wrap: anywhere; }
  .hero-copy { margin-top: 14px; font-size: 14px; }
  .workspace, .execution-workspace { width: min(100% - 24px, 1280px); padding-top: 30px; }
  .workspace-topline, .execution-heading { align-items: stretch; flex-direction: column; gap: 16px; }
  .workspace-topline h2, .execution-heading h1 { font-size: 27px; overflow-wrap: anywhere; }
  .plan-switcher { display: grid; grid-template-columns: 1fr auto auto; }
  .plan-switcher label { grid-column: 1 / -1; }
  .plan-switcher select { min-width: 0; }
  .form-grid { grid-template-columns: 1fr; padding-inline: 18px; }
  .field-span-2 { grid-column: auto; }
  .panel { border-radius: 14px; }
  .panel-heading { padding: 18px; align-items: stretch; flex-direction: column; }
  .panel-heading > div:first-child, .finalize-panel > div:first-child { gap: 11px; }
  .panel-heading h2, .panel-heading h3, .finalize-panel h3 { font-size: 16px; }
  .schedule-actions { width: 100%; }
  .schedule-actions .button { flex: 1; }
  .lock-banner { align-items: stretch; flex-wrap: wrap; padding: 14px; }
  .lock-banner .button { width: 100%; }
  .planning-revision-banner, .execution-revision-banner { align-items: stretch; flex-direction: column; padding: 14px; }
  .execution-revision-banner .button { width: 100%; }
  .schedule-table-wrap { overflow: visible; padding: 12px 14px 20px; }
  .schedule-table, .schedule-table tbody { display: block; width: 100%; min-width: 0; }
  .schedule-table thead { display: none; }
  .schedule-table tbody { display: grid; gap: 12px; }
  .schedule-table tr { padding: 13px; display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
  .schedule-table td, .schedule-table td:first-child, .schedule-table td:nth-child(2), .schedule-table td:nth-child(3), .schedule-table td:nth-child(4), .schedule-table td:nth-child(5), .schedule-table td:last-child { width: auto; min-width: 0; padding: 0; border: 0; }
  .schedule-table td:first-child { width: fit-content; padding: 4px 8px; border-radius: 99px; color: var(--blue); background: var(--lime); }
  .schedule-table td:not(:first-child) { display: grid; gap: 5px; }
  .schedule-table td:not(:first-child)::before { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
  .schedule-table td:nth-child(2)::before { content: "Atividade programada"; }
  .schedule-table td:nth-child(3)::before { content: "Início"; }
  .schedule-table td:nth-child(4)::before { content: "Fim"; }
  .schedule-table td:nth-child(5)::before { content: "Duração"; }
  .schedule-table td:nth-child(6)::before { content: "Ações"; }
  .schedule-table .row-actions { justify-content: flex-start; }
  .schedule-table .row-action { width: 44px; height: 44px; background: var(--white); }
  .validation-summary { margin-inline: 18px; }
  .gantt-section { margin-inline: 18px; }
  .subsection-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .gantt-row { grid-template-columns: 1fr; gap: 5px; }
  .gantt-label { white-space: normal; }
  .gantt-time { display: block; text-align: left; }
  .finalize-panel, .data-tools { align-items: stretch; flex-direction: column; }
  .finalize-panel .button { width: 100%; }
  .page-export-bar { width: min(100% - 24px, 1280px); align-items: stretch; flex-direction: column; }
  .page-export-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-export-actions .button { width: 100%; min-width: 0; padding-inline: 8px; }
  .status-hero { min-height: auto; padding: 22px 20px; align-items: stretch; gap: 16px; }
  .status-value strong { font-size: 68px; }
  .status-clocks { width:100%; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .status-clock { min-width: 0; padding: 12px 14px; }
  .status-clock strong { font-size:23px; }
  .status-clock small { font-size:9px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 118px; }
  .metric-card strong, .metric-card small { overflow-wrap: anywhere; }
  .execution-list { padding-inline: 18px; }
  .execution-step-header { grid-template-columns: 40px 1fr; }
  .step-variance { grid-column: 2; justify-self: start; }
  .execution-step-grid { grid-template-columns: 1fr; }
  .notes-block { grid-column: auto; }
  .blocked-state { align-items: stretch; flex-direction: column; }
  .site-footer { min-height: auto; padding: 22px 18px; align-items: flex-start; flex-direction: column; gap: 12px; }
  .dashboard-hero { min-height: auto; padding: 40px 18px; align-items: stretch; flex-direction: column; gap: 28px; }
  .dashboard-hero h1 { font-size: clamp(32px, 9vw, 40px); overflow-wrap: anywhere; }
  .dashboard-hero > div > p:last-child { margin-top: 14px; font-size: 14px; }
  .dashboard-plan-picker { min-width: 0; }
  .dashboard-workspace { width: min(100% - 24px, 1280px); padding-top: 28px; }
  .dashboard-context { align-items: stretch; flex-direction: column; gap: 14px; }
  .dashboard-context h2 { font-size: 25px; line-height: 1.2; overflow-wrap: anywhere; }
  .dashboard-pdf-button { width: 100%; }
  .dashboard-kpi { min-height: 120px; padding: 18px; }
  .timeline-compare-row, .timeline-axis { grid-template-columns: 1fr; gap: 6px; }
  .timeline-compare-row { padding: 10px 0; border-bottom: 1px solid var(--surface-2); }
  .timeline-axis > i { display: none; }
  .timeline-compare-row:last-of-type { border-bottom: 0; }
  .timeline-compare-label strong { white-space: normal; overflow-wrap: anywhere; }
  .timeline-compare-track { min-height: 27px; }
  .timeline-compare-times { grid-template-columns: 1fr 1fr; gap: 8px; }
  .timeline-compare-times span { white-space: normal; }
  .timeline-axis { margin: 2px 0 0; }
  .duration-row { grid-template-columns: 1fr; gap: 7px; }
  .duration-label strong { white-space: normal; overflow-wrap: anywhere; }
  .chart-bar-line b { min-width: 54px; }
  .completion-chart { grid-template-columns: 1fr; justify-items: center; }
  .dashboard-table-wrap { overflow: visible; }
  .dashboard-table, .dashboard-table tbody { display: block; width: 100%; }
  .dashboard-table thead { display: none; }
  .dashboard-table tbody { display: grid; gap: 12px; }
  .dashboard-table tr { padding: 14px; display: grid; gap: 9px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
  .dashboard-table td, .dashboard-table td:first-child { min-width: 0; padding: 0; display: grid; grid-template-columns: minmax(112px, .8fr) minmax(0, 1fr); gap: 10px; align-items: center; border: 0; overflow-wrap: anywhere; }
  .dashboard-table td::before { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
  .dashboard-table td:nth-child(1)::before { content: "Atividade"; }
  .dashboard-table td:nth-child(2)::before { content: "Duração prevista"; }
  .dashboard-table td:nth-child(3)::before { content: "Duração realizada"; }
  .dashboard-table td:nth-child(4)::before { content: "Desvio"; }
  .dashboard-table td:nth-child(5)::before { content: "Situação"; }
  .dashboard-table td[colspan] { display: block; }
  .dashboard-table td[colspan]::before { content: none; }
  .account-hero { padding: 42px 18px; }
  .account-hero h1 { font-size: 34px; overflow-wrap: anywhere; }
  .account-workspace { width: min(100% - 24px, 1280px); padding-top: 28px; }
  .account-gate { padding: 26px 18px; }
  .account-summary { padding: 20px; align-items: flex-start; flex-direction: column; gap: 14px; }
  .account-email { max-width: 100%; overflow-wrap: anywhere; }
  .account-summary input, .history-item input, .user-row input { max-width: 100%; min-width: 0; }
  .history-item, .user-row, .user-create-form { grid-template-columns: 1fr; align-items: stretch; gap: 12px; }
  .history-item > div:nth-child(2) { text-align: left; }
  .history-item .button, .user-create-form .button { width: 100%; }
  .history-actions { flex-direction: column; }
  .shared-header { min-height: auto; padding: 12px 18px; grid-template-columns: 1fr auto; }
  .shared-header .brand span { display: none; }
  .shared-header .theme-toggle { grid-column: 2; grid-row: 1; }
  .read-only-badge { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  .shared-hero { padding: 34px 18px; align-items: stretch; flex-direction: column; gap: 22px; }
  .shared-hero h1 { overflow-wrap: anywhere; }
  .shared-live-state { min-width: 0; }
  .shared-tabs { padding: 0 12px; }.shared-tabs button { min-width: 0; flex: 1; padding-inline: 10px; }
  .shared-view,.shared-security-note { width: min(100% - 24px,1280px); }
  .shared-status { min-height: auto; padding: 22px 18px; align-items: stretch; }
  .shared-delay-value > span,.shared-delay-value strong { font-size: 46px; }
  .shared-status-clocks { width: 100%; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .shared-kpis { grid-template-columns: 1fr; }
  .shared-section-heading { align-items: flex-start; flex-direction: column; }
  .shared-section-heading > p { margin: 0; }
  .shared-step-times { grid-template-columns: 1fr; }
  .shared-security-note { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .page-hero h1 { font-size: 31px; }
  .hero-actions, .hero-actions .button, .data-actions, .data-actions .button { width: 100%; }
  .metric-grid { grid-template-columns: 1fr; }
  .status-value strong { font-size: 60px; }
  .status-value span:first-child { font-size: 30px; }
  .status-value span:last-child { font-size: 19px; }
  .status-clocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shared-status-clocks { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .status-clock strong { font-size: 21px; }
  .dialog-actions { flex-direction: column; }
  .realized-times { grid-template-columns: 1fr; }
  .dashboard-kpis { grid-template-columns: 1fr; }
  .chart-card { padding: 16px; border-radius: 13px; }
  .chart-heading { flex-direction: column; }
  .chart-legend { flex-wrap: wrap; }
  .timeline-legend { justify-content: flex-start; }
  .timeline-compare-times { grid-template-columns: 1fr; }
  .dashboard-table td, .dashboard-table td:first-child { grid-template-columns: 1fr; gap: 3px; }
  .cloud-dialog-content { padding: 26px 20px; }
  .cloud-dialog-actions { flex-direction: column-reverse; }
  .cloud-dialog-actions .button { width: 100%; }
  .confirm-dialog { width: calc(100% - 24px); }
  .confirm-dialog form { padding: 28px 20px; }
  .shared-step > header { grid-template-columns: auto 1fr; }
  .shared-step header > b { grid-column: 2; justify-self: start; }
  .shared-dashboard-kpis { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .site-header { grid-template-columns: auto minmax(0, 1fr) auto; padding-inline: 20px; gap: 12px; }
  .brand span { display: none; }
  .primary-nav { max-width: none; }
  .portal-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .interval-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .access-request-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-password-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-row-identity, .admin-row-actions { grid-column: span 3; }
  .sub-admin-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .site-header { grid-template-columns: 1fr auto; padding: 10px 14px 0; }
  .site-header .brand { align-self: start; min-height: 38px; }
  .site-header .primary-nav { grid-column: 1 / -1; grid-row: 2; width: calc(100vw - 28px); order: 3; }
  .site-header .header-tools { align-self: start; }
  .primary-nav a { min-width: 96px; min-height: 52px; }
  .save-state { display: none; }
  .management-hero, .admin-hero { min-height: auto; padding: 42px 18px; align-items: stretch; flex-direction: column; }
  .management-hero h1, .admin-hero h1 { font-size: 36px; }
  .hero-snapshot { min-width: 0; }
  .management-tabs { padding-inline: 10px; }
  .management-tabs button { min-width: 145px; }
  .management-workspace, .admin-workspace { width: min(100% - 24px, 1280px); padding-top: 24px; }
  .portal-filters { padding: 16px; }
  .portal-filters-heading, .portal-section-heading { align-items: stretch; flex-direction: column; }
  .portal-filters-heading .button { width: 100%; }
  .portal-filter-grid { grid-template-columns: 1fr 1fr; }
  .portal-search { grid-column: 1 / -1; }
  .interval-card-grid, .overview-grid { grid-template-columns: 1fr; }
  .overview-kpis { grid-template-columns: 1fr 1fr; }
  .interval-card { min-height: 290px; }
  .detail-dialog-header { padding: 20px; }
  .detail-tabs button { min-width: 150px; }
  .detail-dialog-body { padding: 20px; }
  .detail-summary-grid { grid-template-columns: 1fr 1fr; }
  .detail-kpis { grid-template-columns: 1fr 1fr; }
  .detail-status { align-items: flex-start; flex-direction: column; }
  .detail-status > strong { margin-left: 0; }
  #detail-comment-form { grid-template-columns: 1fr; }
  .execution-comments #execution-comment-form { grid-template-columns: 1fr; }
  .detail-progress-list > div { grid-template-columns: 1fr; }
  .detail-progress-list b { text-align: left; }
  .admin-form { grid-template-columns: 1fr 1fr; }
  .admin-row, .sub-admin-row { grid-template-columns: 1fr; }
  .access-request-row, .account-password-form { grid-template-columns: 1fr; }
  .admin-row-identity, .admin-row-actions { grid-column: auto; }
  .compact-search { min-width: 0; width: 100%; }
  .account-details { grid-template-columns: 1fr 1fr; }
  .shared-plan-summary { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 460px) {
  .portal-filter-grid, .overview-kpis, .detail-summary-grid, .detail-kpis, .admin-form { grid-template-columns: 1fr; }
  .portal-search { grid-column: auto; }
  .portal-bar { grid-template-columns: 90px 1fr 38px; gap: 7px; }
  .detail-dialog-header h2 { font-size: 19px; }
  .detail-dialog-body { padding: 16px; }
  .interval-comment header { flex-direction: column; }
  .account-details { grid-template-columns: 1fr; }
  .account-session { align-items: stretch; flex-direction: column; }
  .shared-plan-summary { grid-template-columns: 1fr; }
}

/* Navegação e modais compactos para celulares */
@media (max-width: 720px) {
  .site-header .primary-nav {
    width: 100%;
    max-width: none;
    padding: 6px 0 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 6px;
    overflow: visible;
  }
  .primary-nav a {
    min-width: 0;
    min-height: 46px;
    padding: 6px 4px 8px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    background: rgba(255,255,255,.06);
    white-space: normal;
  }
  .primary-nav a.active { background: rgba(127,224,108,.13); }
  .primary-nav a::after { left: 8px; right: 8px; }

  .management-tabs,
  .admin-tabs,
  .shared-tabs,
  .detail-tabs {
    min-height: 0;
    padding: 8px 10px;
    display: grid;
    gap: 7px;
    overflow: visible;
    background: var(--white);
  }
  .management-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shared-tabs,
  .detail-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .management-tabs button,
  .admin-tabs button,
  .shared-tabs button,
  .detail-tabs button {
    min-width: 0;
    min-height: 44px;
    padding: 8px 5px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: var(--surface);
    font-size: 10px;
    line-height: 1.2;
    white-space: normal;
  }
  .management-tabs button.active,
  .admin-tabs button.active,
  .shared-tabs button.active,
  .detail-tabs button.active {
    border-color: var(--green);
    color: var(--blue);
    background: var(--success-soft);
  }
  .management-tabs button::after,
  .admin-tabs button::after,
  .detail-tabs button::after { display: none; }

  .management-hero,
  .admin-hero { padding: 30px 14px; gap: 18px; }
  .management-hero h1,
  .admin-hero h1 { font-size: 31px; }
  .hero-snapshot { padding: 18px; border-radius: 14px; }
  .hero-snapshot strong { font-size: 44px; }
  .portal-filters { padding: 14px; border-radius: 14px; }
  .portal-filters-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
  }
  .portal-filters-heading h2 { font-size: 24px; }
  .portal-filters-heading .button {
    width: auto;
    min-height: 40px;
    padding-inline: 12px;
    font-size: 10px;
  }
  .portal-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .portal-filter-grid .field { min-width: 0; }
  .portal-filter-grid select,
  .portal-filter-grid input { width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; font-size: 14px; }
  .portal-search { grid-column: 1 / -1; }

  .interval-detail-dialog,
  .cloud-dialog,
  .confirm-dialog {
    width: calc(100% - 12px);
    max-height: calc(100vh - 12px);
    max-height: calc(100dvh - 12px);
    margin: auto;
    overscroll-behavior: contain;
  }
  .interval-detail-dialog { border-radius: 12px; }
  .detail-dialog-header { padding: 14px; gap: 10px; }
  .detail-dialog-header h2 { font-size: 18px; line-height: 1.2; overflow-wrap: anywhere; }
  .detail-dialog-header > button { flex: 0 0 40px; }
  .detail-full-page-bar { padding: 8px 10px; gap: 8px; }
  .detail-full-page-bar small { display: none; }
  .detail-full-page-bar .button { min-height: 42px; padding-inline: 11px; font-size: 10px; }
  .detail-tabs { flex: 0 0 auto; }
  .detail-dialog-body {
    padding: 14px 14px max(24px, env(safe-area-inset-bottom));
    -webkit-overflow-scrolling: touch;
  }
  .cloud-dialog,
  .confirm-dialog { overflow: auto; -webkit-overflow-scrolling: touch; }
  .cloud-dialog-content { padding: 24px 18px max(24px, env(safe-area-inset-bottom)); }
  .confirm-dialog form { padding: 24px 18px max(24px, env(safe-area-inset-bottom)); }
  .detail-kpis,
  .overview-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-kpis .dashboard-kpi,
  .overview-kpis .dashboard-kpi { min-height: 104px; padding: 13px; }
  .detail-kpis .dashboard-kpi strong,
  .overview-kpis .dashboard-kpi strong { font-size: 23px; }
}

@media (max-width: 460px) {
  .portal-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-search { grid-column: 1 / -1; }
  .hero-actions,
  .data-actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hero-actions .button,
  .data-actions .button { width: auto; min-width: 0; padding-inline: 8px; font-size: 10px; }
  .hero-actions .button:last-child:nth-child(odd),
  .data-actions .button:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .metric-grid,
  .dashboard-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media print {
  @page { size: A4 landscape; margin: 9mm; }
  :root, html[data-theme="dark"] { --surface:#f2f5f6; --surface-2:#e5ebee; --line:#cad6dd; --ink:#123047; --muted:#627888; --white:#ffffff; --blue:#003865; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  body { background: white; font-size: 11px; }
  .skip-link, .site-header, .shared-header, .site-footer, .execution-actions, .now-button, .step-status-button, .toast, .dashboard-hero, .page-export-bar, .page-export-actions, .chart-tooltip { display: none !important; }
  .status-hero { min-height: auto; padding: 22px; color: var(--blue); background: white !important; border: 2px solid var(--blue); }
  .status-clocks { width:100%; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .status-clock { padding:12px 15px; color: var(--blue); border-color: var(--line); }
  .status-clock strong { font-size:24px; }
  .status-forecast-clock { background:var(--surface); }
  .status-forecast-clock strong { color:var(--blue); }
  .status-clock span, .status-clock small, .status-label { color: var(--muted); }
  .status-readable { color:var(--blue); border-color:var(--line); background:var(--surface); }
  .execution-step.is-critical { background: #fff; padding-left: 10px; box-shadow: inset 3px 0 0 #b84837; }
  .critical-flag { background: #fff; color: #a43b32; border: 1px solid #b84837; }
  .step-forecast { color: var(--blue); }
  .execution-workspace { width: 100%; padding: 18px 0; }
  .metric-grid { grid-template-columns: repeat(5, 1fr); }
  .metric-card { min-height: 90px; break-inside: avoid; }
  .metric-card.emphasis { background: white; border-color: var(--blue); }
  .metric-card.emphasis strong { color: var(--blue); }
  .metric-card.emphasis > span, .metric-card.emphasis small { color:var(--muted); }
  .execution-panel, .execution-notes { box-shadow: none; }
  .execution-panel .panel-heading { padding: 14px 18px 11px; }
  .execution-list { padding: 0 18px 14px; }
  .execution-step { break-inside: auto; page-break-inside: auto; padding: 6px 0; }
  .execution-step-header { break-inside:avoid; page-break-inside:avoid; break-after:avoid; page-break-after:avoid; }
  .programmed-block, .realized-block { break-inside:avoid; page-break-inside:avoid; }
  .execution-step-header { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; margin-bottom: 4px; }
  .execution-index { width: 28px; height: 28px; }
  .execution-step-title h3 { font-size: 13px; }
  .step-variance { padding: 5px 7px; font-size: 8px; }
  .execution-step-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.15fr) minmax(0, 1.45fr); gap: 7px; }
  .programmed-block, .realized-block { min-width: 0; padding: 6px 8px; }
  .block-label { margin-bottom: 5px; font-size: 8px; }
  .time-pair strong { font-size: 14px; }
  .realized-times { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .time-entry { grid-template-columns: minmax(0, 1fr); }
  .time-entry label { gap: 2px; font-size: 8px; }
  .time-entry input { width: 100%; min-width: 0; height: 30px; }
  .realized-duration { margin-top: 4px; }
  .notes-block { min-width: 0; grid-column: auto; }
  .notes-block textarea { min-height: 40px; height: 40px; padding-top: 3px; font-size: 8px; line-height: 1.2; }
  textarea, input { max-width: 100%; border-color: transparent; padding-left: 0; overflow: hidden; }
  textarea { resize: none; }
  .dashboard-workspace { width:100%; padding:0; }
  .dashboard-print-header { margin-bottom:14px; padding-bottom:10px; display:flex; align-items:center; gap:15px; border-bottom:2px solid var(--blue); }
  .dashboard-print-header img { width:70px; }.dashboard-print-header div { display:grid; }.dashboard-print-header strong { color:var(--blue); font-size:16px; }.dashboard-print-header span { color:var(--muted); font-size:9px; }
  .dashboard-context { margin-bottom:12px; }.dashboard-context h2 { color:var(--blue) !important; font-size:20px; }
  .dashboard-kpis { grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-bottom:10px; }.dashboard-kpi { min-width:0; min-height:104px; padding:11px 12px; break-inside:avoid; background:white !important; }.dashboard-kpi > span { font-size:8px; line-height:1.25; overflow-wrap:anywhere; }.dashboard-kpi strong,.dashboard-kpi.featured strong { color:var(--blue) !important; font-size:21px; }.dashboard-kpi small { font-size:8px; line-height:1.3; overflow-wrap:anywhere; }.dashboard-kpi.featured > span,.dashboard-kpi.featured small { color:var(--muted); }
  .dashboard-grid { grid-template-columns:1.15fr .85fr; gap:10px; }.chart-card { padding:14px; break-inside:avoid; box-shadow:none; background:white !important; }.chart-card-wide { grid-column:1/-1; }.chart-heading { margin-bottom:12px; }.chart-heading h2 { color:var(--blue) !important; font-size:15px; }
  .duration-chart { gap:7px; }.duration-row { gap:10px; }.completion-chart,.variance-chart { min-height:210px; }.completion-ring { width:145px; }.completion-ring::before { width:100px; background:white !important; }.completion-ring strong,.completion-breakdown strong,.dashboard-table td strong { color:var(--blue) !important; }
  .timeline-comparison-card .chart-heading { margin-bottom:4px; }.timeline-help { margin-bottom:8px; font-size:8px; }.timeline-comparison { gap:5px; }.timeline-compare-row, .timeline-axis { grid-template-columns:minmax(140px,24%) 1fr minmax(125px,19%); gap:8px; }.timeline-compare-row { padding:0; border:0; }.timeline-axis > i { display:block; }.timeline-compare-label span { width:21px; height:21px; }.timeline-compare-label strong,.timeline-compare-times { font-size:8px; }.timeline-compare-track { min-height:0; }.timeline-lane { height:7px; }.timeline-axis-scale { height:11px; }
  .dashboard-table-card { margin-top:10px; }.dashboard-table { table-layout:fixed; font-size:9px; }.dashboard-table th,.dashboard-table td { padding:7px 9px; overflow-wrap:anywhere; }.dashboard-table th:first-child,.dashboard-table td:first-child { width:34%; min-width:0; }
  body.planning-printing .planning-hero,
  body.planning-printing .plan-switcher,
  body.planning-printing .lock-banner .button,
  body.planning-printing .planning-revision-banner,
  body.planning-printing .schedule-actions,
  body.planning-printing .row-actions,
  body.planning-printing .finalize-panel,
  body.planning-printing .data-tools,
  body.planning-printing .validation-summary { display:none !important; }
  body.planning-printing .workspace { width:100%; padding:0; }
  body.planning-printing .workspace-topline { margin-bottom:12px; }
  body.planning-printing .panel { margin-bottom:12px; border:1px solid var(--line); box-shadow:none; break-inside:auto; }
  body.planning-printing .panel-heading { padding:12px 15px; }
  body.planning-printing .form-grid { padding:12px 15px; gap:8px; }
  body.planning-printing .schedule-table-wrap { padding:8px 12px 12px; overflow:visible; }
  body.planning-printing .schedule-table { min-width:0; font-size:9px; }
  body.planning-printing .schedule-table th,
  body.planning-printing .schedule-table td { padding:6px; }
  body.planning-printing select { appearance:none; }
  body.portal-printing .management-hero,
  body.portal-printing .management-tabs,
  body.portal-printing .portal-filters { display:none !important; }
  body.portal-printing .management-workspace { width:100%; padding:0; }
  body.portal-printing .portal-print-header { margin-bottom:14px; padding-bottom:10px; display:flex; align-items:center; gap:15px; border-bottom:2px solid var(--blue); }
  body.portal-printing .portal-print-header img { width:70px; }
  body.portal-printing .portal-print-header div { display:grid; gap:3px; }
  body.portal-printing .portal-print-header strong { color:var(--blue); font-size:16px; }
  body.portal-printing .portal-print-header span { color:var(--muted); font-size:9px; }
  body.portal-printing .portal-section-heading { margin-bottom:12px; }
  body.portal-printing .interval-card-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
  body.portal-printing .interval-card { min-height:0; padding:12px; break-inside:avoid; box-shadow:none; }
  body.portal-printing .overview-grid { grid-template-columns:1fr 1fr; gap:10px; }
  body.portal-printing .overview-kpis { grid-template-columns:repeat(6,minmax(0,1fr)); gap:7px; }
  body.portal-printing .portal-bar { grid-template-columns:minmax(100px,.55fr) 1fr 48px; }
  body.shared-printing .shared-page { padding:0; }
  body.shared-printing .shared-hero { width:100%; padding:16px 20px; min-height:0; }
  body.shared-printing .shared-tabs,
  body.shared-printing .shared-security-note { display:none !important; }
  body.shared-printing [data-shared-view][hidden] { display:block !important; }
  body.shared-printing .shared-view { width:100%; margin:14px 0 0; padding:0; }
  body.shared-printing .shared-status { min-height:0; padding:18px; }
  body.shared-printing .shared-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); }
  body.shared-printing .shared-step { break-inside:avoid; }
}
