* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
  min-height: 100%;
  margin: 0;
  color: #15201d;
  background: #f4f6f5;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overscroll-behavior-y: contain;
}

.wechat-shell {
  width: 100%;
  min-height: 100dvh;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}

.mobile-page {
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 16px;
  background: #ffffff;
  overflow-x: hidden;
}

.mobile-page.pull-refresh-moving {
  transition: transform 120ms ease-out;
}

.pull-refresh-indicator {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  left: 50%;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid #d9e9e4;
  border-radius: 999px;
  padding: 8px 14px;
  color: #0f766e;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(24, 38, 34, 0.14);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -64px) scale(0.96);
  transition: opacity 140ms ease, transform 140ms ease;
}

.pull-refresh-indicator.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.pull-refresh-indicator.is-ready {
  color: #ffffff;
  border-color: #0f766e;
  background: #0f766e;
}

.pull-refresh-spinner {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  opacity: 0.78;
}

.pull-refresh-indicator.is-refreshing .pull-refresh-spinner {
  animation: pull-refresh-spin 760ms linear infinite;
}

@keyframes pull-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

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

.page-title {
  margin: 0 0 16px;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
}

.section-title {
  margin: 24px 0 12px;
  font-size: 1rem;
  font-weight: 700;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 12px;
}

.section-head .section-title {
  margin: 0;
}

.section-link,
.back-link {
  flex: 0 0 auto;
  color: #0f766e;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.section-link:hover,
.section-link:focus,
.back-link:hover,
.back-link:focus {
  color: #0f766e;
  text-decoration: none;
}

.compact-section-title {
  margin: 14px 0 8px;
  font-size: 0.9375rem;
}

.task-filter-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin: -4px 0 12px;
  border-radius: 8px;
  padding: 4px;
  background: #edf1ef;
}

.task-filter-tab {
  display: grid;
  place-items: center;
  min-height: 34px;
  border-radius: 8px;
  color: #66736f;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.task-filter-tab:hover,
.task-filter-tab:focus {
  color: #66736f;
  text-decoration: none;
}

.task-filter-tab.active {
  color: #ffffff;
  background: #0f766e;
}

.task-filter-tab.active:hover,
.task-filter-tab.active:focus {
  color: #ffffff;
}

.mobile-card {
  border: 1px solid #e5ece9;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.card-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.page-header {
  margin-bottom: 16px;
}

.page-subtitle {
  margin: -8px 0 0;
  color: #66736f;
  font-size: 0.875rem;
  line-height: 1.6;
}

.notice-message {
  border: 1px solid #b9e7dc;
  border-radius: 8px;
  margin-bottom: 14px;
  padding: 10px 12px;
  color: #0f766e;
  background: #eef8f5;
  font-size: 0.875rem;
}

.notice-error {
  border-color: #f1b4ac;
  color: #b42318;
  background: #fff4f2;
}

.auth-panel {
  display: grid;
  align-content: center;
  min-height: calc(100dvh - 124px);
}

.auth-copy {
  margin: 0 0 24px;
  color: #66736f;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.auditor-login {
  display: grid;
  align-content: center;
  min-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  padding: 8px 0 12px;
}

.auditor-login-brand {
  margin-bottom: 22px;
}

.auditor-login-brand span {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  border-radius: 8px;
  padding: 0 10px;
  color: #0f766e;
  background: #dcf7ef;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
}

.auditor-login-brand h1 {
  margin: 14px 0 6px;
  color: #15201d;
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1.2;
}

.auditor-login-brand p {
  margin: 0;
  color: #66736f;
  font-size: 0.875rem;
  line-height: 1.5;
}

.auditor-login-form {
  display: grid;
  gap: 8px;
}

.auditor-login-form .validation-summary-valid {
  display: none;
}

.auditor-field {
  display: grid;
  gap: 6px;
  margin: 0;
}

.auditor-field span {
  color: #4b5b56;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}

.auditor-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d9e3df;
  border-radius: 8px;
  padding: 0 14px;
  color: #15201d;
  background: #ffffff;
  outline: none;
}

.auditor-field input:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.auditor-field input::placeholder {
  color: #9aa7a3;
}

.auditor-login-button {
  min-height: 46px;
  margin-top: 6px;
}

.scan-page {
  display: grid;
  gap: 14px;
  padding-bottom: 12px;
}

.scan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 8px;
  padding: 16px;
  color: #ffffff;
  background: #0f766e;
}

