:root {
  color-scheme: light;
  --bg: #fff7ef;
  --ink: #223044;
  --muted: #718096;
  --soft: #9aa6b5;
  --card: rgba(255, 255, 255, 0.86);
  --card-strong: #ffffff;
  --line: rgba(70, 86, 110, 0.13);
  --shadow: 0 20px 60px rgba(93, 77, 60, 0.12);
  --blue: #6f9ef6;
  --purple: #a78bfa;
  --warm: #ffb86c;
  --green: #48b886;
  --red: #ef6f7a;
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 184, 108, 0.28), transparent 28%),
    radial-gradient(circle at 88% 20%, rgba(111, 158, 246, 0.24), transparent 26%),
    linear-gradient(180deg, #fff8f1 0%, #f7f1ff 58%, #eef6ff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

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

button {
  border: 0;
}

.page-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent 0 9%, rgba(255, 255, 255, 0.42) 10%, transparent 11%),
    linear-gradient(180deg, transparent 0 18%, rgba(111, 158, 246, 0.08) 19%, transparent 20%);
  background-size: 180px 180px, 100% 280px;
  opacity: 0.42;
  pointer-events: none;
}

.desktop-copy {
  display: none;
}

.app-shell {
  position: relative;
  width: min(100vw, 430px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 14px 16px 132px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.34)),
    rgba(255, 248, 240, 0.76);
  overflow-x: hidden;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  padding: 4px 0 10px;
  background: linear-gradient(180deg, rgba(255, 248, 240, 0.96), rgba(255, 248, 240, 0));
}

.brand-button,
.language-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
}

.brand-button {
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  font-weight: 860;
}

.brand-paw {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe2bd, #dbe8ff);
}

.language-pill {
  min-width: 44px;
  height: 38px;
  justify-content: center;
  font-size: 12px;
  font-weight: 820;
}

.language-control {
  position: relative;
}

.language-menu {
  position: absolute;
  top: 46px;
  right: 0;
  z-index: 50;
  display: grid;
  gap: 6px;
  min-width: 128px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 42px rgba(80, 76, 68, 0.13);
  backdrop-filter: blur(18px);
}

.language-menu[hidden] {
  display: none;
}

.language-menu button {
  min-height: 36px;
  border-radius: 13px;
  color: var(--ink);
  background: rgba(111, 158, 246, 0.08);
  cursor: pointer;
  font-weight: 820;
}

.screen {
  display: none;
  padding-bottom: 22px;
  animation: viewIn 340ms ease both;
}

.screen.is-active {
  display: block;
}

.welcome-card,
.pet-card,
.value-card,
.profile-form,
.status-banner,
.status-tile,
.timeline-item,
.filter-card,
.summary-card,
.pet-manage-card,
.case-list article,
.insight-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.58)),
    var(--card);
  box-shadow: var(--shadow);
}

.welcome-card {
  position: relative;
  min-height: 360px;
  padding: 26px;
  overflow: hidden;
}

.welcome-card::after {
  content: "🐾";
  position: absolute;
  right: -12px;
  bottom: -34px;
  font-size: 156px;
  opacity: 0.08;
  transform: rotate(-18deg);
}

