:root {
  --blue: #2f67e8;
  --blue-strong: #1f55d8;
  --blue-soft: #eef5ff;
  --rail: #101827;
  --rail-active: #203960;
  --bg: #f4f6f9;
  --panel: #fff;
  --line: #e2e8f0;
  --line-soft: #edf1f6;
  --text: #172033;
  --muted: #8fa0b6;
  --weak: #9cadc2;
  --green-bg: #eaf2ff;
  --warning-bg: #fff3cf;
  --warning: #d59a11;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei",
    sans-serif;
  font-size: 13px;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

.ico {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 460px 1fr;
  background: var(--bg);
}

.login-brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px;
  background: #fff;
  border-right: 1px solid var(--line);
}

.logo-mark,
.rail-logo {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(180deg, #4b78ff, #2f67e8);
  font-weight: 800;
}

.brand-title {
  margin: 16px 0 10px;
  font-size: 24px;
  font-weight: 800;
}

.brand-desc,
.panel-subtitle,
.hint {
  color: var(--muted);
  line-height: 1.7;
}

.login-panel-wrap {
  display: grid;
  place-items: center;
  padding: 32px;
}

.login-panel {
  width: 420px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

.panel-title {
  margin-bottom: 4px;
  font-size: 20px;
  font-weight: 800;
}

.field,
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field {
  margin-bottom: 16px;
}

.field label,
.form-field strong {
  color: #273246;
  font-weight: 700;
}

.field input,
.field select,
.input-count,
.form-field select,
.form-field textarea {
  min-height: 46px;
  border: 1px solid #d5dde8;
  border-radius: 8px;
  background: #fff;
  outline: none;
}

.field input,
.field select,
.form-field select,
.form-field textarea {
  padding: 0 14px;
}

.field input:focus,
.field select:focus,
.input-count:focus-within,
.form-field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 103, 232, 0.1);
}

.form-field textarea {
  min-height: 92px;
  padding: 12px 14px;
  resize: vertical;
}

.location-field {
  position: relative;
}

.location-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.location-input-wrap input[data-location-input] {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d5dde8;
  border-radius: 8px;
  padding: 0 46px 0 14px;
  background: #fff;
  color: #1f2937;
  font-size: 14px;
  outline: none;
}

.location-input-wrap:focus-within input[data-location-input] {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 103, 232, 0.1);
}

.location-clear {
  position: absolute;
  right: 10px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #7b8aa0;
}

.location-clear .ico {
  width: 14px;
  height: 14px;
}

.location-suggest-panel {
  position: absolute;
  z-index: 25;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  max-height: 340px;
  overflow: auto;
  border: 1px solid #cfd8e6;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.location-suggest-panel button {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) 1fr;
  gap: 22px;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  padding: 16px 28px;
  background: #fff;
  text-align: left;
}

.location-suggest-panel button:hover {
  background: #f8fbff;
}

.location-suggest-panel strong {
  color: #46566c;
  font-size: 15px;
  font-weight: 800;
}

.location-suggest-panel span,
.location-empty {
  color: #7b8aa0;
  font-size: 14px;
  font-weight: 700;
}

.location-empty {
  padding: 16px 28px;
}

.hint {
  margin: 20px 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.error {
  min-height: 20px;
  color: #dc2626;
}

.app-shell {
  --rail-width: 70px;
  --subnav-width: 178px;
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--rail-width) var(--subnav-width) minmax(0, 1fr);
}

.app-shell.subnav-collapsed {
  --subnav-width: 0px;
}

.global-rail {
  position: relative;
  z-index: 5;
  background: var(--rail);
  color: #7f8b9d;
}

.rail-logo {
  margin: 12px auto 10px;
}

.rail-menu {
  display: flex;
  flex-direction: column;
}

.rail-item {
  height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: #7f8b9d;
  font-size: 12px;
  font-weight: 700;
}

.rail-item .ico {
  width: 22px;
  height: 22px;
}

