:root {
  --bg: #fff7ec;
  --screen: #fffdf9;
  --card: #ffffff;
  --ink: #151719;
  --muted: #7d8588;
  --line: #f1e9dd;
  --green: #40c968;
  --green-soft: #effbf2;
  --blue: #5da8ff;
  --purple: #5c58ff;
  --red: #ff655d;
  --orange: #ff9d30;
  --brand: #f47b55;
  --shadow: 0 10px 26px rgba(70, 54, 34, .09);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, .9), transparent 28%),
    linear-gradient(180deg, #fffaf2 0%, #fbefe2 100%);
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.mobile-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 26px 14px;
}

.phone-screen {
  position: relative;
  width: min(100%, 390px);
  height: min(844px, calc(100vh - 52px));
  overflow: hidden;
  border: 1px solid #efe7db;
  border-radius: 34px;
  background: var(--screen);
  box-shadow: 0 22px 60px rgba(69, 52, 31, .18);
}

.app-view {
  height: calc(100% - 72px);
  overflow-y: auto;
  padding: 0 18px 24px;
}

.app-view::-webkit-scrollbar {
  width: 0;
}

.screen-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.screen-head:not(.home) {
  position: sticky;
  top: 0;
  z-index: 40;
  margin: 0 -18px 14px;
  padding: 12px 18px 10px;
  border-bottom: 1px solid rgba(241, 233, 221, .82);
  background: var(--screen);
  backdrop-filter: blur(10px);
}

.screen-head.home {
  grid-template-columns: minmax(0, 1fr) 80px;
}

.app-view.home-view .screen-head.home {
  position: sticky;
  top: 0;
  z-index: 45;
  transition: background .18s ease, box-shadow .18s ease, border-radius .18s ease;
}

.brand-watermark {
  position: relative;
  min-height: 112px;
  overflow: hidden;
  border-radius: 22px;
  padding: 14px;
  margin: 18px -2px 14px;
  background: linear-gradient(135deg, rgba(239, 252, 252, .92), rgba(255, 248, 239, .86));
}

.app-view.home-condensed .brand-watermark {
  min-height: 58px;
  margin: 0 -18px 14px;
  padding: 12px 18px;
  border-radius: 0 0 20px 20px;
  border-bottom: 1px solid rgba(241, 233, 221, .84);
  background: var(--screen);
  box-shadow: 0 10px 24px rgba(70, 54, 34, .08);
  backdrop-filter: blur(10px);
}

.brand-watermark::before {
  content: "";
  position: absolute;
  inset: 8px 10px;
  background: url("/assets/suupi-logo-bg.svg") center / contain no-repeat;
  opacity: .13;
  filter: blur(.8px);
  pointer-events: none;
}

.app-view.home-condensed .brand-watermark::before {
  inset: 8px 122px 8px 18px;
  background-position: left center;
  background-size: contain;
  opacity: .10;
  filter: blur(.4px);
}

.brand-watermark > * {
  position: relative;
  z-index: 1;
}

.screen-head h1,
.screen-head h2 {
  margin: 0;
  font-size: 19px;
  text-align: center;
  letter-spacing: 0;
}

.screen-head.home h1 {
  text-align: left;
}

.app-view.home-condensed .screen-head.home h1 {
  font-size: 19px;
}

.screen-head p {
  margin: 8px 0 0;
  color: #596063;
  font-size: 13px;
  line-height: 1.45;
}

.app-view.home-condensed .screen-head.home p {
  height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
}

.head-actions {
  display: flex;
  justify-content: end;
  gap: 10px;
}

.icon-btn {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #2a3032;
  background: #fff;
  box-shadow: 0 5px 14px rgba(70, 54, 34, .11);
  font-size: 18px;
}

