:root {
  --js-bg: #f3f6fb;
  --js-surface: #fff;
  --js-text: #0f2f66;
  --js-muted: #56627a;
  --js-border: #d7deeb;
  --js-primary: #1666d9;
  --js-primary-soft: #eaf2ff;
  --js-green: #10a765;
  --js-yellow: #f4c93f;
  --js-radius: 16px;
}

* { box-sizing: border-box; }

body.jobsite-ui {
  margin: 0;
  background: var(--js-bg);
  color: var(--js-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.js-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 2px solid #e5ebf5;
  background: var(--js-surface);
}

.js-header h1 {
  margin: 0;
  font-size: 1.05rem;
}

.js-header nav { display: flex; gap: 8px; flex-wrap: wrap; }
.js-header nav a {
  text-decoration: none;
  font-size: 0.85rem;
  color: #2d3e60;
  border: 1px solid #d8e1ef;
  border-radius: 999px;
  padding: 6px 10px;
}
.js-header nav a.is-active {
  background: #edf4ff;
  border-color: #b8d3ff;
  color: #124fab;
}
.js-pwa-install-fab {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1200;
  color: #0f172a;
  background: #fdbd03;
  border: 1px solid #e5a800;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.js-main { max-width: 1100px; margin: 0 auto; padding: 16px; }
.js-debug-banner {
  background: #fff7d6;
  color: #7a4f00;
  border-bottom: 1px solid #f0deb1;
  padding: 8px 16px;
  font-size: 0.82rem;
}
.js-flash {
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  color: #1b5e20;
  border-radius: var(--js-radius);
  padding: 10px 12px;
  margin-bottom: 14px;
}

.js-card {
  background: var(--js-surface);
  border: 2px solid #dbe3f0;
  border-radius: var(--js-radius);
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: none;
}

.js-card h2, .js-card h3 { margin: 0 0 10px; }
.js-job-num-head {
  margin: 0 0 4px;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--js-text);
}
.js-job-name-sub {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--js-muted);
  line-height: 1.35;
}
.cc-header .js-job-num-head {
  font-size: 1.85rem;
  margin-bottom: 6px;
}
.cc-header .js-job-name-sub {
  margin-bottom: 8px;
}
.js-muted { color: var(--js-muted); font-size: 0.9rem; }
.js-job-header {
  border-radius: var(--js-radius);
  padding: 14px;
  margin-bottom: 14px;
  background: #ffffff;
  color: var(--js-text);
  border: 2px solid #c7dbff;
  border-left: 6px solid var(--js-primary);
}
.js-job-header .js-kicker,
.js-job-header h2,
.js-job-header .js-muted,
.js-job-header .js-inline-links a {
  color: var(--js-text);
}
.js-link-photo-tag {
  display: inline-flex;
  align-items: center;
  background: #edf4ff;
  border: 1px solid #bfd5ff;
  color: #124fab !important;
  border-radius: 999px;
  padding: 4px 10px;
}

.js-kpis { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 8px; }
.js-kpis div { background: #f8fafc; border: 1px solid var(--js-border); border-radius: 10px; padding: 10px; }
.js-kpis span { display: block; font-size: 0.75rem; color: var(--js-muted); }
.js-kpis strong { font-size: 1.4rem; line-height: 1.1; }

.js-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.js-list li { border: 1px solid var(--js-border); border-radius: 10px; padding: 10px; display: flex; justify-content: space-between; gap: 10px; }
.js-list p { margin: 3px 0 0; color: var(--js-muted); font-size: 0.85rem; }
.js-inline-links a { color: var(--js-primary); }
.js-pill { align-self: flex-start; font-size: 0.75rem; background: var(--js-primary-soft); color: #1e3a8a; padding: 3px 8px; border-radius: 999px; }

.js-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}
.js-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}

.js-form { display: flex; flex-direction: column; gap: 8px; }
.js-form-inline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}
.js-form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.82rem; color: var(--js-muted); }
.js-form input, .js-form select, .js-form textarea {
  border: 1px solid var(--js-border);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  color: var(--js-text);
  background: #fff;
}
.js-form textarea {
  resize: vertical;
  min-height: 96px;
}
.js-photo-seo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0;
}
@media (max-width: 720px) {
  .js-photo-seo-grid {
    grid-template-columns: 1fr;
  }
}
.js-form input.js-field-ok {
  border-color: var(--js-green);
  box-shadow: 0 0 0 2px rgba(16, 167, 101, 0.15);
  background: #f3fcf7;
}
.js-form input.js-field-bad {
  border-color: #e07a2f;
  box-shadow: 0 0 0 2px rgba(224, 122, 47, 0.12);
}
.js-home-error {
  color: #b45309;
  font-weight: 600;
  margin: 8px 0 0;
  font-size: 0.9rem;
}
.js-home-ok {
  color: #047857;
  font-weight: 600;
  margin: 8px 0 0;
  font-size: 0.9rem;
}
.js-home-step {
  border: 1px solid var(--js-border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  background: #fafcff;
}
.js-home-step-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.js-home-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--js-primary-soft);
  color: var(--js-primary);
  font-size: 0.78rem;
  font-weight: 700;
}
.js-home-step-num.is-done {
  background: #d9f7e8;
  color: var(--js-green);
}
.js-home-step-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--js-text);
  flex: 1;
}
.js-home-step-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--js-green);
  border-radius: 999px;
  padding: 2px 8px;
}
.js-home-step-badge.is-on { display: inline-block; }
.js-home-hint {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--js-muted);
  min-height: 1.1em;
}
.js-home-hint--ok { color: var(--js-green); font-weight: 600; }
.js-home-hint--bad { color: #c05621; font-weight: 600; }
.js-home-step--pin {
  border-color: #f0d9a8;
  background: #fffdf5;
}

.js-btn {
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--js-primary);
  color: #fff;
  padding: 10px 12px;
  font-weight: 600;
  cursor: pointer;
}
.js-btn--prominent {
  background: var(--js-green);
  border-color: #0c8f57;
}
.js-btn--ghost {
  background: #edf4ff;
  color: #124fab;
  border-color: #9ec0f7;
}
.js-btn--accent {
  background: #fff9e8;
  color: #7a5a00;
  border-color: #d7b132;
}
.js-btn--danger {
  background: #b91c1c;
  border-color: #9f1717;
}
.js-action-card {
  border-color: #c8d9f7;
}
.js-kicker {
  margin: 0 0 6px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1e40af;
}
.js-worklist .js-worklist-day-entry {
  width: 128px;
  min-width: 128px;
}
.js-worklist .js-worklist-day-entry label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--js-muted);
  font-size: 0.8rem;
}
.js-worklist .js-worklist-day-entry input[type="number"] {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  font-size: 1rem;
  padding: 10px 12px;
  border-radius: 12px;
  border-color: #c9d4e6;
  background: #fbfdff;
  box-sizing: border-box;
}
.js-worklist .js-worklist-row {
  align-items: flex-start;
  border-radius: 14px;
  border-color: #d1dbea;
  background: #ffffff;
}
.js-worklist .js-worklist-text-col {
  flex: 1 1 auto;
  min-width: 0;
}
.js-worklist .js-worklist-text-col strong {
  display: block;
  line-height: 1.25;
  word-break: break-word;
}
@media (max-width: 640px) {
  .js-worklist .js-worklist-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 128px;
    gap: 10px;
  }
  .js-worklist .js-worklist-day-entry {
    width: 120px;
    min-width: 120px;
  }
}
.js-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.js-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #bfd5ff;
  border-radius: 999px;
  color: #124fab;
  background: #edf4ff;
  font-size: 0.75rem;
  padding: 4px 10px;
}
.js-mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
}
.js-mini-list li {
  border-bottom: 1px dashed var(--js-border);
  padding-bottom: 6px;
}
.js-card--alert {
  border-color: var(--js-yellow);
  border-left-width: 6px;
  background: #fffef8;
}
.js-card--photo {
  border-color: #97ddbf;
  border-left-width: 6px;
  background: #fbfffc;
}
.js-card--yellow {
  border-color: #efd98d;
  border-left-width: 6px;
}
.js-list--compact li {
  padding: 8px 10px;
}
.js-summary-value {
  margin: 0 0 6px;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: #1e3a8a;
}
.js-card h3 {
  color: #124fab;
}

