:root {
  --bg: #f4f9fc;
  --bg-card: #ffffff;
  --primary: #6eb5e8;
  --primary-light: #e3f2fc;
  --primary-dark: #4a90c8;
  --sky: #b8dff5;
  --cloud: #d8ecf8;
  --mint: #a8d8e8;
  --text: #3d4f5c;
  --text-light: #7a8f9e;
  --border: #dceaf2;
  --shadow: 0 4px 20px rgba(74, 144, 200, 0.12);
  --btn-shadow: 0 4px 14px rgba(74, 144, 200, 0.35);
  --chart-height: #6eb5e8;
  --chart-weight: #5eb8d4;
  --radius: 16px;
  --radius-sm: 10px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font-display: 'ZCOOL KuaiLe', 'Noto Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 10% 20%, var(--primary-light) 0%, transparent 42%),
    radial-gradient(circle at 90% 80%, var(--cloud) 0%, transparent 38%),
    radial-gradient(circle at 50% 0%, var(--sky) 0%, transparent 28%);
  color: var(--text);
  min-height: 100dvh;
  line-height: 1.5;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(12px + var(--safe-bottom));
}

/* Header */
.header {
  text-align: center;
  padding: 24px 20px 12px;
  position: relative;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 4px;
}

.header-actions {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-settings,
.btn-export {
  padding: 6px 10px;
  font-size: 0.72rem;
  color: var(--primary-dark);
  background: var(--primary-light);
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-body);
  white-space: nowrap;
}

.btn-settings:hover,
.btn-export:hover {
  border-color: var(--primary);
  background: var(--bg-card);
}

.header-actions .btn-logout {
  position: static;
  transform: none;
}

.header-deco {
  font-size: 1.5rem;
}

.btn-logout {
  padding: 6px 12px;
  font-size: 0.75rem;
  color: var(--text-light);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-logout:hover {
  color: var(--primary-dark);
  border-color: var(--primary);
}

.user-bar {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 6px;
}

.sync-status {
  color: var(--text-light);
}

.sync-status.sync-ok {
  color: #3d8b5a;
}

.sync-status.sync-err {
  color: #c45c5c;
}

.title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--primary-dark);
  letter-spacing: 0.05em;
}

.subtitle {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  padding: 8px 10px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 249, 252, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: 1 0 auto;
  min-width: 3.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  color: var(--text-light);
  transition: all 0.2s;
}

.tab-icon {
  font-size: 1.25rem;
}

.tab-label {
  font-size: 0.65rem;
  font-weight: 500;
}

.tab.active {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.tab:active {
  transform: scale(0.96);
}

/* Content */
.content {
  flex: 1;
  padding: 8px 16px 16px;
}

.panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-intro {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

/* Forms */
.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field > span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
}

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

input[type="text"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
}

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

.radio-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.radio-pill {
  flex: 1;
  min-width: 70px;
}

.radio-pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-pill span {
  display: block;
  text-align: center;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg);
}

.radio-pill input:checked + span {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
  font-weight: 500;
}

.btn {
  padding: 12px 20px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: var(--btn-shadow);
}

.btn-ghost {
  background: var(--bg);
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-danger {
  background: #eef5fa;
  color: #5a7a94;
  border: 2px solid #d0e4f0;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.stat-card {
  background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--primary-dark);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Chart */
.chart-wrap {
  position: relative;
  height: 220px;
  margin: 0 -4px;
}

.chart-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 8px;
}

.chart-hint.hidden {
  display: none;
}

/* Record list */
.record-list {
  list-style: none;
}

.record-list:empty::after {
  content: '暂无记录，快来添加第一条吧～';
  display: block;
  text-align: center;
  padding: 24px 12px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.record-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  gap: 8px;
}

.record-item:last-child {
  border-bottom: none;
}

.record-main {
  flex: 1;
  min-width: 0;
}

.record-date {
  font-weight: 500;
  font-size: 0.95rem;
}

.record-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 2px;
}

.record-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  margin-right: 4px;
}

.record-delete {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg);
  border-radius: 50%;
  color: var(--text-light);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.record-delete:hover {
  background: #eef5fa;
  color: #5a7a94;
}

/* Milestones */
.milestone-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.milestone-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