.local-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.icon-activity { --icon: url("/assets/icons/activity.svg"); }
.icon-arrow-left { --icon: url("/assets/icons/arrow-left.svg"); }
.icon-award { --icon: url("/assets/icons/award.svg"); }
.icon-bell { --icon: url("/assets/icons/bell.svg"); }
.icon-bot { --icon: url("/assets/icons/bot.svg"); }
.icon-cat { --icon: url("/assets/icons/cat.svg"); }
.icon-chevron-down { --icon: url("/assets/icons/chevron-down.svg"); }
.icon-chart-no-axes-combined { --icon: url("/assets/icons/chart-no-axes-combined.svg"); }
.icon-circle-alert { --icon: url("/assets/icons/circle-alert.svg"); }
.icon-circle-check { --icon: url("/assets/icons/circle-check.svg"); }
.icon-clipboard-list { --icon: url("/assets/icons/clipboard-list.svg"); }
.icon-droplet { --icon: url("/assets/icons/droplet.svg"); }
.icon-droplets { --icon: url("/assets/icons/droplets.svg"); }
.icon-digestive-system { --icon: url("/assets/icons/digestive-system.svg"); }
.icon-file-text { --icon: url("/assets/icons/file-text.svg"); }
.icon-heart-pulse { --icon: url("/assets/icons/heart-pulse.svg"); }
.icon-house { --icon: url("/assets/icons/house.svg"); }
.icon-package-check { --icon: url("/assets/icons/package-check.svg"); }
.icon-paw-print { --icon: url("/assets/icons/paw-print.svg"); }
.icon-plus { --icon: url("/assets/icons/plus.svg"); }
.icon-scale { --icon: url("/assets/icons/scale.svg"); }
.icon-send { --icon: url("/assets/icons/send.svg"); }
.icon-settings { --icon: url("/assets/icons/settings.svg"); }
.icon-shield-alert { --icon: url("/assets/icons/shield-alert.svg"); }
.icon-sparkles { --icon: url("/assets/icons/sparkles.svg"); }
.icon-stethoscope { --icon: url("/assets/icons/stethoscope.svg"); }
.icon-thermometer { --icon: url("/assets/icons/thermometer.svg"); }
.icon-toilet { --icon: url("/assets/icons/toilet.svg"); }

.head-link {
  justify-self: end;
  color: #3a3f42;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.brand {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

.soft-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.health-score-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 16px;
  align-items: center;
  padding: 16px;
  margin-bottom: 14px;
}

.label {
  color: #60676a;
  font-size: 13px;
  font-weight: 800;
}

.score-line {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 9px;
}

.score-line strong {
  font-size: 38px;
  line-height: 1;
}

.score-line span {
  font-size: 17px;
  font-weight: 900;
}

.score-delta {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 8px;
  padding: 0 8px;
  background: #ecfbef;
  color: #25b84f;
  font-size: 12px;
  font-weight: 900;
}

.score-delta.down {
  background: #ffecea;
  color: #f05d52;
}

.score-delta.flat {
  background: #f1f1ef;
  color: #7d8588;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #555d60;
  font-size: 12px;
  font-weight: 800;
}

.chart-legend i {
  width: 12px;
  height: 4px;
  border-radius: 2px;
}

.subtext {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.score-ring,
.detail-ring {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green) calc(var(--score, 0) * 1%), #e7f8ec 0);
}

.score-ring {
  width: 88px;
  height: 88px;
}

.score-ring-center {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--green);
}

.score-ring-center .local-icon {
  width: 30px;
  height: 30px;
}

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

.cat-card {
  display: grid;
  gap: 7px;
  min-height: 210px;
  padding: 12px 9px;
  border: 2px solid #dcf8e3;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  text-align: left;
}

.cat-card.ABNORMAL,
.cat-card.WARNING {
  border-color: #ffdeda;
}

.cat-card.ATTENTION {
  border-color: #ffe8bd;
}

.cat-avatar,
.detail-avatar,
.doctor-cat {
  object-fit: cover;
}

.cat-avatar {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  justify-self: center;
}

.cat-name {
  font-weight: 900;
}

.cat-meta {
  color: #313638;
  font-size: 13px;
  line-height: 1.55;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 24px;
  border-radius: 8px;
  padding: 0 9px;
  background: #ecfbef;
  color: #25b84f;
  font-size: 12px;
  font-weight: 900;
}

.pill.ABNORMAL,
.pill.WARNING {
  background: #ffecea;
  color: #f05d52;
}

.pill.ATTENTION {
  background: #fff2da;
  color: #f39c23;
}

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

.section-head h3 {
  margin: 0;
  font-size: 15px;
}