.scan-header span,
.scan-header h1 {
  display: block;
}

.scan-header span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.8125rem;
  line-height: 1.3;
}

.scan-header h1 {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
}

.scan-header strong {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 10px;
  color: #0f766e;
  background: #ffffff;
  font-size: 0.8125rem;
  line-height: 1;
}

.scan-panel,
.manual-check-form {
  display: grid;
  gap: 10px;
  border: 1px solid #e5ece9;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.scan-frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: #15201d;
}

.scan-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scan-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 20px;
  color: #ffffff;
  text-align: center;
  background: #15201d;
}

.scan-placeholder[hidden] {
  display: none;
}

.scan-placeholder span {
  width: 104px;
  height: 104px;
  border: 2px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.06);
}

.scan-placeholder strong {
  font-size: 1rem;
  line-height: 1.35;
}

.scan-placeholder p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.8125rem;
}

.scan-result {
  min-height: 42px;
  border-radius: 8px;
  padding: 11px 12px;
  color: #66736f;
  background: #f2f6f4;
  font-size: 0.875rem;
  line-height: 1.4;
}

.scan-result-ready {
  color: #0f766e;
  background: #eef8f5;
}

.scan-result-error {
  color: #b42318;
  background: #fff4f2;
}

.scan-action:disabled {
  opacity: 0.78;
}

.secondary-action {
  width: 100%;
  min-height: 46px;
  border: 1px solid #b9e7dc;
  border-radius: 8px;
  color: #0f766e;
  background: #eef8f5;
  font-weight: 700;
}

.bind-form {
  display: grid;
  gap: 10px;
}

.mobile-input {
  min-height: 48px;
  border-color: #d9e3df;
  border-radius: 8px;
}

.field-error {
  min-height: 20px;
  font-size: 0.8125rem;
}

.primary-action {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  margin-top: 8px;
  color: #ffffff;
  background: #0f766e;
  font-weight: 700;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric-item {
  min-width: 0;
  border-radius: 8px;
  padding: 12px;
  background: #eef8f5;
}

.metric-label {
  display: block;
  color: #66736f;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.metric-value {
  display: block;
  margin-top: 4px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.captain-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 8px;
  padding: 16px;
  color: #ffffff;
  background: #0f766e;
}

.captain-info {
  min-width: 0;
  flex: 1 1 auto;
}

.captain-card span,
.captain-card p {
  color: rgba(255, 255, 255, 0.76);
}

.captain-card span {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.captain-card h2 {
  margin: 4px 0;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
}

.captain-card p {
  margin: 0;
  font-size: 0.8125rem;
}

.captain-card > strong {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 10px;
  color: #0f766e;
  background: #ffffff;
  font-size: 0.8125rem;
}

.captain-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 12px;
}

.captain-code-row div {
  min-width: 0;
}

.captain-code-row b {
  display: block;
  overflow-wrap: anywhere;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.35;
}

.copy-code-button {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
}

.copy-code-button:disabled {
  opacity: 0.75;
}

.overview-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.overview-strip div {
  min-width: 0;
  border: 1px solid #e5ece9;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.overview-strip span {
  display: block;
  color: #66736f;
  font-size: 0.75rem;
  line-height: 1.4;
}

.overview-strip strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-size: 0.9375rem;
  line-height: 1.25;
}

.test-code-card {
  margin-top: 14px;
  background: #fbfdfc;
}

.test-code-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.test-code-head span {
  display: block;
  color: #0f766e;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
}

.test-code-head h2 {
  margin: 2px 0 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.test-code-head strong {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  color: #0f766e;
  background: #dcf7ef;
  font-size: 0.75rem;
  line-height: 1;
}

.test-code-desc {
  margin: 0 0 12px;
  color: #66736f;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.dashboard-summary div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-summary span {
  color: #66736f;
  font-size: 0.875rem;
}

.dashboard-summary strong {
  font-size: 1.25rem;
}

.dashboard-summary p {
  margin: 10px 0 0;
  color: #66736f;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.todo-list {
  display: grid;
  gap: 10px;
}

.todo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e5ece9;
  border-radius: 8px;
  padding: 12px 14px;
  color: #15201d;
  background: #ffffff;
  text-decoration: none;
}

