/* React workspace: shared colors and typography live in app.css. */
.react-workspace .nav-link.active {
  background: #2a405b;
  color: #fff;
}
.react-workspace .nav-link svg {
  flex-shrink: 0;
}
.react-workspace .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  min-width: 0;
}
.react-workspace
  input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
.react-workspace select,
.react-workspace textarea,
.react-dialog
  input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
.react-dialog select,
.react-dialog textarea {
  border: 1px solid #d8e0ea;
  border-radius: 9px;
  padding: 11px 13px;
  background: #fff;
  width: 100%;
  min-height: 44px;
}
.react-field > span:first-child,
.field-label {
  font-size: 13px;
  font-weight: 650;
}
.react-field small,
.field > small {
  color: #758299;
  font-size: 12px;
  line-height: 1.7;
}
.react-workspace .user-switcher select {
  max-width: 220px;
  border: 0;
  background: transparent;
  min-height: 44px;
  padding: 0 5px;
}
.react-workspace .topbar {
  gap: 12px;
}
.react-workspace .heading-actions,
.record-actions,
.react-workspace .button,
.react-dialog .button {
  display: flex;
  align-items: center;
  gap: 8px;
}
.react-workspace .heading-actions,
.record-actions {
  flex-wrap: wrap;
}
.react-workspace .form-grid.two,
.react-dialog .form-grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}
.react-workspace fieldset,
.react-dialog fieldset {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}
.react-workspace textarea,
.react-dialog textarea {
  resize: vertical;
  line-height: 1.7;
}
.react-workspace .form-panel {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px;
}
.react-issue-form .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
/* iOS miscalculates 100%-wide date inputs with padding (WebKit #301648).
   Stretch the auto-sized flex item so its padding and border fit the field. */
