:root {
  color-scheme: light;
  --bg: #eef3f8;
  --surface: #ffffff;
  --surface-muted: #e7edf4;
  --surface-strong: #07345c;
  --text: #122033;
  --muted: #647284;
  --line: #cdd8e4;
  --accent: #0d4e86;
  --accent-strong: #07345c;
  --accent-soft: #dceafa;
  --success: #1f7a4d;
  --success-strong: #155c39;
  --warning: #b66a16;
  --danger: #b33d3d;
  --preventive: #315fba;
  --shadow: 0 14px 34px rgba(7, 52, 92, 0.11);
  --font-ui: "Segoe UI", Tahoma, Arial, sans-serif;
  --font-brand: Georgia, "Times New Roman", serif;
  --font-data: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

input,
select,
button,
textarea {
  min-width: 0;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #ffffff 0, var(--bg) 210px),
    var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
}

a {
  color: inherit;
}

.login-body {
  display: grid;
  place-items: center;
  overflow-x: hidden;
  padding: clamp(14px, 3vw, 36px);
  background:
    linear-gradient(135deg, #f8fbfd 0%, #e9f0f6 48%, #dfe9f2 100%),
    var(--bg);
}

.login-page {
  display: grid;
  place-items: center;
  width: min(100%, 1120px);
  margin: 0;
}

.login-panel {
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(520px, 1.18fr);
  gap: 0;
  width: 100%;
  min-height: min(660px, calc(100vh - 72px));
  overflow: hidden;
  border: 1px solid rgba(92, 122, 148, 0.32);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 28px 70px rgba(7, 52, 92, 0.18);
}

.login-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 42px;
  min-width: 0;
  padding: clamp(38px, 5vw, 68px);
  border-right: 1px solid #477ba7;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.13), transparent 28%),
    linear-gradient(160deg, #286a99 0%, #174f7a 47%, #07345c 100%);
  color: #ffffff;
  box-shadow:
    inset 1px 0 rgba(255, 255, 255, 0.22),
    inset -1px 0 rgba(3, 28, 50, 0.28);
}

.login-intro::after {
  content: "";
  position: absolute;
  right: clamp(34px, 5vw, 68px);
  bottom: 178px;
  left: clamp(34px, 5vw, 68px);
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.creator-mark {
  position: absolute;
  right: clamp(34px, 5vw, 68px);
  bottom: 30px;
  width: clamp(72px, 7vw, 94px);
  height: auto;
  opacity: 0.86;
  filter: drop-shadow(0 5px 10px rgba(4, 35, 61, 0.3));
  pointer-events: none;
  user-select: none;
}

.login-logo {
  display: none;
}

.login-creator-seal {
  width: clamp(92px, 11vw, 132px);
  height: auto;
  align-self: flex-start;
  filter: drop-shadow(0 12px 24px rgba(2, 23, 42, 0.3));
  user-select: none;
}

.login-intro .brand-mark {
  display: grid;
  width: clamp(148px, 15vw, 184px);
  align-self: flex-start;
}

.login-intro .status-kicker {
  color: rgba(255, 255, 255, 0.76);
}

.login-panel .brand-mark {
  width: clamp(142px, 17vw, 190px);
  background: transparent;
}

.login-panel h1 {
  max-width: none;
  color: #ffffff;
  font-size: clamp(2.75rem, 4.5vw, 4.6rem);
  line-height: 0.92;
  white-space: nowrap;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.2), 0 12px 32px rgba(2, 25, 45, 0.2);
}

.login-tagline {
  max-width: 36ch;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.94rem, 1.3vw, 1.08rem);
  font-weight: 600;
  line-height: 1.55;
}

.login-tagline span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92em;
}

.login-workspace {
  display: grid;
  align-content: center;
  gap: 30px;
  min-width: 0;
  padding: clamp(42px, 7vw, 92px);
  background:
    linear-gradient(180deg, rgba(242, 247, 251, 0.7), transparent 160px),
    #ffffff;
}

.login-workspace-heading {
  display: grid;
  gap: 7px;
  max-width: 520px;
}

.login-workspace-kicker {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.login-workspace-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1;
}

.login-workspace-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.login-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 18px 16px;
  max-width: 620px;
}

.login-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.84rem;
  font-weight: 800;
}

.login-form label:nth-of-type(3) {
  grid-column: 1 / -1;
}

.login-form input,
.login-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 48px;
  padding: 13px 14px;
  background: var(--surface-muted);
  color: var(--text);
  font: inherit;
}

.login-form .primary-button {
  grid-column: 1 / -1;
  min-height: 50px;
  padding-inline: 26px;
  white-space: nowrap;
}

.login-workspace .validation-box {
  max-width: 620px;
  margin-top: 0;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
}

.login-about {
  max-width: 620px;
  border: 1px solid rgba(205, 216, 228, 0.9);
  border-radius: 8px;
  background: rgba(248, 251, 253, 0.9);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.login-about summary {
  cursor: pointer;
  padding: 12px 14px;
  color: var(--accent-strong);
  font-weight: 900;
}

.login-about p {
  margin: 0;
  padding: 0 14px 12px;
}

.login-about p + p {
  padding-top: 0;
}

.approval-page {
  display: grid;
  width: 100%;
  box-sizing: border-box;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.approval-panel {
  display: grid;
  box-sizing: border-box;
  width: min(760px, 100%);
  max-width: 100%;
  gap: 18px;
  border: 1px solid rgba(13, 78, 134, 0.18);
  border-radius: 14px;
  padding: clamp(22px, 4vw, 36px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 24px 60px rgba(4, 32, 57, 0.18);
}

.approval-mark {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-data);
  font-size: 1.8rem;
  font-weight: 950;
}

.approval-panel h1 {
  margin: 2px 0 8px;
  color: var(--accent-strong);
  font-size: clamp(2rem, 6vw, 3.8rem);
  line-height: 0.95;
}

.approval-panel p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-weight: 820;
  line-height: 1.5;
}

.approval-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.approval-steps article {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px;
  background: var(--surface-muted);
}

.approval-steps span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: var(--font-data);
  font-weight: 950;
}

.approval-steps strong {
  color: var(--text);
  font-size: 0.92rem;
}

.approval-steps small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.approval-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.terms-page {
  display: grid;
  width: 100%;
  box-sizing: border-box;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.terms-panel {
  display: grid;
  box-sizing: border-box;
  width: min(860px, calc(100vw - 48px));
  max-width: 100%;
  gap: 16px;
  border: 1px solid rgba(13, 78, 134, 0.18);
  border-radius: 14px;
  padding: clamp(20px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(4, 32, 57, 0.18);
}

.terms-panel h1 {
  margin: 2px 0 8px;
  color: var(--accent-strong);
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 0.95;
}

.terms-lead {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-weight: 820;
  line-height: 1.45;
}

.terms-scroll-box {
  display: grid;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  gap: 12px;
  max-height: min(48vh, 430px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  background: var(--surface-muted);
  color: var(--text);
  line-height: 1.55;
  -webkit-overflow-scrolling: touch;
}

.terms-scroll-box:focus {
  outline: 3px solid rgba(13, 78, 134, 0.16);
  outline-offset: 2px;
}

.terms-scroll-box h2,
.terms-scroll-box p {
  margin: 0;
}

.terms-scroll-box h2 {
  color: var(--accent-strong);
  font-size: 1.2rem;
}

.terms-scroll-box p,
.terms-scroll-box strong {
  font-size: 0.94rem;
}

.terms-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.terms-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.login-form input:focus,
.login-form select:focus {
  outline: 2px solid rgba(13, 78, 134, 0.2);
  border-color: var(--accent);
  background: #ffffff;
}

.reliability-summary strong {
  overflow-wrap: anywhere;
}

#lastSyncError {
  max-width: 28ch;
  font-size: 0.82rem;
  line-height: 1.25;
}

.conflict-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.conflict-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.conflict-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.conflict-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e2c48f;
  border-radius: 6px;
  background: #fff9ec;
}

.conflict-item span,
.conflict-item small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.audit-page {
  display: grid;
  gap: 18px;
}

.audit-hero {
  align-items: center;
}

.audit-filter-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 12px;
  align-items: end;
}

.audit-filter-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.audit-filter-form input,
.audit-filter-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: var(--surface-muted);
  color: var(--text);
  font: inherit;
}

.audit-search-field {
  grid-column: span 2;
}

.audit-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.audit-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(420px, 1.22fr);
  gap: 16px;
  align-items: start;
}

.audit-list {
  display: grid;
  gap: 8px;
  max-height: 720px;
  overflow-y: auto;
  padding-right: 4px;
}

.audit-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 10px;
  width: 100%;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.audit-card:hover,
.audit-card.is-selected {
  border-color: var(--accent);
  box-shadow: 0 5px 16px rgba(7, 52, 92, 0.1);
}

.audit-card.is-selected {
  background: var(--accent-soft);
}

.audit-card > strong,
.audit-card > span:not(.audit-action),
.audit-card > small {
  grid-column: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-card > strong {
  font-size: 0.92rem;
}

.audit-card > span:not(.audit-action),
.audit-card > small {
  color: var(--muted);
  font-size: 0.76rem;
}

.audit-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  min-width: 64px;
  border-radius: 4px;
  padding: 4px 7px;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.audit-action-insert {
  background: #dff3e8;
  color: var(--success-strong);
}

.audit-action-update {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.audit-action-delete {
  background: #f9e3e3;
  color: var(--danger);
}

.audit-detail-panel {
  position: sticky;
  top: 150px;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.audit-empty-detail {
  display: grid;
  place-content: center;
  gap: 6px;
  min-height: 270px;
  color: var(--muted);
  text-align: center;
}

.audit-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.audit-detail-head h2 {
  margin: 4px 0 0;
}

.audit-meta-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.audit-meta-list div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-muted);
}

.audit-meta-list dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.audit-meta-list dd {
  overflow-wrap: anywhere;
  margin: 4px 0 0;
  font-size: 0.82rem;
  font-weight: 800;
}

.audit-change-list {
  display: grid;
  gap: 10px;
}

.audit-change-item {
  display: grid;
  grid-template-columns: minmax(90px, 0.3fr) repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.audit-change-item > strong {
  align-self: center;
  overflow-wrap: anywhere;
  text-transform: capitalize;
}

.audit-change-item div {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px;
}

.audit-change-item span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.audit-change-item code {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-size: 0.76rem;
}

.audit-raw-data {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.audit-raw-data summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 800;
}

.audit-raw-data pre {
  max-height: 260px;
  overflow: auto;
  border-radius: 6px;
  padding: 10px;
  background: #172435;
  color: #eaf1f7;
  font-size: 0.72rem;
  white-space: pre-wrap;
}

.app-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "title title account";
  align-items: center;
  gap: 7px 12px;
  overflow: hidden;
  height: 72px;
  min-height: 72px;
  max-height: 72px;
  padding: 8px clamp(10px, 2vw, 22px);
  border-bottom: 1px solid #3e719e;
  background: rgb(35, 91, 132);
  box-shadow:
    inset 0 2px rgba(255, 255, 255, 0.26),
    inset 0 -2px rgba(4, 35, 61, 0.34),
    0 5px 14px rgba(7, 52, 92, 0.16);
}

.process-nav-shell {
  position: sticky;
  top: 0;
  z-index: 21;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 6px clamp(10px, 2vw, 22px);
  border-bottom: 1px solid #c8d6e4;
  background: rgba(239, 245, 250, 0.96);
  box-shadow: 0 5px 14px rgba(7, 52, 92, 0.08);
  backdrop-filter: blur(8px);
}

.app-header > .process-nav {
  display: none;
}

.process-nav-shell > .process-nav {
  grid-column: 1 / -1;
}

.app-back-button {
  grid-column: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  justify-self: start;
  width: max-content;
  min-height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 3px 8px;
  background: rgba(4, 35, 61, 0.45);
  color: #ffffff;
  font-family: var(--font-data);
  font-size: 0.7rem;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.app-alert-ticker {
  grid-column: 2;
  min-width: 0;
  height: 28px;
  overflow: hidden;
  border: 1px solid rgba(12, 103, 166, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(232, 241, 249, 0.92)),
    var(--surface);
  color: var(--accent-strong);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.72);
}

.app-alert-ticker[hidden] {
  display: none;
}

.app-alert-ticker.is-empty {
  opacity: 0.78;
}

.app-alert-ticker__viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.app-alert-ticker__track {
  position: absolute;
  top: 50%;
  left: 0;
  max-width: none;
  white-space: nowrap;
  color: #111827;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  transform: translate3d(100%, -50%, 0);
  animation: app-alert-ticker-slide 14s linear 1 both;
  will-change: transform;
}

.app-alert-ticker.is-empty .app-alert-ticker__track {
  left: 50%;
  color: var(--muted);
  transform: translate(-50%, -50%);
  animation: none;
}

@keyframes app-alert-ticker-slide {
  from {
    transform: translate3d(var(--ticker-start, 100vw), -50%, 0);
  }
  to {
    transform: translate3d(calc(-100% - 24px), -50%, 0);
  }
}

.app-back-button span {
  font-size: 1.05rem;
  line-height: 1;
}

.app-back-button:hover {
  border-color: rgba(7, 52, 92, 0.42);
  background: #ffffff;
  color: var(--accent-strong);
  box-shadow: 0 6px 14px rgba(7, 52, 92, 0.14);
}

.brand-block {
  display: contents;
}

.brand-block::after {
  content: none;
}

.brand-mark {
  grid-area: logo;
  display: none;
  gap: 2px;
  width: clamp(96px, 10vw, 126px);
  min-width: 96px;
  transform: skewX(-8deg);
  color: #ffffff;
}

.brand-mark strong {
  display: block;
  font-family: Arial Black, Impact, var(--font-ui);
  font-size: clamp(0.78rem, 1vw, 1rem);
  font-weight: 900;
  line-height: 0.9;
}

.brand-mark span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  border-radius: 4px;
  padding: 2px 6px;
  background: #ffffff;
  color: var(--accent-strong);
  font-family: var(--font-data);
  font-size: clamp(0.44rem, 0.62vw, 0.56rem);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  grid-area: title;
  margin-bottom: 0;
  color: #ffffff;
  font-family: var(--font-ui);
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.app-header h1 {
  grid-area: title;
  justify-self: start;
  width: auto;
  min-width: 9ch;
  max-width: min(42vw, 460px);
  overflow: hidden;
  font-size: clamp(1.18rem, 1.75vw, 1.7rem);
  color: #ffffff;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22), 0 0 16px rgba(255, 255, 255, 0.12);
}

.site-title {
  max-width: 11ch;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.site-title-login {
  max-width: 8ch;
}

h2,
h3 {
  font-family: var(--font-ui);
  letter-spacing: 0;
}

main {
  width: min(1180px, calc(100% - 36px));
  margin: 28px auto 56px;
}

.search {
  display: grid;
  gap: 6px;
  width: min(360px, 100%);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.search input,
.search select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  font-weight: 400;
  background: var(--surface-muted);
}

.header-actions {
  display: flex;
  align-items: end;
  gap: 12px;
}

.header-actions.compact {
  align-items: center;
}

.process-nav {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  gap: 4px;
  border: 1px solid #c4d2df;
  border-radius: 8px;
  padding: 2px;
  background: rgba(231, 237, 244, 0.92);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.process-nav::-webkit-scrollbar {
  height: 4px;
}

@media (max-width: 1280px) {
  .app-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .account-menu {
    max-width: 100%;
  }
}

.process-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 4px 8px;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.process-link span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  min-height: 19px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent-strong);
  font-size: 0.7rem;
}

.process-link.active {
  border-color: var(--accent);
  background: var(--surface-strong);
  color: #ffffff;
}

.process-link.active span {
  background: #0c67a6;
  color: #ffffff;
}

.account-menu {
  grid-area: account;
  justify-self: end;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 4px;
  min-width: 0;
  width: min(42vw, 430px);
  max-width: 430px;
  height: 56px;
  min-height: 56px;
  max-height: 56px;
  overflow: visible;
  padding: 4px 5px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(4, 31, 54, 0.42);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.14);
}

