/* [project]/app/globals.css [app-client] (css) */
:root {
  --primary: #d4ab36;
  --secondary: #1b3b36;
  --bg: #f5f5f5;
  --white: #fff;
  --dark: #333;
  --light-gray: #e5e7eb;
  --muted: #6b7280;
  --danger: #dc2626;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--dark);
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.topbar {
  background: var(--secondary);
  color: var(--white);
  width: 100%;
}

.topbar-inner {
  align-items: center;
  gap: 28px;
  max-width: 1200px;
  min-height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
}

.topbar .brand {
  color: var(--white);
  white-space: nowrap;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.topbar .nav {
  align-items: center;
  gap: 24px;
  display: flex;
}

.topbar .nav a {
  color: #ffffffc7;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.topbar .nav a:hover {
  color: var(--white);
}

.site-menu {
  display: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.landing-bar {
  background: var(--secondary);
  justify-content: space-between;
  align-items: center;
  padding: 14px 32px;
  display: flex;
}

.logo-text {
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
}

.logo-text span {
  color: var(--primary);
}

.landing-body {
  max-width: 960px;
  margin: 60px auto;
  padding: 0 24px;
}

.role-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
  display: grid;
}

.role-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  text-align: center;
  border-radius: 14px;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px 24px;
  transition: box-shadow .15s, transform .15s;
  display: flex;
}

.role-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px #00000017;
}

.role-card .role-icon {
  margin-bottom: 14px;
  font-size: 42px;
}

.role-card h2 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
}

.role-card p {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 13px;
}

.role-card > a {
  margin-top: auto;
}

.auth-shell {
  background: var(--secondary);
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 24px;
  display: flex;
}

.auth-card {
  background: var(--white);
  border-radius: 18px;
  width: 100%;
  max-width: 440px;
  padding: 44px 40px;
  box-shadow: 0 20px 60px #00000040;
}

.auth-logo {
  color: var(--secondary);
  margin-bottom: 28px;
  font-size: 26px;
  font-weight: 800;
}

.auth-logo span {
  color: var(--primary);
}

.auth-heading {
  margin-bottom: 6px;
  font-size: 22px;
  font-weight: 700;
}

.auth-sub {
  color: var(--muted);
  margin-bottom: 26px;
  font-size: 14px;
}

.role-pill {
  color: #15803d;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
}

.auth-divider {
  color: #9ca3af;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  font-size: 13px;
  display: flex;
}

.auth-divider:before, .auth-divider:after {
  content: "";
  background: var(--light-gray);
  flex: 1;
  height: 1px;
}

.auth-footer {
  text-align: center;
  color: var(--muted);
  margin-top: 20px;
  font-size: 14px;
}

.auth-footer a {
  color: var(--primary);
  font-weight: 600;
}

.portal {
  min-height: 100vh;
  display: flex;
}

.portal-sidebar {
  background: var(--secondary);
  flex-direction: column;
  flex-shrink: 0;
  width: 230px;
  display: flex;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
}

.sidebar-logo {
  color: var(--white);
  border-bottom: 1px solid #ffffff14;
  padding: 24px 20px 20px;
  font-size: 20px;
  font-weight: 800;
}

.sidebar-logo span {
  color: var(--primary);
}

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
}

.sidebar-nav a {
  color: #ffffff9e;
  border-left: 3px solid #0000;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all .14s;
  display: flex;
}

.sidebar-nav a:hover {
  color: var(--white);
  background: #ffffff0f;
  text-decoration: none;
}

.sidebar-nav a.active {
  color: var(--primary);
  border-left-color: var(--primary);
  background: #d4ab361a;
}

.sidebar-footer {
  border-top: 1px solid #ffffff14;
  padding: 16px 20px;
}

.sidebar-user-name {
  color: #ffffffbf;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 600;
}

.sidebar-user-id {
  color: #ffffff61;
  margin-bottom: 14px;
  font-size: 11px;
}

.portal-main {
  flex: 1;
  margin-left: 230px;
  padding: 32px 36px;
}

.page-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
  display: flex;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
}

.page-subtitle {
  color: var(--muted);
  margin-top: 2px;
  font-size: 14px;
}

.card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  margin-bottom: 14px;
  padding: 20px;
}

.card-grid {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
  display: grid;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  text-align: center;
  cursor: pointer;
  color: inherit;
  border-radius: 14px;
  padding: 28px 24px;
  text-decoration: none;
  transition: box-shadow .15s, transform .15s;
  display: block;
}

.stat-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 18px #00000014;
}

.stat-icon {
  margin-bottom: 10px;
  font-size: 34px;
}

.stat-value {
  color: var(--primary);
  font-size: 30px;
  font-weight: 800;
}

.stat-label {
  color: var(--dark);
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
}

button, .btn {
  background: var(--primary);
  color: var(--dark);
  cursor: pointer;
  white-space: nowrap;
  border: none;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  transition: opacity .15s;
  display: inline-flex;
}

button:hover {
  opacity: .85;
}

button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--secondary) !important;
  color: var(--white) !important;
}

.btn-outline {
  color: var(--dark) !important;
  border: 1px solid var(--light-gray) !important;
  background: none !important;
}

.btn-outline:hover {
  opacity: 1;
  background: var(--bg) !important;
}

.btn-danger {
  background: var(--danger) !important;
  color: var(--white) !important;
}

