:root {
  --bg: #ebe4d8;
  --paper: rgba(255, 250, 244, 0.88);
  --paper-strong: rgba(255, 252, 247, 0.98);
  --ink: #172733;
  --ink-soft: rgba(23, 39, 51, 0.72);
  --line: rgba(23, 39, 51, 0.11);
  --line-strong: rgba(23, 39, 51, 0.2);
  --teal: #0b6073;
  --teal-soft: rgba(11, 96, 115, 0.12);
  --coral: #d67958;
  --gold: #d8b36d;
  --success: #226953;
  --shadow: rgba(15, 26, 36, 0.18);
  --screen-shadow: rgba(17, 35, 49, 0.28);
  --radius-xl: 46px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --safe-top: calc(56px + env(safe-area-inset-top, 0px));
  --safe-bottom: calc(118px + env(safe-area-inset-bottom, 0px));
  --ease: 240ms ease;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Inter", "Noto Sans SC", sans-serif;
  overscroll-behavior-y: none;
  background:
    radial-gradient(circle at 14% 12%, rgba(11, 96, 115, 0.14), transparent 24%),
    radial-gradient(circle at 82% 16%, rgba(214, 121, 88, 0.14), transparent 22%),
    linear-gradient(180deg, #f4ede2 0%, #e9e0d1 100%);
}

button,
input {
  font: inherit;
}

.backdrop {
  position: fixed;
  border-radius: 999px;
  filter: blur(56px);
  opacity: 0.52;
  pointer-events: none;
}

.blur-a {
  top: 10%;
  left: -4rem;
  width: 18rem;
  height: 18rem;
  background: rgba(11, 96, 115, 0.14);
}

.blur-b {
  right: -3rem;
  bottom: 16%;
  width: 20rem;
  height: 20rem;
  background: rgba(216, 179, 109, 0.18);
}

.stage {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: 28px 18px 40px;
}

.stage-header {
  width: min(460px, 100%);
  text-align: center;
}

.stage-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(23, 39, 51, 0.08);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.stage-header h1 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.stage-header p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.device-wrap {
  width: min(100%, 430px);
}

.device-frame {
  position: relative;
  border-radius: 58px;
  padding: 14px;
  background:
    linear-gradient(150deg, rgba(250, 248, 245, 0.95), rgba(217, 213, 206, 0.88));
  box-shadow:
    0 40px 90px var(--screen-shadow),
    inset 0 2px 0 rgba(255, 255, 255, 0.74);
}

.device-top {
  position: absolute;
  left: 50%;
  top: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  transform: translateX(-50%);
  z-index: 4;
}

.camera-hole,
.dynamic-island {
  background: #0d1216;
}

.camera-hole {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dynamic-island {
  width: 108px;
  height: 28px;
  border-radius: 999px;
}

.screen {
  position: relative;
  overflow: hidden;
  border-radius: 44px;
  min-height: 844px;
  min-height: 100svh;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.42), transparent 28%),
    linear-gradient(180deg, #f9f4ed 0%, #f3ece2 58%, #f0e7da 100%);
}

.status-bar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px 0;
  font-size: 0.88rem;
  font-weight: 700;
}

.status-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.battery {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(23, 39, 51, 0.08);
}

.app-body {
  position: relative;
  min-height: 844px;
  min-height: 100svh;
}

.mode-toggle {
  position: absolute;
  top: calc(var(--safe-top) + 4px);
  left: 18px;
  right: 18px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(23, 39, 51, 0.08);
  backdrop-filter: blur(20px);
}

.mode-button,
.segment-button,
.treatment-chip,
.tab-button,
.mini-action,
.primary-cta,
.secondary-cta {
  appearance: none;
  border: 0;
  cursor: pointer;
  transition: transform var(--ease), background var(--ease), color var(--ease), box-shadow var(--ease);
}

.mode-button {
  min-height: 38px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 700;
}

.mode-button.is-active {
  background: rgba(11, 96, 115, 0.94);
  color: #f7f4ef;
  box-shadow: 0 10px 18px rgba(11, 96, 115, 0.18);
}

.app-screen {
  position: absolute;
  inset: 0;
  padding: 112px 18px var(--safe-bottom);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateX(26px);
  transition: opacity 380ms ease, transform 380ms ease;
  scrollbar-width: none;
}

.app-screen::-webkit-scrollbar {
  display: none;
}

