/* WIISERVE Certificate Portal — modern operations UI */

:root {
  --ws-navy: #163a56;
  --ws-navy-deep: #0e2740;
  --ws-navy-soft: #1f4f73;
  --ws-teal: #0c8f74;
  --ws-teal-deep: #08735d;
  --ws-teal-wash: #e6f6f1;
  --ws-red: #d64545;
  --ws-red-soft: #a52f2f;
  --ws-red-wash: #fdecec;
  --ws-gold: #d4a017;
  --ws-gold-deep: #9a7408;
  --ws-gold-wash: #fff6d9;
  --ws-ink: #15202b;
  --ws-muted: #5d6b78;
  --ws-line: #e4ebf1;
  --ws-line-strong: #cfd9e3;
  --ws-surface: #f3f6f9;
  --ws-surface-2: #eaf0f5;
  --ws-white: #ffffff;
  --ws-shadow-sm: 0 1px 2px rgba(15, 31, 46, 0.05);
  --ws-shadow: 0 1px 2px rgba(15, 31, 46, 0.04), 0 10px 28px rgba(15, 31, 46, 0.06);
  --ws-shadow-lg: 0 18px 50px rgba(15, 31, 46, 0.1);
  --ws-radius: 16px;
  --ws-radius-sm: 10px;
  --ws-sidebar: 248px;
  --ws-font: "IBM Plex Sans", "Segoe UI", sans-serif;
  --ws-display: "IBM Plex Sans", "Segoe UI", sans-serif;
  --ws-mono: "IBM Plex Mono", ui-monospace, monospace;
  --bs-primary: var(--ws-navy);
  --bs-primary-rgb: 22, 58, 86;
  --bs-link-color: var(--ws-navy);
  --bs-link-hover-color: var(--ws-teal);
  --bs-body-font-family: var(--ws-font);
  --bs-body-color: var(--ws-ink);
  --bs-border-color: var(--ws-line);
  --bs-success: var(--ws-teal);
  --bs-warning: var(--ws-gold-deep);
  --bs-danger: var(--ws-red);
  --bs-info: var(--ws-navy);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--ws-font);
  color: var(--ws-ink);
  background: var(--ws-surface);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ws-navy);
  text-decoration: none;
  transition: color 160ms ease;
}

a:hover {
  color: var(--ws-teal);
}

h1, h2, h3, h4, h5, .page-title, .display-title {
  font-family: var(--ws-display);
  letter-spacing: -0.035em;
  color: var(--ws-navy-deep);
  font-weight: 700;
}

code, .mono, .serial {
  font-family: var(--ws-mono);
  font-size: 0.9em;
  letter-spacing: 0.01em;
}

/* —— App shell —— */
.ws-app {
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(22, 58, 86, 0.06), transparent 55%),
    var(--ws-surface);
}

.ws-app.is-authed {
  display: grid;
  grid-template-columns: var(--ws-sidebar) minmax(0, 1fr);
}

.ws-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ws-white);
  border-right: 1px solid var(--ws-line);
  padding: 1.15rem 0.9rem 1rem;
  z-index: 1040;
}

.ws-sidebar-brand {
  display: flex;
  align-items: center;
  padding: 0.25rem 0.55rem 1.2rem;
  text-decoration: none !important;
}

.ws-sidebar-brand img {
  height: 38px;
  width: auto;
  max-width: 100%;
}

.ws-side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.ws-side-label {
  margin: 0.85rem 0.7rem 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a97a4;
}

.ws-side-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.75rem;
  border-radius: 11px;
  color: var(--ws-muted) !important;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: background 140ms ease, color 140ms ease;
}

.ws-side-link svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  opacity: 0.8;
}

.ws-side-link:hover {
  background: var(--ws-surface-2);
  color: var(--ws-navy) !important;
}

.ws-side-link.is-active {
  background: rgba(22, 58, 86, 0.08);
  color: var(--ws-navy-deep) !important;
  font-weight: 700;
}

.ws-side-link.is-active svg {
  opacity: 1;
}

.ws-side-upload {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
}

.ws-frame {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.ws-topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ws-line);
}

.ws-topbar-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.55rem 1.5rem;
}

.ws-guest-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none !important;
  color: var(--ws-ink) !important;
  margin-right: auto;
}

.ws-guest-brand img {
  height: 34px;
  width: auto;
}

.ws-menu-btn {
  display: none;
  border: 1px solid var(--ws-line-strong);
  background: var(--ws-white);
  border-radius: 10px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.ws-search {
  position: relative;
  flex: 1 1 auto;
  max-width: 420px;
}

.ws-search input {
  border-radius: 999px;
  border: 1px solid var(--ws-line-strong);
  background: var(--ws-white);
  padding: 0.55rem 1rem 0.55rem 2.45rem;
  font-size: 0.875rem;
  height: 2.45rem;
}

.ws-search input:focus {
  border-color: var(--ws-navy);
  box-shadow: 0 0 0 4px rgba(22, 58, 86, 0.1);
  outline: none;
}

.ws-search::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  top: 50%;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%235d6b78'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m21 21-4.3-4.3M11 18a7 7 0 1 0 0-14 7 7 0 0 0 0 14Z'/%3E%3C/svg%3E");
  pointer-events: none;
}

.ws-top-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}

.ws-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--ws-line);
  background: var(--ws-white);
  border-radius: 999px;
  padding: 0.25rem 0.7rem 0.25rem 0.25rem;
  color: var(--ws-ink);
}

.ws-user-btn:hover {
  border-color: var(--ws-line-strong);
  background: var(--ws-surface-2);
}

.ws-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ws-navy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.ws-user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  max-width: 160px;
}

.ws-user-name {
  font-size: 0.78rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
}

.ws-user-role {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ws-muted);
}

.ws-main {
  flex: 1 1 auto;
  padding: 1.75rem 1.5rem 2.5rem;
  animation: ws-rise 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ws-main-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.site-footer {
  flex: none;
  height: 48px;
  margin-top: auto;
  padding: 0 50px;
  border-top: 1px solid #e6e9ee;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #5b6675;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0;
  word-spacing: normal;
}
.site-footer p {
  margin: 0;
  text-align: center;
}

/* —— Page chrome —— */
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.page-header .page-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.3vw, 1.95rem);
  line-height: 1.15;
}

.page-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ws-muted);
  margin-bottom: 0.3rem;
}

.page-lede {
  color: var(--ws-muted);
  margin: 0.4rem 0 0;
  max-width: 44rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* —— Buttons —— */
.btn {
  font-weight: 600;
  border-radius: var(--ws-radius-sm);
  padding: 0.55rem 1.15rem;
  letter-spacing: -0.01em;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  --bs-btn-bg: var(--ws-navy);
  --bs-btn-border-color: var(--ws-navy);
  --bs-btn-hover-bg: var(--ws-navy-deep);
  --bs-btn-hover-border-color: var(--ws-navy-deep);
  --bs-btn-active-bg: var(--ws-navy-deep);
  --bs-btn-active-border-color: var(--ws-navy-deep);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  box-shadow: var(--ws-shadow-sm);
}

.btn-outline-primary {
  --bs-btn-color: var(--ws-navy);
  --bs-btn-border-color: var(--ws-line-strong);
  --bs-btn-hover-bg: var(--ws-navy);
  --bs-btn-hover-border-color: var(--ws-navy);
  --bs-btn-hover-color: #fff;
}

.btn-success {
  --bs-btn-bg: var(--ws-teal);
  --bs-btn-border-color: var(--ws-teal);
  --bs-btn-hover-bg: var(--ws-teal-deep);
  --bs-btn-hover-border-color: var(--ws-teal-deep);
}

.btn-danger {
  --bs-btn-bg: var(--ws-red);
  --bs-btn-border-color: var(--ws-red);
  --bs-btn-hover-bg: var(--ws-red-soft);
  --bs-btn-hover-border-color: var(--ws-red-soft);
}

.btn-warning {
  --bs-btn-bg: var(--ws-gold);
  --bs-btn-border-color: var(--ws-gold);
  --bs-btn-color: var(--ws-ink);
  --bs-btn-hover-bg: var(--ws-gold-deep);
  --bs-btn-hover-border-color: var(--ws-gold-deep);
  --bs-btn-hover-color: #fff;
}

.btn-outline-light,
.btn-sm.btn-outline-light {
  --bs-btn-color: var(--ws-navy);
  --bs-btn-border-color: var(--ws-line-strong);
  --bs-btn-hover-bg: var(--ws-surface-2);
  --bs-btn-hover-border-color: var(--ws-navy);
  --bs-btn-hover-color: var(--ws-navy);
}

.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--ws-navy);
}