.react-workspace .react-issue-form .field input[type="date"],
.react-dialog .react-issue-form .field input[type="date"] {
  width: auto;
  min-width: 0;
  max-width: 100%;
  align-self: stretch;
}
.react-issue-form .form-actions {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.react-issue-form .form-section {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 24px;
}
.react-issue-form .form-section h3 {
  margin-bottom: 18px;
}
.app-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 20px;
  color: #728095;
  min-height: 200px;
}
.spin {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.recovery-page {
  max-width: 640px;
  margin: 10vh auto;
  padding: 30px;
}
.react-workspace .form-errors,
.react-dialog .form-errors {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  white-space: pre-wrap;
}
.form-errors p {
  margin: 0;
  flex: 1;
}
.form-errors svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.react-sidebar-scrim {
  position: fixed;
  inset: 0;
  z-index: 89;
  border: 0;
  background: #0c203a88;
}
.connection-notice {
  background: #fff2cc;
  color: #7f5400;
  padding: 14px 24px;
  line-height: 1.7;
}
.react-workspace .flash {
  display: flex;
  justify-content: space-between;
}
.react-workspace .status-badge i,
.react-dialog .status-badge i {
  background: currentColor;
  border-radius: 50%;
  width: 7px;
  height: 7px;
}
.react-workspace .status-badge,
.react-dialog .status-badge {
  white-space: nowrap;
}
.react-workspace .stat-top .status-badge {
  font-size: 10px;
  padding: 4px 7px;
}
.react-workspace .context-line {
  gap: 15px;
  flex-wrap: wrap;
}
.detail-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.85;
}
.react-issue-detail .issue-detail-title {
  font-size: 23px;
  margin: 14px 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.record-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
}
.record-meta time {
  margin-left: auto;
  color: var(--muted);
}
.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 22px 0;
  gap: 0 24px;
}
.detail-facts > div {
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}
.detail-facts dt {
  font-size: 11px;
  color: #7c899a;
  margin-bottom: 7px;
}
.detail-facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.detail-facts small {
  display: block;
  margin-top: 4px;
  color: #7c899a;
  font-weight: 400;
}
.cost-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 18px;
  border-radius: 12px;
  background: #f2f6fc;
  gap: 20px;
  margin-bottom: 24px;
}
.cost-summary strong {
  display: block;
  font-size: 24px;
  margin-top: 8px;
}
.cost-summary small {
  color: #7c899a;
}
.history-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.history-section h3 {
  margin-bottom: 8px;
}
.react-timeline {
  list-style: none;
  padding: 0 0 0 20px;
  margin: 28px 0 0 8px;
  border-left: 2px solid #e2e8f1;
}
.react-timeline li {
  position: relative;
  padding: 0 0 26px 8px;
}
.timeline-dot {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 3px solid white;
  left: -28px;
  top: 1px;
  border-radius: 50%;
  background: #8493a6;
  box-shadow: 0 0 0 2px #e2e8f1;
}
.timeline-dot.before_review {
  background: #e34f57;
}
.timeline-dot.reviewed {
  background: #efbe37;
}
.timeline-dot.improved {
  background: #1b9a73;
}
.notification-evidence {
  background: #f1f6ff;
  border-radius: 6px;
  padding: 9px 12px;
  color: #5476a8;
  font-size: 11px;
  margin: 12px 0 0;
}
.cost-event {
  display: block;
  margin: 10px 0;
  color: #276549;
}
.photo-gallery,
.photo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0;
}
.photo-gallery a,
.photo-preview img {
  width: 110px;
  height: 100px;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.photo-gallery img,
.photo-preview img {
  width: 110px;
  height: 100px;
  object-fit: cover;
}
.form-context {
  display: flex;
  gap: 9px;
  background: #f3f6fb;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 24px;
  font-size: 12px;
}
.form-context svg {
  flex-shrink: 0;
}
.form-context small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.status-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.react-issue-form .status-choice-card {
  cursor: pointer;
  border: 1px solid #dce3ee;
  padding: 12px 8px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.5;
}
.react-issue-form .status-choice-card input[type="radio"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  color: inherit;
  accent-color: currentColor;
  cursor: inherit;
}
.react-issue-form .status-choice-card > span {
  white-space: nowrap;
}
.react-issue-form .status-choice-card.before_review {
  color: #be303a;
}
.react-issue-form .status-choice-card.reviewed {
  color: #84600b;
}
.react-issue-form .status-choice-card.improved {
  color: #158461;
}
.react-issue-form .status-choice-card.selected {
  border-color: currentColor;
  box-shadow: inset 0 0 0 1px currentColor;
  background: #f8fafc;
}
.react-issue-form .status-choice-card:has(input:focus-visible) {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 13px;
  white-space: nowrap;
}
.checkbox-label input {
  width: 18px;
  height: 18px;
}
.conflict-panel,
.info-callout {
  background: #fff7dc;
  border: 1px solid #efe0af;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 13px;
}
.conflict-panel p {
  margin: 10px 0;
}
.danger-outline {
  color: #b73740;
  background: #fff;
  border: 1px solid #efbfc3;
}
.react-dialog {
  border: 0;
  border-radius: 18px;
  padding: 0;
  color: var(--ink);
  box-shadow: 0 30px 100px #112b4866;
  width: min(720px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  overscroll-behavior: contain;
}
.react-dialog::backdrop {
  background: #10274388;
  backdrop-filter: blur(3px);
}
.react-dialog-title {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.react-dialog-title .icon-button {
  font-size: 26px;
  min-width: 44px;
  height: 44px;
}
.react-dialog > .react-issue-form,
.react-dialog > .react-issue-detail {
  padding: 24px;
}
.react-filters {
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px;
  margin-bottom: 22px;
}
.react-filters .field {
  flex: 1 1 155px;
  margin: 0;
}
.react-filters .checkbox-label {
  align-self: flex-end;
}
.react-filters .button {
  flex: 0 0 auto;
}
.react-filters .text-link {
  padding-bottom: 12px;
}
.react-workspace .table-scroll {
  overflow-x: auto;
}
.react-workspace .data-table {
  width: 100%;
}
.react-workspace .data-table td {
  max-width: 330px;
  overflow-wrap: anywhere;
}
.react-workspace .data-table small {
  display: block;
}
.mobile-record-list {
  display: none;
}
.react-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: #eaf0f8;
  width: fit-content;
  border-radius: 12px;
  margin-bottom: 22px;
}
.react-tabs button {
  border: 0;
  background: transparent;
  padding: 13px 24px;
  border-radius: 8px;
  color: #60738b;
  font-weight: 600;
}
.react-tabs button.selected {
  background: white;
  color: #2865df;
  box-shadow: 0 2px 7px #20324a14;
}
.project-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.react-project-card {
  overflow: hidden;
}
.project-card-image {
  position: relative;
  display: block;
  height: 250px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: #f9fbfe;
}
.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.project-card-body {
  padding: 24px;
}
.project-card-body h2 {
  margin-bottom: 10px;
}
.project-issue-count {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  box-shadow: 0 2px 12px #14263d15;
  font-size: 12px;
}
.drawing-form-preview {
  max-height: 330px;
  display: block;
  width: 100%;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #f7f9fc;
  margin-bottom: 24px;
}
.section-note {
  color: #7c899a;
  font-size: 12px;
  margin-top: 20px;
  line-height: 1.8;
}
.notification-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.2fr);
  gap: 22px;
  align-items: start;
}
.notice-list {
  overflow: hidden;
  max-height: 700px;
  overflow-y: auto;
}
.notice-item {
  display: block;
  text-align: left;
  width: 100%;
  border: 0;
  background: #fff;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.notice-item.selected {
  background: #edf4ff;
  box-shadow: inset 3px 0 #2865df;
}
.notice-item p {
  margin: 10px 0;
  font-size: 13px;
  line-height: 1.7;
}
.notice-item small {
  color: #7c899a;
}
.notice-preview {
  padding: 26px;
  min-height: 400px;
}
.notice-preview h2 {
  line-height: 1.8;
  margin-bottom: 18px;
}
.notice-preview pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: inherit;
  line-height: 1.85;
  font-size: 13px;
  padding: 22px;
  background: #f7f9fc;
  border-radius: 10px;
}
.delivery-badge {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 5px;
  white-space: nowrap;
}
.delivery-badge.delivered {
  color: #13876d;
  background: #e8f6f1;
}
.delivery-badge.queued {
  color: #7f6a20;
  background: #fff5cf;
}
.delivery-badge.failed {
  color: #bb3541;
  background: #fdecef;
}
.map-project-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
  flex-wrap: wrap;
}
.map-project-controls > label:first-child {
  flex: 1 1 300px;
  max-width: 440px;
}
.map-project-controls > span {
  font-size: 12px;
}
.map-project-controls .checkbox-label {
  margin-left: auto;
}
.react-map-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.react-map-counts button {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  background: white;
  text-align: left;
  color: #435a75;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.react-map-counts button.selected {
  outline: 2px solid #7197ca;
  outline-offset: -2px;
}
.react-map-counts strong {
  font-size: 28px;
  font-weight: 700;
}
.react-map-counts small {
  font-size: 11px;
  font-weight: 400;
  margin-left: 5px;
}
.react-map-counts .before_review {
  background: #fff3f4;
}
.react-map-counts .reviewed {
  background: #fffbeb;
}
.react-map-counts .improved {
  background: #eff9f5;
}
.react-map-panel {
  overflow: hidden;
}
.map-instructions {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.map-instructions p {
  margin: 6px 0 0;
  font-size: 12px;
  color: #7c899a;
}
.map-color-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.map-color-picker > span {
  font-size: 11px;
  margin-right: 6px;
  color: #7c899a;
}
.map-color {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 40px;
  padding: 8px 9px;
  background: white;
  font-size: 11px;
  white-space: nowrap;
}
.map-color i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.map-color.before_review i {
  background: #ec4a52;
}
.map-color.reviewed i {
  background: #f1c632;
}
.map-color.improved i {
  background: #1ca572;
}
.map-color.selected {
  outline: 2px solid #53677f;
  outline-offset: -2px;
}
.react-map-frame {
  position: relative;
  background: #edf2f7;
}
.react-map-frame.expanded {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
}
.react-map-frame.expanded .react-map-viewport {
  height: calc(100dvh - 54px);
  flex: 1;
}
.react-map-viewport {
  height: clamp(400px, 60vh, 750px);
  overflow: hidden;
  position: relative;
  touch-action: none;
  user-select: none;
  cursor: grab;
  background-color: #f3f6fa;
  background-image: radial-gradient(#d1dbe7 1px, transparent 1px);
  background-size: 18px 18px;
}
.react-map-viewport:active {
  cursor: grabbing;
}
.react-map-drawing {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  transform-origin: 0 0;
  pointer-events: none;
  box-shadow: 0 2px 14px #152a4514;
  background: white;
}
.react-map-tools {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 4;
  display: flex;
  align-items: center;
  background: #ffffffed;
  border: 1px solid #dae2ee;
  border-radius: 10px;
  box-shadow: 0 4px 16px #213b5812;
  padding: 3px;
}
.react-map-tools button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #4c6380;
  gap: 5px;
}
.react-map-tools button:hover {
  background: #edf3fc;
}
.react-map-tools output {
  font-size: 11px;
  width: 42px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.react-map-tools .place-center {
  font-size: 11px;
  border-left: 1px solid var(--line);
  border-radius: 0;
  padding-left: 12px;
}
.react-map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  padding: 5px;
  display: grid;
  place-items: center;
  background: transparent;
  z-index: 2;
  touch-action: manipulation;
}
.react-map-pin span {
  border: 2px solid #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow:
    0 2px 5px #1c354850,
    0 0 0 1px #32496355;
  font-size: 12px;
  font-weight: 800;
  color: white;
}
.react-map-pin.before_review span {
  background: #e94750;
}
.react-map-pin.reviewed span {
  background: #f2c631;
  color: #534510;
}
.react-map-pin.improved span {
  background: #169d70;
}
.react-map-pin.selected {
  z-index: 3;
}
.react-map-pin.selected span {
  outline: 4px solid #386fdc88;
  outline-offset: 2px;
}
.react-map-pin:hover span {
  box-shadow: 0 3px 10px #18334d88;
}
.react-map-legend {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.map-footnote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 20px;
  font-size: 11px;
  color: #7c899a;
  background: #fff;
}
.map-image-error {
  padding: 90px 30px;
  text-align: center;
  color: #b73740;
}
@media (max-width: 1150px) {
  .react-map-counts button {
    align-items: flex-start;
    flex-direction: column;
  }
  .map-instructions {
    flex-wrap: wrap;
  }
  .react-workspace .stat-top .status-badge {
    display: none;
  }
}
@media (max-width: 900px) {
  .react-workspace .sidebar.react-open {
    transform: translateX(0);
    z-index: 90;
  }
  .react-workspace .mobile-bottom-nav .nav-link.active {
    color: #2865df;
    background: transparent;
  }
  .react-workspace .user-switcher select {
    max-width: 170px;
  }
  .notification-workspace {
    grid-template-columns: 1fr;
  }
  .notice-list {
    max-height: 360px;
  }
  .project-card-grid {
    gap: 16px;
  }
  .react-workspace .main-content {
    padding-bottom: 100px;
  }
}
@media (max-width: 600px) {
  .react-issue-form .status-choice-card {
    flex-direction: column;
    gap: 8px;
    min-height: 76px;
    padding: 12px 6px;
  }
  .react-workspace .page-heading {
    gap: 14px;
  }
  .react-workspace h1 {
    font-size: 23px;
  }
  .react-workspace .heading-actions {
    width: 100%;
  }
  .react-workspace .heading-actions .button {
    flex: 1;
    justify-content: center;
  }
  .react-workspace .topbar-left > span {
    display: none;
  }
  .react-workspace .user-switcher select {
    max-width: 185px;
    font-size: 12px;
  }
  .react-workspace .form-panel {
    padding: 20px;
  }
  .react-workspace .form-grid.two,
  .react-dialog .form-grid.two {
    grid-template-columns: 1fr;
  }
  .react-workspace input,
  .react-workspace select,
  .react-workspace textarea,
  .react-dialog input,
  .react-dialog select,
  .react-dialog textarea {
    font-size: 16px;
  }
  .react-workspace .desktop-record-table {
    display: none;
  }
  .mobile-record-list {
    display: block;
  }
  .mobile-record-card {
    display: block;
    padding: 20px;
    border-top: 1px solid var(--line);
  }
  .mobile-record-card h3 {
    margin: 12px 0 8px;
    font-size: 15px;
    line-height: 1.7;
  }
  .mobile-record-card p {
    font-size: 12px;
    color: #7c899a;
  }
  .mobile-record-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
  }
  .react-workspace .react-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .react-filters .field:first-child {
    grid-column: 1 / -1;
  }
  .react-filters .field {
    min-width: 0;
  }
  .react-filters .checkbox-label {
    grid-column: 1 / -1;
  }
  .react-workspace .react-filters select {
    max-width: 100%;
    min-width: 0;
  }
  .react-tabs {
    width: 100%;
  }
  .react-tabs button {
    padding: 12px 0;
    flex: 1;
  }
  .project-card-grid {
    grid-template-columns: 1fr;
  }
  .project-card-image {
    height: 210px;
  }
  .react-workspace .panel-heading {
    gap: 12px;
    flex-wrap: wrap;
  }
  .react-workspace .panel-heading input {
    min-width: 0;
  }
  .react-dialog {
    position: fixed;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    max-height: 94dvh;
    margin: auto 0 0;
    border-radius: 18px 18px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-x: none;
    touch-action: pan-y pinch-zoom;
  }
  .react-dialog input,
  .react-dialog select,
  .react-dialog textarea {
    min-width: 0;
    max-width: 100%;
  }
  .react-dialog-title {
    padding: 12px 18px;
  }
  .react-dialog > .react-issue-form,
  .react-dialog > .react-issue-detail {
    padding: 20px;
  }
  .sticky-form-actions {
    position: sticky;
    bottom: 0;
    margin: 0 -20px -20px;
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: #fff;
  }
  .react-dialog .sticky-form-actions .button {
    flex: 1;
    justify-content: center;
  }
  .detail-facts {
    gap: 0 16px;
  }
  .cost-summary strong {
    font-size: 22px;
  }
  .map-project-controls {
    gap: 10px;
  }
  .map-project-controls > label:first-child {
    max-width: none;
    flex-basis: 100%;
  }
  .map-project-controls .checkbox-label {
    margin-left: 0;
  }
  .react-map-counts {
    gap: 7px;
  }
  .react-map-counts button {
    padding: 10px 8px;
    gap: 8px;
  }
  .react-map-counts .status-badge {
    font-size: 10px;
    padding: 0;
    background: transparent;
    gap: 4px;
  }
  .react-map-counts .status-badge i {
    width: 5px;
    height: 5px;
  }
  .react-map-counts strong {
    font-size: 25px;
  }
  .react-map-counts button > span {
    font-size: 11px;
  }
  .react-map-counts small {
    font-size: 10px;
    margin-left: 3px;
  }
  .map-instructions {
    padding: 14px;
  }
  .map-instructions strong {
    font-size: 13px;
  }
  .map-instructions p {
    line-height: 1.7;
  }
  .map-color-picker {
    width: 100%;
  }
  .map-color {
    flex: 1;
    justify-content: center;
  }
  .map-color-picker > span {
    margin-right: 0;
  }
  .react-map-tools {
    top: 10px;
    left: 10px;
  }
  .react-map-tools .place-center span {
    display: none;
  }
  .react-map-viewport {
    height: 470px;
  }
  .react-map-legend {
    gap: 10px;
  }
  .react-map-legend .status-badge {
    font-size: 11px;
  }
  .map-footnote {
    padding: 12px 14px;
  }
  .record-actions .button {
    flex: 1;
    justify-content: center;
  }
  .notification-workspace {
    gap: 16px;
  }
  .notice-preview {
    padding: 20px;
  }
  .notice-preview pre {
    padding: 16px;
  }
  .react-workspace .stat-number.cost-number {
    font-size: 23px;
  }
}
@media print {
  .react-workspace .sidebar,
  .react-workspace .topbar,
  .react-workspace .mobile-bottom-nav,
  .react-workspace .heading-actions,
  .react-workspace .filter-bar,
  .react-workspace .page-footer {
    display: none !important;
  }
  .react-workspace .app-body {
    margin: 0;
  }
  .react-workspace .main-content {
    padding: 0;
  }
  .react-workspace .desktop-record-table {
    display: block;
  }
  .react-workspace .mobile-record-list {
    display: none;
  }
  .react-workspace .panel {
    box-shadow: none;
    break-inside: avoid;
  }
  .react-workspace .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .react-workspace .data-table {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spin {
    animation: none;
  }
}

/* Account access uses the same palette as the workspace. */
.access-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(460px, 1fr);
  background: #f8fafc;
}
.access-intro {
  padding: 56px 10%;
  background: #152a45;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 70px;
}
.access-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 25px;
  font-weight: 700;
}
.access-brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #a4bacd;
  margin-top: 3px;
}
.access-intro .eyebrow {
  color: #91b7da;
  font-size: 11px;
  letter-spacing: 0.15em;
}
.access-intro h1 {
  font-size: clamp(30px, 3.1vw, 49px);
  line-height: 1.6;
  letter-spacing: 0.03em;
  margin: 22px 0;
}
.access-intro p {
  color: #bccbdd;
  line-height: 2;
  font-size: 14px;
}
.access-intro-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: #acbfd2;
}
.access-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
}
.access-card {
  width: 100%;
  max-width: 420px;
}
.access-icon {
  display: inline-flex;
  background: #e8eff7;
  color: #234665;
  padding: 15px;
  border-radius: 14px;
  margin-bottom: 24px;
}
.access-card h2 {
  font-size: 26px;
  letter-spacing: 0.02em;
}
.access-description {
  color: #66758a;
  line-height: 1.8;
  margin: 13px 0 30px;
}
.access-card .field,
.password-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.access-card input {
  width: 100%;
  border: 1px solid #ccd7e4;
  background: #fff;
  border-radius: 8px;
  padding: 13px 14px;
  font-size: 16px;
  min-height: 48px;
}
.password-input {
  position: relative;
}
.password-input input {
  padding-right: 52px !important;
}
.password-input .icon-button {
  position: absolute;
  right: 4px;
  top: 2px;
  min-height: 44px;
  color: #66758a;
}
.access-submit {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin-top: 26px;
}
.access-secondary-link {
  display: block;
  margin-top: 22px;
  text-align: center;
  color: #315d87;
  font-size: 13px;
}
.access-help,
.account-help {
  line-height: 1.8;
  font-size: 12px;
  color: #69798c;
  margin-top: 25px;
}
.access-footer {
  font-size: 11px;
  color: #8794a5;
  margin-top: 48px;
  text-align: center;
}
.access-card .form-errors {
  margin-bottom: 20px;
  white-space: pre-wrap;
}
.success-notice {
  padding: 14px;
  border-radius: 9px;
  margin: 16px 0;
  background: #e8f5ee;
  color: #276343;
  line-height: 1.7;
}
.account-shortcut {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 12px;
  white-space: nowrap;
}
.account-panel {
  padding: 24px;
  margin-bottom: 24px;
  min-width: 0;
}
.account-panel h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  margin-bottom: 18px;
}
.account-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}
.account-toolbar > span {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.account-toolbar input {
  max-width: 320px;
}
.account-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid #e5eaf0;
}
.account-identity {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.account-identity strong {
  font-size: 14px;
}
.account-identity small {
  color: #77859a;
  font-size: 11px;
}
.account-state {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  font-size: 11px;
}
.account-status {
  border-radius: 5px;
  padding: 5px 9px;
  font-weight: 600;
  white-space: nowrap;
}
.account-status.enabled {
  color: #286547;
  background: #e4f4e9;
}
.account-status.stopped {
  color: #667182;
  background: #eef1f5;
}
.account-status.invited {
  color: #916611;
  background: #fff4d9;
}
.account-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.account-actions .button {
  padding: 9px 10px;
  font-size: 11px;
  min-height: 44px;
}
.account-help a {
  text-decoration: underline;
}
.account-dialog-form {
  padding: 24px;
}
.account-dialog-form > p {
  line-height: 1.8;
  margin-bottom: 20px;
}
.account-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
}
.account-profile-grid .avatar {
  margin-bottom: 20px;
}
.account-profile-grid p {
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.session-recovery {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
}
@media (max-width: 1100px) {
  .account-row {
    flex-wrap: wrap;
  }
  .account-actions {
    flex-basis: 100%;
  }
}
@media (max-width: 760px) {
  .access-page {
    display: flex;
    flex-direction: column;
  }
  .access-intro {
    padding: 24px;
    gap: 0;
  }
  .access-intro > div:not(:first-child) {
    display: none;
  }
  .access-brand {
    font-size: 21px;
  }
  .access-form-side {
    padding: 34px 24px;
  }
  .access-icon {
    margin-bottom: 16px;
  }
  .access-footer {
    margin-top: 30px;
  }
  .account-panel {
    padding: 18px;
  }
  .account-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .account-toolbar input {
    max-width: none;
  }
  .account-row {
    gap: 12px;
  }
  .account-profile-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .account-shortcut > span {
    display: none;
  }
}