.app-screen.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.screen-head,
.capture-top,
.card-head,
.report-top,
.report-row,
.action-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.micro-label {
  margin: 0 0 4px;
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.screen-head h2 {
  margin: 0;
  font-size: 1.86rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.screen-badge,
.privacy-pill,
.report-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 39, 51, 0.08);
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

.hero-card,
.capture-card,
.privacy-card,
.score-card,
.metric-tile,
.insight-card,
.simulation-card,
.simulation-note,
.report-card,
.welcome-card,
.upload-shell,
.mini-note-card,
.report-preview-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.92), rgba(247, 240, 232, 0.84));
  box-shadow:
    0 18px 36px rgba(23, 39, 51, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.hero-card,
.score-card,
.simulation-card,
.report-card {
  border-radius: 28px;
}

.welcome-card,
.upload-shell {
  border-radius: 28px;
}

.welcome-card {
  padding: 18px;
  margin-top: 16px;
}

.welcome-card.is-hidden {
  display: none;
}

.welcome-card h3 {
  margin: 10px 0 8px;
  font-size: 1.32rem;
  line-height: 1.22;
  letter-spacing: -0.04em;
}

.welcome-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.74;
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 16px;
  padding: 18px;
  margin-top: 16px;
}

.hero-kicker,
.score-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(11, 96, 115, 0.12);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-card-copy h3,
.score-copy h3 {
  margin: 10px 0 8px;
  font-size: 1.32rem;
  line-height: 1.22;
  letter-spacing: -0.04em;
}

.hero-card-copy p,
.score-copy p,
.capture-top span,
.privacy-card p,
.simulation-note p,
.report-top p,
.report-mini-copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.hero-avatar,
.capture-preview,
.report-mini-thumb {
  border-radius: 24px;
}

.hero-avatar,
.report-mini-thumb {
  min-height: 124px;
}

.demo-surface {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.42), transparent 20%),
    linear-gradient(180deg, rgba(13, 96, 115, 0.22), rgba(24, 55, 64, 0.16));
}

.demo-surface::before,
.demo-surface::after {
  content: "";
  position: absolute;
}

.demo-surface::before {
  left: 24%;
  top: 18%;
  width: 52%;
  height: 62%;
  border-radius: 48% 52% 42% 58% / 34% 30% 54% 52%;
  background:
    radial-gradient(circle at 50% 30%, rgba(250, 233, 214, 0.95), rgba(225, 201, 176, 0.92) 62%, rgba(191, 161, 136, 0.96) 100%);
}

.demo-surface::after {
  inset: 8% 18% auto 14%;
  height: 46%;
  border-radius: 46% 54% 40% 60%;
  background:
    radial-gradient(circle at 36% 22%, rgba(60, 46, 42, 0.4), transparent 28%),
    linear-gradient(180deg, rgba(72, 54, 44, 0.9), rgba(99, 72, 58, 0.3));
  filter: blur(1px);
}

.profile-surface::before {
  left: 30%;
  top: 16%;
  width: 42%;
  height: 66%;
  border-radius: 38% 62% 48% 52% / 34% 28% 58% 56%;
}

.profile-surface::after {
  inset: 10% 20% auto 22%;
}

.has-photo {
  background-image: var(--photo-image);
  background-size: var(--photo-fit, cover);
  background-position: var(--photo-position, center);
  background-repeat: no-repeat;
  background-color: #e8ddd0;
}

.has-photo::before,
.has-photo::after {
  display: none;
}

.capture-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.upload-shell {
  padding: 16px;
  margin-top: 16px;
}

.upload-shell.is-filled .guide-chips,
.upload-shell.is-filled .mini-note-card {
  display: none;
}

.upload-shell.is-filled .mini-preview-row {
  grid-template-columns: 1fr;
  margin-top: 14px;
}

.upload-main {
  position: relative;
  overflow: hidden;
  min-height: 272px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(227, 239, 242, 0.92), rgba(243, 236, 226, 0.9));
}

.upload-main.is-filled {
  min-height: 334px;
}

.upload-visual.has-photo {
  --photo-fit: contain;
  --photo-position: center 18%;
}

.upload-visual {
  position: absolute;
  inset: 0;
}

.upload-overlay {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 252, 248, 0.82);
  border: 1px solid rgba(23, 39, 51, 0.08);
  backdrop-filter: blur(18px);
}

.upload-main.is-filled .upload-overlay {
  display: none;
}

.upload-overlay strong {
  font-size: 1.05rem;
}

.upload-overlay p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 0.9rem;
}

.upload-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(11, 96, 115, 0.12);
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 700;
}