.btn-ghost:hover {
  background: var(--ws-surface-2);
  color: var(--ws-navy);
}

.btn-accent {
  background: var(--ws-teal);
  border: 1px solid var(--ws-teal);
  color: #fff;
  box-shadow: var(--ws-shadow-sm);
}

.btn-accent:hover {
  background: var(--ws-teal-deep);
  border-color: var(--ws-teal-deep);
  color: #fff;
}

.auth-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ws-muted);
  text-decoration: none;
}

.auth-link:hover {
  color: var(--ws-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— Forms —— */
.form-label {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--ws-navy-deep);
  margin-bottom: 0.35rem;
}

.form-control,
.form-select,
textarea.form-control {
  border-radius: var(--ws-radius-sm);
  border-color: var(--ws-line-strong);
  padding: 0.65rem 0.9rem;
  background: var(--ws-white);
  color: var(--ws-ink);
  color-scheme: light;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%235d6b78' stroke-width='1.4'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.4rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--ws-navy);
  box-shadow: 0 0 0 4px rgba(22, 58, 86, 0.1);
}

.form-text {
  color: var(--ws-muted);
}

.form-panel,
.panel {
  background: var(--ws-white);
  border: 1px solid var(--ws-line);
  border-radius: var(--ws-radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--ws-shadow-sm);
}

.panel {
  margin-bottom: 1rem;
}

.panel-title {
  font-size: 1rem;
  margin: 0 0 0.85rem;
}

.form-section + .form-section {
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--ws-line);
}

.form-section h2 {
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .form-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="search"],
input[type="file"],
select,
textarea {
  font: inherit;
}

form p {
  margin-bottom: 1rem;
}

form p label {
  display: block;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--ws-navy-deep);
  margin-bottom: 0.35rem;
}

form p input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
form p select,
form p textarea {
  display: block;
  width: 100%;
  border-radius: var(--ws-radius-sm);
  border: 1px solid var(--ws-line-strong);
  padding: 0.65rem 0.9rem;
  background: var(--ws-white);
  color: var(--ws-ink);
  color-scheme: light;
}

form p input:focus,
form p select:focus,
form p textarea:focus {
  outline: none;
  border-color: var(--ws-navy);
  box-shadow: 0 0 0 4px rgba(22, 58, 86, 0.1);
}

form p input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--ws-navy);
}

/* —— Tables —— */
.table-panel {
  background: var(--ws-white);
  border: 1px solid var(--ws-line);
  border-radius: var(--ws-radius);
  overflow: hidden;
  box-shadow: var(--ws-shadow-sm);
}

.table {
  margin-bottom: 0;
  --bs-table-bg: transparent;
}

.table > :not(caption) > * > * {
  padding: 0.9rem 1rem;
  vertical-align: middle;
  border-bottom-color: var(--ws-line);
}

.table thead th {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ws-muted);
  background: #f7fafc;
  border-bottom: 1px solid var(--ws-line);
  white-space: nowrap;
}

.table tbody tr {
  transition: background 140ms ease;
}

.table tbody tr:hover {
  background: rgba(22, 58, 86, 0.03);
}

.table a {
  font-weight: 600;
}

.filter-bar {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .filter-bar.cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: end;
  }

  .filter-bar.cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
  }
}

/* —— Stats / queues —— */
.stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

@media (min-width: 768px) {
  .stat-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.stat-link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.05rem 1.1rem;
  text-decoration: none !important;
  color: inherit;
  background: var(--ws-white);
  border: 1px solid var(--ws-line);
  border-radius: var(--ws-radius);
  box-shadow: var(--ws-shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.stat-link::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--ws-navy);
}

.stat-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--ws-shadow);
  color: inherit;
}

.stat-link.is-active {
  border-color: rgba(22, 58, 86, 0.28);
  box-shadow: 0 0 0 4px rgba(22, 58, 86, 0.08);
}

.stat-link[data-tone="valid"]::before { background: var(--ws-teal); }
.stat-link[data-tone="expiring"]::before { background: var(--ws-gold); }
.stat-link[data-tone="expired"]::before { background: var(--ws-red); }
.stat-link[data-tone="revoked"]::before { background: #2b333b; }

.stat-link .stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ws-muted);
}

.stat-link .stat-value {
  font-family: var(--ws-display);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--ws-navy-deep);
  letter-spacing: -0.04em;
}

.queue-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 992px) {
  .queue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.queue-block {
  padding: 1.1rem 0 0.25rem;
  border-top: 1px solid var(--ws-line);
}

.queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.queue-head .panel-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.queue-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ws-gold);
  box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.18);
}

.queue-dot.is-review { background: var(--ws-gold); }
.queue-dot.is-sign { background: var(--ws-navy); box-shadow: 0 0 0 4px rgba(22, 58, 86, 0.12); }
.queue-dot.is-process { background: #5b7c99; box-shadow: 0 0 0 4px rgba(91, 124, 153, 0.16); }
.queue-dot.is-ok { background: var(--ws-teal); box-shadow: 0 0 0 4px rgba(12, 143, 116, 0.16); }
.queue-dot.is-alert { background: var(--ws-red); box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.16); }

.queue-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ws-muted);
  background: var(--ws-surface-2);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.queue-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.queue-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--ws-line);
  font-size: 0.92rem;
}

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

.queue-list .meta {
  color: var(--ws-muted);
  font-size: 0.8rem;
  text-align: right;
}

.queue-list a {
  font-family: var(--ws-mono);
  font-weight: 600;
}

.empty-hint {
  color: var(--ws-muted);
  font-style: italic;
  font-size: 0.9rem;
}

.empty-state {
  text-align: center;
  padding: 1.5rem 0.75rem;
  color: var(--ws-muted);
}

.empty-state strong {
  display: block;
  color: var(--ws-navy);
  font-style: normal;
  margin-bottom: 0.25rem;
}

/* —— Auth / marketing —— */
.auth-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(900px 480px at 12% 10%, rgba(22, 58, 86, 0.08), transparent 50%),
    radial-gradient(700px 380px at 90% 90%, rgba(12, 143, 116, 0.08), transparent 45%),
    #f6f8fb;
  color: var(--ws-ink);
}

.auth-stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
}

.auth-split {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 400px);
  background: var(--ws-white);
  border: 1px solid var(--ws-line);
  border-radius: 28px;
  box-shadow: var(--ws-shadow-lg);
  overflow: hidden;
}

.auth-brand-pane {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
  padding: 2.5rem 2.4rem;
  background:
    linear-gradient(180deg, rgba(22, 58, 86, 0.04), transparent 40%),
    #f8fbfc;
  position: relative;
}

.auth-brand-pane::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #111 0 28%, #d64545 28% 64%, #e8b923 64% 100%);
}

.auth-brand-logo {
  height: clamp(56px, 8vw, 78px);
  width: auto;
  display: block;
  margin-bottom: 0.4rem;
}

.auth-accent {
  display: block;
  width: 40px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--ws-red), var(--ws-gold));
}

.auth-brand-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ws-navy-deep);
}

.auth-brand-tag {
  margin: 0;
  max-width: 18rem;
  color: var(--ws-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.auth-points {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  color: var(--ws-muted);
  font-size: 0.88rem;
}

.auth-points li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ws-teal);
  flex-shrink: 0;
}

.auth-form-pane {
  padding: 2.4rem 2.2rem;
}

.auth-heading {
  margin: 0 0 0.3rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ws-ink);
}

.auth-lede {
  margin: 0 0 1.5rem;
  color: var(--ws-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.auth-form .form-control,
.auth-form-pane .form-control {
  min-height: 3rem;
  border-radius: 12px;
}

.auth-form .errorlist,
.auth-form-pane .errorlist {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  color: var(--ws-red-soft);
  font-size: 0.8rem;
}

.auth-submit {
  width: 100%;
  min-height: 3rem;
  margin-top: 0.45rem;
  border-radius: 12px;
}

.auth-field {
  margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
  .auth-split {
    grid-template-columns: 1fr;
  }

  .auth-brand-pane {
    padding: 1.75rem 1.5rem 1.25rem;
  }

  .auth-form-pane {
    padding: 0 1.5rem 1.75rem;
  }
}

.hero-home {
  min-height: calc(100vh - 8rem);
  display: grid;
  align-content: center;
  gap: 1.25rem;
  padding: 2rem 0 3rem;
}

.hero-brand img {
  height: clamp(52px, 9vw, 80px);
  width: auto;
}

.hero-tag {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  color: var(--ws-navy-deep);
  margin: 0;
  max-width: 16rem;
  line-height: 1.05;
}

.hero-home .lead {
  max-width: 38rem;
  color: var(--ws-muted);
  font-size: 1.08rem;
  margin: 0;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.hero-features {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

@media (min-width: 768px) {
  .hero-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.hero-card {
  background: var(--ws-white);
  border: 1px solid var(--ws-line);
  border-radius: 16px;
  padding: 1.15rem 1.2rem;
  box-shadow: var(--ws-shadow-sm);
}

.hero-card h2 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.hero-card p {
  margin: 0;
  color: var(--ws-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* —— Verify —— */
.verify-page {
  min-height: 100vh;
  background:
    radial-gradient(800px 380px at 50% -10%, rgba(22, 58, 86, 0.07), transparent 50%),
    var(--ws-surface);
  margin: 0;
}

.verify-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ws-line);
}

.verify-header-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0.8rem 1rem;
  min-height: 4rem;
  display: flex;
  align-items: center;
}

.verify-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.verify-brand img {
  height: 34px;
  width: auto;
}

.verify-brand-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ws-navy-deep);
}

.verify-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.verify-intro {
  text-align: center;
}

.verify-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ws-muted);
}

