:root {
  color-scheme: light;
  --ink: #101828;
  --muted: #697386;
  --line: #e4eaf2;
  --soft: #f3f7fc;
  --paper: #ffffff;
  --blue: #1877ed;
  --blue-dark: #0f63cf;
  --blue-soft: #eaf3ff;
  --green: #20a071;
  --amber: #c78016;
  --red: #df5c68;
  --shadow: 0 12px 35px rgba(39, 71, 118, 0.09);
  --card-radius: 24px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf3fb;
  --muted: #a8b3c4;
  --line: #29364a;
  --soft: #111827;
  --paper: #192235;
  --blue-soft: #1a3354;
  --shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--soft);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

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

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(24, 119, 237, 0.25);
  outline-offset: 2px;
}

button:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: 108px;
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

:root[data-theme="dark"] .topbar,
:root[data-theme="dark"] .bottom-nav {
  background: rgba(25, 34, 53, 0.94);
}

.topbar-inner {
  display: flex;
  width: min(960px, calc(100% - 48px));
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

.topbar h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
}

.top-actions,
.customer-contact-inner,
.customer-contact-heading,
.section-heading,
.task-actions,
.task-status-row,
.task-status-row > div,
.task-status-row dl,
.task-status-row dl div,
.export-actions,
.record-toolbar,
.record-filters,
.photo-toolbar,
.photo-viewer-bar,
.photo-viewer-actions,
.account-band,
.connection-badge {
  display: flex;
  align-items: center;
}

.top-actions {
  gap: 10px;
}

.round-icon-button,
.icon-command {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #627084;
  cursor: pointer;
}

.round-icon-button:hover,
.icon-command:hover {
  border-color: var(--line);
  background: var(--paper);
  color: var(--blue);
}

.round-icon-button svg {
  width: 27px;
  height: 27px;
}

.profile-button {
  border-color: var(--line);
  background: var(--paper);
}

.sun-icon {
  display: none;
}

:root[data-theme="dark"] .moon-icon {
  display: none;
}

:root[data-theme="dark"] .sun-icon {
  display: block;
}

.status-dot {
  display: inline-flex;
  min-width: 88px;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.status-dot i,
#task-indicator,
.connection-badge i {
  display: block;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #d09b24;
}

.status-dot.online i,
#task-indicator.success,
.connection-badge i {
  background: #24b47e;
}

.status-dot.error i,
#task-indicator.error {
  background: var(--red);
}

.customer-contact-bar {
  position: sticky;
  z-index: 25;
  top: 84px;
  border-bottom: 1px solid #cfe0f5;
  background: #eef6ff;
}

:root[data-theme="dark"] .customer-contact-bar {
  border-color: #29415e;
  background: #152a46;
}

.customer-contact-inner {
  width: min(960px, calc(100% - 48px));
  min-height: 52px;
  gap: 9px;
  margin: 0 auto;
}

.customer-contact-heading {
  gap: 7px;
  margin-right: 4px;
  color: var(--blue-dark);
}

.customer-contact-heading svg {
  width: 18px;
  height: 18px;
}

.customer-contact-chip {
  display: grid;
  min-width: 0;
  min-height: 36px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid #c8daf1;
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
}

.customer-contact-chip:hover {
  border-color: var(--blue);
}

.customer-contact-channel,
.customer-contact-copy {
  font-size: 11px;
}

.customer-contact-channel {
  font-weight: 800;
}