.account-role {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 1px 5px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-family: var(--font-data);
  font-size: 0.62rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-access-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  text-decoration: none;
}

.account-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 4px;
  min-width: 0;
  min-height: 24px;
  opacity: 1;
  transition: opacity 120ms ease;
}

.account-actions[data-ready="false"] {
  opacity: 0;
  pointer-events: none;
}

.access-page {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.access-hero {
  margin-bottom: 18px;
}

.access-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.1fr);
  gap: 18px;
  margin-top: 18px;
}

.access-editor-panel,
.access-list-panel,
.access-denied-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.access-editor-panel,
.access-list-panel {
  padding: 20px;
}

.access-editor-stack {
  align-self: start;
  display: grid;
  gap: 18px;
  position: sticky;
  top: 18px;
}

.access-editor-panel {
  align-self: start;
}

.access-form,
.access-form-grid {
  display: grid;
  gap: 14px;
}

.access-flow-note {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(14, 88, 137, 0.18);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 12px 14px;
  background: #eef5fb;
}

.access-flow-note strong {
  color: var(--accent-strong);
  font-family: var(--font-data);
  font-size: 0.86rem;
}

.access-flow-note span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.42;
}

.access-form label,
.access-member-card > label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.access-form input,
.access-form select,
.access-member-card select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface-muted);
  color: var(--text);
  font: inherit;
}

.permission-fieldset {
  min-width: 0;
  margin: 4px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.permission-fieldset legend {
  padding: 0 7px;
  color: var(--accent-strong);
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 900;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.permission-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--surface-muted);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
}

.permission-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.access-form-actions,
.access-card-actions,
.access-list-head,
.access-member-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.access-list-head h2,
.access-member-summary strong {
  margin: 0;
}

.access-member-list {
  display: grid;
  gap: 10px;
}

.access-member-card {
  display: grid;
  gap: 13px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 15px;
  background: var(--surface-muted);
}

.access-member-summary > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.access-member-summary span,
.access-expiry {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-active-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
}

.access-active-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--success);
}

.access-permission-details {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.access-permission-details summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 900;
}

.access-permission-details .permission-grid {
  margin-top: 10px;
}

.access-pending-head {
  margin-top: 28px;
}

.access-invite-card {
  border-left-color: var(--warning);
}

.access-denied-panel {
  width: min(620px, calc(100% - 32px));
  margin: 48px auto;
  padding: 28px;
}

.access-denied-panel h2 {
  margin: 8px 0;
}

.access-denied-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.account-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 6px;
  min-width: 0;
  max-width: none;
  gap: 1px;
}

.account-label {
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-data);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-menu span {
  overflow: hidden;
  color: #ffffff;
  font-family: var(--font-data);
  font-size: 0.74rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu .row-action {
  min-height: 24px;
  border-color: rgba(179, 61, 61, 0.25);
  background: #fff7f7;
  color: var(--danger);
  font-weight: 900;
  padding: 3px 6px;
  font-size: 0.68rem;
}

.cloud-status-button {
  grid-column: 3;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 28px;
  max-width: 160px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.cloud-status-button:hover {
  border-color: var(--accent);
}

.cloud-status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--muted);
}

.cloud-status-button[data-state="synced"] .cloud-status-dot {
  background: var(--success);
}

.cloud-status-button[data-state="syncing"] .cloud-status-dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(12, 103, 166, 0.14);
  animation: cloud-status-pulse 1s ease-in-out infinite;
}

.cloud-status-button[data-state="pending"] .cloud-status-dot {
  background: var(--warning);
}

.cloud-status-button[data-state="error"] .cloud-status-dot {
  background: var(--danger);
}

.cloud-status-button[data-state="offline"] .cloud-status-dot {
  background: var(--muted);
}

@keyframes cloud-status-pulse {
  50% {
    opacity: 0.45;
  }
}

.cloud-status-panel {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 24, 40, 0.58);
}

.cloud-status-panel[hidden] {
  display: none;
}

.cloud-status-card {
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(5, 24, 40, 0.28);
}

.cloud-status-panel__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 14px;
}

.cloud-status-panel__head span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cloud-status-panel__head h2 {
  margin: 3px 0 0;
}

.cloud-status-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
}

.cloud-status-details {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0 20px;
}

.cloud-status-details > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.cloud-status-details dt {
  font-weight: 900;
}

.cloud-status-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
}

.cloud-status-panel__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 14px 20px 20px;
}

.cloud-status-tools-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.summary article {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.summary strong {
  font-size: 1.8rem;
}

.summary span,
dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-button,
.back-link,
.history-link,
.primary-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.filter-button.active,
.history-link,
.primary-button {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.primary-button:disabled {
  border-color: var(--line);
  background: var(--surface-muted);
  color: var(--muted);
  cursor: not-allowed;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.equipment-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.photo-link {
  display: block;
  background: var(--surface-muted);
}

.equipment-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.equipment-id {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

.criticality {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.criticality.alta {
  background: #fde8e5;
  color: var(--danger);
}

.criticality.media {
  background: #fff0dc;
  color: var(--warning);
}

.card-body h2 {
  margin-bottom: 0;
  font-size: 1.16rem;
  line-height: 1.2;
}

dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.history-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  background: var(--surface);
}

.history-layout {
  display: grid;
  gap: 18px;
}

.history-hero,
.history-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.history-hero {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px;
}

.history-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: var(--surface-muted);
}

.history-photo-block {
  display: grid;
  align-content: start;
  gap: 10px;
}

.equipment-photo-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.equipment-photo-picker .observation-photo-button,
.equipment-photo-picker .row-action {
  flex: 1 1 96px;
  min-height: 34px;
  padding-inline: 10px;
}

.history-meta {
  color: var(--muted);
}

.history-hero-content {
  display: grid;
  gap: 8px;
}

.history-pdf-button {
  justify-self: start;
  margin-top: 8px;
}

.equipment-note-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
  max-width: 620px;
}

.equipment-note-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.84rem;
  font-weight: 800;
}

.equipment-note-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: var(--surface-muted);
  color: var(--text);
  font: inherit;
}

.document-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 720px;
}

.document-summary-card {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-muted);
}

.document-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.document-summary-head span {
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.document-summary-head strong {
  color: var(--accent-strong);
  font-family: var(--font-data);
  font-size: 0.95rem;
}

.document-summary-card p {
  min-height: 38px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.document-summary-card .filter-button {
  justify-self: start;
  min-height: 34px;
  padding: 8px 11px;
}

.history-documents-summary {
  display: grid;
  gap: 10px;
  width: 100%;
}

.history-documents-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.history-documents-head span {
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.document-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  max-width: none;
}

.history-documents-summary .document-summary-card {
  gap: 7px;
  padding: 10px;
}

.history-documents-summary .document-summary-card p {
  min-height: 0;
  font-size: 0.8rem;
}

.document-card .document-summary-head strong {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.72rem;
  white-space: nowrap;
}

.document-summary-card.is-loading {
  pointer-events: none;
}

.document-summary-card.is-loading .document-summary-head strong {
  background: #e9eff5;
  color: #64748b;
}

.document-loading-line {
  display: block;
  width: min(100%, 150px);
  height: 9px;
  border-radius: 999px;
  background: #dce5ee;
  animation: document-loading-pulse 1.2s ease-in-out infinite alternate;
}

@keyframes document-loading-pulse {
  from { opacity: 0.45; }
  to { opacity: 1; }
}

.document-editor-panel {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 28px);
  background: rgba(6, 24, 42, 0.55);
  backdrop-filter: blur(3px);
}

.document-editor-panel[hidden] {
  display: none;
}

.document-editor-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(920px, 100%);
  max-height: min(760px, calc(100dvh - 32px));
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.46);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.34);
}

.status-history-editor-panel {
  position: fixed;
  inset: 0;
  z-index: 82;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 28px);
  background: rgba(6, 24, 42, 0.55);
  backdrop-filter: blur(3px);
}

.status-history-editor-panel[hidden] {
  display: none;
}

.status-history-editor-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(700px, 100%);
  max-height: min(760px, calc(100dvh - 32px));
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.46);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.34);
}

.status-history-editor-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  overflow-y: auto;
  padding: 18px 20px;
}

.status-history-editor-form label:nth-of-type(4),
.status-history-editor-form .observation-actions {
  grid-column: 1 / -1;
}

.document-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #edf4fb);
}

.document-editor-head span {
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.document-editor-head h2 {
  margin: 2px 0 0;
  color: var(--text);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.1;
}

.document-editor-head .modal-close-button {
  flex: 0 0 42px;
  border-color: #adc2d5;
  background: #ffffff;
  color: #164f7b;
  box-shadow: 0 2px 8px rgba(15, 55, 86, 0.12);
}

.document-editor-head .modal-close-button:hover,
.document-editor-head .modal-close-button:focus-visible {
  border-color: #164f7b;
  background: #164f7b;
  color: #ffffff;
}

.document-editor-dialog .document-form {
  min-height: 0;
  overflow: auto;
  padding: 18px 20px 20px;
}

body.document-modal-open {
  overflow: hidden;
}

.history-panel {
  padding: 22px;
}

.history-filter-row,
.observation-form,
.item-transfer-form,
.document-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.document-editor-dialog .document-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  margin-bottom: 0;
}

.document-editor-dialog #documentFieldHint,
.document-editor-dialog .document-note-field,
.document-editor-dialog .observation-photo-picker,
.document-editor-dialog .observation-photo-preview,
.document-editor-dialog #documentFeedback,
.document-editor-dialog .observation-actions {
  grid-column: 1 / -1;
}

.document-editor-dialog #documentFieldHint {
  border: 1px solid #c7d7e6;
  border-radius: 8px;
  padding: 10px 12px;
  background: #eef5fc;
  color: #24445f;
  font-weight: 700;
}