.milestone-item:active {
  transform: scale(0.99);
}

.milestone-item.achieved {
  border-color: var(--primary);
  background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
}

.milestone-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  background: #eef3f7;
  color: #c5d0d8;
  border: 2px solid #dce4ea;
}

.milestone-item.achieved .milestone-check {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-color: transparent;
}

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

.milestone-name {
  font-weight: 500;
  font-size: 0.95rem;
}

.milestone-item:not(.achieved) .milestone-name {
  color: #9aabb8;
}

.milestone-item.achieved .milestone-name {
  color: var(--text);
}

.milestone-info {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 4px;
}

.milestone-item.achieved .milestone-info {
  color: var(--primary-dark);
}

.milestone-emoji {
  font-size: 1.5rem;
  flex-shrink: 0;
  opacity: 0.35;
  filter: grayscale(1);
}

.milestone-item.achieved .milestone-emoji {
  opacity: 1;
  filter: none;
}

/* Diary */
.view-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  background: var(--bg-card);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.toggle-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
}

.toggle-btn.active {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.feeding-month-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.feeding-month-row {
  display: grid;
  grid-template-columns: 1fr 3rem 4.5rem;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 0.15s;
}

.feeding-month-row:hover {
  background: var(--primary-light);
}

.feeding-month-row.today {
  border: 1px solid var(--primary);
}

.feeding-month-row.empty {
  opacity: 0.55;
  cursor: default;
}

.feeding-month-row .col-day {
  font-weight: 500;
}

.feeding-month-row .col-meta {
  text-align: right;
  color: var(--text-light);
  font-size: 0.85rem;
}

.month-summary {
  font-size: 0.9rem;
  color: var(--primary-dark);
  text-align: center;
  padding: 8px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
}

.photo-loading {
  text-align: center;
  padding: 24px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.feeding-view-toggle {
  margin-bottom: 12px;
}

.empty-hint {
  text-align: center;
  padding: 20px;
  color: var(--text-light);
  font-size: 0.9rem;
  list-style: none;
}

.health-subnav {
  margin-bottom: 12px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.health-subnav::-webkit-scrollbar {
  display: none;
}

.health-subnav .toggle-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 8px 12px;
  font-size: 0.82rem;
}

.chart-wrap-sm {
  height: 220px;
}

.fever-hint {
  font-size: 0.8rem;
  color: #c45c5c;
  text-align: center;
  margin-bottom: 8px;
}

.record-fever {
  border-left: 3px solid #c45c5c;
}

.fever-value {
  color: #c45c5c;
  font-weight: 600;
}

.mood-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mood-btn {
  width: 44px;
  height: 44px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.mood-btn.selected,
.mood-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: scale(1.08);
}

.photo-upload {
  display: flex;
  gap: 8px;
  align-items: center;
}

.photo-btn {
  display: inline-block;
  padding: 10px 16px;
  background: var(--cloud);
  color: var(--text);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  cursor: pointer;
}

.photo-clear {
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: var(--text-light);
  font-size: 0.85rem;
  cursor: pointer;
}

.photo-preview {
  margin-top: 10px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-height: 200px;
}

.photo-preview img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Calendar */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cal-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--primary-dark);
  font-weight: 400;
}

.cal-nav {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 50%;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
  position: relative;
  padding: 0;
}

.cal-day.other-month {
  color: #ddd;
}

.cal-day.today {
  font-weight: 600;
  color: var(--primary-dark);
}

.cal-day.has-entry {
  background: var(--primary-light);
}

.cal-day.selected {
  background: var(--primary);
  color: white;
}

.cal-day-mood {
  font-size: 0.55rem;
  line-height: 1;
  margin-top: 1px;
}

.cal-detail {
  margin-top: 12px;
}