.customer-contact-chip strong {
  overflow: hidden;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-contact-copy {
  color: var(--muted);
}

.qq-channel {
  color: var(--blue);
}

.wechat-channel {
  color: #159669;
}

main {
  width: min(960px, calc(100% - 48px));
  margin: 0 auto;
}

.access-view {
  display: grid;
  min-height: calc(100vh - 136px);
  place-items: center;
  padding: 36px 0;
}

.access-panel {
  width: min(480px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.access-panel h2 {
  margin: 5px 0 24px;
  font-size: 28px;
}

.access-panel label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
}

.inline-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

input,
select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

input {
  min-width: 0;
  padding: 0 13px;
}

select {
  padding: 0 36px 0 13px;
}

.login-view,
.workspace {
  padding: 34px 0 28px;
}

.overview-hero {
  min-height: 360px;
  padding: 48px;
  border-radius: 30px;
  background: linear-gradient(115deg, #1372ec 0%, #287ff0 48%, #6bb2fa 100%);
  color: white;
  box-shadow: 0 18px 40px rgba(31, 115, 229, 0.2);
}

.hero-kicker {
  display: block;
  font-size: 16px;
  font-weight: 750;
}

.overview-hero h2 {
  max-width: 710px;
  margin: 18px 0 12px;
  font-size: 42px;
  line-height: 1.32;
}

.overview-hero > p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.75;
}

.hero-action {
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-top: 32px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: white;
  color: #1668bd;
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(15, 85, 176, 0.1);
}

.hero-action:hover {
  background: #f4f9ff;
}

.hero-action svg {
  width: 26px;
  height: 26px;
}

.account-band {
  justify-content: space-between;
  gap: 18px;
}

.account-identity strong {
  display: block;
  margin-top: 2px;
  font-size: 18px;
}

.connection-badge {
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
}

.overview-hero-connected h2 {
  margin-top: 28px;
}

.qr-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  align-items: center;
  gap: 38px;
  margin-top: 28px;
  padding: 34px 42px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.qr-copy h3 {
  margin: 7px 0 8px;
  font-size: 26px;
}

.qr-copy > p {
  margin: 0 0 17px;
  color: var(--muted);
}

.privacy-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}

.privacy-line i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--red);
}

.qr-frame,
.qr-placeholder,
.qr-image {
  width: 250px;
  height: 250px;
}

