.app-layout {
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  position: relative;
  overflow: hidden;
}

.tl-app-header {
  padding: 16px 24px;
  padding-top: calc(env(safe-area-inset-top, 0px)  + 12px);
  background: var(--bg);
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.tl-brand {
  font-family: var(--font-primary);
  font-size: var(--font-size-title);
  color: var(--text-primary);
  letter-spacing: -.5px;
  cursor: pointer;
  margin: 0;
  font-weight: 800;
}

.tl-brand:hover {
  opacity: .8;
}

.tl-sync-badge {
  border: 1px solid var(--accent-slate);
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  color: var(--accent-slate);
  letter-spacing: 1px;
  cursor: pointer;
  background: #ffffffe6;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 700;
  transition: opacity .2s;
  display: flex;
}

.tl-sync-badge:hover {
  opacity: .9;
}

.tl-sync-icon {
  font-size: 12px;
}

.tl-avatar {
  background: var(--surface-gray);
  cursor: pointer;
  border: 1px solid #eee;
  border-radius: 22px;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  overflow: hidden;
  box-shadow: 0 4px 12px #00000026;
}

.tl-avatar img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.tl-avatar-icon {
  color: var(--text-secondary);
  font-size: 22px;
}

.app-layout-content {
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.nav-dock {
  bottom: calc(30px + var(--safe-bottom, 0px));
  z-index: 20;
  pointer-events: none;
  justify-content: center;
  display: flex;
  position: absolute;
  left: 0;
  right: 0;
}

.nav-dock-mic {
  pointer-events: auto;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  width: 52px;
  height: 52px;
  color: var(--accent-slate);
  -webkit-tap-highlight-color: transparent;
  background: #fffffff2;
  border-radius: 26px;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  box-shadow: 0 15px 40px #2e5bff40;
}

.nav-dock-mic:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px #2e5bff52;
}

.nav-dock-mic:active {
  transform: scale(.95);
}

.login-page {
  background: var(--bg);
  flex-direction: column;
  flex: 1 1 0;
  justify-content: space-between;
  min-height: 0;
  display: flex;
  overflow-y: auto;
}

.login-top {
  text-align: center;
  flex-direction: column;
  align-items: center;
  padding: 80px 40px 0;
  display: flex;
}

.login-logo-circle {
  border-radius: var(--radius-card-md);
  background: var(--text-primary);
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 64px;
  display: flex;
}

.login-logo-icon {
  color: #fff;
  font-size: 32px;
}

.login-brand {
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 24px;
  display: flex;
}

.login-brand-name {
  font-family: var(--font-primary);
  color: var(--text-primary);
  letter-spacing: -.5px;
  margin: 0;
  font-size: 32px;
  font-weight: 800;
}

.login-brand-slogan {
  font-family: var(--font-primary);
  color: var(--text-secondary);
  margin: 0;
  font-size: 15px;
}

.login-brand-tagline {
  font-family: var(--font-mono);
  font-size: var(--font-size-micro);
  color: var(--accent-slate);
  font-weight: 700;
}

.login-mid {
  flex-direction: column;
  gap: 24px;
  padding: 0 40px;
  display: flex;
}

.login-fields {
  flex-direction: column;
  gap: 12px;
  display: flex;
}

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

.login-label {
  font-family: var(--font-mono);
  font-size: var(--font-size-label);
  color: var(--text-secondary);
  margin: 0;
  font-weight: 700;
}

.login-input {
  width: 100%;
  border-radius: var(--radius-full) !important;
  background: var(--surface-gray) !important;
  border: 1px solid var(--glass-border) !important;
  font-family: var(--font-primary) !important;
  padding: 12px 20px !important;
  font-size: 15px !important;
}

.login-input:focus, .login-input:hover {
  border-color: var(--accent-slate) !important;
  box-shadow: none !important;
  border-color: var(--accent-slate) !important;
}

.login-forgot {
  justify-content: flex-end;
  padding: 4px 0 0;
  display: flex;
}

.login-forgot-text {
  font-family: var(--font-primary);
  font-size: var(--font-size-caption);
  color: var(--text-secondary);
  cursor: pointer;
}

.login-forgot-text:hover {
  color: var(--accent-slate);
}

.login-btns {
  flex-direction: column;
  gap: 12px;
  display: flex;
}

.login-btn-primary {
  background: var(--text-primary);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: var(--font-size-caption);
  color: #fff;
  border: none;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 16px 24px;
  font-weight: 700;
  transition: opacity .2s;
  display: flex;
}

.login-btn-primary:hover:not(:disabled) {
  opacity: .9;
}

.login-btn-primary:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.login-btn-icon {
  font-size: 16px;
}

.login-or-divider {
  align-items: center;
  gap: 12px;
  display: flex;
}

.login-or-line {
  background: var(--glass-border);
  flex: 1;
  height: 1px;
}

.login-or-text {
  font-family: var(--font-mono);
  font-size: var(--font-size-micro);
  color: var(--text-secondary);
  font-weight: 700;
}

.login-demo-btn {
  background: var(--bg);
  border: 1px solid var(--accent-slate);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: var(--font-size-caption);
  color: var(--accent-slate);
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 12px 24px;
  font-weight: 700;
  transition: background .2s, color .2s;
  display: flex;
}

.login-demo-btn:hover:not(:disabled) {
  background: #2e5bff0f;
}

.login-demo-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.login-demo-icon {
  font-size: 16px;
}

.login-bot {
  padding: 0 40px 50px;
}

.login-signup {
  justify-content: center;
  align-items: center;
  gap: 6px;
  display: flex;
}

.login-signup-text {
  font-family: var(--font-primary);
  font-size: var(--font-size-small);
  color: var(--text-secondary);
}

.login-signup-link {
  font-family: var(--font-primary);
  font-size: var(--font-size-small);
  color: var(--accent-slate);
  cursor: pointer;
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
}

.login-signup-link:hover {
  text-decoration: underline;
}

.login-input-error {
  border-color: #ff4d4f !important;
}

.login-field-error {
  color: #ff4d4f;
  margin-top: 4px;
  font-size: 11px;
  display: block;
}

.fw-container {
  padding: 12px 0 4px;
}

.fw-big-value {
  letter-spacing: -1px;
  color: #0f2c45;
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
}

.fw-big-unit {
  color: #8e9ba6;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 500;
}

.fw-alert-pill {
  letter-spacing: .8px;
  vertical-align: middle;
  border-radius: 6px;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 9px;
  font-weight: 700;
  display: inline-block;
}

.fw-alert-pill--low {
  color: #d92525;
  background: #d9252514;
  border: 1px solid #d9252533;
}

.fw-alert-pill--high {
  color: #ff9f0a;
  background: #ff9f0a1a;
  border: 1px solid #ff9f0a40;
}

.fw-cal {
  flex-direction: column;
  gap: 12px;
  display: flex;
}

.fw-cal-photos {
  align-items: center;
  gap: 8px;
  display: flex;
}

.fw-cal-photo {
  border: 2px solid #ff8c002e;
  border-radius: 12px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  overflow: hidden;
}

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

.fw-cal-photo-more {
  color: #ff8c00;
  background: #fff0e0;
  border-radius: 12px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
}

.fw-cal-big {
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  display: flex;
}

.fw-cal-num {
  color: #ff8c00;
  letter-spacing: -1.5px;
  font-family: Inter, sans-serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.fw-cal-unit {
  color: #ffad5c;
  margin-bottom: 4px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.fw-cal-goal-row {
  justify-content: space-between;
  display: flex;
}

.fw-cal-goal-label {
  color: #5d5d7e;
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 500;
}

.fw-cal-gauge {
  background: #ffe0b2;
  border-radius: 5px;
  height: 10px;
  overflow: hidden;
}

.fw-cal-gauge-fill {
  background: linear-gradient(90deg, #ffb340 0%, #ff8c00 100%);
  border-radius: 5px;
  height: 100%;
  transition: width .6s;
}

.fw-cal-meals {
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
  display: flex;
}

.fw-cal-meal {
  color: #5d5d7e;
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 500;
}

.fw-cal-macros {
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
  display: flex;
}

.fw-cal-macro-row {
  align-items: center;
  gap: 8px;
  display: flex;
}

.fw-cal-macro-left {
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  width: 80px;
  display: flex;
}

.fw-cal-macro-icon {
  font-size: 14px;
  line-height: 1;
}

.fw-cal-macro-label {
  color: #5d5d7e;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 500;
}

.fw-cal-macro-track {
  background: #ffe0b2;
  border-radius: 3px;
  flex: 1;
  height: 6px;
  overflow: hidden;
}

.fw-cal-macro-fill {
  border-radius: 3px;
  height: 100%;
  transition: width .6s;
}

.fw-cal-macro-val {
  color: #121212;
  text-align: right;
  flex-shrink: 0;
  width: 36px;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 600;
}

.fw-fasting-top {
  align-items: center;
  gap: 14px;
  display: flex;
}

.fw-fasting-info {
  flex: 1;
}

.fw-status-pill {
  letter-spacing: 1px;
  border-radius: 100px;
  margin-top: 6px;
  padding: 3px 10px;
  font-size: 9px;
  font-weight: 700;
  display: inline-block;
}

.fw-status-pill--fasting {
  color: #7c3aed;
  background: #7c3aed1a;
  border: 1px solid #7c3aed33;
}

.fw-status-pill--eating {
  color: #4caf50;
  background: #4caf501a;
  border: 1px solid #4caf5033;
}

.fw-hrv-top {
  margin-bottom: 8px;
}

.fw-chart-wrap {
  padding: 4px 0;
}

.fw-sleep-top {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  display: flex;
}

.fw-quality-badge {
  color: #2e5bff;
  background: #2e5bff14;
  border: 1px solid #2e5bff33;
  border-radius: 100px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
}

.fw-sleep-stages {
  border-radius: 4px;
  gap: 1px;
  height: 8px;
  margin-bottom: 6px;
  display: flex;
  overflow: hidden;
}

.fw-stage-bar {
  min-width: 4px;
  transition: flex .4s;
}

.fw-sleep-labels {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.fw-stage-label {
  color: #8e9ba6;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 600;
  display: flex;
}

.fw-stage-dot {
  border-radius: 3px;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
}

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

.fw-metric-item {
  background: #00000008;
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  display: flex;
}

.fw-metric-label {
  color: #8e9ba6;
  font-size: 11px;
  font-weight: 600;
}

.fw-metric-value {
  font-size: 12px;
  font-weight: 700;
}

.fw-metric-value--normal {
  color: #0f2c45;
}

.fw-metric-value--warning {
  color: #ff9f0a;
}

.fw-metric-value--danger {
  color: #ff3b30;
}

.fw-metric-unit {
  color: #8e9ba6;
  font-size: 10px;
  font-weight: 500;
}

.fw-video {
  margin-top: 4px;
}

.fw-video-player {
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 10px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.fw-video-elem {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.fw-video-iframe {
  border: none;
}

.fw-video-controls {
  z-index: 2;
  gap: 6px;
  display: flex;
  position: absolute;
  bottom: 8px;
  right: 8px;
}

.fw-video-ctrl-btn {
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  background: #0000008c;
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  font-size: 14px;
  transition: background .2s;
  display: flex;
}

.fw-video-ctrl-btn:active {
  background: #000000bf;
}

.fw-video-duration {
  color: #fff;
  z-index: 2;
  background: #000000a6;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
  position: absolute;
  bottom: 8px;
  left: 8px;
}

.fw-video-play-overlay {
  pointer-events: none;
  background: #00000026;
  justify-content: center;
  align-items: center;
  display: flex;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.fw-video-title {
  color: #0f2c45;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
}

.fw-wnoise {
  background: #02040a;
  border: 1px solid #ffffff14;
  border-radius: 12px;
  overflow: hidden;
}

.fw-wnoise-hdr {
  background: #02040a;
  border-bottom: 1px solid #ffffff1a;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  display: flex;
}

.fw-wnoise-hdr-left {
  align-items: center;
  gap: 8px;
  display: flex;
}

.fw-wnoise-hdr-dot {
  background: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
}

.fw-wnoise-hdr-label {
  letter-spacing: 1px;
  color: #fffc;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
}

.fw-wnoise-hero {
  background: linear-gradient(#0a0f1a 0%, #02040a 100%);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 160px;
  padding: 24px 16px;
  display: flex;
}

.fw-wnoise-play {
  cursor: pointer;
  background: none;
  border: none;
  margin-bottom: 4px;
  padding: 0;
  transition: transform .2s;
}

.fw-wnoise-play:active {
  transform: scale(.9);
}

.fw-wnoise-icon {
  color: #ffffffe6;
  font-size: 52px;
}

.fw-wnoise-title {
  color: #fff;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
}

.fw-wnoise-subtitle {
  color: #ffffff8c;
  text-align: center;
  font-size: 13px;
}

.fw-wnoise-wave {
  align-items: center;
  gap: 3px;
  height: 20px;
  margin-top: 4px;
  display: flex;
}

.fw-wnoise-bar {
  background: #fff9;
  border-radius: 2px;
  width: 3px;
  animation: .8s ease-in-out infinite alternate fwWnBounce;
}

@keyframes fwWnBounce {
  0% {
    height: 6px;
  }

  100% {
    height: 18px;
  }
}

.fw-wnoise-pills {
  background: #02040a;
  gap: 8px;
  padding: 0 14px 12px;
  display: flex;
}

.fw-wnoise-pill {
  color: #fffc;
  cursor: pointer;
  background: #ffffff08;
  border: 1px solid #ffffff24;
  border-radius: 20px;
  flex: 1;
  justify-content: center;
  align-items: center;
  height: 40px;
  font-size: 12px;
  transition: all .2s;
  display: flex;
}

.fw-wnoise-pill:active {
  background: #ffffff14;
}

.fw-wnoise-pill--active {
  color: #fff;
  background: #ffffff2e;
  border-color: #ffffff80;
}

.fw-wnoise-ftr {
  background: #02040a;
  border-top: 1px solid #ffffff1a;
  justify-content: center;
  align-items: center;
  padding: 10px 14px;
  display: flex;
}

.fw-wnoise-ftr-status {
  color: #ffffff80;
  letter-spacing: .3px;
  font-size: 11px;
}

.fw-pills {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}

.fw-pill {
  color: #8e9ba6;
  cursor: pointer;
  background: #0000000a;
  border: 1px solid #0000000f;
  border-radius: 100px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  transition: all .2s;
}

.fw-pill--active {
  color: #fff;
  background: #0f2c45;
  border-color: #0000;
}

.chat-input-bar {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  background: #fffffff2;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 52px;
  padding: 4px;
  display: flex;
  box-shadow: 0 10px 30px #00000014;
}

.ib-voice-mode {
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 6px;
  display: flex;
}

.ib-voice-hold {
  cursor: pointer;
  height: 100%;
  color: var(--text-primary);
  font-family: var(--font-primary);
  background: none;
  border: none;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  transition: opacity .2s;
  display: flex;
}

.ib-voice-hold:hover:not(:disabled) {
  opacity: .85;
}

.ib-voice-hold:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.ib-mic-icon {
  font-size: 24px;
}

.ib-voice-label {
  font-weight: 400;
}

.ib-voice-recording {
  justify-content: center;
  align-items: center;
  gap: 12px;
  display: flex;
}

.ib-volume-bars {
  justify-content: center;
  align-items: center;
  gap: 4px;
  height: 24px;
  display: flex;
}

.ib-volume-bar {
  background: var(--accent-slate);
  border-radius: 2px;
  width: 4px;
  min-height: 8px;
  transition: height 50ms ease-out;
  display: inline-block;
}

.ib-toggle-kb {
  cursor: pointer;
  background: #0000000d;
  border: none;
  border-radius: 22px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  transition: background .2s;
  display: flex;
}

.ib-toggle-kb:hover:not(:disabled) {
  background: #00000014;
}

.ib-toggle-kb:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.ib-kb-icon {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
}

.ib-keyboard-mode {
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  display: flex;
}

.ib-text-input {
  flex: 1;
  background: none !important;
  border: none !important;
  height: 100% !important;
  padding: 0 16px !important;
  font-size: 15px !important;
}

.ib-text-input:focus, .ib-text-input:hover {
  box-shadow: none !important;
}

.ib-right-btn {
  cursor: pointer;
  border: none;
  border-radius: 22px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  transition: all .2s;
  display: flex;
}

.ib-right-btn.ib-voice {
  color: var(--text-secondary);
  background: #0000000d;
}

.ib-right-btn.ib-voice:hover:not(:disabled) {
  background: #00000014;
}

.ib-right-btn.ib-send {
  background: var(--accent-slate);
  color: #fff;
}

.ib-right-btn.ib-send:hover:not(:disabled) {
  opacity: .9;
}

.ib-right-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.ib-mic-icon-sm {
  font-size: 22px;
}

.ib-send-icon {
  font-size: 20px;
}

.ct-root {
  background: #fff;
  flex-direction: column;
  width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
}

.ct-head {
  background: linear-gradient(#ff8c00 0%, #ffb340 100%);
  flex-direction: column;
  flex-shrink: 0;
  gap: 8px;
  padding: 12px 24px 16px;
  display: flex;
}

.ct-handle {
  background: #ffffff40;
  border-radius: 2px;
  width: 40px;
  height: 4px;
  margin: 0 auto;
}

.ct-head-row {
  justify-content: space-between;
  align-items: flex-start;
  display: flex;
}

.ct-head-titles {
  flex-direction: column;
  gap: 4px;
  display: flex;
}

.ct-head-title {
  color: #fff;
  letter-spacing: -.5px;
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 600;
}

.ct-head-sub {
  color: #ffffffba;
  letter-spacing: .5px;
  font-family: Menlo, monospace;
  font-size: 10px;
}

.ct-head-btns {
  background: #ffffff1f;
  border-radius: 100px;
  gap: 4px;
  padding: 4px;
  display: flex;
}

.ct-head-btn {
  cursor: pointer;
  color: #fff;
  background: none;
  border: none;
  border-radius: 16px;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  font-size: 14px;
  display: flex;
}

.ct-head-btn:active {
  background: #ffffff1f;
}

.ct-body {
  -webkit-overflow-scrolling: touch;
  flex-direction: column;
  flex: 1;
  gap: 12px;
  padding: 12px 20px 0;
  display: flex;
  overflow-y: auto;
}

.ct-body::-webkit-scrollbar {
  display: none;
}

.ct-calendar {
  justify-content: space-between;
  padding: 8px 0;
  display: flex;
}

.ct-day {
  border-radius: 12px;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 36px;
  padding: 6px 10px;
  display: flex;
}

.ct-day--today {
  background: #ff8c00;
}

.ct-day-label {
  color: #5d5d7e;
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 500;
}

.ct-day--today .ct-day-label {
  color: #fff;
}

.ct-day-num {
  color: #121212;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 600;
}

.ct-day--today .ct-day-num {
  color: #fff;
  font-weight: 700;
}

.ct-day-dot {
  background: #ff8c00;
  border-radius: 2px;
  width: 4px;
  height: 4px;
}

.ct-day--today .ct-day-dot {
  background: #fff;
}

.ct-ring-area {
  background: #fff5eb;
  border-radius: 16px;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px;
  display: flex;
}

.ct-ring-top {
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  display: flex;
}

.ct-big-num {
  align-items: flex-end;
  gap: 4px;
  display: flex;
}

.ct-num {
  color: #121212;
  letter-spacing: -2px;
  font-family: Inter, sans-serif;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
}

.ct-kcal {
  color: #5d5d7e;
  margin-bottom: 4px;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 600;
}

.ct-goal-txt {
  color: #5d5d7e;
  margin-bottom: 4px;
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 600;
}

.ct-gauge {
  background: #ffe0b2;
  border-radius: 4px;
  width: 100%;
  height: 8px;
  overflow: hidden;
}

.ct-gauge-fill {
  background: linear-gradient(90deg, #ff8c00 0%, #ffb340 100%);
  border-radius: 4px;
  height: 100%;
  transition: width .6s;
}

.ct-gauge-labels {
  color: #5d5d7e;
  justify-content: space-between;
  width: 100%;
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 500;
  display: flex;
}

.ct-macro-col {
  background: #f0f7f4;
  border-radius: 16px;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  display: flex;
}

.ct-macro-row {
  align-items: center;
  gap: 6px;
  display: flex;
}

.ct-macro-left {
  flex-shrink: 0;
  align-items: center;
  gap: 5px;
  width: 90px;
  display: flex;
}

.ct-macro-icon {
  font-size: 14px;
  line-height: 1;
}

.ct-macro-label {
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 500;
}

.ct-macro-track {
  border-radius: 2px;
  flex: 1;
  height: 4px;
  overflow: hidden;
}

.ct-macro-fill {
  border-radius: 2px;
  height: 100%;
  transition: width .6s;
}

.ct-macro-val {
  white-space: nowrap;
  flex-shrink: 0;
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 600;
}

.ct-meal-tabs {
  gap: 6px;
  display: flex;
}

.ct-meal-tab {
  color: #5d5d7e;
  cursor: pointer;
  background: #f2f2f7;
  border: none;
  border-radius: 100px;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 500;
  transition: all .2s;
  display: flex;
}

.ct-meal-tab--active {
  color: #fff;
  background: #ff8c00;
  font-weight: 600;
}

.ct-meal-tab-icon {
  font-size: 14px;
}

.ct-food-list {
  flex-direction: column;
  gap: 8px;
  padding-bottom: 16px;
  display: flex;
}

.ct-food-item {
  background: #f2f2f7;
  border-radius: 14px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  display: flex;
}

.ct-food-img {
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.ct-food-img--placeholder {
  background: #e8e8ed;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  display: flex;
}

.ct-food-info {
  flex-direction: column;
  flex: 1;
  gap: 2px;
  min-width: 0;
  display: flex;
}

.ct-food-name {
  color: #121212;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.ct-food-detail {
  color: #5d5d7e;
  font-family: Inter, sans-serif;
  font-size: 12px;
}

.ct-food-cal {
  color: #ff8c00;
  flex-shrink: 0;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.ct-add-food {
  color: #ff8c00;
  cursor: pointer;
  background: none;
  border: 1.5px solid #ff8c0040;
  border-radius: 14px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s;
  display: flex;
}

.ct-add-food:active {
  background: #ff8c000f;
}

.ct-dock {
  background: #fff;
  border-top: 1px solid #00000014;
  flex-direction: column;
  flex-shrink: 0;
  gap: 12px;
  padding: 16px 24px 34px;
  display: flex;
}

.ct-dock-btns {
  gap: 8px;
  display: flex;
}

.ct-dock-action {
  letter-spacing: .5px;
  color: #ff8c00;
  cursor: pointer;
  background: #ff8c000d;
  border: 1px solid #ff8c00;
  border-radius: 16px;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-family: Inter, sans-serif;
  font-size: 10px;
  font-weight: 700;
  display: flex;
}

.ct-dock-action--scan {
  color: #ffb340;
  background: #ffb3400d;
  border-color: #ffb340;
}

.ct-dock-input {
  background: #fffffff2;
  border: 1px solid #00000014;
  border-radius: 100px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 64px;
  padding: 6px;
  display: flex;
  box-shadow: 0 10px 30px #00000014;
}

.ct-dock-mic {
  font-size: 20px;
}

.ct-dock-listening {
  color: #121212;
  font-family: Inter, sans-serif;
  font-size: 15px;
}

.mp-center {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 24px;
  display: flex;
}

.mp-overlay {
  z-index: 10000;
  background: #00000080;
  justify-content: center;
  align-items: flex-end;
  display: flex;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.mp-drawer {
  background: #fff;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  animation: .3s ease-out mp-slide-up;
  position: relative;
  overflow: hidden;
  box-shadow: 0 -12px 40px #0003;
}

@keyframes mp-slide-up {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.mp-drawer-body {
  width: 100%;
  height: 90vh;
  max-height: 90vh;
  overflow: hidden;
}

.mp-phone-shell {
  background: #fff;
  border-radius: 28px;
  width: 100%;
  max-width: 420px;
  height: 85vh;
  max-height: 820px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px #00000080;
}

.mp-close-btn {
  color: #fff;
  cursor: pointer;
  z-index: 2;
  background: #00000080;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 16px;
  position: absolute;
  top: 12px;
  right: 12px;
}

.mp-phone-body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.mp-phone-content {
  width: 100%;
  height: 100%;
  padding: 14px 14px 18px;
  overflow-y: auto;
}

.mp-phone-title {
  margin: 4px 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.mp-form {
  padding: 4px 0;
}

.mp-section {
  margin-bottom: 12px;
}

.mp-label {
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}

.mp-tags {
  flex-wrap: wrap;
  gap: 4px;
  display: flex;
}

.mp-total {
  text-align: right;
  color: var(--primary);
  margin-top: 8px;
  font-size: 16px;
  font-weight: 700;
}

.fortune-card-back {
  font-size: 80px;
  animation: 3s ease-in-out infinite float;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.fortune-result {
  text-align: center;
  padding: 8px 0;
}

.fortune-color-bar {
  border-radius: 2px;
  height: 4px;
  margin-bottom: 16px;
}

.fortune-text {
  color: var(--text-primary);
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
}

.fortune-tip {
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  background: #f6f8fa;
  margin-bottom: 8px;
  padding: 12px;
  font-size: 14px;
}

.fortune-date {
  color: var(--text-muted);
  font-size: 12px;
}

.recipe-card {
  padding: 4px 0;
}

.recipe-name {
  color: var(--text-primary);
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 700;
}

.recipe-desc {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 13px;
}

.recipe-section {
  margin-bottom: 12px;
}

.recipe-section h4 {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.recipe-section ul, .recipe-section ol {
  color: var(--text-secondary);
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.8;
}

.recipe-nutrition {
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  display: flex;
}

.feed-page {
  background: #fff;
  flex-direction: column;
  height: 100%;
  display: flex;
  position: relative;
}

.tl-header {
  background: #fff;
  flex-direction: column;
  flex-shrink: 0;
  gap: 12px;
  padding: 8px 20px 16px;
  transition: padding .3s;
  display: flex;
}

.tl-header--collapsed {
  gap: 8px;
  padding: 8px 20px 12px;
}

.tl-app-header {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.tl-brand {
  letter-spacing: -.5px;
  color: #121212;
  font-family: Inter, sans-serif;
  font-size: 18px;
  font-weight: 800;
}

.tl-synced-badge {
  letter-spacing: .5px;
  color: #2e5bff;
  background: #e3f2fd;
  border-radius: 100px;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-family: Inter, sans-serif;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
}

.tl-date-row {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.tl-date-left {
  flex-direction: column;
  gap: 2px;
  display: flex;
}

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

.tl-date-nav {
  cursor: pointer;
  color: #5d5d7e;
  background: none;
  border: none;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  transition: background .15s;
  display: flex;
}

.tl-date-nav:hover {
  background: #f2f2f7;
}

.tl-date-nav:active {
  background: #e5e5ea;
}

.tl-date-nav--disabled {
  opacity: .3;
  pointer-events: none;
}

.tl-date-title {
  color: #121212;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 600;
}

.tl-date-sub {
  color: #5d5d7e;
  letter-spacing: .3px;
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 500;
}

.tl-avatar {
  cursor: pointer;
  background: #f2f2f7;
  border: none;
  border-radius: 22px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.tl-avatar img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.tl-avatar-icon {
  color: #5d5d7e;
  font-size: 20px;
}

.tl-avatar-online {
  background: #32d74b;
  border: 2px solid #fff;
  border-radius: 50%;
  width: 9px;
  height: 9px;
  position: absolute;
  bottom: 2px;
  right: 2px;
}

.tl-health-cards {
  gap: 10px;
  display: flex;
}

.tl-hcard {
  background: #ffffffe6;
  border: 1px solid #00000014;
  border-radius: 16px;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  height: 110px;
  padding: 14px;
  display: flex;
}

.tl-hcard--primary {
  background: linear-gradient(225deg, #4a7aff 0%, #2e5bff 100%);
  border: none;
}

.tl-hcard--primary .tl-hcard-icon {
  color: #fffc;
}

.tl-hcard--primary .tl-hcard-value {
  color: #fff;
}

.tl-hcard--primary .tl-hcard-label {
  color: #ffffffb3;
}

.tl-hcard-icon, .tl-hcard-icon--blue {
  color: #2e5bff;
}

.tl-hcard-icon--orange {
  color: #ff7051;
}

.tl-hcard-bottom {
  flex-direction: column;
  gap: 2px;
  display: flex;
}

.tl-hcard-value {
  color: #121212;
  letter-spacing: -1px;
  font-family: Inter, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.tl-hcard-value small {
  color: #5d5d7e;
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 500;
}

.tl-hcard-label {
  color: #5d5d7e;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 500;
}

.tl-collapsed-bar {
  background: #f2f2f7;
  border-radius: 12px;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  display: flex;
}

.tl-collapsed-center {
  flex: 1;
  align-items: center;
  gap: 8px;
  display: flex;
}

.tl-collapsed-date {
  color: #121212;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.tl-collapsed-dot {
  color: #5d5d7e;
  font-weight: normal;
}

.tl-collapsed-title {
  color: #5d5d7e;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.tl-collapsed-stats {
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  display: flex;
}

.tl-collapsed-stat {
  color: #121212;
  align-items: center;
  gap: 3px;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 600;
  display: flex;
}

.tl-collapsed-nav {
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  transition: background .15s;
  display: flex;
}

.tl-collapsed-nav:hover {
  background: #0000000f;
}

.tl-collapsed-nav:active {
  background: #0000001a;
}

.tl-collapsed-nav--disabled {
  opacity: .3;
  pointer-events: none;
}

.tl-toast {
  background: linear-gradient(270deg, #e3f2fd 0%, #ebf0ff 100%);
  border-radius: 12px;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  margin: 0 20px;
  padding: 10px 14px;
  display: flex;
  box-shadow: 0 2px 8px #00000008;
}

.tl-toast-check {
  background: #5b8def;
  border-radius: 9px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 18px;
  height: 18px;
  display: flex;
}

.tl-toast-text {
  color: #2e5bff;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

.tl-content {
  -webkit-overflow-scrolling: touch;
  flex: 1 1 0;
  min-height: 0;
  padding: 16px 20px 120px;
  overflow-y: auto;
}

.tl-content::-webkit-scrollbar {
  display: none;
}

.tl-content {
  scrollbar-width: none;
}

.tl-timeline {
  flex-direction: column;
  gap: 20px;
  display: flex;
}

.tl-separator {
  background: #00000014;
  height: 1px;
  margin-bottom: 4px;
}

.tl-item-group {
  flex-direction: column;
  gap: 10px;
  display: flex;
}

.tl-time-label {
  align-items: center;
  gap: 8px;
  display: flex;
}

.tl-time-text {
  color: #5d5d7e;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.tl-time-dot {
  color: #5d5d7e;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.tl-time-cat {
  color: #5d5d7e;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.timeline-row {
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

.ti-time {
  flex-direction: column;
  flex-shrink: 0;
  align-items: center;
  width: 50px;
  display: flex;
}

.ti-card-stack {
  flex-shrink: 0;
  width: 60px;
  height: 76px;
  position: relative;
}

.ti-card-stack-card {
  border: 1px solid #00000014;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  width: 53px;
  height: 66px;
  display: flex;
  position: absolute;
  top: 6px;
  left: 4px;
  overflow: hidden;
  transform: rotate(-2deg);
  box-shadow: 0 4px 12px #00000024;
}

.ti-card-stack-card--has-img {
  padding: 0;
}

.ti-card-stack-card--has-img .ti-card-stack-img, .ti-card-stack-img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.ti-card-placeholder {
  background: #e8ecf2;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
}

.ti-card-placeholder--sleep {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
}

.ti-card-placeholder--hrv {
  background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
}

.ti-card-placeholder--stress {
  background: linear-gradient(135deg, #ff6b6b, #f5576c);
}

.ti-card-placeholder--mood {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}

.ti-card-placeholder--meditation {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
}

.ti-card-placeholder--fitness {
  background: linear-gradient(135deg, #fa709a, #fee140);
}

.ti-card-placeholder--cycling {
  background: linear-gradient(135deg, #5b8dee, #4070d4);
}

.ti-card-placeholder--skiing {
  background: linear-gradient(135deg, #74b9ff, #0984e3);
}

.ti-card-placeholder--fortune {
  background: linear-gradient(135deg, #ff6b6b, #feca57);
}

.ti-card-placeholder--dining {
  background: linear-gradient(135deg, #48c6ef, #6f86d6);
}

.ti-card-placeholder--calorie {
  background: linear-gradient(135deg, #f7971e, #ffd200);
}

.ti-card-placeholder--fasting {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.ti-card-placeholder--focus {
  background: linear-gradient(135deg, #5b8dee, #667eea);
}

.ti-card-placeholder--nap {
  background: linear-gradient(135deg, #52c41a, #2e7d32);
}

.ti-card-placeholder--commute {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.ti-card-placeholder--summary {
  background: linear-gradient(135deg, #636e72, #2d3436);
}

.ti-card-placeholder--relax {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
}

.ti-card-placeholder--other {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.ti-card-placeholder[class*="--"] .anticon {
  color: #ffffffe6 !important;
}

.ti-card {
  background: #fafafa;
  border: 1px solid #00000014;
  border-radius: 20px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 8px 24px #0000000a;
}

.ti-hdr {
  background: #f2f2f7;
  border-bottom: 1px solid #0000000f;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  display: flex;
}

.ti-hdr-left {
  align-items: center;
  gap: 6px;
  display: flex;
}

.ti-dot {
  border-radius: 3px;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
}

.ti-type-label {
  letter-spacing: 1px;
  color: #5d5d7e;
  font-family: Inter, sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.ti-expand-btn {
  cursor: pointer;
  color: #5d5d7e;
  background: #00000008;
  border: 1px solid #00000014;
  border-radius: 7px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  transition: background .2s;
  display: flex;
}

.ti-expand-btn:hover {
  background: #0000000f;
}

.ti-body {
  background: #fff;
  padding: 16px 16px 12px;
}

.ti-body .timeline-title {
  color: #121212;
  margin-bottom: 4px;
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: normal;
  line-height: 1.4;
}

.ti-body .timeline-content {
  color: #5d5d7e;
  font-family: Inter, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.cc-footer {
  background: #f2f2f7;
  border-top: 1px solid #0000000f;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  display: flex;
}

.cc-action-group {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}

.cc-action-btn {
  letter-spacing: .8px;
  color: #2e5bff;
  cursor: pointer;
  background: none;
  border: 1px solid #2e5bff33;
  border-radius: 100px;
  padding: 8px 16px;
  font-family: Inter, sans-serif;
  font-size: 9px;
  font-weight: 700;
  transition: background .2s;
}

.cc-action-btn:hover {
  background: #2e5bff0f;
}

.cc-action-btn--primary {
  color: #fff;
  background: #2e5bff;
  border-color: #2e5bff;
}

.cc-action-btn--primary:hover {
  background: #1a4fd6;
}

.cc-action-btn--ghost {
  color: #5d5d7e;
  background: none;
  border-color: #0000001f;
}

.cc-action-btn--ghost:hover {
  background: #0000000a;
}

.cc-action-btn--danger {
  color: #d92525;
  background: none;
  border-color: #d9252540;
}

.cc-action-btn--danger:hover {
  background: #d925250f;
}

.cc-reactions {
  align-items: center;
  gap: 12px;
  display: flex;
}

.cc-reaction-btn {
  cursor: pointer;
  color: #5d5d7e;
  background: none;
  border: none;
  justify-content: center;
  align-items: center;
  width: 16px;
  height: 16px;
  padding: 0;
  font-size: 16px;
  display: flex;
}

.tl-dock {
  padding: 0 0 calc(env(safe-area-inset-bottom, 0px)  + 20px);
  pointer-events: none;
  z-index: 10;
  justify-content: center;
  display: flex;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.tl-dock-capsule {
  cursor: pointer;
  pointer-events: all;
  -webkit-tap-highlight-color: transparent;
  background: linear-gradient(225deg, #4a7aff 0%, #2e5bff 100%);
  border: none;
  border-radius: 100px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 14px 48px;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  box-shadow: 0 15px 40px #2e5bff40;
}

.tl-dock-capsule:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px #2e5bff52;
}

.tl-dock-capsule:active {
  transform: scale(.95);
}

.tl-dock-label {
  color: #fff;
  letter-spacing: .3px;
  font-size: 14px;
  font-weight: 600;
}

.ti-card--dark {
  background: #02040a;
  border: 1px solid #ffffff14;
}

.ti-card--dark .ti-hdr {
  background: #02040a;
  border-bottom-color: #ffffff1a;
}

.ti-card--dark .ti-dot {
  background: #fff !important;
}

.ti-card--dark .ti-type-label {
  color: #fffc;
}

.ti-card--dark .ti-expand-btn {
  color: #ffffffb3;
  background: #ffffff14;
  border-color: #ffffff26;
}

.ti-card--dark .ti-body {
  background: #02040a;
}

.ti-card--dark .timeline-title {
  color: #fff;
}

.ti-card--dark .timeline-content {
  color: #fff9;
}

.ti-card--dark .cc-footer {
  background: #02040a;
  border-top-color: #ffffff1a;
}

.ti-card--dark .cc-action-btn {
  color: #fffc;
  border-color: #fff3;
}

.ti-card--dark .cc-action-btn:hover {
  background: #ffffff0f;
}

.ti-card--dark .cc-action-btn--primary {
  color: #fff;
  background: #ffffff1f;
  border-color: #ffffff4d;
}

.ti-card--dark .cc-action-btn--primary:hover {
  background: #ffffff2e;
}

.ti-card--dark .cc-action-btn--ghost {
  color: #fff9;
  border-color: #ffffff26;
}

.ti-card--dark .cc-reaction-btn {
  color: #ffffff80;
}

.ti-card--dark .fw-wnoise {
  border: none;
  border-radius: 0;
}

.ti-card--calorie {
  background: #fffaf5;
  border: 1px solid #ff8c001f;
  box-shadow: 0 8px 24px #ff8c001f;
}

.ti-card--calorie .ti-hdr {
  background: linear-gradient(#ff8c00 0%, #ffb340 100%);
  border-bottom: 1px solid #ffffff1f;
}

.ti-card--calorie .ti-dot {
  background: #fff !important;
}

.ti-card--calorie .ti-type-label {
  color: #fff;
}

.ti-card--calorie .ti-expand-btn {
  color: #fff;
  background: #ffffff1f;
  border-color: #ffffff2e;
}

.ti-card--calorie .ti-expand-btn:hover {
  background: #fff3;
}

.ti-card--calorie .ti-body {
  background: linear-gradient(#fff 0%, #fff5eb 100%);
  padding: 16px 16px 12px;
}

.ti-card--calorie .cc-footer {
  background: #fff8f0;
  border-top: 1px solid #ff8c0014;
}

.ti-card--calorie .cc-action-btn {
  color: #fff;
  background: #ff8c00;
  border-color: #ff8c00;
}

.ti-card--calorie .cc-action-btn:hover {
  background: #e67e00;
}

.ti-card--calorie .cc-action-btn--ghost {
  color: #ff8c00;
  background: none;
  border-color: #ff8c0040;
}

.miniprogram-card {
  color: #fff;
  cursor: pointer;
  border-radius: 14px;
  margin-top: 10px;
  padding: 16px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 12px #00000026;
}

.miniprogram-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px #00000040;
}

.miniprogram-card:active {
  transform: translateY(0);
}

.miniprogram-header {
  align-items: center;
  margin-bottom: 10px;
  display: flex;
}

.miniprogram-icon {
  margin-right: 14px;
  font-size: 36px;
}

.miniprogram-info {
  flex: 1;
}

.miniprogram-name {
  margin-bottom: 3px;
  font-size: 15px;
  font-weight: 600;
}

.miniprogram-preview {
  opacity: .9;
  font-size: 12px;
}

.miniprogram-arrow {
  opacity: .7;
  font-size: 22px;
}

.miniprogram-footer {
  text-align: center;
  opacity: .8;
  border-top: 1px solid #fff3;
  margin-top: 12px;
  padding-top: 10px;
  font-size: 12px;
}

.feed-empty {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  display: flex;
}

.feed-empty-icon {
  opacity: .55;
  margin-bottom: 10px;
  font-size: 42px;
}

.feed-empty-text {
  color: #8e8e93;
  font-size: 14px;
}

.generating-overlay {
  z-index: 100;
  background: #fff;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: flex;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.generating-content {
  text-align: center;
  padding: 0 24px;
}

.generating-title {
  color: #121212;
  margin-bottom: 24px;
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.generating-steps {
  font-size: 14px;
  line-height: 2;
}

.step-item {
  color: #aaa;
  opacity: .5;
  padding: 3px 0;
  transition: opacity .5s, color .5s;
}

.step-item.active {
  opacity: 1;
  color: #5d5d7e;
}

.step-item.completed {
  opacity: .8;
  color: #5d5d7e;
}

@media (max-width: 480px) {
  .tl-collapsed-stats {
    gap: 8px;
  }

  .tl-collapsed-stat {
    font-size: 10px;
  }
}

.cc-card {
  border-radius: var(--radius-card-lg);
  background: var(--surface-light);
  border: 1px solid var(--glass-border);
  width: 100%;
  animation: .4s ccSlideIn;
  overflow: hidden;
  box-shadow: 0 8px 24px #0000000a;
}

@keyframes ccSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cc-hdr {
  background: var(--surface-gray);
  border-radius: var(--radius-card-lg) var(--radius-card-lg) 0 0;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  display: flex;
}

.cc-hdr-left {
  align-items: center;
  gap: 6px;
  display: flex;
}

.cc-hdr-dot {
  background: var(--accent-sage);
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

.cc-hdr-label {
  font-family: var(--font-primary);
  font-size: var(--font-size-label);
  letter-spacing: 1px;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 700;
}

.cc-hdr-expand {
  border: 1px solid var(--glass-border);
  cursor: pointer;
  width: 26px;
  height: 26px;
  color: var(--text-secondary);
  background: #0000000d;
  border-radius: 7px;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  display: flex;
}

.cc-body {
  padding: 14px 16px;
}

.cc-ftr {
  background: var(--surface-gray);
  border-top: 1px solid var(--glass-border);
  border-radius: 0 0 var(--radius-card-lg) var(--radius-card-lg);
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  display: flex;
}

.cc-ftr-btn {
  border-radius: var(--radius-full);
  background: var(--bg);
  border: 1px solid var(--accent-slate);
  cursor: pointer;
  justify-content: center;
  align-items: center;
  padding: 8px 16px;
  transition: all .2s;
  display: flex;
}

.cc-ftr-btn:hover {
  background: #f0f4ff;
}

.cc-ftr-btn:active {
  transform: scale(.97);
}

.cc-ftr-btn-label {
  font-family: var(--font-mono);
  font-size: var(--font-size-micro);
  letter-spacing: 1px;
  color: var(--accent-slate);
  font-weight: 700;
}

.cc-ftr-icons {
  color: var(--text-secondary);
  align-items: center;
  gap: 12px;
  font-size: 16px;
  display: flex;
}

.hk-body-text {
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
}

.hk-row {
  background: #00000008;
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  display: flex;
}

.hk-row + .hk-row {
  margin-top: 10px;
}

.hk-row-label {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
}

.hk-row-value {
  font-size: 12px;
  font-weight: 700;
}

.hk-row-value--normal {
  color: var(--text-primary);
}

.hk-row-value--warning {
  color: #ff9f0a;
}

.hk-row-value--danger {
  color: #ff3b30;
}

.hk-suggestion {
  color: var(--text-primary);
  background: #ff950014;
  border: 1px solid #ff950040;
  border-radius: 8px;
  margin-top: 10px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 600;
}

.bs-body {
  padding: 20px 24px;
}

.bs-reading-row {
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 12px;
  display: flex;
}

.bs-value-wrap {
  align-items: flex-end;
  gap: 4px;
  display: flex;
}

.bs-main-value {
  letter-spacing: -2px;
  color: #0f2c45;
  font-size: 82px;
  font-weight: 300;
  line-height: .85;
}

.bs-unit {
  color: #8e9ba6;
  padding-bottom: 6px;
  font-size: 12px;
}

.bs-alert-pill {
  font-size: var(--font-size-label);
  letter-spacing: 1px;
  color: #d92525;
  background: #d925250d;
  border: 1px solid #d9252533;
  border-radius: 8px;
  align-self: flex-end;
  margin-bottom: 8px;
  padding: 4px 10px;
  font-weight: 700;
}

.bs-progress-bar {
  background: #f0f2f5;
  border-radius: 2px;
  height: 3px;
  margin-bottom: 8px;
  overflow: hidden;
}

.bs-progress-fill {
  background: linear-gradient(90deg, #d92525, #ff6b6b);
  border-radius: 2px;
  height: 100%;
  transition: width .6s;
}

.bs-sub-row {
  font-size: var(--font-size-label);
  color: #8e9ba6;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px 12px;
  display: flex;
}

.bs-alert-card {
  background: #fffbf5;
  border: 1px solid #f4b82533;
  border-radius: 0;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  display: flex;
}

.bs-alert-head {
  color: #0f2c45;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
}

.bs-alert-text {
  color: #8e9ba6;
  font-size: 11px;
  line-height: 1.5;
}

.bs-alert-link {
  font-size: var(--font-size-micro);
  letter-spacing: .8px;
  color: #f4b825;
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  font-weight: 700;
}

.wn-card {
  background: #02040a;
  border-color: #ffffff4d;
}

.wn-hdr {
  background: #02040a;
  border-bottom: 1px solid #fff3;
}

.wn-hdr .cc-hdr-dot {
  background: #fff;
}

.wn-hdr .cc-hdr-label {
  color: #ffffffe6;
}

.wn-hdr .cc-hdr-expand {
  color: #fff;
  background: #ffffff1a;
  border-color: #ffffff4d;
}

.wn-hero {
  background: linear-gradient(#0a0f1a 0%, #02040a 100%);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 180px;
  padding: 24px 16px;
  display: flex;
}

.wn-play-btn {
  cursor: pointer;
  background: none;
  border: none;
  margin-bottom: 4px;
  padding: 0;
  transition: transform .2s;
}

.wn-play-btn:active {
  transform: scale(.9);
}

.wn-play-icon {
  color: #ffffffe6;
  font-size: 52px;
}

.wn-wave {
  align-items: center;
  gap: 3px;
  height: 20px;
  margin-top: 4px;
  display: flex;
}

.wn-wave-bar {
  background: #fff9;
  border-radius: 2px;
  width: 3px;
  animation: .8s ease-in-out infinite alternate wnBounce;
}

@keyframes wnBounce {
  0% {
    height: 6px;
  }

  100% {
    height: 18px;
  }
}

.wn-pill--active {
  color: #fff !important;
  background: #ffffff2e !important;
  border-color: #ffffff80 !important;
}

.wn-title {
  color: #fff;
  font-size: 42px;
  font-weight: 500;
}

.wn-subtitle {
  color: #ffffffb3;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
}

.wn-tag {
  color: #ffffffc2;
  background: #ffffff0d;
  border: 1px solid #ffffff26;
  border-radius: 100px;
  align-items: center;
  margin-top: 4px;
  padding: 6px 12px;
  font-size: 11px;
  display: inline-flex;
}

.wn-pills {
  background: #02040a;
  gap: 8px;
  padding: 0 12px 10px;
  display: flex;
}

.wn-pill {
  color: #fffc;
  cursor: pointer;
  background: #ffffff08;
  border: 1px solid #ffffff24;
  border-radius: 21px;
  flex: 1;
  justify-content: center;
  align-items: center;
  height: 42px;
  font-size: 12px;
  transition: all .2s;
  display: flex;
}

.wn-pill:hover {
  background: #ffffff14;
}

.wn-ftr {
  background: #02040a;
  border-top: 1px solid #fff3;
}

.wn-ftr .cc-ftr-btn {
  background: #ffffff0f;
  border-color: #ffffff80;
}

.wn-ftr .cc-ftr-btn-label, .wn-ftr .cc-ftr-icons {
  color: #fff;
}

.tc-container {
  flex-direction: column;
  gap: 8px;
  width: 100%;
  display: flex;
}

.tc-item {
  background: var(--surface-light);
  border: 1px solid #d1d5db;
  border-radius: 12px;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  animation: .3s ccSlideIn;
  display: flex;
}

.tc-top {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.tc-title-wrap {
  align-items: center;
  gap: 8px;
  display: flex;
}

.tc-icon {
  color: #6b7280;
  font-size: 14px;
}

.tc-title {
  color: #111827;
  font-size: 12px;
  font-weight: 600;
}

.tc-status-done {
  color: #166534;
  background: #dcfce7;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 18px;
  height: 18px;
  font-size: 12px;
  display: flex;
}

.tc-status-loading {
  width: 18px;
  height: 18px;
  color: var(--accent-slate);
  justify-content: center;
  align-items: center;
  font-size: 14px;
  animation: 1s linear infinite tcSpin;
  display: flex;
}

@keyframes tcSpin {
  from {
    transform: rotate(0);
  }

  to {
    transform: rotate(360deg);
  }
}

.tc-desc {
  color: #6b7280;
  font-size: 10px;
}

.tc-action-btn {
  background: var(--bg);
  color: #2563eb;
  cursor: pointer;
  border: 1px solid #93c5fd;
  border-radius: 100px;
  justify-content: center;
  align-items: center;
  width: -moz-fit-content;
  width: fit-content;
  margin-top: 2px;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 600;
  transition: all .2s;
  display: inline-flex;
}

.tc-action-btn:hover {
  background: #eff6ff;
}

.chat-page {
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.chat-header {
  min-height: 99px;
  padding: 0 16px;
  padding-top: env(safe-area-inset-top, 0px);
  background: #fff;
  border-bottom: 1px solid #0000000f;
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.chat-header-left, .chat-header-right {
  align-items: center;
  display: flex;
}

.chat-header-left {
  flex-shrink: 0;
  width: 48px;
}

.chat-header-right {
  flex-shrink: 0;
  justify-content: flex-end;
  width: 48px;
}

.chat-header-left-capsule {
  cursor: pointer;
  background: #0000000f;
  border: none;
  border-radius: 100px;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 44px;
  padding: 0;
  display: flex;
}

.chat-header-left-capsule:hover {
  background: #0000001a;
}

.chat-header-left-capsule:active {
  transform: scale(.95);
}

.chat-header-back-icon {
  color: #121212;
  font-size: 16px;
}

.chat-header-center {
  flex: 1;
  justify-content: center;
  align-items: center;
  display: flex;
}

.ch-status-pill {
  background: #0000000a;
  border-radius: 20px;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 140px;
  padding: 6px 16px;
  display: flex;
}

.ch-status-emotion {
  font-family: Inter, var(--font-primary);
  color: #121212;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.ch-status-row2 {
  align-items: center;
  gap: 6px;
  display: flex;
}

.ch-status-conn {
  font-family: Inter, var(--font-primary);
  color: #9ca3af;
  white-space: nowrap;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  display: flex;
}

.ch-status-dot {
  background: #32d74b;
  border-radius: 50%;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
}

.ch-status-icon-btn {
  cursor: pointer;
  color: #9ca3af;
  background: none;
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  font-size: 13px;
  transition: color .15s, background .15s;
  display: flex;
}

.ch-status-icon-btn:hover {
  color: #5d5d7e;
  background: #0000000f;
}

.ch-status-icon-btn--active {
  color: #2e5bff;
}

.ch-avatar {
  background: #f2f2f7;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  display: flex;
  overflow: hidden;
}

.ch-avatar-img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.ch-avatar-icon {
  color: #9ca3af;
  font-size: 18px;
}

.chat-header-preview {
  top: calc(60px + env(safe-area-inset-top, 0));
  z-index: 1000;
  background: #000;
  border-radius: 12px;
  width: 120px;
  height: 160px;
  position: fixed;
  right: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px #0003;
}

.chat-header-preview-video {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.chat-header-preview-close {
  color: #fff;
  cursor: pointer;
  background: #00000080;
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  display: flex;
  position: absolute;
  top: 6px;
  right: 6px;
}

.chat-header-video-error {
  color: #fff;
  z-index: 1001;
  background: #000c;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 14px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cb-scroll.chat-messages {
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
  flex-direction: column;
  flex: 1 1 0;
  gap: 20px;
  padding: 0 24px;
  display: flex;
  overflow-y: auto;
}

.cb-scroll.chat-messages::-webkit-scrollbar {
  display: none;
}

.cb-scroll.chat-messages {
  scrollbar-width: none;
}

.chat-empty {
  flex: 1;
  justify-content: center;
  align-items: center;
  display: flex;
}

.chat-bubble {
  flex-direction: column;
  gap: 12px;
  max-width: 85%;
  display: flex;
}

.chat-bubble--user {
  align-self: flex-end;
}

.chat-bubble--assistant {
  align-self: stretch;
  width: 100%;
  max-width: 100%;
}

.chat-bubble-content {
  border-radius: var(--radius-card-md);
  white-space: pre-wrap;
  word-break: break-word;
  padding: 14px 18px;
  font-size: 16px;
  line-height: 1.4;
}

.chat-bubble--user .chat-bubble-content {
  color: var(--text-primary);
  border-bottom-right-radius: var(--radius-small);
  background: linear-gradient(135deg, #0000000a, #0000000f);
}

.chat-ai-text {
  font-family: var(--font-primary);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.chat-ai-text p {
  margin: 0 0 8px;
}

.chat-ai-text p:last-child {
  margin-bottom: 0;
}

.chat-ai-text strong {
  font-weight: 600;
}

.chat-ai-text em {
  font-style: italic;
}

.chat-ai-text ul, .chat-ai-text ol {
  margin: 4px 0 8px 16px;
  padding: 0;
}

.chat-ai-text li {
  margin-bottom: 2px;
}

.chat-ai-text code {
  font-family: var(--font-mono);
  background: #0000000a;
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 14px;
}

.chat-thinking {
  color: var(--text-tertiary);
  font-size: var(--font-size-caption);
}

.chat-divider {
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 24px;
  padding: 8px 0;
  display: flex;
}

.chat-divider-line {
  background: #00000014;
  flex: 1;
  height: 1px;
}

.chat-divider-time {
  font-family: var(--font-primary);
  color: #8c9aa6;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 500;
}

.chat-user-image {
  border-radius: var(--radius-card-md);
  align-self: flex-end;
  width: 100%;
  max-width: 200px;
}

.chat-icon-row {
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  display: flex;
}

.chat-icon-btn {
  cursor: pointer;
  color: #2e5bff;
  background: #fff;
  border: 1px solid #2e5bff26;
  border-radius: 14px;
  justify-content: center;
  align-items: center;
  width: 46px;
  height: 32px;
  font-size: 16px;
  transition: transform .15s, background .15s;
  display: flex;
  box-shadow: 0 2px 8px #0000000f;
}

.chat-icon-btn:hover {
  background: #f0f4ff;
}

.chat-icon-btn:active {
  transform: scale(.92);
}

.chat-icon--camera, .chat-icon--noise, .chat-icon--food, .chat-icon--health {
  color: #2e5bff;
}

.mr-dock {
  padding: 16px 24px calc(34px + var(--safe-bottom));
  background: var(--bg);
  flex-shrink: 0;
}

.pcc-dock {
  align-items: center;
  gap: 12px;
  width: 100%;
  display: flex;
}

.pcc-nav-btn {
  border: 1px solid var(--glass-border);
  cursor: pointer;
  background: #fff;
  border-radius: 26px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  transition: all .2s;
  display: flex;
  box-shadow: 0 4px 12px #0000000d;
}

.pcc-nav-btn:hover {
  background: var(--surface-light);
}

.pcc-nav-btn:active {
  transform: scale(.95);
}

.pcc-nav-icon {
  color: #a0a0a0;
  font-size: 22px;
}

.health-drawer-backdrop {
  z-index: 1000;
  background: #0006;
  animation: .3s drawerFadeIn;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.health-drawer--closing {
  animation: .3s forwards drawerFadeOut;
}

@keyframes drawerFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes drawerFadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.health-drawer-sheet {
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  flex-direction: column;
  animation: .3s drawerSlideUp;
  display: flex;
  position: absolute;
  top: 6%;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  box-shadow: 0 -10px 40px #00000026;
}

.health-drawer-sheet--closing {
  animation: .3s forwards drawerSlideDown;
}

@keyframes drawerSlideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes drawerSlideDown {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(100%);
  }
}

.health-drawer-handle {
  background: #0000001f;
  border-radius: 2px;
  flex-shrink: 0;
  width: 36px;
  height: 4px;
  margin: 8px auto 0;
}

.st-header {
  background: var(--bg);
  flex-shrink: 0;
  padding: 16px 24px;
}

.st-header-row {
  justify-content: space-between;
  align-items: flex-start;
  display: flex;
}

.st-title-area {
  flex-direction: column;
  gap: 4px;
  display: flex;
}

.st-title {
  font-family: var(--font-primary);
  color: var(--text-primary);
  letter-spacing: -.5px;
  margin: 0;
  font-size: 20px;
  font-weight: 400;
}

.st-subtitle {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  letter-spacing: .5px;
  margin: 0;
  font-size: 10px;
}

.st-close-btn {
  cursor: pointer;
  width: 32px;
  height: 32px;
  color: var(--text-primary);
  background: #0000000d;
  border: none;
  border-radius: 16px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  display: flex;
}

.st-close-btn:hover {
  background: #00000014;
}

.st-content {
  -webkit-overflow-scrolling: touch;
  padding: 0 24px 24px;
  padding-bottom: calc(24px + var(--safe-bottom, 0px));
  flex-direction: column;
  flex: 1 1 0;
  gap: 20px;
  display: flex;
  overflow-y: auto;
}

.st-content::-webkit-scrollbar {
  display: none;
}

.st-content {
  scrollbar-width: none;
}

.st-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 8px 24px #0000000a;
}

.st-section-label {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  letter-spacing: .5px;
  margin: 0 0 16px;
  font-size: 10px;
  font-weight: 700;
}

.st-data-card {
  flex-direction: column;
  gap: 0;
  display: flex;
}

.st-source-row {
  border-bottom: 1px solid var(--glass-border);
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  display: flex;
}

.st-source-row:last-of-type {
  border-bottom: none;
}

.st-source-icon {
  border-radius: 20px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  font-size: 18px;
  display: flex;
}

.st-source-icon--sage {
  color: var(--accent-sage);
  background: #32d74b26;
}

.st-source-icon--slate {
  color: var(--accent-slate);
  background: #2e5bff26;
}

.st-source-icon--amber {
  color: var(--accent-amber);
  background: #ff705126;
}

.st-source-icon--secondary {
  background: var(--surface-gray);
  color: var(--text-secondary);
}

.st-band-icon {
  font-size: 18px;
}

.st-source-info {
  flex-direction: column;
  flex: 1;
  gap: 2px;
  display: flex;
}

.st-source-name {
  font-family: var(--font-primary);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
}

.st-source-status {
  font-family: var(--font-mono);
  font-size: 12px;
}

.st-source-status--connected {
  color: var(--accent-sage);
}

.st-source-status--unlinked {
  color: var(--text-secondary);
}

.st-more-row {
  border: none;
  border-top: 1px solid var(--glass-border);
  cursor: pointer;
  text-align: left;
  background: none;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 14px 0;
  display: flex;
}

.st-more-row:hover {
  opacity: .8;
}

.st-more-left {
  align-items: center;
  gap: 10px;
  display: flex;
}

.st-more-icon-bg {
  width: 32px;
  height: 32px;
  color: var(--text-primary);
  background: #0000000a;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  display: flex;
}

.st-more-label {
  font-family: var(--font-primary);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
}

.st-more-chevron {
  color: var(--text-secondary);
  font-size: 16px;
}

.st-sync-card {
  flex-direction: column;
  gap: 8px;
  display: flex;
}

.st-sync-opt {
  border: 1px solid var(--glass-border);
  background: var(--surface-light);
  cursor: pointer;
  text-align: left;
  border-radius: 14px;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 14px;
  transition: all .2s;
  display: flex;
}

.st-sync-opt:hover {
  background: var(--surface-gray);
}

.st-sync-opt--active {
  border-color: var(--accent-slate);
  background: #fff;
  box-shadow: 0 4px 12px #2e5bff1a;
}

.st-sync-opt-label {
  font-family: var(--font-mono);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 500;
}

.st-sync-radio {
  border: 2px solid #ddd;
  border-radius: 50%;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.st-sync-radio--checked {
  border-color: var(--accent-slate);
  background: var(--accent-slate);
}

.st-maint-card {
  flex-direction: column;
  gap: 12px;
  display: flex;
}

.st-last-sync {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.st-last-sync-label {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-size: 11px;
}

.st-last-sync-val {
  font-family: var(--font-mono);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
}

.st-checkbox-row {
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  display: flex;
}

.st-checkbox {
  border: 2px solid var(--accent-slate);
  cursor: pointer;
  color: #fff;
  background: #fff;
  border-radius: 4px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  font-size: 12px;
  display: flex;
}

.st-checkbox--checked {
  background: var(--accent-slate);
}

.st-check-mark {
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

.st-check-label {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
}

.st-sync-btn {
  border: 1px solid var(--accent-slate);
  border-radius: var(--radius-full);
  background: var(--bg);
  width: 100%;
  font-family: var(--font-mono);
  color: var(--accent-slate);
  cursor: pointer;
  padding: 14px 24px;
  font-size: 12px;
  font-weight: 700;
  transition: opacity .2s;
}

.st-sync-btn:hover:not(:disabled) {
  opacity: .9;
}

.st-sync-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.st-progress-area {
  border-radius: var(--radius-card-sm);
  background: #f4f6f8;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  display: flex;
}

.st-prog-header {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.st-prog-status {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-size: 10px;
}

.st-prog-percent {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 600;
}

.st-prog-bar {
  background: #0000000d;
  border-radius: 3px;
  height: 6px;
  overflow: hidden;
}

.st-prog-fill {
  background: var(--accent-sage);
  border-radius: 3px;
  height: 100%;
  transition: width .3s;
}

.st-prog-detail {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  text-align: center;
  margin: 0;
  font-size: 9px;
  font-weight: 500;
}

.st-upload-divider {
  background: var(--glass-border);
  height: 1px;
  margin: 4px 0;
}

.st-upload-btn {
  border: 1px solid var(--accent-slate);
  border-radius: var(--radius-full);
  background: var(--bg);
  width: 100%;
  font-family: var(--font-mono);
  letter-spacing: 1px;
  color: var(--accent-slate);
  cursor: pointer;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 12px;
  font-weight: 700;
  transition: opacity .2s;
  display: flex;
}

.st-upload-btn:hover:not(:disabled) {
  opacity: .9;
}

.st-upload-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.st-upload-icon {
  color: var(--accent-slate);
  font-size: 14px;
}

.st-upload-progress-area {
  background: #f4f6f8;
  border-radius: 16px;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  display: flex;
}

.st-upload-progress-header {
  justify-content: space-between;
  align-items: center;
  width: 100%;
  display: flex;
}

.st-upload-progress-left {
  align-items: center;
  gap: 6px;
  display: flex;
}

.st-upload-sync-dot {
  background: var(--accent-sage);
  border-radius: 50%;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
}

.st-upload-progress-label {
  font-family: var(--font-mono);
  color: var(--accent-sage);
  font-size: 10px;
  font-weight: 700;
}

.st-upload-progress-pct {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 600;
}

.st-upload-progress-area .st-prog-bar {
  margin: 0;
}

.st-prog-fill--upload {
  background: var(--accent-sage);
}

.st-upload-progress-detail {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  text-align: center;
  margin: 0;
  font-size: 9px;
  font-weight: 500;
}

.st-upload-done-area {
  background: #32d74b14;
  border: 1px solid #32d74b40;
  border-radius: 16px;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  display: flex;
}

.st-upload-done-row {
  align-items: flex-start;
  gap: 10px;
  display: flex;
}

.st-upload-done-icon {
  color: var(--accent-sage);
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 20px;
}

.st-upload-done-text {
  flex-direction: column;
  gap: 2px;
  display: flex;
}

.st-upload-done-title {
  font-family: var(--font-mono);
  color: var(--accent-sage);
  font-size: 12px;
  font-weight: 700;
}

.st-upload-done-detail {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-size: 11px;
}

.st-upload-again-btn {
  border: 1px dashed var(--accent-sage);
  border-radius: var(--radius-full);
  width: 100%;
  font-family: var(--font-mono);
  color: var(--accent-sage);
  cursor: pointer;
  background: none;
  padding: 10px;
  font-size: 11px;
  font-weight: 600;
  transition: background .2s;
}

.st-upload-again-btn:hover {
  background: #32d74b0f;
}

.st-upload-input {
  display: none;
}

.settings-drawer-backdrop {
  z-index: 1000;
  background: #0006;
  animation: .3s settingsDrawerFadeIn;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.settings-drawer-backdrop--closing {
  animation: .3s forwards settingsDrawerFadeOut;
}

@keyframes settingsDrawerFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes settingsDrawerFadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.settings-drawer-sheet {
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  flex-direction: column;
  animation: .3s settingsDrawerSlideUp;
  display: flex;
  position: absolute;
  top: 6%;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  box-shadow: 0 -10px 40px #00000026;
}

.settings-drawer-sheet--closing {
  animation: .3s forwards settingsDrawerSlideDown;
}

@keyframes settingsDrawerSlideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes settingsDrawerSlideDown {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(100%);
  }
}

.settings-drawer-handle {
  background: #0000001f;
  border-radius: 2px;
  flex-shrink: 0;
  width: 36px;
  height: 4px;
  margin: 8px auto 0;
}

.settings-drawer-header {
  background: var(--bg);
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  display: flex;
}

.settings-drawer-title {
  font-family: var(--font-primary);
  color: var(--text-primary);
  margin: 0;
  font-size: 20px;
  font-weight: 400;
}

.settings-drawer-close {
  cursor: pointer;
  width: 32px;
  height: 32px;
  color: var(--text-primary);
  background: #0000000d;
  border: none;
  border-radius: 16px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  display: flex;
}

.settings-drawer-close:hover {
  background: #00000014;
}

.settings-drawer-body {
  -webkit-overflow-scrolling: touch;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  overflow-y: auto;
}

.settings-drawer-body::-webkit-scrollbar {
  display: none;
}

.settings-drawer-body {
  scrollbar-width: none;
}

.settings-page {
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.sp-tabs {
  flex-shrink: 0;
  gap: 4px;
  padding: 12px 24px 0;
  display: flex;
}

.sp-tab {
  font-family: Inter, var(--font-primary);
  color: #9ca3af;
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 2px solid #0000;
  flex: 1;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
}

.sp-tab--active {
  color: #121212;
  border-bottom-color: #2e5bff;
}

.sp-content {
  -webkit-overflow-scrolling: touch;
  flex: 1 1 0;
  padding: 16px 24px 24px;
  overflow-y: auto;
}

.sp-content::-webkit-scrollbar {
  display: none;
}

.ct-tab {
  flex-direction: column;
  gap: 16px;
  display: flex;
}

.ct-loading {
  text-align: center;
  color: #9ca3af;
  padding: 40px 0;
  font-size: 14px;
}

.ct-header {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.ct-count {
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
}

.ct-view-toggle {
  color: #2e5bff;
  cursor: pointer;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 100px;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  transition: all .2s;
  display: flex;
}

.ct-view-toggle:hover {
  background: #f0f4ff;
}

.ct-group {
  flex-direction: column;
  gap: 10px;
  display: flex;
}

.ct-group-label {
  font-family: Inter, var(--font-primary);
  color: #6b7280;
  text-transform: capitalize;
  font-size: 13px;
  font-weight: 700;
}

.ct-cards-row {
  scrollbar-width: none;
  gap: 12px;
  padding-bottom: 8px;
  display: flex;
  overflow-x: auto;
}

.ct-cards-row::-webkit-scrollbar {
  display: none;
}

.ct-cards-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  display: grid;
}

.ct-card {
  cursor: pointer;
  flex-direction: column;
  flex-shrink: 0;
  align-items: center;
  gap: 0;
  width: 110px;
  transition: transform .2s;
  display: flex;
}

.ct-card:hover {
  transform: translateY(-2px);
}

.ct-card:active {
  transform: scale(.97);
}

.ct-card-cover {
  aspect-ratio: 3 / 4;
  background: #0000000a;
  border: 1px solid #0000000f;
  border-radius: 14px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 4px 12px #00000014;
}

.ct-card-cover img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.ct-card-title {
  width: 100%;
  font-family: Inter, var(--font-primary);
  color: #374151;
  text-align: center;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-top: 6px;
  padding: 0 2px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  overflow: hidden;
}

.ct-card-widget {
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
}

.ct-card-widget-icon {
  filter: drop-shadow(0 2px 4px #0003);
  font-size: 32px;
}

.ct-card-placeholder {
  background: #f2f2f7;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  font-size: 28px;
  display: flex;
}

.ct-card-badge {
  letter-spacing: .5px;
  color: #fff;
  background: #2e5bff;
  border-radius: 4px;
  margin-top: 4px;
  padding: 2px 6px;
  font-family: Inter, sans-serif;
  font-size: 8px;
  font-weight: 700;
}

.ct-cards-grid .ct-card {
  width: auto;
}

.pf-tab {
  flex-direction: column;
  gap: 20px;
  display: flex;
}

.pf-card {
  background: #ffffffe6;
  border: 1px solid #00000014;
  border-radius: 12px;
  padding: 16px;
}

.pf-user-card {
  align-items: center;
  gap: 14px;
  display: flex;
}

.pf-avatar-input {
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  position: absolute;
}

.pf-avatar-wrap {
  cursor: pointer;
  background: none;
  border: none;
  flex-shrink: 0;
  padding: 0;
}

.pf-avatar-wrap:disabled {
  cursor: not-allowed;
}

.pf-avatar {
  background: linear-gradient(225deg, #667eea, #764ba2);
  border-radius: 26px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 52px;
  height: 52px;
  display: flex;
  overflow: hidden;
}

.pf-avatar-img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.pf-user-info {
  flex-direction: column;
  display: flex;
}

.pf-username {
  font-family: Inter, var(--font-primary);
  color: #121212;
  font-size: 17px;
  font-weight: 700;
}

.pf-email {
  color: #9ca3af;
  margin-top: 2px;
  font-size: 12px;
}

.pf-card-title {
  font-family: Inter, var(--font-primary);
  color: #121212;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
}

.pf-form .ant-form-item {
  margin-bottom: 12px;
}

.pf-form .ant-form-item-label > label {
  font-family: Inter, var(--font-primary) !important;
  color: var(--text-primary) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.pf-form .ant-input, .pf-form .pf-input, .pf-form .ant-picker {
  background: var(--surface-gray) !important;
  border: 1px solid #00000014 !important;
  border-radius: 100px !important;
  padding: 10px 16px !important;
}

.pf-form .ant-select .ant-select-selector, .pf-form .pf-select .ant-select-selector {
  border-radius: var(--radius-full) !important;
  background: var(--surface-gray) !important;
  box-sizing: border-box !important;
  height: 44px !important;
  min-height: 44px !important;
  box-shadow: none !important;
  align-items: center !important;
  padding: 0 16px !important;
  display: flex !important;
}

.pf-form .ant-select-filled .ant-select-selector {
  border: none !important;
}

.pf-form .ant-select .ant-select-selection-item, .pf-form .ant-select .ant-select-selection-placeholder, .pf-form .pf-select .ant-select-selection-item, .pf-form .pf-select .ant-select-selection-placeholder {
  line-height: 44px !important;
  font-family: Inter, var(--font-primary) !important;
  color: var(--text-primary) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.pf-form .ant-select .ant-select-arrow, .pf-form .pf-select .ant-select-arrow {
  color: var(--text-secondary) !important;
}

.pf-form .ant-select .ant-select-arrow:not(:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
  right: 14px;
}

.pf-form .ant-select .ant-select-arrow:not(:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
  right: 14px;
}

.pf-form .ant-select .ant-select-arrow:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
  right: 14px;
}

.pf-form .pf-select .ant-select-arrow:not(:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
  right: 14px;
}

.pf-form .pf-select .ant-select-arrow:not(:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
  right: 14px;
}

.pf-form .pf-select .ant-select-arrow:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
  right: 14px;
}

.pf-form .ant-select .ant-select-arrow:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
  left: 14px;
}

.pf-form .ant-select .ant-select-arrow:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
  left: 14px;
}

.pf-form .ant-select .ant-select-arrow:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
  left: 14px;
}

.pf-form .pf-select .ant-select-arrow:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
  left: 14px;
}

.pf-form .pf-select .ant-select-arrow:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
  left: 14px;
}

.pf-form .pf-select .ant-select-arrow:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
  left: 14px;
}

.pf-select-dropdown.ant-select-dropdown {
  border: 1px solid #0000000f !important;
  border-radius: 16px !important;
  padding: 8px !important;
  box-shadow: 0 8px 24px #0000001f !important;
}

.pf-select-dropdown .ant-select-item, .pf-select-dropdown .ant-select-item-option {
  font-family: Inter, var(--font-primary) !important;
  border-radius: 12px !important;
  align-items: center !important;
  min-height: 44px !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  display: flex !important;
}

.pf-select-dropdown .ant-select-item-option-active, .pf-select-dropdown .ant-select-item-option-selected, .pf-select-dropdown .ant-select-item-option:hover {
  background: var(--surface-gray) !important;
}

.pf-save-btn {
  color: #fff;
  width: 100%;
  font-family: Inter, var(--font-primary);
  cursor: pointer;
  background: #2e5bff;
  border: none;
  border-radius: 100px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  transition: opacity .2s;
}

.pf-save-btn:hover {
  opacity: .9;
}

.pf-save-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.pf-logout-btn {
  color: #fff;
  width: 100%;
  font-family: Inter, var(--font-primary);
  cursor: pointer;
  background: #dc3545;
  border: none;
  border-radius: 100px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  transition: opacity .2s;
  display: flex;
}

.pf-logout-btn:hover {
  opacity: .9;
}

.pf-version {
  text-align: center;
  color: #9ca3af;
  margin-top: 4px;
  font-size: 12px;
}

.st-tab {
  flex-direction: column;
  gap: 16px;
  display: flex;
}

.st-card {
  background: #ffffffe6;
  border: 1px solid #00000014;
  border-radius: 12px;
  padding: 16px;
}

.st-card-title {
  font-family: Inter, var(--font-primary);
  color: #121212;
  font-size: 16px;
  font-weight: 600;
}

.st-card-desc {
  color: #9ca3af;
  margin-top: 4px;
  font-size: 12px;
}

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

.miniapp-container {
  background: #f5f5f7;
  min-height: 100vh;
}

.miniapp-loading {
  color: #666;
  background: #f5f5f7;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  min-height: 100vh;
  font-size: 14px;
  display: flex;
}

.miniapp-spinner {
  border: 3px solid #e0e0e0;
  border-top-color: #007aff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: .8s linear infinite spin;
}

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

.miniapp-error {
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 100vh;
  padding: 24px;
  display: flex;
}

.miniapp-error-icon {
  font-size: 48px;
}

.miniapp-error p {
  color: #333;
  font-size: 15px;
}

.miniapp-error button {
  color: #fff;
  cursor: pointer;
  background: #007aff;
  border: none;
  border-radius: 10px;
  margin-top: 8px;
  padding: 10px 24px;
  font-size: 15px;
}

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

html, body, #root {
  width: 100%;
  height: 100%;
  min-height: 100%;
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-background);
}

:root {
  --bg: #fff;
  --bg-background: #f4f6f9;
  --text-primary: #121212;
  --text-secondary: #5d5d7e;
  --text-tertiary: #9ca3af;
  --accent-slate: #2e5bff;
  --accent-sage: #32d74b;
  --accent-amber: #ff7051;
  --accent-gold: #ffb340;
  --accent-purple: #9d50bb;
  --glass-bg: #ffffffe6;
  --glass-border: #00000014;
  --surface-gray: #f2f2f7;
  --surface-light: #fafafa;
  --shadow-card: #0000000a;
  --toggle-off: #e5e5e5;
  --font-primary: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SF Mono", "Menlo", "Monaco", "Courier New", monospace;
  --font-display: "DIN Condensed", "Oswald", -apple-system, sans-serif;
  --font-size-micro: 9px;
  --font-size-label: 10px;
  --font-size-caption: 12px;
  --font-size-small: 14px;
  --font-size-body: 16px;
  --font-size-subtitle: 18px;
  --font-size-title: 24px;
  --font-size-lg: 28px;
  --font-size-xl: 42px;
  --font-size-hero: 64px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --spacing-xxs: 4px;
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 20px;
  --spacing-xl: 24px;
  --spacing-xxl: 32px;
  --radius-small: 8px;
  --radius-button: 12px;
  --radius-card-sm: 16px;
  --radius-card-md: 20px;
  --radius-card-lg: 24px;
  --radius-full: 100px;
  --primary: var(--accent-slate);
  --primary-dark: #2541d9;
  --success: var(--accent-sage);
  --warning: var(--accent-gold);
  --danger: var(--accent-amber);
  --bg-white: var(--bg);
  --text-muted: var(--text-tertiary);
  --border: var(--glass-border);
  --shadow: 0 1px 4px #0000000f;
  --shadow-md: 0 2px 8px #00000014;
  --shadow-lg: 0 4px 12px #0000001f;
  --radius: var(--radius-button);
  --radius-sm: var(--radius-small);
  --tab-height: 52px;
  --header-height: 48px;
}

.app-container {
  background: var(--bg);
  border-radius: var(--radius-card-md);
  flex-direction: column;
  width: min(100vw, 400px);
  height: min(100dvh - 24px, 867px);
  margin: 12px auto;
  display: flex;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px #0003;
}

@media (max-height: 700px) {
  .app-container {
    border-radius: 12px;
    height: calc(100dvh - 12px);
    margin: 6px auto;
  }
}

@media (max-width: 420px) {
  .app-container {
    border: none;
    border-radius: 0;
    width: 100vw;
    height: 100dvh;
    margin: 0;
  }
}

.page {
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.page-header {
  height: var(--header-height);
  min-height: var(--header-height);
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  position: relative;
}

.page-content {
  -webkit-overflow-scrolling: touch;
  flex: 1 1 0;
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
}

.page-content::-webkit-scrollbar {
  display: none;
}

.page-content {
  scrollbar-width: none;
}

.ant-btn {
  border-radius: var(--radius-sm) !important;
}

.ant-card, .ant-modal .ant-modal-content {
  border-radius: var(--radius) !important;
}

.ant-tag {
  border-radius: 12px !important;
}

