}

.workflow-area-shortcut {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  align-items: center;
  min-height: 72px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  padding: 12px;
  text-align: left;
}

.workflow-area-shortcut:hover,
.workflow-area-shortcut.is-active {
  border-color: #93c5fd;
  background: #eff6ff;
}

.workflow-area-shortcut strong,
.workflow-area-shortcut span {
  display: block;
  min-width: 0;
}

.workflow-area-shortcut strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.workflow-area-shortcut span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.workflow-area-shortcut em {
  grid-row: span 2;
  color: #155eef;
  font-size: 24px;
  font-style: normal;
  font-weight: 950;
}

.workflow-library-main,
.workflow-library-side {
  display: grid;
  gap: 16px;
}

.workflow-library-work,
.workflow-library-history {
  min-width: 0;
}

.workflow-library-task-list {
  display: grid;
}

.workflow-instance-area-list {
  display: grid;
}

.workflow-catalog-ticket-list {
  display: grid;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.workflow-library-task {
  display: grid;
  grid-template-columns: 42px minmax(210px, 1.4fr) 150px minmax(130px, 0.8fr) 24px;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  border: 0;
  border-bottom: 1px solid #eef2f7;
  background: transparent;
  color: #334155;
  text-align: left;
}

.workflow-library-task:last-child {
  border-bottom: 0;
}

.workflow-library-task:hover {
  background: #f8fbff;
}

.workflow-library-task strong,
.workflow-library-task small {
  display: block;
}

.workflow-library-task strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.workflow-library-task small {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.workflow-library-task i {
  color: #155eef;
  font-size: 22px;
  font-style: normal;
}

.workflow-instance-area-row {
  grid-template-columns: 42px minmax(220px, 1.5fr) minmax(170px, 0.9fr) minmax(150px, 0.8fr) 24px;
}

.workflow-catalog-ticket-row {
  grid-template-columns: 42px minmax(220px, 1.5fr) minmax(170px, 0.9fr) minmax(150px, 0.8fr) 24px;
  padding: 0 12px;
}

.workflow-report-panel {
  min-width: 0;
}

.workflow-report-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 12px;
}

.workflow-report-card {
  display: grid;
  gap: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.workflow-report-card > strong {
  color: var(--ink);
  font-size: 14px;
}

.workflow-report-card > small {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.workflow-report-card div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #eef2f7;
  padding-top: 7px;
  color: #475569;
  font-size: 12px;
  font-weight: 850;
}

.workflow-report-card b {
  color: var(--ink);
}

.workflow-library-history-table {
  overflow: auto;
}

.workflow-library-history-head,
.workflow-library-history-row {
  display: grid;
  grid-template-columns: 120px minmax(160px, 1.2fr) 130px 130px minmax(130px, 1fr) 110px 100px;
  gap: 10px;
  align-items: center;
  min-width: 860px;
}

.workflow-library-history-head {
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 950;
}

.workflow-library-history-row {
  min-height: 48px;
  border-bottom: 1px solid #eef2f7;
  color: #334155;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
}

.workflow-library-history-row:last-child {
  border-bottom: 0;
}

.workflow-library-history-row strong {
  color: var(--ink);
  font-size: 12px;
}

.workflow-library-history-row button {
  border: 0;
  background: transparent;
  color: #155eef;
  font-size: 12px;
  font-weight: 950;
}

.workflow-library-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.workflow-library-overview-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
  border-radius: 8px;
  padding: 14px;
}

.workflow-library-overview-card span {
  display: grid;
  grid-row: span 3;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 20px;
}

.workflow-library-overview-card strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.workflow-library-overview-card small {
  color: #475569;
  font-size: 12px;
  font-weight: 850;
}

.workflow-library-overview-card button {
  width: max-content;
  border: 0;
  background: transparent;
  color: #155eef;
  padding: 0;
  font-size: 11px;
  font-weight: 900;
}

.workflow-library-overview-card.is-orange {
  background: #fff7ed;
}

.workflow-library-overview-card.is-blue {
  background: #eff6ff;
}

.workflow-library-overview-card.is-green {
  background: #ecfdf5;
}

.workflow-library-overview-card.is-red {
  background: #fef2f2;
}

@media (max-width: 1280px) {
  .workflow-approval-metrics,
  .workflow-approval-type-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

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

  .workflow-approval-detail {
    position: static;
  }

  .workflow-approval-flow-steps {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
  }

  .workflow-approval-arrow {
    display: none;
  }

  .workflow-proposal-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .workflow-employee-popular {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }

  .workflow-library-grid {
    grid-template-columns: 1fr;
  }

  .workflow-area-shortcuts,
  .workflow-report-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .workflow-employee-main-grid {
    grid-template-columns: 1fr;
  }

  .workflow-employee-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .workflow-approval-head,
  .workflow-approval-head-actions {
    display: grid;
    justify-content: stretch;
  }

  .workflow-approval-metrics,
  .workflow-approval-type-grid,
  .workflow-approval-flow-steps,
  .workflow-approval-detail-actions {
    grid-template-columns: 1fr;
  }

  .workflow-approval-detail-row {
    grid-template-columns: 1fr;
  }

  .workflow-proposal-grid,
  .workflow-proposal-actions {
    grid-template-columns: 1fr;
  }

  .workflow-library-page {
    padding: 14px;
  }

  .workflow-library-task {
    grid-template-columns: 38px minmax(0, 1fr) 22px;
  }

  .workflow-area-shortcuts,
  .workflow-report-grid {
    grid-template-columns: 1fr;
  }

  .workflow-library-task > span:nth-child(3),
  .workflow-library-task > span:nth-child(4) {
    grid-column: 2;
  }

  .workflow-library-overview {
    grid-template-columns: 1fr;
  }
}

.workflow-catalog-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  border: 1px solid var(--soft-line);
  border-radius: 12px;
  background: #fff;
  padding: 18px 20px;
}