.js-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.js-table th, .js-table td { border-bottom: 1px solid var(--js-border); text-align: left; padding: 8px; vertical-align: top; }
.js-table th { color: var(--js-muted); font-weight: 600; }
.js-inline-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.js-portal-gate {
  border: 1px solid #c9d8f2;
  background: #f5f9ff;
  border-radius: 12px;
  padding: 10px 12px;
}
.js-danger-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
.js-flow-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.js-flow-nav .js-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}
.js-portal-gate input[type="checkbox"] {
  width: 18px;
  height: 18px;
}
/* Shared list/detail page title row — matches Documents h3 + action link */
.js-page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.js-page-head h3 {
  margin: 0;
  font-size: 0.98rem;
  color: #124fab;
}
.js-page-head > a {
  flex-shrink: 0;
  color: var(--js-primary);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
}
.js-doc-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.js-doc-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.js-doc-form input[type="text"] {
  width: 100%;
  min-width: 0;
}
.js-debug-pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  background: #0f1720;
  color: #d1fae5;
  border-radius: 8px;
  padding: 10px;
}
.js-qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.js-qr-card img { width: 100%; max-width: 220px; height: auto; border: 1px solid var(--js-border); border-radius: 8px; background: #fff; }
.js-qr-url { font-size: 0.75rem; color: var(--js-muted); word-break: break-all; }

@media (max-width: 860px) {
  .js-grid-2 { grid-template-columns: 1fr; }
  .js-grid-3 { grid-template-columns: 1fr; }
  .js-kpis { grid-template-columns: 1fr; }
  .js-form-inline {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .js-doc-form {
    grid-template-columns: 1fr;
  }
}

/* CC-style mobile shell */
body.jobsite-ui--cc {
  background: #f2f4f8;
}
body.jobsite-ui--cc .js-main {
  max-width: 520px;
  padding: 14px 14px 100px;
}
body.jobsite-ui--cc .js-flash {
  border: 1px solid #c9e8d8;
  border-radius: 10px;
  box-shadow: none;
  margin-bottom: 10px;
}
.cc-shell {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cc-header,
.cc-photos,
.cc-action-list,
.cc-app-btn-grid,
.cc-time-card,
.cc-alerts {
  background: #fff;
  border: 1px solid #d9e1ee;
  border-radius: 10px;
}
.cc-header {
  padding: 10px 12px;
}
.cc-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.cc-header-actions {
  display: inline-flex;
  gap: 6px;
}
.cc-icon-btn {
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  color: #678;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cc-header h2 {
  margin: 0 0 6px;
  font-size: 1.18rem;
  color: #202c3f;
}
.cc-mobile-note {
  margin: 0 0 6px;
  color: #607089;
  font-size: 0.78rem;
}
.cc-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 2px 8px 2px 0;
  font-size: 0.86rem;
  color: #1a66d6;
  text-decoration: none;
}
.cc-tag-row {
  margin-top: 4px;
}
.cc-scroll-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.cc-scroll-pill {
  flex: 0 0 auto;
  text-decoration: none;
  color: #3a4860;
  background: #eef2f7;
  border: 1px solid #d7deea;
  border-radius: 999px;
  font-size: 0.78rem;
  padding: 6px 11px;
  white-space: nowrap;
}
.cc-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid #f0c637;
  background: #ffe98a;
  color: #4c3a00;
  border-radius: 6px;
  font-size: 0.72rem;
  padding: 2px 7px;
  margin-right: 8px;
}
.cc-alerts {
  border-color: #f4c93f;
  border-left: 5px solid #f4c93f;
  padding: 8px 10px;
}
.cc-alerts p {
  margin: 0 0 4px;
  font-size: 0.84rem;
  color: #6f5704;
}
.cc-alerts p:last-child {
  margin-bottom: 0;
}
.cc-photos {
  padding: 10px 12px;
}
.cc-job-activity {
  margin-top: 0;
}
.cc-job-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cc-job-activity-item {
  padding: 10px 0;
  border-bottom: 1px solid #e8edf5;
}
.cc-job-activity-item:last-child {
  border-bottom: 0;
}
.cc-job-activity-type {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1f2c40;
  line-height: 1.25;
}
.cc-job-activity-meta {
  margin-top: 4px;
  font-size: 0.78rem;
  color: #677b95;
  line-height: 1.35;
}
.cc-job-activity-role {
  color: #8b9bb0;
}
.cc-job-activity-empty {
  margin: 0;
  padding: 4px 0 0;
  font-size: 0.86rem;
}
.cc-job-activity-link,
.js-inline-link {
  color: #124fab;
  text-decoration: none;
}
.cc-job-activity-link:hover,
.js-inline-link:hover {
  text-decoration: underline;
}
.cc-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.cc-section-head h3 {
  margin: 0;
  font-size: 0.98rem;
  color: #222f43;
}
.cc-section-head a {
  text-decoration: none;
  color: #1a66d6;
  font-size: 0.82rem;
}
/* Photo timeline — aligned with fieldtracker-examples/job-photo-timeline-demo.html */
.cc-photo-day-block {
  margin-bottom: 22px;
}
.cc-photo-day-block:last-child {
  margin-bottom: 0;
}
.cc-photo-day-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1f2c40;
}
.cc-photo-day-title {
  flex: 1;
  line-height: 1.25;
  min-width: 0;
}
.cc-photo-day-meta {
  flex-shrink: 0;
  color: #677b95;
  font-weight: 500;
  font-size: 0.78rem;
}
.cc-photo-timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
@media (min-width: 400px) {
  .cc-photo-timeline-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.cc-photo-tile-wrap {
  min-width: 0;
}
.cc-photo-timeline-link {
  display: block;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.cc-photo-timeline-link:focus-visible {
  outline: 2px solid #1a66d6;
  outline-offset: 2px;
  border-radius: 10px;
}
.cc-photo-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #dfe8e4;
}
.cc-photo-tile .cc-photo-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cc-photo-tile .cc-photo-thumb--tile {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  background: linear-gradient(145deg, #d8e0ea 0%, #c8d2e0 100%);
}
.cc-photo-uploader {
  position: absolute;
  left: 6px;
  bottom: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  color: #333;
  pointer-events: none;
}
.cc-photo-cap {
  font-size: 0.72rem;
  color: #677b95;
  margin: 4px 2px 0;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.cc-photo-upload {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e4ebf5;
}
.cc-photo-upload-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 8px;
}
.cc-photo-upload-btn {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 44px;
  cursor: pointer;
  margin: 0;
}
.cc-photo-upload-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}
.cc-photo-upload-note-label {
  display: block;
  font-size: 0.78rem;
  color: #607089;
  margin: 8px 0 4px;
}
.cc-photo-upload-note {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--js-border);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 52px;
}
.cc-photo-upload-hint {
  font-size: 0.72rem !important;
  margin: 8px 0 0 !important;
  line-height: 1.35;
}
.cc-photo-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.cc-photo-card {
  border: 1px solid #dce4ef;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
  display: block;
}
.cc-photo-thumb {
  height: 76px;
  background: linear-gradient(135deg, #d1d9e8 0%, #b9c5da 100%);
}
.cc-photo-card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px;
}
.cc-photo-user {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eaf2ff;
  border: 1px solid #bfd5ff;
  color: #124fab;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
}
.cc-photo-time {
  color: #677b95;
  font-size: 0.68rem;
}
.cc-action-list {
  overflow: hidden;
}
.cc-action-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: #1f2c40;
  font-weight: 600;
  padding: 12px;
  border-bottom: 1px solid #e6ecf5;
}
.cc-action-item:last-child {
  border-bottom: 0;
}