.todo-row:hover,
.todo-row:focus {
  color: #15201d;
  text-decoration: none;
}

.todo-row strong,
.todo-row span {
  display: block;
}

.todo-row strong {
  font-size: 0.9375rem;
}

.todo-row span {
  margin-top: 3px;
  color: #66736f;
  font-size: 0.8125rem;
}

.todo-row b {
  flex: 0 0 auto;
  color: #0f766e;
  font-size: 0.875rem;
}

.balance-card {
  border-radius: 8px;
  padding: 16px;
  color: #ffffff;
  background: #0f766e;
}

.balance-label {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.balance-card > strong {
  display: block;
  margin-top: 6px;
  font-size: 2rem;
  line-height: 1.1;
}

.balance-card p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.balance-subgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.balance-subgrid div {
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.12);
}

.balance-subgrid span,
.balance-subgrid b {
  display: block;
}

.balance-subgrid span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
}

.balance-subgrid b {
  margin-top: 2px;
  font-size: 0.9375rem;
}

.reward-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.reward-summary-green {
  gap: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #0f766e;
}

.reward-summary-green .metric-item {
  color: #ffffff;
  border-radius: 0;
  background: transparent;
}

.reward-summary-green .metric-item:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.reward-summary-green .metric-item:nth-child(n + 3) {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.reward-summary-green .metric-label {
  color: rgba(255, 255, 255, 0.74);
}

.reward-summary-green .metric-value {
  color: #ffffff;
}

.rule-list,
.record-list {
  display: grid;
  gap: 10px;
}

.rule-row,
.record-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e5ece9;
  border-radius: 8px;
  padding: 12px 14px;
  background: #ffffff;
}

.rule-row h3,
.record-row h3 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
}

.rule-row p,
.record-row p {
  margin: 4px 0 0;
  color: #66736f;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.rule-row strong,
.record-row strong {
  flex: 0 0 auto;
  text-align: right;
  font-size: 0.9375rem;
}

.amount-positive {
  color: #0f766e;
}

.amount-negative {
  color: #b42318;
}

.detail-page-header {
  display: grid;
  gap: 8px;
}

.detail-page-header .page-title {
  margin-bottom: 0;
}

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

.detail-title-row .page-title {
  min-width: 0;
}

.back-action {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 72px;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 14px;
  color: #ffffff;
  background: #0f766e;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.back-action:hover,
.back-action:focus {
  color: #ffffff;
  text-decoration: none;
}

.detail-record-list {
  display: grid;
  gap: 10px;
}

.detail-record-card {
  border: 1px solid #e5ece9;
  border-radius: 8px;
  padding: 12px 14px;
  background: #ffffff;
}

.detail-record-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.detail-record-head h3 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
}

.detail-record-head p {
  margin: 4px 0 0;
  color: #66736f;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.detail-record-head strong {
  flex: 0 0 auto;
  text-align: right;
  font-size: 0.9375rem;
}

.record-note {
  margin: 8px 0 0;
  border-top: 1px solid #edf1ef;
  padding-top: 8px;
  color: #66736f;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.record-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 8px;
  border-top: 1px solid #edf1ef;
  padding-top: 8px;
  color: #66736f;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  border-top: 1px solid #edf1ef;
  padding-top: 10px;
}

.detail-grid div {
  min-width: 0;
}

.detail-grid span,
.detail-grid b {
  display: block;
}

.detail-grid span {
  color: #66736f;
  font-size: 0.75rem;
  line-height: 1.35;
}

.detail-grid b {
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.detail-grid-wide {
  grid-column: 1 / -1;
}

.pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.pager span {
  color: #66736f;
  font-size: 0.8125rem;
  font-weight: 700;
}

.pager-button {
  display: grid;
  place-items: center;
  min-height: 40px;
  border-radius: 8px;
  color: #ffffff;
  background: #0f766e;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.pager-button:hover,
.pager-button:focus {
  color: #ffffff;
  text-decoration: none;
}

.pager-button.disabled {
  color: #95a09c;
  background: #edf1ef;
  pointer-events: none;
}

.compact-empty {
  padding: 18px 14px;
}

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

.task-card {
  border: 1px solid #e5ece9;
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
}

.task-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.task-card h3 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
}

.task-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.task-title-row h3 {
  min-width: 0;
}

.task-completed-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px 7px;
  color: #ffffff;
  background: #0f766e;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
}

.task-card-head p,
.task-desc {
  margin: 2px 0 0;
  color: #66736f;
  font-size: 0.75rem;
  line-height: 1.4;
}

.task-desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.status-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.status-running {
  color: #0f766e;
  background: #dcf7ef;
}

.status-waiting {
  color: #7c5a16;
  background: #fff2cc;
}

.status-ended {
  color: #66736f;
  background: #edf1ef;
}

.task-progress-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: #66736f;
  font-size: 0.75rem;
}

