:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, sans-serif;
}

html.mobile-nav-shell-page {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}

body.mobile-shell {
  margin: 0;
  background: #f4f6f8;
  color: #1a1a1a;
  padding: 0;
}

body.mobile-edit-page,
body.mobile-detail-page,
body.mobile-nav-shell {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}

.mobile-app-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.mobile-app-footer {
  flex: 0 0 auto;
  box-sizing: border-box;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid #d8dee6;
  box-shadow: 0 -4px 16px rgba(20, 28, 36, 0.08);
}

.mobile-header,
.mobile-panel {
  padding: 16px;
}

.mobile-list-header {
  padding-bottom: 10px;
  padding-left: 10px;
  padding-right: 10px;
}

.mobile-list-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-header h1 {
  margin: 0 0 2px;
  font-size: 1.35rem;
}

.mobile-list-title-row h1 {
  margin: 0;
}

.mobile-clear-filters {
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  background: #e7eef8;
  color: #1f6feb;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
  padding: 8px 12px;
  text-decoration: none;
}

.mobile-clear-filters.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.mobile-list-header .mobile-subtitle {
  margin: 0 0 8px;
}

.mobile-list-filters {
  display: grid;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.mobile-list-filters input[type="search"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  border: 1px solid #ccd3db;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 1.05rem;
  box-sizing: border-box;
  background: #fff;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.mobile-list-filters select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 40px;
  border: 1px solid #ccd3db;
  border-radius: 10px;
  padding: 8px 30px 8px 10px;
  font-size: 0.82rem;
  line-height: 1.15;
  box-sizing: border-box;
  background-color: #fff;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a6470' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 12px;
}

.mobile-list-filters select option {
  font-size: 0.82rem;
}

.mobile-filter-picker {
  position: relative;
}

.mobile-filter-picker-trigger {
  display: block;
  width: 100%;
  min-height: 40px;
  border: 1px solid #ccd3db;
  border-radius: 10px;
  padding: 8px 30px 8px 10px;
  font-size: 0.82rem;
  line-height: 1.15;
  box-sizing: border-box;
  background-color: #fff;
  color: inherit;
  text-align: left;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a6470' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 12px;
}

.mobile-filter-picker-trigger-label {
  display: block;
}

.mobile-filter-picker-label {
  display: block;
  line-height: 1.2;
  word-break: break-word;
}

.mobile-filter-picker-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  max-height: min(320px, 52vh);
  overflow-y: auto;
  border: 1px solid #ccd3db;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(20, 28, 36, 0.16);
}

.mobile-filter-picker-option {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #eef1f4;
  background: #fff;
  color: inherit;
  text-align: left;
  padding: 10px 12px;
  font-size: 0.82rem;
  line-height: 1.15;
}

.mobile-filter-picker-option:last-child {
  border-bottom: 0;
}

.mobile-filter-picker-option.is-selected {
  background: #e8f0fe;
}

.mobile-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.mobile-filter-field {
  display: grid;
  gap: 4px;
  min-width: 0;
  width: 100%;
}

.mobile-filter-label {
  color: #5a6470;
  font-size: 0.78rem;
  font-weight: 600;
}

.mobile-subtitle,
.mobile-muted {
  color: #5a6470;
  font-size: 0.9rem;
}

.mobile-button,
.mobile-bottom-nav button {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: #1f6feb;
  color: #fff;
  font-size: 1rem;
  padding: 10px 16px;
}

.mobile-button {
  display: inline-block;
  text-decoration: none;
}

.mobile-contact-list {
  list-style: none;
  margin: 0;
  padding: 0 10px 16px;
}

.mobile-contact-list li {
  margin-bottom: 8px;
}

.mobile-contact-list a,
.mobile-list-link {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
}

.mobile-list-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.mobile-list-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8edf2;
  color: #5a6470;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.mobile-list-avatar-photo {
  cursor: zoom-in;
}

.mobile-list-body {
  min-width: 0;
  flex: 1;
}

.mobile-list-chip {
  display: block;
  margin-top: 4px;
  color: #5a6470;
  font-size: 0.85rem;
}

.mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid #d8dee6;
  opacity: 1;
  visibility: visible;
  transform: none;
}

body.mobile-nav-shell .mobile-bottom-nav {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  flex: 0 0 auto;
  width: 100%;
  z-index: 10;
}

.mobile-bottom-nav-footer {
  padding: 0;
  box-shadow: none;
}

body.mobile-nav-shell .mobile-bottom-nav-footer .mobile-bottom-nav {
  border-top: 0;
}

.mobile-bottom-nav a,
.mobile-bottom-nav form {
  flex: 1;
}

.mobile-bottom-nav a,
.mobile-bottom-nav button {
  width: 100%;
}

.mobile-back {
  display: inline-block;
  margin-bottom: 8px;
  color: #1f6feb;
  text-decoration: none;
}

.mobile-error {
  color: #b42318;
}

.mobile-empty {
  padding: 16px;
  color: #5a6470;
}

.mobile-detail-identity {
  display: flex;
  gap: 12px;
  align-items: center;
}

.mobile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.mobile-avatar-button {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 50%;
  line-height: 0;
}

.mobile-photo-lightbox:not([open]) {
  display: none !important;
}

.mobile-photo-lightbox[open] {
  position: fixed;
  inset: 0;
  z-index: 200;
}

.mobile-photo-lightbox {
  border: 0;
  margin: 0;
  padding: 16px;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  box-sizing: border-box;
  background: rgba(17, 24, 39, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-photo-lightbox::backdrop {
  background: rgba(17, 24, 39, 0.94);
}

.mobile-photo-lightbox-image {
  width: min(92vw, 92vh);
  height: min(92vw, 92vh);
  min-width: 280px;
  min-height: 280px;
  max-width: none;
  max-height: none;
  object-fit: contain;
  border-radius: 8px;
}

.mobile-photo-lightbox-close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}

.mobile-edit-photo-block {
  display: grid;
  gap: 14px;
}

.mobile-edit-photo-preview {
  display: flex;
  justify-content: center;
}

.mobile-edit-photo-button {
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 50%;
  line-height: 0;
}

.mobile-edit-photo-image,
.mobile-edit-photo-placeholder {
  width: 112px;
  height: 112px;
}

.mobile-edit-photo-image {
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.mobile-edit-photo-upload {
  display: grid;
  gap: 6px;
}

.mobile-edit-photo-upload small {
  color: #5a6470;
  font-size: 0.82rem;
}

.mobile-edit-photo-upload input[type="file"] {
  width: 100%;
}

.mobile-photo-crop-modal:not([open]) {
  display: none !important;
}

.mobile-photo-crop-modal[open] {
  position: fixed;
  inset: 0;
  z-index: 220;
}

.mobile-photo-crop-modal {
  border: 0;
  margin: 0;
  padding: 16px;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  box-sizing: border-box;
  background: rgba(17, 24, 39, 0.96);
  color: #fff;
}

.mobile-photo-crop-modal::backdrop {
  background: rgba(17, 24, 39, 0.96);
}

.mobile-photo-crop-panel {
  width: min(100%, 360px);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.mobile-photo-crop-panel h2 {
  margin: 0;
  font-size: 1.1rem;
}

.mobile-photo-crop-stage {
  position: relative;
  width: min(100%, 320px);
  margin: 0 auto;
}

.mobile-photo-crop-stage canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  touch-action: none;
}

.mobile-photo-crop-mask {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  box-shadow: inset 0 0 0 9999px rgba(17, 24, 39, 0.18);
  pointer-events: none;
}

.mobile-photo-crop-zoom {
  display: grid;
  gap: 8px;
}

.mobile-photo-crop-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mobile-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fde8e8;
  color: #9b1c1c;
  font-size: 0.8rem;
}

.mobile-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.mobile-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8f0fe;
  color: #1f4b99;
  font-size: 0.82rem;
}

.mobile-chip-muted {
  background: #eef1f4;
  color: #5a6470;
}

.mobile-detail-split-row,
.mobile-panel.mobile-detail-section {
  border-top: 1px solid #d8dee6;
}

