@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/fonts/plex-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/fonts/plex-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/fonts/plex-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/fonts/plex-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --nav-text: #c1d4dc;
  --shadow: 0 14px 48px #031f292b;
  font-family: var(--font, 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif);
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
:root[data-theme='escuro'] {
  --nav-text: #b4cad4;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}
button {
  border: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h3 {
  font-size: calc(15px * var(--fs, 1));
  font-weight: 600;
}
p {
  line-height: 1.55;
}
small,
.muted {
  color: var(--muted);
}
svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
strong {
  font-weight: 600;
}
.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;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 1000;
  background: var(--surface);
  padding: 12px;
}
.skip-link:focus {
  top: 8px;
}
.brand-word {
  font-size: calc(17px * var(--fs, 1));
  font-weight: 750;
  letter-spacing: 2px;
}
.workspace {
  min-height: 100vh;
}
.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.3;
  text-align: center;
}
.button.primary {
  border-color: var(--primary);
}
.button.danger {
  border-color: var(--bad);
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.page {
  max-width: 1560px;
  margin: 0 auto;
  padding: 28px 30px 44px;
}
.page-head {
  display: flex;
  justify-content: space-between;
}
.eyebrow {
  text-transform: uppercase;
}
.panel {
  overflow: hidden;
}
.metric {
  min-height: 123px;
}
.metric-value {
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.metric small {
  display: block;
  margin-top: 4px;
}
.metric.warning .metric-value {
  color: var(--bad);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 22px;
}
.dashboard-grid > .panel + .panel {
  margin-top: 0;
}
.work-row {
  display: flex;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.work-row:last-child {
  border-bottom: 0;
}
.work-row-main {
  min-width: 0;
  flex: 1;
}
.work-row-main strong {
  display: block;
  line-height: 1.45;
}
.work-row-main small {
  display: block;
}
.work-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
}
.work-icon svg {
  width: 18px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.3;
  white-space: nowrap;
}
.empty {
  padding: 38px 24px;
  text-align: center;
  max-width: 540px;
  margin: auto;
}
.empty > svg {
  color: var(--primary);
  margin-bottom: 15px;
}
.empty p {
  color: var(--muted);
  margin: 10px 0 18px;
}
.loading {
  padding: 40px;
  color: var(--muted);
}
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  margin-right: 10px;
  vertical-align: middle;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}
.filters .field {
  min-width: 160px;
  max-width: 260px;
}
.filters .field.search {
  flex: 1;
  max-width: none;
}
.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.field small {
  font-size: calc(11.5px * var(--fs, 1));
  font-weight: 400;
  line-height: 1.5;
}
input,
select,
textarea {
  width: 100%;
}
input[type='checkbox'] {
  width: 18px;
  min-height: 18px;
}
textarea {
  resize: vertical;
}
.field-error {
  color: var(--bad);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.form-grid > .wide {
  grid-column: 1/-1;
}
.check-field {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 23px;
}
.form-message {
  margin: 0 0 18px;
  color: var(--bad);
  background: var(--bad-bg);
  line-height: 1.5;
}
.form-message:empty {
  display: none;
}
.notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--warn-bg);
  color: var(--warn);
}
.notice[hidden] {
  display: none;
}
.notice a {
  color: inherit;
  text-decoration: underline;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  text-align: left;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table td {
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table td strong {
  display: block;
}
.data-table td small {
  display: block;
}
.protocol {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  white-space: nowrap;
}
.pagination {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}
.view-switch {
  display: flex;
}
.view-switch button {
  background: transparent;
}
.kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 15px;
  overflow: auto;
  padding-bottom: 6px;
}
.kanban-col {
  background: color-mix(in srgb, var(--line) 35%, transparent);
  padding: 12px;
  min-height: 250px;
}
.kanban-col h2 {
  font-size: calc(11.5px * var(--fs, 1));
  display: flex;
  justify-content: space-between;
  margin: 4px 2px 14px;
}
.kanban-card {
  padding: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 10px;
}
.kanban-card h3 {
  font-size: calc(12px * var(--fs, 1));
  margin: 10px 0;
}
.kanban-card small {
  font-size: calc(11.5px * var(--fs, 1));
}
.kanban-card .toolbar {
  margin-top: 15px;
  justify-content: space-between;
}
.description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.key-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
}
.key-values div {
  min-width: 0;
}
.key-values dt {
  color: var(--muted);
}
.key-values dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.section-space {
  margin-top: 22px;
}
.comment {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.comment:first-child {
  padding-top: 0;
}
.comment:last-child {
  border-bottom: 0;
}
.comment p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.comment time {
  color: var(--muted);
  margin-left: auto;
}
.timeline {
  padding: 0;
  margin: 0;
  list-style: none;
}
.timeline li {
  padding: 0 0 22px 21px;
  position: relative;
  border-left: 1px solid var(--line);
}
.timeline li:before {
  content: '';
  position: absolute;
  left: -4px;
  top: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
}
.timeline time {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}
.attachment {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}
.attachment .file-info {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.attachment small {
  display: block;
}
.upload-box {
  margin-top: 14px;
}
.upload-box input {
  padding: 6px;
  border: 0;
  background: transparent;
}
.upload-box p {
  color: var(--muted);
  margin: 5px 0;
}
.checklist-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.checklist-item:first-child {
  padding-top: 0;
}
.checklist-item:last-child {
  border-bottom: 0;
}
.checklist-item h3 {
  margin-bottom: 12px;
}
.checklist-item .required {
  color: var(--warn);
  margin-left: 7px;
}
.checklist-progress {
  border-radius: 5px;
  overflow: hidden;
  margin-top: 15px;
}
.checklist-progress span {
  display: block;
  height: 100%;
  background: var(--cyan);
}
.template-item {
  padding: 15px;
  margin-bottom: 12px;
}
.template-item .form-grid {
  gap: 10px;
}
.dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  padding: 0;
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  box-shadow: var(--shadow);
}
.dialog::backdrop {
  background: #031a2466;
  backdrop-filter: blur(2px);
}
.dialog-head {
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.dialog-head h2 {
  font-size: calc(18px * var(--fs, 1));
}
.dialog-body {
  padding: 23px 24px;
}
.dialog[open] {
  animation: enter 0.15s ease-out;
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.mobile-bar {
  display: none;
}
.boot {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  background: linear-gradient(135deg, #087e9e0f, transparent 40%), var(--bg);
}
.boot::before {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, #087e9e38, transparent 68%);
  animation: boot-brilho 3.2s ease-in-out infinite;
  pointer-events: none;
}
.boot > * {
  position: relative;
}
.boot-logo {
  height: 48px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  margin-bottom: 6px;
  animation: boot-entrada 0.7s ease-out both, boot-respira 2.6s ease-in-out 0.7s infinite;
}
.boot-logo-escuro,
[data-theme='escuro'] .boot-logo-claro {
  display: none;
}
[data-theme='escuro'] .boot-logo-escuro {
  display: block;
}
.boot-barra {
  width: 180px;
  height: 3px;
  border-radius: 3px;
  overflow: hidden;
  background: #087e9e2e;
}
.boot-barra i {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: boot-barra 1.3s ease-in-out infinite;
}
.boot-titulo {
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
}
.boot-titulo::after {
  content: '';
  display: inline-block;
  width: 1.2em;
  text-align: left;
  animation: boot-pontos 1.4s steps(1, end) infinite;
}
.boot-lenta {
  opacity: 0;
  animation: boot-aviso 0.4s ease-out 6s forwards;
}
@keyframes boot-entrada {
  from { opacity: 0; transform: translateY(8px) scale(0.94); }
  to { opacity: 1; transform: none; }
}
@keyframes boot-respira {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.045); opacity: 0.82; }
}
@keyframes boot-brilho {
  0%, 100% { transform: scale(0.85); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
}
@keyframes boot-barra {
  from { transform: translateX(-100%); }
  to { transform: translateX(250%); }
}
@keyframes boot-pontos {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
}
@keyframes boot-aviso {
  to { opacity: 1; }
}
.qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.qr-box canvas {
  border: 10px solid white;
  border-radius: 5px;
  max-width: 100%;
  height: auto;
}
.qr-box .url {
  font-size: calc(11.5px * var(--fs, 1));
  overflow-wrap: anywhere;
  max-width: 100%;
  word-break: break-all;
}
#toast {
  position: fixed;
  z-index: 120;
  padding: 13px 20px;
  font-size: calc(12px * var(--fs, 1));
  max-width: calc(100vw - 30px);
}
.report-state {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background: var(--bg);
  border-radius: 6px;
  font-size: calc(12px * var(--fs, 1));
}
.tabs {
  display: flex;
}
.tabs a.active {
  font-weight: 600;
}
@media (min-width: 1450px) {
  .page {
    padding: 34px 40px;
  }
  .topbar {
    padding: 0 40px;
  }
}
@media (max-width: 1100px) {
  .page {
    padding: 25px 22px;
  }
  .topbar {
    padding: 0 22px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(250px, 1fr);
  }
}
@media (max-width: 800px) {
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 62px;
    padding: 0 16px;
  }
  .page {
    padding: 24px 17px calc(58px + var(--mobile-tabs-base) + 26px);
  }
  .page-head h1 {
    font-size: calc(24px * var(--fs, 1));
  }
  .page-head > .toolbar {
    justify-content: flex-end;
  }
  .page-head > .toolbar .button {
    font-size: calc(11.5px * var(--fs, 1));
  }
  .subtitle {
    line-height: 1.5;
  }
  .metric {
    min-height: 113px;
  }
  .metric-label {
    line-height: 1.6;
  }
  .metric-label svg {
    display: none;
  }
  .metric-value {
    margin-top: 8px;
  }
  .metric small {
    line-height: 1.4;
  }
  .dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  /* Shared published Suite navigation: Central /m/m.css + barra.css, 2026-10-17. */
  :root { --mobile-tabs-base: max(12px, calc(env(safe-area-inset-bottom, 0px) - 19px)); }
  .mobile-bar {
    --tab-ink: #1a1d1f; --tab-active: #1a1d1f; --tab-thumb: rgba(118, 118, 128, .16); --tab-rim: rgba(255, 255, 255, .8); --tab-edge: rgba(0, 0, 0, .07); --tab-shadow: rgba(2, 24, 32, .14);
    --vidro-tinta: linear-gradient(rgba(247, 249, 250, .47), rgba(247, 249, 250, .47)); --vidro-toque: rgba(255, 255, 255, .3); --brilho-forca: 1; --lente-tinta: rgba(255, 255, 255, .12); --lente-luz: rgba(255, 255, 255, .22); --lente-sombra: rgba(2, 24, 32, .16); --lente-borda: rgba(0, 0, 0, .2);
  }
  [data-theme='escuro'] .mobile-bar {
    --tab-ink: #f2f5f6; --tab-active: #f2f5f6; --tab-thumb: rgba(255, 255, 255, .16); --tab-rim: rgba(255, 255, 255, .14); --tab-edge: rgba(255, 255, 255, .06); --tab-shadow: rgba(0, 8, 13, .45);
    --vidro-tinta: linear-gradient(rgba(14, 38, 48, .5), rgba(14, 38, 48, .5)); --vidro-toque: rgba(255, 255, 255, .14); --brilho-forca: .3; --lente-tinta: rgba(255, 255, 255, .05); --lente-luz: rgba(255, 255, 255, .12); --lente-sombra: rgba(0, 8, 13, .4); --lente-borda: rgba(255, 255, 255, .12);
  }
  body:has(.mobile-bar:not([hidden]))::after {
    content: ''; position: fixed; left: 0; right: 0; bottom: 0; z-index: 29; pointer-events: none;
    height: calc(var(--mobile-tabs-base) + 24px); background: var(--bg);
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, .9) 0, rgba(0, 0, 0, .3) var(--mobile-tabs-base), transparent 100%);
    mask-image: linear-gradient(to top, rgba(0, 0, 0, .9) 0, rgba(0, 0, 0, .3) var(--mobile-tabs-base), transparent 100%);
  }
