/* Display the supplied brand artwork unchanged; crop only its empty outer margin. */
.brand-logo {
  display: block;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
}
.brand-logo img {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
}
.brand-logo--horizontal {
  width: 190px;
  aspect-ratio: 378 / 98;
}
.brand-logo--horizontal img {
  width: 127.51323%;
  left: -16.13757%;
  top: -14.28572%;
}
.brand-logo--vertical {
  width: 190px;
  aspect-ratio: 248 / 296;
  margin: 0 auto;
}
.brand-logo--vertical img {
  width: 285.48388%;
  left: -85.8871%;
  top: -25.33784%;
}
.login-page {
  background: #000;
}
.login-brand-heading {
  margin: 0;
  line-height: 1;
}
.login-top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.login-entry-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #515257;
  border-radius: 8px;
  color: #ededed;
  background: #171719;
  font-size: 13px;
  white-space: nowrap;
}
.login-entry-button:hover {
  border-color: #ffc000;
  color: #ffc000;
}
.login-entry-button .icon {
  width: 16px;
  height: 16px;
}
.sidebar .brand {
  display: block;
  margin: 0 0 32px;
}
.sidebar .brand-logo {
  width: 100%;
  border-radius: 5px;
}
.sidebar .brand small {
  text-align: center;
  margin-top: 9px;
}
.mobile-brand {
  display: none;
}
.employee-brand .brand-logo {
  width: 136px;
  border-radius: 4px;
}
.employee {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
@media (max-width: 650px) {
  .login-top {
    gap: 12px;
  }
  .login-brand .brand-logo {
    width: 142px;
  }
  .login-service-label {
    display: none;
  }
  .login-entry-button {
    padding: 9px 12px;
    font-size: 12px;
  }
  .login-brand-heading .brand-logo {
    width: 158px;
  }
  .mobile-brand {
    display: block;
  }
  .mobile-brand .brand-logo {
    width: 126px;
    border-radius: 4px;
  }
  .topbar .breadcrumb {
    display: none;
  }
}
.document-delivery {
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-left: 3px solid var(--yellow);
}
.document-delivery h2 {
  font-size: 17px;
  margin-bottom: 10px;
}
.document-delivery p {
  font-size: 12px;
  line-height: 1.9;
  margin-top: 7px;
  overflow-wrap: anywhere;
}
.document-delivery .btn {
  flex-shrink: 0;
}
.confirmation-reader {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.confirmation-reader .print-page > h1 {
  font-size: 21px;
  margin: 16px 0;
}
.confirmation-reader h2 {
  font-size: 16px;
  margin: 24px 0 12px;
}
.confirmation-reader p {
  margin: 12px 0;
}
.confirmation-reader .print-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}
.confirmation-reader .print-field {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.confirmation-reader .print-field b {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 5px;
}
.confirmation-reader table {
  border-collapse: collapse;
  width: 100%;
  margin: 18px 0;
  font-size: 12px;
}
.confirmation-reader td,
.confirmation-reader th {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.confirmation-reader th {
  background: #f5f6f8;
}
.confirmation-reader .print-signatures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.confirmation-reader .print-signatures img {
  width: 100%;
  height: 96px;
  object-fit: contain;
}
.confirmation-reader .print-footer {
  margin-top: 24px;
  font-size: 11px;
  color: var(--muted);
}
@media (max-width: 650px) {
  .document-delivery {
    flex-direction: column;
  }
  .confirmation-reader .print-grid,
  .confirmation-reader .print-signatures {
    grid-template-columns: 1fr;
  }
  .confirmation-reader table {
    display: block;
    overflow-x: auto;
  }
  .confirmation-reader th,
  .confirmation-reader td {
    min-width: 76px;
    padding: 8px;
  }
  .doc-status {
    flex-wrap: wrap;
    gap: 10px;
  }
}
.doc-status {
  font-size: 12px;
  margin-bottom: 18px;
}
.doc-group {
  padding: 25px 0;
  border-top: 1px solid var(--line);
}
.doc-group:first-of-type {
  padding-top: 4px;
  border: 0;
}
.doc-group > h3,
.signing-form > h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 22px;
}
.document-prose {
  font-size: 12px;
  line-height: 1.9;
  color: #6d747e;
  background: #f7f8fa;
  border-radius: 8px;
  padding: 15px 18px;
  margin: 20px 0;
}
.small-copy {
  font-size: 11px !important;
  color: #8d949d !important;
  line-height: 1.9 !important;
  margin: 15px 0;
}
.cap-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cap-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.cap-head {
  display: flex;
  gap: 10px;
  align-items: center;
}
.cap-head b {
  font-size: 10px;
  color: #a67a07;
  background: #fff5d6;
  padding: 5px;
  border-radius: 4px;
}
.cap-head h3 {
  font-size: 14px;
  font-weight: 600;
}
.cap-card > p {
  font-size: 11px;
  min-height: 44px;
  margin: 12px 0 16px;
}
.cap-selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 18px;
}
.cap-card .field {
  font-size: 11px;
}
.cap-card textarea {
  min-height: 59px;
}
.evidence-field {
  margin-top: 16px;
}
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.verify-list {
  display: grid;
  gap: 18px;
}
.verify-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 15px;
  background: #f8f9fb;
  border-radius: 9px;
}
.issue-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 15px;
}
.issue-card > .row {
  margin-bottom: 20px;
  font-size: 12px;
}
.signer-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 25px 0;
}
.signer-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 17px;
  overflow: hidden;
}
.signer-card h3 {
  font-size: 11px;
}
.signer-card img {
  width: 100%;
  height: 90px;
  object-fit: contain;
}
.signer-card p {
  font-size: 11px;
}
.signer-card small {
  font-size: 9px;
  color: #9298a0;
}
.unsigned {
  height: 95px;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: #b3b7bd;
}
.signing-form {
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.signature-pad {
  height: 185px;
  border: 1px dashed #b9bfc7;
  background: #fbfcfd;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.signature-pad canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  position: relative;
  z-index: 1;
  cursor: crosshair;
}
.signature-pad #signature-hint {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  pointer-events: none;
  color: #aab0b9;
  font-size: 19px;
  letter-spacing: 5px;
}
.signature-pad #signature-hint span {
  font-size: 10px;
  letter-spacing: 1px;
  color: #b7bdc5;
}
#signature-hint[hidden] {
  display: none;
}
.signed-actions {
  margin-top: 25px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
}
.signed-actions > .btn {
  margin-right: 10px;
}
.hash-note {
  font-family: Consolas, monospace;
  font-size: 10px !important;
  overflow-wrap: anywhere;
  margin-top: 15px;
  color: #9ca1a9 !important;
}
.history {
  margin-top: 25px;
  font-size: 12px;
  color: #787f88;
}
.history summary {
  cursor: pointer;
  margin-bottom: 12px;
}
.sign-preview {
  width: min(940px, calc(100% - 24px));
  max-height: 92svh;
}
.sign-preview-image {
  width: 240px;
  height: 100px;
  object-fit: contain;
  display: block;
  margin: 15px auto;
}
.preview-document {
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
}
.preview-document summary {
  cursor: pointer;
}
.preview-document > div {
  max-height: 300px;
  overflow: auto;
  background: #f8f9fa;
  padding: 15px;
  margin-top: 12px;
}
.preview-document .print-page {
  margin: 20px 0;
}
.preview-document h1 {
  font-size: 17px;
}
.preview-document h2 {
  font-size: 14px;
  margin: 15px 0;
}
.preview-document .print-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.preview-document .print-field {
  font-size: 11px;
  padding: 7px;
  border-bottom: 1px solid #ddd;
}
.preview-document .print-field b {
  display: block;
  font-size: 10px;
  color: #999;
}
.preview-document table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}
.preview-document td,
.preview-document th {
  border: 1px solid #ddd;
  padding: 7px;
}
.preview-document .print-footer {
  margin-top: 15px;
  font-size: 9px;
  color: #aaa;
}
.print-signatures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.print-signatures img {
  width: 100%;
  height: 90px;
  object-fit: contain;
}
.error-list {
  font-size: 12px;
  line-height: 2;
  color: #947226;
  padding-left: 20px;
}
.empty-state {
  text-align: center;
  padding: 55px 25px;
}
.empty-state > .icon {
  margin: 0 auto 22px;
  width: 45px;
  height: 45px;
  color: #bd9b47;
}
.empty-state .btn {
  margin-top: 20px;
}
.project-picker {
  border: 1px solid #e4e5e8;
  background: white;
  border-radius: 6px;
  padding: 9px 7px;
  width: 100%;
  font-size: 10px;
  margin-bottom: 22px;
  color: #747a82;
}
.admin-project-bar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 24px;
}
.admin-project-bar label {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: #90959e;
}
.admin-project-bar select {
  border: 0;
  border-left: 1px solid #eee;
  padding: 4px 15px;
  font-size: 14px;
  background: white;
  max-width: 420px;
  color: #363b43;
}
.admin-tabs {
  margin-bottom: 25px;
}
.admin-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}
.admin-stat {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid #eef0f2;
  font-size: 12px;
  color: #959aa1;
}
.admin-stat b {
  color: #505660;
  font-weight: 500;
}
.storage-number {
  font-size: 27px;
  margin: 20px 0;
  color: #b88c11;
}
.storage-number span {
  font-size: 12px;
  color: #a1a6ae;
}
.upload-zone {
  border: 1px dashed #ccd1d9;
  border-radius: 10px;
  padding: 35px 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: center;
  position: relative;
  cursor: pointer;
  background: #fbfcfd;
}
.upload-zone:hover {
  background: #fffcf2;
  border-color: #c8ad58;
}
.upload-zone b {
  font-size: 13px;
  font-weight: 500;
}
.upload-zone span {
  font-size: 11px;
  color: #9198a1;
}
.upload-zone .icon {
  color: #bd9a3d;
  width: 30px;
  height: 30px;
}
.upload-zone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}
.file-list {
  display: grid;
  gap: 0;
}
.file-list a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 0;
  border-bottom: 1px solid #eee;
  color: #535b67;
  font-size: 12px;
}
.file-list a:last-child {
  border-bottom: 0;
}
.file-list a > span {
  flex: 1;
  overflow-wrap: anywhere;
}
.file-list small {
  font-size: 10px;
  color: #9ca3ab;
}
.file-list span small {
  display: block;
  margin-top: 7px;
}
.admin-course-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.admin-course h2 {
  font-size: 17px;
  margin: 20px 0 12px;
}
.admin-course > p {
  font-size: 12px;
  min-height: 44px;
}
.course-file {
  font-size: 10px;
  color: #9ca2ab;
  margin: 18px 0;
  overflow-wrap: anywhere;
}
.admin-course video {
  display: block;
  width: 100%;
  max-height: 200px;
  aspect-ratio: 16/9;
  background: #1c1e21;
  border-radius: 7px;
  margin: 15px 0;
}
.course-actions {
  margin-bottom: 16px;
}
.course-actions .btn {
  font-size: 12px;
  flex: 1;
  padding: 11px 8px;
}
.upload-progress {
  padding: 19px 22px;
  border: 1px solid #dfd8c1;
  border-radius: 10px;
  background: #fffdf4;
  margin: 18px 0;
}
.upload-progress b {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.upload-progress p {
  font-size: 11px;
  color: #9a864e;
}
.question-editor {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 18px 0;
  background: #fcfcfd;
}
.question-editor > .row {
  margin-bottom: 18px;
  font-size: 12px;
}
.question-editor > .field {
  margin-bottom: 18px;
}
.question-editor textarea {
  min-height: 70px;
}
.table-scroll {
  overflow-x: auto;
}
.data-table {
  border-collapse: collapse;
  min-width: 530px;
  width: 100%;
  font-size: 12px;
  margin-top: 23px;
}
.data-table td,
.data-table th {
  padding: 15px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
}
.data-table th {
  font-size: 11px;
  color: #9aa0a8;
  font-weight: 400;
  background: #f8f9fa;
}
.data-table b {
  font-weight: 500;
}
.data-table small {
  display: block;
  font-size: 10px;
  color: #9da3ab;
}
.data-table .text-link {
  font-size: 11px;
}
.audit-list > div {
  display: flex;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}
.audit-list > div:last-child {
  border: 0;
}
.audit-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c3ab60;
  flex-shrink: 0;
  margin-top: 7px;
}
.audit-list b {
  font-size: 12px;
  font-weight: 500;
}
.audit-list p {
  font-size: 10px;
}
.audit-list small {
  font-size: 9px;
  overflow-wrap: anywhere;
  color: #a8acb3;
}
.audit-list > div > div {
  min-width: 0;
}
@media (max-width: 1150px) {
  .admin-two-column {
    grid-template-columns: 1fr;
  }
  .admin-two-column > .stack {
    grid-template-columns: 1fr 1fr;
  }
  .signer-cards {
    grid-template-columns: 1fr;
  }
  .signer-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 10px;
  }
  .signer-card .row {
    grid-column: 1/-1;
  }
  .unsigned {
    height: 35px;
    grid-column: 1/-1;
  }
  .signer-card img {
    height: 65px;
  }
  .cap-head h3 {
    font-size: 12px;
  }
}
@media (max-width: 650px) {
  .doc-status {
    font-size: 10px;
    gap: 8px;
  }
  .doc-status small {
    font-size: 9px;
  }
  .cap-list {
    grid-template-columns: 1fr;
  }
  .cap-card {
    padding: 17px;
  }
  .cap-card > p {
    min-height: 0;
  }
  .cap-head h3 {
    font-size: 14px;
  }
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
  .verify-item {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .doc-group {
    padding: 23px 0;
  }
  .sign-preview {
    padding: 22px 17px;
  }
  .signature-pad {
    height: 170px;
  }
  .signing-form .form-actions .btn {
    width: 100%;
  }
  .admin-project-bar {
    padding: 15px;
    align-items: flex-start;
  }
  .admin-project-bar label {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
  }
  .admin-project-bar select {
    border: 0;
    padding: 0;
    max-width: 220px;
    font-size: 12px;
  }
  .admin-project-bar .badge {
    font-size: 9px;
  }
  .admin-two-column > .stack {
    grid-template-columns: 1fr;
  }
  .admin-course-grid {
    grid-template-columns: 1fr;
  }
  .admin-tabs {
    gap: 19px;
  }
  .question-editor {
    padding: 17px;
  }
  .file-list a {
    gap: 9px;
    font-size: 11px;
  }
  .file-list a > small {
    white-space: nowrap;
    font-size: 9px;
  }
  .form-title .btn {
    font-size: 11px;
    padding: 9px 12px;
  }
  .project-picker {
    display: none;
  }
  .print-signatures {
    grid-template-columns: 1fr;
  }
  .preview-document .print-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .service-bottom > .muted {
    display: none;
  }
  .service {
    grid-template-columns: 48px minmax(0, 1fr) 22px;
  }
  .service h3 {
    line-height: 1.5;
  }
  .service p br {
    display: none;
  }
}
.module-card {
  border: 1px solid #e3e6ec;
  border-radius: 14px;
  padding: 22px;
  margin: 16px 0;
  background: #fff;
  min-width: 0;
}
.module-card h4 {
  margin: 0;
  font-size: 15px;
}
.module-card .form-grid {
  margin-top: 18px;
}
.module-inline {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  align-items: end;
  gap: 14px;
  margin: 16px 0;
}
.attachment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.attachment-grid .module-card {
  margin: 0;
}
.empty-copy {
  color: #7b8290;
  font-size: 14px;
  margin: 20px 0;
}
.upload-control {
  position: relative;
  color: #7e6100;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
  font-size: 14px;
}
.upload-control input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}
.document-file {
  border-top: 1px solid #e6e9ee;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-wrap: anywhere;
}
.document-file small {
  color: #7d8490;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}
.file-actions a {
  color: #826000;
  text-decoration: underline;
}
.acceptance-terms {
  padding: 28px;
  background: #fffbef;
  border: 1px solid #ecd99c;
  border-radius: 14px;
  margin: 20px 0 28px;
}
.acceptance-terms h3 {
  font-size: 22px;
  margin: 10px 0;
}
.acceptance-contract {
  padding: 14px 20px;
  background: white;
  border-left: 3px solid #d6aa20;
  margin: 22px 0;
  overflow-wrap: anywhere;
}
.legal-clause h4 {
  font-size: 16px;
  margin: 22px 0 8px;
}
.legal-clause p {
  line-height: 1.9;
  color: #454c57;
  margin: 0;
}
.acceptance-consents {
  display: grid;
  gap: 16px;
  background: #f7f8fa;
  padding: 24px;
  margin-top: 25px;
  border-radius: 12px;
}
.acceptance-consents .check-line {
  align-items: flex-start;
  line-height: 1.7;
}
.acceptance-consents input {
  margin-top: 5px;
  flex: none;
}
.acceptance-result {
  padding: 16px;
  background: #f1f8f1;
  border: 1px solid #d5e5d5;
  margin: 20px 0;
  font-weight: 600;
}
.read-sop {
  padding: 18px;
  border: 1px solid #e4e7ec;
  margin: 12px 0;
  border-radius: 12px;
}
#credential-result {
  font-family: monospace;
  overflow-wrap: anywhere;
  padding: 18px 0;
}
@media (max-width: 700px) {
  .module-inline,
  .attachment-grid {
    grid-template-columns: 1fr;
  }
  .module-card {
    padding: 16px;
  }
  .acceptance-terms {
    padding: 18px;
  }
  .acceptance-consents {
    padding: 16px;
  }
  .doc-group > .row {
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }
}
@media print {
  .no-print,
  .file-actions button {
    display: none !important;
  }
  .acceptance-terms {
    background: white;
    border-color: #aaa;
    border-radius: 0;
  }
  .acceptance-terms h3 {
    font-size: 17px;
  }
  .legal-clause p {
    font-size: 12px;
  }
  .module-card {
    break-inside: avoid;
  }
}
/* Company overview and project-scoped administration */
.company-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}
.metric-button {
  background: #fff;
  border: 1px solid var(--border, #e6e8ec);
  border-radius: 14px;
  padding: 22px;
  text-align: left;
  color: #525c69;
  cursor: pointer;
}
.metric-button.active {
  border-color: #e9b900;
  box-shadow: inset 0 3px #ffc000;
}
.metric-button strong {
  display: block;
  font-size: 34px;
  color: #171a1e;
  font-weight: 650;
  margin-top: 9px;
}
.metric-button small {
  font-size: 12px;
  font-weight: 400;
  color: #8a929e;
}
.company-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.company-filter p {
  margin: 7px 0 0;
  font-size: 13px;
}
.project-search {
  width: 300px;
  max-width: 100%;
}
.project-search input {
  width: 100%;
  border: 1px solid #dce0e5;
  border-radius: 8px;
  padding: 12px;
  background: #fafbfc;
}
.scene-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0;
  border-bottom: 1px solid #eceef1;
}
.scene-filter {
  border: 1px solid #e8eaee;
  border-radius: 7px;
  padding: 8px 12px;
  background: white;
  color: #666f7c;
  font-size: 13px;
  cursor: pointer;
}
.scene-filter small {
  margin-left: 8px;
  color: #939aa5;
}
.scene-filter.active {
  background: #fff5d4;
  border-color: #e6c35a;
  color: #332800;
}
.scene-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 25px 0 12px;
}
.scene-group-title h3 {
  margin: 0;
  font-size: 17px;
}
.scene-group-title span,
.company-footnote {
  font-size: 12px;
  color: #7d8795;
}
.company-table td {
  padding: 20px 12px;
}
.company-table td:first-child {
  min-width: 190px;
}
.company-table td:nth-child(2) {
  min-width: 135px;
}
.company-table .text-link {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.company-table .text-link svg {
  width: 15px;
}
.project-name {
  color: #171a1e;
  font-weight: 650;
  font-size: 16px;
  text-decoration: none;
}
.project-name:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.company-footnote {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 2px;
}
.company-footnote a,
.back-link {
  color: #727d89;
  text-decoration: none;
}
.back-link {
  display: inline-block;
  margin: 0 0 16px;
  font-size: 13px;
}
.back-link:hover {
  color: #111;
}
.project-management-summary {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid #e6e8ec;
  border-left: 3px solid #ffc000;
  border-radius: 10px;
  margin-bottom: 24px;
  color: #77818f;
  font-size: 13px;
}
.project-management-summary b {
  color: #343a42;
}
.admin-tabs a.tab {
  text-decoration: none;
  white-space: nowrap;
}
.release-summary {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 0 22px;
  color: #85909d;
  font-size: 12px;
}
.legacy-videos {
  margin-top: 24px;
}
.legacy-videos summary,
.library-card summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.legacy-video-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid #eceef1;
}
.legacy-video-row span {
  flex: 1;
}
.library-toolbar {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 20px;
}
.library-toolbar label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #727d89;
  font-size: 13px;
}
.library-toolbar select,
.data-table select {
  padding: 9px 12px;
  border: 1px solid #e2e6eb;
  border-radius: 7px;
  background: #fff;
  max-width: 300px;
}
.library-toolbar > span {
  margin-left: auto;
  font-size: 14px;
  color: #343c46;
  text-align: right;
}
.library-toolbar small {
  display: block;
  color: #85909d;
  font-size: 11px;
  margin-top: 6px;
}
.library-notice {
  margin-bottom: 22px;
  font-size: 13px;
  line-height: 1.8;
}
.library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.library-card h2 {
  margin: 22px 0 7px;
  font-size: 20px;
  overflow-wrap: anywhere;
}
.library-card > p {
  min-height: 22px;
  font-size: 13px;
}
.library-card video {
  width: 100%;
  aspect-ratio: 16/9;
  background: #101113;
  border-radius: 8px;
  margin: 15px 0;
}
.library-placeholder {
  aspect-ratio: 16/9;
  border-radius: 8px;
  background: #f4f5f7;
  color: #9aa2ae;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 15px 0;
}
.library-placeholder svg {
  width: 32px;
  height: 32px;
}
.library-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 22px;
}
.library-actions .btn {
  font-size: 12px;
  padding: 10px 13px;
}
.library-version {
  padding: 15px 0;
  border-bottom: 1px solid #edf0f3;
}
.library-version b,
.library-version small {
  display: block;
  font-size: 12px;
}
.library-version small {
  color: #8a929e;
  margin: 6px 0;
}
.library-version p {
  font-size: 12px;
  margin: 7px 0;
}
.library-version a {
  color: #6c7480;
}
.danger-link {
  color: #a44529;
  margin-top: 18px;
}
.filter-summary {
  font-size: 13px;
  color: #727d89;
  padding-top: 15px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 1050px) {
  .company-metrics {
    gap: 10px;
  }
  .metric-button {
    padding: 16px;
  }
  .library-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .company-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric-button strong {
    font-size: 27px;
  }
  .company-filter,
  .library-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .project-search {
    width: 100%;
  }
  .company-footnote {
    flex-direction: column;
  }
  .company-table {
    min-width: 650px;
  }
  .library-toolbar > span {
    text-align: left;
    margin: 0;
  }
  .release-summary {
    flex-direction: column;
  }
  .project-management-summary {
    gap: 12px;
    font-size: 12px;
  }
  .company-projects {
    padding: 18px;
  }
  .scene-filter {
    padding: 7px 9px;
    font-size: 12px;
  }
  .form-actions > .row {
    flex-wrap: wrap;
  }
  .library-card {
    padding: 20px;
  }
  .page-heading > .row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .admin-tabs {
    overflow-x: auto;
  }
}
.page-heading > .row {
  flex-shrink: 0;
}
.page-heading > .row .btn {
  white-space: nowrap;
}
@media (max-width: 1050px) {
  .company-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .company-filter {
    align-items: stretch;
    flex-direction: column;
  }
  .project-search {
    width: 100%;
  }
  .page-heading:has(+ .company-metrics) {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
@media (max-width: 650px) {
  .company-table {
    min-width: 0 !important;
    display: block;
  }
  .company-table thead {
    display: none;
  }
  .company-table tbody {
    display: grid;
    gap: 12px;
  }
  .company-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #e7ebef;
    border-radius: 10px;
    padding: 14px;
  }
  .company-table td {
    display: block;
    border: 0;
    padding: 6px 0;
    min-width: 0 !important;
  }
  .company-table td:first-child,
  .company-table td:nth-child(2),
  .company-table td:last-child {
    grid-column: 1/-1;
  }
  .company-table td:nth-child(3)::before {
    content: '视频 ';
    color: #8993a0;
  }
  .company-table td:nth-child(4)::before {
    content: '账号 ';
    color: #8993a0;
  }
  .company-table td:last-child {
    padding-top: 14px;
  }
  .company-table .project-name {
    font-size: 17px;
  }
}
.media-selection-summary {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  padding: 15px 18px;
  margin-bottom: 18px;
  background: #fff8df;
  border-radius: 8px;
  color: #685923;
  font-size: 13px;
}
.media-selection-summary span {
  color: #78776d;
}
.media-select-control {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  cursor: pointer;
  min-height: 44px;
}
.media-select-control input {
  width: 19px;
  height: 19px;
  accent-color: #e2ac00;
}
.media-assignment-table tr.media-selected {
  background: #fffcf0;
}
.media-assignment-table select:disabled {
  opacity: 0.55;
}
.sop-picker {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin-top: 22px;
}
.equipment-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.equipment-catalog-panel {
  margin: 0;
  padding: 24px;
}
.equipment-catalog-panel h2 {
  font-size: 18px;
}
.equipment-catalog-panel > .row {
  align-items: flex-start;
}
.equipment-catalog-panel .btn {
  padding: 10px 14px;
  white-space: nowrap;
}
.equipment-type-row {
  padding: 18px 0;
  border-bottom: 1px solid #e7ebef;
}
.equipment-type-row:last-child {
  border-bottom: 0;
}
.equipment-type-row > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.equipment-type-row b {
  overflow-wrap: anywhere;
}
.equipment-search {
  max-width: 480px;
  margin: 22px 0;
}
.equipment-config-link {
  justify-content: flex-end;
  margin: 18px 0;
}
.equipment-card textarea {
  min-height: 90px;
}
#equipment-type-form {
  margin-top: 20px;
}
@media (max-width: 1250px) {
  .equipment-catalog-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .equipment-catalog-panel {
    padding: 18px;
  }
}
.sop-picker .field {
  flex: 1;
  min-width: 220px;
  margin: 0;
}
.sop-picker .btn {
  min-height: 46px;
}
.sop-template-table {
  min-width: 760px;
}
.sop-template-table th:first-child {
  width: 22%;
}
.sop-template-table th:nth-child(2) {
  width: 32%;
}
.sop-template-table td:last-child {
  white-space: nowrap;
}
.sop-template-table td:last-child button + button {
  margin-left: 16px;
}
.sop-content-preview {
  max-width: 420px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 100px;
  overflow: auto;
}
.sop-field-chip {
  display: inline-block;
  background: #f4f6f8;
  padding: 4px 8px;
  margin: 2px 5px 2px 0;
  border-radius: 5px;
  font-size: 12px;
}
.sop-template-field {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 12px;
}
#sop-template-form > .field {
  margin-top: 18px;
}
#template-fields {
  margin-top: 15px;
}
#sop-template-preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 1000px) {
  .sop-template-table {
    min-width: 0;
  }
  .sop-template-table thead {
    display: none;
  }
  .sop-template-table tbody {
    display: grid;
    gap: 14px;
  }
  .sop-template-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    border: 1px solid #e7ebef;
    border-radius: 10px;
    padding: 14px;
  }
  .sop-template-table td {
    display: block;
    border: 0;
    padding: 7px 0;
    min-width: 0;
  }
  .sop-template-table td:first-child {
    grid-column: 1;
    grid-row: 1;
  }
  .sop-template-table td:nth-child(4) {
    grid-column: 2;
    grid-row: 1;
  }
  .sop-template-table td:nth-child(2),
  .sop-template-table td:nth-child(3),
  .sop-template-table td:last-child {
    grid-column: 1 / -1;
  }
  .sop-template-table td:nth-child(2)::before {
    content: '执行标准';
    display: block;
    color: #8993a0;
    font-size: 12px;
    margin-bottom: 4px;
  }
  .sop-template-table td:nth-child(3)::before {
    content: '扩充字段';
    display: block;
    color: #8993a0;
    font-size: 12px;
    margin-bottom: 4px;
  }
  .sop-template-table td:last-child {
    border-top: 1px solid #e7ebef;
    padding-top: 12px;
    margin-top: 5px;
  }
}
@media (max-width: 640px) {
  .sop-picker .field {
    flex-basis: 100%;
    min-width: 0;
  }
  .sop-picker .btn {
    flex: 1;
  }
  .sop-template-field {
    grid-template-columns: 1fr;
    gap: 0;
    border-bottom: 1px solid #e7ebef;
    padding-bottom: 15px;
    margin-bottom: 15px;
  }
  .sop-template-field > button {
    justify-self: start;
  }
}
/* Training audience, reusable banks, and video questions. */
.bank-apply {
  margin-bottom: 24px;
}
.bank-apply .field {
  flex: 1;
  min-width: 240px;
}
.bank-import {
  margin: 26px 0;
  padding: 24px;
  background: #f7f8fa;
  border-radius: 14px;
}
.bank-import .row {
  margin: 14px 0;
}
#bank-import-preview ol {
  max-height: 320px;
  overflow: auto;
  line-height: 1.8;
}
.question-video-settings {
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 18px;
}
.question-video-settings summary {
  cursor: pointer;
  margin-bottom: 18px;
}
.question-video-settings video {
  display: block;
  width: 100%;
  max-width: 560px;
  max-height: 320px;
  background: #111;
  margin: 12px 0;
}
.question-video-settings code {
  overflow-wrap: anywhere;
}
.exam-video-block {
  margin: 24px 0;
}
.exam-video-block video {
  width: 100%;
  max-height: 440px;
  display: block;
  background: #111;
  border-radius: 10px;
}
.exam-video-block p {
  margin-top: 14px;
  color: #7e6400;
}
.answer:has(input:disabled) {
  opacity: 0.6;
}
.services:has(> :nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.legacy-video-row {
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 700px) {
  .services:has(> :nth-child(2):last-child) {
    grid-template-columns: 1fr;
  }
  .bank-import {
    padding: 16px;
  }
  .exam-video-block video {
    max-height: 280px;
  }
}

.question-images {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0;
}
.question-images a {
  display: block;
  max-width: 100%;
}
.question-images img {
  display: block;
  max-width: min(100%, 600px);
  max-height: 420px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #e4e7eb;
}
.question-image-editor {
  margin-top: 8px;
}
.answer .question-images img {
  max-height: 240px;
}
.bank-import li {
  padding: 12px 0;
}

.common-exam-panel {
  margin-bottom: 24px;
  border-top: 3px solid #ffbf00;
}
.common-project-list {
  max-height: 40vh;
  overflow: auto;
}
.common-project-list small {
  display: block;
  color: #6b7280;
  margin-top: 4px;
}
.question-images img {
  max-height: 520px;
  object-fit: contain;
}
.exam-history {
  margin-top: 24px;
}
.question-dots {
  flex-wrap: wrap;
}
