:root {
  --lz-red: #c62828;
  --lz-red-soft: #fff5f5;
  --lz-border: #e8eaed;
  --lz-text: #1a1a2e;
  --lz-muted: #64748b;
  --lz-bg: #f1f4f9;
  --lz-card: #ffffff;
  --lz-radius: 12px;
  --lz-radius-sm: 8px;
  --lz-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 2px 8px rgba(15, 23, 42, 0.04);
  --sidebar-w: 280px;
  --panel-w: 300px;
  --ops-bg: #eef6fc;
  --eng-bg: #eef2ff;
  --safety-bg: #fff7ed;
  --workforce-bg: #ecfdf3;
  --accounts-bg: #f0f9ff;
  --enterprise-bg: #eef2ff;
  --admin-bg: #f1f5f9;
  --core-bg: #f5f3ff;
  --hr-bg: #fdf2f8;
  --commercial-bg: #eff6ff;
  --costing-bg: #fffbeb;
  --claims-bg: #fdf4ff;
  --projects-bg: #f0fdfa;
  --ops-accent: #0284c7;
  --eng-accent: #6366f1;
  --safety-accent: #ea580c;
  --workforce-accent: #16a34a;
  --accounts-accent: #0369a1;
  --admin-accent: #64748b;
  --core-accent: #6366f1;
  --hr-accent: #db2777;
  --commercial-accent: #2563eb;
  --costing-accent: #b45309;
  --claims-accent: #a21caf;
  --projects-accent: #0d9488;
  --enterprise-accent: #3730a3;
}
* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  margin: 0;
  background: var(--lz-bg);
  color: var(--lz-text);
  font-size: 14px;
  line-height: 1.5;
}
.hidden { display: none !important; }
html.lz-dash-dedicated-portal #appShell:not(.lz-dash-portal-ready) {
  display: none !important;
}
.dashboard-status-panel,
.hosted-error-panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--lz-bg);
}
.dashboard-status-card,
.hosted-error-card {
  background: var(--lz-card);
  border: 1px solid var(--lz-border);
  border-radius: var(--lz-radius);
  padding: 28px 24px;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--lz-shadow);
}
.dashboard-status-card h2,
.hosted-error-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--lz-red);
}
.dashboard-status-card p,
.hosted-error-card p {
  margin: 0 0 16px;
  color: var(--lz-text);
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.dashboard-status-actions,
.hosted-error-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.dashboard-status-banner {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: var(--lz-radius-sm);
  background: var(--lz-red-soft);
  color: var(--lz-text);
  font-size: 13px;
  line-height: 1.45;
}
.legacy-modules-notice {
  margin: 0 0 14px;
  padding: 8px 12px;
  border-radius: var(--lz-radius-sm);
  background: var(--lz-surface-muted, #f4f4f5);
  color: var(--lz-text-muted, #52525b);
  font-size: 12px;
  line-height: 1.4;
}
.nav-link--gas-missing {
  opacity: 0.85;
}
.gas-link-missing,
.register-backend-notice {
  display: block;
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: var(--lz-radius-sm);
  background: var(--lz-surface-muted, #f4f4f5);
  color: var(--lz-text-muted, #52525b);
  font-size: 12px;
  line-height: 1.45;
}
.register-group-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.register-group-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-size: 12px;
}
.register-group-row td {
  background: #f8fafc;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  padding-top: 14px;
}
a { color: var(--lz-red); }
.lz-brand-logo-wrap {
  display: block;
  background: transparent;
}
.lz-brand-logo {
  height: 38px;
  width: auto;
  max-width: min(220px, 100%);
  object-fit: contain;
  display: block;
  background: transparent;
  mix-blend-mode: multiply;
}
.lz-brand-logo--sidebar { margin-bottom: 2px; }
/* TODO: Replace LOGO_URL asset with transparent PNG/SVG if file still has white background. */
.lz-brand-logo--login { height: 56px; margin: 0 auto 20px; }
.lz-brand-logo-fallback {
  font-weight: 800;
  color: var(--lz-red);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.login-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  background: var(--lz-card);
  border: 1px solid var(--lz-border);
  border-radius: var(--lz-radius);
  padding: 36px 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--lz-shadow);
}
.login-card h1 { margin: 0 0 8px; font-size: 22px; color: var(--lz-red); }
.login-card p { margin: 0 0 12px; color: var(--lz-muted); font-size: 14px; }
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: var(--lz-radius-sm);
  border: 1px solid var(--lz-border);
  background: var(--lz-card);
  color: var(--lz-text);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--lz-red); color: #fff; border-color: var(--lz-red); }
.btn-block { display: block; width: 100%; margin-top: 10px; }
.app-shell { display: flex; min-height: 100vh; position: relative; }
/* Safe early shell: layout visible, no interactive nav until auth */
.app-shell.lz-boot-pending #sidebarNav,
.app-shell.lz-boot-pending #sidebarFoot a,
.app-shell.lz-boot-pending .lz-portal-launcher,
.app-shell.lz-boot-pending .lz-portal-strip,
.app-shell.lz-boot-pending .header-portal-nav,
.app-shell.lz-boot-pending #lzosUnifiedHeaderNav {
  pointer-events: none !important;
  user-select: none;
}
.app-shell.lz-boot-pending #sidebarNav a[href] {
  pointer-events: none !important;
}
.nav-link--skeleton {
  opacity: 0.55;
  cursor: default;
}
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: #fafbfc;
  border-right: 1px solid var(--lz-border);
  display: flex;
  flex-direction: column;
  padding: 20px 14px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  z-index: 120;
}
.sidebar-head {
  flex-shrink: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--lz-border);
  margin-bottom: 14px;
}
#sidebarLogo {
  width: 100%;
}
.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 14px;
  padding: 11px 12px;
  background: var(--lz-card);
  border: 1px solid var(--lz-border);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.sidebar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--lz-red-soft);
  color: var(--lz-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.sidebar-user-meta { min-width: 0; flex: 1; }
.sidebar-user-meta b {
  display: block;
  color: var(--lz-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-role {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--lz-red-soft);
  color: var(--lz-red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sidebar-email {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: var(--lz-muted);
  word-break: break-all;
  line-height: 1.35;
}
.sidebar-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  margin-right: -2px;
}
.sidebar-nav::-webkit-scrollbar { width: 5px; }
.sidebar-nav::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}
.nav-group {
  margin-bottom: 14px;
  border-radius: 10px;
  padding: 10px 8px 8px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.nav-group--ops { background: var(--ops-bg); --group-accent: var(--ops-accent); }
.nav-group--eng { background: var(--eng-bg); --group-accent: var(--eng-accent); }
.nav-group--safety { background: var(--safety-bg); --group-accent: var(--safety-accent); }
.nav-group--workforce { background: var(--workforce-bg); --group-accent: var(--workforce-accent); }
.nav-group--accounts { background: var(--accounts-bg); --group-accent: var(--accounts-accent); }
.nav-group--enterprise { background: var(--enterprise-bg); --group-accent: var(--enterprise-accent); }
.nav-group--admin { background: var(--admin-bg); --group-accent: var(--admin-accent); }
.nav-group--core { background: var(--core-bg); --group-accent: var(--core-accent); }
.nav-group--portal-back {
  margin-bottom: 10px;
  padding-bottom: 0;
  border-bottom: none;
}
.nav-group--portal-back .nav-group-body {
  gap: 0 !important;
}
.nav-group--hr { background: var(--hr-bg); --group-accent: var(--hr-accent); }
.nav-group--commercial { background: var(--commercial-bg); --group-accent: var(--commercial-accent); }
.nav-group--costing { background: var(--costing-bg); --group-accent: var(--costing-accent); }
.nav-group--claims { background: var(--claims-bg); --group-accent: var(--claims-accent); }
.nav-group--projects { background: var(--projects-bg); --group-accent: var(--projects-accent); }
.nav-group-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lz-muted);
  margin-bottom: 6px;
  padding: 0 6px 2px;
}
.nav-group-title::before {
  content: '';
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: var(--group-accent, #64748b);
  flex-shrink: 0;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--lz-radius-sm);
  color: var(--lz-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 3px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.78);
  color: var(--lz-red);
}
.nav-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.nav-link svg { flex-shrink: 0; color: #475569; stroke-width: 1.75; }
.nav-link:hover svg { color: var(--lz-red); }
.nav-empty { font-size: 12px; color: var(--lz-muted); padding: 8px 10px; }
.sidebar-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--lz-border);
  font-size: 11px;
  color: var(--lz-muted);
}
.sidebar-foot a {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.sidebar-version {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.sidebar-version-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}
.sidebar-version-value {
  font-size: 11px;
  font-weight: 700;
  color: var(--lz-text);
  font-variant-numeric: tabular-nums;
}
.sidebar-collapse-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px dashed var(--lz-border);
  border-radius: 8px;
  background: transparent;
  color: var(--lz-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.sidebar-collapse-btn:hover { background: rgba(15, 23, 42, 0.04); color: var(--lz-text); }
.sidebar-collapse-icon { font-size: 14px; line-height: 1; }
.lz-panel-toggle--legacy { display: none !important; }
.lz-quick-modules-wrap { display: none !important; }
.lz-float-sidebar-toggle {
  position: fixed;
  top: 50vh;
  left: calc(var(--sidebar-w) - 20px);
  transform: translateY(-50%);
  z-index: 1500;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 2px solid var(--lz-red);
  border-radius: 50%;
  background: #fff;
  color: var(--lz-red);
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(15, 23, 42, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: left 0.22s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.lz-float-sidebar-toggle .lz-sidebar-toggle-icon {
  display: block;
  transition: transform 0.22s ease;
}
.lz-float-sidebar-toggle.is-collapsed .lz-sidebar-toggle-icon {
  transform: rotate(180deg);
}
.lz-float-sidebar-toggle:hover {
  background: var(--lz-red);
  color: #fff;
  box-shadow: 0 4px 16px rgba(198, 40, 40, 0.28);
}
.lz-float-refbar-toggle {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 28px;
  min-height: 56px;
  border: 2px solid var(--lz-red);
  border-radius: 8px 0 0 8px;
  border-right: 0;
  padding: 8px 4px;
  background: var(--lz-red);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(198, 40, 40, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lz-float-refbar-toggle.is-collapsed { opacity: 1; }
.lz-float-refbar-toggle:hover {
  background: #b71c1c;
  border-color: #b71c1c;
  color: #fff;
}
.lz-contract-lock-banner {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: var(--lz-radius-sm);
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
}
@media (max-width: 900px) {
  .lz-float-sidebar-toggle {
    top: 50vh;
    bottom: auto;
    left: calc(var(--sidebar-w) - 20px);
    transform: translateY(-50%);
  }
  .lz-float-refbar-toggle { top: auto; bottom: 16px; transform: none; }
}
.nav-link-label { flex: 1; min-width: 0; }
.app-shell.sidebar-collapsed { --sidebar-w: 72px; }
.app-shell.sidebar-collapsed .sidebar-head h2,
.app-shell.sidebar-collapsed .sidebar-head .feed-meta,
.app-shell.sidebar-collapsed .sidebar-user-card,
.app-shell.sidebar-collapsed .nav-group-title,
.app-shell.sidebar-collapsed .nav-link-label,
.app-shell.sidebar-collapsed .sidebar-version,
.app-shell.sidebar-collapsed .sidebar-collapse-btn .nav-link-label { display: none; }
.app-shell.sidebar-collapsed .sidebar .lz-brand-title { display: none; }
.app-shell.sidebar-collapsed .sidebar .sidebar-brand-panel .lz-brand-title--digital { display: inline-flex; }
.app-shell.sidebar-collapsed .sidebar .lz-brand-title-cluster { display: none; }
.app-shell.sidebar-collapsed .sidebar { padding: 14px 8px; }
.app-shell.sidebar-collapsed .nav-link { justify-content: center; padding: 10px 8px; }
.app-shell.sidebar-collapsed .sidebar-collapse-icon { transform: rotate(180deg); display: inline-block; }
.app-shell.sidebar-collapsed .sidebar-collapse-btn { justify-content: center; padding: 8px; }
.app-shell.sidebar-collapsed .sidebar .lz-brand-logo { height: 30px; margin: 0 auto; }
.app-shell.sidebar-collapsed .sidebar .sidebar-head { padding-bottom: 10px; }
.app-shell.sidebar-collapsed .sidebar .lz-brand-home { display: flex; justify-content: center; }
.app-shell.sidebar-collapsed .sidebar .sidebar-brand-row { flex-direction: column; gap: 6px; }
.app-shell.sidebar-collapsed .sidebar .sidebar-brand-panel { display: flex; justify-content: center; }
.app-shell.sidebar-collapsed .sidebar .sidebar-brand-row--with-title { justify-content: center; }
.app-shell.sidebar-collapsed .sidebar .sidebar-brand-row--with-title > .lz-brand-home { display: none; }
.app-shell.sidebar-collapsed .sidebar .lz-brand-home .lz-brand-logo-wrap { display: none; }
.app-shell.sidebar-collapsed .sidebar .lz-brand-title-block {
  align-items: center;
  margin-left: 0;
  width: 100%;
}
.app-shell.sidebar-collapsed .sidebar .lz-brand-title-block .lz-brand-title--digital {
  border-left: none;
  padding: 4px 0 2px;
  font-size: 11px;
  letter-spacing: 0.14em;
  background: none;
}
.app-shell.sidebar-collapsed .sidebar .lz-brand-title-block .lz-brand-title--digital::before {
  display: none;
}
.app-shell.sidebar-collapsed .sidebar .lz-connection-status {
  justify-content: center;
}
.app-shell.sidebar-collapsed .sidebar .lz-connection-status-label {
  font-size: 9px;
}
.sidebar-brand-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-brand-block {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sidebar-brand-row--with-title {
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  gap: 8px;
  min-height: 44px;
}
.sidebar-brand-row--with-title .lz-brand-home {
  flex: 0 1 auto;
  min-width: 0;
  max-width: calc(100% - 112px);
}
.sidebar-brand-row--portal-stack {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 44px;
}
.sidebar-brand-row--portal-stack .lz-brand-home {
  flex: 0 0 auto;
  max-width: none;
}
.sidebar-brand-row--dash-header {
  align-items: center;
  gap: 12px;
  min-height: 0;
}
.sidebar-brand-row--dash-header .lz-brand-home {
  flex: 0 0 auto;
  max-width: none;
}
.sidebar-brand-panel--dash-header .lz-brand-title-block {
  margin-left: 10px;
  align-items: center;
}
.sidebar-brand-panel--dash-header .lz-brand-title--lzos-stack {
  padding-top: 5px;
  padding-bottom: 5px;
}
.nav-group--portal-launchers .nav-group-title,
.nav-group--portal-launchers .nav-group-title-text {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #94a3b8;
}
.nav-group--portal-launchers .nav-group-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav-link--portal.lz-portal-nav-tile {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 10px;
  padding: 8px 10px;
  margin-bottom: 0;
  border: 1px solid #e8edf2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.lz-portal-launcher-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 16px;
  line-height: 1;
}
.lz-portal-launcher-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.lz-portal-launcher-code {
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #94a3b8;
  text-transform: uppercase;
}
.lz-portal-launcher-name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lz-portal-launcher-go {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1;
}
.nav-link--portal.lz-portal-nav-tile.lz-portal-chip--safety .lz-portal-launcher-mark { background: #ecfdf5; border-color: #bbf7d0; }
.nav-link--portal.lz-portal-nav-tile.lz-portal-chip--ops .lz-portal-launcher-mark { background: #fffbeb; border-color: #fde68a; }
.nav-link--portal.lz-portal-nav-tile.lz-portal-chip--core .lz-portal-launcher-mark { background: #f8fafc; border-color: #e2e8f0; }
.nav-link--portal.lz-portal-nav-tile.lz-portal-chip--hr .lz-portal-launcher-mark { background: #fdf2f8; border-color: #fbcfe8; }
.nav-link--portal.lz-portal-nav-tile.lz-portal-chip--accounts .lz-portal-launcher-mark { background: #ecfdf5; border-color: #a7f3d0; }
.nav-link--portal.lz-portal-nav-tile.lz-portal-chip--commercial .lz-portal-launcher-mark { background: #fff7ed; border-color: #fed7aa; }
.nav-link--portal.lz-portal-nav-tile.lz-portal-chip--enterprise .lz-portal-launcher-mark { background: #f1f5f9; border-color: #cbd5e1; }
.nav-link--portal.lz-portal-nav-tile:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}
.nav-link--portal.lz-portal-nav-tile.nav-link--active {
  border-color: var(--lz-red);
  box-shadow: 0 0 0 1px rgba(198, 40, 40, 0.15);
}
.lz-portal-nav-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 4px 2px;
  border-radius: 8px;
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}
.lz-portal-nav-tile.lz-portal-chip--safety .lz-portal-nav-code { color: #0f766e; background: #ecfdf5; border-color: #bbf7d0; }
.lz-portal-nav-tile.lz-portal-chip--ops .lz-portal-nav-code { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.lz-portal-nav-tile.lz-portal-chip--core .lz-portal-nav-code { color: #475569; background: #f8fafc; border-color: #e2e8f0; }
.lz-portal-nav-tile.lz-portal-chip--hr .lz-portal-nav-code { color: #be123c; background: #fdf2f8; border-color: #fbcfe8; }
.lz-portal-nav-tile.lz-portal-chip--accounts .lz-portal-nav-code { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.lz-portal-nav-tile.lz-portal-chip--commercial .lz-portal-nav-code { color: #7c2d12; background: #fff7ed; border-color: #fed7aa; }
.lz-portal-nav-tile.lz-portal-chip--enterprise .lz-portal-nav-code { color: #334155; background: #f1f5f9; border-color: #cbd5e1; }
.lz-portal-nav-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.lz-portal-nav-body .nav-link-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lz-portal-nav-meta {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lz-portal-nav-ext {
  font-size: 12px;
  color: #94a3b8;
  opacity: 0.85;
}
.app-shell.sidebar-collapsed .nav-link--portal.lz-portal-nav-tile {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 8px 4px;
}
.app-shell.sidebar-collapsed .lz-portal-launcher-text,
.app-shell.sidebar-collapsed .lz-portal-launcher-go {
  display: none;
}
.app-shell.sidebar-collapsed .lz-portal-launcher-mark {
  width: 100%;
  height: 30px;
  font-size: 14px;
}
.app-shell.sidebar-collapsed .nav-link--portal .lz-portal-nav-body,
.app-shell.sidebar-collapsed .nav-link--portal .lz-portal-nav-ext {
  display: none;
}
.app-shell.sidebar-collapsed .lz-portal-nav-code {
  min-height: 28px;
  width: 100%;
  font-size: 9px;
}
.sidebar-brand-panel--portal .lz-brand-title-block {
  margin-left: 10px;
  align-items: center;
  width: auto;
}
.lz-brand-title-cluster {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}
.lz-brand-title-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 10px;
  flex-shrink: 0;
  gap: 3px;
  min-width: 0;
}
.lz-brand-title-cluster .lz-brand-title,
.lz-brand-title-block .lz-brand-title {
  margin-left: 0;
}
.lz-connection-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  padding: 0;
  min-height: 16px;
}
.lz-connection-status-label {
  font-size: 11px;
  font-style: italic;
  font-weight: 400;
  color: #94a3b8;
  line-height: 1;
  letter-spacing: 0.02em;
  user-select: none;
}
.lz-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #cbd5e1;
}
.lz-status-dot--active {
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  animation: lz-status-pulse 2s infinite;
}
@keyframes lz-status-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .lz-status-dot--active {
    animation: none;
  }
}
.lz-brand-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3em;
  line-height: 1;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 0;
  text-transform: uppercase;
}
.lz-brand-title--digital {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 7px 0 7px 14px;
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: #475569;
  border-left: 1px solid rgba(100, 116, 139, 0.35);
  background: linear-gradient(90deg, rgba(241, 245, 249, 0.9) 0%, transparent 100%);
  text-shadow: none;
  animation: none;
}
.lz-brand-title--digital::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 18%;
  bottom: 18%;
  width: 2px;
  border-radius: 1px;
  background: var(--lz-red);
  box-shadow: 0 0 6px rgba(198, 40, 40, 0.55);
  animation: lz-brand-digital-beam 2.6s ease-in-out infinite;
}
.lz-brand-title--digital::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 0;
  bottom: 5px;
  height: 1px;
  background: linear-gradient(90deg, rgba(198, 40, 40, 0.5) 0%, rgba(14, 165, 233, 0.35) 55%, transparent 100%);
  background-size: 200% 100%;
  animation: lz-brand-digital-scan 3.5s linear infinite;
  opacity: 0.85;
  pointer-events: none;
}
@keyframes lz-brand-digital-beam {
  0%, 100% { opacity: 0.55; box-shadow: 0 0 4px rgba(198, 40, 40, 0.35); }
  50% { opacity: 1; box-shadow: 0 0 10px rgba(198, 40, 40, 0.75); }
}
@keyframes lz-brand-digital-scan {
  0% { background-position: 100% 0; opacity: 0.35; }
  50% { opacity: 0.9; }
  100% { background-position: -100% 0; opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
  .lz-brand-title--digital::before,
  .lz-brand-title--digital::after {
    animation: none;
  }
  .lz-brand-portal-live {
    animation: none;
  }
}
.lz-brand-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.lz-brand-title-block--portal {
  margin-left: 10px;
  align-items: center;
  width: auto;
}
.lz-brand-title-block--portal .lz-brand-title {
  margin-left: 0;
}
.lz-brand-title--portal-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding-top: 7px;
  padding-bottom: 7px;
  min-width: 0;
  white-space: normal;
}
.lz-brand-portal-platform {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: #94a3b8;
  text-transform: uppercase;
  line-height: 1.15;
  user-select: none;
}
.lz-brand-portal-code-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.lz-brand-title--portal-stack .lz-brand-portal-code {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.36em;
  line-height: 1.1;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  text-shadow: none;
}
.lz-brand-platform {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: #94a3b8;
  text-transform: uppercase;
  line-height: 1;
  user-select: none;
}
.lz-brand-portal-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lz-brand-portal-code {
  font-size: 13px;
  letter-spacing: 0.36em;
  padding-top: 5px;
  padding-bottom: 5px;
}
.lz-brand-portal-live {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lz-red);
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.18), 0 0 8px rgba(198, 40, 40, 0.65);
  animation: lz-brand-active-pulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
  pointer-events: none;
  user-select: none;
}
@keyframes lz-brand-active-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1); }
}
body.lz-app--wsh .lz-brand-portal-code { color: #0f766e; }
body.lz-app--sys .lz-brand-portal-code { color: #334155; }
body.lz-app--hod .lz-brand-portal-code { color: #6d28d9; }
body.lz-app--ug .lz-brand-portal-code { color: #b45309; }
body.lz-app--ag .lz-brand-portal-code { color: #0369a1; }
body.lz-app--hr .lz-brand-portal-code { color: #be123c; }
body.lz-app--fm .lz-brand-portal-code { color: #047857; }
body.lz-app--qu .lz-brand-portal-code { color: #7c2d12; }
body.lz-app--lzos .lz-brand-lzos-code { color: #b91c1c; }
.lz-brand-title--lzos-stack .lz-brand-portal-platform {
  letter-spacing: 0.28em;
}
.lz-brand-title--lzos-only {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  padding-top: 6px;
  padding-bottom: 6px;
}
.lz-brand-title--lzos-only .lz-brand-portal-code {
  font-size: 14px;
  letter-spacing: 0.36em;
}
.app-shell.sidebar-collapsed .sidebar .lz-brand-stack {
  align-items: center;
  gap: 2px;
}
.app-shell.sidebar-collapsed .sidebar .lz-brand-title--portal-stack {
  align-items: center;
  padding-top: 5px;
  padding-bottom: 5px;
}
.app-shell.sidebar-collapsed .sidebar .sidebar-brand-row--portal-stack {
  align-items: center;
}
.app-shell.sidebar-collapsed .sidebar .lz-brand-portal-platform {
  display: none;
}
.app-shell.sidebar-collapsed .sidebar .lz-brand-platform {
  display: none;
}
.app-shell.sidebar-collapsed .sidebar .lz-brand-portal-row {
  flex-direction: column;
  gap: 4px;
}
.sidebar-brand-row--logo-only {
  justify-content: center;
}
.lz-brand-logo--compact {
  height: 36px;
  width: auto;
  max-width: 140px;
}
.login-card .sidebar-brand-row--logo-only {
  margin-bottom: 12px;
}
.login-card .lz-brand-home {
  display: inline-flex;
  justify-content: center;
}
.lz-all-apps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--lz-border);
  background: linear-gradient(145deg, #fff 0%, var(--core-bg) 100%);
  color: var(--admin-accent);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: border-color 0.15s, color 0.15s, transform 0.15s;
}
.lz-all-apps-btn:hover {
  color: var(--lz-red);
  border-color: #cbd5e1;
  transform: translateY(-1px);
}
.lz-all-apps-btn.is-active {
  color: #fff;
  background: var(--admin-accent);
  border-color: var(--admin-accent);
}
.lz-all-apps-btn.is-active svg { stroke: #fff; }
.lz-mobile-all-apps-btn { display: none; }
.lz-brand-home { display: block; text-decoration: none; flex: 1; min-width: 0; }
.sidebar-brand-row--with-title .lz-brand-home,
.sidebar-brand-row--logo-only .lz-brand-home {
  flex: 0 0 auto;
  min-width: 0;
}
.lz-header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.lz-page-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}
.lz-page-toolbar:empty { display: none; }
.lz-page-toolbar .pg-search-input { max-width: min(100%, 320px); }
.msra-pre {
  white-space: pre-wrap;
  font-size: 12px;
  background: var(--lz-surface-muted, #f8f8f8);
  padding: 8px 10px;
  border-radius: 6px;
  max-height: 320px;
  overflow: auto;
}
.msra-act-chk { display: block; margin: 6px 0; }
.msra-member-picker { max-height: 220px; overflow: auto; margin-top: 8px; }
.lz-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--lz-red-soft);
  color: var(--lz-red);
  font-weight: 700;
}
.lz-avatar--photo { object-fit: cover; background: #e2e8f0; }
.lz-avatar-md { width: 36px; height: 36px; font-size: 14px; }
.lz-avatar-xl { width: 88px; height: 88px; font-size: 28px; }
.lz-user-menu { position: relative; }
.lz-user-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 4px;
  border: 1px solid var(--lz-border);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}
.lz-user-menu-trigger:hover { border-color: #cbd5e1; background: #fafbfc; }
.lz-user-menu-chevron { font-size: 11px; color: var(--lz-muted); line-height: 1; }
.lz-user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--lz-border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  padding: 6px;
  z-index: 1200;
}
.lz-user-menu-head {
  padding: 10px 12px 8px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 4px;
}
.lz-user-menu-head strong { display: block; font-size: 14px; color: var(--lz-text); }
.lz-user-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--lz-text);
  font: inherit;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}
.lz-user-menu-item:hover { background: #f8fafc; color: var(--lz-red); }
.lz-user-menu-item--disabled { opacity: 0.45; cursor: not-allowed; }
.lz-user-menu-item--danger { color: #b91c1c; }
.lz-user-menu-divider { height: 1px; background: #f1f5f9; margin: 4px 0; }
.lz-right-panel { position: relative; }
.lz-right-panel-toggle {
  position: absolute;
  top: 10px;
  left: -14px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--lz-border);
  background: #fff;
  color: var(--lz-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--lz-shadow);
}
.lz-right-panel-toggle:hover { color: var(--lz-red); border-color: #cbd5e1; }
.app-shell.right-panel-collapsed .right-panel,
.app-shell.right-panel-collapsed .sch-board-sidebar {
  width: 0;
  min-width: 0;
  padding: 0;
  border-left: 0;
  overflow: visible;
}
.app-shell.right-panel-collapsed .right-panel .section-card,
.app-shell.right-panel-collapsed .sch-board-sidebar .section-card,
.app-shell.right-panel-collapsed .right-panel .panel-section,
.app-shell.right-panel-collapsed .sch-board-sidebar .panel-section {
  display: none;
}
.app-shell.right-panel-collapsed .lz-right-panel-toggle {
  left: auto;
  right: 8px;
  position: fixed;
  top: 72px;
}
.lz-profile-card { padding-top: 20px; }
.lz-profile-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.lz-profile-hero-meta h3 { margin: 0 0 4px; font-size: 20px; color: var(--lz-text); }
.lz-profile-tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.lz-profile-tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--lz-border);
  background: var(--lz-card);
  color: var(--lz-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.lz-profile-tab:hover { border-color: #cbd5e1; background: #f8fafc; }
.lz-profile-tab.is-active {
  border-color: var(--lz-red);
  color: var(--lz-red);
  background: #fff5f5;
}
.lz-profile-unlinked {
  padding: 10px 12px;
  border-radius: var(--lz-radius-sm);
  background: #fffbeb;
  border: 1px solid #fde68a;
}
.lz-profile-payslip-actions { white-space: nowrap; }
.lz-profile-payslip-table { margin-top: 8px; }
.lz-profile-leave-overview { margin-bottom: 16px; }
.lz-profile-leave-overview h4 { margin: 0 0 10px; font-size: 14px; }
.lz-profile-leave-submitted {
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.lz-profile-leave-form { margin-top: 16px; }
.lz-leave-plan-host { margin: 14px 0; }
.lz-leave-day-table { margin-top: 8px; }
.lz-leave-day-table .pg-search-input { min-width: 120px; padding: 4px 8px; font-size: 13px; }
.lz-leave-excluded-note { margin: 10px 0 0; font-size: 12px; color: #64748b; }
.lz-leave-total-row { margin: 12px 0 0; font-size: 15px; }
.lz-leave-type-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.lz-leave-type-label { font-size: 12px; font-weight: 600; color: var(--lz-text, #0f172a); }
.lz-leave-type-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.lz-leave-type-pill {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}
.lz-leave-type-pill:hover { border-color: #94a3b8; background: #f8fafc; }
.lz-leave-type-pill.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
  box-shadow: 0 0 0 1px #2563eb inset;
}
.lz-leave-portion-pills { display: inline-flex; gap: 4px; flex-wrap: nowrap; }
.lz-leave-portion-pill {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
}
.lz-leave-portion-pill:hover { border-color: #94a3b8; background: #f8fafc; }
.lz-leave-portion-pill.is-active {
  border-color: #2563eb;
  background: #dbeafe;
  color: #1e40af;
  font-weight: 600;
}
.form-grid-full { grid-column: 1 / -1; }
.lz-drive-note {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: var(--lz-radius-sm);
  background: #f8fafc;
  border: 1px dashed var(--lz-border);
}
.hosted-badge { display: none !important; }
.dashboard-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.main-header {
  background: var(--lz-card);
  border-bottom: 1px solid var(--lz-border);
  padding: 10px 20px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
  box-shadow: none;
}
.main-header.lz-portal-header {
  padding: 10px 20px;
  min-height: 56px;
}
.main-header.lz-portal-header .main-header-title {
  flex: 1 1 auto;
  min-width: 0;
}
.main-header.lz-portal-header .lz-header-actions {
  flex: 0 0 auto;
  margin-left: auto;
}
.main-header-title { flex: 1 1 auto; min-width: 0; }
.main-header-title h2 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.main-header-title p { margin: 4px 0 0; font-size: 12px; color: var(--lz-muted); }
.profile-block { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lz-red-soft);
  color: var(--lz-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.profile-meta .name { font-weight: 700; font-size: 14px; }
.profile-meta .email { color: var(--lz-muted); font-size: 11px; margin-top: 2px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}
.badge-tier { background: var(--lz-red-soft); color: var(--lz-red); }
.badge-dept { background: #e0f2fe; color: #0369a1; }
.hosted-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lz-muted);
  border: 1px solid var(--lz-border);
  border-radius: 999px;
  padding: 4px 10px;
  background: #f8fafc;
}
.gas-url-banner {
  background: #fffbeb;
  border-bottom: 1px solid #fcd34d;
  padding: 10px 16px;
}
.gas-url-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #92400e;
}
.gas-url-input {
  flex: 1;
  min-width: 200px;
  padding: 8px 10px;
  border: 1px solid var(--lz-border);
  border-radius: var(--lz-radius-sm);
  font-size: 12px;
}
.dashboard-grid { display: flex; flex: 1; min-height: 0; }
.main-content { flex: 1; min-width: 0; padding: 22px 24px; overflow-y: auto; }
.activity-panel {
  width: var(--panel-w);
  flex-shrink: 0;
  background: var(--lz-card);
  border-left: 1px solid var(--lz-border);
  padding: 20px 18px;
  overflow-y: auto;
}
.right-panel {
  width: var(--panel-w);
  flex-shrink: 0;
  border-left: 1px solid var(--lz-border);
  background: #fafbfc;
  padding: 16px 14px;
  overflow-y: auto;
}
.dashboard-grid--command .main-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Dashboard command centre + follow-up bar */
.dash-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.dash-kpi-link { text-decoration: none; color: inherit; }
.dash-kpi-link:hover .dash-kpi { border-color: var(--lz-red-soft); }
.dash-kpi {
  background: #f8fafc;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  padding: 12px 14px;
}
.dash-kpi strong { display: block; font-size: 22px; color: var(--lz-red); margin-top: 4px; }
.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.dash-kpi-grid--compact { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.dash-two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.dash-section-sub { margin: 0 0 8px; font-size: 12px; color: var(--lz-muted); }
.dash-view-all { margin-top: 6px; }
.skel-kpi { min-height: 64px; }

.lz-followup-panel .af-tab-row { flex-wrap: wrap; margin-bottom: 10px; }
.af-tab-count {
  display: inline-block;
  min-width: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  font-size: 10px;
  margin-left: 2px;
}
.pg-filter-btn.is-active .af-tab-count { background: rgba(255, 255, 255, 0.25); }

.af-item-list { list-style: none; margin: 0; padding: 0; }
.af-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}
.af-item:last-child { border-bottom: 0; }
.af-item-main { flex: 1; min-width: 0; }
.af-item-title { display: block; font-size: 12px; line-height: 1.35; }
.af-item-sub { display: block; margin-top: 2px; }
.af-item-meta { display: block; font-size: 10px; color: var(--lz-muted); margin-top: 4px; }
.af-module-tag { text-transform: uppercase; letter-spacing: 0.03em; color: var(--group-accent, var(--lz-muted)); }
.af-item-action { flex-shrink: 0; }
.af-priority--urgent .af-item-title { color: #b91c1c; }
.af-priority--high .af-item-title { color: #c2410c; }
.af-module-strip { margin-bottom: 12px; }
.af-module-followup { margin-bottom: 12px; }
.af-panel-head { position: sticky; top: 0; z-index: 1; }

.panel-section { margin-bottom: 12px; }
.panel-section .panel-title { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--lz-text); }
.ops-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ops-stat { background: #fafbfc; border: 1px solid var(--lz-border); border-radius: var(--lz-radius-sm); padding: 12px; text-align: center; }
.ops-value { display: block; font-size: 22px; font-weight: 800; color: var(--lz-red); }
.ops-label { display: block; font-size: 11px; color: var(--lz-muted); margin-top: 4px; }
.intel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.intel-card { background: #fafbfc; border: 1px solid var(--lz-border); border-radius: var(--lz-radius-sm); padding: 10px; }
.intel-value { display: block; font-size: 18px; font-weight: 800; color: var(--lz-text); }
.intel-label { display: block; font-size: 11px; color: var(--lz-muted); }
.login-error { color: var(--lz-red); font-size: 13px; white-space: pre-wrap; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th, .data-table td { border-bottom: 1px solid var(--lz-border); padding: 8px 10px; text-align: left; }
.data-table th { background: #fafbfc; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 12px; }
.form-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; }
.form-grid input, .form-grid textarea { padding: 8px 10px; border: 1px solid var(--lz-border); border-radius: var(--lz-radius-sm); font: inherit; }
.form-grid select { padding: 8px 10px; border: 1px solid var(--lz-border); border-radius: var(--lz-radius-sm); font: inherit; background: #fff; }
.form-field-span-all { grid-column: 1 / -1; }
.form-actions-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.form-label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.checkbox-row { flex-direction: row !important; align-items: center; gap: 8px !important; }
.form-grid label.gps-switch-row,
.gps-switch-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  user-select: none;
}
.gps-switch-label { font-size: 13px; font-weight: 600; color: #0f172a; }
.gps-switch {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 24px;
}
.gps-switch-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0 !important;
  border: none !important;
}
.gps-switch-track {
  display: block;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  transition: background 0.2s;
}
.gps-switch-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}
.gps-switch-input:checked + .gps-switch-track {
  background: #16a34a;
}
.gps-switch-input:checked + .gps-switch-track::after {
  transform: translateX(20px);
}
.gps-switch-input:focus-visible + .gps-switch-track {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}
.pg-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.pg-filter-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-filter-btn {
  padding: 6px 12px;
  border: 1px solid var(--lz-border);
  border-radius: 999px;
  background: var(--lz-card);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--lz-text);
}
.pg-filter-btn.is-active {
  background: var(--lz-red);
  border-color: var(--lz-red);
  color: #fff;
}
.pg-search-input {
  flex: 1;
  min-width: 200px;
  max-width: 360px;
  padding: 8px 12px;
  border: 1px solid var(--lz-border);
  border-radius: var(--lz-radius-sm);
  font: inherit;
}
.pg-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.pg-status--NEW { background: #dbeafe; color: #1d4ed8; }
.pg-status--ACTIVE { background: #dcfce7; color: #15803d; }
.pg-status--COMPLETED { background: #e0e7ff; color: #4338ca; }
.pg-status--SUPERSEDED { background: #f3f4f6; color: #6b7280; }
.pg-status--CANCELLED { background: #fee2e2; color: #b91c1c; }
.pg-status--CONTRACT_PENDING { background: #fef3c7; color: #b45309; }
.pg-status--REVIEW_REQUIRED { background: #ffedd5; color: #c2410c; }
.pg-status--INVOICE_SENT { background: #e0f2fe; color: #0369a1; }
.pg-status--READY_FOR_INVOICE { background: #fef3c7; color: #b45309; }
.pg-status--PC_APPROVED { background: #dcfce7; color: #15803d; }
.pg-status--PC_SUBMITTED,
.pg-status--PC_RECEIVED { background: #e0e7ff; color: #4338ca; }
.pg-status--PC_REJECTED,
.pg-status--VWD_REJECTED { background: #fee2e2; color: #b91c1c; }
.pg-status--VWD_APPROVED { background: #dcfce7; color: #166534; }
.pg-status--VWD_SUBMITTED { background: #ffedd5; color: #c2410c; }
.pg-status--WORK_COMPLETED { background: #e0e7ff; color: #4338ca; }
.pg-status--PAID,
.pg-status--CLOSED { background: #f1f5f9; color: #475569; }
.pg-wo-detail-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}
.pg-wo-status-bubble {
  font-size: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.pg-wo-cleanup-zone {
  border: 1px dashed #fca5a5;
  background: #fff7f7;
}
.pg-wo-cleanup-zone h4 { color: #991b1b; }
.pg-wo-cleanup-zone .pg-wo-cleanup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.pg-wo-cleanup-zone .pg-wo-cleanup-row .feed-meta {
  flex: 1;
  min-width: 180px;
  margin: 0;
}
.pg-tab-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pg-tab-btn {
  border: 1px solid var(--lz-border, #ddd);
  background: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
}
.pg-tab-btn.is-active {
  background: var(--lz-red, #c62828);
  border-color: var(--lz-red, #c62828);
  color: #fff;
}
.pg-dashboard-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}
.pg-dashboard-filters label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #555;
}
.pg-dashboard-filters select,
.pg-dashboard-filters input[type="text"],
.pg-dashboard-filters input[type="date"] {
  min-width: 140px;
  padding: 6px 8px;
  border: 1px solid var(--lz-border, #ddd);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 400;
}
.pg-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.pg-kpi-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--lz-border, #ddd);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pg-kpi-card[data-dash-stage="NEW_WO"] {
  background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #93c5fd;
}
.pg-kpi-card[data-dash-stage="VWD_PENDING"] {
  background: linear-gradient(145deg, #fefce8 0%, #fef08a 100%);
  border-color: #facc15;
}
.pg-kpi-card[data-dash-stage="VWD_APPROVED"] {
  background: linear-gradient(145deg, #ecfdf5 0%, #bbf7d0 100%);
  border-color: #6ee7b7;
}
.pg-kpi-card[data-dash-stage="PC_PENDING"] {
  background: linear-gradient(145deg, #fff7ed 0%, #fed7aa 100%);
  border-color: #fdba74;
}
.pg-kpi-card[data-dash-stage="READY_FOR_INVOICE"] {
  background: linear-gradient(145deg, #f5f3ff 0%, #ddd6fe 100%);
  border-color: #c4b5fd;
}
.pg-kpi-card[data-dash-stage="INVOICED"] {
  background: linear-gradient(145deg, #ecfeff 0%, #a5f3fc 100%);
  border-color: #67e8f9;
}
.pg-kpi-card[data-dash-stage="COMPLETED"] {
  background: linear-gradient(145deg, #f0fdf4 0%, #86efac 100%);
  border-color: #4ade80;
}
.pg-kpi-card--alert {
  background: linear-gradient(145deg, #fef2f2 0%, #fecaca 100%);
  border-color: #f87171;
}
.pg-kpi-card--warn {
  background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 100%);
  border-color: #fb923c;
}
.pg-kpi-card:hover,
.pg-kpi-card.is-active {
  border-color: var(--lz-red, #c62828);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.pg-kpi-label { font-size: 12px; color: #666; font-weight: 600; }
.pg-kpi-value { font-size: 28px; font-weight: 700; color: var(--lz-red, #c62828); line-height: 1.1; }
.pg-kpi-card[data-dash-stage="NEW_WO"] .pg-kpi-value { color: #1d4ed8; }
.pg-kpi-card[data-dash-stage="VWD_PENDING"] .pg-kpi-value { color: #a16207; }
.pg-kpi-card[data-dash-stage="VWD_APPROVED"] .pg-kpi-value { color: #047857; }
.pg-kpi-card[data-dash-stage="PC_PENDING"] .pg-kpi-value { color: #c2410c; }
.pg-kpi-card[data-dash-stage="READY_FOR_INVOICE"] .pg-kpi-value { color: #6d28d9; }
.pg-kpi-card[data-dash-stage="INVOICED"] .pg-kpi-value { color: #0e7490; }
.pg-kpi-card[data-dash-stage="COMPLETED"] .pg-kpi-value { color: #15803d; }
.pg-kpi-amt {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.3;
  margin-top: 2px;
}
.pg-kpi-card--alert .pg-kpi-value { color: #c62828; }
.pg-kpi-card--warn .pg-kpi-value { color: #e65100; }
.pg-dash-section-title { margin: 0 0 4px; font-size: 15px; }
.pg-dash-overview { margin-bottom: 12px; }
.pg-dash-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.pg-dash-stat {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.pg-dash-stats-bar .pg-dash-stat:nth-child(1) { background: #eff6ff; border-color: #93c5fd; }
.pg-dash-stats-bar .pg-dash-stat:nth-child(2) { background: #f5f3ff; border-color: #c4b5fd; }
.pg-dash-stats-bar .pg-dash-stat:nth-child(3) { background: #fff7ed; border-color: #fdba74; }
.pg-dash-stats-bar .pg-dash-stat:nth-child(4) { background: #ecfdf5; border-color: #6ee7b7; }
.pg-dash-card--pipeline {
  background: linear-gradient(160deg, #fafafa 0%, #f1f5f9 100%);
  border-color: #cbd5e1;
}
.pg-dash-stat--wide { grid-column: span 2; }
@media (max-width: 640px) {
  .pg-dash-stat--wide { grid-column: span 1; }
}
.pg-dash-stat-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.pg-dash-stat-value {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}
.pg-dash-stat-value--text {
  font-size: 13px;
  font-weight: 500;
  color: #334155;
}
.pg-dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.pg-dash-col-main { grid-column: 1 / -1; }
.pg-dash-card {
  border-width: 1px;
  border-style: solid;
}
.pg-dash-card--attention {
  background: linear-gradient(160deg, #fff7ed 0%, #ffedd5 100%);
  border-color: #fdba74;
}
.pg-dash-card--activity {
  background: linear-gradient(160deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #93c5fd;
}
.pg-dash-card--contract {
  background: linear-gradient(160deg, #f5f3ff 0%, #ede9fe 100%);
  border-color: #c4b5fd;
}
.pg-dash-card--scan {
  background: linear-gradient(160deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #6ee7b7;
}
.pg-wo-page-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.pg-wo-page-size-label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pg-wo-page-size-select {
  min-width: 4.5rem;
  padding: 4px 8px;
  border: 1px solid var(--lz-border, #ddd);
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
}
.pg-wo-page-label { min-width: 4.5rem; text-align: center; }
.pg-wo-list-row { cursor: pointer; }
.pg-wo-list-row:hover { background: #f8fafc; }
.pg-list-doc-btns { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.pg-list-doc-btns .pg-btn-view-ses { border-color: #0f766e; color: #0f766e; }
.pg-wo-open-link {
  color: inherit;
  text-decoration: none;
}
.pg-wo-open-link:hover {
  color: var(--lz-red, #c62828);
  text-decoration: underline;
}
@media (max-width: 900px) {
  .pg-dash-grid { grid-template-columns: 1fr; }
  .pg-dash-col-main { grid-column: auto; }
}
.pg-dash-attention-list,
.pg-dash-activity-feed,
.pg-dash-contract-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.pg-dash-attention-item,
.pg-dash-activity-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 13px;
}
.pg-dash-attention-item--bad { border-color: #fecaca; background: #fef2f2; }
.pg-dash-attention-item--warn { border-color: #fed7aa; background: #fff7ed; }
.pg-dash-attention-item--info { border-color: #bfdbfe; background: #eff6ff; }
.pg-dash-attention-main { flex: 1; min-width: 180px; }
.pg-dash-attention-main strong { font-weight: 600; }
.pg-dash-attention-meta { font-size: 12px; color: #64748b; margin-top: 2px; }
.pg-dash-activity-item time {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  min-width: 110px;
}
.pg-dash-activity-body { flex: 1; min-width: 0; }
.pg-dash-activity-subject {
  font-size: 12px;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.pg-dash-event-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #475569;
}
.pg-dash-event-pill--ok { background: #dcfce7; color: #166534; }
.pg-dash-event-pill--bad { background: #fee2e2; color: #991b1b; }
.pg-dash-event-pill--neutral { background: #e0e7ff; color: #3730a3; }
.pg-dash-contract-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 8px 12px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 12px;
}
.pg-dash-contract-code { font-weight: 700; color: #0f172a; }
.pg-dash-contract-bar {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: #e2e8f0;
  min-width: 80px;
}
.pg-dash-contract-bar span { height: 100%; min-width: 2px; }
.pg-dash-contract-bar .seg-new { background: #94a3b8; }
.pg-dash-contract-bar .seg-vwd { background: #3b82f6; }
.pg-dash-contract-bar .seg-pc { background: #8b5cf6; }
.pg-dash-contract-bar .seg-ready { background: #22c55e; }
.pg-dash-contract-bar .seg-invoiced { background: #0ea5e9; }
.pg-dash-contract-bar .seg-done { background: #64748b; }
.pg-dash-contract-total { font-weight: 600; color: #334155; white-space: nowrap; }
.pg-dash-scan-info {
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
}
.pg-dash-scan-info dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
}
.pg-dash-scan-info dt { font-weight: 600; color: #64748b; font-size: 12px; }
.pg-dash-scan-info dd { margin: 0; }
.pg-dash-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.pg-dash-link-btn { margin-top: 10px; }
.pg-dash-footer { margin-top: 12px; }
.pg-dash-pipeline-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 13px;
  color: #1e40af;
}
.pg-wo-workplan-section {
  margin: 12px 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.pg-wo-workplan-section h4 { margin: 0 0 6px; font-size: 14px; }
.pg-wo-vendor-assign-section {
  margin: 12px 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.pg-wo-vendor-assign-section h4 { margin: 0 0 6px; font-size: 14px; }
.pg-vendor-assign-list { display: grid; gap: 6px; margin: 8px 0; max-height: 220px; overflow-y: auto; }
.pg-vendor-assign-list .pg-toggle-row { gap: 12px; }
.pg-wo-sibling-table tbody tr.pg-wo-sibling-row { cursor: pointer; }
.pg-wo-sibling-table tbody tr.pg-wo-sibling--active {
  background: rgba(219, 234, 254, 0.55);
  outline: 2px solid #93c5fd;
}
.wp-linked-wo-table tbody tr.wp-linked-wo-row { cursor: pointer; }
.wp-linked-wo-table tbody tr.wp-linked-wo--active {
  background: rgba(219, 234, 254, 0.55);
}
.pg-ingest-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 12px; }
.pg-ingest-toolbar label { font-size: 12px; display: flex; flex-direction: column; gap: 4px; }
.pg-review-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 12px; }
.pg-limitation { background: #fff8e1; border: 1px solid #ffe082; border-radius: 8px; padding: 10px 12px; font-size: 12px; margin-bottom: 12px; }
.pg-email-integration h3 { margin-top: 0; }
.pg-email-config { display: grid; gap: 12px; margin-bottom: 20px; max-width: 520px; }
.pg-config-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pg-config-row--stack { flex-direction: column; align-items: flex-start; }
.pg-config-label { font-size: 12px; font-weight: 600; color: #555; min-width: 120px; }
.pg-mailbox-chip {
  display: inline-block;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-family: ui-monospace, monospace;
}
.pg-contract-map { list-style: none; margin: 4px 0 0; padding: 0; }
.pg-contract-map li {
  font-size: 13px;
  font-family: ui-monospace, monospace;
  padding: 4px 0;
  color: #333;
}
.pg-scan-row { margin-top: 4px; }
.pg-recent-emails h4 { margin: 0 0 8px; font-size: 14px; }
.pg-recent-divider { border-top: 1px solid var(--lz-border, #ddd); margin-bottom: 12px; }
.pg-recent-list { display: flex; flex-direction: column; gap: 10px; }
.pg-recent-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
}
.pg-recent-icon { font-weight: 700; width: 16px; text-align: center; flex-shrink: 0; }
.pg-recent-item--ok .pg-recent-icon { color: #2e7d32; }
.pg-recent-item--bad .pg-recent-icon { color: #c62828; }
.pg-recent-item--neutral .pg-recent-icon { color: #757575; }
.pg-recent-label { font-weight: 500; min-width: 110px; }
.pg-recent-wo { color: #555; font-family: ui-monospace, monospace; font-size: 13px; }
.pg-recent-meta { font-size: 11px; color: #888; margin-left: auto; }

.pg-pipeline-legend {
  display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600;
  color: #555; margin-bottom: 12px;
}
.pg-pipe-arrow { color: #999; }
.pg-claim-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.pg-claim-card {
  border: 1px solid var(--lz-border, #ddd); border-radius: 10px; padding: 14px; background: #fff;
}
.pg-claim-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.pg-claim-pipeline { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.pg-stage { display: flex; flex-direction: column; gap: 4px; min-width: 72px; }
.pg-stage-name { font-size: 11px; font-weight: 700; color: #888; text-transform: uppercase; }
.pg-stage-pill {
  display: inline-block; font-size: 12px; padding: 3px 8px; border-radius: 999px;
  background: #f3f4f6; color: #555;
}
.pg-stage-pill--ok { background: #dcfce7; color: #15803d; }
.pg-stage-pill--bad { background: #fee2e2; color: #b91c1c; }
.pg-stage-pill--active { background: #dbeafe; color: #1d4ed8; }
.pg-reject-count { font-size: 12px; color: #b91c1c; margin-bottom: 8px; }

.pg-email-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.pg-email-card {
  border: 1px solid var(--lz-border, #ddd); border-radius: 10px; padding: 14px; background: #fff;
}
.pg-email-card--ok { border-left: 4px solid #2e7d32; }
.pg-email-card--bad { border-left: 4px solid #c62828; }
.pg-email-card--neutral { border-left: 4px solid #9e9e9e; }
.pg-email-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.pg-email-card-icon { font-weight: 700; font-size: 16px; }
.pg-email-card-wo { margin-left: auto; font-family: ui-monospace, monospace; font-size: 13px; color: #555; }
.pg-email-card-meta { font-size: 12px; color: #444; display: grid; gap: 4px; margin-bottom: 10px; }
.pg-meta-label { font-weight: 600; color: #777; }
.pg-email-card-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-email-queue-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pg-email-sync-banner {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.pg-email-sync-banner.hidden { display: none; }
.pg-email-sync-banner--error { background: #ffebee; border-color: #ef9a9a; }
.pg-email-sync-banner--ok { background: #ecfdf5; border-color: #6ee7b7; color: #065f46; }
.pg-queue-actions { white-space: normal; min-width: 280px; }
.pg-queue-actions .btn { margin: 2px 2px 2px 0; }
.pg-queue-card {
  border: 1px solid var(--lz-border, #e2e8f0);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #fff;
}
.pg-queue-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.pg-queue-card-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 8px 0; font-size: 12px; }
.pg-queue-card-meta dt { font-weight: 600; color: var(--lz-muted, #64748b); }
.pg-queue-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pg-queue-status--error { color: #b91c1c; font-weight: 600; }
.pg-queue-status--ok { color: #047857; font-weight: 600; }
.pg-email-sync-banner__text { flex: 1; min-width: 200px; }
.pg-email-sync-banner__code { font-size: 11px; color: #777; font-family: ui-monospace, monospace; }

.pg-dragon-poll-monitor {
  margin: 8px 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.pg-dragon-poll-stats {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  margin: 8px 0 0;
  font-size: 13px;
}
.pg-dragon-poll-stats dt {
  font-weight: 600;
  color: #64748b;
  margin: 0;
}
.pg-dragon-poll-stats dd {
  margin: 0;
  color: #0f172a;
}

.pg-outstanding-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: 999px;
  background: #c62828;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}
.pg-outstanding-badge.hidden { display: none !important; }
.pg-tab-btn .pg-outstanding-badge { margin-left: 8px; }
.nav-link .pg-nav-outstanding-badge {
  margin-left: auto;
  flex-shrink: 0;
}
.hod-dash-card__title .pg-app-outstanding-badge {
  margin-left: 8px;
  vertical-align: middle;
}
.pg-settings-block {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}
.pg-settings-block h4 {
  margin: 0 0 6px;
  font-size: 14px;
}
.pg-notif-settings {
  max-width: 640px;
}
.pg-notif-channel {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e8ecf1;
}
.pg-notif-channel:first-of-type {
  border-top: none;
  padding-top: 8px;
}
.pg-notif-channel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.pg-notif-channel h4 {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}
.pg-notif-channel .feed-meta {
  margin: 0;
}
.pg-toggle-compact {
  flex: 0 0 auto;
  gap: 8px;
  min-width: 64px;
}
.pg-notif-field {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.pg-notif-field input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #cbd5e1;
  border-radius: 0;
  background: transparent;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: #0f172a;
}
.pg-notif-field input:focus {
  outline: none;
  border-bottom-color: #2563eb;
}
.pg-notif-policy {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
}
.pg-ingestion-pager {
  margin-top: 12px;
  align-items: center;
  gap: 12px;
}
.pg-route-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #334155;
}
.pg-route-badge.is-review { background: #eff6ff; color: #1d4ed8; }
.pg-route-badge.is-status { background: #ecfdf5; color: #047857; }
.pg-route-badge.is-import { background: #f5f3ff; color: #6d28d9; }
.pg-route-badge.is-ignore { background: #f8fafc; color: #64748b; }
.pg-route-badge.is-error { background: #fef2f2; color: #b91c1c; }
.pg-diagnostics {
  margin-top: 12px;
  font-size: 13px;
  color: #64748b;
}
.pg-diagnostics summary {
  cursor: pointer;
  font-weight: 600;
  color: #475569;
}

.pg-drawer { position: fixed; inset: 0; z-index: 2000; }
.pg-drawer.hidden { display: none; }
.pg-drawer-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.pg-drawer-panel {
  position: absolute; top: 0; right: 0; width: min(480px, 100%); height: 100%;
  background: #fff; padding: 20px; overflow-y: auto; box-shadow: -4px 0 24px rgba(0,0,0,.12);
}
.pg-drawer-panel--fullscreen {
  inset: 0; width: 100%; max-width: none; height: 100%;
  display: flex; flex-direction: column; padding: 0;
  box-shadow: none;
}
.pg-drawer-toolbar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid #e5e7eb; background: #fff;
  position: sticky; top: 0; z-index: 2;
}
.pg-drawer-toolbar h3 { margin: 0; flex: 1; min-width: 160px; font-size: 1.1rem; }
.pg-drawer-body {
  flex: 1; display: grid; grid-template-columns: 58% 42%;
  gap: 0; min-height: 0; overflow: hidden;
  position: relative;
}
.pg-drawer-col-pdf {
  border-right: 1px solid #e5e7eb; padding: 16px;
  overflow-y: auto; min-height: 0; background: #f8f9fa;
}
.pg-drawer-col-details {
  padding: 16px; overflow-y: auto; min-height: 0;
}
.pg-drawer-pdf-frame {
  width: 100%; min-height: 70vh; height: calc(100vh - 140px);
  border: 1px solid #e5e7eb; border-radius: 8px; background: #fff;
}
.pg-drawer-pdf-viewer { min-height: 70vh; }
.pg-pdf-sign-editor { display: flex; flex-direction: column; gap: 8px; }
.pg-pdf-sign-toolbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.pg-pdf-sign-page-label { font-size: 12px; color: #475569; min-width: 88px; text-align: center; }
.pg-pdf-sign-hint { flex: 1; min-width: 160px; }
.pg-pdf-sign-stage {
  overflow: auto; max-height: calc(100vh - 200px);
  background: #525659; border-radius: 8px; padding: 12px;
}
.pg-pdf-sign-page-wrap {
  position: relative; margin: 0 auto; background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.pg-pdf-sign-canvas { display: block; }
.pg-pdf-sign-overlay {
  position: absolute; border: 2px dashed #2563eb; cursor: move;
  box-sizing: border-box; touch-action: none; z-index: 2;
  overflow: visible;
}
.pg-pdf-sign-overlay--hidden { display: none; }
.pg-pdf-sign-overlay--placeholder {
  background: rgba(37, 99, 235, 0.12);
  min-height: 56px;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35);
}
.pg-pdf-sign-overlay--placeholder .pg-pdf-sign-overlay-img { opacity: 0; }
.pg-pdf-sign-overlay-label { display: none !important; }
.pg-pdf-sign-date {
  position: absolute;
  left: calc(100% + 6px);
  right: auto;
  bottom: 8px;
  top: auto;
  max-width: none;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  font-size: 11px;
  font-weight: 600;
  color: #0f172a;
  font-family: Helvetica, Arial, sans-serif;
  pointer-events: none;
  line-height: 1.15;
  background: transparent;
  padding: 0;
  z-index: 3;
}
.pg-pdf-sign-date.hidden { display: none !important; }
.pg-pdf-sign-overlay-img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  max-width: calc(100% - 6px);
  max-height: calc(100% - 6px);
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
}
.pg-pdf-sign-resize {
  position: absolute; right: -5px; bottom: -5px; width: 12px; height: 12px;
  background: #2563eb; border-radius: 2px; cursor: se-resize;
}
.pg-drawer-footer { padding: 8px 16px 16px; border-top: 1px solid #e5e7eb; }
.pg-conf-donut {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; vertical-align: middle;
  background: conic-gradient(currentColor calc(var(--pg-conf-pct, 0) * 1%), #e8e8e8 0);
  cursor: help; flex-shrink: 0;
}
.pg-conf-donut-inner {
  width: 26px; height: 26px; border-radius: 50%; background: #fff;
  font-size: 9px; font-weight: 600; line-height: 1;
  display: flex; align-items: center; justify-content: center; color: #333;
}
.pg-conf-green { color: #2e7d32; }
.pg-conf-amber { color: #f9a825; }
.pg-conf-red { color: #c62828; }
.pg-conf-grey { color: #9e9e9e; --pg-conf-pct: 0; }
.pg-field-readonly { background: #f5f5f5; }
.pg-edit-btn { margin-left: 6px; border: none; background: none; cursor: pointer; font-size: 14px; }
.pg-cell-subject { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-cell-stage { max-width: 160px; font-size: 13px; font-weight: 600; }
.pg-cell-datetime { white-space: nowrap; font-size: 12px; }
.pg-drawer.is-loading .pg-drawer-toolbar .btn:not(#btnPgCloseEmailDrawer) {
  opacity: 0.55;
  pointer-events: none;
}
.pg-drawer-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.88);
  text-align: center;
  padding: 24px;
}
.pg-drawer-loading-overlay.hidden { display: none; }
.pg-drawer-loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #dbeafe;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: pg-drawer-spin 0.75s linear infinite;
}
.pg-drawer-loading-message {
  margin: 0;
  color: #1e40af;
  font-size: 14px;
  font-weight: 500;
}
@keyframes pg-drawer-spin { to { transform: rotate(360deg); } }
.pg-queue-actions .btn.is-busy { min-width: 5.5rem; }
.pg-drawer-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}
.pg-drawer-summary-grid .pg-sum-cell {
  padding: 6px 8px; border-radius: 6px; background: #f8fafc;
}
.pg-drawer-summary-grid dt {
  margin: 0; font-size: 10px; font-weight: 600; color: #64748b;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.pg-drawer-summary-grid dd {
  margin: 2px 0 0; font-size: 13px; font-weight: 500; word-break: break-word;
}
.pg-drawer-summary-grid .pg-sum-wide { grid-column: span 3; }
.pg-drawer-summary-grid .pg-sum-edit {
  margin-left: 4px; border: none; background: none; cursor: pointer; font-size: 12px; color: #64748b;
}
.pg-pdf-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 16px; text-align: center;
}
.pg-pdf-card .pg-pdf-name { font-size: 13px; font-weight: 600; margin: 8px 0; word-break: break-all; }
.pg-sor-quick-add {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px;
}
.pg-sor-quick-add input { max-width: 140px; }
.pg-sor-total-bar {
  display: flex; flex-wrap: wrap; gap: 12px 20px; font-size: 13px;
  padding: 8px 10px; background: #f8fafc; border-radius: 6px; margin-bottom: 8px;
}
.pg-drawer-extra { display: block; margin: 12px 0; font-size: 13px; }
.pg-drawer-extra select, .pg-drawer-extra textarea { width: 100%; margin-top: 4px; }
.pg-drawer-contract-row {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px; margin: 0 0 8px;
}
.pg-drawer-contract-row dt {
  margin: 0; font-size: 10px; font-weight: 600; color: #64748b;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.pg-drawer-contract-row dd {
  margin: 2px 0 0; font-size: 13px; font-weight: 500; word-break: break-word;
}
.pg-drawer-contract-card .pg-drawer-extra { margin-bottom: 0; }
.pg-drawer-card {
  margin-bottom: 12px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid transparent; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.pg-drawer-card:last-child { margin-bottom: 0; }
.pg-drawer-card > h4,
.pg-drawer-card > .pg-drawer-card-title {
  margin: 0 0 10px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: #475569;
}
.pg-drawer-card--pdf { background: transparent; border: none; box-shadow: none; padding: 0; margin: 0; }
.pg-drawer-card--pdf > h4 { color: #1e40af; }
.pg-drawer-card--extracted { background: #fff; border-color: #bfdbfe; }
.pg-drawer-card--extracted > h4 { color: #1d4ed8; }
.pg-drawer-card--contract { background: #fffbeb; border-color: #fcd34d; }
.pg-drawer-card--contract > h4 { color: #b45309; }
.pg-drawer-card--sor { background: #ecfdf5; border-color: #6ee7b7; }
.pg-drawer-card--sor > h4 { color: #047857; }
.pg-drawer-card--email { background: #f5f3ff; border-color: #c4b5fd; }
.pg-drawer-card--email > h4 { color: #6d28d9; }
.pg-drawer-contract-card {
  margin: 0; padding: 0; background: transparent; border: none; border-radius: 0;
}
.pg-sor-legend {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin: 0 0 8px; font-size: 11px; color: #64748b;
}
.pg-src-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 4px; font-size: 10px; font-weight: 700;
  margin-right: 6px; vertical-align: middle; line-height: 1;
}
.pg-src-badge--manual { background: #dbeafe; color: #1d4ed8; border: 1px solid #93c5fd; }
.pg-src-badge--auto { background: #d1fae5; color: #047857; border: 1px solid #6ee7b7; }
.pg-src-badge--pdf { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.pg-src-badge--dr { background: #ede9fe; color: #5b21b6; border: 1px solid #c4b5fd; }
.pg-wo-claims-guide { margin: 8px 0 12px; padding: 12px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; }
.pg-wo-claims-save-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0 12px; padding: 8px 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; }
.pg-wo-claims-dirty { color: #b45309; font-weight: 600; font-size: 13px; }
.pg-wo-claims-quick-add { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; align-items: center; }
.pg-wo-claims-qty { width: 88px; min-width: 72px; }
.pg-sor-table tbody tr.pg-sor-row--manual { background: rgba(219, 234, 254, 0.35); }
.pg-sor-table tbody tr.pg-sor-row--auto { background: rgba(209, 250, 229, 0.28); }
.pg-sor-table .pg-num { text-align: right; white-space: nowrap; }
.pg-sor-table thead th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; color: #64748b; }
embed.pg-drawer-pdf-embed { display: block; width: 100%; min-height: 70vh; height: calc(100vh - 140px); }
object.pg-drawer-pdf-object { display: block; }
.pg-drawer-pdf-placeholder { min-height: 200px; display: flex; align-items: center; justify-content: center; }
#pgEmailMismatchWarn.pg-email-sync-banner {
  margin: 8px 0 0; padding: 8px 10px; border-radius: 6px;
  background: #fef3c7; border: 1px solid #fcd34d; color: #92400e; font-size: 12px;
}
/* PowerGas WO + Review — calm indigo accent (avoid brand-red primary chrome). */
body[data-lz-module="powergaswo"],
body[data-lz-module="powergasreview"] {
  --lz-pg-accent: #4338ca;
  --lz-pg-accent-hover: #3730a3;
  --lz-pg-accent-soft: #eef2ff;
  --lz-pg-accent-border: #a5b4fc;
  --lz-pg-accent-text: #312e81;
}
body[data-lz-module="powergaswo"] .btn-primary,
body[data-lz-module="powergasreview"] .btn-primary {
  background: var(--lz-pg-accent);
  border-color: var(--lz-pg-accent);
  color: #fff;
}
body[data-lz-module="powergaswo"] .btn-primary:hover,
body[data-lz-module="powergasreview"] .btn-primary:hover {
  background: var(--lz-pg-accent-hover);
  border-color: var(--lz-pg-accent-hover);
}
body[data-lz-module="powergaswo"] .pg-tab-btn.is-active,
body[data-lz-module="powergasreview"] .pg-tab-btn.is-active {
  background: var(--lz-pg-accent);
  border-color: var(--lz-pg-accent);
  color: #fff;
}
body[data-lz-module="powergaswo"] .pg-filter-btn.is-active,
body[data-lz-module="powergasreview"] .pg-filter-btn.is-active {
  background: var(--lz-pg-accent-soft);
  border-color: var(--lz-pg-accent-border);
  color: var(--lz-pg-accent-text);
}
body[data-lz-module="powergaswo"] .pg-wo-view-switch .btn.is-active,
body[data-lz-module="powergasreview"] .pg-wo-view-switch .btn.is-active {
  background: var(--lz-pg-accent-soft);
  border-color: var(--lz-pg-accent-border);
  color: var(--lz-pg-accent-text);
}
body[data-lz-module="powergaswo"] .pg-outstanding-badge,
body[data-lz-module="powergasreview"] .pg-outstanding-badge,
body[data-lz-module="powergaswo"] .pg-nav-outstanding-badge,
body[data-lz-module="powergasreview"] .pg-nav-outstanding-badge,
body[data-lz-module="powergaswo"] .pg-app-outstanding-badge,
body[data-lz-module="powergasreview"] .pg-app-outstanding-badge {
  background: var(--lz-pg-accent);
}
body[data-lz-module="powergaswo"] .pg-kpi-card:hover,
body[data-lz-module="powergaswo"] .pg-kpi-card.is-active,
body[data-lz-module="powergasreview"] .pg-kpi-card:hover,
body[data-lz-module="powergasreview"] .pg-kpi-card.is-active {
  border-color: var(--lz-pg-accent-border);
  box-shadow: 0 2px 8px rgba(67, 56, 202, 0.12);
}
body[data-lz-module="powergaswo"] .pg-wo-open-link:hover,
body[data-lz-module="powergasreview"] .pg-wo-open-link:hover {
  color: var(--lz-pg-accent);
}
body[data-lz-module="powergaswo"] .pg-wo-hub-card--claim {
  background: #f5f3ff;
  border-color: #c4b5fd;
}
body[data-lz-module="powergaswo"] .pg-wo-hub-card--claim > h4 {
  color: #6d28d9;
}
body[data-pg-module="review"] .pg-drawer-toolbar {
  border-bottom-color: #e2e8f0;
  background: linear-gradient(90deg, #ffffff 0%, #f8fafc 100%);
}
body[data-pg-module="review"] .pg-drawer-col-pdf {
  border-right-color: #bfdbfe;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
}
body[data-pg-module="review"] .pg-drawer-col-details {
  padding: 12px;
  background: #f1f5f9;
}
body[data-pg-module="review"] #pgPanelDashboard,
body[data-pg-module="review"] #pgPanelWorkorders,
body[data-pg-module="review"] [data-pg-tab="dashboard"],
body[data-pg-module="review"] [data-pg-tab="workorders"] {
  display: none !important;
}
@media (max-width: 900px) {
  .pg-drawer-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-drawer-summary-grid .pg-sum-wide { grid-column: span 2; }
}
@media (max-width: 900px) {
  .pg-drawer-body { grid-template-columns: 1fr; }
  .pg-drawer-col-pdf { border-right: none; border-bottom: 1px solid #e5e7eb; }
  .pg-drawer-pdf-frame { min-height: 50vh; height: 50vh; }
}
.pg-email-preview {
  background: #f8f9fa; border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 12px; font-size: 12px; white-space: pre-wrap; max-height: 240px; overflow: auto;
}
.pg-rejection-remarks {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 12px;
}
.pg-rejection-remarks h5 { margin: 0 0 6px; font-size: 13px; }
.pg-rejection-list { margin: 0; padding-left: 18px; }
.pg-rejection-list li { margin: 4px 0; }
.pg-workplan-picker { position: relative; display: block; }
.pg-workplan-picker-label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}
.pg-sor-check-guide {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 8px 10px;
  color: #92400e;
}
.wp-link-wo-bar,
.pg-wo-wp-assign {
  position: relative;
  margin: 10px 0 14px;
  max-width: 520px;
}
.wp-link-wo-bar .pg-search-input,
.pg-wo-wp-assign .pg-search-input {
  width: 100%;
}
.pg-wo-wp-assign label { display: block; margin-bottom: 4px; }
.pg-workplan-dropdown {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  max-height: 220px;
  overflow: auto;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  margin-top: 4px;
}
.pg-workplan-option {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  font-size: 12px;
  cursor: pointer;
}
.pg-workplan-option:hover { background: #f1f5f9; }
.pg-workplan-option--empty { padding: 8px 10px; color: #64748b; font-size: 12px; }
.pg-workplan-option--suggested { font-weight: 600; background: #fffbeb; }
.pg-workplan-suggest {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 0 0 8px;
  font-size: 12px;
}
.pg-pdf-zone-hint { margin-top: 8px; font-size: 11px; color: #64748b; }
.pg-drawer-actions { display: flex; gap: 8px; margin-top: 12px; }
.pg-sor-head-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 8px;
}
.pg-sor-head-row h4 { margin: 0; }
.pg-sor-match {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.pg-sor-match--ok { background: #dcfce7; color: #166534; }
.pg-sor-match--warn { background: #fef9c3; color: #854d0e; }
.pg-sor-match--bad { background: #fee2e2; color: #991b1b; }
.pg-refresh-svc-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.pg-th-sort {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.pg-th-sort:hover { background: #f1f5f9; }
.pg-th-sort.is-sorted { background: #e8f0fe; }
.pg-th-sort.is-filtered { box-shadow: inset 0 -2px 0 #2563eb; }
.pg-wo-cancel {
  min-width: 28px;
  padding: 2px 8px;
  font-size: 1.1rem;
  line-height: 1;
  color: #b91c1c;
  border-color: #fecaca;
}
.pg-wo-cancel:hover { background: #fef2f2; }
.pg-wo-row-actions { white-space: nowrap; }
.pg-timeline { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.pg-timeline-item { display: flex; gap: 10px; align-items: flex-start; }
.pg-timeline-icon { font-weight: 700; width: 18px; }
.pg-timeline-item--ok .pg-timeline-icon { color: #2e7d32; }
.pg-timeline-item--bad .pg-timeline-icon { color: #c62828; }
.pg-timeline-comment { font-size: 12px; color: #555; margin-top: 4px; font-style: italic; }
.pg-settings-form { display: grid; gap: 12px; max-width: 420px; margin-bottom: 12px; }
.pg-toggle-row { display: flex; align-items: center; justify-content: space-between; }
.pg-wo-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.pg-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px 16px;
  margin: 12px 0;
}
.pg-detail-grid dt { font-size: 11px; color: var(--lz-muted); font-weight: 600; margin: 0; }
.pg-detail-grid dd { margin: 0 0 8px; font-size: 13px; }
.pg-placeholder-card {
  border: 1px dashed var(--lz-border);
  background: #fafbfc;
  border-radius: var(--lz-radius-sm);
  padding: 14px 16px;
}
.data-table tbody tr.pg-row-clickable { cursor: pointer; }
.data-table tbody tr.pg-row-clickable:hover { background: #f8fafc; }
.pg-officer-contracts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  max-width: 220px;
}
.pg-officer-contract-opt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--lz-text, #0f172a);
  white-space: nowrap;
}
.pg-officer-dept-select {
  min-width: 110px;
  max-width: 140px;
}
.pg-officer-create-contracts {
  max-width: none;
  margin-top: 4px;
}
.sch-page-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
body[data-lz-module="scheduler"] .sch-scheduler-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 16px 20px 20px;
  overflow: hidden;
}
body[data-lz-module="scheduler"] .sch-scheduler-shell > .perm-tab-nav {
  flex-shrink: 0;
  margin: 0 0 16px;
}
body[data-lz-module="scheduler"] .sch-scheduler-board-layout {
  flex: 1;
  min-height: 0;
}
body[data-lz-module="scheduler"] .sch-scheduler-board-layout > .sch-board-main {
  padding: 0;
}
body[data-lz-module="scheduler"] .sch-scheduler-board-layout--teams > .sch-board-main {
  flex: 1;
  min-width: 0;
}
.sch-board-layout {
  display: flex;
  flex: 1;
  min-height: 0;
  gap: 0;
  overflow: hidden;
}
.sch-board-main {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 16px 20px;
}
.sch-board-sidebar {
  width: 280px;
  flex-shrink: 0;
  border-left: 1px solid var(--lz-border);
  background: #fafbfc;
  overflow-y: auto;
  padding: 14px 12px;
}
.sch-board-sidebar .section-card { padding: 12px 14px; margin-bottom: 12px; }
.sch-toolbar-card {
  margin-bottom: 12px;
  background: linear-gradient(160deg, #f8fafc 0%, #e2e8f0 100%);
  border-color: #cbd5e1;
}
.sch-sidebar-card--workers {
  background: linear-gradient(160deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #93c5fd;
}
.sch-sidebar-card--movement {
  background: linear-gradient(160deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #6ee7b7;
}
.sch-date-label { display: flex; align-items: center; gap: 8px; }
.sch-team-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  align-items: start;
}
.sch-board-table-host { margin-bottom: 16px; }
.sch-board-table-wrap { overflow-x: auto; }
.sch-board-table tbody tr.sch-board-row { cursor: pointer; }
.sch-board-table tbody tr.sch-board-row:hover { background: #f8fafc; }
.sch-board-table tbody tr.sch-board-row.is-selected { background: #eff6ff; box-shadow: inset 3px 0 0 var(--lz-red); }
.sch-board-table tbody tr.sch-board-row--empty { background: #fafbfc; color: var(--lz-muted); }
.sch-board-table tbody tr.sch-board-row--empty:hover { background: #f1f5f9; }
.sch-board-team-cell {
  vertical-align: middle;
  min-width: 7.5rem;
  background: #f8fafc;
  border-right: 1px solid var(--lz-border);
}
.sch-board-team-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.sch-board-team-code {
  display: inline;
  font-size: 12px;
  font-weight: 700;
  color: var(--lz-text);
}
.sch-board-team-dept {
  font-size: 10px;
  font-weight: 700;
  color: var(--lz-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.sch-board-team-cell .sch-add-job {
  margin: 0 0 0 auto;
  flex-shrink: 0;
}
.sch-board-empty-job { font-style: italic; }
.sch-board-section-row td {
  background: #f1f5f9;
  font-size: 12px;
  padding: 10px 12px;
  border-top: 2px solid var(--lz-border);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sch-board-section-row--ug td {
  background: linear-gradient(90deg, #e0f2fe 0%, #f0f9ff 100%);
  color: #0369a1;
  border-top-color: #7dd3fc;
}
.sch-board-section-row--ag td {
  background: linear-gradient(90deg, #ecfdf5 0%, #f0fdf4 100%);
  color: #047857;
  border-top-color: #6ee7b7;
}
.sch-board-section-row--other td {
  background: #f8fafc;
  color: #475569;
}
.sch-board-section-meta {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  margin-left: 2px;
}
.sch-board-team-sub {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #fff7ed;
  color: #c2410c;
}
.sch-board-table .sch-add-job { vertical-align: middle; }
.sch-wo-filter { display: flex; flex-direction: column; gap: 6px; }
.sch-wo-select {
  width: 100%;
  min-height: 9rem;
  font-size: 13px;
}
.sch-team-card {
  background: var(--lz-card);
  border: 1px solid var(--lz-border);
  border-radius: var(--lz-radius);
  padding: 12px 14px;
  box-shadow: var(--lz-shadow);
}
.sch-team-card:nth-child(4n+1) { background: linear-gradient(160deg, #eff6ff 0%, #f8fafc 100%); border-color: #93c5fd; }
.sch-team-card:nth-child(4n+2) { background: linear-gradient(160deg, #ecfdf5 0%, #f8fafc 100%); border-color: #6ee7b7; }
.sch-team-card:nth-child(4n+3) { background: linear-gradient(160deg, #fff7ed 0%, #f8fafc 100%); border-color: #fdba74; }
.sch-team-card:nth-child(4n+4) { background: linear-gradient(160deg, #f5f3ff 0%, #f8fafc 100%); border-color: #c4b5fd; }
.sch-team-card--temp { border-style: dashed; border-color: #94a3b8; }
.sch-team-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.sch-team-card-head h4 { margin: 0; font-size: 14px; color: var(--lz-text); }
.sch-team-card-meta { font-size: 11px; color: var(--lz-muted); margin-top: 2px; }
.sch-job-list { list-style: none; margin: 0; padding: 0; }
.sch-job-item {
  border: 1px solid var(--lz-border);
  border-radius: var(--lz-radius-sm);
  padding: 8px 10px;
  margin-bottom: 8px;
  background: #fafbfc;
  cursor: pointer;
}
.sch-job-item:nth-child(4n+1) { background: #eff6ff; border-color: #bfdbfe; }
.sch-job-item:nth-child(4n+2) { background: #ecfdf5; border-color: #a7f3d0; }
.sch-job-item:nth-child(4n+3) { background: #fff7ed; border-color: #fed7aa; }
.sch-job-item:nth-child(4n+4) { background: #f5f3ff; border-color: #ddd6fe; }
.sch-job-item:hover { background: #f1f5f9; }
.sch-job-item.is-selected { border-color: var(--lz-red); box-shadow: 0 0 0 1px var(--lz-red-soft); }
.sch-job-time { font-weight: 700; font-size: 12px; color: var(--lz-red); }
.sch-job-wo { font-size: 12px; margin-top: 2px; font-weight: 600; }
.sch-job-contract { font-size: 12px; margin-top: 2px; }
.sch-job-loc { font-size: 12px; margin-top: 2px; color: var(--lz-text); }
.sch-job-type { font-size: 11px; color: var(--lz-muted); margin-top: 2px; }
.sch-job-empty { font-size: 12px; color: var(--lz-muted); margin: 0 0 8px; }
.sch-shift-row { display: flex; align-items: center; gap: 12px; margin: 12px 0; flex-wrap: wrap; }
.sch-sidebar-hint { margin: 0 0 8px; }
.sch-worker-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--lz-border);
}
.sch-movement-item { padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.sch-movement-item:last-child { border-bottom: 0; }
.lz-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lz-leave-apply-modal .section-head-row h4 { margin: 0; }
.lz-leave-apply-modal .lz-leave-plan-host { margin-top: 12px; }
.lz-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.lz-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: var(--lz-card);
  border: 1px solid var(--lz-border);
  border-radius: var(--lz-radius);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  padding: 18px 20px;
}
body.lz-modal-open { overflow: hidden; }
body.lz-modal-open .lz-float-sidebar-toggle,
body.lz-modal-open .lz-float-refbar-toggle {
  display: none !important;
}
.sch-job-modal .section-head-row h3 { margin: 0; font-size: 16px; color: var(--lz-text); text-transform: none; letter-spacing: 0; }
.sch-job-modal .section-head-row { margin-bottom: 14px; }
.sch-job-modal #btnSchCloseJob { font-size: 20px; line-height: 1; padding: 4px 10px; }
.sch-planner-modal { width: min(860px, 100%); max-height: 92vh; overflow-y: auto; }
.sch-contract-picker {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px;
}
.sch-contract-btn {
  border: 1px solid #cbd5e1; background: #fff; border-radius: 8px;
  padding: 8px 12px; cursor: pointer; font-size: 13px; text-align: left;
  min-width: 88px;
}
.sch-contract-btn strong { display: block; font-size: 14px; color: var(--lz-red); }
.sch-contract-btn span { color: var(--lz-muted); font-size: 11px; }
.sch-contract-btn.is-active {
  border-color: var(--lz-red); background: #fff5f5; box-shadow: 0 0 0 1px var(--lz-red-soft);
}
.sch-empty-hint {
  margin: 0 0 10px; padding: 10px 12px; background: #f8fafc; border-radius: 8px;
  border: 1px dashed #cbd5e1;
}
.sch-wo-panel { margin-top: 4px; }
.sch-wo-card-list {
  display: flex; flex-direction: column; gap: 6px;
  max-height: 220px; overflow-y: auto; margin-top: 6px;
  border: 1px solid #e2e8f0; border-radius: 8px; padding: 6px; background: #f8fafc;
}
.sch-wo-card {
  display: block; width: 100%; text-align: left; border: 1px solid #e2e8f0;
  background: #fff; border-radius: 8px; padding: 8px 10px; cursor: pointer;
  font-size: 13px;
}
.sch-wo-card:hover { border-color: #93c5fd; background: #eff6ff; }
.sch-wo-card.is-active {
  border-color: var(--lz-red); background: #fff5f5; box-shadow: 0 0 0 1px var(--lz-red-soft);
}
.sch-wo-card-num { font-weight: 700; color: #1e40af; }
.sch-wo-card-desc { color: var(--lz-text); margin-top: 2px; }
.sch-wo-card-meta { font-size: 11px; color: var(--lz-muted); margin-top: 2px; }
.sch-wo-detail-card {
  margin-top: 10px; padding: 12px; border-radius: 8px;
  background: #eff6ff; border: 1px solid #bfdbfe;
}
.sch-wo-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 0 0 10px;
}
.sch-wo-detail-grid dt { font-size: 10px; text-transform: uppercase; color: var(--lz-muted); margin: 0; }
.sch-wo-detail-grid dd { margin: 2px 0 0; font-size: 13px; font-weight: 500; }
.sch-additional-loc { display: block; font-size: 13px; }
.sch-additional-loc input { width: 100%; margin-top: 4px; }
.sch-type-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.sch-type-pill {
  border: 1px solid #cbd5e1; background: #fff; border-radius: 999px;
  padding: 6px 12px; font-size: 12px; cursor: pointer;
}
.sch-type-pill.is-active {
  border-color: #2563eb; background: #dbeafe; color: #1e40af; font-weight: 600;
}
.sch-type-other { display: block; margin-top: 8px; font-size: 13px; }
.sch-type-other input { width: 100%; margin-top: 4px; }
.sch-personnel-table { font-size: 13px; margin: 0; }
.sch-personnel-table tr.sch-personnel-supervisor td { background: #fffbeb; }
.sch-personnel-editor {
  padding: 10px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc;
}
.sch-personnel-editor-hint { margin: 0 0 8px; }
.sch-personnel-search-label {
  display: block; margin-bottom: 8px; font-size: 13px;
}
.sch-personnel-search-label .pg-search-input { width: 100%; margin-top: 4px; }
.sch-member-checks {
  display: flex; flex-direction: column; gap: 2px;
  max-height: 260px; overflow-y: auto; margin-bottom: 10px;
  border: 1px solid #e2e8f0; border-radius: 6px; background: #fff;
}
.sch-member-check {
  display: grid;
  grid-template-columns: 28px 22px minmax(64px, 88px) 1fr;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  margin: 0;
}
.sch-member-check:last-child { border-bottom: 0; }
.sch-member-check:hover { background: #f8fafc; }
.sch-member-check.is-supervisor { background: #fffbeb; }
.sch-member-check input[type="checkbox"] { margin: 0; cursor: pointer; }
.sch-member-star {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 16px;
  line-height: 1;
  color: #cbd5e1;
  cursor: pointer;
}
.sch-member-star.is-active { color: #d97706; }
.sch-member-star:hover { color: #f59e0b; }
.sch-member-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--lz-muted);
}
.sch-member-name { font-weight: 600; color: var(--lz-text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sch-member-empty { padding: 12px 8px; font-size: 13px; color: var(--lz-muted); }
.sch-planner-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.sch-planner-head h3 { margin: 0; font-size: 17px; color: var(--lz-red); text-transform: none; letter-spacing: 0; }
.sch-planner-section { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid #f1f5f9; }
.sch-planner-section:last-of-type { border-bottom: 0; }
.sch-planner-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.sch-planner-label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--lz-muted); margin-bottom: 6px; }
.sch-planner-hint { margin: 0 0 8px; }
.sch-supervisor-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sch-supervisor-name { margin: 4px 0 0; font-size: 15px; font-weight: 600; color: var(--lz-text); }
.sch-time-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }
.sch-time-pill {
  border: 1px solid var(--lz-border);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--lz-text);
}
.sch-time-pill:hover { border-color: var(--lz-red); color: var(--lz-red); }
.sch-time-pill--accent { border-color: var(--lz-red-soft); background: var(--lz-red-soft); }
.sch-time-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sch-time-select { font-size: 15px; font-weight: 600; padding: 8px 10px; }
.sch-member-select { width: 100%; min-height: 110px; }
.sch-multi-day-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.sch-multi-day-row {
  display: grid;
  grid-template-columns: 72px 120px 1fr 1fr 1fr 1.2fr;
  gap: 8px;
  align-items: end;
  padding: 10px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.sch-multi-day-row--skipped {
  opacity: 0.45;
  background: #f1f5f9;
}
.sch-md-include-wrap { font-size: 11px; align-self: center; }
.sch-type-nature-label { margin: 6px 0; font-size: 14px; }
.sch-type-nature-fixed .sch-type-nature-label { color: var(--lz-navy, #1e3a5f); }
.sch-multi-day-label strong { display: block; font-size: 13px; }
.sch-multi-day-row label { font-size: 11px; }
.sch-multi-day-row select, .sch-multi-day-row input { width: 100%; font-size: 12px; }
.wf-photo-ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--lz-red-soft);
  color: var(--lz-red);
  font-size: 11px;
  font-weight: 700;
  margin-right: 6px;
  vertical-align: middle;
}
.wf-salary-lock, .wf-salary-restricted {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 12px 14px;
}
@media (max-width: 640px) {
  .sch-multi-day-row { grid-template-columns: 1fr; }
}
.wf-page-body { display: flex; flex-direction: column; min-height: 0; }
.wf-team-card { cursor: pointer; }
.wf-team-card--inactive { opacity: 0.65; border-style: dashed; }
.wf-team-card--store { border-color: #94a3b8; background: #f8fafc; }
.wf-team-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin-top: 8px;
}
.wf-team-stat strong { display: block; font-size: 13px; margin-top: 2px; }
.wf-check-label { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.wf-team-modal { width: min(820px, 100%); }
.wf-team-modal h4 { margin: 16px 0 8px; font-size: 14px; color: var(--lz-text); }
.wf-members-section { border-top: 1px solid var(--lz-border); margin-top: 16px; padding-top: 8px; }
.wf-member-toolbar { margin-top: 10px; }
.wf-capacity-item { padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.wf-capacity-item:last-child { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.data-table th,
.data-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--lz-border);
  text-align: left;
}
.data-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lz-muted);
}
.section-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.btn-sm { padding: 6px 10px; font-size: 12px; }
.feed-list.compact li { padding: 6px 0; }
.section-card {
  background: var(--lz-card);
  border: 1px solid var(--lz-border);
  border-radius: var(--lz-radius);
  padding: 18px 20px;
  box-shadow: var(--lz-shadow);
  margin-bottom: 16px;
}
.section-card h3 {
  margin: 0 0 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lz-muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-card h3 .section-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--lz-red-soft);
  color: var(--lz-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.panel-title {
  margin: 0 0 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lz-muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.action-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.action-group {
  border: 1px solid var(--lz-border);
  border-radius: var(--lz-radius-sm);
  padding: 12px 14px;
  background: #fafbfc;
}
.action-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
}
.action-count {
  background: var(--lz-red-soft);
  color: var(--lz-red);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  min-width: 22px;
  text-align: center;
}
.action-count.zero { background: #f1f5f9; color: var(--lz-muted); }
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.quick-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--lz-border);
  border-radius: var(--lz-radius-sm);
  background: #fafbfc;
  color: var(--lz-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.quick-link:hover {
  border-color: #fecaca;
  background: var(--lz-red-soft);
  color: var(--lz-red);
}
.feed-list { margin: 0; padding: 0; list-style: none; }
.feed-list li { padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: 12px; line-height: 1.45; }
.feed-list li:last-child { border-bottom: none; }
.feed-meta { color: var(--lz-muted); font-size: 11px; margin-top: 3px; }
.feed-action { font-weight: 600; color: var(--lz-text); }
.feed-empty { color: var(--lz-muted); font-size: 12px; margin: 0; }
.text-link { color: var(--lz-red); font-size: 12px; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.skel { background: #e2e8f0; border-radius: 6px; animation: skel-pulse 1.4s ease-in-out infinite; }
@keyframes skel-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.skel-block { height: 48px; }
.skel-line { height: 10px; margin-bottom: 8px; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.settings-card {
  border: 1px solid var(--lz-border);
  border-radius: var(--lz-radius-sm);
  padding: 14px;
  background: #fafbfc;
}
.settings-card h4 { margin: 0 0 6px; color: var(--lz-red); font-size: 14px; }
.settings-card p { margin: 0 0 10px; font-size: 12px; color: var(--lz-muted); }

/* Management Settings — admin control centre cards */
.mgmt-settings-main { display: flex; flex-direction: column; gap: 14px; }
.mgmt-settings-intro { margin-bottom: 0; }
.mgmt-settings-quicklinks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mgmt-section-head { margin-bottom: 12px; }
.mgmt-section-head h3 { margin: 0 0 4px; }
.mgmt-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.mgmt-card {
  border: 1px solid var(--lz-border);
  border-radius: var(--lz-radius-sm);
  padding: 14px;
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mgmt-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.mgmt-card-head h4 { margin: 0; color: var(--lz-red); font-size: 14px; flex: 1; }
.mgmt-card-desc { margin: 0; font-size: 12px; color: var(--lz-muted); line-height: 1.45; }
.mgmt-card-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mgmt-action--soon {
  font-size: 11px;
  color: var(--lz-muted);
  background: #eef1f4;
  border-radius: 6px;
  padding: 6px 10px;
}
.mgmt-card-meta {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  font-size: 11px;
}
.mgmt-card-meta dt { color: var(--lz-muted); font-weight: 600; }
.mgmt-card-meta dd { margin: 0; color: #334155; }
.mgmt-card-status { margin: 0; min-height: 1.2em; font-size: 11px; }
.mgmt-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.mgmt-badge--idle { background: #e2e8f0; color: #475569; }
.mgmt-badge--ok { background: #dcfce7; color: #166534; }
.mgmt-badge--busy { background: #fef3c7; color: #92400e; }

/* WorkPlan module */
.wp-toolbar { flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.wp-list-table tbody tr.wp-row { cursor: pointer; }
.wp-list-table tbody tr.wp-row:hover { background: #f8fafc; }
.wp-row--active { background: #fff5f5 !important; }
.wp-row--archived { opacity: 0.72; }
.wp-tag-archived {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 4px;
}
.wp-id-running { font-weight: 500; color: #64748b; font-size: 12px; }
.wp-id-legacy { display: block; font-size: 11px; color: #64748b; margin-top: 2px; }
.wp-id-legacy code, code.wp-id-legacy { font-size: 11px; font-family: ui-monospace, monospace; }
.wp-list-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.wp-list-compact-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wp-list-pager {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.wp-list-hint { margin: 0 0 10px; }
.wp-add-wo-panel {
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.wp-add-wo-panel h4 { margin: 0 0 8px; font-size: 14px; }
.wp-tba-wo-table { margin-top: 8px; }
.wp-list-toolbar-row { margin-bottom: 8px; }
.wp-page--detail-open .wp-detail-card { margin-top: 10px; }
.wp-page--list-collapsed .wp-detail-card { margin-top: 0; }
.wp-detail-head-actions { display: flex; gap: 6px; align-items: center; }
.wp-admin-section {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
}
.wp-admin-section h4 { margin: 0 0 6px; font-size: 13px; color: #475569; }
.wp-admin-toggle { font-size: 12px; align-self: center; }
.wp-btn-danger {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fff;
}
.wp-btn-danger:hover { background: #fef2f2; }
.wp-legacy-note { margin: 0 0 10px; }
.wp-status {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
}
.wp-status--active { background: #dcfce7; color: #166534; }
.wp-status--completed { background: #dbeafe; color: #1e40af; }
.wp-status--on-hold { background: #fef3c7; color: #92400e; }
.wp-status--draft { background: #f1f5f9; color: #64748b; }
.wp-status--planned { background: #e0e7ff; color: #3730a3; }
.wp-status--cancelled { background: #fee2e2; color: #991b1b; }
.wp-detail-card { margin-top: 12px; }
.wp-detail-tabs { margin: 12px 0; }
.wp-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.wp-detail-span { grid-column: 1 / -1; }
.wp-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.wp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wp-form-span { grid-column: 1 / -1; }
.wp-link-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.wp-link-dl dt { font-size: 11px; color: var(--lz-muted); font-weight: 600; }
.wp-link-dl dd { margin: 0; }
@media (max-width: 768px) {
  .wp-form-grid, .wp-link-dl { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) { .action-groups { grid-template-columns: 1fr; } }
@media (max-width: 960px) {
  .dashboard-grid { flex-direction: column; }
  .activity-panel, .right-panel { width: 100%; border-left: none; border-top: 1px solid var(--lz-border); }
}
@media (min-width: 1025px) {
  .app-shell .sidebar {
    display: flex !important;
    flex-direction: column;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    bottom: auto !important;
    width: var(--sidebar-w) !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-shadow: none;
    z-index: auto;
  }
  .app-shell.mobile-nav-mode .sidebar {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  .lz-mobile-nav-menu-btn,
  .lz-mobile-header-brand,
  body.lz-portal-compact-header .lz-mobile-nav-menu-btn,
  body.lz-portal-compact-header .lz-mobile-header-brand {
    display: none !important;
  }
  body.lz-portal-compact-header .main-header:not(.lz-dash-header) .main-header-title {
    display: block !important;
  }
  .lz-dash-zone--nav-cluster { display: flex !important; }
  .lz-dash-zone--menu { display: none !important; }
  .lz-mobile-nav-backdrop { display: none !important; }
}
@media (max-width: 1024px) {
  body.lz-portal-compact-header .main-header:not(.lz-dash-header) .lz-top-header-brand,
  .app-shell.mobile-nav-mode .main-header:not(.lz-dash-header) .lz-top-header-brand {
    display: none !important;
  }
  .app-shell.mobile-nav-mode {
    flex-direction: column;
  }
  .app-shell.mobile-nav-mode .sidebar {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }
  .app-shell.mobile-nav-mode .dashboard-body,
  .app-shell.mobile-nav-mode .biz-page-body {
    flex: 1;
    width: 100%;
    min-width: 0;
  }
  .app-shell.mobile-nav-mode .lz-float-sidebar-toggle {
    display: none !important;
  }
  .app-shell.mobile-nav-mode .lz-quick-modules-wrap {
    display: none !important;
  }
  .lz-mobile-all-apps-btn { display: none !important; }
  body.lz-portal-compact-header .main-header {
    padding: 10px 14px;
    flex-wrap: nowrap;
    gap: 8px;
  }
  body.lz-portal-compact-header .main-header:not(.lz-dash-header) {
    display: flex;
    align-items: center;
  }
  body.lz-portal-compact-header .main-header:not(.lz-dash-header) .main-header-title {
    display: none;
  }
  body.lz-portal-compact-header .lz-mobile-header-brand {
    display: flex !important;
    flex: 1;
    min-width: 0;
    align-items: center;
  }
  body.lz-portal-compact-header .lz-mobile-header-brand .lz-brand-logo { height: 32px; }
  body.lz-portal-compact-header .lz-mobile-nav-menu-btn {
    display: inline-flex;
  }
  body.lz-portal-compact-header .main-header:not(.lz-dash-header) {
    flex-wrap: nowrap;
  }
  body.lz-portal-compact-header .main-header:not(.lz-dash-header) .lz-mobile-nav-menu-btn {
    order: -2;
    margin-right: 8px;
  }
  body.lz-portal-compact-header .main-header:not(.lz-dash-header) .lz-mobile-header-brand {
    order: -1;
    flex: 1;
    min-width: 0;
  }
  body.lz-portal-compact-header .main-header:not(.lz-dash-header) .lz-header-actions {
    order: 2;
    margin-left: auto;
  }
  body.lz-mobile-nav-open { overflow: hidden; }
  .lz-header-actions {
    flex: 0 0 auto;
    gap: 8px;
  }
  .main-content {
    padding: 12px 14px;
  }
  body.lz-mobile-nav .main-header {
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .lz-dash-header { padding: 10px 14px; }
  .lz-dash-header-grid {
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: 10px;
  }
  .lz-dash-zone--nav-cluster { display: none !important; }
  .lz-dash-zone--menu { display: flex !important; }
  .lz-dash-zone--brand {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 0;
    border: 0;
  }
  .lz-dash-zone--profile {
    margin-left: 0;
    border-left: 0;
    padding-left: 8px;
  }
}
@media (max-width: 768px) {
  .main-header-title h2 {
    font-size: 17px;
  }
}

/* Safety — OHS / Management Inspection */
.sf-page-body { display: flex; flex-direction: column; min-height: 0; }
.sf-kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 12px 0; }
.sf-kpi { background: #f8fafc; border: 1px solid var(--lz-border); border-radius: 8px; padding: 10px 12px; }
.sf-kpi strong { display: block; font-size: 20px; color: var(--lz-red); margin-top: 4px; }
.sf-drive-notice {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: #1e40af;
  margin: 10px 0;
}
.sf-header-grid { margin-bottom: 16px; }
.sf-obs-section { margin-top: 16px; border-top: 1px solid var(--lz-border); padding-top: 12px; }
.sf-obs-table-wrap { max-height: 420px; overflow: auto; }
.sf-obs-table { font-size: 11px; min-width: 1200px; }
.sf-obs-table input, .sf-obs-table select { font-size: 11px; min-width: 90px; }
.sf-photo-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.sf-photo-ph { opacity: 0.75; cursor: not-allowed; }
.sf-photo-cell { white-space: nowrap; }
.sf-photo-thumb { max-width: 48px; max-height: 48px; border-radius: 4px; vertical-align: middle; margin-right: 4px; }
.sf-photo-link { font-size: 11px; }
.sf-photo-pending { font-size: 10px; max-width: 80px; display: inline-block; overflow: hidden; text-overflow: ellipsis; }
.sf-post-submit-bar {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 10px;
}
.sf-post-submit-bar.hidden { display: none; }
.sf-post-submit-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sf-post-submit-text { display: flex; flex-direction: column; gap: 2px; }
.sf-post-submit-text strong { color: #065f46; }
.sf-post-submit-text span { font-size: 0.88rem; color: #047857; }
.sf-post-submit-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-upload-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin: 6px 0 10px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  font-size: 13px;
  color: #0369a1;
  line-height: 1.35;
}
.sf-upload-status--float {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 1200;
  margin: 0;
  max-width: min(420px, calc(100vw - 24px));
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.18);
  pointer-events: none;
}
.sf-upload-status.hidden { display: none; }
.sf-upload-donut {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid #e0f2fe;
  border-top-color: #0284c7;
  animation: sf-upload-spin 0.75s linear infinite;
  flex-shrink: 0;
}
.sf-photo-upload-donut {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: sf-upload-spin 0.75s linear infinite;
  z-index: 2;
  box-shadow: 0 0 0 1px rgba(2, 132, 199, 0.35);
}
.sf-cpms-photo-thumb--uploading,
.sf-ohs-photo-thumb--uploading {
  position: relative;
  background: #e0f2fe;
  min-width: 48px;
  min-height: 48px;
}
.sf-cpms-photo-thumb--uploading img,
.sf-ohs-photo-thumb--uploading img {
  opacity: 0.45;
}
@keyframes sf-upload-spin { to { transform: rotate(360deg); } }
.sf-appsheet-notice { background: #f0fdf4; border-color: #86efac; color: #166534; margin-top: 8px; }
.sf-workflow-actions { margin-top: 16px; gap: 8px; flex-wrap: wrap; }
.sf-list-row { cursor: pointer; }
.sf-dash-card { margin-bottom: 16px; }

.sf-home-layout { display: flex; flex-direction: column; gap: 16px; }
.sf-home-summary { margin-bottom: 0; }
.sf-home-kpi-grid { margin-top: 8px; }
a.sf-home-kpi {
  display: block;
  background: #f8fafc;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  padding: 10px 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}
a.sf-home-kpi:hover { border-color: var(--lz-red); background: #fef2f2; }
a.sf-home-kpi strong { display: block; font-size: 20px; color: var(--lz-red); margin-top: 4px; }
.sf-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.sf-home-panel--wide { grid-column: 1 / -1; }
.sf-home-list, .sf-home-bulletins { list-style: none; margin: 0; padding: 0; }
.sf-home-list li, .sf-bulletin-item { padding: 8px 0; border-bottom: 1px solid var(--lz-border); }
.sf-home-list li:last-child, .sf-bulletin-item:last-child { border-bottom: none; }
.sf-home-list-title { display: block; font-weight: 600; }
.sf-bulletin-item a { text-decoration: none; color: inherit; display: block; }
.sf-bulletin--urgent { border-left: 3px solid #dc2626; padding-left: 8px; }
.sf-bulletin--important { border-left: 3px solid #f59e0b; padding-left: 8px; }
.sf-home-sites-wrap { max-height: 280px; overflow: auto; }

.sf-list-toolbar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.sf-list-filter { width: 100%; max-width: 420px; }
.sf-list-history { display: flex; flex-direction: column; gap: 8px; }
.sf-list-history-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.sf-list-date-range {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.sf-list-date-input {
  width: auto;
  min-width: 9.5rem;
  max-width: 11rem;
}
.sf-list-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}
.sf-list-pager-meta { margin: 0; color: #64748b; font-size: 13px; }
.sf-list-pager-actions { display: flex; gap: 8px; align-items: center; }
.sf-insp-table-wrap { max-height: calc(100vh - 280px); overflow: auto; }
.sf-insp-table .sf-list-row--compact { cursor: pointer; }
.sf-insp-table .sf-list-row--compact:hover { background: #f8fafc; }
.sf-insp-table .sf-list-row--other-creator { background: #fffbeb; }
.sf-insp-table .sf-list-row--other-creator:hover { background: #fef3c7; }
.sf-list-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}
.sf-list-tag {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
}
.sf-list-tag--creator {
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
}
.sf-list-tag--action {
  color: #0f766e;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.sf-flag-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}
.sf-flag-stat {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e8edf2;
  background: #f8fafc;
}
.sf-flag-stat--yellow { border-color: #fde68a; background: #fffbeb; }
.sf-flag-stat--orange { border-color: #fdba74; background: #fff7ed; }
.sf-flag-stat__value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  color: #0f172a;
}
.sf-flag-stat__label {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.sf-flag-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}
.sf-flag-filter-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}
.sf-flag-filter-btn.is-active {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #92400e;
}
.sf-flag-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sf-flag-card--yellow { background: #fef9c3; color: #854d0e; border: 1px solid #fde047; }
.sf-flag-card--orange { background: #ffedd5; color: #9a3412; border: 1px solid #fdba74; }
.sf-flag-card--neutral { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.sf-flag-site--yes { color: #15803d; font-weight: 600; }
.sf-flag-site-meta { display: block; }
.sf-flag-add-panel { margin: 0 0 14px; }
.sf-flag-add-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed #e2e8f0;
  border-radius: 10px;
  background: #fafbfc;
}
.sf-flag-add-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; }
.sf-flag-worker-pick { grid-column: 1 / -1; }
.sf-flag-worker-pick #sfFlagWorkerSelect {
  min-height: 140px;
  width: 100%;
}
.sf-flag-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin: 0 0 12px;
}
.sf-flag-search-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  min-width: 220px;
  flex: 1;
}
.sf-flag-row-actions { white-space: nowrap; }
.sf-flag-table td strong { display: block; }
.sf-flag-table-wrap { max-height: calc(100vh - 280px); overflow: auto; }
.sf-flag-worker-id {
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  font-size: 11px;
  background: #f8fafc;
  padding: 2px 6px;
  border-radius: 4px;
}
.sf-compact-id code { font-size: 11px; }
.sf-compact-email { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-overdue-tag { color: #dc2626; font-weight: 700; font-size: 11px; }
button.sf-sort-th {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
}
button.sf-sort-th.is-active { color: var(--lz-red); }
@media (max-width: 960px) {
  .sf-home-grid { grid-template-columns: 1fr; }
}

/* Safety hub module cards */
.sf-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.sf-module-card {
  display: block;
  border: 1px solid var(--lz-border);
  border-radius: var(--lz-radius-sm);
  padding: 16px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  position: relative;
}
.sf-module-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--lz-shadow);
}
.sf-module-card h4 { margin: 8px 0 6px; font-size: 15px; color: var(--lz-text); }
.sf-card-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--lz-muted);
}
.sf-card-badge--live { background: #dcfce7; color: #166534; }
.sf-card-collection { display: block; margin-top: 8px; font-family: monospace; font-size: 10px; }

/* Mass TBM Live */
.tbm-form-grid { max-width: 720px; }
.tbm-upload-section, .tbm-quiz-prep { margin-top: 16px; }
.tbm-slide-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.tbm-slide-thumb { border: 1px solid var(--lz-border); border-radius: 8px; padding: 8px; max-width: 140px; }
.tbm-slide-thumb img { max-width: 120px; max-height: 80px; display: block; }
.tbm-qr-section { margin: 16px 0; text-align: center; }
.tbm-qr-img { max-width: 200px; border-radius: 8px; }
.tbm-quiz-row { border: 1px solid var(--lz-border); border-radius: 8px; padding: 12px; margin-bottom: 10px; }
.tbm-actions-cell { white-space: nowrap; }

.tbm-live-body { background: #0f172a; }
.tbm-live-app { min-height: 100vh; color: #e2e8f0; }
.tbm-live-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 16px 20px; background: #1e293b; border-bottom: 1px solid #334155;
}
.tbm-live-header h2 { color: #fff; margin: 0; }
.tbm-live-grid { display: grid; grid-template-columns: 1fr 360px; gap: 16px; padding: 16px; min-height: calc(100vh - 80px); }
.tbm-slide-stage {
  background: #000; border-radius: 12px; min-height: 420px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.tbm-slide-img { max-width: 100%; max-height: 70vh; object-fit: contain; }
.tbm-slide-pdf { width: 100%; height: 70vh; border: 0; }
.tbm-slide-empty { color: #94a3b8; padding: 40px; }
.tbm-slide-controls { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 12px; }
.tbm-live-side .section-card { background: #1e293b; border-color: #334155; margin-bottom: 12px; }
.tbm-live-side h4, .tbm-live-side h5 { color: #f8fafc; }
.tbm-attendance-stats { display: flex; gap: 12px; margin-bottom: 12px; }
.tbm-stat-ring { flex: 1; text-align: center; background: #0f172a; border-radius: 8px; padding: 10px; }
.tbm-stat-ring strong { display: block; font-size: 24px; color: #22c55e; }
.tbm-stat-ring--pct strong { color: #38bdf8; }
.tbm-latest-checkin { min-height: 24px; color: #fbbf24; font-weight: 600; }
.tbm-checkin-flash { animation: tbmFlash 1.2s ease; }
@keyframes tbmFlash { 0%,100% { opacity: 1; } 50% { opacity: 0.3; transform: scale(1.02); } }
.tbm-qr-wrap { text-align: center; margin: 12px 0; }
.tbm-qr-wrap img { background: #fff; padding: 8px; border-radius: 8px; max-width: 160px; }
.tbm-attendance-list { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow-y: auto; }
.tbm-att-row { padding: 8px 0; border-bottom: 1px solid #334155; }
.tbm-leaderboard { margin: 0; padding-left: 20px; }
.tbm-leaderboard li { display: flex; gap: 8px; align-items: center; padding: 6px 0; }
.tbm-leader-winner { color: #fbbf24; font-weight: 700; }
.tbm-winner-banner { margin-top: 12px; padding: 10px; background: #422006; border-radius: 8px; color: #fde68a; }

.tbm-worker-body { background: #f1f5f9; min-height: 100vh; margin: 0; }
.tbm-worker-app { max-width: 480px; margin: 0 auto; padding: 16px; }
.tbm-worker-header { text-align: center; margin-bottom: 20px; }
.tbm-worker-header h1 { margin: 0 0 8px; color: var(--lz-red); font-size: 22px; }
.tbm-worker-card {
  background: #fff; border-radius: 12px; padding: 20px;
  box-shadow: var(--lz-shadow); margin-bottom: 16px;
}
.tbm-worker-card label { display: block; margin-bottom: 12px; font-size: 13px; font-weight: 600; }
.tbm-worker-card input { width: 100%; margin-top: 4px; }
.tbm-match-btn {
  display: block; width: 100%; text-align: left; margin: 8px 0;
}
.tbm-match-btn .feed-meta { display: block; font-weight: 400; }
.tbm-worker-success h2 { color: #0f766e; }
.tbm-just-joined { margin: 10px 0 14px; }
.tbm-just-joined-list { list-style: none; padding: 0; margin: 0; }
.tbm-just-joined-list li {
  padding: 6px 0; border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.tbm-stat-ring--total strong { font-size: 1.6em; }
.btn-block { width: 100%; margin-top: 8px; }
.tbm-worker-ok { border-left: 4px solid #22c55e; }
.tbm-quiz-q { border: 0; margin-bottom: 16px; padding: 0; }
.tbm-quiz-opt { display: block; font-weight: 400; margin: 8px 0; }
@media (max-width: 960px) {
  .tbm-live-grid { grid-template-columns: 1fr; }
}

.sic-tab-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tbm-audience-panel, .tbm-picker-wrap { margin-top: 12px; }
.tbm-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; max-height: 200px; overflow-y: auto; border: 1px solid var(--lz-border); padding: 8px; border-radius: 8px; }
.tbm-picker-item { font-size: 12px; font-weight: 400; display: block; }
.tbm-expected-list { margin-top: 10px; }
.tbm-quiz-gen-grid { max-width: 640px; }
.tbm-external-form { display: grid; gap: 8px; max-width: 400px; }

.sic-expiry-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 16px; }
.sic-stat-card { text-align: center; padding: 12px; border-radius: 8px; border: 1px solid var(--lz-border); }
.sic-stat-card strong { display: block; font-size: 22px; }
.sic-stat--valid strong { color: #16a34a; }
.sic-stat--expiring strong { color: #d97706; }
.sic-stat--expired strong { color: #dc2626; }
.sic-stat--pending strong { color: #64748b; }

.sic-status { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.sic-status--valid { background: #dcfce7; color: #166534; }
.sic-status--expiring { background: #fef3c7; color: #92400e; }
.sic-status--expired { background: #fee2e2; color: #991b1b; }
.sic-status--not_completed, .sic-status--pending { background: #f1f5f9; color: #475569; }
.sic-profile-status { padding: 12px; border-radius: 8px; margin-bottom: 16px; }
.sic-profile-dates { margin-top: 12px; }

.sf-placeholder-panel .feed-list.compact { margin: 8px 0 0; padding-left: 18px; }
.sf-placeholder-panel .feed-list.compact li { padding: 4px 0; border: 0; }

.sf-wizard-tabs { margin: 12px 0 16px; }
.sf-wizard-tab {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(234, 88, 12, 0.12);
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
}
.sf-wizard-pane.hidden { display: none; }
.sf-setup-toolbar { flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.sf-setup-toolbar input[type="date"] {
  flex: 0 1 auto;
  min-width: 132px;
  max-width: none;
}
.sf-dr-range-modes {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.sf-dr-range-modes .btn.is-active {
  background: var(--lz-brand, #c8102e);
  border-color: var(--lz-brand, #c8102e);
  color: #fff;
}
.sf-dr-search { min-width: 220px; flex: 1 1 220px; }
.sf-dr-table-wrap { max-height: 280px; overflow: auto; margin-bottom: 8px; -webkit-overflow-scrolling: touch; }
.sf-dr-picker-table { width: 100%; }
.sf-dr-row__date { white-space: nowrap; vertical-align: top; width: 88px; }
.sf-dr-row__status { white-space: nowrap; vertical-align: top; width: 72px; font-size: 11px; }
.sf-dr-row__site { vertical-align: top; min-width: 0; }
.sf-dr-row-stack { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sf-dr-row-stack__l1 { font-size: 13px; color: #0f172a; }
.sf-dr-row-stack__l2 { font-size: 12px; color: #334155; }
.sf-dr-row-stack__l2 code { font-size: 11px; }
.sf-dr-row-stack__l3 { font-size: 11px; line-height: 1.35; color: #64748b; }
.sf-manpower-count { margin: 2px 0 4px; font-weight: 600; color: #475569; }
.sf-dr-picker-card.section-card { padding: 12px 14px; }
.sf-dr-row { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: rgba(234, 88, 12, 0.15); }
.sf-dr-row:hover { background: #f8fafc; }
.sf-dr-row.is-selected { background: #fff7ed; outline: 2px solid var(--safety-accent, #ea580c); }
.sf-dr-detail-card { margin-top: 16px; }
.sf-dr-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px 16px;
  margin-bottom: 12px;
}
.sf-dr-detail-field strong { display: block; margin-top: 2px; }
.sf-dr-manpower-list { margin: 0; padding-left: 18px; max-height: 160px; overflow: auto; }
.sf-dr-manpower-block { margin-top: 12px; }
.sf-manpower-table-wrap {
  max-height: 220px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}
.sf-manpower-table { margin: 0; font-size: 0.84rem; }
.sf-manpower-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  padding: 6px 10px;
  border-bottom: 1px solid #e2e8f0;
}
.sf-manpower-table td { padding: 7px 10px; vertical-align: middle; border-bottom: 1px solid #f1f5f9; }
.sf-manpower-table tbody tr:last-child td { border-bottom: 0; }
.sf-manpower-row--supervisor { background: #fff7ed; }
.sf-manpower-cell-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sf-manpower-person-name { font-weight: 600; color: #0f172a; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-manpower-cell-id code { font-size: 0.78rem; color: #475569; background: transparent; padding: 0; }
.sf-manpower-cell-role { color: #64748b; white-space: nowrap; font-size: 0.8rem; }
.sf-manpower-cell-actions { width: 36px; text-align: right; padding-right: 6px !important; }
.sf-manpower-th-actions { width: 36px; }
.sf-manpower-edit-hint { margin: 8px 0 0; font-size: 0.78rem; }
.sf-mp-dept--other { background: #f1f5f9; color: #475569; }
.sf-manpower-remove { min-width: 28px; padding: 2px 6px; line-height: 1.2; color: #b91c1c; }
.sf-activity-select { min-width: 280px; max-width: 480px; width: 100%; }
.sf-activity-chip-host {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.sf-activity-chip {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  padding: 10px 16px;
  min-height: 44px;
  font-size: 0.875rem;
  cursor: pointer;
  line-height: 1.2;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(234, 88, 12, 0.12);
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
  color: inherit;
  position: relative;
  z-index: 1;
}
.sf-activity-chip:hover { background: #f8fafc; border-color: #94a3b8; }
.sf-activity-chip.is-selected {
  border-color: var(--safety-accent, #ea580c);
  background: #fff7ed;
  box-shadow: inset 0 0 0 1px rgba(234, 88, 12, 0.35);
}
.sf-activity-chip > * { pointer-events: none; }
.sf-dr-row { cursor: pointer; touch-action: manipulation; }
.sf-dr-row.is-selected { background: #fff7ed; }
.sf-setup-feedback { margin-top: 10px; min-height: 1.2em; }
.sf-setup-feedback.is-error { color: #b45309; font-weight: 600; }
.sf-setup-feedback.is-ok { color: #047857; }
.sf-save-status.is-error { color: #b45309; font-weight: 600; }
.sf-setup-actions { margin-top: 16px; }
.sf-setup-actions .btn { min-height: 48px; }
@media (max-width: 768px) {
  body[data-lz-module="safety"] .main-content {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
  body[data-lz-module="safety"] .sf-workflow-actions,
  body[data-lz-module="safety"] .sf-setup-actions {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin: 16px -14px 0;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 28%);
  }
  body[data-lz-module="safety"] .sf-setup-mode-picker,
  body[data-lz-module="safety"] .sf-report-type-picker {
    grid-template-columns: 1fr;
  }
  body[data-lz-module="safety"] .pg-search-input,
  body[data-lz-module="safety"] select.pg-search-input {
    font-size: 16px;
    min-height: 44px;
  }
  body[data-lz-module="safety"] .sf-dr-row,
  body[data-lz-module="safety"] .sf-setup-mode-btn {
    min-height: 44px;
  }
  body[data-lz-module="safety"] .sf-upload-status--float {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .main-content {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .sf-setup-actions {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin: 16px -14px 0;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 28%);
  }
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .sf-setup-mode-picker,
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .sf-report-type-picker {
    grid-template-columns: 1fr;
  }
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .pg-search-input,
  body[data-lz-module="safety"][data-sf-page="inspection-new"] select.pg-search-input {
    font-size: 16px;
    min-height: 44px;
  }
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .sf-dr-row {
    min-height: 44px;
  }
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .sf-upload-status--float {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .sf-wizard-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding-bottom: 4px;
    margin-right: -4px;
  }
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .sf-wizard-tab {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 14px;
    scroll-snap-align: start;
    touch-action: manipulation;
  }
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .sf-report-type-btn,
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .sf-setup-mode-btn,
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .sf-activity-chip {
    min-height: 48px;
    touch-action: manipulation;
  }
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .sf-setup-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .sf-setup-toolbar .btn,
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .sf-setup-toolbar .pg-search-input {
    width: 100%;
    max-width: none;
  }
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .sf-dr-search {
    min-width: 0;
    flex: 1 1 auto;
  }
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .sf-dr-picker-table th:nth-child(3),
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .sf-dr-picker-table td:nth-child(3) {
    display: none;
  }
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .sf-dr-row td {
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 0.9rem;
  }
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .sf-dr-detail-grid {
    grid-template-columns: 1fr;
  }
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .main-content {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .sf-manpower-edit-btn,
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .sf-manpower-add-btn,
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .sf-manpower-remove {
    min-height: 44px;
    min-width: 44px;
    padding: 8px 12px;
  }
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .sf-manpower-dept-chip {
    min-height: 40px;
    padding: 8px 14px;
    touch-action: manipulation;
  }
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .sf-manpower-picker-item {
    min-height: 52px;
    padding: 12px;
    touch-action: manipulation;
  }
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .sf-manpower-picker-dialog {
    width: 100%;
    max-width: none;
    max-height: calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    margin: 0;
    border-radius: 16px 16px 0 0;
    align-self: flex-end;
  }
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .lz-modal-dialog.sf-manpower-picker-dialog {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
  }
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .sf-manpower-table-wrap {
    max-height: min(280px, 40vh);
  }
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .sf-manpower-picker-search {
    font-size: 16px;
    min-height: 44px;
  }
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .sf-manpower-picker-close {
    min-width: 44px;
    min-height: 44px;
  }
  body[data-lz-module="safety"][data-sf-page="inspection-new"] #btnSfCreateInspection {
    width: 100%;
    font-size: 1rem;
  }
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .section-head-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  body[data-lz-module="safety"][data-sf-page="inspection-new"] #btnSfBackList {
    min-height: 44px;
  }
  body[data-lz-module="safety"][data-sf-page="inspection-new"] #sfManpowerPickerModal:not(.hidden) {
    align-items: flex-end;
    padding: 0;
  }
  body[data-lz-module="safety"][data-sf-page="inspection-new"] .sf-manual-wo-body .sf-dr-row {
    min-height: 48px;
  }
}
.sf-setup-mode-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 280px));
  gap: 8px;
  margin-bottom: 12px;
  max-width: 580px;
}
.sf-setup-mode-btn {
  text-align: left;
  padding: 8px 12px;
  min-height: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(234, 88, 12, 0.12);
  background: #fff;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  color: inherit;
  position: relative;
  z-index: 1;
}
.sf-setup-mode-btn > * { pointer-events: none; }
.sf-setup-mode-btn strong { display: block; margin-bottom: 2px; font-size: 0.95rem; }
.sf-setup-mode-btn .feed-meta { font-size: 0.78rem; line-height: 1.25; }
.sf-setup-mode-btn.is-active {
  border-color: var(--safety-accent, #ea580c);
  background: #fff7ed;
  outline: 2px solid rgba(234, 88, 12, 0.25);
}
.sf-report-type-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 300px));
  gap: 8px;
  margin-bottom: 12px;
  max-width: 620px;
}
.sf-report-type-btn {
  text-align: left;
  padding: 10px 12px;
  min-height: 0;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(234, 88, 12, 0.12);
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  color: inherit;
  position: relative;
  z-index: 1;
}
.sf-report-type-btn > * { pointer-events: none; }
.sf-report-type-btn strong { display: block; margin-bottom: 4px; }
.sf-report-type-btn.is-active {
  border-color: var(--safety-accent, #ea580c);
  background: #fff7ed;
  outline: 2px solid rgba(234, 88, 12, 0.25);
}
.sf-setup--cpms .sf-report-type-btn[data-sf-report-format="CPMS"].is-active {
  border-color: #2563eb;
  background: #eff6ff;
  outline-color: rgba(37, 99, 235, 0.3);
}
.sf-setup--ohs .sf-report-type-btn[data-sf-report-format="OHS"].is-active {
  border-color: #059669;
  background: #ecfdf5;
  outline-color: rgba(5, 150, 105, 0.3);
}
.sf-setup--daily .sf-setup-mode-btn[data-sf-setup-mode="daily_record"].is-active {
  border-color: #4f46e5;
  background: #eef2ff;
  outline-color: rgba(79, 70, 229, 0.3);
}
.sf-setup--manual .sf-setup-mode-btn[data-sf-setup-mode="manual"].is-active {
  border-color: #d97706;
  background: #fffbeb;
  outline-color: rgba(217, 119, 6, 0.3);
}
.sf-setup-type-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 16px;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sf-setup-type-divider::before,
.sf-setup-type-divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, #cbd5e1 20%, #cbd5e1 80%, transparent);
}
.sf-setup-type-divider-label { white-space: nowrap; }
.sf-contract-select.sf-contract-group-G { background: #e0f2fe; border-color: #7dd3fc; }
.sf-contract-select.sf-contract-group-C { background: #dcfce7; border-color: #86efac; }
.sf-contract-select.sf-contract-group-A { background: #fef9c3; border-color: #fde047; }
.sf-contract-select.sf-contract-group-P { background: #f3e8ff; border-color: #d8b4fe; }
.sf-contract-select.sf-contract-group-other { background: #f8fafc; }
.sf-format-badge,
.sf-source-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin: 0 6px 8px 0;
}
.sf-format-badge.sf-format-cpms { background: #dbeafe; color: #1d4ed8; }
.sf-format-badge.sf-format-ohs { background: #d1fae5; color: #047857; }
.sf-source-badge.sf-source-daily { background: #e0e7ff; color: #4338ca; }
.sf-source-badge.sf-source-manual { background: #ffedd5; color: #c2410c; }
.sf-review-badges { margin-bottom: 10px; }
.sf-review-signature-locked-note { margin-top: 6px; color: #64748b; font-style: italic; }
.sf-review-signatures-card--locked .sf-review-sup-sig-box--readonly { opacity: 0.85; cursor: default; }
.sf-post-submit-note { display: block; margin-top: 6px; color: #475569; }
.sf-ohs-photo-uploader { display: block; font-size: 10px; line-height: 1.2; margin-top: 2px; max-width: 4.5rem; word-break: break-word; }
.sf-report-photo-figure { margin: 0; display: inline-block; vertical-align: top; }
.sf-report-photo-uploader { display: block; font-size: 7pt; color: #64748b; margin-top: 2px; max-width: 2.4cm; word-break: break-word; }
.sf-review-signatures-card--locked .sf-review-sup-sig-box--readonly { opacity: 0.85; cursor: default; }
.sf-review-signature-img { max-width: 100%; max-height: 120px; border: 1px solid #e2e8f0; background: #fff; object-fit: contain; }
.sf-review-signature-label { display: block; margin-top: 8px; }
.sf-route-preview-card { border-left: 4px solid #ea580c; }
.sf-route-warn { color: #b45309; font-weight: 600; }
.sf-cpms-review-result--y strong { color: #047857; }
.sf-cpms-review-result--n strong { color: #b91c1c; }
.sf-cpms-review-subhead {
  margin: 12px 0 6px;
  padding: 6px 10px;
  background: #f8fafc;
  border-radius: 6px;
  border-left: 3px solid #94a3b8;
}
.sf-review-photo-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; align-items: flex-start; }
.sf-review-photo img,
.sf-review-photo-img {
  display: block;
  width: 112px;
  max-width: 112px;
  height: 112px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.sf-review-remarks { margin: 6px 0; white-space: pre-wrap; }
.sf-review-save-hint { margin-top: 8px; }
.sf-review-signature-status { margin-top: 6px; }
.si-ohs-settings-grid { display: grid; gap: 10px; }
.si-ohs-card { margin-bottom: 0; }
.si-ohs-obs-list { display: grid; gap: 8px; }
.sf-ohs-obs-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 12px;
  background: #fff;
}
.sf-ohs-obs-card.is-collapsed .sf-ohs-obs-body { display: none; }
.sf-ohs-obs-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
.sf-ohs-head-summary { flex: 1; min-width: 120px; }
.sf-ohs-obs-body { padding: 12px 14px; display: grid; gap: 14px; }
.sf-ohs-part h5 { margin: 0; font-size: 0.9rem; }
.sf-ohs-part-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 6px;
}
.sf-ohs-part-head--rect { margin-bottom: 4px; }
.sf-ohs-photo-add-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.sf-ohs-photo-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  margin: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.sf-ohs-photo-icon-btn input,
.sf-ohs-photo-add input,
.sf-mgt-photo-add input,
.sf-cpms-photo-add input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 16px;
}
.sf-ohs-photo-grid--compact { margin-top: 0; }
.sf-ohs-type-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.sf-ohs-type-btn {
  min-height: 44px;
  padding: 8px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
}
.sf-ohs-type-btn.is-active {
  border-color: #0d9488;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #fff;
}
.sf-ohs-type-btn.is-active.sf-ohs-type--unsafe {
  border-color: #f87171;
  background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
  color: #991b1b;
}
.sf-ohs-type-btn.is-active.sf-ohs-type--improvement {
  border-color: #fdba74;
  background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
  color: #9a3412;
}
.sf-ohs-type-btn.is-active.sf-ohs-type--good {
  border-color: #86efac;
  background: linear-gradient(135deg, #bbf7d0 0%, #86efac 100%);
  color: #166534;
}
.sf-ohs-obs-card.sf-ohs-card--unsafe {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fff 0%, #fff5f5 100%);
}
.sf-ohs-obs-card.sf-ohs-card--improvement {
  border-color: #fed7aa;
  background: linear-gradient(180deg, #fff 0%, #fff7ed 100%);
}
.sf-ohs-obs-card.sf-ohs-card--good {
  border-color: #bbf7d0;
  background: linear-gradient(180deg, #fff 0%, #f0fdf4 100%);
}
.sf-ohs-obs-card.is-editing {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.28);
}
.sf-ohs-obs-card.is-editing .sf-ohs-obs-head {
  background: #eff6ff;
  border-bottom-color: #bfdbfe;
}
.sf-ohs-obs-card--info-only .sf-ohs-captured-info {
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.sf-ohs-obs-card--info-only .sf-ohs-captured-info h5 {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.sf-ohs-info-value {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #0f172a;
  white-space: pre-wrap;
}
.sf-ohs-info-text {
  margin: 8px 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #334155;
}
.sf-ohs-rect-remarks {
  padding: 8px 10px;
  border-radius: 8px;
  background: #fffbeb;
  border: 1px solid #fde68a;
}
.sf-ohs-info-empty { font-style: italic; }
.sf-ohs-info-grid {
  display: grid;
  gap: 8px;
}
@media (min-width: 480px) {
  .sf-ohs-info-grid { grid-template-columns: 1fr 1fr; }
}
.sf-ohs-info-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 2px;
}
.sf-ohs-edit-captured,
.sf-ohs-done-editing { margin-left: auto; }
.sf-ohs-remarks {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  font-size: 15px;
  line-height: 1.45;
  padding: 10px 12px;
  box-sizing: border-box;
}
.sf-ohs-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 12px;
}
.sf-ohs-type-btn:disabled { opacity: 0.65; cursor: not-allowed; }
.sf-ohs-hazard-fields { display: grid; gap: 8px; }
.sf-ohs-hazard-label {
  display: grid;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}
.sf-manual-adhoc-location { grid-column: 1 / -1; }
.sf-ohs-photo-camera { font-size: 1.35rem; }
.sf-ohs-photo-upload { font-size: 1.1rem; font-weight: 700; }
.sf-ohs-photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}
.sf-ohs-photo-thumb {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 112px;
  flex: 0 0 112px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin: 0;
  background: #f8fafc;
  cursor: pointer;
}
.sf-ohs-photo-thumb.sf-photo-enlarge:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
}
.sf-ohs-photo-thumb img,
.sf-ohs-photo-thumb img.sf-ohs-photo-img,
img.sf-ohs-photo-img,
.sf-review-photo .sf-ohs-photo-img {
  display: block;
  width: 100%;
  max-width: 112px;
  height: 112px;
  min-height: 84px;
  object-fit: cover;
  border-radius: 7px;
  background: #e2e8f0;
}
.sf-ohs-photo-thumb img.sf-photo-hydrate-pending,
.sf-cpms-photo-thumb img.sf-photo-hydrate-pending,
.sf-review-photo img.sf-photo-hydrate-pending,
img.sf-ohs-photo-img.sf-photo-hydrate-pending,
img.sf-cpms-photo-img.sf-photo-hydrate-pending {
  background: linear-gradient(135deg, #e2e8f0 0%, #f8fafc 50%, #e2e8f0 100%);
  min-height: 66px;
}
.sf-ohs-photo-thumb img.sf-photo-hydrate-failed,
.sf-cpms-photo-thumb img.sf-photo-hydrate-failed,
img.sf-ohs-photo-img.sf-photo-hydrate-failed,
img.sf-cpms-photo-img.sf-photo-hydrate-failed {
  background: #fee2e2;
}
.sf-delete-insp-btn {
  color: #b91c1c !important;
  border-color: transparent !important;
  font-size: 0.82rem;
  padding: 0.25rem 0.55rem;
  margin-left: 0.35rem;
}
.sf-review-workflow-actions,
.sf-workflow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.sf-ohs-photo-thumb .sf-ohs-photo-del {
  position: absolute;
  top: 2px;
  right: 2px;
  padding: 0 6px;
  line-height: 1.4;
}
.sf-ohs-photo-add {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  touch-action: manipulation;
}
.sf-ohs-photo-add input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.sf-ohs-signature-canvas {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  max-width: 100%;
}
.sf-ohs-review-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.sf-ohs-review-item--good {
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.sf-ohs-review-item--unsafe {
  background: #fef2f2;
  border-color: #fecaca;
}
.sf-ohs-review-hazard { margin: 6px 0; line-height: 1.35; }
.sf-ohs-review-hazard strong { display: inline; }
.sf-ohs-rect-item {
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid #e2e8f0;
}
.sf-ohs-rect-item--open {
  background: #fef2f2;
  border-color: #fecaca;
}
.sf-ohs-rect-item--closed {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.sf-ohs-rect-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.sf-ohs-rect-status {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.sf-ohs-rect-item--open .sf-ohs-rect-status { color: #b91c1c; }
.sf-ohs-rect-item--closed .sf-ohs-rect-status { color: #047857; }

.sf-rect-inspector-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem 0.75rem;
  margin: 0.5rem 0 0.75rem;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.sf-rect-inspector-actions--inline {
  display: inline-flex;
  margin: 0 0 0 0.5rem;
  padding: 0.2rem 0.4rem;
  vertical-align: middle;
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.sf-rect-inspector-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  white-space: nowrap;
}
.sf-rect-inspector-btns {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.sf-rect-inspector-actions--inline .sf-rect-inspector-btns {
  margin-left: 0;
}
.sf-item-action-btn {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: none;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  touch-action: manipulation;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.sf-item-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.16);
}
.sf-item-action-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}
.sf-item-action-btn:focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}
.sf-item-action-btn--approve {
  background: linear-gradient(180deg, #34d399 0%, #059669 100%);
  color: #fff;
  text-shadow: 0 1px 0 rgba(4, 120, 87, 0.35);
}
.sf-item-action-btn--approve:hover {
  filter: brightness(1.05);
}
.sf-item-action-btn--return {
  background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
  color: #fff;
  text-shadow: 0 1px 0 rgba(153, 27, 27, 0.35);
}
.sf-item-action-btn--return:hover {
  filter: brightness(1.05);
}
.sf-item-action-btn span {
  pointer-events: none;
  line-height: 1;
}
.sf-rect-inspector-actions--approved {
  background: #ecfdf5;
  border-color: #6ee7b7;
}
.sf-rect-inspector-actions--applied .sf-item-action-btn--approve {
  transform: scale(1.08);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.35);
}
.sf-rect-item-badge--just-approved {
  animation: sfRectApprovedFlash 0.45s ease;
}
@keyframes sfRectApprovedFlash {
  0% { transform: scale(0.92); opacity: 0.55; }
  100% { transform: scale(1); opacity: 1; }
}
.sf-rect-item-badge { margin-left: 0.25rem; }
.sf-inspector-return-note {
  margin: 0.35rem 0 0.75rem;
  padding: 0.5rem 0.65rem;
  border-left: 3px solid #d97706;
  background: rgba(217, 119, 6, 0.08);
}
.sf-inspector-review-hint { margin-left: 0.5rem; }
.site-safety-inspector-note .site-safety-field-value {
  color: #b45309;
  font-weight: 600;
}
.sf-review-section-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 12px 0 8px;
  color: #334155;
}
.sf-review-mgt-block {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
}
.sf-review-mgt-list { margin: 0 0 8px 18px; padding: 0; }
.sf-mgt-selected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
}
.sf-mgt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  font-size: 0.85rem;
}
.sf-mgt-chip-remove {
  border: 0;
  background: transparent;
  color: #b91c1c;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.sf-mgt-dropdown-check {
  width: 16px;
  color: #0d9488;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.sf-mgt-dropdown-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.sf-ohs-obs-actions { margin-top: 12px; }
.sf-ohs-add-wrap { margin-top: 16px; padding: 0 2px; }
.sf-ohs-add-btn {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  border: 1px solid #0f766e;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}
.sf-ohs-add-btn:hover { background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%); color: #fff; }
.sf-cpms-card { margin-bottom: 14px; }
.sf-cpms-sub-group { border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.sf-cpms-sub-toggle {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  background: #f8fafc;
  cursor: pointer;
  font-weight: 600;
}
.sf-cpms-sub-group.is-collapsed .sf-cpms-sub-body { display: none; }
.sf-cpms-sub-caret { display: inline-block; transition: transform 0.15s; }
.sf-cpms-sub-group.is-collapsed .sf-cpms-sub-caret { transform: rotate(-90deg); }
.sf-cpms-table { font-size: 0.82rem; }
.sf-cpms-col-no { width: 56px; white-space: nowrap; }
.sf-cpms-col-result { width: 52px; }
.sf-cpms-col-desc { min-width: 180px; }
.sf-cpms-col-remarks { width: 28%; min-width: 160px; }
.sf-cpms-col-photo { width: 96px; }
.sf-cpms-col-rect { width: 220px; min-width: 200px; vertical-align: top; }
.sf-cpms-rect-review-block { display: flex; flex-direction: column; gap: 0.35rem; }
.sf-cpms-rect-remarks { margin: 0; }
.sf-cpms-desc { white-space: pre-line; line-height: 1.3; font-size: 0.82rem; }
.sf-cpms-result-group { display: flex; justify-content: center; }
.sf-cpms-toggle-group { display: inline-flex; gap: 2px; border: 1px solid #e2e8f0; border-radius: 6px; padding: 2px; background: #f8fafc; }
.sf-cpms-toggle-group--stack { flex-direction: column; align-items: stretch; width: 100%; max-width: 44px; }
.sf-cpms-toggle-group--stack .sf-cpms-toggle { width: 100%; text-align: center; padding: 4px 6px; }
.sf-cpms-row--alt { background: #f8fafc; }
.sf-cpms-row--alt .sf-cpms-remarks { background: #fff; }
.sf-cpms-toggle {
  border: 0; background: transparent; font-size: 0.75rem; font-weight: 600;
  padding: 3px 8px; border-radius: 4px; cursor: pointer; color: #64748b; line-height: 1.2;
}
.sf-cpms-toggle.is-active.sf-cpms-toggle--y { background: #d1fae5; color: #047857; }
.sf-cpms-toggle.is-active.sf-cpms-toggle--n { background: #fee2e2; color: #b91c1c; }
.sf-cpms-toggle.is-active.sf-cpms-toggle--na { background: #e2e8f0; color: #475569; }
.sf-cpms-result-opt { font-size: 0.85rem; white-space: nowrap; }
.sf-cpms-remarks { width: 100%; min-height: 72px; margin: 0; font-size: 0.82rem; padding: 6px 8px; resize: vertical; line-height: 1.35; }
.sf-cpms-photo-grid { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.sf-cpms-photo-thumb {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 112px;
  flex: 0 0 112px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin: 0;
  background: #f8fafc;
  cursor: pointer;
}
.sf-cpms-photo-thumb img,
.sf-cpms-photo-thumb img.sf-cpms-photo-img,
img.sf-cpms-photo-img {
  display: block;
  width: 100%;
  max-width: 112px;
  height: 112px;
  min-height: 84px;
  object-fit: cover;
  border-radius: 7px;
  background: #e2e8f0;
}
.sf-cpms-photo-add {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  touch-action: manipulation;
}
.sf-cpms-photo-add-row {
  display: inline-flex;
  gap: 4px;
  align-items: flex-start;
}
.sf-amendment-banner {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}
.sf-insp-table .sf-list-actions-th,
.sf-insp-table .sf-list-actions-cell {
  text-align: right;
  vertical-align: middle;
  white-space: nowrap;
  width: 1%;
}
.sf-insp-table .sf-list-actions-th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lz-muted);
}
.sf-insp-table .sf-list-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.sf-insp-table .sf-list-actions .btn {
  flex: 0 0 auto;
  margin: 0;
}
.sf-insp-table .sf-open-insp {
  min-width: 3.25rem;
}
.sf-insp-table .sf-delete-insp {
  min-width: 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  line-height: 1;
  font-size: 1.05rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sf-insp-table .sf-list-report {
  min-width: 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sf-list-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.sf-list-pdf {
  min-width: 2rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}
.sf-list-report.is-loading {
  opacity: 0.75;
  pointer-events: none;
  min-width: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.sf-list-report.is-loading::after {
  content: none;
}
.sf-compact-pm {
  max-width: 8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sf-edit-setup-form--pm-only .sf-edit-setup-grid > label:not(.sf-edit-pm-field),
.sf-edit-setup-form--pm-only #sfEditSetupReadonly,
.sf-edit-setup-form--pm-only #sfEditActivityCard {
  display: none !important;
}
.sf-edit-setup-form--pm-only .sf-edit-setup-grid > label.sf-edit-pm-field {
  grid-column: 1 / -1;
}
.sf-setup-pm-card {
  margin-bottom: 12px;
}
.sf-setup-pm-card select {
  width: 100%;
  max-width: 420px;
}
.sf-site-safety-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.sf-cpms-unsaved { color: #c2410c; }

/* Safety inspection — with management walkthrough */
.sf-mgt-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 16px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.sf-mgt-bar-hint { margin: 0; flex: 1 1 200px; }
.sf-mgt-bar--summary { background: #ecfdf5; border-color: #a7f3d0; }
.sf-mgt-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1; }
.sf-mgt-summary-badge {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  background: #d1fae5;
  color: #047857;
}
.sf-mgt-card { margin: 0 0 18px; border: 2px solid #0d9488; }
.sf-mgt-card-head { align-items: flex-start; gap: 12px; }
.sf-mgt-card-head .panel-title { margin: 0 0 4px; }
.sf-mgt-field { margin-bottom: 14px; }
.sf-mgt-label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
.sf-mgt-combobox { position: relative; }
.sf-mgt-search { width: 100%; min-height: 44px; font-size: 16px; }
.sf-mgt-dropdown {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  max-height: min(280px, 50vh);
  overflow: auto;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.sf-mgt-dropdown.hidden { display: none; }
.sf-mgt-dropdown-empty { margin: 10px 12px; }
.sf-mgt-dropdown-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  cursor: pointer;
  min-height: 48px;
}
.sf-mgt-dropdown-item:last-child { border-bottom: none; }
.sf-mgt-dropdown-item:hover,
.sf-mgt-dropdown-item.is-selected { background: #f0fdfa; }
.sf-mgt-dropdown-name { font-weight: 600; font-size: 0.92rem; color: #0f172a; }
.sf-mgt-dropdown-meta { font-size: 0.8rem; color: #475569; }
.sf-mgt-dropdown-email { font-size: 0.75rem; color: #64748b; }
.sf-mgt-selected { margin: 8px 0 0; }
.sf-mgt-photos-label { margin: 0 0 8px; font-weight: 600; }
.sf-mgt-photo-grid { margin-bottom: 8px; }
.sf-mgt-photo-add-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  position: relative;
}
/* Safari/iPad: never use display:none on file inputs opened via button.click().
   Shared class: lz-file-input-visually-hidden — also overrides .hidden if both present. */
.lz-file-input-visually-hidden,
.lz-file-input-visually-hidden.hidden,
.sf-mgt-photo-input:not(.sf-mgt-photo-input--overlay),
.sf-ohs-photo-input,
.sf-cpms-photo-input,
.site-safety-file,
.vo-photo-cam,
.vo-photo-gal,
.vo-day-att-cam,
.vo-day-att-gal,
.vo-day-att-file,
.mnt-photo-review-upload-input,
#siteMntPhotoInput,
#siteMntPhotoGallery,
#evtPhotoCamera,
#evtPhotoGallery,
#evgShareCamera,
#evgShareGallery,
#svPhotoCam,
#svPhotoGal,
#wshFeedPhotoInput {
  display: block !important;
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none;
}
/* Management walkthrough: tap the label — overlay input must receive pointer events (Safari). */
.sf-mgt-photo-add {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 112px;
  font-size: 1.35rem;
  border: 1px dashed #94a3b8;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}
.sf-mgt-photo-input--overlay,
label.sf-mgt-photo-add > .sf-mgt-photo-input {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  clip: auto !important;
  overflow: hidden !important;
  border: 0 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  font-size: 16px;
}
.sf-review-signature-actions { margin-top: 8px; }
.sf-supervisor-ack-card { margin-bottom: 12px; }
.sf-supervisor-ack-card--done { border-color: #86efac; background: #f0fdf4; }
.sf-supervisor-ack-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 10px;
}
.sf-supervisor-ack-option {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}
.sf-supervisor-ack-option--manual { background: #f8fafc; }
.sf-supervisor-ack-confirm {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 10px 0;
  font-size: 0.9rem;
}
.sf-supervisor-ack-canvas {
  display: block;
  width: 100%;
  max-width: 480px;
  height: 160px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  touch-action: none;
  cursor: crosshair;
}
.sf-supervisor-ack-dialog { max-width: 520px; }
.sf-supervisor-ack-modal-actions { margin-top: 10px; }
.sf-mgt-photo-thumb .sf-mgt-photo-del { position: absolute; top: 2px; right: 2px; padding: 2px 6px; min-height: 28px; }
.sf-mgt-open-btn { min-height: 44px; padding: 10px 18px; font-size: 0.95rem; }
.sf-mgt-close-btn { min-height: 44px; white-space: nowrap; }
.sf-mgt-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  flex-wrap: wrap;
}
.sf-mgt-compact--has {
  padding: 6px 10px;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  background: #ecfdf5;
}
.sf-mgt-icon-btn {
  min-width: 36px;
  min-height: 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
  border-radius: 8px;
}
.sf-mgt-icon-badge {
  font-size: 1.1rem;
  line-height: 1;
}
.sf-mgt-compact-hint { margin: 0; }
.sf-mgt-compact-names { flex: 1 1 160px; min-width: 0; }
.sf-ohs-na-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 0.88rem;
}
.sf-ohs-rect-hint { margin: 0 0 8px; }
.si-senior-mgmt-card { margin-bottom: 16px; }
.si-pm-roster-card { margin-bottom: 16px; }
.si-senior-mgmt-picker,
.si-pm-roster-picker {
  position: static;
  max-height: 240px;
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: none;
}
@media (max-width: 640px) {
  .sf-mgt-bar { flex-direction: column; align-items: stretch; }
  .sf-mgt-bar .btn { width: 100%; }
  .sf-mgt-card-head { flex-direction: column; }
  .sf-mgt-card-head .btn { width: 100%; }
  .sf-mgt-dropdown { position: static; max-height: 220px; overflow-y: auto; margin-top: 8px; }
  .sf-cpms-photo-thumb { width: 112px; }
  .sf-cpms-photo-thumb img { width: 112px; max-width: 112px; height: 112px; }
  .sf-mgt-photo-add { min-width: 112px; min-height: 112px; font-size: 1.35rem; }
}

/* Safety inspection manpower snapshot editor */
.sf-manpower-block-head { margin-bottom: 8px; }
.sf-manpower-block-head .panel-title { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.sf-manpower-edit-btn.is-active { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }
.sf-manpower-hint { margin: 4px 0 0; }
.sf-manpower-supervisor-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; padding: 6px 8px; background: #f8fafc; border-radius: 6px; }
.sf-manpower-member-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sf-manpower-name { flex: 1; font-size: 0.88rem; }
.sf-manpower-add-btn { margin-top: 8px; background: #0d9488; border-color: #0d9488; color: #fff; }
.sf-manpower-add-btn:hover { background: #0f766e; border-color: #0f766e; color: #fff; }
.sf-manpower-picker-dialog {
  width: min(440px, 100%);
  max-height: min(520px, calc(100vh - 40px));
  display: flex;
  flex-direction: column;
  padding: 16px 18px 14px;
}
.sf-manpower-picker-head { align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.sf-manpower-picker-head h3 { margin: 0; font-size: 1.05rem; font-weight: 600; color: #0f172a; }
.sf-manpower-picker-sub { margin: 4px 0 0; font-size: 0.8rem; line-height: 1.4; }
.sf-manpower-picker-close {
  flex-shrink: 0;
  font-size: 1.35rem;
  line-height: 1;
  padding: 2px 10px;
  min-width: 36px;
}
.sf-manpower-picker-toolbar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.sf-manpower-dept-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sf-manpower-dept-chip {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.sf-manpower-dept-chip:hover { border-color: #cbd5e1; background: #f1f5f9; }
.sf-manpower-dept-chip.is-active {
  background: #0d9488;
  border-color: #0d9488;
  color: #fff;
}
.sf-manpower-picker-search { width: 100%; font-size: 0.95rem; padding: 10px 12px; }
.sf-manpower-picker-list {
  flex: 1;
  min-height: 120px;
  max-height: 280px;
  overflow-y: auto;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px;
  background: #f8fafc;
}
.sf-manpower-picker-empty {
  margin: auto;
  padding: 24px 12px;
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
  line-height: 1.45;
}
.sf-manpower-picker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.sf-manpower-picker-item:hover:not(.is-disabled) {
  border-color: #0d9488;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.12);
}
.sf-manpower-picker-item.is-disabled { opacity: 0.6; cursor: default; background: #f1f5f9; }
.sf-mp-dept-tag {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 4px;
  line-height: 1.2;
}
.sf-mp-dept--ag { background: #dbeafe; color: #1d4ed8; }
.sf-mp-dept--ug { background: #ffedd5; color: #c2410c; }
.sf-mp-picker-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sf-mp-picker-name { font-size: 0.9rem; font-weight: 600; color: #0f172a; }
.sf-mp-picker-meta { font-size: 0.78rem; color: #64748b; }
.sf-mp-added { flex-shrink: 0; font-size: 0.72rem; font-weight: 600; color: #94a3b8; text-transform: uppercase; }
.sf-manpower-picker-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

/* Safety review tab — formal layout */
.sf-review-details-formal .sf-review-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}
.sf-review-details-card {
  overflow: hidden;
}
.sf-review-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: 100%;
}
.sf-review-details-row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 34%) minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 2px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}
.sf-review-details-row:last-child {
  border-bottom: 0;
}
.sf-review-details-label {
  font-weight: 600;
  color: #475569;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.sf-review-details-value {
  color: #0f172a;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
}
.sf-review-details-split {
  margin-top: 2px;
}
.sf-review-details-table--split-col th,
.sf-review-details-table--split-col td {
  vertical-align: top;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.sf-review-details-table--split-col th {
  white-space: normal;
}
.portal-site-tabs {
  display: flex;
  gap: 8px;
  padding: 8px 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}
.portal-site-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.85rem;
  cursor: pointer;
}
.portal-site-tab.is-active {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}
.portal-site-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(220, 38, 38, 0.35);
  animation: site-safety-badge-pulse 1.6s ease-in-out infinite;
}
.portal-site-tab.is-active .portal-site-tab-badge {
  background: #fff;
  color: #b91c1c;
  box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.35);
  animation: none;
}
.portal-site-tab--safety.has-pending:not(.is-active) {
  border-color: #f87171;
  background: #fef2f2;
  color: #991b1b;
  font-weight: 700;
}
@keyframes site-safety-badge-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(220, 38, 38, 0.35); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 2px #fff, 0 0 0 6px rgba(220, 38, 38, 0.18); }
}
.sf-site-safety-item { margin-bottom: 10px; }
.sf-site-safety-note { color: #64748b; font-style: italic; }

/* Site portal — pending safety rectification */
.site-safety-cards { margin-top: 8px; }
.site-safety-empty,
.site-safety-empty-detail {
  padding: 16px 4px;
}
.site-safety-detail-head {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}
.site-safety-detail-head h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}
.site-safety-progress {
  margin: 10px 0 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}
.site-safety-note {
  color: #64748b;
  font-style: italic;
}
.site-safety-item {
  margin: 0 0 14px;
  padding: 14px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-sizing: border-box;
}
.site-safety-item.is-pending {
  border-color: #fdba74;
  background: #fffbeb;
}
.site-safety-item.is-done {
  border-color: #86efac;
  background: #f0fdf4;
}
.site-safety-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.site-safety-item-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
}
.site-safety-item.is-done .site-safety-item-badge {
  background: #dcfce7;
  color: #166534;
}
.site-safety-item-type {
  margin: 8px 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: grid;
  gap: 4px;
}
.site-safety-item-type.is-unsafe {
  background: #fef2f2;
  border-color: #fecaca;
}
.site-safety-item-type-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}
.site-safety-item-type.is-unsafe .site-safety-item-type-label {
  color: #b91c1c;
}
.site-safety-item-type-value {
  display: block;
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 800;
  color: #0f172a;
  word-break: break-word;
}
.site-safety-item-type.is-unsafe .site-safety-item-type-value {
  color: #991b1b;
}
.site-safety-item-hazard {
  display: block;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 600;
  color: #334155;
  margin-top: 2px;
}
.site-safety-item.is-unsafe {
  border-color: #fca5a5;
}
.site-safety-field {
  margin: 8px 0;
}
.site-safety-field-label,
.site-safety-section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 4px;
}
.site-safety-field-value {
  font-size: 15px;
  line-height: 1.45;
  color: #0f172a;
  white-space: pre-wrap;
  word-break: break-word;
}
.site-safety-section {
  margin-top: 12px;
}
.site-safety-photo-empty {
  margin: 4px 0 0;
}
.site-safety-thumb-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.site-safety-thumb {
  margin: 0;
  width: 112px;
  cursor: pointer;
  position: relative;
}
.site-safety-thumb:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.site-safety-thumb-del {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #b91c1c;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.35);
  touch-action: manipulation;
}
.site-safety-thumb-del:active {
  transform: scale(0.96);
}
.site-safety-thumb-frame {
  width: 112px;
  height: 112px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-safety-lightbox {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.site-safety-lightbox.hidden { display: none; }
.site-safety-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
}
.site-safety-lightbox-dialog {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 920px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.site-safety-lightbox-dialog img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  background: #0f172a;
}
.site-safety-lightbox-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
.site-safety-lightbox-caption {
  color: #e2e8f0;
  text-align: center;
}
.sf-safety-photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.sf-safety-photo-lightbox.hidden { display: none; }
.sf-safety-photo-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
}
.sf-safety-photo-lightbox-dialog {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 920px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.sf-safety-photo-lightbox-dialog img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  background: #0f172a;
}
.sf-safety-photo-lightbox-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
.sf-safety-photo-lightbox-caption {
  color: #e2e8f0;
  text-align: center;
  margin: 0;
}
.sf-review-photo,
.sf-review-photo-strip figure {
  cursor: pointer;
}
.site-safety-thumb-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.site-safety-thumb-loading,
.site-safety-thumb-missing {
  font-size: 12px;
  color: #94a3b8;
}
.site-safety-thumb figcaption {
  margin-top: 4px;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-safety-photo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.site-safety-photo-actions .btn,
.site-safety-photo-actions label.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  cursor: pointer;
}
.site-safety-footer {
  position: sticky;
  bottom: 0;
  margin-top: 12px;
  padding: 12px 0 max(12px, env(safe-area-inset-bottom, 0));
  background: linear-gradient(180deg, rgba(248, 250, 252, 0), #f8fafc 28%);
}
.site-safety-footer .btn {
  width: 100%;
  min-height: 48px;
}
@media (max-width: 640px) {
  .site-safety-photo-actions {
    grid-template-columns: 1fr;
  }
}
html[data-site-theme="dark"] .site-safety-item {
  background: #0f172a;
  border-color: #334155;
}
html[data-site-theme="dark"] .site-safety-item.is-pending {
  background: #1c1917;
  border-color: #a16207;
}
html[data-site-theme="dark"] .site-safety-item.is-done {
  background: #052e16;
  border-color: #166534;
}
html[data-site-theme="dark"] .site-safety-field-value,
html[data-site-theme="dark"] .site-safety-progress {
  color: #f8fafc;
}
html[data-site-theme="dark"] .site-safety-thumb-frame {
  background: #1e293b;
  border-color: #475569;
}
html[data-site-theme="dark"] .site-safety-footer {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0), #0f172a 28%);
}
@media (max-width: 640px) {
  .sf-review-details-row {
    grid-template-columns: 1fr;
    padding: 10px 0;
  }
  .sf-review-details-label {
    font-size: 0.78rem;
    color: #64748b;
  }
  .sf-review-details-split,
  .sf-review-signatures-grid {
    grid-template-columns: 1fr;
  }
}
.sf-review-details-portrait {
  max-width: 210mm;
  margin-left: auto;
  margin-right: auto;
}
.sf-review-details-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sf-review-details-table--split-col {
  table-layout: fixed;
  width: 100%;
  font-size: 0.82rem;
}
.sf-review-details-table--split-col th {
  width: 38%;
  max-width: none;
  white-space: normal;
}
.sf-review-signatures-card {
  max-width: 210mm;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}
.sf-review-signatures-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}
.sf-review-sig-col {
  min-width: 0;
  max-width: 100%;
}
.sf-review-signature-preview,
.sf-review-sup-sig-box {
  max-width: 100%;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .sf-review-signatures-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
  }
  .sf-review-signatures-grid--with-pm {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.sf-review-sig-heading {
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: #334155;
}
.sf-review-pm-sig-preview {
  margin-top: 8px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  text-align: center;
}
.sf-review-sig-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin: 0 0 8px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
}
.sf-review-sig-caret {
  flex: 0 0 auto;
  transition: transform 0.15s ease;
  color: #64748b;
}
.sf-review-sig-col.is-collapsed .sf-review-sig-caret {
  transform: rotate(-90deg);
}
.sf-review-sig-col.is-collapsed .sf-review-sig-body {
  display: none;
}
.sf-list-report--pdf {
  font-weight: 700;
  letter-spacing: 0.04em;
  min-width: 2.6rem;
}
.sf-review-sup-sig-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  width: 100%;
  max-width: 100%;
  margin-top: 8px;
  padding: 8px;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  box-sizing: border-box;
}
.sf-review-sup-sig-box--signed {
  border-style: solid;
  border-color: #86efac;
  background: #f0fdf4;
}
.sf-review-sup-sig-hint {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 6px;
}
.sf-report-print-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sf-report-print-overlay.hidden { display: none; pointer-events: none; }
.sf-report-print-overlay-box {
  background: #fff;
  border-radius: 10px;
  padding: 24px 28px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  max-width: 320px;
}
.sf-report-print-spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 12px;
  border: 3px solid #e2e8f0;
  border-top-color: #b91c1c;
  border-radius: 50%;
  animation: sf-report-spin 0.8s linear infinite;
}
@keyframes sf-report-spin { to { transform: rotate(360deg); } }
.btn.is-loading { opacity: 0.65; pointer-events: none; }
.sf-ohs-review .sf-review-details-portrait,
.sf-cpms-review .sf-review-details-portrait {
  max-width: 210mm;
  width: 100%;
}
.sf-review-signature-card {
  max-width: 210mm;
  margin-left: auto;
  margin-right: auto;
}
.sf-review-signature-img {
  max-width: 100%;
  width: auto;
  max-height: 80px;
  height: auto;
  display: block;
  margin-top: 8px;
  object-fit: contain;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.sf-review-details-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.sf-review-details-table th,
.sf-review-details-table td { border: 1px solid #e2e8f0; padding: 6px 10px; vertical-align: top; text-align: left; }
.sf-review-details-table th { width: 16%; background: #f8fafc; color: #475569; font-weight: 600; }
.sf-review-details-table--portrait {
  table-layout: fixed;
}
.sf-review-details-table--portrait th {
  width: 34%;
  max-width: 9rem;
}
.sf-review-details-table--portrait td {
  width: 66%;
  word-break: break-word;
}
.sf-review-mgt-block {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}
.sf-review-photo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  align-items: flex-start;
}
.sf-review-photo img,
.sf-review-photo-strip img,
.sf-review-photo-img {
  display: block;
  width: 112px;
  max-width: 112px;
  height: 112px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
@media (max-width: 640px) {
  .sf-review-details-table--portrait th,
  .sf-review-details-table--portrait td {
    display: block;
    width: 100%;
    max-width: none;
  }
  .sf-review-details-table--portrait th {
    border-bottom: 0;
    padding-bottom: 2px;
  }
  .sf-review-details-table--portrait td {
    border-top: 0;
    padding-top: 2px;
    padding-bottom: 10px;
  }
  .sf-review-details-table--portrait tr {
    display: block;
    margin-bottom: 4px;
  }
}
.sf-cpms-review-section h4.sf-review-section-title { font-size: 0.95rem; font-weight: 600; color: #334155; }
.sf-cpms-review-row:nth-child(even) { background: #f8fafc; }
.sf-review-photo-strip { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.sf-review-photo img,
.sf-review-photo-img {
  display: block;
  width: 112px;
  max-width: 112px;
  height: 112px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.sf-report-photo-strip .sf-review-photo img,
.sf-report-photo-strip .sf-review-photo-img {
  width: 112px;
  max-width: 112px;
  height: 112px;
}
.sf-manual-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.sf-manual-form-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; }
.sf-manual-form-grid select.pg-search-input { pointer-events: auto; cursor: pointer; }
.sf-manual-readonly-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.sf-manual-form-card,
.sf-manual-wo-card { margin-top: 0; margin-bottom: 12px; }
.sf-manual-toggle { align-self: end; margin: 0; font-size: 0.85rem; white-space: nowrap; }
.sf-manual-dept-toggle {
  display: inline-flex;
  align-self: end;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.sf-manual-dept-btn {
  border: 0;
  background: transparent;
  padding: 8px 14px;
  min-height: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: #475569;
  touch-action: manipulation;
}
.sf-manual-dept-btn + .sf-manual-dept-btn { border-left: 1px solid #cbd5e1; }
.sf-manual-dept-btn.is-active {
  background: var(--safety-accent, #ea580c);
  color: #fff;
}
.sf-setup-guide-wrap {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}
.sf-setup-guide-title { margin: 0 0 8px; font-weight: 600; }
.sf-setup-guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.sf-setup-guide-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #64748b;
}
.sf-setup-guide-step.is-done { color: #047857; }
.sf-setup-guide-step.is-current { color: #0f172a; font-weight: 600; }
.sf-setup-guide-mark {
  display: inline-flex;
  width: 1.25rem;
  justify-content: center;
  flex-shrink: 0;
}
.sf-manual-wo-card.is-collapsed {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.sf-manual-wo-head { align-items: flex-start; gap: 12px; }
.sf-manual-wo-summary strong { color: #0f172a; }
.sf-manual-wo-body.hidden { display: none; }
.sf-setup-step-block {
  margin-bottom: 20px;
  padding-bottom: 4px;
}
.sf-setup-step-block.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}
.sf-setup-step-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.sf-setup-step-head .panel-title { margin: 0 0 2px; }
.sf-setup-step-head .feed-meta { margin: 0; }
.sf-setup-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--safety-accent, #ea580c);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.sf-setup-schedule-note {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}
.sf-dr-picker-card,
.sf-dr-picker-card.is-collapsed {
  margin-top: 0;
  margin-bottom: 12px;
}
.sf-dr-picker-card.is-collapsed {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.sf-dr-picker-head { align-items: flex-start; gap: 12px; }
.sf-dr-picker-summary strong { color: #0f172a; }
.sf-dr-picker-body.hidden { display: none; }
.sf-dr-detail-card { margin-top: 0; }
.sf-activity-card.is-disabled {
  opacity: 0.65;
  pointer-events: none;
}
.sf-setup-step-block.is-highlight,
.sf-activity-card.is-highlight {
  outline: 2px solid var(--safety-accent, #ea580c);
  outline-offset: 2px;
  border-radius: 10px;
}
.sf-activity-card.is-highlight {
  outline-offset: 4px;
}
#sfSetupTypeBlock.is-highlight { outline-offset: 4px; }
.sf-activity-card { margin-top: 0; }
.sf-report-type-picker { margin-bottom: 0; }
.sf-wo-outside-date { opacity: 0.72; background: #fefce8; }
.sf-wo-outside-date.is-selected { background: #ffedd5; }
#sfManualDateDisplay { margin-top: 2px; }
.sf-obs-context { margin-bottom: 12px; padding: 12px; background: #f8fafc; border-radius: 8px; border: 1px solid var(--lz-border); }
.sf-detail-header {
  margin-bottom: 12px; padding: 10px 12px; background: #f8fafc; border-radius: 8px;
  border: 1px solid var(--lz-border);
}
.sf-detail-header-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.sf-detail-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sf-detail-edit-btn { display: inline-flex; align-items: center; gap: 4px; }
.sf-detail-edit-icon { font-size: 1rem; }
.sf-detail-grid--compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px 14px;
}
.sf-detail-field { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sf-detail-label { font-size: 0.72rem; color: var(--lz-muted, #64748b); text-transform: uppercase; letter-spacing: 0.03em; }
.sf-detail-value { font-size: 0.86rem; font-weight: 600; color: var(--lz-text, #0f172a); line-height: 1.25; word-break: break-word; }
.sf-location-link,
.sf-report-open-link {
  color: var(--lz-primary, #2563eb);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sf-detail-field--report .sf-report-open-link { font-size: 0.86rem; }
.sf-edit-setup-dialog { width: min(820px, 100%); }
.sf-edit-setup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px 14px;
  margin-bottom: 12px;
}
.sf-edit-setup-readonly { margin-bottom: 12px; padding: 10px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; }
.sf-report-photo-strip { display: flex; flex-wrap: wrap; gap: 4px; align-items: flex-start; }
.sf-report-photo img,
.sf-report-photo-img {
  display: block;
  width: 4cm;
  max-width: 4cm;
  height: auto;
  border: 1px solid #e2e8f0;
}
.sf-obs-context-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px 16px;
}
.sf-checklist-question { margin: 0 0 10px; font-weight: 600; line-height: 1.4; }
.sf-checklist-meta { font-size: 11px; color: var(--lz-muted, #64748b); }
.sf-checklist-card .sf-item-grid { margin-top: 0; }
.sf-obs-report-bar {
  position: sticky;
  bottom: 0;
  margin-top: 16px;
  padding: 14px 0 8px;
  background: linear-gradient(to top, #fff 85%, rgba(255, 255, 255, 0));
  border-top: 1px solid var(--lz-border);
  z-index: 2;
}
.sf-obs-report-bar .sf-workflow-actions { margin-top: 0; }
.sf-readonly-banner {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 0.9rem;
}
.sf-readonly-banner strong { color: #0f172a; }
.sf-inspection--readonly .sf-setup-section input,
.sf-inspection--readonly .sf-setup-section select,
.sf-inspection--readonly .sf-setup-section textarea,
.sf-inspection--readonly .sf-setup-section button:not(.sf-wizard-tab) {
  pointer-events: none;
}
.sf-inspection--readonly .sf-item-action-btn {
  pointer-events: auto;
}
.sf-closed-view-note { margin-right: 4px; }
.sf-review-sup-sig-box--readonly {
  cursor: default;
  opacity: 0.92;
}
.sf-save-status { min-height: 1.2em; margin: 8px 0 12px; }
.sf-items-section { margin-top: 20px; border-top: 1px solid var(--lz-border); padding-top: 16px; }

.sf-item-card {
  border: 1px solid var(--lz-border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  background: #fafafa;
}
.sf-item-card.sf-item--major { border-left: 4px solid #ea580c; background: #fff7ed; }
.sf-item-card.sf-item--high { border-left: 4px solid #c62828; background: #fff5f5; }
.sf-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.sf-item-grid { margin-top: 8px; }

.personnel-roster-table .personnel-row { cursor: pointer; }
.personnel-roster-table .personnel-row:hover { background: #f1f5f9; }
.personnel-profile-dialog { max-width: 880px; width: min(96vw, 880px); }
.pp-modal-head { align-items: flex-start; gap: 12px; }
.pp-modal-head h3 { margin: 0 0 6px; }
.pp-profile-tabs { margin: 0 0 14px; flex-wrap: wrap; }
.pp-profile-tabs .pg-filter-btn { font-size: 12px; padding: 6px 12px; }
.pp-profile-tabs .pg-filter-btn.is-active { background: var(--lz-primary, #2563eb); color: #fff; border-color: transparent; }
.pp-panel-section { margin-bottom: 16px; }
.pp-panel-section h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--lz-muted, #64748b); }
.pp-leave-summary { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.pp-leave-summary .pp-summary-chip {
  padding: 8px 12px; border-radius: 8px; border: 1px solid var(--lz-border, #e2e8f0); background: #f8fafc; font-size: 12px;
}
.pp-leave-summary .pp-summary-chip strong { display: block; font-size: 16px; margin-top: 2px; }
.pp-resigned-block { margin-top: 12px; padding: 12px; border-radius: 8px; background: #fef2f2; border: 1px solid #fecaca; }
.pp-status--ACTIVE { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.pp-status--HOME_LEAVE { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
.pp-status--IPA_PROCESSING { background: #ffedd5; color: #c2410c; border: 1px solid #fdba74; }
.pp-status--PRE_HIRE { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.pp-status--RESIGNED { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.pp-status--TERMINATED { background: #450a0a; color: #fecaca; border: 1px solid #7f1d1d; }
.pg-status-badge.pp-status--ACTIVE,
.pg-status-badge.pp-status--HOME_LEAVE,
.pg-status-badge.pp-status--IPA_PROCESSING,
.pg-status-badge.pp-status--PRE_HIRE,
.pg-status-badge.pp-status--RESIGNED,
.pg-status-badge.pp-status--TERMINATED {
  display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em;
}
.personnel-access-dl { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; margin: 0; }
.personnel-access-dl dt { font-weight: 600; color: var(--lz-muted, #64748b); }
.personnel-readonly-grid input[readonly] { background: #f8fafc; }

/* Permission flags editor */
.perm-flags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
  margin: 12px 0 16px;
}
.perm-flag-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  background: #fafbfc;
  cursor: pointer;
}
.perm-flag-row input { grid-row: span 2; margin-top: 2px; }
.perm-flag-row code { grid-column: 2; font-size: 10px; }

/* Permission Control (rework) */
.perm-owner-badge { color: #92400e; font-weight: 600; }
.perm-form-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}
.perm-form-panel {
  padding: 14px 16px;
  border: 1px solid var(--lz-border);
  border-radius: var(--lz-radius-sm);
  background: #fafbfc;
}
.perm-form-panel--access { background: #fff; }
.perm-form-panel-title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}
.perm-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin-bottom: 0;
}
.perm-form-grid--signin { grid-template-columns: 1fr; }
.perm-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.perm-field label { font-weight: 600; font-size: 12px; }
.perm-field input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  font-size: 14px;
}
.perm-field--wide { grid-column: 1 / -1; }
.perm-signin-toggle { margin: 0; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--lz-border); background: #fff; }
.perm-field-label { display: block; font-weight: 600; font-size: 12px; margin-bottom: 4px; }
.perm-readonly {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--lz-border);
  font-weight: 600;
}
.perm-combobox { position: relative; }
.perm-combobox-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  font-size: 14px;
}
.perm-combobox-list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 280px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  box-shadow: var(--lz-shadow);
}
.perm-combobox-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}
.perm-combobox-option:hover,
.perm-combobox-option.is-selected { background: var(--lz-red-soft); }
.perm-combobox-empty { padding: 12px; font-size: 12px; color: var(--lz-muted); }
.perm-toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}
.perm-toggle-row--compact { padding: 8px 0; }
.perm-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.perm-toggle-track {
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  transition: background 0.2s;
  margin-top: 2px;
}
.perm-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.perm-toggle-input:checked + .perm-toggle-track {
  background: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.28);
}
.perm-toggle-input:checked + .perm-toggle-track::after {
  transform: translateX(20px);
}
.perm-toggle-input:checked ~ .perm-toggle-text strong {
  color: #15803d;
}
.perm-toggle-row--on .perm-toggle-text strong {
  color: #15803d;
}
.perm-toggle-input:disabled + .perm-toggle-track { opacity: 0.55; }
.perm-toggle-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.perm-toggle-text strong { font-size: 13px; }
.perm-module-section { margin-top: 8px; }
.perm-module-intro { margin: 0 0 10px; max-width: 56rem; line-height: 1.45; font-size: 0.88rem; }
.perm-portal-access { margin: 0; }
.perm-portal-table-wrap { margin: 0; border: 1px solid var(--lz-border); border-radius: var(--lz-radius-sm); overflow: hidden; }
.perm-portal-table { margin: 0; font-size: 13px; }
.perm-portal-table thead th {
  background: #f1f5f9;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  padding: 8px 12px;
}
.perm-portal-table thead th.perm-portal-th-access { text-align: center; width: 88px; }
.perm-portal-table td { padding: 10px 12px; vertical-align: middle; border-top: 1px solid #e2e8f0; }
.perm-portal-group-row td {
  background: #f8fafc;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  padding: 6px 12px;
  border-top: 1px solid #e2e8f0;
}
.perm-portal-table-row--on { background: #f0fdf4; }
.perm-portal-td-name strong { display: block; font-size: 13px; color: #0f172a; }
.perm-portal-desc { display: block; font-size: 11px; color: #64748b; margin-top: 2px; line-height: 1.35; max-width: 28rem; }
.perm-portal-td-host code { font-size: 11px; color: #475569; background: #f1f5f9; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.perm-portal-td-access { text-align: center; width: 88px; }
.perm-portal-td-access .perm-table-switch { display: inline-flex; justify-content: center; }
@media (max-width: 720px) {
  .perm-form-grid { grid-template-columns: 1fr; }
  .perm-portal-table thead { display: none; }
  .perm-portal-table tr.perm-portal-table-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 8px 0; }
  .perm-portal-table tr.perm-portal-table-row td { display: block; border: none; padding: 2px 12px; }
  .perm-portal-td-host { grid-column: 1; }
  .perm-portal-td-access { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}
html[data-site-theme="dark"] .perm-form-panel { background: #0f172a; border-color: #334155; }
html[data-site-theme="dark"] .perm-form-panel--access { background: #0f172a; }
html[data-site-theme="dark"] .perm-form-panel-title { color: #e2e8f0; }
html[data-site-theme="dark"] .perm-signin-toggle { background: #1e293b; border-color: #475569; }
html[data-site-theme="dark"] .perm-portal-table thead th { background: #1e293b; color: #94a3b8; }
html[data-site-theme="dark"] .perm-portal-group-row td { background: #1e293b; }
html[data-site-theme="dark"] .perm-portal-table-row--on { background: #14532d33; }
html[data-site-theme="dark"] .perm-portal-td-host code { background: #1e293b; color: #cbd5e1; }
.perm-module-grid { margin-top: 0; }
.perm-module-table-wrap { margin-top: 8px; }
.perm-module-table { font-size: 13px; }
.perm-module-table thead th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--lz-muted);
  white-space: nowrap;
}
.perm-module-table thead th:nth-child(n+2) { text-align: center; width: 108px; }
.perm-module-row td { vertical-align: middle; }
.perm-table-module strong { display: block; font-size: 13px; }
.perm-table-module .feed-meta { display: block; font-size: 11px; margin-top: 2px; max-width: 320px; }
.perm-table-cell { text-align: center; }
.perm-table-na { color: #cbd5e1; font-size: 12px; }
.perm-table-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.perm-table-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.perm-table-switch input:checked + .perm-toggle-track,
.perm-table-switch input:checked + .perm-toggle-track--sm {
  background: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.28);
}
.perm-toggle-track--sm { width: 36px; height: 20px; margin: 0; }
.perm-toggle-track--sm::after { width: 14px; height: 14px; top: 3px; left: 3px; }
.perm-table-switch input:checked + .perm-toggle-track--sm::after { transform: translateX(16px); }
.perm-module-row--on {
  box-shadow: inset 4px 0 0 #16a34a;
}
.perm-mailbox-warn { color: #b45309; }
.perm-mailbox-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 4px;
  padding: 1px 6px;
  margin-right: 4px;
}
#permTableStatus { min-height: 1.25em; margin-top: 8px; }
/* Standard module sub-header (dashboard / top-level settings). Use perm-tab-nav + perm-tab-btn
   (Safety dashboard pattern). Aliases lz-module-subnav / lz-module-subnav-btn for new modules. */
.perm-tab-nav,
.lz-module-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 24px;
  padding: 0;
  width: 100%;
  border-bottom: 1px solid #e2e8f0;
  background: transparent;
}
.perm-tab-btn,
.lz-module-subnav-btn {
  position: relative;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 14px 22px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.25;
  transition: color 0.15s ease;
  margin-bottom: -1px;
}
.perm-tab-btn:hover,
.lz-module-subnav-btn:hover {
  color: #0f172a;
}
.perm-tab-btn.is-active,
.lz-module-subnav-btn.is-active {
  color: var(--lz-red, #c62828);
  font-weight: 600;
}
.perm-tab-btn.is-active::after,
.lz-module-subnav-btn.is-active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: var(--lz-red, #c62828);
  border-radius: 2px 2px 0 0;
}
.perm-row--costing { background: #fffbeb; }
.perm-row--hr { background: #fdf2f8; }
.perm-row--commercial { background: #eff6ff; }
.perm-row--accounts { background: #f0f9ff; }
.perm-row--ops { background: #eef6fc; }
.perm-row--eng { background: #f3f4f6; }
.perm-row--safety { background: #fff7ed; }
.perm-row--default { background: #fafbfc; }
.perm-module-row:hover { filter: brightness(0.99); }
.perm-table-cell--view { background: rgba(255,255,255,0.35); }
.perm-table-cell--module { background: rgba(255,255,255,0.2); }
.perm-table-cell--settings { background: rgba(255,255,255,0.12); }
.perm-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.perm-chat-toolbar {
  margin-bottom: 12px;
  align-items: center;
}
.perm-chat-table .perm-chat-webhook-field {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 520px;
  border: 1px solid var(--lz-border, #cbd5e1);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.perm-chat-webhook-field--set {
  border-color: #86efac;
  background: rgba(34, 197, 94, 0.04);
}
.perm-chat-webhook-display {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0.5rem 0.65rem;
  cursor: default;
  user-select: none;
}
.perm-chat-webhook-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: #334155;
}
.perm-chat-webhook-text--empty {
  color: #94a3b8;
  font-style: italic;
}
.perm-chat-webhook-input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0.5rem 0.65rem;
  font-size: 13px;
  font-family: inherit;
  background: transparent;
}
.perm-chat-webhook-input.hidden,
.perm-chat-webhook-display.hidden {
  display: none !important;
}
.perm-chat-webhook-input:focus {
  outline: none;
}
.perm-chat-webhook-field--editing {
  border-color: var(--lz-accent, #2563eb);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}
.perm-chat-webhook-edit {
  flex: 0 0 auto;
  border: 0;
  border-left: 1px solid var(--lz-border, #e2e8f0);
  background: var(--lz-surface-muted, #f8fafc);
  color: #64748b;
  padding: 0 0.65rem;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}
.perm-chat-webhook-edit:hover {
  background: #e2e8f0;
  color: #334155;
}
.perm-chat-webhook-edit.is-active,
.perm-chat-webhook-field--editing .perm-chat-webhook-edit {
  background: #dbeafe;
  color: #1d4ed8;
}
.perm-chat-actions {
  white-space: nowrap;
  width: 88px;
}
.perm-status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #fee2e2;
  color: #991b1b;
}
.perm-status-pill.is-active { background: #dcfce7; color: #166534; }
.perm-row-actions { white-space: nowrap; }
.perm-row-actions .btn { margin-right: 4px; }
.btn-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}
.btn-danger:hover { background: #fee2e2; }

/* Daily Records */
.dr-page-body { display: flex; flex-direction: column; min-height: 0; }
.dr-date-label { display: inline-flex; flex-direction: column; gap: 4px; }
.dr-header-card { margin-bottom: 14px; background: #f8fafc; }
.dr-header-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.dr-header-field strong { display: block; margin-top: 4px; font-size: 14px; }
.dr-site-attendance {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}
.dr-site-attendance .dr-header-field strong {
  display: block;
  font-size: 16px;
}
.vo-dr-cell-ok {
  color: #166534;
  font-weight: 600;
}
.vo-dr-cell-missing {
  color: #b45309;
  font-weight: 600;
  font-size: 12px;
}
.vo-dr-row-inactive {
  opacity: 0.55;
  background: #f8fafc;
}
.dr-crew-row-inactive {
  opacity: 0.55;
  background: #f1f5f9;
}
.dr-crew-row-inactive input:disabled,
.dr-crew-row-inactive .dr-inp:disabled {
  background: #e2e8f0;
  color: #64748b;
}
.dr-crew-actions {
  white-space: nowrap;
}
.dr-crew-actions .dr-row-inactive {
  color: #b45309;
}
.dr-crew-actions .dr-row-restore {
  color: #166534;
}
.is-hidden { display: none !important; }
.dr-catalog-other { margin-top: 4px; }
.wp-sch-preview {
  margin-top: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.vo-dr-actions {
  white-space: nowrap;
  display: flex;
  gap: 6px;
  align-items: center;
}
.vo-dr-actions .btn {
  min-width: 36px;
  padding-left: 8px;
  padding-right: 8px;
  font-size: 16px;
  line-height: 1;
}
.vo-dr-inactive-mh {
  color: #b45309;
}
.vo-dr-reactivate-mh {
  color: #166534;
}
.vo-dr-edit-panel {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid #fde68a;
  background: #fffbeb;
}
.vo-dr-edit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.vo-dr-edit-grid {
  margin-top: 8px;
}
.vo-dr-edit-site-portal {
  margin: 12px 0;
  display: grid;
  gap: 10px;
}
.vo-dr-edit-site-portal .site-mnt-field {
  margin: 0;
}
.dr-sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 16px;
}
.dr-section-card { margin: 0; min-width: 0; }
@media (min-width: 1200px) {
  .dr-sections-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1600px) {
  .dr-sections-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dr-section-card .dr-editor-table-wrap {
    overflow-x: auto;
  }
}
.dr-drive-notice {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  color: #1e40af;
  font-size: 12px;
}
.dr-list-row { cursor: pointer; }
.dr-range-toolbar { flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.dr-summary-host { margin: 12px 0; }
.dr-summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}
.dr-summary-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--lz-border);
  background: #fff;
  min-width: 72px;
}
.dr-summary-chip strong { font-size: 18px; color: var(--lz-text); }
.dr-summary-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--lz-muted); }
.dr-summary-chip--total { border-color: var(--lz-red-soft); background: #fef2f2; }
.dr-summary-chip--warn strong { color: #b45309; }
.dr-summary-chip.is-active,
button.dr-summary-chip.is-active {
  border-color: var(--lz-red);
  box-shadow: 0 0 0 1px var(--lz-red-soft);
}

/* Status summary cards (shared filter UX) */
.status-summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}
.status-summary-card,
button.status-summary-card {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--lz-border);
  background: #fff;
  min-width: 72px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
}
.status-summary-card strong { font-size: 18px; color: var(--lz-text); }
.status-summary-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--lz-muted); }
.status-summary-card.is-active {
  border-color: var(--lz-red);
  background: #fef2f2;
  box-shadow: 0 0 0 1px var(--lz-red-soft);
}
.sch-status-card--all { background: #f8fafc; border-color: #cbd5e1; }
.sch-status-card--planned { background: #eff6ff; border-color: #93c5fd; }
.sch-status-card--released { background: #fff7ed; border-color: #fdba74; }
.sch-status-card--completed { background: #ecfdf5; border-color: #6ee7b7; }
.sch-status-card--cancelled { background: #fef2f2; border-color: #fca5a5; }
.sch-status-card--all.is-active { background: #e2e8f0; }
.sch-status-card--planned.is-active { background: #dbeafe; }
.sch-status-card--released.is-active { background: #ffedd5; }
.sch-status-card--completed.is-active { background: #d1fae5; }
.sch-status-card--cancelled.is-active { background: #fecaca; }
.ctr-status-summary { margin-bottom: 12px; }

/* Dashboard action summary cards */
.dash-action-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.dash-action-card {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--lz-border);
  background: #fff;
  min-width: 100px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.dash-action-card strong { font-size: 22px; color: var(--lz-red); }
.dash-action-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--lz-muted); }
.dash-action-card.is-active {
  border-color: var(--lz-red);
  background: #fef2f2;
}

.lz-dash-tasks { margin-top: 0; }
.lz-dash-tabs {
  margin: 0 0 16px;
  padding: 0 2px;
}
.lz-dash-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lz-dash-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.lz-dash-pane.hidden { display: none; }
[data-lz-module="dashboard"] .sch-set-tab.lz-dash-tab.is-active {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border-color: transparent;
  color: #fff;
}
.lz-dash-tasks .section-head-row { align-items: baseline; gap: 12px; }
.lz-dash-task-tabs { margin: 12px 0 10px; }
.lz-dash-task-content { min-height: 72px; }

/* Announcements */
.ann-strip-urgent { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.ann-strip-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 8px; }
.ann-strip-card {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--lz-border);
  background: #fafafa;
}
.ann-list { display: flex; flex-direction: column; gap: 12px; }
.ann-card {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--lz-border);
  background: #fff;
}
.ann-card-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
.ann-type-tag { font-size: 10px; text-transform: uppercase; color: var(--lz-muted); }
.ann-pin, .ann-priority-tag { font-size: 10px; padding: 2px 6px; border-radius: 4px; background: #fef3c7; color: #92400e; }
.ann-priority--urgent { border-color: #fca5a5; background: #fef2f2; }
.ann-body { font-size: 13px; margin: 6px 0; white-space: pre-wrap; }
.ann-body-preview { font-size: 12px; margin: 4px 0 0; color: var(--lz-muted); }
button.sf-kpi {
  cursor: pointer;
  border: 1px solid var(--lz-border);
  background: #fff;
  font: inherit;
  text-align: left;
}
button.sf-kpi.is-active { border-color: var(--lz-red); background: #fef2f2; }

.dr-workflow-host { margin-bottom: 14px; }
.dr-workflow-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--lz-border);
}
.dr-wf-status { margin-left: auto; }
.dr-editor-table-wrap { overflow-x: auto; margin-bottom: 8px; }
.dr-editor-table .dr-inp {
  width: 100%;
  min-width: 60px;
  font-size: 12px;
  padding: 4px 6px;
  border: 1px solid var(--lz-border);
  border-radius: 4px;
}
.dr-editor-table .dr-inp-time { max-width: 90px; }
.dr-editor-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dr-save-status { min-height: 1.2em; }
.dr-save-status--ok { color: #047857; font-weight: 600; }
.dr-save-status--error { color: #b91c1c; font-weight: 600; }
.dr-save-status--pending { color: #64748b; }
.dr-crew-table .dr-inc-cell { min-width: 148px; vertical-align: top; }
.dr-inc-strip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 132px;
}
.dr-inc-mode {
  display: inline-flex;
  border: 1px solid var(--lz-border, #e2e8f0);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.dr-inc-mode-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 3px 7px;
  font-size: 11px;
  line-height: 1.2;
  color: #64748b;
  cursor: pointer;
}
.dr-inc-mode-btn + .dr-inc-mode-btn {
  border-left: 1px solid var(--lz-border, #e2e8f0);
}
.dr-inc-mode-btn.is-active {
  background: #0f172a;
  color: #fff;
}
.dr-inc-mode-btn:disabled {
  opacity: 0.55;
  cursor: default;
}
.dr-inc-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dr-inc-detail.is-hidden { display: none; }
.dr-inc-detail .dr-inc-amount,
.dr-inc-detail .dr-inc-desc {
  min-width: 0;
  font-size: 11px;
}
.dr-inc-team-block {
  margin: 10px 0 4px;
  padding: 10px 12px;
  border: 1px solid var(--lz-border, #e2e8f0);
  border-radius: 8px;
  background: #f8fafc;
}
.dr-inc-team-block .dr-inc-strip {
  max-width: 220px;
}
.dr-photo-upload { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 12px; }
.dr-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.dr-photo-card { margin: 0; border: 1px solid var(--lz-border, #e2e8f0); border-radius: 8px; overflow: hidden; }
.dr-photo-thumb { min-height: 100px; display: flex; align-items: center; justify-content: center; background: #f8fafc; font-size: 12px; color: #64748b; }
.dr-photo-thumb img { width: 100%; height: 120px; object-fit: cover; display: block; }
.dr-photo-card figcaption { padding: 6px 8px; font-size: 12px; }

/* Scheduler calendar */
.sch-cal-nav {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.sch-calendar-host { margin-bottom: 16px; }
.sch-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 4px;
}
.sch-cal-head {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--lz-muted);
  padding: 4px 0;
}
.sch-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.sch-cal-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 96px;
  padding: 6px 8px;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: box-shadow 0.15s, transform 0.12s;
}
.sch-cal-cell--dow-1 { background: #eff6ff; border-color: #93c5fd; }
.sch-cal-cell--dow-2 { background: #ecfdf5; border-color: #6ee7b7; }
.sch-cal-cell--dow-3 { background: #fefce8; border-color: #fde047; }
.sch-cal-cell--dow-4 { background: #fff7ed; border-color: #fdba74; }
.sch-cal-cell--dow-5 { background: #f5f3ff; border-color: #c4b5fd; }
.sch-cal-cell--dow-6 { background: #fdf2f8; border-color: #f9a8d4; }
.sch-cal-cell--sunday {
  background: #fef2f2;
  border-color: #fca5a5;
}
.sch-cal-cell--ph {
  background: linear-gradient(160deg, #fef3c7 0%, #fde68a 100%);
  border-color: #f59e0b;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.25);
}
.sch-cal-cell--today {
  box-shadow: 0 0 0 2px var(--lz-red), 0 4px 12px rgba(198, 40, 40, 0.18);
  transform: translateY(-1px);
  z-index: 1;
  position: relative;
}
.sch-cal-cell:hover { border-color: var(--lz-red); filter: brightness(0.98); }
.sch-cal-cell--adjacent {
  opacity: 0.92;
  border-style: dashed;
  filter: saturate(0.85);
}
.sch-cal-cell--adjacent:hover { filter: saturate(0.92) brightness(0.98); }
.sch-cal-month-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--lz-muted);
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sch-cal-ph-label {
  font-size: 9px;
  font-weight: 700;
  color: #b45309;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sch-cal-date { font-weight: 700; font-size: 11px; color: var(--lz-red); line-height: 1.25; }
.sch-cal-dow { font-size: 10px; color: var(--lz-muted); margin-bottom: 4px; }
.sch-cal-stat { font-size: 11px; line-height: 1.35; }
.sch-cal-stat--muted { color: var(--lz-muted); }
.sch-cal-stat--released { color: #2563eb; }
.sch-cal-stat--done { color: #059669; }
.sch-cal-stat--warn { color: #b45309; }
.sch-cal-stat--ok { color: #047857; }
.sch-cal-stat--teams { color: #1d4ed8; }
.sch-cal-buckets { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.sch-cal-bucket { font-size: 10px; line-height: 1.3; color: #334155; }
.sch-cal-bucket strong { font-weight: 700; }
.sch-cal-bucket--ug { color: #1d4ed8; }
.sch-cal-bucket--ag { color: #047857; }
.sch-cal-bucket--subcon { color: #b45309; }

.dept-store-tabs { margin-bottom: 12px; }
.store-worker-pick { display: block; margin: 6px 0; font-size: 14px; }
.store-work-line { margin-bottom: 10px; }
.store-work-line-fields { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.store-work-line-fields label { font-size: 13px; }
.sch-cal-shell { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 900px) {
  .sch-cal-weekdays,
  .sch-cal-grid {
    min-width: 560px;
    gap: 4px;
  }
  .sch-cal-cell {
    min-height: 84px;
    padding: 4px 3px;
  }
  .sch-cal-head { font-size: 9px; padding: 2px 0; }
  .sch-cal-date { font-size: 11px; }
  .sch-cal-stat { font-size: 9px; line-height: 1.25; }
  .sch-cal-stat--muted,
  .sch-cal-stat--released,
  .sch-cal-stat--done,
  .sch-cal-stat--warn,
  .sch-cal-stat--ok { display: none; }
}

/* Alignment hosted */
.aln-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

/* Engineering schematic editor */
.sch-layout {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.sch-toolbar { flex-wrap: wrap; gap: 8px; align-items: center; }
.sch-toolbar-divider { width: 1px; height: 24px; background: var(--lz-border); margin: 0 4px; }
.sch-source-card { padding: 12px 14px; }
.sch-source-pane--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 8px 0 0;
}
.sch-prop-inline { font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.sch-draw-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 12px;
  min-height: calc(100vh - 280px);
  align-items: stretch;
}
.sch-workspace {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr) minmax(240px, 300px);
  gap: 8px;
  min-height: 0;
  flex: 1;
  align-items: stretch;
  overflow: hidden;
}
.sch-workspace--draw {
  grid-template-columns: minmax(0, 1fr) 272px;
  min-height: 0;
  flex: 1;
}
.sch-workspace--draw.sch-workspace--insert-collapsed {
  grid-template-columns: minmax(0, 1fr) 272px;
}
.sch-workspace--draw.sch-workspace--right-collapsed {
  grid-template-columns: minmax(0, 1fr);
}
.sch-workspace--draw.sch-workspace--insert-collapsed.sch-workspace--right-collapsed {
  grid-template-columns: minmax(0, 1fr);
}
.sch-insert-panel,
.sch-right-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  position: relative;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}
.sch-workspace--draw .sch-right-panel {
  width: 272px;
  max-width: 272px;
  justify-self: end;
}
.sch-insert-panel.is-collapsed,
.sch-right-panel.is-collapsed {
  min-width: 56px;
  max-width: 72px;
  padding: 6px 4px;
  overflow: visible;
}
.sch-insert-panel.is-collapsed .sch-insert-panel-body,
.sch-insert-panel.is-collapsed .sch-panel-head-row,
.sch-right-panel.is-collapsed .sch-right-panel-body,
.sch-right-panel.is-collapsed .sch-panel-head-row {
  display: none;
}
.sch-panel-expand {
  position: absolute;
  top: 8px;
  z-index: 2;
  white-space: nowrap;
}
.sch-insert-panel.is-collapsed .sch-panel-expand {
  display: inline-flex !important;
  left: 0;
}
.sch-right-panel.is-collapsed .sch-panel-expand {
  display: inline-flex !important;
  right: 0;
}
.sch-insert-panel-body,
.sch-right-panel-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.sch-insert-panel .sch-palette-chip-scroll {
  max-height: 140px;
}
.sch-right-mode-tabs {
  flex-shrink: 0;
}
.sch-right-shared-pane {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sch-right-insert-pane,
.sch-right-materials-pane {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}
.sch-right-shared-pane .sch-mat-filter-list,
.sch-right-shared-pane .sch-materials-list {
  flex: 1;
  min-height: 0;
  max-height: none;
}
.sch-right-shared-pane .sch-mat-filter-list {
  --sch-mat-pick-row-h: 26px;
  --sch-mat-pick-visible-rows: 10;
}
@media (min-height: 900px) {
  .sch-right-shared-pane .sch-mat-filter-list {
    --sch-mat-pick-visible-rows: 12;
  }
}
@media (min-height: 1080px) {
  .sch-right-shared-pane .sch-mat-filter-list {
    --sch-mat-pick-visible-rows: 15;
  }
}
.sch-right-shared-pane .sch-materials-list .table-wrap,
.sch-right-shared-pane .sch-materials-list .sch-mat-table-wrap {
  max-height: 260px;
  overflow: auto;
}
.sch-panel-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.sch-panel-toggle {
  flex-shrink: 0;
}
.mat-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.mat-badge--ok { background: #dcfce7; color: #166534; }
.mat-badge--off { background: #f1f5f9; color: #64748b; }
.mat-badge--lock { background: #fef3c7; color: #92400e; }
.mat-row--inactive { opacity: 0.55; }
.mat-search-input { min-width: 180px; max-width: 240px; }
.mat-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: flex-end;
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
}
.mat-bulk-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--lz-muted);
}
.mat-bulk-field .pg-search-input { min-width: 100px; font-weight: 400; }
.mat-bulk-count { align-self: center; min-width: 88px; font-weight: 600; }
.mat-col-check { width: 36px; text-align: center; }
.mat-table .mat-row.is-selected { background: #eff6ff; }
.mat-table .mat-row { cursor: pointer; }
.mat-flag-row { margin: 10px 0; }
.sch-top-insert-bar {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sch-palette-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  align-items: stretch;
  min-height: 0;
}
.sch-palette-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.sch-palette-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  min-height: 0;
}
.sch-palette-filter-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.sch-palette-filter-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--lz-muted);
}
.sch-palette-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-content: flex-start;
}
.sch-palette-chip-scroll {
  max-height: 280px;
  overflow-y: auto;
  padding-right: 2px;
}
.sch-palette-chip-grid .sch-palette-btn {
  min-width: 0;
  height: 24px;
  padding: 0 8px;
  font-size: 10px;
  border-radius: 4px;
}
.sch-palette-chip-grid .sch-palette-btn--size {
  min-width: 36px;
}
@media (max-width: 900px) {
  .sch-palette-split { grid-template-columns: 1fr; }
}
.sch-insert-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 4px;
}
.sch-insert-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}
.sch-insert-meta-label { color: var(--lz-muted); font-weight: 600; }
.sch-active-line-label { font-size: 12px; font-weight: 700; color: var(--lz-red); }
.sch-size-row-label { font-size: 10px; font-weight: 700; color: var(--lz-muted); text-transform: uppercase; min-width: 36px; }
.sch-bq-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sch-bq-group-title { margin: 0 0 8px; font-size: 12px; font-weight: 700; color: var(--lz-red); }
.sch-bq-list { margin: 0; padding-left: 18px; font-size: 13px; }
.sch-mat-row--compact { padding: 8px 0; border-bottom: 1px solid var(--lz-border); }
.sch-mat-row-main { display: flex; align-items: center; gap: 8px; }
.sch-mat-mini-sym { flex-shrink: 0; }
.sch-mat-actions--compact { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.sch-edit-type-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sch-mat-pick-row--brand strong { font-size: 15px; color: var(--lz-red); }
.sch-node--builtin .sch-builtin-symbol { pointer-events: all; }
.sch-turn-group { gap: 4px; }
.sch-turn-btn { min-width: 64px; height: 26px; font-size: 11px; }
.sch-route-modal-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.sch-route-modal-btn {
  padding: 10px 12px;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.sch-route-modal-btn:hover { border-color: var(--lz-red); background: #fef2f2; }
.sch-route-modal-btn.is-active {
  border-color: var(--lz-red);
  background: #fef2f2;
  color: var(--lz-red);
}
.sch-route-modal-flip-row { margin-top: 10px; }
.sch-node--empty-point .sch-empty-point-hit {
  fill: #e2e8f0;
  stroke: #64748b;
  stroke-width: 1.5;
}
.sch-node--line-start .sch-empty-point-hit { fill: #dbeafe; stroke: #2563eb; }
.sch-node--pipe-stub .sch-empty-point-hit { fill: #fef3c7; stroke: #d97706; }
.sch-empty-point-label { font-size: 9px; fill: #64748b; }
.sch-route-group { gap: 4px; flex-wrap: wrap; }
.sch-route-group--start .sch-insert-meta-label { color: var(--lz-red); }
.sch-route-btn {
  min-width: 28px;
  width: 28px;
  height: 26px;
  padding: 0;
  font-size: 14px;
  line-height: 1;
}
.sch-route-flip { min-width: 28px; font-size: 13px; }
.sch-route-btn.is-active,
.sch-turn-btn.is-active {
  border-color: var(--lz-red);
  background: var(--lz-red-soft);
  color: var(--lz-red);
}
.sch-source-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--lz-border);
}
.sch-source-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--lz-red);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sch-modal-card--sm { max-width: 360px; }
.sch-join-modal-fields,
.sch-join-manual-fields { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.sch-join-field { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.sch-join-modal-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sch-join-manual { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--lz-border, #e2e8f0); }
.sch-join-ref { font-size: 11px; word-break: break-all; }
.sch-elbow-options { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.sch-orient-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sch-orient-vertical-row { margin-top: 10px; }
.sch-orient-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border: 1px solid var(--lz-border, #e2e8f0);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  min-height: 96px;
}
.sch-orient-btn:hover,
.sch-orient-btn:focus {
  border-color: var(--lz-red);
  background: #fef2f2;
}
.sch-orient-btn--vertical { width: 100%; }
.sch-orient-btn--vertical-card {
  width: 100%;
  min-height: 72px;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  border-color: #818cf8;
}
.sch-orient-btn--vertical-card:hover,
.sch-orient-btn--vertical-card:focus {
  border-color: #4f46e5;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}
.sch-orient-vertical-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #4f46e5;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.sch-line-chip--branch { font-size: 11px; }
.sch-label-leader { pointer-events: none; }
.sch-node-label--name { fill: #334155; font-size: 11px; font-weight: 400; }
.sch-node-label--ef { fill: #64748b; font-size: 10px; font-weight: 400; }
.sch-orient-caption {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}
.sch-orient-preview { display: block; }
.sch-modal-card--orient { max-width: 380px; }
.sch-route-orient-btn.is-active,
.sch-orient-btn.is-active {
  border-color: var(--lz-red, #dc2626);
  background: #fef2f2;
  box-shadow: 0 0 0 1px var(--lz-red, #dc2626);
}
.sch-elbow-opt-btn {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
}
.sch-elbow-opt-btn:hover { border-color: var(--lz-red); background: #fef2f2; }
.sch-mat-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}
.sch-mat-group-head .sch-mat-group-chevron { font-size: 10px; color: var(--lz-muted); }
.sch-mat-group.is-collapsed .sch-mat-group-body { display: none; }
.sch-mat-badge--drawn { background: #dcfce7; color: #166534; }
.sch-mat-badge--needs { background: #fef3c7; color: #92400e; }
.sch-mat-badge--dr-only { background: #f1f5f9; color: #475569; }
.sch-mat-badge--drawing-only { background: #dbeafe; color: #1d4ed8; }
.sch-mat-row--drawn { border-left: 3px solid #22c55e; }
.sch-mat-row--needs { border-left: 3px solid #f59e0b; }
.sch-node--vertical-elbow .sch-vertical-marker { stroke: #64748b; stroke-width: 2; fill: none; }
.sch-left-panel, .sch-right-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 12px;
  overflow: hidden;
}
.sch-left-section { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--lz-border); }
.sch-left-section:last-child { border-bottom: 0; margin-bottom: 0; }
.sch-panel-title { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--lz-red); text-transform: uppercase; letter-spacing: 0.04em; }
.sch-source-tabs--compact { margin-bottom: 8px; }
.sch-source-pane--stack { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.sch-center-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}
.sch-right-selected { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--lz-border); }
.sch-mat-warnings { padding: 8px 10px; margin-bottom: 10px; border-radius: 8px; background: #fffbeb; border: 1px solid #fcd34d; font-size: 12px; }
.sch-mat-badge { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 999px; margin-left: auto; }
.sch-mat-badge--ok { background: #dcfce7; color: #166534; }
.sch-mat-badge--warn { background: #fef3c7; color: #92400e; }
.sch-mat-row--placed { border-left: 3px solid #22c55e; }
.sch-mat-row--unplaced { border-left: 3px solid #f59e0b; }
.sch-bottom-dock {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}
.sch-bottom-dock[data-dock-height="collapse"] { flex: 0 0 auto; }
.sch-bottom-dock[data-dock-height="collapse"] .sch-dock-body { display: none; }
.sch-bottom-dock[data-dock-height="half"] { flex: 0 0 180px; max-height: 28vh; }
.sch-bottom-dock[data-dock-height="full"] { flex: 1 1 50vh; max-height: 60vh; }
.sch-dock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--lz-border);
  background: #f8fafc;
  flex-wrap: wrap;
}
.sch-dock-tabs { margin: 0; flex-wrap: wrap; }
.sch-dock-resize { display: flex; gap: 4px; }
.sch-dock-body { flex: 1; min-height: 0; overflow: auto; padding: 10px; }
.sch-dock-pane { min-height: 120px; }
.sch-dock-table-wrap { max-height: 180px; overflow: auto; }
.sch-dock-totals { margin-bottom: 8px; }
.sch-dock-ok { color: #059669; }
.sch-validation-list { list-style: none; margin: 0; padding: 0; }
.sch-validation-item { margin-bottom: 6px; }
.sch-validation-item--warn button { color: #b45309; border-color: #fcd34d; }
.sch-node--pipe .sch-pipe-bar { opacity: 0.95; }
.sch-node--pipe.sch-node--selected .sch-pipe-bar { stroke: #f59e0b !important; stroke-width: 2 !important; }
.sch-fusion-totals { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; font-size: 13px; }
.sch-fusion-ok-text { color: #166534; }
.sch-fusion-miss-text { color: #b45309; }
.sch-fusion-missing { margin-bottom: 12px; }
.sch-fusion-miss-item { color: #92400e; font-weight: 600; }
.sch-fusion-badge { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 999px; }
.sch-fusion-badge--ok { background: #dcfce7; color: #166534; }
.sch-fusion-badge--warn { background: #fef3c7; color: #92400e; }
.sch-fusion-miss td { background: #fffbeb; }
.sch-canvas-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 0;
}
.sch-mat-drawer {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 12px;
  transition: width 0.2s, min-width 0.2s, padding 0.2s;
}
.sch-mat-drawer--collapsed {
  min-width: 36px;
  width: 36px;
  padding: 8px 4px;
  overflow: hidden;
}
.sch-mat-drawer--collapsed .sch-right-tabs,
.sch-mat-drawer--collapsed .sch-right-pane,
.sch-mat-drawer--collapsed .pg-toolbar { display: none; }
.sch-mat-drawer-toggle {
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 28px;
  height: 48px;
  border: 1px solid var(--lz-border);
  border-radius: 999px;
  background: #fff;
  color: var(--lz-red);
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.sch-mat-drawer-toggle:hover { background: var(--lz-red-soft); border-color: var(--lz-red); }
.sch-source-tabs, .sch-right-tabs { margin-bottom: 10px; flex-wrap: wrap; }
.sch-source-pane, .sch-right-pane { padding: 4px 0; min-height: 0; overflow: auto; }
.sch-node--grouped .sch-node-hit { stroke: transparent; }
.sch-canvas-host--conn-graph .sch-node--grouped .sch-node-hit { stroke: #818cf8; stroke-width: 1; }
.sch-node--selected.sch-node--grouped .sch-node-hit { stroke: #2563eb; }
.sch-node--joined .sch-node-hit,
.sch-node--joined .sch-pipe-bar { /* joined = physical touch, no overlay */ }
.sch-canvas-host--conn-graph .sch-node--joined .sch-node-hit { stroke: #16a34a; stroke-width: 1; }
.sch-canvas-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  padding: 6px 10px;
  border-bottom: 1px solid var(--lz-border);
  background: #f8fafc;
}
.sch-toolbar-spacer { flex: 1 1 12px; min-width: 8px; }
.sch-view-menu-wrap { position: relative; }
.sch-view-menu-panel {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 12;
  min-width: 168px;
  padding: 8px 10px;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sch-view-menu-panel.hidden { display: none; }
.sch-screenshot-btn {
  font-weight: 600;
  white-space: nowrap;
}
.sch-pipe-edge--selected .sch-pipe-bar { stroke: #2563eb !important; filter: drop-shadow(0 0 2px rgba(37,99,235,0.45)); }
.sch-icon-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--lz-border);
  border-radius: 6px;
  background: #fff;
  font-size: 15px;
  cursor: pointer;
  line-height: 1;
}
.sch-icon-btn:hover { border-color: var(--lz-red); background: #fef2f2; }
.sch-icon-btn.is-active { border-color: var(--lz-red); background: var(--lz-red-soft); box-shadow: inset 0 0 0 1px var(--lz-red); }
.sch-canvas-wrap {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}
.sch-view-controls {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 6px 10px;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  max-width: calc(100% - 16px);
}
.sch-view-toggle {
  font-size: 11px;
  color: var(--lz-text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.sch-view-toggle--dev { color: var(--lz-muted); font-size: 10px; }
.sch-canvas-card.sch-screenshot-mode .sch-canvas-toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 6px 10px;
  background: rgba(255,255,255,0.92);
}
.sch-canvas-card.sch-screenshot-mode .sch-canvas-toolbar > :not(#btnSchScreenshotExit) { display: none !important; }
.sch-canvas-card.sch-screenshot-mode .sch-canvas-toolbar #btnSchScreenshotExit { display: inline-flex !important; }
.sch-canvas-card.sch-screenshot-mode + .sch-bottom-dock { display: none; }
.sch-toolbar-card--compact { padding: 8px 12px; margin-bottom: 0; }
.sch-toolbar-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}
.sch-toolbar-status {
  margin: 0;
  flex: 1 1 160px;
  min-width: 0;
}
.sch-toolbar-source {
  flex: 1 1 320px;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}
.sch-source-inline--head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 10px;
  margin: 0;
  padding: 0;
  border: 0;
}
.sch-card--rose {
  background: linear-gradient(165deg, #fff7f7 0%, #fef2f2 100%);
  border-color: #fecaca;
}
.sch-card--sky {
  background: linear-gradient(165deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
}
.sch-card--canvas {
  background: linear-gradient(180deg, #fafafa 0%, #f4f4f5 100%);
  border-color: #e4e4e7;
}
.sch-route-card {
  border-radius: 8px;
  padding: 6px 8px;
  flex-shrink: 0;
}
.sch-insert-meta-row--compact {
  gap: 6px 8px;
  margin-bottom: 0;
}
.sch-direction-compact {
  font-size: 11px;
  white-space: nowrap;
}
.sch-input-compact {
  height: 26px;
  min-height: 26px;
  padding: 2px 6px;
  font-size: 11px;
  line-height: 1.2;
  box-sizing: border-box;
}
.sch-line-select.sch-input-compact { min-width: 72px; max-width: 96px; }
.sch-quick-palette--duo {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(180px, 1.6fr);
  gap: 10px 14px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #e2e8f0;
  align-items: start;
}
.sch-quick-palette {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 16px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--lz-border);
}
.sch-palette-filter-block--inline {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.sch-palette-filter-block--inline .sch-palette-filter-label {
  flex-shrink: 0;
  min-width: 32px;
  padding-top: 3px;
  margin: 0;
}
.sch-palette-filter-block--inline.sch-palette-fit-block {
  min-width: 0;
}
.sch-palette-chip-grid--2row {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, minmax(22px, auto));
  grid-auto-columns: minmax(min-content, max-content);
  gap: 3px 4px;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  flex: 1;
  min-width: 0;
  padding-bottom: 2px;
}
.sch-palette-chip-grid--compact {
  gap: 3px 4px;
}
.sch-palette-chip-grid--compact .sch-palette-btn--size,
.sch-palette-chip-grid--2row .sch-palette-btn {
  min-width: 32px;
  padding: 2px 6px;
  font-size: 10px;
  line-height: 1.2;
}
.sch-palette-chip-scroll--compact {
  max-height: 56px;
  overflow-x: auto;
  overflow-y: hidden;
}
.sch-palette-chip-scroll--compact .sch-palette-chip-grid {
  flex-wrap: nowrap;
  width: max-content;
}
.sch-palette-chip-scroll--compact .sch-palette-btn {
  padding: 2px 8px;
  font-size: 10px;
  white-space: nowrap;
}
.sch-right-insert-pane .sch-mat-filter-input,
.sch-mat-filter-input.sch-input-compact {
  flex: none;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 26px;
  min-height: 26px;
  padding: 3px 8px;
  font-size: 12px;
  line-height: 1.2;
}
.sch-right-insert-pane {
  gap: 4px;
}
.sch-palette-hint {
  margin: 2px 0 0;
  font-size: 10px;
  line-height: 1.3;
}
.sch-materials-list { overflow: auto; flex: 1; min-height: 0; }
.sch-right-shared-pane .sch-materials-list { max-height: 286px; }
.sch-mat-row {
  padding: 10px;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  margin-bottom: 8px;
  background: #fff;
}
.sch-mat-row--warn { border-color: #fcd34d; background: #fffbeb; }
.sch-mat-row-head { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.sch-mat-warn { color: #b45309; }
.sch-mat-meta { font-size: 11px; color: var(--lz-muted); margin-top: 4px; }
.sch-mat-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.sch-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.sch-modal.hidden { display: none; }
.sch-modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,0.45); }
.sch-modal-card { position: relative; z-index: 1; width: min(920px, 100%); max-height: 90vh; overflow: auto; }
.sch-dr-filters { flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.sch-dr-table-wrap { max-height: 360px; overflow: auto; }
.sch-node--abandon .sch-node-hit { stroke-dasharray: 4 4; stroke: #6b7280; }
.sch-canvas-host {
  flex: 1 1 0;
  min-height: 0;
  height: 100%;
  background: #ffffff;
  border-radius: 0 0 8px 8px;
  position: relative;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-top: 0;
  touch-action: none;
}
.sch-svg { display: block; cursor: crosshair; background: #ffffff; }
.sch-grid-line { stroke: #e5e7eb; stroke-width: 1; }
.sch-grid-line--major { stroke: #cbd5e1; stroke-width: 1; }
.sch-node-hit { fill: transparent; stroke: transparent; cursor: move; }
.sch-node--selected .sch-node-hit,
.sch-node--selected .sch-pipe-bar {
  stroke: #2563eb !important;
  stroke-width: 2 !important;
}
.sch-node--selected .sch-node-hit { fill: rgba(37,99,235,0.06); }
.sch-node--missing-icon .sch-node-icon { opacity: 0.35; }
.sch-node--existing .sch-node-hit { stroke-dasharray: 4 3; stroke: #64748b; }
.sch-node-label { fill: #334155; font-size: 10px; font-family: system-ui, sans-serif; pointer-events: none; }
.sch-edge--debug { stroke: #94a3b8; stroke-width: 1; stroke-dasharray: 4 4; opacity: 0.7; }
.sch-pipe-edge { cursor: pointer; }
.sch-pipe-edge .sch-pipe-bar { opacity: 0.95; }
.sch-pipe-edge--selected .sch-pipe-bar { stroke: #f59e0b !important; filter: drop-shadow(0 0 2px rgba(245,158,11,0.5)); }
.sch-pipe-label { fill: #334155; font-size: 10px; font-family: system-ui, sans-serif; pointer-events: none; }
.sch-bf-joint { pointer-events: none; }
.sch-overlay--sleeve .sch-sleeve-bar { opacity: 0.9; }
.sch-overlay--selected { outline: none; }
.sch-overlay--selected .sch-overlay-hit { stroke: #f97316; stroke-width: 2; stroke-dasharray: 4 2; fill: rgba(249,115,22,0.08); }
.sch-overlay-hit { cursor: grab; fill: transparent; stroke: transparent; }
.sch-overlay-symbol { pointer-events: none; }
.sch-overlay-label { fill: #111827; font-size: 9px; font-family: system-ui, sans-serif; pointer-events: none; }
.sch-overlay-label--length { font-weight: 700; }
.sch-colour-section td { background: #f8fafc; font-size: 12px; padding-top: 12px; }
.sch-connect-point--std { fill: #f97316; stroke: #c2410c; stroke-width: 1; cursor: crosshair; opacity: 0.9; }
.sch-connect-point--branch { fill: #9333ea; stroke: #6b21a8; stroke-width: 1; cursor: crosshair; opacity: 0.9; }
.sch-connect-point:hover { fill: #fbbf24; stroke: #b45309; }
.sch-connect-label {
  fill: #64748b;
  font-size: 9px;
  font-family: system-ui, sans-serif;
  opacity: 0;
}
.sch-canvas-host--conn-labels .sch-connect-label--visible,
.sch-connect-label--visible { opacity: 1; fill: #475569; }
.sch-branch-line-label {
  font-size: 13px;
  font-weight: 700;
  fill: #2563eb;
  stroke: #fff;
  stroke-width: 3px;
  paint-order: stroke fill;
  pointer-events: none;
}
.sch-canvas-host--no-anchors .sch-connect-point,
.sch-canvas-host--no-anchors .sch-connect-label { display: none; }
.sch-canvas-host--no-labels .sch-node-label { display: none; }
.sch-canvas-host--screenshot .sch-node--selected .sch-node-hit,
.sch-canvas-host--screenshot .sch-node--selected .sch-pipe-bar {
  stroke: transparent !important;
  fill-opacity: 1;
}
.sch-set-anchor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  margin: 8px 0;
}
.sch-set-anchor-rename { margin: 0; min-width: 140px; }
.sch-prop { display: block; margin-bottom: 10px; font-size: 12px; color: var(--lz-muted); }
.sch-prop input, .sch-prop textarea, .sch-prop select { display: block; width: 100%; margin-top: 4px; }
.sch-source-radios { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 13px; }
.sch-source-block { margin-top: 8px; }
.sch-warnings { margin-top: 8px; padding: 10px; border-radius: 8px; background: #fffbeb; border: 1px solid #fcd34d; }
.sch-warn-title { margin: 0 0 6px; font-weight: 700; color: #92400e; }
.sch-hint { margin-top: 12px; }

.sch-set-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 420px);
  gap: 16px;
  align-items: start;
}
.sch-set-layout--tabs { display: flex; flex-direction: column; grid-template-columns: unset; flex: 1; min-height: 0; }
body[data-lz-module="schematicsettings"] .dashboard-body {
  min-height: 100vh;
}
body[data-lz-module="schematicsettings"] #schematicSettingsApp {
  flex: 1;
  min-height: 0;
  padding: 16px 20px 20px;
  margin-bottom: 0;
}
.sch-set-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.sch-set-tab {
  border: 1px solid var(--lz-border, #e2e8f0);
  background: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.sch-set-tab.is-active { background: var(--lz-red, #dc2626); color: #fff; border-color: var(--lz-red, #dc2626); }
.sch-set-pane.hidden { display: none; }
.gps-team-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px 12px;
  max-height: 240px;
  overflow: auto;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.gps-team-picker-table-wrap {
  max-height: 280px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.gps-team-picker-table { margin: 0; font-size: 0.85rem; }
.gps-team-picker-table th,
.gps-team-picker-table td { padding: 6px 10px; vertical-align: middle; }
.gps-team-picker-col-check { width: 2.2rem; text-align: center; }
.gps-team-picker-col-map { width: 2.4rem; text-align: center; font-size: 1.1rem; line-height: 1; }
.gps-site-account-dialog {
  max-width: 480px;
  width: calc(100% - 24px);
  max-height: calc(100vh - 48px);
  overflow: auto;
}
.gps-team-dropdown { display: grid; gap: 8px; }
.gps-team-add-select {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font: inherit;
}
.gps-team-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
  align-items: center;
}
.gps-team-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 4px 6px 4px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  font-size: 12px;
  line-height: 1.3;
}
.gps-team-chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
}
.gps-team-chip-remove {
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 4px;
}
.gps-team-chip-remove:hover { color: #b91c1c; }
#gpsSiteAccountsPanel .section-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
#gpsSiteAccountsPanel .section-head-row h3 { margin: 0 0 4px; }
#gpsSiteAccountsPanel .section-head-row .feed-meta { margin: 0; }
.gps-map-icon-picker-host { margin-top: 4px; }
.gps-map-icon-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.gps-map-icon-picker--collapsed {
  display: block;
  padding: 0;
  border: none;
  background: transparent;
}
.gps-map-icon-picker-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: #0f172a;
}
.gps-map-icon-picker-trigger:hover:not(:disabled) {
  border-color: #cbd5e1;
  background: #f1f5f9;
}
.gps-map-icon-picker-trigger:disabled { opacity: 0.65; cursor: default; }
.gps-map-icon-trigger-emoji { font-size: 1.5rem; line-height: 1; }
.gps-map-icon-trigger-label { flex: 1; font-size: 13px; font-weight: 600; }
.gps-map-icon-trigger-chevron { font-size: 12px; color: #64748b; }
.gps-map-icon-picker-grid {
  display: none;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
}
.gps-map-icon-picker--collapsed.is-expanded .gps-map-icon-picker-grid { display: grid; }
.gps-map-icon-picker--collapsed.is-expanded .gps-map-icon-trigger-chevron { transform: rotate(180deg); }
.gps-map-icon-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 8px 6px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.gps-map-icon-option:hover { border-color: #cbd5e1; background: #f1f5f9; }
.gps-map-icon-option.is-selected {
  border-color: var(--lz-red, #dc2626);
  background: #fef2f2;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.15);
}
.gps-map-icon-option input { position: absolute; opacity: 0; pointer-events: none; }
.gps-map-icon-emoji { font-size: 1.5rem; line-height: 1; }
.gps-map-icon-label { font-size: 11px; color: #475569; line-height: 1.2; }
.gps-team-picker-row:hover td { background: #f1f5f9; }
.gps-site-account-row--clickable { cursor: pointer; }
.gps-site-account-row--clickable:hover td,
.gps-site-account-row--clickable:focus td { background: #f1f5f9; }
.gps-site-account-row--clickable:focus { outline: 2px solid #60a5fa; outline-offset: -2px; }
.gps-site-account-row--editing td { background: #fef9c3; }
.team-site-portal-panel {
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.team-site-portal-panel--compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 13px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  width: 100%;
}
.team-site-portal-field { margin: 0; }
.team-site-portal-field .team-site-portal-panel--compact {
  border: none;
  padding: 0;
  background: transparent;
}
.team-nature-hint { margin: 0; font-size: 11px; }
.team-map-icon-field .gps-map-icon-picker--collapsed { margin-top: 2px; }
select.lz-field-select option.team-contract-inactive { color: #94a3b8; }
.team-site-portal-label {
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.team-site-portal-value { color: #0f172a; }
.team-site-portal-meta { margin-left: auto; }
.team-site-portal-panel h4 { margin: 0 0 8px; font-size: 14px; }
.team-site-portal-list { margin: 0; padding: 0; list-style: none; }
.team-site-portal-list li + li { margin-top: 8px; padding-top: 8px; border-top: 1px solid #e2e8f0; }
.people-teams-site-portal-hint {
  display: inline;
  margin: 0 0 0 8px;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 13px;
}
.gps-team-picker-item { margin: 0; font-size: 13px; }
.sch-pipe-settings-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 16px;
  margin: 12px 0 8px;
  max-width: 720px;
}
.sch-pipe-preview { margin-top: 12px; max-width: 520px; }
.sch-pipe-preview-table td:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.sch-pipe-subtitle { margin: 16px 0 6px; font-size: 14px; font-weight: 600; }
.sch-pipe-default-len-wrap { max-width: 520px; margin: 8px 0 12px; }
.sch-pipe-default-len-table input { width: 100%; max-width: 120px; }
.sch-pipe-default-len-px { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.sch-pipe-fallback-len { margin-top: 12px; max-width: 220px; }
.sch-set-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-height: 0; width: 100%; }
.sch-set-split--palette { align-items: start; }
.sch-palette-preset-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: calc(100vh - 320px);
  overflow: auto;
  padding: 4px 0;
}
.sch-palette-preset-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  background: #fff;
}
.sch-palette-preset-check { flex: 1; min-width: 0; margin: 0; }
.sch-palette-preset-code { min-width: 72px; font-size: 11px; }
.sch-palette-preset-order { display: inline-flex; gap: 4px; margin-left: auto; }
.sch-palette-preset-actions { margin-top: 12px; }
.sch-set-split--symbols {
  grid-template-columns: minmax(520px, 1.15fr) minmax(560px, 1.35fr);
}
.sch-set-pane--symbols {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.sch-symbols-workspace {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) 420px;
  gap: 16px;
  align-items: start;
  width: 100%;
}
.sch-symbols-list-pane {
  display: flex;
  flex-direction: column;
  min-width: 520px;
  margin-bottom: 0;
  padding: 14px 16px 16px;
}
.sch-symbols-list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  flex-shrink: 0;
  margin-bottom: 12px;
}
.sch-symbols-toolbar {
  flex-shrink: 0;
  margin-bottom: 0;
}
.sch-symbols-list-status {
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
}
.sch-symbols-editor-pane {
  display: flex;
  flex-direction: column;
  min-width: 380px;
  margin-bottom: 0;
  padding: 14px 16px 16px;
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 120px);
  overflow: hidden;
}
.sch-symbols-editor-pane.has-symbol {
  border-color: var(--lz-red, #dc2626);
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.15);
}
.sch-sym-editor-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--lz-border);
  flex-shrink: 0;
}
.sch-sym-editor-pane-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}
.sch-sym-editor-pane-head #btnSymEditorClose {
  font-size: 20px;
  line-height: 1;
  padding: 2px 8px;
}
#schSymEditor {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.sch-sym-editor-empty {
  padding: 32px 12px;
  text-align: center;
  color: #64748b;
  line-height: 1.5;
}
.sch-set-symbols-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.sch-set-list-card--symbols { width: 100%; }
.sch-sym-editor-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sch-symbols-editor-pane .pg-search-input,
.sch-symbols-editor-pane select.pg-search-input {
  min-width: 0;
  max-width: none;
  width: 100%;
}
.sch-sym-canvas-block {
  margin: 0;
}
.sch-sym-canvas-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.sch-sym-draw-toggle {
  min-width: 120px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
}
.sch-sym-canvas-hint {
  margin: 0;
  flex: 1;
  min-width: 160px;
}
.sch-sym-editor-modal .pg-search-input,
.sch-sym-editor-modal select.pg-search-input,
.sch-symbols-editor-pane .pg-search-input,
.sch-symbols-editor-pane select.pg-search-input {
  min-width: 0;
  max-width: none;
  width: 100%;
}
.sch-sym-editor-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sch-sym-editor-name-type,
.sch-sym-editor-checks {
  margin: 0;
}
.sch-sym-canvas-host {
  position: relative;
  width: 100%;
  max-width: 360px;
  height: 360px;
  margin: 0 auto;
  background: #1a1f2e;
  border-radius: 10px;
  border: 1px solid #334155;
  overflow: hidden;
}
.sch-sym-canvas-host .sch-sym-preview-host {
  margin: 0;
  padding: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.sch-sym-canvas-host .sch-sym-preview-host .sch-sym-preview-svg {
  max-width: 340px;
  max-height: 340px;
}
.sch-sym-canvas-host .sch-icon-draw-pad {
  display: block;
  width: 360px;
  height: 360px;
  border: 0;
  border-radius: 0;
  background: #fff;
  cursor: crosshair;
  touch-action: none;
}
.sch-sym-canvas-host .sch-icon-draw-pad.hidden,
.sch-sym-canvas-host .sch-sym-preview-host.hidden {
  display: none !important;
}
.sch-sym-draw-tools.hidden { display: none !important; }
.sch-sym-draw-tools {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--lz-border);
}
.sch-sym-anchor-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 72px 72px;
  gap: 10px;
  align-items: end;
  margin: 0;
}
.sch-sym-anchor-row .sch-prop { margin: 0; min-width: 0; }
.sch-sym-anchor-row .sch-set-anchor-rename { min-width: 0; }
.sch-sym-anchor-row .sch-set-anchor-pos { min-width: 0; }
.sch-sym-anchor-row .sch-set-anchor-pos input { width: 100%; }
.sch-sym-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  max-height: calc(100vh - 260px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 2px 12px;
  align-content: start;
}
.sch-sym-card {
  border: 1px solid var(--lz-border, #e2e8f0);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 200px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.sch-sym-card:hover { border-color: #cbd5e1; }
.sch-sym-card.is-active {
  border-color: var(--lz-red, #dc2626);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.18);
}
.sch-sym-card-edit {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  padding: 4px 10px;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
  pointer-events: auto;
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.sch-sym-card-preview-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1f2e;
  flex-shrink: 0;
  height: 120px;
  width: 100%;
}
.sch-sym-card-preview {
  background: transparent;
  border-radius: 0;
  height: 120px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  overflow: hidden;
  pointer-events: none;
  box-sizing: border-box;
}
.sch-sym-card-preview .sch-sym-preview-svg {
  width: 96px;
  height: 96px;
  max-width: 96px;
  max-height: 96px;
  flex-shrink: 0;
  display: block;
}
.sch-sym-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.sch-sym-card-name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sch-sym-card-lbl {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 2px;
}
.sch-sym-card-type {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
}
.sch-sym-card-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.sch-sym-card-type-select {
  display: block;
  width: 100%;
  min-width: 0 !important;
  max-width: 100% !important;
  flex: none;
  font-size: 12px;
  padding: 5px 6px;
  min-height: 30px;
  line-height: 1.2;
  text-transform: none;
  box-sizing: border-box;
}
.sch-sym-card-tuners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.sch-sym-card-tuner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sch-sym-card-tuner-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}
.sch-sym-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.sch-sym-card-tag {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  text-transform: none;
}
.sch-sym-card-size-pct {
  min-width: 34px;
  text-align: center;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #334155;
}
.sch-sym-card-thickness {
  margin-top: 0;
}
.sch-sym-card-step {
  min-width: 22px;
  padding: 1px 4px;
  line-height: 1.2;
  font-size: 11px;
}
.sch-sym-card-thickness-val {
  min-width: 22px;
  text-align: center;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
@media (max-width: 1100px) {
  .sch-symbols-workspace {
    grid-template-columns: 1fr;
  }
  .sch-symbols-list-pane {
    min-width: 0;
  }
  .sch-symbols-editor-pane {
    position: static;
    max-height: none;
    min-width: 0;
  }
  .sch-sym-card-grid {
    max-height: none;
  }
}
@media (max-width: 640px) {
  .sch-sym-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  }
  .sch-sym-card {
    min-width: 168px;
  }
}
@media (max-width: 520px) {
  .sch-sym-anchor-row {
    grid-template-columns: 1fr 1fr;
  }
  .sch-sym-anchor-row .sch-set-anchor-rename {
    grid-column: 1 / -1;
  }
  .sch-sym-card-tuners {
    grid-template-columns: 1fr;
  }
}
.sch-surface-anchor-hint {
  margin: 8px 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 12px;
  line-height: 1.45;
  color: #1e3a5f;
}
.sch-set-form--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sch-prop--full { grid-column: 1 / -1; }
.sch-svg-textarea { font-family: ui-monospace, monospace; font-size: 12px; min-height: 120px; resize: vertical; }
.sch-set-form-actions { display: flex; gap: 8px; margin-top: 12px; }
.sch-set-save-status { padding: 0 4px; }
.sch-sym-preview-host {
  background: #1a1f2e;
  border-radius: 8px;
  padding: 8px;
  margin: 12px 0;
  min-height: 120px;
}
.sch-sym-preview-host--large {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sch-sym-preview-host--large .sch-sym-preview-svg {
  max-width: 100%;
  max-height: 280px;
}
.sch-sym-size-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #2d3748;
}
.sch-sym-size-hint { margin-top: 6px; }
.sch-sym-boundary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.sch-set-section-label {
  font-weight: 600;
  color: #94a3b8;
  margin: 10px 0 6px;
}
.sch-set-preview-cell .sch-sym-preview-svg { max-width: 96px; max-height: 96px; }
.sch-set-name-cell { font-weight: 600; min-width: 140px; }
.sch-set-type-cell { min-width: 100px; font-size: 12px; color: #64748b; }
.sch-set-thickness-cell { width: 72px; text-align: center; font-variant-numeric: tabular-nums; }
.sch-set-symbols-table { width: 100%; min-width: 480px; }
.sch-set-table-wrap--symbols { max-height: calc(100vh - 220px); }
.sch-set-master-note { padding: 0 4px 12px; }
.sch-set-advanced { margin: 12px 0; font-size: 13px; }
.sch-set-advanced summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }
.sch-icon-draw-pad {
  display: block;
  width: 320px;
  height: 320px;
  max-width: 100%;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  background: #fff;
  cursor: crosshair;
  touch-action: none;
}
.sch-icon-draw-block {
  margin-top: 12px;
}
.sch-icon-draw-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}
.sch-draw-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}
.sch-draw-thickness {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}
.sch-draw-thickness input {
  width: 56px;
  padding: 4px 6px;
}
.sch-colour-input { width: 48px; height: 32px; padding: 0; border: 1px solid var(--lz-border); border-radius: 4px; }
.sch-node--surface-joint { pointer-events: all; }
.sch-node--surface-joint .sch-lib-symbol { opacity: 0.95; }
.sch-sym-preview-svg { display: block; }
.sch-sym-grid-line { stroke: #334155; stroke-width: 0.5; opacity: 0.35; }
.sch-sym-pipe-bar { fill: #38bdf8; opacity: 0.35; }
.sch-sym-pipe-center { stroke: #94a3b8; stroke-width: 1; stroke-dasharray: 4 3; }
.sch-sym-pipe-edge { stroke: #64748b; stroke-width: 1; opacity: 0.7; }
.sch-sym-anchor-target { fill: transparent; cursor: grab; }
.sch-sym-anchor-target:active { cursor: grabbing; }
.sch-joint-label {
  font-size: 9px;
  font-weight: 800;
  pointer-events: none;
}
.sch-joint-label--ef { fill: #ea580c; }
.sch-joint-label--bf { fill: #1d4ed8; }
.sch-elbow-rotate-hit {
  cursor: pointer;
  pointer-events: all;
}
.sch-elbow-rotate-hit:hover {
  stroke: var(--lz-red);
  fill: #eff6ff;
}
.sch-connect-point--male { fill: #3b82f6; }
.sch-connect-point--female { fill: #f97316; }
.sch-connect-point--flange { fill: #a855f7; }
.sch-sym-anchor-hit { fill: #f97316; stroke: #fff; stroke-width: 1.5px; cursor: pointer; pointer-events: none; }
.sch-sym-anchor--selected .sch-sym-anchor-hit { fill: #ea580c; }
.sch-sym-anchor-label { fill: #fdba74; font-size: 8px; font-weight: 700; pointer-events: none; }
.sch-set-form-row-checks {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  margin: 4px 0 8px;
}
.sch-set-checks {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  cursor: pointer;
}
.sch-set-checks input[type="checkbox"] {
  margin: 0;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
.sch-icon-draw-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}
.sch-draw-tool.is-active { background: var(--lz-primary, #dc2626); color: #fff; border-color: transparent; }
.sch-icon-import-stage {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  background: #f8fafc;
}
.sch-import-preview-host {
  width: 200px;
  height: 200px;
  background: #1a1f2e;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}
.sch-import-stage-svg { display: block; width: 200px; height: 200px; cursor: move; }
.sch-import-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sch-import-controls input[type="range"] { width: 120px; }
.sch-set-thumb-cell svg { display: block; }
.sch-map-preview-empty { color: #92400e; padding: 24px; text-align: center; }
.sch-node-label--warn { fill: #dc2626; font-size: 10px; font-weight: 700; }
@media (max-width: 960px) {
  .sch-set-split { grid-template-columns: 1fr; }
}
.sch-set-detail-card { min-width: 0; }
.sch-set-form { margin-top: 12px; }
.sch-set-filter-check { font-size: 12px; display: flex; align-items: center; gap: 6px; }
.sch-set-row--warn { background: #fffbeb; }
.sch-color-swatch { display: inline-block; width: 18px; height: 18px; border-radius: 4px; border: 1px solid var(--lz-border); vertical-align: middle; }
.sch-set-anchor-canvas {
  background: #1a1f2e;
  border-radius: 8px;
  min-height: 160px;
  cursor: crosshair;
}
.sch-set-svg-bg { fill: #1a1f2e; }
.sch-anchor-hit { fill: #22c55e; stroke: #14532d; stroke-width: 1; cursor: move; }
.sch-anchor--selected .sch-anchor-hit { fill: #f59e0b; }
.sch-anchor-label { fill: #e2e8f0; font-size: 10px; font-family: system-ui, sans-serif; pointer-events: none; }
.sch-symbol-editor { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--lz-border); }
.sch-symbol-tools { flex-wrap: wrap; gap: 6px; align-items: center; }
.sch-prop-inline { font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.sch-set-table-wrap { max-height: calc(100vh - 240px); overflow: auto; }
.sch-set-thumb { width: 36px; height: 24px; object-fit: contain; background: #1a1f2e; border-radius: 4px; }
.sch-set-row { cursor: pointer; }
.sch-set-row--active { background: #fef2f2; }

/* Safety Inspection Settings */
.si-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.si-preset-card .si-preset-add-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  align-items: center;
}
.si-preset-add-form input { flex: 1 1 140px; min-width: 120px; }
.si-question-toolbar { flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.si-q-search { flex: 1 1 220px; min-width: 180px; max-width: 360px; }
.si-q-bulk-select { max-width: 140px; }
.si-bulk-act-picker { min-width: 160px; max-width: 220px; }
.si-bulk-act-picker .si-act-picker-btn { min-height: 34px; font-size: 13px; }
.si-q-hint { margin: 0 0 10px; font-size: 12px; }
.si-questions-card { border-left: 4px solid var(--safety-accent, #ea580c); }
.si-questions-save-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fed7aa;
  border-radius: 8px;
}
.si-save-btn--pending { box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.35); animation: si-pulse 2s ease-in-out infinite; }
@keyframes si-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.25); }
  50% { box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.45); }
}
.si-unsaved-badge {
  font-size: 12px;
  font-weight: 600;
  color: #c2410c;
  background: #fff;
  border: 1px solid #fdba74;
  padding: 4px 10px;
  border-radius: 999px;
}
.si-q-count { margin-left: auto; }
.si-q-table-wrap { max-height: calc(100vh - 260px); overflow: auto; }
.si-q-table--compact { font-size: 13px; table-layout: fixed; width: 100%; border-collapse: separate; border-spacing: 0; }
.si-q-table--compact th,
.si-q-table--compact td { padding: 8px 10px; vertical-align: middle; }
.si-q-table--compact td.si-q-col-text { vertical-align: top; padding-top: 10px; }
.si-q-table--compact thead th {
  background: #ffedd5;
  color: #9a3412;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: 0 1px 0 #fed7aa;
}
.si-q-table--compact tbody tr.si-q-row { background: #fff; border-bottom: 1px solid #e2e8f0; }
.si-q-table--compact tbody tr.si-q-row:nth-child(even) { background: #fff7ed; }
.si-q-table--compact tbody tr.si-q-row:nth-child(odd) { background: #ffffff; }
.si-q-table--compact tbody tr.si-q-row:hover { background: #ffedd5 !important; }
.si-q-row--hidden { display: none; }
.si-q-check-col { width: 34px; min-width: 34px; text-align: center; }
.si-q-col-no { width: 44px; min-width: 44px; text-align: center; }
.si-q-row-no {
  display: inline-block;
  min-width: 1.5em;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 12px;
  color: #64748b;
}
.si-q-col-text { width: auto; min-width: 280px; }
.si-q-col-cat { width: 88px; min-width: 88px; max-width: 88px; }
.si-q-col-sev { width: 72px; min-width: 72px; max-width: 72px; }
.si-q-col-act { width: 22%; min-width: 160px; }
.si-q-col-actions {
  width: 72px;
  min-width: 72px;
  text-align: center;
  white-space: nowrap;
}
.si-q-col-actions .si-q-edit,
.si-q-col-actions .si-q-delete {
  display: inline-flex;
  vertical-align: middle;
}
.si-q-edit {
  width: 28px;
  height: 28px;
  padding: 0;
  margin-right: 4px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  color: #334155;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.si-q-edit:hover { background: #e2e8f0; border-color: #94a3b8; }
.si-q-desc-preview { display: block; line-height: 1.35; font-size: 13px; }
.si-q-main-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.si-q-main-badge--minor { background: #dcfce7; color: #166534; }
.si-q-main-badge--major { background: #ffedd5; color: #c2410c; }
.si-q-edit-form { display: grid; gap: 10px; margin-top: 12px; }
.si-q-edit-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.si-route-auto-note {
  margin: 0 0 10px;
  padding: 8px 10px;
  background: #f1f5f9;
  border-radius: 6px;
  border-left: 3px solid #64748b;
}
.si-ohs-card--compact { padding: 10px 12px; }
.si-ohs-section-head { margin-bottom: 6px; align-items: center; }
.si-ohs-section-head .panel-title { margin: 0; font-size: 15px; }
.si-ohs-obs-list--compact { gap: 6px; }
.si-ohs-obs-row {
  display: grid;
  grid-template-columns: 36px 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}
.si-ohs-obs-name { min-width: 0; padding: 6px 8px !important; font-size: 13px !important; }
.si-ohs-hazard-toggle { font-size: 12px; margin: 0; white-space: nowrap; }
.si-ohs-serial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  border-radius: 6px;
  flex-shrink: 0;
}
.si-ohs-serial--obs {
  width: 28px;
  height: 28px;
  background: #dbeafe;
  color: #1d4ed8;
}
.si-ohs-serial--group {
  width: 26px;
  height: 26px;
  background: var(--si-ohs-accent, #0369a1);
  color: #fff;
}
.si-ohs-serial--item {
  min-width: 32px;
  height: 22px;
  padding: 0 6px;
  background: rgba(255,255,255,0.85);
  color: var(--si-ohs-accent, #334155);
  border: 1px solid var(--si-ohs-border, #cbd5e1);
  font-size: 10px;
}
.si-ohs-hazard-groups--compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
}
.si-ohs-group-card--compact {
  background: var(--si-ohs-bg, #f8fafc);
  border: 1px solid var(--si-ohs-border, #e2e8f0);
  border-radius: 8px;
  padding: 8px;
  margin: 0;
}
.si-ohs-group-head {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}
.si-ohs-group-name {
  flex: 1;
  min-width: 0;
  padding: 5px 8px !important;
  font-size: 12px !important;
  font-weight: 600;
}
.si-ohs-item-list { display: grid; gap: 4px; }
.si-ohs-item-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 6px;
  align-items: center;
}
.si-ohs-group-cm-label {
  display: grid;
  gap: 4px;
  margin: 6px 0 8px;
}
.si-ohs-group-cm {
  width: 100%;
  min-height: 3.2em;
  resize: vertical;
  font-size: 12px !important;
  line-height: 1.4;
}
.si-ohs-item-name { padding: 4px 8px !important; font-size: 12px !important; }
.si-field-tbm-row {
  display: grid;
  grid-template-columns: 2rem 1fr auto auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.si-field-tbm-num { font-weight: 600; }
.site-ftbm-hazard-list {
  display: grid;
  gap: 10px;
  margin: 8px 0 12px;
  max-height: 280px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
}
.site-ftbm-hazard-group {
  display: grid;
  gap: 4px;
}
.site-ftbm-hazard-opt {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.site-ftbm-aso-person {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  position: relative;
  padding-top: 12px;
  padding-right: 8px;
}
.site-ftbm-aso-person.is-in-charge {
  border-color: #f59e0b;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.35);
}
.site-ftbm-aso-name-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.site-ftbm-aso-name-field {
  flex: 1;
  min-width: 0;
  padding-right: 28px;
}
.site-ftbm-aso-star {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-top: 22px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #cbd5e1;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.site-ftbm-aso-star.is-on {
  color: #d97706;
  border-color: #fbbf24;
  background: #fffbeb;
}
.site-ftbm-aso-incharge-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #92400e;
  background: #fef3c7;
  vertical-align: middle;
}
.site-ftbm-aso-undertake {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #78350f;
  font-size: 13px;
  line-height: 1.45;
}
.site-ftbm-aso-undertake-view {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fffbeb;
  border: 1px solid #fde68a;
}
.site-ftbm-aso-person .site-ftbm-field-label {
  padding-right: 28px;
}
.site-ftbm-aso-remove-x {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}
.site-ftbm-aso-remove-x:hover,
.site-ftbm-aso-remove-x:focus {
  color: #b91c1c;
  background: #fef2f2;
}
.site-ftbm-aso-sig-row {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 8px;
  align-items: center;
}
.site-ftbm-aso-sig-half {
  width: 100% !important;
  min-height: 56px;
  box-sizing: border-box;
}
.site-ftbm-aso-person .site-ftbm-sig-thumb.site-ftbm-aso-sig-half {
  height: 56px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.site-ftbm-aso-person .site-ftbm-sig-btn.site-ftbm-aso-sig-half {
  width: 100%;
  min-height: 56px;
  margin: 0;
}
.site-ftbm-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}
.site-ftbm-status-pill.is-fit {
  color: #166534;
  background: #dcfce7;
  border-color: #bbf7d0;
}
.site-ftbm-photo-section { margin-top: 14px; }
.site-ftbm-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0 12px;
}
.site-ftbm-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.site-ftbm-photo-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-ftbm-photo-thumb {
  width: 100%;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  background: #f8fafc;
}
.site-ftbm-photo-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 12px;
}
.site-ftbm-worker-row--compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 8px;
  align-items: center;
}
.site-ftbm-fullwidth,
.site-ftbm-fullwidth.pg-search-input,
.site-ftbm-select {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  min-height: 48px;
  font-size: 16px !important;
}
textarea.site-ftbm-fullwidth {
  min-height: 88px;
  resize: vertical;
}
.site-ftbm-field-label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: #334155;
  width: 100%;
}
.site-ftbm-q-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.site-ftbm-q-title {
  margin: 0;
  flex: 1;
  font-size: 15px;
  line-height: 1.35;
}
.site-ftbm-note-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 18px;
  touch-action: manipulation;
}
.site-ftbm-note-btn.has-note {
  background: #eff6ff;
  border-color: #93c5fd;
}
.site-ftbm-note-wrap.is-collapsed { display: none; }
.site-ftbm-answer-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.site-ftbm-ans-chip {
  min-height: 48px;
  border-radius: 12px;
  border: 2px solid #cbd5e1;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  touch-action: manipulation;
  padding: 8px 4px;
}
.site-ftbm-ans-chip.is-on {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}
.site-ftbm-ms { position: relative; width: 100%; }
.site-ftbm-ms-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid #cbd5e1;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
}
.site-ftbm-ms-caret { color: #64748b; }
.site-ftbm-ms-panel {
  margin-top: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}
.site-ftbm-ms-panel.hidden { display: none; }
.site-ftbm-ms-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  width: 100%;
  text-align: left;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 600;
  touch-action: manipulation;
}
.site-ftbm-ms-option.is-on {
  background: #fef2f2;
  border-color: #b91c1c;
  color: #991b1b;
}
.site-ftbm-ms-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #94a3b8;
  flex: 0 0 auto;
  background: #fff;
}
.site-ftbm-ms-option.is-on .site-ftbm-ms-check {
  border-color: #b91c1c;
  background: #b91c1c;
  box-shadow: inset 0 0 0 3px #fff;
}
.site-ftbm-ms-done { width: 100%; margin-top: 4px; }
.site-ftbm-next { width: 100%; margin-top: 12px; }
.site-ftbm-health-note { margin: 0 0 10px; }
.site-ftbm-worker-list--compact { gap: 8px; }
.site-ftbm-worker-row--compact {
  grid-template-columns: 1fr auto;
  gap: 8px 10px;
  padding: 10px 12px;
}
.site-ftbm-worker-row--compact .site-ftbm-worker-name { grid-column: 1 / -1; }
.site-ftbm-worker-row--compact .site-ftbm-sig-thumb { width: 64px; height: 32px; }
.site-ftbm-worker-row--compact .site-ftbm-sig-btn {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 48px;
}
.site-ftbm-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 0 8px;
}
.site-ftbm-switch {
  position: relative;
  width: 56px;
  height: 32px;
  border-radius: 999px;
  border: 0;
  background: #cbd5e1;
  padding: 0;
  flex: 0 0 auto;
  touch-action: manipulation;
}
.site-ftbm-switch.is-on { background: #b91c1c; }
.site-ftbm-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
  transition: transform 0.15s ease;
}
.site-ftbm-switch.is-on .site-ftbm-switch-knob { transform: translateX(24px); }
.site-ftbm-signoff-card {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  display: grid;
  gap: 6px;
}
.site-ftbm-signoff-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}
.site-ftbm-signoff-name {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}
.site-ftbm-signoff-card .site-ftbm-sig-thumb--sup {
  width: 100%;
  max-width: 220px;
  height: 56px;
  object-fit: contain;
  background: #fff;
}
.site-field-tbm-q { padding: 12px; }
.site-ftbm-checklist { display: grid; gap: 10px; }
.site-ftbm-tow-box {
  width: 100%;
  box-sizing: border-box;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  font-size: 16px;
  line-height: 1.35;
}
.site-ftbm-aso-person .site-ftbm-sig-btn { min-height: 48px; }
@media (max-width: 420px) {
  .site-ftbm-answer-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.si-ohs-btn-compact {
  padding: 2px 8px !important;
  min-height: 26px;
  font-size: 12px !important;
}
.si-ohs-obs-del { padding: 2px 8px !important; min-height: 26px; }
.si-q-text {
  width: 100%;
  min-width: 0;
  min-height: 4.5em;
  max-height: 12em;
  resize: vertical;
  line-height: 1.45;
  font-size: 13px;
  padding: 8px 10px;
}
.si-q-cat, .si-q-sev {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font-size: 11px;
  padding: 5px 4px;
  text-overflow: ellipsis;
}
.si-q-col-cat .si-q-cat,
.si-q-col-sev .si-q-sev { text-align: center; }
.si-q-sev--minor { background: #f0fdf4; border-color: #86efac; color: #166534; }
.si-q-sev--major { background: #fff7ed; border-color: #fdba74; color: #c2410c; }
.si-q-sev--high { background: #fef2f2; border-color: #fca5a5; color: #b91c1c; font-weight: 600; }
.si-act-picker { position: relative; width: 100%; display: block; }
.si-act-picker-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  text-align: left;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.35;
  background: #fff;
  border: 1px solid var(--lz-border, #e2e8f0);
  border-radius: 6px;
  cursor: pointer;
  color: var(--lz-text, #1e293b);
  box-sizing: border-box;
}
.si-act-picker-btn:hover { border-color: var(--safety-accent, #ea580c); background: #fff7ed; }
.si-act-picker.is-open .si-act-picker-btn { border-color: var(--safety-accent, #ea580c); box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.2); }
.si-act-picker-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
  max-height: 2.8em;
}
.si-act-picker-caret { flex-shrink: 0; color: #64748b; font-size: 11px; line-height: 1; margin-top: 1px; }
.si-act-picker-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  min-width: 100%;
  max-height: 240px;
  overflow: auto;
  background: #fff;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
  padding: 4px 0;
}
.si-act-picker-option {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-size: 12px;
  line-height: 1.35;
  cursor: pointer;
  margin: 0;
}
.si-act-picker-option:hover { background: #fff7ed; }
.si-act-picker-option input {
  margin: 0;
  width: 14px;
  height: 14px;
  accent-color: var(--safety-accent, #ea580c);
}
.si-act-picker-option span { min-width: 0; word-break: break-word; }
.si-q-delete {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #fecaca;
  border-radius: 6px;
  background: #fef2f2;
  color: #dc2626;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  font-weight: 700;
}
.si-q-delete:hover { background: #fee2e2; border-color: #f87171; color: #b91c1c; }
.si-q-empty { padding: 16px !important; text-align: center; }
.si-route-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.si-route-card { padding: 14px; border-left: 4px solid var(--safety-accent, #ea580c); }
.si-route-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 10px;
}
.si-route-label, .si-route-audience { flex: 1 1 200px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.si-route-triggers { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 12px; align-items: center; }
.si-route-trigger { font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.si-route-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; margin-bottom: 10px; }
.si-route-active { font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.si-route-picker { position: relative; margin-bottom: 14px; }
.si-route-picker-dropdown {
  position: relative;
  max-height: 240px;
  overflow-y: auto;
  margin-top: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.si-route-confirmed {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}
.si-route-confirmed-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}
.si-route-confirmed-empty { margin: 0; }
.si-route-confirmed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.si-route-confirmed-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #f8fbff;
}
.si-route-channel-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}
.si-route-channel-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #334155;
  white-space: nowrap;
}
.si-route-channel-toggle input { margin: 0; }
.si-route-confirmed-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.si-route-confirmed-name { font-size: 0.95rem; color: #0f172a; }
.si-route-confirmed-email { font-size: 0.8rem; color: #64748b; word-break: break-all; }
.si-coverage-enable-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}
.si-coverage-enable-label input { cursor: pointer; }
.si-coverage-access-banner { color: var(--lz-red, #c41e3a); }
.si-coverage-manager-info { border-left: 3px solid var(--lz-red, #c41e3a); }
.si-coverage-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: #f1f5f9;
  color: #64748b;
}
.si-coverage-pill.is-on {
  background: #ffedd5;
  color: #c2410c;
}
.si-coverage-managers-table td { vertical-align: middle; }
.si-coverage-managers-table .si-coverage-send-guide { margin-right: 6px; }
.si-coverage-edit-modal { width: min(520px, 100%); }
.si-coverage-edit-modal .si-q-edit-form select.si-route-personnel { width: 100%; min-height: 140px; }
.si-coverage-edit-check-row {
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
}
.si-coverage-edit-check-row input { margin: 0; }
.si-coverage-managers-label { display: block; margin: 12px 0; font-size: 13px; }
.si-coverage-table td { vertical-align: top; }
.si-assign-toolbar { flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.si-assign-user-label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; min-width: 280px; }
.si-assign-check-col { width: 40px; }
.si-coverage-team-table td { vertical-align: middle; }
.si-coverage-person-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.si-coverage-person-tab.is-active { background: var(--lz-red, #c41e3a); color: #fff; border-color: var(--lz-red, #c41e3a); }
.si-coverage-team-picker { flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.si-coverage-person-select { min-width: 280px; max-width: 420px; }
.si-coverage-scope-select { min-width: 140px; font-size: 13px; }
.si-coverage-team-add { margin-bottom: 12px; }
.si-inspector-chip-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.si-inspector-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(196, 30, 58, 0.1);
  border: 1px solid rgba(196, 30, 58, 0.25);
  font-size: 12px;
}
.si-coverage-inspectors-cell { min-width: 160px; }
.si-coverage-actions-cell { white-space: nowrap; }
.si-coverage-page-access-note { margin: 8px 0 12px; }
.perm-page-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.perm-page-access-row { margin: 0; }
.perm-portal-access { display: block; }
.perm-portal-group { display: none; }
.perm-portal-group-grid { display: none; }
.perm-portal-access-row { display: none; }
.perm-portal-summary { display: flex; flex-wrap: wrap; gap: 4px; }
.perm-portal-summary-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}
.perm-portal-summary-cell { max-width: 280px; }
.perm-advanced-section {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px dashed var(--lz-border);
  border-radius: var(--lz-radius-sm);
  background: #fafbfc;
}
.perm-advanced-section summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  user-select: none;
}
.perm-advanced-section[open] summary { margin-bottom: 12px; }
.si-assign-table td { vertical-align: middle; }

.lz-safety-theme .sch-set-tab.is-active {
  background: var(--lz-red, #dc2626);
  border-color: var(--lz-red, #dc2626);
  color: #fff;
}
.lz-safety-theme .section-card { border-color: var(--lz-border, #e2e8f0); }
.lz-safety-theme .section-card .panel-title { color: var(--lz-text, #0f172a); }
.lz-safety-theme .main-header.lz-app-header { border-bottom: 3px solid var(--lz-red, #dc2626); }
.lz-safety-theme .si-preset-card {
  border-left: 3px solid var(--lz-border, #e2e8f0);
  background: #fff;
}
.lz-safety-theme .si-preset-card h3 { color: var(--lz-text, #0f172a); }

[data-lz-module="safety"] .main-header.lz-app-header { border-bottom: 3px solid var(--lz-red, #dc2626); }
[data-lz-module="safety"] .section-card { border-left: 3px solid transparent; }
[data-lz-module="safety"] .section-card:hover { border-left-color: var(--lz-red, #dc2626); }
[data-lz-module="safety"] .sf-kpi.is-active,
[data-lz-module="safety"] button.sf-kpi.is-active {
  border-color: var(--safety-accent, #ea580c);
  background: #fff7ed;
}
[data-lz-module="safety"] .sf-item-card.sf-item--major { border-left-color: #ea580c; }
[data-lz-module="safety"] .sf-wizard-tab.is-active {
  background: var(--safety-accent, #ea580c);
  border-color: var(--safety-accent, #ea580c);
}
@media (max-width: 960px) {
  .si-preset-grid { grid-template-columns: 1fr; }
}
.sch-set-preview {
  padding: 16px;
  background: #1a1f2e;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 12px;
}
.sch-set-preview img { max-width: 120px; max-height: 80px; }
.sch-set-form .sch-set-checks,
.sch-set-form-row-checks .sch-set-checks { flex-direction: row; margin: 0; }

/* Digital alignment canvas */
.aln-page-body { display: flex; flex-direction: column; min-height: 0; }
.aln-layout { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.aln-workspace {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) minmax(220px, 280px);
  gap: 12px;
  min-height: calc(100vh - 240px);
}
.aln-panel { min-height: 0; overflow: auto; }
.aln-panel--canvas { padding: 0; overflow: hidden; }
.aln-canvas-host {
  min-height: 520px;
  height: 100%;
  background: #0f172a;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.aln-canvas-wrap { width: 100%; height: 100%; min-height: 520px; overflow: hidden; position: relative; cursor: grab; }
.aln-stage { transform-origin: 0 0; position: relative; min-width: 100%; min-height: 100%; }
.aln-drawing-img { max-width: none; display: block; user-select: none; }
.aln-overlay-svg { position: absolute; inset: 0; pointer-events: none; }
.aln-trace-line, .aln-trace-poly { stroke: #22d3ee; stroke-width: 3; }
.aln-trace-manual { stroke: #22d3ee; stroke-width: 3; }
.aln-trace-auto { stroke: #f97316; stroke-width: 3; stroke-dasharray: 8 5; }
.aln-trace-label { fill: #fbbf24; font-size: 11px; font-family: Arial, sans-serif; paint-order: stroke; stroke: #0f172a; stroke-width: 3px; }
.aln-georef-anchor { fill: #a855f7; stroke: #fff; stroke-width: 2; }
.aln-georef-label { fill: #e9d5ff; font-size: 11px; font-family: Arial, sans-serif; }
.aln-map-results { margin: 8px 0; max-height: 160px; overflow-y: auto; }
.aln-georef-panel, .aln-tcp-panel { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--lz-border, rgba(0,0,0,.08)); }
.aln-trace-draft { stroke-dasharray: 6 4; opacity: 0.8; }
.aln-trace-node { fill: #f97316; stroke: #fff; stroke-width: 1; }
.aln-canvas-placeholder {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 14px;
  padding: 24px;
}
.aln-tools-row { margin-top: 8px; }
.aln-metrics-list { margin: 0; padding-left: 18px; font-size: 13px; }
.aln-ai-note { margin-top: 12px; font-size: 11px; color: var(--lz-muted); }
.aln-vendor-form { margin-top: 10px; }
.aln-vendor-form-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 13px; }
.aln-vendor-form-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.aln-vendor-form-table th { text-align: left; font-weight: 600; padding: 4px 6px 4px 0; vertical-align: top; white-space: nowrap; }
.aln-vendor-form-table td { padding: 4px 6px; vertical-align: top; }
.aln-vendor-val { word-break: break-word; }
.aln-meta-form { margin: 12px 0; }
.data-table tr.is-selected { background: #fef2f2; }

@media (max-width: 1100px) {
  .sch-draw-area, .aln-workspace, .sch-set-layout {
    grid-template-columns: 1fr;
  }
  .sch-canvas-host, .aln-canvas-host { min-height: 360px; }
}

/* UG Schematic — phone / narrow tablet: material picker on top, canvas below */
@media (max-width: 768px) {
  body[data-lz-module="schematic"] .sch-page-body {
    overflow: auto;
  }
  body[data-lz-module="schematic"] .sch-layout {
    overflow: visible;
    min-height: auto;
  }
  body[data-lz-module="schematic"] .sch-workspace--draw {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: visible;
    min-height: 0;
  }
  body[data-lz-module="schematic"] .sch-right-panel {
    order: -1;
    width: 100%;
    max-width: none;
    height: auto;
    flex: 0 0 auto;
    padding: 10px 12px;
  }
  body[data-lz-module="schematic"] .sch-workspace--draw .sch-right-panel {
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }
  body[data-lz-module="schematic"] .sch-right-panel.is-collapsed {
    min-width: 0;
    max-width: none;
    padding: 10px 12px;
  }
  body[data-lz-module="schematic"] .sch-right-panel.is-collapsed .sch-panel-head-row,
  body[data-lz-module="schematic"] .sch-right-panel.is-collapsed .sch-right-panel-body {
    display: flex;
  }
  body[data-lz-module="schematic"] .sch-right-panel .sch-panel-toggle,
  body[data-lz-module="schematic"] .sch-right-panel .sch-panel-expand {
    display: none !important;
  }
  body[data-lz-module="schematic"] .sch-center-stack {
    order: 0;
    flex: 1 1 auto;
    min-height: min(52vh, 520px);
    min-height: min(52dvh, 520px);
  }
  body[data-lz-module="schematic"] .sch-right-panel-body {
    gap: 6px;
  }
  body[data-lz-module="schematic"] .sch-right-shared-pane .sch-mat-filter-list {
    --sch-mat-pick-visible-rows: 4;
  }
  body[data-lz-module="schematic"] .sch-mat-filter-input,
  body[data-lz-module="schematic"] .sch-right-insert-pane .sch-mat-filter-input {
    width: 100%;
  }
  body[data-lz-module="schematic"] .sch-right-insert-pane .sch-palette-hint {
    display: none;
  }
  body[data-lz-module="schematic"] .sch-route-card {
    margin-bottom: 0;
  }
  body[data-lz-module="schematic"] .sch-panel-head-row {
    margin-bottom: 4px;
  }
  body[data-lz-module="schematic"] .sch-mat-table-tools .btn:not(.sch-panel-toggle) {
    font-size: 11px;
    padding: 4px 8px;
  }
  body[data-lz-module="schematic"] .sch-toolbar-card--compact {
    padding: 6px 10px;
  }
  body[data-lz-module="schematic"] .sch-toolbar-head {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  body[data-lz-module="schematic"] .sch-quick-palette--duo {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 4px;
    padding-top: 4px;
  }
  body[data-lz-module="schematic"] .sch-canvas-wrap {
    min-height: 240px;
  }
  body[data-lz-module="schematic"] .sch-canvas-toolbar {
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 8px;
  }
  body[data-lz-module="schematic"] .sch-canvas-toolbar .sch-screenshot-btn {
    display: none;
  }
  body[data-lz-module="schematic"] .sch-bottom-dock[data-dock-height="half"] {
    flex: 0 0 130px;
    max-height: 20vh;
  }
  body[data-lz-module="schematic"] .main-header .feed-meta {
    display: none;
  }
}
.ctr-tab-row { flex-wrap: wrap; gap: 8px; }
.ctr-workspace-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 14px;
}
.ctr-nav-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}
.ctr-nav-group--daily {
  background: #f8fafc;
  border-style: dashed;
}
.ctr-nav-label {
  flex: 0 0 auto;
  min-width: 88px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.ctr-tab-row .ctr-tab-btn,
.ctr-tab-btn {
  appearance: none;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.2;
}
.ctr-tab-btn:hover { border-color: #cbd5e1; background: #f8fafc; }
.ctr-tab-btn.is-active {
  border-color: var(--lz-red, #c62828);
  background: var(--lz-red, #c62828);
  color: #fff;
}
.ctr-nav-group--daily .ctr-tab-btn.is-active {
  border-color: #0f766e;
  background: #0f766e;
}
.ctr-page-shell--workspace { border: none; box-shadow: none; background: transparent; padding: 0; }
.ctr-page-shell--daily {
  border-left: 3px solid #0f766e;
  padding-left: 12px;
}
.ctr-workspace-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 14px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}
.ctr-back-btn { font-weight: 600; }
.ctr-workspace-title { flex: 1 1 240px; min-width: 0; }
.ctr-workspace-code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.ctr-workspace-code { font-size: 22px; color: var(--lz-red, #c62828); letter-spacing: -0.02em; }
.ctr-workspace-name { font-size: 16px; font-weight: 600; color: #0f172a; }
.ctr-workspace-sub { margin-top: 2px; }
.ctr-workspace-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
}
.ctr-workspace-stat {
  min-width: 78px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.ctr-workspace-stat span {
  display: block;
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.ctr-workspace-stat strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: #0f172a;
}
.ctr-overview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}
.ctr-overview-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.ctr-overview-pipeline-wrap,
.ctr-master-panel {
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}
.ctr-section-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.ctr-master-head { margin-bottom: 12px; }
.ctr-master-head h3 { margin: 0 0 4px; }
.ctr-master-panel { margin-top: 4px; }
@media (max-width: 900px) {
  .ctr-overview-hero { grid-template-columns: 1fr; }
  .ctr-workspace-stats { margin-left: 0; width: 100%; }
  .ctr-nav-label { min-width: 100%; }
}
.ctr-show-completed { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.ctr-group-cards { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.ctr-group-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  min-width: 140px; padding: 12px 16px; border: 1px solid var(--lz-border, #e2e8f0);
  border-radius: 10px; background: #fff; cursor: pointer; text-align: left;
}
.ctr-group-card:hover { border-color: var(--lz-red, #dc2626); }
.ctr-group-card.is-expanded { border-color: var(--lz-red, #dc2626); background: #fef2f2; }
.ctr-group-card strong { font-size: 14px; color: var(--lz-red, #dc2626); }
.ctr-group-hidden { color: #92400e; font-size: 11px; }
.ctr-group-list { margin-bottom: 16px; }
.ctr-compact-table td, .ctr-compact-table th { padding: 8px 10px; font-size: 13px; }
.ctr-row-completed { opacity: 0.65; background: #f8fafc; color: #64748b; }
.ctr-detail-drawer {
  margin-top: 16px; padding: 16px; border: 1px solid var(--lz-border, #e2e8f0);
  border-radius: 12px; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.ctr-drawer-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ctr-assign-pickers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.ctr-assign-col h4 { margin: 0 0 8px; font-size: 13px; }
.ctr-multi-select { width: 100%; min-height: 160px; margin: 8px 0; font-size: 13px; }
.ctr-bulk-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; padding: 10px; background: #f8fafc; border-radius: 8px; }
.ctr-assign-table select.pg-search-input { min-width: 120px; padding: 4px 6px; font-size: 12px; }
.ctr-row-draft { background: #fffbeb; }
@media (max-width: 900px) {
  .ctr-assign-pickers { grid-template-columns: 1fr; }
}
.ctr-chart-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.ctr-stat-card {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--lz-border);
  background: #f8fafc;
}
.ctr-kpi-row { margin-bottom: 16px; }
.ctr-money { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ctr-pipeline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px;
  padding: 12px; background: #f8fafc; border-radius: 8px; border: 1px solid #e2e8f0;
}
.ctr-pipeline-step {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: #e2e8f0; color: #475569; white-space: nowrap;
}
.ctr-pipeline-step.is-active {
  background: var(--lz-red, #c62828); color: #fff; font-weight: 600;
}
.ctr-pipeline-arrow { color: #94a3b8; font-size: 11px; }
.ctr-action-centre { margin-bottom: 16px; }
.ctr-action-list { list-style: none; margin: 0; padding: 0; }
.ctr-action-list li { margin: 6px 0; }
.ctr-action-list a { color: var(--lz-red, #c62828); text-decoration: none; font-weight: 500; }
.ctr-action-list a:hover { text-decoration: underline; }
.ctr-action-tab { font-size: 13px; }
.ctr-person-suggestions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--lz-border, #ddd);
  border-radius: 8px;
  padding: 6px;
  background: #fff;
}
.ctr-person-suggestion {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: none;
  background: #f8fafc;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
.ctr-person-suggestion:hover { background: #fee2e2; }
.ctr-audit-list { display: flex; flex-direction: column; gap: 8px; }
.ctr-audit-row {
  display: grid;
  grid-template-columns: 120px 140px 100px 1fr;
  gap: 10px;
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 13px;
}
.ctr-actions-cell { white-space: nowrap; }
.ctr-stat-cell { font-size: 12px; }
.lz-backend-notice {
  padding: 8px 10px;
  border-radius: 6px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
  font-size: 12px;
}

/* Store */
.store-page-body { display: flex; flex-direction: column; min-height: 0; }
.store-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 16px;
  align-items: start;
}
.store-main-panel { min-width: 0; }
.store-history-panel { min-width: 0; max-height: calc(100vh - 160px); overflow: auto; }
.store-history-wrap { max-height: 420px; overflow: auto; }
.store-action-row { display: flex; flex-wrap: wrap; gap: 8px; }
.store-item-row { cursor: pointer; }
.store-item-row.store-row--selected { background: #fef2f2; }
.sch-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 960px) {
  .store-layout { grid-template-columns: 1fr; }
}

/* Business foundation modules */
.biz-page-body { display: flex; flex-direction: column; min-height: 0; }
.biz-tab-row { flex-wrap: wrap; margin: 12px 0; }
.biz-toolbar { margin: 10px 0; }
.crm-list-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 10px;
}
.crm-page-size-label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.crm-page-nav { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.crm-page-label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.crm-page-input {
  width: 52px;
  padding: 4px 6px;
  border: 1px solid var(--lz-border);
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
}
.biz-kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 12px 0; }
.biz-kpi { background: #f8fafc; border: 1px solid var(--lz-border); border-radius: 8px; padding: 10px 12px; }
.biz-kpi strong { display: block; font-size: 20px; color: var(--lz-red); margin-top: 4px; }

.dorm-units-table .dorm-unit-row { cursor: pointer; }
.dorm-units-table .dorm-unit-row:hover { background: #f8fafc; }
.dorm-occ-cell { width: 72px; text-align: center; vertical-align: middle; }

.dorm-donut { display: inline-flex; vertical-align: middle; line-height: 0; }
.dorm-donut svg { display: block; }
.dorm-donut-track { stroke: #e5e7eb; }
.dorm-donut-label { font-size: 8px; font-weight: 700; fill: #334155; font-family: system-ui, sans-serif; }
.dorm-donut--md svg { width: 48px; height: 48px; }
.dorm-donut--md .dorm-donut-label { font-size: 7px; }
.dorm-donut--lg svg { width: 72px; height: 72px; }
.dorm-donut--lg .dorm-donut-label { font-size: 9px; }

.dorm-dash-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
  margin: 0 0 16px; padding: 12px 14px; background: #f8fafc;
  border: 1px solid var(--lz-border); border-radius: 10px;
}
.dorm-dash-donut-wrap { display: flex; align-items: center; gap: 12px; }
.dorm-dash-donut-title { display: block; font-size: 1.25rem; color: #0f172a; }
.dorm-dash-legend { display: flex; flex-wrap: wrap; gap: 10px 14px; font-size: 12px; color: #64748b; }
.dorm-legend-item { display: inline-flex; align-items: center; gap: 5px; }
.dorm-legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dorm-legend-dot--green { background: #16a34a; }
.dorm-legend-dot--orange { background: #ea580c; }
.dorm-legend-dot--red { background: #dc2626; }
.dorm-dash-kpis { margin: 0; flex: 1; min-width: 180px; }

.dorm-detail-panel {
  width: min(920px, 96vw);
  max-width: 920px;
  margin-left: auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  position: relative;
  z-index: 1;
}
.dorm-detail-body {
  overflow: auto;
  padding: 12px 16px 8px;
  flex: 1;
}
.dorm-detail-form { margin-bottom: 12px; }
.dorm-cost-hint { margin-top: 8px; }

.dorm-occ-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
  padding: 10px 12px; background: #f8fafc; border-radius: 8px; border: 1px solid #e5e7eb;
}
.dorm-occ-head-text { display: flex; flex-direction: column; gap: 2px; }
.dorm-section-title { margin: 14px 0 8px; font-size: 13px; }

.dorm-assign-panel {
  margin-bottom: 14px; padding: 10px 12px; border: 1px solid #e5e7eb;
  border-radius: 8px; background: #fff;
}
.dorm-assign-toolbar {
  display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: end;
  margin-bottom: 8px;
}
@media (max-width: 640px) {
  .dorm-assign-toolbar { grid-template-columns: 1fr; }
}
.dorm-assign-search {
  width: 100%; padding: 7px 10px; border: 1px solid #cbd5e1; border-radius: 6px;
  font-size: 13px; background: #fff;
}
.dorm-assign-date-lbl {
  display: flex; flex-direction: column; gap: 2px; margin: 0; font-size: 11px;
  color: #64748b; white-space: nowrap;
}
.dorm-assign-date {
  padding: 6px 8px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 13px;
  min-width: 130px;
}
.dorm-assign-list {
  display: flex; flex-direction: column; gap: 4px;
  max-height: 180px; overflow-y: auto; border: 1px solid #e5e7eb;
  border-radius: 6px; padding: 4px; background: #fafafa;
}
.dorm-assign-pick {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  width: 100%; text-align: left; padding: 6px 10px; border: 1px solid transparent;
  border-radius: 5px; background: #fff; cursor: pointer; font-size: 13px;
}
.dorm-assign-pick:hover { border-color: #cbd5e1; background: #f8fafc; }
.dorm-assign-pick.is-selected { border-color: var(--lz-red); background: #fef2f2; }
.dorm-assign-pick.is-hidden { display: none; }
.dorm-assign-pick-name { font-weight: 600; color: #0f172a; }
.dorm-assign-pick-emp { font-size: 12px; color: #64748b; font-variant-numeric: tabular-nums; }
.dorm-assign-empty { margin: 8px; text-align: center; }
.dorm-occ-table .dorm-occ-actions { white-space: nowrap; width: 1%; }

.people-teams-layout { display: grid; grid-template-columns: 1fr min(22rem, 32vw); gap: 1rem; align-items: start; }
.people-teams-sidebar { max-height: calc(100vh - 8rem); overflow: auto; }
.people-teams-summary {
  display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem; margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem; background: #f8fafc; border-radius: 0.5rem;
}
.people-unassigned-list li { padding: 0.35rem 0; border-bottom: 1px solid var(--lz-border, #e5e7eb); }
.people-unassigned-list--cols .people-unassigned-row,
.people-unassigned-list--cols .people-unassigned-head {
  display: grid; grid-template-columns: 2.5rem 5.5rem 1fr; gap: 0.5rem; align-items: center;
}
.people-unassigned-head { font-weight: 600; border-bottom: 2px solid var(--lz-border, #e5e7eb); }
.people-quick-assign { min-width: 2rem; padding: 2px 6px; }
.people-assign-spacer { display: inline-block; width: 2rem; }
.sch-unassigned-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 8px;
}
.sch-unassigned-head h3, .sch-unassigned-head h4 { margin: 0; font-size: 14px; }
.sch-dept-toggle { gap: 4px; }
.sch-dept-toggle .pg-filter-btn { padding: 4px 10px; font-size: 12px; min-width: 42px; }
.sch-unassigned-search {
  width: 100%;
  margin-bottom: 8px;
  flex: 0 0 auto;
  min-width: 0;
  max-width: none;
  height: 28px;
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1.25;
  box-sizing: border-box;
}
.sch-unassigned-list { max-height: min(82vh, 960px); min-height: 480px; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.sch-unassigned-list .people-unassigned-row {
  padding: 2px 0;
  font-size: 11px;
  line-height: 1.25;
}
.sch-unassigned-list .people-unassigned-name {
  font-size: 11px;
  font-weight: 600;
}
.sch-unassigned-list .people-unassigned-emp {
  font-size: 10px;
  color: var(--lz-muted);
}
.sch-unassigned-list .people-unassigned-head {
  font-size: 10px;
  padding: 2px 0 4px;
}
.sch-unassigned-list.people-unassigned-list--cols .people-unassigned-row,
.sch-unassigned-list.people-unassigned-list--cols .people-unassigned-head {
  grid-template-columns: 1.75rem 4.25rem 1fr;
  gap: 0.35rem;
}
.sch-sidebar-card--workers {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}
.sch-board-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.sch-board-table th,
.sch-board-table td {
  padding: 3px 6px;
  font-size: 12px;
  vertical-align: middle;
}
.sch-board-table th { font-size: 11px; }
.sch-board-table .btn-sm { padding: 2px 6px; font-size: 11px; }
.sch-unassigned-empty { padding: 8px 4px; }
.sch-teams-view { margin-top: 8px; }
.people-teams-summary--compact {
  margin-bottom: 6px;
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1.35;
}
.people-teams-actions { margin: 8px 0 12px; }
.people-teams-actions--compact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}
.people-teams-actions--compact .btn-sm { padding: 2px 8px; font-size: 11px; }
.people-teams-actions .btn-danger { font-size: 13px; }
.teams-table.sch-board-table tbody tr.teams-table-row.is-selected {
  background: #eff6ff;
  box-shadow: inset 3px 0 0 var(--lz-red);
}
.teams-table .sch-teams-sup-cell {
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.teams-table .sch-teams-count {
  text-align: center;
  width: 2.5rem;
  font-variant-numeric: tabular-nums;
}
.teams-table .sch-teams-action-cell {
  width: 1%;
  white-space: nowrap;
}
.teams-table-row { cursor: pointer; }
.teams-table-row:hover { background: #f8fafc; }
.team-detail-panel { max-width: 560px; width: min(560px, 92vw); margin-left: auto; }
.team-detail-body.pg-drawer-body {
  display: block;
  overflow-y: auto;
}
.team-detail-body { padding: 16px 20px 20px; max-height: calc(100vh - 120px); overflow-y: auto; }
.team-detail-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin-bottom: 8px;
}
.team-detail-form .lz-field--wide { grid-column: 1 / -1; }
.team-detail-form .lz-field--full { grid-column: 1 / -1; }
.team-detail-meta {
  margin: 0;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
}
.team-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}
.team-detail-footnote { margin-top: 12px; }
.team-detail-add-member {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}
.team-detail-add-member .lz-field--grow { flex: 1; min-width: 0; }
.team-member-filter { margin-bottom: 6px; }
.team-member-select {
  min-height: 140px;
  max-height: 200px;
}
.team-detail-section-title {
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lz-muted);
}
.team-detail-members { margin-top: 4px; }
.team-member-select option { padding: 4px 2px; }
.lz-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.lz-field-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lz-muted);
}
.lz-field-input,
.lz-field-select,
.lz-field-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  color: var(--lz-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lz-field-select {
  min-height: 42px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.lz-field-input::placeholder { color: #94a3b8; }
.lz-field-input:hover,
.lz-field-select:hover,
.lz-field-textarea:hover {
  border-color: #94a3b8;
}
.lz-field-input:focus,
.lz-field-select:focus,
.lz-field-textarea:focus {
  outline: none;
  border-color: var(--lz-red);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.12);
}
.lz-field-input:read-only,
.lz-field-input[readonly] {
  background: #f8fafc;
  color: #64748b;
  cursor: default;
}
.lz-field-input:disabled,
.lz-field-select:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
}
.team-detail-body .data-table { margin-top: 4px; }
.team-type-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.team-type-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.team-type-option input { margin: 0; }
.team-type-option.is-active {
  border-color: var(--lz-primary, #2563eb);
  background: #eff6ff;
}
.team-type-option.is-active input[type="radio"] {
  accent-color: var(--lz-primary, #2563eb);
}
.sch-subcon-job-note {
  margin: 0 0 10px;
  padding: 8px 10px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 8px;
  color: #9a3412;
}
.sch-day-sheet-card {
  max-width: min(1100px, 96vw);
  width: 100%;
  position: relative;
  z-index: 2;
  background: var(--lz-card, #fff);
  border: 1px solid var(--lz-border, #e2e8f0);
  border-radius: var(--lz-radius, 10px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  padding: 18px 20px;
  max-height: calc(100vh - 40px);
  overflow: auto;
}
.sch-day-sheet-card .lz-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.sch-day-sheet-card .lz-modal-head h3 {
  margin: 0;
  font-size: 16px;
}
.sch-toolbar-row {
  width: 100%;
}
.sch-g05-day-sheet-btn {
  margin-left: auto;
  flex-shrink: 0;
}
body[data-lz-module="scheduler"] #schDaySheetModal {
  z-index: 2600;
}
.sch-day-sheet-host {
  overflow: auto;
  max-height: 70vh;
  background: #fff;
  padding: 8px;
}
.sch-day-sheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-family: Arial, Helvetica, sans-serif;
  color: #111;
  background: #fff;
}
.sch-day-sheet-table th,
.sch-day-sheet-table td {
  border: 1px solid #222;
  text-align: center;
  vertical-align: middle;
  padding: 6px 8px;
}
.sch-day-sheet-title,
.sch-day-sheet-date {
  font-weight: 700;
  background: #f8fafc;
}
.sch-day-sheet-table thead tr:last-child th {
  background: #eef2ff;
  font-weight: 700;
}
.sch-day-sheet-subcon td {
  color: #15803d;
  font-weight: 600;
}
.sch-day-sheet-po-cell {
  padding: 2px !important;
  min-width: 160px;
}
.sch-day-sheet-po {
  width: 100%;
  border: 1px solid #94a3b8;
  border-radius: 4px;
  padding: 4px 6px;
  font: inherit;
  background: #fff;
  cursor: pointer;
}
.sch-day-sheet-po:focus {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}
.sch-subcon-incharge {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}
.sch-subcon-incharge label {
  display: grid;
  gap: 4px;
  font-weight: 600;
  font-size: 13px;
}
.sch-subcon-incharge .pg-search-input {
  width: 100%;
  max-width: 420px;
}
.sf-dr-shadow-incharge {
  grid-column: 1 / -1;
}
.sf-dr-shadow-incharge .pg-search-input {
  width: 100%;
  max-width: 420px;
  margin-top: 4px;
}
.dr-shadow-incharge {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  font-weight: 600;
}
.dr-shadow-incharge .pg-search-input {
  width: 100%;
  max-width: 420px;
}
#btnSchSubconPersonnel.is-active {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}
.team-subcon-panel {
  padding: 14px 16px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #f8fafc;
}
.team-crm-company-combo { z-index: 5; }
.team-crm-company-combo .dept-combobox-list {
  z-index: 40;
  max-height: 220px;
}
.team-subcon-intro { margin: 0 0 12px; }
.team-subcon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}
.team-subcon-total-value {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--lz-border);
}
.team-subcon-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7c2d12;
  background: #ffedd5;
  border: 1px solid #fdba74;
  vertical-align: middle;
}
.team-under-main-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #1e3a5f;
  background: #e0f2fe;
  border: 1px solid #7dd3fc;
  vertical-align: middle;
}
.team-subcon-note { margin-top: 12px; }
.sf-manpower-subcon-total { margin-top: 8px; }
.dr-subcon-times {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 12px;
}
.dr-subcon-times label { display: inline-flex; align-items: center; gap: 8px; }
.team-log-table td { vertical-align: top; }
.assets-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; align-items: center; }
.assets-toolbar .pg-search-input { flex: 1; min-width: 200px; max-width: 420px; }
.assets-toolbar-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.assets-dash-cards { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.assets-dash-card {
  min-width: 120px; padding: 12px 14px; border: 1px solid var(--lz-border, #d8dee6);
  border-radius: 10px; background: var(--lz-surface, #fff); text-align: left; cursor: pointer;
}
.assets-dash-card.is-active { border-color: var(--lz-primary, #1a5fb4); box-shadow: 0 0 0 1px var(--lz-primary, #1a5fb4); }
.assets-dash-card-val { display: block; font-size: 1.35rem; font-weight: 700; }
.assets-dash-card-label { display: block; font-size: 0.8rem; color: var(--lz-muted, #5c6773); margin-top: 4px; }
.assets-sev-overdue { color: #c01c28; font-weight: 600; }
.assets-sev-soon { color: #c64600; font-weight: 600; }
.assets-sev-later { color: #986a00; }
.assets-type-inventory { margin-bottom: 16px; }
.assets-type-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.assets-type-chip {
  border: 1px solid var(--lz-border, #d8dee6); border-radius: 999px; padding: 6px 12px;
  background: var(--lz-surface-2, #f6f8fa); cursor: pointer; font-size: 0.9rem;
}
.assets-scope-badge { font-size: 0.75rem; color: var(--lz-primary, #1a5fb4); margin-left: 4px; }
.assets-person-results { display: flex; flex-direction: column; gap: 4px; max-height: 160px; overflow: auto; }
.assets-person-pick { text-align: left; }
.assets-type-field-row { border: 1px dashed var(--lz-border, #d8dee6); padding: 8px; margin-bottom: 8px; border-radius: 8px; }
.assets-table td { vertical-align: middle; }
.team-sup-col { width: 2.5rem; text-align: center; }
.team-sup-cell { text-align: center; vertical-align: middle; }
.team-sup-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  cursor: pointer;
}
.team-sup-tick input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.team-sup-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--lz-border);
  border-radius: 4px;
  font-size: 12px;
  color: transparent;
  background: #fff;
}
.team-sup-tick input:checked + .team-sup-mark,
.team-sup-mark--on {
  color: #fff;
  background: var(--lz-red);
  border-color: var(--lz-red);
  font-weight: 700;
}
.team-sup-mark--off { color: var(--lz-muted); font-size: 11px; border: 0; background: transparent; }

/* Quotation — Xero-style editor */
.qt-editor { display: flex; flex-direction: column; gap: 12px; }
.qt-editor-sticky {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 10px 14px;
  margin: -4px -4px 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--lz-border);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}
.qt-org-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 20px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #93c5fd;
  background: #fff;
}
.qt-org-header__main { display: flex; gap: 12px; align-items: flex-start; flex: 1; min-width: 220px; }
.qt-org-header__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--lz-red);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.qt-org-header__name { display: block; font-size: 15px; color: var(--lz-text); margin-bottom: 4px; }
.qt-org-header__meta { margin: 0; font-size: 12px; line-height: 1.4; }
.qt-org-header__pick { min-width: 240px; max-width: 360px; }
.qt-org-header__pick .qt-field { margin-bottom: 0; }
.qt-field--inline { display: block; }
.qt-editor-org-badge {
  max-width: min(420px, 45vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 2px 10px;
}
.qt-field--org .qt-select { margin-top: 4px; }
.qt-org-tax-note { display: block; margin-top: 6px; }
.qt-editor-sticky-title { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 160px; flex-wrap: wrap; }
.qt-back-btn { border-radius: 999px; }
.qt-save-cluster { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.qt-btn-save {
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
  cursor: pointer;
}
.qt-btn-save:hover { filter: brightness(1.05); }
.qt-btn-draft {
  border: 2px solid #94a3b8;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  background: #fff;
  color: #475569;
  cursor: pointer;
}
.qt-workflow-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 4px 4px;
}
.qt-workflow-btn {
  border: 1px solid var(--lz-border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  cursor: pointer;
}
.qt-workflow-btn:hover { border-color: var(--lz-red); color: var(--lz-red); background: #fef2f2; }
.qt-workflow-btn--primary {
  background: var(--lz-red);
  color: #fff;
  border-color: var(--lz-red);
  font-weight: 700;
}
.qt-workflow-btn--primary:hover { filter: brightness(1.05); color: #fff; background: var(--lz-red); }
.qt-input, .qt-select, .qt-textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.qt-input:focus, .qt-select:focus, .qt-textarea:focus {
  outline: none;
  border-color: #fca5a5;
  box-shadow: 0 0 0 3px rgba(252, 165, 165, 0.35);
}
.qt-textarea { resize: vertical; min-height: 88px; font-family: inherit; }
.qt-field { display: block; font-size: 12px; font-weight: 600; color: var(--lz-muted); margin-bottom: 10px; }
.qt-field--mt { margin-top: 12px; }
.qt-card--header { background: linear-gradient(180deg, #eff6ff 0%, #fff 100%); border-color: #bfdbfe; }
.qt-card--customer { background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%); border-color: #bbf7d0; }
.qt-card--lines { background: linear-gradient(180deg, #fffbeb 0%, #fff 100%); border-color: #fde68a; }
.qt-card--terms { background: linear-gradient(180deg, #faf5ff 0%, #fff 100%); border-color: #e9d5ff; }
.qt-card--notes { background: linear-gradient(180deg, #f8fafc 0%, #fff 100%); border-color: #e2e8f0; }
.qt-card--attach { background: linear-gradient(180deg, #fff1f2 0%, #fff 100%); border-color: #fecdd3; }
.qt-card--xero { background: linear-gradient(180deg, #f1f5f9 0%, #fff 100%); border-color: #cbd5e1; }
.qt-card--summary { background: linear-gradient(180deg, #fef2f2 0%, #fff 100%); border-color: #fecaca; }
.qt-customer-combo { position: relative; }
.qt-customer-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  background: #fff;
  border: 1px solid var(--lz-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  max-height: 240px;
  overflow-y: auto;
}
.qt-customer-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
}
.qt-customer-item:hover { background: #fef2f2; }
.qt-customer-item--new { color: var(--lz-red); font-weight: 600; }
.qt-customer-empty { padding: 12px; font-size: 12px; color: var(--lz-muted); }
.qt-notes-log { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; max-height: 200px; overflow-y: auto; }
.qt-note-entry { padding: 10px 12px; background: #fff; border-radius: 10px; border: 1px solid #e2e8f0; }
.qt-note-body { margin: 0 0 4px; font-size: 13px; white-space: pre-wrap; }
.qt-attachments-list { display: flex; flex-direction: column; gap: 10px; }
.qt-attach-card {
  padding: 12px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}
.qt-attach-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.qt-attach-status { color: #d97706; font-size: 12px; font-weight: 600; }
.qt-attach-edit { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.qt-attach-edit .qt-input { margin-top: 0; min-width: 160px; }
.qt-upload-btn { cursor: pointer; border-radius: 999px; }
.qt-preset-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.qt-preset-row { padding: 12px; border: 1px solid var(--lz-border); border-radius: 10px; background: #fff; }
.qt-editor-head { margin-bottom: 4px; }
.qt-editor-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qt-editor-tabs { margin: 0; }
.qt-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 16px;
  align-items: start;
}
.qt-editor-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.qt-card { padding: 14px 16px; }
.qt-card-title { margin: 0 0 12px; font-size: 14px; color: var(--lz-text); text-transform: uppercase; letter-spacing: 0.04em; }
.qt-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px 14px;
}
.qt-form-grid label { font-size: 12px; color: var(--lz-muted); }
.qt-form-grid input, .qt-form-grid select { display: block; width: 100%; margin-top: 4px; }
.qt-span-2 { grid-column: span 2; }
.qt-block-label { display: block; font-size: 12px; color: var(--lz-muted); margin-bottom: 10px; }
.qt-block-label textarea { display: block; width: 100%; margin-top: 4px; }
.qt-summary-card { position: sticky; top: 12px; }
.qt-summary-dl { margin: 0; }
.qt-summary-dl div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f1f5f9; font-size: 13px; }
.qt-summary-dl dt { color: var(--lz-muted); margin: 0; }
.qt-summary-dl dd { margin: 0; font-weight: 600; }
.qt-summary-total { font-size: 15px; color: var(--lz-red); border-top: 2px solid var(--lz-border); margin-top: 6px; padding-top: 8px; }
.qt-line-table-wrap { overflow-x: auto; }
.qt-line-table input.qt-input--table,
.qt-line-table select.qt-input--table {
  min-width: 64px;
  font-size: 12px;
  padding: 6px 8px;
  margin-top: 0;
  border-radius: 8px;
}
.qt-line-table .qt-in-desc { min-width: 140px; }
.qt-line-table .qt-desc-area { min-width: 220px; min-height: 52px; resize: vertical; font-family: inherit; }
.qt-col-desc { min-width: 220px; }
.qt-money-cell { white-space: nowrap; }
.qt-money-prefix { color: var(--lz-muted); font-size: 12px; margin-right: 2px; }
.qt-money-input { min-width: 88px; text-align: right; }
.qt-money-display { text-align: right; font-variant-numeric: tabular-nums; }
.qt-line-preset { max-width: 180px; }
.qt-tax-note { margin: 0 0 8px; }
.qt-budget-summary--compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px 16px;
  max-width: 720px;
}
.qt-budget-summary--compact div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  border-bottom: none;
}
.qt-budget-summary--compact dt { font-size: 11px; margin: 0; }
.qt-budget-summary--compact dd { margin: 0; font-size: 14px; font-weight: 700; }
.qt-card--budget-summary { max-width: 760px; }
.data-table input.qt-input--table,
.data-table select.qt-input--table {
  font-size: 12px;
  padding: 6px 8px;
  margin-top: 0;
  border-radius: 8px;
}
.qt-line-amt { font-weight: 600; white-space: nowrap; }
.qt-line-actions { white-space: nowrap; }
.qt-line-actions .btn { padding: 2px 6px; margin: 0 1px; }
.qt-line-tools { display: flex; gap: 6px; }
.qt-action-row { display: flex; flex-wrap: wrap; gap: 8px; }
.qt-attach-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.qt-attach-row input { flex: 1; min-width: 120px; }
.qt-status-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #f1f5f9; }
.qt-status--accepted, .qt-status--converted_to_contract { background: #dcfce7; color: #166534; }
.qt-status--sent { background: #dbeafe; color: #1d4ed8; }
.qt-status--draft, .qt-status--revised { background: #fef3c7; color: #92400e; }
.qt-status--rejected, .qt-status--void { background: #fee2e2; color: #991b1b; }
.qt-budget-wrap { display: flex; flex-direction: column; gap: 12px; }
.qt-budget-summary dd:last-child { color: var(--lz-red); font-size: 16px; }
.qt-print-note { margin-top: 12px; font-size: 11px; }
@media (max-width: 1100px) {
  .qt-editor-grid { grid-template-columns: 1fr; }
  .qt-summary-card { position: static; }
}
.lz-backend-notice {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
  font-size: 12px;
}
.lz-salary-restricted, .lz-salary-restricted-inline {
  color: #94a3b8;
  font-style: italic;
  font-size: 12px;
}
.nav-group--hr .nav-group-title,
.nav-group--hr .nav-group-title-text,
.nav-group--hr .nav-group-header { color: var(--hr-accent); }
.nav-group--commercial .nav-group-title,
.nav-group--commercial .nav-group-title-text,
.nav-group--commercial .nav-group-header { color: var(--commercial-accent); }
.nav-group--costing .nav-group-title,
.nav-group--costing .nav-group-title-text,
.nav-group--costing .nav-group-header { color: var(--costing-accent); }
.nav-group--claims .nav-group-title,
.nav-group--claims .nav-group-title-text,
.nav-group--claims .nav-group-header { color: var(--claims-accent); }
.nav-group--projects .nav-group-title,
.nav-group--projects .nav-group-title-text,
.nav-group--projects .nav-group-header { color: var(--projects-accent); }
.nav-group--accounts .nav-group-title,
.nav-group--accounts .nav-group-title-text,
.nav-group--accounts .nav-group-header { color: var(--accounts-accent); }
.nav-group--enterprise .nav-group-title,
.nav-group--enterprise .nav-group-title-text,
.nav-group--enterprise .nav-group-header { color: var(--enterprise-accent); }
.nav-group--core .nav-group-title,
.nav-group--core .nav-group-title-text,
.nav-group--core .nav-group-header { color: var(--core-accent); }

/* Collapsible sidebar groups */
.nav-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  margin-bottom: 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--lz-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-align: left;
}
.nav-group-header::before {
  content: '';
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: var(--group-accent, #64748b);
  flex-shrink: 0;
}
.nav-group-header:hover { background: rgba(255, 255, 255, 0.55); color: var(--lz-text); }
.nav-group-header .nav-icon-wrap { width: 28px; height: 28px; }
.nav-group-chevron {
  width: 12px;
  flex-shrink: 0;
  font-size: 10px;
  color: #94a3b8;
}
.nav-group-title-text { flex: 1; min-width: 0; }
.nav-group--collapsed .nav-group-body { display: none; }
.nav-group--expanded .nav-group-body { display: block; }
.nav-group--flat .nav-group-body { display: block; }
.nav-group--flat.nav-group--collapsed .nav-group-body { display: block; }
.nav-link--active {
  background: rgba(255, 255, 255, 0.92);
  color: var(--group-accent, var(--lz-red));
  box-shadow: inset 3px 0 0 var(--group-accent, var(--lz-red));
}
.nav-link--active svg { color: var(--group-accent, var(--lz-red)); }

/* Dedicated portal — flat nav, light sidebar */
.lz-app--wsh .sidebar,
.lz-app--sys .sidebar,
.lz-app--hod .sidebar,
.lz-app--ug .sidebar,
.lz-app--ag .sidebar,
.lz-app--hr .sidebar,
.lz-app--fm .sidebar,
.lz-app--qu .sidebar {
  --host-nav-text: #1e293b;
  --host-nav-muted: #64748b;
  --host-nav-surface: #ffffff;
  --host-nav-border: rgba(148, 163, 184, 0.28);
  --host-nav-glow: rgba(99, 102, 241, 0.1);
  background:
    radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--host-accent, #6366f1) 7%, transparent), transparent 58%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
  border-right-color: var(--lz-border);
  color: var(--host-nav-text);
  box-shadow: inset -1px 0 0 rgba(15, 23, 42, 0.04);
}
.lz-app--wsh .sidebar { --host-accent: #ea580c; --host-nav-glow: rgba(234, 88, 12, 0.1); }
.lz-app--lzos .sidebar { --host-accent: #b91c1c; --host-nav-glow: rgba(185, 28, 28, 0.1); }
.lz-app--sys .sidebar { --host-accent: #4f46e5; --host-nav-glow: rgba(79, 70, 229, 0.1); }
.lz-app--hod .sidebar { --host-accent: #0284c7; --host-nav-glow: rgba(2, 132, 199, 0.1); }
.lz-app--ug .sidebar { --host-accent: #4f46e5; --host-nav-glow: rgba(79, 70, 229, 0.1); }
.lz-app--ag .sidebar { --host-accent: #0891b2; --host-nav-glow: rgba(8, 145, 178, 0.1); }
.lz-app--hr .sidebar { --host-accent: #db2777; --host-nav-glow: rgba(219, 39, 119, 0.1); }
.lz-app--fm .sidebar { --host-accent: #2563eb; --host-nav-glow: rgba(37, 99, 235, 0.1); }
.lz-app--qu .sidebar { --host-accent: #7c3aed; --host-nav-glow: rgba(124, 58, 237, 0.1); }

.lz-app--wsh .sidebar-head,
.lz-app--sys .sidebar-head,
.lz-app--hod .sidebar-head,
.lz-app--ug .sidebar-head,
.lz-app--ag .sidebar-head,
.lz-app--hr .sidebar-head,
.lz-app--fm .sidebar-head,
.lz-app--qu .sidebar-head {
  border-bottom-color: var(--lz-border);
}
.lz-app--wsh .sidebar-foot,
.lz-app--sys .sidebar-foot,
.lz-app--hod .sidebar-foot,
.lz-app--ug .sidebar-foot,
.lz-app--ag .sidebar-foot,
.lz-app--hr .sidebar-foot,
.lz-app--fm .sidebar-foot,
.lz-app--qu .sidebar-foot {
  border-top-color: var(--lz-border);
  color: var(--host-nav-muted);
}
.lz-app--wsh .sidebar-version-label,
.lz-app--sys .sidebar-version-label,
.lz-app--hod .sidebar-version-label,
.lz-app--ug .sidebar-version-label,
.lz-app--ag .sidebar-version-label,
.lz-app--hr .sidebar-version-label,
.lz-app--fm .sidebar-version-label,
.lz-app--qu .sidebar-version-label { color: #94a3b8; }
.lz-app--wsh .sidebar-version-value,
.lz-app--sys .sidebar-version-value,
.lz-app--hod .sidebar-version-value,
.lz-app--ug .sidebar-version-value,
.lz-app--ag .sidebar-version-value,
.lz-app--hr .sidebar-version-value,
.lz-app--fm .sidebar-version-value,
.lz-app--qu .sidebar-version-value { color: #64748b; }
.lz-app--wsh .sidebar-nav::-webkit-scrollbar-thumb,
.lz-app--sys .sidebar-nav::-webkit-scrollbar-thumb,
.lz-app--hod .sidebar-nav::-webkit-scrollbar-thumb,
.lz-app--ug .sidebar-nav::-webkit-scrollbar-thumb,
.lz-app--ag .sidebar-nav::-webkit-scrollbar-thumb,
.lz-app--hr .sidebar-nav::-webkit-scrollbar-thumb,
.lz-app--fm .sidebar-nav::-webkit-scrollbar-thumb,
.lz-app--qu .sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
}
.lz-app--wsh .sidebar .lz-brand-title--digital,
.lz-app--sys .sidebar .lz-brand-title--digital,
.lz-app--hod .sidebar .lz-brand-title--digital,
.lz-app--ug .sidebar .lz-brand-title--digital,
.lz-app--ag .sidebar .lz-brand-title--digital,
.lz-app--hr .sidebar .lz-brand-title--digital,
.lz-app--fm .sidebar .lz-brand-title--digital,
.lz-app--qu .sidebar .lz-brand-title--digital {
  color: #0f172a;
}
.lz-app--wsh .sidebar .lz-connection-status-label,
.lz-app--sys .sidebar .lz-connection-status-label,
.lz-app--hod .sidebar .lz-connection-status-label,
.lz-app--ug .sidebar .lz-connection-status-label,
.lz-app--ag .sidebar .lz-connection-status-label,
.lz-app--hr .sidebar .lz-connection-status-label,
.lz-app--fm .sidebar .lz-connection-status-label,
.lz-app--qu .sidebar .lz-connection-status-label {
  color: #64748b;
}
.lz-app--wsh .lz-float-sidebar-toggle,
.lz-app--sys .lz-float-sidebar-toggle,
.lz-app--hod .lz-float-sidebar-toggle,
.lz-app--ug .lz-float-sidebar-toggle,
.lz-app--ag .lz-float-sidebar-toggle,
.lz-app--hr .lz-float-sidebar-toggle,
.lz-app--fm .lz-float-sidebar-toggle,
.lz-app--qu .lz-float-sidebar-toggle {
  background: #ffffff;
  border-color: var(--lz-border);
  color: #475569;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

/* Dedicated portal — logo + brand header on light sidebar */
.lz-app--wsh .sidebar .lz-brand-logo-wrap,
.lz-app--sys .sidebar .lz-brand-logo-wrap,
.lz-app--hod .sidebar .lz-brand-logo-wrap,
.lz-app--ug .sidebar .lz-brand-logo-wrap,
.lz-app--ag .sidebar .lz-brand-logo-wrap,
.lz-app--hr .sidebar .lz-brand-logo-wrap,
.lz-app--fm .sidebar .lz-brand-logo-wrap,
.lz-app--qu .sidebar .lz-brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 10px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.lz-app--wsh .sidebar .lz-brand-logo,
.lz-app--sys .sidebar .lz-brand-logo,
.lz-app--hod .sidebar .lz-brand-logo,
.lz-app--ug .sidebar .lz-brand-logo,
.lz-app--ag .sidebar .lz-brand-logo,
.lz-app--hr .sidebar .lz-brand-logo,
.lz-app--fm .sidebar .lz-brand-logo,
.lz-app--qu .sidebar .lz-brand-logo {
  mix-blend-mode: multiply !important;
  height: 34px;
}
.lz-app--wsh .sidebar .lz-brand-portal-platform,
.lz-app--sys .sidebar .lz-brand-portal-platform,
.lz-app--hod .sidebar .lz-brand-portal-platform,
.lz-app--ug .sidebar .lz-brand-portal-platform,
.lz-app--ag .sidebar .lz-brand-portal-platform,
.lz-app--hr .sidebar .lz-brand-portal-platform,
.lz-app--fm .sidebar .lz-brand-portal-platform,
.lz-app--qu .sidebar .lz-brand-portal-platform {
  color: #64748b;
}
.lz-app--wsh .sidebar .lz-brand-portal-code,
.lz-app--sys .sidebar .lz-brand-portal-code,
.lz-app--hod .sidebar .lz-brand-portal-code,
.lz-app--ug .sidebar .lz-brand-portal-code,
.lz-app--ag .sidebar .lz-brand-portal-code,
.lz-app--hr .sidebar .lz-brand-portal-code,
.lz-app--fm .sidebar .lz-brand-portal-code,
.lz-app--qu .sidebar .lz-brand-portal-code {
  color: var(--host-accent, #334155);
  text-shadow: none;
}
.lz-app--wsh .sidebar .lz-brand-logo-fallback,
.lz-app--sys .sidebar .lz-brand-logo-fallback,
.lz-app--hod .sidebar .lz-brand-logo-fallback,
.lz-app--ug .sidebar .lz-brand-logo-fallback,
.lz-app--ag .sidebar .lz-brand-logo-fallback,
.lz-app--hr .sidebar .lz-brand-logo-fallback,
.lz-app--fm .sidebar .lz-brand-logo-fallback,
.lz-app--qu .sidebar .lz-brand-logo-fallback {
  color: var(--lz-red);
}

.sidebar-portal-strip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 2px 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--host-nav-border, rgba(148, 163, 184, 0.28));
  background: linear-gradient(
    135deg,
    #ffffff,
    color-mix(in srgb, var(--host-accent, #6366f1) 5%, #f8fafc)
  );
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.sidebar-portal-strip:hover,
.sidebar-portal-strip:focus-visible {
  border-color: color-mix(in srgb, var(--host-accent, #6366f1) 42%, rgba(148, 163, 184, 0.28));
  box-shadow: 0 4px 14px color-mix(in srgb, var(--host-accent, #6366f1) 16%, transparent);
  transform: translateY(-1px);
  outline: none;
}
.sidebar-portal-strip:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px color-mix(in srgb, var(--host-accent, #6366f1) 55%, transparent);
}
.sidebar-portal-glow {
  position: absolute;
  inset: -30% auto auto -20%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--host-nav-glow, rgba(99, 102, 241, 0.12)), transparent 68%);
  pointer-events: none;
}
.sidebar-portal-code {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--host-accent, #6366f1),
    color-mix(in srgb, var(--host-accent, #6366f1) 72%, #ffffff)
  );
  box-shadow: 0 2px 8px color-mix(in srgb, var(--host-accent, #6366f1) 24%, transparent);
}
.sidebar-portal-label {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--host-nav-text, #1e293b);
}
.sidebar-portal-go {
  position: relative;
  z-index: 1;
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--host-accent, #6366f1);
  opacity: 0.72;
}

.nav-group--host-flat {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin-bottom: 8px !important;
  box-shadow: none !important;
}
.nav-group--host-flat .nav-group-body { display: flex; flex-direction: column; gap: 6px; }

.nav-link--host-tile {
  position: relative;
  overflow: hidden;
  margin-bottom: 0 !important;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--host-nav-border, rgba(148, 163, 184, 0.28));
  background: var(--host-nav-surface, #ffffff);
  color: var(--host-nav-text, #1e293b);
  font-weight: 600;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.nav-link--host-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--tile-accent-soft, rgba(99, 102, 241, 0.08)), transparent 62%);
  opacity: 0;
  transition: opacity 0.16s ease;
  pointer-events: none;
}
.nav-link--host-tile:hover {
  transform: translateX(2px);
  border-color: color-mix(in srgb, var(--tile-accent, var(--host-accent, #6366f1)) 35%, #cbd5e1);
  background: #ffffff;
  color: var(--host-nav-text, #1e293b);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
.nav-link--host-tile:hover::before,
.nav-link--host-tile.nav-link--active::before { opacity: 1; }
.nav-link--host-tile .nav-icon-wrap {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  box-shadow: none;
}
.nav-link--host-tile svg { color: #64748b; }
.nav-link--host-tile:hover svg,
.nav-link--host-tile.nav-link--active svg {
  color: var(--tile-accent, var(--host-accent, #6366f1));
}
.nav-link--host-tile.nav-link--active {
  color: var(--tile-accent, var(--host-accent, #6366f1));
  border-color: color-mix(in srgb, var(--tile-accent, var(--host-accent, #6366f1)) 38%, #cbd5e1);
  box-shadow:
    inset 3px 0 0 var(--tile-accent, var(--host-accent, #6366f1)),
    0 4px 14px rgba(15, 23, 42, 0.06);
  background: color-mix(in srgb, var(--tile-accent, var(--host-accent, #6366f1)) 7%, #ffffff);
}

/* Home hub — distinct full-width bar on dedicated subdomains (not a module tile). */
.nav-link--portal-home {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0 !important;
  padding: 12px 14px;
  border-radius: 6px;
  border: 2px solid color-mix(in srgb, var(--lz-red) 72%, #fecaca);
  background: linear-gradient(180deg, #ffffff 0%, var(--lz-red-soft) 100%);
  color: var(--lz-text);
  font-weight: 700;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 14px rgba(198, 40, 40, 0.12);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.nav-link--portal-home::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: var(--lz-red);
}
.nav-link--portal-home:hover {
  transform: translateY(-1px);
  border-color: var(--lz-red);
  background: linear-gradient(180deg, #ffffff 0%, #fee2e2 100%);
  color: var(--lz-text);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 20px rgba(198, 40, 40, 0.18);
}
.nav-portal-home-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lz-red);
  border: 1px solid color-mix(in srgb, var(--lz-red) 85%, #000);
  box-shadow: 0 2px 6px rgba(198, 40, 40, 0.28);
}
.nav-portal-home-icon .nav-icon-wrap {
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  box-shadow: none;
}
.nav-portal-home-icon svg {
  color: #ffffff !important;
  stroke-width: 2.25;
}
.nav-portal-home-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}
.nav-portal-home-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lz-red);
}
.nav-portal-home-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--lz-text);
}
.nav-portal-home-arrow {
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: var(--lz-red);
  opacity: 0.85;
}
.nav-link--portal-home:hover .nav-portal-home-arrow { opacity: 1; }

.nav-link--host-tile[data-nav-accent="ops"] { --tile-accent: var(--ops-accent); --tile-accent-soft: rgba(2, 132, 199, 0.16); }
.nav-link--host-tile[data-nav-accent="eng"] { --tile-accent: var(--eng-accent); --tile-accent-soft: rgba(71, 85, 105, 0.18); }
.nav-link--host-tile[data-nav-accent="safety"] { --tile-accent: var(--safety-accent); --tile-accent-soft: rgba(234, 88, 12, 0.16); }
.nav-link--host-tile[data-nav-accent="workforce"] { --tile-accent: var(--workforce-accent); --tile-accent-soft: rgba(22, 163, 74, 0.16); }
.nav-link--host-tile[data-nav-accent="accounts"] { --tile-accent: var(--accounts-accent); --tile-accent-soft: rgba(3, 105, 161, 0.16); }
.nav-link--host-tile[data-nav-accent="enterprise"] { --tile-accent: var(--enterprise-accent); --tile-accent-soft: rgba(55, 48, 163, 0.18); }
.nav-link--host-tile[data-nav-accent="admin"] { --tile-accent: var(--admin-accent); --tile-accent-soft: rgba(71, 85, 105, 0.16); }
.nav-link--host-tile[data-nav-accent="core"] { --tile-accent: var(--core-accent); --tile-accent-soft: rgba(100, 116, 139, 0.16); }
.nav-link--host-tile[data-nav-accent="hr"] { --tile-accent: var(--hr-accent); --tile-accent-soft: rgba(219, 39, 119, 0.16); }
.nav-link--host-tile[data-nav-accent="commercial"] { --tile-accent: var(--commercial-accent); --tile-accent-soft: rgba(37, 99, 235, 0.16); }
.nav-link--host-tile[data-nav-accent="costing"] { --tile-accent: var(--costing-accent); --tile-accent-soft: rgba(180, 83, 9, 0.16); }
.nav-link--host-tile[data-nav-accent="claims"] { --tile-accent: var(--claims-accent); --tile-accent-soft: rgba(162, 28, 175, 0.16); }
.nav-link--host-tile[data-nav-accent="projects"] { --tile-accent: var(--projects-accent); --tile-accent-soft: rgba(13, 148, 136, 0.16); }

.nav-group--shortcuts .nav-group-title--shortcuts {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  padding: 4px 10px 8px;
}

.nav-link--global-shortcut {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
}

.nav-link--global-shortcut .nav-host-color-icon {
  display: inline-flex;
  flex-shrink: 0;
  visibility: visible;
}

.nav-shortcut-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.nav-host-color-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.nav-host-color-icon__emoji {
  font-size: 18px;
  line-height: 1;
}

.nav-host-color-icon[data-nav-accent="ops"] {
  background: linear-gradient(135deg, #fff 0%, var(--ops-bg) 100%);
  border-color: color-mix(in srgb, var(--ops-accent) 28%, #e2e8f0);
}
.nav-host-color-icon[data-nav-accent="eng"] {
  background: linear-gradient(135deg, #fff 0%, var(--eng-bg) 100%);
  border-color: color-mix(in srgb, var(--eng-accent) 28%, #e2e8f0);
}
.nav-host-color-icon[data-nav-accent="safety"] {
  background: linear-gradient(135deg, #fff 0%, var(--safety-bg) 100%);
  border-color: color-mix(in srgb, var(--safety-accent) 28%, #e2e8f0);
}
.nav-host-color-icon[data-nav-accent="workforce"] {
  background: linear-gradient(135deg, #fff 0%, var(--workforce-bg) 100%);
  border-color: color-mix(in srgb, var(--workforce-accent) 28%, #e2e8f0);
}
.nav-host-color-icon[data-nav-accent="accounts"] {
  background: linear-gradient(135deg, #fff 0%, var(--accounts-bg) 100%);
  border-color: color-mix(in srgb, var(--accounts-accent) 28%, #e2e8f0);
}
.nav-host-color-icon[data-nav-accent="enterprise"] {
  background: linear-gradient(135deg, #fff 0%, var(--enterprise-bg) 100%);
  border-color: color-mix(in srgb, var(--enterprise-accent) 28%, #e2e8f0);
}
.nav-host-color-icon[data-nav-accent="admin"] {
  background: linear-gradient(135deg, #fff 0%, var(--admin-bg) 100%);
  border-color: color-mix(in srgb, var(--admin-accent) 28%, #e2e8f0);
}
.nav-host-color-icon[data-nav-accent="core"] {
  background: linear-gradient(135deg, #fff 0%, var(--core-bg) 100%);
  border-color: color-mix(in srgb, var(--core-accent) 28%, #e2e8f0);
}
.nav-host-color-icon[data-nav-accent="hr"] {
  background: linear-gradient(135deg, #fff 0%, var(--hr-bg) 100%);
  border-color: color-mix(in srgb, var(--hr-accent) 28%, #e2e8f0);
}
.nav-host-color-icon[data-nav-accent="commercial"] {
  background: linear-gradient(135deg, #fff 0%, var(--commercial-bg) 100%);
  border-color: color-mix(in srgb, var(--commercial-accent) 28%, #e2e8f0);
}
.nav-host-color-icon[data-nav-accent="costing"] {
  background: linear-gradient(135deg, #fff 0%, var(--costing-bg) 100%);
  border-color: color-mix(in srgb, var(--costing-accent) 28%, #e2e8f0);
}
.nav-host-color-icon[data-nav-accent="claims"] {
  background: linear-gradient(135deg, #fff 0%, var(--claims-bg) 100%);
  border-color: color-mix(in srgb, var(--claims-accent) 28%, #e2e8f0);
}
.nav-host-color-icon[data-nav-accent="projects"] {
  background: linear-gradient(135deg, #fff 0%, var(--projects-bg) 100%);
  border-color: color-mix(in srgb, var(--projects-accent) 28%, #e2e8f0);
}

.nav-shortcut-portal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #475569;
  background: rgba(148, 163, 184, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.32);
}

.nav-link--global-shortcut .nav-link-label {
  font-size: 13px;
  line-height: 1.25;
}

.nav-link--global-shortcut.nav-link--host-tile::before {
  opacity: 0.85;
}

.nav-link--host-tile .nav-host-color-icon {
  position: relative;
  z-index: 1;
}

.app-shell.sidebar-collapsed .nav-link--global-shortcut {
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
}

.app-shell.sidebar-collapsed .nav-shortcut-text {
  align-items: center;
}

.app-shell.sidebar-collapsed .nav-link--global-shortcut .nav-link-label,
.app-shell.sidebar-collapsed .nav-shortcut-portal-badge {
  display: none;
}

.app-shell.sidebar-collapsed .nav-link--host-tile .nav-link-label {
  display: none;
}

.app-shell.sidebar-collapsed .sidebar-portal-label,
.app-shell.sidebar-collapsed .sidebar-portal-go { display: none; }
.app-shell.sidebar-collapsed .sidebar-portal-strip {
  justify-content: center;
  padding: 10px 8px;
}
.app-shell.sidebar-collapsed .nav-link--host-tile,
.app-shell.sidebar-collapsed .nav-link--portal-home {
  justify-content: center;
  padding: 10px 8px;
}
.app-shell.sidebar-collapsed .nav-link--host-tile .nav-link-label,
.app-shell.sidebar-collapsed .nav-link--portal-home .nav-portal-home-text,
.app-shell.sidebar-collapsed .nav-link--portal-home .nav-portal-home-arrow { display: none; }
.app-shell.sidebar-collapsed .nav-link--portal-home {
  padding: 10px;
  border-radius: 6px;
}
.app-shell.sidebar-collapsed .nav-portal-home-icon {
  width: 36px;
  height: 36px;
}

.nav-group-flyout {
  position: fixed;
  z-index: 2800;
  min-width: 200px;
  max-width: 260px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--lz-border);
  border-radius: 10px;
  box-shadow: var(--lz-shadow);
}
.nav-group-flyout-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--lz-text);
  font-size: 13px;
  font-weight: 500;
}
.nav-group-flyout-link:hover { background: #f8fafc; color: var(--lz-red); }
.nav-group-flyout-link .nav-icon-wrap { width: 28px; height: 28px; }

.app-shell.sidebar-collapsed .nav-group-chevron,
.app-shell.sidebar-collapsed .nav-group-title-text,
.app-shell.sidebar-collapsed .nav-group-title { display: none; }
.app-shell.sidebar-collapsed .nav-group-header {
  justify-content: center;
  padding: 8px 6px;
}
.app-shell.sidebar-collapsed .nav-group--collapsible .nav-group-body { display: none !important; }
.app-shell.sidebar-collapsed .nav-group--flat .nav-group-body { display: block !important; }
.app-shell.sidebar-collapsed .nav-group--flat .sidebar-collapse-btn .nav-link-label { display: none; }

/* Header quick modules */
.lz-header-actions {
  flex: 1;
  min-width: 0;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
.lz-quick-modules-wrap {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  max-width: min(560px, 52vw);
  height: 32px;
}
.lz-quick-modules-wrap.hidden { display: none; }
.lz-quick-scroll-btn {
  flex-shrink: 0;
  width: 22px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--lz-border);
  border-radius: 6px;
  background: #fff;
  color: var(--lz-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.lz-quick-scroll-btn:not(.is-disabled):not(:disabled):hover {
  color: var(--lz-red);
  border-color: #cbd5e1;
}
.lz-quick-scroll-btn.is-disabled,
.lz-quick-scroll-btn:disabled {
  opacity: 0.35;
  cursor: default;
  color: #94a3b8;
}
.lz-quick-scroll-btn.is-disabled:hover,
.lz-quick-scroll-btn:disabled:hover {
  color: #94a3b8;
  border-color: var(--lz-border);
}
.lz-quick-modules {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  padding: 0 4px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.lz-quick-modules::-webkit-scrollbar { display: none; }
.lz-quick-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 108px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}
.lz-quick-pill:hover { filter: brightness(1.06); color: #fff; }
.lz-quick-pill .nav-icon-wrap {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: none;
  flex-shrink: 0;
}
.lz-quick-pill svg { width: 13px; height: 13px; stroke: #fff; }
.lz-quick-pill-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}
.lz-quick-pill--core { background: var(--core-accent, #64748b); }
.lz-quick-pill--ops { background: var(--ops-accent, #2563eb); }
.lz-quick-pill--safety { background: var(--safety-accent, #059669); }
.lz-quick-pill--hr { background: var(--hr-accent, #db2777); }
.lz-quick-pill--commercial { background: var(--commercial-accent, #0369a1); }
.lz-quick-pill--costing { background: var(--costing-accent, #b45309); }
.lz-quick-pill--claims { background: var(--claims-accent, #a21caf); }
.lz-quick-pill--eng { background: var(--eng-accent, #0d9488); }
.lz-quick-pill--workforce { background: var(--workforce-accent, #9333ea); }
.lz-quick-pill--accounts { background: var(--accounts-accent, #0369a1); }
.lz-quick-pill--admin { background: var(--admin-accent, #475569); }
.lz-quick-pill--enterprise { background: var(--enterprise-accent, #3730a3); }
.lz-module-error { border-color: #fecaca; background: #fef2f2; }
.lz-error-detail {
  font-size: 11px;
  overflow: auto;
  max-height: 180px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--lz-border);
  border-radius: 6px;
}
.lz-quick-modules-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.lz-quick-module-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}
.lz-quick-module-option:hover { background: #f8fafc; }
.lz-quick-modules-limit { margin-top: 10px; }
.lz-access-denied { text-align: left; }

.sch-palette-scroll-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  min-height: 32px;
}
.sch-palette-scroll-row .sch-palette-track {
  flex: 1;
  min-width: 0;
  max-width: 100%;
}
.sch-palette-btn {
  flex-shrink: 0;
  min-width: 52px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--lz-border);
  border-radius: 6px;
  background: #fff;
  font-size: 11px;
  font-weight: 600;
  color: var(--lz-text);
  cursor: pointer;
  white-space: nowrap;
}
.sch-palette-btn:hover:not(.is-disabled):not(:disabled) {
  border-color: var(--lz-red);
  background: var(--lz-red-soft);
}
.sch-palette-btn.is-active {
  border-color: var(--lz-red);
  background: var(--lz-red-soft);
  color: var(--lz-red);
  box-shadow: inset 0 0 0 1px var(--lz-red);
}
.sch-palette-btn--size.is-active {
  border-color: #1e3a5f;
  background: #1e3a5f;
  color: #fff;
  box-shadow: inset 0 0 0 1px #0f172a;
}
.sch-palette-btn--fit.is-active {
  border-color: var(--lz-red, #dc2626);
  background: var(--lz-red, #dc2626);
  color: #fff;
  box-shadow: inset 0 0 0 1px #991b1b;
}
.sch-palette-filter-label--size {
  color: #1e3a5f;
}
.sch-palette-filter-label--type {
  color: var(--lz-red, #dc2626);
}
.sch-palette-filter-block--inline .sch-palette-filter-label--size {
  color: #1e3a5f;
  font-weight: 700;
}
.sch-palette-filter-block--inline .sch-palette-filter-label--type {
  color: var(--lz-red, #dc2626);
  font-weight: 700;
}
.sch-filter-chip--size {
  background: #e2e8f0;
  border-color: #1e3a5f;
  color: #1e3a5f;
}
.sch-filter-chip--type {
  background: var(--lz-red-soft, #fef2f2);
  border-color: var(--lz-red, #dc2626);
  color: var(--lz-red, #dc2626);
}
.sch-line-indicator-block {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.sch-line-chip {
  min-width: 52px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--lz-border);
  border-radius: 6px;
  background: #fff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  color: var(--lz-text);
}
.sch-line-chip.is-active {
  border-color: #1e3a5f;
  background: #1e3a5f;
  color: #fff;
}
.sch-line-chip.hidden { display: none; }
.sch-line-add-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px dashed var(--lz-border);
  border-radius: 6px;
  background: #f8fafc;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  color: #1e3a5f;
}
.sch-line-add-btn:hover:not(:disabled) {
  border-color: #1e3a5f;
  background: #e2e8f0;
}
.sch-line-add-btn.hidden { display: none; }
.sch-mat-line-readonly {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}
.sch-icon-btn--disabled,
.sch-icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.sch-palette-btn.is-disabled,
.sch-palette-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.sch-mat-filter-helpers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-height: 0;
}
.sch-mat-filter-helpers:empty { display: none; }
.sch-filter-helper-hint { font-size: 11px; }
.sch-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--lz-red-soft, #fef2f2);
  border: 1px solid var(--lz-red, #dc2626);
  color: var(--lz-red, #dc2626);
  font-size: 11px;
  font-weight: 600;
}
.sch-filter-chip-clear {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
}
.sch-line-select { min-width: 108px; height: 28px; font-size: 12px; padding: 2px 6px; }
.sch-branch-line-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sch-panel-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.sch-panel-head-row .sch-panel-title { margin: 0; }
.sch-mat-table-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.sch-mat-table-wrap { max-height: calc(100vh - 280px); overflow: auto; }
.sch-mat-table { font-size: 11px; }
.sch-mat-table th,
.sch-mat-table td { padding: 4px 6px; vertical-align: middle; }
.sch-mat-table .sch-mat-line-select {
  min-width: 88px;
  height: 26px;
  font-size: 11px;
  padding: 2px 4px;
}
.sch-mat-table-row--dup { background: #fffbeb; }
.sch-mat-td-seq { width: 28px; color: var(--lz-muted); }
.sch-mat-td-actions { width: 96px; text-align: right; white-space: nowrap; }
.sch-mat-table-row--click { cursor: pointer; }
.sch-mat-table-row--click:hover { background: #f8fafc; }
.sch-mat-table-row--open { background: #f1f5f9; }
.sch-mat-detail-row td { padding: 0 6px 8px !important; background: #f8fafc; border-bottom: 1px solid var(--lz-border); }
.sch-mat-detail { font-size: 11px; padding: 6px 4px 2px; }
.sch-mat-detail-title { margin: 0 0 4px; font-size: 12px; }
.sch-mat-detail-warn { color: #b45309; }
.sch-mat-td-status { width: 72px; }
.sch-mat-td-orient { font-size: 10px; color: var(--lz-muted); white-space: nowrap; }
.sch-mat-table-row--split { background: #fffbeb; }
.sch-mat-up, .sch-mat-down { min-width: 24px; padding: 0 4px; }
.sch-mat-group-head { cursor: pointer; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sch-mat-merge { margin-left: auto; }
.sch-mat-flip { min-width: 28px; padding: 0 6px; }
.sch-map-bulk-toolbar { flex-wrap: wrap; gap: 8px; align-items: center; }
.sch-map-check-col { width: 28px; text-align: center; }
.sch-map-material-col { min-width: 180px; max-width: 260px; }
.sch-map-material-cell { display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }
.sch-map-material-name {
  font-weight: 600;
  color: #0f172a;
  font-size: 13px;
}
.sch-map-material-code {
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #64748b;
}
.sch-map-material-brand {
  font-size: 11px;
  color: #94a3b8;
}
.sch-map-editor-code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.sch-mat-td-seq { width: 28px; color: var(--lz-muted); }
.sch-map-bulk-toolbar { flex-wrap: wrap; gap: 8px; align-items: center; }
.sch-map-check-col { width: 28px; text-align: center; }
.sch-map-material-col { min-width: 180px; max-width: 260px; }
.sch-map-material-cell { display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }
.sch-map-material-name {
  font-weight: 600;
  color: #0f172a;
  font-size: 13px;
}
.sch-map-material-code {
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #64748b;
}
.sch-map-material-brand {
  font-size: 11px;
  color: #94a3b8;
}
.sch-map-editor-code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.sch-mat-flip { min-width: 28px; padding: 0 6px; }
.sch-palette-hint { margin: 4px 0 0; font-size: 11px; }
.sch-mat-filter-input {
  width: 100%;
  min-width: 0;
}
.sch-mat-filter-list {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  background: #fff;
}
.sch-mat-pick-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  table-layout: fixed;
}
.sch-mat-pick-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  border-bottom: 1px solid var(--lz-border);
  padding: 4px 8px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--lz-muted);
}
.sch-mat-pick-table tbody {
  display: block;
  height: calc(var(--sch-mat-pick-row-h, 26px) * var(--sch-mat-pick-visible-rows, 10));
  max-height: calc(var(--sch-mat-pick-row-h, 26px) * var(--sch-mat-pick-visible-rows, 10));
  overflow-y: auto;
}
.sch-mat-pick-table thead,
.sch-mat-pick-table tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}
.sch-mat-pick-table td {
  padding: 5px 8px;
  border-bottom: 1px solid var(--lz-border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sch-mat-pick-table .sch-mat-filter-item {
  cursor: pointer;
}
.sch-mat-pick-table .sch-mat-filter-item:hover td { background: #fef2f2; }
.sch-mat-pick-table .sch-mat-filter-item:focus { outline: none; }
.sch-mat-pick-table .sch-mat-filter-item:focus td { background: #fef2f2; }
.sch-mat-filter-more { padding: 4px 8px; font-size: 10px; border-top: 1px solid var(--lz-border); background: #f8fafc; }
.sch-mat-filter-empty {
  padding: 12px;
  font-size: 12px;
  color: var(--lz-muted);
}
.sch-mat-filter-head {
  padding: 8px 12px 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--lz-muted);
  border-bottom: 1px solid var(--lz-border);
  background: #f8fafc;
}
.sch-mat-row-main--click { cursor: pointer; }
.sch-mat-row-main--click:hover { background: #f8fafc; border-radius: 6px; }
.sch-palette-tabs { margin: 6px 0 8px; }
.sch-mat-group { margin-bottom: 14px; }
.sch-mat-group-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--lz-red);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sch-mat-badge--fusion { background: #ede9fe; color: #5b21b6; margin-left: 4px; }
.sch-mat-pick-list { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow: auto; }
.sch-mat-pick-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.sch-mat-pick-row:hover { border-color: var(--lz-red); background: #fef2f2; }
.sch-set-palette-card { grid-column: 1 / -1; margin-top: 12px; }
.sch-set-palette-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.sch-pal-table { font-size: 12px; }
.sch-pal-kw { max-width: 220px; word-break: break-word; }
@media (max-width: 900px) {
  .sch-set-palette-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .lz-quick-modules-wrap { max-width: min(320px, 42vw); }
  .lz-quick-pill-label { display: none; }
  .lz-quick-pill { padding: 4px 7px; }
}
@media (max-width: 640px) {
  .lz-quick-modules-wrap { max-width: min(220px, 38vw); }
  .lz-quick-scroll-btn { width: 20px; }
}

.sig-profile-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.sig-profile-slot {
  border: 1px solid var(--lz-border, #e5e7eb);
  border-radius: 8px;
  padding: 12px;
}
.pg-drawer-card--endorse {
  margin-top: 0;
}
.pg-drawer-card--endorse .pg-sor-quick-add {
  flex-wrap: wrap;
  gap: 8px;
}
.sig-file-input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}
.sig-profile-preview {
  min-height: 72px;
  margin: 8px 0;
  padding: 8px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
}
.sig-profile-img {
  display: block;
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
}
.sig-profile-loading {
  color: #64748b;
  font-style: italic;
}
.sig-profile-auth-help {
  margin: 10px 0 4px;
  padding: 10px 12px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
}
.sig-profile-root { display: grid; gap: 20px; }
.sig-profile-section {
  border-top: 1px solid #e2e8f0;
  padding-top: 16px;
}
.sig-profile-section-title {
  margin: 0 0 8px;
  font-size: 1rem;
}
.sig-delegate-form {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  max-width: 520px;
}
.sig-delegate-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}
.sig-delegate-opts .feed-meta { width: 100%; margin-bottom: 2px; }
.sig-profile-table-wrap { margin-top: 8px; }
.sig-profile-table { font-size: 0.85rem; }
.sig-profile-table th,
.sig-profile-table td { vertical-align: top; }
.sig-usage-table td:nth-child(6) { max-width: 180px; word-break: break-word; }
.sig-vault-delegate-form { max-width: 640px; }

/* Embed mode — contract claim iframes */
body.lz-embed .sidebar { display: none !important; }
body.lz-embed .app-shell { display: block; min-height: 100vh; }
body.lz-embed .dashboard-body { margin-left: 0 !important; width: 100%; }
body.lz-embed .main-header .hosted-badge { display: none; }
body.lz-embed .lz-float-sidebar-toggle { display: none !important; }
body.lz-embed .pg-tab-row .pg-tab-btn[data-pg-tab="email-queue"],
body.lz-embed .pg-tab-row .pg-tab-btn[data-pg-tab="ingestion-log"],
body.lz-embed .pg-tab-row .pg-tab-btn[data-pg-tab="system-settings"] { display: none; }

/* All Apps launcher */
.lz-apps-intro {
  margin-bottom: 12px;
  padding: 12px 14px;
}
.lz-apps-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 8px;
}
.lz-apps-search-wrap {
  position: relative;
  flex: 1 1 220px;
  max-width: 360px;
  min-width: 180px;
}
.lz-apps-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--lz-muted);
  pointer-events: none;
}
.lz-apps-search {
  width: 100%;
  height: 34px;
  padding: 0 12px 0 32px;
  border: 1px solid var(--lz-border);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  color: var(--lz-text);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}
.lz-apps-search:focus {
  outline: none;
  border-color: #cbd5e1;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}
.lz-apps-search::placeholder { color: #94a3b8; }
.lz-apps-status {
  margin: 0;
  font-size: 12px;
  color: var(--lz-muted);
  white-space: nowrap;
}
.lz-apps-empty {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--lz-muted);
}
.lz-apps-group { margin-bottom: 18px; }
.lz-apps-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
  padding: 0 0 0 10px;
  border-left: 3px solid var(--group-accent, var(--lz-border));
}
.lz-apps-group-head h3 {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--group-accent, var(--lz-text));
}
.lz-apps-group-head .feed-meta { font-size: 11px; }
.lz-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.lz-app-card {
  position: relative;
  border-radius: var(--lz-radius-sm);
  border: 1px solid var(--lz-border);
  border-left: 3px solid var(--core-accent);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  background: linear-gradient(135deg, #fff 0%, var(--core-bg) 100%);
}
.lz-app-card-inner {
  display: flex;
  align-items: stretch;
  min-height: 64px;
}
.lz-app-card-link {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  padding: 8px 10px 8px 8px;
  text-decoration: none;
  color: inherit;
}
.lz-app-card-link:hover { filter: brightness(0.98); }
.lz-app-card-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.72);
}
.lz-app-card-icon svg { width: 15px; height: 15px; }
.lz-app-card-body { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.lz-app-card-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--lz-text);
  white-space: normal;
  overflow: visible;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.lz-app-card-desc {
  font-size: 10px;
  color: var(--lz-muted);
  line-height: 1.35;
  white-space: normal;
  overflow: visible;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.lz-app-card-kind {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lz-muted);
}
.lz-app-pin {
  flex: 0 0 34px;
  width: 34px;
  align-self: stretch;
  border: none;
  border-right: 1px solid var(--lz-border);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #94a3b8;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.lz-app-pin.is-pinned { color: #eab308; background: #fffbeb; }
.lz-app-pin:hover { background: #fff; color: var(--lz-red); }
.lz-app-pin:focus-visible {
  outline: 2px solid var(--lz-red);
  outline-offset: -2px;
}
.lz-app-card--core { background: linear-gradient(145deg, #fff 0%, var(--core-bg) 100%); border-left: 3px solid var(--core-accent); }
.lz-app-card--ops { background: linear-gradient(145deg, #fff 0%, var(--ops-bg) 100%); border-left: 3px solid var(--ops-accent); }
.lz-app-card--projects { background: linear-gradient(145deg, #fff 0%, var(--projects-bg) 100%); border-left: 3px solid var(--projects-accent); }
.lz-app-card--safety { background: linear-gradient(145deg, #fff 0%, var(--safety-bg) 100%); border-left: 3px solid var(--safety-accent); }
.lz-app-card--claims { background: linear-gradient(145deg, #fff 0%, var(--claims-bg) 100%); border-left: 3px solid var(--claims-accent); }
.lz-app-card--hr { background: linear-gradient(145deg, #fff 0%, var(--hr-bg) 100%); border-left: 3px solid var(--hr-accent); }
.lz-app-card--commercial { background: linear-gradient(145deg, #fff 0%, var(--commercial-bg) 100%); border-left: 3px solid var(--commercial-accent); }
.lz-app-card--costing { background: linear-gradient(145deg, #fff 0%, var(--costing-bg) 100%); border-left: 3px solid var(--costing-accent); }
.lz-app-card--eng { background: linear-gradient(145deg, #fff 0%, var(--eng-bg) 100%); border-left: 3px solid var(--eng-accent); }
.lz-app-card--workforce { background: linear-gradient(145deg, #fff 0%, var(--workforce-bg) 100%); border-left: 3px solid var(--workforce-accent); }
.lz-app-card--accounts { background: linear-gradient(145deg, #fff 0%, var(--accounts-bg) 100%); border-left: 3px solid var(--accounts-accent); }
.lz-app-card--admin { background: linear-gradient(145deg, #fff 0%, var(--admin-bg) 100%); border-left: 3px solid var(--admin-accent); }
.lz-app-card--enterprise { background: linear-gradient(145deg, #fff 0%, var(--enterprise-bg) 100%); border-left: 3px solid var(--enterprise-accent); }

.lz-portal-launcher-card { display: block; text-decoration: none; color: inherit; margin-bottom: 0; }

.lz-gallery-main { padding-bottom: 24px; }
.lz-gallery-controls { margin-bottom: 12px; }
.lz-gallery-range-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.lz-gallery-range-pill {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
}
.lz-gallery-range-pill:hover { border-color: #94a3b8; background: #f8fafc; }
.lz-gallery-range-pill.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
}
.lz-gallery-range-custom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.lz-gallery-range-custom label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
}
.lz-gallery-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.lz-gallery-toolbar-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.lz-gallery-page-size-pills { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.lz-gallery-action-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-subtle, #e8e8e8); }

.lz-gallery-mosaic-wrap {
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.lz-gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  align-items: stretch;
  min-height: 120px;
}
@media (min-width: 640px) {
  .lz-gallery-mosaic { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  .lz-gallery-mosaic { grid-template-columns: repeat(5, 1fr); }
}
.lz-gallery-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 0;
  padding: 0;
  margin: 0;
  background: #1e293b;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  min-width: 0;
}
.lz-gallery-tile:focus-visible { outline: 2px solid #60a5fa; outline-offset: -2px; z-index: 1; }
.lz-gallery-tile-img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background-color: #334155;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.lz-gallery-tile-img--failed {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fca5a5;
  font-weight: 700;
  background-color: #450a0a;
  background-image: none !important;
}
.lz-gallery-tile-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 5px 6px 6px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0.95) 100%);
  color: #e2e8f0;
  font-size: 10px;
  line-height: 1.25;
  min-height: 42px;
}
.lz-gallery-tile-when { font-weight: 600; color: #f8fafc; font-size: 11px; }
.lz-gallery-tile-purpose,
.lz-gallery-tile-loc {
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lz-gallery-tile-check {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(15, 23, 42, 0.45);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}
.lz-gallery-tile-check.is-checked {
  background: #2563eb;
  border-color: #2563eb;
}
.lz-gallery-tile-check.is-checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.lz-gallery-tile.is-selected .lz-gallery-tile-img { opacity: 0.82; }

/* Events Gallery — global event albums */
body[data-lz-module="eventgallery"] .main-content {
  max-width: 1120px;
}

.lz-evg-intro {
  background: linear-gradient(135deg, #fff7ed 0%, #fff 55%);
  border-left: 4px solid #b91c1c;
}
.lz-evg-intro .feed-meta {
  margin: 0;
  line-height: 1.5;
}

.lz-evg-create-form {
  display: grid;
  gap: 12px;
  max-width: 480px;
}
.lz-evg-create-panel {
  margin: 0 0 16px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid #fecaca;
  background: linear-gradient(135deg, #fff7ed 0%, #fff 70%);
  box-shadow: 0 4px 16px rgba(185, 28, 28, 0.08);
}
.lz-evg-create-panel.hidden {
  display: none;
}
.lz-evg-create-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.lz-evg-create-panel__head h3 {
  margin: 0;
  font-size: 1.05rem;
}
.lz-evg-create-panel__hint {
  margin: 0 0 12px;
}
.lz-evg-create-close {
  flex-shrink: 0;
  background: rgba(15, 23, 42, 0.08) !important;
  color: #334155 !important;
  width: 36px;
  height: 36px;
}
.lz-evg-create-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.lz-evg-list-empty {
  margin: 12px 0 0;
  text-align: center;
  color: #64748b;
}

.lz-evg-create-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 148px;
  padding: 16px;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.15s;
}
.lz-evg-create-card:hover {
  border-color: #b91c1c;
  background: #fff7ed;
  box-shadow: 0 8px 20px rgba(185, 28, 28, 0.1);
  transform: translateY(-1px);
}
.lz-evg-create-card:focus-visible {
  outline: 2px solid #b91c1c;
  outline-offset: 2px;
}
.lz-evg-create-card__ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.35);
  transition: transform 0.15s ease;
}
.lz-evg-create-card:hover .lz-evg-create-card__ring {
  transform: scale(1.06);
}
.lz-evg-create-card__icon {
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  color: #fff;
  margin-top: -2px;
}

.lz-evg-create-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}
.lz-evg-create-form .pg-search-input {
  font-weight: 400;
}

.lz-evg-event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.lz-evg-event-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--evg-card-border, #e2e8f0);
  border-radius: 10px;
  background: linear-gradient(180deg, #fff 0%, var(--evg-card-bg, #f8fafc) 100%);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  --evg-card-accent: #b91c1c;
  --evg-card-accent-soft: #fef2f2;
  --evg-card-border: #e2e8f0;
  --evg-card-bg: #f8fafc;
  --evg-card-cover-a: #fee2e2;
  --evg-card-cover-b: #fecaca;
}
.lz-evg-event-card__cover {
  display: block;
  width: 100%;
  height: 78px;
  aspect-ratio: auto;
  background: #e2e8f0 center/cover no-repeat;
  border-bottom: 1px solid var(--evg-card-border, #e2e8f0);
}
.lz-evg-event-card__cover--empty {
  background:
    linear-gradient(135deg, var(--evg-card-cover-a) 0%, var(--evg-card-cover-b) 45%, #f1f5f9 100%);
}
.lz-evg-event-card__cover--ready {
  background-color: #0f172a;
}
.lz-evg-event-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 8px 10px 10px;
}
.lz-evg-event-card:hover {
  border-color: var(--evg-card-accent);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--evg-card-accent) 18%, transparent);
  transform: translateY(-1px);
}
.lz-evg-event-card__date {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--evg-card-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.lz-evg-event-card__title {
  font-size: 0.88rem;
  line-height: 1.25;
  color: #0f172a;
}
.lz-evg-event-card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  font-size: 0.75rem;
  color: #64748b;
}
.lz-evg-event-card__meta {
  margin-top: auto;
  padding-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}
.lz-evg-event-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--evg-card-accent-soft);
  color: var(--evg-card-accent);
  font-size: 10px;
  font-weight: 700;
}

/* Stable per-event palette (from event_id hash) */
.lz-evg-event-card--tone-0 {
  --evg-card-accent: #b91c1c;
  --evg-card-accent-soft: #fef2f2;
  --evg-card-border: #fecaca;
  --evg-card-bg: #fff7f7;
  --evg-card-cover-a: #fecaca;
  --evg-card-cover-b: #f87171;
}
.lz-evg-event-card--tone-1 {
  --evg-card-accent: #c2410c;
  --evg-card-accent-soft: #fff7ed;
  --evg-card-border: #fdba74;
  --evg-card-bg: #fffaf5;
  --evg-card-cover-a: #fed7aa;
  --evg-card-cover-b: #fb923c;
}
.lz-evg-event-card--tone-2 {
  --evg-card-accent: #a16207;
  --evg-card-accent-soft: #fefce8;
  --evg-card-border: #fde047;
  --evg-card-bg: #fffef5;
  --evg-card-cover-a: #fef08a;
  --evg-card-cover-b: #facc15;
}
.lz-evg-event-card--tone-3 {
  --evg-card-accent: #15803d;
  --evg-card-accent-soft: #f0fdf4;
  --evg-card-border: #86efac;
  --evg-card-bg: #f7fdf9;
  --evg-card-cover-a: #bbf7d0;
  --evg-card-cover-b: #4ade80;
}
.lz-evg-event-card--tone-4 {
  --evg-card-accent: #0f766e;
  --evg-card-accent-soft: #f0fdfa;
  --evg-card-border: #5eead4;
  --evg-card-bg: #f5fffd;
  --evg-card-cover-a: #99f6e4;
  --evg-card-cover-b: #2dd4bf;
}
.lz-evg-event-card--tone-5 {
  --evg-card-accent: #1d4ed8;
  --evg-card-accent-soft: #eff6ff;
  --evg-card-border: #93c5fd;
  --evg-card-bg: #f7fbff;
  --evg-card-cover-a: #bfdbfe;
  --evg-card-cover-b: #60a5fa;
}
.lz-evg-event-card--tone-6 {
  --evg-card-accent: #6d28d9;
  --evg-card-accent-soft: #f5f3ff;
  --evg-card-border: #c4b5fd;
  --evg-card-bg: #faf8ff;
  --evg-card-cover-a: #ddd6fe;
  --evg-card-cover-b: #a78bfa;
}
.lz-evg-event-card--tone-7 {
  --evg-card-accent: #be185d;
  --evg-card-accent-soft: #fdf2f8;
  --evg-card-border: #f9a8d4;
  --evg-card-bg: #fff7fb;
  --evg-card-cover-a: #fbcfe8;
  --evg-card-cover-b: #f472b6;
}

.lz-evg-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  padding-bottom: 4px;
}
.lz-evg-hero-main {
  flex: 1 1 240px;
  min-width: 0;
}
.lz-evg-hero-main h3 {
  margin: 8px 0 6px;
  font-size: 1.35rem;
  line-height: 1.25;
  color: #0f172a;
}
.lz-evg-hero-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 700;
}
.lz-evg-hero-desc {
  margin: 8px 0 0;
  color: #64748b;
  line-height: 1.45;
}
.lz-evg-hero-meta {
  margin: 8px 0 0;
  font-size: 12px;
  color: #94a3b8;
}
.lz-evg-back-btn {
  margin-bottom: 4px;
}

.lz-evg-photos-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.lz-evg-photos-head h3 {
  margin: 0;
}
.lz-evg-photo-count {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.lz-evg-upload-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.lz-evg-upload-toolbar .feed-meta {
  flex: 1 1 100%;
  margin: 0;
  font-size: 12px;
}
.lz-evg-upload-label {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.lz-evg-upload-label.btn-primary {
  box-shadow: 0 1px 2px rgba(185, 28, 28, 0.2);
}
.lz-evg-bridge-auth {
  flex: 1 1 100%;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
}
.lz-evg-bridge-auth .feed-meta {
  margin: 0 0 8px;
}

.lz-evg-photos-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}
.lz-evg-photo-count {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}
.lz-evg-page-size-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin: 0;
}
.lz-evg-page-size {
  width: auto;
  min-width: 4.5rem;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 600;
}
.lz-evg-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}
.lz-evg-pagination.hidden {
  display: none;
}

.lz-evg-mosaic-wrap {
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.lz-evg-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  min-height: 120px;
}
@media (min-width: 640px) {
  .lz-evg-mosaic { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  .lz-evg-mosaic { grid-template-columns: repeat(5, 1fr); }
}
.lz-evg-mosaic-empty {
  grid-column: 1 / -1;
  padding: 48px 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

.lz-evg-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 0;
  background: #1e293b;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  min-width: 0;
}
.lz-evg-tile:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: -2px;
  z-index: 1;
}
.lz-evg-tile-img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background-color: #334155;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  transition: transform 0.2s ease;
}
.lz-evg-tile:not(.lz-evg-tile--uploading):hover .lz-evg-tile-img {
  transform: scale(1.03);
}
.lz-evg-tile-img--uploading {
  background: #334155;
}
.lz-evg-tile--uploading {
  cursor: default;
}
.lz-evg-tile-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 6px 6px;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.88) 100%);
  color: #e2e8f0;
  font-size: 10px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.lz-evg-admin-actions {
  margin-top: 12px;
}
.lz-evg-btn-danger {
  border-color: #b91c1c;
  color: #b91c1c;
}
.lz-evg-btn-danger:hover {
  background: #fef2f2;
}
.lz-evg-viewer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lz-evg-viewer-cover {
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 600;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
}
.lz-evg-viewer-cover--active,
.lz-evg-viewer-cover:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}
.lz-evg-viewer-delete {
  color: #fecaca !important;
}
.lz-evg-viewer-delete:hover {
  background: rgba(185, 28, 28, 0.35) !important;
}
.lz-evg-tile--cover .lz-evg-tile-img {
  outline: 2px solid #b91c1c;
  outline-offset: -2px;
}
.lz-evg-tile-cover-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  padding: 2px 7px;
  border-radius: 999px;
  background: #b91c1c;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Events Gallery — bounded lightbox (desktop + mobile) */
.lz-gallery-viewer--evg {
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
}
.lz-gallery-viewer--evg .lz-gallery-viewer__shell {
  width: min(920px, 100%);
  max-height: min(88dvh, 820px);
  height: auto;
  flex: 0 1 auto;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}
.lz-gallery-viewer--evg .lz-gallery-viewer__stage {
  flex: 1 1 auto;
  min-height: 160px;
  max-height: calc(min(88dvh, 820px) - 120px);
}
.lz-gallery-viewer--evg .lz-gallery-viewer__img-wrap {
  padding: 8px 0;
}
.lz-gallery-viewer--evg .lz-gallery-viewer__img {
  max-width: 100%;
  max-height: calc(min(88dvh, 820px) - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}
.lz-gallery-viewer--evg .lz-gallery-viewer__meta {
  max-height: 28vh;
  padding: 12px 16px 16px;
}
.lz-gallery-viewer--evg .lz-gallery-viewer__meta-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  align-items: start;
}
@media (max-width: 640px) {
  .lz-gallery-viewer--evg {
    padding: 0;
    align-items: stretch;
  }
  .lz-gallery-viewer--evg .lz-gallery-viewer__shell {
    width: 100%;
    max-width: 100%;
    max-height: 100dvh;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
  }
  .lz-gallery-viewer--evg .lz-gallery-viewer__stage {
    max-height: calc(100dvh - 130px);
  }
  .lz-gallery-viewer--evg .lz-gallery-viewer__img {
    max-height: calc(100dvh - 150px);
  }
  .lz-gallery-viewer--evg .lz-gallery-viewer__nav {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
}

body[data-lz-module="eventgallery"] .sf-upload-status--float {
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

.lz-evg-share-owner {
  border-left: 4px solid #0f766e;
  background: linear-gradient(135deg, #f0fdfa 0%, #fff 60%);
}
.lz-evg-share-owner-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #99f6e4;
  border-radius: 10px;
  background: #fff;
}
.lz-evg-share-owner-meta {
  display: grid;
  gap: 6px;
  min-width: 0;
  flex: 1 1 220px;
}
.lz-evg-share-url {
  display: block;
  width: 100%;
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  word-break: break-all;
  color: #0f766e;
  background: #f0fdfa;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #99f6e4;
  cursor: pointer;
}
.lz-evg-share-url:hover {
  background: #ccfbf1;
}
.lz-evg-share-copied {
  background: #0f766e !important;
  border-color: #0f766e !important;
  color: #fff !important;
}
.lz-evg-share-create-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 8px;
}
.lz-evg-share-create-hint {
  margin: 0 0 14px;
}
.lz-evg-share-type-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  width: fit-content;
}
.lz-evg-share-type-badge--upload {
  background: #ffedd5;
  color: #c2410c;
}
.lz-evg-share-type-badge--view {
  background: #ccfbf1;
  color: #0f766e;
}
.lz-evg-share-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 12px;
}
.lz-evg-share-tile {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  border-radius: 8px;
  overflow: hidden;
}
.lz-evg-share-tile-img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background: #e2e8f0 center/cover no-repeat;
  position: relative;
}
.lz-evg-share-tile--video .lz-evg-share-tile-img {
  background-color: #0f172a;
}
.lz-evg-share-tile-badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
}
.lz-evg-share-tile-meta {
  display: block;
  padding: 4px 2px 0;
  font-size: 0.7rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lz-evg-share-viewer {
  position: fixed;
  inset: 0;
  z-index: 1200;
}
.lz-evg-share-viewer.hidden { display: none; }
.lz-evg-share-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
}
.lz-evg-share-viewer-shell {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  max-width: 900px;
  margin: 0 auto;
  padding: env(safe-area-inset-top, 0) 12px env(safe-area-inset-bottom, 0);
}
.lz-evg-share-viewer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #e2e8f0;
  padding: 10px 4px;
}
.lz-evg-share-viewer-close {
  border: 0;
  background: rgba(255,255,255,0.12);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 1.4rem;
  cursor: pointer;
}
.lz-evg-share-viewer-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.lz-evg-share-viewer-media {
  max-width: 100%;
  max-height: calc(100dvh - 140px);
  border-radius: 8px;
}
.lz-evg-share-viewer-meta {
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 10px 4px 16px;
  text-align: center;
}
.lz-evg-share-viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}
.lz-evg-share-viewer-nav--prev { left: 8px; }
.lz-evg-share-viewer-nav--next { right: 8px; }
.lz-evg-share-viewer-loading,
.lz-evg-share-viewer-error {
  color: #e2e8f0;
}
@media (min-width: 640px) {
  .lz-evg-share-mosaic {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
}
.lz-evg-share-owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Guest share upload page (no staff shell) */
.lz-evg-share-page {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(120% 80% at 10% -10%, #fecaca 0%, transparent 55%),
    linear-gradient(180deg, #fff7ed 0%, #f8fafc 42%, #ffffff 100%);
  color: #0f172a;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}
.lz-evg-share-shell {
  max-width: 440px;
  margin: 0 auto;
  padding: 20px 16px calc(28px + env(safe-area-inset-bottom, 0px));
}
.lz-evg-share-head {
  text-align: center;
  margin-bottom: 18px;
}
.lz-evg-share-logo {
  display: inline-block;
  height: 40px;
  width: auto;
}
.lz-evg-share-brand {
  margin: 8px 0 0;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.lz-evg-share-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
}
.lz-evg-share-card h1 {
  margin: 4px 0 8px;
  font-size: 1.45rem;
  line-height: 1.25;
}
.lz-evg-share-kicker {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #b91c1c;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.lz-evg-share-expiry {
  margin: 0 0 16px;
  color: #475569;
}
.lz-evg-share-label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.lz-evg-share-input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 12px;
  font-size: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
}
.lz-evg-share-input:focus {
  outline: 2px solid #b91c1c;
  outline-offset: 1px;
  border-color: #b91c1c;
  background: #fff;
}
.lz-evg-share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.lz-evg-share-file-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  margin: 0;
  text-align: center;
}
.lz-evg-share-hint {
  margin: 0 0 8px;
  font-size: 0.8rem;
  color: #64748b;
}
.lz-evg-share-staging {
  margin: 12px 0 10px;
  padding: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
}
.lz-evg-share-staging-head h2 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}
.lz-evg-share-staging-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 12px;
}
.lz-evg-share-staging--empty .lz-evg-share-staging-grid {
  display: none;
}
.lz-evg-share-staging-item {
  position: relative;
  min-width: 0;
}
.lz-evg-share-staging-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #e2e8f0 center/cover no-repeat;
  position: relative;
  overflow: hidden;
}
.lz-evg-share-staging-thumb--video {
  background-color: #0f172a;
}
.lz-evg-share-staging-thumb--pending {
  animation: skel-pulse 1.4s ease-in-out infinite;
}
.lz-evg-share-staging-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.lz-evg-share-staging-name {
  display: block;
  margin-top: 4px;
  font-size: 0.65rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lz-evg-share-staging-actions {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 8px;
}
.lz-evg-share-staging-actions .btn {
  min-height: 44px;
}
.lz-evg-share-status {
  min-height: 1.25em;
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: #334155;
}
.lz-evg-share-status--error {
  color: #b91c1c;
}
.lz-evg-share-session-wrap {
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
  margin-top: 4px;
}
.lz-evg-share-album-wrap {
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
  margin-top: 16px;
}
.lz-evg-share-album-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
}
.lz-evg-share-album-head h2 {
  margin: 0;
  font-size: 0.95rem;
}
.lz-evg-share-refresh {
  flex-shrink: 0;
  min-height: 36px;
  padding: 6px 12px;
}
.lz-evg-share-album-wrap h2,
.lz-evg-share-session-wrap h2 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}
.lz-evg-share-session {
  margin: 0;
  padding-left: 18px;
  color: #475569;
  font-size: 0.88rem;
}
.lz-evg-share-session li {
  margin-bottom: 4px;
}
.lz-evg-tile--video .lz-evg-tile-img {
  background: #0f172a;
}
.lz-evg-tile-video-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
@media (max-width: 380px) {
  .lz-evg-share-actions {
    grid-template-columns: 1fr;
  }
}

.lz-gallery-empty {
  grid-column: 1 / -1;
  padding: 48px 20px;
  text-align: center;
  color: #94a3b8;
  background: #0f172a;
}
.lz-gallery-empty-title { margin: 0 0 8px; font-size: 18px; font-weight: 600; color: #e2e8f0; }
.lz-gallery-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}

/* Fullscreen photo viewer */
.lz-gallery-viewer {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.lz-gallery-viewer.hidden { display: none; }
.lz-gallery-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}
.lz-gallery-viewer__shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  height: 100%;
  max-height: 100dvh;
}
.lz-gallery-viewer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  color: #f8fafc;
  flex-shrink: 0;
}
.lz-gallery-viewer__counter { font-size: 14px; font-weight: 600; flex: 1; text-align: center; }
.lz-gallery-viewer__head-spacer { width: 40px; flex-shrink: 0; }
.lz-gallery-viewer__head-actions { display: flex; gap: 4px; }
.lz-gallery-viewer__icon-btn {
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.lz-gallery-viewer__icon-btn--close {
  background: rgba(239, 68, 68, 0.85);
  color: #fff;
  font-weight: 700;
}
.lz-gallery-viewer__icon-btn--close:hover { background: rgba(220, 38, 38, 0.95); }
.lz-gallery-viewer__icon-btn:hover { background: rgba(255, 255, 255, 0.22); }
.lz-gallery-viewer__actions {
  display: flex;
  gap: 10px;
  padding: 10px 16px 0;
  flex-shrink: 0;
}
.lz-gallery-viewer__action {
  flex: 1;
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.lz-gallery-viewer__action--share {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}
.lz-gallery-viewer__action--share:hover { background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%); }
.lz-gallery-viewer__action--download {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #1f2937;
}
.lz-gallery-viewer__action--download:hover { background: linear-gradient(135deg, #d97706 0%, #b45309 100%); }
.lz-gallery-viewer__action:disabled { opacity: 0.55; cursor: wait; }
.lz-gallery-viewer__status {
  margin: 0;
  padding: 8px 16px 0;
  min-height: 1.25em;
  font-size: 12px;
  color: #cbd5e1;
  text-align: center;
  flex-shrink: 0;
}
.lz-gallery-viewer__stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  position: relative;
  padding: 0 4px;
}
.lz-gallery-viewer__img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  max-height: 100%;
  width: 100%;
  overflow: hidden;
  /* Allow long-press Save Image when not zoomed */
  touch-action: manipulation;
  cursor: zoom-in;
}
.lz-gallery-viewer__img-wrap.is-zoomed {
  touch-action: none;
  cursor: grab;
}
.lz-gallery-viewer__img-wrap.is-zoomed.is-panning {
  cursor: grabbing;
}
.lz-gallery-viewer__zoom-port {
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  will-change: transform;
}
.lz-gallery-viewer__img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 200px);
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  /* Native long-press Save Image needs pointer events on the <img> */
  pointer-events: auto;
  -webkit-touch-callout: default;
  -webkit-user-select: auto;
  user-select: auto;
}
.lz-gallery-viewer__img-wrap.is-zoomed .lz-gallery-viewer__img {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
.lz-gallery-viewer__loading,
.lz-gallery-viewer__error {
  color: #cbd5e1;
  font-size: 14px;
  padding: 24px;
  text-align: center;
}
.lz-gallery-viewer__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(37, 99, 235, 0.75);
  color: #fff;
  width: 44px;
  height: 56px;
  font-size: 28px;
  cursor: pointer;
  border-radius: 8px;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.lz-gallery-viewer__nav:hover:not(:disabled) { background: rgba(29, 78, 216, 0.92); }
.lz-gallery-viewer__nav:disabled { opacity: 0.25; cursor: default; }
.lz-gallery-viewer__nav--prev { left: 4px; }
.lz-gallery-viewer__nav--next { right: 4px; }
.lz-gallery-viewer__meta {
  flex-shrink: 0;
  padding: 14px 16px 20px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.55) 100%);
  color: #e2e8f0;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 38vh;
  overflow-y: auto;
}
.lz-gallery-viewer__meta-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  align-items: start;
}
.lz-gallery-viewer__meta-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

/* Legacy gallery classes (kept for compatibility) */
.lz-gallery-filters .lz-gallery-filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.lz-gallery-filter-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.lz-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.lz-gallery-card { position: relative; border: 1px solid var(--border-subtle, #e5e7eb); border-radius: 10px; overflow: hidden; background: #fff; }
.lz-gallery-card.is-selected { outline: 2px solid var(--core-accent, #2563eb); }
.lz-gallery-card-check { position: absolute; top: 6px; left: 6px; z-index: 2; background: rgba(255,255,255,.9); border-radius: 4px; padding: 2px 4px; }
.lz-gallery-thumb-btn { display: block; width: 100%; border: 0; padding: 0; background: #f3f4f6; cursor: pointer; }
.lz-gallery-thumb { display: block; width: 100%; aspect-ratio: 1; background-size: cover; background-position: center; min-height: 120px; }
.lz-gallery-card-meta { padding: 8px; display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.lz-gallery-caption { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lz-quick-pill--projects { background: var(--projects-accent, #0d9488); }

.sig-profile-error {
  color: #b91c1c;
}

/* In-app file viewer (gateway blob URLs — no Drive links) */
.lz-file-viewer {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lz-file-viewer.hidden { display: none; }
.lz-file-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.lz-file-viewer__panel {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.lz-file-viewer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
}
.lz-file-viewer__head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}
.lz-file-viewer__body {
  flex: 1;
  min-height: 320px;
  background: #f8fafc;
}
.lz-file-viewer__frame {
  width: 100%;
  height: min(72vh, 720px);
  border: 0;
  display: block;
  background: #fff;
}
.lz-file-viewer__img {
  display: block;
  max-width: 100%;
  max-height: min(72vh, 720px);
  margin: 0 auto;
  object-fit: contain;
}
.lz-file-viewer__foot {
  padding: 10px 16px;
  border-top: 1px solid #e2e8f0;
}
.pg-timeline-attachment .pg-attachment-links { margin: 8px 0 0; }

/* Quick document view (/view) — Chat links, no module shell */
.lz-view-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #0f172a;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
}
.lz-view-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
  flex-shrink: 0;
}
.lz-view-brand .lz-brand-logo--compact { max-height: 28px; }
.lz-view-title-wrap { flex: 1; min-width: 0; }
.lz-view-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lz-view-sub { margin: 2px 0 0; color: #94a3b8; font-size: 11px; }
.lz-view-actions { flex-shrink: 0; }
.lz-view-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #334155;
}
.lz-view-frame {
  flex: 1;
  width: 100%;
  min-height: calc(100vh - 52px);
  min-height: calc(100dvh - 52px);
  border: none;
  background: #fff;
}
.lz-view-pdf {
  display: block;
}
.lz-view-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 52px);
  margin: 0 auto;
  object-fit: contain;
}
.lz-view-status { padding: 8px 14px; text-align: center; color: #cbd5e1; flex-shrink: 0; margin: 0; }
.lz-view-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.lz-view-pdf-scroll {
  flex: 1;
  overflow: auto;
  padding: 12px;
  -webkit-overflow-scrolling: touch;
}
.lz-view-pdf-page {
  margin: 0 auto 16px;
  max-width: 100%;
  text-align: center;
}
.lz-view-pdf-canvas {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.lz-view-pdf-page-label {
  margin: 6px 0 0;
  color: #94a3b8;
  font-size: 11px;
}
.lz-view-error {
  padding: 32px 20px;
  text-align: center;
  color: #e2e8f0;
  max-width: 420px;
  margin: 0 auto;
}
.lz-view-preview-hint {
  margin: 0;
  padding: 10px 14px;
  text-align: center;
  color: #cbd5e1;
  background: #1e293b;
  border-bottom: 1px solid #334155;
  flex-shrink: 0;
}
.lz-view-page-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.lz-view-toolbar .btn-primary { font-weight: 600; }

.crm-customer-row { cursor: pointer; }
.crm-customer-row:hover { background: #f8fafc; }
.crm-customer-link { color: inherit; text-decoration: none; }
.crm-customer-link:hover { text-decoration: underline; }
.crm-detail-head { margin-bottom: 0.75rem; }
.crm-detail-title { margin: 0; }
.crm-detail-panel { margin-top: 0.75rem; }
.crm-notes-list { display: flex; flex-direction: column; gap: 0.75rem; }
.crm-note-card { margin: 0; padding: 0.75rem 1rem; }
.crm-note-card p { margin: 0.5rem 0 0; white-space: pre-wrap; }

/* PowerGas Accounts billing queue */
.pg-billing-toolbar { margin-bottom: 12px; gap: 10px; }
.pg-billing-table .pg-billing-input {
  width: 100%; min-width: 110px; max-width: 180px;
  padding: 6px 8px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 13px;
}
.pg-kpi-grid--compact { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.pg-billing-kpis { margin-bottom: 12px; }

/* Accounts Invoice dashboard */
.lz-inv-source {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.lz-inv-source--powergas { background: #dbeafe; color: #1e40af; }
.lz-inv-source--contract { background: #dcfce7; color: #166534; }
.lz-inv-source--quotation { background: #fef3c7; color: #92400e; }
.lz-invoice-xero-card { opacity: 0.95; }
.qt-invoice-link { margin: 0 0 12px; }

button.inv-wo-open {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: #b91c1c;
  text-decoration: underline;
  cursor: pointer;
  text-align: left;
}
button.inv-wo-open:hover { color: #7f1d1d; }
.lz-inv-wo-docs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.lz-inv-wo-docs .btn { align-self: flex-start; }
#invWoDrawer .pg-drawer-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
#invWoDrawer .pg-drawer-toolbar h3 { flex: 1; min-width: 120px; }
#invWoDrawerStatusBubble { margin-left: auto; }

.lz-pdf-preview-scroll,
.lz-view-pdf-scroll {
  flex: 1;
  overflow: auto;
  padding: 12px;
  max-height: min(72vh, 900px);
  -webkit-overflow-scrolling: touch;
}
.lz-pdf-preview-page,
.lz-view-pdf-page {
  margin: 0 auto 16px;
  max-width: 100%;
  text-align: center;
}
.lz-pdf-preview-img,
.lz-view-page-img {
  display: block;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  height: auto;
  border: 1px solid var(--lz-border, #e2e8f0);
  border-radius: 4px;
  background: #fff;
}
.pg-pdf-sign-page-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* Weather Alert (Vue settings) */
.wa-vue-root { display: flex; flex-direction: column; gap: 16px; }
.wa-settings-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 18px;
  margin-top: 12px;
}
.wa-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.wa-field--full { grid-column: 1 / -1; }
.wa-sources {
  grid-column: 1 / -1;
  border: 1px solid var(--lz-border, #e2e8f0);
  border-radius: 10px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 12px;
}
.wa-sources legend { font-size: 13px; font-weight: 700; padding: 0 4px; }
.wa-check { font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.wa-enable-toggle { font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.wa-actions { grid-column: 1 / -1; align-items: center; }
.wa-cron-note { margin-top: 12px; }
.wa-events-table { margin-top: 8px; }

/* Environmental Alerts — channel list + drawer */
.env-alert-root { position: relative; }
.env-alert-channel-table { margin-top: 12px; }
.env-alert-row--clickable { cursor: pointer; }
.env-alert-row--clickable:hover { background: rgba(59, 130, 246, 0.06); }
.env-alert-row--disabled { opacity: 0.65; }
.env-alert-channel-icon { margin-right: 6px; }
.env-alert-drawer-panel {
  width: min(920px, 100%);
  display: flex;
  flex-direction: column;
  padding: 0;
}
.env-alert-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 24px;
}
.env-alert-sites-section { margin-top: 16px; }
.env-alert-radius-note {
  margin: 10px 0 12px;
  padding: 10px 12px;
  background: rgba(59, 130, 246, 0.06);
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.12);
}
.env-alert-site-actions { white-space: nowrap; }
.env-alert-site-form { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--lz-border, #e5e7eb); }
.env-postal-hint { margin: 4px 0 8px; }
.env-site-coords {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.env-coord-readonly {
  background: #f8fafc !important;
  color: #475569;
  cursor: default;
}
.env-coord-note { margin: 0 0 8px; font-size: 12px; }
.env-alert-drawer-section {
  margin-top: 16px;
  padding: 14px;
}
.env-alert-tone-fieldset {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--lz-border, #e5e7eb);
  border-radius: 8px;
  background: #f8fafc;
}
.env-alert-keywords {
  min-height: 56px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.4;
}
.hosted-badge--ok { background: #dcfce7; color: #166534; }

/* Dragon launch dashboard */
.dash-main--dragon {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 980px;
}

.dragon-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 28px 28px 32px;
  background: linear-gradient(135deg, #1a0533 0%, #4c1d95 35%, #c62828 70%, #f97316 100%);
  color: #fff;
  box-shadow: 0 8px 32px rgba(76, 29, 149, 0.25), 0 2px 8px rgba(198, 40, 40, 0.15);
}
.dragon-hero__glow {
  position: absolute;
  inset: -40% -20% auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.35) 0%, transparent 70%);
  pointer-events: none;
}
.dragon-hero__inner { position: relative; z-index: 1; }
.dragon-hero__eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}
.dragon-hero__title {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.dragon-hero__emoji { font-size: 1.1em; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)); }
.dragon-hero__lead {
  margin: 0 0 24px;
  max-width: 640px;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.92;
}

.dragon-countdown { margin-top: 4px; }
.dragon-countdown__label {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 14px;
}
.dragon-countdown__digits {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px 4px;
}
.dragon-countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
  padding: 12px 10px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}
.dragon-countdown__unit--days { background: linear-gradient(180deg, rgba(239, 68, 68, 0.55), rgba(220, 38, 38, 0.35)); }
.dragon-countdown__unit--hours { background: linear-gradient(180deg, rgba(249, 115, 22, 0.55), rgba(234, 88, 12, 0.35)); }
.dragon-countdown__unit--mins { background: linear-gradient(180deg, rgba(34, 197, 94, 0.5), rgba(22, 163, 74, 0.35)); }
.dragon-countdown__unit--secs { background: linear-gradient(180deg, rgba(59, 130, 246, 0.55), rgba(37, 99, 235, 0.35)); }
.dragon-countdown__value {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.dragon-countdown__caption {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}
.dragon-countdown__sep {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  opacity: 0.7;
  padding: 0 2px;
  align-self: center;
  margin-bottom: 18px;
}
.dragon-countdown__meta {
  margin: 14px 0 0;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.8;
  font-variant-numeric: tabular-nums;
}

.dragon-progress-card h3 { margin: 0 0 4px; }
.dragon-progress-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.dragon-progress-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.dragon-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 88px;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fafc, #eef2ff);
  border: 1px solid #e2e8f0;
}
.dragon-stat__value {
  font-size: 20px;
  font-weight: 800;
  color: var(--lz-red);
  line-height: 1.1;
}
.dragon-stat__label {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--lz-muted);
  text-align: center;
}

.dragon-milestone-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.dragon-milestone {
  display: flex;
  gap: 14px;
  padding: 0 0 20px;
  position: relative;
}
.dragon-milestone:last-child { padding-bottom: 0; }
.dragon-milestone:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #c4b5fd, #e2e8f0);
}
.dragon-milestone__marker {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  border-radius: 50%;
  background: #94a3b8;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #e2e8f0;
  z-index: 1;
}
.dragon-milestone--done .dragon-milestone__marker {
  background: #22c55e;
  box-shadow: 0 0 0 2px #bbf7d0;
}
.dragon-milestone--new .dragon-milestone__marker {
  background: #3b82f6;
  box-shadow: 0 0 0 2px #bfdbfe, 0 0 12px rgba(59, 130, 246, 0.5);
}
.dragon-milestone--improved .dragon-milestone__marker {
  background: #f97316;
  box-shadow: 0 0 0 2px #fed7aa, 0 0 12px rgba(249, 115, 22, 0.4);
}
.dragon-milestone--upcoming .dragon-milestone__marker {
  background: #c62828;
  box-shadow: 0 0 0 2px #fecaca, 0 0 14px rgba(198, 40, 40, 0.45);
  animation: dragon-pulse 2s ease-in-out infinite;
}
@keyframes dragon-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
.dragon-milestone__body { flex: 1; min-width: 0; }
.dragon-milestone__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.dragon-milestone__date {
  font-size: 11px;
  font-weight: 700;
  color: var(--lz-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dragon-milestone__badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}
.dragon-milestone__badge--done { background: #dcfce7; color: #166534; }
.dragon-milestone__badge--new { background: #dbeafe; color: #1d4ed8; }
.dragon-milestone__badge--improved { background: #ffedd5; color: #c2410c; }
.dragon-milestone__badge--upcoming { background: var(--lz-red-soft); color: var(--lz-red); }
.dragon-milestone__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}
.dragon-milestone__desc {
  margin: 0 0 8px;
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}
.dragon-milestone__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dragon-milestone__tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}
.dragon-milestone--new .dragon-milestone__body {
  padding: 12px 14px;
  margin: -4px 0 0 -4px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
}
.dragon-milestone--improved .dragon-milestone__body {
  padding: 12px 14px;
  margin: -4px 0 0 -4px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
  border: 1px solid #fed7aa;
}

.dragon-panels { margin-top: 0; }
.dragon-cta {
  text-align: center;
  background: linear-gradient(180deg, #fafbfc, #f8fafc);
  border-style: dashed;
}
.dragon-cta__text { margin: 0; font-size: 13px; color: var(--lz-muted); }
.dragon-cta__text a { font-weight: 700; }

@media (max-width: 640px) {
  .dragon-hero { padding: 20px 18px 24px; }
  .dragon-countdown__unit { min-width: 62px; padding: 10px 6px 8px; }
  .dragon-countdown__sep { margin-bottom: 14px; }
}

/* Main dashboard — home layout */
.dash-main--home { gap: 20px; }
[data-lz-module="dashboard"] .dash-main--home {
  padding: 4px 0 28px;
  background:
    radial-gradient(ellipse 120% 80% at 0% -10%, rgba(99, 102, 241, 0.11), transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 0%, rgba(14, 165, 233, 0.09), transparent 50%),
    linear-gradient(180deg, #eef2ff 0%, #f8fafc 42%, #fffbeb 100%);
  border-radius: 0 0 20px 20px;
}
[data-lz-module="dashboard"] .section-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset, 0 8px 24px rgba(15, 23, 42, 0.05);
}
[data-lz-module="dashboard"] .lz-dash-tasks {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(238, 242, 255, 0.88) 100%);
  border-left: 3px solid #6366f1;
}
[data-lz-module="dashboard"] #sectionCompanyAnnouncements {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(236, 253, 245, 0.88) 100%);
  border-top: 3px solid #34d399;
}
[data-lz-module="dashboard"] #sectionSafetyAnnouncements {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 237, 213, 0.88) 100%);
  border-top: 3px solid #fb923c;
}
[data-lz-module="dashboard"] #sectionCalendar {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(224, 231, 255, 0.82) 100%);
  border-top: 3px solid #818cf8;
}
[data-lz-module="dashboard"] .lz-dash-header {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(238, 242, 255, 0.92) 100%);
  border-bottom-color: rgba(99, 102, 241, 0.15);
}
body.lz-lzos-unified-header .lz-dash-header,
body.lz-app--lzos .lz-dash-header {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(238, 242, 255, 0.92) 100%);
  border-bottom-color: rgba(99, 102, 241, 0.15);
}
body.lz-lzos-unified-header .lz-dash-core-btn--active,
body.lz-app--lzos .lz-dash-core-btn--active {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border-color: transparent;
  color: #fff;
}
[data-lz-module="dashboard"] .lz-dash-core-btn--active {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border-color: transparent;
  color: #fff;
}
[data-lz-module="dashboard"] .dash-action-cards .dash-action-card {
  border-color: rgba(99, 102, 241, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.9));
}
.app-shell--no-sidebar { --sidebar-w: 0; }
.app-shell--no-sidebar .sidebar { display: none !important; }
.app-shell--no-sidebar .dashboard-body { width: 100%; max-width: 1360px; margin: 0 auto; }
.lz-dash-header {
  border-bottom: 1px solid var(--lz-border);
  box-shadow: none;
  padding: 10px 20px;
  display: block;
}
.lz-dash-header-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  column-gap: 16px;
}
.lz-dash-zone {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0;
}
.lz-dash-zone--brand {
  flex: 0 0 auto;
  padding-right: 4px;
}
.lz-dash-zone--nav-cluster {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
  border-left: 1px solid #e8edf2;
  padding-left: 16px;
}
.lz-dash-zone--core {
  flex: 0 0 auto;
  gap: 4px;
  padding: 0;
  border: 0;
}
.lz-dash-zone--portals {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid #e8edf2;
  padding-left: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.lz-dash-zone--portals::-webkit-scrollbar { display: none; }
.lz-dash-zone--portals.hidden { display: none; }
.lz-portal-header-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.lz-mobile-header-brand { display: none; min-width: 0; align-items: center; }
.lz-mobile-header-brand .sidebar-brand-panel {
  padding: 0;
  border: 0;
  background: transparent;
  width: auto;
}
.lz-mobile-header-brand .sidebar-brand-row {
  width: auto;
  justify-content: flex-start;
  gap: 0;
}
.lz-mobile-header-brand .lz-brand-title-block {
  margin-left: 10px;
  align-items: center;
}
.lz-mobile-header-brand .lz-brand-logo { height: 32px; }
.lz-mobile-header-brand .lz-connection-status { display: none; }
.lz-top-header-brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  min-width: 0;
}
.lz-top-header-brand .sidebar-brand-panel,
.lz-top-header-brand .sidebar-brand-row {
  width: auto;
}
.lz-top-header-brand .sidebar-brand-panel {
  padding: 0;
  border: 0;
  background: transparent;
}
.lz-top-header-brand .sidebar-brand-row--dash-header,
.lz-top-header-brand .sidebar-brand-row--with-title,
.lz-top-header-brand .sidebar-brand-row--portal-stack {
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 0;
}
.lz-top-header-brand .lz-brand-logo { height: 34px; }
.lz-top-header-brand .lz-brand-title-block {
  margin-left: 10px;
  align-items: center;
}
.lz-top-header-brand .lz-connection-status { display: none; }
.main-header.lz-portal-header .lz-top-header-brand {
  flex: 0 0 auto;
  margin-right: 12px;
}
@media (min-width: 1025px) {
  .app-shell.lz-top-header-brand-on .sidebar-head {
    display: none;
  }
  [data-lz-module="dashboard"] .app-shell:not(.app-shell--no-sidebar) .sidebar-head {
    display: none;
  }
  [data-lz-module="dashboard"] .main-header.lz-app-header .lz-top-header-brand {
    flex: 0 0 auto;
    margin-right: 4px;
  }
}
.app-shell.sidebar-collapsed .lz-top-header-brand .lz-brand-logo {
  height: 34px;
  margin: 0;
}
.app-shell.sidebar-collapsed .lz-top-header-brand .lz-brand-title--digital {
  display: inline-flex;
  font-size: 14px;
  letter-spacing: 0.36em;
  padding: 0;
  border-left: none;
  background: none;
}
.app-shell.sidebar-collapsed .lz-top-header-brand .lz-brand-title--digital::before,
.app-shell.sidebar-collapsed .lz-top-header-brand .lz-brand-title--digital::after {
  display: none;
}
.app-shell.sidebar-collapsed .lz-top-header-brand .lz-brand-home,
.app-shell.sidebar-collapsed .lz-top-header-brand .lz-brand-logo-wrap {
  display: block;
}
.lz-mobile-nav-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  flex-shrink: 0;
}
.lz-mobile-nav-menu-btn:hover { background: #f8fafc; border-color: #cbd5e1; }
.lz-mobile-nav-menu-btn .nav-icon-wrap { width: 20px; height: 20px; }
.lz-mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1090;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(2px);
}
.lz-mobile-nav-backdrop.hidden { display: none; }
.lz-mobile-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  /* Keep shell transparent to clicks so the backdrop receives outside taps. */
  pointer-events: none;
}
.lz-mobile-nav-drawer.hidden { display: none; }
.lz-mobile-nav-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 92vw);
  background: #fff;
  box-shadow: -10px 0 30px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: auto;
}
.lz-mobile-nav-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--lz-border);
  background: #fafbfc;
}
.lz-mobile-nav-drawer__head strong { font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: #64748b; }
.lz-mobile-nav-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px 20px;
}
.lz-mobile-nav-drawer--lzos .lz-mobile-nav-drawer__head strong {
  display: none;
}
.lz-mobile-menu-drawer-brand {
  padding: 4px 2px 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--lz-border);
}
.lz-mobile-menu-drawer-brand .sidebar-brand-panel,
.lz-mobile-menu-drawer-brand .sidebar-brand-row {
  width: 100%;
}
.lz-mobile-menu-drawer-brand .lz-brand-logo {
  height: 34px;
}
.lz-mobile-menu-drawer-nav--full {
  padding: 0;
}
.lz-mobile-menu-drawer-nav--full .nav-group {
  margin-bottom: 14px;
}
.lz-mobile-menu-drawer-nav--full .nav-link--portal.lz-portal-nav-tile {
  margin-bottom: 6px;
}
.lz-mobile-menu-drawer-nav--full .nav-group-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lz-mobile-menu-section { margin-bottom: 18px; }
.lz-mobile-menu-section__title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}
.lz-mobile-menu-list { display: flex; flex-direction: column; gap: 6px; }
.lz-mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e8edf2;
  background: #fff;
  text-decoration: none;
  color: #0f172a;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.lz-mobile-menu-link:hover { background: #f8fafc; border-color: #cbd5e1; }
.lz-mobile-menu-link--active {
  background: #fef2f2;
  border-color: #fecaca;
  color: var(--lz-red, #c62828);
}
.lz-mobile-menu-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f1f5f9;
  font-size: 14px;
  flex-shrink: 0;
}
.lz-mobile-menu-link__label { flex: 1; font-size: 14px; font-weight: 600; }
.lz-mobile-menu-link__meta {
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #94a3b8;
}
.lz-mobile-menu-drawer-nav--compact .nav-group { margin-bottom: 12px; }
.lz-mobile-menu-drawer-nav--compact .nav-group-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 4px 4px 8px;
}
.lz-mobile-menu-drawer-nav--compact .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 6px;
  border-radius: 10px;
  border: 1px solid #e8edf2;
  background: #fff;
  text-decoration: none;
  color: #0f172a;
}
.lz-mobile-menu-drawer-nav--compact .nav-link--active {
  background: #fef2f2;
  border-color: #fecaca;
  color: var(--lz-red);
}
.lz-mobile-menu-drawer-foot {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--lz-border);
}
.lz-dash-zone--menu { display: none; flex: 0 0 auto; padding: 0; border: 0; }
.lz-dash-zone--profile {
  flex: 0 0 auto;
  justify-content: flex-end;
  border-left: 1px solid #e8edf2;
  padding-left: 14px;
}
.lz-dash-zone--profile .lz-header-actions {
  flex: 0 0 auto;
  margin-left: 0;
}
.lz-dash-header-logo {
  flex: 0 0 auto;
  width: auto;
}
.lz-dash-header-logo .sidebar-brand-panel,
.lz-dash-header-logo .sidebar-brand-row {
  width: auto;
}
.lz-dash-header-logo .lz-brand-logo { height: 34px; }
.lz-dash-header-logo .sidebar-brand-panel { padding: 0; border: 0; background: transparent; }
.lz-dash-header-logo .lz-brand-title-block {
  display: flex;
  margin-left: 10px;
  align-items: center;
  gap: 8px;
}
.lz-dash-header-logo .sidebar-brand-row--dash-header,
.lz-dash-header-logo .sidebar-brand-row--with-title,
.lz-dash-header-logo .sidebar-brand-row--portal-stack {
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 0;
}
.lz-dash-header-logo .lz-brand-title--lzos-only {
  padding-top: 2px;
  padding-bottom: 2px;
}
.lz-dash-header-logo .lz-connection-status {
  display: none;
}
.lz-dash-core-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.lz-dash-core-btn:hover { background: #f1f5f9; }
.lz-dash-core-btn__icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
}
.lz-dash-core-btn__icon .nav-icon-wrap { display: inline-flex; }
.lz-dash-core-btn__icon .nav-icon-wrap svg { width: 14px; height: 14px; }
.lz-dash-core-btn__label {
  line-height: 1.2;
}
.lz-portal-header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 12px 7px 8px;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  text-decoration: none;
  color: #1e293b;
  white-space: nowrap;
  flex: 0 0 auto;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.lz-portal-header-btn:hover {
  border-color: #cbd5e1;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}
.lz-portal-header-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #f1f5f9;
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}
.lz-portal-header-btn__label {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}
.lz-portal-header-btn__code {
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.lz-portal-header-btn.lz-portal-chip--safety { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.lz-portal-header-btn.lz-portal-chip--safety .lz-portal-header-btn__icon { background: #dcfce7; }
.lz-portal-header-btn.lz-portal-chip--ops { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.lz-portal-header-btn.lz-portal-chip--ops .lz-portal-header-btn__icon { background: #fef3c7; }
.lz-portal-header-btn.lz-portal-chip--core { border-color: #e2e8f0; background: #f8fafc; color: #475569; }
.lz-portal-header-btn.lz-portal-chip--core .lz-portal-header-btn__icon { background: #e2e8f0; }
.lz-portal-header-btn.lz-portal-chip--hr { border-color: #fbcfe8; background: #fdf2f8; color: #9d174d; }
.lz-portal-header-btn.lz-portal-chip--hr .lz-portal-header-btn__icon { background: #fce7f3; }
.lz-portal-header-btn.lz-portal-chip--accounts { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.lz-portal-header-btn.lz-portal-chip--accounts .lz-portal-header-btn__icon { background: #dbeafe; }
.lz-portal-header-btn.lz-portal-chip--commercial { border-color: #ddd6fe; background: #f5f3ff; color: #5b21b6; }
.lz-portal-header-btn.lz-portal-chip--commercial .lz-portal-header-btn__icon { background: #ede9fe; }
.lz-portal-header-btn.lz-portal-chip--enterprise { border-color: #cbd5e1; background: #f1f5f9; color: #334155; }
.lz-portal-header-btn.lz-portal-chip--enterprise .lz-portal-header-btn__icon { background: #e2e8f0; }
.lz-dash-header-meta.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.lz-portal-apps-strip {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 24px 16px;
  border-bottom: 1px solid var(--lz-border);
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}
.lz-portal-launcher-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.lz-portal-launcher-section-title {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
}
.lz-portal-launcher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.lz-portal-launcher-tile {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e8edf2;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.lz-portal-launcher-tile:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}
.lz-portal-launcher-tile__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 18px;
  line-height: 1;
}
.lz-portal-launcher-tile__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.lz-portal-launcher-tile__code {
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #94a3b8;
}
.lz-portal-launcher-tile__name {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lz-portal-launcher-tile__go {
  font-size: 16px;
  color: #cbd5e1;
}
.lz-portal-launcher-tile.lz-portal-chip--safety .lz-portal-launcher-tile__mark { background: #ecfdf5; border-color: #bbf7d0; }
.lz-portal-launcher-tile.lz-portal-chip--ops .lz-portal-launcher-tile__mark { background: #fffbeb; border-color: #fde68a; }
.lz-portal-launcher-tile.lz-portal-chip--core .lz-portal-launcher-tile__mark { background: #f8fafc; border-color: #e2e8f0; }
.lz-portal-launcher-tile.lz-portal-chip--hr .lz-portal-launcher-tile__mark { background: #fdf2f8; border-color: #fbcfe8; }
.lz-portal-launcher-tile.lz-portal-chip--accounts .lz-portal-launcher-tile__mark { background: #eff6ff; border-color: #bfdbfe; }
.lz-portal-launcher-tile.lz-portal-chip--commercial .lz-portal-launcher-tile__mark { background: #f5f3ff; border-color: #ddd6fe; }
.lz-portal-launcher-tile.lz-portal-chip--enterprise .lz-portal-launcher-tile__mark { background: #f1f5f9; border-color: #cbd5e1; }
.lz-portal-apps-strip.hidden { display: none; }
.lz-portal-apps-empty {
  margin: 0;
  font-size: 13px;
  color: var(--lz-muted);
}
.lz-portal-app-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.lz-portal-app-group-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lz-muted);
  white-space: nowrap;
}
.lz-portal-app-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lz-portal-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--lz-text);
  background: #f8fafc;
  border: 1px solid var(--lz-border);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.lz-portal-chip:hover {
  background: #fff;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}
.lz-portal-chip--safety { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.lz-portal-chip--ops { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.lz-portal-chip--core { border-color: #e2e8f0; background: #f8fafc; }
.lz-portal-chip--hr { border-color: #fbcfe8; background: #fdf2f8; color: #9d174d; }
.lz-portal-chip--accounts { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.lz-portal-chip--commercial { border-color: #ddd6fe; background: #f5f3ff; color: #5b21b6; }
.lz-portal-chip--enterprise { border-color: #e2e8f0; background: #f1f5f9; color: #334155; }
.lz-dash-banner {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 22px 24px;
  margin: 0 0 4px;
  background: linear-gradient(125deg, #1a1a2e 0%, #3b0d12 42%, #c62828 78%, #e85d4c 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(198, 40, 40, 0.18);
}
.lz-dash-banner__glow {
  position: absolute;
  inset: -50% auto auto 55%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, transparent 68%);
  pointer-events: none;
}
.lz-dash-banner__inner { position: relative; z-index: 1; }
.lz-dash-banner__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}
.lz-dash-banner__title {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.lz-dash-banner__lead {
  margin: 0;
  max-width: 36rem;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.9;
}
@media (max-width: 640px) {
  .lz-dash-banner { padding: 18px 16px; }
}
.lz-dash-news-row { margin-top: 4px; content-visibility: auto; contain-intrinsic-size: auto 320px; }
#sectionCalendar { content-visibility: auto; contain-intrinsic-size: auto 360px; }
.lz-dash-ann-list { list-style: none; margin: 0; padding: 0; }
.lz-dash-ann-item { margin: 0 0 14px; padding: 0 0 12px; border-bottom: 1px solid var(--lz-border, rgba(0,0,0,.06)); }
.lz-dash-ann-item:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.lz-dash-ann-item strong { display: block; font-size: 14px; margin-bottom: 2px; }
.lz-dash-ann-body { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--lz-text, #1a1a1a); white-space: pre-wrap; }
.lz-dash-ann-photos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lz-dash-ann-photo { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--lz-border, rgba(0,0,0,.12)); background: var(--lz-surface-2, #f5f5f5); cursor: pointer; }
.lz-dash-ann-photo:hover { background: var(--lz-surface-3, #eee); }
.lz-dash-ann-lightbox { position: fixed; inset: 0; z-index: 12000; background: rgba(0,0,0,.82); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lz-dash-ann-lightbox img { max-width: min(96vw, 900px); max-height: 90vh; object-fit: contain; border-radius: 8px; }
.lz-dash-ann-lightbox-close { position: absolute; top: 16px; right: 20px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 24px; cursor: pointer; }
.ann-toolbar { margin-bottom: 14px; }
.ann-table-wrap { overflow-x: auto; }
.ann-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ann-table th, .ann-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--lz-border, rgba(0,0,0,.08)); vertical-align: top; }
.ann-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--lz-muted, #666); }
.ann-table-body { margin-top: 4px; font-size: 12px; color: var(--lz-muted, #666); white-space: pre-wrap; max-width: 420px; }
.ann-status { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.ann-status--active { background: #e8f5e9; color: #2e7d32; }
.ann-status--expired { background: #f5f5f5; color: #757575; }
.ann-status--scheduled { background: #fff8e1; color: #f57f17; }
.ann-status--draft { background: #eceff1; color: #546e7a; }
.ann-photo-chip { display: inline-block; margin: 0 6px 6px 0; padding: 2px 8px; border-radius: 6px; background: var(--lz-surface-2, #f5f5f5); font-size: 12px; }
.ann-existing-photos { margin-top: 8px; }

/* WSH command center landing */
.wsh-landing-page .wsh-landing-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 960px;
}
.wsh-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 22px 24px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 45%, #0c4a6e 100%);
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
}
.wsh-hero__glow {
  position: absolute;
  inset: -40% auto auto 50%;
  width: 280px;
  height: 280px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, transparent 70%);
  pointer-events: none;
}
.wsh-hero__inner { position: relative; z-index: 1; }
.wsh-hero__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7dd3fc;
}
.wsh-hero__title { margin: 0 0 6px; font-size: 26px; font-weight: 700; line-height: 1.15; }
.wsh-hero__sub { margin: 0; font-size: 14px; color: #cbd5e1; }

.wsh-panel {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.98) 100%);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  padding: 16px 18px 18px;
}
.wsh-panel__head { margin-bottom: 12px; }
.wsh-panel__title { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: #0f172a; }
.wsh-panel__meta { margin: 0; font-size: 12px; color: #64748b; }

/* WSH team feed — compact left-aligned list */
.wsh-feed-status--error { color: #b91c1c; }
.wsh-chat {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  max-height: min(38vh, 360px);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: #f8fafc;
  overflow: hidden;
}
.wsh-chat__messages {
  flex: 1 1 auto;
  min-height: 140px;
  overflow-y: auto;
  padding: 10px 12px 8px;
  scroll-behavior: smooth;
}
.wsh-chat__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wsh-chat__empty {
  margin: 24px 8px;
  text-align: left;
  color: var(--lz-muted, #64748b);
  font-size: 13px;
}
.wsh-feed-post {
  padding: 8px 10px 8px 9px;
  border: 1px solid var(--wsh-post-border, rgba(148, 163, 184, 0.28));
  border-left: 3px solid var(--wsh-post-accent, #64748b);
  border-radius: 8px;
  background: var(--wsh-post-bg, #fff);
}
.wsh-feed-post__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 3px;
}
.wsh-feed-post__author {
  font-size: 12px;
  font-weight: 700;
  color: var(--wsh-post-accent, #334155);
}
.wsh-feed-post__time {
  font-size: 11px;
  color: var(--lz-muted, #64748b);
}
.wsh-feed-post__actions {
  margin-left: auto;
}
.wsh-feed-post__delete {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.wsh-feed-post__delete:hover { color: #b91c1c; }
.wsh-feed-post__body {
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--lz-text, #1a1a2e);
}
.wsh-feed-post__photos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.wsh-feed-post__photo {
  display: block;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #e2e8f0;
  cursor: pointer;
}
.wsh-feed-post__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wsh-feed-post__photo-skel {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #e2e8f0 0%, #f8fafc 50%, #e2e8f0 100%);
  background-size: 200% 100%;
  animation: wshChatSkel 1.2s ease-in-out infinite;
}
@keyframes wshChatSkel {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.wsh-feed-post__photo-miss {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 10px;
  color: #64748b;
}
.wsh-feed-lightbox {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wsh-feed-lightbox.hidden { display: none; }
.wsh-feed-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  cursor: pointer;
}
.wsh-feed-lightbox__dialog {
  position: relative;
  z-index: 1;
  max-width: min(94vw, 920px);
  max-height: 90vh;
  margin: 16px;
}
.wsh-feed-lightbox__dialog img {
  display: block;
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 8px;
  background: #0f172a;
}
.wsh-feed-lightbox__close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.25);
}
.wsh-feed-lightbox__close:hover { background: #fff; }
.wsh-chat__dock {
  position: relative;
  flex: 0 0 auto;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.92);
  padding: 10px 12px;
  min-height: 56px;
}
.wsh-chat__fab {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #c62828 0%, #ea580c 100%);
  color: #fff;
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(198, 40, 40, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wsh-chat__fab:hover { filter: brightness(1.05); }
.wsh-chat__fab.is-hidden { display: none; }
.wsh-chat-composer {
  display: none;
  flex-direction: column;
  gap: 8px;
}
.wsh-chat-composer.is-open { display: flex; }
.wsh-chat-composer__row textarea {
  width: 100%;
  min-height: 56px;
  resize: vertical;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  padding: 10px 12px;
  border: 1px solid var(--lz-border, rgba(0,0,0,.12));
  border-radius: 10px;
  background: #fff;
}
.wsh-chat-composer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.wsh-chat-composer__hint {
  margin-right: auto;
}
.wsh-chat-composer__photo-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}
.wsh-chat-composer__photo-btn:hover { background: #eff6ff; border-color: #93c5fd; }
.wsh-chat-composer__file {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.wsh-chat-composer__previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wsh-chat-composer__preview {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.wsh-chat-composer__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wsh-chat-composer__preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

/* WSH schedule — compact tabs + cards */
.wsh-sch-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.wsh-sch-tab {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.wsh-sch-tab:hover { background: #f8fafc; }
.wsh-sch-tab--active {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.28);
}
.wsh-sch-pane__range { margin: 0 0 6px; font-size: 11px; }
.wsh-sch-cards { display: flex; flex-direction: column; gap: 4px; max-height: 300px; overflow-y: auto; }
.wsh-sch-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 6px 8px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.wsh-sch-card--action { cursor: pointer; }
.wsh-sch-card--action:hover {
  border-color: #38bdf8;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.1);
}
.wsh-sch-card__row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.wsh-sch-card__date {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
  line-height: 1.25;
}
.wsh-sch-card__main { min-width: 0; }
.wsh-sch-card__line1 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.wsh-sch-card__contract { font-size: 12px; color: #0f172a; }
.wsh-sch-card__sep { color: #cbd5e1; font-size: 11px; }
.wsh-sch-card__team { font-size: 11px; color: #64748b; }
.wsh-sch-card__supervisor { font-size: 11px; font-weight: 600; color: #334155; }
.wsh-sch-card__line2 {
  font-size: 11px;
  color: #334155;
  line-height: 1.35;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wsh-sch-card__line-work {
  font-size: 10px;
  color: #64748b;
  line-height: 1.35;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wsh-sch-card__line3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-size: 10px;
  color: #0369a1;
  line-height: 1.35;
}
.wsh-sch-card__insp-link {
  color: inherit;
  text-decoration: none;
}
.wsh-sch-card__insp-link:hover { text-decoration: underline; }
.wsh-sch-card__insp-status {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #0f766e;
  background: #ccfbf1;
}
.wsh-sch-card__insp-status--draft {
  color: #b45309;
  background: #fef3c7;
}
.wsh-sch-card__insp-hint--other {
  color: #92400e;
}
.wsh-sch-card__insp-other {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
  margin-right: 4px;
}
.wsh-sch-card__insp-creator,
.wsh-sch-card__insp-action {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
  margin-right: 4px;
}
.wsh-sch-card__insp-creator {
  color: #9a3412;
  background: #ffedd5;
  border: 1px solid #fed7aa;
}
.wsh-sch-card__insp-action {
  color: #b45309;
  background: #fef9c3;
  border: 1px solid #fde047;
}
.wsh-sch-card__insp-conduct {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  color: #0f766e;
  background: #ccfbf1;
  border: 1px solid #99f6e4;
  vertical-align: middle;
}
.wsh-sch-card__insp-conduct--other {
  color: #92400e;
  background: #fef3c7;
  border-color: #fde68a;
}
.sf-review-manpower-list .sf-report-manpower-list {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}
.sf-review-manpower-list .sf-report-manpower-row {
  display: block;
  padding: 6px 10px;
  border-top: 1px solid #e2e8f0;
  font-size: 12px;
  line-height: 1.35;
  color: #0f172a;
  word-break: break-word;
}
.sf-review-manpower-list .sf-report-manpower-row:first-child { border-top: 0; }
.sf-review-manpower-list .sf-report-manpower-plain {
  white-space: pre-line;
  font-size: 12px;
  line-height: 1.35;
  color: #0f172a;
}
.wsh-sch-card--colleague-insp {
  background: #fffbeb;
  border-color: #fde68a;
}
.wsh-sch-colleague-strip {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #fde68a;
  background: #fffbeb;
}
.wsh-sch-colleague-strip__title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #92400e;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.wsh-sch-colleague-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wsh-sch-colleague-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #fde68a;
}
.wsh-sch-colleague-item__link {
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.wsh-sch-colleague-item__link:hover { text-decoration: underline; }
.wsh-sch-colleague-item__name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #78350f;
}
.wsh-sch-colleague-item__meta {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #a16207;
}
.wsh-sch-card__action--view {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.wsh-sch-card__dr {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
}
.wsh-sch-card__dr--night {
  background: #e0e7ff;
  color: #3730a3;
  margin-left: 4px;
}
.wsh-sch-card--overnight {
  border-color: #c7d2fe;
  background: #f8fafc;
}
.wsh-sch-card__side { flex: 0 0 auto; }
.wsh-sch-card__action {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  white-space: nowrap;
}
.wsh-sch-card__today-link {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 0;
  text-decoration: none;
  color: #64748b;
  white-space: nowrap;
}
.wsh-sch-card__today-link:hover { color: #0f172a; text-decoration: underline; }
.wsh-sch-card__upcoming { font-size: 10px; color: #94a3b8; white-space: nowrap; }
.wsh-sch-empty, .wsh-sch-error, .wsh-sch-loading { font-size: 12px; }
.wsh-sch-error { color: #b91c1c; }

.sf-endorse-page.sf-endorse--pm .sidebar { display: none; }
.sf-endorse-page.sf-endorse--pm .app-shell { grid-template-columns: 1fr; }
.sf-endorse-page.sf-endorse--pm .dashboard-body { margin-left: 0; }
.sf-endorse-remarks { width: 100%; max-width: 640px; }
.site-safety-remarks {
  width: 100%;
  min-height: 72px;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  resize: vertical;
}

/* WSH manhours KPI ring */
.wsh-mh-kpi-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
}
.wsh-mh-ring {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}
.wsh-mh-ring__svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.wsh-mh-ring__track {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 10;
}
.wsh-mh-ring__fill {
  fill: none;
  stroke: url(#wshMhGrad);
  stroke: #0ea5e9;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dasharray 0.4s ease;
}
.wsh-mh-ring__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.wsh-mh-ring__pct { font-size: 22px; font-weight: 800; color: #0f172a; line-height: 1; }
.wsh-mh-ring__label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: #64748b; }
.wsh-mh-kpi-stat-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wsh-mh-kpi-stat {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #fff;
}
.wsh-mh-kpi-stat--target { border-left: 3px solid #ea580c; }
.wsh-mh-kpi-stat__label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; }
.wsh-mh-kpi-stat__value { display: block; font-size: 24px; font-weight: 800; color: #0f172a; line-height: 1.1; margin: 4px 0; }
.wsh-mh-kpi-stat__meta { display: block; font-size: 12px; color: #64748b; }
.wsh-mh-kpi-gap { margin: 10px 0 0; font-size: 13px; font-weight: 600; }
.wsh-mh-kpi-gap--ok { color: #15803d; }
.wsh-mh-kpi-gap--pending { color: #c2410c; }
.wsh-mh-kpi-note { margin: 8px 0 0; font-size: 12px; color: #64748b; }
.wsh-mh-kpi-note--warn { color: #b45309; }
.wsh-mh-loading, .wsh-mh-error { font-size: 13px; }
.wsh-mh-error { color: #b91c1c; }

/* HOD portal dashboard */
.hod-dash { display: flex; flex-direction: column; gap: 16px; max-width: 960px; }
.hod-dash__hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 22px 24px;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
  color: #f5f3ff;
  border: 1px solid rgba(167, 139, 250, 0.25);
}
.hod-dash__hero-glow {
  position: absolute;
  right: -40px;
  top: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.4) 0%, transparent 70%);
  pointer-events: none;
}
.hod-dash__hero-inner { position: relative; z-index: 1; }
.hod-dash__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c4b5fd;
}
.hod-dash__title { margin: 0 0 6px; font-size: 26px; font-weight: 700; }
.hod-dash__sub { margin: 0; font-size: 14px; color: #ddd6fe; }
.hod-dash__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.hod-dash-card-wrap {
  position: relative;
}
.hod-dash-card-wrap .hod-dash-card {
  display: flex;
}
.hod-dash-card__fav {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #cbd5e1;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.hod-dash-card__fav:hover {
  color: #f59e0b;
  border-color: #fcd34d;
}
.hod-dash-card__fav.is-active {
  color: #f59e0b;
  border-color: #fbbf24;
  background: #fffbeb;
}
.hod-dash-card__fav:disabled {
  opacity: 0.6;
  cursor: wait;
}
.hod-dash-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-left: 3px solid var(--core-accent);
  background: linear-gradient(135deg, #fff 0%, var(--core-bg) 100%);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.hod-dash-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  border-color: rgba(99, 102, 241, 0.35);
}
.hod-dash-card__icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 18px;
  flex-shrink: 0;
}
.hod-dash-card--safety {
  background: linear-gradient(135deg, #fff 0%, var(--safety-bg) 100%);
  border-left-color: var(--safety-accent);
}
.hod-dash-card--analytics {
  background: linear-gradient(135deg, #fff 0%, var(--commercial-bg) 100%);
  border-left-color: var(--commercial-accent);
}
.hod-dash-card--contracts {
  background: linear-gradient(135deg, #fff 0%, var(--projects-bg) 100%);
  border-left-color: var(--projects-accent);
}
.hod-dash-card--teams {
  background: linear-gradient(135deg, #fff 0%, var(--ops-bg) 100%);
  border-left-color: var(--ops-accent);
}
.hod-dash-card--news {
  background: linear-gradient(135deg, #fff 0%, var(--claims-bg) 100%);
  border-left-color: var(--claims-accent);
}
.hod-dash-card--crm {
  background: linear-gradient(135deg, #fff 0%, var(--hr-bg) 100%);
  border-left-color: var(--hr-accent);
}
.hod-dash-card--safety .hod-dash-card__icon { background: #fff7ed; }
.hod-dash-card--analytics .hod-dash-card__icon { background: #dbeafe; }
.hod-dash-card--contracts .hod-dash-card__icon { background: #ccfbf1; }
.hod-dash-card--teams .hod-dash-card__icon { background: #e0f2fe; }
.hod-dash-card--news .hod-dash-card__icon { background: #fae8ff; }
.hod-dash-card--crm .hod-dash-card__icon { background: #fce7f3; }
.hod-dash__grid.lz-portal-apps-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.hod-dash__grid.lz-portal-apps-grid .lz-portal-app-card {
  position: relative;
  min-height: 88px;
}
.hod-dash__grid.lz-portal-apps-grid .lz-portal-app-card .hod-dash-card {
  min-height: 88px;
  height: 100%;
  padding: 16px 44px 16px 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.hod-dash__grid.lz-portal-apps-grid .lz-portal-app-card .hod-dash-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}
.hod-dash__grid.lz-portal-apps-grid .lz-portal-app-card .hod-dash-card__icon {
  width: 40px;
  height: 40px;
  font-size: 20px;
  border-radius: 10px;
}
.hod-dash__grid.lz-portal-apps-grid .lz-portal-app-card .hod-dash-card__title {
  font-size: 14px;
  font-weight: 600;
  padding-right: 8px;
}
.hod-dash__grid.lz-portal-apps-grid .lz-portal-app-card .hod-dash-card__desc {
  font-size: 12px;
  line-height: 1.4;
  color: #64748b;
}
.hod-dash__grid.lz-portal-apps-grid .lz-portal-app-card .hod-dash-card__arrow {
  align-self: flex-end;
  margin-top: auto;
}
.hod-dash__grid.lz-portal-apps-grid .hod-dash-card__fav {
  top: 8px;
  right: 8px;
  left: auto;
}
/* Light tinted fills — same softness as LZOS cards, never plain white */
.hod-dash__grid.lz-portal-apps-grid .hod-dash-card--safety {
  background: linear-gradient(135deg, #fff 0%, var(--safety-bg) 100%);
  border-left-color: var(--safety-accent);
}
.hod-dash__grid.lz-portal-apps-grid .hod-dash-card--analytics {
  background: linear-gradient(135deg, #fff 0%, var(--commercial-bg) 100%);
  border-left-color: var(--commercial-accent);
}
.hod-dash__grid.lz-portal-apps-grid .hod-dash-card--contracts {
  background: linear-gradient(135deg, #fff 0%, var(--projects-bg) 100%);
  border-left-color: var(--projects-accent);
}
.hod-dash__grid.lz-portal-apps-grid .hod-dash-card--teams {
  background: linear-gradient(135deg, #fff 0%, var(--ops-bg) 100%);
  border-left-color: var(--ops-accent);
}
.hod-dash__grid.lz-portal-apps-grid .hod-dash-card--news {
  background: linear-gradient(135deg, #fff 0%, var(--claims-bg) 100%);
  border-left-color: var(--claims-accent);
}
.hod-dash__grid.lz-portal-apps-grid .hod-dash-card--crm {
  background: linear-gradient(135deg, #fff 0%, var(--hr-bg) 100%);
  border-left-color: var(--hr-accent);
}
.hod-dash-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hod-dash-card__title { font-size: 15px; color: #0f172a; }
.hod-dash-card__desc { font-size: 12px; color: #64748b; line-height: 1.4; }
.hod-dash-card__arrow { font-size: 16px; color: #94a3b8; align-self: center; }
.hod-dash__foot { padding: 14px 16px; }

.ug-dash__hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #0c4a6e 100%);
}

.abd-editor-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 12px;
  min-height: calc(100vh - 180px);
}
.abd-editor-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--lz-border, rgba(0,0,0,.08));
  border-radius: 10px;
  background: #fff;
  align-self: start;
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.abd-editor-title { margin: 12px 0 6px; font-size: 15px; }
.abd-editor-main { min-width: 0; }
.abd-canvas-wrap {
  overflow: auto;
  max-height: calc(100vh - 140px);
  border: 1px solid var(--lz-border, rgba(0,0,0,.12));
  border-radius: 8px;
  background: #e2e8f0;
  padding: 8px;
}
.abd-canvas-wrap canvas {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  cursor: crosshair;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}
.abd-tool-row { display: flex; gap: 6px; flex-wrap: wrap; }
.abd-tool-btn.is-active { background: var(--lz-red, #c41e3a); color: #fff; border-color: var(--lz-red, #c41e3a); }

.wpab-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 12px;
  min-height: 70vh;
}
.wpab-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--lz-border, rgba(0,0,0,.08));
  border-radius: 10px;
  background: #fff;
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.wpab-main { min-width: 0; }
.wpab-canvas-wrap {
  overflow: auto;
  max-height: calc(100vh - 120px);
  border: 1px solid var(--lz-border, rgba(0,0,0,.12));
  border-radius: 8px;
  background: #e2e8f0;
  padding: 8px;
}
.wpab-canvas-wrap canvas {
  display: block;
  max-width: none;
  cursor: crosshair;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  touch-action: none;
}
.wpab-tool.is-active { background: var(--lz-red, #c41e3a); color: #fff; border-color: var(--lz-red, #c41e3a); }
.wpab-page-row { display: flex; align-items: center; gap: 8px; }
.portal-site-doc-frame {
  width: 100%;
  min-height: 70vh;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.portal-site-doc-preview {
  max-width: 100%;
  border-radius: 8px;
}
#sitePortalProjectsPanel.is-drawing {
  grid-template-columns: 1fr;
}
#sitePortalProjectsPanel.is-drawing .portal-site-announce,
#sitePortalProjectsPanel.is-drawing .portal-site-list {
  display: none;
}
#sitePortalProjectsPanel.is-drawing .portal-site-detail {
  min-height: calc(100vh - 120px);
}
.wp-clearance-list, .wp-asbuilt-tab ul { list-style: none; padding: 0; margin: 8px 0; }
.wp-clearance-list li, .wp-asbuilt-tab li {
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}
.wp-asbuilt-create {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  margin: 8px 0 16px;
}
.wp-asbuilt-create label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }

@media (max-width: 900px) {
  .abd-editor-layout { grid-template-columns: 1fr; }
  .abd-editor-side { position: static; max-height: none; }
  .abd-canvas-wrap { max-height: 70vh; }
  .wpab-layout { grid-template-columns: 1fr; }
  .wpab-side { max-height: none; }
  .wpab-canvas-wrap { max-height: 70vh; }
}

@media (max-width: 640px) {
  .wsh-mh-kpi-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .wsh-mh-kpi-stat-row { grid-template-columns: 1fr; width: 100%; }
  .wsh-hero__title, .hod-dash__title { font-size: 22px; }
}

/* Legacy WSH schedule table (other pages) */
.wsh-landing-block-title { margin: 0 0 8px; font-size: 16px; }
.wsh-manhours-section { margin-bottom: 16px; }
.wsh-mh-intro { margin: 0 0 12px; }
.wsh-mh-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin-bottom: 12px; }
.wsh-mh-filter { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--lz-muted, #64748b); min-width: 140px; }
.wsh-mh-filter select,
.wsh-mh-filter input[type="date"] {
  min-height: 34px;
  padding: 4px 8px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 6px;
  background: #fff;
  font: inherit;
}
/* —— Workers Time Card —— */
.wtc-app { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.wtc-tabs { margin-bottom: 0; }
.wtc-tabs .lz-module-subnav-btn { padding: 12px 18px; font-size: 13px; }
/* Secondary Time Card views — same underline tab style as main tabs */
.wtc-subtabs {
  margin: -4px 0 16px;
  padding: 0;
  border-bottom: 1px solid #e2e8f0;
  background: transparent;
}
.wtc-subtabs .lz-module-subnav-btn {
  padding: 10px 16px;
  font-size: 13px;
}
.wtc-badge--closed {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}
.wtc-row-closed { background: #f8fafc; color: #64748b; }
.wtc-row-sunday .wtc-month-date-cell strong { color: #64748b; }
/* Weekly: 7-column Scheduler calendar cells — taller for denser counts */
.wtc-week-cal-grid .sch-cal-cell,
.wtc-sch-cal-cell--week {
  min-height: 240px;
}
.wtc-week-cal-host { margin-top: 2px; }
@media (max-width: 900px) {
  .wtc-week-cal-grid .sch-cal-cell,
  .wtc-sch-cal-cell--week { min-height: 180px; }
}
.wtc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: linear-gradient(160deg, #f8fafc 0%, #eef2f7 100%);
}
.wtc-toolbar__period {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.wtc-period-label {
  min-width: 7.5rem;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.01em;
}
.wtc-toolbar__filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}
.wtc-toolbar__filters input[type="search"],
.wtc-toolbar__filters input[type="date"],
.wtc-toolbar__filters select,
.wtc-field {
  min-height: 34px;
  padding: 4px 10px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  color: #0f172a;
}
.wtc-toolbar__filters input[type="search"] { min-width: 180px; }
.wtc-status {
  font-size: 12px;
  color: #64748b;
  min-height: 1.2em;
}
.wtc-status.is-busy { color: #b45309; font-weight: 600; }
.wtc-body { min-width: 0; }
.wtc-panel {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: #fff;
  padding: 14px 16px;
  margin: 0 0 14px;
}
.wtc-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
}
.wtc-panel__head h3,
.wtc-panel__head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}
.wtc-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.wtc-hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}
.wtc-nav-btn {
  min-width: 36px;
  min-height: 34px;
  padding: 0 10px;
  font-weight: 700;
}
.wtc-btn-today { font-weight: 600; }

.wtc-summary-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  background: #f8fafc;
}
.wtc-summary-pill {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  padding: 5px 11px;
  background: #fff;
  font-size: 12px;
  color: #334155;
  line-height: 1.3;
}
.wtc-summary-pill strong {
  font-weight: 800;
  color: #0f172a;
  margin-right: 2px;
}
.wtc-summary-pill--ok {
  border-color: rgba(34, 197, 94, 0.45);
  background: #f0fdf4;
}
.wtc-summary-pill--warn {
  border-color: rgba(245, 158, 11, 0.55);
  background: #fffbeb;
  color: #92400e;
}
.wtc-summary-pill--muted {
  border-color: rgba(148, 163, 184, 0.4);
  background: #f1f5f9;
}
.wtc-summary-bar .btn.is-active {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
  font-weight: 700;
}
.wtc-missing-hint { color: #b45309; font-weight: 700; }
.wtc-row-missing { background: rgba(251, 191, 36, 0.12); }
.wtc-row-missing:hover { background: rgba(251, 191, 36, 0.18); }

.wtc-att {
  min-width: 104px;
  min-height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 2px 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
}
.wtc-att[data-att="WORKING"] { border-color: #86efac; background: #f0fdf4; color: #166534; }
.wtc-att[data-att="MC"] { border-color: #fdba74; background: #fff7ed; color: #9a3412; }
.wtc-att[data-att="LEAVE"] { border-color: #93c5fd; background: #eff6ff; color: #1d4ed8; }
.wtc-att[data-att="PH"] { border-color: #c4b5fd; background: #f5f3ff; color: #5b21b6; }

.wtc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  white-space: nowrap;
  border: 1px solid transparent;
}
.wtc-badge--ok { background: #dcfce7; color: #166534; border-color: #86efac; }
.wtc-badge--warn { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.wtc-badge--info { background: #dbeafe; color: #1d4ed8; border-color: #93c5fd; }
.wtc-badge--muted { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }
.wtc-badge--ph { background: #ede9fe; color: #5b21b6; border-color: #c4b5fd; }
.wtc-badge--leave { background: #eff6ff; color: #1d4ed8; border-color: #93c5fd; }
.wtc-badge--mc { background: #fff7ed; color: #9a3412; border-color: #fdba74; }

.wtc-table-wrap {
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.wtc-table-wrap .data-table { margin: 0; }
.wtc-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
  box-shadow: inset 0 -1px 0 rgba(148, 163, 184, 0.35);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  white-space: nowrap;
}
.wtc-table-wrap .wtc-tin,
.wtc-table-wrap .wtc-tout {
  min-width: 7.2rem;
  min-height: 32px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 8px;
  padding: 2px 6px;
  font: inherit;
  font-size: 13px;
}
.wtc-table-wrap .wtc-tin:disabled,
.wtc-table-wrap .wtc-tout:disabled,
.wtc-table-wrap .wtc-lot:disabled {
  opacity: 0.45;
  background: #f1f5f9;
}
.wtc-num { font-variant-numeric: tabular-nums; font-weight: 600; }
.wtc-split { font-size: 11px; color: #475569; line-height: 1.35; }
.wtc-actions-cell { white-space: nowrap; }
.wtc-confirm-day:disabled { opacity: 0.55; }

/* Compact 1-row decks — Day (per person) + Individual list/month (per day) */
.wtc-panel--deck { background: #fff; }
.wtc-deck-section {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 6px;
  padding: 0 2px 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
}
.wtc-deck-section em {
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  color: #94a3b8;
}
.wtc-shift-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.wtc-day-deck {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 1080px;
}
/* One horizontal row — fixed tracks so columns do not clash */
.wtc-shift-row {
  display: grid;
  grid-template-columns:
    4px
    minmax(130px, 170px)
    minmax(160px, 1.4fr)
    5.75rem
    7.5rem
    7.5rem
    2.5rem
    3rem
    minmax(110px, 130px)
    auto
    auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 4px;
  padding: 8px 12px 8px 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  min-height: 0;
  box-shadow: none;
}
.wtc-shift-row--head {
  padding-top: 4px;
  padding-bottom: 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
}
.wtc-shift-row--head > span:first-child { visibility: hidden; }
.wtc-shift-row:hover {
  border-color: #cbd5e1;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  transform: none;
}
.wtc-shift-row--head:hover {
  border-color: transparent;
  box-shadow: none;
}
.wtc-shift-card__rail {
  align-self: stretch;
  width: 4px;
  border-radius: 10px 0 0 10px;
  background: #94a3b8;
  min-height: 100%;
}
.wtc-shift-row.is-missing .wtc-shift-card__rail { background: #f59e0b; }
.wtc-shift-row.is-confirmed .wtc-shift-card__rail { background: #16a34a; }
.wtc-shift-row.is-closed .wtc-shift-card__rail,
.wtc-shift-row.is-off .wtc-shift-card__rail { background: #94a3b8; }
.wtc-shift-row.is-open .wtc-shift-card__rail { background: #2563eb; }
.wtc-shift-row.is-missing { background: #fffbeb; }
.wtc-shift-row.is-closed,
.wtc-shift-row.is-off { background: #f8fafc; }
.wtc-shift-row__who {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding-left: 4px;
}
.wtc-shift-card__name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
a.wtc-shift-card__name:hover { color: var(--lz-red, #c62828); }
.wtc-shift-card__name .wtc-open-hint {
  font-size: 11px;
  font-weight: 700;
  color: var(--lz-red, #c62828);
  margin-left: 3px;
}
.wtc-shift-card__meta {
  font-size: 11px;
  color: #64748b;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wtc-shift-row__place {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  line-height: 1.3;
  color: #475569;
}
.wtc-shift-row__place .wtc-locations,
.wtc-shift-row__place .wtc-contracts {
  width: 100%;
  min-height: 30px;
  box-sizing: border-box;
  padding: 2px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
}
.wtc-shift-row__place .wtc-contracts {
  min-height: 44px;
  max-height: 72px;
  padding: 2px 4px;
  font-weight: 600;
}
.wtc-shift-row__place .wtc-locations:focus,
.wtc-shift-row__place .wtc-contracts:focus {
  outline: 2px solid rgba(37, 99, 235, 0.25);
  border-color: #2563eb;
}
.wtc-shift-row__dr-hint {
  font-size: 10px;
  color: #64748b;
}
.wtc-shift-row__dr-hint a {
  color: #1d4ed8;
  text-decoration: none;
}
.wtc-shift-row__dr-hint a:hover { text-decoration: underline; }
.wtc-dr-loc-tag {
  display: inline-block;
  margin-right: 2px;
  padding: 0 4px;
  border-radius: 3px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.wtc-shift-row__col-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}
.wtc-field-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
  min-width: 0;
}
.wtc-field-label--inline .wtc-att,
.wtc-field-label--inline .wtc-tin,
.wtc-field-label--inline .wtc-tout {
  width: 100%;
  min-height: 30px;
  min-width: 0;
  box-sizing: border-box;
  padding: 2px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
}
.wtc-field-label--lot {
  align-items: center;
  gap: 4px;
  justify-self: center;
}
.wtc-field-label--lot input {
  width: 16px;
  height: 16px;
  margin: 0;
}
.wtc-shift-row__hrs {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  justify-content: flex-end;
}
.wtc-shift-row__hrs .wtc-total-hrs {
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}
.wtc-shift-card__hrs-label {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
}
.wtc-shift-card__split {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.wtc-shift-row .wtc-confirm-day {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.wtc-shift-row .wtc-day-status {
  justify-self: start;
}
.wtc-shift-row .wtc-day-status .wtc-badge {
  font-size: 10px;
  padding: 2px 6px;
  white-space: nowrap;
}

/* Individual list — 1 row per worker */
.wtc-worker-deck--rows {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.wtc-person-row {
  display: grid;
  grid-template-columns:
    minmax(120px, 1.3fr)
    minmax(90px, 0.9fr)
    auto
    auto
    auto
    minmax(72px, 0.7fr)
    auto
    auto
    auto;
  align-items: center;
  gap: 8px 10px;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.wtc-person-row:hover {
  border-color: rgba(198, 40, 40, 0.4);
  background: #fff7f7;
}
.wtc-person-row.is-warn { background: #fffbeb; border-color: #fcd34d; }
.wtc-person-row.is-ok { background: #f0fdf4; }
.wtc-person-row__name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wtc-person-row__meta {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wtc-person-row__stat {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.wtc-person-row__stat.is-warn { color: #b45309; }
.wtc-person-row__bar {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.wtc-person-row__bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #c62828);
  border-radius: inherit;
}
.wtc-person-row.is-ok .wtc-person-row__bar i {
  background: linear-gradient(90deg, #22c55e, #15803d);
}
.wtc-person-row.is-warn .wtc-person-row__bar i {
  background: linear-gradient(90deg, #fbbf24, #d97706);
}
.wtc-person-row__pct {
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  min-width: 2.5rem;
  text-align: right;
}
.wtc-person-row__open {
  font-size: 11px;
  font-weight: 800;
  color: var(--lz-red, #c62828);
  white-space: nowrap;
}
.wtc-individual-detail .wtc-month-scroll {
  max-height: min(72vh, 780px);
  overflow: auto;
  padding-right: 2px;
}
.wtc-individual-detail .wtc-day-deck { min-width: 1080px; }
@media (max-width: 720px) {
  .wtc-person-row {
    grid-template-columns: 1fr auto;
    gap: 4px 8px;
  }
  .wtc-person-row__bar,
  .wtc-person-row__stat:nth-of-type(n+2) { display: none; }
}
.wtc-month-scroll {
  flex: 1;
  min-height: 0;
  max-height: none;
}
.wtc-month-list {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.wtc-month-list th,
.wtc-month-list td {
  vertical-align: middle;
  padding: 8px 10px;
}
.wtc-month-date-cell {
  white-space: nowrap;
  min-width: 7.5rem;
}
.wtc-month-date-cell strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}
.wtc-month-date-cell .feed-meta {
  display: block;
  margin-top: 1px;
}
.wtc-lot-cell { text-align: center; width: 3rem; }
.wtc-loc-cell { max-width: 12rem; }
.wtc-month-list .wtc-tin,
.wtc-month-list .wtc-tout { min-width: 6.5rem; }

.wtc-mh-app { margin-top: 4px; }
.wtc-mh-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}
.wtc-mh-stat {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}
.wtc-mh-stat__label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 4px;
}
.wtc-mh-stat strong {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

@media (max-width: 960px) {
  .wtc-toolbar__filters { margin-left: 0; width: 100%; }
  .wtc-toolbar__filters input[type="search"] { flex: 1; min-width: 140px; }
}
@media (max-width: 720px) {
  .wtc-tabs .lz-module-subnav-btn { padding: 10px 12px; font-size: 12px; }
}
.wsh-mh-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 0 0 10px; }
.wsh-mh-kpi-card { border: 1px solid rgba(148, 163, 184, 0.25); border-radius: 10px; padding: 10px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.wsh-mh-kpi-card__title { font-size: 12px; font-weight: 700; color: #0f172a; }
.wsh-mh-kpi-card__body { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 8px; align-items: center; }
.wsh-mh-kpi-card__stats { display: flex; flex-direction: column; gap: 6px; font-size: 11px; }
.wsh-mh-ring--compact { width: 88px; height: 88px; }
.wsh-mh-ring--compact .wsh-mh-ring__pct { font-size: 16px; }
.si-mh-target-list { display: flex; flex-direction: column; gap: 12px; }
.si-mh-target-card { border: 1px solid var(--lz-border, rgba(0,0,0,.08)); border-radius: 10px; padding: 12px; background: #fff; }
.si-kpi-settings-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  align-items: start;
}
.si-kpi-settings-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.si-kpi-settings-group__head { margin-bottom: 2px; }
.si-kpi-settings-group__title {
  margin: 0 0 4px;
  font-size: 1rem;
  color: #0f172a;
}
.si-kpi-set-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.si-kpi-set-grid--stack { grid-template-columns: 1fr; }
.si-kpi-set-card {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.si-kpi-set-card--inspection { border-top: 3px solid #6366f1; }
.si-kpi-set-card--manhour { border-top: 3px solid var(--safety-accent, #ea580c); }
.si-kpi-set-card__header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.si-kpi-set-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  color: #fff;
}
.si-kpi-set-card__badge--group { background: #6366f1; }
.si-kpi-set-card__badge--individual { background: #0ea5e9; }
.si-kpi-set-card__badge--milestone-1 { background: #ea580c; }
.si-kpi-set-card__badge--milestone-2 { background: #d97706; }
.si-kpi-set-card__badge--special { background: #7c3aed; }
.si-kpi-set-card__titles { flex: 1; min-width: 0; }
.si-kpi-set-card__title-input {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  padding: 0;
  margin: 0 0 2px;
}
.si-kpi-set-card__title-input:focus {
  outline: none;
  box-shadow: 0 2px 0 0 var(--safety-accent, #ea580c);
}
.si-kpi-set-card__title-input[readonly] { color: #334155; }
.si-kpi-set-card__desc { margin: 0; font-size: 0.75rem; line-height: 1.35; }
.si-kpi-set-card__metrics {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 12px;
  align-items: end;
}
.si-kpi-metric { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.si-kpi-metric--primary { grid-column: 1 / -1; }
.si-kpi-metric--period { grid-column: 1 / 2; }
.si-kpi-metric--year { grid-column: 2 / 3; justify-self: end; }
.si-kpi-metric--compact { grid-column: 1 / 2; }
.si-kpi-metric__label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}
.si-kpi-metric__input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  color: #0f172a;
  padding: 10px 12px;
  text-align: center;
  -moz-appearance: textfield;
}
.si-kpi-metric__input::-webkit-outer-spin-button,
.si-kpi-metric__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.si-kpi-metric__input:focus {
  outline: none;
  border-color: var(--safety-accent, #ea580c);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}
.si-kpi-metric__input[readonly] { background: #f8fafc; color: #475569; }
.si-kpi-metric__year {
  width: 4.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  padding: 8px 6px;
}
.si-kpi-metric__year:focus {
  outline: none;
  border-color: #94a3b8;
}
.si-kpi-metric__select {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 10px;
  min-width: 140px;
}
.si-kpi-pill-group { display: flex; flex-wrap: wrap; gap: 6px; }
.si-kpi-pill {
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
}
.si-kpi-pill.is-active {
  border-color: #6366f1;
  background: #eef2ff;
  color: #4338ca;
}
.si-kpi-pill:disabled { opacity: 0.65; cursor: default; }
.si-kpi-set-card__foot {
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}
.si-kpi-set-add-row { margin-top: 10px; }
.si-kpi-set-status { margin-top: 8px; }
.si-kpi-set-status--error { color: #b45309; font-weight: 600; }
.si-kpi-set-card .si-mh-target-delete {
  flex-shrink: 0;
  min-width: 32px;
  padding: 4px 8px;
  font-size: 1.1rem;
  line-height: 1;
  color: #94a3b8;
}
.si-kpi-set-card .si-mh-target-delete:hover { color: #b91c1c; }
@media (max-width: 720px) {
  .si-kpi-settings-layout { grid-template-columns: 1fr; }
  .si-kpi-set-card__metrics { grid-template-columns: 1fr; }
  .si-kpi-metric--year { grid-column: 1; justify-self: stretch; }
  .si-kpi-metric__year { width: 100%; }
}
.wsh-mh-ring__fill--inspection { stroke: #6366f1; }
.wsh-insp-kpi-card .wsh-mh-kpi-card__meta { margin: -2px 0 4px; font-size: 10px; }
.wsh-insp-kpi-grid { margin-top: 0; }
.wsh-mh-kpi-card--target { border-left: 3px solid var(--safety-accent, #ea580c); }
.wsh-mh-kpi-value { font-size: 24px; line-height: 1.1; color: #0f172a; }
.wsh-mh-progress { height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin-top: 6px; }
.wsh-mh-progress__bar { height: 100%; background: linear-gradient(90deg, #ea580c, #f97316); border-radius: 999px; }
.wsh-mh-breakdown-title { margin: 8px 0; font-size: 14px; }
.wsh-mh-reset-note { color: #b45309; }
.lz-dash-employee-apps { margin-bottom: 16px; }
.lz-dash-apps { display: flex; flex-direction: column; gap: 20px; }
.lz-dash-apps-group { display: flex; flex-direction: column; gap: 10px; }
.lz-portal-dash-groups {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.lz-portal-dash-group .lz-dash-apps-group__title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--lz-text-muted, #64748b);
}
.lz-dash-apps-group__title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}
.lz-dash-apps-grid { margin: 0; }
[data-lz-module="dashboard"] .lz-dash-employee-apps {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(238, 242, 255, 0.9) 100%);
  border-top: 3px solid #6366f1;
}
[data-lz-module="dashboard"] .main-header.lz-app-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
[data-lz-module="dashboard"] .main-header.lz-app-header .main-header-title {
  flex: 1 1 auto;
  min-width: 0;
}
[data-lz-module="dashboard"] .main-header.lz-app-header .lz-header-actions {
  flex: 0 0 auto;
  margin-left: auto;
}
.app-shell--no-sidebar .main-header.lz-app-header,
.app-shell.lz-top-header-brand-on .main-header.lz-app-header.lz-portal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.app-shell--no-sidebar .main-header.lz-app-header .main-header-title,
.app-shell.lz-top-header-brand-on .main-header.lz-app-header.lz-portal-header .main-header-title {
  flex: 1 1 auto;
  min-width: 0;
}
.app-shell--no-sidebar .main-header.lz-app-header .lz-header-actions,
.app-shell.lz-top-header-brand-on .main-header.lz-app-header.lz-portal-header .lz-header-actions {
  flex: 0 0 auto;
  margin-left: auto;
}
.app-shell--no-sidebar .lz-float-sidebar-toggle { display: none !important; }
.lz-dash-employee-apps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.lz-dash-employee-app { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--lz-border, rgba(0,0,0,.08)); border-radius: 10px; text-decoration: none; color: inherit; background: linear-gradient(135deg, #fff 0%, var(--safety-bg, #fff7ed) 100%); border-left: 3px solid var(--safety-accent, #ea580c); }
.lz-dash-employee-app:hover { filter: brightness(0.98); }
.lz-dash-employee-app__icon { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 8px; background: #fff; border: 1px solid var(--lz-border, rgba(0,0,0,.08)); flex-shrink: 0; }
.lz-dash-employee-app__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wsh-schedule-section { margin-bottom: 16px; }
.wsh-sch-intro { margin: 0 0 14px; }
.wsh-sch-section { margin-bottom: 20px; }
.wsh-sch-section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.wsh-sch-section-title { margin: 0; font-size: 15px; }
.wsh-sch-table-wrap { overflow-x: auto; }
.wsh-sch-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.wsh-sch-table th, .wsh-sch-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--lz-border, rgba(0,0,0,.08)); vertical-align: top; }
.wsh-sch-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--lz-muted, #64748b); white-space: nowrap; }
.wsh-sch-row--action { cursor: pointer; }
.wsh-sch-row--action:hover { background: var(--lz-surface-2, #f8fafc); }
.wsh-sch-dr--open { color: #15803d; font-weight: 600; font-size: 12px; }
.wsh-sch-dr--none { color: var(--lz-muted, #94a3b8); font-size: 12px; }
.wsh-sch-action-cell { white-space: nowrap; }
.wsh-sch-error { color: #b91c1c; font-size: 13px; }

.lz-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.lz-dash-cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 280px); gap: 16px; align-items: start; }
@media (max-width: 768px) {
  .lz-dash-cal-layout { grid-template-columns: 1fr; }
}
.lz-dash-cal-grid-wrap { min-width: 0; }
.lz-dash-cal-grid-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.lz-dash-cal-grid-head strong { font-size: 15px; color: #312e81; }
.lz-dash-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  font-size: 11px;
}
.lz-dash-cal-dow {
  text-align: center;
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  color: #64748b;
  padding: 4px 0;
}
.lz-dash-cal-cell {
  min-height: 52px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  padding: 4px 5px;
  background: rgba(255, 255, 255, 0.88);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lz-dash-cal-cell:not(.lz-dash-cal-cell--empty):hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
}
.lz-dash-cal-cell--empty { border-color: transparent; background: transparent; }
.lz-dash-cal-cell--today {
  border-color: #6366f1;
  box-shadow: inset 0 0 0 1px #6366f1, 0 0 0 2px rgba(99, 102, 241, 0.12);
  background: linear-gradient(180deg, rgba(238, 242, 255, 0.95), rgba(255, 255, 255, 0.9));
}
.lz-dash-cal-cell--sun { background: rgba(241, 245, 249, 0.75); }
.lz-dash-cal-cell--ph { background: linear-gradient(180deg, #fffbeb, #fef3c7); border-color: rgba(251, 191, 36, 0.35); }
.lz-dash-cal-cell-day { display: block; font-weight: 700; font-size: 12px; margin-bottom: 2px; color: #1e293b; }
.lz-dash-cal-cell-events { list-style: none; margin: 0; padding: 0; line-height: 1.25; }
.lz-dash-cal-cell-events li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #475569; }
.lz-dash-cal-more { font-style: italic; color: #6366f1; }
.lz-dash-cal-upcoming-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 12px;
  padding: 12px 14px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(224, 231, 255, 0.55) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.lz-dash-cal-upcoming-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4338ca;
  flex-shrink: 0;
}
.lz-dash-cal-upcoming-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.45) transparent;
  padding-right: 4px;
  margin-right: -2px;
}
.lz-dash-cal-upcoming-scroll::-webkit-scrollbar { width: 6px; }
.lz-dash-cal-upcoming-scroll::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.35);
  border-radius: 999px;
}
.lz-dash-cal-upcoming-empty { margin: 0; }
.lz-dash-cal-list--upcoming .lz-dash-cal-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.lz-dash-cal-list--upcoming .lz-dash-cal-item:last-child { border-bottom: 0; }
.lz-dash-cal-upcoming-text strong { display: block; font-size: 13px; color: #1e293b; }
.lz-dash-cal-upcoming-text .feed-meta { font-size: 11px; color: #64748b; }
.lz-dash-cal-item--public_holiday .lz-dash-cal-upcoming-text strong { color: #b45309; }
.lz-dash-cal-item--staff_birthday .lz-dash-cal-upcoming-text strong { color: #be185d; }
.lz-dash-cal-item--company_founding .lz-dash-cal-upcoming-text strong { color: #1d4ed8; }
.lz-dash-cal-nav { min-width: 32px; padding: 4px 8px; border-color: rgba(99, 102, 241, 0.25); color: #4338ca; }
.lz-dash-cal-nav:hover { background: rgba(99, 102, 241, 0.08); }
.lz-dash-cal-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.lz-dash-cal-head h4 { margin: 0; font-size: 15px; }
.lz-dash-cal-list { list-style: none; margin: 0; padding: 0; }
.lz-dash-cal-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--lz-border, rgba(0,0,0,.06)); font-size: 13px; }
.lz-dash-cal-day { font-weight: 700; min-width: 28px; color: var(--lz-muted); }
.lz-dash-cal-upcoming { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--lz-border, rgba(0,0,0,.08)); }
.lz-dash-cal-list--compact .lz-dash-cal-item { padding: 4px 0; border: 0; }

/* Safety analytics dashboard */
.sf-exec-dash { display: flex; flex-direction: column; gap: 16px; }
.sf-exec-dash__hero {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 22px 24px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 45%, #0f766e 100%);
  color: #f8fafc;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}
.sf-exec-dash__hero-glow {
  position: absolute;
  inset: -40% -20% auto auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.sf-exec-dash__hero-inner { position: relative; z-index: 1; }
.sf-exec-dash__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.72);
}
.sf-exec-dash__title { margin: 0 0 6px; font-size: 24px; font-weight: 700; line-height: 1.2; }
.sf-exec-dash__sub { margin: 0; font-size: 13px; color: rgba(248, 250, 252, 0.82); }
.sf-exec-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.sf-exec-kpi {
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--lz-border, #e2e8f0);
  box-shadow: var(--lz-shadow);
}
.sf-exec-kpi__label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--lz-muted); }
.sf-exec-kpi__value { display: block; margin-top: 6px; font-size: 28px; font-weight: 800; line-height: 1.1; color: var(--lz-text); }
.sf-exec-kpi__hint { display: block; margin-top: 4px; font-size: 12px; color: var(--lz-muted); }
.sf-exec-kpi--insp { border-top: 3px solid #ea580c; }
.sf-exec-kpi--mh { border-top: 3px solid #2563eb; }
.sf-exec-kpi--find { border-top: 3px solid #dc2626; }
.sf-exec-kpi--total { border-top: 3px solid #059669; }
.sf-exec-panel { padding: 16px 18px; }
.sf-exec-panel--today { margin-bottom: 16px; }
.sf-exec-panel--today .sf-dash-chart-head { align-items: flex-start; gap: 12px; }
.sf-exec-panel--wsh { background: linear-gradient(180deg, #fff 0%, #f8fafc 100%); }
.sf-exec-chart-grid {
  display: grid;
  gap: 14px;
}
.sf-exec-chart-grid--dual { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 10px; }
.sf-exec-chart-grid--triple { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sf-exec-chart-card {
  border: 1px solid var(--lz-border, #e2e8f0);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}
.sf-exec-chart-card--wide { margin-top: 14px; }
.sf-exec-chart-card h4 { margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.sf-exec-chart-wrap {
  position: relative;
  height: 220px;
  min-height: 180px;
}
.sf-exec-chart-wrap--trend { height: 260px; }
.sf-exec-chart-wrap--status { height: 200px; }
.sf-exec-chart-wrap canvas { width: 100% !important; height: 100% !important; }
@media (max-width: 1100px) {
  .sf-exec-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-exec-chart-grid--triple { grid-template-columns: 1fr; }
  .sf-exec-chart-grid--dual { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sf-exec-kpi-grid { grid-template-columns: 1fr; }
  .sf-exec-dash__title { font-size: 20px; }
}

.sf-dash-layout { display: flex; flex-direction: column; gap: 14px; }
.sf-dash-tab-nav { margin: 0 0 16px; }

/* WSH Safety Inspection — tab row + quiet add action */
.sf-wsh-insp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.sf-wsh-insp-toolbar .sf-dash-tab-nav { margin: 0; flex: 1 1 auto; }
.sf-insp-add-btn {
  flex: 0 0 auto;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #0369a1;
  background: #e0f2fe;
  border: 1px solid #7dd3fc;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.35;
}
.sf-insp-add-btn:hover { background: #bae6fd; border-color: #38bdf8; color: #0c4a6e; }
.sf-insp-add-btn__hint {
  font-weight: 500;
  font-size: 11px;
  opacity: 0.92;
}
.sf-insp-manual-link {
  font-size: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
#sfScheduleHost .wsh-sch-cards { max-height: none; }
#sfScheduleSection .wsh-sch-card { padding: 10px 12px; }
.sf-schedule-head { margin-bottom: 10px; }
.sf-schedule-head h3 { margin: 0 0 4px; }
.sf-schedule-manual { margin-top: 12px; }

.sf-dash-charts-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.sf-dash-chart-panel { padding: 14px 16px; }
.sf-dash-chart-panel .section-head-row { margin-bottom: 4px; }
.sf-dash-chart-panel h3 { margin: 0; font-size: 15px; }
.sf-dash-kpis h3 { margin: 0 0 8px; font-size: 15px; }
.sf-dash-wsh h3 { margin: 0; font-size: 15px; }
.sf-home-kpi--static { cursor: default; text-decoration: none; }
.sf-home-kpi--static:hover { transform: none; }
.sf-dash-chart-head { margin-bottom: 0; }
.sf-dash-chart-head h3 { margin: 0; }
.lz-chart-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 8px 0 8px;
  padding: 8px 10px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border: 1px solid var(--lz-border, #e2e8f0);
  border-radius: 10px;
}
.lz-chart-toolbar-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lz-chart-toolbar-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lz-muted, #64748b);
}
.lz-chart-pill-row { gap: 6px; }
.lz-chart-pill { min-height: 28px; padding: 4px 10px; font-size: 12px; touch-action: manipulation; }
.lz-chart-body {
  padding: 8px 10px 6px;
  background: #fff;
  border: 1px solid var(--lz-border, #e2e8f0);
  border-radius: 10px;
}
.lz-chart-body--compact {
  max-height: 220px;
  overflow: auto;
}
.lz-chart-empty { margin: 8px 0; }
.lz-chart-insight {
  margin: 6px 0 0;
  padding: 6px 10px;
  font-size: 11px;
  background: #fff7ed;
  border-left: 3px solid #ea580c;
  border-radius: 0 8px 8px 0;
  color: #334155;
}
.lz-chart-toggles { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lz-chart-bars { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.lz-chart-bars--compact { gap: 5px; }
.lz-chart-bars--compact .lz-chart-bar-row {
  grid-template-columns: minmax(64px, 100px) 1fr minmax(32px, 42px);
  gap: 8px;
  font-size: 12px;
}
.lz-chart-bars--compact .lz-chart-bar-track { height: 14px; }
.lz-chart-bars--modern .lz-chart-bar-row {
  animation: lz-chart-bar-in 0.45s ease both;
  animation-delay: var(--lz-chart-delay, 0ms);
}
@keyframes lz-chart-bar-in {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: translateX(0); }
}
.lz-chart-bar-row { display: grid; grid-template-columns: minmax(80px, 140px) 1fr minmax(40px, 52px); gap: 12px; align-items: center; font-size: 13px; }
.lz-chart-bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--lz-text, #0f172a); font-weight: 600; }
.lz-chart-bar-track { height: 18px; background: #eef2f7; border-radius: 999px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06); }
.lz-chart-bar-fill { height: 100%; background: linear-gradient(90deg, #ea580c, #fb923c); border-radius: 999px; min-width: 4px; transition: width 0.35s ease; }
.lz-chart-bar-value { font-weight: 700; text-align: right; color: var(--lz-text, #0f172a); }
.lz-chart-svg-wrap { width: 100%; overflow-x: auto; padding: 2px 0; max-height: 170px; }
.lz-chart-svg { display: block; width: 100%; max-width: 420px; max-height: 170px; height: auto; margin: 0 auto; }
.lz-chart-grid-line { stroke: #e2e8f0; stroke-width: 1; }
.lz-chart-line { stroke-linecap: round; stroke-linejoin: round; }
.lz-chart-area { opacity: 0.14; }
.lz-chart-axis-label { font-size: 10px; fill: #64748b; }
.lz-chart-vbar { transition: opacity 0.15s ease; }
.lz-chart-vbar:hover { opacity: 0.85; }
.lz-chart-pie-layout { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; justify-content: center; }
.lz-chart-pie-legend { list-style: none; margin: 0; padding: 0; min-width: 180px; flex: 1; max-width: 320px; }
.lz-chart-pie-legend li {
  display: grid;
  grid-template-columns: 12px 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12px;
}
.lz-chart-pie-dot { width: 10px; height: 10px; border-radius: 50%; }
.lz-chart-pie-legend-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #334155; }
.lz-chart-pie-layout--compact { gap: 8px 14px; }
.lz-chart-pie-layout--compact .lz-chart-pie-legend { min-width: 130px; max-width: 200px; }
.lz-chart-pie-layout--compact .lz-chart-pie-legend li { padding: 4px 0; font-size: 11px; }
.lz-chart-pie-center { font-size: 16px; font-weight: 700; fill: #0f172a; }
.lz-chart-pie-center-sub { font-size: 10px; fill: #64748b; text-transform: uppercase; letter-spacing: 0.08em; }
.lz-chart-pie-slice { transition: opacity 0.15s ease; }
.lz-chart-pie-slice:hover { opacity: 0.88; }
.sf-dash-chart--findings .lz-chart-bar-fill {
  background: linear-gradient(90deg, #b45309, #f59e0b);
}
.sf-dash-wsh { margin-bottom: 0; }
.sf-wsh-trend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}
.sf-wsh-trend-grid--compact { gap: 12px; }
.sf-wsh-trend-panel h4 { margin: 0 0 2px; font-size: 13px; }
.sf-wsh-trend-panel--full { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--lz-border, rgba(0,0,0,.08)); }
.lz-chart-bar-fill--cpms { background: linear-gradient(90deg, #047857, #34d399); }
.lz-chart-bar-fill--ohs { background: linear-gradient(90deg, #c2410c, #fb923c); }
.lz-chart-bar-stack-outer {
  display: flex;
  height: 100%;
  min-width: 2px;
  border-radius: 6px;
  overflow: hidden;
}
.lz-chart-legend--inline {
  display: flex;
  gap: 14px;
  margin-bottom: 10px;
  font-size: 11px;
  color: var(--lz-muted);
}
.lz-chart-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.lz-chart-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}
.lz-chart-swatch--cpms { background: linear-gradient(90deg, #1a7f4b, #2ecc71); }
.lz-chart-swatch--ohs { background: linear-gradient(90deg, #b45309, #f59e0b); }
@media (max-width: 900px) {
  .sf-wsh-trend-grid { grid-template-columns: 1fr; }
  .sf-dash-charts-row { grid-template-columns: 1fr; }
  .lz-chart-toolbar { gap: 10px; }
  .lz-chart-toolbar-group { flex: 1 1 100%; }
  .lz-chart-bar-row { grid-template-columns: minmax(64px, 96px) 1fr minmax(36px, 44px); gap: 8px; font-size: 12px; }
}
.sf-home-kpi .feed-meta + .feed-meta { display: block; margin-top: 2px; font-size: 11px; }
.sf-dash-foot { margin: 0; }

/* People module — light page theme */
body[data-lz-module="people"] .dashboard-body {
  background: linear-gradient(165deg, #f8fafc 0%, #eef2ff 38%, #f0fdfa 100%);
}
body[data-lz-module="people"] .main-content > .section-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
body[data-lz-module="people"] .biz-tab-row .biz-tab.is-active {
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  border-color: #c7d2fe;
  color: #3730a3;
}
body[data-lz-module="people"] .people-settings-card--dept {
  background: linear-gradient(145deg, #fff 0%, #fff7ed 100%);
  border-color: #fed7aa;
}
body[data-lz-module="people"] .people-settings-card--pos {
  background: linear-gradient(145deg, #fff 0%, #eff6ff 100%);
  border-color: #bfdbfe;
}
body[data-lz-module="people"] .people-settings-card--leave {
  background: linear-gradient(145deg, #fff 0%, #ecfdf5 100%);
  border-color: #a7f3d0;
}
.people-settings-add-form { margin-bottom: 12px; }
.people-master-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.people-master-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--lz-border);
  background: rgba(255, 255, 255, 0.88);
}
.people-master-item--dept { border-left: 3px solid #fb923c; }
.people-master-item--pos { border-left: 3px solid #60a5fa; }
.people-master-label { flex: 1; font-weight: 600; font-size: 14px; }
.people-master-actions { display: inline-flex; align-items: center; gap: 4px; }
.people-master-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #475569;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.people-master-btn:hover { background: #f1f5f9; color: #0f172a; }
.people-master-btn--danger:hover { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.people-master-btn--save { color: #047857; border-color: #a7f3d0; }
.people-master-btn--save:hover { background: #ecfdf5; }
.people-master-badge {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 999px;
}
.people-master-edit-input {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
}

/* Department Assign — SYS app */
body[data-lz-module="department-assign"] .dashboard-body {
  background: linear-gradient(165deg, #f8fafc 0%, #fef2f2 32%, #eff6ff 100%);
}
body[data-lz-module="department-assign"] .dept-assign-page-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: #e2e8f0;
}

/* People — Department assign */
.dept-assign-wrap { display: flex; flex-direction: column; gap: 1rem; }
.dept-md-card {
  border-radius: var(--lz-radius);
  background: linear-gradient(135deg, #fff5f5 0%, #fff 42%, #fef2f2 100%);
  border: 1px solid #fecaca;
  box-shadow: var(--lz-shadow);
}
.dept-md-card-inner { padding: 1.1rem 1.25rem; }
.dept-md-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lz-red);
  margin-bottom: 4px;
}
.dept-md-card h3 { margin: 0 0 6px; color: var(--lz-text); }
.dept-md-note { margin: 0 0 8px; font-size: 13px; color: var(--lz-muted); }
.dept-md-email {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--lz-red);
}
.dept-assign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.dept-assign-card {
  border-radius: var(--lz-radius);
  border: 1px solid var(--dept-border, var(--lz-border));
  background: var(--dept-bg, #f8fafc);
  box-shadow: var(--lz-shadow);
  padding: 1rem 1.1rem;
}
.dept-assign-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 12px;
}
.dept-assign-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--dept-accent, var(--lz-muted));
}
.dept-assign-card-head h3 { margin: 0; flex: 1; font-size: 1rem; }
.dept-assign-count { font-size: 12px; color: var(--lz-muted); }
.dept-field { margin-bottom: 12px; }
.dept-field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--lz-muted);
  margin-bottom: 6px;
}
.dept-combobox { position: relative; }
.dept-combobox-input {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--dept-border, var(--lz-border));
  border-radius: 8px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.88);
}
.dept-combobox-input:focus {
  outline: none;
  border-color: var(--dept-accent, var(--lz-red));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--dept-accent, var(--lz-red)) 18%, transparent);
}
.dept-combobox-list {
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  box-shadow: var(--lz-shadow);
}
.dept-combobox-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 11px;
  border: none;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}
.dept-combobox-option:hover,
.dept-combobox-option.is-selected { background: var(--lz-red-soft); }
.dept-combobox-empty { padding: 10px 11px; font-size: 12px; color: var(--lz-muted); }
.dept-link-btn {
  margin-top: 6px;
  padding: 0;
  border: none;
  background: none;
  font-size: 12px;
  color: var(--dept-accent, var(--lz-red));
  cursor: pointer;
  text-decoration: underline;
}
.dept-member-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dept-member-list--readonly { margin-top: 8px; }
.dept-member-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--dept-border, var(--lz-border));
  color: var(--lz-text);
}
.dept-member-pill--readonly { padding-right: 10px; }
.dept-member-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--dept-accent, #94a3b8) 14%, #fff);
  color: var(--dept-accent, var(--lz-muted));
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.dept-member-remove:hover { background: var(--dept-accent, var(--lz-red)); color: #fff; }
.dept-member-empty {
  font-size: 12px;
  color: var(--lz-muted);
  font-style: italic;
}
.dept-mgmt-note { margin: 0 0 8px; font-size: 13px; color: var(--lz-muted); }
.dept-hod-table { font-size: 0.88rem; }
.dept-hod-table th { white-space: nowrap; }
.dept-hod-row--md { background: #fefce8; }
.dept-assign-badge--inline { font-size: 0.68rem; padding: 2px 6px; vertical-align: middle; }
.si-senior-source {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 6px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  margin-left: 4px;
}
.dept-readonly-hod { margin: 0 0 8px; font-size: 13px; }
.dept-readonly-note { margin-top: 4px; }
.dept-save-row { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dept-save-hint { margin: 6px 0 0; max-width: 720px; }
.dept-hod-sync-cell { white-space: nowrap; }
.dept-hod-sync-cell--actions .btn { margin-right: 0.35rem; }
.dept-hod-sync-btn { min-height: 32px; touch-action: manipulation; }
.dept-hod-sync-btn--primary { font-weight: 600; }
.perm-safety-diag {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--lz-surface-muted, #f4f6f8);
  border: 1px solid var(--lz-border, #d8dee4);
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.45;
  white-space: pre-wrap;
  max-height: 16rem;
  overflow: auto;
}

.sf-endorse-section { margin-bottom: 1rem; }
.sf-endorse-section h3 {
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--lz-border, #d8dee4);
}
.sf-endorse-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.sf-endorse-metric {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--lz-border, #d8dee4);
  border-radius: 8px;
  background: var(--lz-surface-muted, #f8fafc);
}
.sf-endorse-metric span {
  display: block;
  font-size: 0.8rem;
  color: var(--lz-text-muted, #64748b);
}
.sf-endorse-metric strong { font-size: 1.25rem; }
.sf-endorse-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}
.sf-endorse-photo-card {
  margin: 0;
  border: 1px solid var(--lz-border, #d8dee4);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.sf-endorse-photo-thumb {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  font-size: 0.8rem;
  color: #64748b;
}
.sf-endorse-photo-thumb img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}
.sf-endorse-finding-list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
.sf-approval-timeline { padding: 0.25rem 0; }
.sf-timeline-entry { margin-bottom: 0.35rem; }
.sf-timeline-date {
  font-size: 0.8rem;
  color: var(--lz-text-muted, #64748b);
  margin-bottom: 0.15rem;
}
.sf-timeline-body { font-size: 0.95rem; }
.sf-timeline-remarks { margin: 0.25rem 0 0; }
.sf-timeline-arrow {
  text-align: center;
  color: var(--lz-text-muted, #94a3b8);
  margin: 0.15rem 0 0.35rem;
}
.sf-endorse-remarks {
  width: 100%;
  max-width: 720px;
  margin: 0.5rem 0 1rem;
}
.sf-endorse-decision-fieldset {
  border: 1px solid var(--lz-border, #d8dee4);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 0 0 1rem;
}
.sf-endorse-radio {
  display: block;
  margin: 0.35rem 0;
}
.sf-endorse-signature-block { margin-top: 1rem; }

.si-coverage-group-row td {
  background: var(--lz-surface-muted, #f1f5f9);
  font-size: 0.85rem;
  padding: 0.45rem 0.75rem;
  border-top: 2px solid var(--lz-border, #cbd5e1);
}
.si-coverage-row--active td {
  background: rgba(34, 197, 94, 0.06);
}
.si-inspector-registry-list {
  margin: 0;
  padding-left: 1.25rem;
}
.si-inspector-registry-list li {
  margin: 0.35rem 0;
}
.si-coverage-inspectors-cell {
  max-width: 280px;
  line-height: 1.35;
}

/* —— QU: Sales Lead —— */
.sl-card {
  background: linear-gradient(180deg, #f0f9ff 0%, #fff 100%);
  border-color: #bae6fd;
}
.sl-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}
.sl-toolbar .pg-search-input { flex: 1; min-width: 180px; max-width: 320px; }
.sl-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.sl-status--active { background: #dcfce7; color: #166534; }
.sl-status--won { background: #dbeafe; color: #1e40af; }
.sl-status--lost { background: #fee2e2; color: #991b1b; }
.sl-status--on_hold { background: #fef3c7; color: #92400e; }
.sl-status--closed { background: #f1f5f9; color: #475569; }
.sl-detail { display: flex; flex-direction: column; gap: 12px; }
.sl-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid #bfdbfe;
}
.sl-detail-title { flex: 1; min-width: 200px; }
.sl-detail-title h3 { margin: 0 0 4px; font-size: 18px; }
.sl-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.sl-back-btn { border-radius: 999px; }
.sl-form-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.sl-bq-section { margin-top: 8px; }
.sl-bq-table .pg-search-input { min-width: 72px; font-size: 13px; }
.sl-bq-summary { margin-top: 12px; background: linear-gradient(180deg, #fef2f2 0%, #fff 100%); border-color: #fecaca; }
.sl-prelist-add { margin: 2px 4px 2px 0; }
.sl-quote-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #93c5fd;
  font-size: 13px;
}
.sl-quote-banner strong { color: var(--lz-text); }
.sl-quote-banner a { font-weight: 600; }

/* —— QU: BQ app —— */
.bq-card {
  background: linear-gradient(180deg, #faf5ff 0%, #fff 100%);
  border-color: #e9d5ff;
}

/* —— FM: Accounts Payable & Internal Billing —— */
.fm-ap-card,
.fm-ib-card {
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
  border-color: #bbf7d0;
}
.fm-ib-card {
  background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
  border-color: #fde68a;
}
.fm-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
  align-items: center;
}
.fm-toolbar .pg-search-input { flex: 1; min-width: 180px; max-width: 320px; }
.fm-check-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--lz-muted);
}
.fm-cross-alert {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  font-size: 13px;
  color: #92400e;
}
.fm-cross-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #fee2e2;
  color: #991b1b;
}
.fm-detail { display: flex; flex-direction: column; gap: 12px; }
.fm-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ecfdf5 0%, #f8fafc 100%);
  border: 1px solid #a7f3d0;
}
.fm-detail-title { flex: 1; min-width: 200px; }
.fm-detail-title h3 { margin: 0 0 4px; font-size: 18px; }
.fm-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.fm-back-btn { border-radius: 999px; }
.fm-form-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.fm-labour-table .pg-search-input { min-width: 64px; font-size: 13px; }
.ib-l-readonly { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* GPS monitor + external portals */
.gps-monitor-main {
  padding: 0 12px 12px;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.gps-monitor-card {
  padding: 0;
  overflow: hidden;
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.gps-monitor-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: min(72vh, 720px);
  height: calc(100dvh - 168px);
  max-height: 900px;
}
.gps-monitor-panel {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--lz-border, #e2e8f0);
  background: #fff;
  min-height: 0;
  z-index: 2;
}
.gps-monitor-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 12px 8px;
  border-bottom: 1px solid #f1f5f9;
}
.gps-monitor-panel-title { margin: 0; font-size: 15px; color: var(--lz-red); }
.gps-monitor-panel-sub { margin: 2px 0 0; }
.gps-monitor-panel-search { padding: 8px 12px; border-bottom: 1px solid #f1f5f9; }
.gps-team-search {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 16px;
}
.gps-monitor-team-list {
  flex: 1 1 auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px;
  min-height: 120px;
}
.gps-monitor-team-detail {
  flex: 0 0 auto;
  max-height: 42%;
  overflow: auto;
  border-top: 1px solid #e2e8f0;
  padding: 10px 12px 12px;
  background: #f8fafc;
}
.gps-team-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  text-align: left;
  padding: 10px 10px;
  margin-bottom: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.gps-team-row.is-selected { border-color: #b91c1c; box-shadow: 0 0 0 1px #b91c1c; }
.gps-team-row.is-stale { border-color: #f59e0b; }
.gps-team-row-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gps-team-row-code { font-weight: 700; font-size: 14px; line-height: 1.25; word-break: break-word; }
.gps-team-row-loc { font-size: 12px; color: #334155; font-weight: 600; letter-spacing: 0.01em; line-height: 1.25; }
.gps-team-row-nea { display: block; margin-top: 2px; }
.gps-team-row-nea .gps-env-chips { gap: 4px; }
.gps-team-row-nea .gps-env-chip {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
}
.gps-team-row-nea .gps-env-empty { margin: 0; font-size: 11px; }
.gps-team-row-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gps-team-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
}
.gps-team-status--active { background: #dcfce7; color: #166534; }
.gps-team-status--review { background: #dbeafe; color: #1d4ed8; }
.gps-team-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 6px;
  border-radius: 6px;
}
.gps-team-badge--muted { background: #f1f5f9; color: #64748b; }
.gps-team-badge--warn { background: #fef3c7; color: #b45309; }
.gps-team-detail-card { font-size: 13px; }
.gps-nea-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
  user-select: none;
  margin-right: 8px;
}
.gps-nea-toggle input { width: 16px; height: 16px; accent-color: var(--lz-red, #b91c1c); }
.gps-nea-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  user-select: none;
  margin-right: 8px;
}
.gps-nea-switch-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.gps-nea-switch-track {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #cbd5e1;
  border: 1px solid #94a3b8;
  transition: background 0.18s ease, border-color 0.18s ease;
  flex-shrink: 0;
}
.gps-nea-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
  transition: transform 0.18s ease;
}
.gps-nea-switch-input:checked + .gps-nea-switch-track {
  background: #16a34a;
  border-color: #15803d;
}
.gps-nea-switch-input:checked + .gps-nea-switch-track .gps-nea-switch-thumb {
  transform: translateX(18px);
}
.gps-nea-switch-input:focus-visible + .gps-nea-switch-track {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(22, 163, 74, 0.45);
}
.gps-env-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 10px;
}
.gps-env-chip {
  display: inline-block;
  font-size: 11px;
  line-height: 1.3;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #94a3b8;
  max-width: 100%;
  word-break: break-word;
}
.gps-env-chip--normal,
.gps-env-chip--safe {
  border-left-color: #16a34a;
  background: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}
.gps-env-chip--medium,
.gps-env-chip--advisory,
.gps-env-chip--warn {
  border-left-color: #ca8a04;
  background: #fffbeb;
  color: #854d0e;
  border-color: #fde68a;
}
.gps-env-chip--high,
.gps-env-chip--severe,
.gps-env-chip--critical,
.gps-env-chip--danger {
  border-left-color: #dc2626;
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}
.gps-env-chip.is-flash {
  animation: gps-env-flash-danger 1s ease-in-out infinite;
}
.gps-env-chip.gps-env-chip--warn.is-flash {
  animation: gps-env-flash-warn 1s ease-in-out infinite;
}
.gps-env-chip.gps-env-chip--danger.is-flash {
  animation: gps-env-flash-danger 1s ease-in-out infinite;
}
@keyframes gps-env-flash-warn {
  0%, 100% { background: #fffbeb; box-shadow: 0 0 0 0 rgba(202, 138, 4, 0.35); }
  50% { background: #fef3c7; box-shadow: 0 0 0 4px rgba(202, 138, 4, 0.18); }
}
@keyframes gps-env-flash-danger {
  0%, 100% { background: #fef2f2; box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.35); }
  50% { background: #fee2e2; box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12); }
}
.gps-adv-marker.is-flash {
  transform-origin: center bottom;
}
.gps-adv-marker.is-env-warn.is-flash {
  animation: gps-marker-flash-warn 1s ease-in-out infinite;
}
.gps-adv-marker.is-env-danger.is-flash {
  animation: gps-marker-flash-danger 1s ease-in-out infinite;
}
@keyframes gps-marker-flash-warn {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(202, 138, 4, 0)); opacity: 1; }
  50% { filter: drop-shadow(0 0 8px rgba(202, 138, 4, 0.85)); opacity: 0.88; }
}
@keyframes gps-marker-flash-danger {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(185, 28, 28, 0)); opacity: 1; }
  50% { filter: drop-shadow(0 0 10px rgba(220, 38, 38, 0.95)); opacity: 0.85; }
}
.gps-env-empty { margin: 6px 0 8px; }
.gps-map-info-env { margin-top: 8px; }
.gps-team-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.gps-team-detail-head-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.gps-team-detail-sub {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.02em;
}
.gps-team-detail-title { font-size: 16px; line-height: 1.3; word-break: break-word; }
.gps-team-detail-dl { margin: 0; display: grid; gap: 8px; }
.gps-team-detail-dl dt { font-size: 11px; text-transform: uppercase; color: #64748b; margin: 0; }
.gps-team-detail-dl dd {
  margin: 2px 0 0;
  font-weight: 500;
  word-break: break-word;
}
.gps-team-stale, .gps-team-nogps {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
}
.gps-team-stale { background: #fffbeb; color: #92400e; }
.gps-team-nogps { background: #f1f5f9; color: #475569; }
.gps-monitor-map-wrap {
  position: relative;
  min-height: 0;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.gps-monitor-map-host {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 280px;
  min-width: 0;
}
.gps-monitor-map {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border-radius: 0;
  border: 0;
}
.gps-monitor-map-controls {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.gps-monitor-map-controls > * {
  pointer-events: auto;
}
.gps-monitor-map-refresh,
.gps-monitor-map-reset {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}
.gps-monitor-map-refresh:hover,
.gps-monitor-map-reset:hover { background: #f8fafc; color: #b91c1c; }
.gps-monitor-map-refresh.is-loading { opacity: 0.65; pointer-events: none; }
.gps-monitor-map-refresh svg,
.gps-monitor-map-reset svg { width: 22px; height: 22px; display: block; }
.gps-monitor-header-refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.gps-monitor-header-refresh svg { width: 16px; height: 16px; display: block; }
.gps-monitor-map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 280px;
  padding: 24px;
  text-align: center;
  background: #f8fafc;
}
.gps-monitor-panel-fab {
  position: absolute;
  left: 12px;
  bottom: 16px;
  z-index: 5;
  padding: 12px 16px;
  border-radius: 999px;
  border: 0;
  background: #b91c1c;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
}
.gps-monitor-layout--panel-closed {
  grid-template-columns: 1fr;
}
.gps-monitor-layout--panel-closed .gps-monitor-panel {
  display: none;
}
@media (max-width: 767px) {
  .gps-monitor-layout {
    grid-template-columns: 1fr;
    height: calc(100dvh - 140px);
    min-height: 480px;
    max-height: none;
  }
  .gps-monitor-layout--panel-open .gps-monitor-map-wrap {
    display: none;
  }
  .gps-monitor-layout--panel-open .gps-monitor-panel {
    display: flex;
    position: absolute;
    inset: 0;
    z-index: 4;
    border-right: 0;
  }
  .gps-monitor-layout--panel-closed .gps-monitor-panel-fab {
    display: inline-block;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .gps-mobile-detail-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    max-height: min(46vh, 360px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -10px 28px rgba(15, 23, 42, 0.14);
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .gps-mobile-detail-sheet.hidden { display: none !important; }
  .gps-monitor-layout--panel-closed.gps-monitor-layout--detail-open .gps-monitor-panel-fab {
    bottom: calc(min(46vh, 360px) + 12px);
  }
  .gps-monitor-team-detail { max-height: 36vh; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .gps-monitor-main { padding: 0 8px 8px; }
  .dashboard-body .main-content.gps-monitor-main {
    min-height: 0;
    overflow: hidden;
  }
  .gps-monitor-layout {
    grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
    height: calc(100dvh - 132px);
    min-height: 360px;
    max-height: none;
  }
  .gps-monitor-panel { min-width: 0; max-width: 38vw; }
  .gps-monitor-team-list { min-height: 80px; max-height: 42vh; flex: 1 1 auto; }
  .gps-monitor-team-detail { max-height: 28%; }
  .gps-monitor-map-wrap { min-height: 0; flex: 1 1 auto; }
  .gps-monitor-map-host,
  .gps-monitor-map { min-height: 240px; height: 100%; }
}
.gps-map-info { font-size: 13px; line-height: 1.4; max-width: 220px; }
body[data-lz-module="gpsmonitor"] .dashboard-body {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 56px);
  overflow: hidden;
}
body[data-lz-module="gpsmonitor"] .main-header { flex: 0 0 auto; }
.portal-auth-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #f8fafc 0%, #e2e8f0 100%); padding: 24px; }
.portal-auth-card { width: 100%; max-width: 400px; background: #fff; border-radius: 16px; padding: 28px 24px; box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08); }
.portal-auth-logo { display: block; margin: 0 auto 16px; }
.portal-auth-form label { display: block; margin-bottom: 12px; font-size: 13px; font-weight: 600; }
.portal-auth-form input { width: 100%; margin-top: 4px; }
.btn-block { width: 100%; margin-top: 8px; }
.portal-auth-status { min-height: 1.2em; margin-top: 12px; }
.portal-site-body, .portal-client-body { min-height: 100vh; background: #f1f5f9; }
.portal-client-app { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.portal-client-topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px 12px;
  padding: 8px 12px;
  min-height: 52px;
  background: #fff;
  border-bottom: 2px solid var(--lz-red, #b91c1c);
  position: sticky;
  top: 0;
  z-index: 30;
  box-sizing: border-box;
}
.portal-client-topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.portal-client-topbar-logo {
  display: block;
  width: 80px;
  height: auto;
  max-height: 32px;
  object-fit: contain;
}
.portal-client-topbar-chip {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #b91c1c;
  border: 1px solid #fecaca;
  background: #fef2f2;
  border-radius: 999px;
  padding: 3px 7px;
  line-height: 1;
}
.portal-client-topbar-title {
  flex: 1 1 auto;
  min-width: 0;
}
.portal-client-topbar-title h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-client-topbar-title p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-client-topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.portal-client-topbar-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.portal-client-topbar-btn:hover { background: #f8fafc; border-color: #94a3b8; }
.portal-client-topbar-btn--muted { color: #475569; }
.portal-client-topbar-btn-ico { font-size: 15px; line-height: 1; }
@media (max-width: 720px) {
  .portal-client-topbar {
    padding: 6px 10px;
    min-height: 48px;
    gap: 8px;
  }
  .portal-client-topbar-logo { width: 64px; max-height: 28px; }
  .portal-client-topbar-chip,
  .portal-client-topbar-title p,
  .portal-client-topbar-btn-lbl { display: none; }
  .portal-client-topbar-btn {
    min-width: 36px;
    padding: 0 8px;
  }
  .portal-client-topbar-btn#btnClientLogout .portal-client-topbar-btn-lbl,
  .portal-client-topbar-btn--muted .portal-client-topbar-btn-lbl {
    display: inline;
    font-size: 12px;
  }
  .portal-client-view-only-note { font-size: 12px; margin: 0 0 8px; }
  .portal-client-photo-toolbar { flex-wrap: wrap; gap: 8px; }
  .portal-client-main { padding: 8px 10px 12px; }
}
/* Site map — full viewport under topbar */
.portal-client-app--map {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.portal-client-app--map .portal-client-main {
  flex: 1 1 auto;
  min-height: 0;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}
.portal-client-app--map .portal-client-map-card {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}
.portal-client-app--map .portal-client-map-card .gps-monitor-layout {
  height: 100%;
  min-height: 0;
  max-height: none;
}
.portal-client-app--map .gps-monitor-panel-head {
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
}
.portal-client-app--map .gps-monitor-panel-title { font-size: 14px; }
.portal-client-app--map .gps-monitor-panel-sub { font-size: 11px; }
@media (max-width: 767px) {
  .portal-client-app--map .gps-monitor-panel-head {
    padding: 8px 10px;
  }
  .portal-client-app--map .gps-monitor-panel-sub { display: none; }
}
.portal-client-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
}
.portal-client-list-head .portal-client-page-title { margin: 0 0 4px; }
.portal-client-tab-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  font-weight: 700;
  cursor: pointer;
  flex: 0 0 auto;
}
.portal-client-share-list {
  display: grid;
  gap: 10px;
}
.portal-client-share-card {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 4px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  border-left: 4px solid #94a3b8;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.portal-client-share-card:hover {
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.portal-client-share-open-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.portal-client-share-zone-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid transparent;
}
.portal-client-share-card--BLUE {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #bfdbfe;
  border-left-color: #3b82f6;
}
.portal-client-share-card--BLUE .portal-client-share-open:hover { background: rgba(255, 255, 255, 0.45); }
.portal-client-share-card--BLUE .portal-client-share-zone-badge {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #93c5fd;
}
.portal-client-share-card--ORANGE {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-color: #fed7aa;
  border-left-color: #f97316;
}
.portal-client-share-card--ORANGE .portal-client-share-open:hover { background: rgba(255, 255, 255, 0.45); }
.portal-client-share-card--ORANGE .portal-client-share-zone-badge {
  background: #ffedd5;
  color: #c2410c;
  border-color: #fdba74;
}
.portal-client-share-card--YELLOW {
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
  border-color: #fde68a;
  border-left-color: #eab308;
}
.portal-client-share-card--YELLOW .portal-client-share-open:hover { background: rgba(255, 255, 255, 0.45); }
.portal-client-share-card--YELLOW .portal-client-share-zone-badge {
  background: #fef9c3;
  color: #a16207;
  border-color: #fde047;
}
.portal-client-share-card--RED {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-color: #fecaca;
  border-left-color: #ef4444;
}
.portal-client-share-card--RED .portal-client-share-open:hover { background: rgba(255, 255, 255, 0.45); }
.portal-client-share-card--RED .portal-client-share-zone-badge {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}
.portal-client-share-card--GREEN {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #bbf7d0;
  border-left-color: #22c55e;
}
.portal-client-share-card--GREEN .portal-client-share-open:hover { background: rgba(255, 255, 255, 0.45); }
.portal-client-share-card--GREEN .portal-client-share-zone-badge {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}
.portal-client-share-card--PURPLE {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  border-color: #e9d5ff;
  border-left-color: #a855f7;
}
.portal-client-share-card--PURPLE .portal-client-share-open:hover { background: rgba(255, 255, 255, 0.45); }
.portal-client-share-card--PURPLE .portal-client-share-zone-badge {
  background: #f3e8ff;
  color: #7e22ce;
  border-color: #d8b4fe;
}
.portal-client-share-card--MONSOON_ADHOC {
  background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
  border-color: #a5f3fc;
  border-left-color: #06b6d4;
}
.portal-client-share-card--MONSOON_ADHOC .portal-client-share-open:hover { background: rgba(255, 255, 255, 0.45); }
.portal-client-share-card--MONSOON_ADHOC .portal-client-share-zone-badge {
  background: #cffafe;
  color: #0e7490;
  border-color: #67e8f9;
}
.portal-client-share-card--OIL_INGRESS {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fde68a;
  border-left-color: #d97706;
}
.portal-client-share-card--OIL_INGRESS .portal-client-share-open:hover { background: rgba(255, 255, 255, 0.45); }
.portal-client-share-card--OIL_INGRESS .portal-client-share-zone-badge {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}
.portal-client-share-card--OTHER {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-color: #e2e8f0;
  border-left-color: #64748b;
}
.portal-client-share-card--OTHER .portal-client-share-zone-badge {
  background: #e2e8f0;
  color: #334155;
  border-color: #cbd5e1;
}
.portal-client-share-open {
  appearance: none;
  border: 0;
  background: transparent;
  text-align: left;
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  gap: 2px;
  font: inherit;
  color: inherit;
}
.portal-client-share-open:hover { background: #f8fafc; }
.portal-client-share-open strong {
  font-size: 15px;
  color: #0f172a;
}
.portal-client-share-tallies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.portal-client-share-tally {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #334155;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid rgba(148, 163, 184, 0.35);
}
.portal-client-share-tally em {
  font-style: normal;
  color: #0f766e;
  font-weight: 700;
}
.portal-client-share-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 6px;
  padding: 6px 8px 6px 0;
  flex: 0 0 auto;
}

/* Client photos — packages → plans → plan review */
.portal-client-app--photos .portal-client-photos-main {
  max-width: 1200px;
}
.portal-client-app--photos.portal-client-photos-reviewing .portal-client-photos-main {
  max-width: min(1600px, 100%);
  padding-left: 16px;
  padding-right: 16px;
}
.portal-client-plan-list {
  display: grid;
  gap: 10px;
}
.portal-client-plan-card {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 4px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}
.portal-client-plan-open {
  appearance: none;
  border: 0;
  background: transparent;
  text-align: left;
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font: inherit;
  color: inherit;
}
.portal-client-plan-open:hover { background: #f8fafc; }
.portal-client-plan-open-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.portal-client-plan-open strong {
  font-size: 16px;
  color: #0f172a;
}
.portal-client-plan-open .portal-client-share-tallies {
  margin-top: 0;
  justify-content: flex-end;
}
.portal-client-app--photos .portal-client-review-title-wrap {
  flex: 1 1 auto;
  min-width: 0;
}
.portal-client-app--photos .portal-client-review-title-wrap strong {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  font-size: 18px;
  line-height: 1.25;
}
.portal-client-app--photos .portal-client-review-title-wrap .feed-meta {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}
.portal-client-app--photos .portal-client-photo-layout {
  min-height: calc(100dvh - 180px);
}
.portal-client-app--photos .portal-client-photo-layout .mnt-photo-review-sidebar {
  flex-basis: 340px;
  width: 340px;
  max-width: 340px;
}
.portal-client-app--photos .mnt-photo-gallery--review .mnt-photo-gallery-section-row {
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 0;
}
.portal-client-app--photos .mnt-photo-gallery--review .mnt-photo-gallery-section-photos {
  min-height: 180px;
}
.portal-client-app--photos .mnt-photo-gallery--review .mnt-photo-gallery-section-grid--strip {
  grid-auto-columns: minmax(160px, 200px);
  gap: 12px;
  padding: 14px;
}
.portal-client-app--photos .mnt-photo-gallery--review .mnt-photo-gallery-section-grid--strip .mnt-photo-gallery-thumb-frame {
  min-height: 130px;
  height: 130px;
}
@media (min-width: 1400px) {
  .portal-client-app--photos .mnt-photo-gallery--review .mnt-photo-gallery-section-row {
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  }
  .portal-client-app--photos .mnt-photo-gallery--review .mnt-photo-gallery-section-grid--strip {
    grid-auto-columns: minmax(180px, 220px);
  }
}
@media (max-width: 960px) {
  .portal-client-app--photos.portal-client-photos-reviewing .portal-client-photos-main {
    max-width: 100%;
  }
  .portal-client-plan-open {
    flex-direction: column;
    align-items: flex-start;
  }
  .portal-client-plan-card {
    flex-direction: column;
  }
  .portal-client-plan-card .portal-client-share-actions {
    padding: 0 8px 8px;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .portal-client-app--photos .mnt-photo-gallery--review .mnt-photo-gallery-section-row {
    grid-template-columns: 1fr;
  }
}
.portal-client-share-progress-note,
.portal-client-report-progress-note {
  margin: 0;
  max-width: 11rem;
  font-size: 11px;
  line-height: 1.35;
  color: #c2410c;
}
.portal-client-report-progress-note {
  max-width: none;
  margin: 0 0 8px;
}
.portal-client-share-gen-btn {
  white-space: nowrap;
  min-width: 88px;
}
.portal-client-share-gen-btn.is-busy {
  opacity: 0.7;
  pointer-events: none;
}
.portal-client-share-pdf-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  min-width: 88px;
}
.portal-client-share-pdf-generated {
  display: block;
  margin: 0;
  font-size: 10px;
  line-height: 1.3;
  color: #64748b;
  text-align: center;
  max-width: 7.5rem;
}
.portal-client-review-report-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}
.portal-client-share-pdf {
  appearance: none;
  align-self: stretch;
  flex: 0 0 auto;
  min-width: 88px;
  width: 100%;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  color: #94a3b8;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.portal-client-share-pdf--ready {
  background: #15803d;
  border-color: #15803d;
  color: #fff;
  cursor: pointer;
}
.portal-client-share-pdf--ready.is-new {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.35);
}
.portal-client-share-pdf--pending {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}
.portal-client-share-pdf--failed {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}
.portal-client-share-pdf--empty {
  background: transparent;
  border-style: dashed;
}
.portal-client-review-title-wrap {
  flex: 1 1 160px;
  min-width: 0;
  display: grid;
  gap: 1px;
}
.portal-client-review-title-wrap strong {
  font-size: 14px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.portal-client-review-title-wrap .feed-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.portal-client-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 12px 16px 16px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.portal-client-map-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}
.portal-client-page-title { margin: 0 0 12px; font-size: 18px; color: var(--lz-text, #0f172a); }
.portal-auth-brand-line {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin: -8px 0 12px;
}
.portal-site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #fff; border-bottom: 1px solid #e2e8f0; }
.portal-site-header-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.portal-site-header-brand > strong {
  line-height: 1.25;
}
.portal-site-header-user {
  display: block;
  line-height: 1.3;
  word-break: break-word;
}
.portal-site-main { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; padding: 16px; max-width: 1200px; margin: 0 auto; }
.portal-site-list, .portal-site-detail { background: #fff; border-radius: 12px; padding: 16px; border: 1px solid #e2e8f0; min-height: 320px; }
.portal-site-announce {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, #fef3c7 0%, #fffbeb 45%, #ffffff 100%);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #fcd34d;
}
.portal-site-announce-head h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: #92400e;
}
.portal-site-announce-head .feed-meta { margin: 0 0 12px; }
.portal-announce-card {
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 14px;
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  margin-bottom: 10px;
}
.portal-announce-card:last-child { margin-bottom: 0; }
.portal-announce-card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.portal-announce-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fde68a;
  color: #b45309;
  flex-shrink: 0;
}
.portal-announce-card-icon svg { width: 18px; height: 18px; }
.portal-announce-card-top h3 {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #92400e;
}
.portal-announce-card-body {
  margin: 0 0 8px;
  font-size: 0.98rem;
  color: #78350f;
  white-space: pre-wrap;
  line-height: 1.4;
}
.portal-announce-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.portal-announce-thumb {
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
  width: 72px;
  height: 72px;
  cursor: pointer;
}
.portal-announce-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portal-announce-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.portal-announce-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.portal-announce-modal-dialog {
  position: relative;
  width: min(440px, 100%);
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25);
}
.portal-announce-modal-eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #b45309;
  font-weight: 650;
}
.portal-announce-modal-dialog h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: #78350f;
}
.portal-announce-modal-body {
  margin: 0 0 12px;
  white-space: pre-wrap;
  line-height: 1.45;
  color: #451a03;
}
.portal-announce-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.wsh-panel--site-announce {
  border-color: #fde68a;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 48%);
}
.wsh-ann-idle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px dashed #fcd34d;
  border-radius: 12px;
  background: rgba(255, 251, 235, 0.7);
  margin-bottom: 16px;
}
.wsh-ann-idle-title {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 650;
  color: #92400e;
}
.wsh-site-announce-form {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #fde68a;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(146, 64, 14, 0.06);
}
.wsh-ann-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.wsh-ann-form-title {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 700;
  color: #78350f;
}
.wsh-ann-field { display: grid; gap: 6px; }
.wsh-ann-label {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a16207;
}
.wsh-ann-textarea {
  width: 100%;
  border: 1px solid #e7e5e4;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  resize: vertical;
  min-height: 96px;
  background: #fafaf9;
}
.wsh-ann-textarea:focus {
  outline: 2px solid rgba(245, 158, 11, 0.35);
  border-color: #f59e0b;
  background: #fff;
}
.wsh-ann-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 14px;
}
.wsh-ann-seg-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.wsh-ann-seg {
  border: 1px solid #e7e5e4;
  background: #fff;
  color: #44403c;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.wsh-ann-seg:hover { border-color: #f59e0b; background: #fffbeb; }
.wsh-ann-seg.is-on {
  background: #f59e0b;
  border-color: #d97706;
  color: #fff;
  box-shadow: 0 1px 2px rgba(180, 83, 9, 0.25);
}
.wsh-ann-seg--days { min-width: 52px; text-align: center; }

.wsh-ann-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 10px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}
.wsh-ann-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.wsh-ann-btn--sm {
  padding: 7px 12px;
  font-size: 12px;
}
.wsh-ann-btn--primary {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  border-color: #b45309;
  color: #fff;
  box-shadow: 0 1px 3px rgba(180, 83, 9, 0.28);
}
.wsh-ann-btn--primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
  color: #fff;
}
.wsh-ann-btn--ghost {
  background: #fff;
  border-color: #e7e5e4;
  color: #44403c;
}
.wsh-ann-btn--ghost:hover:not(:disabled) {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #92400e;
}
.wsh-ann-btn--link {
  border: 0;
  background: transparent;
  color: #b45309;
  padding: 4px 6px;
  font-weight: 650;
  font-size: 12px;
}
.wsh-ann-btn--link:hover { text-decoration: underline; color: #92400e; }

.wsh-ann-team-field { margin-top: 2px; }
.wsh-ann-drop {
  position: relative;
}
.wsh-ann-drop-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #d6d3d1;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #1c1917;
  cursor: pointer;
  text-align: left;
}
.wsh-ann-drop-trigger:hover,
.wsh-ann-drop.is-open .wsh-ann-drop-trigger {
  border-color: #f59e0b;
}
.wsh-ann-drop-trigger-text { color: #a8a29e; font-weight: 500; }
.wsh-ann-drop-trigger-text.has-value { color: #1c1917; font-weight: 650; }
.wsh-ann-drop-caret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #57534e;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.wsh-ann-drop.is-open .wsh-ann-drop-caret { transform: rotate(180deg); }
.wsh-ann-drop-panel {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  border: 1px solid #d6d3d1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(28, 25, 23, 0.12);
  overflow: hidden;
}
.wsh-ann-drop-panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-top: 1px solid #e7e5e4;
  background: #fff;
}
.wsh-ann-drop-count {
  color: #78716c;
  font-size: 12px;
  font-weight: 650;
}
.wsh-ann-drop-list {
  max-height: 280px;
  overflow-y: auto;
  padding: 0;
  background: #fff;
}
.wsh-ann-drop-group { margin: 0; }
.wsh-ann-drop-group + .wsh-ann-drop-group {
  border-top: 1px solid #e7e5e4;
}
.wsh-ann-drop-group-head {
  padding: 8px 12px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #78716c;
  background: #fff;
}
.wsh-ann-drop-group--ug .wsh-ann-drop-group-head { color: #1d4ed8; }
.wsh-ann-drop-group--ag .wsh-ann-drop-group-head { color: #047857; }
.wsh-ann-drop-item {
  width: 100%;
  display: grid;
  grid-template-columns: 22px minmax(72px, auto) 1fr;
  align-items: center;
  column-gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-top: 1px solid #f5f5f4;
  border-radius: 0;
  background: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
  color: #1c1917;
  min-height: 42px;
}
.wsh-ann-drop-group .wsh-ann-drop-item:first-of-type { border-top: 0; }
.wsh-ann-drop-item:hover { background: #fffbeb; }
.wsh-ann-drop-item.is-on { background: #fff7ed; }
.wsh-ann-drop-tick {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid #a8a29e;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  color: transparent;
  line-height: 1;
}
.wsh-ann-drop-item.is-on .wsh-ann-drop-tick {
  background: #d97706;
  border-color: #b45309;
  color: #fff;
}
.wsh-ann-drop-code {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.wsh-ann-drop-name {
  font-size: 13px;
  color: #57534e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wsh-ann-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  margin-top: 8px;
  font-size: 13px;
  color: #44403c;
  line-height: 1.4;
}
.wsh-ann-summary-empty { margin: 8px 0 0; }
.wsh-ann-summary-label {
  font-weight: 700;
  color: #78716c;
}
.wsh-ann-summary-text {
  font-weight: 650;
  color: #1c1917;
}
.wsh-ann-team-empty { margin: 10px 12px; }
.wsh-ann-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid #f5f5f4;
}
.wsh-ann-photo-block {
  flex: 1 1 220px;
  min-width: 0;
  display: grid;
  gap: 8px;
}
.wsh-ann-photo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.wsh-ann-photo-btn { margin: 0; }
.wsh-ann-photo-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wsh-ann-photo-thumb-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
}
.wsh-ann-photo-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e7e5e4;
  background: #f5f5f4;
}
.wsh-ann-photo-thumb-x {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #b91c1c;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 1px 3px rgba(28, 25, 23, 0.25);
}
.wsh-ann-photo-thumb-x:hover { background: #991b1b; }
.wsh-ann-footer-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.wsh-ann-status { margin: 0; }
.wsh-site-announce-warn {
  border: 1px solid #f59e0b;
  background: #fffbeb;
  color: #92400e;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
}
.wsh-site-announce-warn-meta {
  margin-top: 6px;
  color: #a16207;
}
.wsh-ann-history-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #78716c;
}
.wsh-ann-history-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  margin-bottom: 8px;
}
.wsh-ann-history-head .wsh-ann-history-title { margin: 0; }
.wsh-ann-history-scroll {
  max-height: 560px; /* ~5 announcement cards */
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  background: #fafaf9;
  padding: 8px;
}
.wsh-site-announce-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.wsh-site-announce-item {
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  min-height: 96px;
}
.wsh-site-announce-item.is-live {
  border-color: #fcd34d;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 70%);
}
.wsh-site-announce-item.is-superseded {
  border-color: #e7e5e4;
  background: #fff;
}
.wsh-site-announce-item.is-expired { opacity: 0.72; }
.wsh-site-announce-item-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 6px;
}
.wsh-site-announce-item-head > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.wsh-ann-pill {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f5f5f4;
  color: #78716c;
  max-width: 100%;
}
.wsh-ann-pill--live {
  background: #fef3c7;
  color: #b45309;
}
.wsh-site-announce-item-body {
  white-space: pre-wrap;
  margin-bottom: 8px;
  line-height: 1.4;
  color: #1c1917;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wsh-site-announce-item-teams {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}
.wsh-ann-team-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f5f5f4;
  color: #44403c;
  border: 1px solid #e7e5e4;
}
.wsh-ann-team-tag--all { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.wsh-ann-team-tag--ug { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.wsh-ann-team-tag--ag { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.wsh-ann-team-tag--other { background: #fafaf9; }
.wsh-site-announce-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #78716c;
}
.wsh-site-announce-empty { margin: 8px 0 0; }
@media (max-width: 720px) {
  .wsh-ann-idle { flex-direction: column; align-items: stretch; }
  .wsh-ann-grid { grid-template-columns: 1fr; }
  .wsh-ann-footer-actions { margin-left: 0; width: 100%; }
  .wsh-ann-footer-actions .wsh-ann-btn { flex: 1; }
  .wsh-ann-drop-panel { position: static; margin-top: 8px; box-shadow: none; }
}


.portal-site-env {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, #f0f9ff 0%, #f8fafc 55%, #ffffff 100%);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #dbeafe;
}
.portal-site-env-head h2 { margin: 0 0 4px; font-size: 1.05rem; color: var(--lz-red, #b91c1c); }
.portal-site-env-head .feed-meta { margin: 0 0 12px; }
.portal-site-env-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.portal-env-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 14px 12px;
  background: #f8fafc;
  border-left: 4px solid #94a3b8;
  min-height: 108px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.portal-env-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.portal-env-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  color: #475569;
  background: #e2e8f0;
}
.portal-env-card-icon svg {
  width: 18px;
  height: 18px;
}
.portal-env-card h3 {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  font-weight: 600;
}
.portal-env-card-value {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 650;
  color: #0f172a;
  line-height: 1.35;
  word-break: break-word;
}
.portal-env-card-meta { margin: 0; font-size: 12px; }

/* Soft base colours per card type */
.portal-env-card--weather {
  background: #eff6ff;
  border-color: #bfdbfe;
  border-left-color: #3b82f6;
}
.portal-env-card--weather .portal-env-card-icon {
  color: #1d4ed8;
  background: #dbeafe;
}
.portal-env-card--weather h3 { color: #1e40af; }

.portal-env-card--temperature {
  background: #fff7ed;
  border-color: #fed7aa;
  border-left-color: #f97316;
}
.portal-env-card--temperature .portal-env-card-icon {
  color: #c2410c;
  background: #ffedd5;
}
.portal-env-card--temperature h3 { color: #9a3412; }

.portal-env-card--lightning {
  background: #f5f3ff;
  border-color: #ddd6fe;
  border-left-color: #8b5cf6;
}
.portal-env-card--lightning .portal-env-card-icon {
  color: #6d28d9;
  background: #ede9fe;
}
.portal-env-card--lightning h3 { color: #5b21b6; }

/* Severity overlays (keep type tint, strengthen status cue) */
.portal-env-card--normal { /* keep type colours */ }
.portal-env-card--medium,
.portal-env-card--advisory {
  border-left-color: #ca8a04 !important;
  box-shadow: inset 0 0 0 1px rgba(202, 138, 4, 0.18);
}
.portal-env-card--high,
.portal-env-card--severe {
  border-left-color: #ea580c !important;
  box-shadow: inset 0 0 0 1px rgba(234, 88, 12, 0.2);
}
.portal-env-card--critical {
  border-left-color: #dc2626 !important;
  background: #fef2f2 !important;
  border-color: #fecaca !important;
  box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.18);
}
.portal-env-card--critical .portal-env-card-icon {
  color: #b91c1c;
  background: #fecaca;
}

#sitePortalSafetyPanel .portal-site-list {
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 40%);
  border-color: #fde68a;
}
#sitePortalSafetyPanel .portal-site-detail {
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 40%);
  border-color: #bbf7d0;
}
#sitePortalSafetyPanel .portal-site-list h2,
#sitePortalSafetyPanel .portal-site-detail h2 {
  color: #92400e;
}
#sitePortalSafetyPanel .portal-site-detail h2 { color: #166534; }
#sitePortalSafetyPanel.portal-site-safety-empty .portal-site-list {
  grid-column: 1 / -1;
}
/* Only hide rectification detail — visitor form lives in #sitePortalVisitorDetailSection */
#sitePortalSafetyPanel.portal-site-safety-empty .portal-site-detail:not(#sitePortalVisitorDetailSection) {
  display: none;
}

@media (max-width: 720px) {
  .portal-site-env-cards { grid-template-columns: 1fr; }
}
.site-dr-cards { display: flex; flex-direction: column; gap: 8px; }
.site-dr-card { text-align: left; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px; background: #f8fafc; cursor: pointer; width: 100%; }
.site-dr-card-row { display: flex; align-items: flex-start; gap: 8px; }
.site-dr-card-main { flex: 1; min-width: 0; }
.site-dr-card.is-active { border-color: #b91c1c; background: #fff; }
.site-dr-card--today { background: #ecfdf5; border-color: #6ee7b7; }
.site-dr-card--submitted { background: #ecfdf5; border-color: #86efac; }
.site-dr-card--yesterday { background: #fef2f2; border-color: #fecaca; }
.site-dr-card--overdue { background: #fef2f2; border-color: #fca5a5; animation: site-dr-overdue-pulse 1.6s ease-in-out infinite; }
.site-dr-card--today.is-active,
.site-dr-card--submitted.is-active { background: #fff; border-color: #b91c1c; }
.site-dr-card--yesterday.is-active,
.site-dr-card--overdue.is-active { background: #fff; border-color: #b91c1c; }
.site-dr-today-star { flex-shrink: 0; font-size: 20px; line-height: 1; color: #059669; margin-top: 2px; }
@keyframes site-dr-overdue-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45); border-color: #fca5a5; }
  50% { box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.12); border-color: #ef4444; }
}
.site-dr-card-head { font-weight: 700; color: #b91c1c; }
.site-dr-date-badge { display: inline-block; font-size: 11px; font-weight: 600; line-height: 1.2; padding: 2px 6px; margin-right: 4px; border-radius: 4px; color: #92400e; background: #fef3c7; vertical-align: middle; }
.site-dr-date-badge--today { color: #166534; background: #dcfce7; }
.site-dr-date-badge--yesterday { color: #991b1b; background: #fee2e2; }
.site-dr-date-badge--overdue { color: #991b1b; background: #fecaca; font-weight: 700; }
.site-dr-pending-badge { display: inline-block; font-size: 11px; font-weight: 600; line-height: 1.2; padding: 2px 6px; margin-right: 4px; border-radius: 4px; color: #1e40af; background: #dbeafe; vertical-align: middle; }
.site-dr-lifecycle { margin: 0 0 12px; padding: 12px 14px; border-radius: 10px; background: #f8fafc; border: 1px solid #e2e8f0; }
.site-dr-lifecycle--compact { padding: 10px 12px; margin-bottom: 10px; }
.site-dr-lifecycle-compact { margin: 0; font-size: 13px; line-height: 1.45; color: #334155; }
.site-dr-lifecycle h4 { margin: 0 0 10px; font-size: 14px; color: #0f172a; }
.site-dr-lifecycle-stages { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.site-dr-lifecycle-stage { display: grid; gap: 2px; padding: 8px 10px; border-radius: 8px; background: #fff; border: 1px solid #e2e8f0; font-size: 13px; }
.site-dr-lifecycle-stage strong { color: #0f172a; }
.site-dr-lifecycle-stage span { color: #64748b; font-size: 12px; }
.site-dr-lifecycle-stage--done { border-color: #86efac; background: #f0fdf4; }
.site-dr-lifecycle-stage--done strong { color: #166534; }
.site-dr-lifecycle-stage--active { border-color: #b91c1c; background: #fff7f7; box-shadow: 0 0 0 1px rgba(185, 28, 28, 0.15); }
.site-dr-lifecycle-stage--active strong { color: #b91c1c; }
.site-dr-lifecycle-alert { margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-size: 13px; }
.site-dr-lifecycle-foot { margin: 10px 0 0; }
.site-mp-row { display: grid; gap: 8px; padding: 10px 0; border-bottom: 1px solid #e2e8f0; }
.site-mp-row label { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; font-size: 14px; }
.site-dr-actions { margin-top: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.site-dr-submit-btn.is-blocked,
.site-dr-submit-btn.is-blocked:disabled {
  background: #94a3b8 !important;
  border-color: #94a3b8 !important;
  color: #fff !important;
  opacity: 1;
  cursor: not-allowed;
}
.site-dr-submit-btn.is-ready.btn-primary {
  background: var(--lz-red);
  border-color: var(--lz-red);
  color: #fff;
}
html[data-site-theme="dark"] .site-dr-submit-btn.is-blocked,
html[data-site-theme="dark"] .site-dr-submit-btn.is-blocked:disabled {
  background: #475569 !important;
  border-color: #475569 !important;
  color: #e2e8f0 !important;
}
.site-dr-detail-head { margin-bottom: 12px; }
.site-gps-entry { margin-top: 16px; }
.portal-client-home { max-width: 720px; margin: 0 auto; padding: 24px 16px; }
.portal-vendor-home { max-width: 1120px; margin: 0 auto; padding: 20px 16px 40px; }
.portal-vendor-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.portal-vendor-tab {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.portal-vendor-tab.is-active {
  background: var(--lz-red, #b91c1c);
  border-color: var(--lz-red, #b91c1c);
  color: #fff;
}
.portal-vendor-pane.hidden { display: none; }
.portal-vendor-schedule-layout {
  display: grid;
  gap: 16px;
}
@media (min-width: 960px) {
  .portal-vendor-schedule-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
  }
  .portal-vendor-job-form-card {
    position: sticky;
    top: 12px;
  }
}
.portal-vendor-pane-head {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}
.portal-vendor-date-range {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  align-items: end;
}
.portal-vendor-jobs-card .table-wrap { max-height: min(60vh, 520px); overflow: auto; }
.portal-vendor-wo-pane { display: flex; flex-direction: column; gap: 14px; }
.portal-vendor-wo-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.portal-vendor-page-title {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.portal-vendor-wo-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}
.portal-vendor-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
}
.portal-vendor-field--grow { flex: 1 1 220px; min-width: min(100%, 220px); }
.portal-vendor-field-lbl {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}
.portal-vendor-input {
  appearance: none;
  width: 100%;
  box-sizing: border-box;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
}
.portal-vendor-input:focus {
  outline: none;
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.25);
}
.portal-vendor-wo-list .table-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: auto;
  background: #fff;
  max-height: min(70vh, 640px);
}
.portal-vendor-wo-list .data-table { margin: 0; }
.portal-vendor-wo-list .data-table thead th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  z-index: 1;
}
.portal-vendor-wo-empty {
  margin: 28px 0 8px;
  padding: 0;
  color: #64748b;
  font-size: 14px;
}
.portal-vendor-wo-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.portal-vendor-wo-pager .portal-client-topbar-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.portal-vendor-day-mode { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.portal-vendor-day-mode label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.pg-lifecycle-badge--vendor,
.pg-kanban-vendor {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #1e40af;
  background: #dbeafe;
}
.pg-vendor-assign-modal-list {
  max-height: min(50vh, 360px);
  overflow: auto;
  margin: 10px 0;
  border: 1px solid var(--lz-border, #e2e8f0);
  border-radius: 8px;
  padding: 8px;
}
.client-tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 16px; }
.client-tile { display: block; padding: 20px 16px; border-radius: 12px; background: #fff; border: 1px solid #e2e8f0; text-decoration: none; color: inherit; }
.client-tile:hover { border-color: #b91c1c; }
.client-tile--muted { opacity: 0.85; }
.client-tile-title { display: block; font-weight: 700; margin-bottom: 4px; }
.client-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 16px; }
.client-photo-card { border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; background: #fff; cursor: pointer; text-align: left; padding: 0; }
.client-photo-card img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #f1f5f9; }
.client-photo-card-meta { padding: 8px 10px; font-size: 12px; color: #475569; }
.client-photo-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(15, 23, 42, 0.75); display: flex; align-items: center; justify-content: center; padding: 16px; }
.client-photo-modal-inner { max-width: 900px; width: 100%; background: #fff; border-radius: 12px; overflow: hidden; }
.client-photo-modal img { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto; }
.client-photo-modal-actions { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid #e2e8f0; }
.client-photo-modal-actions { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid #e2e8f0; }

/* Maintenance photo gallery — admin review + client shares */
.mnt-photo-gallery { margin-top: 12px; }
.mnt-photo-gallery-filters { flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; margin-bottom: 8px; }
.mnt-photo-gallery-filter { display: inline-flex; flex-direction: column; gap: 4px; margin: 0; }
.mnt-photo-gallery-summary { margin: 8px 0 12px; }
.mnt-photo-gallery-section { margin-bottom: 20px; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; background: #fff; }
.mnt-photo-gallery-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 14px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.mnt-photo-gallery-section-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; padding: 12px; }
.mnt-photo-gallery-thumb { border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer; padding: 0; text-align: center; display: flex; flex-direction: column; align-items: stretch; }
.mnt-photo-gallery-thumb:hover { border-color: #b91c1c; }
.mnt-photo-gallery-thumb-frame { display: block; width: 100%; min-height: 120px; background-color: #f1f5f9; background-size: contain; background-position: center top; background-repeat: no-repeat; }
.mnt-photo-gallery-thumb-frame.is-missing { display: flex; align-items: center; justify-content: center; min-height: 120px; color: #94a3b8; font-size: 12px; background-image: none !important; }
.mnt-photo-gallery-thumb-frame.is-missing::after { content: '—'; }
.mnt-photo-gallery-thumb-seq { display: block; padding: 4px 6px; font-size: 11px; color: #475569; background: #f8fafc; border-top: 1px solid #e2e8f0; }
.mnt-photo-gallery-empty { padding: 16px; }
.mnt-photo-gallery-modal { position: fixed; inset: 0; z-index: 10050; background: rgba(15, 23, 42, 0.78); display: flex; align-items: center; justify-content: center; padding: 16px; }
.mnt-photo-gallery-modal.hidden { display: none; }
.mnt-photo-gallery-modal-inner { max-width: 960px; width: 100%; max-height: 92vh; overflow: auto; background: #fff; border-radius: 12px; }
.mnt-photo-gallery-modal-toolbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #e2e8f0; align-items: center; }
.mnt-photo-gallery-modal-pos { font-weight: 600; min-width: 3em; text-align: center; }
.mnt-photo-gallery-modal-inner img { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto; object-fit: contain; }
.mnt-photo-gallery-modal-inner .feed-meta { padding: 10px 14px 14px; margin: 0; }
.mnt-photo-gallery-section.is-reviewed,
.mnt-photo-gallery-section.is-staff-checked { border-color: #86efac; }
.mnt-photo-gallery-section.is-client-checked { border-color: #93c5fd; }
.mnt-photo-gallery-section-head { flex-wrap: wrap; align-items: center; }
.mnt-photo-gallery-section-title { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; }
.mnt-photo-gallery-section-actions { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-left: auto; }
.mnt-photo-review-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; margin: 0; }
.mnt-photo-review-check-meta { color: #166534; }
.mnt-photo-review-upload { padding: 0 12px 8px; }
.mnt-photo-gallery-thumb { position: relative; }
.mnt-photo-gallery-thumb-del { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border: 0; border-radius: 999px; background: rgba(15,23,42,.72); color: #fff; cursor: pointer; line-height: 1; }
.mnt-photo-gallery-empty-chamber { grid-column: 1 / -1; padding: 8px 0; }
.mnt-photo-gallery-batch-bar { margin: 0 0 10px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #f8fafc; }
.mnt-photo-gallery-batch-bar.hidden { display: none; }
.mnt-photo-gallery-batch-bar-inner { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; }
.mnt-photo-gallery-batch-count { font-size: 13px; font-weight: 600; color: #0f172a; }
.mnt-photo-gallery-batch-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mnt-photo-batch-select-chk-wrap { display: inline-flex; align-items: center; margin-right: 8px; }
.mnt-photo-batch-select-chk { width: 16px; height: 16px; margin: 0; cursor: pointer; }
.mnt-photo-gallery--review .mnt-photo-gallery-section-card-head { display: flex; align-items: center; gap: 8px; }
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-batch-selected { border-color: #2563eb; box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.18); }
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-batch-selected .mnt-photo-gallery-section-card { border-color: #bfdbfe; }
.mnt-photo-gallery--review .mnt-photo-gallery-section-row {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  grid-template-rows: 1fr;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  min-height: 280px;
  overflow: hidden;
  padding: 8px;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-left {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: stretch;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-staff-checked {
  background: #f0fdf4;
  border-color: #86efac;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-staff-checked .mnt-photo-gallery-section-card {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-staff-checked.is-alt {
  background: #ecfdf5;
  border-color: #86efac;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-staff-checked.is-alt .mnt-photo-gallery-section-card {
  background: #ecfdf5;
  border-color: #86efac;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-client-checked {
  background: #eff6ff;
  border-color: #93c5fd;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-client-checked .mnt-photo-gallery-section-card {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-client-checked.is-alt {
  background: #dbeafe;
  border-color: #93c5fd;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-client-checked.is-alt .mnt-photo-gallery-section-card {
  background: #dbeafe;
  border-color: #93c5fd;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-reviewed .mnt-photo-gallery-section-card:not(.mnt-photo-gallery-section-photos),
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-staff-checked .mnt-photo-gallery-section-card:not(.mnt-photo-gallery-section-photos) {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-alt .mnt-photo-gallery-section-card:not(.mnt-photo-gallery-section-photos) {
  background: #eef2f7;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-reviewed.is-alt .mnt-photo-gallery-section-card:not(.mnt-photo-gallery-section-photos),
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-staff-checked.is-alt .mnt-photo-gallery-section-card:not(.mnt-photo-gallery-section-photos) {
  background: #ecfdf5;
  border-color: #86efac;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-info {
  flex: 0 0 auto;
  align-self: stretch;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-actions-card {
  flex: 0 0 auto;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  align-content: stretch;
  gap: 8px;
}
.mnt-photo-gallery-section-card-head { min-width: 0; }
.mnt-photo-gallery-section-chamber {
  display: block;
  font-size: 14px;
  line-height: 1.25;
  color: #0f172a;
  font-weight: 700;
}
.mnt-photo-gallery-detail-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mnt-photo-gallery-detail-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  margin: 0;
  font-size: 11px;
  line-height: 1.3;
}
.mnt-photo-gallery-detail-row dt {
  margin: 0;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #475569;
}
.mnt-photo-gallery-detail-row dt::after {
  content: ' — ';
  font-weight: 400;
  color: #94a3b8;
}
.mnt-photo-gallery-detail-row dd {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 11px;
  line-height: 1.3;
  color: #0f172a;
}
.mnt-photo-gallery-detail-hint {
  display: inline;
  margin: 0;
  font-size: 11px;
  color: #64748b;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-actions-card .mnt-photo-gallery-section-actions {
  margin-left: 0;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
}
.mnt-photo-gallery-client-remarks {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  flex: 1 1 180px;
  min-width: 0;
}
.mnt-photo-gallery-client-remarks-label {
  display: inline;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-right: 6px;
}
.mnt-photo-gallery-client-remarks-summary {
  display: inline;
  margin: 0;
  font-size: 11px;
  color: #334155;
}
.mnt-photo-gallery-client-remarks-text {
  display: inline;
  margin: 0 0 0 6px;
  padding: 0;
  border: 0;
  font-size: 11px;
  line-height: 1.4;
  color: #475569;
  font-style: normal;
}
.mnt-photo-gallery-client-action {
  flex: 1 1 100%;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
}
.mnt-photo-gallery-client-action-label {
  flex: 0 0 100%;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.mnt-photo-gallery-client-action-row {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-size: 11px;
  line-height: 1.35;
  flex: 1 1 auto;
  min-width: 120px;
}
.mnt-photo-gallery-client-action-key {
  font-weight: 600;
  color: #475569;
  flex: 0 0 auto;
}
.mnt-photo-gallery-client-action-key::after {
  content: ' — ';
  font-weight: 400;
  color: #94a3b8;
}
.mnt-photo-gallery-client-action-val {
  color: #0f172a;
  min-width: 0;
  word-break: break-word;
}
.mnt-photo-gallery-client-action-val--muted {
  color: #94a3b8;
}
.mnt-photo-gallery-client-action-meta {
  flex: 0 0 100%;
  font-size: 10px;
  color: #64748b;
}
.mnt-photo-gallery-client-action.is-excluded {
  border-color: #fecaca;
  background: #fef2f2;
}
.mnt-photo-gallery-client-action.is-excluded .mnt-photo-gallery-client-action-val {
  color: #b91c1c;
}
.mnt-photo-gallery-client-action.is-edited {
  border-color: #fed7aa;
  background: #fffbeb;
}
.mnt-photo-gallery-client-action.is-edited .mnt-photo-gallery-client-action-val {
  color: #b45309;
}
.mnt-photo-gallery-client-action.is-recorded {
  border-color: #bbf7d0;
  background: #f8fdf9;
}
.mnt-photo-gallery-client-action.is-pending {
  border-style: dashed;
  background: #f8fafc;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-actions-card .mnt-photo-client-feedback {
  margin: 0;
  padding: 6px 8px;
  gap: 6px 10px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  flex: 1 1 100%;
  min-width: 0;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-actions-card .mnt-photo-client-feedback-head {
  flex: 0 0 auto;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-actions-card .mnt-photo-client-feedback-head strong {
  font-size: 11px;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-actions-card .mnt-photo-client-feedback-field {
  flex: 1 1 160px;
  min-width: 140px;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-actions-card .mnt-photo-client-feedback-field textarea {
  min-height: 36px;
  font-size: 12px;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-actions-card .mnt-photo-client-claim-options,
.mnt-photo-gallery--review .mnt-photo-gallery-section-actions-card .mnt-photo-client-surface-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-actions-card .mnt-photo-client-claim-option {
  font-size: 11px;
  white-space: nowrap;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-actions-card .mnt-photo-review-upload {
  padding: 0;
  margin-top: 0;
  flex: 0 0 auto;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-photos {
  grid-column: 2;
  grid-row: 1;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: auto;
  max-width: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 #e2e8f0;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-photos::-webkit-scrollbar {
  height: 8px;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-photos::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 4px;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-photos::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-photos::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-grid--strip {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 0;
  width: max-content;
  max-width: none;
  min-height: 100%;
  height: 100%;
  flex: 1 1 auto;
  align-items: stretch;
  vertical-align: top;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-grid--strip .mnt-photo-gallery-thumb {
  flex: 0 0 200px;
  width: 200px;
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-grid--strip .mnt-photo-gallery-thumb-frame {
  flex: 1 1 auto;
  min-height: 180px;
  height: auto;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-grid--strip .mnt-photo-gallery-thumb-seq {
  font-size: 10px;
  padding: 3px 4px;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-grid--strip .mnt-photo-gallery-empty-chamber {
  flex: 1 1 auto;
  padding: 4px 0;
  grid-column: auto;
}
@media (max-width: 760px) {
  .mnt-photo-gallery--review .mnt-photo-gallery-section-row {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: 0;
  }
  .mnt-photo-gallery--review .mnt-photo-gallery-section-left {
    grid-column: 1;
    grid-row: 1;
    max-width: none;
  }
  .mnt-photo-gallery--review .mnt-photo-gallery-section-photos {
    grid-column: 1;
    grid-row: 2;
    padding: 10px;
    max-width: 100%;
    min-height: 200px;
  }
  .mnt-photo-gallery--review .mnt-photo-gallery-section-grid--strip .mnt-photo-gallery-thumb {
    flex: 0 0 160px;
    width: 160px;
    min-height: 180px;
  }
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  padding: 14px;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-alt {
  background: #f1f5f9;
  border-color: #dbeafe;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-alt .mnt-photo-gallery-section-head {
  background: #e8eef4;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-staff-checked.is-alt {
  background: #ecfdf5;
  border-color: #86efac;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-staff-checked.is-alt .mnt-photo-gallery-section-head {
  background: #dcfce7;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-client-checked.is-alt {
  background: #dbeafe;
  border-color: #93c5fd;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-client-checked.is-alt .mnt-photo-gallery-section-head {
  background: #bfdbfe;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-reviewed.is-alt {
  background: #ecfdf5;
  border-color: #86efac;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-reviewed.is-alt .mnt-photo-gallery-section-head {
  background: #dcfce7;
}
.mnt-photo-gallery--review .mnt-photo-gallery-thumb-frame { min-height: 140px; }
.mnt-photo-gallery--review .mnt-photo-gallery-thumb-seq { font-size: 12px; padding: 6px 8px; }
.mnt-photo-review-edit-modal { position: fixed; inset: 0; z-index: 10060; background: rgba(15,23,42,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.mnt-photo-review-edit-modal.hidden { display: none; }
.mnt-photo-review-edit-inner { width: min(480px, 100%); max-height: 90vh; overflow: auto; }
.mnt-photo-review-edit-form { display: grid; gap: 10px; }
.mnt-photo-review-edit-form label { display: grid; gap: 4px; }

/* Photo review — plan picker + gallery filters */
.mnt-photo-review-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.4fr) auto;
  gap: 14px 18px;
  align-items: start;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}
.mnt-photo-review-toolbar-block { min-width: 0; }
.mnt-photo-review-toolbar-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 8px;
}
.mnt-photo-review-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}
.mnt-photo-review-field {
  display: grid;
  gap: 4px;
  margin: 0;
  min-width: 0;
}
.mnt-photo-review-field-caption { font-size: 11px; color: #64748b; }
.mnt-photo-review-field--scope { flex: 1 1 200px; }
.mnt-photo-review-field--week { flex: 0 0 auto; min-width: 0; }
.mnt-photo-review-week-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.mnt-photo-review-week-chip {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  padding: 6px 11px;
  cursor: pointer;
  min-height: 34px;
  box-sizing: border-box;
}
.mnt-photo-review-week-chip:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}
.mnt-photo-review-week-chip.is-active {
  border-color: #e11d48;
  background: #fff1f2;
  color: #be123c;
}
.mnt-photo-review-toggle-btn {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
  margin: 0;
}
.mnt-photo-review-toggle-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}
.mnt-photo-review-toggle-btn.is-active {
  border-color: #e11d48;
  background: #fff1f2;
  color: #be123c;
}
.mnt-photo-review-check-toggle {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  padding: 5px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.mnt-photo-review-check-toggle:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}
.mnt-photo-review-check-toggle.is-active {
  border-color: #166534;
  background: #f0fdf4;
  color: #166534;
}
.mnt-photo-review-field--search { flex: 1 1 160px; }
.mnt-photo-review-field--plan { flex: 1.4 1 240px; }
.mnt-photo-review-plan-select { width: 100%; min-width: 0; }
.mnt-photo-review-plan-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.mnt-photo-review-plan-meta { margin: 0; }
.mnt-photo-review-actions { gap: 8px; }
.mnt-photo-review-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mnt-photo-review-compare-card {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #fecdd3;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  gap: 4px;
}
.mnt-photo-review-compare-card.mnt-photo-review-stat-card--match {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.mnt-photo-review-compare-card.mnt-photo-review-stat-card--warn {
  border-color: #fde68a;
  background: #fffbeb;
}
.mnt-photo-review-compare-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #881337;
  margin-bottom: 2px;
}
.mnt-photo-review-compare-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  color: #9f1239;
}
.mnt-photo-review-compare-row strong {
  font-size: 13px;
  font-weight: 700;
  color: #881337;
}
.mnt-photo-review-compare-row.is-highlight {
  margin-top: 2px;
  padding-top: 4px;
  border-top: 1px solid rgba(190, 18, 60, 0.15);
}
.mnt-photo-review-compare-row.is-highlight strong {
  font-size: 14px;
}
.mnt-photo-review-sidebar-totals--compact { margin-top: 0; }
.mnt-photo-review-client-summary--compact { gap: 8px; }
.mnt-photo-gallery-filters {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}
.mnt-photo-gallery-filters-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}
.mnt-photo-gallery-filters-title {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}
.mnt-photo-gallery-filters-badge {
  font-size: 11px;
  font-weight: 600;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 999px;
  padding: 2px 8px;
}
.mnt-photo-gallery-filters-head .mnt-photo-gallery-clear-filters { margin-left: auto; }
.mnt-photo-gallery-filters-primary,
.mnt-photo-gallery-filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px 12px;
  align-items: end;
}
.mnt-photo-gallery-filter--storage { grid-column: 1 / -1; }
.mnt-photo-gallery-filter--storage select { width: 100%; }
.mnt-photo-gallery-filters-advanced > summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}
.mnt-photo-gallery-filters-advanced[open] > summary { margin-bottom: 8px; }
@media (max-width: 960px) {
  .mnt-photo-review-toolbar { grid-template-columns: 1fr; }
  .mnt-photo-review-layout {
    flex-direction: column;
    min-height: 0;
  }
  .mnt-photo-review-main {
    width: 100%;
    padding: 12px;
    order: 1;
  }
  .mnt-photo-review-sidebar {
    position: static;
    order: 2;
    width: 100%;
    max-width: none;
    flex: 0 0 auto;
    max-height: none;
    border-left: 0;
    border-top: 1px solid #fecaca;
  }
  .mnt-photo-review-sidebar.is-collapsed {
    width: 100%;
    max-width: none;
    flex-basis: auto;
  }
  .mnt-photo-review-sidebar-toggle {
    left: auto;
    right: 12px;
    top: 10px;
    transform: none;
  }
  .mnt-photo-review-sidebar.is-collapsed .mnt-photo-review-sidebar-toggle {
    left: auto;
    right: 12px;
    transform: none;
  }
  .mnt-photo-review-sidebar-rail {
    flex-direction: row;
    justify-content: center;
    padding: 12px 14px;
    gap: 10px;
    min-height: 0;
  }
  .mnt-photo-review-sidebar-rail-label {
    writing-mode: horizontal-tb;
    transform: none;
  }
  .mnt-photo-review-sidebar-badge {
    transform: none;
  }
  .mnt-photo-review-sidebar.is-collapsed .mnt-photo-review-sidebar-inner {
    display: none;
  }
}
.mnt-photo-review-summary-host { margin: 0; }
.mnt-photo-review-summary {
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.mnt-photo-review-summary-head {
  padding: 12px 14px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}
.mnt-photo-review-summary-head p { margin: 4px 0 0; }
.mnt-photo-review-summary-table-wrap { margin: 0; }
.mnt-photo-review-summary-table { margin: 0; }
.mnt-photo-review-summary-table .num { white-space: nowrap; }
.mnt-photo-review-summary-sub {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: #64748b;
}
.mnt-photo-review-summary-total-row td { background: #f8fafc; }
.mnt-photo-review-summary-table .is-match { color: #166534; font-weight: 600; }
.mnt-photo-review-summary-table .is-mismatch { color: #b45309; font-weight: 700; }
.mnt-photo-review-summary-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 10px 14px;
  border-top: 1px solid #e2e8f0;
  background: #fafafa;
}
.mnt-photo-review-summary-alert { margin: 0; padding: 8px 14px 12px; color: #b45309; }
.mnt-photo-review-summary-ok { margin: 0; padding: 8px 14px 12px; color: #166534; }
.portal-client-photo-toolbar { margin-bottom: 12px; align-items: end; }
#clientPhotoGalleryHost { margin-top: 16px; }

.client-photo-modal-actions { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid #e2e8f0; }

/* Maintenance photo gallery — admin review + client shares */
.mnt-photo-gallery { margin-top: 12px; }
.mnt-photo-gallery-filters { flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; margin-bottom: 8px; }
.mnt-photo-gallery-filter { display: inline-flex; flex-direction: column; gap: 4px; margin: 0; }
.mnt-photo-gallery-summary { margin: 8px 0 12px; }
.mnt-photo-gallery-section { margin-bottom: 20px; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; background: #fff; }
.mnt-photo-gallery-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 14px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.mnt-photo-gallery-section-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; padding: 12px; }
.mnt-photo-gallery-thumb { border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer; padding: 0; text-align: center; display: flex; flex-direction: column; align-items: stretch; }
.mnt-photo-gallery-thumb:hover { border-color: #b91c1c; }
.mnt-photo-gallery-thumb-frame { display: block; width: 100%; min-height: 120px; background-color: #f1f5f9; background-size: contain; background-position: center top; background-repeat: no-repeat; }
.mnt-photo-gallery-thumb-frame.is-missing { display: flex; align-items: center; justify-content: center; min-height: 120px; color: #94a3b8; font-size: 12px; background-image: none !important; }
.mnt-photo-gallery-thumb-frame.is-missing::after { content: '—'; }
.mnt-photo-gallery-thumb-seq { display: block; padding: 4px 6px; font-size: 11px; color: #475569; background: #f8fafc; border-top: 1px solid #e2e8f0; }
.mnt-photo-gallery-empty { padding: 16px; }
.mnt-photo-gallery-modal { position: fixed; inset: 0; z-index: 10050; background: rgba(15, 23, 42, 0.78); display: flex; align-items: center; justify-content: center; padding: 16px; }
.mnt-photo-gallery-modal.hidden { display: none; }
.mnt-photo-gallery-modal-inner { max-width: 960px; width: 100%; max-height: 92vh; overflow: auto; background: #fff; border-radius: 12px; }
.mnt-photo-gallery-modal-toolbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #e2e8f0; align-items: center; }
.mnt-photo-gallery-modal-pos { font-weight: 600; min-width: 3em; text-align: center; }
.mnt-photo-gallery-modal-inner img { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto; object-fit: contain; }
.mnt-photo-gallery-modal-inner .feed-meta { padding: 10px 14px 14px; margin: 0; }
.mnt-photo-gallery-section.is-reviewed,
.mnt-photo-gallery-section.is-staff-checked { border-color: #86efac; }
.mnt-photo-gallery-section.is-client-checked { border-color: #93c5fd; }
.mnt-photo-gallery-section-head { flex-wrap: wrap; align-items: center; }
.mnt-photo-gallery-section-title { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; }
.mnt-photo-gallery-section-actions { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-left: auto; }
.mnt-photo-review-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; margin: 0; }
.mnt-photo-review-check-meta { color: #166534; }
.mnt-photo-review-upload { padding: 0 12px 8px; }
.mnt-photo-gallery-thumb { position: relative; }
.mnt-photo-gallery-thumb-del { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border: 0; border-radius: 999px; background: rgba(15,23,42,.72); color: #fff; cursor: pointer; line-height: 1; }
.mnt-photo-gallery-empty-chamber { grid-column: 1 / -1; padding: 8px 0; }
.mnt-photo-gallery-batch-bar { margin: 0 0 10px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #f8fafc; }
.mnt-photo-gallery-batch-bar.hidden { display: none; }
.mnt-photo-gallery-batch-bar-inner { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; }
.mnt-photo-gallery-batch-count { font-size: 13px; font-weight: 600; color: #0f172a; }
.mnt-photo-gallery-batch-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mnt-photo-batch-select-chk-wrap { display: inline-flex; align-items: center; margin-right: 8px; }
.mnt-photo-batch-select-chk { width: 16px; height: 16px; margin: 0; cursor: pointer; }
.mnt-photo-gallery--review .mnt-photo-gallery-section-card-head { display: flex; align-items: center; gap: 8px; }
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-batch-selected { border-color: #2563eb; box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.18); }
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-batch-selected .mnt-photo-gallery-section-card { border-color: #bfdbfe; }
.mnt-photo-gallery--review .mnt-photo-gallery-section-row {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  grid-template-rows: 1fr;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  min-height: 280px;
  overflow: hidden;
  padding: 8px;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-left {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: stretch;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-staff-checked {
  background: #f0fdf4;
  border-color: #86efac;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-staff-checked .mnt-photo-gallery-section-card {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-staff-checked.is-alt {
  background: #ecfdf5;
  border-color: #86efac;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-staff-checked.is-alt .mnt-photo-gallery-section-card {
  background: #ecfdf5;
  border-color: #86efac;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-client-checked {
  background: #eff6ff;
  border-color: #93c5fd;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-client-checked .mnt-photo-gallery-section-card {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-client-checked.is-alt {
  background: #dbeafe;
  border-color: #93c5fd;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-client-checked.is-alt .mnt-photo-gallery-section-card {
  background: #dbeafe;
  border-color: #93c5fd;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-reviewed .mnt-photo-gallery-section-card:not(.mnt-photo-gallery-section-photos),
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-staff-checked .mnt-photo-gallery-section-card:not(.mnt-photo-gallery-section-photos) {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-alt .mnt-photo-gallery-section-card:not(.mnt-photo-gallery-section-photos) {
  background: #eef2f7;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-reviewed.is-alt .mnt-photo-gallery-section-card:not(.mnt-photo-gallery-section-photos),
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-staff-checked.is-alt .mnt-photo-gallery-section-card:not(.mnt-photo-gallery-section-photos) {
  background: #ecfdf5;
  border-color: #86efac;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-info {
  flex: 0 0 auto;
  align-self: stretch;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-actions-card {
  flex: 0 0 auto;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  align-content: stretch;
  gap: 8px;
}
.mnt-photo-gallery-section-card-head { min-width: 0; }
.mnt-photo-gallery-section-chamber {
  display: block;
  font-size: 14px;
  line-height: 1.25;
  color: #0f172a;
  font-weight: 700;
}
.mnt-photo-gallery-detail-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mnt-photo-gallery-detail-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  margin: 0;
  font-size: 11px;
  line-height: 1.3;
}
.mnt-photo-gallery-detail-row dt {
  margin: 0;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #475569;
}
.mnt-photo-gallery-detail-row dt::after {
  content: ' — ';
  font-weight: 400;
  color: #94a3b8;
}
.mnt-photo-gallery-detail-row dd {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 11px;
  line-height: 1.3;
  color: #0f172a;
}
.mnt-photo-gallery-detail-hint {
  display: inline;
  margin: 0;
  font-size: 11px;
  color: #64748b;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-actions-card .mnt-photo-gallery-section-actions {
  margin-left: 0;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
}
.mnt-photo-gallery-client-remarks {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  flex: 1 1 180px;
  min-width: 0;
}
.mnt-photo-gallery-client-remarks-label {
  display: inline;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-right: 6px;
}
.mnt-photo-gallery-client-remarks-summary {
  display: inline;
  margin: 0;
  font-size: 11px;
  color: #334155;
}
.mnt-photo-gallery-client-remarks-text {
  display: inline;
  margin: 0 0 0 6px;
  padding: 0;
  border: 0;
  font-size: 11px;
  line-height: 1.4;
  color: #475569;
  font-style: normal;
}
.mnt-photo-gallery-client-action {
  flex: 1 1 100%;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
}
.mnt-photo-gallery-client-action-label {
  flex: 0 0 100%;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.mnt-photo-gallery-client-action-row {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-size: 11px;
  line-height: 1.35;
  flex: 1 1 auto;
  min-width: 120px;
}
.mnt-photo-gallery-client-action-key {
  font-weight: 600;
  color: #475569;
  flex: 0 0 auto;
}
.mnt-photo-gallery-client-action-key::after {
  content: ' — ';
  font-weight: 400;
  color: #94a3b8;
}
.mnt-photo-gallery-client-action-val {
  color: #0f172a;
  min-width: 0;
  word-break: break-word;
}
.mnt-photo-gallery-client-action-val--muted {
  color: #94a3b8;
}
.mnt-photo-gallery-client-action-meta {
  flex: 0 0 100%;
  font-size: 10px;
  color: #64748b;
}
.mnt-photo-gallery-client-action.is-excluded {
  border-color: #fecaca;
  background: #fef2f2;
}
.mnt-photo-gallery-client-action.is-excluded .mnt-photo-gallery-client-action-val {
  color: #b91c1c;
}
.mnt-photo-gallery-client-action.is-edited {
  border-color: #fed7aa;
  background: #fffbeb;
}
.mnt-photo-gallery-client-action.is-edited .mnt-photo-gallery-client-action-val {
  color: #b45309;
}
.mnt-photo-gallery-client-action.is-recorded {
  border-color: #bbf7d0;
  background: #f8fdf9;
}
.mnt-photo-gallery-client-action.is-pending {
  border-style: dashed;
  background: #f8fafc;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-actions-card .mnt-photo-client-feedback {
  margin: 0;
  padding: 6px 8px;
  gap: 6px 10px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  flex: 1 1 100%;
  min-width: 0;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-actions-card .mnt-photo-client-feedback-head {
  flex: 0 0 auto;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-actions-card .mnt-photo-client-feedback-head strong {
  font-size: 11px;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-actions-card .mnt-photo-client-feedback-field {
  flex: 1 1 160px;
  min-width: 140px;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-actions-card .mnt-photo-client-feedback-field textarea {
  min-height: 36px;
  font-size: 12px;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-actions-card .mnt-photo-client-claim-options,
.mnt-photo-gallery--review .mnt-photo-gallery-section-actions-card .mnt-photo-client-surface-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-actions-card .mnt-photo-client-claim-option {
  font-size: 11px;
  white-space: nowrap;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-actions-card .mnt-photo-review-upload {
  padding: 0;
  margin-top: 0;
  flex: 0 0 auto;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-photos {
  grid-column: 2;
  grid-row: 1;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: auto;
  max-width: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 #e2e8f0;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-photos::-webkit-scrollbar {
  height: 8px;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-photos::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 4px;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-photos::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-photos::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-grid--strip {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 0;
  width: max-content;
  max-width: none;
  min-height: 100%;
  height: 100%;
  flex: 1 1 auto;
  align-items: stretch;
  vertical-align: top;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-grid--strip .mnt-photo-gallery-thumb {
  flex: 0 0 200px;
  width: 200px;
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-grid--strip .mnt-photo-gallery-thumb-frame {
  flex: 1 1 auto;
  min-height: 180px;
  height: auto;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-grid--strip .mnt-photo-gallery-thumb-seq {
  font-size: 10px;
  padding: 3px 4px;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-grid--strip .mnt-photo-gallery-empty-chamber {
  flex: 1 1 auto;
  padding: 4px 0;
  grid-column: auto;
}
@media (max-width: 760px) {
  .mnt-photo-gallery--review .mnt-photo-gallery-section-row {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: 0;
  }
  .mnt-photo-gallery--review .mnt-photo-gallery-section-left {
    grid-column: 1;
    grid-row: 1;
    max-width: none;
  }
  .mnt-photo-gallery--review .mnt-photo-gallery-section-photos {
    grid-column: 1;
    grid-row: 2;
    padding: 10px;
    max-width: 100%;
    min-height: 200px;
  }
  .mnt-photo-gallery--review .mnt-photo-gallery-section-grid--strip .mnt-photo-gallery-thumb {
    flex: 0 0 160px;
    width: 160px;
    min-height: 180px;
  }
}
.mnt-photo-gallery--review .mnt-photo-gallery-section-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  padding: 14px;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-alt {
  background: #f1f5f9;
  border-color: #dbeafe;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-alt .mnt-photo-gallery-section-head {
  background: #e8eef4;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-staff-checked.is-alt {
  background: #ecfdf5;
  border-color: #86efac;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-staff-checked.is-alt .mnt-photo-gallery-section-head {
  background: #dcfce7;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-client-checked.is-alt {
  background: #dbeafe;
  border-color: #93c5fd;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-client-checked.is-alt .mnt-photo-gallery-section-head {
  background: #bfdbfe;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-reviewed.is-alt {
  background: #ecfdf5;
  border-color: #86efac;
}
.mnt-photo-gallery--review .mnt-photo-gallery-section.is-reviewed.is-alt .mnt-photo-gallery-section-head {
  background: #dcfce7;
}
.mnt-photo-gallery--review .mnt-photo-gallery-thumb-frame { min-height: 140px; }
.mnt-photo-gallery--review .mnt-photo-gallery-thumb-seq { font-size: 12px; padding: 6px 8px; }
.mnt-photo-review-edit-modal { position: fixed; inset: 0; z-index: 10060; background: rgba(15,23,42,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.mnt-photo-review-edit-modal.hidden { display: none; }
.mnt-photo-review-edit-inner { width: min(480px, 100%); max-height: 90vh; overflow: auto; }
.mnt-photo-review-edit-form { display: grid; gap: 10px; }
.mnt-photo-review-edit-form label { display: grid; gap: 4px; }

/* Photo review — plan picker + gallery filters */
.mnt-photo-review-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.4fr) auto;
  gap: 14px 18px;
  align-items: start;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}
.mnt-photo-review-toolbar-block { min-width: 0; }
.mnt-photo-review-toolbar-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 8px;
}
.mnt-photo-review-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}
.mnt-photo-review-field {
  display: grid;
  gap: 4px;
  margin: 0;
  min-width: 0;
}
.mnt-photo-review-field-caption { font-size: 11px; color: #64748b; }
.mnt-photo-review-field--scope { flex: 1 1 200px; }
.mnt-photo-review-field--week { flex: 0 0 auto; min-width: 0; }
.mnt-photo-review-week-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.mnt-photo-review-week-chip {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  padding: 6px 11px;
  cursor: pointer;
  min-height: 34px;
  box-sizing: border-box;
}
.mnt-photo-review-week-chip:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}
.mnt-photo-review-week-chip.is-active {
  border-color: #e11d48;
  background: #fff1f2;
  color: #be123c;
}
.mnt-photo-review-toggle-btn {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
  margin: 0;
}
.mnt-photo-review-toggle-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}
.mnt-photo-review-toggle-btn.is-active {
  border-color: #e11d48;
  background: #fff1f2;
  color: #be123c;
}
.mnt-photo-review-check-toggle {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  padding: 5px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.mnt-photo-review-check-toggle:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}
.mnt-photo-review-check-toggle.is-active {
  border-color: #166534;
  background: #f0fdf4;
  color: #166534;
}
.mnt-photo-review-field--search { flex: 1 1 160px; }
.mnt-photo-review-field--plan { flex: 1.4 1 240px; }
.mnt-photo-review-plan-select { width: 100%; min-width: 0; }
.mnt-photo-review-plan-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.mnt-photo-review-plan-meta { margin: 0; }
.mnt-photo-review-actions { gap: 8px; }
.mnt-photo-review-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mnt-photo-review-compare-card {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #fecdd3;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  gap: 4px;
}
.mnt-photo-review-compare-card.mnt-photo-review-stat-card--match {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.mnt-photo-review-compare-card.mnt-photo-review-stat-card--warn {
  border-color: #fde68a;
  background: #fffbeb;
}
.mnt-photo-review-compare-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #881337;
  margin-bottom: 2px;
}
.mnt-photo-review-compare-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  color: #9f1239;
}
.mnt-photo-review-compare-row strong {
  font-size: 13px;
  font-weight: 700;
  color: #881337;
}
.mnt-photo-review-compare-row.is-highlight {
  margin-top: 2px;
  padding-top: 4px;
  border-top: 1px solid rgba(190, 18, 60, 0.15);
}
.mnt-photo-review-compare-row.is-highlight strong {
  font-size: 14px;
}
.mnt-photo-review-sidebar-totals--compact { margin-top: 0; }
.mnt-photo-review-client-summary--compact { gap: 8px; }
.mnt-photo-gallery-filters {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}
.mnt-photo-gallery-filters-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}
.mnt-photo-gallery-filters-title {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}
.mnt-photo-gallery-filters-badge {
  font-size: 11px;
  font-weight: 600;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 999px;
  padding: 2px 8px;
}
.mnt-photo-gallery-filters-head .mnt-photo-gallery-clear-filters { margin-left: auto; }
.mnt-photo-gallery-filters-primary,
.mnt-photo-gallery-filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px 12px;
  align-items: end;
}
.mnt-photo-gallery-filter--storage { grid-column: 1 / -1; }
.mnt-photo-gallery-filter--storage select { width: 100%; }
.mnt-photo-gallery-filters-advanced > summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}
.mnt-photo-gallery-filters-advanced[open] > summary { margin-bottom: 8px; }
@media (max-width: 960px) {
  .mnt-photo-review-toolbar { grid-template-columns: 1fr; }
  .mnt-photo-review-layout {
    flex-direction: column;
    min-height: 0;
  }
  .mnt-photo-review-main {
    width: 100%;
    padding: 12px;
    order: 1;
  }
  .mnt-photo-review-sidebar {
    position: static;
    order: 2;
    width: 100%;
    max-width: none;
    flex: 0 0 auto;
    max-height: none;
    border-left: 0;
    border-top: 1px solid #fecaca;
  }
  .mnt-photo-review-sidebar.is-collapsed {
    width: 100%;
    max-width: none;
    flex-basis: auto;
  }
  .mnt-photo-review-sidebar-toggle {
    left: auto;
    right: 12px;
    top: 10px;
    transform: none;
  }
  .mnt-photo-review-sidebar.is-collapsed .mnt-photo-review-sidebar-toggle {
    left: auto;
    right: 12px;
    transform: none;
  }
  .mnt-photo-review-sidebar-rail {
    flex-direction: row;
    justify-content: center;
    padding: 12px 14px;
    gap: 10px;
    min-height: 0;
  }
  .mnt-photo-review-sidebar-rail-label {
    writing-mode: horizontal-tb;
    transform: none;
  }
  .mnt-photo-review-sidebar-badge {
    transform: none;
  }
  .mnt-photo-review-sidebar.is-collapsed .mnt-photo-review-sidebar-inner {
    display: none;
  }
}
.mnt-photo-review-summary-host { margin: 0; }
.mnt-photo-review-summary {
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.mnt-photo-review-summary-head {
  padding: 12px 14px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}
.mnt-photo-review-summary-head p { margin: 4px 0 0; }
.mnt-photo-review-summary-table-wrap { margin: 0; }
.mnt-photo-review-summary-table { margin: 0; }
.mnt-photo-review-summary-table .num { white-space: nowrap; }
.mnt-photo-review-summary-sub {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: #64748b;
}
.mnt-photo-review-summary-total-row td { background: #f8fafc; }
.mnt-photo-review-summary-table .is-match { color: #166534; font-weight: 600; }
.mnt-photo-review-summary-table .is-mismatch { color: #b45309; font-weight: 700; }
.mnt-photo-review-summary-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 10px 14px;
  border-top: 1px solid #e2e8f0;
  background: #fafafa;
}
.mnt-photo-review-summary-alert { margin: 0; padding: 8px 14px 12px; color: #b45309; }
.mnt-photo-review-summary-ok { margin: 0; padding: 8px 14px 12px; color: #166534; }
.portal-client-photo-toolbar { margin-bottom: 12px; align-items: end; }
#clientPhotoGalleryHost { margin-top: 16px; }

/* Photo review — collapsible right sidebar */
.mnt-photo-review-layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  min-height: 360px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  overflow: visible;
  position: relative;
}
.mnt-photo-review-main {
  flex: 1 1 auto;
  min-width: 0;
  order: 1;
  padding: 14px 16px;
  background: #fff;
}
.mnt-photo-review-sidebar {
  order: 2;
  position: sticky;
  top: 0;
  align-self: flex-start;
  flex: 0 0 320px;
  width: 320px;
  max-width: 320px;
  height: auto;
  max-height: none;
  min-height: calc(100dvh - 8px);
  display: flex;
  flex-direction: column;
  border-left: 1px solid #fecaca;
  background: linear-gradient(180deg, #fff1f2 0%, #fff 24%, #fafafa 100%);
  transition: width 0.22s ease, max-width 0.22s ease, flex-basis 0.22s ease;
  z-index: 25;
  box-sizing: border-box;
  box-shadow: -6px 0 28px rgba(15, 23, 42, 0.08);
  overflow: visible;
}
.mnt-photo-review-sidebar.is-collapsed {
  flex: 0 0 52px;
  width: 52px;
  max-width: 52px;
  height: auto;
  min-height: calc(100dvh - 8px);
  max-height: none;
  cursor: pointer;
  box-shadow: -4px 0 18px rgba(15, 23, 42, 0.06);
}
.mnt-photo-review-sidebar-toggle {
  position: absolute;
  left: 0;
  top: 18px;
  transform: translateX(-50%);
  z-index: 4;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #fecaca;
  background: #fff;
  color: #b91c1c;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.12);
}
.mnt-photo-review-sidebar.is-collapsed .mnt-photo-review-sidebar-toggle {
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
}
.mnt-photo-review-sidebar-toggle:hover {
  border-color: #f87171;
  background: #fff5f5;
}
.mnt-photo-review-sidebar-toggle-icon {
  font-size: 16px;
  line-height: 1;
  transition: transform 0.22s ease;
}
.mnt-photo-review-sidebar.is-collapsed .mnt-photo-review-sidebar-toggle-icon {
  transform: rotate(180deg);
}
.mnt-photo-review-sidebar-inner {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  overflow: visible;
  opacity: 1;
  transition: opacity 0.18s ease;
}
.mnt-photo-review-sidebar.is-collapsed .mnt-photo-review-sidebar-inner {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  width: 0;
  flex: 0 0 0;
}
.mnt-photo-review-sidebar-rail {
  display: none;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 52px 6px 16px;
  min-height: 200px;
}
.mnt-photo-review-sidebar.is-collapsed .mnt-photo-review-sidebar-rail {
  display: flex;
}
.mnt-photo-review-sidebar-rail-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b91c1c;
}
.mnt-photo-review-sidebar-badge {
  writing-mode: horizontal-tb;
  transform: none;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: #b91c1c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(185, 28, 28, 0.25);
}
.mnt-photo-review-sidebar-badge.is-complete { background: #166534; }
.mnt-photo-review-sidebar-badge.hidden { display: none; }
.mnt-photo-review-sidebar-head {
  flex: 0 0 auto;
  padding: 14px 14px 12px 18px;
  border-bottom: 1px solid #fecaca;
  background: linear-gradient(180deg, #ffe4e6 0%, #fff1f2 100%);
}
.mnt-photo-review-sidebar-head-text {
  display: grid;
  gap: 3px;
}
.mnt-photo-review-sidebar-head-text strong {
  font-size: 15px;
  color: #881337;
}
.mnt-photo-review-sidebar-head-text span {
  font-size: 11px;
  color: #9f1239;
  opacity: 0.85;
}
.mnt-photo-review-sidebar-scroll {
  overflow: visible;
  flex: 0 0 auto;
  padding-bottom: 16px;
}
.mnt-photo-review-sidebar-section {
  padding: 12px 14px 0;
  box-sizing: border-box;
}
.mnt-photo-review-sidebar-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9f1239;
  margin-bottom: 8px;
}
.mnt-photo-review-visibility {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.mnt-photo-review-visibility-btn {
  min-height: 36px;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 600;
  color: #881337;
  cursor: pointer;
  padding: 6px 4px;
}
.mnt-photo-review-visibility-btn.is-active {
  border-color: #b91c1c;
  background: #fff;
  color: #b91c1c;
  box-shadow: 0 0 0 1px rgba(185, 28, 28, 0.12);
}
.mnt-photo-review-summary-host { margin: 0; padding: 0; }
.mnt-photo-review-summary-host.hidden { display: none; }
.mnt-photo-review-sidebar-summary {
  padding: 14px;
  display: grid;
  gap: 12px;
}
.mnt-photo-review-sidebar-plan {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #fecdd3;
}
.mnt-photo-review-sidebar-plan-no {
  font-size: 15px;
  font-weight: 700;
  color: #881337;
  line-height: 1.3;
}
.mnt-photo-review-sidebar-plan-meta {
  margin-top: 4px;
  font-size: 12px;
  color: #9f1239;
  line-height: 1.35;
}
.mnt-photo-review-sidebar-progress { display: grid; gap: 8px; }
.mnt-photo-review-sidebar-progress-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.mnt-photo-review-sidebar-progress-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9f1239;
}
.mnt-photo-review-sidebar-progress-value {
  font-size: 14px;
  color: #881337;
}
.mnt-photo-review-sidebar-progress-track {
  height: 8px;
  border-radius: 999px;
  background: #fecdd3;
  overflow: hidden;
}
.mnt-photo-review-sidebar-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #be123c 0%, #e11d48 100%);
  transition: width 0.25s ease;
}
.mnt-photo-review-sidebar-status {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #9f1239;
}
.mnt-photo-review-sidebar-status.is-pending { color: #b45309; }
.mnt-photo-review-sidebar-status.is-complete { color: #166534; }
.mnt-photo-review-sidebar-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mnt-photo-review-stat-card {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #fecdd3;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  gap: 6px;
}
.mnt-photo-review-stat-card--match {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.mnt-photo-review-stat-card--warn {
  border-color: #fde68a;
  background: #fffbeb;
}
.mnt-photo-review-stat-kind {
  font-size: 12px;
  font-weight: 700;
  color: #881337;
}
.mnt-photo-review-stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  color: #9f1239;
}
.mnt-photo-review-stat-row strong {
  font-size: 12px;
  color: #881337;
  font-weight: 700;
}
.mnt-photo-review-stat-em.is-match { color: #166534; }
.mnt-photo-review-stat-em.is-mismatch { color: #b45309; }
.mnt-photo-review-sidebar-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.mnt-photo-review-total-chip {
  padding: 8px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #fecdd3;
  text-align: center;
  display: grid;
  gap: 2px;
}
.mnt-photo-review-total-chip span {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9f1239;
}
.mnt-photo-review-total-chip strong {
  font-size: 14px;
  color: #881337;
}
.mnt-photo-review-filters-host {
  padding: 12px 14px 0;
  border-top: 1px solid #fecaca;
  margin-top: 6px;
  box-sizing: border-box;
}
.mnt-photo-review-filters-host:empty {
  display: none;
  padding: 0;
  border: 0;
  margin: 0;
}
.mnt-photo-review-filters-host .mnt-photo-gallery-filters-wrap {
  margin: 0;
  border: 1px solid #fecdd3;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  padding: 0 10px 10px;
}
.mnt-photo-review-filters-host .mnt-photo-gallery-filters {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
}
.mnt-photo-review-filters-host .mnt-photo-gallery-filters-primary {
  display: grid;
  gap: 8px;
}
.mnt-photo-review-filters-host .mnt-photo-gallery-filter {
  display: grid;
  gap: 4px;
  width: 100%;
  min-width: 0;
  margin: 0;
}
.mnt-photo-review-filters-host .mnt-photo-gallery-filter select,
.mnt-photo-review-filters-host .mnt-photo-gallery-filter .pg-search-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.mnt-photo-review-filters-host .mnt-photo-gallery-filters-grid {
  display: grid;
  gap: 8px;
}
.mnt-photo-review-filters-host .mnt-photo-gallery-filters-head {
  flex-wrap: wrap;
  gap: 6px;
}
.mnt-photo-review-filters-host .mnt-photo-gallery-filters-advanced > summary {
  font-size: 11px;
}
.mnt-photo-gallery-filters-stack {
  display: grid;
  gap: 10px;
}
.mnt-photo-gallery-filter-group-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 4px;
}
.mnt-photo-gallery-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mnt-photo-gallery-filter-chip {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  padding: 5px 10px;
  cursor: pointer;
}
.mnt-photo-gallery-filter-chip:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}
.mnt-photo-gallery-filter-chip.is-active {
  border-color: #e11d48;
  background: #fff1f2;
  color: #be123c;
}
.mnt-photo-gallery-filter-search {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.mnt-photo-gallery-filters-details > summary {
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  padding: 4px 0;
  list-style: none;
}
.mnt-photo-gallery-filters-details > summary::-webkit-details-marker { display: none; }
.mnt-photo-gallery-filters-details > summary::before { content: '▸ '; }
.mnt-photo-gallery-filters-details[open] > summary::before { content: '▾ '; }
.mnt-photo-gallery-filters-details-body {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}
.mnt-photo-review-filters-host .mnt-photo-gallery-filters-stack {
  padding-top: 4px;
}
#pgPanelPhotoReview .section-card,
#pgPanelPhotoReview .mnt-photo-review-layout {
  overflow: visible;
}
.mnt-photo-gallery-filters-wrap > summary.mnt-photo-gallery-filters-summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  padding: 10px 2px 8px;
  list-style: none;
}
.mnt-photo-gallery-filters-wrap > summary.mnt-photo-gallery-filters-summary::-webkit-details-marker {
  display: none;
}
.mnt-photo-gallery-filters-wrap > summary.mnt-photo-gallery-filters-summary::before {
  content: '▸ ';
  color: #64748b;
}
.mnt-photo-gallery-filters-wrap[open] > summary.mnt-photo-gallery-filters-summary::before {
  content: '▾ ';
}
.mnt-photo-gallery--review .mnt-photo-gallery-summary {
  margin: 0 0 10px;
  font-size: 12px;
}
.mnt-photo-gallery-pagination {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}
.mnt-photo-gallery-pagination.hidden { display: none; }
.mnt-photo-gallery-pagination-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}
.mnt-photo-gallery-pagination-size {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
}
.mnt-photo-gallery-pagination-size select {
  min-width: 72px;
}
.mnt-photo-gallery-pagination-meta {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}
.mnt-photo-gallery-thumb-frame.is-loading {
  background-color: #e2e8f0;
  background-image: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 50%, #e2e8f0 100%);
  background-size: 200% 100%;
  animation: mnt-photo-thumb-shimmer 1.2s ease-in-out infinite;
}
@keyframes mnt-photo-thumb-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.mnt-photo-review-client-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.mnt-photo-review-client-filter-btn {
  min-height: 34px;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 600;
  color: #881337;
  cursor: pointer;
  padding: 6px 8px;
}
.mnt-photo-review-client-filter-btn.is-active {
  border-color: #b91c1c;
  background: #fff;
  color: #b91c1c;
}
.mnt-photo-client-review-badge {
  display: inline-flex;
  max-width: 220px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mnt-photo-gallery-section.is-client-excluded {
  border-color: #fdba74;
  background: #fffbeb;
}
.mnt-photo-gallery-section.is-client-claim-changed {
  border-color: #fde68a;
}
.mnt-photo-client-surface-field {
  display: grid;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed #93c5fd;
}
.mnt-photo-client-surface-hint {
  margin: 0;
  line-height: 1.4;
}
.mnt-photo-client-surface-options {
  display: grid;
  gap: 6px;
}
.mnt-photo-client-surface-field.hidden { display: none; }
.mnt-photo-client-feedback {
  margin: 0 14px 12px;
  padding: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: linear-gradient(180deg, #eff6ff 0%, #fff 100%);
  display: grid;
  gap: 10px;
}
.mnt-photo-client-feedback-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.mnt-photo-client-feedback-head strong {
  font-size: 13px;
  color: #1e3a8a;
}
.mnt-photo-client-feedback-status {
  font-size: 11px;
  color: #64748b;
}
.mnt-photo-client-feedback-field {
  display: grid;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #1e40af;
}
.mnt-photo-client-feedback-field textarea,
.mnt-photo-client-feedback-field input {
  font-weight: 400;
}
.mnt-photo-client-feedback-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1e40af;
}
.mnt-photo-client-claim-options {
  display: grid;
  gap: 6px;
}
.mnt-photo-client-claim-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #334155;
}
.mnt-photo-client-qty-field.hidden { display: none; }
.portal-client-app .portal-client-photo-sidebar {
  border-left-color: #bfdbfe;
  background: linear-gradient(180deg, #eff6ff 0%, #fff 28%, #fafafa 100%);
}
.portal-client-app .portal-client-photo-sidebar .mnt-photo-review-sidebar-head {
  background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 100%);
  border-bottom-color: #bfdbfe;
}
.portal-client-app .portal-client-photo-sidebar .mnt-photo-review-sidebar-head-text strong { color: #1e3a8a; }
.portal-client-app .portal-client-photo-sidebar .mnt-photo-review-sidebar-head-text span { color: #1d4ed8; }
.portal-client-app .portal-client-photo-sidebar .mnt-photo-review-sidebar-label { color: #1d4ed8; }
.portal-client-app .portal-client-photo-sidebar .mnt-photo-review-sidebar-rail-label { color: #1d4ed8; }
.portal-client-app .portal-client-photo-sidebar .mnt-photo-review-sidebar-badge { background: #1d4ed8; }
.portal-client-app .portal-client-photo-sidebar .mnt-photo-review-sidebar-toggle {
  border-color: #bfdbfe;
  color: #1d4ed8;
}
.portal-client-app .mnt-photo-client-sidebar-summary .mnt-photo-review-sidebar-plan {
  border-color: #bfdbfe;
}
.portal-client-app .mnt-photo-client-sidebar-summary .mnt-photo-review-sidebar-plan-no { color: #1e3a8a; }
.portal-client-app .mnt-photo-client-sidebar-summary .mnt-photo-review-sidebar-progress-fill {
  background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 100%);
}
.mnt-photo-client-tally-hint {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: #64748b;
}
.mnt-photo-client-confirm {
  width: 100%;
  margin: 0 0 8px;
  font-weight: 700;
}
.mnt-photo-client-confirm.is-active,
button.mnt-photo-client-confirm.is-active {
  background: #15803d;
  color: #fff;
  border-color: #15803d;
}
.mnt-photo-client-feedback-more {
  margin-top: 4px;
  border-top: 1px solid #e2e8f0;
  padding-top: 6px;
}
.mnt-photo-client-feedback-more > summary {
  cursor: pointer;
  font-size: 12px;
  color: #475569;
  font-weight: 600;
  list-style: none;
}
.mnt-photo-client-feedback-more > summary::-webkit-details-marker { display: none; }
.mnt-photo-gallery-section.is-client-checked .mnt-photo-client-confirm.is-active {
  box-shadow: 0 0 0 2px rgba(21, 128, 61, 0.25);
}
.portal-client-app .mnt-photo-client-sidebar-summary .mnt-photo-review-sidebar-progress-track {
  background: #bfdbfe;
}
.mnt-photo-review-client-summary {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #fecdd3;
  display: grid;
  gap: 10px;
}
.mnt-photo-review-client-summary-progress {
  display: grid;
  gap: 6px;
}
.mnt-photo-review-client-progress-fill {
  background: linear-gradient(90deg, #c2410c 0%, #fb923c 100%);
}
.mnt-photo-review-client-summary-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.mnt-photo-client-review-badge--confirmed {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #047857;
}

.mnt-photo-client-plan-approval {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  display: grid;
  gap: 10px;
}
.mnt-photo-client-plan-approval.is-ready {
  border: 1px solid #93c5fd;
  background: linear-gradient(180deg, #eff6ff 0%, #fff 100%);
}
.mnt-photo-client-plan-approval.is-approved {
  border: 1px solid #6ee7b7;
  background: linear-gradient(180deg, #ecfdf5 0%, #fff 100%);
}
.mnt-photo-client-plan-approval.is-pending {
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
}
.mnt-photo-admin-plan-approval.is-approved .mnt-photo-review-sidebar-label { color: #047857; }
.mnt-photo-client-approval-qty {
  display: grid;
  gap: 4px;
}
.mnt-photo-client-approval-qty-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #334155;
}
.mnt-photo-client-approval-qty-row strong {
  font-size: 13px;
  color: #0f172a;
}
.mnt-photo-client-approval-meta,
.mnt-photo-client-approval-remarks {
  margin: 0;
}
.mnt-photo-client-approval-status {
  min-height: 16px;
}

@media (max-width: 800px) {
  .portal-site-main { grid-template-columns: 1fr; }
  .portal-site-dr-focus .portal-site-list { display: none; }
  .portal-site-dr-focus .portal-site-detail { grid-column: 1 / -1; }
}
.site-dr-submit-block { color: #b45309; margin: 8px 0 0; }
html[data-site-theme="dark"] .site-dr-submit-block { color: #fbbf24; }

/* Site portal — mobile field work (Phase C1) */
.portal-site-body {
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.portal-site-header,
.portal-site-tabs {
  padding-left: max(16px, env(safe-area-inset-left, 0));
  padding-right: max(16px, env(safe-area-inset-right, 0));
}
.site-touch-btn {
  min-height: 48px;
  min-width: 48px;
  touch-action: manipulation;
}
.site-work-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.site-work-menu--compact {
  margin-top: 12px;
}
.site-work-menu--compact .site-work-tile {
  padding: 14px 16px;
}
.site-maint-progress,
.site-maint-plans {
  margin-top: 12px;
}
.portal-site-detail .mnt-dr-context {
  margin: 8px 0 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
}
.mnt-dr-progress-overall {
  margin: 8px 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}
.mnt-dr-progress-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.mnt-dr-progress-pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 12px;
}
.dr-photo-redirect-notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
}
.site-work-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  text-align: left;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 16px;
  background: #fff;
  cursor: pointer;
}
.site-work-tbm-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.site-work-tbm-wrap .site-work-tile {
  width: 100%;
}
.site-work-tbm-wrap .site-tbm-view-doc--tile {
  margin-top: 0;
}
.site-work-tile:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.site-work-tile-title {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #b91c1c;
  margin-bottom: 4px;
}
.site-work-sticky-plan {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.site-work-plan-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-right: 6px;
}
.site-plan-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.site-plan-card {
  text-align: left;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  background: #f8fafc;
  cursor: pointer;
  width: 100%;
}
.site-plan-card-no {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}
.site-mnt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.site-mnt-entry label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}
.site-mnt-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  justify-content: center;
}
.site-mnt-photo-capture-row {
  display: grid;
  grid-template-columns: minmax(108px, auto) 1fr;
  gap: 12px;
  align-items: stretch;
}
.site-mnt-photo-seq-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}
.site-mnt-photo-seq-col .site-mnt-field-hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
}
.site-mnt-photo-btn-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}
.mnt-photo-review-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.site-mnt-photo-capture-row .site-mnt-take-photo {
  width: 100%;
  flex: 1;
  min-height: 88px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.site-mnt-thumb-strip {
  margin-top: 12px;
}
.site-mnt-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.site-mnt-thumb {
  position: relative;
  width: 96px;
  margin: 0;
}
.site-mnt-thumb img,
.site-mnt-thumb-placeholder {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  background: #f1f5f9;
}
.site-mnt-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
}
.site-mnt-thumb figcaption {
  font-size: 11px;
  text-align: center;
  color: #64748b;
  margin-top: 2px;
}
.site-mnt-thumb.is-pending img {
  opacity: 0.72;
}
.site-mnt-thumb.is-offline img {
  opacity: 0.88;
}
.site-mnt-thumb.is-failed img {
  opacity: 0.45;
  filter: grayscale(0.4);
}
.site-mnt-thumb-badge {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 22px;
  padding: 3px 4px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}
.site-mnt-thumb-badge.is-offline {
  background: rgba(180, 83, 9, 0.92);
}
.site-mnt-thumb-badge.is-failed {
  background: rgba(185, 28, 28, 0.9);
}
.site-mnt-take-photo.is-busy {
  opacity: 0.85;
}
.site-mnt-take-photo.is-busy::after {
  content: ' …';
}
.site-mnt-thumb-del {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: rgba(185, 28, 28, 0.92);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.site-mnt-thumb-del--failed {
  width: 32px;
  height: 32px;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
}
.site-mnt-capture-error-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.site-mnt-capture-error-actions.hidden {
  display: none;
}
.site-mnt-photo-preview-delete {
  margin-top: 10px;
  width: 100%;
}
.site-mnt-upload-status {
  margin: 8px 0 0;
  color: #b45309;
  font-weight: 600;
}
.site-mnt-capture-error {
  margin: 14px 0 0;
  padding: 18px 16px;
  border: 4px solid #b91c1c;
  border-radius: 14px;
  background: #fef2f2;
  color: #7f1d1d;
  box-shadow: 0 8px 24px rgba(185, 28, 28, 0.18);
  animation: site-mnt-error-flash 0.45s ease;
}
.site-mnt-capture-error.hidden {
  display: none;
}
.site-mnt-capture-error-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b91c1c;
  margin-bottom: 8px;
}
.site-mnt-capture-error-msg {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}
.site-mnt-capture-error-list {
  margin: 0;
  padding-left: 1.25em;
  font-size: 16px;
  font-weight: 700;
}
.site-mnt-capture-error-list li + li {
  margin-top: 4px;
}
@keyframes site-mnt-error-flash {
  0% { transform: scale(0.98); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}
html[data-site-theme="dark"] .site-mnt-capture-error {
  background: #2a1212;
  border-color: #f87171;
  color: #fecaca;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
html[data-site-theme="dark"] .site-mnt-capture-error-title {
  color: #fca5a5;
}
html[data-site-theme="dark"] .site-mnt-thumb img,
html[data-site-theme="dark"] .site-mnt-thumb-placeholder {
  border-color: #444;
  background: #1a1a1a;
}
.site-mnt-photo-preview {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.site-mnt-photo-preview.hidden {
  display: none;
}
.site-mnt-photo-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
}
.site-mnt-photo-preview-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-mnt-photo-preview-close {
  align-self: flex-end;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
.site-mnt-photo-preview-body {
  overflow: auto;
  border-radius: 10px;
  background: #0f172a;
}
.site-mnt-photo-preview-body img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
}
.site-mnt-photo-preview-caption {
  color: #e2e8f0;
  text-align: center;
  margin: 0;
}
.site-mnt-save-next:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.site-mp-section h4 {
  margin-bottom: 4px;
}
.site-mp-team {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  background: #e2e8f0;
}
.site-mp-shared-ok { color: #047857; margin: 8px 0 0; }
.site-mp-shared-wait { color: #b45309; margin: 8px 0 0; }
  margin: 0 0 10px;
}
.site-mp-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-mp-row {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  background: #f8fafc;
}
.site-mp-row--supervisor {
  border-color: #fed7aa;
  background: #fff7ed;
}
.site-mp-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.site-mp-times {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-bottom: 8px;
}
.site-mp-times label {
  font-size: 12px;
  color: #475569;
}
.site-mp-times input[type="time"] {
  min-height: 40px;
  margin-left: 4px;
}
.site-mp-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
}
.site-mp-add-panel {
  flex: 1 1 100%;
  margin-bottom: 4px;
}
.site-mp-add-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}
.site-mp-add-filter {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 18px;
  border: 2px solid #94a3b8;
  border-radius: 12px;
  box-sizing: border-box;
  background: #fff;
  color: #0f172a;
  -webkit-appearance: none;
  appearance: none;
}
.site-mp-add-filter:focus {
  outline: none;
  border-color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.15);
}
.site-mp-add-meta {
  margin: 8px 0 6px;
}
.site-mp-add-list {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.site-mp-add-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  touch-action: manipulation;
}
.site-mp-add-item-name {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}
.site-mp-add-item-role {
  font-size: 13px;
}
.site-mp-add-item.is-on-list {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f1f5f9;
}
.site-mp-add-empty {
  margin: 8px 10px;
}
html[data-site-theme="dark"] .site-mp-add-filter {
  background: #1a1a1a;
  border-color: #555;
  color: #fff;
}
html[data-site-theme="dark"] .site-mp-add-list {
  background: #141414;
  border-color: #333;
}
html[data-site-theme="dark"] .site-mp-add-item {
  background: #1a1a1a;
  border-color: #333;
}
html[data-site-theme="dark"] .site-mp-add-item-name {
  color: #f5f5f5;
}
.site-mp-add-select {
  min-height: 40px;
  margin-left: 6px;
  min-width: 180px;
}
.site-mp-remove {
  color: #b91c1c;
}
.site-mp-section--collapsed {
  padding-bottom: 12px;
}
.site-mp-section--collapsed .site-mp-section-head {
  margin-bottom: 4px;
}
.site-mp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.site-mp-section-head h4 {
  margin: 0;
}
.site-mp-confirmed-badge {
  font-size: 13px;
  font-weight: 800;
  color: #15803d;
  background: #dcfce7;
  border-radius: 999px;
  padding: 4px 10px;
}
.site-mp-next-hint {
  font-size: 16px;
  color: #0f172a;
}
.site-mp-summary-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.site-mp-summary-list li + li {
  margin-top: 0;
}
.site-mp-summary-item {
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
}
.site-mp-summary-name {
  font-size: 15px;
}
.site-mp-summary-times {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #1e40af;
}
.site-mp-row--name {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}
.site-mp-identity {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.site-mp-identity-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.site-mp-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #64748b;
  letter-spacing: 0.02em;
}
.site-mp-star {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin: -4px 0 0 -6px;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 28px;
  line-height: 1;
  color: #cbd5e1;
  cursor: pointer;
  border-radius: 10px;
}
.site-mp-star.is-active { color: #d97706; }
.site-mp-star:not(.is-static):hover { color: #f59e0b; background: #fffbeb; }
.site-mp-star.is-static {
  width: auto;
  height: auto;
  margin: 0;
  cursor: default;
  font-size: 18px;
  pointer-events: none;
}
.site-mp-summary-item--supervisor {
  background: #fff7ed;
  border-radius: 8px;
  padding: 6px 8px;
}
.site-mp-row--endtimes {
  align-items: start;
}
.site-mp-row-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.site-mp-row-times-line {
  font-size: 13px;
  font-weight: 700;
  color: #1e40af;
}
.site-mp-lunch-ot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 10px;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  flex: 0 0 auto;
}
.site-mp-lunch-ot input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.site-mp-lunch-ot-box {
  width: 22px;
  height: 22px;
  border: 2px solid #94a3b8;
  border-radius: 6px;
  background: #fff;
  flex: 0 0 auto;
  position: relative;
}
.site-mp-lunch-ot input:checked + .site-mp-lunch-ot-box {
  border-color: #b45309;
  background: #fffbeb;
}
.site-mp-lunch-ot input:checked + .site-mp-lunch-ot-box::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: #b45309;
}
.site-mp-lunch-ot-label {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}
.site-mp-lunch-ot input:checked ~ .site-mp-lunch-ot-label {
  color: #b45309;
}
.site-mp-lunch-ot.is-readonly {
  opacity: 0.75;
  cursor: default;
}
.site-mp-team-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: end;
  padding: 12px;
  margin-bottom: 8px;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
}
.site-mp-team-field {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}
.site-mp-team-field-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}
.site-mp-team-field--readonly .site-mp-team-start-ro {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 130px;
  padding: 0 12px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.02em;
}
.site-mp-team-field input[type="time"] {
  min-height: 44px;
  font-size: 16px;
  min-width: 130px;
}
.site-mp-individual-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-left: auto;
  cursor: pointer;
}
.site-mp-individual-toggle input { width: 18px; height: 18px; }
.site-mp-row--individual {
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
}
.site-mp-row--individual .site-mp-row-times {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}
.site-mp-team-end-hint { flex: 1 1 100%; margin: 0; font-size: 12px; }
html[data-site-theme="dark"] .site-mp-team-bar {
  background: #1e293b;
  border-color: #475569;
}
.site-mp-row--compact {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}
.site-mp-row--compact .site-mp-name { font-weight: 600; font-size: 15px; }
.site-mp-row--compact .site-mp-start-wrap { margin: 0; font-size: 13px; }
.site-mp-row--compact .site-mp-start-wrap input { max-width: 110px; }
.site-mp-office-note {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 8px 0;
}
.site-plan-card-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 4px;
}
.site-plan-star {
  flex: 0 0 36px;
  min-width: 36px;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.site-plan-star.is-fav { color: #d97706; border-color: #fcd34d; background: #fffbeb; }
.site-plan-card-wrap .site-plan-card { flex: 1; }
.site-plan-card--last { border-color: #93c5fd; }
.site-plan-last-badge {
  font-size: 11px;
  font-weight: 600;
  color: #1d4ed8;
  margin-left: 4px;
}
.site-step-pdf-btn {
  border: 1px solid #93c5fd;
  border-radius: 8px;
  background: #eff6ff;
  font-size: 18px;
  cursor: pointer;
  padding: 2px 8px;
  vertical-align: middle;
  line-height: 1.2;
}
.site-tbm-view-doc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #1e40af;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}
.site-tbm-view-doc--tile,
.site-tbm-view-doc--card {
  width: 100%;
  min-height: 44px;
}
.site-tbm-view-doc-wrap {
  margin-top: 12px;
}
.site-tbm-view-doc-icon {
  font-size: 18px;
  line-height: 1;
}
.site-step-pdf-pending {
  font-size: 11px;
  vertical-align: middle;
  color: #b45309;
}
.site-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0;
}
.site-toggle-input {
  width: 44px;
  height: 24px;
  accent-color: #2563eb;
}
.site-ftbm-worker-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; }
.site-ftbm-worker-row {
  display: grid;
  grid-template-columns: 1fr 72px auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.site-ftbm-worker-name { display: flex; flex-direction: column; gap: 2px; }
.site-ftbm-sig-thumb {
  width: 72px;
  height: 36px;
  object-fit: contain;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
}
.site-ftbm-sig-thumb--empty {
  display: block;
  border-style: dashed;
  background: #f8fafc;
}
.site-ftbm-sup-sig-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}
.site-ftbm-sig-btn.is-signed { background: #ecfdf5; border-color: #6ee7b7; color: #047857; }
.site-ftbm-sig-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-ftbm-sig-modal.hidden { display: none; }
.site-ftbm-sig-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.site-ftbm-sig-card {
  position: relative;
  z-index: 1;
  width: min(360px, 92vw);
  margin: 0;
}
.site-ftbm-sig-card canvas {
  width: 100%;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  touch-action: none;
  background: #fff;
}
.site-ftbm-sig-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
}
.ftbm-worker-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ftbm-list-card { padding-top: 14px; }
.ftbm-list-toolbar { margin-bottom: 6px; }
.ftbm-list-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ftbm-list-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.ftbm-list-filters .sf-list-filter {
  flex: 1 1 220px;
  min-width: 0;
  max-width: 420px;
}
.ftbm-status-filter {
  flex: 0 0 auto;
  width: auto;
  min-width: 140px;
}
.ftbm-list-table-wrap { max-height: calc(100vh - 260px); }
.ftbm-list-table .ftbm-list-row { cursor: pointer; }
.ftbm-list-table .ftbm-open-row {
  min-width: 52px;
  font-weight: 600;
}
.ftbm-meta-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  vertical-align: middle;
}
.ftbm-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  background: #f1f5f9;
  color: #334155;
}
.ftbm-status-badge.is-draft { background: #f1f5f9; color: #475569; }
.ftbm-status-badge.is-pending { background: #fff7ed; color: #c2410c; }
.ftbm-status-badge.is-done { background: #ecfdf5; color: #047857; }
.ftbm-view-head { margin-bottom: 4px; }
.ftbm-view-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.ftbm-status-pill,
.ftbm-fit-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #f1f5f9;
  color: #334155;
  white-space: nowrap;
}
.ftbm-fit-pill.ftbm-fit-ok { background: #ecfdf5; color: #047857; }
.ftbm-fit-pill.ftbm-fit-bad { background: #fef2f2; color: #b91c1c; }
.ftbm-view-grid { margin-top: 14px; }
.ftbm-view-grid dd { word-break: break-word; overflow-wrap: anywhere; }
.ftbm-view-worker-row {
  grid-template-columns: 1fr auto 72px;
}
.ftbm-view-table { width: 100%; }
.ftbm-view-table td:first-child { word-break: break-word; }
.ftbm-view-table .ftbm-sn,
.ftbm-view-table th.ftbm-sn {
  width: 48px;
  text-align: center;
  white-space: nowrap;
  color: #64748b;
  word-break: normal;
}
.ftbm-view-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin: 8px 0 4px;
}
.ftbm-view-photo-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px;
  background: #fff;
}
.ftbm-view-photo-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  background: #f8fafc;
  display: block;
}
.ftbm-view-photo-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 12px;
}
.ftbm-add-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 10px 0 4px;
}
.ftbm-add-row .pg-search-input {
  flex: 1 1 220px;
  min-width: 0;
  max-width: 100%;
}
.ftbm-person-search { width: 100%; }
.ftbm-combobox { width: 100%; max-width: 520px; }
.ftbm-combobox .dept-combobox-input { width: 100%; box-sizing: border-box; }
.ftbm-supervisor-selected {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 4px 0 8px;
}
.ftbm-selected-label {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}
.ftbm-selected-label.is-empty {
  font-weight: 500;
  color: #64748b;
}
[data-lz-module="fieldtbm"] .section-card {
  overflow-x: hidden;
  max-width: 100%;
}
[data-lz-module="fieldtbm"] .ftbm-form-grid select.pg-search-input,
[data-lz-module="fieldtbm"] .ftbm-form-grid input.pg-search-input,
[data-lz-module="fieldtbm"] .pg-search-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
@media (max-width: 640px) {
  .site-ftbm-worker-row {
    grid-template-columns: 1fr auto;
    gap: 8px 10px;
  }
  .site-ftbm-worker-name { grid-column: 1 / -1; }
  .site-ftbm-sig-thumb,
  .site-ftbm-sig-thumb--empty { grid-column: 1; }
  .site-toggle-row { grid-column: 2; justify-self: end; }
  .ftbm-worker-actions,
  .site-ftbm-worker-row > .site-ftbm-sig-btn {
    grid-column: 1 / -1;
  }
  .ftbm-worker-actions { justify-content: stretch; }
  .ftbm-worker-actions .btn { flex: 1 1 auto; }
  .ftbm-view-worker-row {
    grid-template-columns: 1fr auto;
  }
  .ftbm-view-worker-row .ftbm-fit-pill {
    grid-column: 2;
    justify-self: end;
    align-self: center;
  }
  [data-lz-module="fieldtbm"] .form-grid,
  [data-lz-module="fieldtbm"] .pg-detail-grid {
    grid-template-columns: 1fr;
  }
  [data-lz-module="fieldtbm"] .main-content {
    padding-left: 12px;
    padding-right: 12px;
  }
  [data-lz-module="fieldtbm"] .data-table {
    font-size: 12px;
  }
}
.site-mp-end-hint {
  margin: 6px 0 0;
  color: #b45309;
  font-weight: 600;
}
.site-step-guide {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 2px solid #e2e8f0;
}
.site-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}
.site-step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5e1;
  color: #0f172a;
  font-size: 12px;
}
.site-step--active {
  background: #fef2f2;
  color: #b91c1c;
  box-shadow: 0 0 0 2px #fecaca;
}
.site-step--active .site-step-no {
  background: #b91c1c;
  color: #fff;
}
.site-step--done {
  background: #ecfdf5;
  color: #15803d;
}
.site-step--done .site-step-no {
  background: #15803d;
  color: #fff;
}
.site-step-arrow {
  color: #94a3b8;
  font-weight: 800;
}
.site-step-next {
  flex: 1 1 100%;
  margin: 4px 0 0;
  font-size: 15px;
}
.site-step--tbm-view {
  cursor: pointer;
}
.site-step--tbm-view:active {
  filter: brightness(0.97);
}
.site-work-home-tabs-wrap {
  margin-top: 12px;
}
.site-work-home-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0 10px;
  margin: 0 0 8px;
  border-bottom: 1px solid #e2e8f0;
}
.site-work-home-tab {
  flex: 1 0 auto;
  min-width: 72px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}
.site-work-home-tab.is-active {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
  box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.12);
}
.site-work-home-tab-label {
  white-space: nowrap;
}
.site-work-home-tab-meta {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
}
.site-work-home-tab.is-active .site-work-home-tab-meta {
  color: #b91c1c;
}
.site-work-home-panel.hidden {
  display: none !important;
}
.site-work-home-gate {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-weight: 600;
}
.site-tcp-upload-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 10px 0 14px;
}
.site-tcp-upload-label {
  position: relative;
  overflow: hidden;
  flex: 1 1 140px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.site-tcp-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.site-tcp-photo-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.site-tcp-photo-thumb {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
  background: #f1f5f9;
}
.site-tcp-photo-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 12px;
}
.site-tcp-photo-actions {
  display: flex;
  gap: 6px;
  padding: 8px;
}
html[data-site-theme="dark"] .site-work-home-tabs {
  border-bottom-color: #333;
}
html[data-site-theme="dark"] .site-work-home-tab {
  background: #1a1a1a;
  border-color: #333;
  color: #d4d4d4;
}
html[data-site-theme="dark"] .site-work-home-tab.is-active {
  background: #2a1212;
  border-color: #7f1d1d;
  color: #fecaca;
}
html[data-site-theme="dark"] .site-tcp-photo-card {
  background: #141414;
  border-color: #333;
}
html[data-site-theme="dark"] .site-work-home-gate {
  background: #1c1410;
  border-color: #78350f;
  color: #fdba74;
}
.site-work-tile--next {
  border-color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.15);
  animation: site-step-pulse 1.5s ease infinite;
}
@keyframes site-step-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12); }
  50% { box-shadow: 0 0 0 6px rgba(185, 28, 28, 0.2); }
}
html[data-site-theme="dark"] .site-step-guide {
  background: #141414;
  border-color: #333;
}
html[data-site-theme="dark"] .site-step {
  background: #1a1a1a;
  color: #a3a3a3;
}
html[data-site-theme="dark"] .site-step--active {
  background: #2a1515;
  color: #fca5a5;
}
html[data-site-theme="dark"] .site-step--done {
  background: #14251a;
  color: #86efac;
}
html[data-site-theme="dark"] .site-mp-confirmed-badge {
  background: #14251a;
  color: #86efac;
}
html[data-site-theme="dark"] .site-mp-next-hint {
  color: #f5f5f5;
}
.site-work-bottom-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 0 max(12px, env(safe-area-inset-bottom, 0));
  margin-top: 16px;
  background: linear-gradient(transparent, #fff 24%);
}
.site-tbm-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-top: 8px;
}
@media (min-width: 560px) {
  .site-mnt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-work-menu {
    flex-direction: row;
    align-items: stretch;
  }
  .site-work-tile,
  .site-work-tbm-wrap {
    flex: 1;
    min-width: 0;
  }
  /* Compact menus only have the TBM block — keep it full width, stacked. */
  .site-work-menu--compact {
    flex-direction: column;
  }
}

/* Site portal — fullscreen Site Work (plans + manhole) */
body.site-work-fullscreen-active .portal-site-tabs {
  display: none;
}
.site-work-fullscreen {
  display: block !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.site-work-fullscreen .portal-site-list {
  display: none !important;
}
.site-work-fullscreen .portal-site-detail {
  border: none;
  border-radius: 0;
  min-height: calc(100dvh - 56px);
  padding: 0;
  background: #f8fafc;
}
.site-fs-screen {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 56px);
  background: #f8fafc;
}
.site-fs-topbar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  padding-top: max(12px, env(safe-area-inset-top, 0));
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-fs-back {
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
}
.site-fs-topbar-main {
  flex: 1;
  min-width: 0;
}
.site-fs-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}
.site-fs-meta {
  margin-top: 4px;
  font-size: 13px;
}
.site-fs-body {
  flex: 1;
  padding: 14px;
  padding-bottom: max(14px, env(safe-area-inset-bottom, 0));
  overflow-y: auto;
}
.site-fs-body--manhole {
  padding-bottom: 0;
}
.site-plan-card-loc {
  margin-top: 4px;
}
.site-plan-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
}
.site-plan-stat {
  font-size: 13px;
  color: #334155;
}
.site-plan-stat strong {
  color: #b91c1c;
  font-size: 16px;
}
.site-plan-card-today {
  margin-top: 6px;
  font-size: 12px;
}
.site-vo-pin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.site-vo-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 10px 8px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  cursor: pointer;
}
.site-vo-pin-no {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}
.site-vo-pin-sub {
  margin-top: 4px;
  font-size: 10px;
  color: #64748b;
  line-height: 1.2;
}
.site-vo-pin--mine {
  border-color: #2563eb;
  background: #eff6ff;
}
.site-vo-pin--taken {
  border-color: #cbd5e1;
  background: #f1f5f9;
  opacity: 0.85;
  cursor: not-allowed;
}
.site-vo-pin--locked {
  pointer-events: none;
  opacity: 0.7;
}
.site-vo-label-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}
.site-vo-chip {
  min-width: 52px;
  min-height: 44px;
  padding: 8px 12px;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  font-weight: 700;
  font-size: 16px;
}
.site-vo-chip.is-active {
  border-color: #2563eb;
  background: #dbeafe;
  color: #1d4ed8;
}
.site-vo-chip.is-placed {
  border-color: #16a34a;
}
.site-vo-label-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.site-vo-label-viewport {
  position: relative;
  width: 100%;
  max-height: min(70vh, 640px);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #0f172a0a;
  touch-action: none;
  border-radius: 10px;
}
/* stage / pins / img sizing set with .site-vo-label-stage block below photo section */
.site-vo-label-stage {
  transform-origin: 0 0;
  will-change: transform;
  position: relative;
  display: inline-block;
  line-height: 0;
}
.site-vo-map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 36px;
  min-height: 36px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: #dc2626;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  pointer-events: auto;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.site-vo-mh-form .site-vo-section {
  margin-bottom: 12px;
}
.site-vo-file-label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 8px 0;
  padding: 12px 14px;
  border: 1px dashed #94a3b8;
  border-radius: 10px;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
}
.site-vo-file-label input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 16px;
}
.site-vo-gnss-pickers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.site-vo-gnss-pickers .site-vo-file-label {
  margin: 8px 0;
}
.site-vo-file-label.is-picked {
  border-style: solid;
  border-color: #16a34a;
  background: #f0fdf4;
  color: #166534;
}
.site-vo-gnss-saved {
  margin-top: 14px;
}
.site-vo-gnss-saved-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid #86efac;
  border-radius: 10px;
  background: #f0fdf4;
  color: #166534;
}
.site-vo-gnss-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  flex: 0 0 auto;
}
.site-vo-gnss-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.site-vo-gnss-files span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
}
@media (max-width: 540px) {
  .site-vo-gnss-pickers {
    grid-template-columns: 1fr;
  }
}
.site-vo-day-res {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 720px) {
  .site-vo-day-res {
    grid-template-columns: 1fr;
  }
}
.site-vo-day-card {
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.site-vo-day-fields-wrap {
  margin-top: 6px;
}
.site-vo-day-fields {
  margin-top: 0;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
.site-vo-day-fields label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}
.site-vo-day-fields .pg-search-input,
.site-vo-day-fields select {
  min-height: 40px;
  margin-top: 2px;
  font-size: 14px;
}
.site-vo-day-att {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #cbd5e1;
}
.site-vo-day-att-add {
  grid-template-columns: 1fr 1fr 1fr;
}
.site-vo-day-att-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.site-vo-day-att-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}
.site-vo-day-att-name {
  font-size: 13px;
  word-break: break-word;
}
.site-vo-day-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
.site-vo-add-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}
.site-vo-open-custom {
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-vo-mh-input {
  width: 88px;
}
.site-vo-mh-specials {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vo-special-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.vo-special-item .site-mnt-choice-btn {
  flex: 1 1 160px;
  min-height: 48px;
}
.vo-special-stepper.is-hidden {
  display: none;
}
.vo-special-stepper:not(.is-hidden) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.site-vo-day-card .vo-day-use-btn {
  width: 100%;
  min-height: 40px;
  margin-bottom: 0;
  padding: 8px 10px;
  font-size: 14px;
}
.site-vo-day-card--aso .vo-day-use-btn.is-active {
  border-color: #1d4ed8;
  background: #eff6ff;
  color: #1d4ed8;
}
.site-vo-day-card--tma .vo-day-use-btn.is-active {
  border-color: #b45309;
  background: #fffbeb;
  color: #b45309;
}
.site-vo-field {
  margin-bottom: 12px;
}
.site-vo-field--work-type .site-mnt-btn-grid,
.site-vo-field--surface .site-mnt-btn-grid {
  margin-top: 6px;
}
.vo-special-toggle {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.vo-special-qty-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.vo-special-stepper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vo-special-stepper .vo-special-qty {
  width: 64px;
  text-align: center;
}
.site-vo-photo-block {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.site-vo-photo-add-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.site-vo-photo-btn {
  flex: 0 0 auto;
  min-width: 0;
  min-height: 40px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
}
.site-vo-photo-add {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px dashed #94a3b8;
  border-radius: 10px;
  background: #f8fafc;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
}
.site-vo-photo-add input[type="file"] {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 16px;
}
.site-vo-photo-add > span {
  position: relative;
  z-index: 0;
  pointer-events: none;
}
.site-vo-photo-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.site-vo-photo-thumb-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
}
.site-vo-photo-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f1f5f9 center/cover no-repeat;
}
.site-vo-photo-thumb-wrap.is-pending .site-vo-photo-thumb {
  opacity: 0.7;
}
.site-vo-photo-thumb-x {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #b91c1c;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
  padding: 0;
  z-index: 2;
}
.site-vo-photo-thumb-x:disabled {
  opacity: 0.5;
  cursor: wait;
}
.site-vo-client-mh {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}
.site-vo-client-mh-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 640px) {
  .site-vo-client-mh-grid {
    grid-template-columns: 1fr;
  }
}
.site-vo-client-mh-grid label,
.site-mnt-field--tone-tag .site-vo-client-mh-grid label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #1e40af;
}
.site-vo-client-mh-grid input,
.site-mnt-field--tone-tag .site-vo-client-mh-grid input {
  width: 100%;
  margin-top: 6px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.site-mnt-field--tone-special {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.site-vo-mh-form .site-mnt-form-stack {
  padding-bottom: 8px;
}
.site-vo-mh-form .site-vo-photo-block {
  margin: 10px 0 0;
  padding: 10px;
  border: 1px dashed #bae6fd;
  border-radius: 10px;
  background: #f8fbff;
}
.site-vo-mh-form .site-vo-photo-block:first-of-type {
  margin-top: 8px;
}
.site-vo-mh-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-vo-mh-bottom .site-mnt-save-next {
  width: 100%;
}
#voMhGpsStatus.is-ok {
  color: #15803d;
  font-weight: 700;
}
#voMhGpsStatus.is-error {
  color: #b91c1c;
  font-weight: 600;
}
.site-vo-label-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 180px;
  padding: 28px 24px;
  color: #475569;
  font-weight: 600;
}
.site-vo-donut {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid #e2e8f0;
  border-top-color: #b91c1c;
  animation: site-vo-donut-spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes site-vo-donut-spin {
  to { transform: rotate(360deg); }
}
.site-vo-mh-form .site-mnt-choice-btn.is-active {
  min-height: 56px;
  padding: 12px 10px;
  font-size: 16px;
  box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.25);
  transform: scale(1.04);
}
.site-vo-mh-form .site-mnt-toggle-btn.is-active {
  min-height: 56px;
  min-width: 64px;
  font-size: 22px;
  box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.3);
}
.site-vo-mh-form .site-mnt-chamber-type-toggle .site-mnt-toggle-btn.is-active {
  min-height: 56px;
  font-size: 24px;
}
.site-vo-label-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}
.site-vo-label-page-btn {
  min-width: 44px;
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
}
.site-vo-label-page-btn.is-active {
  border-color: #2563eb;
  background: #dbeafe;
  color: #1d4ed8;
}
.site-vo-label-map {
  position: relative;
  display: inline-block;
  line-height: 0;
}
.site-vo-label-map > img {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}
.site-vo-label-map .site-vo-label-pins {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.site-vo-mh-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-vo-chamber-grid {
  grid-template-columns: 1fr;
}
.site-vo-save-btn {
  width: 100%;
  min-height: 52px;
  font-size: 16px;
}
@media (max-width: 640px) {
  .site-vo-day-fields {
    grid-template-columns: 1fr;
  }
  .site-vo-day-att-add {
    grid-template-columns: 1fr;
  }
}
.site-visitor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.site-visitor-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-visitor-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}
.site-visitor-dir {
  margin-top: 10px;
  max-height: 50vh;
  overflow: auto;
}
.site-visitor-dir-row {
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
}
.site-visitor-picker-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 240px;
  overflow: auto;
  margin-top: 8px;
}
.site-visitor-pick-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.site-visitor-pick-btn.is-selected {
  border-color: #2563eb;
  background: #eff6ff;
}
.site-visitor-picker-block.is-dimmed {
  opacity: 0.45;
  pointer-events: none;
}
.site-visitor-create-wrap { margin-top: 4px; }
.site-visitor-create-wrap .is-hidden { display: none !important; }
.site-visitor-create-panel {
  display: none;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  background: #f8fafc;
}
.site-visitor-create-panel.is-open { display: block; }
.site-visitor-create-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.site-visitor-create-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.site-visitor-findings-block { margin-top: 4px; }
.site-visitor-findings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0;
}
.site-visitor-finding-row { display: flex; flex-direction: column; gap: 4px; }
.site-visitor-finding-label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.02em;
}
.site-visitor-finding-input-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.site-visitor-finding-input-row textarea { flex: 1; min-width: 0; }
.site-visitor-finding-remove {
  flex: 0 0 auto;
  min-width: 36px;
  font-size: 18px;
  line-height: 1;
}
.site-visitor-findings-ol {
  margin: 0;
  padding: 0 0 0 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-visitor-findings-ol li { line-height: 1.45; }
.site-visitor-findings-ord {
  font-weight: 700;
  color: #0369a1;
  margin-right: 4px;
}
.site-visitor-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.site-visitor-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.site-visitor-thumb {
  margin: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
  min-height: 100px;
}
.site-visitor-thumb img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.sv-wsh-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: start;
}
.sv-wsh-detail-pane .section-card {
  margin-bottom: 12px;
}
.sv-merge-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 280px;
  overflow: auto;
  padding: 4px 0;
}
.sv-merge-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}
.data-table tr.is-selected td {
  background: #eff6ff;
}
@media (max-width: 960px) {
  .sv-wsh-layout {
    grid-template-columns: 1fr;
  }
}
.site-mnt-form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.site-mnt-field-row--pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.site-mnt-field--pair {
  min-width: 0;
}
.site-mnt-field--pair .site-mnt-toggle-group {
  display: flex;
  width: 100%;
}
.site-mnt-field--pair .site-mnt-toggle-btn {
  flex: 1;
  min-width: 0;
  padding: 10px 6px;
  font-size: 15px;
}
.site-mnt-field {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  max-width: 100%;
  box-sizing: border-box;
}
.site-mnt-field--tone-gps { background: #f8fafc; border-color: #e2e8f0; }
.site-mnt-field--tone-chamber { background: #fff; border-color: #fecaca; min-width: 0; overflow: hidden; }
.site-mnt-field--tone-pressure { background: #fffbeb; border-color: #fde68a; }
.site-mnt-field--tone-condition { background: #f5f3ff; border-color: #ddd6fe; }
.site-mnt-field--tone-gsiv { background: #f0fdf4; border-color: #bbf7d0; }
.site-mnt-field--tone-tag { background: #eff6ff; border-color: #bfdbfe; }
.site-mnt-field--tone-cover { background: #faf5ff; border-color: #e9d5ff; }
.site-mnt-field--tone-surface { background: #fff7ed; border-color: #fed7aa; }
.site-mnt-field--tone-photo { background: #f0f9ff; border-color: #bae6fd; }
.site-mnt-field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 8px;
}
.site-mnt-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.site-mnt-field-head .site-mnt-field-label {
  margin-bottom: 0;
}
.site-mnt-field-hint {
  margin: 8px 0 0;
  font-size: 12px;
}
.site-mnt-field.is-disabled {
  opacity: 0.62;
}
.site-mnt-field.is-disabled .site-mnt-toggle-btn {
  pointer-events: none;
  cursor: not-allowed;
  background: #f8fafc;
  color: #94a3b8;
}
.site-mnt-field.is-disabled .site-mnt-field-label {
  color: #94a3b8;
}
.site-mnt-chamber-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
.site-mnt-chamber-type-toggle {
  flex: 0 0 auto;
  min-width: 0;
  max-width: none;
  display: flex;
  width: auto;
}
.site-mnt-chamber-type-toggle .site-mnt-toggle-btn {
  flex: 0 0 auto;
  flex-basis: 95px;
  min-width: 95px;
  min-height: 53px;
  padding: 10px 12px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.06em;
}
.site-mnt-chamber-type-toggle .site-mnt-toggle-btn[data-value="V"]:not(.is-active) {
  color: #b91c1c;
  background: #fef2f2;
}
.site-mnt-chamber-type-toggle .site-mnt-toggle-btn[data-value="S"]:not(.is-active) {
  color: #1d4ed8;
  background: #eff6ff;
}
.site-mnt-chamber-type-toggle .site-mnt-toggle-btn[data-value="V"].is-active {
  background: #b91c1c;
  color: #fff;
}
.site-mnt-chamber-type-toggle .site-mnt-toggle-btn[data-value="S"].is-active {
  background: #1d4ed8;
  color: #fff;
}
.site-mnt-chamber-input {
  flex: 1 1 auto;
  width: auto;
  max-width: none;
  min-width: 0;
  min-height: 53px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  box-sizing: border-box;
}
.site-mnt-toggle-group {
  display: inline-flex;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.site-mnt-chamber-type-toggle.site-mnt-toggle-group {
  display: inline-flex;
  flex: 0 0 auto;
  flex-shrink: 0;
  width: auto;
  min-width: 0;
}
.site-mnt-toggle-btn {
  min-width: 52px;
  min-height: 48px;
  border: none;
  background: #fff;
  font-size: 18px;
  font-weight: 800;
  color: #64748b;
  cursor: pointer;
  touch-action: manipulation;
}
.site-mnt-toggle-btn + .site-mnt-toggle-btn {
  border-left: 1px solid #e2e8f0;
}
.site-mnt-toggle-btn.is-active {
  background: #b91c1c;
  color: #fff;
}

/* Maintenance settings — lookup table On/Off toggles */
.mnt-lk-toggle-group {
  display: inline-flex;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
}
.mnt-lk-toggle-btn {
  min-width: 40px;
  padding: 4px 10px;
  border: none;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  line-height: 1.4;
}
.mnt-lk-toggle-btn + .mnt-lk-toggle-btn {
  border-left: 1px solid #cbd5e1;
}
.mnt-lk-toggle-btn.is-active {
  background: #b91c1c;
  color: #fff;
}
.mnt-lk-toggle-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.site-mnt-btn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}
.site-mnt-choice-btn {
  min-height: 44px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  touch-action: manipulation;
  padding: 8px 6px;
}
.site-mnt-choice-btn.is-active {
  border-color: #b91c1c;
  background: #fef2f2;
  color: #b91c1c;
}
.site-mnt-choice-btn.is-active::before,
.vo-special-use-btn.is-active::before,
.vo-day-use-btn.is-active::before {
  content: '✓ ';
  font-weight: 900;
}
.site-vo-day-card-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.site-vo-day-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.site-vo-day-card--minimized .site-vo-day-summary-row {
  border-color: #cbd5e1;
}
.site-vo-day-summary {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}
.site-vo-day-expand {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}
.site-vo-day-save-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}
.site-mnt-help-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  font-weight: 800;
  cursor: pointer;
}
.site-mnt-seq-display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 48px;
  padding: 8px 16px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 2px solid #e2e8f0;
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}
.site-mnt-gps-field .site-mnt-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.site-mnt-gps-refresh {
  flex-shrink: 0;
  min-height: 36px;
  font-weight: 700;
}
.site-mnt-gps-status {
  margin: 6px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 12px;
  line-height: 1.45;
  color: #334155;
  word-break: break-word;
}
.site-mnt-gps-status.is-loading {
  color: #64748b;
  font-style: italic;
}
.site-mnt-gps-status.is-ready {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}
.site-mnt-gps-status.is-missing {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}
.site-mnt-take-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  background: #0369a1;
  border: 2px solid #0369a1;
  color: #fff;
}
.site-mnt-take-photo:hover,
.site-mnt-take-photo:focus-visible {
  background: #075985;
  border-color: #075985;
  color: #fff;
}
.site-fs-bottom {
  position: sticky;
  bottom: 0;
  padding: 12px 14px max(12px, env(safe-area-inset-bottom, 0));
  background: linear-gradient(transparent, #f8fafc 20%, #f8fafc 100%);
  border-top: 1px solid #e2e8f0;
}
.site-mnt-save-next {
  width: 100%;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: #15803d;
  border: 2px solid #15803d;
  color: #fff;
}
.site-mnt-save-next:hover,
.site-mnt-save-next:focus-visible {
  background: #166534;
  border-color: #166534;
  color: #fff;
}
.site-mnt-cond-help {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.site-mnt-cond-help.hidden {
  display: none;
}
.site-mnt-cond-help-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.site-mnt-cond-help-panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 70dvh;
  overflow: auto;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 14px 16px max(16px, env(safe-area-inset-bottom, 0));
}
.site-mnt-cond-help-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.site-mnt-cond-help-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-mnt-cond-help-list li {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  background: #f8fafc;
}
.site-mnt-cond-help-list span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #475569;
}

/* Global Library */
.lz-module-toolbar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 12px;
}
.lz-module-toolbar__search {
  flex: 1;
  min-width: 0;
  margin-right: 20px;
}
.lz-module-toolbar .lz-module-icon-btn {
  flex-shrink: 0;
  margin-left: auto;
}
.lz-module-head-row {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lz-module-head-row > div:first-child {
  min-width: 0;
}
.lz-module-icon-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--lz-border, #e2e8f0);
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.lz-module-icon-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}
.lz-module-icon-btn:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}
.lz-library-upload-panel {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--lz-border, #e2e8f0);
  border-radius: 10px;
  background: #f8fafc;
}
.lz-library-upload-panel.hidden { display: none; }
.lz-library-upload-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.lz-library-upload-panel__head h3 {
  margin: 0;
  font-size: 15px;
}
.lz-library-upload-card { margin-bottom: 16px; }
.lz-library-upload-head h3 { margin: 0 0 6px; }
.lz-library-upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.lz-library-field { display: block; font-size: 13px; font-weight: 600; color: #475569; }
.lz-library-field input[type="text"] { width: 100%; margin-top: 6px; font-weight: 400; }
.lz-library-field--file { margin-top: 4px; }
.lz-library-field--file input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.lz-library-file-btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  font-weight: 600;
  cursor: pointer;
}
.lz-library-upload-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.lz-library-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.lz-library-row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  gap: 12px 14px;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  background: #f8fafc;
}
.lz-library-row--even { background: #f8fafc; }
.lz-library-row--odd { background: #eef6ff; border-color: #dbeafe; }
.lz-library-row__type {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.lz-library-row--odd .lz-library-row__type {
  background: #f0f9ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}
.lz-library-row__body { min-width: 0; }
.lz-library-row__title {
  margin: 0 0 2px;
  font-size: 0.95rem;
  line-height: 1.35;
  color: #0f172a;
  word-break: break-word;
}
.lz-library-row__meta,
.lz-library-row__desc {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  word-break: break-word;
}
.lz-library-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
@media (max-width: 640px) {
  .lz-library-row {
    grid-template-columns: 3rem minmax(0, 1fr);
  }
  .lz-library-row__actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }
  .lz-library-row__actions .btn { flex: 1 1 auto; }
}
.lz-library-card {
  border: 1px solid var(--lz-border, #e2e8f0);
  border-radius: 12px;
  padding: 14px 14px 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100%;
}
.lz-library-card__badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 2px 8px;
}
.lz-library-card__title { margin: 0; font-size: 15px; line-height: 1.35; }
.lz-library-card__filename { margin: 0; }
.lz-library-card__desc { margin: 0; font-size: 13px; color: #475569; }
.lz-library-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  margin-top: auto;
  padding-top: 6px;
}
.lz-library-card__pending { margin: 0; color: #b45309; }
.lz-library-card__actions { display: flex; gap: 8px; margin-top: 8px; }

/* Profile short name */
.lz-profile-shortname-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}
.lz-profile-shortname-form .pg-search-input {
  flex: 1 1 200px;
  max-width: 320px;
}

/* Site portal — login page layout + large touch fields */
.portal-site-auth-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #eef2f7;
  color: #0f172a;
  margin: 0;
}
.portal-site-auth-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  padding: max(10px, env(safe-area-inset-top, 0)) max(14px, env(safe-area-inset-right, 0)) 10px max(14px, env(safe-area-inset-left, 0));
}
.portal-site-auth-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px max(24px, env(safe-area-inset-bottom, 0));
}
.portal-site-auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 16px;
  padding: 32px 26px 28px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
  border: 1px solid #e2e8f0;
}
.portal-site-auth-page h1 {
  font-size: 28px;
  text-align: center;
  margin: 0 0 6px;
}
.portal-site-auth-label {
  display: block;
  margin-bottom: 18px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}
.portal-site-auth-input {
  display: block;
  width: 100%;
  margin-top: 8px;
  min-height: 56px;
  padding: 16px 18px;
  font-size: 20px;
  line-height: 1.25;
  border: 2px solid #94a3b8;
  border-radius: 12px;
  box-sizing: border-box;
  background: #fff;
  color: #0f172a;
  -webkit-appearance: none;
  appearance: none;
}
.portal-site-auth-input:focus {
  outline: none;
  border-color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.18);
}
.portal-site-auth-submit {
  width: 100%;
  min-height: 56px;
  margin-top: 22px;
  font-size: 20px;
  font-weight: 700;
  border-radius: 12px;
}

/* Site portal — light / dark toggle */
.portal-site-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.site-theme-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border: 2px solid #64748b;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  padding: 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}
.site-theme-toggle-icon {
  display: block;
  line-height: 1;
  pointer-events: none;
}

/* Site portal — dark mode (black background, light text) */
html[data-site-theme="dark"],
html.site-theme-dark {
  color-scheme: dark;
  --lz-bg: #0a0a0a;
  --lz-card: #141414;
  --lz-text: #f5f5f5;
  --lz-muted: #a3a3a3;
  --lz-border: #333333;
  --lz-surface-muted: #1a1a1a;
  --lz-red-soft: #3f1515;
  --lz-shadow: none;
  --admin-bg: #141414;
  --safety-bg: #1f1710;
}
html[data-site-theme="dark"] .portal-site-auth-page,
html.site-theme-dark .portal-site-auth-page,
body.site-theme-dark.portal-site-auth-page {
  background: #0a0a0a;
  color: #f5f5f5;
}
html[data-site-theme="dark"] body.portal-auth-body,
html[data-site-theme="dark"] body.portal-site-body {
  background: #0a0a0a;
  color: #f5f5f5;
}
html[data-site-theme="dark"] body.portal-auth-body {
  background: #0a0a0a;
}
html[data-site-theme="dark"] .portal-site-auth-card,
html[data-site-theme="dark"] .portal-auth-card,
html[data-site-theme="dark"] .portal-site-header,
html[data-site-theme="dark"] .portal-site-tabs,
html[data-site-theme="dark"] .portal-site-list,
html[data-site-theme="dark"] .portal-site-detail,
html[data-site-theme="dark"] .portal-site-announce {
  background: linear-gradient(180deg, #422006 0%, #141414 55%);
  border-color: #92400e;
}
html[data-site-theme="dark"] .portal-announce-card {
  background: #2a1a08;
  border-color: #78350f;
}
html[data-site-theme="dark"] .portal-announce-card-body { color: #fde68a; }
html[data-site-theme="dark"] .portal-announce-modal-dialog {
  background: #2a1a08;
  border-color: #92400e;
}
html[data-site-theme="dark"] .portal-announce-modal-body { color: #fef3c7; }
html[data-site-theme="dark"] .portal-env-card {
  background: #1a1a1a;
  border-color: #333;
}
html[data-site-theme="dark"] .portal-env-card-value { color: #f5f5f5; }
html[data-site-theme="dark"] .portal-env-card--weather {
  background: #172554;
  border-color: #1e3a8a;
  border-left-color: #60a5fa;
}
html[data-site-theme="dark"] .portal-env-card--weather .portal-env-card-icon {
  color: #93c5fd;
  background: #1e3a8a;
}
html[data-site-theme="dark"] .portal-env-card--weather h3 { color: #93c5fd; }
html[data-site-theme="dark"] .portal-env-card--temperature {
  background: #431407;
  border-color: #9a3412;
  border-left-color: #fb923c;
}
html[data-site-theme="dark"] .portal-env-card--temperature .portal-env-card-icon {
  color: #fdba74;
  background: #7c2d12;
}
html[data-site-theme="dark"] .portal-env-card--temperature h3 { color: #fdba74; }
html[data-site-theme="dark"] .portal-env-card--lightning {
  background: #2e1065;
  border-color: #5b21b6;
  border-left-color: #a78bfa;
}
html[data-site-theme="dark"] .portal-env-card--lightning .portal-env-card-icon {
  color: #c4b5fd;
  background: #4c1d95;
}
html[data-site-theme="dark"] .portal-env-card--lightning h3 { color: #c4b5fd; }
html[data-site-theme="dark"] .portal-env-card--medium,
html[data-site-theme="dark"] .portal-env-card--advisory { box-shadow: inset 0 0 0 1px rgba(250, 204, 21, 0.25); }
html[data-site-theme="dark"] .portal-env-card--high,
html[data-site-theme="dark"] .portal-env-card--severe { box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.3); }
html[data-site-theme="dark"] .portal-env-card--critical {
  background: #2a1212 !important;
  border-color: #7f1d1d !important;
}
html[data-site-theme="dark"] #sitePortalSafetyPanel .portal-site-list {
  background: linear-gradient(180deg, #2a2410 0%, #141414 45%);
  border-color: #78350f;
}
html[data-site-theme="dark"] #sitePortalSafetyPanel .portal-site-detail {
  background: linear-gradient(180deg, #14532d 0%, #141414 45%);
  border-color: #166534;
}
html[data-site-theme="dark"] .feed-meta {
  color: #a3a3a3;
}
html[data-site-theme="dark"] .portal-site-auth-label {
  color: #f5f5f5;
}
html[data-site-theme="dark"] .portal-auth-brand-line {
  color: #a3a3a3;
}
html[data-site-theme="dark"] .portal-site-auth-input {
  background: #1a1a1a;
  border-color: #555;
  color: #fff;
}
html[data-site-theme="dark"] .portal-site-auth-input:focus {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.22);
}
html[data-site-theme="dark"] .portal-site-auth .portal-auth-form label {
  color: #f5f5f5;
}
html[data-site-theme="dark"] .portal-site-auth .portal-auth-form input {
  background: #1a1a1a;
  border-color: #444;
  color: #fff;
}
html[data-site-theme="dark"] .portal-site-auth .portal-auth-form input:focus {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}
html[data-site-theme="dark"] .site-theme-toggle {
  background: #1a1a1a;
  border-color: #555;
  color: #fbbf24;
}
html[data-site-theme="dark"] .site-dr-card,
html[data-site-theme="dark"] .site-plan-card,
html[data-site-theme="dark"] .site-work-tile,
html[data-site-theme="dark"] .site-mp-row,
html[data-site-theme="dark"] .site-mnt-field,
html[data-site-theme="dark"] .site-work-sticky-plan,
html[data-site-theme="dark"] .site-fs-topbar,
html[data-site-theme="dark"] .site-fs-back,
html[data-site-theme="dark"] .client-tile,
html[data-site-theme="dark"] .site-dr-lifecycle {
  background: #141414;
  border-color: #333;
  color: #f5f5f5;
}
html[data-site-theme="dark"] .site-dr-card--today,
html[data-site-theme="dark"] .site-dr-card--submitted {
  background: #052e16;
  border-color: #166534;
}
html[data-site-theme="dark"] .site-dr-card--yesterday,
html[data-site-theme="dark"] .site-dr-card--overdue {
  background: #450a0a;
  border-color: #991b1b;
}
html[data-site-theme="dark"] .site-dr-today-star { color: #86efac; }
html[data-site-theme="dark"] .site-dr-lifecycle-stage { background: #1a1a1a; border-color: #444; }
html[data-site-theme="dark"] .site-dr-lifecycle-stage--done { background: #14532d; border-color: #166534; }
html[data-site-theme="dark"] .site-dr-lifecycle-stage--active { background: #3f1515; border-color: #f87171; }
html[data-site-theme="dark"] .site-dr-lifecycle-alert { background: #450a0a; border-color: #991b1b; color: #fecaca; }
html[data-site-theme="dark"] .site-dr-lifecycle-compact { color: #cbd5e1; }
html[data-site-theme="dark"] .site-dr-card.is-active,
html[data-site-theme="dark"] .site-plan-card:active {
  background: #1f1f1f;
  border-color: #f87171;
}
html[data-site-theme="dark"] .site-dr-card-head,
html[data-site-theme="dark"] .site-work-tile-title,
html[data-site-theme="dark"] .site-plan-stat strong {
  color: #f87171;
}
html[data-site-theme="dark"] .site-dr-date-badge {
  color: #fcd34d;
  background: #422006;
}
html[data-site-theme="dark"] .site-dr-date-badge--today {
  color: #86efac;
  background: #14532d;
}
html[data-site-theme="dark"] .site-dr-date-badge--yesterday,
html[data-site-theme="dark"] .site-dr-date-badge--overdue {
  color: #fecaca;
  background: #7f1d1d;
}
html[data-site-theme="dark"] .site-dr-pending-badge {
  color: #93c5fd;
  background: #1e3a8a;
}
html[data-site-theme="dark"] .site-fs-screen,
html[data-site-theme="dark"] .site-work-fullscreen .portal-site-detail {
  background: #0a0a0a;
}
html[data-site-theme="dark"] .site-fs-title,
html[data-site-theme="dark"] .site-plan-card-no {
  color: #f5f5f5;
}
html[data-site-theme="dark"] .site-fs-back {
  color: #f5f5f5;
}
html[data-site-theme="dark"] .site-mnt-toggle-btn,
html[data-site-theme="dark"] .site-mnt-choice-btn,
html[data-site-theme="dark"] .site-mnt-help-btn,
html[data-site-theme="dark"] .site-mnt-chamber-input,
html[data-site-theme="dark"] .pg-search-input,
html[data-site-theme="dark"] .portal-site-tab {
  background: #1a1a1a;
  border-color: #444;
  color: #e5e5e5;
}
html[data-site-theme="dark"] .portal-site-tab-badge {
  box-shadow: 0 0 0 2px #1a1a1a, 0 0 0 4px rgba(248, 113, 113, 0.45);
}
html[data-site-theme="dark"] .portal-site-tab.is-active .portal-site-tab-badge {
  background: #fff;
  color: #b91c1c;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}
html[data-site-theme="dark"] .portal-site-tab--safety.has-pending:not(.is-active) {
  border-color: #f87171;
  background: #450a0a;
  color: #fecaca;
}
html[data-site-theme="dark"] .site-mnt-toggle-btn.is-active,
html[data-site-theme="dark"] .portal-site-tab.is-active {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}
html[data-site-theme="dark"] .site-mnt-chamber-type-toggle .site-mnt-toggle-btn[data-value="V"]:not(.is-active) {
  background: #2a1515;
  color: #fca5a5;
}
html[data-site-theme="dark"] .site-mnt-chamber-type-toggle .site-mnt-toggle-btn[data-value="S"]:not(.is-active) {
  background: #172554;
  color: #93c5fd;
}
html[data-site-theme="dark"] .site-mnt-chamber-type-toggle .site-mnt-toggle-btn[data-value="V"].is-active {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}
html[data-site-theme="dark"] .site-mnt-chamber-type-toggle .site-mnt-toggle-btn[data-value="S"].is-active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}
html[data-site-theme="dark"] .site-mnt-take-photo {
  background: #0369a1;
  border-color: #0369a1;
  color: #fff;
}
html[data-site-theme="dark"] .site-mnt-save-next {
  background: #15803d;
  border-color: #15803d;
  color: #fff;
}
html[data-site-theme="dark"] .site-mnt-choice-btn.is-active {
  background: #2a1515;
  border-color: #f87171;
  color: #fca5a5;
}
html[data-site-theme="dark"] .site-mnt-field-label,
html[data-site-theme="dark"] .site-work-plan-label {
  color: #a3a3a3;
}
html[data-site-theme="dark"] .site-mp-row--supervisor {
  background: #1f1710;
  border-color: #78350f;
}
html[data-site-theme="dark"] .portal-site-detail .mnt-dr-context {
  background: #172554;
  border-color: #1e40af;
  color: #bfdbfe;
}
html[data-site-theme="dark"] .site-work-bottom-bar {
  background: linear-gradient(transparent, #0a0a0a 24%);
}
html[data-site-theme="dark"] .site-mnt-seq-display {
  background: #1a1a1a;
  border-color: #444;
  color: #fff;
}
html[data-site-theme="dark"] .site-mnt-gps-status.is-ready {
  color: #86efac;
}
html[data-site-theme="dark"] .site-mnt-gps-status.is-missing {
  color: #fca5a5;
}
html[data-site-theme="dark"] .site-mnt-upload-status {
  color: #fbbf24;
}
html[data-site-theme="dark"] .site-mnt-cond-help-panel {
  background: #141414;
  border-color: #333;
  color: #f5f5f5;
}
html[data-site-theme="dark"] .btn:not(.btn-primary) {
  background: #1a1a1a;
  border-color: #444;
  color: #e5e5e5;
}
html[data-site-theme="dark"] h2,
html[data-site-theme="dark"] h3,
html[data-site-theme="dark"] h4,
html[data-site-theme="dark"] strong {
  color: #f5f5f5;
}

/* Shared cards / forms used inside site portal detail */
html[data-site-theme="dark"] .section-card,
html[data-site-theme="dark"] .portal-site-detail .section-card,
html[data-site-theme="dark"] .site-dr-section,
html[data-site-theme="dark"] .site-mp-section,
html[data-site-theme="dark"] .site-field-tbm-submit {
  background: #141414;
  border-color: #333;
  color: #f5f5f5;
  box-shadow: none;
}
html[data-site-theme="dark"] .section-card h3,
html[data-site-theme="dark"] .section-card h4,
html[data-site-theme="dark"] .site-mp-section-head h4 {
  color: #e5e5e5;
}
html[data-site-theme="dark"] .portal-site-main,
html[data-site-theme="dark"] .portal-site-body {
  background: #0a0a0a;
  color: #f5f5f5;
}
html[data-site-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-site-theme="dark"] select,
html[data-site-theme="dark"] textarea,
html[data-site-theme="dark"] .pg-search-input,
html[data-site-theme="dark"] .site-mp-team-field input[type="time"],
html[data-site-theme="dark"] .site-mp-start,
html[data-site-theme="dark"] .site-mp-end {
  background: #1a1a1a !important;
  border-color: #444 !important;
  color: #f5f5f5 !important;
  color-scheme: dark;
}
html[data-site-theme="dark"] .site-mp-team-field,
html[data-site-theme="dark"] .site-mp-team-field-label,
html[data-site-theme="dark"] .site-mp-individual-toggle,
html[data-site-theme="dark"] .site-mp-name,
html[data-site-theme="dark"] .site-mp-code,
html[data-site-theme="dark"] .site-mp-add-label {
  color: #e5e5e5;
}
html[data-site-theme="dark"] .site-mp-team-field--readonly .site-mp-team-start-ro,
html[data-site-theme="dark"] .site-mp-lunch-ot,
html[data-site-theme="dark"] .site-plan-star {
  background: #1a1a1a;
  border-color: #444;
  color: #e5e5e5;
}
html[data-site-theme="dark"] .site-mp-office-note {
  background: #1f1710;
  border-color: #78350f;
  color: #fde68a;
}
html[data-site-theme="dark"] .site-mp-summary-item {
  border-color: #333;
}
html[data-site-theme="dark"] .site-mp-summary-item--supervisor {
  background: #1f1710;
}
html[data-site-theme="dark"] .site-mp-summary-times,
html[data-site-theme="dark"] .site-mp-row-times-line {
  color: #93c5fd;
}
html[data-site-theme="dark"] .site-mp-row--name,
html[data-site-theme="dark"] .site-mp-row--compact {
  border-color: #333;
  background: transparent;
}
html[data-site-theme="dark"] .site-mp-star:not(.is-static):hover {
  background: #422006;
  color: #fbbf24;
}
html[data-site-theme="dark"] .site-plan-star.is-fav {
  background: #422006;
  border-color: #b45309;
  color: #fbbf24;
}
html[data-site-theme="dark"] .site-ftbm-worker-row,
html[data-site-theme="dark"] .site-ftbm-sig-card {
  background: #141414;
  border-color: #333;
  color: #f5f5f5;
}
html[data-site-theme="dark"] .site-ftbm-worker-row--supervisor {
  background: #1f1710;
  border-color: #78350f;
}
html[data-site-theme="dark"] .site-ftbm-sig-thumb,
html[data-site-theme="dark"] .site-ftbm-sig-thumb--empty,
html[data-site-theme="dark"] .site-ftbm-sig-card canvas {
  background: #1a1a1a;
  border-color: #444;
}
html[data-site-theme="dark"] .site-ftbm-sig-btn.is-signed {
  background: #14532d;
  border-color: #166534;
  color: #86efac;
}
html[data-site-theme="dark"] .site-toggle-row,
html[data-site-theme="dark"] .site-dr-detail-head,
html[data-site-theme="dark"] .site-work-head {
  color: #e5e5e5;
}
html[data-site-theme="dark"] .lz-modal-dialog,
html[data-site-theme="dark"] .hosted-error-card {
  background: #141414;
  border-color: #333;
  color: #f5f5f5;
}
html[data-site-theme="dark"] .data-table th,
html[data-site-theme="dark"] .data-table td {
  border-color: #333;
  color: #e5e5e5;
}
html[data-site-theme="dark"] .data-table thead th {
  background: #1a1a1a;
}
html[data-site-theme="dark"] .site-safety-item,
html[data-site-theme="dark"] .site-asset-card,
html[data-site-theme="dark"] .site-visitor-card,
html[data-site-theme="dark"] .portal-site-card {
  background: #141414;
  border-color: #333;
  color: #f5f5f5;
}
html[data-site-theme="dark"] .site-visitor-pick-btn,
html[data-site-theme="dark"] .site-visitor-create-panel,
html[data-site-theme="dark"] .site-visitor-thumb {
  background: #1a1a1a;
  border-color: #444;
  color: #f5f5f5;
}
html[data-site-theme="dark"] .site-visitor-pick-btn.is-selected {
  background: #172554;
  border-color: #3b82f6;
  color: #bfdbfe;
}
html[data-site-theme="dark"] .site-visitor-dir-row {
  border-color: #333;
}
html[data-site-theme="dark"] .mnt-photo-gallery-section,
html[data-site-theme="dark"] .mnt-photo-gallery-thumb,
html[data-site-theme="dark"] .mnt-photo-gallery-modal-inner,
html[data-site-theme="dark"] .client-photo-card,
html[data-site-theme="dark"] .client-photo-modal-inner {
  background: #141414;
  border-color: #333;
  color: #f5f5f5;
}
html[data-site-theme="dark"] .site-mnt-field--tone-gps,
html[data-site-theme="dark"] .site-mnt-field--tone-chamber,
html[data-site-theme="dark"] .site-mnt-field--tone-pressure,
html[data-site-theme="dark"] .site-mnt-field--tone-surface {
  background: #1a1a1a;
  border-color: #444;
  color: #f5f5f5;
}
html[data-site-theme="dark"] .site-mnt-field--tone-chamber { border-color: #7f1d1d; }
html[data-site-theme="dark"] .site-mnt-field--tone-pressure { border-color: #92400e; background: #1f1710; }
html[data-site-theme="dark"] .site-mnt-field--tone-surface { border-color: #9a3412; background: #1c1410; }

/* Maintenance folder board — drag/drop category routing */
.mnt-folder-board-root { display: grid; gap: 16px; }
.mnt-folder-step { display: grid; gap: 10px; }
.mnt-folder-step-title { margin: 0; font-size: 1.05rem; font-weight: 700; }
.mnt-folder-step-lead { margin: 0; }
.mnt-folder-purpose { margin: 0; font-size: 0.8rem; color: #475569; }
.mnt-folder-routing-toolbar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: end;
  padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc;
}
.mnt-folder-routing-meta { margin-left: auto; font-weight: 600; }
.mnt-folder-routing-wrap { max-height: 420px; overflow: auto; border: 1px solid #e2e8f0; border-radius: 8px; }
.mnt-folder-routing-table { font-size: 0.82rem; margin: 0; }
.mnt-folder-routing-table .mnt-folder-route-select { min-width: 140px; font-size: 0.8rem; }
.mnt-folder-routing-table .mnt-folder-path-cell { font-size: 0.75rem; word-break: break-all; }
.mnt-folder-routing-row-hidden { display: none; }
.mnt-folder-route-mode {
  display: inline-block; padding: 2px 6px; border-radius: 4px; font-size: 0.72rem; font-weight: 600;
}
.mnt-folder-route-mode--auto { background: #ecfdf5; color: #065f46; }
.mnt-folder-route-mode--manual { background: #fef3c7; color: #92400e; }
.mnt-folder-routing-details {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  background: #fafafa;
}
.mnt-folder-routing-details summary {
  cursor: pointer;
  font-weight: 700;
  margin-bottom: 8px;
}
.mnt-folder-tier2-field,
.mnt-folder-tier3-field,
.mnt-folder-add-regime-label {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}
.mnt-folder-tier2-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: end;
}
.mnt-folder-tier2-folder-label,
.mnt-folder-tier3-folder-label {
  font-size: 13px;
  color: #475569;
}
.mnt-folder-tier3-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-left: 10px;
  border-left: 3px solid #e2e8f0;
}
.mnt-folder-tier3 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: end;
}
.mnt-folder-add-regime {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #cbd5e1;
}
.mnt-folder-add-regime-done { margin: 12px 0 0; }
html[data-site-theme="dark"] .mnt-folder-routing-details { background: #1e293b; border-color: #334155; }
html[data-site-theme="dark"] .mnt-folder-purpose { color: #94a3b8; }
.mnt-folder-path-fixed {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  padding: 12px 14px; border-radius: 10px; background: #f8fafc; border: 1px solid #e2e8f0;
  font-size: 0.92rem;
}
.mnt-folder-path-seg { padding: 4px 8px; border-radius: 6px; background: #fff; border: 1px solid #e2e8f0; }
.mnt-folder-path-variable { background: #fef3c7; border-color: #fcd34d; font-weight: 600; }
.mnt-folder-path-sep { color: #94a3b8; font-weight: 600; }
.mnt-folder-roots {
  display: grid; grid-template-columns: repeat(2, minmax(300px, 1fr)); gap: 14px;
}
@media (max-width: 720px) {
  .mnt-folder-roots { grid-template-columns: 1fr; }
}
.mnt-folder-root-card {
  border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px; background: #fff;
  display: grid; gap: 10px; align-content: start; min-width: 0;
}
.mnt-folder-card-summary {
  display: grid; gap: 10px; padding: 10px 12px; border-radius: 8px;
  background: #f8fafc; border: 1px solid #e2e8f0;
}
.mnt-folder-tree-summary-text { margin: 0; font-size: 0.85rem; }
.mnt-folder-tier-editor-host.hidden { display: none !important; }
.mnt-folder-tree-modal {
  position: fixed; inset: 0; z-index: 10070; background: rgba(15, 23, 42, 0.55);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.mnt-folder-tree-modal.hidden { display: none; }
.mnt-folder-tree-modal-inner {
  width: min(760px, 100%); max-height: 92vh; overflow: auto;
}
.mnt-folder-tree-modal-body {
  display: grid; gap: 12px; padding: 4px 0 12px;
}
.mnt-folder-tree-modal-body .mnt-folder-tier2-list { display: grid; gap: 12px; }
.mnt-folder-tree-modal-body .mnt-folder-tier2-head {
  grid-template-columns: 1fr minmax(100px, 140px) auto;
}
.mnt-folder-tree-modal-body .mnt-folder-tier2--gsiv .mnt-folder-tier2-head {
  grid-template-columns: 1fr minmax(120px, 160px) auto;
}
.mnt-folder-tree-modal-foot {
  display: flex; justify-content: flex-end; gap: 8px; padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}
html[data-site-theme="dark"] .mnt-folder-tree-modal-inner { background: #0f172a; }
html[data-site-theme="dark"] .mnt-folder-card-summary { background: #1e293b; border-color: #334155; }
.mnt-folder-root-card.is-nested { border-color: #cbd5e1; }
.mnt-folder-root-head { display: grid; gap: 4px; }
.mnt-folder-tree-note { margin: 0; font-size: 0.78rem; }
.mnt-folder-tier2-list { display: grid; gap: 10px; }
.mnt-folder-tier2 {
  border: 1px dashed #cbd5e1; border-radius: 8px; padding: 8px; background: #f8fafc;
  display: grid; gap: 8px;
}
.mnt-folder-tier2-head {
  display: grid; grid-template-columns: 1fr 100px auto; gap: 6px; align-items: center;
}
.mnt-folder-tier3-list { display: grid; gap: 6px; padding-left: 8px; border-left: 3px solid #e2e8f0; }
.mnt-folder-tier3 {
  display: grid; grid-template-columns: 1fr 120px auto; gap: 6px; align-items: center;
}
.mnt-folder-override-box { margin-top: 4px; }
.mnt-folder-override-box summary { cursor: pointer; font-weight: 600; font-size: 0.85rem; }
.mnt-folder-bulk-wrap { border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 12px; background: #fafafa; }
.mnt-folder-bulk-wrap summary { cursor: pointer; font-weight: 600; }
.mnt-folder-bulk-toolbar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-bottom: 8px;
}
.mnt-folder-bulk-pool { min-height: 72px; max-height: 220px; overflow: auto; }
.mnt-folder-chip.is-selected { background: #fef3c7; border-color: #f59e0b; box-shadow: 0 0 0 2px #fde68a; }
.mnt-folder-chip-check { margin: 0; flex-shrink: 0; }
.mnt-folder-chip-surface { color: #334155; }
.mnt-folder-board-layout {
  display: grid; grid-template-columns: minmax(240px, 280px) 1fr; gap: 16px; align-items: start;
}
@media (max-width: 900px) {
  .mnt-folder-board-layout { grid-template-columns: 1fr; }
}
.mnt-folder-pool {
  border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px; background: #fff;
}
.mnt-folder-columns-wrap { min-width: 0; }
.mnt-folder-columns-head {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px;
}
.mnt-folder-section-title { margin: 0 0 6px; font-size: 1rem; }
.mnt-folder-columns {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start;
}
.mnt-folder-col {
  flex: 1 1 200px; max-width: 260px; min-width: 180px;
  border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px; background: #fff;
}
.mnt-folder-col.is-locked { background: #f8fafc; border-style: dashed; }
.mnt-folder-col-name { width: 100%; margin-bottom: 4px; font-weight: 600; }
.mnt-folder-col-code { margin: 0 0 8px; font-size: 0.78rem; }
.mnt-folder-col-note { margin: 0 0 8px; font-size: 0.8rem; }
.mnt-folder-dropzone {
  min-height: 120px; padding: 8px; border-radius: 8px; border: 2px dashed #cbd5e1;
  display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start;
  transition: border-color 0.15s, background 0.15s;
}
.mnt-folder-dropzone.drag-over { border-color: #b91c1c; background: #fef2f2; }
.mnt-folder-dropzone.is-locked { min-height: 48px; border-style: solid; border-color: #e2e8f0; background: #f1f5f9; }
.mnt-folder-drop-hint { color: #94a3b8; font-size: 0.82rem; align-self: center; width: 100%; text-align: center; }
.mnt-folder-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px;
  border-radius: 999px; background: #eff6ff; border: 1px solid #bfdbfe;
  font-size: 0.78rem; cursor: grab; user-select: none;
}
.mnt-folder-chip.is-dragging { opacity: 0.55; cursor: grabbing; }
.mnt-folder-chip-kind {
  font-weight: 700; width: 1.1em; text-align: center;
  background: #1e40af; color: #fff; border-radius: 4px; padding: 1px 3px;
}
.mnt-folder-chip-pressure { color: #7c3aed; font-weight: 600; }
.mnt-folder-col-tiers { display: block; margin: 0 0 8px; font-size: 0.78rem; }
.mnt-folder-col-tiers-input { width: 100%; font-size: 0.78rem; margin-top: 2px; }
.mnt-folder-chip-cond { font-weight: 600; color: #0f172a; }
.mnt-folder-preview-wrap { margin-top: 8px; }
.mnt-folder-preview-table { font-size: 0.82rem; }
.mnt-folder-preview-table .mnt-folder-path-cell { font-size: 0.75rem; word-break: break-all; }
.mnt-folder-mode {
  display: inline-block; padding: 2px 6px; border-radius: 4px; font-size: 0.72rem; font-weight: 600;
}
.mnt-folder-mode--override { background: #fef3c7; color: #92400e; }
.mnt-folder-mode--default { background: #ecfdf5; color: #065f46; }
.mnt-folder-advanced {
  border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 14px; background: #fafafa;
}
.mnt-folder-advanced summary { cursor: pointer; font-weight: 600; }
.mnt-photo-path-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin-top: 10px;
}
html[data-site-theme="dark"] .mnt-folder-path-fixed { background: #1e293b; border-color: #334155; }
html[data-site-theme="dark"] .mnt-folder-path-seg { background: #0f172a; border-color: #334155; color: #e2e8f0; }
html[data-site-theme="dark"] .mnt-folder-path-variable { background: #422006; border-color: #92400e; color: #fde68a; }
html[data-site-theme="dark"] .mnt-folder-pool,
html[data-site-theme="dark"] .mnt-folder-col,
html[data-site-theme="dark"] .mnt-folder-root-card,
html[data-site-theme="dark"] .mnt-folder-tier2 { background: #0f172a; border-color: #334155; }
html[data-site-theme="dark"] .mnt-folder-chip { background: #1e3a5f; border-color: #2563eb; color: #e2e8f0; }
html[data-site-theme="dark"] .mnt-folder-advanced,
html[data-site-theme="dark"] .mnt-folder-bulk-wrap { background: #0f172a; border-color: #334155; }

/* Maintenance photo overlay strip editor */
.mnt-photo-overlay-card { overflow: hidden; max-width: 100%; box-sizing: border-box; }
.mnt-overlay-controls {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px;
  margin-bottom: 14px; padding: 12px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc;
}
.mnt-overlay-control { display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; }
.mnt-overlay-control input[type="range"] { width: 100%; }
.mnt-overlay-widths { grid-column: 1 / -1; }
.mnt-overlay-widths .feed-meta { margin-bottom: 4px; }
.mnt-overlay-widths label { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; }
.mnt-overlay-width-input { width: 4.5em; }
.mnt-overlay-preview-host { margin-bottom: 16px; max-width: 100%; overflow: hidden; }
.mnt-overlay-preview {
  border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden;
  width: 100%; max-width: 100%; box-sizing: border-box;
}
.mnt-overlay-preview-photo {
  background: #f8fafc; padding: 32px 12px; text-align: center; color: #64748b; font-size: 12px;
}
.mnt-overlay-preview-footer {
  display: grid;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  min-height: 88px;
  font-size: 11px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.mnt-overlay-col {
  padding: 8px 10px;
  border-right: 1px solid #e2e8f0;
  overflow: hidden;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}
.mnt-overlay-col:last-child { border-right: none; }
.mnt-overlay-mid,
.mnt-overlay-right {
  line-height: 1.4;
  color: #334155;
}
.mnt-overlay-line {
  margin: 0 0 4px;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.mnt-overlay-line:last-child { margin-bottom: 0; }
.mnt-overlay-right { color: #334155; }
.mnt-overlay-map { background: #f1f5f9; min-height: 72px; position: relative; }
.mnt-overlay-map-wrap { position: relative; width: 100%; min-height: 72px; height: 100%; overflow: hidden; }
.mnt-overlay-map-img { width: 100%; min-height: 72px; height: 100%; display: flex; align-items: center; justify-content: center; color: #64748b; font-size: 10px; }
.mnt-overlay-map-pin {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -85%);
  font-size: 22px; line-height: 1; pointer-events: none; text-shadow: 0 1px 2px #fff, 0 0 4px #fff;
  z-index: 2;
}
.mnt-overlay-map-coords {
  position: absolute; left: 4px; bottom: 2px; font-size: 8px; color: #334155;
  background: rgba(255,255,255,0.82); padding: 1px 4px; border-radius: 3px; z-index: 2;
  max-width: calc(100% - 8px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mnt-overlay-map-off { color: #94a3b8; font-size: 11px; }
.mnt-overlay-board {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  max-width: 100%; min-width: 0;
}
@media (max-width: 1100px) {
  .mnt-overlay-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .mnt-overlay-board { grid-template-columns: 1fr; }
}
.mnt-overlay-board-col {
  border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px; background: #fff;
  min-width: 0; overflow: hidden; box-sizing: border-box;
}
.mnt-overlay-board-col--pool { background: #fafafa; border-style: dashed; }
.mnt-overlay-board-col h5 { margin: 0 0 4px; font-size: 0.95rem; }
.mnt-overlay-dropzone {
  min-height: 100px; margin-top: 8px; padding: 8px; border-radius: 8px;
  border: 2px dashed #cbd5e1; display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start;
}
.mnt-overlay-dropzone.drag-over { border-color: #b91c1c; background: #fef2f2; }
.mnt-overlay-dropzone--pool { min-height: 120px; }
.mnt-overlay-dropzone--rows { display: flex; flex-direction: column; gap: 4px; min-height: 140px; min-width: 0; overflow: hidden; }
.mnt-overlay-drop-hint { color: #94a3b8; font-size: 0.8rem; width: 100%; text-align: center; }
.mnt-overlay-row {
  display: flex; align-items: center; gap: 4px; padding: 6px 8px;
  background: #fff; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 0.88rem;
  min-width: 0; width: 100%; max-width: 100%; box-sizing: border-box; flex-wrap: wrap;
}
.mnt-overlay-row.is-dragging { opacity: 0.55; }
.mnt-overlay-row-drag { cursor: grab; color: #94a3b8; font-size: 0.75rem; user-select: none; flex: 0 0 auto; }
.mnt-overlay-row-label { flex: 1 1 72px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mnt-overlay-row-actions { display: inline-flex; align-items: center; gap: 2px; flex: 0 0 auto; flex-wrap: wrap; max-width: 100%; }
.mnt-overlay-row-btn {
  border: 1px solid #cbd5e1; background: #f8fafc; color: #334155; border-radius: 4px;
  min-width: 24px; height: 24px; padding: 0 4px; font-size: 0.78rem; cursor: pointer; line-height: 1;
}
.mnt-overlay-row-btn:hover { border-color: #b91c1c; color: #b91c1c; }
.mnt-overlay-row-btn.is-on { background: #1e293b; color: #fff; border-color: #1e293b; font-weight: 700; }
.mnt-overlay-row-size-label { min-width: 14px; text-align: center; font-size: 0.72rem; color: #64748b; font-weight: 600; }
.mnt-overlay-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px 4px 10px;
  border-radius: 999px; background: #eff6ff; border: 1px solid #bfdbfe; font-size: 0.8rem; cursor: grab;
}
.mnt-overlay-chip.is-dragging { opacity: 0.55; }
.mnt-overlay-chip-del {
  border: none; background: transparent; color: #64748b; cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 2px;
}
.mnt-overlay-chip-del:hover { color: #b91c1c; }
.mnt-overlay-preview-footnote { margin: 6px 0 0; font-size: 0.82rem; }
.mnt-overlay-new-only-note {
  padding: 8px 10px; border-radius: 8px; background: #fffbeb; border: 1px solid #fcd34d; margin-bottom: 10px;
}
html[data-site-theme="dark"] .mnt-overlay-controls { background: #1e293b; border-color: #334155; }
html[data-site-theme="dark"] .mnt-overlay-preview,
html[data-site-theme="dark"] .mnt-overlay-board-col { background: #0f172a; border-color: #334155; }
html[data-site-theme="dark"] .mnt-overlay-chip { background: #1e3a5f; border-color: #2563eb; color: #e2e8f0; }
html[data-site-theme="dark"] .mnt-overlay-row { background: #1e293b; border-color: #475569; color: #e2e8f0; }
html[data-site-theme="dark"] .mnt-overlay-row-btn { background: #0f172a; border-color: #475569; color: #e2e8f0; }
html[data-site-theme="dark"] .mnt-overlay-map-coords { background: rgba(15,23,42,0.85); color: #e2e8f0; }
html[data-site-theme="dark"] .mnt-overlay-new-only-note { background: #422006; border-color: #92400e; color: #fde68a; }

/* UG Maintenance → Export — client share toggles & batch groups */
.mnt-export-plan-row--share { background: #ecfdf5; }
.mnt-export-plan-row--live { background: #dbeafe; }
.mnt-export-share-toggle {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none;
  font-size: 12px; font-weight: 600; color: #475569; margin: 0;
}
.mnt-export-share-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mnt-export-share-toggle-ui {
  width: 36px; height: 20px; border-radius: 999px; background: #cbd5e1; position: relative;
  transition: background .15s ease; flex: 0 0 auto;
}
.mnt-export-share-toggle-ui::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.25);
  transition: transform .15s ease;
}
.mnt-export-share-toggle input:checked + .mnt-export-share-toggle-ui { background: #0f766e; }
.mnt-export-share-toggle input:checked + .mnt-export-share-toggle-ui::after { transform: translateX(16px); }
.mnt-export-share-toggle input:checked ~ .mnt-export-share-toggle-label { color: #0f766e; }
.mnt-export-share-toggle.is-live .mnt-export-share-toggle-label::after {
  content: ' · live'; color: #15803d; font-weight: 500;
}
.mnt-export-share-group {
  border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: #fff;
}
.mnt-export-share-group.is-ended { opacity: .72; background: #f8fafc; }
.mnt-export-share-group-head {
  display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: flex-start;
}
.mnt-export-share-group-title { display: grid; gap: 2px; min-width: 0; }
.mnt-export-share-group-meta {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end;
}
.mnt-export-share-status {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
}
.mnt-export-share-status--active { background: #dbeafe; color: #1d4ed8; }
.mnt-export-share-status--ok { background: #dcfce7; color: #15803d; }
.mnt-export-share-status--ended { background: #e2e8f0; color: #64748b; }
.mnt-export-share-group-plans { margin: 8px 0 0; word-break: break-word; }
.mnt-export-share-group-actions { margin-top: 8px; }
.mnt-export-share-detail-table { margin-top: 8px; }

/* UG Maintenance → Data summary — Share / CSV action columns */
.mnt-summary-share-td { min-width: 6.5rem; vertical-align: middle; }
.mnt-summary-share-cell {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
}
.mnt-summary-share-meta {
  font-size: 11px; font-weight: 600; color: #475569; line-height: 1.25;
}
.mnt-summary-share-meta.is-live { color: #0f766e; }
.mnt-summary-share-meta.is-expired { color: #94a3b8; font-weight: 500; }
.mnt-summary-action-btn {
  appearance: none;
  margin: 0;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  cursor: pointer;
  white-space: nowrap;
}
.mnt-summary-action-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  color: #0f172a;
}
.mnt-summary-export-btn {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}
.mnt-summary-export-btn:hover {
  border-color: #93c5fd;
  background: #dbeafe;
  color: #1e40af;
}
.mnt-summary-export-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mnt-summary-export-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-width: 28px;
  padding: 3px 0;
  border-color: #bfdbfe;
  background: #fff;
  color: #2563eb;
}
.mnt-summary-export-dl:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}
.mnt-summary-export-dl-icon {
  display: block;
}
.mnt-summary-share-btn {
  border-color: #99f6e4;
  background: #f0fdfa;
  color: #0f766e;
}
.mnt-summary-share-btn:hover {
  border-color: #5eead4;
  background: #ccfbf1;
  color: #115e59;
}
.mnt-summary-action-btn--quiet {
  border-color: #e2e8f0;
  background: #fff;
  color: #64748b;
  font-weight: 600;
}
.mnt-summary-action-btn--quiet:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #475569;
}
.mnt-summary-share-btn,
.mnt-summary-share-revoke,
.mnt-summary-export-btn { white-space: nowrap; }

/* AG LGSW stamp — 3 lines, blue, no border */
.ag-lgsw-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: auto;
  min-width: 140px;
  max-width: 280px;
  padding: 4px 6px;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #1d4ed8;
  text-align: center;
  font-family: "Times New Roman", Georgia, "Palatino Linotype", serif;
  line-height: 1.25;
  transform: none;
}
.ag-lgsw-stamp-name,
.ag-lgsw-stamp-role,
.ag-lgsw-stamp-license {
  width: 100%;
  text-align: center;
  color: #1d4ed8;
  margin: 0;
  padding: 0;
}
.ag-lgsw-stamp-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.ag-lgsw-stamp-role {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.ag-lgsw-stamp-license {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.ag-lgsw-stamp--compact {
  min-width: 120px;
  max-width: 220px;
}
.ag-lgsw-stamp--compact .ag-lgsw-stamp-name { font-size: 12px; }
.ag-lgsw-stamp--compact .ag-lgsw-stamp-role { font-size: 11px; }
.ag-lgsw-stamp--compact .ag-lgsw-stamp-license { font-size: 11px; }

/* LGSW roster — Time Card day-deck style (single layout) */
.ag-lgsw-panel {
  margin-top: 14px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  padding: 12px 14px 14px;
}
.ag-lgsw-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 10px;
}
.ag-lgsw-panel__head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}
.ag-lgsw-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.ag-lgsw-summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  color: #475569;
}
.ag-lgsw-summary-pill strong {
  font-size: 14px;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}
.ag-lgsw-summary-pill--ok {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}
.ag-lgsw-summary-pill--ok strong { color: #166534; }
.ag-lgsw-picker { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.ag-lgsw-deck {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ag-lgsw-card {
  display: grid;
  grid-template-columns: 4px minmax(140px, 1.1fr) minmax(150px, 220px) auto auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 8px;
  padding: 8px 12px 8px 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.ag-lgsw-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.ag-lgsw-card.is-expanded {
  grid-template-columns: 4px 1fr;
  align-items: start;
}
.ag-lgsw-card.is-minimized .ag-lgsw-card-expanded { display: none; }
.ag-lgsw-card:not(.is-minimized) .ag-lgsw-row-actions--mini { display: none; }
.ag-lgsw-card.is-expanded .ag-lgsw-row-stamp,
.ag-lgsw-card.is-expanded .ag-lgsw-row-badges,
.ag-lgsw-card.is-expanded .ag-lgsw-row-actions--mini { display: none; }
.ag-lgsw-card__rail {
  width: 4px;
  align-self: stretch;
  border-radius: 10px 0 0 10px;
  background: #94a3b8;
  margin: -8px 0 -8px 0;
  min-height: 44px;
}
.ag-lgsw-card.is-lgsw .ag-lgsw-card__rail { background: #2563eb; }
.ag-lgsw-card.is-lgsw-r .ag-lgsw-card__rail { background: #4f46e5; }
.ag-lgsw-card.is-both .ag-lgsw-card__rail {
  background: linear-gradient(180deg, #2563eb 0%, #4f46e5 100%);
}
.ag-lgsw-card__who {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 4px;
}
.ag-lgsw-card__name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}
.ag-lgsw-card__meta {
  font-size: 12px;
  color: #64748b;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ag-lgsw-row-stamp {
  justify-self: center;
}
.ag-lgsw-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.ag-lgsw-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}
.ag-lgsw-badge.is-r {
  border-color: #c4b5fd;
  background: #f5f3ff;
  color: #5b21b6;
}
.ag-lgsw-badge.is-card {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}
.ag-lgsw-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.ag-lgsw-card-body {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 4px 0 2px;
}
.ag-lgsw-card-expanded {
  display: grid;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid #e2e8f0;
}
.ag-lgsw-flags { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.ag-lgsw-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}
.ag-lgsw-license-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ag-lgsw-license-side {
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 10px;
  background: #f8fafc;
}
.ag-lgsw-license-side h4 {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ag-lgsw-license-preview {
  width: 100%;
  aspect-ratio: 1.6 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: #e2e8f0;
  display: block;
}
.ag-lgsw-license-preview.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 12px;
}
@media (max-width: 860px) {
  .ag-lgsw-card {
    grid-template-columns: 4px 1fr auto;
  }
  .ag-lgsw-row-stamp {
    grid-column: 2 / 3;
    justify-self: start;
  }
  .ag-lgsw-row-badges {
    grid-column: 2 / 3;
  }
  .ag-lgsw-row-actions--mini {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
    align-self: center;
  }
}
@media (max-width: 640px) {
  .ag-lgsw-license-grid { grid-template-columns: 1fr; }
  .ag-lgsw-card__meta { white-space: normal; }
}

#gpsRoadPane.hidden,
#gpsTeamsPane.hidden,
.gps-tcp-card-shell.hidden,
.gps-road-card-shell.hidden {
  display: none !important;
}
.gps-tcp-card-shell:not(.hidden) {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}
/* Tabs take ~44px â€” keep map area tall enough */
.gps-monitor-main > .gps-monitor-card .gps-monitor-layout {
  height: calc(100dvh - 212px);
  min-height: min(60vh, 560px);
}
.gps-road-card-shell { flex: 1 1 auto; min-height: 0; width: 100%; }
.gps-road-side {
  background: #fff;
}
.gps-road-search-block {
  padding: 10px 12px 8px;
  border-bottom: 1px solid #f1f5f9;
}
.gps-road-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 6px;
}
.gps-road-search-wrap { position: relative; z-index: 6; }
.gps-road-search-input {
  border-radius: 10px;
  border-color: #cbd5e1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.gps-road-search-input:focus {
  outline: none;
  border-color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}
/* Inline list (not absolute) so overflow:hidden on card does not clip suggestions */
.gps-road-search-results {
  position: relative;
  z-index: 6;
  margin-top: 8px;
  max-height: min(42vh, 280px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
  padding: 4px;
}
.gps-road-search-results.hidden {
  display: none !important;
}
.gps-road-hit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
  color: #0f172a;
}
.gps-road-hit:hover:not(:disabled):not(.gps-road-hit--empty) {
  background: #fef2f2;
}
.gps-road-hit-title {
  font-weight: 700;
  font-size: 13px;
  color: #0f172a;
  line-height: 1.3;
}
.gps-road-hit-sub {
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}
.gps-road-hit--empty {
  color: #94a3b8;
  cursor: default;
  font-size: 12px;
}
.gps-road-hit:disabled { color: #94a3b8; cursor: default; }
.gps-road-status {
  margin: 0;
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
  min-height: 1.4em;
  font-size: 12px;
}
.gps-road-status.is-error { color: #b91c1c; }
.gps-road-legend {
  margin: 0;
  padding: 8px 12px 12px;
  border-top: 1px solid #f1f5f9;
  color: #64748b;
  font-size: 11px;
}
.gps-road-schematic-list-wrap {
  border-top: 1px solid #e2e8f0;
  padding: 10px 12px 12px;
  background: #fff;
  max-height: 42vh;
  overflow: auto;
}
.gps-road-schematic-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
}
.gps-road-schematic-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  align-items: center;
}
.gps-road-schematic-row-main { grid-column: 1 / -1; }
.gps-road-schematic-title {
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
}
.gps-road-schematic-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  justify-self: start;
}
.gps-road-schematic-badge--ready { background: #dcfce7; color: #166534; }
.gps-road-schematic-badge--busy { background: #fef3c7; color: #92400e; }
.gps-road-schematic-badge--failed { background: #fee2e2; color: #991b1b; }
.gps-road-schematic-open { justify-self: end; }
.gps-road-schematic-empty { margin: 0; }
.gps-tcp-card-shell {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}
.gps-tcp-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
  padding: 12px 16px 16px;
  gap: 10px;
}
.gps-tcp-pane-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.gps-tcp-pane-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.gps-tcp-status {
  margin: 0;
  min-height: 1.2em;
}
.gps-tcp-status.is-error { color: #b91c1c; }
.gps-settings-pane {
  max-width: 1100px;
}
.gps-settings-card-shell {
  min-height: 280px;
}
.gps-tcp-gis-status {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gps-tcp-gis-status-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}
.gps-tcp-gis-status-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.gps-tcp-gis-status-title strong {
  display: block;
  font-size: 13px;
  color: #0f172a;
}
.gps-tcp-gis-live {
  color: #64748b;
}
.gps-tcp-gis-live.is-live { color: #0369a1; }
.gps-tcp-gis-live.is-stale { color: #b45309; font-weight: 600; }
.gps-tcp-donut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  vertical-align: middle;
  background: conic-gradient(#2563eb calc(var(--gps-tcp-pct, 0) * 1%), #e2e8f0 0);
  flex-shrink: 0;
  color: #2563eb;
}
.gps-tcp-donut-inner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}
.gps-tcp-donut--idle {
  background: conic-gradient(#cbd5e1 calc(var(--gps-tcp-pct, 0) * 1%), #e2e8f0 0);
  color: #94a3b8;
}
.gps-tcp-donut--busy {
  background: conic-gradient(#2563eb calc(var(--gps-tcp-pct, 0) * 1%), #e2e8f0 0);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
  animation: gps-tcp-donut-pulse 1.4s ease-in-out infinite;
}
.gps-tcp-donut--stale {
  background: conic-gradient(#d97706 calc(var(--gps-tcp-pct, 0) * 1%), #fde68a 0);
  animation: none;
}
.gps-tcp-donut--done {
  background: conic-gradient(#16a34a calc(var(--gps-tcp-pct, 0) * 1%), #e2e8f0 0);
  animation: none;
}
.gps-tcp-donut--sm {
  width: 34px;
  height: 34px;
}
.gps-tcp-donut--sm .gps-tcp-donut-inner {
  width: 24px;
  height: 24px;
  font-size: 9px;
}
@keyframes gps-tcp-donut-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12); }
  50% { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.22); }
}
.gps-tcp-status-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gps-tcp-status-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.gps-tcp-progress-msg {
  font-size: 11px;
  color: #475569;
  line-height: 1.3;
  max-width: 220px;
}
.gps-tcp-progress-msg.is-stale { color: #b45309; font-weight: 600; }
.gps-tcp-gis-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 6px;
}
.gps-tcp-gis-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #fff;
  min-width: 0;
  text-align: left;
  font: inherit;
  color: inherit;
}
.gps-tcp-gis-chip--action {
  cursor: pointer;
}
.gps-tcp-gis-chip--action:hover {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}
.gps-tcp-gis-chip:disabled {
  cursor: default;
  opacity: 1;
}
.gps-tcp-gis-chip-name {
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gps-tcp-gis-chip-meta {
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}
.gps-tcp-gis-chip--cached { border-color: #bbf7d0; background: #f0fdf4; }
.gps-tcp-gis-chip--stale { border-color: #fde68a; background: #fffbeb; }
.gps-tcp-gis-chip--missing,
.gps-tcp-gis-chip--failed { border-color: #fecaca; background: #fef2f2; }
.gps-tcp-gis-chip--refreshing { border-color: #bfdbfe; background: #eff6ff; }
.gps-tcp-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}
.gps-tcp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.gps-tcp-table th,
.gps-tcp-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #f1f5f9;
}
.gps-tcp-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
  z-index: 1;
}
.gps-tcp-loc-title {
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 2px;
}
.gps-tcp-empty-row td { padding: 24px 12px; }
.gps-tcp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.gps-tcp-delete {
  color: #b91c1c;
}
.gps-tcp-gen-time {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 767px) {
  .gps-tcp-table th:nth-child(3),
  .gps-tcp-table td:nth-child(3) { display: none; }
}
.gps-road-detail {
  flex: 1 1 auto;
  max-height: none;
  border-top: 0;
  overflow: auto;
  padding: 12px;
  background: #f8fafc;
  min-height: 0;
}
.gps-road-empty {
  padding: 8px 2px;
}
.gps-road-info {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gps-road-info-top { min-width: 0; }
.gps-road-info-addr {
  margin: 0 0 4px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
  word-break: break-word;
}
.gps-road-info-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 4px;
}
.gps-road-info-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--lz-red, #b91c1c);
  line-height: 1.25;
  word-break: break-word;
}
.gps-road-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gps-road-fact {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}
.gps-road-speed-value {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: #9a3412;
  font-variant-numeric: tabular-nums;
}
.gps-road-sheet-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 2px;
}
.gps-road-sheet-speed {
  flex: 0 0 auto;
  text-align: right;
  background: #ffedd5;
  border: 1px solid #fdba74;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.gps-road-sheet-speed-val {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #9a3412;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.gps-road-box-edit-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 1100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}
.gps-road-box-edit-bar.hidden { display: none !important; }
.gps-road-box-edit-hint {
  margin: 0;
  font-size: 12px;
  color: #334155;
  font-weight: 600;
  flex: 1 1 140px;
}
.gps-road-box-edit-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}
.gps-road-box-ok {
  background: #b91c1c !important;
  color: #fff !important;
  border-color: #b91c1c !important;
  font-weight: 700;
  min-width: 120px;
}
.gps-road-box-handle {
  background: transparent !important;
  border: 0 !important;
}
.gps-road-box-handle-dot {
  display: block;
  width: 22px;
  height: 22px;
  margin: 4px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #b91c1c;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.35);
}
.gps-road-box-handle--move .gps-road-box-handle-dot {
  border-radius: 6px;
  background: #b91c1c;
  border-color: #fff;
  box-shadow: 0 2px 10px rgba(185, 28, 28, 0.45);
}
.gps-monitor-layout--panel-closed.gps-monitor-layout--detail-open .gps-road-box-edit-bar {
  bottom: calc(min(46vh, 360px) + 12px);
}
@media (max-width: 767px) {
  .gps-road-box-edit-bar {
    left: 10px;
    right: 10px;
  }
  .gps-road-box-handle-dot {
    width: 26px;
    height: 26px;
    margin: 2px;
  }
}
.gps-road-speed-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fdba74;
}
.gps-road-speed-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9a3412;
}
.gps-road-speed-main {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.gps-road-speed-value {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: #9a3412;
  font-variant-numeric: tabular-nums;
}
.gps-road-speed-unit {
  font-size: 13px;
  font-weight: 700;
  color: #c2410c;
}
.gps-road-kv {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.gps-road-kv-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  font-size: 12px;
  line-height: 1.35;
}
.gps-road-kv-k {
  color: #64748b;
  font-weight: 600;
}
.gps-road-kv-v {
  color: #0f172a;
  word-break: break-word;
  min-width: 0;
}
.gps-road-kv-note {
  color: #94a3b8;
  font-weight: 400;
}
.gps-road-chip {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  vertical-align: middle;
}
.gps-road-chip.high { background: #dcfce7; color: #166534; }
.gps-road-chip.medium { background: #fef3c7; color: #92400e; }
.gps-road-chip.low { background: #fee2e2; color: #991b1b; }
.gps-road-sample-btn {
  width: 100%;
  margin-top: 8px;
}
.gps-road-view-toggles {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.gps-road-view-toggles .btn,
.gps-road-action-btn {
  flex: 1 1 auto;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  line-height: 1.2;
}
.gps-road-view-toggles .btn[aria-pressed="true"],
.gps-road-action-btn[aria-pressed="true"] {
  background: #b91c1c;
  color: #fff;
  border-color: #b91c1c;
}
.gps-road-view-toggles .btn[aria-pressed="false"]#btnGpsRoadTiles,
.gps-road-view-toggles #btnGpsRoadBoardTiles[aria-pressed="false"],
#btnGpsRoadBoardTiles[aria-pressed="false"] {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}
.gps-road-box-edit-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 1100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}
.gps-road-box-edit-actions {
  display: flex;
  gap: 10px;
  flex: 1 1 auto;
  justify-content: flex-end;
}
.gps-road-box-edit-actions .gps-road-action-btn {
  flex: 1 1 0;
  min-width: 110px;
  min-height: 48px;
  font-size: 15px;
  font-weight: 700;
}
.gps-road-box-ok {
  background: #b91c1c !important;
  color: #fff !important;
  border-color: #b91c1c !important;
  font-weight: 800;
}
.gps-road-gen-bar .gps-road-action-btn {
  min-width: 220px;
  min-height: 52px;
  font-size: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
}
.gps-road-board-bar-actions .gps-road-action-btn {
  min-width: 96px;
}
.gps-road-speed-toast {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  z-index: 1200;
  pointer-events: none;
  max-width: calc(100% - 24px);
}
.gps-road-speed-toast.hidden { display: none !important; }
.gps-road-speed-toast-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.94);
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.3);
  min-width: min(92vw, 300px);
}
.gps-road-speed-toast-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.gps-road-speed-toast-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fdba74;
}
.gps-road-speed-toast-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gps-road-speed-toast-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex: 0 0 auto;
}
.gps-road-speed-toast-val {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: #fdba74;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.gps-road-speed-toast-val small {
  font-size: 12px;
  font-weight: 700;
  margin-left: 4px;
  color: #fed7aa;
}
.gps-road-gen-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 1100;
  display: flex;
  justify-content: center;
}
.gps-monitor-layout--detail-open .gps-road-gen-bar {
  bottom: calc(min(46vh, 360px) + 14px);
}
#gpsRoadPane .gps-mobile-detail-sheet {
  z-index: 1150;
}
.gps-road-board {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  overflow: hidden;
}
.gps-road-board.hidden { display: none !important; }
body.gps-road-board-open { overflow: hidden; }
.gps-road-board-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  flex: 0 0 auto;
}
.gps-road-board-body {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  overflow: hidden;
}
.gps-road-board-map {
  min-height: 0;
  height: 100%;
  width: 100%;
  position: relative;
  background: #ffffff;
}
.gps-road-gen-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 1100;
  display: flex;
  justify-content: center;
}
.gps-road-gen-bar.hidden { display: none !important; }
.gps-road-gen-bar .btn {
  min-width: 160px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
}
.gps-road-board-bar-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.gps-road-board-bar-text strong {
  font-size: 15px;
  color: #b91c1c;
}
.gps-road-board-bar-actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}
.gps-road-board-draw {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  padding: 2px 4px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.gps-road-draw-arrow-type {
  height: 28px;
  max-width: 110px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  padding: 0 6px;
}
.gps-road-draw-btn.is-active {
  background: #1e293b !important;
  color: #fff !important;
  border-color: #1e293b !important;
}
.gps-road-export-btn {
  border-color: #0f766e !important;
  color: #0f766e !important;
  font-weight: 700 !important;
}
.gps-road-export-btn:hover {
  background: #ecfdf5 !important;
}
.gps-road-export-btn.is-active {
  background: #0f766e !important;
  color: #fff !important;
  border-color: #0f766e !important;
}
.gps-road-board-map--export,
.gps-road-board-map--export .leaflet-container {
  cursor: crosshair !important;
}
.gps-road-board-map.gps-road-board-exporting .leaflet-control-container {
  display: none !important;
}
.gps-road-board-map.gps-road-board-exporting,
.gps-road-board-map.gps-road-board-exporting .leaflet-container,
.gps-road-board-map.gps-road-board-exporting .leaflet-pane,
.gps-road-board-map.gps-road-board-exporting .leaflet-map-pane {
  background: transparent !important;
  background-color: transparent !important;
}
.gps-road-board-map.gps-road-board-exporting .leaflet-tile-pane,
.gps-road-board-map.gps-road-board-exporting .leaflet-proxy {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}
.gps-road-board-map.gps-road-board-exporting .gps-road-draw-handle,
.gps-road-board-map.gps-road-board-exporting .leaflet-marker-draggable {
  visibility: hidden !important;
}
.gps-road-board-map--draw,
.gps-road-board-map--rect {
  cursor: crosshair !important;
}
.gps-road-board-map--draw .leaflet-container,
.gps-road-board-map--rect .leaflet-container {
  cursor: crosshair !important;
}
.gps-road-board-map--text,
.gps-road-board-map--text .leaflet-container {
  cursor: text !important;
}
.gps-road-board-map--erase,
.gps-road-board-map--erase .leaflet-container {
  cursor: not-allowed !important;
}
.gps-road-board-map--select,
.gps-road-board-map--select .leaflet-container {
  cursor: grab !important;
}
.gps-road-draw-text-icon {
  background: transparent !important;
  border: 0 !important;
}
.gps-road-draw-move-icon {
  background: transparent !important;
  border: 0 !important;
}
.gps-road-draw-move {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #1d4ed8;
  color: #1d4ed8;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.35);
  cursor: move;
}
.gps-road-draw-rotate-icon {
  background: transparent !important;
  border: 0 !important;
}
.gps-road-draw-rotate {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #1d4ed8;
  color: #1d4ed8;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.35);
  cursor: grab;
  user-select: none;
}
.gps-road-draw-rotate:active {
  cursor: grabbing;
}
.gps-road-draw-text {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.94);
  border: 1.5px solid #111827;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
  cursor: grab;
}
.gps-road-board-body {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  overflow: hidden;
}
.gps-road-board-side {
  border-right: 1px solid #e2e8f0;
  background: #fff;
  padding: 10px 10px 12px;
  overflow: auto;
}
.gps-road-board-meta.hidden { display: none !important; }
.gps-road-board-layers {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.gps-road-board-layers-title {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.gps-road-board-layers-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}
.gps-road-board-layer-group {
  margin: 0 0 4px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  overflow: hidden;
}
.gps-road-board-layer-group-sum {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 7px 10px;
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  user-select: none;
}
.gps-road-board-layer-group-sum::-webkit-details-marker { display: none; }
.gps-road-board-layer-group-sum::after {
  content: '▸';
  float: right;
  margin-top: -14px;
  color: #64748b;
  font-size: 11px;
}
.gps-road-board-layer-group[open] > .gps-road-board-layer-group-sum::after {
  content: '▾';
}
.gps-road-board-layer-group-sum .feed-meta {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
}
.gps-road-board-layer-group-body {
  padding: 2px 6px 6px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}
.gps-road-board-layer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 26px;
  padding: 2px 2px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  user-select: none;
}
.gps-road-board-layer-label {
  flex: 1 1 auto;
  line-height: 1.2;
}
.gps-road-board-layer--size {
  cursor: default;
  min-height: 28px;
  gap: 6px;
}
.gps-road-size-ctrl {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  overflow: hidden;
  background: #f1f5f9;
}
.gps-road-size-off,
.gps-road-size-step {
  appearance: none;
  margin: 0;
  border: 0;
  border-right: 1px solid #cbd5e1;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  min-width: 22px;
  padding: 5px 6px;
  cursor: pointer;
  user-select: none;
}
.gps-road-size-step {
  font-size: 13px;
  min-width: 24px;
  padding: 4px 7px;
}
.gps-road-size-off:hover,
.gps-road-size-step:hover:not(:disabled) {
  background: #e2e8f0;
  color: #0f172a;
}
.gps-road-size-off.is-active {
  background: #0f766e;
  color: #fff;
}
.gps-road-size-step:disabled {
  opacity: 0.35;
  cursor: default;
}
.gps-road-size-pct {
  min-width: 34px;
  padding: 0 4px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  border-right: 1px solid #cbd5e1;
}
.gps-road-size-ctrl .gps-road-size-step:last-child {
  border-right: 0;
}
.gps-road-size-off:focus-visible,
.gps-road-size-step:focus-visible {
  outline: 2px solid #0f766e;
  outline-offset: -2px;
  z-index: 1;
}
.gps-road-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  width: 36px;
  height: 20px;
}
.gps-road-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.gps-road-switch-ui {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd5e1;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
  transition: background 0.15s ease;
  pointer-events: none;
}
.gps-road-switch-ui::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.28);
  transition: transform 0.15s ease;
}
.gps-road-switch input:checked + .gps-road-switch-ui {
  background: #0f766e;
}
.gps-road-switch input:checked + .gps-road-switch-ui::after {
  transform: translateX(16px);
}
.gps-road-switch input:focus-visible + .gps-road-switch-ui {
  outline: 2px solid #0f766e;
  outline-offset: 2px;
}
.gps-road-board-speed { margin-bottom: 10px; }
.gps-road-board-map .leaflet-container {
  width: 100%;
  height: 100%;
  background: #ffffff;
  cursor: crosshair;
}
@media (max-width: 767px) {
  .gps-road-board-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .gps-road-board-side {
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
    max-height: 34vh;
  }
}
.gps-road-map-host {
  min-height: 280px;
  height: 100%;
  background: #e2e8f0;
}
.gps-road-map-host--tiles-off,
.gps-road-map-host--tiles-off .leaflet-container {
  background: #ffffff !important;
}
.gps-road-map-host .leaflet-container {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 280px;
  font: inherit;
  cursor: crosshair;
}
.gps-road-name-icon {
  background: transparent !important;
  border: 0 !important;
  pointer-events: none !important;
}
.gps-road-name-label--mapoff {
  background: transparent;
  border: 0;
  color: #7f1d1d;
  font-size: 10px;
  font-weight: 800;
  padding: 0;
  box-shadow: none;
  text-shadow:
    0 0 2px #f8fafc,
    0 1px 0 #f8fafc,
    1px 0 0 #f8fafc,
    -1px 0 0 #f8fafc,
    0 -1px 0 #f8fafc;
}
.gps-road-name-label--repeat {
  max-width: 280px;
  font-size: inherit;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: center center;
}
.gps-road-word-icon {
  background: transparent !important;
  border: 0 !important;
  pointer-events: none !important;
}
.gps-road-word-mark {
  display: inline-block;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
  transform-origin: center center;
  -webkit-text-stroke: 0.12em #0f172a;
  paint-order: stroke fill;
  text-shadow:
    0 0 1px #0f172a,
    1px 0 0 #0f172a,
    -1px 0 0 #0f172a,
    0 1px 0 #0f172a,
    0 -1px 0 #0f172a;
  box-shadow: none !important;
}
.gps-road-lta-arrow-icon {
  background: transparent !important;
  border: 0 !important;
  pointer-events: none !important;
}
.gps-road-lta-arrow {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform-origin: 50% 96%;
  pointer-events: none;
}
.gps-road-lta-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: #0f172a;
  stroke: #f8fafc;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
  overflow: visible;
  filter: drop-shadow(0 0 1px #fff);
}
.gps-road-extra-icon {
  background: transparent !important;
  border: 0 !important;
}
.gps-road-extra-dot,
.gps-road-extra-hump,
.gps-road-extra-tl {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #334155;
}
.gps-road-extra-xing {
  display: block;
  padding: 1px 4px;
  border-radius: 3px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 0 0 1px #fff;
}
.gps-road-extra-hump {
  width: 10px;
  height: 4px;
  border-radius: 2px;
  background: #c2410c;
}
.gps-road-extra-tl {
  background: #dc2626;
  box-shadow: 0 0 0 1px #fef08a;
}
.gps-road-housenum-icon {
  background: transparent !important;
  border: 0 !important;
  pointer-events: none !important;
}
.gps-road-housenum {
  display: inline-block;
  padding: 0 !important;
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #000000;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  overflow: visible;
  transform-origin: center center;
  -webkit-text-stroke: 0.12em #ffffff;
  paint-order: stroke fill;
  text-shadow:
    0 0 1px #fff,
    1px 0 0 #fff,
    -1px 0 0 #fff,
    0 1px 0 #fff,
    0 -1px 0 #fff;
}
.gps-road-bus-icon {
  background: transparent !important;
  border: 0 !important;
  pointer-events: none !important;
}
.gps-road-bus-mark {
  display: inline-block;
  padding: 0;
  margin-left: 0;
  margin-top: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #1e3a8a;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  text-shadow:
    0 0 2px #fff,
    0.6px 0 0 #fff,
    -0.6px 0 0 #fff,
    0 0.6px 0 #fff,
    0 -0.6px 0 #fff;
}
.gps-road-bus-mark span {
  display: inline;
  letter-spacing: inherit;
}
.gps-road-loading-banner,
.gps-road-board-loading {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  z-index: 1300;
  max-width: calc(100% - 24px);
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.92);
  color: #fef3c7;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.28);
  pointer-events: none;
  text-align: center;
}
.gps-road-loading-banner.hidden,
.gps-road-board-loading.hidden {
  display: none !important;
}
.gps-road-board-loading {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  margin: 0;
  border-radius: 0;
  width: 100%;
  max-width: none;
}
.gps-road-sheet-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.gps-road-sheet-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--lz-red, #b91c1c);
  line-height: 1.3;
}
.gps-road-sheet-addr {
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
}
.gps-road-sheet-speed {
  flex: 0 0 auto;
  text-align: right;
  background: #ffedd5;
  border: 1px solid #fdba74;
  border-radius: 10px;
  padding: 6px 10px;
}
.gps-road-sheet-speed-val {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #9a3412;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.gps-road-sheet-speed-unit {
  font-size: 11px;
  font-weight: 700;
  color: #c2410c;
}
.gps-road-arrow-icon {
  background: transparent !important;
  border: 0 !important;
  pointer-events: none !important;
}
.gps-road-lamp-icon {
  background: transparent !important;
  border: 0 !important;
  pointer-events: none !important;
}
.gps-road-map-fade {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
  user-select: none;
}
.gps-road-map-fade input[type="range"] {
  width: 88px;
  accent-color: #0f766e;
  vertical-align: middle;
}
.gps-road-lamp {
  position: relative;
  width: 10px;
  height: 18px;
}
.gps-road-lamp--sun {
  width: 24px;
  height: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.gps-road-lamp-sun {
  display: block;
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 1px 1px rgba(15, 23, 42, 0.35));
}
.gps-road-lamp-pole {
  display: block;
  width: 2px;
  height: 12px;
  margin: 0 auto;
  background: #64748b;
  border-radius: 1px;
}
.gps-road-lamp-head {
  display: block;
  width: 8px;
  height: 8px;
  margin: -2px auto 0;
  background: #fbbf24;
  border: 1.5px solid #d97706;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(251, 191, 36, 0.7);
}
.gps-road-lamp-num {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  margin-top: 2px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  color: #0f172a;
  white-space: nowrap;
  text-shadow:
    0 0 2px #f8fafc,
    1px 0 0 #f8fafc,
    -1px 0 0 #f8fafc,
    0 1px 0 #f8fafc,
    0 -1px 0 #f8fafc;
}
.gps-road-tl {
  font-size: 16px;
  line-height: 1;
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 1px 1px rgba(15, 23, 42, 0.35));
}
.gps-road-arrow {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  font-size: 16px;
  font-weight: 800;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 1px 2px rgba(15, 23, 42, 0.45);
  line-height: 1;
  pointer-events: none;
}
@media (min-width: 768px) {
  #gpsRoadMobileSheet { display: none !important; }
}
/* Reopen control must stay visible when the side panel is hidden (desktop + mobile) */
#gpsRoadPane .gps-monitor-layout--panel-closed .gps-monitor-panel-fab {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  z-index: 1100;
  left: 12px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
#gpsRoadPane .gps-monitor-layout--panel-closed.gps-monitor-layout--detail-open .gps-monitor-panel-fab {
  bottom: calc(min(46vh, 360px) + 14px);
}
/* Keep Cancel / Generate above Show panel FAB while editing */
#gpsRoadPane .gps-monitor-layout--panel-closed .gps-road-box-edit-bar {
  z-index: 1200;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}
#gpsRoadPane .gps-monitor-layout--panel-closed.gps-monitor-layout--detail-open .gps-road-box-edit-bar {
  bottom: calc(min(46vh, 360px) + 72px);
}
#gpsRoadPane .gps-monitor-layout--panel-closed .gps-road-gen-bar {
  /* keep Generate clear of the Show panel FAB */
  padding-left: 120px;
  z-index: 1100;
}

/* Site Portal — Term Con trenches / special / PE materials */
.site-term-rows {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-term-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--lz-border, #e2e8f0);
  border-radius: 10px;
  background: #fff;
}
.site-term-row-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.35;
}
.site-term-form {
  margin-top: 8px;
}
.site-term-empty {
  margin-bottom: 8px;
}

/* HR Payroll — include-in-run toggle */
.pr-include-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  color: #64748b;
}
.pr-include-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.pr-include-track {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #cbd5e1;
  border: 1px solid #94a3b8;
  transition: background 0.18s ease, border-color 0.18s ease;
  flex-shrink: 0;
}
.pr-include-thumb {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
  transition: transform 0.18s ease;
}
.pr-include-input:checked + .pr-include-track {
  background: #16a34a;
  border-color: #15803d;
}
.pr-include-input:checked + .pr-include-track .pr-include-thumb {
  transform: translateX(16px);
}
.pr-include-toggle.is-on .pr-include-label {
  color: #166534;
  font-weight: 600;
}
.pr-include-toggle:not(.is-on) .pr-include-label {
  color: #b45309;
  font-weight: 600;
}
.pr-include-input:focus-visible + .pr-include-track {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(22, 163, 74, 0.45);
}
.pr-include-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.pr-info-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #94a3b8;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  padding: 0;
  flex-shrink: 0;
  font-family: inherit;
}
th .pr-info-mark {
  margin-left: 4px;
  vertical-align: middle;
}
.pr-info-mark:hover,
.pr-info-mark:focus-visible {
  border-color: #2563eb;
  color: #1d4ed8;
  background: #eff6ff;
  outline: none;
}

/* Payroll page — polished fields */
.payroll-month-bar {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.payroll-month-field {
  min-width: 168px;
}
.payroll-settings-grid {
  margin-top: 14px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.payroll-settings-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.payroll-logo-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}
.payroll-logo-card__text {
  min-width: 200px;
  flex: 1;
}
.payroll-logo-path {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-size: 11px;
  color: #64748b;
  word-break: break-all;
}
.payroll-logo-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.payroll-file-btn {
  cursor: pointer;
  margin: 0;
}
.pr-slip-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.pr-gen-btn-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pr-gen-donut {
  display: inline-flex;
  vertical-align: middle;
  line-height: 0;
}
.pr-gen-donut svg { display: block; }
.pr-gen-donut-track { stroke: rgba(255, 255, 255, 0.35); }
.pr-gen-donut-fill { stroke: #fff; stroke-linecap: round; }
.pr-gen-donut-label {
  font-size: 8px;
  font-weight: 700;
  fill: #fff;
  font-family: system-ui, sans-serif;
}
.pr-gen-donut--spin {
  animation: pr-gen-donut-spin 0.9s linear infinite;
}
@keyframes pr-gen-donut-spin {
  to { transform: rotate(360deg); }
}
#prGenPayslips.is-busy {
  min-width: 9.5rem;
  opacity: 0.95;
  cursor: wait;
}
.pr-gen-progress-text {
  color: #b45309 !important;
  font-weight: 600;
}
.pr-select-all-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}
.pr-slip-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  vertical-align: middle;
}
body[data-lz-module="payroll"] .data-table tbody td {
  vertical-align: middle;
}
body[data-lz-module="payroll"] .data-table tbody td.pr-slip-actions {
  white-space: nowrap;
}
body[data-lz-module="payroll"] .pr-slip-actions .btn {
  margin: 0;
}
.pr-slip-status.is-ready {
  color: #15803d;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.pr-slip-status.is-failed {
  color: #b91c1c;
  font-weight: 700;
  font-size: 12px;
}
.pr-inline-value {
  display: block;
  width: 100%;
  max-width: 168px;
  margin: 0;
  padding: 6px 8px;
  border: 1px dashed transparent;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.pr-inline-value:hover,
.pr-inline-value:focus-visible {
  border-color: #cbd5e1;
  background: #f8fafc;
  outline: none;
}
.pr-inline-value.is-empty {
  color: #94a3b8;
}
.pr-deduct-btn {
  max-width: 180px;
}
.pr-deduct-total {
  display: block;
  font-weight: 600;
}
.pr-deduct-breakdown {
  display: block;
  margin-top: 2px;
  line-height: 1.25;
}
.pr-deduct-editor {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}
.pr-deduct-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  color: #64748b;
}
.pr-deduct-field .lz-field-input {
  width: 100%;
  min-width: 0;
  padding: 6px 8px;
  font-size: 13px;
}
.pr-deduct-editor-actions {
  display: flex;
  gap: 6px;
}
.pp-org-change-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.45);
}
.pp-org-change-dialog {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}
.pp-org-change-dialog h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}
.pp-org-change-dialog p {
  margin: 0 0 10px;
  line-height: 1.4;
}
.pp-org-change-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}
body[data-lz-module="payroll"] .pr-cell-input {
  width: 96px;
  min-width: 72px;
  padding: 7px 9px;
  font-size: 13px;
  border-radius: 8px;
}
body[data-lz-module="payroll"] .pr-cell-input--email {
  width: 168px;
  min-width: 140px;
}
.pr-cell-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body[data-lz-module="payroll"] .data-table input.lz-field-input {
  max-width: 100%;
}

/* System Audit Log filters */
.lz-audit-filters .lz-audit-filter-row {
  align-items: flex-end;
  gap: 10px;
}
.lz-audit-filters label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  min-width: 0;
}
.lz-audit-filters label .pg-search-input,
.lz-audit-filters label select.pg-search-input {
  min-width: 120px;
  max-width: 220px;
}
.lz-audit-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding-bottom: 2px;
}
#auditFilterHint { margin: 8px 0 0; }