.workflow-catalog-top strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.workflow-catalog-top p {
  margin: 7px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.workflow-catalog-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.workflow-catalog-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--muted);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.workflow-catalog-stats strong {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.workflow-catalog-groups {
  display: grid;
  gap: 16px;
}

.workflow-catalog-group {
  display: grid;
  gap: 10px;
}

.workflow-catalog-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.workflow-catalog-group-head strong {
  color: var(--ink);
  font-size: 15px;
}

.workflow-catalog-group-head span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.workflow-catalog-list {
  display: grid;
  gap: 10px;
}

.workflow-catalog-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.workflow-catalog-card:hover {
  border-color: rgba(249, 115, 22, 0.38);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.workflow-catalog-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
}

.workflow-catalog-icon.is-green {
  border: 1px solid #bbf7d0;
  background: #ecfdf3;
  color: #15803d;
}

.workflow-catalog-icon.is-blue {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #2563eb;
}

.workflow-catalog-icon.is-orange {
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #f97316;
}

.workflow-catalog-icon.is-purple {
  border: 1px solid #ddd6fe;
  background: #f5f3ff;
  color: #7c3aed;
}

.workflow-catalog-icon.is-slate {
  border: 1px solid #dbe3ec;
  background: #f8fafc;
  color: #334155;
}

.workflow-catalog-main {
  min-width: 0;
}

.workflow-catalog-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.workflow-catalog-title button {
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.workflow-catalog-title button:hover {
  color: var(--orange);
}

.workflow-catalog-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.workflow-catalog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.workflow-catalog-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 800;
}

.workflow-catalog-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

.workflow-catalog-empty {
  padding: 44px 20px;
  text-align: center;
}

.workflow-catalog-empty strong {
  color: var(--ink);
  font-size: 18px;
}

.workflow-catalog-empty p {
  margin: 8px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}




.workflow-catalog-detail {
  display: grid;
  gap: 16px;
}

.workflow-catalog-detail-intro,
.workflow-catalog-detail-grid section {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 16px;
}

.workflow-catalog-detail-intro strong,
.workflow-catalog-detail-grid strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.workflow-catalog-detail-intro p,
.workflow-catalog-muted {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

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

.workflow-catalog-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.workflow-catalog-pill-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.workflow-catalog-step-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.workflow-catalog-step-list li {
  display: grid;
  gap: 3px;
  border-left: 3px solid var(--orange);
  border-radius: 8px;
  background: #f8fafc;
  padding: 9px 11px;
}

.workflow-catalog-step-list span {
  color: var(--ink);
  font-weight: 900;
}

.workflow-catalog-step-list small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.workflow-instance-detail {
  display: grid;
  gap: 16px;
}

.workflow-instance-hero {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.workflow-instance-hero-item,
.workflow-instance-section {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 16px;
}

.workflow-instance-hero-item {
  display: grid;
  gap: 6px;
  border-left: 4px solid #3b82f6;
}

.workflow-instance-hero-item.is-success {
  border-left-color: #22c55e;
}

.workflow-instance-hero-item.is-warning {
  border-left-color: #f59e0b;
}

.workflow-instance-hero-item.is-danger {
  border-left-color: #ef4444;
}

.workflow-instance-hero-item span,
.workflow-instance-grid span,
.workflow-instance-payload span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.workflow-instance-hero-item strong,
.workflow-instance-grid strong,
.workflow-instance-payload strong {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.workflow-instance-grid,
.workflow-instance-payload {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.workflow-instance-grid > div,
.workflow-instance-payload > div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px 12px;
}

.workflow-instance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.workflow-instance-history {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.workflow-instance-history-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px 12px;
}

.workflow-instance-history-item strong,
.workflow-instance-history-item small {
  display: block;
  min-width: 0;
}

.workflow-instance-history-item small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.cell-strong {
  color: var(--ink);
  font-weight: 700;
}

.cell-code {
  color: #314256;
  font-family: "Consolas", "Segoe UI", monospace;
  font-size: 13px;
}

.cell-number {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.cell-date,
.cell-muted {
  color: var(--muted);
}

.cell-warning-note {
  display: block;
  margin-top: 3px;
  color: #b7791f;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.table-cell-empty {
  color: var(--subtle);
}

.branding-config-row td {
  padding: 0;
}

.branding-config {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(460px, 1.05fr);
  gap: 18px;
  padding: 22px;
}

.branding-preview-card,
.branding-form-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.branding-preview-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px;
}

.branding-preview-topbar {
  display: grid;
  grid-template-columns: minmax(320px, 1.35fr) minmax(220px, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--soft-line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 18px;
}

.branding-preview-brandline {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.branding-preview-logo {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 22px;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.branding-preview-logo img,
.branding-preview-browser img {
  max-width: 82%;
  max-height: 82%;
  object-fit: contain;
}

.branding-preview-logo b {
  color: var(--brand-dark);
  font-size: 26px;
  font-weight: 950;
}

.branding-preview-brandcopy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.branding-preview-card strong {
  color: var(--ink);
  font-size: 26px;
  line-height: 1.15;
}

.branding-preview-brandcopy strong {
  font-size: 24px;
  line-height: 1.08;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.branding-preview-card small {
  color: var(--muted);
  font-weight: 800;
}

.branding-preview-brandcopy small {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.branding-preview-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid #dbe3ec;
  border-radius: 14px;
  background: #f8fafc;
  padding: 0 14px;
}

.branding-preview-search span {
  color: #64748b;
  font-size: 18px;
}

.branding-preview-search em {
  overflow: hidden;
  color: #94a3b8;
  font-style: normal;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.branding-preview-account {
  display: inline-grid;
  grid-template-columns: 34px auto;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  padding: 4px 14px 4px 4px;
}

.branding-preview-account span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--brand-dark);
  font-weight: 950;
  overflow: hidden;
}

.branding-preview-account span img,
.branding-preview-browser span img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.branding-preview-account b {
  color: #172033;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.branding-preview-browser {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  border: 1px solid var(--soft-line);
  border-radius: 14px;
  background: #f8fafc;
  padding: 10px 12px;
}

.branding-preview-browser span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #ffffff;
  color: var(--brand-dark);
  font-weight: 950;
  overflow: hidden;
}

.branding-preview-browser em {
  overflow: hidden;
  color: #334155;
  font-style: normal;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.branding-form-card {
  display: grid;
  gap: 16px;
  padding: 20px;
}

@media (max-width: 1560px) {
  .branding-config {
    grid-template-columns: 1fr;
  }

  .branding-preview-topbar {
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 1fr) auto;
  }
}

@media (max-width: 1180px) {
  .branding-preview-topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .branding-preview-account {
    justify-self: start;
  }
}

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

.branding-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

tr.row-warning td {
  background: #fffdf4;
}

tr.row-alert td {
  background: #fff7f7;
}

tr.row-warning td:first-child {
  box-shadow: inset 3px 0 0 #f59e0b;
}

tr.row-alert td:first-child {
  box-shadow: inset 3px 0 0 var(--red);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.badge-good {
  border-color: rgba(21, 128, 61, 0.2);
  background: #ecfdf3;
  color: var(--green);
}

.badge-info {
  border-color: rgba(249, 115, 22, 0.24);
  background: #fff7ed;
  color: var(--blue);
}

.badge-warn {
  border-color: rgba(183, 121, 31, 0.24);
  background: #fff8e6;
  color: #8a5b16;
}

.badge-danger {
  border-color: rgba(180, 35, 24, 0.2);
  background: #fff1f0;
  color: var(--red);
}

.badge-neutral {
  border-color: #d9e1ea;
  background: #f8fafc;
  color: #526174;
}

.workbench.is-loading {
  pointer-events: none;
}

.workbench.is-loading > :not(.workbench-loader) {
  opacity: 0.42;
}

.workbench-loader {
  position: absolute;
  inset: 74px 18px 18px;
  z-index: 8;
  display: grid;
  grid-template-columns: 174px minmax(220px, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 178px;
  border: 1px solid rgba(191, 219, 254, 0.95);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.92)),
    radial-gradient(circle at 18% 20%, rgba(34, 211, 238, 0.12), transparent 28%);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
  padding: 18px 22px;
  overflow: hidden;
}

.loading-state {
  display: grid;
  grid-template-columns: 190px minmax(220px, 520px);
  gap: 18px;
  align-items: center;
  justify-content: center;
  width: min(760px, calc(100vw - 36px));
  min-height: 320px;
  margin: 8vh auto 0;
  border: 1px solid rgba(191, 219, 254, 0.95);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94)),
    radial-gradient(circle at 20% 18%, rgba(34, 211, 238, 0.13), transparent 32%);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
  padding: 26px;
  text-align: left;
}

.loading-state .loader-technician {
  width: 190px;
  animation-name: technician-frames-panel, technician-bob;
}

.loading-state .loader-skeleton {
  grid-column: 1 / -1;
}

.workbench-loader::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  background-size: 220% 100%;
  animation: skeleton-sweep 1.35s ease-in-out infinite;
  pointer-events: none;
}

.loader-technician {
  position: relative;
  z-index: 1;
  width: 168px;
  aspect-ratio: 420 / 340;
  background-image: url("/img/loading-technician-sprite.png");
  background-repeat: no-repeat;
  background-size: auto 100%;
  filter: drop-shadow(0 12px 18px rgba(15, 23, 42, 0.16));
  animation: technician-frames 1.45s steps(1, end) infinite, technician-bob 1.6s ease-in-out infinite;
}

.loader-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  align-content: center;
}

.loader-copy strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.loader-copy span {
  max-width: 520px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.loader-skeleton {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.95fr;
  gap: 10px;
}

.loader-skeleton span {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e2e8f0, #f8fafc, #dbeafe);
  background-size: 220% 100%;
  animation: skeleton-sweep 1.2s ease-in-out infinite;
}

.loader-skeleton span:nth-child(2) {
  animation-delay: 120ms;
}

.loader-skeleton span:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes technician-frames {
  0%, 30% {
    background-position: 0 0;
  }
  33%, 63% {
    background-position: -168px 0;
  }
  66%, 96% {
    background-position: -336px 0;
  }
  100% {
    background-position: 0 0;
  }
}

@keyframes technician-frames-panel {
  0%, 30% {
    background-position: 0 0;
  }
  33%, 63% {
    background-position: -190px 0;
  }
  66%, 96% {
    background-position: -380px 0;
  }
  100% {
    background-position: 0 0;
  }
}

@keyframes technician-bob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes skeleton-sweep {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}

@media (max-width: 1500px) {
  .topbar {
    grid-template-columns: minmax(128px, 0.34fr) minmax(470px, 1.3fr) auto;
    gap: 10px;
  }

  .toolbar {
    grid-template-columns: minmax(124px, 0.8fr) minmax(220px, 1.2fr) auto;
  }

  .toolbar > label:has(#fromDate),
  .toolbar > label:has(#toDate) {
    display: none;
  }

  .topbar[data-period-preset="customRange"] {
    grid-template-columns: minmax(128px, 0.3fr) minmax(660px, 1.5fr) auto;
  }

  .topbar[data-period-preset="customRange"] .toolbar {
    grid-template-columns: minmax(124px, 0.75fr) minmax(210px, 1.05fr) minmax(130px, 0.7fr) minmax(130px, 0.7fr) auto;
  }

  .topbar[data-period-preset="customRange"] .toolbar > label:has(#fromDate),
  .topbar[data-period-preset="customRange"] .toolbar > label:has(#toDate) {
    display: grid;
  }

  .searchbar {
    grid-template-columns: 160px repeat(4, minmax(150px, 1fr));
  }

  .searchbar[data-view="employees"] {
    grid-template-columns: minmax(300px, 1.7fr) repeat(5, minmax(132px, 1fr));
  }

  .filter-title {
    min-height: 46px;
  }
}

@media (max-width: 1280px) {
  .topbar {
    grid-template-columns: minmax(150px, 0.45fr) minmax(560px, 1.55fr) auto;
  }

  .toolbar {
    grid-template-columns: minmax(140px, 0.8fr) minmax(260px, 1.2fr) minmax(138px, 0.7fr) minmax(138px, 0.7fr) auto;
  }

  .metrics {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }

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

  .portal-home {
    grid-template-columns: 1fr;
  }

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

  .portal-operation-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .portal-review-grid {
    grid-template-columns: 1fr;
  }

  .searchbar[data-view="employees"] {
    grid-template-columns: minmax(280px, 1.5fr) repeat(2, minmax(150px, 1fr));
  }

  .filter-title {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    grid-column: 1 / -1;
    min-height: auto;
    padding: 0 0 10px;
  }

  .report-summary {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .monthly-work-summary {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .monthly-work-calendar {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
  }

  .payroll-summary {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}

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

  .topbar-brand-copy strong,
  .topbar-brand-copy small {
    white-space: normal;
  }

  .toolbar {
    grid-template-columns: minmax(180px, 1fr) minmax(300px, 1.2fr) minmax(140px, 0.8fr) minmax(140px, 0.8fr) auto;
    justify-content: stretch;
    min-width: 0;
  }

  .topbar-account-actions {
    justify-self: stretch;
  }
}

@media (max-width: 1080px) {
  .hr-action-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .online-review-kpis {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .online-review-list,
  .online-monthly-report-grid {
    grid-template-columns: 1fr;
  }

  .portal-action-grid,
  .portal-module-grid,
  .portal-operation-grid,
  .portal-review-grid,
  .portal-hr-snapshot .portal-hr-grid,
  .module-dashboard-metrics,
  .module-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-card,
  .health-card,
  .wide-card {
    grid-column: span 6;
    grid-row: auto;
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "topbar"
      "sidebar"
      "content"
      "footer";
  }

  .app-shell.is-sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .portal-side,
  .portal-bottom-grid,
  .portal-operation-grid,
  .portal-review-grid,
  .portal-hr-snapshot .portal-hr-grid,
  .module-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .portal-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .portal-hero-visual {
    display: none;
  }

  .module-dashboard-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 60;
    height: auto;
    max-height: 42vh;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 12px;
  }

  .app-shell.is-sidebar-collapsed .nav-section > span,
  .app-shell.is-sidebar-collapsed .tab-label {
    display: block;
  }

  .app-shell.is-sidebar-collapsed .nav-tabs {
    margin-top: 0;
  }

  .app-shell.is-sidebar-collapsed .tab-button {
    justify-content: center;
    padding: 0 8px;
  }

  .sidebar-toggle {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    border-radius: 8px;
  }

  .sidebar-status {
    display: none;
  }

  .nav-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 2px 0 6px;
    scrollbar-width: thin;
  }

  .nav-section {
    display: contents;
  }

  .nav-section > span {
    display: none !important;
  }

  .app-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-inline: 4px;
  }

  .app-footer-meta {
    justify-content: flex-start;
    text-align: left;
  }

  .tab-button {
    flex: 0 0 auto;
    justify-content: center;
    min-width: 118px;
    min-height: 38px;
    border-color: var(--line);
    background: #ffffff;
    text-align: center;
    padding: 0 10px;
    transform: none;
  }

  .tab-button:hover {
    transform: none;
  }

  .tab-button.is-active {
    box-shadow: inset 0 -3px 0 #2563eb;
  }

  .content {
    padding: 12px;
  }

  .online-checkin-hero {
    grid-template-columns: 1fr;
    align-items: stretch;
    position: sticky;
    top: 8px;
    z-index: 7;
  }

  .online-checkin-actions {
    grid-template-columns: 1fr 1fr;
  }

  .online-checkin-button {
    min-height: 56px;
    font-size: 16px;
  }

  .topbar {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
  }

  .page-title-block h1 {
    margin-bottom: 4px;
    font-size: 24px;
    line-height: 1.15;
  }

  .system-strip {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    min-width: 0;
  }

  .toolbar > label,
  .toolbar > label:first-child,
  .toolbar > label:has(#fromDate),
  .toolbar > label:has(#toDate),
  .month-switcher label {
    min-width: 0;
  }

  .month-switcher {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
  }

  .toolbar-refresh-action {
    width: 100%;
  }

  .topbar-account-actions {
    justify-self: stretch;
    justify-content: space-between;
    min-width: 0;
  }

  .account-wrap {
    min-width: 0;
  }

  .account-button {
    max-width: calc(100vw - 82px);
  }

  .account-button-copy {
    min-width: 0;
  }

  .account-button-copy strong,
  .account-button-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .report-breakdown {
    grid-template-columns: 1fr;
  }

  .report-detail-head,
  .report-detail-meta,
  .profile-head,
  .profile-actions,
  .profile-overview-hero,
  .profile-spotlight-card,
  .profile-grid,
  .profile-summary-grid,
  .employee-edit-grid,
  .attachment-upload,
  .contract-print-head,
  .contract-print-layout,
  .payroll-head,
  .payroll-status-banner,
  .payroll-layout,
  .payroll-detail-grid,
  .explanation-head,
  .announcement-reader-toolbar,
  .announcement-document-top,
  .announcement-document-signature,
  .announcement-reader-foot {
    grid-template-columns: 1fr;
  }

  .announcement-document {
    padding: 30px 28px 34px;
  }

  .announcement-document-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .announcement-document-info div:nth-child(2) {
    border-right: 0;
  }

  .announcement-document-info div:nth-child(-n + 2) {
    border-bottom: 1px solid #e5eaf2;
  }

  .announcement-document-content {
    font-size: 15px;
  }

  .report-detail-actions,
  .contract-print-actions,
  .payroll-actions,
  .explanation-actions {
    justify-content: stretch;
  }

  .report-detail-actions > *,
  .contract-print-actions > *,
  .payroll-actions > *,
  .explanation-actions > * {
    flex: 1 1 140px;
  }

  .workflow-builder-section-head,
  .workflow-catalog-top,
  .workflow-catalog-card,
  .workflow-catalog-detail-grid,
  .workflow-hub-hero,
  .workflow-hub-map,
  .workflow-hub-grid,
  .portal-home,
  .portal-hero,
  .portal-action-grid,
  .portal-module-grid,
  .portal-operation-grid,
  .portal-review-grid,
  .portal-bottom-grid,
  .portal-hr-snapshot .portal-hr-grid,
  .workflow-designer-basics,
  .workflow-designer-guide,
  .workflow-mode-tabs,
  .workflow-mode-panel-head,
  .workflow-form-builder-head,
  .workflow-form-builder-body,
  .workflow-form-preview-top,
  .workflow-form-field-config,
  .workflow-field-advanced-grid,
  .workflow-visual-workspace,
  .workflow-node-inspector-grid,
  .workflow-simulator-head,
  .workflow-simulator-grid,
  .workflow-quality-head,
  .workflow-quality-grid,
  .workflow-runtime-test,
  .workflow-builder-row {
    grid-template-columns: 1fr;
  }

  .workflow-field-palette {
    max-height: none;
  }

  .workflow-builder-row .wide-ish-field {
    grid-column: auto;
  }

  .workbench-loader {
    inset: 86px 12px 12px;
    grid-template-columns: 132px minmax(0, 1fr);
    min-height: 156px;
    padding: 14px;
  }

  .loader-technician {
    width: 132px;
    animation-name: technician-frames-small, technician-bob;
  }

  .loading-state {
    grid-template-columns: 132px minmax(0, 1fr);
    min-height: 260px;
    margin-top: 5vh;
    padding: 18px;
  }

  .loading-state .loader-technician {
    width: 132px;
    animation-name: technician-frames-small, technician-bob;
  }

  @keyframes technician-frames-small {
    0%, 30% {
      background-position: 0 0;
    }
    33%, 63% {
      background-position: -132px 0;
    }
    66%, 96% {
      background-position: -264px 0;
    }
    100% {
      background-position: 0 0;
    }
  }

  .dashboard-card,
  .health-card,
  .wide-card {
    grid-column: 1 / -1;
  }

  .monthly-work-calendar {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

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

  .workbench-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }

  .view-actions {
    justify-content: stretch;
  }

  .view-actions > * {
    flex: 1 1 150px;
  }

  .searchbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px;
  }

  .searchbar[data-view="employees"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px;
  }

  .filter-title {
    grid-column: 1 / -1;
  }

  .table-wrap {
    max-height: none;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 760px;
  }

  th,
  td {
    padding: 10px 12px;
  }

  th:first-child,
  td:first-child {
    min-width: 136px;
  }

  .employee-profile-panel,
  .contract-print-panel,
  .payroll-panel,
  .explanation-panel {
    padding: 10px;
  }

  .profile-head,
  .explanation-head {
    top: 0;
    margin-bottom: 10px;
    border-radius: 8px;
    padding: 12px;
  }

  .profile-identity {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .profile-avatar {
    width: 76px;
    height: 84px;
    border-radius: 12px;
    font-size: 18px;
  }

  .profile-head h3 {
    font-size: 20px;
  }
}

@media (max-width: 680px) {
  .hr-action-grid {
    grid-template-columns: 1fr;
  }

  .hr-action-main {
    grid-template-columns: 34px minmax(0, 1fr) 40px;
  }

  .online-review-head,
  .online-monthly-report-head,
  .online-decision-box {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .online-review-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .online-decision-chips {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .nav-tabs,
  .metrics,
  .payroll-summary,
  .profile-summary-grid,
  .profile-overview-hero,
  .monthly-work-summary,
  .monthly-work-calendar,
  .report-summary,
  .report-detail-meta,
  .explanation-form-grid,
  .toolbar,
  .searchbar {
    grid-template-columns: 1fr;
  }

  .toolbar,
  .searchbar {
    display: grid;
    align-items: stretch;
  }

  .searchbar[data-view="employees"] {
    grid-template-columns: 1fr;
  }

  .portal-action-grid,
  .portal-module-grid,
  .portal-operation-grid,
  .portal-review-grid,
  .portal-birthday-list {
    grid-template-columns: 1fr;
  }

  .searchbar[data-view="employees"] label:has(#limitSelect) {
    max-width: none;
  }

  .workbench-loader {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .loading-state {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .loader-copy span {
    max-width: 280px;
  }

  .loader-skeleton {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .announcement-document {
    padding: 24px 18px 28px;
  }

  .announcement-document-title h1 {
    font-size: 28px;
  }

  .announcement-document-title p {
    font-size: 16px;
  }

  .announcement-document-info {
    grid-template-columns: 1fr;
  }

  .announcement-document-info div,
  .announcement-document-info div:nth-child(2),
  .announcement-document-info div:nth-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid #e5eaf2;
  }

  .announcement-document-info div:last-child {
    border-bottom: 0;
  }



  .sidebar {
    max-height: 36vh;
    padding: 8px 10px;
  }

  .tab-button {
    min-width: 104px;
    min-height: 36px;
    gap: 6px;
    padding: 0 8px;
  }

  .tab-icon {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
  }

  .tab-icon svg {
    width: 17px;
    height: 17px;
  }

  .tab-label {
    font-size: 12px;
  }

  .content {
    padding: 8px;
  }

  .topbar,
  .workbench,
  .metric,
  .dashboard-card,
  .health-card,
  .profile-section,
  .profile-note,
  .attachment-panel,
  .employee-edit-panel {
    border-radius: 8px;
  }

  .topbar {
    padding: 10px;
  }

  .module-kicker {
    font-size: 10px;
  }

  .online-checkin-hero {
    margin: -4px -2px 10px;
    border-radius: 12px;
    padding: 14px;
  }

  .online-checkin-copy strong,
  .online-checkin-location strong {
    font-size: 18px;
  }

  .online-checkin-actions {
    grid-template-columns: 1fr;
  }

  .online-checkin-button {
    width: 100%;
    min-height: 58px;
  }

  label {
    min-width: 0;
  }

  h1 {
    font-size: 21px;
  }

  .workbench-header h2 {
    font-size: 18px;
  }

  .workbench-header p {
    font-size: 12px;
  }

  .topbar-meta {
    display: grid;
    gap: 5px;
  }

  .topbar-meta span + span::before {
    display: none;
  }

  .column-chart {
    gap: 5px;
  }

  .column-item {
    min-width: 26px;
  }

  .profile-section dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .payroll-meta div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .payroll-status-banner dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .contract-info-grid,
  .contract-signatures {
    grid-template-columns: 1fr;
  }

  .metrics {
    gap: 8px;
  }

  .metric {
    min-height: auto;
    padding: 12px;
  }

  .metric strong {
    font-size: 24px;
  }

  .primary-action,
  .secondary-action,
  .table-action {
    min-width: 0;
  }

  .view-actions,
  .explanation-actions,
  .profile-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .table-action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  table {
    min-width: 680px;
  }

  th,
  td {
    padding: 9px 10px;
    font-size: 13px;
  }

  .badge {
    white-space: normal;
  }

  .account-panel,
  .notification-panel {
    position: fixed;
    top: 58px;
    right: 8px;
    left: 8px;
    width: auto;
    max-height: calc(100vh - 74px);
    overflow: auto;
  }

  .employee-profile-panel,
  .contract-print-panel,
  .payroll-panel,
  .explanation-panel {
    padding: 8px;
  }

  .profile-head,
  .explanation-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .profile-head h3,
  .explanation-head h3 {
    font-size: 17px;
  }

  .employee-edit-grid,
  .account-status-strip,
  .account-edit-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.is-mobile-desktop {
    background: #f8fafc;
  }

  body.is-mobile-desktop .app-shell {
    display: block;
    min-height: 100vh;
  }

  body.is-mobile-desktop .sidebar {
    position: static;
    z-index: 70;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid rgba(254, 215, 170, 0.86);
    background: rgba(255, 255, 255, 0.96);
    padding: 10px 12px 12px;
  }

  body.is-mobile-desktop .sidebar-status {
    display: none;
  }

  body.is-mobile-desktop .nav-tabs {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 0;
  }

  body.is-mobile-desktop .nav-section {
    display: contents;
  }

  body.is-mobile-desktop .nav-section > span {
    display: none !important;
  }

  body.is-mobile-desktop .tab-button {
    justify-content: flex-start;
    min-width: 0;
    min-height: 48px;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    gap: 5px;
    background: #ffffff;
    color: #1d4ed8;
    padding: 0 13px;
  }

  body.is-mobile-desktop .app-shell.is-sidebar-collapsed .tab-button {
    justify-content: flex-start;
    padding: 0 13px;
  }

  body.is-mobile-desktop .tab-button.is-active {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16);
  }

  body.is-mobile-desktop .tab-icon {
    display: grid;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
  }

  body.is-mobile-desktop .tab-icon svg {
    width: 18px;
    height: 18px;
  }

  body.is-mobile-desktop .tab-label {
    display: block !important;
    max-width: none;
    overflow: hidden;
    color: inherit;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.is-mobile-desktop .app-shell.is-sidebar-collapsed .brand-copy,
  body.is-mobile-desktop .app-shell.is-sidebar-collapsed .tab-label {
    display: block !important;
  }

  body.is-mobile-desktop .app-shell.is-sidebar-collapsed .nav-section > span,
  body.is-mobile-desktop .app-shell.is-sidebar-collapsed .sidebar-status {
    display: none !important;
  }

  body.is-mobile-desktop .content {
    padding: 10px 10px 112px;
  }

  body.is-mobile-desktop .status-banner {
    top: 8px;
    width: calc(100vw - 28px);
    max-height: 42vh;
    overflow: auto;
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 13px;
  }

  body.is-mobile-desktop .status-banner pre {
    max-height: 22vh;
    font-size: 10.5px;
  }

  body.is-mobile-desktop .mobile-home {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
  }

  body.is-mobile-desktop .mobile-home-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    border: 1px solid rgba(255, 237, 213, 0.72);
    border-radius: 22px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 38%),
      linear-gradient(135deg, #fb923c 0%, #f97316 44%, #c2410c 100%);
    color: #ffffff;
    padding: 18px;
    box-shadow: 0 18px 38px rgba(194, 65, 12, 0.24);
  }

  body.is-mobile-desktop .mobile-home-hero::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -42px;
    width: 132px;
    height: 132px;
    border: 26px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    pointer-events: none;
  }

  body.is-mobile-desktop .mobile-home-hero-copy,
  body.is-mobile-desktop .mobile-home-hero-side {
    position: relative;
    z-index: 1;
  }

  body.is-mobile-desktop .mobile-home-hero span {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
  }

  body.is-mobile-desktop .mobile-home-hero h2 {
    margin: 5px 0 6px;
    overflow: hidden;
    font-size: 22px;
    line-height: 1.16;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.is-mobile-desktop .mobile-home-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    line-height: 1.4;
  }

  body.is-mobile-desktop .mobile-home-hero-side {
    display: grid;
    gap: 8px;
    justify-items: end;
  }

  body.is-mobile-desktop .mobile-home-hero-side small {
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
  }

  body.is-mobile-desktop .mobile-home-primary {
    min-height: 40px;
    border: 0;
    border-radius: 13px;
    background: #ffffff;
    color: #c2410c;
    box-shadow: 0 10px 20px rgba(154, 52, 18, 0.18);
    padding: 0 13px;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
  }

  body.is-mobile-desktop .mobile-home-status {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  body.is-mobile-desktop .mobile-home-status-card {
    display: grid;
    min-width: 0;
    border: 1px solid #edf1f5;
    border-radius: 14px;
    background: #ffffff;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
    padding: 10px 11px;
  }

  body.is-mobile-desktop .mobile-home-shortcut {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
    min-height: 76px;
    border: 1px solid #edf1f5;
    border-radius: 18px;
    background: #ffffff;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
    padding: 12px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
  }

  body.is-mobile-desktop .mobile-home-status-card:active,
  body.is-mobile-desktop .mobile-home-shortcut:active,
  body.is-mobile-desktop .mobile-home-primary:active {
    transform: translateY(1px);
  }

  body.is-mobile-desktop .mobile-home-status-card span,
  body.is-mobile-desktop .mobile-home-shortcut small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
  }

  body.is-mobile-desktop .mobile-home-status-card strong {
    overflow: hidden;
    margin: 4px 0 2px;
    color: var(--ink);
    font-size: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.is-mobile-desktop .mobile-home-status-card small {
    color: #c2410c;
    font-size: 11px;
    font-weight: 800;
  }

  body.is-mobile-desktop .mobile-home-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.is-mobile-desktop .mobile-home-section-title {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    padding: 0 2px;
  }

  body.is-mobile-desktop .mobile-home-section-title strong {
    color: #172033;
    font-size: 15px;
  }

  body.is-mobile-desktop .mobile-home-section-title span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
  }

  body.is-mobile-desktop .mobile-home-shortcut > span:first-child {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 12px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 10px;
    font-weight: 900;
  }

  body.is-mobile-desktop .mobile-home-shortcut-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
  }

  body.is-mobile-desktop .mobile-home-shortcut strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.is-mobile-desktop .mobile-home-shortcut.is-primary {
    grid-column: 1 / -1;
    grid-template-columns: 46px minmax(0, 1fr);
    min-height: 82px;
    border-color: rgba(249, 115, 22, 0.3);
    background:
      linear-gradient(135deg, rgba(255, 247, 237, 0.92), #ffffff);
  }

  body.is-mobile-desktop .mobile-home-shortcut.is-primary > span:first-child {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background: #f97316;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.22);
    font-size: 11px;
  }

  body.is-mobile-desktop .mobile-home-shortcut.is-primary strong {
    font-size: 17px;
  }

  body.is-mobile-desktop .mobile-home-shortcut.is-warn > span:first-child {
    background: #fff8e6;
    color: #9a5b00;
  }

  body.is-mobile-desktop .mobile-home-shortcut.is-pay > span:first-child {
    background: #f0fdf4;
    color: #15803d;
  }

  body.is-mobile-desktop .mobile-home-shortcut.is-profile > span:first-child {
    background: #eef2ff;
    color: #4338ca;
  }

  body.is-mobile-desktop .mobile-home-shortcut.is-calm > span:first-child {
    background: #f8fafc;
    color: #475569;
  }

  body.is-mobile-desktop .mobile-bottom-nav {
    position: fixed;
    z-index: 120;
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    border: 1px solid rgba(254, 215, 170, 0.95);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
    padding: 6px;
    backdrop-filter: blur(12px);
  }

  body.is-mobile-desktop .mobile-bottom-nav-item {
    display: grid;
    gap: 4px;
    place-items: center;
    min-width: 0;
    min-height: 62px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: #667085;
    padding: 6px 2px 5px;
  }

  body.is-mobile-desktop .mobile-bottom-nav-icon {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 11px;
    background: #f8fafc;
    color: #9a3412;
  }

  body.is-mobile-desktop .mobile-bottom-nav-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  body.is-mobile-desktop .mobile-bottom-nav-item strong {
    overflow: hidden;
    max-width: 100%;
    color: inherit;
    font-size: 9.5px;
    font-weight: 850;
    line-height: 1.08;
    text-align: center;
    white-space: normal;
  }

  body.is-mobile-desktop .mobile-bottom-nav-item.is-active {
    background: #fff7ed;
    color: #c2410c;
  }

  body.is-mobile-desktop .mobile-bottom-nav-item.is-active .mobile-bottom-nav-icon {
    background: #f97316;
    color: #ffffff;
  }

  body.is-mobile-desktop .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 8px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    padding: 2px 0 0;
  }

  body.is-mobile-desktop .topbar-meta,
  body.is-mobile-desktop .system-strip {
    display: none;
  }

  body.is-mobile-desktop .topbar-brandline {
    gap: 10px;
  }

  body.is-mobile-desktop .topbar-brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 10px;
  }

  body.is-mobile-desktop .topbar-brand-copy strong {
    font-size: 18px;
  }

  body.is-mobile-desktop .topbar-brand-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.is-mobile-desktop .toolbar {
    display: none;
  }

  body.is-mobile-desktop .topbar-account-actions {
    justify-content: flex-end;
    min-width: 0;
  }

  body.is-mobile-desktop .notification-wrap {
    order: 2;
  }

  body.is-mobile-desktop .account-button {
    max-width: calc(100vw - 72px);
    min-height: 42px;
    border-color: #fed7aa;
    background: #ffffff;
    box-shadow: none;
  }

  body.is-mobile-desktop .metrics {
    display: none;
  }

  body.is-mobile-desktop .metric {
    min-height: 86px;
    padding: 11px;
  }

  body.is-mobile-desktop .metric strong {
    font-size: 22px;
  }

  body.is-mobile-desktop .workbench,
  body.is-mobile-desktop .topbar,
  body.is-mobile-desktop .metric,
  body.is-mobile-desktop .dashboard-card,
  body.is-mobile-desktop .health-card {
    border-radius: 10px;
  }

  body.is-mobile-desktop .workbench-header {
    gap: 8px;
    padding: 12px;
  }

  body.is-mobile-desktop .workbench-header h2 {
    font-size: 17px;
  }

  body.is-mobile-desktop .workbench-header p {
    font-size: 12px;
  }

  body.is-mobile-desktop .table-wrap {
    overflow-x: auto;
    border-top: 1px solid #f1f5f9;
    background: #ffffff;
  }

  body.is-mobile-desktop table {
    min-width: 620px;
    border-spacing: 0;
  }

  body.is-mobile-desktop thead th {
    background: #ffffff;
    color: #667085;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0;
    padding: 9px 8px;
    text-transform: none;
    white-space: nowrap;
  }

  body.is-mobile-desktop tbody tr {
    background: #ffffff;
  }

  body.is-mobile-desktop tbody tr:nth-child(even) {
    background: #ffffff;
  }

  body.is-mobile-desktop tbody td {
    border-top: 1px solid #f1f5f9;
    background: #ffffff;
    padding: 10px 8px;
    font-size: 12px;
    vertical-align: middle;
  }

  body.is-mobile-desktop tbody tr:hover td {
    background: #fffaf5;
  }

  body.is-mobile-desktop tbody td:first-child {
    padding-left: 12px;
  }

  body.is-mobile-desktop tbody td:last-child {
    padding-right: 12px;
  }

  body.is-mobile-desktop tr.row-warning td:first-child,
  body.is-mobile-desktop tr.row-alert td:first-child {
    box-shadow: inset 2px 0 0 #f97316;
  }

  body.is-mobile-desktop th.col-explainAction,
  body.is-mobile-desktop th.col-leaveWorkflowAction,
  body.is-mobile-desktop th.col-businessRequestAction,
  body.is-mobile-desktop th.col-vehicleBookingAction,
  body.is-mobile-desktop th.col-onlineCheckinAction,
  body.is-mobile-desktop th.col-employeeProfileAction,
  body.is-mobile-desktop th.col-reviewPriority,
  body.is-mobile-desktop th.col-status,
  body.is-mobile-desktop th.col-date,
  body.is-mobile-desktop td.col-explainAction,
  body.is-mobile-desktop td.col-leaveWorkflowAction,
  body.is-mobile-desktop td.col-businessRequestAction,
  body.is-mobile-desktop td.col-vehicleBookingAction,
  body.is-mobile-desktop td.col-onlineCheckinAction,
  body.is-mobile-desktop td.col-employeeProfileAction,
  body.is-mobile-desktop td.col-reviewPriority,
  body.is-mobile-desktop td.col-status,
  body.is-mobile-desktop td.col-date {
    width: 1%;
    white-space: nowrap;
  }

  body.is-mobile-desktop .table-action-group {
    gap: 5px;
  }

  body.is-mobile-desktop .table-action {
    min-height: 30px;
    border-color: #fed7aa;
    border-radius: 999px;
    background: #ffffff;
    color: #f97316;
    box-shadow: none;
    padding: 0 11px;
    font-size: 12px;
    font-weight: 850;
  }

  body.is-mobile-desktop .badge {
    min-height: 28px;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
  }

  body.is-mobile-desktop .badge-warn {
    background: #fff8e6;
    color: #8a5b16;
  }

  body.is-mobile-desktop .cell-date {
    display: inline-block;
    min-width: 72px;
    color: #667085;
    line-height: 1.25;
  }

  body.is-mobile-desktop .searchbar {
    display: none;
  }

  body.is-mobile-desktop .view-actions {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  body.is-mobile-desktop .view-actions::-webkit-scrollbar {
    display: none;
  }

  body.is-mobile-desktop .view-actions > * {
    flex: 0 0 auto;
  }
}

@media (max-width: 980px) {
  .payroll-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .payroll-head {
    grid-template-columns: 1fr;
  }

  .payroll-actions {
    justify-content: flex-start;
  }

  .payroll-highlights,
  .payroll-summary,
  .payroll-layout,
  .payroll-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    size: A4;
    margin: 14mm;
  }

  html,
  body {
    background: #ffffff;
    height: auto;
    overflow: visible;
  }

  body * {
    visibility: hidden !important;
  }

  body.is-printing-document > :not(#printRoot) {
    display: none !important;
  }

  body.is-printing-document #printRoot {
    display: block !important;
  }

  body.is-printing-document #printRoot,
  body.is-printing-document #printRoot * {
    visibility: visible !important;
  }

  .contract-print-panel,
  .contract-print-layout,
  .contract-print-preview,
  .print-document,
  .print-document * {
    visibility: visible !important;
  }

  .contract-print-panel {
    position: static !important;
    inset: auto !important;
    overflow: visible !important;
    background: #ffffff;
    padding: 0;
  }

  .contract-print-head,
  .contract-print-controls {
    display: none !important;
  }

  .contract-print-layout,
  .contract-print-preview {
    display: block;
    width: auto;
    margin: 0;
    border: 0;
    box-shadow: none;
    background: #ffffff;
    padding: 0;
    overflow: visible !important;
  }

  .payroll-print-document {
    display: block;
  }

  .print-document {
    position: static !important;
    inset: auto;
    width: auto;
    min-height: auto;
    margin: 0;
    box-shadow: none;
    border: 0;
    padding: 0;
  }
}

/* Keep the notification center overrides after legacy announcement board rules. */
.announcement-board {
  gap: 16px;
  padding: 18px;
  background: #f8fafc;
}

.announcement-center-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.announcement-center-head h2 {
  margin: 0;
  color: #0f1f3d;
  font-size: 26px;
  line-height: 1.15;
}

.announcement-center-head p {
  margin: 6px 0 0;
  color: #42526e;
  font-size: 13px;
  font-weight: 700;
}

.announcement-center-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.announcement-center-tabs {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  border-bottom: 1px solid #dbe5f2;
}

.announcement-center-tab {
  position: relative;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #42526e;
  padding: 0 2px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.announcement-center-tab.is-active {
  color: var(--brand) !important;
}

.announcement-center-tab.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--brand) !important;
}

.announcement-category-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.announcement-category-strip > span,
.announcement-board-filter-label {
  color: #24324a;
  font-size: 12px;
  font-weight: 950;
}

.announcement-category-strip .announcement-category-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.announcement-category-strip .announcement-category {
  display: inline-grid;
  grid-template-columns: auto auto;
  min-height: 32px;
  align-items: center;
  border: 1px solid #dbe5f2;
  border-radius: 999px;
  background: #ffffff;
  padding: 0 10px;
}

.announcement-category-strip .announcement-category-icon {
  display: none;
}

.announcement-category-strip .announcement-category small {
  border-radius: 999px;
  background: #f1f5f9;
  padding: 2px 7px;
}

.announcement-category-strip .announcement-category.is-active,
.announcement-category-strip .announcement-category:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #0b63f6;
}

.announcement-board-layout {
  grid-template-columns: minmax(360px, 0.86fr) minmax(520px, 1.14fr);
  min-height: 720px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  gap: 16px;
}

.announcement-board-list-panel,
.announcement-board-detail {
  overflow: hidden;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
}

.announcement-board-toolbar {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #edf2f7;
}

.announcement-filter-menu {
  position: relative;
}

.announcement-filter-menu > button,
.announcement-reset-filter,
.announcement-board-tune {
  min-height: 38px;
  border: 1px solid #dbe5f2;
  border-radius: 6px;
  background: #ffffff;
  color: #24324a;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

.announcement-filter-menu .announcement-category-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 6;
  display: none;
  width: 250px;
  max-height: 360px;
  overflow: auto;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.13);
}

.announcement-filter-menu:hover .announcement-category-list,
.announcement-filter-menu:focus-within .announcement-category-list {
  display: grid;
}

.announcement-board-search {
  min-height: 38px;
  margin: 0;
  border-radius: 6px;
  background: #ffffff;
}

.announcement-board-item {
  grid-template-columns: 52px minmax(0, 1fr) 8px;
  gap: 12px;
  min-height: 88px;
  border-top: 0;
  border-bottom: 1px solid #edf2f7;
  background: #ffffff;
  padding: 14px;
}

.announcement-board-item.is-active {
  background: #eff6ff;
  box-shadow: inset 3px 0 0 #0b63f6;
}

.announcement-item-icon,
.announcement-detail-main-icon {
  border-radius: 999px;
}

.announcement-item-icon {
  width: 44px;
  height: 44px;
  font-size: 21px;
}

.announcement-item-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.announcement-item-head strong {
  overflow: hidden;
  color: #17213b;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.announcement-item-head time {
  color: #42526e;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.announcement-item-tags em {
  border-radius: 4px;
  background: #eef2ff;
  color: #42526e;
  padding: 2px 6px;
  font-size: 10px;
  text-transform: none;
}

.announcement-detail-head {
  align-items: flex-start;
  padding: 26px 28px 20px;
}

.announcement-detail-titleline {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-width: 0;
}

.announcement-detail-main-icon {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  font-size: 34px;
  font-weight: 950;
}

.announcement-detail-titleline h3 {
  margin: 0 0 7px;
  color: #0f1f3d;
  font-size: 20px;
  line-height: 1.25;
}

.announcement-detail-titleline small {
  display: block;
  margin-top: 7px;
  color: #42526e;
  font-size: 12px;
  font-weight: 750;
}

.announcement-detail-tags em {
  border-radius: 5px;
  background: #eef2ff;
  color: #0b63f6;
  padding: 3px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.announcement-detail-article {
  overflow: auto;
  padding: 22px 28px;
}

.announcement-detail-info {
  grid-template-columns: 1fr;
  margin-top: 24px;
}

.announcement-detail-info > span {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  border-right: 0;
  border-bottom: 1px solid #edf2f7;
  padding: 12px 14px;
}

.announcement-detail-info small {
  color: #42526e;
  font-size: 12px;
  text-transform: none;
}

.announcement-detail-info strong {
  color: #17213b;
  font-size: 13px;
}

.announcement-detail-foot {
  align-items: center;
  padding: 16px 28px 24px;
}

.announcement-detail-foot > div {
  display: flex;
  gap: 10px;
}

@media (max-width: 1180px) {
  .announcement-board-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .announcement-center-head,
  .announcement-detail-foot {
    display: grid;
  }

  .announcement-board-toolbar,
  .announcement-detail-titleline,
  .announcement-detail-info > span {
    grid-template-columns: 1fr;
  }
}

.workflow-5w-dashboard {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.workflow-5w-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 130px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: inherit;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.workflow-5w-card:hover,
.workflow-5w-row:hover,
.workflow-catalog-ticket-row:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.08);
}

.workflow-5w-card span {
  width: max-content;
  border-radius: 999px;
  background: #eff6ff;
  color: #1455d9;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 900;
}

.workflow-5w-card small,
.workflow-5w-card em,
.workflow-5w-row small,
.workflow-catalog-ticket-row small {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.workflow-5w-card strong {
  min-width: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.workflow-5w-board,
.workflow-5w-table,
.workflow-catalog-ticket-list {
  display: grid;
  gap: 8px;
}

.workflow-5w-head,
.workflow-5w-row {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr 1.2fr 24px;
  gap: 10px;
  align-items: center;
}

.workflow-5w-head {
  padding: 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.workflow-5w-row,
.workflow-catalog-ticket-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.workflow-5w-row span,
.workflow-catalog-ticket-row span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.workflow-5w-row strong,
.workflow-catalog-ticket-row strong {
  min-width: 0;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-5w-row i,
.workflow-catalog-ticket-row i {
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
}

.workflow-catalog-user-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.workflow-catalog-user-guide article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.workflow-catalog-user-guide span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eff6ff;
  color: #1455d9;
  font-weight: 900;
}

.workflow-catalog-user-guide strong {
  color: var(--ink);
}

.workflow-catalog-user-guide small {
  grid-column: 2;
  color: var(--muted);
  line-height: 1.4;
}

.workflow-catalog-create-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.workflow-catalog-create-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.workflow-catalog-create-form .wide-field,
.workflow-catalog-create-form .workflow-instance-actions,
.workflow-catalog-check {
  grid-column: 1 / -1;
}

.workflow-catalog-create-form input,
.workflow-catalog-create-form select,
.workflow-catalog-create-form textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}

.workflow-catalog-ticket-list {
  margin-top: 12px;
}

.workflow-catalog-ticket-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) 24px;
  gap: 10px;
  align-items: center;
}

@media (max-width: 1180px) {
  .workflow-5w-dashboard,
  .workflow-catalog-user-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-5w-head {
    display: none;
  }

  .workflow-5w-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .workflow-5w-dashboard,
  .workflow-catalog-user-guide,
  .workflow-catalog-create-form,
  .workflow-catalog-ticket-row {
    grid-template-columns: 1fr;
  }
}

.workflow-catalog-modern {
  display: grid;
  gap: 18px;
  background:
    linear-gradient(180deg, #f7fbff 0%, #ffffff 42%),
    #ffffff;
  padding: 18px;
}

.workflow-catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.96)),
    #ffffff;
  padding: 22px 24px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.workflow-catalog-hero h3 {
  margin: 6px 0 4px;
  color: #0f172a;
  font-size: 27px;
  line-height: 1.15;
}

.workflow-catalog-hero p {
  margin: 0;
  max-width: 680px;
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
}

.workflow-catalog-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 10px;
}