.eyebrow {
  margin: 0 0 10px;
  color: #8c7a69;
  font-size: 11px;
  font-weight: 860;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.welcome-card h2 {
  position: relative;
  z-index: 1;
  margin: 86px 0 0;
  font-size: 64px;
  line-height: 0.92;
  font-weight: 930;
}

.slogan {
  position: relative;
  z-index: 1;
  max-width: 250px;
  margin: 18px 0 0;
  color: #4d5d72;
  font-size: 20px;
  line-height: 1.36;
  font-weight: 720;
}

.welcome-copy {
  position: relative;
  z-index: 1;
  max-width: 300px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.welcome-actions,
.range-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.range-btn {
  min-height: 42px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
  font-weight: 780;
}

.range-btn.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 12px 28px rgba(111, 158, 246, 0.22);
}

.welcome-actions {
  margin-top: 14px;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.text-btn {
  min-height: 48px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.prototype-link {
  display: block;
  width: fit-content;
  margin: 18px auto 0;
  padding: 0;
  color: rgba(82, 97, 116, 0.72);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 820;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #567ff0, #9b7af7);
  box-shadow: 0 14px 34px rgba(111, 128, 246, 0.24);
  font-weight: 850;
}

.secondary-btn,
.ghost-btn {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 820;
}

.ghost-btn {
  min-height: 38px;
  padding: 0 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.48);
}

.text-btn {
  min-height: auto;
  padding: 0;
  color: var(--blue);
  background: transparent;
  font-weight: 820;
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.quick-action:hover,
.range-btn:hover {
  transform: translateY(-1px);
}

.primary-btn:active,
.secondary-btn:active,
.ghost-btn:active,
.quick-action:active,
.tab-item:active {
  transform: scale(0.98);
}

.full {
  width: 100%;
}

.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.value-grid,
.status-grid,
.quick-grid,
.timeline,
.insight-list,
.stats-grid,
.case-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.value-card {
  padding: 18px;
}

.value-card span,
.case-list article span {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 14px;
  color: #567ff0;
  background: rgba(111, 158, 246, 0.12);
  font-size: 12px;
  font-weight: 880;
}

.value-card h3,
.case-list h3 {
  margin: 12px 0 6px;
  font-size: 19px;
}

.value-card p,
.case-list p,
.empty-state p,
.insight-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.section-head {
  padding: 16px 2px 8px;
}

.section-head h2,
.section-row h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
  font-weight: 890;
}

.section-head p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.section-row,
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.compact-row {
  margin-top: 22px;
}

.compact-row h3 {
  margin: 0;
  font-size: 20px;
}

.profile-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.profile-form label,
.filter-card label,
.log-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  outline: none;
}

input,
select {
  height: 46px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  padding: 12px;
}

input:focus,
textarea:focus {
  border-color: rgba(111, 158, 246, 0.42);
  box-shadow: 0 0 0 4px rgba(111, 158, 246, 0.12);
}

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

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.avatar-grid,
.color-grid,
.chip-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip-selector {
  align-items: center;
}

.selector-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 999px;
  color: #526174;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.selector-chip span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  font-size: 18px;
}

.selector-chip strong {
  font-size: 13px;
  font-weight: 830;
}

.selector-chip.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(111, 158, 246, 0.28),
    0 10px 24px rgba(111, 158, 246, 0.16);
}

.selector-chip:active {
  transform: scale(0.98);
}

.species-selector .selector-chip {
  min-height: 48px;
}

.compact-chip {
  min-height: 36px;
  padding: 0 12px;
}

.mood-selector {
  max-height: 128px;
  overflow-y: auto;
  padding-bottom: 2px;
}

.history-filter {
  margin-top: 12px;
}

.avatar-option,
.color-option {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
}

.avatar-option {
  font-size: 24px;
}

.avatar-option.is-active,
.color-option.is-active {
  box-shadow:
    inset 0 0 0 2px #fff,
    0 0 0 3px rgba(111, 158, 246, 0.42);
}

.form-actions {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 10px;
}

.pet-switcher {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 8px 0 4px;
}

.pet-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px var(--line);
  white-space: nowrap;
  cursor: pointer;
  font-weight: 760;
}

.pet-chip.is-active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 12px 28px rgba(85, 78, 68, 0.11);
}

.pet-card {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 12px;
  padding: 18px;
  overflow: hidden;
}

.pet-card::after {
  content: "";
  position: absolute;
  inset: auto -28px -48px auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--pet-color, #6f9ef6);
  opacity: 0.12;
}

.pet-avatar {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--pet-color, #6f9ef6), rgba(255, 255, 255, 0.8));
  font-size: 42px;
}

.pet-card h3 {
  margin: 0;
  font-size: 28px;
}

.pet-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.disclaimer-line {
  margin: 10px 4px 0;
  color: rgba(82, 97, 116, 0.72);
  font-size: 12px;
  line-height: 1.45;
}