/* Job home — 3 outline app buttons (scope / daily / docs) */
.cc-app-btn-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
  padding: 12px;
}
.cc-app-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 88px;
  padding: 12px 8px 10px;
  border-radius: 14px;
  border: 2px solid currentColor;
  background: #fff;
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  line-height: 1.15;
  touch-action: manipulation;
  transition: background 0.15s ease, transform 0.1s ease;
}
.cc-app-btn:active {
  transform: scale(0.98);
}
.cc-app-btn__icon {
  font-size: 1.35rem;
  margin-bottom: 2px;
}
.cc-app-btn__label {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.cc-app-btn__hint {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.85;
  min-height: 0.9em;
}
.cc-app-btn--scope {
  color: #15803d;
  border-color: #22c55e;
  background: #fff;
}
.cc-app-btn--scope:active {
  background: #f0fdf4;
}
.cc-app-btn--daily {
  color: #1d4ed8;
  border-color: #3b82f6;
  background: #fff;
}
.cc-app-btn--daily:active {
  background: #eff6ff;
}
.cc-app-btn--docs {
  color: #475569;
  border-color: #94a3b8;
  background: #fff;
}
.cc-app-btn--docs:active {
  background: #f8fafc;
}
.cc-app-btn--photos {
  color: #0f766e;
  border-color: #2dd4bf;
  background: #fff;
}
.cc-app-btn--photos:active {
  background: #f0fdfa;
}
.cc-photo-upload-preview {
  margin: 10px 0 12px;
  display: none;
}
.cc-photo-upload-preview.is-visible {
  display: block;
}
.cc-photo-upload-preview img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #dbe3ef;
  background: #f8fafc;
}
.cc-photo-upload-fields {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
}
.cc-photo-upload-fields label {
  display: grid;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}
.cc-photo-upload-fields select,
.cc-photo-upload-fields input[type="text"] {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #0f172a;
  background: #fff;
}
.cc-action-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cc-count-bubble {
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #124fab;
  background: #edf4ff;
  border: 1px solid #bfd5ff;
}
.cc-soon {
  font-size: 0.68rem;
  font-weight: 700;
  color: #6f5704;
  background: #ffe98a;
  border: 1px solid #f0c637;
  border-radius: 999px;
  padding: 2px 7px;
}
.cc-time-card {
  padding: 10px 12px;
}
.cc-time-card h3 {
  margin: 0 0 8px;
  color: #1f2c40;
}
.cc-time-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
}
.cc-time-form:last-child {
  margin-bottom: 0;
}
.cc-time-form input[type="text"] {
  border: 1px solid #d8e0ec;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 0.88rem;
}
.cc-btn {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
}
.cc-btn--green {
  background: #10a765;
  border-color: #0c8f57;
}
.cc-btn--blue {
  background: #1666d9;
  border-color: #1454b1;
}

.js-mobile-toast {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%) translateY(16px);
  width: calc(100% - 22px);
  max-width: 408px;
  background: #0f2f66;
  color: #fff;
  border: 1px solid #0b2450;
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 0.9rem;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 1100;
}
.js-mobile-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.js-mobile-toast.is-success {
  background: #0f7f50;
  border-color: #0c6a43;
}
.js-mobile-toast.is-error {
  background: #b91c1c;
  border-color: #991b1b;
}

.js-global-alert {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(-14px);
  width: calc(100% - 22px);
  max-width: 430px;
  background: #0f2f66;
  color: #fff;
  border: 1px solid #0b2450;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.88rem;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 1300;
}
.js-global-alert.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.js-global-alert.is-success {
  background: #0f7f50;
  border-color: #0c6a43;
}
.js-global-alert.is-error {
  background: #b91c1c;
  border-color: #991b1b;
}