.document-editor-dialog .observation-actions {
  position: sticky;
  bottom: -20px;
  align-items: center;
  justify-content: flex-end;
  margin: 6px -20px -20px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.history-filter-row label,
.observation-form label,
.item-transfer-form label,
.document-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.85rem;
  font-weight: 800;
}

.history-filter-row input,
.history-filter-row select,
.observation-form input,
.observation-form select,
.observation-form textarea,
.item-transfer-form input,
.item-transfer-form textarea,
.document-form input,
.document-form select,
.document-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: var(--surface-muted);
  color: var(--text);
  font: inherit;
  font-weight: 400;
}

.observation-note-field,
.item-transfer-note-field,
.document-note-field,
.observation-actions,
#observationPhotoName,
#documentFeedback {
  grid-column: 1 / -1;
}

.observation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.observation-photo-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  cursor: pointer;
}

.observation-photo-button input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.observation-form .observation-photo-button.primary-button {
  color: #ffffff;
}

.observation-form .observation-photo-button.filter-button {
  color: var(--text);
}

.observation-photo-picker,
.observation-photo-preview {
  grid-column: 1 / -1;
}

.observation-photo-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.observation-photo-preview {
  width: min(100%, 460px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.observation-photo-preview img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.observation-list {
  display: grid;
  gap: 12px;
}

.observation-card {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-muted);
}

.observation-card.is-duplicate {
  border-left-color: var(--warning);
  opacity: 0.82;
}

.observation-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.observation-card h3,
.observation-card p {
  margin: 0;
}

.observation-card p,
.observation-card small {
  color: var(--muted);
}

.item-transfer-card {
  border-left-color: var(--preventive);
}

.document-card {
  border-left-color: var(--success);
}

.unified-timeline .status-timeline-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}

.unified-timeline .status-timeline-card p,
.unified-timeline .status-timeline-card small {
  margin: 0;
  color: var(--muted);
}

.timeline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.timeline-badge-observation {
  background: #e8eef8;
  color: var(--accent-strong);
}

.timeline-badge-transfer {
  background: #f1e7ff;
  color: #61409a;
}

.history-readonly .unified-timeline .timeline-actions {
  display: flex;
}

.document-status-valido {
  background: #dcefe5;
  color: var(--success-strong);
}

.document-status-pendente,
.document-status-atualizacao {
  background: #fff0d8;
  color: #8a4d0b;
}

.document-status-vencido {
  background: #f8dede;
  color: var(--danger);
}

.document-status-nao-aplicavel {
  background: var(--surface-muted);
  color: var(--muted);
}

.history-readonly .equipment-note-form,
.history-readonly .document-form,
.history-readonly .item-transfer-form,
.history-readonly .actions-cell,
.history-readonly .document-summary-card .filter-button {
  display: none;
}

.history-document-edit-enabled .document-editor-panel .document-form {
  display: grid;
}

.history-document-edit-enabled .history-documents-summary .actions-cell {
  display: flex;
}

.history-document-edit-enabled .history-documents-summary .document-summary-card .filter-button {
  display: inline-flex;
}

.history-readonly .unified-timeline .timeline-actions {
  display: flex;
}

.history-readonly:not(.history-photo-enabled) .observation-form,
.history-readonly:not(.history-photo-enabled) .equipment-photo-picker {
  display: none;
}

.history-inspection-link {
  width: fit-content;
}

.inspection-page {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.inspection-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.inspection-hero h2 {
  margin: 4px 0;
  color: var(--accent-strong);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.96;
}

.inspection-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.inspection-context-card,
.inspection-form,
.inspection-side-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.inspection-context-card {
  display: grid;
  gap: 4px;
  padding: 18px;
}

.inspection-context-card span,
.inspection-context-card small,
.inspection-form-head span {
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.inspection-context-card strong {
  overflow: hidden;
  color: var(--accent-strong);
  font-size: 1.05rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tools-page {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.tools-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(7, 52, 92, 0.06), transparent 62%),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.tools-hero h2 {
  margin: 4px 0;
  color: var(--accent-strong);
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 0.95;
}

.tools-hero p {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.tool-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.tool-card > span {
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.tool-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 230px;
  padding: 18px;
  border-top: 4px solid var(--accent);
}

.tool-card-primary {
  border-top-color: var(--success);
  background:
    linear-gradient(135deg, rgba(12, 93, 61, 0.08), transparent 56%),
    var(--surface);
}

.tool-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.25rem;
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 720;
}

.tool-card .primary-button,
.tool-card .filter-button {
  align-self: end;
  width: fit-content;
  margin-top: auto;
  text-decoration: none;
}

.tools-alerts-dialog {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 24, 40, 0.58);
}

.tools-alerts-dialog[hidden] {
  display: none;
}

.tools-alerts-modal {
  display: grid;
  gap: 16px;
  width: min(880px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(5, 24, 40, 0.28);
}

.tools-alerts-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.tools-alerts-head span,
.tools-alert-list-head span,
.tools-alert-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tools-alerts-head h2 {
  margin: 4px 0 0;
}

.tools-alert-form {
  display: grid;
  gap: 12px;
}

.tools-alert-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 900;
}

.tools-alert-form input,
.tools-alert-form textarea,
.tools-alert-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface-muted);
  color: var(--text);
  font: inherit;
  font-weight: 800;
}

.tools-alert-form textarea {
  min-height: 92px;
  resize: vertical;
}

.tools-alert-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tools-alert-choice-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tools-alert-choice-panel > div {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-muted);
}

.tools-alert-choice-panel strong {
  color: var(--text);
}

.tools-alert-choice-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.tools-alert-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.tools-alert-check {
  display: flex !important;
  align-items: center;
  gap: 7px !important;
  min-height: 34px;
  border: 1px solid rgba(12, 103, 166, 0.14);
  border-radius: 8px;
  padding: 7px 9px;
  background: var(--surface);
  color: var(--text) !important;
  font-size: 0.84rem;
}

.tools-alert-check input {
  width: 16px !important;
  min-height: 16px !important;
  padding: 0 !important;
}

.tools-alert-actions,
.tools-alert-list-head,
.tools-alert-row-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tools-alert-actions {
  justify-content: flex-end;
}

.tools-alert-list {
  display: grid;
  gap: 10px;
}

.tools-alert-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  padding: 13px 14px;
  background: var(--surface-muted);
}

.tools-alert-row[data-level="warning"] {
  border-left-color: var(--warning);
}

.tools-alert-row[data-level="critical"] {
  border-left-color: var(--danger);
}

.tools-alert-row strong {
  color: var(--text);
}

.tools-alert-row p {
  margin: 4px 0 8px;
  color: var(--text);
  line-height: 1.45;
}

.tools-alert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0;
}

.tools-alert-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(12, 103, 166, 0.16);
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: none;
}

.tools-alert-meta b {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tools-alert-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 8px 0 0;
}

.tools-alert-details div {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(12, 103, 166, 0.12);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.tools-alert-details dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tools-alert-details dd {
  margin: 0;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 850;
}

.tools-alert-row.is-empty {
  grid-template-columns: 1fr;
  border-left-color: var(--success);
}

body.tools-alerts-open {
  overflow: hidden;
}

.app-reminder-overlay {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 18, 31, 0.54);
}

.app-reminder-overlay[hidden] {
  display: none;
}

.app-reminder-card {
  display: grid;
  gap: 15px;
  width: min(560px, 100%);
  border: 1px solid rgba(13, 78, 134, 0.24);
  border-radius: 10px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(13, 78, 134, 0.08), transparent 58%),
    var(--surface);
  box-shadow: 0 24px 70px rgba(2, 18, 32, 0.32);
}

.app-reminder-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.app-reminder-head span {
  color: var(--accent);
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.app-reminder-head h2 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: clamp(1.35rem, 4vw, 2.1rem);
}

.app-reminder-card p {
  margin: 0;
  color: var(--text);
  font-weight: 760;
  line-height: 1.5;
}

.app-reminder-time {
  width: fit-content;
  border: 1px solid rgba(12, 103, 166, 0.2);
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: var(--font-data);
  font-size: 0.82rem;
  font-weight: 950;
}

.app-reminder-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.app-reminder-actions .filter-button,
.app-reminder-actions .primary-button {
  min-height: 38px;
  padding: 8px 12px;
  white-space: nowrap;
}

.operation-page {
  display: grid;
  gap: 18px;
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.operation-hero,
.operation-context-panel,
.operation-tabbar,
.operation-editor-panel,
.operation-column,
.operation-report-panel,
.operation-supply-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.operation-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(18px, 4vw, 28px);
  background:
    linear-gradient(115deg, rgba(7, 52, 92, 0.95), rgba(15, 93, 132, 0.82)),
    var(--surface-strong);
  color: #ffffff;
}

.operation-hero h2 {
  margin: 4px 0;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 0.95;
}

.operation-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 750;
}

.operation-new-front-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 218px;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  padding: 10px 16px;
  background: linear-gradient(180deg, #ffffff, #dfeaf3);
  color: var(--accent-strong);
  box-shadow: 0 14px 30px rgba(4, 32, 57, 0.24);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    filter 140ms ease;
}

.operation-new-front-button:hover {
  box-shadow: 0 18px 34px rgba(4, 32, 57, 0.3);
  filter: brightness(1.02);
  transform: translateY(-1px);
}

.operation-new-front-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.75);
  outline-offset: 3px;
}

.operation-new-front-button strong,
.operation-new-front-button small {
  display: block;
}

.operation-new-front-button strong {
  font-size: 0.98rem;
  font-weight: 950;
}

.operation-new-front-button small {
  margin-top: 2px;
  color: #426076;
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 850;
}

.operation-new-front-icon {
  display: inline-grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 1.45rem;
  font-weight: 950;
  line-height: 1;
}

.operation-context-panel {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(110px, 0.4fr) minmax(130px, 0.5fr) minmax(220px, 1fr);
  gap: 12px;
  padding: 14px;
}

.operation-tabbar {
  display: flex;
  gap: 8px;
  padding: 8px;
}

.operation-tab-button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
  padding: 0 16px;
}

.operation-tab-button.active {
  border-color: #9fc2de;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.operation-tab-panel {
  display: grid;
  gap: 18px;
}

.operation-tab-panel[hidden] {
  display: none;
}

.operation-context-panel label,
.operation-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.8rem;
  font-weight: 900;
}

.operation-context-panel input,
.operation-context-panel select,
.operation-form input,
.operation-form select,
.operation-form textarea,
.operation-report-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface-muted);
  color: var(--text);
  font: inherit;
}

.operation-editor-panel,
.operation-report-panel,
.operation-supply-panel {
  padding: 18px;
}

.operation-form {
  display: grid;
  gap: 14px;
}

.operation-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.operation-wide-field {
  grid-column: span 3;
}

.operation-form select[multiple] {
  min-height: 132px;
}

.operation-form-actions,
.operation-report-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.operation-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.operation-column {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 220px;
  padding: 12px;
}

.operation-column header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--accent-strong);
  font-family: var(--font-data);
  font-weight: 900;
}

.operation-column header strong {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  min-height: 30px;
  border-radius: 8px;
  background: var(--surface-muted);
}

.operation-column-list {
  display: grid;
  gap: 10px;
}

.operation-front-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: #ffffff;
}

.operation-front-card.is-execucao {
  border-left-color: var(--success);
}

.operation-front-card.is-atencao {
  border-left-color: var(--warning);
}

.operation-front-card.is-concluida {
  border-left-color: #7a8794;
  opacity: 0.86;
}

.operation-card-main {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 0;
  padding: 12px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.operation-card-main span {
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.operation-card-main strong {
  overflow-wrap: anywhere;
  color: var(--accent-strong);
  font-size: 1rem;
}

.operation-card-main small,
.operation-card-main em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 750;
}

.operation-card-main b {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 7px;
  background: #fff2df;
  color: var(--warning);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.operation-front-card details {
  border-top: 1px solid var(--line);
  padding: 10px 12px 12px;
  background: var(--surface-muted);
}

.operation-front-card summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 900;
}

.operation-front-card dl {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
}

.operation-front-card dl div {
  display: grid;
  gap: 2px;
}

.operation-front-card dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.operation-front-card dd {
  margin: 0;
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.35;
}

.operation-empty {
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--muted);
  text-align: center;
}

.operation-report-panel {
  display: grid;
  gap: 14px;
}

.operation-report-panel textarea {
  min-height: 280px;
  font-family: var(--font-data);
  line-height: 1.45;
  white-space: pre-wrap;
}

.operation-supply-panel {
  display: grid;
  gap: 16px;
}

.operation-supply-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.operation-supply-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 5px solid var(--success);
  border-radius: 8px;
  background: #fff;
}

.operation-supply-card.is-avariado,
.operation-supply-card.is-manutencao {
  border-left-color: var(--warning);
}

.operation-supply-card.is-perdido {
  border-left-color: var(--danger);
}

.operation-supply-card button {
  display: grid;
  width: 100%;
  gap: 4px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  padding: 12px;
}