.cal-detail-date {
  font-family: var(--font-display);
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.cal-detail-mood {
  font-size: 2rem;
  margin-bottom: 8px;
}

.cal-detail-text {
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.cal-detail-photo {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-top: 12px;
}

/* Dialog */
.dialog {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  max-width: calc(100vw - 32px);
  width: 360px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.dialog::backdrop {
  background: rgba(61, 79, 92, 0.4);
}

.dialog-form {
  padding: 20px;
}

.dialog-form h3 {
  font-family: var(--font-display);
  color: var(--primary-dark);
  margin-bottom: 16px;
  font-weight: 400;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.dialog-actions .btn {
  flex: 1;
  min-width: 80px;
}

.export-dialog .dialog-form {
  max-height: min(85vh, 640px);
  overflow-y: auto;
}

.export-dialog-hint {
  font-size: 0.82rem;
  color: var(--text-light);
  margin: -8px 0 12px;
}

.export-range-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.range-btn {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
}

.range-btn.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.export-date-row {
  margin-top: 4px;
}

.export-module-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.check-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 0.85rem;
  cursor: pointer;
}

.check-pill input {
  accent-color: var(--primary);
}

.export-status {
  font-size: 0.85rem;
  color: var(--primary-dark);
  text-align: center;
  padding: 8px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
}

.export-status.export-status-err {
  color: #c45c5c;
  background: #fdeaea;
}

.settings-dialog .dialog-form {
  max-height: min(90vh, 720px);
  overflow-y: auto;
}

.settings-profile {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 12px;
}

.settings-profile p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.settings-profile p:last-child {
  margin-bottom: 0;
}

.settings-label {
  color: var(--text-light);
  flex-shrink: 0;
}

.settings-value {
  color: var(--text);
  text-align: right;
  word-break: break-all;
}

.settings-hint {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 14px;
  line-height: 1.5;
}

.settings-section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.pwd-change-status {
  font-size: 0.85rem;
  text-align: center;
  padding: 8px;
  border-radius: var(--radius-sm);
  margin-top: 4px;
}

.pwd-change-status.pwd-change-ok {
  color: #3d8b5a;
  background: #e8f5ec;
}

.pwd-change-status.pwd-change-err {
  color: #c45c5c;
  background: #fdeaea;
}

/* Footer */
#footer-cloud {
  display: none !important;
}

.footer {
  text-align: center;
  padding: 12px 16px;
  font-size: 0.75rem;
  color: var(--text-light);
}

.footer-hint {
  margin-top: 4px;
  font-size: 0.7rem;
  color: var(--primary-dark);
}

.footer-hint.sync-err {
  color: #c45c5c;
}

/* Auth */
.auth-screen {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.auth-card-wide {
  max-width: 420px;
}

.auth-header {
  text-align: center;
  margin-bottom: 20px;
}

.auth-deco {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--primary-dark);
  font-weight: 400;
}

.auth-subtitle {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 6px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
}

.auth-tab.active {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}

.gender-group {
  display: flex;
  gap: 10px;
}

.gender-pill {
  flex: 1;
}

.gender-pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.gender-pill span {
  display: block;
  text-align: center;
  padding: 12px 10px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  cursor: pointer;
  background: var(--bg);
  transition: all 0.2s;
}

.gender-pill input:checked + span {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}

.gender-pill.boy span::before {
  content: '👦 ';
}

.gender-pill.girl span::before {
  content: '👧 ';
}

.input-invite {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.auth-form .field {
  margin-bottom: 14px;
}

.auth-hint {
  font-size: 0.85rem;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.global-auth-error {
  position: fixed;
  top: 12px;
  left: 16px;
  right: 16px;
  z-index: 1000;
  max-width: 448px;
  margin: 0 auto;
  font-size: 0.85rem;
  color: #c45c5c;
  background: #fde8e8;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.auth-status {
  font-size: 0.85rem;
  color: var(--primary-dark);
  text-align: center;
  min-height: 1.2em;
  margin-bottom: 8px;
}

.auth-error {
  font-size: 0.85rem;
  color: #c45c5c;
  background: #fde8e8;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.auth-foot {
  text-align: center;
  font-size: 0.8rem;
  margin-top: 12px;
}

.auth-foot.muted {
  color: var(--text-light);
  line-height: 1.5;
}

.auth-foot a {
  color: var(--primary-dark);
}

.btn-block {
  width: 100%;
  margin-top: 8px;
}

.config-hint {
  background: var(--bg);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin: 12px 0;
  overflow-x: auto;
}

/* Responsive */
@media (min-width: 400px) {
  .title {
    font-size: 2rem;
  }

  .tab-label {
    font-size: 0.75rem;
  }
}
