:root {
  --gpp-navy: #06142B;
  --gpp-panel: #0A2143;
  --gpp-card: #0E2A50;
  --gpp-blue: #24406B;
  --gpp-band: #123158;
  --gpp-gold: #C99A3E;
  --gpp-gold-text: #E1B75C;
  --gpp-gray: #E9EDF4;
  --gpp-text: #06142B;
  --gpp-border: rgba(36, 64, 107, .18);
  --gpp-muted: rgba(36, 64, 107, .76);
  --gpp-surface: #fff;
  --gpp-lab: #2F6B54;
  --gpp-ok: #3F7D55;
  --gpp-danger: #9C4A3A;
  --gpp-soft-shadow: 0 10px 28px rgba(6, 20, 43, .10);
  --gpp-radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--gpp-text);
  background: var(--gpp-gray);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.lab-auth {
  background: var(--gpp-navy);
}

.auth-shell,
.setup-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.auth-card,
.setup-card {
  width: min(720px, 100%);
  padding: 40px;
  border: 1px solid var(--gpp-border);
  border-top: 4px solid var(--gpp-gold);
  background: #fff;
  box-shadow: var(--gpp-soft-shadow);
}

.setup-kicker {
  margin: 0 0 12px;
  color: var(--gpp-gold);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 16px;
  color: var(--gpp-navy);
  line-height: 1.15;
}

p {
  margin: 0;
  line-height: 1.7;
}

.auth-card__intro,
.auth-note {
  color: rgba(23, 32, 51, .72);
}

.auth-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gpp-navy);
}

input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid rgba(8, 17, 31, .18);
  border-radius: 4px;
  font: inherit;
  color: var(--gpp-text);
  background: #fff;
}

select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid rgba(8, 17, 31, .18);
  border-radius: 4px;
  font: inherit;
  color: var(--gpp-text);
  background: #fff;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gpp-gold-text);
  outline-offset: 2px;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 4px;
  padding: 11px 18px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--gpp-navy);
  background: var(--gpp-gold);
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

button:hover,
.btn-link:hover {
  background: var(--gpp-gold-text);
}

button:active,
.btn-link:active {
  transform: translateY(1px);
}

.alert {
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid rgba(196, 162, 77, .45);
  background: rgba(196, 162, 77, .12);
  color: var(--gpp-navy);
  line-height: 1.5;
}

.session-warning {
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 0;
  padding: 12px 16px;
  border: 1px solid rgba(196, 162, 77, .46);
  border-radius: 10px;
  background: rgba(196, 162, 77, .1);
  color: #fff;
  line-height: 1.45;
}

.auth-note {
  margin-top: 22px;
  font-size: 13px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 70px;
  padding: 12px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: var(--gpp-navy);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.brand__mark {
  color: var(--gpp-gold);
  font-size: 24px;
  line-height: 1;
}

.brand__text {
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.topnav a,
.logout-form button {
  color: rgba(255, 255, 255, .76);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.topnav a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
}

.topnav a:hover {
  color: #fff;
}

.logout-form {
  margin: 0;
}

.logout-form button {
  min-height: 36px;
  border: 1px solid rgba(196, 162, 77, .5);
  background: transparent;
  color: var(--gpp-gold);
}

.panel-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 72px;
}

.page-head {
  margin-bottom: 28px;
}

.page-head h1 {
  font-size: clamp(30px, 4vw, 48px);
  max-width: 780px;
}

.page-head p:not(.setup-kicker) {
  max-width: 760px;
  color: rgba(23, 32, 51, .72);
}

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

.metric-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.catalog-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.metric-card,
.panel-card {
  border: 1px solid var(--gpp-border);
  background: var(--gpp-surface);
  box-shadow: var(--gpp-soft-shadow);
}

.metric-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 132px;
  padding: 22px;
}

.metric-card--compact {
  min-height: 92px;
  padding: 16px;
}

