:root {
  --blue: #0f73ff;
  --blue-dark: #075fe3;
  --blue-soft: #eaf3ff;
  --bg: #f4f8ff;
  --card: #ffffff;
  --text: #172033;
  --muted: #66728a;
  --line: #dbe6f5;
  --green: #12a150;
  --orange: #ff7a0a;
  --red: #f42f4b;
  --gray: #626a88;
  --shadow: 0 16px 42px rgba(45, 92, 150, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #fff;
  border-right: 1px solid #e5edf8;
  display: flex;
  flex-direction: column;
}

.brand {
  height: 90px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #0d75ff, #0862ee);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255, 255, 255, 0.96);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 900;
}

.nav {
  padding: 40px 18px;
  display: grid;
  gap: 18px;
}

.nav-item,
.logout-button {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border-radius: 8px;
  color: #27334a;
  background: transparent;
  font-size: 17px;
  font-weight: 600;
  text-align: left;
}

.nav-item img,
.logout-button img {
  width: 24px;
  height: 24px;
}

.nav-item.active {
  background: #eaf3ff;
  color: var(--blue);
}

.logout-button {
  margin: auto 18px 28px;
  color: #586579;
}

.mobile-account-logout {
  display: none;
  margin-top: 18px;
  width: 100%;
}

.main {
  min-width: 0;
}

.topbar {
  height: 90px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #dfe8f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}

.page-title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.bell {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 24px;
}

.bell::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 8px;
  height: 8px;
  background: #f10722;
  border-radius: 50%;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 700;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(180deg, #dceaff, #eef5ff);
  padding: 8px;
}

.content {
  padding: 32px;
}

.card {
  background: var(--card);
  border: 1px solid #e4edf8;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 24px;
  margin-bottom: 24px;
}

.reminder-card,
.search-card {
  min-height: 174px;
  padding: 34px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reminder-left {
  display: flex;
  align-items: center;
  gap: 28px;
}

.large-icon {
  width: 92px;
  height: 92px;
  border-radius: 28px;
  background: #eef5ff;
  padding: 20px;
}

.reminder-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.reminder-count {
  color: #27334a;
  font-size: 22px;
  font-weight: 700;
}

.reminder-count strong {
  color: var(--blue);
  font-size: 44px;
  line-height: 1;
  margin-right: 8px;
}

.reminder-note,
.muted {
  color: var(--muted);
}

.primary-btn,
.outline-btn,
.ghost-btn,
.danger-btn,
.soft-btn {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
}

.primary-btn {
  background: linear-gradient(135deg, #0d75ff, #0066f5);
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 115, 255, 0.24);
}

.outline-btn {
  color: var(--blue);
  background: #fff;
  border: 1px solid var(--blue);
}

.ghost-btn {
  color: var(--blue);
  background: #eef5ff;
}

.soft-btn {
  color: #5c6980;
  background: #eef3fa;
}

.danger-btn {
  color: var(--red);
  background: #ffe9ee;
}

.search-card {
  justify-content: center;
}

.search-box {
  width: 100%;
  height: 56px;
  border: 1px solid #cfdced;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 8px 0 18px;
  color: #8390a4;
  background: #fff;
}

.search-box input {
  border: 0;
  outline: 0;
  width: 100%;
  color: var(--text);
  background: transparent;
}

.search-button {
  width: 44px;
  height: 40px;
  border-radius: 8px;
  background: #edf5ff;
  color: var(--blue);
  font-size: 22px;
  font-weight: 900;
  flex: 0 0 auto;
}

.search-button:hover {
  background: #dcecff;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  height: 150px;
  padding: 30px 22px;
  display: flex;
  align-items: center;
  gap: 22px;
  position: relative;
  cursor: pointer;
}

.stat-card.active {
  border-color: var(--blue);
}

.stat-card.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 48px;
  height: 5px;
  border-radius: 5px 5px 0 0;
  background: var(--blue);
  transform: translateX(-50%);
}

.stat-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #edf5ff;
  padding: 18px;
}

.stat-card.orange .stat-icon {
  background: #fff0e4;
}

.stat-card.red .stat-icon {
  background: #ffe9ee;
}

.stat-card.gray .stat-icon {
  background: #f0f0fb;
}

.stat-label {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
}

.stat-count {
  font-size: 42px;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
}

.stat-card.orange .stat-count {
  color: var(--orange);
}

.stat-card.red .stat-count {
  color: var(--red);
}

.stat-card.gray .stat-count {
  color: var(--gray);
}

.patient-list-card {
  padding: 26px 22px;
}

.list-title {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 800;
}

.patient-row {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) 150px 150px 140px 136px 32px;
  align-items: center;
  gap: 18px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.patient-row:first-of-type {
  border-top: 0;
}

.patient-basic {
  display: flex;
  align-items: center;
  gap: 22px;
}

.patient-basic .avatar {
  width: 78px;
  height: 78px;
  padding: 14px;
}

.patient-name-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.patient-name {
  font-size: 24px;
  font-weight: 900;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 800;
}

.status-normal {
  color: var(--green);
  background: #e8f9ee;
}

.status-upcoming {
  color: var(--orange);
  background: #fff1e5;
}

.status-expired {
  color: var(--red);
  background: #ffe9ee;
}

.status-dropped {
  color: var(--gray);
  background: #f0f1f7;
}

.mini-line {
  color: #5d6a7f;
  margin: 5px 0;
}

.column-label {
  color: #6b7890;
  margin-bottom: 10px;
}

.column-value {
  font-size: 18px;
  font-weight: 800;
}

.chevron {
  color: #8a96aa;
  font-size: 28px;
}

.empty {
  padding: 56px 0;
  text-align: center;
  color: var(--muted);
}

.account-grid {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 26px;
  align-items: start;
}

.stack {
  display: grid;
  gap: 24px;
}

.account-card,
.permission-card,
.data-card,
.detail-card,
.records-card {
  padding: 28px;
}

.section-title {
  margin: 0 0 26px;
  font-size: 22px;
  font-weight: 900;
}

.profile-line {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-bottom: 26px;
}

.profile-line .avatar {
  width: 92px;
  height: 92px;
  padding: 18px;
}

.profile-name {
  font-size: 26px;
  font-weight: 900;
}

.profile-meta {
  display: grid;
  gap: 0;
}

.profile-row,
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 56px;
  border-top: 1px solid var(--line);
  color: #5f6d83;
}