.js-spell-results {
  border: 1px solid #c9d8f2;
  background: #f5f9ff;
  border-radius: 10px;
  padding: 10px;
  margin-top: 8px;
}
.js-spell-item {
  margin-top: 7px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.js-spell-item .js-btn {
  padding: 6px 9px;
  font-size: 0.82rem;
}
.js-input-select {
  min-width: 160px;
  border: 1px solid var(--js-border);
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 0.86rem;
  background: #fff;
  color: var(--js-text);
}

.js-details {
  border: 1px solid var(--js-border);
  border-radius: 12px;
  background: #fbfdff;
  padding: 10px;
}
.js-details summary {
  cursor: pointer;
  font-weight: 700;
  color: #124fab;
}
.js-details summary::-webkit-details-marker {
  color: #124fab;
}
.js-danger-zone {
  border: 1px solid #efcaca;
  background: #fff8f8;
  border-radius: 12px;
  padding: 10px;
}
.cc-detail-media {
  border-color: #d7e1ee;
}
.cc-detail-photo {
  height: 150px;
  border-radius: 12px;
  border: 1px solid #dce4ef;
  background: #e7edf6;
}
.cc-detail-photo-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #dce4ef;
  display: block;
}
.cc-detail-meta-row {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cc-detail-actions {
  border-color: #d7e1ee;
}
.cc-detail-actions .js-flow-nav .js-btn {
  min-height: 42px;
}

/* CC-style Projects list */
.cc-projects-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cc-projects-head {
  padding: 12px;
}
.cc-projects-head h2 {
  margin: 0 0 12px;
  color: #1f2c40;
}
.cc-projects-tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid #dce3ee;
  margin-bottom: 12px;
}
.cc-projects-tabs button {
  border: 0;
  background: transparent;
  color: #8190a5;
  padding: 0 0 9px;
  font-size: 0.96rem;
  font-weight: 600;
}
.cc-projects-tabs button.is-active {
  color: #1f2c40;
  border-bottom: 2px solid #2e3d55;
}
.cc-projects-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 10px;
}
.cc-projects-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #c9d5e8;
  border-radius: 8px;
  padding: 0 10px;
  height: 40px;
  color: #7b8ca5;
  background: #fff;
}
.cc-projects-search-wrap input {
  border: 0;
  outline: 0;
  width: 100%;
  font-size: 0.88rem;
  color: #2b3a50;
}
.cc-projects-search-row .js-btn {
  min-height: 40px;
  padding: 0 14px;
}
.cc-projects-filters {
  display: flex;
  gap: 8px;
  background: #e5ebf2;
  padding: 4px;
  border-radius: 8px;
  overflow-x: auto;
}
.cc-projects-filters button {
  border: 0;
  background: transparent;
  color: #364760;
  border-radius: 7px;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 12px;
}
.cc-projects-filters button.is-active {
  background: #fff;
}
.cc-projects-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cc-project-card {
  background: #fff;
  border: 1px solid #d9e1ee;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}
.cc-project-card-main {
  padding: 12px;
}
.cc-project-title-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
}
.cc-project-title-row:has(.cc-project-featured-photo) {
  align-items: start;
}
.cc-project-featured-photo {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}
.cc-project-title-text {
  min-width: 0;
}
.cc-project-title-text h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.25;
  color: #1f2c40;
}
.cc-project-address {
  margin: 6px 0 0;
  color: #5f7088;
  font-size: 0.9rem;
}
.cc-project-updated {
  margin: 4px 0 0;
  color: #7487a3;
  font-size: 0.8rem;
}
.cc-project-label {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 9px;
}
.cc-project-label--green {
  background: #2da14f;
  color: #fff;
}
.cc-project-label--yellow {
  background: #fff2b8;
  color: #7a5a00;
  border: 1px solid #e9cf67;
}
.cc-project-label--navy {
  background: #dfe8ff;
  color: #1d3f77;
  border: 1px solid #bfd1ff;
}
.cc-project-meta-row {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e4ebf5;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
}
.cc-project-meta-title {
  margin: 0 0 3px;
  font-size: 0.74rem;
  color: #7b8ca5;
}
.cc-project-meta-value {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1;
  color: #1f2c40;
}
.cc-project-users {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.cc-project-user {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #edf4ff;
  color: #2d4f86;
  border: 1px solid #c7d7f7;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cc-project-media-row {
  border-top: 1px solid #e4ebf5;
  padding: 10px 12px 12px;
}
.cc-project-empty {
  margin: 0;
  color: #7b8ca5;
  font-size: 0.86rem;
}
.cc-project-preview-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.cc-project-preview-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* Jobsite manager desktop shell */
.js-mgr-body {
  background: #eef2f7;
}
.js-mgr-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
}
.js-mgr-sidebar {
  background: #3f295c;
  color: #ffffff;
  padding: 16px 12px;
  border-right: 1px solid #2f1f45;
}
.js-mgr-sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.js-mgr-brand {
  margin: 0;
  font-size: 1rem;
  color: #fff;
}
.js-mgr-nav-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  border: 1px solid #6d4c96;
  background: #5a3c82;
  color: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.82rem;
  cursor: pointer;
}
.js-mgr-nav-toggle:hover {
  background: #6d4c96;
}
.js-mgr-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.js-mgr-link {
  color: #ffffff;
  text-decoration: none;
  border-radius: 0;
  padding: 8px 10px;
  font-size: 0.86rem;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.js-mgr-link.is-active {
  background: #5a3c82;
  color: #fff;
}
.js-mgr-search {
  border: 1px solid #6d4c96;
  border-radius: 0;
  padding: 7px 10px;
  font-size: 0.82rem;
  color: #ffffff;
  margin-bottom: 12px;
}
.js-mgr-label {
  color: #cdb8e7;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 8px 10px 2px;
}
.js-mgr-main {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.js-mgr-panel {
  background: #fff;
  border: 1px solid #d5dfed;
  border-radius: 0;
  padding: 10px;
}
.js-mgr-head h2 {
  margin: 0 0 4px;
  color: #1f2c40;
}
.js-mgr-head p {
  margin: 0;
  color: #607089;
  font-size: 0.9rem;
}
.js-mgr-kpis {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.js-mgr-kpis--company {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
a.js-mgr-kpi {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
a.js-mgr-kpi:hover {
  border-color: #9eb6d8;
  box-shadow: 0 1px 0 rgba(31, 44, 64, 0.06);
}
.js-mgr-kpi {
  border: 1px solid #dbe4f3;
  background: #f8fbff;
  border-radius: 10px;
  padding: 10px;
}
.js-mgr-inline-link {
  color: #2f6fed;
  font-size: 0.86rem;
  text-decoration: none;
  white-space: nowrap;
}
.js-mgr-inline-link:hover {
  text-decoration: underline;
}
.js-mgr-attention {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}
.js-mgr-attention--below {
  margin-top: 0;
}
.js-mgr-attention-count {
  margin: 4px 0 10px;
  font-size: 0.82rem;
}
.js-mgr-attention-col h3 {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: #1f2c40;
  display: flex;
  align-items: center;
  gap: 8px;
}
.js-mgr-attention-col h3 span {
  display: inline-flex;
  min-width: 1.4rem;
  justify-content: center;
  padding: 1px 6px;
  border-radius: 999px;
  background: #eef3fa;
  color: #3d4f66;
  font-size: 0.78rem;
}
.js-mgr-attention-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.js-mgr-attention-list a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  padding: 8px 10px;
  border: 1px solid #e4ebf5;
  border-radius: 8px;
  text-decoration: none;
  color: #1f2c40;
  background: #fff;
}
.js-mgr-attention-list a:hover {
  border-color: #9eb6d8;
}
.js-mgr-attention-list strong {
  margin-right: 2px;
}
.js-mgr-attention-list span {
  color: #4a5b73;
  font-size: 0.88rem;
}
.js-mgr-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.js-mgr-approval-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.js-mgr-approval-tile {
  position: relative;
  display: block;
  aspect-ratio: 1;
  width: 75%;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e4ebf5;
  background: #eef3fa;
  text-decoration: none;
  color: #fff;
}
.js-mgr-approval-tile:hover {
  border-color: #9eb6d8;
}
.js-mgr-approval-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.js-mgr-approval-tile__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #8a97ab;
  font-size: 1.25rem;
}
.js-mgr-approval-tile__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 7px;
  font-size: 0.7rem;
  line-height: 1.2;
  background: linear-gradient(transparent, rgba(20, 28, 40, 0.78));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.js-mgr-showcase-strip {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.js-mgr-showcase-strip--stack {
  margin-top: 8px;
  grid-template-columns: 1fr;
}
.js-mgr-showcase-strip--compact {
  margin-top: 8px;
  grid-template-columns: 1fr;
}
.js-mgr-showcase-chip {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid #e4ebf5;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: #fff;
}
.js-mgr-showcase-chip:hover {
  border-color: #9eb6d8;
}
.js-mgr-showcase-chip img,
.js-mgr-showcase-chip__empty {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
  background: #eef3fa;
}
.js-mgr-showcase-chip__empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8a97ab;
}
.js-mgr-showcase-chip strong {
  display: block;
  font-size: 0.9rem;
  color: #1f2c40;
}
.js-mgr-showcase-chip span {
  display: block;
  margin-top: 2px;
  color: #607089;
  font-size: 0.78rem;
}
.js-mgr-kpi span {
  display: block;
  color: #607089;
  font-size: 0.78rem;
}
.js-mgr-kpi strong {
  display: block;
  margin-top: 4px;
  color: #1f2c40;
  font-size: 1.45rem;
  line-height: 1;
}
.js-mgr-kpi.is-warn {
  background: #fffaf0;
  border-color: #efd38d;
}
.js-mgr-table-wrap {
  overflow-x: auto;
}
.js-mgr-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.js-mgr-feed-head h2 {
  margin: 0;
  color: #1f2c40;
}
.js-mgr-feed-tabs {
  display: inline-flex;
  gap: 14px;
  border-bottom: 1px solid #d9e2ee;
}
.js-mgr-feed-tabs a {
  border: 0;
  background: transparent;
  color: #7b8ca5;
  font-size: 0.86rem;
  padding: 8px 0;
  text-decoration: none;
}
.js-mgr-feed-tabs a.is-active {
  color: #1f2c40;
  font-weight: 700;
  border-bottom: 2px solid #314661;
}
.js-mgr-feed-tools {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}
.js-mgr-find-input {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ccd8e9;
  border-radius: 0;
  padding: 0 10px;
  color: #8394ac;
}
.js-mgr-find-input input {
  border: 0;
  outline: 0;
  width: 100%;
  height: 38px;
  background: transparent;
}
.js-mgr-feed-filters {
  margin-top: 10px;
  background: #e7edf4;
  border-radius: 0;
  display: inline-flex;
  gap: 6px;
  padding: 4px;
}
.js-mgr-feed-filters a {
  border: 0;
  background: transparent;
  color: #34455d;
  border-radius: 0;
  padding: 6px 12px;
  font-size: 0.76rem;
  text-decoration: none;
}
.js-mgr-feed-filters a.is-active {
  background: #fff;
}
.js-mgr-project-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.js-mgr-project-card {
  border: 1px solid #d9e1ee;
  background: #fff;
  border-radius: 0;
  text-decoration: none;
  color: inherit;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 220px minmax(0, 1fr);
  align-items: stretch;
}
.js-mgr-project-col {
  min-width: 0;
  padding: 8px 10px;
}
.js-mgr-project-col + .js-mgr-project-col {
  border-left: 1px solid #e4ebf5;
}
.js-mgr-project-title-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
}
.js-mgr-project-featured {
  width: 60px;
  height: 60px;
  border-radius: 0;
  object-fit: cover;
}
.js-mgr-project-title-row h3 {
  margin: 0;
  font-size: 0.95rem;
  color: #1f2c40;
}
.js-mgr-project-title-row p {
  margin: 2px 0 0;
  color: #607089;
  font-size: 0.78rem;
}
.js-mgr-project-updated {
  color: #8394ac !important;
}
.js-mgr-project-col--summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.js-mgr-project-col--summary .cc-project-label {
  margin-top: 0;
  align-self: flex-start;
}
.js-mgr-project-meta {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  display: grid;
  gap: 6px;
}
.js-mgr-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  border: 1px solid #d6e0ee;
  padding: 2px 6px;
  background: #f8fbff;
}
.js-mgr-badge small {
  color: #7b8ca5;
  font-size: 0.66rem;
}
.js-mgr-badge strong {
  display: inline-block;
  font-size: 0.92rem;
  color: #1f2c40;
}
.js-mgr-project-col--photos {
  display: flex;
  justify-content: center;
  align-items: center;
}
.js-mgr-project-col--photos p {
  margin: 0;
  color: #7b8ca5;
  font-size: 0.76rem;
  line-height: 1.3;
}
.js-mgr-project-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
}
.js-mgr-project-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0;
  object-fit: cover;
}
.js-mgr-group-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.js-mgr-group-card {
  border: 1px solid #d8e2ef;
  border-radius: 0;
  background: #fff;
  text-decoration: none;
  color: inherit;
  padding: 12px;
}
.js-mgr-group-card h3 {
  margin: 0;
  color: #1f2c40;
  font-size: 0.98rem;
}
.js-mgr-group-card p {
  margin: 6px 0;
  color: #607089;
  font-size: 0.83rem;
}
.js-mgr-group-card strong {
  color: #124fab;
  font-size: 0.84rem;
}
.js-mgr-map-canvas {
  width: 100%;
  min-height: 380px;
  border: 1px solid #d9e1ee;
  background: #e9eef6;
}
.js-mgr-map-home {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #cfe0f5;
  border-radius: 10px;
  background: #f4f8ff;
}
.js-mgr-map-home__fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: flex-end;
}
.js-mgr-map-home__fields label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--js-muted);
  min-width: 7.5rem;
}
.js-mgr-map-home__fields input {
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid #c9d6e8;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  color: var(--js-text);
}
.js-mgr-map-home__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.js-mgr-filmstrip--map {
  max-width: 100%;
  margin-top: 8px;
}
.js-mgr-map-frame.is-selected,
.js-mgr-map-job-row.is-selected {
  outline: 2px solid var(--js-primary);
  outline-offset: 1px;
}
.js-mgr-map-selected {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #d8e2ef;
  border-radius: 10px;
  background: #f9fbff;
}
.js-mgr-map-selected__head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-start;
}
.js-mgr-map-share {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.js-mgr-filmstrip--map-detail {
  max-width: 100%;
}
.js-list li.is-outside-home {
  opacity: 0.55;
}
.js-mgr-map-canvas.is-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}
.js-mgr-map-fallback-note {
  color: #4b5b70;
  font-size: 0.9rem;
  padding: 10px;
  text-align: center;
}
.js-showcase-edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.9fr);
  gap: 16px;
}
.js-showcase-preview {
  border: 1px solid #d8e2ef;
  background: #f9fbff;
  padding: 10px;
}
.js-showcase-before-after {
  border: 1px solid #d8e2ef;
  background: #ffffff;
  min-height: 220px;
}
.js-showcase-before-after img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.js-showcase-before-after img + img {
  border-top: 1px solid #d8e2ef;
}
.js-showcase-before-after .is-empty {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7b8ca5;
  font-size: 0.8rem;
}
.js-inline-link {
  color: #124fab;
  text-decoration: none;
}
.js-inline-link:hover {
  text-decoration: underline;
}
.js-mgr-photo-filters {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(130px, 1fr)) auto;
  gap: 8px;
}
.js-mgr-photo-filters select {
  border: 1px solid #ccd8e9;
  border-radius: 0;
  background: #fff;
  padding: 0 10px;
  height: 38px;
}
.js-mgr-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.js-mgr-photo-card {
  border: 1px solid #d8e2ef;
  background: #fff;
}
.js-mgr-photo-thumb-wrap {
  display: block;
  background: #f0f5fd;
  min-height: 160px;
}
.js-mgr-photo-thumb {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.js-mgr-photo-empty {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8394ac;
  font-size: 0.8rem;
}
.js-mgr-photo-meta {
  padding: 8px;
}
.js-mgr-photo-meta p {
  margin: 0 0 5px;
  font-size: 0.78rem;
}

/* Photo manager — searchable job film strips */
.js-mgr-photo-table-wrap {
  overflow-x: auto;
  border: 1px solid #d8e2ef;
  background: #fff;
}
.js-mgr-photo-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.js-mgr-photo-table th,
.js-mgr-photo-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e6edf7;
  text-align: left;
  vertical-align: top;
  font-size: 0.86rem;
}
.js-mgr-photo-table th {
  background: #f5f8fd;
  color: #3d4f6a;
  font-weight: 700;
  white-space: nowrap;
}
.js-mgr-photo-job-cell {
  min-width: 8rem;
}
.js-mgr-photo-job-link {
  display: inline-block;
  font-weight: 800;
  color: var(--js-primary);
  text-decoration: none;
}
.js-mgr-photo-job-link:hover {
  text-decoration: underline;
}
.js-mgr-photo-job-name {
  display: block;
  margin-top: 3px;
  font-size: 0.76rem;
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.js-mgr-filmstrip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  max-width: min(70vw, 920px);
  scroll-snap-type: x proximity;
}
.js-mgr-film-frame {
  flex: 0 0 auto;
  width: 132px;
  padding: 0;
  border: 1px solid #d4deed;
  background: #fff;
  cursor: pointer;
  text-align: left;
  scroll-snap-align: start;
}
.js-mgr-film-frame:hover,
.js-mgr-film-frame:focus-visible {
  border-color: var(--js-primary);
  outline: 2px solid color-mix(in srgb, var(--js-primary) 28%, transparent);
  outline-offset: 1px;
}
.js-mgr-film-media {
  display: block;
  background: #edf2fa;
  height: 88px;
  overflow: hidden;
}
.js-mgr-film-thumb {
  display: block;
  width: 100%;
  height: 88px;
  object-fit: cover;
}
.js-mgr-film-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 88px;
  color: #8394ac;
  font-size: 0.72rem;
}
.js-mgr-film-footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 5px 6px 6px;
  background: #f8fafc;
  border-top: 1px solid #e6edf7;
}
.js-mgr-film-footer-line {
  font-size: 0.68rem;
  color: #4a5b73;
  line-height: 1.2;
}
.js-mgr-film-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 2px;
}
.js-mgr-film-badges .js-mgr-vis-badge {
  margin-top: 0;
}
.js-mgr-vis-badge {
  display: inline-block;
  margin-top: 2px;
  padding: 2px 8px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.35;
  width: fit-content;
  border-radius: 999px;
}
.js-mgr-vis-badge--private {
  background: #e8ebf0;
  color: #5b6678;
}
.js-mgr-vis-badge--customer {
  background: var(--js-primary-soft);
  color: var(--js-primary);
}
.js-mgr-vis-badge--showcase {
  background: #eaf2ff;
  color: #124fab;
  text-decoration: none;
}
a.js-mgr-vis-badge--showcase:hover {
  background: #dceaff;
  color: #0d3f8a;
}
.js-mgr-photo-modal {
  padding: 0;
  border: 0;
  max-width: min(920px, 96vw);
  width: 100%;
  background: transparent;
}
.js-mgr-photo-modal::backdrop {
  background: rgba(12, 24, 44, 0.55);
}
.js-mgr-photo-modal-inner {
  position: relative;
  background: #fff;
  border: 1px solid #d8e2ef;
  box-shadow: 0 18px 48px rgba(15, 47, 102, 0.22);
}
.js-mgr-photo-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  width: 34px;
  height: 34px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #334155;
}
.js-mgr-photo-modal-media {
  background: #0f172a;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.js-mgr-photo-modal-media img {
  display: block;
  max-width: 100%;
  max-height: min(62vh, 560px);
  object-fit: contain;
}
.js-mgr-photo-modal-body {
  padding: 14px 16px 16px;
}
.js-mgr-photo-modal-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
}
.js-mgr-photo-modal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0;
  line-height: 1.45;
}
.js-mgr-photo-modal-sep {
  color: #94a3b8;
  user-select: none;
}
.js-mgr-photo-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.js-mgr-photo-modal-actions .is-disabled {
  pointer-events: none;
  opacity: 0.45;
}
.js-mgr-photo-edit-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.2fr);
  gap: 18px;
  align-items: start;
}
.js-mgr-photo-edit-img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #0f172a;
  border: 1px solid #d8e2ef;
}
.js-mgr-photo-edit-empty {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #edf2fa;
  color: #8394ac;
  border: 1px solid #d8e2ef;
}
@media (max-width: 900px) {
  .js-mgr-photo-edit-grid {
    grid-template-columns: 1fr;
  }
}