.metric-card span {
  color: rgba(23, 32, 51, .68);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.metric-card strong {
  color: var(--gpp-navy);
  font-size: 42px;
  line-height: 1;
}

.metric-card--compact strong {
  font-size: 30px;
}

.metric-card__text {
  font-size: 18px !important;
  line-height: 1.25 !important;
}

.metric-card--warn {
  border-color: rgba(196, 162, 77, .55);
}

.panel-card {
  margin-top: 24px;
  padding: 28px;
}

.panel-card--flush {
  margin-top: 0;
}

.panel-card--lab {
  border-color: rgba(47, 107, 84, .28);
  background: linear-gradient(180deg, #fff 0%, rgba(47, 107, 84, .06) 100%);
}

.panel-card h2 {
  margin: 0 0 10px;
  color: var(--gpp-navy);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-head .muted-text {
  margin-bottom: 0;
}

.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}

.case-hero h1 {
  max-width: 820px;
  font-size: clamp(32px, 4vw, 52px);
}

.case-hero p:not(.setup-kicker) {
  max-width: 760px;
  color: rgba(23, 32, 51, .72);
}

.case-hero__badges,
.action-strip,
.document-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.case-hero__badges {
  justify-content: flex-end;
}

.action-strip {
  margin: -4px 0 24px;
  padding: 14px;
  border: 1px solid var(--gpp-border);
  background: #fff;
  box-shadow: var(--gpp-soft-shadow);
}

.page-actions {
  margin: -10px 0 24px;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 4px;
  background: var(--gpp-gold);
  color: var(--gpp-navy);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .16s ease, transform .16s ease;
}

.btn-link--small {
  min-height: 34px;
  padding: 8px 11px;
  font-size: 11px;
}

.muted-text,
.form-help,
.table-note,
.empty-state {
  color: rgba(23, 32, 51, .66);
}

.muted-text {
  margin-bottom: 18px;
}

.form-help {
  font-size: 13px;
  line-height: 1.55;
}

.panel-card > .stack-form:not(.stack-form--inline) {
  max-width: 780px;
}

.document-upload-form {
  margin: 20px 0 26px;
  padding: 20px;
  border: 1px solid rgba(8, 17, 31, .1);
  background: rgba(244, 245, 247, .7);
}

.document-table {
  margin-top: 18px;
}

.table-note {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.4;
}

.empty-state {
  margin-top: 18px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.admin-grid,
.permission-grid,
.parameter-grid {
  display: grid;
  gap: 16px;
}

.admin-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.permission-grid,
.parameter-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.admin-card,
.permission-card {
  border: 1px solid rgba(8, 17, 31, .1);
  background: rgba(244, 245, 247, .72);
}

.admin-card {
  display: flex;
  min-height: 138px;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  color: inherit;
  text-decoration: none;
}

.admin-card strong,
.permission-card h3,
.parameter-grid h3 {
  margin: 0;
  color: var(--gpp-navy);
}

.admin-card strong {
  font-size: 18px;
}

.admin-card span {
  color: rgba(23, 32, 51, .7);
  line-height: 1.5;
}

.permission-card {
  padding: 18px;
}

.permission-card ul {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding-left: 18px;
}

.permission-card li {
  line-height: 1.45;
}

.parameter-grid article {
  min-width: 0;
}

.parameter-grid h3 {
  font-size: 16px;
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.status-list,
.compact-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.status-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(8, 17, 31, .08);
  background: rgba(244, 245, 247, .7);
}

.status-list span,
.compact-list span {
  color: rgba(23, 32, 51, .68);
  font-size: 13px;
}

.status-list strong {
  color: var(--gpp-navy);
  font-size: 22px;
}

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

.case-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 170px;
  padding: 18px;
  border: 1px solid var(--gpp-border);
  background: #fff;
}

.case-tile__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.case-tile h3 {
  margin: 0;
  color: var(--gpp-navy);
  font-size: 18px;
  line-height: 1.25;
}

.case-tile h3 a {
  color: inherit;
  text-decoration-color: rgba(196, 162, 77, .7);
}

.case-tile p {
  color: rgba(23, 32, 51, .72);
  line-height: 1.5;
}

.case-tile .table-note {
  margin-top: auto;
}

.semaphore {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--gpp-navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.semaphore--ok {
  border: 1px solid rgba(8, 17, 31, .14);
  background: rgba(244, 245, 247, .9);
}

.semaphore--done {
  border: 1px solid rgba(39, 124, 82, .25);
  background: rgba(39, 124, 82, .12);
}

.semaphore--warn,
.semaphore--client {
  border: 1px solid rgba(196, 162, 77, .5);
  background: rgba(196, 162, 77, .16);
}

.semaphore--danger {
  border: 1px solid rgba(178, 55, 55, .28);
  background: rgba(178, 55, 55, .12);
}

.compact-list li {
  display: grid;
  gap: 5px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(8, 17, 31, .08);
}

.compact-list li:last-child {
  border-bottom: 0;
}

.compact-list a,
.compact-list strong {
  color: var(--gpp-navy);
  font-weight: 800;
}

.compact-list--boxed li {
  padding: 12px;
  border: 1px solid rgba(8, 17, 31, .08);
  background: rgba(244, 245, 247, .7);
}

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

.document-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 18px;
  border: 1px solid var(--gpp-border);
  background: #fff;
}

.document-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.document-card h3 {
  margin: 0;
  color: var(--gpp-navy);
  font-size: 19px;
  line-height: 1.25;
}

.document-card__description {
  color: rgba(23, 32, 51, .72);
  font-size: 14px;
  line-height: 1.55;
}

.document-card__actions {
  margin-top: auto;
  padding-top: 4px;
}

.catalog-domain-stack {
  display: grid;
  gap: 24px;
}

.catalog-domain {
  display: grid;
  gap: 14px;
}

.catalog-domain h3 {
  margin: 0;
  color: var(--gpp-navy);
  font-size: 18px;
}

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

.catalog-card {
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 18px;
  border: 1px solid rgba(8, 17, 31, .1);
  background: #fff;
}

.catalog-card--done {
  border-color: rgba(47, 107, 84, .28);
}

.catalog-card--warn {
  border-color: rgba(196, 162, 77, .44);
}

.catalog-card--danger {
  border-color: rgba(156, 74, 58, .32);
}

.catalog-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.catalog-card__head strong {
  color: var(--gpp-navy);
  font-size: 17px;
  line-height: 1.25;
}

.catalog-card p {
  color: rgba(23, 32, 51, .72);
  font-size: 14px;
  line-height: 1.55;
}

.catalog-meta {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 7px 12px;
  margin: 0;
  font-size: 13px;
}

.catalog-meta dt {
  color: rgba(23, 32, 51, .62);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.catalog-meta dd {
  min-width: 0;
  margin: 0;
  color: rgba(23, 32, 51, .76);
}

.catalog-note {
  padding: 10px 12px;
  border-left: 3px solid var(--gpp-gold);
  background: rgba(196, 162, 77, .08);
}

.catalog-cta {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(47, 107, 84, .28);
  background: rgba(47, 107, 84, .1);
  color: var(--gpp-navy);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.catalog-cta--disabled {
  border-color: rgba(8, 17, 31, .12);
  background: rgba(244, 245, 247, .88);
  color: rgba(23, 32, 51, .6);
}

.form-static,
.lab-governance-note {
  padding: 14px 16px;
  border: 1px solid rgba(8, 17, 31, .1);
  background: rgba(244, 245, 247, .72);
}

.form-static span {
  display: block;
  margin-bottom: 5px;
  color: rgba(23, 32, 51, .62);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.form-static strong,
.lab-governance-note strong {
  color: var(--gpp-navy);
}

.form-static p,
.lab-governance-note p {
  margin-top: 5px;
  color: rgba(23, 32, 51, .7);
  font-size: 14px;
  line-height: 1.55;
}

.document-meta {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 12px;
  margin: 0;
  font-size: 13px;
}

.document-meta dt {
  color: rgba(23, 32, 51, .62);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.document-meta dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.checksum {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.document-versions {
  border-top: 1px solid rgba(8, 17, 31, .08);
  padding-top: 10px;
}

.document-versions summary {
  color: var(--gpp-navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.document-versions a {
  color: var(--gpp-navy);
  font-size: 12px;
  font-weight: 800;
  text-decoration-color: rgba(196, 162, 77, .7);
}

.subsection-title {
  margin: 22px 0 10px;
  color: var(--gpp-navy);
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.inline-version-form {
  margin-top: 10px;
}

.inline-version-form summary {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  color: var(--gpp-navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.inline-version-form form {
  min-width: 260px;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid rgba(8, 17, 31, .1);
  background: #fff;
}

.comment-form {
  margin: 20px 0 26px;
}

.comment-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.comment-list li {
  padding: 16px;
  border: 1px solid rgba(8, 17, 31, .1);
  background: rgba(244, 245, 247, .7);
}

.notice-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.notice-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(8, 17, 31, .1);
  background: rgba(244, 245, 247, .7);
}

.notice-list h3 {
  margin: 10px 0 4px;
  color: var(--gpp-navy);
}

.comment-list__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 14px;
  margin-bottom: 8px;
}

.comment-list__head strong {
  color: var(--gpp-navy);
}

.comment-list__head span {
  color: rgba(23, 32, 51, .62);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(8, 17, 31, .08);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 760px;
  background: #fff;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(8, 17, 31, .08);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--gpp-navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody tr:hover {
  background: rgba(244, 245, 247, .72);
}

td a {
  color: var(--gpp-navy);
  font-weight: 800;
  text-decoration-color: rgba(196, 162, 77, .7);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border: 1px solid rgba(196, 162, 77, .45);
  border-radius: 999px;
  background: rgba(196, 162, 77, .1);
  color: var(--gpp-navy);
  font-size: 12px;
  font-weight: 700;
}

.stack-form {
  display: grid;
  gap: 18px;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
}

.filter-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 16px;
  margin-top: 18px;
}

.filter-form__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
}

.filter-form__actions a {
  color: var(--gpp-navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration-color: rgba(196, 162, 77, .7);
  text-transform: uppercase;
}

.stack-form--inline {
  grid-template-columns: minmax(180px, 260px) 1fr auto;
  align-items: end;
}

.detail-list {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px 18px;
  margin: 0;
}

.detail-list dt {
  color: rgba(23, 32, 51, .62);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0;
}

.detail-list--wide {
  grid-template-columns: 170px 1fr;
}

.timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 22px;
}

.timeline li::marker {
  color: var(--gpp-gold);
}

.timeline strong {
  display: block;
  color: var(--gpp-navy);
}

.timeline span {
  display: block;
  margin-top: 3px;
  color: rgba(23, 32, 51, .62);
  font-size: 13px;
}

.timeline p {
  margin-top: 6px;
}

.check-group {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(8, 17, 31, .12);
}

.check-group legend {
  padding: 0 6px;
  color: var(--gpp-navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.check-row {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}

.check-row input {
  width: 18px;
  min-height: 18px;
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topnav {
    grid-column: 1 / -1;
    order: 3;
  }

  .metric-grid--four,
  .catalog-summary,
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 18px;
  }

  .topnav {
    flex-wrap: wrap;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid--four,
  .catalog-summary,
  .catalog-grid,
  .dashboard-grid,
  .admin-grid,
  .permission-grid,
  .parameter-grid,
  .case-layout,
  .document-grid,
  .case-board,
  .search-form,
  .filter-form,
  .stack-form--inline,
  .detail-list {
    grid-template-columns: 1fr;
  }

  .case-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .case-hero__badges {
    justify-content: flex-start;
  }

  .section-head {
    display: grid;
  }

  .notice-list li {
    grid-template-columns: 1fr;
  }

  .auth-card,
  .setup-card {
    padding: 28px 22px;
  }
}

/* COD-VIS-001: rebase visual patrimonial GPP Lab */
.auth-card,
.setup-card,
.metric-card,
.panel-card,
.action-strip,
.admin-card,
.permission-card,
.case-tile,
.document-card,
.comment-list li,
.notice-list li,
.compact-list--boxed li,
.document-upload-form,
.inline-version-form form,
.table-wrap,
.status-list li,
.status-pill,
.check-group {
  border-color: var(--gpp-border);
  border-radius: var(--gpp-radius);
  box-shadow: var(--gpp-soft-shadow);
}

.topbar {
  background: var(--gpp-navy);
  border-bottom-color: rgba(201, 154, 62, .34);
}

.brand__mark,
.setup-kicker,
.logout-form button,
.timeline li::marker {
  color: var(--gpp-gold-text);
}

button,
.btn-link {
  background: var(--gpp-gold);
  color: var(--gpp-navy);
  border-radius: var(--gpp-radius);
}

input,
select,
textarea {
  border-color: var(--gpp-border);
  border-radius: var(--gpp-radius);
}

.metric-card span,
.muted-text,
.form-help,
.table-note,
.empty-state,
.status-list span,
.compact-list span,
.case-tile p,
.document-card__description,
.document-meta dt,
.detail-list dt,
.timeline span,
.comment-list__head span {
  color: var(--gpp-muted);
}

.metric-card strong,
.panel-card h2,
.admin-card strong,
.permission-card h3,
.parameter-grid h3,
.case-tile h3,
.document-card h3,
.compact-list a,
.compact-list strong,
.subsection-title,
.inline-version-form summary,
.timeline strong,
.notice-list h3 {
  color: var(--gpp-navy);
}

.document-upload-form,
.admin-card,
.permission-card,
.status-list li,
.compact-list--boxed li,
.comment-list li,
.notice-list li {
  background: rgba(233, 237, 244, .72);
}

th {
  background: var(--gpp-band);
  color: #FFFFFF;
}

tbody tr:hover {
  background: rgba(233, 237, 244, .72);
}

.semaphore {
  gap: 6px;
  border-radius: 999px;
}

.semaphore--ok {
  border-color: rgba(36, 64, 107, .24);
  background: rgba(233, 237, 244, .9);
}

.semaphore--done {
  border-color: rgba(63, 125, 85, .28);
  background: rgba(63, 125, 85, .12);
}

.semaphore--warn,
.semaphore--client,
.status-pill {
  border-color: rgba(201, 154, 62, .48);
  background: rgba(201, 154, 62, .13);
}

.semaphore--danger {
  border-color: rgba(156, 74, 58, .28);
  background: rgba(156, 74, 58, .12);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* CODX-VIS-001: patron visual unico del Ecosistema GPP aplicado a GPP Lab */
:root {
  --gpp-glass: rgba(255, 255, 255, .055);
  --gpp-glass-strong: rgba(255, 255, 255, .085);
  --gpp-glass-line: rgba(233, 237, 244, .18);
  --gpp-lab-accent: #2F6B54;
  --gpp-lab-accent-light: #9ED2BC;
}

body,
.lab-panel,
.lab-auth {
  background: var(--gpp-navy);
}

.topbar {
  min-height: 88px;
  padding: 12px clamp(18px, 2.6vw, 36px);
  border-bottom: 1px solid rgba(201, 154, 62, .36);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.brand {
  gap: 12px;
}

.brand__logo {
  width: 96px;
  height: auto;
  flex: 0 0 auto;
  background: var(--gpp-navy);
}

.brand__product {
  display: grid;
  gap: 2px;
  color: #fff;
}

.brand__product strong {
  font-family: Poppins, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.1;
}

.brand__product small {
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
}

.brand__mark,
.brand__text {
  display: none;
}

.topnav a,
.logout-form button {
  border-radius: var(--gpp-radius);
  letter-spacing: 0;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--gpp-lab-accent-light);
  background: rgba(255, 255, 255, .07);
}

.logout-form button {
  border-color: rgba(114, 180, 154, .42);
  color: var(--gpp-lab-accent-light);
}

.session-warning {
  width: min(1580px, calc(100% - clamp(28px, 3.6vw, 72px)));
  border-color: rgba(158, 210, 188, .38);
  background: rgba(158, 210, 188, .08);
  color: rgba(255, 255, 255, .84);
}

.panel-shell {
  width: min(1580px, calc(100% - clamp(28px, 3.6vw, 72px)));
  padding: clamp(34px, 4vw, 64px) 0 84px;
}

.page-head,
.case-hero,
.auth-card,
.setup-card {
  padding: clamp(20px, 2.4vw, 32px);
  border: 1px solid var(--gpp-glass-line);
  border-left: 4px solid var(--gpp-lab-accent-light);
  border-radius: 12px;
  color: #fff;
  background: var(--gpp-glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 48px rgba(0, 0, 0, .16);
  backdrop-filter: blur(14px);
}

.page-head h1,
.case-hero h1,
.auth-card h1,
.setup-card h1 {
  color: #fff;
  font-size: clamp(36px, 4.4vw, 62px);
  line-height: 1;
}

.page-head p:not(.setup-kicker),
.case-hero p:not(.setup-kicker),
.auth-card__intro,
.auth-note {
  color: rgba(255, 255, 255, .76);
}

.setup-kicker {
  color: var(--gpp-lab-accent-light);
  letter-spacing: 0;
}

.auth-shell,
.setup-shell {
  align-items: center;
}

.auth-card,
.setup-card {
  width: min(760px, 100%);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.auth-brand span {
  display: grid;
  gap: 2px;
}

.auth-brand strong {
  color: #fff;
  font-family: Poppins, Arial, sans-serif;
  font-size: 18px;
}

.auth-brand small {
  color: rgba(255, 255, 255, .68);
}

.auth-form label,
.stack-form label,
label {
  color: rgba(255, 255, 255, .84);
  letter-spacing: 0;
}

input,
select,
textarea {
  border: 1px solid rgba(233, 237, 244, .18);
  border-radius: var(--gpp-radius);
  background: #fff;
}

button,
.btn-link {
  border-radius: var(--gpp-radius);
  font-family: Poppins, Arial, sans-serif;
  letter-spacing: 0;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

button:hover,
.btn-link:hover,
button:focus-visible,
.btn-link:focus-visible {
  transform: translateY(-1px);
}

.metric-card,
.panel-card,
.action-strip,
.admin-card,
.permission-card,
.case-tile,
.document-card,
.catalog-card,
.comment-list li,
.notice-list li,
.compact-list--boxed li,
.document-upload-form,
.inline-version-form form,
.table-wrap,
.status-list li,
.check-group {
  border: 1px solid var(--gpp-glass-line);
  border-left: 4px solid var(--gpp-lab-accent-light);
  border-radius: 12px;
  background: var(--gpp-glass);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 48px rgba(0, 0, 0, .16);
  backdrop-filter: blur(14px);
}

.panel-card--lab,
.catalog-card--done {
  border-left-color: var(--gpp-lab-accent);
}

.metric-card span,
.panel-card h2,
.admin-card strong,
.permission-card h3,
.parameter-grid h3,
.case-tile h3,
.document-card h3,
.catalog-domain h3,
.catalog-card__head strong,
.compact-list a,
.compact-list strong,
.subsection-title,
.inline-version-form summary,
.timeline strong,
.notice-list h3 {
  color: #fff;
}

.metric-card strong {
  color: var(--gpp-lab-accent-light);
}

.muted-text,
.form-help,
.table-note,
.empty-state,
.status-list span,
.compact-list span,
.case-tile p,
.document-card__description,
.document-meta dt,
.detail-list dt,
.timeline span,
.comment-list__head span,
.catalog-card p {
  color: rgba(255, 255, 255, .68);
}

.document-upload-form,
.admin-card,
.permission-card,
.status-list li,
.compact-list--boxed li,
.comment-list li,
.notice-list li {
  background: var(--gpp-glass);
}

table {
  color: #fff;
}

th {
  background: rgba(14, 42, 80, .86);
  color: #fff;
}

td {
  color: rgba(255, 255, 255, .78);
}

tbody tr:hover {
  background: rgba(255, 255, 255, .06);
}

.empty-state {
  border-color: rgba(233, 237, 244, .22);
}

.semaphore--ok,
.badge {
  background: rgba(233, 237, 244, .1);
  color: #fff;
}

.semaphore--done,
.badge-green {
  background: rgba(47, 107, 84, .28);
  color: var(--gpp-lab-accent-light);
}

.semaphore--warn,
.semaphore--client,
.badge-gold,
.status-pill {
  background: rgba(201, 154, 62, .18);
  color: var(--gpp-gold-text);
}

.semaphore--danger,
.badge-red {
  background: rgba(156, 74, 58, .18);
  color: #ffd6ce;
}

.preflight-page {
  color: #fff;
  overflow-x: clip;
}

.preflight-page .topbar,
.preflight-page .brand,
.preflight-page .topnav,
.preflight-hero,
.preflight-trust,
.preflight-card,
.preflight-layout,
.preflight-stage-grid {
  min-width: 0;
}

.preflight-shell {
  width: min(1360px, calc(100% - 40px));
}

.preflight-mode {
  justify-self: end;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(158, 210, 188, .32);
  border-radius: var(--gpp-radius);
  color: var(--gpp-lab-accent-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.preflight-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.preflight-hero h1 {
  max-width: 820px;
  color: #fff;
  font-size: clamp(34px, 5vw, 62px);
}

.preflight-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, .72);
}

.preflight-trust,
.preflight-card,
.preflight-upload,
.preflight-decision-grid article {
  border: 1px solid var(--gpp-glass-line);
  border-radius: 16px;
  background: var(--gpp-glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 48px rgba(0, 0, 0, .16);
  backdrop-filter: blur(14px);
}

.preflight-trust {
  display: grid;
  align-content: center;
  gap: 10px;
  border-left: 4px solid var(--gpp-lab-accent-light);
  padding: 22px;
}

.preflight-trust strong,
.preflight-card h2,
.preflight-decision-grid h3 {
  margin: 0;
  color: #fff;
}

.preflight-trust span,
.preflight-card p,
.preflight-list,
.preflight-upload span,
.preflight-decision-grid p {
  color: rgba(255, 255, 255, .68);
}

.preflight-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: stretch;
}

.preflight-card {
  padding: 22px;
}

.preflight-card--main {
  min-width: 0;
}

.preflight-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 18px;
  line-height: 1.5;
}

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

.preflight-form-grid label:first-child {
  grid-column: 1 / -1;
}

.preflight-form-grid textarea {
  min-height: 84px;
}

.preflight-upload {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 14px 16px;
}

.preflight-upload strong {
  color: #fff;
}

.preflight-decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.preflight-decision-grid article {
  padding: 18px;
  border-left: 4px solid var(--gpp-lab-accent-light);
}

.preflight-stage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: auto 1fr;
  }

  .brand {
    align-self: start;
  }

  .preflight-layout {
    grid-template-columns: 1fr;
  }

  .preflight-card--side {
    min-height: auto;
  }

  .preflight-stage-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .panel-shell {
    width: min(100% - 28px, 1580px);
  }

  .topbar {
    gap: 14px;
  }

  .brand__logo,
  .auth-brand .brand__logo {
    width: 78px;
  }

  .page-head h1,
  .case-hero h1,
  .auth-card h1,
  .setup-card h1 {
    font-size: 34px;
  }

  .preflight-shell {
    width: calc(100vw - 28px);
    max-width: 1360px;
    margin-right: auto;
    margin-left: auto;
  }

  .preflight-mode {
    justify-self: start;
  }

  .preflight-page .topbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .preflight-page .topnav {
    width: 100%;
    gap: 8px 12px;
  }

  .preflight-hero,
  .preflight-form-grid,
  .preflight-decision-grid {
    grid-template-columns: 1fr;
  }

  .preflight-hero,
  .preflight-layout,
  .preflight-stage-grid,
  .preflight-trust,
  .preflight-card {
    width: 100%;
    max-width: 100%;
  }

  .preflight-hero h1 {
    font-size: 34px;
  }

  .preflight-upload {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* LAB-OPEN-001: entrada abierta publica sin cuenta privada */
.open-shell {
  width: min(1120px, calc(100% - clamp(28px, 4vw, 72px)));
  margin: 0 auto;
  padding: clamp(34px, 5vw, 72px) 0;
  color: #fff;
}

.open-shell--narrow {
  width: min(820px, calc(100% - clamp(28px, 4vw, 72px)));
}

.open-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 22px;
}

.open-hero h1,
.open-card h1 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
}

.open-hero p,
.open-card p,
.open-result p {
  color: rgba(255, 255, 255, .72);
}

.open-hero > div,
.open-assurance,
.open-card,
.open-result {
  border: 1px solid var(--gpp-glass-line);
  border-left: 4px solid var(--gpp-lab-accent-light);
  border-radius: 12px;
  background: var(--gpp-glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 48px rgba(0, 0, 0, .16);
  backdrop-filter: blur(14px);
}

.open-hero > div,
.open-assurance,
.open-card {
  padding: clamp(22px, 3vw, 34px);
}

.open-assurance {
  display: grid;
  align-content: center;
  gap: 10px;
}

.open-assurance strong,
.open-card h2,
.open-result h2,
.open-confirmation-grid span,
.open-recovery-box dt {
  color: #fff;
}

.open-assurance span,
.open-confirmation-grid p,
.open-recovery-box dd {
  color: rgba(255, 255, 255, .72);
}

.open-form {
  display: grid;
  gap: 18px;
}

.open-form--compact {
  margin-top: 22px;
}

.open-step {
  scroll-margin-top: 96px;
}

.open-step h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
}

.open-field-stack {
  display: grid;
  gap: 20px;
  margin-top: 18px;
}

.open-field-stack > label,
.open-grid label,
.choice-group,
.privacy-note {
  min-width: 0;
}

.open-field-stack textarea[name="need_summary"] {
  min-height: 132px;
  font-size: 18px;
  line-height: 1.55;
}

.open-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.open-grid label:first-child,
.open-grid label:nth-child(2),
.open-grid label:last-child {
  grid-column: 1 / -1;
}

.open-grid--contact label:first-child,
.open-grid--contact label:nth-child(2),
.open-grid--contact label:last-child {
  grid-column: auto;
}

.open-hp,
.open-form [data-open-honeypot],
.open-form label:has(input[name="website"]) {
  display: none !important;
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  pointer-events: none;
  white-space: nowrap;
}

.open-hp input[name="website"],
.open-form [data-open-honeypot] input[name="website"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.choice-group {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(233, 237, 244, .16);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
}

.choice-group legend {
  padding: 0 6px;
  color: #fff;
  font-weight: 800;
}

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

.choice-list--deadline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.choice-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 58px;
  padding: 13px;
  border: 1px solid rgba(233, 237, 244, .16);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .82);
  cursor: pointer;
}

.choice-card:has(input:checked) {
  border-color: rgba(158, 210, 188, .72);
  color: #fff;
  background: rgba(158, 210, 188, .08);
}

.choice-card input {
  margin-top: 3px;
  accent-color: var(--gpp-lab-accent-light);
}

.open-upload,
.open-summary,
.open-date-custom {
  display: grid;
  gap: 8px;
}

.open-upload input[type="file"] {
  padding: 14px;
  border: 1px dashed rgba(158, 210, 188, .42);
  border-radius: 10px;
  background: rgba(158, 210, 188, .06);
  color: rgba(255, 255, 255, .78);
}

.open-date-custom {
  max-width: 360px;
}

.open-is-hidden {
  display: none !important;
}

.privacy-note {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(158, 210, 188, .26);
  border-radius: 12px;
  background: rgba(158, 210, 188, .08);
}

.privacy-note strong,
.privacy-note .check-row {
  color: #fff;
}

.field-error {
  color: #ffd6ce;
  font-size: 13px;
  line-height: 1.45;
}

.open-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.open-actions a {
  color: var(--gpp-lab-accent-light);
  font-weight: 800;
  text-decoration-color: rgba(158, 210, 188, .58);
}

.open-actions .open-copy-button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--gpp-lab-accent-light);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(158, 210, 188, .58);
  cursor: pointer;
}

.open-actions .open-copy-button:focus-visible {
  outline: 2px solid rgba(158, 210, 188, .72);
  outline-offset: 4px;
}

.open-copy-status {
  min-height: 1.4em;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .78);
  font-weight: 700;
}

.open-attachment-note {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(158, 210, 188, .26);
  border-radius: 10px;
  background: rgba(158, 210, 188, .08);
  color: rgba(255, 255, 255, .82);
  font-weight: 800;
}

.open-confirmation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.open-confirmation-grid article,
.open-recovery-box,
.open-result {
  padding: 16px;
  border: 1px solid rgba(233, 237, 244, .16);
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
}

.open-confirmation-grid span,
.open-recovery-box dt {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.open-recovery-box {
  display: grid;
  gap: 14px;
  margin: 0;
}

.open-recovery-box dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.open-recovery-box a {
  color: var(--gpp-lab-accent-light);
}

.open-result {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .open-hero,
  .open-grid,
  .open-grid--contact,
  .choice-list,
  .choice-list--deadline,
  .open-confirmation-grid {
    grid-template-columns: 1fr;
  }

  .open-grid--contact label:first-child,
  .open-grid--contact label:nth-child(2),
  .open-grid--contact label:last-child {
    grid-column: 1 / -1;
  }
}

/* LAB-PRELAUNCH-UI-INTERNAL-FIX-001: legibilidad de tablas internas */
.lab-panel .table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border-color: rgba(158, 210, 188, .22);
  background: rgba(255, 255, 255, .045);
}

.lab-panel table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: transparent;
  color: rgba(255, 255, 255, .86);
}

.lab-panel thead,
.lab-panel tbody,
.lab-panel tr {
  background: transparent;
}

.lab-panel th,
.lab-panel td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(233, 237, 244, .13);
  color: rgba(255, 255, 255, .84);
  line-height: 1.45;
  vertical-align: top;
}

.lab-panel th {
  background: rgba(6, 20, 43, .96);
  color: #fff;
  white-space: nowrap;
}

.lab-panel td {
  max-width: 360px;
  overflow-wrap: anywhere;
}

.lab-panel tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, .035);
}

.lab-panel tbody tr:hover {
  background: rgba(158, 210, 188, .08);
}

.lab-panel td strong,
.lab-panel td code,
.lab-panel td small,
.lab-panel td a,
.lab-panel td summary,
.lab-panel td .table-note {
  color: rgba(255, 255, 255, .88);
}

.lab-panel td a {
  text-decoration-color: rgba(201, 154, 62, .78);
}

.lab-panel td .table-note {
  color: rgba(255, 255, 255, .72);
}

.lab-panel td .stack-form {
  min-width: 280px;
  gap: 10px;
}

.lab-panel td input,
.lab-panel td select,
.lab-panel td textarea {
  min-height: 38px;
  padding: 8px 10px;
}

.lab-panel td textarea {
  min-height: 86px;
}

@media (max-width: 760px) {
  .lab-panel table {
    min-width: 860px;
  }

  .lab-panel th,
  .lab-panel td {
    padding: 10px 12px;
  }
}

/* LAB-PRELAUNCH-UI-INTERNAL-RUNTIME-FIX-002: cascade final para celdas de tablas internas */
.lab-panel .table-wrap > table,
.lab-panel .table-wrap > table > thead,
.lab-panel .table-wrap > table > tbody,
.lab-panel .table-wrap > table > tbody > tr,
.lab-panel .table-wrap > table > tbody > tr > td {
  background: transparent !important;
  background-color: transparent !important;
}

.lab-panel .table-wrap > table > tbody > tr:nth-child(odd) > td {
  background: rgba(255, 255, 255, .04) !important;
  background-color: rgba(255, 255, 255, .04) !important;
}

.lab-panel .table-wrap > table > tbody > tr:nth-child(even) > td {
  background: rgba(6, 20, 43, .18) !important;
  background-color: rgba(6, 20, 43, .18) !important;
}

.lab-panel .table-wrap > table > tbody > tr:hover > td {
  background: rgba(158, 210, 188, .09) !important;
  background-color: rgba(158, 210, 188, .09) !important;
}

.lab-panel .table-wrap > table > thead > tr > th {
  background: rgba(6, 20, 43, .98) !important;
  background-color: rgba(6, 20, 43, .98) !important;
  color: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.lab-panel .table-wrap > table > tbody > tr > td,
.lab-panel .table-wrap > table > tbody > tr > td > strong,
.lab-panel .table-wrap > table > tbody > tr > td > a,
.lab-panel .table-wrap > table > tbody > tr > td > details,
.lab-panel .table-wrap > table > tbody > tr > td > details > summary {
  color: rgba(255, 255, 255, .9) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.lab-panel .table-wrap > table > tbody > tr > td > small,
.lab-panel .table-wrap > table > tbody > tr > td small,
.lab-panel .table-wrap > table > tbody > tr > td .table-note {
  color: rgba(255, 255, 255, .74) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.lab-panel .table-wrap > table > tbody > tr > td code {
  background: rgba(6, 20, 43, .42);
  color: #fff !important;
}

.lab-panel .table-wrap > table > tbody > tr > td.alert {
  background: rgba(201, 154, 62, .16) !important;
  background-color: rgba(201, 154, 62, .16) !important;
}

/* LAB-UI-F4C-ROW-001-B: editor de catalogo compacto por fila */
.lab-panel td .row-editor {
  min-width: 150px;
}

.lab-panel td .row-editor > summary {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid rgba(201, 154, 62, .58);
  border-radius: 4px;
  background: rgba(201, 154, 62, .14);
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
}

.lab-panel td .row-editor[open] {
  min-width: 300px;
}

.lab-panel td .row-editor .stack-form {
  width: min(360px, 100%);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(233, 237, 244, .14);
}