.verify-title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.verify-card {
  background: var(--ws-white);
  border: 1px solid var(--ws-line);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--ws-shadow);
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.verify-card-state {
  text-align: center;
  align-items: center;
  padding: 2.2rem 1.5rem;
}

.verify-state-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 999px;
  background: var(--ws-surface-2);
  color: var(--ws-muted);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}

.verify-card-head {
  text-align: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--ws-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.verify-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
}

.verify-badge.is-valid { color: #fff; background: var(--ws-teal); }
.verify-badge.is-expiring { color: var(--ws-ink); background: #f0d78c; }
.verify-badge.is-expired { color: #fff; background: var(--ws-red); }
.verify-badge.is-revoked { color: #fff; background: var(--ws-ink); }

.verify-status-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.verify-status-copy {
  margin: 0;
  color: var(--ws-muted);
  font-size: 0.92rem;
  max-width: 36rem;
}

.verify-revoked-banner {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 12px;
  background: var(--ws-red-wash);
  border: 1px solid rgba(214, 69, 69, 0.25);
}

.verify-meta-grid {
  display: grid;
  gap: 0;
  border: 1px solid var(--ws-line);
  border-radius: 14px;
  overflow: hidden;
}

.verify-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  border-bottom: 1px solid var(--ws-line);
}

.verify-meta-item:last-child { border-bottom: 0; }

.verify-meta-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ws-muted);
}

.verify-meta-value {
  font-size: 0.92rem;
  font-weight: 600;
  word-break: break-word;
}

.verify-hash-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.verify-hash {
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.verify-copy-btn {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.verify-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--ws-line);
}

.verify-btn {
  min-height: 2.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.verify-footnote {
  text-align: center;
  color: var(--ws-muted);
  font-size: 0.75rem;
  margin: 0;
}

@media (min-width: 576px) {
  .verify-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .verify-meta-item {
    border-right: 1px solid var(--ws-line);
  }

  .verify-meta-item:nth-child(2n) { border-right: 0; }
  .verify-meta-item:nth-last-child(-n+2) { border-bottom: 0; }
}

.verify-meta { display: none; }

/* —— Detail —— */
.detail-layout {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 992px) {
  .detail-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    align-items: start;
  }
}

.meta-grid {
  display: grid;
  gap: 0;
  background: var(--ws-white);
  border: 1px solid var(--ws-line);
  border-radius: var(--ws-radius);
  overflow: hidden;
  box-shadow: var(--ws-shadow-sm);
  margin-bottom: 1rem;
}

@media (min-width: 576px) {
  .meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.meta-item {
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--ws-line);
}

@media (min-width: 576px) {
  .meta-item:nth-child(odd) {
    border-right: 1px solid var(--ws-line);
  }
}

.meta-item .label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ws-muted);
  margin-bottom: 0.2rem;
}

.meta-item .value {
  font-weight: 600;
  color: var(--ws-navy-deep);
}

.file-list,
.audit-list,
.comment-list,
.result-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.file-list li,
.audit-list li,
.comment-list li,
.result-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--ws-line);
  font-size: 0.9rem;
}

.file-list li:last-child,
.audit-list li:last-child,
.comment-list li:last-child,
.result-list li:last-child {
  border-bottom: 0;
}

.comment-list li strong {
  display: block;
  font-size: 0.85rem;
}

.pdf-frame {
  width: 100%;
  height: 72vh;
  border: 1px solid var(--ws-line);
  border-radius: var(--ws-radius);
  background: var(--ws-surface);
  box-shadow: var(--ws-shadow-sm);
}

.badge {
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 0.35em 0.7em;
}

.alert {
  border-radius: 12px;
  border: 1px solid transparent;
  box-shadow: none;
}

.alert-info {
  background: rgba(22, 58, 86, 0.06);
  border-color: rgba(22, 58, 86, 0.1);
  color: var(--ws-navy);
}

.alert-danger {
  background: var(--ws-red-wash);
  border-color: rgba(214, 69, 69, 0.22);
  color: var(--ws-red-soft);
}

.alert-success {
  background: var(--ws-teal-wash);
  border-color: rgba(12, 143, 116, 0.2);
  color: var(--ws-teal-deep);
}

.alert-warning {
  background: var(--ws-gold-wash);
  border-color: rgba(184, 134, 11, 0.25);
  color: #7a5600;
}

.modal-content {
  border: 1px solid var(--ws-line);
  border-radius: 18px;
  box-shadow: var(--ws-shadow-lg);
}

.modal-header { border-bottom-color: var(--ws-line); }
.modal-footer { border-top-color: var(--ws-line); }

.dropdown-menu {
  border: 1px solid var(--ws-line);
  border-radius: 14px;
  box-shadow: var(--ws-shadow);
  padding: 0.45rem;
  min-width: 300px;
}

.dropdown-item {
  border-radius: 10px;
  font-size: 0.875rem;
  padding: 0.6rem 0.7rem;
}

.notif-bell .nav-link,
.notif-bell > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  color: var(--ws-navy) !important;
  background: var(--ws-white);
  border: 1px solid var(--ws-line);
}

.notif-bell .nav-link:hover,
.notif-bell > a:hover {
  background: var(--ws-surface-2);
}

.notif-bell .badge {
  position: absolute;
  top: -0.15rem;
  right: -0.15rem;
  font-size: 0.65rem;
}

.notif-icon {
  display: inline-flex;
  width: 1.15rem;
  height: 1.15rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  background: var(--ws-surface-2);
  color: var(--ws-navy);
  text-transform: uppercase;
}