.workflow-catalog-hero-stats article {
  min-width: 92px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  padding: 12px;
  text-align: center;
}

.workflow-catalog-hero-stats strong {
  display: block;
  color: #075985;
  font-size: 24px;
  line-height: 1;
}

.workflow-catalog-hero-stats span {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.workflow-catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.4fr);
  gap: 12px;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  padding: 12px;
}

.workflow-catalog-toolbar .workflow-employee-search {
  min-height: 46px;
  border-radius: 999px;
  background: #f8fafc;
}

.workflow-catalog-category-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.workflow-catalog-category-strip button {
  flex: 0 0 auto;
  min-height: 36px;
  border: 1px solid #dbe4ef;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 900;
}

.workflow-catalog-category-strip button:hover,
.workflow-catalog-category-strip button.is-active {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #075985;
}

.workflow-catalog-modern .workflow-library-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.workflow-catalog-modern .workflow-library-main,
.workflow-catalog-modern .workflow-library-side {
  display: grid;
  gap: 18px;
}

.workflow-catalog-modern .workflow-employee-section,
.workflow-catalog-modern .workflow-employee-panel {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045);
}

.workflow-catalog-modern .workflow-employee-section-head {
  align-items: flex-start;
  margin-bottom: 14px;
}

.workflow-catalog-modern .workflow-employee-section-head strong {
  color: #0f172a;
  font-size: 16px;
}