/* Photo annotate overlay (Fabric.js JobsitePhotoAnnotate) */
body.js-pa-open {
  overflow: hidden;
}
.js-pa-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(12, 24, 44, 0.72);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 12px;
}
.js-pa-overlay[hidden] {
  display: none !important;
}
.js-pa-shell {
  width: min(1100px, 100%);
  max-height: 100%;
  overflow: auto;
  background: #1a1d23;
  color: #e8eaed;
  border: 1px solid #3d4354;
  display: flex;
  flex-direction: column;
}
.js-pa-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #252830;
  border-bottom: 1px solid #3d4354;
}
.js-pa-bar .js-muted {
  color: #9aa0a6;
  font-size: 0.78rem;
}
.js-pa-bar-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.js-pa-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 8px 12px;
  background: #252830;
  border-bottom: 1px solid #3d4354;
}
.js-pa-tool {
  border: 1px solid #3d4354;
  background: #2c313c;
  color: #e8eaed;
  padding: 7px 10px;
  font-size: 0.8rem;
  cursor: pointer;
}
.js-pa-tool.is-active,
.js-pa-tool:hover {
  border-color: #4d9fff;
  background: rgba(77, 159, 255, 0.18);
}
.js-pa-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: #9aa0a6;
}
.js-pa-nofill {
  user-select: none;
}
.js-pa-nofill input[type="checkbox"] {
  margin: 0;
}
.js-pa-inline input[type="color"] {
  width: 34px;
  height: 26px;
  border: 1px solid #3d4354;
  background: transparent;
  padding: 0;
}
.js-pa-inline input[type="range"] {
  width: 80px;
}
.js-pa-canvas-wrap {
  margin: 12px;
  background: #111;
  border: 1px solid #3d4354;
  line-height: 0;
  overflow: auto;
  display: flex;
  justify-content: center;
}
.js-pa-canvas-wrap canvas {
  display: block;
  max-width: 100%;
  height: auto;
}
.js-pa-hint {
  margin: 0 16px 8px;
  font-size: 0.75rem;
  color: #9aa0a6;
}
@media (max-width: 980px) {
  .js-mgr-shell {
    grid-template-columns: 1fr;
  }
  .js-mgr-sidebar {
    border-right: 0;
    border-bottom: 1px solid #203650;
  }
  .js-mgr-nav-toggle {
    display: inline-flex;
  }
  .js-mgr-body:not(.js-mgr-nav-open) .js-mgr-nav {
    display: none;
  }
  .js-mgr-body.js-mgr-nav-open .js-mgr-nav {
    display: flex;
    margin-top: 4px;
  }
  .js-mgr-kpis,
  .js-mgr-kpis--company {
    grid-template-columns: 1fr 1fr;
  }
  .js-mgr-attention,
  .js-mgr-split,
  .js-mgr-showcase-strip {
    grid-template-columns: 1fr;
  }
  .js-mgr-approval-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .js-mgr-job-headcard {
    flex-direction: column;
  }
  .js-mgr-job-headcard__actions {
    justify-content: flex-start;
  }
  .js-mgr-job-preview-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .js-mgr-project-card {
    grid-template-columns: 1fr;
  }
  .js-mgr-project-col + .js-mgr-project-col {
    border-left: 0;
    border-top: 1px solid #e4ebf5;
  }
  .js-mgr-group-list {
    grid-template-columns: 1fr;
  }
  .js-showcase-edit-grid {
    grid-template-columns: 1fr;
  }
}

