/* Safety — Certificates dashboard (mockup) */

body.gce-certs-mockup main {
  background: #f1f5f9 !important;
  padding: 12px 16px 16px !important;
  overflow: hidden !important;
  height: calc(100vh - 56px);
  box-sizing: border-box;
}

body.gce-certs-mockup #safety-page-root {
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
}

body.gce-certs-mockup #safety-page-root > .cert-dash {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
}

body.gce-certs-mockup #safety-page-root .sfty-page {
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.gce-certs-mockup .cert-dash {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 100%;
  color: #0f172a;
}

body.gce-certs-mockup .cert-dash--onepage {
  height: auto;
  min-height: 0;
  gap: 10px;
}

body.gce-certs-mockup .cert-dash-body {
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: visible;
}

body.gce-certs-mockup #cert-dash-preview-host {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.gce-certs-mockup #cert-dash-preview-host > .cert-dash-preview-panel {
  flex: 0 0 auto;
  width: 100%;
}

body.gce-certs-mockup .cert-dash-workflow {
  display: grid;
  grid-template-columns: minmax(140px, 0.75fr) minmax(180px, 1fr) minmax(280px, 2.25fr);
  gap: 12px;
  flex: 0 0 auto;
  min-height: 280px;
  max-height: min(52vh, 560px);
  overflow: hidden;
}

body.gce-certs-mockup .cert-dash-workflow-col {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  font-size: 12px;
}

body.gce-certs-mockup .cert-dash-workflow-head {
  padding: 10px 12px 8px;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

body.gce-certs-mockup .cert-dash-workflow-head b {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
}

body.gce-certs-mockup .cert-dash-workflow-head small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
}

body.gce-certs-mockup .cert-dash-workflow-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 4px 6px;
}