.profile-row strong,
.info-row strong {
  color: var(--text);
}

.data-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.data-actions .wide {
  grid-column: span 2;
}

.account-card .outline-btn.wide {
  width: 100%;
  margin-top: 18px;
}

.permission-block {
  padding: 0 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.permission-block:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.permission-title {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 8px;
}

.code-box {
  margin: 16px 0;
  min-height: 76px;
  border-radius: 8px;
  background: #edf5ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 34px;
  letter-spacing: 8px;
  font-weight: 900;
}

.inline-form {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}

.field,
.textarea,
.select {
  width: 100%;
  border: 1px solid #cfdced;
  border-radius: 8px;
  background: #fff;
  min-height: 48px;
  padding: 0 14px;
  outline: 0;
}

.textarea {
  min-height: 88px;
  padding: 12px 14px;
  resize: vertical;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #526178;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 28px;
}

.detail-profile-card {
  padding: 36px 34px 28px;
  margin-bottom: 28px;
  overflow: hidden;
}

.detail-profile-main {
  display: grid;
  grid-template-columns: 500px minmax(540px, 1fr) 204px;
  gap: 22px;
  align-items: stretch;
}

.detail-identity {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  padding-right: 24px;
  border-right: 1px solid var(--line);
  min-width: 0;
}

.detail-identity-top {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.detail-avatar {
  width: 118px;
  height: 118px;
  padding: 23px;
  flex: 0 0 auto;
  justify-self: start;
}

.detail-name-block {
  min-width: 0;
}

.detail-name {
  font-size: 34px;
  line-height: 1.1;
  font-weight: 900;
}

.detail-subtitle {
  margin-top: 14px;
  color: #526178;
  font-size: 18px;
}

.detail-contact-list {
  margin-top: 0;
  padding-left: 8px;
  display: grid;
  gap: 18px;
  align-content: end;
}

.detail-contact-row {
  display: grid;
  grid-template-columns: 24px 72px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  color: #5e6d84;
  font-size: 16px;
  overflow: visible;
}

.detail-contact-row.phone-row {
  grid-template-columns: 24px 72px minmax(0, max-content) auto;
}

.detail-contact-row img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
  overflow: visible;
  justify-self: center;
  align-self: center;
}

.detail-contact-row span {
  white-space: nowrap;
}

.detail-contact-row strong {
  color: #27334a;
  font-weight: 700;
}

.copy-mini-btn {
  height: 28px;
  min-width: 42px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid var(--blue);
  background: #fff;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  margin-left: 20px;
}

.detail-treatment-grid {
  align-self: center;
  display: grid;
  grid-template-columns: .95fr .95fr 1.12fr .86fr 1.12fr;
  gap: 0;
}

.detail-treatment-item {
  min-height: 94px;
  padding: 0 12px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-treatment-item:first-child {
  border-left: 0;
}

.detail-treatment-item.next-date .detail-label,
.detail-treatment-item.next-date .detail-value {
  color: var(--blue);
}

.detail-treatment-item.date-item .detail-value {
  font-size: 18px;
  line-height: 1.32;
  white-space: nowrap;
}

.detail-action-panel {
  padding-left: 24px;
  border-left: 1px solid var(--line);
  display: grid;
  gap: 14px;
  align-content: center;
}

.created-time {
  color: var(--text);
  font-size: 22px;
  line-height: 1.35;
  font-weight: 900;
  white-space: pre-line;
}

.detail-action-panel .outline-btn,
.detail-action-panel .soft-btn,
.detail-action-panel .danger-btn {
  width: 100%;
}

.detail-label {
  color: #6b7890;
  margin-bottom: 13px;
}

.detail-value {
  font-size: 20px;
  font-weight: 900;
}

.detail-remark {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: #526178;
  font-size: 18px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 26px;
  align-items: start;
}

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

.records-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.records-table th,
.records-table td {
  padding: 20px 24px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.records-table th {
  background: #f5f9ff;
  color: #64728a;
  font-weight: 800;
}

.records-table tr:last-child td {
  border-bottom: 0;
}

.user-table {
  margin-top: 10px;
}

.side-actions {
  display: grid;
  gap: 14px;
}

.qr-box {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 260px;
  background: #f6faff;
  border: 1px dashed #bdd4f3;
  border-radius: 10px;
}

.qr-target {
  min-width: 190px;
  min-height: 190px;
  display: grid;
  place-items: center;
}

.qr-target img,
.qr-target canvas {
  width: 190px !important;
  height: 190px !important;
}

.qr-error {
  width: 190px;
  height: 190px;
  border-radius: 10px;
  background: #fff;
  border: 1px dashed #d4dfef;
  color: #66728a;
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1.7;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-item label {
  display: block;
  color: #536178;
  font-weight: 800;
  margin-bottom: 8px;
}

.form-item.full {
  grid-column: span 2;
}

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(17, 28, 45, 0.42);
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal {
  width: min(860px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(16, 35, 70, 0.22);
}

.modal-head,
.modal-actions {
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.modal-actions {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  justify-content: flex-end;
  gap: 14px;
}

.modal-body {
  padding: 28px;
}

.dropout-modal {
  width: min(520px, 100%);
}

.dropout-options {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.dropout-option {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid #d9e5f3;
  background: #fff;
  color: #172033;
  text-align: left;
  font-weight: 800;
}

.dropout-option:hover {
  border-color: var(--blue);
  background: #edf5ff;
  color: var(--blue);
}

.close-btn {
  font-size: 28px;
  background: transparent;
  color: #67758a;
}

.login-wrap,
.survey-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.login-card {
  width: min(480px, 100%);
  padding: 36px;
  text-align: center;
}

.login-card .large-icon {
  margin: 0 auto 18px;
}

.login-card h1 {
  margin: 0 0 10px;
}

.login-card .field {
  margin: 16px 0 0;
}

.login-hint {
  margin: 16px 0 20px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff7e8;
  color: #805414;
  text-align: left;
  line-height: 1.6;
  font-size: 14px;
}

.survey-card {
  width: min(1040px, 100%);
  padding: 30px;
}

.survey-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
}

.notice {
  padding: 14px 16px;
  border-radius: 8px;
  background: #fff7e8;
  color: #805414;
  margin: 18px 0;
}

.score-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #eef3fa;
}

.score-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.score-btn {
  width: 42px;
  height: 36px;
  border-radius: 7px;
  border: 1px solid #d5e0ee;
  background: #fff;
  font-weight: 800;
}

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

.subsection {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.subsection-title {
  color: var(--blue);
  font-weight: 900;
  margin-bottom: 8px;
}

.totals {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.total-chip {
  padding: 10px 14px;
  border-radius: 8px;
  background: #edf5ff;
  color: var(--blue);
  font-weight: 900;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav {
    grid-template-columns: 1fr 1fr;
    padding: 14px;
  }

  .logout-button {
    margin: 0 14px 14px;
  }

  .dashboard-grid,
  .account-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .patient-row,
  .detail-profile-main,
  .detail-treatment-grid {
    grid-template-columns: 1fr;
  }

  .detail-identity,
  .detail-action-panel {
    border-left: 0;
    border-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .detail-treatment-item {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 18px 0 0;
  }

  .detail-treatment-item:first-child {
    border-top: 0;
  }
}

@media (max-width: 720px) {
  body {
    background: #eef6ff;
  }

  .app-shell {
    display: block;
    padding-bottom: 78px;
  }

  .sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    height: 72px;
    z-index: 60;
    border-top: 1px solid #dfe8f5;
    border-right: 0;
    box-shadow: 0 -10px 30px rgba(26, 70, 120, 0.08);
  }

  .brand,
  .logout-button {
    display: none;
  }

  .nav {
    height: 100%;
    padding: 0;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .nav-item {
    min-height: 72px;
    border-radius: 0;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    font-size: 12px;
    color: #6c778c;
  }

  .nav-item img {
    width: 24px;
    height: 24px;
  }

  .nav-item.active {
    background: #fff;
    color: var(--blue);
  }

  .topbar {
    height: 58px;
    padding: 0 16px;
    justify-content: center;
  }

  .page-title {
    font-size: 18px;
  }

  .top-actions {
    display: none;
  }

  .content {
    padding: 14px;
  }

  .card {
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(45, 92, 150, 0.08);
  }

  .dashboard-grid {
    gap: 12px;
    margin-bottom: 12px;
  }

  .reminder-card {
    min-height: 128px;
    padding: 18px;
    gap: 14px;
  }

  .reminder-left {
    gap: 14px;
  }

  .large-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    padding: 14px;
  }

  .reminder-title {
    font-size: 16px;
  }

  .reminder-count {
    font-size: 16px;
  }

  .reminder-count strong {
    font-size: 32px;
  }

  .reminder-note {
    font-size: 12px;
    line-height: 1.45;
  }

  .reminder-card .primary-btn {
    min-width: 118px;
    padding: 0 12px;
  }

  .search-card {
    min-height: auto;
    padding: 12px;
  }

  .search-box {
    height: 48px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
  }

  .stat-card {
    height: 94px;
    padding: 16px;
    gap: 12px;
  }

  .stat-icon {
    width: 46px;
    height: 46px;
    padding: 11px;
  }

  .stat-label {
    font-size: 14px;
  }

  .stat-count {
    font-size: 30px;
  }

  .patient-list-card {
    padding: 18px;
  }

  .list-title {
    font-size: 18px;
  }

  .patient-row {
    display: block;
    padding: 18px 0;
  }

  .patient-basic {
    align-items: flex-start;
    gap: 14px;
  }

  .patient-basic .avatar {
    width: 58px;
    height: 58px;
    padding: 11px;
  }

  .patient-name {
    font-size: 20px;
  }

  .patient-row > div:not(.patient-basic):not(.chevron) {
    display: grid;
    grid-template-columns: 92px 1fr;
    margin: 12px 0 0 72px;
  }

  .column-label {
    margin: 0;
  }

  .column-value {
    font-size: 15px;
    text-align: right;
  }

  .patient-row .outline-btn {
    width: calc(100% - 72px);
    margin: 16px 0 0 72px;
  }

  .chevron {
    display: none;
  }

  .account-grid {
    display: block;
  }

  .account-card,
  .permission-card,
  .data-card,
  .detail-card,
  .records-card {
    padding: 18px;
  }

  .permission-card,
  .data-card {
    margin-top: 12px;
  }

  .mobile-account-logout {
    display: inline-flex;
  }

  .profile-line .avatar {
    width: 70px;
    height: 70px;
    padding: 14px;
  }

  .profile-name {
    font-size: 22px;
  }

  .data-actions {
    grid-template-columns: 1fr;
  }

  .data-actions .wide {
    grid-column: auto;
  }

  .back-link {
    margin-bottom: 14px;
    font-size: 15px;
  }

  .detail-profile-card {
    padding: 18px;
    margin-bottom: 14px;
  }

  .detail-profile-main {
    gap: 18px;
  }

  .detail-identity {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 14px;
  }

  .detail-identity-top {
    grid-template-columns: 68px 1fr;
    gap: 14px;
  }

  .detail-avatar {
    width: 68px;
    height: 68px;
    padding: 13px;
  }

  .detail-name {
    font-size: 22px;
  }

  .detail-subtitle {
    margin-top: 8px;
    font-size: 15px;
  }

  .detail-contact-list {
    margin-top: 0;
    padding-left: 0;
    gap: 12px;
  }

  .detail-contact-row {
    font-size: 14px;
    flex-wrap: wrap;
  }

  .detail-contact-row img {
    width: 18px;
    height: 18px;
  }

  .copy-mini-btn {
    height: 30px;
    margin-left: 0;
  }

  .detail-treatment-grid {
    border-top: 1px solid var(--line);
    padding-top: 6px;
  }

  .detail-treatment-item {
    min-height: auto;
    display: grid;
    grid-template-columns: 92px 1fr;
    align-items: center;
    padding: 12px 0;
  }

  .detail-treatment-item:first-child {
    border-top: 0;
  }

  .detail-treatment-item .detail-label {
    margin-bottom: 0;
  }

  .detail-value {
    font-size: 16px;
    text-align: right;
  }

  .detail-action-panel {
    border-top: 1px solid var(--line);
    padding-top: 16px;
    grid-template-columns: 1fr;
  }

  .created-time {
    font-size: 17px;
  }

  .detail-remark {
    margin-top: 18px;
    padding-top: 16px;
    font-size: 15px;
  }

  .detail-layout {
    gap: 12px;
  }

  .records-head {
    gap: 12px;
    margin-bottom: 14px;
  }

  .records-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .records-table th,
  .records-table td {
    padding: 14px;
  }

  .modal-mask {
    align-items: end;
    padding: 0;
  }

  .modal {
    width: 100%;
    max-height: 88vh;
    border-radius: 16px 16px 0 0;
  }

  .modal-head,
  .modal-actions,
  .modal-body {
    padding: 18px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form-item.full {
    grid-column: auto;
  }

  .login-wrap,
  .survey-wrap {
    padding: 16px;
    align-items: start;
  }

  .login-card {
    margin-top: 10vh;
    padding: 24px;
  }

  .survey-card {
    padding: 18px;
  }

  .survey-header {
    display: block;
  }

  .survey-header .outline-btn {
    margin-top: 12px;
    width: 100%;
  }

  .score-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .score-btn {
    flex: 1 0 calc(25% - 8px);
    min-width: 48px;
    height: 40px;
  }
}