/* Field today — calendar-style crew dots */
.js-mgr-field-job {
  border-top: 1px solid #e2e8f0;
  padding: 14px 0;
}
.js-mgr-field-job__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.js-mgr-field-job__main {
  min-width: 0;
  flex: 1;
}
.js-mgr-field-job__title {
  margin: 0;
  font-size: 1.05rem;
}
.js-mgr-field-job__meta {
  margin: 4px 0 0;
  font-size: 0.88rem;
}
.js-mgr-field-job__addr {
  margin: 6px 0 0;
  font-size: 0.9rem;
}
.js-mgr-field-job__onsite {
  margin: 8px 0 0;
  font-size: 0.88rem;
}
.js-mgr-field-job__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.js-mgr-field-dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}
.js-mgr-field-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6b7280;
  border: 1px solid #4b5563;
  flex: 0 0 auto;
}
.js-mgr-field-dot.is-on-site {
  background: #22c55e;
  border-color: #16a34a;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35);
}
.js-mgr-field-dots__label {
  font-size: 0.85rem;
  color: #607089;
  margin-left: 2px;
}

/* Keep HQ mega-nav collapse working on manager pages (Bootstrap 4) */
body.js-mgr-body .crm-mega-nav-wrap .navbar-collapse.collapse:not(.show) {
  display: none !important;
}
body.js-mgr-body .crm-mega-nav-wrap .navbar-collapse.collapse.show {
  display: block !important;
}
@media (min-width: 992px) {
  body.js-mgr-body .crm-mega-nav-wrap .navbar-expand-md .navbar-collapse {
    display: flex !important;
  }
}