.workflow-catalog-modern .workflow-employee-section-head small,
.workflow-catalog-modern .workflow-employee-section-head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.workflow-catalog-modern .workflow-employee-popular {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 12px;
}

.workflow-catalog-modern .workflow-employee-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 9px;
  min-height: 206px;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 16px;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.workflow-catalog-modern .workflow-employee-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.09);
  transform: translateY(-2px);
}

.workflow-catalog-modern .workflow-employee-card .workflow-catalog-icon {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  border-radius: 13px;
}

.workflow-catalog-modern .workflow-employee-card strong {
  position: relative;
  z-index: 1;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.25;
}

.workflow-catalog-modern .workflow-employee-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.workflow-catalog-modern .workflow-employee-card button {
  position: relative;
  z-index: 1;
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  background: #0f7bdc;
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
}

.workflow-catalog-modern .workflow-catalog-directory {
  padding-bottom: 18px;
}

.workflow-catalog-modern .workflow-catalog-groups {
  gap: 14px;
}

.workflow-catalog-modern .workflow-catalog-group {
  border: 1px solid #eef2f7;
  border-radius: 12px;
  background: #fbfdff;
  padding: 12px;
}

.workflow-catalog-modern .workflow-catalog-group-head {
  padding: 0 2px 10px;
}

