@font-face {
  font-family: Space Grotesk;
  src: url("/fonts/display.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: IBM Plex Sans;
  src: url("/fonts/body.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: IBM Plex Sans;
  src: url("/fonts/body-semibold.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: IBM Plex Mono;
  src: url("/fonts/mono.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --night: #0b1b2b;
  --ink: #f3f6fa;
  --mut: #b4c3d1;
  --orange: #ff7417;
  --cyan: #19c3e6;
  --line: rgba(202, 223, 239, 0.18);
  --display: "Space Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", monospace;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  min-height: 100svh;
  background: var(--night);
  color: var(--ink);
  font:
    16px/1.5 "IBM Plex Sans",
    system-ui,
    sans-serif;
}
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 12% 0%, #224559 0, transparent 52%),
    radial-gradient(ellipse at 96% 25%, #48382e 0, transparent 38%),
    linear-gradient(145deg, #10283b, #081725 82%);
  pointer-events: none;
}
.atmosphere:after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.17;
  background-image: radial-gradient(#8db8c6 0.8px, transparent 1px);
  background-size: 21px 21px;
  mask-image: linear-gradient(125deg, transparent, #000 65%, transparent);
}
.bar,
main {
  width: min(100% - 40px, 980px);
  margin: auto;
}
.bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  margin-top: max(16px, env(safe-area-inset-top));
  border: 1px solid var(--line);
  border-top-color: #a9cbdf5c;
  border-radius: 18px;
  background: #102334a6;
  backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 9px 30px #030a1229;
}
.brand,
.top-tools,
.back,
.panelhead,
.modalhead,
.itemtop,
.actions,
.submitrow {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  flex: none;
}
.brand b,
.signature {
  font: 700 22px/1 var(--display);
  letter-spacing: 0.025em;
}
.brand b span {
  font-weight: 500;
  color: var(--orange);
}
.brand small {
  display: block;
  color: #ffac76;
  font: 600 9px/1.6 var(--display);
  letter-spacing: 0.25em;
}
.top-tools {
  gap: 14px;
}
.online,
.offline,
.tag,
.mono,
.eyeline,
.ordinal {
  font: 500 12px/1.5 var(--mono);
}
.online:before,
.offline:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6bdbad;
  margin-right: 6px;
}
.offline:before {
  background: #ffc56a;
}
main {
  padding: clamp(20px, 4vw, 48px) 0 max(40px, env(safe-area-inset-bottom));
  view-transition-name: stage;
}
.pagehead {
  margin-bottom: 22px;
}
.eyeline {
  color: #ffac76;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.mono,
.ordinal {
  color: var(--mut);
}
h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
}
h1 {
  font-size: clamp(33px, 5vw, 56px);
  letter-spacing: -0.045em;
  margin: 8px 0 10px;
}
h2 {
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.028em;
  margin: 0 0 12px;
}
h3 {
  font-size: 21px;
}
p {
  margin: 8px 0 14px;
  color: var(--mut);
}
.glass {
  position: relative;
  isolation: isolate;
  border-radius: 24px;
  margin-bottom: 16px;
  box-shadow: 0 12px 38px #020b152f;
}
.glass:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid var(--line);
  border-top-color: #d5e8f252;
  border-radius: inherit;
  background: linear-gradient(145deg, #46607344, transparent 35%), #112433bf;
  backdrop-filter: blur(26px) saturate(140%);
}
.content {
  padding: clamp(20px, 4vw, 36px);
  min-width: 0;
}
.login {
  max-width: 550px;
  margin: 4vh auto;
}
.signature {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
  color: #c0eaf0;
}
.login h1 {
  margin-top: 7px;
}
.hero {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero .content {
  z-index: 1;
}
.heroicon {
  width: clamp(85px, 17vw, 145px);
  margin-right: 6%;
  opacity: 0.79;
  pointer-events: none;
}
button,
.action,
.filepick {
  font:
    600 15px/1.25 "IBM Plex Sans",
    sans-serif;
  border: 1px solid #839ead6e;
  color: var(--ink);
  background: #314959;
  padding: 11px 16px;
  border-radius: 11px;
  cursor: pointer;
  min-height: 48px;
  align-content: center;
  text-decoration: none;
  text-align: center;
}
a {
  color: #a5e7ed;
  text-underline-offset: 4px;
}
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.primary,
.next {
  background: var(--orange);
  color: #17202a;
  border-color: var(--orange);
}
button:hover,
.action:hover {
  filter: brightness(1.12);
}
button:active,
.action:active {
  transform: translateY(1px);
}
:focus-visible {
  outline: 3px solid #8ceaff;
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
.quiet,
.link {
  background: transparent;
  color: #e1edf4;
}
.link {
  border: 0;
  color: #a5e7ed;
  text-align: left;
  padding: 8px 0;
}
.back,
.panelhead,
.modalhead,
.submitrow {
  justify-content: space-between;
}
.back {
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.back a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}
.panelhead h2,
.modalhead h2 {
  margin: 0;
}
.row,
.footgrid a {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  min-height: 62px;
  text-decoration: none;
  border-top: 1px solid var(--line);
  padding: 9px 2px;
}
.row strong {
  font: 600 18px var(--display);
}
.row b,
.footgrid b {
  margin-left: auto;
  color: var(--orange);
  font-size: 24px;
  font-weight: 400;
}
.row span + span,
.tower span {
  color: var(--mut);
  font-size: 14px;
}
.row .tag {
  margin-left: auto;
}
.row .tag + b {
  margin-left: 0;
}
small {
  display: block;
  color: var(--mut);
  font-size: 13px;
  line-height: 1.45;
}
.footgrid,
.feet {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.footgrid a,
.feet a {
  background: #ffffff0c;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 48px;
  min-height: 48px;
  align-content: center;
  text-align: center;
  text-decoration: none;
}
.footgrid a {
  flex: 1;
  padding: 12px 15px;
  min-width: 106px;
}
.feet a[aria-current] {
  background: var(--orange);
  color: var(--night);
  border-color: var(--orange);
  font-weight: 700;
}
.statusline,
.warning {
  border-left: 3px solid var(--orange);
  padding: 7px 12px;
  background: #273746;
  color: #edf5f9;
  margin: 12px 0 18px;
}
.warning p {
  color: inherit;
  margin: 4px 0;
}
.item {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.itemtop {
  margin-bottom: 12px;
}
.ordinal {
  color: #ffac76;
}
.evidence,
.reviewphotos article {
  display: grid;
  grid-template-columns: 1fr minmax(135px, 31%);
  gap: 14px;
  align-items: center;
}
label {
  display: block;
  font-weight: 600;
  margin: 8px 0;
  color: #e3edf4;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  min-height: 48px;
  background: #0d1e2a;
  color: #f2f8fc;
  border: 1px solid #819aa8;
  border-radius: 9px;
  padding: 9px 12px;
  font:
    400 16px "IBM Plex Sans",
    system-ui;
  margin: 5px 0;
}
textarea {
  resize: vertical;
}
.number {
  display: flex;
  align-items: center;
  gap: 8px;
}
.number input {
  width: 100%;
  max-width: 130px;
}
.number span {
  font-size: 13px;
  color: var(--mut);
}
.photo {
  display: grid;
  justify-items: stretch;
  gap: 6px;
}
.capture {
  font-size: 14px;
  padding: 8px;
}
.thumb,
.reviewphoto {
  padding: 0;
  overflow: hidden;
  line-height: 0;
}
.thumb img,
.reviewphoto img {
  width: 100%;
  height: 86px;
  object-fit: cover;
}
.reviewphoto img {
  height: 110px;
}
details {
  margin: 14px 0;
}
summary {
  min-height: 48px;
  align-content: center;
  color: #c8e0ed;
  cursor: pointer;
}
form > .primary {
  width: 100%;
  margin-top: 15px;
}
.submitrow {
  margin-top: 18px;
  flex-wrap: wrap;
}
.submitrow span {
  font-size: 14px;
  color: var(--mut);
}
.reviewgrid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}
.reviewphotos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.reviewphotos article {
  grid-template-columns: 105px 1fr;
  max-width: 100%;
  background: #ffffff08;
  border-radius: 14px;
  padding: 10px;
}
.reviewphotos strong {
  color: #ffd5b4;
}
.actions {
  flex-wrap: wrap;
}
.tag {
  display: inline-block;
  color: #b8dfef;
  background: #194056;
  padding: 5px 8px;
  border-radius: 7px;
}
.tag.aceito {
  color: #a7f5c8;
  background: #1c4138;
}
.tag.devolvido {
  color: #ffd3a4;
  background: #4d362c;
}
.filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}
.filters label,
.filters input {
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 950px) {
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.notice {
  position: fixed;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: #153b4a;
  color: white;
  border: 1px solid #759aab;
  border-radius: 12px;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 10px 16px;
  margin: 0;
  box-shadow: 0 8px 30px #0006;
  pointer-events: none;
  z-index: 8;
}
dialog {
  background: #122737;
  color: var(--ink);
  padding: 0;
  border: 1px solid #8095a6;
  border-radius: 18px;
  width: min(540px, 95vw);
  max-height: 90dvh;
}
dialog::backdrop {
  background: #07121dd9;
}
.modalcontent {
  padding: 20px;
}
video,
.zoom,
iframe {
  width: 100%;
  max-height: 57dvh;
  object-fit: contain;
  background: #09141d;
  border: 0;
  border-radius: 8px;
}
iframe {
  height: 55dvh;
}
.filepick {
  display: inline-block;
  position: relative;
  margin: 8px;
  cursor: pointer;
}
.filepick input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}
.modalhead {
  margin-bottom: 13px;
}
@keyframes recede {
  to {
    opacity: 0;
    transform: scale(0.96);
    filter: blur(3px);
  }
}
@keyframes arrive {
  from {
    opacity: 0.15;
    transform: scale(1.025);
    filter: blur(3px);
  }
}
::view-transition-old(stage) {
  animation: recede 0.18s ease-in both;
}
::view-transition-new(stage) {
  animation: arrive 0.27s ease-out both;
}
::view-transition-group(stage) {
  pointer-events: none;
}
@media (max-width: 650px) {
  .bar,
  main {
    width: calc(100% - 24px);
  }
  .bar {
    padding: 7px 12px;
  }
  .brand b {
    font-size: 19px;
  }
  .top-tools {
    gap: 8px;
  }
  .top-tools .quiet {
    padding: 6px 10px;
  }
  .content {
    padding: 18px;
  }
  .reviewgrid,
  .reviewphotos {
    grid-template-columns: 1fr;
  }
  .hero .heroicon {
    width: 64px;
    margin-right: 10px;
  }
  .eyeLine {
    font-size: 11px;
  }
  .evidence {
    grid-template-columns: minmax(0, 1fr) minmax(100px, 33%);
    gap: 10px;
  }
  .footgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .row {
    gap: 8px;
  }
  .actions > * {
    flex: 1;
  }
  .tag {
    font-size: 11px;
  }
}
@media (max-width: 500px) {
  .filters {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after,
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0;
  border: 0;
  margin: 14px 0;
}
.choices legend {
  margin-bottom: 6px;
  font-weight: 600;
}
.choices label {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 7px 10px;
  gap: 8px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 400;
  cursor: pointer;
}
.choices input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--orange);
}
.choices label:has(:checked) {
  border-color: var(--orange);
}
@media (max-width: 650px) {
  .fieldcontext {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: 0 -5px;
    padding: 4px 5px 2px;
    background: #162b3a;
    border-radius: 8px;
  }
  .fieldcontext h1 {
    font-size: 26px;
    margin: 4px 0;
  }
  .fieldcontext .statusline {
    margin: 3px 0;
    font-size: 13px;
    padding: 4px 8px;
  }
  .item,
  .number input {
    scroll-margin-top: 88px;
  }
}
.fiscal-detail {
  display: grid;
  grid-template-columns: minmax(215px, 0.58fr) minmax(0, 1.42fr);
  gap: 16px;
  align-items: start;
}
.sidequeue .content {
  padding: 18px;
}
.sidequeue .row {
  flex-wrap: wrap;
}
.sidequeue .row .tag {
  margin: 0;
}
.fiscal-detail .reviewphotos {
  grid-template-columns: 1fr;
}
@media (max-width: 760px) {
  .fiscal-detail {
    display: block;
  }
  .sidequeue {
    display: none;
  }
}
.stagepicker,
.gridfilters,
#dayActions .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}
.stagepicker a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
}
.stagepicker [aria-current] {
  border-color: var(--orange);
  background: #423124;
  color: #ffe0c1;
}
.gridfilters label {
  flex: 1 1 135px;
  min-width: 0;
}
.gridfilters input,
.gridfilters select,
select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  color: var(--text);
  background: #172d3b;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px;
}
.towergrid article,
.triage,
.inspection {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.towergrid summary,
.inspection summary,
.triage summary {
  min-height: 48px;
  cursor: pointer;
}
.signal {
  font-size: 0.78rem;
  padding: 4px 8px;
  border-radius: 8px;
}
.signal.amarelo {
  color: #ffe6a6;
  background: #4b391d;
}
.signal.verde {
  color: #bcf7d5;
  background: #214937;
}
.signal.vermelho {
  color: #ffd6d0;
  background: #632e2d;
}
.inspection label {
  margin-bottom: 14px;
}
@media (max-width: 650px) {
  .row.record {
    flex-wrap: wrap;
  }
  .stagepicker a {
    flex: 1;
    justify-content: center;
    padding: 6px 8px;
  }
}
.matrix-head,
.towergrid .matrix-row {
  display: grid;
  align-items: center;
  grid-template-columns: 0.72fr repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.matrix-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #152e40;
  padding: 12px 4px;
  border-radius: 6px;
  color: #f6cfad;
}
.matrix-row b,
.matrix-row small {
  display: block;
}
.matrix-row small {
  font-size: 0.76rem;
}
.towergrid[open] {
  border-color: #a76b45;
}
.towergrid[open] > summary {
  background: #243a47;
}
.today .row {
  margin: 5px 0;
}
.visitform {
  margin-top: 12px;
}
@media (max-width: 650px) {
  .matrix-head,
  .towergrid .matrix-row {
    font-size: 0.77rem;
    gap: 4px;
  }
  .matrix-row small {
    font-size: 0.7rem;
  }
}

.brand {
  color: inherit;
  text-decoration: none;
  border-radius: 8px;
}
.dashboard-controls,
.dashboard-bar {
  display: flex;
  gap: 12px;
  align-items: center;
}
.dashboard-controls {
  align-items: end;
  flex-wrap: wrap;
}
.dashboard-note,
.dashboard-kpi small,
.dashboard-list small {
  color: var(--mut);
}
.dashboard-note {
  font-size: 0.875rem;
}
.dashboard-kpis,
.dashboard-progress {
  display: grid;
  gap: 14px;
}
.dashboard-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 20px 0 14px;
}
.dashboard-kpi {
  border-top: 2px solid var(--cyan);
  padding: 16px;
}
.dashboard-kpi.dashboard-warning {
  border-top-color: #ffc56a;
}
.dashboard-kpi.dashboard-stop {
  border-top-color: #ff9292;
}
.dashboard-kpi h2 {
  color: var(--mut);
  font-size: 0.9rem;
  margin: 0;
}
.dashboard-kpi strong {
  display: block;
  font: 700 clamp(1.45rem, 3vw, 2.35rem) / 1.2 var(--display);
  margin: 6px 0;
}
.dashboard-progress {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#dashboard-indicators > section {
  margin-top: 14px;
}
.dashboard-bar {
  margin-block: 12px;
}
.dashboard-bar > span {
  min-width: 78px;
}
.dashboard-bar strong {
  min-width: 48px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.dashboard-bar meter {
  flex: 1;
  min-width: 0;
  height: 12px;
  background: none;
  --bar-color: var(--cyan);
}
.dashboard-bar meter.planned {
  --bar-color: #9db1c8;
}
.dashboard-bar meter.actual {
  --bar-color: #ff9f64;
}
.dashboard-bar meter::-webkit-meter-bar {
  background: #f6fbff20;
  border: none;
}
.dashboard-bar meter::-webkit-meter-optimum-value {
  background: var(--bar-color);
}
.dashboard-bar meter::-moz-meter-bar {
  background: var(--bar-color);
}
.dashboard-list .row p {
  overflow-wrap: anywhere;
  margin: 4px 0 0;
}
.dashboard-list .row > b {
  white-space: nowrap;
}

@media (max-width: 680px) {
  .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-progress {
    grid-template-columns: 1fr;
  }
  .dashboard-kpi {
    padding: 12px;
  }
}

:root {
  --app-nav-offset: calc(env(safe-area-inset-top) + 72px);
}
html:has(.app-nav:not([hidden])) {
  scroll-padding-top: var(--app-nav-offset);
}
.skip-link {
  position: fixed;
  z-index: 10;
  inset: 8px auto auto 12px;
  transform: translateY(calc(-100% - 16px));
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--night);
}
.skip-link:focus {
  transform: none;
}
.app-nav {
  position: sticky;
  z-index: 5;
  top: max(4px, env(safe-area-inset-top));
  display: flex;
  gap: 8px;
  width: min(100% - 40px, 980px);
  margin: 10px auto 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #102638f5;
  box-shadow: 0 6px 22px #030a1240;
}
.app-nav a,
.section-nav a {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--mut);
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  transition:
    background-color 140ms ease,
    color 140ms ease;
}
.app-nav a {
  flex: 1 1 0;
}
.nav-icon {
  display: none;
}
.app-nav a:hover,
.section-nav a:hover {
  background: #f3f6fa12;
  color: var(--ink);
}
.app-nav a:active,
.section-nav a:active {
  background: #f3f6fa26;
}
.app-nav a[aria-current],
.section-nav a[aria-current] {
  border-color: var(--orange);
  background: #ff741722;
  color: #ffe4d0;
}
.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.section-nav a {
  border-color: var(--line);
}
.grade-results {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.grade-results p {
  margin: 0;
  color: var(--mut);
}
#cut-status {
  color: var(--mut);
}
.matrix-head {
  top: var(--app-nav-offset);
}
@media (max-width: 650px) {
  .app-nav {
    width: calc(100% - 24px);
  }
  .app-nav a {
    padding-inline: 3px;
    font-size: clamp(0.78rem, 3.4vw, 1rem);
  }
  .fieldcontext {
    top: var(--app-nav-offset);
  }
}
@media (max-width: 650px),
  (max-height: 500px) and (hover: none) and (pointer: coarse) {
  html:has(.app-nav-fiscal:not([hidden])) {
    --app-nav-offset: max(4px, env(safe-area-inset-top));
    --fiscal-tab-height: max(60px, 3.75rem);
    --fiscal-nav-height: calc(
      var(--fiscal-tab-height) + 9px + env(safe-area-inset-bottom)
    );
    scroll-padding-bottom: calc(var(--fiscal-nav-height) + 8px);
  }
  .app-nav-fiscal {
    position: fixed;
    inset: auto 0 0;
    width: auto;
    margin: 0;
    padding: 4px max(8px, env(safe-area-inset-right))
      calc(4px + env(safe-area-inset-bottom))
      max(8px, env(safe-area-inset-left));
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -6px 22px #030a1240;
  }
  .app-nav-fiscal a {
    align-content: center;
    gap: 4px;
    min-height: var(--fiscal-tab-height);
    padding: 4px 2px;
    font-size: 0.8125rem;
    line-height: 1.2;
  }
  .app-nav-fiscal a:focus-visible {
    outline-offset: -3px;
  }
  .app-nav-fiscal .nav-icon {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .app-nav-fiscal:not([hidden]) ~ main {
    padding-bottom: calc(var(--fiscal-nav-height) + 24px);
  }
  .app-nav-fiscal:not([hidden]) ~ .notice {
    bottom: calc(var(--fiscal-nav-height) + 8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .app-nav a,
  .section-nav a {
    transition: none;
  }
}

.front-filters {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}
.front-filters legend {
  margin-bottom: 8px;
  padding: 0;
  font-weight: 600;
}
.front-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.front-filter-options button {
  min-width: 44px;
  padding-inline: 12px;
  background: #243b4c;
}
.front-filter-options [aria-pressed="true"] {
  border-color: var(--orange);
  box-shadow: inset 0 -2px var(--orange);
  color: #ffe4d0;
}

.dashboard-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 14px;
  margin: 20px 0 14px;
}
.dashboard-overview .glass {
  margin: 0;
}
.dashboard-overview .dashboard-kpis {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}
.dashboard-gap {
  grid-column: 1 / -1;
}
.tower-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(92px, 40%);
  align-items: center;
  gap: 8px;
  padding: clamp(16px, 3vw, 28px);
}
.tower-summary h2 {
  margin: 0;
  font-size: clamp(1.05rem, 2.6vw, 1.55rem);
}
.tower-summary strong {
  display: block;
  margin-block: 6px;
  font: 700 clamp(2rem, 5vw, 3.75rem) / 1.04 var(--display);
  letter-spacing: -0.04em;
  color: var(--ink);
}
.tower-summary p {
  margin: 6px 0;
}
.tower-summary small {
  color: var(--mut);
}
.tower-graphic,
.front-frame {
  display: block;
  width: 100%;
  height: clamp(112px, 25vw, 188px);
  fill: none;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tower-inactive {
  stroke: #8798a6;
}
.tower-accepted,
.tower-level {
  stroke: var(--cyan);
}
.dashboard-progress {
  align-items: start;
}
.front-legend,
.front-progress header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.front-legend {
  font-size: 0.85rem;
  margin-top: 8px;
}
.front-legend span::before {
  content: "";
  display: inline-block;
  width: 0.65em;
  height: 0.65em;
  border-radius: 2px;
  background: var(--cyan);
  margin-inline-end: 5px;
}
.front-legend span + span::before {
  background: #ffc56a;
}
.front-progress {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.front-progress header {
  justify-content: space-between;
}
.front-progress h3 {
  margin: 0;
}
.front-progress header strong {
  color: #a5e7ed;
}
.front-tower {
  display: grid;
  grid-template-columns: 55px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  margin-top: 8px;
}
.front-frame {
  height: 68px;
  stroke-width: 3;
}
.front-feet {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 5px;
  list-style: none;
  text-align: center;
  padding: 0;
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.35;
}
.front-feet li {
  min-width: 0;
}
.front-feet span,
.front-feet small {
  display: block;
}
.front-feet svg {
  display: block;
  width: min(100%, 44px);
  height: 24px;
  margin: 4px auto;
}
.foot-base {
  fill: #637580;
  stroke: #9aaab4;
}
.foot-base.has-acceptance {
  stroke: var(--cyan);
}
.foot-base.has-progress {
  stroke: #ffc56a;
}
.foot-accepted {
  fill: var(--cyan);
}
.foot-pending {
  fill: #ffc56a;
}
.foot-more {
  color: #ffd69c;
}
@media (max-width: 680px) {
  .dashboard-overview {
    grid-template-columns: minmax(0, 1fr);
  }
  .dashboard-overview .dashboard-kpis {
    gap: 8px;
  }
}
@media (max-width: 390px) {
  .front-tower {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 4px;
  }
}

.weather-panel {
  margin: 12px 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #152b3b;
}
.weather-panel summary {
  min-height: 48px;
  align-content: center;
  padding: 8px 14px;
  cursor: pointer;
  color: #a5e7ed;
  font-weight: 600;
}
.weather-panel[open] > summary {
  border-bottom: 1px solid var(--line);
}
.weather-body {
  padding: 0 14px 12px;
}
.weather-body label {
  max-width: 240px;
}
.weather-current,
.weather-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}
.weather-current p {
  margin: 2px 0 4px;
}
.weather-current strong {
  color: var(--ink);
  font: 700 1.5rem/1.2 var(--display);
}
.weather-time,
.weather-status,
.weather-actions small {
  font-size: 0.875rem;
}
.weather-hours {
  width: 100%;
  border-collapse: collapse;
  margin-block: 10px 12px;
  font-size: 0.85rem;
  text-align: start;
}
.weather-hours caption,
.weather-hours th,
.weather-hours td {
  text-align: left;
  padding: 5px 4px;
}
.weather-hours caption {
  padding-inline: 0;
  font-weight: 600;
}
.weather-hours tr {
  border-bottom: 1px solid var(--line);
}

.map-controls {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 8px;
}
.map-controls label {
  min-width: min(190px, 100%);
  margin: 0;
}
.work-map {
  isolation: isolate;
  height: clamp(280px, 55svh, 540px);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.work-map.leaflet-container {
  background:
    repeating-linear-gradient(0deg, #36536540 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, #36536540 0 1px, #102638 1px 32px);
}
.map-transmission-line {
  filter: drop-shadow(0 0 1px white);
}
.tower-idle {
  --tower-color: #a7b1bc;
}
.tower-late {
  --tower-color: #ff756b;
}
.tower-onTime {
  --tower-color: #69d6a7;
}
.tower-noPlan {
  --tower-color: #ffc56a;
}
.map-tower-marker {
  display: grid;
  place-items: center;
  color: #071925;
}
.map-tower-marker::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px solid #152535;
  border-radius: 50%;
  background: var(--tower-color);
}
.map-tower-marker span {
  display: none;
  position: relative;
  left: 14px;
  bottom: 13px;
  padding: 0 4px;
  border: 1px solid #152535;
  border-radius: 4px;
  background: var(--tower-color);
  font: 700 11px/1.5 var(--mono);
}
.map-show-labels .map-tower-marker span,
.map-tower-marker.tower-selected span,
.map-tower-marker:focus-visible span {
  display: block;
}
.map-tower-marker.tower-selected::before {
  box-shadow:
    0 0 0 3px #ffffff,
    0 0 0 5px #114c69;
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  list-style: none;
  padding: 0;
  margin: 12px 0;
}
.map-legend i,
.map-status-label i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--tower-color);
}
.map-source,
.map-legend,
.map-status-label {
  color: var(--mut);
  font-size: 0.85rem;
}
#map-status:empty,
#map-base-status:empty {
  display: none;
}
#map-status:empty + .work-map {
  margin-top: 12px;
}
.map-tower-details {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.map-tower-details h2 {
  margin: 0;
}
.map-tower-details .panelhead {
  flex-wrap: wrap;
}
@media (max-width: 400px) {
  .app-nav-fiscal {
    gap: 4px;
  }
  .app-nav-fiscal a {
    font-size: clamp(0.75rem, 3.25vw, 0.8125rem);
  }
}

#map-fronts {
  margin-bottom: 14px;
}