.task-progress-row strong {
  color: #15201d;
}

.progress-track {
  height: 6px;
  border-radius: 999px;
  margin-top: 5px;
  overflow: hidden;
  background: #edf1ef;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0f766e;
}

.task-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.task-chip-list span {
  max-width: 100%;
  min-height: 24px;
  border-radius: 8px;
  padding: 4px 7px;
  color: #4b5b56;
  background: #f2f6f4;
  font-size: 0.75rem;
  line-height: 1.3;
}

.tier-list {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.tier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #edf1ef;
  padding-top: 5px;
  color: #66736f;
  font-size: 0.75rem;
  line-height: 1.3;
}

.tier-row strong {
  color: #15201d;
  text-align: right;
}

.task-action {
  min-height: 40px;
  margin-top: 8px;
}

.empty-state {
  border: 1px dashed #cfdad6;
  border-radius: 8px;
  padding: 28px 16px;
  text-align: center;
  background: #fafbfb;
}

.empty-state h2 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.empty-state p {
  margin: 0;
  color: #66736f;
  font-size: 0.875rem;
}

.deputy-list {
  display: grid;
  gap: 10px;
}

.deputy-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e5ece9;
  border-radius: 8px;
  padding: 12px 14px;
  background: #ffffff;
}

.deputy-card h3 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
}

.deputy-card p {
  margin: 4px 0 0;
  color: #66736f;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.deputy-code-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: #66736f;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.deputy-code-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.deputy-code-row b {
  color: #15201d;
  font-weight: 700;
}

.deputy-copy-button {
  flex: 0 0 auto;
  border: 1px solid #b9e7dc;
  border-radius: 8px;
  padding: 5px 9px;
  color: #0f766e;
  background: #eef8f5;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.deputy-copy-button:disabled {
  opacity: 0.72;
}

.deputy-card > span {
  flex: 0 0 auto;
  color: #66736f;
  font-size: 0.8125rem;
}

.bottom-tabs {
  position: fixed;
  right: max(12px, calc((100vw - 430px) / 2 + 12px));
  bottom: max(12px, env(safe-area-inset-bottom));
  left: max(12px, calc((100vw - 430px) / 2 + 12px));
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 6px;
  max-width: 406px;
  min-height: 64px;
  margin: 0 auto;
  border: 1px solid #e5ece9;
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(24, 38, 34, 0.14);
  backdrop-filter: blur(12px);
  z-index: 20;
}

.bottom-tab {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 48px;
  flex: 1;
  border-radius: 8px;
  color: #66736f;
  font-size: 0.8125rem;
  line-height: 1.2;
  text-decoration: none;
}

.bottom-tab:hover,
.bottom-tab:focus {
  color: #66736f;
  text-decoration: none;
}

.bottom-tab.active {
  color: #ffffff;
  background: #0f766e;
  font-weight: 700;
}

.bottom-tab.active:hover,
.bottom-tab.active:focus {
  color: #ffffff;
}

.bottom-tab-icon {
  width: 23px;
  height: 23px;
  margin-bottom: 3px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 431px) {
  .mobile-page {
    min-height: 100vh;
    box-shadow: 0 0 32px rgba(24, 38, 34, 0.08);
  }
}