.upload-edit-chip {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 252, 248, 0.88);
  border: 1px solid rgba(23, 39, 51, 0.08);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(23, 39, 51, 0.08);
}

.guide-chips {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.guide-chips::-webkit-scrollbar {
  display: none;
}

.guide-chips span {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(23, 39, 51, 0.08);
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 34px;
  white-space: nowrap;
}

.upload-status {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(23, 39, 51, 0.08);
  background: rgba(255, 255, 255, 0.78);
}

.upload-status strong {
  font-size: 0.94rem;
}

.upload-status p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.6;
}

.mini-preview-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 122px;
  gap: 12px;
  margin-top: 12px;
}

.mini-photo-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  text-align: left;
}

.mini-photo {
  min-height: 88px;
  border-radius: 18px;
}

.mini-photo.has-photo,
.mini-result.has-photo,
.report-mini-thumb.has-photo {
  --photo-fit: contain;
  --photo-position: center center;
}

.mini-photo-copy {
  display: grid;
  gap: 4px;
}

.mini-photo-copy strong {
  font-size: 0.96rem;
}

.mini-photo-copy span {
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.55;
}

.mini-note-card {
  padding: 14px;
  border-radius: 22px;
}

.mini-note-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.mini-note-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.65;
}

.analysis-visual-card,
.evidence-card {
  margin-top: 16px;
  border-radius: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.92), rgba(247, 240, 232, 0.84));
  box-shadow:
    0 18px 36px rgba(23, 39, 51, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.analysis-canvas,
.simulation-output,
.mini-result,
.report-mini-thumb {
  display: block;
}

.analysis-canvas {
  width: 100%;
  height: auto;
  margin-top: 12px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.42), transparent 24%),
    linear-gradient(180deg, rgba(227, 239, 242, 0.92), rgba(243, 236, 226, 0.9));
}

.analysis-method-note {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.65;
}

.evidence-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  line-height: 1.78;
}

.capture-card,
.privacy-card,
.insight-card,
.summary-card,
.simulation-note,
.report-preview-card {
  border-radius: 24px;
  padding: 16px;
}

.capture-top strong,
.privacy-card strong,
.report-title strong,
.report-row strong {
  font-size: 0.96rem;
}

.capture-top span,
.privacy-card p,
.report-top p,
.report-mini-copy p {
  font-size: 0.88rem;
}

.capture-preview {
  min-height: 116px;
  margin-top: 12px;
}

.mini-action {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(11, 96, 115, 0.12);
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 700;
}

.privacy-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
}

.primary-cta,
.secondary-cta {
  min-height: 52px;
  border-radius: 20px;
  font-weight: 700;
}

.primary-cta {
  width: 100%;
  margin-top: 16px;
  background:
    linear-gradient(135deg, rgba(11, 96, 115, 0.98), rgba(14, 119, 143, 0.96));
  color: #f7f4ef;
  box-shadow: 0 16px 26px rgba(11, 96, 115, 0.22);
}

.primary-cta-compact {
  width: auto;
  min-height: 44px;
  margin-top: 2px;
  padding: 0 18px;
  border-radius: 16px;
}

.secondary-cta {
  flex: 1;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(23, 39, 51, 0.08);
  color: var(--ink);
}

.score-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  margin-top: 16px;
}

.score-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background:
    conic-gradient(var(--teal) calc(var(--score, 86) * 1%), rgba(23, 39, 51, 0.08) 0);
}

.score-ring::before {
  content: "";
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--paper-strong);
}

.score-ring span {
  position: absolute;
  font-size: 1.44rem;
  font-weight: 800;
}

.segmented-control,
.treatment-strip {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.segmented-control::-webkit-scrollbar,
.treatment-strip::-webkit-scrollbar {
  display: none;
}

.segment-button,
.treatment-chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(23, 39, 51, 0.08);
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.segment-button.is-active,
.treatment-chip.is-active {
  background: rgba(11, 96, 115, 0.94);
  color: #f8f4ef;
}

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

.analysis-summary-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.metric-tile {
  border-radius: 22px;
  padding: 16px;
}

.metric-tile span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.metric-tile strong {
  display: block;
  margin-top: 8px;
  font-size: 1.12rem;
  line-height: 1.36;
  letter-spacing: -0.03em;
}

.metric-tile em {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-style: normal;
  line-height: 1.55;
}

.insight-card {
  margin-top: 16px;
}

.summary-card ul,
.insight-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.card-head span {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
}

.simulation-card {
  padding: 16px;
  margin-top: 16px;
}

.simulation-stage {
  position: relative;
  overflow: hidden;
  min-height: 352px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(18, 55, 64, 0.95), rgba(14, 84, 98, 0.8));
}