@media (max-width: 980px) {
  .js-mgr-photo-filters {
    grid-template-columns: 1fr;
  }
  .js-mgr-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .js-mgr-filmstrip {
    max-width: 70vw;
  }
}

/* —— Manager job summary (full-screen, Jobsite only) —— */
.js-mgr-job-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.js-mgr-job-back a {
  color: #2d3e60;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.js-mgr-job-back a:hover { color: var(--js-primary); }
.js-mgr-job-headcard {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  background: #fff;
  border: 1px solid #d8e2ef;
  border-radius: 14px;
  padding: 18px 20px;
}
.js-mgr-job-headcard__main {
  min-width: 0;
  flex: 1 1 auto;
}
.js-mgr-job-headcard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  flex: 0 0 auto;
}
.js-mgr-job-kicker {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--js-muted);
}
.js-mgr-job-name {
  margin: 0 0 6px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--js-text);
  line-height: 1.2;
}
.js-mgr-job-addr {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--js-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.js-mgr-job-addr i {
  margin-top: 3px;
  color: #8a97ab;
}
.js-mgr-job-status-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.js-mgr-job-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e4ebf5;
  background: #f7faff;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--js-text);
}
.js-mgr-job-chip--ok {
  background: #eefaf4;
  border-color: #c7ead8;
}
.js-mgr-job-chip--warn {
  background: #fff5f5;
  border-color: #f0c7c7;
}
.js-mgr-job-chip--muted {
  background: #f4f6fa;
  border-color: #e4ebf5;
  color: #5b6b82;
}
.js-mgr-job-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
  background: #9aa8bc;
}
.js-mgr-job-dot--ok { background: var(--js-green); }
.js-mgr-job-dot--warn { background: #e25555; }
.js-mgr-job-dot--muted { background: #c5cedb; }
.js-mgr-job-preview {
  margin: 0;
}
.js-mgr-job-customer-strip {
  margin: 0;
}
.js-mgr-job-count {
  display: inline-flex;
  min-width: 1.4rem;
  justify-content: center;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #eef3fa;
  color: #3d4f66;
  font-size: 0.78rem;
  font-weight: 700;
  vertical-align: middle;
}
.js-mgr-job-strip-note {
  margin: 4px 0 10px;
  font-size: 0.8rem;
}
.js-mgr-filmstrip--job {
  max-width: 100%;
  gap: 6px;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.js-mgr-filmstrip--job .js-mgr-film-frame {
  width: 104px;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.js-mgr-filmstrip--job .js-mgr-film-media,
.js-mgr-filmstrip--job .js-mgr-film-thumb,
.js-mgr-filmstrip--job .js-mgr-film-empty {
  height: 72px;
}
.js-mgr-film-frame--link:hover,
.js-mgr-film-frame--link:focus-visible {
  border-color: var(--js-primary);
}
.js-mgr-job-preview-strip {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.js-mgr-job-preview-tile {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e4ebf5;
  background: #eef3fa;
}
.js-mgr-job-preview-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.js-mgr-job-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.js-mgr-job-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #d8e2ef;
  background: #fff;
  color: #2d3e60;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
}
.js-mgr-job-tab.is-active {
  background: var(--js-primary-soft);
  border-color: #b8d3ff;
  color: #124fab;
}
.js-mgr-job-tab:hover {
  border-color: #b8d3ff;
}
.js-mgr-job-panel {
  background: #fff;
  border: 1px solid #d8e2ef;
  border-radius: 14px;
  padding: 18px;
  min-height: 200px;
}
.js-mgr-tab-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.js-mgr-tab-head h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--js-text);
}
.js-mgr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.js-mgr-table th,
.js-mgr-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #e4ebf5;
  vertical-align: top;
}
.js-mgr-table--compact th,
.js-mgr-table--compact td {
  padding: 6px 8px;
  vertical-align: middle;
  font-size: 0.84rem;
}
.js-mgr-table--compact th {
  white-space: nowrap;
}
.js-mgr-map-share--compact .js-btn {
  padding: 4px 8px;
  font-size: 0.74rem;
}
.js-mgr-pager .is-disabled {
  pointer-events: none;
  opacity: 0.45;
}
.js-mgr-table tr.js-mgr-map-job-row {
  cursor: pointer;
}
.js-mgr-table tr.js-mgr-map-job-row:hover {
  background: #f4f8ff;
}
.js-mgr-table tr.js-mgr-map-job-row.is-selected {
  background: #eaf2ff;
}
.js-mgr-table th {
  color: var(--js-muted);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.js-mgr-chip {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #edf2f8;
  color: #2d3e60;
}
.js-mgr-chip--in {
  background: #d9f7e8;
  color: #0b7a4b;
}
.js-mgr-chip--out {
  background: #fff1e0;
  color: #9a5b12;
}
.js-mgr-job-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.js-mgr-job-photo-card {
  border: 1px solid #d8e2ef;
  border-radius: 12px;
  overflow: hidden;
  background: #fafcff;
  text-decoration: none;
  color: inherit;
  display: block;
}
a.js-mgr-job-photo-card:hover {
  border-color: #9eb6d8;
}
.js-mgr-job-photo-thumb-wrap {
  display: block;
  aspect-ratio: 4 / 3;
  background: #e8eef6;
}
.js-mgr-job-photo-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.js-mgr-job-photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #7b8ca5;
  font-size: 0.8rem;
}
.js-mgr-job-photo-meta {
  padding: 10px;
}
.js-mgr-job-photo-meta p {
  margin: 0 0 4px;
  font-size: 0.8rem;
  color: var(--js-text);
}
.js-mgr-job-photo-meta p:last-child {
  margin-bottom: 0;
}
.js-mgr-job-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.js-mgr-job-photo-actions .js-btn {
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  min-height: 0;
}
.js-mgr-ba-thumbs {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.js-mgr-ba-thumbs img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border: 1px solid #d8e2ef;
  border-radius: 4px;
}
.js-mgr-ba-missing {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px dashed #c5cedb;
  border-radius: 4px;
  color: #7b8ca5;
  font-size: 0.72rem;
  font-weight: 700;
}
.js-tags-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.js-tags-field .ts-wrapper {
  width: 100%;
}
.js-tags-field .ts-control {
  min-height: 40px;
  border: 1px solid #c9d6e8;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  padding: 4px 8px;
}
.js-tags-field .ts-wrapper.focus .ts-control {
  border-color: var(--js-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--js-primary) 18%, transparent);
}
.js-tags-field .ts-control .item {
  background: var(--js-primary-soft);
  color: var(--js-primary);
  border: 0;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.78rem;
  font-weight: 700;
}
.js-tags-field .ts-dropdown {
  border: 1px solid #c9d6e8;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 47, 102, 0.12);
}
.js-tags-field .ts-dropdown .active {
  background: var(--js-primary-soft);
  color: #1f3b66;
}
.js-showcase-drop-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.js-showcase-howto {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #cfe0f5;
  border-radius: 10px;
  background: #f4f8ff;
  color: #314560;
}
.js-showcase-howto__title {
  margin: 0 0 6px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #1f3b66;
}
.js-showcase-howto ul {
  margin: 0;
  padding-left: 1.15rem;
}
.js-showcase-howto li {
  margin: 0 0 4px;
  font-size: 0.82rem;
  line-height: 1.4;
}
.js-showcase-howto li:last-child {
  margin-bottom: 0;
}
.js-showcase-drop-title {
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--js-text);
}
.js-showcase-drop-zone {
  min-height: 140px;
  border: 2px dashed #9ec5e8;
  border-radius: 12px;
  background: #e8f4fc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.js-showcase-drop-zone.is-drag {
  border-color: #1666d9;
  background: #d7ecfb;
}
.js-showcase-drop-hint {
  color: #3d5a80;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 12px;
}
.js-showcase-drop-preview {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.js-showcase-drop-preview[hidden] {
  display: none !important;
}
.js-showcase-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}
.js-showcase-gallery-card {
  border: 1px solid #d8e2ef;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.js-showcase-gallery-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.js-showcase-gallery-actions {
  display: flex;
  gap: 4px;
  padding: 6px;
}
.js-showcase-gallery-actions .js-btn {
  flex: 1;
  padding: 6px 4px;
  font-size: 0.72rem;
}
@media (max-width: 900px) {
  .js-showcase-drop-row {
    grid-template-columns: 1fr;
  }
}