.mobile-detail-header {
  padding: 12px 16px 6px;
}

.mobile-detail-split-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 0;
}

.mobile-detail-split-row-has-phones {
  grid-template-columns: minmax(0, 1fr) 10.5rem;
}

.mobile-detail-col-relationships {
  margin-top: 0;
  min-width: 0;
}

.mobile-detail-col-phones {
  margin-top: 0;
  min-width: 0;
  border-left: 1px solid #d8dee6;
}

.mobile-detail-split-spacer {
  min-width: 0;
}

.mobile-detail-split-row:not(.mobile-detail-split-row-has-phones) .mobile-detail-col-relationships {
  grid-column: 1 / -1;
}

.mobile-panel.mobile-detail-section,
.mobile-panel.mobile-detail-section-compact {
  margin-top: 0;
  padding: 8px 16px;
}

.mobile-detail-section-compact {
  margin-top: 0;
  min-width: 0;
}

.mobile-detail-section-compact h2 {
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.mobile-detail-section-compact .mobile-detail-list li {
  padding: 5px 0;
}

.mobile-detail-section-compact .mobile-detail-link {
  font-size: 0.92rem;
  word-break: break-word;
}

.mobile-detail-section-compact .mobile-detail-value {
  font-size: 0.92rem;
  word-break: break-word;
}

.mobile-detail-section {
  margin-top: 0;
}

.mobile-detail-section h2 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.mobile-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-detail-list li {
  padding: 7px 0;
  border-bottom: 1px solid #e8edf2;
}

.mobile-detail-list li:last-child {
  border-bottom: 0;
}

.mobile-detail-link {
  display: block;
  color: #1f6feb;
  text-decoration: none;
  font-size: 1rem;
}

.mobile-detail-value {
  display: block;
}

.mobile-detail-type {
  display: block;
  margin-top: 2px;
  color: #5a6470;
  font-size: 0.85rem;
}

.mobile-address-list {
  display: grid;
  gap: 8px;
}

.mobile-address-card {
  padding: 10px;
  border: 1px solid #e8edf2;
  border-radius: 10px;
  background: #fafbfc;
}

.mobile-address-type {
  font-weight: 600;
  margin-bottom: 6px;
}

.mobile-address-lines {
  line-height: 1.4;
}

.mobile-map-links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.mobile-map-links a {
  color: #1f6feb;
  text-decoration: none;
  font-size: 0.9rem;
}

.mobile-detail-block + .mobile-detail-block {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e8edf2;
}

.mobile-detail-label {
  font-weight: 600;
  margin-bottom: 4px;
}

.preserve-breaks {
  white-space: pre-wrap;
}

.mobile-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  position: relative;
  z-index: 10;
}

.mobile-detail-topbar .mobile-back {
  margin-bottom: 0;
}

.mobile-detail-edit-link {
  flex-shrink: 0;
  color: #1f6feb;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 12px;
  margin: -8px -12px -8px 0;
  position: relative;
  z-index: 11;
}

.mobile-detail-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: center;
}

.mobile-app-footer .mobile-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  line-height: 1.2;
  text-align: center;
  margin: 0;
}

.mobile-detail-footer {
  padding: 0 16px 16px;
}