.section-head a,
.section-head span {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.setup-entry,
.profile-mini,
.event-summary,
.identity-hero,
.setup-card,
.event-full-card {
  padding: 14px;
  margin-bottom: 14px;
}

.setup-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.setup-entry p,
.identity-hero p,
.setup-card p,
.event-full-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.primary-link,
.ghost-btn {
  display: inline-grid;
  min-height: 34px;
  place-items: center;
  border-radius: 14px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.primary-link {
  background: var(--purple);
  color: #fff;
}

.ghost-btn {
  border: 1px solid #f0dfcf;
  background: #fff8ef;
  color: #8b6260;
}

.profile-mini {
  display: grid;
  gap: 6px;
  color: #3d4447;
}

.profile-mini span,
.profile-mini small {
  color: var(--muted);
}

.event-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  text-align: center;
}

.event-summary b {
  display: block;
  font-size: 24px;
}

.event-summary span,
.event-metrics span,
.cluster-row span,
.cluster-row small {
  color: var(--muted);
  font-size: 12px;
}

.event-full-card {
  display: grid;
  gap: 10px;
}

.between-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.identity-hero {
  background: linear-gradient(180deg, #ffffff 0%, #fff8ef 100%);
}

.identity-hero h3 {
  margin: 8px 0;
  font-size: 17px;
  line-height: 1.45;
}

.identity-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.identity-stats span {
  border-radius: 999px;
  padding: 6px 10px;
  background: #f3f3f1;
  color: #4c5355;
  font-size: 12px;
  font-weight: 900;
}

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

.setup-card {
  display: grid;
  gap: 10px;
}

.avatar-upload {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.avatar-upload-preview {
  width: 64px;
  height: 64px;
  border: 1px solid #eee2d2;
  border-radius: 18px;
  background: #fffcf7;
  object-fit: cover;
}

.avatar-upload-btn {
  display: inline-grid;
  min-height: 34px;
  place-items: center;
  border-radius: 14px;
  padding: 0 12px;
  background: var(--purple);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.avatar-upload-btn input {
  display: none;
}

.avatar-upload small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.setup-card input,
.setup-card select {
  width: 100%;
  height: 42px;
  border: 1px solid #eee2d2;
  border-radius: 14px;
  padding: 0 12px;
  outline: none;
  background: #fffcf7;
}

.setup-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.cluster-row {
  display: grid;
  gap: 3px;
  border-top: 1px solid #f3eadf;
  padding: 10px 0;
}

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

.chart-card {
  padding: 14px;
  margin-bottom: 14px;
}

.chart-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #555d60;
  font-size: 13px;
  font-weight: 900;
}

.svg-chart {
  display: block;
  width: 100%;
  height: 132px;
}

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

.event-row {
  display: grid;
  grid-template-columns: 52px 12px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  min-height: 28px;
  font-size: 13px;
}

.event-name-line {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.event-type-icon {
  width: 16px;
  height: 16px;
  color: #5f686b;
}

.event-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.event-dot.red {
  background: var(--red);
}

.event-dot.orange {
  background: var(--orange);
}

.cat-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
}

.cat-selector a {
  flex: 0 0 auto;
  min-width: 74px;
  border-radius: 16px;
  padding: 8px 12px;
  background: #f3f3f1;
  color: #4d5456;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.cat-selector a.active {
  background: var(--purple);
  color: #fff;
}

.cat-detail-picker {
  display: grid;
  margin-bottom: 14px;
  padding: 11px 12px;
  border: 1px solid #e8eee9;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(33, 37, 38, .06);
}

.cat-detail-picker:not(.single) {
  padding: 0;
}

.cat-detail-current {
  display: inline-flex;
  align-items: baseline;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
}

.cat-detail-current b,
.cat-detail-current small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-detail-current b {
  min-width: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.cat-detail-current small {
  flex: 0 1 auto;
  margin-left: 3px;
  color: #70777a;
  font-size: 12px;
  font-weight: 800;
}

.cat-switcher {
  position: relative;
  width: 100%;
}

.cat-switcher summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  gap: 4px;
  padding: 11px 12px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.cat-switcher summary::-webkit-details-marker {
  display: none;
}

.cat-switcher summary:focus-visible {
  outline: 2px solid rgba(92, 88, 255, .28);
  outline-offset: 4px;
  border-radius: 8px;
}

.cat-switcher .cat-detail-current {
  min-width: 0;
}

.cat-switcher-arrow {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: #8a9295;
  transition: transform .18s ease;
}

.cat-switcher[open] .cat-switcher-arrow {
  transform: rotate(180deg);
}

.cat-switcher-menu {
  display: grid;
  gap: 8px;
  margin: 0 12px 12px;
}

.cat-switcher-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 50px;
  padding: 7px 8px;
  border: 1px solid #edf0ec;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
}

.cat-switcher-item.active {
  border-color: #d9d6ff;
  background: #f4f3ff;
}

.cat-switcher-item img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #f4f5f2;
}

.cat-switcher-item span {
  min-width: 0;
}

.cat-switcher-item b,
.cat-switcher-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cat-switcher-item b {
  font-size: 14px;
  font-weight: 900;
}

.cat-switcher-item small {
  margin-top: 3px;
  color: #70777a;
  font-size: 11px;
  font-weight: 800;
}

.detail-top {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 72px;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.detail-avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
}

.detail-name {
  font-size: 18px;
  font-weight: 900;
}

.detail-meta {
  margin-top: 7px;
  color: #70777a;
  font-size: 12px;
}

.detail-ring {
  width: 70px;
  height: 70px;
}

.detail-ring::after {
  content: attr(data-score);
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #101315;
  font-size: 21px;
  font-weight: 900;
}

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

.metric-card {
  min-height: 112px;
  padding: 13px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.metric-name {
  color: #50575a;
  font-size: 13px;
  font-weight: 900;
}

.metric-value {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 900;
}

.metric-value span {
  margin-left: 3px;
  font-size: 14px;
}

.metric-card small {
  display: block;
  margin-top: 5px;
  color: var(--green);
  font-weight: 900;
}

.today-data {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.tiny-card {
  min-height: 86px;
  padding: 12px 8px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.tiny-card span {
  color: #697174;
  font-size: 12px;
}

.tiny-card b {
  display: block;
  margin-top: 6px;
  font-size: 20px;
}

.segmented {
  display: grid;
  grid-auto-flow: column;
  gap: 8px;
  margin-bottom: 14px;
}

.segmented a,
.segmented button {
  display: grid;
  min-height: 34px;
  place-items: center;
  border-radius: 17px;
  background: #f2f2f1;
  color: #4c5355;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.segmented .active,
.segmented button.active {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 8px 16px rgba(92, 88, 255, .2);
}

.analysis-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 12px;
  padding: 14px;
  border: 1px solid #daf4df;
  border-radius: 18px;
  background: #fbfffb;
  margin-bottom: 14px;
}

.analysis-hero h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 6px;
  font-size: 18px;
}

.inline-title-icon {
  width: 19px;
  height: 19px;
  color: var(--green);
}

.doctor-cat {
  width: 112px;
  height: 112px;
  align-self: end;
}

.risk-card,
.report-item,
.ai-advice {
  display: grid;
  gap: 6px;
  padding: 13px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.risk-card {
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
}

.risk-icon,
.report-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: #eef8ff;
  color: #3482d8;
}

.risk-icon .local-icon,
.report-icon .local-icon {
  width: 19px;
  height: 19px;
}

.risk-title {
  font-weight: 900;
}

.risk-desc,
.report-summary,
.ai-advice {
  color: #626a6d;
  font-size: 13px;
  line-height: 1.65;
}

.ai-advice {
  margin-top: 12px;
  border: 1px solid #e4e6ff;
  background: #fbfbff;
}

.ai-chat-answer {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f4f5ff;
  border: 1px solid #e4e6ff;
  color: #3b4247;
  font-size: 13px;
  line-height: 1.65;
}

.ai-chat-box {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.ai-chat-bot {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: #eef8ff;
  color: #3482d8;
}

.ai-chat-bot .local-icon {
  width: 18px;
  height: 18px;
}

.ai-chat-box input {
  height: 38px;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
}

.ai-chat-send {
  min-height: 34px;
  border-radius: 14px;
  background: var(--purple);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.report-score-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  align-items: center;
  padding: 16px;
  margin-bottom: 14px;
}

.medal {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  color: #ffb33d;
  filter: drop-shadow(0 8px 12px rgba(255, 179, 61, .24));
}

.medal .local-icon {
  width: 62px;
  height: 62px;
}

.report-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.report-item {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
}

.login-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  margin-top: 18px;
}

.login-card input {
  width: 100%;
  height: 42px;
  border: 1px solid #eee2d2;
  border-radius: 14px;
  padding: 0 12px;
  outline: none;
  background: #fffcf7;
}

.primary-btn {
  min-height: 42px;
  border-radius: 14px;
  background: var(--purple);
  color: #fff;
  font-weight: 900;
}

.empty-state {
  display: grid;
  min-height: 160px;
  place-items: center;
  border: 1px dashed #eaded0;
  border-radius: 18px;
  background: #fffaf3;
  color: #777f82;
  text-align: center;
  line-height: 1.7;
}

.tabbar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 72px;
  border-top: 1px solid #f2eadf;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
}

.tabbar a {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  color: #202426;
  font-size: 12px;
  text-decoration: none;
}

.tabbar-icon {
  width: 22px;
  height: 22px;
}

.tabbar a.active {
  color: var(--purple);
  font-weight: 900;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 20;
  max-width: min(360px, calc(100vw - 32px));
  transform: translateX(-50%);
  border-radius: 16px;
  padding: 12px 16px;
  background: rgba(28, 32, 33, .92);
  color: #fff;
  box-shadow: 0 16px 36px rgba(28, 32, 33, .22);
}

@media (max-width: 768px) {
  body {
    background: var(--screen);
  }

  .mobile-shell {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
  }

  .phone-screen {
    width: 100vw;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .app-view {
    padding: 0 16px 24px;
  }

  .screen-head:not(.home) {
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .app-view.home-condensed .brand-watermark {
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 16px;
    padding-left: 16px;
  }
}