.operation-supply-card span,
.operation-supply-card small,
.operation-supply-card em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.operation-supply-card strong {
  color: var(--accent-strong);
}

.operation-supply-card b {
  color: var(--text);
  font-size: 0.8rem;
}

.info-page {
  display: grid;
  gap: 22px;
}

.info-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 320px);
  align-items: stretch;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid #c9d8e6;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 241, 249, 0.92)),
    var(--surface);
  box-shadow: 0 14px 34px rgba(7, 52, 92, 0.1);
}

.info-hero h2 {
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 0.98;
}

.info-hero p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.6vw, 1.15rem);
  line-height: 1.55;
}

.info-hero-compact h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.65rem);
}

.info-version-card {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 132px;
  border: 1px solid rgba(14, 88, 137, 0.2);
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
  box-shadow: inset 4px 0 0 var(--accent), 0 8px 18px rgba(7, 52, 92, 0.08);
}

.info-version-card span,
.info-card-kicker {
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.info-version-card strong {
  color: var(--accent-strong);
  font-family: var(--font-data);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.9;
}

.info-version-card small {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.info-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.info-action-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  border: 1px solid #cfdae5;
  border-radius: 8px;
  padding: 16px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(7, 52, 92, 0.08);
}

.info-action-card:hover {
  transform: translateY(-1px);
  border-color: rgba(14, 88, 137, 0.35);
  box-shadow: 0 12px 26px rgba(7, 52, 92, 0.13);
}

.info-action-card span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 28px;
  border-radius: 8px;
  background: #e7eef6;
  color: var(--accent-strong);
  font-family: var(--font-data);
  font-weight: 900;
}

.info-action-card strong {
  color: var(--accent-strong);
  font-size: 1.12rem;
}

.info-action-card small {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.info-action-primary {
  border-color: rgba(14, 88, 137, 0.38);
  background: linear-gradient(180deg, #ffffff, #edf5fb);
}

.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
  gap: 14px;
}

.info-grid-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card,
.info-release-panel {
  border: 1px solid #cfdae5;
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(7, 52, 92, 0.08);
}

.info-card h3,
.info-release-panel h3 {
  margin: 5px 0 10px;
  color: var(--accent-strong);
  font-size: 1.05rem;
}

.info-card p,
.info-release-panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.info-card-muted {
  background: #f7fafc;
}

.info-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--text);
  line-height: 1.45;
}

.info-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.info-pill-row a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid #c6d6e4;
  border-radius: 8px;
  padding: 6px 10px;
  background: #eef5fb;
  color: var(--accent-strong);
  font-family: var(--font-data);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.info-release-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.inspection-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(360px, 1.1fr);
  gap: 18px;
  align-items: start;
}

.inspection-form,
.inspection-side-panel {
  padding: 20px;
}

.inspection-form {
  display: grid;
  gap: 14px;
}

.inspection-form-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.inspection-form-head strong {
  display: block;
  color: var(--accent-strong);
  font-size: 1.15rem;
}

.inspection-form label,
.inspection-nested-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.inspection-form input,
.inspection-form select,
.inspection-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--input);
  color: var(--text);
  font: inherit;
  font-weight: 750;
}

.inspection-form textarea {
  min-height: 130px;
  resize: vertical;
}

.inspection-nested-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-muted);
}

.inspection-equipment-card {
  display: grid;
  gap: 4px;
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-muted);
}

.inspection-equipment-card strong {
  color: var(--accent-strong);
  font-size: 1.25rem;
}

.inspection-equipment-card small {
  color: var(--muted);
  font-weight: 750;
}

.inspection-photo-picker,
.inspection-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.inspection-side-panel {
  display: grid;
  gap: 14px;
}

.item-transfer-card p strong {
  color: var(--accent-strong);
  font-family: var(--font-data);
}

.observation-photo {
  width: min(100%, 420px);
  max-height: 280px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.timeline-placeholder {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  color: var(--muted);
}

.timeline-placeholder span {
  width: 12px;
  height: 12px;
  border: 3px solid var(--accent);
  border-radius: 999px;
}

.timeline-placeholder p {
  margin: 0;
}

.status-timeline {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.status-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
}

.status-timeline-item::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: -14px;
  left: 10px;
  width: 2px;
  background: var(--line);
}

.status-timeline-item:last-child::before {
  display: none;
}

.status-timeline-item.is-duplicate {
  opacity: 0.82;
}

.status-timeline-marker {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  margin-top: 10px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px currentColor;
}

.status-timeline-marker.tag-status-operacao {
  background: var(--success);
}

.status-timeline-marker.tag-status-manutencao {
  background: var(--danger);
}

.status-timeline-marker.tag-status-preventiva {
  background: var(--preventive);
}

.status-timeline-marker.tag-status-sem-motorista {
  background: #d1a300;
}

.status-timeline-marker.tag-status-reserva {
  background: var(--warning);
}

.status-timeline-marker.tag-status-sillion {
  background: #d9821f;
}

.status-timeline-card {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-muted);
}

.status-timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.status-timeline-head strong {
  font-family: var(--font-data);
  font-size: 0.92rem;
}

.status-log-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(179, 61, 61, 0.22);
  border-radius: 999px;
  background: #fff7f7;
  color: var(--danger);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.status-log-delete:hover {
  border-color: rgba(179, 61, 61, 0.42);
  background: #ffe8e8;
}

.status-timeline-card p,
.status-timeline-card small {
  margin: 0;
  color: var(--muted);
}

.status-timeline-card p {
  font-weight: 800;
}

.conference-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: 18px;
}

.conference-page {
  display: grid;
  gap: 18px;
}

.conference-page > *,
.conference-grid > *,
.metric-grid > * {
  min-width: 0;
}

.conference-band,
.tool-panel,
.report-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.section-title h2 {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.section-kicker {
  color: var(--accent-strong);
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.batch-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--surface-muted);
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.84rem;
  font-weight: 800;
}

.batch-chip.is-ok,
.batch-chip.is-warning {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.metric-card {
  display: grid;
  gap: 4px;
  min-height: 82px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
}

.metric-card.warning {
  border-left-color: var(--warning);
}

.metric-card.success {
  border-left-color: var(--success);
}

.metric-card.danger {
  border-left-color: var(--danger);
}

.metric-card.preventive {
  border-left-color: var(--preventive);
}

.metric-card.no-operator {
  border-left-color: #d1a300;
}

.metric-card.reserve {
  border-left-color: var(--warning);
}

.metric-card span {
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-card strong {
  font-family: var(--font-data);
  font-size: 1.9rem;
  line-height: 1;
}

.conference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 18px;
}

.conference-flow-grid {
  grid-template-columns: minmax(240px, 0.72fr) minmax(280px, 1fr);
}

.conference-grid .tool-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 240px;
}

.conference-queue-board {
  align-items: start;
}

.conference-queue-board .tool-panel {
  min-height: 380px;
}

.conference-modal-host {
  display: contents;
}

.conference-grid .tag-list {
  max-height: min(42vh, 420px);
  overflow: auto;
  padding-right: 4px;
}

.conference-card-toolbar {
  display: grid;
  grid-template-columns: minmax(110px, 0.5fr) auto minmax(110px, 0.5fr);
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.conference-card-toolbar .batch-chip {
  justify-self: center;
}

.batch-actions {
  display: grid;
  grid-template-columns: minmax(96px, auto);
  align-self: end;
  gap: 8px;
}

.submit-conference-button {
  white-space: nowrap;
}

.conference-submit-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.conference-submit-panel h2 {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.conference-submit-panel p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.conference-submit-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.conference-submit-actions .primary-button,
.conference-submit-actions .secondary-button {
  min-width: 176px;
}

.conference-queue-board .section-title {
  align-items: flex-start;
  flex-wrap: wrap;
}

#entryFeedback {
  max-width: min(100%, 520px);
  border-radius: 18px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.conference-page > .metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
}

.status-page {
  display: grid;
  gap: 18px;
}

.status-hero,
.status-toolbar,
.status-view-panel,
.status-category {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.status-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(18px, 4vw, 28px);
  background:
    linear-gradient(115deg, rgba(7, 52, 92, 0.94), rgba(13, 78, 134, 0.86)),
    var(--surface-strong);
  color: #ffffff;
}

.status-kicker {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-data);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-hero h2 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.6rem);
  line-height: 0.92;
}

.status-clock {
  display: grid;
  gap: 2px;
  min-width: 148px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.1);
  text-align: right;
}

.status-clock span,
.status-clock small {
  color: rgba(255, 255, 255, 0.74);
  font-family: var(--font-data);
  font-weight: 800;
}

.status-clock strong {
  font-family: var(--font-data);
  font-size: 1.1rem;
}

.status-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
}

.status-view-panel {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
}

.status-view-mode,
.status-view-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-view-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.status-view-fields label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.8rem;
  font-weight: 900;
}

.status-view-fields input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface-muted);
  color: var(--text);
  font: inherit;
}

.status-toolbar-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.status-feedback {
  min-height: 24px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.status-feedback[data-type="ok"] {
  color: var(--success);
}

.status-feedback[data-type="warning"] {
  color: var(--danger);
}

.status-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.status-board {
  display: grid;
  gap: 14px;
}

.status-board.is-readonly .status-card {
  cursor: default;
}

.status-category {
  padding: 16px;
}

.status-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(146px, 1fr));
  gap: 10px;
}

.status-card-shell {
  display: grid;
  min-width: 0;
}

.status-card {
  position: relative;
  display: grid;
  appearance: none;
  gap: 5px;
  min-height: 104px;
  width: 100%;
  border: 1px solid currentColor;
  border-radius: 8px;
  padding: 12px 12px 12px 38px;
  color: var(--accent-strong);
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.status-card.is-readonly {
  cursor: default;
}

.status-card-history {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-top: -1px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  padding: 8px 10px;
  background: #ffffff;
  color: var(--accent-strong);
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
}

.status-card-shell .status-card {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.status-card strong {
  color: var(--text);
  font-family: var(--font-data);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
}

.status-card span:not(.status-dot) {
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-card small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.status-dot {
  position: absolute;
  top: 14px;
  left: 12px;
  width: 14px;
  height: 14px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px currentColor;
}

.status-dot-operacao {
  background: var(--success);
}

.status-dot-manutencao {
  background: var(--danger);
}

.status-dot-preventiva {
  background: var(--preventive);
}

.status-dot-sem-motorista {
  background: #d1a300;
}

.status-dot-reserva {
  background: var(--warning);
}

.status-dot-sillion {
  background: #d9821f;
}

.status-menu {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 25, 41, 0.28);
}

/* ============ COMPONENT RESCUE ============ */
.tab-buttons,
.registry-actions,
.result-actions,
.form-actions,
.backup-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.registry-page,
.reports-page,
.config-page,
.agenda-page {
  display: grid;
  gap: 18px;
}

.registry-filter-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 252, 0.92));
  box-shadow: 0 8px 22px rgba(7, 52, 92, 0.06);
}

.registry-toolbar {
  display: grid;
  grid-template-columns: auto minmax(360px, 1fr);
  gap: 10px 12px;
  align-items: end;
}

.registry-actions {
  justify-content: flex-end;
}

.registry-search-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(145px, 0.32fr) auto auto auto;
  align-items: end;
  gap: 8px;
}

.registry-search-form .primary-button,
.registry-search-form .filter-button {
  min-height: 38px;
  padding: 8px 12px;
  white-space: nowrap;
}

.registry-search {
  min-width: 0;
}

.registry-sort {
  min-width: 0;
}

.sort-direction {
  min-width: 58px;
}

.registry-context-filters {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.registry-context-filters label {
  display: grid;
  grid-template-columns: auto minmax(116px, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 5px 4px 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.registry-context-filters select {
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  padding: 4px 26px 4px 8px;
  background: var(--surface-muted);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  text-transform: none;
}

.registry-tab,
.checklist-panel,
.config-panel,
.agenda-table-panel {
  min-width: 0;
}

.registry-form,
.batch-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.part-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 8px;
}

.registry-form label,
.batch-form label,
.part-fields label,
.status-note-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.84rem;
  font-weight: 800;
}

.part-fields label {
  gap: 4px;
  font-size: 0.78rem;
}

.registry-form input,
.registry-form select,
.batch-form input,
.batch-form select,
.part-fields input,
.part-fields select,
.status-note-form textarea,
.status-note-form select,
.report-section textarea,
.validation-box {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: var(--surface-muted);
  color: var(--text);
  font: inherit;
}

.part-fields input,
.part-fields select {
  padding: 8px 10px;
}

.registry-form input,
.registry-form select,
.batch-form input,
.batch-form select {
  min-height: 42px;
}

.part-fields input,
.part-fields select {
  min-height: 36px;
}

.part-fields input:focus,
.part-fields select:focus {
  outline: 3px solid rgba(13, 78, 134, 0.24);
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(13, 78, 134, 0.08);
}

.form-actions {
  grid-column: 1 / -1;
}

.registry-feedback,
.validation-box {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.validation-box.is-ok,
.registry-feedback[data-type="ok"] {
  border-color: rgba(31, 122, 77, 0.34);
  background: #e7f4ed;
  color: var(--success-strong);
}

.validation-box.is-warning,
.registry-feedback[data-type="warning"] {
  border-color: rgba(182, 106, 22, 0.34);
  background: #fff2df;
  color: var(--warning);
}

.app-update-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  display: grid;
  gap: 12px;
  width: min(420px, calc(100vw - 24px));
  border: 1px solid rgba(13, 78, 134, 0.24);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 44px rgba(7, 52, 92, 0.22);
}

.app-update-banner__text {
  display: grid;
  gap: 4px;
}

.app-update-banner__text strong {
  color: var(--accent-strong);
  font-family: var(--font-data);
  font-size: 0.92rem;
}

.app-update-banner__text span {
  color: var(--muted);
  font-size: 0.88rem;
}

.app-update-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.app-startup-splash {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 18%, rgba(7, 52, 92, 0.08), transparent 30%),
    #ffffff;
  color: var(--text);
  transition: opacity 240ms ease, visibility 240ms ease;
}