body.gce-certs-mockup .cert-dash-crew-pick {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 7px 8px;
  margin-bottom: 3px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

body.gce-certs-mockup .cert-dash-crew-pick-chev {
  display: none;
}

body.gce-certs-mockup .cert-dash-member-icons {
  display: none;
}

body.gce-certs-mockup .cert-dash-workflow-col:first-child .cert-dash-member-icons,
body.gce-certs-mockup .cert-dash-workflow-col:nth-child(2) .cert-dash-member-icons {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.gce-certs-mockup .cert-dash-workflow-col:first-child .cert-dash-crew-pick {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

body.gce-certs-mockup .cert-dash-workflow-col:first-child .cert-dash-crew-pick-chev {
  display: inline-flex;
}

body.gce-certs-mockup .cert-dash-crew-pick:hover,
body.gce-certs-mockup .cert-dash-crew-pick--active {
  background: #eef2ff;
  border-color: #c7d2fe;
}

body.gce-certs-mockup .cert-dash-crew-pick-body b {
  display: block;
  font-size: 12px;
  color: #0f172a;
}

body.gce-certs-mockup .cert-dash-crew-pick-body small {
  display: block;
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
}

body.gce-certs-mockup .cert-dash-workflow-col:first-child .cert-dash-crew-pick-chev {
  color: #94a3b8;
  display: inline-flex;
}

body.gce-certs-mockup .cert-dash-workflow-col--table {
  min-width: 0;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-workflow-col--table {
  max-width: none;
}

body.gce-certs-mockup .cert-dash-workflow-col:nth-child(2) .cert-dash-member-info b {
  font-size: 12px;
}

body.gce-certs-mockup .cert-dash-workflow-col:nth-child(2) .cert-dash-avatar {
  width: 32px;
  height: 32px;
  font-size: 11px;
}

body.gce-certs-mockup .cert-dash-workflow-col--table .cert-dash-table {
  font-size: 11px;
}

body.gce-certs-mockup .cert-dash-workflow-col--table .cert-dash-table th,
body.gce-certs-mockup .cert-dash-workflow-col--table .cert-dash-table td {
  padding: 10px 10px;
}

body.gce-certs-mockup .cert-dash-member-row {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  padding: 7px 8px;
  gap: 6px;
}

body.gce-certs-mockup .cert-dash-member-count {
  font-size: 10px;
}

body.gce-certs-mockup .cert-dash-avatar {
  width: 28px;
  height: 28px;
  font-size: 10px;
}

body.gce-certs-mockup .cert-dash-preview-panel {
  flex: 1 1 auto;
  min-height: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.gce-certs-mockup .cert-dash-preview-panel.cert-dash-studio-panel {
  flex: 1 1 auto;
  min-height: 200px;
  max-height: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.gce-certs-mockup .cert-dash-preview-panel.cert-dash-studio-panel--grid-only {
  min-height: 0;
}

body.gce-certs-mockup .cert-dash-preview-panel--empty {
  flex: 0 0 auto;
  min-height: 0;
}

body.gce-certs-mockup .cert-dash-preview-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
  position: relative;
}

body.gce-certs-mockup .cert-dash-preview-panel-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

body.gce-certs-mockup .cert-dash-preview-panel-head .cert-dash-detail-close {
  position: static;
}

body.gce-certs-mockup .cert-dash-preview-split {
  display: grid;
  grid-template-columns: min(44vh, 460px) minmax(250px, 300px);
  gap: 0;
  flex: 1;
  min-height: min(46vh, 480px);
  align-items: stretch;
  justify-content: flex-start;
}

body.gce-certs-mockup .cert-dash-preview-left {
  padding: 12px;
  border-right: 1px solid #f1f5f9;
  width: min(44vh, 460px);
  max-width: 100%;
  aspect-ratio: 1;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.gce-certs-mockup .cert-dash-preview-right {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
}

body.gce-certs-mockup .cert-dash-preview-right-head h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

body.gce-certs-mockup .cert-dash-preview-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.gce-certs-mockup .cert-dash-preview-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
  width: min(100%, min(40vh, 420px));
  max-width: min(40vh, 420px);
  margin: 10px auto 14px;
  aspect-ratio: 1;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(180deg, #fafbfc 0%, #f1f5f9 100%);
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
}

body.gce-certs-mockup .cert-dash-detail-preview--large:not(.cert-dash-detail-preview--col) {
  flex: 1;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

body.gce-certs-mockup .cert-dash-detail-iframe--large {
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1;
  border: none;
  background: #fff;
}

body.gce-certs-mockup .cert-dash-download-btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

body.gce-certs-mockup .cert-dash-exp-days {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #16a34a;
}

body.gce-certs-mockup .cert-dash-expires-wrap .cert-dash-exp-days {
  display: inline;
  margin-left: 6px;
}

body.gce-certs-mockup .cert-dash-member-row {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  font-family: inherit;
}

body.gce-certs-mockup .cert-dash-list-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

body.gce-certs-mockup .cert-dash-table-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

body.gce-certs-mockup .cert-dash-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.gce-certs-mockup .cert-dash-toolbar-search {
  flex: 1;
  min-width: 220px;
  max-width: 420px;
}

body.gce-certs-mockup .cert-dash-toolbar-search .cert-dash-search {
  max-width: none;
  width: 100%;
}

body.gce-certs-mockup .cert-dash-tabs--inline {
  border-bottom: none;
  padding: 0;
  gap: 6px;
}

body.gce-certs-mockup .cert-dash-tabs--inline.cert-dash-tabs--studio {
  border-bottom: 1px solid #e2e8f0;
  padding: 0 12px;
  gap: 8px;
}

body.gce-certs-mockup .cert-dash-head--compact h1 {
  font-size: 24px;
  margin-bottom: 2px;
}

body.gce-certs-mockup .cert-dash-head--compact p {
  font-size: 13px;
}

body.gce-certs-mockup .cert-dash-group-head td {
  background: #f8fafc !important;
  padding: 0 !important;
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
}

body.gce-certs-mockup .cert-dash-group-head-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}

body.gce-certs-mockup .cert-dash-group-chev {
  display: inline-flex;
  color: #64748b;
  transition: transform 0.15s ease;
}

body.gce-certs-mockup .cert-dash-group-chev--open {
  transform: rotate(180deg);
}

body.gce-certs-mockup .cert-dash-group-text {
  flex: 1;
  min-width: 0;
}

body.gce-certs-mockup .cert-dash-group-text b {
  display: block;
  font-size: 14px;
  color: #0f172a;
}

body.gce-certs-mockup .cert-dash-group-text small {
  display: block;
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

body.gce-certs-mockup .cert-dash-group-count {
  font-size: 12px;
  font-weight: 700;
  color: #6366f1;
  white-space: nowrap;
}

body.gce-certs-mockup .cert-dash-cert-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.gce-certs-mockup .cert-dash-cert-ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #eef2ff;
  color: #6366f1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

body.gce-certs-mockup .cert-dash-cert-cell b {
  display: block;
  font-size: 13px;
}

body.gce-certs-mockup .cert-dash-cert-cell small {
  display: block;
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

body.gce-certs-mockup .cert-dash-table--grouped thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
}

body.gce-certs-mockup .cert-dash-detail {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.gce-certs-mockup .cert-dash-detail--empty {
  display: grid;
  place-items: center;
}

body.gce-certs-mockup .cert-dash-detail-empty {
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  padding: 24px;
}

body.gce-certs-mockup .cert-dash-detail-meta--compact {
  grid-template-columns: 1fr 1fr;
}

body.gce-certs-mockup .cert-dash-detail-field--file {
  grid-column: 1 / -1;
}

body.gce-certs-mockup .cert-dash-detail-section--preview {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.gce-certs-mockup .cert-dash-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.gce-certs-mockup .cert-dash-preview-zoom {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: none;
  letter-spacing: 0;
}

body.gce-certs-mockup .cert-dash-detail-section--preview .cert-dash-detail-preview {
  flex: 1;
  min-height: 120px;
  overflow: auto;
}

body.gce-certs-mockup .cert-dash-detail-iframe {
  transform-origin: top center;
  min-height: 280px;
}

body.gce-certs-mockup .cert-dash-detail-open {
  margin-top: 10px;
  width: 100%;
  justify-content: center;
}

body.gce-certs-mockup .cert-dash-detail-actions {
  flex-shrink: 0;
}

@media (max-width: 1440px) {
  body.gce-certs-mockup .cert-dash-workflow {
    grid-template-columns: minmax(110px, 0.62fr) minmax(140px, 0.8fr) minmax(0, 1.65fr);
    gap: 8px;
    max-height: none;
  }

  body.gce-certs-mockup .cert-dash-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.gce-certs-mockup .cert-dash-head {
    gap: 10px;
  }
}

@media (max-width: 1100px) {
  body.gce-certs-mockup main {
    overflow: auto !important;
    height: auto;
  }

  body.gce-certs-mockup .cert-dash-workflow {
    grid-template-columns: 1fr;
    max-height: none;
  }

  body.gce-certs-mockup .cert-dash--studio .cert-dash-workflow {
    grid-template-columns: minmax(120px, 0.5fr) minmax(150px, 0.72fr) minmax(220px, 2.4fr);
    max-height: none;
  }

  body.gce-certs-mockup .cert-dash-workflow-col--table {
    max-width: none;
  }

  body.gce-certs-mockup .cert-dash-preview-split {
    grid-template-columns: 1fr;
  }

  body.gce-certs-mockup .cert-dash-preview-left {
    width: 100%;
    max-width: min(92vw, 460px);
    margin: 0 auto;
    border-right: none;
    border-bottom: 1px solid #f1f5f9;
  }
}

/* Header */
body.gce-certs-mockup .cert-dash-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

body.gce-certs-mockup .cert-dash-crumb {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 8px;
}

body.gce-certs-mockup .cert-dash-crumb span {
  margin: 0 4px;
  color: #94a3b8;
}

body.gce-certs-mockup .cert-dash-head h1 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

body.gce-certs-mockup .cert-dash-head p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  max-width: 520px;
}

body.gce-certs-mockup .cert-dash-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.gce-certs-mockup .cert-dash-select {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  background: #fff;
}

body.gce-certs-mockup .cert-dash-select--sm {
  padding: 7px 10px;
}

body.gce-certs-mockup .cert-dash-btn {
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

body.gce-certs-mockup .cert-dash-btn--primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

body.gce-certs-mockup .cert-dash-btn--outline {
  background: #fff;
  border-color: #cbd5e1;
  color: #334155;
}

body.gce-certs-mockup .cert-dash-btn--ghost {
  background: #fff;
  border-color: #e2e8f0;
  color: #475569;
  padding: 8px 12px;
  font-size: 12px;
}

/* KPI row */
body.gce-certs-mockup .cert-dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1100px) {
  body.gce-certs-mockup .cert-dash-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}

body.gce-certs-mockup .cert-dash-kpi {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body.gce-certs-mockup .cert-dash-kpi-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

body.gce-certs-mockup .cert-dash-kpi-ico--blue { background: #eff6ff; }
body.gce-certs-mockup .cert-dash-kpi-ico--green { background: #ecfdf5; color: #16a34a; }
body.gce-certs-mockup .cert-dash-kpi-ico--orange { background: #fff7ed; color: #ea580c; }
body.gce-certs-mockup .cert-dash-kpi-ico--red { background: #fef2f2; color: #dc2626; }

body.gce-certs-mockup .cert-dash-kpi span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 4px;
}

body.gce-certs-mockup .cert-dash-kpi b {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

body.gce-certs-mockup .cert-dash-kpi small {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

/* Mid panels */
body.gce-certs-mockup .cert-dash-mid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 900px) {
  body.gce-certs-mockup .cert-dash-mid {
    grid-template-columns: 1fr;
  }
}

body.gce-certs-mockup .cert-dash-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

body.gce-certs-mockup .cert-dash-panel-head {
  padding: 16px 18px 12px;
  border-bottom: 1px solid #f1f5f9;
}

body.gce-certs-mockup .cert-dash-panel-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

body.gce-certs-mockup .cert-dash-panel-toolbar {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid #f1f5f9;
}

body.gce-certs-mockup .cert-dash-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  color: #64748b;
  font-size: 12px;
}

body.gce-certs-mockup .cert-dash-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 12px;
  color: #0f172a;
}

body.gce-certs-mockup .cert-dash-search--sm {
  max-width: 180px;
  flex: 0 1 auto;
}

body.gce-certs-mockup .cert-dash-member-list {
  flex: 1;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.gce-certs-mockup .cert-dash-member-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

body.gce-certs-mockup .cert-dash-member-row:hover,
body.gce-certs-mockup .cert-dash-member-row--active {
  background: #f8fafc;
}

body.gce-certs-mockup .cert-dash-member-row--active {
  box-shadow: inset 0 0 0 1px #c7d2fe;
  background: #eef2ff;
}

body.gce-certs-mockup .cert-dash-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

body.gce-certs-mockup .cert-dash-member-info b {
  display: block;
  font-size: 13px;
  color: #0f172a;
}

body.gce-certs-mockup .cert-dash-member-info small {
  display: block;
  font-size: 11px;
  color: #64748b;
}

body.gce-certs-mockup .cert-dash-member-count {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

body.gce-certs-mockup .cert-dash-member-icons {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.gce-certs-mockup .cert-dash-mini {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
}

body.gce-certs-mockup .cert-dash-mini--ok { background: #dcfce7; color: #15803d; }
body.gce-certs-mockup .cert-dash-mini--warn { background: #ffedd5; color: #c2410c; }
body.gce-certs-mockup .cert-dash-mini--bad { background: #fee2e2; color: #b91c1c; }
body.gce-certs-mockup .cert-dash-mini--muted { background: #f1f5f9; color: #94a3b8; }

body.gce-certs-mockup .cert-dash-recent-list {
  flex: 1;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.gce-certs-mockup .cert-dash-recent-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

body.gce-certs-mockup .cert-dash-recent-num {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

body.gce-certs-mockup .cert-dash-recent-body {
  flex: 1;
  min-width: 0;
}

body.gce-certs-mockup .cert-dash-type--fall { background: #e0f2fe; color: #0369a1; }

body.gce-certs-mockup .cert-dash-select--crew {
  max-width: 160px;
}

body.gce-certs-mockup .cert-dash-head-actions--busy {
  opacity: 0.65;
  pointer-events: none;
}

body.gce-certs-mockup .cert-dash-upload-progress {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
}

body.gce-certs-mockup .cert-dash-upload-progress--hidden {
  display: none;
}

body.gce-certs-mockup .cert-dash-upload-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  color: #334155;
}

body.gce-certs-mockup .cert-dash-upload-top b {
  color: #4f46e5;
  font-size: 14px;
}

body.gce-certs-mockup .cert-dash-upload-track {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

body.gce-certs-mockup .cert-dash-upload-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #6366f1, #4f46e5);
  border-radius: 999px;
  transition: width 0.2s ease;
}

body.gce-certs-mockup .cert-dash-upload-progress small {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: #64748b;
  padding-right: 64px;
}

body.gce-certs-mockup .cert-dash-upload-progress {
  position: relative;
}

body.gce-certs-mockup .cert-dash-upload-cancel {
  position: absolute;
  right: 12px;
  bottom: 10px;
  border: 1px solid #d8e0ea;
  background: #fff;
  color: #991b1b;
  border-radius: 8px;
  padding: 4px 10px;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

body.gce-certs-mockup .cert-dash-upload-cancel:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

body.gce-certs-mockup .cert-dash-recent-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

body.gce-certs-mockup .cert-dash-recent-item b,
body.gce-certs-mockup .cert-dash-recent-body b {
  display: block;
  font-size: 13px;
  color: #0f172a;
}

body.gce-certs-mockup .cert-dash-recent-item small,
body.gce-certs-mockup .cert-dash-recent-body small {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

body.gce-certs-mockup .cert-dash-recent-bad {
  font-size: 11px;
  font-weight: 700;
  color: #dc2626;
  white-space: nowrap;
}

body.gce-certs-mockup .cert-dash-recent-warn {
  font-size: 11px;
  font-weight: 700;
  color: #ea580c;
  white-space: nowrap;
  text-align: right;
}

body.gce-certs-mockup .cert-dash-foot-link {
  display: block;
  margin: 0 18px 14px;
  padding: 0;
  border: none;
  background: none;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: #4f46e5;
  cursor: pointer;
}

body.gce-certs-mockup .cert-dash-foot-link--muted {
  color: #94a3b8;
  cursor: default;
}

/* Table card */
body.gce-certs-mockup .cert-dash-table-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

body.gce-certs-mockup .cert-dash-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

body.gce-certs-mockup .cert-dash-tab {
  border: none;
  background: transparent;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
}

body.gce-certs-mockup .cert-dash-tab--active {
  background: #eef2ff;
  color: #4f46e5;
}

body.gce-certs-mockup .cert-dash-tabs-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.gce-certs-mockup .cert-dash-table-wrap {
  overflow-x: auto;
}

body.gce-certs-mockup .cert-dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

body.gce-certs-mockup .cert-dash-table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

body.gce-certs-mockup .cert-dash-table td {
  padding: 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

body.gce-certs-mockup .cert-dash-table tbody tr:hover td {
  background: #fafafa;
}

body.gce-certs-mockup .cert-dash-type {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

body.gce-certs-mockup .cert-dash-type--osha { background: #ede9fe; color: #6d28d9; }
body.gce-certs-mockup .cert-dash-type--aid { background: #dcfce7; color: #15803d; }
body.gce-certs-mockup .cert-dash-type--haz { background: #ffedd5; color: #c2410c; }
body.gce-certs-mockup .cert-dash-type--comtrain { background: #dbeafe; color: #1d4ed8; }
body.gce-certs-mockup .cert-dash-type--rf { background: #fef3c7; color: #b45309; }
body.gce-certs-mockup .cert-dash-type--ins { background: #f3e8ff; color: #7e22ce; }
body.gce-certs-mockup .cert-dash-type--w9,
body.gce-certs-mockup .cert-dash-type--other { background: #f1f5f9; color: #475569; }

body.gce-certs-mockup .cert-dash-cert-name {
  display: block;
  font-size: 13px;
  color: #0f172a;
}

body.gce-certs-mockup .cert-dash-cert-id {
  display: block;
  font-size: 10px;
  color: #94a3b8;
  margin-top: 2px;
}

body.gce-certs-mockup .cert-dash-member {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.gce-certs-mockup .cert-dash-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

body.gce-certs-mockup .cert-dash-status--valid { background: #dcfce7; color: #15803d; }
body.gce-certs-mockup .cert-dash-status--expiring { background: #ffedd5; color: #c2410c; }
body.gce-certs-mockup .cert-dash-status--expired { background: #fee2e2; color: #b91c1c; }

body.gce-certs-mockup .cert-dash-exp-soon { color: #ea580c; font-weight: 700; }
body.gce-certs-mockup .cert-dash-exp-bad { color: #dc2626; font-weight: 700; }

body.gce-certs-mockup .cert-dash-file {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

body.gce-certs-mockup .cert-dash-file small {
  display: block;
  font-size: 10px;
  color: #94a3b8;
}

body.gce-certs-mockup .cert-dash-file-link {
  border: none;
  background: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: #4f46e5;
  cursor: pointer;
  text-align: left;
}

body.gce-certs-mockup .cert-dash-actions {
  display: flex;
  gap: 4px;
  justify-content: center;
}

body.gce-certs-mockup .cert-dash-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  font-size: 14px;
}

body.gce-certs-mockup .cert-dash-icon-btn--danger:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

body.gce-certs-mockup .cert-dash-table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid #e2e8f0;
  font-size: 12px;
  color: #64748b;
  flex-wrap: wrap;
}

body.gce-certs-mockup .cert-dash-pager {
  display: flex;
  align-items: center;
  gap: 4px;
}

body.gce-certs-mockup .cert-dash-page-btn {
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

body.gce-certs-mockup .cert-dash-page-btn--active {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4f46e5;
}

body.gce-certs-mockup .cert-dash-page-size {
  margin-left: 8px;
  font-size: 11px;
  color: #94a3b8;
}

body.gce-certs-mockup .cert-dash-empty,
body.gce-certs-mockup .cert-dash-empty-inline {
  color: #64748b !important;
  text-align: center;
  padding: 20px;
  font-size: 13px;
}

body.gce-certs-mockup .cert-dash-empty-inline {
  padding: 12px 18px;
  text-align: left;
}

/* SVG icons */
body.gce-certs-mockup .cert-dash-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

body.gce-certs-mockup .cert-dash-svg svg {
  width: 100%;
  height: 100%;
}

body.gce-certs-mockup .cert-dash-kpi-ico--purple {
  background: #f3e8ff;
  color: #7c3aed;
}

body.gce-certs-mockup .cert-dash-cat {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

body.gce-certs-mockup .cert-dash-cat--safety { background: #ede9fe; color: #6d28d9; }
body.gce-certs-mockup .cert-dash-cat--tower { background: #dbeafe; color: #1d4ed8; }
body.gce-certs-mockup .cert-dash-cat--training { background: #ffedd5; color: #c2410c; }
body.gce-certs-mockup .cert-dash-cat--equip { background: #f1f5f9; color: #475569; }

body.gce-certs-mockup .cert-dash-cert-sub {
  display: block;
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  margin-top: 2px;
}

body.gce-certs-mockup .cert-dash-assign-link {
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
  cursor: pointer;
  text-align: left;
}

body.gce-certs-mockup .cert-dash-assign-link:hover {
  text-decoration: underline;
}

body.gce-certs-mockup .cert-dash-table-title-row {
  padding: 16px 16px 0;
}

body.gce-certs-mockup .cert-dash-table-title-row h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

/* Certificate Assignments — 3 columns */
body.gce-certs-mockup .cert-dash-assign-head {
  margin-top: 4px;
}

body.gce-certs-mockup .cert-dash-assign-head h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

body.gce-certs-mockup .cert-dash-assign {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.1fr);
  gap: 12px;
  align-items: stretch;
}

body.gce-certs-mockup .cert-dash-assign-col {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

body.gce-certs-mockup .cert-dash-assign-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body.gce-certs-mockup .cert-dash-assign-col-head b {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

body.gce-certs-mockup .cert-dash-link-btn {
  border: none;
  background: transparent;
  color: #6366f1;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

body.gce-certs-mockup .cert-dash-assign-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6366f1;
  padding-top: 48px;
}

body.gce-certs-mockup .cert-dash-crew-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 280px;
  overflow: auto;
}

body.gce-certs-mockup .cert-dash-crew-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
}

body.gce-certs-mockup .cert-dash-crew-item:hover,
body.gce-certs-mockup .cert-dash-crew-item--active {
  border-color: #c7d2fe;
  background: #eef2ff;
}

body.gce-certs-mockup .cert-dash-crew-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

body.gce-certs-mockup .cert-dash-crew-item-body {
  flex: 1;
  min-width: 0;
}

body.gce-certs-mockup .cert-dash-crew-item-body b {
  display: block;
  font-size: 13px;
  color: #0f172a;
}

body.gce-certs-mockup .cert-dash-crew-item-body small {
  display: block;
  font-size: 11px;
  color: #64748b;
}

body.gce-certs-mockup .cert-dash-crew-cert-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 120px;
}

body.gce-certs-mockup .cert-dash-crew-cert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  background: #f8fafc;
}

body.gce-certs-mockup .cert-dash-crew-cert-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.gce-certs-mockup .cert-dash-crew-cert-exp {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
}

body.gce-certs-mockup .cert-dash-member-assign-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

body.gce-certs-mockup .cert-dash-member-assign-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

body.gce-certs-mockup .cert-dash-member-assign-row:last-child {
  border-bottom: none;
}

body.gce-certs-mockup .cert-dash-member-assign-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body.gce-certs-mockup .cert-dash-member-assign-main b {
  display: block;
  font-size: 13px;
  color: #0f172a;
}

body.gce-certs-mockup .cert-dash-member-assign-main small {
  display: block;
  font-size: 11px;
  color: #64748b;
}

body.gce-certs-mockup .cert-dash-member-frac {
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
}

body.gce-certs-mockup .cert-dash-member-pill {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

body.gce-certs-mockup .cert-dash-member-pill--ok {
  background: #dcfce7;
  color: #15803d;
}

body.gce-certs-mockup .cert-dash-member-pill--miss {
  background: #fee2e2;
  color: #b91c1c;
}

/* Table + detail split */
body.gce-certs-mockup .cert-dash-content-row {
  display: block;
}

body.gce-certs-mockup .cert-dash-content-row--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 14px;
  align-items: start;
}

body.gce-certs-mockup .cert-dash-row {
  cursor: pointer;
}

body.gce-certs-mockup .cert-dash-row--active td {
  background: #eef2ff !important;
}

body.gce-certs-mockup .cert-dash-detail {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 48px);
  overflow: auto;
}

body.gce-certs-mockup .cert-dash-detail-head {
  padding: 16px 18px 12px;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
}

body.gce-certs-mockup .cert-dash-detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

body.gce-certs-mockup .cert-dash-detail-title h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  padding-right: 36px;
}

body.gce-certs-mockup .cert-dash-detail-title small {
  display: block;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 8px;
}

body.gce-certs-mockup .cert-dash-detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
}

body.gce-certs-mockup .cert-dash-detail-field label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 4px;
}

body.gce-certs-mockup .cert-dash-detail-field b {
  display: block;
  font-size: 14px;
  color: #0f172a;
}

body.gce-certs-mockup .cert-dash-detail-field small {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

body.gce-certs-mockup .cert-dash-date-input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  background: #fff;
}

body.gce-certs-mockup .cert-dash-date-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

body.gce-certs-mockup .cert-dash-detail-section {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
}

body.gce-certs-mockup .cert-dash-detail-section h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

body.gce-certs-mockup .cert-dash-detail-preview {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  min-height: 180px;
  overflow: hidden;
}

body.gce-certs-mockup .cert-dash-detail-iframe {
  width: 100%;
  height: 220px;
  border: none;
  background: #fff;
}

body.gce-certs-mockup .cert-dash-detail-preview-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 180px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
}

body.gce-certs-mockup .cert-dash-detail-open {
  width: 100%;
  margin-top: 10px;
  justify-content: center;
}

body.gce-certs-mockup .cert-dash-detail-fileinfo dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

body.gce-certs-mockup .cert-dash-detail-fileinfo dt {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

body.gce-certs-mockup .cert-dash-detail-fileinfo dd {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  word-break: break-all;
}

body.gce-certs-mockup .cert-dash-detail-actions {
  padding: 14px 18px 18px;
}

body.gce-certs-mockup .cert-dash-btn--danger.cert-dash-btn--outline {
  width: 100%;
  background: #fff;
  border-color: #fecaca;
  color: #b91c1c;
}

body.gce-certs-mockup .cert-dash-crew-cert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  margin: 0;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

body.gce-certs-mockup .cert-dash-crew-cert-row:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
}

@media (max-width: 1100px) {
  body.gce-certs-mockup .cert-dash-content-row--split {
    grid-template-columns: 1fr;
  }

  body.gce-certs-mockup .cert-dash-detail {
    position: static;
    max-height: none;
  }

  body.gce-certs-mockup .cert-dash-assign {
    grid-template-columns: 1fr;
  }

  body.gce-certs-mockup .cert-dash-assign-arrow {
    display: none;
  }
}

/* ── Safety → Certificates studio layout ── */

body.gce-certs-mockup .cert-dash--studio {
  gap: 10px;
  height: auto;
  overflow: visible;
}

body.gce-certs-mockup .cert-dash--studio > .cert-dash-head--studio,
body.gce-certs-mockup .cert-dash--studio > .cert-dash-kpis--studio,
body.gce-certs-mockup .cert-dash--studio > .cert-dash-upload-progress {
  flex-shrink: 0;
}

body.gce-certs-mockup .cert-dash--onepage.cert-dash--studio {
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

body.gce-certs-mockup #safety-page-root > .cert-dash.cert-dash--studio {
  overflow: visible;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-body {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible !important;
  gap: 6px;
  -webkit-overflow-scrolling: touch;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-workflow {
  grid-template-columns: minmax(190px, 1fr) minmax(220px, 1.2fr) minmax(340px, 2.4fr);
  gap: 8px;
  flex: 0 0 auto;
  height: auto;
  min-height: 280px;
  max-height: min(52vh, 560px);
  align-items: stretch;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-workflow-col--table {
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-workflow-col--table > .cert-dash-workflow-head,
body.gce-certs-mockup .cert-dash--studio .cert-dash-workflow-col--table .cert-dash-table-edit-panel,
body.gce-certs-mockup .cert-dash--studio .cert-dash-workflow-col--table .cert-dash-toolbar {
  flex-shrink: 0;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-workflow-col--table .cert-dash-table-foot {
  flex-shrink: 0;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-workflow-col--table .cert-dash-table-scroll {
  flex: 1 1 0;
  min-height: 0;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-workflow-col--table .cert-dash-table-scroll--studio {
  flex: 1 1 0;
  min-height: 100px;
  max-height: none;
  overflow-y: scroll;
  border-top: 1px solid #f1f5f9;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-workflow-col--table .cert-dash-table-scroll--studio thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
  box-shadow: 0 1px 0 #e2e8f0;
}

body.gce-certs-mockup .cert-dash-head--studio {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

body.gce-certs-mockup .cert-dash-head--studio .cert-dash-head-main {
  flex: 0 0 auto;
}

body.gce-certs-mockup .cert-dash-head--studio h1 {
  margin: 4px 0 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.gce-certs-mockup .cert-dash-head-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 420px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

body.gce-certs-mockup .cert-dash-btn--ai-rename {
  max-width: min(280px, 42vw);
  white-space: nowrap;
}

body.gce-certs-mockup .cert-dash-btn--ai-rename .cert-dash-ai-rename-label {
  display: inline-block;
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

body.gce-certs-mockup .cert-dash-search--head {
  flex: 1 1 220px;
  max-width: 340px;
  min-width: 180px;
}

body.gce-certs-mockup .cert-dash-icon-btn--filter {
  width: 40px;
  height: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #64748b;
}

body.gce-certs-mockup .cert-dash-btn--export {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #4f46e5;
  border-color: #4f46e5;
}

body.gce-certs-mockup .cert-dash-btn--export:hover {
  background: #4338ca;
}

body.gce-certs-mockup .cert-dash-upload-slot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.gce-certs-mockup .cert-dash-upload-crew--hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

body.gce-certs-mockup .cert-dash-btn--sm {
  padding: 8px 12px;
  font-size: 12px;
}

body.gce-certs-mockup .cert-dash-kpis--studio {
  gap: 10px;
}

body.gce-certs-mockup .cert-dash-kpis--studio .cert-dash-kpi {
  padding: 12px 14px;
}

body.gce-certs-mockup .cert-dash-kpis--studio .cert-dash-kpi b {
  font-size: 26px;
}

body.gce-certs-mockup .cert-dash-kpis--studio .cert-dash-kpi span:first-of-type {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 10px;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-member-count {
  display: none;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-mini--ok {
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-crew-pick--active {
  background: #f5f3ff;
  border-color: #c4b5fd;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-member-row--active {
  background: #eef2ff;
  border-color: #c7d2fe;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-workflow-col--table .cert-dash-table--member {
  table-layout: fixed;
  width: 100%;
  min-width: 0;
  font-size: 11px;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-workflow-col--table .cert-dash-table--member th,
body.gce-certs-mockup .cert-dash--studio .cert-dash-workflow-col--table .cert-dash-table--member td {
  padding: 10px 12px;
  vertical-align: middle;
  line-height: 1.35;
}

body.gce-certs-mockup .cert-dash-col--check { width: 36px; min-width: 36px; max-width: 36px; }
body.gce-certs-mockup .cert-dash-col--cert { width: 28%; }
body.gce-certs-mockup .cert-dash-col--cat { width: 12%; }
body.gce-certs-mockup .cert-dash-col--issued { width: 12%; }
body.gce-certs-mockup .cert-dash-col--expires { width: 16%; }
body.gce-certs-mockup .cert-dash-col--status { width: 12%; }
body.gce-certs-mockup .cert-dash-col--actions { width: 52px; min-width: 52px; max-width: 52px; }

body.gce-certs-mockup .cert-dash--studio .cert-dash-table--member th:nth-child(6),
body.gce-certs-mockup .cert-dash--studio .cert-dash-table--member .cert-dash-td-status {
  text-align: center;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-table--member th.cert-dash-th-actions,
body.gce-certs-mockup .cert-dash--studio .cert-dash-table--member td.cert-dash-td-actions,
body.gce-certs-mockup .cert-dash--studio .cert-dash-table--member td.cert-dash-actions {
  width: 52px;
  min-width: 52px;
  max-width: 52px;
  padding: 6px 4px;
  text-align: center;
  vertical-align: middle;
  box-sizing: border-box;
  overflow: visible !important;
}

body.gce-certs-mockup .cert-dash-btn--danger-outline {
  border: 1px solid #fca5a5;
  background: #fff;
  color: #991b1b;
  font-weight: 800;
  cursor: pointer;
}
body.gce-certs-mockup .cert-dash-btn--danger-outline:hover {
  background: #fef2f2;
  border-color: #f87171;
}
body.gce-certs-mockup .cert-dash-btn--grid-delete {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-table--member td.cert-dash-td-actions {
  display: table-cell;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-table--member th.cert-dash-th-actions {
  font-size: 10px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-cert-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-cert-cell-text {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-cert-cell b {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
  line-height: 1.3;
  display: block;
  max-width: 100%;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-table--member td {
  overflow: hidden;
  text-overflow: ellipsis;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-td-exp,
body.gce-certs-mockup .cert-dash--studio .cert-dash-td-status,
body.gce-certs-mockup .cert-dash--studio .cert-dash-td-cat,
body.gce-certs-mockup .cert-dash--studio .cert-dash-td-date {
  overflow: hidden;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-td-status .cert-dash-status {
  max-width: 100%;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-cert-ico {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-td-cat,
body.gce-certs-mockup .cert-dash--studio .cert-dash-td-date,
body.gce-certs-mockup .cert-dash--studio .cert-dash-td-exp {
  font-size: 11px;
  white-space: nowrap;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-td-exp {
  white-space: normal;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-td-exp .cert-dash-exp-days {
  display: block;
  font-size: 10px;
  margin-top: 2px;
  color: #16a34a;
  font-weight: 600;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-actions {
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: nowrap;
  overflow: visible;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-table--member td.cert-dash-td-actions .cert-dash-icon-btn--remove {
  margin: 0 auto;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-icon-btn {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  padding: 0;
}

body.gce-certs-mockup .cert-dash-icon-btn--view,
body.gce-certs-mockup .cert-dash-icon-btn--remove {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.gce-certs-mockup .cert-dash-icon-btn--remove .cert-dash-remove-glyph {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  margin-top: -1px;
}

body.gce-certs-mockup .cert-dash-icon-btn--remove:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-table--member tbody tr {
  height: 48px;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-table--member tbody tr td {
  border-bottom: 1px solid #f1f5f9;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-cat,
body.gce-certs-mockup .cert-dash--studio .cert-dash-status {
  font-size: 10px;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-table-foot {
  padding: 6px 10px;
  font-size: 10px;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-table-foot .cert-dash-select--sm {
  display: none;
}

body.gce-certs-mockup .cert-dash-tabs--studio {
  display: flex;
  align-items: flex-end;
  flex-wrap: nowrap;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 12px;
  gap: 8px;
  background: #fff;
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

body.gce-certs-mockup .cert-dash-tabs--studio::-webkit-scrollbar {
  display: none;
}

body.gce-certs-mockup .cert-dash-tabs--studio .cert-dash-tab {
  flex: 0 0 auto;
  border: none;
  border-radius: 0;
  background: transparent !important;
  padding: 10px 2px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

body.gce-certs-mockup .cert-dash-tabs--studio .cert-dash-tab:hover {
  color: #334155;
}

body.gce-certs-mockup .cert-dash-tabs--studio .cert-dash-tab--active {
  color: #4f46e5;
  font-weight: 700;
  background: transparent !important;
  border-bottom-color: #4f46e5;
}

body.gce-certs-mockup .cert-dash-toolbar--tabs-only {
  padding: 0;
  border-bottom: none;
  background: #fff;
}

body.gce-certs-mockup .cert-dash-cat--medical {
  background: #dcfce7;
  color: #15803d;
}

body.gce-certs-mockup .cert-dash-preview-panel-titles h3 {
  margin: 0;
}

body.gce-certs-mockup .cert-dash-preview-sub {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

body.gce-certs-mockup .cert-dash-studio-panel {
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
  margin-top: 0;
}

body.gce-certs-mockup .cert-dash-studio-split {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) minmax(220px, 270px);
  gap: 0;
  flex: 0 0 auto;
  min-height: 0;
  align-items: start;
  overflow: visible;
  width: 100%;
}

body.gce-certs-mockup .cert-dash-studio-split--602020 {
  grid-template-columns: 60% 20% 20%;
  align-items: start;
  min-height: 0;
  height: auto;
  overflow: visible;
}

body.gce-certs-mockup .cert-dash-studio-col--preview {
  background: #f8fafc;
  border-right: 1px solid #f1f5f9;
  padding: 12px 14px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
  min-height: min-content;
  align-self: start;
}

body.gce-certs-mockup .cert-dash-studio-col--preview .cert-dash-preview-studio {
  width: 100%;
  flex: 0 0 auto;
  align-items: center;
  min-height: 0;
}

body.gce-certs-mockup .cert-dash-studio-col--preview .cert-dash-preview-tool {
  width: 100%;
  max-width: none;
  flex: 0 0 auto;
}

body.gce-certs-mockup .cert-dash-studio-col--preview .cert-dash-detail-preview--large.cert-dash-detail-preview--col {
  flex: 0 0 auto;
  min-height: 0;
  width: auto;
  margin: 0 auto;
  display: block;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  position: relative;
  line-height: 0;
  overflow: visible;
}

body.gce-certs-mockup .cert-dash-studio-col--preview .cert-dash-detail-preview--col .cert-dash-detail-canvas {
  display: block;
  width: auto;
  height: auto;
  max-width: none !important;
  max-height: none !important;
  background: #fff;
}

body.gce-certs-mockup .cert-dash-studio-col--preview .cert-dash-detail-preview--col.cert-dash-detail-preview--img,
body.gce-certs-mockup .cert-dash-studio-col--preview .cert-dash-detail-preview--col.cert-dash-detail-preview--pdf {
  height: auto;
  max-height: none;
}

body.gce-certs-mockup .cert-dash-studio-col--preview .cert-dash-detail-preview--col .cert-dash-detail-img {
  display: block;
  width: auto;
  height: auto;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
  background: #fff;
}

body.gce-certs-mockup .cert-dash-studio-col--preview .cert-dash-detail-preview--col .cert-dash-detail-pdf {
  display: block;
  width: auto;
  height: auto;
  max-width: none !important;
  max-height: none !important;
  background: #fff;
  border: none;
  pointer-events: none;
}

body.gce-certs-mockup .cert-dash-studio-col--desc {
  min-width: 0;
  overflow: auto;
  max-height: min(680px, 65vh);
  border-right: 1px solid #f1f5f9;
  align-self: start;
}

body.gce-certs-mockup .cert-dash-studio-col--desc .cert-dash-studio-meta {
  padding: 16px 14px;
  border-right: none;
}

body.gce-certs-mockup .cert-dash-studio-col--desc .cert-dash-studio-meta-head h2 {
  font-size: 15px;
}

body.gce-certs-mockup .cert-dash-studio-col--desc .cert-dash-date-input--meta {
  max-width: 100%;
}

body.gce-certs-mockup .cert-dash-studio-col--assign {
  min-width: 0;
  overflow: auto;
  max-height: min(680px, 65vh);
  background: #fafbfc;
  align-self: start;
}

body.gce-certs-mockup .cert-dash-studio-assign-col {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

body.gce-certs-mockup .cert-dash-studio-col--assign .cert-dash-studio-actions {
  padding: 0;
  background: transparent;
}

body.gce-certs-mockup .cert-dash-studio-visual {
  padding: 12px 14px;
  border-right: 1px solid #f1f5f9;
  display: block;
  width: auto;
  flex: 0 0 auto;
  align-self: start;
  background: #f8fafc;
  overflow: visible;
}

body.gce-certs-mockup .cert-dash-studio-visual .cert-dash-detail-preview--large {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  min-height: 0;
  max-height: none;
  display: block;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
  line-height: 0;
}

body.gce-certs-mockup .cert-dash-studio-visual .cert-dash-detail-img,
body.gce-certs-mockup .cert-dash-studio-visual .cert-dash-detail-pdf {
  width: auto;
  height: auto;
  max-width: min(460px, 36vw);
  max-height: min(360px, 38vh);
  object-fit: contain;
  display: block;
  background: #fff;
  border: none;
}

body.gce-certs-mockup .cert-dash-detail-pdf {
  pointer-events: none;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-preview-panel--empty {
  flex: 0 0 auto;
  min-height: 160px;
}

body.gce-certs-mockup .cert-dash-studio-meta,
body.gce-certs-mockup .cert-dash-studio-actions {
  align-self: start;
}

body.gce-certs-mockup .cert-dash-preview-loading {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(248, 250, 252, 0.85);
  pointer-events: none;
}

body.gce-certs-mockup .cert-dash-preview-loading--show {
  display: flex;
}

body.gce-certs-mockup .cert-dash-preview-loading::after {
  content: "";
  width: 32px;
  height: 32px;
  border: 3px solid #e2e8f0;
  border-top-color: #4f46e5;
  border-radius: 50%;
  animation: cert-dash-preview-spin 0.65s linear infinite;
}

@keyframes cert-dash-preview-spin {
  to { transform: rotate(360deg); }
}

body.gce-certs-mockup .cert-dash-studio-visual .cert-dash-detail-preview-empty {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  min-width: 240px;
  padding: 24px;
}

body.gce-certs-mockup .cert-dash-studio-meta {
  padding: 20px 22px;
  border-right: 1px solid #f1f5f9;
  overflow: auto;
  min-height: 0;
}

body.gce-certs-mockup .cert-dash-studio-meta-head h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

body.gce-certs-mockup .cert-dash-studio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

body.gce-certs-mockup .cert-dash-studio-meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.gce-certs-mockup .cert-dash-studio-meta-list > li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

body.gce-certs-mockup .cert-dash-studio-meta-list .cert-dash-svg {
  color: #94a3b8;
  margin-top: 2px;
}

body.gce-certs-mockup .cert-dash-studio-meta-list small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}

body.gce-certs-mockup .cert-dash-studio-meta-list b {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

body.gce-certs-mockup .cert-dash-date-input--meta {
  width: 100%;
  max-width: 200px;
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
}

body.gce-certs-mockup .cert-dash-studio-meta-exp .cert-dash-exp-days {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 800;
  color: #16a34a;
}

body.gce-certs-mockup .cert-dash-studio-meta-exp .cert-dash-exp-days--warn {
  color: #ea580c;
}

body.gce-certs-mockup .cert-dash-studio-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #475569;
  font-weight: 500;
}

body.gce-certs-mockup .cert-dash-studio-actions {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  background: #fafbfc;
}

body.gce-certs-mockup .cert-dash-studio-actions h4 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

body.gce-certs-mockup .cert-dash-select--assign {
  width: 100%;
  margin-bottom: 4px;
}

body.gce-certs-mockup .cert-dash-btn--block {
  width: 100%;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.gce-certs-mockup .cert-dash-btn--danger-outline {
  background: #fff;
  border: 1px solid #fecaca;
  color: #dc2626;
}

body.gce-certs-mockup .cert-dash-btn--danger-outline:hover {
  background: #fef2f2;
  border-color: #fca5a5;
}

body.gce-certs-mockup .cert-dash-btn--primary {
  background: #4f46e5;
  border-color: #4f46e5;
}

body.gce-certs-mockup .cert-dash-btn--primary:hover {
  background: #4338ca;
}

body.gce-certs-mockup .cert-dash-btn--outline {
  border-color: #c7d2fe;
  color: #4f46e5;
}

body.gce-certs-mockup .cert-dash-crew-pick--active {
  background: #eef2ff;
  border-color: #c7d2fe;
}

body.gce-certs-mockup .cert-dash-member-row--active {
  background: #eff6ff;
  border-color: #bfdbfe;
}

body.gce-certs-mockup .cert-dash-studio-panel--tabs {
  flex: 0 0 auto;
}

body.gce-certs-mockup .cert-dash-studio-nav {
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

body.gce-certs-mockup .cert-dash-tabs--panel {
  gap: 6px;
  padding: 0 16px;
}

body.gce-certs-mockup .cert-dash-tabs--panel .cert-dash-tab {
  padding: 10px 10px;
  font-size: 13px;
}

body.gce-certs-mockup .cert-dash-studio-tab-panels {
  background: #f8fafc;
  padding: 12px 14px 14px;
}

body.gce-certs-mockup .cert-dash-studio-tab-pane {
  display: none;
}

body.gce-certs-mockup .cert-dash-studio-tab-pane--active {
  display: block;
}

body.gce-certs-mockup .cert-dash-studio-tab-pane--preview {
  min-height: 0;
}

body.gce-certs-mockup .cert-dash-preview-studio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

body.gce-certs-mockup .cert-dash-preview-tool {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 720px);
  padding: 0 4px;
}

body.gce-certs-mockup .cert-dash-preview-tool--top {
  justify-content: flex-end;
}

body.gce-certs-mockup .cert-dash-preview-tool--bottom {
  justify-content: space-between;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

body.gce-certs-mockup .cert-dash-preview-zoom-label {
  margin-right: auto;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

body.gce-certs-mockup .cert-dash-preview-page {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

body.gce-certs-mockup .cert-dash-preview-rotate {
  border: none;
  background: transparent;
  color: #4f46e5;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
}

body.gce-certs-mockup .cert-dash-detail-preview--tab {
  margin: 0 auto;
}

body.gce-certs-mockup .cert-dash-studio-tab-pane--preview .cert-dash-detail-img,
body.gce-certs-mockup .cert-dash-studio-tab-pane--preview .cert-dash-detail-pdf {
  max-width: min(680px, 72vw);
  max-height: min(520px, 56vh);
}

body.gce-certs-mockup .cert-dash-studio-pane-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  margin: 0 auto;
  padding: 18px 20px;
}

body.gce-certs-mockup .cert-dash-studio-pane-card--desc {
  max-width: 520px;
}

body.gce-certs-mockup .cert-dash-studio-pane-card--assign {
  max-width: 400px;
}

body.gce-certs-mockup .cert-dash-studio-pane-card--assign .cert-dash-studio-actions {
  padding: 0;
  background: transparent;
}

body.gce-certs-mockup .cert-dash-id-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.gce-certs-mockup .cert-dash-copy-id {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  color: #4f46e5;
  cursor: pointer;
  font-family: inherit;
}

body.gce-certs-mockup .cert-dash-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.gce-certs-mockup .cert-dash-tag-pill {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  background: #ede9fe;
  color: #6d28d9;
  font-size: 11px;
  font-weight: 700;
}

body.gce-certs-mockup .cert-dash-uploaded-by {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

body.gce-certs-mockup .cert-dash-uploaded-by b {
  display: block;
  font-size: 13px;
}

body.gce-certs-mockup .cert-dash-uploaded-by small {
  display: block;
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

body.gce-certs-mockup .cert-dash-history {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

body.gce-certs-mockup .cert-dash-history h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

body.gce-certs-mockup .cert-dash-history-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f8fafc;
  font-size: 12px;
}

body.gce-certs-mockup .cert-dash-history-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4f46e5;
  margin-top: 5px;
}

body.gce-certs-mockup .cert-dash-history-item small {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
  font-weight: 600;
}

body.gce-certs-mockup .cert-dash-assign-status {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #15803d;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

body.gce-certs-mockup .cert-dash-assign-status--expiring {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

body.gce-certs-mockup .cert-dash-assign-status--expired {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

@media (max-width: 1200px) {
  body.gce-certs-mockup .cert-dash-studio-pane-card--desc,
  body.gce-certs-mockup .cert-dash-studio-pane-card--assign {
    max-width: 100%;
  }

  body.gce-certs-mockup .cert-dash-studio-split--602020 {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body.gce-certs-mockup .cert-dash-studio-col--preview {
    border-right: none;
    border-bottom: 1px solid #f1f5f9;
  }

  body.gce-certs-mockup .cert-dash-studio-col--desc {
    border-right: none;
    border-bottom: 1px solid #f1f5f9;
    max-height: none;
  }

  body.gce-certs-mockup .cert-dash-studio-col--assign {
    max-height: none;
  }

  body.gce-certs-mockup .cert-dash-studio-split {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  body.gce-certs-mockup .cert-dash-studio-visual {
    grid-column: 1 / -1;
    border-right: none;
    border-bottom: 1px solid #f1f5f9;
  }

  body.gce-certs-mockup .cert-dash-studio-actions {
    border-top: 1px solid #f1f5f9;
    grid-column: 1 / -1;
  }
}

/* Preview — full certificate height (grid must not clip overflow) */
body.gce-certs-mockup .cert-dash-preview-panel.cert-dash-studio-panel .cert-dash-studio-split--602020 {
  align-items: start;
  overflow: visible;
}

body.gce-certs-mockup .cert-dash-studio-col--preview .cert-dash-detail-preview--large.cert-dash-detail-preview--col {
  flex: none;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

body.gce-certs-mockup .cert-dash-studio-col--preview .cert-dash-detail-preview--col .cert-dash-detail-canvas,
body.gce-certs-mockup .cert-dash-studio-col--preview .cert-dash-detail-preview--col .cert-dash-detail-img {
  vertical-align: top;
}

/* Certificate grid preview */
body.gce-certs-mockup .cert-dash-cert-grid-wrap {
  width: 100%;
  padding: 4px 2px 8px;
}

body.gce-certs-mockup .cert-dash-cert-grid-hint {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

body.gce-certs-mockup .cert-dash-cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 14px;
  width: 100%;
  align-items: start;
}

body.gce-certs-mockup .cert-dash-cert-grid-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  font-family: inherit;
  position: relative;
  z-index: 1;
  transform-origin: center center;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.15s ease;
  overflow: visible;
}

body.gce-certs-mockup .cert-dash-cert-grid-hit {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  width: 100%;
}

body.gce-certs-mockup .cert-dash-cert-grid-item:hover {
  border-color: #c7d2fe;
}

body.gce-certs-mockup .cert-dash-cert-grid-item--expanded {
  grid-column: 1 / -1;
  border-color: #818cf8;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.14);
}

body.gce-certs-mockup .cert-dash-cert-grid-item--expanded .cert-dash-cert-grid-hit {
  padding-bottom: 10px;
}

body.gce-certs-mockup .cert-dash-cert-grid-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  overflow: hidden;
  min-height: 120px;
}

body.gce-certs-mockup .cert-dash-cert-grid-thumb--mini {
  height: 240px;
  min-height: 240px;
  max-height: 240px;
}

body.gce-certs-mockup .cert-dash-cert-grid-thumb--full {
  min-height: 320px;
  max-height: none;
  padding: 12px;
  border-color: #e2e8f0;
}

body.gce-certs-mockup .cert-dash-cert-grid-thumb .cert-dash-grid-preview-img {
  display: block;
  max-width: 100%;
  height: auto;
  background: #fff;
}

/* Mini card: show the WHOLE certificate contained in the thumbnail (no top-crop).
   Overrides the inline pixel width/height set in JS so tall/portrait certs fit fully. */
body.gce-certs-mockup .cert-dash-cert-grid-thumb--mini .cert-dash-grid-preview-img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}

body.gce-certs-mockup .cert-dash-cert-grid-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

body.gce-certs-mockup .cert-dash-cert-grid-meta b {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  max-width: 100%;
}

body.gce-certs-mockup .cert-dash-cert-grid-meta-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

body.gce-certs-mockup .cert-dash-cert-grid-meta-foot .cert-dash-status,
body.gce-certs-mockup .cert-dash-cert-grid-meta-foot .cert-dash-cat {
  flex: 0 0 auto;
}

body.gce-certs-mockup .cert-dash-cert-grid-meta-foot small,
body.gce-certs-mockup .cert-dash-cert-grid-meta > small {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.gce-certs-mockup .cert-dash-cert-grid-meta small {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
}

body.gce-certs-mockup .cert-dash-cert-grid-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 120px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
}

body.gce-certs-mockup .cert-dash-studio-meta--placeholder,
body.gce-certs-mockup .cert-dash-studio-assign-col--placeholder {
  padding: 20px 14px;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

body.gce-certs-mockup .cert-dash-studio-meta--placeholder h2 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #0f172a;
}

body.gce-certs-mockup .cert-dash-studio-panel--grid-only .cert-dash-cert-grid-panel {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  padding: 4px 12px 16px;
  overflow: hidden;
}

body.gce-certs-mockup .cert-dash-cert-grid-wrap--large {
  overflow: visible;
}

body.gce-certs-mockup .cert-dash-cert-grid-wrap--scroll {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

body.gce-certs-mockup .cert-dash-cert-grid--large {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding: 16px 8px 24px;
  overflow: visible;
}

body.gce-certs-mockup .cert-dash-cert-grid--scroll {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 12px;
  width: max-content;
  min-width: 100%;
  padding: 12px 4px 16px;
}

body.gce-certs-mockup .cert-dash-cert-grid--scroll .cert-dash-cert-grid-item {
  flex: 0 0 188px;
  width: 188px;
  max-width: 188px;
}

body.gce-certs-mockup .cert-dash-cert-grid-wrap--scroll .cert-dash-cert-grid-hit {
  padding: 8px;
  gap: 6px;
}

body.gce-certs-mockup .cert-dash-cert-grid-wrap--scroll .cert-dash-cert-grid-meta b {
  font-size: 11px;
  -webkit-line-clamp: 2;
}

body.gce-certs-mockup .cert-dash-cert-grid-wrap--scroll .cert-dash-cert-grid-meta small {
  font-size: 10px;
}

body.gce-certs-mockup .cert-dash-cert-grid-wrap--scroll .cert-dash-status {
  font-size: 9px;
  padding: 2px 6px;
}

body.gce-certs-mockup .cert-dash-cert-grid-wrap--scroll .cert-dash-cert-grid-item {
  overflow: hidden;
}

body.gce-certs-mockup .cert-dash-cert-grid-wrap--scroll .cert-dash-cert-grid-hit {
  overflow: hidden;
  min-width: 0;
}

body.gce-certs-mockup .cert-dash-cert-grid-wrap--large .cert-dash-cert-grid-thumb--mini {
  min-height: 148px;
  max-height: 148px;
  height: 148px;
}

body.gce-certs-mockup .cert-dash-cert-grid-item--hover,
body.gce-certs-mockup .cert-dash-cert-grid-item:hover {
  z-index: 5;
  border-color: #818cf8;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.14);
}

/* Hover lens lives on document.body — hidden by default, shown only on Safety > Certs. */
#cert-dash-hover-lens {
  position: fixed;
  z-index: 10050;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  box-sizing: border-box;
}

body.gce-certs-mockup #cert-dash-hover-lens {
  background: #fff;
  border: 1px solid #c7d2fe;
  border-radius: 14px;
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.22);
  padding: 10px;
  transition: opacity 0.14s ease, visibility 0.14s ease;
}

body.gce-certs-mockup #cert-dash-hover-lens.cert-dash-cert-hover-lens--show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.gce-certs-mockup .cert-dash-cert-hover-lens-body {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 120px;
  background: #fff;
  border: 0;
  overflow: hidden;
}

body.gce-certs-mockup .cert-dash-grid-preview-iframe {
  display: block;
  margin: 0 auto;
  background: #fff;
}

body.gce-certs-mockup #cert-dash-hover-lens .cert-dash-cert-hover-lens-body .cert-dash-grid-preview-img {
  display: block;
  width: auto !important;
  max-width: 100% !important;
  max-height: min(78vh, 820px) !important;
  height: auto !important;
  object-fit: contain;
  margin: 0 auto;
}

body.gce-certs-mockup .cert-dash-cert-grid-item--selected {
  border-color: #818cf8;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.16);
}

body.gce-certs-mockup .cert-dash-cert-grid-item--selected .cert-dash-cert-grid-hit {
  background: #fafbff;
}

body.gce-certs-mockup .cert-dash-table-edit-panel {
  margin: 0 0 12px;
  padding: 14px 16px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

body.gce-certs-mockup .cert-dash-table-edit-panel--empty {
  padding: 12px 16px;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

body.gce-certs-mockup .cert-dash-table-edit-panel--empty p {
  margin: 0;
}

body.gce-certs-mockup .cert-dash-table-edit-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

body.gce-certs-mockup .cert-dash-table-edit-head b {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.gce-certs-mockup .cert-dash-table-edit-form {
  display: grid;
  grid-template-columns: minmax(148px, 1fr) minmax(148px, 1fr) minmax(220px, 1.35fr);
  gap: 12px 16px;
  align-items: start;
}

body.gce-certs-mockup .cert-dash-edit-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

body.gce-certs-mockup .cert-dash-edit-field > span {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}

body.gce-certs-mockup .cert-dash-edit-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 62px;
}

body.gce-certs-mockup .cert-dash-edit-note {
  display: block;
  min-height: 16px;
  font-size: 11px;
  font-weight: 600;
  color: #16a34a;
  line-height: 1.2;
}

body.gce-certs-mockup .cert-dash-edit-note--warn {
  color: #d97706;
}

body.gce-certs-mockup .cert-dash-edit-note--spacer {
  visibility: hidden;
}

body.gce-certs-mockup .cert-dash-edit-assign-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
}

body.gce-certs-mockup .cert-dash-edit-assign-row .cert-dash-select--assign {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  min-height: 38px;
  height: 38px;
  padding: 0 10px;
  font-size: 13px;
  box-sizing: border-box;
}

body.gce-certs-mockup .cert-dash-edit-assign-row .cert-dash-btn--grid-assign {
  flex-shrink: 0;
  min-height: 38px;
  height: 38px;
  padding: 0 14px;
  white-space: nowrap;
}

body.gce-certs-mockup .cert-dash-date-input--grid {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  height: 38px;
  padding: 0 10px;
  font-size: 13px;
  box-sizing: border-box;
}

body.gce-certs-mockup .cert-dash-date-input--grid::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 1;
}

@media (max-width: 900px) {
  body.gce-certs-mockup .cert-dash-table-edit-form {
    grid-template-columns: 1fr 1fr;
  }

  body.gce-certs-mockup .cert-dash-edit-field--assign {
    grid-column: 1 / -1;
  }

  body.gce-certs-mockup .cert-dash-edit-assign-row {
    flex-direction: column;
    align-items: stretch;
  }

  body.gce-certs-mockup .cert-dash-edit-assign-row .cert-dash-btn--grid-assign {
    width: 100%;
  }
}

body.gce-certs-mockup .cert-dash-cert-grid-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 14px 14px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

body.gce-certs-mockup .cert-dash-workflow-col--table .cert-dash-cert-grid-fields {
  padding: 0;
  border: 0;
  background: transparent;
  gap: 10px;
}

body.gce-certs-mockup .cert-dash-cert-grid-fields-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

body.gce-certs-mockup .cert-dash-cert-grid-fields-row--assign {
  align-items: flex-end;
}

body.gce-certs-mockup .cert-dash-cert-grid-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
}

body.gce-certs-mockup .cert-dash-cert-grid-field--grow {
  flex: 1 1 200px;
  min-width: 180px;
}

body.gce-certs-mockup .cert-dash-cert-grid-field > span {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

body.gce-certs-mockup .cert-dash-date-input--grid {
  width: 100%;
  min-width: 140px;
  padding: 8px 10px;
  font-size: 13px;
}

body.gce-certs-mockup .cert-dash-select--assign {
  width: 100%;
  min-height: 38px;
}

body.gce-certs-mockup .cert-dash-btn--grid-assign {
  flex-shrink: 0;
  min-height: 38px;
  padding: 0 16px;
  white-space: nowrap;
}

/* ── Certificates studio: fill the viewport with white content, scroll only when needed ──
   Preview panel grows to absorb leftover height so the gray main background doesn't show a
   large gutter below the cards. Cards still scroll horizontally; main scrolls only if content
   truly exceeds one screen. */
body.gce-certs-mockup main {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: calc(100vh - 56px) !important;
  min-height: calc(100vh - 56px);
  box-sizing: border-box;
}

body.gce-certs-mockup #safety-page-root {
  min-height: 100%;
  height: auto;
  overflow: visible !important;
  display: flex;
  flex-direction: column;
}

body.gce-certs-mockup #safety-page-root > .cert-dash.cert-dash--studio {
  flex: 1 1 auto;
  min-height: 100%;
  overflow: visible !important;
}

body.gce-certs-mockup .cert-dash--onepage.cert-dash--studio,
body.gce-certs-mockup .cert-dash--studio {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  display: flex;
  flex-direction: column;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-body {
  flex: 0 0 auto;
  overflow: visible !important;
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Top: three tabs — sized block so page can scroll past them to Preview */
body.gce-certs-mockup .cert-dash--studio .cert-dash-workflow {
  height: auto !important;
  max-height: min(52vh, 560px) !important;
  min-height: 280px !important;
  flex: 0 0 auto;
  align-self: stretch;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-workflow-col {
  max-height: none;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-workflow-scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-workflow-col--table {
  height: 100%;
  max-height: none;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-workflow-col--table .cert-dash-table-scroll,
body.gce-certs-mockup .cert-dash--studio .cert-dash-workflow-col--table .cert-dash-table-scroll--studio {
  flex: 1 1 auto !important;
  min-height: 220px !important;
  max-height: none !important;
  overflow-y: auto !important;
}

/* Bottom: Certificate Preview — tight shell (less empty gray) */
body.gce-certs-mockup .cert-dash--studio #cert-dash-preview-host {
  flex: 0 0 auto;
  width: 100%;
  min-height: 0;
  max-height: none;
  height: auto;
  overflow: visible;
  margin-top: 2px;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-preview-panel,
body.gce-certs-mockup .cert-dash--studio .cert-dash-preview-panel.cert-dash-studio-panel,
body.gce-certs-mockup .cert-dash--studio .cert-dash-preview-panel.cert-dash-studio-panel--grid-only {
  flex: 0 0 auto;
  min-height: 0 !important;
  max-height: none;
  height: auto !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-studio-panel--grid-only .cert-dash-cert-grid-panel {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-preview-panel--empty {
  min-height: 0 !important;
  max-height: none;
  height: auto !important;
  padding-bottom: 8px;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-preview-panel-head {
  flex-shrink: 0;
  padding: 8px 12px 4px;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-preview-panel-head h3 {
  font-size: 13px;
  margin: 0;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-preview-sub,
body.gce-certs-mockup .cert-dash--studio .cert-dash-cert-grid-hint {
  font-size: 11px;
  margin: 2px 0 0;
  line-height: 1.3;
}

/* Card strip hugs thumbnails — no tall empty shell */
body.gce-certs-mockup .cert-dash--studio .cert-dash-cert-grid-wrap--scroll {
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 10px 8px;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-cert-grid--scroll {
  align-items: flex-start;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-cert-grid-wrap--large .cert-dash-cert-grid-thumb--mini,
body.gce-certs-mockup .cert-dash--studio .cert-dash-cert-grid-thumb--mini {
  height: 148px !important;
  min-height: 148px !important;
  max-height: 148px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

/* Fill leftover viewport with workflow columns so gray gutter disappears */
body.gce-certs-mockup .cert-dash--studio .cert-dash-body {
  gap: 6px;
}

body.gce-certs-mockup.gce-certs-mockup main,
body.gce-certs-mockup main {
  padding-bottom: 8px !important;
}

/* Stack the three workflow columns once they no longer fit side by side. */
@media (max-width: 1100px) {
  body.gce-certs-mockup .cert-dash--studio .cert-dash-workflow {
    grid-template-columns: 1fr 1fr;
  }

  body.gce-certs-mockup .cert-dash--studio .cert-dash-workflow-col--table {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  body.gce-certs-mockup .cert-dash--studio .cert-dash-workflow {
    grid-template-columns: 1fr;
  }
}

/* Compact member certificates + list/grid toggle */
body.gce-certs-mockup .cert-dash-view-toggle {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

body.gce-certs-mockup .cert-dash-view-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 0;
}

body.gce-certs-mockup .cert-dash-view-btn--active {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4f46e5;
}

body.gce-certs-mockup .cert-dash-toolbar--member-view {
  align-items: center;
  margin-bottom: 8px;
}

body.gce-certs-mockup .cert-dash-tabs--compact .cert-dash-tab {
  padding: 5px 10px;
  font-size: 11px;
}

body.gce-certs-mockup .cert-dash-workflow-head--compact {
  margin-bottom: 8px;
}

body.gce-certs-mockup .cert-dash-workflow-head--compact b {
  font-size: 13px;
}

body.gce-certs-mockup .cert-dash-workflow-head--compact small {
  font-size: 11px;
}

body.gce-certs-mockup .cert-dash-table-edit-panel--compact {
  margin: 0 0 8px;
  padding: 8px 10px 10px;
  border-radius: 10px;
}

body.gce-certs-mockup .cert-dash-table-edit-panel--compact .cert-dash-table-edit-head {
  margin-bottom: 8px;
  padding-bottom: 8px;
}

body.gce-certs-mockup .cert-dash-table-edit-panel--compact .cert-dash-table-edit-head b {
  font-size: 12px;
}

body.gce-certs-mockup .cert-dash-table-edit-panel--compact .cert-dash-table-edit-form {
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) minmax(180px, 1.2fr);
  gap: 8px 10px;
}

body.gce-certs-mockup .cert-dash-table-edit-panel--compact .cert-dash-date-input--grid {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 11px;
}

body.gce-certs-mockup .cert-dash-table-edit-panel--compact .cert-dash-edit-assign-row .cert-dash-select--assign {
  min-height: 30px;
  font-size: 11px;
}

body.gce-certs-mockup .cert-dash-table-edit-panel--compact .cert-dash-btn--grid-assign {
  min-height: 30px;
  padding: 4px 10px;
  font-size: 11px;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-table--member.cert-dash-table--compact {
  font-size: 10px;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-table--member.cert-dash-table--compact th,
body.gce-certs-mockup .cert-dash--studio .cert-dash-table--member.cert-dash-table--compact td {
  padding: 5px 8px;
  line-height: 1.25;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-table--member.cert-dash-table--compact th {
  font-size: 9px;
  padding-top: 6px;
  padding-bottom: 6px;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-table--member.cert-dash-table--compact .cert-dash-cert-ico {
  width: 22px;
  height: 22px;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-table--member.cert-dash-table--compact .cert-dash-cert-cell b {
  font-size: 10px;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-table--member.cert-dash-table--compact .cert-dash-cat,
body.gce-certs-mockup .cert-dash--studio .cert-dash-table--member.cert-dash-table--compact .cert-dash-status {
  font-size: 9px;
  padding: 2px 6px;
}

body.gce-certs-mockup .cert-dash--studio .cert-dash-table--member.cert-dash-table--compact .cert-dash-exp-days {
  font-size: 9px;
}

body.gce-certs-mockup .cert-dash-table-foot--compact {
  padding: 6px 0 0;
  font-size: 10px;
}

body.gce-certs-mockup .cert-dash-workflow-col--grid .cert-dash-table-scroll--studio {
  display: none;
}

body.gce-certs-mockup .cert-dash-cert-grid-wrap--workflow {
  max-height: min(52vh, 560px);
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
}

body.gce-certs-mockup .cert-dash-cert-grid--workflow {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px;
}

body.gce-certs-mockup .cert-dash-cert-grid-item--workflow .cert-dash-cert-grid-hit {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 8px;
}

body.gce-certs-mockup .cert-dash-cert-grid-thumb--workflow {
  width: 100%;
  height: 88px;
  border-radius: 8px;
}

body.gce-certs-mockup .cert-dash-cert-grid-item--workflow .cert-dash-cert-grid-meta b {
  font-size: 10px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.gce-certs-mockup .cert-dash-cert-grid-item--workflow .cert-dash-cert-grid-meta small {
  font-size: 9px;
  line-height: 1.3;
}

body.gce-certs-mockup .cert-dash-cert-grid-item--workflow .cert-dash-cert-grid-meta .cert-dash-cat {
  font-size: 9px;
  padding: 2px 6px;
}

body.gce-certs-mockup .cert-dash-cert-grid-empty--workflow {
  padding: 20px 12px;
  font-size: 12px;
}


/* Certificates improvements: KPI buttons, needs badge, actions, bulk */
body.gce-certs-mockup .cert-dash-kpi--btn {
  text-align: left;
  font: inherit;
  cursor: pointer;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
body.gce-certs-mockup .cert-dash-kpi--btn:hover {
  border-color: #93c5fd;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.08);
}
body.gce-certs-mockup .cert-dash-kpi--active {
  border-color: #1e3a8a !important;
  box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.15);
}
body.gce-certs-mockup .cert-dash-needs-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fdba74;
  font-size: 10px;
  font-weight: 800;
}
body.gce-certs-mockup .cert-dash-member-row--unassigned .cert-dash-avatar {
  background: #fb923c !important;
}
body.gce-certs-mockup .cert-dash-tab--needs {
  color: #c2410c;
}
body.gce-certs-mockup .cert-dash-tab--needs.cert-dash-tab--active {
  color: #9a3412;
  border-bottom-color: #ea580c;
}
body.gce-certs-mockup .cert-dash-th-check,
body.gce-certs-mockup .cert-dash-td-check {
  width: 36px;
  text-align: center;
  vertical-align: middle;
}
body.gce-certs-mockup .cert-dash-act-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}
body.gce-certs-mockup .cert-dash-act-btn {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
body.gce-certs-mockup .cert-dash-act-btn--primary {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
}
body.gce-certs-mockup .cert-dash-act-btn--danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}
body.gce-certs-mockup .cert-dash-act-btn:hover { filter: brightness(0.97); }

/* Certificate row actions — ⋮ kebab (portal to body) */
body.gce-certs-mockup .cert-dash-kebab-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.gce-certs-mockup .cert-dash-kebab-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
body.gce-certs-mockup .cert-dash-kebab-btn:hover,
body.gce-certs-mockup .cert-dash-kebab-btn[aria-expanded="true"] {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1e3a8a;
}
body.gce-certs-mockup .cert-dash-kebab-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 168px;
  padding: 6px;
  border: 1px solid #d8e0ea;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
  z-index: 40;
}
body.gce-certs-mockup .cert-dash-kebab-menu.open,
body.gce-certs-mockup .cert-dash-kebab-menu.cert-dash-kebab-menu--portal {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cert-dash-kebab-menu.cert-dash-kebab-menu--portal {
  position: fixed !important;
  z-index: 2147483002 !important;
}
body.gce-certs-mockup .cert-dash-kebab-menu button,
.cert-dash-kebab-menu.cert-dash-kebab-menu--portal button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #0f172a;
  text-align: left;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
body.gce-certs-mockup .cert-dash-kebab-menu button:hover,
.cert-dash-kebab-menu.cert-dash-kebab-menu--portal button:hover {
  background: #eff6ff;
  color: #1e3a8a;
}
body.gce-certs-mockup .cert-dash-kebab-menu .cert-dash-kebab-danger,
.cert-dash-kebab-menu.cert-dash-kebab-menu--portal .cert-dash-kebab-danger {
  color: #991b1b;
}
body.gce-certs-mockup .cert-dash-kebab-menu .cert-dash-kebab-danger:hover,
.cert-dash-kebab-menu.cert-dash-kebab-menu--portal .cert-dash-kebab-danger:hover {
  background: #fee2e2;
  color: #991b1b;
}
body.gce-certs-mockup .cert-dash--studio .cert-dash-workflow-col--table .cert-dash-table--member th.cert-dash-th-actions,
body.gce-certs-mockup .cert-dash--studio .cert-dash-workflow-col--table .cert-dash-table--member td.cert-dash-td-actions {
  width: 52px;
  min-width: 52px;
  max-width: 56px;
  text-align: center;
}
body.gce-certs-mockup .cert-dash-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin: 0 0 6px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #1e3a8a;
}
body.gce-certs-mockup .cert-dash-bulk-bar.hidden { display: none; }
body.gce-certs-mockup .cert-dash-select--sm {
  padding: 4px 8px;
  font-size: 12px;
  min-width: 140px;
}

/* AI Rename confirmation modal */
.cert-ai-rename-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cert-ai-rename-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}
.cert-ai-rename-card {
  position: relative;
  width: min(520px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: #fff;
  border: 1px solid #d8e0ea;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
  padding: 22px 22px 14px;
  color: #0f172a;
}
.cert-ai-rename-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.cert-ai-rename-badge {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #dbeafe;
  color: #1e3a8a;
  border: 1px solid #93c5fd;
}
.cert-ai-rename-badge .cert-dash-svg {
  width: 22px;
  height: 22px;
}
.cert-ai-rename-head h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.cert-ai-rename-head p {
  margin: 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.4;
}
.cert-ai-rename-x {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.cert-ai-rename-x:hover { color: #0f172a; }
.cert-ai-rename-scope {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 12px;
}
.cert-ai-rename-scope-row {
  display: grid;
  grid-template-columns: 28px 110px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}
.cert-ai-rename-scope-row b {
  color: #0f172a;
  font-weight: 800;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cert-ai-rename-scope-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #1e3a8a;
}
.cert-ai-rename-scope-ico .cert-dash-svg {
  width: 15px;
  height: 15px;
}
.cert-ai-rename-note-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.cert-ai-rename-note {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1 1 240px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #dbeafe;
  border: 1px solid #93c5fd;
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}
.cert-ai-rename-note .cert-dash-svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 1px;
}
.cert-ai-rename-eta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.cert-ai-rename-eta .cert-dash-svg {
  width: 14px;
  height: 14px;
  color: #64748b;
}
.cert-ai-rename-example {
  margin-bottom: 12px;
}
.cert-ai-rename-example label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 8px;
}
.cert-ai-rename-example-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cert-ai-rename-pill {
  display: inline-block;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cert-ai-rename-pill--from {
  background: #f1f5f9;
  border: 1px solid #d8e0ea;
  color: #475569;
}
.cert-ai-rename-pill--to {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
}
.cert-ai-rename-example-arrow {
  color: #94a3b8;
  font-weight: 800;
}
.cert-ai-rename-preview-list {
  display: none;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  max-height: 180px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}
.cert-ai-rename-preview-list.is-open { display: block; }
.cert-ai-rename-preview-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 11px;
  font-weight: 600;
}
.cert-ai-rename-preview-list li:last-child { border-bottom: 0; }
.cert-ai-rename-preview-from {
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cert-ai-rename-preview-to {
  color: #166534;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cert-ai-rename-preview-arrow { color: #94a3b8; text-align: center; }
.cert-ai-rename-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 6px;
}
.cert-ai-rename-foot > div {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.cert-ai-rename-preview-link {
  border: 0;
  background: transparent;
  color: #1d4ed8;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.cert-ai-rename-preview-link:hover { text-decoration: underline; }
.cert-ai-rename-start {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: #1e3a8a !important;
  border-color: #1e3a8a !important;
  color: #fff !important;
  padding: 10px 16px !important;
  font-weight: 800 !important;
}
.cert-ai-rename-start:hover {
  background: #1e40af !important;
  border-color: #1e40af !important;
}
.cert-ai-rename-esc {
  margin: 10px 0 0;
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}
