.boundary-review-sheet {
  max-height: 86vh;
}

.boundary-review-list,
.boundary-review-corrections {
  display: grid;
  gap: 10px;
}

.boundary-review-card,
.boundary-review-correction,
.boundary-review-manual-customer {
  border: 1px solid var(--salesmap-ds-color-border, #d1d5db);
  border-radius: var(--salesmap-ds-radius-card, 14px);
  background: var(--salesmap-ds-color-surface, #fff);
}

.boundary-review-card {
  padding: 13px;
}

html[data-runtime="android-webview"] .boundary-review-card {
  padding: 0;
  overflow: hidden;
  border-left: 5px solid var(--theme-primary-line);
  border-radius: 15px;
  background: var(--theme-surface);
  box-shadow: var(--theme-card-shadow);
}

html[data-runtime="android-webview"] .boundary-review-customer {
  padding: 12px 12px 0;
}

.boundary-review-customer {
  display: grid;
  gap: 3px;
}

.boundary-review-code {
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: var(--theme-primary);
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}

html[data-runtime="android-webview"] .boundary-review-code {
  cursor: default;
}

.boundary-review-code:focus-visible {
  outline: 2px solid var(--theme-primary);
  outline-offset: 3px;
}

.boundary-review-company {
  color: var(--salesmap-ds-color-text-secondary, #6b7280);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.boundary-review-meta {
  padding: 10px 0;
  color: var(--salesmap-ds-color-text-secondary, #6b7280);
  font-size: 11px;
  font-weight: 700;
}

.boundary-review-info-panel {
  margin-top: 10px;
  padding: 0 12px;
  border: 1px solid var(--salesmap-ds-color-border, #d1d5db);
  border-radius: var(--salesmap-ds-radius-card, 14px);
  background: var(--salesmap-ds-color-surface-soft, #f8fafc);
  overflow: hidden;
}

.boundary-review-detail {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid var(--salesmap-ds-color-border, #d1d5db);
}

.boundary-review-detail > span {
  color: var(--salesmap-ds-color-text-secondary, #6b7280);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.boundary-review-detail > b {
  color: var(--salesmap-ds-color-text-primary, #1f2933);
  font-size: 12px;
  line-height: 1.4;
}

.boundary-review-detail > small {
  color: var(--salesmap-ds-color-text-secondary, #6b7280);
  font-size: 11px;
}

.boundary-review-suggested > b {
  color: var(--theme-primary);
}

.boundary-review-card-actions,
.boundary-review-manual-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.boundary-review-card-actions {
  margin-top: 12px;
}

html[data-runtime="android-webview"] .boundary-review-info-panel {
  display: grid;
  gap: 5px;
  margin: 10px 10px 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

html[data-runtime="android-webview"] .boundary-review-meta,
html[data-runtime="android-webview"] .boundary-review-detail {
  margin: 0;
  padding: 7px 8px;
  border: 0;
  border-radius: 9px;
  background: var(--theme-surface-soft);
}

html[data-runtime="android-webview"] .boundary-review-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 0;
  padding: 8px 10px 10px;
  border-top: 1px solid var(--theme-line);
  background: var(--theme-surface-soft);
}

html[data-runtime="android-webview"] .boundary-review-card-actions button {
  width: auto;
  min-width: 0;
  height: 30px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.boundary-review-card-actions button,
.boundary-review-manual-actions button {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding-inline: 10px;
  white-space: normal;
}

.boundary-review-manual-body {
  display: grid;
  gap: 14px;
}

.boundary-review-manual-sheet .sheet-header {
  margin-bottom: 12px;
}

.boundary-review-manual-customer {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border-color: var(--theme-line);
  background: var(--theme-surface);
}

.boundary-review-manual-customer b {
  color: var(--theme-ink);
  font-size: 15px;
  font-weight: 950;
}

.boundary-review-manual-customer span {
  color: var(--theme-ink);
  font-size: 13px;
  font-weight: 900;
}

.boundary-review-field {
  display: grid;
  gap: 6px;
}

.boundary-review-field textarea {
  min-height: 88px;
  resize: vertical;
}

.boundary-review-field .required-mark {
  color: var(--salesmap-ds-color-danger, #b42318);
}

.boundary-review-corrections {
  margin-top: 14px;
}

.boundary-review-section-title {
  color: var(--salesmap-ds-color-text-secondary, #6b7280);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.boundary-review-correction {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  font-size: 12px;
}

.boundary-review-badge {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--theme-primary-soft, #e8f5ee);
  color: var(--theme-primary);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}