.workflow-catalog-modern .workflow-catalog-group-head strong {
  font-size: 14px;
}

.workflow-catalog-modern .workflow-catalog-list {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 10px;
}

.workflow-catalog-modern .workflow-catalog-card {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border-color: #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  box-shadow: none;
}

.workflow-catalog-modern .workflow-catalog-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.07);
}

.workflow-catalog-modern .workflow-catalog-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  font-size: 14px;
}

.workflow-catalog-modern .workflow-catalog-title {
  align-items: flex-start;
}

.workflow-catalog-modern .workflow-catalog-title button {
  max-width: 100%;
  color: #0f172a;
  font-size: 14px;
}

.workflow-catalog-modern .workflow-catalog-card p {
  display: -webkit-box;
  margin-top: 7px;
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.workflow-catalog-modern .workflow-catalog-meta {
  gap: 6px;
  margin-top: 10px;
}

.workflow-catalog-modern .workflow-catalog-meta span {
  min-height: 22px;
  background: #eef6ff;
  color: #475569;
  font-size: 11px;
}

.workflow-catalog-modern .workflow-catalog-actions {
  grid-column: 2;
  justify-content: flex-start;
}

.workflow-catalog-modern .workflow-catalog-actions .secondary-action,
.workflow-catalog-modern .workflow-catalog-actions .table-action {
  min-height: 32px;
  border-radius: 9px;
  font-size: 12px;
}

.workflow-catalog-modern .workflow-catalog-quick-nav {
  padding: 12px;
}

.workflow-catalog-modern .workflow-area-shortcuts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.workflow-catalog-modern .workflow-area-shortcut {
  min-height: 66px;
  border-radius: 12px;
}

.workflow-catalog-modern .workflow-library-overview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workflow-catalog-modern .workflow-library-overview-card {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px;
}

.workflow-catalog-modern .workflow-library-overview-card span {
  font-size: 12px;
  font-weight: 950;
}

.workflow-catalog-modern .workflow-library-work,
.workflow-catalog-modern .workflow-library-history {
  padding: 0;
  overflow: hidden;
}

.workflow-catalog-modern .workflow-library-work > .workflow-employee-section-head,
.workflow-catalog-modern .workflow-library-history > .workflow-employee-section-head {
  padding: 16px 16px 0;
}

.workflow-catalog-modern .workflow-library-task,
.workflow-catalog-modern .workflow-library-history-row {
  background: #ffffff;
}

@media (max-width: 1280px) {
  .workflow-catalog-modern .workflow-employee-popular,
  .workflow-catalog-modern .workflow-catalog-list {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .workflow-catalog-modern .workflow-library-grid {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
}

@media (max-width: 1080px) {
  .workflow-catalog-hero,
  .workflow-catalog-toolbar,
  .workflow-catalog-modern .workflow-library-grid {
    grid-template-columns: 1fr;
  }

  .workflow-catalog-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .workflow-catalog-modern .workflow-area-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .workflow-catalog-modern {
    padding: 12px;
  }

  .workflow-catalog-hero,
  .workflow-catalog-modern .workflow-employee-section,
  .workflow-catalog-modern .workflow-employee-panel {
    border-radius: 12px;
    padding: 14px;
  }

  .workflow-catalog-hero h3 {
    font-size: 22px;
  }

  .workflow-catalog-hero-stats,
  .workflow-catalog-modern .workflow-employee-popular,
  .workflow-catalog-modern .workflow-catalog-list,
  .workflow-catalog-modern .workflow-area-shortcuts,
  .workflow-catalog-modern .workflow-library-overview {
    grid-template-columns: 1fr;
  }
}