.status-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(72, 184, 134, 0.14);
}

.status-banner.warning .status-dot {
  background: var(--warm);
  box-shadow: 0 0 0 7px rgba(255, 184, 108, 0.16);
}

.status-banner.attention .status-dot {
  background: var(--red);
  box-shadow: 0 0 0 7px rgba(239, 111, 122, 0.14);
}

.status-banner strong {
  display: block;
}

.status-banner span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

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

.status-tile {
  padding: 15px;
}

.status-tile span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.status-tile strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

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

.quick-grid.large {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 15px;
  border-radius: 24px;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.62)),
    var(--action-color, #fff);
  box-shadow: 0 16px 42px rgba(80, 76, 68, 0.1);
  cursor: pointer;
}

.quick-action .emoji {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.52);
  font-size: 24px;
  line-height: 1;
}

.quick-action strong {
  font-size: 16px;
  text-align: left;
}

.timeline {
  padding-bottom: 6px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  animation: viewIn 260ms ease both;
}

.log-emoji {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(111, 158, 246, 0.12);
  font-size: 22px;
}

.timeline-main {
  min-width: 0;
}

.timeline-title {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: baseline;
}

.timeline-title strong {
  font-size: 16px;
}

.timeline-title span {
  color: var(--muted);
  font-size: 13px;
}

.timeline-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.abnormal-tag {
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #9b3641;
  background: rgba(239, 111, 122, 0.12);
  font-size: 12px;
  font-weight: 760;
}

.timeline-actions {
  display: flex;
  gap: 10px;
  margin-top: 9px;
}

.timeline-actions button {
  color: var(--blue);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 820;
}

.empty-state {
  padding: 24px 18px;
  text-align: center;
}

.insight-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 15px;
}

.insight-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: rgba(111, 158, 246, 0.12);
}

.insight-card strong {
  display: block;
}

.insight-card.attention {
  border-color: rgba(239, 111, 122, 0.22);
}

.filter-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px;
  margin-top: 12px;
}

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

.stat-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
}

.stat-card span {
  color: var(--muted);
  font-size: 12px;
}

.stat-card strong {
  display: block;
  margin-top: 7px;
  font-size: 24px;
}

.pets-list {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.pet-manage-card {
  padding: 15px;
}

.pet-manage-card.is-active {
  border-color: rgba(111, 158, 246, 0.32);
}

.pet-manage-main {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.pet-manage-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--pet-color, #6f9ef6), rgba(255, 255, 255, 0.8));
  font-size: 30px;
}

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

.pet-manage-title h3 {
  margin: 0;
  font-size: 20px;
}

.pet-manage-title span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #567ff0;
  background: rgba(111, 158, 246, 0.12);
  font-size: 11px;
  font-weight: 850;
}

.pet-manage-main p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.pet-manage-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.pet-manage-actions button {
  min-height: 36px;
  border-radius: 14px;
  color: #526174;
  background: rgba(111, 158, 246, 0.08);
  cursor: pointer;
  font-size: 12px;
  font-weight: 830;
}

.summary-card {
  margin-top: 14px;
  padding: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(243, 249, 255, 0.74)),
    #fff;
}

.summary-card h3 {
  margin: 0;
  font-size: 26px;
}

.summary-card p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.summary-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(70, 86, 110, 0.09);
}

.summary-row span:first-child {
  color: var(--muted);
}

.summary-row span:last-child {
  text-align: right;
  font-weight: 760;
}

.copy-feedback {
  min-height: 22px;
  color: var(--green);
  text-align: center;
  font-size: 13px;
  font-weight: 780;
}

.case-list article {
  padding: 18px;
}

.case-hero {
  margin-top: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 85% 5%, rgba(111, 158, 246, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.6));
  box-shadow: var(--shadow);
}

.case-hero h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
}

.case-hero p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.case-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.case-meta article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
}

.case-meta span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.case-meta strong {
  display: block;
  margin-top: 6px;
}

.sheet-backdrop,
.confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  background: rgba(33, 43, 58, 0.24);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 180ms ease;
  backdrop-filter: blur(8px);
}