.btn-sm {
  border-radius: 6px !important;
  padding: 6px 12px !important;
  font-size: 12px !important;
}

.btn-lg {
  padding: 12px 28px !important;
  font-size: 15px !important;
}

.btn-block {
  width: 100%;
}

.form-group {
  margin-bottom: 18px;
}

.form-row {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  display: grid;
}

.form-actions {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
  display: flex;
}

label {
  color: var(--dark);
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  display: block;
}

input, textarea, select {
  border: 1px solid var(--light-gray);
  width: 100%;
  color: var(--dark);
  background: var(--white);
  border-radius: 8px;
  padding: 10px 13px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px #d4ab361f;
}

input.invalid, textarea.invalid {
  border-color: var(--danger);
}

input.no-spinner::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input.no-spinner::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input.no-spinner {
  -moz-appearance: textfield;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

.field-error {
  color: var(--danger);
  margin-top: 4px;
  font-size: 12px;
  display: block;
}

.field-hint {
  color: var(--muted);
  margin-top: 4px;
  font-size: 12px;
  display: block;
}

.error-banner {
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 8px 12px;
  font-size: 14px;
  display: flex;
}

.error-banner span {
  flex: 1;
}

.error-banner button {
  color: inherit;
  cursor: pointer;
  background: none;
  border: none;
  flex: none;
  padding: 0 4px;
  font-size: 16px;
  line-height: 1;
}

.address-lookup {
  margin-bottom: 10px;
  position: relative;
}

.address-suggestions {
  z-index: 20;
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  max-height: 220px;
  list-style: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  overflow-y: auto;
  box-shadow: 0 4px 18px #00000014;
}

.address-suggestions li {
  cursor: pointer;
  padding: 9px 13px;
  font-size: 14px;
}

.address-suggestions li:hover, .address-suggestions li.active {
  background: var(--bg);
}

.location-map-field {
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  width: 100%;
  height: 320px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

.location-map-fill {
  border-radius: 12px;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.location-map-pin {
  filter: drop-shadow(0 2px 2px #00000059);
  line-height: 1;
  display: inline-block;
}

.location-map-pin svg {
  display: block;
}

.map-overlay-backdrop {
  z-index: 1000;
  background: #0000008c;
  justify-content: center;
  align-items: center;
  padding: 24px;
  display: flex;
  position: fixed;
  inset: 0;
}

.map-overlay-panel {
  background: var(--white);
  border-radius: 14px;
  flex-direction: column;
  gap: 12px;
  width: min(90vw, 720px);
  max-height: 90vh;
  padding: 20px;
  display: flex;
}

.map-overlay-frame {
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  width: 100%;
  height: min(60vh, 480px);
  position: relative;
  overflow: hidden;
}

.badge {
  text-transform: uppercase;
  letter-spacing: .3px;
  border-radius: 999px;
  align-items: center;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
}

.badge.draft, .badge-draft {
  color: #b91c1c;
  background: #fee2e2;
}

.badge.schedule, .badge-schedule {
  color: #1e40af;
  background: #dbeafe;
}

.badge.pending, .badge-pending {
  color: #92400e;
  background: #fef3c7;
}

.badge.live, .badge-live {
  color: #065f46;
  background: #d1fae5;
}

.badge.closed, .badge-closed {
  color: #374151;
  background: #e5e7eb;
}

.badge.submitted {
  color: #92400e;
  background: #fef3c7;
}

.badge.schedulePending {
  color: #5b21b6;
  background: #ede9fe;
}

.badge.scheduled {
  color: #1e40af;
  background: #dbeafe;
}

.badge.inspectionComplete {
  color: #78350f;
  background: #fde68a;
}

.badge.inspected {
  color: #3730a3;
  background: #e0e7ff;
}

.badge.published {
  color: #065f46;
  background: #d1fae5;
}

.badge.received, .badge-received {
  color: #15803d;
  background: #f0fdf4;
}

.badge.reviewed, .badge-reviewed {
  color: #1d4ed8;
  background: #eff6ff;
}

.badge.shortlisted, .badge-shortlisted {
  color: #7e22ce;
  background: #faf5ff;
}

.badge.star-contractor, .badge-star-contractor {
  color: #5b21b6;
  background: #ede9fe;
}

.badge.star-client, .badge-star-client {
  color: #92400e;
  background: #fef3c7;
}

.badge.accepted, .badge-accepted {
  color: #065f46;
  background: #d1fae5;
}

.badge.confirmed, .badge-confirmed {
  color: #0f766e;
  background: #ccfbf1;
}

.badge.declined, .badge-declined {
  color: #b91c1c;
  background: #fee2e2;
}

.badge.withdrawn, .badge-withdrawn {
  color: #4b5563;
  background: #f3f4f6;
}

.badge.cancelled, .badge-cancelled {
  color: #374151;
  background: #e5e7eb;
}

.badge.upcoming, .badge-upcoming {
  color: #1e40af;
  background: #dbeafe;
}

.chat-shell {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 14px;
  height: calc(100vh - 96px);
  display: flex;
  overflow: hidden;
}

.chat-list-panel {
  border-right: 1px solid var(--light-gray);
  flex-direction: column;
  flex-shrink: 0;
  width: 300px;
  display: flex;
}

.chat-panel-header {
  background: var(--secondary);
  color: var(--white);
  flex-shrink: 0;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
}

.chat-sort-bar {
  border-bottom: 1px solid var(--light-gray);
  flex-shrink: 0;
  gap: 6px;
  padding: 8px 10px;
  display: flex;
}

.chat-sort-bar button {
  flex: 1;
  padding: 5px 8px !important;
  font-size: 11px !important;
}

.chat-sort-bar button.active-sort {
  background: var(--secondary) !important;
  color: var(--white) !important;
}

.chat-list {
  flex: 1;
  overflow-y: auto;
}

.chat-item {
  cursor: pointer;
  color: inherit;
  border-bottom: 1px solid #f3f4f6;
  padding: 14px 16px;
  text-decoration: none;
  transition: background .1s;
  display: block;
}

.chat-item:hover {
  background: #f9fafb;
  text-decoration: none;
}

.chat-item.active {
  background: #f0fdf4;
}

.chat-item-title {
  color: var(--dark);
  font-size: 14px;
  font-weight: 600;
}

.chat-item-sub {
  color: var(--muted);
  margin-top: 2px;
  font-size: 12px;
}

.chat-item-preview {
  color: #9ca3af;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-top: 3px;
  font-size: 13px;
  overflow: hidden;
}

.chat-view {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  display: flex;
}

.chat-view-header {
  background: var(--secondary);
  color: var(--white);
  flex-shrink: 0;
  padding: 14px 20px;
}

.chat-view-title {
  font-size: 15px;
  font-weight: 700;
}

.chat-view-sub {
  opacity: .7;
  margin-top: 2px;
  font-size: 12px;
}

.chat-messages {
  background: #e5ddd5;
  flex-direction: column;
  flex: 1;
  gap: 6px;
  padding: 20px;
  display: flex;
  overflow-y: auto;
}

.chat-bubble {
  word-break: break-word;
  border-radius: 8px;
  max-width: 72%;
  padding: 8px 12px 4px;
  font-size: 14px;
  line-height: 1.45;
}

.chat-bubble.from-client {
  background: #d9fdd3;
  border-bottom-right-radius: 2px;
  align-self: flex-end;
}

.chat-bubble.from-agent {
  background: var(--white);
  border-bottom-left-radius: 2px;
  align-self: flex-start;
}

.bubble-time {
  color: #9ca3af;
  text-align: right;
  margin-top: 3px;
  font-size: 11px;
}

.chat-input-bar {
  border-top: 1px solid var(--light-gray);
  background: #f0f2f5;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  display: flex;
}

.chat-input-bar input {
  border-radius: 22px;
}

.chat-send-btn {
  flex-shrink: 0;
  height: 42px;
  border-radius: 50% !important;
  width: 42px !important;
  padding: 0 !important;
  font-size: 17px !important;
}

.chat-empty-state {
  color: var(--muted);
  background: #f5f5f5;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  display: flex;
}

.chat-empty-state .empty-icon {
  opacity: .35;
  font-size: 48px;
}

.modal-box {
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  padding: 32px;
}

.modal-title {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 700;
}

.modal-body {
  color: #4b5563;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.65;
}

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

.activity-item {
  border-bottom: 1px solid #f3f4f6;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  display: flex;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-dot {
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 5px;
}

.activity-text {
  font-size: 14px;
}

.activity-time {
  color: var(--muted);
  margin-top: 2px;
  font-size: 12px;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 48px 24px;
}

.empty-state .empty-icon {
  opacity: .45;
  margin-bottom: 12px;
  font-size: 40px;
}

.empty-state h3 {
  color: var(--dark);
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
}

.empty-state p {
  font-size: 14px;
}

.project-id {
  color: var(--muted);
  margin-top: 2px;
  font-family: monospace;
  font-size: 12px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.row {
  flex-wrap: wrap;
  gap: 10px;
  display: flex;
}

.row > * {
  flex: 1;
}

.message {
  border-radius: 8px;
  margin: 4px 0;
  padding: 7px 11px;
  font-size: 14px;
}

.message.agent {
  background: #ecfeff;
}

.message.client {
  background: #fef9c3;
}

.message.contractor {
  background: #ecfdf5;
}

.error {
  color: var(--danger);
  margin-top: 4px;
  font-size: 12px;
  display: block;
}

.hint {
  color: var(--muted);
  margin-top: 4px;
  font-size: 12px;
  display: block;
}

.site-menu {
  flex: none;
  margin-left: auto;
  position: relative;
}

.hamburger {
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  appearance: none;
  z-index: 1;
  background: #ffffff1f;
  border: none;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  position: relative;
}

.hamburger:hover {
  background: #ffffff2e;
}

.hamburger-icon, .hamburger-icon span {
  display: block;
}

.mobile-nav {
  z-index: 60;
  background: #0f766e;
  border-radius: 8px;
  min-width: min(260px, 100vw - 32px);
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  overflow: hidden;
  box-shadow: 0 4px 12px #0003;
}

.site-menu:focus-within .mobile-nav, .site-menu[data-open="true"] .mobile-nav {
  display: block;
}

.hamburger-icon {
  gap: 3px;
  width: 18px;
  display: grid;
}

.hamburger-icon span {
  background: currentColor;
  border-radius: 999px;
  height: 2px;
}

.mobile-nav-link {
  color: #d1fae5;
  border-bottom: 1px solid #ffffff1a;
  padding: 14px 20px;
  text-decoration: none;
  display: block;
}

.mobile-nav-link:hover {
  color: #fff;
  background: #ffffff1a;
}

.mobile-nav-link:last-child {
  background: #0003;
  border-top: 1px solid #ffffff4d;
}

@media (max-width: 768px) {
  .topbar {
    align-items: stretch;
  }

  .topbar-inner {
    gap: 12px;
    padding: 12px 16px;
  }

  .topbar .brand {
    font-size: 16px;
  }

  .topbar .nav {
    display: none;
  }

  .hamburger {
    flex-shrink: 0;
    min-height: 44px;
    display: inline-flex;
  }

  .mobile-nav {
    z-index: 90;
    width: min(320px, 100vw - 24px);
    top: calc(100% + 10px);
    left: auto;
    right: 0;
  }

  .container {
    max-width: 100%;
    padding: 16px;
  }
}

.profile-container {
  max-width: 100%;
}

.profile-shell {
  gap: 16px;
  display: grid;
}

.profile-hero-card {
  gap: 10px;
  display: grid;
}

.profile-tabs-shell {
  gap: 12px;
  display: grid;
}

.profile-tabs {
  z-index: 20;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: linear-gradient(#f5f6f8f5 0%, #f5f6f8db 100%);
  gap: 8px;
  margin: 0 -4px;
  padding: 10px 4px;
  display: flex;
  position: sticky;
  top: 60px;
  overflow-x: auto;
}

.profile-tab-picker {
  margin-bottom: 10px;
  display: none;
}

.profile-tab-picker select {
  margin-top: 0;
}

.tab-button {
  white-space: nowrap;
  color: #334155;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  flex: none;
  margin-top: 0;
  padding: 10px 14px;
  font-size: 13px;
}

.tab-button.active {
  color: #fff;
  background: #0f766e;
  border-color: #0f766e;
}

.profile-tab-panel {
  min-height: 320px;
}

.profile-hero {
  grid-template-columns: 1.7fr 1fr;
  gap: 12px;
  display: grid;
}

.profile-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  display: grid;
}

.profile-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  display: grid;
}

.summary-card {
  background: linear-gradient(#fff 0%, #f8fafc 100%);
  border: 1px solid #e4e7eb;
  border-radius: 12px;
  padding: 14px;
}

.summary-card strong {
  margin-top: 4px;
  font-size: 22px;
  display: block;
}

.section-grid {
  gap: 16px;
  display: grid;
}

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

.section-grid.columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.full-height-card {
  height: 100%;
}

.section-toolbar {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.section-note {
  margin: 8px 0 0;
}

.modal-overlay {
  z-index: 1000;
  background: #0f172a8c;
  justify-content: center;
  align-items: center;
  padding: 20px;
  display: flex;
  position: fixed;
  inset: 0;
}

.modal-panel {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  padding: 24px;
  overflow-y: auto;
}

.modal-header {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  display: flex;
}

.modal-close {
  cursor: pointer;
  color: #6b7280;
  background: none;
  border: none;
  flex: none;
  margin-top: 0;
  padding: 4px 8px;
  font-size: 18px;
  line-height: 1;
}

.modal-close:hover {
  color: #111827;
  background: #f1f5f9;
  border-radius: 6px;
}

.project-card {
  background: #fff;
  border: 1px solid #e4e7eb;
  border-radius: 14px;
  gap: 14px;
  padding: 16px;
  display: grid;
  box-shadow: 0 8px 24px #0f172a0a;
}

.project-card.compact {
  padding: 14px;
}

.portfolio-stack {
  gap: 14px;
  display: grid;
}

.project-media-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  display: grid;
}

.project-media-tile {
  background: #f8fafc;
  border: 1px solid #e4e7eb;
  border-radius: 12px;
  gap: 8px;
  padding: 10px;
  display: grid;
}

.project-media-thumb {
  color: #fff;
  letter-spacing: .08em;
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
  border-radius: 10px;
  place-items: center;
  height: 110px;
  font-weight: 700;
  display: grid;
}

.project-media-meta {
  gap: 2px;
  display: grid;
}

.project-media-meta strong {
  font-size: 14px;
}

.project-media-meta span {
  color: #6b7280;
  font-size: 12px;
}

.project-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.customer-preview-card {
  background: linear-gradient(#fff 0%, #f8fafc 100%);
  border: 1px solid #e4e7eb;
  border-radius: 12px;
  padding: 16px;
}

.customer-preview-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

.customer-badges {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  display: flex;
}

.customer-highlight-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  display: grid;
}

.pill-list {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.pill {
  color: #334155;
  background: #e2e8f0;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  margin-top: 0;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
}

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

.attachment-row {
  background: #f8fafc;
  border: 1px solid #e4e7eb;
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  display: flex;
}

.attachment-meta {
  flex-direction: column;
  gap: 2px;
  display: flex;
}

.attachment-meta strong {
  font-size: 14px;
}

.attachment-meta span {
  color: #6b7280;
  font-size: 12px;
}

.attachment-thumb {
  object-fit: cover;
  background: #e2e8f0;
  border-radius: 6px;
  flex: none;
  width: 40px;
  height: 40px;
}

.attachment-thumb-pdf {
  justify-content: center;
  align-items: center;
  font-size: 20px;
  display: flex;
}

.attachment-remove {
  color: #6b7280;
  cursor: pointer;
  background: none;
  border: none;
  flex: none;
  margin-top: 0;
  padding: 4px 6px;
  font-size: 14px;
}

.attachment-remove:hover {
  color: #991b1b;
  background: #e2e8f0;
  border-radius: 4px;
}

.activity-feed {
  gap: 10px;
  margin-bottom: 12px;
  display: grid;
}

.activity-row {
  color: inherit;
  background: #f8fafc;
  border: 1px solid #e4e7eb;
  border-radius: 8px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  font-family: inherit;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  display: flex;
}

.activity-row:hover {
  background: #f1f5f9;
}

.activity-row.has-new-bids {
  background: #fef3c7;
  border-color: #d4ab36;
}

.activity-row.has-new-bids:hover {
  background: #fde68a;
}

.activity-icon {
  flex: none;
  font-size: 20px;
}

.activity-body {
  flex: auto;
  min-width: 0;
}

.activity-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.activity-subtitle {
  margin: 2px 0 0;
}

.activity-time {
  flex: none;
  font-size: 12px;
}

.activity-bids {
  text-align: right;
  white-space: nowrap;
  flex: none;
  width: 92px;
  font-size: 12px;
}

.radius-control {
  align-items: center;
}

.radius-label {
  color: #334155;
  font-size: 14px;
}

.portfolio-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  display: grid;
}

.portfolio-item {
  background: #fff;
  border: 1px solid #e4e7eb;
  border-radius: 10px;
  padding: 12px;
}

.portfolio-item strong {
  margin-bottom: 6px;
  display: block;
}

.form-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  display: flex;
}

.service-checkbox {
  cursor: pointer;
  background: #f9fafb;
  border-radius: 6px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  transition: background .2s;
  display: flex;
}

.service-checkbox:hover {
  background: #e5e7eb;
}

.service-checkbox input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.required-section h2 {
  color: #0f766e;
}

.optional-section h2 {
  color: #374151;
}

@media (max-width: 600px) {
  .profile-hero, .profile-summary, .section-grid.columns-2, .section-grid.columns-3 {
    grid-template-columns: 1fr;
  }

  .profile-tabs {
    display: none;
    top: 56px;
  }

  .profile-tab-picker {
    display: block;
  }

  .profile-tab-picker select {
    border-radius: 12px;
    width: 100%;
    padding: 12px 14px;
  }

  .profile-summary-grid, .customer-highlight-list {
    grid-template-columns: 1fr;
  }

  .profile-container h1 {
    font-size: 22px;
  }

  .service-checkbox {
    flex-direction: column;
    align-items: flex-start;
  }
}

.contractor-shell {
  background: #f5f6f8;
  align-items: flex-start;
  min-height: 100vh;
  display: flex;
  position: relative;
}

.contractor-sidebar {
  z-index: 10;
  color: #bcd9cd;
  background: #123529;
  flex-direction: column;
  width: 190px;
  padding: 20px 0;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 10px 30px #00000040;
}

.contractor-sidebar.pinned {
  max-height: 100vh;
  box-shadow: none;
  flex: none;
  position: sticky;
  top: 0;
  overflow-y: auto;
}

.contractor-sidebar-brand-row {
  border-bottom: 1px solid #ffffff1f;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 20px 20px;
  display: flex;
}

.contractor-sidebar-brand {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  display: block;
}

.contractor-sidebar-brand:hover {
  text-decoration: none;
}

.contractor-sidebar-brand .accent {
  color: #eab308;
}

.contractor-sidebar-brand-pin {
  cursor: pointer;
  align-items: center;
  display: inline-flex;
}

.contractor-sidebar:not(.pinned) .contractor-nav {
  background: #123529;
  width: 190px;
  max-height: calc(100vh - 60px);
  padding-bottom: 10px;
  position: absolute;
  top: 100%;
  left: 0;
  overflow-y: auto;
  box-shadow: 0 10px 30px #0000004d;
}

.contractor-sidebar:not(.pinned) {
  padding-bottom: 4px;
}

.contractor-nav {
  flex-direction: column;
  flex: auto;
  gap: 4px;
  padding: 0 12px;
  display: flex;
}

.contractor-nav-link {
  color: #bcd9cd;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  position: relative;
}

.contractor-nav-link:hover {
  color: #fff;
  background: #ffffff14;
  text-decoration: none;
}

button.contractor-nav-link {
  text-align: left;
  box-sizing: border-box;
  cursor: pointer;
  background: none;
  border: none;
  justify-content: flex-start;
  width: 100%;
  margin: 0;
  padding: 10px 14px;
  font-family: inherit;
}

.contractor-nav-link.active {
  color: #eab308;
  background: #eab30824;
  font-weight: 700;
  box-shadow: inset 3px 0 #eab308;
}

.contractor-nav-icon {
  display: none;
}

.contractor-nav-label {
  flex: auto;
}

.contractor-nav-count {
  color: #eab308;
  text-align: right;
  flex: none;
  min-width: 2.4em;
  font-size: 14px;
  font-weight: 700;
}

.contractor-sidebar-footer {
  border-top: 1px solid #ffffff1f;
  margin-top: 8px;
  padding: 12px 14px 0;
  position: relative;
}

.contractor-user-meta {
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
  display: flex;
}

.contractor-user-name {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.contractor-content {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  display: flex;
}

.contractor-main {
  flex: auto;
  width: 100%;
  max-width: 1200px;
  padding: 24px;
}

.contractor-dashboard-header {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  margin-bottom: 12px;
  display: flex;
}

.contractor-dashboard-header h1 {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.25;
}

.contractor-dashboard-header p {
  margin: 0;
}

.contractor-stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
  display: grid;
}

.agent-stats-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.agent-stats-grid .stat-card {
  padding: 16px 12px;
}

.agent-stats-grid .stat-label, .agent-stats-grid .stat-value {
  white-space: normal;
}

.stat-card {
  flex-direction: column;
  gap: 6px;
  display: flex;
}

.stat-card .stat-icon {
  font-size: 26px;
}

.stat-card .stat-value {
  color: #b45309;
  font-size: 26px;
  font-weight: 700;
}

.stat-card .stat-label {
  color: #6b7280;
  font-size: 14px;
}

.contractor-stats-grid .stat-card {
  gap: 2px;
  padding: 6px 12px;
}

.stat-card-heading {
  align-items: center;
  gap: 5px;
  line-height: 1;
  display: flex;
}

.contractor-stats-grid .stat-icon {
  margin-bottom: 0;
  font-size: 14px;
}

.contractor-stats-grid .stat-label {
  margin-top: 0;
}

.contractor-stats-grid .stat-value {
  font-size: 18px;
}

.stat-card-button {
  color: inherit;
  text-align: left;
  background: #fff;
  border: 1px solid #e4e7eb;
  justify-content: flex-start;
  align-items: flex-start;
  margin-top: 0;
  transition: border-color .15s;
  position: relative;
}

.stat-card-button:hover {
  background: #f9fafb;
}

.stat-card-button.active {
  border-width: 2px;
  border-color: #eab308;
}

.stat-card-link {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}

.stat-card-link:hover {
  background: #f9fafb;
  border-color: #eab308;
}

.contractor-stats-grid .stat-card-button {
  text-align: left;
  padding: 6px 12px;
}

.discipline-filter {
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 16px;
  display: flex;
}

.discipline-chip {
  color: #334155;
  cursor: pointer;
  background: #fff;
  border: 1px solid #cbd2d9;
  border-radius: 999px;
  margin-top: 0;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
}

.discipline-chip:hover {
  background: #f5f6f8;
}

.discipline-chip.active {
  color: #eab308;
  background: #123529;
  border-color: #123529;
}

.address-autocomplete {
  position: relative;
}

.address-autocomplete-menu {
  z-index: 20;
  background: #fff;
  border: 1px solid #e4e7eb;
  border-radius: 8px;
  max-height: 220px;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  overflow-y: auto;
  box-shadow: 0 4px 12px #00000014;
}

.address-autocomplete-item {
  text-align: left;
  color: #1f2937;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 0;
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  display: block;
}

.address-autocomplete-item:hover {
  background: #f5f6f8;
}

.map-preview-popup {
  width: 260px;
  max-height: 260px;
  overflow-y: auto;
}

.map-preview-card {
  border-bottom: 1px solid #e4e7eb;
  gap: 8px;
  padding: 8px 0;
  display: flex;
}

.map-preview-card:last-child {
  border-bottom: none;
}

.map-preview-thumb {
  object-fit: cover;
  background: #f5f6f8;
  border-radius: 6px;
  flex: none;
  width: 48px;
  height: 48px;
}

.map-preview-card-body {
  flex: 1;
  min-width: 0;
}

.map-preview-card-body p {
  margin: 2px 0 0;
}

.contractor-search-map-section {
  margin-bottom: 20px;
}

.contractor-search-results {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  align-items: start;
  gap: 20px;
  display: grid;
}

.contractor-job-map-wrap {
  border: 1px solid #e4e7eb;
  border-radius: 10px;
  width: 100%;
  height: 432px;
  position: relative;
  overflow: hidden;
}

.contractor-map-pin {
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.contractor-map-center-pin {
  filter: drop-shadow(0 1px 2px #0006);
  font-size: 26px;
  line-height: 1;
}

.contractor-map-cluster {
  color: #123529;
  cursor: pointer;
  background: #eab308;
  border: 2px solid #fff;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  font-size: 14px;
  font-weight: 800;
  transition: transform .1s;
  display: flex;
  box-shadow: 0 2px 6px #0000004d;
}

.contractor-map-cluster:hover {
  transform: scale(1.08);
}

.map-placeholder {
  text-align: center;
  color: #6b7280;
  background: #f9fafb;
  border: 1px dashed #cbd2d9;
  border-radius: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 100%;
  min-height: 320px;
  padding: 24px;
  display: flex;
}

.address-prompt-card {
  border-left: 4px solid #eab308;
}

.job-card-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  display: flex;
}

.favorite-toggle {
  cursor: pointer;
  color: #cbd2d9;
  background: none;
  border: none;
  flex: none;
  margin-top: 0;
  padding: 0 2px;
  font-size: 22px;
  line-height: 1;
}

.favorite-toggle:hover, .favorite-toggle.favorited, .favorite-toggle.favorited:hover {
  color: #eab308;
  background: none;
}

.discipline-chip.favorites-chip.active {
  color: #123529;
  background: #eab308;
  border-color: #eab308;
}

.star-contractor-toggle.star-contractor {
  color: #5b21b6;
  background: #ede9fe;
  border-color: #5b21b6;
}

.favorites-toolbar {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 4px 0 12px;
  display: flex;
}

.favorites-distance-form {
  flex: none;
  min-width: 260px;
  margin: 0;
}

.messages-layout {
  grid-template-columns: minmax(220px, .8fr) minmax(320px, 1.2fr);
  align-items: start;
  gap: 20px;
  display: grid;
}

.message-list {
  flex-direction: column;
  gap: 8px;
  display: flex;
}

.message-list-item {
  color: inherit;
  text-align: left;
  cursor: pointer;
  background: #fff;
  border: 1px solid #e4e7eb;
  border-radius: 10px;
  flex-direction: column;
  gap: 2px;
  margin-top: 0;
  padding: 12px 14px;
  display: flex;
}

.message-list-item:hover {
  background: #f9fafb;
}

.message-list-item.active {
  border-width: 2px;
  border-color: #eab308;
}

.message-thread-panel {
  min-height: 320px;
}

@media (max-width: 900px) {
  .messages-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .contractor-job-map-wrap {
    height: 288px;
  }
}

@media (max-width: 768px) {
  .contractor-main {
    padding: 16px;
  }

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

@media (max-width: 600px) {
  .contractor-stats-grid {
    grid-template-columns: 1fr;
  }
}

input[type="checkbox"], input[type="radio"] {
  width: auto;
}

button.secondary {
  background: #0f766e;
}

button.secondary:hover, button.active {
  background: #115e59;
}

button.active:hover {
  background: #0c4a44;
}

button:disabled, button:disabled:hover {
  color: #6b7280;
  cursor: not-allowed;
  background: #cbd2d9;
}

.dropzone {
  text-align: center;
  cursor: pointer;
  border: 2px dashed #cbd2d9;
  border-radius: 6px;
  padding: 16px;
}

.dropzone.dragging {
  background: #f0fdfa;
  border-color: #0f766e;
}

.dropzone.disabled {
  cursor: not-allowed;
  opacity: .6;
}

.picture-thumb {
  text-align: center;
  flex: none;
  width: 120px;
}

.picture-thumb img {
  object-fit: cover;
  cursor: zoom-in;
  border-radius: 6px;
  width: 120px;
  height: 120px;
  transition: transform .15s;
  display: block;
}

.picture-thumb:hover img {
  z-index: 10;
  position: relative;
  transform: scale(2);
}

.picture-thumb span {
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
  font-size: 12px;
  display: block;
  overflow: hidden;
}

.agent-layout {
  align-items: flex-start;
  gap: 24px;
  display: flex;
  position: relative;
}

.agent-sidebar {
  z-index: 10;
  background: #123529;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 190px;
  padding: 20px 10px 10px;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 10px 30px #00000040;
}

.agent-sidebar.pinned {
  width: 190px;
  box-shadow: none;
  flex: none;
  position: static;
}

.agent-sidebar-brand-row {
  border-bottom: 1px solid #ffffff1f;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 10px 20px;
  display: flex;
}

.agent-sidebar-brand-row .agent-sidebar-brand {
  color: #fff;
  width: auto;
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  display: block;
}

.agent-sidebar-brand-row .agent-sidebar-brand:hover {
  text-decoration: none;
}

.agent-sidebar-brand-row .agent-sidebar-brand .accent {
  color: #eab308;
}

.agent-sidebar-brand-pin {
  cursor: pointer;
  align-items: center;
  display: inline-flex;
}

.agent-sidebar button, .agent-sidebar a {
  text-align: left;
  white-space: normal;
  color: #bcd9cd;
  background: none;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  margin-top: 0;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  position: relative;
}

.agent-sidebar button:hover, .agent-sidebar a:hover {
  color: #fff;
  background: #ffffff14;
  text-decoration: none;
}

.agent-nav-icon {
  text-align: center;
  flex: none;
  width: 22px;
  font-size: 18px;
  display: none;
}

.agent-stats-grid .stat-icon {
  display: none;
}

.agent-nav-label {
  flex: auto;
}

.agent-nav-count {
  color: #b45309;
  text-align: right;
  flex: none;
  min-width: 2.4em;
  font-size: 16px;
  font-weight: 700;
}

.agent-sidebar button.active, .agent-sidebar a.active {
  color: #eab308;
  background: #eab30824;
  font-weight: 700;
  box-shadow: inset 3px 0 #eab308;
}

.new-message-dot {
  background: #dc2626;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  position: absolute;
  top: 4px;
  left: 4px;
}

.dropdown-list {
  flex-direction: column;
  gap: 4px;
  padding-top: 6px;
  display: flex;
}

.agent-sidebar:not(.pinned) .dropdown-list {
  z-index: 10;
  background: #123529;
  width: 190px;
  padding: 4px 10px 10px;
  position: absolute;
  top: 100%;
  left: 0;
  box-shadow: 0 10px 30px #0000004d;
}

.agent-sidebar:not(.pinned) {
  padding-bottom: 4px;
}

.agent-content {
  flex: 1;
  min-width: 0;
}

.agent-sidebar-footer {
  border-top: 1px solid #ffffff1f;
  margin-top: 4px;
  padding-top: 12px;
  position: relative;
}

.agent-user-trigger {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 8px;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px;
  display: flex;
}

.agent-user-trigger:hover {
  background: #ffffff14;
}

.agent-avatar {
  color: #123529;
  background: #eab308;
  border-radius: 999px;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  font-weight: 700;
  display: grid;
}

.agent-user-meta {
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
  display: flex;
}

.agent-user-name {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.agent-user-id {
  color: #8fb8a8;
  font-size: 12px;
}

.agent-account-menu {
  z-index: 30;
  background: #123529;
  border: 1px solid #ffffff24;
  border-radius: 8px;
  min-width: 200px;
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px #0000004d;
}

.agent-sidebar-footer:focus-within .agent-account-menu, .agent-sidebar-footer[data-open="true"] .agent-account-menu {
  display: block;
}

.agent-account-menu-link {
  color: #bcd9cd;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 0;
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  display: block;
}

.agent-account-menu-link:hover {
  color: #fff;
  background: #ffffff14;
  text-decoration: none;
}

.agent-account-menu-link:last-child {
  border-bottom: none;
}

.hover-tooltip {
  color: #fff;
  white-space: normal;
  z-index: 20;
  background: #1f2933;
  border-radius: 6px;
  width: 180px;
  margin-left: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  box-shadow: 0 2px 6px #0003;
}

.badge.completed {
  color: #3730a3;
  background: #e0e7ff;
}

.badge.pending, .badge.posted {
  color: #78350f;
  background: #fde68a;
}

.badge.rejected {
  color: #b91c1c;
  background: #fee2e2;
}

.report-field {
  margin: 8px 0;
}

.report-summary-box {
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  margin-bottom: 12px;
  padding: 14px 16px;
}

.report-summary-box .report-field:first-child {
  margin-top: 0;
}

.report-summary-box .report-field:last-child {
  margin-bottom: 0;
}

.report-section-heading {
  border-bottom: 1px solid var(--light-gray);
  color: #6b7280;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 10px;
  padding-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
}

.report-label {
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.report-value {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
}

a.report-value {
  color: #2563eb;
}

.picture-grid {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  display: grid;
}

.picture-thumb {
  text-align: center;
  width: auto;
}

.picture-thumb img {
  aspect-ratio: 1;
  width: 100%;
  height: auto;
}

.messages-panel {
  background: #fafbfc;
  border: 1px solid #e4e7eb;
  border-radius: 8px;
  margin: 10px 0;
  padding: 12px;
}

.messages-panel label {
  margin-top: 0;
}

.project-row {
  font-size: 14px;
  line-height: 1.5;
}

.project-row:hover {
  background: #f9fafb;
  border-color: #eab308;
}

.project-row.returned-to-unbooked {
  background: #fee2e2;
  border-color: #fca5a5;
}

.project-row.returned-to-unbooked:hover {
  background: #fecaca;
  border-color: #ef4444;
}

.card.returned-to-unbooked {
  background: #fee2e2;
  border-color: #fca5a5;
}

.image-carousel {
  margin: 10px 0;
}

.image-carousel-main {
  touch-action: pan-y;
  background: #e2e8f0;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.image-carousel-image {
  object-fit: cover;
  cursor: zoom-in;
  width: 100%;
  height: 200px;
  display: block;
}

.carousel-arrow {
  color: #fff;
  cursor: pointer;
  background: #0f172a8c;
  border: none;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  margin-top: 0;
  padding: 0;
  font-size: 20px;
  line-height: 1;
  display: flex;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-arrow:hover {
  background: #0f172acc;
}

.carousel-arrow-prev {
  left: 8px;
}

.carousel-arrow-next {
  right: 8px;
}

.image-carousel-counter {
  color: #fff;
  background: #0f172aa6;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
  position: absolute;
  bottom: 8px;
  right: 8px;
}

.image-carousel-thumbs {
  scroll-snap-type: x proximity;
  gap: 6px;
  margin-top: 6px;
  padding-bottom: 2px;
  display: flex;
  overflow-x: auto;
}

.image-carousel-thumb {
  cursor: pointer;
  scroll-snap-align: start;
  background: none;
  border: 2px solid #0000;
  border-radius: 6px;
  flex: none;
  width: 52px;
  height: 40px;
  margin-top: 0;
  padding: 0;
  overflow: hidden;
}

.image-carousel-thumb.active {
  border-color: #eab308;
}

.image-carousel-thumb img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.lightbox-overlay {
  z-index: 1100;
}

.lightbox-panel {
  justify-content: center;
  align-items: center;
  max-width: min(90vw, 900px);
  max-height: 90vh;
  display: flex;
  position: relative;
}

.lightbox-image {
  object-fit: contain;
  touch-action: pan-y;
  border-radius: 8px;
  max-width: 100%;
  max-height: 90vh;
}

.lightbox-close {
  background: #fff;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  position: absolute;
  top: -6px;
  right: -6px;
  box-shadow: 0 2px 6px #0000004d;
}

.lightbox-arrow {
  width: 40px;
  height: 40px;
  font-size: 24px;
}

.lightbox-arrow-prev {
  left: -16px;
}

.lightbox-arrow-next {
  right: -16px;
}

.lightbox-counter {
  bottom: -30px;
  right: 50%;
  transform: translateX(50%);
}

@media (max-width: 600px) {
  .image-carousel-image {
    height: 160px;
  }

  .lightbox-arrow-prev {
    left: 4px;
  }

  .lightbox-arrow-next {
    right: 4px;
  }
}

/*# sourceMappingURL=app_globals_0yg4wg8.css.map*/