.qr-frame {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.qr-placeholder {
  display: grid;
  width: 228px;
  height: 228px;
  place-content: center;
  border: 1px dashed #b9c9dc;
  color: var(--muted);
  text-align: center;
}

.qr-placeholder svg {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  color: var(--blue);
}

.qr-placeholder p {
  margin: 9px 0 0;
}

.qr-image {
  width: 228px;
  height: 228px;
  object-fit: contain;
  image-rendering: pixelated;
}

.section-index {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  font-weight: 750;
}

.metric-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.metric-card {
  display: grid;
  min-height: 160px;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  border: 1px solid rgba(226, 233, 243, 0.75);
  border-radius: var(--card-radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.metric-card > div {
  min-width: 0;
}

.metric-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 18px;
  background: var(--icon-bg);
  color: var(--accent);
}

.metric-icon svg {
  width: 31px;
  height: 31px;
}

.metric-card span:not(.metric-icon) {
  display: block;
  color: var(--muted);
  font-size: 16px;
  font-weight: 650;
}

.metric-card strong {
  display: block;
  overflow: hidden;
  margin: 1px 0;
  font-size: 34px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-card small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-blue {
  --accent: #1779de;
  --icon-bg: #edf5ff;
}

.metric-purple {
  --accent: #8855dc;
  --icon-bg: #f2ecff;
}

.metric-green {
  --accent: #1c9f71;
  --icon-bg: #e7f8f2;
}

.metric-amber {
  --accent: #c68119;
  --icon-bg: #fff4df;
}

.metric-rose {
  --accent: #d85c73;
  --icon-bg: #ffedf1;
}

.metric-cyan {
  --accent: #178dab;
  --icon-bg: #e5f7fb;
}

:root[data-theme="dark"] .metric-icon {
  background: color-mix(in srgb, var(--accent) 18%, var(--paper));
}

.primary-button,
.secondary-button,
.icon-command {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
}

.primary-button {
  background: var(--blue);
  color: white;
  font-weight: 700;
}

.primary-button:hover {
  background: var(--blue-dark);
}

.secondary-button {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
  font-weight: 650;
}

.secondary-button:hover {
  border-color: #a9bdd6;
  color: var(--blue);
}

.icon-command {
  width: 46px;
  padding: 0;
  border-color: var(--line);
  border-radius: 50%;
  background: var(--paper);
  font-size: 18px;
}

.section-heading,
.record-toolbar,
.photo-toolbar,
.photo-viewer-bar {
  justify-content: space-between;
  gap: 22px;
}

.section-heading h2,
.section-heading h3,
.record-toolbar h2,
.photo-toolbar h2,
.more-card h2,
.export-section h2 {
  margin: 5px 0 0;
  font-size: 25px;
}

.recent-section {
  margin-top: 38px;
}

.record-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.record-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.record-meta strong,
.record-meta time,
.record-category {
  display: block;
}

.record-meta time {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.record-category {
  width: max-content;
  margin-top: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
}

.record-content {
  min-width: 0;
}

.record-content > p {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.record-pictures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 15px;
}

.record-pictures img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--soft);
  object-fit: cover;
}

.record-comments {
  margin-top: 15px;
  padding: 13px 15px;
  border-radius: 10px;
  background: var(--soft);
}

.record-comments p {
  margin: 5px 0;
  overflow-wrap: anywhere;
}

.record-counts {
  min-width: 72px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.record-counts span {
  display: block;
  margin-bottom: 5px;
}

.empty-state {
  min-height: 150px;
  margin-top: 18px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.compact-empty {
  min-height: 110px;
}

.record-toolbar,
.photo-toolbar {
  margin-bottom: 24px;
}

.record-filters {
  gap: 9px;
}

.search-field {
  display: grid;
  width: 280px;
  grid-template-columns: auto 1fr;
  align-items: center;
  padding-left: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.search-field svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.search-field input {
  border: 0;
  background: transparent;
  outline: 0;
}

.pagination {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.pagination span {
  min-width: 76px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.photo-tile {
  display: grid;
  overflow: hidden;
  margin: 0;
  grid-template-rows: auto 56px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  cursor: pointer;
  box-shadow: var(--shadow);
}

.photo-tile img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--soft);
  object-fit: cover;
}

.photo-tile figcaption {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
}

.photo-tile figcaption strong,
.photo-tile figcaption time {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-tile figcaption time {
  color: var(--muted);
  font-size: 11px;
}

.task-section,
.more-card,
.export-section {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.task-options {
  display: flex;
  gap: 13px;
  margin-top: 28px;
}

.task-options label {
  display: grid;
  grid-template-columns: auto minmax(120px, 150px);
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.progress-track {
  overflow: hidden;
  height: 8px;
  margin-top: 30px;
  border-radius: 999px;
  background: #e7edf6;
}

:root[data-theme="dark"] .progress-track {
  background: #29364a;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1675ed, #64aff8);
  transition: width 180ms ease;
}

.progress-track span.running {
  width: 38%;
  animation: progress 1.2s ease-in-out infinite alternate;
}

@keyframes progress {
  from { transform: translateX(-20%); }
  to { transform: translateX(160%); }
}

.task-status-row {
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
}

.task-status-row > div {
  gap: 9px;
}

.task-status-row dl {
  gap: 25px;
  margin: 0;
}

.task-status-row dl div {
  gap: 6px;
}

.task-status-row dt {
  color: var(--muted);
  font-size: 11px;
}

.task-status-row dd {
  margin: 0;
  font-weight: 700;
}

.more-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 24px;
}

.more-card p,
.export-section p {
  margin: 8px 0 0;
  color: var(--muted);
}

.export-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
}

.export-actions {
  gap: 9px;
}

.bottom-nav {
  position: fixed;
  z-index: 40;
  bottom: 18px;
  left: 50%;
  display: grid;
  width: min(620px, calc(100% - 32px));
  min-height: 76px;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(38, 63, 100, 0.17);
  backdrop-filter: blur(20px);
  transform: translateX(-50%);
}

.tab-button {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 62px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 4px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #667284;
  cursor: pointer;
}

.tab-button svg {
  width: 25px;
  height: 25px;
}

.tab-button > span {
  overflow: hidden;
  max-width: 100%;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab-button.active {
  background: #eaf3ff;
  color: var(--blue);
}

:root[data-theme="dark"] .tab-button.active {
  background: #203d63;
}

.tab-button b {
  display: none;
}

.photo-viewer {
  width: min(960px, calc(100% - 30px));
  max-width: none;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
}

.photo-viewer::backdrop {
  background: rgba(9, 18, 32, 0.82);
}

.photo-viewer-bar {
  min-height: 66px;
  padding: 10px 15px 10px 20px;
  border-bottom: 1px solid var(--line);
}

.photo-viewer-bar strong,
.photo-viewer-bar span {
  display: block;
}

.photo-viewer-bar span {
  color: var(--muted);
  font-size: 11px;
}

.photo-viewer-actions {
  gap: 8px;
}

.photo-viewer > img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 100px);
  object-fit: contain;
}

.toast {
  position: fixed;
  z-index: 60;
  right: 22px;
  bottom: 112px;
  max-width: min(420px, calc(100vw - 44px));
  padding: 12px 15px;
  border-radius: 10px;
  background: #142137;
  color: white;
  box-shadow: var(--shadow);
}

@media (max-width: 760px) {
  .app-shell {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .topbar-inner,
  .customer-contact-inner,
  main {
    width: calc(100% - 28px);
  }

  .topbar-inner {
    min-height: 76px;
  }

  .topbar h1 {
    font-size: 26px;
  }

  .top-actions {
    gap: 6px;
  }

  .status-dot {
    display: none;
  }

  .round-icon-button {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .customer-contact-bar {
    top: 76px;
  }

  .customer-contact-inner {
    display: grid;
    min-height: 58px;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    padding: 8px 0;
  }

  .customer-contact-heading {
    display: none;
  }

  .customer-contact-chip {
    min-height: 42px;
    padding: 0 9px;
  }

  .login-view,
  .workspace {
    padding-top: 20px;
  }

  .overview-hero {
    min-height: 0;
    padding: 30px 28px;
    border-radius: 27px;
  }

  .hero-kicker {
    font-size: 14px;
  }

  .overview-hero h2 {
    margin-top: 13px;
    font-size: 30px;
    line-height: 1.38;
  }

  .overview-hero > p {
    font-size: 16px;
    line-height: 1.75;
  }

  .hero-action {
    min-height: 58px;
    margin-top: 25px;
    font-size: 18px;
  }

  .overview-hero-connected h2 {
    margin-top: 22px;
  }

  .qr-stage {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 24px;
    padding: 28px 22px;
    text-align: center;
  }

  .privacy-line {
    justify-content: center;
  }

  .metric-stack {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 18px;
  }

  .metric-card {
    min-height: 138px;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 22px;
    padding: 24px 26px;
    border-radius: 24px;
  }

  .metric-icon {
    width: 58px;
    height: 58px;
    border-radius: 17px;
  }

  .metric-icon svg {
    width: 29px;
    height: 29px;
  }

  .metric-card strong {
    font-size: 31px;
  }

  .recent-section {
    margin-top: 30px;
  }

  .record-toolbar,
  .photo-toolbar,
  .section-heading,
  .export-section {
    align-items: stretch;
    flex-direction: column;
  }

  .record-filters,
  .search-field,
  .photo-toolbar select {
    width: 100%;
  }

  .record-filters {
    align-items: stretch;
    flex-direction: column;
  }

  .record-item {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
  }

  .record-meta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 12px;
  }

  .record-meta time {
    grid-column: 1;
  }

  .record-category {
    grid-row: 1 / 3;
    grid-column: 2;
    align-self: start;
    margin-top: 0;
  }

  .record-counts {
    display: flex;
    gap: 14px;
    text-align: left;
  }

  .photo-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .photo-tile {
    grid-template-rows: auto 50px;
    border-radius: 13px;
  }

  .photo-tile figcaption {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0;
  }

  .task-section,
  .more-card,
  .export-section {
    padding: 25px;
  }

  .task-actions,
  .task-actions button,
  .export-actions,
  .export-actions a {
    width: 100%;
  }

  .task-options,
  .task-status-row {
    align-items: stretch;
    flex-direction: column;
  }

  .task-options label {
    grid-template-columns: 76px 1fr;
  }

  .task-status-row dl {
    justify-content: space-between;
    gap: 8px;
  }

  .more-card {
    grid-template-columns: 58px 1fr;
  }

  .bottom-nav {
    bottom: 0;
    width: 100%;
    min-height: calc(78px + env(safe-area-inset-bottom));
    padding: 7px 7px env(safe-area-inset-bottom);
    border-width: 1px 0 0;
    border-radius: 0;
    box-shadow: 0 -8px 24px rgba(38, 63, 100, 0.09);
  }

  .tab-button {
    min-height: 64px;
    border-radius: 12px;
  }

  .tab-button b {
    display: none;
  }

  .toast {
    right: 14px;
    bottom: calc(92px + env(safe-area-inset-bottom));
    max-width: calc(100vw - 28px);
  }
}

@media (max-width: 380px) {
  .customer-contact-copy {
    display: none;
  }

  .overview-hero {
    padding: 27px 23px;
  }

  .overview-hero h2 {
    font-size: 27px;
  }

  .metric-card {
    gap: 17px;
    padding: 22px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