.sheet-backdrop {
  align-items: end;
}

.confirm-backdrop {
  place-items: center;
  padding: 18px;
}

.sheet-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.confirm-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.bottom-sheet {
  width: min(100vw, 430px);
  max-height: 86vh;
  margin: 0 auto;
  padding: 10px 16px 20px;
  border: 1px solid var(--line);
  border-radius: 30px 30px 0 0;
  background: rgba(255, 250, 244, 0.96);
  box-shadow: 0 -18px 60px rgba(63, 52, 42, 0.18);
  transform: translateY(20px);
  transition: transform 180ms ease;
}

.sheet-backdrop.is-active .bottom-sheet {
  transform: translateY(0);
}

.confirm-modal {
  width: min(calc(100vw - 36px), 360px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 240, 0.9)),
    #fff;
  box-shadow: 0 22px 70px rgba(63, 52, 42, 0.2);
  transform: translateY(12px) scale(0.98);
  transition: transform 180ms ease;
}

.confirm-backdrop.is-active .confirm-modal {
  transform: translateY(0) scale(1);
}

.confirm-modal h2 {
  margin: 0;
  font-size: 24px;
}

.confirm-modal p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 10px;
  margin-top: 18px;
}

.sheet-handle {
  width: 46px;
  height: 5px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: rgba(70, 86, 110, 0.18);
}

.log-form {
  display: grid;
  gap: 12px;
}

.checkbox-row {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  width: min(calc(100vw - 20px), 410px);
  min-height: 72px;
  padding: 8px;
  border: 1px solid rgba(70, 86, 110, 0.13);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 18px 48px rgba(67, 56, 44, 0.15);
  backdrop-filter: blur(20px);
  transform: translateX(-50%);
}

.tab-item {
  display: grid;
  place-items: center;
  gap: 2px;
  border-radius: 20px;
  color: var(--soft);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.tab-item.is-active {
  color: var(--ink);
  background: rgba(111, 158, 246, 0.12);
}

.tab-icon {
  font-size: 19px;
  line-height: 1;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 98px;
  z-index: 90;
  max-width: min(calc(100vw - 40px), 360px);
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 38px rgba(80, 76, 68, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 180ms ease, transform 180ms ease;
  font-size: 13px;
  font-weight: 820;
}

.toast.is-active {
  opacity: 1;
  transform: translate(-50%, 0);
}

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

@media (min-width: 930px) {
  body {
    display: grid;
    grid-template-columns: minmax(320px, 460px) minmax(430px, 500px);
    align-items: center;
    justify-content: center;
    gap: clamp(42px, 7vw, 96px);
    min-height: 100vh;
    padding: 28px;
  }

  .desktop-copy {
    display: block;
  }

  .desktop-copy h1 {
    margin: 0;
    font-size: clamp(72px, 8vw, 108px);
    line-height: 0.9;
  }

  .desktop-copy p:not(.eyebrow) {
    max-width: 390px;
    margin: 22px 0 0;
    color: #526174;
    font-size: 20px;
    line-height: 1.55;
  }

  .desktop-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
  }

  .desktop-chips span {
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #526174;
    background: rgba(255, 255, 255, 0.54);
    font-size: 13px;
    font-weight: 780;
  }

  .app-shell {
    height: min(900px, calc(100vh - 56px));
    min-height: 760px;
    border: 1px solid rgba(70, 86, 110, 0.14);
    border-radius: 46px;
    box-shadow: 0 34px 120px rgba(70, 60, 48, 0.2);
    overflow-y: auto;
  }

  .tabbar {
    position: sticky;
    left: auto;
    bottom: 10px;
    width: 100%;
    transform: none;
  }

  .toast {
    bottom: 32px;
  }

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

@media (max-width: 380px) {
  .app-shell {
    padding-inline: 12px;
  }

  .welcome-card {
    padding: 22px;
  }

  .welcome-card h2 {
    font-size: 54px;
  }

  .form-grid,
  .filter-card,
  .welcome-actions,
  .form-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
