: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-apply-card {
  overflow: hidden;
  padding-top: 0;
}
.lz-leave-apply-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 -20px 18px;
  padding: 16px 20px 14px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #7f1d1d 130%);
  color: #f8fafc;
}
.lz-leave-apply-head .panel-title {
  margin: 0 0 4px;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.lz-leave-apply-head__meta {
  margin: 0;
  font-size: 13px;
  color: #cbd5e1;
}
.lz-leave-apply-head__back {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}
.lz-leave-apply-head__back:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.lz-leave-cal {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  overflow: hidden;
}
.lz-leave-cal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 60%, #0f172a 140%);
  color: #fff;
}
.lz-leave-cal__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lz-leave-cal__nav-btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #fff;
}
.lz-leave-cal__nav-btn:hover { background: rgba(255, 255, 255, 0.22); }
.lz-leave-cal__month {
  min-width: 168px;
  text-align: center;
  font-size: 15px;
  color: #fff;
}
.lz-leave-cal__hint {
  margin: 0;
  font-size: 12px;
  color: #bfdbfe;
}
.lz-leave-cal__range {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px 0;
}
.lz-leave-cal__chip {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  color: #475569;
}
.lz-leave-cal__chip strong { color: #0f172a; }
.lz-leave-cal__week,
.lz-leave-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  padding: 10px 14px 0;
}
.lz-leave-cal__week { padding-bottom: 0; }
.lz-leave-cal__week span {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #94a3b8;
  padding: 2px 0 4px;
}
.lz-leave-cal__week span.is-half { color: #0f766e; }
.lz-leave-cal__week span.is-sunday { color: #64748b; }
.lz-leave-cal__grid { padding-bottom: 8px; }
.lz-leave-cal-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 48px;
  border: 0;
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 0 0 1px #e2e8f0 inset;
}
.lz-leave-cal-day:hover { background: #f1f5f9; }
.lz-leave-cal-day.is-outside { color: #94a3b8; background: #f8fafc; box-shadow: none; }
.lz-leave-cal-day.is-sunday {
  background: #f1f5f9;
  color: #64748b;
}
.lz-leave-cal-day.is-ph {
  background: #fef3c7;
  color: #92400e;
  box-shadow: 0 0 0 1px #fcd34d inset;
}
.lz-leave-cal-day.is-half:not(.is-ph):not(.is-sunday) {
  background: #ccfbf1;
  color: #0f766e;
  box-shadow: 0 0 0 1px #5eead4 inset;
}
.lz-leave-cal-day.is-today:not(.is-start):not(.is-end) {
  box-shadow: inset 0 0 0 2px #1d4ed8;
}
.lz-leave-cal-day.is-in-range:not(.is-ph):not(.is-half):not(.is-sunday) {
  background: #fee2e2;
  color: #9f1239;
  box-shadow: 0 0 0 1px #fecaca inset;
}
.lz-leave-cal-day.is-in-range.is-half:not(.is-start):not(.is-end) {
  background: #99f6e4;
}
.lz-leave-cal-day.is-in-range.is-ph:not(.is-start):not(.is-end) {
  background: #fde68a;
}
.lz-leave-cal-day.is-start,
.lz-leave-cal-day.is-end {
  background: #c62828;
  color: #fff;
  font-weight: 700;
  box-shadow: none;
}
.lz-leave-cal-day.is-start:hover,
.lz-leave-cal-day.is-end:hover { background: #b71c1c; color: #fff; }
.lz-leave-cal-day__tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  opacity: 0.9;
}
.lz-leave-cal-day.is-start .lz-leave-cal-day__tag,
.lz-leave-cal-day.is-end .lz-leave-cal-day__tag { color: #fee2e2; }
.lz-leave-cal__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 4px 14px 12px;
}
.lz-leave-cal-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
}
.lz-leave-cal-key::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #e2e8f0;
}
.lz-leave-cal-key.is-half::before { background: #5eead4; }
.lz-leave-cal-key.is-ph::before { background: #fbbf24; }
.lz-leave-cal-key.is-sunday::before { background: #cbd5e1; }
.lz-cal-short { display: none; }
.lz-team-leave-cards { display: none; }
.lz-team-leave-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}
.lz-team-leave-card__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}
.lz-team-leave-card__top span { font-size: 12px; color: #64748b; }
.lz-team-leave-card p { margin: 6px 0 0; font-size: 14px; }
.lz-team-leave-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.lz-team-leave-overlap {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
  font-size: 13px;
}
.lz-team-leave-remarks,
.lz-team-leave-remarks-cell {
  white-space: pre-wrap;
  word-break: break-word;
}
.lz-team-leave-remarks {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
}
.lz-team-leave-remarks strong { margin-right: 6px; }
@media (max-width: 720px) {
  .lz-leave-type-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .lz-leave-type-pill {
    flex: 0 0 auto;
    min-height: 44px;
  }
  .lz-leave-apply-card .form-grid { grid-template-columns: 1fr; }
  .lz-leave-cal__bar {
    flex-direction: column;
    align-items: stretch;
  }
  .lz-leave-cal__range { flex-direction: column; }
  .lz-leave-cal__chip {
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
  }
  .lz-leave-cal__week,
  .lz-leave-cal__grid {
    gap: 3px;
    padding-left: 6px;
    padding-right: 6px;
  }
  .lz-cal-long { display: none; }
  .lz-cal-short { display: inline; }
  .lz-leave-cal-day {
    min-height: 44px;
    border-radius: 8px;
  }
  .lz-leave-cal-day__tag { display: none; }
  .lz-leave-cal__nav-btn { width: 44px; height: 44px; }
  .lz-team-leave-table { display: none; }
  .lz-team-leave-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .lz-team-cal .lz-leave-cal-day { min-height: 58px; }
}
.lz-team-cal .lz-leave-cal-day {
  min-height: 64px;
  justify-content: flex-start;
  padding-top: 4px;
  gap: 2px;
}
.lz-team-cal-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.15;
}
.lz-team-cal-names span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lz-leave-hub .pp-leave-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.lz-leave-hub .pp-summary-chip {
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
}
.lz-leave-hub .pp-summary-chip strong {
  font-size: 22px;
  letter-spacing: -0.02em;
}
.lz-leave-tabs {
  display: flex;
  gap: 4px;
  margin: 4px 0 14px;
  border-bottom: 1px solid #e2e8f0;
  overflow-x: auto;
}
.lz-leave-tabs button {
  flex: 0 0 auto;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  min-height: 44px;
  padding: 10px 14px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
}
.lz-leave-tabs button.is-active {
  color: #1d4ed8;
  border-bottom-color: #1d4ed8;
}
.lz-leave-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 12px;
  line-height: 18px;
}
.lz-leave-tabs button.is-active .lz-leave-tab-count {
  background: #dbeafe;
  color: #1d4ed8;
}
.lz-leave-tab-panel { margin-top: 0; }
.lz-leave-block-title { margin: 0 0 10px; font-size: 15px; }
.lz-leave-empty { margin: 0; color: #64748b; font-size: 14px; }
.lz-leave-approve-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.lz-leave-approve-grid > :only-child { grid-column: 1 / -1; }
.lz-leave-mode { display: flex; gap: 8px; margin: 0 0 12px; }
.lz-leave-mode button {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 999px;
  min-height: 36px;
  padding: 6px 14px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}
.lz-leave-mode button.is-active {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
}
.lz-leave-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
}
.lz-leave-status--pending { background: #fef3c7; color: #92400e; }
.lz-leave-status--approved { background: #dcfce7; color: #166534; }
.lz-leave-status--rejected { background: #fee2e2; color: #991b1b; }
.lz-team-cal-count {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #1d4ed8;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
}
.lz-leave-cal-day.is-team-pending .lz-team-cal-count { background: #d97706; }
.lz-leave-cal-day.is-team-approved:not(.is-outside) {
  background: #dbeafe;
  color: #1e3a8a;
}
.lz-leave-cal-day.is-team-pending:not(.is-outside) {
  background: #fef3c7;
  color: #92400e;
}
.lz-leave-cal-day.is-team-selected { box-shadow: inset 0 0 0 2px #1d4ed8; }
.lz-leave-cal-key.is-team-approved::before { background: #93c5fd; }
.lz-leave-cal-key.is-team-pending::before { background: #fcd34d; }
.lz-team-cal-daylist { padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.lz-team-cal-daylist h4 { margin: 8px 0 0; font-size: 14px; }
@media (max-width: 720px) {
  .lz-leave-approve-grid { grid-template-columns: 1fr; }
}
.lz-leave-sat-lock {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ccfbf1;
  color: #0f766e;
  font-size: 12px;
  font-weight: 700;
}
.lz-leave-day-table tr.is-sat-half { background: #f0fdfa; }
.lz-leave-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 120px;
  margin-top: 6px;
  border: 1.5px dashed #94a3b8;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  cursor: pointer;
  overflow: hidden;
}
.lz-leave-dropzone:hover,
.lz-leave-dropzone:focus {
  border-color: #2563eb;
  background: #eff6ff;
  outline: none;
}
.lz-leave-dropzone.is-drop {
  border-color: #c62828;
  background: #fef2f2;
  box-shadow: inset 0 0 0 2px rgba(198, 40, 40, 0.15);
}
.lz-leave-dropzone.has-file {
  border-style: solid;
  border-color: #cbd5e1;
  background: #fff;
  cursor: default;
}
.lz-leave-dropzone__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.lz-leave-dropzone__idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 22px 16px;
  text-align: center;
  color: #475569;
  pointer-events: none;
}
.lz-leave-dropzone__idle strong {
  font-size: 15px;
  color: #0f172a;
}
.lz-leave-dropzone__idle span:last-child { font-size: 13px; color: #64748b; }
.lz-leave-dropzone__icon { font-size: 22px; line-height: 1; }
.lz-leave-dropzone__preview {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}
.lz-leave-dropzone.has-file .lz-leave-dropzone__preview { display: flex; }
.lz-leave-dropzone__img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  flex-shrink: 0;
}
.lz-leave-dropzone__pdf {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #0f172a;
  color: #fecaca;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.lz-leave-dropzone__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
  font-size: 13px;
  color: #64748b;
}
.lz-leave-dropzone__meta strong {
  color: #0f172a;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lz-leave-dropzone__clear {
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  color: #334155;
}
.lz-leave-dropzone__clear:hover { background: #f8fafc; border-color: #94a3b8; }
.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:disabled + .gps-switch-track {
  opacity: 0.55;
}
.gps-switch-row:has(.gps-switch-input:disabled) {
  cursor: default;
  opacity: 0.8;
}
.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--PENDING_PM { background: #ffedd5; color: #c2410c; }
.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-wo-overview-sor-tabs { margin: 8px 0 10px; }
.pg-wo-overview-sor-total {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--lz-text, #0f172a);
  line-height: 1.2;
}
.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-hub-card--workplan .pg-wo-wp-head,
.pg-wo-workplan-section .pg-wo-wp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
}
.pg-wo-hub-card--workplan.is-collapsed .pg-wo-wp-body,
.pg-wo-workplan-section.is-collapsed .pg-wo-wp-body,
.pg-wo-hub-card--workplan .pg-wo-wp-body.hidden,
.pg-wo-workplan-section .pg-wo-wp-body.hidden {
  display: none !important;
}
.pg-wo-wp-assign.is-locked .pg-wo-wp-assign-picker { display: none; }
.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-claim-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  background: #f8fafc;
  margin-bottom: 10px;
}
.pg-claim-dropzone.is-dragover { border-color: #2563eb; background: #eff6ff; }
.pg-claim-prep-quick-add { margin: 8px 0 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#pgClaimQtySaveStatus { margin: 0 0 10px; }
#pgClaimQtySaveStatus.is-ok { color: #166534; }
#pgClaimQtySaveStatus.is-err { color: #b91c1c; }
#pgClaimQtySaveStatus.is-busy { color: #1d4ed8; }
.pg-claim-meta-strip {
  padding: 10px 12px 8px;
  margin: 0 0 8px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 12px;
  color: #0f172a;
}
.pg-claim-meta-head {
  display: table;
  width: 100%;
  table-layout: fixed;
}
.pg-claim-meta-col {
  display: table-cell;
  width: 50%;
  vertical-align: top;
  padding: 0 12px 0 0;
}
.pg-claim-meta-col + .pg-claim-meta-col { padding: 0 0 0 12px; }
.pg-claim-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 2px 0 6px;
  min-height: 28px;
}
.pg-claim-meta-row strong {
  font-weight: 700;
}
.pg-claim-meta-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 13.5rem;
  flex: 0 0 auto;
}
.pg-claim-meta-row > span,
.pg-claim-meta-row > input {
  flex: 1 1 10rem;
  min-width: 0;
}
.pg-claim-meta-row > .pg-claim-meta-label { flex: 0 0 auto; }
.pg-claim-meta-input {
  width: auto;
  min-width: 140px;
  padding: 4px 8px;
  font: inherit;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
}
.pg-claim-meta-input[type="date"] {
  min-width: 154px;
  color-scheme: light;
}
.pg-claim-meta-date-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 10rem;
  min-width: 0;
}
.pg-claim-meta-date-wrap .pg-claim-meta-input {
  flex: 1 1 auto;
}
.pg-claim-meta-today {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 4px 10px;
}
.pg-claim-meta-row strong span[id$="DateSubmittedRevLabel"] {
  font-weight: 600;
  color: #2563eb;
}
.pg-claim-meta-row--nova {
  min-height: 28px;
}
.pg-claim-meta-row--nova .pg-claim-meta-label {
  min-width: 0;
}
.pg-claim-meta-row.is-off .pg-claim-meta-input,
.pg-claim-meta-row.is-off .pg-claim-meta-date-wrap { display: none; }
#pgClaimMetaStrip .pg-claim-meta-eye {
  width: 34px;
  height: 34px;
}
#pgClaimMetaStrip .pg-claim-meta-eye-icon {
  width: 22px;
  height: 22px;
}
.pg-claim-meta-eye {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #94a3b8;
  border-radius: 4px;
  cursor: pointer;
}
.pg-claim-meta-eye[aria-pressed="true"] {
  color: #1d4ed8;
  background: transparent;
  border: 0;
}
.pg-claim-meta-eye-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z'/><circle cx='12' cy='12' r='3'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z'/><circle cx='12' cy='12' r='3'/></svg>") center / contain no-repeat;
}
.pg-claim-meta-eye[aria-pressed="false"] .pg-claim-meta-eye-icon {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 3l18 18'/><path d='M10.6 10.6a3 3 0 0 0 4.2 4.2'/><path d='M9.5 5.2A11 11 0 0 1 22 12s-1.4 2.6-4 4.5'/><path d='M6.1 6.1C3.9 7.8 2 12 2 12s3.5 7 10 7a10.8 10.8 0 0 0 5.2-1.3'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 3l18 18'/><path d='M10.6 10.6a3 3 0 0 0 4.2 4.2'/><path d='M9.5 5.2A11 11 0 0 1 22 12s-1.4 2.6-4 4.5'/><path d='M6.1 6.1C3.9 7.8 2 12 2 12s3.5 7 10 7a10.8 10.8 0 0 0 5.2-1.3'/></svg>") center / contain no-repeat;
}
@media (max-width: 900px) {
  .pg-claim-meta-col,
  .pg-claim-meta-col + .pg-claim-meta-col {
    display: block;
    width: 100%;
    padding: 0;
  }
  .pg-claim-meta-col + .pg-claim-meta-col { padding-top: 4px; }
}
.pg-vwd-submitted-docs {
  margin: 10px 0 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.pg-vwd-submitted-docs > .feed-meta {
  font-size: 13px;
  margin-bottom: 8px !important;
  color: #475569;
}
.pg-vwd-doc-ticks { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-vwd-doc-tick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #334155;
  background: #fff;
  border: 1px solid #cbd5e1;
  padding: 6px 10px 6px 8px;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
  border-radius: 999px;
}
.pg-vwd-doc-tick:hover { border-color: #64748b; background: #f1f5f9; }
.pg-vwd-doc-box {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #94a3b8;
  border-radius: 4px;
  background: #fff;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.pg-vwd-doc-tick.is-on {
  color: #166534;
  font-weight: 600;
  background: #dcfce7;
  border-color: #86efac;
}
.pg-vwd-doc-tick.is-on .pg-vwd-doc-box {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}
.pg-vwd-doc-tick.is-on:hover { background: #bbf7d0; border-color: #4ade80; }
.pg-vwd-doc-tick:disabled { cursor: default; opacity: 0.72; }
.pg-vwd-doc-tick:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.pg-modal { position: fixed; inset: 0; z-index: 12000; display: flex; align-items: center; justify-content: center; }
.pg-modal.hidden { display: none !important; }
.pg-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.45); }
.pg-modal-card.pg-owner-lifecycle-card { max-width: 760px; }
.pg-modal-card.pg-owner-lifecycle-card label { display: block; margin: 0 0 10px; font-size: 13px; }
.pg-modal-card.pg-owner-lifecycle-card input,
.pg-modal-card.pg-owner-lifecycle-card select,
.pg-modal-card.pg-owner-lifecycle-card textarea { display: block; width: 100%; margin-top: 4px; }
.pg-modal-card,
.pg-modal-panel {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 18px 20px;
  max-width: 520px;
  width: calc(100% - 32px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  z-index: 1;
}
.pg-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}
.pg-modal-head h3 { margin: 0; font-size: 16px; }
.pg-ev-type-modal h4 { margin: 0 0 8px; }
.pg-ev-type-bubbles { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.pg-ev-type-bubble {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.pg-ev-type-bubble:hover { border-color: #2563eb; background: #eff6ff; }
.pg-ev-type-bubble.is-suggested { border-color: #2563eb; background: #dbeafe; color: #1d4ed8; }
.pg-split-merge-choices { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 16px; }
.pg-split-merge-choice {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
}
.pg-split-merge-choice strong { display: block; font-size: 14px; font-weight: 700; }
.pg-split-merge-choice span { display: block; margin-top: 4px; font-size: 12px; color: #64748b; font-weight: 500; }
.pg-split-merge-choice:hover { border-color: #2563eb; background: #eff6ff; }
.pg-split-merge-choice.is-primary { border-color: #2563eb; background: #dbeafe; }
.pg-missing-date-custom {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
}
.pg-missing-date-custom label { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 700; color: #0f172a; }
.pg-missing-date-custom-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pg-missing-date-custom-row input[type="date"] {
  flex: 1 1 160px;
  min-height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
}
.pg-ev-others-wrap { margin: 0 0 12px; }
.pg-ev-others-wrap input,
.pg-ev-others-label,
.pg-ev-type-select,
#pgClaimFileLocationInput,
#pgPcClaimFileLocationInput {
  width: 100%;
  max-width: 420px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
}
.pg-ev-type-select { max-width: 220px; }
.pg-claim-docs-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}
.pg-claim-docs-heading h4 { margin: 0; }
.pg-claim-docs-table .pg-claim-doc-size {
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.pg-claim-file-loc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #a5b4fc;
  background: #eef2ff;
  border-radius: 10px;
}
.pg-claim-file-loc-row .btn {
  flex: 0 0 auto;
  order: 0;
}
.pg-claim-file-loc-row .feed-meta {
  margin: 0;
  flex: 1 1 180px;
  order: 1;
  color: #1e3a8a;
  font-weight: 600;
}
.pg-claim-file-loc-edit {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  border-radius: 8px;
}
.pg-claim-file-loc-edit:hover {
  color: #0f172a;
  background: #e2e8f0;
  border-color: #cbd5e1;
}
.pg-claim-file-loc-editor {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}
.pg-claim-file-loc-editor label { display: block; margin: 0 0 6px; }
.pg-claim-file-loc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pg-claim-file-loc-warn {
  margin: 0 0 10px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #fbbf24;
  background: #fffbeb;
  color: #92400e;
  font-size: 12px;
  line-height: 1.4;
}
.pg-claim-file-loc-warn.hidden { display: none; }
#pgClaimFileLocationLen,
#pgPcClaimFileLocationLen {
  margin: -4px 0 10px;
  color: #334155;
  font-weight: 600;
}
.pg-claim-stage-label { font-weight: 700; margin-right: 4px; }
.pg-claim-rev-add { margin: 0 6px 0 2px; padding: 0 8px; line-height: 1.4; }
.pg-claim-rev-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; }
.pg-claim-rev-chip {
  border: 1px solid #cbd5e1; background: #f8fafc; color: #334155;
  border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 600; cursor: pointer;
}
.pg-claim-rev-chip:hover { border-color: #2563eb; background: #eff6ff; }
.pg-claim-rev-chip.is-active { border-color: #2563eb; background: #dbeafe; color: #1d4ed8; }
.pg-claim-rev-chip.is-minimized { opacity: 0.72; background: #fff; }
.pg-claim-rev-chip.is-minimized::after { content: " ▸"; font-weight: 700; }
.pg-modal-actions { display: flex; gap: 8px; justify-content: flex-end; }
.pg-claim-combo-table .pg-claim-col-wo { background: #f1f5f9; }
.pg-claim-combo-table th.pg-claim-col-wo { color: #475569; font-size: 11px; }
.pg-claim-combo-table .pg-claim-wo-ref { background: #f8fafc; color: #64748b; }
.pg-claim-combo-table th.pg-claim-col-vwd { background: #dbeafe; color: #1e40af; }
.pg-claim-combo-table th.pg-claim-col-pc { background: #dcfce7; color: #166534; }
.pg-claim-combo-table tfoot .pg-claim-combo-totals-label {
  text-align: right;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
}
.pg-claim-combo-table tfoot .pg-claim-combo-total-amt {
  font-size: 1.2rem;
  font-weight: 800;
  white-space: nowrap;
}
.pg-claim-combo-table tfoot #pgVwdLinesTotalCell { color: #1e40af; }
.pg-claim-combo-table tfoot #pgPcLinesTotalCell { color: #166534; }
.pg-claim-combo-totals-note {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #1e3a8a;
}
.pg-claim-combo-totals-note.is-over-wo { color: #1d4ed8; }
.pg-claim-combo-table td.pg-claim-qty-mismatch {
  background: #fef3c7;
}
.pg-claim-combo-table td.pg-claim-qty-mismatch .pg-qty-stepper input {
  outline: 1px solid #d97706;
  background: #fffbeb;
}
.pg-claim-lines-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 10px 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}
.pg-claim-lines-totals .feed-meta { font-size: inherit; font-weight: inherit; color: inherit; margin: 0; }
.pg-qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}
.pg-qty-stepper input {
  width: 3.8em;
  min-width: 3.4em;
  text-align: center;
  padding: 6px 6px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  -moz-appearance: textfield;
  appearance: textfield;
}
.pg-qty-stepper input::-webkit-outer-spin-button,
.pg-qty-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.pg-qty-step-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border: 1px solid #94a3b8;
  border-radius: 5px;
  background: #f8fafc;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  flex: 0 0 auto;
}
.pg-qty-step-btn:hover:not(:disabled) {
  background: #e2e8f0;
  border-color: #334155;
}
.pg-qty-step-btn:active:not(:disabled) { background: #cbd5e1; }
.pg-qty-step-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pg-qty-step-btn--down::before,
.pg-qty-step-btn--up::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
}
.pg-qty-step-btn--down::before {
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 10px solid #0f172a;
}
.pg-qty-step-btn--up::before {
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid #0f172a;
}
.pg-claim-prep-edit-lines { margin-left: auto; }
.pg-claim-combo-table .pg-claim-remove-col {
  width: 40px;
  min-width: 40px;
  padding: 4px;
  text-align: center;
  vertical-align: middle;
}
.pg-claim-combo-table:not(.is-row-edit) .pg-claim-remove-col {
  width: 0;
  min-width: 0;
  max-width: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
}
.pg-claim-remove-btn {
  width: 28px;
  height: 28px;
  min-width: 28px;
  padding: 0;
  border: 1px solid #b91c1c;
  border-radius: 6px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.pg-claim-remove-btn:hover {
  background: #b91c1c;
  color: #fff;
}
.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-wo-link {
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: none;
}
.pg-queue-wo-link:hover { text-decoration: underline; }
.pg-queue-actions { white-space: normal; min-width: 180px; }
.pg-queue-actions .btn { margin: 2px 2px 2px 0; }
.pg-queue-hold-tag {
  margin-top: 4px;
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  padding: 2px 6px;
  border-radius: 4px;
  background: #fef3c7;
  color: #92400e;
}
.pg-queue-hold-tag.is-mine {
  background: #dbeafe;
  color: #1e40af;
}
.pg-queue-hold-tag.is-other {
  background: #fee2e2;
  color: #991b1b;
}
.pg-queue-row-held td {
  background: rgba(254, 243, 199, 0.35);
}
.pg-queue-locked-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #991b1b;
  padding: 4px 8px;
  border-radius: 4px;
  background: #fee2e2;
  border: 1px solid #fca5a5;
}
.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; }
.lz-user-menu-item .pg-outstanding-badge {
  margin-left: 8px;
  vertical-align: middle;
}
.lz-profile-tab .pg-outstanding-badge { margin-left: 6px; }
.lz-profile-sig1-banner {
  border-left: 3px solid #c62828;
}
.lz-profile-sig1-banner p { margin: 0; }
.lz-profile-sig1-banner a { font-weight: 600; }
.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;
}
#btnPgDrawerWithdrawSes {
  min-width: 36px;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
}
.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;
}
.pg-claim-form-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  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-claim-form-loading-overlay.hidden { display: none; }
.pg-claim-form-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-identity-check {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid #b91c1c;
  background: #fff1f2;
}
.pg-identity-check-lead {
  margin: 0 0 10px;
  color: #9f1239;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.pg-identity-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.pg-identity-check-grid span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9f1239;
}
.pg-identity-check-grid strong,
.pg-identity-value,
.pg-drawer-summary-grid .pg-sum-cell--check dd {
  color: #b91c1c;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  word-break: break-word;
}
.pg-drawer-summary-grid .pg-sum-cell--check {
  background: #fff1f2;
  border: 1px solid #fecdd3;
}
.pg-drawer-summary-grid .pg-sum-cell--check dt {
  color: #9f1239;
}
@media (max-width: 720px) {
  .pg-identity-check-grid { grid-template-columns: 1fr; }
  .pg-identity-check-grid strong,
  .pg-identity-value,
  .pg-drawer-summary-grid .pg-sum-cell--check dd { font-size: 22px; }
}
.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-claim-prep-quick-add { position: relative; }
.pg-claim-prep-quick-add #pgClaimPrepSorDesc { max-width: 280px; min-width: 200px; }
.pg-sor-suggest {
  position: absolute;
  left: 0;
  top: calc(100% - 2px);
  z-index: 50;
  min-width: min(560px, 100%);
  max-height: 260px;
  overflow: auto;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}
.pg-sor-suggest.hidden { display: none !important; }
.pg-sor-suggest-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.35;
  color: #0f172a;
}
.pg-sor-suggest-row:hover,
.pg-sor-suggest-row:focus {
  background: #eff6ff;
  outline: none;
}
.pg-sor-suggest-svc { font-weight: 700; color: #1d4ed8; min-width: 2.5em; }
.pg-sor-suggest-item { color: #64748b; font-size: 12px; }
.pg-sor-suggest-desc { color: #334155; }
.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-sor-total-bar--toolbar {
  margin: 0;
  flex: 0 1 auto;
  white-space: nowrap;
  align-items: center;
  gap: 8px 14px;
  padding: 6px 10px;
  font-size: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.pg-sor-total-bar--toolbar.is-ok {
  border-color: #86efac;
  background: #f0fdf4;
}
.pg-sor-total-bar--toolbar.is-mismatch {
  border-color: #fca5a5;
  background: #fef2f2;
}
.pg-sor-total-bar.is-ld-ok,
.pg-sor-total-bar--toolbar.is-ld-ok {
  border-color: #fbbf24;
  background: #fffbeb;
}
.pg-ses-ld-banner {
  background: #fff8e1;
  border: 1px solid #fbbf24;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
}
.pg-ses-ld-banner strong { color: #b45309; }
.pg-ses-ld-banner-actions { margin-top: 8px; }
.pg-drop-ses-ld-btn { font-size: 12px; }
.pg-sum-cell--readonly dd { color: #334155; }
.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--vendor { background: #eff6ff; border-color: #93c5fd; }
.pg-drawer-card--vendor > h4 { color: #1d4ed8; }
.pg-drawer-vendor-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 12px;
}
.pg-drawer-vendor-row .feed-meta { margin: 0; flex: 1 1 180px; }
.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-drawer-pdf-viewer { min-height: 0; }
  .lz-pdf-preview-scroll { max-height: min(58vh, 640px); padding: 8px; }
  .pg-pdf-sign-stage { max-height: min(52vh, 560px); padding: 8px; }
  .lz-pdf-preview-page { margin-bottom: 10px; }
}
.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--empty a,
.pg-drawer-workplan-hint a { color: #1d4ed8; font-weight: 600; }
.pg-drawer-workplan-hint { margin: 8px 0 0; }
.pg-drawer-voplan-hint { margin: 8px 0; }
.pg-drawer-voplan-create { margin-top: 8px; }
.pg-drawer-voplan-create .pg-search-input { width: 100%; margin-top: 4px; }
.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-date-group { display: flex; flex-direction: column; gap: 8px; }
.pg-timeline-date-group + .pg-timeline-date-group {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--lz-border, #e5e7eb);
}
.pg-timeline-date-header {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--lz-muted, #64748b);
  text-transform: none;
}
.pg-timeline-date-items { display: flex; flex-direction: column; gap: 6px; }
.pg-timeline-item { display: flex; gap: 8px; align-items: flex-start; }
.pg-timeline-icon {
  flex-shrink: 0;
  min-width: 2rem;
  width: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.35;
  color: #64748b;
  text-align: left;
}
.pg-timeline-body { flex: 1; min-width: 0; }
.pg-timeline-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 14px;
}
.pg-timeline-content {
  flex: 1;
  min-width: 0;
}
.pg-timeline-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  line-height: 1.35;
}
.pg-timeline-main > strong,
.pg-timeline-label {
  font-weight: 600;
}
.pg-timeline-meta {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
}
.pg-timeline-detail {
  font-size: 12px;
  color: #555;
  margin-top: 1px;
  line-height: 1.35;
  font-style: italic;
}
.pg-timeline-actions {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 6px;
  margin-top: 1px;
}
.pg-timeline-actions .btn {
  padding: 2px 7px;
  font-size: 11px;
  line-height: 1.3;
}
.pg-claim-doc-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  white-space: nowrap;
}
.pg-claim-doc-dl {
  padding: 4px 6px;
  line-height: 1;
  min-width: 32px;
}
.pg-claim-doc-dl svg {
  display: block;
  width: 14px;
  height: 14px;
}
.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: 2px; 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;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body[data-lz-module="scheduler"] .sch-scheduler-board-layout--teams .sch-teams-view {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body[data-lz-module="scheduler"] .sch-scheduler-board-layout--teams #schTeamsHost {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
body[data-lz-module="scheduler"] .sch-scheduler-board-layout--teams .people-teams-layout {
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
  grid-template-columns: minmax(0, 1fr) 280px;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
}
body[data-lz-module="scheduler"] .sch-scheduler-board-layout--teams .people-teams-main {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 12px 16px 16px;
}
body[data-lz-module="scheduler"] .sch-scheduler-board-layout--teams .people-teams-sidebar {
  width: 280px;
  max-width: 280px;
  max-height: none;
  min-height: 0;
  align-self: stretch;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 0;
  border-radius: 0;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 1px solid #93c5fd;
  background: linear-gradient(160deg, #eff6ff 0%, #dbeafe 100%);
  padding: 12px 14px;
  box-shadow: none;
}
body[data-lz-module="scheduler"] .sch-scheduler-board-layout--teams .people-teams-sidebar .sch-unassigned-head,
body[data-lz-module="scheduler"] .sch-scheduler-board-layout--teams .people-teams-sidebar .sch-unassigned-search,
body[data-lz-module="scheduler"] .sch-scheduler-board-layout--teams .people-teams-sidebar > .feed-meta {
  flex-shrink: 0;
}
body[data-lz-module="scheduler"] .sch-scheduler-board-layout--teams .people-teams-sidebar .sch-unassigned-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
}
body[data-lz-module="scheduler"] .sch-scheduler-board-layout--teams .people-teams-sidebar .sch-unassigned-list .people-unassigned-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #dbeafe;
}
body[data-lz-module="scheduler"] {
  height: 100vh;
  overflow: hidden;
}
body[data-lz-module="scheduler"] .app-shell {
  height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}
body[data-lz-module="scheduler"] .dashboard-body {
  min-height: 0;
  overflow: hidden;
}
body[data-lz-module="scheduler"] .sch-scheduler-board-layout > .sch-board-sidebar {
  align-self: stretch;
  max-height: 100%;
  overflow: visible;
}
body[data-lz-module="scheduler"] .sch-scheduler-board-layout > .sch-board-sidebar .sch-sidebar-card--workers {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  margin-bottom: 0;
}
body[data-lz-module="scheduler"] .sch-scheduler-board-layout > .sch-board-sidebar .sch-sidebar-hint,
body[data-lz-module="scheduler"] .sch-scheduler-board-layout > .sch-board-sidebar .sch-unassigned-head,
body[data-lz-module="scheduler"] .sch-scheduler-board-layout > .sch-board-sidebar .sch-unassigned-search {
  flex-shrink: 0;
}
body[data-lz-module="scheduler"] .sch-scheduler-board-layout > .sch-board-sidebar .sch-unassigned-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
}
body[data-lz-module="scheduler"] .sch-scheduler-board-layout > .sch-board-sidebar .sch-unassigned-list .people-unassigned-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #dbeafe;
}
body[data-lz-module="scheduler"] .sch-scheduler-board-layout > .sch-board-sidebar .sch-sidebar-card--movement {
  flex: 0 1 auto;
  max-height: 34%;
  min-height: 0;
  overflow: auto;
  margin-bottom: 0;
}
body[data-lz-module="scheduler"] .sch-scheduler-board-layout > .sch-board-sidebar .sch-movement-show-chip {
  flex-shrink: 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-movement-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.sch-movement-head .panel-title { margin: 0; }
.sch-movement-toggle {
  flex: 0 0 auto;
  font-size: 12px;
  padding: 6px 12px;
}
.sch-movement-show-chip {
  width: 100%;
  margin-top: 4px;
  justify-content: center;
}
.sch-date-label { display: flex; align-items: center; gap: 8px; }
.sch-copy-dates { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.sch-copy-dates-pick { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.sch-copy-dates-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sch-copy-dates-row input[type="date"] {
  min-width: 11rem;
  max-width: 16rem;
  flex: 1 1 11rem;
}
.sch-copy-date-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 1.75rem;
}
.sch-copy-date-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px 4px 10px;
  border: 1px solid var(--lz-border, #cbd5e1);
  border-radius: 999px;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}
.sch-copy-date-chip button {
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 999px;
}
.sch-copy-date-chip button:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.sch-copy-date-chips-empty { color: var(--lz-muted, #64748b); font-size: 13px; }
.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,
.sch-board-table tbody tr.sch-board-row.is-selected td,
.sch-board-table tbody tr.sch-board-row.is-selected .sch-board-team-cell {
  background: #facc15;
}
.sch-board-table tbody tr.sch-board-row.is-selected td:first-child {
  box-shadow: inset 4px 0 0 #b45309;
}
.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-table tbody tr.sch-board-row--buffer { background: #fffbeb; }
.sch-board-table tbody tr.sch-board-row--buffer:hover { background: #fff7ed; }
.sch-board-table tbody tr.sch-board-row--buffer.is-selected,
.sch-board-table tbody tr.sch-board-row--buffer.is-selected td {
  background: #facc15;
}
.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;
}
.lz-modal-dialog--wide,
#ctrSorUsageModal .lz-modal-dialog {
  width: min(980px, 100%);
}
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-float-team-picker { width: min(440px, 100%); }
.sch-float-team-picker .section-head-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.sch-float-team-picker .section-head-row h3 { margin: 0; font-size: 16px; }
.sch-float-team-picker-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.sch-float-team-pick {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; text-align: left;
}
.sch-float-team-pick .feed-meta { margin: 0; }
.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-planner-section-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto;
}
.sch-wo-toggles {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px;
}
.sch-wo-filter-pill {
  border: 0; background: transparent; border-radius: 999px;
  padding: 4px 10px; font-size: 12px; line-height: 1.3; cursor: pointer;
  color: var(--lz-muted); font-weight: 500;
}
.sch-wo-filter-pill:hover {
  color: #1e40af; background: #eff6ff;
}
.sch-wo-filter-pill.is-active {
  color: #1e40af; background: #dbeafe; font-weight: 600;
}
.sch-selected-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 10px; padding: 10px 12px; border-radius: 8px;
  border: 1px solid #fecaca; background: #fff5f5;
}
.sch-selected-chip strong { color: var(--lz-red); font-size: 14px; }
.sch-selected-chip .feed-meta { margin: 2px 0 0; }
.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: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  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-main { flex: 1; min-width: 0; }
.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-card-aside {
  flex: 0 0 auto; text-align: right; font-size: 11px; color: var(--lz-muted);
  line-height: 1.4; white-space: nowrap;
}
.sch-wo-card-aside-row { display: block; }
.sch-wo-card-aside-sched { font-weight: 600; margin-top: 2px; }
.sch-wo-card-aside-sched.is-none { font-weight: 500; color: var(--lz-muted); }
.sch-wo-card-aside-sched.has-jobs { color: #1e40af; }
.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-crew-lock-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  background: #fffbeb;
}
.sch-crew-lock-banner.hidden { display: none; }
.sch-crew-lock-text {
  margin: 0;
  flex: 1 1 220px;
  font-size: 13px;
  color: #92400e;
}
.sch-personnel-section--crew-locked #btnSchEditPersonnel,
.sch-personnel-section--crew-locked #btnSchSubconPersonnel {
  display: none !important;
}
.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-add-personnel-btn { margin: 0 0 8px; }
.sch-personnel-add-panel {
  margin-bottom: 10px; padding: 8px; border: 1px solid #e2e8f0;
  border-radius: 6px; background: #fff;
}
.sch-member-checks {
  display: flex; flex-direction: column; gap: 2px;
  max-height: 220px; overflow-y: auto; margin-bottom: 10px;
  border: 1px solid #e2e8f0; border-radius: 6px; background: #fff;
}
.sch-member-add-list {
  display: flex; flex-direction: column; gap: 2px;
  max-height: 200px; overflow-y: auto;
  border: 1px solid #e2e8f0; border-radius: 6px; background: #fff;
}
.sch-member-check {
  display: grid;
  grid-template-columns: 22px minmax(64px, 88px) 1fr 28px;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  font-size: 13px;
  cursor: default;
  border-bottom: 1px solid #f1f5f9;
  margin: 0;
}
.sch-member-add-row {
  display: grid;
  grid-template-columns: 28px minmax(64px, 88px) 1fr;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  font-size: 13px;
  border-bottom: 1px solid #f1f5f9;
}
.sch-member-add-row:last-child { border-bottom: 0; }
.sch-member-add-row:hover { background: #f8fafc; }
.sch-member-check:last-child { border-bottom: 0; }
.sch-member-check:hover { background: #f8fafc; }
.sch-member-check.is-supervisor { background: #fffbeb; }
.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-remove {
  border: 1px solid #fecaca; background: #fff; color: var(--lz-red);
  border-radius: 4px; width: 28px; height: 28px; padding: 0;
  font-size: 16px; line-height: 1; cursor: pointer;
}
.sch-member-remove:hover { background: #fef2f2; }
.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 minmax(110px, 1fr) 88px 88px minmax(140px, 1.4fr);
  gap: 8px 10px;
  align-items: end;
  padding: 12px;
  background: #f8fafc;
  border-radius: 10px;
  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-md-field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--lz-muted, #64748b);
  margin-bottom: 6px;
}
.sch-md-type-block {
  grid-column: 1 / -1;
  padding-top: 4px;
  border-top: 1px dashed #e2e8f0;
  margin-top: 2px;
}
.sch-md-type-pills {
  gap: 5px;
}
.sch-md-type-pill {
  padding: 5px 10px;
  font-size: 11px;
  border-radius: 999px;
}
.sch-md-remarks-wrap { min-width: 0; }
.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-md-shift {
  display: inline-block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--lz-navy, #1e3a5f);
}
.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-lane-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 8px;
}
.wp-lane-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--lz-border, #e2e8f0);
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.wp-lane-tab-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.wp-lane-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.wp-lane-tab.is-active .wp-lane-badge {
  background: #fee2e2;
  color: #991b1b;
}
.wp-lane-badge--action {
  background: var(--lz-red, #dc2626);
  color: #fff;
}
.wp-lane-tab.is-active .wp-lane-badge--action {
  background: var(--lz-red, #dc2626);
  color: #fff;
}
.wp-list-table tbody tr.wp-row--ready-close { background: #fff7ed; }
.wp-lane-tab:hover { border-color: #cbd5e1; background: #fff; }
.wp-lane-tab.is-active {
  background: #fff;
  border-color: var(--lz-red, #dc2626);
  box-shadow: 0 0 0 1px var(--lz-red, #dc2626);
}
.wp-lane-tab-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.wp-lane-tab.is-active .wp-lane-tab-label { color: var(--lz-red, #dc2626); }
.wp-dr-date { font-weight: 700; color: #334155; white-space: nowrap; }
.wp-dr-date--fresh { color: #15803d; }
.wp-dr-date--stale { color: #b45309; }
.wp-followup-guide {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 13px;
  line-height: 1.45;
  color: #334155;
}
.wp-followup-guide--warn {
  background: #fff7ed;
  border-color: #fed7aa;
}
.wp-followup-guide--ok {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.wp-followup-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e0e7ff;
  color: #3730a3;
}
.wp-followup-chip--hot {
  background: #fee2e2;
  color: #991b1b;
}
.wp-list-remarks { min-width: 180px; max-width: 280px; }
.wp-remark-cell { cursor: text; min-height: 28px; }
.wp-remark-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.35;
  color: #0f172a;
}
.wp-remark-empty {
  font-size: 12px;
  color: #94a3b8;
  font-style: italic;
}
.wp-remark-input {
  width: 100%;
  min-height: 44px;
  font: inherit;
  font-size: 12px;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  resize: vertical;
  box-sizing: border-box;
}
.wp-lane-select {
  min-width: 108px;
  padding: 4px 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
.wp-status--closed { background: #dbeafe; color: #1e40af; }
.wp-age { font-weight: 700; color: #334155; }
.wp-age--warn { color: #c2410c; }
.wp-age--urgent { color: #b91c1c; }
.wp-list-table tbody tr.wp-row--warn { background: #fffbeb; }
.wp-list-table tbody tr.wp-row--urgent { background: #fef2f2; }
.wp-status--ready { background: #dbeafe; color: #1e40af; }
@media (max-width: 768px) {
  .wp-lane-tabs { grid-template-columns: 1fr; }
}
.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: 16px 0 0;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.wp-add-wo-panel__summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  list-style: none;
}
.wp-add-wo-panel__summary::-webkit-details-marker { display: none; }
.wp-add-wo-panel__summary::before {
  content: '▸';
  display: inline-block;
  margin-right: 6px;
  color: #64748b;
  font-weight: 400;
}
.wp-add-wo-panel[open] > .wp-add-wo-panel__summary::before { content: '▾'; }
.wp-add-wo-panel__body { margin-top: 8px; }
.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-page--detail-only .wp-detail-card { margin-top: 0; }
.wp-page--detail-only #wpDetailHost { display: block; }
.wp-ov-plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wp-ov-plan-file {
  margin: 0 0 12px;
  padding: 10px 12px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.wp-ov-plan-file-name { margin: 0 0 8px; }
.wp-ov-plan-file .wp-ov-plan-list { gap: 6px; }
.wp-ov-plan-file .wp-ov-plan-card { padding: 8px 10px; }
.wp-ov-plan-file-actions { margin-top: 8px; }
.wp-ov-plan-card {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: flex-start;
  border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 12px; background: #fff;
}
.wp-ov-plan-card.is-active { border-color: #86efac; background: #f0fdf4; }
.wp-ov-plan-card-main { flex: 1 1 240px; min-width: 0; }
.wp-ov-plan-name-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.wp-ov-plan-name-view {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.wp-ov-plan-name-text { word-break: break-word; }
.wp-plan-name-edit {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
}
.wp-plan-name-edit:hover { color: #0f172a; background: #e2e8f0; }
.wp-ov-plan-name-edit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  width: 100%;
}
.wp-plan-name-input {
  flex: 1 1 180px;
  min-width: 140px;
  max-width: 420px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 8px;
  font: inherit;
  font-weight: 600;
}
.wp-ov-plan-card-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.wp-plan-view-modal {
  position: fixed; inset: 0; z-index: 13000;
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
}
.wp-plan-view-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.wp-plan-view-panel {
  position: relative;
  width: min(1100px, 100%);
  max-height: min(92vh, 900px);
  background: #fff;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
}
.wp-plan-view-head {
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border-bottom: 1px solid #e2e8f0;
}
.wp-plan-view-head h3 { margin: 0; font-size: 16px; }
.wp-plan-view-head p { margin: 4px 0 0; }
.wp-plan-view-body {
  flex: 1 1 auto; min-height: 0;
  overflow: auto;
  background: #f8fafc;
  padding: 12px;
  text-align: center;
}
.wp-plan-view-img {
  max-width: 100%;
  height: auto;
  background: #fff;
  box-shadow: 0 1px 8px rgba(15, 23, 42, 0.12);
}
.wp-tcp-view-map {
  width: 100%;
  height: min(70vh, 680px);
  min-height: 360px;
  background: #e2e8f0;
  border-radius: 8px;
}
.wp-tcp-view-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0 0 8px;
  font-size: 12px;
  color: #475569;
}
.wp-tcp-view-legend i {
  display: inline-block;
  width: 14px;
  height: 3px;
  margin-right: 5px;
  vertical-align: middle;
  border-radius: 1px;
}
.wp-ov-base-row {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: flex-start;
  padding: 8px 0; border-bottom: 1px solid #e2e8f0;
}
.wp-ov-base-row.is-inactive { opacity: 0.72; }
.wp-ov-base-row.is-inactive strong { color: #64748b; }
.wp-ov-base-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wp-ov-base-actions select { max-width: 220px; }
.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--ongoing { background: #dcfce7; color: #166534; }
.wp-status--completed { background: #dbeafe; color: #1e40af; }
.wp-status--close { background: #dbeafe; color: #1e40af; }
.wp-status--on-hold { background: #fef3c7; color: #92400e; }
.wp-status--pending { background: #fef3c7; color: #92400e; }
.wp-status--draft { background: #f1f5f9; color: #64748b; }
.wp-status--planned { background: #e0e7ff; color: #3730a3; }
.wp-status--assigned-to-vendor { background: #ede9fe; color: #5b21b6; }
.wp-status--cancelled { background: #fee2e2; color: #991b1b; }
.wp-wo-detail-panel { margin-top: 14px; }
.wp-wo-inline-card { margin-top: 0; }
.wp-form-vendor-host { margin-top: 6px; max-height: 220px; overflow: auto; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px; }
.wp-vendor-picker { display: flex; flex-direction: column; gap: 6px; }
.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-svy-photo-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.wp-svy-photo-tools input[type="search"] {
  min-width: 220px;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}
.wp-svy-day { margin-top: 14px; }
.wp-svy-day-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wp-svy-dr { padding: 12px; margin: 10px 0; }
.wp-svy-dr-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.wp-svy-photo-check {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  width: 18px;
  height: 18px;
}
.wp-svy-photo.is-shared .dr-photo-thumb { box-shadow: inset 0 0 0 3px #047857; }
.wp-svy-shared-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #047857;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.wp-svy-check {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 6px 0;
}
.wp-svy-day-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.wp-svy-day-chevron {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #334155;
}
.wp-svy-day.is-collapsed .wp-svy-day-chevron { transform: rotate(-90deg); }
.wp-svy-day.is-collapsed .wp-svy-day-body { display: none; }
.wp-svy-thumb { cursor: zoom-in; }
.wp-svy-desc { cursor: pointer; }
.wp-svy-dropzone {
  margin: 8px 0;
  padding: 14px;
  border: 1.5px dashed #93c5fd;
  border-radius: 12px;
  background: #eff6ff;
}
.wp-svy-dropzone.is-file-drag,
.wp-svy-dropzone:focus {
  outline: none;
  border-color: #1d4ed8;
  background: #dbeafe;
}
.wp-svy-dropzone-title { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: #1e3a8a; }
.wp-svy-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
#wpSurveyorRoot { padding-bottom: 84px; }
.wp-svy-share-bar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 40;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 24px);
  padding: 8px 10px 8px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
}
.wp-svy-share-bar[hidden] { display: none !important; }
.wp-svy-lightbox,
.wp-svy-queued {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.82);
}
.wp-svy-lightbox img {
  max-width: min(960px, 100%);
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}
.wp-svy-lightbox p,
.wp-svy-queued-card p { margin: 12px 0 0; color: #fff; text-align: center; }
.wp-svy-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.wp-svy-queued-card {
  width: min(420px, 100%);
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.24);
}
.wp-svy-queued-card p { margin: 0 0 8px; color: #0f172a; text-align: left; }
.wp-svy-queued-card .btn { 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;
}
.sf-cpms-photo-thumb--error {
  position: relative;
  outline: 2px solid #c62828;
  outline-offset: 0;
}
.sf-cpms-photo-thumb--error::after {
  content: '!';
  position: absolute;
  right: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #c62828;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  z-index: 2;
}
@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-list-format-badge {
  margin: 0;
  padding: 2px 8px;
  font-size: 0.7rem;
  white-space: nowrap;
}
.sf-compact-type { width: 4.5rem; }
.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-direction: column; flex-wrap: nowrap; gap: 6px; margin: 8px 0 4px; align-items: flex-start; width: 100%; }
.sf-review-photo img,
.sf-review-photo-img {
  display: block;
  width: 112px;
  max-width: 112px;
  height: 149px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.sf-review-photo--landscape img,
.sf-review-photo--landscape .sf-review-photo-img {
  width: 168px;
  max-width: 168px;
  height: 149px;
}
.sf-review-remarks { margin: 6px 0; white-space: pre-wrap; font-size: 0.95rem; line-height: 1.45; color: #0f172a; }
.sf-ohs-review-hazard { margin: 6px 0; line-height: 1.45; font-size: 0.95rem; color: #0f172a; }
.sf-ohs-review-hazard strong { display: inline; font-weight: 700; color: #0f172a; }
.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-reorder {
  display: inline-flex;
  gap: 2px;
  flex-shrink: 0;
}
.sf-ohs-reorder .btn {
  min-width: 32px;
  padding: 4px 8px;
  line-height: 1;
}
.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;
  pointer-events: auto;
  margin: 0;
  padding: 0;
  border: 0;
}
.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--outstanding .sf-ohs-rect-part {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid #fdba74;
}
.sf-ohs-obs-card--outstanding .sf-ohs-rect-part h5 {
  color: #9a3412;
}
.sf-ohs-required { color: #b91c1c; font-weight: 800; }
.sf-ohs-obs-card--hazard-missing {
  outline: 2px solid #dc2626;
  outline-offset: 1px;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}
.sf-ohs-obs-card--hazard-missing .sf-ohs-hazard-part {
  background: #fef2f2;
  border-radius: 8px;
  padding: 8px;
}
.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: 168px;
  flex: 0 0 168px;
  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: 168px;
  height: 168px;
  min-height: 120px;
  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 {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #0f172a;
  border-radius: 10px;
  padding: 0;
  margin-bottom: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.sf-ohs-review-item__head {
  padding: 9px 12px;
  background: #f8fafc;
  border-bottom: 2px solid #0f172a;
  line-height: 1.3;
}
.sf-ohs-review-item__head strong {
  font-size: 0.95rem;
  color: #0f172a;
  letter-spacing: 0.01em;
}
.sf-ohs-review-item__row,
.sf-ohs-review-item__rect-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
}
.sf-ohs-review-item__rect-row {
  border-top: 1px solid #cbd5e1;
}
.sf-ohs-review-item__rect-row--open {
  background: #fef2f2;
}
.sf-ohs-review-item__rect-row--closed {
  background: #f0fdf4;
}
.sf-ohs-review-item__main { min-width: 0; }
.sf-ohs-review-item__photos { min-width: 0; }
.sf-ohs-review-item__photos > .feed-meta {
  display: block;
  margin-bottom: 6px;
}
.sf-ohs-review-item__photos .sf-review-photo-strip {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0;
  align-items: flex-start;
}
.sf-ohs-review-item__photos .sf-review-photo-strip--packed {
  flex-direction: column;
  flex-wrap: nowrap;
}
.sf-ohs-review-caption {
  display: block;
  text-align: left;
  margin: 0 0 8px;
  line-height: 1.2;
}
.sf-ohs-review-caption-bubble {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.sf-ohs-review-caption--followup .sf-ohs-review-caption-bubble {
  background: #fff7ed;
  border-color: #fb923c;
  color: #c2410c;
}
.sf-ohs-review-caption--rectified .sf-ohs-review-caption-bubble {
  background: #ecfdf5;
  border-color: #34d399;
  color: #047857;
}
.sf-ohs-review-rect-meta .sf-ohs-review-hazard {
  margin: 4px 0;
}
@media (max-width: 720px) {
  .sf-ohs-review-item__row,
  .sf-ohs-review-item__rect-row { grid-template-columns: 1fr; }
}
.sf-ohs-review-item--good {
  border-left-color: #059669;
  background: #fff;
}
.sf-ohs-review-item--good .sf-ohs-review-item__head {
  background: #ecfdf5;
  border-bottom-color: #047857;
}
.sf-ohs-review-item--good .sf-ohs-review-item__row {
  background: #ecfdf5;
}
.sf-ohs-review-item--unsafe {
  border-left-color: #b91c1c;
}
.sf-ohs-review-item--unsafe .sf-ohs-review-item__head {
  background: #fef2f2;
  border-bottom-color: #991b1b;
}
.sf-ohs-review-item--unsafe .sf-ohs-review-item__row {
  background: #fef2f2;
}
.sf-ohs-review-hazard { margin: 6px 0; line-height: 1.45; font-size: 0.95rem; color: #0f172a; }
.sf-ohs-review-hazard strong { display: inline; font-weight: 700; color: #0f172a; }
.sf-ohs-rect-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 12px;
  align-items: start;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid #e2e8f0;
}
@media (max-width: 720px) {
  .sf-ohs-rect-item { grid-template-columns: 1fr; }
}
.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: 160px; }
.sf-cpms-col-remarks { width: 18%; min-width: 120px; }
.sf-cpms-col-photo { width: 40%; min-width: 280px; vertical-align: top; }
.sf-cpms-table td { vertical-align: top; }
.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);
  position: relative;
}
.sf-list-actions-th-label {
  margin-right: 4px;
  vertical-align: middle;
}
.sf-list-actions-help-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sf-list-actions-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}
.sf-list-actions-help-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #b91c1c;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.sf-list-actions-help-toggle:hover,
.sf-list-actions-help-toggle.is-open {
  background: #fef2f2;
  border-color: #fca5a5;
}
.sf-list-actions-help-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  width: min(280px, 78vw);
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.82rem;
  font-weight: 500;
  color: #0f172a;
  white-space: normal;
}
.sf-list-actions-help-title {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sf-list-actions-help-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sf-list-actions-help-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 6px;
  line-height: 1.35;
  color: #334155;
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: normal;
}
.sf-list-actions-help-glyph {
  flex: 0 0 1.25rem;
  width: 1.25rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}
.sf-list-actions-help-note {
  margin: 4px 0 0;
  font-size: 0.75rem;
}
.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-list-icon-btn,
.sf-list-icon-btn {
  min-width: 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  line-height: 1;
  font-size: 1.05rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}
.sf-insp-table .sf-list-icon-btn:hover,
.sf-list-icon-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}
.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: auto;
  width: auto;
  height: auto;
  padding: 0.2rem 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sf-insp-table .sf-list-report--pdf {
  min-width: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.sf-insp-table .sf-compact-location,
.sf-insp-table td.sf-compact-location {
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.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:not(.sf-ohs-photo-input--overlay),
.sf-cpms-photo-input:not(.sf-cpms-photo-input--overlay),
.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,
.sf-cpms-photo-input--overlay,
.sf-ohs-photo-input--overlay,
label.sf-cpms-photo-add > .sf-cpms-photo-input,
label.sf-ohs-photo-icon-btn > .sf-ohs-photo-input,
.ir-photo-input-overlay,
label.ir-file-pick > .ir-photo-input-overlay {
  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-refresh-dr-btn {
  min-width: 32px;
  padding: 2px 8px;
  line-height: 1.2;
  color: #0f766e;
  border-color: #99f6e4;
  background: #f0fdfa;
}
.sf-manpower-refresh-dr-btn:hover {
  color: #115e59;
  border-color: #5eead4;
  background: #ccfbf1;
}
.sf-manpower-refresh-dr-btn.is-busy,
.sf-manpower-refresh-dr-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}
.sf-manpower-refresh-icon {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 700;
  transform-origin: 50% 55%;
}
.sf-manpower-refresh-dr-btn.is-busy .sf-manpower-refresh-icon {
  animation: sf-manpower-spin 0.7s linear infinite;
}
@keyframes sf-manpower-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.dr-tbm-roster-warn {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #92400e;
}
.dr-site-crew-remarks {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.dr-site-crew-remarks-label {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}
.dr-site-crew-remarks-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
}
.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: normal;
  overflow-wrap: normal;
  hyphens: none;
}
.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;
}
.sf-review-details-table--split-col th {
  /* Fit label on one line; column grows to longest label. */
  width: 1%;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  overflow: visible;
  box-sizing: border-box;
  padding-right: 12px;
}
.sf-review-details-table--split-col td {
  width: auto;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
  box-sizing: border-box;
}
.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-back {
  margin: 0 0 10px;
}
.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-findings-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 12px;
}
.site-safety-item-toggle {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.site-safety-item-summary {
  margin-top: 4px;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.35;
}
.site-safety-item--compact {
  padding: 10px 12px;
  margin: 0;
}
.site-safety-item--compact .site-safety-item-body {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}
.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-dialog video,
.site-safety-lightbox-dialog iframe {
  width: min(96vw, 920px);
  height: min(80vh, 720px);
  border: 0;
  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-safety-photo-lightbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.sf-safety-photo-lightbox-actions[hidden] { display: none !important; }
.sf-safety-photo-lightbox-actions .btn {
  min-height: 44px;
  min-width: 88px;
}
.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: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.sf-review-details-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 2px;
}
.sf-review-details-split-col {
  min-width: 0;
}
.sf-review-details-split-col .sf-review-section-subtitle {
  margin: 0 0 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.3;
  min-height: 1.35em;
}
.sf-review-details-table--split-col {
  table-layout: auto;
  width: 100%;
  font-size: 0.82rem;
  margin-bottom: 0;
}
.sf-review-details-table--split-col th {
  width: 1%;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  overflow: visible;
  box-sizing: border-box;
  padding-right: 12px;
}
.sf-review-signatures-card {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  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 4px;
  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-identity {
  margin: 0 0 8px;
  text-align: left;
}
.sf-review-sig-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
  word-break: break-word;
}
.sf-review-sig-position {
  margin-top: 2px;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.3;
}
.sf-review-sig-pending-note {
  margin-top: 6px;
  color: #b45309;
  font-weight: 600;
}
.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);
}
/* Collapse only the signature image/controls — keep name / position visible. */
.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;
  padding: 0.2rem 0.55rem;
}
.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: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.sf-review-signature-card,
.sf-review-signatures-card {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.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: auto;
}
.sf-review-details-table--portrait th {
  width: 1%;
  max-width: none;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  overflow: visible;
  box-sizing: border-box;
  padding-right: 12px;
}
.sf-review-details-table--portrait td {
  width: auto;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
  box-sizing: border-box;
}
.sf-review-mgt-block {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}
.sf-review-photo-strip {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 8px;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
}
.sf-review-photo-strip--packed,
.sf-report-photo-strip.sf-review-photo-strip--packed {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  align-items: flex-start;
}
/* Fixed thumb tiles — 1 photo must not grow huge; 3 must not shrink. */
.sf-review-photo-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: flex-start;
  width: auto;
  max-width: 100%;
}
.sf-review-photo-row > .sf-review-photo,
.sf-review-photo-row > figure.sf-report-photo {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  flex: 0 0 auto;
}
.sf-review-photo-row .sf-review-photo--portrait,
.sf-review-photo-strip--packed .sf-review-photo--portrait {
  width: 112px;
  flex: 0 0 112px;
}
.sf-review-photo-row .sf-review-photo--landscape,
.sf-review-photo-strip--packed .sf-review-photo--landscape {
  width: 168px; /* 1.5 × portrait */
  flex: 0 0 168px;
}
.sf-review-photo img,
.sf-review-photo-strip img,
.sf-review-photo-img {
  display: block;
  width: 112px;
  max-width: 112px;
  height: 149px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.sf-review-photo--landscape img,
.sf-review-photo--landscape .sf-review-photo-img,
.sf-review-photo-strip--packed .sf-review-photo--landscape img,
.sf-review-photo-strip--packed .sf-review-photo--landscape .sf-review-photo-img {
  width: 168px;
  max-width: 168px;
  height: 149px;
  object-fit: cover;
}
@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-cpms-review-table .sf-cpms-col-photo {
  width: 42%;
  min-width: 300px;
}
.sf-cpms-review-table td {
  vertical-align: top;
}
.sf-review-photo-strip--packed,
.sf-report-photo-strip.sf-review-photo-strip--packed {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 6px;
  width: 100%;
  max-width: 100%;
}
.sf-review-photo-strip--packed .sf-review-photo-row .sf-review-photo img,
.sf-review-photo-strip--packed .sf-review-photo-row .sf-review-photo-img,
.sf-report-photo-strip.sf-review-photo-strip--packed .sf-review-photo img,
.sf-report-photo-strip.sf-review-photo-strip--packed .sf-review-photo-img {
  width: 112px;
  max-width: 112px;
  height: 149px;
  object-fit: cover;
}
.sf-review-photo-strip--packed .sf-review-photo--landscape img,
.sf-review-photo-strip--packed .sf-review-photo--landscape .sf-review-photo-img,
.sf-report-photo-strip.sf-review-photo-strip--packed .sf-review-photo--landscape img,
.sf-report-photo-strip.sf-review-photo-strip--packed .sf-review-photo--landscape .sf-review-photo-img {
  width: 168px;
  max-width: 168px;
  height: 149px;
  object-fit: cover;
}
.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-report-open-link.is-disabled,
.sf-report-open-link[aria-disabled="true"] {
  color: #94a3b8;
  text-decoration: none;
  cursor: not-allowed;
  pointer-events: none;
}
.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-strip.sf-review-photo-strip--packed {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 6px;
  width: 100%;
  max-width: 100%;
}
.sf-report-photo img,
.sf-report-photo-img {
  display: block;
  width: 4cm;
  max-width: 4cm;
  height: auto;
  border: 1px solid #e2e8f0;
}
.sf-review-photo-strip--packed .sf-report-photo img,
.sf-review-photo-strip--packed .sf-report-photo-img,
.sf-review-photo-strip--packed .sf-review-photo img,
.sf-review-photo-strip--packed .sf-review-photo-img {
  width: 112px;
  max-width: 112px;
  height: 149px;
  object-fit: cover;
}
.sf-review-photo-strip--packed .sf-report-photo.sf-review-photo--landscape img,
.sf-review-photo-strip--packed .sf-review-photo--landscape img,
.sf-review-photo-strip--packed .sf-review-photo--landscape .sf-review-photo-img {
  width: 168px;
  max-width: 168px;
  height: 149px;
  object-fit: cover;
}
.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):not(.sf-item-action-btn):not(.sf-verify-item):not(.sf-return-item) {
  pointer-events: none;
}
.sf-inspection--readonly .sf-item-action-btn,
.sf-inspection--readonly .sf-verify-item,
.sf-inspection--readonly .sf-return-item {
  pointer-events: auto !important;
}
.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; }
.lz-my-leave-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}
.lz-my-leave-head .panel-title { margin: 0 0 4px; }
.lz-my-leave-pending,
.lz-my-leave-taken { margin-bottom: 14px; }
.pp-leave-actions { white-space: nowrap; text-align: right; }
.pp-leave-actions .btn { padding: 4px 10px; font-size: 12px; }
.pp-sub-table tr.is-editing { background: #fff7ed; }
.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; }

/* Permission Control — compact user rows with portal tick columns */
.perm-user-count {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-left: 6px;
}
.perm-user-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}
.perm-user-toolbar .pg-search-input { flex: 1 1 240px; max-width: 360px; }
.perm-filter-chips {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: #f1f5f9;
}
.perm-filter-chip {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.perm-filter-chip:hover { color: #0f172a; }
.perm-filter-chip.is-active {
  background: #fff;
  color: var(--lz-red, #c62828);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}
.perm-user-table-wrap { overflow-x: auto; }
.perm-user-table { width: 100%; min-width: 980px; }
.perm-user-table thead th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
  white-space: nowrap;
  padding: 8px 8px;
  vertical-align: bottom;
}
.perm-user-table tbody td {
  padding: 7px 8px;
  font-size: 13px;
  vertical-align: middle;
  border-top: 1px solid #eef2f6;
}
.perm-user-table tbody tr.perm-user-row:nth-child(even) {
  background: #f8fafc;
}
.perm-user-table tbody tr.perm-user-row:hover {
  background: #eef2ff;
}
.perm-user-table .perm-emp-col {
  width: 72px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}
.perm-user-table .perm-person-col {
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.perm-user-table .perm-email-col {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  color: #475569;
}
.perm-user-table .perm-portal-col,
.perm-user-table .perm-sig-col {
  width: 42px;
  text-align: center;
  padding-left: 4px;
  padding-right: 4px;
}
.perm-user-table thead .perm-portal-col,
.perm-user-table thead .perm-sig-col {
  font-size: 10px;
  letter-spacing: 0.02em;
}
.perm-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.perm-tick-off {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1;
}
.perm-user-row.is-inactive td { color: #94a3b8; }
.perm-user-row.is-inactive .perm-tick { opacity: 0.35; }
.perm-user-empty { text-align: center; padding: 20px 8px !important; }
.perm-user-table .perm-row-actions .btn { padding: 3px 8px; font-size: 11px; }
.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: 8px;
  padding: 8px 0 12px;
  background: transparent;
  border: none;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0;
  box-shadow: none;
}
.dr-info-panel { min-width: 0; }
.dr-info-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 6px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}
.dr-info-toggle:hover .dr-info-toggle-label { color: #991b1b; }
.dr-info-toggle-label {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.dr-info-toggle-summary {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  max-width: 0;
  transition: opacity 0.15s ease;
}
.dr-info-panel.is-collapsed .dr-info-toggle-summary {
  opacity: 1;
  max-width: none;
}
.dr-info-toggle-chevron {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.dr-info-panel.is-collapsed .dr-info-toggle-chevron {
  transform: rotate(-45deg);
}
.dr-info-body {
  padding-top: 8px;
}
.dr-info-panel.is-collapsed .dr-info-body {
  display: none;
}
.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-header-field a.dr-header-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--lz-red, #c62828);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.dr-header-field a.dr-header-link:hover {
  color: #991b1b;
}
.dr-header-link-arrow {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.85;
}
.dr-header-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}
.dr-header-field--wide { grid-column: 1 / -1; }
.dr-info-edit .dr-inp,
.dr-info-edit select.dr-inp,
.dr-info-edit input.dr-inp {
  display: block;
  width: 100%;
  margin-top: 4px;
  box-sizing: border-box;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: #0f172a;
  padding: 4px 2px 6px;
  border: 0;
  border-bottom: 1px solid #cbd5e1;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}
.dr-info-edit select.dr-inp {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2394a3b8' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 18px;
  cursor: pointer;
}
.dr-info-edit .dr-inp:hover {
  border-bottom-color: #94a3b8;
}
.dr-info-edit .dr-inp:focus {
  outline: none;
  border-bottom-color: #b91c1c;
  background: #fff7ed;
}
.dr-info-edit input.dr-inp-time,
.dr-editor-table input.dr-inp-time,
.dr-section-body input.dr-inp-time {
  appearance: textfield;
  -webkit-appearance: none;
  min-width: 5.5rem;
  max-width: 6.5rem;
  width: auto;
  padding-right: 2px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.dr-info-wo-picker {
  position: relative;
  margin-top: 4px;
}
.dr-info-wo-picker .dr-inp {
  margin-top: 0;
}
.dr-info-wo-list {
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 260px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
.dr-info-wo-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  background: transparent;
  cursor: pointer;
  font: inherit;
}
.dr-info-wo-option:last-child { border-bottom: 0; }
.dr-info-wo-option:hover,
.dr-info-wo-option.is-selected { background: #fff7ed; }
.dr-info-wo-option-label {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}
.dr-info-wo-empty {
  padding: 10px 12px;
  font-size: 12px;
  color: #64748b;
}
.dr-info-tow-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: transparent;
}
.dr-info-tow-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  padding: 0;
  border: 0;
  background: transparent;
}
.dr-info-edit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}
.dr-site-attendance {
  margin-top: 14px;
  padding: 12px 0 0;
  border-radius: 0;
  background: transparent;
  border: none;
  border-top: 1px solid #dcfce7;
}
.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-del {
  min-width: 2rem;
  font-size: 1.1rem;
  line-height: 1;
  color: #b91c1c;
}
.dr-crew-actions .dr-row-restore {
  color: #166534;
}
.dr-mp-add-panel {
  margin-top: 12px;
  margin-bottom: 8px;
}
.dr-mp-add-panel .site-mp-add-filter {
  min-height: 42px;
  font-size: 15px;
}
.dr-mp-add-panel .site-mp-add-list {
  max-height: 200px;
}
.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: flex;
  flex-direction: column;
  gap: 0;
}
.dr-section-tabs {
  margin: 0 0 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap;
}
.dr-section-tabs .dr-section-tab {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 12px 16px;
}
.dr-section-panels {
  min-width: 0;
}
/* Tab panel content inset — align with tab label (perm-tab-btn padding-left) */
.dr-sections-grid .dr-section-body {
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}
/* Crew / Materials first columns share the same left edge as Material picker rows */
.dr-section-body .dr-editor-table thead th:first-child,
.dr-section-body .dr-editor-table tbody td:first-child,
.dr-view-table--materials thead th:first-child,
.dr-view-table--materials tbody td:first-child {
  padding-left: 12px;
}
.dr-crew-table .dr-inc-head,
.dr-crew-table .dr-inc-cell {
  padding-left: 10px;
}
.dr-section-card,
.dr-section-block {
  margin: 0;
  min-width: 0;
  padding: 8px 0 16px;
  background: transparent;
  border: none;
  border-bottom: none;
  border-radius: 0;
  box-shadow: none;
}
.dr-section-block:not(.is-active),
.dr-section-block[hidden] {
  display: none !important;
}
.dr-section-head {
  margin: 0 0 12px;
}
.dr-section-head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}
.dr-day-res-review {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dr-sch-fusion-review {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.dr-sch-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 16px;
  align-items: start;
}
@media (max-width: 960px) {
  .dr-sch-split {
    grid-template-columns: 1fr;
  }
}
.dr-sch-split-left,
.dr-sch-split-right {
  min-width: 0;
}
.dr-sch-split-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dr-sch-right-block {
  min-width: 0;
}
.dr-sch-split-right .dr-view-table-wrap,
.dr-sch-split-right .dr-editor-table-wrap {
  max-height: min(44vh, 520px);
  overflow: auto;
}
.dr-sch-site-work {
  min-height: min(78vh, 860px);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  overflow: auto;
}
.dr-sch-site-work .site-term-work-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff;
}
.dr-sch-site-work .site-term-mat-layout,
.dr-sch-site-work .site-term-work {
  min-height: min(70vh, 780px);
}
.dr-sch-split.is-view-only .dr-sch-split-left .site-term-sch-toolbar:not(.dr-sch-admin-toolbar),
.dr-sch-split-left.is-view-only .site-term-sch-toolbar:not(.dr-sch-admin-toolbar) {
  display: none !important;
}
.dr-sch-fusion-block {
  min-width: 0;
}
.dr-sch-fusion-block input.dr-sch-fusion-start {
  width: 5.5rem;
  min-width: 5.5rem;
  max-width: 6.5rem;
  font-variant-numeric: tabular-nums;
}
.dr-sch-fusion-canvas {
  min-height: 280px;
  max-height: min(62vh, 640px);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  overflow: hidden;
  touch-action: none;
  position: relative;
  padding: 8px;
}
.dr-sch-open-ends[hidden] {
  display: none !important;
}
.site-term-sch-help-guide .feed-meta {
  margin: 0 0 10px;
}
.site-term-sch-help-h {
  margin: 12px 0 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}
.site-term-sch-help-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}
.site-term-sch-help-row:last-child {
  border-bottom: none;
}
.site-term-sch-help-text strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}
.site-term-sch-help-text span {
  display: block;
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}
.site-term-sch-help-glyph,
.site-term-sch-help-swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 28px;
  padding: 2px 6px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 800;
}
.site-term-sch-help-swatch--ef { color: #7c2d12; }
.site-term-sch-help-swatch--bf { color: #111827; }
.site-term-sch-help-swatch--v { color: #9f1239; }
.site-term-sch-help-swatch--tip { color: #ea580c; }
.site-term-sch-help-swatch--cross { color: #7c3aed; }
.site-term-sch-help-swatch--green { color: #16a34a; }
.site-term-sch-help-swatch--m,
.site-term-sch-help-swatch--deg,
.site-term-sch-help-swatch--day { color: #334155; font-weight: 700; }
.dr-sch-fusion-canvas--editor .site-term-mat-preview-canvas,
.dr-sch-fusion-canvas--editor .site-term-sch-viewport {
  min-height: 360px;
}
@media (max-width: 960px) {
  .dr-sch-fusion-canvas,
  .dr-sch-fusion-canvas--editor .site-term-mat-preview-canvas,
  .dr-sch-fusion-canvas--editor .site-term-sch-viewport {
    min-height: min(52dvh, 420px);
  }
}
.dr-sch-fusion-fusion-details {
  margin-top: 4px;
}
.dr-sch-fusion-fusion-details > summary {
  cursor: pointer;
  list-style: none;
}
.dr-sch-fusion-fusion-details > summary::-webkit-details-marker {
  display: none;
}
button.text-link.dr-sch-jump-materials {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: #2563eb;
  cursor: pointer;
  text-decoration: underline;
}
.dr-sch-fusion-canvas .site-term-mat-preview,
.dr-sch-fusion-canvas svg.site-term-sch-svg {
  width: 100%;
  max-width: 100%;
  min-height: 200px;
}
/* Pan/zoom fit treats SVG user units as CSS pixels. Forcing width 100%
   scales the drawing and parks that day's fittings outside the pane. */
.dr-sch-fusion-canvas .site-term-sch-stage svg.site-term-sch-svg {
  width: auto;
  height: auto;
  max-width: none;
  min-height: 0;
}
.dr-sch-fusion-canvas--editor .site-term-sch-viewport,
.dr-sch-fusion-canvas--editor .site-term-sch-stage {
  height: 420px;
}
.dr-sch-fusion-canvas .sch-canvas-host svg.site-term-sch-svg,
.dr-sch-fusion-canvas .sch-svg-wrap svg.site-term-sch-svg {
  width: 100%;
  min-height: 200px;
}
.dr-sch-fusion-canvas .site-term-sch-toolbar svg {
  width: 18px;
  height: 18px;
  min-height: 0;
  max-width: none;
}
.dr-sch-fusion-canvas .site-term-sch-toolbar .site-term-sch-help-bang {
  width: auto;
  height: auto;
  min-height: 0;
}
.dr-day-pill.is-warn {
  color: #b45309;
  background: #fffbeb;
}
.dr-day-res-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.dr-day-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 4px;
}
.dr-day-pill.is-on {
  color: #166534;
  background: #dcfce7;
}
.dr-day-pill.is-warn {
  color: #92400e;
  background: #fef3c7;
}
.dr-day-res-meta {
  font-size: 13px;
  color: #334155;
  margin-bottom: 8px;
}
.dr-day-premix-load {
  margin: 0 0 12px;
}
.dr-day-att-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.dr-day-att-thumb {
  width: 112px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 0;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.dr-day-att-thumb:hover {
  border-color: #94a3b8;
}
.dr-day-att-thumb:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.dr-day-att-img {
  display: block;
  width: 100%;
  height: 80px;
  object-fit: cover;
  background: #e2e8f0;
}
.dr-day-att-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  font-size: 12px;
  color: #94a3b8;
}
.dr-day-att-caption {
  display: block;
  padding: 4px 6px;
  font-size: 10px;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dr-sections-grid .dr-editor-table-wrap {
  overflow-x: auto;
}
.dr-trench-editor {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: none;
  width: 100%;
}
.dr-trench-hint { margin: 0; }
.dr-trench-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dr-trench-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 28px 20px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
}
.dr-trench-empty strong {
  font-size: 15px;
  color: #0f172a;
}
.dr-trench-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.dr-trench-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.dr-trench-num {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.02em;
}
.dr-trench-label {
  display: block;
  font-size: 11px;
  font-weight: 650;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.dr-trench-req { color: #b91c1c; }
.dr-trench-type-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dr-trench-type-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}
.dr-trench-type-btn:hover:not(:disabled) {
  border-color: #94a3b8;
  background: #f8fafc;
}
.dr-trench-type-btn.is-active {
  border-color: #b91c1c;
  background: #fef2f2;
  color: #991b1b;
}
.dr-trench-type-btn:disabled {
  opacity: 0.7;
  cursor: default;
}
.dr-trench-other {
  margin-top: 8px;
  max-width: 420px;
}
.dr-trench-other.is-hidden { display: none; }
.dr-trench-dim-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 6px;
}
.dr-trench-dim {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
  flex: 1 1 160px;
  max-width: 260px;
}
.dr-trench-dim span {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}
.dr-trench-dim .dr-inp {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  min-width: 0;
  font-size: 16px;
}
.dr-trench-remarks {
  min-height: 88px;
  resize: vertical;
  font-size: 15px;
  line-height: 1.4;
  padding: 10px 12px;
}
.dr-trench-dim .dr-inp:focus {
  border-color: #b91c1c;
  background: #fff7ed;
}
.dr-trench-dim-sep {
  color: #94a3b8;
  font-weight: 700;
  padding-bottom: 10px;
}
.dr-trench-meta {
  display: grid;
  grid-template-columns: minmax(100px, 140px) minmax(0, 1fr);
  gap: 10px 12px;
  align-items: end;
}
.dr-trench-meta-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.dr-trench-meta-field span {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}
.dr-trench-meta-field .dr-inp {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}
.dr-trench-meta-field .dr-inp:focus {
  border-color: #b91c1c;
  background: #fff7ed;
}
.dr-trench-actions {
  margin-top: 2px;
}
@media (max-width: 720px) {
  .dr-trench-meta {
    grid-template-columns: 1fr;
  }
  .dr-trench-dim {
    max-width: none;
  }
}

/* Compact view-only DR editors (Materials / Others / Trench) */
.dr-section-edit-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 10px;
}
.dr-section-edit-bar .feed-meta {
  margin: 0;
}
.dr-view-table-wrap {
  overflow-x: auto;
  margin: 0 0 8px;
}
.dr-view-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.dr-view-table th,
.dr-view-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}
.dr-view-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6b7280;
  font-weight: 600;
  background: #f9fafb;
}
.dr-view-table--materials td:nth-child(1) { min-width: 120px; }
.dr-view-table--materials-sch td:nth-child(2) {
  min-width: 140px;
}
.dr-mat-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.dr-mat-summary-chip {
  display: inline-block;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 12px;
  cursor: pointer;
  line-height: 1.4;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.dr-mat-summary-chip.is-on,
.dr-mat-summary-chip:hover {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #991b1b;
}
.dr-mat-summary-row td {
  background: #fafafa;
}
.dr-mat-qty-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.dr-mat-surf-chip {
  display: inline-block;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f9fafb;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  cursor: pointer;
  line-height: 1.4;
}
.dr-mat-surf-chip.is-expanded,
.dr-mat-surf-chip:hover {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #991b1b;
}
.dr-mat-surf-detail {
  font-size: 12px;
  color: #4b5563;
  line-height: 1.35;
}
.dr-sch-ef-pick-list {
  margin: 8px 0;
}
.dr-sch-ef-add-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dr-view-table--materials-sch td:nth-child(3) {
  min-width: 140px;
  max-width: 220px;
  white-space: normal;
  line-height: 1.35;
}
.dr-mat-joint-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: baseline;
}
.dr-sch-fusion-machine-group {
  margin-top: 12px;
}
.dr-sch-fusion-machine-group:first-of-type {
  margin-top: 8px;
}
.dr-sch-fusion-machine-head {
  margin: 0 0 6px;
}
.dr-view-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.dr-view-unit { color: #6b7280; font-weight: 500; font-size: 12px; }
.dr-view-muted { color: #6b7280; font-size: 12px; }
.dr-mat-sch-link { margin: 0 0 8px; }

.dr-trench-view-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dr-trench-view-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  padding: 16px 18px;
  max-width: none;
}
.dr-trench-view-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.dr-trench-view-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}
.dr-trench-view-num {
  flex: 0 0 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
}
.dr-trench-view-title-wrap {
  flex: 1;
  min-width: 0;
}
.dr-trench-view-title {
  font-size: 14px;
  color: #111827;
  line-height: 1.35;
}
.dr-trench-view-body {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  min-width: 0;
}
.dr-trench-view-dims {
  color: #4b5563;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.dr-trench-view-rem {
  color: #6b7280;
  font-size: 12px;
  margin-top: 4px;
}
.dr-trench-photo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f3f4f6;
}
.dr-trench-photo-thumb {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 8px;
}
.dr-trench-photo-thumb img,
.dr-trench-photo-thumb.dr-photo-thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
}
.dr-th-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #166534;
  background: #dcfce7;
  border: 1px solid #86efac;
  vertical-align: middle;
}
.dr-th-preview {
  margin-top: 12px;
  padding: 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.dr-th-preview.is-empty {
  color: #64748b;
  font-size: 12px;
}
.dr-th-panes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
  align-items: start;
}
.dr-th-pane {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dr-th-pane span {
  display: block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 4px;
}
.dr-th-pane svg {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 280px;
  display: block;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.dr-th-pane--section svg {
  aspect-ratio: 1 / 1;
  width: auto;
  height: auto;
  max-width: min(100%, 280px);
  max-height: 280px;
}
@media (max-width: 720px) {
  .dr-th-panes {
    grid-template-columns: 1fr;
  }
  .dr-th-pane svg,
  .dr-th-pane--section svg {
    max-width: min(100%, 320px);
    max-height: 320px;
  }
}
.dr-th-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.lz-th-readonly .lz-th-pane-body {
  pointer-events: none;
}
.lz-th-readonly .lz-th-pane-vex {
  display: none;
}
.dr-trench-card .dr-trench-photo-strip {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

/* Photos hub: WSH / TCP / Photos */
.dr-site-media-hub {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dr-site-media-hint { margin: 0; }
.dr-site-media-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dr-site-media-toggle {
  appearance: none;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.3;
}
.dr-site-media-toggle:hover {
  border-color: #9ca3af;
  background: #f9fafb;
}
.dr-site-media-toggle.is-active {
  border-color: #b91c1c;
  color: #b91c1c;
  background: #fef2f2;
}
.dr-site-media-count {
  font-weight: 500;
  opacity: 0.75;
}
.dr-site-media-panel {
  min-width: 0;
}

.dr-drive-notice {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  color: #1e40af;
  font-size: 12px;
}
.dr-team-link-notice {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  font-size: 13px;
  line-height: 1.45;
}
.dr-team-link-notice .btn {
  margin-left: 8px;
  vertical-align: middle;
}
.dr-info-body > .dr-team-link-notice {
  margin-top: 12px;
  margin-bottom: 0;
}
.dr-open-loading {
  position: fixed;
  inset: 0;
  z-index: 80;
  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;
}
.dr-open-loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #fecaca;
  border-top-color: #b91c1c;
  border-radius: 50%;
  animation: dr-open-spin 0.75s linear infinite;
}
.dr-open-loading-message {
  margin: 0;
  color: #7f1d1d;
  font-size: 14px;
  font-weight: 500;
}
@keyframes dr-open-spin { to { transform: rotate(360deg); } }
.dr-list-row { cursor: pointer; }
.dr-list-row--missing { cursor: default; opacity: 0.9; }
.dr-list-section {
  background:
    linear-gradient(180deg, #fff7f5 0%, #ffffff 140px),
    #ffffff;
  border-color: #fecaca;
}
.dr-list-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #fecaca;
}
.dr-list-hero h3 {
  margin: 0;
  color: #7f1d1d;
  letter-spacing: 0.02em;
}
.dr-list-hero .feed-meta { margin-top: 4px; color: #9a3412; }
.dr-list-controls { margin-bottom: 12px; }
.dr-compact-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #fecaca;
  box-shadow: 0 1px 0 rgba(127, 29, 29, 0.04);
}
.dr-compact-range {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}
.dr-chip-btn {
  appearance: none;
  border: 1px solid #fecaca;
  background: #fff;
  color: #7f1d1d;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 6px 9px;
  border-radius: 999px;
  cursor: pointer;
}
.dr-chip-btn:hover { background: #fef2f2; }
.dr-chip-btn.is-active {
  background: var(--lz-red, #b91c1c);
  border-color: var(--lz-red, #b91c1c);
  color: #fff;
}
.dr-day-pick {
  position: relative;
  flex: 0 0 auto;
}
.dr-day-pick-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff;
  color: #7f1d1d;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.dr-day-pick-btn:hover { background: #fef2f2; }
.dr-day-pick-btn.is-active {
  background: #fff7ed;
  border-color: #fb923c;
  color: #c2410c;
}
.dr-day-pick-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}
.dr-day-pick-label {
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dr-day-pick-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  min-width: 220px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #fecaca;
  background: #fff;
  box-shadow: 0 8px 24px rgba(127, 29, 29, 0.12);
}
.dr-day-pick-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}
.dr-day-pick-field .dr-compact-input { width: 100%; }
.dr-day-pick-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.dr-compact-dates {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.dr-compact-sep {
  color: #f87171;
  font-size: 12px;
  font-weight: 700;
}
.dr-compact-input {
  box-sizing: border-box;
  height: 32px;
  padding: 4px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 12px;
  color: #0f172a;
  min-width: 0;
}
.dr-compact-input:focus {
  outline: none;
  border-color: #f87171;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.2);
}
.dr-compact-select { max-width: 120px; }
.dr-compact-search { flex: 1 1 160px; min-width: 140px; }
.dr-list-host { margin-top: 2px; }
.dr-empty-note {
  padding: 28px 12px;
  text-align: center;
  border: 1px dashed #fdba74;
  border-radius: 10px;
  background: #fff7ed;
  color: #9a3412;
}
.dr-day-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dr-day-group {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  border-left-width: 4px;
}
.dr-day-tone--pending { border-left-color: #f97316; }
.dr-day-tone--mixed { border-left-color: #eab308; }
.dr-day-tone--checked { border-left-color: #10b981; }
.dr-day-tone--missing { border-left-color: #f59e0b; }
.dr-day-tone--neutral { border-left-color: #94a3b8; }
.dr-day-group-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.7), #ffffff 55%);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}
.dr-day-tone--checked .dr-day-group-head {
  background: linear-gradient(90deg, rgba(236, 253, 245, 0.85), #ffffff 55%);
}
.dr-day-tone--pending .dr-day-group-head {
  background: linear-gradient(90deg, rgba(255, 237, 213, 0.9), #ffffff 55%);
}
.dr-day-tone--mixed .dr-day-group-head {
  background: linear-gradient(90deg, rgba(254, 249, 195, 0.85), #ffffff 55%);
}
.dr-day-tone--missing .dr-day-group-head {
  background: linear-gradient(90deg, rgba(254, 243, 199, 0.95), #ffffff 55%);
}
.dr-day-group-head:hover { filter: brightness(0.99); }
.dr-day-group.is-expanded .dr-day-group-head {
  border-bottom: 1px solid #e2e8f0;
}
.dr-day-group-chevron {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-right: 2px solid #b91c1c;
  border-bottom: 2px solid #b91c1c;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}
.dr-day-group.is-expanded .dr-day-group-chevron {
  transform: rotate(45deg);
  margin-top: 3px;
}
.dr-day-group-head-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dr-day-group-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #7f1d1d;
  letter-spacing: 0.01em;
}
.dr-day-group-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 2px;
}
.dr-sum-dept {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.dr-sum-dept-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #7f1d1d;
  min-width: 1.6em;
}
.dr-sum-bubble {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  white-space: nowrap;
}
.dr-sum-bubble--pending {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}
.dr-sum-bubble--checked {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #047857;
}
.dr-cdr-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.dr-cdr-banner.is-pending {
  background: #fff7ed;
  border-color: #fdba74;
}
.dr-cdr-banner.is-done {
  background: #ecfdf5;
  border-color: #6ee7b7;
}
.dr-cdr-banner-pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.dr-cdr-banner-pill--pending {
  background: #ea580c;
  color: #fff;
}
.dr-cdr-banner-pill--done {
  background: #059669;
  color: #fff;
}
.dr-wf-done-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #6ee7b7;
  background: #ecfdf5;
  color: #047857;
  max-width: min(100%, 420px);
}
.dr-wf-done-pill--admin {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}
.dr-wf-portal-pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  max-width: min(100%, 480px);
}
.dr-wf-portal-pill.is-shown {
  border: 1px solid #6ee7b7;
  background: #ecfdf5;
  color: #047857;
}
.dr-wf-portal-pill.is-hidden {
  border: 1px solid #fcd34d;
  background: #fffbeb;
  color: #b45309;
}
.dr-wf-btn--portal {
  border-color: #cbd5e1;
}
.dr-wf-btn--needs-cdr {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
  font-weight: 700;
}
.dr-wf-pending-pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px dashed #cbd5e1;
  background: #fff;
  color: #64748b;
}
.dr-wf-btn--needs-cdr:hover,
.dr-wf-btn--needs-cdr:focus {
  background: #ffedd5;
  border-color: #fb923c;
  color: #7c2d12;
}
.dr-section-tab--cdr-pending {
  font-weight: 800 !important;
  color: #c2410c !important;
}
.dr-section-tab--cdr-done {
  font-weight: 700 !important;
  color: #047857 !important;
}
.cdr-btn-mark-done {
  min-width: auto;
  min-height: 40px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  border-radius: 10px;
  background: #2563eb !important;
  border: 1px solid #1d4ed8 !important;
  color: #fff !important;
  box-shadow: 0 1px 2px rgba(29, 78, 216, 0.25);
  white-space: nowrap;
}
.cdr-btn-mark-done:hover,
.cdr-btn-mark-done:focus {
  background: #1d4ed8 !important;
  color: #fff !important;
}
.cdr-btn-mark-done:disabled {
  opacity: 0.65;
  cursor: wait;
}
.cdr-btn-mark-done.is-unavailable,
.cdr-btn-mark-done.is-unavailable:disabled {
  background: #94a3b8 !important;
  border-color: #64748b !important;
  color: #fff !important;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}
.cdr-btn-mark-done.is-imported {
  background: #059669 !important;
  border-color: #047857 !important;
  box-shadow: 0 1px 2px rgba(4, 120, 87, 0.25);
}
.cdr-btn-mark-done.is-imported:hover,
.cdr-btn-mark-done.is-imported:focus {
  background: #047857 !important;
}
.cdr-import-meta {
  max-width: 320px;
  color: #065f46;
  font-size: 11px;
  line-height: 1.3;
}
.dr-missing-hint {
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #fcd34d;
  background: #fffbeb;
  color: #92400e;
}
.dr-day-dept + .dr-day-dept {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
}
.dr-day-dept-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.dr-day-dept-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9f1239;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 999px;
  padding: 3px 8px;
}
.dr-day-dept[data-dept="UG"] .dr-day-dept-label {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}
.dr-day-dept[data-dept="AG"] .dr-day-dept-label {
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.dr-day-dept-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dr-day-group-count {
  flex: 0 0 auto;
  margin-top: 1px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 4px 8px;
}
.dr-day-tone--checked .dr-day-group-count {
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.dr-day-tone--pending .dr-day-group-count {
  color: #c2410c;
  background: #fff7ed;
  border-color: #fdba74;
}
.dr-day-group-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 12px;
  background: #f8fafc;
}
.dr-day-group.is-collapsed .dr-day-group-body,
.dr-day-group-body.hidden {
  display: none !important;
}
.dr-day-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  border-left: 3px solid #cbd5e1;
}
.dr-day-card--ASSIGNED { border-left-color: #3b82f6; }
.dr-day-card--SUBMITTED { border-left-color: #f97316; }
.dr-day-card--CHECKED { border-left-color: #10b981; }
.dr-day-card--MISSING { border-left-color: #f59e0b; }
.dr-day-card:hover {
  border-color: #fda4af;
  background: #fffaf9;
  box-shadow: 0 1px 3px rgba(185, 28, 28, 0.08);
}
.dr-day-card:focus-visible {
  outline: 2px solid var(--lz-red-soft, #fecaca);
  outline-offset: 1px;
}
.dr-day-card--missing {
  cursor: default;
  background: #fffbeb;
  border-color: #fde68a;
}
.dr-day-card--missing:hover {
  background: #fffbeb;
  border-color: #fde68a;
  box-shadow: none;
}
.dr-day-card-main { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 5px; }
.dr-day-card-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
}
.dr-day-card-row--crew {
  font-size: 13px;
  color: #0f172a;
}
.dr-day-card-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  color: #9f1239;
  flex: 0 0 auto;
}
.dr-day-card-name {
  font-weight: 600;
  color: #0f172a;
  min-width: 0;
}
.dr-day-card-time {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}
.dr-day-card-row--job {
  font-size: 12px;
  color: #475569;
}
.dr-day-card-wo {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: #334155;
  white-space: nowrap;
}
.dr-day-card-loc {
  flex: 1 1 160px;
  min-width: 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dr-meta-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  flex: 0 0 auto;
}
.dr-meta-chip--contract {
  background: #fdf2f8;
  color: #9d174d;
  border-color: #fbcfe8;
}
.dr-day-card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}
.dr-status-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  white-space: nowrap;
}
.dr-status-pill--ASSIGNED { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }
.dr-status-pill--PENDING { background: #fff7ed; border-color: #fdba74; color: #c2410c; }
.dr-status-pill--SUBMITTED { background: #ecfdf5; border-color: #6ee7b7; color: #047857; }
.dr-status-pill--CHECKED,
.dr-status-pill--SITE_CHECK,
.dr-status-pill--SITE_CHECKED { background: #ecfdf5; border-color: #6ee7b7; color: #047857; }
.dr-status-pill--CLAIM_CHECKED,
.dr-status-pill--ADMIN_CHECK { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }
.dr-status-pill--INVOICED { background: #f5f3ff; border-color: #c4b5fd; color: #5b21b6; }
.dr-status-pill--MISSING { background: #fffbeb; border-color: #fcd34d; color: #b45309; }
.dr-status-pill--PLANNED { background: #f1f5f9; border-color: #cbd5e1; color: #475569; }
.dr-status-pill--COMPLETED { background: #ecfdf5; border-color: #6ee7b7; color: #047857; }
.dr-status-pill--CANCELLED { background: #fef2f2; border-color: #fca5a5; color: #b91c1c; }
.sch-board-dr-status {
  display: inline-block;
  max-width: 9.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.dr-sum-bubble--submitted {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}
.dr-sum-bubble--site {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #047857;
}
.dr-sum-bubble--admin {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}
.dr-sum-bubble--invoiced {
  background: #f5f3ff;
  border-color: #c4b5fd;
  color: #5b21b6;
}
.dr-day-tone--site .dr-day-group-title { color: #047857; }
.dr-day-tone--admin .dr-day-group-title { color: #1d4ed8; }
.dr-day-card--ADMIN_CHECK,
.dr-day-card--CLAIM_CHECKED {
  border-left-color: #3b82f6;
}
.dr-day-card--SITE_CHECK,
.dr-day-card--SITE_CHECKED,
.dr-day-card--CHECKED {
  border-left-color: #10b981;
}
.dr-day-card--INVOICED {
  border-left-color: #8b5cf6;
}
.dr-lock-mark { font-size: 11px; }
@media (max-width: 720px) {
  .dr-compact-select { max-width: none; flex: 1 1 40%; }
  .dr-compact-search { flex: 1 1 100%; }
  .dr-day-card {
    flex-direction: column;
    align-items: stretch;
  }
  .dr-day-card-side {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .dr-day-card-time { margin-left: 0; }
  .dr-day-card-loc { white-space: normal; flex-basis: 100%; }
  .dr-day-group-summary { white-space: normal; }
}

/* Safety inspections list — DR-style day cards */
.sf-list-section {
  background:
    linear-gradient(180deg, #fff7ed 0%, #ffffff 140px),
    #ffffff;
  border-color: #fed7aa;
}
.sf-list-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #fed7aa;
}
.sf-list-hero h3 {
  margin: 0;
  color: #9a3412;
  letter-spacing: 0.02em;
}
.sf-list-hero .feed-meta { margin-top: 4px; color: #c2410c; }
.sf-list-controls { margin-bottom: 12px; }
.sf-compact-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #fed7aa;
}
.sf-compact-range { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.sf-chip-btn {
  appearance: none;
  border: 1px solid #fdba74;
  background: #fff;
  color: #9a3412;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.sf-chip-btn.is-active {
  background: #ea580c;
  border-color: #ea580c;
  color: #fff;
}
.sf-compact-hint { margin: 0; }
.sf-compact-search {
  flex: 1 1 180px;
  min-width: 160px;
  max-width: 320px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #fdba74;
  padding: 0 10px;
}
.sf-compact-select,
.sf-compact-input {
  height: 34px;
  border-radius: 8px;
  border: 1px solid #fdba74;
  padding: 0 8px;
  background: #fff;
}
.sf-list-date-range {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px dashed #fdba74;
  background: #fffbeb;
}
.sf-day-list { display: flex; flex-direction: column; gap: 10px; }
.sf-day-empty { padding: 18px 8px; }
.sf-day-group {
  border: 1px solid #fed7aa;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  border-left-width: 4px;
}
.sf-day-tone--open { border-left-color: #dc2626; }
.sf-day-tone--draft { border-left-color: #2563eb; }
.sf-day-tone--done { border-left-color: #059669; }
.sf-day-tone--mixed { border-left-color: #ea580c; }
.sf-day-group-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 0;
  background: #fff7ed;
  cursor: pointer;
  text-align: left;
}
.sf-day-group-chevron { color: #9a3412; transition: transform .15s ease; }
.sf-day-group.is-collapsed .sf-day-group-chevron { transform: rotate(-90deg); }
.sf-day-group.is-collapsed .sf-day-group-body { display: none; }
.sf-day-group-head-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sf-day-group-title { font-weight: 800; color: #9a3412; }
.sf-day-group-summary {
  font-size: 12px;
  font-weight: 600;
  color: #9a3412;
  opacity: 0.88;
  line-height: 1.25;
}
.sf-day-tone--draft .sf-day-group-summary { color: #1d4ed8; }
.sf-day-tone--done .sf-day-group-summary { color: #047857; }
.sf-day-tone--open .sf-day-group-summary { color: #b91c1c; }
.sf-day-tone--mixed .sf-day-group-summary { color: #c2410c; }
.sf-day-group-count {
  margin-left: auto;
  flex: 0 0 auto;
  min-width: 28px;
  text-align: center;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 8px;
}
.sf-day-group-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 10px 10px;
}
.sf-day-card {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.sf-day-card:hover { border-color: #fdba74; box-shadow: 0 1px 0 rgba(154, 52, 18, 0.06); }
.sf-day-card--OPEN { border-left: 3px solid #dc2626; }
.sf-day-card--DRAFT { border-left: 3px solid #2563eb; }
.sf-day-card--COMPLETED { border-left: 3px solid #059669; }
.sf-day-card--PENDING { border-left: 3px solid #ea580c; }
.sf-day-card--CANCELLED { border-left: 3px solid #94a3b8; }
.sf-day-card--other { background: #f8fafc; }
.sf-day-card-main { min-width: 0; flex: 1; }
.sf-day-card-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.sf-day-card-row--job { margin-top: 6px; color: #64748b; font-size: 12px; }
.sf-day-card-id code { font-size: 12px; }
.sf-day-card-loc { font-weight: 600; color: #0f172a; }
.sf-day-card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  flex: 0 0 auto;
}
.sf-meta-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  background: #f1f5f9;
  color: #334155;
}
.sf-meta-chip--contract { background: #ffedd5; color: #9a3412; }
.sf-meta-chip--colleague { background: #e0e7ff; color: #3730a3; }
.sf-list-actions { display: inline-flex; gap: 4px; align-items: center; }
.sf-analytics-loading { padding: 24px 8px; }
.sf-exec-kpi.is-loading .sf-exec-kpi__hint { opacity: 0.55; }
.sf-dash-skel {
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg, #e2e8f0 0%, #f8fafc 45%, #e2e8f0 100%);
  background-size: 220% 100%;
  animation: sfDashShimmer 1.15s ease-in-out infinite;
}
.sf-dash-skel--num {
  display: inline-block;
  width: 4.4rem;
  height: 1.05em;
  margin-top: 2px;
  border-radius: 6px;
  vertical-align: middle;
}
.sf-dash-skel--chart {
  min-height: 148px;
  width: 100%;
}
.sf-dash-skel--row {
  min-height: 18px;
  width: 72%;
}
.sf-exec-dash[aria-busy="true"] .sf-exec-dash__pdf-btn { opacity: 0.65; cursor: not-allowed; }
@keyframes sfDashShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@media (max-width: 720px) {
  .sf-compact-search { flex: 1 1 100%; max-width: none; }
  .sf-day-card { flex-direction: column; align-items: stretch; }
  .sf-day-card-side {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* 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;
  flex-shrink: 0;
}
.lz-dash-tab.is-active .lz-dash-tab-badge {
  background: #fff;
  color: #dc2626;
}
.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 .dr-inp[readonly] {
  background: #f1f5f9;
  color: #475569;
  cursor: default;
  border-style: dashed;
}
.dr-tbm-safety-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.dr-tbm-safety-block {
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}
.dr-tbm-safety-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.dr-manual-tbm {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}
.dr-manual-tbm textarea.pg-search-input {
  width: 100%;
  margin-top: 4px;
}
.site-manual-tbm {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 12px;
}
.dr-tbm-safety-head {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}
.dr-section-body .dr-inp,
.dr-section-body select.dr-inp,
.dr-editor-table .dr-inp,
.dr-editor-table select.dr-inp {
  width: 100%;
  min-width: 60px;
  font-size: 13px;
  line-height: 1.35;
  padding: 6px 2px;
  border: 0;
  border-bottom: 1px solid #cbd5e1;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}
.dr-section-body select.dr-inp,
.dr-editor-table select.dr-inp {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2394a3b8' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 16px;
}
.dr-section-body .dr-inp:hover,
.dr-editor-table .dr-inp:hover {
  border-bottom-color: #94a3b8;
}
.dr-section-body .dr-inp:focus,
.dr-editor-table .dr-inp:focus {
  outline: none;
  border-bottom-color: #b91c1c;
  background: #fff7ed;
}
.dr-section-body .dr-inp:disabled,
.dr-editor-table .dr-inp:disabled {
  border-bottom-color: transparent;
  color: #64748b;
  background: transparent;
}
.dr-editor-table.data-table th,
.dr-editor-table.data-table td {
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  padding: 8px 6px;
  background: transparent;
}
.dr-editor-table.data-table thead th {
  border-bottom: 1px solid #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: transparent;
}
.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-special-merged {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.dr-special-subhead {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}
.dr-special-day-res,
.dr-special-items-block {
  min-width: 0;
}
.dr-special-day-res {
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}
.dr-photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.dr-photo-card {
  width: 148px;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  position: relative;
}
.dr-photo-thumb-wrap {
  position: relative;
}
.dr-photo-del {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.dr-photo-del:hover {
  background: #b91c1c;
}
.dr-photo-card--dustbin .dr-photo-thumb {
  opacity: 0.72;
}
.dr-photo-restore {
  margin-top: 4px;
}
.dr-site-media-toggle--dustbin {
  border-style: dashed;
}
.dr-photo-card--safety .dr-photo-kind-pill {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}
.dr-photo-thumb {
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  font-size: 12px;
  color: #64748b;
  border-radius: 10px;
  overflow: hidden;
}
.dr-photo-thumb img,
.dr-photo-img {
  width: 100%;
  height: 108px;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.dr-photo-meta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 8px 2px 0;
  border: 0;
  background: transparent;
}
.dr-photo-taken {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 0 2px;
  line-height: 1.2;
}
.dr-photo-taken-date {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}
.dr-photo-taken-time {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.02em;
}
.dr-photo-kind-pill {
  display: inline-flex;
  align-self: flex-start;
  max-width: 100%;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.dr-photo-desc-bubble {
  display: block;
  width: 100%;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  cursor: pointer;
}
.dr-photo-desc-bubble.is-static {
  cursor: default;
}
.dr-photo-desc-bubble:hover:not(.is-static) {
  filter: brightness(0.98);
  box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.12);
}
.dr-photo-desc-picker {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.dr-photo-desc-picker-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.35);
  cursor: pointer;
}
.dr-photo-desc-picker-sheet {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(70vh, 520px);
  overflow: auto;
  margin: 0;
  padding: 16px 16px 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
}
.dr-photo-desc-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.dr-photo-desc-picker-head strong {
  flex: 1 1 auto;
  min-width: 0;
}
.dr-photo-desc-picker-close {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}
.dr-photo-desc-picker-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dr-photo-desc-group-btns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.dr-photo-desc-group-btn {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.dr-photo-desc-group-btn.is-active {
  border-color: #991b1b;
  background: #fff7f7;
  color: #7f1d1d;
}
.dr-photo-desc-chip {
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 8px 12px;
  background: #f8fafc;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.dr-photo-desc-chip.is-active {
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.16);
}
.dr-photo-desc-picker-status {
  margin: 10px 0 0;
}
.dr-photo-select-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.dr-photo-card.is-surveyor-shared .dr-photo-thumb { box-shadow: inset 0 0 0 3px #047857; }
.dr-photo-surveyor-pill {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #047857;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.dr-photo-select-mark {
  display: none;
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  width: 26px;
  height: 26px;
  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);
  padding: 0;
  cursor: pointer;
}
.dr-photo-grid--select .dr-photo-select-mark { display: block; }
.dr-photo-select-mark.is-checked {
  background: #2563eb;
  border-color: #2563eb;
}
.dr-photo-select-mark.is-checked::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.dr-photo-grid--select .dr-photo-card.is-selected .dr-photo-thumb {
  box-shadow: 0 0 0 3px #2563eb;
}
.dr-photo-upload-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.dr-photo-desc {
  min-width: 180px;
  padding: 6px 8px;
  border: 0;
  border-bottom: 1px solid #cbd5e1;
  border-radius: 0;
  background: transparent;
  font: inherit;
}
.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-cal-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sch-cal-chip {
  appearance: none;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.sch-cal-chip:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}
.sch-cal-chip.is-active {
  background: #fff1f2;
  border-color: var(--lz-red, #c62828);
  color: var(--lz-red, #c62828);
  box-shadow: 0 0 0 1px rgba(198, 40, 40, 0.15);
}
.sch-cal-chip--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
}
.sch-cal-chip--icon svg {
  display: block;
}
#btnSchCalToday.sch-cal-chip {
  background: var(--lz-red, #c62828);
  border-color: var(--lz-red, #c62828);
  color: #fff;
}
#btnSchCalToday.sch-cal-chip:hover {
  filter: brightness(1.05);
}
.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;
  min-width: 0;
  max-width: 100%;
}
.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 3px var(--lz-red), 0 10px 22px rgba(198, 40, 40, 0.28);
  transform: translateY(-1px);
  z-index: 2;
  position: relative;
  border-color: var(--lz-red) !important;
  border-width: 2px;
  background: linear-gradient(165deg, #fff7f7 0%, #ffe8e8 55%, #ffd6d6 100%) !important;
}
.sch-cal-cell--today.sch-cal-cell--sunday,
.sch-cal-cell--today.sch-cal-cell--ph {
  background: linear-gradient(165deg, #fff7f7 0%, #ffe8e8 55%, #ffd6d6 100%) !important;
}
.sch-cal-date-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  min-width: 0;
}
.sch-cal-today-badge {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--lz-red, #c62828);
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.3;
}
.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;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sch-cal-date-summary {
  font-weight: 400;
  color: #64748b;
}
.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-stat--ratio { font-weight: 600; margin-top: 2px; }
.sch-cal-stat--ratio strong { font-weight: 700; letter-spacing: 0.02em; }
.sch-cal-stat-caption { font-weight: 400; font-size: 10px; opacity: 0.9; }
.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; }
.sch-cal-select-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 0 1 auto;
  max-width: 100%;
}
.sch-cal-select-filter--team {
  flex: 0 1 280px;
}
.sch-cal-select {
  min-width: 0;
  padding: 7px 10px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.sch-cal-select-filter--contract .sch-cal-select {
  width: 160px;
  max-width: 180px;
}
.sch-cal-select-filter--team .sch-cal-select {
  width: 100%;
  max-width: 280px;
}
.sch-cal-select:focus {
  outline: 2px solid rgba(198, 40, 40, 0.22);
  border-color: var(--lz-red, #c62828);
}
.sch-cal-grid--contract {
  align-items: stretch;
  grid-auto-rows: minmax(min-content, auto);
}
@supports (grid-template-rows: subgrid) {
  .sch-cal-grid--contract {
    grid-auto-rows: auto auto minmax(min-content, 1fr);
  }
  .sch-cal-grid--contract .sch-cal-cell--contract {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    height: auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }
}
.sch-cal-grid--contract .sch-cal-cell {
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  height: 100%;
  padding: 6px 6px 8px;
  cursor: pointer;
  overflow: hidden;
}
.sch-cal-cell--contract {
  align-items: stretch;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.sch-cal-ph-slot {
  min-width: 0;
  min-height: 0;
}
.sch-cal-ph-slot.is-empty {
  display: none;
}
@supports (grid-template-rows: subgrid) {
  .sch-cal-ph-slot.is-empty {
    display: block;
  }
}
.sch-cal-cell-head {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
}
.sch-cal-job-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.sch-cal-job-chip {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 6px 7px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  line-height: 1.3;
  overflow: hidden;
}
.sch-cal-job-chip:hover {
  border-color: var(--lz-red, #c62828);
  background: #fff;
}
.sch-cal-job-chip--cancelled {
  opacity: 0.65;
  text-decoration: line-through;
}
.sch-cal-job-chip--ug {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
  border-left: 3px solid #38bdf8;
}
.sch-cal-job-chip--ag {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
  border-left: 3px solid #34d399;
}
.sch-cal-job-chip--subcon {
  border-color: #fdba74;
}
.sch-cal-job-chip--missing-wo,
.sch-cal-job-chip--buffer {
  background: #fffbeb;
  box-shadow: inset 0 0 0 2px #f59e0b;
}
.sch-cal-job-chip--missing-wo:hover,
.sch-cal-job-chip--buffer:hover {
  background: #fff7ed;
  border-color: #f59e0b;
}
.sch-cal-job-chip--missing-wo .sch-cal-job-wo-loc,
.sch-cal-job-chip--buffer .sch-cal-job-type {
  overflow: visible;
  min-height: 0;
}
.sch-cal-job-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}
.sch-cal-job-team {
  font-size: 12px;
  font-weight: 400;
  color: #64748b;
  min-width: 0;
  flex: 1 1 auto;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sch-cal-job-code {
  font-weight: 700;
  color: #0f172a;
}
.sch-cal-job-wo-loc,
.sch-cal-job-loc,
.sch-cal-job-addloc,
.sch-cal-job-po {
  display: block;
  min-width: 0;
  min-height: 1.3em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 400;
  color: #64748b;
}
.sch-cal-job-time {
  font-size: 11px;
  font-weight: 400;
  color: #64748b;
  white-space: nowrap;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sch-cal-job-top .sch-board-team-sub {
  flex: 0 0 auto;
  margin-left: 0;
}
.sch-cal-job-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
  font-size: 10px;
  color: #475569;
}
.sch-cal-job-wo {
  font-weight: 400;
  white-space: nowrap;
}
.sch-cal-job-type {
  display: block;
  min-width: 0;
  min-height: 1.3em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 400;
  color: #64748b;
}
.sch-cal-job-status {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.sch-cal-job-chip .dr-status-pill {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 500;
  padding: 0 5px;
  line-height: 1.4;
}
.sch-cal-job-tip {
  position: fixed;
  z-index: 80;
  max-width: min(320px, calc(100vw - 16px));
  padding: 10px 12px;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  white-space: pre-wrap;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
  pointer-events: none;
}
.sch-cal-job-tip.hidden {
  display: none;
}
.sch-cal-job-empty {
  font-size: 10px;
  color: var(--lz-muted);
  margin-top: 2px;
}
.sch-detail-po {
  margin-top: 12px;
  max-width: 480px;
}
.sch-detail-po-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.sch-po-combo { display: block; }
.sch-po-combo .dept-combobox-list {
  position: fixed;
  z-index: 90;
  right: auto;
  max-height: 240px;
}
@media (max-width: 900px) {
  .sch-cal-grid--contract .sch-cal-cell {
    min-height: 0;
  }
}

.dept-store-tabs { margin-bottom: 12px; }
.store-worker-pick { display: block; margin: 6px 0; font-size: 14px; min-height: 44px; padding: 10px 8px; }
.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; }
.store-pick-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 8px;
}
@media (min-width: 640px) {
  .store-pick-grid { grid-template-columns: 1fr 1fr; }
}
.store-pick-tile { width: 100%; min-height: 64px; text-align: left; }
.store-pick-tile.is-active {
  outline: 2px solid var(--lz-accent, #0b6e4f);
  background: rgba(11, 110, 79, 0.08);
}
.store-qty-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 12px 0;
}
.store-qty-btn {
  min-width: 56px;
  min-height: 56px;
  font-size: 1.6rem;
  font-weight: 700;
}
.store-qty-value {
  min-width: 48px;
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
}
.store-qty-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 8px;
}
.store-qty-chip {
  min-width: 48px;
  min-height: 44px;
}
.store-qty-chip.is-active {
  outline: 2px solid var(--lz-accent, #0b6e4f);
  font-weight: 700;
}
.store-mp-actions { margin-top: 12px; }
.store-confirm-card { margin-top: 8px; }
.sch-cal-shell { overflow-x: hidden; }
.sch-calendar-host--wide {
  container-type: inline-size;
}
.sch-calendar-host--wide .sch-cal-shell {
  max-height: calc(100vh - 200px);
  overflow: auto;
}
.sch-cal-wide-frame {
  position: relative;
}
.sch-cal-wide-nav-btn {
  display: none;
}
.sch-calendar-host--wide .sch-cal-wide-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 46%;
  z-index: 6;
  width: 34px;
  height: 64px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
  cursor: pointer;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}
.sch-cal-wide-nav-btn--prev { left: 6px; }
.sch-cal-wide-nav-btn--next { right: 6px; }
.sch-calendar-host--wide .sch-cal-wide-nav-btn:hover {
  background: #fff;
  border-color: var(--lz-red, #c62828);
  color: var(--lz-red, #c62828);
}
.sch-calendar-host--wide .sch-cal-wide-nav-btn:disabled {
  opacity: 0.28;
  cursor: default;
  box-shadow: none;
}
.sch-calendar-host--wide .sch-cal-weekdays {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--lz-bg, #f1f4f9);
  padding-bottom: 4px;
}
.sch-calendar-host--wide .sch-cal-weekdays,
.sch-calendar-host--wide .sch-cal-grid {
  --sch-wide-days: 3;
  --sch-wide-gap: 8px;
  width: calc(
    (100cqw - (var(--sch-wide-days) - 1) * var(--sch-wide-gap)) / var(--sch-wide-days) * 7
    + 6 * var(--sch-wide-gap)
  );
  min-width: 0;
  max-width: none;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.sch-calendar-host--wide .sch-cal-job-team,
.sch-calendar-host--wide .sch-cal-job-wo-loc,
.sch-calendar-host--wide .sch-cal-job-loc,
.sch-calendar-host--wide .sch-cal-job-addloc,
.sch-calendar-host--wide .sch-cal-job-po,
.sch-calendar-host--wide .sch-cal-job-type,
.sch-calendar-host--wide .sch-cal-date {
  white-space: normal;
  text-overflow: unset;
  overflow: visible;
}
@media (max-width: 900px) {
  .sch-cal-weekdays,
  .sch-cal-grid {
    min-width: 560px;
    gap: 4px;
  }
  .sch-calendar-host--wide .sch-cal-weekdays,
  .sch-calendar-host--wide .sch-cal-grid {
    --sch-wide-days: 2;
    --sch-wide-gap: 4px;
    min-width: 0;
    width: calc(
      (100cqw - (var(--sch-wide-days) - 1) * var(--sch-wide-gap)) / var(--sch-wide-days) * 7
      + 6 * var(--sch-wide-gap)
    );
  }
  .sch-calendar-host--wide .sch-cal-shell {
    max-height: calc(100vh - 220px);
    overflow: auto;
  }
  .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:not(.sch-cal-stat--ratio),
  .sch-cal-stat--released,
  .sch-cal-stat--done,
  .sch-cal-stat--warn:not(.sch-cal-stat--ratio),
  .sch-cal-stat--ok:not(.sch-cal-stat--ratio) { display: none; }
  .sch-cal-stat--ratio .sch-cal-stat-caption { display: none; }
  .sch-cal-stat--ratio { display: block; font-size: 10px; }
}
.sch-calendar-host--wide.sch-calendar-host--days-7 .sch-cal-grid {
  --sch-wide-days: 7;
}
.sch-calendar-host--wide.sch-calendar-host--days-3 .sch-cal-grid {
  --sch-wide-days: 3;
}
@media (max-width: 900px) {
  .sch-calendar-host--wide.sch-calendar-host--days-7 .sch-cal-grid {
    --sch-wide-days: 4;
  }
  .sch-calendar-host--wide.sch-calendar-host--days-3 .sch-cal-grid {
    --sch-wide-days: 2;
  }
}
.sch-calendar-host--wide .sch-cal-wide-nav-btn {
  touch-action: none;
  user-select: none;
}
.sch-calendar-host--wide .sch-cal-grid--strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: max-content;
  min-width: 0;
  max-width: none;
  grid-template-columns: none;
}
.sch-calendar-host--wide .sch-cal-grid--strip > .sch-cal-cell {
  flex: 0 0 calc((100cqw - (var(--sch-wide-days) - 1) * var(--sch-wide-gap)) / var(--sch-wide-days));
  width: calc((100cqw - (var(--sch-wide-days) - 1) * var(--sch-wide-gap)) / var(--sch-wide-days));
  max-width: none;
  min-width: 0;
  height: auto;
  align-self: stretch;
}
.sch-calendar-host--wide .sch-cal-grid--strip .sch-cal-cell--contract {
  display: flex;
  flex-direction: column;
  grid-row: auto;
  grid-template-rows: none;
  height: auto;
  max-width: none;
  overflow: visible;
}
.sch-calendar-host--wide .sch-cal-grid--strip .sch-cal-job-list {
  overflow: visible;
}
.sch-calendar-host--wide .sch-cal-weekdays {
  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-filter-search { flex: 1 1 200px; min-width: 180px; }
.mat-filter-search .pg-search-input { min-width: 200px; width: 100%; max-width: 320px; }
.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-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: flex-end;
  margin: 0 0 8px;
}
.mat-filter-bar #btnMatExport {
  align-self: flex-end;
  min-height: 36px;
}
.mat-term-banner {
  margin: 0 0 8px;
  padding: 8px 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  color: #1e3a8a;
  font-weight: 600;
}
.mat-priced-summary {
  margin: 0 0 10px;
}
.mat-col-check { width: 36px; text-align: center; }
.mat-table .mat-row.is-selected { background: #eff6ff; }
.mat-table .mat-row { cursor: pointer; }
.mat-table .mat-sku-name { font-weight: 650; }
.mat-table .mat-sku-code { font-size: 11px; margin-top: 2px; }
.mat-table .mat-col-size {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}
.mat-table .mat-col-num,
.mat-table .mat-col-time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mat-table th { white-space: nowrap; }
.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(420px, 1fr) minmax(460px, 520px);
  gap: 16px;
  align-items: start;
  width: 100%;
}
.sch-symbols-list-pane {
  display: flex;
  flex-direction: column;
  min-width: 420px;
  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: 440px;
  margin-bottom: 0;
  padding: 14px 16px 16px;
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 100px);
  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: 12px;
}
.sch-sym-editor-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
}
.sch-sym-editor-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin: 0;
}
.sch-sym-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.sch-sym-mode-tab {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.sch-sym-mode-tab.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}
.sch-sym-canvas-host--xl {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
}
.sch-sym-canvas-host--xl .sch-sym-preview-host,
.sch-sym-canvas-host--xl .sch-icon-draw-pad {
  width: min(100%, 420px);
  height: auto;
  max-width: 420px;
}
.sch-sym-canvas-host--xl .sch-sym-preview-svg {
  width: 100%;
  height: auto;
  max-width: 300px;
  display: block;
  margin: 0 auto;
}
.sch-sym-anchor-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sch-sym-anchor-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sch-sym-anchor-chip {
  appearance: none;
  border: 1px solid #fdba74;
  background: #fff7ed;
  color: #9a3412;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.sch-sym-anchor-chip.is-active {
  background: #ea580c;
  border-color: #ea580c;
  color: #fff;
}
.sch-sym-anchor-edit {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.7fr;
  gap: 8px;
  align-items: end;
}
.sch-sym-anchor-role select {
  pointer-events: auto;
  z-index: 2;
  position: relative;
}
.sch-sym-anchor-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.sch-sym-draw-hint {
  margin: 0;
}
.sch-sym-draw-tools .sch-icon-draw-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.sch-symbols-editor-pane .pg-search-input,
.sch-symbols-editor-pane select.pg-search-input {
  min-width: 0;
  max-width: none;
  width: 100%;
  pointer-events: auto;
}
.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-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-map-fade {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}
.aln-map-fade input[type="range"] { width: 88px; vertical-align: middle; }
.aln-map-zoom-btns { display: inline-flex; gap: 4px; margin-left: 4px; }
.aln-map-zoom-btns .btn,
.aln-nudge-btn { min-width: 32px; font-size: 16px; line-height: 1; padding: 4px 8px; }
.aln-map-fade input[type="range"] { width: 72px; vertical-align: middle; }
.aln-canvas-wrap { touch-action: none; }
.aln-canvas-wrap.is-aln-map-tool { cursor: grab; }
.aln-search-wrap { position: relative; }
.aln-map-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  z-index: 40;
  max-height: 220px;
  overflow-y: auto;
  background: var(--lz-surface, #fff);
  border: 1px solid var(--lz-border, rgba(0,0,0,.12));
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.aln-map-results.hidden { display: none; }
.aln-map-hit {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  cursor: pointer;
  border-bottom: 1px solid var(--lz-border, rgba(0,0,0,.06));
}
.aln-map-hit:hover { background: rgba(15, 23, 42, 0.04); }
.aln-map-hit-title { display: block; font-size: 13px; font-weight: 600; }
.aln-map-hit-sub { display: block; font-size: 11px; color: var(--lz-muted, #64748b); margin-top: 2px; }
.aln-map-hit--empty { color: var(--lz-muted, #64748b); cursor: default; }
.aln-georef-status { margin: 8px 0; font-size: 12px; }
.aln-georef-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.aln-side-actions { display: flex; gap: 6px; margin: 8px 0 4px; }
.aln-flow-guide {
  margin: 8px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--lz-border, rgba(0, 0, 0, 0.1));
  border-radius: 8px;
  background: linear-gradient(180deg, #fff7f7 0%, #fff 70%);
}
.aln-flow-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}
.aln-flow-steps li {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--lz-border, rgba(0, 0, 0, 0.12));
  color: var(--lz-muted, #6b7280);
  background: #fff;
}
.aln-flow-steps li.is-done {
  color: #166534;
  border-color: #86efac;
  background: #f0fdf4;
}
.aln-flow-steps li.is-active {
  color: #991b1b;
  border-color: #fca5a5;
  background: #fef2f2;
  font-weight: 600;
}
.aln-flow-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.aln-flow-next-text {
  flex: 1 1 220px;
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}
.aln-flow-next-text strong { color: var(--lz-red, #b91c1c); }
.aln-flow-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--lz-muted, #6b7280);
}
.aln-flow-swatch {
  display: inline-block;
  width: 12px;
  height: 3px;
  margin-right: 4px;
  vertical-align: middle;
  border-radius: 2px;
}
.aln-flow-swatch--kerb { background: #f59e0b; }
.aln-flow-swatch--building { background: #ef4444; }
.aln-flow-swatch--hdb { background: #22c55e; }

/* Digital Alignment pin wizard */
.aln-wiz-card { margin-bottom: 0; }
.aln-wiz-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 8px;
}
.aln-wiz-mode { display: inline-flex; gap: 4px; }
.aln-wiz-actions { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.aln-wiz-overlay-tools {
  display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 4px 8px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px;
}
.aln-wiz-overlay-tools.hidden { display: none !important; }
.aln-wiz-opacity {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  color: #334155;
}
.aln-wiz-opacity input[type="range"] { width: 88px; vertical-align: middle; }
.aln-wiz-overlay-move { display: inline-flex; gap: 4px; }
.aln-wiz-overlay-move .btn.is-active {
  background: #991b1b; color: #fff; border-color: #991b1b;
}
.aln-wiz-rotate {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600;
}
.aln-wiz-rotate input[type="range"] { width: 100px; }
.aln-wiz-advanced {
  display: inline-block;
  margin-left: 4px;
  font-size: 12px;
  color: var(--lz-muted, #64748b);
}
.aln-wiz-advanced summary { cursor: pointer; user-select: none; }
.aln-wiz-advanced-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.aln-wiz-search { position: relative; margin-top: 8px; max-width: 420px; }
.aln-wiz-workspace {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  gap: 12px;
  margin-top: 12px;
  min-height: 0;
}
.aln-wiz-align-target {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 6px;
}
.aln-wiz-align-target .btn.is-active {
  background: #b91c1c;
  color: #fff;
  border-color: #991b1b;
}
.aln-wiz-list-head { margin: 0 0 6px; }
.aln-wiz-list-head a { color: #b91c1c; }
.aln-wiz-list tr.is-selected td { background: #fef2f2; }
.aln-wiz-list tr[data-id] { cursor: pointer; }
.aln-wiz-upload { display: inline-flex; margin-top: 6px; }
.aln-wiz-canvas-card { min-width: 0; padding: 0; overflow: hidden; }
.aln-wiz-stage {
  position: relative;
  height: calc(100vh - 260px);
  min-height: 480px;
  background: #111827;
  overflow: hidden;
}
.aln-wiz-plan,
.aln-wiz-map {
  position: absolute;
  inset: 0;
}
.aln-wiz-plan { overflow: auto; cursor: crosshair; background: #1f2937; z-index: 2; }
.aln-wiz-map {
  cursor: crosshair;
  z-index: 1;
}
/* Align overlay: map under translucent plan */
.aln-wiz-stage.is-overlay .aln-wiz-map {
  z-index: 1;
  background: #e8eef5;
}
.aln-wiz-stage.is-overlay .aln-wiz-plan {
  z-index: 2;
  overflow: hidden;
  background: transparent;
  cursor: default;
}
.aln-wiz-stage.is-overlay .aln-wiz-plan-inner {
  will-change: transform;
}
.aln-wiz-stage.is-overlay .aln-wiz-img {
  /* Soften white sheet so OneMap shows through */
  mix-blend-mode: multiply;
  background: #fff;
}
.aln-wiz-map .leaflet-container,
.aln-wiz-map .leaflet-grab,
.aln-wiz-map .leaflet-interactive {
  cursor: crosshair !important;
}
.aln-wiz-map .leaflet-dragging,
.aln-wiz-map .leaflet-dragging .leaflet-grab,
.aln-wiz-map .leaflet-dragging .leaflet-interactive {
  cursor: grabbing !important;
}
.aln-wiz-plan-inner { position: relative; display: block; }
.aln-wiz-img {
  display: block;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}
.aln-wiz-svg {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  overflow: visible;
}
.aln-wiz-svg .aln-tcp-kerb { stroke: #f59e0b; stroke-width: 1.5; }
.aln-wiz-svg .aln-tcp-building { stroke: #ef4444; stroke-width: 1.25; fill: none; }
.aln-wiz-svg .aln-tcp-hdb { stroke: #22c55e; stroke-width: 1.25; fill: none; }
.aln-wiz-svg .aln-tcp-lot { stroke: #a78bfa; stroke-width: 1; fill: none; opacity: 0.85; }
.aln-wiz-svg .aln-wiz-pin { fill: #3b82f6; stroke: #1d4ed8; stroke-width: 2; }
.aln-wiz-svg .aln-wiz-pin-label {
  fill: #eff6ff;
  font: 700 14px/1 system-ui, sans-serif;
  paint-order: stroke;
  stroke: #1e3a8a;
  stroke-width: 3px;
}
@media (max-width: 900px) {
  .aln-wiz-workspace { grid-template-columns: 1fr; }
  .aln-wiz-stage { height: 55vh; min-height: 360px; }
}
.aln-tools-row .pg-filter-btn.is-disabled,
.aln-tools-row .pg-filter-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.aln-stage,
.aln-overlay-svg {
  transform-origin: center center;
}
.aln-view-toggle { margin-top: 6px; }
.aln-pair-line--proposed {
  stroke: #2563eb;
  stroke-width: 3.5;
  stroke-opacity: 0.95;
  fill: none;
}
.aln-pair-line--tcp {
  stroke: #059669;
  stroke-width: 3;
  stroke-opacity: 0.9;
  stroke-dasharray: 8 4;
  fill: none;
}
.aln-pair-handle {
  fill: #3b82f6;
  stroke: #fff;
  stroke-width: 2;
  cursor: grab;
}
.aln-pair-handle--tcp { fill: #10b981; }
.aln-pair-label {
  fill: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  font-family: Arial, sans-serif;
}
.aln-map-host {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.4;
  pointer-events: none;
  transform-origin: center center;
  will-change: transform;
}
.aln-map-host.is-interactive {
  pointer-events: auto;
  cursor: grab;
  z-index: 5; /* above plan SVG so drag loads tiles */
}
.aln-map-host.is-interactive:active { cursor: grabbing; }
.aln-map-host.hidden { display: none; }
.aln-map-host .leaflet-control-container { display: none; }
.aln-map-host .leaflet-container {
  width: 100% !important;
  height: 100% !important;
  background: transparent;
}
.aln-stage { position: relative; z-index: 1; }
.aln-overlay-svg {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  pointer-events: none;
  transform-origin: 0 0;
  overflow: visible;
}
.aln-route-line { fill: none; stroke: #2563eb; stroke-width: 3; stroke-opacity: 0.85; }
.aln-tcp-kerb {
  stroke: #f59e0b;
  stroke-width: 2.2;
  stroke-opacity: 0.95;
  fill: none;
}
.aln-tcp-building {
  stroke: #ef4444;
  stroke-width: 1.8;
  stroke-opacity: 0.9;
  fill: none;
}
.aln-tcp-hdb {
  stroke: #22c55e;
  stroke-width: 2.4;
  stroke-opacity: 0.95;
  fill: none;
}
.aln-tcp-lot {
  stroke: #a78bfa;
  stroke-width: 1.4;
  stroke-opacity: 0.75;
  fill: none;
}
.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-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-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-claims-hero {
  padding: 16px 18px 14px;
}
.ctr-claims-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.ctr-claims-hero-top h3 { margin: 0 0 4px; }
.ctr-claims-hero-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.ctr-claims-value-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px 12px;
  background: #fff;
  min-width: 0;
}
.ctr-claims-value-card span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.ctr-claims-value-card strong {
  display: block;
  margin: 6px 0 2px;
  font-size: 22px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  word-break: break-all;
}
.ctr-claims-value-card em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: #64748b;
}
.ctr-claims-value-card--confirmed {
  border-color: #bbf7d0;
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 70%);
}
.ctr-claims-value-card--confirmed span { color: #15803d; }
.ctr-claims-value-card--processing {
  border-color: #fde68a;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 70%);
}
.ctr-claims-value-card--processing span { color: #b45309; }
.ctr-claims-value-card--combined {
  border-color: #99f6e4;
  background: linear-gradient(180deg, #f0fdfa 0%, #fff 70%);
}
.ctr-claims-value-card--combined span { color: #0f766e; }
.ctr-claims-hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px 14px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.ctr-claims-hero-meta div { min-width: 0; }
.ctr-claims-hero-meta dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #64748b;
}
.ctr-claims-hero-meta dd {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}
.ctr-claims-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 12px 0 4px;
}
.ctr-claims-kpi--neg strong,
.ctr-claims-kpi--neg dd { color: #b91c1c; }
@media (max-width: 900px) {
  .ctr-claims-hero-values { grid-template-columns: 1fr; }
}
.ctr-claims-table th.num,
.ctr-claims-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.ctr-claims-table tbody tr.ctr-claims-row { cursor: pointer; }
.ctr-claims-table tbody tr.ctr-claims-row:hover { background: #f8fafc; }
.ctr-claims-table tbody tr.ctr-claims-row.is-active { background: #ecfdf5; }
.ctr-claims-table tbody tr.ctr-claims-total td {
  font-weight: 700;
  border-top: 2px solid #cbd5e1;
}
.ctr-claims-table tbody tr.ctr-claims-balance td { font-weight: 600; }
.ctr-claims-wo-row { cursor: pointer; }
.ctr-claims-wo-row:hover td { background: #f8fafc; }
.ctr-claims-amt-src {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  font-weight: 400;
  color: #64748b;
}
.ctr-show-completed { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.ctr-filter-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.ctr-filter-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: flex-end;
}
.ctr-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.ctr-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 140px;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.01em;
}
.ctr-field--search { flex: 1 1 220px; min-width: 200px; max-width: 420px; }
.ctr-field--file { flex: 1 1 260px; min-width: 220px; max-width: 480px; }
.ctr-control {
  display: block;
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
select.ctr-control {
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  cursor: pointer;
}
.ctr-control:hover { border-color: #cbd5e1; }
.ctr-control:focus {
  outline: none;
  border-color: #fca5a5;
  box-shadow: 0 0 0 3px rgba(252, 165, 165, 0.35);
}
.ctr-control[readonly] {
  background: #f8fafc;
  color: #475569;
  cursor: default;
}
.ctr-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 4px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  user-select: none;
}
.ctr-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--lz-red, #c62828);
  cursor: pointer;
}
.ctr-file-btn {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.ctr-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.ctr-file-pick {
  pointer-events: none;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
}
.ctr-file-name {
  font-weight: 500;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ctr-sor-import-hint,
.ctr-sor-hint { margin: 0; }
.ctr-sor-import #ctrSorUploadStatus { margin: 0; grid-column: 1 / -1; }
.ctr-sor-head { margin-bottom: 12px; }
.ctr-sor-head h3 { margin: 0 0 4px; }
.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: 148px; padding: 14px 16px; border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px; background: #fff; cursor: pointer; text-align: left;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.ctr-group-card:hover {
  border-color: var(--lz-red, #dc2626);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.08);
}
.ctr-group-card.is-expanded {
  border-color: var(--lz-red, #dc2626);
  background: linear-gradient(180deg, #fef2f2 0%, #fff 100%);
  box-shadow: 0 0 0 3px rgba(252, 165, 165, 0.25);
}
.ctr-group-card strong { font-size: 14px; color: var(--lz-red, #dc2626); }
.ctr-group-count { font-size: 12px; color: #64748b; font-weight: 500; }
.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-field--search { max-width: none; }
}
.ctr-chart-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.ctr-stat-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.ctr-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ctr-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.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; }
.store-item-actions {
  white-space: nowrap;
  text-align: right;
}
.store-item-actions .btn { margin-left: 4px; }
.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-pax {
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  width: 4.5rem;
}
.sch-board-pax-num { cursor: help; }
.sch-board-pax-tip {
  position: fixed;
  z-index: 90;
  min-width: 240px;
  max-width: min(380px, calc(100vw - 16px));
  max-height: 280px;
  overflow: auto;
  margin: 0;
  padding: 6px 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}
.sch-board-pax-tip.hidden { display: none; }
.sch-board-pax-tip ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sch-board-pax-tip li {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr) auto;
  gap: 8px;
  align-items: baseline;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}
.sch-board-pax-tip li.is-supervisor { background: #fef3c7; }
.sch-board-pax-id {
  font-variant-numeric: tabular-nums;
  color: #334155;
}
.sch-board-pax-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sch-board-pax-role {
  color: #b45309;
  font-size: 11px;
  font-weight: 700;
}
.sch-board-pax-unnamed {
  color: #64748b;
  font-weight: 600;
}
.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,
.teams-table.sch-board-table tbody tr.teams-table-row.is-selected td {
  background: #facc15;
}
.teams-table.sch-board-table tbody tr.teams-table-row.is-selected td:first-child {
  box-shadow: inset 4px 0 0 #b45309;
}
.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(1480px, 98vw);
  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-day-sheet-cam {
  white-space: nowrap;
  text-align: left !important;
  font-size: 11px;
  line-height: 1.25;
}
.sch-day-sheet-cam-line {
  display: block;
  white-space: nowrap;
}
.sch-day-sheet-cam-units {
  display: none !important;
}
.sch-day-sheet-card.is-share-mode .sch-day-sheet-host {
  box-shadow: 0 0 0 2px #2563eb;
  border-radius: 4px;
}
.sch-day-sheet-table.is-share-mode .sch-day-sheet-po-cell {
  padding: 6px 8px !important;
}
.sch-day-sheet-edit-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  user-select: none;
  cursor: pointer;
  padding: 4px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
}
.sch-day-sheet-edit-toggle input {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
  cursor: pointer;
}
.sch-day-sheet-card.is-edit-mode .sch-day-sheet-edit-toggle {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}
.sch-day-sheet-input,
.sch-day-sheet-cam-set {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #94a3b8;
  border-radius: 4px;
  padding: 4px 6px;
  font: inherit;
  background: #fff;
  text-align: left;
}
.sch-day-sheet-input {
  resize: vertical;
}
.sch-day-sheet-input:focus,
.sch-day-sheet-cam-set:focus {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}
.sch-day-sheet-hp-input,
.sch-day-sheet-sup-hp {
  min-width: 110px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.sch-day-sheet-table td.sch-day-sheet-hp {
  min-width: 120px;
  white-space: nowrap;
}
.sch-day-sheet-sup-cell {
  min-width: 168px;
  text-align: left !important;
}
.sch-day-sheet-sup-edit {
  display: grid;
  gap: 4px;
  text-align: left;
}
.sch-day-sheet-sup-name {
  font-weight: 600;
}
.sch-day-sheet-loc-cell {
  text-align: left !important;
  min-width: 140px;
}
.sch-day-sheet-table.is-edit-mode .sch-day-sheet-cam {
  min-width: 130px;
}
.sch-day-sheet-cam-picker {
  display: grid;
  gap: 4px;
  text-align: left;
}
.sch-day-sheet-cam-preview {
  font-size: 11px;
  line-height: 1.3;
  color: #0f172a;
}
.sch-day-sheet-cam-preview .sch-day-sheet-cam-line {
  display: block;
  white-space: nowrap;
}
.sch-day-sheet-cam-units {
  display: none !important;
}
.sch-day-sheet-cam-prompt {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  padding: 16px;
}
.sch-day-sheet-cam-prompt-card {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
  padding: 16px 18px;
  max-width: 420px;
  width: 100%;
}
.sch-day-sheet-cam-prompt-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
}
.sch-day-sheet-cam-prompt-card p {
  margin: 0 0 14px;
  font-size: 13px;
  color: #334155;
  line-height: 1.4;
}
.sch-day-sheet-cam-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.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;
  align-items: center;
}
.dr-subcon-times label { display: inline-flex; align-items: center; gap: 8px; }
.dr-crew-bulk-times { width: 100%; }
.dr-crew-bulk-times > .feed-meta:first-child { flex: 1 1 100%; margin: 0; }
.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-type-groups {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.assets-type-group .dr-day-group-body {
  padding: 0 0 8px;
}
.assets-type-group .table-wrap {
  margin: 0 12px 4px;
}
.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; }

/* Shared quantity pool assets */
.assets-pool-badge {
  display: inline-block;
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
.assets-stock-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.assets-stock-chip {
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  white-space: nowrap;
}
.assets-stock-chip--free { background: #dcfce7; color: #15803d; font-weight: 600; }
.assets-stock-chip--total { background: #e2e8f0; color: #1e293b; font-weight: 600; }
.assets-pool-toggle { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.assets-pool-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.assets-pool-stat {
  border: 1px solid var(--lz-border, #d8dee6);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.assets-pool-stat strong { font-size: 1.25rem; line-height: 1.1; }
.assets-pool-stat--free { border-color: #86efac; background: #f0fdf4; }
.assets-pool-assign-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  margin-top: 12px;
}
.assets-pool-assign-row input[type="number"] { width: 90px; }
.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-direction: column;
  gap: 8px;
  padding: 10px 14px;
  margin: -4px -4px 8px;
  background: rgba(255, 255, 255, 0.96);
  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-editor-sticky-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}
.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: 0 1 auto; 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;
  justify-content: flex-end;
}
.qt-actions-wrap, .qt-list-pdf-wrap {
  position: relative;
  display: inline-flex;
}
.qt-actions-menu, .qt-pdf-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 40;
  min-width: 168px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--lz-border);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.qt-actions-menu button, .qt-pdf-menu button {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--lz-text);
}
.qt-actions-menu button:hover, .qt-pdf-menu button:hover {
  background: #f8fafc;
}
.qt-ingest-inline { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.qt-editor-tabs.qt-editor-tabs--banner {
  margin: 0;
  padding: 0;
}
.qt-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lz-text);
  margin: 4px 0 0;
  cursor: pointer;
}
.qt-toggle input { margin: 0; }
.qt-acceptance-preview {
  margin: 8px 0 0;
  padding: 10px 12px;
  border: 1px dashed #d8b4fe;
  border-radius: 10px;
  background: #faf5ff;
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
  white-space: pre-wrap;
}
.qt-acceptance-preview.is-off { display: none; }
.qt-cof-row.is-display .qt-cof-text {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--lz-text);
  white-space: pre-wrap;
  line-height: 1.45;
  cursor: pointer;
}
.qt-cof-row.is-display .qt-cof-edit { display: none; }
.qt-cof-row.is-editing .qt-cof-text { display: none; }
.qt-cof-row.is-editing .qt-cof-edit { display: block; }
#qtSpLetterName.is-parse-warn { color: #b45309; font-weight: 600; }
.qt-sp-cof-row td {
  background: #fff7ed;
  border-top: 0;
  padding-top: 4px;
  padding-bottom: 12px;
}
.qt-sp-cof-fields {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(200px, 1.6fr) auto;
  gap: 10px;
  align-items: start;
}
.qt-parse-stop {
  margin-top: 22px;
  color: #9a3412;
  border-color: #fdba74;
}
@media (max-width: 720px) {
  .qt-sp-cof-fields {
    grid-template-columns: 1fr;
  }
  .qt-parse-stop { margin-top: 0; }
}
.qt-file-group-row td {
  background: #f8fafc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  padding-top: 10px;
  padding-bottom: 6px;
}
.qt-file-group-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qt-add-sp-letter {
  width: 22px;
  height: 22px;
  padding: 0;
  line-height: 20px;
  font-size: 16px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
  color: #9a3412;
  border-color: #fdba74;
  background: #fff7ed;
}
.gi-quote-instruction {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 10px;
  padding: 10px 12px;
}
.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-list-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}
.qt-list-page { display: flex; flex-direction: column; gap: 10px; }
.qt-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.qt-list-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.qt-list-filters .qt-list-search {
  flex: 1 1 200px;
  max-width: 280px;
  min-width: 180px;
  margin: 0;
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  box-sizing: border-box;
}
.qt-list-filters .qt-list-status {
  flex: 0 0 auto;
  width: 148px;
  min-width: 140px;
  max-width: 160px;
  margin: 0;
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  box-sizing: border-box;
}
.qt-list-dates {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  flex: 0 0 auto;
}
.qt-list-date-lbl {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--lz-muted);
  white-space: nowrap;
}
.qt-list-date-input {
  box-sizing: border-box;
  flex: 0 0 150px;
  width: 150px;
  min-width: 150px;
  max-width: 150px;
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  padding: 6px 10px;
  border: 1px solid var(--lz-border);
  border-radius: var(--lz-radius-sm);
  font: inherit;
  font-weight: 400;
  line-height: 1.2;
  background: #fff;
  color: var(--lz-text);
}
.qt-list-date-input::-webkit-datetime-edit {
  padding: 0;
  display: inline-flex;
  align-items: center;
}
.qt-list-date-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.65;
}
.qt-list-count { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.qt-list-table-wrap {
  max-height: min(70vh, 760px);
  overflow: auto;
}
.qt-list-table { font-size: 13px; }
.qt-list-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
  white-space: nowrap;
  box-shadow: 0 1px 0 #e2e8f0;
}
.qt-list-table td, .qt-list-table th { padding: 8px 10px; }
.qt-list-row { cursor: pointer; }
.qt-list-row:hover { background: #f8fafc; }
.qt-list-row:focus { outline: 2px solid #fca5a5; outline-offset: -2px; }
.qt-list-amt { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qt-list-table th.qt-th-sort { cursor: pointer; user-select: none; }
.qt-list-table th.qt-th-sort:hover { background: #f8fafc; }
.qt-list-table th.qt-th-sort.is-sorted { background: #fef2f2; }
.qt-list-table th.qt-th-sort.is-asc::after,
.qt-list-table th.qt-th-sort.is-desc::after {
  margin-left: 4px;
  font-size: 10px;
  color: var(--lz-muted);
}
.qt-list-table th.qt-th-sort.is-asc::after { content: "▲"; }
.qt-list-table th.qt-th-sort.is-desc::after { content: "▼"; }
.qt-list-empty { text-align: center; padding: 28px 12px; }
.qt-list-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.qt-list-page-size {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--lz-muted);
}
.qt-list-pager-actions { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 720px) {
  .qt-list-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .qt-list-filters { flex-direction: column; align-items: stretch; }
  .qt-list-filters .qt-list-search,
  .qt-list-filters .qt-list-status {
    flex: none;
    max-width: none;
    width: 100%;
    min-width: 0;
  }
  .qt-list-dates {
    display: grid;
    grid-template-columns: auto 1fr;
    width: 100%;
  }
  .qt-list-date-input {
    flex: none;
    width: 100%;
    min-width: 0;
    max-width: none;
  }
  .qt-list-toolbar > .btn-primary {
    width: 100%;
    height: 38px;
    min-height: 38px;
  }
  .qt-list-table td:nth-child(1),
  .qt-list-table td:nth-child(4) { font-weight: 600; }
}
.qt-pdf-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 36px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: #b91c1c;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}
.qt-pdf-icon-btn:hover { background: #fee2e2; border-color: var(--lz-red); }
.qt-workflow-bar .qt-pdf-icon-btn {
  height: 32px;
  border-radius: 999px;
}
.qt-workflow-btn--primary {
  background: var(--lz-red);
  color: #fff;
  border-color: var(--lz-red);
  font-weight: 700;
}
.qt-workflow-btn--accept {
  background: #166534;
  color: #fff;
  border-color: #166534;
}
.qt-workflow-btn--accept:hover { filter: brightness(1.05); color: #fff; background: #166534; }
.qt-workflow-status {
  display: inline-flex;
  align-items: center;
  border: 1px solid #166534;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  background: #166534;
  color: #fff;
  cursor: default;
  user-select: none;
}
.qt-workflow-btn--reject {
  background: #fff;
  color: #991b1b;
  border-color: #fecaca;
}
.qt-workflow-btn--reject:hover {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fca5a5;
}
.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-rate-combo { position: relative; }
.qt-rate-suggest {
  position: fixed;
  z-index: 80;
  background: #fff;
  border: 1px solid var(--lz-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
  max-height: 280px;
  overflow-y: auto;
}
.qt-rate-suggest-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  cursor: pointer;
}
.qt-rate-suggest-item:hover,
.qt-rate-suggest-item.is-active { background: #ecfeff; }
.qt-rate-suggest-name { font-size: 13px; font-weight: 600; color: var(--lz-text); }
.qt-rate-suggest-rate { font-size: 12px; color: #0f766e; font-variant-numeric: tabular-nums; }
.qt-rate-suggest-meta { font-size: 11px; color: var(--lz-muted); }
.qt-bq-foot th,
.qt-bq-foot td {
  background: #f0fdfa;
  font-weight: 700;
  border-top: 1px solid #99f6e4;
}
.qt-bq-foot td { white-space: nowrap; }
.qt-card--bq-mat .qt-b-total { font-variant-numeric: tabular-nums; font-weight: 600; }
.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: 8px; margin-bottom: 12px; }
.qt-preset-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.qt-preset-row-main { min-width: 0; flex: 1; }
.qt-preset-row-main strong { display: block; font-size: 13px; }
.qt-preset-row-main .feed-meta { margin: 4px 0 0; }
.qt-preset-row-actions { display: flex; gap: 6px; flex-shrink: 0; }
.qt-card--settings-gap { margin-top: 12px; }
.qt-preset-block { margin: 14px 0 8px; }
.qt-preset-block .qt-card-title { margin: 0; }
.qt-preset-bq-note { margin: 12px 0 0; }
.qt-preset-table-wrap { overflow-x: auto; }
.qt-preset-table { table-layout: auto; width: 100%; }
.qt-preset-table th, .qt-preset-table td { vertical-align: middle; }
.qt-preset-table .qt-desc-area { vertical-align: top; }
.qt-preset-table .qt-col-qty,
.qt-preset-table .qt-col-price,
.qt-preset-table .qt-col-disc,
.qt-preset-table .qt-col-amt { text-align: right; }
.qt-preset-quote-table { table-layout: fixed; }
.qt-preset-quote-table .qt-col-desc { width: auto; min-width: 220px; }
.qt-preset-quote-table .qt-col-qty,
.qt-preset-quote-table .qt-col-unit,
.qt-preset-quote-table .qt-col-disc { width: 72px; }
.qt-preset-quote-table .qt-col-price { width: 108px; }
.qt-preset-quote-table .qt-col-amt { width: 96px; }
.qt-preset-quote-table .qt-col-actions { width: 48px; }
.qt-print-layout-details {
  border: 0;
}
.qt-print-layout-summary {
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--lz-text);
  padding: 2px 0;
}
.qt-print-layout-summary::-webkit-details-marker { display: none; }
.qt-print-layout-summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 8px;
  color: var(--lz-muted);
}
.qt-print-layout-details[open] .qt-print-layout-summary::before { content: "▾"; }
.qt-print-layout-body { margin-top: 12px; }
.qt-print-layout-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.15fr);
  gap: 16px;
  align-items: start;
}
.qt-print-layout-controls { min-width: 0; }
.qt-layout-sub {
  margin: 16px 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--lz-muted);
}
.qt-layout-sub:first-child { margin-top: 0; }
.qt-layout-banner-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 14px;
}
.qt-layout-title-field { margin: 0; flex: 1 1 180px; }
.qt-layout-title-field .qt-input { margin-top: 4px; }
.qt-layout-header-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}
.qt-layout-field {
  display: grid;
  grid-template-columns: 18px minmax(72px, 92px) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--lz-muted);
}
.qt-layout-field .qt-input { margin-top: 0; padding: 6px 8px; }
.qt-layout-field-name { white-space: nowrap; }
.qt-layout-mini-table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.qt-layout-mini-table th,
.qt-layout-mini-table td { padding: 4px 6px; text-align: left; vertical-align: middle; }
.qt-layout-mini-table th { font-size: 11px; color: var(--lz-muted); font-weight: 700; }
.qt-layout-mini-table .qt-input { margin-top: 0; padding: 6px 8px; }
.qt-print-layout-save-bar {
  position: sticky;
  bottom: 0;
  margin-top: 12px;
  padding-top: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 28%);
}
.qt-layout-head { font-size: 11px; color: var(--lz-muted); margin: 8px 0 6px; }
.qt-layout-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px auto auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}
.qt-layout-row--col {
  grid-template-columns: minmax(0, 1fr) auto auto;
}
.qt-layout-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--lz-text);
  white-space: nowrap;
}
.qt-layout-moves { display: inline-flex; gap: 4px; }
.qt-print-preview {
  width: 100%;
  min-height: 720px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.qt-card--quote-log .qt-email-log-row { border: 0; padding: 0; }
@media (max-width: 960px) {
  .qt-print-layout-grid { grid-template-columns: 1fr; }
  .qt-layout-header-cols { grid-template-columns: 1fr; }
}
.qt-log-wrap { display: flex; flex-direction: column; gap: 12px; max-width: 920px; }
.qt-email-log { display: flex; flex-direction: column; gap: 12px; }
.qt-email-log-row { padding: 10px 0; border-bottom: 1px solid #eef2f6; }
.qt-email-log-row p { line-height: 1.65; margin: 6px 0 0; }
.qt-notes-log { display: flex; flex-direction: column; gap: 10px; }
.qt-note-entry .qt-note-body { line-height: 1.65; white-space: pre-wrap; }
.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: 132px; z-index: 12; align-self: start; }
.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-summary-bq-title { margin: 16px 0 4px; padding-top: 12px; border-top: 1px solid #fecaca; }
.qt-summary-bq div { padding: 4px 0; font-size: 12px; }
.qt-summary-bq-cost { font-weight: 700; }
.qt-summary-bq-gp dd { color: #166534; }
.qt-summary-bq-gp.is-neg dd { color: var(--lz-red); }
.qt-line-table-wrap { overflow-x: auto; }
.qt-line-table { table-layout: fixed; width: 100%; }
.qt-line-table th, .qt-line-table td { vertical-align: top; }
.qt-col-desc { width: auto; min-width: 220px; }
.qt-col-qty, .qt-col-unit, .qt-col-disc { width: 72px; }
.qt-col-price { width: 108px; }
.qt-col-amt { width: 96px; }
.qt-col-actions { width: 112px; }
.qt-line-table .qt-col-qty,
.qt-line-table .qt-col-price,
.qt-line-table .qt-col-disc,
.qt-line-table .qt-col-amt { text-align: right; }
.qt-line-table input.qt-input--table,
.qt-line-table select.qt-input--table {
  min-width: 0;
  width: 100%;
  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: none;
  overflow: hidden;
  font-family: inherit;
  white-space: pre-wrap;
  line-height: 1.65;
}
.qt-line-table .qt-in-qty,
.qt-line-table .qt-in-disc,
.qt-line-table .qt-money-input { text-align: right; }
.qt-money-cell {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}
.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-editor--review .qt-input:not([type="checkbox"]):not([type="file"]),
.qt-editor--review .qt-select,
.qt-editor--review .qt-textarea,
.qt-editor--review .qt-line-table input.qt-input--table,
.qt-editor--review .qt-line-table select.qt-input--table,
.qt-editor--review .qt-line-table textarea.qt-input--table,
.qt-editor--review .data-table input.qt-input--table,
.qt-editor--review .data-table select.qt-input--table,
.qt-editor--review .data-table textarea.qt-input--table {
  border: none;
  background: transparent;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
  color: #0f172a;
  opacity: 1;
  -webkit-text-fill-color: #0f172a;
  cursor: default;
  resize: none;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: none;
}
.qt-editor--review .qt-file-base-input {
  pointer-events: auto;
  cursor: pointer;
}
.qt-editor--review input[type="date"]::-webkit-calendar-picker-indicator {
  display: none;
}
.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, .qt-status--invoiced { background: #dbeafe; color: #1d4ed8; }
.qt-status--sent_to_fm { background: #fef3c7; color: #92400e; }
.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; }
.qt-save-status.is-saved { color: #166534; font-weight: 700; }
.qt-ingest-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 4px 8px; }
.qt-ingest-code { font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 4px 8px; }
.qt-email-log { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.qt-email-log-row { padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; }
.qt-dropzone {
  border: 1px dashed #fda4af;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  outline: none;
}
.qt-dropzone.is-file-drag, .qt-dropzone:focus {
  border-color: #dc2626;
  background: #fef2f2;
}
.qt-dropzone.is-uploading {
  border-style: solid;
  border-color: #dc2626;
  background: #fff7ed;
}
.qt-dropzone-busy {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #c2410c;
}
.qt-dropzone-title { margin: 0 0 4px; font-size: 13px; font-weight: 700; }
.qt-file-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.qt-file-pick { cursor: pointer; }
.qt-file-input-hidden { display: none; }
.qt-card--gi { background: linear-gradient(180deg, #fff7ed 0%, #fff 100%); border-color: #fdba74; }
.qt-rev-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #e0e7ff; color: #3730a3; }
.qt-sticky-spacer { flex: 1 1 12px; min-width: 12px; }
.qt-ingest-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.qt-ingest-inline .qt-ingest-code { margin: 0; font-size: 11px; padding: 3px 7px; }
.qt-dropzones-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.qt-dropzone--parse { border-color: #fdba74; background: #fffbeb; }
.qt-dropzone--parse.is-file-drag, .qt-dropzone--parse:focus { border-color: #ea580c; background: #ffedd5; }
.qt-dropzone--attach { border-color: #fda4af; }
.qt-files-table { width: 100%; }
.qt-file-name-cell { min-width: 180px; }
.qt-file-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.qt-file-base-input {
  min-width: 0;
  flex: 1 1 auto;
  margin-top: 0;
}
.qt-file-base-input[readonly] { background: #f8fafc; cursor: pointer; }
.qt-file-ext { color: var(--lz-muted); font-size: 12px; flex-shrink: 0; }
.qt-file-pencil, .qt-file-del, .qt-file-eye, .qt-file-view { padding: 2px 8px; line-height: 1.2; }
.qt-file-eye-col { width: 76px; text-align: center; font-size: 11px; white-space: nowrap; }
.qt-file-eye-cell { text-align: center; vertical-align: middle; }
.qt-file-eye { color: #0f766e; }
.qt-file-eye.is-eye-off { color: #94a3b8; }
.qt-file-eye--fm { color: #1d4ed8; }
.qt-file-eye--fm.is-eye-off { color: #94a3b8; }
.qt-file-eye svg { display: block; }
.qt-file-del { color: #b91c1c; }
.qt-file-del-cell { white-space: nowrap; text-align: right; }
.gi-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}
.gi-no-appt-pill { background: #fee2e2; color: #b91c1c; }
.gi-appt-pill { background: #ccfbf1; color: #0f766e; }
.gi-pending-sp-pill { background: #fef3c7; color: #b45309; }
.qt-file-status { margin: 4px 0 0; font-size: 12px; font-weight: 700; color: #c2410c; }
.qt-addr-area {
  white-space: pre-wrap;
  resize: vertical;
  min-height: 4.6em;
  line-height: 1.4;
}
.qt-customer-details textarea { display: block; width: 100%; margin-top: 4px; }
.qt-cof-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.qt-cof-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(180px, 1.4fr) auto;
  gap: 8px;
  align-items: start;
}
.qt-customer-details {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px 14px;
  margin-top: 12px;
}
.qt-pdf-busy {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.35);
}
.qt-pdf-busy.hidden { display: none; }
.qt-pdf-busy-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px 28px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
  font-weight: 700;
}
.qt-card--bq-mat { background: linear-gradient(180deg, #ecfeff 0%, #fff 100%); border-color: #a5f3fc; }
.qt-card--bq-mp { background: linear-gradient(180deg, #f5f3ff 0%, #fff 100%); border-color: #ddd6fe; }
.qt-card--bq-sub { background: linear-gradient(180deg, #fff7ed 0%, #fff 100%); border-color: #fed7aa; }
.qt-card--bq-other { background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%); border-color: #bbf7d0; }
.qt-card--budget-summary { background: linear-gradient(180deg, #fef2f2 0%, #fff 100%); border-color: #fecaca; }
body[data-lz-module="quotation"] {
  height: 100vh;
  overflow: hidden;
  font-family: Calibri, Carlito, "Segoe UI", Arial, sans-serif;
}
body[data-lz-module="quotation"] .qt-desc-area,
body[data-lz-module="quotation"] .qt-textarea,
body[data-lz-module="quotation"] .qt-addr-area {
  line-height: 1.65;
}
body[data-lz-module="quotation"] .app-shell {
  height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}
body[data-lz-module="quotation"] .dashboard-body {
  min-height: 0;
  overflow: hidden;
  flex: 1;
}
body[data-lz-module="quotation"] .main-content {
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
}
body[data-lz-module="quotation"] #quoteContentHost,
body[data-lz-module="quotation"] .qt-editor,
body[data-lz-module="quotation"] .qt-editor-grid {
  overflow: visible;
}
@media (max-width: 960px) {
  .qt-editor-grid { grid-template-columns: 1fr; }
  .qt-summary-card { position: static; }
  .qt-dropzones-row, .qt-cof-row { grid-template-columns: 1fr; }
  .qt-span-2 { grid-column: 1 / -1; }
  .qt-form-grid { grid-template-columns: 1fr; }
  .qt-editor-sticky-row {
    flex-direction: column;
    align-items: stretch;
  }
  .qt-sticky-spacer { display: none; }
  .qt-save-cluster {
    margin-left: 0;
    width: 100%;
  }
  .qt-btn-save { flex: 1; width: 100%; }
  .qt-workflow-bar { justify-content: flex-start; }
  .qt-editor-org-badge {
    max-width: none;
    white-space: normal;
  }
  .qt-org-header { flex-direction: column; }
  .qt-org-header__main { min-width: 0; width: 100%; }
  .qt-org-header__pick { min-width: 0; max-width: none; width: 100%; }
  .qt-card--lines .section-head-row {
    flex-direction: column;
    align-items: stretch;
  }
  .qt-line-tools { flex-wrap: wrap; }
  .qt-line-preset { max-width: none; flex: 1 1 160px; }
  .qt-line-table-wrap { overflow: visible; }
  .qt-line-table {
    table-layout: auto;
    width: 100%;
  }
  .qt-line-table thead { display: none; }
  .qt-line-table,
  .qt-line-table tbody,
  .qt-line-table tr,
  .qt-line-table td {
    display: block;
    width: 100%;
  }
  .qt-line-table tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .qt-line-table tr {
    border: 1px solid var(--lz-border);
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
  }
  .qt-line-table td {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 6px 0;
    border: 0;
  }
  .qt-line-table td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    color: var(--lz-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-top: 8px;
  }
  .qt-line-table td.qt-line-actions {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    padding-top: 8px;
  }
  .qt-line-table td.qt-line-actions::before { content: none; }
  .qt-line-table .qt-col-desc,
  .qt-line-table .qt-col-qty,
  .qt-line-table .qt-col-unit,
  .qt-line-table .qt-col-price,
  .qt-line-table .qt-col-disc,
  .qt-line-table .qt-col-amt,
  .qt-line-table .qt-col-actions,
  .qt-line-table .qt-in-desc,
  .qt-line-table .qt-desc-area,
  .qt-line-table .qt-money-input {
    min-width: 0;
    width: 100%;
  }
  .qt-money-cell { white-space: normal; min-width: 0; }
}
.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; }
.sig-vault-log-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-end;
  margin: 0 0 12px;
}
.sig-vault-log-filters label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  color: #64748b;
}
.sig-vault-log-filters .pg-search-input { min-width: 160px; }
.sig-vault-log-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* 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--unavailable {
  display: none;
}
.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; }
.lz-gallery-source-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.lz-gallery-upload-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.lz-gallery-upload-bar.hidden { display: none; }
.lz-gallery-upload-bar .lz-gallery-take-video.btn-primary {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #fff;
}
.lz-gallery-upload-bar .lz-gallery-take-video.btn-primary:hover,
.lz-gallery-upload-bar .lz-gallery-take-video.btn-primary:focus {
  background: #1d4ed8;
  border-color: #1e40af;
  color: #fff;
}
.lz-gallery-tile-play {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  pointer-events: none;
}
.lz-gallery-tile-img--video { background: #0f172a; }
.lz-gallery-tile-shared {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  background: #b45309;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  padding: 2px 6px;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.lz-gallery-tile-shared-with {
  color: #fde68a;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lz-gallery-viewer__shares {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lz-gallery-viewer__share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}
.lz-gallery-viewer__share-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lz-gallery-tile-from,
.lz-gallery-tile-remarks {
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lz-gallery-tile-from { font-weight: 600; }
.lz-gallery-viewer__video {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 240px);
  width: auto;
  height: auto;
  background: #000;
}
.lz-gallery-viewer__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
  padding: 8px 16px 0;
  color: #e2e8f0;
}
.lz-gallery-viewer__remarks {
  display: block;
  font-size: 12px;
  margin-bottom: 8px;
}
.lz-gallery-viewer__remarks textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  box-sizing: border-box;
}
.lz-gallery-viewer__action-row { display: flex; flex-wrap: wrap; gap: 8px; }
.lz-gallery-share-dialog {
  position: fixed;
  inset: 0;
  z-index: 14000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.lz-gallery-share-dialog.hidden { display: none; }
.lz-gallery-share-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.lz-gallery-share-dialog__card {
  position: relative;
  width: min(480px, 100%);
  max-height: 80vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 16px;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.18);
}
.lz-gallery-share-dialog__card h3 { margin: 0 0 6px; }
.lz-gallery-share-search { display: block; font-size: 13px; margin: 10px 0; }
.lz-gallery-share-search input { display: block; width: 100%; margin-top: 4px; box-sizing: border-box; }
.lz-gallery-share-results { display: flex; flex-direction: column; gap: 6px; min-height: 48px; }
.lz-gallery-share-person {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.lz-gallery-share-person__name { font-weight: 600; }
.lz-gallery-share-dialog__actions { margin-top: 12px; display: flex; justify-content: flex-end; }

/* 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-dropzone {
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 8px;
  outline: none;
}
.lz-evg-dropzone.is-file-drag,
.lz-evg-dropzone:focus-visible {
  border-color: #dc2626;
  background: #fef2f2;
}
.lz-evg-dropzone .lz-evg-upload-toolbar {
  background: transparent;
  border: 0;
  padding: 4px 6px 10px;
  margin-bottom: 8px;
}
.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-upload-overlay {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.lz-evg-share-upload-overlay.hidden {
  display: none;
}
.lz-evg-share-upload-overlay-card {
  width: min(320px, 100%);
  padding: 28px 22px 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
  text-align: center;
}
.lz-evg-share-upload-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid #fecaca;
  border-top-color: #b91c1c;
  animation: lz-evg-share-spin 0.8s linear infinite;
}
@keyframes lz-evg-share-spin {
  to { transform: rotate(360deg); }
}
.lz-evg-share-upload-title {
  margin: 16px 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}
.lz-evg-share-upload-progress {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #475569;
  min-height: 1.25em;
}
.lz-evg-share-upload-hint {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #b91c1c;
  font-weight: 600;
}
body.lz-evg-share-uploading {
  overflow: hidden;
}
body.lz-evg-share-uploading .lz-evg-share-shell {
  pointer-events: none;
  user-select: none;
}
.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: 16000;
  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;
  flex-shrink: 0;
  background: #fff;
  z-index: 4;
  position: sticky;
  top: 0;
}
.lz-file-viewer__back {
  font-weight: 700;
  min-height: 44px;
  min-width: 72px;
  flex-shrink: 0;
  padding: 8px 16px;
}
.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;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
  background: #fff;
  z-index: 3;
}
.lz-file-viewer--fill .lz-file-viewer__panel {
  width: calc(100vw - 16px);
  height: calc(100vh - 16px);
  max-height: none;
}
@media (max-width: 720px) {
  .lz-file-viewer {
    align-items: stretch;
    justify-content: stretch;
  }
  .lz-file-viewer__panel,
  .lz-file-viewer--fill .lz-file-viewer__panel {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }
  .lz-file-viewer__frame {
    height: 100%;
    min-height: 0;
  }
  .lz-file-viewer__back {
    min-height: 44px;
    padding: 8px 14px;
  }
}
.lz-file-viewer--fill .lz-file-viewer__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.lz-file-viewer--fill .lz-file-viewer__frame,
.lz-file-viewer--fill .lz-pdf-preview-iframe,
.lz-file-viewer--fill .pg-drawer-pdf-frame {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
}
.lz-file-viewer--fill .lz-file-viewer__img,
.lz-file-viewer--fill .lz-pdf-preview-img {
  max-width: 100%;
  max-height: none;
  width: 100%;
  height: auto;
}
.lz-file-viewer--fill .lz-pdf-preview-scroll {
  max-height: none;
  flex: 1 1 auto;
  min-height: 0;
}
.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;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  -webkit-overflow-scrolling: touch;
}
.lz-view-pdf-page {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  text-align: center;
}
.lz-view-pdf-canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  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-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.crm-detail-panel { margin-top: 0.75rem; }
.crm-log-notes { white-space: pre-wrap; max-width: 28rem; }
.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-inv-source--gas_inspection { background: #f3e8ff; color: #6b21a8; }
body[data-lz-module="invoice"] .inv-kpi-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 920px;
  gap: 12px;
}
@media (max-width: 720px) {
  body[data-lz-module="invoice"] .inv-kpi-grid {
    grid-template-columns: 1fr;
  }
}
body[data-lz-module="invoice"] button.pg-kpi-card {
  width: 100%;
  font: inherit;
  color: inherit;
}
body[data-lz-module="invoice"] .inv-kpi-pending {
  background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 100%);
  border-color: #fdba74;
}
body[data-lz-module="invoice"] .inv-kpi-pending strong {
  color: #c2410c;
}
body[data-lz-module="invoice"] .inv-kpi-invoiced {
  background: linear-gradient(145deg, #ecfeff 0%, #a5f3fc 100%);
  border-color: #67e8f9;
}
body[data-lz-module="invoice"] .inv-kpi-invoiced strong {
  color: #0e7490;
}
body[data-lz-module="invoice"] .inv-kpi-revenue {
  background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
  border-color: #cbd5e1;
}
body[data-lz-module="invoice"] .inv-kpi-revenue strong {
  color: #0f2744;
}
.inv-revenue-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inv-revenue-controls { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.inv-revenue-toggle {
  display: inline-flex;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.inv-revenue-toggle button {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  font: inherit;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
}
.inv-revenue-toggle button.is-active {
  background: #0f2744;
  color: #fff;
}
.inv-revenue-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.inv-revenue-kpi {
  border: 1px solid #e2e8f0;
  border-top: 3px solid #0f2744;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}
.inv-revenue-kpi span { display: block; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: #64748b; font-weight: 700; }
.inv-revenue-kpi strong { display: block; margin-top: 4px; font-size: 22px; color: #0f172a; }
.inv-revenue-kpi em { display: block; margin-top: 2px; font-style: normal; font-size: 12px; color: #64748b; }
.inv-revenue-chart-wrap { position: relative; height: 320px; margin: 4px 0 8px; }
.inv-revenue-splits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.inv-revenue-split h4 { margin: 0 0 8px; font-size: 14px; }
.inv-rev-row { margin-bottom: 10px; }
.inv-rev-row-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.inv-rev-bar { height: 8px; background: #e2e8f0; border-radius: 99px; margin: 4px 0; overflow: hidden; }
.inv-rev-bar > span { display: block; height: 100%; border-radius: 99px; }
.inv-rev-row-meta { font-size: 12px; color: #64748b; }
@media (max-width: 900px) {
  .inv-revenue-kpis, .inv-revenue-splits { grid-template-columns: 1fr; }
}
body[data-lz-module="invoice"] .pg-kpi-card.is-active {
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.22);
  border-color: var(--lz-red, #c62828);
}
.inv-month-filter {
  min-width: 150px;
  max-width: 180px;
}
.inv-load-more {
  display: flex;
  justify-content: center;
  margin: 16px 0 8px;
}
.qt-invoice-link { margin: 0 0 12px; }

/* Invoice queue — pending flat list; recently invoiced Month → Week → Day */
.inv-pending-list {
  display: block;
}
.inv-pending-table-wrap {
  margin: 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  overflow: auto;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.inv-ingest-wait,
.inv-ses-unapproved-tag,
.inv-ses-hold-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 4px 8px;
  white-space: nowrap;
}
.inv-status-pending-pm {
  color: #c2410c;
  background: #ffedd5;
  border-color: #fdba74;
}
.inv-status-ready {
  color: #b45309;
  background: #fef3c7;
  border-color: #fcd34d;
}
.inv-fm-instruction {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  color: #9a3412;
  white-space: pre-wrap;
}
.inv-fm-instruction-block {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  background: #fff7ed;
}
.inv-fm-instruction-label {
  font-size: 12px;
  font-weight: 700;
  color: #9a3412;
  margin-bottom: 4px;
}
.inv-fm-instruction-body {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.4;
  color: #431407;
}
.inv-ses-hold-tag {
  color: #1e40af;
  background: #dbeafe;
  border-color: #93c5fd;
}
.inv-row-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.inv-manual-edit {
  min-width: 36px;
  padding-left: 8px;
  padding-right: 8px;
}
.inv-ses-dl {
  border-color: #0f766e;
  color: #0f766e;
}
.inv-inv-dl {
  border-color: #b91c1c;
  color: #b91c1c;
}
.inv-ses-dl:disabled,
.inv-inv-dl:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.inv-day-table th:last-child,
.inv-day-table td:last-child {
  position: sticky;
  right: 0;
  background: #fff;
  box-shadow: -8px 0 10px -8px rgba(15, 23, 42, 0.2);
  z-index: 1;
}
.inv-group-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.inv-empty-note {
  margin: 8px 0 0;
  padding: 16px;
  text-align: center;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
}
.inv-group {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.inv-group--month {
  border-left: 4px solid #b91c1c;
}
.inv-group--week {
  border-left: 3px solid #f97316;
  margin: 0;
}
.inv-group--day {
  border-left: 3px solid #94a3b8;
  margin: 0;
}
.inv-group-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.75), #ffffff 55%);
}
.inv-group-head--week {
  background: linear-gradient(90deg, rgba(255, 237, 213, 0.55), #ffffff 60%);
  padding: 10px 12px;
}
.inv-group-head--day {
  background: linear-gradient(90deg, rgba(241, 245, 249, 0.9), #ffffff 60%);
  padding: 9px 12px;
}
.inv-group-head:hover { filter: brightness(0.99); }
.inv-group.is-expanded > .inv-group-head {
  border-bottom: 1px solid #e2e8f0;
}
.inv-group-chevron {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-right: 2px solid #b91c1c;
  border-bottom: 2px solid #b91c1c;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}
.inv-group.is-expanded > .inv-group-head .inv-group-chevron {
  transform: rotate(45deg);
  margin-top: 3px;
}
.inv-group-head-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.inv-group-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #7f1d1d;
  letter-spacing: 0.01em;
}
.inv-group-head--week .inv-group-title {
  font-size: 13px;
  color: #9a3412;
}
.inv-group-head--day .inv-group-title {
  font-size: 13px;
  color: #334155;
}
.inv-group-sub {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}
.inv-group-count {
  flex: 0 0 auto;
  margin-top: 1px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 4px 8px;
}
.inv-group-head--day .inv-group-count {
  color: #475569;
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.inv-group-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 12px;
  background: #f8fafc;
}
.inv-group--week > .inv-group-body,
.inv-group--day > .inv-group-body {
  background: #fff;
}
.inv-group.is-collapsed > .inv-group-body,
.inv-group-body.hidden {
  display: none !important;
}
.inv-day-table-wrap {
  margin: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  overflow: auto;
}
.inv-day-table {
  margin: 0;
}
@media (max-width: 900px) {
  .inv-group-head { padding: 10px 12px; }
  .inv-group-count { font-size: 10px; }
}

tr.inv-row-open { cursor: pointer; }
tr.inv-row-open:hover { background: #fef2f2; }
.inv-row-ref {
  color: #b91c1c;
  text-decoration: underline;
}
.lz-inv-detail-table-wrap {
  margin: 8px 0 16px;
  overflow-x: auto;
}
.lz-inv-detail-fields th[scope="row"] {
  width: 140px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
  vertical-align: top;
}
.lz-inv-doc-list {
  margin: 8px 0 16px;
  display: flex;
  flex-direction: column;
}
.lz-inv-doc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  min-height: 44px;
  padding: 8px 0;
  border-bottom: 1px solid var(--lz-border);
}
.lz-inv-doc-row:last-child { border-bottom: 0; }
.lz-inv-doc-main { min-width: 0; }
.lz-inv-doc-type {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lz-inv-doc-sub {
  color: #64748b;
  font-size: 12px;
  line-height: 1.3;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lz-inv-doc-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-shrink: 0;
  white-space: nowrap;
}
.lz-inv-doc-empty { margin: 8px 0 16px; }
#invDetailDrawer .pg-drawer-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 0 0 12px;
  border: 0;
  position: static;
}
#invDetailDrawer .pg-drawer-toolbar h3 { flex: 1; min-width: 120px; }
#invDetailDrawerStatusBubble { margin-left: auto; }
.lz-inv-quote-pack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 16px;
}
.lz-inv-copy-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 8px;
  align-items: start;
  font-size: 13px;
}
.lz-inv-copy-row dt { color: var(--lz-muted, #64748b); font-weight: 600; }
.lz-inv-copy-row dd { margin: 0; word-break: break-word; }
.lz-inv-quote-lines { margin-top: 8px; overflow-x: auto; }
.lz-inv-quote-lines table { width: 100%; font-size: 13px; }
.lz-inv-quote-lines td.desc { white-space: pre-wrap; }
.lz-inv-quote-copy-all { margin: 8px 0; }

.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;
}
.lz-pdf-preview-page-label {
  margin: 6px 0 0;
  font-size: 11px;
}
.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 — direct threshold editor */
.env-alert-root { position: relative; }
.env-alert-direct-form { margin-top: 4px; }
.env-alert-threshold-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 16px;
  margin: 8px 0 4px;
}
.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 14px 14px;
  border: 1px solid var(--lz-border, #e5e7eb);
  border-radius: 8px;
  background: #f8fafc;
}
.env-alert-tone-fieldset legend {
  font-size: 13px;
  font-weight: 700;
  padding: 0 4px;
}
.env-alert-keywords {
  min-height: 56px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.4;
  font-weight: 400;
}
.env-alert-rain-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}
@media (max-width: 900px) {
  .env-alert-rain-board { grid-template-columns: 1fr; }
}
.env-alert-rain-col {
  border: 1px solid var(--lz-border, #e5e7eb);
  border-radius: 10px;
  background: #fff;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.env-alert-rain-col.is-drop-target {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}
.env-alert-rain-col--none .env-alert-rain-col-head { background: #f1f5f9; color: #334155; }
.env-alert-rain-col--yellow .env-alert-rain-col-head { background: #fef9c3; color: #854d0e; }
.env-alert-rain-col--red .env-alert-rain-col-head { background: #fee2e2; color: #991b1b; }
.env-alert-rain-col-head {
  font-size: 13px;
  font-weight: 700;
  padding: 8px 10px;
  border-bottom: 1px solid var(--lz-border, #e5e7eb);
  border-radius: 10px 10px 0 0;
}
.env-alert-rain-drop {
  min-height: 140px;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}
.env-alert-rain-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
  cursor: grab;
  user-select: none;
  line-height: 1.25;
  text-align: left;
}
.env-alert-rain-chip:active { cursor: grabbing; }
.env-alert-rain-chip.is-dragging { opacity: 0.5; }
.env-alert-rain-col--yellow .env-alert-rain-chip {
  background: #fefce8;
  border-color: #fde047;
  color: #854d0e;
}
.env-alert-rain-col--red .env-alert-rain-chip {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}
.env-alert-rain-empty {
  width: 100%;
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
  padding: 18px 8px;
}
.env-alert-heat-fieldset { margin-top: 16px; }
.env-alert-psi-fieldset { margin-top: 16px; }
.env-alert-psi-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 12px 0;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  user-select: none;
}
.env-alert-psi-switch-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.env-alert-psi-switch-track {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5e1;
  border: 1px solid #94a3b8;
  transition: background 0.18s ease, border-color 0.18s ease;
  flex-shrink: 0;
}
.env-alert-psi-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
  transition: transform 0.18s ease;
}
.env-alert-psi-switch-input:checked + .env-alert-psi-switch-track {
  background: #16a34a;
  border-color: #15803d;
}
.env-alert-psi-switch-input:checked + .env-alert-psi-switch-track .env-alert-psi-switch-thumb {
  transform: translateX(20px);
}
.env-alert-psi-switch-input:focus-visible + .env-alert-psi-switch-track {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(22, 163, 74, 0.45);
}
.env-alert-psi-switch-input:disabled + .env-alert-psi-switch-track {
  opacity: 0.55;
  cursor: not-allowed;
}
.env-alert-psi-audit {
  margin: 10px 12px 0;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.4;
}
.env-alert-psi-live {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.env-alert-psi-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-size: 12px;
  font-weight: 650;
}
.env-alert-psi-chip--good {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}
.env-alert-psi-chip--medium {
  background: #fefce8;
  border-color: #facc15;
  color: #854d0e;
}
.env-alert-psi-chip--high {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}
.env-alert-psi-chip--critical {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}
.env-alert-heat-scale {
  margin: 12px 0 16px;
  padding: 12px 12px 18px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--lz-border, #e5e7eb);
}
.env-alert-heat-scale-bar {
  display: flex;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #e2e8f0;
}
.env-alert-heat-scale-seg { display: block; min-width: 0; }
.env-alert-heat-scale-seg--ok { background: #cbd5e1; }
.env-alert-heat-scale-seg--yellow { background: #facc15; }
.env-alert-heat-scale-seg--red { background: #ef4444; }
.env-alert-heat-scale-labels {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  min-height: 1.2em;
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}
.env-alert-heat-scale-mark {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  color: #854d0e;
  white-space: nowrap;
}
.env-alert-heat-scale-mark--red { color: #991b1b; }
.env-alert-heat-scale-end { margin-left: auto; }
.env-alert-heat-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 900px) {
  .env-alert-heat-board { grid-template-columns: 1fr; }
}
.env-alert-heat-card {
  border: 1px solid var(--lz-border, #e5e7eb);
  border-radius: 10px;
  background: #fff;
  padding: 0 0 14px;
  min-width: 0;
  overflow: hidden;
}
.env-alert-heat-card-head {
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  border-bottom: 1px solid var(--lz-border, #e5e7eb);
}
.env-alert-heat-card--yellow .env-alert-heat-card-head {
  background: #fef9c3;
  color: #854d0e;
}
.env-alert-heat-card--red .env-alert-heat-card-head {
  background: #fee2e2;
  color: #991b1b;
}
.env-alert-heat-card--radius .env-alert-heat-card-head {
  background: #f1f5f9;
  color: #334155;
}
.env-alert-heat-card-sub {
  margin: 10px 12px 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
}
.env-alert-heat-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 12px 0;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}
.env-alert-heat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.env-alert-heat-input {
  width: 100%;
  max-width: 7.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
}
.env-alert-heat-card--yellow .env-alert-heat-input {
  border-color: #fde047;
  background: #fefce8;
  color: #854d0e;
}
.env-alert-heat-card--red .env-alert-heat-input {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #991b1b;
}
.env-alert-heat-unit {
  font-size: 1rem;
  font-weight: 700;
  color: #64748b;
}
.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-title-row { display: flex; align-items: flex-start; gap: 8px; }
.lz-dash-ann-title-row strong { flex: 1 1 auto; display: block; font-size: 14px; margin-bottom: 2px; }
.lz-dash-ann-new {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: #dc2626;
  border-radius: 999px;
  padding: 2px 7px;
  line-height: 1.3;
}
.lz-dash-ann-item.is-unread { padding-left: 10px; border-left: 3px solid #dc2626; }
.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-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.lz-dash-ann-photo {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--lz-border, rgba(0,0,0,.12));
  border-radius: 12px;
  overflow: hidden;
  background: #111827;
  min-height: 0;
  cursor: zoom-in;
  appearance: none;
  font: inherit;
  color: inherit;
}
.lz-dash-ann-photo[data-preview-pending="1"] {
  min-height: 148px;
  background: #eef1f4;
}
.lz-dash-ann-photo-img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  display: none;
  background: #111827;
}
.lz-dash-ann-photo-img.is-ready { display: block; }
.lz-dash-ann-photo-status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  color: #4b5563;
  word-break: break-word;
}
.lz-dash-ann-photo-zoom {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  pointer-events: none;
}
.lz-dash-ann-photo.is-failed {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: auto;
  min-height: 0;
  padding: 8px 12px;
  background: var(--lz-surface-2, #f5f5f5);
  cursor: pointer;
}
.lz-dash-ann-photo.is-failed .lz-dash-ann-photo-status { position: static; }
.lz-dash-ann-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  font-size: 12px;
  line-height: 1.35;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--lz-border, rgba(0,0,0,.12));
  background: var(--lz-surface-2, #f5f5f5);
  color: var(--lz-text, #1a1a1a);
  text-align: left;
  cursor: pointer;
}
.lz-dash-ann-file:hover { background: var(--lz-surface-3, #eee); }
.lz-dash-ann-file.is-pdf {
  flex: 1 1 100%;
  width: 100%;
  box-sizing: border-box;
  background: #fff7ed;
  border-color: #fdba74;
}
.lz-dash-ann-file-badge {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #9a3412;
  background: #ffedd5;
  border-radius: 4px;
  padding: 2px 6px;
}
.lz-dash-ann-file-name {
  min-width: 0;
  white-space: normal;
  word-break: break-word;
}
.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-page { display: flex; flex-direction: column; gap: 16px; }
.ann-hero {
  border-radius: 16px;
  padding: 20px 22px;
  background: linear-gradient(135deg, #1a1a2e 0%, #3b0d12 55%, #7f1d1d 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(127, 29, 29, 0.18);
}
.ann-hero-eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fca5a5;
}
.ann-hero-title { margin: 0 0 6px; font-size: 22px; font-weight: 700; line-height: 1.2; }
.ann-hero-sub { margin: 0; font-size: 14px; color: rgba(255,255,255,0.78); max-width: 52ch; }
.ann-page-card { padding: 16px 18px 20px; }
.ann-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.ann-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.ann-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--lz-border);
  background: #fff;
  color: var(--lz-muted);
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.ann-filter-btn.is-on {
  background: var(--lz-red);
  border-color: var(--lz-red);
  color: #fff;
}
.ann-filter-count {
  min-width: 1.4em;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.ann-filter-btn.is-on .ann-filter-count { background: rgba(255,255,255,0.2); color: #fff; }
.ann-add-btn { white-space: nowrap; }
.ann-empty {
  text-align: center;
  padding: 28px 16px;
  border: 1px dashed var(--lz-border);
  border-radius: 14px;
  background: #fafbfc;
}
.ann-empty-title { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.ann-card-list { display: grid; gap: 12px; }
.ann-page .ann-card {
  border: 1px solid var(--lz-border);
  border-radius: 14px;
  padding: 14px 16px 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.ann-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.ann-card-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ann-page .ann-card-title,
.section-card .ann-card-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0;
  color: var(--lz-text);
  display: block;
}
.ann-card-body {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--lz-muted);
  white-space: pre-wrap;
}
.ann-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
  color: var(--lz-muted);
}
.ann-card-actions { margin-top: 12px; }
.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-type-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.ann-type-tag--general { background: #eef2ff; color: #3730a3; }
.ann-type-tag--safety { background: #fff1f2; color: #be123c; }
.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-status--broadcast { background: #fff7ed; color: #c2410c; }
.ann-status--emailed { background: #e0f2fe; color: #0369a1; }
.ann-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  background: #fffbeb;
}
.ann-check input { margin-top: 3px; }
.ann-check strong { display: block; font-size: 13px; color: #78350f; }
.ann-check .ann-field-hint { display: block; margin-top: 2px; }
.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; }

.ann-modal { padding: 16px; }
.ann-modal-dialog {
  width: min(560px, 100%);
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ann-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--lz-border);
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
}
.ann-modal-eyebrow {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lz-red);
}
.ann-modal-sub { margin: 0; font-size: 13px; color: var(--lz-muted); }
.ann-modal-x {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.ann-modal-x:hover { background: #e2e8f0; }
.ann-form { display: flex; flex-direction: column; min-height: 0; }
.ann-form-fields {
  display: grid;
  gap: 14px;
  padding: 16px 20px 20px;
  overflow: auto;
  max-height: min(64vh, 560px);
}
.ann-modal-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: var(--lz-text);
}
.ann-field { display: grid; gap: 6px; }
.ann-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475569;
}
.ann-label-opt { font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--lz-muted); }
.ann-field-hint { font-size: 12px; color: var(--lz-muted); }
.ann-field input[type="text"],
.ann-field textarea {
  width: 100%;
  border: 1px solid var(--lz-border);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  background: #f8fafc;
}
.ann-field textarea { min-height: 88px; resize: vertical; line-height: 1.45; }
.ann-field input[type="text"]:focus,
.ann-field textarea:focus {
  outline: 2px solid rgba(198, 40, 40, 0.22);
  border-color: var(--lz-red);
  background: #fff;
}
.ann-seg-row { display: flex; flex-wrap: wrap; gap: 6px; }
.ann-seg {
  border: 1px solid var(--lz-border);
  background: #fff;
  color: #334155;
  border-radius: 10px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.ann-seg:hover { border-color: #fca5a5; background: var(--lz-red-soft); }
.ann-seg.is-on {
  background: var(--lz-red);
  border-color: var(--lz-red);
  color: #fff;
}
.ann-seg--safety.is-on { background: #be123c; border-color: #9f1239; }
.ann-seg:disabled { opacity: 0.45; cursor: not-allowed; }
.ann-seg--days { min-width: 52px; text-align: center; }
.ann-drop {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  min-height: 92px;
  padding: 16px 12px;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
  text-align: center;
}
.ann-drop-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}
.ann-drop:hover,
.ann-drop.is-over {
  border-color: var(--lz-red);
  background: var(--lz-red-soft);
}
.ann-drop-title { font-size: 13px; font-weight: 700; color: var(--lz-text); }
.ann-drop-hint { font-size: 12px; color: var(--lz-muted); }
.ann-file-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ann-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 8px 6px 6px;
  border-radius: 10px;
  border: 1px solid var(--lz-border);
  background: #fff;
  font-size: 12px;
}
.ann-file-chip.is-pdf { background: #fff7ed; border-color: #fed7aa; }
.ann-file-chip.is-new { background: #f8fafc; }
.ann-file-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  border-radius: 6px;
  background: #e2e8f0;
  color: #334155;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.ann-file-chip.is-pdf .ann-file-chip-icon { background: #fdba74; color: #7c2d12; }
.ann-file-thumb {
  width: 36px;
  height: 28px;
  object-fit: cover;
  border-radius: 6px;
  background: #e2e8f0;
}
.ann-file-chip-copy { display: grid; min-width: 0; }
.ann-file-chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
  font-weight: 650;
}
.ann-file-chip-size { color: var(--lz-muted); font-size: 11px; }
.ann-file-chip-x {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.ann-existing { margin-top: 4px; }
.ann-form-status {
  min-height: 0;
  margin: 0;
  padding: 0 20px;
  font-size: 13px;
  color: var(--lz-muted);
}
.ann-form-status.is-error {
  margin-bottom: 8px;
  color: #b91c1c;
  font-weight: 650;
}
.ann-form-status.is-warn { margin-bottom: 8px; color: #b45309; }
.ann-form-status.is-info { margin-bottom: 8px; color: #334155; }
.ann-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--lz-border);
  background: #fff;
}
@media (max-width: 640px) {
  .ann-modal {
    padding: 0;
    align-items: flex-end;
  }
  .ann-modal-dialog {
    width: 100%;
    max-height: 94vh;
    border-radius: 16px 16px 0 0;
  }
  .ann-form-fields { max-height: min(58vh, 480px); }
  .ann-toolbar { align-items: stretch; }
  .ann-add-btn { width: 100%; }
  .ann-hero { padding: 16px; }
  .ann-hero-title { font-size: 20px; }
}

/* 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; }
.sf-snap-note { margin: 0 0 10px; 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-list-search {
  display: block;
  width: min(420px, 100%);
  margin: 0 0 8px;
}
.abd-dr-badge {
  display: inline-block;
  margin-right: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #c41e3a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: 1px;
}
.abd-loc-id {
  margin-top: 2px;
  font-size: 11px;
  color: #64748b;
  word-break: break-all;
}
.abd-status {
  display: inline-block;
  margin-right: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #334155;
  white-space: nowrap;
}
.abd-row-end { white-space: nowrap; }
.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-layout.is-draw-focus {
  position: fixed;
  inset: 0;
  z-index: 1200;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  gap: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #e8edf3;
}
.wpab-topbar {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  padding-top: max(8px, env(safe-area-inset-top, 0px));
  background: #fff;
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  z-index: 5;
}
.wpab-layout.is-draw-focus .wpab-topbar {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 6px 10px;
  padding-top: max(6px, env(safe-area-inset-top, 0px));
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.wpab-topbar-left,
.wpab-topbar-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 0;
}
.wpab-topbar-right {
  margin-left: auto;
}
.wpab-topbar-nav {
  min-width: 36px;
  padding-left: 8px;
  padding-right: 8px;
  font-weight: 700;
}
.wpab-topbar .btn {
  color: #334155;
  border-color: #e2e8f0;
  background: #fff;
  min-height: 32px;
  padding: 4px 10px;
  font-size: 12px;
  flex: 0 0 auto;
}
.wpab-topbar .btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.wpab-topbar .btn-primary {
  background: #c41e3a;
  border-color: #c41e3a;
  color: #fff;
}
.wpab-topbar .btn-primary:hover {
  background: #a81830;
  border-color: #a81830;
  color: #fff;
}
.wpab-topbar-title {
  flex: 0 1 160px;
  min-width: 64px;
  max-width: 220px;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
select.wpab-topbar-plan {
  flex: 0 1 220px;
  min-width: 110px;
  max-width: 280px;
  height: 32px;
  padding: 2px 6px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wpab-plan-toggles {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  min-width: 0;
}
.wpab-plan-toggle {
  min-width: 52px;
  padding: 4px 10px;
  font-weight: 700;
  white-space: nowrap;
}
.wpab-plan-toggle.is-on,
.wpab-layout.is-draw-focus .wpab-topbar .wpab-plan-toggle.is-on {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}
.wpab-grey-plan-toggle.is-on {
  background: #334155;
  border-color: #334155;
  color: #fff;
  font-weight: 600;
}
.wpab-layout.is-draw-focus .wpab-topbar .wpab-grey-plan-toggle.is-on {
  background: #334155;
  border-color: #334155;
  color: #fff;
}
.wpab-topbar-size {
  width: 118px;
  min-height: 32px;
  padding: 4px 6px;
  font-size: 12px;
  flex: 0 0 auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
}
.wpab-topbar-weight {
  width: 92px;
}
.wpab-pointer-mode {
  display: inline-flex;
  flex: 0 0 auto;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.wpab-pointer-mode--side {
  display: flex;
  width: 100%;
  margin: 0 0 4px;
}
.wpab-pointer-mode .wpab-pointer-mode-btn {
  border: none;
  border-radius: 0;
  background: transparent;
  color: #334155;
  box-shadow: none;
  min-height: 32px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}
.wpab-pointer-mode--side .wpab-pointer-mode-btn {
  flex: 1 1 0;
}
.wpab-pointer-mode .wpab-pointer-mode-btn.is-on {
  background: #0f172a;
  color: #fff;
}
.wpab-layout--mouse .wpab-crosshair {
  display: none;
}
.wpab-layout--mouse .wpab-canvas-wrap.is-pin-mode {
  cursor: crosshair;
}
.wpab-layout--mouse.is-space-pan .wpab-canvas-wrap,
.wpab-layout--mouse .wpab-canvas-wrap.is-panning {
  cursor: grabbing;
}
.wpab-topbar-tools {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  max-width: none;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
  padding: 3px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}
.wpab-topbar-tools .btn {
  border-color: transparent;
  background: transparent;
  color: #475569;
  box-shadow: none;
}
.wpab-topbar-tools .wpab-tool.is-active,
.wpab-topbar-tools #wpabInsertBtn.is-on {
  background: #fff;
  border-color: #e2e8f0;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  font-weight: 600;
}
.wpab-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  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-side-head {
  padding: 2px 0 10px;
  border-bottom: 1px solid #e2e8f0;
  flex: 0 0 auto;
}
.wpab-side-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
  word-break: break-word;
}
.wpab-side-meta {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.35;
  color: #64748b;
}
.wpab-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.wpab-chip-row .btn {
  flex: 1 1 calc(50% - 6px);
  min-width: 0;
  justify-content: center;
}
.wpab-side-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
}
.wpab-side-actions .btn {
  flex: 1 1 auto;
  min-width: 0;
}
.wpab-status {
  margin: 0;
  padding-top: 2px;
  font-size: 11px;
  line-height: 1.35;
  color: #64748b;
  flex: 0 0 auto;
}
/* Site / phone: tools open as a left drawer — plan stays visible on the right */
.wpab-layout.is-draw-focus:not(.wpab-layout--desktop) .wpab-side {
  display: none;
  position: absolute;
  left: 0;
  right: auto;
  top: calc(46px + env(safe-area-inset-top, 0px));
  bottom: 0;
  width: min(78vw, 300px);
  z-index: 30;
  height: calc(100dvh - 46px - env(safe-area-inset-top, 0px));
  max-height: calc(100dvh - 46px - env(safe-area-inset-top, 0px));
  min-height: 0;
  margin: 0;
  padding: 12px 14px;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  gap: 12px;
  border-radius: 0 14px 14px 0;
  border: none;
  border-right: 1px solid #e2e8f0;
  box-shadow: 8px 0 28px rgba(15, 23, 42, 0.18);
  overflow-x: hidden;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  background: #fff;
}
.wpab-layout.is-draw-focus:not(.wpab-layout--desktop) .wpab-side h4 {
  margin: 0;
  font-size: 13px;
  flex: 0 0 auto;
}
.wpab-layout.is-draw-focus:not(.wpab-layout--desktop) .wpab-side .btn,
.wpab-layout.is-draw-focus:not(.wpab-layout--desktop) .wpab-side .wpab-prior-toggle {
  min-height: 28px;
  padding: 3px 7px;
  font-size: 11px;
  flex: 0 0 auto;
}
.wpab-layout.is-draw-focus:not(.wpab-layout--desktop) .abd-tool-row {
  gap: 4px;
  flex: 0 0 auto;
}
.wpab-layout.is-draw-focus:not(.wpab-layout--desktop) .wpab-inspector {
  flex: 0 0 auto;
  padding: 8px;
}
.wpab-layout.is-draw-focus:not(.wpab-layout--desktop) .wpab-choice-chip {
  min-height: 26px;
  padding: 2px 8px;
  font-size: 11px;
}
.wpab-layout.is-draw-focus:not(.wpab-layout--desktop) .wpab-edit-table .pg-search-input,
.wpab-layout.is-draw-focus:not(.wpab-layout--desktop) .wpab-inspector .pg-search-input {
  min-height: 28px;
  font-size: 12px;
}
.wpab-layout.is-draw-focus:not(.wpab-layout--desktop) .wpab-tick {
  font-size: 11px;
  margin: 0 0 6px;
}
.wpab-layout.is-draw-focus:not(.wpab-layout--desktop) .wpab-tick input {
  width: 14px;
  height: 14px;
}
.wpab-layout.is-draw-focus:not(.wpab-layout--desktop).is-tools-open .wpab-side {
  display: flex;
}
.wpab-main { min-width: 0; }
.wpab-layout.is-draw-focus .wpab-main {
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.wpab-canvas-wrap {
  position: relative;
  overflow: hidden;
  height: calc(100vh - 140px);
  min-height: 420px;
  max-height: calc(100vh - 120px);
  border: 1px solid var(--lz-border, rgba(0,0,0,.12));
  border-radius: 8px;
  background: #e2e8f0;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.wpab-layout.is-draw-focus .wpab-canvas-wrap {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  max-height: none;
  border: 0;
  border-radius: 0;
}
.wpab-canvas-wrap.is-pin-mode { cursor: grab; }
.wpab-canvas-wrap.is-pin-mode:active { cursor: grabbing; }
.wpab-canvas-wrap.is-select-mode { cursor: pointer; }
.wpab-stage {
  transform-origin: 0 0;
  will-change: transform;
}
.wpab-canvas-wrap canvas {
  display: block;
  max-width: none;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  touch-action: none;
}
.wpab-gesture-hint {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
}
.wpab-crosshair {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.wpab-crosshair-h,
.wpab-crosshair-v {
  position: absolute;
  background: rgba(196, 30, 58, 0.9);
}
.wpab-crosshair-h {
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  transform: translateY(-0.5px);
}
.wpab-crosshair-v {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-0.5px);
}
.wpab-crosshair-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 2px solid #c41e3a;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.25);
}
.wpab-crosshair-drop { display: none; }
.wpab-crosshair-free {
  display: none;
  position: absolute;
  left: 50%;
  top: calc(50% + 22px);
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 999px;
  background: #1d4ed8;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  pointer-events: none;
}
.wpab-crosshair.is-snap-free .wpab-crosshair-free { display: block; }
.wpab-crosshair.is-snap-free .wpab-crosshair-h,
.wpab-crosshair.is-snap-free .wpab-crosshair-v {
  background: rgba(29, 78, 216, 0.95);
}
.wpab-crosshair.is-snap-free .wpab-crosshair-ring {
  background: rgba(29, 78, 216, 0.18);
  box-shadow: 0 0 0 2px #1d4ed8;
}
.wpab-snap-free.is-on {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
  font-weight: 700;
}
.wpab-move-bar[hidden],
.wpab-pin-bar[hidden] {
  display: none !important;
}
.wpab-move-bar {
  position: absolute;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
}
.wpab-move-guide {
  font-size: 12px;
  line-height: 1.35;
  color: #334155;
}
.wpab-move-btn.is-on {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
  font-weight: 700;
}
.wpab-canvas-wrap.is-pipe-move {
  cursor: move;
}
.wpab-canvas-wrap.is-pipe-moving {
  cursor: grabbing;
}
.wpab-pin-bar {
  position: absolute;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 8;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: center;
  align-items: center;
  width: calc(100% - 16px);
  max-width: 430px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.94);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.35);
  pointer-events: auto;
  touch-action: manipulation;
}
.wpab-vb-place {
  position: absolute;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 7;
  width: calc(100% - 16px);
  max-width: 440px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.35);
  color: #fff;
  pointer-events: auto;
  touch-action: manipulation;
}
.wpab-vb-place[hidden] {
  display: none !important;
}
.wpab-flash {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%) scale(0.96);
  z-index: 12;
  min-width: 140px;
  max-width: min(90%, 320px);
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  color: #fff;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.35);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.wpab-flash.is-show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.wpab-flash.is-ok {
  background: rgba(22, 101, 52, 0.95);
}
.wpab-flash.is-error {
  background: rgba(153, 27, 27, 0.95);
}
.wpab-flash[hidden] {
  display: none !important;
}
.wpab-dim-prompt {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.45);
  box-sizing: border-box;
}
.wpab-dim-prompt[hidden] {
  display: none !important;
}
.wpab-end-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 14px;
}
.wpab-end-pick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 96px;
  padding: 12px 8px;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.wpab-end-pick-btn .wpab-insert-ico {
  width: 48px;
  height: 48px;
}
.wpab-end-pick-btn:hover,
.wpab-end-pick-btn:focus,
.wpab-end-pick-btn.is-on {
  border-color: #c41e3a;
  background: #fff;
}
.wpab-end-pick-btn.is-on {
  box-shadow: 0 0 0 2px rgba(196, 30, 58, 0.25);
}
.wpab-end-pick--inspector {
  margin: 0 0 8px;
}
.wpab-end-pick--inspector .wpab-end-pick-btn {
  min-height: 72px;
}
.wpab-end-pick--inspector .wpab-end-pick-btn .wpab-insert-ico {
  width: 36px;
  height: 36px;
}
.wpab-dim-prompt-card {
  width: min(420px, 100%);
  padding: 22px 20px 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28);
  box-sizing: border-box;
}
.wpab-dim-prompt-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
}
.wpab-dim-prompt-hint {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.35;
  color: #64748b;
  text-align: center;
}
.wpab-dim-prompt-input {
  display: block;
  width: 100%;
  min-height: 56px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  color: #0f172a;
  background: #f8fafc;
  box-sizing: border-box;
}
.wpab-dim-prompt-input:focus {
  outline: none;
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
.wpab-dim-prompt-input::placeholder {
  font-size: 18px;
  font-weight: 500;
  color: #94a3b8;
}
.wpab-dim-prompt-actions {
  display: flex;
  gap: 10px;
  justify-content: stretch;
}
.wpab-dim-prompt-actions .btn {
  flex: 1;
  min-height: 48px;
  font-size: 16px;
  font-weight: 600;
}
.wpab-vb-place-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.wpab-vb-place-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.wpab-vb-place-actions .btn {
  min-height: 32px;
  min-width: 72px;
  padding: 4px 8px;
  font-size: 12px;
}
.wpab-layout.wpab-layout--desktop .wpab-vb-place {
  bottom: 12px;
  max-width: 400px;
  padding: 10px 12px;
  border-radius: 10px;
}
.wpab-view-bar {
  position: absolute;
  right: 8px;
  top: 36px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
}
.wpab-view-bar .btn {
  min-width: 30px;
  min-height: 30px;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  border-color: rgba(255,255,255,0.25);
  background: transparent;
}
.wpab-view-bar .btn:active {
  background: rgba(255,255,255,0.16);
}
.wpab-pin-bar .btn {
  min-width: 56px;
  min-height: 32px;
  padding: 4px 8px;
  font-size: 12px;
  touch-action: manipulation;
}
.wpab-pin-bar .wpab-pin-drop,
.wpab-pin-bar .btn-primary {
  flex: 1 1 auto;
  min-width: 100px;
  font-weight: 700;
  background: #c41e3a;
  border-color: #c41e3a;
  color: #fff;
}
.wpab-display-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}
.wpab-display-row .btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 36px;
  padding: 4px 6px;
  font-size: 12px;
  white-space: nowrap;
}
.wpab-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin: 0;
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}
.wpab-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.wpab-switch-ui {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #cbd5e1;
  flex: 0 0 auto;
  transition: background 0.15s ease;
}
.wpab-switch-ui::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
  transition: transform 0.15s ease;
}
.wpab-switch input:checked + .wpab-switch-ui {
  background: #c41e3a;
}
.wpab-switch input:checked + .wpab-switch-ui::after {
  transform: translateX(18px);
}
.wpab-switch-text {
  white-space: nowrap;
}
.wpab-size-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}
.wpab-size-row .btn.is-on,
.wpab-sym-size-btn.is-on {
  background: #c41e3a;
  border-color: #c41e3a;
  color: #fff;
}
.wpab-tool-group {
  margin: 0;
  padding: 0;
}
.wpab-tool-group-label {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.wpab-prior-toggle {
  width: 100%;
  margin-top: 4px;
  text-align: left;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
}
.wpab-prior-toggle.is-on {
  background: #c41e3a;
  border-color: #c41e3a;
  color: #fff;
}
.wpab-prior-colour-toggle.is-on {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
  font-weight: 600;
}
.wpab-layout.is-draw-focus .wpab-topbar .wpab-prior-colour-toggle.is-on {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}
.wpab-pipe-lock-btn.is-on {
  background: #7c2d12;
  border-color: #7c2d12;
  color: #fff;
}

.wpab-insert-wrap {
  position: relative;
  display: inline-flex;
}
.wpab-insert-wrap #wpabInsertBtn.is-on {
  font-weight: 600;
}
.wpab-topbar-tools .wpab-insert-wrap #wpabInsertBtn.is-on {
  background: #fff;
  border-color: #e2e8f0;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.wpab-insert-menu {
  position: fixed;
  z-index: 10050;
  display: grid;
  grid-template-columns: repeat(4, 76px);
  gap: 8px;
  width: auto;
  min-width: 0;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  box-sizing: border-box;
}
.wpab-layout.is-draw-focus.wpab-layout--desktop .wpab-side {
  z-index: 1;
}
.wpab-layout.is-draw-focus .wpab-topbar {
  z-index: 6;
}
.wpab-insert-menu[hidden] {
  display: none !important;
}
.wpab-insert-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.wpab-insert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 76px;
  min-height: 76px;
  max-height: 76px;
  padding: 8px 4px 6px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  cursor: pointer;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}
.wpab-insert-menu .wpab-insert-item {
  width: 76px;
  min-width: 76px;
  max-width: 76px;
}
.wpab-insert-item:hover,
.wpab-insert-item:focus,
.wpab-insert-item.is-active {
  border-color: #c41e3a;
  background: #fff;
  outline: none;
}
.wpab-insert-item.is-active {
  box-shadow: inset 0 0 0 1px #c41e3a;
}
.wpab-insert-card-face {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-sizing: border-box;
}
.wpab-insert-item.is-active .wpab-insert-card-face,
.wpab-insert-item:hover .wpab-insert-card-face,
.wpab-insert-item:focus .wpab-insert-card-face {
  border-color: rgba(196, 30, 58, 0.35);
}
.wpab-insert-ico {
  width: 24px;
  height: 24px;
  display: block;
}
.wpab-insert-card-label {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0 2px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wpab-insert-item.is-active .wpab-insert-card-label {
  color: #0f172a;
}
.wpab-stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 8px;
}
.wpab-stepper .btn {
  min-width: 40px;
  min-height: 36px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
.wpab-stepper-val {
  min-width: 36px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  color: #0f172a;
}
.wpab-layout.is-draw-focus .wpab-topbar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.wpab-layout.is-draw-focus .wpab-topbar .btn {
  color: #334155;
  background: #fff;
  border-color: #e2e8f0;
}
.wpab-layout.is-draw-focus .wpab-topbar-title,
.wpab-layout.is-draw-focus .wpab-tools-toggle {
  color: #0f172a;
}
.wpab-layout.is-draw-focus .wpab-topbar .btn-primary {
  background: #c41e3a;
  border-color: #c41e3a;
  color: #fff;
}
.wpab-layout.is-draw-focus .wpab-topbar-tools .btn {
  background: transparent;
  border-color: transparent;
  color: #475569;
}
.wpab-layout.is-draw-focus .wpab-topbar-tools .wpab-tool.is-active,
.wpab-layout.is-draw-focus .wpab-topbar-tools #wpabInsertBtn.is-on {
  background: #c41e3a;
  border-color: #c41e3a;
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
}
.wpab-layout.is-draw-focus .wpab-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
}
.wpab-props-block {
  margin-top: auto;
  margin-left: -14px;
  margin-right: -14px;
  margin-bottom: -4px;
  padding: 12px 14px 10px;
  border-top: 1px solid #e2e8f0;
  position: sticky;
  bottom: 0;
  background: #fff;
  z-index: 2;
  box-shadow: 0 -8px 16px rgba(255, 255, 255, 0.9);
}
.wpab-layout.is-draw-focus .wpab-inspector {
  margin: 0;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  max-height: min(42vh, 360px);
  overflow: auto;
}
.wpab-inspector-head {
  margin-bottom: 8px;
}

/* Desktop As-Built editor — permanent side panel, compact chrome */
.wpab-layout.is-draw-focus.wpab-layout--desktop {
  grid-template-columns: 288px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  background: #e8edf3;
}
.wpab-layout.is-draw-focus.wpab-layout--desktop .wpab-topbar {
  grid-column: 1 / -1;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 8px 12px;
  overflow-x: visible;
}
/* Phone: draw tools on one row, plan actions on the next. Neither row may shrink over the other. */
.wpab-layout.is-draw-focus:not(.wpab-layout--desktop) .wpab-topbar {
  flex-wrap: wrap;
  align-items: center;
  row-gap: 6px;
  overflow-x: hidden;
  overflow-y: visible;
}
.wpab-layout.is-draw-focus:not(.wpab-layout--desktop) .wpab-topbar-left {
  flex: 0 0 auto;
  min-width: max-content;
}
.wpab-layout.is-draw-focus:not(.wpab-layout--desktop) .wpab-topbar-tools {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.wpab-layout.is-draw-focus:not(.wpab-layout--desktop) .wpab-topbar-tools .btn,
.wpab-layout.is-draw-focus:not(.wpab-layout--desktop) .wpab-insert-wrap {
  flex: 0 0 auto;
}
.wpab-layout.is-draw-focus:not(.wpab-layout--desktop) .wpab-topbar-right {
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
}
.wpab-layout.is-draw-focus:not(.wpab-layout--desktop) .wpab-topbar-right > .btn,
.wpab-layout.is-draw-focus:not(.wpab-layout--desktop) .wpab-topbar-right > .wpab-plan-toggles,
.wpab-layout.is-draw-focus:not(.wpab-layout--desktop) .wpab-plan-toggles {
  flex: 0 0 auto;
}
.wpab-layout.is-draw-focus:not(.wpab-layout--desktop) .wpab-topbar-size {
  flex: 0 0 auto;
  width: 84px;
  min-width: 84px;
  max-width: 84px;
}
.wpab-layout.is-draw-focus:not(.wpab-layout--desktop) .wpab-topbar-weight {
  width: 76px;
  min-width: 76px;
  max-width: 76px;
}
.wpab-layout.is-draw-focus:not(.wpab-layout--desktop) .wpab-topbar-title,
.wpab-layout.is-draw-focus:not(.wpab-layout--desktop) select.wpab-topbar-plan {
  flex: 0 0 auto;
  width: 108px;
  min-width: 88px;
  max-width: 140px;
}
.wpab-layout.is-draw-focus.wpab-layout--desktop .wpab-tools-toggle {
  display: none;
}
.wpab-layout.is-draw-focus.wpab-layout--desktop .wpab-topbar .btn,
.wpab-layout.is-draw-focus.wpab-layout--desktop .wpab-topbar-size {
  min-height: 34px;
  font-size: 13px;
}
.wpab-layout.is-draw-focus.wpab-layout--desktop .wpab-topbar-title {
  display: none;
}
.wpab-layout.is-draw-focus.wpab-layout--desktop select.wpab-topbar-plan {
  display: inline-block;
  max-width: 240px;
}
.wpab-layout.is-draw-focus.wpab-layout--desktop .wpab-topbar-size {
  width: 120px;
}
.wpab-layout.is-draw-focus.wpab-layout--desktop .wpab-topbar-weight {
  width: 96px;
}
.wpab-layout.is-draw-focus.wpab-layout--desktop .wpab-side {
  display: flex;
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  max-height: none;
  height: 100%;
  margin: 0;
  padding: 14px 14px 12px;
  border-radius: 0;
  border: none;
  border-right: 1px solid #e2e8f0;
  box-shadow: none;
  z-index: 1;
  background: #fff;
}
.wpab-layout.is-draw-focus.wpab-layout--desktop .wpab-main {
  grid-column: 2;
}
.wpab-layout.is-draw-focus.wpab-layout--desktop .wpab-gesture-hint {
  display: none;
}
.wpab-layout.is-draw-focus.wpab-layout--desktop.wpab-layout--mouse .wpab-gesture-hint {
  display: block;
  max-width: calc(100% - 24px);
  white-space: normal;
  text-align: center;
}
.wpab-layout.is-draw-focus.wpab-layout--desktop .wpab-view-bar .btn {
  min-width: 34px;
  min-height: 34px;
  font-size: 15px;
}
.wpab-layout.is-draw-focus.wpab-layout--desktop .wpab-pin-bar {
  max-width: 460px;
  padding: 8px;
  border-radius: 10px;
}
.wpab-layout.is-draw-focus.wpab-layout--desktop .wpab-pin-bar .btn {
  min-width: 64px;
  min-height: 36px;
  font-size: 13px;
}
.wpab-layout.is-draw-focus.wpab-layout--desktop .wpab-pin-bar .wpab-pin-drop,
.wpab-layout.is-draw-focus.wpab-layout--desktop .wpab-pin-bar .btn-primary {
  min-width: 110px;
}
.site-term-ab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.site-term-ab-row--drawn {
  border-color: #f59e0b;
  background: #fffbeb;
}
.site-term-ab-last-drawn {
  margin-top: 2px;
  color: #b45309;
  font-weight: 650;
}
.site-term-ab-ready.is-on {
  background: #059669;
  border-color: #059669;
  color: #fff;
}
html.wpab-drawing-open,
html.wpab-drawing-open body {
  overflow: hidden !important;
  overscroll-behavior: none;
}
/* App nav collapse float sits mid-screen — useless over fullscreen As-Built */
html.wpab-drawing-open .lz-float-sidebar-toggle,
html.wpab-drawing-open .lz-float-refbar-toggle,
body.wpab-drawing-open .lz-float-sidebar-toggle,
body.wpab-drawing-open .lz-float-refbar-toggle,
.wpab-layout.is-draw-focus ~ .lz-float-sidebar-toggle {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
html.wpab-drawing-open .portal-site-body,
html.wpab-drawing-open .portal-site-shell,
html.wpab-drawing-open .site-term-host {
  /* keep page from scrolling behind fullscreen drawer */
}
.wpab-pin-hint {
  margin: 0;
  padding: 8px 10px;
  line-height: 1.35;
  font-size: 12px;
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.wpab-pin-hint[hidden] {
  display: none !important;
}
.wpab-inspector {
  margin-top: 4px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.wpab-inspector-head { margin-bottom: 8px; }
.wpab-edit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 8px;
  background: #fff;
}
.wpab-edit-table th,
.wpab-edit-table td {
  border: 1px solid #cbd5e1;
  padding: 6px 8px;
  text-align: left;
  vertical-align: middle;
}
.wpab-edit-table th {
  width: 38%;
  background: #f1f5f9;
  color: #334155;
  font-weight: 600;
}
.wpab-edit-table .pg-search-input {
  width: 100%;
  min-height: 36px;
  font-size: 14px;
}
.wpab-inspector-section {
  margin: 10px 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}
.wpab-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}
.wpab-choice-chip {
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  cursor: pointer;
}
.wpab-choice-chip.is-on {
  border-color: #c41e3a;
  background: #fef2f2;
  color: #b91c1c;
  box-shadow: inset 0 0 0 1px #c41e3a;
  font-weight: 700;
}
.wpab-tick {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 13px;
  color: #334155;
  line-height: 1.35;
}
.wpab-tick input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex: 0 0 auto;
}
.wpab-delete-btn {
  width: 100%;
  color: #b91c1c;
  border-color: #fecaca;
  background: #fef2f2;
}
.wpab-tool.is-active { background: var(--lz-red, #c41e3a); color: #fff; border-color: var(--lz-red, #c41e3a); }
.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; }
.wp-asbuilt-create--simple {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px 12px;
  align-items: end;
}
.wp-asbuilt-step { margin: 14px 0 18px; }
.wp-asbuilt-step h4 { margin: 0 0 6px; font-size: 14px; }
.wp-asbuilt-advanced {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  margin-top: 10px;
}
.wp-asbuilt-advanced label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.wp-ab-basemap-hint { margin: 0 0 10px; }
.wp-ab-wo-table-wrap { margin: 8px 0 12px; overflow-x: auto; }
.wp-ab-wo-table { width: 100%; min-width: 720px; }
.wp-ab-wo-table th,
.wp-ab-wo-table td { vertical-align: top; font-size: 12px; }
.wp-ab-wo-table select.wp-ab-row-team {
  min-width: 110px;
  max-width: 160px;
  font-size: 12px;
}
.wp-ab-share-cell {
  white-space: nowrap;
}
.wp-ab-draw-table { width: 100%; }
.wp-ab-draw-table th,
.wp-ab-draw-table td { font-size: 12px; vertical-align: top; }
.wp-live-ab-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wp-live-ab-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.wp-live-ab-card-text { min-width: 0; }
.wp-live-ab-host {
  position: fixed;
  inset: 0;
  z-index: 13000;
  background: #e8edf3;
}
.wp-live-ab-host .wpab-layout.is-draw-focus {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-height: 100%;
}
.wp-overview-home { display: flex; flex-direction: column; gap: 14px; }
.wp-identity-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px 14px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.wp-info-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  padding: 14px 16px 16px;
}
.wp-info-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
}
.wp-info-card-head h4 {
  margin: 0;
  font-size: 15px;
}
.wp-info-card-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wp-info-edit {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  border-radius: 8px;
}
.wp-info-edit:hover {
  color: #0f172a;
  background: #e2e8f0;
  border-color: #cbd5e1;
}
.wp-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px 16px;
}
.wp-info-field p { margin: 3px 0 0; font-size: 13px; }
.wp-info-span { grid-column: 1 / -1; }
.wp-info-link {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.wp-info-link:hover { text-decoration: underline; }
.wp-info-remark-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.wp-map-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 8px; }
.wp-map-chip {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}
button.wp-map-chip {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
}
.wp-plan-file-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #1d4ed8;
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
  word-break: break-word;
}
.wp-plan-file-link:hover { color: #1e3a8a; }
.wp-map-chip--ok { background: #ecfdf5; color: #047857; }
.wp-ov-file-list { list-style: none; padding: 0; margin: 6px 0; }
.wp-ov-file-list li { padding: 4px 0; }
.wp-admin-more { margin-top: 10px; }
.wp-admin-more summary {
  cursor: pointer;
  color: #64748b;
  font-size: 13px;
}

@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:not(.is-draw-focus) { grid-template-columns: 1fr; }
  .wpab-layout:not(.is-draw-focus) .wpab-side { max-height: none; }
  .wpab-layout:not(.is-draw-focus) .wpab-canvas-wrap {
    height: 62vh;
    min-height: 360px;
    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="text"],
.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"],
.wtc-toolbar__filters #wtcSearch { 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-place-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  width: 100%;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #f8fafc;
  color: inherit;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  color: #0f172a;
}
.wtc-place-summary:hover,
.wtc-place-summary:focus-visible {
  border-color: #cbd5e1;
  background: #fff;
  outline: none;
}
.wtc-shift-row__place[data-place-open="1"] .wtc-place-summary {
  border-color: #93c5fd;
  background: #eff6ff;
}
.wtc-place-summary__loc,
.wtc-place-summary__con {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wtc-place-summary__con {
  color: #334155;
  font-weight: 700;
}
.wtc-place-summary__sep {
  color: #94a3b8;
  font-weight: 500;
}
.wtc-place-summary__chev {
  margin-left: auto;
  color: #94a3b8;
  font-size: 10px;
  transition: transform 0.12s ease;
}
.wtc-shift-row__place[data-place-open="1"] .wtc-place-summary__chev {
  transform: rotate(180deg);
}
.wtc-place-editors {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0 0;
}
.wtc-place-editors[hidden] {
  display: none !important;
}
.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-field-label--lot[hidden] {
  display: none !important;
}
.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"],
  .wtc-toolbar__filters #wtcSearch { 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-you {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 62%, #312e81 130%);
  border-radius: 16px;
  padding: 16px 18px 18px;
  color: #e2e8f0;
  margin: 0 0 20px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
}
.lz-dash-you__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.lz-dash-you__title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c7d2fe;
}
.lz-dash-you__meta {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
}
.lz-dash-you__dock {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.lz-dash-you-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 104px;
  flex: 1 1 104px;
  max-width: 148px;
  padding: 14px 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.lz-dash-you-tile:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(199, 210, 254, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.22);
}
.lz-dash-you-tile__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}
.lz-dash-you-tile__label {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  color: #f1f5f9;
}
.lz-dash-you-tile__label .pg-app-outstanding-badge {
  margin-left: 4px;
  vertical-align: middle;
}
.lz-dash-you-tile--incident {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(251, 191, 36, 0.38);
}
.lz-dash-you-tile--incident .lz-dash-you-tile__icon {
  background: rgba(245, 158, 11, 0.24);
}
@media (max-width: 640px) {
  .lz-dash-you {
    padding: 14px 12px 14px;
  }
  .lz-dash-you-tile {
    min-width: calc(33.33% - 8px);
    max-width: none;
    flex: 1 1 calc(33.33% - 8px);
    padding: 12px 6px 10px;
  }
}
.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: #fff;
  border-top: none;
}
[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; }
.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;
}
button.lz-dash-cal-cell {
  display: block;
  width: 100%;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.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--selected {
  border-color: #4f46e5;
  background: #eef2ff;
}
.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-dots { display: none; }
.lz-dash-cal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6366f1;
  display: block;
}
.lz-dash-cal-dot--staff_birthday { background: #db2777; }
.lz-dash-cal-dot--field_birthday { background: #c2410c; }
.lz-dash-cal-dot--staff_leave { background: #0f766e; }
.lz-dash-cal-dot--staff_mc { background: #b45309; }
.lz-dash-cal-dot--public_holiday { background: #d97706; }
.lz-dash-cal-dot--more { background: #94a3b8; }
@media (max-width: 768px) {
  .lz-dash-cal-cell { min-height: 40px; }
  .lz-dash-cal-cell-events { display: none; }
  .lz-dash-cal-dots { display: flex; gap: 3px; margin-top: 4px; flex-wrap: wrap; }
}
.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--field_birthday .lz-dash-cal-upcoming-text strong { color: #c2410c; }
.lz-dash-cal-item--staff_leave .lz-dash-cal-upcoming-text strong { color: #0f766e; }
.lz-dash-cal-item--staff_mc .lz-dash-cal-upcoming-text strong { color: #b45309; }
.lz-dash-cal-prompt {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
}
@media (min-width: 769px) {
  .lz-dash-cal-prompt { align-items: center; padding: 24px; }
}
.lz-dash-cal-prompt-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
}
.lz-dash-cal-prompt-card {
  position: relative;
  width: min(420px, 100%);
  max-height: min(72vh, 560px);
  overflow: auto;
  background: #fff;
  border-radius: 16px 16px 12px 12px;
  padding: 16px 16px 12px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
}
.lz-dash-cal-prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.lz-dash-cal-prompt-head h3 {
  margin: 0;
  font-size: 16px;
  color: #312e81;
}
.lz-dash-cal-prompt-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #334155;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.lz-dash-cal-prompt .lz-dash-cal-list { margin: 0; }
.lz-dash-cal-hover {
  position: fixed;
  z-index: 12100;
  width: min(320px, calc(100vw - 24px));
  max-height: min(50vh, 360px);
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.22);
  pointer-events: auto;
}
.lz-dash-cal-hover-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #312e81;
}
.lz-dash-cal-hover .lz-dash-cal-list { margin: 0; }
.lz-dash-cal-hover .lz-dash-cal-item { padding: 6px 0; }
.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);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.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;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.sf-exec-dash__hero-copy { min-width: 0; flex: 1 1 240px; }
.sf-exec-dash__hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex: 0 0 auto;
}
.sf-exec-dash__pdf-btn {
  background: #fff !important;
  color: #0f172a !important;
  border: 0 !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
}
.sf-exec-dash__pdf-btn:disabled {
  opacity: 0.72;
  cursor: wait;
}
.sf-exec-dash__pdf-status {
  margin: 0;
  font-size: 11px;
  color: rgba(248, 250, 252, 0.88);
  text-align: right;
  max-width: 240px;
  line-height: 1.35;
}
.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-grid--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.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__split { display: grid; gap: 4px; margin-top: 8px; }
.sf-exec-kpi__split div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sf-exec-kpi__split span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lz-muted);
}
.sf-exec-kpi__split strong { font-size: 16px; font-weight: 800; line-height: 1.2; color: var(--lz-text); }
.sf-exec-kpi__split div:last-child strong { color: #1d4ed8; }
.sf-exec-kpi--find { border-top: 3px solid #dc2626; }
.sf-exec-kpi--total { border-top: 3px solid #059669; }
.sf-exec-kpi--ltifr { border-top: 3px solid #b91c1c; background: linear-gradient(180deg, #fff 0%, #fef2f2 100%); }
.sf-ltifr-strip {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #fecaca;
  background: linear-gradient(135deg, #fff 0%, #fef2f2 100%);
}
.sf-ltifr-strip__main { margin-bottom: 12px; }
.sf-ltifr-strip__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #991b1b;
}
.sf-ltifr-strip__value {
  display: block;
  margin-top: 4px;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
  color: #7f1d1d;
}
.sf-ltifr-strip__formula {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
}
.sf-ltifr-strip__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.sf-ltifr-strip__meta strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}
.sf-ltifr-strip__meta span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--lz-muted);
  font-weight: 600;
}
.sf-ltifr-strip__note { margin: 0; }
.sf-site-cover-strip {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #a7f3d0;
  background: linear-gradient(135deg, #fff 0%, #ecfdf5 100%);
}
.sf-site-cover-strip__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.sf-site-cover-strip__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #047857;
}
.sf-site-cover-strip__value {
  display: block;
  margin-top: 4px;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
  color: #064e3b;
}
.sf-site-cover-strip__formula {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
}
.sf-site-cover-strip__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.sf-site-cover-strip__meta strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}
.sf-site-cover-strip__meta span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--lz-muted);
  font-weight: 600;
}
.sf-site-cover-strip__note { margin: 0 0 10px; }
.sf-site-cover-table-wrap { max-height: 220px; overflow: auto; }
.sf-photo-strip {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(135deg, #fff 0%, #eff6ff 100%);
}
.sf-photo-strip__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1d4ed8;
}
.sf-photo-strip__value {
  display: block;
  margin-top: 4px;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
  color: #1e3a8a;
}
.sf-photo-strip__formula {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
}
.sf-photo-strip__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.sf-photo-strip__meta strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}
.sf-photo-strip__meta span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--lz-muted);
  font-weight: 600;
}
.sf-inspector-photo-panel {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
}
.sf-inspector-photo-panel h4 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0f172a;
}
.sf-inspector-photo-panel .feed-meta { margin: 0 0 10px; }
.sf-insp-photo-chart {
  min-height: 148px;
  max-height: 280px;
  margin: 8px 0 12px;
}
.sf-insp-pair {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.25;
}
.sf-insp-pair__now { font-weight: 700; color: #0f172a; }
.sf-insp-pair__prior { font-size: 11px; color: #64748b; }
.sf-insp-avg-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 88px;
}
.sf-insp-mini-bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sf-insp-mini-bar {
  display: block;
  height: 5px;
  min-width: 4px;
  border-radius: 999px;
}
.sf-insp-mini-bar--now { background: #2563eb; }
.sf-insp-mini-bar--prior { background: #f59e0b; }
.sf-insp-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sf-insp-swatch {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 auto;
}
.sf-insp-avg-cell .sf-insp-swatch { margin-right: 2px; }
.sf-inspector-photo-panel-head h4 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sf-insp-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 14px;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
.sf-insp-edit-btn:hover,
.sf-insp-edit-btn[aria-expanded="true"] {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}
.sf-insp-picker {
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #f8fbff;
}
.sf-insp-picker.hidden { display: none; }
.sf-insp-picker__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px 12px;
  margin: 8px 0;
}
.sf-insp-picker__row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
}
.sf-insp-picker__actions { display: flex; gap: 8px; }
@media (max-width: 1100px) {
  .sf-exec-kpi-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sf-ltifr-strip__meta,
  .sf-site-cover-strip__meta,
  .sf-photo-strip__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.sf-exec-panel { padding: 16px 18px; }
.sf-exec-panel--findings { margin-bottom: 4px; }
.sf-exec-panel--scorecard { margin-bottom: 4px; }
.sf-wsh-score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.sf-wsh-score {
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #fff;
}
.sf-wsh-score--ohs { border-top: 3px solid #ea580c; }
.sf-wsh-score--cpms { border-top: 3px solid #059669; }
.sf-wsh-score h4 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f172a;
}
.sf-wsh-score__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.sf-wsh-score__stats strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  color: #0f172a;
}
.sf-wsh-score__stats span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--lz-muted);
  font-weight: 600;
}
.sf-exec-chart-wrap--bars {
  min-height: 260px;
}
@media (max-width: 900px) {
  .sf-wsh-score-grid { grid-template-columns: 1fr; }
  .sf-wsh-score__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.sf-findings-format-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 10px;
}
.sf-findings-format-panel {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  padding: 14px 16px 16px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  min-width: 0;
}
.sf-findings-format-panel--ohs { border-top: 3px solid #ea580c; }
.sf-findings-format-panel--cpms { border-top: 3px solid #059669; }
.sf-findings-format-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.sf-findings-format-panel__head h4 { margin: 0 0 2px; font-size: 16px; font-weight: 800; letter-spacing: 0.02em; }
.sf-findings-format-panel__head .feed-meta { margin: 0; }
.sf-findings-format-count {
  flex: 0 0 auto;
  min-width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  background: #0f172a;
  color: #fff;
}
.sf-findings-format-panel--ohs .sf-findings-format-count { background: #c2410c; }
.sf-findings-format-panel--cpms .sf-findings-format-count { background: #047857; }
.sf-findings-summary-block--primary { margin: 0 0 12px; }
.sf-findings-summary-block--primary h4,
.sf-findings-summary-block--secondary h4 {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--lz-muted);
}
.sf-findings-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.sf-findings-summary-block--secondary {
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
}
.sf-findings-summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sf-findings-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  color: var(--lz-text);
  line-height: 1.2;
}
.sf-findings-chip--btn {
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.sf-findings-chip--btn:hover {
  border-color: rgba(15, 23, 42, 0.35);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}
.sf-findings-chip--btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.sf-findings-chip.is-active {
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.18);
  border-color: rgba(15, 23, 42, 0.55);
  transform: translateY(-1px);
}
.sf-findings-chip--ohs.is-active { box-shadow: 0 0 0 2px rgba(194, 65, 12, 0.28); }
.sf-findings-chip--cpms.is-active { box-shadow: 0 0 0 2px rgba(4, 120, 87, 0.28); }
.sf-findings-chip--warn.is-active { box-shadow: 0 0 0 2px rgba(180, 83, 9, 0.3); }
.sf-findings-chip--good.is-active { box-shadow: 0 0 0 2px rgba(4, 120, 87, 0.3); }
.sf-findings-chip--bad.is-active { box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.28); }
.sf-findings-filter-hint { margin: 0 0 8px; }
.sf-findings-chip strong {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}
.sf-findings-chip__label { color: #475569; }
.sf-findings-chip--good { background: #ecfdf5; border-color: #a7f3d0; }
.sf-findings-chip--good strong { color: #047857; }
.sf-findings-chip--bad { background: #fef2f2; border-color: #fecaca; }
.sf-findings-chip--bad strong { color: #b91c1c; }
.sf-findings-chip--warn { background: #fffbeb; border-color: #fde68a; }
.sf-findings-chip--warn strong { color: #b45309; }
.sf-findings-chip--ohs { background: #fff7ed; border-color: #fed7aa; }
.sf-findings-chip--cpms { background: #ecfdf5; border-color: #a7f3d0; }
.sf-findings-empty,
.sf-findings-empty-panel,
.sf-findings-more { margin: 0 0 4px; }
.sf-findings-table-wrap { margin-top: 4px; }
.sf-findings-table td { vertical-align: top; }
.sf-findings-td-date { white-space: nowrap; color: #64748b; font-size: 12px; }
.sf-findings-td-text { max-width: 260px; white-space: normal; color: #334155; }
.sf-findings-type-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 11px;
  font-weight: 700;
}
.sf-findings-type-pill--cpms { background: #ecfdf5; color: #065f46; }
@media (max-width: 1100px) {
  .sf-findings-format-grid { grid-template-columns: 1fr; }
  .sf-findings-secondary-grid { grid-template-columns: 1fr; }
}
.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;
  overflow: hidden;
  z-index: 0;
}
.sf-exec-chart-wrap--trend { height: 260px; }
.sf-exec-dash[data-wsh-period="last_3_years"] .sf-exec-chart-wrap--trend { height: 320px; }
.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-exec-dash__hero-actions { align-items: stretch; width: 100%; }
  .sf-exec-dash__pdf-status { text-align: left; max-width: none; }
}

.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__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}
.sf-wsh-insp-toolbar .sf-dash-tab-nav { margin: 0; }
.sf-wsh-dept-tabs { margin: 0; }
.sf-wsh-dept-tabs .perm-tab-btn { min-width: 72px; text-align: center; }
.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;
  position: relative;
  z-index: 2;
}
.lz-chart-toolbar--intel {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 16px;
}
.lz-chart-toolbar-group--intel-slider {
  flex: 0 0 260px;
  width: 260px;
  max-width: 260px;
  min-width: 200px;
}
.sf-intel-slider {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sf-intel-slider__range {
  width: 100%;
  height: 28px;
  margin: 0;
  accent-color: #2563eb;
  cursor: grab;
  touch-action: pan-y;
}
.sf-intel-slider__range:active { cursor: grabbing; }
.sf-intel-slider__ticks {
  display: flex;
  justify-content: space-between;
  gap: 2px;
}
.sf-intel-slider__tick {
  flex: 1 1 0;
  min-width: 0;
  padding: 2px 2px 0;
  border: 0;
  background: transparent;
  color: var(--lz-muted, #64748b);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
}
.sf-intel-slider__tick.is-active {
  color: #1d4ed8;
  font-weight: 800;
}
@media (max-width: 900px) {
  .lz-chart-toolbar--intel { display: flex; }
  .lz-chart-toolbar-group--intel-slider {
    flex: 1 1 100%;
    width: 100%;
    max-width: 320px;
  }
}
.sf-exec-shared-filters {
  position: relative;
  z-index: 3;
  margin: 0 0 4px;
}
.sf-exec-shared-filters .lz-chart-toolbar { margin-top: 0; }
.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;
  position: relative;
  z-index: 1;
  cursor: pointer;
  pointer-events: auto;
}
.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"] .people-tab-row .biz-tab-btn.is-active,
body[data-lz-module="site-workers"] .people-tab-row .biz-tab-btn.is-active {
  background: transparent;
  border-color: transparent;
  color: var(--lz-red, #c62828);
}
body[data-lz-module="people"] .people-settings-card--dept,
body[data-lz-module="site-workers"] .people-settings-card--dept {
  background: linear-gradient(145deg, #fff 0%, #fff7ed 100%);
  border-color: #fed7aa;
}
body[data-lz-module="people"] .people-settings-card--pos,
body[data-lz-module="site-workers"] .people-settings-card--pos {
  background: linear-gradient(145deg, #fff 0%, #eff6ff 100%);
  border-color: #bfdbfe;
}
body[data-lz-module="people"] .people-settings-card--leave,
body[data-lz-module="site-workers"] .people-settings-card--leave {
  background: linear-gradient(145deg, #fff 0%, #ecfdf5 100%);
  border-color: #a7f3d0;
}
.people-settings-add-form { margin-bottom: 12px; }
.people-kind-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
}
.people-kind-badge--office { background: #eef2ff; color: #3730a3; }
.people-kind-badge--field { background: #fff7ed; color: #9a3412; }
.people-master-item-meta {
  font-size: 12px;
  color: var(--lz-muted, #64748b);
  font-weight: 500;
}
.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-unassigned-card .pg-search-input { margin: 0 0 0.75rem; max-width: 24rem; }
.dept-unassigned-table select.dept-unassigned-add { min-width: 9rem; }
.dept-assign-card--CONSULTANT .dept-field-label { color: #0f766e; }
.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; }
.ib-month-toolbar { align-items: center; gap: 14px; }
.ib-month-lbl { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--lz-muted); }
.ib-month-lbl .pg-search-input { max-width: 180px; }
.ib-month-status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}
.ib-net-box {
  margin: 14px 0 18px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #fff 70%);
}
.ib-net-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #92400e;
  margin-bottom: 6px;
}
.ib-net-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}
.ib-section-title {
  margin: 22px 0 6px;
  font-size: 15px;
}
.ib-summary-total td { background: #fffbeb; }

/* 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: 8px 10px 6px;
  border-bottom: 1px solid #f1f5f9;
}
.gps-monitor-panel-title { margin: 0; font-size: 14px; color: var(--lz-red); }
.gps-monitor-panel-sub { margin: 1px 0 0; font-size: 11px; }
.gps-monitor-panel-search { padding: 6px 10px; border-bottom: 1px solid #f1f5f9; }
.gps-team-search {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
}
.gps-monitor-team-list {
  flex: 1 1 auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px;
  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: 2px;
  width: 100%;
  text-align: left;
  padding: 6px 8px;
  margin-bottom: 3px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
/* Soft tints by nature of work — keeps text readable, easy to scan. */
.gps-team-row--nature-term-contract {
  background: linear-gradient(160deg, #eef6ff 0%, #f8fbff 100%);
  border-color: #c7ddf7;
}
.gps-team-row--nature-maintenance {
  background: linear-gradient(160deg, #fff8eb 0%, #fffdf8 100%);
  border-color: #f0d7a8;
}
.gps-team-row--nature-valve-ops {
  background: linear-gradient(160deg, #eefbf8 0%, #f7fffd 100%);
  border-color: #b7e4d8;
}
.gps-team-row--nature-ug-store,
.gps-team-row--nature-ag-store {
  background: linear-gradient(160deg, #f3f5f8 0%, #fafbfc 100%);
  border-color: #d0d7e2;
}
.gps-team-row--nature-new-condo {
  background: linear-gradient(160deg, #eefbf2 0%, #f7fdf9 100%);
  border-color: #b8e6c8;
}
.gps-team-row--nature-aa-private {
  background: linear-gradient(160deg, #fff4ef 0%, #fffaf7 100%);
  border-color: #f0cfc0;
}
.gps-team-row--nature-ce-term-contract {
  background: linear-gradient(160deg, #fffbeb 0%, #fffef8 100%);
  border-color: #f0dfa0;
}
.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: 1px; min-width: 0; }
.gps-team-row-code {
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gps-team-row-loc {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gps-team-row-nea { display: block; margin-top: 1px; }
.gps-team-row-nea .gps-env-chips { gap: 3px; flex-wrap: wrap; overflow: visible; }
.gps-team-row-nea .gps-env-chip {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 5px;
  white-space: nowrap;
}
.gps-team-row-nea .gps-env-empty { margin: 0; font-size: 10px; }
.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-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.gps-team-detail-close {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gps-team-detail-close:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}
.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-maps-link {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.gps-maps-link:hover { color: #1e40af; }
.gps-open-maps-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin: 8px 0 10px;
  padding: 10px 12px;
  box-sizing: border-box;
  border-radius: 10px;
  background: var(--lz-red, #b91c1c);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.gps-open-maps-btn:hover { background: #991b1b; color: #fff; }
.gps-open-maps-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.gps-map-info-dir { margin-top: 8px; }
.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%; }
}
/* Landscape tablets: a roomier list panel that still keeps several rows in view. */
@media (min-width: 900px) and (max-height: 900px) and (orientation: landscape) {
  .gps-monitor-layout { grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); }
}
.gps-barricade-pane .gps-monitor-team-detail { max-height: 46%; }
.gps-barricade-pane .gps-barricade-list { min-height: 160px; }
.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; }

/* Site map — Site Assets tab (water barricades + excavators share the tab) */
.gps-asset-views {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
  gap: 8px;
}
.gps-asset-views.hidden { display: none; }
.gps-monitor-map-controls--right {
  left: auto;
  right: 12px;
  top: 12px;
  align-items: flex-end;
}
.gps-asset-layers {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.gps-asset-layers-btn {
  min-width: 44px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.gps-asset-layers-panel {
  min-width: 200px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gps-asset-layers-panel.hidden { display: none; }
.gps-asset-layer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  user-select: none;
}
.gps-asset-layer-row input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--lz-red, #dc2626);
  cursor: pointer;
}
.gps-asset-add-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
}
.gps-asset-add-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  min-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
}
.gps-asset-add-menu.hidden { display: none; }
.gps-asset-add-option {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  white-space: nowrap;
}
.gps-asset-add-option:hover {
  background: #fef2f2;
  color: #b91c1c;
}
.gps-asset-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 2px;
}
.gps-asset-chip {
  padding: 6px 14px;
  border: 1px solid var(--lz-border, #e2e8f0);
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-height: 36px;
}
.gps-asset-chip:hover {
  border-color: #94a3b8;
  color: #0f172a;
}
.gps-asset-chip.is-active {
  background: var(--lz-red, #dc2626);
  border-color: var(--lz-red, #dc2626);
  color: #fff;
}
.gps-asset-map-hint {
  margin: 0;
  padding-left: 4px;
  font-size: 12px;
  color: #64748b;
}
.gps-asset-row {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.gps-asset-row:hover { border-color: #fca5a5; }
.gps-asset-row.is-selected {
  border-color: var(--lz-red, #dc2626);
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.25);
}
.gps-asset-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}
.gps-asset-group:last-child { margin-bottom: 0; }
.gps-asset-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
  color: #0f172a;
  transition: border-color .15s, background .15s;
}
.gps-asset-group-head:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}
.gps-asset-group--exc .gps-asset-group-head {
  background: #fffbeb;
  border-color: #fde68a;
}
.gps-asset-group--exc .gps-asset-group-head:hover {
  background: #fef3c7;
  border-color: #fcd34d;
}
.gps-asset-group--wb .gps-asset-group-head {
  background: #f0f9ff;
  border-color: #bae6fd;
}
.gps-asset-group--wb .gps-asset-group-head:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
}
/* Deployed — strong emerald so it stands apart from purple stores / amber-blue types */
.gps-asset-group--deployed > .gps-asset-group-head {
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #34d399;
  border-left: 4px solid #059669;
  box-shadow: 0 1px 0 rgba(5, 150, 105, 0.08);
}
.gps-asset-group--deployed > .gps-asset-group-head:hover {
  background: linear-gradient(180deg, #d1fae5 0%, #a7f3d0 100%);
  border-color: #10b981;
}
.gps-asset-group--deployed.is-open > .gps-asset-group-head {
  border-color: #059669;
  background: linear-gradient(180deg, #d1fae5 0%, #a7f3d0 100%);
}
.gps-asset-group--deployed > .gps-asset-group-head .gps-asset-group-title {
  color: #065f46;
}
.gps-asset-group--deployed > .gps-asset-group-head .gps-asset-group-count {
  background: #059669;
  border-color: #047857;
  color: #fff;
}
.gps-asset-group--deployed > .gps-asset-group-head .gps-asset-group-chevron {
  border-color: #047857;
}
/* Stores — violet, distinct from Deployed emerald */
.gps-asset-group--store > .gps-asset-group-head {
  background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 100%);
  border-color: #c4b5fd;
  border-left: 4px solid #7c3aed;
}
.gps-asset-group--store > .gps-asset-group-head:hover {
  background: linear-gradient(180deg, #ede9fe 0%, #ddd6fe 100%);
  border-color: #a78bfa;
}
.gps-asset-group--store.is-open > .gps-asset-group-head {
  border-color: #7c3aed;
  background: linear-gradient(180deg, #ede9fe 0%, #ddd6fe 100%);
}
.gps-asset-group--store > .gps-asset-group-head .gps-asset-group-title {
  color: #5b21b6;
}
.gps-asset-group--store > .gps-asset-group-head .gps-asset-group-count {
  background: #7c3aed;
  border-color: #6d28d9;
  color: #fff;
}
.gps-asset-group--store > .gps-asset-group-head .gps-asset-group-chevron {
  border-color: #6d28d9;
}
.gps-asset-group-head-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.gps-asset-group-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
}
.gps-asset-group-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 100%;
}
.gps-asset-group-summary-ex,
.gps-asset-group-summary-wb {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gps-asset-group-summary-ex {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}
.gps-asset-group-summary-wb {
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #7dd3fc;
}
.gps-asset-at-store {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid #c4b5fd;
}
.gps-asset-group-empty {
  margin: 0;
  padding: 6px 4px 2px;
}
.gps-asset-store-move {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0 4px;
}
.gps-asset-store-move .lz-field-label {
  margin: 0;
}
.gps-asset-store-move-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.gps-asset-store-move-row .lz-field-select {
  flex: 1 1 auto;
  min-width: 0;
}
.gps-asset-store-move-row .wb-detail-action {
  flex: 0 0 auto;
  margin: 0;
  width: auto;
}
.wb-store-pick {
  position: relative;
  flex: 0 0 auto;
}
.wb-store-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 40;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}
.wb-store-menu.hidden { display: none; }
.wb-store-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
}
.wb-store-menu-item:hover {
  background: #f1f5f9;
}
.wb-store-pins {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  flex: 1 1 100%;
}
.wb-store-pins-label {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #64748b;
  text-transform: uppercase;
}
.wb-store-pins-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.wb-store-pin-btn {
  margin: 0;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
}
.wb-store-pin-btn.is-active,
.wb-store-pin-btn[aria-pressed="true"] {
  border-color: #0f766e;
  background: #ecfdf5;
  color: #0f766e;
  box-shadow: inset 0 0 0 1px #0f766e;
}
.wb-loc-row .wb-store-pins {
  order: 3;
}
.gps-asset-group-count {
  flex: 0 0 auto;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gps-asset-group-chevron {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(-45deg);
  transition: transform .15s;
  margin-left: 2px;
}
.gps-asset-group.is-open .gps-asset-group-chevron {
  transform: rotate(45deg);
  margin-top: -2px;
}
.gps-asset-group-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 4px;
}
.gps-asset-group-body[hidden] { display: none; }
.gps-asset-subgroup {
  margin-bottom: 0;
  gap: 4px;
}
.gps-asset-subgroup-head {
  padding: 8px 10px;
  border-radius: 8px;
}
.gps-asset-subgroup .gps-asset-group-title {
  font-size: 12px;
  font-weight: 700;
}
.gps-asset-subgroup .gps-asset-group-body {
  padding-left: 6px;
}
.gps-asset-group--deployed > .gps-asset-group-body > .gps-asset-subgroup,
.gps-asset-group--store > .gps-asset-group-body > .gps-asset-subgroup {
  margin-top: 2px;
}
/* Excavator map marker — unit code rather than a count. */
.gps-exc-marker {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px 3px 5px;
  border-radius: 8px;
  background: #facc15;
  border: 2px solid #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
  cursor: pointer;
  white-space: nowrap;
}
.gps-exc-marker.is-selected { border-color: var(--lz-red, #dc2626); transform: scale(1.08); }
.gps-exc-marker-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  color: #854d0e;
}
.gps-exc-icon {
  display: block;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}
.gps-exc-unit-tag .gps-exc-icon {
  display: inline-block;
  vertical-align: -2px;
  width: 12px;
  height: 12px;
}
.gps-exc-marker-unit { font-size: 11px; font-weight: 700; color: #0f172a; line-height: 1; }
.gps-exc-unit-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: #fef3c7;
  color: #854d0e;
  font-size: 11px;
  font-weight: 700;
}
/* One chip per machine so the crew can see what is already out. */
.gps-exc-units {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}
.gps-exc-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 6px;
  min-height: 52px;
  border: 1px solid var(--lz-border, #e2e8f0);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.gps-exc-unit-code { font-size: 14px; font-weight: 700; color: #0f172a; }
.gps-exc-unit-state { font-size: 10px; color: #64748b; }
.gps-exc-unit.is-selected {
  border-color: var(--lz-red, #dc2626);
  box-shadow: inset 0 0 0 1px var(--lz-red, #dc2626);
  background: #fef2f2;
}
.gps-exc-unit.is-out {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
}
.gps-exc-unit.is-store {
  border-color: #86efac;
  background: #f0fdf4;
}
.gps-exc-unit.is-store .gps-exc-unit-state { color: #166534; }
.gps-asset-kind {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: 20px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.gps-asset-kind--wb { background: #e0f2fe; color: #075985; }
.gps-asset-kind--exc { background: #fef3c7; color: #854d0e; }
.gps-monitor-tabs { margin: 0 0 8px; padding: 0 2px; flex: 0 0 auto; }
.gps-teams-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 0 4px 8px;
  flex: 0 0 auto;
}
.gps-teams-toolbar .gps-nea-switch {
  margin-right: 0;
  font-size: 12.5px;
}
.gps-teams-site-count {
  font-size: 12.5px;
  color: #475569;
}
.gps-monitor-main.aln-main-with-tabs {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}
.gps-barricade-pane.section-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}
.gps-barricade-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px 10px 4px;
  flex: 0 0 auto;
}
.gps-barricade-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  color: #334155;
}
.gps-barricade-chip--red { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.gps-barricade-chip--white { background: #fff; border-color: #cbd5e1; color: #0f172a; }
/* Panel is never wider than ~360px, so title and buttons get their own rows. */
.gps-barricade-pane .gps-monitor-panel-head { flex-direction: column; align-items: stretch; gap: 8px; }
.gps-barricade-panel-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gps-barricade-panel-actions .btn { min-height: 40px; }
.wb-detail-action { width: 100%; min-height: 44px; margin-bottom: 10px; }
.gps-barricade-list { gap: 6px; padding: 8px; }
.gps-barricade-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.gps-barricade-item:hover { border-color: #fca5a5; }
.gps-barricade-item.is-selected {
  border-color: var(--lz-red, #dc2626);
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.25);
}
.gps-barricade-item-addr {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 4px;
}
.gps-barricade-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  line-height: 1;
  margin-bottom: 4px;
}
/* Shared chip metrics so kind / qty / contract / team sit on one baseline. */
.gps-barricade-item-meta > .gps-asset-kind,
.gps-barricade-item-meta > .gps-barricade-qty-red,
.gps-barricade-item-meta > .gps-barricade-qty-white,
.gps-barricade-item-meta > .gps-barricade-contract,
.gps-barricade-item-meta > .gps-barricade-source,
.gps-barricade-item-meta > .gps-barricade-partial,
.gps-barricade-item-meta > .gps-asset-days {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: 20px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.gps-barricade-item-meta > .gps-asset-kind {
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.gps-barricade-qty-red {
  background: #fee2e2;
  color: #991b1b;
}
.gps-barricade-qty-white {
  background: #f8fafc;
  color: #334155;
  border-color: #cbd5e1;
}
.gps-barricade-item-meta > .gps-barricade-contract {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
  cursor: default;
}
.gps-barricade-source {
  background: #f1f5f9;
  color: #475569;
}
.gps-barricade-partial {
  background: #fef3c7;
  color: #92400e;
}
.gps-asset-days {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
  font-weight: 700;
}
.gps-barricade-item-who { font-size: 11px; color: #64748b; line-height: 1.35; }
.wb-rounds { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.wb-round {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 4px 8px;
  align-items: baseline;
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 12px;
}
.wb-round-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0f172a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.wb-round-qty { font-weight: 600; color: #0f172a; }
.wb-round-when { color: #64748b; white-space: nowrap; }
.wb-round-who { grid-column: 2 / -1; color: #64748b; }
.gps-barricade-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.gps-barricade-status {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 2px 6px;
  border-radius: 4px;
  flex: 0 0 auto;
}
.gps-barricade-status--active { background: #dcfce7; color: #166534; }
.gps-barricade-status--inactive { background: #f1f5f9; color: #475569; }
.gps-barricade-dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  margin: 0 0 10px;
  font-size: 12px;
}
.gps-barricade-dl dt { margin: 0; color: #64748b; font-weight: 500; }
.gps-barricade-dl dd { margin: 0; font-weight: 600; color: #0f172a; }
/* Stacked so each phase gets the full panel width for its own photo grid. */
.gps-barricade-photos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.gps-barricade-photo {
  min-height: 72px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  width: 100%;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  cursor: zoom-in;
}
.gps-barricade-photo:hover { border-color: #94a3b8; }
.gps-barricade-photo img { width: 100%; height: 120px; object-fit: cover; display: block; pointer-events: none; }
.gps-barricade-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 6px;
}
.gps-barricade-photo-grid .gps-barricade-photo { min-height: 0; }
.gps-barricade-photo-grid .gps-barricade-photo img { height: 84px; }
.gps-photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.gps-photo-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(15, 23, 42, 0.88);
  cursor: pointer;
}
.gps-photo-lightbox-dialog {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 960px);
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gps-photo-lightbox-dialog img {
  max-width: min(96vw, 960px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  background: #0f172a;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}
.gps-photo-lightbox-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.gps-photo-lightbox-close:hover { background: rgba(255, 255, 255, 0.28); }
.gps-photo-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.gps-photo-lightbox-nav:hover { background: rgba(255, 255, 255, 0.28); }
.gps-photo-lightbox-prev { left: -56px; }
.gps-photo-lightbox-next { right: -56px; }
.gps-photo-lightbox-count {
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  margin: 0;
  color: #e2e8f0;
  font-size: 12px;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .gps-photo-lightbox-prev { left: 4px; }
  .gps-photo-lightbox-next { right: 4px; }
  .gps-photo-lightbox-close { top: 4px; right: 4px; }
}
.gps-barricade-marker {
  display: flex;
  gap: 2px;
  padding: 2px;
  border-radius: 8px;
  background: #fff;
  border: 2px solid #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
  cursor: pointer;
}
.gps-barricade-marker.is-selected { border-color: var(--lz-red, #dc2626); transform: scale(1.08); }
/* Both chips carry the same border and height so their numbers line up. */
.gps-barricade-marker-red,
.gps-barricade-marker-white {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 5px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.gps-barricade-marker-red { background: #dc2626; color: #fff; border-color: #dc2626; }
.gps-barricade-marker-white { background: #f8fafc; color: #0f172a; border-color: #94a3b8; }
/* Deploy / collect modal — stepped form built on the shared .lz-field controls. */
.gps-barricade-form { display: flex; flex-direction: column; gap: 14px; }
.wb-head { align-items: flex-start; gap: 12px; }
.wb-head h3 { margin: 0; }
.wb-head-sub { margin: 2px 0 0; }
.wb-close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.wb-close:hover { background: #f1f5f9; color: #0f172a; }
.wb-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fcfdff;
}
.wb-step-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475569;
}
.wb-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--lz-red, #dc2626);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.wb-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wb-optional { font-weight: 500; letter-spacing: 0; text-transform: none; color: #94a3b8; }
.wb-status { margin: 0; min-height: 18px; font-size: 13px; color: #475569; }
.wb-loc-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.wb-gps-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; }
.wb-search-wrap { position: relative; flex: 1 1 220px; min-width: 190px; }
.wb-addr {
  margin: 0;
  padding: 10px 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  color: #64748b;
}
.wb-addr.is-set {
  border-style: solid;
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
  font-weight: 600;
}
.wb-qty-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wb-qty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}
.wb-qty--red { border-color: #fecaca; background: #fef2f2; }
.wb-qty-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475569;
}
.wb-qty--red .wb-qty-label { color: #991b1b; }
.wb-qty-control { display: flex; align-items: center; gap: 8px; }
.wb-qty-btn {
  width: 38px;
  height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.wb-qty-btn:hover { background: #f1f5f9; border-color: #94a3b8; }
.wb-qty-btn:active { transform: scale(0.94); }
.wb-qty-input {
  width: 68px;
  padding: 8px 4px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
}
.wb-qty-input::-webkit-outer-spin-button,
.wb-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wb-qty-input:focus {
  outline: none;
  border-color: var(--lz-red, #dc2626);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.12);
}
.wb-qty-avail { font-size: 11px; color: #64748b; }
.wb-collect-all { align-self: flex-start; }
.wb-collect-outcome { padding: 8px 12px; }
.wb-photo { position: relative; display: flex; flex-direction: column; gap: 8px; }
.wb-photo-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.wb-photo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}
.wb-photo-btn:hover { border-color: var(--lz-red, #dc2626); background: #fff5f5; color: #0f172a; }
.wb-photo-input:focus-visible + .wb-photo-btn {
  border-color: var(--lz-red, #dc2626);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.12);
}
.wb-photo.is-set .wb-photo-btn {
  border-style: solid;
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}
.wb-photo-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-photo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wb-photo-btn--alt { border-style: solid; }
.wb-photo-count { margin: 0; font-size: 12px; }
.wb-photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
}
.wb-photo-preview:empty { display: none; }
.wb-thumb {
  position: relative;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.wb-thumb img { display: block; width: 100%; height: 88px; object-fit: cover; }
.wb-thumb-x {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.wb-thumb-x:hover { background: var(--lz-red, #dc2626); }
/* Upload state sits on the thumbnail so the crew can keep filling the form. */
.wb-thumb--uploading img { opacity: 0.55; }
.wb-thumb-state {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-top-color: var(--lz-red, #dc2626);
  border-radius: 50%;
  animation: wb-spin 0.8s linear infinite;
}
@keyframes wb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wb-thumb-state { animation-duration: 2.4s; } }
.wb-thumb--done { border-color: #86efac; }
.wb-thumb--error { border-color: var(--lz-red, #dc2626); }
.wb-thumb--error img { opacity: 0.4; }
.wb-thumb-retry {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  padding: 3px 0;
  border: 0;
  border-radius: 6px;
  background: var(--lz-red, #dc2626);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.wb-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}
.wb-summary-addr { flex: 1 1 100%; font-size: 14px; font-weight: 600; color: #0f172a; }
.wb-summary-chip {
  padding: 3px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}
.wb-summary-chip--red { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.wb-summary-chip--white { border-color: #cbd5e1; }
.gps-barricade-pin-map {
  width: 100%;
  height: 220px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin: 8px 0;
  background: #f1f5f9;
}
.gps-barricade-hits {
  position: absolute;
  z-index: 5;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 200px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}
.gps-barricade-hit {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  background: transparent;
  padding: 8px 10px;
  cursor: pointer;
}
.gps-barricade-hit:hover { background: #f8fafc; }
.gps-barricade-hit-title { display: block; font-size: 13px; font-weight: 600; }
.gps-barricade-hit-sub { display: block; font-size: 11px; color: #64748b; }
.gps-barricade-hit--empty { padding: 10px; font-size: 12px; color: #64748b; }
.gps-barricade-photo-preview img {
  display: block;
  max-width: 100%;
  max-height: 150px;
  border-radius: 10px;
}
.gps-barricade-pin { font-size: 22px; line-height: 1; }
/* Site map settings — which contracts appear in the barricade dropdown.
   Scoped under the list so these styles do not override list-row contract chips. */
.gps-barricade-contract-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
  margin-top: 10px;
  max-height: 460px;
  overflow: auto;
}
.gps-barricade-contract-list .gps-barricade-contract {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: auto;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  white-space: normal;
}
.gps-barricade-contract-list .gps-barricade-contract:hover { border-color: #94a3b8; }
.gps-barricade-contract-list .gps-barricade-contract.is-on { border-color: #86efac; background: #f0fdf4; }
.gps-barricade-contract-list .gps-barricade-contract input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; }
.gps-barricade-contract-code { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: #0f172a; }
.gps-barricade-contract-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: #64748b;
}
@media (max-width: 600px) {
  .gps-barricade-contract-list { grid-template-columns: 1fr; max-height: none; }
}
#btnGpsBarricadeHistory.is-active {
  background: var(--lz-red, #dc2626);
  color: #fff;
  border-color: var(--lz-red, #dc2626);
}
@media (max-width: 767px) {
  .gps-barricade-photos { grid-template-columns: 1fr; }
  .gps-barricade-pin-map { height: 180px; }
  .wb-grid-2 { grid-template-columns: 1fr; }
  .wb-loc-row { flex-direction: column; align-items: stretch; }
  .wb-gps-btn { width: 100%; justify-content: center; }
  .wb-step { padding: 12px 10px; }
}
/* Comfortable touch targets on iPad. */
.wb-photo-btn, .wb-gps-btn { min-height: 44px; }
.wb-qty-btn { width: 44px; height: 44px; }
/* Keep the save row reachable if the form ever does overflow. */
.gps-barricade-modal .lz-modal-actions {
  position: sticky;
  bottom: -18px;
  z-index: 2;
  padding: 10px 0 0;
  background: var(--lz-card, #fff);
}
/*
 * Landscape tablets and desktops: the map column sits beside the data columns so
 * the whole deploy form lands in one screen without scrolling.
 */
@media (min-width: 900px) {
  .gps-barricade-modal { width: min(1080px, 100%); max-height: calc(100dvh - 24px); }
  /* Deploy has a map to place, so it earns the second column; collect stays narrow. */
  #gpsBarricadeDeployForm.gps-barricade-form,
  #gpsExcavatorPlaceForm.gps-barricade-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    align-content: start;
  }
  #gpsBarricadeDeployForm .wb-step--where,
  #gpsExcavatorPlaceForm .wb-step--where { grid-column: 1; grid-row: 1 / span 2; }
  #gpsBarricadeDeployForm .wb-step--qty,
  #gpsExcavatorPlaceForm .wb-step--qty { grid-column: 2; grid-row: 1; }
  #gpsBarricadeDeployForm .wb-step--details,
  #gpsExcavatorPlaceForm .wb-step--details { grid-column: 2; grid-row: 2; }
  #gpsBarricadeDeployForm .wb-status,
  #gpsBarricadeDeployForm .lz-modal-actions,
  #gpsExcavatorPlaceForm .wb-status,
  #gpsExcavatorPlaceForm .lz-modal-actions { grid-column: 1 / -1; }
  #gpsBarricadeCollectModal .gps-barricade-modal,
  #gpsExcavatorRemoveModal .gps-barricade-modal { width: min(560px, 100%); }
  /* Map takes whatever height the right-hand column ends up needing. */
  .gps-barricade-modal .gps-barricade-pin-map {
    flex: 1 1 auto;
    height: auto;
    min-height: 200px;
    margin: 0;
  }
}
/* Short landscape screens (iPad, laptops): trim the padding rather than scroll. */
@media (min-width: 900px) and (max-height: 860px) {
  .gps-barricade-modal .wb-step { padding: 10px 12px; gap: 8px; }
  .gps-barricade-modal .gps-barricade-form { gap: 10px; }
  .gps-barricade-modal .wb-qty { padding: 8px; gap: 6px; }
  .gps-barricade-modal .wb-thumb img { height: 62px; }
  .gps-barricade-modal .wb-photo-preview {
    grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
  }
  .gps-barricade-modal .lz-field-textarea { min-height: 0; height: 48px; }
  .gps-barricade-modal .gps-barricade-pin-map { min-height: 170px; }
  /* Thirteen machine chips still have to fit beside the map. */
  .gps-barricade-modal .gps-exc-units {
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 6px;
  }
  .gps-barricade-modal .gps-exc-unit { min-height: 44px; padding: 5px 4px; }
  .gps-barricade-modal .gps-exc-unit-code { font-size: 13px; }
}
.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; }

/* —— Site Portal light colourful UI —— */
.portal-site-body {
  background:
    radial-gradient(1200px 480px at 8% -10%, rgba(56, 189, 248, 0.22), transparent 55%),
    radial-gradient(900px 420px at 92% 0%, rgba(251, 146, 60, 0.16), transparent 50%),
    radial-gradient(700px 380px at 70% 100%, rgba(248, 113, 113, 0.12), transparent 55%),
    linear-gradient(180deg, #eef6ff 0%, #f8fafc 42%, #fff7ed 100%);
  background-attachment: fixed;
  color: #0f172a;
}
.portal-site-body .portal-site-header {
  background: linear-gradient(90deg, #fff7f7 0%, #ffffff 45%, #eff6ff 100%);
  border-bottom: 2px solid #fecaca;
  box-shadow: 0 4px 16px rgba(185, 28, 28, 0.06);
}
.portal-site-body .portal-site-header-brand > strong {
  color: #991b1b;
  letter-spacing: -0.01em;
}
.portal-site-body .portal-site-tabs {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.88));
  border-bottom: 1px solid #e2e8f0;
  gap: 10px;
  padding: 10px 16px;
  backdrop-filter: blur(8px);
}
.portal-site-body .portal-site-tab {
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font-weight: 600;
  min-height: 38px;
  padding: 7px 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.portal-site-body .portal-site-tab:hover {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}
.portal-site-body .portal-site-tab.is-active {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border-color: #991b1b;
  color: #fff;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.28);
}
.portal-site-body .portal-site-tab[data-site-tab="safety"]:not(.is-active) {
  background: #ecfdf5;
  border-color: #86efac;
  color: #166534;
}
.portal-site-body .portal-site-tab[data-site-tab="projects"]:not(.is-active) {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}
.portal-site-body .portal-site-tab[data-site-tab="assets"]:not(.is-active) {
  background: #faf5ff;
  border-color: #d8b4fe;
  color: #6b21a8;
}
.portal-site-body .portal-site-main {
  gap: 18px;
  padding: 18px 16px 28px;
}
.portal-site-body .portal-site-list,
.portal-site-body .portal-site-detail {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.92) 100%);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.portal-site-body .portal-site-list {
  background: linear-gradient(165deg, #f0f9ff 0%, #ffffff 55%, #f8fafc 100%);
  border-color: #bae6fd;
}
.portal-site-body .portal-site-detail {
  background: linear-gradient(165deg, #fff7ed 0%, #ffffff 50%, #fefce8 100%);
  border-color: #fed7aa;
}
.portal-site-body .portal-site-list-head h2,
.portal-site-body .portal-site-list > h2,
.portal-site-body .portal-site-detail > h2 {
  color: #0f172a;
}
.portal-site-body .site-dr-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-color: #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.portal-site-body .site-dr-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  border-color: #94a3b8;
}
.portal-site-body .site-dr-card--today {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border-color: #34d399;
}
.portal-site-body .site-dr-card--submitted {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #93c5fd;
}
.portal-site-body .site-dr-card--yesterday,
.portal-site-body .site-dr-card--overdue {
  background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
  border-color: #fca5a5;
}
.portal-site-body .site-dr-card.is-active {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.16), 0 8px 18px rgba(185, 28, 28, 0.12);
  background: #fff;
}
.portal-site-body .section-card,
.portal-site-body .site-dr-section,
.portal-site-body .site-vo-section,
.portal-site-body .site-term-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.portal-site-body .site-trench-inline-section {
  background: linear-gradient(165deg, #fff1f2 0%, #ffffff 48%, #fff7ed 100%);
  border-color: #fecdd3;
}
.portal-site-body .site-term-section[data-term-key="special"] {
  background: linear-gradient(165deg, #eff6ff 0%, #ffffff 50%, #f0f9ff 100%);
  border-color: #bfdbfe;
}
.portal-site-body .site-term-mat-side {
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 40%, #f8fafc 100%);
  border-color: #86efac;
}
.portal-site-body .site-term-mat-preview-pane {
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 55%, #ffffff 100%);
  border-color: #93c5fd;
}
.portal-site-body .site-term-work-bar {
  background: linear-gradient(90deg, #fff7f7 0%, #ffffff 40%, #eff6ff 100%);
  border: 1px solid #fecaca;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
.portal-site-body .site-term-sub-tab {
  background: #fff;
  border-color: #cbd5e1;
}
.portal-site-body .site-term-sub-tab[data-term-tab="trench"]:not(.is-active) {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}
.portal-site-body .site-term-sub-tab[data-term-tab="photos"]:not(.is-active) {
  background: #fdf4ff;
  border-color: #e879f9;
  color: #a21caf;
}
.portal-site-body .site-term-sub-tab[data-term-tab="materials"]:not(.is-active) {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #047857;
}
.portal-site-body .site-term-sub-tab[data-term-tab="asbuilt"]:not(.is-active) {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}
.portal-site-body .site-term-sub-tab[data-term-tab="valves"]:not(.is-active) {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}
.portal-site-body .site-term-sub-tab[data-term-tab="fusion"]:not(.is-active) {
  background: #f5f3ff;
  border-color: #c4b5fd;
  color: #5b21b6;
}
.portal-site-body .site-term-sub-tab.is-active {
  background: linear-gradient(135deg, #fee2e2, #fff7ed);
  border-color: #dc2626;
  color: #991b1b;
}
.portal-site-body .site-term-pevalve-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.portal-site-body .site-term-pevalve-card {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
}
.portal-site-body .site-term-pevalve-card-main {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
  flex: 1 1 220px;
}
.portal-site-body .site-term-pevalve-thumb-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
}
.portal-site-body .site-term-pevalve-thumb-wrap--sm {
  width: 56px;
  height: 56px;
}
.portal-site-body .site-term-pevalve-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  flex: 0 0 auto;
}
.portal-site-body .site-term-pevalve-thumb-wrap .site-term-pevalve-thumb {
  display: block;
  width: 100%;
  height: 100%;
}
.portal-site-body .site-term-pevalve-photo-count {
  position: absolute;
  right: 2px;
  bottom: 2px;
  min-width: 1.25rem;
  padding: 1px 5px;
  border-radius: 999px;
  background: #991b1b;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}
.portal-site-body .site-term-pevalve-thumb--ph,
.portal-site-body .site-term-pevalve-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #64748b;
  text-align: center;
  padding: 4px;
}
.portal-site-body .site-term-pevalve-pending-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.portal-site-body .site-term-pevalve-pending-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 13px;
  min-width: 0;
}
.portal-site-body .site-term-pevalve-pending-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  flex: 0 0 auto;
  background: #fff;
}
.portal-site-body .site-term-pevalve-pending-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.portal-site-body .site-term-pevalve-pending-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.portal-site-body .site-term-pevalve-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
}
.portal-site-body .site-term-pevalve-label {
  color: #b91c1c;
  font-size: 1.05rem;
}
.portal-site-body .site-term-pevalve-context {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 4px;
  font-size: 12px;
  color: #475569;
  line-height: 1.35;
}
.portal-site-body .site-term-pevalve-context em {
  font-style: normal;
  font-weight: 700;
  color: #64748b;
  margin-right: 4px;
}
.portal-site-body .site-term-pevalve-card-actions {
  flex: 0 0 auto;
  align-self: center;
}
.portal-site-body .site-term-pevalve-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  min-width: 0;
}
.portal-site-body .site-term-pevalve-card.is-missing-photo {
  border-color: #f59e0b;
  background: #fffbeb;
}
.portal-site-body .site-term-pevalve-warn {
  color: #b45309;
  font-weight: 600;
}
.portal-site-body .site-term-pevalve-prompt .site-term-pevalve-fields {
  margin-top: 0;
}
.portal-site-body .site-term-row,
.portal-site-body .site-trench-inline-row {
  background: rgba(255, 255, 255, 0.9);
  border-color: #e2e8f0;
  border-radius: 12px;
}
.portal-site-body .site-trench-inline-row {
  background: linear-gradient(90deg, #fff7ed 0%, #ffffff 35%, #fff 100%);
  border-color: #fed7aa;
}
.portal-site-body .site-term-mat-recorded {
  background: linear-gradient(180deg, #ecfdf5, #f0fdf4);
  border-color: #86efac;
}
.portal-site-body .site-term-mat-recorded-row.is-active {
  background: linear-gradient(90deg, #fff7f7, #ffffff);
}
.portal-site-body .site-term-mat-chip {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.portal-site-body .site-term-mat-chip:hover,
.portal-site-body .site-term-mat-chip.is-active {
  background: #fff7ed;
  border-color: #fb923c;
}
.portal-site-body .site-term-mat-chip--pipe-sdr11 {
  background: #fef08a;
  border-color: #eab308;
}
.portal-site-body .site-term-mat-chip--pipe-sdr11.is-active {
  background: #fde047;
  border-color: #991b1b;
}
.portal-site-body .site-term-mat-chip--pipe-sdr11-orange,
.portal-site-body .site-term-mat-chip--pipe-sdr11-orange:hover {
  background: #ea580c;
  border-color: #c2410c;
  color: #fff;
}
.portal-site-body .site-term-mat-chip--pipe-sdr11-orange .site-term-mat-chip-text,
.portal-site-body .site-term-mat-chip--pipe-sdr11-orange .site-term-mat-chip-text strong {
  color: #fff;
}
.portal-site-body .site-term-mat-chip--pipe-sdr11-orange.is-active {
  background: #c2410c;
  border-color: #7c2d12;
}
.portal-site-body .site-term-mat-chip--pipe-sdr21 {
  background: #facc15;
  border-color: #ca8a04;
}
.portal-site-body .site-term-mat-chip--pipe-sdr21.is-active {
  background: #eab308;
  border-color: #a16207;
}
.portal-site-body .site-term-mat-fitting-preview,
.portal-site-body .site-term-mat-preview-empty,
.portal-site-body .site-term-mat-preview-canvas {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-color: #cbd5e1;
}
.portal-site-body .site-term-sch-legend {
  background: linear-gradient(90deg, #eff6ff, #faf5ff);
  border-color: #c4b5fd;
}
.portal-site-body .site-trench-type-btn {
  background: #fff;
}
.portal-site-body .site-trench-type-btn.is-active {
  background: linear-gradient(135deg, #fee2e2, #fff7ed);
}
.portal-site-body .portal-site-env {
  background: linear-gradient(165deg, #eff6ff 0%, #ffffff 55%, #ecfdf5 100%);
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.portal-site-body .btn.btn-primary,
.portal-site-body .btn-primary {
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.22);
}
.portal-site-body .pg-search-input,
.portal-site-body input.pg-search-input,
.portal-site-body select.pg-search-input,
.portal-site-body textarea.pg-search-input {
  background: rgba(255, 255, 255, 0.95);
  border-color: #cbd5e1;
}
.portal-site-body .pg-search-input:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.18);
}

html[data-site-theme="dark"] .portal-site-body {
  background: #0b1220;
  color: #e2e8f0;
}
html[data-site-theme="dark"] .portal-site-body .portal-site-header,
html[data-site-theme="dark"] .portal-site-body .portal-site-tabs,
html[data-site-theme="dark"] .portal-site-body .portal-site-list,
html[data-site-theme="dark"] .portal-site-body .portal-site-detail,
html[data-site-theme="dark"] .portal-site-body .site-term-work-bar,
html[data-site-theme="dark"] .portal-site-body .section-card,
html[data-site-theme="dark"] .portal-site-body .site-dr-section,
html[data-site-theme="dark"] .portal-site-body .site-term-section,
html[data-site-theme="dark"] .portal-site-body .site-trench-inline-section,
html[data-site-theme="dark"] .portal-site-body .site-term-mat-side,
html[data-site-theme="dark"] .portal-site-body .site-term-mat-preview-pane,
html[data-site-theme="dark"] .portal-site-body .site-term-mat-recorded,
html[data-site-theme="dark"] .portal-site-body .portal-site-env {
  background: #111827;
  border-color: #334155;
  box-shadow: none;
}
html[data-site-theme="dark"] .portal-site-body .portal-site-tab:not(.is-active),
html[data-site-theme="dark"] .portal-site-body .site-term-sub-tab:not(.is-active),
html[data-site-theme="dark"] .portal-site-body .site-dr-card,
html[data-site-theme="dark"] .portal-site-body .site-term-row,
html[data-site-theme="dark"] .portal-site-body .site-trench-inline-row,
html[data-site-theme="dark"] .portal-site-body .site-term-mat-chip {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
  box-shadow: none;
}
html[data-site-theme="dark"] .portal-site-body .portal-site-header-brand > strong,
html[data-site-theme="dark"] .portal-site-body .site-term-work-title strong {
  color: #fecaca;
}
.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;
}
/* Plan review — fill window width (no 1200/1600 cap) */
.portal-client-app--photos.portal-client-photos-reviewing .portal-client-photos-main {
  max-width: none;
  width: 100%;
  margin: 0;
  padding-left: 16px;
  padding-right: 16px;
}
.portal-client-plan-list {
  display: grid;
  gap: 10px;
}
.portal-client-plan-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}
.portal-client-plan-filters .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;
}
.portal-client-plan-filter-search {
  flex: 1 1 160px;
  min-width: 140px;
  max-width: 220px;
}
.portal-client-plan-filter-search .pg-search-input {
  width: 100%;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: inherit;
  background: #fff;
}
.portal-client-plan-filter-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}
.portal-client-plan-filter-chip {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}
.portal-client-plan-filter-chip:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}
.portal-client-plan-filter-chip.is-active {
  border-color: #0f172a;
  background: #0f172a;
  color: #fff;
}
.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-card--pending {
  border-color: #f59e0b;
  background: #fffbeb;
}
.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);
  align-items: stretch;
}
.portal-client-app--photos .portal-client-photo-layout .mnt-photo-review-sidebar {
  flex-basis: 340px;
  width: 340px;
  max-width: 340px;
  position: sticky;
  top: 52px;
  align-self: flex-start;
  height: calc(100dvh - 60px);
  max-height: calc(100dvh - 60px);
  min-height: 0;
  overflow: hidden;
}
.portal-client-app--photos .portal-client-photo-layout .mnt-photo-review-sidebar.is-collapsed {
  height: calc(100dvh - 60px);
  max-height: calc(100dvh - 60px);
  min-height: 0;
}
.portal-client-app--photos .portal-client-photo-layout .mnt-photo-review-sidebar-inner {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.portal-client-app--photos .portal-client-photo-layout .mnt-photo-review-sidebar-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: 20px;
}
@media (max-width: 960px) {
  .portal-client-app--photos .portal-client-photo-layout .mnt-photo-review-sidebar,
  .portal-client-app--photos .portal-client-photo-layout .mnt-photo-review-sidebar.is-collapsed {
    position: static;
    top: auto;
    height: auto;
    max-height: min(70dvh, 640px);
    width: 100%;
    max-width: none;
  }
}
.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-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-report-choice {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.45);
}
.portal-client-report-choice-card {
  width: min(420px, 100%);
  padding: 18px 18px 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
}
.portal-client-report-choice-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.portal-client-report-choice-card p {
  margin: 0 0 14px;
  color: #475569;
  font-size: 14px;
  line-height: 1.4;
}
.portal-client-report-choice-actions {
  display: flex;
  flex-wrap: wrap;
  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--team {
  border: 1px solid #f59e0b;
  border-left: 5px solid #ea580c;
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.12);
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 42%, #fffbeb 100%);
  padding: 18px 18px 16px;
}
.portal-site-announce--team.has-announce {
  animation: portalAnnouncePulse 2.4s ease-out 1;
}
@keyframes portalAnnouncePulse {
  0% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.35), 0 6px 18px rgba(234, 88, 12, 0.12); }
  70% { box-shadow: 0 0 0 12px rgba(234, 88, 12, 0), 0 6px 18px rgba(234, 88, 12, 0.12); }
  100% { box-shadow: 0 6px 18px rgba(234, 88, 12, 0.12); }
}
.portal-site-announce-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.portal-site-announce-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #ea580c;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.35);
}
.portal-site-announce-badge svg {
  width: 22px;
  height: 22px;
}
.portal-site-announce-head h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: #92400e;
}
.portal-site-announce--team .portal-site-announce-head h2 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #9a3412;
}
.portal-site-announce-head .feed-meta { margin: 0 0 12px; }
.portal-site-announce--team .portal-site-announce-head .feed-meta {
  margin: 0;
  color: #b45309;
}
.portal-site-announce--team .portal-site-announce-head {
  margin-bottom: 12px;
}
.portal-site-announce-card {
  margin: 0;
  background: #fff;
  border: 1px solid #fdba74;
  border-left: 4px solid #ea580c;
  box-shadow: 0 1px 3px rgba(154, 52, 18, 0.08);
}
.portal-site-announce-card .portal-announce-card-top {
  align-items: center;
}
.portal-site-announce-card .portal-announce-card-icon {
  background: #ffedd5;
  color: #c2410c;
}
.portal-site-announce-live {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ea580c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.portal-site-announce-live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}
.portal-site-announce-msg {
  font-size: 1.08rem;
  font-weight: 600;
  color: #7c2d12;
  line-height: 1.45;
  margin: 0;
}
.portal-site-announce-empty {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px dashed #fdba74;
  background: rgba(255, 255, 255, 0.55);
}
.portal-site-announce-empty .feed-meta {
  margin: 0;
  color: #b45309;
}
.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-broadcast { margin-bottom: 10px; }
.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-file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  border: 1px solid #fcd34d;
  background: #fff;
  color: #78350f;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.portal-announce-file:disabled { opacity: 0.6; cursor: wait; }
.portal-announce-file-kind {
  background: #f59e0b;
  color: #fff;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 800;
}
.portal-announce-file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}
.portal-announce-download {
  color: #fff;
  background: #f59e0b;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 700;
  text-decoration: none;
}
.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-file-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 120px;
  max-width: 180px;
  min-height: 72px;
  padding: 8px 28px 8px 8px;
  border: 1px solid #e7e5e4;
  border-radius: 10px;
  background: #fff;
}
.wsh-ann-file-kind {
  align-self: flex-start;
  background: #f59e0b;
  color: #fff;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.wsh-ann-file-name {
  font-size: 12px;
  font-weight: 650;
  color: #1c1917;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wsh-ann-file-size {
  font-size: 11px;
  color: #78716c;
}
.wsh-ann-seg--until { padding-left: 12px; padding-right: 12px; }
.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(2, minmax(0, 1fr));
  gap: 12px;
}
.portal-site-env-cards--psi {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.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;
  white-space: pre-line;
}
.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; }

.portal-env-card--psi {
  background: #f0fdf4;
  border-color: #bbf7d0;
  border-left-color: #16a34a;
}
.portal-env-card--psi .portal-env-card-icon {
  color: #15803d;
  background: #dcfce7;
}
.portal-env-card--psi h3 { color: #166534; }

/* Severity overlays (keep type tint, strengthen status cue) */
.portal-env-card--normal { /* keep type colours */ }
.portal-env-reading { font-weight: 700; }
.portal-env-reading--normal { color: #0f172a; font-weight: 650; }
.portal-env-reading--medium { color: #a16207; }
.portal-env-reading--high { color: #c2410c; }
.portal-env-reading--critical { color: #b91c1c; }
.portal-env-card--medium,
.portal-env-card--advisory {
  background: #fffbeb !important;
  border-color: #fde68a !important;
  border-left-color: #ca8a04 !important;
  box-shadow: inset 0 0 0 1px rgba(202, 138, 4, 0.18);
}
.portal-env-card--medium h3,
.portal-env-card--advisory h3 { color: #a16207; }
.portal-env-card--medium .portal-env-card-icon,
.portal-env-card--advisory .portal-env-card-icon {
  color: #a16207;
  background: #fef3c7;
}
.portal-env-card--high,
.portal-env-card--severe {
  background: #fff7ed !important;
  border-color: #fed7aa !important;
  border-left-color: #ea580c !important;
  box-shadow: inset 0 0 0 1px rgba(234, 88, 12, 0.2);
}
.portal-env-card--high h3,
.portal-env-card--severe h3 { color: #c2410c; }
.portal-env-card--high .portal-env-card-icon,
.portal-env-card--severe .portal-env-card-icon {
  color: #c2410c;
  background: #ffedd5;
}
.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 h3 { color: #b91c1c; }
.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;
}
#sitePortalSafetyRectSection {
  grid-column: 1 / -1;
}
#sitePortalSafetyRectSection.is-report-open {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  min-height: 0;
}
#sitePortalSafetyRectSection.is-report-open > h2,
#sitePortalSafetyRectSection.is-report-open #sitePortalSafetyList,
#sitePortalSafetyRectSection.is-report-open #sitePortalSafetyRectIntro {
  display: none;
}
#sitePortalSafetyRectSection:not(.is-report-open) #sitePortalSafetyDetail {
  display: none;
}
.site-safety-part2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "bar bar"
    "info action";
  gap: 12px;
  align-items: stretch;
}
.site-safety-part2-bar {
  grid-area: bar;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-sizing: border-box;
}
.site-safety-part2-bar .site-safety-back {
  margin: 0;
  flex-shrink: 0;
}
.site-safety-part2-id {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #0f172a;
}
.site-safety-part2-info {
  grid-area: info;
}
.site-safety-part2-action {
  grid-area: action;
  display: flex;
  flex-direction: column;
}
.site-safety-part2-info,
.site-safety-part2-action {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px 16px;
  min-height: 0;
  box-sizing: border-box;
}
.site-safety-part2-info {
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 28%);
  border-color: #fde68a;
}
.site-safety-part2-action {
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 28%);
  border-color: #bbf7d0;
}
.site-safety-part2 .site-safety-findings-compact {
  margin: 0;
}
.site-safety-part2 .site-safety-progress {
  margin: 0 0 10px;
}
.site-safety-action-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #bbf7d0;
}
.site-safety-action-head strong {
  font-size: 1.1rem;
}
.site-safety-action-panel {
  flex: 1 1 auto;
}
.site-safety-part2-action .site-safety-footer {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  padding-top: 12px;
  background: linear-gradient(180deg, rgba(240, 253, 244, 0), #f0fdf4 32%);
}
@media (min-width: 801px) {
  .site-safety-part2-info,
  .site-safety-part2-action {
    min-height: calc(100dvh - 210px);
  }
}
@media (max-width: 800px) {
  .site-safety-part2 {
    grid-template-columns: 1fr;
    grid-template-areas:
      "bar"
      "info"
      "action";
  }
}
#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 #sitePortalSafetyRectSection {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .portal-site-env-cards,
  .portal-site-env-cards--psi { 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--tbm-linked { background: #eff6ff; border-color: #93c5fd; }
.site-dr-card--tbm-linked.is-active { background: #fff; border-color: #2563eb; }
.site-dr-tbm-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1d4ed8;
  background: #dbeafe;
  border-radius: 999px;
  padding: 2px 8px;
  margin-right: 4px;
  vertical-align: middle;
}
.site-tbm-host-banner {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}
.site-dr-card--submitted { background: #eff6ff; border-color: #93c5fd; }
.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: 32px; line-height: 1; color: #059669; margin-top: 0; }
@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-card-sub { margin-top: 2px; }
.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-sandbox-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  padding: 2px 6px;
  margin-right: 4px;
  border-radius: 4px;
  color: #6b21a8;
  background: #f3e8ff;
  vertical-align: middle;
}
.site-term-sandbox-banner {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f3e8ff;
  border: 1px solid #e9d5ff;
  color: #6b21a8;
  font-size: 13px;
}
.site-term-sandbox-day-btns {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: 6px;
  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-note { flex: 1 1 100%; margin: 0; }
.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-cal-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  justify-content: space-between;
}
.portal-vendor-month-input {
  min-height: 36px;
  min-width: 150px;
}
.portal-vendor-calendar-host {
  margin-bottom: 12px;
}
.portal-vendor-app .sch-cal-cell--selected {
  outline: 2px solid var(--lz-red, #b91c1c);
  outline-offset: 1px;
  box-shadow: 0 0 0 1px rgba(185, 28, 28, 0.2);
}
.portal-vendor-day-panel {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}
.portal-vendor-day-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.portal-vendor-day-panel-head h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}
.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(40vh, 360px); 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 .portal-vendor-wo-amt {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.portal-vendor-teams-table .portal-vendor-team-row {
  cursor: pointer;
  transition: background-color 0.12s ease;
}
.portal-vendor-teams-table .portal-vendor-team-row:hover {
  background: #fef2f2;
}
.portal-vendor-teams-table .portal-vendor-team-row.is-selected,
.portal-vendor-teams-table .portal-vendor-team-row.is-selected:hover {
  background: #fee2e2;
  box-shadow: inset 3px 0 0 var(--lz-red, #b91c1c);
}
.portal-vendor-teams-table .portal-vendor-team-row:focus-visible {
  outline: 2px solid var(--lz-red, #b91c1c);
  outline-offset: -2px;
}
.portal-vendor-jobs-card .data-table tbody tr[data-schedule-id] {
  cursor: pointer;
  transition: background-color 0.12s ease;
}
.portal-vendor-jobs-card .data-table tbody tr[data-schedule-id]:hover {
  background: #fef2f2;
}
.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-wo-list .portal-vendor-wo-row { cursor: pointer; }
.portal-vendor-wo-list .portal-vendor-wo-row:hover { background: #f8fafc; }
.portal-vendor-wo-dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
  margin: 0 0 16px;
}
.portal-vendor-wo-dl dt { color: #64748b; font-size: 12px; font-weight: 600; }
.portal-vendor-wo-dl dd { margin: 0; font-size: 14px; }
.portal-vendor-claim-card { margin-bottom: 14px; }
.portal-vendor-wo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.portal-vendor-lines-wrap { overflow: auto; max-height: min(60vh, 520px); }
.portal-vendor-ev-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
}
.pg-claim-dropzone.is-drag { outline: 2px dashed #94a3b8; background: #f8fafc; }
.portal-vendor-wo-detail-flash,
#vendorWoDetailFlash { min-height: 1.2em; }
.pg-wo-vendor-prep-banner {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e3a8a;
}
.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-empty p { margin: 0 0 8px; }
.mnt-photo-gallery-empty .btn { margin-top: 4px; }
.mnt-photo-gallery-modal { position: fixed; inset: 0; z-index: 10050; background: rgba(15, 23, 42, 0.88); display: flex; align-items: center; justify-content: center; padding: 12px; }
.mnt-photo-gallery-modal.hidden { display: none; }
.mnt-photo-gallery-modal-inner { max-width: min(1280px, 98vw); width: 100%; max-height: 96vh; overflow: auto; background: #0f172a; border-radius: 12px; color: #e2e8f0; }
.mnt-photo-gallery-modal-toolbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #334155; align-items: center; }
.mnt-photo-gallery-modal-pos { font-weight: 600; min-width: 4.5em; text-align: center; color: #f8fafc; }
.mnt-photo-gallery-modal-stage { display: flex; align-items: center; justify-content: center; min-height: 50vh; background: #020617; }
.mnt-photo-gallery-modal-inner img,
.mnt-photo-gallery-modal-stage img { display: block; max-width: 100%; max-height: 82vh; margin: 0 auto; object-fit: contain; }
.mnt-photo-gallery-modal-inner .feed-meta { padding: 10px 14px 14px; margin: 0; color: #cbd5e1; }
body.mnt-photo-lightbox-open { overflow: hidden; }
.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-done-by-row {
  flex: 1 1 100%;
  align-items: center;
  gap: 6px;
}
.mnt-photo-gallery-done-by-row .mnt-photo-gallery-client-action-key::after {
  content: '';
}
.mnt-photo-done-by-team {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font-size: 12px;
  padding: 5px 8px;
  box-sizing: border-box;
}
.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 300px;
  width: 300px;
  height: 100%;
  min-height: 300px;
  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: 250px;
  height: auto;
  cursor: zoom-in;
}
.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 220px;
    width: 220px;
    min-height: 240px;
  }
}
.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 1 280px; min-width: 220px; }
.mnt-photo-review-plan-select { width: 100%; min-width: 0; }
.mnt-photo-review-plan-combo { width: 100%; min-width: 0; }
.mnt-photo-review-plan-combo .dept-combobox-input { width: 100%; box-sizing: border-box; }
.mnt-photo-review-plan-combo .dept-combobox-list { max-height: 280px; z-index: 80; }
.mnt-photo-review-plan-combo-group {
  padding: 8px 11px 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--lz-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.mnt-photo-review-complete-done,
.mnt-photo-review-complete-done:disabled {
  background: #166534 !important;
  border-color: #166534 !important;
  color: #fff !important;
  opacity: 1 !important;
  cursor: default;
}
.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-empty p { margin: 0 0 8px; }
.mnt-photo-gallery-empty .btn { margin-top: 4px; }
.mnt-photo-gallery-modal { position: fixed; inset: 0; z-index: 10050; background: rgba(15, 23, 42, 0.88); display: flex; align-items: center; justify-content: center; padding: 12px; }
.mnt-photo-gallery-modal.hidden { display: none; }
.mnt-photo-gallery-modal-inner { max-width: min(1280px, 98vw); width: 100%; max-height: 96vh; overflow: auto; background: #0f172a; border-radius: 12px; color: #e2e8f0; }
.mnt-photo-gallery-modal-toolbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #334155; align-items: center; }
.mnt-photo-gallery-modal-pos { font-weight: 600; min-width: 4.5em; text-align: center; color: #f8fafc; }
.mnt-photo-gallery-modal-stage { display: flex; align-items: center; justify-content: center; min-height: 50vh; background: #020617; }
.mnt-photo-gallery-modal-inner img,
.mnt-photo-gallery-modal-stage img { display: block; max-width: 100%; max-height: 82vh; margin: 0 auto; object-fit: contain; }
.mnt-photo-gallery-modal-inner .feed-meta { padding: 10px 14px 14px; margin: 0; color: #cbd5e1; }
body.mnt-photo-lightbox-open { overflow: hidden; }
.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-done-by-row {
  flex: 1 1 100%;
  align-items: center;
  gap: 6px;
}
.mnt-photo-gallery-done-by-row .mnt-photo-gallery-client-action-key::after {
  content: '';
}
.mnt-photo-done-by-team {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font-size: 12px;
  padding: 5px 8px;
  box-sizing: border-box;
}
.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 300px;
  width: 300px;
  height: 100%;
  min-height: 300px;
  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: 250px;
  height: auto;
  cursor: zoom-in;
}
.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 220px;
    width: 220px;
    min-height: 240px;
  }
}
.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 1 280px; min-width: 220px; }
.mnt-photo-review-plan-select { width: 100%; min-width: 0; }
.mnt-photo-review-plan-combo { width: 100%; min-width: 0; }
.mnt-photo-review-plan-combo .dept-combobox-input { width: 100%; box-sizing: border-box; }
.mnt-photo-review-plan-combo .dept-combobox-list { max-height: 280px; z-index: 80; }
.mnt-photo-review-plan-combo-group {
  padding: 8px 11px 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--lz-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.mnt-photo-review-complete-done,
.mnt-photo-review-complete-done:disabled {
  background: #166534 !important;
  border-color: #166534 !important;
  color: #fff !important;
  opacity: 1 !important;
  cursor: default;
}
.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-plan-sheets-panel {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #fecdd3;
  display: grid;
  gap: 8px;
}
.mnt-plan-sheets-hint { margin: 0 0 2px; font-size: 12px; }
.mnt-plan-sheets-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 10px;
}
.mnt-plan-sheets-bar-label {
  font-size: 12px;
  font-weight: 700;
  color: #881337;
  margin-right: 4px;
}
.mnt-plan-sheets-tab .mnt-plan-sheets-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-end;
  margin-bottom: 10px;
}
.mnt-plan-sheets-tab .mnt-plan-sheets-toolbar label.feed-meta {
  display: grid;
  gap: 4px;
  min-width: 140px;
}
.mnt-plan-sheets-bulk-box {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  background: #fff1f2;
}
.mnt-plan-sheets-toolbar--bulk {
  margin-bottom: 0;
}
.mnt-plan-sheets-drop-hint {
  margin: 0 0 12px;
  padding: 8px 10px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}
.mnt-plan-sheets-drop-hint code {
  font-size: 12px;
  color: #0f172a;
}
.mnt-plan-sheets-table-wrap { max-height: calc(100vh - 280px); overflow: auto; }
.mnt-plan-sheets-cell {
  display: grid;
  gap: 6px;
  min-width: 180px;
}
.mnt-plan-sheets-cell-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mnt-plan-sheet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}
.mnt-plan-sheet-row-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.mnt-plan-sheet-row-main strong { font-size: 13px; color: #881337; }
.mnt-plan-sheet-status { font-size: 11px; color: #94a3b8; }
.mnt-plan-sheet-status.is-ready { color: #166534; font-weight: 600; }
.mnt-plan-sheet-status.is-pending { color: #b45309; font-weight: 600; }
.mnt-plan-sheet-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
}
.mnt-plan-sheet-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 32px;
  padding: 0;
}
.mnt-plan-sheet-dl svg { display: block; }
.mnt-plan-sheet-upload-btn { cursor: pointer; margin: 0; }
.mnt-plan-sheet-viewer {
  min-height: 100vh;
  background: #0f172a;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
}
.mnt-plan-sheet-viewer-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
  position: sticky;
  top: 0;
  z-index: 2;
}
.mnt-plan-sheet-viewer-toolbar .title {
  font-weight: 700;
  margin-right: auto;
}
.mnt-plan-sheet-viewer-stage {
  flex: 1;
  overflow: hidden;
  position: relative;
  touch-action: none;
  cursor: grab;
  background:
    linear-gradient(45deg, #1e293b 25%, transparent 25%),
    linear-gradient(-45deg, #1e293b 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #1e293b 75%),
    linear-gradient(-45deg, transparent 75%, #1e293b 75%);
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-color: #0f172a;
}
.mnt-plan-sheet-viewer-stage.is-dragging { cursor: grabbing; }
.mnt-plan-sheet-viewer-canvas {
  transform-origin: center center;
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  display: block;
  max-width: none;
  user-select: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.mnt-plan-sheet-viewer-status {
  padding: 8px 14px;
  font-size: 12px;
  color: #94a3b8;
  border-top: 1px solid #334155;
  background: #1e293b;
}
.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-plan-sheets-host {
  padding: 12px 14px 0;
  box-sizing: border-box;
}
.mnt-photo-review-plan-sheets-host.hidden,
.mnt-photo-review-plan-sheets-host:empty {
  display: none;
  padding: 0;
  margin: 0;
}
.mnt-photo-review-plan-sheets-host .mnt-plan-sheets-panel {
  margin-top: 0;
  padding: 10px;
  border: 1px solid #fecdd3;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
}
.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-size .mnt-photo-gallery-chamber-sort {
  min-width: 120px;
}
.mnt-photo-gallery-pagination-meta {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}
.mnt-photo-gallery-load-sentinel {
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.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; }
}
/* When a DR is open — hide the left list (phone, iPad, and desktop focus mode). */
.portal-site-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.portal-site-list-head h2 {
  margin: 0;
  flex: 1;
  min-width: 0;
}
.portal-site-show-list-btn {
  margin: 0 0 10px;
  align-self: flex-start;
}
/* Prefer chrome-row Jobs (next to Back) when present */
.portal-site-detail:has(#btnSiteWorkJobs) > .portal-site-show-list-btn,
.portal-site-detail:has(#btnSiteTermJobs) > .portal-site-show-list-btn {
  display: none !important;
}
.site-work-chrome {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: nowrap;
  margin: 0 0 12px;
  padding: 8px 10px;
  background: linear-gradient(90deg, #fff7f7 0%, #ffffff 40%, #eff6ff 100%);
  border: 1px solid #fecaca;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
.site-work-top-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin: 0 0 12px;
  width: 100%;
  box-sizing: border-box;
}
.site-work-top-row > .site-work-chrome,
.site-work-top-row > .site-step-guide,
.site-work-top-row > .site-step-next,
.site-work-top-row > .site-work-home-banner {
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
}
.site-work-chrome-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.site-work-chrome-title {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.site-work-chrome-title strong {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-work-chrome-title .feed-meta {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-work-home-banner {
  margin: 0;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.35;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}
.site-term-work-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
html[data-site-theme="dark"] .site-work-chrome {
  background: #111827;
  border-color: #334155;
  box-shadow: none;
}
html[data-site-theme="dark"] .site-work-chrome-title strong {
  color: #fecaca;
}
.portal-site-dr-focus {
  grid-template-columns: 1fr !important;
  max-width: none;
  width: 100%;
}
.portal-site-dr-focus .portal-site-list { display: none !important; }
.portal-site-dr-focus .portal-site-detail {
  grid-column: 1 / -1;
  min-height: calc(100dvh - 120px);
}
.site-term-mat-recorded {
  margin: 0;
  padding: 0;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  max-height: none;
  overflow: auto;
}
.site-term-mat-recorded-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 4px 8px;
}
.site-term-mat-recorded-hint {
  margin: 2px 0 0;
  font-size: 11px;
  line-height: 1.3;
}
.site-term-mat-group {
  border-bottom: 1px solid #e2e8f0;
}
.site-term-mat-group:last-child {
  border-bottom: none;
}
.site-term-mat-group.is-active-line {
  background: #f0fdf4;
}
.site-term-mat-group-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 6px 8px;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  background: #f1f5f9;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.site-term-mat-group-hd:hover,
.site-term-mat-group-hd:focus-visible {
  background: #e2e8f0;
  outline: none;
}
/* Raw line key beside the friendly label, so two same-looking headings are tellable apart. */
.site-term-mat-group-key {
  margin-right: auto;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.06);
  color: #64748b;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.site-term-mat-group.is-active-line > .site-term-mat-group-hd {
  background: #dcfce7;
  color: #14532d;
}
.site-term-mat-group .site-term-mat-recorded-list {
  padding: 2px 2px 6px;
}
.site-term-mat-recorded-list {
  margin: 0;
  padding: 2px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.site-term-row.site-term-mat-recorded-row--compact {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 8px;
  padding: 6px 8px;
  min-height: 36px;
  margin: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}
.site-term-mat-row-seq {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  text-align: center;
}
.site-term-mat-row-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.site-term-mat-row-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  line-height: 1.25;
}
.site-term-mat-row-meta {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.site-term-mat-row-trail {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.site-term-mat-len-edit--inline {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 0;
}
.site-term-mat-len-edit--inline .site-term-mat-len-input {
  width: 3.6rem;
  min-width: 3.6rem;
  max-width: 4.5rem;
  min-height: 30px;
  padding: 2px 6px;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}
.site-term-mat-surface-split {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-left: 4px;
}
.site-term-mat-surface-split--insert {
  display: flex;
  width: 100%;
  margin: 8px 0 0;
  flex-wrap: wrap;
}
.site-term-mat-surf-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 40px;
  min-height: 30px;
  margin: 0;
  padding: 2px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}
.site-term-mat-surf-chip:hover,
.site-term-mat-surf-chip:focus {
  border-color: #94a3b8;
  background: #f1f5f9;
  outline: none;
}
.site-term-mat-surf-field {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0;
}
.site-term-mat-surf-input {
  width: 44px;
  min-width: 44px;
  padding: 2px 4px;
  font-size: 12px;
  min-height: 28px;
}
.site-term-mat-surf-hint {
  font-size: 11px;
  white-space: nowrap;
}
.site-term-mat-pipe-len .site-term-mat-surface-split {
  display: flex;
  width: 100%;
  margin: 8px 0 0;
}
.site-term-mat-pipe-len .site-term-mat-surf-input {
  width: 4.5rem;
  min-width: 4.5rem;
}
.site-term-mat-surf-prompt {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-term-mat-surf-prompt .site-term-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.site-term-row.site-term-mat-recorded-row--compact .site-term-mat-row-actions .btn {
  min-width: 28px;
  min-height: 28px;
  padding: 2px 4px;
  font-size: 12px;
}
.site-term-mat-net {
  margin-top: 14px;
  padding: 12px 12px 10px;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
}
.site-term-mat-net-head {
  margin-bottom: 8px;
}
.site-term-mat-net-sub {
  margin: 2px 0 0;
  font-size: 11px;
  line-height: 1.35;
}
.site-term-mat-net-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 280px;
  overflow: auto;
}
.site-term-mat-net-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: baseline;
  padding: 7px 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #dcfce7;
  font-size: 12px;
  line-height: 1.3;
}
.site-term-mat-net-row.is-pipe {
  background: #f8fafc;
  border-color: #e2e8f0;
}
.site-term-mat-net-size {
  font-weight: 800;
  color: #166534;
  font-variant-numeric: tabular-nums;
}
.site-term-mat-net-row.is-pipe .site-term-mat-net-size {
  color: #1e3a5f;
}
.site-term-mat-net-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #0f172a;
  font-weight: 600;
}
.site-term-mat-net-qty {
  font-weight: 800;
  color: #14532d;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.site-term-mat-net-row.is-pipe .site-term-mat-net-qty {
  color: #1e40af;
}
html[data-site-theme="dark"] .site-term-mat-net {
  background: #0f1f17;
  border-color: #14532d;
}
html[data-site-theme="dark"] .site-term-mat-net-row {
  background: #111827;
  border-color: #1f2937;
}
html[data-site-theme="dark"] .site-term-mat-net-name {
  color: #e5e7eb;
}
html[data-site-theme="dark"] .site-term-mat-net-size {
  color: #86efac;
}
html[data-site-theme="dark"] .site-term-mat-net-qty {
  color: #bbf7d0;
}
.site-term-fusion-subhead {
  margin: 16px 0 8px;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}
.site-term-fusion-machine-empty {
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
}
.site-term-fusion-table--bf {
  max-width: 720px;
}
.site-term-fusion-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 12px;
  font-size: 13px;
}
.site-term-fusion-ok strong { color: #166534; }
.site-term-fusion-miss strong { color: #b91c1c; }
.site-term-fusion-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 10px;
}
.site-term-ef-machine-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
}
.site-term-ef-machine-toolbar .site-ftbm-field-label {
  flex: 1 1 180px;
  min-width: 0;
}
.site-term-fusion-toolbar-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
}
.site-term-fusion-toolbar-actions .btn {
  flex: 0 0 auto;
  width: auto !important;
  min-width: 0;
  min-height: 36px;
  padding: 6px 10px;
  font-size: 13px;
  white-space: nowrap;
}
.site-term-ef-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.site-term-ef-tab {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #c4b5fd;
  border-radius: 10px;
  background: #f5f3ff;
  color: #5b21b6;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.site-term-ef-tab.is-active {
  border-color: #7c3aed;
  background: #ede9fe;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.18);
}
.site-term-ef-setup,
.site-term-ef-board {
  margin-top: 8px;
}
.site-term-ef-pick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 8px;
  align-items: center;
}
.site-term-ef-inuse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 8px 6px 12px;
  border: 1px solid #7c3aed;
  border-radius: 999px;
  background: #ede9fe;
  color: #5b21b6;
  font-size: 13px;
  font-weight: 700;
}
.site-term-ef-inuse-label {
  line-height: 1.2;
}
.site-term-ef-inuse-remove {
  border: 0;
  background: transparent;
  color: #7c3aed;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  min-width: 28px;
  min-height: 28px;
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
}
.site-term-ef-inuse-remove:hover,
.site-term-ef-inuse-remove:focus {
  background: rgba(124, 58, 237, 0.15);
  color: #4c1d95;
}
.site-term-ef-add-btn {
  min-height: 40px !important;
  border-radius: 999px !important;
  border: 1px dashed #a78bfa !important;
  color: #5b21b6 !important;
  background: #fff !important;
  font-weight: 700 !important;
}
.site-term-ef-add-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(50vh, 360px);
  overflow: auto;
}
.site-term-ef-add-choice {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #c4b5fd;
  border-radius: 12px;
  background: #fff;
  color: #5b21b6;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.site-term-ef-add-choice:hover,
.site-term-ef-add-choice:focus {
  border-color: #7c3aed;
  background: #f5f3ff;
}
.site-term-ef-list-actions {
  margin: 0 0 10px;
  justify-content: flex-end;
}
.site-term-ef-row-machines {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.site-term-ef-row-pick {
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid #c4b5fd;
  border-radius: 999px;
  background: #fff;
  color: #5b21b6;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
  -webkit-tap-highlight-color: transparent;
}
.site-term-ef-row-pick.is-selected {
  border-color: #7c3aed;
  background: #ede9fe;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.18);
}
.site-term-fusion-table-wrap {
  max-height: min(55vh, 520px);
  overflow: auto;
}
.site-term-fusion-table { font-size: 12px; }
.site-term-fusion-table th,
.site-term-fusion-table td {
  padding: 6px 8px;
  vertical-align: middle;
}
.site-term-fusion-table tr.is-miss { background: #fff7ed; }
.site-term-fusion-table tr.is-ok { background: #f0fdf4; }
.site-term-fusion-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #e2e8f0;
}
.site-term-fusion-machine,
.site-term-fusion-start {
  min-width: 120px;
  max-width: 180px;
  font-size: 12px;
  padding: 4px 6px;
}
.site-term-fusion-start {
  width: 5.5rem;
  min-width: 5.5rem;
  max-width: 6.5rem;
  font-variant-numeric: tabular-nums;
}
.site-term-fusion-row-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  white-space: nowrap;
}
.site-term-fusion-move-pair {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
}
.site-term-fusion-row-actions .site-term-fusion-move,
.site-term-fusion-row-actions .site-term-del-x {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: 0 0 44px;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  font-size: 18px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
}
.site-term-fusion-move:disabled {
  opacity: 0.35;
  cursor: default;
}
@media (max-width: 900px) {
  .site-term-mat-recorded { max-height: none; }
  .site-term-fusion-toolbar { grid-template-columns: 1fr; }
  .site-term-ef-machine-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .site-term-fusion-toolbar-actions {
    width: 100%;
  }
  .site-term-row.site-term-mat-recorded-row--compact {
    grid-template-columns: 20px minmax(0, 1fr) auto;
    padding: 7px 8px;
  }
  .site-term-mat-row-trail .site-term-mat-row-actions .btn {
    min-width: 32px;
    min-height: 30px;
  }
}
.site-term-sch-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0 0 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.site-term-sch-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #475569;
  white-space: nowrap;
}
.site-term-sch-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex: 0 0 auto;
  border: 1px solid rgba(15, 23, 42, 0.12);
}
html[data-site-theme="dark"] .site-term-sch-legend {
  background: #0f172a;
  border-color: #334155;
}
html[data-site-theme="dark"] .site-term-sch-legend-item {
  color: #cbd5e1;
}
.site-term-mat-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 6px;
  flex-shrink: 0;
}
#termMatCatalogWrap {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.site-term-mat-filter-count {
  flex-shrink: 0;
  margin: 0 0 8px;
}
.site-term-mat-catalog-tabs-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 0 0 6px;
}
.site-term-mat-catalog-tabs {
  display: flex;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
}
.site-term-mat-mp-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.site-term-mat-mp-label {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.02em;
}
.site-term-mat-mp-state {
  font-size: 11px;
  font-weight: 700;
  min-width: 1.8em;
}
.site-term-mat-replace-hint {
  margin: 0 0 6px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
}
.site-term-mat-recorded-row.is-replacing {
  border-color: #ea580c !important;
  background: #fff7ed !important;
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.25);
}
.site-term-mat-catalog-tab {
  flex: 1 1 0;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}
.site-term-mat-catalog-tab .feed-meta {
  font-weight: 600;
  opacity: 0.75;
}
.site-term-mat-catalog-tab.is-active {
  background: #1e3a5f;
  border-color: #1e3a5f;
  color: #fff;
}
.site-term-mat-catalog-tab.is-active .feed-meta {
  color: #e2e8f0;
  opacity: 1;
}
.site-term-mat-chip--other {
  background: #f8fafc;
}
.site-term-mat-filter-text {
  width: 100%;
  min-width: 0;
}
.site-term-mat-size-btns {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.site-term-mat-size-btn {
  flex: 1 0 auto;
  min-width: 48px;
  min-height: 36px;
  padding: 6px 10px;
  border: 2px solid #1e3a5f;
  border-radius: 6px;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}
.site-term-mat-size-btn:hover,
.site-term-mat-size-btn:focus {
  filter: brightness(0.96);
}
.site-term-mat-size-btn.is-active {
  box-shadow: inset 0 0 0 1px #0f172a, 0 0 0 1px rgba(15, 23, 42, 0.25);
}
.site-term-mat-type-btns {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  padding-bottom: 2px;
}
.site-term-mat-type-btn {
  flex: 1 0 auto;
  min-width: 56px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #64748b;
  border-radius: 6px;
  background: #f8fafc;
  color: #1e293b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}
.site-term-mat-type-btn:hover,
.site-term-mat-type-btn:focus {
  background: #e2e8f0;
  border-color: #1e3a5f;
}
.site-term-mat-type-btn.is-active {
  border-color: #0f172a;
  background: #1e3a5f;
  color: #fff;
}
.site-term-mat-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.site-term-mat-side-head h4 {
  margin: 0;
}
.site-term-mat-reset {
  flex: 0 0 auto;
  border-color: #b91c1c;
  color: #991b1b;
  background: #fff;
}
.site-term-mat-reset:hover,
.site-term-mat-reset:focus {
  background: #fef2f2;
  border-color: #991b1b;
}
.site-term-mat-filter-size {
  display: none;
}
.site-term-mat-catalog-title {
  margin: 0 0 4px;
  font-size: 14px;
}
.site-term-sch-ports {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 8px 0 6px;
}
.site-term-sch-toolbar {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 4px;
  margin: 4px 0;
  padding: 0 2px;
  max-width: 100%;
}
.site-term-sch-toolbar-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 1px;
}
.site-term-sch-toolbar-group {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
}
.site-term-sch-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 8px;
  color: #334155;
  background: #fff;
  border: 1px solid #cbd5e1;
  line-height: 1;
  touch-action: manipulation;
  flex: 0 0 auto;
}
.site-term-sch-icon-btn svg {
  display: block;
  pointer-events: none;
}
.site-term-sch-icon-btn.is-on,
.site-term-sch-icon-btn.is-active {
  border-color: #dc2626;
  color: #fff;
  background: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.28);
}
.site-term-sch-toolbar-group[aria-label="Visibility"] .site-term-sch-icon-btn.is-on {
  border-color: #2563eb;
  color: #1d4ed8;
  background: #dbeafe;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.35);
}
.site-term-sch-icon-btn.site-term-sch-fresh-btn.is-active {
  border-color: #15803d;
  color: #fff;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.35);
}
.site-term-sch-toolbar .site-term-sch-zoom-btn {
  min-width: 34px;
  min-height: 34px;
  width: auto;
  height: 34px;
  padding: 0 8px;
  font-size: 15px;
  flex: 0 0 auto;
}
.site-term-sch-schematic-pick {
  gap: 4px;
  padding-right: 4px;
  flex: 0 0 auto;
}
.site-term-sch-schematic-label {
  padding: 0 2px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
}
.site-term-sch-schematic-sel {
  min-width: 72px;
  max-width: 120px;
  min-height: 34px;
  padding: 2px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}
.site-term-sch-start-chip {
  min-height: 34px;
  min-width: 34px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}
.site-term-sch-start-chip.is-active {
  border-color: #dc2626;
  color: #fff;
  background: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.28);
}
.site-term-sch-starts-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
  padding: 0 2px;
}
.site-term-starts-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: min(52vh, 380px);
  overflow: auto;
  margin: 4px 0 10px;
}
.site-term-starts-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  text-align: left;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
}
.site-term-starts-list-item.is-active {
  border-color: #dc2626;
  background: #fef2f2;
}
.site-term-starts-list-name {
  font-weight: 700;
  font-size: 14px;
}
.site-term-sch-continue {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  width: auto;
  flex: 0 0 auto;
}
.site-term-sch-continue--compact {
  margin: 0;
  width: auto;
  flex: 0 0 auto;
}
.site-term-sch-continue #termMatOpenEnds {
  width: 100%;
  margin-top: 2px;
}
.site-term-sch-prior-scope {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.site-term-sch-prior-seg {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: 2px;
  padding: 2px;
  border-radius: 10px;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
}
.site-term-sch-prior-seg-btn {
  appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 7px 10px;
  min-height: 36px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}
.site-term-sch-prior-seg-btn.is-active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}
.site-term-sch-prior-seg-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
html[data-site-theme="dark"] .site-term-sch-prior-seg {
  background: #0f172a;
  border-color: #334155;
}
html[data-site-theme="dark"] .site-term-sch-prior-seg-btn {
  color: #94a3b8;
}
html[data-site-theme="dark"] .site-term-sch-prior-seg-btn.is-active {
  background: #1e293b;
  color: #f8fafc;
}
.site-term-continue-select {
  min-width: 220px;
  max-width: 100%;
  flex: 1 1 240px;
}
.dr-sch-admin-toolbar {
  margin-bottom: 8px;
}
.dr-sch-admin-toolbar .site-term-sch-toolbar-row {
  justify-content: flex-start;
  gap: 10px 12px;
}
.dr-sch-admin-toolbar .site-term-sch-zoombar {
  margin-left: 0;
}
.dr-sch-admin-toolbar #drSchFusionStatus {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.dr-sch-open-ends {
  margin-top: 10px;
}
.site-term-sch-toolbar .site-term-sch-ports {
  margin: 0;
}
.site-term-sch-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  user-select: none;
}
.site-term-sch-toggle input {
  width: 16px;
  height: 16px;
}
.site-term-sch-switch-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.site-term-sch-switch-label {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}
.site-term-sch-toolbar .site-ftbm-switch {
  width: 48px;
  height: 28px;
}
.site-term-sch-toolbar .site-ftbm-switch-knob {
  width: 22px;
  height: 22px;
  top: 3px;
  left: 3px;
}
.site-term-sch-toolbar .site-ftbm-switch.is-on .site-ftbm-switch-knob {
  transform: translateX(20px);
}
html[data-site-theme="dark"] .site-term-sch-switch-label {
  color: #e5e5e5;
}
.site-term-mat-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
/* Per-row connection settings: facing, which line, where in that line. */
.site-term-mat-cfg {
  min-width: 36px;
  padding: 4px 8px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  color: #1e40af;
  border-color: #93c5fd;
  background: #eff6ff;
}
.site-term-mat-cfg:hover,
.site-term-mat-cfg:focus {
  background: #dbeafe;
  border-color: #2563eb;
  color: #1e3a8a;
}
.site-term-sch-ports-label {
  margin-right: 4px;
  font-weight: 600;
}
.site-term-sch-port-btn {
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid #1e3a5f;
  border-radius: 6px;
  background: #fff;
  color: #1e3a5f;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.site-term-sch-port-btn.is-active {
  background: #dc2626;
  border-color: #991b1b;
  color: #fff;
}
.site-term-sch-stub {
  cursor: pointer;
}
.site-term-mat-orient .sch-orient-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.site-term-mat-orient .sch-orient-btn[data-plan-dir="FROM_BRANCH"] {
  grid-column: 1 / -1;
}
.site-term-mat-orient .sch-orient-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 88px;
  padding: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.site-term-mat-orient .sch-orient-btn:hover,
.site-term-mat-orient .sch-orient-btn:focus {
  border-color: #991b1b;
  background: #fff7f7;
}
html[data-site-theme="dark"] .site-term-mat-size-btn {
  color: #f8fafc;
}
html[data-site-theme="dark"] .site-term-mat-size-btn.is-active {
  color: #fff;
  box-shadow: inset 0 0 0 1px #93c5fd;
}
html[data-site-theme="dark"] .site-term-mat-catalog-tab {
  background: #1e293b;
  border-color: #64748b;
  color: #e2e8f0;
}
html[data-site-theme="dark"] .site-term-mat-catalog-tab.is-active {
  background: #1e3a5f;
  border-color: #93c5fd;
  color: #fff;
}
html[data-site-theme="dark"] .site-term-mat-pane-toggle {
  background: #0f172a;
  border-color: #334155;
}
html[data-site-theme="dark"] .site-term-mat-pane-btn {
  color: #94a3b8;
}
html[data-site-theme="dark"] .site-term-mat-pane-btn.is-active {
  background: #1e293b;
  color: #f8fafc;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
html[data-site-theme="dark"] .site-term-mat-type-btn {
  background: #1e293b;
  border-color: #64748b;
  color: #e2e8f0;
}
html[data-site-theme="dark"] .site-term-mat-type-btn.is-active {
  background: #1e3a5f;
  border-color: #93c5fd;
  color: #fff;
}
html[data-site-theme="dark"] .site-term-mat-reset {
  background: #0f172a;
  border-color: #f87171;
  color: #fca5a5;
}
html[data-site-theme="dark"] .site-term-sch-port-btn {
  background: #0f172a;
  border-color: #64748b;
  color: #e2e8f0;
}
html[data-site-theme="dark"] .site-term-mat-orient .sch-orient-btn {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}
/* Fix facing: mark the way the fitting sits today, distinct from the red pick state. */
.site-term-mat-orient .sch-orient-btn.is-current,
html[data-site-theme="dark"] .site-term-mat-orient .sch-orient-btn.is-current {
  position: relative;
  border-color: #2563eb;
  box-shadow: inset 0 0 0 1px #2563eb;
}
.site-term-mat-orient .sch-orient-btn.is-current::after {
  content: 'NOW';
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 1px 5px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
html[data-site-theme="dark"] .site-term-mat-recorded {
  background: #0f172a;
  border-color: #334155;
}
html[data-site-theme="dark"] .site-term-mat-recorded-head,
html[data-site-theme="dark"] .site-term-mat-group-hd {
  background: #111827;
  border-color: #334155;
  color: #e2e8f0;
}
html[data-site-theme="dark"] .site-term-mat-group-hd:hover,
html[data-site-theme="dark"] .site-term-mat-group-hd:focus-visible {
  background: #1e293b;
}
html[data-site-theme="dark"] .site-term-mat-group-key {
  background: rgba(226, 232, 240, 0.1);
  color: #94a3b8;
}
html[data-site-theme="dark"] .site-term-mat-group.is-active-line {
  background: rgba(22, 163, 74, 0.12);
}
html[data-site-theme="dark"] .site-term-mat-group.is-active-line > .site-term-mat-group-hd {
  background: rgba(22, 163, 74, 0.22);
  color: #bbf7d0;
}
html[data-site-theme="dark"] .site-term-work-bar {
  background: #0f172a;
  border-color: #334155;
}
html[data-site-theme="dark"] .site-term-work-title strong {
  color: #f8fafc;
}
html[data-site-theme="dark"] .site-term-sub-tab {
  background: #111827;
  border-color: #334155;
  color: #e2e8f0;
}
html[data-site-theme="dark"] .site-term-sub-tab.is-active {
  background: #1f1212;
  border-color: #f87171;
  color: #fecaca;
}
.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-tbm-view-doc--primary {
  width: 100%;
  justify-content: center;
}
.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;
}
#drPhotoLightbox {
  touch-action: none;
}
#drPhotoLightbox .site-mnt-photo-preview-panel {
  width: min(100%, calc(100vw - 24px));
  height: calc(100vh - 24px);
  max-height: calc(100vh - 24px);
}
#drPhotoLightbox .dr-photo-lightbox-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
#drPhotoLightbox .site-mnt-photo-preview-close {
  align-self: auto;
}
#drPhotoLightbox .dr-photo-lightbox-zoombar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
#drPhotoLightbox .dr-photo-lightbox-zoom-pct {
  min-width: 3.2em;
  padding: 0 8px;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
#drPhotoLightbox .dr-photo-lightbox-zoom-btn {
  border: 0;
  background: transparent;
  color: #f8fafc;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
#drPhotoLightbox .dr-photo-lightbox-zoom-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}
#drPhotoLightbox .dr-photo-lightbox-stage {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
  cursor: zoom-in;
  border-radius: 10px;
  background: #0f172a;
}
#drPhotoLightbox .dr-photo-lightbox-stage.is-zoomed { cursor: grab; }
#drPhotoLightbox .dr-photo-lightbox-stage.is-zoomed.is-panning { cursor: grabbing; }
#drPhotoLightbox .dr-photo-lightbox-zoom-port {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  max-width: 100%;
  max-height: 100%;
}
#drPhotoLightbox .dr-photo-lightbox-stage.is-zoomed .dr-photo-lightbox-zoom-port {
  will-change: transform;
}
#drPhotoLightbox .dr-photo-lightbox-zoom-port img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: element;
  pointer-events: auto;
}
#drPhotoLightbox .dr-photo-lightbox-stage.is-zoomed .dr-photo-lightbox-zoom-port img {
  -webkit-user-drag: none;
  pointer-events: none;
}
#drPhotoLightbox .site-mnt-photo-preview-caption {
  flex-shrink: 0;
}
.dr-photo-stamp {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 16px 14px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.78) 0%, rgba(15, 23, 42, 0.28) 58%, transparent 100%);
  color: #fff;
  text-align: left;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}
.dr-photo-stamp.hidden {
  display: none;
}
.dr-photo-stamp-when {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}
.dr-photo-stamp-where {
  margin-top: 2px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.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; }
.site-mp-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-mp-rows--summary {
  gap: 6px;
}
.site-mp-rows--summary .site-mp-row {
  cursor: pointer;
}
.site-mp-rows--summary .site-mp-row:active {
  background: #fffbeb;
}
.site-mp-identity:has(.site-mp-star:not(.is-static)) {
  cursor: pointer;
}
.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"],
.site-mp-times .site-mp-start,
.site-mp-times .site-mp-end {
  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-remarks-btn--filled {
  font-weight: 700;
}
.site-mp-remarks-panel {
  flex: 1 1 100%;
  margin: 0;
}
.site-mp-remarks-panel[hidden] {
  display: none !important;
}
.site-mp-remarks-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}
.site-mp-remarks-text {
  display: block;
  width: 100%;
  min-height: 88px;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.4;
  border: 2px solid #94a3b8;
  border-radius: 12px;
  box-sizing: border-box;
  resize: vertical;
}
.site-mp-remarks-text:focus {
  outline: none;
  border-color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.15);
}
.site-mp-remarks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.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-assist {
  margin-left: auto;
  flex: 0 0 auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.site-mp-assist-status {
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  line-height: 20px;
}
.site-mp-assist-status.is-on {
  background: #dcfce7;
  color: #166534;
}
.site-mp-assist-btn {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #1d4ed8;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
}
.site-mp-assist-btn:disabled {
  opacity: 0.55;
}
.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-lunch-ot[hidden],
.site-mp-lunch-ot-hint[hidden],
.dr-mp-lunch-ot[hidden] {
  display: none !important;
}
.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"],
.site-mp-team-field .site-mp-team-start,
.site-mp-team-field .site-mp-team-end {
  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; }
.site-mp-end-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 100%;
}
.site-mp-end-preset {
  min-height: 40px;
  min-width: 88px;
  font-weight: 700;
}
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-date-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  margin: 0;
}
.ftbm-date-filter input[type="date"] {
  min-height: 40px;
  width: auto;
}
.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-choice-actions {
  margin: 0 0 14px;
  padding: 14px 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e2e8f0;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}
.site-choice-lead {
  margin: 0 0 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: #334155;
  letter-spacing: 0.01em;
}
.site-choice-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: stretch;
}
.site-choice-or {
  align-self: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}
.site-choice-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 92px;
  padding: 16px 16px 14px;
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  background: #fff;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.site-choice-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.site-choice-kicker {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 4px;
}
.site-choice-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.3;
}
.site-choice-btn--tbm.site-choice-btn--open {
  border-color: #b91c1c;
  background: #fff7f2;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.08);
}
.site-choice-btn--tbm .site-choice-kicker { color: #b91c1c; }
.site-choice-btn--reach.site-choice-btn--open {
  border-color: #0f766e;
  background: #f0fdfa;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}
.site-choice-btn--reach .site-choice-kicker { color: #0f766e; }
.site-choice-btn--done {
  border-color: #86efac;
  background: #ecfdf5;
}
.site-choice-btn--done .site-choice-kicker { color: #15803d; }
.site-choice-btn:active:not(:disabled) {
  transform: scale(0.98);
}
@media (max-width: 520px) {
  .site-choice-pair {
    grid-template-columns: 1fr;
  }
  .site-choice-or {
    text-align: center;
  }
}
html[data-site-theme="dark"] .site-choice-actions {
  background: linear-gradient(180deg, #171717 0%, #111 100%);
  border-color: #333;
}
html[data-site-theme="dark"] .site-choice-lead { color: #e5e5e5; }
html[data-site-theme="dark"] .site-choice-or { color: #737373; }
html[data-site-theme="dark"] .site-choice-btn {
  background: #141414;
  border-color: #333;
}
html[data-site-theme="dark"] .site-choice-label { color: #a3a3a3; }
html[data-site-theme="dark"] .site-choice-btn--tbm.site-choice-btn--open {
  background: #2a1212;
  border-color: #b91c1c;
}
html[data-site-theme="dark"] .site-choice-btn--reach.site-choice-btn--open {
  background: #0f1f1c;
  border-color: #0f766e;
}
html[data-site-theme="dark"] .site-choice-btn--done {
  background: #14251a;
  border-color: #166534;
}

.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-upload-label.is-disabled,
.site-tcp-upload-label:has(input:disabled) {
  opacity: 0.45;
  pointer-events: none;
}
.site-nature-locked {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(0.15);
  user-select: none;
}
/* Reach site stays tappable even if a later lock wraps the card. */
#siteReachedPanel {
  position: relative;
  z-index: 3;
}
#btnSiteReachedSite,
.site-nature-locked #btnSiteReachedSite,
.site-nature-locked #siteReachedPanel {
  position: relative;
  z-index: 4;
  pointer-events: auto;
  touch-action: manipulation;
}
.site-precon-panel .site-precon-photo-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.site-tcp-upload-label:not(.is-disabled) .site-precon-photo-input {
  pointer-events: auto !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  clip: auto !important;
  inset: 0;
  opacity: 0 !important;
}
.site-precon-panel .site-precon-ready {
  color: #166534;
  margin-top: 10px;
}
.site-reached-gps.is-ready {
  color: #0f172a;
  font-weight: 600;
}
.site-reached-address {
  margin: 4px 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #14532d;
  line-height: 1.35;
  word-break: break-word;
}
.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;
}
.site-tcp-photo-card .site-vo-photo-move {
  margin: 8px 8px 0;
  max-width: calc(100% - 16px);
}
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;
}
.site-vo-day-res--3 {
  grid-template-columns: 1fr 1fr 1fr;
}
@media (max-width: 980px) {
  .site-vo-day-res--3 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 720px) {
  .site-vo-day-res,
  .site-vo-day-res--3 {
    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--premix {
  grid-template-columns: 1fr;
}
@media (min-width: 520px) {
  .site-vo-day-fields--premix {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.site-vo-premix-load-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.site-vo-premix-load-card {
  padding: 8px;
  border: 1px solid #d1fae5;
  border-radius: 8px;
  background: #fff;
}
.site-vo-premix-load-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.site-vo-premix-load-head strong {
  font-size: 14px;
}
.site-vo-premix-add-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.site-vo-premix-add-row .btn {
  min-height: 44px;
}
.site-vo-premix-scan-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}
.site-vo-premix-scan-row .btn {
  min-height: 44px;
}
.site-vo-premix-scan-choice {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.site-vo-premix-scan-choice[hidden] {
  display: none !important;
}
.site-vo-premix-scan-choice .btn {
  min-height: 40px;
  background: #fff;
  border: 1px solid #fca5a5;
  color: #991b1b;
}
.site-vo-premix-do-list {
  margin-top: 8px;
}
.site-vo-premix-do-empty {
  margin: 6px 0 0;
}
.site-vo-premix-ocr-hint {
  margin: 0 0 8px;
  color: #047857;
}
.site-vo-premix-ocr-match.is-ok {
  color: #047857;
  font-weight: 600;
}
.site-vo-premix-ocr-match.is-bad {
  color: #b91c1c;
  font-weight: 600;
}
.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;
  align-items: flex-start;
  gap: 10px;
}
.site-vo-surface-trench-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  width: 100%;
}
.site-vo-surface-trench-row > #voSurfaceHost,
.site-vo-surface-trench-row > #voTrenchDimHost {
  min-width: 0;
  max-width: 100%;
}
.site-vo-surface-trench-row > #voSurfaceHost {
  flex: 1 1 220px;
}
.site-vo-surface-trench-row > #voTrenchDimHost {
  flex: 1 1 280px;
}
.site-vo-surface-trench-row #voSurfaceHost .site-mnt-btn-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.site-vo-surface-trench-row > #voSurfaceHost .site-mnt-field,
.site-vo-surface-trench-row > #voTrenchDimHost .site-mnt-field {
  height: 100%;
  box-sizing: border-box;
}
.site-vo-surface-trench-row .site-vo-trench-dims {
  overflow: visible;
}
.site-vo-surface-trench-row .site-vo-trench-dims .site-trench-group--dims {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}
.site-vo-surface-trench-row .site-dim-step-btn {
  min-width: 36px;
  width: 36px;
  height: 36px;
  min-height: 36px;
  font-size: 1.2rem;
}
.site-vo-surface-trench-row .site-trench-inline-dim {
  width: 40px;
  min-width: 40px;
  min-height: 36px;
}
.site-vo-mh-materials {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}
.site-vo-mh-materials .vo-material-btn {
  flex: 0 1 auto;
  width: auto;
  max-width: 240px;
  min-height: 48px;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
  padding: 8px 10px;
}
.site-mnt-field--tone-materials {
  background: #f0fdf4;
  border-color: #86efac;
}
.vo-special-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.vo-special-item .site-mnt-choice-btn {
  flex: 0 1 auto;
  width: auto;
  max-width: 240px;
  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-day-card--premix .vo-day-use-btn.is-active {
  border-color: #047857;
  background: #ecfdf5;
  color: #047857;
}
.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-report-block {
  margin-top: 12px;
  padding-top: 4px;
}
.site-vo-report-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.site-vo-report-row .btn {
  min-height: 48px;
  font-weight: 700;
}
.site-vo-report-pdf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  min-width: 52px;
  padding: 0;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.site-vo-report-pdf-btn:active {
  background: #f1f5f9;
}
.site-vo-report-pdf-btn:disabled,
.site-vo-report-share-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
.site-vo-report-pdf-btn.is-ready {
  border-color: #b91c1c;
  background: #fff7f7;
}
.site-vo-report-share-btn {
  min-height: 52px;
  font-weight: 700;
}
.site-vo-report-share-btn.is-ready {
  background: var(--lz-red, #b91c1c);
  border-color: var(--lz-red, #b91c1c);
  color: #fff;
}
.site-vo-photo-add-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin-top: 8px;
}
.site-vo-photo-btn {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  min-height: 88px;
  padding: 16px 18px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-radius: 12px;
}
.site-precon-panel--min .site-precon-min-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.site-precon-panel--min .site-precon-min-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  flex-shrink: 0;
}
.site-precon-lm-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.site-lm-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: max(8px, env(safe-area-inset-top, 0)) 8px max(8px, env(safe-area-inset-bottom, 0));
}
.site-lm-panel {
  width: min(960px, 100%);
  max-height: 100%;
  background: #f8fafc;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
}
.site-lm-topbar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.site-lm-topbar-main {
  min-width: 0;
  flex: 1;
}
.site-lm-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}
.site-lm-body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.site-lm-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #475569;
  padding: 24px 8px;
}
.site-lm-plan-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-lm-plan-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.site-lm-plan-card strong {
  color: #0f172a;
}
.site-lm-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.site-lm-tool.is-active {
  border-color: #b91c1c;
  color: #b91c1c;
  background: #fef2f2;
}
.site-lm-viewport {
  flex: 1 1 auto;
  min-height: min(62vh, 520px);
  overflow: hidden;
  background: #e2e8f0;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  touch-action: none;
  position: relative;
  overscroll-behavior: contain;
}
.site-lm-stage {
  transform-origin: 0 0;
  width: max-content;
  padding: 12px;
  will-change: transform;
}
.site-lm-map {
  position: relative;
  display: inline-block;
  line-height: 0;
  cursor: crosshair;
  touch-action: none;
}
.site-lm-map.is-pan {
  cursor: grab;
}
.site-lm-map > img {
  display: block;
  max-width: min(100%, 900px);
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.site-lm-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.site-lm-shape {
  fill: rgba(220, 38, 38, 0.18);
  stroke: #dc2626;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}
.site-lm-handle {
  fill: #fff;
  stroke: #b91c1c;
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
html.site-location-mark-open,
html.site-location-mark-open body {
  overflow: hidden;
}
html[data-site-theme="dark"] .site-lm-panel,
html[data-site-theme="dark"] .site-lm-topbar,
html[data-site-theme="dark"] .site-lm-plan-card {
  background: #0f172a;
  border-color: #334155;
}
html[data-site-theme="dark"] .site-lm-title,
html[data-site-theme="dark"] .site-lm-plan-card strong {
  color: #f8fafc;
}
html[data-site-theme="dark"] .site-lm-viewport {
  background: #1e293b;
  border-color: #334155;
}
.site-precon-panel--min .site-precon-min-copy {
  min-width: 0;
  flex: 1 1 auto;
}
.site-precon-panel--min .site-precon-min-copy h4 {
  margin: 0 0 4px;
}
.site-precon-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.site-precon-head-row h4 {
  margin: 0;
  flex: 1 1 auto;
}
.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: 104px;
  height: auto;
  flex: 0 0 auto;
}
.site-vo-photo-caption {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.3;
  color: #334155;
  font-weight: 600;
  word-break: break-word;
}
.site-vo-photo-thumb {
  display: block;
  width: 100%;
  height: 72px;
  padding: 0;
  margin: 0;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f1f5f9 center/cover no-repeat;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.site-vo-photo-thumb:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.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-photo-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}
.site-vo-photo-portion {
  flex: 0 1 auto;
  min-width: 96px;
  max-width: 160px;
}
.site-vo-photo-portion.is-active {
  background: #166534;
  border-color: #166534;
  color: #fff;
}
.site-vo-photo-portion-chip {
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  z-index: 2;
  border: 0;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  padding: 3px 4px;
  cursor: pointer;
  touch-action: manipulation;
}
.site-vo-photo-move {
  display: block;
  width: 100%;
  max-width: 160px;
  margin-top: 4px;
  font-size: 12px;
}
.site-vo-client-mh {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}
.site-vo-id-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.site-vo-id-row input { flex: 1; min-width: 0; }
.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-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}
.site-visitor-findings-choice .btn { flex: 1 1 180px; }
.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-materials { background: #f0fdf4; border-color: #86efac; }
.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-oil-chamber-prefix {
  flex: 0 0 auto;
  min-width: 52px;
  min-height: 53px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #1d4ed8;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.06em;
  user-select: none;
}
.site-mnt-chamber-auto-hint {
  margin: 6px 0 0;
  color: #b45309;
  font-weight: 700;
}
.site-mnt-btn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}
.site-mnt-btn-grid--oil-cond {
  grid-template-columns: repeat(3, minmax(0, 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-btn-grid--oil-cond .site-mnt-choice-btn {
  min-height: 48px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  line-height: 1.2;
  padding: 12px 6px;
}
.site-mnt-btn-grid--oil-cond .site-mnt-choice-btn.is-active::before {
  content: none;
}
.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-use-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-vo-day-use-row .vo-day-use-btn {
  flex: 1 1 auto;
}
.site-vo-premix-add-beside-use {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 12px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}
.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;
  flex: 1 1 auto;
  min-width: 0;
}
.site-vo-day-summary-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.site-vo-day-summary-actions .btnVoPremixAddLoad {
  min-width: 40px;
  min-height: 40px;
  padding: 6px 12px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}
.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; }
.lz-library-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 16px;
  border-bottom: 1px solid #e2e8f0;
}
.lz-library-tab {
  border: 0;
  background: transparent;
  color: #64748b;
  padding: 10px 16px 12px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.lz-library-tab.is-active {
  color: #b91c1c;
  border-bottom-color: #b91c1c;
}
.lz-library-ask-box {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.lz-library-ask-input {
  flex: 1 1 auto;
  width: 100%;
  min-height: 52px;
  border: 0;
  resize: vertical;
  font: inherit;
  font-weight: 400;
  color: #0f172a;
  background: transparent;
  outline: none;
}
.lz-library-ask-note { margin: 8px 2px 0; }
.lz-lib-answer {
  margin-top: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}
.lz-lib-doc {
  padding: 14px 14px 12px;
  border-top: 1px solid #e2e8f0;
}
.lz-lib-doc:first-child { border-top: 0; }
.lz-lib-doc-points p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.55;
  color: #0f172a;
}
.lz-lib-doc-points p:last-child { margin-bottom: 0; }
.lz-lib-doc-sources {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.lz-lib-doc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fff7f7;
}
.lz-lib-page-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lz-lib-page {
  border: 1px solid #fecaca;
  background: #fff;
  color: #b91c1c;
  border-radius: 8px;
  padding: 6px 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}
.lz-lib-page:hover { background: #fff1f2; }
.lz-lib-doc-name {
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: #0f172a;
}
.lz-view-pdf-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 12px;
  background: #1e293b;
  color: #f8fafc;
  flex-shrink: 0;
}
.lz-view-pdf-pager span {
  min-width: 7.5rem;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.lz-library-ask-ready { margin: 0; color: #047857; }
@media (max-width: 640px) {
  .lz-library-ask-box { flex-direction: column; align-items: stretch; }
}

/* 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-refresh {
  font-size: 22px;
  font-weight: 700;
}
.site-portal-refresh.is-busy {
  opacity: 0.55;
  pointer-events: none;
}
.site-ftbm-add-extra {
  margin: 10px 0 4px;
  width: 100%;
  justify-content: center;
}

/* 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-site-announce--team {
  background: linear-gradient(135deg, #431407 0%, #7c2d12 40%, #1c1917 100%);
  border-color: #ea580c;
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.2);
}
html[data-site-theme="dark"] .portal-site-announce--team .portal-site-announce-head h2 {
  color: #ffedd5;
}
html[data-site-theme="dark"] .portal-site-announce--team .portal-site-announce-head .feed-meta {
  color: #fdba74;
}
html[data-site-theme="dark"] .portal-site-announce-card {
  background: #292524;
  border-color: #c2410c;
}
html[data-site-theme="dark"] .portal-site-announce-msg {
  color: #ffedd5;
}
html[data-site-theme="dark"] .portal-site-announce-empty {
  border-color: #9a3412;
  background: rgba(0, 0, 0, 0.25);
}
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--psi {
  background: #052e16;
  border-color: #166534;
  border-left-color: #4ade80;
}
html[data-site-theme="dark"] .portal-env-card--psi .portal-env-card-icon {
  color: #86efac;
  background: #14532d;
}
html[data-site-theme="dark"] .portal-env-card--psi h3 { color: #86efac; }
html[data-site-theme="dark"] .portal-env-reading--normal { color: #f5f5f5; }
html[data-site-theme="dark"] .portal-env-reading--medium { color: #fbbf24; }
html[data-site-theme="dark"] .portal-env-reading--high { color: #fb923c; }
html[data-site-theme="dark"] .portal-env-reading--critical { color: #fca5a5; }
html[data-site-theme="dark"] .portal-env-card--medium,
html[data-site-theme="dark"] .portal-env-card--advisory {
  background: #3f2e0a !important;
  border-color: #a16207 !important;
  border-left-color: #fbbf24 !important;
}
html[data-site-theme="dark"] .portal-env-card--medium h3,
html[data-site-theme="dark"] .portal-env-card--advisory h3 { color: #fbbf24; }
html[data-site-theme="dark"] .portal-env-card--high,
html[data-site-theme="dark"] .portal-env-card--severe {
  background: #431407 !important;
  border-color: #9a3412 !important;
  border-left-color: #fb923c !important;
}
html[data-site-theme="dark"] .portal-env-card--high h3,
html[data-site-theme="dark"] .portal-env-card--severe h3 { color: #fb923c; }
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"] .site-safety-part2-bar {
  background: #141414;
  border-color: #444;
}
html[data-site-theme="dark"] .site-safety-part2-id {
  color: #f5f5f5;
}
html[data-site-theme="dark"] .site-safety-part2-info {
  background: linear-gradient(180deg, #2a2410 0%, #141414 45%);
  border-color: #78350f;
}
html[data-site-theme="dark"] .site-safety-part2-action {
  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 {
  background: #052e16;
  border-color: #166534;
}
html[data-site-theme="dark"] .site-dr-card--submitted {
  background: #0c1a2e;
  border-color: #1e40af;
}
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-dr-sandbox-badge {
  color: #e9d5ff;
  background: #5b21b6;
}
html[data-site-theme="dark"] .site-term-sandbox-banner {
  color: #e9d5ff;
  background: #3b0764;
  border-color: #6b21a8;
}
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-oil-chamber-prefix {
  background: #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-rows--summary .site-mp-row:active {
  background: #422006;
}
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,
html[data-site-theme="dark"] .site-mp-remarks-text {
  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,
html[data-site-theme="dark"] .site-mnt-field--tone-materials {
  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; }
html[data-site-theme="dark"] .site-mnt-field--tone-materials { border-color: #166534; background: #102016; }

/* 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: 6px 8px;
  border-right: 1px solid #e2e8f0;
  overflow: hidden;
  min-width: 0;
  width: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}
.mnt-overlay-col--text {
  overflow: hidden;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
}
.mnt-overlay-map-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mnt-overlay-col:last-child { border-right: none; }
.mnt-overlay-mid,
.mnt-overlay-right {
  line-height: 1.15;
  color: #334155;
}
.mnt-overlay-line {
  margin: 0;
  line-height: 1.15;
  width: 100%;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
  flex: 0 0 auto;
}
.mnt-overlay-line--italic,
.mnt-overlay-line--italic em,
.mnt-overlay-line--italic strong {
  font-style: italic !important;
  font-family: Georgia, 'Times New Roman', Times, serif !important;
}
.mnt-overlay-line:last-child { margin-bottom: 0; }
.mnt-overlay-right { color: #334155; }
.mnt-overlay-map {
  background: #f1f5f9;
  min-height: 0;
  position: relative;
  padding: 0;
  overflow: hidden;
}
.mnt-overlay-map-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.mnt-overlay-map-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 10px;
  margin: 0;
  padding: 0;
}
.mnt-overlay-map-img img,
.mnt-overlay-map-img .mnt-overlay-map-loaded {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}
.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; padding: 8px; }
.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-italic em { font-style: italic; font-family: Georgia, 'Times New Roman', serif; }
.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-plan-open-review {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: #0f4c81;
  cursor: pointer;
  text-align: left;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mnt-plan-open-review:hover,
.mnt-plan-open-review:focus-visible {
  color: #b91c1c;
  outline: none;
}
.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 (4 for Restricted), blue, no border */
.ag-lgsw-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: max-content;
  min-width: 140px;
  max-width: none;
  overflow: visible;
  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;
  white-space: nowrap;
}
.ag-lgsw-stamp-name,
.ag-lgsw-stamp-role,
.ag-lgsw-stamp-qualifier,
.ag-lgsw-stamp-license {
  width: auto;
  text-align: center;
  color: #1d4ed8;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
.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-qualifier {
  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: none;
}
.ag-lgsw-stamp--compact .ag-lgsw-stamp-name { font-size: 12px; }
.ag-lgsw-stamp--compact .ag-lgsw-stamp-role,
.ag-lgsw-stamp--compact .ag-lgsw-stamp-qualifier { font-size: 11px; }
.ag-lgsw-stamp--compact .ag-lgsw-stamp-license { font-size: 11px; }

/* Generated PE circular chop (PEB-style) */
.ag-pe-chop {
  width: 148px;
  height: 148px;
  color: #1B4A8C;
  flex-shrink: 0;
}
.ag-pe-chop svg {
  width: 100%;
  height: 100%;
  display: block;
}
.ag-pe-chop--compact {
  width: 92px;
  height: 92px;
}

/* 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;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.ag-lgsw-license-side:focus,
.ag-lgsw-license-side.is-paste-target {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}
.ag-lgsw-license-side.is-file-drag {
  border-color: #1d4ed8;
  background: #dbeafe;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.28);
}
.ag-lgsw-license-side.is-uploading {
  opacity: 0.72;
  pointer-events: none;
}
.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;
  text-align: center;
  padding: 0 12px;
  color: #94a3b8;
  font-size: 12px;
}
.ag-lgsw-license-hint {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: #64748b;
}
@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--master::after {
  margin-top: -28px;
}
.gps-road-board-layer-group-sum-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-right: 16px;
}
.gps-road-board-layer-group-sum .feed-meta {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
}
.gps-road-switch--master {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
}
.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-twin {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
}
.gps-road-twin > .gps-monitor-map-wrap {
  flex: 1 1 auto;
  min-width: 0;
}
.gps-road-twin-plan {
  flex: 0 0 42%;
  max-width: 520px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e2e8f0;
  background: #f8fafc;
  min-height: 0;
}
.gps-road-twin-plan.hidden { display: none; }
.gps-road-twin-plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
}
.gps-road-twin-plan-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 8px 12px 12px;
}
.gps-road-twin-plan-body img,
.gps-road-twin-plan-body embed,
.gps-road-twin-plan-body iframe {
  display: block;
  width: 100%;
  min-height: 280px;
  max-height: calc(100vh - 220px);
  border: 1px solid #e2e8f0;
  background: #fff;
}
.gps-road-twin.is-open .gps-monitor-map-wrap {
  flex: 1 1 58%;
}
@media (max-width: 900px) {
  .gps-road-twin.is-open {
    flex-direction: column;
  }
  .gps-road-twin-plan {
    flex: 0 0 auto;
    max-width: none;
    max-height: 36vh;
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
  }
  .gps-road-twin-plan-body img,
  .gps-road-twin-plan-body embed,
  .gps-road-twin-plan-body iframe {
    max-height: 28vh;
    min-height: 160px;
  }
}
.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: block;
  transform-origin: 50% 50%;
  pointer-events: none;
  line-height: 0;
}
.gps-road-lta-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.gps-road-draw-arrow-icons {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  max-width: 220px;
  padding: 2px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  vertical-align: middle;
}
.gps-road-draw-arrow-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 2px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  line-height: 0;
}
.gps-road-draw-arrow-icon-btn:hover {
  border-color: #94a3b8;
  background: #eff6ff;
}
.gps-road-draw-arrow-icon-btn.is-active {
  border-color: #2563eb;
  background: #dbeafe;
  box-shadow: 0 0 0 1px #2563eb;
}
.gps-road-lta-arrow-preview {
  display: block;
  line-height: 0;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}
.gps-road-lta-arrow-preview svg {
  display: block;
  overflow: visible;
}
.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-extra-gantry {
  width: auto;
  height: auto;
  border-radius: 2px;
  background: #2563eb;
  box-shadow: 0 0 0 1px #fff;
}
.gps-road-erp-icon {
  background: transparent !important;
  border: 0 !important;
  pointer-events: none !important;
}
.gps-road-erp-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 16px;
  box-sizing: border-box;
  background: #2563eb;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  border-radius: 2px;
  box-shadow: 0 0 0 1px #fff;
}
.gps-road-extra-bollard {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: #0f172a;
  box-shadow: 0 0 0 1.5px #f8fafc;
}
.gps-road-bus-bay-mark {
  color: #111827;
  letter-spacing: 0.12em;
  -webkit-text-stroke: 0.08em #fef08c;
  text-shadow:
    0 0 1px #fef08c,
    1px 0 0 #fef08c,
    -1px 0 0 #fef08c,
    0 1px 0 #fef08c,
    0 -1px 0 #fef08c;
}
.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-tri {
  display: block;
  line-height: 0;
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 1px 1px rgba(15, 23, 42, 0.35));
}
.gps-road-bus-tri svg {
  display: block;
  overflow: visible;
}
.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-board-layer.is-loading .gps-road-board-layer-label {
  opacity: 0.85;
}
.gps-road-board-layer.is-loading .feed-meta {
  color: #ca8a04;
  font-weight: 700;
}
.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-trench-inline-type-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 0;
  width: 100%;
  min-width: 0;
}
.site-trench-inline-type-row > .site-trench-inline-num {
  flex: 0 0 auto;
  align-self: center;
}
.site-trench-inline-type-row > .site-trench-inline-lead {
  flex: 0 0 auto;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  max-width: 4.6rem;
  min-width: 3.2rem;
}
.site-trench-inline-lead .site-trench-inline-num {
  display: block;
  line-height: 1.15;
  white-space: normal;
}
.site-trench-th-mini {
  min-width: 38px !important;
  width: 100% !important;
  max-width: 4.6rem;
  min-height: 32px !important;
  padding: 0 !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  line-height: 1 !important;
  color: #166534 !important;
  border: 1px solid #86efac !important;
  border-radius: 8px !important;
  background: #dcfce7 !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  cursor: pointer;
}
.site-trench-th-mini:active {
  background: #bbf7d0 !important;
}
.site-trench-th-mini.is-labeled {
  color: #14532d !important;
  border-color: #4ade80 !important;
  background: #bbf7d0 !important;
}
.site-trench-inline-lead .site-trench-th-badge {
  display: none !important;
}
.site-trench-inline-type-row > .site-trench-group-sep {
  display: none;
}
.site-trench-inline-type-row > .site-term-del,
.site-trench-inline-type-row > .site-trench-add-btn,
.site-trench-inline-type-row > .site-trench-row-actions {
  flex: 0 0 auto;
  align-self: center;
}
.site-trench-row-actions,
.portal-site-body .site-trench-row-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 4px;
  transform: scale(0.95);
  transform-origin: top right;
}
.site-trench-photo-actions,
.portal-site-body .site-trench-photo-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}
.site-trench-photo-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  margin: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.site-trench-photo-icon-btn:active {
  background: #f8fafc;
  border-color: #94a3b8;
}
.site-trench-th-badge {
  display: none;
}
.site-trench-th-badge.is-on {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.site-trench-photo-icon-btn input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 16px;
}
.site-term-del-x {
  min-width: 38px !important;
  width: 100%;
  min-height: 32px !important;
  padding: 0 !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  color: #b91c1c !important;
}
.site-special-inline-row--compact .site-term-del-x {
  flex: 0 0 38px;
  width: 38px;
  align-self: center;
}
.site-trench-photo-status {
  margin: 4px 0 0;
  color: #1d4ed8;
  font-weight: 600;
}
.site-trench-photo-count {
  display: none;
  margin: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: #dbeafe;
  border: 1px solid #93c5fd;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
}
.site-trench-photo-count.is-on {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.site-trench-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  min-width: 0;
  box-sizing: border-box;
}
.site-trench-group--type {
  flex: 0 0 35%;
  width: 35%;
  max-width: 35%;
  background: #fff7ed;
  border-color: #fdba74;
  overflow: hidden;
}
.site-trench-group--dims {
  flex: 1 1 65%;
  width: auto;
  min-width: 0;
  background: #eff6ff;
  border-color: #93c5fd;
  overflow: hidden;
}
.site-trench-add-wrap--fields .site-trench-group--dims.is-composer-muted,
.site-special-add-wrap--compact .site-special-qty-label.is-composer-muted,
.site-special-add-wrap--compact .site-special-remarks-label.is-composer-muted {
  opacity: 0.48;
  pointer-events: none;
  filter: grayscale(0.4);
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #64748b;
}
.site-trench-add-wrap--fields .site-trench-group--dims.is-composer-muted .site-trench-group-label {
  color: #64748b;
}
.site-trench-add-wrap--fields .site-trench-add-btn,
.site-special-add-wrap--compact .site-special-add-btn {
  display: none !important;
}
.site-trench-group-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1.2;
}
.site-trench-group--type .site-trench-group-label {
  color: #9a3412;
}
.site-trench-group--dims .site-trench-group-label {
  color: #1d4ed8;
}
.site-trench-group-sep {
  display: none;
}
.site-trench-type-btns {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  width: 100%;
}
.site-trench-type-btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 40px;
  padding: 6px 2px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.site-trench-type-btn.is-active {
  border-color: #991b1b;
  background: #fff7f7;
  color: #7f1d1d;
  box-shadow: 0 0 0 2px rgba(153, 27, 27, 0.12);
}
.site-trench-other-hint {
  margin: 4px 0 0;
  color: #b45309;
}
.site-term-mat-selected {
  margin: 10px 0;
  padding: 10px 12px;
}
.site-term-mat-readonly {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.4;
  color: #0f172a;
}
.site-term-mat-orient-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.site-term-orient-btn {
  min-height: 44px;
  min-width: 56px;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}
.site-term-orient-btn:active,
.site-term-orient-btn:hover {
  border-color: #991b1b;
  background: #fff7f7;
}
.site-term-mat-recorded-row .site-term-row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.site-term-mat-pipe-len-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin-top: 6px;
}
.site-term-mat-pipe-len-row .site-ftbm-field-label {
  flex: 1 1 140px;
  min-width: 120px;
}
.site-term-mat-sleeve-fields {
  display: grid;
  grid-template-columns: minmax(88px, 1fr) minmax(88px, 1fr);
  gap: 10px;
  flex: 1 1 220px;
  min-width: 180px;
}
.site-term-mat-sleeve-fields .site-ftbm-field-label {
  min-width: 0;
  flex: 1 1 auto;
}
.site-term-mat-sleeve-size-input {
  width: 5rem;
  max-width: 28vw;
}
.site-term-mat-len-edit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.site-term-mat-len-input {
  width: 6.5rem;
  max-width: 40vw;
  font-weight: 700;
}
.site-term-mat-len-input.is-error {
  border-color: #dc2626 !important;
  background: #fef2f2;
}
html[data-site-theme="dark"] .site-trench-type-btn,
html[data-site-theme="dark"] .site-term-orient-btn {
  background: #111827;
  border-color: #334155;
  color: #e2e8f0;
}
html[data-site-theme="dark"] .site-trench-type-btn.is-active {
  background: #1f1212;
  border-color: #f87171;
  color: #fecaca;
}
html[data-site-theme="dark"] .site-term-mat-readonly {
  color: #f8fafc;
}
.site-term-empty {
  margin-bottom: 8px;
}
.site-trench-inline-head,
.site-term-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.site-trench-inline-head h4,
.site-term-section-head h4 {
  margin: 0 0 4px;
}
.site-term-section-head .site-term-add,
.site-term-section-head .btn {
  flex-shrink: 0;
  margin-left: auto;
}
.site-trench-req {
  color: #dc2626;
  font-weight: 800;
}
.site-trench-req-hint {
  margin: 0 0 10px;
  color: #9a3412;
}
.site-trench-inline-section .site-term-status {
  display: inline-block;
  min-height: 1.2em;
  margin-bottom: 6px;
}
.site-trench-row-error {
  margin: 0 0 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.85rem;
  font-weight: 600;
}
.site-trench-group.is-error {
  box-shadow: 0 0 0 2px #dc2626;
  border-color: #dc2626 !important;
}
.site-trench-inline-dim.is-error {
  border-color: #dc2626 !important;
  background: #fef2f2;
}
html[data-site-theme="dark"] .site-trench-req-hint {
  color: #fdba74;
}
html[data-site-theme="dark"] .site-trench-row-error {
  background: #450a0a;
  border-color: #7f1d1d;
  color: #fecaca;
}
html[data-site-theme="dark"] .site-trench-inline-dim.is-error {
  background: #450a0a;
}
.site-trench-inline-row {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.site-trench-inline-line {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px 6px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
}
.site-trench-inline-num {
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  align-self: center;
  padding: 0 2px;
}
.site-trench-inline-type {
  width: auto;
  min-width: 110px;
  max-width: 160px;
  flex: 0 1 auto;
}
.site-trench-inline-dim {
  width: 52px;
  min-width: 48px;
  min-height: 44px;
  flex: 0 0 auto;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
  padding-left: 4px;
  padding-right: 4px;
}
.site-trench-inline-dim::-webkit-outer-spin-button,
.site-trench-inline-dim::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.site-dim-stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
.site-dim-step-btn {
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  border-radius: 10px;
  touch-action: manipulation;
}
.site-trench-inline-sep {
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
  padding: 0 1px;
  flex: 0 0 auto;
}
.site-special-qty-stepper {
  width: 100%;
}
.site-special-qty-stepper .site-special-qty-input {
  width: 52px;
  min-width: 48px;
  flex: 1 1 auto;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
.site-special-qty-stepper .site-special-qty-input::-webkit-outer-spin-button,
.site-special-qty-stepper .site-special-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.site-trench-inline-unit {
  font-size: 11px;
  color: #475569;
  white-space: nowrap;
  flex: 0 0 auto;
}
.site-trench-remarks-toggle {
  display: none;
}
.site-trench-remarks-toggle.has-text,
.site-trench-remarks-toggle.is-open {
  border-color: #991b1b;
  color: #7f1d1d;
  background: #fff7f7;
}
.site-trench-inline-remarks {
  width: 100%;
  display: none;
}
.site-trench-inline-remarks.is-open {
  display: block;
}
.site-special-inline-row--compact {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  padding: 6px 8px;
  min-height: 44px;
}
.site-special-inline-num {
  flex: 0 0 28px;
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  text-align: center;
}
.site-special-fields--compact {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.site-special-fields--compact .site-ftbm-field-label {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  min-width: 0;
}
.site-special-fields--compact .site-special-item-label {
  flex: 1.4 1 140px;
  min-width: 120px;
}
.site-special-fields--compact .site-special-qty-label {
  flex: 0 0 140px;
}
.site-special-fields--compact .site-special-unit-label {
  flex: 0 0 64px;
}
.site-special-fields--compact .site-special-remarks-label {
  flex: 1 1 100px;
  min-width: 80px;
}
.site-special-field-cap {
  display: none;
}
.site-special-inline-row--compact .site-term-del {
  flex: 0 0 auto;
}
.site-special-add-wrap--compact {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 6px 8px;
  border: 1px dashed #93c5fd;
  border-radius: 10px;
  background: rgba(239, 246, 255, 0.7);
}
.site-special-add-wrap--compact .site-special-add-btn {
  align-self: center;
  min-width: 40px;
  min-height: 40px;
}
.site-vo-premix-load-card.is-minimized {
  padding: 8px 10px;
  background: #f8fafc;
}
.site-vo-premix-load-card.is-confirmed.is-minimized {
  border-color: #86efac;
  background: #f0fdf4;
}
.site-vo-premix-load-card.is-processing {
  border-color: #fdba74;
  background: #fff7ed;
}
.site-vo-premix-load-card.is-processing .site-vo-premix-load-head {
  align-items: center;
}
.site-vo-premix-busy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  width: 100%;
}
.site-vo-premix-busy .site-vo-donut {
  width: 28px;
  height: 28px;
  border-width: 3px;
}
.site-vo-premix-busy-msg {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #9a3412;
}
.site-vo-premix-load-head-actions {
  display: inline-flex;
  gap: 4px;
  margin-left: auto;
}
.site-vo-premix-confirmed-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #166534;
  background: #dcfce7;
}
.site-trench-add-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px dashed #fda4af;
  border-radius: 10px;
  background: rgba(255, 241, 242, 0.75);
}
.site-trench-add-wrap--fields {
  display: block;
  padding: 10px 12px;
}
.site-trench-add-wrap--fields .site-trench-inline-type-row {
  width: 100%;
}
.site-trench-add-wrap--fields .site-trench-add-btn {
  align-self: center;
}
.site-trench-add-hint {
  flex: 1;
  margin: 0;
  font-size: 13px;
}
.site-trench-add-btn {
  min-width: 44px;
  min-height: 44px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 auto;
}
.site-trench-inline-row.is-pump {
  animation: site-trench-row-pump 0.32s ease-out;
}
@keyframes site-trench-row-pump {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (max-width: 900px) {
  .site-special-inline-row--compact,
  .site-special-add-wrap--compact {
    flex-wrap: wrap;
  }
  .site-special-fields--compact {
    flex-wrap: wrap;
    width: 100%;
  }
  .site-special-field-cap {
    display: block;
  }
}
.site-special-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.site-special-fields {
  display: grid;
  grid-template-columns: minmax(140px, 1.4fr) minmax(72px, 0.5fr) minmax(72px, 0.5fr) minmax(120px, 1fr) auto;
  gap: 8px 10px;
  align-items: end;
}
.site-special-fields .site-ftbm-field-label {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}
.site-special-add-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  align-self: end;
}
.site-special-add-wrap {
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed #93c5fd;
  border-radius: 12px;
  background: rgba(239, 246, 255, 0.7);
}
.site-special-add-hint {
  margin: 0 0 8px;
  font-weight: 700;
  color: #1e40af;
}
@media (max-width: 720px) {
  .site-special-fields {
    grid-template-columns: 1fr 1fr;
  }
  .site-special-remarks-label {
    grid-column: 1 / -1;
  }
  .site-special-add-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}
.site-term-form input[data-auto-from-item="1"][readonly] {
  background: #f8fafc;
  color: #475569;
  cursor: default;
}
html[data-site-theme="dark"] .site-trench-group--type {
  background: #1f1712;
  border-color: #9a3412;
}
html[data-site-theme="dark"] .site-trench-group--dims {
  background: #0f1a2a;
  border-color: #1d4ed8;
}
html[data-site-theme="dark"] .site-trench-add-wrap--fields .site-trench-group--dims.is-composer-muted,
html[data-site-theme="dark"] .site-special-add-wrap--compact .site-special-qty-label.is-composer-muted,
html[data-site-theme="dark"] .site-special-add-wrap--compact .site-special-remarks-label.is-composer-muted {
  background: #1e293b;
  border-color: #475569;
  color: #94a3b8;
}
html[data-site-theme="dark"] .site-trench-group-label {
  color: #94a3b8;
}
html[data-site-theme="dark"] .site-trench-group-sep {
  background: linear-gradient(180deg, transparent, #475569 20%, #64748b 50%, #475569 80%, transparent);
}
html[data-site-theme="dark"] .site-trench-inline-num {
  color: #f8fafc;
}
html[data-site-theme="dark"] .site-trench-inline-unit {
  color: #94a3b8;
}
html[data-site-theme="dark"] .site-trench-remarks-toggle.has-text,
html[data-site-theme="dark"] .site-trench-remarks-toggle.is-open {
  background: #1f1212;
  border-color: #f87171;
  color: #fecaca;
}
html[data-site-theme="dark"] .site-term-form input[data-auto-from-item="1"][readonly] {
  background: #0f172a;
  color: #94a3b8;
}
/* Term Con — single top chrome row (Back + title/loc + 3 tabs), desktop = iPad focus */
.site-term-work-bar {
  display: flex;
  align-items: center;
  gap: 10px 12px;
  flex-wrap: nowrap;
  margin: 0 0 12px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  position: sticky;
  top: 0;
  z-index: 15;
}
.site-term-work-back {
  flex: 0 0 auto;
  white-space: nowrap;
}
.site-term-work-title {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 28%;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.site-term-work-title strong {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-term-work-loc {
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-term-sub-tabs-row {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  justify-content: flex-end;
}
.site-term-xlsx-btn,
#drSchExportExcel,
#pgWoSchExportExcel {
  flex: 0 0 auto;
  white-space: nowrap;
}
.site-term-xlsx-btn.is-busy,
#drSchExportExcel.is-busy,
#pgWoSchExportExcel.is-busy {
  opacity: 0.55;
  pointer-events: none;
}
.sch-export-wrap {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}
.sch-export-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 60;
  min-width: 240px;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}
.sch-export-menu.is-align-left {
  right: auto;
  left: 0;
}
.sch-export-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.sch-export-choice:hover,
.sch-export-choice:focus {
  background: #f1f5f9;
}
.sch-export-choice strong {
  font-size: 13px;
  color: #0f172a;
}
.sch-export-choice span {
  font-size: 12px;
  color: #64748b;
}
.site-term-sub-tabs {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  min-width: 0;
  justify-content: flex-end;
}
.site-term-sub-tab {
  flex: 1 1 0;
  min-width: 0;
  max-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  min-height: 44px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.site-term-sub-tab.is-active {
  border-color: #991b1b;
  background: #fff7f7;
  color: #7f1d1d;
  box-shadow: 0 0 0 2px rgba(153, 27, 27, 0.12);
}
.site-term-photo-desc-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}
.site-term-photo-group-btns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 12px;
}
@media (min-width: 720px) {
  .site-term-photo-section > .site-term-photo-group-btns {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.site-term-photo-group-btn {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.site-term-photo-group-btn.is-active {
  border-color: #991b1b;
  background: #fff7f7;
  color: #7f1d1d;
  box-shadow: 0 0 0 2px rgba(153, 27, 27, 0.12);
}
.site-term-photo-selected-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: 0 0 12px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.site-term-photo-desc-picker-groups {
  margin-top: 10px;
}
.site-term-photo-desc-picker-back {
  flex: 0 0 auto;
}
.site-term-photo-desc-picker-head strong {
  flex: 1 1 auto;
  min-width: 0;
}
.site-term-photo-desc-btn {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.site-term-photo-desc-btn.is-active {
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.18);
  font-weight: 800;
}
.site-term-photo-desc-bubble {
  flex: 1 1 auto;
  display: block;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.site-term-photo-desc-bubble:active {
  filter: brightness(0.97);
}
.site-term-photo-caption {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  padding: 4px 6px 0;
  line-height: 1.3;
}
.site-term-photo-thumb-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}
.site-term-photo-thumb-btn .site-tcp-photo-thumb {
  width: 100%;
  display: block;
  pointer-events: none;
}
.site-term-section-head .site-term-photo-toolbar {
  margin-left: auto;
  flex-shrink: 0;
}
.site-term-section-head .site-term-photo-toolbar .btn {
  margin-left: 0;
}
.site-term-photo-grid--select .drp-tile-check {
  display: block;
}
.site-term-photo-grid--select .site-term-photo-thumb-btn {
  cursor: pointer;
}
.site-term-photo-section .lz-gallery-action-bar {
  margin-top: 0;
  margin-bottom: 10px;
}
.site-term-photo-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 8px;
  min-width: 0;
}
.site-term-photo-meta-row .site-term-del-x {
  flex: 0 0 34px;
  min-width: 34px !important;
  width: 34px;
  min-height: 34px !important;
  align-self: center;
}
.site-term-photo-desc-picker {
  position: fixed;
  inset: 0;
  z-index: 12010;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.site-term-photo-desc-picker-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(15, 23, 42, 0.55);
  cursor: pointer;
}
.site-term-photo-desc-picker-sheet {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: 78vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 14px 14px 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
}
.site-term-photo-desc-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.site-term-photo-desc-picker-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.site-term-photo-desc-picker-btns {
  margin: 10px 0 0;
}
.site-term-photo-desc-picker-status {
  margin-top: 10px;
  color: #1d4ed8;
  font-weight: 600;
}
.site-term-photo-upload-bar {
  margin-bottom: 12px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
}
.site-term-photo-upload-bar .site-tcp-upload-label,
.site-term-photo-upload-bar .site-term-photo-video-btn {
  flex: 1 1 30%;
  width: auto;
  min-width: 110px;
  min-height: 44px;
  padding: 10px 12px;
  justify-content: center;
  text-align: center;
  font-size: 0.95rem;
}
.site-term-photo-video-btn.btn-primary,
.site-term-photo-upload-bar .site-term-photo-video-btn {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #fff;
}
.site-term-photo-video-btn.btn-primary:hover,
.site-term-photo-video-btn.btn-primary:focus {
  background: #1d4ed8;
  border-color: #1e40af;
  color: #fff;
}
html[data-site-theme="dark"] .site-term-photo-video-btn.btn-primary {
  background: #3b82f6;
  border-color: #2563eb;
  color: #fff;
}
.site-term-photo-video-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
.site-term-photo-video-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 1;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  pointer-events: none;
}
.site-term-photo-pick-hint {
  color: #9a3412;
  font-weight: 600;
  margin: 0 0 8px;
}
.site-term-photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.site-term-photo-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
}
.site-term-photo-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: #0f172a;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.site-term-photo-lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.site-term-photo-lightbox-caption {
  color: #e2e8f0;
  margin: 0 44px 8px 4px;
  font-weight: 600;
}
.site-term-photo-lightbox-body {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-term-photo-lightbox-body img,
.site-term-photo-lightbox-body video,
.site-term-photo-lightbox-video {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  background: #000;
}
.site-term-photo-lightbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 4px 10px;
}
.site-term-photo-lightbox-actions .site-touch-btn {
  min-height: 44px;
  min-width: 88px;
}
.lz-photo-annotate {
  position: fixed;
  inset: 0;
  z-index: 14000;
  background: #0f172a;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top, 0);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.lz-photo-annotate.hidden { display: none; }
.lz-photo-annotate-head,
.lz-photo-annotate-tools,
.lz-photo-annotate-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  background: #111827;
  flex-shrink: 0;
}
.lz-photo-annotate-head { justify-content: space-between; }
.lz-photo-annotate-close {
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  font-size: 22px;
  line-height: 1;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.lz-photo-annotate-tools .btn,
.lz-photo-annotate-foot .btn {
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
}
.lz-photo-annotate-tools .btn.is-active {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}
.lz-photo-annotate-colors {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.lz-photo-annotate-color {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
}
.lz-photo-annotate-color[data-ann-color="#dc2626"] { background: #dc2626; }
.lz-photo-annotate-color[data-ann-color="#eab308"] { background: #eab308; }
.lz-photo-annotate-color[data-ann-color="#2563eb"] { background: #2563eb; }
.lz-photo-annotate-color[data-ann-color="#111827"] { background: #111827; }
.lz-photo-annotate-color.is-active {
  box-shadow: 0 0 0 3px #fff;
  border-color: #fff;
}
.lz-photo-annotate-hint {
  flex: 1 1 160px;
  font-size: 12px;
  line-height: 1.3;
  color: #cbd5e1;
}
.lz-photo-annotate-frame-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  background: #0b1220;
  flex-shrink: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}
.lz-photo-annotate-frame-tools[hidden] { display: none !important; }
.lz-photo-annotate-frame-tools .btn.is-active {
  background: #0f766e;
  color: #fff;
  border-color: #0f766e;
}
.lz-photo-annotate-frame-mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.lz-photo-annotate-frame-mask[hidden] { display: none !important; }
.lz-photo-annotate-frame-hole {
  position: absolute;
  border: 2px solid #f8fafc;
  border-radius: 4px;
  box-sizing: border-box;
  box-shadow: 0 0 0 9999px rgba(2, 6, 23, 0.72);
}
.lz-photo-annotate-remarks-wrap {
  width: 100%;
  margin: 0 0 8px;
}
.lz-photo-annotate-remarks-wrap[hidden] { display: none !important; }
#lzPhotoAnnRemarks {
  display: block;
  width: 100%;
  min-height: 72px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.35;
  resize: vertical;
}
.lz-photo-annotate-stage {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  position: relative;
  background: #020617;
  touch-action: none;
  overscroll-behavior: contain;
}
#lzPhotoAnnViewport {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  will-change: transform;
  touch-action: none;
}
#lzPhotoAnnCanvas { display: block; background: #000; touch-action: none; }
.lz-photo-annotate-preview {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.lz-photo-annotate-preview[hidden] { display: none !important; }
.lz-photo-annotate-textbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: 100%;
}
.lz-photo-annotate-textbar[hidden] { display: none !important; }
#lzPhotoAnnTextInput {
  flex: 1 1 160px;
  min-height: 44px;
  font-size: 16px;
  line-height: 1.3;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  box-sizing: border-box;
}
.lz-photo-annotate-status {
  width: 100%;
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
}
.lz-photo-annotate-save {
  margin-left: auto;
}
.lz-video-recorder {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.84);
}
.lz-video-recorder-dialog {
  width: min(720px, 100%);
  background: #0f172a;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.lz-video-recorder-preview {
  display: block;
  width: 100%;
  max-height: 62vh;
  background: #000;
  border-radius: 10px;
  object-fit: cover;
}
.lz-video-recorder-status {
  color: #e2e8f0;
  font-weight: 600;
  margin: 10px 4px 8px;
}
.lz-video-recorder-actions {
  display: flex;
  gap: 8px;
}
.lz-video-recorder-actions .btn {
  flex: 1 1 0;
  min-height: 44px;
}
.drp-thumb-video-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
}
.drp-thumb-btn {
  position: relative;
}
.drp-lightbox video,
.drp-lightbox-video {
  max-width: min(100%, 960px);
  max-height: calc(100vh - 140px);
  border-radius: 8px;
  background: #000;
}
.drp-lightbox-hevc-fallback {
  color: #e2e8f0;
  text-align: center;
  padding: 24px 16px;
  max-width: 28rem;
}
.site-term-sub-tab-label {
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 900px) {
  .site-term-work-bar {
    flex-wrap: wrap;
    align-items: stretch;
  }
  .site-term-work-title {
    flex: 1 1 auto;
    max-width: none;
  }
  .site-term-sub-tabs-row {
    flex: 1 1 100%;
  }
  .site-term-sub-tabs {
    flex: 1 1 auto;
    justify-content: stretch;
  }
  .site-term-sub-tab {
    max-width: none;
  }
}
/* Desktop Term Con matches tablet focus: full width, no side DR list chrome waste */
body.site-work-fullscreen-active .portal-site-header {
  padding-top: 8px;
  padding-bottom: 8px;
}
body.site-work-fullscreen-active .portal-site-show-list-btn {
  display: none !important;
}
.site-work-fullscreen .portal-site-detail {
  padding: 10px 12px !important;
}
.site-term-mat-screen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: calc(100dvh - 120px);
}
.site-term-mat-split {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.72fr);
  gap: 12px;
  align-items: stretch;
  min-height: 0;
  flex: 1;
}
.site-term-mat-preview-pane {
  min-height: 420px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
}
.site-term-mat-preview-canvas {
  flex: 1;
  min-height: 360px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.site-term-sch-hint {
  margin: 0 0 6px;
  padding: 0 4px;
  font-size: 0.78rem;
}
.site-term-sch-zoombar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 0;
  flex: 0 0 auto;
}
.site-term-sch-rotatebar {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 0;
  flex: 0 0 auto;
}
.site-term-sch-rotate-range {
  width: 64px;
  height: 24px;
  accent-color: #dc2626;
  cursor: pointer;
  vertical-align: middle;
}
.site-term-sch-zoom-btn {
  min-width: 34px;
  min-height: 34px;
  padding: 0 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  touch-action: manipulation;
}
.site-term-sch-xlsx-btn.is-busy,
#drSchExportExcel.is-busy {
  opacity: 0.55;
  pointer-events: none;
}
.site-term-sch-zoom-pct {
  min-width: 2.6em;
  font-size: 12px;
  font-weight: 600;
}
.site-term-sch-ann-tools {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 0;
  flex: 0 0 auto;
}
.site-term-day-ops {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.site-term-day-ops-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 34px;
  min-height: 34px;
  width: 34px;
  height: 34px;
  padding: 0;
}
.site-term-day-ops-toggle.is-active,
.site-term-day-ops.is-active .site-term-day-ops-toggle {
  border-color: #b45309;
  color: #92400e;
  background: #fffbeb;
}
.site-term-day-ops-label {
  display: none;
}
.site-term-sch-ann-rubber {
  position: absolute;
  z-index: 6;
  pointer-events: none;
  box-sizing: border-box;
  border: 2px dashed #dc2626;
  transform-origin: 0 0;
}
.site-term-sch-ann-rubber.is-line {
  border-top: 2px dashed #dc2626;
  border-right: none;
  border-bottom: none;
  border-left: none;
  height: 0 !important;
}
.site-term-sch-ann-rubber.is-rect {
  background: rgba(220, 38, 38, 0.06);
}
.site-term-sch-edge,
.site-term-sch-edge-hit {
  touch-action: none;
}
/* Hold-to-open-point armed. Confirms the gesture registered before the 550ms elapses. */
.site-term-sch-edge.is-hold-arming,
.site-term-sch-node.is-hold-arming,
.site-term-sch-joint-label.is-hold-arming {
  opacity: 0.55;
}
.site-term-status {
  display: block;
  min-height: 1.2em;
  font-weight: 600;
  color: #92400e;
}
.site-term-day-ops-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 168px;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.site-term-day-ops-menu[hidden] {
  display: none !important;
}
.site-term-day-ops-item {
  justify-content: flex-start;
  text-align: left;
  width: 100%;
}
.site-term-day-ops-item.is-active {
  border-color: #b45309;
  background: #fffbeb;
  color: #92400e;
}
.site-term-trim-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 50vh;
  overflow: auto;
  margin: 10px 0;
}
.site-term-trim-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
}
.site-term-trim-label {
  flex: 1 1 140px;
  font-size: 0.92rem;
}
.site-term-trim-pipe-opts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  width: 100%;
  margin-top: 4px;
  padding-left: 22px;
}
.site-term-trim-pipe-opts[hidden] {
  display: none !important;
}
.site-term-trim-radio {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: #334155;
  cursor: pointer;
}
.site-term-trim-len {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: #475569;
}
.site-term-trim-len-input {
  width: 4.5rem;
  min-height: 36px;
}
.site-term-sch-ann-btn {
  min-width: 34px;
  min-height: 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #334155;
  border-color: #cbd5e1;
  background: #fff;
  line-height: 1;
  touch-action: manipulation;
}
.site-term-sch-ann-btn.is-active {
  border-color: #dc2626;
  color: #fff;
  background: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.28);
}
.site-term-sch-ann {
  pointer-events: none;
}
.site-term-sch-ann-paint {
  pointer-events: none !important;
}
.site-term-sch-ann-hits .site-term-sch-ann-g {
  pointer-events: all;
  cursor: pointer;
}
.site-term-sch-ann-hits .site-term-sch-ann-hit {
  pointer-events: stroke;
}
.site-term-sch-ann-hits .site-term-sch-ann-hit--fill {
  pointer-events: all;
}
.site-term-sch-viewport.is-move-labels .site-term-sch-ann-hits .site-term-sch-ann-g {
  cursor: move;
}
/* Marks sit under schematic paint — clear material hits while Move labels so mark drag wins.
   Keep Prior Start / Open tips hittable so they can still be dragged / tapped. */
.site-term-sch-viewport.is-move-labels .site-term-sch-edge-hit,
.site-term-sch-viewport.is-move-labels .site-term-sch-surface,
.site-term-sch-viewport.is-move-labels .site-term-sch-stub {
  pointer-events: none;
}
.site-term-sch-viewport.is-ann-editing .site-term-sch-edge-hit,
.site-term-sch-viewport.is-ann-editing .site-term-sch-surface,
.site-term-sch-viewport.is-ann-editing .site-term-sch-stub {
  pointer-events: none;
}
.site-term-sch-ann-handles {
  pointer-events: none;
}
.site-term-sch-ann-handle {
  pointer-events: all;
  cursor: grab;
  touch-action: none;
}
.site-term-sch-ann-handle:active {
  cursor: grabbing;
}
.site-term-sch-ann-handle-dot {
  filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.35));
}
.site-term-sch-ann-editbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 10px;
}
.site-term-sch-viewport.is-ann-draw {
  cursor: crosshair;
}
.site-term-sch-viewport.is-ann-draw .site-term-sch-ann-hits {
  pointer-events: none;
}
.site-term-sch-viewport.is-ann-draw .site-term-sch-ann-handles {
  pointer-events: none;
}
.site-term-ann-edit-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.site-term-ann-edit-kind {
  margin: 0;
  font-size: 1.05rem;
  color: #0f172a;
}
.site-term-ann-remove-btn {
  border-color: #fca5a5;
  color: #991b1b;
  background: #fef2f2;
}
.site-term-ann-remove-btn:hover,
.site-term-ann-remove-btn:focus {
  border-color: #dc2626;
  background: #fee2e2;
  color: #7f1d1d;
}
.site-term-sch-continue--compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.site-term-sch-viewport {
  position: relative;
  flex: 1 1 auto;
  min-height: 240px;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  background: #f8fafc;
  border-radius: 8px;
  -webkit-user-select: none;
  user-select: none;
}
.site-term-sch-viewport.is-move-labels {
  cursor: default;
}
.site-term-sch-viewport.is-place-start,
.site-term-sch-viewport.is-move-start,
.site-term-sch-viewport.is-place-surface {
  cursor: crosshair;
}
.site-term-sch-viewport.is-place-surface .site-term-sch-edge,
.site-term-sch-viewport.is-place-surface .site-term-sch-node {
  cursor: pointer;
}
.site-term-sch-fresh-btn {
  font-size: 14px;
  font-weight: 700;
  border-color: #94a3b8;
  background: #fff;
  color: #0f172a;
}
.site-term-sch-fresh-btn.is-active,
.site-term-sch-icon-btn.site-term-sch-fresh-btn.is-active {
  border-color: #15803d;
  color: #fff;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.35);
}
.site-term-sch-joint-label {
  paint-order: stroke fill;
  stroke: #fff;
  stroke-width: 3px;
  stroke-linejoin: round;
}
.site-term-sch-viewport.is-move-labels .site-term-sch-joint-label {
  cursor: move;
  pointer-events: all;
}
.site-term-sch-prior-day {
  pointer-events: none;
}
.site-term-sch-day-tick {
  pointer-events: none;
  fill: none;
}
.site-term-sch-prior-day-dates {
  pointer-events: none;
}
.site-term-sch-viewport.is-move-labels .site-term-sch-prior-day {
  pointer-events: none;
}
.site-term-sch-viewport.is-move-labels .site-term-sch-prior-day-dates {
  pointer-events: all;
}
.site-term-sch-viewport.is-move-labels .site-term-sch-prior-day-date {
  pointer-events: all;
  cursor: move;
}
.site-term-sch-viewport.is-move-labels .site-term-sch-prior-day-label {
  pointer-events: all;
  cursor: move;
}
.site-term-sch-prior-day-label-hit {
  pointer-events: all;
}
.site-term-sch-daybox-handle {
  pointer-events: none;
}
.site-term-sch-viewport.is-move-labels .site-term-sch-daybox-handle {
  pointer-events: all;
}
.site-term-sch-daybox-handle-dot {
  pointer-events: none;
}
.site-term-sch-daybox-handle-hit {
  pointer-events: all;
}
.site-term-sch-label-leader {
  pointer-events: none;
}
.site-term-sch-stage {
  width: max-content;
  height: max-content;
  max-width: none;
  transform-origin: 0 0;
  will-change: transform;
}
.site-term-sch-svg {
  width: auto;
  height: auto;
  min-height: 0;
  display: block;
  pointer-events: auto;
}
.site-term-sch-save-btn {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  border-color: #94a3b8;
  background: #fff;
}
.site-term-sch-save-btn:hover,
.site-term-sch-save-btn:focus-visible {
  border-color: #dc2626;
  color: #991b1b;
}
.site-term-mat-preview-empty {
  flex: 1;
  min-height: 0;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #fff;
}
.site-term-mat-preview-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
}
.site-term-mat-fitting-preview {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 280px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.site-term-mat-fitting-canvas {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-radius: 8px;
}
.site-term-fitting-svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
}
.site-term-mat-fitting-meta {
  text-align: center;
}
.site-term-mat-fitting-meta strong {
  display: block;
  font-size: 16px;
  color: #0f172a;
  margin-bottom: 2px;
}
.site-term-mat-recorded-row {
  cursor: pointer;
}
.site-term-mat-recorded-row.is-active {
  border-color: #991b1b;
  box-shadow: 0 0 0 2px rgba(153, 27, 27, 0.12);
  background: #fff7f7;
}
html[data-site-theme="dark"] .site-term-mat-fitting-preview,
html[data-site-theme="dark"] .site-term-mat-fitting-canvas {
  background: #0f172a;
  border-color: #334155;
}
html[data-site-theme="dark"] .site-term-mat-fitting-meta strong {
  color: #f8fafc;
}
html[data-site-theme="dark"] .site-term-mat-recorded-row.is-active {
  background: #1f1212;
  border-color: #f87171;
}
.site-term-mat-side {
  padding: 10px 12px;
  overflow: hidden;
  max-height: calc(100dvh - 140px);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.site-term-mat-side-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  min-height: 0;
  flex: 1;
  margin-top: 6px;
  overflow: hidden;
}
.site-term-mat-pane-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 3px;
  margin: 2px 0 4px;
  border-radius: 10px;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
}
.site-term-mat-pane-btn {
  appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  min-height: 40px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  background: transparent;
  cursor: pointer;
  line-height: 1.2;
}
.site-term-mat-pane-btn .feed-meta {
  font-weight: 600;
  color: inherit;
  opacity: 0.85;
}
.site-term-mat-pane-btn.is-active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}
.site-term-mat-recorded {
  margin: 0;
  padding: 0;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  max-height: none;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
}
.site-term-mat-recorded[hidden],
.site-term-mat-catalog-col[hidden] {
  display: none !important;
}
.site-term-mat-catalog-col {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}
.site-term-mat-catalog {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 0;
  max-height: none;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
}
.site-term-mat-catalog-title {
  margin: 0 0 4px;
  font-size: 14px;
}
.site-term-mat-recorded-title {
  margin: 0;
  font-size: 13px;
}
.site-term-mat-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.site-term-mat-chip.is-active {
  border-color: #991b1b;
  box-shadow: 0 0 0 2px rgba(153, 27, 27, 0.15);
  background: #fff7f7;
}
.site-term-mat-chip--simple {
  padding: 8px 10px;
  min-height: 40px;
}
.site-term-mat-chip--simple .site-term-mat-chip-text {
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: row;
  align-items: center;
  gap: 0;
}
.site-term-mat-chip--simple .site-term-mat-chip-text strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #0f172a;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
  text-align: left;
}
.site-term-mat-chip-ef {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 8px;
  margin-left: 8px;
  border-radius: 999px;
  background: #7c2d12;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}
.site-term-mat-chip-brands {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #1e3a5f;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.site-term-mat-chip--multi-brand {
  border-style: dashed;
}
.site-term-brand-pick {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.45);
}
.site-term-brand-pick-card {
  width: min(440px, 100%);
  max-height: min(70vh, 520px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25);
}
.site-term-brand-pick-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.site-term-brand-pick-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
}
.site-term-brand-pick-btn:active,
.site-term-brand-pick-btn:hover {
  border-color: #1e3a5f;
  background: #eff6ff;
}
.site-term-mat-chip--pipe-sdr11 {
  background: #fef08a;
  border-color: #eab308;
}
.site-term-mat-chip--pipe-sdr11.is-active {
  background: #fde047;
  border-color: #991b1b;
}
/* 180mm / 315mm SDR11 pipe — solid orange catalog box */
.site-term-mat-chip--pipe-sdr11-orange {
  background: #ea580c;
  border-color: #c2410c;
  color: #fff;
}
.site-term-mat-chip--pipe-sdr11-orange .site-term-mat-chip-text,
.site-term-mat-chip--pipe-sdr11-orange .site-term-mat-chip-text strong {
  color: #fff;
}
.site-term-mat-chip--pipe-sdr11-orange.is-active {
  background: #c2410c;
  border-color: #7c2d12;
  box-shadow: 0 0 0 2px rgba(194, 65, 12, 0.35);
}
/* SDR21 pipe catalog — real yellow (not peach/orange) */
.site-term-mat-chip--pipe-sdr21 {
  background: #facc15;
  border-color: #ca8a04;
}
.site-term-mat-chip--pipe-sdr21.is-active {
  background: #eab308;
  border-color: #a16207;
}
.site-term-mat-flow {
  margin: 8px 0 10px;
}
.site-term-prompt-modal {
  z-index: 1200;
}
.site-term-prompt-card {
  width: min(420px, 100%);
}
.site-term-prompt-card.site-term-prompt-card--wide,
.site-term-prompt-card.site-term-prompt-card--pevalve {
  width: min(520px, calc(100vw - 24px));
  max-width: min(520px, calc(100vw - 24px));
  overflow-x: hidden;
}
.site-term-prompt-card.site-term-prompt-card--text {
  width: min(560px, calc(100vw - 24px));
  max-width: min(560px, calc(100vw - 24px));
  padding: 20px 22px 22px;
}
.site-term-prompt-card--text #siteTermPromptTitle {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  text-transform: none;
}
.site-term-prompt-card--text #siteTermPromptHint {
  margin: 6px 0 14px;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #475569;
}
.site-term-prompt-card--text .site-term-mat-pipe-len {
  margin: 0;
}
.site-term-prompt-card--text .site-term-mat-pipe-len > .feed-meta {
  margin: 0 0 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #475569;
}
.site-term-prompt-card--text .site-term-mat-pipe-len-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}
.site-term-prompt-card--text .site-term-mat-pipe-len-row .site-ftbm-field-label {
  flex: 1 1 140px;
  min-width: 0;
}
.site-term-prompt-card--text #termMatPipeLenInput {
  font-size: 1.25rem;
  font-weight: 700;
  min-height: 48px;
  padding: 10px 14px;
}
.site-term-prompt-card--text #btnTermMatInsertPipe {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 10px 18px;
  font-weight: 700;
}
.site-term-pipe-len-err {
  margin: 10px 0 0;
  color: #b91c1c;
  font-size: 0.9rem;
  font-weight: 600;
}
.site-term-ann-text-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.site-term-ann-text-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #334155;
}
.site-term-ann-text-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 112px;
  padding: 14px 16px;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: pre-wrap;
  resize: vertical;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}
.site-term-ann-text-input.is-style-bold {
  font-weight: 800;
}
.site-term-ann-text-input.is-style-italic {
  font-style: italic;
}
.site-term-ann-text-input.is-style-underline {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-term-ann-text-style {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.site-term-ann-style-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0;
  padding: 0;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.site-term-ann-style-btn .site-term-ann-style-ico {
  font-size: 1.35rem;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}
.site-term-ann-style-btn.is-bold-ico .site-term-ann-style-ico {
  font-weight: 900;
  font-family: system-ui, Segoe UI, sans-serif;
}
.site-term-ann-style-btn.is-italic-ico .site-term-ann-style-ico {
  font-style: italic;
  font-weight: 700;
}
.site-term-ann-style-btn.is-underline-ico .site-term-ann-style-ico {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: system-ui, Segoe UI, sans-serif;
  font-weight: 700;
}
.site-term-ann-style-btn.is-on {
  border-color: #2563eb;
  background: #dbeafe;
  color: #1e3a8a;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.site-term-ann-style-btn:active {
  transform: scale(0.96);
}
.site-term-ann-style-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.site-term-ann-text-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
}
.site-term-ann-text-size {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-term-ann-size-btn .site-term-ann-style-ico {
  font-family: system-ui, Segoe UI, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
}
.site-term-ann-size-val {
  min-width: 2.2ch;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}
.site-term-sch-ann-size {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.site-term-sch-ann-size-val {
  min-width: 2.2ch;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #334155;
}
.site-term-sch-ann-text.is-italic {
  font-style: italic;
}
.site-term-sch-ann-text.is-underline {
  text-decoration: underline;
}
.site-term-ann-text-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}
.site-term-ann-text-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}
.site-term-ann-text-hint {
  margin: 0;
  font-size: 0.85rem;
}
.site-term-ann-text-actions {
  margin-top: 6px;
}
.site-term-ann-text-actions .btn {
  flex: 1 1 140px;
  min-height: 52px;
  font-size: 1.05rem;
  font-weight: 700;
}
@media (max-width: 520px) {
  .site-term-prompt-card.site-term-prompt-card--text {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    padding: 16px;
  }
  .site-term-ann-text-input {
    min-height: 128px;
    font-size: 1.2rem;
  }
}
.site-term-pevalve-prompt {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}
.site-term-pevalve-photo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.site-term-pevalve-photo-row .btn {
  flex: 1 1 140px;
  min-height: 48px;
  justify-content: center;
}
.site-term-pevalve-photo-list {
  min-width: 0;
}
.site-term-pevalve-prompt .site-term-pevalve-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  min-width: 0;
}
.site-term-pevalve-prompt .site-ftbm-field-label {
  min-width: 0;
}
.site-term-pevalve-prompt .pg-search-input,
.site-term-pevalve-prompt select.pg-search-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 44px;
}
.site-term-pevalve-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.site-term-pevalve-form-actions .btn {
  flex: 1 1 120px;
  min-height: 48px;
  justify-content: center;
}
.site-term-prompt-card .site-term-mat-readonly {
  margin: 0 0 10px;
}
.site-term-prompt-card .site-term-mat-flow,
.site-term-prompt-card .site-term-mat-orient {
  margin: 0;
}
.site-term-prompt-card .site-term-mat-flow-btns,
.site-term-prompt-card .site-term-mat-orient-btns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.site-term-tip-action-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
/* Regen open ends can list many rows — scroll so the Apply button stays reachable. */
.site-term-regen-list {
  max-height: 46vh;
  overflow-y: auto;
  margin: 8px 0 0;
  padding-left: 20px;
}
.site-term-regen-list li {
  margin-bottom: 8px;
  line-height: 1.35;
}
.site-term-tip-action-btns--stack {
  flex-direction: column;
}
.site-term-tip-action-btns .btn {
  min-height: 48px;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
}
.site-term-orient-confirm-lead {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 14px;
}
.site-term-orient-warn {
  color: #b45309 !important;
  font-weight: 700;
}
.site-term-orient-deg {
  margin: 8px 0 4px;
  font-size: 15px;
}
.site-term-mat-side-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.site-term-mat-side-actions #termMatUndo:disabled {
  opacity: 0.45;
}
.site-term-mat-flow-btns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.site-term-flow-btn {
  min-width: 0;
  min-height: 88px;
  padding: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  touch-action: manipulation;
}
.site-term-flow-btn.is-active {
  background: #ecfdf5;
  border-color: #16a34a;
  color: #14532d;
  box-shadow: inset 0 0 0 1px #16a34a;
}
.site-term-mat-chip-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-term-mat-chip-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.site-term-mat-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.site-term-mat-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.3;
  border: 1px solid transparent;
  white-space: nowrap;
}
.site-term-mat-badge--type {
  background: #1e293b;
  color: #fff;
  border-color: #0f172a;
}
.site-term-mat-badge--size {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #94a3b8;
}
.site-term-mat-badge--sdr11 {
  background: #ffedd5;
  color: #9a3412;
  border-color: #ea580c;
}
.site-term-mat-badge--sdr21 {
  background: #fef08a;
  color: #854d0e;
  border-color: #eab308;
}
.site-term-mat-badge--sdr {
  background: #f1f5f9;
  color: #334155;
  border-color: #94a3b8;
}
.site-term-mat-badge--pe {
  background: #ecfdf5;
  color: #065f46;
  border-color: #34d399;
}
.site-term-mat-badge--pn {
  background: #f5f3ff;
  color: #5b21b6;
  border-color: #a78bfa;
}
html[data-site-theme="dark"] .site-term-mat-badge--type {
  background: #e2e8f0;
  color: #0f172a;
}
html[data-site-theme="dark"] .site-term-mat-badge--size {
  background: #334155;
  color: #f8fafc;
  border-color: #64748b;
}
.site-term-mat-recorded-title {
  margin: 12px 0 8px;
  font-size: 14px;
}
.site-term-mat-form {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}
@media (max-width: 900px) {
  .site-term-mat-split {
    grid-template-columns: 1fr;
  }
  .site-term-mat-preview-pane {
    min-height: 300px;
  }
  .site-term-mat-side {
    max-height: none;
    overflow: visible;
  }
  .site-term-mat-side-body {
    min-height: 260px;
    overflow: visible;
  }
  #termMatCatalogWrap {
    overflow: visible;
    min-height: 0;
  }
  .site-term-mat-catalog {
    max-height: min(55vh, 520px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }
}
/* iPad / tablet / desktop landscape — Term Con workspace (same layout) */
@media (min-width: 901px) {
  .site-term-work-bar {
    padding: 8px 12px;
    margin-bottom: 10px;
  }
  .site-term-sub-tab {
    min-height: 48px;
    padding: 12px 14px;
    font-size: 14px;
  }
  .site-term-mat-screen {
    min-height: calc(100dvh - 120px);
  }
  .site-term-mat-split {
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 340px);
    gap: 14px;
    min-height: calc(100dvh - 140px);
  }
  .site-term-mat-preview-pane {
    min-height: calc(100dvh - 150px);
  }
  .site-term-mat-preview-canvas,
  .site-term-sch-viewport {
    min-height: calc(100dvh - 190px);
  }
  .site-term-mat-side {
    max-height: calc(100dvh - 140px);
    overflow: hidden;
  }
  .site-term-mat-side-body {
    min-height: 0;
    overflow: hidden;
  }
  #termMatCatalogWrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }
  .site-term-mat-catalog {
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }
  .site-term-mat-chip {
    min-height: 56px;
    padding: 12px 14px;
  }
}
/* Site work fullscreen on tablet/desktop — use full width like iPad */
@media (min-width: 768px) {
  .site-work-fullscreen {
    max-width: none !important;
    width: 100%;
  }
  .site-work-fullscreen .portal-site-detail {
    min-height: calc(100dvh - 56px);
    padding: 10px 14px;
  }
}

/* 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-incentive-meta {
  margin-top: 3px;
  line-height: 1.35;
  max-width: 11rem;
}
.pr-deduct-remarks {
  min-height: 52px;
  resize: vertical;
  font: inherit;
}
.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; }

/* Maintenance Incentive tab */
.mnt-incentive {
  padding: 4px 0 24px;
}
.mnt-incentive-head {
  margin-bottom: 14px;
}
.mnt-incentive-head h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 650;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.mnt-incentive-head .feed-meta {
  margin: 0;
  max-width: 52rem;
  line-height: 1.45;
}
.mnt-incentive-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 28px;
  margin: 0 0 16px;
  padding: 12px 0 14px;
  border-bottom: 1px solid #e2e8f0;
}
.mnt-incentive-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.mnt-incentive-field-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.mnt-incentive-input {
  border: none;
  border-bottom: 1px solid #cbd5e1;
  border-radius: 0;
  background: transparent;
  padding: 6px 2px 7px;
  font: inherit;
  font-size: 15px;
  color: #0f172a;
  min-width: 7.5rem;
  outline: none;
  transition: border-color 0.15s;
}
.mnt-incentive-input:focus {
  border-bottom-color: #2563eb;
}
.mnt-incentive-input--num {
  min-width: 4.5rem;
  max-width: 6rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.mnt-incentive-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-left: auto;
  padding-bottom: 4px;
}
.mnt-incentive-text-btn {
  border: none;
  background: transparent;
  color: #475569;
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  padding: 6px 4px;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.mnt-incentive-text-btn:hover:not(:disabled) {
  color: #0f172a;
  border-bottom-color: #94a3b8;
}
.mnt-incentive-text-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.mnt-incentive-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}
.mnt-incentive-table-wrap {
  margin-top: 8px;
}
.mnt-incentive-table th,
.mnt-incentive-table td {
  vertical-align: middle;
}
.mnt-incentive-table th.num,
.mnt-incentive-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.mnt-incentive-table tbody tr.mnt-incentive-row {
  cursor: pointer;
}
.mnt-incentive-table tbody tr.mnt-incentive-row:hover,
.mnt-incentive-table tbody tr.mnt-incentive-row.is-open {
  background: #f8fafc;
}
.mnt-incentive-expand {
  display: inline-block;
  color: #64748b;
  padding: 2px 6px;
  font-size: 12px;
  line-height: 1;
  user-select: none;
}
.mnt-incentive-table tbody tr.mnt-incentive-row:hover .mnt-incentive-expand {
  color: #0f172a;
}
.mnt-incentive-breakdown {
  padding: 4px 0 2px;
}
.mnt-incentive-breakdown-title {
  font-size: 12px;
  font-weight: 650;
  color: #334155;
  margin-bottom: 6px;
}
.mnt-incentive-dr-table {
  width: 100%;
  max-width: 46rem;
  border-collapse: collapse;
  font-size: 12px;
}
.mnt-incentive-dr-table th,
.mnt-incentive-dr-table td {
  padding: 4px 8px 4px 0;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
}
.mnt-incentive-dr-table th {
  font-weight: 650;
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.mnt-incentive-dr-table th.num,
.mnt-incentive-dr-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.mnt-incentive-breakdown-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
  max-width: 36rem;
  font-size: 12px;
  color: #475569;
}
.mnt-incentive-breakdown-foot strong {
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}
.mnt-incentive-breakdown-foot-pay {
  margin-left: auto;
  font-weight: 650;
  color: #334155;
}
.mnt-incentive-lock-note {
  margin: 0 0 6px;
  color: #b45309;
}
.mnt-incentive-adj-block {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
  max-width: 36rem;
}
.mnt-incentive-adj-table td {
  vertical-align: top;
}
.mnt-incentive-table tbody tr.mnt-incentive-row.is-released {
  background: #f8fafc;
}
.mnt-incentive-override-cell {
  min-width: 5.5rem;
}
.mnt-incentive-override-cell .mnt-incentive-input {
  width: 100%;
  max-width: 5.5rem;
  margin-left: auto;
  display: block;
}
.mnt-incentive-calc-note {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}
.mnt-incentive-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #64748b;
}
.mnt-incentive-status.is-released {
  color: #15803d;
}
.mnt-incentive-status.is-draft {
  color: #64748b;
}
.mnt-incentive-detail-row td {
  background: #f8fafc;
  border-top: none;
  padding-top: 0;
  padding-bottom: 12px;
}
.mnt-incentive-dr-list {
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.mnt-incentive-dr-list li {
  font-size: 12px;
  color: #475569;
}
.mnt-incentive-dr-date {
  font-variant-numeric: tabular-nums;
  color: #334155;
  font-weight: 600;
}
.mnt-incentive-dr-id {
  color: #64748b;
}
.mnt-incentive-dr-table tr.is-inactive td {
  color: #94a3b8;
  text-decoration: line-through;
}
.mnt-incentive-dr-table tr.is-inactive .mnt-incentive-day-act,
.mnt-incentive-dr-table tr.is-inactive .mnt-incentive-day-actions {
  text-decoration: none;
}
.mnt-incentive-day-mh-cell {
  min-width: 4.5rem;
}
.mnt-incentive-day-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  white-space: nowrap;
}
.mnt-incentive-icon-btn {
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 14px;
  line-height: 1;
}
.mnt-incentive-icon-btn:hover {
  color: #0f172a;
}
.mnt-incentive-day-inactive {
  font-size: 12px;
  padding: 0;
}
.mnt-incentive-day-mh {
  max-width: 4.5rem;
}
@media (max-width: 720px) {
  .mnt-incentive-bar-actions {
    margin-left: 0;
    width: 100%;
  }
}

/* GPS Monitor — History playback */
.gps-monitor-map-history {
  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-history:hover,
.gps-monitor-map-history.is-active { background: #f8fafc; color: #b91c1c; }
.gps-monitor-map-history svg { width: 22px; height: 22px; display: block; }
.gps-history-panel {
  position: absolute;
  top: 12px;
  left: 64px;
  z-index: 9;
  width: min(320px, calc(100% - 80px));
  max-height: calc(100% - 24px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  padding: 12px 14px 14px;
}
.gps-history-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.gps-history-field {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin: 8px 0 4px;
}
.gps-history-date {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
}
.gps-history-scope {
  border: 0;
  margin: 8px 0 0;
  padding: 0;
}
.gps-history-scope-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin: 4px 0;
}
.gps-history-team-list {
  max-height: 180px;
  overflow: auto;
  margin-top: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 8px;
}
.gps-history-team-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  padding: 4px 0;
}
.gps-history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.gps-history-loading {
  position: absolute;
  inset: 0;
  z-index: 12;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.gps-history-loading.hidden { display: none; }
.gps-history-loading-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.25);
  text-align: center;
  max-width: 280px;
}
.gps-history-loading-spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 12px;
  border: 3px solid #e2e8f0;
  border-top-color: #b91c1c;
  border-radius: 50%;
  animation: gps-history-spin 0.8s linear infinite;
}
@keyframes gps-history-spin {
  to { transform: rotate(360deg); }
}
.gps-history-playback {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}
.gps-history-playback.hidden { display: none; }
.gps-history-playback input[type="range"] {
  flex: 1;
  min-width: 0;
}
.gps-history-time {
  min-width: 3.2em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.gps-history-trail-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.gps-history-trail-toggle input {
  margin: 0;
  accent-color: #b91c1c;
}
.gps-history-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(-4px);
  transition: opacity 0.2s ease;
  will-change: transform;
}
.gps-history-marker.is-pending {
  opacity: 0.45;
}
.gps-history-marker-emoji {
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 2px 2px rgba(15, 23, 42, 0.35));
}
.gps-history-marker-label {
  margin-top: 2px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
@media (max-width: 767px) {
  .gps-history-panel {
    left: 12px;
    right: 12px;
    width: auto;
    top: 64px;
    max-height: 55%;
  }
}

/* UG / AG Team Feed — chat dock + announce composer */
.dept-feed-page {
  display: grid;
  gap: 16px;
  max-width: 820px;
}
.dept-feed-panel {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  padding: 16px 18px 18px;
}
.dept-feed-panel__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}
.dept-feed-panel__meta {
  margin: 0 0 12px;
  font-size: 12px;
  color: #64748b;
}
.dept-feed-panel--announce {
  border-color: #fde68a;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 48%);
}
.dept-chat {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  max-height: min(52vh, 480px);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: #f1f5f9;
  overflow: hidden;
}
.dept-chat__messages {
  flex: 1 1 auto;
  min-height: 160px;
  overflow-y: auto;
  padding: 12px 12px 8px;
  scroll-behavior: smooth;
}
.dept-chat__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dept-chat__empty {
  margin: 28px 10px;
  color: #64748b;
  font-size: 13px;
}
.dept-chat-post {
  max-width: 92%;
  padding: 8px 11px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.dept-chat-post.is-mine {
  align-self: flex-end;
  border-color: #bfdbfe;
  background: #eff6ff;
}
.dept-chat-post__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 3px;
}
.dept-chat-post__author {
  font-size: 12px;
  font-weight: 700;
  color: #1e40af;
}
.dept-chat-post.is-mine .dept-chat-post__author { color: #1d4ed8; }
.dept-chat-post__time {
  font-size: 11px;
  color: #94a3b8;
}
.dept-chat-post__delete {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.dept-chat-post__delete:hover { color: #b91c1c; }
.dept-chat-post__body {
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  color: #1e293b;
}
.dept-chat__dock {
  flex: 0 0 auto;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.96);
  padding: 10px 12px 8px;
}
.dept-chat-composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.dept-chat-composer__icon-btn,
.dept-chat-composer__send {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 0;
}
.dept-chat-composer__icon-btn {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.dept-chat-composer__icon-btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}
.dept-chat-composer__send {
  background: linear-gradient(135deg, #c62828 0%, #ea580c 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(198, 40, 40, 0.28);
}
.dept-chat-composer__send:hover { filter: brightness(1.05); }
.dept-chat-composer__send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
}
.dept-chat-composer__field {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 22px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.dept-chat-composer__field:focus-within {
  border-color: #f87171;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.12);
}
.dept-chat-composer__input {
  width: 100%;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  resize: none !important;
  background: transparent !important;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  color: #0f172a;
  padding: 0;
  margin: 0;
  min-height: 22px;
  max-height: 140px;
  overflow-y: auto;
}
.dept-chat-composer__input::placeholder { color: #94a3b8; }
.dept-chat-composer__hint {
  margin: 6px 2px 0;
  font-size: 11px;
  color: #94a3b8;
}
.dept-chat-composer__previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.dept-chat-composer__previews[hidden] { display: none !important; }
.dept-chat-composer__preview {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.dept-chat-composer__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dept-chat-composer__preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.dept-ann-form {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #fde68a;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(146, 64, 14, 0.06);
}
.dept-ann-form-head { display: flex; justify-content: space-between; gap: 12px; }
.dept-ann-form-title {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 700;
  color: #78350f;
}
.dept-ann-field { display: grid; gap: 6px; }
.dept-ann-label {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a16207;
}
.dept-ann-composer {
  display: flex;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e7e5e4;
  background: #fafaf9;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.dept-ann-composer:focus-within {
  border-color: #f59e0b;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}
.dept-ann-composer__input {
  width: 100%;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  resize: none !important;
  background: transparent !important;
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  color: #1c1917;
  padding: 0;
  margin: 0;
  min-height: 48px;
  max-height: 180px;
  overflow-y: auto;
}
.dept-ann-composer__input::placeholder { color: #a8a29e; }
.dept-ann-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 14px;
}
.dept-ann-seg-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dept-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;
}
.dept-ann-seg:hover { border-color: #f59e0b; background: #fffbeb; }
.dept-ann-seg.is-on {
  background: #f59e0b;
  border-color: #d97706;
  color: #fff;
  box-shadow: 0 1px 2px rgba(180, 83, 9, 0.25);
}
.dept-ann-seg--days { min-width: 48px; text-align: center; }
.dept-ann-teams {
  max-height: 180px;
  overflow: auto;
  padding: 10px 12px;
  border: 1px solid #fde68a;
  border-radius: 10px;
  background: #fffbeb;
}
.dept-ann-team {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  font-size: 13px;
  color: #44403c;
  cursor: pointer;
}
.dept-ann-footer {
  display: flex;
  justify-content: flex-end;
}
.dept-ann-history-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #92400e;
}
.dept-ann-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dept-ann-item {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e7e5e4;
  background: #fff;
}
.dept-ann-item.is-live {
  border-color: #fcd34d;
  background: #fffbeb;
}
.dept-ann-item__body {
  font-size: 13px;
  line-height: 1.4;
  color: #1c1917;
  white-space: pre-wrap;
}
.dept-ann-item__meta {
  margin-top: 6px;
  font-size: 11px;
  color: #78716c;
}
.dept-ann-item__off {
  margin-left: 6px;
  border: 0;
  background: transparent;
  color: #b45309;
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  text-decoration: underline;
}
@media (max-width: 720px) {
  .dept-ann-grid { grid-template-columns: 1fr; }
}

/* —— Term Con Contractor Daily Report (CDR) composer —— */
.cdr-overlay {
  position: fixed; inset: 0; z-index: 12000;
  background: rgba(15, 23, 42, 0.45);
  display: flex; align-items: stretch; justify-content: center;
  padding: 12px;
}
.cdr-overlay.hidden { display: none; }
.cdr-overlay-panel {
  background: #f8fafc; width: min(1400px, 100%);
  border-radius: 10px; display: flex; flex-direction: column;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35); overflow: hidden;
}
.cdr-overlay-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start;
  justify-content: space-between; padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0; background: #fff;
}
.cdr-toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cdr-claim-pdf-menu {
  position: relative;
  display: inline-block;
}
.cdr-claim-pdf-menu > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.cdr-claim-pdf-menu > summary::-webkit-details-marker { display: none; }
.cdr-claim-pdf-menu-body {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  min-width: 220px;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cdr-claim-pdf-menu-body .feed-meta { margin: 0; font-size: 12px; }
.cdr-scroll { flex: 1; overflow: auto; padding: 12px 16px 24px; }
.cdr-pdf-export-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  padding: 10px 16px; border-bottom: 1px solid #bfdbfe;
  background: #eff6ff; color: #0f172a;
}
.cdr-pdf-export-banner.hidden { display: none; }
.cdr-pdf-export-banner.is-ready {
  background: #ecfdf5; border-bottom-color: #a7f3d0;
}
.cdr-pdf-export-banner.is-failed {
  background: #fef2f2; border-bottom-color: #fecaca;
}
.cdr-pdf-export-spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid #93c5fd; border-top-color: #1d4ed8;
  animation: cdr-pdf-spin 0.8s linear infinite; flex: 0 0 auto;
}
.cdr-pdf-export-banner.is-ready .cdr-pdf-export-spinner,
.cdr-pdf-export-banner.is-failed .cdr-pdf-export-spinner {
  animation: none; border-color: currentColor; border-top-color: currentColor;
  opacity: 0.35;
}
.cdr-pdf-export-banner.is-ready .cdr-pdf-export-spinner {
  border-color: #34d399; background: #34d399; opacity: 1;
}
.cdr-pdf-export-copy { flex: 1 1 240px; min-width: 0; }
.cdr-pdf-export-copy strong { display: block; font-size: 14px; margin-bottom: 2px; }
.cdr-pdf-export-copy .feed-meta { margin: 0; }
.cdr-pdf-export-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@keyframes cdr-pdf-spin {
  to { transform: rotate(360deg); }
}
.cdr-a3-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
}
.cdr-a3-part {
  width: min(100%, 1480px);
}
.cdr-a3-part-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 650;
  color: #334155;
}
.cdr-a3-part.is-active .cdr-sheet {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}
.cdr-sheet {
  background: #fff; border: 1.5px solid #334155; padding: 0;
  width: min(100%, 1480px); margin: 0 auto;
  min-height: 900px; display: flex; flex-direction: column; gap: 0;
  position: relative;
}
.cdr-sheet--a3-landscape {
  aspect-ratio: 420 / 297;
  width: min(100%, 1480px);
  height: auto;
  min-height: 0;
  max-width: 1480px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  display: grid;
  grid-template-columns: 1fr;
  /* header · flexible content grid · footer — header must fit Team/Date/Location + Contract/WO/Page */
  grid-template-rows: minmax(72px, 11%) 1fr minmax(40px, 5%);
  gap: 0;
  padding: 8px;
  overflow: hidden;
  font-size: 13px;
}
.cdr-content-grid {
  display: grid;
  grid-template-columns: repeat(var(--cdr-cols, 6), minmax(0, 1fr));
  grid-template-rows: repeat(var(--cdr-rows, 12), minmax(0, 1fr));
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid #334155;
  background: #fff;
  gap: 0;
  position: relative;
}
.cdr-layout-item {
  min-height: 0;
  height: auto;
  overflow: hidden;
  border-right: 1px solid #334155;
  border-bottom: 1px solid #334155;
  background: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}
.cdr-layout-item.is-dragging {
  z-index: 5;
  outline: 2px solid #2563eb;
  outline-offset: -2px;
}
.cdr-layout-drag {
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.cdr-layout-drag:active { cursor: grabbing; }
.cdr-sheet--layout-edit.is-layout-dragging,
.cdr-sheet--layout-edit .is-layout-dragging {
  user-select: none;
}
.cdr-layout-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.cdr-layout-body > .table-wrap,
.cdr-layout-body > .cdr-photo-strip,
.cdr-layout-body > .cdr-viewport,
.cdr-layout-body > .cdr-plan-empty,
.cdr-layout-body > .feed-meta {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 4px 8px;
}
.cdr-layout-body > .cdr-photo-strip {
  overflow: hidden;
  padding: 0;
}
.cdr-layout-fit > .cdr-photo-strip,
.cdr-layout-fit > .cdr-photo-strip--a3,
.cdr-layout-fit > .cdr-fusion-a3-strip {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  padding: 0;
}
/* A3 review = PDF preview: never show scrollbars inside boxes */
.cdr-sheet--a3-landscape.cdr-sheet--layout-edit .cdr-layout-body,
.cdr-sheet--a3-landscape.cdr-sheet--layout-edit .cdr-layout-body * {
  scrollbar-width: none;
}
.cdr-sheet--a3-landscape.cdr-sheet--layout-edit .cdr-layout-body::-webkit-scrollbar,
.cdr-sheet--a3-landscape.cdr-sheet--layout-edit .cdr-layout-body *::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.cdr-layout-fit {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  transform-origin: top left;
  display: flex;
  flex-direction: column;
}
.cdr-layout-title-tools {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.cdr-fit-btn {
  min-width: 22px;
  padding: 0 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}
.cdr-photo-fit-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-right: 4px;
}
.cdr-photo-fit-btn {
  min-width: 0;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  opacity: 0.7;
}
.cdr-photo-fit-btn.is-active {
  opacity: 1;
  background: #cbd5e1;
  color: #0f172a;
}
.cdr-sheet--a3-landscape .cdr-layout-body .cdr-photo-tile.is-missing .cdr-photo-frame {
  background: #fee2e2;
  border: 1px dashed #f87171;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cdr-sheet--a3-landscape .cdr-layout-body .cdr-photo-missing-label {
  display: block;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: #b91c1c;
  padding: 4px;
  line-height: 1.25;
}
.cdr-sheet--a3-landscape .cdr-layout-body .cdr-photo-missing-label small {
  font-weight: 500;
  font-size: 8px;
  color: #7f1d1d;
  word-break: break-all;
}
/* Photos on A3: fill the card height; tile width follows each image aspect ratio */
.cdr-sheet--a3-landscape .cdr-layout-body .cdr-photo-strip,
.cdr-sheet--a3-landscape .cdr-layout-body .cdr-photo-strip--a3 {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-content: flex-start;
  align-items: flex-start;
  justify-content: flex-start;
  gap: var(--a3-photo-gap, 4px);
  height: 100%;
  overflow: hidden;
  padding: 2px;
  box-sizing: border-box;
}
.cdr-sheet--a3-landscape .cdr-layout-body .cdr-photo-strip--a3.is-photo-needs-resize {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
}
.cdr-sheet--a3-landscape .cdr-layout-body .cdr-photo-a3-row {
  display: flex;
  flex-wrap: wrap;
  flex: 0 0 auto;
  align-items: flex-start;
  align-content: flex-start;
  justify-content: flex-start;
  gap: var(--a3-photo-gap, 4px);
  width: 100%;
  min-width: 0;
}
.cdr-sheet--a3-landscape .cdr-layout-body .cdr-photo-strip--a3:not(.is-photo-needs-resize) .cdr-photo-a3-row {
  display: contents;
}
.cdr-sheet--a3-landscape .cdr-layout-body .cdr-photo-strip--a3.is-photo-needs-resize > .cdr-photo-tile {
  flex: 0 0 auto;
}
.cdr-sheet--a3-landscape .cdr-layout-body .cdr-photo-a3-guide {
  flex: 1 1 auto;
  min-height: 2.5em;
  margin: 4px 0 0;
  padding: 10px 12px;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.35;
  color: #475569;
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: 4px;
  box-sizing: border-box;
}
.cdr-sheet--a3-landscape .cdr-layout-body .cdr-photo-strip--a3.is-photo-needs-resize .cdr-photo-a3-guide {
  display: flex;
}
.cdr-sheet--a3-landscape .cdr-layout-body .cdr-photo-strip--a3 .cdr-photo-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  flex: 0 0 auto;
}
.cdr-sheet--a3-landscape .cdr-layout-body .cdr-photo-frame {
  flex: 0 0 auto;
  width: auto;
  height: var(--a3-frame-h, 120px);
  min-height: 0;
  display: block;
  overflow: hidden;
  background: #f1f5f9;
  position: relative;
  line-height: 0;
}
.cdr-sheet--a3-landscape .cdr-layout-body .cdr-photo-strip--a3 .cdr-photo-tile img {
  max-width: none;
  max-height: none;
  width: auto;
  height: var(--a3-frame-h, 120px);
  object-fit: contain;
  object-position: center;
  display: block;
}
/* One row at full height: JS sets explicit tile width = frameH × aspect ratio */
.cdr-sheet--a3-landscape .cdr-layout-body .cdr-photo-strip--a3[data-photo-rows="1"]:not(.is-photo-needs-resize) {
  align-items: flex-start;
  align-content: flex-start;
}
.cdr-sheet--a3-landscape .cdr-layout-body .cdr-photo-strip--a3[data-photo-rows="1"] .cdr-photo-frame,
.cdr-sheet--a3-landscape .cdr-layout-body .cdr-photo-strip--a3[data-photo-rows="1"] .cdr-photo-tile img {
  height: var(--a3-frame-h, 120px);
  max-height: none;
}
.cdr-sheet--a3-landscape .cdr-layout-body .cdr-photo-tile .cdr-photo-open {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
/* Caption directly under photo — do NOT multiply by --cdr-fit-scale */
.cdr-sheet--a3-landscape .cdr-layout-body .cdr-photo-cap {
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
  padding: 3px 2px 0;
  min-height: 1.5em;
  font-size: 10.5px;
  line-height: 1.25;
  font-weight: 600;
  color: #0f172a;
  text-align: center;
  overflow: hidden;
  max-height: 2.8em;
  background: #fff;
}
.cdr-sheet--a3-landscape .cdr-layout-body .cdr-photo-strip--no-desc .cdr-photo-cap,
.cdr-sheet--a3-landscape .cdr-layout-body .cdr-photo-tile.is-no-desc .cdr-photo-cap {
  display: none;
  min-height: 0;
  max-height: 0;
  padding: 0;
  margin: 0;
}
.cdr-sheet--a3-landscape .cdr-layout-body .cdr-photo-src,
.cdr-sheet--a3-landscape .cdr-layout-body .cdr-photo-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-overflow: clip;
  max-width: 100%;
  font-size: 10.5px;
  font-weight: 500;
  color: #0f172a;
  line-height: 1.25;
  text-align: center;
}
.cdr-sheet--a3-landscape .cdr-layout-body .table-wrap {
  font-size: 12px;
}
.cdr-sheet--a3-landscape .cdr-layout-body .cdr-viewport-inner {
  transform-origin: top left;
}
.cdr-resize-handle {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background:
    linear-gradient(135deg, transparent 0 46%, #64748b 46% 54%, transparent 54% 70%,
      #64748b 70% 78%, transparent 78%);
  cursor: nwse-resize;
  z-index: 6;
  touch-action: none;
}
.cdr-resize-handle:hover,
.cdr-resize-handle:focus {
  background:
    linear-gradient(135deg, transparent 0 46%, #2563eb 46% 54%, transparent 54% 70%,
      #2563eb 70% 78%, transparent 78%);
}
.cdr-sheet--review .cdr-resize-handle { opacity: 1; }
.cdr-butt-preview { padding: 4px 10px 8px; margin: 0; }
.cdr-sheet-badge {
  position: absolute; top: 10px; right: 12px;
  font-size: 10px; font-weight: 700; color: #64748b;
  letter-spacing: 0.04em; text-transform: uppercase;
  z-index: 2;
}
.cdr-header {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px;
  align-items: start; border: none; padding: 2px 8px 4px;
  padding-right: 88px;
  min-height: 0;
  overflow: visible;
  background: transparent;
}
.cdr-header-left,
.cdr-header-right {
  min-width: 0;
}
.cdr-header-title { font-size: 18px; font-weight: 700; text-align: center; line-height: 1.2; white-space: nowrap; }
.cdr-header-right { text-align: right; }
.cdr-lab { font-weight: 650; color: #334155; }
.cdr-loc-source {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  margin: 0 4px 0 2px;
  vertical-align: middle;
}
.cdr-loc-source-btn {
  min-width: 0;
  padding: 0 5px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  border: 1px solid #94a3b8;
  background: #fff;
  color: #475569;
  cursor: pointer;
}
.cdr-loc-source-btn:first-child { border-radius: 3px 0 0 3px; }
.cdr-loc-source-btn:last-child { border-radius: 0 3px 3px 0; }
.cdr-loc-source-btn.is-active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}
.cdr-loc-source-btn:disabled { opacity: 0.55; cursor: default; }
@media print {
  .cdr-loc-source,
  [data-layout-tools] { display: none !important; }
}
.cdr-row { display: grid; gap: 0; border-bottom: none; min-height: 0; overflow: hidden; background: #fff; }
.cdr-row-top {
  grid-template-columns: 1.1fr 1fr 1fr;
  min-height: 0; height: 100%;
  border: 1px solid #334155;
}
.cdr-row-mid {
  grid-template-columns: 1fr; min-height: 0; height: 100%;
  border: 1px solid #334155; border-top: none;
}
.cdr-row-bot {
  grid-template-columns: 1fr; min-height: 0; height: 100%;
  border: 1px solid #334155; border-top: none;
}
.cdr-layout-fusion_heavy .cdr-row-bot { min-height: 0; }
.cdr-layout-fusion_heavy .cdr-row-butt { min-height: 0; }
.cdr-row-butt { grid-template-columns: 1fr; }
.cdr-butt-slip {
  border: 1px solid #e2e8f0; border-radius: 4px; padding: 8px; margin-bottom: 8px;
  background: #f8fafc;
}
.cdr-butt-slip-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px;
}
.cdr-butt-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px;
}
.cdr-butt-grid label { font-size: 11px; display: flex; flex-direction: column; gap: 2px; }
.cdr-butt-cycle th, .cdr-butt-cycle td { font-size: 10px; }
@media (max-width: 980px) {
  .cdr-butt-grid { grid-template-columns: 1fr 1fr; }
}
.cdr-box {
  border: none; border-right: 1px solid #334155; background: #fff; padding: 0;
  display: flex; flex-direction: column; min-height: 0; height: 100%; overflow: hidden;
  justify-content: flex-start;
}
.cdr-row-top .cdr-box:last-child { border-right: none; }
.cdr-row-mid .cdr-box,
.cdr-row-bot .cdr-box,
.cdr-row-butt .cdr-box { border: none; }
.cdr-box-title {
  background: #e2e8f0; font-size: 13px; font-weight: 700;
  padding: 6px 10px; margin: 0; display: flex;
  align-items: center; gap: 8px; flex-wrap: wrap;
  border-bottom: 1px solid #334155;
  flex: 0 0 auto;
}
.cdr-sheet--a3-landscape .cdr-box > .table-wrap,
.cdr-sheet--a3-landscape .cdr-box > .cdr-photo-strip,
.cdr-sheet--a3-landscape .cdr-box > .cdr-viewport,
.cdr-sheet--a3-landscape .cdr-box > .cdr-plan-empty,
.cdr-sheet--a3-landscape .cdr-box > .feed-meta {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 6px 10px;
}
.cdr-sheet--a3-landscape.cdr-sheet--layout-edit .cdr-box-title {
  flex-wrap: nowrap;
  gap: 6px;
  padding-right: 18px;
}
.cdr-sheet--a3-landscape.cdr-sheet--layout-edit .cdr-layout-body,
.cdr-sheet--a3-landscape.cdr-sheet--layout-edit .cdr-layout-body > .table-wrap,
.cdr-sheet--a3-landscape.cdr-sheet--layout-edit .cdr-layout-body > .cdr-photo-strip,
.cdr-sheet--a3-landscape.cdr-sheet--layout-edit .cdr-layout-body > .cdr-viewport,
.cdr-sheet--a3-landscape.cdr-sheet--layout-edit .cdr-layout-fit,
.cdr-sheet--a3-landscape.cdr-sheet--layout-edit .cdr-layout-fit > .table-wrap,
.cdr-sheet--a3-landscape.cdr-sheet--layout-edit .cdr-layout-fit > .cdr-photo-strip,
.cdr-sheet--a3-landscape.cdr-sheet--layout-edit .cdr-layout-fit > .cdr-viewport {
  overflow: hidden !important;
}
.cdr-sheet--a3-landscape .cdr-box > .cdr-photo-strip {
  overflow-x: auto;
  overflow-y: hidden;
}
.cdr-sheet--a3-landscape .cdr-viewport {
  min-height: 0;
  height: auto;
}
.cdr-box1 .cdr-box-title { position: relative; }
.cdr-box1-filter {
  max-width: 180px;
  margin-left: auto;
  font-weight: 400;
}
.cdr-desc-cell {
  position: relative;
  min-width: 140px;
}
.cdr-sor-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  z-index: 40;
  max-height: 320px;
  overflow: auto;
  background: #fff;
  border: 1px solid #93c5fd;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.15);
}
.cdr-sor-suggest.hidden { display: none; }
.cdr-sor-suggest--title {
  left: auto;
  right: 0;
  width: min(640px, 86vw);
  top: calc(100% + 4px);
}
.cdr-sor-suggest--full {
  position: fixed;
  right: auto;
  z-index: 80;
  min-width: 280px;
  max-width: min(760px, calc(100vw - 16px));
}
.cdr-sor-suggest-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 12px;
  color: #0f172a;
}
.cdr-sor-suggest-item:hover,
.cdr-sor-suggest-item:focus {
  background: #eff6ff;
  outline: none;
}
.cdr-sor-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.cdr-sor-item { font-weight: 700; color: #1d4ed8; flex: 0 0 auto; }
.cdr-sor-unit { color: #64748b; flex: 0 0 auto; }
.cdr-sor-desc {
  white-space: normal;
  overflow: visible;
  word-break: break-word;
  line-height: 1.35;
  color: #334155;
}
.cdr-inp {
  width: 100%; min-width: 0; font-size: 11px; padding: 2px 4px;
  border: 1px solid #cbd5e1; border-radius: 3px;
}
.cdr-inp-wide { min-width: 120px; }
.cdr-inp-name { max-width: 200px; }
.cdr-inp-qty, .cdr-inp-unit { width: 64px; }
.cdr-component-block .cdr-svc-table {
  width: 100%;
  table-layout: fixed;
}
.cdr-component-block .cdr-svc-table col.cdr-svc-col-svc { width: 4.4em; }
.cdr-component-block .cdr-svc-table col.cdr-svc-col-desc { width: auto; }
.cdr-component-block .cdr-svc-table col.cdr-svc-col-qty { width: 4.6em; }
.cdr-component-block .cdr-svc-table col.cdr-svc-col-unit { width: 3.4em; }
.cdr-component-block .cdr-svc-table col.cdr-svc-col-cost { width: 5.6em; }
.cdr-component-block .cdr-svc-table col.cdr-svc-col-amt { width: 5.8em; }
.cdr-component-block .cdr-svc-table col.cdr-svc-col-del { width: 2.4em; }
.cdr-component-block .cdr-svc-table th,
.cdr-component-block .cdr-svc-table td {
  vertical-align: middle;
}
.cdr-component-block .cdr-svc-no-cell {
  width: 4.4em;
}
.cdr-component-block .cdr-svc-no-cell .cdr-inp {
  width: 100%;
  max-width: 100%;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 6px 4px;
  font-size: 12px;
}
.cdr-component-block .cdr-desc-cell {
  min-width: 0;
}
.cdr-component-block .cdr-desc-cell .cdr-inp-wide {
  min-width: 0;
  width: 100%;
  height: 34px;
  padding: 7px 10px;
  font-size: 13px;
  line-height: 1.3;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
}
.cdr-component-block .cdr-desc-cell .cdr-inp-wide:focus {
  background: #fff;
  border-color: #93c5fd;
  outline: none;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.35);
}
.cdr-component-block .cdr-desc-cell .cdr-inp-wide::placeholder {
  color: #94a3b8;
}
.cdr-svc-table th, .cdr-fusion-table th { font-size: 12px; white-space: nowrap; text-align: left; }
.cdr-svc-table td, .cdr-fusion-table td { padding: 3px; font-size: 12px; text-align: left; }
.cdr-fusion-table th.cdr-fusion-code-th {
  width: 5.5%;
  padding: 0 0.35em 0 0;
  border: none;
  background: transparent;
  text-align: right;
}
.cdr-fusion-table td.cdr-fusion-code {
  vertical-align: middle;
  text-align: right;
  padding-right: 0.35em;
  padding-left: 0;
}
.cdr-fusion-ef-label {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1em;
  color: #9a3412;
  letter-spacing: 0;
  white-space: nowrap;
}
.cdr-fusion-weld-inp {
  max-width: 3.5em;
  text-align: center;
}
.cdr-fusion-table-wrap--multi {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cdr-fusion-machine-block + .cdr-fusion-machine-block {
  padding-top: 8px;
  border-top: 1px solid #cbd5e1;
}
.cdr-fusion-machine-head {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}
.cdr-sheet--a3-landscape .cdr-box1 .cdr-layout-body,
.cdr-sheet--a3-landscape .cdr-box1 .cdr-layout-fit {
  padding: 0;
  justify-content: flex-start;
  align-content: flex-start;
}
.cdr-sheet--a3-landscape .cdr-box1 .cdr-svc-fill,
.cdr-sheet--a3-landscape .cdr-box1 .table-wrap.cdr-svc-fill {
  height: auto;
  max-height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: none;
  flex: 0 1 auto;
}
.cdr-sheet--a3-landscape .cdr-box1 .cdr-svc-table {
  width: 100%;
  height: auto;
  table-layout: fixed;
  border-collapse: collapse;
}
.cdr-sheet--a3-landscape .cdr-box1 .cdr-svc-table col.cdr-svc-col-svc { width: 11%; }
.cdr-sheet--a3-landscape .cdr-box1 .cdr-svc-table col.cdr-svc-col-desc { width: 67%; }
.cdr-sheet--a3-landscape .cdr-box1 .cdr-svc-table col.cdr-svc-col-qty { width: 11%; }
.cdr-sheet--a3-landscape .cdr-box1 .cdr-svc-table col.cdr-svc-col-unit { width: 11%; }
.cdr-sheet--a3-landscape .cdr-box1 .cdr-svc-table th,
.cdr-sheet--a3-landscape .cdr-box1 .cdr-svc-table td {
  text-align: left;
  vertical-align: top;
  padding: 4px 6px;
  font-size: 11px;
  line-height: 1.35;
  border: 1px solid #334155;
  /* Prefer natural breaks; do not smash mid-token into Qty */
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}
/* Merge outer cell borders with the section frame (no double border) */
.cdr-sheet--a3-landscape .cdr-box1 .cdr-svc-table tr > *:first-child { border-left: none; }
.cdr-sheet--a3-landscape .cdr-box1 .cdr-svc-table tr > *:last-child { border-right: none; }
.cdr-sheet--a3-landscape .cdr-box1 .cdr-svc-table thead tr > * { border-top: none; }
.cdr-sheet--a3-landscape .cdr-box1 .cdr-svc-table tbody tr:last-child > * { border-bottom: none; }
.cdr-sheet--a3-landscape .cdr-box1 .cdr-svc-cell-desc {
  padding-right: 8px;
}
.cdr-sheet--a3-landscape .cdr-box1 .cdr-svc-cell-qty,
.cdr-sheet--a3-landscape .cdr-box1 .cdr-svc-cell-unit,
.cdr-sheet--a3-landscape .cdr-box1 .cdr-svc-cell-svc {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cdr-sheet--a3-landscape .cdr-box1 .cdr-svc-table tbody tr td {
  height: auto;
}
.cdr-sheet--a3-landscape .cdr-box2 .cdr-viewport-snapshot {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #fff;
}
.cdr-sheet--a3-landscape .cdr-box5 .cdr-fusion-table th,
.cdr-sheet--a3-landscape .cdr-box5 .cdr-fusion-table td {
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 2px 4px;
  font-size: 1em;
  line-height: 1.2;
}
/* Close to even columns. Operator is a little wider. The last three are a little narrower. */
.cdr-sheet--a3-landscape .cdr-box5 .cdr-fusion-col-code { width: 5.5%; }
.cdr-sheet--a3-landscape .cdr-box5 .cdr-fusion-col-weld { width: 8%; }
.cdr-sheet--a3-landscape .cdr-box5 .cdr-fusion-col-date { width: 8%; }
.cdr-sheet--a3-landscape .cdr-box5 .cdr-fusion-col-time { width: 6%; }
.cdr-sheet--a3-landscape .cdr-box5 .cdr-fusion-col-maker { width: 7%; }
.cdr-sheet--a3-landscape .cdr-box5 .cdr-fusion-col-type { width: 6.5%; }
.cdr-sheet--a3-landscape .cdr-box5 .cdr-fusion-col-size { width: 6.5%; }
.cdr-sheet--a3-landscape .cdr-box5 .cdr-fusion-col-op { width: 12%; }
.cdr-sheet--a3-landscape .cdr-box5 .cdr-fusion-col-volt { width: 7%; }
.cdr-sheet--a3-landscape .cdr-box5 .cdr-fusion-col-wtime { width: 6%; }
.cdr-sheet--a3-landscape .cdr-box5 .cdr-fusion-col-tweld { width: 6.5%; }
.cdr-sheet--a3-landscape .cdr-box5 .cdr-fusion-col-cool { width: 6%; }
.cdr-sheet--a3-landscape .cdr-box5 .cdr-fusion-col-scrap { width: 5%; }
.cdr-sheet--a3-landscape .cdr-box5 .cdr-fusion-col-clamp { width: 5%; }
.cdr-sheet--a3-landscape .cdr-box5 .cdr-fusion-col-status { width: 5%; }
.cdr-sheet--a3-landscape .cdr-box5 .cdr-fusion-table td.cdr-fusion-code,
.cdr-sheet--a3-landscape .cdr-box5 .cdr-fusion-table th.cdr-fusion-code-th {
  text-align: right;
  padding-right: 0.35em;
  padding-left: 0;
}
.cdr-sheet--a3-landscape .cdr-box5 .cdr-fusion-table td.cdr-fusion-op span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.cdr-sheet--a3-landscape .cdr-box5 .cdr-fusion-table-wrap,
.cdr-sheet--a3-landscape .cdr-box5 .cdr-layout-fit > .table-wrap {
  overflow: hidden;
  width: 100%;
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.cdr-sheet--a3-landscape .cdr-box5 .cdr-fusion-machine-block {
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.cdr-sheet--a3-landscape .cdr-box5 .cdr-fusion-table {
  width: 100%;
  height: auto;
  table-layout: fixed;
}
.cdr-sheet--a3-landscape .cdr-box5 .cdr-fusion-machine-head {
  font-size: 9px;
  margin: 0 0 2px;
  flex: 0 0 auto;
}
.cdr-sheet--a3-landscape .cdr-box5 .cdr-fusion-machine-block + .cdr-fusion-machine-block {
  padding-top: 4px;
}
.cdr-sheet--a3-landscape .cdr-box5 .cdr-layout-fit,
.cdr-sheet--a3-landscape.cdr-sheet--layout-edit .cdr-box5 .cdr-layout-fit {
  width: 100% !important;
  height: 100% !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
  max-height: none !important;
  transform: none !important;
  zoom: 1 !important;
}
.cdr-sheet--a3-landscape .cdr-box2 .cdr-viewport,
.cdr-sheet--a3-landscape .cdr-box2 .cdr-viewport--pdf-frame,
.cdr-sheet--a3-landscape .cdr-box2 .cdr-viewport--schematic {
  background: #fff !important;
  border: none !important;
  box-shadow: none;
}
.cdr-sheet--a3-landscape .cdr-box2 .cdr-viewport-inner,
.cdr-sheet--a3-landscape .cdr-box2 .cdr-viewport-snapshot,
.cdr-sheet--a3-landscape .cdr-box2 svg,
.cdr-sheet--a3-landscape .cdr-box2 .sch-svg-wrap {
  background: #fff !important;
  border: none !important;
}
.cdr-sheet--a3-landscape .cdr-inp { font-size: 12px; }
.cdr-hint { margin-left: 8px; }
.cdr-viewport {
  flex: 1; overflow: hidden; background: #f8fafc; position: relative;
  cursor: grab; min-height: 140px;
  touch-action: none;
}
.cdr-viewport.is-locked { cursor: default; }
.cdr-viewport-inner { transform-origin: 0 0; min-height: 100%; }
.cdr-viewport-inner svg { max-width: none; width: auto; height: auto; }
.cdr-box2 .cdr-viewport-inner > svg,
.cdr-box2 svg.site-term-sch-svg,
.cdr-viewport--schematic .cdr-viewport-inner > svg {
  width: auto !important;
  height: auto !important;
  max-width: none;
  flex-shrink: 0;
  display: block;
}
.cdr-viewport--sch-contain,
.cdr-sch-contain {
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: none !important;
}
.cdr-viewport--sch-contain > .cdr-sch-contain {
  width: 100%;
  height: 100%;
}
.cdr-sch-contain > svg,
.cdr-viewport--sch-contain svg.site-term-sch-svg,
.cdr-viewport--sch-contain .cdr-viewport-inner > svg {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
}
.cdr-box2 .cdr-viewport-snapshot,
.cdr-viewport--schematic .cdr-viewport-snapshot {
  object-fit: contain !important;
  object-position: center center;
}
/* Fill only editor freeze snapshots — not A3 live SVG (.cdr-sch-contain). */
.cdr-viewport--schematic .cdr-viewport-inner:not(.cdr-sch-contain) {
  width: 100%;
  height: 100%;
}
.cdr-viewport--schematic .cdr-viewport-inner > .cdr-viewport-snapshot {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: center center;
  display: block;
}
.cdr-viewport-inner > .cdr-override-img {
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  display: block;
}
.cdr-viewport-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 120px;
  width: 100%;
  color: #64748b;
  font-size: 13px;
}
.cdr-viewport-loading-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e2e8f0;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: cdr-viewport-spin 0.8s linear infinite;
}
@keyframes cdr-viewport-spin {
  to { transform: rotate(360deg); }
}
.cdr-plan-wrap { position: relative; display: inline-block; max-width: 100%; }
.cdr-plan-wrap img { display: block; max-width: 100%; height: auto; }
.cdr-viewport .cdr-plan-wrap:not(.cdr-plan-wrap--snapshot),
.cdr-viewport--plan-enlarge .cdr-plan-wrap:not(.cdr-plan-wrap--snapshot) {
  max-width: none;
}
.cdr-viewport .cdr-plan-wrap:not(.cdr-plan-wrap--snapshot) img,
.cdr-viewport--plan-enlarge .cdr-plan-wrap:not(.cdr-plan-wrap--snapshot) img {
  max-width: none;
  width: auto;
  height: auto;
}
.cdr-plan-wrap--snapshot {
  position: relative;
  display: inline-block;
  max-width: 100%;
}
.cdr-plan-wrap--snapshot > .cdr-viewport-snapshot {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: top left;
}
.cdr-plan-wrap .cdr-asbuilt-overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.cdr-plan-wrap--grey > img {
  filter: grayscale(1) contrast(0.92) brightness(1.14);
}
.cdr-plan-hit {
  display: block; width: 100%; border: 0; padding: 0; background: transparent;
  cursor: grab; text-align: left; -webkit-user-select: none; user-select: none;
  touch-action: none;
}
.cdr-zoom-tools {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 4px;
}
.cdr-zoom-tools .btn { min-width: 32px; }
.cdr-zoom-pct {
  min-width: 3.2em;
  font-size: 12px;
  font-weight: 650;
  color: #334155;
  font-variant-numeric: tabular-nums;
}
.cdr-work-area {
  position: absolute;
  box-sizing: border-box;
  transform-origin: center center;
  z-index: 4;
  pointer-events: none;
}
.cdr-work-area.is-selected .cdr-work-area-fill {
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.28);
}
.cdr-work-areas-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}
.cdr-work-areas-layer .cdr-work-area.is-edit,
.cdr-work-areas-layer .cdr-work-area.is-locked .cdr-work-area-fill {
  pointer-events: auto;
}
.cdr-work-area.is-edit { pointer-events: auto; }
.cdr-work-area-fill {
  position: absolute;
  inset: 0;
  border: 1.5px solid #dc2626;
  background: transparent;
  box-sizing: border-box;
  cursor: move;
  pointer-events: auto;
}
.cdr-work-area.is-locked .cdr-work-area-fill {
  cursor: pointer;
  pointer-events: auto;
}
.cdr-work-area-label {
  position: absolute;
  left: 4px;
  top: 3px;
  max-width: calc(100% - 8px);
  color: #dc2626;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 2px #fff, 0 0 3px #fff;
}
.cdr-work-area--detail .cdr-work-area-fill {
  border: 2px solid #0f172a;
  background: rgba(255, 255, 255, 0.58);
}
.cdr-work-area--detail.is-selected .cdr-work-area-fill {
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.45);
}
.cdr-work-area--detail .cdr-work-area-label {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #0f172a;
  border-radius: 2px;
  padding: 1px 6px 2px;
  left: 6px;
  top: 6px;
  max-width: calc(100% - 12px);
  text-shadow: none;
}
.cdr-work-area--detail .cdr-work-area-handle,
.cdr-work-area--detail .cdr-work-area-rot,
.cdr-work-area--detail .cdr-work-area-trash {
  border-color: #0f172a;
  color: #0f172a;
}
.cdr-work-area--detail .cdr-work-area-rot {
  background: #fff;
}
.cdr-rect-size {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 2px;
}
.cdr-rect-size-btn {
  min-width: 28px;
  padding: 0 6px;
  font-weight: 700;
  line-height: 1;
}
.cdr-rect-size-val {
  min-width: 1.6em;
  text-align: center;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: #475569;
}
.cdr-rect-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 4px;
  font-size: 12px;
  color: #334155;
}
.cdr-rect-label input {
  width: 9.5em;
  height: 26px;
  font-size: 12px;
}
.cdr-work-area.is-capturing .cdr-work-area-handle,
.cdr-work-area.is-capturing .cdr-work-area-rot,
.cdr-work-area.is-capturing .cdr-work-area-trash {
  display: none;
}
.cdr-work-area-trash {
  display: none;
  position: absolute;
  right: -10px;
  top: -28px;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid #dc2626;
  background: #fff;
  color: #991b1b;
  cursor: pointer;
  pointer-events: auto;
  z-index: 3;
  align-items: center;
  justify-content: center;
}
.cdr-work-area.is-selected .cdr-work-area-trash {
  display: flex;
}
.cdr-work-area.is-capturing .cdr-work-area-trash {
  display: none;
}
.cdr-work-area-trash svg {
  width: 14px;
  height: 14px;
  display: block;
}
.cdr-work-area-handle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #fff;
  border: 2px solid #dc2626;
  box-sizing: border-box;
  z-index: 2;
  pointer-events: auto;
}
.cdr-work-area-handle[data-wa-handle="nw"] { left: -7px; top: -7px; cursor: nwse-resize; }
.cdr-work-area-handle[data-wa-handle="ne"] { right: -7px; top: -7px; cursor: nesw-resize; }
.cdr-work-area-handle[data-wa-handle="se"] { right: -7px; bottom: -7px; cursor: nwse-resize; }
.cdr-work-area-handle[data-wa-handle="sw"] { left: -7px; bottom: -7px; cursor: nesw-resize; }
.cdr-work-area-rot {
  position: absolute;
  left: 50%;
  top: -28px;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border-radius: 50%;
  border: 2px solid #dc2626;
  background: #fef2f2;
  color: #991b1b;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  cursor: grab;
  pointer-events: auto;
  user-select: none;
}
.cdr-enlarge-panel--plan {
  width: min(96vw, 1280px);
  height: min(92vh, 900px);
  max-height: 92vh;
}
.cdr-enlarge-panel--plan .cdr-enlarge-body,
.cdr-viewport--plan-enlarge {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  width: 100%;
  max-width: none;
  aspect-ratio: auto;
  height: auto;
  cursor: grab;
  touch-action: none;
  background: #f8fafc;
  position: relative;
}
.cdr-viewport--plan-enlarge.is-cropping {
  cursor: crosshair;
}
.cdr-pane .cdr-box3 {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: auto;
}
.cdr-pane .cdr-box3 > .cdr-box-title,
.cdr-pane .cdr-box3 > .cdr-box3-controls,
.cdr-pane .cdr-box3 > .feed-meta {
  flex: 0 0 auto;
}
.cdr-pane .cdr-box3 > .cdr-viewport,
.cdr-pane .cdr-box3 > .cdr-viewport--pdf-frame {
  flex: 0 0 auto;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 135 / 100;
  height: auto;
  min-height: 0;
  max-height: none;
}
.cdr-pane .cdr-box3 .cdr-work-area,
.cdr-pane .cdr-box3 .cdr-work-area-fill,
.cdr-pane .cdr-box3 .cdr-work-area-handle,
.cdr-pane .cdr-box3 .cdr-work-area-rot,
.cdr-pane .cdr-box3 .cdr-work-area-trash {
  pointer-events: none !important;
}
.cdr-viewport.is-panning,
.cdr-viewport.is-panning .cdr-plan-hit { cursor: grabbing; }
.cdr-plan-hit img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }
.cdr-plan-empty {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 10px 4px; min-height: 100px;
}
.cdr-mark-rect, .cdr-mark-circle {
  position: absolute; border: 2px solid #ef4444; box-sizing: border-box;
  pointer-events: none; transform: translate(-50%, -50%);
}
.cdr-mark-rect { transform: none; background: rgba(239, 68, 68, 0.15); }
.cdr-mark-circle { border-radius: 50%; background: rgba(239, 68, 68, 0.12); }
/* Prior-day auto marks (ASBUILT_AUTO, is_prior_day) — same grey as the UG materials
   schematic prior-day underlay (#94a3b8); today's own mark stays in the accent colour above. */
.cdr-mark-rect--prior, .cdr-mark-circle--prior {
  position: absolute; border: 2px dashed #94a3b8; box-sizing: border-box;
  pointer-events: none; transform: translate(-50%, -50%);
}
.cdr-mark-rect--prior { transform: none; background: rgba(148, 163, 184, 0.16); }
.cdr-mark-circle--prior { border-radius: 50%; background: rgba(148, 163, 184, 0.14); }
.dr-lm-review {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dr-lm-mark-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dr-lm-mark-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.dr-lm-mark-chip.is-active {
  border-color: #b91c1c;
  background: #fef2f2;
}
.dr-lm-plan-host {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px;
  overflow: auto;
  max-height: min(70vh, 720px);
}
.dr-lm-plan-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
}
.dr-lm-plan-wrap img {
  display: block;
  max-width: 100%;
  height: auto;
}
.dr-asbuilt-list .dr-asbuilt-row--drawn {
  border-color: #f59e0b;
  background: #fffbeb;
}
.dr-asbuilt-drawn {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #f59e0b;
  color: #1c1917;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}
.dr-asbuilt-empty {
  margin-top: 8px;
}
.dr-asbuilt-canvas-host {
  min-height: 70vh;
  width: 100%;
}
.dr-lm-mark {
  position: absolute;
  border: 2px solid #ef4444;
  box-sizing: border-box;
  pointer-events: none;
}
.dr-lm-mark--circle {
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  transform: translate(-50%, -50%);
}
.dr-lm-mark--rect {
  background: rgba(239, 68, 68, 0.15);
}
.cdr-photo-strip {
  display: flex; flex-wrap: nowrap; gap: 4px; align-items: flex-start;
  overflow-x: auto; padding-bottom: 2px;
  min-height: 0;
  height: 100%;
}
/* CDR editor Photos tab: wrap 2–3 rows so all thumbs are visible (A3 PDF strip stays 1-row). */
.cdr-pane .cdr-photo-strip:not(.cdr-photo-strip--a3) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 10px;
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
  max-height: none;
  align-items: start;
  align-content: start;
  padding-bottom: 4px;
}
.cdr-pane .cdr-photo-strip--large:not(.cdr-photo-strip--a3) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
}
.cdr-pane .cdr-photo-strip:not(.cdr-photo-strip--a3) .cdr-photo-tile {
  width: auto;
  max-width: none;
  min-width: 0;
  flex: none;
  height: auto;
  max-height: none;
}
.cdr-pane .cdr-box4 {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}
.cdr-pane .cdr-box4 > .cdr-photo-strip {
  flex: 1 1 auto;
  min-height: 0;
}
.cdr-pane .cdr-photo-strip:not(.cdr-photo-strip--a3) .cdr-photo-open {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  max-height: 132px;
}
.cdr-pane .cdr-photo-strip:not(.cdr-photo-strip--a3) .cdr-photo-tile img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: 132px;
  object-fit: contain;
  object-position: center;
}
.cdr-pane .cdr-photo-strip--large:not(.cdr-photo-strip--a3) .cdr-photo-open {
  max-height: 168px;
}
.cdr-pane .cdr-photo-strip--large:not(.cdr-photo-strip--a3) .cdr-photo-tile img {
  max-height: 168px;
}
.cdr-photo-strip--large .cdr-photo-tile .cdr-photo-open {
  flex: 0 0 auto;
  height: var(--cdr-photo-frame-h-lg, 280px);
  width: auto;
}
.cdr-photo-strip--large .cdr-photo-tile img {
  max-height: none;
  height: var(--cdr-photo-frame-h-lg, 280px);
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: center;
}
@media (max-width: 1099px) {
  .cdr-pane .cdr-photo-strip:not(.cdr-photo-strip--a3) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cdr-pane .cdr-photo-strip--large:not(.cdr-photo-strip--a3) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.cdr-photo-tile {
  width: auto; flex: 0 0 auto; border: none; background: transparent;
  overflow: hidden; display: flex; flex-direction: column; margin: 0;
  min-height: 0; height: auto; max-height: 100%; align-items: stretch;
  position: relative;
}
.cdr-photo-tile.is-dragging { opacity: 0.55; }
.cdr-photo-tile.is-drag-over {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.cdr-photo-drag {
  position: absolute; top: 4px; left: 4px; z-index: 3;
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(15, 23, 42, 0.72); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; letter-spacing: -1px; cursor: grab;
  user-select: none; line-height: 1;
}
.cdr-photo-drag:active { cursor: grabbing; }
.cdr-photo-remove {
  position: absolute; top: 4px; right: 4px; z-index: 3;
  width: 22px; height: 22px; border: 0; border-radius: 6px;
  background: rgba(185, 28, 28, 0.9); color: #fff;
  font-size: 14px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
}
.cdr-photo-remove:hover { background: #b91c1c; }
.cdr-photo-crop-chip {
  position: absolute; top: 4px; left: 30px; z-index: 2;
  background: #0f766e; color: #fff; font-size: 10px; font-weight: 650;
  border-radius: 999px; padding: 2px 6px; line-height: 1.2;
  pointer-events: none;
}
.cdr-photo-open {
  display: inline-block; border: 0; padding: 0; background: #f1f5f9; cursor: zoom-in;
  flex: 0 0 auto; width: auto; height: var(--cdr-photo-frame-h, 176px); min-height: 0;
  overflow: hidden; line-height: 0;
}
.cdr-photo-strip:not(.cdr-photo-strip--a3) .cdr-photo-tile img {
  max-width: none; max-height: none;
  height: var(--cdr-photo-frame-h, 176px); width: auto;
  object-fit: contain; object-position: center; display: block;
}
/* Pane grid thumbs must win over the 176px / 280px single-row sizes above. */
.cdr-pane .cdr-photo-strip:not(.cdr-photo-strip--a3) .cdr-photo-open {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  max-height: 132px;
}
.cdr-pane .cdr-photo-strip:not(.cdr-photo-strip--a3) .cdr-photo-tile img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: 132px;
  object-fit: contain;
  object-position: center;
}
.cdr-pane .cdr-photo-strip--large:not(.cdr-photo-strip--a3) .cdr-photo-open {
  height: auto;
  width: 100%;
  max-height: 168px;
}
.cdr-pane .cdr-photo-strip--large:not(.cdr-photo-strip--a3) .cdr-photo-tile img {
  width: 100%;
  height: 100%;
  max-height: 168px;
}
.cdr-photo-cap {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1px;
  padding: 3px 2px 0; font-size: 12px; background: transparent; border: none;
  flex: 0 0 auto; width: 100%; text-align: center;
}
.cdr-photo-src {
  font-weight: 650; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-align: center; max-width: 100%;
}
.cdr-photo-desc {
  font-size: 11px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-align: center; max-width: 100%; font-weight: 500;
}
.cdr-photo-strip--no-desc .cdr-photo-cap {
  display: none;
}
.cdr-photo-cap-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1px;
  width: 100%;
  margin: 0;
  padding: 3px 2px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: center;
}
.cdr-photo-cap-toggle:hover .cdr-photo-src,
.cdr-photo-cap-toggle:hover .cdr-photo-desc {
  text-decoration: underline;
}
.cdr-photo-cap-toggle.is-off .cdr-photo-desc-off {
  font-size: 11px;
  color: #94a3b8;
  font-style: italic;
  font-weight: 500;
}
.cdr-photo-cap-toggle.is-off:hover .cdr-photo-desc-off {
  color: #475569;
  text-decoration: underline;
}
.cdr-footer {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid #334155; border-top: none; padding: 0; margin: 0;
  align-items: stretch;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}
.cdr-endorse {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 8px 10px;
  border: none;
  border-right: 1px solid #334155;
  padding: 3px 10px;
  background: #fff;
  min-height: 0;
  overflow: hidden;
}
.cdr-endorse:last-child { border-right: none; }
.cdr-endorse > .cdr-lab,
.cdr-endorse > .cdr-sig-img,
.cdr-endorse > .cdr-sig-blank,
.cdr-endorse > .cdr-inp-name,
.cdr-endorse > .cdr-check-name {
  flex: 0 0 auto;
}
.cdr-endorse .cdr-inp-name {
  max-width: 180px;
}
.cdr-endorse .cdr-check-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cdr-sheet--a3-landscape .cdr-sig-img {
  max-height: 22px;
  max-width: 120px;
}
.cdr-sheet--a3-landscape .cdr-sig-blank {
  width: 120px;
  height: 22px;
}
.cdr-sheet--review .cdr-sig-pick-label,
.cdr-sheet--review .cdr-endorse-actions,
.cdr-sheet--review #cdrSigStatus {
  display: none;
}
.cdr-sig-pad, .cdr-sig-blank {
  width: 140px; height: 36px; border: 1px dashed #94a3b8; background: #fff; margin: 0;
  display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 11px;
  flex: 0 0 auto;
}
.cdr-sig-img { max-width: 140px; max-height: 36px; display: block; margin: 0; object-fit: contain; }
.cdr-sig-pick-label { display: inline-flex; align-items: center; gap: 4px; margin: 0; max-width: 260px; }
.cdr-check-name { font-size: 12px; }
.cdr-endorse-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.cdr-butt-empty-actions {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 4px 0 2px;
}
.cdr-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 12500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cdr-fusion-paste-modal .cdr-fusion-paste-panel {
  width: min(420px, 100%);
  max-height: none;
  padding: 18px 18px 16px;
  gap: 10px;
}
.cdr-fusion-paste-panel strong {
  font-size: 16px;
  color: #0f172a;
}
.cdr-fusion-paste-panel .feed-meta {
  margin: 0;
  line-height: 1.4;
}
.cdr-fusion-paste-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}
.cdr-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.cdr-picker-panel {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-height: min(88vh, 860px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #93c5fd;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
  padding: 0;
  margin: 0;
}
.cdr-picker-panel.cdr-photo-picker:not(.cdr-fusion-picker) {
  width: calc(100vw - 24px);
  height: calc(100vh - 24px);
  max-width: none;
  max-height: none;
}
.cdr-picker-panel.cdr-fusion-picker {
  width: min(96vw, 1080px);
  height: min(88vh, 780px);
  max-height: min(88vh, 780px);
}
.cdr-photo-picker {
  background: #fff;
}
.cdr-photo-picker-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  flex: 0 0 auto;
}
.cdr-picker-head-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cdr-picker-head-text strong {
  font-size: 15px;
  color: #0f172a;
}
.cdr-picker-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.cdr-photo-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  align-content: start;
  align-items: start;
  grid-auto-rows: min-content;
  gap: 10px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 12px 14px 16px;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  -webkit-overflow-scrolling: touch;
}
.cdr-photo-cols {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}
.cdr-photo-cols-btns {
  display: inline-flex;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.cdr-photo-cols-btns .btn {
  border: 0;
  border-radius: 0;
  margin: 0;
  min-width: 36px;
  background: #fff;
  color: #334155;
}
.cdr-photo-cols-btns .btn + .btn {
  border-left: 1px solid #e2e8f0;
}
.cdr-photo-cols-btns .btn.is-active {
  background: #0f172a;
  color: #fff;
}
.cdr-photo-cols-btns .btn:disabled {
  opacity: 0.38;
  cursor: default;
}
.cdr-photo-pick-card {
  width: 100%;
  min-width: 0;
  height: auto;
  justify-self: stretch;
  align-self: start;
  flex: none;
  border: 2px solid #e2e8f0;
  background: #fff;
  padding: 0;
  cursor: default;
  position: relative;
  text-align: left;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cdr-photo-pick-card.is-selected { border-color: #2563eb; box-shadow: 0 0 0 1px #2563eb; }
.cdr-photo-pick-main {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: inherit;
}
.cdr-photo-pick-minus {
  position: absolute; bottom: 8px; right: 8px; z-index: 2;
  width: 28px; height: 28px; border: 0; border-radius: 999px;
  background: rgba(15, 23, 42, 0.78); color: #fff;
  font-size: 18px; font-weight: 700; line-height: 1; cursor: pointer;
}
.cdr-photo-pick-minus:hover { background: #0f172a; }
.cdr-photo-pick-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  flex: 0 0 auto;
  aspect-ratio: 4 / 3;
  background: #f1f5f9;
}
.cdr-photo-pick-frame .feed-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0;
}
.cdr-photo-pick-frame.is-loading .feed-meta {
  color: #94a3b8;
}
.cdr-photo-pick-card img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  flex: none;
}
.cdr-photo-pick-card .cdr-photo-cap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 5px 6px 7px;
  min-height: 42px;
}
.cdr-photo-pick-card .cdr-photo-src {
  display: block;
  padding: 0;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
}
.cdr-photo-pick-card .cdr-photo-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.3;
  color: #0f172a;
  word-break: break-word;
}
.cdr-photo-pick-card.is-wsh .cdr-photo-src { color: #b45309; }
.cdr-photo-picker-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  flex: 0 0 auto;
}
.cdr-photo-wsh-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
  user-select: none;
}
.cdr-photo-wsh-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
}
.cdr-photo-picker-empty {
  grid-column: 1 / -1;
  margin: 12px 4px;
}
.cdr-photo-ord {
  position: absolute; top: 6px; left: 6px; background: #2563eb; color: #fff;
  font-size: 11px; font-weight: 700; border-radius: 999px; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
}
.cdr-photo-lightbox {
  position: fixed; inset: 0; z-index: 12000; background: rgba(15, 23, 42, 0.72);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.cdr-photo-lightbox-panel {
  position: relative;
  width: min(96vw, 1100px);
  max-height: 92vh;
  background: #0f172a;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.cdr-photo-lightbox-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #111827;
  color: #f8fafc;
}
.cdr-photo-lightbox-title {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  min-width: 0;
}
.cdr-photo-lightbox-title .feed-meta { color: #cbd5e1; }
.cdr-photo-crop-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #166534;
  color: #dcfce7;
}
.cdr-photo-lightbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cdr-photo-lightbox-hint {
  margin: 0;
  padding: 6px 12px 0;
  color: #e2e8f0;
}
.cdr-photo-lightbox-stage {
  position: relative;
  margin: 10px 12px 12px;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020617;
  border-radius: 6px;
  overflow: hidden;
}
.cdr-photo-lightbox-stage.is-cropping {
  cursor: crosshair;
}
.cdr-photo-lightbox-stage img {
  max-width: 100%;
  max-height: min(78vh, 820px);
  object-fit: contain;
  background: #fff;
  user-select: none;
  -webkit-user-drag: none;
}
.cdr-photo-lightbox-stage .cdr-crop-layer {
  z-index: 4;
}
.cdr-photo-lightbox-close {
  position: absolute; top: 16px; right: 16px;
}
.cdr-enlarge-modal {
  position: fixed; inset: 0; z-index: 13000; background: rgba(15, 23, 42, 0.55);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.cdr-enlarge-panel {
  position: relative;
  background: #fff; width: min(1100px, 100%); max-height: 90vh;
  border-radius: 10px; display: flex; flex-direction: column; overflow: hidden;
}
.cdr-enlarge-panel--sch {
  width: min(96vw, 1100px);
  height: min(92vh, 860px);
  max-height: 92vh;
}
.cdr-enlarge-panel--sch .cdr-enlarge-body {
  flex: 1;
  min-height: 480px;
  overflow: hidden;
}
.cdr-enlarge-modes {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 8px 12px; border-bottom: 1px solid #e2e8f0; background: #f8fafc;
}
.cdr-enlarge-mode-note { font-size: 12px; }
.cdr-enlarge-main-help {
  padding: 12px; max-width: 920px;
}
.cdr-enlarge-main-help p { margin: 0 0 8px; font-size: 13px; color: #334155; }
.cdr-enlarge-main-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }
.cdr-enlarge-main-preview {
  border: 1px solid #e2e8f0; border-radius: 8px; background: #fff;
  max-height: 52vh; overflow: auto; padding: 8px;
}
.cdr-enlarge-main-preview svg { max-width: 100%; height: auto; }
.cdr-enlarge-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border-bottom: 1px solid #e2e8f0;
}
.cdr-enlarge-head-actions {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
/* Mounted Site Portal Term Con editor — toolbar + viewport fill the modal body. */
.cdr-enlarge-body--editor {
  padding: 8px; display: flex; flex-direction: column;
}
.cdr-enlarge-editor {
  display: flex; flex-direction: column;
  flex: 1; min-height: 0;
}
.cdr-enlarge-editor .site-term-mat-preview-canvas { min-height: 0; flex: 1; }
.cdr-enlarge-editor .site-term-sch-viewport {
  flex: 1 1 auto;
  min-height: 0;
}
.cdr-enlarge-guide {
  position: absolute; inset: 0; z-index: 20;
  background: rgba(15, 23, 42, 0.45);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.cdr-enlarge-guide-panel {
  background: #fff; border-radius: 10px; padding: 14px;
  width: min(560px, 100%); max-height: 100%; overflow: auto;
}
.cdr-enlarge-guide-actions {
  display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px;
}
.cdr-enlarge-text-panel { width: min(460px, 100%); }
.cdr-enlarge-text-label { display: block; font-weight: 700; margin-bottom: 10px; }
/* Shared Term Con text-mark form, sized down for the desktop DR dialogs. */
.cdr-enlarge-text-panel .site-term-ann-text-input {
  min-height: 84px; padding: 10px 12px; font-family: inherit; font-size: 1rem;
  border-width: 1px; border-radius: 8px;
}
.cdr-enlarge-text-panel .site-term-ann-style-btn {
  width: 40px; height: 40px; border-width: 1px; border-radius: 8px;
}
.cdr-enlarge-text-panel .site-term-ann-style-btn .site-term-ann-style-ico { font-size: 1.05rem; }
.cdr-enlarge-text-panel .site-term-ann-text-actions { justify-content: flex-end; }
.cdr-enlarge-text-panel .site-term-ann-text-actions .btn {
  flex: 0 1 auto; min-height: 38px; font-size: 0.95rem;
}
.dr-sch-ann-text-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(15, 23, 42, 0.45);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.cdr-box3-controls {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-bottom: 6px; font-size: 12px;
}
.cdr-box3-controls select { max-width: 220px; font-size: 12px; }
.cdr-box3-source-modal { z-index: 13100; }
.cdr-box3-source-panel {
  width: min(1100px, 100%);
  height: min(88vh, 760px);
  max-height: min(88vh, 760px);
}
.cdr-box3-source-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid #e2e8f0;
}
.cdr-box3-source-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 10px 16px; border-bottom: 1px solid #e2e8f0; background: #f8fafc;
}
.cdr-box3-source-body {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: minmax(220px, 280px) 1fr; gap: 0;
}
.cdr-box3-source-list {
  overflow: auto; padding: 8px; border-right: 1px solid #e2e8f0; background: #fff;
}
.cdr-box3-source-item {
  display: block; width: 100%; text-align: left;
  border: 1px solid transparent; background: transparent;
  border-radius: 8px; padding: 8px 10px; margin-bottom: 4px;
  font: inherit; font-size: 13px; cursor: pointer; color: #0f172a;
}
.cdr-box3-source-item:hover { background: #f1f5f9; }
.cdr-box3-source-item.is-active {
  border-color: #93c5fd; background: #eff6ff; font-weight: 600;
}
.cdr-box3-source-preview {
  overflow: hidden; padding: 0; background: #f8fafc;
  display: flex; align-items: stretch; justify-content: stretch;
  min-height: 0; height: 100%; position: relative;
}
.cdr-box3-source-preview > .feed-meta { padding: 12px; }
.cdr-box3-source-stage {
  position: relative; flex: 1 1 auto; width: 100%; height: 100%;
  overflow: hidden; cursor: grab; background: #fff; touch-action: none;
}
.cdr-box3-source-stage.is-panning { cursor: grabbing; }
.cdr-box3-source-inner { transform-origin: 0 0; width: max-content; height: max-content; }
.cdr-box3-source-preview img,
.cdr-box3-source-inner img {
  max-width: none; width: auto; height: auto; display: block;
  background: #fff; border: 0; border-radius: 0;
  user-select: none; -webkit-user-drag: none;
}
.cdr-box3-source-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; border-top: 1px solid #e2e8f0; background: #fff;
}
@media (max-width: 760px) {
  .cdr-box3-source-body { grid-template-columns: 1fr; }
  .cdr-box3-source-list { max-height: 28vh; border-right: 0; border-bottom: 1px solid #e2e8f0; }
}
.cdr-viewport--plan-enlarge .cdr-viewport-snapshot {
  max-width: 100%; height: auto; display: block;
}
.cdr-viewport--plan-enlarge .cdr-plan-wrap:not(.cdr-plan-wrap--snapshot) img {
  max-width: none; width: auto; height: auto; display: block;
}
.cdr-mark-panel .cdr-enlarge-head {
  flex-wrap: wrap; gap: 8px;
}
.cdr-mark-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cdr-mark-stage {
  flex: 1; overflow: auto; min-height: 420px; background: #f1f5f9;
  display: flex; align-items: flex-start; justify-content: center; padding: 12px;
}
.cdr-mark-stage .cdr-plan-wrap {
  position: relative; max-width: 100%; cursor: crosshair; touch-action: none;
}
.cdr-mark-stage .cdr-plan-wrap img { max-width: 100%; height: auto; display: block; }
#cdrMarkOverlay { position: absolute; inset: 0; pointer-events: none; }
@media (max-width: 980px) {
  .cdr-row-top { grid-template-columns: 1fr; }
  .cdr-header { grid-template-columns: 1fr; }
  .cdr-sheet--a3-landscape .cdr-header {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
  .cdr-header-right { text-align: left; }
  .cdr-sheet--a3-landscape .cdr-header-right { text-align: right; }
  .cdr-footer { grid-template-columns: 1fr; }
}

/* CDR components panel (DR Admin tab — edit outside A3) */
.cdr-components-mount { min-height: 120px; padding-bottom: 72px; }
.cdr-status-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  scroll-margin-top: 8px;
}
.cdr-status-card-top {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between; align-items: flex-start;
}
.cdr-status-title {
  margin: 0 0 4px; font-size: 17px; font-weight: 700; color: #0f172a;
}
.cdr-status-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cdr-part-bar {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
}
.cdr-part-chip.is-active {
  background: #0f172a; color: #fff; border-color: #0f172a;
}
.cdr-photo-pick-card.is-elsewhere { opacity: 0.72; border-style: dashed; }
.cdr-photo-ord--locked {
  background: #b45309; width: auto; min-width: 20px; padding: 0 5px; border-radius: 999px;
}
.cdr-fusion-picker .cdr-fusion-pick-list {
  display: flex; flex-direction: column; gap: 6px;
  max-height: none; overflow: auto;
  padding: 12px 14px 16px;
  flex: 1 1 auto;
  min-height: 0;
}
.cdr-fusion-pick-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff;
  cursor: pointer;
}
.cdr-fusion-pick-row.is-selected { border-color: #2563eb; background: #eff6ff; }
.cdr-fusion-pick-row.is-elsewhere { border-style: dashed; background: #fffbeb; }
.cdr-fusion-pick-main { flex: 1; min-width: 160px; font-size: 13px; }
.cdr-status-checklist {
  list-style: none; margin: 12px 0 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px 10px;
}
@media (max-width: 1100px) {
  .cdr-status-checklist {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}
.cdr-status-checklist li {
  font-size: 12px; color: #475569; padding: 0;
  border-radius: 8px; background: #f8fafc; border: 1px solid #e2e8f0;
}
.cdr-status-checklist li.is-ok { border-color: #a7f3d0; background: #ecfdf5; color: #065f46; }
.cdr-status-checklist li.is-empty { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.cdr-status-jump {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  width: 100%; text-align: left; border: 0; background: transparent;
  color: inherit; font: inherit; padding: 6px 8px; cursor: pointer; border-radius: 8px;
}
.cdr-status-jump:hover { background: rgba(15, 23, 42, 0.04); }
.cdr-status-detail { font-weight: 400; }
.cdr-status-ready-btn {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  padding: 4px 10px;
  border: 1px solid #d97706;
  border-radius: 999px;
  background: #fff;
  color: #92400e;
  cursor: pointer;
}
.cdr-status-ready-btn:hover { background: #fffbeb; }
.cdr-status-tick,
.cdr-status-tick-btn,
.cdr-tab-tick,
.cdr-card-ready-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #059669;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  border: 0;
  padding: 0;
}
.cdr-status-tick {
  margin-left: auto;
}
.cdr-card-ready-tick {
  margin: 0 6px 0 2px;
  cursor: pointer;
  vertical-align: middle;
}
.cdr-card-ready-btn {
  margin-right: 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  padding: 4px 10px;
  border: 1px solid #d97706;
  border-radius: 999px;
  background: #fff;
  color: #92400e;
  cursor: pointer;
}
.cdr-card-ready-btn:hover { background: #fffbeb; }
.cdr-card-ready-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}
.cdr-tab-tick {
  margin-left: 6px;
  vertical-align: middle;
}
.cdr-component-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cdr-component-tabs {
  display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px;
  padding-bottom: 8px; border-bottom: 1px solid #e2e8f0;
}
/* Split panes: keep numbered tabs on one row; scroll when narrow */
.cdr-pane-tabs.cdr-component-tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  gap: 2px;
}
.cdr-pane-tabs .cdr-component-tab {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 10px 14px;
}
.cdr-pane-tabs .cdr-tab-label {
  white-space: nowrap;
}
.cdr-component-tabs .cdr-component-tab.is-active {
  color: #b91c1c;
  border-bottom: none;
  font-weight: 700;
}
.cdr-component-tabs.perm-tab-nav .perm-tab-btn.is-active::after,
.cdr-pane-tabs .perm-tab-btn.is-active::after {
  left: 0;
  right: 0;
}
.cdr-component-tabs .cdr-component-tab.is-ready:not(.is-active) {
  color: #047857;
}
.cdr-components-panel { display: flex; flex-direction: column; gap: 14px; padding-bottom: 48px; }
.cdr-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}
.cdr-split[data-split="1"] {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 0;
}
.cdr-pane {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px 12px;
  overflow: visible;
  min-height: 0;
}
.cdr-split[data-split="1"] .cdr-pane {
  height: auto;
  max-height: none;
  min-height: 0;
}
.cdr-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 0 0 auto;
}
.cdr-pane-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.cdr-pane-tabs {
  margin-bottom: 4px;
  padding-bottom: 6px;
  flex: 0 0 auto;
  background: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 2;
}
.cdr-pane .cdr-component-block {
  margin: 0;
  flex: 0 1 auto;
  min-height: 0;
  overflow: visible;
}
.cdr-upload-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin: 0;
}
.cdr-drop-zone {
  position: relative;
}
.cdr-drop-zone.is-file-drag {
  outline: 2px dashed #2563eb;
  outline-offset: 2px;
  background: rgba(37, 99, 235, 0.04);
}
.cdr-drop-zone:focus {
  outline: 2px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}
.cdr-drop-hint {
  margin: 0 0 8px;
}
.cdr-fusion-nil {
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
  background: #f9fafb;
}
.cdr-sheet--a3-landscape .cdr-box2 .cdr-layout-fit > .cdr-fusion-nil,
.cdr-sheet--a3-landscape .cdr-box2 .cdr-layout-fit > .cdr-schematic-blank,
.cdr-box2 .cdr-viewport .cdr-fusion-nil,
.cdr-box2 .cdr-viewport .cdr-schematic-blank {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}
.cdr-fusion-image-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  padding: 4px;
  min-width: 280px;
}
.cdr-fusion-image-strip--a3 {
  width: 100%;
  height: 100%;
  align-content: center;
  justify-content: center;
  gap: 4px;
  padding: 2px;
  box-sizing: border-box;
}
.cdr-fusion-image-tile {
  position: relative;
  margin: 0;
  flex: 1 1 140px;
  max-width: 220px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.cdr-fusion-image-strip--a3 .cdr-fusion-image-tile {
  flex: 1 1 30%;
  max-width: 48%;
  max-height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.cdr-fusion-image-tile img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  background: #f3f4f6;
}
.cdr-fusion-image-strip--a3 .cdr-fusion-image-tile img {
  max-height: 100%;
  background: transparent;
}
.cdr-sheet--a3-landscape .cdr-layout-body .cdr-fusion-a3-strip {
  width: 100%;
  height: 100%;
}
.cdr-fusion-image-tile figcaption {
  display: block;
  padding: 2px 6px 4px;
  text-align: center;
}
.cdr-fusion-image-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.cdr-fusion-image-remove:hover {
  background: #b91c1c;
}
.cdr-viewport--fusion-strip .cdr-viewport-inner {
  width: 100%;
}
.cdr-override-img {
  display: block;
  max-width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}
.cdr-override-grid {
  display: grid;
  grid-template-columns: repeat(var(--cdr-ov-cols, 1), minmax(0, 1fr));
  grid-template-rows: repeat(var(--cdr-ov-rows, 1), minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  height: 100%;
  min-height: 140px;
  background: #fff;
}
.cdr-override-cell {
  position: relative;
  margin: 0;
  min-width: 0;
  min-height: 0;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cdr-override-cell .cdr-override-img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  background: #fff;
}
.cdr-override-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}
.cdr-override-remove:hover {
  background: #b91c1c;
}
.cdr-viewport:has(.cdr-override-grid):not([data-viewport="box3"]):not([data-viewport="box3-enlarge"]) {
  cursor: default;
  touch-action: manipulation;
}
.cdr-viewport[data-viewport="box3"]:has(.cdr-override-grid):not(.is-locked),
.cdr-viewport[data-viewport="box3-enlarge"]:has(.cdr-override-grid):not(.is-locked) {
  cursor: grab;
  touch-action: none;
}
.cdr-plan-wrap--dr-override {
  position: relative;
}
.cdr-plan-wrap--dr-override > .cdr-override-remove {
  z-index: 6;
}
.cdr-viewport-inner--collage {
  width: 100%;
  height: 100%;
  transform: none !important;
}
.cdr-th-sketch-zone {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
}
.cdr-th-sketch-zone.is-file-drag,
.cdr-drop-zone.is-file-drag {
  outline: 2px solid #dc2626;
  background: #fef2f2;
}
.cdr-th-sketch-zone .cdr-override-grid {
  min-height: 120px;
}
.cdr-th-empty {
  margin: 6px 0 0;
}
.cdr-th-preview-label {
  font-size: 11px;
  color: #64748b;
  margin: 6px 0 4px;
}
.cdr-box1-guide {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.cdr-box1-guide-title {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 4px;
}
.cdr-box1-guide-lines {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.cdr-box1-guide-lines li {
  font-size: 12px;
  color: #0f172a;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 2px 8px;
}
.cdr-viewport.is-cropping {
  cursor: crosshair;
  position: relative;
}
.cdr-viewport.is-cropping .cdr-work-areas-layer,
.cdr-viewport.is-cropping .cdr-work-area,
.cdr-viewport.is-cropping .cdr-work-area-fill {
  pointer-events: none !important;
  visibility: hidden;
}
.cdr-crop-layer {
  position: absolute;
  inset: 0;
  z-index: 30;
  cursor: crosshair;
  background: rgba(15, 23, 42, 0.08);
  touch-action: none;
}
.cdr-crop-rect {
  position: absolute;
  border: 2px solid #dc2626;
  background: rgba(220, 38, 38, 0.12);
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.25);
  pointer-events: none;
}
.cdr-asbuilt-hint {
  margin: 0 0 8px;
  color: #92400e;
}
@media (max-width: 1099px) {
  .cdr-split[data-split="1"] {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .cdr-split[data-split="1"] .cdr-pane {
    height: auto;
    max-height: none;
  }
}
.cdr-component-block {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 12px 14px;
}
.cdr-box1-toolbar {
  display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-left: 8px;
}
.cdr-box1-toolbar .cdr-box1-filter { min-width: 160px; max-width: 220px; }
.cdr-box1-view-seg {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: #e2e8f0;
  vertical-align: middle;
}
.cdr-box1-view-chip {
  appearance: none;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 4px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: #475569;
  cursor: pointer;
}
.cdr-box1-view-chip.is-on {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.14);
}
.cdr-svc-table--ref-cost .cdr-inp-cost {
  min-width: 72px; max-width: 100px;
}
.cdr-svc-table--ref-cost .cdr-line-amt {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #334155;
  font-size: 13px;
}
.cdr-svc-table .cdr-svc-ro {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #475569;
  font-size: 13px;
  vertical-align: middle;
}
.cdr-svc-table .cdr-svc-ro-cost {
  color: #334155;
}
.cdr-box1-ref-total {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end;
  gap: 10px; margin-top: 10px; padding: 8px 10px;
  background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 8px;
}
.cdr-box1-ref-total strong {
  font-size: 16px; color: #0f172a; font-variant-numeric: tabular-nums;
}
.cdr-box1-rollup {
  margin-top: 10px;
  padding: 10px 12px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
/* Service/pipe: table (Today) or WO rollup fills the remaining pane. */
.cdr-pane .cdr-component-block:has(> .cdr-box1),
.cdr-pane .cdr-component-block:has(.cdr-box1) {
  overflow: visible;
  display: flex;
  flex-direction: column;
}
.cdr-pane .cdr-box1 {
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.cdr-pane .cdr-box1 > .cdr-box-title {
  flex: 0 0 auto;
}
.cdr-pane .cdr-box1 > .table-wrap {
  flex: 0 1 auto;
  min-height: 72px;
  overflow: visible;
}
.cdr-pane .cdr-box1 > #cdrBox1Add,
.cdr-pane .cdr-box1 > .cdr-box1-ref-total,
.cdr-pane .cdr-box1 > .cdr-hint {
  flex: 0 0 auto;
}
.cdr-pane .cdr-box1[data-box1-view="wo"] > .cdr-box1-rollup {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
  margin-top: 0;
}
.cdr-box1-rollup-label { margin-bottom: 8px; }
.cdr-box1-rollup-table {
  font-size: 12px;
  width: 100%;
}
.cdr-box1-rollup-table th {
  white-space: nowrap;
  font-size: 11px;
  color: #64748b;
  font-weight: 650;
}
.cdr-box1-rollup-row,
.cdr-box1-rollup-wo {
  cursor: pointer;
}
.cdr-box1-rollup-row:hover,
.cdr-box1-rollup-wo:hover {
  background: #f1f5f9;
}
.cdr-box1-rollup-row.is-current td:first-child {
  box-shadow: inset 3px 0 0 #0ea5e9;
}
.cdr-box1-rollup-row.is-active,
.cdr-box1-rollup-wo.is-active {
  background: #f0f9ff;
}
.cdr-box1-team-code {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.cdr-box1-cur-pill {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 650;
  background: #e0f2fe;
  color: #0369a1;
}
.cdr-box1-rollup-wo td {
  border-top: 1px solid #cbd5e1;
  padding-top: 8px;
}
.cdr-box1-rollup-detail {
  margin-top: 10px; padding-top: 8px; border-top: 1px solid #e2e8f0;
}
.cdr-box1-rollup-detail-title {
  font-size: 12px; font-weight: 650; color: #334155; margin-bottom: 6px;
}
.cdr-box1-rates-table { font-size: 12px; }
.cdr-box1-rates-table th { white-space: nowrap; }
/* Schematic pane: fixed A3 PDF frame size — viewport never shrinks/grows with mode */
.cdr-pane .cdr-box2 {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: auto;
}
.cdr-pane .cdr-box2 > .cdr-box-title,
.cdr-pane .cdr-box2 > .cdr-drop-hint {
  flex: 0 0 auto;
}
.cdr-box-title .cdr-other-days-switch,
.cdr-enlarge-head .cdr-other-days-switch {
  gap: 6px;
}
.cdr-box-title .cdr-other-days-switch .site-ftbm-switch,
.cdr-enlarge-head .cdr-other-days-switch .site-ftbm-switch {
  width: 42px;
  height: 24px;
}
.cdr-box-title .cdr-other-days-switch .site-ftbm-switch-knob,
.cdr-enlarge-head .cdr-other-days-switch .site-ftbm-switch-knob {
  width: 18px;
  height: 18px;
  top: 3px;
  left: 3px;
}
.cdr-box-title .cdr-other-days-switch .site-ftbm-switch.is-on .site-ftbm-switch-knob,
.cdr-enlarge-head .cdr-other-days-switch .site-ftbm-switch.is-on .site-ftbm-switch-knob {
  transform: translateX(18px);
}
.cdr-pane .cdr-box2 > .cdr-viewport,
.cdr-pane .cdr-box2 > .cdr-viewport--pdf-frame {
  flex: 0 0 auto;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 135 / 100;
  height: auto;
  min-height: 0;
  max-height: none;
}
.cdr-pane .cdr-box2 > .cdr-viewport.is-cropping {
  max-height: none;
  min-height: 0;
}
.cdr-pane .cdr-box3 > .cdr-viewport.is-cropping {
  max-height: none;
  min-height: 0;
}
.cdr-pane .cdr-box2 > .cdr-pdf-frame-hint {
  flex: 0 0 auto;
  margin-bottom: 4px;
}
.cdr-box2-mat-summary {
  margin-top: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  overflow: auto;
  flex: 0 0 auto;
  max-height: min(32vh, 240px);
  min-height: 0;
}
.cdr-box2-mat-summary-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 8px; padding: 8px 10px;
  background: #f8fafc; border-bottom: 1px solid #e2e8f0;
  position: sticky; top: 0; z-index: 1;
}
.cdr-box2-mat-summary-head strong {
  font-size: 12px; color: #0f172a;
}
.cdr-box2-mat-block {
  padding: 8px 10px 10px;
}
/* Material summary lines up with Service/pipe table in the left pane */
.cdr-pane .cdr-box2-mat-summary {
  margin-left: 0;
  padding-left: 2px;
}
.cdr-pane .cdr-box2-mat-table th:first-child,
.cdr-pane .cdr-box2-mat-table td:first-child {
  padding-left: 10px;
}
.cdr-box2-mat-block + .cdr-box2-mat-block {
  border-top: 1px solid #f1f5f9;
}
.cdr-box2-mat-claim-ref {
  background: #f8fafc;
}
.cdr-box2-mat-list--claim {
  padding-left: 1.2em;
}
.cdr-box2-mat-list--claim li {
  margin: 2px 0;
}
.cdr-box2-mat-block-title {
  font-size: 11px; font-weight: 650; color: #64748b;
  text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.cdr-box2-mat-table {
  font-size: 12px; width: 100%; margin: 0;
}
.cdr-box2-mat-table th {
  font-size: 11px; color: #64748b; font-weight: 650;
}
.cdr-box2-mat-table .cdr-num,
.cdr-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cdr-box2-mat-list {
  margin: 0; padding: 8px 10px 10px 1.4em; font-size: 12px; color: #0f172a;
  line-height: 1.45;
}
.cdr-box2-mat-table .cdr-pipe-len-inp {
  width: 72px;
  min-width: 72px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.cdr-box2-mat-table--pipe-edit td .feed-meta {
  display: block;
  font-size: 10px;
  margin-top: 2px;
}
.cdr-box2-mat-caption {
  margin-top: 36px; font-size: 12px;
}
.cdr-box3-align-actions {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px;
}
.cdr-component-block .cdr-box {
  border: 0; padding: 0; background: transparent; box-shadow: none;
}
.cdr-component-block .cdr-box-title {
  font-size: 13px; font-weight: 650; margin-bottom: 8px;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  background: transparent; border-bottom: none; padding: 0;
}
/* Match A3 PDF schematic/plan column (~132×98mm → W:H ≈ 1.35) */
.cdr-viewport--pdf-frame {
  width: min(100%, 560px);
  aspect-ratio: 135 / 100;
  height: auto;
  min-height: 0;
  max-height: none;
  border: 1px solid #334155;
  border-radius: 0;
  background: #fff;
  overflow: hidden;
  position: relative;
}
.cdr-component-block .cdr-viewport {
  min-height: 0;
  max-height: none;
}
.cdr-component-block .cdr-viewport--pdf-frame {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 135 / 100;
  min-height: 0;
  max-height: none;
  margin: 0;
}
.cdr-pane .cdr-component-block .cdr-viewport--pdf-frame {
  min-height: 0;
  max-height: none;
}
.cdr-sheet--a3-landscape .cdr-row-top .cdr-viewport--pdf-frame {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  flex: 1 1 auto;
  min-height: 0;
  border: none;
}
.cdr-viewport-snapshot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  background: #fff;
}
.cdr-viewport.is-locked > .cdr-viewport-snapshot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}
.cdr-pdf-frame-hint {
  margin: 6px 0 0;
  font-size: 11px;
  color: #64748b;
}
.cdr-align-chip {
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 650;
  padding: 3px 8px; border-radius: 999px; border: 1px solid #e2e8f0; background: #f8fafc;
  cursor: pointer; font-family: inherit;
}
.cdr-align-chip.is-ok { border-color: #a7f3d0; background: #ecfdf5; color: #065f46; }
.cdr-align-chip.is-warn { border-color: #f59e0b; background: #fffbeb; color: #92400e; }
.cdr-sheet--review .cdr-plan-hit { cursor: default; }
.cdr-align-panel { width: min(1200px, 100%); }
.cdr-align-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 12px; overflow: auto; max-height: 70vh; background: #f1f5f9;
}
.cdr-align-pane .cdr-plan-wrap {
  position: relative; background: #fff; border: 1px solid #cbd5e1; border-radius: 6px;
  cursor: crosshair; min-height: 200px;
}
.cdr-align-pane img { width: 100%; height: auto; display: block; }
.cdr-align-dot {
  position: absolute; transform: translate(-50%, -50%);
  background: #2563eb; color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 999px; padding: 2px 6px; pointer-events: none;
  box-shadow: 0 0 0 2px #fff;
}
@media (max-width: 900px) {
  .cdr-align-grid { grid-template-columns: 1fr; }
}

/* WorkPlan — empty PDF <-> TCP 2-point align modal (Overview "Align & lock"). */
.wp-empty-align-modal {
  position: fixed; inset: 0; z-index: 13500; background: rgba(15, 23, 42, 0.62);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.wp-empty-align-panel {
  background: #fff; width: min(1280px, 100%); height: min(860px, 92vh);
  border-radius: 10px; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.35);
}
.wp-empty-align-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid #e2e8f0;
}
.wp-empty-align-head strong { font-size: 13px; }
.wp-empty-align-status {
  margin: 0; padding: 8px 14px; border-bottom: 1px solid #e2e8f0;
  background: #f8fafc; font-weight: 600;
}
.wp-empty-align-canvas-wrap {
  flex: 1 1 auto; position: relative; background: #f1f5f9; min-height: 0;
}
.wp-empty-align-canvas-wrap canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair;
}
.wp-empty-align-actions {
  display: flex; justify-content: flex-end; gap: 8px; padding: 10px 14px;
  border-top: 1px solid #e2e8f0;
}
.wp-empty-align-actions .btn-primary:disabled {
  opacity: 0.5; cursor: not-allowed;
}
.wp-aln-modal {
  position: fixed;
  inset: 0;
  z-index: 12600;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 8px;
}
.wp-aln-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.wp-aln-panel {
  position: relative;
  z-index: 1;
  width: min(98vw, 1760px);
  height: min(96vh, 1040px);
  background: #fff;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
}
.wp-aln-head,
.wp-aln-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
}
.wp-aln-foot {
  border-bottom: 0;
  border-top: 1px solid #e2e8f0;
  align-items: center;
}
.wp-aln-head h3 { margin: 0 0 4px; }
.wp-aln-status {
  margin: 0;
  padding: 8px 14px;
  background: #f8fafc;
  font-weight: 600;
}
.wp-aln-tcp-wait {
  margin: 0;
  padding: 8px 14px;
  background: #fffbeb;
  color: #92400e;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid #fde68a;
}
.wp-aln-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.wp-aln-card {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e2e8f0;
}
.wp-aln-card:last-child { border-right: 0; }
.wp-aln-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
}
.wp-aln-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wp-aln-search-row {
  position: relative;
  z-index: 40;
  flex: 0 0 auto;
  padding: 6px 10px;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  overflow: visible;
}
.wp-aln-search-wrap {
  position: relative;
  display: flex;
  gap: 6px;
  align-items: center;
  overflow: visible;
}
.wp-aln-search-wrap .pg-search-input {
  flex: 1 1 auto;
  min-width: 0;
}
.wp-aln-search-wrap .aln-map-results {
  left: 0;
  width: 100%;
  right: auto;
  z-index: 50;
}
.wp-aln-op {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #475569;
  font-weight: 600;
  white-space: nowrap;
}
.wp-aln-op input[type="range"] {
  width: 78px;
  margin: 0;
  vertical-align: middle;
}
.wp-aln-overlap {
  flex: 1;
  min-height: 0;
  position: relative;
  background: #dbe4ee;
  overflow: hidden;
  touch-action: none;
}
.wp-aln-overlap-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
.wp-aln-overlap-stage {
  overflow: visible;
}
.wp-aln-overlap-clean,
.wp-aln-overlap-proposed {
  display: block;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.wp-aln-overlap-clean {
  position: relative;
}
.wp-aln-overlap-proposed {
  position: absolute;
  left: 0;
  top: 0;
  mix-blend-mode: multiply;
}
.wp-aln-plan {
  flex: 1;
  min-height: 0;
  position: relative;
  background: #dbe4ee;
  overflow: hidden;
  touch-action: none;
}
.wp-aln-right {
  flex: 1;
  min-height: 0;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  background: #dbe4ee;
  overflow: hidden;
}
.wp-aln-layers {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 8px 4px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  flex: 0 0 auto;
  z-index: 2;
}
.wp-aln-layer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  line-height: 1.2;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 2px 8px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  opacity: 0.45;
}
.wp-aln-layer i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.wp-aln-layer.is-on {
  background: #fff7ed;
  border-color: #fb923c;
  color: #9a3412;
  opacity: 1;
}
.wp-tcp-signal-icon {
  background: transparent !important;
  border: 0 !important;
  pointer-events: none !important;
}
.wp-tcp-signal {
  width: 10px;
  height: 18px;
  border-radius: 2px;
  background: #111827;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  box-shadow: 0 0 0 1px #fff;
}
.wp-tcp-signal i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: block;
}
.wp-tcp-signal i:nth-child(1) { background: #ef4444; }
.wp-tcp-signal i:nth-child(2) { background: #f59e0b; }
.wp-tcp-signal i:nth-child(3) { background: #22c55e; }
.wp-aln-map {
  position: relative;
  flex: 1;
  min-height: 0;
}
.wp-aln-map .leaflet-container {
  width: 100%;
  height: 100%;
  background: #e8eef5;
  cursor: crosshair;
}
.wp-aln-plan-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center center;
}
.wp-aln-plan-stage img {
  display: block;
  max-width: none;
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.wp-aln-crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  pointer-events: none;
  z-index: 3;
}
.wp-aln-map > .wp-aln-crosshair {
  z-index: 1100;
}
.wp-aln-crosshair::before,
.wp-aln-crosshair::after {
  content: '';
  position: absolute;
  background: #dc2626;
  box-shadow: 0 0 0 1px #fff;
}
.wp-aln-crosshair::before {
  left: 13px;
  top: 0;
  width: 2px;
  height: 28px;
}
.wp-aln-crosshair::after {
  left: 0;
  top: 13px;
  width: 28px;
  height: 2px;
}
.wp-aln-zoom-pct {
  min-width: 44px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  text-align: center;
}
.wp-aln-zoom-btn {
  min-width: 40px;
  min-height: 36px;
  font-size: 18px;
  font-weight: 700;
}
.wp-aln-grid--focus-left .wp-aln-card[data-aln-side="right"],
.wp-aln-grid--focus-right .wp-aln-card[data-aln-side="left"] {
  display: none;
}
.wp-aln-grid--focus-left,
.wp-aln-grid--focus-right {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}
.wp-dim-test-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 8px;
}
.wp-dim-test-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.wp-dim-test-panel {
  position: relative;
  z-index: 1;
  width: min(96vw, 1200px);
  height: min(94vh, 980px);
  background: #fff;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
}
.wp-dim-test-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
}
.wp-dim-test-head h3 { margin: 0 0 4px; }
.wp-dim-test-status {
  margin: 0;
  padding: 10px 14px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 800;
}
.wp-dim-test-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid #f1f5f9;
}
.wp-dim-test-toolbar .is-on {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}
.wp-dim-test-host {
  flex: 1;
  min-height: 0;
  position: relative;
  background: #dbe4ee;
  overflow: hidden;
  touch-action: none;
  cursor: crosshair;
}
.wp-dim-test-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center center;
}
.wp-dim-test-stage img {
  display: block;
  max-width: none;
  cursor: crosshair;
  user-select: none;
}
.wp-aln-dim-svg {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
  pointer-events: none;
}
.wp-aln-dim-line {
  stroke: #0f766e;
  stroke-linecap: round;
}
.wp-aln-dim-dot {
  fill: #0f766e;
  stroke: #fff;
}
.wp-aln-dim-pt,
.wp-aln-dim-label {
  fill: #0f766e;
  font-weight: 900;
  text-anchor: middle;
  paint-order: stroke;
  stroke: #fff;
  stroke-linejoin: round;
}
.wp-aln-dim-label {
  fill: #064e3b;
}
.wp-aln-dim-label-bg {
  fill: #fff;
  stroke: #0f766e;
  stroke-width: 2;
  opacity: 0.96;
}
.wp-aln-pin {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.45);
}
@media (max-width: 800px) {
  .wp-aln-grid { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .wp-aln-card { border-right: 0; border-bottom: 1px solid #e2e8f0; }
  .wp-aln-grid--focus-left,
  .wp-aln-grid--focus-right {
    grid-template-rows: 1fr;
  }
  .wp-aln-tools .btn { min-height: 36px; }
  .wp-aln-panel { height: 100vh; height: 100dvh; width: 100vw; border-radius: 0; }
}

/* WorkPlan — known-length scale calibration + re-base modals */
.wp-scale-calib-modal {
  position: fixed; inset: 0; z-index: 13500; background: rgba(15, 23, 42, 0.62);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.wp-scale-calib-panel {
  background: #fff; width: min(1100px, 100%); height: min(820px, 92vh);
  border-radius: 10px; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.35);
}
.wp-scale-calib-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid #e2e8f0;
}
.wp-scale-calib-head strong { font-size: 13px; }
.wp-scale-calib-status {
  margin: 0; padding: 8px 14px; border-bottom: 1px solid #e2e8f0;
  background: #f8fafc; font-weight: 600;
}
.wp-scale-calib-meta {
  padding: 8px 14px; border-bottom: 1px solid #e2e8f0; background: #fff;
  max-height: 120px; overflow: auto; font-size: 12px;
}
.wp-scale-calib-table {
  width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 12px;
}
.wp-scale-calib-table th,
.wp-scale-calib-table td {
  text-align: left; padding: 2px 6px; border-bottom: 1px solid #e2e8f0;
}
.wp-scale-calib-canvas-wrap {
  flex: 1 1 auto; position: relative; background: #f1f5f9; min-height: 0;
}
.wp-scale-calib-canvas-wrap canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair;
}
/* Zoom/pan picking view — gestures belong to the canvas, not the page scroller. */
.wp-scale-calib-view {
  overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none;
}
.wp-scale-calib-view canvas { cursor: grab; }
.wp-scale-calib-view canvas:active { cursor: grabbing; }
.wp-scale-calib-view .wpab-pin-bar.is-waiting {
  box-shadow: 0 0 0 2px rgba(196, 30, 58, 0.75);
}
.wp-scale-calib-view .wpab-pin-bar .btn:disabled { opacity: 0.45; }
.wp-scale-calib-actions {
  display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 10px 14px;
  border-top: 1px solid #e2e8f0;
}
.wp-scale-calib-actions .btn-primary:disabled {
  opacity: 0.5; cursor: not-allowed;
}
.wp-rebase-panel { width: min(1280px, 100%); }
.wp-rebase-grid {
  flex: 1 1 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 0;
  border-bottom: 1px solid #e2e8f0;
}
.wp-rebase-pane {
  display: flex; flex-direction: column; min-height: 0; border-right: 1px solid #e2e8f0;
}
.wp-rebase-pane:last-child { border-right: 0; }
.wp-rebase-pane-label {
  padding: 6px 10px; font-size: 12px; font-weight: 700; background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.wp-rebase-pane .wp-scale-calib-canvas-wrap { flex: 1 1 auto; min-height: 280px; }
.wp-rebase-nudge {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 8px 14px; border-bottom: 1px solid #e2e8f0; background: #fffbeb;
}
@media (max-width: 900px) {
  .wp-rebase-grid { grid-template-columns: 1fr; }
}

/* Proposed takeoff + Overview Asbuilt rework */
.wp-overview-flow {
  display: grid;
  gap: 12px;
  margin-top: 2px;
}
.wp-overview-flow-title {
  margin: 2px 0 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.wp-ov-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.wp-ov-card-head h4 { margin: 0 0 4px; }
.wp-ov-card-head .wp-ov-step { margin: 0; max-width: 52rem; }
.wp-ov-card-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.wp-page-row {
  list-style: none;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px 12px;
  background: #fff;
}
.wp-page-row.is-active { border-color: #86efac; background: #f0fdf4; }
.wp-page-row-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.wp-page-row-title { min-width: 0; }
.wp-sheet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wp-sheet-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.1fr) minmax(148px, 190px);
  gap: 10px;
  align-items: stretch;
  list-style: none;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}
.wp-sheet-row-label {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
}
.wp-sheet-col {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px;
  background: #f8fafc;
  min-width: 0;
}
.wp-sheet-col.is-done { border-color: #86efac; background: #f0fdf4; }
.wp-sheet-col.is-busy { border-color: #fbbf24; background: #fffbeb; }
.wp-sheet-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}
.wp-sheet-col-head strong { font-size: 12px; font-weight: 700; }
.wp-sheet-col--site {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  background: #fff;
}
.wp-sheet-basemap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.wp-sheet-basemap-label {
  font-size: 12px;
  font-weight: 700;
  margin-right: 2px;
}
.wp-sheet-basemap-btn.is-on {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}
.wp-site-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  user-select: none;
}
.wp-site-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.wp-site-switch-track {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px #94a3b8;
}
.wp-site-switch-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
  transition: transform 0.15s ease;
}
.wp-site-switch input:checked + .wp-site-switch-track {
  background: #16a34a;
  box-shadow: inset 0 0 0 1px #15803d;
}
.wp-site-switch input:checked + .wp-site-switch-track::after {
  transform: translateX(18px);
}
.wp-site-switch input:focus-visible + .wp-site-switch-track {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.wp-site-switch input:disabled + .wp-site-switch-track {
  opacity: 0.55;
}
@media (max-width: 900px) {
  .wp-sheet-row { grid-template-columns: 1fr; }
}
.wp-page-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.wp-page-steps.wp-page-steps--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.wp-page-step {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px;
  background: #f8fafc;
  min-width: 0;
}
.wp-page-step.is-done { border-color: #86efac; background: #f0fdf4; }
.wp-page-step.is-busy { border-color: #fbbf24; background: #fffbeb; }
.wp-page-step.is-skip { background: #f1f5f9; color: #64748b; }
.wp-page-step-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.wp-page-step-head strong {
  font-size: 12px;
  font-weight: 700;
}
.wp-page-step-status {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: #64748b;
  min-height: 2.2em;
}
.wp-page-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
  align-items: center;
}
.wp-plan-share-team {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.wp-share-team-dialog {
  width: min(440px, 100%);
}
.wp-share-team-filter {
  width: 100%;
  margin: 8px 0 12px;
  padding: 8px 10px;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  font-size: 14px;
}
.wp-share-team-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: min(52vh, 420px);
  overflow: auto;
  padding-right: 2px;
}
.wp-share-team-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  background: var(--lz-card, #fff);
  cursor: pointer;
}
.wp-share-team-item:hover,
.wp-share-team-item:focus {
  border-color: #2563eb;
  background: #f8fbff;
  outline: none;
}
.wp-share-team-item-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.wp-share-team-item-main .feed-meta {
  margin: 0;
}
.wp-share-team-pill,
.wp-share-team-go {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
}
.wp-share-team-go { color: #1d4ed8; }
.wp-share-team-pill {
  color: #047857;
  background: #ecfdf5;
  border-radius: 999px;
  padding: 2px 8px;
}
.wp-share-team-item.is-shared { background: #f8fafc; }
.wp-page-step.is-busy .wp-page-step-status::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: #d97706;
  box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.5);
  animation: wp-tcp-pulse 1.2s ease-out infinite;
}
@keyframes wp-tcp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(217, 119, 6, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}
.wp-clean-aln-stage {
  position: relative;
  height: 100%;
  overflow: auto;
  background: #e8eef5;
}
.wp-clean-aln-stage img {
  display: block;
  max-width: 100%;
  height: auto;
  cursor: crosshair;
  user-select: none;
}
@media (max-width: 900px) {
  .wp-page-steps,
  .wp-page-steps.wp-page-steps--3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wp-page-steps,
  .wp-page-steps.wp-page-steps--3 { grid-template-columns: 1fr; }
}
.wp-overview-block {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px 14px;
  background: #fff;
}
.wp-overview-block h4 { margin: 0 0 6px; font-size: 15px; }
.wp-ov-step-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.wp-ov-step-head h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 15px;
}
.wp-ov-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.wp-overview-block .wp-ov-step {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 10px;
  line-height: 1.45;
}
.wp-ov-area-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.wp-ov-area-search { position: relative; flex: 1 1 180px; min-width: 160px; max-width: 320px; }
.wp-area-fade { margin: 0; }
.wp-ov-area-map {
  height: 280px;
  border-radius: 8px;
  overflow: hidden;
  background: #e8eef5;
  border: 1px solid #e2e8f0;
}
.wp-ov-asbuilt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.wp-area-split-modal {
  position: fixed;
  inset: 0;
  z-index: 12500;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 10px;
}
.wp-area-split-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.wp-area-split-panel {
  position: relative;
  z-index: 1;
  width: min(1440px, 100%);
  height: min(96vh, 980px);
  background: #fff;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
}
.wp-area-split-head,
.wp-area-split-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
}
.wp-area-split-foot {
  border-bottom: 0;
  border-top: 1px solid #e2e8f0;
  align-items: center;
}
.wp-area-close-ask {
  position: absolute;
  inset: 0;
  z-index: 8;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.wp-area-close-ask-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px 20px;
  width: min(420px, 100%);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28);
}
.wp-area-close-ask-card p { margin: 0 0 8px; }
.wp-area-close-ask-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 14px;
}
.wp-area-scale-lab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #475569;
  white-space: nowrap;
}
.wp-area-scale-input {
  width: 72px;
  height: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.wp-area-split-draw-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 6px 12px 0;
}
.wp-area-scale-hint {
  padding: 2px 12px 8px !important;
}
.wp-area-split-preview.is-marking-scale { cursor: crosshair; }
.wp-area-split-marks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.wp-area-scale-dot {
  position: absolute;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.4);
}
.wp-area-scale-seg {
  position: absolute;
  height: 3px;
  margin-top: -1.5px;
  background: #dc2626;
  transform-origin: 0 50%;
  pointer-events: none;
}
.leaflet-container.wp-area-map-rotate {
  cursor: grab;
}
.wp-area-handle-rot-glyph {
  display: block;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 22px;
  line-height: 38px;
  text-align: center;
  font-weight: 700;
}
.wp-area-split-head h3 { margin: 0 0 4px; }
.wp-area-split-head-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.wp-area-split-grid.is-map-wide {
  grid-template-columns: 1fr;
}
.wp-area-split-grid.is-map-wide .wp-area-split-card--drawing {
  display: none;
}
.wp-area-split-panel.is-map-wide {
  width: min(98vw, 1760px);
}
.wp-area-split-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.wp-area-split-card {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e2e8f0;
}
.wp-area-split-card:last-child { border-right: 0; }
.wp-area-split-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
}
.wp-area-split-pager {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 220px;
  justify-content: flex-end;
}
.wp-area-split-pager-btn {
  flex: 0 0 auto;
  min-width: 36px;
  font-size: 22px;
  line-height: 1;
  padding: 2px 8px;
}
.wp-area-split-pager-mid {
  min-width: 0;
  text-align: center;
  max-width: 280px;
}
.wp-area-split-pager-label {
  display: block;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wp-area-split-pager-mid .feed-meta { display: block; margin: 0; }
.wp-area-split-zoombar {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  margin-left: auto;
}
.wp-area-split-zoombar .btn {
  min-width: 40px;
  min-height: 40px;
  font-size: 18px;
  font-weight: 700;
  padding: 0 8px;
}
.wp-area-mode-pair {
  display: inline-flex;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  flex: 0 0 auto;
}
.wp-area-mode-pair .btn {
  min-height: 44px;
  min-width: 76px;
  border-radius: 0;
  margin: 0;
  font-weight: 800;
}
.wp-area-split-preview {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #f8fafc;
  position: relative;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.wp-area-split-preview.is-panning { cursor: grabbing; }
.wp-area-split-img {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  height: auto;
  display: block;
  transform-origin: 0 0;
  pointer-events: none;
  background: #fff;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.08);
}
.wp-area-split-boxrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 0;
}
.wp-area-box-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wp-area-box-chip {
  min-width: 28px;
  height: 28px;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}
.wp-area-box-chip.has-box { border-color: #dc2626; color: #b91c1c; }
.wp-area-box-chip.is-selected { background: #dc2626; border-color: #dc2626; color: #fff; }
.wp-area-box-label {
  background: transparent;
  border: 0;
}
.wp-area-box-label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.wp-area-pdf-overlay {
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: normal;
  user-select: none;
  position: absolute;
  left: 0;
  top: 0;
  max-width: none !important;
  max-height: none !important;
}
.leaflet-container.wp-area-map-edit {
  cursor: default;
}
.leaflet-div-icon.wp-area-handle {
  background: transparent !important;
  border: 0 !important;
}
.leaflet-div-icon.wp-area-handle-corner {
  width: 40px !important;
  height: 40px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none;
  cursor: default;
}
.wp-area-handle-ring {
  position: absolute;
  inset: 0;
  border: 2px solid #2563eb;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.18);
  cursor: grab;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%230f172a' d='M12 6V3L8 7l4 4V8c2.76 0 5 2.24 5 5a5 5 0 0 1-8.9 3.1l-1.5 1.4A7 7 0 1 0 12 6z'/%3E%3C/svg%3E") 12 12, grab;
}
.wp-area-handle-ring:hover {
  background: rgba(37, 99, 235, 0.35);
}
.wp-area-handle-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  background: #facc15;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.4);
  cursor: nwse-resize;
  z-index: 1;
}
.wp-area-handle-c1 .wp-area-handle-knob,
.wp-area-handle-c3 .wp-area-handle-knob {
  cursor: nesw-resize;
}
.leaflet-div-icon.wp-area-handle-rot {
  width: 44px !important;
  height: 44px !important;
  background: #2563eb !important;
  border: 3px solid #fff !important;
  border-radius: 50% !important;
  box-shadow: 0 1px 8px rgba(15, 23, 42, 0.45);
  cursor: grab;
}
.leaflet-interactive.wp-area-poly-sel {
  cursor: grab;
}
.wp-area-split-map {
  flex: 1;
  min-height: 220px;
  background: #e8eef5;
}
.wp-area-split-card > .feed-meta { padding: 4px 12px 8px; margin: 0; }
@media (max-width: 900px) {
  .wp-area-split-grid { grid-template-columns: 1fr; grid-template-rows: 38% 62%; }
  .wp-area-split-card { border-right: 0; border-bottom: 1px solid #e2e8f0; }
  .wp-area-split-card:last-child { border-bottom: 0; }
  .wp-area-split-grid.is-map-wide {
    grid-template-rows: 1fr;
  }
  .wp-area-mode-pair { flex: 1 1 100%; }
  .wp-area-mode-pair .btn { flex: 1; }
  .wp-area-split-zoombar { width: 100%; justify-content: flex-end; }
}
.wp-takeoff-modal {
  position: fixed; inset: 0; z-index: 12000;
  background: rgba(15, 23, 42, 0.55);
  display: flex; align-items: stretch; justify-content: center;
  padding: 4px;
}
.wp-takeoff-panel {
  position: relative;
  width: min(1920px, calc(100vw - 8px));
  height: min(98vh, 1600px);
  background: #fff;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
}
.wp-takeoff-head {
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border-bottom: 1px solid #e2e8f0;
}
.wp-takeoff-head p { margin: 4px 0 0; }
.wp-takeoff-body {
  flex: 1 1 auto; min-height: 0;
  display: grid; grid-template-columns: 320px 1fr;
}
.wp-takeoff-side {
  border-right: 1px solid #e2e8f0;
  padding: 12px;
  overflow: auto;
  background: #f8fafc;
}
.wp-takeoff-label {
  margin: 10px 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.wp-takeoff-colours { display: grid; gap: 6px; }
.wp-takeoff-colour {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 8px; background: #fff; border: 1px solid #e2e8f0;
}
.wp-takeoff-colour.is-active { border-color: #dc2626; box-shadow: 0 0 0 1px #fecaca; background: #fff7ed; }
.wp-takeoff-auto-lab {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; color: #475569;
  flex: 0 0 auto; cursor: pointer; user-select: none;
}
.wp-takeoff-swatch {
  width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(15,23,42,0.15); flex: 0 0 auto;
}
.wp-takeoff-size-name {
  flex: 1; font-weight: 700; color: #0f172a; text-align: left;
  border: 0; background: transparent; padding: 0; cursor: pointer; font: inherit;
}
.wp-takeoff-size-btn { flex: 0 0 auto; }
.wp-takeoff-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.wp-takeoff-tools .btn.is-on { background: #0f172a; color: #fff; border-color: #0f172a; }
.wp-takeoff-qty-grid { display: grid; gap: 4px; }
.wp-takeoff-qty-row {
  display: grid; grid-template-columns: 14px minmax(0, 1fr) 64px; gap: 8px; align-items: center;
  padding: 4px 8px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
  font-size: 12px; color: #0f172a;
}
.wp-takeoff-qty-row input {
  width: 100%; height: 28px; text-align: center;
  border: 1px solid #cbd5e1; border-radius: 6px; font-weight: 700;
}
.wp-takeoff-segs { display: grid; gap: 4px; max-height: 180px; overflow: auto; }
.wp-takeoff-seg-row { display: flex; align-items: stretch; gap: 4px; }
.wp-takeoff-seg-row .wp-takeoff-seg { flex: 1; }
.wp-takeoff-seg-del { flex: 0 0 32px; padding: 0; font-size: 16px; line-height: 1; }
.wp-takeoff-seg {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 6px 8px; border-radius: 8px; border: 1px solid #e2e8f0;
  background: #fff; cursor: pointer; text-align: left; font: inherit;
}
.wp-takeoff-seg.is-on { border-color: #0f172a; background: #fff7ed; }
.wp-takeoff-seg-no {
  width: 20px; height: 20px; border-radius: 50%; color: #fff;
  font-size: 11px; font-weight: 800; display: inline-flex;
  align-items: center; justify-content: center; flex: 0 0 auto;
}
.wp-takeoff-totals { display: grid; gap: 6px; }
.wp-takeoff-total-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 6px 8px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
}
.wp-takeoff-total-row--sum { background: #fff7ed; border-color: #fdba74; }
.wp-takeoff-actions { display: grid; gap: 8px; margin-top: 12px; }
.wp-takeoff-unsaved {
  position: absolute; inset: 0; z-index: 8;
  background: rgba(15, 23, 42, 0.45);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.wp-takeoff-unsaved.hidden { display: none !important; }
.wp-takeoff-unsaved-card {
  background: #fff; border-radius: 12px; padding: 18px 20px;
  width: min(420px, 100%);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28);
}
.wp-takeoff-unsaved-card p { margin: 8px 0 0; }
.wp-takeoff-unsaved-actions {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 14px;
}
.wp-takeoff-stage {
  min-height: 0; position: relative; background: #e2e8f0;
}
.wp-takeoff-zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  gap: 4px;
}
.wp-takeoff-stage canvas {
  width: 100%; height: 100%; display: block; cursor: crosshair;
  touch-action: none;
}
@media (max-width: 900px) {
  .wp-takeoff-body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .wp-takeoff-side { border-right: 0; border-bottom: 1px solid #e2e8f0; max-height: 40vh; }
}

/* PowerGas WO schematic — workplan Main canvas */
.pg-wo-hub-card--schematic .section-head-row {
  margin-bottom: 8px;
}
.pg-wo-hub-card--schematic .section-head-row h4 {
  margin: 0;
}
.pg-wo-sch-head-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.pg-wo-hub-card--schematic .pg-wo-sch-pages {
  margin: 10px 0 8px;
  gap: 6px;
}
.pg-wo-sch-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 8px;
  align-items: center;
}
.pg-wo-sch-chip,
.pg-wo-sch-days-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  color: #0f172a;
  cursor: pointer;
}
.pg-wo-sch-chip:hover,
.pg-wo-sch-chip:focus-visible,
.pg-wo-sch-days-btn:hover,
.pg-wo-sch-days-btn:focus-visible {
  border-color: #2563eb;
  background: #eff6ff;
  outline: none;
}
.pg-wo-sch-chip.is-on,
.pg-wo-sch-days-btn.is-open {
  border-color: #2563eb;
  background: #dbeafe;
  color: #1d4ed8;
}
.pg-wo-sch-days {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.pg-wo-sch-days-btn:disabled {
  opacity: 0.55;
  cursor: default;
}
.pg-wo-sch-days-count {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}
.pg-wo-sch-days-btn.is-open .pg-wo-sch-days-count {
  color: #1d4ed8;
}
.pg-wo-sch-days-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  width: min(520px, 94vw);
  min-width: 360px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}
.pg-wo-sch-days-menu.hidden { display: none; }
.pg-wo-sch-days-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
}
.pg-wo-sch-days-menu-head .feed-meta {
  font-size: 13px;
}
.pg-wo-sch-days-menu-actions {
  display: inline-flex;
  gap: 6px;
}
.pg-wo-sch-days-list {
  max-height: min(62vh, 560px);
  overflow: auto;
  padding: 6px 0;
}
.pg-wo-sch-days-row {
  display: grid;
  grid-template-columns: 22px 16px 110px minmax(140px, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 16px;
  font-size: 15px;
  line-height: 1.3;
  color: #0f172a;
  cursor: pointer;
}
.pg-wo-sch-days-row:hover { background: #f8fafc; }
.pg-wo-sch-days-row.is-empty {
  color: #94a3b8;
  cursor: default;
}
.pg-wo-sch-days-row input {
  margin: 0;
  width: 16px;
  height: 16px;
}
.pg-wo-sch-days-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(15, 23, 42, 0.2);
}
.pg-wo-sch-days-date { font-weight: 700; }
.pg-wo-sch-days-id { color: #475569; font-size: 14px; }
.pg-wo-sch-days-miss { font-size: 13px; color: #94a3b8; white-space: nowrap; }
.pg-wo-sch-canvas {
  margin-top: 8px;
  min-height: 360px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  overflow: hidden;
}
.pg-wo-sch-canvas .site-term-mat-preview-canvas {
  min-height: 420px;
}
.pg-wo-sch-canvas.is-view-only .site-term-day-ops,
.pg-wo-sch-canvas.is-view-only .site-term-sch-ann-tools,
.pg-wo-sch-canvas.is-view-only .site-term-sch-fresh-btn,
.pg-wo-sch-canvas.is-view-only #termMatShowEnds,
.pg-wo-sch-canvas.is-view-only #termMatStartFresh {
  display: none !important;
}

/* HR Organisation Chart */
body[data-lz-module="org-chart"] .dashboard-body {
  background: linear-gradient(165deg, #f8fafc 0%, #eef2ff 40%, #fff7ed 100%);
}
body[data-lz-module="org-chart"] .oc-page-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: #e2e8f0;
}
.oc-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.oc-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.oc-toolbar-actions .pg-search-input { min-width: 200px; }
.oc-status-error { color: #b91c1c; }
.oc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
}
@media (max-width: 1100px) {
  .oc-layout { grid-template-columns: 1fr; }
}
.oc-board {
  overflow: auto;
  min-height: 420px;
  padding: 16px 16px 28px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.95), rgba(248,250,252,0.9)),
    #f1f5f9;
}
.oc-chart-banner {
  text-align: center;
  margin: 4px 0 14px;
}
.oc-chart-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lz-red, #c81e1e);
}
.oc-chart-banner h3 { margin: 2px 0 0; }
.oc-overview-hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: #64748b;
  text-align: center;
}
.oc-board-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}
.oc-board-inner--focus { max-width: 1180px; align-items: stretch; }
.oc-md-wrap { display: flex; justify-content: center; }
.oc-md-wrap .oc-card--md { width: 240px; }
.oc-md-stem {
  width: 2px;
  height: 14px;
  background: #cbd5e1;
}
.oc-dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  width: 100%;
  align-items: stretch;
}
@media (max-width: 640px) {
  .oc-dept-grid { grid-template-columns: 1fr; }
}
.oc-dept-box,
.oc-dept-tile {
  background: var(--oc-dept-bg, #f8fafc);
  border: 1px solid var(--oc-accent, #cbd5e1);
  border-radius: 12px;
  padding: 10px 10px 12px;
  min-width: 0;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.oc-dept-tile {
  display: flex;
  flex-direction: column;
  min-height: 196px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.oc-dept-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
.oc-dept-box.is-drop-target,
.oc-dept-tile.is-drop-target,
.oc-focus.is-drop-target {
  outline: 2px dashed #4f46e5;
  outline-offset: 2px;
}
.oc-dept-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--oc-accent, #cbd5e1);
}
.oc-dept-title {
  flex: 1;
  font-size: 13px;
  font-weight: 800;
  color: var(--oc-accent, #334155);
  letter-spacing: 0.02em;
}
.oc-tile-match {
  font-size: 10px;
  font-weight: 700;
  color: #1d4ed8;
  background: #dbeafe;
  border-radius: 999px;
  padding: 1px 7px;
}
.oc-dept-vacant { margin: 0 0 6px; font-size: 11px; }
.oc-dept-hod { margin-bottom: 4px; }
.oc-dept-members {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.oc-dept-box .oc-card,
.oc-dept-tile .oc-card,
.oc-focus .oc-card { width: 100%; }
.oc-tile-hod { margin-bottom: 8px; }
.oc-tile-stats {
  font-size: 12px;
  color: #475569;
  margin-bottom: 10px;
}
.oc-dept-open {
  margin-top: auto;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--oc-accent, #334155);
  cursor: pointer;
}
.oc-dept-open:hover { filter: brightness(1.05); }
.oc-focus {
  width: 100%;
  background: var(--oc-dept-bg, #fff);
  border: 1px solid var(--oc-accent, #cbd5e1);
  border-radius: 16px;
  padding: 14px 16px 20px;
}
.oc-focus-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 8px;
}
.oc-back-btn { font-size: 13px; }
.oc-focus-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.oc-focus-heading .oc-dept-title { font-size: 18px; }
.oc-focus-reports { margin: 0 0 12px; }
.oc-focus-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.oc-focus-hod { width: min(280px, 100%); }
.oc-focus-staff {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
  width: 100%;
}
.oc-focus-pane .oc-focus-hod { width: 100%; margin-bottom: 8px; }
.oc-focus-panes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  width: 100%;
}
.oc-focus-pane {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--oc-accent, #cbd5e1);
  border-radius: 12px;
  padding: 12px;
  min-width: 0;
}
.oc-focus-pane.is-drop-target {
  outline: 2px dashed #4f46e5;
  outline-offset: 2px;
}
.oc-pane-head {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--oc-accent, #334155);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--oc-accent, #cbd5e1);
}
.oc-focus-section {
  width: 100%;
  margin: 18px 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--oc-accent, #475569);
}
.oc-focus-teams {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  width: 100%;
}
.oc-focus .oc-team-box { margin-top: 0; }
.oc-team-box {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px dashed #cbd5e1;
}
.oc-team-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
.oc-team-head strong {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.oc-tree { display: flex; flex-direction: column; align-items: stretch; width: 100%; }
.oc-node-inner { display: flex; flex-direction: column; align-items: center; }
.oc-branch {
  display: none;
}
.oc-card {
  width: 196px;
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: none;
  cursor: grab;
  position: relative;
}
.oc-card--row { width: 100%; }
.oc-card--md {
  width: 220px;
  padding: 6px 8px;
  border-color: #fecaca;
  background: linear-gradient(135deg, #fff5f5 0%, #fff 60%);
}
.oc-card--hod { border-left: 3px solid var(--oc-accent, #94a3b8); }
.oc-card--chip { width: auto; }
.oc-worker-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
  max-width: none;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #e2e8f0;
}
.oc-worker-grid--wide {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
  width: 100%;
}
.oc-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  border: 1px solid #dbe4ee;
  background: #fff;
  border-radius: 999px;
  padding: 1px 6px 1px 8px;
  font-size: 10px;
  line-height: 1.4;
  color: #0f172a;
  cursor: grab;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oc-pill-hide {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}
.oc-pill-hide:hover { color: #b91c1c; }
.oc-card--team, .oc-card--dept, .oc-card--md[data-oc-kind="md"] {
  cursor: default;
  justify-content: center;
  text-align: center;
}
.oc-card--dept {
  border-style: dashed;
  border-color: var(--oc-accent, #94a3b8);
  background: #fff;
}
.oc-card--team {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.oc-card.is-search-hit,
.oc-pill.is-search-hit,
.oc-dept-tile.is-search-hit {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}
.oc-card.is-dragging,
.oc-pill.is-dragging { opacity: 0.45; }
.oc-card.is-drop-target,
.oc-side-panel.is-drop-target {
  outline: 2px dashed #4f46e5;
  outline-offset: 2px;
}
.oc-avatar {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  background: #64748b;
}
.oc-card--staff .oc-avatar { background: #4f46e5; }
.oc-card--worker .oc-avatar { background: #0f766e; }
.oc-card--md .oc-avatar { background: #b91c1c; width: 28px; height: 28px; flex-basis: 28px; font-size: 10px; }
.oc-card-body { min-width: 0; flex: 1; }
.oc-card-name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oc-card-role {
  font-size: 10px;
  font-weight: 700;
  color: #b91c1c;
}
.oc-card-desig, .oc-card-meta {
  font-size: 10px;
  color: #64748b;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oc-card-actions { display: none; }
.oc-icon-btn {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 10px;
  cursor: pointer;
  padding: 0;
  opacity: 0;
}
.oc-card:hover .oc-icon-btn { opacity: 1; }
.oc-icon-btn:hover { color: #b91c1c; }
.oc-collapse-btn {
  margin: 0;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 10px;
  cursor: pointer;
}
.oc-collapsed-note {
  margin-top: 10px;
  font-size: 12px;
  color: #64748b;
}
.oc-side { display: flex; flex-direction: column; gap: 12px; }
.oc-side-panel {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  min-height: 120px;
}
.oc-side-panel h3 {
  margin: 0 0 4px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.oc-side-count {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 1px 8px;
}
.oc-side-list { list-style: none; margin: 8px 0 0; padding: 0; }
.oc-side-list li {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}
.oc-side-item {
  flex: 1;
  text-align: left;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 8px;
  padding: 6px 8px;
  cursor: grab;
}
.oc-side-item strong { display: block; font-size: 12px; }
.oc-side-item span { font-size: 11px; color: #64748b; }
.oc-side-empty { margin: 8px 0 0; }
.oc-print-root {
  position: fixed;
  left: -12000px;
  top: 0;
  width: 1480px;
  background: #fff;
  padding: 16px 20px;
  z-index: -1;
}
.oc-print-mode .oc-dept-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.oc-print-mode .oc-icon-btn,
.oc-print-mode .oc-collapse-btn,
.oc-print-mode .oc-pill-hide,
.oc-print-mode .oc-dept-vacant,
.oc-print-mode .oc-dept-open,
.oc-print-mode .oc-overview-hint,
.oc-print-mode .oc-back-btn { display: none !important; }
.oc-print-letterhead {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #334155;
  border-bottom: 2px solid #b91c1c;
  padding-bottom: 8px;
  margin-bottom: 12px;
  font-weight: 600;
}
@media print {
  body[data-lz-module="org-chart"] .sidebar,
  body[data-lz-module="org-chart"] .lz-header-actions,
  body[data-lz-module="org-chart"] .oc-toolbar,
  body[data-lz-module="org-chart"] .oc-side,
  body[data-lz-module="org-chart"] #ocStatus,
  body[data-lz-module="org-chart"] .oc-icon-btn,
  body[data-lz-module="org-chart"] .oc-collapse-btn,
  body[data-lz-module="org-chart"] .oc-pill-hide,
  body[data-lz-module="org-chart"] .oc-dept-open,
  body[data-lz-module="org-chart"] .oc-overview-hint,
  body[data-lz-module="org-chart"] .oc-back-btn {
    display: none !important;
  }
  body[data-lz-module="org-chart"] .app-shell { display: block !important; }
  body[data-lz-module="org-chart"] .oc-layout { display: block; }
  body[data-lz-module="org-chart"] .oc-board {
    overflow: visible;
    border: 0;
    background: #fff;
  }
  body[data-lz-module="org-chart"] .oc-dept-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  @page { size: A4 landscape; margin: 8mm; }
}

/* —— DR Photos gallery (/dr-photos/) — standalone, no sidebar —— */
body[data-lz-module="drphotos"] .sidebar,
body[data-lz-module="drphotos"] .lz-float-sidebar-toggle {
  display: none !important;
}
body[data-lz-module="drphotos"] .app-shell {
  --sidebar-w: 0;
  display: block;
  min-height: 100vh;
}
body[data-lz-module="drphotos"] .dashboard-body {
  margin: 0 auto;
  width: 100%;
  max-width: 960px;
  flex: none;
}
body[data-lz-module="drphotos"] .main-content {
  padding: 12px 14px 24px;
}
.drp-page-card { padding: 12px 14px 20px; }
.drp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.drp-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.drp-header-location {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  color: #0f172a;
  text-align: right;
  max-width: min(56vw, 28rem);
  line-height: 1.3;
  word-break: break-word;
}
.drp-header-location.hidden { display: none; }
body.drp-guest .lz-header-actions {
  display: flex;
  align-items: center;
}
body.drp-guest .lz-header-actions #lzUserMenuMount { display: none; }
.drp-tile-check {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  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;
}
.drp-grid--select .drp-tile-check { display: block; }
.drp-tile-check.is-checked {
  background: #2563eb;
  border-color: #2563eb;
}
.drp-tile-check.is-checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.drp-grid.drp-grid--grouped {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.drp-group-head {
  margin-bottom: 8px;
}
.drp-group-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
}
.drp-group-meta {
  margin: 4px 0 0;
}
.drp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.drp-group .drp-grid {
  align-items: start;
}
@media (min-width: 720px) {
  .drp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .drp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.drp-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.drp-thumb-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #e8edf3;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}
.drp-grid--grouped .drp-thumb-btn {
  aspect-ratio: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  background: #f1f5f9;
}
.drp-thumb,
.drp-thumb-ph {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
  background: #f1f5f9;
}
.drp-grid--grouped .drp-thumb,
.drp-grid--grouped .drp-thumb-ph {
  height: auto;
  max-height: none;
}
.drp-thumb-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.85rem;
}
.drp-cap-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.25;
  word-break: break-word;
}
.drp-cap-meta {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 2px;
}
.drp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: stretch;
  padding: 56px 16px 16px;
  gap: 10px;
}
.drp-lightbox.hidden { display: none; }
.drp-lightbox-stage {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
  cursor: zoom-in;
}
.drp-lightbox-stage.is-zoomed { cursor: grab; }
.drp-lightbox-stage.is-zoomed.is-panning { cursor: grabbing; }
.drp-lightbox-zoom-port {
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  will-change: transform;
  max-width: 100%;
  max-height: 100%;
}
.drp-lightbox img {
  max-width: min(100%, 960px);
  max-height: calc(100vh - 140px);
  object-fit: contain;
  border-radius: 8px;
  user-select: none;
  -webkit-user-drag: none;
}
.drp-lightbox-cap {
  color: #e2e8f0;
  text-align: center;
  max-width: 40rem;
  margin: 0;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.drp-lightbox-zoombar {
  position: absolute;
  top: 12px;
  right: 62px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  z-index: 2;
}
.drp-lightbox-zoom-pct {
  min-width: 3.2em;
  padding: 0 8px;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.drp-lightbox-zoom-btn {
  border: 0;
  background: transparent;
  color: #f8fafc;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.drp-lightbox-zoom-btn:hover { background: rgba(255, 255, 255, 0.14); }
.drp-lightbox-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.pg-add-cdr-modal {
  padding: 16px;
}
.pg-add-cdr-modal .pg-add-cdr-dialog {
  width: min(440px, 100%);
  padding: 20px 22px 18px;
  border-radius: 14px;
}
.pg-add-cdr-modal .pg-add-cdr-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.pg-add-cdr-modal .pg-add-cdr-head-text {
  min-width: 0;
}
.pg-add-cdr-modal .pg-add-cdr-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--lz-text, #0f172a);
}
.pg-add-cdr-modal .pg-add-cdr-lead {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--lz-muted, #64748b);
}
.pg-add-cdr-modal .pg-add-cdr-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin: -4px -6px 0 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.pg-add-cdr-modal .pg-add-cdr-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.pg-add-cdr-modal .pg-add-cdr-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}
.pg-add-cdr-modal .pg-add-cdr-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}
.pg-add-cdr-modal .pg-add-cdr-field--full {
  grid-column: 1 / -1;
}
.pg-add-cdr-modal .pg-add-cdr-note:empty,
.pg-add-cdr-modal .pg-add-cdr-status:empty {
  display: none;
}
.pg-add-cdr-modal .pg-add-cdr-note {
  margin: 12px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 12px;
  line-height: 1.45;
}
.pg-add-cdr-modal .pg-add-cdr-status {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--lz-muted, #64748b);
}
.pg-add-cdr-modal .pg-add-cdr-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--lz-border, #e2e8f0);
}
@media (max-width: 480px) {
  .pg-add-cdr-modal .pg-add-cdr-fields {
    grid-template-columns: 1fr;
  }
}

.cdr-page-card {
  padding: 12px 16px 20px;
}
.cdr-page-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--lz-border, #e2e8f0);
}
.cdr-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  color: var(--lz-text, #0f172a);
}
.cdr-page-meta strong {
  color: var(--lz-muted, #64748b);
  font-weight: 600;
  margin-right: 4px;
}
#cdrPageMount.cdr-components-mount {
  min-height: calc(100vh - 220px);
}
#cdrPageStatus:empty {
  display: none;
}
.cdr-page-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cdr-page-nav[hidden] {
  display: none !important;
}
.cdr-page-nav-btn {
  min-width: 36px;
  font-size: 20px;
  line-height: 1;
  padding: 4px 10px;
}
.cdr-page-bar-end {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.cdr-page-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fff5f5;
  color: #b91c1c;
  cursor: pointer;
}
.cdr-page-delete[hidden] {
  display: none !important;
}
.cdr-page-delete:hover,
.cdr-page-delete:focus-visible {
  background: #fee2e2;
  border-color: #f87171;
  color: #991b1b;
}
.cdr-page-delete svg {
  width: 16px;
  height: 16px;
  display: block;
}
.cdr-page-next-day {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 12px;
  border: 1px solid #f59e0b;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
  box-shadow: 0 1px 2px rgba(180, 83, 9, 0.14);
}
.cdr-page-next-day[hidden] {
  display: none !important;
}
.cdr-page-next-day-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #9a3412;
}
.cdr-page-next-day-date {
  height: 30px;
  padding: 2px 8px;
  border: 1px solid #fdba74;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  color: #7c2d12;
  background: #fff;
}
#cdrPageNextDayCreate {
  background: #c2410c;
  border-color: #9a3412;
  color: #fff;
}
#cdrPageNextDayCreate:hover,
#cdrPageNextDayCreate:focus-visible {
  background: #9a3412;
  border-color: #7c2d12;
  color: #fff;
}
.cdr-page-next-day-warn {
  flex-basis: 100%;
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: #9a3412;
}
.cdr-page-next-day-warn[hidden] {
  display: none !important;
}
.cdr-page-nav-jump {
  position: relative;
}
.cdr-page-nav-label {
  min-width: 64px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--lz-text, #0f172a);
  cursor: pointer;
}
.cdr-page-nav-label::after {
  content: " ▾";
  font-size: 10px;
  font-weight: 600;
  color: var(--lz-muted, #64748b);
}
.cdr-page-nav-label[aria-expanded="true"]::after {
  content: " ▴";
}
.cdr-page-date-jump {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #94a3b8;
}
.cdr-page-date-jump:hover,
.cdr-page-date-jump:focus-visible {
  color: var(--lz-red, #c62828);
  text-decoration-color: var(--lz-red, #c62828);
}
.cdr-page-nav-picker {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  min-width: 320px;
  max-width: min(460px, calc(100vw - 24px));
  max-height: min(60vh, 420px);
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--lz-border, #e2e8f0);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
}
.cdr-page-nav-picker[hidden],
.cdr-page-nav-picker.hidden {
  display: none !important;
}
.cdr-page-nav-picker-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--lz-text, #0f172a);
}
.cdr-page-nav-picker-item:hover,
.cdr-page-nav-picker-item:focus-visible {
  background: #f1f5f9;
}
.cdr-page-nav-picker-item.is-current {
  background: #fef2f2;
  box-shadow: inset 0 0 0 1px #fecaca;
}
.cdr-page-nav-picker-n {
  flex: 0 0 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--lz-muted, #64748b);
}
.cdr-page-nav-picker-item.is-current .cdr-page-nav-picker-n {
  color: var(--lz-red, #c62828);
}
.cdr-page-nav-picker-meta {
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 900px) {
  .cdr-page-nav-picker {
    left: 0;
    right: auto;
    min-width: min(320px, calc(100vw - 16px));
    max-height: min(50vh, 360px);
  }
  .cdr-page-nav-picker-item {
    min-height: 44px;
    padding: 10px 12px;
  }
}
#cdrPageEdit[hidden] {
  display: none !important;
}
.cdr-reimport-banner,
.cdr-reimport-note {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  font-size: 13px;
  line-height: 1.4;
}
.cdr-reimport-note {
  margin: 8px 0 0;
}
body.cdr-html-view {
  overscroll-behavior: none;
}
body.cdr-html-view .app-shell {
  height: 100dvh;
  overflow: hidden;
}
body.cdr-html-view .dashboard-body {
  min-height: 0;
  overflow: hidden;
}
body.cdr-html-view .main-content {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 12px;
}
body.cdr-html-view .cdr-page-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.cdr-html-host {
  position: relative;
  flex: 1;
  min-height: 240px;
  display: flex;
  flex-direction: column;
}
.cdr-html-viewport {
  position: relative;
  flex: 1;
  min-height: 240px;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: grab;
  background: #d9e0ea;
  border: 1px solid var(--lz-border, #e2e8f0);
  border-radius: 8px;
}
.cdr-html-viewport.is-panning {
  cursor: grabbing;
}
.cdr-html-stage {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  will-change: transform;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.18);
}
.cdr-html-frame {
  display: block;
  width: 420mm;
  height: 297mm;
  max-width: none;
  border: 0;
  background: #fff;
  pointer-events: none;
}
.cdr-html-frame[hidden],
.cdr-html-frame.hidden {
  display: none !important;
}
.cdr-html-zoom-bar {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--lz-border, #e2e8f0);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
  pointer-events: auto;
}
.cdr-html-zoom-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  font-size: 16px;
  line-height: 1;
}
.cdr-html-zoom-label {
  min-width: 52px;
  text-align: center;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--lz-muted, #64748b);
}
.cdr-html-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 8px;
}
#cdrPageComposerBody.hidden {
  display: none !important;
}
@media (max-width: 900px) {
  body.cdr-html-view .main-content {
    padding: 8px;
  }
  .cdr-html-zoom-bar {
    right: auto;
    left: 8px;
    bottom: 8px;
  }
  .cdr-html-zoom-btn {
    min-width: 44px;
    height: 44px;
  }
}

[data-lz-module="organizations"] .org-row { cursor: pointer; }
[data-lz-module="organizations"] .org-row--selected { background: #eff6ff; }
[data-lz-module="organizations"] .org-stamp-block { margin: 8px 0 20px; }
[data-lz-module="organizations"] .org-stamp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
  margin: 10px 0 16px;
}
[data-lz-module="organizations"] .org-stamp-card {
  border: 1px solid var(--lz-border);
  border-radius: 10px;
  padding: 10px 8px 8px;
  background: #fbfcfe;
}
[data-lz-module="organizations"] .org-stamp-preview {
  width: 118px;
  height: 118px;
  margin: 0 auto 6px;
  background: #fff;
  border-radius: 8px;
}
[data-lz-module="organizations"] .org-stamp-preview svg {
  width: 100%;
  height: 100%;
  display: block;
}
[data-lz-module="organizations"] .org-stamp-kicker {
  margin: 0 0 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lz-muted);
  text-align: center;
}
[data-lz-module="organizations"] .org-stamp-card h4,
[data-lz-module="organizations"] .org-stamp-usage-title {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--lz-text);
}
[data-lz-module="organizations"] .org-stamp-uses,
[data-lz-module="organizations"] .org-stamp-last {
  margin: 0;
  font-size: 11px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
[data-lz-module="organizations"] .org-stamp-last { margin-top: 2px; color: var(--lz-muted); }
[data-lz-module="organizations"] .org-stamp-usage-title { margin-top: 8px; }
[data-lz-module="organizations"] .org-stamp-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}
@media (max-width: 640px) {
  [data-lz-module="organizations"] .org-stamp-preview {
    width: 108px;
    height: 108px;
  }
}
[data-lz-module="organizations"] .section-card {
  box-shadow: none;
}
[data-lz-module="organizations"] .org-letterhead-block { margin: 0; }
[data-lz-module="organizations"] .org-letterhead-card {
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
  margin: 8px 0 12px;
  box-shadow: none;
}
[data-lz-module="organizations"] .org-letterhead-preview {
  width: 100%;
  max-width: 100%;
  background: #fff;
  border: none;
  border-radius: 0;
  overflow: visible;
  padding: 0;
  box-shadow: none;
}
[data-lz-module="organizations"] .org-letterhead-preview svg,
[data-lz-module="organizations"] .org-letterhead-preview img {
  width: 100%;
  height: auto;
  display: block;
}
[data-lz-module="organizations"] .org-letterhead-uses {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.3;
}
[data-lz-module="organizations"] .org-logo-file {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
[data-lz-module="organizations"] .org-brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}
@media (max-width: 900px) {
  [data-lz-module="organizations"] .org-brand-grid {
    grid-template-columns: 1fr;
  }
}
[data-lz-module="organizations"] .org-brand-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--lz-border);
  border-radius: 10px;
  padding: 12px;
  background: #fbfcfe;
}
[data-lz-module="organizations"] .org-brand-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: repeating-conic-gradient(#eee 0% 25%, #fff 0% 50%) 50% / 10px 10px;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 600;
  overflow: hidden;
}
[data-lz-module="organizations"] .org-brand-card--mark .org-brand-thumb {
  width: 72px;
  height: 88px;
}
[data-lz-module="organizations"] .org-brand-card--stack .org-brand-thumb {
  width: 56px;
  height: 96px;
}
[data-lz-module="organizations"] .org-brand-card--lockup .org-brand-thumb {
  width: 140px;
  height: 52px;
}
[data-lz-module="organizations"] .org-brand-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
[data-lz-module="organizations"] .org-brand-uses {
  margin: 4px 0 8px;
  font-size: 11px;
}
[data-lz-module="organizations"] .org-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 12px;
}
[data-lz-module="organizations"] .org-detail-tab {
  border: 1px solid var(--lz-border);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
[data-lz-module="organizations"] .org-detail-tab.is-on {
  background: #1c1917;
  color: #fff;
  border-color: #1c1917;
}
[data-lz-module="organizations"] .org-usage-fold {
  margin-top: 14px;
  border-top: 1px solid var(--lz-border);
  padding-top: 8px;
}
[data-lz-module="organizations"] .org-usage-fold summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #57534e;
}
[data-lz-module="organizations"] .org-stamp-block,
[data-lz-module="organizations"] .org-letterhead-block,
[data-lz-module="organizations"] .org-docs-block {
  margin: 0;
}
[data-lz-module="organizations"] .org-logo-upload { margin: 10px 0 6px; }
.lz-lh {
  width: 100%;
  background: #fff;
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
}
.lz-lh-row {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.lz-lh-mark {
  position: relative;
  flex: 0 0 80px;
  width: 80px;
  align-self: stretch;
}
.lz-lh-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  background: transparent;
  box-shadow: none;
  filter: none;
}
.lz-lh-vbar {
  width: 1px;
  align-self: stretch;
  background: #E31E24;
  margin: 0 14px;
  flex: 0 0 auto;
}
.lz-lh-copy { min-width: 0; flex: 1; }
.lz-lh-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.lz-lh-names { min-width: 0; }
.lz-lh-co-en {
  margin: 0;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: #1a1816;
  -webkit-text-stroke: 0.35px currentColor;
}
.lz-lh-co-zh {
  margin: 4px 0 0;
  font-family: "Ma Shan Zheng", "STXingkai", "KaiTi", "Noto Serif SC", serif;
  font-size: 20px;
  line-height: 1.2;
  color: #1a1816;
  text-shadow: 0.6px 1px 0.5px rgba(26, 24, 22, 0.28);
}
.lz-lh-uen {
  margin: 4px 0 0;
  flex: 0 0 auto;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #5c574f;
  white-space: nowrap;
}
.lz-lh-rule {
  height: 1.5px;
  background: #E31E24;
  margin: 8px 0 8px;
}
.lz-lh-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.lz-lh-addrs {
  min-width: 0;
  flex: 1 1 auto;
}
.lz-lh-contacts {
  flex: 0 0 auto;
  text-align: right;
}
.lz-lh-addr {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: #1a1816;
}
.lz-lh-addr + .lz-lh-addr { margin-top: 1px; }
.lz-lh-meta {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: #5c574f;
  text-align: right;
  white-space: nowrap;
}
.lz-lh-meta + .lz-lh-meta { margin-top: 1px; }
@media (max-width: 720px) {
  .lz-lh-title { flex-wrap: wrap; gap: 4px; }
  .lz-lh-uen { width: 100%; margin-top: 0; }
  .lz-lh-co-en {
    font-size: 16px;
    letter-spacing: 0.03em;
  }
  .lz-lh-co-zh { font-size: 16px; }
  .lz-lh-mark {
    flex-basis: 56px;
    width: 56px;
  }
  .lz-lh-meta {
    white-space: normal;
  }
}

/* Schematic 2 (UG99 extra tab) */
.sch2-mount { min-height: 0; flex: 1; display: flex; flex-direction: column; }
.sch2-screen { display: flex; flex-direction: column; gap: 8px; min-height: 0; flex: 1; }
.sch2-banner { margin: 0 0 4px; }
.sch2-frame { cursor: crosshair; touch-action: none; overflow: hidden; }
.sch2-svg { display: block; width: 100%; height: 100%; min-height: 280px; }
.sch2-orient-icon svg {
  display: block;
  width: 40px;
  height: 40px;
}
.sch2-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
  padding: 4px 0;
}
.sch2-chip { max-width: 100%; }
.sch2-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.sch2-toolbar-place {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.sch2-toolbar-place .btn.is-active,
.sch2-side-tools .btn.is-active {
  background: #1e3a5f;
  border-color: #1e3a5f;
  color: #fff;
}
.sch2-side-tools {
  flex: 0 0 auto;
  margin: 0 0 8px;
}
.sch2-side-tabs {
  flex: 0 0 auto !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px;
  margin: 0 0 8px;
  height: auto !important;
  max-height: 36px !important;
  min-height: 0 !important;
}
.sch2-side-tabs .sch2-side-tab {
  flex: 1 1 0;
  min-height: 0 !important;
  height: 32px !important;
  max-height: 32px !important;
  padding: 4px 8px !important;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  align-self: center !important;
}
.sch2-side-tabs .sch2-side-tab.is-active {
  background: #1e3a5f;
  border-color: #1e3a5f;
  color: #fff;
}
.sch2-screen .site-term-mat-side {
  overflow: hidden;
}
.sch2-screen #sch2CatalogPane,
.sch2-screen #sch2PlacedPane {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
.sch2-screen #sch2CatalogHost { min-height: 0; }
.sch2-screen #termMatCatalog {
  max-height: none;
  overflow: auto;
}
.sch2-recorded { list-style: none; margin: 0; padding: 0; }
.sch2-rec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #e2e8f0;
}
.sch2-rec-row.is-active { background: #eff6ff; }
.sch2-del { min-width: 36px; }
#sch2Status { margin-left: 8px; }
.sch2-rotate-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 10px;
}
.sch2-rotate-btn {
  min-width: 56px !important;
  min-height: 48px !important;
  font-size: 22px !important;
  font-weight: 700 !important;
}
.sch2-rotate-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 72px;
}
.sch2-screen .site-term-mat-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}
.sch2-chip-glyph {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sch2-chip-glyph svg {
  width: 40px;
  height: 40px;
}
.sch2-chip-glyph-cap {
  position: absolute;
  right: -4px;
  bottom: -2px;
  font-size: 10px;
  font-weight: 800;
  color: #1e3a5f;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 0 3px;
  line-height: 1.25;
}
.sch2-orient-btn {
  min-height: 76px !important;
  padding: 6px 4px !important;
  gap: 2px !important;
}
.sch2-orient-icon {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.sch2-orient-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  pointer-events: none;
}
.sch2-config .sch-orient-vertical-row .sch2-orient-btn {
  min-height: 64px !important;
  flex-direction: row !important;
  justify-content: flex-start;
  gap: 10px !important;
  padding: 8px 12px !important;
}
.sch2-config-card {
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}
.sch2-config-title { margin: 0 0 4px; }

/* Workplan UG Schematic host */
body[data-lz-module="schematic"] .sch-wp-page-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
body[data-lz-module="schematic"] .sch-wp-layout {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  padding: 8px 12px 12px;
}
.sch-wp-toolbar {
  flex: 0 0 auto;
  padding: 10px 12px;
  margin: 0;
}
.sch-wp-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.sch-wp-pickers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.sch-wp-bound-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: baseline;
}
.sch-wp-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 160px;
}
.sch-wp-detail-k {
  font-size: 11px;
  color: var(--lz-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.sch-wp-detail-v {
  font-size: 14px;
  font-weight: 600;
  color: var(--lz-text);
}
.sch-wp-bound-context {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  color: #0f172a;
  max-width: min(720px, 100%);
}
.sch-wp-status { margin: 6px 0 0; }
.sch-wp-date-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-wrap: wrap;
}
.sch-wp-wo-label {
  margin: 0;
  font-size: 12px;
  font-weight: 650;
  color: #334155;
}
.sch-wp-wo {
  min-width: 148px;
  max-width: 220px;
  height: 32px;
}
.sch-wp-date-btn {
  min-width: 132px;
  font-weight: 650;
}
.sch-wp-date-btn.is-open {
  border-color: #dc2626;
  color: #b91c1c;
}
.sch-wp-view-all {
  font-weight: 650;
  white-space: nowrap;
}
.sch-wp-view-all.is-on {
  border-color: #2563eb;
  color: #1d4ed8;
  background: #eff6ff;
}
.sch-wp-view-all-hint {
  margin: 0 0 8px;
}
.sch-wp-term-mount.is-sch-view-all #termMatCatalog,
.sch-wp-term-mount.is-sch-view-all #termMatCatalogCol {
  opacity: 0.55;
  pointer-events: none;
}
.sch-wp-term-mount.is-sch-view-all #termMatUndo,
.sch-wp-term-mount.is-sch-view-all #termMatReset,
.sch-wp-term-mount.is-sch-view-all #termMatRegenEnds {
  opacity: 0.45;
  pointer-events: none;
}
.sch-wp-mode-row {
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.sch-wp-tabs {
  display: flex;
  gap: 6px;
}
.sch-wp-tab.is-on {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #93c5fd;
}
.sch-wp-back-wp {
  text-decoration: none;
}
.sch-wp-save-hist { margin-left: 4px; }
.sch-wp-history-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.sch-wp-history-list { min-width: min(280px, 100%); }
.sch-wp-history-hint { margin: 0; }
.sch-wp-save-hist-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.sch-wp-term-mount.is-sch-history #termMatCatalog,
.sch-wp-term-mount.is-sch-history #termMatCatalogCol,
.sch-wp-term-mount.is-sch-history #termMatUndo,
.sch-wp-term-mount.is-sch-history #termMatReset,
.sch-wp-term-mount.is-sch-history #termMatRegenEnds,
.sch-wp-term-mount.is-sch-history #termMatAnnLine,
.sch-wp-term-mount.is-sch-history #termMatAnnRect,
.sch-wp-term-mount.is-sch-history #termMatAnnText,
.sch-wp-term-mount.is-sch-history #termMatAnnClearLast,
.sch-wp-term-mount.is-sch-history #termAnnEditDone,
.sch-wp-term-mount.is-sch-history #termAnnEditRemove {
  display: none !important;
}
.sch-wp-cal-wrap { position: relative; }
.sch-wp-cal-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  width: min(320px, calc(100vw - 48px));
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}
.sch-wp-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.sch-wp-cal-weekdays,
.sch-wp-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.sch-wp-cal-weekdays span {
  font-size: 10px;
  text-align: center;
  color: #64748b;
  font-weight: 650;
}
.sch-wp-cal-cell {
  position: relative;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  padding: 4px 0 10px;
}
.sch-wp-cal-cell.is-pad { visibility: hidden; pointer-events: none; }
.sch-wp-cal-cell.is-today { border-color: #cbd5e1; }
.sch-wp-cal-cell.is-selected {
  border-color: #dc2626;
  background: #fef2f2;
}
.sch-wp-cal-num { display: block; font-size: 12px; }
.sch-wp-cal-dot {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
}
.sch-wp-cal-dot.is-empty {
  background: transparent;
  border: 1.5px solid #94a3b8;
  box-sizing: border-box;
}
.sch-wp-cal-legend { margin: 8px 0 0; font-size: 11px; }
.sch-wp-term-mount {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.sch-wp-term-mount .site-term-mat-screen {
  min-height: calc(100% - 8px);
}
.sch-wp-empty { padding: 24px; }
@media (max-width: 900px) {
  .sch-wp-date-bar { margin-left: 0; }
}

/* Accident / Incident Report workspace */
.ir-page { display: grid; gap: 16px; padding-bottom: 88px; }
.ir-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: #e2e8f0;
}
.ir-tab {
  border: 0;
  background: transparent;
  border-radius: 11px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
}
.ir-tab.is-on { background: #fff; color: #0f172a; box-shadow: 0 1px 2px rgba(15,23,42,.08); }
.ir-status { min-height: 1.2em; }
.ir-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #b91c1c;
}
.ir-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.ir-toolbar-copy h3 { margin: 2px 0 0; font-size: 22px; color: #0f172a; }
.ir-toolbar-copy .feed-meta { margin: 4px 0 0; }
.ir-new-btn { min-height: 44px; padding: 0 18px; border-radius: 12px; }
.ir-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.ir-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ir-chip {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
}
.ir-chip.is-on { background: #0f172a; border-color: #0f172a; color: #fff; }
.ir-search { flex: 1 1 180px; min-width: 0; }
.ir-search input { width: 100%; min-height: 42px; border-radius: 12px; }
.ir-card-list { display: grid; gap: 10px; }
.ir-card {
  display: grid;
  grid-template-columns: 6px 1fr auto;
  gap: 0 14px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 14px 14px 14px 0;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
  cursor: pointer;
}
.ir-card:hover { border-color: #cbd5e1; box-shadow: 0 8px 20px rgba(15,23,42,.06); }
.ir-card-accent { align-self: stretch; border-radius: 16px 0 0 16px; background: #94a3b8; }
.ir-card.is-damage .ir-card-accent { background: #f59e0b; }
.ir-card.is-miss .ir-card-accent { background: #38bdf8; }
.ir-card.is-injury .ir-card-accent { background: #dc2626; }
.ir-card-id { margin: 0; font-size: 12px; font-weight: 800; color: #64748b; }
.ir-card-type { margin: 2px 0 0; font-size: 16px; font-weight: 800; color: #0f172a; }
.ir-card-loc, .ir-card-meta { margin: 2px 0 0; font-size: 13px; color: #64748b; }
.ir-card-side { display: grid; gap: 6px; justify-items: end; padding-right: 2px; }
.ir-card-pdf { font-size: 11px; font-weight: 700; color: #1d4ed8; }
.ir-empty {
  text-align: center;
  padding: 40px 18px;
  border: 1.5px dashed #cbd5e1;
  border-radius: 18px;
  background: #f8fafc;
}
.ir-empty-mark { font-size: 36px; line-height: 1; margin-bottom: 8px; }
.ir-empty h4 { margin: 0 0 6px; font-size: 18px; color: #0f172a; }
.ir-empty p { margin: 0 0 16px; color: #64748b; }
.ir-ws { display: grid; gap: 14px; }
.ir-ws-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}
.ir-back {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
  color: #334155;
  cursor: pointer;
}
.ir-ws-titles h3 { margin: 0; font-size: 18px; color: #0f172a; }
.ir-ws-titles p { margin: 2px 0 0; font-size: 13px; color: #64748b; }
.ir-panel {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.ir-panel-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
}
.ir-type-ico { font-size: 22px; line-height: 1; }
.ir-sticky-actions {
  position: sticky;
  bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 8px 24px rgba(15,23,42,.08);
  z-index: 4;
}
.ir-type-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.ir-type-card {
  text-align: left;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  cursor: pointer;
  display: grid;
  gap: 4px;
}
.ir-type-card strong { display: block; font-size: 14px; color: #0f172a; }
.ir-type-card span { display: block; margin-top: 4px; font-size: 12px; color: #64748b; }
.ir-type-card.is-on {
  border-color: #b91c1c;
  box-shadow: 0 0 0 1px #b91c1c;
  background: #fef2f2;
}
.ir-type-locked {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
}
.ir-type-locked strong { display: block; font-size: 15px; color: #0f172a; }
.ir-type-locked span:not(.ir-type-ico) { display: block; margin-top: 2px; font-size: 12px; color: #64748b; }
.ir-field .dept-combobox,
.ir-field .ir-combo { width: 100%; }
.ir-combo .dept-combobox-list { z-index: 40; max-height: 240px; }
.ir-panel { overflow: visible; }
.ir-onemap-hits {
  margin-top: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  max-height: 220px;
  overflow: auto;
}
.ir-onemap-hit {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 8px 10px;
  cursor: pointer;
}
.ir-onemap-hit:hover { background: #fef2f2; }
.ir-locmap { margin-top: 6px; }
.gi-locmap { display: grid; gap: 8px; }
.gi-locmap-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gi-locmap-pane { margin: 0; }
.gi-locmap-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 512 / 320;
  background: #e2e8f0;
  overflow: hidden;
  border-radius: 10px;
}
.gi-locmap.is-pin .gi-locmap-frame { cursor: crosshair; }
.gi-locmap-frame img { width: 100%; height: 100%; object-fit: fill; display: block; }
.gi-locmap-layer { position: absolute; inset: 0; }
.gi-locmap-pane figcaption {
  margin: 4px 0 0;
  font-size: 12px;
  color: #64748b;
  text-align: center;
}
.gi-locmap-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gi-locmap-zoom { display: inline-flex; align-items: center; gap: 6px; }
.gi-locmap-zoom .btn { min-width: 40px; min-height: 40px; font-size: 18px; font-weight: 700; }
.gi-locmap-zoom-val { min-width: 1.6em; text-align: center; font-weight: 700; font-size: 13px; color: #334155; }
.ir-outcome-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}
.ir-outcome-card {
  text-align: center;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 10px 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}
.ir-outcome-card.is-on {
  border-color: #b91c1c;
  box-shadow: 0 0 0 1px #b91c1c;
  background: #fef2f2;
  color: #991b1b;
}
.ir-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.ir-form-grid .ir-span-2 { grid-column: 1 / -1; }
.ir-field {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}
.ir-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ir-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
}
.ir-timeline { display: grid; gap: 8px; }
.ir-tl-row {
  display: grid;
  grid-template-columns: minmax(168px, 200px) 1fr auto;
  gap: 8px;
  align-items: start;
}
.ir-tl-when { display: grid; gap: 6px; }
.ir-tl-del {
  width: 36px;
  height: 36px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #64748b;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.ir-tl-del:disabled { opacity: .4; cursor: default; }
#btnIrTlAdd { margin-top: 8px; }
.ir-field .pg-search-input, .ir-field textarea, .ir-field select { font-weight: 500; }
.ir-dropzone {
  margin-top: 4px;
  padding: 14px;
  border: 1.5px dashed #93c5fd;
  border-radius: 12px;
  background: #eff6ff;
}
.ir-dropzone:focus, .ir-dropzone.is-file-drag {
  outline: none;
  border-color: #1d4ed8;
  background: #dbeafe;
}
.ir-dropzone-title { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: #1e3a8a; }
.ir-photo-pickers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ir-file-pick {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding: 10px 14px;
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid #93c5fd;
  background: #fff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
}
.ir-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 10px;
}
.ir-thumb {
  position: relative;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ir-thumb img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  background: #e2e8f0;
}
.ir-thumb video {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: #0f172a;
}
.ir-thumb audio {
  width: 100%;
  display: block;
  margin-top: 28px;
  padding: 0 8px;
}
.ir-thumb--audio { min-height: 96px; overflow: visible; }
.ir-voice-list {
  display: grid;
  gap: 12px;
}
.ir-voice-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.ir-voice-lang { max-width: 140px; }
.ir-voice-text-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
  margin-top: 8px;
}
.ir-voice-text-row:has([data-ir-voice-translation]:not([hidden])) {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 720px) {
  .ir-voice-text-row:has([data-ir-voice-translation]:not([hidden])) {
    grid-template-columns: 1fr;
  }
}
.ir-voice-text-row textarea {
  min-height: 96px;
  margin: 0;
}
.ir-voice-translation {
  margin: 0;
  font-size: 13px;
  color: #0f172a;
  white-space: pre-wrap;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
}
.ir-voice-translation p { margin: 0; }
.ir-voice-translation .feed-meta { margin: 0 0 6px; }
.ir-voice-error {
  margin: 0;
  font-size: 12px;
  color: #b91c1c;
}
.ir-file-pick.is-rec {
  border-color: #b91c1c;
  background: #fef2f2;
  color: #991b1b;
}
button.ir-file-pick {
  font-family: inherit;
}
.ir-voice-timer {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #991b1b;
  font-variant-numeric: tabular-nums;
}
.ir-thumb.is-off { opacity: 0.62; }
.ir-thumb-del {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  padding: 4px 8px;
  border: 0;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.ir-thumb-del--inline {
  position: static;
  background: #fee2e2;
  color: #b91c1c;
}
.ir-thumb-meta { display: grid; gap: 6px; padding: 8px; }
.ir-include {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #0f766e;
  margin: 0;
}
.ir-attach-list { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.ir-attach-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
}
.ir-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ir-prepared { font-size: 13px; color: #475569; }
.ir-hod-box {
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  display: grid;
  gap: 10px;
}
.ir-share-box { margin-top: 12px; }
.ir-share-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.ir-share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
}
.ir-share-grant {
  display: grid;
  gap: 10px;
}
.ir-sig-pad {
  width: 100%;
  max-width: 420px;
  height: 140px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #fff;
  touch-action: none;
  display: block;
}
.ir-stmt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 16px 0 8px;
}
.ir-stmt-head h4 { margin: 0; font-size: 14px; }
.ir-stmt-card {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}
.ir-stmt-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ir-stmt-card-head strong { flex: 1; }
.ir-stmt-sig-img {
  max-width: 280px;
  max-height: 90px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}
.ir-stmt-sig-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ir-stmt-suggest { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.ir-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.ir-pill--draft { background: #e2e8f0; color: #334155; }
.ir-pill--submitted { background: #fef3c7; color: #92400e; }
.ir-pill--signed_off, .ir-pill--ready { background: #dcfce7; color: #166534; }
.ir-pill--failed { background: #fee2e2; color: #991b1b; }
.ir-list-table td { vertical-align: middle; }
.ir-body-toolbar {
  display: none;
  gap: 8px;
  margin-bottom: 8px;
}
.ir-body-side-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}
.ir-body-side-btn.is-active { border-color: #b91c1c; background: #fef2f2; color: #991b1b; }
.ir-body-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 8px;
}
.ir-body-tool {
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.ir-body-tool.is-active { border-color: #b91c1c; background: #fef2f2; color: #991b1b; }
.ir-body-tool-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}
.ir-body-hint {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 10px;
}
.ir-body-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  justify-items: stretch;
  align-items: start;
}
.ir-body-figure {
  width: 100%;
  max-width: 380px;
  text-align: center;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 10px 8px 12px;
  box-sizing: border-box;
}
.ir-body-figure-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f172a;
}
.ir-body-svg {
  width: 100%;
  max-width: 380px;
  height: auto;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}
.ir-body-svg--figure {
  background: transparent;
  border: 0;
  border-radius: 0;
}
.ir-body-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.ir-body-detail-card { text-align: center; }
.ir-body-detail-title {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}
.ir-body-detail-svg { max-width: 280px; margin: 0 auto; }
.ir-body-mark { pointer-events: none; }
#irBodyMapHost.is-marking svg { cursor: crosshair; }
.ir-body-hit { cursor: pointer; }
.ir-body-hit:hover { filter: brightness(0.94); }
.ir-body-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ir-body-chip {
  border: 0;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  cursor: pointer;
}
.ir-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.ir-kpi {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}
.ir-kpi strong { display: block; font-size: 22px; color: #0f172a; }
.ir-kpi span { font-size: 12px; color: #64748b; }
.ir-chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.ir-chart-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}
.ir-chart-card h4 { margin: 0 0 8px; font-size: 13px; }
.ir-chart-card canvas { width: 100% !important; max-height: 220px; }
.ir-form-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ir-form-tab {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  color: #334155;
  cursor: pointer;
}
.ir-form-tab.is-on {
  border-color: #b91c1c;
  background: #fef2f2;
  color: #991b1b;
}
.ir-ticks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6px 12px;
  margin: 8px 0 14px;
}
.ir-tick {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #334155;
  line-height: 1.35;
}
.ir-subhead {
  margin: 16px 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
}
.ir-soa-grid { margin-top: 10px; }
@media (max-width: 720px) {
  .ir-type-row { grid-template-columns: 1fr; }
  .ir-outcome-row { grid-template-columns: 1fr 1fr; }
  .ir-ws-head { grid-template-columns: 1fr; }
  .gi-locmap-pair { grid-template-columns: 1fr; }
  .ir-tl-row { grid-template-columns: 1fr auto; }
  .ir-tl-when { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .ir-card { grid-template-columns: 6px 1fr; }
  .ir-card-side { justify-items: start; padding: 0 12px 12px 0; grid-column: 2; }
  .ir-body-toolbar { display: flex; }
  .ir-body-pair { grid-template-columns: 1fr; }
  .ir-body-pair > .ir-body-figure { display: none; }
  .ir-body-pair[data-show-side="FRONT"] > .ir-body-figure[data-side="FRONT"],
  .ir-body-pair[data-show-side="BACK"] > .ir-body-figure[data-side="BACK"] { display: block; margin: 0 auto; }
  .ir-body-svg--figure { max-width: 360px; }
  .ir-body-detail-grid { grid-template-columns: 1fr 1fr; }
}

/* Correspondence / official letters */
.corr-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.corr-search-label { display: block; max-width: 420px; margin: 0 0 12px; }
.corr-search-label input { display: block; width: 100%; margin-top: 4px; }
.corr-composer {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.corr-composer-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--lz-card, #fff);
  border: 1px solid var(--lz-border, #e2e8f0);
  border-radius: var(--lz-radius, 10px);
  padding: 10px 12px;
}
.corr-bar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.corr-bar-select,
.corr-bar-field,
.corr-toolbar-signatory {
  flex: 1 1 150px;
  min-width: 140px;
  max-width: 220px;
  position: relative;
  margin: 0;
}
.corr-bar-select,
.corr-bar-field input,
.corr-toolbar-signatory input,
.corr-toolbar-signatory select {
  display: block;
  width: 100%;
  height: 36px;
  box-sizing: border-box;
  font-weight: 400;
  color: var(--lz-text);
}
.corr-toolbar-signatory label {
  display: block;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--lz-muted);
}
.corr-toolbar-signatory label input { margin-top: 0; }
.corr-composer-toolbar input,
.corr-composer-toolbar select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-weight: 400;
  color: var(--lz-text);
}
.corr-dropzone {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 8px 12px;
  background: #f8fafc;
  cursor: pointer;
  color: var(--lz-muted);
  font-size: 12px;
}
.corr-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.corr-dropzone-copy { pointer-events: none; }
.corr-dropzone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: none;
}
.corr-attach-chip {
  display: inline-block;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  color: var(--lz-text);
}
.corr-dropzone.is-drop,
.corr-letter-paper.is-drop {
  outline: 2px dashed #b91c1c;
  background: #fef2f2;
}
.corr-bar-status {
  margin: 0;
  font-size: 12px;
  color: var(--lz-muted);
  min-height: 1.1em;
}
.corr-composer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
  align-items: center;
}
.corr-composer-form label { display: block; margin: 0 0 10px; font-size: 12px; font-weight: 600; color: var(--lz-muted); }
.corr-composer-form input,
.corr-composer-form select,
.corr-composer-form textarea {
  display: block; width: 100%; margin-top: 4px; box-sizing: border-box;
  font-weight: 400; color: var(--lz-text);
}
.corr-letter-paper {
  width: min(210mm, 100%);
  min-height: 297mm;
  margin: 0 auto 24px;
  background: #fff;
  color: #111;
  font-family: "Times New Roman", Times, serif;
  font-size: 13px;
  line-height: 1.55;
  padding: 18mm;
  box-sizing: border-box;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.12);
  border: 1px solid #e2e8f0;
}
.corr-letter-head { margin: 0 0 18px; }
.corr-letter-head img { width: 100%; display: block; }
.corr-letter-paper .lz-lh { margin: 0; }
.corr-letter,
.corr-letter-paper { font-family: "Times New Roman", Times, serif; color: #111; font-size: 13px; line-height: 1.55; }
.corr-letter-meta { margin: 0 0 2px; }
.corr-letter-date-row,
.corr-letter-attn-row,
.corr-letter-subject-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.corr-letter-date-row input,
.corr-letter-attn-row input,
.corr-letter-subject-row input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}
.corr-letter-paper input,
.corr-letter-paper textarea {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px dashed transparent;
  background: transparent;
  font: inherit;
  color: inherit;
  padding: 1px 0;
  margin: 0;
  resize: none;
  outline: none;
  box-sizing: border-box;
}
.corr-letter-paper input:focus,
.corr-letter-paper textarea:focus {
  border-bottom-color: #cbd5e1;
  background: #fafafa;
}
.corr-letter-paper input[type="date"] {
  width: auto;
  min-width: 9.5em;
  font: inherit;
  color: inherit;
}
.corr-paper-strong { font-weight: 700; }
.corr-letter-to { margin: 16px 0 12px; }
.corr-letter-to p { margin: 0; }
.corr-letter-title {
  font-weight: 700;
  margin: 14px 0 10px;
}
.corr-letter-title:not(:placeholder-shown) { text-transform: uppercase; }
.corr-letter-subject-row { margin: 0 0 14px; }
.corr-letter-body { margin: 0 0 16px; min-height: 180px; }
.corr-paper-line { margin: 0 0 6px; }
.corr-letter-sigline { margin: 28px 0 8px; }
.corr-signatory-name { margin: 0; min-height: 1.2em; }
.corr-letter-foot {
  margin-top: 28px;
  font-size: 9px;
  color: #555;
  border-top: 1px solid #ddd;
  padding-top: 8px;
  font-family: "Times New Roman", Times, serif;
}
.corr-suggest {
  border: 1px solid var(--lz-border); background: #fff; max-height: 220px; overflow: auto;
  margin-top: 4px; border-radius: 6px;
  position: absolute; left: 0; right: 0; z-index: 8;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}
.corr-suggest-item {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 8px 10px; cursor: pointer; font-size: 13px;
}
.corr-suggest-item:hover { background: #f8fafc; }
tr.ctr-vault-highlight { background: #fff7ed; }
@media (max-width: 960px) {
  .corr-bar-select,
  .corr-bar-field,
  .corr-toolbar-signatory {
    max-width: none;
  }
  .corr-composer-actions { margin-left: 0; }
  .corr-letter-paper { padding: 14mm 12mm; min-height: 0; }
}

/* Site portal — AG General material picker */
.site-ag-mat-composer {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
}
.site-ag-mat-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.site-ag-mat-mode {
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.site-ag-mat-mode.is-active {
  border-color: #991b1b;
  background: #fff7f7;
  color: #7f1d1d;
  box-shadow: 0 0 0 2px rgba(153, 27, 27, 0.12);
}
.site-ag-mat-field {
  display: block;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.site-ag-mat-field input,
.site-ag-mat-field select,
.site-ag-mat-field textarea {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
  margin-top: 4px;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.site-ag-mat-field input,
.site-ag-mat-field select {
  min-height: 44px;
}
.site-ag-mat-field textarea {
  min-height: 88px;
  resize: vertical;
  font-weight: 500;
}
.site-ag-mat-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.site-ag-mat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
  margin: 8px 0 6px;
}
.site-ag-mat-count,
.site-ag-mat-empty,
.site-ag-mat-note {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}
.site-ag-mat-note {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff7ed;
  color: #9a3412;
}
.site-ag-mat-clear {
  border: 0;
  background: transparent;
  padding: 0;
  color: #991b1b;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.site-ag-mat-matches {
  max-height: 280px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}
.site-ag-mat-matches .site-ag-mat-empty {
  padding: 16px 12px;
}
.site-ag-mat-hit {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  background: transparent;
  cursor: default;
  min-height: 52px;
}
.site-ag-mat-hit-entry {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  margin-left: auto;
}
.site-ag-mat-hit-entry input,
.site-ag-mat-hit-entry select {
  box-sizing: border-box;
  min-height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
}
.site-ag-mat-hit-entry input { width: 76px; padding: 6px 8px; }
.site-ag-mat-unit {
  min-width: 1.6rem;
  font-size: 14px;
  font-weight: 800;
  color: #334155;
  text-align: center;
}
.site-ag-mat-addrow .site-ag-mat-unit { align-self: center; }
.site-ag-mat-hit:last-child { border-bottom: 0; }
.site-ag-mat-hit.is-selected {
  background: #fff7f7;
  box-shadow: inset 3px 0 0 #991b1b;
}
.site-ag-mat-hit-main { min-width: 0; }
.site-ag-mat-hit-spec {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-ag-mat-hit-brand {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}
.site-ag-mat-hit-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.site-ag-mat-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  font-size: 12px;
  font-weight: 800;
  color: #334155;
}
.site-ag-mat-hit.is-selected .site-ag-mat-chip {
  background: #fecaca;
  color: #7f1d1d;
}
.site-ag-mat-selected {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #7f1d1d;
}
.site-ag-mat-addrow {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 10px;
}
.site-ag-mat-addrow .site-ag-mat-field {
  width: 112px;
  flex: 0 0 112px;
}
.site-ag-mat-addrow .btn {
  flex: 0 0 auto;
  min-width: 88px;
  min-height: 44px;
  padding-left: 16px;
  padding-right: 16px;
}
.site-ag-mat-addrow .btn-primary { margin-left: auto; }
.site-ag-mat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.site-ag-mat-head-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}
.site-ag-mat-head-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.site-ag-mat-switch {
  border: 0;
  background: transparent;
  padding: 4px 0;
  color: #991b1b;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  min-height: 36px;
}
.site-ag-mat-composer.is-editing {
  border-color: #fecaca;
  background: #fff7f7;
}
.site-ag-mat-addrow .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.site-ag-mat-recorded-title {
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.site-ag-mat-table-wrap { overflow-x: auto; }
.site-ag-mat-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.site-ag-mat-table th,
.site-ag-mat-table td {
  padding: 7px 8px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}
.site-ag-mat-table th {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  background: #f8fafc;
  white-space: nowrap;
}
.site-ag-mat-table tr:last-child td { border-bottom: 0; }
.site-ag-mat-table .sn { width: 2.6rem; font-weight: 800; color: #64748b; }
.site-ag-mat-table .num { width: 4.5rem; text-align: right; font-variant-numeric: tabular-nums; font-weight: 800; }
.site-ag-mat-table .unit { width: 3rem; font-weight: 800; }
.site-ag-mat-table .acts { width: 1%; white-space: nowrap; }
.site-ag-mat-table tr.is-special td { background: #fff7ed; }
.site-ag-mat-table tr.is-editing td { background: #fff7f7; }
.site-ag-mat-table input[data-ag-line-qty],
.site-ag-mat-table select {
  box-sizing: border-box;
  min-height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 6px;
}
.site-ag-mat-table input[data-ag-line-qty] { width: 72px; text-align: right; }
.site-ag-mat-table .site-ag-mat-line-text { min-height: 34px; }
.site-ag-mat-table .site-ag-mat-badge { margin-right: 6px; }
.site-ag-mat-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.site-ag-mat-line {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.site-ag-mat-line-sn {
  font-size: 13px;
  font-weight: 800;
  color: #64748b;
  text-align: right;
}
.site-ag-mat-line.is-special {
  background: #fff7ed;
  border-color: #fdba74;
}
.site-ag-mat-line:not(.is-editing) .site-ag-mat-line-main {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}
.site-ag-mat-line-main {
  min-width: 0;
}
.site-ag-mat-line-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.site-ag-mat-line-picks select,
.site-ag-mat-line-brand select,
.site-ag-mat-line-text {
  box-sizing: border-box;
  min-height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 8px;
}
.site-ag-mat-line-text { width: 100%; }
.site-ag-mat-line.is-editing .site-ag-mat-line-brand select { margin-top: 6px; }
.site-ag-mat-line-main strong {
  display: block;
  min-width: 0;
  font-size: 14px;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-ag-mat-line:not(.is-editing) .site-ag-mat-line-brand,
.site-ag-mat-line:not(.is-editing) .site-ag-mat-badge {
  display: inline;
  flex: 0 0 auto;
  margin: 0;
}
.site-ag-mat-line-sub,
.site-ag-mat-line-brand {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
}
.site-ag-mat-line-qty {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 4px;
  min-width: 36px;
}
.site-ag-mat-line-qty span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #64748b;
}
.site-ag-mat-line-qty strong {
  font-size: 15px;
  line-height: 1.1;
  color: #0f172a;
}
.site-ag-mat-badge {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-ag-mat-line:not(.is-editing) .site-ag-mat-remove,
.site-ag-mat-line:not(.is-editing) .btn-sm {
  min-height: 28px;
  padding: 2px 8px;
}
@media (min-width: 720px) {
  .site-ag-mat-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-ag-mat-filters.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
html[data-site-theme="dark"] .site-ag-mat-composer,
html[data-site-theme="dark"] .site-ag-mat-line,
html[data-site-theme="dark"] .site-ag-mat-field input,
html[data-site-theme="dark"] .site-ag-mat-field select,
html[data-site-theme="dark"] .site-ag-mat-field textarea,
html[data-site-theme="dark"] .site-ag-mat-hit-entry input,
html[data-site-theme="dark"] .site-ag-mat-hit-entry select {
  background: #111827;
  border-color: #334155;
  color: #f8fafc;
}
html[data-site-theme="dark"] .site-ag-mat-head-title { color: #f8fafc; }
html[data-site-theme="dark"] .site-ag-mat-composer.is-editing,
html[data-site-theme="dark"] .site-ag-mat-line.is-editing { background: #1f1212; border-color: #f87171; }
html[data-site-theme="dark"] .site-ag-mat-mode {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}
html[data-site-theme="dark"] .site-ag-mat-mode.is-active {
  background: #1f1212;
  border-color: #f87171;
  color: #fecaca;
}
html[data-site-theme="dark"] .site-ag-mat-matches {
  background: #0f172a;
  border-color: #334155;
}
html[data-site-theme="dark"] .site-ag-mat-hit {
  border-bottom-color: #334155;
}
html[data-site-theme="dark"] .site-ag-mat-hit.is-selected {
  background: #1f1212;
}
html[data-site-theme="dark"] .site-ag-mat-hit-spec,
html[data-site-theme="dark"] .site-ag-mat-line-main strong,
html[data-site-theme="dark"] .site-ag-mat-line-qty strong {
  color: #f8fafc;
}
html[data-site-theme="dark"] .site-ag-mat-chip {
  background: #334155;
  color: #e2e8f0;
}
html[data-site-theme="dark"] .site-ag-mat-note,
html[data-site-theme="dark"] .site-ag-mat-line.is-special {
  background: #431407;
  border-color: #9a3412;
  color: #ffedd5;
}
html[data-site-theme="dark"] .site-ag-mat-badge {
  background: #7c2d12;
  color: #ffedd5;
}
html[data-site-theme="dark"] .site-ag-mat-table,
html[data-site-theme="dark"] .site-ag-mat-table td {
  background: #111827;
  border-color: #334155;
  color: #f8fafc;
}
html[data-site-theme="dark"] .site-ag-mat-table th {
  background: #0f172a;
  color: #94a3b8;
}
html[data-site-theme="dark"] .site-ag-mat-unit { color: #e2e8f0; }

.site-ag-photo-new {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 12px 0 8px;
}
.site-ag-photo-new-input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
}
.site-ag-photo-target {
  margin: 0 0 8px;
  font-size: 14px;
  color: #334155;
}
.site-ag-photo-status {
  font-weight: 700;
  color: #9a3412;
}
.site-ag-photo-group {
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}
.site-ag-photo-group.is-active {
  border-color: #991b1b;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(153, 27, 27, 0.12);
}
.site-ag-photo-group.is-drop-target {
  border-color: #15803d;
  background: #f0fdf4;
  box-shadow: 0 0 0 2px rgba(21, 128, 61, 0.2);
}
.site-ag-photo-group-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}
.site-ag-photo-group-bar .site-ag-photo-group-hd { margin: 0; }
.site-ag-photo-group-action {
  border: 0;
  background: transparent;
  padding: 4px 2px;
  color: #991b1b;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  min-height: 36px;
  cursor: pointer;
}
.site-ag-photo-rename {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}
.site-ag-photo-rename .site-ag-photo-new-input { flex: 1; }
.site-ag-photo-group-hd {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.site-ag-photo-group-hd.is-static { cursor: default; }
.site-ag-photo-group-remarks {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 15px;
  line-height: 1.35;
  resize: vertical;
}
.dr-photo-group-remarks {
  margin: 0 0 8px;
  white-space: pre-wrap;
}
.site-ag-photo-group-count {
  min-width: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  font-size: 12px;
  text-align: center;
}
.site-ag-photo-drop-hint {
  margin: 0 0 8px;
  font-size: 13px;
  color: #64748b;
}
.site-ag-photo-group .site-term-photo-card { position: relative; }
.site-photo-uploaded-by,
.dr-photo-by,
.drp-cap-by {
  display: block;
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  color: #1d4ed8;
  word-break: break-word;
}
.dr-photo-by { font-size: 12px; }
.site-ag-photo-grip {
  position: absolute;
  z-index: 2;
  top: 6px;
  left: 6px;
  min-height: 32px;
  padding: 4px 8px;
  border: 0;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  touch-action: none;
  cursor: grab;
}
.site-ag-photo-badge {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #9a3412;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.site-ag-photo-badge.is-failed { background: #b91c1c; }
.site-term-photo-card.is-uploading .site-ag-photo-badge {
  animation: site-ag-photo-pulse 1s ease-in-out infinite;
}
.site-ag-photo-ghost {
  position: fixed;
  z-index: 80;
  pointer-events: none;
  max-width: 180px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #7f1d1d;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
}
@keyframes site-ag-photo-pulse {
  50% { opacity: 0.45; }
}
html[data-site-theme="dark"] .site-ag-photo-group {
  background: #0f172a;
  border-color: #334155;
}
html[data-site-theme="dark"] .site-ag-photo-group.is-active {
  background: #111827;
  border-color: #f87171;
}
html[data-site-theme="dark"] .site-ag-photo-group-hd,
html[data-site-theme="dark"] .site-ag-photo-target {
  color: #f8fafc;
}
html[data-site-theme="dark"] .site-ag-photo-new-input {
  background: #111827;
  border-color: #334155;
  color: #f8fafc;
}

.site-ag-mat-line-actions {
  display: flex;
  flex-direction: row;
  gap: 4px;
  align-items: center;
}
.site-ag-mat-line.is-editing {
  display: grid;
  border-color: #991b1b;
  background: #fff7f7;
  box-shadow: inset 3px 0 0 #991b1b;
}
.site-ag-mat-edit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.site-ag-mat-line.is-editing .site-ag-mat-line-actions {
  flex-direction: row;
  justify-content: flex-end;
}
@media (min-width: 720px) {
  .site-ag-mat-edit { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.ag-building {
  margin-top: 4px;
  border: 1px solid var(--lz-border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.ag-building-roof {
  background: var(--lz-red);
  color: #fff;
  text-align: center;
  font-weight: 700;
  padding: 8px 12px;
}
.ag-building-floors {
  max-height: 68vh;
  overflow: auto;
  padding: 8px;
  background: #fafafa;
}
.ag-building-head,
.ag-building-floor {
  display: grid;
  grid-template-columns: 42px repeat(var(--ag-units, 1), minmax(76px, 1fr));
  gap: 6px;
  margin-bottom: 6px;
  align-items: stretch;
}
.ag-building-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fafafa;
  padding-bottom: 4px;
  margin-bottom: 4px;
}
.ag-floor-label,
.ag-unit-head {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--lz-muted, #64748b);
}
.ag-unit-card {
  appearance: none;
  border: 1px solid var(--lz-border);
  background: #fff;
  border-radius: 8px;
  min-height: 52px;
  padding: 6px 8px;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.ag-unit-card strong { display: block; font-size: 13px; }
.ag-unit-card span { display: block; margin-top: 2px; font-size: 11px; color: var(--lz-muted, #64748b); }
.ag-unit-card.is-partial { background: var(--lz-red-soft); }
.ag-unit-card.is-full { background: #fde8e8; border-color: #f0b4b4; }
.ag-unit-card.is-open,
.ag-ground-scope.is-open { border-color: var(--lz-red); outline: 2px solid var(--lz-red); }
.ag-unit-gap { min-height: 52px; }
.ag-unit-sheet {
  margin: 0 8px 8px;
  padding: 10px 12px;
  border: 1px solid var(--lz-border);
  border-left: 3px solid var(--lz-red);
  border-radius: 8px;
  background: #fff;
}
.ag-unit-sheet-title { display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; }
.ag-scope-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding: 7px 0;
  border-top: 1px solid var(--lz-border);
  font-size: 13px;
}
.ag-scope-line .feed-meta { margin: 0; text-align: right; }
.ag-building-ground {
  padding: 8px 10px 10px;
  border-top: 1px solid var(--lz-border);
  background: #fff;
}
.ag-ground-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ag-scope-block { margin-top: 4px; }
.ag-scope-record { padding: 4px 0 8px; }
.ag-scope-photos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ag-unit-photo {
  width: 76px;
  height: 76px;
  padding: 0;
  border: 1px solid var(--lz-border);
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
  cursor: pointer;
}
.ag-unit-photo img,
.ag-unit-photo video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ag-unit-file { font-size: 12px; }
.ag-unit-photo-wrap { display: flex; flex-direction: column; gap: 2px; max-width: 120px; }
.ag-unit-photo-label { font-size: 11px; line-height: 1.3; color: var(--lz-muted, #64748b); }
@media (max-width: 640px) {
  .ag-scope-line { flex-direction: column; align-items: flex-start; gap: 2px; }
  .ag-scope-line .feed-meta { text-align: left; }
}

.pg-fusion-sheet { padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; }
.pg-fusion-toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.pg-fusion-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pg-fusion-meta { display: block; margin: 8px 0 4px; }
.pg-fusion-loc { font-weight: 700; margin-bottom: 10px; }
.pg-fusion-id-row { display: flex; }
.pg-fusion-owner { margin-left: 36%; text-align: left; font-weight: 700; line-height: 1.35; }
.pg-fusion-machine { margin: 14px 0; padding-top: 8px; border-top: 1px solid #e2e8f0; }
.pg-fusion-machine-head { display: flex; justify-content: flex-start; gap: 28px; align-items: center; flex-wrap: wrap; padding-left: 16%; }
.pg-fusion-machine-head h5 { margin: 0; }
.pg-fusion-table input { width: 100%; min-width: 64px; box-sizing: border-box; font: inherit; }
.pg-fusion-table th, .pg-fusion-table td { font-size: 12px; }