.app-startup-splash.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.app-startup-card {
  position: relative;
  display: grid;
  width: min(560px, 100%);
  min-height: 380px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(7, 52, 92, 0.12);
  border-radius: 18px;
  padding: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 252, 0.92)),
    #ffffff;
  box-shadow: 0 28px 80px rgba(4, 32, 57, 0.18);
}

.app-startup-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, 0.7) 48%, transparent 58%),
    linear-gradient(180deg, rgba(7, 52, 92, 0.04), transparent 46%);
  background-size: 220% 100%, 100% 100%;
  animation: startup-shine 2.4s ease-in-out infinite;
  pointer-events: none;
}

.app-startup-stage {
  position: absolute;
  inset: 34px 34px 72px;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 360ms ease, transform 360ms ease;
  pointer-events: none;
}

.app-startup-stage.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.app-startup-logo,
.app-startup-message {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.app-startup-brandline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 4vw, 24px);
}

.app-startup-app-icon {
  width: clamp(86px, 22vw, 132px);
  height: clamp(86px, 22vw, 132px);
  border-radius: 999px;
  background: #ffffff;
  object-fit: contain;
  box-shadow: 0 18px 34px rgba(7, 52, 92, 0.2);
}

.app-startup-owner-seal {
  width: clamp(68px, 18vw, 104px);
  height: clamp(92px, 24vw, 142px);
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(7, 52, 92, 0.22));
}

.app-startup-logo strong {
  color: var(--accent-strong);
  font-size: clamp(2.4rem, 8vw, 4.7rem);
  font-weight: 950;
  line-height: 0.9;
}

.app-startup-logo span,
.app-startup-message span,
.app-startup-footer small {
  color: var(--muted);
  font-weight: 850;
}

.app-startup-message small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.app-startup-welcome {
  display: grid;
  place-items: center;
  width: min(156px, 42vw);
  aspect-ratio: 1;
  border: 8px solid #ffffff;
  border-radius: 999px;
  background: #07345c;
  box-shadow: 0 18px 36px rgba(7, 52, 92, 0.2);
}

.app-startup-welcome img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-startup-message strong {
  color: var(--accent-strong);
  font-size: clamp(1.8rem, 6vw, 3rem);
  font-weight: 950;
}

.app-startup-footer {
  position: absolute;
  right: 24px;
  bottom: 20px;
  left: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(7, 52, 92, 0.1);
  padding-top: 14px;
  font-family: var(--font-data);
}

.app-startup-footer span {
  color: var(--accent-strong);
  font-weight: 950;
}

@keyframes startup-shine {
  0% {
    background-position: 140% 0, 0 0;
  }
  100% {
    background-position: -80% 0, 0 0;
  }
}

.app-health-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 85;
  display: grid;
  width: min(560px, calc(100% - 32px));
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(182, 106, 22, 0.28);
  border-left: 6px solid var(--warning);
  border-radius: 10px;
  padding: 13px 14px;
  background: #fff8eb;
  box-shadow: 0 18px 42px rgba(4, 32, 57, 0.22);
  color: var(--text);
}

.app-health-banner[hidden] {
  display: none;
}

.app-health-banner[data-mode="database"] {
  border-color: rgba(179, 61, 61, 0.28);
  border-left-color: var(--danger);
  background: #fff1f1;
}

.app-health-banner[data-mode="offline"] {
  border-color: rgba(13, 78, 134, 0.24);
  border-left-color: var(--accent);
  background: #eef6fc;
}

.app-health-banner[data-mode="success"] {
  border-color: rgba(31, 122, 77, 0.24);
  border-left-color: var(--success);
  background: #edf8f2;
}

.app-health-banner strong,
.app-health-banner span {
  display: block;
}

.app-health-banner strong {
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 950;
}

.app-health-banner span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.app-health-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.app-health-actions button {
  min-height: 36px;
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(13, 78, 134, 0.16), transparent 32%),
    linear-gradient(135deg, #eef5fb, #ffffff 55%, #e7eef5);
}

.error-panel {
  display: grid;
  width: min(860px, 100%);
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(22px, 4vw, 38px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 60px rgba(4, 32, 57, 0.16);
}

.error-panel h1 {
  margin: 0;
  color: var(--accent-strong);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.98;
}

.error-panel p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

.error-diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.error-diagnostic-grid article {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-muted);
}

.error-diagnostic-grid span {
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.error-diagnostic-grid strong {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.35;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.table-wrap,
.agenda-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

.conference-table,
.agenda-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  color: var(--text);
  font-size: 0.9rem;
}

.conference-table th,
.conference-table td,
.agenda-table th,
.agenda-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
  text-align: left;
  vertical-align: middle;
}

.conference-table th,
.agenda-table th {
  background: #dceafa;
  color: var(--accent-strong);
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.conference-table tbody tr:hover,
.agenda-table tbody tr:hover {
  background: #f7fafc;
}

.resumo-page {
  display: grid;
  gap: 18px;
}

.resumo-hero h2 {
  max-width: 760px;
}

.resumo-updated-card strong {
  font-size: 1.45rem;
}

.resumo-toolbar {
  align-items: end;
}

.resumo-filter-input,
.resumo-filter-select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 850;
}

.resumo-table-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.resumo-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
  -webkit-overflow-scrolling: touch;
}

.resumo-table {
  width: 100%;
  min-width: 1600px;
  border-collapse: collapse;
  color: #111827;
  font-size: 0.78rem;
}

.resumo-table th,
.resumo-table td {
  border: 1px solid #111827;
  padding: 5px 6px;
  text-align: left;
  vertical-align: middle;
}

.resumo-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f3f7fb;
  color: #111827;
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.th-help {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: help;
}

.th-help span {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(13, 78, 134, 0.3);
  border-radius: 50%;
  background: #eef6ff;
  color: var(--accent-strong);
  font-family: var(--font-data);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-transform: none;
}

.resumo-table tr.is-maintenance td {
  background: #fff7f7;
}

.resumo-table tr.is-preventive td {
  background: #fffaf0;
}

.resumo-table tr.is-pending td {
  background: #fffceb;
}

.resumo-table input,
.resumo-table select,
.resumo-table textarea {
  width: 100%;
  min-width: 132px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 6px 7px;
  background: rgba(255, 255, 255, 0.86);
  color: #111827;
  font: inherit;
  font-weight: 750;
}

.resumo-table textarea {
  min-height: 42px;
  resize: vertical;
}

.resumo-table input:focus,
.resumo-table select:focus,
.resumo-table textarea:focus {
  outline: 2px solid rgba(13, 78, 134, 0.32);
  border-color: var(--accent);
  background: #ffffff;
}

.resumo-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 30px;
  border-radius: 4px;
  padding: 6px 9px;
  color: #111827;
  font-weight: 950;
  text-transform: uppercase;
}

.resumo-status-badge.is-maintenance {
  background: #e73333;
  color: #ffffff;
}

.resumo-status-badge.is-preventive {
  background: #f5d04c;
  color: #111827;
}

.resumo-status-badge.is-pending {
  background: #ffe65a;
  color: #111827;
}

.resumo-status-badge.is-operation {
  background: #d9f6df;
  color: #12512a;
}

.resumo-equipment {
  min-width: 150px;
  font-weight: 850;
  text-transform: uppercase;
}

.actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.row-action {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  background: var(--surface);
  color: var(--accent-strong);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.row-action.danger {
  color: var(--danger);
}

.tag-badge,
.agenda-area-badge,
.agenda-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--surface);
  color: var(--accent-strong);
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.tag-status-operacao {
  border-color: rgba(31, 122, 77, 0.35);
  background: #e7f4ed;
  color: var(--success-strong);
}

.tag-status-manutencao {
  border-color: rgba(179, 61, 61, 0.34);
  background: #fde8e8;
  color: var(--danger);
}

.tag-status-preventiva {
  border-color: rgba(49, 95, 186, 0.34);
  background: #e7eefc;
  color: var(--preventive);
}

.tag-status-sem-motorista {
  border-color: rgba(209, 163, 0, 0.34);
  background: #fff6cf;
  color: #805f00;
}

.tag-status-reserva {
  border-color: rgba(182, 106, 22, 0.34);
  background: #fff1dc;
  color: var(--warning);
}

.tag-status-sillion {
  border-color: rgba(217, 130, 31, 0.36);
  background: #fff4e6;
  color: #9a560f;
}

.tag-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface-muted);
}