.mobile-detail-footer .mobile-button {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.mobile-notice {
  margin: 0;
  padding: 12px 16px;
  font-size: 0.92rem;
}

.mobile-notice-success {
  background: #e7f6ec;
  color: #1f6b3a;
}

.mobile-notice-error {
  background: #fde8e8;
  color: #9b1c1c;
}

.mobile-busy-modal {
  border: 0;
  margin: 0;
  padding: 16px;
  width: min(92vw, 360px);
  max-width: none;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(20, 28, 36, 0.24);
}

.mobile-busy-modal::backdrop {
  background: rgba(17, 24, 39, 0.48);
}

.mobile-busy-panel {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.mobile-busy-title {
  margin: 0;
  font-size: 1.15rem;
}

.mobile-busy-message {
  margin: 0;
  color: #5a6470;
  font-size: 0.95rem;
  line-height: 1.4;
}

.mobile-busy-error {
  margin: 0;
  color: #9b1c1c;
  font-size: 0.9rem;
  line-height: 1.4;
}

.mobile-busy-spinner {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 3px solid #dbe3ee;
  border-top-color: #1f6feb;
  animation: mobile-busy-spin 0.8s linear infinite;
}

.mobile-busy-dismiss {
  width: 100%;
  margin-top: 4px;
}

.mobile-busy-modal-success .mobile-busy-title {
  color: #1f6b3a;
}

.mobile-busy-modal-error .mobile-busy-title {
  color: #9b1c1c;
}

@keyframes mobile-busy-spin {
  to {
    transform: rotate(360deg);
  }
}

.mobile-edit-header h1 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.mobile-edit-section {
  border-top: 1px solid #d8dee6;
  padding-top: 12px;
  padding-bottom: 12px;
}

.mobile-edit-section h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.mobile-edit-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.mobile-edit-section-header h2 {
  margin: 0;
}

.mobile-edit-fields {
  display: grid;
  gap: 10px;
}

.mobile-edit-field {
  display: grid;
  gap: 4px;
}

.mobile-edit-label {
  color: #5a6470;
  font-size: 0.78rem;
  font-weight: 600;
}

.mobile-edit-field input[type="text"]:not([hidden]):not(.mobile-edit-custom-type-input),
.mobile-edit-field input[type="email"],
.mobile-edit-field input[type="tel"],
.mobile-edit-field select,
.mobile-edit-field textarea,
.mobile-edit-type-control select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ccd3db;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 1rem;
  line-height: 1.25;
  background: #fff;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.mobile-edit-type-control .mobile-edit-custom-type-wrap {
  display: none;
}

.mobile-edit-type-control .mobile-edit-custom-type-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ccd3db;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 1rem;
  line-height: 1.25;
  background: #fff;
  color: inherit;
}

.mobile-edit-field select,
.mobile-edit-type-control select {
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a6470' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 12px;
}

.mobile-edit-field textarea {
  resize: vertical;
  min-height: 44px;
}

.mobile-edit-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.mobile-edit-checkbox input {
  width: 18px;
  height: 18px;
}

.mobile-edit-add,
.mobile-edit-remove {
  border: 0;
  background: transparent;
  color: #1f6feb;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0;
}

.mobile-edit-remove {
  margin-top: 4px;
}

.mobile-edit-repeatable {
  display: grid;
  gap: 12px;
}

.mobile-edit-row {
  padding: 12px;
  border: 1px solid #e8edf2;
  border-radius: 12px;
  background: #fafbfc;
}

.mobile-edit-type-control {
  display: grid;
  gap: 8px;
}

.mobile-edit-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8px;
  align-items: center;
}

.mobile-button-secondary {
  background: #eef1f4;
  color: #1a1a1a;
}

[hidden] {
  display: none !important;
}

.mobile-assignment-modal {
  border: 0;
  padding: 0;
  width: min(92vw, 420px);
  max-width: calc(100vw - 24px);
  background: transparent;
}

.mobile-assignment-modal::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.mobile-assignment-modal-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.mobile-assignment-modal-title {
  margin: 0;
  font-size: 1.1rem;
}

.mobile-assignment-modal-copy {
  margin: 0;
  color: #5a6470;
  font-size: 0.92rem;
  line-height: 1.4;
}

.mobile-assignment-modal-field {
  display: grid;
  gap: 4px;
}

.mobile-assignment-modal-error {
  margin: 0;
  color: #9b1c1c;
  font-size: 0.88rem;
  min-height: 1.1em;
}

.mobile-assignment-modal-error:empty {
  display: none;
}

.mobile-assignment-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mobile-home-page {
  padding-bottom: 24px;
}

.mobile-home-panel {
  display: grid;
  gap: 14px;
}

.mobile-home-lead {
  margin: 0;
  color: #5a6470;
  line-height: 1.45;
}

.mobile-home-hint {
  margin: 0;
  color: #6b7280;
  font-size: 0.86rem;
  line-height: 1.4;
}