.mobile-bar { --tabs-n: 5; position: fixed; left: max(14px, env(safe-area-inset-left, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); bottom: var(--mobile-tabs-base); z-index: 30; height: 58px; padding: 4px; border-radius: 29px; background: transparent; box-shadow: 0 0 0 .5px var(--tab-edge), 0 8px 28px var(--tab-shadow); display: grid; grid-template-columns: repeat(var(--tabs-n), minmax(0, 1fr)); isolation: isolate; overflow: hidden; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.mobile-bar-refraction { position: absolute; inset: 0; z-index: 0; border-radius: inherit; background: var(--vidro-tinta); -webkit-backdrop-filter: blur(2px) saturate(1.5); backdrop-filter: blur(2px) saturate(1.5); pointer-events: none; }
html[data-theme="escuro"] .mobile-bar-refraction { -webkit-backdrop-filter: blur(2px) saturate(1.4); backdrop-filter: blur(2px) saturate(1.4); }
/* Chromium (app Android): refracao no bisel (filtro #vidro-barra, gerado por abas-arrastar.js). O url() so existe nesta
   classe, que o JS poe apenas no Chromium: no Safari um url() na lista apaga o backdrop-filter inteiro. */
.mobile-bar.refrata .mobile-bar-refraction { backdrop-filter: blur(2px) url(#vidro-barra) saturate(1.5); }
html[data-theme="escuro"] .mobile-bar.refrata .mobile-bar-refraction { backdrop-filter: blur(2px) url(#vidro-barra) saturate(1.4); }
.mobile-bar::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; background: var(--vidro-brilho, none) center / 100% 100% no-repeat; opacity: var(--brilho-forca); pointer-events: none; }
.mobile-bar:not(.tem-brilho)::after { box-shadow: inset 0 1px 0 var(--tab-rim), inset 0 0 0 .5px var(--tab-rim); }
.mobile-bar.is-pressed::after { background-image: radial-gradient(96px 72px at calc(4px + var(--drag-x, 0px) + (100% - 8px) / var(--tabs-n) / 2) 50%, var(--vidro-toque), transparent), var(--vidro-brilho, none); background-size: 100% 100%; }
.mobile-bar::before { content: ''; position: absolute; z-index: 2; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--tabs-n)); border-radius: 25px; background: var(--tab-thumb); transform: translateX(var(--active-x, 0%)); pointer-events: none; }
.mobile-bar.is-ready::before { transition: transform .42s cubic-bezier(.34, 1.15, .64, 1), background-color .25s, box-shadow .25s; }
.mobile-bar.is-moving::before { transform: translateX(var(--active-x, 0%)) scale(1.06, .95); }
/* Lente ao tocar e arrastar (abas-arrastar.js): vidro claro com aro de luz e contorno fino por cima dos icones; o icone
   de baixo fica preenchido e maior. Como no video: 1,25x a largura da aba e 1,38x a altura, passando da barra; arrastando,
   estica com a velocidade. */
.mobile-bar.is-pressed, .mobile-bar.is-settling { overflow: visible; }
.mobile-bar.is-pressed::before { z-index: 4; transform: translateX(var(--drag-x, 0px)) scale(1.25, 1.38); background: var(--lente-brilho, none) center / 100% 100% no-repeat, radial-gradient(closest-side, transparent 65%, var(--lente-luz)) center / 100% 100% no-repeat, var(--lente-tinta); box-shadow: 0 0 0 1px var(--lente-borda), 0 6px 18px var(--lente-sombra); -webkit-backdrop-filter: saturate(1.3) brightness(1.04); backdrop-filter: saturate(1.3) brightness(1.04); transition: transform .18s cubic-bezier(.2, .9, .3, 1.25), box-shadow .2s; }
.mobile-bar.is-pressed:not(.tem-brilho)::before { box-shadow: inset 0 0 0 1px var(--tab-rim), inset 0 2px 3px var(--tab-rim), 0 6px 18px var(--lente-sombra); }
html[data-theme="escuro"] .mobile-bar.is-pressed::before { -webkit-backdrop-filter: saturate(1.3) brightness(1.12); backdrop-filter: saturate(1.3) brightness(1.12); }
/* Refracao da lente (so Chromium): entorta e separa as cores, na borda, do que esta embaixo (icones e vidro da barra). */
.mobile-bar.refrata.is-pressed::before { backdrop-filter: url(#abas-lente) saturate(1.3) brightness(1.04); }
html[data-theme="escuro"] .mobile-bar.refrata.is-pressed::before { backdrop-filter: url(#abas-lente) saturate(1.3) brightness(1.12); }
.mobile-bar.is-dragging::before { transform: translateX(var(--drag-x, 0px)) scale(calc(1.25 + var(--stretch, 0) * 1.4), calc(1.38 - var(--stretch, 0) * .5)); transition: transform .08s linear, box-shadow .2s; }
.mobile-bar.is-pressed .mobile-tab[aria-current="page"]:not(.is-lens) { color: var(--tab-ink); }
.mobile-bar.is-pressed .mobile-tab.is-lens { color: var(--tab-active); transform: scale(1.18); }
.mobile-bar.is-dragging .mobile-tab.is-lens { transform: scale(1.22); }
/* Sob a lente o vidro da barra abre (como no video): a lente mostra o conteudo limpo, sem o veu, so com a propria
   refracao. A janela segue o dedo (--drag-x) e tem as bordas suaves, cobertas pelo aro da lente. */
.mobile-bar.is-pressed .mobile-bar-refraction { --lente-cx: calc(4px + var(--drag-x, 0px) + (100% - 8px) / var(--tabs-n) / 2); --lente-r: calc((100% - 8px) / var(--tabs-n) * .6);
  -webkit-mask-image: linear-gradient(to right, #000 calc(var(--lente-cx) - var(--lente-r) - 6px), transparent calc(var(--lente-cx) - var(--lente-r) + 8px), transparent calc(var(--lente-cx) + var(--lente-r) - 8px), #000 calc(var(--lente-cx) + var(--lente-r) + 6px));
  mask-image: linear-gradient(to right, #000 calc(var(--lente-cx) - var(--lente-r) - 6px), transparent calc(var(--lente-cx) - var(--lente-r) + 8px), transparent calc(var(--lente-cx) + var(--lente-r) - 8px), #000 calc(var(--lente-cx) + var(--lente-r) + 6px)); }
.mobile-bar .ico { width: 22px; height: 22px; fill: currentColor; stroke: none; display: block; }
.mobile-tab { position: relative; z-index: 3; min-width: 0; border: 0; border-radius: 25px; background: transparent; color: var(--tab-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: calc(10px * var(--fs, 1)); font-weight: 600; transition: transform .24s cubic-bezier(.2, .9, .3, 1.25), color .2s; }
.mobile-tab[aria-current="page"] { color: var(--tab-active); }
.mobile-tab[aria-current="page"] .ico { color: inherit; }
.mobile-tab .ico-on, .mobile-tab[aria-current="page"] .ico-off, .mobile-bar.is-pressed .mobile-tab.is-lens .ico-off { display: none; }
.mobile-tab[aria-current="page"] .ico-on, .mobile-bar.is-pressed .mobile-tab.is-lens .ico-on { display: block; }
.mobile-bar.is-pressed .mobile-tab[aria-current="page"]:not(.is-lens) .ico-on { display: none; }
.mobile-bar.is-pressed .mobile-tab[aria-current="page"]:not(.is-lens) .ico-off { display: block; }
.mobile-tab:focus-visible { outline: 2px solid var(--cyan); outline-offset: -4px; }
/* Tinta adaptativa (abas-arrastar.js): no tema escuro, sobre bloco solido claro, a barra usa o vidro claro (como o nativo). */
.mobile-bar.sobre-claro { --tab-ink: #1a1d1f; --tab-active: #1a1d1f; --tab-thumb: rgba(118, 118, 128, .16); --vidro-tinta: linear-gradient(rgba(247, 249, 250, .47), rgba(247, 249, 250, .47)); --vidro-toque: rgba(255, 255, 255, .3); --brilho-forca: 1; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .mobile-bar { background: rgba(250, 252, 253, .94); } html[data-theme="escuro"] .mobile-bar { background: rgba(14, 40, 50, .94); } }
/* Aumentar contraste (iPhone) ou reduzir transparencia: vidro quase opaco e borda visivel. */
@media (prefers-contrast: more), (prefers-reduced-transparency: reduce) { .mobile-bar-refraction { background: rgba(250, 252, 253, .92); } html[data-theme="escuro"] .mobile-bar-refraction { background: rgba(14, 40, 50, .92); } .mobile-bar { box-shadow: 0 0 0 1px var(--muted), 0 8px 28px var(--tab-shadow); } }
.mobile-bar .mobile-tab { padding: 0; min-height: 44px; line-height: 1.45; text-align: center; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.mobile-bar-refraction { overflow: hidden; }
  .filters {
    gap: 9px;
  }
  .filters .field {
    min-width: calc(50% - 5px);
    flex: 1;
    max-width: none;
  }
  .filters .field.search {
    flex-basis: 100%;
  }
  .data-table .optional-column {
    display: none;
  }
  .data-table td {
    font-size: calc(11.5px * var(--fs, 1));
  }
  .data-table .protocol {
    font-size: calc(11.5px * var(--fs, 1));
  }
  .table-wrap {
    overscroll-behavior-x: contain;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid > .wide {
    grid-column: auto;
  }
  .dialog {
    max-height: calc(100dvh - 18px);
    width: calc(100vw - 18px);
    border-radius: 12px;
  }
  .dialog-head {
    padding: 17px;
  }
  .dialog-body {
    padding: 19px 17px;
  }
  .form-actions {
    position: sticky;
    bottom: -19px;
    background: var(--surface);
    padding-bottom: 16px;
    z-index: 1;
  }
  .kanban {
    grid-template-columns: repeat(5, 260px);
  }
  #toast {
    white-space: normal;
    width: max-content;
  }
}
@media (prefers-reduced-motion: reduce) {
  :not(.side):not(.side *),
  :not(.side):not(.side *)::before,
  :not(.side):not(.side *)::after {
    animation: none !important;
    transition-property: color, background-color, border-color, box-shadow, opacity !important;
    transition-duration: .15s !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .boot.boot::before { animation: boot-brilho 3.2s ease-in-out infinite !important; }
  .boot.boot .boot-logo { animation: boot-entrada 0.7s ease-out both !important; }
  .boot.boot .boot-barra i { animation: boot-barra 1.3s ease-in-out infinite !important; }
  .boot.boot .boot-titulo::after { animation: boot-pontos 1.4s steps(1, end) infinite !important; }
  .boot.boot .boot-lenta { animation: boot-aviso 0.4s ease-out 6s forwards !important; }
}
@media print {
  .topbar,
  .mobile-bar,
  .notice,
  .toolbar,
  .upload-box,
  .form-actions {
    display: none !important;
  }
  .workspace {
    margin: 0;
  }
  .page {
    padding: 0;
  }
  .panel {
    break-inside: avoid;
  }
  .qr-box .url {
    font-size: 9pt;
  }
  body {
    color: #000;
    background: #fff;
  }
  .dialog[open] {
    position: static;
    box-shadow: none;
    max-height: none;
    border: 0;
  }
  .dialog::backdrop {
    background: white;
  }
}

@media (max-width: 800px) {
  .page-head:has(> .toolbar > :nth-child(2)) {
    flex-direction: column;
    align-items: stretch;
  }
  .page-head:has(> .toolbar > :nth-child(2)) > .toolbar {
    justify-content: flex-start;
  }
}
.metrics.portal-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Session work follows the existing operation surface in both themes. */
.draft-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; margin: 0 0 16px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); background: var(--neutral-bg); color: var(--text); font-size: calc(12.5px * var(--fs, 1)); line-height: 1.5; }
.draft-status[hidden] { display: none; }
.draft-status > span { flex: 1 1 220px; }
.pending-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 20px; border-bottom: 1px solid var(--line); }
.pending-row:last-child { border-bottom: 0; }
.pending-main { flex: 1 1 290px; min-width: 0; overflow-wrap: anywhere; }
.pending-main small { display: block; margin-top: 6px; }
.pending-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pending-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pending-error { color: var(--muted); font-size: calc(13px * var(--fs, 1)); margin-top: 8px; }
.pending-values { margin-top: 18px; }
.pending-values dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.pending-confirmation { background: var(--good-bg); color: var(--good); margin-top: 16px; justify-content: space-between; }
[data-pending-count] { display: inline-block; min-width: 20px; padding: 1px 6px; margin-left: 4px; background: var(--warn-bg); color: var(--warn); border-radius: 5px; font-size: calc(12px * var(--fs, 1)); text-align: center; }
@media (max-width: 640px) {
  .pending-row { padding: 16px; gap: 12px; }
  .pending-main { flex-basis: 100%; }
  .pending-actions { width: 100%; }
  .pending-actions .button { min-height: 42px; flex: 1 1 auto; }
}
.local-work-note { background: var(--soft); color: var(--text); }
.mobile-bar[hidden] { display: none; }
@media print { body:has(.mobile-bar)::after { display: none; } }