.tag-list span {
  min-width: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.tag-list li[draggable="true"],
.part-card[draggable="true"] {
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.tag-list li.is-dragging,
.part-card.is-dragging {
  opacity: 0.55;
}

.tag-list.is-drop-target {
  outline: 2px dashed var(--accent);
  outline-offset: 4px;
  background: rgba(13, 78, 134, 0.08);
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 9px;
}

.checklist-panel .checklist-grid {
  grid-template-columns: minmax(0, 1fr);
}

.conference-queue-item {
  padding: 0;
}

.conference-queue-button {
  display: grid;
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 0;
  border-left: 4px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.conference-queue-item.active .conference-queue-button {
  border-left-color: var(--accent);
  background: var(--accent-soft);
}

.conference-queue-item.is-verified .conference-queue-button {
  border-left-color: var(--success);
}

.conference-queue-item.is-review .conference-queue-button {
  border-left-color: var(--danger);
}

.conference-queue-item.is-pending .conference-queue-button {
  border-left-color: var(--warning);
}

.conference-queue-item.is-draft .conference-queue-button {
  border-left-color: var(--accent);
}

.conference-queue-button span {
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.part-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--warning);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface);
}

.active-conference-card {
  gap: 14px;
  min-height: 360px;
  border-left-width: 7px;
  padding: clamp(14px, 2.5vw, 22px);
}

.active-conference-card.is-waiting {
  border-left-color: var(--line);
}

.active-conference-card.is-pending {
  border-left-color: var(--warning);
}

.active-conference-card.is-draft {
  border-left-color: var(--accent);
}

.active-conference-card.is-review {
  border-left-color: var(--danger);
}

.active-conference-card.is-verified,
.active-conference-card.is-complete {
  border-left-color: var(--success);
}

.active-card-hero {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.active-card-status-stack {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.active-card-hero > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.active-card-tag {
  color: var(--accent-strong);
  font-family: var(--font-data);
  font-size: clamp(2.2rem, 7vw, 5rem);
  line-height: 0.92;
}

.active-card-hero span {
  color: var(--muted);
  font-weight: 850;
}

.active-card-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  border-radius: 999px;
  padding: 8px 12px;
  font-family: var(--font-data);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.active-card-state.is-waiting {
  background: var(--surface-muted);
  color: var(--muted);
}

.active-card-state.is-pending {
  background: #fff1dc;
  color: var(--warning);
}

.active-card-state.is-draft {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.active-card-state.is-review {
  background: #fff1f1;
  color: var(--danger);
}

.active-card-state.is-verified {
  background: #e7f4ed;
  color: var(--success-strong);
}

.active-conference-card.is-expanded {
  position: fixed;
  inset: clamp(6px, 1.4vw, 18px);
  z-index: 1400;
  display: block;
  gap: 0;
  max-width: min(1280px, calc(100vw - 12px));
  width: min(1280px, calc(100vw - 12px));
  max-height: calc(100dvh - 12px);
  margin: auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0;
  border: 1px solid rgba(7, 52, 92, 0.22);
  border-left-width: 0;
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 24px 72px rgba(3, 22, 38, 0.38);
}

.active-conference-card.is-expanded.is-waiting,
.active-conference-card.is-expanded.is-pending,
.active-conference-card.is-expanded.is-draft,
.active-conference-card.is-expanded.is-review,
.active-conference-card.is-expanded.is-verified,
.active-conference-card.is-expanded.is-complete {
  background: #ffffff;
}

body.conference-card-expanded {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.active-conference-card.is-expanded::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(5, 19, 32, 0.56);
}

.active-conference-card.is-expanded .active-card-hero {
  align-items: center;
  position: static;
  min-height: 0;
  padding: 12px 16px;
  border-bottom: 0;
  background: linear-gradient(135deg, #07345c 0%, #0d4e86 100%);
  color: #ffffff;
}

.active-conference-card.is-expanded .active-card-tag {
  color: #ffffff;
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  letter-spacing: 0;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.16);
}

.active-conference-card.is-expanded .active-card-hero span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
}

.active-conference-card.is-expanded .active-card-state {
  min-width: 132px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: #ffffff;
  color: #07345c;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.active-conference-card.is-expanded .modal-close-button {
  width: 36px;
  height: 36px;
}

.active-conference-card.is-expanded .active-card-state.is-draft {
  border-color: #ffffff;
  background: #ffffff;
  color: #07345c;
}

.active-conference-card.is-expanded .active-card-state.is-review {
  border-color: #ffe1e1;
  background: #ffecec;
  color: #8b2525;
}

.active-conference-card.is-expanded .active-card-status-stack .row-action {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.modal-close-button {
  display: inline-grid;
  place-items: center;
  justify-self: end;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-family: var(--font-data);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.modal-close-button:hover,
.modal-close-button:focus-visible {
  background: #ffffff;
  color: var(--accent-strong);
  outline: none;
}

.active-conference-card.is-expanded .part-card-note {
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 14px clamp(18px, 3vw, 30px) 12px;
  background: #ffffff;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 800;
}

.active-conference-card.is-expanded .active-part-fields {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px 16px;
  padding: clamp(14px, 2.4vw, 22px) clamp(18px, 3vw, 30px) 8px;
  background: #ffffff;
}

.active-conference-card.is-expanded .part-fields label {
  color: #07345c;
  font-size: 0.84rem;
  font-weight: 950;
}

.active-conference-card.is-expanded .part-fields input,
.active-conference-card.is-expanded .part-fields select {
  min-height: 56px;
  border-color: #b7c6d6;
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 2px 0 rgba(7, 52, 92, 0.04);
}

.active-conference-card.is-expanded .active-card-result {
  padding: 8px clamp(18px, 3vw, 30px) clamp(14px, 2vw, 18px);
  background: #ffffff;
}

.daily-part-body {
  display: grid;
  gap: 0;
  min-height: 0;
  overflow: visible;
  overscroll-behavior: contain;
  background: #ffffff;
}

.daily-part-section {
  display: grid;
}

.daily-part-fields-section {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px 16px;
  padding: clamp(14px, 2.4vw, 22px) clamp(18px, 3vw, 30px) 8px;
  background: #ffffff;
}

.daily-part-fields-section label {
  display: grid;
  gap: 8px;
  color: #07345c;
  font-family: var(--font-data);
  font-size: 0.84rem;
  font-weight: 950;
}

.daily-part-fields-section input,
.daily-part-fields-section select {
  width: 100%;
  min-height: 56px;
  border: 1px solid #b7c6d6;
  border-radius: 8px;
  padding: 10px 14px;
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 2px 0 rgba(7, 52, 92, 0.04);
  font: inherit;
  font-weight: 850;
}

.hourmeter-summary {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(150px, auto);
  align-items: center;
  gap: 12px;
  margin: 4px clamp(18px, 3vw, 30px) 12px;
  border: 1px solid #d8e3ee;
  border-left: 5px solid var(--muted);
  border-radius: 8px;
  padding: 10px 14px;
  background: #f7fbff;
  color: var(--text);
}

.hourmeter-summary span,
.hourmeter-summary small {
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hourmeter-summary strong {
  color: var(--accent-strong);
  font-family: var(--font-data);
  font-size: 1.35rem;
  line-height: 1;
}

.hourmeter-summary.is-ok {
  border-left-color: var(--success);
  background: #f2fbf6;
}

.hourmeter-summary.is-review {
  border-left-color: var(--warning);
  background: #fff8ed;
}

.hourmeter-summary.is-pending {
  border-left-color: var(--muted);
}

.daily-part-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px clamp(18px, 3vw, 30px) clamp(14px, 2vw, 18px);
  border-top: 1px solid var(--line);
  background: #ffffff;
  position: static;
  box-shadow: none;
}

.activity-detail-panel {
  display: grid;
  gap: 10px;
  margin: 2px clamp(18px, 3vw, 30px) 14px;
  border: 1px solid #d2deea;
  border-radius: 8px;
  padding: 12px;
  background: #f7fbff;
}

.activity-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.activity-detail-head > div {
  display: grid;
  gap: 2px;
}

.activity-detail-head strong {
  color: var(--accent-strong);
  font-size: 1rem;
}

.activity-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.activity-summary-grid span {
  display: grid;
  gap: 2px;
  border: 1px solid #d8e3ee;
  border-radius: 8px;
  padding: 8px 10px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.activity-summary-grid strong {
  color: var(--accent-strong);
  font-family: var(--font-data);
  font-size: 1.15rem;
}

.activity-row-list {
  display: grid;
  gap: 6px;
}

.timeline-strip {
  display: flex;
  align-items: stretch;
  gap: 3px;
  min-height: 42px;
  overflow: hidden;
  border: 1px solid #c8d7e6;
  border-radius: 8px;
  padding: 4px;
  background: #ffffff;
  touch-action: none;
  user-select: none;
}

.timeline-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  border-radius: 6px;
  padding: 5px 7px;
  color: #ffffff;
  font-family: var(--font-data);
  font-size: 0.68rem;
  font-weight: 950;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}

.timeline-boundary-handle {
  flex: 0 0 22px;
  min-width: 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #b9cde0);
  box-shadow:
    inset 0 0 0 1px #8daac3,
    0 4px 10px rgba(7, 52, 92, 0.18);
  cursor: ew-resize;
  touch-action: none;
}

.timeline-boundary-handle::before {
  content: "";
  display: block;
  width: 3px;
  height: 26px;
  margin: auto;
  border-radius: 999px;
  background: #0d4e86;
}

.timeline-boundary-handle:hover,
.timeline-boundary-handle:focus-visible,
.timeline-boundary-handle.is-dragging {
  background: #ffffff;
  box-shadow:
    inset 0 0 0 2px var(--accent),
    0 0 0 4px rgba(13, 78, 134, 0.12);
  outline: none;
}

.timeline-block.is-operation,
.activity-row.is-operation {
  border-color: #a8d4bd;
}

.timeline-block.is-operation {
  background: var(--success);
}

.timeline-block.is-support {
  background: var(--accent);
}

.timeline-block.is-pause {
  background: var(--warning);
}

.timeline-block.is-move {
  background: #6b7280;
}

.timeline-block.is-maintenance {
  background: var(--danger);
}

.activity-row {
  display: grid;
  grid-template-columns: 62px 92px 48px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid #d8e3ee;
  border-radius: 8px;
  padding: 9px;
  background: #ffffff;
}

.activity-row span,
.activity-row strong {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  border-radius: 6px;
  background: var(--surface-muted);
  color: var(--accent-strong);
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 950;
}

.activity-row input,
.activity-row select {
  width: 100%;
  min-height: 34px;
  border: 1px solid #c8d7e6;
  border-radius: 6px;
  padding: 6px 8px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-weight: 850;
}

.activity-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.activity-row-actions .row-action {
  min-width: 38px;
  min-height: 34px;
  padding: 6px 10px;
  font-size: 1rem;
  line-height: 1;
}

.active-part-fields {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.active-card-result {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: auto;
}

.active-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.expanded-card-navigation {
  position: static;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  gap: 10px;
  grid-column: 1 / -1;
  align-items: center;
  padding: 8px 0 0;
  background: #f7fbff;
  border-top: 1px solid var(--line);
}

.expanded-card-navigation .secondary-button {
  width: 100%;
  min-height: 54px;
}

.expanded-card-navigation .batch-chip {
  min-width: 72px;
  justify-content: center;
}

.expanded-card-navigation .secondary-button:last-child {
  justify-self: end;
}

.part-card.is-complete {
  border-left-color: var(--success);
}

.part-card.is-active {
  border-color: rgba(13, 78, 134, 0.48);
  box-shadow: 0 0 0 3px rgba(13, 78, 134, 0.12), var(--shadow);
}

.part-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.part-card-header > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.part-card-header span,
.part-card-note,
.part-alerts {
  color: var(--muted);
  font-size: 0.76rem;
}

.part-card-note {
  border-radius: 8px;
  padding: 6px 8px;
  background: var(--surface-muted);
}

.part-card > .actions-cell {
  display: none;
}

.part-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.part-alert-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid rgba(182, 106, 22, 0.26);
  border-radius: 999px;
  padding: 3px 8px;
  background: #fff1dc;
  color: var(--warning);
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 900;
}

.part-alert-chip.is-ok {
  border-color: rgba(31, 122, 77, 0.26);
  background: #e7f4ed;
  color: var(--success-strong);
}

.status-ok,
.status-warning {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-family: var(--font-data);
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-ok {
  background: #e7f4ed;
  color: var(--success-strong);
}

.status-warning {
  background: #fff1dc;
  color: var(--warning);
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.reports-grid.single-report {
  grid-template-columns: minmax(0, 1fr);
}

.report-center-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.report-mode-button {
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 58px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 9px 12px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.report-mode-button strong {
  color: var(--text);
  font-size: 0.92rem;
}

.report-mode-button span {
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-mode-button.active {
  border-color: #9fc2de;
  background: var(--accent-soft);
}

.report-mode-button.active strong {
  color: var(--accent-strong);
}

.equipment-report-workspace {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--surface);
}

.equipment-report-toolbar,
.equipment-report-actions,
.equipment-report-record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.equipment-report-toolbar h2 {
  margin: 4px 0 0;
}

.equipment-report-tag-field {
  display: grid;
  gap: 5px;
  min-width: min(280px, 100%);
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 850;
}

.equipment-report-tag-field select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
  background: var(--surface-muted);
  color: var(--text);
  font: inherit;
}

.equipment-report-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.equipment-report-summary article {
  min-width: 0;
  border-left: 4px solid var(--accent);
  padding: 10px 12px;
  background: var(--surface-muted);
}

.equipment-report-summary span,
.equipment-report-summary strong {
  display: block;
  overflow-wrap: anywhere;
}

.equipment-report-summary span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.equipment-report-summary strong {
  margin-top: 4px;
}

.equipment-report-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.equipment-report-record {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-muted);
}

.equipment-report-record h3,
.equipment-report-record p {
  margin: 0;
  overflow-wrap: anywhere;
}

.equipment-report-record small {
  color: var(--muted);
}

.equipment-report-photo,
.observation-photo {
  cursor: zoom-in;
}

.equipment-report-photo {
  width: 100%;
  max-height: 260px;
  border: 1px solid var(--line);
  border-radius: 7px;
  object-fit: cover;
}

.photo-viewer {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 0;
  background: rgba(4, 14, 24, 0.94);
}

.photo-viewer::backdrop {
  background: rgba(4, 14, 24, 0.94);
}

.photo-viewer-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 52px 18px 24px;
}

.photo-viewer img {
  max-width: 100%;
  max-height: calc(100vh - 110px);
  object-fit: contain;
}

.photo-viewer p {
  position: absolute;
  right: 18px;
  bottom: 10px;
  left: 18px;
  margin: 0;
  color: #ffffff;
  text-align: center;
  font-weight: 750;
}

.photo-viewer-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
}

.report-workspace-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(7, 52, 92, 0.07);
}

.report-heading-copy {
  min-width: 0;
}

.report-kicker,
.report-channel {
  display: block;
  color: var(--accent);
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.report-heading-copy h2,
.report-toolbar h2 {
  margin: 4px 0 0;
  letter-spacing: 0;
}

.report-heading-copy h2 {
  font-size: 1.75rem;
}

.report-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
}

.report-context span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 10px;
  background: var(--surface-muted);
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.8rem;
  font-weight: 800;
}

.report-context .report-context-primary {
  border-color: #a9c5df;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.report-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.report-settings-panel {
  animation: report-panel-in 160ms ease-out;
}

.report-document {
  overflow: hidden;
  padding: 0;
}

.report-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.report-toolbar h2 {
  font-size: 1.12rem;
}

.report-primary-actions {
  justify-content: flex-end;
}

.whatsapp-button {
  min-height: 42px;
  border: 1px solid #16784a;
  border-radius: 8px;
  padding: 10px 15px;
  background: #1f8f5a;
  color: #ffffff;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.whatsapp-button:hover {
  background: #16784a;
}

.report-preview {
  min-height: 480px;
  max-height: 68vh;
  margin: 0;
  overflow: auto;
  padding: 26px clamp(18px, 4vw, 42px) 34px;
  background: var(--surface);
  color: #172334;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.94rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.report-edit-panel {
  padding: 18px 20px 20px;
  background: var(--surface);
}

.report-edit-panel textarea {
  min-height: 480px;
  border-color: #9fb6ca;
  background: #fbfdff;
}

.report-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.report-status,
#whatsappReportStatus {
  margin: 0;
  border-width: 1px 0 0;
  border-radius: 0;
  padding: 11px 20px;
  background: #f8fafc;
}

@keyframes report-panel-in {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.report-section textarea {
  min-height: 420px;
  resize: vertical;
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.45;
  white-space: pre;
}

.panel-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.backup-file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--accent-strong);
  font-weight: 800;
  cursor: pointer;
}

