[hidden] {
  display: none !important;
}
.equipment-choices { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:22px 0; }
.equipment-choice { display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:24px;text-align:left;font:inherit;line-height:1.5;color:var(--ink);background:var(--surface);border:2px solid var(--line);border-radius:16px;cursor:pointer; }
.equipment-choice strong { font-size:26px; }
.equipment-choice.selected { border-color:var(--blue);box-shadow:0 0 0 2px color-mix(in srgb,var(--blue),transparent 85%); }
.equipment-choice .badge { white-space:normal;text-align:left; }
.equipment-steps { display:flex;gap:8px;padding:16px;border-bottom:1px solid var(--line); }
.equipment-steps button { flex:1;padding:12px;border:0;border-radius:9px;font:inherit;font-weight:600;color:var(--muted);background:transparent;cursor:pointer; }
.equipment-steps button.active { color:var(--ink);background:var(--line); }
.equipment-instructions { padding-left:24px;max-width:820px; }
.equipment-instructions > li { padding:12px 8px 20px; }
.equipment-instructions > li > strong { display:block;font-size:18px;color:var(--ink); }
.equipment-instructions form { display:grid;gap:12px;margin:18px 0; }
.equipment-test { padding:20px;border:1px solid var(--line);border-radius:12px;margin:20px 0; }
.equipment-test > strong { font-size:26px; }
.equipment-test code { overflow-wrap:anywhere; }
.equipment-technical { margin:22px 0;padding:18px;border:1px solid var(--line);border-radius:12px; }
.equipment-technical summary,.technical-nav summary { cursor:pointer;font-size:13px;color:var(--muted); }
.equipment-technical summary { font-size:15px;font-weight:600; }
.equipment-technical .capture-actions { gap:18px;flex-wrap:wrap; }
.technical-nav { margin-top:18px; }
.technical-nav summary { padding:12px 16px; }
@media(max-width:640px) { .equipment-choices { grid-template-columns:1fr; } .equipment-choice { padding:18px; } .equipment-steps { gap:2px;padding:8px; } .equipment-steps button { padding:12px 5px;font-size:13px; } }
:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #173747;
  background: #f4f7f9;
  font-synthesis: none;
  --ink: #153c50;
  --blue: #03496a;
  --line: #dfe7eb;
  --muted: #71838e;
  --green: #16846b;
  --surface: #fff;
}
.group-tree {
  padding: 0 22px;
}
.group-branch {
  border-bottom: 1px solid var(--line);
}
.group-branch:last-child {
  border-bottom: 0;
}
.group-branch summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
}
.group-branch summary::-webkit-details-marker {
  display: none;
}
.group-branch summary > .icon {
  width: 18px;
  height: 18px;
  transform: rotate(-90deg);
}
.group-branch[open] summary > .icon {
  transform: none;
}
.branch-content {
  margin: 0 0 24px 12px;
  padding: 0 0 0 20px;
  border-left: 2px solid var(--line);
}
.branch-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.branch-heading h3 {
  margin: 0;
  font-size: 13px;
}
.subgroup-list {
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}
.subgroup-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.subgroup-list small {
  color: var(--muted);
  white-space: nowrap;
}
.stats.read-stats {
  padding: 0 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.epc-cell {
  overflow-wrap: anywhere;
  min-width: 150px;
  max-width: 340px;
  font-family: ui-monospace, monospace;
}
.capture-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
a {
  color: var(--blue);
  text-decoration: none;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.loading {
  padding: 50px;
}
button {
  border: 0;
}
.app-shell {
  display: grid;
  grid-template-columns: 236px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  position: fixed;
  width: 236px;
  inset: 0 auto 0 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px 27px;
  border-bottom: 1px solid var(--line);
}
.brand img {
  width: 94px;
  height: 80px;
  object-fit: contain;
}
.lab-label {
  font-size: 11px;
  letter-spacing: 2px;
  border-left: 1px solid var(--line);
  padding-left: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 700;
  color: #94a2aa;
  padding: 29px 15px 11px;
}
.nav {
  display: grid;
  gap: 6px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 550;
  padding: 13px 15px;
  color: #6b808d;
  border-radius: 8px;
}
.nav a.active {
  color: var(--blue);
  background: #eaf2f6;
}
.nav a:hover {
  background: #f0f5f7;
}
.icon {
  display: inline-flex;
  width: 19px;
  height: 19px;
  align-items: center;
  justify-content: center;
  flex: none;
}
.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 22px 12px 4px;
}
.local-state {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
}
.dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: #30a28a;
  display: inline-block;
}
.sidebar-bottom p {
  color: #91a0a8;
  font-size: 11px;
  line-height: 1.7;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 78px;
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #ffffffb3;
  gap: 16px;
}
.breadcrumb {
  font-size: 12px;
  color: #8b9ba4;
}
.breadcrumb strong {
  font-weight: 500;
  color: #385668;
}
.top-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}
.date {
  font-size: 11px;
  color: var(--muted);
}
.user-chip {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.avatar {
  background: #e7eff4;
  color: var(--blue);
  height: 32px;
  width: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.logout {
  background: none;
  color: #7e909a;
  font-size: 11px;
}
.content {
  max-width: 1500px;
  margin: auto;
  padding: 36px 38px 48px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 27px;
}
h1 {
  font-size: 27px;
  letter-spacing: -0.8px;
  font-weight: 650;
  margin: 0 0 8px;
}
p {
  line-height: 1.6;
}
.subtitle {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
h2 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.2px;
  margin: 0;
}
h3 {
  font-size: 14px;
  margin: 0 0 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 17px;
  border-radius: 7px;
  background: var(--blue);
  color: white;
  font-size: 12px;
  font-weight: 600;
  min-height: 40px;
}
.btn.secondary {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn.subtle {
  background: #edf3f6;
  color: var(--blue);
}
.btn.danger {
  background: #a7383c;
}
.text-btn {
  background: none;
  color: var(--blue);
  padding: 4px 0;
  font-size: 12px;
  font-weight: 600;
}
.hero {
  background: linear-gradient(115deg, #03496a, #073a52);
  color: #fff;
  border-radius: 12px;
  padding: 29px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  min-height: 170px;
  margin-bottom: 26px;
}
.hero:after {
  content: "";
  width: 250px;
  height: 250px;
  position: absolute;
  right: 60px;
  top: -70px;
  border: 1px solid #ffffff12;
  border-radius: 50%;
  box-shadow:
    0 0 0 40px #ffffff05,
    0 0 0 80px #ffffff04;
  pointer-events: none;
}
.hero h2 {
  font-size: 23px;
  line-height: 1.4;
  font-weight: 550;
  margin: 10px 0;
}
.hero p {
  font-size: 12px;
  color: #bbd1dc;
  margin: 0;
  max-width: 500px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 650;
  color: #9ac5d5;
}
.hero .btn {
  background: white;
  color: var(--blue);
  z-index: 1;
  white-space: nowrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 26px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #69808d;
  font-size: 12px;
}
.stat .icon {
  background: #f0f5f8;
  border-radius: 7px;
  width: 32px;
  height: 32px;
  padding: 7px;
  color: #5a8298;
}
.stat strong {
  display: block;
  font-size: 29px;
  font-weight: 650;
  margin: 17px 0 8px;
  letter-spacing: -1px;
}
.stat small {
  font-size: 11px;
  color: #8b9ba5;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, 1fr);
  gap: 24px;
  align-items: start;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 24px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 24px;
  border-bottom: 1px solid #edf1f4;
  gap: 15px;
}
.panel-body {
  padding: 24px;
}
.count-label {
  font-size: 11px;
  color: #7d919c;
  margin-top: 5px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
th {
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 600;
  color: #8597a2;
  background: #fafcfd;
  padding: 14px 20px;
  white-space: nowrap;
}
td {
  padding: 17px 20px;
  border-bottom: 1px solid #eff3f5;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
.name-cell {
  font-weight: 600;
  color: #274b60;
}
.name-cell small {
  display: block;
  font-weight: 400;
  font-size: 10px;
  color: #92a0a9;
  margin-top: 5px;
}
.badge {
  display: inline-flex;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 10px;
  white-space: nowrap;
  background: #edf4f7;
  color: #597988;
}
.badge.green {
  background: #e9f6f0;
  color: #178268;
}
.badge.amber {
  background: #fff5e3;
  color: #a9761f;
}
.badge.gray {
  background: #f0f3f5;
  color: #80929d;
}
.badge.red {
  background: #fceced;
  color: #ac4950;
}
.empty {
  text-align: center;
  padding: 40px 24px;
  color: #8b9ca5;
  font-size: 12px;
}
.empty .icon {
  display: flex;
  margin: 0 auto 14px;
  height: 32px;
  width: 32px;
  color: #a4bbc8;
}
.empty strong {
  color: #466474;
  display: block;
  margin-bottom: 5px;
  font-weight: 550;
}
.empty p {
  margin: 5px 0 17px;
}
.equipment {
  padding: 20px 24px;
  border-bottom: 1px solid #eff3f5;
  display: flex;
  gap: 13px;
}
.equipment:last-child {
  border-bottom: 0;
}
.equipment-icon {
  border: 1px solid var(--line);
  border-radius: 9px;
  width: 41px;
  height: 43px;
  display: grid;
  place-items: center;
  color: #618596;
  background: #fafcfd;
}
.equipment-info {
  min-width: 0;
  flex: 1;
}
.equipment h3 {
  font-size: 12px;
  margin: 2px 0 5px;
}
.equipment p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0;
}
.notice {
  background: #eff5f8;
  border: 1px solid #dce9ef;
  color: #607e8f;
  padding: 15px 18px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 22px;
}
.notice.warn {
  background: #fff9ec;
  border-color: #f1e5c7;
  color: #947431;
}
.activity {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f3f5;
}
.activity:last-child {
  border: 0;
}
.activity .dot {
  margin-top: 5px;
  background: #8bacba;
}
.activity p {
  font-size: 11px;
  color: #577283;
  margin: 0;
}
.activity small {
  color: #99a7af;
  font-size: 10px;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}
.search {
  max-width: 350px;
  width: 100%;
}
.field {
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: #557080;
}
.field span,
.field label {
  font-weight: 550;
}
input,
select,
textarea {
  padding: 11px 12px;
  border: 1px solid #d6e1e7;
  border-radius: 6px;
  background: white;
  color: #23485c;
  min-width: 0;
  width: 100%;
  font-size: 13px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #4b8ba9;
  box-shadow: 0 0 0 3px #03496a0a;
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.span2 {
  grid-column: 1/-1;
}
.help {
  font-size: 11px;
  color: #8a9ca6;
  line-height: 1.6;
  margin: 5px 0;
}
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #edf1f3;
}
.error {
  color: #b24950;
  font-size: 12px;
  line-height: 1.6;
}
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-story {
  background: #073f59;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12%;
  position: relative;
}
.auth-story .wordmark {
  font-size: 38px;
  letter-spacing: 7px;
  font-weight: 750;
  margin-bottom: 80px;
}
.auth-story h1 {
  font-size: 40px;
  line-height: 1.2;
  max-width: 440px;
  margin-bottom: 25px;
}
.auth-story p {
  font-size: 15px;
  color: #bed0da;
  max-width: 440px;
}
.auth-meta {
  font-size: 11px;
  color: #94b6c7;
  margin-top: 60px;
  line-height: 2;
}
.auth-main {
  display: grid;
  place-items: center;
  background: white;
  padding: 45px;
}
.auth-card {
  width: 100%;
  max-width: 360px;
}
.auth-card img {
  width: 130px;
  height: 108px;
  object-fit: contain;
  display: block;
  margin-bottom: 30px;
}
.auth-card h2 {
  font-size: 24px;
  margin-bottom: 10px;
}
.auth-card p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}
.auth-card form {
  display: grid;
  gap: 18px;
}
.auth-card .btn {
  width: 100%;
  margin-top: 6px;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #91a2ad;
  font-size: 10px;
  margin-top: 10px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  width: min(640px, 94vw);
  max-height: 90vh;
  box-shadow: 0 20px 90px #05293f30;
  color: var(--ink);
}
dialog::backdrop {
  background: #092d4560;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 27px;
  border-bottom: 1px solid var(--line);
}
.modal-body {
  padding: 25px 27px;
}
.close-modal {
  background: #f1f5f7;
  border-radius: 50%;
  height: 28px;
  width: 28px;
  color: #758b98;
  font-size: 20px;
}
.units-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-height: 190px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
}
.check {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  padding: 5px;
}
.check input {
  flex: none;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.review-total {
  font-size: 35px;
  font-weight: 650;
  color: var(--blue);
  padding: 10px 0;
}
.review {
  background: #f3f7f9;
  border-radius: 8px;
  padding: 20px;
}
.review p {
  margin: 5px 0;
  font-size: 13px;
}
.back-link {
  display: inline-flex;
  font-size: 12px;
  color: #6f8997;
  margin-bottom: 20px;
}
.event-card {
  padding: 23px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #edf2f5;
  gap: 16px;
}
.event-card:last-child {
  border: 0;
}
.event-card h3 {
  margin: 0 0 7px;
}
.event-card p {
  margin: 0;
  color: #879aa5;
  font-size: 11px;
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #173f53;
  color: white;
  padding: 15px 22px;
  border-radius: 9px;
  font-size: 13px;
  max-width: 400px;
  z-index: 5;
  box-shadow: 0 6px 25px #163d5225;
}
.settings-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.inline-form {
  display: grid;
  gap: 13px;
}
.audit-code {
  font-family: monospace;
  font-size: 10px;
}
.mobile-label {
  display: none;
}
@media (min-width: 1600px) {
  .content {
    padding-top: 45px;
  }
  .hero {
    min-height: 190px;
  }
  .stat {
    padding: 25px;
  }
}
@media (max-width: 1150px) {
  .app-shell {
    grid-template-columns: 190px 1fr;
  }
  .sidebar {
    width: 190px;
    padding: 25px 12px;
  }
  .brand {
    padding: 0 5px 20px;
    gap: 6px;
  }
  .brand img {
    width: 80px;
  }
  .lab-label {
    font-size: 9px;
    padding-left: 8px;
  }
  .content {
    padding: 28px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .date {
    display: none;
  }
  .hero {
    padding: 25px;
  }
  .settings-cols {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: static;
    width: auto;
    padding: 12px 15px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    border: 0;
    padding: 0;
  }
  .brand img {
    width: 70px;
    height: 55px;
  }
  .lab-label {
    font-size: 9px;
  }
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .nav {
    display: flex;
    gap: 4px;
    margin-top: 9px;
    overflow: auto;
  }
  .nav a {
    padding: 10px;
    font-size: 11px;
    gap: 5px;
    white-space: nowrap;
  }
  .nav .icon {
    width: 15px;
    height: 15px;
  }
  .topbar {
    height: 56px;
    padding: 0 18px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .user-chip {
    font-size: 11px;
  }
  .avatar {
    height: 25px;
    width: 25px;
  }
  .content {
    padding: 24px 17px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
  }
  h1 {
    font-size: 23px;
  }
  .page-heading .btn {
    font-size: 11px;
    padding: 10px 12px;
  }
  .hero {
    display: block;
    padding: 25px;
    min-height: auto;
  }
  .hero h2 {
    font-size: 20px;
  }
  .hero .btn {
    margin-top: 20px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat strong {
    font-size: 26px;
    margin-top: 10px;
  }
  .stat-top {
    font-size: 11px;
  }
  .stat small {
    font-size: 10px;
  }
  .panel-head {
    padding: 19px;
  }
  .panel-body {
    padding: 19px;
  }
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-story {
    display: none;
  }
  .auth-main {
    min-height: 100vh;
    padding: 30px;
  }
  .form-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .span2 {
    grid-column: auto;
  }
  .units-list {
    grid-template-columns: 1fr 1fr;
  }
  .footer {
    font-size: 9px;
  }
  .modal-body {
    padding: 22px;
  }
  .event-card {
    padding: 20px;
  }
  .event-card .btn {
    padding: 9px 11px;
  }
  .subtitle {
    font-size: 12px;
  }
}

/* Navegação de cadastros e preferência de aparência. */
:root {
  color-scheme: light;
}
.sidebar {
  overflow-y: auto;
}
.nav-parent {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 15px;
  border-radius: 8px;
  text-align: left;
  background: transparent;
  color: #6b808d;
  font-size: 13px;
  font-weight: 550;
}
.nav-parent > span:nth-child(2) {
  flex: 1;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.7px;
}
.nav-parent > .icon:last-child {
  width: 15px;
  height: 15px;
  transform: rotate(-90deg);
}
.nav-parent[aria-expanded="true"] > .icon:last-child {
  transform: none;
}
.nav-parent:hover {
  background: #f0f5f7;
}
.nav-parent.active {
  color: var(--blue);
}
.submenu {
  display: grid;
  gap: 3px;
  margin: 4px 0 8px 24px;
  border-left: 1px solid var(--line);
  padding-left: 10px;
}
.nav .submenu a {
  padding: 9px 12px;
  font-size: 12px;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 11px;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
}
.theme-toggle:hover {
  border-color: #87a9bc;
}
.theme-toggle .icon {
  width: 16px;
  height: 16px;
}
.auth-main {
  position: relative;
}
.auth-theme {
  position: absolute;
  top: 25px;
  right: 28px;
}
.cell-note {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: var(--muted);
}
.user-access-form {
  max-width: 460px;
  margin-bottom: 28px;
}
.user-chip > span:last-child {
  max-width: 150px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
:focus-visible {
  outline: 2px solid #3b88b1;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  background: #101a23;
  color: #dce7ee;
  --ink: #dce7ee;
  --blue: #8ecff3;
  --line: #2a3d4b;
  --muted: #a0b3c1;
  --green: #70d9b5;
  --surface: #16222e;
}
:root[data-theme="dark"] .sidebar {
  background: #121d27;
}
:root[data-theme="dark"] .topbar {
  background: #141f2a;
}
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .stat,
:root[data-theme="dark"] .auth-main,
:root[data-theme="dark"] dialog {
  background: var(--surface);
}
:root[data-theme="dark"] .brand img,
:root[data-theme="dark"] .auth-card img {
  background: #f5f8fa;
  padding: 5px;
  border-radius: 7px;
}
:root[data-theme="dark"] .nav a,
:root[data-theme="dark"] .nav-parent {
  color: #b1c3d0;
}
:root[data-theme="dark"] .nav a.active,
:root[data-theme="dark"] .nav-parent.active {
  color: #b0ddf7;
  background: #1b3446;
}
:root[data-theme="dark"] .nav a:hover,
:root[data-theme="dark"] .nav-parent:hover {
  background: #213747;
}
:root[data-theme="dark"] .nav-label,
:root[data-theme="dark"] .breadcrumb,
:root[data-theme="dark"] .sidebar-bottom p,
:root[data-theme="dark"] .logout,
:root[data-theme="dark"] .stat small,
:root[data-theme="dark"] .count-label,
:root[data-theme="dark"] .name-cell small,
:root[data-theme="dark"] .help,
:root[data-theme="dark"] .activity small,
:root[data-theme="dark"] .footer {
  color: #a0b3c1;
}
:root[data-theme="dark"] .breadcrumb strong,
:root[data-theme="dark"] .stat-top,
:root[data-theme="dark"] .name-cell,
:root[data-theme="dark"] .empty strong,
:root[data-theme="dark"] .field,
:root[data-theme="dark"] .activity p,
:root[data-theme="dark"] .back-link {
  color: #ccdae4;
}
:root[data-theme="dark"] .avatar,
:root[data-theme="dark"] .stat .icon,
:root[data-theme="dark"] .equipment-icon,
:root[data-theme="dark"] .close-modal {
  background: #233a4b;
  color: #b0d8ee;
}
:root[data-theme="dark"] .btn {
  background: #0b668d;
  color: white;
}
:root[data-theme="dark"] .btn.secondary {
  background: #1a2b39;
  color: #dce7ee;
}
:root[data-theme="dark"] .btn.subtle {
  background: #233a4b;
  color: #b8def3;
}
:root[data-theme="dark"] .btn.danger {
  background: #a7383c;
}
:root[data-theme="dark"] .hero {
  background: linear-gradient(115deg, #093d57, #0a293b);
}
:root[data-theme="dark"] .hero .btn {
  background: #e4f2fa;
  color: #123c52;
}
:root[data-theme="dark"] .panel-head,
:root[data-theme="dark"] td,
:root[data-theme="dark"] .equipment,
:root[data-theme="dark"] .activity,
:root[data-theme="dark"] .form-actions,
:root[data-theme="dark"] .event-card {
  border-color: var(--line);
}
:root[data-theme="dark"] th {
  background: #1b2b38;
  color: #b0c3cf;
}
:root[data-theme="dark"] .badge {
  background: #233b4b;
  color: #bfdaea;
}
:root[data-theme="dark"] .badge.green {
  background: #153d34;
  color: #9ae5c8;
}
:root[data-theme="dark"] .badge.amber {
  background: #453722;
  color: #efcb87;
}
:root[data-theme="dark"] .badge.gray {
  background: #293643;
  color: #c1ced8;
}
:root[data-theme="dark"] .badge.red {
  background: #492931;
  color: #ffc0c5;
}
:root[data-theme="dark"] .empty,
:root[data-theme="dark"] .event-card p {
  color: #acbfcd;
}
:root[data-theme="dark"] .empty .icon {
  color: #90b2c8;
}
:root[data-theme="dark"] .notice {
  background: #1b3343;
  border-color: #355367;
  color: #c1d7e5;
}
:root[data-theme="dark"] .notice.warn {
  background: #3a3020;
  border-color: #685533;
  color: #efd39c;
}
:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
  background: #101d27;
  border-color: #405a6c;
  color: #e3edf4;
}
:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder {
  color: #92a9b9;
  opacity: 1;
}
:root[data-theme="dark"] input:focus,
:root[data-theme="dark"] select:focus,
:root[data-theme="dark"] textarea:focus {
  border-color: #8ecff3;
  box-shadow: 0 0 0 3px #8ecff31a;
}
:root[data-theme="dark"] .error {
  color: #ffafb6;
}
:root[data-theme="dark"] .review {
  background: #1c3040;
}
:root[data-theme="dark"] dialog::backdrop {
  background: #030b14a6;
}
:root[data-theme="dark"] #toast {
  background: #264e66;
  color: #f4fbff;
}
:root[data-theme="dark"] :focus-visible {
  outline-color: #9ddcff;
}

@media (max-width: 700px) {
  .nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    gap: 4px;
  }
  .nav > a {
    justify-content: center;
    padding: 10px 6px;
  }
  .registration-nav {
    grid-column: 1/-1;
  }
  .nav-parent {
    padding: 10px 12px;
  }
  .submenu {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 3px 0 5px;
    border: 0;
    padding: 0;
  }
  .nav .submenu a {
    justify-content: center;
    padding: 9px 3px;
    font-size: 11px;
  }
  .topbar {
    gap: 8px;
  }
  .top-actions {
    gap: 10px;
  }
  .theme-toggle {
    padding: 8px;
  }
  .theme-toggle > span:last-child {
    display: none;
  }
  .user-chip {
    gap: 6px;
  }
  .user-chip > span:last-child {
    max-width: 75px;
  }
  .auth-theme {
    top: 18px;
    right: 20px;
  }
  .auth-card {
    padding-top: 30px;
  }
}

.row-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.subgroup-list li {
  align-items: center;
  flex-wrap: wrap;
}
.subgroup-list li > span {
  flex: 1;
  min-width: 80px;
}
.group-branch .branch-heading {
  align-items: flex-start;
}
.units-list .btn {
  margin-top: 8px;
}
.detail-grid {
  margin-top: 16px;
}

.bench-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding-left: 24px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 24px;
}
.bench-identity {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 10px;
  font-size: 13px;
}
.bench-identity dt {
  color: var(--muted);
}
.bench-identity dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.bench-evidence {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 560px;
  font-size: 12px;
}
@media (max-width: 700px) {
  .bench-identity {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .bench-identity dd {
    margin-bottom: 10px;
  }
}

@media (max-width: 600px) {
  .stats.read-stats {
    grid-template-columns: 1fr;
  }
}