.rail-item.active {
  color: #72a2ff;
  border-left-color: #2f67e8;
  background: var(--rail-active);
}

.subnav {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border-right: 1px solid var(--line);
  transition: width 0.18s ease;
}

.subnav-collapsed .subnav {
  width: 0;
  border-right: 0;
}

.subnav-head {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.collapse-btn,
.collapsed-toggle,
.icon-btn {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #d8e0eb;
  border-radius: 50%;
  background: #f8fafc;
  color: #8aa0bb;
}

.collapsed-toggle {
  position: fixed;
  top: 13px;
  left: 92px;
  z-index: 20;
  display: none;
}

.subnav-collapsed .collapsed-toggle {
  display: grid;
}

.subnav-menu {
  padding: 18px 0;
}

.menu-group-label {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  padding: 0 18px;
  background: transparent;
  color: #273246;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}

.menu-group-label > span {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-group-label .ico {
  color: var(--blue);
}

.menu-leaves {
  padding: 2px 0 10px;
}

.menu-leaf {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
  padding: 0 18px 0 38px;
  background: transparent;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.menu-leaf .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c8ced8;
}

.menu-leaf.active {
  color: var(--blue);
  background: #eaf2ff;
}

.menu-leaf.active .dot {
  background: var(--blue);
}

.main {
  height: 100vh;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #64748b;
  font-size: 14px;
}

.mobile-btn {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d6deea;
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: #56657a;
  font-weight: 700;
}

.visit-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 26px;
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
}

.visit-stats div {
  height: 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 0 18px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}

.visit-stats strong {
  color: var(--blue);
  font-size: 20px;
}

.visit-stats span {
  color: var(--muted);
  font-weight: 700;
}

.route-map {
  margin: 16px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.route-map-head {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.route-canvas {
  position: relative;
  height: 220px;
  background:
    linear-gradient(90deg, rgba(226, 232, 240, 0.5) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(rgba(226, 232, 240, 0.5) 1px, transparent 1px) 0 0 / 42px 42px,
    #f8fafc;
}

.route-canvas i {
  position: absolute;
  left: 19%;
  right: 22%;
  top: 46%;
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
  transform: rotate(17deg);
}

.route-start,
.route-point {
  position: absolute;
  z-index: 1;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
}

.route-start {
  left: 16%;
  top: 36%;
  background: #16a34a;
}

.route-point {
  background: var(--blue);
}

.bell {
  position: relative;
}

.bell b {
  position: absolute;
  top: -12px;
  right: -9px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
}

.avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2858c7;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.user-name {
  color: #344055;
  font-weight: 800;
}

.logout-link {
  border: 0;
  background: transparent;
  color: var(--muted);
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
  overflow: hidden;
}

.breadcrumb {
  margin-bottom: 16px;
  color: #9aa9bc;
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb strong {
  color: #273246;
}

.list-card {
  height: calc(100vh - 132px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.list-titlebar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #202b3c;
  font-size: 15px;
}

.section-title span {
  width: 4px;
  height: 26px;
  display: inline-block;
  border-radius: 999px;
  background: var(--blue);
}

.list-actions,
.filter-actions,
.drawer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #d6deea;
  border-radius: 8px;
  padding: 0 16px;
  background: #fff;
  color: #44536a;
  font-size: 14px;
  font-weight: 800;
}

.btn.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.btn.light {
  background: #fff;
  color: #63738c;
}

.btn.big {
  min-width: 92px;
  height: 48px;
}

.filterbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
}

.filter-actions {
  margin-left: auto;
}

.searchbox {
  width: 330px;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d6deea;
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: #8aa0bb;
}

.searchbox input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: none;
  color: #1f2937;
  font-size: 14px;
}

.table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  display: flex;
  flex-direction: column;
  overflow: auto;
  scrollbar-gutter: stable;
}

.data-table {
  min-width: 1180px;
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  height: 45px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  white-space: nowrap;
  color: #354052;
  font-size: 13px;
  font-weight: 700;
}

.data-table th {
  height: 44px;
  color: #6f8096;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 800;
}

.check-cell {
  width: 48px;
}

.check-cell input {
  width: 18px;
  height: 18px;
}

.name-link {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.muted {
  color: #9aa9bc;
}

.status-badge,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 26px;
  border-radius: 999px;
  padding: 0 12px;
  background: var(--green-bg);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.status-badge.warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.pill.success {
  border: 1px solid #16a34a;
  background: #fff;
  color: #16a34a;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.row-actions button {
  border: 0;
  background: transparent;
  color: #7a8aa2;
  font-weight: 800;
}

.row-actions button:first-child {
  color: var(--blue);
}

.table-scrollbar {
  height: 10px;
  padding: 0;
  background: #eef2f7;
}

.table-scrollbar span {
  display: block;
  width: 96%;
  height: 8px;
  border-radius: 999px;
  background: #cbd5e1;
}

.pagination {
  position: sticky;
  bottom: 0;
  z-index: 2;
  flex-shrink: 0;
  margin-top: auto;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  background: #fff;
  border-top: 1px solid var(--line-soft);
}

.pagination > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pager,
.pagination input {
  width: 42px;
  height: 36px;
  border: 1px solid #d6deea;
  border-radius: 6px;
  background: #fff;
  color: #64748b;
  font-weight: 800;
}

.pager.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.pager.disabled {
  color: #cbd5e1;
}

.modal-mask,
.drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.42);
}

.modal-mask {
  display: grid;
  place-items: center;
  padding: 28px;
}

.modal {
  width: min(1120px, calc(100vw - 56px));
  max-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.modal-head {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  border-bottom: 1px solid var(--line);
}

.modal-title {
  font-size: 20px;
  font-weight: 900;
}

.modal-subtitle {
  margin-top: 6px;
  color: #8fa0b6;
  font-size: 13px;
  font-weight: 700;
}

.modal-body {
  flex: 1;
  overflow: auto;
  padding: 24px 30px 90px;
}

.modal-foot {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 0 30px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.form-section {
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.form-section-head {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  background: #fbfcfe;
  border-bottom: 1px solid var(--line);
}

.form-section-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 26px;
}

.plan-mode-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.plan-mode-strip span {
  height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #d6deea;
  border-radius: 8px;
  padding: 0 12px;
  background: #f8fbff;
  color: #50627a;
  font-weight: 800;
}

.plan-mode-strip span.active,
.plan-mode-strip span:first-child,
.plan-mode-strip span:nth-child(2),
.plan-mode-strip span:nth-child(3) {
  color: var(--blue);
  border-color: #bfd0ff;
  background: #eef5ff;
}

.visit-type-select {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding-bottom: 18px;
}

.visit-type-card {
  min-height: 96px;
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 4px 16px;
  border: 1px solid #dce5f1;
  border-radius: 12px;
  padding: 16px 18px;
  background: #fff;
  text-align: left;
}

.visit-type-card span {
  grid-row: span 2;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eaf2ff;
  color: var(--blue);
  font-size: 18px;
  font-weight: 900;
}

.visit-type-card strong {
  color: #172033;
  font-size: 17px;
  font-weight: 900;
}

.visit-type-card em {
  color: #718096;
  font-size: 14px;
  font-style: normal;
  line-height: 1.45;
}

.visit-type-card:hover {
  border-color: var(--blue);
  box-shadow: 0 14px 34px rgba(47, 103, 232, 0.12);
}

.visit-type-card.purple span {
  background: #f5f3ff;
  color: #7c3aed;
}

.visit-type-card.green span {
  background: #ecfdf5;
  color: #059669;
}

.visit-org-table {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 1.2fr 1fr 1fr 1.5fr 0.6fr;
  gap: 0;
  padding: 18px 24px 24px;
  overflow-x: auto;
}

.visit-org-table > div {
  min-height: 42px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  padding: 0 10px;
  color: #354052;
  font-weight: 700;
  white-space: nowrap;
}

.visit-org-table > div:nth-child(-n + 7) {
  color: #6f8096;
  background: #f8fafc;
  font-weight: 900;
}

.weekly-preview {
  display: grid;
  gap: 10px;
  padding: 18px 24px 24px;
}

.weekly-preview div {
  min-height: 44px;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 0 14px;
}

.weekly-preview strong {
  color: #172033;
}

.weekly-preview span {
  color: #44536a;
  font-weight: 800;
}

.weekly-preview em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.form-field em {
  color: #ef4444;
  font-style: normal;
  margin-right: 3px;
}

.input-count {
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.input-count input {
  min-width: 0;
  flex: 1;
  height: 42px;
  border: 0;
  outline: none;
  color: #1f2937;
}

.input-count span {
  color: #98a5b8;
}

.detail-drawer {
  width: min(980px, 64vw);
  height: 100vh;
  margin-left: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -18px 0 50px rgba(0, 0, 0, 0.18);
}

.drawer-head {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.drawer-type-title {
  color: #607089;
  font-size: 14px;
  font-weight: 800;
}

.drawer-tools {
  display: flex;
  gap: 14px;
  color: #8aa0bb;
}

.drawer-summary {
  min-height: 46px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 0 20px 10px;
  border-bottom: 1px solid var(--line);
}

.record-logo {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eaf2ff;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.record-title {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #172033;
  font-size: 17px;
  font-weight: 900;
}

.record-title .pill {
  min-width: 48px;
  height: 24px;
  padding: 0 12px;
  font-size: 13px;
  line-height: 22px;
}

.drawer-actions .btn {
  height: 34px;
  min-width: 66px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
}

.drawer-actions .btn .ico {
  width: 15px;
  height: 15px;
}

.drawer-actions .btn.light {
  min-width: 42px;
  padding: 0 12px;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.drawer-meta {
  min-height: 42px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  color: #8fa0b6;
  font-size: 13px;
  font-weight: 700;
}

.drawer-meta b {
  color: #172033;
}

.tabs {
  min-height: 44px;
  display: flex;
  align-items: end;
  gap: 22px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}

.tabs button {
  height: 38px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #607089;
  font-size: 13px;
  font-weight: 800;
}

.tabs button.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.drawer-body {
  flex: 1;
  overflow: auto;
  padding: 16px 20px 22px;
}

.detail-section {
  margin-bottom: 24px;
}

.detail-section .section-title {
  padding-bottom: 10px;
  font-size: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 48px;
  padding-top: 16px;
}

.detail-item label {
  display: block;
  margin-bottom: 7px;
  color: #8fa0b6;
  font-size: 13px;
  font-weight: 800;
}

.detail-item strong {
  color: #172033;
  font-size: 14px;
  font-weight: 900;
}

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

.visit-type-tabs {
  display: flex;
  align-items: center;
  gap: 34px;
  min-height: 42px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.visit-type-tabs button {
  position: relative;
  height: 42px;
  border: 0;
  background: transparent;
  color: #607089;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.visit-type-tabs button.active {
  color: var(--blue);
}

.visit-type-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 3px 3px 0 0;
  background: var(--blue);
}

.visit-type-context {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #d9e6ff;
  border-radius: 10px;
  background: #f4f8ff;
  color: #315da8;
  font-weight: 900;
}

.route-plan-form .form-section,
.weekly-route-form .form-section {
  border-color: #d9e6ff;
}

.route-plan-form .form-section:first-of-type,
.weekly-route-form .form-section:first-of-type {
  background: linear-gradient(180deg, #fbfdff 0%, #fff 52%);
}

.route-plan-form .visit-org-table {
  border-color: #cfdcff;
  background: #fbfdff;
}

.weekly-route-form .weekly-preview div {
  border: 1px solid #e3eaf6;
  background: #fbfdff;
}

.mobile-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #edf2f7;
}

.mobile-app-frame {
  position: relative;
  width: min(390px, calc(100vw - 22px));
  height: min(812px, calc(100vh - 22px));
  margin: 0 auto;
  overflow: hidden;
  border: 10px solid #1f2937;
  border-radius: 42px;
  background: #f5f7fa;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.22);
}

.mobile-notch {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 20;
  width: 120px;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 0 0 18px 18px;
  background: #1f2937;
}

.mobile-statusbar {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  background: #fff;
  color: #172033;
  font-size: 12px;
  font-weight: 900;
}

.mobile-shell {
  height: calc(100% - 32px);
  overflow-y: auto;
  padding: 10px 14px 76px;
  background: #f5f7fa;
}

.mobile-login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 26px 22px 18px;
  background: #fff;
}

.mobile-login-brand div:last-child {
  display: grid;
  gap: 4px;
}

.mobile-login-brand strong {
  color: #172033;
  font-size: 20px;
  font-weight: 900;
}

.mobile-login-brand span {
  color: var(--muted);
  font-weight: 800;
}

.mobile-login-card {
  margin: 18px 14px;
  display: grid;
  gap: 14px;
  border-radius: 16px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
}

.mobile-login-card label {
  display: grid;
  gap: 8px;
  color: #607089;
  font-weight: 800;
}

.mobile-login-card input {
  height: 44px;
  border: 1px solid #d6deea;
  border-radius: 10px;
  padding: 0 12px;
  outline: none;
}

.mobile-login-card a {
  justify-self: center;
  color: var(--blue);
  font-weight: 800;
}

.mobile-head {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-head strong {
  color: #172033;
  font-size: 17px;
  font-weight: 900;
}

.mobile-head a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 9px;
  border: 1px solid #d8e1ee;
  border-radius: 7px;
  background: #fff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.mobile-mini-logo {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.mobile-workbench,
.mobile-collect-panel,
.mobile-dashboard,
.mobile-nav-grid {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.mobile-home-hero {
  position: relative;
  display: grid;
  gap: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 15px 14px 12px;
  border-radius: 13px;
  background: linear-gradient(135deg, #1f5bea 0%, #3b74f0 100%);
  color: #fff;
}

.mobile-home-hero span,
.mobile-home-hero em {
  display: block;
  position: relative;
  z-index: 1;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  opacity: 0.86;
}

.mobile-home-hero strong {
  display: block;
  position: relative;
  z-index: 1;
  margin: 3px 0;
  font-size: 19px;
  font-weight: 900;
}

.mobile-hero-circle {
  position: absolute;
  top: 0;
  right: -16px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.mobile-home-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mobile-home-stats div {
  display: grid;
  place-items: center;
  min-height: 55px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
}

.mobile-home-stats strong {
  margin: 0;
  font-size: 19px;
}

.mobile-home-stats span {
  color: #fff;
  font-size: 11px;
}

.mobile-section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 7px 0 8px;
  color: #172033;
  font-size: 13px;
  font-weight: 900;
}

.mobile-calendar-card,
.mobile-schedule-card {
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.calendar-head button {
  border: 0;
  background: transparent;
  color: #7890ad;
}

.calendar-head strong {
  color: #172033;
  font-size: 14px;
  font-weight: 900;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px 10px;
  text-align: center;
}

.calendar-grid span,
.calendar-grid button {
  min-height: 28px;
  border: 0;
  background: transparent;
  color: #263449;
  font-size: 12px;
}

.calendar-grid span {
  color: #8fa0b6;
  font-weight: 900;
}

.calendar-grid .weekend {
  color: #fb2d3d;
}

.calendar-grid button {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.calendar-grid button.active {
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

.calendar-grid button i {
  height: 8px;
  color: #f59e0b;
  font-style: normal;
  font-size: 9px;
  line-height: 5px;
}

.calendar-legend {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #eef2f7;
  color: #607089;
  font-size: 11px;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.calendar-legend i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f59e0b;
}

.calendar-legend span + span i {
  background: var(--blue);
}

.mobile-schedule-card > strong {
  display: block;
  margin-bottom: 8px;
  color: #172033;
  font-size: 12px;
  font-weight: 900;
}

.mobile-schedule-card article {
  position: relative;
  padding: 12px;
  border: 1px solid #dce5f1;
  border-radius: 10px;
  background: #fbfdff;
}

.mobile-schedule-card article div:first-child {
  color: #172033;
  font-size: 13px;
  font-weight: 900;
}

.mobile-schedule-card article > span {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 5px;
  padding: 2px 6px;
  background: #eaf1ff;
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
}

.mobile-schedule-card p {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 7px 0 0;
  color: #607089;
  font-size: 11px;
  font-weight: 800;
}

.mobile-workbench-section {
  padding: 0 0 12px;
  border-radius: 13px;
  background: #fff;
}

.mobile-workbench-section + .mobile-workbench-section {
  margin-top: 10px;
}

.mobile-workbench-title {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 37px;
  padding: 0 13px;
  border-bottom: 1px solid #eef2f7;
}

.mobile-workbench-title span {
  width: 3px;
  height: 15px;
  border-radius: 999px;
  background: var(--blue);
}

.mobile-workbench-section.orange .mobile-workbench-title span {
  background: #f59e0b;
}

.mobile-workbench-section.cyan .mobile-workbench-title span {
  background: #0891b2;
}

.mobile-workbench-section.purple .mobile-workbench-title span,
.mobile-workbench-section.violet .mobile-workbench-title span {
  background: #7c3aed;
}

.mobile-workbench-section.green .mobile-workbench-title span,
.mobile-workbench-section.teal .mobile-workbench-title span {
  background: #10b981;
}

.mobile-workbench-section.red .mobile-workbench-title span {
  background: #ef4444;
}

.mobile-workbench-title strong {
  flex: 1;
  color: #172033;
  font-size: 13px;
  font-weight: 900;
}

.mobile-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px 10px;
  padding: 20px 14px 2px;
}

.mobile-tile {
  display: grid;
  place-items: center;
  gap: 9px;
  min-height: 66px;
  border: 0;
  padding: 0;
  background: transparent;
}

.mobile-tile span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ecfeff;
  color: var(--blue);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.mobile-tile span .ico {
  width: 22px;
  height: 22px;
}

.mobile-tile span.tone-cyan {
  background: #e9fffb;
  color: #0891b2;
}

.mobile-tile span.tone-blue,
.mobile-tile span.tone-blue-soft {
  background: #f2f7ff;
  color: #2f67e8;
}

.mobile-tile span.tone-green,
.mobile-tile span.tone-green-soft {
  background: #edfff6;
  color: #10b981;
}

.mobile-tile span.tone-yellow,
.mobile-tile span.tone-orange {
  background: #fff6d9;
  color: #f59e0b;
}

.mobile-tile span.tone-purple,
.mobile-tile span.tone-purple-soft,
.mobile-tile span.tone-violet {
  background: #f7f2ff;
  color: #7c3aed;
}

.mobile-tile span.tone-red,
.mobile-tile span.tone-red-soft {
  background: #fff1f2;
  color: #ef4444;
}

.mobile-tile span.tone-gray {
  background: #f6f9fc;
  color: #94a3b8;
}

.mobile-tile em {
  color: #263449;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.mobile-icon-tile {
  cursor: pointer;
}

.mobile-icon-tile:active {
  transform: scale(0.98);
}

.mobile-back {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: #eef5ff;
  color: var(--blue);
}

.mobile-action-list {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.mobile-action-list .btn {
  flex: 1;
}

.mobile-page-form {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.mobile-page-form label {
  display: grid;
  gap: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.mobile-page-form input,
.mobile-page-form select,
.mobile-page-form textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d6deea;
  border-radius: 9px;
  padding: 8px 10px;
  background: #fff;
  color: #172033;
  font-size: 13px;
  outline: none;
}

.mobile-page-form textarea {
  min-height: 86px;
  resize: vertical;
}

.mobile-location-field {
  position: relative;
}

.mobile-location-field > span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.mobile-page-form .mobile-location-field .location-input-wrap input[data-location-input] {
  min-height: 38px;
  border-radius: 9px;
  padding: 8px 38px 8px 10px;
  font-size: 13px;
}

.mobile-location-field .location-clear {
  right: 8px;
  width: 22px;
  height: 22px;
}

.mobile-location-suggest {
  top: calc(100% + 6px);
  max-height: 260px;
  border-radius: 10px;
}

.mobile-location-suggest button {
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 11px 12px;
}

.mobile-location-suggest strong {
  font-size: 13px;
}

.mobile-location-suggest span {
  font-size: 12px;
}

.mobile-search-box {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  border: 1px solid #dce5f1;
  border-radius: 9px;
  padding: 0 10px;
  background: #fff;
  color: #9aacbf;
}

.mobile-search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: none;
  color: #263449;
  font-size: 13px;
}

.mobile-count {
  margin: 0 0 10px;
  color: #8fa0b6;
  font-size: 12px;
  font-weight: 800;
}

.mobile-master-list {
  display: block;
}

.mobile-list-card {
  margin-bottom: 10px;
  padding: 13px 13px 10px;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.07);
}

.mobile-list-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.mobile-list-card-head strong {
  color: #172033;
  font-size: 14px;
  font-weight: 900;
}

.mobile-status-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  border-radius: 999px;
  padding: 0 9px;
  background: #eaf2ff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.mobile-status-pill.running {
  background: #fff3cf;
  color: #d97706;
}

.mobile-status-pill.done {
  background: #dcfce7;
  color: #16a34a;
}

.mobile-status-pill.danger {
  background: #fee2e2;
  color: #ef4444;
}

.mobile-list-card p {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 7px 0;
  color: #607089;
  font-size: 12px;
  font-weight: 800;
}

.mobile-card-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #eef2f7;
}

.mobile-card-footer button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.mobile-fab {
  position: absolute;
  right: 22px;
  bottom: 76px;
  z-index: 11;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

.mobile-detail-hero,
.mobile-detail-section {
  margin-bottom: 12px;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.07);
}

.mobile-master-detail {
  margin-bottom: 12px;
}

.mobile-detail-hero {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 8px 12px;
  padding: 13px;
}

.detail-hero-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #eaf2ff;
  color: var(--blue);
}

.mobile-detail-hero strong {
  color: #172033;
  font-size: 14px;
  font-weight: 900;
}

.mobile-detail-hero em {
  display: block;
  margin-top: 4px;
  color: #9aacbf;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}

.mobile-detail-hero p {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: #607089;
  font-size: 12px;
  font-weight: 800;
}

.mobile-detail-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 12px;
  border-bottom: 1px solid #dce5f1;
  background: #fff;
}

.mobile-detail-tabs button {
  height: 38px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: #fff;
  color: #607089;
  font-size: 12px;
  font-weight: 900;
}

.mobile-detail-tabs button.active {
  border-bottom-color: var(--blue);
  color: var(--blue);
}

.mobile-detail-section {
  overflow: hidden;
}

.mobile-detail-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 13px;
  border-bottom: 1px solid #eef2f7;
}

.mobile-detail-section-title span {
  width: 3px;
  height: 16px;
  border-radius: 999px;
  background: var(--blue);
}

.mobile-detail-section-title strong {
  color: #172033;
  font-size: 14px;
  font-weight: 900;
}

.mobile-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 12px 13px;
}

.mobile-detail-grid div {
  min-height: 58px;
  border-bottom: 1px solid #f1f5f9;
}

.mobile-detail-grid label {
  display: block;
  margin-bottom: 5px;
  color: #8fa0b6;
  font-size: 11px;
  font-weight: 900;
}

.mobile-detail-grid strong {
  color: #172033;
  font-size: 13px;
  font-weight: 900;
}

.mobile-tag-row {
  display: flex;
  gap: 8px;
  padding: 13px;
}

.mobile-tag-row span {
  border-radius: 999px;
  padding: 5px 10px;
  background: #f3e8ff;
  color: #7c3aed;
  font-size: 12px;
  font-weight: 900;
}

.mobile-fixed-actions {
  position: sticky;
  bottom: 58px;
  display: grid;
  grid-template-columns: 0.8fr 0.8fr 1.5fr;
  gap: 8px;
  margin: 14px -14px -10px;
  padding: 12px 14px;
  border-top: 1px solid #eef2f7;
  background: #fff;
}

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

.mobile-mode-list span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 6px 9px;
  background: #eef5ff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.execute-timeline {
  display: grid;
  gap: 10px;
}

.execute-timeline div {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 4px 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e3eaf6;
  border-radius: 10px;
  background: #fbfdff;
}

.execute-timeline span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.execute-timeline strong {
  color: #172033;
  font-size: 14px;
  font-weight: 900;
}

.execute-timeline em {
  color: #8fa0b6;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.mobile-execute-timeline {
  margin: 12px 0;
}

.mobile-dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mobile-dashboard div {
  min-height: 62px;
  display: grid;
  align-content: center;
  gap: 4px;
  border-radius: 12px;
  padding: 0 12px;
  background: #f8fafc;
}

.mobile-dashboard span {
  color: #8fa0b6;
  font-size: 12px;
  font-weight: 800;
}

.mobile-dashboard strong {
  color: var(--blue);
  font-size: 20px;
  font-weight: 900;
}

.mobile-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mobile-workbench-page .mobile-nav-grid {
  display: block;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.mobile-workbench.compact {
  padding: 0 0 12px;
  background: transparent;
  box-shadow: none;
}

.mobile-nav-grid button {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: #eef5ff;
  color: #2f67e8;
  font-weight: 900;
}

.mobile-nav-grid .mobile-tile {
  min-height: 66px;
  border-radius: 0;
  background: transparent;
}

.mobile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-tabs button,
.mobile-grid button,
.mobile-bottom button {
  border: 0;
  background: transparent;
  color: #64748b;
  font-weight: 800;
}

.mobile-tabs button {
  height: 34px;
  border-radius: 999px;
  background: #f1f5f9;
  padding: 0 12px;
}

.mobile-tabs button.active {
  color: var(--blue);
  background: var(--blue-soft);
}

.mobile-form {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.mobile-form label {
  display: grid;
  gap: 6px;
  color: #607089;
  font-weight: 800;
}

.mobile-form input,
.mobile-form textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d6deea;
  border-radius: 8px;
  padding: 8px 10px;
  color: #172033;
  outline: none;
}

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

.visit-card {
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fff;
}

.visit-card + .visit-card {
  margin-top: 10px;
}

.visit-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.visit-card-top strong {
  color: #172033;
  font-size: 14px;
}

.visit-card p {
  margin: 8px 0 0;
  color: #64748b;
  line-height: 1.5;
}

.visit-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.mobile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.mobile-grid button {
  height: 42px;
  border-radius: 10px;
  background: #f8fafc;
}

.voice-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.mobile-bottom {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 10;
  width: 100%;
  height: 58px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  background: #fff;
}

.mobile-bottom button {
  position: relative;
  display: grid;
  place-items: center;
  gap: 2px;
  font-size: 10px;
}

.mobile-bottom button.active {
  color: var(--blue);
}

.mobile-bottom button b {
  position: absolute;
  top: 6px;
  right: 26px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  line-height: 14px;
}

.float-plus {
  position: fixed;
  right: max(18px, calc((100vw - 430px) / 2 + 18px));
  bottom: 74px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 26px;
  box-shadow: 0 10px 24px rgba(47, 103, 232, 0.28);
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 72px var(--subnav-width) minmax(0, 1fr);
  }

  .detail-drawer {
    width: min(760px, 82vw);
  }

  .form-section-body,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .visit-type-select {
    grid-template-columns: 1fr;
  }
}