.backup-file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.sync-config-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
}

.sync-config-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.84rem;
  font-weight: 800;
}

.sync-config-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: var(--surface-muted);
  color: var(--text);
  font: inherit;
}

.sync-actions,
.sync-summary {
  grid-column: 1 / -1;
}

.sync-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sync-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.sync-summary article {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-muted);
}

.sync-summary span {
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sync-summary strong {
  color: var(--accent-strong);
  font-family: var(--font-data);
  font-size: 1.15rem;
}

.status-menu-panel {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(420px, 100%);
  max-height: min(82vh, calc(100vh - 32px));
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(7, 52, 92, 0.22);
}

.status-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.status-menu-head span {
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-menu-head strong {
  margin-right: auto;
  color: var(--accent-strong);
  font-family: var(--font-data);
  font-size: 1.08rem;
}

.status-menu-head button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--text);
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.status-menu-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 42vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}

.status-menu-option {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 78px;
  border: 1px solid currentColor;
  border-radius: 8px;
  padding: 10px 10px 10px 34px;
  background: var(--surface);
  color: var(--accent-strong);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.status-menu-option.active {
  outline: 3px solid rgba(13, 78, 134, 0.18);
}

.status-menu-option strong {
  font-family: var(--font-data);
  font-size: 0.9rem;
  line-height: 1.1;
}

.status-menu-option small {
  color: var(--muted);
  font-size: 0.76rem;
}

.status-undo-button {
  width: 100%;
  border: 1px solid rgba(179, 61, 61, 0.28);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff7f2;
  color: var(--danger);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.status-undo-button:hover {
  border-color: rgba(179, 61, 61, 0.5);
  background: #ffefe6;
}

.status-undo-button.status-undo-operacao {
  border-color: rgba(31, 122, 77, 0.28);
  background: #e7f4ed;
  color: var(--success);
}

.status-undo-button.status-undo-operacao:hover {
  border-color: rgba(31, 122, 77, 0.5);
  background: #d9eddf;
}

.status-note-form {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f7fafc;
}

.status-history-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 9px 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 900;
  text-decoration: none;
}

.config-hero,
.agenda-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 4vw, 28px);
  background:
    linear-gradient(115deg, rgba(7, 52, 92, 0.94), rgba(13, 78, 134, 0.86)),
    var(--surface-strong);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.agenda-progress-card {
  display: grid;
  gap: 3px;
  min-width: 150px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.1);
  text-align: right;
}

.agenda-progress-card span,
.agenda-progress-card small {
  color: rgba(255, 255, 255, 0.74);
  font-family: var(--font-data);
  font-weight: 800;
}

.agenda-progress-card strong {
  font-family: var(--font-data);
  font-size: 2rem;
  line-height: 1;
}

.agenda-process {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

.agenda-process article {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.agenda-process strong {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-data);
}

.agenda-process span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.agenda-toolbar {
  align-items: end;
  flex-wrap: wrap;
}

.agenda-filter-group {
  display: grid;
  gap: 6px;
}

.agenda-filter-group > span {
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.agenda-date-filter {
  min-width: min(100%, 280px);
}

.agenda-date-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.agenda-date-inputs label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.agenda-date-inputs input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: var(--input);
  color: var(--text);
  font: inherit;
  font-weight: 800;
}

.agenda-table-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.agenda-table {
  min-width: 980px;
}

.agenda-table tr[class*="agenda-status"] {
  border-left: 5px solid var(--agenda-status-color, var(--accent));
}

.agenda-status-programado {
  --agenda-status-color: var(--preventive);
}

.agenda-status-checklist {
  --agenda-status-color: var(--warning);
}

.agenda-status-evidencias {
  --agenda-status-color: #7a5fb0;
}

.agenda-status-fiscal {
  --agenda-status-color: #0d7890;
}

.agenda-status-vuse {
  --agenda-status-color: #71512c;
}

.agenda-status-entrada {
  --agenda-status-color: var(--danger);
}

.agenda-status-saida {
  --agenda-status-color: var(--success);
}

.agenda-status-documento {
  --agenda-status-color: #0d7890;
}

.agenda-status-button,
.agenda-menu-option {
  position: relative;
  display: inline-grid;
  gap: 2px;
  min-height: 38px;
  border: 1px solid rgba(7, 52, 92, 0.18);
  border-radius: 8px;
  padding: 8px 10px 8px 28px;
  background: #ffffff;
  color: var(--text);
  text-align: left;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
}

.agenda-status-button {
  color: var(--agenda-status-color, var(--accent-strong));
}

.agenda-status-dot {
  position: absolute;
  top: 12px;
  left: 10px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--agenda-status-color, var(--accent));
}

.agenda-number,
.agenda-date-cell {
  font-family: var(--font-data);
  font-weight: 800;
}

.agenda-date-cell {
  display: grid;
  gap: 2px;
}

.agenda-date-cell span {
  color: var(--muted);
  font-size: 0.76rem;
}

.agenda-empty {
  color: var(--muted);
  text-align: center;
}