.status-pill[data-status="SUBMITTED"] { background: #e7eef5; color: var(--ws-navy); }
.status-pill[data-status="CHANGES_REQUESTED"] { background: var(--ws-gold-wash); color: #7a5600; }
.status-pill[data-status="SIGNED_UPLOADED"] { background: #e6f1fb; color: #164a73; }
.status-pill[data-status="PROCESSING"] { background: var(--ws-gold-wash); color: #7a5600; }
.status-pill[data-status="PROCESSING_FAILED"] { background: var(--ws-red-wash); color: var(--ws-red-soft); }
.status-pill[data-status="APPROVED"] { background: var(--ws-teal-wash); color: var(--ws-teal-deep); }
.status-pill[data-status="REVOKED"] { background: #1a1f24; color: #fff; }

.status-pill[data-validity="VALID"] { background: var(--ws-teal-wash); color: var(--ws-teal-deep); }
.status-pill[data-validity="EXPIRING"] { background: var(--ws-gold-wash); color: #7a5600; }
.status-pill[data-validity="EXPIRED"] { background: var(--ws-red-wash); color: var(--ws-red-soft); }
.status-pill[data-validity="REVOKED"] { background: #1a1f24; color: #fff; }

.status-pill[data-processing="1"]::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 2px solid var(--ws-gold);
  border-top-color: transparent;
  animation: ws-spin 0.8s linear infinite;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.95rem;
  font-size: 0.875rem;
  color: var(--ws-muted);
}

.pager a {
  font-weight: 700;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.table-actions {
  display: inline-flex;
  gap: 0.35rem;
}

.search-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--ws-white);
  border: 1px solid var(--ws-line);
  border-radius: 14px;
  box-shadow: var(--ws-shadow-sm);
}

.search-card + .search-card {
  margin-top: 0.65rem;
}

.hint-card {
  background: rgba(22, 58, 86, 0.05);
  border: 1px solid rgba(22, 58, 86, 0.08);
  color: var(--ws-navy);
  border-radius: 14px;
  padding: 0.95rem 1.1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

@keyframes ws-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ws-spin {
  to { transform: rotate(360deg); }
}

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

  .ws-main,
  .auth-page {
    animation: none !important;
  }
}

/* —— Login (reference card) —— */
body.login-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #eef1f6;
  color: #12263a;
  font-family: Inter, "IBM Plex Sans", sans-serif;
}

body.login-page::before {
  display: none;
}

.login-stage {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem 1.75rem;
  gap: 1.75rem;
}

.login-card {
  width: min(980px, 100%);
  min-height: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 50px -28px rgba(16, 36, 62, 0.45), 0 1px 0 rgba(16, 36, 62, 0.04);
}

.login-brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #e7edf3;
  padding: 3.5rem 2.5rem 3rem;
}

.login-stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 4px;
}

.login-stripe span:nth-child(1) { background: #163a5f; }
.login-stripe span:nth-child(2) { background: #e10600; }
.login-stripe span:nth-child(3) { background: #f5c400; }

.login-brand-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  max-width: 320px;
}

.login-logo {
  width: min(250px, 78%);
  height: auto;
  display: block;
}

.login-dash {
  width: 42px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #e10600, #f5c400);
  margin-top: 0.35rem;
}

.login-tagline {
  margin: 0.35rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.login-tagline span:first-child { color: #16324f; }
.login-tagline span:last-child { color: #8b97a6; font-weight: 650; }

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.6rem 2.4rem 2rem;
}

.login-welcome {
  text-align: center;
  margin-bottom: 1.35rem;
}

.login-welcome h1 {
  margin: 0;
  font-size: 2.15rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #16324f;
  line-height: 1.1;
}

.login-welcome h1.login-title-long {
  font-size: 1.85rem;
  letter-spacing: -0.035em;
}

.login-secure {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.85rem 0 0;
  padding: 0.28rem 0.65rem 0.28rem 0.5rem;
  border: 1px solid #e3e8ee;
  border-radius: 999px;
  color: #7d8b9a;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-form {
  border-top: 1px solid #e7edf3;
  padding-top: 1.35rem;
}

.login-form h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #16324f;
}

.login-lede {
  margin: 0.3rem 0 1.15rem;
  color: #8b97a6;
  font-size: 0.92rem;
}

.login-field {
  margin-bottom: 0.95rem;
}

.login-field label,
.login-label-row label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.86rem;
  font-weight: 650;
  color: #1c2b3a;
}

.login-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.login-label-row a {
  font-size: 0.82rem;
  font-weight: 600;
  color: #16324f;
  text-decoration: none;
}

.login-label-row a:hover {
  color: #0c1c32;
  text-decoration: underline;
}

.login-page .form-control,
.login-password .form-control {
  width: 100%;
  min-height: 2.85rem;
  border-radius: 8px;
  border: 1px solid #d9e1e8;
  background: #fff;
  box-shadow: none;
  font-size: 0.95rem;
  color: #1c2b3a;
  padding: 0.65rem 0.85rem;
}

.login-page .form-control::placeholder {
  color: #b0bac4;
}

.login-page .form-control:focus {
  border-color: #163a5f;
  box-shadow: 0 0 0 3px rgba(22, 58, 95, 0.12);
}

.login-password {
  position: relative;
}

.login-password .form-control {
  padding-right: 4.25rem;
}

.login-password button {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #3e5164;
  padding: 0;
  cursor: pointer;
}

.login-eye .eye-shut { display: none; }
.login-eye.is-visible .eye-open { display: none; }
.login-eye.is-visible .eye-shut { display: block; }

.login-submit {
  width: 100%;
  min-height: 2.9rem;
  margin-top: 0.45rem;
  border: 0;
  border-radius: 8px;
  border-bottom: 3px solid #8e1530;
  background: #10243e;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.login-submit:hover {
  background: #0c1c32;
  color: #fff;
}

.login-note {
  margin: 1.15rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid #e7edf3;
  color: #8b97a6;
  font-size: 0.75rem;
  line-height: 1.55;
}

.login-note span {
  display: block;
  white-space: nowrap;
}

.login-note a {
  color: inherit;
  text-decoration: none;
}

.login-note a:hover {
  text-decoration: underline;
}

.login-error,
.login-page .errorlist {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: rgba(225, 6, 0, 0.08);
  color: #8f1d24;
  font-size: 0.82rem;
}

.login-back {
  margin: 1.15rem 0 0;
  padding-top: 1.05rem;
  border-top: 1px solid #e7edf3;
  text-align: center;
}

.login-back a {
  color: #16324f;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.login-back a:hover {
  color: #0c1c32;
  text-decoration: underline;
}

.login-back.is-end {
  display: flex;
  justify-content: flex-end;
  margin: 0.7rem 0 0;
  padding-top: 0;
  border-top: 0;
}

.login-back.is-end a {
  font-size: 0.86rem;
  font-weight: 600;
  color: #16324f;
}

.login-page .site-footer {
  border-top-color: #e7edf3;
}

@media (max-width: 800px) {
  .login-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .login-brand {
    border-right: 0;
    border-bottom: 1px solid #e7edf3;
    padding: 2.5rem 1.5rem 2rem;
  }

  .login-panel {
    padding: 1.75rem 1.35rem 1.5rem;
  }
}

@media (max-width: 991.98px) {
  .ws-app.is-authed {
    grid-template-columns: 1fr;
  }

  .ws-sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-105%);
    width: min(280px, 88vw);
    box-shadow: var(--ws-shadow-lg);
    transition: transform 220ms ease;
  }

  .ws-sidebar.is-open {
    transform: translateX(0);
  }

  .ws-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 31, 46, 0.35);
    z-index: 1035;
  }

  .ws-sidebar-backdrop.is-open {
    display: block;
  }

  .ws-menu-btn {
    display: inline-flex;
  }

  .ws-user-meta {
    display: none;
  }

  .ws-main,
  .ws-topbar-inner,
  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Inspector workspace */
.insp-page {
  margin: 0;
  background: #fff;
  color: #0b1f3a;
  font-family: Geist, Inter, sans-serif;
}
.insp-page a { color: inherit; text-decoration: none; }
.insp-page .insp-nav a { color: #5b6675; }
.insp-page .insp-nav a:hover { color: #0b1f3a; }
.insp-page .insp-nav a[aria-current="page"],
.insp-page .insp-nav a[aria-current="page"]:hover { color: #fff; }
.insp-shell { min-height: 100vh; display: flex; flex-direction: column; }
.insp-stripe { display: flex; height: 3px; }
.insp-stripe span { flex: 1; }
.insp-stripe span:nth-child(1) { background: #0b1f3a; }
.insp-stripe span:nth-child(2) { background: #e31c23; }
.insp-stripe span:nth-child(3) { background: #f5b400; }
.insp-header {
  height: 80px;
  border-bottom: 1px solid #e6e9ee;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}
.insp-header-inner {
  height: 100%;
  margin: 0 auto;
  padding: 0 50px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 32px;
}
.insp-brand { display: flex; align-items: center; gap: 16px; }
.insp-brand img { display: block; height: 44px; width: auto; }
.insp-brand-rule { width: 1px; height: 28px; background: #e6e9ee; }
.insp-brand-text { display: flex; flex-direction: column; line-height: 16px; }
.insp-brand-text span:first-child { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.insp-brand-text span:last-child {
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: #5b6675;
}
.insp-bell {
  margin-left: auto;
  position: relative;
  width: 40px; height: 40px;
  border: 1px solid #e6e9ee;
  border-radius: 6px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #0b1f3a;
}
.insp-bell-badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
  border-radius: 4px; background: #e31c23; color: #fff;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.insp-user { position: relative; }
.insp-user summary {
  list-style: none;
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 12px 0 4px;
  border: 1px solid #e6e9ee; border-radius: 6px;
  cursor: pointer;
}
.insp-user summary::-webkit-details-marker { display: none; }
.insp-avatar {
  width: 30px; height: 30px; border-radius: 4px;
  background: #0b1f3a; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
}
.insp-user-text { display: flex; flex-direction: column; line-height: 15px; }
.insp-user-text span:first-child { font-size: 13px; font-weight: 600; }
.insp-user-text span:last-child { font-size: 11px; color: #5b6675; }
.insp-user form {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid #e6e9ee; border-radius: 6px;
  min-width: 140px; padding: 6px;
  box-shadow: 0 8px 24px rgba(11, 31, 58, 0.08);
}
.insp-user button {
  width: 100%; height: 36px; border: 0; background: transparent;
  text-align: left; padding: 0 10px; border-radius: 4px;
  font: 600 13px Geist, Inter, sans-serif; color: #0b1f3a; cursor: pointer;
}
.insp-user button:hover { background: #f7f8fa; }
.insp-main {
  width: 100%; margin: 0 auto;
  padding: 40px 50px 64px; box-sizing: border-box;
}
.insp-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.insp-kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #5b6675; }
.insp-hero h1 { margin: 8px 0 0; font-size: 40px; line-height: 44px; font-weight: 600; letter-spacing: -0.035em; }
.insp-hero p { margin: 8px 0 0; font-size: 15px; line-height: 22px; color: #5b6675; }
.insp-upload {
  height: 48px; padding: 0 20px; border-radius: 6px;
  background: #0b1f3a; color: #fff !important;
  font-size: 15px; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
  box-shadow: inset 0 -2px 0 #e31c23;
}
.insp-upload:hover { background: #163a66; }
.insp-pipeline { margin-top: 36px; border: 1px solid #e6e9ee; border-radius: 10px; overflow: hidden; }
.insp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); border-bottom: 1px solid #e6e9ee; }
.insp-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 22px 28px; background: #fff; text-align: left;
}
.insp-tile + .insp-tile { border-left: 1px solid #e6e9ee; }
.insp-tile.is-on { background: #f7f8fa; box-shadow: inset 0 -2px 0 #0b1f3a; }
.insp-tile:hover { background: #f7f8fa; }
.insp-tile-label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #5b6675; }
.insp-tile-label.is-attention { display: flex; align-items: center; gap: 8px; color: #0b1f3a; }
.insp-gold-dot { width: 8px; height: 8px; border-radius: 2px; background: #f5b400; }
.insp-tile-figure { display: flex; align-items: baseline; gap: 10px; }
.insp-tile-figure span:first-child { font-size: 48px; line-height: 52px; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.insp-tile-figure span:last-child { font-size: 13px; color: #5b6675; }
.insp-pipe-body { padding: 20px 28px 24px; }
.insp-pipe-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: #5b6675; }
.insp-pipe-head span:first-child { font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.insp-bar { display: flex; gap: 2px; height: 10px; margin-top: 12px; border-radius: 3px; overflow: hidden; background: #f0f2f5; }
.insp-bar span { transition: opacity 150ms ease; }
.insp-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 32px; margin-top: 20px; }
.insp-group-name { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #8a93a0; padding-bottom: 6px; border-bottom: 1px solid #e6e9ee; }
.insp-status {
  display: flex; justify-content: space-between; align-items: center;
  height: 40px; padding: 0 10px; margin: 0 -10px; border-radius: 6px;
  font-size: 13px; font-weight: 500;
}
.insp-status span:first-child { display: flex; align-items: center; gap: 10px; }
.insp-status span:last-child { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.insp-status.is-on { background: #f7f8fa; font-weight: 600; box-shadow: inset 2px 0 0 #0b1f3a; }
.insp-status:hover { background: #f7f8fa; }
.insp-dot { width: 8px; height: 8px; border-radius: 2px; }
.insp-actions, .insp-list { margin-top: 40px; }
.insp-section-head {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 12px; border-bottom: 1px solid #0b1f3a;
}
.insp-section-head h2 { margin: 0; font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -0.02em; }
.insp-section-head > span, .insp-section-title span { font-size: 13px; color: #5b6675; }
.insp-action {
  display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr) auto;
  gap: 32px; align-items: center;
  padding: 18px 0 18px 18px; border-bottom: 1px solid #e6e9ee;
  box-shadow: inset 3px 0 0 #f5b400;
}
.insp-serial { font-family: "Geist Mono", ui-monospace, monospace; font-size: 14px; font-weight: 500; }
.insp-muted { color: #5b6675; }
.insp-action .insp-muted { font-size: 13px; margin-top: 3px; }
.insp-quote { font-size: 14px; line-height: 20px; }
.insp-when { font-size: 12px !important; margin-top: 4px; }
.insp-reupload {
  height: 40px; padding: 0 16px; border: 1px solid #0b1f3a; border-radius: 6px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  display: inline-flex; align-items: center;
}
.insp-reupload:hover { background: #f7f8fa; }
.insp-list-head { align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-bottom: 14px; }
.insp-section-title { display: flex; align-items: baseline; gap: 12px; }
.insp-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.insp-chip {
  display: flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 10px; border: 1px solid #0b1f3a; border-radius: 4px;
  font-size: 12px; font-weight: 500;
}
.insp-search { position: relative; display: flex; width: 300px; max-width: 100%; }
.insp-search svg { position: absolute; left: 12px; top: 10px; }
.insp-search input {
  width: 100%; height: 36px; box-sizing: border-box;
  border: 1px solid #d5dae1; border-radius: 6px;
  padding: 0 32px 0 36px;
  font: 13px Geist, Inter, sans-serif; color: #0b1f3a; background: #fff;
}
.insp-search input::placeholder { color: #8a93a0; }
.insp-search input:focus { outline: none; border-color: #0b1f3a; box-shadow: 0 0 0 3px rgba(245, 180, 0, 0.35); }
.insp-clear {
  position: absolute; right: 6px; top: 6px; width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center; color: #5b6675;
}
.insp-table-wrap { overflow-x: auto; }
.insp-table { min-width: 780px; }
.insp-thead, .insp-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.2fr) 118px 118px 160px;
  gap: 16px; padding: 0 12px; align-items: center;
  border-bottom: 1px solid #e6e9ee;
}
.insp-thead { height: 42px; }
.insp-thead a {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #5b6675;
}
.insp-thead a.is-on { color: #0b1f3a; }
.insp-thead a span { font-size: 11px; color: #c9d2de; letter-spacing: 0; }
.insp-thead a.is-on span { color: #e31c23; }
.insp-thead a:hover { color: #0b1f3a; }
.insp-row { height: 48px; font-size: 13px; }
.insp-row:hover { background: #f7f8fa; }
.insp-num { font-variant-numeric: tabular-nums; }
.insp-badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; box-sizing: border-box;
  border-radius: 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.03em; white-space: nowrap;
}
.insp-badge[data-status="SUBMITTED"] { color: #0b1f3a; background: #fff; border: 1px solid #0b1f3a; }
.insp-badge[data-status="CHANGES_REQUESTED"] { color: #0b1f3a; background: rgba(245, 180, 0, 0.16); border: 1px solid #f5b400; }
.insp-badge[data-status="SIGNED_UPLOADED"] { color: #163a66; background: rgba(22, 58, 102, 0.07); border: 1px solid rgba(22, 58, 102, 0.3); }
.insp-badge[data-status="PROCESSING"] { color: #163a66; background: #fff; border: 1px dashed #163a66; }
.insp-badge[data-status="PROCESSING_FAILED"] { color: #fff; background: #e31c23; border: 1px solid #e31c23; }
.insp-badge[data-status="APPROVED"] { color: #fff; background: #0f7a4a; border: 1px solid #0f7a4a; }
.insp-badge[data-status="REVOKED"] { color: #fff; background: #0b1f3a; border: 1px solid #0b1f3a; border-left: 3px solid #e31c23; }
.insp-table-foot { display: flex; justify-content: space-between; margin-top: 14px; font-size: 12px; color: #5b6675; }
.insp-empty {
  padding: 56px 0; display: flex; flex-direction: column; align-items: center; gap: 14px;
  border-bottom: 1px solid #e6e9ee; text-align: center;
}
.insp-empty-icon {
  width: 44px; height: 44px; border: 1px solid #e6e9ee; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.insp-empty-title { font-size: 15px; font-weight: 600; }
.insp-empty-text { font-size: 14px; color: #5b6675; max-width: 380px; }
.insp-empty .insp-upload { margin-top: 8px; }
.insp-footer,
.app-footer {
  height: 48px;
  margin-top: auto;
  padding: 0 50px;
  border-top: 1px solid #e6e9ee;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #5b6675;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0;
  word-spacing: normal;
}
.insp-footer p,
.app-footer p {
  margin: 0;
  text-align: center;
}
.insp-nav {
  display: flex; align-items: center; gap: 8px;
  flex: 1; min-width: 0; overflow-x: auto;
  height: 40px;
}
.insp-nav-group {
  display: flex; align-items: center; gap: 2px;
  padding: 3px;
  background: #f4f6f8;
  border: 1px solid #e6e9ee;
  border-radius: 8px;
}
.insp-nav-rule { width: 1px; height: 18px; background: #d5dae1; flex: none; }
.insp-nav a {
  display: flex; align-items: center;
  height: 32px; padding: 0 12px;
  border-radius: 6px;
  font-size: 13px; font-weight: 500; color: #5b6675;
  letter-spacing: 0;
  white-space: nowrap;
}
.insp-nav a:hover { color: #0b1f3a; background: #fff; }
.insp-nav a[aria-current="page"] {
  font-weight: 600; color: #fff;
  background: #0b1f3a;
  box-shadow: none;
}
.insp-flash {
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid #e6e9ee;
  border-left: 3px solid #0f7a4a;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
}
button.insp-upload {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

/* —— Upload certificate modal —— */
.wv-modal {
  --navy: #0B1F3A;
  --navy-2: #163A66;
  --red: #E31C23;
  --gold: #F5B400;
  --green: #0F7A4A;
  --ink: #0B1F3A;
  --muted: #5B6675;
  --faint: #8A93A0;
  --line: #E6E9EE;
  --field: #D5DAE1;
  --tint: #F7F8FA;
  --font: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  box-sizing: border-box;
  background: rgba(11, 31, 58, 0.45);
  font-family: var(--font);
  color: var(--ink);
}
.wv-modal[data-open="true"] { display: flex; animation: wv-fade 0.15s ease-out; }
.wv-dialog {
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 24px 64px rgba(11, 31, 58, 0.22);
  animation: wv-rise 0.16s ease-out;
}
@keyframes wv-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wv-rise { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.wv-stripe { flex: none; display: flex; height: 3px; }
.wv-stripe i { flex: 1; }
.wv-stripe i:nth-child(1) { background: var(--navy); }
.wv-stripe i:nth-child(2) { background: var(--red); }
.wv-stripe i:nth-child(3) { background: var(--gold); }
.wv-head {
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--line);
}
.wv-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.wv-title { margin: 6px 0 0; font-size: 26px; line-height: 32px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); font-family: var(--font); }
.wv-sub { margin: 4px 0 0; font-size: 14px; line-height: 20px; color: var(--muted); }
.wv-close {
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.wv-close:hover { background: var(--tint); }
.wv-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.wv-section { display: flex; flex-direction: column; gap: 16px; }
.wv-section-h {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.wv-section-h .n { font: 11px var(--mono); color: var(--faint); }
.wv-section-h .t { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.wv-section-h .r { margin-left: auto; font-size: 12px; color: var(--muted); }
.wv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  align-items: start;
}
.wv-grid > * { min-width: 0; }
.wv-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  align-items: stretch;
}
.wv-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wv-label { font-size: 13px; font-weight: 500; }
.wv-label .req { color: var(--red); }
.wv-label .opt { font-weight: 400; color: var(--faint); }
.wv-input, .wv-select, .wv-textarea {
  width: 100%;
  height: 48px;
  box-sizing: border-box;
  border: 1px solid var(--field);
  border-radius: 6px;
  padding: 0 14px;
  font: 14px var(--font);
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.wv-input::placeholder, .wv-textarea::placeholder { color: var(--faint); }
.wv-input:focus, .wv-select:focus, .wv-textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(245, 180, 0, 0.35);
}
.wv-input.mono { font-family: var(--mono); letter-spacing: 0.02em; text-transform: uppercase; }
.wv-input.auto { background: var(--tint); }
.wv-input[type="date"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 10px;
  line-height: 1;
}
.wv-input[type="date"]::-webkit-datetime-edit,
.wv-input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.wv-input[type="date"]::-webkit-datetime-edit-text,
.wv-input[type="date"]::-webkit-datetime-edit-day-field,
.wv-input[type="date"]::-webkit-datetime-edit-month-field,
.wv-input[type="date"]::-webkit-datetime-edit-year-field {
  padding: 0;
  min-width: 0;
}
.wv-input[type="date"]::-webkit-calendar-picker-indicator {
  margin: 0;
  cursor: pointer;
  opacity: 0.55;
  flex: none;
}
.wv-select-wrap { position: relative; }
.wv-select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; color-scheme: light; }
.wv-select:invalid { color: var(--faint); }
.wv-select-wrap svg { position: absolute; right: 14px; top: 17px; pointer-events: none; }
.wv-select-wrap.is-custom > select,
.ws-select > select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ws-select {
  position: relative;
  display: block;
  width: 100%;
}

.ws-select-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--ws-line-strong, #cfd9e3);
  border-radius: 6px;
  background: #fff;
  color: var(--ws-ink, #15202b);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  color-scheme: light;
}

.wv-field .ws-select-btn {
  height: 48px;
  border-color: var(--field, #d5dae1);
}

.filter-bar .ws-select-btn,
.form-panel .ws-select-btn,
form p .ws-select-btn {
  min-height: calc(0.65rem * 2 + 1.25em);
  height: auto;
  padding: 0.65rem 0.9rem;
  border-radius: var(--ws-radius-sm);
}

.ws-select-btn:focus {
  outline: none;
  border-color: var(--ws-navy, #163a56);
  box-shadow: 0 0 0 4px rgba(22, 58, 86, 0.1);
}

.wv-field .ws-select-btn:focus {
  border-color: var(--navy, #0b1f3a);
  box-shadow: 0 0 0 3px rgba(245, 180, 0, 0.35);
}

.ws-select-btn.is-placeholder,
.ws-select-btn.is-placeholder .ws-select-label {
  color: var(--ws-muted, #5d6b78);
}

.ws-select-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-select-btn svg {
  flex: none;
  color: #5b6675;
}

.ws-select.is-open .ws-select-btn {
  border-color: var(--ws-navy, #163a56);
}

.ws-select.is-disabled .ws-select-btn,
.wv-field.is-locked .ws-select-btn {
  background: var(--tint, #f7f8fa);
  color: var(--muted, #5b6675);
  cursor: default;
}

.wv-field.has-error .ws-select-btn {
  border-color: var(--red, #e31c23);
}

.ws-select-menu {
  position: fixed;
  z-index: 4000;
  max-height: 240px;
  overflow: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--ws-line-strong, #cfd9e3);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 31, 46, 0.08);
  color-scheme: light;
}

.ws-select-option {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: var(--ws-ink, #15202b);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.ws-select-option:hover,
.ws-select-option:focus {
  outline: none;
  background: #f3f6f9;
}

.ws-select-option[aria-selected="true"] {
  background: rgba(22, 58, 86, 0.08);
  color: var(--ws-navy-deep, #0e2740);
  font-weight: 600;
}

.ws-select-option.is-placeholder,
.ws-select-option[disabled] {
  color: #8a93a0;
  cursor: default;
  background: #fff;
}
.wv-textarea { height: auto; min-height: 88px; padding: 12px 14px; line-height: 20px; resize: vertical; }
.wv-field.has-error .wv-input, .wv-field.has-error .wv-select { border-color: var(--red); }
.wv-field.is-locked .wv-input, .wv-field.is-locked .wv-select {
  background: var(--tint);
  color: var(--muted);
  cursor: default;
}
.wv-error { display: none; font-size: 12px; line-height: 16px; color: var(--red); }
.wv-field.has-error .wv-error, .wv-error.show { display: block; }
.wv-hint { display: none; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: -6px; }
.wv-hint.show { display: flex; }
.wv-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 28px 20px;
  border: 1.5px dashed #9FB0C6;
  border-radius: 8px;
  background: var(--tint);
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
}
.wv-drop:hover, .wv-drop.drag { border-color: var(--navy); background: rgba(245, 180, 0, 0.08); }
.wv-drop.error { border-color: var(--red); }
.wv-drop .ic {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wv-drop .t { font-size: 14px; font-weight: 600; margin-top: 4px; }
.wv-drop .t u { color: var(--navy-2); text-underline-offset: 3px; }
.wv-drop .s { font-size: 12px; color: var(--muted); }
.wv-file { display: none; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--field); border-radius: 8px; }
.wv-file.show { display: flex; }
.wv-file.error { border-color: var(--red); }
.wv-file .ext {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--navy-2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 10px var(--mono);
}
.wv-file .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 18px; }
.wv-file .name { font: 500 13px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wv-file .size { font-size: 12px; color: var(--muted); }
.wv-callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 19px;
}
.wv-callout .tag {
  flex: none;
  font: 600 10px var(--mono);
  letter-spacing: 0.04em;
  background: rgba(245, 180, 0, 0.18);
  padding: 2px 6px;
  border-radius: 3px;
  margin-top: 1px;
}
.wv-callout-error { border-left-color: var(--red); }
.wv-callout-error .tag { background: rgba(227, 28, 35, 0.12); color: var(--red); }
.wv-callout[hidden] { display: none !important; }
.wv-foot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 28px;
  border-top: 1px solid var(--line);
  background: var(--tint);
}
.wv-foot .status { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.wv-foot .status i { width: 6px; height: 6px; border-radius: 1px; background: var(--navy-2); }
.wv-foot .status b { color: var(--ink); }
.wv-foot .actions { display: flex; gap: 10px; }
.wv-modal .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 6px;
  font: 600 14px var(--font);
  cursor: pointer;
  white-space: nowrap;
  border: 0;
  box-shadow: none;
  transform: none;
}
.wv-modal .btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--red);
  transition: background-color 0.15s ease;
}
.wv-modal .btn-primary:hover { background: var(--navy-2); color: #fff; }
.wv-modal .btn-primary[disabled] { opacity: 0.7; cursor: default; }
.wv-modal .btn-ghost { background: transparent; color: var(--ink); font-weight: 500; padding: 0 16px; }
.wv-modal .btn-ghost:hover { background: transparent; color: var(--ink); }
.wv-modal .btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
  border: 1px solid var(--field);
  background: #fff;
  color: var(--ink);
}
@media (max-width: 760px) {
  .insp-header-inner, .insp-main, .site-footer { padding-left: 16px; padding-right: 16px; }
  .insp-user-text { display: none; }
  .insp-action { grid-template-columns: 1fr; gap: 12px; }
  .insp-tile + .insp-tile { border-left: 0; border-top: 1px solid #e6e9ee; }
  .insp-hero h1 { font-size: 32px; line-height: 36px; }
}
@media (max-width: 560px) {
  .wv-modal { padding: 0; align-items: flex-end; }
  .wv-dialog { max-height: 100vh; border-radius: 10px 10px 0 0; }
  .wv-head, .wv-body, .wv-foot { padding-left: 20px; padding-right: 20px; }
}

/* Manager workspace components (scoped so Bootstrap pages stay intact) */
.insp-page {
  --navy:#0B1F3A; --navy-2:#163A66; --red:#E31C23; --gold:#F5B400; --green:#0F7A4A;
  --ink:#0B1F3A; --muted:#5B6675; --faint:#8A93A0; --line:#E6E9EE; --field:#D5DAE1; --tint:#F7F8FA; --track:#F0F2F5;
  --font:'Geist',system-ui,sans-serif; --mono:'Geist Mono',ui-monospace,monospace;
  --r-badge:4px; --r-input:6px; --r-card:8px; --r-panel:10px;
  --focus:0 0 0 3px rgba(245,180,0,.35);
  --shadow-pop:0 8px 24px rgba(11,31,58,.08);
  --ease:150ms ease;
  background:#fff;
  color:var(--ink);
}
.insp-page .insp-main a:not(.btn):not(.board-tile):not(.board-item):not(.tab):not(.chip){color:inherit;text-decoration:none}
.insp-page .mono{font-family:var(--mono)}
.insp-page .num{font-variant-numeric:tabular-nums}
.insp-page .ml-auto{margin-left:auto}
.insp-page .page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;flex-wrap:wrap}
.insp-page .page-head .h1{margin:0}
.insp-page .page-head .lede{margin:8px 0 0}
.insp-page .eyebrow{font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.insp-page .crumbs,.ws-app .crumbs{
  display:flex;gap:8px;align-items:center;flex-wrap:wrap;
  font-size:12px;font-weight:500;color:#8a93a0;
}
.insp-page .crumbs a,.ws-app .crumbs a{
  display:inline-flex;align-items:center;color:#163a66;text-decoration:none;
}
.insp-page .crumbs a:hover,.ws-app .crumbs a:hover{color:#0b1f3a}
.insp-page .crumbs .mono,.ws-app .crumbs .mono{font-family:"Geist Mono",ui-monospace,monospace;color:#0b1f3a}
.insp-page .h1{margin:8px 0 0;font-size:40px;line-height:44px;font-weight:600;letter-spacing:-.035em}
.insp-page .lede{margin:8px 0 0;font-size:15px;line-height:22px;color:var(--muted)}
.insp-page .crumbs{font-size:12px;color:var(--muted);display:flex;gap:8px;align-items:center}
.insp-page .section{margin-top:40px}
.insp-page .section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:nowrap;padding-bottom:14px;border-bottom:1px solid var(--navy)}
.insp-page .section-head h2{margin:0;font-size:20px;line-height:26px;font-weight:600;letter-spacing:-.02em}
.insp-page .section-head .cap{font-size:13px;color:var(--muted)}
.insp-page .section-head .filters{display:flex;align-items:center;gap:10px;flex:none;min-width:0}
.insp-page .section-head .filters .ws-select{width:200px;flex:none}
.insp-page .section-head .filters .ws-select-btn{min-height:36px;height:36px;font-size:13px}
.insp-page .section-head .filters .search{width:260px}
.insp-page .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 18px;border-radius:var(--r-input);font:600 14px var(--font);cursor:pointer;white-space:nowrap;flex:none;border:0;text-decoration:none;transition:background-color var(--ease),border-color var(--ease);box-shadow:none;transform:none}
.insp-page .btn-lg{height:48px;padding:0 20px;font-size:15px}
.insp-page .btn-sm{height:34px;padding:0 14px;font-size:13px}
.insp-page .btn-xs{height:32px;padding:0 12px;font-size:12px}
.insp-page .btn-primary{background:var(--navy);color:#fff;box-shadow:inset 0 -2px 0 var(--red)}
.insp-page .btn-primary:hover{background:var(--navy-2);color:#fff}
.insp-page .btn-dark{background:var(--navy);color:#fff}
.insp-page .btn-dark:hover{background:var(--navy-2);color:#fff}
.insp-page .btn-outline{background:#fff;color:var(--ink);border:1px solid var(--navy)}
.insp-page .btn-outline:hover{background:var(--tint)}
.insp-page .btn-quiet{background:#fff;color:var(--ink);border:1px solid var(--field)}
.insp-page .btn-quiet:hover{border-color:var(--navy)}
.insp-page .btn-danger-outline{background:#fff;color:var(--red);border:1px solid rgba(227,28,35,.4)}
.insp-page .btn-danger-outline:hover{background:rgba(227,28,35,.05)}
.insp-page .btn-ghost{background:transparent;color:var(--ink);font-weight:500}
.insp-page .btn[disabled]{background:var(--line);color:var(--faint);box-shadow:none;cursor:default}
.insp-page .field{display:flex;flex-direction:column;gap:6px}
.insp-page .label{font-size:13px;font-weight:500}
.insp-page .label .req{color:var(--red)}
.insp-page .label .opt{font-weight:400;color:var(--faint)}
.insp-page .input,.insp-page .select,.insp-page .textarea{width:100%;height:48px;border:1px solid var(--field);border-radius:var(--r-input);padding:0 14px;font:14px var(--font);color:var(--ink);background:#fff}
.insp-page .input-sm{height:36px;font-size:13px;padding:0 10px}
.insp-page .textarea{height:auto;min-height:88px;padding:12px 14px;line-height:20px;resize:vertical}
.insp-page .select{appearance:none;padding-right:36px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none' stroke='%235B6675' stroke-width='1.4'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center}
.insp-page .field.has-error .input{border-color:var(--red)}
.insp-page .error-text{font-size:12px;line-height:16px;color:var(--red)}
.insp-page .search{position:relative;display:flex;width:280px;max-width:100%}
.insp-page .search svg{position:absolute;left:12px;top:10px}
.insp-page .search .input{height:36px;font-size:13px;padding-left:36px}
.insp-page .switch{position:relative;width:44px;height:24px;border-radius:5px;background:var(--field);flex:none}
.insp-page .switch::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:3px;background:#fff}
.insp-page .switch[aria-checked="true"]{background:var(--navy)}
.insp-page .switch[aria-checked="true"]::after{left:23px}
.insp-page .badge{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:var(--r-badge);font-size:11px;font-weight:600;letter-spacing:.03em;white-space:nowrap;border:1px solid transparent}
.insp-page .badge--submitted{color:var(--ink);background:#fff;border-color:var(--navy)}
.insp-page .badge--changes_requested{color:var(--ink);background:rgba(245,180,0,.16);border-color:var(--gold)}
.insp-page .badge--signed_uploaded{color:var(--navy-2);background:rgba(22,58,102,.07);border-color:rgba(22,58,102,.3)}
.insp-page .badge--processing{color:var(--navy-2);background:#fff;border:1px dashed var(--navy-2)}
.insp-page .badge--processing_failed{color:#fff;background:var(--red);border-color:var(--red)}
.insp-page .badge--approved{color:#fff;background:var(--green);border-color:var(--green)}
.insp-page .badge--revoked{color:#fff;background:var(--navy);border-color:var(--navy);border-left:3px solid var(--red)}
.insp-page .badge--expiring{color:var(--ink);background:var(--gold);border-color:var(--gold)}
.insp-page .badge--active{color:var(--green);background:rgba(15,122,74,.07);border-color:rgba(15,122,74,.35);text-transform:uppercase;letter-spacing:.04em}
.insp-page .badge--inactive{color:var(--muted);background:var(--tint);border-color:var(--line);text-transform:uppercase;letter-spacing:.04em}
.insp-page .badge--invited{color:var(--ink);background:rgba(245,180,0,.16);border-color:var(--gold);text-transform:uppercase;letter-spacing:.04em}
.insp-page .dot{width:8px;height:8px;border-radius:2px;flex:none}
.insp-page .board{margin-top:36px;border:1px solid var(--line);border-radius:var(--r-panel);overflow:hidden}
.insp-page .board-top{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));border-bottom:1px solid var(--line)}
.insp-page .board-tile{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:22px 28px;border:0;background:#fff;cursor:pointer;text-align:left;font-family:var(--font);color:var(--ink)}
.insp-page .board-tile+.board-tile{border-left:1px solid var(--line)}
.insp-page .board-tile[aria-pressed="true"]{background:var(--tint);box-shadow:inset 0 -2px 0 var(--navy)}
.insp-page .board-tile .k{font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.insp-page .board-tile .v{font-size:48px;line-height:52px;font-weight:600;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.insp-page .board-tile .note{font-size:13px;color:var(--muted)}
.insp-page .board-tile .note.warn{color:var(--red);font-weight:600}
.insp-page .board-body{padding:20px 28px 24px}
.insp-page .pipeline{display:flex;gap:2px;height:10px;margin-top:12px;border-radius:3px;overflow:hidden;background:var(--track)}
.insp-page .pipeline span.dim{opacity:.25}
.insp-page .board-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:0 32px;margin-top:20px}
.insp-page .board-group h4{margin:0;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--faint);padding-bottom:6px;border-bottom:1px solid var(--line)}
.insp-page .board-item{display:flex;justify-content:space-between;align-items:center;width:calc(100% + 20px);height:40px;padding:0 10px;margin:0 -10px;border:0;border-radius:6px;background:transparent;cursor:pointer;font:500 13px var(--font);color:var(--ink);text-align:left}
.insp-page .board-item:hover,.insp-page .board-item[aria-pressed="true"]{background:var(--tint)}
.insp-page .board-item[aria-pressed="true"]{box-shadow:inset 2px 0 0 var(--navy);font-weight:600}
.insp-page .board-item .n{font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}
.insp-page .table-wrap{overflow-x:auto}
.insp-page .table{width:100%;border-collapse:collapse;font-size:13px}
.insp-page .table th{height:42px;padding:0 12px;text-align:left;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);border-bottom:1px solid var(--line);white-space:nowrap}
.insp-page .table th .arrow{font-size:11px;color:#C9D2DE}
.insp-page .table th[aria-sort] .arrow{color:var(--red)}
.insp-page .table td{height:52px;padding:0 12px;border-bottom:1px solid var(--line);vertical-align:middle}
.insp-page .table tbody tr:hover{background:var(--tint)}
.insp-page .table tbody tr.is-selected{background:rgba(245,180,0,.08)}
.insp-page .table .serial{font-family:var(--mono);font-weight:500}
.insp-page .table .serial a{color:inherit;text-decoration:none}
.insp-page .table .serial a:hover{color:var(--navy-2);text-decoration:underline}
.insp-page .table .sub{display:block;font-size:12px;color:var(--muted)}
.insp-page .table .ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:240px}
.insp-page .table-foot{display:flex;justify-content:space-between;margin-top:14px;font-size:12px;color:var(--muted)}
.insp-page .bulk-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 12px;background:var(--navy);color:#fff;border-radius:0 0 6px 6px}
.insp-page .empty{padding:56px 0;display:flex;flex-direction:column;align-items:center;gap:12px;border-bottom:1px solid var(--line);text-align:center}
.insp-page .empty b{font-size:15px}
.insp-page .empty p{margin:0;font-size:14px;color:var(--muted);max-width:380px}
.insp-page .chip{display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 10px;border:1px solid var(--navy);border-radius:4px;background:#fff;font:500 12px var(--font);color:var(--ink)}
.insp-page .tabs{display:flex;gap:4px}
.insp-page .tab{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 10px;border:1px solid transparent;border-radius:4px;background:transparent;color:var(--muted);font:500 13px var(--font)}
.insp-page .tab[aria-selected="true"]{background:var(--navy);border-color:var(--navy);color:#fff;font-weight:600}
.insp-page .panel{border:1px solid var(--line);border-radius:var(--r-panel);padding:20px 22px}
.insp-page .panel-k{font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.insp-page .callout{display:flex;gap:14px;align-items:flex-start;padding:18px 20px;border:1px solid var(--line);border-left:3px solid var(--navy-2);border-radius:var(--r-card);background:var(--tint)}
.insp-page .callout--gold{border-left-color:var(--gold);background:rgba(245,180,0,.07)}
.insp-page .callout--red{border-left-color:var(--red);background:rgba(227,28,35,.04)}
.insp-page .toast{position:fixed;right:24px;bottom:24px;z-index:1100;width:360px;max-width:calc(100vw - 48px);background:#fff;border:1px solid var(--line);border-left:3px solid var(--green);border-radius:6px;padding:12px 14px;display:flex;gap:12px;box-shadow:var(--shadow-pop)}
.insp-page .toast--error{border-left-color:var(--red)}
.insp-page .toast b{display:block;font-size:13px}
.insp-page .toast p{margin:2px 0 0;font-size:12px;color:var(--muted)}
@media (max-width:1100px){
  .insp-page .section-head{flex-wrap:wrap}
  .insp-page .section-head .filters{flex-wrap:wrap}
}
@media (max-width:640px){.insp-page .h1{font-size:32px;line-height:38px}}

.insp-page .rpt-filters{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}
.insp-page .rpt-filters .select{width:auto;min-width:160px}
.insp-page .rpt-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));margin-top:20px}
.insp-page .rpt-cards .board-tile+.board-tile{border-left:1px solid var(--line)}
.insp-page .rpt-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px;margin-top:16px}
.insp-page .rpt-grid--3{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
.insp-page .rpt-panel{min-width:0}
.insp-page .rpt-donut-wrap{position:relative;width:168px;height:168px;margin:18px auto 8px}
.insp-page .rpt-donut-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none}
.insp-page .rpt-donut-center b{font-size:28px;line-height:30px;letter-spacing:-.03em}
.insp-page .rpt-donut-center span{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.insp-page .rpt-legend{display:flex;flex-direction:column;gap:2px;margin-top:8px}
.insp-page .rpt-legend a{display:flex;align-items:center;gap:10px;height:32px;padding:0 8px;border-radius:6px;font-size:13px}
.insp-page .rpt-legend a:hover{background:var(--tint)}
.insp-page .rpt-legend a span:nth-child(2){flex:1}
.insp-page .rpt-bars{display:flex;align-items:flex-end;gap:8px;height:180px;margin-top:20px;padding:0 4px}
.insp-page .rpt-bars--year{height:160px;gap:20px}
.insp-page .rpt-col{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:8px;height:100%}
.insp-page .rpt-col-bars{flex:1;width:100%;display:flex;align-items:flex-end;justify-content:center;gap:3px}
.insp-page .rpt-col-bars span{width:8px;min-height:2px;border-radius:2px 2px 0 0;background:var(--navy)}
.insp-page .rpt-col-bars span.is-approved{background:var(--green)}
.insp-page .rpt-col-label{font-size:10px;font-weight:600;letter-spacing:.02em;color:var(--muted);white-space:nowrap}
.insp-page .rpt-col-n{font-size:11px;color:var(--faint)}
.insp-page .rpt-key{display:flex;gap:16px;margin-top:12px;font-size:12px;color:var(--muted)}
.insp-page .rpt-key i{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:6px;vertical-align:middle}
.insp-page .rpt-key i.is-created{background:var(--navy)}
.insp-page .rpt-key i.is-approved{background:var(--green)}
.insp-page .rpt-hbar{display:flex;flex-direction:column;gap:10px;margin-top:16px}
.insp-page .rpt-hbar-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(80px,1.4fr) 36px;gap:10px;align-items:center;font-size:13px}
.insp-page .rpt-hbar-track{height:8px;border-radius:3px;background:var(--track);overflow:hidden}
.insp-page .rpt-hbar-track span{display:block;height:100%;border-radius:3px;min-width:2px}
.insp-page .rpt-empty{margin:20px 0 0;font-size:13px;color:var(--muted)}
@media (max-width:720px){
  .insp-page .rpt-cards .board-tile+.board-tile{border-left:0;border-top:1px solid var(--line)}
}