.simulation-output {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.simulation-floating {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  gap: 2px;
  width: min(180px, calc(100% - 28px));
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(255, 252, 248, 0.82);
  border: 1px solid rgba(23, 39, 51, 0.08);
  backdrop-filter: blur(18px);
}

.simulation-floating span {
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 700;
}

.simulation-floating strong {
  font-size: 1rem;
}

.simulation-floating p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.45;
}

.before-after-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.preview-card {
  padding: 12px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.preview-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.mini-result {
  width: 100%;
  height: 112px;
  min-height: 112px;
  border-radius: 16px;
}

.slider-block {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.slider-block span {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.slider-block input {
  width: 100%;
  accent-color: var(--coral);
}

.simulation-note {
  margin-top: 16px;
}

.simulation-note strong {
  display: block;
  margin-bottom: 8px;
}

.simulation-guidance {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.guidance-block {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 39, 51, 0.08);
}

.guidance-block span {
  display: block;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
}

.guidance-block ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.report-card {
  padding: 18px;
  margin-top: 16px;
}

.care-card {
  margin-top: 16px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.92), rgba(247, 240, 232, 0.84));
  box-shadow:
    0 18px 36px rgba(23, 39, 51, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.care-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  line-height: 1.78;
}

.care-estimate {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.7;
}

.care-footnote {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.68;
}

.report-top strong {
  display: block;
  font-size: 1.05rem;
}

.report-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.report-row {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(23, 39, 51, 0.08);
}

.report-row span {
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.report-row strong {
  max-width: 52%;
  text-align: right;
  font-size: 0.9rem;
  line-height: 1.45;
}

.report-preview-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.report-mini-thumb {
  width: 100%;
  height: 112px;
  min-height: 112px;
}

.report-mini-copy {
  display: grid;
  align-content: center;
  gap: 6px;
}

.report-mini-copy span {
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.report-mini-copy strong {
  font-size: 1rem;
  line-height: 1.35;
}

.action-row {
  margin-top: 16px;
}

.tab-bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 28px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(23, 39, 51, 0.08);
  backdrop-filter: blur(20px);
}

.tab-button {
  min-height: 54px;
  border-radius: 22px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.tab-button.is-active {
  background: rgba(11, 96, 115, 0.94);
  color: #f8f4ef;
  box-shadow: 0 14px 20px rgba(11, 96, 115, 0.18);
}

.home-indicator {
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 132px;
  height: 5px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(23, 39, 51, 0.2);
}

.loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  background: rgba(246, 239, 230, 0.7);
  backdrop-filter: blur(18px);
}

.loading-card {
  width: min(82%, 280px);
  padding: 22px 20px;
  border-radius: 28px;
  text-align: center;
  border: 1px solid rgba(23, 39, 51, 0.08);
  background: rgba(255, 252, 247, 0.92);
}

.loading-card strong {
  display: block;
  margin-top: 14px;
  font-size: 1rem;
}

.loading-card p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.loader-ring {
  width: 42px;
  height: 42px;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid rgba(11, 96, 115, 0.16);
  border-top-color: var(--teal);
  animation: spin 900ms linear infinite;
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 114px;
  z-index: 9;
  min-width: 180px;
  max-width: calc(100% - 48px);
  padding: 12px 14px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(23, 39, 51, 0.88);
  color: #f8f4ef;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(23, 39, 51, 0.24);
}

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

@media (max-width: 760px) {
  .stage {
    padding: 0;
    gap: 0;
  }

  .stage-header {
    display: none;
  }

  .device-wrap {
    width: 100%;
  }

  .device-frame {
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .device-top {
    display: none;
  }

  .screen {
    min-height: 100vh;
    min-height: 100svh;
    border-radius: 0;
  }

  .app-body {
    min-height: 100vh;
    min-height: 100svh;
  }

  .mini-preview-row {
    grid-template-columns: 1fr;
  }
}

@media (display-mode: standalone) {
  body {
    background: linear-gradient(180deg, #f9f4ed 0%, #f3ece2 58%, #f0e7da 100%);
  }

  .backdrop,
  .stage-header,
  .device-top {
    display: none;
  }

  .stage {
    padding: 0;
    gap: 0;
  }

  .device-wrap {
    width: 100%;
  }

  .device-frame {
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .screen,
  .app-body {
    min-height: 100svh;
    border-radius: 0;
  }
}