.duplicate-hint {
  color: var(--warning);
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .login-page {
    width: min(100%, 760px);
  }

  .login-panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    min-height: auto;
  }

  .login-intro {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    min-height: auto;
    padding: 28px 32px;
    border-right: 0;
    border-bottom: 1px solid #477ba7;
  }

  .login-intro::after {
    content: none;
  }

  .creator-mark {
    right: 24px;
    bottom: 18px;
    width: 70px;
  }

  .login-panel h1 {
    max-width: none;
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .login-workspace {
    padding: 32px;
  }

  .login-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-form .primary-button {
    width: 100%;
  }

  .app-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "title title account";
    height: 66px;
    min-height: 66px;
    max-height: 66px;
  }

  .account-menu {
    justify-self: end;
    justify-content: flex-start;
  }

  .access-layout {
    grid-template-columns: 1fr;
  }

  .audit-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audit-layout {
    grid-template-columns: 1fr;
  }

  .audit-list {
    max-height: 440px;
  }

  .audit-detail-panel {
    position: static;
  }

  .access-editor-panel,
  .access-editor-stack {
    position: static;
  }

  .permission-grid {
    grid-template-columns: 1fr;
  }

  .access-form-actions,
  .access-card-actions,
  .access-list-head {
    align-items: stretch;
    flex-direction: column;
  }

  .header-actions,
  .status-toolbar,
  .status-view-panel,
  .section-title,
  .config-hero,
  .agenda-hero,
  .inspection-hero,
  .tools-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .registry-toolbar {
    grid-template-columns: 1fr;
  }

  .registry-search-form {
    grid-template-columns: minmax(0, 1fr) minmax(132px, 0.36fr) auto auto auto;
  }

  .inspection-hero,
  .inspection-layout,
  .tools-hero,
  .operation-hero,
  .info-hero,
  .info-grid,
  .info-grid-wide {
    grid-template-columns: 1fr;
  }

  .operation-context-panel,
  .operation-form-grid,
  .operation-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operation-wide-field {
    grid-column: 1 / -1;
  }

  .operation-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .process-nav-shell {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .process-nav-shell > .process-nav {
    grid-column: 1 / -1;
  }

  .info-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-release-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .inspection-nested-grid {
    grid-template-columns: 1fr;
  }

  .history-hero {
    grid-template-columns: 1fr;
  }

  .status-view-panel {
    grid-template-columns: 1fr;
  }

  .status-metrics,
  .metric-grid,
  .agenda-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .conference-layout {
    grid-template-columns: 1fr;
  }

  .report-workspace-head,
  .report-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .report-head-actions,
  .report-primary-actions {
    justify-content: flex-start;
  }

  .report-center-nav,
  .equipment-report-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .equipment-report-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .cloud-status-button {
    max-width: 126px;
    min-height: 24px;
    padding: 3px 8px;
    font-size: 0.64rem;
  }

  .cloud-status-panel {
    align-items: end;
    padding: 8px;
  }

  .cloud-status-card {
    width: 100%;
    max-height: calc(100vh - 16px);
    overflow-y: auto;
  }

  .cloud-status-details > div {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .cloud-status-panel__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cloud-status-panel__actions > * {
    justify-content: center;
    width: 100%;
  }

  .central-alerts-panel {
    padding: 15px;
  }

  .central-alerts-head {
    align-items: start;
  }

  .central-alert {
    grid-template-columns: 9px minmax(0, 1fr);
  }

  .central-alert > button {
    grid-column: 2;
    width: 100%;
  }

  .tools-alerts-modal {
    max-height: calc(100vh - 24px);
    padding: 14px;
  }

  .tools-alert-form-grid,
  .tools-alert-choice-panel,
  .tools-alert-row {
    grid-template-columns: 1fr;
  }

  .tools-alert-check-grid {
    grid-template-columns: 1fr;
  }

  .tools-alert-row-actions,
  .app-reminder-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .info-action-grid {
    grid-template-columns: 1fr;
  }

  .operation-context-panel,
  .operation-form-grid,
  .operation-board,
  .operation-metrics {
    grid-template-columns: 1fr;
  }

  .operation-form-actions,
  .operation-report-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .operation-form-actions button,
  .operation-report-actions button,
  .operation-new-front-button {
    width: 100%;
  }

  .info-hero {
    padding: 18px;
  }

  .info-action-card {
    min-height: auto;
  }

  .registry-search-form {
    grid-template-columns: minmax(0, 1fr) auto auto;
    width: 100%;
  }

  .registry-search-form .registry-search {
    grid-column: 1 / -1;
  }

  .registry-sort {
    grid-column: 1 / 2;
  }

  .compact-search-button {
    display: none;
  }

  .registry-context-filters {
    gap: 6px;
  }

  .registry-context-filters label {
    grid-template-columns: 1fr;
    gap: 3px;
    min-width: min(150px, calc(50% - 3px));
    padding: 7px 9px;
    border-radius: 8px;
  }

  .registry-context-filters select {
    width: 100%;
  }

  .login-body {
    display: block;
    padding: 10px;
  }

  .audit-filter-form,
  .audit-meta-list,
  .audit-change-item {
    grid-template-columns: 1fr;
  }

  .audit-search-field {
    grid-column: auto;
  }

  .audit-filter-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .audit-filter-actions button {
    width: 100%;
  }

  .login-page {
    width: 100%;
    margin: 0;
  }

  .login-intro {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 26px 84px 28px 20px;
  }

  .login-intro .brand-mark {
    width: 126px;
  }

  .login-panel h1 {
    font-size: clamp(2rem, 11vw, 2.75rem);
  }

  .login-tagline {
    max-width: 32ch;
  }

  .creator-mark {
    right: 14px;
    bottom: 18px;
    width: 62px;
    opacity: 0.8;
  }

  .login-workspace {
    gap: 24px;
    padding: 28px 18px;
  }

  .login-form {
    grid-template-columns: 1fr;
  }

  .approval-page {
    padding: 10px;
  }

  .approval-panel {
    padding: 22px 16px;
  }

  .approval-steps {
    grid-template-columns: 1fr;
  }

  .approval-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .terms-page {
    padding: 8px;
  }

  .terms-panel {
    width: calc(100vw - 16px);
    gap: 12px;
    padding: 18px 14px;
  }

  .terms-panel h1 {
    font-size: clamp(1.85rem, 9vw, 2.55rem);
  }

  .terms-lead {
    font-size: 0.9rem;
  }

  .terms-scroll-box {
    max-height: 38vh;
    padding: 14px;
  }

  .terms-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  main {
    width: min(100% - 20px, 1180px);
    margin-top: 16px;
  }

  .report-center-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-mode-button span {
    white-space: normal;
  }

  .equipment-report-workspace {
    padding: 14px;
  }

  .equipment-report-summary {
    grid-template-columns: 1fr 1fr;
  }

  .equipment-report-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .app-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "title title account";
    height: 62px;
    min-height: 62px;
    max-height: 62px;
    padding: 5px 7px 4px;
    gap: 4px 6px;
  }

  .process-nav-shell {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px;
    top: 0;
    min-height: 40px;
    padding: 5px 7px;
  }

  .app-alert-ticker {
    height: 26px;
  }

  .app-alert-ticker__track {
    font-size: 0.72rem;
  }

  .brand-mark {
    width: 78px;
    min-width: 78px;
  }

  .brand-mark strong {
    font-size: 0.64rem;
  }

  .brand-mark span {
    padding: 1px 4px;
    font-size: 0.38rem;
  }

  .app-header h1 {
    justify-self: start;
    min-width: 6ch;
    max-width: 24vw;
    font-size: 0.9rem;
  }

  .account-menu {
    width: min(48vw, 230px);
    max-width: 230px;
    gap: 4px;
    height: 50px;
    min-height: 50px;
    max-height: 50px;
    padding: 3px 4px;
  }

  #headerUserEmail {
    display: none;
  }

  .account-label {
    font-size: 0.58rem;
  }

  .account-role {
    margin-top: 1px;
    border: 0;
    padding: 0;
    background: transparent;
    font-size: 0.56rem;
  }

  .account-menu .row-action,
  .account-access-link {
    min-height: 22px;
    padding: 2px 4px;
    font-size: 0.54rem;
  }

  .app-back-button {
    min-height: 24px;
    padding: 3px 7px;
  }

  .app-back-button strong {
    display: none;
  }

  .site-title {
    max-width: 100%;
  }

  .process-link {
    min-height: 28px;
    padding: 4px 7px;
    font-size: 0.7rem;
  }

  .process-nav {
    scrollbar-width: none;
  }

  .process-nav::-webkit-scrollbar {
    display: none;
  }

  .summary,
  .status-metrics,
  .metric-grid,
  .conference-grid,
  .conference-flow-grid,
  .checklist-grid,
  .agenda-process,
  .reports-grid {
    grid-template-columns: 1fr;
  }

  .status-view-fields {
    grid-template-columns: 1fr;
  }

  .status-hero,
  .config-hero,
  .agenda-hero,
  .inspection-hero {
    padding: 18px;
  }

  .status-hero h2,
  .agenda-hero h2,
  .inspection-hero h2 {
    font-size: 2.25rem;
  }

  .status-clock,
  .agenda-progress-card {
    text-align: left;
  }

  .history-filter-row,
  .equipment-note-form,
  .document-summary-grid,
  .item-transfer-form,
  .observation-form,
  .document-form,
  .sync-config-form,
  .registry-form,
  .batch-form,
  .part-fields {
    grid-template-columns: 1fr;
  }

  .conference-batch-card {
    position: static;
  }

  .part-fields {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .batch-actions {
    grid-template-columns: 1fr;
  }

  .conference-submit-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .conference-submit-actions {
    justify-content: stretch;
  }

  .conference-submit-actions .primary-button,
  .conference-submit-actions .secondary-button {
    width: 100%;
    min-width: 0;
  }

  .conference-grid .tag-list {
    max-height: 36vh;
  }

  .conference-card-toolbar {
    grid-template-columns: 1fr auto 1fr;
  }

  .active-conference-card {
    min-height: auto;
    padding: 14px;
  }

  .active-conference-card.is-expanded {
    inset: 8px;
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    padding: 14px;
    gap: 12px;
  }

  .active-card-hero {
    align-items: center;
    flex-direction: row;
  }

  .active-card-status-stack {
    justify-items: end;
  }

  .active-card-tag {
    font-size: clamp(2.3rem, 14vw, 4.2rem);
  }

  .active-conference-card.is-expanded .active-card-tag {
    font-size: clamp(2.35rem, 13vw, 3.5rem);
  }

  .active-part-fields {
    grid-template-columns: 1fr;
  }

  .active-conference-card.is-expanded .active-part-fields {
    grid-template-columns: 1fr;
  }

  .daily-part-fields-section {
    grid-template-columns: 1fr;
  }

  .hourmeter-summary {
    grid-template-columns: 1fr;
  }

  .daily-part-footer {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .active-card-result,
  .active-card-actions {
    align-items: center;
    flex-direction: row;
  }

  .active-conference-card.is-expanded .active-card-actions {
    justify-content: flex-end;
  }

  .active-conference-card.is-expanded .active-card-actions button {
    width: auto;
  }

  .expanded-card-navigation {
    grid-template-columns: 1fr auto 1fr;
  }

  .activity-summary-grid,
  .activity-row {
    grid-template-columns: 1fr;
  }

  .timeline-strip {
    overflow-x: auto;
  }

  .timeline-block {
    flex-basis: 82px;
    flex-shrink: 0;
  }

  .status-menu-panel {
    width: auto;
    max-height: calc(100vh - 28px);
  }

  .app-update-banner,
  .app-health-banner {
    right: 10px;
    left: 10px;
    bottom: 10px;
    width: auto;
  }

  .app-health-banner {
    grid-template-columns: 1fr;
  }

  .app-health-actions {
    justify-content: stretch;
  }

  .app-health-actions button {
    flex: 1 1 auto;
  }

  .error-diagnostic-grid {
    grid-template-columns: 1fr;
  }

  .status-menu-options {
    grid-template-columns: 1fr;
    max-height: 34vh;
  }

  .status-timeline-head,
  .observation-card-head,
  .tag-list li {
    align-items: stretch;
    flex-direction: column;
  }

  .observation-photo-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .inspection-photo-picker,
  .inspection-actions,
  .inspection-form-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .observation-photo-picker .danger {
    grid-column: 1 / -1;
  }

  .report-workspace-head {
    padding: 18px 16px;
  }

  .report-heading-copy h2 {
    font-size: 1.45rem;
  }

  .report-context {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-context span {
    min-width: 0;
    white-space: normal;
  }

  .report-head-actions .batch-chip,
  .report-head-actions .filter-button,
  .report-primary-actions button {
    flex: 1 1 auto;
  }

  .report-preview {
    min-height: 54vh;
    max-height: none;
    padding: 22px 16px 30px;
    font-size: 0.9rem;
  }

  .report-edit-panel {
    padding: 14px;
  }

  .report-edit-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* ============ ESTILOS PARA RELATÓRIO PDF ============ */
[data-pdf-export="true"] {
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

[data-pdf-export="true"] * {
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

[data-pdf-export="true"] img {
  max-width: 100%;
  height: auto;
}

[data-pdf-export="true"] table {
  table-layout: fixed;
  width: 100%;
}

[data-pdf-export="true"] tbody tr {
  page-break-inside: avoid;
}

.standard-part-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(7, 25, 45, 0.52);
}

.standard-part-dialog {
  display: grid;
  gap: 16px;
  width: min(640px, 100%);
  max-height: min(92vh, 760px);
  overflow-y: auto;
  border: 1px solid #b9c8d8;
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
  box-shadow: 0 30px 76px rgba(7, 52, 92, 0.3);
}

.standard-part-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.standard-part-head span {
  display: block;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.standard-part-head strong {
  display: block;
  color: var(--accent-strong);
  font-size: 1.35rem;
  line-height: 1.1;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--text);
  font: inherit;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.standard-part-form {
  display: grid;
  gap: 14px;
}

.standard-part-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.standard-part-form input,
.standard-part-form select,
.standard-part-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: var(--surface-muted);
  color: var(--text);
  font: inherit;
  font-weight: 500;
}

.standard-part-form textarea {
  min-height: 92px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.standard-part-feedback {
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 800;
}

.standard-part-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.indicators-page {
  width: min(1440px, calc(100% - 32px));
}

.indicators-hero,
.indicators-filter-panel,
.indicator-chart-panel,
.indicator-detail-panel,
.indicator-ranking-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.indicators-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 22px;
}

.indicators-hero h2 {
  margin: 0;
  color: var(--accent-strong);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
}

.indicators-hero p {
  max-width: 780px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.indicators-note {
  display: grid;
  gap: 5px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-muted);
}

.indicators-note span,
.indicators-filter-panel label {
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.indicators-note strong {
  color: var(--accent-strong);
  font-size: 1.25rem;
}

.indicators-note small {
  color: var(--muted);
  line-height: 1.35;
}

.indicators-filter-panel {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px;
}

.indicators-filter-panel label {
  display: grid;
  gap: 6px;
  text-transform: none;
}

.indicators-filter-panel input,
.indicators-filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  padding: 10px 11px;
  background: var(--surface-muted);
  color: var(--text);
  font: inherit;
  font-weight: 700;
}

.indicator-metrics {
  margin-bottom: 18px;
}

.indicator-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.indicator-chart-panel,
.indicator-detail-panel,
.indicator-ranking-panel {
  padding: 18px;
}

.indicator-chart-panel .section-title {
  align-items: start;
  gap: 12px;
}

.indicator-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.indicator-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.indicator-color {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.indicator-color-operacao,
.indicator-segment-operacao { background: var(--success); }
.indicator-color-corretiva,
.indicator-segment-corretiva { background: var(--danger); }
.indicator-color-preventiva,
.indicator-segment-preventiva { background: var(--preventive); }
.indicator-color-sem-operador,
.indicator-segment-sem-operador { background: #caa22b; }
.indicator-color-reserva,
.indicator-segment-reserva,
.indicator-segment-sillion { background: var(--warning); }
.indicator-color-sem-dados,
.indicator-segment-sem-dados { background: #9aa7b5; }

.indicator-chart-shell {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  min-height: 430px;
}

.indicator-y-axis {
  display: grid;
  align-content: space-between;
  padding: 8px 0 50px;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: right;
}

.indicator-chart {
  display: flex;
  align-items: end;
  gap: 9px;
  min-height: 430px;
  overflow-x: auto;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 8px 0;
  background:
    linear-gradient(to top, rgba(205, 216, 228, 0.65) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(180deg, rgba(248, 251, 253, 0.92), rgba(255, 255, 255, 0.8));
}

.indicator-bar-card {
  display: grid;
  grid-template-rows: minmax(280px, 1fr) auto auto;
  gap: 6px;
  justify-items: center;
  flex: 0 0 44px;
  min-width: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.indicator-bar {
  align-self: end;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-start;
  width: 30px;
  min-height: 4px;
  overflow: hidden;
  border: 1px solid rgba(18, 32, 51, 0.18);
  border-radius: 7px 7px 3px 3px;
  background: rgba(231, 237, 244, 0.8);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.35);
}

.indicator-segment {
  display: block;
  width: 100%;
  min-height: 2px;
}

.indicator-bar-card strong {
  color: var(--accent-strong);
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 900;
}

.indicator-bar-card small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.indicator-bar-card:hover .indicator-bar,
.indicator-bar-card:focus-visible .indicator-bar {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.indicator-detail {
  display: grid;
  gap: 14px;
}

.indicator-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-muted);
}

.indicator-detail-grid span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.indicator-detail-grid strong {
  color: var(--accent-strong);
  font-family: var(--font-data);
}

.indicator-event-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.indicator-event-list li,
.indicator-ranking-row {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface-muted);
}

.indicator-event-list strong,
.indicator-ranking-row strong {
  color: var(--accent-strong);
}

.indicator-event-list span,
.indicator-event-list small,
.indicator-ranking-row small {
  color: var(--muted);
  line-height: 1.35;
}

.indicator-ranking-panel {
  margin-top: 18px;
}

.indicator-ranking {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.indicator-ranking-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  text-align: left;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.indicator-ranking-row span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 900;
}

.indicator-ranking-row small {
  grid-column: 2;
}

.secondary-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--accent-strong);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

#standardPartSubstituteField.is-disabled {
  opacity: 0.65;
}

#standardPartSubstituteField.is-disabled input {
  cursor: not-allowed;
}

@media (max-width: 390px) {
  .part-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .status-history-editor-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .document-editor-panel {
    align-items: end;
    padding: 8px;
  }

  .document-editor-dialog {
    width: 100%;
    max-height: calc(100dvh - 16px);
    border-radius: 10px 10px 0 0;
  }

  .document-editor-head {
    padding: 14px 14px;
  }

  .document-editor-dialog .document-form {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .document-editor-dialog .observation-actions {
    justify-content: stretch;
    margin: 4px -14px -14px;
    padding: 12px 14px;
  }

  .document-editor-dialog .observation-actions > * {
    flex: 1 1 130px;
  }

  .audit-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }

  .audit-hero h2 {
    font-size: 1.65rem;
    line-height: 1.05;
  }

  .audit-hero .status-kicker {
    margin-bottom: 5px;
    font-size: 0.68rem;
  }

  .audit-hero .panel-note {
    margin-top: 7px;
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .audit-hero .status-clock {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    min-width: 0;
    padding: 9px 11px;
    text-align: left;
  }

  .audit-hero .status-clock strong {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-size: 1.55rem;
  }

  .audit-hero .status-clock small {
    grid-column: 1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .standard-part-actions {
    flex-direction: column-reverse;
  }

}

/* InfoService Core migration helpers */
#apiState[data-state="online"] {
  color: #c8f7dc;
}

#apiState[data-state="syncing"] {
  color: #ffe1a8;
}

#apiState[data-state="error"] {
  color: #ffd1d1;
}

.sync-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.sync-strip span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sync-strip strong {
  color: var(--accent-strong);
}

.category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.category-head h3 {
  margin: 0;
  color: var(--accent-strong);
  font-size: 1.05rem;
}

.category-head span {
  display: inline-flex;
  min-width: 32px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--accent-strong);
  font-weight: 900;
}

.is-disabled,
button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.status-history-link.is-disabled,
.status-card-history.is-disabled {
  pointer-events: none;
}