.mobile-home-primary-button {
  text-align: center;
  text-decoration: none;
}

.mobile-home-multi-editor {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid #d8dee6;
  display: grid;
  gap: 10px;
}

.mobile-home-multi-editor h2 {
  margin: 0;
  font-size: 1.05rem;
}

.mobile-home-signin-form {
  display: grid;
  gap: 10px;
}

.mobile-form-field {
  display: grid;
  gap: 4px;
}

.mobile-form-field span {
  color: #5a6470;
  font-size: 0.78rem;
  font-weight: 600;
}

.mobile-form-field input,
.mobile-form-field select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ccd3db;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 1rem;
  background: #fff;
}

.mobile-bottom-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 10px;
  color: #1c5fd4;
  font-weight: 700;
  text-decoration: none;
}

.mobile-bottom-nav-link.is-active {
  color: #123f8c;
}

.mobile-bottom-nav-link.is-busy {
  opacity: 0.55;
  pointer-events: none;
}

.mobile-pending-edits-page .mobile-app-scroll {
  padding-bottom: 8px;
}

.mobile-pending-edits-page .mobile-pending-edits-panel {
  margin: 0 12px 16px;
  display: grid;
  gap: 12px;
}

.mobile-pending-edits-list {
  display: grid;
  gap: 12px;
}

.mobile-pending-edits-entry {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid #e5e9ef;
  border-radius: 12px;
}

.mobile-pending-edits-entry-top {
  display: grid;
  grid-template-columns: minmax(72px, auto) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.mobile-pending-edits-contact-link {
  display: inline-block;
  margin-top: 2px;
  color: #1d4ed8;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.mobile-pending-edits-contact-link:hover {
  text-decoration: underline;
}

.mobile-pending-edits-date {
  padding-top: 10px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #4b5563;
  word-break: break-word;
}

.mobile-pending-edits-input,
.mobile-pending-edits-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ccd3db;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 1rem;
  line-height: 1.35;
  background: #fff;
}

.mobile-pending-edits-input {
  min-height: 44px;
}

.mobile-pending-edits-textarea {
  min-height: 88px;
  resize: vertical;
}

.mobile-pending-edits-textarea.is-completed {
  background: #eef6ee;
}

.mobile-pending-edits-add {
  width: 100%;
  margin: 0;
}

.mobile-pending-edits-actions {
  display: grid;
  gap: 10px;
}

.mobile-pending-edits-drive-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mobile-pending-edits-drive-actions .mobile-button {
  width: 100%;
  margin: 0;
}

.mobile-pending-edits-upload {
  background: #1f6feb;
  color: #fff;
}

.mobile-pending-edits-download {
  background: #15803d;
  color: #fff;
}

.mobile-pending-edits-upload-hint {
  margin: 8px 0 0;
  color: #4b5563;
  font-size: 0.88rem;
  line-height: 1.45;
}

.mobile-pending-edits-upload-status {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff8d6;
  color: #7a5b00;
  font-size: 0.88rem;
  line-height: 1.4;
}

.mobile-pending-edits-upload-status.is-quiet {
  background: #eef2f7;
  color: #5a6470;
}

.mobile-pending-edits-changes-display {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #ccd3db;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.95rem;
  line-height: 1.45;
  background: #fff;
  white-space: pre-wrap;
  word-break: break-word;
}

.mobile-pending-edits-changes-display.is-completed {
  background: #eef6ee;
}

.pending-change-field + .pending-change-field {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e5e9ef;
}

.pending-change-label {
  margin-bottom: 4px;
  color: #5a6470;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pending-change-completed-prefix {
  margin-bottom: 6px;
  font-weight: 800;
}

.pending-change-diff {
  color: #1a1a1a;
}

.pending-edit-old {
  background: #9be59b;
  color: inherit;
  padding: 0 1px;
}

.pending-edit-new {
  background: #fff34d;
  color: inherit;
  padding: 0 1px;
}

.pending-edit-arrow {
  color: #5a6470;
  padding: 0 4px;
}
